3 lines
21 KiB
JavaScript
3 lines
21 KiB
JavaScript
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).emotionReact={},e.React)}(this,(function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(t);var a=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o="-ms-",c="-moz-",s="-webkit-",i="comm",u="rule",f="decl",l="@keyframes",p=Math.abs,d=String.fromCharCode,h=Object.assign;function y(e){return e.trim()}function m(e,t,r){return e.replace(t,r)}function v(e,t){return e.indexOf(t)}function g(e,t){return 0|e.charCodeAt(t)}function b(e,t,r){return e.slice(t,r)}function w(e){return e.length}function x(e){return e.length}function $(e,t){return t.push(e),e}var C=1,k=1,S=0,E=0,O=0,_="";function A(e,t,r,n,a,o,c){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:C,column:k,length:c,return:""}}function P(e,t){return h(A("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return O=E>0?g(_,--E):0,k--,10===O&&(k=1,C--),O}function T(){return O=E<S?g(_,E++):0,k++,10===O&&(k=1,C++),O}function M(){return g(_,E)}function N(){return E}function R(e,t){return b(_,e,t)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function F(e){return C=k=1,S=w(_=e),E=0,[]}function D(e){return _="",e}function I(e){return y(R(E-1,W(91===e?e+2:40===e?e+1:e)))}function G(e){for(;(O=M())&&O<33;)T();return z(e)>2||z(O)>3?"":" "}function L(e,t){for(;--t&&T()&&!(O<48||O>102||O>57&&O<65||O>70&&O<97););return R(e,N()+(t<6&&32==M()&&32==T()))}function W(e){for(;T();)switch(O){case e:return E;case 34:case 39:34!==e&&39!==e&&W(O);break;case 40:41===e&&W(e);break;case 92:T()}return E}function q(e,t){for(;T()&&e+O!==57&&(e+O!==84||47!==M()););return"/*"+R(t,E-1)+"*"+d(47===e?e:T())}function H(e){for(;!z(M());)T();return R(e,E)}function B(e){return D(U("",null,null,null,[""],e=F(e),0,[0],e))}function U(e,t,r,n,a,o,c,s,i){for(var u=0,f=0,l=c,p=0,h=0,y=0,b=1,x=1,C=1,k=0,S="",E=a,O=o,_=n,A=S;x;)switch(y=k,k=T()){case 40:if(108!=y&&58==g(A,l-1)){-1!=v(A+=m(I(k),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:A+=I(k);break;case 9:case 10:case 13:case 32:A+=G(y);break;case 92:A+=L(N()-1,7);continue;case 47:switch(M()){case 42:case 47:$(Y(q(T(),N()),t,r),i);break;default:A+="/"}break;case 123*b:s[u++]=w(A)*C;case 125*b:case 59:case 0:switch(k){case
|
||
|
//# sourceMappingURL=emotion-react.umd.min.js.map
|