@class101/cdn-ui-system 0.0.3 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/@types/theme.d.js +1 -9
  2. package/contexts/UiSystemProvider.js +1 -1796
  3. package/core/props/action.js +1 -1045
  4. package/core/props/animator.js +1 -1045
  5. package/core/props/background.js +1 -1043
  6. package/core/props/border.js +3 -1047
  7. package/core/props/color.js +1 -1043
  8. package/core/props/flexbox.js +1 -1043
  9. package/core/props/icon.js +1 -1045
  10. package/core/props/image.js +1 -1045
  11. package/core/props/index.js +21 -2063
  12. package/core/props/layout.js +3 -1047
  13. package/core/props/position.js +1 -1043
  14. package/core/props/shadow.js +1 -1043
  15. package/core/props/space.js +1 -1043
  16. package/core/props/transform.js +1 -1045
  17. package/core/props/transition.js +1 -1045
  18. package/core/props/typography.js +3 -1047
  19. package/core/props/utils/getResponsiveValue.js +4 -5454
  20. package/core/props/utils/skipForwardProps.js +2 -12
  21. package/core/props/video.js +1 -1045
  22. package/core/variants/styleVariant/styleVariant.js +6 -214
  23. package/core/variants/system/system.js +6 -2080
  24. package/hooks/useResponsiveValue/useResponsiveValue.js +1 -1746
  25. package/lib/Animation/Animator/Animator.stories.js +1 -1761
  26. package/lib/Animation/FadeAnimation/FadeAnimation.js +1 -1761
  27. package/lib/Animation/RotateAnimation/RotateAnimation.js +1 -1761
  28. package/lib/Animation/SlideAnimation/SlideAnimation.js +5 -1765
  29. package/lib/Animation/Transition/Transition.stories.js +2 -2074
  30. package/lib/Avatar/Avatar.js +8 -3092
  31. package/lib/BreadCrumb/BreadCrumb.js +3 -2076
  32. package/lib/Button/ButtonIcon/ButtonIcon.js +6 -2287
  33. package/lib/Button/TextButton/TextButton.js +7 -3091
  34. package/lib/Elevation/Elevation.js +3 -3087
  35. package/lib/Form/CheckBox/CheckBox.js +4 -2076
  36. package/lib/Form/CheckBoxField/CheckBoxField.js +2 -206
  37. package/lib/Form/Description/Description.js +3 -3087
  38. package/lib/Form/HiddenInput/HiddenInput.js +2 -2074
  39. package/lib/Form/InlineTextLabel/InlineTextLabel.stories.js +2 -206
  40. package/lib/Form/Input/Input.js +4 -3088
  41. package/lib/Form/Label/Label.stories.js +4 -2250
  42. package/lib/Form/Select/Select.js +5 -3089
  43. package/lib/GlobalStyle/GlobalStyle.js +1 -1749
  44. package/lib/GridList/GridList.js +6 -7178
  45. package/lib/HtmlContentStyle/HtmlContentStyle.js +2 -2074
  46. package/lib/Layout/Center/Center.js +2 -2081
  47. package/lib/Media/Image/useActualSizes.js +14 -1727
  48. package/lib/Menu/MenuText/MenuText.js +3 -3087
  49. package/lib/Pagination/Pagination.js +5 -2440
  50. package/lib/Portal/Portal.js +1 -1740
  51. package/lib/ProfileLabel/ProfileLabel.js +11 -3096
  52. package/lib/Progress/ProgressStep/ProgressStep.js +3 -3087
  53. package/lib/Ratio/Ratio.js +4 -3088
  54. package/lib/Section/Section.js +2 -2074
  55. package/lib/SlideList/SlideList.js +2 -5452
  56. package/lib/Slider/Slider.js +7 -2537
  57. package/lib/SliderSection/SliderSection.js +2 -2074
  58. package/lib/Tag/Chip/Chip.js +3 -3087
  59. package/lib/Underline/Underline.js +3 -2179
  60. package/lib/deprecated/Swiper/Swiper.js +2 -2074
  61. package/lib/deprecated/Swiper/Swiper.stories.js +3 -2075
  62. package/lib/deprecated/Swiper/hooks/useSwiper.js +2 -455
  63. package/package.json +1 -1
  64. package/private/Box/Box.js +2 -2074
  65. package/private/ForwardStyle/ForwardStyle.js +7 -3141
  66. package/private/Stack/Stack.js +3 -1748
package/@types/theme.d.js CHANGED
@@ -1,13 +1,5 @@
1
- var __esm = (fn, res) => function __init() {
2
- return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
3
- };
4
-
5
1
  // tools/builders/framer-esm/build/react-shim.js
6
2
  import * as React from "react";
7
- var init_react_shim = __esm({
8
- "tools/builders/framer-esm/build/react-shim.js"() {
9
- }
10
- });
11
3
 
12
4
  // libs/shared/ui-system/src/@types/theme.d.ts
13
- init_react_shim();
5
+ import "https://jspm.dev/@emotion/react@11.1.5";
@@ -1,1795 +1,8 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports;
13
- };
14
- var __reExport = (target, module, desc) => {
15
- if (module && typeof module === "object" || typeof module === "function") {
16
- for (let key of __getOwnPropNames(module))
17
- if (!__hasOwnProp.call(target, key) && key !== "default")
18
- __defProp(target, key, {get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable});
19
- }
20
- return target;
21
- };
22
- var __toModule = (module) => {
23
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? {get: () => module.default, enumerable: true} : {value: module, enumerable: true})), module);
24
- };
25
-
26
1
  // tools/builders/framer-esm/build/react-shim.js
27
2
  import * as React from "react";
