styled-components 5.3.1 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +187 -0
- package/dist/styled-components-macro.cjs.js +1 -1
- package/dist/styled-components-macro.cjs.js.map +1 -1
- package/dist/styled-components-macro.esm.js +1 -1
- package/dist/styled-components-macro.esm.js.map +1 -1
- package/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +1 -1
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/dist/styled-components.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/native/dist/styled-components.native.cjs.js +1157 -6115
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1153 -6115
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/package.json +72 -44
- package/primitives/dist/styled-components-primitives.cjs.js +1107 -6115
- package/primitives/dist/styled-components-primitives.cjs.js.map +1 -1
- package/primitives/dist/styled-components-primitives.esm.js +1101 -6114
- package/primitives/dist/styled-components-primitives.esm.js.map +1 -1
- package/test-utils/{index.js → index.ts} +10 -13
- package/test-utils/{setupTestFramework.js → setupTestFramework.ts} +2 -5
- package/scripts/generateErrorMap.js +0 -22
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react-is"),require("react")):"function"==typeof define&&define.amd?define(["react-is","react"],t):(e=e||self).styled=t(e.ReactIs,e.React)}(this,(function(e,t){"use strict";var r="default"in e?e.default:e,n="default"in t?t.default:t;function o(e){return e&&"string"==typeof e.styledComponentId}var i=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},a=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!e.typeOf(t)},s=Object.freeze([]),c=Object.freeze({});function l(e){return"function"==typeof e}function u(e){return"string"==typeof e&&e||e.displayName||e.name||"Component"}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var h="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",f="undefined"!=typeof window&&"HTMLElement"in window,p=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"==typeof process||void 0===process.env.SC_DISABLE_SPEEDY||""===process.env.SC_DISABLE_SPEEDY||"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),m={},g={1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"};function y(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function v(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(y.apply(void 0,[g[e]].concat(r)).trim())}var b=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&v(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),w=new Map,S=new Map,k=1,C=function(e){if(w.has(e))return w.get(e);for(;S.has(k);)k++;var t=k++;return((0|t)<0||t>1<<30)&&v(16,""+t),w.set(e,t),S.set(t,e),t},A=function(e){return S.get(e)},x=function(e,t){t>=k&&(k=t+1),w.set(e,t),S.set(t,e)},P="style["+h+'][data-styled-version="5.3.1"]',I=new RegExp("^"+h+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),R=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},O=function(e,t){for(var r=(t.innerHTML||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(I);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(x(l,c),R(e,l,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},T=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},_=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(h))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(h,"active"),n.setAttribute("data-styled-version","5.3.1");var a=T();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},E=function(){function e(e){var t=this.element=_(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}v(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),j=function(){function e(e){var t=this.element=_(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),N=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),D=f,z={isServer:!f,useCSSOMInjection:!p},M=function(){function e(e,t,r){void 0===e&&(e=c),void 0===t&&(t={}),this.options=d({},z,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&f&&D&&(D=!1,function(e){for(var t=document.querySelectorAll(P),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(h)&&(O(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return C(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(d({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new N(o):n?new E(o):new j(o),new b(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(C(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(C(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(C(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=A(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=h+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),L=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function F(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=$(t%52)+r;return($(t%52)+r).replace(L,"$1-$2")}var B=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},G=function(e){return B(5381,e)},H=G("5.3.1"),Y=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=!1,this.componentId=t,this.baseHash=B(H,t),this.baseStyle=r,M.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=de(this.rules,e,t,r).join(""),a=F(B(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=B(this.baseHash,r.hash),u="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)u+=h,l=B(l,h+d);else if(h){var f=de(h,e,t,r),p=Array.isArray(f)?f.join(""):f;l=B(l,p+d),u+=p}}if(u){var m=F(l>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}();function q(e){function t(e,t,n){var o=t.trim().split(p);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,i){var a=e+";",s=2*t+3*r+4*i;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===O||2===O&&o(c,1)?"-webkit-"+c+c:c}if(0===O||2===O&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return h.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),j(2!==t?n:n.replace(C,"$1"),r,t)}function i(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(S," or ($1)").substring(4):"("+t+")"}function a(e,t,r,n,o,i,a,s,l,u){for(var d,h=0,f=t;h<E;++h)switch(d=_[h].call(c,e,f,r,n,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?O=1:(O=2,j=e):O=0),s}function c(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<E){var c=a(-1,r,s,s,I,P,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var d=function e(r,s,c,d,h){for(var f,p,m,b,S,k=0,C=0,A=0,x=0,_=0,j=0,D=m=f=0,z=0,M=0,L=0,$=0,F=c.length,B=F-1,G="",H="",Y="",q="";z<F;){if(p=c.charCodeAt(z),z===B&&0!==C+x+A+k&&(0!==C&&(p=47===C?10:47),x=A=k=0,F++,B++),0===C+x+A+k){if(z===B&&(0<M&&(G=G.replace(u,"")),0<G.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:G+=c.charAt(z)}p=59}switch(p){case 123:for(f=(G=G.trim()).charCodeAt(0),m=1,$=++z;z<F;){switch(p=c.charCodeAt(z)){case 123:m++;break;case 125:m--;break;case 47:switch(p=c.charCodeAt(z+1)){case 42:case 47:e:{for(D=z+1;D<B;++D)switch(c.charCodeAt(D)){case 47:if(42===p&&42===c.charCodeAt(D-1)&&z+2!==D){z=D+1;break e}break;case 10:if(47===p){z=D+1;break e}}z=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;z++<B&&c.charCodeAt(z)!==p;);}if(0===m)break;z++}switch(m=c.substring($,z),0===f&&(f=(G=G.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<M&&(G=G.replace(u,"")),p=G.charCodeAt(1)){case 100:case 109:case 115:case 45:M=s;break;default:M=T}if($=(m=e(s,M,m,p,h+1)).length,0<E&&(S=a(3,m,M=t(T,G,L),s,I,P,$,p,h,d),G=M.join(""),void 0!==S&&0===($=(m=S.trim()).length)&&(p=0,m="")),0<$)switch(p){case 115:G=G.replace(w,i);case 100:case 109:case 45:m=G+"{"+m+"}";break;case 107:m=(G=G.replace(g,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=G+m,112===d&&(H+=m,m="")}else m="";break;default:m=e(s,t(s,G,L),m,d,h+1)}Y+=m,m=L=M=D=f=0,G="",p=c.charCodeAt(++z);break;case 125:case 59:if(1<($=(G=(0<M?G.replace(u,""):G).trim()).length))switch(0===D&&(f=G.charCodeAt(0),45===f||96<f&&123>f)&&($=(G=G.replace(" ",":")).length),0<E&&void 0!==(S=a(1,G,s,r,I,P,H.length,d,h,d))&&0===($=(G=S.trim()).length)&&(G="\0\0"),f=G.charCodeAt(0),p=G.charCodeAt(1),f){case 0:break;case 64:if(105===p||99===p){q+=G+c.charAt(z);break}default:58!==G.charCodeAt($-1)&&(H+=n(G,f,p,G.charCodeAt(2)))}L=M=D=f=0,G="",p=c.charCodeAt(++z)}}switch(p){case 13:case 10:47===C?C=0:0===1+f&&107!==d&&0<G.length&&(M=1,G+="\0"),0<E*N&&a(0,G,s,r,I,P,H.length,d,h,d),P=1,I++;break;case 59:case 125:if(0===C+x+A+k){P++;break}default:switch(P++,b=c.charAt(z),p){case 9:case 32:if(0===x+k+C)switch(_){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===x+C+k&&(M=L=1,b="\f"+b);break;case 108:if(0===x+C+k+R&&0<D)switch(z-D){case 2:112===_&&58===c.charCodeAt(z-3)&&(R=_);case 8:111===j&&(R=j)}break;case 58:0===x+C+k&&(D=z);break;case 44:0===C+A+x+k&&(M=1,b+="\r");break;case 34:case 39:0===C&&(x=x===p?0:0===x?p:x);break;case 91:0===x+C+A&&k++;break;case 93:0===x+C+A&&k--;break;case 41:0===x+C+k&&A--;break;case 40:if(0===x+C+k){if(0===f)switch(2*_+3*j){case 533:break;default:f=1}A++}break;case 64:0===C+A+x+k+D+m&&(m=1);break;case 42:case 47:if(!(0<x+k+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(z+1)){case 235:C=47;break;case 220:$=z,C=42}break;case 42:47===p&&42===_&&$+2!==z&&(33===c.charCodeAt($+2)&&(H+=c.substring($,z+1)),b="",C=0)}}0===C&&(G+=b)}j=_,_=p,z++}if(0<($=H.length)){if(M=s,0<E&&void 0!==(S=a(2,H,M,r,I,P,$,d,h,d))&&0===(H=S).length)return q+H+Y;if(H=M.join(",")+"{"+H+"}",0!=O*R){switch(2!==O||o(H,2)||(R=0),R){case 111:H=H.replace(v,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}R=0}}return q+H+Y}(T,s,r,0,0);return 0<E&&void 0!==(c=a(-2,d,s,s,I,P,d.length,0,0,0))&&(d=c),R=0,P=I=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,p=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,P=1,I=1,R=0,O=1,T=[],_=[],E=0,j=null,N=0;return c.use=function e(t){switch(t){case void 0:case null:E=_.length=0;break;default:if("function"==typeof t)_[E++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else N=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var W=/^\s*\/\/.*$/gm,U=[":","[",".","#"];function V(e){var t,r,n,o,i=void 0===e?c:e,a=i.options,l=void 0===a?c:a,u=i.plugins,d=void 0===u?s:u,h=new q(l),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,l,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),m=function(e,n,i){return 0===n&&-1!==U.indexOf(i[r.length])||i.match(o)?e:"."+t};function g(e,i,a,s){void 0===s&&(s="&");var c=e.replace(W,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),h(a||!i?"":i,l)}return h.use([].concat(d,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,m))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=d.length?d.reduce((function(e,t){return t.name||v(15),B(e,t.name)}),5381).toString():"",g}var X=n.createContext(),Z=X.Consumer,J=n.createContext(),K=(J.Consumer,new M),Q=V();function ee(){return t.useContext(X)||K}function te(){return t.useContext(J)||Q}function re(e){var r=t.useState(e.stylisPlugins),o=r[0],i=r[1],a=ee(),s=t.useMemo((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=t.useMemo((function(){return V({options:{prefix:!e.disableVendorPrefixes},plugins:o})}),[e.disableVendorPrefixes,o]);return t.useEffect((function(){(function(e,t,r,n){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(o,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),n.createElement(X.Provider,{value:s},n.createElement(J.Provider,{value:c},n.Children.only(e.children)))}var ne=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Q);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return v(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Q),this.name+e.hash},e}(),oe=/([A-Z])/,ie=/([A-Z])/g,ae=/^ms-/,se=function(e){return"-"+e.toLowerCase()};function ce(e){return oe.test(e)?e.replace(ie,se).replace(ae,"-ms-"):e}var le={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ue=function(e){return null==e||!1===e||""===e};function de(t,r,n,i){if(Array.isArray(t)){for(var s,c=[],d=0,h=t.length;d<h;d+=1)""!==(s=de(t[d],r,n,i))&&(Array.isArray(s)?c.push.apply(c,s):c.push(s));return c}if(ue(t))return"";if(o(t))return"."+t.styledComponentId;if(l(t)){if("function"!=typeof(p=t)||p.prototype&&p.prototype.isReactComponent||!r)return t;var f=t(r);return e.isElement(f)&&console.warn(u(t)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),de(f,r,n,i)}var p;return t instanceof ne?n?(t.inject(n,i),t.getName(i)):t:a(t)?function e(t,r){var n,o,i=[];for(var s in t)t.hasOwnProperty(s)&&!ue(t[s])&&(Array.isArray(t[s])&&t[s].isCss||l(t[s])?i.push(ce(s)+":",t[s],";"):a(t[s])?i.push.apply(i,e(t[s],s)):i.push(ce(s)+": "+(n=s,null==(o=t[s])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in le?String(o).trim():o+"px")+";"));return r?[r+" {"].concat(i,["}"]):i}(t):t.toString()}var he=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function fe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return l(e)||a(e)?he(de(i(s,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:he(de(i(e,r)))}var pe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(l(r)&&!o(r))return!1}return!0}(e),M.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(de(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&M.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),me=n.createContext(),ge=me.Consumer,ye=/invalid hook call/i,ve=new Set,be=function(e,r){var n="The component "+e+(r?' with the id of "'+r+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",o=console.error;try{var i=!0;console.error=function(e){if(ye.test(e))i=!1,ve.delete(n);else{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];o.apply(void 0,[e].concat(r))}},t.useRef(),i&&!ve.has(n)&&(console.warn(n),ve.add(n))}catch(e){ye.test(e.message)&&ve.delete(n)}finally{console.error=o}},we=function(e,t,r){return void 0===r&&(r=c),e.theme!==r.theme&&e.theme||t||r.theme},Se=function(e){return F(G(e)>>>0)},ke=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=T();return"<style "+[r&&'nonce="'+r+'"',h+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?v(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return v(2);var r=((t={})[h]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=T();return o&&(r.nonce=o),[n.createElement("style",d({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new M({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?v(2):n.createElement(re,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return v(3)},e}(),Ce={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ae={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pe={};function Ie(e){return r.isMemo(e)?xe:Pe[e.$$typeof]||Ce}Pe[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[r.Memo]=xe;var Re=Object.defineProperty,Oe=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,_e=Object.getOwnPropertyDescriptor,Ee=Object.getPrototypeOf,je=Object.prototype,Ne=function e(t,r,n){if("string"!=typeof r){if(je){var o=Ee(r);o&&o!==je&&e(t,o,n)}var i=Oe(r);Te&&(i=i.concat(Te(r)));for(var a=Ie(t),s=Ie(r),c=0;c<i.length;++c){var l=i[c];if(!(Ae[l]||n&&n[l]||s&&s[l]||a&&a[l])){var u=_e(r,l);try{Re(t,l,u)}catch(e){}}}}return t},De={StyleSheet:M,masterSheet:K};"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var ze,Me,Le=Object.freeze({__proto__:null,createGlobalStyle:function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=fe.apply(void 0,[e].concat(o)),s="sc-global-"+Se(JSON.stringify(a)),c=new pe(a,s);function l(e){var r=ee(),o=te(),i=t.useContext(me),l=t.useRef(r.allocateGSInstance(s)).current;return n.Children.count(e.children)&&console.warn("The global style component "+s+" was given child JSX. createGlobalStyle does not render children."),a.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),r.server&&u(l,e,r,i,o),t.useLayoutEffect((function(){if(!r.server)return u(l,e,r,i,o),function(){return c.removeStyles(l,r)}}),[l,e,r,i,o]),null}function u(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,m,r,o);else{var i=d({},t,{theme:we(t,n,l.defaultProps)});c.renderStyles(e,i,r,o)}}return be(s),n.memo(l)},css:fe,isStyledComponent:o,keyframes:function(e){"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=fe.apply(void 0,[e].concat(r)).join(""),i=Se(o);return new ne(i,o)},ServerStyleSheet:ke,StyleSheetConsumer:Z,StyleSheetContext:X,StyleSheetManager:re,ThemeConsumer:ge,ThemeContext:me,ThemeProvider:function(e){var r=t.useContext(me),o=t.useMemo((function(){return function(e,t){if(!e)return v(14);if(l(e)){var r=e(t);return null===r||Array.isArray(r)||"object"!=typeof r?v(7):r}return Array.isArray(e)||"object"!=typeof e?v(8):t?d({},t,{},e):e}(e.theme,r)}),[e.theme,r]);return e.children?n.createElement(me.Provider,{value:o},e.children):null},useTheme:function(){return t.useContext(me)},version:"5.3.1",withTheme:function(e){var r=n.forwardRef((function(r,o){var i=t.useContext(me),a=e.defaultProps,s=we(r,i,a);return void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'+u(e)+'"'),n.createElement(e,d({},r,{theme:s,ref:o}))}));return Ne(r,e),r.displayName="WithTheme("+u(e)+")",r},__PRIVATE__:De}),$e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fe=(ze=function(e){return $e.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},Me={},function(e){return void 0===Me[e]&&(Me[e]=ze(e)),Me[e]}),Be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ge=/(^-|-$)/g;function He(e){return e.replace(Be,"-").replace(Ge,"")}function Ye(e){return"string"==typeof e&&e.charAt(0)===e.charAt(0).toLowerCase()}var qe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},We=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ue(e,t,r){var n=e[r];qe(t)&&qe(n)?Ve(n,t):e[r]=t}function Ve(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(qe(a))for(var s in a)We(s)&&Ue(e,a[s],s)}return e}var Xe={};function Ze(e,r,i){var a=o(e),h=!Ye(e),f=r.attrs,p=void 0===f?s:f,m=r.componentId,g=void 0===m?function(e,t){var r="string"!=typeof e?"sc":He(e);Xe[r]=(Xe[r]||0)+1;var n=r+"-"+Se("5.3.1"+r+Xe[r]);return t?t+"-"+n:n}(r.displayName,r.parentComponentId):m,y=r.displayName,v=void 0===y?function(e){return Ye(e)?"styled."+e:"Styled("+u(e)+")"}(e):y,b=r.displayName&&r.componentId?He(r.displayName)+"-"+r.componentId:r.componentId||g,w=a&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,S=r.shouldForwardProp;a&&e.shouldForwardProp&&(S=r.shouldForwardProp?function(t,n,o){return e.shouldForwardProp(t,n,o)&&r.shouldForwardProp(t,n,o)}:e.shouldForwardProp);var k,C=new Y(i,b,a?e.componentStyle:void 0),A=C.isStatic&&0===p.length,x=function(e,r){return function(e,r,n,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,h=e.shouldForwardProp,f=e.styledComponentId,p=e.target;t.useDebugValue(f);var m=function(e,t,r){void 0===e&&(e=c);var n=d({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in l(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(we(r,t.useContext(me),s)||c,r,i),g=m[0],y=m[1],v=function(e,r,n,o){var i=ee(),a=te(),s=r?e.generateAndInjectStyles(c,i,a):e.generateAndInjectStyles(n,i,a);return t.useDebugValue(s),!r&&o&&o(s),s}(a,o,g,e.warnTooManyClasses),b=n,w=y.$as||r.$as||y.as||r.as||p,S=Ye(w),k=y!==r?d({},r,{},y):r,C={};for(var A in k)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?C.as=k[A]:(h?h(A,Fe,w):!S||Fe(A))&&(C[A]=k[A]));return r.style&&y.style!==r.style&&(C.style=d({},r.style,{},y.style)),C.className=Array.prototype.concat(u,f,v!==f?v:null,r.className,y.className).filter(Boolean).join(" "),C.ref=b,t.createElement(w,C)}(k,e,r,A)};return x.displayName=v,(k=n.forwardRef(x)).attrs=w,k.componentStyle=C,k.displayName=v,k.shouldForwardProp=S,k.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):s,k.styledComponentId=b,k.target=a?e.target:e,k.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["componentId"]),o=t&&t+"-"+(Ye(e)?e:He(u(e)));return Ze(e,d({},n,{attrs:w,componentId:o}),i)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?Ve({},e.defaultProps,t):t}}),be(v,b),k.warnTooManyClasses=function(e,t){var r={},n=!1;return function(o){if(!n&&(r[o]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+i+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={}}}}(v,b),k.toString=function(){return"."+k.styledComponentId},h&&Ne(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Je=function(t){return function t(r,n,o){if(void 0===o&&(o=c),!e.isValidElementType(n))return v(1,String(n));var i=function(){return r(n,o,fe.apply(void 0,arguments))};return i.withConfig=function(e){return t(r,n,d({},o,{},e))},i.attrs=function(e){return t(r,n,d({},o,{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},i}(Ze,t)};for(var Ke in["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Je[e]=Je(e)})),Le)Je[Ke]=Le[Ke];return Je}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).styled=t(e.React)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",o="active",a="data-styled-version",i="6.0.0-alpha.0",s="/*!sc*/\n",c="undefined"!=typeof window&&"HTMLElement"in window,l=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"==typeof process||void 0===process.env.SC_DISABLE_SPEEDY||""===process.env.SC_DISABLE_SPEEDY||"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),u={},d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function h(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var m=Object.freeze([]),y=Object.freeze({}),g={1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"};function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error(v.apply(void 0,h([g[e]],f(t),!1)).trim())}var b=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw S(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}var i=this.indexOfGroup(e+1);if(Array.isArray(t)){a=0;for(var s=t.length;a<s;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)}else this.tag.insertRule(i,t)&&this.groupSizes[e]++},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),w=new Map,x=new Map,C=1,k=function(e){if(w.has(e))return w.get(e);for(;x.has(C);)C++;var t=C++;if((0|t)<0||t>1073741824)throw S(16,"".concat(t));return w.set(e,t),x.set(t,e),t},P=function(e,t){w.set(e,t),x.set(t,e)},A="style[".concat(r,"][").concat(a,'="').concat(i,'"]'),I=new RegExp("^".concat(r,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),O=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},R=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(s),o=[],a=0,i=r.length;a<i;a++){var c=r[a].trim();if(c){var l=c.match(I);if(l){var u=0|parseInt(l[1],10),d=l[2];0!==u&&(P(d,u),O(e,d,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}};function _(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var T=function(e){var t=document.head,n=e||t,s=document.createElement("style"),c=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(r))return o}}(n),l=void 0!==c?c.nextSibling:null;s.setAttribute(r,o),s.setAttribute(a,i);var u=_();return u&&s.setAttribute("nonce",u),n.insertBefore(s,l),s},j=function(){function e(e){var t=this.element=T(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw S(17)}(t),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),E=function(){function e(e){var t=this.element=T(e);this.nodes=t.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),N=c,D={isServer:!c,useCSSOMInjection:!l},M=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=d(d({},D),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&c&&N&&(N=!1,function(e){for(var t=document.querySelectorAll(A),n=0,a=t.length;n<a;n++){var i=t[n];i&&i.getAttribute(r)!==o&&(R(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}return e.registerId=function(e){return k(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d(d({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.isServer,n=e.useCSSOMInjection,r=e.target;return t?new $(r):n?new j(r):new E(r)}(this.options),new b(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(k(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(k(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(k(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",a=function(n){var a=function(e){return x.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=t.getGroup(n);if(void 0===i||0===c.length)return"continue";var l="".concat(r,".g").concat(n,'[id="').concat(a,'"]'),u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+="".concat(e,","))})),o+="".concat(c).concat(l,'{content:"').concat(u,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(this)},e}(),z="-ms-",L="-moz-",G="-webkit-",F="comm",B="rule",H="decl",W="@keyframes",Y=Math.abs,q=String.fromCharCode,U=Object.assign;function V(e){return e.trim()}function X(e,t,n){return e.replace(t,n)}function Z(e,t){return e.indexOf(t)}function J(e,t){return 0|e.charCodeAt(t)}function K(e,t,n){return e.slice(t,n)}function Q(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}var ne=1,re=1,oe=0,ae=0,ie=0,se="";function ce(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:ne,column:re,length:i,return:""}}function le(e,t){return U(ce("",null,null,"",null,null,0),e,{length:-e.length},t)}function ue(){return ie=ae>0?J(se,--ae):0,re--,10===ie&&(re=1,ne--),ie}function de(){return ie=ae<oe?J(se,ae++):0,re++,10===ie&&(re=1,ne++),ie}function pe(){return J(se,ae)}function fe(){return ae}function he(e,t){return K(se,e,t)}function me(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 ye(e){return V(he(ae-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(ie=pe())&&ie<33;)de();return me(e)>2||me(ie)>3?"":" "}function ve(e,t){for(;--t&&de()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return he(e,fe()+(t<6&&32==pe()&&32==de()))}function Se(e){for(;de();)switch(ie){case e:return ae;case 34:case 39:34!==e&&39!==e&&Se(ie);break;case 40:41===e&&Se(e);break;case 92:de()}return ae}function be(e,t){for(;de()&&e+ie!==57&&(e+ie!==84||47!==pe()););return"/*"+he(t,ae-1)+"*"+q(47===e?e:de())}function we(e){for(;!me(pe());)de();return he(e,ae)}function xe(e){return function(e){return se="",e}(Ce("",null,null,null,[""],e=function(e){return ne=re=1,oe=Q(se=e),ae=0,[]}(e),0,[0],e))}function Ce(e,t,n,r,o,a,i,s,c){for(var l=0,u=0,d=i,p=0,f=0,h=0,m=1,y=1,g=1,v=0,S="",b=o,w=a,x=r,C=S;y;)switch(h=v,v=de()){case 40:if(108!=h&&58==C.charCodeAt(d-1)){-1!=Z(C+=X(ye(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=ye(v);break;case 9:case 10:case 13:case 32:C+=ge(h);break;case 92:C+=ve(fe()-1,7);continue;case 47:switch(pe()){case 42:case 47:te(Pe(be(de(),fe()),t,n),c);break;default:C+="/"}break;case 123*m:s[l++]=Q(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+u:f>0&&Q(C)-d&&te(f>32?Ae(C+";",r,n,d-1):Ae(X(C," ","")+";",r,n,d-2),c);break;case 59:C+=";";default:if(te(x=ke(C,t,n,l,u,o,s,S,b=[],w=[],d),a),123===v)if(0===u)Ce(C,t,x,x,b,a,d,s,w);else switch(p){case 100:case 109:case 115:Ce(e,x,x,r&&te(ke(e,x,x,0,0,o,s,S,o,b=[],d),w),o,w,d,s,r?b:w);break;default:Ce(C,x,x,x,[""],w,0,s,w)}}l=u=f=0,m=g=1,S=C="",d=i;break;case 58:d=1+Q(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ue())continue;switch(C+=q(v),v*m){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[l++]=(Q(C)-1)*g,g=1;break;case 64:45===pe()&&(C+=ye(de())),p=pe(),u=d=Q(S=C+=we(fe())),v++;break;case 45:45===h&&2==Q(C)&&(m=0)}}return a}function ke(e,t,n,r,o,a,i,s,c,l,u){for(var d=o-1,p=0===o?a:[""],f=ee(p),h=0,m=0,y=0;h<r;++h)for(var g=0,v=K(e,d+1,d=Y(m=i[h])),S=e;g<f;++g)(S=V(m>0?p[g]+" "+v:X(v,/&\f/g,p[g])))&&(c[y++]=S);return ce(e,t,n,0===o?B:s,c,l,u)}function Pe(e,t,n){return ce(e,t,n,F,q(ie),K(e,2,-2),0)}function Ae(e,t,n,r){return ce(e,t,n,H,K(e,0,r),K(e,r+1,-1),r)}function Ie(e,t){switch(function(e,t){return(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3)}(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+L+e+z+e+e;case 6828:case 4268:return G+e+z+e+e;case 6165:return G+e+z+"flex-"+e+e;case 5187:return G+e+X(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return G+e+z+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return G+e+z+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+z+X(e,"shrink","negative")+e;case 5292:return G+e+z+X(e,"basis","preferred-size")+e;case 6060:return G+"box-"+X(e,"-grow","")+G+e+z+X(e,"grow","positive")+e;case 4554:return G+X(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+L+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Z(e,"stretch")?Ie(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==J(e,t+1))break;case 6444:switch(J(e,Q(e)-3-(~Z(e,"!important")&&10))){case 107:return X(e,":",":"+G)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===J(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(J(e,t+11)){case 114:return G+e+z+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+z+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+z+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+z+e+e}return e}function Oe(e,t){for(var n="",r=ee(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Re(e,t,n,r){switch(e.type){case"@import":case H:return e.return=e.return||e.value;case F:return"";case W:return e.return=e.value+"{"+Oe(e.children,r)+"}";case B:e.value=e.props.join(",")}return Q(n=Oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function _e(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=Ie(e.value,e.length);break;case W:return Oe([le(e,{value:X(e.value,"@","@"+G)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Oe([le(e,{props:[X(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Oe([le(e,{props:[X(t,/:(plac\w+)/,":"+G+"input-$1")]}),le(e,{props:[X(t,/:(plac\w+)/,":-moz-$1")]}),le(e,{props:[X(t,/:(plac\w+)/,z+"input-$1")]})],r)}return""}))}}var Te=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},je=function(e){return Te(5381,e)},Ee=/^\s*\/\/.*$/gm,$e=[":","[",".","#"];function Ne(e){var t,n,r,o,a=void 0===e?y:e,i=a.options,s=void 0===i?y:i,c=a.plugins,l=void 0===c?m:c,u=function(e,r,a){return 0===r&&$e.includes(a[n.length])||a.match(o)?e:".".concat(t)},d=function(e){if(e.type===B&&e.value.includes("&")){var t=e.props;t[0]=t[0].replace(r,u)}},p=function(e,a,i,c){void 0===a&&(a=""),void 0===i&&(i=""),void 0===c&&(c="&");var u=e.replace(Ee,"");t=c,n=a,r=new RegExp("\\".concat(n,"\\b"),"g"),o=new RegExp("(\\".concat(n,"\\b){2,}"));var p=l.slice();return(s.prefix||void 0===s.prefix)&&p.unshift(_e),p.push(d,Re),Oe(xe(i||a?"".concat(i," ").concat(a," { ").concat(u," }"):u),function(e){var t=ee(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(p))};return p.hash=l.length?l.reduce((function(e,t){return t.name||S(15),Te(e,t.name)}),5381).toString():"",p}var De=n.default.createContext(void 0),Me=De.Consumer,ze=n.default.createContext(void 0);ze.Consumer;var Le=new M,Ge=Ne();function Fe(){return e.useContext(De)||Le}function Be(){return e.useContext(ze)||Ge}function He(t){var r=f(e.useState(t.stylisPlugins),2),o=r[0],a=r[1],i=Fe(),s=e.useMemo((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),c=e.useMemo((function(){return Ne({options:{prefix:!t.disableVendorPrefixes},plugins:o})}),[t.disableVendorPrefixes,o]);return e.useEffect((function(){(function(e,t,n,r){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(o,t.stylisPlugins)||a(t.stylisPlugins)}),[t.stylisPlugins]),n.default.createElement(De.Provider,{value:s},n.default.createElement(ze.Provider,{value:c},n.default.Children.only(t.children)))}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ge);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw S(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ge),this.name+e.hash},e}();function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qe(e,t){return e(t={exports:{}},t.exports),t.exports}Ye(qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}})));var Ue=qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}}));Ye(Ue);var Ve=qe((function(e){e.exports=Ue}));function Xe(e){return"string"==typeof e&&e||e.displayName||e.name||"Component"}var Ze=/([A-Z])/,Je=/([A-Z])/g,Ke=/^ms-/,Qe=function(e){return"-".concat(e.toLowerCase())};function et(e){return Ze.test(e)?e.replace(Je,Qe).replace(Ke,"-ms-"):e}function tt(e){return"function"==typeof e}function nt(e){return!(null===e||"object"!=typeof e||e.constructor&&"Object"!==e.constructor.name||"[object Object]"!==(e.toString?e.toString():Object.prototype.toString.call(e))||"props"in e&&(e.$$typeof||void 0===e.constructor))}function rt(e){return"object"==typeof e&&"styledComponentId"in e}var ot=function(e){return null==e||!1===e||""===e},at=function(e,t){var n,r,o=[];for(var a in e)e.hasOwnProperty(a)&&!ot(e[a])&&(Array.isArray(e[a])&&e[a].isCss||tt(e[a])?o.push("".concat(et(a),":"),e[a],";"):nt(e[a])?o.push.apply(o,h([],f(at(e[a],a)),!1)):o.push("".concat(et(a),": ").concat((n=a,null==(r=e[a])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in Ve?String(r).trim():"".concat(r,"px")),";")));return t?h(h(["".concat(t," {")],f(o),!1),["}"],!1):o};function it(e,t,n,r){if(Array.isArray(e)){for(var o=[],a=0,i=e.length,s=void 0;a<i;a+=1)""!==(s=it(e[a],t,n,r))&&(Array.isArray(s)?o.push.apply(o,h([],f(s),!1)):o.push(s));return o}if(ot(e))return"";if(rt(e))return".".concat(e.styledComponentId);if(tt(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t)return e;var c=e;return"object"!=typeof(s=c(t))||Array.isArray(s)||s instanceof We||nt(s)||console.error("".concat(Xe(c)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),it(s,t,n,r)}var l;return e instanceof We?n?(e.inject(n,r),e.getName(r)):e:nt(e)?at(e):e.toString()}var st=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(tt(n)&&!rt(n))return!1}return!0}(e),M.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(it(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&M.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),ct=n.default.createContext(void 0),lt=ct.Consumer,ut=/invalid hook call/i,dt=new Set,pt=function(t,n){var r=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ut.test(e)?(i=!1,dt.delete(o)):a.apply(void 0,h([e],f(t),!1))},e.useRef(),i&&!dt.has(o)&&(console.warn(o),dt.add(o))}catch(e){ut.test(e.message)&&dt.delete(o)}finally{console.error=a}};function ft(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme}var ht=/(a)(d)/gi,mt=function(e){return String.fromCharCode(e+(e>25?39:97))};function yt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=mt(t%52)+n;return(mt(t%52)+n).replace(ht,"$1-$2")}function gt(e){return yt(je(e)>>>0)}function vt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var St,bt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(tt(e)||nt(e)){var r=e;return bt(it(vt(m,h([r],f(t),!1))))}var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?o:bt(it(vt(o,t)))}var xt="function"==typeof Symbol&&Symbol.for,Ct=xt?Symbol.for("react.memo"):60115,kt=xt?Symbol.for("react.forward_ref"):60112,Pt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},At={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},It={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot=((St={})[kt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},St[Ct]=It,St);function Rt(e){return("type"in(t=e)&&t.type.$$typeof)===Ct?It:"$$typeof"in e?Ot[e.$$typeof]:Pt;var t}var _t=Object.defineProperty,Tt=Object.getOwnPropertyNames,jt=Object.getOwnPropertySymbols,Et=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Nt=Object.prototype;function Dt(e,t,n){if("string"!=typeof t){if(Nt){var r=$t(t);r&&r!==Nt&&Dt(e,r,n)}var o=Tt(t);jt&&(o=o.concat(jt(t)));for(var a=Rt(e),i=Rt(t),s=0;s<o.length;++s){var c=o[s];if(!(c in At||n&&n[c]||i&&c in i||a&&c in a)){var l=Et(t,c);try{_t(e,c,l)}catch(e){}}}}return e}var Mt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=_(),o=[n&&'nonce="'.concat(n,'"'),"".concat(r,'="true"'),"".concat(a,'="').concat(i,'"')].filter(Boolean).join(" ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw S(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw S(2);var o=((t={})[r]="",t[a]=i,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),s=_();return s&&(o.nonce=s),[n.default.createElement("style",d({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new M({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw S(2);return n.default.createElement(He,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw S(3)},e}(),zt={StyleSheet:M,mainSheet:Le};"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"undefined"!=typeof window&&(window["__styled-components-init__"]||(window["__styled-components-init__"]=0),1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Lt=Object.freeze({__proto__:null,createGlobalStyle:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var a=wt.apply(void 0,h([t],f(r),!1)),i="sc-global-".concat(gt(JSON.stringify(a))),s=new st(a,i);pt(i);var c=function(t){var r=Fe(),o=Be(),c=e.useContext(ct),u=e.useRef(r.allocateGSInstance(i)).current;return n.default.Children.count(t.children)&&console.warn("The global style component ".concat(i," was given child JSX. createGlobalStyle does not render children.")),a.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),r.server&&l(u,t,r,c,o),e.useLayoutEffect((function(){if(!r.server)return l(u,t,r,c,o),function(){return s.removeStyles(u,r)}}),[u,t,r,c,o]),null};function l(e,t,n,r,o){if(s.isStatic)s.renderStyles(e,u,n,o);else{var a=d(d({},t),{theme:ft(t,r,c.defaultProps)});s.renderStyles(e,a,n,o)}}return n.default.memo(c)},css:wt,isStyledComponent:rt,keyframes:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=wt.apply(void 0,h([e],f(t),!1)).join(""),o=gt(r);return new We(o,r)},ServerStyleSheet:Mt,StyleSheetConsumer:Me,StyleSheetContext:De,StyleSheetManager:He,ThemeConsumer:lt,ThemeContext:ct,ThemeProvider:function(t){var r=e.useContext(ct),o=e.useMemo((function(){return function(e,t){if(!e)throw S(14);if(tt(e)){var n=e(t);if(null===n||Array.isArray(n)||"object"!=typeof n)throw S(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw S(8);return t?d(d({},t),e):e}(t.theme,r)}),[t.theme,r]);return t.children?n.default.createElement(ct.Provider,{value:o},t.children):null},useTheme:function(){return e.useContext(ct)},version:i,withTheme:function(e){var t=n.default.forwardRef((function(t,r){var o=ft(t,n.default.useContext(ct),e.defaultProps);return void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(Xe(e),'"')),n.default.createElement(e,d({},t,{theme:o,ref:r}))}));return t.displayName="WithTheme(".concat(Xe(e),")"),Dt(t,e)},__PRIVATE__:zt});function Gt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ft=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Bt=Gt((function(e){return Ft.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ht=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Wt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yt=/(^-|-$)/g;function qt(e){return e.replace(Wt,"-").replace(Yt,"")}function Ut(e){return"string"==typeof e&&e.charAt(0)===e.charAt(0).toLowerCase()}function Vt(e,t){return e&&t?"".concat(e," ").concat(t):e||t}function Xt(e,t,n){if(void 0===n&&(n=!1),!n&&!nt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Xt(e[r],t[r]);else if(nt(t))for(var r in t)e[r]=Xt(e[r],t[r]);return e}var Zt=je(i),Jt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=!1,this.componentId=t,this.baseHash=Te(Zt,t),this.baseStyle=n,M.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var a=it(this.rules,e,t,n).join(""),i=yt(Te(this.baseHash,a)>>>0);if(!t.hasNameForId(r,i)){var s=n(a,".".concat(i),void 0,r);t.insertRules(r,i,s)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,l=Te(this.baseHash,n.hash),u="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)u+=p,l=Te(l,p+d);else if(p){var f=it(p,e,t,n),h=Array.isArray(f)?f.join(""):f;l=Te(l,h+d),u+=h}}if(u){var m=yt(l>>>0);if(!t.hasNameForId(r,m)){var y=n(u,".".concat(m),void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),Kt={};function Qt(t,r,o){var a=rt(t),s=t,c=!Ut(t),l=r.attrs,u=void 0===l?m:l,h=r.componentId,g=void 0===h?function(e,t){var n="string"!=typeof e?"sc":qt(e);Kt[n]=(Kt[n]||0)+1;var r="".concat(n,"-").concat(gt(i+n+Kt[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):h,v=r.displayName,S=void 0===v?function(e){return Ut(e)?"styled.".concat(e):"Styled(".concat(Xe(e),")")}(t):v,b=r.displayName&&r.componentId?"".concat(qt(r.displayName),"-").concat(r.componentId):r.componentId||g,w=a&&s.attrs?s.attrs.concat(u).filter(Boolean):u,x=r.shouldForwardProp;if(a&&s.shouldForwardProp){var C=s.shouldForwardProp;if(r.shouldForwardProp){var k=r.shouldForwardProp;x=function(e,t,n){return C(e,t,n)&&k(e,t,n)}}else x=C}var P=new Jt(o,b,a?s.componentStyle:void 0),A=P.isStatic&&0===u.length;function I(t,n){return function(t,n,r,o){var a=t.attrs,i=t.componentStyle,s=t.defaultProps,c=t.foldedComponentIds,l=t.shouldForwardProp,u=t.styledComponentId,p=t.target;e.useDebugValue(u);var h=f(function(e,t,n){void 0===e&&(e=y);var r=d(d({},t),{theme:e}),o={};return n.forEach((function(e){var t,n="function"==typeof e?e(r):e;for(t in n)r[t]=o[t]="className"===t?Vt(o[t],n[t]):n[t]})),[r,o]}(ft(n,e.useContext(ct),s)||y,n,a),2),m=h[0],g=h[1],v=function(t,n,r,o){var a=Fe(),i=Be(),s=n?t.generateAndInjectStyles(y,a,i):t.generateAndInjectStyles(r,a,i);return e.useDebugValue(s),!n&&o&&o(s),s}(i,o,m,t.warnTooManyClasses),S=r,b=g.$as||n.$as||g.as||n.as||p,w=Ut(b),x=g!==n?d(d({},n),g):n,C={};for(var k in x)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?C.as=x[k]:(l?l(k,Bt,b):!w||Bt(k))&&(C[k]=x[k]));return n.style&&g.style!==n.style&&(C.style=d(d({},n.style),g.style)),C[w&&-1===Ht.indexOf(b)?"class":"className"]=c.concat(u,v!==u?v:null,n.className,g.className).filter(Boolean).join(" "),C.ref=S,e.createElement(b,C)}(O,t,n,A)}I.displayName=S;var O=n.default.forwardRef(I);return O.attrs=w,O.componentStyle=P,O.displayName=S,O.shouldForwardProp=x,O.foldedComponentIds=a?s.foldedComponentIds.concat(s.styledComponentId):m,O.styledComponentId=b,O.target=a?s.target:t,O.withComponent=function(e){var t=r.componentId,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["componentId"]),a=t&&"".concat(t,"-").concat(Ut(e)?e:qt(Xe(e)));return Qt(e,d(d({},n),{attrs:w,componentId:a}),o)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){var t,n;void 0===e&&(e={});for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];try{for(var a=p(r),i=a.next();!i.done;i=a.next())Xt(e,i.value,!0)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return e}({},s.defaultProps,e):e}}),pt(S,b),O.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(S,b),O.toString=function(){return".".concat(O.styledComponentId)},c&&Dt(O,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}function en(e,t,n){if(void 0===n&&(n=y),!t)throw S(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,wt.apply(void 0,h([r],f(o),!1)))};return r.attrs=function(r){return en(e,t,d(d({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return en(e,t,d(d({},n),r))},r}var tn=function(e){return en(Qt,e)},nn=tn;for(var rn in Ht.forEach((function(e){nn[e]=tn(e)})),Lt)nn[rn]=Lt[rn];return nn}));
|
|
2
2
|
//# sourceMappingURL=styled-components.js.map
|