styled-components 6.0.0-alpha.6 → 6.0.0-alpha.7
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/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.esm.js +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 -1
- package/native/dist/styled-components.native.cjs.js +1 -1
- package/native/dist/styled-components.native.esm.js +1 -1
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
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);const r="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",s="active",o="data-styled-version",i="6.0.0-alpha.6",a="undefined"!=typeof window&&"HTMLElement"in window,c=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),l={},u=Object.freeze([]),d=Object.freeze({}),h={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 p(e,...t){return new Error(function(...e){let t=e[0];const n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach((e=>{t=t.replace(/%[a-z]/,e)})),t}(h[e],...t).trim())}let f=new Map,m=new Map,g=1;const y=e=>{if(f.has(e))return f.get(e);for(;m.has(g);)g++;const t=g++;if((0|t)<0||t>1073741824)throw p(16,`${t}`);return f.set(e,t),m.set(t,e),t},S=e=>m.get(e),b=(e,t)=>{f.set(e,t),m.set(t,e)},w=`style[${r}][${o}="6.0.0-alpha.6"]`,v=new RegExp(`^${r}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),x=(e,t,n)=>{const r=n.split(",");let s;for(let n=0,o=r.length;n<o;n++)(s=r[n])&&e.registerName(t,s)},C=(e,t)=>{const n=(t.textContent??"").split("/*!sc*/\n"),r=[];for(let t=0,s=n.length;t<s;t++){const s=n[t].trim();if(!s)continue;const o=s.match(v);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(b(n,t),x(e,n,o[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(s)}};function k(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}const $=e=>{const t=document.head,n=e||t,a=document.createElement("style"),c=(e=>{const{childNodes:t}=e;for(let e=t.length;e>=0;e--){const n=t[e];if(n&&1===n.nodeType&&n.hasAttribute(r))return n}})(n),l=void 0!==c?c.nextSibling:null;a.setAttribute(r,s),a.setAttribute(o,i);const u=k();return u&&a.setAttribute("nonce",u),n.insertBefore(a,l),a};let P=a;const A={isServer:!a,useCSSOMInjection:!c};class I{gs;names;options;server;tag;static registerId(e){return y(e)}constructor(e=d,t={},n){this.options={...A,...e},this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&P&&(P=!1,(e=>{const t=document.querySelectorAll(w);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(r)!==s&&(C(e,o),o.parentNode&&o.parentNode.removeChild(o))}})(this))}reconstructWithOptions(e,t=!0){return new I({...this.options,...e},this.gs,t&&this.names||void 0)}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n})=>e?new class{rules;length;constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}}(n):t?new class{element;sheet;length;constructor(e){const t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=(e=>{if(e.sheet)return e.sheet;const{styleSheets:t}=document;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r.ownerNode===e)return r}throw p(17)})(t),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""}}(n):new class{element;nodes;length;constructor(e){const t=this.element=$(e);this.nodes=t.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}}(n))(this.options),new class{groupSizes;length;tag;constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}indexOfGroup(e){let t=0;for(let n=0;n<e;n++)t+=this.groupSizes[n];return t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw p(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1);if(Array.isArray(t))for(let r=0,s=t.length;r<s;r++)this.tag.insertRule(n,t[r])&&(this.groupSizes[e]++,n++);else this.tag.insertRule(n,t)&&this.groupSizes[e]++}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n;for(let e=r;e<s;e++)t+=`${this.tag.getRule(e)}/*!sc*/\n`;return t}}(e)));var e}hasNameForId(e,t){return this.names.has(e)&&this.names.get(e).has(t)}registerName(e,t){if(y(e),this.names.has(e))this.names.get(e).add(t);else{const n=new Set;n.add(t),this.names.set(e,n)}}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(y(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(y(e)),this.clearNames(e)}clearTag(){this.tag=void 0}toString(){return(e=>{const t=e.getTag(),{length:n}=t;let s="";for(let o=0;o<n;o++){const n=S(o);if(void 0===n)continue;const i=e.names.get(n),a=t.getGroup(o);if(void 0===i||0===a.length)continue;const c=`${r}.g${o}[id="${n}"]`;let l="";void 0!==i&&i.forEach((e=>{e.length>0&&(l+=`${e},`)})),s+=`${a}${c}{content:"${l}"}/*!sc*/\n`}return s})(this)}}var R="-ms-",T="-moz-",O="-webkit-",_="comm",E="rule",j="decl",N="@keyframes",D=Math.abs,M=String.fromCharCode,z=Object.assign;function L(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function B(e,t){return e.indexOf(t)}function H(e,t){return 0|e.charCodeAt(t)}function W(e,t,n){return e.slice(t,n)}function Y(e){return e.length}function q(e){return e.length}function U(e,t){return t.push(e),e}var V=1,X=1,Z=0,J=0,K=0,Q="";function ee(e,t,n,r,s,o,i){return{value:e,root:t,parent:n,type:r,props:s,children:o,line:V,column:X,length:i,return:""}}function te(e,t){return z(ee("",null,null,"",null,null,0),e,{length:-e.length},t)}function ne(){return K=J>0?H(Q,--J):0,X--,10===K&&(X=1,V--),K}function re(){return K=J<Z?H(Q,J++):0,X++,10===K&&(X=1,V++),K}function se(){return H(Q,J)}function oe(){return J}function ie(e,t){return W(Q,e,t)}function ae(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 ce(e){return L(ie(J-1,de(91===e?e+2:40===e?e+1:e)))}function le(e){for(;(K=se())&&K<33;)re();return ae(e)>2||ae(K)>3?"":" "}function ue(e,t){for(;--t&&re()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return ie(e,oe()+(t<6&&32==se()&&32==re()))}function de(e){for(;re();)switch(K){case e:return J;case 34:case 39:34!==e&&39!==e&&de(K);break;case 40:41===e&&de(e);break;case 92:re()}return J}function he(e,t){for(;re()&&e+K!==57&&(e+K!==84||47!==se()););return"/*"+ie(t,J-1)+"*"+M(47===e?e:re())}function pe(e){for(;!ae(se());)re();return ie(e,J)}function fe(e){return function(e){return Q="",e}(me("",null,null,null,[""],e=function(e){return V=X=1,Z=Y(Q=e),J=0,[]}(e),0,[0],e))}function me(e,t,n,r,s,o,i,a,c){for(var l=0,u=0,d=i,h=0,p=0,f=0,m=1,g=1,y=1,S=0,b="",w=s,v=o,x=r,C=b;g;)switch(f=S,S=re()){case 40:if(108!=f&&58==C.charCodeAt(d-1)){-1!=B(C+=F(ce(S),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=ce(S);break;case 9:case 10:case 13:case 32:C+=le(f);break;case 92:C+=ue(oe()-1,7);continue;case 47:switch(se()){case 42:case 47:U(ye(he(re(),oe()),t,n),c);break;default:C+="/"}break;case 123*m:a[l++]=Y(C)*y;case 125*m:case 59:case 0:switch(S){case 0:case 125:g=0;case 59+u:p>0&&Y(C)-d&&U(p>32?Se(C+";",r,n,d-1):Se(F(C," ","")+";",r,n,d-2),c);break;case 59:C+=";";default:if(U(x=ge(C,t,n,l,u,s,a,b,w=[],v=[],d),o),123===S)if(0===u)me(C,t,x,x,w,o,d,a,v);else switch(h){case 100:case 109:case 115:me(e,x,x,r&&U(ge(e,x,x,0,0,s,a,b,s,w=[],d),v),s,v,d,a,r?w:v);break;default:me(C,x,x,x,[""],v,0,a,v)}}l=u=p=0,m=y=1,b=C="",d=i;break;case 58:d=1+Y(C),p=f;default:if(m<1)if(123==S)--m;else if(125==S&&0==m++&&125==ne())continue;switch(C+=M(S),S*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:a[l++]=(Y(C)-1)*y,y=1;break;case 64:45===se()&&(C+=ce(re())),h=se(),u=d=Y(b=C+=pe(oe())),S++;break;case 45:45===f&&2==Y(C)&&(m=0)}}return o}function ge(e,t,n,r,s,o,i,a,c,l,u){for(var d=s-1,h=0===s?o:[""],p=q(h),f=0,m=0,g=0;f<r;++f)for(var y=0,S=W(e,d+1,d=D(m=i[f])),b=e;y<p;++y)(b=L(m>0?h[y]+" "+S:F(S,/&\f/g,h[y])))&&(c[g++]=b);return ee(e,t,n,0===s?E:a,c,l,u)}function ye(e,t,n){return ee(e,t,n,_,M(K),W(e,2,-2),0)}function Se(e,t,n,r){return ee(e,t,n,j,W(e,0,r),W(e,r+1,-1),r)}function be(e,t,n){switch(function(e,t){return(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3)}(e,t)){case 5103:return O+"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 O+e+e;case 4789:return T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+T+e+R+e+e;case 6828:case 4268:return O+e+R+e+e;case 6165:return O+e+R+"flex-"+e+e;case 5187:return O+e+F(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+R+"flex-$1$2")+e;case 5443:return O+e+R+"flex-item-"+F(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":R+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return O+e+R+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+R+F(e,"shrink","negative")+e;case 5292:return O+e+R+F(e,"basis","preferred-size")+e;case 6060:return O+"box-"+F(e,"-grow","")+O+e+R+F(e,"grow","positive")+e;case 4554:return O+F(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!G(e,/flex-|baseline/))return R+"grid-column-align"+W(e,t)+e;break;case 2592:case 3360:return R+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,G(e.props,/grid-\w+-end/)}))?~B(e+(n=n[t].value),"span")?e:R+F(e,"-start","")+e+R+"grid-row-span:"+(~B(n,"span")?G(n,/\d+/):+G(n,/\d+/)-+G(e,/\d+/))+";":R+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return G(e.props,/grid-\w+-start/)}))?e:R+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,O+"$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(Y(e)-1-t>6)switch(H(e,t+1)){case 109:if(45!==H(e,t+4))break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+T+(108==H(e,t+3)?"$3":"$2-$3"))+e;case 115:return~B(e,"stretch")?be(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,s,o,i,a){return R+n+":"+r+a+(s?R+n+"-span:"+(o?i:+i-+r)+a:"")+e}));case 4949:if(121===H(e,t+6))return F(e,":",":"+O)+e;break;case 6444:switch(H(e,45===H(e,14)?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(45===H(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+R+"$2box$3")+e;case 100:return F(e,":",":"+R)+e}break;case 5936:switch(H(e,t+11)){case 114:return O+e+R+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+R+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+R+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 2903:return O+e+R+e+e;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function we(e,t){for(var n="",r=q(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function ve(e,t,n,r){switch(e.type){case"@import":case j:return e.return=e.return||e.value;case _:return"";case N:return e.return=e.value+"{"+we(e.children,r)+"}";case E:e.value=e.props.join(",")}return Y(n=we(e.children,r))?e.return=e.value+"{"+n+"}":""}function xe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case j:return void(e.return=be(e.value,e.length,n));case N:return we([te(e,{value:F(e.value,"@","@"+O)})],r);case E:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(G(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return we([te(e,{props:[F(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return we([te(e,{props:[F(t,/:(plac\w+)/,":"+O+"input-$1")]}),te(e,{props:[F(t,/:(plac\w+)/,":-moz-$1")]}),te(e,{props:[F(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}const Ce=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ke=e=>Ce(5381,e),$e=/^\s*\/\/.*$/gm,Pe=[":","[",".","#"];function Ae({options:e=d,plugins:t=u}=d){let n,r,s,o;const i=(e,t,s)=>0===t&&Pe.includes(s[r.length])||s.match(o)?e:`.${n}`,a=e=>{if(e.type===E&&e.value.includes("&")){const t=e.props;t[0]=t[0].replace(s,i)}},c=(i,c="",l="",u="&")=>{let d=i.replace($e,"");n=u,r=c,s=new RegExp(`\\${r}\\b`,"g"),o=new RegExp(`(\\${r}\\b){2,}`);const h=t.slice();return(e.prefix||void 0===e.prefix)&&h.unshift(xe),h.push(a,ve),we(fe(l||c?`${l} ${c} { ${d} }`:d),function(e){var t=q(e);return function(n,r,s,o){for(var i="",a=0;a<t;a++)i+=e[a](n,r,s,o)||"";return i}}(h))};return c.hash=t.length?t.reduce(((e,t)=>(t.name||p(15),Ce(e,t.name))),5381).toString():"",c}const Ie=n.default.createContext(void 0),Re=Ie.Consumer,Te=n.default.createContext(void 0);Te.Consumer;const Oe=new I,_e=Ae();function Ee(){return e.useContext(Ie)||Oe}function je(){return e.useContext(Te)||_e}function Ne(t){const[r,s]=e.useState(t.stylisPlugins),o=Ee(),i=e.useMemo((()=>{let e=o;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]),a=e.useMemo((()=>Ae({options:{prefix:!t.disableVendorPrefixes},plugins:r})),[t.disableVendorPrefixes,r]);return e.useEffect((()=>{(function(e,t,n,r){var s=void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!a(l))return!1;var u=e[l],d=t[l];if(!1===(s=void 0)||void 0===s&&u!==d)return!1}return!0})(r,t.stylisPlugins)||s(t.stylisPlugins)}),[t.stylisPlugins]),n.default.createElement(Ie.Provider,{value:i},n.default.createElement(Te.Provider,{value:a},n.default.Children.only(t.children)))}class De{id;name;rules;constructor(e,t){this.name=e,this.id=`sc-keyframes-${e}`,this.rules=t}inject=(e,t=_e)=>{const n=this.name+t.hash;e.hasNameForId(this.id,n)||e.insertRules(this.id,n,t(this.rules,n,"@keyframes"))};toString=()=>{throw p(12,String(this.name))};getName(e=_e){return this.name+e.hash}}function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ze(e,t){return e(t={exports:{}},t.exports),t.exports}Me(ze((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 Le=ze((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}}));Me(Le);var Ge=ze((function(e){e.exports=Le}));function Fe(e){return"string"==typeof e&&e||e.displayName||e.name||"Component"}const Be=/([A-Z])/,He=/([A-Z])/g,We=/^ms-/,Ye=e=>`-${e.toLowerCase()}`;function qe(e){return Be.test(e)?e.replace(He,Ye).replace(We,"-ms-"):e}function Ue(e){return"function"==typeof e}function Ve(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 Xe(e){return"object"==typeof e&&"styledComponentId"in e}const Ze=e=>null==e||!1===e||""===e,Je=(e,t)=>{const n=[];for(const t in e)e.hasOwnProperty(t)&&!Ze(e[t])&&(Array.isArray(e[t])&&e[t].isCss||Ue(e[t])?n.push(`${qe(t)}:`,e[t],";"):Ve(e[t])?n.push(...Je(e[t],t)):n.push(`${qe(t)}: ${r=t,s=e[t],null==s||"boolean"==typeof s||""===s?"":"number"!=typeof s||0===s||r in Ge?String(s).trim():`${s}px`};`));var r,s;return t?[`${t} {`,...n,"}"]:n};function Ke(e,t,n,r){if(Array.isArray(e)){const s=[];for(let o,i=0,a=e.length;i<a;i+=1)o=Ke(e[i],t,n,r),""!==o&&(Array.isArray(o)?s.push(...o):s.push(o));return s}if(Ze(e))return"";if(Xe(e))return`.${e.styledComponentId}`;if(Ue(e)){if("function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return e;{const s=e,o=s(t);return"object"!=typeof o||Array.isArray(o)||o instanceof De||Ve(o)||console.error(`${Fe(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.`),Ke(o,t,n,r)}}var s;return e instanceof De?n?(e.inject(n,r),e.getName(r)):e:Ve(e)?Je(e):e.toString()}class Qe{componentId;isStatic;rules;constructor(e,t){this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(Ue(n)&&!Xe(n))return!1}return!0}(e),I.registerId(this.componentId+1)}createStyles(e,t,n,r){const s=r(Ke(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,s)}removeStyles(e,t){t.clearRules(this.componentId+e)}renderStyles(e,t,n,r){e>2&&I.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}const et=n.default.createContext(void 0),tt=et.Consumer,nt=/invalid hook call/i,rt=new Set,st=(t,n)=>{{const r=`The component ${t}${n?` with the id of "${n}"`:""} 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.`,s=console.error;try{let t=!0;console.error=(e,...n)=>{nt.test(e)?(t=!1,rt.delete(r)):s(e,...n)},e.useRef(),t&&!rt.has(r)&&(console.warn(r),rt.add(r))}catch(e){nt.test(e.message)&&rt.delete(r)}finally{console.error=s}}};function ot(e,t,n=d){return e.theme!==n.theme&&e.theme||t||n.theme}const it=/(a)(d)/gi,at=e=>String.fromCharCode(e+(e>25?39:97));function ct(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=at(t%52)+n;return(at(t%52)+n).replace(it,"$1-$2")}function lt(e){return ct(ke(e)>>>0)}function ut(e,t){const n=[e[0]];for(let r=0,s=t.length;r<s;r+=1)n.push(t[r],e[r+1]);return n}const dt=e=>(Array.isArray(e)&&(e.isCss=!0),e);function ht(e,...t){if(Ue(e)||Ve(e))return dt(Ke(ut(u,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?n:dt(Ke(ut(n,t)))}const pt="function"==typeof Symbol&&Symbol.for,ft=pt?Symbol.for("react.memo"):60115,mt=pt?Symbol.for("react.forward_ref"):60112,gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},St={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bt={[mt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ft]:St};function wt(e){return("type"in(t=e)&&t.type.$$typeof)===ft?St:"$$typeof"in e?bt[e.$$typeof]:gt;var t}const vt=Object.defineProperty,xt=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Pt=Object.prototype;function At(e,t,n){if("string"!=typeof t){if(Pt){const r=$t(t);r&&r!==Pt&&At(e,r,n)}let r=xt(t);Ct&&(r=r.concat(Ct(t)));const s=wt(e),o=wt(t);for(let i=0;i<r.length;++i){const a=r[i];if(!(a in yt||n&&n[a]||o&&a in o||s&&a in s)){const n=kt(t,a);try{vt(e,a,n)}catch(e){}}}}return e}const It={StyleSheet:I,mainSheet:Oe};"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__"]||=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 Rt=Object.freeze({__proto__:null,createGlobalStyle:function(e,...t){const r=ht(e,...t),s=`sc-global-${lt(JSON.stringify(r))}`,o=new Qe(r,s);st(s);const i=e=>{const t=Ee(),i=je(),c=n.default.useContext(et),l=n.default.useRef(t.allocateGSInstance(s)).current;return n.default.Children.count(e.children)&&console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`),r.some((e=>"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."),t.server&&a(l,e,t,c,i),(n.default.useInsertionEffect||n.default.useLayoutEffect)((()=>{if(!t.server)return a(l,e,t,c,i),()=>o.removeStyles(l,t)}),[l,e,t,c,i]),null};function a(e,t,n,r,s){if(o.isStatic)o.renderStyles(e,l,n,s);else{const a={...t,theme:ot(t,r,i.defaultProps)};o.renderStyles(e,a,n,s)}}return n.default.memo(i)},css:ht,isStyledComponent:Xe,keyframes:function(e,...t){"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.");const n=ht(e,...t).join(""),r=lt(n);return new De(r,n)},ServerStyleSheet:class{instance;sealed;constructor(){this.instance=new I({isServer:!0}),this.sealed=!1}_emitSheetCSS=()=>{const e=this.instance.toString(),t=k();return`<style ${[t&&`nonce="${t}"`,`${r}="true"`,`${o}="6.0.0-alpha.6"`].filter(Boolean).join(" ")}>${e}</style>`};collectStyles(e){if(this.sealed)throw p(2);return n.default.createElement(Ne,{sheet:this.instance},e)}getStyleTags=()=>{if(this.sealed)throw p(2);return this._emitSheetCSS()};getStyleElement=()=>{if(this.sealed)throw p(2);const e={[r]:"",[o]:i,dangerouslySetInnerHTML:{__html:this.instance.toString()}},t=k();return t&&(e.nonce=t),[n.default.createElement("style",{...e,key:"sc-0-0"})]};interleaveWithNodeStream(e){throw p(3)}seal=()=>{this.sealed=!0}},StyleSheetConsumer:Re,StyleSheetContext:Ie,StyleSheetManager:Ne,ThemeConsumer:tt,ThemeContext:et,ThemeProvider:function(t){const r=e.useContext(et),s=e.useMemo((()=>function(e,t){if(!e)throw p(14);if(Ue(e)){const n=e(t);if(null===n||Array.isArray(n)||"object"!=typeof n)throw p(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw p(8);return t?{...t,...e}:e}(t.theme,r)),[t.theme,r]);return t.children?n.default.createElement(et.Provider,{value:s},t.children):null},useTheme:()=>e.useContext(et),version:i,withTheme:function(e){const t=n.default.forwardRef(((t,r)=>{const s=ot(t,n.default.useContext(et),e.defaultProps);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 "${Fe(e)}"`),n.default.createElement(e,{...t,theme:s,ref:r})}));return t.displayName=`WithTheme(${Fe(e)})`,At(t,e)},__PRIVATE__:It});function Tt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ot=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|incremental|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)-.*))$/,_t=Tt((function(e){return Ot.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Et=["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"];const jt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Nt=/(^-|-$)/g;function Dt(e){return e.replace(jt,"-").replace(Nt,"")}function Mt(e){return"string"==typeof e&&e.charAt(0)===e.charAt(0).toLowerCase()}function zt(e){return Mt(e)?`styled.${e}`:`Styled(${Fe(e)})`}function Lt(e,t){return e&&t?`${e} ${t}`:e||t}function Gt(e,t,n=!1){if(!n&&!Ve(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Gt(e[n],t[n]);else if(Ve(t))for(const n in t)e[n]=Gt(e[n],t[n]);return e}const Ft=ke(i);class Bt{baseHash;baseStyle;componentId;isStatic;rules;staticRulesId;constructor(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=!1,this.componentId=t,this.baseHash=Ce(Ft,t),this.baseStyle=n,I.registerId(t)}generateAndInjectStyles(e,t,n){const{componentId:r}=this,s=[];if(this.baseStyle&&s.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))s.push(this.staticRulesId);else{const o=Ke(this.rules,e,t,n).join(""),i=ct(Ce(this.baseHash,o)>>>0);if(!t.hasNameForId(r,i)){const e=n(o,`.${i}`,void 0,r);t.insertRules(r,i,e)}s.push(i),this.staticRulesId=i}else{const{length:o}=this.rules;let i=Ce(this.baseHash,n.hash),a="";for(let r=0;r<o;r++){const s=this.rules[r];if("string"==typeof s)a+=s,i=Ce(i,s+r);else if(s){const o=Ke(s,e,t,n),c=Array.isArray(o)?o.join(""):o;i=Ce(i,c+r),a+=c}}if(a){const e=ct(i>>>0);if(!t.hasNameForId(r,e)){const s=n(a,`.${e}`,void 0,r);t.insertRules(r,e,s)}s.push(e)}}return s.join(" ")}}const Ht={};function Wt(e,t){const n="string"!=typeof e?"sc":Dt(e);Ht[n]=(Ht[n]||0)+1;const r=`${n}-${lt(i+n+Ht[n])}`;return t?`${t}-${r}`:r}function Yt(t,r,s){const o=Xe(t),i=t,a=!Mt(t),{attrs:c=u,componentId:l=Wt(r.displayName,r.parentComponentId),displayName:h=zt(t)}=r,p=r.displayName&&r.componentId?`${Dt(r.displayName)}-${r.componentId}`:r.componentId||l,f=o&&i.attrs?i.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:m}=r;if(o&&i.shouldForwardProp){const e=i.shouldForwardProp;if(r.shouldForwardProp){const t=r.shouldForwardProp;m=(n,r,s)=>e(n,r,s)&&t(n,r,s)}else m=e}const g=new Bt(s,p,o?i.componentStyle:void 0),y=g.isStatic&&0===c.length;function S(t,n){return function(t,n,r,s){const{attrs:o,componentStyle:i,defaultProps:a,foldedComponentIds:c,shouldForwardProp:l,styledComponentId:u,target:h}=t;e.useDebugValue(u);const p=ot(n,e.useContext(et),a),[f,m]=function(e=d,t,n){const r={...t,theme:e},s={};return n.forEach((e=>{const t="function"==typeof e?e(r):e;let n;for(n in t)r[n]=s[n]="className"===n?Lt(s[n],t[n]):t[n]})),[r,s]}(p||d,n,o),g=function(t,n,r,s){const o=Ee(),i=je(),a=n?t.generateAndInjectStyles(d,o,i):t.generateAndInjectStyles(r,o,i);return e.useDebugValue(a),!n&&s&&s(a),a}(i,s,f,t.warnTooManyClasses),y=r,S=m.$as||n.$as||m.as||n.as||h,b=Mt(S),w=m!==n?{...n,...m}:n,v={};for(const e in w)"$"!==e[0]&&"as"!==e&&("forwardedAs"===e?v.as=w[e]:(l?l(e,_t,S):!b||_t(e))&&(v[e]=w[e]));return n.style&&m.style!==n.style&&(v.style={...n.style,...m.style}),v[b&&-1===Et.indexOf(S)?"class":"className"]=c.concat(u,g!==u?g:null,n.className,m.className).filter(Boolean).join(" "),v.ref=y,e.createElement(S,v)}(b,t,n,y)}S.displayName=h;let b=n.default.forwardRef(S);return b.attrs=f,b.componentStyle=g,b.displayName=h,b.shouldForwardProp=m,b.foldedComponentIds=o?i.foldedComponentIds.concat(i.styledComponentId):u,b.styledComponentId=p,b.target=o?i.target:t,b.withComponent=function(e){const{componentId:t,...n}=r,o=t&&`${t}-${Mt(e)?e:Dt(Fe(e))}`;return Yt(e,{...n,attrs:f,componentId:o},s)},Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=o?function(e={},...t){for(const n of t)Gt(e,n,!0);return e}({},i.defaultProps,e):e}}),st(h,p),b.warnTooManyClasses=((e,t)=>{let n={},r=!1;return s=>{if(!r&&(n[s]=!0,Object.keys(n).length>=200)){const s=t?` with the id of "${t}"`:"";console.warn(`Over 200 classes were generated for component ${e}${s}.\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 />`),r=!0,n={}}}})(h,p),b.toString=()=>`.${b.styledComponentId}`,a&&At(b,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}function qt(e,t,n=d){if(!t)throw p(1,t);const r=(r,...s)=>e(t,n,ht(r,...s));return r.attrs=r=>qt(e,t,{...n,attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}),r.withConfig=r=>qt(e,t,{...n,...r}),r}const Ut=e=>qt(Yt,e),Vt=Ut;Et.forEach((e=>{Vt[e]=Ut(e)}));for(const e in Rt)Vt[e]=Rt[e];return Vt}));
|
|
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);const r="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",s="active",o="data-styled-version",i="6.0.0-alpha.7",a="undefined"!=typeof window&&"HTMLElement"in window,c=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),l={},u=Object.freeze([]),d=Object.freeze({}),h={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 p(e,...t){return new Error(function(...e){let t=e[0];const n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach((e=>{t=t.replace(/%[a-z]/,e)})),t}(h[e],...t).trim())}let f=new Map,m=new Map,g=1;const y=e=>{if(f.has(e))return f.get(e);for(;m.has(g);)g++;const t=g++;if((0|t)<0||t>1073741824)throw p(16,`${t}`);return f.set(e,t),m.set(t,e),t},S=e=>m.get(e),b=(e,t)=>{f.set(e,t),m.set(t,e)},w=`style[${r}][${o}="6.0.0-alpha.7"]`,v=new RegExp(`^${r}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),x=(e,t,n)=>{const r=n.split(",");let s;for(let n=0,o=r.length;n<o;n++)(s=r[n])&&e.registerName(t,s)},C=(e,t)=>{const n=(t.textContent??"").split("/*!sc*/\n"),r=[];for(let t=0,s=n.length;t<s;t++){const s=n[t].trim();if(!s)continue;const o=s.match(v);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(b(n,t),x(e,n,o[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(s)}};function k(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}const $=e=>{const t=document.head,n=e||t,a=document.createElement("style"),c=(e=>{const{childNodes:t}=e;for(let e=t.length;e>=0;e--){const n=t[e];if(n&&1===n.nodeType&&n.hasAttribute(r))return n}})(n),l=void 0!==c?c.nextSibling:null;a.setAttribute(r,s),a.setAttribute(o,i);const u=k();return u&&a.setAttribute("nonce",u),n.insertBefore(a,l),a};let P=a;const A={isServer:!a,useCSSOMInjection:!c};class I{gs;names;options;server;tag;static registerId(e){return y(e)}constructor(e=d,t={},n){this.options={...A,...e},this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&P&&(P=!1,(e=>{const t=document.querySelectorAll(w);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(r)!==s&&(C(e,o),o.parentNode&&o.parentNode.removeChild(o))}})(this))}reconstructWithOptions(e,t=!0){return new I({...this.options,...e},this.gs,t&&this.names||void 0)}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n})=>e?new class{rules;length;constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}}(n):t?new class{element;sheet;length;constructor(e){const t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=(e=>{if(e.sheet)return e.sheet;const{styleSheets:t}=document;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r.ownerNode===e)return r}throw p(17)})(t),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""}}(n):new class{element;nodes;length;constructor(e){const t=this.element=$(e);this.nodes=t.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}}(n))(this.options),new class{groupSizes;length;tag;constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}indexOfGroup(e){let t=0;for(let n=0;n<e;n++)t+=this.groupSizes[n];return t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw p(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1);if(Array.isArray(t))for(let r=0,s=t.length;r<s;r++)this.tag.insertRule(n,t[r])&&(this.groupSizes[e]++,n++);else this.tag.insertRule(n,t)&&this.groupSizes[e]++}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n;for(let e=r;e<s;e++)t+=`${this.tag.getRule(e)}/*!sc*/\n`;return t}}(e)));var e}hasNameForId(e,t){return this.names.has(e)&&this.names.get(e).has(t)}registerName(e,t){if(y(e),this.names.has(e))this.names.get(e).add(t);else{const n=new Set;n.add(t),this.names.set(e,n)}}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(y(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(y(e)),this.clearNames(e)}clearTag(){this.tag=void 0}toString(){return(e=>{const t=e.getTag(),{length:n}=t;let s="";for(let o=0;o<n;o++){const n=S(o);if(void 0===n)continue;const i=e.names.get(n),a=t.getGroup(o);if(void 0===i||0===a.length)continue;const c=`${r}.g${o}[id="${n}"]`;let l="";void 0!==i&&i.forEach((e=>{e.length>0&&(l+=`${e},`)})),s+=`${a}${c}{content:"${l}"}/*!sc*/\n`}return s})(this)}}var R="-ms-",T="-moz-",O="-webkit-",_="comm",E="rule",j="decl",N="@keyframes",D=Math.abs,M=String.fromCharCode,z=Object.assign;function L(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function B(e,t){return e.indexOf(t)}function H(e,t){return 0|e.charCodeAt(t)}function W(e,t,n){return e.slice(t,n)}function Y(e){return e.length}function q(e){return e.length}function U(e,t){return t.push(e),e}var V=1,X=1,Z=0,J=0,K=0,Q="";function ee(e,t,n,r,s,o,i){return{value:e,root:t,parent:n,type:r,props:s,children:o,line:V,column:X,length:i,return:""}}function te(e,t){return z(ee("",null,null,"",null,null,0),e,{length:-e.length},t)}function ne(){return K=J>0?H(Q,--J):0,X--,10===K&&(X=1,V--),K}function re(){return K=J<Z?H(Q,J++):0,X++,10===K&&(X=1,V++),K}function se(){return H(Q,J)}function oe(){return J}function ie(e,t){return W(Q,e,t)}function ae(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 ce(e){return L(ie(J-1,de(91===e?e+2:40===e?e+1:e)))}function le(e){for(;(K=se())&&K<33;)re();return ae(e)>2||ae(K)>3?"":" "}function ue(e,t){for(;--t&&re()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return ie(e,oe()+(t<6&&32==se()&&32==re()))}function de(e){for(;re();)switch(K){case e:return J;case 34:case 39:34!==e&&39!==e&&de(K);break;case 40:41===e&&de(e);break;case 92:re()}return J}function he(e,t){for(;re()&&e+K!==57&&(e+K!==84||47!==se()););return"/*"+ie(t,J-1)+"*"+M(47===e?e:re())}function pe(e){for(;!ae(se());)re();return ie(e,J)}function fe(e){return function(e){return Q="",e}(me("",null,null,null,[""],e=function(e){return V=X=1,Z=Y(Q=e),J=0,[]}(e),0,[0],e))}function me(e,t,n,r,s,o,i,a,c){for(var l=0,u=0,d=i,h=0,p=0,f=0,m=1,g=1,y=1,S=0,b="",w=s,v=o,x=r,C=b;g;)switch(f=S,S=re()){case 40:if(108!=f&&58==C.charCodeAt(d-1)){-1!=B(C+=F(ce(S),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=ce(S);break;case 9:case 10:case 13:case 32:C+=le(f);break;case 92:C+=ue(oe()-1,7);continue;case 47:switch(se()){case 42:case 47:U(ye(he(re(),oe()),t,n),c);break;default:C+="/"}break;case 123*m:a[l++]=Y(C)*y;case 125*m:case 59:case 0:switch(S){case 0:case 125:g=0;case 59+u:p>0&&Y(C)-d&&U(p>32?Se(C+";",r,n,d-1):Se(F(C," ","")+";",r,n,d-2),c);break;case 59:C+=";";default:if(U(x=ge(C,t,n,l,u,s,a,b,w=[],v=[],d),o),123===S)if(0===u)me(C,t,x,x,w,o,d,a,v);else switch(h){case 100:case 109:case 115:me(e,x,x,r&&U(ge(e,x,x,0,0,s,a,b,s,w=[],d),v),s,v,d,a,r?w:v);break;default:me(C,x,x,x,[""],v,0,a,v)}}l=u=p=0,m=y=1,b=C="",d=i;break;case 58:d=1+Y(C),p=f;default:if(m<1)if(123==S)--m;else if(125==S&&0==m++&&125==ne())continue;switch(C+=M(S),S*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:a[l++]=(Y(C)-1)*y,y=1;break;case 64:45===se()&&(C+=ce(re())),h=se(),u=d=Y(b=C+=pe(oe())),S++;break;case 45:45===f&&2==Y(C)&&(m=0)}}return o}function ge(e,t,n,r,s,o,i,a,c,l,u){for(var d=s-1,h=0===s?o:[""],p=q(h),f=0,m=0,g=0;f<r;++f)for(var y=0,S=W(e,d+1,d=D(m=i[f])),b=e;y<p;++y)(b=L(m>0?h[y]+" "+S:F(S,/&\f/g,h[y])))&&(c[g++]=b);return ee(e,t,n,0===s?E:a,c,l,u)}function ye(e,t,n){return ee(e,t,n,_,M(K),W(e,2,-2),0)}function Se(e,t,n,r){return ee(e,t,n,j,W(e,0,r),W(e,r+1,-1),r)}function be(e,t,n){switch(function(e,t){return(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3)}(e,t)){case 5103:return O+"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 O+e+e;case 4789:return T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+T+e+R+e+e;case 6828:case 4268:return O+e+R+e+e;case 6165:return O+e+R+"flex-"+e+e;case 5187:return O+e+F(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+R+"flex-$1$2")+e;case 5443:return O+e+R+"flex-item-"+F(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":R+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return O+e+R+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+R+F(e,"shrink","negative")+e;case 5292:return O+e+R+F(e,"basis","preferred-size")+e;case 6060:return O+"box-"+F(e,"-grow","")+O+e+R+F(e,"grow","positive")+e;case 4554:return O+F(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!G(e,/flex-|baseline/))return R+"grid-column-align"+W(e,t)+e;break;case 2592:case 3360:return R+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,G(e.props,/grid-\w+-end/)}))?~B(e+(n=n[t].value),"span")?e:R+F(e,"-start","")+e+R+"grid-row-span:"+(~B(n,"span")?G(n,/\d+/):+G(n,/\d+/)-+G(e,/\d+/))+";":R+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return G(e.props,/grid-\w+-start/)}))?e:R+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,O+"$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(Y(e)-1-t>6)switch(H(e,t+1)){case 109:if(45!==H(e,t+4))break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+T+(108==H(e,t+3)?"$3":"$2-$3"))+e;case 115:return~B(e,"stretch")?be(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,s,o,i,a){return R+n+":"+r+a+(s?R+n+"-span:"+(o?i:+i-+r)+a:"")+e}));case 4949:if(121===H(e,t+6))return F(e,":",":"+O)+e;break;case 6444:switch(H(e,45===H(e,14)?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(45===H(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+R+"$2box$3")+e;case 100:return F(e,":",":"+R)+e}break;case 5936:switch(H(e,t+11)){case 114:return O+e+R+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+R+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+R+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 2903:return O+e+R+e+e;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function we(e,t){for(var n="",r=q(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function ve(e,t,n,r){switch(e.type){case"@import":case j:return e.return=e.return||e.value;case _:return"";case N:return e.return=e.value+"{"+we(e.children,r)+"}";case E:e.value=e.props.join(",")}return Y(n=we(e.children,r))?e.return=e.value+"{"+n+"}":""}function xe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case j:return void(e.return=be(e.value,e.length,n));case N:return we([te(e,{value:F(e.value,"@","@"+O)})],r);case E:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(G(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return we([te(e,{props:[F(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return we([te(e,{props:[F(t,/:(plac\w+)/,":"+O+"input-$1")]}),te(e,{props:[F(t,/:(plac\w+)/,":-moz-$1")]}),te(e,{props:[F(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}const Ce=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ke=e=>Ce(5381,e),$e=/^\s*\/\/.*$/gm,Pe=[":","[",".","#"];function Ae({options:e=d,plugins:t=u}=d){let n,r,s,o;const i=(e,t,s)=>0===t&&Pe.includes(s[r.length])||s.match(o)?e:`.${n}`,a=e=>{if(e.type===E&&e.value.includes("&")){const t=e.props;t[0]=t[0].replace(s,i)}},c=(i,c="",l="",u="&")=>{let d=i.replace($e,"");n=u,r=c,s=new RegExp(`\\${r}\\b`,"g"),o=new RegExp(`(\\${r}\\b){2,}`);const h=t.slice();return(e.prefix||void 0===e.prefix)&&h.unshift(xe),h.push(a,ve),we(fe(l||c?`${l} ${c} { ${d} }`:d),function(e){var t=q(e);return function(n,r,s,o){for(var i="",a=0;a<t;a++)i+=e[a](n,r,s,o)||"";return i}}(h))};return c.hash=t.length?t.reduce(((e,t)=>(t.name||p(15),Ce(e,t.name))),5381).toString():"",c}const Ie=n.default.createContext(void 0),Re=Ie.Consumer,Te=n.default.createContext(void 0);Te.Consumer;const Oe=new I,_e=Ae();function Ee(){return e.useContext(Ie)||Oe}function je(){return e.useContext(Te)||_e}function Ne(t){const[r,s]=e.useState(t.stylisPlugins),o=Ee(),i=e.useMemo((()=>{let e=o;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]),a=e.useMemo((()=>Ae({options:{prefix:!t.disableVendorPrefixes},plugins:r})),[t.disableVendorPrefixes,r]);return e.useEffect((()=>{(function(e,t,n,r){var s=void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!a(l))return!1;var u=e[l],d=t[l];if(!1===(s=void 0)||void 0===s&&u!==d)return!1}return!0})(r,t.stylisPlugins)||s(t.stylisPlugins)}),[t.stylisPlugins]),n.default.createElement(Ie.Provider,{value:i},n.default.createElement(Te.Provider,{value:a},n.default.Children.only(t.children)))}class De{id;name;rules;constructor(e,t){this.name=e,this.id=`sc-keyframes-${e}`,this.rules=t}inject=(e,t=_e)=>{const n=this.name+t.hash;e.hasNameForId(this.id,n)||e.insertRules(this.id,n,t(this.rules,n,"@keyframes"))};toString=()=>{throw p(12,String(this.name))};getName(e=_e){return this.name+e.hash}}function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ze(e,t){return e(t={exports:{}},t.exports),t.exports}Me(ze((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 Le=ze((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}}));Me(Le);var Ge=ze((function(e){e.exports=Le}));function Fe(e){return"string"==typeof e&&e||e.displayName||e.name||"Component"}const Be=/([A-Z])/,He=/([A-Z])/g,We=/^ms-/,Ye=e=>`-${e.toLowerCase()}`;function qe(e){return Be.test(e)?e.replace(He,Ye).replace(We,"-ms-"):e}function Ue(e){return"function"==typeof e}function Ve(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 Xe(e){return"object"==typeof e&&"styledComponentId"in e}const Ze=e=>null==e||!1===e||""===e,Je=(e,t)=>{const n=[];for(const t in e)e.hasOwnProperty(t)&&!Ze(e[t])&&(Array.isArray(e[t])&&e[t].isCss||Ue(e[t])?n.push(`${qe(t)}:`,e[t],";"):Ve(e[t])?n.push(...Je(e[t],t)):n.push(`${qe(t)}: ${r=t,s=e[t],null==s||"boolean"==typeof s||""===s?"":"number"!=typeof s||0===s||r in Ge?String(s).trim():`${s}px`};`));var r,s;return t?[`${t} {`,...n,"}"]:n};function Ke(e,t,n,r){if(Array.isArray(e)){const s=[];for(let o,i=0,a=e.length;i<a;i+=1)o=Ke(e[i],t,n,r),""!==o&&(Array.isArray(o)?s.push(...o):s.push(o));return s}if(Ze(e))return"";if(Xe(e))return`.${e.styledComponentId}`;if(Ue(e)){if("function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return e;{const s=e,o=s(t);return"object"!=typeof o||Array.isArray(o)||o instanceof De||Ve(o)||console.error(`${Fe(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.`),Ke(o,t,n,r)}}var s;return e instanceof De?n?(e.inject(n,r),e.getName(r)):e:Ve(e)?Je(e):e.toString()}class Qe{componentId;isStatic;rules;constructor(e,t){this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(Ue(n)&&!Xe(n))return!1}return!0}(e),I.registerId(this.componentId+1)}createStyles(e,t,n,r){const s=r(Ke(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,s)}removeStyles(e,t){t.clearRules(this.componentId+e)}renderStyles(e,t,n,r){e>2&&I.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}const et=n.default.createContext(void 0),tt=et.Consumer,nt=/invalid hook call/i,rt=new Set,st=(t,n)=>{{const r=`The component ${t}${n?` with the id of "${n}"`:""} 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.`,s=console.error;try{let t=!0;console.error=(e,...n)=>{nt.test(e)?(t=!1,rt.delete(r)):s(e,...n)},e.useRef(),t&&!rt.has(r)&&(console.warn(r),rt.add(r))}catch(e){nt.test(e.message)&&rt.delete(r)}finally{console.error=s}}};function ot(e,t,n=d){return e.theme!==n.theme&&e.theme||t||n.theme}const it=/(a)(d)/gi,at=e=>String.fromCharCode(e+(e>25?39:97));function ct(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=at(t%52)+n;return(at(t%52)+n).replace(it,"$1-$2")}function lt(e){return ct(ke(e)>>>0)}function ut(e,t){const n=[e[0]];for(let r=0,s=t.length;r<s;r+=1)n.push(t[r],e[r+1]);return n}const dt=e=>(Array.isArray(e)&&(e.isCss=!0),e);function ht(e,...t){if(Ue(e)||Ve(e))return dt(Ke(ut(u,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?n:dt(Ke(ut(n,t)))}const pt="function"==typeof Symbol&&Symbol.for,ft=pt?Symbol.for("react.memo"):60115,mt=pt?Symbol.for("react.forward_ref"):60112,gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},St={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bt={[mt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ft]:St};function wt(e){return("type"in(t=e)&&t.type.$$typeof)===ft?St:"$$typeof"in e?bt[e.$$typeof]:gt;var t}const vt=Object.defineProperty,xt=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,kt=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Pt=Object.prototype;function At(e,t,n){if("string"!=typeof t){if(Pt){const r=$t(t);r&&r!==Pt&&At(e,r,n)}let r=xt(t);Ct&&(r=r.concat(Ct(t)));const s=wt(e),o=wt(t);for(let i=0;i<r.length;++i){const a=r[i];if(!(a in yt||n&&n[a]||o&&a in o||s&&a in s)){const n=kt(t,a);try{vt(e,a,n)}catch(e){}}}}return e}const It={StyleSheet:I,mainSheet:Oe};"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__"]||=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 Rt=Object.freeze({__proto__:null,createGlobalStyle:function(e,...t){const r=ht(e,...t),s=`sc-global-${lt(JSON.stringify(r))}`,o=new Qe(r,s);st(s);const i=e=>{const t=Ee(),i=je(),c=n.default.useContext(et),l=n.default.useRef(t.allocateGSInstance(s)).current;return n.default.Children.count(e.children)&&console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`),r.some((e=>"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."),t.server&&a(l,e,t,c,i),(n.default.useInsertionEffect||n.default.useLayoutEffect)((()=>{if(!t.server)return a(l,e,t,c,i),()=>o.removeStyles(l,t)}),[l,e,t,c,i]),null};function a(e,t,n,r,s){if(o.isStatic)o.renderStyles(e,l,n,s);else{const a={...t,theme:ot(t,r,i.defaultProps)};o.renderStyles(e,a,n,s)}}return n.default.memo(i)},css:ht,isStyledComponent:Xe,keyframes:function(e,...t){"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.");const n=ht(e,...t).join(""),r=lt(n);return new De(r,n)},ServerStyleSheet:class{instance;sealed;constructor(){this.instance=new I({isServer:!0}),this.sealed=!1}_emitSheetCSS=()=>{const e=this.instance.toString(),t=k();return`<style ${[t&&`nonce="${t}"`,`${r}="true"`,`${o}="6.0.0-alpha.7"`].filter(Boolean).join(" ")}>${e}</style>`};collectStyles(e){if(this.sealed)throw p(2);return n.default.createElement(Ne,{sheet:this.instance},e)}getStyleTags=()=>{if(this.sealed)throw p(2);return this._emitSheetCSS()};getStyleElement=()=>{if(this.sealed)throw p(2);const e={[r]:"",[o]:i,dangerouslySetInnerHTML:{__html:this.instance.toString()}},t=k();return t&&(e.nonce=t),[n.default.createElement("style",{...e,key:"sc-0-0"})]};interleaveWithNodeStream(e){throw p(3)}seal=()=>{this.sealed=!0}},StyleSheetConsumer:Re,StyleSheetContext:Ie,StyleSheetManager:Ne,ThemeConsumer:tt,ThemeContext:et,ThemeProvider:function(t){const r=e.useContext(et),s=e.useMemo((()=>function(e,t){if(!e)throw p(14);if(Ue(e)){const n=e(t);if(null===n||Array.isArray(n)||"object"!=typeof n)throw p(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw p(8);return t?{...t,...e}:e}(t.theme,r)),[t.theme,r]);return t.children?n.default.createElement(et.Provider,{value:s},t.children):null},useTheme:()=>e.useContext(et),version:i,withTheme:function(e){const t=n.default.forwardRef(((t,r)=>{const s=ot(t,n.default.useContext(et),e.defaultProps);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 "${Fe(e)}"`),n.default.createElement(e,{...t,theme:s,ref:r})}));return t.displayName=`WithTheme(${Fe(e)})`,At(t,e)},__PRIVATE__:It});function Tt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ot=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|incremental|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)-.*))$/,_t=Tt((function(e){return Ot.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Et=["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"];const jt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Nt=/(^-|-$)/g;function Dt(e){return e.replace(jt,"-").replace(Nt,"")}function Mt(e){return"string"==typeof e&&e.charAt(0)===e.charAt(0).toLowerCase()}function zt(e){return Mt(e)?`styled.${e}`:`Styled(${Fe(e)})`}function Lt(e,t){return e&&t?`${e} ${t}`:e||t}function Gt(e,t,n=!1){if(!n&&!Ve(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Gt(e[n],t[n]);else if(Ve(t))for(const n in t)e[n]=Gt(e[n],t[n]);return e}const Ft=ke(i);class Bt{baseHash;baseStyle;componentId;isStatic;rules;staticRulesId;constructor(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=!1,this.componentId=t,this.baseHash=Ce(Ft,t),this.baseStyle=n,I.registerId(t)}generateAndInjectStyles(e,t,n){const{componentId:r}=this,s=[];if(this.baseStyle&&s.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))s.push(this.staticRulesId);else{const o=Ke(this.rules,e,t,n).join(""),i=ct(Ce(this.baseHash,o)>>>0);if(!t.hasNameForId(r,i)){const e=n(o,`.${i}`,void 0,r);t.insertRules(r,i,e)}s.push(i),this.staticRulesId=i}else{const{length:o}=this.rules;let i=Ce(this.baseHash,n.hash),a="";for(let r=0;r<o;r++){const s=this.rules[r];if("string"==typeof s)a+=s,i=Ce(i,s+r);else if(s){const o=Ke(s,e,t,n),c=Array.isArray(o)?o.join(""):o;i=Ce(i,c+r),a+=c}}if(a){const e=ct(i>>>0);if(!t.hasNameForId(r,e)){const s=n(a,`.${e}`,void 0,r);t.insertRules(r,e,s)}s.push(e)}}return s.join(" ")}}const Ht={};function Wt(e,t){const n="string"!=typeof e?"sc":Dt(e);Ht[n]=(Ht[n]||0)+1;const r=`${n}-${lt(i+n+Ht[n])}`;return t?`${t}-${r}`:r}function Yt(t,r,s){const o=Xe(t),i=t,a=!Mt(t),{attrs:c=u,componentId:l=Wt(r.displayName,r.parentComponentId),displayName:h=zt(t)}=r,p=r.displayName&&r.componentId?`${Dt(r.displayName)}-${r.componentId}`:r.componentId||l,f=o&&i.attrs?i.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:m}=r;if(o&&i.shouldForwardProp){const e=i.shouldForwardProp;if(r.shouldForwardProp){const t=r.shouldForwardProp;m=(n,r,s)=>e(n,r,s)&&t(n,r,s)}else m=e}const g=new Bt(s,p,o?i.componentStyle:void 0),y=g.isStatic&&0===c.length;function S(t,n){return function(t,n,r,s){const{attrs:o,componentStyle:i,defaultProps:a,foldedComponentIds:c,shouldForwardProp:l,styledComponentId:u,target:h}=t;e.useDebugValue(u);const p=ot(n,e.useContext(et),a),[f,m]=function(e=d,t,n){const r={...t,theme:e},s={};return n.forEach((e=>{const t="function"==typeof e?e(r):e;let n;for(n in t)r[n]=s[n]="className"===n?Lt(s[n],t[n]):t[n]})),[r,s]}(p||d,n,o),g=function(t,n,r,s){const o=Ee(),i=je(),a=n?t.generateAndInjectStyles(d,o,i):t.generateAndInjectStyles(r,o,i);return e.useDebugValue(a),!n&&s&&s(a),a}(i,s,f,t.warnTooManyClasses),y=r,S=m.$as||n.$as||m.as||n.as||h,b=Mt(S),w=m!==n?{...n,...m}:n,v={};for(const e in w)"$"!==e[0]&&"as"!==e&&("forwardedAs"===e?v.as=w[e]:(l?l(e,_t,S):!b||_t(e))&&(v[e]=w[e]));return n.style&&m.style!==n.style&&(v.style={...n.style,...m.style}),v[b&&-1===Et.indexOf(S)?"class":"className"]=c.concat(u,g!==u?g:null,n.className,m.className).filter(Boolean).join(" "),v.ref=y,e.createElement(S,v)}(b,t,n,y)}S.displayName=h;let b=n.default.forwardRef(S);return b.attrs=f,b.componentStyle=g,b.displayName=h,b.shouldForwardProp=m,b.foldedComponentIds=o?i.foldedComponentIds.concat(i.styledComponentId):u,b.styledComponentId=p,b.target=o?i.target:t,b.withComponent=function(e){const{componentId:t,...n}=r,o=t&&`${t}-${Mt(e)?e:Dt(Fe(e))}`;return Yt(e,{...n,attrs:f,componentId:o},s)},Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=o?function(e={},...t){for(const n of t)Gt(e,n,!0);return e}({},i.defaultProps,e):e}}),st(h,p),b.warnTooManyClasses=((e,t)=>{let n={},r=!1;return s=>{if(!r&&(n[s]=!0,Object.keys(n).length>=200)){const s=t?` with the id of "${t}"`:"";console.warn(`Over 200 classes were generated for component ${e}${s}.\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 />`),r=!0,n={}}}})(h,p),b.toString=()=>`.${b.styledComponentId}`,a&&At(b,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}function qt(e,t,n=d){if(!t)throw p(1,t);const r=(r,...s)=>e(t,n,ht(r,...s));return r.attrs=r=>qt(e,t,{...n,attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}),r.withConfig=r=>qt(e,t,{...n,...r}),r}const Ut=e=>qt(Yt,e),Vt=Ut;Et.forEach((e=>{Vt[e]=Ut(e)}));for(const e in Rt)Vt[e]=Rt[e];return Vt}));
|
|
2
2
|
//# sourceMappingURL=styled-components.js.map
|