@cleartrip/talos-previous-chat-listing 12.0.0 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,135 +1,3947 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@cleartrip/ct-design-components'), require('@cleartrip/talos-widget-manager')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', '@cleartrip/ct-design-components', '@cleartrip/talos-widget-manager'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TalosPreviousChatListing = {}, global.React, global.ctDesignComponents, global.talosWidgetManager));
5
- })(this, (function (exports, require$$0, ctDesignComponents, talosWidgetManager) { 'use strict';
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
- var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
10
-
11
- /******************************************************************************
12
- Copyright (c) Microsoft Corporation.
13
-
14
- Permission to use, copy, modify, and/or distribute this software for any
15
- purpose with or without fee is hereby granted.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
- PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */
25
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26
-
27
- var __assign = function () {
28
- __assign = Object.assign || function __assign(t) {
29
- for (var s, i = 1, n = arguments.length; i < n; i++) {
30
- s = arguments[i];
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@cleartrip/talos-widget-manager'), require('@cleartrip/ct-design-style-manager')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@cleartrip/talos-widget-manager', '@cleartrip/ct-design-style-manager'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TalosPreviousChatListing = {}, global.React, global.talosWidgetManager, global.ctDesignStyleManager));
5
+ })(this, (function (exports, React, talosWidgetManager, ctDesignStyleManager) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
32
18
  }
33
- return t;
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
26
+
27
+ var jsxRuntimeExports = {};
28
+ var jsxRuntime = {
29
+ get exports(){ return jsxRuntimeExports; },
30
+ set exports(v){ jsxRuntimeExports = v; },
31
+ };
32
+
33
+ var reactJsxRuntime_production = {};
34
+
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.production.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var hasRequiredReactJsxRuntime_production;
45
+ function requireReactJsxRuntime_production() {
46
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
47
+ hasRequiredReactJsxRuntime_production = 1;
48
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
49
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
50
+ function jsxProd(type, config, maybeKey) {
51
+ var key = null;
52
+ void 0 !== maybeKey && (key = "" + maybeKey);
53
+ void 0 !== config.key && (key = "" + config.key);
54
+ if ("key" in config) {
55
+ maybeKey = {};
56
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
57
+ } else maybeKey = config;
58
+ config = maybeKey.ref;
59
+ return {
60
+ $$typeof: REACT_ELEMENT_TYPE,
61
+ type: type,
62
+ key: key,
63
+ ref: void 0 !== config ? config : null,
64
+ props: maybeKey
34
65
  };
35
- return __assign.apply(this, arguments);
36
- };
37
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
38
- var e = new Error(message);
39
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
40
- };
41
-
42
- var jsxRuntimeExports = {};
43
- var jsxRuntime = {
44
- get exports(){ return jsxRuntimeExports; },
45
- set exports(v){ jsxRuntimeExports = v; },
46
- };
47
-
48
- var reactJsxRuntime_production_min = {};
49
-
50
- /**
51
- * @license React
52
- * react-jsx-runtime.production.min.js
53
- *
54
- * Copyright (c) Facebook, Inc. and its affiliates.
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE file in the root directory of this source tree.
58
- */
59
- var hasRequiredReactJsxRuntime_production_min;
60
- function requireReactJsxRuntime_production_min() {
61
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
62
- hasRequiredReactJsxRuntime_production_min = 1;
63
- var f = require$$0__default.default,
64
- k = Symbol.for("react.element"),
65
- l = Symbol.for("react.fragment"),
66
- m = Object.prototype.hasOwnProperty,
67
- n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
68
- p = {
69
- key: !0,
70
- ref: !0,
71
- __self: !0,
72
- __source: !0
73
- };
74
- function q(c, a, g) {
75
- var b,
76
- d = {},
77
- e = null,
78
- h = null;
79
- void 0 !== g && (e = "" + g);
80
- void 0 !== a.key && (e = "" + a.key);
81
- void 0 !== a.ref && (h = a.ref);
82
- for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
83
- if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
84
- return {
85
- $$typeof: k,
86
- type: c,
87
- key: e,
88
- ref: h,
89
- props: d,
90
- _owner: n.current
91
- };
66
+ }
67
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
68
+ reactJsxRuntime_production.jsx = jsxProd;
69
+ reactJsxRuntime_production.jsxs = jsxProd;
70
+ return reactJsxRuntime_production;
71
+ }
72
+
73
+ (function (module) {
74
+
75
+ {
76
+ module.exports = requireReactJsxRuntime_production();
77
+ }
78
+ })(jsxRuntime);
79
+
80
+ const staticContainerStyles = ctDesignStyleManager.makeStyles(() => {
81
+ return {
82
+ root: {
83
+ display: 'flex',
84
+ flexDirection: 'column',
85
+ pointerEvents: 'auto'
86
+ }
87
+ };
88
+ });
89
+ function getPointerEventsStyles(pointerEvents) {
90
+ if (pointerEvents === 'box-none') {
91
+ return {
92
+ pointerEvents: 'none',
93
+ '& > *': {
94
+ pointerEvents: 'auto'
95
+ }
96
+ };
97
+ }
98
+ if (pointerEvents === 'box-only') {
99
+ return {
100
+ pointerEvents: 'auto',
101
+ '& > *': {
102
+ pointerEvents: 'none'
103
+ }
104
+ };
105
+ }
106
+ if (pointerEvents === 'none') {
107
+ return {
108
+ pointerEvents: 'none'
109
+ };
110
+ }
111
+ return {
112
+ pointerEvents: 'auto'
113
+ };
114
+ }
115
+ const Container = React.forwardRef(({
116
+ id,
117
+ as: ContainerAs = 'div',
118
+ children,
119
+ styleConfig,
120
+ onClick,
121
+ onLayout,
122
+ onMouseEnter,
123
+ onMouseLeave,
124
+ onTransitionEnd,
125
+ onTouchStart,
126
+ onTouchEnd,
127
+ onTouchCancel,
128
+ onTouchMove,
129
+ pointerEvents,
130
+ hitSlop: _hitSlop,
131
+ hapticEnabled: _hapticEnabled,
132
+ hapticVariant: _hapticVariant,
133
+ hapticRepeat: _hapticRepeat
134
+ }, forwardedRef) => {
135
+ const localRef = React.useRef(null);
136
+ const handleFocus = React.useCallback(() => {
137
+ var _a;
138
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.focus();
139
+ }, []);
140
+ const handleGetBoundingRect = React.useCallback(callback => {
141
+ var _a;
142
+ const rect = (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
143
+ if (rect) {
144
+ callback === null || callback === void 0 ? void 0 : callback({
145
+ x: rect.x,
146
+ y: rect.y,
147
+ width: rect.width,
148
+ height: rect.height
149
+ });
92
150
  }
93
- reactJsxRuntime_production_min.Fragment = l;
94
- reactJsxRuntime_production_min.jsx = q;
95
- reactJsxRuntime_production_min.jsxs = q;
96
- return reactJsxRuntime_production_min;
151
+ }, []);
152
+ const handleAddEventListener = React.useCallback((type, listener, options) => {
153
+ var _a;
154
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener(type, listener, options);
155
+ }, []);
156
+ const handleRemoveEventListener = React.useCallback((type, listener, options) => {
157
+ var _a;
158
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(type, listener, options);
159
+ }, []);
160
+ React.useImperativeHandle(forwardedRef, () => {
161
+ var _a;
162
+ return {
163
+ focus: handleFocus,
164
+ getBoundingRectWithCallback: handleGetBoundingRect,
165
+ getElementRef: () => localRef,
166
+ style: ((_a = localRef.current) === null || _a === void 0 ? void 0 : _a.style) || {},
167
+ classList: {
168
+ add: className => {
169
+ var _a;
170
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(className);
171
+ }
172
+ },
173
+ measure: _callback => {
174
+ var _a;
175
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
176
+ },
177
+ addEventListener: handleAddEventListener,
178
+ removeEventListener: handleRemoveEventListener
179
+ };
180
+ }, [handleFocus, handleGetBoundingRect, handleAddEventListener, handleRemoveEventListener]);
181
+ const {
182
+ root: rootStyles = []
183
+ } = styleConfig || {};
184
+ const pointerEventsStyle = React.useMemo(() => {
185
+ if (pointerEvents == null) return null;
186
+ return getPointerEventsStyles(pointerEvents);
187
+ }, [pointerEvents]);
188
+ const mergedRootStyles = ctDesignStyleManager.useWebMergeStyles([staticContainerStyles.root, ...rootStyles, ...(pointerEventsStyle ? [pointerEventsStyle] : [])], [rootStyles, pointerEventsStyle]);
189
+ React.useLayoutEffect(() => {
190
+ var _a, _b, _c, _d, _e, _f, _g, _h;
191
+ onLayout === null || onLayout === void 0 ? void 0 : onLayout({
192
+ layout: {
193
+ height: (_b = (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0,
194
+ width: (_d = (_c = localRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 0,
195
+ x: (_f = (_e = localRef.current) === null || _e === void 0 ? void 0 : _e.getBoundingClientRect().x) !== null && _f !== void 0 ? _f : 0,
196
+ y: (_h = (_g = localRef.current) === null || _g === void 0 ? void 0 : _g.getBoundingClientRect().y) !== null && _h !== void 0 ? _h : 0
197
+ }
198
+ });
199
+ }, [onLayout]);
200
+ return jsxRuntimeExports.jsx(ContainerAs, {
201
+ id: id,
202
+ ref: localRef,
203
+ className: mergedRootStyles,
204
+ onClick: event => onClick === null || onClick === void 0 ? void 0 : onClick({
205
+ stopPropagation: () => event.stopPropagation(),
206
+ preventDefault: () => event.preventDefault(),
207
+ nativeEvent: {
208
+ locationX: event.clientX,
209
+ locationY: event.clientY
210
+ }
211
+ }),
212
+ onMouseEnter: onMouseEnter,
213
+ onMouseLeave: onMouseLeave,
214
+ onTransitionEnd: onTransitionEnd,
215
+ onTouchStart: onTouchStart,
216
+ onTouchEnd: onTouchEnd,
217
+ onTouchCancel: onTouchCancel,
218
+ onTouchMove: onTouchMove,
219
+ children: children
220
+ });
221
+ });
222
+ Container.displayName = 'Container';
223
+
224
+ const border = {
225
+ radius: {
226
+ 0: 0,
227
+ 2: 2,
228
+ 4: 4,
229
+ 6: 6,
230
+ 8: 8,
231
+ 12: 12,
232
+ 16: 16,
233
+ 20: 20,
234
+ 24: 24,
235
+ 30: 30,
236
+ 32: 32,
237
+ '50P': 50,
238
+ 60: 60
239
+ },
240
+ width: {
241
+ none: 0,
242
+ sm: 1,
243
+ md: 1.5,
244
+ lg: 2,
245
+ xl: 5
246
+ },
247
+ style: {
248
+ solid: 'solid',
249
+ dotted: 'dotted'
97
250
  }
251
+ };
252
+ const colors = {
253
+ neutral50: '#FFFFFF80',
254
+ alert: '#DF9641',
255
+ alertBg: '#FCF7F0',
256
+ alert100: '#FFF8D4',
257
+ alertText: '#DF9641',
258
+ alert500: '#A06800',
259
+ bgPrimary: '#ED6521',
260
+ bgPrimaryHover: '#CE4501',
261
+ blue50: '#EEF2FF',
262
+ blue100: '#ECF3FF',
263
+ blue400: '#408AFF',
264
+ blue900: '#0E3A81',
265
+ blue500: '#0F6BFF',
266
+ bluePrimary500: '#2A55E5',
267
+ blueSecondary: '#F0F5FF',
268
+ brand: '#FF4F17',
269
+ brandBg: '#FEF3ED',
270
+ brandText: '#FF4F17',
271
+ curacao250: '#9FE3EA',
272
+ curacao900: '#032529',
273
+ disabled100: '#E6E6E6',
274
+ disabled250: '#DDDDDD',
275
+ disabledLight: '#EFEFEF',
276
+ disabledText: '#B3B3B3',
277
+ highlightBg: 'rgba(255, 255, 255, 0.2)',
278
+ line: '#E7E7E7',
279
+ lineDarkNeutral300: '#E0E0E0',
280
+ darkNeutral300: '#E0E0E0',
281
+ darkGrey: '#313131',
282
+ link2: '#3366CC',
283
+ link2Hover: '#1A469D',
284
+ link: '#0F6BFF',
285
+ linkBg: '#EFF3FB',
286
+ linkText: '#0F6BFF',
287
+ labelContainerBg: '#106CFF',
288
+ margarita100: '#F2FAF0',
289
+ margarita250: '#C0E6B6',
290
+ margarita500: '#42B362',
291
+ margarita750: '#3A742C',
292
+ margarita900: '#3F672E',
293
+ neutral100: '#FFFFFF',
294
+ neutral200: '#FAFAFD',
295
+ neutral300: '#F3F3F3',
296
+ neutral350: '#DBDBDB',
297
+ neutral375: '#D0D0D0',
298
+ neutral400: '#CAC9C9',
299
+ neutral500: '#B3B3B3',
300
+ neutral700: '#808080',
301
+ neutral900: '#1A1A1A',
302
+ neutral900Muted: '#1A1A1ABF',
303
+ orange100: '#FFF1EC',
304
+ orange250: '#FFB8A5',
305
+ orange500: '#FF4F17',
306
+ pinaColada250: '#FEE3A0',
307
+ pinaColada300: '#FFE46E',
308
+ alert300: '#FFE769',
309
+ pinaColada100: '#FFF9EC',
310
+ pinaColada750: '#98700B',
311
+ primaryNeutral900: '#212121',
312
+ shadow: '#1a1a1a14',
313
+ success500: '#11A670',
314
+ success600: '#0DA86D',
315
+ success: '#11A670',
316
+ successBg: '#ECF8F4',
317
+ successText: '#11A670',
318
+ warning: '#C83232',
319
+ warningBg: '#FBEFEF',
320
+ warningText: '#C83232',
321
+ yellowSecondary: '#FFC200',
322
+ purple100: '#350041',
323
+ purple250: '#130016',
324
+ gray100: '#2E3042',
325
+ gray250: '#1A1C23',
326
+ gray500: '#ffffffb1',
327
+ aqua100: '#082395',
328
+ aqua250: '#081C82',
329
+ black: '#1A1A1A',
330
+ black000: '#000000',
331
+ blackShadow90: '#000000E6',
332
+ black100: '#1B1B1B',
333
+ grapetini100: '#F2EDF9',
334
+ grapetini900: '#5f1ab6',
335
+ transparent: 'transparent',
336
+ mintCream: '#F0FAF6',
337
+ lightSkyBlue: '#88CDFF',
338
+ lightCyan: '#ECF9FB',
339
+ orange200: '#FFF1ED',
340
+ blueSky500: '#3C6CE6',
341
+ pinkVibrant500: '#EF4E9B',
342
+ yellowSun500: '#FDBA12',
343
+ purpleRoyal500: '#8B39F1',
344
+ greenFresh500: '#61C149',
345
+ freshGreen100: '#ECF8F0',
346
+ freshGreen250: '#C4E7DB',
347
+ couponGreen: '#11A056',
348
+ warningLight: '#FFF7E2',
349
+ green100: '#28C976',
350
+ red100: '#FF7070',
351
+ lightGray: '#E2E2E2',
352
+ red200: '#FCE8E8',
353
+ red500: '#CD1719',
354
+ gray800: '#808080',
355
+ gray700: '#484848',
356
+ neutral150: '#F6F8FA',
357
+ neutral650: '#767676',
358
+ neutral675: '#595959',
359
+ red400: '#FF6262',
360
+ red600: '#C12725',
361
+ green700: '#0F802E',
362
+ blue700: '#0B56CC',
363
+ neutral75: '#FEFEFE',
364
+ neutral175: '#F3F5FA',
365
+ neutral235: '#F1EFF5',
366
+ neutral250: '#F2F3F5',
367
+ neutral275: '#EBECED',
368
+ neutral600: '#A3A3A3',
369
+ green800: '#0D812D',
370
+ neutral325: '#E1E2E3',
371
+ neutral625: '#9E9E9E',
372
+ superGrey700: '#404040',
373
+ superGrey300: '#666666',
374
+ superGrey800: '#262626',
375
+ superGreen500: '#008000',
376
+ superBlue25: '#EBEFFF',
377
+ superBlue500: '#4D43FE',
378
+ superGrey50: '#F9FAFB',
379
+ superGrey200: '#EAECF0',
380
+ superGrey400: '#98A2B3',
381
+ superGrey500: '#667085',
382
+ systemGreen500: '#12B76A',
383
+ systemRed500: '#FA2617',
384
+ coralpink: '#FF69B4',
385
+ brown: '#800000',
386
+ grapetini750: '#39106D',
387
+ neutralShadowOpacity10: '#1a1a1a1a',
388
+ successGreen500: '#11A056',
389
+ purple700: '#7226E0',
390
+ neutralOpacity8: '#00000014',
391
+ pink100: '#f8bbd0',
392
+ pink50: '#FFDEEB',
393
+ pink75: '#EAD9E3',
394
+ pink200: '#ffcccc',
395
+ pink300: '#FFD3E1',
396
+ pink150: '#FFACD1',
397
+ pink500: '#FF485F',
398
+ pink400: '#ec407a',
399
+ green200: '#22c67a',
400
+ orange300: '#ff6b35',
401
+ blue150: '#E8EEFF',
402
+ blue175: '#D7E5FF',
403
+ blue550: '#0D61E6',
404
+ green50: '#ECF8EF',
405
+ green400: '#42B362',
406
+ red450: '#D34747',
407
+ orange150: '#FCE9D8',
408
+ orange350: '#FF6F42',
409
+ orange400: '#E8734A',
410
+ cream50: '#FFFBEE',
411
+ taupe500: '#AEA58A',
412
+ neutral210: '#E8ECF1',
413
+ neutral245: '#ECEDF2',
414
+ neutral285: '#F0F0F0',
415
+ neutral340: '#D8D9DA',
416
+ neutral848: '#2B2B2B',
417
+ neutral850: '#2A2A2A',
418
+ neutral880: '#333333',
419
+ black050: '#151515'
420
+ };
421
+ const elevation = {
422
+ bottomE1: '0px 1px 0px #E7E7E7',
423
+ bottomE2: '0px 4px 16px rgba(26, 26, 26, 0.08)',
424
+ bottomE3: '0px 8px 24px rgba(26, 26, 26, 0.1)',
425
+ bottomE4: '0px 10px 32px rgba(26, 26, 26, 0.2)',
426
+ topE1: '0px -1px 0px #E7E7E7',
427
+ topE2: '0px -4px 16px rgba(26, 26, 26, 0.08)',
428
+ topE3: '0px -8px 24px rgba(26, 26, 26, 0.1)',
429
+ topE4: '0px -10px 32px rgba(26, 26, 26, 0.2)',
430
+ modalBlurLight: 'rgb(0 0 0 / 20%) 0px 11px 15px -7px',
431
+ modalBlurMedium: 'rgb(0 0 0 / 14%) 0px 24px 38px 3px',
432
+ modalBlurHeavy: 'rgb(0 0 0 / 12%) 0px 9px 22px 18px'
433
+ };
434
+ const size = {
435
+ 0: 0,
436
+ 0.5: 2,
437
+ 1: 4,
438
+ 2: 8,
439
+ '2.5': 10,
440
+ 3: 12,
441
+ 4: 16,
442
+ 5: 20,
443
+ 6: 24,
444
+ 7: 28,
445
+ 8: 32,
446
+ 9: 36,
447
+ 10: 40,
448
+ 11: 44,
449
+ 12: 48,
450
+ 13: 52,
451
+ 14: 56,
452
+ 15: 60,
453
+ 16: 64,
454
+ 19: 76,
455
+ 20: 80,
456
+ 25: 100,
457
+ 40: 160,
458
+ 50: 200,
459
+ 55: 220,
460
+ '50P': '50%',
461
+ '100P': '100%'
462
+ };
463
+ const spacing = {
464
+ 0: 0,
465
+ 0.5: 2,
466
+ 0.25: 1,
467
+ 0.75: 3,
468
+ 1: 4,
469
+ 1.5: 6,
470
+ 2: 8,
471
+ 3: 12,
472
+ 4: 16,
473
+ 5: 20,
474
+ 6: 24,
475
+ 7: 28,
476
+ 8: 32,
477
+ 9: 36,
478
+ 10: 40,
479
+ 11: 44,
480
+ 12: 48,
481
+ 13: 52,
482
+ 14: 56,
483
+ 16: 64
484
+ };
485
+ const typography = {
486
+ weight: {
487
+ bold: '700',
488
+ semibold: '600',
489
+ medium: '500',
490
+ normal: '400'
491
+ },
492
+ size: {
493
+ 8: 8,
494
+ 10: 10,
495
+ 12: 12,
496
+ 14: 14,
497
+ 16: 16,
498
+ 20: 20,
499
+ 24: 24,
500
+ 32: 32,
501
+ 40: 40,
502
+ 48: 48
503
+ },
504
+ lineHeight: {
505
+ 12: 12,
506
+ 14: 14,
507
+ 16: 16,
508
+ 18: 18,
509
+ 20: 20,
510
+ 22: 22,
511
+ 24: 24,
512
+ 28: 28,
513
+ 32: 32,
514
+ 40: 40,
515
+ 48: 48,
516
+ 56: 56
517
+ },
518
+ letterSpacing: {
519
+ nPoint75: -0.75,
520
+ nPoint5: -0.5,
521
+ nPoint4: -0.4,
522
+ nPoint25: -0.25,
523
+ nPoint2: -0.2,
524
+ zero: 0,
525
+ point2: 0.2,
526
+ point4: 0.4,
527
+ point5: 0.5,
528
+ point75: 0.75
529
+ },
530
+ fontFamily: 'Inter'
531
+ };
532
+
533
+ var isDevelopment$3 = false;
534
+
535
+ /*
536
+
537
+ Based off glamor's StyleSheet, thanks Sunil ❤️
538
+
539
+ high performance StyleSheet for css-in-js systems
540
+
541
+ - uses multiple style tags behind the scenes for millions of rules
542
+ - uses `insertRule` for appending in production for *much* faster performance
543
+
544
+ // usage
98
545
 
99
- (function (module) {
546
+ import { StyleSheet } from '@emotion/sheet'
547
+
548
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
549
+
550
+ styleSheet.insert('#box { border: 1px solid red; }')
551
+ - appends a css rule into the stylesheet
552
+
553
+ styleSheet.flush()
554
+ - empties the stylesheet of all its contents
555
+
556
+ */
557
+
558
+ function sheetForTag(tag) {
559
+ if (tag.sheet) {
560
+ return tag.sheet;
561
+ } // this weirdness brought to you by firefox
562
+
563
+ /* istanbul ignore next */
564
+
565
+ for (var i = 0; i < document.styleSheets.length; i++) {
566
+ if (document.styleSheets[i].ownerNode === tag) {
567
+ return document.styleSheets[i];
568
+ }
569
+ } // this function should always return with a value
570
+ // TS can't understand it though so we make it stop complaining here
571
+
572
+ return undefined;
573
+ }
574
+ function createStyleElement(options) {
575
+ var tag = document.createElement('style');
576
+ tag.setAttribute('data-emotion', options.key);
577
+ if (options.nonce !== undefined) {
578
+ tag.setAttribute('nonce', options.nonce);
579
+ }
580
+ tag.appendChild(document.createTextNode(''));
581
+ tag.setAttribute('data-s', '');
582
+ return tag;
583
+ }
584
+ var StyleSheet = /*#__PURE__*/function () {
585
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
586
+ function StyleSheet(options) {
587
+ var _this = this;
588
+ this._insertTag = function (tag) {
589
+ var before;
590
+ if (_this.tags.length === 0) {
591
+ if (_this.insertionPoint) {
592
+ before = _this.insertionPoint.nextSibling;
593
+ } else if (_this.prepend) {
594
+ before = _this.container.firstChild;
595
+ } else {
596
+ before = _this.before;
597
+ }
598
+ } else {
599
+ before = _this.tags[_this.tags.length - 1].nextSibling;
600
+ }
601
+ _this.container.insertBefore(tag, before);
602
+ _this.tags.push(tag);
603
+ };
604
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$3 : options.speedy;
605
+ this.tags = [];
606
+ this.ctr = 0;
607
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
100
608
 
101
- {
102
- module.exports = requireReactJsxRuntime_production_min();
609
+ this.key = options.key;
610
+ this.container = options.container;
611
+ this.prepend = options.prepend;
612
+ this.insertionPoint = options.insertionPoint;
613
+ this.before = null;
614
+ }
615
+ var _proto = StyleSheet.prototype;
616
+ _proto.hydrate = function hydrate(nodes) {
617
+ nodes.forEach(this._insertTag);
618
+ };
619
+ _proto.insert = function insert(rule) {
620
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
621
+ // it's 1 in dev because we insert source maps that map a single rule to a location
622
+ // and you can only have one source map per style tag
623
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
624
+ this._insertTag(createStyleElement(this));
625
+ }
626
+ var tag = this.tags[this.tags.length - 1];
627
+ if (this.isSpeedy) {
628
+ var sheet = sheetForTag(tag);
629
+ try {
630
+ // this is the ultrafast version, works across browsers
631
+ // the big drawback is that the css won't be editable in devtools
632
+ sheet.insertRule(rule, sheet.cssRules.length);
633
+ } catch (e) {}
634
+ } else {
635
+ tag.appendChild(document.createTextNode(rule));
103
636
  }
104
- })(jsxRuntime);
637
+ this.ctr++;
638
+ };
639
+ _proto.flush = function flush() {
640
+ this.tags.forEach(function (tag) {
641
+ var _tag$parentNode;
642
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
643
+ });
644
+ this.tags = [];
645
+ this.ctr = 0;
646
+ };
647
+ return StyleSheet;
648
+ }();
649
+
650
+ var stylisExports = {};
651
+ var stylis = {
652
+ get exports(){ return stylisExports; },
653
+ set exports(v){ stylisExports = v; },
654
+ };
105
655
 
106
- var styles = function (theme) {
656
+ (function (module, exports) {
657
+ (function (e, r) {
658
+ r(exports) ;
659
+ })(this, function (e) {
660
+
661
+ var r = "-ms-";
662
+ var a = "-moz-";
663
+ var c = "-webkit-";
664
+ var n = "comm";
665
+ var t = "rule";
666
+ var s = "decl";
667
+ var i = "@page";
668
+ var u = "@media";
669
+ var o = "@import";
670
+ var f = "@charset";
671
+ var l = "@viewport";
672
+ var p = "@supports";
673
+ var h = "@document";
674
+ var v = "@namespace";
675
+ var d = "@keyframes";
676
+ var b = "@font-face";
677
+ var w = "@counter-style";
678
+ var m = "@font-feature-values";
679
+ var g = "@layer";
680
+ var k = Math.abs;
681
+ var $ = String.fromCharCode;
682
+ var x = Object.assign;
683
+ function E(e, r) {
684
+ return M(e, 0) ^ 45 ? (((r << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
685
+ }
686
+ function y(e) {
687
+ return e.trim();
688
+ }
689
+ function T(e, r) {
690
+ return (e = r.exec(e)) ? e[0] : e;
691
+ }
692
+ function A(e, r, a) {
693
+ return e.replace(r, a);
694
+ }
695
+ function O(e, r) {
696
+ return e.indexOf(r);
697
+ }
698
+ function M(e, r) {
699
+ return e.charCodeAt(r) | 0;
700
+ }
701
+ function C(e, r, a) {
702
+ return e.slice(r, a);
703
+ }
704
+ function R(e) {
705
+ return e.length;
706
+ }
707
+ function S(e) {
708
+ return e.length;
709
+ }
710
+ function z(e, r) {
711
+ return r.push(e), e;
712
+ }
713
+ function N(e, r) {
714
+ return e.map(r).join("");
715
+ }
716
+ e.line = 1;
717
+ e.column = 1;
718
+ e.length = 0;
719
+ e.position = 0;
720
+ e.character = 0;
721
+ e.characters = "";
722
+ function P(r, a, c, n, t, s, i) {
107
723
  return {
108
- root: {
109
- paddingTop: theme.spacing[6],
110
- paddingBottom: theme.spacing[4],
111
- paddingLeft: theme.spacing[4],
112
- paddingRight: theme.spacing[4],
113
- },
724
+ value: r,
725
+ root: a,
726
+ parent: c,
727
+ type: n,
728
+ props: t,
729
+ children: s,
730
+ line: e.line,
731
+ column: e.column,
732
+ length: i,
733
+ return: ""
734
+ };
735
+ }
736
+ function j(e, r) {
737
+ return x(P("", null, null, "", null, null, 0), e, {
738
+ length: -e.length
739
+ }, r);
740
+ }
741
+ function U() {
742
+ return e.character;
743
+ }
744
+ function _() {
745
+ e.character = e.position > 0 ? M(e.characters, --e.position) : 0;
746
+ if (e.column--, e.character === 10) e.column = 1, e.line--;
747
+ return e.character;
748
+ }
749
+ function F() {
750
+ e.character = e.position < e.length ? M(e.characters, e.position++) : 0;
751
+ if (e.column++, e.character === 10) e.column = 1, e.line++;
752
+ return e.character;
753
+ }
754
+ function I() {
755
+ return M(e.characters, e.position);
756
+ }
757
+ function L() {
758
+ return e.position;
759
+ }
760
+ function D(r, a) {
761
+ return C(e.characters, r, a);
762
+ }
763
+ function Y(e) {
764
+ switch (e) {
765
+ case 0:
766
+ case 9:
767
+ case 10:
768
+ case 13:
769
+ case 32:
770
+ return 5;
771
+ case 33:
772
+ case 43:
773
+ case 44:
774
+ case 47:
775
+ case 62:
776
+ case 64:
777
+ case 126:
778
+ case 59:
779
+ case 123:
780
+ case 125:
781
+ return 4;
782
+ case 58:
783
+ return 3;
784
+ case 34:
785
+ case 39:
786
+ case 40:
787
+ case 91:
788
+ return 2;
789
+ case 41:
790
+ case 93:
791
+ return 1;
792
+ }
793
+ return 0;
794
+ }
795
+ function K(r) {
796
+ return e.line = e.column = 1, e.length = R(e.characters = r), e.position = 0, [];
797
+ }
798
+ function V(r) {
799
+ return e.characters = "", r;
800
+ }
801
+ function W(r) {
802
+ return y(D(e.position - 1, q(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
803
+ }
804
+ function B(e) {
805
+ return V(H(K(e)));
806
+ }
807
+ function G(r) {
808
+ while (e.character = I()) if (e.character < 33) F();else break;
809
+ return Y(r) > 2 || Y(e.character) > 3 ? "" : " ";
810
+ }
811
+ function H(r) {
812
+ while (F()) switch (Y(e.character)) {
813
+ case 0:
814
+ z(Q(e.position - 1), r);
815
+ break;
816
+ case 2:
817
+ z(W(e.character), r);
818
+ break;
819
+ default:
820
+ z($(e.character), r);
821
+ }
822
+ return r;
823
+ }
824
+ function Z(r, a) {
825
+ while (--a && F()) if (e.character < 48 || e.character > 102 || e.character > 57 && e.character < 65 || e.character > 70 && e.character < 97) break;
826
+ return D(r, L() + (a < 6 && I() == 32 && F() == 32));
827
+ }
828
+ function q(r) {
829
+ while (F()) switch (e.character) {
830
+ case r:
831
+ return e.position;
832
+ case 34:
833
+ case 39:
834
+ if (r !== 34 && r !== 39) q(e.character);
835
+ break;
836
+ case 40:
837
+ if (r === 41) q(r);
838
+ break;
839
+ case 92:
840
+ F();
841
+ break;
842
+ }
843
+ return e.position;
844
+ }
845
+ function J(r, a) {
846
+ while (F()) if (r + e.character === 47 + 10) break;else if (r + e.character === 42 + 42 && I() === 47) break;
847
+ return "/*" + D(a, e.position - 1) + "*" + $(r === 47 ? r : F());
848
+ }
849
+ function Q(r) {
850
+ while (!Y(I())) F();
851
+ return D(r, e.position);
852
+ }
853
+ function X(e) {
854
+ return V(ee("", null, null, null, [""], e = K(e), 0, [0], e));
855
+ }
856
+ function ee(e, r, a, c, n, t, s, i, u) {
857
+ var o = 0;
858
+ var f = 0;
859
+ var l = s;
860
+ var p = 0;
861
+ var h = 0;
862
+ var v = 0;
863
+ var d = 1;
864
+ var b = 1;
865
+ var w = 1;
866
+ var m = 0;
867
+ var g = "";
868
+ var k = n;
869
+ var x = t;
870
+ var E = c;
871
+ var y = g;
872
+ while (b) switch (v = m, m = F()) {
873
+ case 40:
874
+ if (v != 108 && M(y, l - 1) == 58) {
875
+ if (O(y += A(W(m), "&", "&\f"), "&\f") != -1) w = -1;
876
+ break;
877
+ }
878
+ case 34:
879
+ case 39:
880
+ case 91:
881
+ y += W(m);
882
+ break;
883
+ case 9:
884
+ case 10:
885
+ case 13:
886
+ case 32:
887
+ y += G(v);
888
+ break;
889
+ case 92:
890
+ y += Z(L() - 1, 7);
891
+ continue;
892
+ case 47:
893
+ switch (I()) {
894
+ case 42:
895
+ case 47:
896
+ z(ae(J(F(), L()), r, a), u);
897
+ break;
898
+ default:
899
+ y += "/";
900
+ }
901
+ break;
902
+ case 123 * d:
903
+ i[o++] = R(y) * w;
904
+ case 125 * d:
905
+ case 59:
906
+ case 0:
907
+ switch (m) {
908
+ case 0:
909
+ case 125:
910
+ b = 0;
911
+ case 59 + f:
912
+ if (w == -1) y = A(y, /\f/g, "");
913
+ if (h > 0 && R(y) - l) z(h > 32 ? ce(y + ";", c, a, l - 1) : ce(A(y, " ", "") + ";", c, a, l - 2), u);
914
+ break;
915
+ case 59:
916
+ y += ";";
917
+ default:
918
+ z(E = re(y, r, a, o, f, n, i, g, k = [], x = [], l), t);
919
+ if (m === 123) if (f === 0) ee(y, r, E, E, k, t, l, i, x);else switch (p === 99 && M(y, 3) === 110 ? 100 : p) {
920
+ case 100:
921
+ case 108:
922
+ case 109:
923
+ case 115:
924
+ ee(e, E, E, c && z(re(e, E, E, 0, 0, n, i, g, n, k = [], l), x), n, x, l, i, c ? k : x);
925
+ break;
926
+ default:
927
+ ee(y, E, E, E, [""], x, 0, i, x);
928
+ }
929
+ }
930
+ o = f = h = 0, d = w = 1, g = y = "", l = s;
931
+ break;
932
+ case 58:
933
+ l = 1 + R(y), h = v;
934
+ default:
935
+ if (d < 1) if (m == 123) --d;else if (m == 125 && d++ == 0 && _() == 125) continue;
936
+ switch (y += $(m), m * d) {
937
+ case 38:
938
+ w = f > 0 ? 1 : (y += "\f", -1);
939
+ break;
940
+ case 44:
941
+ i[o++] = (R(y) - 1) * w, w = 1;
942
+ break;
943
+ case 64:
944
+ if (I() === 45) y += W(F());
945
+ p = I(), f = l = R(g = y += Q(L())), m++;
946
+ break;
947
+ case 45:
948
+ if (v === 45 && R(y) == 2) d = 0;
949
+ }
950
+ }
951
+ return t;
952
+ }
953
+ function re(e, r, a, c, n, s, i, u, o, f, l) {
954
+ var p = n - 1;
955
+ var h = n === 0 ? s : [""];
956
+ var v = S(h);
957
+ for (var d = 0, b = 0, w = 0; d < c; ++d) for (var m = 0, g = C(e, p + 1, p = k(b = i[d])), $ = e; m < v; ++m) if ($ = y(b > 0 ? h[m] + " " + g : A(g, /&\f/g, h[m]))) o[w++] = $;
958
+ return P(e, r, a, n === 0 ? t : u, o, f, l);
959
+ }
960
+ function ae(e, r, a) {
961
+ return P(e, r, a, n, $(U()), C(e, 2, -2), 0);
962
+ }
963
+ function ce(e, r, a, c) {
964
+ return P(e, r, a, s, C(e, 0, c), C(e, c + 1, -1), c);
965
+ }
966
+ function ne(e, n, t) {
967
+ switch (E(e, n)) {
968
+ case 5103:
969
+ return c + "print-" + e + e;
970
+ case 5737:
971
+ case 4201:
972
+ case 3177:
973
+ case 3433:
974
+ case 1641:
975
+ case 4457:
976
+ case 2921:
977
+ case 5572:
978
+ case 6356:
979
+ case 5844:
980
+ case 3191:
981
+ case 6645:
982
+ case 3005:
983
+ case 6391:
984
+ case 5879:
985
+ case 5623:
986
+ case 6135:
987
+ case 4599:
988
+ case 4855:
989
+ case 4215:
990
+ case 6389:
991
+ case 5109:
992
+ case 5365:
993
+ case 5621:
994
+ case 3829:
995
+ return c + e + e;
996
+ case 4789:
997
+ return a + e + e;
998
+ case 5349:
999
+ case 4246:
1000
+ case 4810:
1001
+ case 6968:
1002
+ case 2756:
1003
+ return c + e + a + e + r + e + e;
1004
+ case 5936:
1005
+ switch (M(e, n + 11)) {
1006
+ case 114:
1007
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1008
+ case 108:
1009
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1010
+ case 45:
1011
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1012
+ }
1013
+ case 6828:
1014
+ case 4268:
1015
+ case 2903:
1016
+ return c + e + r + e + e;
1017
+ case 6165:
1018
+ return c + e + r + "flex-" + e + e;
1019
+ case 5187:
1020
+ return c + e + A(e, /(\w+).+(:[^]+)/, c + "box-$1$2" + r + "flex-$1$2") + e;
1021
+ case 5443:
1022
+ return c + e + r + "flex-item-" + A(e, /flex-|-self/g, "") + (!T(e, /flex-|baseline/) ? r + "grid-row-" + A(e, /flex-|-self/g, "") : "") + e;
1023
+ case 4675:
1024
+ return c + e + r + "flex-line-pack" + A(e, /align-content|flex-|-self/g, "") + e;
1025
+ case 5548:
1026
+ return c + e + r + A(e, "shrink", "negative") + e;
1027
+ case 5292:
1028
+ return c + e + r + A(e, "basis", "preferred-size") + e;
1029
+ case 6060:
1030
+ return c + "box-" + A(e, "-grow", "") + c + e + r + A(e, "grow", "positive") + e;
1031
+ case 4554:
1032
+ return c + A(e, /([^-])(transform)/g, "$1" + c + "$2") + e;
1033
+ case 6187:
1034
+ return A(A(A(e, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), e, "") + e;
1035
+ case 5495:
1036
+ case 3959:
1037
+ return A(e, /(image-set\([^]*)/, c + "$1" + "$`$1");
1038
+ case 4968:
1039
+ return A(A(e, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + e + e;
1040
+ case 4200:
1041
+ if (!T(e, /flex-|baseline/)) return r + "grid-column-align" + C(e, n) + e;
1042
+ break;
1043
+ case 2592:
1044
+ case 3360:
1045
+ return r + A(e, "template-", "") + e;
1046
+ case 4384:
1047
+ case 3616:
1048
+ if (t && t.some(function (e, r) {
1049
+ return n = r, T(e.props, /grid-\w+-end/);
1050
+ })) {
1051
+ return ~O(e + (t = t[n].value), "span") ? e : r + A(e, "-start", "") + e + r + "grid-row-span:" + (~O(t, "span") ? T(t, /\d+/) : +T(t, /\d+/) - +T(e, /\d+/)) + ";";
1052
+ }
1053
+ return r + A(e, "-start", "") + e;
1054
+ case 4896:
1055
+ case 4128:
1056
+ return t && t.some(function (e) {
1057
+ return T(e.props, /grid-\w+-start/);
1058
+ }) ? e : r + A(A(e, "-end", "-span"), "span ", "") + e;
1059
+ case 4095:
1060
+ case 3583:
1061
+ case 4068:
1062
+ case 2532:
1063
+ return A(e, /(.+)-inline(.+)/, c + "$1$2") + e;
1064
+ case 8116:
1065
+ case 7059:
1066
+ case 5753:
1067
+ case 5535:
1068
+ case 5445:
1069
+ case 5701:
1070
+ case 4933:
1071
+ case 4677:
1072
+ case 5533:
1073
+ case 5789:
1074
+ case 5021:
1075
+ case 4765:
1076
+ if (R(e) - 1 - n > 6) switch (M(e, n + 1)) {
1077
+ case 109:
1078
+ if (M(e, n + 4) !== 45) break;
1079
+ case 102:
1080
+ return A(e, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + a + (M(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
1081
+ case 115:
1082
+ return ~O(e, "stretch") ? ne(A(e, "stretch", "fill-available"), n, t) + e : e;
1083
+ }
1084
+ break;
1085
+ case 5152:
1086
+ case 5920:
1087
+ return A(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (a, c, n, t, s, i, u) {
1088
+ return r + c + ":" + n + u + (t ? r + c + "-span:" + (s ? i : +i - +n) + u : "") + e;
1089
+ });
1090
+ case 4949:
1091
+ if (M(e, n + 6) === 121) return A(e, ":", ":" + c) + e;
1092
+ break;
1093
+ case 6444:
1094
+ switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
1095
+ case 120:
1096
+ return A(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (M(e, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + r + "$2box$3") + e;
1097
+ case 100:
1098
+ return A(e, ":", ":" + r) + e;
1099
+ }
1100
+ break;
1101
+ case 5719:
1102
+ case 2647:
1103
+ case 2135:
1104
+ case 3927:
1105
+ case 2391:
1106
+ return A(e, "scroll-", "scroll-snap-") + e;
1107
+ }
1108
+ return e;
1109
+ }
1110
+ function te(e, r) {
1111
+ var a = "";
1112
+ var c = S(e);
1113
+ for (var n = 0; n < c; n++) a += r(e[n], n, e, r) || "";
1114
+ return a;
1115
+ }
1116
+ function se(e, r, a, c) {
1117
+ switch (e.type) {
1118
+ case g:
1119
+ if (e.children.length) break;
1120
+ case o:
1121
+ case s:
1122
+ return e.return = e.return || e.value;
1123
+ case n:
1124
+ return "";
1125
+ case d:
1126
+ return e.return = e.value + "{" + te(e.children, c) + "}";
1127
+ case t:
1128
+ e.value = e.props.join(",");
1129
+ }
1130
+ return R(a = te(e.children, c)) ? e.return = e.value + "{" + a + "}" : "";
1131
+ }
1132
+ function ie(e) {
1133
+ var r = S(e);
1134
+ return function (a, c, n, t) {
1135
+ var s = "";
1136
+ for (var i = 0; i < r; i++) s += e[i](a, c, n, t) || "";
1137
+ return s;
1138
+ };
1139
+ }
1140
+ function ue(e) {
1141
+ return function (r) {
1142
+ if (!r.root) if (r = r.return) e(r);
114
1143
  };
1144
+ }
1145
+ function oe(e, n, i, u) {
1146
+ if (e.length > -1) if (!e.return) switch (e.type) {
1147
+ case s:
1148
+ e.return = ne(e.value, e.length, i);
1149
+ return;
1150
+ case d:
1151
+ return te([j(e, {
1152
+ value: A(e.value, "@", "@" + c)
1153
+ })], u);
1154
+ case t:
1155
+ if (e.length) return N(e.props, function (n) {
1156
+ switch (T(n, /(::plac\w+|:read-\w+)/)) {
1157
+ case ":read-only":
1158
+ case ":read-write":
1159
+ return te([j(e, {
1160
+ props: [A(n, /:(read-\w+)/, ":" + a + "$1")]
1161
+ })], u);
1162
+ case "::placeholder":
1163
+ return te([j(e, {
1164
+ props: [A(n, /:(plac\w+)/, ":" + c + "input-$1")]
1165
+ }), j(e, {
1166
+ props: [A(n, /:(plac\w+)/, ":" + a + "$1")]
1167
+ }), j(e, {
1168
+ props: [A(n, /:(plac\w+)/, r + "input-$1")]
1169
+ })], u);
1170
+ }
1171
+ return "";
1172
+ });
1173
+ }
1174
+ }
1175
+ function fe(e) {
1176
+ switch (e.type) {
1177
+ case t:
1178
+ e.props = e.props.map(function (r) {
1179
+ return N(B(r), function (r, a, c) {
1180
+ switch (M(r, 0)) {
1181
+ case 12:
1182
+ return C(r, 1, R(r));
1183
+ case 0:
1184
+ case 40:
1185
+ case 43:
1186
+ case 62:
1187
+ case 126:
1188
+ return r;
1189
+ case 58:
1190
+ if (c[++a] === "global") c[a] = "", c[++a] = "\f" + C(c[a], a = 1, -1);
1191
+ case 32:
1192
+ return a === 1 ? "" : r;
1193
+ default:
1194
+ switch (a) {
1195
+ case 0:
1196
+ e = r;
1197
+ return S(c) > 1 ? "" : r;
1198
+ case a = S(c) - 1:
1199
+ case 2:
1200
+ return a === 2 ? r + e + e : r + e;
1201
+ default:
1202
+ return r;
1203
+ }
1204
+ }
1205
+ });
1206
+ });
1207
+ }
1208
+ }
1209
+ e.CHARSET = f;
1210
+ e.COMMENT = n;
1211
+ e.COUNTER_STYLE = w;
1212
+ e.DECLARATION = s;
1213
+ e.DOCUMENT = h;
1214
+ e.FONT_FACE = b;
1215
+ e.FONT_FEATURE_VALUES = m;
1216
+ e.IMPORT = o;
1217
+ e.KEYFRAMES = d;
1218
+ e.LAYER = g;
1219
+ e.MEDIA = u;
1220
+ e.MOZ = a;
1221
+ e.MS = r;
1222
+ e.NAMESPACE = v;
1223
+ e.PAGE = i;
1224
+ e.RULESET = t;
1225
+ e.SUPPORTS = p;
1226
+ e.VIEWPORT = l;
1227
+ e.WEBKIT = c;
1228
+ e.abs = k;
1229
+ e.alloc = K;
1230
+ e.append = z;
1231
+ e.assign = x;
1232
+ e.caret = L;
1233
+ e.char = U;
1234
+ e.charat = M;
1235
+ e.combine = N;
1236
+ e.comment = ae;
1237
+ e.commenter = J;
1238
+ e.compile = X;
1239
+ e.copy = j;
1240
+ e.dealloc = V;
1241
+ e.declaration = ce;
1242
+ e.delimit = W;
1243
+ e.delimiter = q;
1244
+ e.escaping = Z;
1245
+ e.from = $;
1246
+ e.hash = E;
1247
+ e.identifier = Q;
1248
+ e.indexof = O;
1249
+ e.match = T;
1250
+ e.middleware = ie;
1251
+ e.namespace = fe;
1252
+ e.next = F;
1253
+ e.node = P;
1254
+ e.parse = ee;
1255
+ e.peek = I;
1256
+ e.prefix = ne;
1257
+ e.prefixer = oe;
1258
+ e.prev = _;
1259
+ e.replace = A;
1260
+ e.ruleset = re;
1261
+ e.rulesheet = ue;
1262
+ e.serialize = te;
1263
+ e.sizeof = S;
1264
+ e.slice = D;
1265
+ e.stringify = se;
1266
+ e.strlen = R;
1267
+ e.substr = C;
1268
+ e.token = Y;
1269
+ e.tokenize = B;
1270
+ e.tokenizer = H;
1271
+ e.trim = y;
1272
+ e.whitespace = G;
1273
+ Object.defineProperty(e, "__esModule", {
1274
+ value: true
1275
+ });
1276
+ });
1277
+ })(stylis, stylisExports);
1278
+
1279
+ var weakMemoize = function weakMemoize(func) {
1280
+ var cache = new WeakMap();
1281
+ return function (arg) {
1282
+ if (cache.has(arg)) {
1283
+ // Use non-null assertion because we just checked that the cache `has` it
1284
+ // This allows us to remove `undefined` from the return value
1285
+ return cache.get(arg);
1286
+ }
1287
+ var ret = func(arg);
1288
+ cache.set(arg, ret);
1289
+ return ret;
1290
+ };
1291
+ };
1292
+
1293
+ function memoize(fn) {
1294
+ var cache = Object.create(null);
1295
+ return function (arg) {
1296
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1297
+ return cache[arg];
1298
+ };
1299
+ }
1300
+
1301
+ var isBrowser$4 = typeof document !== 'undefined';
1302
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1303
+ var previous = 0;
1304
+ var character = 0;
1305
+ while (true) {
1306
+ previous = character;
1307
+ character = stylisExports.peek(); // &\f
1308
+
1309
+ if (previous === 38 && character === 12) {
1310
+ points[index] = 1;
1311
+ }
1312
+ if (stylisExports.token(character)) {
1313
+ break;
1314
+ }
1315
+ stylisExports.next();
1316
+ }
1317
+ return stylisExports.slice(begin, stylisExports.position);
1318
+ };
1319
+ var toRules = function toRules(parsed, points) {
1320
+ // pretend we've started with a comma
1321
+ var index = -1;
1322
+ var character = 44;
1323
+ do {
1324
+ switch (stylisExports.token(character)) {
1325
+ case 0:
1326
+ // &\f
1327
+ if (character === 38 && stylisExports.peek() === 12) {
1328
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
1329
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
1330
+ // and when it should just concatenate the outer and inner selectors
1331
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
1332
+ points[index] = 1;
1333
+ }
1334
+ parsed[index] += identifierWithPointTracking(stylisExports.position - 1, points, index);
1335
+ break;
1336
+ case 2:
1337
+ parsed[index] += stylisExports.delimit(character);
1338
+ break;
1339
+ case 4:
1340
+ // comma
1341
+ if (character === 44) {
1342
+ // colon
1343
+ parsed[++index] = stylisExports.peek() === 58 ? '&\f' : '';
1344
+ points[index] = parsed[index].length;
1345
+ break;
1346
+ }
1347
+
1348
+ // fallthrough
1349
+
1350
+ default:
1351
+ parsed[index] += stylisExports.from(character);
1352
+ }
1353
+ } while (character = stylisExports.next());
1354
+ return parsed;
1355
+ };
1356
+ var getRules = function getRules(value, points) {
1357
+ return stylisExports.dealloc(toRules(stylisExports.alloc(value), points));
1358
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
1359
+
1360
+ var fixedElements = /* #__PURE__ */new WeakMap();
1361
+ var compat = function compat(element) {
1362
+ if (element.type !== 'rule' || !element.parent ||
1363
+ // positive .length indicates that this rule contains pseudo
1364
+ // negative .length indicates that this rule has been already prefixed
1365
+ element.length < 1) {
1366
+ return;
1367
+ }
1368
+ var value = element.value;
1369
+ var parent = element.parent;
1370
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
1371
+ while (parent.type !== 'rule') {
1372
+ parent = parent.parent;
1373
+ if (!parent) return;
1374
+ } // short-circuit for the simplest case
1375
+
1376
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
1377
+ /* colon */ && !fixedElements.get(parent)) {
1378
+ return;
1379
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
1380
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
1381
+
1382
+ if (isImplicitRule) {
1383
+ return;
1384
+ }
1385
+ fixedElements.set(element, true);
1386
+ var points = [];
1387
+ var rules = getRules(value, points);
1388
+ var parentRules = parent.props;
1389
+ for (var i = 0, k = 0; i < rules.length; i++) {
1390
+ for (var j = 0; j < parentRules.length; j++, k++) {
1391
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1392
+ }
1393
+ }
1394
+ };
1395
+ var removeLabel = function removeLabel(element) {
1396
+ if (element.type === 'decl') {
1397
+ var value = element.value;
1398
+ if (
1399
+ // charcode for l
1400
+ value.charCodeAt(0) === 108 &&
1401
+ // charcode for b
1402
+ value.charCodeAt(2) === 98) {
1403
+ // this ignores label
1404
+ element["return"] = '';
1405
+ element.value = '';
1406
+ }
1407
+ }
1408
+ };
1409
+
1410
+ /* eslint-disable no-fallthrough */
1411
+
1412
+ function prefix(value, length) {
1413
+ switch (stylisExports.hash(value, length)) {
1414
+ // color-adjust
1415
+ case 5103:
1416
+ return stylisExports.WEBKIT + 'print-' + value + value;
1417
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1418
+
1419
+ case 5737:
1420
+ case 4201:
1421
+ case 3177:
1422
+ case 3433:
1423
+ case 1641:
1424
+ case 4457:
1425
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1426
+
1427
+ case 5572:
1428
+ case 6356:
1429
+ case 5844:
1430
+ case 3191:
1431
+ case 6645:
1432
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1433
+
1434
+ case 6391:
1435
+ case 5879:
1436
+ case 5623:
1437
+ case 6135:
1438
+ case 4599:
1439
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1440
+
1441
+ case 4215:
1442
+ case 6389:
1443
+ case 5109:
1444
+ case 5365:
1445
+ case 5621:
1446
+ case 3829:
1447
+ return stylisExports.WEBKIT + value + value;
1448
+ // appearance, user-select, transform, hyphens, text-size-adjust
1449
+
1450
+ case 5349:
1451
+ case 4246:
1452
+ case 4810:
1453
+ case 6968:
1454
+ case 2756:
1455
+ return stylisExports.WEBKIT + value + stylisExports.MOZ + value + stylisExports.MS + value + value;
1456
+ // flex, flex-direction
1457
+
1458
+ case 6828:
1459
+ case 4268:
1460
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1461
+ // order
1462
+
1463
+ case 6165:
1464
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-' + value + value;
1465
+ // align-items
1466
+
1467
+ case 5187:
1468
+ return stylisExports.WEBKIT + value + stylisExports.replace(value, /(\w+).+(:[^]+)/, stylisExports.WEBKIT + 'box-$1$2' + stylisExports.MS + 'flex-$1$2') + value;
1469
+ // align-self
1470
+
1471
+ case 5443:
1472
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-item-' + stylisExports.replace(value, /flex-|-self/, '') + value;
1473
+ // align-content
1474
+
1475
+ case 4675:
1476
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-line-pack' + stylisExports.replace(value, /align-content|flex-|-self/, '') + value;
1477
+ // flex-shrink
1478
+
1479
+ case 5548:
1480
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'shrink', 'negative') + value;
1481
+ // flex-basis
1482
+
1483
+ case 5292:
1484
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'basis', 'preferred-size') + value;
1485
+ // flex-grow
1486
+
1487
+ case 6060:
1488
+ return stylisExports.WEBKIT + 'box-' + stylisExports.replace(value, '-grow', '') + stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'grow', 'positive') + value;
1489
+ // transition
1490
+
1491
+ case 4554:
1492
+ return stylisExports.WEBKIT + stylisExports.replace(value, /([^-])(transform)/g, '$1' + stylisExports.WEBKIT + '$2') + value;
1493
+ // cursor
1494
+
1495
+ case 6187:
1496
+ return stylisExports.replace(stylisExports.replace(stylisExports.replace(value, /(zoom-|grab)/, stylisExports.WEBKIT + '$1'), /(image-set)/, stylisExports.WEBKIT + '$1'), value, '') + value;
1497
+ // background, background-image
1498
+
1499
+ case 5495:
1500
+ case 3959:
1501
+ return stylisExports.replace(value, /(image-set\([^]*)/, stylisExports.WEBKIT + '$1' + '$`$1');
1502
+ // justify-content
1503
+
1504
+ case 4968:
1505
+ return stylisExports.replace(stylisExports.replace(value, /(.+:)(flex-)?(.*)/, stylisExports.WEBKIT + 'box-pack:$3' + stylisExports.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylisExports.WEBKIT + value + value;
1506
+ // (margin|padding)-inline-(start|end)
1507
+
1508
+ case 4095:
1509
+ case 3583:
1510
+ case 4068:
1511
+ case 2532:
1512
+ return stylisExports.replace(value, /(.+)-inline(.+)/, stylisExports.WEBKIT + '$1$2') + value;
1513
+ // (min|max)?(width|height|inline-size|block-size)
1514
+
1515
+ case 8116:
1516
+ case 7059:
1517
+ case 5753:
1518
+ case 5535:
1519
+ case 5445:
1520
+ case 5701:
1521
+ case 4933:
1522
+ case 4677:
1523
+ case 5533:
1524
+ case 5789:
1525
+ case 5021:
1526
+ case 4765:
1527
+ // stretch, max-content, min-content, fill-available
1528
+ if (stylisExports.strlen(value) - 1 - length > 6) switch (stylisExports.charat(value, length + 1)) {
1529
+ // (m)ax-content, (m)in-content
1530
+ case 109:
1531
+ // -
1532
+ if (stylisExports.charat(value, length + 4) !== 45) break;
1533
+ // (f)ill-available, (f)it-content
1534
+
1535
+ case 102:
1536
+ return stylisExports.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylisExports.WEBKIT + '$2-$3' + '$1' + stylisExports.MOZ + (stylisExports.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1537
+ // (s)tretch
1538
+
1539
+ case 115:
1540
+ return ~stylisExports.indexof(value, 'stretch') ? prefix(stylisExports.replace(value, 'stretch', 'fill-available'), length) + value : value;
1541
+ }
1542
+ break;
1543
+ // position: sticky
1544
+
1545
+ case 4949:
1546
+ // (s)ticky?
1547
+ if (stylisExports.charat(value, length + 1) !== 115) break;
1548
+ // display: (flex|inline-flex)
1549
+
1550
+ case 6444:
1551
+ switch (stylisExports.charat(value, stylisExports.strlen(value) - 3 - (~stylisExports.indexof(value, '!important') && 10))) {
1552
+ // stic(k)y
1553
+ case 107:
1554
+ return stylisExports.replace(value, ':', ':' + stylisExports.WEBKIT) + value;
1555
+ // (inline-)?fl(e)x
1556
+
1557
+ case 101:
1558
+ return stylisExports.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylisExports.WEBKIT + (stylisExports.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylisExports.WEBKIT + '$2$3' + '$1' + stylisExports.MS + '$2box$3') + value;
1559
+ }
1560
+ break;
1561
+ // writing-mode
1562
+
1563
+ case 5936:
1564
+ switch (stylisExports.charat(value, length + 11)) {
1565
+ // vertical-l(r)
1566
+ case 114:
1567
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1568
+ // vertical-r(l)
1569
+
1570
+ case 108:
1571
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1572
+ // horizontal(-)tb
1573
+
1574
+ case 45:
1575
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1576
+ }
1577
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1578
+ }
1579
+ return value;
1580
+ }
1581
+ var prefixer = function prefixer(element, index, children, callback) {
1582
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1583
+ case stylisExports.DECLARATION:
1584
+ element["return"] = prefix(element.value, element.length);
1585
+ break;
1586
+ case stylisExports.KEYFRAMES:
1587
+ return stylisExports.serialize([stylisExports.copy(element, {
1588
+ value: stylisExports.replace(element.value, '@', '@' + stylisExports.WEBKIT)
1589
+ })], callback);
1590
+ case stylisExports.RULESET:
1591
+ if (element.length) return stylisExports.combine(element.props, function (value) {
1592
+ switch (stylisExports.match(value, /(::plac\w+|:read-\w+)/)) {
1593
+ // :read-(only|write)
1594
+ case ':read-only':
1595
+ case ':read-write':
1596
+ return stylisExports.serialize([stylisExports.copy(element, {
1597
+ props: [stylisExports.replace(value, /:(read-\w+)/, ':' + stylisExports.MOZ + '$1')]
1598
+ })], callback);
1599
+ // :placeholder
1600
+
1601
+ case '::placeholder':
1602
+ return stylisExports.serialize([stylisExports.copy(element, {
1603
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.WEBKIT + 'input-$1')]
1604
+ }), stylisExports.copy(element, {
1605
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.MOZ + '$1')]
1606
+ }), stylisExports.copy(element, {
1607
+ props: [stylisExports.replace(value, /:(plac\w+)/, stylisExports.MS + 'input-$1')]
1608
+ })], callback);
1609
+ }
1610
+ return '';
1611
+ });
1612
+ }
1613
+ };
1614
+ var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
1615
+ return memoize(function () {
1616
+ return {};
1617
+ });
1618
+ });
1619
+ var defaultStylisPlugins = [prefixer];
1620
+ var createCache = function createCache(options) {
1621
+ var key = options.key;
1622
+ if (isBrowser$4 && key === 'css') {
1623
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1624
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1625
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1626
+ // that creating a cache works inside of render of a React component
1627
+
1628
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1629
+ // we want to only move elements which have a space in the data-emotion attribute value
1630
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1631
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1632
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1633
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1634
+ // will not result in the Emotion 10 styles being destroyed
1635
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1636
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1637
+ return;
1638
+ }
1639
+ document.head.appendChild(node);
1640
+ node.setAttribute('data-s', '');
1641
+ });
1642
+ }
1643
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1644
+ var inserted = {};
1645
+ var container;
1646
+ var nodesToHydrate = [];
1647
+ if (isBrowser$4) {
1648
+ container = options.container || document.head;
1649
+ Array.prototype.forEach.call(
1650
+ // this means we will ignore elements which don't have a space in them which
1651
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1652
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1653
+ var attrib = node.getAttribute("data-emotion").split(' ');
1654
+ for (var i = 1; i < attrib.length; i++) {
1655
+ inserted[attrib[i]] = true;
1656
+ }
1657
+ nodesToHydrate.push(node);
1658
+ });
1659
+ }
1660
+ var _insert;
1661
+ var omnipresentPlugins = [compat, removeLabel];
1662
+ if (!getServerStylisCache) {
1663
+ var currentSheet;
1664
+ var finalizingPlugins = [stylisExports.stringify, stylisExports.rulesheet(function (rule) {
1665
+ currentSheet.insert(rule);
1666
+ })];
1667
+ var serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1668
+ var stylis = function stylis(styles) {
1669
+ return stylisExports.serialize(stylisExports.compile(styles), serializer);
1670
+ };
1671
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1672
+ currentSheet = sheet;
1673
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1674
+ if (shouldCache) {
1675
+ cache.inserted[serialized.name] = true;
1676
+ }
1677
+ };
1678
+ } else {
1679
+ var _finalizingPlugins = [stylisExports.stringify];
1680
+ var _serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1681
+ var _stylis = function _stylis(styles) {
1682
+ return stylisExports.serialize(stylisExports.compile(styles), _serializer);
1683
+ };
1684
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1685
+ var getRules = function getRules(selector, serialized) {
1686
+ var name = serialized.name;
1687
+ if (serverStylisCache[name] === undefined) {
1688
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1689
+ }
1690
+ return serverStylisCache[name];
1691
+ };
1692
+ _insert = function _insert(selector, serialized, sheet, shouldCache) {
1693
+ var name = serialized.name;
1694
+ var rules = getRules(selector, serialized);
1695
+ if (cache.compat === undefined) {
1696
+ // in regular mode, we don't set the styles on the inserted cache
1697
+ // since we don't need to and that would be wasting memory
1698
+ // we return them so that they are rendered in a style tag
1699
+ if (shouldCache) {
1700
+ cache.inserted[name] = true;
1701
+ }
1702
+ return rules;
1703
+ } else {
1704
+ // in compat mode, we put the styles on the inserted cache so
1705
+ // that emotion-server can pull out the styles
1706
+ // except when we don't want to cache it which was in Global but now
1707
+ // is nowhere but we don't want to do a major right now
1708
+ // and just in case we're going to leave the case here
1709
+ // it's also not affecting client side bundle size
1710
+ // so it's really not a big deal
1711
+ if (shouldCache) {
1712
+ cache.inserted[name] = rules;
1713
+ } else {
1714
+ return rules;
1715
+ }
1716
+ }
1717
+ };
1718
+ }
1719
+ var cache = {
1720
+ key: key,
1721
+ sheet: new StyleSheet({
1722
+ key: key,
1723
+ container: container,
1724
+ nonce: options.nonce,
1725
+ speedy: options.speedy,
1726
+ prepend: options.prepend,
1727
+ insertionPoint: options.insertionPoint
1728
+ }),
1729
+ nonce: options.nonce,
1730
+ inserted: inserted,
1731
+ registered: {},
1732
+ insert: _insert
1733
+ };
1734
+ cache.sheet.hydrate(nodesToHydrate);
1735
+ return cache;
1736
+ };
1737
+
1738
+ /* eslint-disable */
1739
+ // Inspired by https://github.com/garycourt/murmurhash-js
1740
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1741
+ function murmur2(str) {
1742
+ // 'm' and 'r' are mixing constants generated offline.
1743
+ // They're not really 'magic', they just happen to work well.
1744
+ // const m = 0x5bd1e995;
1745
+ // const r = 24;
1746
+ // Initialize the hash
1747
+ var h = 0; // Mix 4 bytes at a time into the hash
1748
+
1749
+ var k,
1750
+ i = 0,
1751
+ len = str.length;
1752
+ for (; len >= 4; ++i, len -= 4) {
1753
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1754
+ k = /* Math.imul(k, m): */
1755
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1756
+ k ^= /* k >>> r: */
1757
+ k >>> 24;
1758
+ h = /* Math.imul(k, m): */
1759
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
1760
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1761
+ } // Handle the last few bytes of the input array
1762
+
1763
+ switch (len) {
1764
+ case 3:
1765
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1766
+ case 2:
1767
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1768
+ case 1:
1769
+ h ^= str.charCodeAt(i) & 0xff;
1770
+ h = /* Math.imul(h, m): */
1771
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1772
+ } // Do a few final mixes of the hash to ensure the last few
1773
+ // bytes are well-incorporated.
1774
+
1775
+ h ^= h >>> 13;
1776
+ h = /* Math.imul(h, m): */
1777
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1778
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1779
+ }
1780
+
1781
+ var unitlessKeys = {
1782
+ animationIterationCount: 1,
1783
+ aspectRatio: 1,
1784
+ borderImageOutset: 1,
1785
+ borderImageSlice: 1,
1786
+ borderImageWidth: 1,
1787
+ boxFlex: 1,
1788
+ boxFlexGroup: 1,
1789
+ boxOrdinalGroup: 1,
1790
+ columnCount: 1,
1791
+ columns: 1,
1792
+ flex: 1,
1793
+ flexGrow: 1,
1794
+ flexPositive: 1,
1795
+ flexShrink: 1,
1796
+ flexNegative: 1,
1797
+ flexOrder: 1,
1798
+ gridRow: 1,
1799
+ gridRowEnd: 1,
1800
+ gridRowSpan: 1,
1801
+ gridRowStart: 1,
1802
+ gridColumn: 1,
1803
+ gridColumnEnd: 1,
1804
+ gridColumnSpan: 1,
1805
+ gridColumnStart: 1,
1806
+ msGridRow: 1,
1807
+ msGridRowSpan: 1,
1808
+ msGridColumn: 1,
1809
+ msGridColumnSpan: 1,
1810
+ fontWeight: 1,
1811
+ lineHeight: 1,
1812
+ opacity: 1,
1813
+ order: 1,
1814
+ orphans: 1,
1815
+ scale: 1,
1816
+ tabSize: 1,
1817
+ widows: 1,
1818
+ zIndex: 1,
1819
+ zoom: 1,
1820
+ WebkitLineClamp: 1,
1821
+ // SVG-related properties
1822
+ fillOpacity: 1,
1823
+ floodOpacity: 1,
1824
+ stopOpacity: 1,
1825
+ strokeDasharray: 1,
1826
+ strokeDashoffset: 1,
1827
+ strokeMiterlimit: 1,
1828
+ strokeOpacity: 1,
1829
+ strokeWidth: 1
1830
+ };
1831
+
1832
+ var isDevelopment$2 = false;
1833
+ var hyphenateRegex = /[A-Z]|^ms/g;
1834
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1835
+ var isCustomProperty = function isCustomProperty(property) {
1836
+ return property.charCodeAt(1) === 45;
1837
+ };
1838
+ var isProcessableValue = function isProcessableValue(value) {
1839
+ return value != null && typeof value !== 'boolean';
1840
+ };
1841
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1842
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
1843
+ });
1844
+ var processStyleValue = function processStyleValue(key, value) {
1845
+ switch (key) {
1846
+ case 'animation':
1847
+ case 'animationName':
1848
+ {
1849
+ if (typeof value === 'string') {
1850
+ return value.replace(animationRegex, function (match, p1, p2) {
1851
+ cursor = {
1852
+ name: p1,
1853
+ styles: p2,
1854
+ next: cursor
1855
+ };
1856
+ return p1;
1857
+ });
1858
+ }
1859
+ }
1860
+ }
1861
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1862
+ return value + 'px';
1863
+ }
1864
+ return value;
1865
+ };
1866
+ var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1867
+ function handleInterpolation(mergedProps, registered, interpolation) {
1868
+ if (interpolation == null) {
1869
+ return '';
1870
+ }
1871
+ var componentSelector = interpolation;
1872
+ if (componentSelector.__emotion_styles !== undefined) {
1873
+ return componentSelector;
1874
+ }
1875
+ switch (typeof interpolation) {
1876
+ case 'boolean':
1877
+ {
1878
+ return '';
1879
+ }
1880
+ case 'object':
1881
+ {
1882
+ var keyframes = interpolation;
1883
+ if (keyframes.anim === 1) {
1884
+ cursor = {
1885
+ name: keyframes.name,
1886
+ styles: keyframes.styles,
1887
+ next: cursor
1888
+ };
1889
+ return keyframes.name;
1890
+ }
1891
+ var serializedStyles = interpolation;
1892
+ if (serializedStyles.styles !== undefined) {
1893
+ var next = serializedStyles.next;
1894
+ if (next !== undefined) {
1895
+ // not the most efficient thing ever but this is a pretty rare case
1896
+ // and there will be very few iterations of this generally
1897
+ while (next !== undefined) {
1898
+ cursor = {
1899
+ name: next.name,
1900
+ styles: next.styles,
1901
+ next: cursor
1902
+ };
1903
+ next = next.next;
1904
+ }
1905
+ }
1906
+ var styles = serializedStyles.styles + ";";
1907
+ return styles;
1908
+ }
1909
+ return createStringFromObject(mergedProps, registered, interpolation);
1910
+ }
1911
+ case 'function':
1912
+ {
1913
+ if (mergedProps !== undefined) {
1914
+ var previousCursor = cursor;
1915
+ var result = interpolation(mergedProps);
1916
+ cursor = previousCursor;
1917
+ return handleInterpolation(mergedProps, registered, result);
1918
+ }
1919
+ break;
1920
+ }
1921
+ } // finalize string values (regular strings and functions interpolated into css calls)
1922
+
1923
+ var asString = interpolation;
1924
+ if (registered == null) {
1925
+ return asString;
1926
+ }
1927
+ var cached = registered[asString];
1928
+ return cached !== undefined ? cached : asString;
1929
+ }
1930
+ function createStringFromObject(mergedProps, registered, obj) {
1931
+ var string = '';
1932
+ if (Array.isArray(obj)) {
1933
+ for (var i = 0; i < obj.length; i++) {
1934
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1935
+ }
1936
+ } else {
1937
+ for (var key in obj) {
1938
+ var value = obj[key];
1939
+ if (typeof value !== 'object') {
1940
+ var asString = value;
1941
+ if (registered != null && registered[asString] !== undefined) {
1942
+ string += key + "{" + registered[asString] + "}";
1943
+ } else if (isProcessableValue(asString)) {
1944
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
1945
+ }
1946
+ } else {
1947
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$2) {
1948
+ throw new Error(noComponentSelectorMessage);
1949
+ }
1950
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
1951
+ for (var _i = 0; _i < value.length; _i++) {
1952
+ if (isProcessableValue(value[_i])) {
1953
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
1954
+ }
1955
+ }
1956
+ } else {
1957
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1958
+ switch (key) {
1959
+ case 'animation':
1960
+ case 'animationName':
1961
+ {
1962
+ string += processStyleName(key) + ":" + interpolated + ";";
1963
+ break;
1964
+ }
1965
+ default:
1966
+ {
1967
+ string += key + "{" + interpolated + "}";
1968
+ }
1969
+ }
1970
+ }
1971
+ }
1972
+ }
1973
+ }
1974
+ return string;
1975
+ }
1976
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
1977
+ // keyframes are stored on the SerializedStyles object as a linked list
1978
+
1979
+ var cursor;
1980
+ function serializeStyles(args, registered, mergedProps) {
1981
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
1982
+ return args[0];
1983
+ }
1984
+ var stringMode = true;
1985
+ var styles = '';
1986
+ cursor = undefined;
1987
+ var strings = args[0];
1988
+ if (strings == null || strings.raw === undefined) {
1989
+ stringMode = false;
1990
+ styles += handleInterpolation(mergedProps, registered, strings);
1991
+ } else {
1992
+ var asTemplateStringsArr = strings;
1993
+ styles += asTemplateStringsArr[0];
1994
+ } // we start at 1 since we've already handled the first arg
1995
+
1996
+ for (var i = 1; i < args.length; i++) {
1997
+ styles += handleInterpolation(mergedProps, registered, args[i]);
1998
+ if (stringMode) {
1999
+ var templateStringsArr = strings;
2000
+ styles += templateStringsArr[i];
2001
+ }
2002
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
2003
+
2004
+ labelPattern.lastIndex = 0;
2005
+ var identifierName = '';
2006
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
2007
+
2008
+ while ((match = labelPattern.exec(styles)) !== null) {
2009
+ identifierName += '-' + match[1];
2010
+ }
2011
+ var name = murmur2(styles) + identifierName;
2012
+ return {
2013
+ name: name,
2014
+ styles: styles,
2015
+ next: cursor
2016
+ };
2017
+ }
2018
+
2019
+ var isBrowser$3 = typeof document !== 'undefined';
2020
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
2021
+ var rawClassName = '';
2022
+ classNames.split(' ').forEach(function (className) {
2023
+ if (registered[className] !== undefined) {
2024
+ registeredStyles.push(registered[className] + ";");
2025
+ } else if (className) {
2026
+ rawClassName += className + " ";
2027
+ }
2028
+ });
2029
+ return rawClassName;
2030
+ }
2031
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
2032
+ var className = cache.key + "-" + serialized.name;
2033
+ if (
2034
+ // we only need to add the styles to the registered cache if the
2035
+ // class name could be used further down
2036
+ // the tree but if it's a string tag, we know it won't
2037
+ // so we don't have to add it to registered cache.
2038
+ // this improves memory usage since we can avoid storing the whole style string
2039
+ (isStringTag === false ||
2040
+ // we need to always store it if we're in compat mode and
2041
+ // in node since emotion-server relies on whether a style is in
2042
+ // the registered cache to know whether a style is global or not
2043
+ // also, note that this check will be dead code eliminated in the browser
2044
+ isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
2045
+ cache.registered[className] = serialized.styles;
2046
+ }
2047
+ };
2048
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
2049
+ registerStyles(cache, serialized, isStringTag);
2050
+ var className = cache.key + "-" + serialized.name;
2051
+ if (cache.inserted[serialized.name] === undefined) {
2052
+ var stylesForSSR = '';
2053
+ var current = serialized;
2054
+ do {
2055
+ var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
2056
+ if (!isBrowser$3 && maybeStyles !== undefined) {
2057
+ stylesForSSR += maybeStyles;
2058
+ }
2059
+ current = current.next;
2060
+ } while (current !== undefined);
2061
+ if (!isBrowser$3 && stylesForSSR.length !== 0) {
2062
+ return stylesForSSR;
2063
+ }
2064
+ }
2065
+ };
2066
+
2067
+ function insertWithoutScoping(cache, serialized) {
2068
+ if (cache.inserted[serialized.name] === undefined) {
2069
+ return cache.insert('', serialized, cache.sheet, true);
2070
+ }
2071
+ }
2072
+ function merge(registered, css, className) {
2073
+ var registeredStyles = [];
2074
+ var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
2075
+ if (registeredStyles.length < 2) {
2076
+ return className;
2077
+ }
2078
+ return rawClassName + css(registeredStyles);
2079
+ }
2080
+ var createEmotion = function createEmotion(options) {
2081
+ var cache = createCache(options);
2082
+ cache.sheet.speedy = function (value) {
2083
+ this.isSpeedy = value;
2084
+ };
2085
+ cache.compat = true;
2086
+ var css = function css() {
2087
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2088
+ args[_key] = arguments[_key];
2089
+ }
2090
+ var serialized = serializeStyles(args, cache.registered, undefined);
2091
+ insertStyles(cache, serialized, false);
2092
+ return cache.key + "-" + serialized.name;
2093
+ };
2094
+ var keyframes = function keyframes() {
2095
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2096
+ args[_key2] = arguments[_key2];
2097
+ }
2098
+ var serialized = serializeStyles(args, cache.registered);
2099
+ var animation = "animation-" + serialized.name;
2100
+ insertWithoutScoping(cache, {
2101
+ name: serialized.name,
2102
+ styles: "@keyframes " + animation + "{" + serialized.styles + "}"
2103
+ });
2104
+ return animation;
2105
+ };
2106
+ var injectGlobal = function injectGlobal() {
2107
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2108
+ args[_key3] = arguments[_key3];
2109
+ }
2110
+ var serialized = serializeStyles(args, cache.registered);
2111
+ insertWithoutScoping(cache, serialized);
2112
+ };
2113
+ var cx = function cx() {
2114
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2115
+ args[_key4] = arguments[_key4];
2116
+ }
2117
+ return merge(cache.registered, css, classnames(args));
2118
+ };
2119
+ return {
2120
+ css: css,
2121
+ cx: cx,
2122
+ injectGlobal: injectGlobal,
2123
+ keyframes: keyframes,
2124
+ hydrate: function hydrate(ids) {
2125
+ ids.forEach(function (key) {
2126
+ cache.inserted[key] = true;
2127
+ });
2128
+ },
2129
+ flush: function flush() {
2130
+ cache.registered = {};
2131
+ cache.inserted = {};
2132
+ cache.sheet.flush();
2133
+ },
2134
+ sheet: cache.sheet,
2135
+ cache: cache,
2136
+ getRegisteredStyles: getRegisteredStyles.bind(null, cache.registered),
2137
+ merge: merge.bind(null, cache.registered, css)
2138
+ };
2139
+ };
2140
+ var classnames = function classnames(args) {
2141
+ var cls = '';
2142
+ for (var i = 0; i < args.length; i++) {
2143
+ var arg = args[i];
2144
+ if (arg == null) continue;
2145
+ var toAdd = void 0;
2146
+ switch (typeof arg) {
2147
+ case 'boolean':
2148
+ break;
2149
+ case 'object':
2150
+ {
2151
+ if (Array.isArray(arg)) {
2152
+ toAdd = classnames(arg);
2153
+ } else {
2154
+ toAdd = '';
2155
+ for (var k in arg) {
2156
+ if (arg[k] && k) {
2157
+ toAdd && (toAdd += ' ');
2158
+ toAdd += k;
2159
+ }
2160
+ }
2161
+ }
2162
+ break;
2163
+ }
2164
+ default:
2165
+ {
2166
+ toAdd = arg;
2167
+ }
2168
+ }
2169
+ if (toAdd) {
2170
+ cls && (cls += ' ');
2171
+ cls += toAdd;
2172
+ }
2173
+ }
2174
+ return cls;
2175
+ };
2176
+
2177
+ var _createEmotion = createEmotion({
2178
+ key: 'css'
2179
+ }),
2180
+ css = _createEmotion.css;
2181
+
2182
+ function _extends$1() {
2183
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
2184
+ for (var e = 1; e < arguments.length; e++) {
2185
+ var t = arguments[e];
2186
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2187
+ }
2188
+ return n;
2189
+ }, _extends$1.apply(null, arguments);
2190
+ }
2191
+
2192
+ var reactIsExports = {};
2193
+ var reactIs$1 = {
2194
+ get exports(){ return reactIsExports; },
2195
+ set exports(v){ reactIsExports = v; },
2196
+ };
2197
+
2198
+ var reactIs_production_min = {};
2199
+
2200
+ /** @license React v16.13.1
2201
+ * react-is.production.min.js
2202
+ *
2203
+ * Copyright (c) Facebook, Inc. and its affiliates.
2204
+ *
2205
+ * This source code is licensed under the MIT license found in the
2206
+ * LICENSE file in the root directory of this source tree.
2207
+ */
2208
+ var hasRequiredReactIs_production_min;
2209
+ function requireReactIs_production_min() {
2210
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
2211
+ hasRequiredReactIs_production_min = 1;
2212
+ var b = "function" === typeof Symbol && Symbol.for,
2213
+ c = b ? Symbol.for("react.element") : 60103,
2214
+ d = b ? Symbol.for("react.portal") : 60106,
2215
+ e = b ? Symbol.for("react.fragment") : 60107,
2216
+ f = b ? Symbol.for("react.strict_mode") : 60108,
2217
+ g = b ? Symbol.for("react.profiler") : 60114,
2218
+ h = b ? Symbol.for("react.provider") : 60109,
2219
+ k = b ? Symbol.for("react.context") : 60110,
2220
+ l = b ? Symbol.for("react.async_mode") : 60111,
2221
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
2222
+ n = b ? Symbol.for("react.forward_ref") : 60112,
2223
+ p = b ? Symbol.for("react.suspense") : 60113,
2224
+ q = b ? Symbol.for("react.suspense_list") : 60120,
2225
+ r = b ? Symbol.for("react.memo") : 60115,
2226
+ t = b ? Symbol.for("react.lazy") : 60116,
2227
+ v = b ? Symbol.for("react.block") : 60121,
2228
+ w = b ? Symbol.for("react.fundamental") : 60117,
2229
+ x = b ? Symbol.for("react.responder") : 60118,
2230
+ y = b ? Symbol.for("react.scope") : 60119;
2231
+ function z(a) {
2232
+ if ("object" === typeof a && null !== a) {
2233
+ var u = a.$$typeof;
2234
+ switch (u) {
2235
+ case c:
2236
+ switch (a = a.type, a) {
2237
+ case l:
2238
+ case m:
2239
+ case e:
2240
+ case g:
2241
+ case f:
2242
+ case p:
2243
+ return a;
2244
+ default:
2245
+ switch (a = a && a.$$typeof, a) {
2246
+ case k:
2247
+ case n:
2248
+ case t:
2249
+ case r:
2250
+ case h:
2251
+ return a;
2252
+ default:
2253
+ return u;
2254
+ }
2255
+ }
2256
+ case d:
2257
+ return u;
2258
+ }
2259
+ }
2260
+ }
2261
+ function A(a) {
2262
+ return z(a) === m;
2263
+ }
2264
+ reactIs_production_min.AsyncMode = l;
2265
+ reactIs_production_min.ConcurrentMode = m;
2266
+ reactIs_production_min.ContextConsumer = k;
2267
+ reactIs_production_min.ContextProvider = h;
2268
+ reactIs_production_min.Element = c;
2269
+ reactIs_production_min.ForwardRef = n;
2270
+ reactIs_production_min.Fragment = e;
2271
+ reactIs_production_min.Lazy = t;
2272
+ reactIs_production_min.Memo = r;
2273
+ reactIs_production_min.Portal = d;
2274
+ reactIs_production_min.Profiler = g;
2275
+ reactIs_production_min.StrictMode = f;
2276
+ reactIs_production_min.Suspense = p;
2277
+ reactIs_production_min.isAsyncMode = function (a) {
2278
+ return A(a) || z(a) === l;
2279
+ };
2280
+ reactIs_production_min.isConcurrentMode = A;
2281
+ reactIs_production_min.isContextConsumer = function (a) {
2282
+ return z(a) === k;
2283
+ };
2284
+ reactIs_production_min.isContextProvider = function (a) {
2285
+ return z(a) === h;
2286
+ };
2287
+ reactIs_production_min.isElement = function (a) {
2288
+ return "object" === typeof a && null !== a && a.$$typeof === c;
2289
+ };
2290
+ reactIs_production_min.isForwardRef = function (a) {
2291
+ return z(a) === n;
2292
+ };
2293
+ reactIs_production_min.isFragment = function (a) {
2294
+ return z(a) === e;
2295
+ };
2296
+ reactIs_production_min.isLazy = function (a) {
2297
+ return z(a) === t;
2298
+ };
2299
+ reactIs_production_min.isMemo = function (a) {
2300
+ return z(a) === r;
2301
+ };
2302
+ reactIs_production_min.isPortal = function (a) {
2303
+ return z(a) === d;
2304
+ };
2305
+ reactIs_production_min.isProfiler = function (a) {
2306
+ return z(a) === g;
2307
+ };
2308
+ reactIs_production_min.isStrictMode = function (a) {
2309
+ return z(a) === f;
2310
+ };
2311
+ reactIs_production_min.isSuspense = function (a) {
2312
+ return z(a) === p;
2313
+ };
2314
+ reactIs_production_min.isValidElementType = function (a) {
2315
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (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);
2316
+ };
2317
+ reactIs_production_min.typeOf = z;
2318
+ return reactIs_production_min;
2319
+ }
2320
+
2321
+ (function (module) {
2322
+
2323
+ {
2324
+ module.exports = requireReactIs_production_min();
2325
+ }
2326
+ })(reactIs$1);
2327
+
2328
+ var reactIs = reactIsExports;
2329
+ var FORWARD_REF_STATICS = {
2330
+ '$$typeof': true,
2331
+ render: true,
2332
+ defaultProps: true,
2333
+ displayName: true,
2334
+ propTypes: true
2335
+ };
2336
+ var MEMO_STATICS = {
2337
+ '$$typeof': true,
2338
+ compare: true,
2339
+ defaultProps: true,
2340
+ displayName: true,
2341
+ propTypes: true,
2342
+ type: true
2343
+ };
2344
+ var TYPE_STATICS = {};
2345
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
2346
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
2347
+
2348
+ var isBrowser$2 = typeof document !== 'undefined';
2349
+ var syncFallback = function syncFallback(create) {
2350
+ return create();
2351
+ };
2352
+ var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
2353
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
2354
+
2355
+ var isDevelopment$1 = false;
2356
+ var isBrowser$1 = typeof document !== 'undefined';
2357
+ var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext(
2358
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
2359
+ // because this module is primarily intended for the browser and node
2360
+ // but it's also required in react native and similar environments sometimes
2361
+ // and we could have a special build just for that
2362
+ // but this is much easier and the native packages
2363
+ // might use a different theme context in the future anyway
2364
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
2365
+ key: 'css'
2366
+ }) : null);
2367
+ EmotionCacheContext.Provider;
2368
+ var withEmotionCache = function withEmotionCache(func) {
2369
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
2370
+ // the cache will never be null in the browser
2371
+ var cache = React.useContext(EmotionCacheContext);
2372
+ return func(props, cache, ref);
2373
+ });
2374
+ };
2375
+ if (!isBrowser$1) {
2376
+ withEmotionCache = function withEmotionCache(func) {
2377
+ return function (props) {
2378
+ var cache = React.useContext(EmotionCacheContext);
2379
+ if (cache === null) {
2380
+ // yes, we're potentially creating this on every render
2381
+ // it doesn't actually matter though since it's only on the server
2382
+ // so there will only every be a single render
2383
+ // that could change in the future because of suspense and etc. but for now,
2384
+ // this works and i don't want to optimise for a future thing that we aren't sure about
2385
+ cache = createCache({
2386
+ key: 'css'
2387
+ });
2388
+ return /*#__PURE__*/React__namespace.createElement(EmotionCacheContext.Provider, {
2389
+ value: cache
2390
+ }, func(props, cache));
2391
+ } else {
2392
+ return func(props, cache);
2393
+ }
2394
+ };
2395
+ };
2396
+ }
2397
+ var ThemeContext$1 = /* #__PURE__ */React__namespace.createContext({});
2398
+ var hasOwn = {}.hasOwnProperty;
2399
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2400
+ var createEmotionProps = function createEmotionProps(type, props) {
2401
+ var newProps = {};
2402
+ for (var _key in props) {
2403
+ if (hasOwn.call(props, _key)) {
2404
+ newProps[_key] = props[_key];
2405
+ }
2406
+ }
2407
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
2408
+
2409
+ return newProps;
2410
+ };
2411
+ var Insertion$1 = function Insertion(_ref) {
2412
+ var cache = _ref.cache,
2413
+ serialized = _ref.serialized,
2414
+ isStringTag = _ref.isStringTag;
2415
+ registerStyles(cache, serialized, isStringTag);
2416
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2417
+ return insertStyles(cache, serialized, isStringTag);
2418
+ });
2419
+ if (!isBrowser$1 && rules !== undefined) {
2420
+ var _ref2;
2421
+ var serializedNames = serialized.name;
2422
+ var next = serialized.next;
2423
+ while (next !== undefined) {
2424
+ serializedNames += ' ' + next.name;
2425
+ next = next.next;
2426
+ }
2427
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2428
+ __html: rules
2429
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2430
+ }
2431
+ return null;
2432
+ };
2433
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2434
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
2435
+ // not passing the registered cache to serializeStyles because it would
2436
+ // make certain babel optimisations not possible
2437
+
2438
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
2439
+ cssProp = cache.registered[cssProp];
2440
+ }
2441
+ var WrappedComponent = props[typePropName];
2442
+ var registeredStyles = [cssProp];
2443
+ var className = '';
2444
+ if (typeof props.className === 'string') {
2445
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2446
+ } else if (props.className != null) {
2447
+ className = props.className + " ";
2448
+ }
2449
+ var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext$1));
2450
+ className += cache.key + "-" + serialized.name;
2451
+ var newProps = {};
2452
+ for (var _key2 in props) {
2453
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && !isDevelopment$1) {
2454
+ newProps[_key2] = props[_key2];
2455
+ }
2456
+ }
2457
+ newProps.className = className;
2458
+ if (ref) {
2459
+ newProps.ref = ref;
2460
+ }
2461
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$1, {
2462
+ cache: cache,
2463
+ serialized: serialized,
2464
+ isStringTag: typeof WrappedComponent === 'string'
2465
+ }), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
2466
+ });
2467
+ var Emotion$1 = Emotion;
2468
+
2469
+ var _extendsExports = {};
2470
+ var _extends = {
2471
+ get exports(){ return _extendsExports; },
2472
+ set exports(v){ _extendsExports = v; },
2473
+ };
2474
+
2475
+ (function (module) {
2476
+ function _extends() {
2477
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
2478
+ for (var e = 1; e < arguments.length; e++) {
2479
+ var t = arguments[e];
2480
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2481
+ }
2482
+ return n;
2483
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
2484
+ }
2485
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
2486
+ })(_extends);
2487
+
2488
+ var jsx = function jsx(type, props) {
2489
+ // eslint-disable-next-line prefer-rest-params
2490
+ var args = arguments;
2491
+ if (props == null || !hasOwn.call(props, 'css')) {
2492
+ return React__namespace.createElement.apply(undefined, args);
2493
+ }
2494
+ var argsLength = args.length;
2495
+ var createElementArgArray = new Array(argsLength);
2496
+ createElementArgArray[0] = Emotion$1;
2497
+ createElementArgArray[1] = createEmotionProps(type, props);
2498
+ for (var i = 2; i < argsLength; i++) {
2499
+ createElementArgArray[i] = args[i];
2500
+ }
2501
+ return React__namespace.createElement.apply(null, createElementArgArray);
2502
+ };
2503
+ (function (_jsx) {
2504
+ var JSX;
2505
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
2506
+ })(jsx || (jsx = {}));
2507
+
2508
+ // eslint-disable-next-line no-undef
2509
+ 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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
2510
+
2511
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
2512
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2513
+ /* o */ && prop.charCodeAt(1) === 110
2514
+ /* n */ && prop.charCodeAt(2) < 91;
2515
+ }
2516
+ /* Z+1 */);
2517
+
2518
+ var isBrowser = typeof document !== 'undefined';
2519
+ var isDevelopment = false;
2520
+ var testOmitPropsOnStringTag = isPropValid;
2521
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
2522
+ return key !== 'theme';
2523
+ };
2524
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
2525
+ return typeof tag === 'string' &&
2526
+ // 96 is one less than the char code
2527
+ // for "a" so this is checking that
2528
+ // it's a lowercase character
2529
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2530
+ };
2531
+ var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
2532
+ var shouldForwardProp;
2533
+ if (options) {
2534
+ var optionsShouldForwardProp = options.shouldForwardProp;
2535
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
2536
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2537
+ } : optionsShouldForwardProp;
2538
+ }
2539
+ if (typeof shouldForwardProp !== 'function' && isReal) {
2540
+ shouldForwardProp = tag.__emotion_forwardProp;
2541
+ }
2542
+ return shouldForwardProp;
2543
+ };
2544
+ var Insertion = function Insertion(_ref) {
2545
+ var cache = _ref.cache,
2546
+ serialized = _ref.serialized,
2547
+ isStringTag = _ref.isStringTag;
2548
+ registerStyles(cache, serialized, isStringTag);
2549
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2550
+ return insertStyles(cache, serialized, isStringTag);
2551
+ });
2552
+ if (!isBrowser && rules !== undefined) {
2553
+ var _ref2;
2554
+ var serializedNames = serialized.name;
2555
+ var next = serialized.next;
2556
+ while (next !== undefined) {
2557
+ serializedNames += ' ' + next.name;
2558
+ next = next.next;
2559
+ }
2560
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2561
+ __html: rules
2562
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2563
+ }
2564
+ return null;
2565
+ };
2566
+ var createStyled = function createStyled(tag, options) {
2567
+ var isReal = tag.__emotion_real === tag;
2568
+ var baseTag = isReal && tag.__emotion_base || tag;
2569
+ var identifierName;
2570
+ var targetClassName;
2571
+ if (options !== undefined) {
2572
+ identifierName = options.label;
2573
+ targetClassName = options.target;
2574
+ }
2575
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2576
+ var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2577
+ var shouldUseAs = !defaultShouldForwardProp('as');
2578
+ return function () {
2579
+ // eslint-disable-next-line prefer-rest-params
2580
+ var args = arguments;
2581
+ var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
2582
+ if (identifierName !== undefined) {
2583
+ styles.push("label:" + identifierName + ";");
2584
+ }
2585
+ if (args[0] == null || args[0].raw === undefined) {
2586
+ // eslint-disable-next-line prefer-spread
2587
+ styles.push.apply(styles, args);
2588
+ } else {
2589
+ var templateStringsArr = args[0];
2590
+ styles.push(templateStringsArr[0]);
2591
+ var len = args.length;
2592
+ var i = 1;
2593
+ for (; i < len; i++) {
2594
+ styles.push(args[i], templateStringsArr[i]);
2595
+ }
2596
+ }
2597
+ var Styled = withEmotionCache(function (props, cache, ref) {
2598
+ var FinalTag = shouldUseAs && props.as || baseTag;
2599
+ var className = '';
2600
+ var classInterpolations = [];
2601
+ var mergedProps = props;
2602
+ if (props.theme == null) {
2603
+ mergedProps = {};
2604
+ for (var key in props) {
2605
+ mergedProps[key] = props[key];
2606
+ }
2607
+ mergedProps.theme = React__namespace.useContext(ThemeContext$1);
2608
+ }
2609
+ if (typeof props.className === 'string') {
2610
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2611
+ } else if (props.className != null) {
2612
+ className = props.className + " ";
2613
+ }
2614
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2615
+ className += cache.key + "-" + serialized.name;
2616
+ if (targetClassName !== undefined) {
2617
+ className += " " + targetClassName;
2618
+ }
2619
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2620
+ var newProps = {};
2621
+ for (var _key in props) {
2622
+ if (shouldUseAs && _key === 'as') continue;
2623
+ if (finalShouldForwardProp(_key)) {
2624
+ newProps[_key] = props[_key];
2625
+ }
2626
+ }
2627
+ newProps.className = className;
2628
+ if (ref) {
2629
+ newProps.ref = ref;
2630
+ }
2631
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
2632
+ cache: cache,
2633
+ serialized: serialized,
2634
+ isStringTag: typeof FinalTag === 'string'
2635
+ }), /*#__PURE__*/React__namespace.createElement(FinalTag, newProps));
2636
+ });
2637
+ Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
2638
+ Styled.defaultProps = tag.defaultProps;
2639
+ Styled.__emotion_real = Styled;
2640
+ Styled.__emotion_base = baseTag;
2641
+ Styled.__emotion_styles = styles;
2642
+ Styled.__emotion_forwardProp = shouldForwardProp;
2643
+ Object.defineProperty(Styled, 'toString', {
2644
+ value: function value() {
2645
+ if (targetClassName === undefined && isDevelopment) {
2646
+ return 'NO_COMPONENT_SELECTOR';
2647
+ }
2648
+ return "." + targetClassName;
2649
+ }
2650
+ });
2651
+ Styled.withComponent = function (nextTag, nextOptions) {
2652
+ var newStyled = createStyled(nextTag, _extends$1({}, options, nextOptions, {
2653
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2654
+ }));
2655
+ return newStyled.apply(void 0, styles);
2656
+ };
2657
+ return Styled;
2658
+ };
2659
+ };
2660
+
2661
+ var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr',
2662
+ // SVG
2663
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2664
+
2665
+ // bind it to avoid mutating the original function
2666
+ var styled = createStyled.bind(null);
2667
+ tags.forEach(function (tagName) {
2668
+ styled[tagName] = styled(tagName);
2669
+ });
2670
+
2671
+ const duration = {
2672
+ shortest: 150,
2673
+ shorter: 200,
2674
+ short: 250,
2675
+ standard: 300,
2676
+ complex: 375,
2677
+ enteringScreen: 225,
2678
+ leavingScreen: 195
2679
+ };
2680
+ const easing = {
2681
+ easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
2682
+ easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
2683
+ easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
2684
+ sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
2685
+ };
2686
+ function getAutoHeightDuration(height) {
2687
+ if (!height) {
2688
+ return 0;
2689
+ }
2690
+ const constant = height / 36;
2691
+ return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
2692
+ }
2693
+ const create = (props = ['all'], options = {}) => {
2694
+ const {
2695
+ duration: durationOption = duration.standard,
2696
+ easing: easingOption = easing.easeInOut,
2697
+ delay = 0
2698
+ } = options;
2699
+ return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : `${durationOption}ms`} ${easingOption} ${typeof delay === 'string' ? delay : `${delay}ms`}`).join(',');
2700
+ };
2701
+ const zIndex = {
2702
+ drawer: 1200,
2703
+ modal: 1300,
2704
+ popOver: 1300,
2705
+ tooltip: 1500,
2706
+ sideNav: 100,
2707
+ toolbar: 50,
2708
+ bottomSheet: 100,
2709
+ pageLoader: 1600
2710
+ };
2711
+ const counter$1 = {
2712
+ enabled: {
2713
+ stroke: colors.neutral900
2714
+ },
2715
+ disabled: {
2716
+ stroke: colors.neutral500
2717
+ }
2718
+ };
2719
+ const BaseTheme = {
2720
+ color: {
2721
+ text: {
2722
+ primary: colors.neutral900,
2723
+ secondary: colors.brandText,
2724
+ tertiary: colors.neutral500,
2725
+ heading: colors.neutral900,
2726
+ subHeading: colors.neutral700,
2727
+ disabled: colors.disabledText,
2728
+ success: colors.successText,
2729
+ alert: colors.alertText,
2730
+ warning: colors.warningText,
2731
+ link: colors.linkText,
2732
+ brand: colors.brandText,
2733
+ neutral: colors.neutral100,
2734
+ link2: colors.link2,
2735
+ margarita: colors.margarita750,
2736
+ primary2: colors.grapetini900,
2737
+ secondary2: colors.blue100,
2738
+ grapetini900: colors.grapetini900,
2739
+ pinaColada750: colors.pinaColada750,
2740
+ alert500: colors.alert500,
2741
+ neutral50: colors.neutral50,
2742
+ margarita750: colors.margarita750,
2743
+ green100: colors.green100,
2744
+ red100: colors.red100,
2745
+ red500: colors.red500,
2746
+ coralpink: colors.pinkVibrant500,
2747
+ primary3: colors.bluePrimary500,
2748
+ alert300: colors.alert300,
2749
+ gray700: colors.gray700,
2750
+ neutral650: colors.neutral650,
2751
+ neutral675: colors.neutral675,
2752
+ red400: colors.red400,
2753
+ green700: colors.green700,
2754
+ neutral150: colors.neutral150,
2755
+ blue700: colors.blue700,
2756
+ orange200: colors.orange200,
2757
+ neutral600: colors.neutral600,
2758
+ green800: colors.green800,
2759
+ onBrand: colors.orange200,
2760
+ pink500: colors.pink500,
2761
+ pink400: colors.pink400,
2762
+ calloutSuccessTitle: colors.couponGreen,
2763
+ calloutDangerTitle: colors.red500,
2764
+ calloutInfoTitle: colors.link,
2765
+ calloutNeutralTitle: colors.neutral900Muted,
2766
+ black000: colors.black000,
2767
+ blue550: colors.blue550,
2768
+ green400: colors.green400,
2769
+ red450: colors.red450,
2770
+ orange350: colors.orange350,
2771
+ taupe500: colors.taupe500,
2772
+ superGrey300: colors.superGrey300,
2773
+ neutral880: colors.neutral880
2774
+ },
2775
+ button: {
2776
+ outlinedPrimaryLabel: colors.neutral900,
2777
+ outlinedPrimaryBorder: colors.neutral900,
2778
+ outlinedPrimaryBg: colors.neutral100,
2779
+ outlinedSecondaryLabel: colors.brand,
2780
+ outlinedSecondaryBorder: colors.brand,
2781
+ outlinedSecondaryBg: colors.neutral100,
2782
+ outlinedTertiaryLabel: colors.link,
2783
+ outlinedTertiaryBorder: colors.link,
2784
+ outlinedTertiaryBg: colors.neutral100,
2785
+ outlinedDisabledLabel: colors.disabledText,
2786
+ outlinedDisabledBg: colors.neutral300,
2787
+ containedPrimaryLabel: colors.neutral100,
2788
+ containedPrimaryBg: colors.neutral900,
2789
+ containedPrimarySoftBg: colors.orange150,
2790
+ containedSecondaryLabel: colors.neutral100,
2791
+ containedSecondaryBg: colors.brand,
2792
+ containedTertiaryLabel: colors.neutral100,
2793
+ containedTertiaryBg: colors.link,
2794
+ containedDisabledLabel: colors.disabledText,
2795
+ containedDisabledBg: colors.neutral300,
2796
+ containedNeutralLabel: colors.neutral900,
2797
+ containedNeutralBg: colors.neutral100,
2798
+ outlinedNeutralLabel: colors.neutral900,
2799
+ outlinedNeutralBorder: colors.neutral900,
2800
+ outlinedNeutralBg: colors.neutral100,
2801
+ containedSuccessLabel: colors.neutral100,
2802
+ containedSuccessBg: colors.success500,
2803
+ outlinedSuccessLabel: colors.success500,
2804
+ outlinedSuccessBorder: colors.success500,
2805
+ outlinedSuccessBg: colors.neutral100,
2806
+ containedDangerLabel: colors.neutral100,
2807
+ containedDangerBg: colors.red500,
2808
+ outlinedDangerLabel: colors.red500,
2809
+ outlinedDangerBorder: colors.red500,
2810
+ outlinedDangerBg: colors.neutral100,
2811
+ hover: {
2812
+ [colors.neutral100]: colors.neutral100,
2813
+ [colors.neutral900]: colors.neutral900,
2814
+ [colors.neutral900]: colors.neutral900,
2815
+ [colors.neutral100]: colors.neutral100,
2816
+ [colors.brand]: colors.bgPrimaryHover,
2817
+ [colors.neutral100]: colors.neutral100,
2818
+ [colors.disabledText]: colors.disabledText,
2819
+ [colors.neutral300]: colors.neutral300,
2820
+ [colors.neutral100]: colors.neutral100,
2821
+ [colors.link2]: colors.link2Hover,
2822
+ [colors.neutral100]: colors.neutral100,
2823
+ [colors.neutral900]: colors.neutral900,
2824
+ [colors.neutral100]: colors.neutral100,
2825
+ [colors.disabledText]: colors.disabledText,
2826
+ [colors.neutral300]: colors.neutral300
2827
+ }
2828
+ },
2829
+ chip: {
2830
+ nonSelectedPrimaryLabel: colors.neutral900,
2831
+ disabledPrimaryLabel: colors.disabledText,
2832
+ selectedPrimaryLabel: colors.neutral900,
2833
+ selectedPrimaryBorder: colors.neutral900,
2834
+ selectedPrimaryBg: colors.neutral300,
2835
+ disabledPrimaryBg: colors.neutral300
2836
+ },
2837
+ dropdown: {
2838
+ shadow: colors.shadow
2839
+ },
2840
+ tab: {
2841
+ nonSelectedPrimaryLabel: colors.neutral700,
2842
+ selectedPrimaryLabel: colors.neutral900
2843
+ },
2844
+ sidenav: {
2845
+ primaryBg: colors.neutral900,
2846
+ selectedTabBg: colors.highlightBg
2847
+ },
2848
+ tooltip: {
2849
+ primaryBg: colors.neutral900
2850
+ },
2851
+ background: {
2852
+ primary: colors.neutral900,
2853
+ secondary: colors.brand,
2854
+ tertiary: colors.link,
2855
+ brand: colors.brand,
2856
+ brandLightBg: colors.brandBg,
2857
+ link: colors.link,
2858
+ link2: colors.link2,
2859
+ linkLightBg: colors.linkBg,
2860
+ success: colors.success,
2861
+ successLightBg: colors.successBg,
2862
+ alert: colors.alert,
2863
+ alertLightBg: colors.alertBg,
2864
+ alertSoft: colors.alert100,
2865
+ warning: colors.warning,
2866
+ warningLightBg: colors.warningBg,
2867
+ calloutSuccessBg: colors.freshGreen100,
2868
+ calloutDangerBg: colors.red200,
2869
+ calloutInfoBg: colors.blue100,
2870
+ calloutNeutralBg: colors.neutral300,
2871
+ neutral: colors.neutral100,
2872
+ disabled: colors.neutral300,
2873
+ disabledSecondaryLight: colors.neutral350,
2874
+ disabledSecondary: colors.neutral400,
2875
+ disabledDark: colors.disabled100,
2876
+ defaultDark: colors.neutral700,
2877
+ darkGrey: colors.darkGrey,
2878
+ defaultDarkest: colors.neutral900,
2879
+ darkNetural300: colors.darkNeutral300,
2880
+ transparent: colors.transparent,
2881
+ secondary2: colors.blue100,
2882
+ gray500: colors.gray500,
2883
+ mintCream: colors.mintCream,
2884
+ pinaColada100: colors.pinaColada100,
2885
+ margarita100: colors.margarita100,
2886
+ lightCyan: colors.lightCyan,
2887
+ neutral300: colors.neutral300,
2888
+ orange200: colors.orange200,
2889
+ couponGreen: colors.couponGreen,
2890
+ black100: colors.black100,
2891
+ orange100: colors.orange100,
2892
+ lightRed: colors.red100,
2893
+ margarita500: colors.margarita500,
2894
+ neutral100: colors.neutral100,
2895
+ neutral250: colors.neutral250,
2896
+ neutral625: colors.neutral625,
2897
+ grapetini100: colors.grapetini100,
2898
+ freshGreen250: colors.freshGreen250,
2899
+ orange500: colors.orange500,
2900
+ purple700: colors.purple700,
2901
+ neutralOpacity8: colors.neutralOpacity8,
2902
+ pink50: colors.pink50,
2903
+ pink75: colors.pink75,
2904
+ pink200: colors.pink200,
2905
+ pink150: colors.pink150,
2906
+ orange300: colors.orange300,
2907
+ green200: colors.green200,
2908
+ neutral75: colors.neutral75,
2909
+ neutral175: colors.neutral175,
2910
+ neutral375: colors.neutral375,
2911
+ blue50: colors.blue50,
2912
+ blue400: colors.blue400,
2913
+ red600: colors.red600,
2914
+ blackShadow90: colors.blackShadow90,
2915
+ green50: colors.green50,
2916
+ orange150: colors.orange150,
2917
+ cream50: colors.cream50,
2918
+ blue150: colors.blue150,
2919
+ blue175: colors.blue175,
2920
+ neutral210: colors.neutral210,
2921
+ neutral285: colors.neutral285,
2922
+ neutral848: colors.neutral848,
2923
+ neutral850: colors.neutral850,
2924
+ black050: colors.black050,
2925
+ brand100: colors.brand
2926
+ },
2927
+ border: {
2928
+ primary: colors.neutral900,
2929
+ secondary: colors.brand,
2930
+ tertiary: colors.link,
2931
+ brand: colors.brand,
2932
+ neutral: colors.neutral900,
2933
+ link: colors.link,
2934
+ default: colors.line,
2935
+ defaultDark: colors.neutral700,
2936
+ disabled: colors.neutral500,
2937
+ disabledDark: colors.disabled100,
2938
+ warning: colors.warning,
2939
+ divider: colors.neutral300,
2940
+ borderAccent: colors.lightSkyBlue,
2941
+ neutral100: colors.neutral100,
2942
+ bluePrimary500: colors.bluePrimary500,
2943
+ disabled100: colors.disabled100,
2944
+ lightGray: colors.lightGray,
2945
+ darkRed: colors.red500,
2946
+ neutral150: colors.neutral150,
2947
+ neutral275: colors.neutral275,
2948
+ neutral325: colors.neutral325,
2949
+ neutralShadowOpacity10: colors.neutralShadowOpacity10,
2950
+ pink75: colors.pink75,
2951
+ pink100: colors.pink100,
2952
+ pink200: colors.pink200,
2953
+ orange300: colors.orange300,
2954
+ green200: colors.green200,
2955
+ neutral235: colors.neutral235,
2956
+ neutral250: colors.neutral250,
2957
+ orange400: colors.orange400,
2958
+ neutral340: colors.neutral340,
2959
+ neutral245: colors.neutral245
2960
+ },
2961
+ spinner: {
2962
+ primary: colors.neutral700,
2963
+ primaryBg: colors.alertBg
2964
+ },
2965
+ shimmer: {
2966
+ disabledLight: colors.disabledLight,
2967
+ disabledDark: colors.disabled250
2968
+ },
2969
+ coupon: {
2970
+ primaryBg: colors.blue100
2971
+ },
2972
+ alert: {
2973
+ success: colors.successBg,
2974
+ warning: colors.alertBg,
2975
+ warningLight: colors.warningLight,
2976
+ info: colors.blue100,
2977
+ error: colors.warningBg,
2978
+ neutral: colors.neutral100
2979
+ },
2980
+ badge: {
2981
+ curacao: colors.curacao250,
2982
+ curacao900: colors.curacao900,
2983
+ pinaColada: colors.pinaColada250,
2984
+ pinaColada300: colors.pinaColada300,
2985
+ margarita250: colors.margarita250,
2986
+ default: colors.neutral300,
2987
+ green: colors.successBg,
2988
+ green100: colors.freshGreen100,
2989
+ margarita100: colors.margarita100,
2990
+ margarita900: colors.margarita900,
2991
+ yellow: colors.alertBg,
2992
+ orange100: colors.orange100,
2993
+ orange250: colors.orange250,
2994
+ orange500: colors.orange500,
2995
+ red: colors.warningBg,
2996
+ red100: colors.alert100,
2997
+ green500: colors.success500,
2998
+ green600: colors.success600,
2999
+ purple100: colors.purple100,
3000
+ purple250: colors.purple250,
3001
+ gray100: colors.gray100,
3002
+ gray250: colors.gray250,
3003
+ aqua100: colors.aqua100,
3004
+ aqua250: colors.aqua250,
3005
+ black: colors.black,
3006
+ link: colors.link,
3007
+ labelDefault: colors.labelContainerBg,
3008
+ blue100: colors.blue100,
3009
+ blue900: colors.blue900,
3010
+ blue500: colors.blue500,
3011
+ neutral100: colors.neutral100,
3012
+ neutral700: colors.neutral700,
3013
+ pinaColada750: colors.pinaColada750,
3014
+ pinaColada100: colors.pinaColada100,
3015
+ gray800: colors.gray800,
3016
+ couponGreen: colors.couponGreen,
3017
+ alert500: colors.alert500,
3018
+ alertSoft: colors.alert100,
3019
+ red200: colors.red200,
3020
+ red500: colors.red500,
3021
+ redSoft: colors.red100,
3022
+ brown: colors.brown,
3023
+ grapetini750: colors.grapetini750,
3024
+ successGreen500: colors.successGreen500,
3025
+ alertYellow500: colors.alert500,
3026
+ errorRed500: colors.red500
3027
+ },
3028
+ counter: counter$1,
3029
+ calendar: {
3030
+ accent: colors.neutral900,
3031
+ background: colors.neutral300,
3032
+ selected: colors.neutral900
3033
+ },
3034
+ cursor: {
3035
+ neutral900: colors.neutral900
3036
+ },
3037
+ chipicon: {
3038
+ default: colors.neutral900,
3039
+ blue: colors.blueSky500,
3040
+ pink: colors.pinkVibrant500,
3041
+ yellow: colors.yellowSun500,
3042
+ purple: colors.purpleRoyal500,
3043
+ green: colors.greenFresh500,
3044
+ cfwBlue: colors.blue900,
3045
+ orange: colors.orange500
3046
+ }
3047
+ },
3048
+ elevation: Object.assign({}, elevation),
3049
+ border: Object.assign({}, border),
3050
+ spacing: Object.assign({}, spacing),
3051
+ typography: Object.assign({}, typography),
3052
+ size: Object.assign({}, size),
3053
+ transitions: {
3054
+ duration,
3055
+ easing,
3056
+ create,
3057
+ getAutoHeightDuration
3058
+ },
3059
+ zIndex
3060
+ };
3061
+ const B2CTheme = Object.assign({}, BaseTheme);
3062
+ Object.assign(Object.assign({}, BaseTheme), {
3063
+ color: Object.assign(Object.assign({}, BaseTheme.color), {
3064
+ text: Object.assign(Object.assign({}, BaseTheme.color.text), {
3065
+ secondary: colors.link2,
3066
+ tertiary: colors.neutral500
3067
+ }),
3068
+ button: Object.assign(Object.assign({}, BaseTheme.color.button), {
3069
+ outlinedPrimaryLabel: colors.link2,
3070
+ outlinedPrimaryBorder: colors.link2,
3071
+ outlinedPrimaryBg: colors.neutral100,
3072
+ outlinedSecondaryLabel: colors.neutral900,
3073
+ outlinedSecondaryBorder: colors.neutral900,
3074
+ outlinedSecondaryBg: colors.neutral100,
3075
+ outlinedTertiaryLabel: colors.brand,
3076
+ outlinedTertiaryBorder: colors.brand,
3077
+ outlinedTertiaryBg: colors.neutral100,
3078
+ outlinedDisabledLabel: colors.disabledText,
3079
+ outlinedDisabledBg: colors.neutral300,
3080
+ containedPrimaryLabel: colors.neutral100,
3081
+ containedPrimaryBg: colors.link2,
3082
+ containedSecondaryLabel: colors.neutral100,
3083
+ containedSecondaryBg: colors.neutral900,
3084
+ containedTertiaryLabel: colors.neutral100,
3085
+ containedTertiaryBg: colors.brand,
3086
+ containedDisabledLabel: colors.disabledText,
3087
+ containedDisabledBg: colors.neutral300,
3088
+ hover: {
3089
+ [colors.neutral100]: colors.neutral100,
3090
+ [colors.neutral900]: colors.neutral900,
3091
+ [colors.neutral900]: colors.neutral900,
3092
+ [colors.neutral100]: colors.neutral100,
3093
+ [colors.brand]: colors.bgPrimaryHover,
3094
+ [colors.neutral100]: colors.neutral100,
3095
+ [colors.disabledText]: colors.disabledText,
3096
+ [colors.neutral300]: colors.neutral300,
3097
+ [colors.neutral100]: colors.neutral100,
3098
+ [colors.link2]: colors.link2Hover,
3099
+ [colors.neutral100]: colors.neutral100,
3100
+ [colors.neutral900]: colors.neutral900,
3101
+ [colors.neutral100]: colors.neutral100,
3102
+ [colors.disabledText]: colors.disabledText,
3103
+ [colors.neutral300]: colors.neutral300
3104
+ }
3105
+ }),
3106
+ chip: Object.assign(Object.assign({}, BaseTheme.color.chip), {
3107
+ selectedPrimaryLabel: colors.link2,
3108
+ selectedPrimaryBorder: colors.link2,
3109
+ selectedPrimaryBg: colors.linkBg
3110
+ }),
3111
+ tab: Object.assign(Object.assign({}, BaseTheme.color.tab), {
3112
+ nonSelectedPrimaryLabel: colors.neutral900,
3113
+ selectedPrimaryLabel: colors.link2
3114
+ }),
3115
+ background: Object.assign(Object.assign({}, BaseTheme.color.background), {
3116
+ primary: colors.link2,
3117
+ secondary: colors.neutral900,
3118
+ tertiary: colors.brand
3119
+ }),
3120
+ border: Object.assign(Object.assign({}, BaseTheme.color.border), {
3121
+ primary: colors.link2,
3122
+ secondary: colors.neutral900,
3123
+ tertiary: colors.brand
3124
+ }),
3125
+ spinner: {
3126
+ primary: colors.link2,
3127
+ primaryBg: colors.alertBg
3128
+ },
3129
+ coupon: {
3130
+ primaryBg: colors.blue100
3131
+ }
3132
+ })
3133
+ });
3134
+ const hover$2 = key => {
3135
+ const bg = {
3136
+ [colors.neutral100]: colors.neutral100,
3137
+ [colors.neutral900]: colors.neutral900,
3138
+ [colors.neutral900]: colors.neutral900,
3139
+ [colors.neutral100]: colors.neutral100,
3140
+ [colors.brand]: colors.bgPrimaryHover,
3141
+ [colors.neutral100]: colors.neutral100,
3142
+ [colors.disabledText]: colors.disabledText,
3143
+ [colors.neutral300]: colors.neutral300,
3144
+ [colors.neutral100]: colors.neutral100,
3145
+ [colors.link2]: colors.link2Hover,
3146
+ [colors.neutral100]: colors.neutral100,
3147
+ [colors.neutral900]: colors.neutral900,
3148
+ [colors.neutral100]: colors.neutral100,
3149
+ [colors.disabledText]: colors.disabledText,
3150
+ [colors.neutral300]: colors.neutral300,
3151
+ [colors.bluePrimary500]: colors.bluePrimary500,
3152
+ [colors.yellowSecondary]: colors.yellowSecondary
3153
+ };
3154
+ return bg[key];
3155
+ };
3156
+ const counter = {
3157
+ enabled: {
3158
+ stroke: colors.bluePrimary500
3159
+ },
3160
+ disabled: {
3161
+ stroke: colors.neutral500
3162
+ }
3163
+ };
3164
+ Object.assign(Object.assign({}, BaseTheme), {
3165
+ color: Object.assign(Object.assign({}, BaseTheme.color), {
3166
+ text: Object.assign(Object.assign({}, BaseTheme.color.text), {
3167
+ link: colors.bluePrimary500
3168
+ }),
3169
+ button: Object.assign(Object.assign({}, BaseTheme.color.button), {
3170
+ outlinedPrimaryLabel: colors.primaryNeutral900,
3171
+ outlinedPrimaryBg: colors.neutral100,
3172
+ containedPrimaryLabel: colors.neutral100,
3173
+ containedPrimaryBg: colors.bluePrimary500,
3174
+ containedPrimarySoftBg: colors.blueSecondary,
3175
+ containedSecondaryLabel: colors.primaryNeutral900,
3176
+ containedSecondaryBg: colors.yellowSecondary,
3177
+ hover: hover$2
3178
+ }),
3179
+ chip: Object.assign(Object.assign({}, BaseTheme.color.chip), {
3180
+ selectedPrimaryLabel: colors.link2,
3181
+ selectedPrimaryBorder: colors.link2,
3182
+ selectedPrimaryBg: colors.linkBg,
3183
+ nonSelectedPrimaryLabel: colors.neutral900
3184
+ }),
3185
+ tab: Object.assign(Object.assign({}, BaseTheme.color.tab), {
3186
+ nonSelectedPrimaryLabel: colors.neutral900,
3187
+ selectedPrimaryLabel: colors.bluePrimary500
3188
+ }),
3189
+ background: Object.assign(Object.assign({}, BaseTheme.color.background), {
3190
+ primary: colors.bluePrimary500,
3191
+ secondary: colors.neutral900,
3192
+ brandLightBg: colors.blueSecondary,
3193
+ tertiary: colors.brand,
3194
+ defaultDarkest: colors.bluePrimary500,
3195
+ linkLightBg: colors.blueSecondary,
3196
+ brand100: colors.bluePrimary500
3197
+ }),
3198
+ border: Object.assign(Object.assign({}, BaseTheme.color.border), {
3199
+ primary: colors.bluePrimary500,
3200
+ brand: colors.bluePrimary500
3201
+ }),
3202
+ spinner: {
3203
+ primary: colors.link2,
3204
+ primaryBg: colors.alertBg
3205
+ },
3206
+ counter,
3207
+ calendar: {
3208
+ accent: colors.bluePrimary500,
3209
+ background: colors.blueSecondary,
3210
+ selected: colors.bluePrimary500
3211
+ }
3212
+ })
3213
+ });
3214
+ const hover$1 = key => {
3215
+ const bg = {
3216
+ [colors.neutral100]: colors.neutral100,
3217
+ [colors.brand]: colors.bgPrimaryHover,
3218
+ [colors.disabledText]: colors.disabledText,
3219
+ [colors.neutral300]: colors.neutral300,
3220
+ [colors.link2]: colors.link2Hover,
3221
+ [colors.neutral100]: colors.neutral100,
3222
+ [colors.neutral900]: colors.neutral900,
3223
+ [colors.superGrey700]: colors.superGrey700,
3224
+ [colors.superGrey300]: colors.superGrey300,
3225
+ [colors.superGrey800]: colors.superGrey800,
3226
+ [colors.superGreen500]: colors.superGreen500
3227
+ };
3228
+ return bg[key];
3229
+ };
3230
+ Object.assign(Object.assign({}, BaseTheme), {
3231
+ color: Object.assign(Object.assign({}, BaseTheme.color), {
3232
+ text: Object.assign(Object.assign({}, BaseTheme.color.text), {
3233
+ primary: colors.superGrey800,
3234
+ secondary: colors.superGrey500,
3235
+ tertiary: colors.superGrey400,
3236
+ warning: colors.systemRed500,
3237
+ disabled: colors.superGrey400,
3238
+ subHeading: colors.superGrey400,
3239
+ success: colors.systemGreen500,
3240
+ link: colors.superBlue500,
3241
+ link2: colors.superBlue500
3242
+ }),
3243
+ button: Object.assign(Object.assign({}, BaseTheme.color.button), {
3244
+ outlinedPrimaryLabel: colors.superGrey700,
3245
+ outlinedPrimaryBorder: colors.superGrey300,
3246
+ outlinedTertiaryLabel: colors.superGrey700,
3247
+ outlinedTertiaryBorder: colors.superGrey300,
3248
+ outlinedDisabledLabel: colors.disabledText,
3249
+ containedSecondaryLabel: colors.superGrey800,
3250
+ containedPrimaryBg: colors.superBlue500,
3251
+ containedSecondaryBg: colors.superGreen500,
3252
+ containedTertiaryLabel: colors.superGrey300,
3253
+ containedDisabledLabel: colors.disabledText,
3254
+ containedPrimaryLabel: colors.neutral100,
3255
+ hover: hover$1
3256
+ }),
3257
+ chip: Object.assign(Object.assign({}, BaseTheme.color.chip), {
3258
+ selectedPrimaryLabel: colors.superBlue500,
3259
+ selectedPrimaryBorder: colors.superBlue500,
3260
+ selectedPrimaryBg: colors.superBlue25,
3261
+ disabledPrimaryLabel: colors.superGrey400,
3262
+ nonSelectedPrimaryLabel: colors.superGrey700,
3263
+ disabledPrimaryBg: colors.superGrey200
3264
+ }),
3265
+ tab: Object.assign(Object.assign({}, BaseTheme.color.tab), {
3266
+ nonSelectedPrimaryLabel: colors.superGrey500,
3267
+ selectedPrimaryLabel: colors.superBlue500
3268
+ }),
3269
+ background: Object.assign(Object.assign({}, BaseTheme.color.background), {
3270
+ primary: colors.superBlue500,
3271
+ disabled: colors.superGrey50,
3272
+ disabledDark: colors.superGrey300,
3273
+ warning: colors.systemRed500
3274
+ }),
3275
+ border: Object.assign(Object.assign({}, BaseTheme.color.border), {
3276
+ primary: colors.superBlue500,
3277
+ secondary: colors.neutral900,
3278
+ disabledDark: colors.superGrey300,
3279
+ defaultDark: colors.superGrey400,
3280
+ default: colors.superGrey300,
3281
+ disabled: colors.superGrey200
3282
+ })
3283
+ })
3284
+ });
3285
+ const hover = key => {
3286
+ const bg = {
3287
+ [colors.neutral100]: colors.neutral100,
3288
+ [colors.neutral900]: colors.neutral900,
3289
+ [colors.blue500]: colors.blue900,
3290
+ [colors.disabledText]: colors.disabledText,
3291
+ [colors.neutral300]: colors.neutral300,
3292
+ [colors.link2]: colors.link2Hover
115
3293
  };
3294
+ return bg[key];
3295
+ };
3296
+ Object.assign(Object.assign({}, B2CTheme), {
3297
+ color: Object.assign(Object.assign({}, B2CTheme.color), {
3298
+ text: Object.assign(Object.assign({}, B2CTheme.color.text), {
3299
+ secondary: colors.blue500,
3300
+ brand: colors.blue500
3301
+ }),
3302
+ button: Object.assign(Object.assign({}, B2CTheme.color.button), {
3303
+ outlinedSecondaryLabel: colors.blue500,
3304
+ outlinedSecondaryBorder: colors.blue500,
3305
+ containedSecondaryBg: colors.blue500,
3306
+ hover
3307
+ }),
3308
+ background: Object.assign(Object.assign({}, B2CTheme.color.background), {
3309
+ secondary: colors.blue500,
3310
+ brand: colors.blue500
3311
+ }),
3312
+ border: Object.assign(Object.assign({}, B2CTheme.color.border), {
3313
+ secondary: colors.blue500,
3314
+ brand: colors.blue500
3315
+ })
3316
+ })
3317
+ });
3318
+ Object.assign(Object.assign({}, B2CTheme), {
3319
+ typography: Object.assign(Object.assign({}, B2CTheme.typography), {
3320
+ fontFamily: 'Manrope'
3321
+ })
3322
+ });
3323
+ const ThemeContext = React.createContext({
3324
+ theme: B2CTheme,
3325
+ platform: 'mobile'
3326
+ });
3327
+ const useTheme = () => {
3328
+ const themeContext = React.useContext(ThemeContext);
3329
+ const {
3330
+ theme
3331
+ } = themeContext || {
3332
+ theme: B2CTheme
3333
+ };
3334
+ return theme;
3335
+ };
3336
+ class ThemeManagerClass {
3337
+ constructor() {
3338
+ if (ThemeManagerClass.instance) {
3339
+ throw new Error('You can only create one instance!');
3340
+ }
3341
+ ThemeManagerClass.instance = this;
3342
+ this.theme = B2CTheme;
3343
+ }
3344
+ set(theme) {
3345
+ switch (theme) {
3346
+ case 'B2C':
3347
+ default:
3348
+ {
3349
+ this.theme = B2CTheme;
3350
+ break;
3351
+ }
3352
+ }
3353
+ }
3354
+ get() {
3355
+ return this.theme;
3356
+ }
3357
+ }
3358
+ Object.freeze(new ThemeManagerClass());
116
3359
 
117
- var PreviousChatListing = function (props) {
118
- var _a = (props !== null && props !== void 0 ? props : {}).data, _b = _a === void 0 ? {} : _a, _c = _b.list, list = _c === void 0 ? [] : _c;
119
- var theme = ctDesignComponents.useTheme();
120
- var staticStyles = require$$0.useMemo(function () { return styles(theme); }, [theme]);
121
- return (jsxRuntimeExports.jsx(ctDesignComponents.Box, __assign({ boxSize: "medium", css: staticStyles.root }, { children: list.map(function (item, idx) {
122
- var title = item.title, _a = item.chats, chats = _a === void 0 ? [] : _a;
123
- var key = "".concat(title, "_").concat(idx);
124
- return (jsxRuntimeExports.jsxs(ctDesignComponents.Box, __assign({ boxSize: "tiny" }, { children: [jsxRuntimeExports.jsx(ctDesignComponents.Typography, __assign({ variant: "L2" }, { children: title })), chats.map(function (chat, idx) {
125
- var type = chat.type, data = chat.data, events = chat.events;
126
- var key = "".concat(title, "_").concat(idx);
127
- return (jsxRuntimeExports.jsx(talosWidgetManager.WidgetGenerator, { type: type, data: data, events: events }, key));
128
- })] }), key));
129
- }) })));
3360
+ var TypographyVariant;
3361
+ (function (TypographyVariant) {
3362
+ TypographyVariant["HD1"] = "HD1";
3363
+ TypographyVariant["HD2"] = "HD2";
3364
+ TypographyVariant["HD3"] = "HD3";
3365
+ TypographyVariant["HM1"] = "HM1";
3366
+ TypographyVariant["HM2"] = "HM2";
3367
+ TypographyVariant["HM3"] = "HM3";
3368
+ TypographyVariant["HM4"] = "HM4";
3369
+ TypographyVariant["B1"] = "B1";
3370
+ TypographyVariant["B2"] = "B2";
3371
+ TypographyVariant["B3"] = "B3";
3372
+ TypographyVariant["B3CAPS"] = "B3CAPS";
3373
+ TypographyVariant["B4"] = "B4";
3374
+ TypographyVariant["B4CAPS"] = "B4CAPS";
3375
+ TypographyVariant["P1"] = "P1";
3376
+ TypographyVariant["P2"] = "P2";
3377
+ TypographyVariant["P3"] = "P3";
3378
+ TypographyVariant["P4"] = "P4";
3379
+ TypographyVariant["L1"] = "L1";
3380
+ TypographyVariant["L2"] = "L2";
3381
+ TypographyVariant["L3"] = "L3";
3382
+ TypographyVariant["OVERLINE"] = "OVERLINE";
3383
+ TypographyVariant["TAG"] = "TAG";
3384
+ TypographyVariant["M4BOLD"] = "M4BOLD";
3385
+ TypographyVariant["WRAPPER"] = "WRAPPER";
3386
+ })(TypographyVariant || (TypographyVariant = {}));
3387
+ var TypographyColor;
3388
+ (function (TypographyColor) {
3389
+ TypographyColor["PRIMARY"] = "primary";
3390
+ TypographyColor["SECONDARY"] = "secondary";
3391
+ TypographyColor["TERTIARY"] = "tertiary";
3392
+ TypographyColor["HEADING"] = "heading";
3393
+ TypographyColor["SUBHEADING"] = "subheading";
3394
+ TypographyColor["SUCCESS"] = "success";
3395
+ TypographyColor["ALERT"] = "alert";
3396
+ TypographyColor["WARNING"] = "warning";
3397
+ TypographyColor["DISABLED"] = "disabled";
3398
+ TypographyColor["LINK"] = "link";
3399
+ TypographyColor["NEUTRAL"] = "neutral";
3400
+ TypographyColor["LINK2"] = "link2";
3401
+ TypographyColor["PRIMARY2"] = "primary2";
3402
+ TypographyColor["SECONDARY2"] = "secondary2";
3403
+ TypographyColor["GRAPETINI"] = "grapetini900";
3404
+ TypographyColor["PINA_COLADA750"] = "pinacolada750";
3405
+ TypographyColor["BRAND"] = "brand";
3406
+ TypographyColor["ALERT500"] = "alert500";
3407
+ TypographyColor["NEUTRAL50"] = "neutral50";
3408
+ TypographyColor["MARGARITA750"] = "margarita750";
3409
+ TypographyColor["GREEN100"] = "green100";
3410
+ TypographyColor["RED100"] = "red100";
3411
+ TypographyColor["ALERT300"] = "alert300";
3412
+ TypographyColor["RED500"] = "red500";
3413
+ TypographyColor["CORALPINK"] = "coralpink";
3414
+ TypographyColor["WARNING500"] = "warning500";
3415
+ TypographyColor["BLUE700"] = "blue700";
3416
+ TypographyColor["NEUTRAL650"] = "neutral650";
3417
+ TypographyColor["GREY700"] = "grey700";
3418
+ TypographyColor["BLACK000"] = "black000";
3419
+ })(TypographyColor || (TypographyColor = {}));
3420
+ const getTypographyVariant = (theme, variant) => {
3421
+ switch (variant) {
3422
+ case TypographyVariant.HD1:
3423
+ {
3424
+ return {
3425
+ fontSize: theme.typography.size[48],
3426
+ fontWeight: theme.typography.weight.semibold,
3427
+ lineHeight: theme.typography.lineHeight[56]
3428
+ };
3429
+ }
3430
+ case TypographyVariant.HD2:
3431
+ {
3432
+ return {
3433
+ fontSize: theme.typography.size[40],
3434
+ fontWeight: theme.typography.weight.semibold,
3435
+ lineHeight: theme.typography.lineHeight[48]
3436
+ };
3437
+ }
3438
+ case TypographyVariant.HD3:
3439
+ {
3440
+ return {
3441
+ fontSize: theme.typography.size[32],
3442
+ fontWeight: theme.typography.weight.semibold,
3443
+ lineHeight: theme.typography.lineHeight[40]
3444
+ };
3445
+ }
3446
+ case TypographyVariant.HM1:
3447
+ {
3448
+ return {
3449
+ fontSize: theme.typography.size[24],
3450
+ fontWeight: theme.typography.weight.semibold,
3451
+ lineHeight: theme.typography.lineHeight[32]
3452
+ };
3453
+ }
3454
+ case TypographyVariant.HM2:
3455
+ {
3456
+ return {
3457
+ fontSize: theme.typography.size[20],
3458
+ fontWeight: theme.typography.weight.semibold,
3459
+ lineHeight: theme.typography.lineHeight[28]
3460
+ };
3461
+ }
3462
+ case TypographyVariant.HM3:
3463
+ {
3464
+ return {
3465
+ fontSize: theme.typography.size[16],
3466
+ fontWeight: theme.typography.weight.semibold,
3467
+ lineHeight: theme.typography.lineHeight[24]
3468
+ };
3469
+ }
3470
+ case TypographyVariant.HM4:
3471
+ {
3472
+ return {
3473
+ fontSize: theme.typography.size[14],
3474
+ fontWeight: theme.typography.weight.semibold,
3475
+ lineHeight: theme.typography.lineHeight[20]
3476
+ };
3477
+ }
3478
+ case TypographyVariant.B1:
3479
+ {
3480
+ return {
3481
+ fontSize: theme.typography.size[16],
3482
+ fontWeight: theme.typography.weight.medium,
3483
+ lineHeight: theme.typography.lineHeight[24]
3484
+ };
3485
+ }
3486
+ case TypographyVariant.B2:
3487
+ {
3488
+ return {
3489
+ fontSize: theme.typography.size[14],
3490
+ fontWeight: theme.typography.weight.medium,
3491
+ lineHeight: theme.typography.lineHeight[20]
3492
+ };
3493
+ }
3494
+ case TypographyVariant.B3:
3495
+ {
3496
+ return {
3497
+ fontSize: theme.typography.size[12],
3498
+ fontWeight: theme.typography.weight.medium,
3499
+ lineHeight: theme.typography.lineHeight[16]
3500
+ };
3501
+ }
3502
+ case TypographyVariant.B3CAPS:
3503
+ {
3504
+ return {
3505
+ fontSize: theme.typography.size[12],
3506
+ fontWeight: theme.typography.weight.semibold,
3507
+ lineHeight: theme.typography.lineHeight[16],
3508
+ letterSpacing: theme.typography.letterSpacing.point4,
3509
+ textTransform: 'uppercase'
3510
+ };
3511
+ }
3512
+ case TypographyVariant.B4:
3513
+ {
3514
+ return {
3515
+ fontSize: theme.typography.size[10],
3516
+ fontWeight: theme.typography.weight.medium,
3517
+ lineHeight: theme.typography.lineHeight[14]
3518
+ };
3519
+ }
3520
+ case TypographyVariant.B4CAPS:
3521
+ {
3522
+ return {
3523
+ fontSize: theme.typography.size[10],
3524
+ fontWeight: theme.typography.weight.semibold,
3525
+ lineHeight: theme.typography.lineHeight[12],
3526
+ letterSpacing: theme.typography.letterSpacing.point4,
3527
+ textTransform: 'uppercase'
3528
+ };
3529
+ }
3530
+ case TypographyVariant.P1:
3531
+ {
3532
+ return {
3533
+ fontSize: theme.typography.size[16],
3534
+ fontWeight: theme.typography.weight.normal,
3535
+ lineHeight: theme.typography.lineHeight[22]
3536
+ };
3537
+ }
3538
+ case TypographyVariant.P2:
3539
+ {
3540
+ return {
3541
+ fontSize: theme.typography.size[14],
3542
+ fontWeight: theme.typography.weight.normal,
3543
+ lineHeight: theme.typography.lineHeight[20]
3544
+ };
3545
+ }
3546
+ case TypographyVariant.P3:
3547
+ {
3548
+ return {
3549
+ fontSize: theme.typography.size[12],
3550
+ fontWeight: theme.typography.weight.normal,
3551
+ lineHeight: theme.typography.lineHeight[16]
3552
+ };
3553
+ }
3554
+ case TypographyVariant.P4:
3555
+ {
3556
+ return {
3557
+ fontSize: theme.typography.size[10],
3558
+ fontWeight: theme.typography.weight.normal,
3559
+ lineHeight: theme.typography.lineHeight[14]
3560
+ };
3561
+ }
3562
+ case TypographyVariant.L1:
3563
+ {
3564
+ return {
3565
+ fontSize: theme.typography.size[16],
3566
+ fontWeight: theme.typography.weight.semibold,
3567
+ lineHeight: theme.typography.lineHeight[24]
3568
+ };
3569
+ }
3570
+ case TypographyVariant.L2:
3571
+ {
3572
+ return {
3573
+ fontSize: theme.typography.size[14],
3574
+ fontWeight: theme.typography.weight.semibold,
3575
+ lineHeight: theme.typography.lineHeight[20]
3576
+ };
3577
+ }
3578
+ case TypographyVariant.L3:
3579
+ {
3580
+ return {
3581
+ fontSize: theme.typography.size[12],
3582
+ fontWeight: theme.typography.weight.semibold,
3583
+ lineHeight: theme.typography.lineHeight[16]
3584
+ };
3585
+ }
3586
+ case TypographyVariant.OVERLINE:
3587
+ {
3588
+ return {
3589
+ fontSize: theme.typography.size[12],
3590
+ fontWeight: theme.typography.weight.semibold,
3591
+ lineHeight: theme.typography.lineHeight[16]
3592
+ };
3593
+ }
3594
+ case TypographyVariant.TAG:
3595
+ {
3596
+ return {
3597
+ fontSize: theme.typography.size[10],
3598
+ fontWeight: theme.typography.weight.semibold,
3599
+ lineHeight: theme.typography.lineHeight[12],
3600
+ letterSpacing: theme.typography.letterSpacing.point4
3601
+ };
3602
+ }
3603
+ default:
3604
+ {
3605
+ return {
3606
+ fontSize: theme.typography.size[20],
3607
+ fontWeight: theme.typography.weight.semibold,
3608
+ lineHeight: theme.typography.lineHeight[28]
3609
+ };
3610
+ }
3611
+ }
3612
+ };
3613
+ const getTypographyColor = (theme, color) => {
3614
+ switch (color) {
3615
+ case TypographyColor.PRIMARY:
3616
+ {
3617
+ return theme.color.text.primary;
3618
+ }
3619
+ case TypographyColor.SECONDARY:
3620
+ {
3621
+ return theme.color.text.secondary;
3622
+ }
3623
+ case TypographyColor.TERTIARY:
3624
+ {
3625
+ return theme.color.text.tertiary;
3626
+ }
3627
+ case TypographyColor.ALERT:
3628
+ {
3629
+ return theme.color.text.alert;
3630
+ }
3631
+ case TypographyColor.DISABLED:
3632
+ {
3633
+ return theme.color.text.disabled;
3634
+ }
3635
+ case TypographyColor.HEADING:
3636
+ {
3637
+ return theme.color.text.heading;
3638
+ }
3639
+ case TypographyColor.LINK:
3640
+ {
3641
+ return theme.color.text.link;
3642
+ }
3643
+ case TypographyColor.SUBHEADING:
3644
+ {
3645
+ return theme.color.text.subHeading;
3646
+ }
3647
+ case TypographyColor.SUCCESS:
3648
+ {
3649
+ return theme.color.text.success;
3650
+ }
3651
+ case TypographyColor.WARNING:
3652
+ {
3653
+ return theme.color.text.warning;
3654
+ }
3655
+ case TypographyColor.NEUTRAL:
3656
+ {
3657
+ return theme.color.text.neutral;
3658
+ }
3659
+ case TypographyColor.LINK2:
3660
+ {
3661
+ return theme.color.text.link2;
3662
+ }
3663
+ case TypographyColor.PRIMARY2:
3664
+ {
3665
+ return theme.color.text.primary2;
3666
+ }
3667
+ case TypographyColor.SECONDARY2:
3668
+ {
3669
+ return theme.color.text.secondary2;
3670
+ }
3671
+ case TypographyColor.GRAPETINI:
3672
+ {
3673
+ return theme.color.text.grapetini900;
3674
+ }
3675
+ case TypographyColor.PINA_COLADA750:
3676
+ {
3677
+ return theme.color.text.pinaColada750;
3678
+ }
3679
+ case TypographyColor.CORALPINK:
3680
+ {
3681
+ return theme.color.text.coralpink;
3682
+ }
3683
+ case TypographyColor.NEUTRAL50:
3684
+ {
3685
+ return theme.color.text.neutral50;
3686
+ }
3687
+ case TypographyColor.WARNING500:
3688
+ case TypographyColor.ALERT500:
3689
+ {
3690
+ return theme.color.text.alert500;
3691
+ }
3692
+ case TypographyColor.BRAND:
3693
+ {
3694
+ return theme.color.text.brand;
3695
+ }
3696
+ case TypographyColor.MARGARITA750:
3697
+ {
3698
+ return theme.color.text.margarita750;
3699
+ }
3700
+ case TypographyColor.GREEN100:
3701
+ {
3702
+ return theme.color.text.green100;
3703
+ }
3704
+ case TypographyColor.RED100:
3705
+ {
3706
+ return theme.color.text.red100;
3707
+ }
3708
+ case TypographyColor.ALERT300:
3709
+ {
3710
+ return theme.color.text.alert300;
3711
+ }
3712
+ case TypographyColor.RED500:
3713
+ {
3714
+ return theme.color.text.red500;
3715
+ }
3716
+ case TypographyColor.BLUE700:
3717
+ {
3718
+ return theme.color.text.blue700;
3719
+ }
3720
+ case TypographyColor.NEUTRAL650:
3721
+ {
3722
+ return theme.color.text.neutral650;
3723
+ }
3724
+ case TypographyColor.GREY700:
3725
+ {
3726
+ return theme.color.text.gray700;
3727
+ }
3728
+ case TypographyColor.BLACK000:
3729
+ {
3730
+ return theme.color.text.black000;
3731
+ }
3732
+ default:
3733
+ {
3734
+ return theme.color.text.primary;
3735
+ }
3736
+ }
3737
+ };
3738
+ const getLineClampStyles = lineClamp => {
3739
+ if (!lineClamp) {
3740
+ return {};
3741
+ }
3742
+ if (lineClamp === 1) {
3743
+ return {
3744
+ display: 'block',
3745
+ whiteSpace: 'nowrap',
3746
+ overflow: 'hidden',
3747
+ textOverflow: 'ellipsis',
3748
+ width: '100%',
3749
+ minWidth: 0
3750
+ };
3751
+ }
3752
+ return {
3753
+ display: '-webkit-box',
3754
+ WebkitLineClamp: lineClamp,
3755
+ WebkitBoxOrient: 'vertical',
3756
+ overflow: 'hidden',
3757
+ textOverflow: 'ellipsis',
3758
+ width: '100%',
3759
+ minWidth: 0
3760
+ };
3761
+ };
3762
+ const getTypographyStyles = ({
3763
+ theme,
3764
+ variant,
3765
+ color,
3766
+ isStriked,
3767
+ colorCode,
3768
+ isUnderlined,
3769
+ showInItalics
3770
+ }) => {
3771
+ const textDecorationLine = isStriked ? 'line-through' : 'none';
3772
+ return Object.assign(Object.assign({}, getTypographyVariant(theme, variant !== null && variant !== void 0 ? variant : TypographyVariant.HM2)), {
3773
+ color: colorCode || getTypographyColor(theme, color !== null && color !== void 0 ? color : TypographyColor.PRIMARY),
3774
+ textDecorationLine: isUnderlined ? 'underline' : textDecorationLine,
3775
+ fontStyle: showInItalics ? 'italic' : 'none'
3776
+ });
3777
+ };
3778
+ const getTextType = variant => {
3779
+ var _a;
3780
+ const variantMapper = {
3781
+ HD1: 'h1',
3782
+ HD2: 'h2',
3783
+ HD3: 'h3',
3784
+ HM1: 'h1',
3785
+ HM2: 'h2',
3786
+ HM3: 'h3',
3787
+ HM4: 'h4',
3788
+ B1: 'span',
3789
+ B2: 'span',
3790
+ B3: 'span',
3791
+ B4: 'span',
3792
+ P1: 'span',
3793
+ P2: 'span',
3794
+ P3: 'span',
3795
+ P4: 'span',
3796
+ L1: 'span',
3797
+ L2: 'span',
3798
+ L3: 'span',
3799
+ M4BOLD: 'span',
3800
+ B4CAPS: 'div',
3801
+ OVERLINE: 'div',
3802
+ B3CAPS: 'div',
3803
+ TAG: 'div',
3804
+ WRAPPER: 'div'
130
3805
  };
3806
+ return (_a = variantMapper[variant]) !== null && _a !== void 0 ? _a : 'span';
3807
+ };
3808
+ const Typography = ({
3809
+ children = null,
3810
+ variant,
3811
+ color = TypographyColor.PRIMARY,
3812
+ isClickable,
3813
+ isStriked = false,
3814
+ isUnderlined = false,
3815
+ onClick,
3816
+ colorCode = '',
3817
+ showInItalics = false,
3818
+ lineClamp,
3819
+ componentNode,
3820
+ isDisabled = false,
3821
+ styleConfig = {}
3822
+ }) => {
3823
+ const theme = useTheme();
3824
+ const parsedIsClickable = typeof isClickable === 'boolean' ? isClickable : !!onClick;
3825
+ const typographyStyles = ctDesignStyleManager.useStyles(theme => {
3826
+ return {
3827
+ root: getTypographyStyles({
3828
+ theme,
3829
+ variant,
3830
+ color,
3831
+ isClickable: parsedIsClickable,
3832
+ isStriked,
3833
+ isUnderlined,
3834
+ colorCode,
3835
+ showInItalics,
3836
+ lineClamp,
3837
+ isDisabled
3838
+ })
3839
+ };
3840
+ }, [variant, color, parsedIsClickable, isStriked, isUnderlined, colorCode, showInItalics, lineClamp, isDisabled, theme]);
3841
+ const {
3842
+ root: customRootStyles = [],
3843
+ container: customContainerStyles = []
3844
+ } = styleConfig || {};
3845
+ const clampClass = React.useMemo(() => {
3846
+ return /*#__PURE__*/css(getLineClampStyles(lineClamp), "" , "" );
3847
+ }, [lineClamp]);
3848
+ const mergedRootStyles = ctDesignStyleManager.useWebMergeStyles([typographyStyles.root, clampClass, ...customRootStyles], [typographyStyles.root, clampClass, customRootStyles]);
3849
+ const ComponentToRender = lineClamp ? 'div' : componentNode || getTextType(variant) || 'p';
3850
+ const isInlineNode = ComponentToRender === 'span';
3851
+ if (parsedIsClickable) {
3852
+ const containerAs = isInlineNode ? 'span' : 'div';
3853
+ const clickableContainerStyles = isInlineNode ? [{
3854
+ display: 'inline'
3855
+ }, ...customContainerStyles] : customContainerStyles;
3856
+ return jsxRuntimeExports.jsx(Container, {
3857
+ onClick: onClick,
3858
+ styleConfig: {
3859
+ root: clickableContainerStyles
3860
+ },
3861
+ as: containerAs,
3862
+ children: jsxRuntimeExports.jsx(ComponentToRender, {
3863
+ className: mergedRootStyles,
3864
+ children: children
3865
+ })
3866
+ });
3867
+ }
3868
+ return jsxRuntimeExports.jsx(ComponentToRender, {
3869
+ className: mergedRootStyles,
3870
+ children: children
3871
+ });
3872
+ };
3873
+
3874
+ const boxStaticStyles = ctDesignStyleManager.makeStyles(() => ({
3875
+ root: {
3876
+ display: 'flex'
3877
+ }
3878
+ }));
3879
+ const BOX_SIZE_SPACING_KEY = {
3880
+ xLarge: 10,
3881
+ big: 8,
3882
+ medium: 6,
3883
+ small: 4,
3884
+ tiny: 3,
3885
+ micro: 2,
3886
+ nano: 1,
3887
+ pico: 1,
3888
+ zero: 0
3889
+ };
3890
+ function getBoxGap(theme, boxSize) {
3891
+ var _a, _b;
3892
+ const spacingKey = (_a = BOX_SIZE_SPACING_KEY[boxSize]) !== null && _a !== void 0 ? _a : 0;
3893
+ return (_b = theme.spacing[spacingKey]) !== null && _b !== void 0 ? _b : 0;
3894
+ }
3895
+ const Box = React.forwardRef(({
3896
+ children,
3897
+ styleConfig,
3898
+ horizontal = false,
3899
+ boxSize,
3900
+ onClick
3901
+ }, forwardedRef) => {
3902
+ const {
3903
+ root = []
3904
+ } = styleConfig || {};
3905
+ const dynamicStyles = ctDesignStyleManager.useStyles(theme => ({
3906
+ root: {
3907
+ flexDirection: horizontal ? 'row' : 'column',
3908
+ gap: getBoxGap(theme, boxSize)
3909
+ }
3910
+ }), [horizontal, boxSize]);
3911
+ return jsxRuntimeExports.jsx(Container, {
3912
+ ref: forwardedRef,
3913
+ onClick: onClick,
3914
+ styleConfig: {
3915
+ root: [boxStaticStyles.root, dynamicStyles.root, ...root]
3916
+ },
3917
+ children: children
3918
+ });
3919
+ });
3920
+ Box.displayName = 'Box';
3921
+
3922
+ var previousChatListingStyles = ctDesignStyleManager.makeStyles(function (theme) { return ({
3923
+ root: {
3924
+ paddingTop: theme.spacing[6],
3925
+ paddingBottom: theme.spacing[4],
3926
+ paddingLeft: theme.spacing[4],
3927
+ paddingRight: theme.spacing[4],
3928
+ },
3929
+ }); });
3930
+
3931
+ var PreviousChatListing = function (props) {
3932
+ var _a = (props !== null && props !== void 0 ? props : {}).data, _b = _a === void 0 ? {} : _a, _c = _b.list, list = _c === void 0 ? [] : _c;
3933
+ return (jsxRuntimeExports.jsx(Box, { boxSize: "medium", styleConfig: { root: [previousChatListingStyles.root] }, children: list.map(function (item, idx) {
3934
+ var title = item.title, _a = item.chats, chats = _a === void 0 ? [] : _a;
3935
+ var key = "".concat(title, "_").concat(idx);
3936
+ return (jsxRuntimeExports.jsxs(Box, { boxSize: "tiny", children: [jsxRuntimeExports.jsx(Typography, { variant: "L2", children: title }), chats.map(function (chat, idx) {
3937
+ var type = chat.type, data = chat.data, events = chat.events;
3938
+ var key = "".concat(title, "_").concat(idx);
3939
+ return (jsxRuntimeExports.jsx(talosWidgetManager.WidgetGenerator, { type: type, data: data, events: events }, key));
3940
+ })] }, key));
3941
+ }) }));
3942
+ };
131
3943
 
132
- exports.PreviousChatListing = PreviousChatListing;
3944
+ exports.PreviousChatListing = PreviousChatListing;
133
3945
 
134
3946
  }));
135
3947
  //# sourceMappingURL=talos-previous-chat-listing.umd.js.map