@cleartrip/ct-design-carousal 1.2.0-SNAPSHOT-carouselTest.0 → 1.2.0-SNAPSHOT-CompIntegrationTest.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,12 +1,30 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('react-swipeable'), require('@cleartrip/ct-design-container'), require('@cleartrip/ct-design-icons'), require('@cleartrip/ct-design-use-isomorphic-effect'), require('@cleartrip/ct-design-style-manager'), require('@emotion/styled'), require('@emotion/react')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', 'react-swipeable', '@cleartrip/ct-design-container', '@cleartrip/ct-design-icons', '@cleartrip/ct-design-use-isomorphic-effect', '@cleartrip/ct-design-style-manager', '@emotion/styled', '@emotion/react'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemCarousal = {}, global.jsxRuntime, global.React, global.reactSwipeable, global.ctDesignContainer, global.ctDesignIcons, global.useIsomorphicEffect, global.ctDesignStyleManager, global.styled, global.react));
5
- })(this, (function (exports, jsxRuntime, React, reactSwipeable, ctDesignContainer, ctDesignIcons, useIsomorphicEffect, ctDesignStyleManager, styled, react) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('react-swipeable'), require('@cleartrip/ct-design-container'), require('@cleartrip/ct-design-icons'), require('@cleartrip/ct-design-use-isomorphic-effect'), require('@cleartrip/ct-design-style-manager'), require('@emotion/styled'), require('@emotion/css')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', 'react-swipeable', '@cleartrip/ct-design-container', '@cleartrip/ct-design-icons', '@cleartrip/ct-design-use-isomorphic-effect', '@cleartrip/ct-design-style-manager', '@emotion/styled', '@emotion/css'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemCarousal = {}, global.jsxRuntime, global.React, global.reactSwipeable, global.ctDesignContainer, global.ctDesignIcons, global.useIsomorphicEffect, global.ctDesignStyleManager, global.styled, global.css$1));
5
+ })(this, (function (exports, jsxRuntime, React, reactSwipeable, ctDesignContainer, ctDesignIcons, useIsomorphicEffect, ctDesignStyleManager, styled, css$1) { 'use strict';
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
9
- var React__default = /*#__PURE__*/_interopDefault(React);
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
10
28
  var useIsomorphicEffect__default = /*#__PURE__*/_interopDefault(useIsomorphicEffect);
11
29
  var styled__default = /*#__PURE__*/_interopDefault(styled);
12
30
 
@@ -60,6 +78,1862 @@
60
78
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
61
79
  };
62
80
 
81
+ var isDevelopment$2 = false;
82
+
83
+ /*
84
+
85
+ Based off glamor's StyleSheet, thanks Sunil ❤️
86
+
87
+ high performance StyleSheet for css-in-js systems
88
+
89
+ - uses multiple style tags behind the scenes for millions of rules
90
+ - uses `insertRule` for appending in production for *much* faster performance
91
+
92
+ // usage
93
+
94
+ import { StyleSheet } from '@emotion/sheet'
95
+
96
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
97
+
98
+ styleSheet.insert('#box { border: 1px solid red; }')
99
+ - appends a css rule into the stylesheet
100
+
101
+ styleSheet.flush()
102
+ - empties the stylesheet of all its contents
103
+
104
+ */
105
+
106
+ function sheetForTag(tag) {
107
+ if (tag.sheet) {
108
+ return tag.sheet;
109
+ } // this weirdness brought to you by firefox
110
+
111
+ /* istanbul ignore next */
112
+
113
+ for (var i = 0; i < document.styleSheets.length; i++) {
114
+ if (document.styleSheets[i].ownerNode === tag) {
115
+ return document.styleSheets[i];
116
+ }
117
+ } // this function should always return with a value
118
+ // TS can't understand it though so we make it stop complaining here
119
+
120
+ return undefined;
121
+ }
122
+ function createStyleElement(options) {
123
+ var tag = document.createElement('style');
124
+ tag.setAttribute('data-emotion', options.key);
125
+ if (options.nonce !== undefined) {
126
+ tag.setAttribute('nonce', options.nonce);
127
+ }
128
+ tag.appendChild(document.createTextNode(''));
129
+ tag.setAttribute('data-s', '');
130
+ return tag;
131
+ }
132
+ var StyleSheet = /*#__PURE__*/function () {
133
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
134
+ function StyleSheet(options) {
135
+ var _this = this;
136
+ this._insertTag = function (tag) {
137
+ var before;
138
+ if (_this.tags.length === 0) {
139
+ if (_this.insertionPoint) {
140
+ before = _this.insertionPoint.nextSibling;
141
+ } else if (_this.prepend) {
142
+ before = _this.container.firstChild;
143
+ } else {
144
+ before = _this.before;
145
+ }
146
+ } else {
147
+ before = _this.tags[_this.tags.length - 1].nextSibling;
148
+ }
149
+ _this.container.insertBefore(tag, before);
150
+ _this.tags.push(tag);
151
+ };
152
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$2 : options.speedy;
153
+ this.tags = [];
154
+ this.ctr = 0;
155
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
156
+
157
+ this.key = options.key;
158
+ this.container = options.container;
159
+ this.prepend = options.prepend;
160
+ this.insertionPoint = options.insertionPoint;
161
+ this.before = null;
162
+ }
163
+ var _proto = StyleSheet.prototype;
164
+ _proto.hydrate = function hydrate(nodes) {
165
+ nodes.forEach(this._insertTag);
166
+ };
167
+ _proto.insert = function insert(rule) {
168
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
169
+ // it's 1 in dev because we insert source maps that map a single rule to a location
170
+ // and you can only have one source map per style tag
171
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
172
+ this._insertTag(createStyleElement(this));
173
+ }
174
+ var tag = this.tags[this.tags.length - 1];
175
+ if (this.isSpeedy) {
176
+ var sheet = sheetForTag(tag);
177
+ try {
178
+ // this is the ultrafast version, works across browsers
179
+ // the big drawback is that the css won't be editable in devtools
180
+ sheet.insertRule(rule, sheet.cssRules.length);
181
+ } catch (e) {}
182
+ } else {
183
+ tag.appendChild(document.createTextNode(rule));
184
+ }
185
+ this.ctr++;
186
+ };
187
+ _proto.flush = function flush() {
188
+ this.tags.forEach(function (tag) {
189
+ var _tag$parentNode;
190
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
191
+ });
192
+ this.tags = [];
193
+ this.ctr = 0;
194
+ };
195
+ return StyleSheet;
196
+ }();
197
+
198
+ var stylisExports = {};
199
+ var stylis = {
200
+ get exports(){ return stylisExports; },
201
+ set exports(v){ stylisExports = v; },
202
+ };
203
+
204
+ (function (module, exports) {
205
+ (function (e, r) {
206
+ r(exports) ;
207
+ })(this, function (e) {
208
+
209
+ var r = "-ms-";
210
+ var a = "-moz-";
211
+ var c = "-webkit-";
212
+ var n = "comm";
213
+ var t = "rule";
214
+ var s = "decl";
215
+ var i = "@page";
216
+ var u = "@media";
217
+ var o = "@import";
218
+ var f = "@charset";
219
+ var l = "@viewport";
220
+ var p = "@supports";
221
+ var h = "@document";
222
+ var v = "@namespace";
223
+ var d = "@keyframes";
224
+ var b = "@font-face";
225
+ var w = "@counter-style";
226
+ var m = "@font-feature-values";
227
+ var g = "@layer";
228
+ var k = Math.abs;
229
+ var $ = String.fromCharCode;
230
+ var x = Object.assign;
231
+ function E(e, r) {
232
+ return M(e, 0) ^ 45 ? (((r << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
233
+ }
234
+ function y(e) {
235
+ return e.trim();
236
+ }
237
+ function T(e, r) {
238
+ return (e = r.exec(e)) ? e[0] : e;
239
+ }
240
+ function A(e, r, a) {
241
+ return e.replace(r, a);
242
+ }
243
+ function O(e, r) {
244
+ return e.indexOf(r);
245
+ }
246
+ function M(e, r) {
247
+ return e.charCodeAt(r) | 0;
248
+ }
249
+ function C(e, r, a) {
250
+ return e.slice(r, a);
251
+ }
252
+ function R(e) {
253
+ return e.length;
254
+ }
255
+ function S(e) {
256
+ return e.length;
257
+ }
258
+ function z(e, r) {
259
+ return r.push(e), e;
260
+ }
261
+ function N(e, r) {
262
+ return e.map(r).join("");
263
+ }
264
+ e.line = 1;
265
+ e.column = 1;
266
+ e.length = 0;
267
+ e.position = 0;
268
+ e.character = 0;
269
+ e.characters = "";
270
+ function P(r, a, c, n, t, s, i) {
271
+ return {
272
+ value: r,
273
+ root: a,
274
+ parent: c,
275
+ type: n,
276
+ props: t,
277
+ children: s,
278
+ line: e.line,
279
+ column: e.column,
280
+ length: i,
281
+ return: ""
282
+ };
283
+ }
284
+ function j(e, r) {
285
+ return x(P("", null, null, "", null, null, 0), e, {
286
+ length: -e.length
287
+ }, r);
288
+ }
289
+ function U() {
290
+ return e.character;
291
+ }
292
+ function _() {
293
+ e.character = e.position > 0 ? M(e.characters, --e.position) : 0;
294
+ if (e.column--, e.character === 10) e.column = 1, e.line--;
295
+ return e.character;
296
+ }
297
+ function F() {
298
+ e.character = e.position < e.length ? M(e.characters, e.position++) : 0;
299
+ if (e.column++, e.character === 10) e.column = 1, e.line++;
300
+ return e.character;
301
+ }
302
+ function I() {
303
+ return M(e.characters, e.position);
304
+ }
305
+ function L() {
306
+ return e.position;
307
+ }
308
+ function D(r, a) {
309
+ return C(e.characters, r, a);
310
+ }
311
+ function Y(e) {
312
+ switch (e) {
313
+ case 0:
314
+ case 9:
315
+ case 10:
316
+ case 13:
317
+ case 32:
318
+ return 5;
319
+ case 33:
320
+ case 43:
321
+ case 44:
322
+ case 47:
323
+ case 62:
324
+ case 64:
325
+ case 126:
326
+ case 59:
327
+ case 123:
328
+ case 125:
329
+ return 4;
330
+ case 58:
331
+ return 3;
332
+ case 34:
333
+ case 39:
334
+ case 40:
335
+ case 91:
336
+ return 2;
337
+ case 41:
338
+ case 93:
339
+ return 1;
340
+ }
341
+ return 0;
342
+ }
343
+ function K(r) {
344
+ return e.line = e.column = 1, e.length = R(e.characters = r), e.position = 0, [];
345
+ }
346
+ function V(r) {
347
+ return e.characters = "", r;
348
+ }
349
+ function W(r) {
350
+ return y(D(e.position - 1, q(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
351
+ }
352
+ function B(e) {
353
+ return V(H(K(e)));
354
+ }
355
+ function G(r) {
356
+ while (e.character = I()) if (e.character < 33) F();else break;
357
+ return Y(r) > 2 || Y(e.character) > 3 ? "" : " ";
358
+ }
359
+ function H(r) {
360
+ while (F()) switch (Y(e.character)) {
361
+ case 0:
362
+ z(Q(e.position - 1), r);
363
+ break;
364
+ case 2:
365
+ z(W(e.character), r);
366
+ break;
367
+ default:
368
+ z($(e.character), r);
369
+ }
370
+ return r;
371
+ }
372
+ function Z(r, a) {
373
+ while (--a && F()) if (e.character < 48 || e.character > 102 || e.character > 57 && e.character < 65 || e.character > 70 && e.character < 97) break;
374
+ return D(r, L() + (a < 6 && I() == 32 && F() == 32));
375
+ }
376
+ function q(r) {
377
+ while (F()) switch (e.character) {
378
+ case r:
379
+ return e.position;
380
+ case 34:
381
+ case 39:
382
+ if (r !== 34 && r !== 39) q(e.character);
383
+ break;
384
+ case 40:
385
+ if (r === 41) q(r);
386
+ break;
387
+ case 92:
388
+ F();
389
+ break;
390
+ }
391
+ return e.position;
392
+ }
393
+ function J(r, a) {
394
+ while (F()) if (r + e.character === 47 + 10) break;else if (r + e.character === 42 + 42 && I() === 47) break;
395
+ return "/*" + D(a, e.position - 1) + "*" + $(r === 47 ? r : F());
396
+ }
397
+ function Q(r) {
398
+ while (!Y(I())) F();
399
+ return D(r, e.position);
400
+ }
401
+ function X(e) {
402
+ return V(ee("", null, null, null, [""], e = K(e), 0, [0], e));
403
+ }
404
+ function ee(e, r, a, c, n, t, s, i, u) {
405
+ var o = 0;
406
+ var f = 0;
407
+ var l = s;
408
+ var p = 0;
409
+ var h = 0;
410
+ var v = 0;
411
+ var d = 1;
412
+ var b = 1;
413
+ var w = 1;
414
+ var m = 0;
415
+ var g = "";
416
+ var k = n;
417
+ var x = t;
418
+ var E = c;
419
+ var y = g;
420
+ while (b) switch (v = m, m = F()) {
421
+ case 40:
422
+ if (v != 108 && M(y, l - 1) == 58) {
423
+ if (O(y += A(W(m), "&", "&\f"), "&\f") != -1) w = -1;
424
+ break;
425
+ }
426
+ case 34:
427
+ case 39:
428
+ case 91:
429
+ y += W(m);
430
+ break;
431
+ case 9:
432
+ case 10:
433
+ case 13:
434
+ case 32:
435
+ y += G(v);
436
+ break;
437
+ case 92:
438
+ y += Z(L() - 1, 7);
439
+ continue;
440
+ case 47:
441
+ switch (I()) {
442
+ case 42:
443
+ case 47:
444
+ z(ae(J(F(), L()), r, a), u);
445
+ break;
446
+ default:
447
+ y += "/";
448
+ }
449
+ break;
450
+ case 123 * d:
451
+ i[o++] = R(y) * w;
452
+ case 125 * d:
453
+ case 59:
454
+ case 0:
455
+ switch (m) {
456
+ case 0:
457
+ case 125:
458
+ b = 0;
459
+ case 59 + f:
460
+ if (w == -1) y = A(y, /\f/g, "");
461
+ if (h > 0 && R(y) - l) z(h > 32 ? ce(y + ";", c, a, l - 1) : ce(A(y, " ", "") + ";", c, a, l - 2), u);
462
+ break;
463
+ case 59:
464
+ y += ";";
465
+ default:
466
+ z(E = re(y, r, a, o, f, n, i, g, k = [], x = [], l), t);
467
+ 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) {
468
+ case 100:
469
+ case 108:
470
+ case 109:
471
+ case 115:
472
+ 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);
473
+ break;
474
+ default:
475
+ ee(y, E, E, E, [""], x, 0, i, x);
476
+ }
477
+ }
478
+ o = f = h = 0, d = w = 1, g = y = "", l = s;
479
+ break;
480
+ case 58:
481
+ l = 1 + R(y), h = v;
482
+ default:
483
+ if (d < 1) if (m == 123) --d;else if (m == 125 && d++ == 0 && _() == 125) continue;
484
+ switch (y += $(m), m * d) {
485
+ case 38:
486
+ w = f > 0 ? 1 : (y += "\f", -1);
487
+ break;
488
+ case 44:
489
+ i[o++] = (R(y) - 1) * w, w = 1;
490
+ break;
491
+ case 64:
492
+ if (I() === 45) y += W(F());
493
+ p = I(), f = l = R(g = y += Q(L())), m++;
494
+ break;
495
+ case 45:
496
+ if (v === 45 && R(y) == 2) d = 0;
497
+ }
498
+ }
499
+ return t;
500
+ }
501
+ function re(e, r, a, c, n, s, i, u, o, f, l) {
502
+ var p = n - 1;
503
+ var h = n === 0 ? s : [""];
504
+ var v = S(h);
505
+ 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++] = $;
506
+ return P(e, r, a, n === 0 ? t : u, o, f, l);
507
+ }
508
+ function ae(e, r, a) {
509
+ return P(e, r, a, n, $(U()), C(e, 2, -2), 0);
510
+ }
511
+ function ce(e, r, a, c) {
512
+ return P(e, r, a, s, C(e, 0, c), C(e, c + 1, -1), c);
513
+ }
514
+ function ne(e, n, t) {
515
+ switch (E(e, n)) {
516
+ case 5103:
517
+ return c + "print-" + e + e;
518
+ case 5737:
519
+ case 4201:
520
+ case 3177:
521
+ case 3433:
522
+ case 1641:
523
+ case 4457:
524
+ case 2921:
525
+ case 5572:
526
+ case 6356:
527
+ case 5844:
528
+ case 3191:
529
+ case 6645:
530
+ case 3005:
531
+ case 6391:
532
+ case 5879:
533
+ case 5623:
534
+ case 6135:
535
+ case 4599:
536
+ case 4855:
537
+ case 4215:
538
+ case 6389:
539
+ case 5109:
540
+ case 5365:
541
+ case 5621:
542
+ case 3829:
543
+ return c + e + e;
544
+ case 4789:
545
+ return a + e + e;
546
+ case 5349:
547
+ case 4246:
548
+ case 4810:
549
+ case 6968:
550
+ case 2756:
551
+ return c + e + a + e + r + e + e;
552
+ case 5936:
553
+ switch (M(e, n + 11)) {
554
+ case 114:
555
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
556
+ case 108:
557
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
558
+ case 45:
559
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
560
+ }
561
+ case 6828:
562
+ case 4268:
563
+ case 2903:
564
+ return c + e + r + e + e;
565
+ case 6165:
566
+ return c + e + r + "flex-" + e + e;
567
+ case 5187:
568
+ return c + e + A(e, /(\w+).+(:[^]+)/, c + "box-$1$2" + r + "flex-$1$2") + e;
569
+ case 5443:
570
+ return c + e + r + "flex-item-" + A(e, /flex-|-self/g, "") + (!T(e, /flex-|baseline/) ? r + "grid-row-" + A(e, /flex-|-self/g, "") : "") + e;
571
+ case 4675:
572
+ return c + e + r + "flex-line-pack" + A(e, /align-content|flex-|-self/g, "") + e;
573
+ case 5548:
574
+ return c + e + r + A(e, "shrink", "negative") + e;
575
+ case 5292:
576
+ return c + e + r + A(e, "basis", "preferred-size") + e;
577
+ case 6060:
578
+ return c + "box-" + A(e, "-grow", "") + c + e + r + A(e, "grow", "positive") + e;
579
+ case 4554:
580
+ return c + A(e, /([^-])(transform)/g, "$1" + c + "$2") + e;
581
+ case 6187:
582
+ return A(A(A(e, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), e, "") + e;
583
+ case 5495:
584
+ case 3959:
585
+ return A(e, /(image-set\([^]*)/, c + "$1" + "$`$1");
586
+ case 4968:
587
+ return A(A(e, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + e + e;
588
+ case 4200:
589
+ if (!T(e, /flex-|baseline/)) return r + "grid-column-align" + C(e, n) + e;
590
+ break;
591
+ case 2592:
592
+ case 3360:
593
+ return r + A(e, "template-", "") + e;
594
+ case 4384:
595
+ case 3616:
596
+ if (t && t.some(function (e, r) {
597
+ return n = r, T(e.props, /grid-\w+-end/);
598
+ })) {
599
+ 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+/)) + ";";
600
+ }
601
+ return r + A(e, "-start", "") + e;
602
+ case 4896:
603
+ case 4128:
604
+ return t && t.some(function (e) {
605
+ return T(e.props, /grid-\w+-start/);
606
+ }) ? e : r + A(A(e, "-end", "-span"), "span ", "") + e;
607
+ case 4095:
608
+ case 3583:
609
+ case 4068:
610
+ case 2532:
611
+ return A(e, /(.+)-inline(.+)/, c + "$1$2") + e;
612
+ case 8116:
613
+ case 7059:
614
+ case 5753:
615
+ case 5535:
616
+ case 5445:
617
+ case 5701:
618
+ case 4933:
619
+ case 4677:
620
+ case 5533:
621
+ case 5789:
622
+ case 5021:
623
+ case 4765:
624
+ if (R(e) - 1 - n > 6) switch (M(e, n + 1)) {
625
+ case 109:
626
+ if (M(e, n + 4) !== 45) break;
627
+ case 102:
628
+ return A(e, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + a + (M(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
629
+ case 115:
630
+ return ~O(e, "stretch") ? ne(A(e, "stretch", "fill-available"), n, t) + e : e;
631
+ }
632
+ break;
633
+ case 5152:
634
+ case 5920:
635
+ return A(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (a, c, n, t, s, i, u) {
636
+ return r + c + ":" + n + u + (t ? r + c + "-span:" + (s ? i : +i - +n) + u : "") + e;
637
+ });
638
+ case 4949:
639
+ if (M(e, n + 6) === 121) return A(e, ":", ":" + c) + e;
640
+ break;
641
+ case 6444:
642
+ switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
643
+ case 120:
644
+ return A(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (M(e, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + r + "$2box$3") + e;
645
+ case 100:
646
+ return A(e, ":", ":" + r) + e;
647
+ }
648
+ break;
649
+ case 5719:
650
+ case 2647:
651
+ case 2135:
652
+ case 3927:
653
+ case 2391:
654
+ return A(e, "scroll-", "scroll-snap-") + e;
655
+ }
656
+ return e;
657
+ }
658
+ function te(e, r) {
659
+ var a = "";
660
+ var c = S(e);
661
+ for (var n = 0; n < c; n++) a += r(e[n], n, e, r) || "";
662
+ return a;
663
+ }
664
+ function se(e, r, a, c) {
665
+ switch (e.type) {
666
+ case g:
667
+ if (e.children.length) break;
668
+ case o:
669
+ case s:
670
+ return e.return = e.return || e.value;
671
+ case n:
672
+ return "";
673
+ case d:
674
+ return e.return = e.value + "{" + te(e.children, c) + "}";
675
+ case t:
676
+ e.value = e.props.join(",");
677
+ }
678
+ return R(a = te(e.children, c)) ? e.return = e.value + "{" + a + "}" : "";
679
+ }
680
+ function ie(e) {
681
+ var r = S(e);
682
+ return function (a, c, n, t) {
683
+ var s = "";
684
+ for (var i = 0; i < r; i++) s += e[i](a, c, n, t) || "";
685
+ return s;
686
+ };
687
+ }
688
+ function ue(e) {
689
+ return function (r) {
690
+ if (!r.root) if (r = r.return) e(r);
691
+ };
692
+ }
693
+ function oe(e, n, i, u) {
694
+ if (e.length > -1) if (!e.return) switch (e.type) {
695
+ case s:
696
+ e.return = ne(e.value, e.length, i);
697
+ return;
698
+ case d:
699
+ return te([j(e, {
700
+ value: A(e.value, "@", "@" + c)
701
+ })], u);
702
+ case t:
703
+ if (e.length) return N(e.props, function (n) {
704
+ switch (T(n, /(::plac\w+|:read-\w+)/)) {
705
+ case ":read-only":
706
+ case ":read-write":
707
+ return te([j(e, {
708
+ props: [A(n, /:(read-\w+)/, ":" + a + "$1")]
709
+ })], u);
710
+ case "::placeholder":
711
+ return te([j(e, {
712
+ props: [A(n, /:(plac\w+)/, ":" + c + "input-$1")]
713
+ }), j(e, {
714
+ props: [A(n, /:(plac\w+)/, ":" + a + "$1")]
715
+ }), j(e, {
716
+ props: [A(n, /:(plac\w+)/, r + "input-$1")]
717
+ })], u);
718
+ }
719
+ return "";
720
+ });
721
+ }
722
+ }
723
+ function fe(e) {
724
+ switch (e.type) {
725
+ case t:
726
+ e.props = e.props.map(function (r) {
727
+ return N(B(r), function (r, a, c) {
728
+ switch (M(r, 0)) {
729
+ case 12:
730
+ return C(r, 1, R(r));
731
+ case 0:
732
+ case 40:
733
+ case 43:
734
+ case 62:
735
+ case 126:
736
+ return r;
737
+ case 58:
738
+ if (c[++a] === "global") c[a] = "", c[++a] = "\f" + C(c[a], a = 1, -1);
739
+ case 32:
740
+ return a === 1 ? "" : r;
741
+ default:
742
+ switch (a) {
743
+ case 0:
744
+ e = r;
745
+ return S(c) > 1 ? "" : r;
746
+ case a = S(c) - 1:
747
+ case 2:
748
+ return a === 2 ? r + e + e : r + e;
749
+ default:
750
+ return r;
751
+ }
752
+ }
753
+ });
754
+ });
755
+ }
756
+ }
757
+ e.CHARSET = f;
758
+ e.COMMENT = n;
759
+ e.COUNTER_STYLE = w;
760
+ e.DECLARATION = s;
761
+ e.DOCUMENT = h;
762
+ e.FONT_FACE = b;
763
+ e.FONT_FEATURE_VALUES = m;
764
+ e.IMPORT = o;
765
+ e.KEYFRAMES = d;
766
+ e.LAYER = g;
767
+ e.MEDIA = u;
768
+ e.MOZ = a;
769
+ e.MS = r;
770
+ e.NAMESPACE = v;
771
+ e.PAGE = i;
772
+ e.RULESET = t;
773
+ e.SUPPORTS = p;
774
+ e.VIEWPORT = l;
775
+ e.WEBKIT = c;
776
+ e.abs = k;
777
+ e.alloc = K;
778
+ e.append = z;
779
+ e.assign = x;
780
+ e.caret = L;
781
+ e.char = U;
782
+ e.charat = M;
783
+ e.combine = N;
784
+ e.comment = ae;
785
+ e.commenter = J;
786
+ e.compile = X;
787
+ e.copy = j;
788
+ e.dealloc = V;
789
+ e.declaration = ce;
790
+ e.delimit = W;
791
+ e.delimiter = q;
792
+ e.escaping = Z;
793
+ e.from = $;
794
+ e.hash = E;
795
+ e.identifier = Q;
796
+ e.indexof = O;
797
+ e.match = T;
798
+ e.middleware = ie;
799
+ e.namespace = fe;
800
+ e.next = F;
801
+ e.node = P;
802
+ e.parse = ee;
803
+ e.peek = I;
804
+ e.prefix = ne;
805
+ e.prefixer = oe;
806
+ e.prev = _;
807
+ e.replace = A;
808
+ e.ruleset = re;
809
+ e.rulesheet = ue;
810
+ e.serialize = te;
811
+ e.sizeof = S;
812
+ e.slice = D;
813
+ e.stringify = se;
814
+ e.strlen = R;
815
+ e.substr = C;
816
+ e.token = Y;
817
+ e.tokenize = B;
818
+ e.tokenizer = H;
819
+ e.trim = y;
820
+ e.whitespace = G;
821
+ Object.defineProperty(e, "__esModule", {
822
+ value: true
823
+ });
824
+ });
825
+ })(stylis, stylisExports);
826
+
827
+ var weakMemoize = function weakMemoize(func) {
828
+ var cache = new WeakMap();
829
+ return function (arg) {
830
+ if (cache.has(arg)) {
831
+ // Use non-null assertion because we just checked that the cache `has` it
832
+ // This allows us to remove `undefined` from the return value
833
+ return cache.get(arg);
834
+ }
835
+ var ret = func(arg);
836
+ cache.set(arg, ret);
837
+ return ret;
838
+ };
839
+ };
840
+
841
+ function memoize(fn) {
842
+ var cache = Object.create(null);
843
+ return function (arg) {
844
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
845
+ return cache[arg];
846
+ };
847
+ }
848
+
849
+ var isBrowser$3 = typeof document !== 'undefined';
850
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
851
+ var previous = 0;
852
+ var character = 0;
853
+ while (true) {
854
+ previous = character;
855
+ character = stylisExports.peek(); // &\f
856
+
857
+ if (previous === 38 && character === 12) {
858
+ points[index] = 1;
859
+ }
860
+ if (stylisExports.token(character)) {
861
+ break;
862
+ }
863
+ stylisExports.next();
864
+ }
865
+ return stylisExports.slice(begin, stylisExports.position);
866
+ };
867
+ var toRules = function toRules(parsed, points) {
868
+ // pretend we've started with a comma
869
+ var index = -1;
870
+ var character = 44;
871
+ do {
872
+ switch (stylisExports.token(character)) {
873
+ case 0:
874
+ // &\f
875
+ if (character === 38 && stylisExports.peek() === 12) {
876
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
877
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
878
+ // and when it should just concatenate the outer and inner selectors
879
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
880
+ points[index] = 1;
881
+ }
882
+ parsed[index] += identifierWithPointTracking(stylisExports.position - 1, points, index);
883
+ break;
884
+ case 2:
885
+ parsed[index] += stylisExports.delimit(character);
886
+ break;
887
+ case 4:
888
+ // comma
889
+ if (character === 44) {
890
+ // colon
891
+ parsed[++index] = stylisExports.peek() === 58 ? '&\f' : '';
892
+ points[index] = parsed[index].length;
893
+ break;
894
+ }
895
+
896
+ // fallthrough
897
+
898
+ default:
899
+ parsed[index] += stylisExports.from(character);
900
+ }
901
+ } while (character = stylisExports.next());
902
+ return parsed;
903
+ };
904
+ var getRules = function getRules(value, points) {
905
+ return stylisExports.dealloc(toRules(stylisExports.alloc(value), points));
906
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
907
+
908
+ var fixedElements = /* #__PURE__ */new WeakMap();
909
+ var compat = function compat(element) {
910
+ if (element.type !== 'rule' || !element.parent ||
911
+ // positive .length indicates that this rule contains pseudo
912
+ // negative .length indicates that this rule has been already prefixed
913
+ element.length < 1) {
914
+ return;
915
+ }
916
+ var value = element.value;
917
+ var parent = element.parent;
918
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
919
+ while (parent.type !== 'rule') {
920
+ parent = parent.parent;
921
+ if (!parent) return;
922
+ } // short-circuit for the simplest case
923
+
924
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
925
+ /* colon */ && !fixedElements.get(parent)) {
926
+ return;
927
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
928
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
929
+
930
+ if (isImplicitRule) {
931
+ return;
932
+ }
933
+ fixedElements.set(element, true);
934
+ var points = [];
935
+ var rules = getRules(value, points);
936
+ var parentRules = parent.props;
937
+ for (var i = 0, k = 0; i < rules.length; i++) {
938
+ for (var j = 0; j < parentRules.length; j++, k++) {
939
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
940
+ }
941
+ }
942
+ };
943
+ var removeLabel = function removeLabel(element) {
944
+ if (element.type === 'decl') {
945
+ var value = element.value;
946
+ if (
947
+ // charcode for l
948
+ value.charCodeAt(0) === 108 &&
949
+ // charcode for b
950
+ value.charCodeAt(2) === 98) {
951
+ // this ignores label
952
+ element["return"] = '';
953
+ element.value = '';
954
+ }
955
+ }
956
+ };
957
+
958
+ /* eslint-disable no-fallthrough */
959
+
960
+ function prefix(value, length) {
961
+ switch (stylisExports.hash(value, length)) {
962
+ // color-adjust
963
+ case 5103:
964
+ return stylisExports.WEBKIT + 'print-' + value + value;
965
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
966
+
967
+ case 5737:
968
+ case 4201:
969
+ case 3177:
970
+ case 3433:
971
+ case 1641:
972
+ case 4457:
973
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
974
+
975
+ case 5572:
976
+ case 6356:
977
+ case 5844:
978
+ case 3191:
979
+ case 6645:
980
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
981
+
982
+ case 6391:
983
+ case 5879:
984
+ case 5623:
985
+ case 6135:
986
+ case 4599:
987
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
988
+
989
+ case 4215:
990
+ case 6389:
991
+ case 5109:
992
+ case 5365:
993
+ case 5621:
994
+ case 3829:
995
+ return stylisExports.WEBKIT + value + value;
996
+ // appearance, user-select, transform, hyphens, text-size-adjust
997
+
998
+ case 5349:
999
+ case 4246:
1000
+ case 4810:
1001
+ case 6968:
1002
+ case 2756:
1003
+ return stylisExports.WEBKIT + value + stylisExports.MOZ + value + stylisExports.MS + value + value;
1004
+ // flex, flex-direction
1005
+
1006
+ case 6828:
1007
+ case 4268:
1008
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1009
+ // order
1010
+
1011
+ case 6165:
1012
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-' + value + value;
1013
+ // align-items
1014
+
1015
+ case 5187:
1016
+ return stylisExports.WEBKIT + value + stylisExports.replace(value, /(\w+).+(:[^]+)/, stylisExports.WEBKIT + 'box-$1$2' + stylisExports.MS + 'flex-$1$2') + value;
1017
+ // align-self
1018
+
1019
+ case 5443:
1020
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-item-' + stylisExports.replace(value, /flex-|-self/, '') + value;
1021
+ // align-content
1022
+
1023
+ case 4675:
1024
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-line-pack' + stylisExports.replace(value, /align-content|flex-|-self/, '') + value;
1025
+ // flex-shrink
1026
+
1027
+ case 5548:
1028
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'shrink', 'negative') + value;
1029
+ // flex-basis
1030
+
1031
+ case 5292:
1032
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'basis', 'preferred-size') + value;
1033
+ // flex-grow
1034
+
1035
+ case 6060:
1036
+ return stylisExports.WEBKIT + 'box-' + stylisExports.replace(value, '-grow', '') + stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'grow', 'positive') + value;
1037
+ // transition
1038
+
1039
+ case 4554:
1040
+ return stylisExports.WEBKIT + stylisExports.replace(value, /([^-])(transform)/g, '$1' + stylisExports.WEBKIT + '$2') + value;
1041
+ // cursor
1042
+
1043
+ case 6187:
1044
+ return stylisExports.replace(stylisExports.replace(stylisExports.replace(value, /(zoom-|grab)/, stylisExports.WEBKIT + '$1'), /(image-set)/, stylisExports.WEBKIT + '$1'), value, '') + value;
1045
+ // background, background-image
1046
+
1047
+ case 5495:
1048
+ case 3959:
1049
+ return stylisExports.replace(value, /(image-set\([^]*)/, stylisExports.WEBKIT + '$1' + '$`$1');
1050
+ // justify-content
1051
+
1052
+ case 4968:
1053
+ return stylisExports.replace(stylisExports.replace(value, /(.+:)(flex-)?(.*)/, stylisExports.WEBKIT + 'box-pack:$3' + stylisExports.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylisExports.WEBKIT + value + value;
1054
+ // (margin|padding)-inline-(start|end)
1055
+
1056
+ case 4095:
1057
+ case 3583:
1058
+ case 4068:
1059
+ case 2532:
1060
+ return stylisExports.replace(value, /(.+)-inline(.+)/, stylisExports.WEBKIT + '$1$2') + value;
1061
+ // (min|max)?(width|height|inline-size|block-size)
1062
+
1063
+ case 8116:
1064
+ case 7059:
1065
+ case 5753:
1066
+ case 5535:
1067
+ case 5445:
1068
+ case 5701:
1069
+ case 4933:
1070
+ case 4677:
1071
+ case 5533:
1072
+ case 5789:
1073
+ case 5021:
1074
+ case 4765:
1075
+ // stretch, max-content, min-content, fill-available
1076
+ if (stylisExports.strlen(value) - 1 - length > 6) switch (stylisExports.charat(value, length + 1)) {
1077
+ // (m)ax-content, (m)in-content
1078
+ case 109:
1079
+ // -
1080
+ if (stylisExports.charat(value, length + 4) !== 45) break;
1081
+ // (f)ill-available, (f)it-content
1082
+
1083
+ case 102:
1084
+ return stylisExports.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylisExports.WEBKIT + '$2-$3' + '$1' + stylisExports.MOZ + (stylisExports.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1085
+ // (s)tretch
1086
+
1087
+ case 115:
1088
+ return ~stylisExports.indexof(value, 'stretch') ? prefix(stylisExports.replace(value, 'stretch', 'fill-available'), length) + value : value;
1089
+ }
1090
+ break;
1091
+ // position: sticky
1092
+
1093
+ case 4949:
1094
+ // (s)ticky?
1095
+ if (stylisExports.charat(value, length + 1) !== 115) break;
1096
+ // display: (flex|inline-flex)
1097
+
1098
+ case 6444:
1099
+ switch (stylisExports.charat(value, stylisExports.strlen(value) - 3 - (~stylisExports.indexof(value, '!important') && 10))) {
1100
+ // stic(k)y
1101
+ case 107:
1102
+ return stylisExports.replace(value, ':', ':' + stylisExports.WEBKIT) + value;
1103
+ // (inline-)?fl(e)x
1104
+
1105
+ case 101:
1106
+ 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;
1107
+ }
1108
+ break;
1109
+ // writing-mode
1110
+
1111
+ case 5936:
1112
+ switch (stylisExports.charat(value, length + 11)) {
1113
+ // vertical-l(r)
1114
+ case 114:
1115
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1116
+ // vertical-r(l)
1117
+
1118
+ case 108:
1119
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1120
+ // horizontal(-)tb
1121
+
1122
+ case 45:
1123
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1124
+ }
1125
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1126
+ }
1127
+ return value;
1128
+ }
1129
+ var prefixer = function prefixer(element, index, children, callback) {
1130
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1131
+ case stylisExports.DECLARATION:
1132
+ element["return"] = prefix(element.value, element.length);
1133
+ break;
1134
+ case stylisExports.KEYFRAMES:
1135
+ return stylisExports.serialize([stylisExports.copy(element, {
1136
+ value: stylisExports.replace(element.value, '@', '@' + stylisExports.WEBKIT)
1137
+ })], callback);
1138
+ case stylisExports.RULESET:
1139
+ if (element.length) return stylisExports.combine(element.props, function (value) {
1140
+ switch (stylisExports.match(value, /(::plac\w+|:read-\w+)/)) {
1141
+ // :read-(only|write)
1142
+ case ':read-only':
1143
+ case ':read-write':
1144
+ return stylisExports.serialize([stylisExports.copy(element, {
1145
+ props: [stylisExports.replace(value, /:(read-\w+)/, ':' + stylisExports.MOZ + '$1')]
1146
+ })], callback);
1147
+ // :placeholder
1148
+
1149
+ case '::placeholder':
1150
+ return stylisExports.serialize([stylisExports.copy(element, {
1151
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.WEBKIT + 'input-$1')]
1152
+ }), stylisExports.copy(element, {
1153
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.MOZ + '$1')]
1154
+ }), stylisExports.copy(element, {
1155
+ props: [stylisExports.replace(value, /:(plac\w+)/, stylisExports.MS + 'input-$1')]
1156
+ })], callback);
1157
+ }
1158
+ return '';
1159
+ });
1160
+ }
1161
+ };
1162
+ var getServerStylisCache = isBrowser$3 ? undefined : weakMemoize(function () {
1163
+ return memoize(function () {
1164
+ return {};
1165
+ });
1166
+ });
1167
+ var defaultStylisPlugins = [prefixer];
1168
+ var createCache = function createCache(options) {
1169
+ var key = options.key;
1170
+ if (isBrowser$3 && key === 'css') {
1171
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1172
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1173
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1174
+ // that creating a cache works inside of render of a React component
1175
+
1176
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1177
+ // we want to only move elements which have a space in the data-emotion attribute value
1178
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1179
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1180
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1181
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1182
+ // will not result in the Emotion 10 styles being destroyed
1183
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1184
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1185
+ return;
1186
+ }
1187
+ document.head.appendChild(node);
1188
+ node.setAttribute('data-s', '');
1189
+ });
1190
+ }
1191
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1192
+ var inserted = {};
1193
+ var container;
1194
+ var nodesToHydrate = [];
1195
+ if (isBrowser$3) {
1196
+ container = options.container || document.head;
1197
+ Array.prototype.forEach.call(
1198
+ // this means we will ignore elements which don't have a space in them which
1199
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1200
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1201
+ var attrib = node.getAttribute("data-emotion").split(' ');
1202
+ for (var i = 1; i < attrib.length; i++) {
1203
+ inserted[attrib[i]] = true;
1204
+ }
1205
+ nodesToHydrate.push(node);
1206
+ });
1207
+ }
1208
+ var _insert;
1209
+ var omnipresentPlugins = [compat, removeLabel];
1210
+ if (!getServerStylisCache) {
1211
+ var currentSheet;
1212
+ var finalizingPlugins = [stylisExports.stringify, stylisExports.rulesheet(function (rule) {
1213
+ currentSheet.insert(rule);
1214
+ })];
1215
+ var serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1216
+ var stylis = function stylis(styles) {
1217
+ return stylisExports.serialize(stylisExports.compile(styles), serializer);
1218
+ };
1219
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1220
+ currentSheet = sheet;
1221
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1222
+ if (shouldCache) {
1223
+ cache.inserted[serialized.name] = true;
1224
+ }
1225
+ };
1226
+ } else {
1227
+ var _finalizingPlugins = [stylisExports.stringify];
1228
+ var _serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1229
+ var _stylis = function _stylis(styles) {
1230
+ return stylisExports.serialize(stylisExports.compile(styles), _serializer);
1231
+ };
1232
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1233
+ var getRules = function getRules(selector, serialized) {
1234
+ var name = serialized.name;
1235
+ if (serverStylisCache[name] === undefined) {
1236
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1237
+ }
1238
+ return serverStylisCache[name];
1239
+ };
1240
+ _insert = function _insert(selector, serialized, sheet, shouldCache) {
1241
+ var name = serialized.name;
1242
+ var rules = getRules(selector, serialized);
1243
+ if (cache.compat === undefined) {
1244
+ // in regular mode, we don't set the styles on the inserted cache
1245
+ // since we don't need to and that would be wasting memory
1246
+ // we return them so that they are rendered in a style tag
1247
+ if (shouldCache) {
1248
+ cache.inserted[name] = true;
1249
+ }
1250
+ return rules;
1251
+ } else {
1252
+ // in compat mode, we put the styles on the inserted cache so
1253
+ // that emotion-server can pull out the styles
1254
+ // except when we don't want to cache it which was in Global but now
1255
+ // is nowhere but we don't want to do a major right now
1256
+ // and just in case we're going to leave the case here
1257
+ // it's also not affecting client side bundle size
1258
+ // so it's really not a big deal
1259
+ if (shouldCache) {
1260
+ cache.inserted[name] = rules;
1261
+ } else {
1262
+ return rules;
1263
+ }
1264
+ }
1265
+ };
1266
+ }
1267
+ var cache = {
1268
+ key: key,
1269
+ sheet: new StyleSheet({
1270
+ key: key,
1271
+ container: container,
1272
+ nonce: options.nonce,
1273
+ speedy: options.speedy,
1274
+ prepend: options.prepend,
1275
+ insertionPoint: options.insertionPoint
1276
+ }),
1277
+ nonce: options.nonce,
1278
+ inserted: inserted,
1279
+ registered: {},
1280
+ insert: _insert
1281
+ };
1282
+ cache.sheet.hydrate(nodesToHydrate);
1283
+ return cache;
1284
+ };
1285
+
1286
+ var reactIsExports = {};
1287
+ var reactIs$1 = {
1288
+ get exports(){ return reactIsExports; },
1289
+ set exports(v){ reactIsExports = v; },
1290
+ };
1291
+
1292
+ var reactIs_production_min = {};
1293
+
1294
+ /** @license React v16.13.1
1295
+ * react-is.production.min.js
1296
+ *
1297
+ * Copyright (c) Facebook, Inc. and its affiliates.
1298
+ *
1299
+ * This source code is licensed under the MIT license found in the
1300
+ * LICENSE file in the root directory of this source tree.
1301
+ */
1302
+ var hasRequiredReactIs_production_min;
1303
+ function requireReactIs_production_min() {
1304
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
1305
+ hasRequiredReactIs_production_min = 1;
1306
+ var b = "function" === typeof Symbol && Symbol.for,
1307
+ c = b ? Symbol.for("react.element") : 60103,
1308
+ d = b ? Symbol.for("react.portal") : 60106,
1309
+ e = b ? Symbol.for("react.fragment") : 60107,
1310
+ f = b ? Symbol.for("react.strict_mode") : 60108,
1311
+ g = b ? Symbol.for("react.profiler") : 60114,
1312
+ h = b ? Symbol.for("react.provider") : 60109,
1313
+ k = b ? Symbol.for("react.context") : 60110,
1314
+ l = b ? Symbol.for("react.async_mode") : 60111,
1315
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
1316
+ n = b ? Symbol.for("react.forward_ref") : 60112,
1317
+ p = b ? Symbol.for("react.suspense") : 60113,
1318
+ q = b ? Symbol.for("react.suspense_list") : 60120,
1319
+ r = b ? Symbol.for("react.memo") : 60115,
1320
+ t = b ? Symbol.for("react.lazy") : 60116,
1321
+ v = b ? Symbol.for("react.block") : 60121,
1322
+ w = b ? Symbol.for("react.fundamental") : 60117,
1323
+ x = b ? Symbol.for("react.responder") : 60118,
1324
+ y = b ? Symbol.for("react.scope") : 60119;
1325
+ function z(a) {
1326
+ if ("object" === typeof a && null !== a) {
1327
+ var u = a.$$typeof;
1328
+ switch (u) {
1329
+ case c:
1330
+ switch (a = a.type, a) {
1331
+ case l:
1332
+ case m:
1333
+ case e:
1334
+ case g:
1335
+ case f:
1336
+ case p:
1337
+ return a;
1338
+ default:
1339
+ switch (a = a && a.$$typeof, a) {
1340
+ case k:
1341
+ case n:
1342
+ case t:
1343
+ case r:
1344
+ case h:
1345
+ return a;
1346
+ default:
1347
+ return u;
1348
+ }
1349
+ }
1350
+ case d:
1351
+ return u;
1352
+ }
1353
+ }
1354
+ }
1355
+ function A(a) {
1356
+ return z(a) === m;
1357
+ }
1358
+ reactIs_production_min.AsyncMode = l;
1359
+ reactIs_production_min.ConcurrentMode = m;
1360
+ reactIs_production_min.ContextConsumer = k;
1361
+ reactIs_production_min.ContextProvider = h;
1362
+ reactIs_production_min.Element = c;
1363
+ reactIs_production_min.ForwardRef = n;
1364
+ reactIs_production_min.Fragment = e;
1365
+ reactIs_production_min.Lazy = t;
1366
+ reactIs_production_min.Memo = r;
1367
+ reactIs_production_min.Portal = d;
1368
+ reactIs_production_min.Profiler = g;
1369
+ reactIs_production_min.StrictMode = f;
1370
+ reactIs_production_min.Suspense = p;
1371
+ reactIs_production_min.isAsyncMode = function (a) {
1372
+ return A(a) || z(a) === l;
1373
+ };
1374
+ reactIs_production_min.isConcurrentMode = A;
1375
+ reactIs_production_min.isContextConsumer = function (a) {
1376
+ return z(a) === k;
1377
+ };
1378
+ reactIs_production_min.isContextProvider = function (a) {
1379
+ return z(a) === h;
1380
+ };
1381
+ reactIs_production_min.isElement = function (a) {
1382
+ return "object" === typeof a && null !== a && a.$$typeof === c;
1383
+ };
1384
+ reactIs_production_min.isForwardRef = function (a) {
1385
+ return z(a) === n;
1386
+ };
1387
+ reactIs_production_min.isFragment = function (a) {
1388
+ return z(a) === e;
1389
+ };
1390
+ reactIs_production_min.isLazy = function (a) {
1391
+ return z(a) === t;
1392
+ };
1393
+ reactIs_production_min.isMemo = function (a) {
1394
+ return z(a) === r;
1395
+ };
1396
+ reactIs_production_min.isPortal = function (a) {
1397
+ return z(a) === d;
1398
+ };
1399
+ reactIs_production_min.isProfiler = function (a) {
1400
+ return z(a) === g;
1401
+ };
1402
+ reactIs_production_min.isStrictMode = function (a) {
1403
+ return z(a) === f;
1404
+ };
1405
+ reactIs_production_min.isSuspense = function (a) {
1406
+ return z(a) === p;
1407
+ };
1408
+ reactIs_production_min.isValidElementType = function (a) {
1409
+ 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);
1410
+ };
1411
+ reactIs_production_min.typeOf = z;
1412
+ return reactIs_production_min;
1413
+ }
1414
+
1415
+ (function (module) {
1416
+
1417
+ {
1418
+ module.exports = requireReactIs_production_min();
1419
+ }
1420
+ })(reactIs$1);
1421
+
1422
+ var reactIs = reactIsExports;
1423
+ var FORWARD_REF_STATICS = {
1424
+ '$$typeof': true,
1425
+ render: true,
1426
+ defaultProps: true,
1427
+ displayName: true,
1428
+ propTypes: true
1429
+ };
1430
+ var MEMO_STATICS = {
1431
+ '$$typeof': true,
1432
+ compare: true,
1433
+ defaultProps: true,
1434
+ displayName: true,
1435
+ propTypes: true,
1436
+ type: true
1437
+ };
1438
+ var TYPE_STATICS = {};
1439
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1440
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1441
+
1442
+ var isBrowser$2 = typeof document !== 'undefined';
1443
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1444
+ var rawClassName = '';
1445
+ classNames.split(' ').forEach(function (className) {
1446
+ if (registered[className] !== undefined) {
1447
+ registeredStyles.push(registered[className] + ";");
1448
+ } else if (className) {
1449
+ rawClassName += className + " ";
1450
+ }
1451
+ });
1452
+ return rawClassName;
1453
+ }
1454
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
1455
+ var className = cache.key + "-" + serialized.name;
1456
+ if (
1457
+ // we only need to add the styles to the registered cache if the
1458
+ // class name could be used further down
1459
+ // the tree but if it's a string tag, we know it won't
1460
+ // so we don't have to add it to registered cache.
1461
+ // this improves memory usage since we can avoid storing the whole style string
1462
+ (isStringTag === false ||
1463
+ // we need to always store it if we're in compat mode and
1464
+ // in node since emotion-server relies on whether a style is in
1465
+ // the registered cache to know whether a style is global or not
1466
+ // also, note that this check will be dead code eliminated in the browser
1467
+ isBrowser$2 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1468
+ cache.registered[className] = serialized.styles;
1469
+ }
1470
+ };
1471
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1472
+ registerStyles(cache, serialized, isStringTag);
1473
+ var className = cache.key + "-" + serialized.name;
1474
+ if (cache.inserted[serialized.name] === undefined) {
1475
+ var stylesForSSR = '';
1476
+ var current = serialized;
1477
+ do {
1478
+ var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1479
+ if (!isBrowser$2 && maybeStyles !== undefined) {
1480
+ stylesForSSR += maybeStyles;
1481
+ }
1482
+ current = current.next;
1483
+ } while (current !== undefined);
1484
+ if (!isBrowser$2 && stylesForSSR.length !== 0) {
1485
+ return stylesForSSR;
1486
+ }
1487
+ }
1488
+ };
1489
+
1490
+ /* eslint-disable */
1491
+ // Inspired by https://github.com/garycourt/murmurhash-js
1492
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1493
+ function murmur2(str) {
1494
+ // 'm' and 'r' are mixing constants generated offline.
1495
+ // They're not really 'magic', they just happen to work well.
1496
+ // const m = 0x5bd1e995;
1497
+ // const r = 24;
1498
+ // Initialize the hash
1499
+ var h = 0; // Mix 4 bytes at a time into the hash
1500
+
1501
+ var k,
1502
+ i = 0,
1503
+ len = str.length;
1504
+ for (; len >= 4; ++i, len -= 4) {
1505
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1506
+ k = /* Math.imul(k, m): */
1507
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1508
+ k ^= /* k >>> r: */
1509
+ k >>> 24;
1510
+ h = /* Math.imul(k, m): */
1511
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
1512
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1513
+ } // Handle the last few bytes of the input array
1514
+
1515
+ switch (len) {
1516
+ case 3:
1517
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1518
+ case 2:
1519
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1520
+ case 1:
1521
+ h ^= str.charCodeAt(i) & 0xff;
1522
+ h = /* Math.imul(h, m): */
1523
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1524
+ } // Do a few final mixes of the hash to ensure the last few
1525
+ // bytes are well-incorporated.
1526
+
1527
+ h ^= h >>> 13;
1528
+ h = /* Math.imul(h, m): */
1529
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1530
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1531
+ }
1532
+
1533
+ var unitlessKeys = {
1534
+ animationIterationCount: 1,
1535
+ aspectRatio: 1,
1536
+ borderImageOutset: 1,
1537
+ borderImageSlice: 1,
1538
+ borderImageWidth: 1,
1539
+ boxFlex: 1,
1540
+ boxFlexGroup: 1,
1541
+ boxOrdinalGroup: 1,
1542
+ columnCount: 1,
1543
+ columns: 1,
1544
+ flex: 1,
1545
+ flexGrow: 1,
1546
+ flexPositive: 1,
1547
+ flexShrink: 1,
1548
+ flexNegative: 1,
1549
+ flexOrder: 1,
1550
+ gridRow: 1,
1551
+ gridRowEnd: 1,
1552
+ gridRowSpan: 1,
1553
+ gridRowStart: 1,
1554
+ gridColumn: 1,
1555
+ gridColumnEnd: 1,
1556
+ gridColumnSpan: 1,
1557
+ gridColumnStart: 1,
1558
+ msGridRow: 1,
1559
+ msGridRowSpan: 1,
1560
+ msGridColumn: 1,
1561
+ msGridColumnSpan: 1,
1562
+ fontWeight: 1,
1563
+ lineHeight: 1,
1564
+ opacity: 1,
1565
+ order: 1,
1566
+ orphans: 1,
1567
+ scale: 1,
1568
+ tabSize: 1,
1569
+ widows: 1,
1570
+ zIndex: 1,
1571
+ zoom: 1,
1572
+ WebkitLineClamp: 1,
1573
+ // SVG-related properties
1574
+ fillOpacity: 1,
1575
+ floodOpacity: 1,
1576
+ stopOpacity: 1,
1577
+ strokeDasharray: 1,
1578
+ strokeDashoffset: 1,
1579
+ strokeMiterlimit: 1,
1580
+ strokeOpacity: 1,
1581
+ strokeWidth: 1
1582
+ };
1583
+
1584
+ var isDevelopment$1 = false;
1585
+ var hyphenateRegex = /[A-Z]|^ms/g;
1586
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1587
+ var isCustomProperty = function isCustomProperty(property) {
1588
+ return property.charCodeAt(1) === 45;
1589
+ };
1590
+ var isProcessableValue = function isProcessableValue(value) {
1591
+ return value != null && typeof value !== 'boolean';
1592
+ };
1593
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1594
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
1595
+ });
1596
+ var processStyleValue = function processStyleValue(key, value) {
1597
+ switch (key) {
1598
+ case 'animation':
1599
+ case 'animationName':
1600
+ {
1601
+ if (typeof value === 'string') {
1602
+ return value.replace(animationRegex, function (match, p1, p2) {
1603
+ cursor = {
1604
+ name: p1,
1605
+ styles: p2,
1606
+ next: cursor
1607
+ };
1608
+ return p1;
1609
+ });
1610
+ }
1611
+ }
1612
+ }
1613
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1614
+ return value + 'px';
1615
+ }
1616
+ return value;
1617
+ };
1618
+ var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1619
+ function handleInterpolation(mergedProps, registered, interpolation) {
1620
+ if (interpolation == null) {
1621
+ return '';
1622
+ }
1623
+ var componentSelector = interpolation;
1624
+ if (componentSelector.__emotion_styles !== undefined) {
1625
+ return componentSelector;
1626
+ }
1627
+ switch (typeof interpolation) {
1628
+ case 'boolean':
1629
+ {
1630
+ return '';
1631
+ }
1632
+ case 'object':
1633
+ {
1634
+ var keyframes = interpolation;
1635
+ if (keyframes.anim === 1) {
1636
+ cursor = {
1637
+ name: keyframes.name,
1638
+ styles: keyframes.styles,
1639
+ next: cursor
1640
+ };
1641
+ return keyframes.name;
1642
+ }
1643
+ var serializedStyles = interpolation;
1644
+ if (serializedStyles.styles !== undefined) {
1645
+ var next = serializedStyles.next;
1646
+ if (next !== undefined) {
1647
+ // not the most efficient thing ever but this is a pretty rare case
1648
+ // and there will be very few iterations of this generally
1649
+ while (next !== undefined) {
1650
+ cursor = {
1651
+ name: next.name,
1652
+ styles: next.styles,
1653
+ next: cursor
1654
+ };
1655
+ next = next.next;
1656
+ }
1657
+ }
1658
+ var styles = serializedStyles.styles + ";";
1659
+ return styles;
1660
+ }
1661
+ return createStringFromObject(mergedProps, registered, interpolation);
1662
+ }
1663
+ case 'function':
1664
+ {
1665
+ if (mergedProps !== undefined) {
1666
+ var previousCursor = cursor;
1667
+ var result = interpolation(mergedProps);
1668
+ cursor = previousCursor;
1669
+ return handleInterpolation(mergedProps, registered, result);
1670
+ }
1671
+ break;
1672
+ }
1673
+ } // finalize string values (regular strings and functions interpolated into css calls)
1674
+
1675
+ var asString = interpolation;
1676
+ if (registered == null) {
1677
+ return asString;
1678
+ }
1679
+ var cached = registered[asString];
1680
+ return cached !== undefined ? cached : asString;
1681
+ }
1682
+ function createStringFromObject(mergedProps, registered, obj) {
1683
+ var string = '';
1684
+ if (Array.isArray(obj)) {
1685
+ for (var i = 0; i < obj.length; i++) {
1686
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1687
+ }
1688
+ } else {
1689
+ for (var key in obj) {
1690
+ var value = obj[key];
1691
+ if (typeof value !== 'object') {
1692
+ var asString = value;
1693
+ if (registered != null && registered[asString] !== undefined) {
1694
+ string += key + "{" + registered[asString] + "}";
1695
+ } else if (isProcessableValue(asString)) {
1696
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
1697
+ }
1698
+ } else {
1699
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$1) {
1700
+ throw new Error(noComponentSelectorMessage);
1701
+ }
1702
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
1703
+ for (var _i = 0; _i < value.length; _i++) {
1704
+ if (isProcessableValue(value[_i])) {
1705
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
1706
+ }
1707
+ }
1708
+ } else {
1709
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1710
+ switch (key) {
1711
+ case 'animation':
1712
+ case 'animationName':
1713
+ {
1714
+ string += processStyleName(key) + ":" + interpolated + ";";
1715
+ break;
1716
+ }
1717
+ default:
1718
+ {
1719
+ string += key + "{" + interpolated + "}";
1720
+ }
1721
+ }
1722
+ }
1723
+ }
1724
+ }
1725
+ }
1726
+ return string;
1727
+ }
1728
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
1729
+ // keyframes are stored on the SerializedStyles object as a linked list
1730
+
1731
+ var cursor;
1732
+ function serializeStyles(args, registered, mergedProps) {
1733
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
1734
+ return args[0];
1735
+ }
1736
+ var stringMode = true;
1737
+ var styles = '';
1738
+ cursor = undefined;
1739
+ var strings = args[0];
1740
+ if (strings == null || strings.raw === undefined) {
1741
+ stringMode = false;
1742
+ styles += handleInterpolation(mergedProps, registered, strings);
1743
+ } else {
1744
+ var asTemplateStringsArr = strings;
1745
+ styles += asTemplateStringsArr[0];
1746
+ } // we start at 1 since we've already handled the first arg
1747
+
1748
+ for (var i = 1; i < args.length; i++) {
1749
+ styles += handleInterpolation(mergedProps, registered, args[i]);
1750
+ if (stringMode) {
1751
+ var templateStringsArr = strings;
1752
+ styles += templateStringsArr[i];
1753
+ }
1754
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
1755
+
1756
+ labelPattern.lastIndex = 0;
1757
+ var identifierName = '';
1758
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
1759
+
1760
+ while ((match = labelPattern.exec(styles)) !== null) {
1761
+ identifierName += '-' + match[1];
1762
+ }
1763
+ var name = murmur2(styles) + identifierName;
1764
+ return {
1765
+ name: name,
1766
+ styles: styles,
1767
+ next: cursor
1768
+ };
1769
+ }
1770
+
1771
+ var isBrowser$1 = typeof document !== 'undefined';
1772
+ var syncFallback = function syncFallback(create) {
1773
+ return create();
1774
+ };
1775
+ var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
1776
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
1777
+
1778
+ var isDevelopment = false;
1779
+ var isBrowser = typeof document !== 'undefined';
1780
+ var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext(
1781
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1782
+ // because this module is primarily intended for the browser and node
1783
+ // but it's also required in react native and similar environments sometimes
1784
+ // and we could have a special build just for that
1785
+ // but this is much easier and the native packages
1786
+ // might use a different theme context in the future anyway
1787
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
1788
+ key: 'css'
1789
+ }) : null);
1790
+ EmotionCacheContext.Provider;
1791
+ var withEmotionCache = function withEmotionCache(func) {
1792
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
1793
+ // the cache will never be null in the browser
1794
+ var cache = React.useContext(EmotionCacheContext);
1795
+ return func(props, cache, ref);
1796
+ });
1797
+ };
1798
+ if (!isBrowser) {
1799
+ withEmotionCache = function withEmotionCache(func) {
1800
+ return function (props) {
1801
+ var cache = React.useContext(EmotionCacheContext);
1802
+ if (cache === null) {
1803
+ // yes, we're potentially creating this on every render
1804
+ // it doesn't actually matter though since it's only on the server
1805
+ // so there will only every be a single render
1806
+ // that could change in the future because of suspense and etc. but for now,
1807
+ // this works and i don't want to optimise for a future thing that we aren't sure about
1808
+ cache = createCache({
1809
+ key: 'css'
1810
+ });
1811
+ return /*#__PURE__*/React__namespace.createElement(EmotionCacheContext.Provider, {
1812
+ value: cache
1813
+ }, func(props, cache));
1814
+ } else {
1815
+ return func(props, cache);
1816
+ }
1817
+ };
1818
+ };
1819
+ }
1820
+ var ThemeContext = /* #__PURE__ */React__namespace.createContext({});
1821
+ var hasOwn = {}.hasOwnProperty;
1822
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
1823
+ var createEmotionProps = function createEmotionProps(type, props) {
1824
+ var newProps = {};
1825
+ for (var _key in props) {
1826
+ if (hasOwn.call(props, _key)) {
1827
+ newProps[_key] = props[_key];
1828
+ }
1829
+ }
1830
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
1831
+
1832
+ return newProps;
1833
+ };
1834
+ var Insertion = function Insertion(_ref) {
1835
+ var cache = _ref.cache,
1836
+ serialized = _ref.serialized,
1837
+ isStringTag = _ref.isStringTag;
1838
+ registerStyles(cache, serialized, isStringTag);
1839
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
1840
+ return insertStyles(cache, serialized, isStringTag);
1841
+ });
1842
+ if (!isBrowser && rules !== undefined) {
1843
+ var _ref2;
1844
+ var serializedNames = serialized.name;
1845
+ var next = serialized.next;
1846
+ while (next !== undefined) {
1847
+ serializedNames += ' ' + next.name;
1848
+ next = next.next;
1849
+ }
1850
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
1851
+ __html: rules
1852
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
1853
+ }
1854
+ return null;
1855
+ };
1856
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
1857
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
1858
+ // not passing the registered cache to serializeStyles because it would
1859
+ // make certain babel optimisations not possible
1860
+
1861
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
1862
+ cssProp = cache.registered[cssProp];
1863
+ }
1864
+ var WrappedComponent = props[typePropName];
1865
+ var registeredStyles = [cssProp];
1866
+ var className = '';
1867
+ if (typeof props.className === 'string') {
1868
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1869
+ } else if (props.className != null) {
1870
+ className = props.className + " ";
1871
+ }
1872
+ var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext));
1873
+ className += cache.key + "-" + serialized.name;
1874
+ var newProps = {};
1875
+ for (var _key2 in props) {
1876
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && !isDevelopment) {
1877
+ newProps[_key2] = props[_key2];
1878
+ }
1879
+ }
1880
+ newProps.className = className;
1881
+ if (ref) {
1882
+ newProps.ref = ref;
1883
+ }
1884
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
1885
+ cache: cache,
1886
+ serialized: serialized,
1887
+ isStringTag: typeof WrappedComponent === 'string'
1888
+ }), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
1889
+ });
1890
+ var Emotion$1 = Emotion;
1891
+
1892
+ var _extendsExports = {};
1893
+ var _extends = {
1894
+ get exports(){ return _extendsExports; },
1895
+ set exports(v){ _extendsExports = v; },
1896
+ };
1897
+
1898
+ (function (module) {
1899
+ function _extends() {
1900
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
1901
+ for (var e = 1; e < arguments.length; e++) {
1902
+ var t = arguments[e];
1903
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1904
+ }
1905
+ return n;
1906
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
1907
+ }
1908
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
1909
+ })(_extends);
1910
+
1911
+ var jsx = function jsx(type, props) {
1912
+ // eslint-disable-next-line prefer-rest-params
1913
+ var args = arguments;
1914
+ if (props == null || !hasOwn.call(props, 'css')) {
1915
+ return React__namespace.createElement.apply(undefined, args);
1916
+ }
1917
+ var argsLength = args.length;
1918
+ var createElementArgArray = new Array(argsLength);
1919
+ createElementArgArray[0] = Emotion$1;
1920
+ createElementArgArray[1] = createEmotionProps(type, props);
1921
+ for (var i = 2; i < argsLength; i++) {
1922
+ createElementArgArray[i] = args[i];
1923
+ }
1924
+ return React__namespace.createElement.apply(null, createElementArgArray);
1925
+ };
1926
+ (function (_jsx) {
1927
+ var JSX;
1928
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
1929
+ })(jsx || (jsx = {}));
1930
+ function css() {
1931
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1932
+ args[_key] = arguments[_key];
1933
+ }
1934
+ return serializeStyles(args);
1935
+ }
1936
+
63
1937
  exports.IDotsStripPosition = void 0;
