storybook 10.1.0-alpha.10 → 10.1.0-alpha.11
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/_browser-chunks/Color-FTG7SQDA.js +1097 -0
- package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
- package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
- package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
- package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
- package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
- package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
- package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-74YHFU5B.js} +44 -109
- package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
- package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
- package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
- package/dist/_browser-chunks/chunk-BE2DAXKJ.js +2966 -0
- package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
- package/dist/_browser-chunks/chunk-EBHB6RPS.js +61 -0
- package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
- package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
- package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
- package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
- package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
- package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
- package/dist/_browser-chunks/{chunk-QMY4G4R2.js → chunk-L4RMQ7D7.js} +17 -64
- package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
- package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
- package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
- package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
- package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
- package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
- package/dist/_browser-chunks/chunk-WXP2XJ3O.js +950 -0
- package/dist/_browser-chunks/chunk-X3DUQ5RA.js +47 -0
- package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
- package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
- package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
- package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
- package/dist/_browser-chunks/{syntaxhighlighter-RJZASWHL.js → syntaxhighlighter-WKBQ5RC7.js} +704 -1848
- package/dist/_node-chunks/{builder-manager-HA7CYFCK.js → builder-manager-PMPHOSM2.js} +475 -1013
- package/dist/_node-chunks/camelcase-K3IOOFQW.js +18 -0
- package/dist/_node-chunks/{chunk-X4XU27M6.js → chunk-32NE3UE3.js} +15 -24
- package/dist/_node-chunks/chunk-4GZCFQFG.js +58 -0
- package/dist/_node-chunks/chunk-5QK5MSOI.js +943 -0
- package/dist/_node-chunks/{chunk-VPR5IBMG.js → chunk-6ZOLETQK.js} +8 -10
- package/dist/_node-chunks/chunk-7I22Y76Z.js +1047 -0
- package/dist/_node-chunks/chunk-AKTRSR3O.js +72 -0
- package/dist/_node-chunks/chunk-BBOP3XCK.js +119 -0
- package/dist/_node-chunks/chunk-C2GQVDWI.js +34 -0
- package/dist/_node-chunks/{chunk-ZHSCUGNP.js → chunk-GG2WQZSG.js} +3799 -7849
- package/dist/_node-chunks/chunk-GQJOWVVR.js +3214 -0
- package/dist/_node-chunks/chunk-JCRM2YVK.js +3009 -0
- package/dist/_node-chunks/chunk-KK4AT5F3.js +1029 -0
- package/dist/_node-chunks/chunk-L7MYXJUM.js +1114 -0
- package/dist/_node-chunks/{chunk-F3XOPI6H.js → chunk-LCZO45L7.js} +469 -983
- package/dist/_node-chunks/chunk-LR3QITDI.js +209 -0
- package/dist/_node-chunks/chunk-LXG4DK35.js +3171 -0
- package/dist/_node-chunks/chunk-MJ3WOS6F.js +37 -0
- package/dist/_node-chunks/chunk-PHOZWZZO.js +61 -0
- package/dist/_node-chunks/chunk-QECOQWRJ.js +936 -0
- package/dist/_node-chunks/chunk-QH4V5YDB.js +20 -0
- package/dist/_node-chunks/chunk-R6HWGZWD.js +26 -0
- package/dist/_node-chunks/chunk-SPQXMU2Q.js +759 -0
- package/dist/_node-chunks/chunk-TXZY6V6O.js +1564 -0
- package/dist/_node-chunks/chunk-UGDPX5LE.js +756 -0
- package/dist/_node-chunks/chunk-UY26MQLT.js +603 -0
- package/dist/_node-chunks/chunk-WK3EMYK6.js +61 -0
- package/dist/_node-chunks/{chunk-OVXB5GGT.js → chunk-WLHMN7AP.js} +292 -688
- package/dist/_node-chunks/chunk-XGVLB4UJ.js +54 -0
- package/dist/_node-chunks/{chunk-RMHAL25C.js → chunk-YHRFI6BE.js} +87 -227
- package/dist/_node-chunks/chunk-YK4KVMFW.js +18 -0
- package/dist/_node-chunks/chunk-ZZALGOA6.js +4523 -0
- package/dist/_node-chunks/chunk-ZZPBSYA5.js +301 -0
- package/dist/_node-chunks/chunk-ZZSRFAC6.js +45571 -0
- package/dist/_node-chunks/dist-4DWOCZUD.js +121 -0
- package/dist/_node-chunks/globby-AAARUKEU.js +3452 -0
- package/dist/_node-chunks/lib-HEUKGL62.js +366 -0
- package/dist/_node-chunks/mdx-N42X6CFJ-DCVRPS6N.js +14329 -0
- package/dist/_node-chunks/p-limit-F5ZKJ6WZ.js +116 -0
- package/dist/_node-chunks/plugin-7YY7JXCH.js +123 -0
- package/dist/_node-chunks/{plugin-6ZPCS4LI.js → plugin-SZP3CW6W.js} +36 -56
- package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-TGKNDPO6.js +46623 -0
- package/dist/_node-chunks/webpack-mock-plugin-LNTZZFBE.js +92 -0
- package/dist/actions/decorator.js +21 -42
- package/dist/actions/index.js +3 -3
- package/dist/babel/index.d.ts +671 -335
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +592 -1546
- package/dist/bin/dispatcher.js +26 -37
- package/dist/bin/loader.js +23 -34
- package/dist/channels/index.js +98 -234
- package/dist/cli/index.js +1951 -5308
- package/dist/client-logger/index.js +31 -61
- package/dist/common/index.js +20 -20
- package/dist/components/index.js +4211 -8586
- package/dist/core-events/index.js +2 -66
- package/dist/core-server/index.js +3054 -7290
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +1806 -3427
- package/dist/core-server/presets/common-override-preset.js +31 -60
- package/dist/core-server/presets/common-preset.js +434 -924
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +15 -19
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +12 -17
- package/dist/csf/index.js +534 -1179
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -6
- package/dist/highlight/index.js +2 -2
- package/dist/instrumenter/index.js +199 -415
- package/dist/manager/globals-runtime.js +24150 -47364
- package/dist/manager/globals.js +2 -3
- package/dist/manager/runtime.js +3961 -8373
- package/dist/manager-api/index.js +1231 -2425
- package/dist/manager-errors.d.ts +3 -0
- package/dist/manager-errors.js +3 -3
- package/dist/node-logger/index.js +1253 -2601
- package/dist/preview/globals.js +2 -3
- package/dist/preview/runtime.js +10364 -21990
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/preview-api/index.js +13 -13
- package/dist/preview-errors.d.ts +3 -0
- package/dist/preview-errors.js +4 -4
- package/dist/router/index.js +347 -899
- package/dist/server-errors.d.ts +3 -0
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +5860 -11645
- package/dist/theming/create.js +4 -4
- package/dist/theming/index.d.ts +3363 -2597
- package/dist/theming/index.js +490 -1086
- package/dist/types/index.js +2 -11
- package/dist/viewport/index.js +3 -3
- package/package.json +5 -5
- package/dist/_browser-chunks/Color-FQNEU7YS.js +0 -1695
- package/dist/_browser-chunks/WithTooltip-6NHN2GXF.js +0 -2343
- package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
- package/dist/_browser-chunks/chunk-AW46NMGV.js +0 -1308
- package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
- package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
- package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
- package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
- package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
- package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
- package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
- package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
- package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
- package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
- package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
- package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
- package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
- package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
- package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
- package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
- package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
- package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
- package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
- package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
- package/dist/_node-chunks/camelcase-QALD4XFE.js +0 -18
- package/dist/_node-chunks/chunk-2XY53ALL.js +0 -420
- package/dist/_node-chunks/chunk-3CBQMG2A.js +0 -6712
- package/dist/_node-chunks/chunk-3WDAPZYQ.js +0 -28
- package/dist/_node-chunks/chunk-4ZB555EJ.js +0 -697
- package/dist/_node-chunks/chunk-52DXKXY3.js +0 -4272
- package/dist/_node-chunks/chunk-5OVB4A6F.js +0 -69
- package/dist/_node-chunks/chunk-AGHGNXGH.js +0 -18
- package/dist/_node-chunks/chunk-B23X5ZCK.js +0 -1531
- package/dist/_node-chunks/chunk-B2DAHWJK.js +0 -220
- package/dist/_node-chunks/chunk-CC4PW5MJ.js +0 -34
- package/dist/_node-chunks/chunk-D7NIZELR.js +0 -2256
- package/dist/_node-chunks/chunk-DO5Q3H4L.js +0 -1250
- package/dist/_node-chunks/chunk-ECK7WVFX.js +0 -304
- package/dist/_node-chunks/chunk-EUH3NHXA.js +0 -79
- package/dist/_node-chunks/chunk-FOQHPHCV.js +0 -1657
- package/dist/_node-chunks/chunk-G6EL47NS.js +0 -111
- package/dist/_node-chunks/chunk-GFLS4TJB.js +0 -90
- package/dist/_node-chunks/chunk-J3XZKWHE.js +0 -1586
- package/dist/_node-chunks/chunk-LE63EHJ5.js +0 -1518
- package/dist/_node-chunks/chunk-M47XA42S.js +0 -4741
- package/dist/_node-chunks/chunk-OOI74AL3.js +0 -61
- package/dist/_node-chunks/chunk-PRJHT3GJ.js +0 -61
- package/dist/_node-chunks/chunk-Q52PVUSU.js +0 -101
- package/dist/_node-chunks/chunk-SDCF5RNN.js +0 -1198
- package/dist/_node-chunks/chunk-UJ5SJ23M.js +0 -5029
- package/dist/_node-chunks/chunk-UPHK4ETU.js +0 -64658
- package/dist/_node-chunks/chunk-V7VURIPB.js +0 -1544
- package/dist/_node-chunks/dist-6TXHNR5C.js +0 -175
- package/dist/_node-chunks/globby-PBTV6PX6.js +0 -5222
- package/dist/_node-chunks/lib-4RTDZVGX.js +0 -518
- package/dist/_node-chunks/mdx-N42X6CFJ-COWEH7KR.js +0 -22017
- package/dist/_node-chunks/p-limit-PBVZQOFY.js +0 -168
- package/dist/_node-chunks/plugin-EOZKYZAG.js +0 -159
- package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-35HMSMR5.js +0 -69102
- package/dist/_node-chunks/webpack-mock-plugin-GT3MA5E2.js +0 -124
package/dist/theming/index.js
CHANGED
|
@@ -9,50 +9,31 @@ import {
|
|
|
9
9
|
mkColor,
|
|
10
10
|
themes,
|
|
11
11
|
typography
|
|
12
|
-
} from "../_browser-chunks/chunk-
|
|
12
|
+
} from "../_browser-chunks/chunk-L4RMQ7D7.js";
|
|
13
13
|
import {
|
|
14
14
|
curriedOpacify$1
|
|
15
|
-
} from "../_browser-chunks/chunk-
|
|
15
|
+
} from "../_browser-chunks/chunk-AXG2BOBL.js";
|
|
16
16
|
import {
|
|
17
17
|
_extends
|
|
18
|
-
} from "../_browser-chunks/chunk-
|
|
18
|
+
} from "../_browser-chunks/chunk-CHUV5WSW.js";
|
|
19
19
|
import {
|
|
20
20
|
require_memoizerific
|
|
21
|
-
} from "../_browser-chunks/chunk-
|
|
21
|
+
} from "../_browser-chunks/chunk-WJYERY3R.js";
|
|
22
22
|
import {
|
|
23
23
|
dedent
|
|
24
|
-
} from "../_browser-chunks/chunk-
|
|
24
|
+
} from "../_browser-chunks/chunk-JP7NCOJX.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
|
-
__name,
|
|
28
27
|
__toESM
|
|
29
|
-
} from "../_browser-chunks/chunk-
|
|
28
|
+
} from "../_browser-chunks/chunk-A242L54C.js";
|
|
30
29
|
|
|
31
30
|
// ../node_modules/react-is/cjs/react-is.production.min.js
|
|
32
31
|
var require_react_is_production_min = __commonJS({
|
|
33
32
|
"../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
34
33
|
"use strict";
|
|
35
|
-
var b = "function"
|
|
36
|
-
var c = b ? Symbol.for("react.element") : 60103;
|
|
37
|
-
var d = b ? Symbol.for("react.portal") : 60106;
|
|
38
|
-
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
39
|
-
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
40
|
-
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
41
|
-
var h = b ? Symbol.for("react.provider") : 60109;
|
|
42
|
-
var k = b ? Symbol.for("react.context") : 60110;
|
|
43
|
-
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
44
|
-
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
45
|
-
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
46
|
-
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
47
|
-
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
48
|
-
var r = b ? Symbol.for("react.memo") : 60115;
|
|
49
|
-
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
50
|
-
var v = b ? Symbol.for("react.block") : 60121;
|
|
51
|
-
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
52
|
-
var x = b ? Symbol.for("react.responder") : 60118;
|
|
53
|
-
var y = b ? Symbol.for("react.scope") : 60119;
|
|
34
|
+
var b = typeof Symbol == "function" && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
54
35
|
function z(a) {
|
|
55
|
-
if ("object"
|
|
36
|
+
if (typeof a == "object" && a !== null) {
|
|
56
37
|
var u = a.$$typeof;
|
|
57
38
|
switch (u) {
|
|
58
39
|
case c:
|
|
@@ -81,11 +62,9 @@ var require_react_is_production_min = __commonJS({
|
|
|
81
62
|
}
|
|
82
63
|
}
|
|
83
64
|
}
|
|
84
|
-
__name(z, "z");
|
|
85
65
|
function A(a) {
|
|
86
66
|
return z(a) === m;
|
|
87
67
|
}
|
|
88
|
-
__name(A, "A");
|
|
89
68
|
exports.AsyncMode = l;
|
|
90
69
|
exports.ConcurrentMode = m;
|
|
91
70
|
exports.ContextConsumer = k;
|
|
@@ -110,7 +89,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
110
89
|
return z(a) === h;
|
|
111
90
|
};
|
|
112
91
|
exports.isElement = function(a) {
|
|
113
|
-
return "object"
|
|
92
|
+
return typeof a == "object" && a !== null && a.$$typeof === c;
|
|
114
93
|
};
|
|
115
94
|
exports.isForwardRef = function(a) {
|
|
116
95
|
return z(a) === n;
|
|
@@ -137,7 +116,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
137
116
|
return z(a) === p;
|
|
138
117
|
};
|
|
139
118
|
exports.isValidElementType = function(a) {
|
|
140
|
-
return "string"
|
|
119
|
+
return typeof a == "string" || typeof a == "function" || a === e || a === m || a === g || a === f || a === p || a === q || typeof a == "object" && a !== null && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
141
120
|
};
|
|
142
121
|
exports.typeOf = z;
|
|
143
122
|
}
|
|
@@ -147,169 +126,87 @@ var require_react_is_production_min = __commonJS({
|
|
|
147
126
|
var require_react_is_development = __commonJS({
|
|
148
127
|
"../node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
149
128
|
"use strict";
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
case REACT_FRAGMENT_TYPE:
|
|
187
|
-
case REACT_PROFILER_TYPE:
|
|
188
|
-
case REACT_STRICT_MODE_TYPE:
|
|
189
|
-
case REACT_SUSPENSE_TYPE:
|
|
190
|
-
return type;
|
|
191
|
-
default:
|
|
192
|
-
var $$typeofType = type && type.$$typeof;
|
|
193
|
-
switch ($$typeofType) {
|
|
194
|
-
case REACT_CONTEXT_TYPE:
|
|
195
|
-
case REACT_FORWARD_REF_TYPE:
|
|
196
|
-
case REACT_LAZY_TYPE:
|
|
197
|
-
case REACT_MEMO_TYPE:
|
|
198
|
-
case REACT_PROVIDER_TYPE:
|
|
199
|
-
return $$typeofType;
|
|
200
|
-
default:
|
|
201
|
-
return $$typeof;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
case REACT_PORTAL_TYPE:
|
|
205
|
-
return $$typeof;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return void 0;
|
|
209
|
-
}
|
|
210
|
-
__name(typeOf, "typeOf");
|
|
211
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
212
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
213
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
214
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
215
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
216
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
217
|
-
var Fragment4 = REACT_FRAGMENT_TYPE;
|
|
218
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
219
|
-
var Memo = REACT_MEMO_TYPE;
|
|
220
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
221
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
222
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
223
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
224
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
225
|
-
function isAsyncMode(object) {
|
|
226
|
-
{
|
|
227
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
228
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
229
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
230
|
-
}
|
|
129
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
130
|
+
"use strict";
|
|
131
|
+
var hasSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111, REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112, REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113, REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120, REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115, REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116, REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121, REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117, REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118, REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
132
|
+
function isValidElementType(type) {
|
|
133
|
+
return typeof type == "string" || typeof type == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
134
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
135
|
+
}
|
|
136
|
+
function typeOf(object) {
|
|
137
|
+
if (typeof object == "object" && object !== null) {
|
|
138
|
+
var $$typeof = object.$$typeof;
|
|
139
|
+
switch ($$typeof) {
|
|
140
|
+
case REACT_ELEMENT_TYPE:
|
|
141
|
+
var type = object.type;
|
|
142
|
+
switch (type) {
|
|
143
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
144
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
145
|
+
case REACT_FRAGMENT_TYPE:
|
|
146
|
+
case REACT_PROFILER_TYPE:
|
|
147
|
+
case REACT_STRICT_MODE_TYPE:
|
|
148
|
+
case REACT_SUSPENSE_TYPE:
|
|
149
|
+
return type;
|
|
150
|
+
default:
|
|
151
|
+
var $$typeofType = type && type.$$typeof;
|
|
152
|
+
switch ($$typeofType) {
|
|
153
|
+
case REACT_CONTEXT_TYPE:
|
|
154
|
+
case REACT_FORWARD_REF_TYPE:
|
|
155
|
+
case REACT_LAZY_TYPE:
|
|
156
|
+
case REACT_MEMO_TYPE:
|
|
157
|
+
case REACT_PROVIDER_TYPE:
|
|
158
|
+
return $$typeofType;
|
|
159
|
+
default:
|
|
160
|
+
return $$typeof;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
case REACT_PORTAL_TYPE:
|
|
164
|
+
return $$typeof;
|
|
231
165
|
}
|
|
232
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
233
|
-
}
|
|
234
|
-
__name(isAsyncMode, "isAsyncMode");
|
|
235
|
-
function isConcurrentMode(object) {
|
|
236
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
237
|
-
}
|
|
238
|
-
__name(isConcurrentMode, "isConcurrentMode");
|
|
239
|
-
function isContextConsumer(object) {
|
|
240
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
241
|
-
}
|
|
242
|
-
__name(isContextConsumer, "isContextConsumer");
|
|
243
|
-
function isContextProvider(object) {
|
|
244
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
245
|
-
}
|
|
246
|
-
__name(isContextProvider, "isContextProvider");
|
|
247
|
-
function isElement(object) {
|
|
248
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
249
166
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
exports.Profiler = Profiler;
|
|
294
|
-
exports.StrictMode = StrictMode;
|
|
295
|
-
exports.Suspense = Suspense;
|
|
296
|
-
exports.isAsyncMode = isAsyncMode;
|
|
297
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
298
|
-
exports.isContextConsumer = isContextConsumer;
|
|
299
|
-
exports.isContextProvider = isContextProvider;
|
|
300
|
-
exports.isElement = isElement;
|
|
301
|
-
exports.isForwardRef = isForwardRef;
|
|
302
|
-
exports.isFragment = isFragment;
|
|
303
|
-
exports.isLazy = isLazy;
|
|
304
|
-
exports.isMemo = isMemo;
|
|
305
|
-
exports.isPortal = isPortal;
|
|
306
|
-
exports.isProfiler = isProfiler;
|
|
307
|
-
exports.isStrictMode = isStrictMode;
|
|
308
|
-
exports.isSuspense = isSuspense;
|
|
309
|
-
exports.isValidElementType = isValidElementType;
|
|
310
|
-
exports.typeOf = typeOf;
|
|
311
|
-
})();
|
|
312
|
-
}
|
|
167
|
+
}
|
|
168
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE, ConcurrentMode = REACT_CONCURRENT_MODE_TYPE, ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment4 = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = !1;
|
|
169
|
+
function isAsyncMode(object) {
|
|
170
|
+
return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
171
|
+
}
|
|
172
|
+
function isConcurrentMode(object) {
|
|
173
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
174
|
+
}
|
|
175
|
+
function isContextConsumer(object) {
|
|
176
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
177
|
+
}
|
|
178
|
+
function isContextProvider(object) {
|
|
179
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
180
|
+
}
|
|
181
|
+
function isElement(object) {
|
|
182
|
+
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
183
|
+
}
|
|
184
|
+
function isForwardRef(object) {
|
|
185
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
186
|
+
}
|
|
187
|
+
function isFragment(object) {
|
|
188
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
189
|
+
}
|
|
190
|
+
function isLazy(object) {
|
|
191
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
192
|
+
}
|
|
193
|
+
function isMemo(object) {
|
|
194
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
195
|
+
}
|
|
196
|
+
function isPortal(object) {
|
|
197
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
198
|
+
}
|
|
199
|
+
function isProfiler(object) {
|
|
200
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
201
|
+
}
|
|
202
|
+
function isStrictMode(object) {
|
|
203
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
204
|
+
}
|
|
205
|
+
function isSuspense(object) {
|
|
206
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
207
|
+
}
|
|
208
|
+
exports.AsyncMode = AsyncMode, exports.ConcurrentMode = ConcurrentMode, exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element, exports.ForwardRef = ForwardRef, exports.Fragment = Fragment4, exports.Lazy = Lazy, exports.Memo = Memo, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer, exports.isContextProvider = isContextProvider, exports.isElement = isElement, exports.isForwardRef = isForwardRef, exports.isFragment = isFragment, exports.isLazy = isLazy, exports.isMemo = isMemo, exports.isPortal = isPortal, exports.isProfiler = isProfiler, exports.isStrictMode = isStrictMode, exports.isSuspense = isSuspense, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf;
|
|
209
|
+
})();
|
|
313
210
|
}
|
|
314
211
|
});
|
|
315
212
|
|
|
@@ -317,11 +214,7 @@ var require_react_is_development = __commonJS({
|
|
|
317
214
|
var require_react_is = __commonJS({
|
|
318
215
|
"../node_modules/react-is/index.js"(exports, module) {
|
|
319
216
|
"use strict";
|
|
320
|
-
|
|
321
|
-
module.exports = require_react_is_production_min();
|
|
322
|
-
} else {
|
|
323
|
-
module.exports = require_react_is_development();
|
|
324
|
-
}
|
|
217
|
+
process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
|
|
325
218
|
}
|
|
326
219
|
});
|
|
327
220
|
|
|
@@ -329,88 +222,67 @@ var require_react_is = __commonJS({
|
|
|
329
222
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
330
223
|
"../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
331
224
|
"use strict";
|
|
332
|
-
var reactIs = require_react_is()
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
displayName: true,
|
|
367
|
-
propTypes: true,
|
|
368
|
-
type: true
|
|
369
|
-
};
|
|
370
|
-
var TYPE_STATICS = {};
|
|
225
|
+
var reactIs = require_react_is(), REACT_STATICS = {
|
|
226
|
+
childContextTypes: !0,
|
|
227
|
+
contextType: !0,
|
|
228
|
+
contextTypes: !0,
|
|
229
|
+
defaultProps: !0,
|
|
230
|
+
displayName: !0,
|
|
231
|
+
getDefaultProps: !0,
|
|
232
|
+
getDerivedStateFromError: !0,
|
|
233
|
+
getDerivedStateFromProps: !0,
|
|
234
|
+
mixins: !0,
|
|
235
|
+
propTypes: !0,
|
|
236
|
+
type: !0
|
|
237
|
+
}, KNOWN_STATICS = {
|
|
238
|
+
name: !0,
|
|
239
|
+
length: !0,
|
|
240
|
+
prototype: !0,
|
|
241
|
+
caller: !0,
|
|
242
|
+
callee: !0,
|
|
243
|
+
arguments: !0,
|
|
244
|
+
arity: !0
|
|
245
|
+
}, FORWARD_REF_STATICS = {
|
|
246
|
+
$$typeof: !0,
|
|
247
|
+
render: !0,
|
|
248
|
+
defaultProps: !0,
|
|
249
|
+
displayName: !0,
|
|
250
|
+
propTypes: !0
|
|
251
|
+
}, MEMO_STATICS = {
|
|
252
|
+
$$typeof: !0,
|
|
253
|
+
compare: !0,
|
|
254
|
+
defaultProps: !0,
|
|
255
|
+
displayName: !0,
|
|
256
|
+
propTypes: !0,
|
|
257
|
+
type: !0
|
|
258
|
+
}, TYPE_STATICS = {};
|
|
371
259
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
372
260
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
373
261
|
function getStatics(component) {
|
|
374
|
-
|
|
375
|
-
return MEMO_STATICS;
|
|
376
|
-
}
|
|
377
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
262
|
+
return reactIs.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS;
|
|
378
263
|
}
|
|
379
|
-
|
|
380
|
-
var defineProperty = Object.defineProperty;
|
|
381
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
382
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
383
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
384
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
385
|
-
var objectPrototype = Object.prototype;
|
|
264
|
+
var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype;
|
|
386
265
|
function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
|
|
387
|
-
if (typeof sourceComponent
|
|
266
|
+
if (typeof sourceComponent != "string") {
|
|
388
267
|
if (objectPrototype) {
|
|
389
268
|
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
390
|
-
|
|
391
|
-
hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
|
|
392
|
-
}
|
|
269
|
+
inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
|
|
393
270
|
}
|
|
394
271
|
var keys = getOwnPropertyNames(sourceComponent);
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
var targetStatics = getStatics(targetComponent);
|
|
399
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
400
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
272
|
+
getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent)));
|
|
273
|
+
for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys.length; ++i) {
|
|
401
274
|
var key = keys[i];
|
|
402
275
|
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
403
276
|
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
404
277
|
try {
|
|
405
278
|
defineProperty(targetComponent, key, descriptor);
|
|
406
|
-
} catch
|
|
279
|
+
} catch {
|
|
407
280
|
}
|
|
408
281
|
}
|
|
409
282
|
}
|
|
410
283
|
}
|
|
411
284
|
return targetComponent;
|
|
412
285
|
}
|
|
413
|
-
__name(hoistNonReactStatics2, "hoistNonReactStatics");
|
|
414
286
|
module.exports = hoistNonReactStatics2;
|
|
415
287
|
}
|
|
416
288
|
});
|
|
@@ -420,196 +292,117 @@ import * as React2 from "react";
|
|
|
420
292
|
import { useContext as useContext2, forwardRef as forwardRef2 } from "react";
|
|
421
293
|
|
|
422
294
|
// ../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
423
|
-
var isDevelopment =
|
|
295
|
+
var isDevelopment = !1;
|
|
424
296
|
function sheetForTag(tag) {
|
|
425
|
-
if (tag.sheet)
|
|
297
|
+
if (tag.sheet)
|
|
426
298
|
return tag.sheet;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
if (document.styleSheets[i].ownerNode === tag) {
|
|
299
|
+
for (var i = 0; i < document.styleSheets.length; i++)
|
|
300
|
+
if (document.styleSheets[i].ownerNode === tag)
|
|
430
301
|
return document.styleSheets[i];
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
return void 0;
|
|
434
302
|
}
|
|
435
|
-
__name(sheetForTag, "sheetForTag");
|
|
436
303
|
function createStyleElement(options) {
|
|
437
304
|
var tag = document.createElement("style");
|
|
438
|
-
tag.setAttribute("data-emotion", options.key);
|
|
439
|
-
if (options.nonce !== void 0) {
|
|
440
|
-
tag.setAttribute("nonce", options.nonce);
|
|
441
|
-
}
|
|
442
|
-
tag.appendChild(document.createTextNode(""));
|
|
443
|
-
tag.setAttribute("data-s", "");
|
|
444
|
-
return tag;
|
|
305
|
+
return tag.setAttribute("data-emotion", options.key), options.nonce !== void 0 && tag.setAttribute("nonce", options.nonce), tag.appendChild(document.createTextNode("")), tag.setAttribute("data-s", ""), tag;
|
|
445
306
|
}
|
|
446
|
-
|
|
447
|
-
var StyleSheet = function() {
|
|
307
|
+
var StyleSheet = (function() {
|
|
448
308
|
function StyleSheet2(options) {
|
|
449
309
|
var _this = this;
|
|
450
310
|
this._insertTag = function(tag) {
|
|
451
311
|
var before;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
before = _this.insertionPoint.nextSibling;
|
|
455
|
-
} else if (_this.prepend) {
|
|
456
|
-
before = _this.container.firstChild;
|
|
457
|
-
} else {
|
|
458
|
-
before = _this.before;
|
|
459
|
-
}
|
|
460
|
-
} else {
|
|
461
|
-
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
462
|
-
}
|
|
463
|
-
_this.container.insertBefore(tag, before);
|
|
464
|
-
_this.tags.push(tag);
|
|
465
|
-
};
|
|
466
|
-
this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy;
|
|
467
|
-
this.tags = [];
|
|
468
|
-
this.ctr = 0;
|
|
469
|
-
this.nonce = options.nonce;
|
|
470
|
-
this.key = options.key;
|
|
471
|
-
this.container = options.container;
|
|
472
|
-
this.prepend = options.prepend;
|
|
473
|
-
this.insertionPoint = options.insertionPoint;
|
|
474
|
-
this.before = null;
|
|
312
|
+
_this.tags.length === 0 ? _this.insertionPoint ? before = _this.insertionPoint.nextSibling : _this.prepend ? before = _this.container.firstChild : before = _this.before : before = _this.tags[_this.tags.length - 1].nextSibling, _this.container.insertBefore(tag, before), _this.tags.push(tag);
|
|
313
|
+
}, this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy, this.tags = [], this.ctr = 0, this.nonce = options.nonce, this.key = options.key, this.container = options.container, this.prepend = options.prepend, this.insertionPoint = options.insertionPoint, this.before = null;
|
|
475
314
|
}
|
|
476
|
-
__name(StyleSheet2, "StyleSheet");
|
|
477
315
|
var _proto = StyleSheet2.prototype;
|
|
478
|
-
_proto.hydrate =
|
|
316
|
+
return _proto.hydrate = function(nodes) {
|
|
479
317
|
nodes.forEach(this._insertTag);
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
|
|
483
|
-
this._insertTag(createStyleElement(this));
|
|
484
|
-
}
|
|
318
|
+
}, _proto.insert = function(rule) {
|
|
319
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this));
|
|
485
320
|
var tag = this.tags[this.tags.length - 1];
|
|
486
321
|
if (this.isSpeedy) {
|
|
487
322
|
var sheet = sheetForTag(tag);
|
|
488
323
|
try {
|
|
489
324
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
490
|
-
} catch
|
|
325
|
+
} catch {
|
|
491
326
|
}
|
|
492
|
-
} else
|
|
327
|
+
} else
|
|
493
328
|
tag.appendChild(document.createTextNode(rule));
|
|
494
|
-
}
|
|
495
329
|
this.ctr++;
|
|
496
|
-
},
|
|
497
|
-
_proto.flush = /* @__PURE__ */ __name(function flush() {
|
|
330
|
+
}, _proto.flush = function() {
|
|
498
331
|
this.tags.forEach(function(tag) {
|
|
499
332
|
var _tag$parentNode;
|
|
500
333
|
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
501
|
-
});
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
}, "flush");
|
|
505
|
-
return StyleSheet2;
|
|
506
|
-
}();
|
|
334
|
+
}), this.tags = [], this.ctr = 0;
|
|
335
|
+
}, StyleSheet2;
|
|
336
|
+
})();
|
|
507
337
|
|
|
508
338
|
// ../node_modules/stylis/src/Enum.js
|
|
509
|
-
var MS = "-ms-";
|
|
510
|
-
var MOZ = "-moz-";
|
|
511
|
-
var WEBKIT = "-webkit-";
|
|
512
|
-
var COMMENT = "comm";
|
|
513
|
-
var RULESET = "rule";
|
|
514
|
-
var DECLARATION = "decl";
|
|
339
|
+
var MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl";
|
|
515
340
|
var IMPORT = "@import";
|
|
516
341
|
var KEYFRAMES = "@keyframes";
|
|
517
342
|
var LAYER = "@layer";
|
|
518
343
|
|
|
519
344
|
// ../node_modules/stylis/src/Utility.js
|
|
520
|
-
var abs = Math.abs;
|
|
521
|
-
var from = String.fromCharCode;
|
|
522
|
-
var assign = Object.assign;
|
|
345
|
+
var abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
|
|
523
346
|
function hash(value, length2) {
|
|
524
347
|
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
525
348
|
}
|
|
526
|
-
__name(hash, "hash");
|
|
527
349
|
function trim(value) {
|
|
528
350
|
return value.trim();
|
|
529
351
|
}
|
|
530
|
-
__name(trim, "trim");
|
|
531
352
|
function match(value, pattern) {
|
|
532
353
|
return (value = pattern.exec(value)) ? value[0] : value;
|
|
533
354
|
}
|
|
534
|
-
__name(match, "match");
|
|
535
355
|
function replace(value, pattern, replacement) {
|
|
536
356
|
return value.replace(pattern, replacement);
|
|
537
357
|
}
|
|
538
|
-
__name(replace, "replace");
|
|
539
358
|
function indexof(value, search) {
|
|
540
359
|
return value.indexOf(search);
|
|
541
360
|
}
|
|
542
|
-
__name(indexof, "indexof");
|
|
543
361
|
function charat(value, index) {
|
|
544
362
|
return value.charCodeAt(index) | 0;
|
|
545
363
|
}
|
|
546
|
-
__name(charat, "charat");
|
|
547
364
|
function substr(value, begin, end) {
|
|
548
365
|
return value.slice(begin, end);
|
|
549
366
|
}
|
|
550
|
-
__name(substr, "substr");
|
|
551
367
|
function strlen(value) {
|
|
552
368
|
return value.length;
|
|
553
369
|
}
|
|
554
|
-
__name(strlen, "strlen");
|
|
555
370
|
function sizeof(value) {
|
|
556
371
|
return value.length;
|
|
557
372
|
}
|
|
558
|
-
__name(sizeof, "sizeof");
|
|
559
373
|
function append(value, array) {
|
|
560
374
|
return array.push(value), value;
|
|
561
375
|
}
|
|
562
|
-
__name(append, "append");
|
|
563
376
|
function combine(array, callback) {
|
|
564
377
|
return array.map(callback).join("");
|
|
565
378
|
}
|
|
566
|
-
__name(combine, "combine");
|
|
567
379
|
|
|
568
380
|
// ../node_modules/stylis/src/Tokenizer.js
|
|
569
|
-
var line = 1;
|
|
570
|
-
var column = 1;
|
|
571
|
-
var length = 0;
|
|
572
|
-
var position = 0;
|
|
573
|
-
var character = 0;
|
|
574
|
-
var characters = "";
|
|
381
|
+
var line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
|
|
575
382
|
function node(value, root, parent, type, props, children, length2) {
|
|
576
383
|
return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
|
|
577
384
|
}
|
|
578
|
-
__name(node, "node");
|
|
579
385
|
function copy(root, props) {
|
|
580
386
|
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
|
581
387
|
}
|
|
582
|
-
__name(copy, "copy");
|
|
583
388
|
function char() {
|
|
584
389
|
return character;
|
|
585
390
|
}
|
|
586
|
-
__name(char, "char");
|
|
587
391
|
function prev() {
|
|
588
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
589
|
-
if (column--, character === 10)
|
|
590
|
-
column = 1, line--;
|
|
591
|
-
return character;
|
|
392
|
+
return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
|
|
592
393
|
}
|
|
593
|
-
__name(prev, "prev");
|
|
594
394
|
function next() {
|
|
595
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
596
|
-
if (column++, character === 10)
|
|
597
|
-
column = 1, line++;
|
|
598
|
-
return character;
|
|
395
|
+
return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
|
|
599
396
|
}
|
|
600
|
-
__name(next, "next");
|
|
601
397
|
function peek() {
|
|
602
398
|
return charat(characters, position);
|
|
603
399
|
}
|
|
604
|
-
__name(peek, "peek");
|
|
605
400
|
function caret() {
|
|
606
401
|
return position;
|
|
607
402
|
}
|
|
608
|
-
__name(caret, "caret");
|
|
609
403
|
function slice(begin, end) {
|
|
610
404
|
return substr(characters, begin, end);
|
|
611
405
|
}
|
|
612
|
-
__name(slice, "slice");
|
|
613
406
|
function token(type) {
|
|
614
407
|
switch (type) {
|
|
615
408
|
// \0 \t \n \r \s whitespace token
|
|
@@ -648,37 +441,27 @@ function token(type) {
|
|
|
648
441
|
}
|
|
649
442
|
return 0;
|
|
650
443
|
}
|
|
651
|
-
__name(token, "token");
|
|
652
444
|
function alloc(value) {
|
|
653
445
|
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
654
446
|
}
|
|
655
|
-
__name(alloc, "alloc");
|
|
656
447
|
function dealloc(value) {
|
|
657
448
|
return characters = "", value;
|
|
658
449
|
}
|
|
659
|
-
__name(dealloc, "dealloc");
|
|
660
450
|
function delimit(type) {
|
|
661
451
|
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
662
452
|
}
|
|
663
|
-
__name(delimit, "delimit");
|
|
664
453
|
function whitespace(type) {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
next();
|
|
668
|
-
else
|
|
669
|
-
break;
|
|
454
|
+
for (; (character = peek()) && character < 33; )
|
|
455
|
+
next();
|
|
670
456
|
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
671
457
|
}
|
|
672
|
-
__name(whitespace, "whitespace");
|
|
673
458
|
function escaping(index, count) {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
break;
|
|
459
|
+
for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); )
|
|
460
|
+
;
|
|
677
461
|
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
678
462
|
}
|
|
679
|
-
__name(escaping, "escaping");
|
|
680
463
|
function delimiter(type) {
|
|
681
|
-
|
|
464
|
+
for (; next(); )
|
|
682
465
|
switch (character) {
|
|
683
466
|
// ] ) " '
|
|
684
467
|
case type:
|
|
@@ -686,13 +469,11 @@ function delimiter(type) {
|
|
|
686
469
|
// " '
|
|
687
470
|
case 34:
|
|
688
471
|
case 39:
|
|
689
|
-
|
|
690
|
-
delimiter(character);
|
|
472
|
+
type !== 34 && type !== 39 && delimiter(character);
|
|
691
473
|
break;
|
|
692
474
|
// (
|
|
693
475
|
case 40:
|
|
694
|
-
|
|
695
|
-
delimiter(type);
|
|
476
|
+
type === 41 && delimiter(type);
|
|
696
477
|
break;
|
|
697
478
|
// \
|
|
698
479
|
case 92:
|
|
@@ -701,51 +482,29 @@ function delimiter(type) {
|
|
|
701
482
|
}
|
|
702
483
|
return position;
|
|
703
484
|
}
|
|
704
|
-
__name(delimiter, "delimiter");
|
|
705
485
|
function commenter(type, index) {
|
|
706
|
-
|
|
707
|
-
if (type + character ===
|
|
708
|
-
break;
|
|
709
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
486
|
+
for (; next() && type + character !== 57; )
|
|
487
|
+
if (type + character === 84 && peek() === 47)
|
|
710
488
|
break;
|
|
711
489
|
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
712
490
|
}
|
|
713
|
-
__name(commenter, "commenter");
|
|
714
491
|
function identifier(index) {
|
|
715
|
-
|
|
492
|
+
for (; !token(peek()); )
|
|
716
493
|
next();
|
|
717
494
|
return slice(index, position);
|
|
718
495
|
}
|
|
719
|
-
__name(identifier, "identifier");
|
|
720
496
|
|
|
721
497
|
// ../node_modules/stylis/src/Parser.js
|
|
722
498
|
function compile(value) {
|
|
723
499
|
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
724
500
|
}
|
|
725
|
-
__name(compile, "compile");
|
|
726
501
|
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
727
|
-
var index = 0;
|
|
728
|
-
var offset = 0;
|
|
729
|
-
var length2 = pseudo;
|
|
730
|
-
var atrule = 0;
|
|
731
|
-
var property = 0;
|
|
732
|
-
var previous = 0;
|
|
733
|
-
var variable = 1;
|
|
734
|
-
var scanning = 1;
|
|
735
|
-
var ampersand = 1;
|
|
736
|
-
var character2 = 0;
|
|
737
|
-
var type = "";
|
|
738
|
-
var props = rules;
|
|
739
|
-
var children = rulesets;
|
|
740
|
-
var reference = rule;
|
|
741
|
-
var characters2 = type;
|
|
742
|
-
while (scanning)
|
|
502
|
+
for (var index = 0, offset = 0, length2 = pseudo, atrule = 0, property = 0, previous = 0, variable = 1, scanning = 1, ampersand = 1, character2 = 0, type = "", props = rules, children = rulesets, reference = rule, characters2 = type; scanning; )
|
|
743
503
|
switch (previous = character2, character2 = next()) {
|
|
744
504
|
// (
|
|
745
505
|
case 40:
|
|
746
506
|
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
747
|
-
|
|
748
|
-
ampersand = -1;
|
|
507
|
+
indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1);
|
|
749
508
|
break;
|
|
750
509
|
}
|
|
751
510
|
// " ' [
|
|
@@ -790,17 +549,14 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
790
549
|
scanning = 0;
|
|
791
550
|
// ;
|
|
792
551
|
case 59 + offset:
|
|
793
|
-
|
|
794
|
-
if (property > 0 && strlen(characters2) - length2)
|
|
795
|
-
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
552
|
+
ampersand == -1 && (characters2 = replace(characters2, /\f/g, "")), property > 0 && strlen(characters2) - length2 && append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
796
553
|
break;
|
|
797
554
|
// @ ;
|
|
798
555
|
case 59:
|
|
799
556
|
characters2 += ";";
|
|
800
557
|
// { rule/at-rule
|
|
801
558
|
default:
|
|
802
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets)
|
|
803
|
-
if (character2 === 123)
|
|
559
|
+
if (append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets), character2 === 123)
|
|
804
560
|
if (offset === 0)
|
|
805
561
|
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
806
562
|
else
|
|
@@ -839,48 +595,34 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
839
595
|
break;
|
|
840
596
|
// @
|
|
841
597
|
case 64:
|
|
842
|
-
|
|
843
|
-
characters2 += delimit(next());
|
|
844
|
-
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
598
|
+
peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
845
599
|
break;
|
|
846
600
|
// -
|
|
847
601
|
case 45:
|
|
848
|
-
|
|
849
|
-
variable = 0;
|
|
602
|
+
previous === 45 && strlen(characters2) == 2 && (variable = 0);
|
|
850
603
|
}
|
|
851
604
|
}
|
|
852
605
|
return rulesets;
|
|
853
606
|
}
|
|
854
|
-
__name(parse, "parse");
|
|
855
607
|
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
|
|
856
|
-
var post = offset - 1;
|
|
857
|
-
var rule = offset === 0 ? rules : [""];
|
|
858
|
-
var size = sizeof(rule);
|
|
859
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
608
|
+
for (var post = offset - 1, rule = offset === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index; ++i)
|
|
860
609
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
861
|
-
|
|
862
|
-
props[k++] = z;
|
|
610
|
+
(z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z);
|
|
863
611
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
|
|
864
612
|
}
|
|
865
|
-
__name(ruleset, "ruleset");
|
|
866
613
|
function comment(value, root, parent) {
|
|
867
614
|
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
868
615
|
}
|
|
869
|
-
__name(comment, "comment");
|
|
870
616
|
function declaration(value, root, parent, length2) {
|
|
871
617
|
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
872
618
|
}
|
|
873
|
-
__name(declaration, "declaration");
|
|
874
619
|
|
|
875
620
|
// ../node_modules/stylis/src/Serializer.js
|
|
876
621
|
function serialize(children, callback) {
|
|
877
|
-
var output = "";
|
|
878
|
-
var length2 = sizeof(children);
|
|
879
|
-
for (var i = 0; i < length2; i++)
|
|
622
|
+
for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
|
|
880
623
|
output += callback(children[i], i, children, callback) || "";
|
|
881
624
|
return output;
|
|
882
625
|
}
|
|
883
|
-
__name(serialize, "serialize");
|
|
884
626
|
function stringify(element, index, children, callback) {
|
|
885
627
|
switch (element.type) {
|
|
886
628
|
case LAYER:
|
|
@@ -897,142 +639,90 @@ function stringify(element, index, children, callback) {
|
|
|
897
639
|
}
|
|
898
640
|
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
899
641
|
}
|
|
900
|
-
__name(stringify, "stringify");
|
|
901
642
|
|
|
902
643
|
// ../node_modules/stylis/src/Middleware.js
|
|
903
644
|
function middleware(collection) {
|
|
904
645
|
var length2 = sizeof(collection);
|
|
905
646
|
return function(element, index, children, callback) {
|
|
906
|
-
var output = "";
|
|
907
|
-
for (var i = 0; i < length2; i++)
|
|
647
|
+
for (var output = "", i = 0; i < length2; i++)
|
|
908
648
|
output += collection[i](element, index, children, callback) || "";
|
|
909
649
|
return output;
|
|
910
650
|
};
|
|
911
651
|
}
|
|
912
|
-
__name(middleware, "middleware");
|
|
913
652
|
function rulesheet(callback) {
|
|
914
653
|
return function(element) {
|
|
915
|
-
|
|
916
|
-
if (element = element.return)
|
|
917
|
-
callback(element);
|
|
918
|
-
}
|
|
654
|
+
element.root || (element = element.return) && callback(element);
|
|
919
655
|
};
|
|
920
656
|
}
|
|
921
|
-
__name(rulesheet, "rulesheet");
|
|
922
657
|
|
|
923
658
|
// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
|
|
924
|
-
var weakMemoize =
|
|
659
|
+
var weakMemoize = function(func) {
|
|
925
660
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
926
661
|
return function(arg) {
|
|
927
|
-
if (cache.has(arg))
|
|
662
|
+
if (cache.has(arg))
|
|
928
663
|
return cache.get(arg);
|
|
929
|
-
}
|
|
930
664
|
var ret = func(arg);
|
|
931
|
-
cache.set(arg, ret);
|
|
932
|
-
return ret;
|
|
665
|
+
return cache.set(arg, ret), ret;
|
|
933
666
|
};
|
|
934
|
-
}
|
|
667
|
+
};
|
|
935
668
|
|
|
936
669
|
// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
937
670
|
function memoize(fn) {
|
|
938
671
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
939
672
|
return function(arg) {
|
|
940
|
-
|
|
941
|
-
return cache[arg];
|
|
673
|
+
return cache[arg] === void 0 && (cache[arg] = fn(arg)), cache[arg];
|
|
942
674
|
};
|
|
943
675
|
}
|
|
944
|
-
__name(memoize, "memoize");
|
|
945
676
|
|
|
946
677
|
// ../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
947
|
-
var identifierWithPointTracking =
|
|
948
|
-
var previous = 0;
|
|
949
|
-
var character2 = 0;
|
|
950
|
-
while (true) {
|
|
951
|
-
previous = character2;
|
|
952
|
-
character2 = peek();
|
|
953
|
-
if (previous === 38 && character2 === 12) {
|
|
954
|
-
points[index] = 1;
|
|
955
|
-
}
|
|
956
|
-
if (token(character2)) {
|
|
957
|
-
break;
|
|
958
|
-
}
|
|
678
|
+
var identifierWithPointTracking = function(begin, points, index) {
|
|
679
|
+
for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index] = 1), !token(character2); )
|
|
959
680
|
next();
|
|
960
|
-
}
|
|
961
681
|
return slice(begin, position);
|
|
962
|
-
},
|
|
963
|
-
var
|
|
964
|
-
|
|
965
|
-
var character2 = 44;
|
|
966
|
-
do {
|
|
682
|
+
}, toRules = function(parsed, points) {
|
|
683
|
+
var index = -1, character2 = 44;
|
|
684
|
+
do
|
|
967
685
|
switch (token(character2)) {
|
|
968
686
|
case 0:
|
|
969
|
-
|
|
970
|
-
points[index] = 1;
|
|
971
|
-
}
|
|
972
|
-
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
687
|
+
character2 === 38 && peek() === 12 && (points[index] = 1), parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
973
688
|
break;
|
|
974
689
|
case 2:
|
|
975
690
|
parsed[index] += delimit(character2);
|
|
976
691
|
break;
|
|
977
692
|
case 4:
|
|
978
693
|
if (character2 === 44) {
|
|
979
|
-
parsed[++index] = peek() === 58 ? "&\f" : "";
|
|
980
|
-
points[index] = parsed[index].length;
|
|
694
|
+
parsed[++index] = peek() === 58 ? "&\f" : "", points[index] = parsed[index].length;
|
|
981
695
|
break;
|
|
982
696
|
}
|
|
983
697
|
// fallthrough
|
|
984
698
|
default:
|
|
985
699
|
parsed[index] += from(character2);
|
|
986
700
|
}
|
|
987
|
-
|
|
701
|
+
while (character2 = next());
|
|
988
702
|
return parsed;
|
|
989
|
-
},
|
|
990
|
-
var getRules = /* @__PURE__ */ __name(function getRules2(value, points) {
|
|
703
|
+
}, getRules = function(value, points) {
|
|
991
704
|
return dealloc(toRules(alloc(value), points));
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
var compat = /* @__PURE__ */ __name(function compat2(element) {
|
|
995
|
-
if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
705
|
+
}, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) {
|
|
706
|
+
if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
996
707
|
// negative .length indicates that this rule has been already prefixed
|
|
997
|
-
element.length < 1) {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
if (!parent) return;
|
|
1006
|
-
}
|
|
1007
|
-
if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
|
|
1008
|
-
return;
|
|
1009
|
-
}
|
|
1010
|
-
if (isImplicitRule) {
|
|
1011
|
-
return;
|
|
1012
|
-
}
|
|
1013
|
-
fixedElements.set(element, true);
|
|
1014
|
-
var points = [];
|
|
1015
|
-
var rules = getRules(value, points);
|
|
1016
|
-
var parentRules = parent.props;
|
|
1017
|
-
for (var i = 0, k = 0; i < rules.length; i++) {
|
|
1018
|
-
for (var j = 0; j < parentRules.length; j++, k++) {
|
|
1019
|
-
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
708
|
+
element.length < 1)) {
|
|
709
|
+
for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; )
|
|
710
|
+
if (parent = parent.parent, !parent) return;
|
|
711
|
+
if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) {
|
|
712
|
+
fixedElements.set(element, !0);
|
|
713
|
+
for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)
|
|
714
|
+
for (var j = 0; j < parentRules.length; j++, k++)
|
|
715
|
+
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
1020
716
|
}
|
|
1021
717
|
}
|
|
1022
|
-
},
|
|
1023
|
-
var removeLabel = /* @__PURE__ */ __name(function removeLabel2(element) {
|
|
718
|
+
}, removeLabel = function(element) {
|
|
1024
719
|
if (element.type === "decl") {
|
|
1025
720
|
var value = element.value;
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
value.charCodeAt(2) === 98
|
|
1030
|
-
) {
|
|
1031
|
-
element["return"] = "";
|
|
1032
|
-
element.value = "";
|
|
1033
|
-
}
|
|
721
|
+
// charcode for l
|
|
722
|
+
value.charCodeAt(0) === 108 && // charcode for b
|
|
723
|
+
value.charCodeAt(2) === 98 && (element.return = "", element.value = "");
|
|
1034
724
|
}
|
|
1035
|
-
}
|
|
725
|
+
};
|
|
1036
726
|
function prefix2(value, length2) {
|
|
1037
727
|
switch (hash(value, length2)) {
|
|
1038
728
|
// color-adjust
|
|
@@ -1175,92 +865,67 @@ function prefix2(value, length2) {
|
|
|
1175
865
|
}
|
|
1176
866
|
return value;
|
|
1177
867
|
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
return "";
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
868
|
+
var prefixer = function(element, index, children, callback) {
|
|
869
|
+
if (element.length > -1 && !element.return) switch (element.type) {
|
|
870
|
+
case DECLARATION:
|
|
871
|
+
element.return = prefix2(element.value, element.length);
|
|
872
|
+
break;
|
|
873
|
+
case KEYFRAMES:
|
|
874
|
+
return serialize([copy(element, {
|
|
875
|
+
value: replace(element.value, "@", "@" + WEBKIT)
|
|
876
|
+
})], callback);
|
|
877
|
+
case RULESET:
|
|
878
|
+
if (element.length) return combine(element.props, function(value) {
|
|
879
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
880
|
+
// :read-(only|write)
|
|
881
|
+
case ":read-only":
|
|
882
|
+
case ":read-write":
|
|
883
|
+
return serialize([copy(element, {
|
|
884
|
+
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
885
|
+
})], callback);
|
|
886
|
+
// :placeholder
|
|
887
|
+
case "::placeholder":
|
|
888
|
+
return serialize([copy(element, {
|
|
889
|
+
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
890
|
+
}), copy(element, {
|
|
891
|
+
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
892
|
+
}), copy(element, {
|
|
893
|
+
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
894
|
+
})], callback);
|
|
895
|
+
}
|
|
896
|
+
return "";
|
|
897
|
+
});
|
|
1211
898
|
}
|
|
1212
|
-
},
|
|
1213
|
-
var defaultStylisPlugins = [prefixer];
|
|
1214
|
-
var createCache = /* @__PURE__ */ __name(function createCache2(options) {
|
|
899
|
+
}, defaultStylisPlugins = [prefixer], createCache = function(options) {
|
|
1215
900
|
var key = options.key;
|
|
1216
901
|
if (key === "css") {
|
|
1217
902
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1218
903
|
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
1219
904
|
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
|
1220
|
-
|
|
1221
|
-
return;
|
|
1222
|
-
}
|
|
1223
|
-
document.head.appendChild(node2);
|
|
1224
|
-
node2.setAttribute("data-s", "");
|
|
905
|
+
dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", ""));
|
|
1225
906
|
});
|
|
1226
907
|
}
|
|
1227
|
-
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
for (var i = 1; i < attrib.length; i++) {
|
|
1240
|
-
inserted[attrib[i]] = true;
|
|
1241
|
-
}
|
|
1242
|
-
nodesToHydrate.push(node2);
|
|
1243
|
-
}
|
|
1244
|
-
);
|
|
1245
|
-
}
|
|
1246
|
-
var _insert;
|
|
1247
|
-
var omnipresentPlugins = [compat, removeLabel];
|
|
908
|
+
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = [];
|
|
909
|
+
container = options.container || document.head, Array.prototype.forEach.call(
|
|
910
|
+
// this means we will ignore elements which don't have a space in them which
|
|
911
|
+
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
912
|
+
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
|
913
|
+
function(node2) {
|
|
914
|
+
for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)
|
|
915
|
+
inserted[attrib[i]] = !0;
|
|
916
|
+
nodesToHydrate.push(node2);
|
|
917
|
+
}
|
|
918
|
+
);
|
|
919
|
+
var _insert, omnipresentPlugins = [compat, removeLabel];
|
|
1248
920
|
{
|
|
1249
|
-
var currentSheet
|
|
1250
|
-
var finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
921
|
+
var currentSheet, finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
1251
922
|
currentSheet.insert(rule);
|
|
1252
|
-
})]
|
|
1253
|
-
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
1254
|
-
var stylis = /* @__PURE__ */ __name(function stylis2(styles) {
|
|
923
|
+
})], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles) {
|
|
1255
924
|
return serialize(compile(styles), serializer);
|
|
1256
|
-
}
|
|
1257
|
-
_insert =
|
|
1258
|
-
currentSheet = sheet;
|
|
1259
|
-
|
|
1260
|
-
if (shouldCache) {
|
|
1261
|
-
cache.inserted[serialized.name] = true;
|
|
1262
|
-
}
|
|
1263
|
-
}, "insert");
|
|
925
|
+
};
|
|
926
|
+
_insert = function(selector, serialized, sheet, shouldCache) {
|
|
927
|
+
currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = !0);
|
|
928
|
+
};
|
|
1264
929
|
}
|
|
1265
930
|
var cache = {
|
|
1266
931
|
key,
|
|
@@ -1277,89 +942,65 @@ var createCache = /* @__PURE__ */ __name(function createCache2(options) {
|
|
|
1277
942
|
registered: {},
|
|
1278
943
|
insert: _insert
|
|
1279
944
|
};
|
|
1280
|
-
cache.sheet.hydrate(nodesToHydrate);
|
|
1281
|
-
|
|
1282
|
-
}, "createCache");
|
|
945
|
+
return cache.sheet.hydrate(nodesToHydrate), cache;
|
|
946
|
+
};
|
|
1283
947
|
|
|
1284
948
|
// ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
|
|
1285
|
-
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs())
|
|
1286
|
-
var hoistNonReactStatics = /* @__PURE__ */ __name(function(targetComponent, sourceComponent) {
|
|
949
|
+
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) {
|
|
1287
950
|
return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
|
|
1288
|
-
}
|
|
951
|
+
});
|
|
1289
952
|
|
|
1290
953
|
// ../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
1291
|
-
var isBrowser =
|
|
954
|
+
var isBrowser = !0;
|
|
1292
955
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1293
956
|
var rawClassName = "";
|
|
1294
|
-
classNames.split(" ").forEach(function(className) {
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
} else if (className) {
|
|
1298
|
-
rawClassName += className + " ";
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
|
-
return rawClassName;
|
|
957
|
+
return classNames.split(" ").forEach(function(className) {
|
|
958
|
+
registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " ");
|
|
959
|
+
}), rawClassName;
|
|
1302
960
|
}
|
|
1303
|
-
|
|
1304
|
-
var registerStyles = /* @__PURE__ */ __name(function registerStyles2(cache, serialized, isStringTag) {
|
|
961
|
+
var registerStyles = function(cache, serialized, isStringTag) {
|
|
1305
962
|
var className = cache.key + "-" + serialized.name;
|
|
1306
|
-
if
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
) {
|
|
1318
|
-
cache.registered[className] = serialized.styles;
|
|
1319
|
-
}
|
|
1320
|
-
}, "registerStyles");
|
|
1321
|
-
var insertStyles = /* @__PURE__ */ __name(function insertStyles2(cache, serialized, isStringTag) {
|
|
963
|
+
// we only need to add the styles to the registered cache if the
|
|
964
|
+
// class name could be used further down
|
|
965
|
+
// the tree but if it's a string tag, we know it won't
|
|
966
|
+
// so we don't have to add it to registered cache.
|
|
967
|
+
// this improves memory usage since we can avoid storing the whole style string
|
|
968
|
+
(isStringTag === !1 || // we need to always store it if we're in compat mode and
|
|
969
|
+
// in node since emotion-server relies on whether a style is in
|
|
970
|
+
// the registered cache to know whether a style is global or not
|
|
971
|
+
// also, note that this check will be dead code eliminated in the browser
|
|
972
|
+
isBrowser === !1) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles);
|
|
973
|
+
}, insertStyles = function(cache, serialized, isStringTag) {
|
|
1322
974
|
registerStyles(cache, serialized, isStringTag);
|
|
1323
975
|
var className = cache.key + "-" + serialized.name;
|
|
1324
976
|
if (cache.inserted[serialized.name] === void 0) {
|
|
1325
977
|
var current = serialized;
|
|
1326
|
-
do
|
|
1327
|
-
cache.insert(serialized === current ? "." + className : "", current, cache.sheet,
|
|
1328
|
-
|
|
1329
|
-
} while (current !== void 0);
|
|
978
|
+
do
|
|
979
|
+
cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next;
|
|
980
|
+
while (current !== void 0);
|
|
1330
981
|
}
|
|
1331
|
-
}
|
|
982
|
+
};
|
|
1332
983
|
|
|
1333
984
|
// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
1334
985
|
function murmur2(str) {
|
|
1335
|
-
var h = 0;
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
k
|
|
1339
|
-
k = /* Math.imul(k, m): */
|
|
1340
|
-
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
|
|
1341
|
-
k ^= /* k >>> r: */
|
|
1342
|
-
k >>> 24;
|
|
1343
|
-
h = /* Math.imul(k, m): */
|
|
986
|
+
for (var h = 0, k, i = 0, len = str.length; len >= 4; ++i, len -= 4)
|
|
987
|
+
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
|
|
988
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */
|
|
989
|
+
k >>> 24, h = /* Math.imul(k, m): */
|
|
1344
990
|
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1345
991
|
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1346
|
-
}
|
|
1347
992
|
switch (len) {
|
|
1348
993
|
case 3:
|
|
1349
994
|
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
1350
995
|
case 2:
|
|
1351
996
|
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
1352
997
|
case 1:
|
|
1353
|
-
h ^= str.charCodeAt(i) & 255
|
|
1354
|
-
h = /* Math.imul(h, m): */
|
|
998
|
+
h ^= str.charCodeAt(i) & 255, h = /* Math.imul(h, m): */
|
|
1355
999
|
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1356
1000
|
}
|
|
1357
|
-
h ^= h >>> 13
|
|
1358
|
-
h
|
|
1359
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1360
|
-
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1001
|
+
return h ^= h >>> 13, h = /* Math.imul(h, m): */
|
|
1002
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16), ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1361
1003
|
}
|
|
1362
|
-
__name(murmur2, "murmur2");
|
|
1363
1004
|
|
|
1364
1005
|
// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
1365
1006
|
var unitlessKeys = {
|
|
@@ -1414,75 +1055,54 @@ var unitlessKeys = {
|
|
|
1414
1055
|
};
|
|
1415
1056
|
|
|
1416
1057
|
// ../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
1417
|
-
var isDevelopment2 =
|
|
1418
|
-
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1419
|
-
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1420
|
-
var isCustomProperty = /* @__PURE__ */ __name(function isCustomProperty2(property) {
|
|
1058
|
+
var isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
|
|
1421
1059
|
return property.charCodeAt(1) === 45;
|
|
1422
|
-
},
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
}, "isProcessableValue");
|
|
1426
|
-
var processStyleName = memoize(function(styleName) {
|
|
1060
|
+
}, isProcessableValue = function(value) {
|
|
1061
|
+
return value != null && typeof value != "boolean";
|
|
1062
|
+
}, processStyleName = memoize(function(styleName) {
|
|
1427
1063
|
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
1428
|
-
})
|
|
1429
|
-
var processStyleValue = /* @__PURE__ */ __name(function processStyleValue2(key, value) {
|
|
1064
|
+
}), processStyleValue = function(key, value) {
|
|
1430
1065
|
switch (key) {
|
|
1431
1066
|
case "animation":
|
|
1432
|
-
case "animationName":
|
|
1433
|
-
if (typeof value
|
|
1067
|
+
case "animationName":
|
|
1068
|
+
if (typeof value == "string")
|
|
1434
1069
|
return value.replace(animationRegex, function(match2, p1, p2) {
|
|
1435
|
-
cursor = {
|
|
1070
|
+
return cursor = {
|
|
1436
1071
|
name: p1,
|
|
1437
1072
|
styles: p2,
|
|
1438
1073
|
next: cursor
|
|
1439
|
-
};
|
|
1440
|
-
return p1;
|
|
1074
|
+
}, p1;
|
|
1441
1075
|
});
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
1076
|
}
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
}
|
|
1448
|
-
return value;
|
|
1449
|
-
}, "processStyleValue");
|
|
1450
|
-
var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1077
|
+
return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value;
|
|
1078
|
+
}, noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1451
1079
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1452
|
-
if (interpolation == null)
|
|
1080
|
+
if (interpolation == null)
|
|
1453
1081
|
return "";
|
|
1454
|
-
}
|
|
1455
1082
|
var componentSelector = interpolation;
|
|
1456
|
-
if (componentSelector.__emotion_styles !== void 0)
|
|
1083
|
+
if (componentSelector.__emotion_styles !== void 0)
|
|
1457
1084
|
return componentSelector;
|
|
1458
|
-
}
|
|
1459
1085
|
switch (typeof interpolation) {
|
|
1460
|
-
case "boolean":
|
|
1086
|
+
case "boolean":
|
|
1461
1087
|
return "";
|
|
1462
|
-
}
|
|
1463
1088
|
case "object": {
|
|
1464
1089
|
var keyframes2 = interpolation;
|
|
1465
|
-
if (keyframes2.anim === 1)
|
|
1466
|
-
cursor = {
|
|
1090
|
+
if (keyframes2.anim === 1)
|
|
1091
|
+
return cursor = {
|
|
1467
1092
|
name: keyframes2.name,
|
|
1468
1093
|
styles: keyframes2.styles,
|
|
1469
1094
|
next: cursor
|
|
1470
|
-
};
|
|
1471
|
-
return keyframes2.name;
|
|
1472
|
-
}
|
|
1095
|
+
}, keyframes2.name;
|
|
1473
1096
|
var serializedStyles = interpolation;
|
|
1474
1097
|
if (serializedStyles.styles !== void 0) {
|
|
1475
1098
|
var next2 = serializedStyles.next;
|
|
1476
|
-
if (next2 !== void 0)
|
|
1477
|
-
|
|
1099
|
+
if (next2 !== void 0)
|
|
1100
|
+
for (; next2 !== void 0; )
|
|
1478
1101
|
cursor = {
|
|
1479
1102
|
name: next2.name,
|
|
1480
1103
|
styles: next2.styles,
|
|
1481
1104
|
next: cursor
|
|
1482
|
-
};
|
|
1483
|
-
next2 = next2.next;
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1105
|
+
}, next2 = next2.next;
|
|
1486
1106
|
var styles = serializedStyles.styles + ";";
|
|
1487
1107
|
return styles;
|
|
1488
1108
|
}
|
|
@@ -1490,49 +1110,36 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1490
1110
|
}
|
|
1491
1111
|
case "function": {
|
|
1492
1112
|
if (mergedProps !== void 0) {
|
|
1493
|
-
var previousCursor = cursor;
|
|
1494
|
-
|
|
1495
|
-
cursor = previousCursor;
|
|
1496
|
-
return handleInterpolation(mergedProps, registered, result);
|
|
1113
|
+
var previousCursor = cursor, result = interpolation(mergedProps);
|
|
1114
|
+
return cursor = previousCursor, handleInterpolation(mergedProps, registered, result);
|
|
1497
1115
|
}
|
|
1498
1116
|
break;
|
|
1499
1117
|
}
|
|
1500
1118
|
}
|
|
1501
1119
|
var asString = interpolation;
|
|
1502
|
-
if (registered == null)
|
|
1120
|
+
if (registered == null)
|
|
1503
1121
|
return asString;
|
|
1504
|
-
}
|
|
1505
1122
|
var cached = registered[asString];
|
|
1506
1123
|
return cached !== void 0 ? cached : asString;
|
|
1507
1124
|
}
|
|
1508
|
-
__name(handleInterpolation, "handleInterpolation");
|
|
1509
1125
|
function createStringFromObject(mergedProps, registered, obj) {
|
|
1510
1126
|
var string = "";
|
|
1511
|
-
if (Array.isArray(obj))
|
|
1512
|
-
for (var i = 0; i < obj.length; i++)
|
|
1127
|
+
if (Array.isArray(obj))
|
|
1128
|
+
for (var i = 0; i < obj.length; i++)
|
|
1513
1129
|
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
1514
|
-
|
|
1515
|
-
} else {
|
|
1130
|
+
else
|
|
1516
1131
|
for (var key in obj) {
|
|
1517
1132
|
var value = obj[key];
|
|
1518
|
-
if (typeof value
|
|
1133
|
+
if (typeof value != "object") {
|
|
1519
1134
|
var asString = value;
|
|
1520
|
-
|
|
1521
|
-
string += key + "{" + registered[asString] + "}";
|
|
1522
|
-
} else if (isProcessableValue(asString)) {
|
|
1523
|
-
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
1524
|
-
}
|
|
1135
|
+
registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";");
|
|
1525
1136
|
} else {
|
|
1526
|
-
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2)
|
|
1137
|
+
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2)
|
|
1527
1138
|
throw new Error(noComponentSelectorMessage);
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
} else {
|
|
1139
|
+
if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0))
|
|
1140
|
+
for (var _i = 0; _i < value.length; _i++)
|
|
1141
|
+
isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";");
|
|
1142
|
+
else {
|
|
1536
1143
|
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
1537
1144
|
switch (key) {
|
|
1538
1145
|
case "animation":
|
|
@@ -1540,47 +1147,35 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1540
1147
|
string += processStyleName(key) + ":" + interpolated + ";";
|
|
1541
1148
|
break;
|
|
1542
1149
|
}
|
|
1543
|
-
default:
|
|
1150
|
+
default:
|
|
1544
1151
|
string += key + "{" + interpolated + "}";
|
|
1545
|
-
}
|
|
1546
1152
|
}
|
|
1547
1153
|
}
|
|
1548
1154
|
}
|
|
1549
1155
|
}
|
|
1550
|
-
}
|
|
1551
1156
|
return string;
|
|
1552
1157
|
}
|
|
1553
|
-
|
|
1554
|
-
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
|
|
1555
|
-
var cursor;
|
|
1158
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g, cursor;
|
|
1556
1159
|
function serializeStyles(args, registered, mergedProps) {
|
|
1557
|
-
if (args.length === 1 && typeof args[0]
|
|
1160
|
+
if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0)
|
|
1558
1161
|
return args[0];
|
|
1559
|
-
|
|
1560
|
-
var stringMode = true;
|
|
1561
|
-
var styles = "";
|
|
1162
|
+
var stringMode = !0, styles = "";
|
|
1562
1163
|
cursor = void 0;
|
|
1563
1164
|
var strings = args[0];
|
|
1564
|
-
if (strings == null || strings.raw === void 0)
|
|
1565
|
-
stringMode =
|
|
1566
|
-
|
|
1567
|
-
} else {
|
|
1165
|
+
if (strings == null || strings.raw === void 0)
|
|
1166
|
+
stringMode = !1, styles += handleInterpolation(mergedProps, registered, strings);
|
|
1167
|
+
else {
|
|
1568
1168
|
var asTemplateStringsArr = strings;
|
|
1569
1169
|
styles += asTemplateStringsArr[0];
|
|
1570
1170
|
}
|
|
1571
|
-
for (var i = 1; i < args.length; i++)
|
|
1572
|
-
styles += handleInterpolation(mergedProps, registered, args[i])
|
|
1573
|
-
if (stringMode) {
|
|
1171
|
+
for (var i = 1; i < args.length; i++)
|
|
1172
|
+
if (styles += handleInterpolation(mergedProps, registered, args[i]), stringMode) {
|
|
1574
1173
|
var templateStringsArr = strings;
|
|
1575
1174
|
styles += templateStringsArr[i];
|
|
1576
1175
|
}
|
|
1577
|
-
}
|
|
1578
1176
|
labelPattern.lastIndex = 0;
|
|
1579
|
-
var identifierName = "";
|
|
1580
|
-
var match2;
|
|
1581
|
-
while ((match2 = labelPattern.exec(styles)) !== null) {
|
|
1177
|
+
for (var identifierName = "", match2; (match2 = labelPattern.exec(styles)) !== null; )
|
|
1582
1178
|
identifierName += "-" + match2[1];
|
|
1583
|
-
}
|
|
1584
1179
|
var name = murmur2(styles) + identifierName;
|
|
1585
1180
|
return {
|
|
1586
1181
|
name,
|
|
@@ -1588,302 +1183,198 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
1588
1183
|
next: cursor
|
|
1589
1184
|
};
|
|
1590
1185
|
}
|
|
1591
|
-
__name(serializeStyles, "serializeStyles");
|
|
1592
1186
|
|
|
1593
1187
|
// ../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
|
|
1594
1188
|
import * as React from "react";
|
|
1595
|
-
var syncFallback =
|
|
1189
|
+
var syncFallback = function(create3) {
|
|
1596
1190
|
return create3();
|
|
1597
|
-
},
|
|
1598
|
-
var useInsertionEffect2 = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
|
|
1599
|
-
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback;
|
|
1600
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
|
|
1191
|
+
}, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
|
|
1601
1192
|
|
|
1602
1193
|
// ../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
|
|
1603
|
-
var isDevelopment3 =
|
|
1604
|
-
var EmotionCacheContext = React2.createContext(
|
|
1194
|
+
var isDevelopment3 = !1, EmotionCacheContext = React2.createContext(
|
|
1605
1195
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1606
1196
|
// because this module is primarily intended for the browser and node
|
|
1607
1197
|
// but it's also required in react native and similar environments sometimes
|
|
1608
1198
|
// and we could have a special build just for that
|
|
1609
1199
|
// but this is much easier and the native packages
|
|
1610
1200
|
// might use a different theme context in the future anyway
|
|
1611
|
-
typeof HTMLElement
|
|
1201
|
+
typeof HTMLElement < "u" ? createCache({
|
|
1612
1202
|
key: "css"
|
|
1613
1203
|
}) : null
|
|
1614
|
-
);
|
|
1615
|
-
var
|
|
1616
|
-
var withEmotionCache = /* @__PURE__ */ __name(function withEmotionCache2(func) {
|
|
1204
|
+
), CacheProvider = EmotionCacheContext.Provider;
|
|
1205
|
+
var withEmotionCache = function(func) {
|
|
1617
1206
|
return forwardRef2(function(props, ref) {
|
|
1618
1207
|
var cache = useContext2(EmotionCacheContext);
|
|
1619
1208
|
return func(props, cache, ref);
|
|
1620
1209
|
});
|
|
1621
|
-
},
|
|
1622
|
-
var ThemeContext = React2.createContext({});
|
|
1623
|
-
var useTheme = /* @__PURE__ */ __name(function useTheme2() {
|
|
1210
|
+
}, ThemeContext = React2.createContext({}), useTheme = function() {
|
|
1624
1211
|
return React2.useContext(ThemeContext);
|
|
1625
|
-
},
|
|
1626
|
-
|
|
1627
|
-
if (typeof theme === "function") {
|
|
1212
|
+
}, getTheme = function(outerTheme, theme) {
|
|
1213
|
+
if (typeof theme == "function") {
|
|
1628
1214
|
var mergedTheme = theme(outerTheme);
|
|
1629
1215
|
return mergedTheme;
|
|
1630
1216
|
}
|
|
1631
1217
|
return _extends({}, outerTheme, theme);
|
|
1632
|
-
},
|
|
1633
|
-
var createCacheWithTheme = weakMemoize(function(outerTheme) {
|
|
1218
|
+
}, createCacheWithTheme = weakMemoize(function(outerTheme) {
|
|
1634
1219
|
return weakMemoize(function(theme) {
|
|
1635
1220
|
return getTheme(outerTheme, theme);
|
|
1636
1221
|
});
|
|
1637
|
-
})
|
|
1638
|
-
var ThemeProvider = /* @__PURE__ */ __name(function ThemeProvider2(props) {
|
|
1222
|
+
}), ThemeProvider = function(props) {
|
|
1639
1223
|
var theme = React2.useContext(ThemeContext);
|
|
1640
|
-
|
|
1641
|
-
theme = createCacheWithTheme(theme)(props.theme);
|
|
1642
|
-
}
|
|
1643
|
-
return React2.createElement(ThemeContext.Provider, {
|
|
1224
|
+
return props.theme !== theme && (theme = createCacheWithTheme(theme)(props.theme)), React2.createElement(ThemeContext.Provider, {
|
|
1644
1225
|
value: theme
|
|
1645
1226
|
}, props.children);
|
|
1646
|
-
}
|
|
1227
|
+
};
|
|
1647
1228
|
function withTheme(Component) {
|
|
1648
|
-
var componentName = Component.displayName || Component.name || "Component"
|
|
1649
|
-
var WithTheme = React2.forwardRef(/* @__PURE__ */ __name(function render(props, ref) {
|
|
1229
|
+
var componentName = Component.displayName || Component.name || "Component", WithTheme = React2.forwardRef(function(props, ref) {
|
|
1650
1230
|
var theme = React2.useContext(ThemeContext);
|
|
1651
1231
|
return React2.createElement(Component, _extends({
|
|
1652
1232
|
theme,
|
|
1653
1233
|
ref
|
|
1654
1234
|
}, props));
|
|
1655
|
-
}
|
|
1656
|
-
WithTheme.displayName = "WithTheme(" + componentName + ")";
|
|
1657
|
-
return hoistNonReactStatics(WithTheme, Component);
|
|
1235
|
+
});
|
|
1236
|
+
return WithTheme.displayName = "WithTheme(" + componentName + ")", hoistNonReactStatics(WithTheme, Component);
|
|
1658
1237
|
}
|
|
1659
|
-
|
|
1660
|
-
var hasOwn = {}.hasOwnProperty;
|
|
1661
|
-
var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
|
|
1662
|
-
var createEmotionProps = /* @__PURE__ */ __name(function createEmotionProps2(type, props) {
|
|
1238
|
+
var hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type, props) {
|
|
1663
1239
|
var newProps = {};
|
|
1664
|
-
for (var _key in props)
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1669
|
-
newProps[typePropName] = type;
|
|
1670
|
-
return newProps;
|
|
1671
|
-
}, "createEmotionProps");
|
|
1672
|
-
var Insertion = /* @__PURE__ */ __name(function Insertion2(_ref) {
|
|
1240
|
+
for (var _key in props)
|
|
1241
|
+
hasOwn.call(props, _key) && (newProps[_key] = props[_key]);
|
|
1242
|
+
return newProps[typePropName] = type, newProps;
|
|
1243
|
+
}, Insertion = function(_ref) {
|
|
1673
1244
|
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
1674
|
-
registerStyles(cache, serialized, isStringTag)
|
|
1675
|
-
useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1245
|
+
return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1676
1246
|
return insertStyles(cache, serialized, isStringTag);
|
|
1677
|
-
});
|
|
1678
|
-
|
|
1679
|
-
}, "Insertion");
|
|
1680
|
-
var Emotion = withEmotionCache(function(props, cache, ref) {
|
|
1247
|
+
}), null;
|
|
1248
|
+
}, Emotion = withEmotionCache(function(props, cache, ref) {
|
|
1681
1249
|
var cssProp = props.css;
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
var WrappedComponent = props[typePropName];
|
|
1686
|
-
var registeredStyles = [cssProp];
|
|
1687
|
-
var className = "";
|
|
1688
|
-
if (typeof props.className === "string") {
|
|
1689
|
-
className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
1690
|
-
} else if (props.className != null) {
|
|
1691
|
-
className = props.className + " ";
|
|
1692
|
-
}
|
|
1250
|
+
typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]);
|
|
1251
|
+
var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = "";
|
|
1252
|
+
typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " ");
|
|
1693
1253
|
var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
|
|
1694
1254
|
className += cache.key + "-" + serialized.name;
|
|
1695
1255
|
var newProps = {};
|
|
1696
|
-
for (var _key2 in props)
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
newProps.className = className;
|
|
1702
|
-
if (ref) {
|
|
1703
|
-
newProps.ref = ref;
|
|
1704
|
-
}
|
|
1705
|
-
return React2.createElement(React2.Fragment, null, React2.createElement(Insertion, {
|
|
1256
|
+
for (var _key2 in props)
|
|
1257
|
+
hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment3 && (newProps[_key2] = props[_key2]);
|
|
1258
|
+
return newProps.className = className, ref && (newProps.ref = ref), React2.createElement(React2.Fragment, null, React2.createElement(Insertion, {
|
|
1706
1259
|
cache,
|
|
1707
1260
|
serialized,
|
|
1708
|
-
isStringTag: typeof WrappedComponent
|
|
1261
|
+
isStringTag: typeof WrappedComponent == "string"
|
|
1709
1262
|
}), React2.createElement(WrappedComponent, newProps));
|
|
1710
|
-
});
|
|
1711
|
-
var Emotion$1 = Emotion;
|
|
1263
|
+
}), Emotion$1 = Emotion;
|
|
1712
1264
|
|
|
1713
1265
|
// ../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
1714
1266
|
import * as React3 from "react";
|
|
1715
|
-
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs())
|
|
1716
|
-
var jsx = /* @__PURE__ */ __name(function jsx2(type, props) {
|
|
1267
|
+
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type, props) {
|
|
1717
1268
|
var args = arguments;
|
|
1718
|
-
if (props == null || !hasOwn.call(props, "css"))
|
|
1269
|
+
if (props == null || !hasOwn.call(props, "css"))
|
|
1719
1270
|
return React3.createElement.apply(void 0, args);
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
var
|
|
1723
|
-
createElementArgArray[0] = Emotion$1;
|
|
1724
|
-
createElementArgArray[1] = createEmotionProps(type, props);
|
|
1725
|
-
for (var i = 2; i < argsLength; i++) {
|
|
1271
|
+
var argsLength = args.length, createElementArgArray = new Array(argsLength);
|
|
1272
|
+
createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type, props);
|
|
1273
|
+
for (var i = 2; i < argsLength; i++)
|
|
1726
1274
|
createElementArgArray[i] = args[i];
|
|
1727
|
-
}
|
|
1728
1275
|
return React3.createElement.apply(null, createElementArgArray);
|
|
1729
|
-
}
|
|
1276
|
+
};
|
|
1730
1277
|
(function(_jsx) {
|
|
1731
1278
|
var JSX;
|
|
1732
|
-
|
|
1733
|
-
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
1279
|
+
JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}));
|
|
1734
1280
|
})(jsx || (jsx = {}));
|
|
1735
1281
|
var Global = withEmotionCache(function(props, cache) {
|
|
1736
|
-
var styles = props.styles;
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
useInsertionEffectWithLayoutFallback(function() {
|
|
1740
|
-
var key = cache.key + "-global";
|
|
1741
|
-
var sheet = new cache.sheet.constructor({
|
|
1282
|
+
var styles = props.styles, serialized = serializeStyles([styles], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef();
|
|
1283
|
+
return useInsertionEffectWithLayoutFallback(function() {
|
|
1284
|
+
var key = cache.key + "-global", sheet = new cache.sheet.constructor({
|
|
1742
1285
|
key,
|
|
1743
1286
|
nonce: cache.sheet.nonce,
|
|
1744
1287
|
container: cache.sheet.container,
|
|
1745
1288
|
speedy: cache.sheet.isSpeedy
|
|
1746
|
-
});
|
|
1747
|
-
|
|
1748
|
-
var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
|
|
1749
|
-
if (cache.sheet.tags.length) {
|
|
1750
|
-
sheet.before = cache.sheet.tags[0];
|
|
1751
|
-
}
|
|
1752
|
-
if (node2 !== null) {
|
|
1753
|
-
rehydrating = true;
|
|
1754
|
-
node2.setAttribute("data-emotion", key);
|
|
1755
|
-
sheet.hydrate([node2]);
|
|
1756
|
-
}
|
|
1757
|
-
sheetRef.current = [sheet, rehydrating];
|
|
1758
|
-
return function() {
|
|
1289
|
+
}), rehydrating = !1, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
|
|
1290
|
+
return cache.sheet.tags.length && (sheet.before = cache.sheet.tags[0]), node2 !== null && (rehydrating = !0, node2.setAttribute("data-emotion", key), sheet.hydrate([node2])), sheetRef.current = [sheet, rehydrating], function() {
|
|
1759
1291
|
sheet.flush();
|
|
1760
1292
|
};
|
|
1761
|
-
}, [cache])
|
|
1762
|
-
|
|
1763
|
-
var sheetRefCurrent = sheetRef.current;
|
|
1764
|
-
var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
|
1293
|
+
}, [cache]), useInsertionEffectWithLayoutFallback(function() {
|
|
1294
|
+
var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
|
1765
1295
|
if (rehydrating) {
|
|
1766
|
-
sheetRefCurrent[1] =
|
|
1296
|
+
sheetRefCurrent[1] = !1;
|
|
1767
1297
|
return;
|
|
1768
1298
|
}
|
|
1769
|
-
if (serialized.next !== void 0) {
|
|
1770
|
-
insertStyles(cache, serialized.next, true);
|
|
1771
|
-
}
|
|
1772
|
-
if (sheet.tags.length) {
|
|
1299
|
+
if (serialized.next !== void 0 && insertStyles(cache, serialized.next, !0), sheet.tags.length) {
|
|
1773
1300
|
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
1774
|
-
sheet.before = element;
|
|
1775
|
-
sheet.flush();
|
|
1301
|
+
sheet.before = element, sheet.flush();
|
|
1776
1302
|
}
|
|
1777
|
-
cache.insert("", serialized, sheet,
|
|
1778
|
-
}, [cache, serialized.name]);
|
|
1779
|
-
return null;
|
|
1303
|
+
cache.insert("", serialized, sheet, !1);
|
|
1304
|
+
}, [cache, serialized.name]), null;
|
|
1780
1305
|
});
|
|
1781
1306
|
function css() {
|
|
1782
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
1307
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
1783
1308
|
args[_key] = arguments[_key];
|
|
1784
|
-
}
|
|
1785
1309
|
return serializeStyles(args);
|
|
1786
1310
|
}
|
|
1787
|
-
__name(css, "css");
|
|
1788
1311
|
function keyframes() {
|
|
1789
|
-
var insertable = css.apply(void 0, arguments);
|
|
1790
|
-
var name = "animation-" + insertable.name;
|
|
1312
|
+
var insertable = css.apply(void 0, arguments), name = "animation-" + insertable.name;
|
|
1791
1313
|
return {
|
|
1792
1314
|
name,
|
|
1793
1315
|
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
1794
1316
|
anim: 1,
|
|
1795
|
-
toString:
|
|
1317
|
+
toString: function() {
|
|
1796
1318
|
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
1797
|
-
}
|
|
1319
|
+
}
|
|
1798
1320
|
};
|
|
1799
1321
|
}
|
|
1800
|
-
|
|
1801
|
-
var
|
|
1802
|
-
var len = args.length;
|
|
1803
|
-
var i = 0;
|
|
1804
|
-
var cls = "";
|
|
1805
|
-
for (; i < len; i++) {
|
|
1322
|
+
var classnames = function classnames2(args) {
|
|
1323
|
+
for (var len = args.length, i = 0, cls = ""; i < len; i++) {
|
|
1806
1324
|
var arg = args[i];
|
|
1807
|
-
if (arg
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
toAdd && (toAdd += " ");
|
|
1820
|
-
toAdd += k;
|
|
1821
|
-
}
|
|
1325
|
+
if (arg != null) {
|
|
1326
|
+
var toAdd = void 0;
|
|
1327
|
+
switch (typeof arg) {
|
|
1328
|
+
case "boolean":
|
|
1329
|
+
break;
|
|
1330
|
+
case "object": {
|
|
1331
|
+
if (Array.isArray(arg))
|
|
1332
|
+
toAdd = classnames2(arg);
|
|
1333
|
+
else {
|
|
1334
|
+
toAdd = "";
|
|
1335
|
+
for (var k in arg)
|
|
1336
|
+
arg[k] && k && (toAdd && (toAdd += " "), toAdd += k);
|
|
1822
1337
|
}
|
|
1338
|
+
break;
|
|
1823
1339
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
default: {
|
|
1827
|
-
toAdd = arg;
|
|
1340
|
+
default:
|
|
1341
|
+
toAdd = arg;
|
|
1828
1342
|
}
|
|
1829
|
-
|
|
1830
|
-
if (toAdd) {
|
|
1831
|
-
cls && (cls += " ");
|
|
1832
|
-
cls += toAdd;
|
|
1343
|
+
toAdd && (cls && (cls += " "), cls += toAdd);
|
|
1833
1344
|
}
|
|
1834
1345
|
}
|
|
1835
1346
|
return cls;
|
|
1836
|
-
}
|
|
1347
|
+
};
|
|
1837
1348
|
function merge(registered, css2, className) {
|
|
1838
|
-
var registeredStyles = [];
|
|
1839
|
-
|
|
1840
|
-
if (registeredStyles.length < 2) {
|
|
1841
|
-
return className;
|
|
1842
|
-
}
|
|
1843
|
-
return rawClassName + css2(registeredStyles);
|
|
1349
|
+
var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
1350
|
+
return registeredStyles.length < 2 ? className : rawClassName + css2(registeredStyles);
|
|
1844
1351
|
}
|
|
1845
|
-
|
|
1846
|
-
var Insertion3 = /* @__PURE__ */ __name(function Insertion4(_ref) {
|
|
1352
|
+
var Insertion3 = function(_ref) {
|
|
1847
1353
|
var cache = _ref.cache, serializedArr = _ref.serializedArr;
|
|
1848
|
-
useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1849
|
-
for (var i = 0; i < serializedArr.length; i++)
|
|
1850
|
-
insertStyles(cache, serializedArr[i],
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
var ClassNames = withEmotionCache(function(props, cache) {
|
|
1856
|
-
var hasRendered = false;
|
|
1857
|
-
var serializedArr = [];
|
|
1858
|
-
var css2 = /* @__PURE__ */ __name(function css3() {
|
|
1859
|
-
if (hasRendered && isDevelopment3) {
|
|
1354
|
+
return useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1355
|
+
for (var i = 0; i < serializedArr.length; i++)
|
|
1356
|
+
insertStyles(cache, serializedArr[i], !1);
|
|
1357
|
+
}), null;
|
|
1358
|
+
}, ClassNames = withEmotionCache(function(props, cache) {
|
|
1359
|
+
var hasRendered = !1, serializedArr = [], css2 = function() {
|
|
1360
|
+
if (hasRendered && isDevelopment3)
|
|
1860
1361
|
throw new Error("css can only be used during render");
|
|
1861
|
-
|
|
1862
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1362
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
1863
1363
|
args[_key] = arguments[_key];
|
|
1864
|
-
}
|
|
1865
1364
|
var serialized = serializeStyles(args, cache.registered);
|
|
1866
|
-
serializedArr.push(serialized);
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
}, "css");
|
|
1870
|
-
var cx = /* @__PURE__ */ __name(function cx2() {
|
|
1871
|
-
if (hasRendered && isDevelopment3) {
|
|
1365
|
+
return serializedArr.push(serialized), registerStyles(cache, serialized, !1), cache.key + "-" + serialized.name;
|
|
1366
|
+
}, cx = function() {
|
|
1367
|
+
if (hasRendered && isDevelopment3)
|
|
1872
1368
|
throw new Error("cx can only be used during render");
|
|
1873
|
-
|
|
1874
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1369
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
|
|
1875
1370
|
args[_key2] = arguments[_key2];
|
|
1876
|
-
}
|
|
1877
1371
|
return merge(cache.registered, css2, classnames(args));
|
|
1878
|
-
},
|
|
1879
|
-
var content = {
|
|
1372
|
+
}, content = {
|
|
1880
1373
|
css: css2,
|
|
1881
1374
|
cx,
|
|
1882
1375
|
theme: React3.useContext(ThemeContext)
|
|
1883
|
-
};
|
|
1884
|
-
|
|
1885
|
-
hasRendered = true;
|
|
1886
|
-
return React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
|
|
1376
|
+
}, ele = props.children(content);
|
|
1377
|
+
return hasRendered = !0, React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, {
|
|
1887
1378
|
cache,
|
|
1888
1379
|
serializedArr
|
|
1889
1380
|
}), ele);
|
|
@@ -1893,8 +1384,7 @@ var ClassNames = withEmotionCache(function(props, cache) {
|
|
|
1893
1384
|
import * as React4 from "react";
|
|
1894
1385
|
|
|
1895
1386
|
// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
1896
|
-
var reactPropsRegex = /^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))
|
|
1897
|
-
var isPropValid = memoize(
|
|
1387
|
+
var reactPropsRegex = /^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/, isPropValid = memoize(
|
|
1898
1388
|
function(prop) {
|
|
1899
1389
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
1900
1390
|
}
|
|
@@ -1902,18 +1392,14 @@ var isPropValid = memoize(
|
|
|
1902
1392
|
);
|
|
1903
1393
|
|
|
1904
1394
|
// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
|
|
1905
|
-
var isDevelopment4 =
|
|
1906
|
-
var testOmitPropsOnStringTag = isPropValid;
|
|
1907
|
-
var testOmitPropsOnComponent = /* @__PURE__ */ __name(function testOmitPropsOnComponent2(key) {
|
|
1395
|
+
var isDevelopment4 = !1, testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) {
|
|
1908
1396
|
return key !== "theme";
|
|
1909
|
-
},
|
|
1910
|
-
|
|
1911
|
-
return typeof tag === "string" && // 96 is one less than the char code
|
|
1397
|
+
}, getDefaultShouldForwardProp = function(tag) {
|
|
1398
|
+
return typeof tag == "string" && // 96 is one less than the char code
|
|
1912
1399
|
// for "a" so this is checking that
|
|
1913
1400
|
// it's a lowercase character
|
|
1914
1401
|
tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
|
|
1915
|
-
},
|
|
1916
|
-
var composeShouldForwardProps = /* @__PURE__ */ __name(function composeShouldForwardProps2(tag, options, isReal) {
|
|
1402
|
+
}, composeShouldForwardProps = function(tag, options, isReal) {
|
|
1917
1403
|
var shouldForwardProp;
|
|
1918
1404
|
if (options) {
|
|
1919
1405
|
var optionsShouldForwardProp = options.shouldForwardProp;
|
|
@@ -1921,111 +1407,58 @@ var composeShouldForwardProps = /* @__PURE__ */ __name(function composeShouldFor
|
|
|
1921
1407
|
return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
|
|
1922
1408
|
} : optionsShouldForwardProp;
|
|
1923
1409
|
}
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
}
|
|
1927
|
-
return shouldForwardProp;
|
|
1928
|
-
}, "composeShouldForwardProps");
|
|
1929
|
-
var Insertion5 = /* @__PURE__ */ __name(function Insertion6(_ref) {
|
|
1410
|
+
return typeof shouldForwardProp != "function" && isReal && (shouldForwardProp = tag.__emotion_forwardProp), shouldForwardProp;
|
|
1411
|
+
}, Insertion5 = function(_ref) {
|
|
1930
1412
|
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
1931
|
-
registerStyles(cache, serialized, isStringTag)
|
|
1932
|
-
useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1413
|
+
return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1933
1414
|
return insertStyles(cache, serialized, isStringTag);
|
|
1934
|
-
});
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
var
|
|
1939
|
-
var baseTag = isReal && tag.__emotion_base || tag;
|
|
1940
|
-
var identifierName;
|
|
1941
|
-
var targetClassName;
|
|
1942
|
-
if (options !== void 0) {
|
|
1943
|
-
identifierName = options.label;
|
|
1944
|
-
targetClassName = options.target;
|
|
1945
|
-
}
|
|
1946
|
-
var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
|
|
1947
|
-
var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
|
|
1948
|
-
var shouldUseAs = !defaultShouldForwardProp("as");
|
|
1415
|
+
}), null;
|
|
1416
|
+
}, createStyled = function createStyled2(tag, options) {
|
|
1417
|
+
var isReal = tag.__emotion_real === tag, baseTag = isReal && tag.__emotion_base || tag, identifierName, targetClassName;
|
|
1418
|
+
options !== void 0 && (identifierName = options.label, targetClassName = options.target);
|
|
1419
|
+
var shouldForwardProp = composeShouldForwardProps(tag, options, isReal), defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), shouldUseAs = !defaultShouldForwardProp("as");
|
|
1949
1420
|
return function() {
|
|
1950
|
-
var args = arguments;
|
|
1951
|
-
|
|
1952
|
-
if (identifierName !== void 0) {
|
|
1953
|
-
styles.push("label:" + identifierName + ";");
|
|
1954
|
-
}
|
|
1955
|
-
if (args[0] == null || args[0].raw === void 0) {
|
|
1421
|
+
var args = arguments, styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
|
|
1422
|
+
if (identifierName !== void 0 && styles.push("label:" + identifierName + ";"), args[0] == null || args[0].raw === void 0)
|
|
1956
1423
|
styles.push.apply(styles, args);
|
|
1957
|
-
|
|
1424
|
+
else {
|
|
1958
1425
|
var templateStringsArr = args[0];
|
|
1959
1426
|
styles.push(templateStringsArr[0]);
|
|
1960
|
-
var len = args.length;
|
|
1961
|
-
var i = 1;
|
|
1962
|
-
for (; i < len; i++) {
|
|
1427
|
+
for (var len = args.length, i = 1; i < len; i++)
|
|
1963
1428
|
styles.push(args[i], templateStringsArr[i]);
|
|
1964
|
-
}
|
|
1965
1429
|
}
|
|
1966
1430
|
var Styled = withEmotionCache(function(props, cache, ref) {
|
|
1967
|
-
var FinalTag = shouldUseAs && props.as || baseTag;
|
|
1968
|
-
var className = "";
|
|
1969
|
-
var classInterpolations = [];
|
|
1970
|
-
var mergedProps = props;
|
|
1431
|
+
var FinalTag = shouldUseAs && props.as || baseTag, className = "", classInterpolations = [], mergedProps = props;
|
|
1971
1432
|
if (props.theme == null) {
|
|
1972
1433
|
mergedProps = {};
|
|
1973
|
-
for (var key in props)
|
|
1434
|
+
for (var key in props)
|
|
1974
1435
|
mergedProps[key] = props[key];
|
|
1975
|
-
}
|
|
1976
1436
|
mergedProps.theme = React4.useContext(ThemeContext);
|
|
1977
1437
|
}
|
|
1978
|
-
|
|
1979
|
-
className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
|
|
1980
|
-
} else if (props.className != null) {
|
|
1981
|
-
className = props.className + " ";
|
|
1982
|
-
}
|
|
1438
|
+
typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, classInterpolations, props.className) : props.className != null && (className = props.className + " ");
|
|
1983
1439
|
var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
|
|
1984
|
-
className += cache.key + "-" + serialized.name;
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
var newProps = {};
|
|
1990
|
-
for (var _key in props) {
|
|
1991
|
-
if (shouldUseAs && _key === "as") continue;
|
|
1992
|
-
if (finalShouldForwardProp(_key)) {
|
|
1993
|
-
newProps[_key] = props[_key];
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
newProps.className = className;
|
|
1997
|
-
if (ref) {
|
|
1998
|
-
newProps.ref = ref;
|
|
1999
|
-
}
|
|
2000
|
-
return React4.createElement(React4.Fragment, null, React4.createElement(Insertion5, {
|
|
1440
|
+
className += cache.key + "-" + serialized.name, targetClassName !== void 0 && (className += " " + targetClassName);
|
|
1441
|
+
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp, newProps = {};
|
|
1442
|
+
for (var _key in props)
|
|
1443
|
+
shouldUseAs && _key === "as" || finalShouldForwardProp(_key) && (newProps[_key] = props[_key]);
|
|
1444
|
+
return newProps.className = className, ref && (newProps.ref = ref), React4.createElement(React4.Fragment, null, React4.createElement(Insertion5, {
|
|
2001
1445
|
cache,
|
|
2002
1446
|
serialized,
|
|
2003
|
-
isStringTag: typeof FinalTag
|
|
1447
|
+
isStringTag: typeof FinalTag == "string"
|
|
2004
1448
|
}), React4.createElement(FinalTag, newProps));
|
|
2005
1449
|
});
|
|
2006
|
-
Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
Styled.
|
|
2011
|
-
Styled.__emotion_forwardProp = shouldForwardProp;
|
|
2012
|
-
Object.defineProperty(Styled, "toString", {
|
|
2013
|
-
value: /* @__PURE__ */ __name(function value() {
|
|
2014
|
-
if (targetClassName === void 0 && isDevelopment4) {
|
|
2015
|
-
return "NO_COMPONENT_SELECTOR";
|
|
2016
|
-
}
|
|
2017
|
-
return "." + targetClassName;
|
|
2018
|
-
}, "value")
|
|
2019
|
-
});
|
|
2020
|
-
Styled.withComponent = function(nextTag, nextOptions) {
|
|
1450
|
+
return Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag == "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")", Styled.defaultProps = tag.defaultProps, Styled.__emotion_real = Styled, Styled.__emotion_base = baseTag, Styled.__emotion_styles = styles, Styled.__emotion_forwardProp = shouldForwardProp, Object.defineProperty(Styled, "toString", {
|
|
1451
|
+
value: function() {
|
|
1452
|
+
return targetClassName === void 0 && isDevelopment4 ? "NO_COMPONENT_SELECTOR" : "." + targetClassName;
|
|
1453
|
+
}
|
|
1454
|
+
}), Styled.withComponent = function(nextTag, nextOptions) {
|
|
2021
1455
|
var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
|
|
2022
|
-
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions,
|
|
1456
|
+
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, !0)
|
|
2023
1457
|
}));
|
|
2024
1458
|
return newStyled.apply(void 0, styles);
|
|
2025
|
-
};
|
|
2026
|
-
return Styled;
|
|
1459
|
+
}, Styled;
|
|
2027
1460
|
};
|
|
2028
|
-
}
|
|
1461
|
+
};
|
|
2029
1462
|
|
|
2030
1463
|
// ../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
|
|
2031
1464
|
import "react";
|
|
@@ -2165,15 +1598,13 @@ var tags = [
|
|
|
2165
1598
|
"svg",
|
|
2166
1599
|
"text",
|
|
2167
1600
|
"tspan"
|
|
2168
|
-
];
|
|
2169
|
-
var styled = createStyled.bind(null);
|
|
1601
|
+
], styled = createStyled.bind(null);
|
|
2170
1602
|
tags.forEach(function(tagName) {
|
|
2171
1603
|
styled[tagName] = styled(tagName);
|
|
2172
1604
|
});
|
|
2173
1605
|
|
|
2174
1606
|
// src/theming/global.ts
|
|
2175
|
-
var import_memoizerific = __toESM(require_memoizerific(), 1)
|
|
2176
|
-
var createReset = (0, import_memoizerific.default)(1)(
|
|
1607
|
+
var import_memoizerific = __toESM(require_memoizerific(), 1), createReset = (0, import_memoizerific.default)(1)(
|
|
2177
1608
|
({ typography: typography2 }) => ({
|
|
2178
1609
|
body: {
|
|
2179
1610
|
fontFamily: typography2.fonts.base,
|
|
@@ -2236,13 +1667,12 @@ var createReset = (0, import_memoizerific.default)(1)(
|
|
|
2236
1667
|
margin: "1rem 0"
|
|
2237
1668
|
}
|
|
2238
1669
|
})
|
|
2239
|
-
)
|
|
2240
|
-
var createGlobal = (0, import_memoizerific.default)(1)(({
|
|
1670
|
+
), createGlobal = (0, import_memoizerific.default)(1)(({
|
|
2241
1671
|
color: color2,
|
|
2242
1672
|
background: background2,
|
|
2243
1673
|
typography: typography2
|
|
2244
1674
|
}) => {
|
|
2245
|
-
|
|
1675
|
+
let resetStyles = createReset({ typography: typography2 });
|
|
2246
1676
|
return {
|
|
2247
1677
|
...resetStyles,
|
|
2248
1678
|
body: {
|
|
@@ -2283,36 +1713,30 @@ var createGlobal = (0, import_memoizerific.default)(1)(({
|
|
|
2283
1713
|
// src/theming/animation.ts
|
|
2284
1714
|
var easing = {
|
|
2285
1715
|
rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)"
|
|
2286
|
-
}
|
|
2287
|
-
var rotate360 = keyframes`
|
|
1716
|
+
}, rotate360 = keyframes`
|
|
2288
1717
|
from {
|
|
2289
1718
|
transform: rotate(0deg);
|
|
2290
1719
|
}
|
|
2291
1720
|
to {
|
|
2292
1721
|
transform: rotate(360deg);
|
|
2293
1722
|
}
|
|
2294
|
-
|
|
2295
|
-
var glow = keyframes`
|
|
1723
|
+
`, glow = keyframes`
|
|
2296
1724
|
0%, 100% { opacity: 1; }
|
|
2297
1725
|
50% { opacity: .4; }
|
|
2298
|
-
|
|
2299
|
-
var float = keyframes`
|
|
1726
|
+
`, float = keyframes`
|
|
2300
1727
|
0% { transform: translateY(1px); }
|
|
2301
1728
|
25% { transform: translateY(0px); }
|
|
2302
1729
|
50% { transform: translateY(-3px); }
|
|
2303
1730
|
100% { transform: translateY(1px); }
|
|
2304
|
-
|
|
2305
|
-
var jiggle = keyframes`
|
|
1731
|
+
`, jiggle = keyframes`
|
|
2306
1732
|
0%, 100% { transform:translate3d(0,0,0); }
|
|
2307
1733
|
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
2308
1734
|
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
2309
|
-
|
|
2310
|
-
var inlineGlow = css`
|
|
1735
|
+
`, inlineGlow = css`
|
|
2311
1736
|
animation: ${glow} 1.5s ease-in-out infinite;
|
|
2312
1737
|
color: transparent;
|
|
2313
1738
|
cursor: progress;
|
|
2314
|
-
|
|
2315
|
-
var hoverable = css`
|
|
1739
|
+
`, hoverable = css`
|
|
2316
1740
|
transition: all 150ms ease-out;
|
|
2317
1741
|
transform: translate3d(0, 0, 0);
|
|
2318
1742
|
|
|
@@ -2323,8 +1747,7 @@ var hoverable = css`
|
|
|
2323
1747
|
&:active {
|
|
2324
1748
|
transform: translate3d(0, 0, 0);
|
|
2325
1749
|
}
|
|
2326
|
-
|
|
2327
|
-
var animation = {
|
|
1750
|
+
`, animation = {
|
|
2328
1751
|
rotate360,
|
|
2329
1752
|
glow,
|
|
2330
1753
|
float,
|
|
@@ -2373,8 +1796,7 @@ var chromeDark = {
|
|
|
2373
1796
|
// 'rgb(48, 57, 66)',
|
|
2374
1797
|
TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",
|
|
2375
1798
|
TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
|
|
2376
|
-
}
|
|
2377
|
-
var chromeLight = {
|
|
1799
|
+
}, chromeLight = {
|
|
2378
1800
|
BASE_FONT_FAMILY: "Menlo, monospace",
|
|
2379
1801
|
BASE_FONT_SIZE: "11px",
|
|
2380
1802
|
BASE_LINE_HEIGHT: 1.2,
|
|
@@ -2412,10 +1834,8 @@ var chromeLight = {
|
|
|
2412
1834
|
TABLE_SORT_ICON_COLOR: "#6e6e6e",
|
|
2413
1835
|
TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",
|
|
2414
1836
|
TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
var create2 = /* @__PURE__ */ __name(({ colors, mono }) => {
|
|
2418
|
-
const colorsObjs = convertColors(colors);
|
|
1837
|
+
}, convertColors = (colors) => Object.entries(colors).reduce((acc, [k, v]) => ({ ...acc, [k]: mkColor(v) }), {}), create2 = ({ colors, mono }) => {
|
|
1838
|
+
let colorsObjs = convertColors(colors);
|
|
2419
1839
|
return {
|
|
2420
1840
|
token: {
|
|
2421
1841
|
fontFamily: mono,
|
|
@@ -2467,7 +1887,7 @@ var create2 = /* @__PURE__ */ __name(({ colors, mono }) => {
|
|
|
2467
1887
|
opacity: 0.7
|
|
2468
1888
|
}
|
|
2469
1889
|
};
|
|
2470
|
-
}
|
|
1890
|
+
};
|
|
2471
1891
|
|
|
2472
1892
|
// src/theming/convert.ts
|
|
2473
1893
|
var lightSyntaxColors = {
|
|
@@ -2481,8 +1901,7 @@ var lightSyntaxColors = {
|
|
|
2481
1901
|
cyan2: "#007ca0",
|
|
2482
1902
|
blue1: "#0000ff",
|
|
2483
1903
|
blue2: "#00009f"
|
|
2484
|
-
}
|
|
2485
|
-
var darkSyntaxColors = {
|
|
1904
|
+
}, darkSyntaxColors = {
|
|
2486
1905
|
green1: "#95999D",
|
|
2487
1906
|
red1: "#92C379",
|
|
2488
1907
|
red2: "#9a050f",
|
|
@@ -2493,8 +1912,7 @@ var darkSyntaxColors = {
|
|
|
2493
1912
|
cyan2: "#FFFFB6",
|
|
2494
1913
|
blue1: "#B474DD",
|
|
2495
1914
|
blue2: "#00009f"
|
|
2496
|
-
}
|
|
2497
|
-
var createColors = /* @__PURE__ */ __name((vars) => ({
|
|
1915
|
+
}, createColors = (vars) => ({
|
|
2498
1916
|
// Changeable colors
|
|
2499
1917
|
primary: vars.colorPrimary,
|
|
2500
1918
|
secondary: vars.colorSecondary,
|
|
@@ -2529,9 +1947,8 @@ var createColors = /* @__PURE__ */ __name((vars) => ({
|
|
|
2529
1947
|
positiveText: color.positiveText,
|
|
2530
1948
|
negativeText: color.negativeText,
|
|
2531
1949
|
warningText: color.warningText
|
|
2532
|
-
}),
|
|
2533
|
-
|
|
2534
|
-
const {
|
|
1950
|
+
}), convert = (inherit = themes[getPreferredColorScheme()]) => {
|
|
1951
|
+
let {
|
|
2535
1952
|
base,
|
|
2536
1953
|
colorPrimary,
|
|
2537
1954
|
colorSecondary,
|
|
@@ -2642,51 +2059,38 @@ var convert = /* @__PURE__ */ __name((inherit = themes[getPreferredColorScheme()
|
|
|
2642
2059
|
TREENODE_PADDING_LEFT: 12
|
|
2643
2060
|
}
|
|
2644
2061
|
};
|
|
2645
|
-
}
|
|
2062
|
+
};
|
|
2646
2063
|
|
|
2647
2064
|
// src/theming/ensure.ts
|
|
2648
2065
|
import { logger } from "storybook/internal/client-logger";
|
|
2649
2066
|
|
|
2650
2067
|
// ../node_modules/deep-object-diff/mjs/utils.js
|
|
2651
|
-
var isEmpty =
|
|
2652
|
-
var
|
|
2653
|
-
var hasOwnProperty = /* @__PURE__ */ __name((o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args), "hasOwnProperty");
|
|
2654
|
-
var makeObjectWithoutPrototype = /* @__PURE__ */ __name(() => /* @__PURE__ */ Object.create(null), "makeObjectWithoutPrototype");
|
|
2068
|
+
var isEmpty = (o) => Object.keys(o).length === 0, isObject = (o) => o != null && typeof o == "object", hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
|
|
2069
|
+
var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
|
|
2655
2070
|
|
|
2656
2071
|
// ../node_modules/deep-object-diff/mjs/deleted.js
|
|
2657
|
-
var deletedDiff =
|
|
2658
|
-
if (
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
return acc;
|
|
2665
|
-
}
|
|
2666
|
-
acc[key] = void 0;
|
|
2667
|
-
return acc;
|
|
2668
|
-
}, makeObjectWithoutPrototype());
|
|
2669
|
-
}, "deletedDiff");
|
|
2670
|
-
var deleted_default = deletedDiff;
|
|
2072
|
+
var deletedDiff = (lhs, rhs) => lhs === rhs || !isObject(lhs) || !isObject(rhs) ? {} : Object.keys(lhs).reduce((acc, key) => {
|
|
2073
|
+
if (hasOwnProperty(rhs, key)) {
|
|
2074
|
+
let difference = deletedDiff(lhs[key], rhs[key]);
|
|
2075
|
+
return isObject(difference) && isEmpty(difference) || (acc[key] = difference), acc;
|
|
2076
|
+
}
|
|
2077
|
+
return acc[key] = void 0, acc;
|
|
2078
|
+
}, makeObjectWithoutPrototype()), deleted_default = deletedDiff;
|
|
2671
2079
|
|
|
2672
2080
|
// src/theming/ensure.ts
|
|
2673
|
-
var ensure =
|
|
2674
|
-
if (!input)
|
|
2081
|
+
var ensure = (input) => {
|
|
2082
|
+
if (!input)
|
|
2675
2083
|
return convert(light_default);
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
logger.warn(
|
|
2680
|
-
dedent`
|
|
2084
|
+
let missing = deleted_default(light_default, input);
|
|
2085
|
+
return Object.keys(missing).length && logger.warn(
|
|
2086
|
+
dedent`
|
|
2681
2087
|
Your theme is missing properties, you should update your theme!
|
|
2682
2088
|
|
|
2683
2089
|
theme-data missing:
|
|
2684
2090
|
`,
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
return convert(input);
|
|
2689
|
-
}, "ensure");
|
|
2091
|
+
missing
|
|
2092
|
+
), convert(input);
|
|
2093
|
+
};
|
|
2690
2094
|
|
|
2691
2095
|
// src/theming/index.ts
|
|
2692
2096
|
var ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
|