@thecb/components 5.9.0-beta.6 → 5.9.3

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.
package/dist/index.esm.js CHANGED
@@ -1,5 +1,4 @@
1
- import React, { createContext, createElement, PureComponent, forwardRef, Component, cloneElement, Children, useContext, Fragment, useRef, useState, useLayoutEffect, memo, useEffect as useEffect$1, useMemo, useCallback, isValidElement, createRef } from 'react';
2
- import styled, { ThemeContext, css, ThemeProvider } from 'styled-components';
1
+ import React, { useContext, useMemo, useRef, createElement, useDebugValue, createContext, PureComponent, forwardRef, Component, cloneElement, Children, Fragment as Fragment$1, useState, useLayoutEffect, memo, useEffect as useEffect$1, useCallback, isValidElement, createRef } from 'react';
3
2
  import theme from 'styled-theming';
4
3
  import { Link, useNavigate } from 'react-router-dom';
5
4
  import reactDom from 'react-dom';
@@ -214,6 +213,2717 @@ function _nonIterableRest() {
214
213
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
215
214
  }
216
215
 
216
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
217
+
218
+ function createCommonjsModule(fn, module) {
219
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
220
+ }
221
+
222
+ /** @license React v16.13.1
223
+ * react-is.production.min.js
224
+ *
225
+ * Copyright (c) Facebook, Inc. and its affiliates.
226
+ *
227
+ * This source code is licensed under the MIT license found in the
228
+ * LICENSE file in the root directory of this source tree.
229
+ */
230
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
231
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
232
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element$1=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
233
+ var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
234
+ var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
235
+ var isValidElementType=function(a){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)};var typeOf=z;
236
+
237
+ var reactIs_production_min = {
238
+ AsyncMode: AsyncMode,
239
+ ConcurrentMode: ConcurrentMode,
240
+ ContextConsumer: ContextConsumer,
241
+ ContextProvider: ContextProvider,
242
+ Element: Element$1,
243
+ ForwardRef: ForwardRef,
244
+ Fragment: Fragment,
245
+ Lazy: Lazy,
246
+ Memo: Memo,
247
+ Portal: Portal,
248
+ Profiler: Profiler,
249
+ StrictMode: StrictMode,
250
+ Suspense: Suspense,
251
+ isAsyncMode: isAsyncMode,
252
+ isConcurrentMode: isConcurrentMode,
253
+ isContextConsumer: isContextConsumer,
254
+ isContextProvider: isContextProvider,
255
+ isElement: isElement,
256
+ isForwardRef: isForwardRef,
257
+ isFragment: isFragment,
258
+ isLazy: isLazy,
259
+ isMemo: isMemo,
260
+ isPortal: isPortal,
261
+ isProfiler: isProfiler,
262
+ isStrictMode: isStrictMode,
263
+ isSuspense: isSuspense,
264
+ isValidElementType: isValidElementType,
265
+ typeOf: typeOf
266
+ };
267
+
268
+ var reactIs_development = createCommonjsModule(function (module, exports) {
269
+
270
+
271
+
272
+ if (process.env.NODE_ENV !== "production") {
273
+ (function() {
274
+
275
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
276
+ // nor polyfill, then a plain number is used for performance.
277
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
278
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
279
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
280
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
281
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
282
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
283
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
284
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
285
+ // (unstable) APIs that have been removed. Can we remove the symbols?
286
+
287
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
288
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
289
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
290
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
291
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
292
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
293
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
294
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
295
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
296
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
297
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
298
+
299
+ function isValidElementType(type) {
300
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
301
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
302
+ }
303
+
304
+ function typeOf(object) {
305
+ if (typeof object === 'object' && object !== null) {
306
+ var $$typeof = object.$$typeof;
307
+
308
+ switch ($$typeof) {
309
+ case REACT_ELEMENT_TYPE:
310
+ var type = object.type;
311
+
312
+ switch (type) {
313
+ case REACT_ASYNC_MODE_TYPE:
314
+ case REACT_CONCURRENT_MODE_TYPE:
315
+ case REACT_FRAGMENT_TYPE:
316
+ case REACT_PROFILER_TYPE:
317
+ case REACT_STRICT_MODE_TYPE:
318
+ case REACT_SUSPENSE_TYPE:
319
+ return type;
320
+
321
+ default:
322
+ var $$typeofType = type && type.$$typeof;
323
+
324
+ switch ($$typeofType) {
325
+ case REACT_CONTEXT_TYPE:
326
+ case REACT_FORWARD_REF_TYPE:
327
+ case REACT_LAZY_TYPE:
328
+ case REACT_MEMO_TYPE:
329
+ case REACT_PROVIDER_TYPE:
330
+ return $$typeofType;
331
+
332
+ default:
333
+ return $$typeof;
334
+ }
335
+
336
+ }
337
+
338
+ case REACT_PORTAL_TYPE:
339
+ return $$typeof;
340
+ }
341
+ }
342
+
343
+ return undefined;
344
+ } // AsyncMode is deprecated along with isAsyncMode
345
+
346
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
347
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
348
+ var ContextConsumer = REACT_CONTEXT_TYPE;
349
+ var ContextProvider = REACT_PROVIDER_TYPE;
350
+ var Element = REACT_ELEMENT_TYPE;
351
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
352
+ var Fragment = REACT_FRAGMENT_TYPE;
353
+ var Lazy = REACT_LAZY_TYPE;
354
+ var Memo = REACT_MEMO_TYPE;
355
+ var Portal = REACT_PORTAL_TYPE;
356
+ var Profiler = REACT_PROFILER_TYPE;
357
+ var StrictMode = REACT_STRICT_MODE_TYPE;
358
+ var Suspense = REACT_SUSPENSE_TYPE;
359
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
360
+
361
+ function isAsyncMode(object) {
362
+ {
363
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
364
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
365
+
366
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
367
+ }
368
+ }
369
+
370
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
371
+ }
372
+ function isConcurrentMode(object) {
373
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
374
+ }
375
+ function isContextConsumer(object) {
376
+ return typeOf(object) === REACT_CONTEXT_TYPE;
377
+ }
378
+ function isContextProvider(object) {
379
+ return typeOf(object) === REACT_PROVIDER_TYPE;
380
+ }
381
+ function isElement(object) {
382
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
383
+ }
384
+ function isForwardRef(object) {
385
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
386
+ }
387
+ function isFragment(object) {
388
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
389
+ }
390
+ function isLazy(object) {
391
+ return typeOf(object) === REACT_LAZY_TYPE;
392
+ }
393
+ function isMemo(object) {
394
+ return typeOf(object) === REACT_MEMO_TYPE;
395
+ }
396
+ function isPortal(object) {
397
+ return typeOf(object) === REACT_PORTAL_TYPE;
398
+ }
399
+ function isProfiler(object) {
400
+ return typeOf(object) === REACT_PROFILER_TYPE;
401
+ }
402
+ function isStrictMode(object) {
403
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
404
+ }
405
+ function isSuspense(object) {
406
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
407
+ }
408
+
409
+ exports.AsyncMode = AsyncMode;
410
+ exports.ConcurrentMode = ConcurrentMode;
411
+ exports.ContextConsumer = ContextConsumer;
412
+ exports.ContextProvider = ContextProvider;
413
+ exports.Element = Element;
414
+ exports.ForwardRef = ForwardRef;
415
+ exports.Fragment = Fragment;
416
+ exports.Lazy = Lazy;
417
+ exports.Memo = Memo;
418
+ exports.Portal = Portal;
419
+ exports.Profiler = Profiler;
420
+ exports.StrictMode = StrictMode;
421
+ exports.Suspense = Suspense;
422
+ exports.isAsyncMode = isAsyncMode;
423
+ exports.isConcurrentMode = isConcurrentMode;
424
+ exports.isContextConsumer = isContextConsumer;
425
+ exports.isContextProvider = isContextProvider;
426
+ exports.isElement = isElement;
427
+ exports.isForwardRef = isForwardRef;
428
+ exports.isFragment = isFragment;
429
+ exports.isLazy = isLazy;
430
+ exports.isMemo = isMemo;
431
+ exports.isPortal = isPortal;
432
+ exports.isProfiler = isProfiler;
433
+ exports.isStrictMode = isStrictMode;
434
+ exports.isSuspense = isSuspense;
435
+ exports.isValidElementType = isValidElementType;
436
+ exports.typeOf = typeOf;
437
+ })();
438
+ }
439
+ });
440
+ var reactIs_development_1 = reactIs_development.AsyncMode;
441
+ var reactIs_development_2 = reactIs_development.ConcurrentMode;
442
+ var reactIs_development_3 = reactIs_development.ContextConsumer;
443
+ var reactIs_development_4 = reactIs_development.ContextProvider;
444
+ var reactIs_development_5 = reactIs_development.Element;
445
+ var reactIs_development_6 = reactIs_development.ForwardRef;
446
+ var reactIs_development_7 = reactIs_development.Fragment;
447
+ var reactIs_development_8 = reactIs_development.Lazy;
448
+ var reactIs_development_9 = reactIs_development.Memo;
449
+ var reactIs_development_10 = reactIs_development.Portal;
450
+ var reactIs_development_11 = reactIs_development.Profiler;
451
+ var reactIs_development_12 = reactIs_development.StrictMode;
452
+ var reactIs_development_13 = reactIs_development.Suspense;
453
+ var reactIs_development_14 = reactIs_development.isAsyncMode;
454
+ var reactIs_development_15 = reactIs_development.isConcurrentMode;
455
+ var reactIs_development_16 = reactIs_development.isContextConsumer;
456
+ var reactIs_development_17 = reactIs_development.isContextProvider;
457
+ var reactIs_development_18 = reactIs_development.isElement;
458
+ var reactIs_development_19 = reactIs_development.isForwardRef;
459
+ var reactIs_development_20 = reactIs_development.isFragment;
460
+ var reactIs_development_21 = reactIs_development.isLazy;
461
+ var reactIs_development_22 = reactIs_development.isMemo;
462
+ var reactIs_development_23 = reactIs_development.isPortal;
463
+ var reactIs_development_24 = reactIs_development.isProfiler;
464
+ var reactIs_development_25 = reactIs_development.isStrictMode;
465
+ var reactIs_development_26 = reactIs_development.isSuspense;
466
+ var reactIs_development_27 = reactIs_development.isValidElementType;
467
+ var reactIs_development_28 = reactIs_development.typeOf;
468
+
469
+ var reactIs = createCommonjsModule(function (module) {
470
+
471
+ if (process.env.NODE_ENV === 'production') {
472
+ module.exports = reactIs_production_min;
473
+ } else {
474
+ module.exports = reactIs_development;
475
+ }
476
+ });
477
+ var reactIs_1 = reactIs.AsyncMode;
478
+ var reactIs_2 = reactIs.ConcurrentMode;
479
+ var reactIs_3 = reactIs.ContextConsumer;
480
+ var reactIs_4 = reactIs.ContextProvider;
481
+ var reactIs_5 = reactIs.Element;
482
+ var reactIs_6 = reactIs.ForwardRef;
483
+ var reactIs_7 = reactIs.Fragment;
484
+ var reactIs_8 = reactIs.Lazy;
485
+ var reactIs_9 = reactIs.Memo;
486
+ var reactIs_10 = reactIs.Portal;
487
+ var reactIs_11 = reactIs.Profiler;
488
+ var reactIs_12 = reactIs.StrictMode;
489
+ var reactIs_13 = reactIs.Suspense;
490
+ var reactIs_14 = reactIs.isAsyncMode;
491
+ var reactIs_15 = reactIs.isConcurrentMode;
492
+ var reactIs_16 = reactIs.isContextConsumer;
493
+ var reactIs_17 = reactIs.isContextProvider;
494
+ var reactIs_18 = reactIs.isElement;
495
+ var reactIs_19 = reactIs.isForwardRef;
496
+ var reactIs_20 = reactIs.isFragment;
497
+ var reactIs_21 = reactIs.isLazy;
498
+ var reactIs_22 = reactIs.isMemo;
499
+ var reactIs_23 = reactIs.isPortal;
500
+ var reactIs_24 = reactIs.isProfiler;
501
+ var reactIs_25 = reactIs.isStrictMode;
502
+ var reactIs_26 = reactIs.isSuspense;
503
+ var reactIs_27 = reactIs.isValidElementType;
504
+ var reactIs_28 = reactIs.typeOf;
505
+
506
+ function stylis_min (W) {
507
+ function M(d, c, e, h, a) {
508
+ for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
509
+ g = e.charCodeAt(l);
510
+ l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
511
+
512
+ if (0 === b + n + v + m) {
513
+ if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
514
+ switch (g) {
515
+ case 32:
516
+ case 9:
517
+ case 59:
518
+ case 13:
519
+ case 10:
520
+ break;
521
+
522
+ default:
523
+ f += e.charAt(l);
524
+ }
525
+
526
+ g = 59;
527
+ }
528
+
529
+ switch (g) {
530
+ case 123:
531
+ f = f.trim();
532
+ q = f.charCodeAt(0);
533
+ k = 1;
534
+
535
+ for (t = ++l; l < B;) {
536
+ switch (g = e.charCodeAt(l)) {
537
+ case 123:
538
+ k++;
539
+ break;
540
+
541
+ case 125:
542
+ k--;
543
+ break;
544
+
545
+ case 47:
546
+ switch (g = e.charCodeAt(l + 1)) {
547
+ case 42:
548
+ case 47:
549
+ a: {
550
+ for (u = l + 1; u < J; ++u) {
551
+ switch (e.charCodeAt(u)) {
552
+ case 47:
553
+ if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
554
+ l = u + 1;
555
+ break a;
556
+ }
557
+
558
+ break;
559
+
560
+ case 10:
561
+ if (47 === g) {
562
+ l = u + 1;
563
+ break a;
564
+ }
565
+
566
+ }
567
+ }
568
+
569
+ l = u;
570
+ }
571
+
572
+ }
573
+
574
+ break;
575
+
576
+ case 91:
577
+ g++;
578
+
579
+ case 40:
580
+ g++;
581
+
582
+ case 34:
583
+ case 39:
584
+ for (; l++ < J && e.charCodeAt(l) !== g;) {
585
+ }
586
+
587
+ }
588
+
589
+ if (0 === k) break;
590
+ l++;
591
+ }
592
+
593
+ k = e.substring(t, l);
594
+ 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
595
+
596
+ switch (q) {
597
+ case 64:
598
+ 0 < r && (f = f.replace(N, ''));
599
+ g = f.charCodeAt(1);
600
+
601
+ switch (g) {
602
+ case 100:
603
+ case 109:
604
+ case 115:
605
+ case 45:
606
+ r = c;
607
+ break;
608
+
609
+ default:
610
+ r = O;
611
+ }
612
+
613
+ k = M(c, r, k, g, a + 1);
614
+ t = k.length;
615
+ 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
616
+ if (0 < t) switch (g) {
617
+ case 115:
618
+ f = f.replace(da, ea);
619
+
620
+ case 100:
621
+ case 109:
622
+ case 45:
623
+ k = f + '{' + k + '}';
624
+ break;
625
+
626
+ case 107:
627
+ f = f.replace(fa, '$1 $2');
628
+ k = f + '{' + k + '}';
629
+ k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
630
+ break;
631
+
632
+ default:
633
+ k = f + k, 112 === h && (k = (p += k, ''));
634
+ } else k = '';
635
+ break;
636
+
637
+ default:
638
+ k = M(c, X(c, f, I), k, h, a + 1);
639
+ }
640
+
641
+ F += k;
642
+ k = I = r = u = q = 0;
643
+ f = '';
644
+ g = e.charCodeAt(++l);
645
+ break;
646
+
647
+ case 125:
648
+ case 59:
649
+ f = (0 < r ? f.replace(N, '') : f).trim();
650
+ if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
651
+ case 0:
652
+ break;
653
+
654
+ case 64:
655
+ if (105 === g || 99 === g) {
656
+ G += f + e.charAt(l);
657
+ break;
658
+ }
659
+
660
+ default:
661
+ 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
662
+ }
663
+ I = r = u = q = 0;
664
+ f = '';
665
+ g = e.charCodeAt(++l);
666
+ }
667
+ }
668
+
669
+ switch (g) {
670
+ case 13:
671
+ case 10:
672
+ 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
673
+ 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
674
+ z = 1;
675
+ D++;
676
+ break;
677
+
678
+ case 59:
679
+ case 125:
680
+ if (0 === b + n + v + m) {
681
+ z++;
682
+ break;
683
+ }
684
+
685
+ default:
686
+ z++;
687
+ y = e.charAt(l);
688
+
689
+ switch (g) {
690
+ case 9:
691
+ case 32:
692
+ if (0 === n + m + b) switch (x) {
693
+ case 44:
694
+ case 58:
695
+ case 9:
696
+ case 32:
697
+ y = '';
698
+ break;
699
+
700
+ default:
701
+ 32 !== g && (y = ' ');
702
+ }
703
+ break;
704
+
705
+ case 0:
706
+ y = '\\0';
707
+ break;
708
+
709
+ case 12:
710
+ y = '\\f';
711
+ break;
712
+
713
+ case 11:
714
+ y = '\\v';
715
+ break;
716
+
717
+ case 38:
718
+ 0 === n + b + m && (r = I = 1, y = '\f' + y);
719
+ break;
720
+
721
+ case 108:
722
+ if (0 === n + b + m + E && 0 < u) switch (l - u) {
723
+ case 2:
724
+ 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
725
+
726
+ case 8:
727
+ 111 === K && (E = K);
728
+ }
729
+ break;
730
+
731
+ case 58:
732
+ 0 === n + b + m && (u = l);
733
+ break;
734
+
735
+ case 44:
736
+ 0 === b + v + n + m && (r = 1, y += '\r');
737
+ break;
738
+
739
+ case 34:
740
+ case 39:
741
+ 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
742
+ break;
743
+
744
+ case 91:
745
+ 0 === n + b + v && m++;
746
+ break;
747
+
748
+ case 93:
749
+ 0 === n + b + v && m--;
750
+ break;
751
+
752
+ case 41:
753
+ 0 === n + b + m && v--;
754
+ break;
755
+
756
+ case 40:
757
+ if (0 === n + b + m) {
758
+ if (0 === q) switch (2 * x + 3 * K) {
759
+ case 533:
760
+ break;
761
+
762
+ default:
763
+ q = 1;
764
+ }
765
+ v++;
766
+ }
767
+
768
+ break;
769
+
770
+ case 64:
771
+ 0 === b + v + n + m + u + k && (k = 1);
772
+ break;
773
+
774
+ case 42:
775
+ case 47:
776
+ if (!(0 < n + m + v)) switch (b) {
777
+ case 0:
778
+ switch (2 * g + 3 * e.charCodeAt(l + 1)) {
779
+ case 235:
780
+ b = 47;
781
+ break;
782
+
783
+ case 220:
784
+ t = l, b = 42;
785
+ }
786
+
787
+ break;
788
+
789
+ case 42:
790
+ 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
791
+ }
792
+ }
793
+
794
+ 0 === b && (f += y);
795
+ }
796
+
797
+ K = x;
798
+ x = g;
799
+ l++;
800
+ }
801
+
802
+ t = p.length;
803
+
804
+ if (0 < t) {
805
+ r = c;
806
+ if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
807
+ p = r.join(',') + '{' + p + '}';
808
+
809
+ if (0 !== w * E) {
810
+ 2 !== w || L(p, 2) || (E = 0);
811
+
812
+ switch (E) {
813
+ case 111:
814
+ p = p.replace(ha, ':-moz-$1') + p;
815
+ break;
816
+
817
+ case 112:
818
+ p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
819
+ }
820
+
821
+ E = 0;
822
+ }
823
+ }
824
+
825
+ return G + p + F;
826
+ }
827
+
828
+ function X(d, c, e) {
829
+ var h = c.trim().split(ia);
830
+ c = h;
831
+ var a = h.length,
832
+ m = d.length;
833
+
834
+ switch (m) {
835
+ case 0:
836
+ case 1:
837
+ var b = 0;
838
+
839
+ for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
840
+ c[b] = Z(d, c[b], e).trim();
841
+ }
842
+
843
+ break;
844
+
845
+ default:
846
+ var v = b = 0;
847
+
848
+ for (c = []; b < a; ++b) {
849
+ for (var n = 0; n < m; ++n) {
850
+ c[v++] = Z(d[n] + ' ', h[b], e).trim();
851
+ }
852
+ }
853
+
854
+ }
855
+
856
+ return c;
857
+ }
858
+
859
+ function Z(d, c, e) {
860
+ var h = c.charCodeAt(0);
861
+ 33 > h && (h = (c = c.trim()).charCodeAt(0));
862
+
863
+ switch (h) {
864
+ case 38:
865
+ return c.replace(F, '$1' + d.trim());
866
+
867
+ case 58:
868
+ return d.trim() + c.replace(F, '$1' + d.trim());
869
+
870
+ default:
871
+ if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
872
+ }
873
+
874
+ return d + c;
875
+ }
876
+
877
+ function P(d, c, e, h) {
878
+ var a = d + ';',
879
+ m = 2 * c + 3 * e + 4 * h;
880
+
881
+ if (944 === m) {
882
+ d = a.indexOf(':', 9) + 1;
883
+ var b = a.substring(d, a.length - 1).trim();
884
+ b = a.substring(0, d).trim() + b + ';';
885
+ return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
886
+ }
887
+
888
+ if (0 === w || 2 === w && !L(a, 1)) return a;
889
+
890
+ switch (m) {
891
+ case 1015:
892
+ return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
893
+
894
+ case 951:
895
+ return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
896
+
897
+ case 963:
898
+ return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
899
+
900
+ case 1009:
901
+ if (100 !== a.charCodeAt(4)) break;
902
+
903
+ case 969:
904
+ case 942:
905
+ return '-webkit-' + a + a;
906
+
907
+ case 978:
908
+ return '-webkit-' + a + '-moz-' + a + a;
909
+
910
+ case 1019:
911
+ case 983:
912
+ return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
913
+
914
+ case 883:
915
+ if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
916
+ if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
917
+ break;
918
+
919
+ case 932:
920
+ if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
921
+ case 103:
922
+ return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
923
+
924
+ case 115:
925
+ return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
926
+
927
+ case 98:
928
+ return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
929
+ }
930
+ return '-webkit-' + a + '-ms-' + a + a;
931
+
932
+ case 964:
933
+ return '-webkit-' + a + '-ms-flex-' + a + a;
934
+
935
+ case 1023:
936
+ if (99 !== a.charCodeAt(8)) break;
937
+ b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
938
+ return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
939
+
940
+ case 1005:
941
+ return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
942
+
943
+ case 1e3:
944
+ b = a.substring(13).trim();
945
+ c = b.indexOf('-') + 1;
946
+
947
+ switch (b.charCodeAt(0) + b.charCodeAt(c)) {
948
+ case 226:
949
+ b = a.replace(G, 'tb');
950
+ break;
951
+
952
+ case 232:
953
+ b = a.replace(G, 'tb-rl');
954
+ break;
955
+
956
+ case 220:
957
+ b = a.replace(G, 'lr');
958
+ break;
959
+
960
+ default:
961
+ return a;
962
+ }
963
+
964
+ return '-webkit-' + a + '-ms-' + b + a;
965
+
966
+ case 1017:
967
+ if (-1 === a.indexOf('sticky', 9)) break;
968
+
969
+ case 975:
970
+ c = (a = d).length - 10;
971
+ b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
972
+
973
+ switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
974
+ case 203:
975
+ if (111 > b.charCodeAt(8)) break;
976
+
977
+ case 115:
978
+ a = a.replace(b, '-webkit-' + b) + ';' + a;
979
+ break;
980
+
981
+ case 207:
982
+ case 102:
983
+ a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
984
+ }
985
+
986
+ return a + ';';
987
+
988
+ case 938:
989
+ if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
990
+ case 105:
991
+ return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
992
+
993
+ case 115:
994
+ return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
995
+
996
+ default:
997
+ return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
998
+ }
999
+ break;
1000
+
1001
+ case 973:
1002
+ case 989:
1003
+ if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
1004
+
1005
+ case 931:
1006
+ case 953:
1007
+ if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
1008
+ break;
1009
+
1010
+ case 962:
1011
+ if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
1012
+ }
1013
+
1014
+ return a;
1015
+ }
1016
+
1017
+ function L(d, c) {
1018
+ var e = d.indexOf(1 === c ? ':' : '{'),
1019
+ h = d.substring(0, 3 !== c ? e : 10);
1020
+ e = d.substring(e + 1, d.length - 1);
1021
+ return R(2 !== c ? h : h.replace(na, '$1'), e, c);
1022
+ }
1023
+
1024
+ function ea(d, c) {
1025
+ var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
1026
+ return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
1027
+ }
1028
+
1029
+ function H(d, c, e, h, a, m, b, v, n, q) {
1030
+ for (var g = 0, x = c, w; g < A; ++g) {
1031
+ switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
1032
+ case void 0:
1033
+ case !1:
1034
+ case !0:
1035
+ case null:
1036
+ break;
1037
+
1038
+ default:
1039
+ x = w;
1040
+ }
1041
+ }
1042
+
1043
+ if (x !== c) return x;
1044
+ }
1045
+
1046
+ function T(d) {
1047
+ switch (d) {
1048
+ case void 0:
1049
+ case null:
1050
+ A = S.length = 0;
1051
+ break;
1052
+
1053
+ default:
1054
+ if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
1055
+ T(d[c]);
1056
+ } else Y = !!d | 0;
1057
+ }
1058
+
1059
+ return T;
1060
+ }
1061
+
1062
+ function U(d) {
1063
+ d = d.prefix;
1064
+ void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
1065
+ return U;
1066
+ }
1067
+
1068
+ function B(d, c) {
1069
+ var e = d;
1070
+ 33 > e.charCodeAt(0) && (e = e.trim());
1071
+ V = e;
1072
+ e = [V];
1073
+
1074
+ if (0 < A) {
1075
+ var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
1076
+ void 0 !== h && 'string' === typeof h && (c = h);
1077
+ }
1078
+
1079
+ var a = M(O, e, c, 0, 0);
1080
+ 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
1081
+ V = '';
1082
+ E = 0;
1083
+ z = D = 1;
1084
+ return a;
1085
+ }
1086
+
1087
+ var ca = /^\0+/g,
1088
+ N = /[\0\r\f]/g,
1089
+ aa = /: */g,
1090
+ ka = /zoo|gra/,
1091
+ ma = /([,: ])(transform)/g,
1092
+ ia = /,\r+?/g,
1093
+ F = /([\t\r\n ])*\f?&/g,
1094
+ fa = /@(k\w+)\s*(\S*)\s*/,
1095
+ Q = /::(place)/g,
1096
+ ha = /:(read-only)/g,
1097
+ G = /[svh]\w+-[tblr]{2}/,
1098
+ da = /\(\s*(.*)\s*\)/g,
1099
+ oa = /([\s\S]*?);/g,
1100
+ ba = /-self|flex-/g,
1101
+ na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
1102
+ la = /stretch|:\s*\w+\-(?:conte|avail)/,
1103
+ ja = /([^-])(image-set\()/,
1104
+ z = 1,
1105
+ D = 1,
1106
+ E = 0,
1107
+ w = 1,
1108
+ O = [],
1109
+ S = [],
1110
+ A = 0,
1111
+ R = null,
1112
+ Y = 0,
1113
+ V = '';
1114
+ B.use = T;
1115
+ B.set = U;
1116
+ void 0 !== W && U(W);
1117
+ return B;
1118
+ }
1119
+
1120
+ var unitlessKeys = {
1121
+ animationIterationCount: 1,
1122
+ borderImageOutset: 1,
1123
+ borderImageSlice: 1,
1124
+ borderImageWidth: 1,
1125
+ boxFlex: 1,
1126
+ boxFlexGroup: 1,
1127
+ boxOrdinalGroup: 1,
1128
+ columnCount: 1,
1129
+ columns: 1,
1130
+ flex: 1,
1131
+ flexGrow: 1,
1132
+ flexPositive: 1,
1133
+ flexShrink: 1,
1134
+ flexNegative: 1,
1135
+ flexOrder: 1,
1136
+ gridRow: 1,
1137
+ gridRowEnd: 1,
1138
+ gridRowSpan: 1,
1139
+ gridRowStart: 1,
1140
+ gridColumn: 1,
1141
+ gridColumnEnd: 1,
1142
+ gridColumnSpan: 1,
1143
+ gridColumnStart: 1,
1144
+ msGridRow: 1,
1145
+ msGridRowSpan: 1,
1146
+ msGridColumn: 1,
1147
+ msGridColumnSpan: 1,
1148
+ fontWeight: 1,
1149
+ lineHeight: 1,
1150
+ opacity: 1,
1151
+ order: 1,
1152
+ orphans: 1,
1153
+ tabSize: 1,
1154
+ widows: 1,
1155
+ zIndex: 1,
1156
+ zoom: 1,
1157
+ WebkitLineClamp: 1,
1158
+ // SVG-related properties
1159
+ fillOpacity: 1,
1160
+ floodOpacity: 1,
1161
+ stopOpacity: 1,
1162
+ strokeDasharray: 1,
1163
+ strokeDashoffset: 1,
1164
+ strokeMiterlimit: 1,
1165
+ strokeOpacity: 1,
1166
+ strokeWidth: 1
1167
+ };
1168
+
1169
+ function memoize(fn) {
1170
+ var cache = {};
1171
+ return function (arg) {
1172
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1173
+ return cache[arg];
1174
+ };
1175
+ }
1176
+
1177
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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
1178
+
1179
+ var index = memoize(function (prop) {
1180
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
1181
+ /* o */
1182
+ && prop.charCodeAt(1) === 110
1183
+ /* n */
1184
+ && prop.charCodeAt(2) < 91;
1185
+ }
1186
+ /* Z+1 */
1187
+ );
1188
+
1189
+ /**
1190
+ * Copyright 2015, Yahoo! Inc.
1191
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
1192
+ */
1193
+ var REACT_STATICS = {
1194
+ childContextTypes: true,
1195
+ contextType: true,
1196
+ contextTypes: true,
1197
+ defaultProps: true,
1198
+ displayName: true,
1199
+ getDefaultProps: true,
1200
+ getDerivedStateFromError: true,
1201
+ getDerivedStateFromProps: true,
1202
+ mixins: true,
1203
+ propTypes: true,
1204
+ type: true
1205
+ };
1206
+ var KNOWN_STATICS = {
1207
+ name: true,
1208
+ length: true,
1209
+ prototype: true,
1210
+ caller: true,
1211
+ callee: true,
1212
+ arguments: true,
1213
+ arity: true
1214
+ };
1215
+ var FORWARD_REF_STATICS = {
1216
+ '$$typeof': true,
1217
+ render: true,
1218
+ defaultProps: true,
1219
+ displayName: true,
1220
+ propTypes: true
1221
+ };
1222
+ var MEMO_STATICS = {
1223
+ '$$typeof': true,
1224
+ compare: true,
1225
+ defaultProps: true,
1226
+ displayName: true,
1227
+ propTypes: true,
1228
+ type: true
1229
+ };
1230
+ var TYPE_STATICS = {};
1231
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1232
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1233
+
1234
+ function getStatics(component) {
1235
+ // React v16.11 and below
1236
+ if (reactIs.isMemo(component)) {
1237
+ return MEMO_STATICS;
1238
+ } // React v16.12 and above
1239
+
1240
+
1241
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
1242
+ }
1243
+
1244
+ var defineProperty = Object.defineProperty;
1245
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1246
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1247
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1248
+ var getPrototypeOf = Object.getPrototypeOf;
1249
+ var objectPrototype = Object.prototype;
1250
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1251
+ if (typeof sourceComponent !== 'string') {
1252
+ // don't hoist over string (html) components
1253
+ if (objectPrototype) {
1254
+ var inheritedComponent = getPrototypeOf(sourceComponent);
1255
+
1256
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
1257
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
1258
+ }
1259
+ }
1260
+
1261
+ var keys = getOwnPropertyNames(sourceComponent);
1262
+
1263
+ if (getOwnPropertySymbols) {
1264
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1265
+ }
1266
+
1267
+ var targetStatics = getStatics(targetComponent);
1268
+ var sourceStatics = getStatics(sourceComponent);
1269
+
1270
+ for (var i = 0; i < keys.length; ++i) {
1271
+ var key = keys[i];
1272
+
1273
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1274
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1275
+
1276
+ try {
1277
+ // Avoid failures from read-only properties
1278
+ defineProperty(targetComponent, key, descriptor);
1279
+ } catch (e) {}
1280
+ }
1281
+ }
1282
+ }
1283
+
1284
+ return targetComponent;
1285
+ }
1286
+
1287
+ var hoistNonReactStatics_cjs = hoistNonReactStatics;
1288
+
1289
+ function _extends$1() {
1290
+ _extends$1 = Object.assign || function (target) {
1291
+ for (var i = 1; i < arguments.length; i++) {
1292
+ var source = arguments[i];
1293
+
1294
+ for (var key in source) {
1295
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1296
+ target[key] = source[key];
1297
+ }
1298
+ }
1299
+ }
1300
+
1301
+ return target;
1302
+ };
1303
+
1304
+ return _extends$1.apply(this, arguments);
1305
+ }
1306
+
1307
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
1308
+ if (source == null) return {};
1309
+ var target = {};
1310
+ var sourceKeys = Object.keys(source);
1311
+ var key, i;
1312
+
1313
+ for (i = 0; i < sourceKeys.length; i++) {
1314
+ key = sourceKeys[i];
1315
+ if (excluded.indexOf(key) >= 0) continue;
1316
+ target[key] = source[key];
1317
+ }
1318
+
1319
+ return target;
1320
+ }
1321
+
1322
+ //
1323
+ var interleave = (function (strings, interpolations) {
1324
+ var result = [strings[0]];
1325
+
1326
+ for (var i = 0, len = interpolations.length; i < len; i += 1) {
1327
+ result.push(interpolations[i], strings[i + 1]);
1328
+ }
1329
+
1330
+ return result;
1331
+ });
1332
+
1333
+ //
1334
+ var isPlainObject = (function (x) {
1335
+ return x !== null && typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !reactIs_28(x);
1336
+ });
1337
+
1338
+ //
1339
+ var EMPTY_ARRAY = Object.freeze([]);
1340
+ var EMPTY_OBJECT = Object.freeze({});
1341
+
1342
+ //
1343
+ function isFunction(test) {
1344
+ return typeof test === 'function';
1345
+ }
1346
+
1347
+ //
1348
+ function getComponentName(target) {
1349
+ return (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) || // $FlowFixMe
1350
+ target.displayName || // $FlowFixMe
1351
+ target.name || 'Component';
1352
+ }
1353
+
1354
+ //
1355
+ function isStatelessFunction(test) {
1356
+ return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);
1357
+ }
1358
+
1359
+ //
1360
+ function isStyledComponent(target) {
1361
+ return target && typeof target.styledComponentId === 'string';
1362
+ }
1363
+
1364
+ //
1365
+ var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';
1366
+ var SC_ATTR_ACTIVE = 'active';
1367
+ var SC_ATTR_VERSION = 'data-styled-version';
1368
+ var SC_VERSION = "5.1.1";
1369
+ var SPLITTER = '/*!sc*/\n';
1370
+ var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
1371
+ var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production'; // Shared empty execution context when generating static styles
1372
+
1373
+ //
1374
+
1375
+ /* eslint-disable camelcase, no-undef */
1376
+ var getNonce = function getNonce() {
1377
+ return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;
1378
+ };
1379
+
1380
+ var errorMap = {
1381
+ "1": "Cannot create styled-component for component: %s.\n\n",
1382
+ "2": "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
1383
+ "3": "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
1384
+ "4": "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
1385
+ "5": "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
1386
+ "6": "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
1387
+ "7": "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
1388
+ "8": "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
1389
+ "9": "Missing document `<head>`\n\n",
1390
+ "10": "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
1391
+ "11": "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
1392
+ "12": "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
1393
+ "13": "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
1394
+ "14": "ThemeProvider: \"theme\" prop is required.\n\n",
1395
+ "15": "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
1396
+ "16": "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
1397
+ "17": "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
1398
+ };
1399
+
1400
+ //
1401
+ var ERRORS = process.env.NODE_ENV !== 'production' ? errorMap : {};
1402
+ /**
1403
+ * super basic version of sprintf
1404
+ */
1405
+
1406
+ function format() {
1407
+ var a = arguments.length <= 0 ? undefined : arguments[0];
1408
+ var b = [];
1409
+
1410
+ for (var c = 1, len = arguments.length; c < len; c += 1) {
1411
+ b.push(c < 0 || arguments.length <= c ? undefined : arguments[c]);
1412
+ }
1413
+
1414
+ b.forEach(function (d) {
1415
+ a = a.replace(/%[a-z]/, d);
1416
+ });
1417
+ return a;
1418
+ }
1419
+ /**
1420
+ * Create an error file out of errors.md for development and a simple web link to the full errors
1421
+ * in production mode.
1422
+ */
1423
+
1424
+
1425
+ function throwStyledComponentsError(code) {
1426
+ for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1427
+ interpolations[_key - 1] = arguments[_key];
1428
+ }
1429
+
1430
+ if (process.env.NODE_ENV === 'production') {
1431
+ throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#" + code + " for more information." + (interpolations.length > 0 ? " Additional arguments: " + interpolations.join(', ') : ''));
1432
+ } else {
1433
+ throw new Error(format.apply(void 0, [ERRORS[code]].concat(interpolations)).trim());
1434
+ }
1435
+ }
1436
+
1437
+ //
1438
+ var ELEMENT_TYPE = 1;
1439
+ /* Node.ELEMENT_TYPE */
1440
+
1441
+ /** Find last style element if any inside target */
1442
+
1443
+ var findLastStyleTag = function findLastStyleTag(target) {
1444
+ var childNodes = target.childNodes;
1445
+
1446
+ for (var i = childNodes.length; i >= 0; i--) {
1447
+ var child = childNodes[i];
1448
+
1449
+ if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) {
1450
+ return child;
1451
+ }
1452
+ }
1453
+
1454
+ return undefined;
1455
+ };
1456
+ /** Create a style element inside `target` or <head> after the last */
1457
+
1458
+
1459
+ var makeStyleTag = function makeStyleTag(target) {
1460
+ var head = document.head;
1461
+ var parent = target || head;
1462
+ var style = document.createElement('style');
1463
+ var prevStyle = findLastStyleTag(parent);
1464
+ var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null;
1465
+ style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE);
1466
+ style.setAttribute(SC_ATTR_VERSION, SC_VERSION);
1467
+ var nonce = getNonce();
1468
+ if (nonce) style.setAttribute('nonce', nonce);
1469
+ parent.insertBefore(style, nextSibling);
1470
+ return style;
1471
+ };
1472
+ /** Get the CSSStyleSheet instance for a given style element */
1473
+
1474
+ var getSheet = function getSheet(tag) {
1475
+ if (tag.sheet) {
1476
+ return tag.sheet;
1477
+ } // Avoid Firefox quirk where the style element might not have a sheet property
1478
+
1479
+
1480
+ var _document = document,
1481
+ styleSheets = _document.styleSheets;
1482
+
1483
+ for (var i = 0, l = styleSheets.length; i < l; i++) {
1484
+ var sheet = styleSheets[i];
1485
+
1486
+ if (sheet.ownerNode === tag) {
1487
+ return sheet;
1488
+ }
1489
+ }
1490
+
1491
+ throwStyledComponentsError(17);
1492
+ return undefined;
1493
+ };
1494
+
1495
+ //
1496
+ /** Create a CSSStyleSheet-like tag depending on the environment */
1497
+
1498
+ var makeTag = function makeTag(_ref) {
1499
+ var isServer = _ref.isServer,
1500
+ useCSSOMInjection = _ref.useCSSOMInjection,
1501
+ target = _ref.target;
1502
+
1503
+ if (isServer) {
1504
+ return new VirtualTag(target);
1505
+ } else if (useCSSOMInjection) {
1506
+ return new CSSOMTag(target);
1507
+ } else {
1508
+ return new TextTag(target);
1509
+ }
1510
+ };
1511
+ var CSSOMTag = /*#__PURE__*/function () {
1512
+ function CSSOMTag(target) {
1513
+ var element = this.element = makeStyleTag(target); // Avoid Edge bug where empty style elements don't create sheets
1514
+
1515
+ element.appendChild(document.createTextNode(''));
1516
+ this.sheet = getSheet(element);
1517
+ this.length = 0;
1518
+ }
1519
+
1520
+ var _proto = CSSOMTag.prototype;
1521
+
1522
+ _proto.insertRule = function insertRule(index, rule) {
1523
+ try {
1524
+ this.sheet.insertRule(rule, index);
1525
+ this.length++;
1526
+ return true;
1527
+ } catch (_error) {
1528
+ return false;
1529
+ }
1530
+ };
1531
+
1532
+ _proto.deleteRule = function deleteRule(index) {
1533
+ this.sheet.deleteRule(index);
1534
+ this.length--;
1535
+ };
1536
+
1537
+ _proto.getRule = function getRule(index) {
1538
+ var rule = this.sheet.cssRules[index]; // Avoid IE11 quirk where cssText is inaccessible on some invalid rules
1539
+
1540
+ if (rule !== undefined && typeof rule.cssText === 'string') {
1541
+ return rule.cssText;
1542
+ } else {
1543
+ return '';
1544
+ }
1545
+ };
1546
+
1547
+ return CSSOMTag;
1548
+ }();
1549
+ /** A Tag that emulates the CSSStyleSheet API but uses text nodes */
1550
+
1551
+ var TextTag = /*#__PURE__*/function () {
1552
+ function TextTag(target) {
1553
+ var element = this.element = makeStyleTag(target);
1554
+ this.nodes = element.childNodes;
1555
+ this.length = 0;
1556
+ }
1557
+
1558
+ var _proto2 = TextTag.prototype;
1559
+
1560
+ _proto2.insertRule = function insertRule(index, rule) {
1561
+ if (index <= this.length && index >= 0) {
1562
+ var node = document.createTextNode(rule);
1563
+ var refNode = this.nodes[index];
1564
+ this.element.insertBefore(node, refNode || null);
1565
+ this.length++;
1566
+ return true;
1567
+ } else {
1568
+ return false;
1569
+ }
1570
+ };
1571
+
1572
+ _proto2.deleteRule = function deleteRule(index) {
1573
+ this.element.removeChild(this.nodes[index]);
1574
+ this.length--;
1575
+ };
1576
+
1577
+ _proto2.getRule = function getRule(index) {
1578
+ if (index < this.length) {
1579
+ return this.nodes[index].textContent;
1580
+ } else {
1581
+ return '';
1582
+ }
1583
+ };
1584
+
1585
+ return TextTag;
1586
+ }();
1587
+ /** A completely virtual (server-side) Tag that doesn't manipulate the DOM */
1588
+
1589
+ var VirtualTag = /*#__PURE__*/function () {
1590
+ function VirtualTag(_target) {
1591
+ this.rules = [];
1592
+ this.length = 0;
1593
+ }
1594
+
1595
+ var _proto3 = VirtualTag.prototype;
1596
+
1597
+ _proto3.insertRule = function insertRule(index, rule) {
1598
+ if (index <= this.length) {
1599
+ this.rules.splice(index, 0, rule);
1600
+ this.length++;
1601
+ return true;
1602
+ } else {
1603
+ return false;
1604
+ }
1605
+ };
1606
+
1607
+ _proto3.deleteRule = function deleteRule(index) {
1608
+ this.rules.splice(index, 1);
1609
+ this.length--;
1610
+ };
1611
+
1612
+ _proto3.getRule = function getRule(index) {
1613
+ if (index < this.length) {
1614
+ return this.rules[index];
1615
+ } else {
1616
+ return '';
1617
+ }
1618
+ };
1619
+
1620
+ return VirtualTag;
1621
+ }();
1622
+
1623
+ //
1624
+ /** Create a GroupedTag with an underlying Tag implementation */
1625
+
1626
+ var makeGroupedTag = function makeGroupedTag(tag) {
1627
+ return new DefaultGroupedTag(tag);
1628
+ };
1629
+ var BASE_SIZE = 1 << 9;
1630
+
1631
+ var DefaultGroupedTag = /*#__PURE__*/function () {
1632
+ function DefaultGroupedTag(tag) {
1633
+ this.groupSizes = new Uint32Array(BASE_SIZE);
1634
+ this.length = BASE_SIZE;
1635
+ this.tag = tag;
1636
+ }
1637
+
1638
+ var _proto = DefaultGroupedTag.prototype;
1639
+
1640
+ _proto.indexOfGroup = function indexOfGroup(group) {
1641
+ var index = 0;
1642
+
1643
+ for (var i = 0; i < group; i++) {
1644
+ index += this.groupSizes[i];
1645
+ }
1646
+
1647
+ return index;
1648
+ };
1649
+
1650
+ _proto.insertRules = function insertRules(group, rules) {
1651
+ if (group >= this.groupSizes.length) {
1652
+ var oldBuffer = this.groupSizes;
1653
+ var oldSize = oldBuffer.length;
1654
+ var newSize = oldSize;
1655
+
1656
+ while (group >= newSize) {
1657
+ newSize <<= 1;
1658
+
1659
+ if (newSize < 0) {
1660
+ throwStyledComponentsError(16, "" + group);
1661
+ }
1662
+ }
1663
+
1664
+ this.groupSizes = new Uint32Array(newSize);
1665
+ this.groupSizes.set(oldBuffer);
1666
+ this.length = newSize;
1667
+
1668
+ for (var i = oldSize; i < newSize; i++) {
1669
+ this.groupSizes[i] = 0;
1670
+ }
1671
+ }
1672
+
1673
+ var ruleIndex = this.indexOfGroup(group + 1);
1674
+
1675
+ for (var _i = 0, l = rules.length; _i < l; _i++) {
1676
+ if (this.tag.insertRule(ruleIndex, rules[_i])) {
1677
+ this.groupSizes[group]++;
1678
+ ruleIndex++;
1679
+ }
1680
+ }
1681
+ };
1682
+
1683
+ _proto.clearGroup = function clearGroup(group) {
1684
+ if (group < this.length) {
1685
+ var length = this.groupSizes[group];
1686
+ var startIndex = this.indexOfGroup(group);
1687
+ var endIndex = startIndex + length;
1688
+ this.groupSizes[group] = 0;
1689
+
1690
+ for (var i = startIndex; i < endIndex; i++) {
1691
+ this.tag.deleteRule(startIndex);
1692
+ }
1693
+ }
1694
+ };
1695
+
1696
+ _proto.getGroup = function getGroup(group) {
1697
+ var css = '';
1698
+
1699
+ if (group >= this.length || this.groupSizes[group] === 0) {
1700
+ return css;
1701
+ }
1702
+
1703
+ var length = this.groupSizes[group];
1704
+ var startIndex = this.indexOfGroup(group);
1705
+ var endIndex = startIndex + length;
1706
+
1707
+ for (var i = startIndex; i < endIndex; i++) {
1708
+ css += "" + this.tag.getRule(i) + SPLITTER;
1709
+ }
1710
+
1711
+ return css;
1712
+ };
1713
+
1714
+ return DefaultGroupedTag;
1715
+ }();
1716
+
1717
+ //
1718
+ var MAX_SMI = 1 << 31 - 1;
1719
+ var groupIDRegister = new Map();
1720
+ var reverseRegister = new Map();
1721
+ var nextFreeGroup = 1;
1722
+ var getGroupForId = function getGroupForId(id) {
1723
+ if (groupIDRegister.has(id)) {
1724
+ return groupIDRegister.get(id);
1725
+ }
1726
+
1727
+ var group = nextFreeGroup++;
1728
+
1729
+ if (process.env.NODE_ENV !== 'production' && ((group | 0) < 0 || group > MAX_SMI)) {
1730
+ throwStyledComponentsError(16, "" + group);
1731
+ }
1732
+
1733
+ groupIDRegister.set(id, group);
1734
+ reverseRegister.set(group, id);
1735
+ return group;
1736
+ };
1737
+ var getIdForGroup = function getIdForGroup(group) {
1738
+ return reverseRegister.get(group);
1739
+ };
1740
+ var setGroupForId = function setGroupForId(id, group) {
1741
+ if (group >= nextFreeGroup) {
1742
+ nextFreeGroup = group + 1;
1743
+ }
1744
+
1745
+ groupIDRegister.set(id, group);
1746
+ reverseRegister.set(group, id);
1747
+ };
1748
+
1749
+ //
1750
+ var SELECTOR = "style[" + SC_ATTR + "][" + SC_ATTR_VERSION + "=\"" + SC_VERSION + "\"]";
1751
+ var MARKER_RE = new RegExp("^" + SC_ATTR + "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)");
1752
+ var outputSheet = function outputSheet(sheet) {
1753
+ var tag = sheet.getTag();
1754
+ var length = tag.length;
1755
+ var css = '';
1756
+
1757
+ for (var group = 0; group < length; group++) {
1758
+ var id = getIdForGroup(group);
1759
+ if (id === undefined) continue;
1760
+ var names = sheet.names.get(id);
1761
+ var rules = tag.getGroup(group);
1762
+ if (names === undefined || rules.length === 0) continue;
1763
+ var selector = SC_ATTR + ".g" + group + "[id=\"" + id + "\"]";
1764
+ var content = '';
1765
+
1766
+ if (names !== undefined) {
1767
+ names.forEach(function (name) {
1768
+ if (name.length > 0) {
1769
+ content += name + ",";
1770
+ }
1771
+ });
1772
+ } // NOTE: It's easier to collect rules and have the marker
1773
+ // after the actual rules to simplify the rehydration
1774
+
1775
+
1776
+ css += "" + rules + selector + "{content:\"" + content + "\"}" + SPLITTER;
1777
+ }
1778
+
1779
+ return css;
1780
+ };
1781
+
1782
+ var rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) {
1783
+ var names = content.split(',');
1784
+ var name;
1785
+
1786
+ for (var i = 0, l = names.length; i < l; i++) {
1787
+ // eslint-disable-next-line
1788
+ if (name = names[i]) {
1789
+ sheet.registerName(id, name);
1790
+ }
1791
+ }
1792
+ };
1793
+
1794
+ var rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) {
1795
+ var parts = style.innerHTML.split(SPLITTER);
1796
+ var rules = [];
1797
+
1798
+ for (var i = 0, l = parts.length; i < l; i++) {
1799
+ var part = parts[i].trim();
1800
+ if (!part) continue;
1801
+ var marker = part.match(MARKER_RE);
1802
+
1803
+ if (marker) {
1804
+ var group = parseInt(marker[1], 10) | 0;
1805
+ var id = marker[2];
1806
+
1807
+ if (group !== 0) {
1808
+ // Rehydrate componentId to group index mapping
1809
+ setGroupForId(id, group); // Rehydrate names and rules
1810
+ // looks like: data-styled.g11[id="idA"]{content:"nameA,"}
1811
+
1812
+ rehydrateNamesFromContent(sheet, id, marker[3]);
1813
+ sheet.getTag().insertRules(group, rules);
1814
+ }
1815
+
1816
+ rules.length = 0;
1817
+ } else {
1818
+ rules.push(part);
1819
+ }
1820
+ }
1821
+ };
1822
+
1823
+ var rehydrateSheet = function rehydrateSheet(sheet) {
1824
+ var nodes = document.querySelectorAll(SELECTOR);
1825
+
1826
+ for (var i = 0, l = nodes.length; i < l; i++) {
1827
+ var node = nodes[i];
1828
+
1829
+ if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) {
1830
+ rehydrateSheetFromTag(sheet, node);
1831
+
1832
+ if (node.parentNode) {
1833
+ node.parentNode.removeChild(node);
1834
+ }
1835
+ }
1836
+ }
1837
+ };
1838
+
1839
+ var SHOULD_REHYDRATE = IS_BROWSER;
1840
+ var defaultOptions = {
1841
+ isServer: !IS_BROWSER,
1842
+ useCSSOMInjection: !DISABLE_SPEEDY
1843
+ };
1844
+ /** Contains the main stylesheet logic for stringification and caching */
1845
+
1846
+ var StyleSheet = /*#__PURE__*/function () {
1847
+ /** Register a group ID to give it an index */
1848
+ StyleSheet.registerId = function registerId(id) {
1849
+ return getGroupForId(id);
1850
+ };
1851
+
1852
+ function StyleSheet(options, globalStyles, names) {
1853
+ if (options === void 0) {
1854
+ options = defaultOptions;
1855
+ }
1856
+
1857
+ if (globalStyles === void 0) {
1858
+ globalStyles = {};
1859
+ }
1860
+
1861
+ this.options = _extends$1({}, defaultOptions, {}, options);
1862
+ this.gs = globalStyles;
1863
+ this.names = new Map(names); // We rehydrate only once and use the sheet that is created first
1864
+
1865
+ if (!this.options.isServer && IS_BROWSER && SHOULD_REHYDRATE) {
1866
+ SHOULD_REHYDRATE = false;
1867
+ rehydrateSheet(this);
1868
+ }
1869
+ }
1870
+
1871
+ var _proto = StyleSheet.prototype;
1872
+
1873
+ _proto.reconstructWithOptions = function reconstructWithOptions(options) {
1874
+ return new StyleSheet(_extends$1({}, this.options, {}, options), this.gs, this.names);
1875
+ };
1876
+
1877
+ _proto.allocateGSInstance = function allocateGSInstance(id) {
1878
+ return this.gs[id] = (this.gs[id] || 0) + 1;
1879
+ }
1880
+ /** Lazily initialises a GroupedTag for when it's actually needed */
1881
+ ;
1882
+
1883
+ _proto.getTag = function getTag() {
1884
+ return this.tag || (this.tag = makeGroupedTag(makeTag(this.options)));
1885
+ }
1886
+ /** Check whether a name is known for caching */
1887
+ ;
1888
+
1889
+ _proto.hasNameForId = function hasNameForId(id, name) {
1890
+ return this.names.has(id) && this.names.get(id).has(name);
1891
+ }
1892
+ /** Mark a group's name as known for caching */
1893
+ ;
1894
+
1895
+ _proto.registerName = function registerName(id, name) {
1896
+ getGroupForId(id);
1897
+
1898
+ if (!this.names.has(id)) {
1899
+ var groupNames = new Set();
1900
+ groupNames.add(name);
1901
+ this.names.set(id, groupNames);
1902
+ } else {
1903
+ this.names.get(id).add(name);
1904
+ }
1905
+ }
1906
+ /** Insert new rules which also marks the name as known */
1907
+ ;
1908
+
1909
+ _proto.insertRules = function insertRules(id, name, rules) {
1910
+ this.registerName(id, name);
1911
+ this.getTag().insertRules(getGroupForId(id), rules);
1912
+ }
1913
+ /** Clears all cached names for a given group ID */
1914
+ ;
1915
+
1916
+ _proto.clearNames = function clearNames(id) {
1917
+ if (this.names.has(id)) {
1918
+ this.names.get(id).clear();
1919
+ }
1920
+ }
1921
+ /** Clears all rules for a given group ID */
1922
+ ;
1923
+
1924
+ _proto.clearRules = function clearRules(id) {
1925
+ this.getTag().clearGroup(getGroupForId(id));
1926
+ this.clearNames(id);
1927
+ }
1928
+ /** Clears the entire tag which deletes all rules but not its names */
1929
+ ;
1930
+
1931
+ _proto.clearTag = function clearTag() {
1932
+ // NOTE: This does not clear the names, since it's only used during SSR
1933
+ // so that we can continuously output only new rules
1934
+ this.tag = undefined;
1935
+ }
1936
+ /** Outputs the current sheet as a CSS string with markers for SSR */
1937
+ ;
1938
+
1939
+ _proto.toString = function toString() {
1940
+ return outputSheet(this);
1941
+ };
1942
+
1943
+ return StyleSheet;
1944
+ }();
1945
+
1946
+ //
1947
+
1948
+ /* eslint-disable */
1949
+ var SEED = 5381; // When we have separate strings it's useful to run a progressive
1950
+ // version of djb2 where we pretend that we're still looping over
1951
+ // the same string
1952
+
1953
+ var phash = function phash(h, x) {
1954
+ var i = x.length;
1955
+
1956
+ while (i) {
1957
+ h = h * 33 ^ x.charCodeAt(--i);
1958
+ }
1959
+
1960
+ return h;
1961
+ }; // This is a djb2 hashing function
1962
+
1963
+ var hash = function hash(x) {
1964
+ return phash(SEED, x);
1965
+ };
1966
+
1967
+ /**
1968
+ * MIT License
1969
+ *
1970
+ * Copyright (c) 2016 Sultan Tarimo
1971
+ *
1972
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
1973
+ * this software and associated documentation files (the "Software"),
1974
+ * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1975
+ * sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1976
+ *
1977
+ * The above copyright notice and this permission notice shall be included in all
1978
+ * copies or substantial portions of the Software.
1979
+ *
1980
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1981
+ * OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1982
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1983
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1984
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1985
+ * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1986
+ */
1987
+
1988
+ /* eslint-disable */
1989
+ function insertRulePlugin (insertRule) {
1990
+ var delimiter = '/*|*/';
1991
+ var needle = delimiter + "}";
1992
+
1993
+ function toSheet(block) {
1994
+ if (block) {
1995
+ try {
1996
+ insertRule(block + "}");
1997
+ } catch (e) {}
1998
+ }
1999
+ }
2000
+
2001
+ return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
2002
+ switch (context) {
2003
+ // property
2004
+ case 1:
2005
+ // @import
2006
+ if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ";"), '';
2007
+ break;
2008
+ // selector
2009
+
2010
+ case 2:
2011
+ if (ns === 0) return content + delimiter;
2012
+ break;
2013
+ // at-rule
2014
+
2015
+ case 3:
2016
+ switch (ns) {
2017
+ // @font-face, @page
2018
+ case 102:
2019
+ case 112:
2020
+ return insertRule(selectors[0] + content), '';
2021
+
2022
+ default:
2023
+ return content + (at === 0 ? delimiter : '');
2024
+ }
2025
+
2026
+ case -2:
2027
+ content.split(needle).forEach(toSheet);
2028
+ }
2029
+ };
2030
+ }
2031
+
2032
+ var COMMENT_REGEX = /^\s*\/\/.*$/gm;
2033
+ function createStylisInstance(_temp) {
2034
+ var _ref = _temp === void 0 ? EMPTY_OBJECT : _temp,
2035
+ _ref$options = _ref.options,
2036
+ options = _ref$options === void 0 ? EMPTY_OBJECT : _ref$options,
2037
+ _ref$plugins = _ref.plugins,
2038
+ plugins = _ref$plugins === void 0 ? EMPTY_ARRAY : _ref$plugins;
2039
+
2040
+ var stylis = new stylis_min(options); // Wrap `insertRulePlugin to build a list of rules,
2041
+ // and then make our own plugin to return the rules. This
2042
+ // makes it easier to hook into the existing SSR architecture
2043
+
2044
+ var parsingRules = []; // eslint-disable-next-line consistent-return
2045
+
2046
+ var returnRulesPlugin = function returnRulesPlugin(context) {
2047
+ if (context === -2) {
2048
+ var parsedRules = parsingRules;
2049
+ parsingRules = [];
2050
+ return parsedRules;
2051
+ }
2052
+ };
2053
+
2054
+ var parseRulesPlugin = insertRulePlugin(function (rule) {
2055
+ parsingRules.push(rule);
2056
+ });
2057
+
2058
+ var _componentId;
2059
+
2060
+ var _selector;
2061
+
2062
+ var _selectorRegexp;
2063
+
2064
+ var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) {
2065
+ if ( // the first self-ref is always untouched
2066
+ offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b)
2067
+ string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently
2068
+ string.slice(offset - _selector.length, offset) !== _selector) {
2069
+ return "." + _componentId;
2070
+ }
2071
+
2072
+ return match;
2073
+ };
2074
+ /**
2075
+ * When writing a style like
2076
+ *
2077
+ * & + & {
2078
+ * color: red;
2079
+ * }
2080
+ *
2081
+ * The second ampersand should be a reference to the static component class. stylis
2082
+ * has no knowledge of static class so we have to intelligently replace the base selector.
2083
+ *
2084
+ * https://github.com/thysultan/stylis.js#plugins <- more info about the context phase values
2085
+ * "2" means this plugin is taking effect at the very end after all other processing is complete
2086
+ */
2087
+
2088
+
2089
+ var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) {
2090
+ if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) {
2091
+ // eslint-disable-next-line no-param-reassign
2092
+ selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer);
2093
+ }
2094
+ };
2095
+
2096
+ stylis.use([].concat(plugins, [selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin]));
2097
+
2098
+ function stringifyRules(css, selector, prefix, componentId) {
2099
+ if (componentId === void 0) {
2100
+ componentId = '&';
2101
+ }
2102
+
2103
+ var flatCSS = css.replace(COMMENT_REGEX, '');
2104
+ var cssStr = selector && prefix ? prefix + " " + selector + " { " + flatCSS + " }" : flatCSS; // stylis has no concept of state to be passed to plugins
2105
+ // but since JS is single=threaded, we can rely on that to ensure
2106
+ // these properties stay in sync with the current stylis run
2107
+
2108
+ _componentId = componentId;
2109
+ _selector = selector;
2110
+ _selectorRegexp = new RegExp("\\" + _selector + "\\b", 'g');
2111
+ return stylis(prefix || !selector ? '' : selector, cssStr);
2112
+ }
2113
+
2114
+ stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) {
2115
+ if (!plugin.name) {
2116
+ throwStyledComponentsError(15);
2117
+ }
2118
+
2119
+ return phash(acc, plugin.name);
2120
+ }, SEED).toString() : '';
2121
+ return stringifyRules;
2122
+ }
2123
+
2124
+ //
2125
+ var StyleSheetContext = React.createContext();
2126
+ var StyleSheetConsumer = StyleSheetContext.Consumer;
2127
+ var StylisContext = React.createContext();
2128
+ var StylisConsumer = StylisContext.Consumer;
2129
+ var masterSheet = new StyleSheet();
2130
+ var masterStylis = createStylisInstance();
2131
+ function useStyleSheet() {
2132
+ return useContext(StyleSheetContext) || masterSheet;
2133
+ }
2134
+ function useStylis() {
2135
+ return useContext(StylisContext) || masterStylis;
2136
+ }
2137
+
2138
+ //
2139
+
2140
+ var Keyframes = /*#__PURE__*/function () {
2141
+ function Keyframes(name, stringifyArgs) {
2142
+ var _this = this;
2143
+
2144
+ this.inject = function (styleSheet) {
2145
+ if (!styleSheet.hasNameForId(_this.id, _this.name)) {
2146
+ styleSheet.insertRules(_this.id, _this.name, masterStylis.apply(void 0, _this.stringifyArgs));
2147
+ }
2148
+ };
2149
+
2150
+ this.toString = function () {
2151
+ return throwStyledComponentsError(12, String(_this.name));
2152
+ };
2153
+
2154
+ this.name = name;
2155
+ this.id = "sc-keyframes-" + name;
2156
+ this.stringifyArgs = stringifyArgs;
2157
+ }
2158
+
2159
+ var _proto = Keyframes.prototype;
2160
+
2161
+ _proto.getName = function getName() {
2162
+ return this.name;
2163
+ };
2164
+
2165
+ return Keyframes;
2166
+ }();
2167
+
2168
+ //
2169
+
2170
+ /**
2171
+ * inlined version of
2172
+ * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js
2173
+ */
2174
+ var uppercasePattern = /([A-Z])/g;
2175
+ var msPattern = /^ms-/;
2176
+ /**
2177
+ * Hyphenates a camelcased CSS property name, for example:
2178
+ *
2179
+ * > hyphenateStyleName('backgroundColor')
2180
+ * < "background-color"
2181
+ * > hyphenateStyleName('MozTransition')
2182
+ * < "-moz-transition"
2183
+ * > hyphenateStyleName('msTransition')
2184
+ * < "-ms-transition"
2185
+ *
2186
+ * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
2187
+ * is converted to `-ms-`.
2188
+ *
2189
+ * @param {string} string
2190
+ * @return {string}
2191
+ */
2192
+
2193
+ function hyphenateStyleName(string) {
2194
+ return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
2195
+ }
2196
+
2197
+ //
2198
+
2199
+ function addUnitIfNeeded(name, value) {
2200
+ // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133
2201
+ // $FlowFixMe
2202
+ if (value == null || typeof value === 'boolean' || value === '') {
2203
+ return '';
2204
+ }
2205
+
2206
+ if (typeof value === 'number' && value !== 0 && !(name in unitlessKeys)) {
2207
+ return value + "px"; // Presumes implicit 'px' suffix for unitless numbers
2208
+ }
2209
+
2210
+ return String(value).trim();
2211
+ }
2212
+
2213
+ //
2214
+ /**
2215
+ * It's falsish not falsy because 0 is allowed.
2216
+ */
2217
+
2218
+ var isFalsish = function isFalsish(chunk) {
2219
+ return chunk === undefined || chunk === null || chunk === false || chunk === '';
2220
+ };
2221
+
2222
+ var objToCssArray = function objToCssArray(obj, prevKey) {
2223
+ var rules = [];
2224
+ var keys = Object.keys(obj);
2225
+ keys.forEach(function (key) {
2226
+ if (!isFalsish(obj[key])) {
2227
+ if (isPlainObject(obj[key])) {
2228
+ rules.push.apply(rules, objToCssArray(obj[key], key));
2229
+ return rules;
2230
+ } else if (isFunction(obj[key])) {
2231
+ rules.push(hyphenateStyleName(key) + ":", obj[key], ';');
2232
+ return rules;
2233
+ }
2234
+
2235
+ rules.push(hyphenateStyleName(key) + ": " + addUnitIfNeeded(key, obj[key]) + ";");
2236
+ }
2237
+
2238
+ return rules;
2239
+ });
2240
+ return prevKey ? [prevKey + " {"].concat(rules, ['}']) : rules;
2241
+ };
2242
+ function flatten(chunk, executionContext, styleSheet) {
2243
+ if (Array.isArray(chunk)) {
2244
+ var ruleSet = [];
2245
+
2246
+ for (var i = 0, len = chunk.length, result; i < len; i += 1) {
2247
+ result = flatten(chunk[i], executionContext, styleSheet);
2248
+ if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result);
2249
+ }
2250
+
2251
+ return ruleSet;
2252
+ }
2253
+
2254
+ if (isFalsish(chunk)) {
2255
+ return '';
2256
+ }
2257
+ /* Handle other components */
2258
+
2259
+
2260
+ if (isStyledComponent(chunk)) {
2261
+ return "." + chunk.styledComponentId;
2262
+ }
2263
+ /* Either execute or defer the function */
2264
+
2265
+
2266
+ if (isFunction(chunk)) {
2267
+ if (isStatelessFunction(chunk) && executionContext) {
2268
+ var _result = chunk(executionContext);
2269
+
2270
+ if (process.env.NODE_ENV !== 'production' && reactIs_18(_result)) {
2271
+ // eslint-disable-next-line no-console
2272
+ console.warn(getComponentName(chunk) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.");
2273
+ }
2274
+
2275
+ return flatten(_result, executionContext, styleSheet);
2276
+ } else return chunk;
2277
+ }
2278
+
2279
+ if (chunk instanceof Keyframes) {
2280
+ if (styleSheet) {
2281
+ chunk.inject(styleSheet);
2282
+ return chunk.getName();
2283
+ } else return chunk;
2284
+ }
2285
+ /* Handle objects */
2286
+
2287
+
2288
+ return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();
2289
+ }
2290
+
2291
+ //
2292
+ function css(styles) {
2293
+ for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2294
+ interpolations[_key - 1] = arguments[_key];
2295
+ }
2296
+
2297
+ if (isFunction(styles) || isPlainObject(styles)) {
2298
+ // $FlowFixMe
2299
+ return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations)));
2300
+ }
2301
+
2302
+ if (interpolations.length === 0 && styles.length === 1 && typeof styles[0] === "string") {
2303
+ // $FlowFixMe
2304
+ return styles;
2305
+ } // $FlowFixMe
2306
+
2307
+
2308
+ return flatten(interleave(styles, interpolations));
2309
+ }
2310
+
2311
+ function constructWithOptions(componentConstructor, tag, options) {
2312
+ if (options === void 0) {
2313
+ options = EMPTY_OBJECT;
2314
+ }
2315
+
2316
+ if (!reactIs_27(tag)) {
2317
+ return throwStyledComponentsError(1, String(tag));
2318
+ }
2319
+ /* This is callable directly as a template function */
2320
+ // $FlowFixMe: Not typed to avoid destructuring arguments
2321
+
2322
+
2323
+ var templateFunction = function templateFunction() {
2324
+ return componentConstructor(tag, options, css.apply(void 0, arguments));
2325
+ };
2326
+ /* If config methods are called, wrap up a new template function and merge options */
2327
+
2328
+
2329
+ templateFunction.withConfig = function (config) {
2330
+ return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {}, config));
2331
+ };
2332
+ /* Modify/inject new props at runtime */
2333
+
2334
+
2335
+ templateFunction.attrs = function (attrs) {
2336
+ return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {
2337
+ attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean)
2338
+ }));
2339
+ };
2340
+
2341
+ return templateFunction;
2342
+ }
2343
+
2344
+ /* eslint-disable */
2345
+
2346
+ /**
2347
+ mixin-deep; https://github.com/jonschlinkert/mixin-deep
2348
+ Inlined such that it will be consistently transpiled to an IE-compatible syntax.
2349
+
2350
+ The MIT License (MIT)
2351
+
2352
+ Copyright (c) 2014-present, Jon Schlinkert.
2353
+
2354
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2355
+ of this software and associated documentation files (the "Software"), to deal
2356
+ in the Software without restriction, including without limitation the rights
2357
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2358
+ copies of the Software, and to permit persons to whom the Software is
2359
+ furnished to do so, subject to the following conditions:
2360
+
2361
+ The above copyright notice and this permission notice shall be included in
2362
+ all copies or substantial portions of the Software.
2363
+
2364
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2365
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2366
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2367
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2368
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2369
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2370
+ THE SOFTWARE.
2371
+ */
2372
+ var isObject = function isObject(val) {
2373
+ return typeof val === 'function' || typeof val === 'object' && val !== null && !Array.isArray(val);
2374
+ };
2375
+
2376
+ var isValidKey = function isValidKey(key) {
2377
+ return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
2378
+ };
2379
+
2380
+ function mixin(target, val, key) {
2381
+ var obj = target[key];
2382
+
2383
+ if (isObject(val) && isObject(obj)) {
2384
+ mixinDeep(obj, val);
2385
+ } else {
2386
+ target[key] = val;
2387
+ }
2388
+ }
2389
+
2390
+ function mixinDeep(target) {
2391
+ for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2392
+ rest[_key - 1] = arguments[_key];
2393
+ }
2394
+
2395
+ for (var _i = 0, _rest = rest; _i < _rest.length; _i++) {
2396
+ var obj = _rest[_i];
2397
+
2398
+ if (isObject(obj)) {
2399
+ for (var key in obj) {
2400
+ if (isValidKey(key)) {
2401
+ mixin(target, obj[key], key);
2402
+ }
2403
+ }
2404
+ }
2405
+ }
2406
+
2407
+ return target;
2408
+ }
2409
+
2410
+ //
2411
+
2412
+ /* eslint-disable no-bitwise */
2413
+ var AD_REPLACER_R = /(a)(d)/gi;
2414
+ /* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised
2415
+ * counterparts */
2416
+
2417
+ var charsLength = 52;
2418
+ /* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */
2419
+
2420
+ var getAlphabeticChar = function getAlphabeticChar(code) {
2421
+ return String.fromCharCode(code + (code > 25 ? 39 : 97));
2422
+ };
2423
+ /* input a number, usually a hash and convert it to base-52 */
2424
+
2425
+
2426
+ function generateAlphabeticName(code) {
2427
+ var name = '';
2428
+ var x;
2429
+ /* get a char and divide by alphabet-length */
2430
+
2431
+ for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) {
2432
+ name = getAlphabeticChar(x % charsLength) + name;
2433
+ }
2434
+
2435
+ return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');
2436
+ }
2437
+
2438
+ //
2439
+ function isStaticRules(rules) {
2440
+ for (var i = 0; i < rules.length; i += 1) {
2441
+ var rule = rules[i];
2442
+
2443
+ if (isFunction(rule) && !isStyledComponent(rule)) {
2444
+ // functions are allowed to be static if they're just being
2445
+ // used to get the classname of a nested styled component
2446
+ return false;
2447
+ }
2448
+ }
2449
+
2450
+ return true;
2451
+ }
2452
+
2453
+ //
2454
+ /*
2455
+ ComponentStyle is all the CSS-specific stuff, not
2456
+ the React-specific stuff.
2457
+ */
2458
+
2459
+ var ComponentStyle = /*#__PURE__*/function () {
2460
+ function ComponentStyle(rules, componentId) {
2461
+ this.rules = rules;
2462
+ this.staticRulesId = '';
2463
+ this.isStatic = process.env.NODE_ENV === 'production' && isStaticRules(rules);
2464
+ this.componentId = componentId;
2465
+ this.baseHash = hash(componentId); // NOTE: This registers the componentId, which ensures a consistent order
2466
+ // for this component's styles compared to others
2467
+
2468
+ StyleSheet.registerId(componentId);
2469
+ }
2470
+ /*
2471
+ * Flattens a rule set into valid CSS
2472
+ * Hashes it, wraps the whole chunk in a .hash1234 {}
2473
+ * Returns the hash to be injected on render()
2474
+ * */
2475
+
2476
+
2477
+ var _proto = ComponentStyle.prototype;
2478
+
2479
+ _proto.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet, stylis) {
2480
+ var componentId = this.componentId; // force dynamic classnames if user-supplied stylis plugins are in use
2481
+
2482
+ if (this.isStatic && !stylis.hash) {
2483
+ if (this.staticRulesId && styleSheet.hasNameForId(componentId, this.staticRulesId)) {
2484
+ return this.staticRulesId;
2485
+ }
2486
+
2487
+ var cssStatic = flatten(this.rules, executionContext, styleSheet).join('');
2488
+ var name = generateAlphabeticName(phash(this.baseHash, cssStatic.length) >>> 0);
2489
+
2490
+ if (!styleSheet.hasNameForId(componentId, name)) {
2491
+ var cssStaticFormatted = stylis(cssStatic, "." + name, undefined, componentId);
2492
+ styleSheet.insertRules(componentId, name, cssStaticFormatted);
2493
+ }
2494
+
2495
+ this.staticRulesId = name;
2496
+ return name;
2497
+ } else {
2498
+ var length = this.rules.length;
2499
+ var dynamicHash = phash(this.baseHash, stylis.hash);
2500
+ var css = '';
2501
+
2502
+ for (var i = 0; i < length; i++) {
2503
+ var partRule = this.rules[i];
2504
+
2505
+ if (typeof partRule === 'string') {
2506
+ css += partRule;
2507
+ if (process.env.NODE_ENV !== 'production') dynamicHash = phash(dynamicHash, partRule + i);
2508
+ } else {
2509
+ var partChunk = flatten(partRule, executionContext, styleSheet);
2510
+ var partString = Array.isArray(partChunk) ? partChunk.join('') : partChunk;
2511
+ dynamicHash = phash(dynamicHash, partString + i);
2512
+ css += partString;
2513
+ }
2514
+ }
2515
+
2516
+ var _name = generateAlphabeticName(dynamicHash >>> 0);
2517
+
2518
+ if (!styleSheet.hasNameForId(componentId, _name)) {
2519
+ var cssFormatted = stylis(css, "." + _name, undefined, componentId);
2520
+ styleSheet.insertRules(componentId, _name, cssFormatted);
2521
+ }
2522
+
2523
+ return _name;
2524
+ }
2525
+ };
2526
+
2527
+ return ComponentStyle;
2528
+ }();
2529
+
2530
+ //
2531
+ var LIMIT = 200;
2532
+ var createWarnTooManyClasses = (function (displayName, componentId) {
2533
+ var generatedClasses = {};
2534
+ var warningSeen = false;
2535
+ return function (className) {
2536
+ if (!warningSeen) {
2537
+ generatedClasses[className] = true;
2538
+
2539
+ if (Object.keys(generatedClasses).length >= LIMIT) {
2540
+ // Unable to find latestRule in test environment.
2541
+
2542
+ /* eslint-disable no-console, prefer-template */
2543
+ var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
2544
+ console.warn("Over " + LIMIT + " classes were generated for component " + displayName + parsedIdString + ".\n" + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' <Component />');
2545
+ warningSeen = true;
2546
+ generatedClasses = {};
2547
+ }
2548
+ }
2549
+ };
2550
+ });
2551
+
2552
+ //
2553
+ var invalidHookCallRe = /invalid hook call/i;
2554
+ var seen = new Set();
2555
+ var checkDynamicCreation = function checkDynamicCreation(displayName, componentId) {
2556
+ if (process.env.NODE_ENV !== 'production') {
2557
+ var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
2558
+ var message = "The component " + displayName + parsedIdString + " has been created dynamically.\n" + 'You may see this warning because you\'ve called styled inside another component.\n' + 'To resolve this only create new StyledComponents outside of any render method and function component.';
2559
+
2560
+ try {
2561
+ // We purposefully call `useRef` outside of a component and expect it to throw
2562
+ // If it doesn't, then we're inside another component.
2563
+ // eslint-disable-next-line react-hooks/rules-of-hooks
2564
+ useRef();
2565
+
2566
+ if (!seen.has(message)) {
2567
+ // eslint-disable-next-line no-console
2568
+ console.warn(message);
2569
+ seen.add(message);
2570
+ }
2571
+ } catch (error) {
2572
+ // The error here is expected, since we're expecting anything that uses `checkDynamicCreation` to
2573
+ // be called outside of a React component.
2574
+ if (invalidHookCallRe.test(error.message)) {
2575
+ // This shouldn't happen, but resets `warningSeen` if we had this error happen intermittently
2576
+ seen["delete"](message);
2577
+ }
2578
+ }
2579
+ }
2580
+ };
2581
+
2582
+ //
2583
+ var determineTheme = (function (props, providedTheme, defaultProps) {
2584
+ if (defaultProps === void 0) {
2585
+ defaultProps = EMPTY_OBJECT;
2586
+ }
2587
+
2588
+ return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme;
2589
+ });
2590
+
2591
+ //
2592
+ // Source: https://www.w3.org/TR/cssom-1/#serialize-an-identifier
2593
+ // Control characters and non-letter first symbols are not supported
2594
+ var escapeRegex = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
2595
+ var dashesAtEnds = /(^-|-$)/g;
2596
+ /**
2597
+ * TODO: Explore using CSS.escape when it becomes more available
2598
+ * in evergreen browsers.
2599
+ */
2600
+
2601
+ function escape(str) {
2602
+ return str // Replace all possible CSS selectors
2603
+ .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end
2604
+ .replace(dashesAtEnds, '');
2605
+ }
2606
+
2607
+ //
2608
+ function isTag(target) {
2609
+ return typeof target === 'string' && (process.env.NODE_ENV !== 'production' ? target.charAt(0) === target.charAt(0).toLowerCase() : true);
2610
+ }
2611
+
2612
+ //
2613
+ function generateDisplayName(target) {
2614
+ // $FlowFixMe
2615
+ return isTag(target) ? "styled." + target : "Styled(" + getComponentName(target) + ")";
2616
+ }
2617
+
2618
+ //
2619
+ var generateComponentId = (function (str) {
2620
+ return generateAlphabeticName(hash(str) >>> 0);
2621
+ });
2622
+
2623
+ /**
2624
+ * Convenience function for joining strings to form className chains
2625
+ */
2626
+ function joinStrings(a, b) {
2627
+ return a && b ? a + " " + b : a || b;
2628
+ }
2629
+
2630
+ var ThemeContext = React.createContext();
2631
+ var ThemeConsumer = ThemeContext.Consumer;
2632
+
2633
+ function mergeTheme(theme, outerTheme) {
2634
+ if (!theme) {
2635
+ return throwStyledComponentsError(14);
2636
+ }
2637
+
2638
+ if (isFunction(theme)) {
2639
+ var mergedTheme = theme(outerTheme);
2640
+
2641
+ if (process.env.NODE_ENV !== 'production' && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) {
2642
+ return throwStyledComponentsError(7);
2643
+ }
2644
+
2645
+ return mergedTheme;
2646
+ }
2647
+
2648
+ if (Array.isArray(theme) || typeof theme !== 'object') {
2649
+ return throwStyledComponentsError(8);
2650
+ }
2651
+
2652
+ return outerTheme ? _extends$1({}, outerTheme, {}, theme) : theme;
2653
+ }
2654
+ /**
2655
+ * Provide a theme to an entire react component tree via context
2656
+ */
2657
+
2658
+
2659
+ function ThemeProvider(props) {
2660
+ var outerTheme = useContext(ThemeContext);
2661
+ var themeContext = useMemo(function () {
2662
+ return mergeTheme(props.theme, outerTheme);
2663
+ }, [props.theme, outerTheme]);
2664
+
2665
+ if (!props.children) {
2666
+ return null;
2667
+ }
2668
+
2669
+ return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
2670
+ value: themeContext
2671
+ }, props.children);
2672
+ }
2673
+
2674
+ /* global $Call */
2675
+
2676
+ var identifiers = {};
2677
+ /* We depend on components having unique IDs */
2678
+
2679
+ function generateId(displayName, parentComponentId) {
2680
+ var name = typeof displayName !== 'string' ? 'sc' : escape(displayName); // Ensure that no displayName can lead to duplicate componentIds
2681
+
2682
+ identifiers[name] = (identifiers[name] || 0) + 1;
2683
+ var componentId = name + "-" + generateComponentId(name + identifiers[name]);
2684
+ return parentComponentId ? parentComponentId + "-" + componentId : componentId;
2685
+ }
2686
+
2687
+ function useResolvedAttrs(theme, props, attrs) {
2688
+ if (theme === void 0) {
2689
+ theme = EMPTY_OBJECT;
2690
+ }
2691
+
2692
+ // NOTE: can't memoize this
2693
+ // returns [context, resolvedAttrs]
2694
+ // where resolvedAttrs is only the things injected by the attrs themselves
2695
+ var context = _extends$1({}, props, {
2696
+ theme: theme
2697
+ });
2698
+
2699
+ var resolvedAttrs = {};
2700
+ attrs.forEach(function (attrDef) {
2701
+ var resolvedAttrDef = attrDef;
2702
+ var key;
2703
+
2704
+ if (isFunction(resolvedAttrDef)) {
2705
+ resolvedAttrDef = resolvedAttrDef(context);
2706
+ }
2707
+ /* eslint-disable guard-for-in */
2708
+
2709
+
2710
+ for (key in resolvedAttrDef) {
2711
+ context[key] = resolvedAttrs[key] = key === 'className' ? joinStrings(resolvedAttrs[key], resolvedAttrDef[key]) : resolvedAttrDef[key];
2712
+ }
2713
+ /* eslint-enable guard-for-in */
2714
+
2715
+ });
2716
+ return [context, resolvedAttrs];
2717
+ }
2718
+
2719
+ function useInjectedStyle(componentStyle, hasAttrs, resolvedAttrs, warnTooManyClasses) {
2720
+ var styleSheet = useStyleSheet();
2721
+ var stylis = useStylis(); // statically styled-components don't need to build an execution context object,
2722
+ // and shouldn't be increasing the number of class names
2723
+
2724
+ var isStatic = componentStyle.isStatic && !hasAttrs;
2725
+ var className = isStatic ? componentStyle.generateAndInjectStyles(EMPTY_OBJECT, styleSheet, stylis) : componentStyle.generateAndInjectStyles(resolvedAttrs, styleSheet, stylis);
2726
+ useDebugValue(className);
2727
+
2728
+ if (process.env.NODE_ENV !== 'production' && !isStatic && warnTooManyClasses) {
2729
+ warnTooManyClasses(className);
2730
+ }
2731
+
2732
+ return className;
2733
+ }
2734
+
2735
+ function useStyledComponentImpl(forwardedComponent, props, forwardedRef) {
2736
+ var componentAttrs = forwardedComponent.attrs,
2737
+ componentStyle = forwardedComponent.componentStyle,
2738
+ defaultProps = forwardedComponent.defaultProps,
2739
+ foldedComponentIds = forwardedComponent.foldedComponentIds,
2740
+ shouldForwardProp = forwardedComponent.shouldForwardProp,
2741
+ styledComponentId = forwardedComponent.styledComponentId,
2742
+ target = forwardedComponent.target;
2743
+ useDebugValue(styledComponentId); // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic,
2744
+ // but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it
2745
+ // should be an immutable value, but behave for now.
2746
+
2747
+ var theme = determineTheme(props, useContext(ThemeContext), defaultProps);
2748
+
2749
+ var _useResolvedAttrs = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs),
2750
+ context = _useResolvedAttrs[0],
2751
+ attrs = _useResolvedAttrs[1];
2752
+
2753
+ var generatedClassName = useInjectedStyle(componentStyle, componentAttrs.length > 0, context, process.env.NODE_ENV !== 'production' ? forwardedComponent.warnTooManyClasses : undefined);
2754
+ var refToForward = forwardedRef;
2755
+ var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target;
2756
+ var isTargetTag = isTag(elementToBeCreated);
2757
+ var computedProps = attrs !== props ? _extends$1({}, props, {}, attrs) : props;
2758
+ var propFilterFn = shouldForwardProp || isTargetTag && index;
2759
+ var propsForElement = {}; // eslint-disable-next-line guard-for-in
2760
+
2761
+ for (var key in computedProps) {
2762
+ if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') {
2763
+ propsForElement.as = computedProps[key];
2764
+ } else if (!propFilterFn || propFilterFn(key, index)) {
2765
+ // Don't pass through non HTML tags through to HTML elements
2766
+ propsForElement[key] = computedProps[key];
2767
+ }
2768
+ }
2769
+
2770
+ if (props.style && attrs.style !== props.style) {
2771
+ propsForElement.style = _extends$1({}, props.style, {}, attrs.style);
2772
+ }
2773
+
2774
+ propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, props.className, attrs.className).filter(Boolean).join(' ');
2775
+ propsForElement.ref = refToForward;
2776
+ return createElement(elementToBeCreated, propsForElement);
2777
+ }
2778
+
2779
+ function createStyledComponent(target, options, rules) {
2780
+ var isTargetStyledComp = isStyledComponent(target);
2781
+ var isCompositeComponent = !isTag(target);
2782
+ var _options$displayName = options.displayName,
2783
+ displayName = _options$displayName === void 0 ? generateDisplayName(target) : _options$displayName,
2784
+ _options$componentId = options.componentId,
2785
+ componentId = _options$componentId === void 0 ? generateId(options.displayName, options.parentComponentId) : _options$componentId,
2786
+ _options$attrs = options.attrs,
2787
+ attrs = _options$attrs === void 0 ? EMPTY_ARRAY : _options$attrs;
2788
+ var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + "-" + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend)
2789
+
2790
+ var finalAttrs = // $FlowFixMe
2791
+ isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; // eslint-disable-next-line prefer-destructuring
2792
+
2793
+ var shouldForwardProp = options.shouldForwardProp; // $FlowFixMe
2794
+
2795
+ if (isTargetStyledComp && target.shouldForwardProp) {
2796
+ if (shouldForwardProp) {
2797
+ // compose nested shouldForwardProp calls
2798
+ shouldForwardProp = function shouldForwardProp(prop, filterFn) {
2799
+ return (// $FlowFixMe
2800
+ target.shouldForwardProp(prop, filterFn) && options.shouldForwardProp(prop, filterFn)
2801
+ );
2802
+ };
2803
+ } else {
2804
+ // eslint-disable-next-line prefer-destructuring
2805
+ shouldForwardProp = target.shouldForwardProp;
2806
+ }
2807
+ }
2808
+
2809
+ var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend)
2810
+ // $FlowFixMe
2811
+ target.componentStyle.rules.concat(rules) : rules, styledComponentId);
2812
+ /**
2813
+ * forwardRef creates a new interim component, which we'll take advantage of
2814
+ * instead of extending ParentComponent to create _another_ interim class
2815
+ */
2816
+
2817
+ var WrappedStyledComponent; // eslint-disable-next-line react-hooks/rules-of-hooks
2818
+
2819
+ var forwardRef = function forwardRef(props, ref) {
2820
+ return useStyledComponentImpl(WrappedStyledComponent, props, ref);
2821
+ };
2822
+
2823
+ forwardRef.displayName = displayName; // $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties
2824
+
2825
+ WrappedStyledComponent = React.forwardRef(forwardRef);
2826
+ WrappedStyledComponent.attrs = finalAttrs;
2827
+ WrappedStyledComponent.componentStyle = componentStyle;
2828
+ WrappedStyledComponent.displayName = displayName;
2829
+ WrappedStyledComponent.shouldForwardProp = shouldForwardProp; // this static is used to preserve the cascade of static classes for component selector
2830
+ // purposes; this is especially important with usage of the css prop
2831
+
2832
+ WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe
2833
+ Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY;
2834
+ WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles
2835
+
2836
+ WrappedStyledComponent.target = isTargetStyledComp ? // $FlowFixMe
2837
+ target.target : target; // $FlowFixMe
2838
+
2839
+ WrappedStyledComponent.withComponent = function withComponent(tag) {
2840
+ var previousComponentId = options.componentId,
2841
+ optionsToCopy = _objectWithoutPropertiesLoose$1(options, ["componentId"]);
2842
+
2843
+ var newComponentId = previousComponentId && previousComponentId + "-" + (isTag(tag) ? tag : escape(getComponentName(tag)));
2844
+
2845
+ var newOptions = _extends$1({}, optionsToCopy, {
2846
+ attrs: finalAttrs,
2847
+ componentId: newComponentId
2848
+ });
2849
+
2850
+ return createStyledComponent(tag, newOptions, rules);
2851
+ }; // $FlowFixMe
2852
+
2853
+
2854
+ Object.defineProperty(WrappedStyledComponent, 'defaultProps', {
2855
+ get: function get() {
2856
+ return this._foldedDefaultProps;
2857
+ },
2858
+ set: function set(obj) {
2859
+ // $FlowFixMe
2860
+ this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, target.defaultProps, obj) : obj;
2861
+ }
2862
+ });
2863
+
2864
+ if (process.env.NODE_ENV !== 'production') {
2865
+ checkDynamicCreation(displayName, styledComponentId);
2866
+ WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName, styledComponentId);
2867
+ } // $FlowFixMe
2868
+
2869
+
2870
+ WrappedStyledComponent.toString = function () {
2871
+ return "." + WrappedStyledComponent.styledComponentId;
2872
+ };
2873
+
2874
+ if (isCompositeComponent) {
2875
+ hoistNonReactStatics_cjs(WrappedStyledComponent, target, {
2876
+ // all SC-specific things should not be hoisted
2877
+ attrs: true,
2878
+ componentStyle: true,
2879
+ displayName: true,
2880
+ foldedComponentIds: true,
2881
+ shouldForwardProp: true,
2882
+ self: true,
2883
+ styledComponentId: true,
2884
+ target: true,
2885
+ withComponent: true
2886
+ });
2887
+ }
2888
+
2889
+ return WrappedStyledComponent;
2890
+ }
2891
+
2892
+ //
2893
+ // Thanks to ReactDOMFactories for this handy list!
2894
+ var domElements = ['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', // SVG
2895
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2896
+
2897
+ //
2898
+
2899
+ var styled = function styled(tag) {
2900
+ return constructWithOptions(createStyledComponent, tag);
2901
+ }; // Shorthands for all valid HTML Elements
2902
+
2903
+
2904
+ domElements.forEach(function (domElement) {
2905
+ styled[domElement] = styled(domElement);
2906
+ });
2907
+ /* Warning if you've imported this file on React Native */
2908
+
2909
+ if (process.env.NODE_ENV !== 'production' && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
2910
+ // eslint-disable-next-line no-console
2911
+ console.warn("It looks like you've imported 'styled-components' on React Native.\n" + "Perhaps you're looking to import 'styled-components/native'?\n" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native');
2912
+ }
2913
+ /* Warning if there are several instances of styled-components */
2914
+
2915
+
2916
+ if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
2917
+ window['__styled-components-init__'] = window['__styled-components-init__'] || 0;
2918
+
2919
+ if (window['__styled-components-init__'] === 1) {
2920
+ // eslint-disable-next-line no-console
2921
+ console.warn("It looks like there are several instances of 'styled-components' initialized in this application. " + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process, ' + 'missing theme prop, and makes your application bigger without a good reason.\n\n' + 'See https://s-c.sh/2BAXzed for more info.');
2922
+ }
2923
+
2924
+ window['__styled-components-init__'] += 1;
2925
+ }
2926
+
217
2927
  /*! *****************************************************************************
218
2928
  Copyright (c) Microsoft Corporation.
219
2929
 
@@ -699,17 +3409,17 @@ var FLOAT_32_SUPPORTED = typeof Float32Array !== 'undefined';
699
3409
  var a = function (a1, a2) {
700
3410
  return 1.0 - 3.0 * a2 + 3.0 * a1;
701
3411
  };
702
- var b = function (a1, a2) {
3412
+ var b$1 = function (a1, a2) {
703
3413
  return 3.0 * a2 - 6.0 * a1;
704
3414
  };
705
- var c = function (a1) {
3415
+ var c$1 = function (a1) {
706
3416
  return 3.0 * a1;
707
3417
  };
708
3418
  var getSlope = function (t, a1, a2) {
709
- return 3.0 * a(a1, a2) * t * t + 2.0 * b(a1, a2) * t + c(a1);
3419
+ return 3.0 * a(a1, a2) * t * t + 2.0 * b$1(a1, a2) * t + c$1(a1);
710
3420
  };
711
3421
  var calcBezier = function (t, a1, a2) {
712
- return ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;
3422
+ return ((a(a1, a2) * t + b$1(a1, a2)) * t + c$1(a1)) * t;
713
3423
  };
714
3424
  function cubicBezier(mX1, mY1, mX2, mY2) {
715
3425
  var sampleValues = FLOAT_32_SUPPORTED ? new Float32Array(K_SPLINE_TABLE_SIZE) : new Array(K_SPLINE_TABLE_SIZE);
@@ -1720,7 +4430,7 @@ var createDOMStyler = function (node, props) {
1720
4430
  var getStyler = function (node, props) {
1721
4431
  return cache.has(node) ? cache.get(node) : createDOMStyler(node, props);
1722
4432
  };
1723
- function index(nodeOrSelector, props) {
4433
+ function index$1(nodeOrSelector, props) {
1724
4434
  var node = typeof nodeOrSelector === 'string' ? document.querySelector(nodeOrSelector) : nodeOrSelector;
1725
4435
  return getStyler(node, props);
1726
4436
  }
@@ -2782,7 +5492,7 @@ var pointer = function (props) {
2782
5492
  return touches;
2783
5493
  }, getFirstTouch) : mouse(props);
2784
5494
  };
2785
- var index$1 = function (_a) {
5495
+ var index$1$1 = function (_a) {
2786
5496
  if (_a === void 0) {
2787
5497
  _a = {};
2788
5498
  }
@@ -3413,7 +6123,7 @@ var interpolate$1 = transformers.interpolate;
3413
6123
  var singleAxisPointer = function (axis) {
3414
6124
  return function (from) {
3415
6125
  var _a;
3416
- return index$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
6126
+ return index$1$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
3417
6127
  return v[axis];
3418
6128
  });
3419
6129
  };
@@ -4041,7 +6751,7 @@ var createPoseConfig = function (element, _a) {
4041
6751
  hoverable: hoverable,
4042
6752
  focusable: focusable,
4043
6753
  pressable: pressable,
4044
- element: element, elementStyler: index(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
6754
+ element: element, elementStyler: index$1(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
4045
6755
  if (draggable) {
4046
6756
  var _b = dragPoses(draggable),
4047
6757
  drag = _b.drag,
@@ -4111,7 +6821,7 @@ var domPose$1 = function (element, config) {
4111
6821
  return domPose(createPoseConfig(element, config));
4112
6822
  };
4113
6823
 
4114
- function memoize(fn) {
6824
+ function memoize$1(fn) {
4115
6825
  var cache = {};
4116
6826
  return function (arg) {
4117
6827
  if (cache[arg] === undefined) cache[arg] = fn(arg);
@@ -4119,10 +6829,10 @@ function memoize(fn) {
4119
6829
  };
4120
6830
  }
4121
6831
 
4122
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|default|defer|dir|disabled|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|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
6832
+ var reactPropsRegex$1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|default|defer|dir|disabled|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|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
4123
6833
 
4124
- var index$2 = memoize(function (prop) {
4125
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
6834
+ var index$2 = memoize$1(function (prop) {
6835
+ return reactPropsRegex$1.test(prop) || prop.charCodeAt(0) === 111
4126
6836
  /* o */
4127
6837
  && prop.charCodeAt(1) === 110
4128
6838
  /* n */
@@ -5024,12 +7734,6 @@ var TextSpan = styled.span.withConfig({
5024
7734
  return extraStyles;
5025
7735
  });
5026
7736
 
5027
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5028
-
5029
- function createCommonjsModule(fn, module) {
5030
- return module = { exports: {} }, fn(module, module.exports), module.exports;
5031
- }
5032
-
5033
7737
  var numeral = createCommonjsModule(function (module) {
5034
7738
  /*! @preserve
5035
7739
  * numeral.js
@@ -6070,7 +8774,7 @@ var safeChildren = function safeChildren(children) {
6070
8774
 
6071
8775
  if (children && children instanceof Array) {
6072
8776
  return children.map(function (child) {
6073
- return unsafeValues.includes(child) ? /*#__PURE__*/React.createElement(Fragment, {
8777
+ return unsafeValues.includes(child) ? /*#__PURE__*/React.createElement(Fragment$1, {
6074
8778
  key: createUniqueId()
6075
8779
  }, replacement) : child;
6076
8780
  });
@@ -6372,7 +9076,7 @@ var Box = function Box(_ref) {
6372
9076
  onFocus: onFocus,
6373
9077
  onBlur: onBlur,
6374
9078
  onTouchEnd: onTouchEnd
6375
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9079
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6376
9080
  };
6377
9081
 
6378
9082
  var CenterWrapper = styled.div.withConfig({
@@ -6411,7 +9115,7 @@ var Center = function Center(_ref) {
6411
9115
  maxWidth: maxWidth,
6412
9116
  gutters: gutters,
6413
9117
  intrinsic: intrinsic
6414
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9118
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6415
9119
  };
6416
9120
 
6417
9121
  var _excluded$5 = ["overflow"];
@@ -6507,7 +9211,7 @@ var Cluster = function Cluster(_ref) {
6507
9211
  minHeight: minHeight,
6508
9212
  minWidth: minWidth,
6509
9213
  $nowrap: nowrap
6510
- }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null))));
9214
+ }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6511
9215
  };
