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