@cleartrip/ct-design-theme 4.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/ThemeProvider/ThemeProvider.d.ts +2 -7
  2. package/dist/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  3. package/dist/ThemeProvider/ThemeProvider.native.d.ts +5 -0
  4. package/dist/ThemeProvider/ThemeProvider.native.d.ts.map +1 -0
  5. package/dist/ThemeProvider/index.d.ts +1 -1
  6. package/dist/ThemeProvider/index.d.ts.map +1 -1
  7. package/dist/ct-design-theme.browser.cjs.js +1 -1
  8. package/dist/ct-design-theme.browser.cjs.js.map +1 -1
  9. package/dist/ct-design-theme.browser.esm.js +1 -1
  10. package/dist/ct-design-theme.browser.esm.js.map +1 -1
  11. package/dist/ct-design-theme.cjs.js +210 -111
  12. package/dist/ct-design-theme.cjs.js.map +1 -1
  13. package/dist/ct-design-theme.esm.js +208 -112
  14. package/dist/ct-design-theme.esm.js.map +1 -1
  15. package/dist/ct-design-theme.umd.js +2279 -147
  16. package/dist/ct-design-theme.umd.js.map +1 -1
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/themes/B2BTheme.d.ts.map +1 -1
  20. package/dist/themes/B2CTheme.d.ts +2 -229
  21. package/dist/themes/B2CTheme.d.ts.map +1 -1
  22. package/dist/themes/BaseTheme.d.ts +1 -1
  23. package/dist/themes/BaseTheme.d.ts.map +1 -1
  24. package/dist/themes/SMTheme.d.ts +4 -0
  25. package/dist/themes/SMTheme.d.ts.map +1 -0
  26. package/dist/themes/UltraFkTheme.d.ts.map +1 -1
  27. package/dist/themes/index.d.ts +2 -1
  28. package/dist/themes/index.d.ts.map +1 -1
  29. package/dist/themes/type.d.ts +80 -10
  30. package/dist/themes/type.d.ts.map +1 -1
  31. package/dist/utils/ThemeManager.d.ts +11 -0
  32. package/dist/utils/ThemeManager.d.ts.map +1 -0
  33. package/dist/utils/index.d.ts.map +1 -1
  34. package/package.json +9 -6
  35. package/src/ThemeProvider/ThemeProvider.native.tsx +20 -0
  36. package/src/ThemeProvider/ThemeProvider.tsx +29 -0
  37. package/src/ThemeProvider/index.ts +3 -0
  38. package/src/ThemeProvider/type.ts +15 -0
  39. package/src/hooks/index.ts +2 -0
  40. package/src/hooks/useTheme.ts +11 -0
  41. package/src/hooks/useThemeContext.ts +8 -0
  42. package/src/index.ts +5 -0
  43. package/src/themes/B2BTheme.ts +87 -0
  44. package/src/themes/B2CTheme.ts +7 -0
  45. package/src/themes/BaseTheme.ts +336 -0
  46. package/src/themes/SMTheme.ts +86 -0
  47. package/src/themes/UltraFkTheme.ts +93 -0
  48. package/src/themes/index.ts +7 -0
  49. package/src/themes/type.ts +272 -0
  50. package/src/utils/ThemeManager.ts +36 -0
  51. package/src/utils/index.ts +21 -0