6512
9216
 
6513
9217
  var GridWrapper = styled.div.withConfig({
@@ -6566,7 +9270,7 @@ var Grid = function Grid(_ref) {
6566
9270
  aboveMin: aboveMin,
6567
9271
  minColWidth: typeof minColWidth === "number" ? "".concat(minColWidth, "rem") : minColWidth,
6568
9272
  maxColWidth: typeof maxColWidth === "number" ? "".concat(maxColWidth, "rem") : maxColWidth
6569
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9273
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6570
9274
  };
6571
9275
 
6572
9276
  var _excluded$8 = ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"];
@@ -6650,7 +9354,7 @@ var Sidebar = function Sidebar(_ref) {
6650
9354
  contentMinWidth: contentMinWidth,
6651
9355
  fullHeight: fullHeight,
6652
9356
  minHeight: minHeight
6653
- }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null))));
9357
+ }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6654
9358
  };
6655
9359
 
6656
9360
  var StackWrapper = styled.div.withConfig({
@@ -6704,7 +9408,7 @@ var Stack = function Stack(_ref) {
6704
9408
  fullHeight: fullHeight,
6705
9409
  direction: direction,
6706
9410
  justify: justify
6707
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9411
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6708
9412
  };
6709
9413
 
6710
9414
  var CoverOuterContainer = styled.div.withConfig({
@@ -6771,7 +9475,7 @@ var Cover = function Cover(_ref) {
6771
9475
  childGap: childGap,
6772
9476
  centerOverride: centerOverride,
6773
9477
  fillCenter: fillCenter
6774
- }, rest), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment, null), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment, null));
9478
+ }, rest), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment$1, null), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment$1, null));
6775
9479
  };
