styled-components 6.4.0-prerelease.9 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bench/bench-utils.d.ts +9 -0
- package/dist/constructors/constructWithOptions.d.ts +1 -1
- package/dist/constructors/createTheme.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/models/ComponentStyle.d.ts +5 -0
- package/dist/models/ServerStyleSheet.d.ts +0 -10
- package/dist/models/StyleSheetManager.d.ts +11 -2
- package/dist/styled-components.browser.cjs.js +3 -3
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +3 -3
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +3 -3
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +3 -3
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +221 -239
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +3 -3
- package/dist/styled-components.min.js.map +1 -1
- package/dist/types.d.ts +23 -26
- package/dist/utils/cssTagged.d.ts +2 -0
- package/dist/utils/joinStrings.d.ts +3 -0
- package/dist/utils/rscCache.d.ts +2 -0
- package/dist/utils/stylis.d.ts +17 -0
- package/dist/utils/stylisPluginRSC.d.ts +3 -0
- package/native/dist/bench/bench-utils.d.ts +9 -0
- package/native/dist/constructors/constructWithOptions.d.ts +1 -1
- package/native/dist/constructors/createTheme.d.ts +19 -0
- package/native/dist/dist/bench/bench-utils.d.ts +9 -0
- package/native/dist/dist/constructors/constructWithOptions.d.ts +1 -1
- package/native/dist/dist/constructors/createTheme.d.ts +19 -0
- package/native/dist/dist/index.d.ts +1 -0
- package/native/dist/dist/models/ComponentStyle.d.ts +5 -0
- package/native/dist/dist/models/ServerStyleSheet.d.ts +0 -10
- package/native/dist/dist/models/StyleSheetManager.d.ts +11 -2
- package/native/dist/dist/types.d.ts +23 -26
- package/native/dist/dist/utils/cssTagged.d.ts +2 -0
- package/native/dist/dist/utils/joinStrings.d.ts +3 -0
- package/native/dist/dist/utils/rscCache.d.ts +2 -0
- package/native/dist/dist/utils/stylis.d.ts +17 -0
- package/native/dist/dist/utils/stylisPluginRSC.d.ts +3 -0
- package/native/dist/index.d.ts +1 -0
- package/native/dist/models/ComponentStyle.d.ts +5 -0
- package/native/dist/models/ServerStyleSheet.d.ts +0 -10
- package/native/dist/models/StyleSheetManager.d.ts +11 -2
- package/native/dist/styled-components.native.cjs.js +1 -1
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1 -1
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/types.d.ts +23 -26
- package/native/dist/utils/cssTagged.d.ts +2 -0
- package/native/dist/utils/joinStrings.d.ts +3 -0
- package/native/dist/utils/rscCache.d.ts +2 -0
- package/native/dist/utils/stylis.d.ts +17 -0
- package/native/dist/utils/stylisPluginRSC.d.ts +3 -0
- package/package.json +30 -38
- package/native/dist/bench/run.d.ts +0 -5
- package/native/dist/dist/bench/run.d.ts +0 -5
- package/native/dist/dist/test/globals.d.ts +0 -2
- package/native/dist/dist/test/utils.d.ts +0 -163
- package/native/dist/dist/test/veryLargeUnionType.d.ts +0 -1
- package/native/dist/dist/utils/rawElement.d.ts +0 -11
- package/native/dist/test/globals.d.ts +0 -2
- package/native/dist/test/utils.d.ts +0 -163
- package/native/dist/test/veryLargeUnionType.d.ts +0 -1
- package/native/dist/utils/rawElement.d.ts +0 -11
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface BenchOptions {
|
|
2
|
+
runs?: number;
|
|
3
|
+
nameWidth?: number;
|
|
4
|
+
precision?: number;
|
|
5
|
+
warmupMax?: number;
|
|
6
|
+
beforeIteration?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function bench(name: string, iterations: number, fn: (i: number) => void, options?: BenchOptions): number;
|
|
9
|
+
export declare const COLORS: string[];
|
|
@@ -8,7 +8,7 @@ type AttrsResult<T extends Attrs<any>> = T extends (...args: any) => infer P ? P
|
|
|
8
8
|
type AttrsTarget<R extends Runtime, T extends Attrs<any>, FallbackTarget extends StyledTarget<R>, Result extends ExecutionProps = AttrsResult<T>> = Result extends {
|
|
9
9
|
as: infer RuntimeTarget;
|
|
10
10
|
} ? RuntimeTarget extends KnownTarget ? RuntimeTarget : FallbackTarget : FallbackTarget;
|
|
11
|
-
export interface Styled<R extends Runtime, Target extends StyledTarget<R>, OuterProps extends object, OuterStatics extends object = BaseObject, AttrsKeys extends keyof any = never> {
|
|
11
|
+
export interface Styled<out R extends Runtime, out Target extends StyledTarget<R>, in out OuterProps extends object, out OuterStatics extends object = BaseObject, out AttrsKeys extends keyof any = never> {
|
|
12
12
|
<Props extends object = BaseObject, Statics extends object = BaseObject>(initialStyles: Styles<Substitute<OuterProps, NoInfer<Props>>>, ...interpolations: Interpolation<Substitute<OuterProps, NoInfer<Props>>>[]): IStyledComponent<R, MakeAttrsOptional<Substitute<OuterProps, Props>, AttrsKeys>> & OuterStatics & Statics & (R extends 'web' ? Target extends string ? {} : Omit<Target, keyof React.Component<any>> : {});
|
|
13
13
|
attrs: <Props extends object = BaseObject, PrivateMergedProps extends object = Substitute<OuterProps, Props>, PrivateAttrsArg extends Attrs<PrivateMergedProps> = Attrs<PrivateMergedProps>, PrivateResolvedTarget extends StyledTarget<R> = AttrsTarget<R, PrivateAttrsArg, Target>>(attrs: PrivateAttrsArg) => Styled<R, PrivateResolvedTarget, PrivateResolvedTarget extends KnownTarget ? Substitute<Substitute<OuterProps, React.ComponentPropsWithRef<PrivateResolvedTarget>>, Props> : PrivateMergedProps, OuterStatics, AttrsKeys | keyof AttrsResult<PrivateAttrsArg>>;
|
|
14
14
|
withConfig: (config: StyledOptions<R, OuterProps>) => Styled<R, Target, OuterProps, OuterStatics, AttrsKeys>;
|
|
@@ -21,6 +21,25 @@ type ThemeContract<T> = CSSVarTheme<T> & {
|
|
|
21
21
|
GlobalStyle: ReturnType<typeof createGlobalStyle>;
|
|
22
22
|
/** The original theme object, for passing to `ThemeProvider`. */
|
|
23
23
|
raw: T;
|
|
24
|
+
/**
|
|
25
|
+
* Same shape as the theme but every leaf is the bare CSS custom property
|
|
26
|
+
* name (e.g. `"--sc-colors-primary"`). Useful for building dark mode
|
|
27
|
+
* overrides without hand-writing variable names.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { vars } = createTheme({ colors: { bg: '#fff', text: '#000' } });
|
|
32
|
+
* vars.colors.bg // "--sc-colors-bg"
|
|
33
|
+
*
|
|
34
|
+
* const DarkMode = createGlobalStyle`
|
|
35
|
+
* .dark {
|
|
36
|
+
* ${vars.colors.bg}: #111;
|
|
37
|
+
* ${vars.colors.text}: #eee;
|
|
38
|
+
* }
|
|
39
|
+
* `;
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
vars: CSSVarTheme<T>;
|
|
24
43
|
/**
|
|
25
44
|
* Read the current resolved CSS variable values from the DOM and return
|
|
26
45
|
* an object with the same shape as the original theme. Each leaf is the
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled, { LibraryStyled, Styled, StyledInstance } from './constructors/styled';
|
|
2
2
|
export * from './base';
|
|
3
|
+
export { default as stylisPluginRSC } from './utils/stylisPluginRSC';
|
|
3
4
|
export { CSSKeyframes, CSSObject, CSSProp, CSSProperties, CSSPseudos, DataAttributes, DefaultTheme, ExecutionContext, ExecutionProps, FastOmit, Interpolation, IStyledComponent, IStyledComponentFactory, IStyledStatics, PolymorphicComponent, PolymorphicComponentProps, RuleSet, Runtime, StyledObject, StyledOptions, StyleFunction, SupportedHTMLElements, WebTarget, } from './types';
|
|
4
5
|
export { styled as default, LibraryStyled, Styled, styled, StyledInstance };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import StyleSheet from '../sheet';
|
|
2
2
|
import { ExecutionContext, RuleSet, Stringifier } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Get all compiled CSS for a ComponentStyle's registered names.
|
|
5
|
+
* Returns null on any cache miss (caller falls back to getGroup).
|
|
6
|
+
*/
|
|
7
|
+
export declare function getCompiledCSS(cs: ComponentStyle, styleSheet: StyleSheet): string | null;
|
|
3
8
|
/**
|
|
4
9
|
* ComponentStyle is all the CSS-specific stuff, not the React-specific stuff.
|
|
5
10
|
*/
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type PipeableStream } from 'react-dom/server';
|
|
3
3
|
import StyleSheet from '../sheet';
|
|
4
|
-
/**
|
|
5
|
-
* Collect styled-components CSS during server-side rendering.
|
|
6
|
-
*
|
|
7
|
-
* ```tsx
|
|
8
|
-
* const sheet = new ServerStyleSheet();
|
|
9
|
-
* const html = renderToString(sheet.collectStyles(<App />));
|
|
10
|
-
* const styleTags = sheet.getStyleTags();
|
|
11
|
-
* sheet.seal();
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
4
|
export default class ServerStyleSheet {
|
|
15
5
|
instance: StyleSheet;
|
|
16
6
|
sealed: boolean;
|
|
@@ -8,12 +8,13 @@ export type IStyleSheetContext = {
|
|
|
8
8
|
shouldForwardProp?: ShouldForwardProp<'web'> | undefined;
|
|
9
9
|
styleSheet: StyleSheet;
|
|
10
10
|
stylis: Stringifier;
|
|
11
|
+
/** Preserved for inheritance — inner SSMs that set namespace/vendorPrefixes
|
|
12
|
+
* but not stylisPlugins can still inherit the parent's plugins. */
|
|
13
|
+
stylisPlugins?: stylis.Middleware[] | undefined;
|
|
11
14
|
};
|
|
12
15
|
export declare const StyleSheetContext: React.Context<IStyleSheetContext>;
|
|
13
16
|
export declare const StyleSheetConsumer: React.Consumer<IStyleSheetContext>;
|
|
14
17
|
export type IStylisContext = Stringifier | void;
|
|
15
|
-
export declare const StylisContext: React.Context<IStylisContext>;
|
|
16
|
-
export declare const StylisConsumer: React.Consumer<IStylisContext>;
|
|
17
18
|
export declare function useStyleSheetContext(): IStyleSheetContext;
|
|
18
19
|
export type IStyleSheetManager = React.PropsWithChildren<{
|
|
19
20
|
/**
|
|
@@ -49,6 +50,10 @@ export type IStyleSheetManager = React.PropsWithChildren<{
|
|
|
49
50
|
*
|
|
50
51
|
* Manually composing `styled.{element}.withConfig({shouldForwardProp})` will
|
|
51
52
|
* override this default.
|
|
53
|
+
*
|
|
54
|
+
* When nested inside another `StyleSheetManager`, omitting this prop inherits
|
|
55
|
+
* the parent's function. Pass `undefined` explicitly or a passthrough function
|
|
56
|
+
* to disable inherited behavior for a subtree.
|
|
52
57
|
*/
|
|
53
58
|
shouldForwardProp?: undefined | IStyleSheetContext['shouldForwardProp'];
|
|
54
59
|
/**
|
|
@@ -56,6 +61,10 @@ export type IStyleSheetManager = React.PropsWithChildren<{
|
|
|
56
61
|
* Check out [what's available on npm*](https://www.npmjs.com/search?q=keywords%3Astylis).
|
|
57
62
|
*
|
|
58
63
|
* \* The plugin(s) must be compatible with stylis v4 or above.
|
|
64
|
+
*
|
|
65
|
+
* When nested inside another `StyleSheetManager`, omitting this prop inherits
|
|
66
|
+
* the parent's plugins. Pass an empty array (`[]`) to explicitly disable
|
|
67
|
+
* inherited plugins for a subtree.
|
|
59
68
|
*/
|
|
60
69
|
stylisPlugins?: undefined | stylis.Middleware[];
|
|
61
70
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/is-prop-valid"),t=require("react"),n=require("stylis");function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r,i,a=/*#__PURE__*/o(e),l=/*#__PURE__*/o(t),c=/*#__PURE__*/s(n);const u="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d="active",h="data-styled-version",p="6.4.0-prerelease.9",f="/*!sc*/\n",m="undefined"!=typeof window&&"undefined"!=typeof document;function y(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(i=null!==(r=y("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==r?r:y("SC_DISABLE_SPEEDY"))&&void 0!==i?i:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),S="sc-keyframes-",v={},b="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 w(e,...t){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#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,o=e.length;t<o;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(b[e],...t).trim())}const C=1<<30;let N=new Map,O=new Map,E=1;const A=e=>{if(N.has(e))return N.get(e);for(;O.has(E);)E++;const t=E++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>C))throw w(16,`${t}`);return N.set(e,t),O.set(t,e),t},_=e=>O.get(e),P=(e,t)=>{E=t+1,N.set(e,t),O.set(t,e)},j=/invalid hook call/i,x=new Set,I=(e,t)=>{if("production"!==process.env.NODE_ENV){const n=`The component ${e}${t?` with the id of "${t}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,o=console.error;try{let e=!0;console.error=(t,...s)=>{j.test(t)?(e=!1,x.delete(n)):o(t,...s)},"function"==typeof l.default.useState&&l.default.useState(null),e&&!x.has(n)&&(console.warn(n),x.add(n))}catch(e){j.test(e.message)&&x.delete(n)}finally{console.error=o}}},R=Object.freeze([]),T=Object.freeze({});function $(e,t,n=T){return e.theme!==n.theme&&e.theme||t||n.theme}var k=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"]);const D=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,M=/(^-|-$)/g;function V(e){return e.replace(D,"-").replace(M,"")}const G=/(a)(d)/gi,F=e=>String.fromCharCode(e+(e>25?39:97));function z(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=F(t%52)+n;return(F(t%52)+n).replace(G,"$1-$2")}const L=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},W=e=>L(5381,e);function q(e){return z(W(e)>>>0)}function B(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function H(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function Y(e){return H(e)?`styled.${e}`:`Styled(${B(e)})`}const U=Symbol.for("react.memo"),J=Symbol.for("react.forward_ref"),X={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Q={[J]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[U]:K};function ee(e){return("type"in(t=e)&&t.type.$$typeof)===U?K:"$$typeof"in e?Q[e.$$typeof]:X;var t}const te=Object.defineProperty,ne=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,re=Object.getPrototypeOf,ie=Object.prototype;function ae(e,t,n){if("string"!=typeof t){const o=re(t);o&&o!==ie&&ae(e,o,n);const s=ne(t).concat(oe(t)),r=ee(e),i=ee(t);for(let o=0;o<s.length;++o){const a=s[o];if(!(a in Z||n&&n[a]||i&&a in i||r&&a in r)){const n=se(t,a);try{te(e,a,n)}catch(e){}}}}return e}function le(e){return"function"==typeof e}function ce(e){return"object"==typeof e&&"styledComponentId"in e}function ue(e,t){return e&&t?e+" "+t:e||t||""}function de(e,t){return e.join(t||"")}function he(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function pe(e,t,n=!1){if(!n&&!he(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=pe(e[n],t[n]);else if(he(t))for(const n in t)e[n]=pe(e[n],t[n]);return e}function fe(e,t){Object.defineProperty(e,"toString",{value:t})}const me=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let o=n;for(;e>=o;)if(o<<=1,o<0)throw w(16,`${e}`);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(let e=n;e<o;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),o=0;for(let s=0,r=t.length;s<r;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let e=n;e<o;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],o=this.indexOfGroup(e),s=o+n;for(let e=o;e<s;e++)t+=this.tag.getRule(e)+f;return t}},ye=`style[${u}][${h}="${p}"]`,ge=new RegExp(`^${u}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Se=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,ve=e=>{if(!e)return document;if(Se(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Se(t))return t}return document},be=(e,t,n)=>{const o=n.split(",");let s;for(let n=0,r=o.length;n<r;n++)(s=o[n])&&e.registerName(t,s)},we=(e,t)=>{var n;const o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(f),s=[];for(let t=0,n=o.length;t<n;t++){const n=o[t].trim();if(!n)continue;const r=n.match(ge);if(r){const t=0|parseInt(r[1],10),n=r[2];0!==t&&(P(n,t),be(e,n,r[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Ce=e=>{const t=ve(e.options.target).querySelectorAll(ye);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(u)!==d&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let Ne=!1;function Oe(){if(!1!==Ne)return Ne;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Ne=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Ne=t.getAttribute("content")||void 0}return Ne="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const Ee=(e,t)=>{const n=document.head,o=e||n,s=document.createElement("style"),r=(e=>{const t=Array.from(e.querySelectorAll(`style[${u}]`));return t[t.length-1]})(o),i=void 0!==r?r.nextSibling:null;s.setAttribute(u,d),s.setAttribute(h,p);const a=t||Oe();return a&&s.setAttribute("nonce",a),o.insertBefore(s,i),s},Ae=class{constructor(e,t){this.element=Ee(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,o=n.length;t<o;t++){const o=n[t];if(o.ownerNode===e)return o}throw w(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},_e=class{constructor(e,t){this.element=Ee(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},Pe=class{constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}};let je=m;const xe={isServer:!m,useCSSOMInjection:!g};class Ie{static registerId(e){return A(e)}constructor(e=T,t={},n){this.options=Object.assign(Object.assign({},xe),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&m&&je&&(je=!1,Ce(this)),fe(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let o="";for(let s=0;s<n;s++){const n=_(s);if(void 0===n)continue;const r=e.names.get(n);if(void 0===r||!r.size)continue;const i=t.getGroup(s);if(0===i.length)continue;const a=u+".g"+s+'[id="'+n+'"]';let l="";for(const e of r)e.length>0&&(l+=e+",");o+=i+a+'{content:"'+l+'"}'+f}return o})(this))}rehydrate(){!this.server&&m&&Ce(this)}reconstructWithOptions(e,t=!0){const n=new Ie(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&m&&e.target!==this.options.target&&ve(this.options.target)!==ve(e.target)&&Ce(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n,nonce:o})=>e?new Pe(n):t?new Ae(n,o):new _e(n,o))(this.options),new me(e)));var e}hasNameForId(e,t){var n,o;return null!==(o=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}registerName(e,t){A(e),e.startsWith(S)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(A(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(A(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Re={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart: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 Te(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Re||e.startsWith("--")?String(t).trim():t+"px"}const $e=e=>e>="A"&&e<="Z";function ke(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;$e(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}const De=Symbol.for("sc-keyframes");function Me(e){return"object"==typeof e&&null!==e&&De in e}function Ve(e){return le(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Ge=e=>null==e||!1===e||""===e,Fe=e=>{const t=[];for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!Ge(o)&&(Array.isArray(o)&&o.isCss||le(o)?t.push(ke(n)+":",o,";"):he(o)?t.push(n+" {",...Fe(o),"}"):t.push(ke(n)+": "+Te(n,o)+";"))}return t};function ze(e,t,n,o,s=[]){if("string"==typeof e)return e&&s.push(e),s;if(Ge(e))return s;if(ce(e))return s.push(`.${e.styledComponentId}`),s;if(le(e)){if(Ve(e)&&t){const r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||Me(r)||he(r)||null===r||console.error(`${B(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.`),ze(r,t,n,o,s)}return s.push(e),s}if(Me(e))return n?(e.inject(n,o),s.push(e.getName(o))):s.push(e),s;if(he(e)){const t=Fe(e);for(let e=0;e<t.length;e++)s.push(t[e]);return s}if(!Array.isArray(e))return s.push(e.toString()),s;for(let r=0;r<e.length;r++)ze(e[r],t,n,o,s);return s}const Le=W(p);class We{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=L(Le,t),this.baseStyle=n,Ie.registerId(t)}generateAndInjectStyles(e,t,n){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let o=0;o<this.rules.length;o++){const r=this.rules[o];if("string"==typeof r)s+=r;else if(r)if(Ve(r)){const o=r(e);"string"==typeof o?s+=o:null!=o&&!1!==o&&("production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||Me(o)||he(o)||console.error(`${B(r)} 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.`),s+=de(ze(o,e,t,n)))}else s+=de(ze(r,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let r=this.dynamicNameCache.get(e);if(r||(r=z(L(L(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.set(e,r)),!t.hasNameForId(this.componentId,r)){const e=n(s,"."+r,void 0,this.componentId);t.insertRules(this.componentId,r,e)}o=ue(o,r)}}return o}}const qe=/&/g,Be=47,He=42;function Ye(e){if(-1===e.indexOf("}"))return!1;const t=e.length;let n=0,o=0,s=!1;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(0!==o||s||t!==Be||e.charCodeAt(r+1)!==He)if(s)t===He&&e.charCodeAt(r+1)===Be&&(s=!1,r++);else if(34!==t&&39!==t||0!==r&&92===e.charCodeAt(r-1)){if(0===o)if(123===t)n++;else if(125===t&&(n--,n<0))return!0}else 0===o?o=t:o===t&&(o=0);else s=!0,r++}return 0!==n||0!==o}function Ue(e,t){for(let n=0;n<e.length;n++){const o=e[n];if("rule"===o.type){o.value=t+" "+o.value,o.value=o.value.replaceAll(",",","+t+" ");const e=o.props,n=[];for(let o=0;o<e.length;o++)n[o]=t+" "+e[o];o.props=n}Array.isArray(o.children)&&"@keyframes"!==o.type&&(o.children=Ue(o.children,t))}return e}function Je({options:e=T,plugins:t=R}=T){let n,o,s;const r=(e,t,s)=>s.startsWith(o)&&s.endsWith(o)&&s.replaceAll(o,"").length>0?`.${n}`:e,i=t.slice();i.push(e=>{e.type===c.RULESET&&e.value.includes("&")&&(s||(s=new RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(qe,o).replace(s,r))}),e.prefix&&i.push(c.prefixer),i.push(c.stringify);let a=[];const l=c.middleware(i.concat(c.rulesheet(e=>a.push(e)))),u=(t,r="",i="",u="&")=>{n=u,o=r,s=void 0;const d=function(e){if(!Ye(e))return e;const t=e.length;let n="",o=0,s=0,r=0,i=!1;for(let a=0;a<t;a++){const l=e.charCodeAt(a);if(0!==r||i||l!==Be||e.charCodeAt(a+1)!==He)if(i)l===He&&e.charCodeAt(a+1)===Be&&(i=!1,a++);else if(34!==l&&39!==l||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===l)s++;else if(125===l){if(s--,s<0){let n=a+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,s=0,a=n-1,o=n;continue}0===s&&(n+=e.substring(o,a+1),o=a+1)}else 59===l&&0===s&&(n+=e.substring(o,a+1),o=a+1)}else 0===r?r=l:r===l&&(r=0);else i=!0,a++}if(o<t){const t=e.substring(o);Ye(t)||(n+=t)}return n}(function(e){if(-1===e.indexOf("//"))return e;const t=e.length,n=[];let o=0,s=0,r=0,i=0;for(;s<t;){const a=e.charCodeAt(s);if(34!==a&&39!==a||0!==s&&92===e.charCodeAt(s-1))if(0===r)if(a===Be&&s+1<t&&e.charCodeAt(s+1)===He){for(s+=2;s+1<t&&(e.charCodeAt(s)!==He||e.charCodeAt(s+1)!==Be);)s++;s+=2}else if(40===a&&s>=3&&108==(32|e.charCodeAt(s-1))&&114==(32|e.charCodeAt(s-2))&&117==(32|e.charCodeAt(s-3)))i=1,s++;else if(i>0)41===a?i--:40===a&&i++,s++;else if(a===He&&s+1<t&&e.charCodeAt(s+1)===Be)s>o&&n.push(e.substring(o,s)),s+=2,o=s;else if(a===Be&&s+1<t&&e.charCodeAt(s+1)===Be){for(s>o&&n.push(e.substring(o,s));s<t&&10!==e.charCodeAt(s);)s++;o=s}else s++;else s++;else 0===r?r=a:r===a&&(r=0),s++}return 0===o?e:(o<t&&n.push(e.substring(o)),n.join(""))}(t));let h=c.compile(i||r?i+" "+r+" { "+d+" }":d);return e.namespace&&(h=Ue(h,e.namespace)),a=[],c.serialize(h,l),a};return u.hash=t.length?t.reduce((e,t)=>(t.name||w(15),L(e,t.name)),5381).toString():"",u}const Xe=new Ie,Ze=Je(),Ke=l.default.createContext({shouldForwardProp:void 0,styleSheet:Xe,stylis:Ze}),Qe=Ke.Consumer,et=l.default.createContext(void 0);function tt(){return l.default.useContext(Ke)}function nt(e){if(!l.default.useMemo)return e.children;const{styleSheet:t}=tt(),n=l.default.useMemo(()=>{let n=t;return e.sheet?n=e.sheet:e.target?n=n.reconstructWithOptions({target:e.target,nonce:e.nonce},!1):void 0!==e.nonce&&(n=n.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,t]),o=l.default.useMemo(()=>Je({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=l.default.useMemo(()=>({shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:o}),[e.shouldForwardProp,n,o]);return l.default.createElement(Ke.Provider,{value:s},l.default.createElement(et.Provider,{value:o},e.children))}const ot=l.default.createContext(void 0),st=ot.Consumer,rt=Object.prototype.hasOwnProperty,it={};function at(e,t){const n="string"!=typeof e?"sc":V(e);it[n]=(it[n]||0)+1;const o=n+"-"+q(p+n+it[n]);return t?t+"-"+o:o}let lt=new Set;function ct(e,n,o){const s=ce(e),r=e,i=!H(e),{attrs:c=R,componentId:u=at(n.displayName,n.parentComponentId),displayName:d=Y(e)}=n,h=n.displayName&&n.componentId?V(n.displayName)+"-"+n.componentId:n.componentId||u,p=s&&r.attrs?r.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:f}=n;if(s&&r.shouldForwardProp){const e=r.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;f=(n,o)=>e(n,o)&&t(n,o)}else f=e}const m=new We(o,h,s?r.componentStyle:void 0);function y(e,n){return function(e,n,o){const{attrs:s,componentStyle:r,defaultProps:i,foldedComponentIds:c,styledComponentId:u,target:d}=e,h=l.default.useContext(ot),p=tt(),f=e.shouldForwardProp||p.shouldForwardProp;"production"!==process.env.NODE_ENV&&l.default.useDebugValue&&l.default.useDebugValue(u);const m=$(n,h,i)||T;let y,g;{const e=l.default.useRef(null),t=e.current;if(null!==t&&t[1]===m&&t[2]===p.styleSheet&&t[3]===p.stylis&&t[7]===r&&function(e,t,n){const o=e,s=t;let r=0;for(const e in s)if(rt.call(s,e)&&(r++,o[e]!==s[e]))return!1;return r===n}(t[0],n,t[4]))y=t[5],g=t[6];else{y=function(e,t,n){const o=Object.assign(Object.assign({},t),{className:void 0,theme:n});for(let n=0;n<e.length;n++){const s=e[n],r=le(s)?s(Object.assign({},o)):s;for(const e in r)"className"===e?o.className=ue(o.className,r[e]):"style"===e?o.style=Object.assign(Object.assign({},o.style),r[e]):e in t&&void 0===t[e]||(o[e]=r[e])}return"className"in t&&"string"==typeof t.className&&(o.className=ue(o.className,t.className)),o}(s,n,m),g=function(e,t,n,o){const s=e.generateAndInjectStyles(t,n,o);return"production"!==process.env.NODE_ENV&&l.default.useDebugValue&&l.default.useDebugValue(s),s}(r,y,p.styleSheet,p.stylis);let t=0;for(const e in n)rt.call(n,e)&&t++;e.current=[n,m,p.styleSheet,p.stylis,t,y,g,r]}}"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(g);const S=y.as||d,v=function(e,t,n,o){const s={};for(const r in e)void 0===e[r]||"$"===r[0]||"as"===r||"theme"===r&&e.theme===n||("forwardedAs"===r?s.as=e.forwardedAs:o&&!o(r,t)||(s[r]=e[r],o||"development"!==process.env.NODE_ENV||a.default(r)||lt.has(r)||!k.has(t)||(lt.add(r),console.warn(`styled-components: it looks like an unknown prop "${r}" 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.)`))));return s}(y,S,m,f);let b=ue(c,u);return g&&(b+=" "+g),y.className&&(b+=" "+y.className),v[H(S)&&!k.has(S)?"class":"className"]=b,o&&(v.ref=o),t.createElement(S,v)}(g,e,n)}y.displayName=d;let g=l.default.forwardRef(y);return g.attrs=p,g.componentStyle=m,g.displayName=d,g.shouldForwardProp=f,g.foldedComponentIds=s?ue(r.foldedComponentIds,r.styledComponentId):"",g.styledComponentId=h,g.target=s?r.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=s?function(e,...t){for(const n of t)pe(e,n,!0);return e}({},r.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(I(d,h),g.warnTooManyClasses=((e,t)=>{let n={},o=!1;return s=>{!o&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),o=!0,n={})}})(d,h)),fe(g,()=>`.${g.styledComponentId}`),i&&ae(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}function ut(e,t){const n=[e[0]];for(let o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}const dt=e=>Object.assign(e,{isCss:!0});function ht(e,...t){if(le(e)||he(e))return dt(ze(ut(R,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ze(n):dt(ze(ut(n,t)))}function pt(e,t,n=T){if(!t)throw w(1,t);const o=(o,...s)=>e(t,n,ht(o,...s));return o.attrs=o=>pt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),o.withConfig=o=>pt(e,t,Object.assign(Object.assign({},n),o)),o}const ft=e=>pt(ct,e),mt=ft;k.forEach(e=>{mt[e]=ft(e)});class yt{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(le(n)&&!ce(n))return!1}return!0}(e),Ie.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,o){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,o);else{const r=this.computeRules(e,t,n,o);n.insertRules(s,r.name,r.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,t,n,o),!n.server&&r){const t=r.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let o=0;o<t.length;o++)if(t[o]!==n[o]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,o){const s=de(ze(this.rules,t,n,o)),r={name:this.componentId+e,rules:o(s,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}function gt(e,...t){const n=ht(e,...t),o=`sc-global-${q(JSON.stringify(n))}`,s=new yt(n,o);"production"!==process.env.NODE_ENV&&I(o);const r=e=>{const t=tt(),r=l.default.useContext(ot);let a;{const e=l.default.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(o)),a=e.current}"production"!==process.env.NODE_ENV&&l.default.Children.count(e.children)&&console.warn(`The global style component ${o} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&n.some(e=>"string"==typeof e&&-1!==e.indexOf("@import"))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&i(a,e,t.styleSheet,r,t.stylis);{const n=s.isStatic?[a,t.styleSheet,s]:[a,e,t.styleSheet,r,t.stylis,s],c=l.default.useRef(s);l.default.useLayoutEffect(()=>(t.styleSheet.server||(c.current!==s&&(t.styleSheet.clearRules(o),c.current=s),i(a,e,t.styleSheet,r,t.stylis)),()=>{s.removeStyles(a,t.styleSheet)}),n)}return t.styleSheet.server&&s.instanceRules.delete(a),null};function i(e,t,n,o,i){if(s.isStatic)s.renderStyles(e,v,n,i);else{const a=Object.assign(Object.assign({},t),{theme:$(t,o,r.defaultProps)});s.renderStyles(e,a,n,i)}}return l.default.memo(r)}function St(e,t,n,o,s){for(const r in e){const i=e[r],a=s?s+"-"+r:r;if("object"==typeof i&&null!==i){const e={};St(i,t,e,o,a),n[r]=e}else n[r]=o(a,i,r)}}function vt(e,t,n,o){let s="";for(const r in e){const i=e[r],a=t[r],l=o?o+"-"+r:r;"object"==typeof i&&null!==i?"object"==typeof a&&null!==a&&(s+=vt(i,a,n,l)):void 0!==a&&"function"!=typeof a&&(s+="--"+n+l+":"+a+";")}return s}var bt;class wt{constructor(e,t){this[bt]=!0,this.inject=(e,t=Ze)=>{const n=this.name+t.hash;e.hasNameForId(this.id,n)||e.insertRules(this.id,n,t(this.rules,n,"@keyframes"))},this.name=e,this.id=S+e,this.rules=t,A(this.id),fe(this,()=>{throw w(12,String(this.name))})}getName(e=Ze){return this.name+e.hash}}bt=De;const Ct={StyleSheet:Ie,mainSheet:Xe};"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");const Nt=`__sc-${u}__`;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[Nt]||(window[Nt]=0),1===window[Nt]&&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[Nt]+=1),exports.ServerStyleSheet=class{constructor({nonce:e}={}){this._emitSheetCSS=()=>{const e=this.instance.toString();if(!e)return"";const t=this.instance.options.nonce||Oe();return`<style ${de([t&&`nonce="${t}"`,`${u}="true"`,`${h}="${p}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw w(2);return this._emitSheetCSS()},this.getStyleElement=()=>{if(this.sealed)throw w(2);const e=this.instance.toString();if(!e)return[];const t={[u]:"",[h]:p,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||Oe();return n&&(t.nonce=n),[l.default.createElement("style",Object.assign({},t,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new Ie({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw w(2);return l.default.createElement(nt,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw w(3)}},exports.StyleSheetConsumer=Qe,exports.StyleSheetContext=Ke,exports.StyleSheetManager=nt,exports.ThemeConsumer=st,exports.ThemeContext=ot,exports.ThemeProvider=function(e){const t=l.default.useContext(ot),n=l.default.useMemo(()=>function(e,t){if(!e)throw w(14);if(le(e)){const n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw w(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw w(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?l.default.createElement(ot.Provider,{value:n},e.children):null},exports.__PRIVATE__=Ct,exports.createGlobalStyle=gt,exports.createTheme=function(e,t){var n,o;const s=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",r=null!==(o=null==t?void 0:t.selector)&&void 0!==o?o:":root",i=function(e,t){const n={};return St(e,t,n,(e,n)=>{if("production"!==process.env.NODE_ENV){const t=String(n);let o=0;for(let e=0;e<t.length&&(40===t.charCodeAt(e)?o++:41===t.charCodeAt(e)&&o--,!(o<0));e++);0!==o&&console.warn(`createTheme: value "${t}" at "${e}" contains unbalanced parentheses and may break the var() fallback`)}return"var(--"+t+e+", "+n+")"}),n}(e,s),a=gt`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/is-prop-valid"),t=require("react"),n=require("stylis");function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r,i,a=/*#__PURE__*/o(e),l=/*#__PURE__*/o(t),c=/*#__PURE__*/s(n);const u="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d="active",h="data-styled-version",p="6.4.0",f="/*!sc*/\n",m="undefined"!=typeof window&&"undefined"!=typeof document;function y(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(i=null!==(r=y("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==r?r:y("SC_DISABLE_SPEEDY"))&&void 0!==i?i:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),v="sc-keyframes-",S={},b="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 w(e,...t){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#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,o=e.length;t<o;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(b[e],...t).trim())}const N=1<<30;let C=new Map,O=new Map,E=1;const P=e=>{if(C.has(e))return C.get(e);for(;O.has(E);)E++;const t=E++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw w(16,`${t}`);return C.set(e,t),O.set(t,e),t},_=e=>O.get(e),x=(e,t)=>{E=t+1,C.set(e,t),O.set(t,e)},A=/invalid hook call/i,I=new Set,j=(e,t)=>{if("production"!==process.env.NODE_ENV){const n=`The component ${e}${t?` with the id of "${t}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,o=console.error;try{let e=!0;console.error=(t,...s)=>{A.test(t)?(e=!1,I.delete(n)):o(t,...s)},"function"==typeof l.default.useState&&l.default.useState(null),e&&!I.has(n)&&(console.warn(n),I.add(n))}catch(e){A.test(e.message)&&I.delete(n)}finally{console.error=o}}},$=Object.freeze([]),R=Object.freeze({});function T(e,t,n=R){return e.theme!==n.theme&&e.theme||t||n.theme}const k=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function M(e){return e.replace(k,"-").replace(D,"")}const V=/(a)(d)/gi,G=e=>String.fromCharCode(e+(e>25?39:97));function F(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(V,"$1-$2")}const z=5381,L=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},W=e=>L(z,e);function q(e){return F(W(e)>>>0)}function B(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function H(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function Y(e){return H(e)?`styled.${e}`:`Styled(${B(e)})`}const U=Symbol.for("react.memo"),J=Symbol.for("react.forward_ref"),X={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Q={[J]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[U]:K};function ee(e){return("type"in(t=e)&&t.type.$$typeof)===U?K:"$$typeof"in e?Q[e.$$typeof]:X;var t}const te=Object.defineProperty,ne=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,re=Object.getPrototypeOf,ie=Object.prototype;function ae(e,t,n){if("string"!=typeof t){const o=re(t);o&&o!==ie&&ae(e,o,n);const s=ne(t).concat(oe(t)),r=ee(e),i=ee(t);for(let o=0;o<s.length;++o){const a=s[o];if(!(a in Z||n&&n[a]||i&&a in i||r&&a in r)){const n=se(t,a);try{te(e,a,n)}catch(e){}}}}return e}function le(e){return"function"==typeof e}function ce(e){return"object"==typeof e&&"styledComponentId"in e}function ue(e,t){return e&&t?e+" "+t:e||t||""}function de(e,t){return e.join(t||"")}function he(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function pe(e,t,n=!1){if(!n&&!he(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=pe(e[n],t[n]);else if(he(t))for(const n in t)e[n]=pe(e[n],t[n]);return e}function fe(e,t){Object.defineProperty(e,"toString",{value:t})}const me=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let o=n;for(;e>=o;)if(o<<=1,o<0)throw w(16,`${e}`);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(let e=n;e<o;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),o=0;for(let s=0,r=t.length;s<r;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let e=n;e<o;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],o=this.indexOfGroup(e),s=o+n;for(let e=o;e<s;e++)t+=this.tag.getRule(e)+f;return t}},ye=`style[${u}][${h}="${p}"]`,ge=new RegExp(`^${u}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),ve=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Se=e=>{if(!e)return document;if(ve(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(ve(t))return t}return document},be=(e,t,n)=>{const o=n.split(",");let s;for(let n=0,r=o.length;n<r;n++)(s=o[n])&&e.registerName(t,s)},we=(e,t)=>{var n;const o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(f),s=[];for(let t=0,n=o.length;t<n;t++){const n=o[t].trim();if(!n)continue;const r=n.match(ge);if(r){const t=0|parseInt(r[1],10),n=r[2];0!==t&&(x(n,t),be(e,n,r[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Ne=e=>{const t=Se(e.options.target).querySelectorAll(ye);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(u)!==d&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let Ce=!1;function Oe(){if(!1!==Ce)return Ce;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Ce=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Ce=t.getAttribute("content")||void 0}return Ce="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const Ee=(e,t)=>{const n=document.head,o=e||n,s=document.createElement("style"),r=(e=>{const t=Array.from(e.querySelectorAll(`style[${u}]`));return t[t.length-1]})(o),i=void 0!==r?r.nextSibling:null;s.setAttribute(u,d),s.setAttribute(h,p);const a=t||Oe();return a&&s.setAttribute("nonce",a),o.insertBefore(s,i),s},Pe=class{constructor(e,t){this.element=Ee(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,o=n.length;t<o;t++){const o=n[t];if(o.ownerNode===e)return o}throw w(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},_e=class{constructor(e,t){this.element=Ee(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let xe=m;const Ae={isServer:!m,useCSSOMInjection:!g};class Ie{static registerId(e){return P(e)}constructor(e=R,t={},n){this.options=Object.assign(Object.assign({},Ae),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&m&&xe&&(xe=!1,Ne(this)),fe(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let o="";for(let s=0;s<n;s++){const n=_(s);if(void 0===n)continue;const r=e.names.get(n);if(void 0===r||!r.size)continue;const i=t.getGroup(s);if(0===i.length)continue;const a=u+".g"+s+'[id="'+n+'"]';let l="";for(const e of r)e.length>0&&(l+=e+",");o+=i+a+'{content:"'+l+'"}'+f}return o})(this))}rehydrate(){!this.server&&m&&Ne(this)}reconstructWithOptions(e,t=!0){const n=new Ie(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&m&&e.target!==this.options.target&&Se(this.options.target)!==Se(e.target)&&Ne(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Pe(t,n):new _e(t,n))(this.options),new me(e)));var e}hasNameForId(e,t){var n,o;return null!==(o=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}registerName(e,t){P(e),e.startsWith(v)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(P(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const je=new WeakSet,$e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart: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 Re(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in $e||e.startsWith("--")?String(t).trim():t+"px"}const Te=e=>e>="A"&&e<="Z";function ke(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Te(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}const De=Symbol.for("sc-keyframes");function Me(e){return"object"==typeof e&&null!==e&&De in e}function Ve(e){return le(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Ge=e=>null==e||!1===e||""===e,Fe=Symbol.for("react.client.reference");function ze(e){return e.$$typeof===Fe}function Le(e){const t=e.$$id,n=(t&&t.includes("#")?t.split("#").pop():t)||e.name||"unknown";console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}const We=e=>{const t=[];for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!Ge(o)&&(Array.isArray(o)&&je.has(o)||le(o)?t.push(ke(n)+":",o,";"):he(o)?t.push(n+" {",...We(o),"}"):t.push(ke(n)+": "+Re(n,o)+";"))}return t};function qe(e,t,n,o,s=[]){if(Ge(e))return s;const r=typeof e;if("string"===r)return s.push(e),s;if("function"===r){if(ze(e))return"production"!==process.env.NODE_ENV&&Le(e),s;if(Ve(e)&&t){const r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||Me(r)||he(r)||null===r||console.error(`${B(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.`),qe(r,t,n,o,s)}return s.push(e),s}if(Array.isArray(e)){for(let r=0;r<e.length;r++)qe(e[r],t,n,o,s);return s}if(ce(e))return s.push(`.${e.styledComponentId}`),s;if(Me(e))return n?(e.inject(n,o),s.push(e.getName(o))):s.push(e),s;if(ze(e))return"production"!==process.env.NODE_ENV&&Le(e),s;if(he(e)){const t=We(e);for(let e=0;e<t.length;e++)s.push(t[e]);return s}return s.push(e.toString()),s}const Be=W(p);class He{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=L(Be,t),this.baseStyle=n,Ie.registerId(t)}generateAndInjectStyles(e,t,n){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let o=0;o<this.rules.length;o++){const r=this.rules[o];if("string"==typeof r)s+=r;else if(r)if(Ve(r)){const o=r(e);"string"==typeof o?s+=o:null!=o&&!1!==o&&("production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||Me(o)||he(o)||console.error(`${B(r)} 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.`),s+=de(qe(o,e,t,n)))}else s+=de(qe(r,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let r=this.dynamicNameCache.get(e);if(!r){if(r=F(L(L(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,r)}if(!t.hasNameForId(this.componentId,r)){const e=n(s,"."+r,void 0,this.componentId);t.insertRules(this.componentId,r,e)}o=ue(o,r)}}return o}}const Ye=/&/g,Ue=47;function Je(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function Xe(e){const t=e.length;let n="",o=0,s=0,r=0,i=!1,a=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==r||i||c!==Ue||42!==e.charCodeAt(l+1))if(i)42===c&&e.charCodeAt(l+1)===Ue&&(i=!1,l++);else if(34!==c&&39!==c||Je(e,l)){if(0===r)if(123===c)s++;else if(125===c){if(s--,s<0){a=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,s=0,l=n-1,o=n;continue}0===s&&(n+=e.substring(o,l+1),o=l+1)}else 59===c&&0===s&&(n+=e.substring(o,l+1),o=l+1)}else 0===r?r=c:r===c&&(r=0);else i=!0,l++}return a||0!==s||0!==r?(o<t&&0===s&&0===r&&(n+=e.substring(o)),n):e}function Ze(e,t){for(let n=0;n<e.length;n++){const o=e[n];if("rule"===o.type){o.value=t+" "+o.value,o.value=o.value.replaceAll(",",","+t+" ");const e=o.props,n=[];for(let o=0;o<e.length;o++)n[o]=t+" "+e[o];o.props=n}Array.isArray(o.children)&&"@keyframes"!==o.type&&(o.children=Ze(o.children,t))}return e}function Ke({options:e=R,plugins:t=$}=R){let n,o,s;const r=(e,t,s)=>s.startsWith(o)&&s.endsWith(o)&&s.replaceAll(o,"").length>0?`.${n}`:e,i=t.slice();i.push(e=>{e.type===c.RULESET&&e.value.includes("&")&&(s||(s=new RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(Ye,o).replace(s,r))}),e.prefix&&i.push(c.prefixer),i.push(c.stringify);let a=[];const l=c.middleware(i.concat(c.rulesheet(e=>a.push(e)))),u=(t,r="",i="",u="&")=>{n=u,o=r,s=void 0;const d=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return Xe(e);const o=e.length;let s="",r=0,i=0,a=0,l=0,c=0,u=!1;for(;i<o;){const t=e.charCodeAt(i);if(34!==t&&39!==t||Je(e,i))if(0===a)if(t===Ue&&i+1<o&&42===e.charCodeAt(i+1)){for(i+=2;i+1<o&&(42!==e.charCodeAt(i)||e.charCodeAt(i+1)!==Ue);)i++;i+=2}else if(40!==t)if(41!==t)if(l>0)i++;else if(42===t&&i+1<o&&e.charCodeAt(i+1)===Ue)s+=e.substring(r,i),i+=2,r=i,u=!0;else if(t===Ue&&i+1<o&&e.charCodeAt(i+1)===Ue){for(s+=e.substring(r,i);i<o&&10!==e.charCodeAt(i);)i++;r=i,u=!0}else 123===t?c++:125===t&&c--,i++;else l>0&&l--,i++;else l++,i++;else i++;else 0===a?a=t:a===t&&(a=0),i++}return u?(r<o&&(s+=e.substring(r)),0===c?s:Xe(s)):0===c?e:Xe(e)}(t);let h=c.compile(i||r?i+" "+r+" { "+d+" }":d);return e.namespace&&(h=Ze(h,e.namespace)),a=[],c.serialize(h,l),a},d=e;let h=z;for(let e=0;e<t.length;e++)t[e].name||w(15),h=L(h,t[e].name);return(null==d?void 0:d.namespace)&&(h=L(h,d.namespace)),(null==d?void 0:d.prefix)&&(h=L(h,"p")),u.hash=h!==z?h.toString():"",u}const Qe=new Ie,et=Ke(),tt=l.default.createContext({shouldForwardProp:void 0,styleSheet:Qe,stylis:et,stylisPlugins:void 0}),nt=tt.Consumer;function ot(){return l.default.useContext(tt)}function st(e){var t;const n=ot(),{styleSheet:o}=n,s=l.default.useMemo(()=>{let t=o;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,o]),r=l.default.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:Ke({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),i="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,a=null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins,c=l.default.useMemo(()=>({shouldForwardProp:i,styleSheet:s,stylis:r,stylisPlugins:a}),[i,s,r,a]);return l.default.createElement(tt.Provider,{value:c},e.children)}const rt=l.default.createContext(void 0),it=rt.Consumer,at=Object.prototype.hasOwnProperty,lt={};function ct(e,t){const n="string"!=typeof e?"sc":M(e);lt[n]=(lt[n]||0)+1;const o=n+"-"+q(p+n+lt[n]);return t?t+"-"+o:o}let ut;function dt(e,n,o){const s=ce(e),r=e,i=!H(e),{attrs:c=$,componentId:u=ct(n.displayName,n.parentComponentId),displayName:d=Y(e)}=n,h=n.displayName&&n.componentId?M(n.displayName)+"-"+n.componentId:n.componentId||u,p=s&&r.attrs?r.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:f}=n;if(s&&r.shouldForwardProp){const e=r.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;f=(n,o)=>e(n,o)&&t(n,o)}else f=e}const m=new He(o,h,s?r.componentStyle:void 0);function y(e,n){return function(e,n,o){const{attrs:s,componentStyle:r,defaultProps:i,foldedComponentIds:c,styledComponentId:u,target:d}=e,h=l.default.useContext(rt),p=ot(),f=e.shouldForwardProp||p.shouldForwardProp;"production"!==process.env.NODE_ENV&&l.default.useDebugValue&&l.default.useDebugValue(u);const m=T(n,h,i)||R;let y,g;{const e=l.default.useRef(null),t=e.current;if(null!==t&&t[1]===m&&t[2]===p.styleSheet&&t[3]===p.stylis&&t[7]===r&&function(e,t,n){const o=e,s=t;let r=0;for(const e in s)if(at.call(s,e)&&(r++,o[e]!==s[e]))return!1;return r===n}(t[0],n,t[4]))y=t[5],g=t[6];else{y=function(e,t,n){const o=Object.assign(Object.assign({},t),{className:void 0,theme:n}),s=e.length>1;for(let n=0;n<e.length;n++){const r=e[n],i=le(r)?r(s?Object.assign({},o):o):r;for(const e in i)"className"===e?o.className=ue(o.className,i[e]):"style"===e?o.style=Object.assign(Object.assign({},o.style),i[e]):e in t&&void 0===t[e]||(o[e]=i[e])}return"className"in t&&"string"==typeof t.className&&(o.className=ue(o.className,t.className)),o}(s,n,m),g=function(e,t,n,o){const s=e.generateAndInjectStyles(t,n,o);return"production"!==process.env.NODE_ENV&&l.default.useDebugValue&&l.default.useDebugValue(s),s}(r,y,p.styleSheet,p.stylis);let t=0;for(const e in n)at.call(n,e)&&t++;e.current=[n,m,p.styleSheet,p.stylis,t,y,g,r]}}"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(g);const v=y.as||d,S=function(e,t,n,o){const s={};for(const r in e)void 0===e[r]||"$"===r[0]||"as"===r||"theme"===r&&e.theme===n||("forwardedAs"===r?s.as=e.forwardedAs:o&&!o(r,t)||(s[r]=e[r],o||"development"!==process.env.NODE_ENV||a.default(r)||(ut||(ut=new Set)).has(r)||!H(t)||t.includes("-")||(ut.add(r),console.warn(`styled-components: it looks like an unknown prop "${r}" 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.)`))));return s}(y,v,m,f);let b=ue(c,u);return g&&(b+=" "+g),y.className&&(b+=" "+y.className),S[H(v)&&v.includes("-")?"class":"className"]=b,o&&(S.ref=o),t.createElement(v,S)}(g,e,n)}y.displayName=d;let g=l.default.forwardRef(y);return g.attrs=p,g.componentStyle=m,g.displayName=d,g.shouldForwardProp=f,g.foldedComponentIds=s?ue(r.foldedComponentIds,r.styledComponentId):"",g.styledComponentId=h,g.target=s?r.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=s?function(e,...t){for(const n of t)pe(e,n,!0);return e}({},r.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(j(d,h),g.warnTooManyClasses=((e,t)=>{let n={},o=!1;return s=>{!o&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),o=!0,n={})}})(d,h)),fe(g,()=>`.${g.styledComponentId}`),i&&ae(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var ht=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"]);function pt(e,t){const n=[e[0]];for(let o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}const ft=e=>(je.add(e),e);function mt(e,...t){if(le(e)||he(e))return ft(qe(pt($,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?qe(n):ft(qe(pt(n,t)))}function yt(e,t,n=R){if(!t)throw w(1,t);const o=(o,...s)=>e(t,n,mt(o,...s));return o.attrs=o=>yt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),o.withConfig=o=>yt(e,t,Object.assign(Object.assign({},n),o)),o}const gt=e=>yt(dt,e),vt=gt;ht.forEach(e=>{vt[e]=gt(e)});class St{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(le(n)&&!ce(n))return!1}return!0}(e),Ie.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,o){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,o);else{const r=this.computeRules(e,t,n,o);n.insertRules(s,r.name,r.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,t,n,o),!n.server&&r){const t=r.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let o=0;o<t.length;o++)if(t[o]!==n[o]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,o){const s=de(qe(this.rules,t,n,o)),r={name:this.componentId+e,rules:o(s,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}function bt(e,...t){const n=mt(e,...t),o=`sc-global-${q(JSON.stringify(n))}`,s=new St(n,o);"production"!==process.env.NODE_ENV&&j(o);const r=e=>{const t=ot(),r=l.default.useContext(rt);let a;{const e=l.default.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(o)),a=e.current}"production"!==process.env.NODE_ENV&&l.default.Children.count(e.children)&&console.warn(`The global style component ${o} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&n.some(e=>"string"==typeof e&&-1!==e.indexOf("@import"))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&i(a,e,t.styleSheet,r,t.stylis);{const n=s.isStatic?[a,t.styleSheet,s]:[a,e,t.styleSheet,r,t.stylis,s],c=l.default.useRef(s);l.default.useLayoutEffect(()=>(t.styleSheet.server||(c.current!==s&&(t.styleSheet.clearRules(o),c.current=s),i(a,e,t.styleSheet,r,t.stylis)),()=>{s.removeStyles(a,t.styleSheet)}),n)}return t.styleSheet.server&&s.instanceRules.delete(a),null};function i(e,t,n,o,i){if(s.isStatic)s.renderStyles(e,S,n,i);else{const a=Object.assign(Object.assign({},t),{theme:T(t,o,r.defaultProps)});s.renderStyles(e,a,n,i)}}return l.default.memo(r)}function wt(e,t,n,o,s){for(const r in e){const i=e[r],a=s?s+"-"+r:r;if("object"==typeof i&&null!==i){const e={};wt(i,t,e,o,a),n[r]=e}else n[r]=o(a,i,r)}}function Nt(e,t,n,o){let s="";for(const r in e){const i=e[r],a=t[r],l=o?o+"-"+r:r;"object"==typeof i&&null!==i?"object"==typeof a&&null!==a&&(s+=Nt(i,a,n,l)):void 0!==a&&"function"!=typeof a&&(s+="--"+n+l+":"+a+";")}return s}var Ct;class Ot{constructor(e,t){this[Ct]=!0,this.inject=(e,t=et)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const o=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,o)}},this.name=e,this.id=v+e,this.rules=t,P(this.id),fe(this,()=>{throw w(12,String(this.name))})}getName(e=et){return e.hash?this.name+F(+e.hash>>>0):this.name}}Ct=De;const Et={StyleSheet:Ie,mainSheet:Qe};"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");const Pt=`__sc-${u}__`;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[Pt]||(window[Pt]=0),1===window[Pt]&&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[Pt]+=1);const _t=/:(?:(first)-child|(last)-child|(only)-child|(nth-child)\(([^()]+)\)|(nth-last-child)\(([^()]+)\))/g,xt=`:not(style[${u}])`,At=`style[${u}]`;function It(e){return-1===e.indexOf("-child")?e:(_t.lastIndex=0,e.replace(_t,(e,t,n,o,s,r,i,a)=>t?`:nth-child(1 of ${xt})`:n?`:nth-last-child(1 of ${xt})`:o?`:nth-child(1 of ${xt}):nth-last-child(1 of ${xt})`:s?-1!==r.indexOf(" of ")?e:`:nth-child(${r} of ${xt})`:-1!==a.indexOf(" of ")?e:`:nth-last-child(${a} of ${xt})`))}function jt(e,t){if(-1===e.indexOf("+"))return;let n=0,o=0;for(let s=0;s<e.length;s++){const r=e.charCodeAt(s);if(40===r)n++;else if(41===r)n--;else if(91===r)o++;else if(93===r)o--;else if(43===r&&0===n&&0===o&&!Je(e,s)){const n=e.substring(0,s),o=e.substring(s+1);t.push(n+"+"+At+"+"+o),t.push(n+"+"+At+"+"+At+"+"+o)}}}exports.ServerStyleSheet=class{constructor({nonce:e}={}){this._emitSheetCSS=()=>{const e=this.instance.toString();if(!e)return"";const t=this.instance.options.nonce||Oe();return`<style ${de([t&&`nonce="${t}"`,`${u}="true"`,`${h}="${p}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw w(2);return this._emitSheetCSS()},this.getStyleElement=()=>{if(this.sealed)throw w(2);const e=this.instance.toString();if(!e)return[];const t={[u]:"",[h]:p,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||Oe();return n&&(t.nonce=n),[l.default.createElement("style",Object.assign({},t,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new Ie({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw w(2);return l.default.createElement(st,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw w(3)}},exports.StyleSheetConsumer=nt,exports.StyleSheetContext=tt,exports.StyleSheetManager=st,exports.ThemeConsumer=it,exports.ThemeContext=rt,exports.ThemeProvider=function(e){const t=l.default.useContext(rt),n=l.default.useMemo(()=>function(e,t){if(!e)throw w(14);if(le(e)){const n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw w(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw w(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?l.default.createElement(rt.Provider,{value:n},e.children):null},exports.__PRIVATE__=Et,exports.createGlobalStyle=bt,exports.createTheme=function(e,t){var n,o;const s=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",r=null!==(o=null==t?void 0:t.selector)&&void 0!==o?o:":root",i=function(e,t){const n={};return wt(e,t,n,e=>"--"+t+e),n}(e,s),a=function(e,t){const n={};return wt(e,t,n,(e,n)=>{if("production"!==process.env.NODE_ENV){const t=String(n);let o=0;for(let e=0;e<t.length&&(40===t.charCodeAt(e)?o++:41===t.charCodeAt(e)&&o--,!(o<0));e++);0!==o&&console.warn(`createTheme: value "${t}" at "${e}" contains unbalanced parentheses and may break the var() fallback`)}return"var(--"+t+e+", "+n+")"}),n}(e,s),l=bt`
|
|
2
2
|
${r} {
|
|
3
|
-
${t=>
|
|
3
|
+
${t=>Nt(e,t.theme,s)}
|
|
4
4
|
}
|
|
5
|
-
`;return Object.assign(
|
|
5
|
+
`;return Object.assign(a,{GlobalStyle:l,raw:e,vars:i,resolve(t){if(!m)throw new Error("createTheme.resolve() is client-only");const n=null!=t?t:document.documentElement;return function(e,t,n){const o={};return wt(e,t,o,(e,o)=>n.getPropertyValue("--"+t+e).trim()||o),o}(e,s,getComputedStyle(n))}})},exports.css=mt,exports.default=vt,exports.isStyledComponent=ce,exports.keyframes=function(e,...t){"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.");const n=de(mt(e,...t)),o=q(n);return new Ot(o,n)},exports.styled=vt,exports.stylisPluginRSC=function(e){if(e.type===n.RULESET){const t=e.props,n=[];for(let e=0;e<t.length;e++){const o=It(t[e]);n.push(o),jt(o,n)}e.props=n}},exports.useTheme=function(){const e=l.default.useContext(rt);if(!e)throw w(18);return e},exports.version=p,exports.withTheme=function(e){const t=l.default.forwardRef((t,n)=>{const o=T(t,l.default.useContext(rt),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 "${B(e)}"`),l.default.createElement(e,Object.assign(Object.assign({},t),{theme:o,ref:n}))});return t.displayName=`WithTheme(${B(e)})`,ae(t,e)};
|
|
6
6
|
//# sourceMappingURL=styled-components.browser.cjs.js.map
|