@@ -1,41 +1,30 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cleartrip/ct-design-tokens'), require('styled-components'), require('react/jsx-runtime'), require('react')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@cleartrip/ct-design-tokens', 'styled-components', 'react/jsx-runtime', 'react'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTheme = {}, global.ctDesignTokens, global.styledComponents, global.jsxRuntime, global.React));
5
- })(this, (function (exports, ctDesignTokens, styledComponents, jsxRuntime, react) { 'use strict';
6
-
7
- /******************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise, SuppressedError, Symbol */
22
-
23
- var __assign = function () {
24
- __assign = Object.assign || function __assign(t) {
25
- for (var s, i = 1, n = arguments.length; i < n; i++) {
26
- s = arguments[i];
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
28
- }
29
- return t;
30
- };
31
- return __assign.apply(this, arguments);
32
- };
33
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
- var e = new Error(message);
35
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
- };
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cleartrip/ct-design-tokens'), require('react/jsx-runtime'), require('react')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@cleartrip/ct-design-tokens', 'react/jsx-runtime', 'react'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTheme = {}, global.ctDesignTokens, global.jsxRuntime, global.React));
5
+ })(this, (function (exports, ctDesignTokens, jsxRuntime, React) { 'use strict';
37
6
 
38
- var duration = {
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
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
26
+
27
+ const duration = {
39
28
  shortest: 150,
40
29
  shorter: 200,
41
30
  short: 250,
@@ -44,7 +33,7 @@
44
33
  enteringScreen: 225,
45
34
  leavingScreen: 195,
46
35
  };
47
- var easing = {
36
+ const easing = {
48
37
  easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
49
38
  easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
50
39
  easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
@@ -54,41 +43,16 @@
54
43
  if (!height) {
55
44
  return 0;
56
45
  }
57
- var constant = height / 36;
58
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
46
+ const constant = height / 36;
47
+ return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
59
48
  }
60
- var create = function (props, options) {
61
- if (props === void 0) { props = ['all']; }
62
- if (options === void 0) { options = {}; }
63
- var _a = options.duration, durationOption = _a === void 0 ? duration.standard : _a, _b = options.easing, easingOption = _b === void 0 ? easing.easeInOut : _b, _c = options.delay, delay = _c === void 0 ? 0 : _c;
49
+ const create = (props = ['all'], options = {}) => {
50
+ const { duration: durationOption = duration.standard, easing: easingOption = easing.easeInOut, delay = 0 } = options;
64
51
  return (Array.isArray(props) ? props : [props])
65
- .map(function (animatedProp) {
66
- return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : "".concat(durationOption, "ms"), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : "".concat(delay, "ms"));
67
- })
52
+ .map((animatedProp) => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : `${durationOption}ms`} ${easingOption} ${typeof delay === 'string' ? delay : `${delay}ms`}`)
68
53
  .join(',');
69
54
  };
70
- var hover$2 = function (key) {
71
- var _a;
72
- var bg = (_a = {},
73
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
74
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
75
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
76
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
77
- _a[ctDesignTokens.colors.brand] = ctDesignTokens.colors.bgPrimaryHover,
78
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
79
- _a[ctDesignTokens.colors.disabledText] = ctDesignTokens.colors.disabledText,
80
- _a[ctDesignTokens.colors.neutral300] = ctDesignTokens.colors.neutral300,
81
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
82
- _a[ctDesignTokens.colors.link2] = ctDesignTokens.colors.link2Hover,
83
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
84
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
85
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
86
- _a[ctDesignTokens.colors.disabledText] = ctDesignTokens.colors.disabledText,
87
- _a[ctDesignTokens.colors.neutral300] = ctDesignTokens.colors.neutral300,
88
- _a);
89
- return bg[key];
90
- };
91
- var zIndex = {
55
+ const zIndex = {
92
56
  drawer: 1200,
93
57
  modal: 1300,
94
58
  popOver: 1300,
@@ -96,8 +60,9 @@
96
60
  sideNav: 100,
97
61
  toolbar: 50,
98
62
  bottomSheet: 100,
63
+ pageLoader: 1600,
99
64
  };
100
- var counter$1 = {
65
+ const counter$1 = {
101
66
  enabled: {
102
67
  stroke: ctDesignTokens.colors.neutral900,
103
68
  },
@@ -105,7 +70,7 @@
105
70
  stroke: ctDesignTokens.colors.neutral500,
106
71
  },
107
72
  };
108
- var BaseTheme = {
73
+ const BaseTheme = {
109
74
  color: {
110
75
  text: {
111
76
  primary: ctDesignTokens.colors.neutral900,
@@ -123,6 +88,16 @@
123
88
  link2: ctDesignTokens.colors.link2,
124
89
  margarita: ctDesignTokens.colors.margarita750,
125
90
  primary2: ctDesignTokens.colors.grapetini900,
91
+ secondary2: ctDesignTokens.colors.blue100,
92
+ grapetini900: ctDesignTokens.colors.grapetini900,
93
+ pinaColada750: ctDesignTokens.colors.pinaColada750,
94
+ alert500: ctDesignTokens.colors.alert500,
95
+ neutral50: ctDesignTokens.colors.neutral50,
96
+ margarita750: ctDesignTokens.colors.margarita750,
97
+ green100: ctDesignTokens.colors.green100,
98
+ red100: ctDesignTokens.colors.red100,
99
+ coralpink: ctDesignTokens.colors.pinkVibrant500,
100
+ primary3: ctDesignTokens.colors.bluePrimary500,
126
101
  },
127
102
  button: {
128
103
  outlinedPrimaryLabel: ctDesignTokens.colors.neutral900,
@@ -146,7 +121,26 @@
146
121
  containedDisabledBg: ctDesignTokens.colors.neutral300,
147
122
  containedNeutralLabel: ctDesignTokens.colors.neutral900,
148
123
  containedNeutralBg: ctDesignTokens.colors.neutral100,
149
- hover: hover$2,
124
+ outlinedNeutralLabel: ctDesignTokens.colors.neutral900,
125
+ outlinedNeutralBorder: ctDesignTokens.colors.neutral900,
126
+ outlinedNeutralBg: ctDesignTokens.colors.neutral100,
127
+ hover: {
128
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
129
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
130
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
131
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
132
+ [ctDesignTokens.colors.brand]: ctDesignTokens.colors.bgPrimaryHover,
133
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
134
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
135
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
136
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
137
+ [ctDesignTokens.colors.link2]: ctDesignTokens.colors.link2Hover,
138
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
139
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
140
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
141
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
142
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
143
+ },
150
144
  },
151
145
  chip: {
152
146
  nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900,
@@ -154,6 +148,7 @@
154
148
  selectedPrimaryLabel: ctDesignTokens.colors.neutral900,
155
149
  selectedPrimaryBorder: ctDesignTokens.colors.neutral900,
156
150
  selectedPrimaryBg: ctDesignTokens.colors.neutral300,
151
+ disabledPrimaryBg: ctDesignTokens.colors.neutral300,
157
152
  },
158
153
  dropdown: {
159
154
  shadow: ctDesignTokens.colors.shadow,
@@ -182,6 +177,7 @@
182
177
  successLightBg: ctDesignTokens.colors.successBg,
183
178
  alert: ctDesignTokens.colors.alert,
184
179
  alertLightBg: ctDesignTokens.colors.alertBg,
180
+ alertSoft: ctDesignTokens.colors.alert100,
185
181
  warning: ctDesignTokens.colors.warning,
186
182
  warningLightBg: ctDesignTokens.colors.warningBg,
187
183
  neutral: ctDesignTokens.colors.neutral100,
@@ -190,7 +186,23 @@
190
186
  disabledSecondary: ctDesignTokens.colors.neutral400,
191
187
  disabledDark: ctDesignTokens.colors.disabled100,
192
188
  defaultDark: ctDesignTokens.colors.neutral700,
189
+ darkGrey: ctDesignTokens.colors.darkGrey,
193
190
  defaultDarkest: ctDesignTokens.colors.neutral900,
191
+ darkNetural300: ctDesignTokens.colors.darkNeutral300,
192
+ transparent: ctDesignTokens.colors.transparent,
193
+ secondary2: ctDesignTokens.colors.blue100,
194
+ gray500: ctDesignTokens.colors.gray500,
195
+ mintCream: ctDesignTokens.colors.mintCream,
196
+ pinaColada100: ctDesignTokens.colors.pinaColada100,
197
+ margarita100: ctDesignTokens.colors.margarita100,
198
+ lightCyan: ctDesignTokens.colors.lightCyan,
199
+ neutral300: ctDesignTokens.colors.neutral300,
200
+ orange200: ctDesignTokens.colors.orange200,
201
+ couponGreen: ctDesignTokens.colors.couponGreen,
202
+ black100: ctDesignTokens.colors.black100,
203
+ orange100: ctDesignTokens.colors.orange100,
204
+ lightRed: ctDesignTokens.colors.red100,
205
+ neutral100: ctDesignTokens.colors.neutral100,
194
206
  },
195
207
  border: {
196
208
  primary: ctDesignTokens.colors.neutral900,
@@ -204,6 +216,13 @@
204
216
  disabled: ctDesignTokens.colors.neutral500,
205
217
  disabledDark: ctDesignTokens.colors.disabled100,
206
218
  warning: ctDesignTokens.colors.warning,
219
+ divider: ctDesignTokens.colors.neutral300,
220
+ borderAccent: ctDesignTokens.colors.lightSkyBlue,
221
+ neutral100: ctDesignTokens.colors.neutral100,
222
+ bluePrimary500: ctDesignTokens.colors.bluePrimary500,
223
+ disabled100: ctDesignTokens.colors.disabled100,
224
+ lightGray: ctDesignTokens.colors.lightGray,
225
+ darkRed: ctDesignTokens.colors.red500,
207
226
  },
208
227
  spinner: {
209
228
  primary: ctDesignTokens.colors.neutral700,
@@ -219,21 +238,27 @@
219
238
  alert: {
220
239
  success: ctDesignTokens.colors.successBg,
221
240
  warning: ctDesignTokens.colors.alertBg,
241
+ warningLight: ctDesignTokens.colors.warningLight,
222
242
  info: ctDesignTokens.colors.blue100,
223
- error: ctDesignTokens.colors.orange100,
243
+ error: ctDesignTokens.colors.warningBg,
224
244
  neutral: ctDesignTokens.colors.neutral100,
225
245
  },
226
246
  badge: {
227
247
  curacao: ctDesignTokens.colors.curacao250,
248
+ curacao900: ctDesignTokens.colors.curacao900,
228
249
  pinaColada: ctDesignTokens.colors.pinaColada250,
250
+ pinaColada300: ctDesignTokens.colors.pinaColada300,
229
251
  margarita250: ctDesignTokens.colors.margarita250,
230
252
  default: ctDesignTokens.colors.neutral300,
231
253
  green: ctDesignTokens.colors.successBg,
254
+ green100: ctDesignTokens.colors.freshGreen100,
232
255
  margarita100: ctDesignTokens.colors.margarita100,
233
256
  yellow: ctDesignTokens.colors.alertBg,
234
257
  orange100: ctDesignTokens.colors.orange100,
235
258
  orange250: ctDesignTokens.colors.orange250,
259
+ orange500: ctDesignTokens.colors.orange500,
236
260
  red: ctDesignTokens.colors.warningBg,
261
+ red100: ctDesignTokens.colors.alert100,
237
262
  green500: ctDesignTokens.colors.success500,
238
263
  green600: ctDesignTokens.colors.success600,
239
264
  purple100: ctDesignTokens.colors.purple100,
@@ -245,7 +270,20 @@
245
270
  black: ctDesignTokens.colors.black,
246
271
  link: ctDesignTokens.colors.link,
247
272
  blue100: ctDesignTokens.colors.blue100,
273
+ blue900: ctDesignTokens.colors.blue900,
274
+ blue500: ctDesignTokens.colors.blue500,
248
275
  neutral100: ctDesignTokens.colors.neutral100,
276
+ neutral700: ctDesignTokens.colors.neutral700,
277
+ pinaColada750: ctDesignTokens.colors.pinaColada750,
278
+ pinaColada100: ctDesignTokens.colors.pinaColada100,
279
+ gray800: ctDesignTokens.colors.gray800,
280
+ couponGreen: ctDesignTokens.colors.couponGreen,
281
+ alert500: ctDesignTokens.colors.alert500,
282
+ alertSoft: ctDesignTokens.colors.alert100,
283
+ red200: ctDesignTokens.colors.red200,
284
+ red500: ctDesignTokens.colors.red500,
285
+ redSoft: ctDesignTokens.colors.red100,
286
+ brown: ctDesignTokens.colors.brown,
249
287
  },
250
288
  counter: counter$1,
251
289
  calendar: {
@@ -253,75 +291,82 @@
253
291
  background: ctDesignTokens.colors.neutral300,
254
292
  selected: ctDesignTokens.colors.neutral900,
255
293
  },
294
+ cursor: {
295
+ neutral900: ctDesignTokens.colors.neutral900,
296
+ },
297
+ chipicon: {
298
+ default: ctDesignTokens.colors.neutral900,
299
+ blue: ctDesignTokens.colors.blueSky500,
300
+ pink: ctDesignTokens.colors.pinkVibrant500,
301
+ yellow: ctDesignTokens.colors.yellowSun500,
302
+ purple: ctDesignTokens.colors.purpleRoyal500,
303
+ green: ctDesignTokens.colors.greenFresh500,
304
+ cfwBlue: ctDesignTokens.colors.blue900,
305
+ orange: ctDesignTokens.colors.orange500,
306
+ },
256
307
  },
257
- elevation: __assign({}, ctDesignTokens.elevation),
258
- border: __assign({}, ctDesignTokens.border),
259
- spacing: __assign({}, ctDesignTokens.spacing),
260
- typography: __assign({}, ctDesignTokens.typography),
261
- size: __assign({}, ctDesignTokens.size),
308
+ elevation: Object.assign({}, ctDesignTokens.elevation),
309
+ border: Object.assign({}, ctDesignTokens.border),
310
+ spacing: Object.assign({}, ctDesignTokens.spacing),
311
+ typography: Object.assign({}, ctDesignTokens.typography),
312
+ size: Object.assign({}, ctDesignTokens.size),
262
313
  transitions: {
263
- duration: duration,
264
- easing: easing,
265
- create: create,
266
- getAutoHeightDuration: getAutoHeightDuration,
314
+ duration,
315
+ easing,
316
+ create,
317
+ getAutoHeightDuration,
267
318
  },
268
- zIndex: zIndex,
269
- };
270
-
271
- var B2CTheme = __assign({}, BaseTheme);
272
-
273
- var hover$1 = function (key) {
274
- var _a;
275
- var bg = (_a = {},
276
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
277
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
278
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
279
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
280
- _a[ctDesignTokens.colors.brand] = ctDesignTokens.colors.bgPrimaryHover,
281
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
282
- _a[ctDesignTokens.colors.disabledText] = ctDesignTokens.colors.disabledText,
283
- _a[ctDesignTokens.colors.neutral300] = ctDesignTokens.colors.neutral300,
284
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
285
- _a[ctDesignTokens.colors.link2] = ctDesignTokens.colors.link2Hover,
286
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
287
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
288
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
289
- _a[ctDesignTokens.colors.disabledText] = ctDesignTokens.colors.disabledText,
290
- _a[ctDesignTokens.colors.neutral300] = ctDesignTokens.colors.neutral300,
291
- _a);
292
- return bg[key];
319
+ zIndex,
293
320
  };
294
- var B2BTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { secondary: ctDesignTokens.colors.link2, tertiary: ctDesignTokens.colors.neutral500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.link2, outlinedPrimaryBorder: ctDesignTokens.colors.link2, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, outlinedSecondaryLabel: ctDesignTokens.colors.neutral900, outlinedSecondaryBorder: ctDesignTokens.colors.neutral900, outlinedSecondaryBg: ctDesignTokens.colors.neutral100, outlinedTertiaryLabel: ctDesignTokens.colors.brand, outlinedTertiaryBorder: ctDesignTokens.colors.brand, outlinedTertiaryBg: ctDesignTokens.colors.neutral100, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, outlinedDisabledBg: ctDesignTokens.colors.neutral300, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.link2, containedSecondaryLabel: ctDesignTokens.colors.neutral100, containedSecondaryBg: ctDesignTokens.colors.neutral900, containedTertiaryLabel: ctDesignTokens.colors.neutral100, containedTertiaryBg: ctDesignTokens.colors.brand, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedDisabledBg: ctDesignTokens.colors.neutral300, hover: hover$1 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.link2 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), border: __assign(__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), spinner: {
321
+
322
+ const B2CTheme = Object.assign({}, BaseTheme);
323
+
324
+ const B2BTheme = Object.assign(Object.assign({}, BaseTheme), { color: Object.assign(Object.assign({}, BaseTheme.color), { text: Object.assign(Object.assign({}, BaseTheme.color.text), { secondary: ctDesignTokens.colors.link2, tertiary: ctDesignTokens.colors.neutral500 }), button: Object.assign(Object.assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.link2, outlinedPrimaryBorder: ctDesignTokens.colors.link2, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, outlinedSecondaryLabel: ctDesignTokens.colors.neutral900, outlinedSecondaryBorder: ctDesignTokens.colors.neutral900, outlinedSecondaryBg: ctDesignTokens.colors.neutral100, outlinedTertiaryLabel: ctDesignTokens.colors.brand, outlinedTertiaryBorder: ctDesignTokens.colors.brand, outlinedTertiaryBg: ctDesignTokens.colors.neutral100, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, outlinedDisabledBg: ctDesignTokens.colors.neutral300, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.link2, containedSecondaryLabel: ctDesignTokens.colors.neutral100, containedSecondaryBg: ctDesignTokens.colors.neutral900, containedTertiaryLabel: ctDesignTokens.colors.neutral100, containedTertiaryBg: ctDesignTokens.colors.brand, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedDisabledBg: ctDesignTokens.colors.neutral300, hover: {
325
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
326
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
327
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
328
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
329
+ [ctDesignTokens.colors.brand]: ctDesignTokens.colors.bgPrimaryHover,
330
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
331
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
332
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
333
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
334
+ [ctDesignTokens.colors.link2]: ctDesignTokens.colors.link2Hover,
335
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
336
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
337
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
338
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
339
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
340
+ } }), chip: Object.assign(Object.assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg }), tab: Object.assign(Object.assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.link2 }), background: Object.assign(Object.assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), border: Object.assign(Object.assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.link2, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand }), spinner: {
295
341
  primary: ctDesignTokens.colors.link2,
296
342
  primaryBg: ctDesignTokens.colors.alertBg,
297
- }, calendar: {
298
- accent: '',
299
- background: '',
300
- selected: ctDesignTokens.colors.link2,
343
+ }, coupon: {
344
+ primaryBg: ctDesignTokens.colors.blue100,
301
345
  } }) });
302
346
 
303
- var hover = function (key) {
304
- var _a;
305
- var bg = (_a = {},
306
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
307
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
308
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
309
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
310
- _a[ctDesignTokens.colors.brand] = ctDesignTokens.colors.bgPrimaryHover,
311
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
312
- _a[ctDesignTokens.colors.disabledText] = ctDesignTokens.colors.disabledText,
313
- _a[ctDesignTokens.colors.neutral300] = ctDesignTokens.colors.neutral300,
314
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
315
- _a[ctDesignTokens.colors.link2] = ctDesignTokens.colors.link2Hover,
316
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
317
- _a[ctDesignTokens.colors.neutral900] = ctDesignTokens.colors.neutral900,
318
- _a[ctDesignTokens.colors.neutral100] = ctDesignTokens.colors.neutral100,
319
- _a[ctDesignTokens.colors.disabledText] = ctDesignTokens.colors.disabledText,
320
- _a[ctDesignTokens.colors.neutral300] = ctDesignTokens.colors.neutral300,
321
- _a);
347
+ const hover$1 = (key) => {
348
+ const bg = {
349
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
350
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
351
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
352
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
353
+ [ctDesignTokens.colors.brand]: ctDesignTokens.colors.bgPrimaryHover,
354
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
355
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
356
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
357
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
358
+ [ctDesignTokens.colors.link2]: ctDesignTokens.colors.link2Hover,
359
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
360
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
361
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
362
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
363
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
364
+ [ctDesignTokens.colors.bluePrimary500]: ctDesignTokens.colors.bluePrimary500,
365
+ [ctDesignTokens.colors.yellowSecondary]: ctDesignTokens.colors.yellowSecondary,
366
+ };
322
367
  return bg[key];
323
368
  };
324
- var counter = {
369
+ const counter = {
325
370
  enabled: {
326
371
  stroke: ctDesignTokens.colors.bluePrimary500,
327
372
  },
@@ -329,16 +374,1915 @@
329
374
  stroke: ctDesignTokens.colors.neutral500,
330
375
  },
331
376
  };
332
- var FKTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { link: ctDesignTokens.colors.bluePrimary500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.primaryNeutral900, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.bluePrimary500, containedSecondaryLabel: ctDesignTokens.colors.primaryNeutral900, containedSecondaryBg: ctDesignTokens.colors.yellowSecondary, hover: hover }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg, nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900 }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.bluePrimary500 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.bluePrimary500, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand, linkLightBg: ctDesignTokens.colors.blueSecondary }), border: __assign(__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.bluePrimary500, brand: ctDesignTokens.colors.bluePrimary500 }), spinner: {
377
+ const FKTheme = Object.assign(Object.assign({}, BaseTheme), { color: Object.assign(Object.assign({}, BaseTheme.color), { text: Object.assign(Object.assign({}, BaseTheme.color.text), { link: ctDesignTokens.colors.bluePrimary500 }), button: Object.assign(Object.assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.primaryNeutral900, outlinedPrimaryBg: ctDesignTokens.colors.neutral100, containedPrimaryLabel: ctDesignTokens.colors.neutral100, containedPrimaryBg: ctDesignTokens.colors.bluePrimary500, containedSecondaryLabel: ctDesignTokens.colors.primaryNeutral900, containedSecondaryBg: ctDesignTokens.colors.yellowSecondary, hover: hover$1 }), chip: Object.assign(Object.assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.link2, selectedPrimaryBorder: ctDesignTokens.colors.link2, selectedPrimaryBg: ctDesignTokens.colors.linkBg, nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900 }), tab: Object.assign(Object.assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.neutral900, selectedPrimaryLabel: ctDesignTokens.colors.bluePrimary500 }), background: Object.assign(Object.assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.bluePrimary500, secondary: ctDesignTokens.colors.neutral900, tertiary: ctDesignTokens.colors.brand, linkLightBg: ctDesignTokens.colors.blueSecondary }), border: Object.assign(Object.assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.bluePrimary500, brand: ctDesignTokens.colors.bluePrimary500 }), spinner: {
333
378
  primary: ctDesignTokens.colors.link2,
334
379
  primaryBg: ctDesignTokens.colors.alertBg,
335
- }, counter: counter, calendar: {
380
+ }, counter, calendar: {
336
381
  accent: ctDesignTokens.colors.bluePrimary500,
337
382
  background: ctDesignTokens.colors.blueSecondary,
338
383
  selected: ctDesignTokens.colors.bluePrimary500,
339
384
  } }) });
340
385
 
341
- var getTheme = function (themeType) {
386
+ const hover = (key) => {
387
+ const bg = {
388
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
389
+ [ctDesignTokens.colors.brand]: ctDesignTokens.colors.bgPrimaryHover,
390
+ [ctDesignTokens.colors.disabledText]: ctDesignTokens.colors.disabledText,
391
+ [ctDesignTokens.colors.neutral300]: ctDesignTokens.colors.neutral300,
392
+ [ctDesignTokens.colors.link2]: ctDesignTokens.colors.link2Hover,
393
+ [ctDesignTokens.colors.neutral100]: ctDesignTokens.colors.neutral100,
394
+ [ctDesignTokens.colors.neutral900]: ctDesignTokens.colors.neutral900,
395
+ [ctDesignTokens.colors.superGrey700]: ctDesignTokens.colors.superGrey700,
396
+ [ctDesignTokens.colors.superGrey300]: ctDesignTokens.colors.superGrey300,
397
+ [ctDesignTokens.colors.superGrey800]: ctDesignTokens.colors.superGrey800,
398
+ [ctDesignTokens.colors.superGreen500]: ctDesignTokens.colors.superGreen500,
399
+ };
400
+ return bg[key];
401
+ };
402
+ const SMTheme = Object.assign(Object.assign({}, BaseTheme), { color: Object.assign(Object.assign({}, BaseTheme.color), { text: Object.assign(Object.assign({}, BaseTheme.color.text), { primary: ctDesignTokens.colors.superGrey800, secondary: ctDesignTokens.colors.superGrey500, tertiary: ctDesignTokens.colors.superGrey400, warning: ctDesignTokens.colors.systemRed500, disabled: ctDesignTokens.colors.superGrey400, subHeading: ctDesignTokens.colors.superGrey400, success: ctDesignTokens.colors.systemGreen500, link: ctDesignTokens.colors.superBlue500, link2: ctDesignTokens.colors.superBlue500 }), button: Object.assign(Object.assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.superGrey700, outlinedPrimaryBorder: ctDesignTokens.colors.superGrey300, outlinedTertiaryLabel: ctDesignTokens.colors.superGrey700, outlinedTertiaryBorder: ctDesignTokens.colors.superGrey300, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, containedSecondaryLabel: ctDesignTokens.colors.superGrey800, containedPrimaryBg: ctDesignTokens.colors.superBlue500, containedSecondaryBg: ctDesignTokens.colors.superGreen500, containedTertiaryLabel: ctDesignTokens.colors.superGrey300, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedPrimaryLabel: ctDesignTokens.colors.neutral100, hover: hover }), chip: Object.assign(Object.assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.superBlue500, selectedPrimaryBorder: ctDesignTokens.colors.superBlue500, selectedPrimaryBg: ctDesignTokens.colors.superBlue25, disabledPrimaryLabel: ctDesignTokens.colors.superGrey400, nonSelectedPrimaryLabel: ctDesignTokens.colors.superGrey700, disabledPrimaryBg: ctDesignTokens.colors.superGrey200 }), tab: Object.assign(Object.assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.superGrey500, selectedPrimaryLabel: ctDesignTokens.colors.superBlue500 }), background: Object.assign(Object.assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.superBlue500, disabled: ctDesignTokens.colors.superGrey50, disabledDark: ctDesignTokens.colors.superGrey300, warning: ctDesignTokens.colors.systemRed500 }), border: Object.assign(Object.assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.superBlue500, secondary: ctDesignTokens.colors.neutral900, disabledDark: ctDesignTokens.colors.superGrey300, defaultDark: ctDesignTokens.colors.superGrey400, default: ctDesignTokens.colors.superGrey300, disabled: ctDesignTokens.colors.superGrey200 }) }) });
403
+
404
+ var isDevelopment$3 = false;
405
+
406
+ /*
407
+
408
+ Based off glamor's StyleSheet, thanks Sunil ❤️
409
+
410
+ high performance StyleSheet for css-in-js systems
411
+
412
+ - uses multiple style tags behind the scenes for millions of rules
413
+ - uses `insertRule` for appending in production for *much* faster performance
414
+
415
+ // usage
416
+
417
+ import { StyleSheet } from '@emotion/sheet'
418
+
419
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
420
+
421
+ styleSheet.insert('#box { border: 1px solid red; }')
422
+ - appends a css rule into the stylesheet
423
+
424
+ styleSheet.flush()
425
+ - empties the stylesheet of all its contents
426
+
427
+ */
428
+
429
+ function sheetForTag(tag) {
430
+ if (tag.sheet) {
431
+ return tag.sheet;
432
+ } // this weirdness brought to you by firefox
433
+
434
+ /* istanbul ignore next */
435
+
436
+ for (var i = 0; i < document.styleSheets.length; i++) {
437
+ if (document.styleSheets[i].ownerNode === tag) {
438
+ return document.styleSheets[i];
439
+ }
440
+ } // this function should always return with a value
441
+ // TS can't understand it though so we make it stop complaining here
442
+
443
+ return undefined;
444
+ }
445
+ function createStyleElement(options) {
446
+ var tag = document.createElement('style');
447
+ tag.setAttribute('data-emotion', options.key);
448
+ if (options.nonce !== undefined) {
449
+ tag.setAttribute('nonce', options.nonce);
450
+ }
451
+ tag.appendChild(document.createTextNode(''));
452
+ tag.setAttribute('data-s', '');
453
+ return tag;
454
+ }
455
+ var StyleSheet = /*#__PURE__*/function () {
456
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
457
+ function StyleSheet(options) {
458
+ var _this = this;
459
+ this._insertTag = function (tag) {
460
+ var before;
461
+ if (_this.tags.length === 0) {
462
+ if (_this.insertionPoint) {
463
+ before = _this.insertionPoint.nextSibling;
464
+ } else if (_this.prepend) {
465
+ before = _this.container.firstChild;
466
+ } else {
467
+ before = _this.before;
468
+ }
469
+ } else {
470
+ before = _this.tags[_this.tags.length - 1].nextSibling;
471
+ }
472
+ _this.container.insertBefore(tag, before);
473
+ _this.tags.push(tag);
474
+ };
475
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$3 : options.speedy;
476
+ this.tags = [];
477
+ this.ctr = 0;
478
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
479
+
480
+ this.key = options.key;
481
+ this.container = options.container;
482
+ this.prepend = options.prepend;
483
+ this.insertionPoint = options.insertionPoint;
484
+ this.before = null;
485
+ }
486
+ var _proto = StyleSheet.prototype;
487
+ _proto.hydrate = function hydrate(nodes) {
488
+ nodes.forEach(this._insertTag);
489
+ };
490
+ _proto.insert = function insert(rule) {
491
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
492
+ // it's 1 in dev because we insert source maps that map a single rule to a location
493
+ // and you can only have one source map per style tag
494
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
495
+ this._insertTag(createStyleElement(this));
496
+ }
497
+ var tag = this.tags[this.tags.length - 1];
498
+ if (this.isSpeedy) {
499
+ var sheet = sheetForTag(tag);
500
+ try {
501
+ // this is the ultrafast version, works across browsers
502
+ // the big drawback is that the css won't be editable in devtools
503
+ sheet.insertRule(rule, sheet.cssRules.length);
504
+ } catch (e) {}
505
+ } else {
506
+ tag.appendChild(document.createTextNode(rule));
507
+ }
508
+ this.ctr++;
509
+ };
510
+ _proto.flush = function flush() {
511
+ this.tags.forEach(function (tag) {
512
+ var _tag$parentNode;
513
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
514
+ });
515
+ this.tags = [];
516
+ this.ctr = 0;
517
+ };
518
+ return StyleSheet;
519
+ }();
520
+
521
+ var stylisExports = {};
522
+ var stylis = {
523
+ get exports(){ return stylisExports; },
524
+ set exports(v){ stylisExports = v; },
525
+ };
526
+
527
+ (function (module, exports) {
528
+ (function (e, r) {
529
+ r(exports) ;
530
+ })(this, function (e) {
531
+
532
+ var r = "-ms-";
533
+ var a = "-moz-";
534
+ var c = "-webkit-";
535
+ var n = "comm";
536
+ var t = "rule";
537
+ var s = "decl";
538
+ var i = "@page";
539
+ var u = "@media";
540
+ var o = "@import";
541
+ var f = "@charset";
542
+ var l = "@viewport";
543
+ var p = "@supports";
544
+ var h = "@document";
545
+ var v = "@namespace";
546
+ var d = "@keyframes";
547
+ var b = "@font-face";
548
+ var w = "@counter-style";
549
+ var m = "@font-feature-values";
550
+ var g = "@layer";
551
+ var k = Math.abs;
552
+ var $ = String.fromCharCode;
553
+ var x = Object.assign;
554
+ function E(e, r) {
555
+ return M(e, 0) ^ 45 ? (((r << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
556
+ }
557
+ function y(e) {
558
+ return e.trim();
559
+ }
560
+ function T(e, r) {
561
+ return (e = r.exec(e)) ? e[0] : e;
562
+ }
563
+ function A(e, r, a) {
564
+ return e.replace(r, a);
565
+ }
566
+ function O(e, r) {
567
+ return e.indexOf(r);
568
+ }
569
+ function M(e, r) {
570
+ return e.charCodeAt(r) | 0;
571
+ }
572
+ function C(e, r, a) {
573
+ return e.slice(r, a);
574
+ }
575
+ function R(e) {
576
+ return e.length;
577
+ }
578
+ function S(e) {
579
+ return e.length;
580
+ }
581
+ function z(e, r) {
582
+ return r.push(e), e;
583
+ }
584
+ function N(e, r) {
585
+ return e.map(r).join("");
586
+ }
587
+ e.line = 1;
588
+ e.column = 1;
589
+ e.length = 0;
590
+ e.position = 0;
591
+ e.character = 0;
592
+ e.characters = "";
593
+ function P(r, a, c, n, t, s, i) {
594
+ return {
595
+ value: r,
596
+ root: a,
597
+ parent: c,
598
+ type: n,
599
+ props: t,
600
+ children: s,
601
+ line: e.line,
602
+ column: e.column,
603
+ length: i,
604
+ return: ""
605
+ };
606
+ }
607
+ function j(e, r) {
608
+ return x(P("", null, null, "", null, null, 0), e, {
609
+ length: -e.length
610
+ }, r);
611
+ }
612
+ function U() {
613
+ return e.character;
614
+ }
615
+ function _() {
616
+ e.character = e.position > 0 ? M(e.characters, --e.position) : 0;
617
+ if (e.column--, e.character === 10) e.column = 1, e.line--;
618
+ return e.character;
619
+ }
620
+ function F() {
621
+ e.character = e.position < e.length ? M(e.characters, e.position++) : 0;
622
+ if (e.column++, e.character === 10) e.column = 1, e.line++;
623
+ return e.character;
624
+ }
625
+ function I() {
626
+ return M(e.characters, e.position);
627
+ }
628
+ function L() {
629
+ return e.position;
630
+ }
631
+ function D(r, a) {
632
+ return C(e.characters, r, a);
633
+ }
634
+ function Y(e) {
635
+ switch (e) {
636
+ case 0:
637
+ case 9:
638
+ case 10:
639
+ case 13:
640
+ case 32:
641
+ return 5;
642
+ case 33:
643
+ case 43:
644
+ case 44:
645
+ case 47:
646
+ case 62:
647
+ case 64:
648
+ case 126:
649
+ case 59:
650
+ case 123:
651
+ case 125:
652
+ return 4;
653
+ case 58:
654
+ return 3;
655
+ case 34:
656
+ case 39:
657
+ case 40:
658
+ case 91:
659
+ return 2;
660
+ case 41:
661
+ case 93:
662
+ return 1;
663
+ }
664
+ return 0;
665
+ }
666
+ function K(r) {
667
+ return e.line = e.column = 1, e.length = R(e.characters = r), e.position = 0, [];
668
+ }
669
+ function V(r) {
670
+ return e.characters = "", r;
671
+ }
672
+ function W(r) {
673
+ return y(D(e.position - 1, q(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
674
+ }
675
+ function B(e) {
676
+ return V(H(K(e)));
677
+ }
678
+ function G(r) {
679
+ while (e.character = I()) if (e.character < 33) F();else break;
680
+ return Y(r) > 2 || Y(e.character) > 3 ? "" : " ";
681
+ }
682
+ function H(r) {
683
+ while (F()) switch (Y(e.character)) {
684
+ case 0:
685
+ z(Q(e.position - 1), r);
686
+ break;
687
+ case 2:
688
+ z(W(e.character), r);
689
+ break;
690
+ default:
691
+ z($(e.character), r);
692
+ }
693
+ return r;
694
+ }
695
+ function Z(r, a) {
696
+ while (--a && F()) if (e.character < 48 || e.character > 102 || e.character > 57 && e.character < 65 || e.character > 70 && e.character < 97) break;
697
+ return D(r, L() + (a < 6 && I() == 32 && F() == 32));
698
+ }
699
+ function q(r) {
700
+ while (F()) switch (e.character) {
701
+ case r:
702
+ return e.position;
703
+ case 34:
704
+ case 39:
705
+ if (r !== 34 && r !== 39) q(e.character);
706
+ break;
707
+ case 40:
708
+ if (r === 41) q(r);
709
+ break;
710
+ case 92:
711
+ F();
712
+ break;
713
+ }
714
+ return e.position;
715
+ }
716
+ function J(r, a) {
717
+ while (F()) if (r + e.character === 47 + 10) break;else if (r + e.character === 42 + 42 && I() === 47) break;
718
+ return "/*" + D(a, e.position - 1) + "*" + $(r === 47 ? r : F());
719
+ }
720
+ function Q(r) {
721
+ while (!Y(I())) F();
722
+ return D(r, e.position);
723
+ }
724
+ function X(e) {
725
+ return V(ee("", null, null, null, [""], e = K(e), 0, [0], e));
726
+ }
727
+ function ee(e, r, a, c, n, t, s, i, u) {
728
+ var o = 0;
729
+ var f = 0;
730
+ var l = s;
731
+ var p = 0;
732
+ var h = 0;
733
+ var v = 0;
734
+ var d = 1;
735
+ var b = 1;
736
+ var w = 1;
737
+ var m = 0;
738
+ var g = "";
739
+ var k = n;
740
+ var x = t;
741
+ var E = c;
742
+ var y = g;
743
+ while (b) switch (v = m, m = F()) {
744
+ case 40:
745
+ if (v != 108 && M(y, l - 1) == 58) {
746
+ if (O(y += A(W(m), "&", "&\f"), "&\f") != -1) w = -1;
747
+ break;
748
+ }
749
+ case 34:
750
+ case 39:
751
+ case 91:
752
+ y += W(m);
753
+ break;
754
+ case 9:
755
+ case 10:
756
+ case 13:
757
+ case 32:
758
+ y += G(v);
759
+ break;
760
+ case 92:
761
+ y += Z(L() - 1, 7);
762
+ continue;
763
+ case 47:
764
+ switch (I()) {
765
+ case 42:
766
+ case 47:
767
+ z(ae(J(F(), L()), r, a), u);
768
+ break;
769
+ default:
770
+ y += "/";
771
+ }
772
+ break;
773
+ case 123 * d:
774
+ i[o++] = R(y) * w;
775
+ case 125 * d:
776
+ case 59:
777
+ case 0:
778
+ switch (m) {
779
+ case 0:
780
+ case 125:
781
+ b = 0;
782
+ case 59 + f:
783
+ if (w == -1) y = A(y, /\f/g, "");
784
+ if (h > 0 && R(y) - l) z(h > 32 ? ce(y + ";", c, a, l - 1) : ce(A(y, " ", "") + ";", c, a, l - 2), u);
785
+ break;
786
+ case 59:
787
+ y += ";";
788
+ default:
789
+ z(E = re(y, r, a, o, f, n, i, g, k = [], x = [], l), t);
790
+ 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) {
791
+ case 100:
792
+ case 108:
793
+ case 109:
794
+ case 115:
795
+ 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);
796
+ break;
797
+ default:
798
+ ee(y, E, E, E, [""], x, 0, i, x);
799
+ }
800
+ }
801
+ o = f = h = 0, d = w = 1, g = y = "", l = s;
802
+ break;
803
+ case 58:
804
+ l = 1 + R(y), h = v;
805
+ default:
806
+ if (d < 1) if (m == 123) --d;else if (m == 125 && d++ == 0 && _() == 125) continue;
807
+ switch (y += $(m), m * d) {
808
+ case 38:
809
+ w = f > 0 ? 1 : (y += "\f", -1);
810
+ break;
811
+ case 44:
812
+ i[o++] = (R(y) - 1) * w, w = 1;
813
+ break;
814
+ case 64:
815
+ if (I() === 45) y += W(F());
816
+ p = I(), f = l = R(g = y += Q(L())), m++;
817
+ break;
818
+ case 45:
819
+ if (v === 45 && R(y) == 2) d = 0;
820
+ }
821
+ }
822
+ return t;
823
+ }
824
+ function re(e, r, a, c, n, s, i, u, o, f, l) {
825
+ var p = n - 1;
826
+ var h = n === 0 ? s : [""];
827
+ var v = S(h);
828
+ 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++] = $;
829
+ return P(e, r, a, n === 0 ? t : u, o, f, l);
830
+ }
831
+ function ae(e, r, a) {
832
+ return P(e, r, a, n, $(U()), C(e, 2, -2), 0);
833
+ }
834
+ function ce(e, r, a, c) {
835
+ return P(e, r, a, s, C(e, 0, c), C(e, c + 1, -1), c);
836
+ }
837
+ function ne(e, n, t) {
838
+ switch (E(e, n)) {
839
+ case 5103:
840
+ return c + "print-" + e + e;
841
+ case 5737:
842
+ case 4201:
843
+ case 3177:
844
+ case 3433:
845
+ case 1641:
846
+ case 4457:
847
+ case 2921:
848
+ case 5572:
849
+ case 6356:
850
+ case 5844:
851
+ case 3191:
852
+ case 6645:
853
+ case 3005:
854
+ case 6391:
855
+ case 5879:
856
+ case 5623:
857
+ case 6135:
858
+ case 4599:
859
+ case 4855:
860
+ case 4215:
861
+ case 6389:
862
+ case 5109:
863
+ case 5365:
864
+ case 5621:
865
+ case 3829:
866
+ return c + e + e;
867
+ case 4789:
868
+ return a + e + e;
869
+ case 5349:
870
+ case 4246:
871
+ case 4810:
872
+ case 6968:
873
+ case 2756:
874
+ return c + e + a + e + r + e + e;
875
+ case 5936:
876
+ switch (M(e, n + 11)) {
877
+ case 114:
878
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
879
+ case 108:
880
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
881
+ case 45:
882
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
883
+ }
884
+ case 6828:
885
+ case 4268:
886
+ case 2903:
887
+ return c + e + r + e + e;
888
+ case 6165:
889
+ return c + e + r + "flex-" + e + e;
890
+ case 5187:
891
+ return c + e + A(e, /(\w+).+(:[^]+)/, c + "box-$1$2" + r + "flex-$1$2") + e;
892
+ case 5443:
893
+ return c + e + r + "flex-item-" + A(e, /flex-|-self/g, "") + (!T(e, /flex-|baseline/) ? r + "grid-row-" + A(e, /flex-|-self/g, "") : "") + e;
894
+ case 4675:
895
+ return c + e + r + "flex-line-pack" + A(e, /align-content|flex-|-self/g, "") + e;
896
+ case 5548:
897
+ return c + e + r + A(e, "shrink", "negative") + e;
898
+ case 5292:
899
+ return c + e + r + A(e, "basis", "preferred-size") + e;
900
+ case 6060:
901
+ return c + "box-" + A(e, "-grow", "") + c + e + r + A(e, "grow", "positive") + e;
902
+ case 4554:
903
+ return c + A(e, /([^-])(transform)/g, "$1" + c + "$2") + e;
904
+ case 6187:
905
+ return A(A(A(e, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), e, "") + e;
906
+ case 5495:
907
+ case 3959:
908
+ return A(e, /(image-set\([^]*)/, c + "$1" + "$`$1");
909
+ case 4968:
910
+ return A(A(e, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + e + e;
911
+ case 4200:
912
+ if (!T(e, /flex-|baseline/)) return r + "grid-column-align" + C(e, n) + e;
913
+ break;
914
+ case 2592:
915
+ case 3360:
916
+ return r + A(e, "template-", "") + e;
917
+ case 4384:
918
+ case 3616:
919
+ if (t && t.some(function (e, r) {
920
+ return n = r, T(e.props, /grid-\w+-end/);
921
+ })) {
922
+ 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+/)) + ";";
923
+ }
924
+ return r + A(e, "-start", "") + e;
925
+ case 4896:
926
+ case 4128:
927
+ return t && t.some(function (e) {
928
+ return T(e.props, /grid-\w+-start/);
929
+ }) ? e : r + A(A(e, "-end", "-span"), "span ", "") + e;
930
+ case 4095:
931
+ case 3583:
932
+ case 4068:
933
+ case 2532:
934
+ return A(e, /(.+)-inline(.+)/, c + "$1$2") + e;
935
+ case 8116:
936
+ case 7059:
937
+ case 5753:
938
+ case 5535:
939
+ case 5445:
940
+ case 5701:
941
+ case 4933:
942
+ case 4677:
943
+ case 5533:
944
+ case 5789:
945
+ case 5021:
946
+ case 4765:
947
+ if (R(e) - 1 - n > 6) switch (M(e, n + 1)) {
948
+ case 109:
949
+ if (M(e, n + 4) !== 45) break;
950
+ case 102:
951
+ return A(e, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + a + (M(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
952
+ case 115:
953
+ return ~O(e, "stretch") ? ne(A(e, "stretch", "fill-available"), n, t) + e : e;
954
+ }
955
+ break;
956
+ case 5152:
957
+ case 5920:
958
+ return A(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (a, c, n, t, s, i, u) {
959
+ return r + c + ":" + n + u + (t ? r + c + "-span:" + (s ? i : +i - +n) + u : "") + e;
960
+ });
961
+ case 4949:
962
+ if (M(e, n + 6) === 121) return A(e, ":", ":" + c) + e;
963
+ break;
964
+ case 6444:
965
+ switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
966
+ case 120:
967
+ return A(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (M(e, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + r + "$2box$3") + e;
968
+ case 100:
969
+ return A(e, ":", ":" + r) + e;
970
+ }
971
+ break;
972
+ case 5719:
973
+ case 2647:
974
+ case 2135:
975
+ case 3927:
976
+ case 2391:
977
+ return A(e, "scroll-", "scroll-snap-") + e;
978
+ }
979
+ return e;
980
+ }
981
+ function te(e, r) {
982
+ var a = "";
983
+ var c = S(e);
984
+ for (var n = 0; n < c; n++) a += r(e[n], n, e, r) || "";
985
+ return a;
986
+ }
987
+ function se(e, r, a, c) {
988
+ switch (e.type) {
989
+ case g:
990
+ if (e.children.length) break;
991
+ case o:
992
+ case s:
993
+ return e.return = e.return || e.value;
994
+ case n:
995
+ return "";
996
+ case d:
997
+ return e.return = e.value + "{" + te(e.children, c) + "}";
998
+ case t:
999
+ e.value = e.props.join(",");
1000
+ }
1001
+ return R(a = te(e.children, c)) ? e.return = e.value + "{" + a + "}" : "";
1002
+ }
1003
+ function ie(e) {
1004
+ var r = S(e);
1005
+ return function (a, c, n, t) {
1006
+ var s = "";
1007
+ for (var i = 0; i < r; i++) s += e[i](a, c, n, t) || "";
1008
+ return s;
1009
+ };
1010
+ }
1011
+ function ue(e) {
1012
+ return function (r) {
1013
+ if (!r.root) if (r = r.return) e(r);
1014
+ };
1015
+ }
1016
+ function oe(e, n, i, u) {
1017
+ if (e.length > -1) if (!e.return) switch (e.type) {
1018
+ case s:
1019
+ e.return = ne(e.value, e.length, i);
1020
+ return;
1021
+ case d:
1022
+ return te([j(e, {
1023
+ value: A(e.value, "@", "@" + c)
1024
+ })], u);
1025
+ case t:
1026
+ if (e.length) return N(e.props, function (n) {
1027
+ switch (T(n, /(::plac\w+|:read-\w+)/)) {
1028
+ case ":read-only":
1029
+ case ":read-write":
1030
+ return te([j(e, {
1031
+ props: [A(n, /:(read-\w+)/, ":" + a + "$1")]
1032
+ })], u);
1033
+ case "::placeholder":
1034
+ return te([j(e, {
1035
+ props: [A(n, /:(plac\w+)/, ":" + c + "input-$1")]
1036
+ }), j(e, {
1037
+ props: [A(n, /:(plac\w+)/, ":" + a + "$1")]
1038
+ }), j(e, {
1039
+ props: [A(n, /:(plac\w+)/, r + "input-$1")]
1040
+ })], u);
1041
+ }
1042
+ return "";
1043
+ });
1044
+ }
1045
+ }
1046
+ function fe(e) {
1047
+ switch (e.type) {
1048
+ case t:
1049
+ e.props = e.props.map(function (r) {
1050
+ return N(B(r), function (r, a, c) {
1051
+ switch (M(r, 0)) {
1052
+ case 12:
1053
+ return C(r, 1, R(r));
1054
+ case 0:
1055
+ case 40:
1056
+ case 43:
1057
+ case 62:
1058
+ case 126:
1059
+ return r;
1060
+ case 58:
1061
+ if (c[++a] === "global") c[a] = "", c[++a] = "\f" + C(c[a], a = 1, -1);
1062
+ case 32:
1063
+ return a === 1 ? "" : r;
1064
+ default:
1065
+ switch (a) {
1066
+ case 0:
1067
+ e = r;
1068
+ return S(c) > 1 ? "" : r;
1069
+ case a = S(c) - 1:
1070
+ case 2:
1071
+ return a === 2 ? r + e + e : r + e;
1072
+ default:
1073
+ return r;
1074
+ }
1075
+ }
1076
+ });
1077
+ });
1078
+ }
1079
+ }
1080
+ e.CHARSET = f;
1081
+ e.COMMENT = n;
1082
+ e.COUNTER_STYLE = w;
1083
+ e.DECLARATION = s;
1084
+ e.DOCUMENT = h;
1085
+ e.FONT_FACE = b;
1086
+ e.FONT_FEATURE_VALUES = m;
1087
+ e.IMPORT = o;
1088
+ e.KEYFRAMES = d;
1089
+ e.LAYER = g;
1090
+ e.MEDIA = u;
1091
+ e.MOZ = a;
1092
+ e.MS = r;
1093
+ e.NAMESPACE = v;
1094
+ e.PAGE = i;
1095
+ e.RULESET = t;
1096
+ e.SUPPORTS = p;
1097
+ e.VIEWPORT = l;
1098
+ e.WEBKIT = c;
1099
+ e.abs = k;
1100
+ e.alloc = K;
1101
+ e.append = z;
1102
+ e.assign = x;
1103
+ e.caret = L;
1104
+ e.char = U;
1105
+ e.charat = M;
1106
+ e.combine = N;
1107
+ e.comment = ae;
1108
+ e.commenter = J;
1109
+ e.compile = X;
1110
+ e.copy = j;
1111
+ e.dealloc = V;
1112
+ e.declaration = ce;
1113
+ e.delimit = W;
1114
+ e.delimiter = q;
1115
+ e.escaping = Z;
1116
+ e.from = $;
1117
+ e.hash = E;
1118
+ e.identifier = Q;
1119
+ e.indexof = O;
1120
+ e.match = T;
1121
+ e.middleware = ie;
1122
+ e.namespace = fe;
1123
+ e.next = F;
1124
+ e.node = P;
1125
+ e.parse = ee;
1126
+ e.peek = I;
1127
+ e.prefix = ne;
1128
+ e.prefixer = oe;
1129
+ e.prev = _;
1130
+ e.replace = A;
1131
+ e.ruleset = re;
1132
+ e.rulesheet = ue;
1133
+ e.serialize = te;
1134
+ e.sizeof = S;
1135
+ e.slice = D;
1136
+ e.stringify = se;
1137
+ e.strlen = R;
1138
+ e.substr = C;
1139
+ e.token = Y;
1140
+ e.tokenize = B;
1141
+ e.tokenizer = H;
1142
+ e.trim = y;
1143
+ e.whitespace = G;
1144
+ Object.defineProperty(e, "__esModule", {
1145
+ value: true
1146
+ });
1147
+ });
1148
+ })(stylis, stylisExports);
1149
+
1150
+ var weakMemoize = function weakMemoize(func) {
1151
+ var cache = new WeakMap();
1152
+ return function (arg) {
1153
+ if (cache.has(arg)) {
1154
+ // Use non-null assertion because we just checked that the cache `has` it
1155
+ // This allows us to remove `undefined` from the return value
1156
+ return cache.get(arg);
1157
+ }
1158
+ var ret = func(arg);
1159
+ cache.set(arg, ret);
1160
+ return ret;
1161
+ };
1162
+ };
1163
+
1164
+ function memoize(fn) {
1165
+ var cache = Object.create(null);
1166
+ return function (arg) {
1167
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1168
+ return cache[arg];
1169
+ };
1170
+ }
1171
+
1172
+ var isBrowser$4 = typeof document !== 'undefined';
1173
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1174
+ var previous = 0;
1175
+ var character = 0;
1176
+ while (true) {
1177
+ previous = character;
1178
+ character = stylisExports.peek(); // &\f
1179
+
1180
+ if (previous === 38 && character === 12) {
1181
+ points[index] = 1;
1182
+ }
1183
+ if (stylisExports.token(character)) {
1184
+ break;
1185
+ }
1186
+ stylisExports.next();
1187
+ }
1188
+ return stylisExports.slice(begin, stylisExports.position);
1189
+ };
1190
+ var toRules = function toRules(parsed, points) {
1191
+ // pretend we've started with a comma
1192
+ var index = -1;
1193
+ var character = 44;
1194
+ do {
1195
+ switch (stylisExports.token(character)) {
1196
+ case 0:
1197
+ // &\f
1198
+ if (character === 38 && stylisExports.peek() === 12) {
1199
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
1200
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
1201
+ // and when it should just concatenate the outer and inner selectors
1202
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
1203
+ points[index] = 1;
1204
+ }
1205
+ parsed[index] += identifierWithPointTracking(stylisExports.position - 1, points, index);
1206
+ break;
1207
+ case 2:
1208
+ parsed[index] += stylisExports.delimit(character);
1209
+ break;
1210
+ case 4:
1211
+ // comma
1212
+ if (character === 44) {
1213
+ // colon
1214
+ parsed[++index] = stylisExports.peek() === 58 ? '&\f' : '';
1215
+ points[index] = parsed[index].length;
1216
+ break;
1217
+ }
1218
+
1219
+ // fallthrough
1220
+
1221
+ default:
1222
+ parsed[index] += stylisExports.from(character);
1223
+ }
1224
+ } while (character = stylisExports.next());
1225
+ return parsed;
1226
+ };
1227
+ var getRules = function getRules(value, points) {
1228
+ return stylisExports.dealloc(toRules(stylisExports.alloc(value), points));
1229
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
1230
+
1231
+ var fixedElements = /* #__PURE__ */new WeakMap();
1232
+ var compat = function compat(element) {
1233
+ if (element.type !== 'rule' || !element.parent ||
1234
+ // positive .length indicates that this rule contains pseudo
1235
+ // negative .length indicates that this rule has been already prefixed
1236
+ element.length < 1) {
1237
+ return;
1238
+ }
1239
+ var value = element.value;
1240
+ var parent = element.parent;
1241
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
1242
+ while (parent.type !== 'rule') {
1243
+ parent = parent.parent;
1244
+ if (!parent) return;
1245
+ } // short-circuit for the simplest case
1246
+
1247
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
1248
+ /* colon */ && !fixedElements.get(parent)) {
1249
+ return;
1250
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
1251
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
1252
+
1253
+ if (isImplicitRule) {
1254
+ return;
1255
+ }
1256
+ fixedElements.set(element, true);
1257
+ var points = [];
1258
+ var rules = getRules(value, points);
1259
+ var parentRules = parent.props;
1260
+ for (var i = 0, k = 0; i < rules.length; i++) {
1261
+ for (var j = 0; j < parentRules.length; j++, k++) {
1262
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1263
+ }
1264
+ }
1265
+ };
1266
+ var removeLabel = function removeLabel(element) {
1267
+ if (element.type === 'decl') {
1268
+ var value = element.value;
1269
+ if (
1270
+ // charcode for l
1271
+ value.charCodeAt(0) === 108 &&
1272
+ // charcode for b
1273
+ value.charCodeAt(2) === 98) {
1274
+ // this ignores label
1275
+ element["return"] = '';
1276
+ element.value = '';
1277
+ }
1278
+ }
1279
+ };
1280
+
1281
+ /* eslint-disable no-fallthrough */
1282
+
1283
+ function prefix(value, length) {
1284
+ switch (stylisExports.hash(value, length)) {
1285
+ // color-adjust
1286
+ case 5103:
1287
+ return stylisExports.WEBKIT + 'print-' + value + value;
1288
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1289
+
1290
+ case 5737:
1291
+ case 4201:
1292
+ case 3177:
1293
+ case 3433:
1294
+ case 1641:
1295
+ case 4457:
1296
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1297
+
1298
+ case 5572:
1299
+ case 6356:
1300
+ case 5844:
1301
+ case 3191:
1302
+ case 6645:
1303
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1304
+
1305
+ case 6391:
1306
+ case 5879:
1307
+ case 5623:
1308
+ case 6135:
1309
+ case 4599:
1310
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1311
+
1312
+ case 4215:
1313
+ case 6389:
1314
+ case 5109:
1315
+ case 5365:
1316
+ case 5621:
1317
+ case 3829:
1318
+ return stylisExports.WEBKIT + value + value;
1319
+ // appearance, user-select, transform, hyphens, text-size-adjust
1320
+
1321
+ case 5349:
1322
+ case 4246:
1323
+ case 4810:
1324
+ case 6968:
1325
+ case 2756:
1326
+ return stylisExports.WEBKIT + value + stylisExports.MOZ + value + stylisExports.MS + value + value;
1327
+ // flex, flex-direction
1328
+
1329
+ case 6828:
1330
+ case 4268:
1331
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1332
+ // order
1333
+
1334
+ case 6165:
1335
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-' + value + value;
1336
+ // align-items
1337
+
1338
+ case 5187:
1339
+ return stylisExports.WEBKIT + value + stylisExports.replace(value, /(\w+).+(:[^]+)/, stylisExports.WEBKIT + 'box-$1$2' + stylisExports.MS + 'flex-$1$2') + value;
1340
+ // align-self
1341
+
1342
+ case 5443:
1343
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-item-' + stylisExports.replace(value, /flex-|-self/, '') + value;
1344
+ // align-content
1345
+
1346
+ case 4675:
1347
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-line-pack' + stylisExports.replace(value, /align-content|flex-|-self/, '') + value;
1348
+ // flex-shrink
1349
+
1350
+ case 5548:
1351
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'shrink', 'negative') + value;
1352
+ // flex-basis
1353
+
1354
+ case 5292:
1355
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'basis', 'preferred-size') + value;
1356
+ // flex-grow
1357
+
1358
+ case 6060:
1359
+ return stylisExports.WEBKIT + 'box-' + stylisExports.replace(value, '-grow', '') + stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'grow', 'positive') + value;
1360
+ // transition
1361
+
1362
+ case 4554:
1363
+ return stylisExports.WEBKIT + stylisExports.replace(value, /([^-])(transform)/g, '$1' + stylisExports.WEBKIT + '$2') + value;
1364
+ // cursor
1365
+
1366
+ case 6187:
1367
+ return stylisExports.replace(stylisExports.replace(stylisExports.replace(value, /(zoom-|grab)/, stylisExports.WEBKIT + '$1'), /(image-set)/, stylisExports.WEBKIT + '$1'), value, '') + value;
1368
+ // background, background-image
1369
+
1370
+ case 5495:
1371
+ case 3959:
1372
+ return stylisExports.replace(value, /(image-set\([^]*)/, stylisExports.WEBKIT + '$1' + '$`$1');
1373
+ // justify-content
1374
+
1375
+ case 4968:
1376
+ return stylisExports.replace(stylisExports.replace(value, /(.+:)(flex-)?(.*)/, stylisExports.WEBKIT + 'box-pack:$3' + stylisExports.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylisExports.WEBKIT + value + value;
1377
+ // (margin|padding)-inline-(start|end)
1378
+
1379
+ case 4095:
1380
+ case 3583:
1381
+ case 4068:
1382
+ case 2532:
1383
+ return stylisExports.replace(value, /(.+)-inline(.+)/, stylisExports.WEBKIT + '$1$2') + value;
1384
+ // (min|max)?(width|height|inline-size|block-size)
1385
+
1386
+ case 8116:
1387
+ case 7059:
1388
+ case 5753:
1389
+ case 5535:
1390
+ case 5445:
1391
+ case 5701:
1392
+ case 4933:
1393
+ case 4677:
1394
+ case 5533:
1395
+ case 5789:
1396
+ case 5021:
1397
+ case 4765:
1398
+ // stretch, max-content, min-content, fill-available
1399
+ if (stylisExports.strlen(value) - 1 - length > 6) switch (stylisExports.charat(value, length + 1)) {
1400
+ // (m)ax-content, (m)in-content
1401
+ case 109:
1402
+ // -
1403
+ if (stylisExports.charat(value, length + 4) !== 45) break;
1404
+ // (f)ill-available, (f)it-content
1405
+
1406
+ case 102:
1407
+ return stylisExports.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylisExports.WEBKIT + '$2-$3' + '$1' + stylisExports.MOZ + (stylisExports.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1408
+ // (s)tretch
1409
+
1410
+ case 115:
1411
+ return ~stylisExports.indexof(value, 'stretch') ? prefix(stylisExports.replace(value, 'stretch', 'fill-available'), length) + value : value;
1412
+ }
1413
+ break;
1414
+ // position: sticky
1415
+
1416
+ case 4949:
1417
+ // (s)ticky?
1418
+ if (stylisExports.charat(value, length + 1) !== 115) break;
1419
+ // display: (flex|inline-flex)
1420
+
1421
+ case 6444:
1422
+ switch (stylisExports.charat(value, stylisExports.strlen(value) - 3 - (~stylisExports.indexof(value, '!important') && 10))) {
1423
+ // stic(k)y
1424
+ case 107:
1425
+ return stylisExports.replace(value, ':', ':' + stylisExports.WEBKIT) + value;
1426
+ // (inline-)?fl(e)x
1427
+
1428
+ case 101:
1429
+ 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;
1430
+ }
1431
+ break;
1432
+ // writing-mode
1433
+
1434
+ case 5936:
1435
+ switch (stylisExports.charat(value, length + 11)) {
1436
+ // vertical-l(r)
1437
+ case 114:
1438
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1439
+ // vertical-r(l)
1440
+
1441
+ case 108:
1442
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1443
+ // horizontal(-)tb
1444
+
1445
+ case 45:
1446
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1447
+ }
1448
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1449
+ }
1450
+ return value;
1451
+ }
1452
+ var prefixer = function prefixer(element, index, children, callback) {
1453
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1454
+ case stylisExports.DECLARATION:
1455
+ element["return"] = prefix(element.value, element.length);
1456
+ break;
1457
+ case stylisExports.KEYFRAMES:
1458
+ return stylisExports.serialize([stylisExports.copy(element, {
1459
+ value: stylisExports.replace(element.value, '@', '@' + stylisExports.WEBKIT)
1460
+ })], callback);
1461
+ case stylisExports.RULESET:
1462
+ if (element.length) return stylisExports.combine(element.props, function (value) {
1463
+ switch (stylisExports.match(value, /(::plac\w+|:read-\w+)/)) {
1464
+ // :read-(only|write)
1465
+ case ':read-only':
1466
+ case ':read-write':
1467
+ return stylisExports.serialize([stylisExports.copy(element, {
1468
+ props: [stylisExports.replace(value, /:(read-\w+)/, ':' + stylisExports.MOZ + '$1')]
1469
+ })], callback);
1470
+ // :placeholder
1471
+
1472
+ case '::placeholder':
1473
+ return stylisExports.serialize([stylisExports.copy(element, {
1474
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.WEBKIT + 'input-$1')]
1475
+ }), stylisExports.copy(element, {
1476
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.MOZ + '$1')]
1477
+ }), stylisExports.copy(element, {
1478
+ props: [stylisExports.replace(value, /:(plac\w+)/, stylisExports.MS + 'input-$1')]
1479
+ })], callback);
1480
+ }
1481
+ return '';
1482
+ });
1483
+ }
1484
+ };
1485
+ var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
1486
+ return memoize(function () {
1487
+ return {};
1488
+ });
1489
+ });
1490
+ var defaultStylisPlugins = [prefixer];
1491
+ var createCache = function createCache(options) {
1492
+ var key = options.key;
1493
+ if (isBrowser$4 && key === 'css') {
1494
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1495
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1496
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1497
+ // that creating a cache works inside of render of a React component
1498
+
1499
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1500
+ // we want to only move elements which have a space in the data-emotion attribute value
1501
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1502
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1503
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1504
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1505
+ // will not result in the Emotion 10 styles being destroyed
1506
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1507
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1508
+ return;
1509
+ }
1510
+ document.head.appendChild(node);
1511
+ node.setAttribute('data-s', '');
1512
+ });
1513
+ }
1514
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1515
+ var inserted = {};
1516
+ var container;
1517
+ var nodesToHydrate = [];
1518
+ if (isBrowser$4) {
1519
+ container = options.container || document.head;
1520
+ Array.prototype.forEach.call(
1521
+ // this means we will ignore elements which don't have a space in them which
1522
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1523
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1524
+ var attrib = node.getAttribute("data-emotion").split(' ');
1525
+ for (var i = 1; i < attrib.length; i++) {
1526
+ inserted[attrib[i]] = true;
1527
+ }
1528
+ nodesToHydrate.push(node);
1529
+ });
1530
+ }
1531
+ var _insert;
1532
+ var omnipresentPlugins = [compat, removeLabel];
1533
+ if (!getServerStylisCache) {
1534
+ var currentSheet;
1535
+ var finalizingPlugins = [stylisExports.stringify, stylisExports.rulesheet(function (rule) {
1536
+ currentSheet.insert(rule);
1537
+ })];
1538
+ var serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1539
+ var stylis = function stylis(styles) {
1540
+ return stylisExports.serialize(stylisExports.compile(styles), serializer);
1541
+ };
1542
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1543
+ currentSheet = sheet;
1544
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1545
+ if (shouldCache) {
1546
+ cache.inserted[serialized.name] = true;
1547
+ }
1548
+ };
1549
+ } else {
1550
+ var _finalizingPlugins = [stylisExports.stringify];
1551
+ var _serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1552
+ var _stylis = function _stylis(styles) {
1553
+ return stylisExports.serialize(stylisExports.compile(styles), _serializer);
1554
+ };
1555
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1556
+ var getRules = function getRules(selector, serialized) {
1557
+ var name = serialized.name;
1558
+ if (serverStylisCache[name] === undefined) {
1559
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1560
+ }
1561
+ return serverStylisCache[name];
1562
+ };
1563
+ _insert = function _insert(selector, serialized, sheet, shouldCache) {
1564
+ var name = serialized.name;
1565
+ var rules = getRules(selector, serialized);
1566
+ if (cache.compat === undefined) {
1567
+ // in regular mode, we don't set the styles on the inserted cache
1568
+ // since we don't need to and that would be wasting memory
1569
+ // we return them so that they are rendered in a style tag
1570
+ if (shouldCache) {
1571
+ cache.inserted[name] = true;
1572
+ }
1573
+ return rules;
1574
+ } else {
1575
+ // in compat mode, we put the styles on the inserted cache so
1576
+ // that emotion-server can pull out the styles
1577
+ // except when we don't want to cache it which was in Global but now
1578
+ // is nowhere but we don't want to do a major right now
1579
+ // and just in case we're going to leave the case here
1580
+ // it's also not affecting client side bundle size
1581
+ // so it's really not a big deal
1582
+ if (shouldCache) {
1583
+ cache.inserted[name] = rules;
1584
+ } else {
1585
+ return rules;
1586
+ }
1587
+ }
1588
+ };
1589
+ }
1590
+ var cache = {
1591
+ key: key,
1592
+ sheet: new StyleSheet({
1593
+ key: key,
1594
+ container: container,
1595
+ nonce: options.nonce,
1596
+ speedy: options.speedy,
1597
+ prepend: options.prepend,
1598
+ insertionPoint: options.insertionPoint
1599
+ }),
1600
+ nonce: options.nonce,
1601
+ inserted: inserted,
1602
+ registered: {},
1603
+ insert: _insert
1604
+ };
1605
+ cache.sheet.hydrate(nodesToHydrate);
1606
+ return cache;
1607
+ };
1608
+
1609
+ function _extends$1() {
1610
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
1611
+ for (var e = 1; e < arguments.length; e++) {
1612
+ var t = arguments[e];
1613
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1614
+ }
1615
+ return n;
1616
+ }, _extends$1.apply(null, arguments);
1617
+ }
1618
+
1619
+ var reactIsExports = {};
1620
+ var reactIs$1 = {
1621
+ get exports(){ return reactIsExports; },
1622
+ set exports(v){ reactIsExports = v; },
1623
+ };
1624
+
1625
+ var reactIs_production_min = {};
1626
+
1627
+ /** @license React v16.13.1
1628
+ * react-is.production.min.js
1629
+ *
1630
+ * Copyright (c) Facebook, Inc. and its affiliates.
1631
+ *
1632
+ * This source code is licensed under the MIT license found in the
1633
+ * LICENSE file in the root directory of this source tree.
1634
+ */
1635
+ var hasRequiredReactIs_production_min;
1636
+ function requireReactIs_production_min() {
1637
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
1638
+ hasRequiredReactIs_production_min = 1;
1639
+ var b = "function" === typeof Symbol && Symbol.for,
1640
+ c = b ? Symbol.for("react.element") : 60103,
1641
+ d = b ? Symbol.for("react.portal") : 60106,
1642
+ e = b ? Symbol.for("react.fragment") : 60107,
1643
+ f = b ? Symbol.for("react.strict_mode") : 60108,
1644
+ g = b ? Symbol.for("react.profiler") : 60114,
1645
+ h = b ? Symbol.for("react.provider") : 60109,
1646
+ k = b ? Symbol.for("react.context") : 60110,
1647
+ l = b ? Symbol.for("react.async_mode") : 60111,
1648
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
1649
+ n = b ? Symbol.for("react.forward_ref") : 60112,
1650
+ p = b ? Symbol.for("react.suspense") : 60113,
1651
+ q = b ? Symbol.for("react.suspense_list") : 60120,
1652
+ r = b ? Symbol.for("react.memo") : 60115,
1653
+ t = b ? Symbol.for("react.lazy") : 60116,
1654
+ v = b ? Symbol.for("react.block") : 60121,
1655
+ w = b ? Symbol.for("react.fundamental") : 60117,
1656
+ x = b ? Symbol.for("react.responder") : 60118,
1657
+ y = b ? Symbol.for("react.scope") : 60119;
1658
+ function z(a) {
1659
+ if ("object" === typeof a && null !== a) {
1660
+ var u = a.$$typeof;
1661
+ switch (u) {
1662
+ case c:
1663
+ switch (a = a.type, a) {
1664
+ case l:
1665
+ case m:
1666
+ case e:
1667
+ case g:
1668
+ case f:
1669
+ case p:
1670
+ return a;
1671
+ default:
1672
+ switch (a = a && a.$$typeof, a) {
1673
+ case k:
1674
+ case n:
1675
+ case t:
1676
+ case r:
1677
+ case h:
1678
+ return a;
1679
+ default:
1680
+ return u;
1681
+ }
1682
+ }
1683
+ case d:
1684
+ return u;
1685
+ }
1686
+ }
1687
+ }
1688
+ function A(a) {
1689
+ return z(a) === m;
1690
+ }
1691
+ reactIs_production_min.AsyncMode = l;
1692
+ reactIs_production_min.ConcurrentMode = m;
1693
+ reactIs_production_min.ContextConsumer = k;
1694
+ reactIs_production_min.ContextProvider = h;
1695
+ reactIs_production_min.Element = c;
1696
+ reactIs_production_min.ForwardRef = n;
1697
+ reactIs_production_min.Fragment = e;
1698
+ reactIs_production_min.Lazy = t;
1699
+ reactIs_production_min.Memo = r;
1700
+ reactIs_production_min.Portal = d;
1701
+ reactIs_production_min.Profiler = g;
1702
+ reactIs_production_min.StrictMode = f;
1703
+ reactIs_production_min.Suspense = p;
1704
+ reactIs_production_min.isAsyncMode = function (a) {
1705
+ return A(a) || z(a) === l;
1706
+ };
1707
+ reactIs_production_min.isConcurrentMode = A;
1708
+ reactIs_production_min.isContextConsumer = function (a) {
1709
+ return z(a) === k;
1710
+ };
1711
+ reactIs_production_min.isContextProvider = function (a) {
1712
+ return z(a) === h;
1713
+ };
1714
+ reactIs_production_min.isElement = function (a) {
1715
+ return "object" === typeof a && null !== a && a.$$typeof === c;
1716
+ };
1717
+ reactIs_production_min.isForwardRef = function (a) {
1718
+ return z(a) === n;
1719
+ };
1720
+ reactIs_production_min.isFragment = function (a) {
1721
+ return z(a) === e;
1722
+ };
1723
+ reactIs_production_min.isLazy = function (a) {
1724
+ return z(a) === t;
1725
+ };
1726
+ reactIs_production_min.isMemo = function (a) {
1727
+ return z(a) === r;
1728
+ };
1729
+ reactIs_production_min.isPortal = function (a) {
1730
+ return z(a) === d;
1731
+ };
1732
+ reactIs_production_min.isProfiler = function (a) {
1733
+ return z(a) === g;
1734
+ };
1735
+ reactIs_production_min.isStrictMode = function (a) {
1736
+ return z(a) === f;
1737
+ };
1738
+ reactIs_production_min.isSuspense = function (a) {
1739
+ return z(a) === p;
1740
+ };
1741
+ reactIs_production_min.isValidElementType = function (a) {
1742
+ 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);
1743
+ };
1744
+ reactIs_production_min.typeOf = z;
1745
+ return reactIs_production_min;
1746
+ }
1747
+
1748
+ (function (module) {
1749
+
1750
+ {
1751
+ module.exports = requireReactIs_production_min();
1752
+ }
1753
+ })(reactIs$1);
1754
+
1755
+ var reactIs = reactIsExports;
1756
+ var FORWARD_REF_STATICS = {
1757
+ '$$typeof': true,
1758
+ render: true,
1759
+ defaultProps: true,
1760
+ displayName: true,
1761
+ propTypes: true
1762
+ };
1763
+ var MEMO_STATICS = {
1764
+ '$$typeof': true,
1765
+ compare: true,
1766
+ defaultProps: true,
1767
+ displayName: true,
1768
+ propTypes: true,
1769
+ type: true
1770
+ };
1771
+ var TYPE_STATICS = {};
1772
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1773
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1774
+
1775
+ var isBrowser$3 = typeof document !== 'undefined';
1776
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1777
+ var rawClassName = '';
1778
+ classNames.split(' ').forEach(function (className) {
1779
+ if (registered[className] !== undefined) {
1780
+ registeredStyles.push(registered[className] + ";");
1781
+ } else if (className) {
1782
+ rawClassName += className + " ";
1783
+ }
1784
+ });
1785
+ return rawClassName;
1786
+ }
1787
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
1788
+ var className = cache.key + "-" + serialized.name;
1789
+ if (
1790
+ // we only need to add the styles to the registered cache if the
1791
+ // class name could be used further down
1792
+ // the tree but if it's a string tag, we know it won't
1793
+ // so we don't have to add it to registered cache.
1794
+ // this improves memory usage since we can avoid storing the whole style string
1795
+ (isStringTag === false ||
1796
+ // we need to always store it if we're in compat mode and
1797
+ // in node since emotion-server relies on whether a style is in
1798
+ // the registered cache to know whether a style is global or not
1799
+ // also, note that this check will be dead code eliminated in the browser
1800
+ isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1801
+ cache.registered[className] = serialized.styles;
1802
+ }
1803
+ };
1804
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1805
+ registerStyles(cache, serialized, isStringTag);
1806
+ var className = cache.key + "-" + serialized.name;
1807
+ if (cache.inserted[serialized.name] === undefined) {
1808
+ var stylesForSSR = '';
1809
+ var current = serialized;
1810
+ do {
1811
+ var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1812
+ if (!isBrowser$3 && maybeStyles !== undefined) {
1813
+ stylesForSSR += maybeStyles;
1814
+ }
1815
+ current = current.next;
1816
+ } while (current !== undefined);
1817
+ if (!isBrowser$3 && stylesForSSR.length !== 0) {
1818
+ return stylesForSSR;
1819
+ }
1820
+ }
1821
+ };
1822
+
1823
+ /* eslint-disable */
1824
+ // Inspired by https://github.com/garycourt/murmurhash-js
1825
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1826
+ function murmur2(str) {
1827
+ // 'm' and 'r' are mixing constants generated offline.
1828
+ // They're not really 'magic', they just happen to work well.
1829
+ // const m = 0x5bd1e995;
1830
+ // const r = 24;
1831
+ // Initialize the hash
1832
+ var h = 0; // Mix 4 bytes at a time into the hash
1833
+
1834
+ var k,
1835
+ i = 0,
1836
+ len = str.length;
1837
+ for (; len >= 4; ++i, len -= 4) {
1838
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1839
+ k = /* Math.imul(k, m): */
1840
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1841
+ k ^= /* k >>> r: */
1842
+ k >>> 24;
1843
+ h = /* Math.imul(k, m): */
1844
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
1845
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1846
+ } // Handle the last few bytes of the input array
1847
+
1848
+ switch (len) {
1849
+ case 3:
1850
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1851
+ case 2:
1852
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1853
+ case 1:
1854
+ h ^= str.charCodeAt(i) & 0xff;
1855
+ h = /* Math.imul(h, m): */
1856
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1857
+ } // Do a few final mixes of the hash to ensure the last few
1858
+ // bytes are well-incorporated.
1859
+
1860
+ h ^= h >>> 13;
1861
+ h = /* Math.imul(h, m): */
1862
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1863
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1864
+ }
1865
+
1866
+ var unitlessKeys = {
1867
+ animationIterationCount: 1,
1868
+ aspectRatio: 1,
1869
+ borderImageOutset: 1,
1870
+ borderImageSlice: 1,
1871
+ borderImageWidth: 1,
1872
+ boxFlex: 1,
1873
+ boxFlexGroup: 1,
1874
+ boxOrdinalGroup: 1,
1875
+ columnCount: 1,
1876
+ columns: 1,
1877
+ flex: 1,
1878
+ flexGrow: 1,
1879
+ flexPositive: 1,
1880
+ flexShrink: 1,
1881
+ flexNegative: 1,
1882
+ flexOrder: 1,
1883
+ gridRow: 1,
1884
+ gridRowEnd: 1,
1885
+ gridRowSpan: 1,
1886
+ gridRowStart: 1,
1887
+ gridColumn: 1,
1888
+ gridColumnEnd: 1,
1889
+ gridColumnSpan: 1,
1890
+ gridColumnStart: 1,
1891
+ msGridRow: 1,
1892
+ msGridRowSpan: 1,
1893
+ msGridColumn: 1,
1894
+ msGridColumnSpan: 1,
1895
+ fontWeight: 1,
1896
+ lineHeight: 1,
1897
+ opacity: 1,
1898
+ order: 1,
1899
+ orphans: 1,
1900
+ scale: 1,
1901
+ tabSize: 1,
1902
+ widows: 1,
1903
+ zIndex: 1,
1904
+ zoom: 1,
1905
+ WebkitLineClamp: 1,
1906
+ // SVG-related properties
1907
+ fillOpacity: 1,
1908
+ floodOpacity: 1,
1909
+ stopOpacity: 1,
1910
+ strokeDasharray: 1,
1911
+ strokeDashoffset: 1,
1912
+ strokeMiterlimit: 1,
1913
+ strokeOpacity: 1,
1914
+ strokeWidth: 1
1915
+ };
1916
+
1917
+ var isDevelopment$2 = false;
1918
+ var hyphenateRegex = /[A-Z]|^ms/g;
1919
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1920
+ var isCustomProperty = function isCustomProperty(property) {
1921
+ return property.charCodeAt(1) === 45;
1922
+ };
1923
+ var isProcessableValue = function isProcessableValue(value) {
1924
+ return value != null && typeof value !== 'boolean';
1925
+ };
1926
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1927
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
1928
+ });
1929
+ var processStyleValue = function processStyleValue(key, value) {
1930
+ switch (key) {
1931
+ case 'animation':
1932
+ case 'animationName':
1933
+ {
1934
+ if (typeof value === 'string') {
1935
+ return value.replace(animationRegex, function (match, p1, p2) {
1936
+ cursor = {
1937
+ name: p1,
1938
+ styles: p2,
1939
+ next: cursor
1940
+ };
1941
+ return p1;
1942
+ });
1943
+ }
1944
+ }
1945
+ }
1946
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1947
+ return value + 'px';
1948
+ }
1949
+ return value;
1950
+ };
1951
+ var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1952
+ function handleInterpolation(mergedProps, registered, interpolation) {
1953
+ if (interpolation == null) {
1954
+ return '';
1955
+ }
1956
+ var componentSelector = interpolation;
1957
+ if (componentSelector.__emotion_styles !== undefined) {
1958
+ return componentSelector;
1959
+ }
1960
+ switch (typeof interpolation) {
1961
+ case 'boolean':
1962
+ {
1963
+ return '';
1964
+ }
1965
+ case 'object':
1966
+ {
1967
+ var keyframes = interpolation;
1968
+ if (keyframes.anim === 1) {
1969
+ cursor = {
1970
+ name: keyframes.name,
1971
+ styles: keyframes.styles,
1972
+ next: cursor
1973
+ };
1974
+ return keyframes.name;
1975
+ }
1976
+ var serializedStyles = interpolation;
1977
+ if (serializedStyles.styles !== undefined) {
1978
+ var next = serializedStyles.next;
1979
+ if (next !== undefined) {
1980
+ // not the most efficient thing ever but this is a pretty rare case
1981
+ // and there will be very few iterations of this generally
1982
+ while (next !== undefined) {
1983
+ cursor = {
1984
+ name: next.name,
1985
+ styles: next.styles,
1986
+ next: cursor
1987
+ };
1988
+ next = next.next;
1989
+ }
1990
+ }
1991
+ var styles = serializedStyles.styles + ";";
1992
+ return styles;
1993
+ }
1994
+ return createStringFromObject(mergedProps, registered, interpolation);
1995
+ }
1996
+ case 'function':
1997
+ {
1998
+ if (mergedProps !== undefined) {
1999
+ var previousCursor = cursor;
2000
+ var result = interpolation(mergedProps);
2001
+ cursor = previousCursor;
2002
+ return handleInterpolation(mergedProps, registered, result);
2003
+ }
2004
+ break;
2005
+ }
2006
+ } // finalize string values (regular strings and functions interpolated into css calls)
2007
+
2008
+ var asString = interpolation;
2009
+ if (registered == null) {
2010
+ return asString;
2011
+ }
2012
+ var cached = registered[asString];
2013
+ return cached !== undefined ? cached : asString;
2014
+ }
2015
+ function createStringFromObject(mergedProps, registered, obj) {
2016
+ var string = '';
2017
+ if (Array.isArray(obj)) {
2018
+ for (var i = 0; i < obj.length; i++) {
2019
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
2020
+ }
2021
+ } else {
2022
+ for (var key in obj) {
2023
+ var value = obj[key];
2024
+ if (typeof value !== 'object') {
2025
+ var asString = value;
2026
+ if (registered != null && registered[asString] !== undefined) {
2027
+ string += key + "{" + registered[asString] + "}";
2028
+ } else if (isProcessableValue(asString)) {
2029
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
2030
+ }
2031
+ } else {
2032
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$2) {
2033
+ throw new Error(noComponentSelectorMessage);
2034
+ }
2035
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
2036
+ for (var _i = 0; _i < value.length; _i++) {
2037
+ if (isProcessableValue(value[_i])) {
2038
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
2039
+ }
2040
+ }
2041
+ } else {
2042
+ var interpolated = handleInterpolation(mergedProps, registered, value);
2043
+ switch (key) {
2044
+ case 'animation':
2045
+ case 'animationName':
2046
+ {
2047
+ string += processStyleName(key) + ":" + interpolated + ";";
2048
+ break;
2049
+ }
2050
+ default:
2051
+ {
2052
+ string += key + "{" + interpolated + "}";
2053
+ }
2054
+ }
2055
+ }
2056
+ }
2057
+ }
2058
+ }
2059
+ return string;
2060
+ }
2061
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
2062
+ // keyframes are stored on the SerializedStyles object as a linked list
2063
+
2064
+ var cursor;
2065
+ function serializeStyles(args, registered, mergedProps) {
2066
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
2067
+ return args[0];
2068
+ }
2069
+ var stringMode = true;
2070
+ var styles = '';
2071
+ cursor = undefined;
2072
+ var strings = args[0];
2073
+ if (strings == null || strings.raw === undefined) {
2074
+ stringMode = false;
2075
+ styles += handleInterpolation(mergedProps, registered, strings);
2076
+ } else {
2077
+ var asTemplateStringsArr = strings;
2078
+ styles += asTemplateStringsArr[0];
2079
+ } // we start at 1 since we've already handled the first arg
2080
+
2081
+ for (var i = 1; i < args.length; i++) {
2082
+ styles += handleInterpolation(mergedProps, registered, args[i]);
2083
+ if (stringMode) {
2084
+ var templateStringsArr = strings;
2085
+ styles += templateStringsArr[i];
2086
+ }
2087
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
2088
+
2089
+ labelPattern.lastIndex = 0;
2090
+ var identifierName = '';
2091
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
2092
+
2093
+ while ((match = labelPattern.exec(styles)) !== null) {
2094
+ identifierName += '-' + match[1];
2095
+ }
2096
+ var name = murmur2(styles) + identifierName;
2097
+ return {
2098
+ name: name,
2099
+ styles: styles,
2100
+ next: cursor
2101
+ };
2102
+ }
2103
+
2104
+ var isBrowser$2 = typeof document !== 'undefined';
2105
+ var syncFallback = function syncFallback(create) {
2106
+ return create();
2107
+ };
2108
+ var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
2109
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
2110
+
2111
+ var isDevelopment$1 = false;
2112
+ var isBrowser$1 = typeof document !== 'undefined';
2113
+ var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext(
2114
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
2115
+ // because this module is primarily intended for the browser and node
2116
+ // but it's also required in react native and similar environments sometimes
2117
+ // and we could have a special build just for that
2118
+ // but this is much easier and the native packages
2119
+ // might use a different theme context in the future anyway
2120
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
2121
+ key: 'css'
2122
+ }) : null);
2123
+ EmotionCacheContext.Provider;
2124
+ var withEmotionCache = function withEmotionCache(func) {
2125
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
2126
+ // the cache will never be null in the browser
2127
+ var cache = React.useContext(EmotionCacheContext);
2128
+ return func(props, cache, ref);
2129
+ });
2130
+ };
2131
+ if (!isBrowser$1) {
2132
+ withEmotionCache = function withEmotionCache(func) {
2133
+ return function (props) {
2134
+ var cache = React.useContext(EmotionCacheContext);
2135
+ if (cache === null) {
2136
+ // yes, we're potentially creating this on every render
2137
+ // it doesn't actually matter though since it's only on the server
2138
+ // so there will only every be a single render
2139
+ // that could change in the future because of suspense and etc. but for now,
2140
+ // this works and i don't want to optimise for a future thing that we aren't sure about
2141
+ cache = createCache({
2142
+ key: 'css'
2143
+ });
2144
+ return /*#__PURE__*/React__namespace.createElement(EmotionCacheContext.Provider, {
2145
+ value: cache
2146
+ }, func(props, cache));
2147
+ } else {
2148
+ return func(props, cache);
2149
+ }
2150
+ };
2151
+ };
2152
+ }
2153
+ var ThemeContext$1 = /* #__PURE__ */React__namespace.createContext({});
2154
+ var getTheme$1 = function getTheme(outerTheme, theme) {
2155
+ if (typeof theme === 'function') {
2156
+ var mergedTheme = theme(outerTheme);
2157
+ return mergedTheme;
2158
+ }
2159
+ return _extends$1({}, outerTheme, theme);
2160
+ };
2161
+ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
2162
+ return weakMemoize(function (theme) {
2163
+ return getTheme$1(outerTheme, theme);
2164
+ });
2165
+ });
2166
+ var ThemeProvider$1 = function ThemeProvider(props) {
2167
+ var theme = React__namespace.useContext(ThemeContext$1);
2168
+ if (props.theme !== theme) {
2169
+ theme = createCacheWithTheme(theme)(props.theme);
2170
+ }
2171
+ return /*#__PURE__*/React__namespace.createElement(ThemeContext$1.Provider, {
2172
+ value: theme
2173
+ }, props.children);
2174
+ };
2175
+ var hasOwn = {}.hasOwnProperty;
2176
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2177
+ var createEmotionProps = function createEmotionProps(type, props) {
2178
+ var newProps = {};
2179
+ for (var _key in props) {
2180
+ if (hasOwn.call(props, _key)) {
2181
+ newProps[_key] = props[_key];
2182
+ }
2183
+ }
2184
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
2185
+
2186
+ return newProps;
2187
+ };
2188
+ var Insertion$1 = function Insertion(_ref) {
2189
+ var cache = _ref.cache,
2190
+ serialized = _ref.serialized,
2191
+ isStringTag = _ref.isStringTag;
2192
+ registerStyles(cache, serialized, isStringTag);
2193
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2194
+ return insertStyles(cache, serialized, isStringTag);
2195
+ });
2196
+ if (!isBrowser$1 && rules !== undefined) {
2197
+ var _ref2;
2198
+ var serializedNames = serialized.name;
2199
+ var next = serialized.next;
2200
+ while (next !== undefined) {
2201
+ serializedNames += ' ' + next.name;
2202
+ next = next.next;
2203
+ }
2204
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2205
+ __html: rules
2206
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2207
+ }
2208
+ return null;
2209
+ };
2210
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2211
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
2212
+ // not passing the registered cache to serializeStyles because it would
2213
+ // make certain babel optimisations not possible
2214
+
2215
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
2216
+ cssProp = cache.registered[cssProp];
2217
+ }
2218
+ var WrappedComponent = props[typePropName];
2219
+ var registeredStyles = [cssProp];
2220
+ var className = '';
2221
+ if (typeof props.className === 'string') {
2222
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2223
+ } else if (props.className != null) {
2224
+ className = props.className + " ";
2225
+ }
2226
+ var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext$1));
2227
+ className += cache.key + "-" + serialized.name;
2228
+ var newProps = {};
2229
+ for (var _key2 in props) {
2230
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && !isDevelopment$1) {
2231
+ newProps[_key2] = props[_key2];
2232
+ }
2233
+ }
2234
+ newProps.className = className;
2235
+ if (ref) {
2236
+ newProps.ref = ref;
2237
+ }
2238
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$1, {
2239
+ cache: cache,
2240
+ serialized: serialized,
2241
+ isStringTag: typeof WrappedComponent === 'string'
2242
+ }), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
2243
+ });
2244
+ var Emotion$1 = Emotion;
2245
+
2246
+ var _extendsExports = {};
2247
+ var _extends = {
2248
+ get exports(){ return _extendsExports; },
2249
+ set exports(v){ _extendsExports = v; },
2250
+ };
2251
+
2252
+ (function (module) {
2253
+ function _extends() {
2254
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
2255
+ for (var e = 1; e < arguments.length; e++) {
2256
+ var t = arguments[e];
2257
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2258
+ }
2259
+ return n;
2260
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
2261
+ }
2262
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
2263
+ })(_extends);
2264
+
2265
+ var jsx = function jsx(type, props) {
2266
+ // eslint-disable-next-line prefer-rest-params
2267
+ var args = arguments;
2268
+ if (props == null || !hasOwn.call(props, 'css')) {
2269
+ return React__namespace.createElement.apply(undefined, args);
2270
+ }
2271
+ var argsLength = args.length;
2272
+ var createElementArgArray = new Array(argsLength);
2273
+ createElementArgArray[0] = Emotion$1;
2274
+ createElementArgArray[1] = createEmotionProps(type, props);
2275
+ for (var i = 2; i < argsLength; i++) {
2276
+ createElementArgArray[i] = args[i];
2277
+ }
2278
+ return React__namespace.createElement.apply(null, createElementArgArray);
2279
+ };
2280
+ (function (_jsx) {
2281
+ var JSX;
2282
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
2283
+ })(jsx || (jsx = {}));
2284
+
2285
+ const getTheme = (themeType) => {
342
2286
  switch (themeType) {
343
2287
  case 'B2C': {
344
2288
  return B2CTheme;
@@ -349,41 +2293,229 @@
349
2293
  case 'FK': {
350
2294
  return FKTheme;
351
2295
  }
2296
+ case 'SM': {
2297
+ return SMTheme;
2298
+ }
352
2299
  default: {
353
2300
  return B2CTheme;
354
2301
  }
355
2302
  }
356
2303
  };
357
2304
 
358
- var ThemeContext = react.createContext({
2305
+ // eslint-disable-next-line no-undef
2306
+ 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
2307
+
2308
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
2309
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2310
+ /* o */ && prop.charCodeAt(1) === 110
2311
+ /* n */ && prop.charCodeAt(2) < 91;
2312
+ }
2313
+ /* Z+1 */);
2314
+
2315
+ var isBrowser = typeof document !== 'undefined';
2316
+ var isDevelopment = false;
2317
+ var testOmitPropsOnStringTag = isPropValid;
2318
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
2319
+ return key !== 'theme';
2320
+ };
2321
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
2322
+ return typeof tag === 'string' &&
2323
+ // 96 is one less than the char code
2324
+ // for "a" so this is checking that
2325
+ // it's a lowercase character
2326
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2327
+ };
2328
+ var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
2329
+ var shouldForwardProp;
2330
+ if (options) {
2331
+ var optionsShouldForwardProp = options.shouldForwardProp;
2332
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
2333
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2334
+ } : optionsShouldForwardProp;
2335
+ }
2336
+ if (typeof shouldForwardProp !== 'function' && isReal) {
2337
+ shouldForwardProp = tag.__emotion_forwardProp;
2338
+ }
2339
+ return shouldForwardProp;
2340
+ };
2341
+ var Insertion = function Insertion(_ref) {
2342
+ var cache = _ref.cache,
2343
+ serialized = _ref.serialized,
2344
+ isStringTag = _ref.isStringTag;
2345
+ registerStyles(cache, serialized, isStringTag);
2346
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2347
+ return insertStyles(cache, serialized, isStringTag);
2348
+ });
2349
+ if (!isBrowser && rules !== undefined) {
2350
+ var _ref2;
2351
+ var serializedNames = serialized.name;
2352
+ var next = serialized.next;
2353
+ while (next !== undefined) {
2354
+ serializedNames += ' ' + next.name;
2355
+ next = next.next;
2356
+ }
2357
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2358
+ __html: rules
2359
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2360
+ }
2361
+ return null;
2362
+ };
2363
+ var createStyled = function createStyled(tag, options) {
2364
+ var isReal = tag.__emotion_real === tag;
2365
+ var baseTag = isReal && tag.__emotion_base || tag;
2366
+ var identifierName;
2367
+ var targetClassName;
2368
+ if (options !== undefined) {
2369
+ identifierName = options.label;
2370
+ targetClassName = options.target;
2371
+ }
2372
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2373
+ var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2374
+ var shouldUseAs = !defaultShouldForwardProp('as');
2375
+ return function () {
2376
+ // eslint-disable-next-line prefer-rest-params
2377
+ var args = arguments;
2378
+ var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
2379
+ if (identifierName !== undefined) {
2380
+ styles.push("label:" + identifierName + ";");
2381
+ }
2382
+ if (args[0] == null || args[0].raw === undefined) {
2383
+ // eslint-disable-next-line prefer-spread
2384
+ styles.push.apply(styles, args);
2385
+ } else {
2386
+ var templateStringsArr = args[0];
2387
+ styles.push(templateStringsArr[0]);
2388
+ var len = args.length;
2389
+ var i = 1;
2390
+ for (; i < len; i++) {
2391
+ styles.push(args[i], templateStringsArr[i]);
2392
+ }
2393
+ }
2394
+ var Styled = withEmotionCache(function (props, cache, ref) {
2395
+ var FinalTag = shouldUseAs && props.as || baseTag;
2396
+ var className = '';
2397
+ var classInterpolations = [];
2398
+ var mergedProps = props;
2399
+ if (props.theme == null) {
2400
+ mergedProps = {};
2401
+ for (var key in props) {
2402
+ mergedProps[key] = props[key];
2403
+ }
2404
+ mergedProps.theme = React__namespace.useContext(ThemeContext$1);
2405
+ }
2406
+ if (typeof props.className === 'string') {
2407
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2408
+ } else if (props.className != null) {
2409
+ className = props.className + " ";
2410
+ }
2411
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2412
+ className += cache.key + "-" + serialized.name;
2413
+ if (targetClassName !== undefined) {
2414
+ className += " " + targetClassName;
2415
+ }
2416
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2417
+ var newProps = {};
2418
+ for (var _key in props) {
2419
+ if (shouldUseAs && _key === 'as') continue;
2420
+ if (finalShouldForwardProp(_key)) {
2421
+ newProps[_key] = props[_key];
2422
+ }
2423
+ }
2424
+ newProps.className = className;
2425
+ if (ref) {
2426
+ newProps.ref = ref;
2427
+ }
2428
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
2429
+ cache: cache,
2430
+ serialized: serialized,
2431
+ isStringTag: typeof FinalTag === 'string'
2432
+ }), /*#__PURE__*/React__namespace.createElement(FinalTag, newProps));
2433
+ });
2434
+ Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
2435
+ Styled.defaultProps = tag.defaultProps;
2436
+ Styled.__emotion_real = Styled;
2437
+ Styled.__emotion_base = baseTag;
2438
+ Styled.__emotion_styles = styles;
2439
+ Styled.__emotion_forwardProp = shouldForwardProp;
2440
+ Object.defineProperty(Styled, 'toString', {
2441
+ value: function value() {
2442
+ if (targetClassName === undefined && isDevelopment) {
2443
+ return 'NO_COMPONENT_SELECTOR';
2444
+ }
2445
+ return "." + targetClassName;
2446
+ }
2447
+ });
2448
+ Styled.withComponent = function (nextTag, nextOptions) {
2449
+ var newStyled = createStyled(nextTag, _extends$1({}, options, nextOptions, {
2450
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2451
+ }));
2452
+ return newStyled.apply(void 0, styles);
2453
+ };
2454
+ return Styled;
2455
+ };
2456
+ };
2457
+
2458
+ 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',
2459
+ // SVG
2460
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2461
+
2462
+ // bind it to avoid mutating the original function
2463
+ var styled = createStyled.bind(null);
2464
+ tags.forEach(function (tagName) {
2465
+ styled[tagName] = styled(tagName);
2466
+ });
2467
+
2468
+ const ThemeContext = React.createContext({
359
2469
  theme: B2CTheme,
360
2470
  platform: 'mobile',
361
2471
  });