6776
9480
 
6777
9481
  var FrameOuterContainer = styled.div.withConfig({
@@ -6808,7 +9512,7 @@ var Frame = function Frame(_ref) {
6808
9512
  return /*#__PURE__*/React.createElement(FrameOuterContainer, _extends({
6809
9513
  numerator: numerator,
6810
9514
  denominator: denominator
6811
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9515
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6812
9516
  };
6813
9517
 
6814
9518
  var SwitcherOuterContainer = styled.div.withConfig({
@@ -6911,7 +9615,7 @@ var Switcher = function Switcher(_ref) {
6911
9615
  padding: padding,
6912
9616
  extraStyles: extraStyles,
6913
9617
  constrainMobile: constrainMobile
6914
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null))));
9618
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6915
9619
  };
6916
9620
 
6917
9621
  var ImposterWrapper = styled.div.withConfig({
@@ -6992,7 +9696,7 @@ var Imposter = function Imposter(_ref) {
6992
9696
  left: left,
6993
9697
  centered: centered,
6994
9698
  visible: visible
6995
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9699
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6996
9700
  };
6997
9701
 
6998
9702
  var Observer$1 = /*#__PURE__*/function () {
@@ -8196,7 +10900,7 @@ var MountComponent = function (_a) {
8196
10900
  var ref = _a.innerRef, values = _a.values, isStatic = _a.isStatic;
8197
10901
  useEffect$1(function () {
8198
10902
  invariant(ref.current instanceof Element, "No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");
8199
- var domStyler = index(ref.current, {
10903
+ var domStyler = index$1(ref.current, {
8200
10904
  preparseOutput: false,
8201
10905
  enableHardwareAcceleration: !isStatic,
8202
10906
  });
@@ -9441,9 +12145,9 @@ var createMotionComponent = function (_a) {
9441
12145
  ? null
9442
12146
  : loadFunctionalityComponents(ref, values, props, parentContext, controls, shouldInheritVariant);
9443
12147
  var renderedComponent = renderComponent(ref, style, values, props, isStatic);
9444
- return (createElement(Fragment, null,
12148
+ return (createElement(Fragment$1, null,
9445
12149
  createElement(MotionContext.Provider, { value: context }, renderedComponent),
9446
- createElement(Fragment, null,
12150
+ createElement(Fragment$1, null,
9447
12151
  createElement(Mount, { innerRef: ref, values: values, isStatic: isStatic }),
9448
12152
  functionality)));
9449
12153
  }
@@ -10925,7 +13629,7 @@ var checkAndConvertChangedValueTypes = function (values, ref, target, transition
10925
13629
  target = __assign({}, target);
10926
13630
  transitionEnd = __assign({}, transitionEnd);
10927
13631
  var element = ref.current;
10928
- var elementStyler = index(element);
13632
+ var elementStyler = index$1(element);
10929
13633
  var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
10930
13634
  // We want to remove any transform values that could affect the element's bounding box before
10931
13635
  // it's measured. We'll reapply these later.
@@ -11246,7 +13950,7 @@ var LayoutAnimation = /** @class */ (function (_super) {
11246
13950
  transform && (element.style.transform = transform);
11247
13951
  return;
11248
13952
  }
11249
- index(element).set({
13953
+ index$1(element).set({
11250
13954
  originX: delta.originX,
11251
13955
  originY: delta.originY,
11252
13956
  });
@@ -11767,7 +14471,7 @@ function createDomMotionConfig(Component) {
11767
14471
  return {
11768
14472
  values: values,
11769
14473
  readValueFromSource: function (key) {
11770
- return index(ref.current).get(key);
14474
+ return index$1(ref.current).get(key);
11771
14475
  },
11772
14476
  // TODO: This is a good second source of plugins. This function contains the CSS variable
11773
14477
  // and unit conversion support. These functions share a common signature. We could make another
@@ -11975,7 +14679,7 @@ var AnimatePresence = function (_a) {
11975
14679
  // we play onMount animations or not.
11976
14680
  if (isInitialRender.current) {
11977
14681
  isInitialRender.current = false;
11978
- return (createElement(Fragment, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
14682
+ return (createElement(Fragment$1, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
11979
14683
  }
11980
14684
  // If this is a subsequent render, deal with entering and exiting children
11981
14685
  var childrenToRender = __spreadArrays(filteredChildren);
@@ -12036,7 +14740,7 @@ var AnimatePresence = function (_a) {
12036
14740
  childrenToRender.length > 1) {
12037
14741
  console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour.");
12038
14742
  }
12039
- return (createElement(Fragment, null, exiting.size
14743
+ return (createElement(Fragment$1, null, exiting.size
12040
14744
  ? childrenToRender
12041
14745
  : childrenToRender.map(function (child) { return cloneElement(child); })));
12042
14746
  };
@@ -12172,7 +14876,7 @@ var Motion = function Motion(_ref) {
12172
14876
  return /*#__PURE__*/React.createElement(MotionWrapper, _extends({
12173
14877
  position: position,
12174
14878
  padding: padding
12175
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
14879
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
12176
14880
  };
12177
14881
 
12178
14882
  var ReelStyled = styled.div.withConfig({
@@ -12242,7 +14946,7 @@ var Reel = function Reel(_ref) {
12242
14946
  useUnorderedList: useUnorderedList
12243
14947
  }, rest, {
12244
14948
  role: useOrderedList || useUnorderedList ? "list" : "section"
12245
- }), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
14949
+ }), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
12246
14950
  };
12247
14951
 
12248
14952
  /*
@@ -16001,8 +18705,8 @@ var AmountCallout = function AmountCallout(_ref) {
16001
18705
 
16002
18706
  var AmountCallout$1 = themeComponent(AmountCallout, "AmountCallout", fallbackValues$6);
16003
18707
 
16004
- function _extends$1() {
16005
- _extends$1 = Object.assign || function (target) {
18708
+ function _extends$2() {
18709
+ _extends$2 = Object.assign || function (target) {
16006
18710
  for (var i = 1; i < arguments.length; i++) {
16007
18711
  var source = arguments[i];
16008
18712
 
@@ -16016,7 +18720,7 @@ function _extends$1() {
16016
18720
  return target;
16017
18721
  };
16018
18722
 
16019
- return _extends$1.apply(this, arguments);
18723
+ return _extends$2.apply(this, arguments);
16020
18724
  }
16021
18725
 
16022
18726
  function _assertThisInitialized(self) {
@@ -16123,7 +18827,7 @@ function _wrapNativeSuper(Class) {
16123
18827
  * Parse errors.md and turn it into a simple hash of code: message
16124
18828
  * @private
16125
18829
  */
16126
- var ERRORS = {
18830
+ var ERRORS$1 = {
16127
18831
  "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
16128
18832
  "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
16129
18833
  "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
@@ -16208,7 +18912,7 @@ var ERRORS = {
16208
18912
  * @private
16209
18913
  */
16210
18914
 
16211
- function format() {
18915
+ function format$1() {
16212
18916
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16213
18917
  args[_key] = arguments[_key];
16214
18918
  }
@@ -16246,7 +18950,7 @@ var PolishedError = /*#__PURE__*/function (_Error) {
16246
18950
  args[_key2 - 1] = arguments[_key2];
16247
18951
  }
16248
18952
 
16249
- _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
18953
+ _this = _Error.call(this, format$1.apply(void 0, [ERRORS$1[code]].concat(args))) || this;
16250
18954
  }
16251
18955
 
16252
18956
  return _assertThisInitialized(_this);
@@ -16750,13 +19454,13 @@ function mix$1(weight, color, otherColor) {
16750
19454
  if (weight === 0) return otherColor;
16751
19455
  var parsedColor1 = parseToRgb(color);
16752
19456
 
16753
- var color1 = _extends$1({}, parsedColor1, {
19457
+ var color1 = _extends$2({}, parsedColor1, {
16754
19458
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
16755
19459
  });
16756
19460
 
16757
19461
  var parsedColor2 = parseToRgb(otherColor);
16758
19462
 
16759
- var color2 = _extends$1({}, parsedColor2, {
19463
+ var color2 = _extends$2({}, parsedColor2, {
16760
19464
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
16761
19465
  }); // The formula is copied from the original Sass implementation:
16762
19466
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
@@ -16946,6 +19650,7 @@ var ExternalLink = function ExternalLink(_ref) {
16946
19650
  variant = _ref$variant === void 0 ? "primary" : _ref$variant,
16947
19651
  _ref$tabIndex = _ref.tabIndex,
16948
19652
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
19653
+ dataQa = _ref.dataQa,
16949
19654
  children = _ref.children;
16950
19655
  var themeContext = useContext(ThemeContext);
16951
19656
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
@@ -16961,7 +19666,8 @@ var ExternalLink = function ExternalLink(_ref) {
16961
19666
  fontFamily: themeValues.fontFamily,
16962
19667
  tabIndex: tabIndex,
16963
19668
  extrastyles: extraStyles,
16964
- rel: newTab ? "noopener" : ""
19669
+ rel: newTab ? "noopener" : "",
19670
+ "data-qa": dataQa
16965
19671
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
16966
19672
  };
16967
19673
 
@@ -17031,6 +19737,7 @@ var InternalLink = function InternalLink(_ref) {
17031
19737
  margin = _ref.margin,
17032
19738
  _ref$tabIndex = _ref.tabIndex,
17033
19739
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
19740
+ dataQa = _ref.dataQa,
17034
19741
  _ref$extraStyles = _ref.extraStyles,
17035
19742
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
17036
19743
  var themeContext = useContext(ThemeContext);
@@ -17047,7 +19754,8 @@ var InternalLink = function InternalLink(_ref) {
17047
19754
  hoverColor: themeValues.hoverColor,
17048
19755
  activeColor: themeValues.activeColor,
17049
19756
  tabIndex: tabIndex,
17050
- extrastyles: extraStyles
19757
+ extrastyles: extraStyles,
19758
+ "data-qa": dataQa
17051
19759
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
17052
19760
  };
17053
19761
 
@@ -17067,7 +19775,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
17067
19775
  var linkText = _ref2.linkText,
17068
19776
  linkDestination = _ref2.linkDestination,
17069
19777
  isActive = _ref2.isActive;
17070
- return /*#__PURE__*/React.createElement(Fragment, {
19778
+ return /*#__PURE__*/React.createElement(Fragment$1, {
17071
19779
  key: "breadcrumb-".concat(linkText)
17072
19780
  }, /*#__PURE__*/React.createElement(InternalLink, {
17073
19781
  "aria-current": index === breadcrumbsList.length - 1 ? "location" : "",
@@ -17079,7 +19787,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
17079
19787
  fontWeight: themeValues.fontWeight,
17080
19788
  margin: themeValues.margin,
17081
19789
  extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "pointer-events: none;\n color: ".concat(themeValues.activeBreadcrumbColor, ";\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, "; \n }")
17082
- }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React.createElement(IconChevron, null) : /*#__PURE__*/React.createElement(Fragment, null));
19790
+ }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React.createElement(IconChevron, null) : /*#__PURE__*/React.createElement(Fragment$1, null));
17083
19791
  })));
17084
19792
  };
17085
19793
 
@@ -18660,7 +21368,7 @@ _curry2(function test(pattern, str) {
18660
21368
 
18661
21369
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
18662
21370
 
18663
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
21371
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
18664
21372
 
18665
21373
  var ButtonWithLink = function ButtonWithLink(_ref) {
18666
21374
  var _ref$url = _ref.url,
@@ -18673,6 +21381,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18673
21381
  linkExtraStyles = _ref.linkExtraStyles,
18674
21382
  _ref$newTab = _ref.newTab,
18675
21383
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
21384
+ dataQa = _ref.dataQa,
18676
21385
  otherProps = _objectWithoutProperties(_ref, _excluded$m);
18677
21386
 
18678
21387
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
@@ -18680,6 +21389,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18680
21389
  url = _ref2.url,
18681
21390
  disabled = _ref2.disabled,
18682
21391
  newTab = _ref2.newTab,
21392
+ dataQa = _ref2.dataQa,
18683
21393
  extraStyles = _ref2.extraStyles;
18684
21394
 
18685
21395
  if (disabled) {
@@ -18690,10 +21400,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18690
21400
  href: url,
18691
21401
  tabIndex: "-1",
18692
21402
  newTab: newTab,
18693
- extraStyles: extraStyles
21403
+ extraStyles: extraStyles,
21404
+ dataQa: dataQa
18694
21405
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))) : /*#__PURE__*/React.createElement(InternalLink, {
18695
21406
  to: url,
18696
21407
  tabIndex: "-1",
21408
+ dataQa: dataQa,
18697
21409
  extraStyles: extraStyles
18698
21410
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
18699
21411
  };
@@ -18702,7 +21414,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18702
21414
  url: url,
18703
21415
  disabled: disabled,
18704
21416
  newTab: newTab,
18705
- extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }")
21417
+ extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
21418
+ dataQa: dataQa
18706
21419
  }, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
18707
21420
  extraStyles: extraStyles
18708
21421
  })));
@@ -18855,7 +21568,7 @@ var withWindowSize = function withWindowSize(Child) {
18855
21568
  var CardVariantSwitcher = function CardVariantSwitcher(_ref) {
18856
21569
  var variant = _ref.variant,
18857
21570
  children = _ref.children;
18858
- return variant === "vertical" ? /*#__PURE__*/React.createElement(Fragment, null, children) : /*#__PURE__*/React.createElement(Box, {
21571
+ return variant === "vertical" ? /*#__PURE__*/React.createElement(Fragment$1, null, children) : /*#__PURE__*/React.createElement(Box, {
18859
21572
  padding: "0",
18860
21573
  extraStyles: "width: 100%"
18861
21574
  }, /*#__PURE__*/React.createElement(Stack, {
@@ -19652,7 +22365,7 @@ var Dropdown = function Dropdown(_ref9) {
19652
22365
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
19653
22366
  extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
19654
22367
  }, choice.text));
19655
- }))) : /*#__PURE__*/React.createElement(Fragment, null));
22368
+ }))) : /*#__PURE__*/React.createElement(Fragment$1, null));
19656
22369
  };
19657
22370
 
19658
22371
  var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
@@ -20786,11 +23499,11 @@ var DisplayCard = function DisplayCard(_ref) {
20786
23499
  variant: "smallGhost",
20787
23500
  dataQa: buttonText,
20788
23501
  extraStyles: "min-width: 0;"
20789
- }) : /*#__PURE__*/React.createElement(Fragment, null))))));
23502
+ }) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
20790
23503
  };
20791
23504
 
20792
- function _extends$2() {
20793
- _extends$2 = Object.assign || function (target) {
23505
+ function _extends$3() {
23506
+ _extends$3 = Object.assign || function (target) {
20794
23507
  for (var i = 1; i < arguments.length; i++) {
20795
23508
  var source = arguments[i];
20796
23509
 
@@ -20804,10 +23517,10 @@ function _extends$2() {
20804
23517
  return target;
20805
23518
  };
20806
23519
 
20807
- return _extends$2.apply(this, arguments);
23520
+ return _extends$3.apply(this, arguments);
20808
23521
  }
20809
23522
 
20810
- function _objectWithoutPropertiesLoose$1(source, excluded) {
23523
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
20811
23524
  if (source == null) return {};
20812
23525
  var target = {};
20813
23526
  var sourceKeys = Object.keys(source);
@@ -20825,7 +23538,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
20825
23538
  function _objectWithoutProperties$1(source, excluded) {
20826
23539
  if (source == null) return {};
20827
23540
 
20828
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
23541
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
20829
23542
 
20830
23543
  var key, i;
20831
23544
 
@@ -20908,7 +23621,7 @@ function _nonIterableRest$1() {
20908
23621
  var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
20909
23622
  return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
20910
23623
  };
20911
- var format$1 = function format(formatter) {
23624
+ var format$2 = function format(formatter) {
20912
23625
  return function (value) {
20913
23626
  var usedFormat = formatter.formats[value.length];
20914
23627
 
@@ -21001,7 +23714,7 @@ var FormattedInput = function FormattedInput(_ref) {
21001
23714
  selectionEnd: 0,
21002
23715
  rawValue: value,
21003
23716
  "delete": false,
21004
- formattedValue: format$1(formatter)(value)
23717
+ formattedValue: format$2(formatter)(value)
21005
23718
  }),
21006
23719
  _useState2 = _slicedToArray$1(_useState, 2),
21007
23720
  state = _useState2[0],
@@ -21013,9 +23726,9 @@ var FormattedInput = function FormattedInput(_ref) {
21013
23726
  inputEl.current.setSelectionRange(state.selectionStart, state.selectionEnd);
21014
23727
  }
21015
23728
  });
21016
- return React.createElement("input", _extends$2({}, props, {
23729
+ return React.createElement("input", _extends$3({}, props, {
21017
23730
  ref: inputEl,
21018
- value: format$1(formatter)(value),
23731
+ value: format$2(formatter)(value),
21019
23732
  onKeyDown: function onKeyDown(event) {
21020
23733
  // Keep track of the state of the input before onChange, including if user is hitting delete
21021
23734
  setState({
@@ -21521,7 +24234,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
21521
24234
  color: themeValues.textColor,
21522
24235
  textAlign: "left",
21523
24236
  extraStyles: "display: inline-block;"
21524
- }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React.createElement(Fragment, null, renderCardStatus())), autoPay && /*#__PURE__*/React.createElement(Text$1, {
24237
+ }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React.createElement(Fragment$1, null, renderCardStatus())), autoPay && /*#__PURE__*/React.createElement(Text$1, {
21525
24238
  variant: "p",
21526
24239
  color: themeValues.autopayTextColor,
21527
24240
  extraStyles: "font-style: italic;"
@@ -33718,9 +36431,9 @@ function isDraft(value) {
33718
36431
  }
33719
36432
  function isDraftable(value) {
33720
36433
  if (!value) { return false; }
33721
- return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
36434
+ return isPlainObject$1(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
33722
36435
  }
33723
- function isPlainObject(value) {
36436
+ function isPlainObject$1(value) {
33724
36437
  if (!value || typeof value !== "object") { return false; }
33725
36438
  if (Array.isArray(value)) { return true; }
33726
36439
  var proto = Object.getPrototypeOf(value);
@@ -34160,7 +36873,7 @@ var objectTraps = {
34160
36873
 
34161
36874
  set: set$1$1,
34162
36875
  deleteProperty: deleteProperty,
34163
- getOwnPropertyDescriptor: getOwnPropertyDescriptor,
36876
+ getOwnPropertyDescriptor: getOwnPropertyDescriptor$1,
34164
36877
 
34165
36878
  defineProperty: function defineProperty() {
34166
36879
  throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
@@ -34268,7 +36981,7 @@ function deleteProperty(state, prop) {
34268
36981
  // the same guarantee in ES5 mode.
34269
36982
 
34270
36983
 
34271
- function getOwnPropertyDescriptor(state, prop) {
36984
+ function getOwnPropertyDescriptor$1(state, prop) {
34272
36985
  var owner = source$1(state);
34273
36986
  var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
34274
36987
 
@@ -35344,7 +38057,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
35344
38057
  hoverStyles: "outline: none;",
35345
38058
  animate: isOpen ? "open" : "closed",
35346
38059
  positionTransition: true
35347
- }, stackTitle && /*#__PURE__*/React.createElement(Fragment, null, stackTitleContent), /*#__PURE__*/React.createElement(Stack, {
38060
+ }, stackTitle && /*#__PURE__*/React.createElement(Fragment$1, null, stackTitleContent), /*#__PURE__*/React.createElement(Stack, {
35348
38061
  childGap: isOpen && !isMobile ? sectionGap : "0rem"
35349
38062
  }, /*#__PURE__*/React.createElement(Box, {
35350
38063
  padding: "0",
@@ -35689,7 +38402,7 @@ var EditableTable = function EditableTable(_ref) {
35689
38402
  }, title));
35690
38403
  return /*#__PURE__*/React.createElement(EditableTableContainer, {
35691
38404
  isMobile: isMobile
35692
- }, safeChildren(titleChild, /*#__PURE__*/React.createElement(Fragment, null)), /*#__PURE__*/React.createElement(TableWrapper, null, renderItem(items)));
38405
+ }, safeChildren(titleChild, /*#__PURE__*/React.createElement(Fragment$1, null)), /*#__PURE__*/React.createElement(TableWrapper, null, renderItem(items)));
35693
38406
  };
35694
38407
 
35695
38408
  var TableListItem = function TableListItem(_ref) {
@@ -35728,7 +38441,7 @@ var TableListItem = function TableListItem(_ref) {
35728
38441
  onClick: function onClick() {
35729
38442
  return console.log("Edit Item Coming Soon...");
35730
38443
  }
35731
- }, "Edit")) : /*#__PURE__*/React.createElement(Fragment, null))));
38444
+ }, "Edit")) : /*#__PURE__*/React.createElement(Fragment$1, null))));
35732
38445
  };
35733
38446
 
35734
38447
  var EmailForm = function EmailForm(_ref) {
@@ -38875,7 +41588,7 @@ var Modal$1 = function Modal(_ref) {
38875
41588
  var _useContext = useContext(ThemeContext),
38876
41589
  isMobile = _useContext.isMobile;
38877
41590
 
38878
- return /*#__PURE__*/React.createElement(Fragment, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
41591
+ return /*#__PURE__*/React.createElement(Fragment$1, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
38879
41592
  onExit: hideModal,
38880
41593
  getApplicationNode: getApplicationNode,
38881
41594
  titleText: modalHeaderText,
@@ -38923,7 +41636,7 @@ var Modal$1 = function Modal(_ref) {
38923
41636
  justify: "flex-end",
38924
41637
  align: "center",
38925
41638
  childGap: "0rem"
38926
- }, !onlyCloseButton ? /*#__PURE__*/React.createElement(Fragment, null, isMobile ? /*#__PURE__*/React.createElement(Stack, {
41639
+ }, !onlyCloseButton ? /*#__PURE__*/React.createElement(Fragment$1, null, isMobile ? /*#__PURE__*/React.createElement(Stack, {
38927
41640
  childGap: "1rem",
38928
41641
  direction: "row"
38929
41642
  }, /*#__PURE__*/React.createElement(Box, {
@@ -39070,7 +41783,7 @@ var Module = function Module(_ref) {
39070
41783
  var computedFontSize = fontSize || themedFontSize;
39071
41784
  var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
39072
41785
  var computedElemType = as || themedElemType;
39073
- return /*#__PURE__*/React.createElement(Fragment, null, heading && /*#__PURE__*/React.createElement(Title$1, {
41786
+ return /*#__PURE__*/React.createElement(Fragment$1, null, heading && /*#__PURE__*/React.createElement(Title$1, {
39074
41787
  weight: themeValues.fontWeight,
39075
41788
  color: themeValues.fontColor,
39076
41789
  margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
@@ -40149,14 +42862,14 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
40149
42862
  extraStyles: isMobile && "flex-grow: 1",
40150
42863
  dataQa: forwardButtonText
40151
42864
  });
40152
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
42865
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Box, {
40153
42866
  padding: "1.25rem 0"
40154
42867
  }), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Box, {
40155
42868
  padding: "2.5rem 0 3.125rem 0"
40156
42869
  }, /*#__PURE__*/React.createElement(Cluster, {
40157
42870
  justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
40158
42871
  align: "center"
40159
- }, backButton, !hideForwardButton && /*#__PURE__*/React.createElement(Fragment, null, forwardButton))));
42872
+ }, backButton, !hideForwardButton && /*#__PURE__*/React.createElement(Fragment$1, null, forwardButton))));
40160
42873
  };
40161
42874
 
40162
42875
  var backgroundColor$8 = {
@@ -40298,7 +43011,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
40298
43011
  }, item));
40299
43012
  });
40300
43013
  var feeElems = fees.map(function (fee) {
40301
- return /*#__PURE__*/React.createElement(Fragment, {
43014
+ return /*#__PURE__*/React.createElement(Fragment$1, {
40302
43015
  key: fee.label
40303
43016
  }, /*#__PURE__*/React.createElement(Box, {
40304
43017
  padding: "4px 0"
@@ -40328,7 +43041,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
40328
43041
  themeValues: themeValues,
40329
43042
  variant: variant
40330
43043
  });
40331
- var title = hideTitle ? /*#__PURE__*/React.createElement(Fragment, null) : isCollapsible ? /*#__PURE__*/React.createElement(Box, {
43044
+ var title = hideTitle ? /*#__PURE__*/React.createElement(Fragment$1, null) : isCollapsible ? /*#__PURE__*/React.createElement(Box, {
40332
43045
  width: "100%",
40333
43046
  padding: "none"
40334
43047
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -40415,7 +43128,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
40415
43128
  intrinsic: true
40416
43129
  }, /*#__PURE__*/React.createElement(AccountNumberImage, null)) : imageType === "Routing" ? /*#__PURE__*/React.createElement(Center, {
40417
43130
  intrinsic: true
40418
- }, /*#__PURE__*/React.createElement(RoutingNumberImage, null)) : /*#__PURE__*/React.createElement(Fragment, null))),
43131
+ }, /*#__PURE__*/React.createElement(RoutingNumberImage, null)) : /*#__PURE__*/React.createElement(Fragment$1, null))),
40419
43132
  defaultWrapper: false,
40420
43133
  onlyCloseButton: !acceptText,
40421
43134
  continueButtonText: acceptText,
@@ -41067,7 +43780,7 @@ var RadioSection = function RadioSection(_ref) {
41067
43780
  isMobile: isMobile,
41068
43781
  alt: icon.altText
41069
43782
  });
41070
- })), section.shouldDisplayCardExpiration && /*#__PURE__*/React.createElement(Fragment, null, renderCardStatus(section)))), /*#__PURE__*/React.createElement(AnimatePresence, {
43783
+ })), section.shouldDisplayCardExpiration && /*#__PURE__*/React.createElement(Fragment$1, null, renderCardStatus(section)))), /*#__PURE__*/React.createElement(AnimatePresence, {
41071
43784
  initial: false
41072
43785
  }, openSection === section.id && /*#__PURE__*/React.createElement(Motion, {
41073
43786
  key: "content-".concat(section.id),
@@ -41446,7 +44159,7 @@ var Tabs = function Tabs(_ref) {
41446
44159
  className: "tab-content"
41447
44160
  }, /*#__PURE__*/React.createElement(Box, null, tabsConfig.tabs.map(function (tab, idx) {
41448
44161
  if (tab.label !== activeTab) return undefined;
41449
- return /*#__PURE__*/React.createElement(Fragment, {
44162
+ return /*#__PURE__*/React.createElement(Fragment$1, {
41450
44163
  key: idx
41451
44164
  }, tab.content);
41452
44165
  }))));
@@ -41698,7 +44411,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
41698
44411
  isMobile = _ref.isMobile,
41699
44412
  themeValues = _ref.themeValues;
41700
44413
  var welcomeImage = "https://cb-public-assets.s3-us-west-2.amazonaws.com/profile-assets/profile-welcome-image.png";
41701
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
44414
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Box, {
41702
44415
  padding: "0"
41703
44416
  }, isMobile && /*#__PURE__*/React.createElement(Box, {
41704
44417
  padding: "0",
@@ -41771,7 +44484,8 @@ var WorkflowTile = function WorkflowTile(_ref) {
41771
44484
  minWidth: "100%",
41772
44485
  url: "/service/".concat(slug),
41773
44486
  extraStyles: "width: 100%;",
41774
- linkExtraStyles: "justify-content: center;"
44487
+ linkExtraStyles: "justify-content: center;",
44488
+ dataQa: slug
41775
44489
  }))));
41776
44490
  };
41777
44491
 
@@ -41855,7 +44569,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
41855
44569
  return window.removeEventListener("message", validatePeriscope);
41856
44570
  };
41857
44571
  }, [requestDashboardUrl]);
41858
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BoxWithShadow$1, {
44572
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(BoxWithShadow$1, {
41859
44573
  padding: "0",
41860
44574
  minWidth: "100%",
41861
44575
  minHeight: "592px",
@@ -41923,7 +44637,7 @@ var CenterSingle = function CenterSingle(_ref) {
41923
44637
  minWidth: "100%",
41924
44638
  extraStyles: "z-index: 1;",
41925
44639
  role: "main"
41926
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Center, {
44640
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
41927
44641
  maxWidth: isMobile && fullWidthMobile ? "100%" : maxContentWidth,
41928
44642
  intrinsic: !isMobile
41929
44643
  }, centeredMobileContent ? /*#__PURE__*/React.createElement(Cover, {
@@ -41965,7 +44679,7 @@ var CenterStack = function CenterStack(_ref) {
41965
44679
  padding: "0",
41966
44680
  minWidth: "100%",
41967
44681
  role: "main"
41968
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Center, {
44682
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
41969
44683
  maxWidth: isMobile && fullWidthMobile ? "100%" : maxContentWidth,
41970
44684
  intrinsic: !isMobile
41971
44685
  }, /*#__PURE__*/React.createElement(Cover, {
@@ -42010,7 +44724,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
42010
44724
  minHeight: "100%",
42011
44725
  extraStyles: "z-index: 1;",
42012
44726
  role: "main"
42013
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Center, {
44727
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
42014
44728
  maxWidth: maxWidth,
42015
44729
  gutters: gutters
42016
44730
  }, content)), footer ? footer : /*#__PURE__*/React.createElement(Box, {
@@ -42058,7 +44772,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
42058
44772
  padding: "0",
42059
44773
  minWidth: "100%",
42060
44774
  role: "main"
42061
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Box, {
44775
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Box, {
42062
44776
  padding: sidebarWrapperPadding
42063
44777
  }, /*#__PURE__*/React.createElement(Center, {
42064
44778
  maxWidth: sidebarWrapperMaxWidth
@@ -42067,7 +44781,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
42067
44781
  childGap: sidebarContentGap,
42068
44782
  sidebarOnRight: sidebarOnRight,
42069
44783
  contentMinWidth: mainContentMinWidth
42070
- }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment, null) : sidebarContent, mainContent, sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment, null))))), footer ? footer : /*#__PURE__*/React.createElement(Box, {
44784
+ }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment$1, null) : sidebarContent, mainContent, sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment$1, null))))), footer ? footer : /*#__PURE__*/React.createElement(Box, {
42071
44785
  padding: "0"
42072
44786
  })));
42073
44787
  };
@@ -42118,7 +44832,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
42118
44832
  minWidth: "100%",
42119
44833
  key: "content-box",
42120
44834
  role: "main"
42121
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Box, {
44835
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Box, {
42122
44836
  padding: sidebarWrapperPadding,
42123
44837
  key: "content-wrapper"
42124
44838
  }, /*#__PURE__*/React.createElement(Center, {
@@ -42130,12 +44844,12 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
42130
44844
  sidebarOnRight: sidebarOnRight,
42131
44845
  contentMinWidth: mainContentMinWidth,
42132
44846
  key: "content-sidebar"
42133
- }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment, {
44847
+ }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment$1, {
42134
44848
  key: "sidebar-fragment"
42135
44849
  }) : sidebarContent, /*#__PURE__*/React.createElement(Stack, {
42136
44850
  key: "content-stack",
42137
44851
  childGap: contentStackGap
42138
- }, mainContent), sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment, {
44852
+ }, mainContent), sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment$1, {
42139
44853
  key: "sidebar-fragment"
42140
44854
  }))))), footer ? footer : /*#__PURE__*/React.createElement(Box, {
42141
44855
  padding: "0",