64
1938
  (function (IDotsStripPosition) {
65
1939
  IDotsStripPosition["INSIDE"] = "INSIDE";
@@ -87,14 +1961,14 @@
87
1961
  })(exports.STRIP_POSITION || (exports.STRIP_POSITION = {}));
88
1962
 
89
1963
  var getActiveDotsStyle = function () {
90
- return react.css(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n opacity: 1;\n width: 12px;\n "], ["\n opacity: 1;\n width: 12px;\n "])));
1964
+ return css(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n opacity: 1;\n width: 12px;\n "], ["\n opacity: 1;\n width: 12px;\n "])));
91
1965
  };
92
1966
  var getDotsPositionStyle = function (pos) {
93
1967
  if (pos === exports.IDotsStripPosition[exports.STRIP_POSITION.INSIDE]) {
94
- return react.css(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n position: absolute;\n "], ["\n position: absolute;\n "])));
1968
+ return css(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n position: absolute;\n "], ["\n position: absolute;\n "])));
95
1969
  }
96
1970
  else {
97
- return react.css(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n paddingitop: 4px;\n "], ["\n paddingitop: 4px;\n "])));
1971
+ return css(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n paddingitop: 4px;\n "], ["\n paddingitop: 4px;\n "])));
98
1972
  }
99
1973
  };
100
1974
  var templateObject_1$4, templateObject_2$3, templateObject_3$1;
@@ -109,8 +1983,8 @@
109
1983
  return (jsxRuntime.jsxs(DotsContainer, __assign({ pos: stripPosition, className: dotsContainerMergedStyles }, { children: [customSliderIconWithDots && (jsxRuntime.jsx(ctDesignContainer.Container, __assign({ paddingRight: '12px', onClick: onLeftChevronClick }, { children: jsxRuntime.jsx(ctDesignIcons.LeftChevronNoBg, { color: leftArrowColor }) }))), Array(maxDotsToShow < length ? maxDotsToShow : length)
110
1984
  .fill(0)
111
1985
  .map(function (_, index) {
112
- return index === customIconIndex && customIcon ? (jsxRuntime.jsx(ctDesignContainer.Container, __assign({ className: 'flex flex-center z-10' }, { children: React__default.default.isValidElement(customIcon)
113
- ? React__default.default.cloneElement(customIcon, {
1986
+ return index === customIconIndex && customIcon ? (jsxRuntime.jsx(ctDesignContainer.Container, __assign({ className: 'flex flex-center z-10' }, { children: React__namespace.default.isValidElement(customIcon)
1987
+ ? React__namespace.default.cloneElement(customIcon, {
114
1988
  color: index === pos ? 'rgba(255, 255, 255, 1)' : 'rgba(255, 255, 255, 0.5)',
115
1989
  })
116
1990
  : customIcon }), index)) : (jsxRuntime.jsx(DotsWrapper, { index: index, pos: pos, className: carousalDotsMergedStyles, selectedClassName: selectedDotsMergedStyles }, index));
@@ -121,10 +1995,10 @@
121
1995
  var getChevronHoverStyles = function (_a) {
122
1996
  var isHovering = _a.isHovering;
123
1997
  if (isHovering) {
124
- return react.css(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n opacity: 1;\n transition: opacity 500ms ease-out;\n background-color: white;\n "], ["\n opacity: 1;\n transition: opacity 500ms ease-out;\n background-color: white;\n "])));
1998
+ return css$1.css(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n opacity: 1;\n transition: opacity 500ms ease-out;\n background-color: white;\n "], ["\n opacity: 1;\n transition: opacity 500ms ease-out;\n background-color: white;\n "])));
125
1999
  }
126
2000
  else {
127
- return react.css(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n display: none;\n left: unset;\n right: unset;\n opacity: 0;\n transition: opacity 500ms ease-out;\n "], ["\n display: none;\n left: unset;\n right: unset;\n opacity: 0;\n transition: opacity 500ms ease-out;\n "])));
2001
+ return css$1.css(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n display: none;\n left: unset;\n right: unset;\n opacity: 0;\n transition: opacity 500ms ease-out;\n "], ["\n display: none;\n left: unset;\n right: unset;\n opacity: 0;\n transition: opacity 500ms ease-out;\n "])));
128
2002
  }
129
2003
  };
130
2004
  var templateObject_1$2, templateObject_2$1;
@@ -227,7 +2101,7 @@
227
2101
  var _v = styleConfig || {}, _w = _v.wrapper, customWrapper = _w === void 0 ? [] : _w, _x = _v.carouselContainer, customCarouselContainer = _x === void 0 ? [] : _x, _y = _v.carouselSlot, customCarouselSlot = _y === void 0 ? [] : _y, _z = _v.carousalDots, customCarousalDots = _z === void 0 ? [] : _z, _0 = _v.selectedDots, customSelectedDots = _0 === void 0 ? [] : _0, _1 = _v.dotsContainer, customDotsContainer = _1 === void 0 ? [] : _1, _2 = _v.imageCountChipContainer, customImageCountChipContainer = _2 === void 0 ? [] : _2, _3 = _v.imageCountChipWrapper, customImageCountChipWrapper = _3 === void 0 ? [] : _3, rightArrowColor = _v.rightArrowColor, leftArrowColor = _v.leftArrowColor, _4 = _v.chevronContainer, customChevronContainer = _4 === void 0 ? [] : _4;
228
2102
  var _5 = React.useState(false), isHovering = _5[0], setIsHovering = _5[1];
229
2103
  var numItems = React.useMemo(function () {
230
- return React__default.default.Children.count(props.children);
2104
+ return React__namespace.default.Children.count(props.children);
231
2105
  }, [props.children]);
232
2106
  var carouselRef = React.useRef(null);
233
2107
  var containerRef = React.useRef(null);
@@ -349,7 +2223,7 @@
349
2223
  getIsHovering === null || getIsHovering === void 0 ? void 0 : getIsHovering(false);
350
2224
  }
351
2225
  }; }, []);
352
- var length = React__default.default.Children.count(props.children);
2226
+ var length = React__namespace.default.Children.count(props.children);
353
2227
  var onLeftClick = function (e) {
354
2228
  e.stopPropagation();
355
2229
  e.preventDefault();
@@ -427,7 +2301,7 @@
427
2301
  root: __spreadArray(__spreadArray([staticCarouselStyles.wrapper], customWrapper, true), [{ height: wrapperHeight }], false),
428
2302
  } }, { children: [showSliderIcons && !customSliderIconWithDots && (jsxRuntime.jsx(SliderChevron, { onClick: onLeftClick, Icon: ctDesignIcons.SliderLeftChevron, dir: exports.SLIDER_DIRECTION.PREV, isHovering: isHovering, className: chevronContainerMergedStyles })), jsxRuntime.jsx(ctDesignContainer.Container, __assign({ styleConfig: {
429
2303
  root: __spreadArray([staticCarouselStyles.carouselContainer], customCarouselContainer, true),
430
- }, ref: carouselRef }, { children: React__default.default.Children.map(props.children, function (child, index) { return (jsxRuntime.jsx(ctDesignContainer.Container, __assign({ styleConfig: {
2304
+ }, ref: carouselRef }, { children: React__namespace.default.Children.map(props.children, function (child, index) { return (jsxRuntime.jsx(ctDesignContainer.Container, __assign({ styleConfig: {
431
2305
  root: __spreadArray([staticCarouselStyles.carouselSlot], customCarouselSlot, true),
432
2306
  } }, { children: child }))); }) })), showSliderIcons && !customSliderIconWithDots && (jsxRuntime.jsx(SliderChevron, { onClick: onRightClick, Icon: ctDesignIcons.SliderRightChevron, dir: exports.SLIDER_DIRECTION.NEXT, isHovering: isHovering, className: chevronContainerMergedStyles })), CustomDotsComponent ? (jsxRuntime.jsx(CustomDotsComponent, { onLeftChevronClick: onLeftClick, onRightChevronClick: onRightClick, length: length, maxDotsToShow: maxDotsToShow, pos: pos })) : (showDots && (jsxRuntime.jsx(DotsComponent, { length: length, maxDotsToShow: maxDotsToShow, pos: pos, customSliderIconWithDots: customSliderIconWithDots, onLeftChevronClick: onLeftClick, onRightChevronClick: onRightClick, carousalDotsStyles: customCarousalDots, selectedDotsStyles: customSelectedDots, dotsContainerStyles: customDotsContainer, leftArrowColor: leftArrowColor, rightArrowColor: rightArrowColor, stripPosition: dotsStripPosition, customIcon: customIcon, customIconIndex: customIconIndex }))), showCountChip && (jsxRuntime.jsx(StyledImageCountChipWrapper, __assign({ className: imageCountChipMergedStyles }, { children: jsxRuntime.jsx(StyledImageCountChipContainer, __assign({ className: imageCountChipContainerMergedStyles }, { children: "".concat(pos + 1, "/").concat(length) })) })))] })), CustomLeftCarousalComponent && jsxRuntime.jsx(CustomLeftCarousalComponent, { onSlide: onSwipe })] })) })));
433
2307
  });