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