styled-components 6.3.9-prerelease.0 → 6.3.9-prerelease.1

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=/*#__PURE__*/s(t),c=/*#__PURE__*/s(n),l=/*#__PURE__*/i(r),u=/*#__PURE__*/s(o),d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="active",f="data-styled-version",h="6.3.9-prerelease.0",m="/*!sc*/\n",y="undefined"!=typeof window&&"undefined"!=typeof document,v=void 0===c.default.createContext,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S={},w=/invalid hook call/i,_=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){if(v)return;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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",s=console.error;try{var i=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];w.test(t)?(i=!1,_.delete(o)):s.apply(void 0,e.__spreadArray([t],n,!1))},"function"==typeof c.default.useState&&c.default.useState(null),i&&!_.has(o)&&(console.warn(o),_.add(o))}catch(e){w.test(e.message)&&_.delete(o)}finally{console.error=s}}},C=Object.freeze([]),E=Object.freeze({});function N(e,t,n){return void 0===n&&(n=E),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),P=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function O(e){return e.replace(P,"-").replace(I,"")}var x=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function D(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(x,"$1-$2")}var R,j=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return j(5381,e)};function M(e){return D(k(e)>>>0)}function V(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var L="function"==typeof Symbol&&Symbol.for,z=L?Symbol.for("react.memo"):60115,B=L?Symbol.for("react.forward_ref"):60112,G={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y=((R={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[z]=q,R);function W(e){return("type"in(t=e)&&t.type.$$typeof)===z?q:"$$typeof"in e?Y[e.$$typeof]:G;var t}var H=Object.defineProperty,U=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function Q(e,t,n){if("string"!=typeof t){if(K){var r=Z(t);r&&r!==K&&Q(e,r,n)}var o=U(t);J&&(o=o.concat(J(t)));for(var s=W(e),i=W(t),a=0;a<o.length;++a){var c=o[a];if(!(c in $||n&&n[c]||i&&c in i||s&&c in s)){var l=X(t,c);try{H(e,c,l)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=se(e[r],t[r]);else if(oe(t))for(var r in t)e[r]=se(e[r],t[r]);return e}function ie(e,t){Object.defineProperty(e,"toString",{value:t})}var ae="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function le(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e.__spreadArray([ae[t]],n,!1)).trim())}var ue=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 le(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},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,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(m);return t},e}(),de=1<<30,pe=new Map,fe=new Map,he=1,me=function(e){if(pe.has(e))return pe.get(e);for(;fe.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>de))throw le(16,"".concat(t));return pe.set(e,t),fe.set(t,e),t},ye=function(e,t){he=t+1,pe.set(e,t),fe.set(t,e)},ve="style[".concat(d,"][").concat(f,'="').concat(h,'"]'),ge=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},we=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(m),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ge);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ye(u,l),Se(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},_e=function(e){for(var t=document.querySelectorAll(ve),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==p&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ce=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,p),r.setAttribute(f,h);var i=be();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ee=function(){function e(e){this.element=Ce(e),this.element.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 le(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),Ne=function(){function e(e){this.element=Ce(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),Ae=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}(),Pe=y,Ie={isServer:!y,useCSSOMInjection:!g},Oe=function(){function t(t,n,r){void 0===t&&(t=E),void 0===n&&(n={});var o=this;this.options=e.__assign(e.__assign({},Ie),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&y&&Pe&&(Pe=!1,_e(this)),ie(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return fe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(m)},s=0;s<n;s++)o(s);return r}(o)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&y&&_e(this)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ae(n):t?new Ee(n):new Ne(n)}(this.options),new ue(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),xe=/&/g,Te=47,De=42;function Re(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,s=0;s<t;s++){var i=e.charCodeAt(s);if(0!==r||o||i!==Te||e.charCodeAt(s+1)!==De)if(o)i===De&&e.charCodeAt(s+1)===Te&&(o=!1,s++);else if(34!==i&&39!==i||0!==s&&92===e.charCodeAt(s-1)){if(0===r)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===r?r=i:r===i&&(r=0);else o=!0,s++}return 0!==n||0!==r}function je(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function ke(e){var t,n,r,o=void 0===e?E:e,s=o.options,i=void 0===s?E:s,a=o.plugins,c=void 0===a?C:a,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=c.slice();d.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xe,n).replace(r,u))}),i.prefix&&d.push(l.prefixer),d.push(l.stringify);var p=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=function(e){if(!Re(e))return e;for(var t=e.length,n="",r=0,o=0,s=0,i=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==s||i||c!==Te||e.charCodeAt(a+1)!==De)if(i)c===De&&e.charCodeAt(a+1)===Te&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===s)if(123===c)o++;else if(125===c){if(--o<0){for(var l=a+1;l<t;){var u=e.charCodeAt(l);if(59===u||10===u)break;l++}l<t&&59===e.charCodeAt(l)&&l++,o=0,a=l-1,r=l;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===s?s=c:s===c&&(s=0);else i=!0,a++}if(r<t){var d=e.substring(r);Re(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,s=0,i=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===s)if(a===Te&&o+1<t&&e.charCodeAt(o+1)===De){for(o+=2;o+1<t&&(e.charCodeAt(o)!==De||e.charCodeAt(o+1)!==Te);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))i=1,o++;else if(i>0)41===a?i--:40===a&&i++,o++;else if(a===De&&o+1<t&&e.charCodeAt(o+1)===Te)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===Te&&o+1<t&&e.charCodeAt(o+1)===Te){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===s?s=a:s===a&&(s=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(e)),u=l.compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(u=je(u,i.namespace));var p=[];return l.serialize(u,l.middleware(d.concat(l.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||le(15),j(e,t.name)},5381).toString():"",p}var Me=new Oe,Ve=ke(),Fe={shouldForwardProp:void 0,styleSheet:Me,stylis:Ve},Le=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Fe)}}:c.default.createContext(Fe),ze=Le.Consumer,Be=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0);function Ge(){return v?Fe:c.default.useContext(Le)}function $e(e){if(v||!c.default.useMemo)return e.children;var t=Ge().styleSheet,n=c.default.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=c.default.useMemo(function(){return ke({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=c.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return c.default.createElement(Le.Provider,{value:o},c.default.createElement(Be.Provider,{value:r},e.children))}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ve);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ie(this,function(){throw le(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ve),this.name+e.hash},e}();function Ye(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in u.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!Ue(o)&&(Array.isArray(o)&&o.isCss||ee(o)?n.push("".concat(He(r),":"),o,";"):oe(o)?n.push.apply(n,e.__spreadArray(e.__spreadArray(["".concat(r," {")],Je(o),!1),["}"],!1)):n.push("".concat(He(r),": ").concat(Ye(r,o),";")))}return n};function Xe(e,t,n,r){if(Ue(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof qe||oe(o)||null===o||console.error("".concat(V(e)," 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.")),Xe(o,t,n,r)}var s;return e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:oe(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(C,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}var Ke=k(h),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=j(Ke,t),this.baseStyle=n,Oe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ne(r,this.staticRulesId);else{var o=re(Xe(this.rules,e,t,n)),s=D(j(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=ne(r,s),this.staticRulesId=s}else{for(var a=j(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=j(a,u));else if(u){var d=re(Xe(u,e,t,n));a=j(a,d+l),c+=d}}if(c){var p=D(a>>>0);if(!t.hasNameForId(this.componentId,p)){var f=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}r=ne(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),et=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0),tt=et.Consumer,nt={},rt=new Set;function ot(t,r,o){var s=te(t),i=t,l=!F(t),u=r.attrs,d=void 0===u?C:u,p=r.componentId,f=void 0===p?function(e,t){var n="string"!=typeof e?"sc":O(e);nt[n]=(nt[n]||0)+1;var r="".concat(n,"-").concat(M(h+n+nt[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):p,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(O(r.displayName),"-").concat(r.componentId):r.componentId||f,S=s&&i.attrs?i.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(s&&i.shouldForwardProp){var _=i.shouldForwardProp;if(r.shouldForwardProp){var P=r.shouldForwardProp;w=function(e,t){return _(e,t)&&P(e,t)}}else w=_}var I=new Qe(o,g,s?i.componentStyle:void 0);function x(t,r){return function(t,r,o){var s=t.attrs,i=t.componentStyle,l=t.defaultProps,u=t.foldedComponentIds,d=t.styledComponentId,p=t.target,f=v?void 0:c.default.useContext(et),h=Ge(),m=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(d);var y=N(r,f,l)||E,g=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=ee(o=t[i])?o(s):o;for(var c in a)"className"===c?s.className=ne(s.className,a[c]):"style"===c?s.style=e.__assign(e.__assign({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(s,r,y),S=g.as||p,w={};for(var _ in g)void 0===g[_]||"$"===_[0]||"as"===_||"theme"===_&&g.theme===y||("forwardedAs"===_?w.as=g.forwardedAs:m&&!m(_,S)||(w[_]=g[_],m||"development"!==process.env.NODE_ENV||a.default(_)||rt.has(_)||!A.has(S)||(rt.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var n=Ge(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(r.className),r}(i,g),C=b.className,P=b.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(C);var I=ne(u,d);C&&(I+=" "+C),g.className&&(I+=" "+g.className),w[F(S)&&!A.has(S)?"class":"className"]=I,o&&(w.ref=o);var O=n.createElement(S,w);return v&&P?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(C),children:P}),O):O}(T,t,r)}x.displayName=y;var T=c.default.forwardRef(x);return T.attrs=S,T.componentStyle=I,T.displayName=y,T.shouldForwardProp=w,T.foldedComponentIds=s?ne(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=s?i.target:t,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)se(e,o[r],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(b(y,g),T.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\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={}}}}(y,g)),ie(T,function(){return".".concat(T.styledComponentId)}),l&&Q(T,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function st(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 it=function(e){return Object.assign(e,{isCss:!0})};function at(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ee(t)||oe(t))return it(Xe(st(C,e.__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Xe(o):it(Xe(st(o,n)))}function ct(t,n,r){if(void 0===r&&(r=E),!n)throw le(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,at.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return ct(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return ct(t,n,e.__assign(e.__assign({},r),o))},o}var lt=function(e){return ct(ot,e)},ut=lt;A.forEach(function(e){ut[e]=lt(e)});var dt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),Oe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(re(Xe(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Oe.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?n.hasNameForId(o,o)||this.createStyles(e,t,n,r):(this.removeStyles(e,n),this.createStyles(e,t,n,r))},e}(),pt=/^\s*<\/[a-z]/i,ft=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=be(),r=re([n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat(f,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw le(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw le(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[d]="",n[f]=h,n.dangerouslySetInnerHTML={__html:r},n),s=be();return s&&(o.nonce=s),[c.default.createElement("style",e.__assign({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Oe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw le(2);return c.default.createElement($e,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){if(y)throw le(3);if(this.sealed)throw le(2);this.seal();var t=require("stream").Transform,n=this.instance,r=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),i=r();if(n.clearTag(),pt.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),l=s.slice(a);this.push(c+i+l)}else this.push(i+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},t}(),ht={StyleSheet:Oe,mainSheet:Me};"production"!==process.env.NODE_ENV&&"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");var mt="__sc-".concat(d,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[mt]||(window[mt]=0),1===window[mt]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[mt]+=1),exports.ServerStyleSheet=ft,exports.StyleSheetConsumer=ze,exports.StyleSheetContext=Le,exports.StyleSheetManager=$e,exports.ThemeConsumer=tt,exports.ThemeContext=et,exports.ThemeProvider=function(t){if(v)return t.children;var n=c.default.useContext(et),r=c.default.useMemo(function(){return function(t,n){if(!t)throw le(14);if(ee(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw le(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw le(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?c.default.createElement(et.Provider,{value:r},t.children):null},exports.__PRIVATE__=ht,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=at.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(M(JSON.stringify(o))),i=new dt(o,s);"production"!==process.env.NODE_ENV&&b(s);var a=new WeakMap,l=function(e){var t=Ge(),n=v?void 0:c.default.useContext(et),r=a.get(t.styleSheet);if(void 0===r&&(r=t.styleSheet.allocateGSInstance(s),a.set(t.styleSheet,r)),"production"!==process.env.NODE_ENV&&c.default.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.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."),("undefined"==typeof window||!t.styleSheet.server)&&u(r,e,t.styleSheet,n,t.stylis),y&&!v&&c.default.useLayoutEffect(function(){return t.styleSheet.server||u(r,e,t.styleSheet,n,t.stylis),function(){i.removeStyles(r,t.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(s,'"]')).forEach(function(e){return e.remove()})}},[r,e,t.styleSheet,n,t.stylis]),v){var l=s+r,d="undefined"==typeof window?t.styleSheet.getTag().getGroup(me(l)):"";if(d){var p="".concat(s,"-").concat(r);return c.default.createElement("style",{key:p,"data-styled-global":s,precedence:"styled-components",href:p,children:d})}}return null};function u(t,n,r,o,s){if(i.isStatic)i.renderStyles(t,S,r,s);else{var a=e.__assign(e.__assign({},n),{theme:N(n,o,l.defaultProps)});i.renderStyles(t,a,r,s)}}return c.default.memo(l)},exports.css=at,exports.default=ut,exports.isStyledComponent=te,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"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 o=re(at.apply(void 0,e.__spreadArray([t],n,!1))),s=M(o);return new qe(s,o)},exports.styled=ut,exports.useTheme=function(){var e=v?void 0:c.default.useContext(et);if(!e)throw le(18);return e},exports.version=h,exports.withTheme=function(t){var n=c.default.forwardRef(function(n,r){var o=N(n,v?void 0:c.default.useContext(et),t.defaultProps);return"production"!==process.env.NODE_ENV&&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(V(t),'"')),c.default.createElement(t,e.__assign(e.__assign({},n),{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(V(t),")"),Q(n,t)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=/*#__PURE__*/s(t),c=/*#__PURE__*/s(n),l=/*#__PURE__*/i(r),u=/*#__PURE__*/s(o),d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="active",f="data-styled-version",h="6.3.9-prerelease.1",m="/*!sc*/\n",y="undefined"!=typeof window&&"undefined"!=typeof document,v=void 0===c.default.createContext,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S={},w=/invalid hook call/i,_=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){if(v)return;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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",s=console.error;try{var i=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];w.test(t)?(i=!1,_.delete(o)):s.apply(void 0,e.__spreadArray([t],n,!1))},"function"==typeof c.default.useState&&c.default.useState(null),i&&!_.has(o)&&(console.warn(o),_.add(o))}catch(e){w.test(e.message)&&_.delete(o)}finally{console.error=s}}},C=Object.freeze([]),E=Object.freeze({});function N(e,t,n){return void 0===n&&(n=E),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),P=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function O(e){return e.replace(P,"-").replace(I,"")}var x=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function D(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(x,"$1-$2")}var R,j=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return j(5381,e)};function M(e){return D(k(e)>>>0)}function V(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var L="function"==typeof Symbol&&Symbol.for,z=L?Symbol.for("react.memo"):60115,B=L?Symbol.for("react.forward_ref"):60112,G={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y=((R={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[z]=q,R);function W(e){return("type"in(t=e)&&t.type.$$typeof)===z?q:"$$typeof"in e?Y[e.$$typeof]:G;var t}var H=Object.defineProperty,U=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function Q(e,t,n){if("string"!=typeof t){if(K){var r=Z(t);r&&r!==K&&Q(e,r,n)}var o=U(t);J&&(o=o.concat(J(t)));for(var s=W(e),i=W(t),a=0;a<o.length;++a){var c=o[a];if(!(c in $||n&&n[c]||i&&c in i||s&&c in s)){var l=X(t,c);try{H(e,c,l)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=se(e[r],t[r]);else if(oe(t))for(var r in t)e[r]=se(e[r],t[r]);return e}function ie(e,t){Object.defineProperty(e,"toString",{value:t})}var ae="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function le(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e.__spreadArray([ae[t]],n,!1)).trim())}var ue=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 le(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},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,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(m);return t},e}(),de=1<<30,pe=new Map,fe=new Map,he=1,me=function(e){if(pe.has(e))return pe.get(e);for(;fe.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>de))throw le(16,"".concat(t));return pe.set(e,t),fe.set(t,e),t},ye=function(e,t){he=t+1,pe.set(e,t),fe.set(t,e)},ve="style[".concat(d,"][").concat(f,'="').concat(h,'"]'),ge=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},we=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(m),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ge);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ye(u,l),Se(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},_e=function(e){for(var t=document.querySelectorAll(ve),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==p&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ce=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,p),r.setAttribute(f,h);var i=be();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ee=function(){function e(e){this.element=Ce(e),this.element.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 le(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),Ne=function(){function e(e){this.element=Ce(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),Ae=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}(),Pe=y,Ie={isServer:!y,useCSSOMInjection:!g},Oe=function(){function t(t,n,r){void 0===t&&(t=E),void 0===n&&(n={});var o=this;this.options=e.__assign(e.__assign({},Ie),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&y&&Pe&&(Pe=!1,_e(this)),ie(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return fe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(m)},s=0;s<n;s++)o(s);return r}(o)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&y&&_e(this)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ae(n):t?new Ee(n):new Ne(n)}(this.options),new ue(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),xe=/&/g,Te=47,De=42;function Re(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,s=0;s<t;s++){var i=e.charCodeAt(s);if(0!==r||o||i!==Te||e.charCodeAt(s+1)!==De)if(o)i===De&&e.charCodeAt(s+1)===Te&&(o=!1,s++);else if(34!==i&&39!==i||0!==s&&92===e.charCodeAt(s-1)){if(0===r)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===r?r=i:r===i&&(r=0);else o=!0,s++}return 0!==n||0!==r}function je(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function ke(e){var t,n,r,o=void 0===e?E:e,s=o.options,i=void 0===s?E:s,a=o.plugins,c=void 0===a?C:a,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=c.slice();d.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xe,n).replace(r,u))}),i.prefix&&d.push(l.prefixer),d.push(l.stringify);var p=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=function(e){if(!Re(e))return e;for(var t=e.length,n="",r=0,o=0,s=0,i=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==s||i||c!==Te||e.charCodeAt(a+1)!==De)if(i)c===De&&e.charCodeAt(a+1)===Te&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===s)if(123===c)o++;else if(125===c){if(--o<0){for(var l=a+1;l<t;){var u=e.charCodeAt(l);if(59===u||10===u)break;l++}l<t&&59===e.charCodeAt(l)&&l++,o=0,a=l-1,r=l;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===s?s=c:s===c&&(s=0);else i=!0,a++}if(r<t){var d=e.substring(r);Re(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,s=0,i=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===s)if(a===Te&&o+1<t&&e.charCodeAt(o+1)===De){for(o+=2;o+1<t&&(e.charCodeAt(o)!==De||e.charCodeAt(o+1)!==Te);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))i=1,o++;else if(i>0)41===a?i--:40===a&&i++,o++;else if(a===De&&o+1<t&&e.charCodeAt(o+1)===Te)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===Te&&o+1<t&&e.charCodeAt(o+1)===Te){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===s?s=a:s===a&&(s=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(e)),u=l.compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(u=je(u,i.namespace));var p=[];return l.serialize(u,l.middleware(d.concat(l.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||le(15),j(e,t.name)},5381).toString():"",p}var Me=new Oe,Ve=ke(),Fe={shouldForwardProp:void 0,styleSheet:Me,stylis:Ve},Le=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Fe)}}:c.default.createContext(Fe),ze=Le.Consumer,Be=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0);function Ge(){return v?Fe:c.default.useContext(Le)}function $e(e){if(v||!c.default.useMemo)return e.children;var t=Ge().styleSheet,n=c.default.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=c.default.useMemo(function(){return ke({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=c.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return c.default.createElement(Le.Provider,{value:o},c.default.createElement(Be.Provider,{value:r},e.children))}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ve);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ie(this,function(){throw le(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ve),this.name+e.hash},e}();function Ye(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in u.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!Ue(o)&&(Array.isArray(o)&&o.isCss||ee(o)?n.push("".concat(He(r),":"),o,";"):oe(o)?n.push.apply(n,e.__spreadArray(e.__spreadArray(["".concat(r," {")],Je(o),!1),["}"],!1)):n.push("".concat(He(r),": ").concat(Ye(r,o),";")))}return n};function Xe(e,t,n,r){if(Ue(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof qe||oe(o)||null===o||console.error("".concat(V(e)," 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.")),Xe(o,t,n,r)}var s;return e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:oe(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(C,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}var Ke=k(h),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=j(Ke,t),this.baseStyle=n,Oe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ne(r,this.staticRulesId);else{var o=re(Xe(this.rules,e,t,n)),s=D(j(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=ne(r,s),this.staticRulesId=s}else{for(var a=j(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=j(a,u));else if(u){var d=re(Xe(u,e,t,n));a=j(a,d+l),c+=d}}if(c){var p=D(a>>>0);if(!t.hasNameForId(this.componentId,p)){var f=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}r=ne(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),et=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0),tt=et.Consumer,nt={},rt=new Set;function ot(t,r,o){var s=te(t),i=t,l=!F(t),u=r.attrs,d=void 0===u?C:u,p=r.componentId,f=void 0===p?function(e,t){var n="string"!=typeof e?"sc":O(e);nt[n]=(nt[n]||0)+1;var r="".concat(n,"-").concat(M(h+n+nt[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):p,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(O(r.displayName),"-").concat(r.componentId):r.componentId||f,S=s&&i.attrs?i.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(s&&i.shouldForwardProp){var _=i.shouldForwardProp;if(r.shouldForwardProp){var P=r.shouldForwardProp;w=function(e,t){return _(e,t)&&P(e,t)}}else w=_}var I=new Qe(o,g,s?i.componentStyle:void 0);function x(t,r){return function(t,r,o){var s=t.attrs,i=t.componentStyle,l=t.defaultProps,u=t.foldedComponentIds,d=t.styledComponentId,p=t.target,f=v?void 0:c.default.useContext(et),h=Ge(),m=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(d);var y=N(r,f,l)||E,g=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=ee(o=t[i])?o(s):o;for(var c in a)"className"===c?s.className=ne(s.className,a[c]):"style"===c?s.style=e.__assign(e.__assign({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(s,r,y),S=g.as||p,w={};for(var _ in g)void 0===g[_]||"$"===_[0]||"as"===_||"theme"===_&&g.theme===y||("forwardedAs"===_?w.as=g.forwardedAs:m&&!m(_,S)||(w[_]=g[_],m||"development"!==process.env.NODE_ENV||a.default(_)||rt.has(_)||!A.has(S)||(rt.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var n=Ge(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(r.className),r}(i,g),C=b.className,P=b.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(C);var I=ne(u,d);C&&(I+=" "+C),g.className&&(I+=" "+g.className),w[F(S)&&!A.has(S)?"class":"className"]=I,o&&(w.ref=o);var O=n.createElement(S,w);return v&&P?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(C),children:P}),O):O}(T,t,r)}x.displayName=y;var T=c.default.forwardRef(x);return T.attrs=S,T.componentStyle=I,T.displayName=y,T.shouldForwardProp=w,T.foldedComponentIds=s?ne(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=s?i.target:t,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)se(e,o[r],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(b(y,g),T.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\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={}}}}(y,g)),ie(T,function(){return".".concat(T.styledComponentId)}),l&&Q(T,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function st(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 it=function(e){return Object.assign(e,{isCss:!0})};function at(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ee(t)||oe(t))return it(Xe(st(C,e.__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Xe(o):it(Xe(st(o,n)))}function ct(t,n,r){if(void 0===r&&(r=E),!n)throw le(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,at.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return ct(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return ct(t,n,e.__assign(e.__assign({},r),o))},o}var lt=function(e){return ct(ot,e)},ut=lt;A.forEach(function(e){ut[e]=lt(e)});var dt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),Oe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(re(Xe(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Oe.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?n.hasNameForId(o,o)||this.createStyles(e,t,n,r):(this.removeStyles(e,n),this.createStyles(e,t,n,r))},e}(),pt=/^\s*<\/[a-z]/i,ft=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=be(),r=re([n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat(f,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw le(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw le(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[d]="",n[f]=h,n.dangerouslySetInnerHTML={__html:r},n),s=be();return s&&(o.nonce=s),[c.default.createElement("style",e.__assign({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Oe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw le(2);return c.default.createElement($e,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){if(y)throw le(3);if(this.sealed)throw le(2);this.seal();var t=require("stream").Transform,n=this.instance,r=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),i=r();if(n.clearTag(),pt.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),l=s.slice(a);this.push(c+i+l)}else this.push(i+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},t}(),ht={StyleSheet:Oe,mainSheet:Me};"production"!==process.env.NODE_ENV&&"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");var mt="__sc-".concat(d,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[mt]||(window[mt]=0),1===window[mt]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[mt]+=1),exports.ServerStyleSheet=ft,exports.StyleSheetConsumer=ze,exports.StyleSheetContext=Le,exports.StyleSheetManager=$e,exports.ThemeConsumer=tt,exports.ThemeContext=et,exports.ThemeProvider=function(t){if(v)return t.children;var n=c.default.useContext(et),r=c.default.useMemo(function(){return function(t,n){if(!t)throw le(14);if(ee(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw le(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw le(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?c.default.createElement(et.Provider,{value:r},t.children):null},exports.__PRIVATE__=ht,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=at.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(M(JSON.stringify(o))),i=new dt(o,s);"production"!==process.env.NODE_ENV&&b(s);var a=new WeakMap,l=function(e){var t=Ge(),n=v?void 0:c.default.useContext(et),r=a.get(t.styleSheet);if(void 0===r&&(r=t.styleSheet.allocateGSInstance(s),a.set(t.styleSheet,r)),"production"!==process.env.NODE_ENV&&c.default.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.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."),("undefined"==typeof window||!t.styleSheet.server)&&u(r,e,t.styleSheet,n,t.stylis),y&&!v&&c.default.useLayoutEffect(function(){return t.styleSheet.server||u(r,e,t.styleSheet,n,t.stylis),function(){i.removeStyles(r,t.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(s,'"]')).forEach(function(e){return e.remove()})}},[r,e,t.styleSheet,n,t.stylis]),v){var l=s+r,d="undefined"==typeof window?t.styleSheet.getTag().getGroup(me(l)):"";if(d){var p="".concat(s,"-").concat(r);return c.default.createElement("style",{key:p,"data-styled-global":s,precedence:"styled-components",href:p,children:d})}}return null};function u(t,n,r,o,s){if(i.isStatic)i.renderStyles(t,S,r,s);else{var a=e.__assign(e.__assign({},n),{theme:N(n,o,l.defaultProps)});i.renderStyles(t,a,r,s)}}return c.default.memo(l)},exports.css=at,exports.default=ut,exports.isStyledComponent=te,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"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 o=re(at.apply(void 0,e.__spreadArray([t],n,!1))),s=M(o);return new qe(s,o)},exports.styled=ut,exports.useTheme=function(){var e=v?void 0:c.default.useContext(et);if(!e)throw le(18);return e},exports.version=h,exports.withTheme=function(t){var n=c.default.forwardRef(function(n,r){var o=N(n,v?void 0:c.default.useContext(et),t.defaultProps);return"production"!==process.env.NODE_ENV&&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(V(t),'"')),c.default.createElement(t,e.__assign(e.__assign({},n),{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(V(t),")"),Q(n,t)};
2
2
  //# sourceMappingURL=styled-components.cjs.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t}from"tslib";import n from"@emotion/is-prop-valid";import r,{createElement as o}from"react";import*as s from"stylis";import i from"@emotion/unitless";var a="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",c="active",l="data-styled-version",u="6.3.9-prerelease.0",d="/*!sc*/\n",p="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===r.createContext,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m={},y=/invalid hook call/i,v=new Set,g=function(t,n){if("production"!==process.env.NODE_ENV){if(h)return;var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," 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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];y.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e([t],n,!1))},"function"==typeof r.useState&&r.useState(null),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){y.test(e.message)&&v.delete(s)}finally{console.error=i}}},S=Object.freeze([]),w=Object.freeze({});function b(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme}var E=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),C=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,N=/(^-|-$)/g;function A(e){return e.replace(C,"-").replace(N,"")}var P=/(a)(d)/gi,_=function(e){return String.fromCharCode(e+(e>25?39:97))};function I(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=_(t%52)+n;return(_(t%52)+n).replace(P,"$1-$2")}var O,D=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return D(5381,e)};function R(e){return I(T(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,M=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.forward_ref"):60112,F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z=((O={})[V]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O[M]=B,O);function G(e){return("type"in(t=e)&&t.type.$$typeof)===M?B:"$$typeof"in e?z[e.$$typeof]:F;var t}var $=Object.defineProperty,Y=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var r=H(t);r&&r!==U&&J(e,r,n)}var o=Y(t);q&&(o=o.concat(q(t)));for(var s=G(e),i=G(t),a=0;a<o.length;++a){var c=o[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var l=W(t,c);try{$(e,c,l)}catch(e){}}}}return e}function X(e){return"function"==typeof e}function Z(e){return"object"==typeof e&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Q(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function ee(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function te(e,t,n){if(void 0===n&&(n=!1),!n&&!ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=te(e[r],t[r]);else if(ee(t))for(var r in t)e[r]=te(e[r],t[r]);return e}function ne(e,t){Object.defineProperty(e,"toString",{value:t})}var re="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function se(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(oe.apply(void 0,e([re[t]],n,!1)).trim())}var ie=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 se(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},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,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(d);return t},e}(),ae=1<<30,ce=new Map,le=new Map,ue=1,de=function(e){if(ce.has(e))return ce.get(e);for(;le.has(ue);)ue++;var t=ue++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ae))throw se(16,"".concat(t));return ce.set(e,t),le.set(t,e),t},pe=function(e,t){ue=t+1,ce.set(e,t),le.set(t,e)},he="style[".concat(a,"][").concat(l,'="').concat(u,'"]'),fe=new RegExp("^".concat(a,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),me=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},ye=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(d),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(fe);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(pe(u,l),me(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},ve=function(e){for(var t=document.querySelectorAll(he),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(a)!==c&&(ye(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ge(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Se=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(a,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(a,c),r.setAttribute(l,u);var i=ge();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},we=function(){function e(e){this.element=Se(e),this.element.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 se(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),be=function(){function e(e){this.element=Se(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),Ee=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}(),Ce=p,Ne={isServer:!p,useCSSOMInjection:!f},Ae=function(){function e(e,n,r){void 0===e&&(e=w),void 0===n&&(n={});var o=this;this.options=t(t({},Ne),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&p&&Ce&&(Ce=!1,ve(this)),ne(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return le.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var c="".concat(a,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==s&&s.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(c,'{content:"').concat(l,'"}').concat(d)},s=0;s<n;s++)o(s);return r}(o)})}return e.registerId=function(e){return de(e)},e.prototype.rehydrate=function(){!this.server&&p&&ve(this)},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(t(t({},this.options),n),this.gs,r&&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.useCSSOMInjection,n=e.target;return e.isServer?new Ee(n):t?new we(n):new be(n)}(this.options),new ie(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(de(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(de(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(de(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Pe=/&/g,_e=47,Ie=42;function Oe(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,s=0;s<t;s++){var i=e.charCodeAt(s);if(0!==r||o||i!==_e||e.charCodeAt(s+1)!==Ie)if(o)i===Ie&&e.charCodeAt(s+1)===_e&&(o=!1,s++);else if(34!==i&&39!==i||0!==s&&92===e.charCodeAt(s-1)){if(0===r)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===r?r=i:r===i&&(r=0);else o=!0,s++}return 0!==n||0!==r}function De(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=De(e.children,t)),e})}function Te(e){var t,n,r,o=void 0===e?w:e,i=o.options,a=void 0===i?w:i,c=o.plugins,l=void 0===c?S:c,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=l.slice();d.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Pe,n).replace(r,u))}),a.prefix&&d.push(s.prefixer),d.push(s.stringify);var p=function(e,o,i,c){void 0===o&&(o=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=function(e){if(!Oe(e))return e;for(var t=e.length,n="",r=0,o=0,s=0,i=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==s||i||c!==_e||e.charCodeAt(a+1)!==Ie)if(i)c===Ie&&e.charCodeAt(a+1)===_e&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===s)if(123===c)o++;else if(125===c){if(--o<0){for(var l=a+1;l<t;){var u=e.charCodeAt(l);if(59===u||10===u)break;l++}l<t&&59===e.charCodeAt(l)&&l++,o=0,a=l-1,r=l;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===s?s=c:s===c&&(s=0);else i=!0,a++}if(r<t){var d=e.substring(r);Oe(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,s=0,i=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===s)if(a===_e&&o+1<t&&e.charCodeAt(o+1)===Ie){for(o+=2;o+1<t&&(e.charCodeAt(o)!==Ie||e.charCodeAt(o+1)!==_e);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))i=1,o++;else if(i>0)41===a?i--:40===a&&i++,o++;else if(a===Ie&&o+1<t&&e.charCodeAt(o+1)===_e)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===_e&&o+1<t&&e.charCodeAt(o+1)===_e){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===s?s=a:s===a&&(s=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(e)),u=s.compile(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=De(u,a.namespace));var p=[];return s.serialize(u,s.middleware(d.concat(s.rulesheet(function(e){return p.push(e)})))),p};return p.hash=l.length?l.reduce(function(e,t){return t.name||se(15),D(e,t.name)},5381).toString():"",p}var Re=new Ae,xe=Te(),je={shouldForwardProp:void 0,styleSheet:Re,stylis:xe},ke=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(je)}}:r.createContext(je),Me=ke.Consumer,Ve=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:r.createContext(void 0);function Fe(){return h?je:r.useContext(ke)}function Le(e){if(h||!r.useMemo)return e.children;var t=Fe().styleSheet,n=r.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),o=r.useMemo(function(){return Te({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=r.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:o}},[e.shouldForwardProp,n,o]);return r.createElement(ke.Provider,{value:s},r.createElement(Ve.Provider,{value:o},e.children))}var Be=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=xe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ne(this,function(){throw se(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=xe),this.name+e.hash},e}();function ze(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in i||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Ge=function(e){return e>="A"&&e<="Z"};function $e(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ge(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ye=function(e){return null==e||!1===e||""===e},qe=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!Ye(o)&&(Array.isArray(o)&&o.isCss||X(o)?n.push("".concat($e(r),":"),o,";"):ee(o)?n.push.apply(n,e(e(["".concat(r," {")],qe(o),!1),["}"],!1)):n.push("".concat($e(r),": ").concat(ze(r,o),";")))}return n};function We(e,t,n,r){if(Ye(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Be||ee(o)||null===o||console.error("".concat(x(e)," 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.")),We(o,t,n,r)}var s;return e instanceof Be?n?(e.inject(n,r),[e.getName(r)]):[e]:ee(e)?qe(e):Array.isArray(e)?Array.prototype.concat.apply(S,e.map(function(e){return We(e,t,n,r)})):[e.toString()]}function He(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X(n)&&!Z(n))return!1}return!0}var Ue=T(u),Je=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&He(e),this.componentId=t,this.baseHash=D(Ue,t),this.baseStyle=n,Ae.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=K(r,this.staticRulesId);else{var o=Q(We(this.rules,e,t,n)),s=I(D(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=K(r,s),this.staticRulesId=s}else{for(var a=D(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=D(a,u));else if(u){var d=Q(We(u,e,t,n));a=D(a,d+l),c+=d}}if(c){var p=I(a>>>0);if(!t.hasNameForId(this.componentId,p)){var h=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}r=K(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(de(this.componentId)):""}},e}(),Xe=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:r.createContext(void 0),Ze=Xe.Consumer;function Ke(){var e=h?void 0:r.useContext(Xe);if(!e)throw se(18);return e}function Qe(e){if(h)return e.children;var n=r.useContext(Xe),o=r.useMemo(function(){return function(e,n){if(!e)throw se(14);if(X(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw se(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw se(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?r.createElement(Xe.Provider,{value:o},e.children):null}var et={},tt=new Set;function nt(e,s,i){var a=Z(e),c=e,l=!j(e),d=s.attrs,p=void 0===d?S:d,f=s.componentId,m=void 0===f?function(e,t){var n="string"!=typeof e?"sc":A(e);et[n]=(et[n]||0)+1;var r="".concat(n,"-").concat(R(u+n+et[n]));return t?"".concat(t,"-").concat(r):r}(s.displayName,s.parentComponentId):f,y=s.displayName,v=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(e):y,C=s.displayName&&s.componentId?"".concat(A(s.displayName),"-").concat(s.componentId):s.componentId||m,N=a&&c.attrs?c.attrs.concat(p).filter(Boolean):p,P=s.shouldForwardProp;if(a&&c.shouldForwardProp){var _=c.shouldForwardProp;if(s.shouldForwardProp){var I=s.shouldForwardProp;P=function(e,t){return _(e,t)&&I(e,t)}}else P=_}var O=new Je(i,C,a?c.componentStyle:void 0);function D(e,s){return function(e,s,i){var a=e.attrs,c=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,d=e.styledComponentId,p=e.target,f=h?void 0:r.useContext(Xe),m=Fe(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&r.useDebugValue&&r.useDebugValue(d);var v=b(s,f,l)||w,g=function(e,n,r){for(var o,s=t(t({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=X(o=e[i])?o(s):o;for(var c in a)"className"===c?s.className=K(s.className,a[c]):"style"===c?s.style=t(t({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=K(s.className,n.className)),s}(a,s,v),S=g.as||p,C={};for(var N in g)void 0===g[N]||"$"===N[0]||"as"===N||"theme"===N&&g.theme===v||("forwardedAs"===N?C.as=g.forwardedAs:y&&!y(N,S)||(C[N]=g[N],y||"development"!==process.env.NODE_ENV||n(N)||tt.has(N)||!E.has(S)||(tt.add(N),console.warn('styled-components: it looks like an unknown prop "'.concat(N,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var A=function(e,t){var n=Fe(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r.useDebugValue&&r.useDebugValue(o.className),o}(c,g),P=A.className,_=A.css;"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(P);var I=K(u,d);P&&(I+=" "+P),g.className&&(I+=" "+g.className),C[j(S)&&!E.has(S)?"class":"className"]=I,i&&(C.ref=i);var O=o(S,C);return h&&_?r.createElement(r.Fragment,null,r.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(P),children:_}),O):O}(T,e,s)}D.displayName=v;var T=r.forwardRef(D);return T.attrs=N,T.componentStyle=O,T.displayName=v,T.shouldForwardProp=P,T.foldedComponentIds=a?K(c.foldedComponentIds,c.styledComponentId):"",T.styledComponentId=C,T.target=a?c.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)te(e,o[r],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(g(v,C),T.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\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={}}}}(v,C)),ne(T,function(){return".".concat(T.styledComponentId)}),l&&J(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function rt(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 ot=function(e){return Object.assign(e,{isCss:!0})};function st(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(X(t)||ee(t))return ot(We(rt(S,e([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?We(o):ot(We(rt(o,n)))}function it(n,r,o){if(void 0===o&&(o=w),!r)throw se(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,st.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return it(n,r,t(t({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return it(n,r,t(t({},o),e))},s}var at=function(e){return it(nt,e)},ct=at;E.forEach(function(e){ct[e]=at(e)});var lt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=He(e),Ae.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Q(We(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Ae.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?n.hasNameForId(o,o)||this.createStyles(e,t,n,r):(this.removeStyles(e,n),this.createStyles(e,t,n,r))},e}();function ut(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var i=st.apply(void 0,e([n],o,!1)),a="sc-global-".concat(R(JSON.stringify(i))),c=new lt(i,a);"production"!==process.env.NODE_ENV&&g(a);var l=new WeakMap,u=function(e){var t=Fe(),n=h?void 0:r.useContext(Xe),o=l.get(t.styleSheet);if(void 0===o&&(o=t.styleSheet.allocateGSInstance(a),l.set(t.styleSheet,o)),"production"!==process.env.NODE_ENV&&r.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.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."),("undefined"==typeof window||!t.styleSheet.server)&&d(o,e,t.styleSheet,n,t.stylis),p&&!h&&r.useLayoutEffect(function(){return t.styleSheet.server||d(o,e,t.styleSheet,n,t.stylis),function(){c.removeStyles(o,t.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(a,'"]')).forEach(function(e){return e.remove()})}},[o,e,t.styleSheet,n,t.stylis]),h){var s=a+o,u="undefined"==typeof window?t.styleSheet.getTag().getGroup(de(s)):"";if(u){var f="".concat(a,"-").concat(o);return r.createElement("style",{key:f,"data-styled-global":a,precedence:"styled-components",href:f,children:u})}}return null};function d(e,n,r,o,s){if(c.isStatic)c.renderStyles(e,m,r,s);else{var i=t(t({},n),{theme:b(n,o,u.defaultProps)});c.renderStyles(e,i,r,s)}}return r.memo(u)}function dt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"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 o=Q(st.apply(void 0,e([t],n,!1))),s=R(o);return new Be(s,o)}function pt(e){var n=r.forwardRef(function(n,o){var s=b(n,h?void 0:r.useContext(Xe),e.defaultProps);return"production"!==process.env.NODE_ENV&&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 "'.concat(x(e),'"')),r.createElement(e,t(t({},n),{theme:s,ref:o}))});return n.displayName="WithTheme(".concat(x(e),")"),J(n,e)}var ht=/^\s*<\/[a-z]/i,ft=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ge(),r=Q([n&&'nonce="'.concat(n,'"'),"".concat(a,'="true"'),"".concat(l,'="').concat(u,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw se(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw se(2);var o=e.instance.toString();if(!o)return[];var s=((n={})[a]="",n[l]=u,n.dangerouslySetInnerHTML={__html:o},n),i=ge();return i&&(s.nonce=i),[r.createElement("style",t({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ae({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw se(2);return r.createElement(Le,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(p)throw se(3);if(this.sealed)throw se(2);this.seal();var t=require("stream").Transform,n=this.instance,r=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),i=r();if(n.clearTag(),ht.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),l=s.slice(a);this.push(c+i+l)}else this.push(i+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},e}(),mt={StyleSheet:Ae,mainSheet:Re};"production"!==process.env.NODE_ENV&&"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");var yt="__sc-".concat(a,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[yt]||(window[yt]=0),1===window[yt]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[yt]+=1);export{ft as ServerStyleSheet,Me as StyleSheetConsumer,ke as StyleSheetContext,Le as StyleSheetManager,Ze as ThemeConsumer,Xe as ThemeContext,Qe as ThemeProvider,mt as __PRIVATE__,ut as createGlobalStyle,st as css,ct as default,Z as isStyledComponent,dt as keyframes,ct as styled,Ke as useTheme,u as version,pt as withTheme};
1
+ import{__spreadArray as e,__assign as t}from"tslib";import n from"@emotion/is-prop-valid";import r,{createElement as o}from"react";import*as s from"stylis";import i from"@emotion/unitless";var a="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",c="active",l="data-styled-version",u="6.3.9-prerelease.1",d="/*!sc*/\n",p="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===r.createContext,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m={},y=/invalid hook call/i,v=new Set,g=function(t,n){if("production"!==process.env.NODE_ENV){if(h)return;var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," 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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];y.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e([t],n,!1))},"function"==typeof r.useState&&r.useState(null),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){y.test(e.message)&&v.delete(s)}finally{console.error=i}}},S=Object.freeze([]),w=Object.freeze({});function b(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme}var E=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),C=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,N=/(^-|-$)/g;function A(e){return e.replace(C,"-").replace(N,"")}var P=/(a)(d)/gi,_=function(e){return String.fromCharCode(e+(e>25?39:97))};function I(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=_(t%52)+n;return(_(t%52)+n).replace(P,"$1-$2")}var O,D=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return D(5381,e)};function R(e){return I(T(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,M=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.forward_ref"):60112,F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z=((O={})[V]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O[M]=B,O);function G(e){return("type"in(t=e)&&t.type.$$typeof)===M?B:"$$typeof"in e?z[e.$$typeof]:F;var t}var $=Object.defineProperty,Y=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var r=H(t);r&&r!==U&&J(e,r,n)}var o=Y(t);q&&(o=o.concat(q(t)));for(var s=G(e),i=G(t),a=0;a<o.length;++a){var c=o[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var l=W(t,c);try{$(e,c,l)}catch(e){}}}}return e}function X(e){return"function"==typeof e}function Z(e){return"object"==typeof e&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Q(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function ee(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function te(e,t,n){if(void 0===n&&(n=!1),!n&&!ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=te(e[r],t[r]);else if(ee(t))for(var r in t)e[r]=te(e[r],t[r]);return e}function ne(e,t){Object.defineProperty(e,"toString",{value:t})}var re="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function se(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(oe.apply(void 0,e([re[t]],n,!1)).trim())}var ie=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 se(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},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,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(d);return t},e}(),ae=1<<30,ce=new Map,le=new Map,ue=1,de=function(e){if(ce.has(e))return ce.get(e);for(;le.has(ue);)ue++;var t=ue++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ae))throw se(16,"".concat(t));return ce.set(e,t),le.set(t,e),t},pe=function(e,t){ue=t+1,ce.set(e,t),le.set(t,e)},he="style[".concat(a,"][").concat(l,'="').concat(u,'"]'),fe=new RegExp("^".concat(a,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),me=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},ye=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(d),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(fe);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(pe(u,l),me(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},ve=function(e){for(var t=document.querySelectorAll(he),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(a)!==c&&(ye(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ge(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Se=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(a,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(a,c),r.setAttribute(l,u);var i=ge();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},we=function(){function e(e){this.element=Se(e),this.element.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 se(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),be=function(){function e(e){this.element=Se(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),Ee=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}(),Ce=p,Ne={isServer:!p,useCSSOMInjection:!f},Ae=function(){function e(e,n,r){void 0===e&&(e=w),void 0===n&&(n={});var o=this;this.options=t(t({},Ne),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&p&&Ce&&(Ce=!1,ve(this)),ne(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return le.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var c="".concat(a,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==s&&s.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(c,'{content:"').concat(l,'"}').concat(d)},s=0;s<n;s++)o(s);return r}(o)})}return e.registerId=function(e){return de(e)},e.prototype.rehydrate=function(){!this.server&&p&&ve(this)},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(t(t({},this.options),n),this.gs,r&&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.useCSSOMInjection,n=e.target;return e.isServer?new Ee(n):t?new we(n):new be(n)}(this.options),new ie(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(de(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(de(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(de(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Pe=/&/g,_e=47,Ie=42;function Oe(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,s=0;s<t;s++){var i=e.charCodeAt(s);if(0!==r||o||i!==_e||e.charCodeAt(s+1)!==Ie)if(o)i===Ie&&e.charCodeAt(s+1)===_e&&(o=!1,s++);else if(34!==i&&39!==i||0!==s&&92===e.charCodeAt(s-1)){if(0===r)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===r?r=i:r===i&&(r=0);else o=!0,s++}return 0!==n||0!==r}function De(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=De(e.children,t)),e})}function Te(e){var t,n,r,o=void 0===e?w:e,i=o.options,a=void 0===i?w:i,c=o.plugins,l=void 0===c?S:c,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=l.slice();d.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Pe,n).replace(r,u))}),a.prefix&&d.push(s.prefixer),d.push(s.stringify);var p=function(e,o,i,c){void 0===o&&(o=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=function(e){if(!Oe(e))return e;for(var t=e.length,n="",r=0,o=0,s=0,i=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==s||i||c!==_e||e.charCodeAt(a+1)!==Ie)if(i)c===Ie&&e.charCodeAt(a+1)===_e&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===s)if(123===c)o++;else if(125===c){if(--o<0){for(var l=a+1;l<t;){var u=e.charCodeAt(l);if(59===u||10===u)break;l++}l<t&&59===e.charCodeAt(l)&&l++,o=0,a=l-1,r=l;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===s?s=c:s===c&&(s=0);else i=!0,a++}if(r<t){var d=e.substring(r);Oe(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,s=0,i=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===s)if(a===_e&&o+1<t&&e.charCodeAt(o+1)===Ie){for(o+=2;o+1<t&&(e.charCodeAt(o)!==Ie||e.charCodeAt(o+1)!==_e);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))i=1,o++;else if(i>0)41===a?i--:40===a&&i++,o++;else if(a===Ie&&o+1<t&&e.charCodeAt(o+1)===_e)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===_e&&o+1<t&&e.charCodeAt(o+1)===_e){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===s?s=a:s===a&&(s=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(e)),u=s.compile(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=De(u,a.namespace));var p=[];return s.serialize(u,s.middleware(d.concat(s.rulesheet(function(e){return p.push(e)})))),p};return p.hash=l.length?l.reduce(function(e,t){return t.name||se(15),D(e,t.name)},5381).toString():"",p}var Re=new Ae,xe=Te(),je={shouldForwardProp:void 0,styleSheet:Re,stylis:xe},ke=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(je)}}:r.createContext(je),Me=ke.Consumer,Ve=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:r.createContext(void 0);function Fe(){return h?je:r.useContext(ke)}function Le(e){if(h||!r.useMemo)return e.children;var t=Fe().styleSheet,n=r.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),o=r.useMemo(function(){return Te({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=r.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:o}},[e.shouldForwardProp,n,o]);return r.createElement(ke.Provider,{value:s},r.createElement(Ve.Provider,{value:o},e.children))}var Be=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=xe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ne(this,function(){throw se(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=xe),this.name+e.hash},e}();function ze(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in i||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Ge=function(e){return e>="A"&&e<="Z"};function $e(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ge(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ye=function(e){return null==e||!1===e||""===e},qe=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!Ye(o)&&(Array.isArray(o)&&o.isCss||X(o)?n.push("".concat($e(r),":"),o,";"):ee(o)?n.push.apply(n,e(e(["".concat(r," {")],qe(o),!1),["}"],!1)):n.push("".concat($e(r),": ").concat(ze(r,o),";")))}return n};function We(e,t,n,r){if(Ye(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Be||ee(o)||null===o||console.error("".concat(x(e)," 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.")),We(o,t,n,r)}var s;return e instanceof Be?n?(e.inject(n,r),[e.getName(r)]):[e]:ee(e)?qe(e):Array.isArray(e)?Array.prototype.concat.apply(S,e.map(function(e){return We(e,t,n,r)})):[e.toString()]}function He(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X(n)&&!Z(n))return!1}return!0}var Ue=T(u),Je=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&He(e),this.componentId=t,this.baseHash=D(Ue,t),this.baseStyle=n,Ae.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=K(r,this.staticRulesId);else{var o=Q(We(this.rules,e,t,n)),s=I(D(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=K(r,s),this.staticRulesId=s}else{for(var a=D(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=D(a,u));else if(u){var d=Q(We(u,e,t,n));a=D(a,d+l),c+=d}}if(c){var p=I(a>>>0);if(!t.hasNameForId(this.componentId,p)){var h=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}r=K(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(de(this.componentId)):""}},e}(),Xe=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:r.createContext(void 0),Ze=Xe.Consumer;function Ke(){var e=h?void 0:r.useContext(Xe);if(!e)throw se(18);return e}function Qe(e){if(h)return e.children;var n=r.useContext(Xe),o=r.useMemo(function(){return function(e,n){if(!e)throw se(14);if(X(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw se(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw se(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?r.createElement(Xe.Provider,{value:o},e.children):null}var et={},tt=new Set;function nt(e,s,i){var a=Z(e),c=e,l=!j(e),d=s.attrs,p=void 0===d?S:d,f=s.componentId,m=void 0===f?function(e,t){var n="string"!=typeof e?"sc":A(e);et[n]=(et[n]||0)+1;var r="".concat(n,"-").concat(R(u+n+et[n]));return t?"".concat(t,"-").concat(r):r}(s.displayName,s.parentComponentId):f,y=s.displayName,v=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(e):y,C=s.displayName&&s.componentId?"".concat(A(s.displayName),"-").concat(s.componentId):s.componentId||m,N=a&&c.attrs?c.attrs.concat(p).filter(Boolean):p,P=s.shouldForwardProp;if(a&&c.shouldForwardProp){var _=c.shouldForwardProp;if(s.shouldForwardProp){var I=s.shouldForwardProp;P=function(e,t){return _(e,t)&&I(e,t)}}else P=_}var O=new Je(i,C,a?c.componentStyle:void 0);function D(e,s){return function(e,s,i){var a=e.attrs,c=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,d=e.styledComponentId,p=e.target,f=h?void 0:r.useContext(Xe),m=Fe(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&r.useDebugValue&&r.useDebugValue(d);var v=b(s,f,l)||w,g=function(e,n,r){for(var o,s=t(t({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=X(o=e[i])?o(s):o;for(var c in a)"className"===c?s.className=K(s.className,a[c]):"style"===c?s.style=t(t({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=K(s.className,n.className)),s}(a,s,v),S=g.as||p,C={};for(var N in g)void 0===g[N]||"$"===N[0]||"as"===N||"theme"===N&&g.theme===v||("forwardedAs"===N?C.as=g.forwardedAs:y&&!y(N,S)||(C[N]=g[N],y||"development"!==process.env.NODE_ENV||n(N)||tt.has(N)||!E.has(S)||(tt.add(N),console.warn('styled-components: it looks like an unknown prop "'.concat(N,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var A=function(e,t){var n=Fe(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r.useDebugValue&&r.useDebugValue(o.className),o}(c,g),P=A.className,_=A.css;"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(P);var I=K(u,d);P&&(I+=" "+P),g.className&&(I+=" "+g.className),C[j(S)&&!E.has(S)?"class":"className"]=I,i&&(C.ref=i);var O=o(S,C);return h&&_?r.createElement(r.Fragment,null,r.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(P),children:_}),O):O}(T,e,s)}D.displayName=v;var T=r.forwardRef(D);return T.attrs=N,T.componentStyle=O,T.displayName=v,T.shouldForwardProp=P,T.foldedComponentIds=a?K(c.foldedComponentIds,c.styledComponentId):"",T.styledComponentId=C,T.target=a?c.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)te(e,o[r],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(g(v,C),T.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\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={}}}}(v,C)),ne(T,function(){return".".concat(T.styledComponentId)}),l&&J(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function rt(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 ot=function(e){return Object.assign(e,{isCss:!0})};function st(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(X(t)||ee(t))return ot(We(rt(S,e([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?We(o):ot(We(rt(o,n)))}function it(n,r,o){if(void 0===o&&(o=w),!r)throw se(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,st.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return it(n,r,t(t({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return it(n,r,t(t({},o),e))},s}var at=function(e){return it(nt,e)},ct=at;E.forEach(function(e){ct[e]=at(e)});var lt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=He(e),Ae.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Q(We(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Ae.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?n.hasNameForId(o,o)||this.createStyles(e,t,n,r):(this.removeStyles(e,n),this.createStyles(e,t,n,r))},e}();function ut(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var i=st.apply(void 0,e([n],o,!1)),a="sc-global-".concat(R(JSON.stringify(i))),c=new lt(i,a);"production"!==process.env.NODE_ENV&&g(a);var l=new WeakMap,u=function(e){var t=Fe(),n=h?void 0:r.useContext(Xe),o=l.get(t.styleSheet);if(void 0===o&&(o=t.styleSheet.allocateGSInstance(a),l.set(t.styleSheet,o)),"production"!==process.env.NODE_ENV&&r.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.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."),("undefined"==typeof window||!t.styleSheet.server)&&d(o,e,t.styleSheet,n,t.stylis),p&&!h&&r.useLayoutEffect(function(){return t.styleSheet.server||d(o,e,t.styleSheet,n,t.stylis),function(){c.removeStyles(o,t.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(a,'"]')).forEach(function(e){return e.remove()})}},[o,e,t.styleSheet,n,t.stylis]),h){var s=a+o,u="undefined"==typeof window?t.styleSheet.getTag().getGroup(de(s)):"";if(u){var f="".concat(a,"-").concat(o);return r.createElement("style",{key:f,"data-styled-global":a,precedence:"styled-components",href:f,children:u})}}return null};function d(e,n,r,o,s){if(c.isStatic)c.renderStyles(e,m,r,s);else{var i=t(t({},n),{theme:b(n,o,u.defaultProps)});c.renderStyles(e,i,r,s)}}return r.memo(u)}function dt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"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 o=Q(st.apply(void 0,e([t],n,!1))),s=R(o);return new Be(s,o)}function pt(e){var n=r.forwardRef(function(n,o){var s=b(n,h?void 0:r.useContext(Xe),e.defaultProps);return"production"!==process.env.NODE_ENV&&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 "'.concat(x(e),'"')),r.createElement(e,t(t({},n),{theme:s,ref:o}))});return n.displayName="WithTheme(".concat(x(e),")"),J(n,e)}var ht=/^\s*<\/[a-z]/i,ft=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ge(),r=Q([n&&'nonce="'.concat(n,'"'),"".concat(a,'="true"'),"".concat(l,'="').concat(u,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw se(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw se(2);var o=e.instance.toString();if(!o)return[];var s=((n={})[a]="",n[l]=u,n.dangerouslySetInnerHTML={__html:o},n),i=ge();return i&&(s.nonce=i),[r.createElement("style",t({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ae({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw se(2);return r.createElement(Le,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(p)throw se(3);if(this.sealed)throw se(2);this.seal();var t=require("stream").Transform,n=this.instance,r=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),i=r();if(n.clearTag(),ht.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),l=s.slice(a);this.push(c+i+l)}else this.push(i+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},e}(),mt={StyleSheet:Ae,mainSheet:Re};"production"!==process.env.NODE_ENV&&"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");var yt="__sc-".concat(a,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[yt]||(window[yt]=0),1===window[yt]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[yt]+=1);export{ft as ServerStyleSheet,Me as StyleSheetConsumer,ke as StyleSheetContext,Le as StyleSheetManager,Ze as ThemeConsumer,Xe as ThemeContext,Qe as ThemeProvider,mt as __PRIVATE__,ut as createGlobalStyle,st as css,ct as default,Z as isStyledComponent,dt as keyframes,ct as styled,Ke as useTheme,u as version,pt as withTheme};
2
2
  //# sourceMappingURL=styled-components.esm.js.map
@@ -10,7 +10,7 @@
10
10
  'data-styled';
11
11
  var SC_ATTR_ACTIVE = 'active';
12
12
  var SC_ATTR_VERSION = 'data-styled-version';
13
- var SC_VERSION = "6.3.9-prerelease.0";
13
+ var SC_VERSION = "6.3.9-prerelease.1";
14
14
  var SPLITTER = '/*!sc*/\n';
15
15
  var IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';
16
16
  /**
@@ -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=e||self).styled=t(e.React)}(this,function(e){"use strict";var t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",r="active",n="data-styled-version",o="6.3.9-prerelease.0",s="/*!sc*/\n",a="undefined"!=typeof window&&"undefined"!=typeof document,i=void 0===e.createContext,c=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),u={},l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var p=Object.freeze([]),h=Object.freeze({});function d(e,t){Object.defineProperty(e,"toString",{value:t})}function m(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var v=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw m(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.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)}},e.prototype.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,a=n;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),g=new Map,y=new Map,S=1,b=function(e){if(g.has(e))return g.get(e);for(;y.has(S);)S++;var t=S++;return g.set(e,t),y.set(t,e),t},w=function(e,t){S=t+1,g.set(e,t),y.set(t,e)},C="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),A=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),x=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},I=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(s),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var u=c.match(A);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(w(f,l),x(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},P=function(e){for(var n=document.querySelectorAll(C),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(I(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function E(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){var r=Array.from(e.querySelectorAll("style[".concat(t,"]")));return r[r.length-1]}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=E();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},R=function(){function e(e){this.element=_(e),this.element.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}throw m(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),N=function(){function e(e){this.element=_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||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}(),k=a,O={isServer:!a,useCSSOMInjection:!c},T=function(){function e(e,r,n){void 0===e&&(e=h),void 0===r&&(r={});var o=this;this.options=l(l({},O),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&k&&(k=!1,P(this)),d(this,function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return y.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||!i.size||0===c.length)return"continue";var u="".concat(t,".g").concat(n,'[id="').concat(a,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),o+="".concat(c).concat(u,'{content:"').concat(l,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(o)})}return e.registerId=function(e){return b(e)},e.prototype.rehydrate=function(){!this.server&&a&&P(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},this.options),t),this.gs,r&&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.useCSSOMInjection,r=e.target;return e.isServer?new $(r):t?new R(r):new N(r)}(this.options),new v(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(b(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(b(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),j="-ms-",D="-moz-",F="-webkit-",z="comm",M="rule",G="decl",B="@keyframes",L=Math.abs,W=String.fromCharCode,Y=Object.assign;function q(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function V(e,t,r){return e.indexOf(t,r)}function J(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function K(e){return e.length}function Q(e){return e.length}function X(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!H(e,t)})}var te=1,re=1,ne=0,oe=0,se=0,ae="";function ie(e,t,r,n,o,s,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:te,column:re,length:a,return:"",siblings:i}}function ce(e,t){return Y(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=ce(e.root,{children:[e]});X(e,e.siblings)}function le(){return se=oe>0?J(ae,--oe):0,re--,10===se&&(re=1,te--),se}function fe(){return se=oe<ne?J(ae,oe++):0,re++,10===se&&(re=1,te++),se}function pe(){return J(ae,oe)}function he(){return oe}function de(e,t){return Z(ae,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 ve(e){return q(de(oe-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(se=pe())&&se<33;)fe();return me(e)>2||me(se)>3?"":" "}function ye(e,t){for(;--t&&fe()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return de(e,he()+(t<6&&32==pe()&&32==fe()))}function Se(e){for(;fe();)switch(se){case e:return oe;case 34:case 39:34!==e&&39!==e&&Se(se);break;case 40:41===e&&Se(e);break;case 92:fe()}return oe}function be(e,t){for(;fe()&&e+se!==57&&(e+se!==84||47!==pe()););return"/*"+de(t,oe-1)+"*"+W(47===e?e:fe())}function we(e){for(;!me(pe());)fe();return de(e,oe)}function Ce(e){return function(e){return ae="",e}(Ae("",null,null,null,[""],e=function(e){return te=re=1,ne=K(ae=e),oe=0,[]}(e),0,[0],e))}function Ae(e,t,r,n,o,s,a,i,c){for(var u=0,l=0,f=a,p=0,h=0,d=0,m=1,v=1,g=1,y=0,S="",b=o,w=s,C=n,A=S;v;)switch(d=y,y=fe()){case 40:if(108!=d&&58==J(A,f-1)){-1!=V(A+=U(ve(y),"&","&\f"),"&\f",L(u?i[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:A+=ve(y);break;case 9:case 10:case 13:case 32:A+=ge(d);break;case 92:A+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:X(Ie(be(fe(),he()),t,r,c),c),5!=me(d||1)&&5!=me(pe()||1)||!K(A)||" "===Z(A,-1,void 0)||(A+=" ");break;default:A+="/"}break;case 123*m:i[u++]=K(A)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==g&&(A=U(A,/\f/g,"")),h>0&&(K(A)-f||0===m&&47===d)&&X(h>32?Pe(A+";",n,r,f-1,c):Pe(U(A," ","")+";",n,r,f-2,c),c);break;case 59:A+=";";default:if(X(C=xe(A,t,r,u,l,o,i,S,b=[],w=[],f,s),s),123===y)if(0===l)Ae(A,t,C,C,b,s,f,i,w);else{switch(p){case 99:if(110===J(A,3))break;case 108:if(97===J(A,2))break;default:l=0;case 100:case 109:case 115:}l?Ae(e,C,C,n&&X(xe(e,C,C,0,0,o,i,S,o,b=[],f,w),w),o,w,f,i,n?b:w):Ae(A,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=A="",f=a;break;case 58:f=1+K(A),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==le())continue;switch(A+=W(y),y*m){case 38:g=l>0?1:(A+="\f",-1);break;case 44:i[u++]=(K(A)-1)*g,g=1;break;case 64:45===pe()&&(A+=ve(fe())),p=pe(),l=f=K(S=A+=we(he())),y++;break;case 45:45===d&&2==K(A)&&(m=0)}}return s}function xe(e,t,r,n,o,s,a,i,c,u,l,f){for(var p=o-1,h=0===o?s:[""],d=Q(h),m=0,v=0,g=0;m<n;++m)for(var y=0,S=Z(e,p+1,p=L(v=a[m])),b=e;y<d;++y)(b=q(v>0?h[y]+" "+S:U(S,/&\f/g,h[y])))&&(c[g++]=b);return ie(e,t,r,0===o?M:i,c,u,l,f)}function Ie(e,t,r,n){return ie(e,t,r,z,W(se),Z(e,2,-2),0,n)}function Pe(e,t,r,n,o){return ie(e,t,r,G,Z(e,0,n),Z(e,n+1,-1),n,o)}function Ee(e,t,r){switch(function(e,t){return 45^J(e,0)?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}(e,t)){case 5103:return F+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+j+e+e;case 5936:switch(J(e,t+11)){case 114:return F+e+j+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+j+e+e;case 6165:return F+e+j+"flex-"+e+e;case 5187:return F+e+U(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return F+e+j+"flex-item-"+U(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":j+"grid-row-"+U(e,/flex-|-self/g,""))+e;case 4675:return F+e+j+"flex-line-pack"+U(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+j+U(e,"shrink","negative")+e;case 5292:return F+e+j+U(e,"basis","preferred-size")+e;case 6060:return F+"box-"+U(e,"-grow","")+F+e+j+U(e,"grow","positive")+e;case 4554:return F+U(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+F+e+e;case 4200:if(!H(e,/flex-|baseline/))return j+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return j+U(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,H(e.props,/grid-\w+-end/)})?~V(e+(r=r[t].value),"span",0)?e:j+U(e,"-start","")+e+j+"grid-row-span:"+(~V(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":j+U(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return H(e.props,/grid-\w+-start/)})?e:j+U(U(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,F+"$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(K(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~V(e,"stretch",0)?Ee(U(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return U(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return j+r+":"+n+i+(o?j+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===J(e,t+6))return U(e,":",":"+F)+e;break;case 6444:switch(J(e,45===J(e,14)?18:11)){case 120:return U(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(45===J(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e;case 100:return U(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return U(e,"scroll-","scroll-snap-")+e}return e}function _e(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Re(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case G:return e.return=e.return||e.value;case z:return"";case B:return e.return=e.value+"{"+_e(e.children,n)+"}";case M:if(!K(e.value=e.props.join(",")))return""}return K(r=_e(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ne(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:return void(e.return=Ee(e.value,e.length,r));case B:return _e([ce(e,{value:U(e.value,"@","@"+F)})],n);case M:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(H(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(ce(e,{props:[U(t,/:(read-\w+)/,":-moz-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)});break;case"::placeholder":ue(ce(e,{props:[U(t,/:(plac\w+)/,":"+F+"input-$1")]})),ue(ce(e,{props:[U(t,/:(plac\w+)/,":-moz-$1")]})),ue(ce(e,{props:[U(t,/:(plac\w+)/,j+"input-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)})}return""})}}var $e=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return $e(5381,e)},Oe=/&/g,Te=47,je=42;function De(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,s=0;s<t;s++){var a=e.charCodeAt(s);if(0!==n||o||a!==Te||e.charCodeAt(s+1)!==je)if(o)a===je&&e.charCodeAt(s+1)===Te&&(o=!1,s++);else if(34!==a&&39!==a||0!==s&&92===e.charCodeAt(s-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,s++}return 0!==r||0!==n}function Fe(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Fe(e.children,t)),e})}function ze(e){var t,r,n,o=void 0===e?h:e,s=o.options,a=void 0===s?h:s,i=o.plugins,c=void 0===i?p:i,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===M&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,r).replace(n,u))}),a.prefix&&l.push(Ne),l.push(Re);var f=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=function(e){if(!De(e))return e;for(var t=e.length,r="",n=0,o=0,s=0,a=!1,i=0;i<t;i++){var c=e.charCodeAt(i);if(0!==s||a||c!==Te||e.charCodeAt(i+1)!==je)if(a)c===je&&e.charCodeAt(i+1)===Te&&(a=!1,i++);else if(34!==c&&39!==c||0!==i&&92===e.charCodeAt(i-1)){if(0===s)if(123===c)o++;else if(125===c){if(--o<0){for(var u=i+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,i=u-1,n=u;continue}0===o&&(r+=e.substring(n,i+1),n=i+1)}else 59===c&&0===o&&(r+=e.substring(n,i+1),n=i+1)}else 0===s?s=c:s===c&&(s=0);else a=!0,i++}if(n<t){var f=e.substring(n);De(f)||(r+=f)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,s=0,a=0;o<t;){var i=e.charCodeAt(o);if(34!==i&&39!==i||0!==o&&92===e.charCodeAt(o-1))if(0===s)if(i===Te&&o+1<t&&e.charCodeAt(o+1)===je){for(o+=2;o+1<t&&(e.charCodeAt(o)!==je||e.charCodeAt(o+1)!==Te);)o++;o+=2}else if(40===i&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===i?a--:40===i&&a++,o++;else if(i===je&&o+1<t&&e.charCodeAt(o+1)===Te)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(i===Te&&o+1<t&&e.charCodeAt(o+1)===Te){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===s?s=i:s===i&&(s=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=Ce(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=Fe(u,a.namespace));var f=[];return _e(u,function(e){var t=Q(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}(l.concat(function(e){e.root||(e=e.return)&&f.push(e)}))),f};return f.hash=c.length?c.reduce(function(e,t){return t.name||m(15),$e(e,t.name)},5381).toString():"",f}var Me=new T,Ge=ze(),Be={shouldForwardProp:void 0,styleSheet:Me,stylis:Ge},Le=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Be)}}:e.createContext(Be),We=Le.Consumer,Ye=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0);function qe(){return i?Be:e.useContext(Le)}function He(t){if(i||!e.useMemo)return t.children;var r=qe().styleSheet,n=e.useMemo(function(){var e=r;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,r]),o=e.useMemo(function(){return ze({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:t.stylisPlugins})},[t.enableVendorPrefixes,t.namespace,t.stylisPlugins]),s=e.useMemo(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:n,stylis:o}},[t.shouldForwardProp,n,o]);return e.createElement(Le.Provider,{value:s},e.createElement(Ye.Provider,{value:o},t.children))}var Ue=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ge);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,d(this,function(){throw m(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ge),this.name+e.hash},e}(),Ve={animationIterationCount:1,aspectRatio: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,scale: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};function Je(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ve||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function Ze(e){return e.displayName||e.name||"Component"}var Ke=function(e){return e>="A"&&e<="Z"};function Qe(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ke(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Xe(e){return"function"==typeof e}function et(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function tt(e){return"object"==typeof e&&"styledComponentId"in e}var rt=function(e){return null==e||!1===e||""===e},nt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!rt(n)&&(Array.isArray(n)&&n.isCss||Xe(n)?t.push("".concat(Qe(r),":"),n,";"):et(n)?t.push.apply(t,f(f(["".concat(r," {")],nt(n),!1),["}"],!1)):t.push("".concat(Qe(r),": ").concat(Je(r,n),";")))}return t};function ot(e,t,r,n){return rt(e)?[]:tt(e)?[".".concat(e.styledComponentId)]:Xe(e)?!Xe(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ot(e(t),t,r,n):e instanceof Ue?r?(e.inject(r,n),[e.getName(n)]):[e]:et(e)?nt(e):Array.isArray(e)?Array.prototype.concat.apply(p,e.map(function(e){return ot(e,t,r,n)})):[e.toString()];var o}function st(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Xe(r)&&!tt(r))return!1}return!0}function at(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function it(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}var ct=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=st(e),T.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(it(ot(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&T.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}(),ut=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0),lt=ut.Consumer;function ft(e,t,r){return void 0===r&&(r=h),e.theme!==r.theme&&e.theme||t||r.theme}var pt=/(a)(d)/gi,ht=function(e){return String.fromCharCode(e+(e>25?39:97))};function dt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ht(t%52)+r;return(ht(t%52)+r).replace(pt,"$1-$2")}function mt(e){return dt(ke(e)>>>0)}function vt(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}var gt,yt=function(e){return Object.assign(e,{isCss:!0})};function St(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Xe(e)||et(e))return yt(ot(vt(p,f([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ot(n):yt(ot(vt(n,t)))}var bt="function"==typeof Symbol&&Symbol.for,wt=bt?Symbol.for("react.memo"):60115,Ct=bt?Symbol.for("react.forward_ref"):60112,At={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xt={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},Pt=((gt={})[Ct]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt[wt]=It,gt);function Et(e){return("type"in(t=e)&&t.type.$$typeof)===wt?It:"$$typeof"in e?Pt[e.$$typeof]:At;var t}var _t=Object.defineProperty,Rt=Object.getOwnPropertyNames,Nt=Object.getOwnPropertySymbols,$t=Object.getOwnPropertyDescriptor,kt=Object.getPrototypeOf,Ot=Object.prototype;function Tt(e,t,r){if("string"!=typeof t){if(Ot){var n=kt(t);n&&n!==Ot&&Tt(e,n,r)}var o=Rt(t);Nt&&(o=o.concat(Nt(t)));for(var s=Et(e),a=Et(t),i=0;i<o.length;++i){var c=o[i];if(!(c in xt||r&&r[c]||a&&c in a||s&&c in s)){var u=$t(t,c);try{_t(e,c,u)}catch(e){}}}}return e}var jt=/^\s*<\/[a-z]/i,Dt=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var s=E(),a=it([s&&'nonce="'.concat(s,'"'),"".concat(t,'="true"'),"".concat(n,'="').concat(o,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(e,"</style>")},this.getStyleTags=function(){if(r.sealed)throw m(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw m(2);var a=r.instance.toString();if(!a)return[];var i=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:a},s),c=E();return c&&(i.nonce=c),[e.createElement("style",l({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new T({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw m(2);return e.createElement(He,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){if(a)throw m(3);if(this.sealed)throw m(2);this.seal();var t=require("stream").Transform,r=this.instance,n=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),a=n();if(r.clearTag(),jt.test(s)){var i=s.indexOf(">")+1,c=s.slice(0,i),u=s.slice(i);this.push(c+a+u)}else this.push(a+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},r}(),Ft=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Dt,StyleSheetConsumer:We,StyleSheetContext:Le,StyleSheetManager:He,ThemeConsumer:lt,ThemeContext:ut,ThemeProvider:function(t){if(i)return t.children;var r=e.useContext(ut),n=e.useMemo(function(){return function(e,t){if(!e)throw m(14);if(Xe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw m(8);return t?l(l({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(ut.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:T,mainSheet:Me},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=St.apply(void 0,f([t],r,!1)),s="sc-global-".concat(mt(JSON.stringify(o))),c=new ct(o,s),p=new WeakMap,h=function(t){var r=qe(),n=i?void 0:e.useContext(ut),o=p.get(r.styleSheet);if(void 0===o&&(o=r.styleSheet.allocateGSInstance(s),p.set(r.styleSheet,o)),("undefined"==typeof window||!r.styleSheet.server)&&d(o,t,r.styleSheet,n,r.stylis),a&&!i&&e.useLayoutEffect(function(){return r.styleSheet.server||d(o,t,r.styleSheet,n,r.stylis),function(){c.removeStyles(o,r.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(s,'"]')).forEach(function(e){return e.remove()})}},[o,t,r.styleSheet,n,r.stylis]),i){var u=s+o,l="undefined"==typeof window?r.styleSheet.getTag().getGroup(b(u)):"";if(l){var f="".concat(s,"-").concat(o);return e.createElement("style",{key:f,"data-styled-global":s,precedence:"styled-components",href:f,children:l})}}return null};function d(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,u,r,o);else{var s=l(l({},t),{theme:ft(t,n,h.defaultProps)});c.renderStyles(e,s,r,o)}}return e.memo(h)},css:St,isStyledComponent:tt,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=it(St.apply(void 0,f([e],t,!1))),o=mt(n);return new Ue(o,n)},useTheme:function(){var t=i?void 0:e.useContext(ut);if(!t)throw m(18);return t},version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=ft(r,i?void 0:e.useContext(ut),t.defaultProps);return e.createElement(t,l(l({},r),{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ze(t),")"),Tt(r,t)}}),zt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Mt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Gt=/(^-|-$)/g;function Bt(e){return e.replace(Mt,"-").replace(Gt,"")}function Lt(e){return"string"==typeof e&&!0}function Wt(e,t,r){if(void 0===r&&(r=!1),!r&&!et(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Wt(e[n],t[n]);else if(et(t))for(var n in t)e[n]=Wt(e[n],t[n]);return e}var Yt=ke(o),qt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&st(e),this.componentId=t,this.baseHash=$e(Yt,t),this.baseStyle=r,T.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=at(n,this.staticRulesId);else{var o=it(ot(this.rules,e,t,r)),s=dt($e(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=at(n,s),this.staticRulesId=s}else{for(var i=$e(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=it(ot(l,e,t,r));i=$e(i,f+u),c+=f}}if(c){var p=dt(i>>>0);if(!t.hasNameForId(this.componentId,p)){var h=r(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}n=at(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(b(this.componentId)):""}},e}(),Ht={};function Ut(t,r,n){var s=tt(t),a=t,c=!Lt(t),u=r.attrs,f=void 0===u?p:u,m=r.componentId,v=void 0===m?function(e,t){var r="string"!=typeof e?"sc":Bt(e);Ht[r]=(Ht[r]||0)+1;var n="".concat(r,"-").concat(mt(o+r+Ht[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):m,g=r.displayName,y=void 0===g?function(e){return Lt(e)?"styled.".concat(e):"Styled(".concat(Ze(e),")")}(t):g,S=r.displayName&&r.componentId?"".concat(Bt(r.displayName),"-").concat(r.componentId):r.componentId||v,b=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var C=a.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;w=function(e,t){return C(e,t)&&A(e,t)}}else w=C}var x=new qt(n,S,s?a.componentStyle:void 0);function I(t,r){return function(t,r,n){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,f=t.target,p=i?void 0:e.useContext(ut),d=qe(),m=t.shouldForwardProp||d.shouldForwardProp,v=ft(r,p,a)||h,g=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Xe(n=e[s])?n(o):n;for(var i in a)"className"===i?o.className=at(o.className,a[i]):"style"===i?o.style=l(l({},o.style),a[i]):o[i]=a[i]}return"className"in t&&"string"==typeof t.className&&(o.className=at(o.className,t.className)),o}(o,r,v),y=g.as||f,S={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?S.as=g.forwardedAs:m&&!m(b,y)||(S[b]=g[b]));var w=function(e,t){var r=qe();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),C=w.className,A=w.css,x=at(c,u);C&&(x+=" "+C),g.className&&(x+=" "+g.className),S[Lt(y)&&!zt.has(y)?"class":"className"]=x,n&&(S.ref=n);var I=e.createElement(y,S);return i&&A?e.createElement(e.Fragment,null,e.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(C),children:A}),I):I}(P,t,r)}I.displayName=y;var P=e.forwardRef(I);return P.attrs=b,P.componentStyle=x,P.displayName=y,P.shouldForwardProp=w,P.foldedComponentIds=s?at(a.foldedComponentIds,a.styledComponentId):"",P.styledComponentId=S,P.target=s?a.target:t,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Wt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),d(P,function(){return".".concat(P.styledComponentId)}),c&&Tt(P,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function Vt(e,t,r){if(void 0===r&&(r=h),!t)throw m(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,St.apply(void 0,f([n],o,!1)))};return n.attrs=function(n){return Vt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Vt(e,t,l(l({},r),n))},n}new Set;var Jt=function(e){return Vt(Ut,e)},Zt=Jt;for(var Kt in zt.forEach(function(e){Zt[e]=Jt(e)}),Ft)Zt[Kt]=Ft[Kt];return Zt});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).styled=t(e.React)}(this,function(e){"use strict";var t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",r="active",n="data-styled-version",o="6.3.9-prerelease.1",s="/*!sc*/\n",a="undefined"!=typeof window&&"undefined"!=typeof document,i=void 0===e.createContext,c=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),u={},l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var p=Object.freeze([]),h=Object.freeze({});function d(e,t){Object.defineProperty(e,"toString",{value:t})}function m(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var v=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw m(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.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)}},e.prototype.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,a=n;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),g=new Map,y=new Map,S=1,b=function(e){if(g.has(e))return g.get(e);for(;y.has(S);)S++;var t=S++;return g.set(e,t),y.set(t,e),t},w=function(e,t){S=t+1,g.set(e,t),y.set(t,e)},C="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),A=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),x=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},I=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(s),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var u=c.match(A);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(w(f,l),x(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},P=function(e){for(var n=document.querySelectorAll(C),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(I(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function E(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){var r=Array.from(e.querySelectorAll("style[".concat(t,"]")));return r[r.length-1]}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=E();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},R=function(){function e(e){this.element=_(e),this.element.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}throw m(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),N=function(){function e(e){this.element=_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||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}(),k=a,O={isServer:!a,useCSSOMInjection:!c},T=function(){function e(e,r,n){void 0===e&&(e=h),void 0===r&&(r={});var o=this;this.options=l(l({},O),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&k&&(k=!1,P(this)),d(this,function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return y.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||!i.size||0===c.length)return"continue";var u="".concat(t,".g").concat(n,'[id="').concat(a,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),o+="".concat(c).concat(u,'{content:"').concat(l,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(o)})}return e.registerId=function(e){return b(e)},e.prototype.rehydrate=function(){!this.server&&a&&P(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},this.options),t),this.gs,r&&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.useCSSOMInjection,r=e.target;return e.isServer?new $(r):t?new R(r):new N(r)}(this.options),new v(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(b(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(b(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),j="-ms-",D="-moz-",F="-webkit-",z="comm",M="rule",G="decl",B="@keyframes",L=Math.abs,W=String.fromCharCode,Y=Object.assign;function q(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function V(e,t,r){return e.indexOf(t,r)}function J(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function K(e){return e.length}function Q(e){return e.length}function X(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!H(e,t)})}var te=1,re=1,ne=0,oe=0,se=0,ae="";function ie(e,t,r,n,o,s,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:te,column:re,length:a,return:"",siblings:i}}function ce(e,t){return Y(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=ce(e.root,{children:[e]});X(e,e.siblings)}function le(){return se=oe>0?J(ae,--oe):0,re--,10===se&&(re=1,te--),se}function fe(){return se=oe<ne?J(ae,oe++):0,re++,10===se&&(re=1,te++),se}function pe(){return J(ae,oe)}function he(){return oe}function de(e,t){return Z(ae,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 ve(e){return q(de(oe-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(se=pe())&&se<33;)fe();return me(e)>2||me(se)>3?"":" "}function ye(e,t){for(;--t&&fe()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return de(e,he()+(t<6&&32==pe()&&32==fe()))}function Se(e){for(;fe();)switch(se){case e:return oe;case 34:case 39:34!==e&&39!==e&&Se(se);break;case 40:41===e&&Se(e);break;case 92:fe()}return oe}function be(e,t){for(;fe()&&e+se!==57&&(e+se!==84||47!==pe()););return"/*"+de(t,oe-1)+"*"+W(47===e?e:fe())}function we(e){for(;!me(pe());)fe();return de(e,oe)}function Ce(e){return function(e){return ae="",e}(Ae("",null,null,null,[""],e=function(e){return te=re=1,ne=K(ae=e),oe=0,[]}(e),0,[0],e))}function Ae(e,t,r,n,o,s,a,i,c){for(var u=0,l=0,f=a,p=0,h=0,d=0,m=1,v=1,g=1,y=0,S="",b=o,w=s,C=n,A=S;v;)switch(d=y,y=fe()){case 40:if(108!=d&&58==J(A,f-1)){-1!=V(A+=U(ve(y),"&","&\f"),"&\f",L(u?i[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:A+=ve(y);break;case 9:case 10:case 13:case 32:A+=ge(d);break;case 92:A+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:X(Ie(be(fe(),he()),t,r,c),c),5!=me(d||1)&&5!=me(pe()||1)||!K(A)||" "===Z(A,-1,void 0)||(A+=" ");break;default:A+="/"}break;case 123*m:i[u++]=K(A)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==g&&(A=U(A,/\f/g,"")),h>0&&(K(A)-f||0===m&&47===d)&&X(h>32?Pe(A+";",n,r,f-1,c):Pe(U(A," ","")+";",n,r,f-2,c),c);break;case 59:A+=";";default:if(X(C=xe(A,t,r,u,l,o,i,S,b=[],w=[],f,s),s),123===y)if(0===l)Ae(A,t,C,C,b,s,f,i,w);else{switch(p){case 99:if(110===J(A,3))break;case 108:if(97===J(A,2))break;default:l=0;case 100:case 109:case 115:}l?Ae(e,C,C,n&&X(xe(e,C,C,0,0,o,i,S,o,b=[],f,w),w),o,w,f,i,n?b:w):Ae(A,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=A="",f=a;break;case 58:f=1+K(A),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==le())continue;switch(A+=W(y),y*m){case 38:g=l>0?1:(A+="\f",-1);break;case 44:i[u++]=(K(A)-1)*g,g=1;break;case 64:45===pe()&&(A+=ve(fe())),p=pe(),l=f=K(S=A+=we(he())),y++;break;case 45:45===d&&2==K(A)&&(m=0)}}return s}function xe(e,t,r,n,o,s,a,i,c,u,l,f){for(var p=o-1,h=0===o?s:[""],d=Q(h),m=0,v=0,g=0;m<n;++m)for(var y=0,S=Z(e,p+1,p=L(v=a[m])),b=e;y<d;++y)(b=q(v>0?h[y]+" "+S:U(S,/&\f/g,h[y])))&&(c[g++]=b);return ie(e,t,r,0===o?M:i,c,u,l,f)}function Ie(e,t,r,n){return ie(e,t,r,z,W(se),Z(e,2,-2),0,n)}function Pe(e,t,r,n,o){return ie(e,t,r,G,Z(e,0,n),Z(e,n+1,-1),n,o)}function Ee(e,t,r){switch(function(e,t){return 45^J(e,0)?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}(e,t)){case 5103:return F+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+j+e+e;case 5936:switch(J(e,t+11)){case 114:return F+e+j+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+j+e+e;case 6165:return F+e+j+"flex-"+e+e;case 5187:return F+e+U(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return F+e+j+"flex-item-"+U(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":j+"grid-row-"+U(e,/flex-|-self/g,""))+e;case 4675:return F+e+j+"flex-line-pack"+U(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+j+U(e,"shrink","negative")+e;case 5292:return F+e+j+U(e,"basis","preferred-size")+e;case 6060:return F+"box-"+U(e,"-grow","")+F+e+j+U(e,"grow","positive")+e;case 4554:return F+U(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+F+e+e;case 4200:if(!H(e,/flex-|baseline/))return j+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return j+U(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,H(e.props,/grid-\w+-end/)})?~V(e+(r=r[t].value),"span",0)?e:j+U(e,"-start","")+e+j+"grid-row-span:"+(~V(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":j+U(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return H(e.props,/grid-\w+-start/)})?e:j+U(U(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,F+"$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(K(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~V(e,"stretch",0)?Ee(U(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return U(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return j+r+":"+n+i+(o?j+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===J(e,t+6))return U(e,":",":"+F)+e;break;case 6444:switch(J(e,45===J(e,14)?18:11)){case 120:return U(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(45===J(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e;case 100:return U(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return U(e,"scroll-","scroll-snap-")+e}return e}function _e(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Re(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case G:return e.return=e.return||e.value;case z:return"";case B:return e.return=e.value+"{"+_e(e.children,n)+"}";case M:if(!K(e.value=e.props.join(",")))return""}return K(r=_e(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ne(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:return void(e.return=Ee(e.value,e.length,r));case B:return _e([ce(e,{value:U(e.value,"@","@"+F)})],n);case M:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(H(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(ce(e,{props:[U(t,/:(read-\w+)/,":-moz-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)});break;case"::placeholder":ue(ce(e,{props:[U(t,/:(plac\w+)/,":"+F+"input-$1")]})),ue(ce(e,{props:[U(t,/:(plac\w+)/,":-moz-$1")]})),ue(ce(e,{props:[U(t,/:(plac\w+)/,j+"input-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)})}return""})}}var $e=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return $e(5381,e)},Oe=/&/g,Te=47,je=42;function De(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,s=0;s<t;s++){var a=e.charCodeAt(s);if(0!==n||o||a!==Te||e.charCodeAt(s+1)!==je)if(o)a===je&&e.charCodeAt(s+1)===Te&&(o=!1,s++);else if(34!==a&&39!==a||0!==s&&92===e.charCodeAt(s-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,s++}return 0!==r||0!==n}function Fe(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Fe(e.children,t)),e})}function ze(e){var t,r,n,o=void 0===e?h:e,s=o.options,a=void 0===s?h:s,i=o.plugins,c=void 0===i?p:i,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===M&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,r).replace(n,u))}),a.prefix&&l.push(Ne),l.push(Re);var f=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=function(e){if(!De(e))return e;for(var t=e.length,r="",n=0,o=0,s=0,a=!1,i=0;i<t;i++){var c=e.charCodeAt(i);if(0!==s||a||c!==Te||e.charCodeAt(i+1)!==je)if(a)c===je&&e.charCodeAt(i+1)===Te&&(a=!1,i++);else if(34!==c&&39!==c||0!==i&&92===e.charCodeAt(i-1)){if(0===s)if(123===c)o++;else if(125===c){if(--o<0){for(var u=i+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,i=u-1,n=u;continue}0===o&&(r+=e.substring(n,i+1),n=i+1)}else 59===c&&0===o&&(r+=e.substring(n,i+1),n=i+1)}else 0===s?s=c:s===c&&(s=0);else a=!0,i++}if(n<t){var f=e.substring(n);De(f)||(r+=f)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,s=0,a=0;o<t;){var i=e.charCodeAt(o);if(34!==i&&39!==i||0!==o&&92===e.charCodeAt(o-1))if(0===s)if(i===Te&&o+1<t&&e.charCodeAt(o+1)===je){for(o+=2;o+1<t&&(e.charCodeAt(o)!==je||e.charCodeAt(o+1)!==Te);)o++;o+=2}else if(40===i&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===i?a--:40===i&&a++,o++;else if(i===je&&o+1<t&&e.charCodeAt(o+1)===Te)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(i===Te&&o+1<t&&e.charCodeAt(o+1)===Te){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===s?s=i:s===i&&(s=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=Ce(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=Fe(u,a.namespace));var f=[];return _e(u,function(e){var t=Q(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}(l.concat(function(e){e.root||(e=e.return)&&f.push(e)}))),f};return f.hash=c.length?c.reduce(function(e,t){return t.name||m(15),$e(e,t.name)},5381).toString():"",f}var Me=new T,Ge=ze(),Be={shouldForwardProp:void 0,styleSheet:Me,stylis:Ge},Le=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Be)}}:e.createContext(Be),We=Le.Consumer,Ye=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0);function qe(){return i?Be:e.useContext(Le)}function He(t){if(i||!e.useMemo)return t.children;var r=qe().styleSheet,n=e.useMemo(function(){var e=r;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,r]),o=e.useMemo(function(){return ze({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:t.stylisPlugins})},[t.enableVendorPrefixes,t.namespace,t.stylisPlugins]),s=e.useMemo(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:n,stylis:o}},[t.shouldForwardProp,n,o]);return e.createElement(Le.Provider,{value:s},e.createElement(Ye.Provider,{value:o},t.children))}var Ue=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ge);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,d(this,function(){throw m(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ge),this.name+e.hash},e}(),Ve={animationIterationCount:1,aspectRatio: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,scale: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};function Je(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ve||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function Ze(e){return e.displayName||e.name||"Component"}var Ke=function(e){return e>="A"&&e<="Z"};function Qe(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ke(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Xe(e){return"function"==typeof e}function et(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function tt(e){return"object"==typeof e&&"styledComponentId"in e}var rt=function(e){return null==e||!1===e||""===e},nt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!rt(n)&&(Array.isArray(n)&&n.isCss||Xe(n)?t.push("".concat(Qe(r),":"),n,";"):et(n)?t.push.apply(t,f(f(["".concat(r," {")],nt(n),!1),["}"],!1)):t.push("".concat(Qe(r),": ").concat(Je(r,n),";")))}return t};function ot(e,t,r,n){return rt(e)?[]:tt(e)?[".".concat(e.styledComponentId)]:Xe(e)?!Xe(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ot(e(t),t,r,n):e instanceof Ue?r?(e.inject(r,n),[e.getName(n)]):[e]:et(e)?nt(e):Array.isArray(e)?Array.prototype.concat.apply(p,e.map(function(e){return ot(e,t,r,n)})):[e.toString()];var o}function st(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Xe(r)&&!tt(r))return!1}return!0}function at(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function it(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}var ct=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=st(e),T.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(it(ot(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&T.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}(),ut=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0),lt=ut.Consumer;function ft(e,t,r){return void 0===r&&(r=h),e.theme!==r.theme&&e.theme||t||r.theme}var pt=/(a)(d)/gi,ht=function(e){return String.fromCharCode(e+(e>25?39:97))};function dt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ht(t%52)+r;return(ht(t%52)+r).replace(pt,"$1-$2")}function mt(e){return dt(ke(e)>>>0)}function vt(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}var gt,yt=function(e){return Object.assign(e,{isCss:!0})};function St(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Xe(e)||et(e))return yt(ot(vt(p,f([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ot(n):yt(ot(vt(n,t)))}var bt="function"==typeof Symbol&&Symbol.for,wt=bt?Symbol.for("react.memo"):60115,Ct=bt?Symbol.for("react.forward_ref"):60112,At={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xt={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},Pt=((gt={})[Ct]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt[wt]=It,gt);function Et(e){return("type"in(t=e)&&t.type.$$typeof)===wt?It:"$$typeof"in e?Pt[e.$$typeof]:At;var t}var _t=Object.defineProperty,Rt=Object.getOwnPropertyNames,Nt=Object.getOwnPropertySymbols,$t=Object.getOwnPropertyDescriptor,kt=Object.getPrototypeOf,Ot=Object.prototype;function Tt(e,t,r){if("string"!=typeof t){if(Ot){var n=kt(t);n&&n!==Ot&&Tt(e,n,r)}var o=Rt(t);Nt&&(o=o.concat(Nt(t)));for(var s=Et(e),a=Et(t),i=0;i<o.length;++i){var c=o[i];if(!(c in xt||r&&r[c]||a&&c in a||s&&c in s)){var u=$t(t,c);try{_t(e,c,u)}catch(e){}}}}return e}var jt=/^\s*<\/[a-z]/i,Dt=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var s=E(),a=it([s&&'nonce="'.concat(s,'"'),"".concat(t,'="true"'),"".concat(n,'="').concat(o,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(e,"</style>")},this.getStyleTags=function(){if(r.sealed)throw m(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw m(2);var a=r.instance.toString();if(!a)return[];var i=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:a},s),c=E();return c&&(i.nonce=c),[e.createElement("style",l({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new T({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw m(2);return e.createElement(He,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){if(a)throw m(3);if(this.sealed)throw m(2);this.seal();var t=require("stream").Transform,r=this.instance,n=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),a=n();if(r.clearTag(),jt.test(s)){var i=s.indexOf(">")+1,c=s.slice(0,i),u=s.slice(i);this.push(c+a+u)}else this.push(a+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},r}(),Ft=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Dt,StyleSheetConsumer:We,StyleSheetContext:Le,StyleSheetManager:He,ThemeConsumer:lt,ThemeContext:ut,ThemeProvider:function(t){if(i)return t.children;var r=e.useContext(ut),n=e.useMemo(function(){return function(e,t){if(!e)throw m(14);if(Xe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw m(8);return t?l(l({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(ut.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:T,mainSheet:Me},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=St.apply(void 0,f([t],r,!1)),s="sc-global-".concat(mt(JSON.stringify(o))),c=new ct(o,s),p=new WeakMap,h=function(t){var r=qe(),n=i?void 0:e.useContext(ut),o=p.get(r.styleSheet);if(void 0===o&&(o=r.styleSheet.allocateGSInstance(s),p.set(r.styleSheet,o)),("undefined"==typeof window||!r.styleSheet.server)&&d(o,t,r.styleSheet,n,r.stylis),a&&!i&&e.useLayoutEffect(function(){return r.styleSheet.server||d(o,t,r.styleSheet,n,r.stylis),function(){c.removeStyles(o,r.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(s,'"]')).forEach(function(e){return e.remove()})}},[o,t,r.styleSheet,n,r.stylis]),i){var u=s+o,l="undefined"==typeof window?r.styleSheet.getTag().getGroup(b(u)):"";if(l){var f="".concat(s,"-").concat(o);return e.createElement("style",{key:f,"data-styled-global":s,precedence:"styled-components",href:f,children:l})}}return null};function d(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,u,r,o);else{var s=l(l({},t),{theme:ft(t,n,h.defaultProps)});c.renderStyles(e,s,r,o)}}return e.memo(h)},css:St,isStyledComponent:tt,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=it(St.apply(void 0,f([e],t,!1))),o=mt(n);return new Ue(o,n)},useTheme:function(){var t=i?void 0:e.useContext(ut);if(!t)throw m(18);return t},version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=ft(r,i?void 0:e.useContext(ut),t.defaultProps);return e.createElement(t,l(l({},r),{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ze(t),")"),Tt(r,t)}}),zt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Mt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Gt=/(^-|-$)/g;function Bt(e){return e.replace(Mt,"-").replace(Gt,"")}function Lt(e){return"string"==typeof e&&!0}function Wt(e,t,r){if(void 0===r&&(r=!1),!r&&!et(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Wt(e[n],t[n]);else if(et(t))for(var n in t)e[n]=Wt(e[n],t[n]);return e}var Yt=ke(o),qt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&st(e),this.componentId=t,this.baseHash=$e(Yt,t),this.baseStyle=r,T.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=at(n,this.staticRulesId);else{var o=it(ot(this.rules,e,t,r)),s=dt($e(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=at(n,s),this.staticRulesId=s}else{for(var i=$e(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=it(ot(l,e,t,r));i=$e(i,f+u),c+=f}}if(c){var p=dt(i>>>0);if(!t.hasNameForId(this.componentId,p)){var h=r(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}n=at(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(b(this.componentId)):""}},e}(),Ht={};function Ut(t,r,n){var s=tt(t),a=t,c=!Lt(t),u=r.attrs,f=void 0===u?p:u,m=r.componentId,v=void 0===m?function(e,t){var r="string"!=typeof e?"sc":Bt(e);Ht[r]=(Ht[r]||0)+1;var n="".concat(r,"-").concat(mt(o+r+Ht[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):m,g=r.displayName,y=void 0===g?function(e){return Lt(e)?"styled.".concat(e):"Styled(".concat(Ze(e),")")}(t):g,S=r.displayName&&r.componentId?"".concat(Bt(r.displayName),"-").concat(r.componentId):r.componentId||v,b=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var C=a.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;w=function(e,t){return C(e,t)&&A(e,t)}}else w=C}var x=new qt(n,S,s?a.componentStyle:void 0);function I(t,r){return function(t,r,n){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,f=t.target,p=i?void 0:e.useContext(ut),d=qe(),m=t.shouldForwardProp||d.shouldForwardProp,v=ft(r,p,a)||h,g=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Xe(n=e[s])?n(o):n;for(var i in a)"className"===i?o.className=at(o.className,a[i]):"style"===i?o.style=l(l({},o.style),a[i]):o[i]=a[i]}return"className"in t&&"string"==typeof t.className&&(o.className=at(o.className,t.className)),o}(o,r,v),y=g.as||f,S={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?S.as=g.forwardedAs:m&&!m(b,y)||(S[b]=g[b]));var w=function(e,t){var r=qe();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),C=w.className,A=w.css,x=at(c,u);C&&(x+=" "+C),g.className&&(x+=" "+g.className),S[Lt(y)&&!zt.has(y)?"class":"className"]=x,n&&(S.ref=n);var I=e.createElement(y,S);return i&&A?e.createElement(e.Fragment,null,e.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(C),children:A}),I):I}(P,t,r)}I.displayName=y;var P=e.forwardRef(I);return P.attrs=b,P.componentStyle=x,P.displayName=y,P.shouldForwardProp=w,P.foldedComponentIds=s?at(a.foldedComponentIds,a.styledComponentId):"",P.styledComponentId=S,P.target=s?a.target:t,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Wt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),d(P,function(){return".".concat(P.styledComponentId)}),c&&Tt(P,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function Vt(e,t,r){if(void 0===r&&(r=h),!t)throw m(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,St.apply(void 0,f([n],o,!1)))};return n.attrs=function(n){return Vt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Vt(e,t,l(l({},r),n))},n}new Set;var Jt=function(e){return Vt(Ut,e)},Zt=Jt;for(var Kt in zt.forEach(function(e){Zt[e]=Jt(e)}),Ft)Zt[Kt]=Ft[Kt];return Zt});
2
2
  //# sourceMappingURL=styled-components.min.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("css-to-react-native"),t=require("postcss"),n=require("tslib"),r=require("react"),o=require("stylis"),i=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=/*#__PURE__*/s(e),u=/*#__PURE__*/s(r),l=/*#__PURE__*/a(o),p=/*#__PURE__*/s(i),f=Object.freeze([]),h=Object.freeze({}),d="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(y.apply(void 0,n.__spreadArray([d[e]],t,!1)).trim())}function g(e,t){Object.defineProperty(e,"toString",{value:t})}var m="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",S="active",_="data-styled-version",w="6.3.9-prerelease.0",A="/*!sc*/\n",b="undefined"!=typeof window&&"undefined"!=typeof document,C=void 0===u.default.createContext,E=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),P=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 v(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(A);return t},e}(),N=1<<30,O=new Map,T=new Map,x=1,D=function(e){if(O.has(e))return O.get(e);for(;T.has(x);)x++;var t=x++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw v(16,"".concat(t));return O.set(e,t),T.set(t,e),t},j=function(e,t){x=t+1,O.set(e,t),T.set(t,e)},R="style[".concat(m,"][").concat(_,'="').concat(w,'"]'),I=new RegExp("^".concat(m,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},B=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(A),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(I);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(j(l,u),z(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},k=function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(m)!==S&&(B(e,o),o.parentNode&&o.parentNode.removeChild(o))}},L=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(m,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(m,S),r.setAttribute(_,w);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},V=function(){function e(e){this.element=L(e),this.element.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 v(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),M=function(){function e(e){this.element=L(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),F=b,q={isServer:!b,useCSSOMInjection:!E},Y=function(){function e(e,t,r){void 0===e&&(e=h),void 0===t&&(t={});var o=this;this.options=n.__assign(n.__assign({},q),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&b&&F&&(F=!1,k(this)),g(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return T.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(m,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(A)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return D(e)},e.prototype.rehydrate=function(){!this.server&&b&&k(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n.__assign(n.__assign({},this.options),t),this.gs,r&&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.useCSSOMInjection,n=e.target;return e.isServer?new $(n):t?new V(n):new M(n)}(this.options),new P(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(D(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(D(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=/&/g,H=47,U=42;function K(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var s=e.charCodeAt(i);if(0!==r||o||s!==H||e.charCodeAt(i+1)!==U)if(o)s===U&&e.charCodeAt(i+1)===H&&(o=!1,i++);else if(34!==s&&39!==s||0!==i&&92===e.charCodeAt(i-1)){if(0===r)if(123===s)n++;else if(125===s&&--n<0)return!0}else 0===r?r=s:r===s&&(r=0);else o=!0,i++}return 0!==n||0!==r}function Z(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Z(e.children,t)),e})}var J=new Y,Q=function(){var e,t,n,r=h.options,o=void 0===r?h:r,i=h.plugins,s=void 0===i?f:i,a=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},c=s.slice();c.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(W,t).replace(n,a))}),o.prefix&&c.push(l.prefixer),c.push(l.stringify);var u=function(r,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),e=a,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=function(e){if(!K(e))return e;for(var t=e.length,n="",r=0,o=0,i=0,s=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==i||s||c!==H||e.charCodeAt(a+1)!==U)if(s)c===U&&e.charCodeAt(a+1)===H&&(s=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===i)if(123===c)o++;else if(125===c){if(--o<0){for(var u=a+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,a=u-1,r=u;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===i?i=c:i===c&&(i=0);else s=!0,a++}if(r<t){var p=e.substring(r);K(p)||(n+=p)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,i=0,s=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(a===H&&o+1<t&&e.charCodeAt(o+1)===U){for(o+=2;o+1<t&&(e.charCodeAt(o)!==U||e.charCodeAt(o+1)!==H);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))s=1,o++;else if(s>0)41===a?s--:40===a&&s++,o++;else if(a===U&&o+1<t&&e.charCodeAt(o+1)===H)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===H&&o+1<t&&e.charCodeAt(o+1)===H){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===i?i=a:i===a&&(i=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),p=l.compile(s||i?"".concat(s," ").concat(i," { ").concat(u," }"):u);o.namespace&&(p=Z(p,o.namespace));var f=[];return l.serialize(p,l.middleware(c.concat(l.rulesheet(function(e){return f.push(e)})))),f};return u.hash=s.length?s.reduce(function(e,t){return t.name||v(15),G(e,t.name)},5381).toString():"",u}(),X=(C||u.default.createContext({shouldForwardProp:void 0,styleSheet:J,stylis:Q}),C||u.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Q);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,g(this,function(){throw v(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Q),this.name+e.hash},e}());function ee(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in p.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function te(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var ne=function(e){return e>="A"&&e<="Z"};function re(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ne(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function oe(e){return"function"==typeof e}function ie(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e){return"object"==typeof e&&"styledComponentId"in e}var ae=function(e){return null==e||!1===e||""===e},ce=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!ae(o)&&(Array.isArray(o)&&o.isCss||oe(o)?t.push("".concat(re(r),":"),o,";"):ie(o)?t.push.apply(t,n.__spreadArray(n.__spreadArray(["".concat(r," {")],ce(o),!1),["}"],!1)):t.push("".concat(re(r),": ").concat(ee(r,o),";")))}return t};function ue(e,t,n,r){if(ae(e))return[];if(se(e))return[".".concat(e.styledComponentId)];if(oe(e)){if(!oe(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof X||ie(o)||null===o||console.error("".concat(te(e)," 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.")),ue(o,t,n,r)}var i;return e instanceof X?n?(e.inject(n,r),[e.getName(r)]):[e]:ie(e)?ce(e):Array.isArray(e)?Array.prototype.concat.apply(f,e.map(function(e){return ue(e,t,n,r)})):[e.toString()]}function le(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 pe=function(e){return Object.assign(e,{isCss:!0})};function fe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(oe(e)||ie(e))return pe(ue(le(f,n.__spreadArray([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ue(o):pe(ue(le(o,t)))}function he(e,t,r){if(void 0===r&&(r=h),!t)throw v(1,t);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,fe.apply(void 0,n.__spreadArray([o],i,!1)))};return o.attrs=function(o){return he(e,t,n.__assign(n.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return he(e,t,n.__assign(n.__assign({},r),o))},o}var de,ye=C?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:u.default.createContext(void 0),ve=ye.Consumer;function ge(e,t,n){return void 0===n&&(n=h),e.theme!==n.theme&&e.theme||t||n.theme}var me="function"==typeof Symbol&&Symbol.for,Se=me?Symbol.for("react.memo"):60115,_e=me?Symbol.for("react.forward_ref"):60112,we={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},be={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ce=((de={})[_e]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},de[Se]=be,de);function Ee(e){return("type"in(t=e)&&t.type.$$typeof)===Se?be:"$$typeof"in e?Ce[e.$$typeof]:we;var t}var Pe=Object.defineProperty,Ne=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Te=Object.getOwnPropertyDescriptor,xe=Object.getPrototypeOf,De=Object.prototype;function je(e,t,n){if("string"!=typeof t){if(De){var r=xe(t);r&&r!==De&&je(e,r,n)}var o=Ne(t);Oe&&(o=o.concat(Oe(t)));for(var i=Ee(e),s=Ee(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Ae||n&&n[c]||s&&c in s||i&&c in i)){var u=Te(t,c);try{Pe(e,c,u)}catch(e){}}}}return e}var Re=/(a)(d)/gi,Ie=function(e){return String.fromCharCode(e+(e>25?39:97))};function ze(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var Be=["fit-content","min-content","max-content"],ke={};function Le(e,t,n){if(void 0===n&&(n=!1),!n&&!ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Le(e[r],t[r]);else if(ie(t))for(var r in t)e[r]=Le(e[r],t[r]);return e}var Ve,Me,$e=require("react-native"),Fe=(Ve=$e.StyleSheet,Me=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var n=ze(ue(this.rules,e)),r=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ie(t%52)+n;return(Ie(t%52)+n).replace(Re,"$1-$2")}(G(5381,n)>>>0);if(!ke[r]){var o=t.parse(n),i=[];o.each(function(e){if("decl"===e.type){if(Be.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));i.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=c.default(i,["borderWidth","borderColor"]),a=Ve.create({generated:s});ke[r]=a.generated}return ke[r]},e}(),function(e,t,o){var i=se(e),s=e,a=t.displayName,c=void 0===a?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(te(e),")")}(e):a,l=t.attrs,p=void 0===l?f:l,d=i&&s.attrs?s.attrs.concat(p).filter(Boolean):p,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;y=function(e,t){return v(e,t)&&g(e,t)}}else y=v}var m=function(e,t){return function(e,t,o){var i=e.attrs,s=e.inlineStyle,a=e.defaultProps,c=e.shouldForwardProp,l=e.target,p=u.default.useContext?u.default.useContext(ye):void 0,f=function(e,t,r){void 0===e&&(e=h);var o=n.__assign(n.__assign({},t),{theme:e}),i={};return r.forEach(function(e){var t,n=oe(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ge(t,p,a)||h,t,i),d=f[1],y=s.generateStyleObject(f[0]),v=o,g=d.as||t.as||l,m=d!==t?n.__assign(n.__assign({},t),d):t,S={};for(var _ in m)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=m[_]:c&&!c(_,g)||(S[_]=m[_]));return S.style=u.default.useMemo?u.default.useMemo(function(){return oe(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):oe(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,o&&(S.ref=v),r.createElement(g,S)}(S,e,t)};m.displayName=c;var S=u.default.forwardRef(m);return S.attrs=d,S.inlineStyle=new Me(i?s.inlineStyle.rules.concat(o):o),S.displayName=c,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Le(e,o[r],!0);return e}({},s.defaultProps,e):e}}),je(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),qe=function(e){return he(Fe,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(qe,e,{enumerable:!0,configurable:!1,get:function(){if(e in $e&&$e[e])return qe($e[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=ve,exports.ThemeContext=ye,exports.ThemeProvider=function(e){if(C)return e.children;var t=u.default.useContext(ye),r=u.default.useMemo(function(){return function(e,t){if(!e)throw v(14);if(oe(e)){var r=e(t);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw v(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?n.__assign(n.__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?u.default.createElement(ye.Provider,{value:r},e.children):null},exports.css=fe,exports.default=qe,exports.isStyledComponent=se,exports.styled=qe,exports.toStyleSheet=function(e){var n=ze(ue(e)),r=t.parse(n),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var i=c.default(o,["borderWidth","borderColor"]);return $e.StyleSheet.create({style:i}).style},exports.useTheme=function(){var e=C?void 0:u.default.useContext(ye);if(!e)throw v(18);return e},exports.withTheme=function(e){var t=u.default.forwardRef(function(t,r){var o=ge(t,C?void 0:u.default.useContext(ye),e.defaultProps);return"production"!==process.env.NODE_ENV&&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(te(e),'"')),u.default.createElement(e,n.__assign(n.__assign({},t),{theme:o,ref:r}))});return t.displayName="WithTheme(".concat(te(e),")"),je(t,e)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("css-to-react-native"),t=require("postcss"),n=require("tslib"),r=require("react"),o=require("stylis"),i=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=/*#__PURE__*/s(e),u=/*#__PURE__*/s(r),l=/*#__PURE__*/a(o),p=/*#__PURE__*/s(i),f=Object.freeze([]),h=Object.freeze({}),d="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(y.apply(void 0,n.__spreadArray([d[e]],t,!1)).trim())}function g(e,t){Object.defineProperty(e,"toString",{value:t})}var m="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",S="active",_="data-styled-version",w="6.3.9-prerelease.1",A="/*!sc*/\n",b="undefined"!=typeof window&&"undefined"!=typeof document,C=void 0===u.default.createContext,E=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),P=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 v(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(A);return t},e}(),N=1<<30,O=new Map,T=new Map,x=1,D=function(e){if(O.has(e))return O.get(e);for(;T.has(x);)x++;var t=x++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw v(16,"".concat(t));return O.set(e,t),T.set(t,e),t},j=function(e,t){x=t+1,O.set(e,t),T.set(t,e)},R="style[".concat(m,"][").concat(_,'="').concat(w,'"]'),I=new RegExp("^".concat(m,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},B=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(A),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(I);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(j(l,u),z(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},k=function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(m)!==S&&(B(e,o),o.parentNode&&o.parentNode.removeChild(o))}},L=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(m,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(m,S),r.setAttribute(_,w);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},V=function(){function e(e){this.element=L(e),this.element.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 v(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),M=function(){function e(e){this.element=L(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),F=b,q={isServer:!b,useCSSOMInjection:!E},Y=function(){function e(e,t,r){void 0===e&&(e=h),void 0===t&&(t={});var o=this;this.options=n.__assign(n.__assign({},q),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&b&&F&&(F=!1,k(this)),g(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return T.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(m,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(A)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return D(e)},e.prototype.rehydrate=function(){!this.server&&b&&k(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n.__assign(n.__assign({},this.options),t),this.gs,r&&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.useCSSOMInjection,n=e.target;return e.isServer?new $(n):t?new V(n):new M(n)}(this.options),new P(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(D(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(D(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=/&/g,H=47,U=42;function K(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var s=e.charCodeAt(i);if(0!==r||o||s!==H||e.charCodeAt(i+1)!==U)if(o)s===U&&e.charCodeAt(i+1)===H&&(o=!1,i++);else if(34!==s&&39!==s||0!==i&&92===e.charCodeAt(i-1)){if(0===r)if(123===s)n++;else if(125===s&&--n<0)return!0}else 0===r?r=s:r===s&&(r=0);else o=!0,i++}return 0!==n||0!==r}function Z(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Z(e.children,t)),e})}var J=new Y,Q=function(){var e,t,n,r=h.options,o=void 0===r?h:r,i=h.plugins,s=void 0===i?f:i,a=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},c=s.slice();c.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(W,t).replace(n,a))}),o.prefix&&c.push(l.prefixer),c.push(l.stringify);var u=function(r,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),e=a,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=function(e){if(!K(e))return e;for(var t=e.length,n="",r=0,o=0,i=0,s=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==i||s||c!==H||e.charCodeAt(a+1)!==U)if(s)c===U&&e.charCodeAt(a+1)===H&&(s=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===i)if(123===c)o++;else if(125===c){if(--o<0){for(var u=a+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,a=u-1,r=u;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===i?i=c:i===c&&(i=0);else s=!0,a++}if(r<t){var p=e.substring(r);K(p)||(n+=p)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,i=0,s=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(a===H&&o+1<t&&e.charCodeAt(o+1)===U){for(o+=2;o+1<t&&(e.charCodeAt(o)!==U||e.charCodeAt(o+1)!==H);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))s=1,o++;else if(s>0)41===a?s--:40===a&&s++,o++;else if(a===U&&o+1<t&&e.charCodeAt(o+1)===H)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===H&&o+1<t&&e.charCodeAt(o+1)===H){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===i?i=a:i===a&&(i=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),p=l.compile(s||i?"".concat(s," ").concat(i," { ").concat(u," }"):u);o.namespace&&(p=Z(p,o.namespace));var f=[];return l.serialize(p,l.middleware(c.concat(l.rulesheet(function(e){return f.push(e)})))),f};return u.hash=s.length?s.reduce(function(e,t){return t.name||v(15),G(e,t.name)},5381).toString():"",u}(),X=(C||u.default.createContext({shouldForwardProp:void 0,styleSheet:J,stylis:Q}),C||u.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Q);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,g(this,function(){throw v(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Q),this.name+e.hash},e}());function ee(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in p.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function te(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var ne=function(e){return e>="A"&&e<="Z"};function re(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ne(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function oe(e){return"function"==typeof e}function ie(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e){return"object"==typeof e&&"styledComponentId"in e}var ae=function(e){return null==e||!1===e||""===e},ce=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!ae(o)&&(Array.isArray(o)&&o.isCss||oe(o)?t.push("".concat(re(r),":"),o,";"):ie(o)?t.push.apply(t,n.__spreadArray(n.__spreadArray(["".concat(r," {")],ce(o),!1),["}"],!1)):t.push("".concat(re(r),": ").concat(ee(r,o),";")))}return t};function ue(e,t,n,r){if(ae(e))return[];if(se(e))return[".".concat(e.styledComponentId)];if(oe(e)){if(!oe(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof X||ie(o)||null===o||console.error("".concat(te(e)," 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.")),ue(o,t,n,r)}var i;return e instanceof X?n?(e.inject(n,r),[e.getName(r)]):[e]:ie(e)?ce(e):Array.isArray(e)?Array.prototype.concat.apply(f,e.map(function(e){return ue(e,t,n,r)})):[e.toString()]}function le(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 pe=function(e){return Object.assign(e,{isCss:!0})};function fe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(oe(e)||ie(e))return pe(ue(le(f,n.__spreadArray([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ue(o):pe(ue(le(o,t)))}function he(e,t,r){if(void 0===r&&(r=h),!t)throw v(1,t);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,fe.apply(void 0,n.__spreadArray([o],i,!1)))};return o.attrs=function(o){return he(e,t,n.__assign(n.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return he(e,t,n.__assign(n.__assign({},r),o))},o}var de,ye=C?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:u.default.createContext(void 0),ve=ye.Consumer;function ge(e,t,n){return void 0===n&&(n=h),e.theme!==n.theme&&e.theme||t||n.theme}var me="function"==typeof Symbol&&Symbol.for,Se=me?Symbol.for("react.memo"):60115,_e=me?Symbol.for("react.forward_ref"):60112,we={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},be={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ce=((de={})[_e]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},de[Se]=be,de);function Ee(e){return("type"in(t=e)&&t.type.$$typeof)===Se?be:"$$typeof"in e?Ce[e.$$typeof]:we;var t}var Pe=Object.defineProperty,Ne=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Te=Object.getOwnPropertyDescriptor,xe=Object.getPrototypeOf,De=Object.prototype;function je(e,t,n){if("string"!=typeof t){if(De){var r=xe(t);r&&r!==De&&je(e,r,n)}var o=Ne(t);Oe&&(o=o.concat(Oe(t)));for(var i=Ee(e),s=Ee(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Ae||n&&n[c]||s&&c in s||i&&c in i)){var u=Te(t,c);try{Pe(e,c,u)}catch(e){}}}}return e}var Re=/(a)(d)/gi,Ie=function(e){return String.fromCharCode(e+(e>25?39:97))};function ze(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var Be=["fit-content","min-content","max-content"],ke={};function Le(e,t,n){if(void 0===n&&(n=!1),!n&&!ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Le(e[r],t[r]);else if(ie(t))for(var r in t)e[r]=Le(e[r],t[r]);return e}var Ve,Me,$e=require("react-native"),Fe=(Ve=$e.StyleSheet,Me=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var n=ze(ue(this.rules,e)),r=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ie(t%52)+n;return(Ie(t%52)+n).replace(Re,"$1-$2")}(G(5381,n)>>>0);if(!ke[r]){var o=t.parse(n),i=[];o.each(function(e){if("decl"===e.type){if(Be.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));i.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=c.default(i,["borderWidth","borderColor"]),a=Ve.create({generated:s});ke[r]=a.generated}return ke[r]},e}(),function(e,t,o){var i=se(e),s=e,a=t.displayName,c=void 0===a?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(te(e),")")}(e):a,l=t.attrs,p=void 0===l?f:l,d=i&&s.attrs?s.attrs.concat(p).filter(Boolean):p,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;y=function(e,t){return v(e,t)&&g(e,t)}}else y=v}var m=function(e,t){return function(e,t,o){var i=e.attrs,s=e.inlineStyle,a=e.defaultProps,c=e.shouldForwardProp,l=e.target,p=u.default.useContext?u.default.useContext(ye):void 0,f=function(e,t,r){void 0===e&&(e=h);var o=n.__assign(n.__assign({},t),{theme:e}),i={};return r.forEach(function(e){var t,n=oe(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ge(t,p,a)||h,t,i),d=f[1],y=s.generateStyleObject(f[0]),v=o,g=d.as||t.as||l,m=d!==t?n.__assign(n.__assign({},t),d):t,S={};for(var _ in m)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=m[_]:c&&!c(_,g)||(S[_]=m[_]));return S.style=u.default.useMemo?u.default.useMemo(function(){return oe(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):oe(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,o&&(S.ref=v),r.createElement(g,S)}(S,e,t)};m.displayName=c;var S=u.default.forwardRef(m);return S.attrs=d,S.inlineStyle=new Me(i?s.inlineStyle.rules.concat(o):o),S.displayName=c,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Le(e,o[r],!0);return e}({},s.defaultProps,e):e}}),je(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),qe=function(e){return he(Fe,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(qe,e,{enumerable:!0,configurable:!1,get:function(){if(e in $e&&$e[e])return qe($e[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=ve,exports.ThemeContext=ye,exports.ThemeProvider=function(e){if(C)return e.children;var t=u.default.useContext(ye),r=u.default.useMemo(function(){return function(e,t){if(!e)throw v(14);if(oe(e)){var r=e(t);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw v(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?n.__assign(n.__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?u.default.createElement(ye.Provider,{value:r},e.children):null},exports.css=fe,exports.default=qe,exports.isStyledComponent=se,exports.styled=qe,exports.toStyleSheet=function(e){var n=ze(ue(e)),r=t.parse(n),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var i=c.default(o,["borderWidth","borderColor"]);return $e.StyleSheet.create({style:i}).style},exports.useTheme=function(){var e=C?void 0:u.default.useContext(ye);if(!e)throw v(18);return e},exports.withTheme=function(e){var t=u.default.forwardRef(function(t,r){var o=ge(t,C?void 0:u.default.useContext(ye),e.defaultProps);return"production"!==process.env.NODE_ENV&&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(te(e),'"')),u.default.createElement(e,n.__assign(n.__assign({},t),{theme:o,ref:r}))});return t.displayName="WithTheme(".concat(te(e),")"),je(t,e)};
2
2
  //# sourceMappingURL=styled-components.native.cjs.js.map
@@ -1,2 +1,2 @@
1
- import e from"css-to-react-native";import{parse as t}from"postcss";import{__spreadArray as n,__assign as r}from"tslib";import o,{createElement as i}from"react";import*as s from"stylis";import a from"@emotion/unitless";var c=Object.freeze([]),u=Object.freeze({}),l="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(p.apply(void 0,n([l[e]],t,!1)).trim())}function f(e,t){Object.defineProperty(e,"toString",{value:t})}var d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="active",v="data-styled-version",m="6.3.9-prerelease.0",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=void 0===o.createContext,A=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),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 h(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(g);return t},e}(),C=1<<30,E=new Map,P=new Map,_=1,N=function(e){if(E.has(e))return E.get(e);for(;P.has(_);)_++;var t=_++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>C))throw h(16,"".concat(t));return E.set(e,t),P.set(t,e),t},T=function(e,t){_=t+1,E.set(e,t),P.set(t,e)},O="style[".concat(d,"][").concat(v,'="').concat(m,'"]'),D=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),R=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},x=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(D);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(T(l,u),R(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},j=function(e){for(var t=document.querySelectorAll(O),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==y&&(x(e,o),o.parentNode&&o.parentNode.removeChild(o))}},I=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(d,y),r.setAttribute(v,m);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},B=function(){function e(e){this.element=I(e),this.element.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 h(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),z=function(){function e(e){this.element=I(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),L=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}(),V=S,k={isServer:!S,useCSSOMInjection:!A},$=function(){function e(e,t,n){void 0===e&&(e=u),void 0===t&&(t={});var o=this;this.options=r(r({},k),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&V&&(V=!1,j(this)),f(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return P.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(g)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return N(e)},e.prototype.rehydrate=function(){!this.server&&S&&j(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},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.useCSSOMInjection,n=e.target;return e.isServer?new L(n):t?new B(n):new z(n)}(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(N(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(N(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),F=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=/&/g,Y=47,G=42;function W(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var s=e.charCodeAt(i);if(0!==r||o||s!==Y||e.charCodeAt(i+1)!==G)if(o)s===G&&e.charCodeAt(i+1)===Y&&(o=!1,i++);else if(34!==s&&39!==s||0!==i&&92===e.charCodeAt(i-1)){if(0===r)if(123===s)n++;else if(125===s&&--n<0)return!0}else 0===r?r=s:r===s&&(r=0);else o=!0,i++}return 0!==n||0!==r}function q(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=q(e.children,t)),e})}var H=new $,U=function(){var e,t,n,r=u.options,o=void 0===r?u:r,i=u.plugins,a=void 0===i?c:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},p=a.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(M,t).replace(n,l))}),o.prefix&&p.push(s.prefixer),p.push(s.stringify);var f=function(r,i,a,c){void 0===i&&(i=""),void 0===a&&(a=""),void 0===c&&(c="&"),e=c,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=function(e){if(!W(e))return e;for(var t=e.length,n="",r=0,o=0,i=0,s=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==i||s||c!==Y||e.charCodeAt(a+1)!==G)if(s)c===G&&e.charCodeAt(a+1)===Y&&(s=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===i)if(123===c)o++;else if(125===c){if(--o<0){for(var u=a+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,a=u-1,r=u;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===i?i=c:i===c&&(i=0);else s=!0,a++}if(r<t){var p=e.substring(r);W(p)||(n+=p)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,i=0,s=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(a===Y&&o+1<t&&e.charCodeAt(o+1)===G){for(o+=2;o+1<t&&(e.charCodeAt(o)!==G||e.charCodeAt(o+1)!==Y);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))s=1,o++;else if(s>0)41===a?s--:40===a&&s++,o++;else if(a===G&&o+1<t&&e.charCodeAt(o+1)===Y)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===Y&&o+1<t&&e.charCodeAt(o+1)===Y){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===i?i=a:i===a&&(i=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),l=s.compile(a||i?"".concat(a," ").concat(i," { ").concat(u," }"):u);o.namespace&&(l=q(l,o.namespace));var h=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return h.push(e)})))),h};return f.hash=a.length?a.reduce(function(e,t){return t.name||h(15),F(e,t.name)},5381).toString():"",f}(),K=(w||o.createContext({shouldForwardProp:void 0,styleSheet:H,stylis:U}),w||o.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=U);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,f(this,function(){throw h(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=U),this.name+e.hash},e}());function Z(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in a||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function J(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var Q=function(e){return e>="A"&&e<="Z"};function X(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Q(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function ee(e){return"function"==typeof e}function te(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ne(e){return"object"==typeof e&&"styledComponentId"in e}var re=function(e){return null==e||!1===e||""===e},oe=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!re(o)&&(Array.isArray(o)&&o.isCss||ee(o)?t.push("".concat(X(r),":"),o,";"):te(o)?t.push.apply(t,n(n(["".concat(r," {")],oe(o),!1),["}"],!1)):t.push("".concat(X(r),": ").concat(Z(r,o),";")))}return t};function ie(e,t,n,r){if(re(e))return[];if(ne(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof K||te(o)||null===o||console.error("".concat(J(e)," 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.")),ie(o,t,n,r)}var i;return e instanceof K?n?(e.inject(n,r),[e.getName(r)]):[e]:te(e)?oe(e):Array.isArray(e)?Array.prototype.concat.apply(c,e.map(function(e){return ie(e,t,n,r)})):[e.toString()]}function se(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 ae=function(e){return Object.assign(e,{isCss:!0})};function ce(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ee(e)||te(e))return ae(ie(se(c,n([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ie(o):ae(ie(se(o,t)))}function ue(e,t,o){if(void 0===o&&(o=u),!t)throw h(1,t);var i=function(r){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,o,ce.apply(void 0,n([r],i,!1)))};return i.attrs=function(n){return ue(e,t,r(r({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i.withConfig=function(n){return ue(e,t,r(r({},o),n))},i}var le,pe=w?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),he=pe.Consumer;function fe(){var e=w?void 0:o.useContext(pe);if(!e)throw h(18);return e}function de(e){if(w)return e.children;var t=o.useContext(pe),n=o.useMemo(function(){return function(e,t){if(!e)throw h(14);if(ee(e)){var n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw h(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw h(8);return t?r(r({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?o.createElement(pe.Provider,{value:n},e.children):null}function ye(e,t,n){return void 0===n&&(n=u),e.theme!==n.theme&&e.theme||t||n.theme}var ve="function"==typeof Symbol&&Symbol.for,me=ve?Symbol.for("react.memo"):60115,ge=ve?Symbol.for("react.forward_ref"):60112,Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},we={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},be=((le={})[ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},le[me]=Ae,le);function Ce(e){return("type"in(t=e)&&t.type.$$typeof)===me?Ae:"$$typeof"in e?be[e.$$typeof]:Se;var t}var Ee=Object.defineProperty,Pe=Object.getOwnPropertyNames,_e=Object.getOwnPropertySymbols,Ne=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,Oe=Object.prototype;function De(e,t,n){if("string"!=typeof t){if(Oe){var r=Te(t);r&&r!==Oe&&De(e,r,n)}var o=Pe(t);_e&&(o=o.concat(_e(t)));for(var i=Ce(e),s=Ce(t),a=0;a<o.length;++a){var c=o[a];if(!(c in we||n&&n[c]||s&&c in s||i&&c in i)){var u=Ne(t,c);try{Ee(e,c,u)}catch(e){}}}}return e}function Re(e){var t=o.forwardRef(function(t,n){var i=ye(t,w?void 0:o.useContext(pe),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===i&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(J(e),'"')),o.createElement(e,r(r({},t),{theme:i,ref:n}))});return t.displayName="WithTheme(".concat(J(e),")"),De(t,e)}var xe=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ie(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var Be=["fit-content","min-content","max-content"],ze={};function Le(e,t,n){if(void 0===n&&(n=!1),!n&&!te(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Le(e[r],t[r]);else if(te(t))for(var r in t)e[r]=Le(e[r],t[r]);return e}var Ve,ke,$e=require("react-native"),Fe=(Ve=$e.StyleSheet,ke=function(){function n(e){this.rules=e}return n.prototype.generateStyleObject=function(n){var r=Ie(ie(this.rules,n)),o=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(xe,"$1-$2")}(F(5381,r)>>>0);if(!ze[o]){var i=t(r),s=[];i.each(function(e){if("decl"===e.type){if(Be.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));s.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var a=e(s,["borderWidth","borderColor"]),c=Ve.create({generated:a});ze[o]=c.generated}return ze[o]},n}(),function(e,t,n){var s=ne(e),a=e,l=t.displayName,p=void 0===l?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(J(e),")")}(e):l,h=t.attrs,f=void 0===h?c:h,d=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;y=function(e,t){return v(e,t)&&m(e,t)}}else y=v}var g=function(e,t){return function(e,t,n){var s=e.attrs,a=e.inlineStyle,c=e.defaultProps,l=e.shouldForwardProp,p=e.target,h=o.useContext?o.useContext(pe):void 0,f=function(e,t,n){void 0===e&&(e=u);var o=r(r({},t),{theme:e}),i={};return n.forEach(function(e){var t,n=ee(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ye(t,h,c)||u,t,s),d=f[1],y=a.generateStyleObject(f[0]),v=n,m=d.as||t.as||p,g=d!==t?r(r({},t),d):t,S={};for(var w in g)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?S.as=g[w]:l&&!l(w,m)||(S[w]=g[w]));return S.style=o.useMemo?o.useMemo(function(){return ee(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):ee(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,n&&(S.ref=v),i(m,S)}(S,e,t)};g.displayName=p;var S=o.forwardRef(g);return S.attrs=d,S.inlineStyle=new ke(s?a.inlineStyle.rules.concat(n):n),S.displayName=p,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=s?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Le(e,o[r],!0);return e}({},a.defaultProps,e):e}}),De(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),Me=function(e){return ue(Fe,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(Me,e,{enumerable:!0,configurable:!1,get:function(){if(e in $e&&$e[e])return Me($e[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});var Ye=function(n){var r=Ie(ie(n)),o=t(r),i=[];o.each(function(e){"decl"===e.type?i.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=e(i,["borderWidth","borderColor"]);return $e.StyleSheet.create({style:s}).style};export{he as ThemeConsumer,pe as ThemeContext,de as ThemeProvider,ce as css,Me as default,ne as isStyledComponent,Me as styled,Ye as toStyleSheet,fe as useTheme,Re as withTheme};
1
+ import e from"css-to-react-native";import{parse as t}from"postcss";import{__spreadArray as n,__assign as r}from"tslib";import o,{createElement as i}from"react";import*as s from"stylis";import a from"@emotion/unitless";var c=Object.freeze([]),u=Object.freeze({}),l="production"!==process.env.NODE_ENV?{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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(p.apply(void 0,n([l[e]],t,!1)).trim())}function f(e,t){Object.defineProperty(e,"toString",{value:t})}var d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="active",v="data-styled-version",m="6.3.9-prerelease.1",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=void 0===o.createContext,A=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&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&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),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 h(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(g);return t},e}(),C=1<<30,E=new Map,P=new Map,_=1,N=function(e){if(E.has(e))return E.get(e);for(;P.has(_);)_++;var t=_++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>C))throw h(16,"".concat(t));return E.set(e,t),P.set(t,e),t},T=function(e,t){_=t+1,E.set(e,t),P.set(t,e)},O="style[".concat(d,"][").concat(v,'="').concat(m,'"]'),D=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),R=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},x=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(D);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(T(l,u),R(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},j=function(e){for(var t=document.querySelectorAll(O),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==y&&(x(e,o),o.parentNode&&o.parentNode.removeChild(o))}},I=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(d,y),r.setAttribute(v,m);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},B=function(){function e(e){this.element=I(e),this.element.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 h(17)}(this.element),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 t&&t.cssText?t.cssText:""},e}(),z=function(){function e(e){this.element=I(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||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}(),L=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}(),V=S,k={isServer:!S,useCSSOMInjection:!A},$=function(){function e(e,t,n){void 0===e&&(e=u),void 0===t&&(t={});var o=this;this.options=r(r({},k),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&V&&(V=!1,j(this)),f(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return P.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(g)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return N(e)},e.prototype.rehydrate=function(){!this.server&&S&&j(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},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.useCSSOMInjection,n=e.target;return e.isServer?new L(n):t?new B(n):new z(n)}(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(N(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(N(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),F=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=/&/g,Y=47,G=42;function W(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var s=e.charCodeAt(i);if(0!==r||o||s!==Y||e.charCodeAt(i+1)!==G)if(o)s===G&&e.charCodeAt(i+1)===Y&&(o=!1,i++);else if(34!==s&&39!==s||0!==i&&92===e.charCodeAt(i-1)){if(0===r)if(123===s)n++;else if(125===s&&--n<0)return!0}else 0===r?r=s:r===s&&(r=0);else o=!0,i++}return 0!==n||0!==r}function q(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=q(e.children,t)),e})}var H=new $,U=function(){var e,t,n,r=u.options,o=void 0===r?u:r,i=u.plugins,a=void 0===i?c:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},p=a.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(M,t).replace(n,l))}),o.prefix&&p.push(s.prefixer),p.push(s.stringify);var f=function(r,i,a,c){void 0===i&&(i=""),void 0===a&&(a=""),void 0===c&&(c="&"),e=c,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=function(e){if(!W(e))return e;for(var t=e.length,n="",r=0,o=0,i=0,s=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==i||s||c!==Y||e.charCodeAt(a+1)!==G)if(s)c===G&&e.charCodeAt(a+1)===Y&&(s=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===i)if(123===c)o++;else if(125===c){if(--o<0){for(var u=a+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,a=u-1,r=u;continue}0===o&&(n+=e.substring(r,a+1),r=a+1)}else 59===c&&0===o&&(n+=e.substring(r,a+1),r=a+1)}else 0===i?i=c:i===c&&(i=0);else s=!0,a++}if(r<t){var p=e.substring(r);W(p)||(n+=p)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,i=0,s=0;o<t;){var a=e.charCodeAt(o);if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(a===Y&&o+1<t&&e.charCodeAt(o+1)===G){for(o+=2;o+1<t&&(e.charCodeAt(o)!==G||e.charCodeAt(o+1)!==Y);)o++;o+=2}else if(40===a&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))s=1,o++;else if(s>0)41===a?s--:40===a&&s++,o++;else if(a===G&&o+1<t&&e.charCodeAt(o+1)===Y)o>r&&n.push(e.substring(r,o)),r=o+=2;else if(a===Y&&o+1<t&&e.charCodeAt(o+1)===Y){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===i?i=a:i===a&&(i=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),l=s.compile(a||i?"".concat(a," ").concat(i," { ").concat(u," }"):u);o.namespace&&(l=q(l,o.namespace));var h=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return h.push(e)})))),h};return f.hash=a.length?a.reduce(function(e,t){return t.name||h(15),F(e,t.name)},5381).toString():"",f}(),K=(w||o.createContext({shouldForwardProp:void 0,styleSheet:H,stylis:U}),w||o.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=U);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,f(this,function(){throw h(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=U),this.name+e.hash},e}());function Z(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in a||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function J(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var Q=function(e){return e>="A"&&e<="Z"};function X(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Q(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function ee(e){return"function"==typeof e}function te(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ne(e){return"object"==typeof e&&"styledComponentId"in e}var re=function(e){return null==e||!1===e||""===e},oe=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!re(o)&&(Array.isArray(o)&&o.isCss||ee(o)?t.push("".concat(X(r),":"),o,";"):te(o)?t.push.apply(t,n(n(["".concat(r," {")],oe(o),!1),["}"],!1)):t.push("".concat(X(r),": ").concat(Z(r,o),";")))}return t};function ie(e,t,n,r){if(re(e))return[];if(ne(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof K||te(o)||null===o||console.error("".concat(J(e)," 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.")),ie(o,t,n,r)}var i;return e instanceof K?n?(e.inject(n,r),[e.getName(r)]):[e]:te(e)?oe(e):Array.isArray(e)?Array.prototype.concat.apply(c,e.map(function(e){return ie(e,t,n,r)})):[e.toString()]}function se(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 ae=function(e){return Object.assign(e,{isCss:!0})};function ce(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ee(e)||te(e))return ae(ie(se(c,n([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ie(o):ae(ie(se(o,t)))}function ue(e,t,o){if(void 0===o&&(o=u),!t)throw h(1,t);var i=function(r){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,o,ce.apply(void 0,n([r],i,!1)))};return i.attrs=function(n){return ue(e,t,r(r({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i.withConfig=function(n){return ue(e,t,r(r({},o),n))},i}var le,pe=w?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),he=pe.Consumer;function fe(){var e=w?void 0:o.useContext(pe);if(!e)throw h(18);return e}function de(e){if(w)return e.children;var t=o.useContext(pe),n=o.useMemo(function(){return function(e,t){if(!e)throw h(14);if(ee(e)){var n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw h(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw h(8);return t?r(r({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?o.createElement(pe.Provider,{value:n},e.children):null}function ye(e,t,n){return void 0===n&&(n=u),e.theme!==n.theme&&e.theme||t||n.theme}var ve="function"==typeof Symbol&&Symbol.for,me=ve?Symbol.for("react.memo"):60115,ge=ve?Symbol.for("react.forward_ref"):60112,Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},we={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},be=((le={})[ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},le[me]=Ae,le);function Ce(e){return("type"in(t=e)&&t.type.$$typeof)===me?Ae:"$$typeof"in e?be[e.$$typeof]:Se;var t}var Ee=Object.defineProperty,Pe=Object.getOwnPropertyNames,_e=Object.getOwnPropertySymbols,Ne=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,Oe=Object.prototype;function De(e,t,n){if("string"!=typeof t){if(Oe){var r=Te(t);r&&r!==Oe&&De(e,r,n)}var o=Pe(t);_e&&(o=o.concat(_e(t)));for(var i=Ce(e),s=Ce(t),a=0;a<o.length;++a){var c=o[a];if(!(c in we||n&&n[c]||s&&c in s||i&&c in i)){var u=Ne(t,c);try{Ee(e,c,u)}catch(e){}}}}return e}function Re(e){var t=o.forwardRef(function(t,n){var i=ye(t,w?void 0:o.useContext(pe),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===i&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(J(e),'"')),o.createElement(e,r(r({},t),{theme:i,ref:n}))});return t.displayName="WithTheme(".concat(J(e),")"),De(t,e)}var xe=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ie(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var Be=["fit-content","min-content","max-content"],ze={};function Le(e,t,n){if(void 0===n&&(n=!1),!n&&!te(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Le(e[r],t[r]);else if(te(t))for(var r in t)e[r]=Le(e[r],t[r]);return e}var Ve,ke,$e=require("react-native"),Fe=(Ve=$e.StyleSheet,ke=function(){function n(e){this.rules=e}return n.prototype.generateStyleObject=function(n){var r=Ie(ie(this.rules,n)),o=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(xe,"$1-$2")}(F(5381,r)>>>0);if(!ze[o]){var i=t(r),s=[];i.each(function(e){if("decl"===e.type){if(Be.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));s.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var a=e(s,["borderWidth","borderColor"]),c=Ve.create({generated:a});ze[o]=c.generated}return ze[o]},n}(),function(e,t,n){var s=ne(e),a=e,l=t.displayName,p=void 0===l?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(J(e),")")}(e):l,h=t.attrs,f=void 0===h?c:h,d=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;y=function(e,t){return v(e,t)&&m(e,t)}}else y=v}var g=function(e,t){return function(e,t,n){var s=e.attrs,a=e.inlineStyle,c=e.defaultProps,l=e.shouldForwardProp,p=e.target,h=o.useContext?o.useContext(pe):void 0,f=function(e,t,n){void 0===e&&(e=u);var o=r(r({},t),{theme:e}),i={};return n.forEach(function(e){var t,n=ee(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ye(t,h,c)||u,t,s),d=f[1],y=a.generateStyleObject(f[0]),v=n,m=d.as||t.as||p,g=d!==t?r(r({},t),d):t,S={};for(var w in g)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?S.as=g[w]:l&&!l(w,m)||(S[w]=g[w]));return S.style=o.useMemo?o.useMemo(function(){return ee(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):ee(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,n&&(S.ref=v),i(m,S)}(S,e,t)};g.displayName=p;var S=o.forwardRef(g);return S.attrs=d,S.inlineStyle=new ke(s?a.inlineStyle.rules.concat(n):n),S.displayName=p,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=s?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Le(e,o[r],!0);return e}({},a.defaultProps,e):e}}),De(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),Me=function(e){return ue(Fe,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(Me,e,{enumerable:!0,configurable:!1,get:function(){if(e in $e&&$e[e])return Me($e[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});var Ye=function(n){var r=Ie(ie(n)),o=t(r),i=[];o.each(function(e){"decl"===e.type?i.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=e(i,["borderWidth","borderColor"]);return $e.StyleSheet.create({style:s}).style};export{he as ThemeConsumer,pe as ThemeContext,de as ThemeProvider,ce as css,Me as default,ne as isStyledComponent,Me as styled,Ye as toStyleSheet,fe as useTheme,Re as withTheme};
2
2
  //# sourceMappingURL=styled-components.native.esm.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styled-components",
3
- "version": "6.3.9-prerelease.0",
3
+ "version": "6.3.9-prerelease.1",
4
4
  "description": "CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.",
5
5
  "publishConfig": {
6
6
  "access": "public"