362
- var ThemeProvider = function (_a) {
363
- var children = _a.children, _b = _a.theme, themeType = _b === void 0 ? 'B2C' : _b, _c = _a.platform, platform = _c === void 0 ? 'mobile' : _c;
364
- var theme = getTheme(themeType);
365
- return (jsxRuntime.jsx(ThemeContext.Provider, __assign({ value: { theme: theme, platform: platform } }, { children: jsxRuntime.jsx(styledComponents.ThemeProvider, __assign({ theme: theme }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: children }) })) })));
366
- };
367
- ThemeProvider.defaultProps = {
368
- children: null,
2472
+ const ThemeProvider = ({ children, theme: themeType = 'B2C', platform = 'mobile', }) => {
2473
+ const theme = getTheme(themeType);
2474
+ return (jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, platform }, children: jsxRuntime.jsx(ThemeProvider$1, { theme: theme, children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: children }) }) }));
369
2475
  };
370
2476
 
371
- var useTheme = function () {
372
- var themeContext = react.useContext(ThemeContext);
373
- var theme = (themeContext || { theme: B2CTheme }).theme;
2477
+ const useTheme = () => {
2478
+ const themeContext = React.useContext(ThemeContext);
2479
+ const { theme } = themeContext || { theme: B2CTheme };
374
2480
  return theme;
375
2481
  };
376
2482
 
377
- var useThemeContext = function () {
378
- return react.useContext(ThemeContext);
2483
+ const useThemeContext = () => {
2484
+ return React.useContext(ThemeContext);
379
2485
  };
380
2486
 
2487
+ class ThemeManagerClass {
2488
+ constructor() {
2489
+ if (ThemeManagerClass.instance) {
2490
+ throw new Error('You can only create one instance!');
2491
+ }
2492
+ ThemeManagerClass.instance = this;
2493
+ this.theme = B2CTheme;
2494
+ }
2495
+ set(theme) {
2496
+ switch (theme) {
2497
+ case 'B2C':
2498
+ default: {
2499
+ this.theme = B2CTheme;
2500
+ break;
2501
+ }
2502
+ }
2503
+ }
2504
+ get() {
2505
+ return this.theme;
2506
+ }
2507
+ }
2508
+ const ThemeManager = Object.freeze(new ThemeManagerClass());
2509
+
381
2510
  exports.B2BTheme = B2BTheme;
382
2511
  exports.B2CTheme = B2CTheme;
383
2512
  exports.BaseTheme = BaseTheme;
384
2513
  exports.FKTheme = FKTheme;
2514
+ exports.SMTheme = SMTheme;
385
2515
  exports.ThemeContext = ThemeContext;
2516
+ exports.ThemeManager = ThemeManager;
386
2517
  exports.ThemeProvider = ThemeProvider;
2518
+ exports.getTheme = getTheme;
387
2519
  exports.useTheme = useTheme;
388
2520
  exports.useThemeContext = useThemeContext;
389
2521