@gobolt/genesis 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/AntdIcon-Bsnbyy6g.js +200 -0
- package/dist/CheckOutlined-DAynWe12.js +527 -0
- package/dist/CloseCircleFilled-ZIY-u-27.js +13 -0
- package/dist/Compact-CJBo3f0u.js +185 -0
- package/dist/ContextIsolator-CGkdKtc3.js +20 -0
- package/dist/ExclamationCircleFilled-BICVVQIg.js +21 -0
- package/dist/Form-Cylpi4M4.js +1815 -0
- package/dist/Overflow-CP1M4Z0s.js +369 -0
- package/dist/SearchOutlined-DuzJkIiQ.js +52 -0
- package/dist/TextArea-3MOYYuAQ.js +1680 -0
- package/dist/bundle.css +1 -0
- package/dist/button-BNV2qdrP.js +1392 -0
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/atoms/button/Button.d.ts +12 -0
- package/dist/components/atoms/button/Button.js +27 -0
- package/dist/components/atoms/button/__stories__/Button.stories.d.ts +13 -0
- package/dist/components/atoms/button/index.d.ts +2 -0
- package/dist/components/atoms/button/index.js +4 -0
- package/dist/components/atoms/button/styles.d.ts +12 -0
- package/dist/components/atoms/button/styles.js +71 -0
- package/dist/components/atoms/checkbox/Checkbox.d.ts +10 -0
- package/dist/components/atoms/checkbox/Checkbox.js +13 -0
- package/dist/components/atoms/checkbox/__stories__/Checkbox.stories.d.ts +8 -0
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +18 -0
- package/dist/components/atoms/checkbox/index.d.ts +2 -0
- package/dist/components/atoms/checkbox/index.js +4 -0
- package/dist/components/atoms/checkbox/styles.d.ts +11 -0
- package/dist/components/atoms/checkbox/styles.js +582 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/atoms/index.js +3 -0
- package/dist/components/atoms/input/Input.d.ts +11 -0
- package/dist/components/atoms/input/Input.js +12 -0
- package/dist/components/atoms/input/__stories__/Input.stories.d.ts +10 -0
- package/dist/components/atoms/input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/atoms/input/__tests__/Input.test.js +28 -0
- package/dist/components/atoms/input/index.d.ts +2 -0
- package/dist/components/atoms/input/index.js +4 -0
- package/dist/components/atoms/input/styles.d.ts +14 -0
- package/dist/components/atoms/input/styles.js +415 -0
- package/dist/components/atoms/select/Select.d.ts +11 -0
- package/dist/components/atoms/select/Select.js +24 -0
- package/dist/components/atoms/select/__stories__/Select.stories.d.ts +8 -0
- package/dist/components/atoms/select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/atoms/select/__tests__/Select.test.js +10735 -0
- package/dist/components/atoms/select/index.d.ts +2 -0
- package/dist/components/atoms/select/index.js +4 -0
- package/dist/components/atoms/select/styles.d.ts +15 -0
- package/dist/components/atoms/select/styles.js +3868 -0
- package/dist/components/atoms/typography/Typography.d.ts +11 -0
- package/dist/components/atoms/typography/Typography.js +44 -0
- package/dist/components/atoms/typography/__stories__/Typography.stories.d.ts +12 -0
- package/dist/components/atoms/typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/atoms/typography/__tests__/Typography.test.js +16 -0
- package/dist/components/atoms/typography/index.d.ts +2 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/styles.d.ts +11 -0
- package/dist/components/atoms/typography/styles.js +28 -0
- package/dist/components/index.d.js +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.js +16 -0
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +10 -0
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +35 -0
- package/dist/components/molecules/error-boundary-fallback/__stories__/ErrorBoundaryFallback.stories.d.ts +8 -0
- package/dist/components/molecules/error-boundary-fallback/index.d.ts +1 -0
- package/dist/components/molecules/error-boundary-fallback/index.js +4 -0
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +1 -0
- package/dist/components/molecules/error-boundary-fallback/styles.js +930 -0
- package/dist/components/molecules/form/Form.d.ts +15 -0
- package/dist/components/molecules/form/Form.js +7 -0
- package/dist/components/molecules/form/__stories__/Form.stories.d.ts +7 -0
- package/dist/components/molecules/form/__stories__/FormStory.d.ts +1 -0
- package/dist/components/molecules/form/__stories__/FormStory.js +90 -0
- package/dist/components/molecules/form/index.d.ts +2 -0
- package/dist/components/molecules/form/index.js +4 -0
- package/dist/constants/index.d.ts +51 -0
- package/dist/constants/index.js +54 -0
- package/dist/context-CZsFJmh6.js +2093 -0
- package/dist/declaration.d.js +1 -0
- package/dist/genesis/GenesisThemeBreakdown.d.ts +4 -0
- package/dist/genesis/GenesisThemeBreakdown.js +56 -0
- package/dist/genesis/GenesisThemeDemo.d.ts +8 -0
- package/dist/genesis/GenesisThemeDemo.js +8 -0
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +7 -0
- package/dist/genesis/styles.d.ts +12 -0
- package/dist/genesis/styles.js +4038 -0
- package/dist/index-3MWkSVA1.js +96 -0
- package/dist/index-BPtFqhcp.js +19110 -0
- package/dist/index-BQO27mgE.js +402 -0
- package/dist/index-BWys7dkb.js +4462 -0
- package/dist/index-C7kFNqp2.js +276 -0
- package/dist/index-D1v_7IIx.js +1057 -0
- package/dist/index-SAAXFt-P.js +946 -0
- package/dist/index-VDH3iLaC.js +884 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/isVisible-CNQjrJPN.js +366 -0
- package/dist/magic-string.es-BkUFmFT4.js +858 -0
- package/dist/presetColors-Cl8UP3Nw.js +4 -0
- package/dist/providers/GenesisProvider.d.ts +8 -0
- package/dist/providers/GenesisProvider.js +7 -0
- package/dist/providers/ThemeProvider.d.ts +9 -0
- package/dist/providers/ThemeProvider.js +18 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +6 -0
- package/dist/reactNode-sKPeiqPL.js +12 -0
- package/dist/setup-CMYVZCPF.js +33883 -0
- package/dist/styled-components.browser.esm-CZ1XM4o4.js +1144 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.d.ts +1 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +37 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +6 -0
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +7 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +3 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +36 -0
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +7 -0
- package/dist/styles/design-tokens/typography/TypographyTokens.stories.d.ts +7 -0
- package/dist/styles/design-tokens/variables.d.ts +704 -0
- package/dist/styles/design-tokens/variables.js +697 -0
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +35 -0
- package/dist/styles/theme/genesis-theme.d.ts +75 -0
- package/dist/styles/theme/genesis-theme.js +896 -0
- package/dist/styles/theme/genesis-theme.types.d.ts +162 -0
- package/dist/styles/theme/genesis-theme.types.js +4 -0
- package/dist/styles/theme/global-styles.d.ts +1 -0
- package/dist/styles/theme/global-styles.js +35 -0
- package/dist/styles/theme/index.d.ts +1 -0
- package/dist/styles/theme/index.js +9 -0
- package/dist/test/setup.d.ts +5 -0
- package/dist/test/setup.js +7 -0
- package/dist/useVariants-CEpw6Ww6.js +29 -0
- package/dist/utils/getAppointmentColor.d.ts +4 -0
- package/dist/utils/getAppointmentColor.js +91 -0
- package/dist/utils/isAllEnglishString.d.ts +1 -0
- package/dist/utils/isAllEnglishString.js +8 -0
- package/dist/utils/isAllEnglishString.test.d.ts +1 -0
- package/dist/utils/isAllEnglishString.test.js +8 -0
- package/dist/utils/parseAddress.d.ts +3 -0
- package/dist/utils/parseAddress.js +19 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +115 -0
|
@@ -0,0 +1,1144 @@
|
|
|
1
|
+
import R, { useRef as Qt, useContext as wt, useMemo as en, useDebugValue as nt, createElement as tn } from "react";
|
|
2
|
+
var P = function() {
|
|
3
|
+
return P = Object.assign || function(t) {
|
|
4
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
5
|
+
n = arguments[r];
|
|
6
|
+
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
}, P.apply(this, arguments);
|
|
10
|
+
};
|
|
11
|
+
function W(e, t, n) {
|
|
12
|
+
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
13
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
14
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
15
|
+
}
|
|
16
|
+
function nn(e) {
|
|
17
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
18
|
+
return function(n) {
|
|
19
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var rn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, on = /* @__PURE__ */ nn(
|
|
23
|
+
function(e) {
|
|
24
|
+
return rn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
25
|
+
}
|
|
26
|
+
/* Z+1 */
|
|
27
|
+
), w = "-ms-", ce = "-moz-", y = "-webkit-", St = "comm", Ce = "rule", Xe = "decl", sn = "@import", bt = "@keyframes", an = "@layer", kt = Math.abs, Ke = String.fromCharCode, Le = Object.assign;
|
|
28
|
+
function cn(e, t) {
|
|
29
|
+
return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
|
|
30
|
+
}
|
|
31
|
+
function Et(e) {
|
|
32
|
+
return e.trim();
|
|
33
|
+
}
|
|
34
|
+
function M(e, t) {
|
|
35
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
36
|
+
}
|
|
37
|
+
function l(e, t, n) {
|
|
38
|
+
return e.replace(t, n);
|
|
39
|
+
}
|
|
40
|
+
function ge(e, t, n) {
|
|
41
|
+
return e.indexOf(t, n);
|
|
42
|
+
}
|
|
43
|
+
function N(e, t) {
|
|
44
|
+
return e.charCodeAt(t) | 0;
|
|
45
|
+
}
|
|
46
|
+
function J(e, t, n) {
|
|
47
|
+
return e.slice(t, n);
|
|
48
|
+
}
|
|
49
|
+
function D(e) {
|
|
50
|
+
return e.length;
|
|
51
|
+
}
|
|
52
|
+
function xt(e) {
|
|
53
|
+
return e.length;
|
|
54
|
+
}
|
|
55
|
+
function ae(e, t) {
|
|
56
|
+
return t.push(e), e;
|
|
57
|
+
}
|
|
58
|
+
function un(e, t) {
|
|
59
|
+
return e.map(t).join("");
|
|
60
|
+
}
|
|
61
|
+
function rt(e, t) {
|
|
62
|
+
return e.filter(function(n) {
|
|
63
|
+
return !M(n, t);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
var Ae = 1, Q = 1, Ct = 0, _ = 0, A = 0, re = "";
|
|
67
|
+
function Ne(e, t, n, r, o, s, i, c) {
|
|
68
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: s, line: Ae, column: Q, length: i, return: "", siblings: c };
|
|
69
|
+
}
|
|
70
|
+
function V(e, t) {
|
|
71
|
+
return Le(Ne("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
72
|
+
}
|
|
73
|
+
function Z(e) {
|
|
74
|
+
for (; e.root; )
|
|
75
|
+
e = V(e.root, { children: [e] });
|
|
76
|
+
ae(e, e.siblings);
|
|
77
|
+
}
|
|
78
|
+
function ln() {
|
|
79
|
+
return A;
|
|
80
|
+
}
|
|
81
|
+
function pn() {
|
|
82
|
+
return A = _ > 0 ? N(re, --_) : 0, Q--, A === 10 && (Q = 1, Ae--), A;
|
|
83
|
+
}
|
|
84
|
+
function T() {
|
|
85
|
+
return A = _ < Ct ? N(re, _++) : 0, Q++, A === 10 && (Q = 1, Ae++), A;
|
|
86
|
+
}
|
|
87
|
+
function Y() {
|
|
88
|
+
return N(re, _);
|
|
89
|
+
}
|
|
90
|
+
function ye() {
|
|
91
|
+
return _;
|
|
92
|
+
}
|
|
93
|
+
function Pe(e, t) {
|
|
94
|
+
return J(re, e, t);
|
|
95
|
+
}
|
|
96
|
+
function Ve(e) {
|
|
97
|
+
switch (e) {
|
|
98
|
+
case 0:
|
|
99
|
+
case 9:
|
|
100
|
+
case 10:
|
|
101
|
+
case 13:
|
|
102
|
+
case 32:
|
|
103
|
+
return 5;
|
|
104
|
+
case 33:
|
|
105
|
+
case 43:
|
|
106
|
+
case 44:
|
|
107
|
+
case 47:
|
|
108
|
+
case 62:
|
|
109
|
+
case 64:
|
|
110
|
+
case 126:
|
|
111
|
+
case 59:
|
|
112
|
+
case 123:
|
|
113
|
+
case 125:
|
|
114
|
+
return 4;
|
|
115
|
+
case 58:
|
|
116
|
+
return 3;
|
|
117
|
+
case 34:
|
|
118
|
+
case 39:
|
|
119
|
+
case 40:
|
|
120
|
+
case 91:
|
|
121
|
+
return 2;
|
|
122
|
+
case 41:
|
|
123
|
+
case 93:
|
|
124
|
+
return 1;
|
|
125
|
+
}
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
128
|
+
function dn(e) {
|
|
129
|
+
return Ae = Q = 1, Ct = D(re = e), _ = 0, [];
|
|
130
|
+
}
|
|
131
|
+
function fn(e) {
|
|
132
|
+
return re = "", e;
|
|
133
|
+
}
|
|
134
|
+
function $e(e) {
|
|
135
|
+
return Et(Pe(_ - 1, Fe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
136
|
+
}
|
|
137
|
+
function hn(e) {
|
|
138
|
+
for (; (A = Y()) && A < 33; )
|
|
139
|
+
T();
|
|
140
|
+
return Ve(e) > 2 || Ve(A) > 3 ? "" : " ";
|
|
141
|
+
}
|
|
142
|
+
function mn(e, t) {
|
|
143
|
+
for (; --t && T() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
|
|
144
|
+
;
|
|
145
|
+
return Pe(e, ye() + (t < 6 && Y() == 32 && T() == 32));
|
|
146
|
+
}
|
|
147
|
+
function Fe(e) {
|
|
148
|
+
for (; T(); )
|
|
149
|
+
switch (A) {
|
|
150
|
+
case e:
|
|
151
|
+
return _;
|
|
152
|
+
case 34:
|
|
153
|
+
case 39:
|
|
154
|
+
e !== 34 && e !== 39 && Fe(A);
|
|
155
|
+
break;
|
|
156
|
+
case 40:
|
|
157
|
+
e === 41 && Fe(e);
|
|
158
|
+
break;
|
|
159
|
+
case 92:
|
|
160
|
+
T();
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
return _;
|
|
164
|
+
}
|
|
165
|
+
function gn(e, t) {
|
|
166
|
+
for (; T() && e + A !== 57; )
|
|
167
|
+
if (e + A === 84 && Y() === 47)
|
|
168
|
+
break;
|
|
169
|
+
return "/*" + Pe(t, _ - 1) + "*" + Ke(e === 47 ? e : T());
|
|
170
|
+
}
|
|
171
|
+
function yn(e) {
|
|
172
|
+
for (; !Ve(Y()); )
|
|
173
|
+
T();
|
|
174
|
+
return Pe(e, _);
|
|
175
|
+
}
|
|
176
|
+
function vn(e) {
|
|
177
|
+
return fn(ve("", null, null, null, [""], e = dn(e), 0, [0], e));
|
|
178
|
+
}
|
|
179
|
+
function ve(e, t, n, r, o, s, i, c, a) {
|
|
180
|
+
for (var u = 0, f = 0, d = i, h = 0, g = 0, b = 0, x = 1, I = 1, C = 1, k = 0, v = "", S = o, E = s, m = r, p = v; I; )
|
|
181
|
+
switch (b = k, k = T()) {
|
|
182
|
+
case 40:
|
|
183
|
+
if (b != 108 && N(p, d - 1) == 58) {
|
|
184
|
+
ge(p += l($e(k), "&", "&\f"), "&\f", kt(u ? c[u - 1] : 0)) != -1 && (C = -1);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
case 34:
|
|
188
|
+
case 39:
|
|
189
|
+
case 91:
|
|
190
|
+
p += $e(k);
|
|
191
|
+
break;
|
|
192
|
+
case 9:
|
|
193
|
+
case 10:
|
|
194
|
+
case 13:
|
|
195
|
+
case 32:
|
|
196
|
+
p += hn(b);
|
|
197
|
+
break;
|
|
198
|
+
case 92:
|
|
199
|
+
p += mn(ye() - 1, 7);
|
|
200
|
+
continue;
|
|
201
|
+
case 47:
|
|
202
|
+
switch (Y()) {
|
|
203
|
+
case 42:
|
|
204
|
+
case 47:
|
|
205
|
+
ae(wn(gn(T(), ye()), t, n, a), a);
|
|
206
|
+
break;
|
|
207
|
+
default:
|
|
208
|
+
p += "/";
|
|
209
|
+
}
|
|
210
|
+
break;
|
|
211
|
+
case 123 * x:
|
|
212
|
+
c[u++] = D(p) * C;
|
|
213
|
+
case 125 * x:
|
|
214
|
+
case 59:
|
|
215
|
+
case 0:
|
|
216
|
+
switch (k) {
|
|
217
|
+
case 0:
|
|
218
|
+
case 125:
|
|
219
|
+
I = 0;
|
|
220
|
+
case 59 + f:
|
|
221
|
+
C == -1 && (p = l(p, /\f/g, "")), g > 0 && D(p) - d && ae(g > 32 ? st(p + ";", r, n, d - 1, a) : st(l(p, " ", "") + ";", r, n, d - 2, a), a);
|
|
222
|
+
break;
|
|
223
|
+
case 59:
|
|
224
|
+
p += ";";
|
|
225
|
+
default:
|
|
226
|
+
if (ae(m = ot(p, t, n, u, f, o, c, v, S = [], E = [], d, s), s), k === 123)
|
|
227
|
+
if (f === 0)
|
|
228
|
+
ve(p, t, m, m, S, s, d, c, E);
|
|
229
|
+
else
|
|
230
|
+
switch (h === 99 && N(p, 3) === 110 ? 100 : h) {
|
|
231
|
+
case 100:
|
|
232
|
+
case 108:
|
|
233
|
+
case 109:
|
|
234
|
+
case 115:
|
|
235
|
+
ve(e, m, m, r && ae(ot(e, m, m, 0, 0, o, c, v, o, S = [], d, E), E), o, E, d, c, r ? S : E);
|
|
236
|
+
break;
|
|
237
|
+
default:
|
|
238
|
+
ve(p, m, m, m, [""], E, 0, c, E);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
u = f = g = 0, x = C = 1, v = p = "", d = i;
|
|
242
|
+
break;
|
|
243
|
+
case 58:
|
|
244
|
+
d = 1 + D(p), g = b;
|
|
245
|
+
default:
|
|
246
|
+
if (x < 1) {
|
|
247
|
+
if (k == 123)
|
|
248
|
+
--x;
|
|
249
|
+
else if (k == 125 && x++ == 0 && pn() == 125)
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
252
|
+
switch (p += Ke(k), k * x) {
|
|
253
|
+
case 38:
|
|
254
|
+
C = f > 0 ? 1 : (p += "\f", -1);
|
|
255
|
+
break;
|
|
256
|
+
case 44:
|
|
257
|
+
c[u++] = (D(p) - 1) * C, C = 1;
|
|
258
|
+
break;
|
|
259
|
+
case 64:
|
|
260
|
+
Y() === 45 && (p += $e(T())), h = Y(), f = d = D(v = p += yn(ye())), k++;
|
|
261
|
+
break;
|
|
262
|
+
case 45:
|
|
263
|
+
b === 45 && D(p) == 2 && (x = 0);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return s;
|
|
267
|
+
}
|
|
268
|
+
function ot(e, t, n, r, o, s, i, c, a, u, f, d) {
|
|
269
|
+
for (var h = o - 1, g = o === 0 ? s : [""], b = xt(g), x = 0, I = 0, C = 0; x < r; ++x)
|
|
270
|
+
for (var k = 0, v = J(e, h + 1, h = kt(I = i[x])), S = e; k < b; ++k)
|
|
271
|
+
(S = Et(I > 0 ? g[k] + " " + v : l(v, /&\f/g, g[k]))) && (a[C++] = S);
|
|
272
|
+
return Ne(e, t, n, o === 0 ? Ce : c, a, u, f, d);
|
|
273
|
+
}
|
|
274
|
+
function wn(e, t, n, r) {
|
|
275
|
+
return Ne(e, t, n, St, Ke(ln()), J(e, 2, -2), 0, r);
|
|
276
|
+
}
|
|
277
|
+
function st(e, t, n, r, o) {
|
|
278
|
+
return Ne(e, t, n, Xe, J(e, 0, r), J(e, r + 1, -1), r, o);
|
|
279
|
+
}
|
|
280
|
+
function At(e, t, n) {
|
|
281
|
+
switch (cn(e, t)) {
|
|
282
|
+
case 5103:
|
|
283
|
+
return y + "print-" + e + e;
|
|
284
|
+
case 5737:
|
|
285
|
+
case 4201:
|
|
286
|
+
case 3177:
|
|
287
|
+
case 3433:
|
|
288
|
+
case 1641:
|
|
289
|
+
case 4457:
|
|
290
|
+
case 2921:
|
|
291
|
+
case 5572:
|
|
292
|
+
case 6356:
|
|
293
|
+
case 5844:
|
|
294
|
+
case 3191:
|
|
295
|
+
case 6645:
|
|
296
|
+
case 3005:
|
|
297
|
+
case 6391:
|
|
298
|
+
case 5879:
|
|
299
|
+
case 5623:
|
|
300
|
+
case 6135:
|
|
301
|
+
case 4599:
|
|
302
|
+
case 4855:
|
|
303
|
+
case 4215:
|
|
304
|
+
case 6389:
|
|
305
|
+
case 5109:
|
|
306
|
+
case 5365:
|
|
307
|
+
case 5621:
|
|
308
|
+
case 3829:
|
|
309
|
+
return y + e + e;
|
|
310
|
+
case 4789:
|
|
311
|
+
return ce + e + e;
|
|
312
|
+
case 5349:
|
|
313
|
+
case 4246:
|
|
314
|
+
case 4810:
|
|
315
|
+
case 6968:
|
|
316
|
+
case 2756:
|
|
317
|
+
return y + e + ce + e + w + e + e;
|
|
318
|
+
case 5936:
|
|
319
|
+
switch (N(e, t + 11)) {
|
|
320
|
+
case 114:
|
|
321
|
+
return y + e + w + l(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
322
|
+
case 108:
|
|
323
|
+
return y + e + w + l(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
324
|
+
case 45:
|
|
325
|
+
return y + e + w + l(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
326
|
+
}
|
|
327
|
+
case 6828:
|
|
328
|
+
case 4268:
|
|
329
|
+
case 2903:
|
|
330
|
+
return y + e + w + e + e;
|
|
331
|
+
case 6165:
|
|
332
|
+
return y + e + w + "flex-" + e + e;
|
|
333
|
+
case 5187:
|
|
334
|
+
return y + e + l(e, /(\w+).+(:[^]+)/, y + "box-$1$2" + w + "flex-$1$2") + e;
|
|
335
|
+
case 5443:
|
|
336
|
+
return y + e + w + "flex-item-" + l(e, /flex-|-self/g, "") + (M(e, /flex-|baseline/) ? "" : w + "grid-row-" + l(e, /flex-|-self/g, "")) + e;
|
|
337
|
+
case 4675:
|
|
338
|
+
return y + e + w + "flex-line-pack" + l(e, /align-content|flex-|-self/g, "") + e;
|
|
339
|
+
case 5548:
|
|
340
|
+
return y + e + w + l(e, "shrink", "negative") + e;
|
|
341
|
+
case 5292:
|
|
342
|
+
return y + e + w + l(e, "basis", "preferred-size") + e;
|
|
343
|
+
case 6060:
|
|
344
|
+
return y + "box-" + l(e, "-grow", "") + y + e + w + l(e, "grow", "positive") + e;
|
|
345
|
+
case 4554:
|
|
346
|
+
return y + l(e, /([^-])(transform)/g, "$1" + y + "$2") + e;
|
|
347
|
+
case 6187:
|
|
348
|
+
return l(l(l(e, /(zoom-|grab)/, y + "$1"), /(image-set)/, y + "$1"), e, "") + e;
|
|
349
|
+
case 5495:
|
|
350
|
+
case 3959:
|
|
351
|
+
return l(e, /(image-set\([^]*)/, y + "$1$`$1");
|
|
352
|
+
case 4968:
|
|
353
|
+
return l(l(e, /(.+:)(flex-)?(.*)/, y + "box-pack:$3" + w + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + y + e + e;
|
|
354
|
+
case 4200:
|
|
355
|
+
if (!M(e, /flex-|baseline/)) return w + "grid-column-align" + J(e, t) + e;
|
|
356
|
+
break;
|
|
357
|
+
case 2592:
|
|
358
|
+
case 3360:
|
|
359
|
+
return w + l(e, "template-", "") + e;
|
|
360
|
+
case 4384:
|
|
361
|
+
case 3616:
|
|
362
|
+
return n && n.some(function(r, o) {
|
|
363
|
+
return t = o, M(r.props, /grid-\w+-end/);
|
|
364
|
+
}) ? ~ge(e + (n = n[t].value), "span", 0) ? e : w + l(e, "-start", "") + e + w + "grid-row-span:" + (~ge(n, "span", 0) ? M(n, /\d+/) : +M(n, /\d+/) - +M(e, /\d+/)) + ";" : w + l(e, "-start", "") + e;
|
|
365
|
+
case 4896:
|
|
366
|
+
case 4128:
|
|
367
|
+
return n && n.some(function(r) {
|
|
368
|
+
return M(r.props, /grid-\w+-start/);
|
|
369
|
+
}) ? e : w + l(l(e, "-end", "-span"), "span ", "") + e;
|
|
370
|
+
case 4095:
|
|
371
|
+
case 3583:
|
|
372
|
+
case 4068:
|
|
373
|
+
case 2532:
|
|
374
|
+
return l(e, /(.+)-inline(.+)/, y + "$1$2") + e;
|
|
375
|
+
case 8116:
|
|
376
|
+
case 7059:
|
|
377
|
+
case 5753:
|
|
378
|
+
case 5535:
|
|
379
|
+
case 5445:
|
|
380
|
+
case 5701:
|
|
381
|
+
case 4933:
|
|
382
|
+
case 4677:
|
|
383
|
+
case 5533:
|
|
384
|
+
case 5789:
|
|
385
|
+
case 5021:
|
|
386
|
+
case 4765:
|
|
387
|
+
if (D(e) - 1 - t > 6)
|
|
388
|
+
switch (N(e, t + 1)) {
|
|
389
|
+
case 109:
|
|
390
|
+
if (N(e, t + 4) !== 45)
|
|
391
|
+
break;
|
|
392
|
+
case 102:
|
|
393
|
+
return l(e, /(.+:)(.+)-([^]+)/, "$1" + y + "$2-$3$1" + ce + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
394
|
+
case 115:
|
|
395
|
+
return ~ge(e, "stretch", 0) ? At(l(e, "stretch", "fill-available"), t, n) + e : e;
|
|
396
|
+
}
|
|
397
|
+
break;
|
|
398
|
+
case 5152:
|
|
399
|
+
case 5920:
|
|
400
|
+
return l(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, s, i, c, a, u) {
|
|
401
|
+
return w + o + ":" + s + u + (i ? w + o + "-span:" + (c ? a : +a - +s) + u : "") + e;
|
|
402
|
+
});
|
|
403
|
+
case 4949:
|
|
404
|
+
if (N(e, t + 6) === 121)
|
|
405
|
+
return l(e, ":", ":" + y) + e;
|
|
406
|
+
break;
|
|
407
|
+
case 6444:
|
|
408
|
+
switch (N(e, N(e, 14) === 45 ? 18 : 11)) {
|
|
409
|
+
case 120:
|
|
410
|
+
return l(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + y + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + y + "$2$3$1" + w + "$2box$3") + e;
|
|
411
|
+
case 100:
|
|
412
|
+
return l(e, ":", ":" + w) + e;
|
|
413
|
+
}
|
|
414
|
+
break;
|
|
415
|
+
case 5719:
|
|
416
|
+
case 2647:
|
|
417
|
+
case 2135:
|
|
418
|
+
case 3927:
|
|
419
|
+
case 2391:
|
|
420
|
+
return l(e, "scroll-", "scroll-snap-") + e;
|
|
421
|
+
}
|
|
422
|
+
return e;
|
|
423
|
+
}
|
|
424
|
+
function be(e, t) {
|
|
425
|
+
for (var n = "", r = 0; r < e.length; r++)
|
|
426
|
+
n += t(e[r], r, e, t) || "";
|
|
427
|
+
return n;
|
|
428
|
+
}
|
|
429
|
+
function Sn(e, t, n, r) {
|
|
430
|
+
switch (e.type) {
|
|
431
|
+
case an:
|
|
432
|
+
if (e.children.length) break;
|
|
433
|
+
case sn:
|
|
434
|
+
case Xe:
|
|
435
|
+
return e.return = e.return || e.value;
|
|
436
|
+
case St:
|
|
437
|
+
return "";
|
|
438
|
+
case bt:
|
|
439
|
+
return e.return = e.value + "{" + be(e.children, r) + "}";
|
|
440
|
+
case Ce:
|
|
441
|
+
if (!D(e.value = e.props.join(","))) return "";
|
|
442
|
+
}
|
|
443
|
+
return D(n = be(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
444
|
+
}
|
|
445
|
+
function bn(e) {
|
|
446
|
+
var t = xt(e);
|
|
447
|
+
return function(n, r, o, s) {
|
|
448
|
+
for (var i = "", c = 0; c < t; c++)
|
|
449
|
+
i += e[c](n, r, o, s) || "";
|
|
450
|
+
return i;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function kn(e) {
|
|
454
|
+
return function(t) {
|
|
455
|
+
t.root || (t = t.return) && e(t);
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
function En(e, t, n, r) {
|
|
459
|
+
if (e.length > -1 && !e.return)
|
|
460
|
+
switch (e.type) {
|
|
461
|
+
case Xe:
|
|
462
|
+
e.return = At(e.value, e.length, n);
|
|
463
|
+
return;
|
|
464
|
+
case bt:
|
|
465
|
+
return be([V(e, { value: l(e.value, "@", "@" + y) })], r);
|
|
466
|
+
case Ce:
|
|
467
|
+
if (e.length)
|
|
468
|
+
return un(n = e.props, function(o) {
|
|
469
|
+
switch (M(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
470
|
+
case ":read-only":
|
|
471
|
+
case ":read-write":
|
|
472
|
+
Z(V(e, { props: [l(o, /:(read-\w+)/, ":" + ce + "$1")] })), Z(V(e, { props: [o] })), Le(e, { props: rt(n, r) });
|
|
473
|
+
break;
|
|
474
|
+
case "::placeholder":
|
|
475
|
+
Z(V(e, { props: [l(o, /:(plac\w+)/, ":" + y + "input-$1")] })), Z(V(e, { props: [l(o, /:(plac\w+)/, ":" + ce + "$1")] })), Z(V(e, { props: [l(o, /:(plac\w+)/, w + "input-$1")] })), Z(V(e, { props: [o] })), Le(e, { props: rt(n, r) });
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
return "";
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
var xn = {
|
|
483
|
+
animationIterationCount: 1,
|
|
484
|
+
aspectRatio: 1,
|
|
485
|
+
borderImageOutset: 1,
|
|
486
|
+
borderImageSlice: 1,
|
|
487
|
+
borderImageWidth: 1,
|
|
488
|
+
boxFlex: 1,
|
|
489
|
+
boxFlexGroup: 1,
|
|
490
|
+
boxOrdinalGroup: 1,
|
|
491
|
+
columnCount: 1,
|
|
492
|
+
columns: 1,
|
|
493
|
+
flex: 1,
|
|
494
|
+
flexGrow: 1,
|
|
495
|
+
flexPositive: 1,
|
|
496
|
+
flexShrink: 1,
|
|
497
|
+
flexNegative: 1,
|
|
498
|
+
flexOrder: 1,
|
|
499
|
+
gridRow: 1,
|
|
500
|
+
gridRowEnd: 1,
|
|
501
|
+
gridRowSpan: 1,
|
|
502
|
+
gridRowStart: 1,
|
|
503
|
+
gridColumn: 1,
|
|
504
|
+
gridColumnEnd: 1,
|
|
505
|
+
gridColumnSpan: 1,
|
|
506
|
+
gridColumnStart: 1,
|
|
507
|
+
msGridRow: 1,
|
|
508
|
+
msGridRowSpan: 1,
|
|
509
|
+
msGridColumn: 1,
|
|
510
|
+
msGridColumnSpan: 1,
|
|
511
|
+
fontWeight: 1,
|
|
512
|
+
lineHeight: 1,
|
|
513
|
+
opacity: 1,
|
|
514
|
+
order: 1,
|
|
515
|
+
orphans: 1,
|
|
516
|
+
tabSize: 1,
|
|
517
|
+
widows: 1,
|
|
518
|
+
zIndex: 1,
|
|
519
|
+
zoom: 1,
|
|
520
|
+
WebkitLineClamp: 1,
|
|
521
|
+
// SVG-related properties
|
|
522
|
+
fillOpacity: 1,
|
|
523
|
+
floodOpacity: 1,
|
|
524
|
+
stopOpacity: 1,
|
|
525
|
+
strokeDasharray: 1,
|
|
526
|
+
strokeDashoffset: 1,
|
|
527
|
+
strokeMiterlimit: 1,
|
|
528
|
+
strokeOpacity: 1,
|
|
529
|
+
strokeWidth: 1
|
|
530
|
+
}, q = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Nt = "active", Pt = "data-styled-version", Ie = "6.1.14", Ze = `/*!sc*/
|
|
531
|
+
`, ke = typeof window < "u" && "HTMLElement" in window, Cn = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), An = {}, it = /invalid hook call/i, de = /* @__PURE__ */ new Set(), It = function(e, t) {
|
|
532
|
+
if (process.env.NODE_ENV !== "production") {
|
|
533
|
+
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
534
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
535
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
|
|
536
|
+
try {
|
|
537
|
+
var s = !0;
|
|
538
|
+
console.error = function(i) {
|
|
539
|
+
for (var c = [], a = 1; a < arguments.length; a++) c[a - 1] = arguments[a];
|
|
540
|
+
it.test(i) ? (s = !1, de.delete(r)) : o.apply(void 0, W([i], c, !1));
|
|
541
|
+
}, Qt(), s && !de.has(r) && (console.warn(r), de.add(r));
|
|
542
|
+
} catch (i) {
|
|
543
|
+
it.test(i.message) && de.delete(r);
|
|
544
|
+
} finally {
|
|
545
|
+
console.error = o;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}, Oe = Object.freeze([]), ee = Object.freeze({});
|
|
549
|
+
function Ot(e, t, n) {
|
|
550
|
+
return n === void 0 && (n = ee), e.theme !== n.theme && e.theme || t || n.theme;
|
|
551
|
+
}
|
|
552
|
+
var Be = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Nn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Pn = /(^-|-$)/g;
|
|
553
|
+
function at(e) {
|
|
554
|
+
return e.replace(Nn, "-").replace(Pn, "");
|
|
555
|
+
}
|
|
556
|
+
var In = /(a)(d)/gi, fe = 52, ct = function(e) {
|
|
557
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
558
|
+
};
|
|
559
|
+
function Ge(e) {
|
|
560
|
+
var t, n = "";
|
|
561
|
+
for (t = Math.abs(e); t > fe; t = t / fe | 0) n = ct(t % fe) + n;
|
|
562
|
+
return (ct(t % fe) + n).replace(In, "$1-$2");
|
|
563
|
+
}
|
|
564
|
+
var je, Rt = 5381, G = function(e, t) {
|
|
565
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
566
|
+
return e;
|
|
567
|
+
}, _t = function(e) {
|
|
568
|
+
return G(Rt, e);
|
|
569
|
+
};
|
|
570
|
+
function Tt(e) {
|
|
571
|
+
return Ge(_t(e) >>> 0);
|
|
572
|
+
}
|
|
573
|
+
function Dt(e) {
|
|
574
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
575
|
+
}
|
|
576
|
+
function Me(e) {
|
|
577
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
578
|
+
}
|
|
579
|
+
var $t = typeof Symbol == "function" && Symbol.for, jt = $t ? Symbol.for("react.memo") : 60115, On = $t ? Symbol.for("react.forward_ref") : 60112, Rn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, _n = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Mt = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Tn = ((je = {})[On] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, je[jt] = Mt, je);
|
|
580
|
+
function ut(e) {
|
|
581
|
+
return ("type" in (t = e) && t.type.$$typeof) === jt ? Mt : "$$typeof" in e ? Tn[e.$$typeof] : Rn;
|
|
582
|
+
var t;
|
|
583
|
+
}
|
|
584
|
+
var Dn = Object.defineProperty, $n = Object.getOwnPropertyNames, lt = Object.getOwnPropertySymbols, jn = Object.getOwnPropertyDescriptor, Mn = Object.getPrototypeOf, pt = Object.prototype;
|
|
585
|
+
function zt(e, t, n) {
|
|
586
|
+
if (typeof t != "string") {
|
|
587
|
+
if (pt) {
|
|
588
|
+
var r = Mn(t);
|
|
589
|
+
r && r !== pt && zt(e, r, n);
|
|
590
|
+
}
|
|
591
|
+
var o = $n(t);
|
|
592
|
+
lt && (o = o.concat(lt(t)));
|
|
593
|
+
for (var s = ut(e), i = ut(t), c = 0; c < o.length; ++c) {
|
|
594
|
+
var a = o[c];
|
|
595
|
+
if (!(a in _n || n && n[a] || i && a in i || s && a in s)) {
|
|
596
|
+
var u = jn(t, a);
|
|
597
|
+
try {
|
|
598
|
+
Dn(e, a, u);
|
|
599
|
+
} catch {
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return e;
|
|
605
|
+
}
|
|
606
|
+
function U(e) {
|
|
607
|
+
return typeof e == "function";
|
|
608
|
+
}
|
|
609
|
+
function Je(e) {
|
|
610
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
611
|
+
}
|
|
612
|
+
function H(e, t) {
|
|
613
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
614
|
+
}
|
|
615
|
+
function He(e, t) {
|
|
616
|
+
if (e.length === 0) return "";
|
|
617
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
|
|
618
|
+
return n;
|
|
619
|
+
}
|
|
620
|
+
function te(e) {
|
|
621
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
622
|
+
}
|
|
623
|
+
function Ye(e, t, n) {
|
|
624
|
+
if (n === void 0 && (n = !1), !n && !te(e) && !Array.isArray(e)) return t;
|
|
625
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Ye(e[r], t[r]);
|
|
626
|
+
else if (te(t)) for (var r in t) e[r] = Ye(e[r], t[r]);
|
|
627
|
+
return e;
|
|
628
|
+
}
|
|
629
|
+
function Qe(e, t) {
|
|
630
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
631
|
+
}
|
|
632
|
+
var zn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
633
|
+
|
|
634
|
+
`, 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.
|
|
635
|
+
|
|
636
|
+
- Are you trying to reuse it across renders?
|
|
637
|
+
- Are you accidentally calling collectStyles twice?
|
|
638
|
+
|
|
639
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
640
|
+
|
|
641
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
642
|
+
|
|
643
|
+
- Does this error occur on the client and is your target falsy?
|
|
644
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
645
|
+
|
|
646
|
+
`, 5: `The clone method cannot be used on the client!
|
|
647
|
+
|
|
648
|
+
- Are you running in a client-like environment on the server?
|
|
649
|
+
- Are you trying to run SSR on the client?
|
|
650
|
+
|
|
651
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
652
|
+
|
|
653
|
+
- Are you using a custom target that isn't mounted?
|
|
654
|
+
- Does your document not have a valid head element?
|
|
655
|
+
- Have you accidentally removed a style tag manually?
|
|
656
|
+
|
|
657
|
+
`, 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.
|
|
658
|
+
|
|
659
|
+
`, 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
|
|
660
|
+
|
|
661
|
+
`, 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.
|
|
662
|
+
|
|
663
|
+
`, 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.
|
|
664
|
+
|
|
665
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
666
|
+
|
|
667
|
+
`, 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.
|
|
668
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
669
|
+
as for instance in your render method then you may be running into this limitation.
|
|
670
|
+
|
|
671
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
672
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
673
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
674
|
+
function Ln() {
|
|
675
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
676
|
+
for (var n = e[0], r = [], o = 1, s = e.length; o < s; o += 1) r.push(e[o]);
|
|
677
|
+
return r.forEach(function(i) {
|
|
678
|
+
n = n.replace(/%[a-z]/, i);
|
|
679
|
+
}), n;
|
|
680
|
+
}
|
|
681
|
+
function $(e) {
|
|
682
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
683
|
+
return process.env.NODE_ENV === "production" ? 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(Ln.apply(void 0, W([zn[e]], t, !1)).trim());
|
|
684
|
+
}
|
|
685
|
+
var Vn = function() {
|
|
686
|
+
function e(t) {
|
|
687
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
688
|
+
}
|
|
689
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
690
|
+
for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
|
|
691
|
+
return n;
|
|
692
|
+
}, e.prototype.insertRules = function(t, n) {
|
|
693
|
+
if (t >= this.groupSizes.length) {
|
|
694
|
+
for (var r = this.groupSizes, o = r.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw $(16, "".concat(t));
|
|
695
|
+
this.groupSizes = new Uint32Array(s), this.groupSizes.set(r), this.length = s;
|
|
696
|
+
for (var i = o; i < s; i++) this.groupSizes[i] = 0;
|
|
697
|
+
}
|
|
698
|
+
for (var c = this.indexOfGroup(t + 1), a = (i = 0, n.length); i < a; i++) this.tag.insertRule(c, n[i]) && (this.groupSizes[t]++, c++);
|
|
699
|
+
}, e.prototype.clearGroup = function(t) {
|
|
700
|
+
if (t < this.length) {
|
|
701
|
+
var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
|
|
702
|
+
this.groupSizes[t] = 0;
|
|
703
|
+
for (var s = r; s < o; s++) this.tag.deleteRule(r);
|
|
704
|
+
}
|
|
705
|
+
}, e.prototype.getGroup = function(t) {
|
|
706
|
+
var n = "";
|
|
707
|
+
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
708
|
+
for (var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r, i = o; i < s; i++) n += "".concat(this.tag.getRule(i)).concat(Ze);
|
|
709
|
+
return n;
|
|
710
|
+
}, e;
|
|
711
|
+
}(), Fn = 1 << 30, we = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), Se = 1, he = function(e) {
|
|
712
|
+
if (we.has(e)) return we.get(e);
|
|
713
|
+
for (; Ee.has(Se); ) Se++;
|
|
714
|
+
var t = Se++;
|
|
715
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Fn)) throw $(16, "".concat(t));
|
|
716
|
+
return we.set(e, t), Ee.set(t, e), t;
|
|
717
|
+
}, Bn = function(e, t) {
|
|
718
|
+
Se = t + 1, we.set(e, t), Ee.set(t, e);
|
|
719
|
+
}, Gn = "style[".concat(q, "][").concat(Pt, '="').concat(Ie, '"]'), Hn = new RegExp("^".concat(q, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Yn = function(e, t, n) {
|
|
720
|
+
for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
|
|
721
|
+
}, Wn = function(e, t) {
|
|
722
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Ze), o = [], s = 0, i = r.length; s < i; s++) {
|
|
723
|
+
var c = r[s].trim();
|
|
724
|
+
if (c) {
|
|
725
|
+
var a = c.match(Hn);
|
|
726
|
+
if (a) {
|
|
727
|
+
var u = 0 | parseInt(a[1], 10), f = a[2];
|
|
728
|
+
u !== 0 && (Bn(f, u), Yn(e, f, a[3]), e.getTag().insertRules(u, o)), o.length = 0;
|
|
729
|
+
} else o.push(c);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}, dt = function(e) {
|
|
733
|
+
for (var t = document.querySelectorAll(Gn), n = 0, r = t.length; n < r; n++) {
|
|
734
|
+
var o = t[n];
|
|
735
|
+
o && o.getAttribute(q) !== Nt && (Wn(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
function qn() {
|
|
739
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
740
|
+
}
|
|
741
|
+
var Lt = function(e) {
|
|
742
|
+
var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
|
|
743
|
+
var a = Array.from(c.querySelectorAll("style[".concat(q, "]")));
|
|
744
|
+
return a[a.length - 1];
|
|
745
|
+
}(n), s = o !== void 0 ? o.nextSibling : null;
|
|
746
|
+
r.setAttribute(q, Nt), r.setAttribute(Pt, Ie);
|
|
747
|
+
var i = qn();
|
|
748
|
+
return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
|
|
749
|
+
}, Un = function() {
|
|
750
|
+
function e(t) {
|
|
751
|
+
this.element = Lt(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
|
|
752
|
+
if (n.sheet) return n.sheet;
|
|
753
|
+
for (var r = document.styleSheets, o = 0, s = r.length; o < s; o++) {
|
|
754
|
+
var i = r[o];
|
|
755
|
+
if (i.ownerNode === n) return i;
|
|
756
|
+
}
|
|
757
|
+
throw $(17);
|
|
758
|
+
}(this.element), this.length = 0;
|
|
759
|
+
}
|
|
760
|
+
return e.prototype.insertRule = function(t, n) {
|
|
761
|
+
try {
|
|
762
|
+
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
763
|
+
} catch {
|
|
764
|
+
return !1;
|
|
765
|
+
}
|
|
766
|
+
}, e.prototype.deleteRule = function(t) {
|
|
767
|
+
this.sheet.deleteRule(t), this.length--;
|
|
768
|
+
}, e.prototype.getRule = function(t) {
|
|
769
|
+
var n = this.sheet.cssRules[t];
|
|
770
|
+
return n && n.cssText ? n.cssText : "";
|
|
771
|
+
}, e;
|
|
772
|
+
}(), Xn = function() {
|
|
773
|
+
function e(t) {
|
|
774
|
+
this.element = Lt(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
775
|
+
}
|
|
776
|
+
return e.prototype.insertRule = function(t, n) {
|
|
777
|
+
if (t <= this.length && t >= 0) {
|
|
778
|
+
var r = document.createTextNode(n);
|
|
779
|
+
return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
|
|
780
|
+
}
|
|
781
|
+
return !1;
|
|
782
|
+
}, e.prototype.deleteRule = function(t) {
|
|
783
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
784
|
+
}, e.prototype.getRule = function(t) {
|
|
785
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
786
|
+
}, e;
|
|
787
|
+
}(), Kn = function() {
|
|
788
|
+
function e(t) {
|
|
789
|
+
this.rules = [], this.length = 0;
|
|
790
|
+
}
|
|
791
|
+
return e.prototype.insertRule = function(t, n) {
|
|
792
|
+
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
793
|
+
}, e.prototype.deleteRule = function(t) {
|
|
794
|
+
this.rules.splice(t, 1), this.length--;
|
|
795
|
+
}, e.prototype.getRule = function(t) {
|
|
796
|
+
return t < this.length ? this.rules[t] : "";
|
|
797
|
+
}, e;
|
|
798
|
+
}(), ft = ke, Zn = { isServer: !ke, useCSSOMInjection: !Cn }, xe = function() {
|
|
799
|
+
function e(t, n, r) {
|
|
800
|
+
t === void 0 && (t = ee), n === void 0 && (n = {});
|
|
801
|
+
var o = this;
|
|
802
|
+
this.options = P(P({}, Zn), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && ke && ft && (ft = !1, dt(this)), Qe(this, function() {
|
|
803
|
+
return function(s) {
|
|
804
|
+
for (var i = s.getTag(), c = i.length, a = "", u = function(d) {
|
|
805
|
+
var h = function(C) {
|
|
806
|
+
return Ee.get(C);
|
|
807
|
+
}(d);
|
|
808
|
+
if (h === void 0) return "continue";
|
|
809
|
+
var g = s.names.get(h), b = i.getGroup(d);
|
|
810
|
+
if (g === void 0 || !g.size || b.length === 0) return "continue";
|
|
811
|
+
var x = "".concat(q, ".g").concat(d, '[id="').concat(h, '"]'), I = "";
|
|
812
|
+
g !== void 0 && g.forEach(function(C) {
|
|
813
|
+
C.length > 0 && (I += "".concat(C, ","));
|
|
814
|
+
}), a += "".concat(b).concat(x, '{content:"').concat(I, '"}').concat(Ze);
|
|
815
|
+
}, f = 0; f < c; f++) u(f);
|
|
816
|
+
return a;
|
|
817
|
+
}(o);
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
return e.registerId = function(t) {
|
|
821
|
+
return he(t);
|
|
822
|
+
}, e.prototype.rehydrate = function() {
|
|
823
|
+
!this.server && ke && dt(this);
|
|
824
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
825
|
+
return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
|
|
826
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
827
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
828
|
+
}, e.prototype.getTag = function() {
|
|
829
|
+
return this.tag || (this.tag = (t = function(n) {
|
|
830
|
+
var r = n.useCSSOMInjection, o = n.target;
|
|
831
|
+
return n.isServer ? new Kn(o) : r ? new Un(o) : new Xn(o);
|
|
832
|
+
}(this.options), new Vn(t)));
|
|
833
|
+
var t;
|
|
834
|
+
}, e.prototype.hasNameForId = function(t, n) {
|
|
835
|
+
return this.names.has(t) && this.names.get(t).has(n);
|
|
836
|
+
}, e.prototype.registerName = function(t, n) {
|
|
837
|
+
if (he(t), this.names.has(t)) this.names.get(t).add(n);
|
|
838
|
+
else {
|
|
839
|
+
var r = /* @__PURE__ */ new Set();
|
|
840
|
+
r.add(n), this.names.set(t, r);
|
|
841
|
+
}
|
|
842
|
+
}, e.prototype.insertRules = function(t, n, r) {
|
|
843
|
+
this.registerName(t, n), this.getTag().insertRules(he(t), r);
|
|
844
|
+
}, e.prototype.clearNames = function(t) {
|
|
845
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
846
|
+
}, e.prototype.clearRules = function(t) {
|
|
847
|
+
this.getTag().clearGroup(he(t)), this.clearNames(t);
|
|
848
|
+
}, e.prototype.clearTag = function() {
|
|
849
|
+
this.tag = void 0;
|
|
850
|
+
}, e;
|
|
851
|
+
}(), Jn = /&/g, Qn = /^\s*\/\/.*$/gm;
|
|
852
|
+
function Vt(e, t) {
|
|
853
|
+
return e.map(function(n) {
|
|
854
|
+
return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
|
|
855
|
+
return "".concat(t, " ").concat(r);
|
|
856
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = Vt(n.children, t)), n;
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
function er(e) {
|
|
860
|
+
var t, n, r, o = ee, s = o.options, i = s === void 0 ? ee : s, c = o.plugins, a = c === void 0 ? Oe : c, u = function(h, g, b) {
|
|
861
|
+
return b.startsWith(n) && b.endsWith(n) && b.replaceAll(n, "").length > 0 ? ".".concat(t) : h;
|
|
862
|
+
}, f = a.slice();
|
|
863
|
+
f.push(function(h) {
|
|
864
|
+
h.type === Ce && h.value.includes("&") && (h.props[0] = h.props[0].replace(Jn, n).replace(r, u));
|
|
865
|
+
}), i.prefix && f.push(En), f.push(Sn);
|
|
866
|
+
var d = function(h, g, b, x) {
|
|
867
|
+
g === void 0 && (g = ""), b === void 0 && (b = ""), x === void 0 && (x = "&"), t = x, n = g, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
868
|
+
var I = h.replace(Qn, ""), C = vn(b || g ? "".concat(b, " ").concat(g, " { ").concat(I, " }") : I);
|
|
869
|
+
i.namespace && (C = Vt(C, i.namespace));
|
|
870
|
+
var k = [];
|
|
871
|
+
return be(C, bn(f.concat(kn(function(v) {
|
|
872
|
+
return k.push(v);
|
|
873
|
+
})))), k;
|
|
874
|
+
};
|
|
875
|
+
return d.hash = a.length ? a.reduce(function(h, g) {
|
|
876
|
+
return g.name || $(15), G(h, g.name);
|
|
877
|
+
}, Rt).toString() : "", d;
|
|
878
|
+
}
|
|
879
|
+
var tr = new xe(), We = er(), Ft = R.createContext({ shouldForwardProp: void 0, styleSheet: tr, stylis: We });
|
|
880
|
+
Ft.Consumer;
|
|
881
|
+
R.createContext(void 0);
|
|
882
|
+
function qe() {
|
|
883
|
+
return wt(Ft);
|
|
884
|
+
}
|
|
885
|
+
var ht = function() {
|
|
886
|
+
function e(t, n) {
|
|
887
|
+
var r = this;
|
|
888
|
+
this.inject = function(o, s) {
|
|
889
|
+
s === void 0 && (s = We);
|
|
890
|
+
var i = r.name + s.hash;
|
|
891
|
+
o.hasNameForId(r.id, i) || o.insertRules(r.id, i, s(r.rules, i, "@keyframes"));
|
|
892
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Qe(this, function() {
|
|
893
|
+
throw $(12, String(r.name));
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
return e.prototype.getName = function(t) {
|
|
897
|
+
return t === void 0 && (t = We), this.name + t.hash;
|
|
898
|
+
}, e;
|
|
899
|
+
}(), nr = function(e) {
|
|
900
|
+
return e >= "A" && e <= "Z";
|
|
901
|
+
};
|
|
902
|
+
function mt(e) {
|
|
903
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
904
|
+
var r = e[n];
|
|
905
|
+
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
906
|
+
nr(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
907
|
+
}
|
|
908
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
909
|
+
}
|
|
910
|
+
var Bt = function(e) {
|
|
911
|
+
return e == null || e === !1 || e === "";
|
|
912
|
+
}, Gt = function(e) {
|
|
913
|
+
var t, n, r = [];
|
|
914
|
+
for (var o in e) {
|
|
915
|
+
var s = e[o];
|
|
916
|
+
e.hasOwnProperty(o) && !Bt(s) && (Array.isArray(s) && s.isCss || U(s) ? r.push("".concat(mt(o), ":"), s, ";") : te(s) ? r.push.apply(r, W(W(["".concat(o, " {")], Gt(s), !1), ["}"], !1)) : r.push("".concat(mt(o), ": ").concat((t = o, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in xn || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
917
|
+
}
|
|
918
|
+
return r;
|
|
919
|
+
};
|
|
920
|
+
function F(e, t, n, r) {
|
|
921
|
+
if (Bt(e)) return [];
|
|
922
|
+
if (Je(e)) return [".".concat(e.styledComponentId)];
|
|
923
|
+
if (U(e)) {
|
|
924
|
+
if (!U(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
925
|
+
var o = e(t);
|
|
926
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof ht || te(o) || o === null || console.error("".concat(Dt(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.")), F(o, t, n, r);
|
|
927
|
+
}
|
|
928
|
+
var s;
|
|
929
|
+
return e instanceof ht ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : te(e) ? Gt(e) : Array.isArray(e) ? Array.prototype.concat.apply(Oe, e.map(function(i) {
|
|
930
|
+
return F(i, t, n, r);
|
|
931
|
+
})) : [e.toString()];
|
|
932
|
+
}
|
|
933
|
+
function Ht(e) {
|
|
934
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
935
|
+
var n = e[t];
|
|
936
|
+
if (U(n) && !Je(n)) return !1;
|
|
937
|
+
}
|
|
938
|
+
return !0;
|
|
939
|
+
}
|
|
940
|
+
var rr = _t(Ie), or = function() {
|
|
941
|
+
function e(t, n, r) {
|
|
942
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ht(t), this.componentId = n, this.baseHash = G(rr, n), this.baseStyle = r, xe.registerId(n);
|
|
943
|
+
}
|
|
944
|
+
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
945
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
946
|
+
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = H(o, this.staticRulesId);
|
|
947
|
+
else {
|
|
948
|
+
var s = He(F(this.rules, t, n, r)), i = Ge(G(this.baseHash, s) >>> 0);
|
|
949
|
+
if (!n.hasNameForId(this.componentId, i)) {
|
|
950
|
+
var c = r(s, ".".concat(i), void 0, this.componentId);
|
|
951
|
+
n.insertRules(this.componentId, i, c);
|
|
952
|
+
}
|
|
953
|
+
o = H(o, i), this.staticRulesId = i;
|
|
954
|
+
}
|
|
955
|
+
else {
|
|
956
|
+
for (var a = G(this.baseHash, r.hash), u = "", f = 0; f < this.rules.length; f++) {
|
|
957
|
+
var d = this.rules[f];
|
|
958
|
+
if (typeof d == "string") u += d, process.env.NODE_ENV !== "production" && (a = G(a, d));
|
|
959
|
+
else if (d) {
|
|
960
|
+
var h = He(F(d, t, n, r));
|
|
961
|
+
a = G(a, h + f), u += h;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
if (u) {
|
|
965
|
+
var g = Ge(a >>> 0);
|
|
966
|
+
n.hasNameForId(this.componentId, g) || n.insertRules(this.componentId, g, r(u, ".".concat(g), void 0, this.componentId)), o = H(o, g);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return o;
|
|
970
|
+
}, e;
|
|
971
|
+
}(), ne = R.createContext(void 0);
|
|
972
|
+
ne.Consumer;
|
|
973
|
+
function ur() {
|
|
974
|
+
var e = wt(ne);
|
|
975
|
+
if (!e) throw $(18);
|
|
976
|
+
return e;
|
|
977
|
+
}
|
|
978
|
+
function lr(e) {
|
|
979
|
+
var t = R.useContext(ne), n = en(function() {
|
|
980
|
+
return function(r, o) {
|
|
981
|
+
if (!r) throw $(14);
|
|
982
|
+
if (U(r)) {
|
|
983
|
+
var s = r(o);
|
|
984
|
+
if (process.env.NODE_ENV !== "production" && (s === null || Array.isArray(s) || typeof s != "object")) throw $(7);
|
|
985
|
+
return s;
|
|
986
|
+
}
|
|
987
|
+
if (Array.isArray(r) || typeof r != "object") throw $(8);
|
|
988
|
+
return o ? P(P({}, o), r) : r;
|
|
989
|
+
}(e.theme, t);
|
|
990
|
+
}, [e.theme, t]);
|
|
991
|
+
return e.children ? R.createElement(ne.Provider, { value: n }, e.children) : null;
|
|
992
|
+
}
|
|
993
|
+
var ze = {}, gt = /* @__PURE__ */ new Set();
|
|
994
|
+
function sr(e, t, n) {
|
|
995
|
+
var r = Je(e), o = e, s = !Me(e), i = t.attrs, c = i === void 0 ? Oe : i, a = t.componentId, u = a === void 0 ? function(S, E) {
|
|
996
|
+
var m = typeof S != "string" ? "sc" : at(S);
|
|
997
|
+
ze[m] = (ze[m] || 0) + 1;
|
|
998
|
+
var p = "".concat(m, "-").concat(Tt(Ie + m + ze[m]));
|
|
999
|
+
return E ? "".concat(E, "-").concat(p) : p;
|
|
1000
|
+
}(t.displayName, t.parentComponentId) : a, f = t.displayName, d = f === void 0 ? function(S) {
|
|
1001
|
+
return Me(S) ? "styled.".concat(S) : "Styled(".concat(Dt(S), ")");
|
|
1002
|
+
}(e) : f, h = t.displayName && t.componentId ? "".concat(at(t.displayName), "-").concat(t.componentId) : t.componentId || u, g = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, b = t.shouldForwardProp;
|
|
1003
|
+
if (r && o.shouldForwardProp) {
|
|
1004
|
+
var x = o.shouldForwardProp;
|
|
1005
|
+
if (t.shouldForwardProp) {
|
|
1006
|
+
var I = t.shouldForwardProp;
|
|
1007
|
+
b = function(S, E) {
|
|
1008
|
+
return x(S, E) && I(S, E);
|
|
1009
|
+
};
|
|
1010
|
+
} else b = x;
|
|
1011
|
+
}
|
|
1012
|
+
var C = new or(n, h, r ? o.componentStyle : void 0);
|
|
1013
|
+
function k(S, E) {
|
|
1014
|
+
return function(m, p, z) {
|
|
1015
|
+
var X = m.attrs, qt = m.componentStyle, Ut = m.defaultProps, Xt = m.foldedComponentIds, et = m.styledComponentId, Kt = m.target, Zt = R.useContext(ne), Jt = qe(), Re = m.shouldForwardProp || Jt.shouldForwardProp;
|
|
1016
|
+
process.env.NODE_ENV !== "production" && nt(et);
|
|
1017
|
+
var tt = Ot(p, Zt, Ut) || ee, j = function(ue, ie, le) {
|
|
1018
|
+
for (var K, B = P(P({}, ie), { className: void 0, theme: le }), De = 0; De < ue.length; De += 1) {
|
|
1019
|
+
var pe = U(K = ue[De]) ? K(B) : K;
|
|
1020
|
+
for (var L in pe) B[L] = L === "className" ? H(B[L], pe[L]) : L === "style" ? P(P({}, B[L]), pe[L]) : pe[L];
|
|
1021
|
+
}
|
|
1022
|
+
return ie.className && (B.className = H(B.className, ie.className)), B;
|
|
1023
|
+
}(X, p, tt), oe = j.as || Kt, se = {};
|
|
1024
|
+
for (var O in j) j[O] === void 0 || O[0] === "$" || O === "as" || O === "theme" && j.theme === tt || (O === "forwardedAs" ? se.as = j.forwardedAs : Re && !Re(O, oe) || (se[O] = j[O], Re || process.env.NODE_ENV !== "development" || on(O) || gt.has(O) || !Be.has(oe) || (gt.add(O), console.warn('styled-components: it looks like an unknown prop "'.concat(O, '" 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.)')))));
|
|
1025
|
+
var _e = function(ue, ie) {
|
|
1026
|
+
var le = qe(), K = ue.generateAndInjectStyles(ie, le.styleSheet, le.stylis);
|
|
1027
|
+
return process.env.NODE_ENV !== "production" && nt(K), K;
|
|
1028
|
+
}(qt, j);
|
|
1029
|
+
process.env.NODE_ENV !== "production" && m.warnTooManyClasses && m.warnTooManyClasses(_e);
|
|
1030
|
+
var Te = H(Xt, et);
|
|
1031
|
+
return _e && (Te += " " + _e), j.className && (Te += " " + j.className), se[Me(oe) && !Be.has(oe) ? "class" : "className"] = Te, z && (se.ref = z), tn(oe, se);
|
|
1032
|
+
}(v, S, E);
|
|
1033
|
+
}
|
|
1034
|
+
k.displayName = d;
|
|
1035
|
+
var v = R.forwardRef(k);
|
|
1036
|
+
return v.attrs = g, v.componentStyle = C, v.displayName = d, v.shouldForwardProp = b, v.foldedComponentIds = r ? H(o.foldedComponentIds, o.styledComponentId) : "", v.styledComponentId = h, v.target = r ? o.target : e, Object.defineProperty(v, "defaultProps", { get: function() {
|
|
1037
|
+
return this._foldedDefaultProps;
|
|
1038
|
+
}, set: function(S) {
|
|
1039
|
+
this._foldedDefaultProps = r ? function(E) {
|
|
1040
|
+
for (var m = [], p = 1; p < arguments.length; p++) m[p - 1] = arguments[p];
|
|
1041
|
+
for (var z = 0, X = m; z < X.length; z++) Ye(E, X[z], !0);
|
|
1042
|
+
return E;
|
|
1043
|
+
}({}, o.defaultProps, S) : S;
|
|
1044
|
+
} }), process.env.NODE_ENV !== "production" && (It(d, h), v.warnTooManyClasses = /* @__PURE__ */ function(S, E) {
|
|
1045
|
+
var m = {}, p = !1;
|
|
1046
|
+
return function(z) {
|
|
1047
|
+
if (!p && (m[z] = !0, Object.keys(m).length >= 200)) {
|
|
1048
|
+
var X = E ? ' with the id of "'.concat(E, '"') : "";
|
|
1049
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(X, `.
|
|
1050
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1051
|
+
Example:
|
|
1052
|
+
const Component = styled.div.attrs(props => ({
|
|
1053
|
+
style: {
|
|
1054
|
+
background: props.background,
|
|
1055
|
+
},
|
|
1056
|
+
}))\`width: 100%;\`
|
|
1057
|
+
|
|
1058
|
+
<Component />`), p = !0, m = {};
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
}(d, h)), Qe(v, function() {
|
|
1062
|
+
return ".".concat(v.styledComponentId);
|
|
1063
|
+
}), s && zt(v, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
|
|
1064
|
+
}
|
|
1065
|
+
function yt(e, t) {
|
|
1066
|
+
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1067
|
+
return n;
|
|
1068
|
+
}
|
|
1069
|
+
var vt = function(e) {
|
|
1070
|
+
return Object.assign(e, { isCss: !0 });
|
|
1071
|
+
};
|
|
1072
|
+
function Yt(e) {
|
|
1073
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1074
|
+
if (U(e) || te(e)) return vt(F(yt(Oe, W([e], t, !0))));
|
|
1075
|
+
var r = e;
|
|
1076
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? F(r) : vt(F(yt(r, t)));
|
|
1077
|
+
}
|
|
1078
|
+
function Ue(e, t, n) {
|
|
1079
|
+
if (n === void 0 && (n = ee), !t) throw $(1, t);
|
|
1080
|
+
var r = function(o) {
|
|
1081
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1082
|
+
return e(t, n, Yt.apply(void 0, W([o], s, !1)));
|
|
1083
|
+
};
|
|
1084
|
+
return r.attrs = function(o) {
|
|
1085
|
+
return Ue(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
1086
|
+
}, r.withConfig = function(o) {
|
|
1087
|
+
return Ue(e, t, P(P({}, n), o));
|
|
1088
|
+
}, r;
|
|
1089
|
+
}
|
|
1090
|
+
var Wt = function(e) {
|
|
1091
|
+
return Ue(sr, e);
|
|
1092
|
+
}, ir = Wt;
|
|
1093
|
+
Be.forEach(function(e) {
|
|
1094
|
+
ir[e] = Wt(e);
|
|
1095
|
+
});
|
|
1096
|
+
var ar = function() {
|
|
1097
|
+
function e(t, n) {
|
|
1098
|
+
this.rules = t, this.componentId = n, this.isStatic = Ht(t), xe.registerId(this.componentId + 1);
|
|
1099
|
+
}
|
|
1100
|
+
return e.prototype.createStyles = function(t, n, r, o) {
|
|
1101
|
+
var s = o(He(F(this.rules, n, r, o)), ""), i = this.componentId + t;
|
|
1102
|
+
r.insertRules(i, i, s);
|
|
1103
|
+
}, e.prototype.removeStyles = function(t, n) {
|
|
1104
|
+
n.clearRules(this.componentId + t);
|
|
1105
|
+
}, e.prototype.renderStyles = function(t, n, r, o) {
|
|
1106
|
+
t > 2 && xe.registerId(this.componentId + t), this.removeStyles(t, r), this.createStyles(t, n, r, o);
|
|
1107
|
+
}, e;
|
|
1108
|
+
}();
|
|
1109
|
+
function pr(e) {
|
|
1110
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1111
|
+
var r = Yt.apply(void 0, W([e], t, !1)), o = "sc-global-".concat(Tt(JSON.stringify(r))), s = new ar(r, o);
|
|
1112
|
+
process.env.NODE_ENV !== "production" && It(o);
|
|
1113
|
+
var i = function(a) {
|
|
1114
|
+
var u = qe(), f = R.useContext(ne), d = R.useRef(u.styleSheet.allocateGSInstance(o)).current;
|
|
1115
|
+
return process.env.NODE_ENV !== "production" && R.Children.count(a.children) && console.warn("The global style component ".concat(o, " was given child JSX. createGlobalStyle does not render children.")), process.env.NODE_ENV !== "production" && r.some(function(h) {
|
|
1116
|
+
return typeof h == "string" && h.indexOf("@import") !== -1;
|
|
1117
|
+
}) && 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."), u.styleSheet.server && c(d, a, u.styleSheet, f, u.stylis), R.useLayoutEffect(function() {
|
|
1118
|
+
if (!u.styleSheet.server) return c(d, a, u.styleSheet, f, u.stylis), function() {
|
|
1119
|
+
return s.removeStyles(d, u.styleSheet);
|
|
1120
|
+
};
|
|
1121
|
+
}, [d, a, u.styleSheet, f, u.stylis]), null;
|
|
1122
|
+
};
|
|
1123
|
+
function c(a, u, f, d, h) {
|
|
1124
|
+
if (s.isStatic) s.renderStyles(a, An, f, h);
|
|
1125
|
+
else {
|
|
1126
|
+
var g = P(P({}, u), { theme: Ot(u, d, i.defaultProps) });
|
|
1127
|
+
s.renderStyles(a, g, f, h);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return R.memo(i);
|
|
1131
|
+
}
|
|
1132
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1133
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1134
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1135
|
+
var me = "__sc-".concat(q, "__");
|
|
1136
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[me] || (window[me] = 0), window[me] === 1 && 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.
|
|
1137
|
+
|
|
1138
|
+
See https://s-c.sh/2BAXzed for more info.`), window[me] += 1);
|
|
1139
|
+
export {
|
|
1140
|
+
ir as d,
|
|
1141
|
+
pr as f,
|
|
1142
|
+
ur as n,
|
|
1143
|
+
lr as o
|
|
1144
|
+
};
|