28
- var init_react_shim = __esm({
29
- "tools/builders/framer-esm/build/react-shim.js"() {
30
- }
31
- });
32
-
33
- // node_modules/react-is/cjs/react-is.development.js
34
- var require_react_is_development = __commonJS({
35
- "node_modules/react-is/cjs/react-is.development.js"(exports) {
36
- init_react_shim();
37
- "use strict";
38
- if (true) {
39
- (function() {
40
- "use strict";
41
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
42
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
43
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
44
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
45
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
46
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
47
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
48
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
49
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
50
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
51
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
52
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
53
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
54
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
55
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
56
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
57
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
58
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
59
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
60
- function isValidElementType(type) {
61
- return typeof type === "string" || typeof type === "function" || 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);
62
- }
63
- function typeOf(object) {
64
- if (typeof object === "object" && object !== null) {
65
- var $$typeof = object.$$typeof;
66
- switch ($$typeof) {
67
- case REACT_ELEMENT_TYPE:
68
- var type = object.type;
69
- switch (type) {
70
- case REACT_ASYNC_MODE_TYPE:
71
- case REACT_CONCURRENT_MODE_TYPE:
72
- case REACT_FRAGMENT_TYPE:
73
- case REACT_PROFILER_TYPE:
74
- case REACT_STRICT_MODE_TYPE:
75
- case REACT_SUSPENSE_TYPE:
76
- return type;
77
- default:
78
- var $$typeofType = type && type.$$typeof;
79
- switch ($$typeofType) {
80
- case REACT_CONTEXT_TYPE:
81
- case REACT_FORWARD_REF_TYPE:
82
- case REACT_LAZY_TYPE:
83
- case REACT_MEMO_TYPE:
84
- case REACT_PROVIDER_TYPE:
85
- return $$typeofType;
86
- default:
87
- return $$typeof;
88
- }
89
- }
90
- case REACT_PORTAL_TYPE:
91
- return $$typeof;
92
- }
93
- }
94
- return void 0;
95
- }
96
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
97
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
98
- var ContextConsumer = REACT_CONTEXT_TYPE;
99
- var ContextProvider = REACT_PROVIDER_TYPE;
100
- var Element = REACT_ELEMENT_TYPE;
101
- var ForwardRef = REACT_FORWARD_REF_TYPE;
102
- var Fragment = REACT_FRAGMENT_TYPE;
103
- var Lazy = REACT_LAZY_TYPE;
104
- var Memo = REACT_MEMO_TYPE;
105
- var Portal = REACT_PORTAL_TYPE;
106
- var Profiler = REACT_PROFILER_TYPE;
107
- var StrictMode = REACT_STRICT_MODE_TYPE;
108
- var Suspense = REACT_SUSPENSE_TYPE;
109
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
110
- function isAsyncMode(object) {
111
- {
112
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
113
- hasWarnedAboutDeprecatedIsAsyncMode = true;
114
- 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.");
115
- }
116
- }
117
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
118
- }
119
- function isConcurrentMode(object) {
120
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
121
- }
122
- function isContextConsumer(object) {
123
- return typeOf(object) === REACT_CONTEXT_TYPE;
124
- }
125
- function isContextProvider(object) {
126
- return typeOf(object) === REACT_PROVIDER_TYPE;
127
- }
128
- function isElement(object) {
129
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
130
- }
131
- function isForwardRef(object) {
132
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
133
- }
134
- function isFragment(object) {
135
- return typeOf(object) === REACT_FRAGMENT_TYPE;
136
- }
137
- function isLazy(object) {
138
- return typeOf(object) === REACT_LAZY_TYPE;
139
- }
140
- function isMemo(object) {
141
- return typeOf(object) === REACT_MEMO_TYPE;
142
- }
143
- function isPortal(object) {
144
- return typeOf(object) === REACT_PORTAL_TYPE;
145
- }
146
- function isProfiler(object) {
147
- return typeOf(object) === REACT_PROFILER_TYPE;
148
- }
149
- function isStrictMode(object) {
150
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
151
- }
152
- function isSuspense(object) {
153
- return typeOf(object) === REACT_SUSPENSE_TYPE;
154
- }
155
- exports.AsyncMode = AsyncMode;
156
- exports.ConcurrentMode = ConcurrentMode;
157
- exports.ContextConsumer = ContextConsumer;
158
- exports.ContextProvider = ContextProvider;
159
- exports.Element = Element;
160
- exports.ForwardRef = ForwardRef;
161
- exports.Fragment = Fragment;
162
- exports.Lazy = Lazy;
163
- exports.Memo = Memo;
164
- exports.Portal = Portal;
165
- exports.Profiler = Profiler;
166
- exports.StrictMode = StrictMode;
167
- exports.Suspense = Suspense;
168
- exports.isAsyncMode = isAsyncMode;
169
- exports.isConcurrentMode = isConcurrentMode;
170
- exports.isContextConsumer = isContextConsumer;
171
- exports.isContextProvider = isContextProvider;
172
- exports.isElement = isElement;
173
- exports.isForwardRef = isForwardRef;
174
- exports.isFragment = isFragment;
175
- exports.isLazy = isLazy;
176
- exports.isMemo = isMemo;
177
- exports.isPortal = isPortal;
178
- exports.isProfiler = isProfiler;
179
- exports.isStrictMode = isStrictMode;
180
- exports.isSuspense = isSuspense;
181
- exports.isValidElementType = isValidElementType;
182
- exports.typeOf = typeOf;
183
- })();
184
- }
185
- }
186
- });
187
-
188
- // node_modules/react-is/index.js
189
- var require_react_is = __commonJS({
190
- "node_modules/react-is/index.js"(exports, module) {
191
- init_react_shim();
192
- "use strict";
193
- if (false) {
194
- module.exports = null;
195
- } else {
196
- module.exports = require_react_is_development();
197
- }
198
- }
199
- });
200
-
201
- // node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
202
- var require_hoist_non_react_statics_cjs = __commonJS({
203
- "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
204
- init_react_shim();
205
- "use strict";
206
- var reactIs = require_react_is();
207
- var REACT_STATICS = {
208
- childContextTypes: true,
209
- contextType: true,
210
- contextTypes: true,
211
- defaultProps: true,
212
- displayName: true,
213
- getDefaultProps: true,
214
- getDerivedStateFromError: true,
215
- getDerivedStateFromProps: true,
216
- mixins: true,
217
- propTypes: true,
218
- type: true
219
- };
220
- var KNOWN_STATICS = {
221
- name: true,
222
- length: true,
223
- prototype: true,
224
- caller: true,
225
- callee: true,
226
- arguments: true,
227
- arity: true
228
- };
229
- var FORWARD_REF_STATICS = {
230
- "$$typeof": true,
231
- render: true,
232
- defaultProps: true,
233
- displayName: true,
234
- propTypes: true
235
- };
236
- var MEMO_STATICS = {
237
- "$$typeof": true,
238
- compare: true,
239
- defaultProps: true,
240
- displayName: true,
241
- propTypes: true,
242
- type: true
243
- };
244
- var TYPE_STATICS = {};
245
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
246
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
247
- function getStatics(component) {
248
- if (reactIs.isMemo(component)) {
249
- return MEMO_STATICS;
250
- }
251
- return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
252
- }
253
- var defineProperty = Object.defineProperty;
254
- var getOwnPropertyNames = Object.getOwnPropertyNames;
255
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
256
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
257
- var getPrototypeOf = Object.getPrototypeOf;
258
- var objectPrototype = Object.prototype;
259
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
260
- if (typeof sourceComponent !== "string") {
261
- if (objectPrototype) {
262
- var inheritedComponent = getPrototypeOf(sourceComponent);
263
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
264
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
265
- }
266
- }
267
- var keys = getOwnPropertyNames(sourceComponent);
268
- if (getOwnPropertySymbols) {
269
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
270
- }
271
- var targetStatics = getStatics(targetComponent);
272
- var sourceStatics = getStatics(sourceComponent);
273
- for (var i = 0; i < keys.length; ++i) {
274
- var key = keys[i];
275
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
276
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
277
- try {
278
- defineProperty(targetComponent, key, descriptor);
279
- } catch (e) {
280
- }
281
- }
282
- }
283
- }
284
- return targetComponent;
285
- }
286
- module.exports = hoistNonReactStatics;
287
- }
288
- });
289
-
290
- // libs/shared/ui-system/src/contexts/UiSystemProvider.tsx
291
- init_react_shim();
292
-
293
- // node_modules/@emotion/react/dist/emotion-react.browser.esm.js
294
- init_react_shim();
295
- import {createElement as createElement2, useContext as useContext2, useRef, useLayoutEffect} from "react";
296
-
297
- // node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
298
- init_react_shim();
299
-
300
- // node_modules/@emotion/react/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
301
- init_react_shim();
302
- function sheetForTag(tag) {
303
- if (tag.sheet) {
304
- return tag.sheet;
305
- }
306
- for (var i = 0; i < document.styleSheets.length; i++) {
307
- if (document.styleSheets[i].ownerNode === tag) {
308
- return document.styleSheets[i];
309
- }
310
- }
311
- }
312
- function createStyleElement(options) {
313
- var tag = document.createElement("style");
314
- tag.setAttribute("data-emotion", options.key);
315
- if (options.nonce !== void 0) {
316
- tag.setAttribute("nonce", options.nonce);
317
- }
318
- tag.appendChild(document.createTextNode(""));
319
- tag.setAttribute("data-s", "");
320
- return tag;
321
- }
322
- var StyleSheet = /* @__PURE__ */ function() {
323
- function StyleSheet2(options) {
324
- var _this = this;
325
- this._insertTag = function(tag) {
326
- var before;
327
- if (_this.tags.length === 0) {
328
- before = _this.prepend ? _this.container.firstChild : _this.before;
329
- } else {
330
- before = _this.tags[_this.tags.length - 1].nextSibling;
331
- }
332
- _this.container.insertBefore(tag, before);
333
- _this.tags.push(tag);
334
- };
335
- this.isSpeedy = options.speedy === void 0 ? false : options.speedy;
336
- this.tags = [];
337
- this.ctr = 0;
338
- this.nonce = options.nonce;
339
- this.key = options.key;
340
- this.container = options.container;
341
- this.prepend = options.prepend;
342
- this.before = null;
343
- }
344
- var _proto = StyleSheet2.prototype;
345
- _proto.hydrate = function hydrate(nodes) {
346
- nodes.forEach(this._insertTag);
347
- };
348
- _proto.insert = function insert(rule) {
349
- if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
350
- this._insertTag(createStyleElement(this));
351
- }
352
- var tag = this.tags[this.tags.length - 1];
353
- if (true) {
354
- var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
355
- if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
356
- console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");
357
- }
358
- this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
359
- }
360
- if (this.isSpeedy) {
361
- var sheet = sheetForTag(tag);
362
- try {
363
- sheet.insertRule(rule, sheet.cssRules.length);
364
- } catch (e) {
365
- if (!/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(rule)) {
366
- console.error('There was a problem inserting the following rule: "' + rule + '"', e);
367
- }
368
- }
369
- } else {
370
- tag.appendChild(document.createTextNode(rule));
371
- }
372
- this.ctr++;
373
- };
374
- _proto.flush = function flush() {
375
- this.tags.forEach(function(tag) {
376
- return tag.parentNode.removeChild(tag);
377
- });
378
- this.tags = [];
379
- this.ctr = 0;
380
- if (true) {
381
- this._alreadyInsertedOrderInsensitiveRule = false;
382
- }
383
- };
384
- return StyleSheet2;
385
- }();
386
-
387
- // node_modules/stylis/src/Enum.js
388
- init_react_shim();
389
- var MS = "-ms-";
390
- var MOZ = "-moz-";
391
- var WEBKIT = "-webkit-";
392
- var COMMENT = "comm";
393
- var RULESET = "rule";
394
- var DECLARATION = "decl";
395
- var IMPORT = "@import";
396
- var KEYFRAMES = "@keyframes";
397
-
398
- // node_modules/stylis/src/Utility.js
399
- init_react_shim();
400
- var abs = Math.abs;
401
- var from = String.fromCharCode;
402
- function hash(value, length2) {
403
- return (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
404
- }
405
- function trim(value) {
406
- return value.trim();
407
- }
408
- function match(value, pattern) {
409
- return (value = pattern.exec(value)) ? value[0] : value;
410
- }
411
- function replace(value, pattern, replacement) {
412
- return value.replace(pattern, replacement);
413
- }
414
- function indexof(value, search) {
415
- return value.indexOf(search);
416
- }
417
- function charat(value, index) {
418
- return value.charCodeAt(index) | 0;
419
- }
420
- function substr(value, begin, end) {
421
- return value.slice(begin, end);
422
- }
423
- function strlen(value) {
424
- return value.length;
425
- }
426
- function sizeof(value) {
427
- return value.length;
428
- }
429
- function append(value, array) {
430
- return array.push(value), value;
431
- }
432
- function combine(array, callback) {
433
- return array.map(callback).join("");
434
- }
435
-
436
- // node_modules/stylis/src/Parser.js
437
- init_react_shim();
438
-
439
- // node_modules/stylis/src/Tokenizer.js
440
- init_react_shim();
441
- var line = 1;
442
- var column = 1;
443
- var length = 0;
444
- var position = 0;
445
- var character = 0;
446
- var characters = "";
447
- function node(value, root, parent, type, props, children, length2) {
448
- return {value, root, parent, type, props, children, line, column, length: length2, return: ""};
449
- }
450
- function copy(value, root, type) {
451
- return node(value, root.root, root.parent, type, root.props, root.children, 0);
452
- }
453
- function char() {
454
- return character;
455
- }
456
- function prev() {
457
- character = position > 0 ? charat(characters, --position) : 0;
458
- if (column--, character === 10)
459
- column = 1, line--;
460
- return character;
461
- }
462
- function next() {
463
- character = position < length ? charat(characters, position++) : 0;
464
- if (column++, character === 10)
465
- column = 1, line++;
466
- return character;
467
- }
468
- function peek() {
469
- return charat(characters, position);
470
- }
471
- function caret() {
472
- return position;
473
- }
474
- function slice(begin, end) {
475
- return substr(characters, begin, end);
476
- }
477
- function token(type) {
478
- switch (type) {
479
- case 0:
480
- case 9:
481
- case 10:
482
- case 13:
483
- case 32:
484
- return 5;
485
- case 33:
486
- case 43:
487
- case 44:
488
- case 47:
489
- case 62:
490
- case 64:
491
- case 126:
492
- case 59:
493
- case 123:
494
- case 125:
495
- return 4;
496
- case 58:
497
- return 3;
498
- case 34:
499
- case 39:
500
- case 40:
501
- case 91:
502
- return 2;
503
- case 41:
504
- case 93:
505
- return 1;
506
- }
507
- return 0;
508
- }
509
- function alloc(value) {
510
- return line = column = 1, length = strlen(characters = value), position = 0, [];
511
- }
512
- function dealloc(value) {
513
- return characters = "", value;
514
- }
515
- function delimit(type) {
516
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
517
- }
518
- function whitespace(type) {
519
- while (character = peek())
520
- if (character < 33)
521
- next();
522
- else
523
- break;
524
- return token(type) > 2 || token(character) > 3 ? "" : " ";
525
- }
526
- function escaping(index, count) {
527
- while (--count && next())
528
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
529
- break;
530
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
531
- }
532
- function delimiter(type) {
533
- while (next())
534
- switch (character) {
535
- case type:
536
- return position;
537
- case 34:
538
- case 39:
539
- return delimiter(type === 34 || type === 39 ? type : character);
540
- case 40:
541
- if (type === 41)
542
- delimiter(type);
543
- break;
544
- case 92:
545
- next();
546
- break;
547
- }
548
- return position;
549
- }
550
- function commenter(type, index) {
551
- while (next())
552
- if (type + character === 47 + 10)
553
- break;
554
- else if (type + character === 42 + 42 && peek() === 47)
555
- break;
556
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
557
- }
558
- function identifier(index) {
559
- while (!token(peek()))
560
- next();
561
- return slice(index, position);
562
- }
563
-
564
- // node_modules/stylis/src/Parser.js
565
- function compile(value) {
566
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
567
- }
568
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
569
- var index = 0;
570
- var offset = 0;
571
- var length2 = pseudo;
572
- var atrule = 0;
573
- var property = 0;
574
- var previous = 0;
575
- var variable = 1;
576
- var scanning = 1;
577
- var ampersand = 1;
578
- var character2 = 0;
579
- var type = "";
580
- var props = rules;
581
- var children = rulesets;
582
- var reference = rule;
583
- var characters2 = type;
584
- while (scanning)
585
- switch (previous = character2, character2 = next()) {
586
- case 34:
587
- case 39:
588
- case 91:
589
- case 40:
590
- characters2 += delimit(character2);
591
- break;
592
- case 9:
593
- case 10:
594
- case 13:
595
- case 32:
596
- characters2 += whitespace(previous);
597
- break;
598
- case 92:
599
- characters2 += escaping(caret() - 1, 7);
600
- continue;
601
- case 47:
602
- switch (peek()) {
603
- case 42:
604
- case 47:
605
- append(comment(commenter(next(), caret()), root, parent), declarations);
606
- break;
607
- default:
608
- characters2 += "/";
609
- }
610
- break;
611
- case 123 * variable:
612
- points[index++] = strlen(characters2) * ampersand;
613
- case 125 * variable:
614
- case 59:
615
- case 0:
616
- switch (character2) {
617
- case 0:
618
- case 125:
619
- scanning = 0;
620
- case 59 + offset:
621
- if (property > 0 && strlen(characters2) - length2)
622
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
623
- break;
624
- case 59:
625
- characters2 += ";";
626
- default:
627
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
628
- if (character2 === 123)
629
- if (offset === 0)
630
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
631
- else
632
- switch (atrule) {
633
- case 100:
634
- case 109:
635
- case 115:
636
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
637
- break;
638
- default:
639
- parse(characters2, reference, reference, reference, [""], children, length2, points, children);
640
- }
641
- }
642
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
643
- break;
644
- case 58:
645
- length2 = 1 + strlen(characters2), property = previous;
646
- default:
647
- if (variable < 1) {
648
- if (character2 == 123)
649
- --variable;
650
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
651
- continue;
652
- }
653
- switch (characters2 += from(character2), character2 * variable) {
654
- case 38:
655
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
656
- break;
657
- case 44:
658
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
659
- break;
660
- case 64:
661
- if (peek() === 45)
662
- characters2 += delimit(next());
663
- atrule = peek(), offset = strlen(type = characters2 += identifier(caret())), character2++;
664
- break;
665
- case 45:
666
- if (previous === 45 && strlen(characters2) == 2)
667
- variable = 0;
668
- }
669
- }
670
- return rulesets;
671
- }
672
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
673
- var post = offset - 1;
674
- var rule = offset === 0 ? rules : [""];
675
- var size = sizeof(rule);
676
- for (var i = 0, j = 0, k = 0; i < index; ++i)
677
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
678
- if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
679
- props[k++] = z;
680
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
681
- }
682
- function comment(value, root, parent) {
683
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
684
- }
685
- function declaration(value, root, parent, length2) {
686
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
687
- }
688
-
689
- // node_modules/stylis/src/Prefixer.js
690
- init_react_shim();
691
- function prefix(value, length2) {
692
- switch (hash(value, length2)) {
693
- case 5103:
694
- return WEBKIT + "print-" + value + value;
695
- case 5737:
696
- case 4201:
697
- case 3177:
698
- case 3433:
699
- case 1641:
700
- case 4457:
701
- case 2921:
702
- case 5572:
703
- case 6356:
704
- case 5844:
705
- case 3191:
706
- case 6645:
707
- case 3005:
708
- case 6391:
709
- case 5879:
710
- case 5623:
711
- case 6135:
712
- case 4599:
713
- case 4855:
714
- case 4215:
715
- case 6389:
716
- case 5109:
717
- case 5365:
718
- case 5621:
719
- case 3829:
720
- return WEBKIT + value + value;
721
- case 5349:
722
- case 4246:
723
- case 4810:
724
- case 6968:
725
- case 2756:
726
- return WEBKIT + value + MOZ + value + MS + value + value;
727
- case 6828:
728
- case 4268:
729
- return WEBKIT + value + MS + value + value;
730
- case 6165:
731
- return WEBKIT + value + MS + "flex-" + value + value;
732
- case 5187:
733
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
734
- case 5443:
735
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
736
- case 4675:
737
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
738
- case 5548:
739
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
740
- case 5292:
741
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
742
- case 6060:
743
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
744
- case 4554:
745
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
746
- case 6187:
747
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
748
- case 5495:
749
- case 3959:
750
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
751
- case 4968:
752
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
753
- case 4095:
754
- case 3583:
755
- case 4068:
756
- case 2532:
757
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
758
- case 8116:
759
- case 7059:
760
- case 5753:
761
- case 5535:
762
- case 5445:
763
- case 5701:
764
- case 4933:
765
- case 4677:
766
- case 5533:
767
- case 5789:
768
- case 5021:
769
- case 4765:
770
- if (strlen(value) - 1 - length2 > 6)
771
- switch (charat(value, length2 + 1)) {
772
- case 109:
773
- if (charat(value, length2 + 4) !== 45)
774
- break;
775
- case 102:
776
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
777
- case 115:
778
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
779
- }
780
- break;
781
- case 4949:
782
- if (charat(value, length2 + 1) !== 115)
783
- break;
784
- case 6444:
785
- switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
786
- case 107:
787
- return replace(value, ":", ":" + WEBKIT) + value;
788
- case 101:
789
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
790
- }
791
- break;
792
- case 5936:
793
- switch (charat(value, length2 + 11)) {
794
- case 114:
795
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
796
- case 108:
797
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
798
- case 45:
799
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
800
- }
801
- return WEBKIT + value + MS + value + value;
802
- }
803
- return value;
804
- }
805
-
806
- // node_modules/stylis/src/Serializer.js
807
- init_react_shim();
808
- function serialize(children, callback) {
809
- var output = "";
810
- var length2 = sizeof(children);
811
- for (var i = 0; i < length2; i++)
812
- output += callback(children[i], i, children, callback) || "";
813
- return output;
814
- }
815
- function stringify(element, index, children, callback) {
816
- switch (element.type) {
817
- case IMPORT:
818
- case DECLARATION:
819
- return element.return = element.return || element.value;
820
- case COMMENT:
821
- return "";
822
- case RULESET:
823
- element.value = element.props.join(",");
824
- }
825
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
826
- }
827
-
828
- // node_modules/stylis/src/Middleware.js
829
- init_react_shim();
830
- function middleware(collection) {
831
- var length2 = sizeof(collection);
832
- return function(element, index, children, callback) {
833
- var output = "";
834
- for (var i = 0; i < length2; i++)
835
- output += collection[i](element, index, children, callback) || "";
836
- return output;
837
- };
838
- }
839
- function prefixer(element, index, children, callback) {
840
- if (!element.return)
841
- switch (element.type) {
842
- case DECLARATION:
843
- element.return = prefix(element.value, element.length);
844
- break;
845
- case KEYFRAMES:
846
- return serialize([copy(replace(element.value, "@", "@" + WEBKIT), element, "")], callback);
847
- case RULESET:
848
- if (element.length)
849
- return combine(element.props, function(value) {
850
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
851
- case ":read-only":
852
- case ":read-write":
853
- return serialize([copy(replace(value, /:(read-\w+)/, ":" + MOZ + "$1"), element, "")], callback);
854
- case "::placeholder":
855
- return serialize([
856
- copy(replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1"), element, ""),
857
- copy(replace(value, /:(plac\w+)/, ":" + MOZ + "$1"), element, ""),
858
- copy(replace(value, /:(plac\w+)/, MS + "input-$1"), element, "")
859
- ], callback);
860
- }
861
- return "";
862
- });
863
- }
864
- }
865
-
866
- // node_modules/@emotion/weak-memoize/dist/weak-memoize.browser.esm.js
867
- init_react_shim();
868
- var weakMemoize = function weakMemoize2(func) {
869
- var cache = new WeakMap();
870
- return function(arg) {
871
- if (cache.has(arg)) {
872
- return cache.get(arg);
873
- }
874
- var ret = func(arg);
875
- cache.set(arg, ret);
876
- return ret;
877
- };
878
- };
879
- var weak_memoize_browser_esm_default = weakMemoize;
880
-
881
- // node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js
882
- init_react_shim();
883
- function memoize(fn) {
884
- var cache = Object.create(null);
885
- return function(arg) {
886
- if (cache[arg] === void 0)
887
- cache[arg] = fn(arg);
888
- return cache[arg];
889
- };
890
- }
891
- var emotion_memoize_browser_esm_default = memoize;
892
-
893
- // node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
894
- var last = function last2(arr) {
895
- return arr.length ? arr[arr.length - 1] : null;
896
- };
897
- var toRules = function toRules2(parsed, points) {
898
- var index = -1;
899
- var character2 = 44;
900
- do {
901
- switch (token(character2)) {
902
- case 0:
903
- if (character2 === 38 && peek() === 12) {
904
- points[index] = 1;
905
- }
906
- parsed[index] += identifier(position - 1);
907
- break;
908
- case 2:
909
- parsed[index] += delimit(character2);
910
- break;
911
- case 4:
912
- if (character2 === 44) {
913
- parsed[++index] = peek() === 58 ? "&\f" : "";
914
- points[index] = parsed[index].length;
915
- break;
916
- }
917
- default:
918
- parsed[index] += from(character2);
919
- }
920
- } while (character2 = next());
921
- return parsed;
922
- };
923
- var getRules = function getRules2(value, points) {
924
- return dealloc(toRules(alloc(value), points));
925
- };
926
- var fixedElements = /* @__PURE__ */ new WeakMap();
927
- var compat = function compat2(element) {
928
- if (element.type !== "rule" || !element.parent || !element.length) {
929
- return;
930
- }
931
- var value = element.value, parent = element.parent;
932
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
933
- while (parent.type !== "rule") {
934
- parent = parent.parent;
935
- if (!parent)
936
- return;
937
- }
938
- if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
939
- return;
940
- }
941
- if (isImplicitRule) {
942
- return;
943
- }
944
- fixedElements.set(element, true);
945
- var points = [];
946
- var rules = getRules(value, points);
947
- var parentRules = parent.props;
948
- for (var i = 0, k = 0; i < rules.length; i++) {
949
- for (var j = 0; j < parentRules.length; j++, k++) {
950
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
951
- }
952
- }
953
- };
954
- var removeLabel = function removeLabel2(element) {
955
- if (element.type === "decl") {
956
- var value = element.value;
957
- if (value.charCodeAt(0) === 108 && value.charCodeAt(2) === 98) {
958
- element["return"] = "";
959
- element.value = "";
960
- }
961
- }
962
- };
963
- var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
964
- var isIgnoringComment = function isIgnoringComment2(element) {
965
- return !!element && element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
966
- };
967
- var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
968
- return function(element, index, children) {
969
- if (element.type !== "rule")
970
- return;
971
- var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
972
- if (unsafePseudoClasses && cache.compat !== true) {
973
- var prevElement = index > 0 ? children[index - 1] : null;
974
- if (prevElement && isIgnoringComment(last(prevElement.children))) {
975
- return;
976
- }
977
- unsafePseudoClasses.forEach(function(unsafePseudoClass) {
978
- console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
979
- });
980
- }
981
- };
982
- };
983
- var isImportRule = function isImportRule2(element) {
984
- return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
985
- };
986
- var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children) {
987
- for (var i = index - 1; i >= 0; i--) {
988
- if (!isImportRule(children[i])) {
989
- return true;
990
- }
991
- }
992
- return false;
993
- };
994
- var nullifyElement = function nullifyElement2(element) {
995
- element.type = "";
996
- element.value = "";
997
- element["return"] = "";
998
- element.children = "";
999
- element.props = "";
1000
- };
1001
- var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children) {
1002
- if (!isImportRule(element)) {
1003
- return;
1004
- }
1005
- if (element.parent) {
1006
- console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
1007
- nullifyElement(element);
1008
- } else if (isPrependedWithRegularRules(index, children)) {
1009
- console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
1010
- nullifyElement(element);
1011
- }
1012
- };
1013
- var defaultStylisPlugins = [prefixer];
1014
- var createCache = function createCache2(options) {
1015
- var key = options.key;
1016
- if (!key) {
1017
- throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
1018
- }
1019
- if (key === "css") {
1020
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1021
- Array.prototype.forEach.call(ssrStyles, function(node2) {
1022
- var dataEmotionAttribute = node2.getAttribute("data-emotion");
1023
- if (dataEmotionAttribute.indexOf(" ") === -1) {
1024
- return;
1025
- }
1026
- document.head.appendChild(node2);
1027
- node2.setAttribute("data-s", "");
1028
- });
1029
- }
1030
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1031
- if (true) {
1032
- if (/[^a-z-]/.test(key)) {
1033
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
1034
- }
1035
- }
1036
- var inserted = {};
1037
- var container;
1038
- var nodesToHydrate = [];
1039
- {
1040
- container = options.container || document.head;
1041
- Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + key + ' "]'), function(node2) {
1042
- var attrib = node2.getAttribute("data-emotion").split(" ");
1043
- for (var i = 1; i < attrib.length; i++) {
1044
- inserted[attrib[i]] = true;
1045
- }
1046
- nodesToHydrate.push(node2);
1047
- });
1048
- }
1049
- var _insert;
1050
- var omnipresentPlugins = [compat, removeLabel];
1051
- if (true) {
1052
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1053
- get compat() {
1054
- return cache.compat;
1055
- }
1056
- }), incorrectImportAlarm);
1057
- }
1058
- {
1059
- var currentSheet;
1060
- var finalizingPlugins = [stringify, true ? function(element) {
1061
- if (!element.root) {
1062
- if (element["return"]) {
1063
- currentSheet.insert(element["return"]);
1064
- } else if (element.value && element.type !== COMMENT) {
1065
- currentSheet.insert(element.value + "{}");
1066
- }
1067
- }
1068
- } : rulesheet(function(rule) {
1069
- currentSheet.insert(rule);
1070
- })];
1071
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1072
- var stylis = function stylis2(styles) {
1073
- return serialize(compile(styles), serializer);
1074
- };
1075
- _insert = function insert(selector, serialized, sheet, shouldCache) {
1076
- currentSheet = sheet;
1077
- if (serialized.map !== void 0) {
1078
- currentSheet = {
1079
- insert: function insert2(rule) {
1080
- sheet.insert(rule + serialized.map);
1081
- }
1082
- };
1083
- }
1084
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1085
- if (shouldCache) {
1086
- cache.inserted[serialized.name] = true;
1087
- }
1088
- };
1089
- }
1090
- var cache = {
1091
- key,
1092
- sheet: new StyleSheet({
1093
- key,
1094
- container,
1095
- nonce: options.nonce,
1096
- speedy: options.speedy,
1097
- prepend: options.prepend
1098
- }),
1099
- nonce: options.nonce,
1100
- inserted,
1101
- registered: {},
1102
- insert: _insert
1103
- };
1104
- cache.sheet.hydrate(nodesToHydrate);
1105
- return cache;
1106
- };
1107
- var emotion_cache_browser_esm_default = createCache;
1108
-
1109
- // node_modules/@emotion/react/dist/emotion-element-4fbd89c5.browser.esm.js
1110
- init_react_shim();
1111
- import {createContext, forwardRef, useContext, createElement} from "react";
1112
-
1113
- // node_modules/@babel/runtime/helpers/esm/extends.js
1114
- init_react_shim();
1115
- function _extends() {
1116
- _extends = Object.assign || function(target) {
1117
- for (var i = 1; i < arguments.length; i++) {
1118
- var source = arguments[i];
1119
- for (var key in source) {
1120
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1121
- target[key] = source[key];
1122
- }
1123
- }
1124
- }
1125
- return target;
1126
- };
1127
- return _extends.apply(this, arguments);
1128
- }
1129
-
1130
- // node_modules/@emotion/react/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
1131
- init_react_shim();
1132
- var isBrowser = true;
1133
- function getRegisteredStyles(registered, registeredStyles, classNames) {
1134
- var rawClassName = "";
1135
- classNames.split(" ").forEach(function(className) {
1136
- if (registered[className] !== void 0) {
1137
- registeredStyles.push(registered[className] + ";");
1138
- } else {
1139
- rawClassName += className + " ";
1140
- }
1141
- });
1142
- return rawClassName;
1143
- }
1144
- var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
1145
- var className = cache.key + "-" + serialized.name;
1146
- if ((isStringTag === false || isBrowser === false) && cache.registered[className] === void 0) {
1147
- cache.registered[className] = serialized.styles;
1148
- }
1149
- if (cache.inserted[serialized.name] === void 0) {
1150
- var current = serialized;
1151
- do {
1152
- var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
1153
- current = current.next;
1154
- } while (current !== void 0);
1155
- }
1156
- };
1157
-
1158
- // node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
1159
- init_react_shim();
1160
-
1161
- // node_modules/@emotion/hash/dist/hash.browser.esm.js
1162
- init_react_shim();
1163
- function murmur2(str) {
1164
- var h = 0;
1165
- var k, i = 0, len = str.length;
1166
- for (; len >= 4; ++i, len -= 4) {
1167
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1168
- k = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1169
- k ^= k >>> 24;
1170
- h = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1171
- }
1172
- switch (len) {
1173
- case 3:
1174
- h ^= (str.charCodeAt(i + 2) & 255) << 16;
1175
- case 2:
1176
- h ^= (str.charCodeAt(i + 1) & 255) << 8;
1177
- case 1:
1178
- h ^= str.charCodeAt(i) & 255;
1179
- h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1180
- }
1181
- h ^= h >>> 13;
1182
- h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1183
- return ((h ^ h >>> 15) >>> 0).toString(36);
1184
- }
1185
- var hash_browser_esm_default = murmur2;
1186
-
1187
- // node_modules/@emotion/unitless/dist/unitless.browser.esm.js
1188
- init_react_shim();
1189
- var unitlessKeys = {
1190
- animationIterationCount: 1,
1191
- borderImageOutset: 1,
1192
- borderImageSlice: 1,
1193
- borderImageWidth: 1,
1194
- boxFlex: 1,
1195
- boxFlexGroup: 1,
1196
- boxOrdinalGroup: 1,
1197
- columnCount: 1,
1198
- columns: 1,
1199
- flex: 1,
1200
- flexGrow: 1,
1201
- flexPositive: 1,
1202
- flexShrink: 1,
1203
- flexNegative: 1,
1204
- flexOrder: 1,
1205
- gridRow: 1,
1206
- gridRowEnd: 1,
1207
- gridRowSpan: 1,
1208
- gridRowStart: 1,
1209
- gridColumn: 1,
1210
- gridColumnEnd: 1,
1211
- gridColumnSpan: 1,
1212
- gridColumnStart: 1,
1213
- msGridRow: 1,
1214
- msGridRowSpan: 1,
1215
- msGridColumn: 1,
1216
- msGridColumnSpan: 1,
1217
- fontWeight: 1,
1218
- lineHeight: 1,
1219
- opacity: 1,
1220
- order: 1,
1221
- orphans: 1,
1222
- tabSize: 1,
1223
- widows: 1,
1224
- zIndex: 1,
1225
- zoom: 1,
1226
- WebkitLineClamp: 1,
1227
- fillOpacity: 1,
1228
- floodOpacity: 1,
1229
- stopOpacity: 1,
1230
- strokeDasharray: 1,
1231
- strokeDashoffset: 1,
1232
- strokeMiterlimit: 1,
1233
- strokeOpacity: 1,
1234
- strokeWidth: 1
1235
- };
1236
- var unitless_browser_esm_default = unitlessKeys;
1237
-
1238
- // node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
1239
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
1240
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
1241
- You can read more about this here:
1242
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
1243
- var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
1244
- var hyphenateRegex = /[A-Z]|^ms/g;
1245
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1246
- var isCustomProperty = function isCustomProperty2(property) {
1247
- return property.charCodeAt(1) === 45;
1248
- };
1249
- var isProcessableValue = function isProcessableValue2(value) {
1250
- return value != null && typeof value !== "boolean";
1251
- };
1252
- var processStyleName = /* @__PURE__ */ emotion_memoize_browser_esm_default(function(styleName) {
1253
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1254
- });
1255
- var processStyleValue = function processStyleValue2(key, value) {
1256
- switch (key) {
1257
- case "animation":
1258
- case "animationName": {
1259
- if (typeof value === "string") {
1260
- return value.replace(animationRegex, function(match2, p1, p2) {
1261
- cursor = {
1262
- name: p1,
1263
- styles: p2,
1264
- next: cursor
1265
- };
1266
- return p1;
1267
- });
1268
- }
1269
- }
1270
- }
1271
- if (unitless_browser_esm_default[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1272
- return value + "px";
1273
- }
1274
- return value;
1275
- };
1276
- if (true) {
1277
- contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1278
- contentValues = ["normal", "none", "initial", "inherit", "unset"];
1279
- oldProcessStyleValue = processStyleValue;
1280
- msPattern = /^-ms-/;
1281
- hyphenPattern = /-(.)/g;
1282
- hyphenatedCache = {};
1283
- processStyleValue = function processStyleValue3(key, value) {
1284
- if (key === "content") {
1285
- if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
1286
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1287
- }
1288
- }
1289
- var processed = oldProcessStyleValue(key, value);
1290
- if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
1291
- hyphenatedCache[key] = true;
1292
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
1293
- return _char.toUpperCase();
1294
- }) + "?");
1295
- }
1296
- return processed;
1297
- };
1298
- }
1299
- var contentValuePattern;
1300
- var contentValues;
1301
- var oldProcessStyleValue;
1302
- var msPattern;
1303
- var hyphenPattern;
1304
- var hyphenatedCache;
1305
- function handleInterpolation(mergedProps, registered, interpolation) {
1306
- if (interpolation == null) {
1307
- return "";
1308
- }
1309
- if (interpolation.__emotion_styles !== void 0) {
1310
- if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
1311
- throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");
1312
- }
1313
- return interpolation;
1314
- }
1315
- switch (typeof interpolation) {
1316
- case "boolean": {
1317
- return "";
1318
- }
1319
- case "object": {
1320
- if (interpolation.anim === 1) {
1321
- cursor = {
1322
- name: interpolation.name,
1323
- styles: interpolation.styles,
1324
- next: cursor
1325
- };
1326
- return interpolation.name;
1327
- }
1328
- if (interpolation.styles !== void 0) {
1329
- var next2 = interpolation.next;
1330
- if (next2 !== void 0) {
1331
- while (next2 !== void 0) {
1332
- cursor = {
1333
- name: next2.name,
1334
- styles: next2.styles,
1335
- next: cursor
1336
- };
1337
- next2 = next2.next;
1338
- }
1339
- }
1340
- var styles = interpolation.styles + ";";
1341
- if (interpolation.map !== void 0) {
1342
- styles += interpolation.map;
1343
- }
1344
- return styles;
1345
- }
1346
- return createStringFromObject(mergedProps, registered, interpolation);
1347
- }
1348
- case "function": {
1349
- if (mergedProps !== void 0) {
1350
- var previousCursor = cursor;
1351
- var result = interpolation(mergedProps);
1352
- cursor = previousCursor;
1353
- return handleInterpolation(mergedProps, registered, result);
1354
- } else if (true) {
1355
- console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
1356
- }
1357
- break;
1358
- }
1359
- case "string":
1360
- if (true) {
1361
- var matched = [];
1362
- var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
1363
- var fakeVarName = "animation" + matched.length;
1364
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
1365
- return "${" + fakeVarName + "}";
1366
- });
1367
- if (matched.length) {
1368
- console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
1369
- }
1370
- }
1371
- break;
1372
- }
1373
- if (registered == null) {
1374
- return interpolation;
1375
- }
1376
- var cached = registered[interpolation];
1377
- return cached !== void 0 ? cached : interpolation;
1378
- }
1379
- function createStringFromObject(mergedProps, registered, obj) {
1380
- var string = "";
1381
- if (Array.isArray(obj)) {
1382
- for (var i = 0; i < obj.length; i++) {
1383
- string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1384
- }
1385
- } else {
1386
- for (var _key in obj) {
1387
- var value = obj[_key];
1388
- if (typeof value !== "object") {
1389
- if (registered != null && registered[value] !== void 0) {
1390
- string += _key + "{" + registered[value] + "}";
1391
- } else if (isProcessableValue(value)) {
1392
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1393
- }
1394
- } else {
1395
- if (_key === "NO_COMPONENT_SELECTOR" && true) {
1396
- throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");
1397
- }
1398
- if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1399
- for (var _i = 0; _i < value.length; _i++) {
1400
- if (isProcessableValue(value[_i])) {
1401
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1402
- }
1403
- }
1404
- } else {
1405
- var interpolated = handleInterpolation(mergedProps, registered, value);
1406
- switch (_key) {
1407
- case "animation":
1408
- case "animationName": {
1409
- string += processStyleName(_key) + ":" + interpolated + ";";
1410
- break;
1411
- }
1412
- default: {
1413
- if (_key === "undefined") {
1414
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
1415
- }
1416
- string += _key + "{" + interpolated + "}";
1417
- }
1418
- }
1419
- }
1420
- }
1421
- }
1422
- }
1423
- return string;
1424
- }
1425
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1426
- var sourceMapPattern;
1427
- if (true) {
1428
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
1429
- }
1430
- var cursor;
1431
- var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1432
- if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1433
- return args[0];
1434
- }
1435
- var stringMode = true;
1436
- var styles = "";
1437
- cursor = void 0;
1438
- var strings = args[0];
1439
- if (strings == null || strings.raw === void 0) {
1440
- stringMode = false;
1441
- styles += handleInterpolation(mergedProps, registered, strings);
1442
- } else {
1443
- if (strings[0] === void 0) {
1444
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1445
- }
1446
- styles += strings[0];
1447
- }
1448
- for (var i = 1; i < args.length; i++) {
1449
- styles += handleInterpolation(mergedProps, registered, args[i]);
1450
- if (stringMode) {
1451
- if (strings[i] === void 0) {
1452
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1453
- }
1454
- styles += strings[i];
1455
- }
1456
- }
1457
- var sourceMap;
1458
- if (true) {
1459
- styles = styles.replace(sourceMapPattern, function(match3) {
1460
- sourceMap = match3;
1461
- return "";
1462
- });
1463
- }
1464
- labelPattern.lastIndex = 0;
1465
- var identifierName = "";
1466
- var match2;
1467
- while ((match2 = labelPattern.exec(styles)) !== null) {
1468
- identifierName += "-" + match2[1];
1469
- }
1470
- var name = hash_browser_esm_default(styles) + identifierName;
1471
- if (true) {
1472
- return {
1473
- name,
1474
- styles,
1475
- map: sourceMap,
1476
- next: cursor,
1477
- toString: function toString() {
1478
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1479
- }
1480
- };
1481
- }
1482
- return {
1483
- name,
1484
- styles,
1485
- next: cursor
1486
- };
1487
- };
1488
-
1489
- // node_modules/@emotion/react/dist/emotion-element-4fbd89c5.browser.esm.js
1490
- var hasOwnProperty = Object.prototype.hasOwnProperty;
1491
- var EmotionCacheContext = /* @__PURE__ */ createContext(typeof HTMLElement !== "undefined" ? /* @__PURE__ */ emotion_cache_browser_esm_default({
1492
- key: "css"
1493
- }) : null);
1494
- var CacheProvider = EmotionCacheContext.Provider;
1495
- var withEmotionCache = function withEmotionCache2(func) {
1496
- return /* @__PURE__ */ forwardRef(function(props, ref) {
1497
- var cache = useContext(EmotionCacheContext);
1498
- return func(props, cache, ref);
1499
- });
1500
- };
1501
- var ThemeContext = /* @__PURE__ */ createContext({});
1502
- var getTheme = function getTheme2(outerTheme, theme) {
1503
- if (typeof theme === "function") {
1504
- var mergedTheme = theme(outerTheme);
1505
- if (mergedTheme == null || typeof mergedTheme !== "object" || Array.isArray(mergedTheme)) {
1506
- throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");
1507
- }
1508
- return mergedTheme;
1509
- }
1510
- if (theme == null || typeof theme !== "object" || Array.isArray(theme)) {
1511
- throw new Error("[ThemeProvider] Please make your theme prop a plain object");
1512
- }
1513
- return _extends({}, outerTheme, {}, theme);
1514
- };
1515
- var createCacheWithTheme = /* @__PURE__ */ weak_memoize_browser_esm_default(function(outerTheme) {
1516
- return weak_memoize_browser_esm_default(function(theme) {
1517
- return getTheme(outerTheme, theme);
1518
- });
1519
- });
1520
- var ThemeProvider = function ThemeProvider2(props) {
1521
- var theme = useContext(ThemeContext);
1522
- if (props.theme !== theme) {
1523
- theme = createCacheWithTheme(theme)(props.theme);
1524
- }
1525
- return /* @__PURE__ */ createElement(ThemeContext.Provider, {
1526
- value: theme
1527
- }, props.children);
1528
- };
1529
- var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
1530
- var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__";
1531
- var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
1532
- var cssProp = props.css;
1533
- if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
1534
- cssProp = cache.registered[cssProp];
1535
- }
1536
- var type = props[typePropName];
1537
- var registeredStyles = [cssProp];
1538
- var className = "";
1539
- if (typeof props.className === "string") {
1540
- className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1541
- } else if (props.className != null) {
1542
- className = props.className + " ";
1543
- }
1544
- var serialized = serializeStyles(registeredStyles, void 0, typeof cssProp === "function" || Array.isArray(cssProp) ? useContext(ThemeContext) : void 0);
1545
- if (serialized.name.indexOf("-") === -1) {
1546
- var labelFromStack = props[labelPropName];
1547
- if (labelFromStack) {
1548
- serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]);
1549
- }
1550
- }
1551
- var rules = insertStyles(cache, serialized, typeof type === "string");
1552
- className += cache.key + "-" + serialized.name;
1553
- var newProps = {};
1554
- for (var key in props) {
1555
- if (hasOwnProperty.call(props, key) && key !== "css" && key !== typePropName && key !== labelPropName) {
1556
- newProps[key] = props[key];
1557
- }
1558
- }
1559
- newProps.ref = ref;
1560
- newProps.className = className;
1561
- var ele = /* @__PURE__ */ createElement(type, newProps);
1562
- return ele;
1563
- });
1564
- if (true) {
1565
- Emotion.displayName = "EmotionCssPropInternal";
1566
- }
1567
-
1568
- // node_modules/@emotion/react/dist/emotion-react.browser.esm.js
1569
- var import_hoist_non_react_statics = __toModule(require_hoist_non_react_statics_cjs());
1570
- var pkg = {
1571
- name: "@emotion/react",
1572
- version: "11.1.5",
1573
- main: "dist/emotion-react.cjs.js",
1574
- module: "dist/emotion-react.esm.js",
1575
- browser: {
1576
- "./dist/emotion-react.cjs.js": "./dist/emotion-react.browser.cjs.js",
1577
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
1578
- },
1579
- types: "types/index.d.ts",
1580
- files: [
1581
- "src",
1582
- "dist",
1583
- "jsx-runtime",
1584
- "jsx-dev-runtime",
1585
- "isolated-hoist-non-react-statics-do-not-use-this-in-your-code",
1586
- "types/*.d.ts",
1587
- "macro.js",
1588
- "macro.d.ts",
1589
- "macro.js.flow"
1590
- ],
1591
- sideEffects: false,
1592
- author: "mitchellhamilton <mitchell@mitchellhamilton.me>",
1593
- license: "MIT",
1594
- scripts: {
1595
- "test:typescript": "dtslint types"
1596
- },
1597
- dependencies: {
1598
- "@babel/runtime": "^7.7.2",
1599
- "@emotion/cache": "^11.1.3",
1600
- "@emotion/serialize": "^1.0.0",
1601
- "@emotion/sheet": "^1.0.1",
1602
- "@emotion/utils": "^1.0.0",
1603
- "@emotion/weak-memoize": "^0.2.5",
1604
- "hoist-non-react-statics": "^3.3.1"
1605
- },
1606
- peerDependencies: {
1607
- "@babel/core": "^7.0.0",
1608
- react: ">=16.8.0"
1609
- },
1610
- peerDependenciesMeta: {
1611
- "@babel/core": {
1612
- optional: true
1613
- },
1614
- "@types/react": {
1615
- optional: true
1616
- }
1617
- },
1618
- devDependencies: {
1619
- "@babel/core": "^7.7.2",
1620
- "@emotion/css": "11.1.3",
1621
- "@emotion/css-prettifier": "1.0.0",
1622
- "@emotion/server": "11.0.0",
1623
- "@emotion/styled": "11.1.5",
1624
- "@types/react": "^16.9.11",
1625
- dtslint: "^0.3.0",
1626
- "html-tag-names": "^1.1.2",
1627
- react: "16.14.0",
1628
- "svg-tag-names": "^1.1.1"
1629
- },
1630
- repository: "https://github.com/emotion-js/emotion/tree/master/packages/react",
1631
- publishConfig: {
1632
- access: "public"
1633
- },
1634
- "umd:main": "dist/emotion-react.umd.min.js",
1635
- preconstruct: {
1636
- entrypoints: [
1637
- "./index.js",
1638
- "./jsx-runtime.js",
1639
- "./jsx-dev-runtime.js",
1640
- "./isolated-hoist-non-react-statics-do-not-use-this-in-your-code.js"
1641
- ],
1642
- umdName: "emotionReact"
1643
- }
1644
- };
1645
- var warnedAboutCssPropForGlobal = false;
1646
- var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1647
- if (!warnedAboutCssPropForGlobal && (props.className || props.css)) {
1648
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
1649
- warnedAboutCssPropForGlobal = true;
1650
- }
1651
- var styles = props.styles;
1652
- var serialized = serializeStyles([styles], void 0, typeof styles === "function" || Array.isArray(styles) ? useContext2(ThemeContext) : void 0);
1653
- var sheetRef = useRef();
1654
- useLayoutEffect(function() {
1655
- var key = cache.key + "-global";
1656
- var sheet = new StyleSheet({
1657
- key,
1658
- nonce: cache.sheet.nonce,
1659
- container: cache.sheet.container,
1660
- speedy: cache.sheet.isSpeedy
1661
- });
1662
- var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
1663
- if (cache.sheet.tags.length) {
1664
- sheet.before = cache.sheet.tags[0];
1665
- }
1666
- if (node2 !== null) {
1667
- sheet.hydrate([node2]);
1668
- }
1669
- sheetRef.current = sheet;
1670
- return function() {
1671
- sheet.flush();
1672
- };
1673
- }, [cache]);
1674
- useLayoutEffect(function() {
1675
- if (serialized.next !== void 0) {
1676
- insertStyles(cache, serialized.next, true);
1677
- }
1678
- var sheet = sheetRef.current;
1679
- if (sheet.tags.length) {
1680
- var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
1681
- sheet.before = element;
1682
- sheet.flush();
1683
- }
1684
- cache.insert("", serialized, sheet, false);
1685
- }, [cache, serialized.name]);
1686
- return null;
1687
- });
1688
- if (true) {
1689
- Global.displayName = "EmotionGlobal";
1690
- }
1691
- var classnames = function classnames2(args) {
1692
- var len = args.length;
1693
- var i = 0;
1694
- var cls = "";
1695
- for (; i < len; i++) {
1696
- var arg = args[i];
1697
- if (arg == null)
1698
- continue;
1699
- var toAdd = void 0;
1700
- switch (typeof arg) {
1701
- case "boolean":
1702
- break;
1703
- case "object": {
1704
- if (Array.isArray(arg)) {
1705
- toAdd = classnames2(arg);
1706
- } else {
1707
- if (arg.styles !== void 0 && arg.name !== void 0) {
1708
- console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
1709
- }
1710
- toAdd = "";
1711
- for (var k in arg) {
1712
- if (arg[k] && k) {
1713
- toAdd && (toAdd += " ");
1714
- toAdd += k;
1715
- }
1716
- }
1717
- }
1718
- break;
1719
- }
1720
- default: {
1721
- toAdd = arg;
1722
- }
1723
- }
1724
- if (toAdd) {
1725
- cls && (cls += " ");
1726
- cls += toAdd;
1727
- }
1728
- }
1729
- return cls;
1730
- };
1731
- function merge(registered, css, className) {
1732
- var registeredStyles = [];
1733
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
1734
- if (registeredStyles.length < 2) {
1735
- return className;
1736
- }
1737
- return rawClassName + css(registeredStyles);
1738
- }
1739
- var ClassNames = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1740
- var hasRendered = false;
1741
- var css = function css2() {
1742
- if (hasRendered && true) {
1743
- throw new Error("css can only be used during render");
1744
- }
1745
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1746
- args[_key] = arguments[_key];
1747
- }
1748
- var serialized = serializeStyles(args, cache.registered);
1749
- {
1750
- insertStyles(cache, serialized, false);
1751
- }
1752
- return cache.key + "-" + serialized.name;
1753
- };
1754
- var cx = function cx2() {
1755
- if (hasRendered && true) {
1756
- throw new Error("cx can only be used during render");
1757
- }
1758
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1759
- args[_key2] = arguments[_key2];
1760
- }
1761
- return merge(cache.registered, css, classnames(args));
1762
- };
1763
- var content = {
1764
- css,
1765
- cx,
1766
- theme: useContext2(ThemeContext)
1767
- };
1768
- var ele = props.children(content);
1769
- hasRendered = true;
1770
- return ele;
1771
- });
1772
- if (true) {
1773
- ClassNames.displayName = "EmotionClassNames";
1774
- }
1775
- if (true) {
1776
- isBrowser2 = true;
1777
- isJest = typeof jest !== "undefined";
1778
- if (isBrowser2 && !isJest) {
1779
- globalContext = isBrowser2 ? window : global;
1780
- globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__";
1781
- if (globalContext[globalKey]) {
1782
- console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used.");
1783
- }
1784
- globalContext[globalKey] = true;
1785
- }
1786
- }
1787
- var isBrowser2;
1788
- var isJest;
1789
- var globalContext;
1790
- var globalKey;
1791
3
 
1792
4
  // libs/shared/ui-system/src/contexts/UiSystemProvider.tsx
5
+ import {ThemeProvider} from "https://jspm.dev/@emotion/react@11.1.5";
1793
6
  import {defaultTheme} from "../core/index.js";
1794
7
  import {LinkContext} from "./LinkContext/index.js";
1795
8
  import {ImageContext} from "./ImageContext/index.js";
@@ -1808,11 +21,3 @@ var UiSystemProvider = ({
1808
21
  export {
1809
22
  UiSystemProvider
1810
23
  };
1811
- /** @license React v16.13.1
1812
- * react-is.development.js
1813
- *
1814
- * Copyright (c) Facebook, Inc. and its affiliates.
1815
- *
1816
- * This source code is licensed under the MIT license found in the
1817
- * LICENSE file in the root directory of this source tree.
1818
- */