sanity-plugin-workflow 1.0.2 → 1.0.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/lib/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var _templateObject, _templateObject2, _templateObject3;
4
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
5
3
  Object.defineProperty(exports, '__esModule', {
6
4
  value: true
7
5
  });
@@ -16,7 +14,6 @@ var router = require('sanity/router');
16
14
  var dnd = require('@hello-pangea/dnd');
17
15
  var groq = require('groq');
18
16
  var reactVirtual = require('@tanstack/react-virtual');
19
- var styled = require('styled-components');
20
17
  var framerMotion = require('framer-motion');
21
18
  function _interopDefaultCompat(e) {
22
19
  return e && typeof e === 'object' && 'default' in e ? e : {
@@ -25,7 +22,6 @@ function _interopDefaultCompat(e) {
25
22
  }
26
23
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
27
24
  var groq__default = /*#__PURE__*/_interopDefaultCompat(groq);
28
- var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
29
25
  function defineStates(states) {
30
26
  return states;
31
27
  }
@@ -95,7 +91,7 @@ function UserAssignment(props) {
95
91
  title: "Could not find User"
96
92
  });
97
93
  }
98
- return client.patch("workflow-metadata.".concat(documentId)).unset(["assignees[@ == \"".concat(userId, "\"]")]).commit().then(() => {
94
+ return client.patch("workflow-metadata.".concat(documentId)).unset(['assignees[@ == "'.concat(userId, '"]')]).commit().then(() => {
99
95
  return toast.push({
100
96
  title: "Removed ".concat(user.displayName, " from assignees"),
101
97
  status: "success"
@@ -140,7 +136,7 @@ function useWorkflowMetadata(ids) {
140
136
  data: rawData,
141
137
  loading,
142
138
  error
143
- } = sanityPluginUtils.useListeningQuery("*[_type == \"workflow.metadata\" && documentId in $ids]{\n _id,\n _type,\n _rev,\n assignees,\n documentId,\n state,\n orderRank\n }", {
139
+ } = sanityPluginUtils.useListeningQuery('*[_type == "workflow.metadata" && documentId in $ids]{\n _id,\n _type,\n _rev,\n assignees,\n documentId,\n state,\n orderRank\n }', {
144
140
  params: {
145
141
  ids
146
142
  },
@@ -266,7 +262,7 @@ function BeginWorkflow(props) {
266
262
  }
267
263
  const handle = React.useCallback(async () => {
268
264
  setBeginning(true);
269
- const lowestOrderFirstState = await client.fetch("*[_type == \"workflow.metadata\" && state == $state]|order(orderRank)[0].orderRank", {
265
+ const lowestOrderFirstState = await client.fetch('*[_type == "workflow.metadata" && state == $state]|order(orderRank)[0].orderRank', {
270
266
  state: states[0].id
271
267
  });
272
268
  client.createIfNotExists({
@@ -279,7 +275,7 @@ function BeginWorkflow(props) {
279
275
  toast.push({
280
276
  status: "success",
281
277
  title: "Workflow started",
282
- description: "Document is now \"".concat(states[0].title, "\"")
278
+ description: 'Document is now "'.concat(states[0].title, '"')
283
279
  });
284
280
  setBeginning(false);
285
281
  setComplete(true);
@@ -374,7 +370,7 @@ function UpdateWorkflow(props, actionState) {
374
370
  props.onComplete();
375
371
  toast.push({
376
372
  status: "success",
377
- title: "Document state now \"".concat(newState.title, "\"")
373
+ title: 'Document state now "'.concat(newState.title, '"')
378
374
  });
379
375
  }).catch(err => {
380
376
  props.onComplete();
@@ -411,17 +407,17 @@ function UpdateWorkflow(props, actionState) {
411
407
  currentUser && (assignees == null ? void 0 : assignees.length) && assignees.includes(currentUser.id) :
412
408
  // Otherwise this isn't a problem
413
409
  true;
414
- let title = "".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
410
+ let title = "".concat(directionLabel, ' State to "').concat(actionState.title, '"');
415
411
  if (!userRoleCanUpdateState) {
416
- title = "Your User role cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
412
+ title = "Your User role cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
417
413
  } else if (!actionStateIsAValidTransition) {
418
- title = "You cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\" from \"").concat(currentState == null ? void 0 : currentState.title, "\"");
414
+ title = "You cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '" from "').concat(currentState == null ? void 0 : currentState.title, '"');
419
415
  } else if (!userAssignmentCanUpdateState) {
420
- title = "You must be assigned to the document to ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
416
+ title = "You must be assigned to the document to ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
421
417
  } else if ((currentState == null ? void 0 : currentState.requireValidation) && isValidating) {
422
- title = "Document is validating, cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
418
+ title = "Document is validating, cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
423
419
  } else if (hasValidationErrors) {
424
- title = "Document has validation errors, cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
420
+ title = "Document has validation errors, cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
425
421
  }
426
422
  return {
427
423
  icon: DirectionIcon,
@@ -609,7 +605,7 @@ var metadata = states => sanity.defineType({
609
605
  liveEdit: true,
610
606
  fields: [sanity.defineField({
611
607
  name: "state",
612
- description: "The current \"State\" of the document. Field is read only as changing it would not fire the state's \"operation\" setting. These are fired in the Document Actions and in the custom Tool.",
608
+ description: 'The current "State" of the document. Field is read only as changing it would not fire the state\'s "operation" setting. These are fired in the Document Actions and in the custom Tool.',
613
609
  readOnly: true,
614
610
  type: "string",
615
611
  options: {
@@ -677,7 +673,13 @@ function filterItemsAndSort(items, stateId) {
677
673
  return aOrderRank.localeCompare(bOrderRank);
678
674
  });
679
675
  }
680
- const QUERY = groq__default.default(_templateObject || (_templateObject = _taggedTemplateLiteral(["*[_type == \"workflow.metadata\"]|order(orderRank){\n \"_metadata\": {\n _rev,\n assignees,\n documentId,\n state,\n orderRank,\n \"draftDocumentId\": \"drafts.\" + documentId,\n }\n}{\n ...,\n ...(\n *[_id == ^._metadata.documentId || _id == ^._metadata.draftDocumentId]|order(_updatedAt)[0]{ \n _id, \n _type, \n _rev, \n _updatedAt \n }\n )\n}"])));
676
+ var __freeze$2 = Object.freeze;
677
+ var __defProp$2 = Object.defineProperty;
678
+ var __template$2 = (cooked, raw) => __freeze$2(__defProp$2(cooked, "raw", {
679
+ value: __freeze$2(raw || cooked.slice())
680
+ }));
681
+ var _a$2;
682
+ const QUERY = groq__default.default(_a$2 || (_a$2 = __template$2(['*[_type == "workflow.metadata"]|order(orderRank){\n "_metadata": {\n _rev,\n assignees,\n documentId,\n state,\n orderRank,\n "draftDocumentId": "drafts." + documentId,\n }\n}{\n ...,\n ...(\n *[_id == ^._metadata.documentId || _id == ^._metadata.draftDocumentId]|order(_updatedAt)[0]{ \n _id, \n _type, \n _rev, \n _updatedAt \n }\n )\n}'])));
681
683
  function useWorkflowDocuments(schemaTypes) {
682
684
  const toast = ui.useToast();
683
685
  const client = sanity.useClient({
@@ -702,8 +704,8 @@ function useWorkflowDocuments(schemaTypes) {
702
704
  const move = React__default.default.useCallback(async (draggedId, destination, states, newOrder) => {
703
705
  const currentLocalData = localDocuments;
704
706
  const newLocalDocuments = localDocuments.map(item => {
705
- var _a;
706
- if (((_a = item == null ? void 0 : item._metadata) == null ? void 0 : _a.documentId) === draggedId) {
707
+ var _a2;
708
+ if (((_a2 = item == null ? void 0 : item._metadata) == null ? void 0 : _a2.documentId) === draggedId) {
707
709
  return {
708
710
  ...item,
709
711
  _metadata: {
@@ -724,8 +726,8 @@ function useWorkflowDocuments(schemaTypes) {
724
726
  const newStateId = destination.droppableId;
725
727
  const newState = states.find(s => s.id === newStateId);
726
728
  const document = localDocuments.find(d => {
727
- var _a;
728
- return ((_a = d == null ? void 0 : d._metadata) == null ? void 0 : _a.documentId) === draggedId;
729
+ var _a2;
730
+ return ((_a2 = d == null ? void 0 : d._metadata) == null ? void 0 : _a2.documentId) === draggedId;
729
731
  });
730
732
  if (!(newState == null ? void 0 : newState.id)) {
731
733
  toast.push({
@@ -753,17 +755,17 @@ function useWorkflowDocuments(schemaTypes) {
753
755
  state: newStateId,
754
756
  orderRank: newOrder
755
757
  }).commit().then(res => {
756
- var _a, _b;
758
+ var _a2, _b;
757
759
  toast.push({
758
- title: newState.id === document._metadata.state ? "Reordered in \"".concat((_a = newState == null ? void 0 : newState.title) != null ? _a : newStateId, "\"") : "Moved to \"".concat((_b = newState == null ? void 0 : newState.title) != null ? _b : newStateId, "\""),
760
+ title: newState.id === document._metadata.state ? 'Reordered in "'.concat((_a2 = newState == null ? void 0 : newState.title) != null ? _a2 : newStateId, '"') : 'Moved to "'.concat((_b = newState == null ? void 0 : newState.title) != null ? _b : newStateId, '"'),
759
761
  status: "success"
760
762
  });
761
763
  return res;
762
764
  }).catch(err => {
763
- var _a;
765
+ var _a2;
764
766
  setLocalDocuments(currentLocalData);
765
767
  toast.push({
766
- title: "Failed to move to \"".concat((_a = newState == null ? void 0 : newState.title) != null ? _a : newStateId, "\""),
768
+ title: 'Failed to move to "'.concat((_a2 = newState == null ? void 0 : newState.title) != null ? _a2 : newStateId, '"'),
767
769
  description: err.message,
768
770
  status: "error"
769
771
  });
@@ -1112,8 +1114,7 @@ function DocumentCard(props) {
1112
1114
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Card, {
1113
1115
  borderBottom: true,
1114
1116
  radius: 2,
1115
- padding: 3,
1116
- paddingLeft: 2,
1117
+ paddingRight: 2,
1117
1118
  tone: cardTone,
1118
1119
  style: {
1119
1120
  pointerEvents: "none"
@@ -1331,6 +1332,8 @@ function Filters(props) {
1331
1332
  tone: "default",
1332
1333
  children: /* @__PURE__ */jsxRuntime.jsx(ui.MenuButton, {
1333
1334
  button: /* @__PURE__ */jsxRuntime.jsx(ui.Button, {
1335
+ padding: 3,
1336
+ fontSize: 1,
1334
1337
  text: "Filter Assignees",
1335
1338
  tone: "primary",
1336
1339
  icon: icons.UserIcon
@@ -1392,6 +1395,8 @@ function Filters(props) {
1392
1395
  })
1393
1396
  })
1394
1397
  }, user.id)), selectedUserIds.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ui.Button, {
1398
+ padding: 3,
1399
+ fontSize: 1,
1395
1400
  text: "Clear",
1396
1401
  onClick: resetSelectedUsers,
1397
1402
  mode: "ghost",
@@ -1408,6 +1413,8 @@ function Filters(props) {
1408
1413
  return null;
1409
1414
  }
1410
1415
  return /* @__PURE__ */jsxRuntime.jsx(ui.Button, {
1416
+ padding: 3,
1417
+ fontSize: 1,
1411
1418
  text: (_a = schemaType == null ? void 0 : schemaType.title) != null ? _a : typeName,
1412
1419
  icon: (_b = schemaType == null ? void 0 : schemaType.icon) != null ? _b : void 0,
1413
1420
  mode: selectedSchemaTypes.includes(typeName) ? "default" : "ghost",
@@ -1418,6 +1425,1928 @@ function Filters(props) {
1418
1425
  })
1419
1426
  });
1420
1427
  }
1428
+ function getDefaultExportFromCjs(x) {
1429
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1430
+ }
1431
+ var reactIs$2 = {
1432
+ exports: {}
1433
+ };
1434
+ var reactIs_production_min$1 = {};
1435
+
1436
+ /**
1437
+ * @license React
1438
+ * react-is.production.min.js
1439
+ *
1440
+ * Copyright (c) Facebook, Inc. and its affiliates.
1441
+ *
1442
+ * This source code is licensed under the MIT license found in the
1443
+ * LICENSE file in the root directory of this source tree.
1444
+ */
1445
+
1446
+ var hasRequiredReactIs_production_min$1;
1447
+ function requireReactIs_production_min$1() {
1448
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
1449
+ hasRequiredReactIs_production_min$1 = 1;
1450
+ var b = Symbol.for("react.element"),
1451
+ c = Symbol.for("react.portal"),
1452
+ d = Symbol.for("react.fragment"),
1453
+ e = Symbol.for("react.strict_mode"),
1454
+ f = Symbol.for("react.profiler"),
1455
+ g = Symbol.for("react.provider"),
1456
+ h = Symbol.for("react.context"),
1457
+ k = Symbol.for("react.server_context"),
1458
+ l = Symbol.for("react.forward_ref"),
1459
+ m = Symbol.for("react.suspense"),
1460
+ n = Symbol.for("react.suspense_list"),
1461
+ p = Symbol.for("react.memo"),
1462
+ q = Symbol.for("react.lazy"),
1463
+ t = Symbol.for("react.offscreen"),
1464
+ u;
1465
+ u = Symbol.for("react.module.reference");
1466
+ function v(a) {
1467
+ if ("object" === typeof a && null !== a) {
1468
+ var r = a.$$typeof;
1469
+ switch (r) {
1470
+ case b:
1471
+ switch (a = a.type, a) {
1472
+ case d:
1473
+ case f:
1474
+ case e:
1475
+ case m:
1476
+ case n:
1477
+ return a;
1478
+ default:
1479
+ switch (a = a && a.$$typeof, a) {
1480
+ case k:
1481
+ case h:
1482
+ case l:
1483
+ case q:
1484
+ case p:
1485
+ case g:
1486
+ return a;
1487
+ default:
1488
+ return r;
1489
+ }
1490
+ }
1491
+ case c:
1492
+ return r;
1493
+ }
1494
+ }
1495
+ }
1496
+ reactIs_production_min$1.ContextConsumer = h;
1497
+ reactIs_production_min$1.ContextProvider = g;
1498
+ reactIs_production_min$1.Element = b;
1499
+ reactIs_production_min$1.ForwardRef = l;
1500
+ reactIs_production_min$1.Fragment = d;
1501
+ reactIs_production_min$1.Lazy = q;
1502
+ reactIs_production_min$1.Memo = p;
1503
+ reactIs_production_min$1.Portal = c;
1504
+ reactIs_production_min$1.Profiler = f;
1505
+ reactIs_production_min$1.StrictMode = e;
1506
+ reactIs_production_min$1.Suspense = m;
1507
+ reactIs_production_min$1.SuspenseList = n;
1508
+ reactIs_production_min$1.isAsyncMode = function () {
1509
+ return !1;
1510
+ };
1511
+ reactIs_production_min$1.isConcurrentMode = function () {
1512
+ return !1;
1513
+ };
1514
+ reactIs_production_min$1.isContextConsumer = function (a) {
1515
+ return v(a) === h;
1516
+ };
1517
+ reactIs_production_min$1.isContextProvider = function (a) {
1518
+ return v(a) === g;
1519
+ };
1520
+ reactIs_production_min$1.isElement = function (a) {
1521
+ return "object" === typeof a && null !== a && a.$$typeof === b;
1522
+ };
1523
+ reactIs_production_min$1.isForwardRef = function (a) {
1524
+ return v(a) === l;
1525
+ };
1526
+ reactIs_production_min$1.isFragment = function (a) {
1527
+ return v(a) === d;
1528
+ };
1529
+ reactIs_production_min$1.isLazy = function (a) {
1530
+ return v(a) === q;
1531
+ };
1532
+ reactIs_production_min$1.isMemo = function (a) {
1533
+ return v(a) === p;
1534
+ };
1535
+ reactIs_production_min$1.isPortal = function (a) {
1536
+ return v(a) === c;
1537
+ };
1538
+ reactIs_production_min$1.isProfiler = function (a) {
1539
+ return v(a) === f;
1540
+ };
1541
+ reactIs_production_min$1.isStrictMode = function (a) {
1542
+ return v(a) === e;
1543
+ };
1544
+ reactIs_production_min$1.isSuspense = function (a) {
1545
+ return v(a) === m;
1546
+ };
1547
+ reactIs_production_min$1.isSuspenseList = function (a) {
1548
+ return v(a) === n;
1549
+ };
1550
+ reactIs_production_min$1.isValidElementType = function (a) {
1551
+ return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
1552
+ };
1553
+ reactIs_production_min$1.typeOf = v;
1554
+ return reactIs_production_min$1;
1555
+ }
1556
+ var reactIs_development$1 = {};
1557
+
1558
+ /**
1559
+ * @license React
1560
+ * react-is.development.js
1561
+ *
1562
+ * Copyright (c) Facebook, Inc. and its affiliates.
1563
+ *
1564
+ * This source code is licensed under the MIT license found in the
1565
+ * LICENSE file in the root directory of this source tree.
1566
+ */
1567
+
1568
+ var hasRequiredReactIs_development$1;
1569
+ function requireReactIs_development$1() {
1570
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
1571
+ hasRequiredReactIs_development$1 = 1;
1572
+ if (process.env.NODE_ENV !== "production") {
1573
+ (function () {
1574
+ // ATTENTION
1575
+ // When adding new symbols to this file,
1576
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1577
+ // The Symbol used to tag the ReactElement-like types.
1578
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1579
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1580
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1581
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1582
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1583
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1584
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1585
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
1586
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1587
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1588
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1589
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
1590
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1591
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1592
+
1593
+ // -----------------------------------------------------------------------------
1594
+
1595
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
1596
+ var enableCacheElement = false;
1597
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
1598
+
1599
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1600
+ // stuff. Intended to enable React core members to more easily debug scheduling
1601
+ // issues in DEV builds.
1602
+
1603
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1604
+
1605
+ var REACT_MODULE_REFERENCE;
1606
+ {
1607
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1608
+ }
1609
+ function isValidElementType(type) {
1610
+ if (typeof type === 'string' || typeof type === 'function') {
1611
+ return true;
1612
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1613
+
1614
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1615
+ return true;
1616
+ }
1617
+ if (typeof type === 'object' && type !== null) {
1618
+ if (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 ||
1619
+ // This needs to include all possible module reference object
1620
+ // types supported by any Flight configuration anywhere since
1621
+ // we don't know which Flight build this will end up being used
1622
+ // with.
1623
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1624
+ return true;
1625
+ }
1626
+ }
1627
+ return false;
1628
+ }
1629
+ function typeOf(object) {
1630
+ if (typeof object === 'object' && object !== null) {
1631
+ var $$typeof = object.$$typeof;
1632
+ switch ($$typeof) {
1633
+ case REACT_ELEMENT_TYPE:
1634
+ var type = object.type;
1635
+ switch (type) {
1636
+ case REACT_FRAGMENT_TYPE:
1637
+ case REACT_PROFILER_TYPE:
1638
+ case REACT_STRICT_MODE_TYPE:
1639
+ case REACT_SUSPENSE_TYPE:
1640
+ case REACT_SUSPENSE_LIST_TYPE:
1641
+ return type;
1642
+ default:
1643
+ var $$typeofType = type && type.$$typeof;
1644
+ switch ($$typeofType) {
1645
+ case REACT_SERVER_CONTEXT_TYPE:
1646
+ case REACT_CONTEXT_TYPE:
1647
+ case REACT_FORWARD_REF_TYPE:
1648
+ case REACT_LAZY_TYPE:
1649
+ case REACT_MEMO_TYPE:
1650
+ case REACT_PROVIDER_TYPE:
1651
+ return $$typeofType;
1652
+ default:
1653
+ return $$typeof;
1654
+ }
1655
+ }
1656
+ case REACT_PORTAL_TYPE:
1657
+ return $$typeof;
1658
+ }
1659
+ }
1660
+ return undefined;
1661
+ }
1662
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1663
+ var ContextProvider = REACT_PROVIDER_TYPE;
1664
+ var Element = REACT_ELEMENT_TYPE;
1665
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1666
+ var Fragment = REACT_FRAGMENT_TYPE;
1667
+ var Lazy = REACT_LAZY_TYPE;
1668
+ var Memo = REACT_MEMO_TYPE;
1669
+ var Portal = REACT_PORTAL_TYPE;
1670
+ var Profiler = REACT_PROFILER_TYPE;
1671
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1672
+ var Suspense = REACT_SUSPENSE_TYPE;
1673
+ var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
1674
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1675
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
1676
+
1677
+ function isAsyncMode(object) {
1678
+ {
1679
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1680
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1681
+
1682
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1683
+ }
1684
+ }
1685
+ return false;
1686
+ }
1687
+ function isConcurrentMode(object) {
1688
+ {
1689
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1690
+ hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
1691
+
1692
+ console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1693
+ }
1694
+ }
1695
+ return false;
1696
+ }
1697
+ function isContextConsumer(object) {
1698
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1699
+ }
1700
+ function isContextProvider(object) {
1701
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1702
+ }
1703
+ function isElement(object) {
1704
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1705
+ }
1706
+ function isForwardRef(object) {
1707
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1708
+ }
1709
+ function isFragment(object) {
1710
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1711
+ }
1712
+ function isLazy(object) {
1713
+ return typeOf(object) === REACT_LAZY_TYPE;
1714
+ }
1715
+ function isMemo(object) {
1716
+ return typeOf(object) === REACT_MEMO_TYPE;
1717
+ }
1718
+ function isPortal(object) {
1719
+ return typeOf(object) === REACT_PORTAL_TYPE;
1720
+ }
1721
+ function isProfiler(object) {
1722
+ return typeOf(object) === REACT_PROFILER_TYPE;
1723
+ }
1724
+ function isStrictMode(object) {
1725
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1726
+ }
1727
+ function isSuspense(object) {
1728
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1729
+ }
1730
+ function isSuspenseList(object) {
1731
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
1732
+ }
1733
+ reactIs_development$1.ContextConsumer = ContextConsumer;
1734
+ reactIs_development$1.ContextProvider = ContextProvider;
1735
+ reactIs_development$1.Element = Element;
1736
+ reactIs_development$1.ForwardRef = ForwardRef;
1737
+ reactIs_development$1.Fragment = Fragment;
1738
+ reactIs_development$1.Lazy = Lazy;
1739
+ reactIs_development$1.Memo = Memo;
1740
+ reactIs_development$1.Portal = Portal;
1741
+ reactIs_development$1.Profiler = Profiler;
1742
+ reactIs_development$1.StrictMode = StrictMode;
1743
+ reactIs_development$1.Suspense = Suspense;
1744
+ reactIs_development$1.SuspenseList = SuspenseList;
1745
+ reactIs_development$1.isAsyncMode = isAsyncMode;
1746
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
1747
+ reactIs_development$1.isContextConsumer = isContextConsumer;
1748
+ reactIs_development$1.isContextProvider = isContextProvider;
1749
+ reactIs_development$1.isElement = isElement;
1750
+ reactIs_development$1.isForwardRef = isForwardRef;
1751
+ reactIs_development$1.isFragment = isFragment;
1752
+ reactIs_development$1.isLazy = isLazy;
1753
+ reactIs_development$1.isMemo = isMemo;
1754
+ reactIs_development$1.isPortal = isPortal;
1755
+ reactIs_development$1.isProfiler = isProfiler;
1756
+ reactIs_development$1.isStrictMode = isStrictMode;
1757
+ reactIs_development$1.isSuspense = isSuspense;
1758
+ reactIs_development$1.isSuspenseList = isSuspenseList;
1759
+ reactIs_development$1.isValidElementType = isValidElementType;
1760
+ reactIs_development$1.typeOf = typeOf;
1761
+ })();
1762
+ }
1763
+ return reactIs_development$1;
1764
+ }
1765
+ if (process.env.NODE_ENV === 'production') {
1766
+ reactIs$2.exports = requireReactIs_production_min$1();
1767
+ } else {
1768
+ reactIs$2.exports = requireReactIs_development$1();
1769
+ }
1770
+ var reactIsExports$1 = reactIs$2.exports;
1771
+ function stylis_min(W) {
1772
+ function M(d, c, e, h, a) {
1773
+ 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;) {
1774
+ g = e.charCodeAt(l);
1775
+ l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
1776
+ if (0 === b + n + v + m) {
1777
+ if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
1778
+ switch (g) {
1779
+ case 32:
1780
+ case 9:
1781
+ case 59:
1782
+ case 13:
1783
+ case 10:
1784
+ break;
1785
+ default:
1786
+ f += e.charAt(l);
1787
+ }
1788
+ g = 59;
1789
+ }
1790
+ switch (g) {
1791
+ case 123:
1792
+ f = f.trim();
1793
+ q = f.charCodeAt(0);
1794
+ k = 1;
1795
+ for (t = ++l; l < B;) {
1796
+ switch (g = e.charCodeAt(l)) {
1797
+ case 123:
1798
+ k++;
1799
+ break;
1800
+ case 125:
1801
+ k--;
1802
+ break;
1803
+ case 47:
1804
+ switch (g = e.charCodeAt(l + 1)) {
1805
+ case 42:
1806
+ case 47:
1807
+ a: {
1808
+ for (u = l + 1; u < J; ++u) {
1809
+ switch (e.charCodeAt(u)) {
1810
+ case 47:
1811
+ if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
1812
+ l = u + 1;
1813
+ break a;
1814
+ }
1815
+ break;
1816
+ case 10:
1817
+ if (47 === g) {
1818
+ l = u + 1;
1819
+ break a;
1820
+ }
1821
+ }
1822
+ }
1823
+ l = u;
1824
+ }
1825
+ }
1826
+ break;
1827
+ case 91:
1828
+ g++;
1829
+ case 40:
1830
+ g++;
1831
+ case 34:
1832
+ case 39:
1833
+ for (; l++ < J && e.charCodeAt(l) !== g;) {}
1834
+ }
1835
+ if (0 === k) break;
1836
+ l++;
1837
+ }
1838
+ k = e.substring(t, l);
1839
+ 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
1840
+ switch (q) {
1841
+ case 64:
1842
+ 0 < r && (f = f.replace(N, ''));
1843
+ g = f.charCodeAt(1);
1844
+ switch (g) {
1845
+ case 100:
1846
+ case 109:
1847
+ case 115:
1848
+ case 45:
1849
+ r = c;
1850
+ break;
1851
+ default:
1852
+ r = O;
1853
+ }
1854
+ k = M(c, r, k, g, a + 1);
1855
+ t = k.length;
1856
+ 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 = ''));
1857
+ if (0 < t) switch (g) {
1858
+ case 115:
1859
+ f = f.replace(da, ea);
1860
+ case 100:
1861
+ case 109:
1862
+ case 45:
1863
+ k = f + '{' + k + '}';
1864
+ break;
1865
+ case 107:
1866
+ f = f.replace(fa, '$1 $2');
1867
+ k = f + '{' + k + '}';
1868
+ k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
1869
+ break;
1870
+ default:
1871
+ k = f + k, 112 === h && (k = (p += k, ''));
1872
+ } else k = '';
1873
+ break;
1874
+ default:
1875
+ k = M(c, X(c, f, I), k, h, a + 1);
1876
+ }
1877
+ F += k;
1878
+ k = I = r = u = q = 0;
1879
+ f = '';
1880
+ g = e.charCodeAt(++l);
1881
+ break;
1882
+ case 125:
1883
+ case 59:
1884
+ f = (0 < r ? f.replace(N, '') : f).trim();
1885
+ 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) {
1886
+ case 0:
1887
+ break;
1888
+ case 64:
1889
+ if (105 === g || 99 === g) {
1890
+ G += f + e.charAt(l);
1891
+ break;
1892
+ }
1893
+ default:
1894
+ 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
1895
+ }
1896
+ I = r = u = q = 0;
1897
+ f = '';
1898
+ g = e.charCodeAt(++l);
1899
+ }
1900
+ }
1901
+ switch (g) {
1902
+ case 13:
1903
+ case 10:
1904
+ 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
1905
+ 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
1906
+ z = 1;
1907
+ D++;
1908
+ break;
1909
+ case 59:
1910
+ case 125:
1911
+ if (0 === b + n + v + m) {
1912
+ z++;
1913
+ break;
1914
+ }
1915
+ default:
1916
+ z++;
1917
+ y = e.charAt(l);
1918
+ switch (g) {
1919
+ case 9:
1920
+ case 32:
1921
+ if (0 === n + m + b) switch (x) {
1922
+ case 44:
1923
+ case 58:
1924
+ case 9:
1925
+ case 32:
1926
+ y = '';
1927
+ break;
1928
+ default:
1929
+ 32 !== g && (y = ' ');
1930
+ }
1931
+ break;
1932
+ case 0:
1933
+ y = '\\0';
1934
+ break;
1935
+ case 12:
1936
+ y = '\\f';
1937
+ break;
1938
+ case 11:
1939
+ y = '\\v';
1940
+ break;
1941
+ case 38:
1942
+ 0 === n + b + m && (r = I = 1, y = '\f' + y);
1943
+ break;
1944
+ case 108:
1945
+ if (0 === n + b + m + E && 0 < u) switch (l - u) {
1946
+ case 2:
1947
+ 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
1948
+ case 8:
1949
+ 111 === K && (E = K);
1950
+ }
1951
+ break;
1952
+ case 58:
1953
+ 0 === n + b + m && (u = l);
1954
+ break;
1955
+ case 44:
1956
+ 0 === b + v + n + m && (r = 1, y += '\r');
1957
+ break;
1958
+ case 34:
1959
+ case 39:
1960
+ 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
1961
+ break;
1962
+ case 91:
1963
+ 0 === n + b + v && m++;
1964
+ break;
1965
+ case 93:
1966
+ 0 === n + b + v && m--;
1967
+ break;
1968
+ case 41:
1969
+ 0 === n + b + m && v--;
1970
+ break;
1971
+ case 40:
1972
+ if (0 === n + b + m) {
1973
+ if (0 === q) switch (2 * x + 3 * K) {
1974
+ case 533:
1975
+ break;
1976
+ default:
1977
+ q = 1;
1978
+ }
1979
+ v++;
1980
+ }
1981
+ break;
1982
+ case 64:
1983
+ 0 === b + v + n + m + u + k && (k = 1);
1984
+ break;
1985
+ case 42:
1986
+ case 47:
1987
+ if (!(0 < n + m + v)) switch (b) {
1988
+ case 0:
1989
+ switch (2 * g + 3 * e.charCodeAt(l + 1)) {
1990
+ case 235:
1991
+ b = 47;
1992
+ break;
1993
+ case 220:
1994
+ t = l, b = 42;
1995
+ }
1996
+ break;
1997
+ case 42:
1998
+ 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
1999
+ }
2000
+ }
2001
+ 0 === b && (f += y);
2002
+ }
2003
+ K = x;
2004
+ x = g;
2005
+ l++;
2006
+ }
2007
+ t = p.length;
2008
+ if (0 < t) {
2009
+ r = c;
2010
+ 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;
2011
+ p = r.join(',') + '{' + p + '}';
2012
+ if (0 !== w * E) {
2013
+ 2 !== w || L(p, 2) || (E = 0);
2014
+ switch (E) {
2015
+ case 111:
2016
+ p = p.replace(ha, ':-moz-$1') + p;
2017
+ break;
2018
+ case 112:
2019
+ p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
2020
+ }
2021
+ E = 0;
2022
+ }
2023
+ }
2024
+ return G + p + F;
2025
+ }
2026
+ function X(d, c, e) {
2027
+ var h = c.trim().split(ia);
2028
+ c = h;
2029
+ var a = h.length,
2030
+ m = d.length;
2031
+ switch (m) {
2032
+ case 0:
2033
+ case 1:
2034
+ var b = 0;
2035
+ for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
2036
+ c[b] = Z(d, c[b], e).trim();
2037
+ }
2038
+ break;
2039
+ default:
2040
+ var v = b = 0;
2041
+ for (c = []; b < a; ++b) {
2042
+ for (var n = 0; n < m; ++n) {
2043
+ c[v++] = Z(d[n] + ' ', h[b], e).trim();
2044
+ }
2045
+ }
2046
+ }
2047
+ return c;
2048
+ }
2049
+ function Z(d, c, e) {
2050
+ var h = c.charCodeAt(0);
2051
+ 33 > h && (h = (c = c.trim()).charCodeAt(0));
2052
+ switch (h) {
2053
+ case 38:
2054
+ return c.replace(F, '$1' + d.trim());
2055
+ case 58:
2056
+ return d.trim() + c.replace(F, '$1' + d.trim());
2057
+ default:
2058
+ if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
2059
+ }
2060
+ return d + c;
2061
+ }
2062
+ function P(d, c, e, h) {
2063
+ var a = d + ';',
2064
+ m = 2 * c + 3 * e + 4 * h;
2065
+ if (944 === m) {
2066
+ d = a.indexOf(':', 9) + 1;
2067
+ var b = a.substring(d, a.length - 1).trim();
2068
+ b = a.substring(0, d).trim() + b + ';';
2069
+ return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
2070
+ }
2071
+ if (0 === w || 2 === w && !L(a, 1)) return a;
2072
+ switch (m) {
2073
+ case 1015:
2074
+ return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
2075
+ case 951:
2076
+ return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
2077
+ case 963:
2078
+ return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
2079
+ case 1009:
2080
+ if (100 !== a.charCodeAt(4)) break;
2081
+ case 969:
2082
+ case 942:
2083
+ return '-webkit-' + a + a;
2084
+ case 978:
2085
+ return '-webkit-' + a + '-moz-' + a + a;
2086
+ case 1019:
2087
+ case 983:
2088
+ return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
2089
+ case 883:
2090
+ if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
2091
+ if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
2092
+ break;
2093
+ case 932:
2094
+ if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
2095
+ case 103:
2096
+ return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
2097
+ case 115:
2098
+ return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
2099
+ case 98:
2100
+ return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
2101
+ }
2102
+ return '-webkit-' + a + '-ms-' + a + a;
2103
+ case 964:
2104
+ return '-webkit-' + a + '-ms-flex-' + a + a;
2105
+ case 1023:
2106
+ if (99 !== a.charCodeAt(8)) break;
2107
+ b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
2108
+ return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
2109
+ case 1005:
2110
+ return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
2111
+ case 1e3:
2112
+ b = a.substring(13).trim();
2113
+ c = b.indexOf('-') + 1;
2114
+ switch (b.charCodeAt(0) + b.charCodeAt(c)) {
2115
+ case 226:
2116
+ b = a.replace(G, 'tb');
2117
+ break;
2118
+ case 232:
2119
+ b = a.replace(G, 'tb-rl');
2120
+ break;
2121
+ case 220:
2122
+ b = a.replace(G, 'lr');
2123
+ break;
2124
+ default:
2125
+ return a;
2126
+ }
2127
+ return '-webkit-' + a + '-ms-' + b + a;
2128
+ case 1017:
2129
+ if (-1 === a.indexOf('sticky', 9)) break;
2130
+ case 975:
2131
+ c = (a = d).length - 10;
2132
+ b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
2133
+ switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
2134
+ case 203:
2135
+ if (111 > b.charCodeAt(8)) break;
2136
+ case 115:
2137
+ a = a.replace(b, '-webkit-' + b) + ';' + a;
2138
+ break;
2139
+ case 207:
2140
+ case 102:
2141
+ a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
2142
+ }
2143
+ return a + ';';
2144
+ case 938:
2145
+ if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
2146
+ case 105:
2147
+ return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
2148
+ case 115:
2149
+ return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
2150
+ default:
2151
+ return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
2152
+ }
2153
+ break;
2154
+ case 973:
2155
+ case 989:
2156
+ if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
2157
+ case 931:
2158
+ case 953:
2159
+ 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;
2160
+ break;
2161
+ case 962:
2162
+ 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;
2163
+ }
2164
+ return a;
2165
+ }
2166
+ function L(d, c) {
2167
+ var e = d.indexOf(1 === c ? ':' : '{'),
2168
+ h = d.substring(0, 3 !== c ? e : 10);
2169
+ e = d.substring(e + 1, d.length - 1);
2170
+ return R(2 !== c ? h : h.replace(na, '$1'), e, c);
2171
+ }
2172
+ function ea(d, c) {
2173
+ var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
2174
+ return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
2175
+ }
2176
+ function H(d, c, e, h, a, m, b, v, n, q) {
2177
+ for (var g = 0, x = c, w; g < A; ++g) {
2178
+ switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
2179
+ case void 0:
2180
+ case !1:
2181
+ case !0:
2182
+ case null:
2183
+ break;
2184
+ default:
2185
+ x = w;
2186
+ }
2187
+ }
2188
+ if (x !== c) return x;
2189
+ }
2190
+ function T(d) {
2191
+ switch (d) {
2192
+ case void 0:
2193
+ case null:
2194
+ A = S.length = 0;
2195
+ break;
2196
+ default:
2197
+ if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
2198
+ T(d[c]);
2199
+ } else Y = !!d | 0;
2200
+ }
2201
+ return T;
2202
+ }
2203
+ function U(d) {
2204
+ d = d.prefix;
2205
+ void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
2206
+ return U;
2207
+ }
2208
+ function B(d, c) {
2209
+ var e = d;
2210
+ 33 > e.charCodeAt(0) && (e = e.trim());
2211
+ V = e;
2212
+ e = [V];
2213
+ if (0 < A) {
2214
+ var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
2215
+ void 0 !== h && 'string' === typeof h && (c = h);
2216
+ }
2217
+ var a = M(O, e, c, 0, 0);
2218
+ 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
2219
+ V = '';
2220
+ E = 0;
2221
+ z = D = 1;
2222
+ return a;
2223
+ }
2224
+ var ca = /^\0+/g,
2225
+ N = /[\0\r\f]/g,
2226
+ aa = /: */g,
2227
+ ka = /zoo|gra/,
2228
+ ma = /([,: ])(transform)/g,
2229
+ ia = /,\r+?/g,
2230
+ F = /([\t\r\n ])*\f?&/g,
2231
+ fa = /@(k\w+)\s*(\S*)\s*/,
2232
+ Q = /::(place)/g,
2233
+ ha = /:(read-only)/g,
2234
+ G = /[svh]\w+-[tblr]{2}/,
2235
+ da = /\(\s*(.*)\s*\)/g,
2236
+ oa = /([\s\S]*?);/g,
2237
+ ba = /-self|flex-/g,
2238
+ na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
2239
+ la = /stretch|:\s*\w+\-(?:conte|avail)/,
2240
+ ja = /([^-])(image-set\()/,
2241
+ z = 1,
2242
+ D = 1,
2243
+ E = 0,
2244
+ w = 1,
2245
+ O = [],
2246
+ S = [],
2247
+ A = 0,
2248
+ R = null,
2249
+ Y = 0,
2250
+ V = '';
2251
+ B.use = T;
2252
+ B.set = U;
2253
+ void 0 !== W && U(W);
2254
+ return B;
2255
+ }
2256
+ var unitlessKeys = {
2257
+ animationIterationCount: 1,
2258
+ borderImageOutset: 1,
2259
+ borderImageSlice: 1,
2260
+ borderImageWidth: 1,
2261
+ boxFlex: 1,
2262
+ boxFlexGroup: 1,
2263
+ boxOrdinalGroup: 1,
2264
+ columnCount: 1,
2265
+ columns: 1,
2266
+ flex: 1,
2267
+ flexGrow: 1,
2268
+ flexPositive: 1,
2269
+ flexShrink: 1,
2270
+ flexNegative: 1,
2271
+ flexOrder: 1,
2272
+ gridRow: 1,
2273
+ gridRowEnd: 1,
2274
+ gridRowSpan: 1,
2275
+ gridRowStart: 1,
2276
+ gridColumn: 1,
2277
+ gridColumnEnd: 1,
2278
+ gridColumnSpan: 1,
2279
+ gridColumnStart: 1,
2280
+ msGridRow: 1,
2281
+ msGridRowSpan: 1,
2282
+ msGridColumn: 1,
2283
+ msGridColumnSpan: 1,
2284
+ fontWeight: 1,
2285
+ lineHeight: 1,
2286
+ opacity: 1,
2287
+ order: 1,
2288
+ orphans: 1,
2289
+ tabSize: 1,
2290
+ widows: 1,
2291
+ zIndex: 1,
2292
+ zoom: 1,
2293
+ WebkitLineClamp: 1,
2294
+ // SVG-related properties
2295
+ fillOpacity: 1,
2296
+ floodOpacity: 1,
2297
+ stopOpacity: 1,
2298
+ strokeDasharray: 1,
2299
+ strokeDashoffset: 1,
2300
+ strokeMiterlimit: 1,
2301
+ strokeOpacity: 1,
2302
+ strokeWidth: 1
2303
+ };
2304
+ function memoize(fn) {
2305
+ var cache = Object.create(null);
2306
+ return function (arg) {
2307
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
2308
+ return cache[arg];
2309
+ };
2310
+ }
2311
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
2312
+
2313
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
2314
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2315
+ /* o */ && prop.charCodeAt(1) === 110
2316
+ /* n */ && prop.charCodeAt(2) < 91;
2317
+ }
2318
+ /* Z+1 */);
2319
+ var reactIs$1 = {
2320
+ exports: {}
2321
+ };
2322
+ var reactIs_production_min = {};
2323
+
2324
+ /** @license React v16.13.1
2325
+ * react-is.production.min.js
2326
+ *
2327
+ * Copyright (c) Facebook, Inc. and its affiliates.
2328
+ *
2329
+ * This source code is licensed under the MIT license found in the
2330
+ * LICENSE file in the root directory of this source tree.
2331
+ */
2332
+
2333
+ var hasRequiredReactIs_production_min;
2334
+ function requireReactIs_production_min() {
2335
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
2336
+ hasRequiredReactIs_production_min = 1;
2337
+ var b = "function" === typeof Symbol && Symbol.for,
2338
+ c = b ? Symbol.for("react.element") : 60103,
2339
+ d = b ? Symbol.for("react.portal") : 60106,
2340
+ e = b ? Symbol.for("react.fragment") : 60107,
2341
+ f = b ? Symbol.for("react.strict_mode") : 60108,
2342
+ g = b ? Symbol.for("react.profiler") : 60114,
2343
+ h = b ? Symbol.for("react.provider") : 60109,
2344
+ k = b ? Symbol.for("react.context") : 60110,
2345
+ l = b ? Symbol.for("react.async_mode") : 60111,
2346
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
2347
+ n = b ? Symbol.for("react.forward_ref") : 60112,
2348
+ p = b ? Symbol.for("react.suspense") : 60113,
2349
+ q = b ? Symbol.for("react.suspense_list") : 60120,
2350
+ r = b ? Symbol.for("react.memo") : 60115,
2351
+ t = b ? Symbol.for("react.lazy") : 60116,
2352
+ v = b ? Symbol.for("react.block") : 60121,
2353
+ w = b ? Symbol.for("react.fundamental") : 60117,
2354
+ x = b ? Symbol.for("react.responder") : 60118,
2355
+ y = b ? Symbol.for("react.scope") : 60119;
2356
+ function z(a) {
2357
+ if ("object" === typeof a && null !== a) {
2358
+ var u = a.$$typeof;
2359
+ switch (u) {
2360
+ case c:
2361
+ switch (a = a.type, a) {
2362
+ case l:
2363
+ case m:
2364
+ case e:
2365
+ case g:
2366
+ case f:
2367
+ case p:
2368
+ return a;
2369
+ default:
2370
+ switch (a = a && a.$$typeof, a) {
2371
+ case k:
2372
+ case n:
2373
+ case t:
2374
+ case r:
2375
+ case h:
2376
+ return a;
2377
+ default:
2378
+ return u;
2379
+ }
2380
+ }
2381
+ case d:
2382
+ return u;
2383
+ }
2384
+ }
2385
+ }
2386
+ function A(a) {
2387
+ return z(a) === m;
2388
+ }
2389
+ reactIs_production_min.AsyncMode = l;
2390
+ reactIs_production_min.ConcurrentMode = m;
2391
+ reactIs_production_min.ContextConsumer = k;
2392
+ reactIs_production_min.ContextProvider = h;
2393
+ reactIs_production_min.Element = c;
2394
+ reactIs_production_min.ForwardRef = n;
2395
+ reactIs_production_min.Fragment = e;
2396
+ reactIs_production_min.Lazy = t;
2397
+ reactIs_production_min.Memo = r;
2398
+ reactIs_production_min.Portal = d;
2399
+ reactIs_production_min.Profiler = g;
2400
+ reactIs_production_min.StrictMode = f;
2401
+ reactIs_production_min.Suspense = p;
2402
+ reactIs_production_min.isAsyncMode = function (a) {
2403
+ return A(a) || z(a) === l;
2404
+ };
2405
+ reactIs_production_min.isConcurrentMode = A;
2406
+ reactIs_production_min.isContextConsumer = function (a) {
2407
+ return z(a) === k;
2408
+ };
2409
+ reactIs_production_min.isContextProvider = function (a) {
2410
+ return z(a) === h;
2411
+ };
2412
+ reactIs_production_min.isElement = function (a) {
2413
+ return "object" === typeof a && null !== a && a.$$typeof === c;
2414
+ };
2415
+ reactIs_production_min.isForwardRef = function (a) {
2416
+ return z(a) === n;
2417
+ };
2418
+ reactIs_production_min.isFragment = function (a) {
2419
+ return z(a) === e;
2420
+ };
2421
+ reactIs_production_min.isLazy = function (a) {
2422
+ return z(a) === t;
2423
+ };
2424
+ reactIs_production_min.isMemo = function (a) {
2425
+ return z(a) === r;
2426
+ };
2427
+ reactIs_production_min.isPortal = function (a) {
2428
+ return z(a) === d;
2429
+ };
2430
+ reactIs_production_min.isProfiler = function (a) {
2431
+ return z(a) === g;
2432
+ };
2433
+ reactIs_production_min.isStrictMode = function (a) {
2434
+ return z(a) === f;
2435
+ };
2436
+ reactIs_production_min.isSuspense = function (a) {
2437
+ return z(a) === p;
2438
+ };
2439
+ reactIs_production_min.isValidElementType = function (a) {
2440
+ 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);
2441
+ };
2442
+ reactIs_production_min.typeOf = z;
2443
+ return reactIs_production_min;
2444
+ }
2445
+ var reactIs_development = {};
2446
+
2447
+ /** @license React v16.13.1
2448
+ * react-is.development.js
2449
+ *
2450
+ * Copyright (c) Facebook, Inc. and its affiliates.
2451
+ *
2452
+ * This source code is licensed under the MIT license found in the
2453
+ * LICENSE file in the root directory of this source tree.
2454
+ */
2455
+
2456
+ var hasRequiredReactIs_development;
2457
+ function requireReactIs_development() {
2458
+ if (hasRequiredReactIs_development) return reactIs_development;
2459
+ hasRequiredReactIs_development = 1;
2460
+ if (process.env.NODE_ENV !== "production") {
2461
+ (function () {
2462
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2463
+ // nor polyfill, then a plain number is used for performance.
2464
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2465
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2466
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2467
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2468
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2469
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2470
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2471
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
2472
+ // (unstable) APIs that have been removed. Can we remove the symbols?
2473
+
2474
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
2475
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2476
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2477
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2478
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
2479
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2480
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2481
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
2482
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
2483
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
2484
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
2485
+ function isValidElementType(type) {
2486
+ return typeof type === 'string' || typeof type === 'function' ||
2487
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2488
+ 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);
2489
+ }
2490
+ function typeOf(object) {
2491
+ if (typeof object === 'object' && object !== null) {
2492
+ var $$typeof = object.$$typeof;
2493
+ switch ($$typeof) {
2494
+ case REACT_ELEMENT_TYPE:
2495
+ var type = object.type;
2496
+ switch (type) {
2497
+ case REACT_ASYNC_MODE_TYPE:
2498
+ case REACT_CONCURRENT_MODE_TYPE:
2499
+ case REACT_FRAGMENT_TYPE:
2500
+ case REACT_PROFILER_TYPE:
2501
+ case REACT_STRICT_MODE_TYPE:
2502
+ case REACT_SUSPENSE_TYPE:
2503
+ return type;
2504
+ default:
2505
+ var $$typeofType = type && type.$$typeof;
2506
+ switch ($$typeofType) {
2507
+ case REACT_CONTEXT_TYPE:
2508
+ case REACT_FORWARD_REF_TYPE:
2509
+ case REACT_LAZY_TYPE:
2510
+ case REACT_MEMO_TYPE:
2511
+ case REACT_PROVIDER_TYPE:
2512
+ return $$typeofType;
2513
+ default:
2514
+ return $$typeof;
2515
+ }
2516
+ }
2517
+ case REACT_PORTAL_TYPE:
2518
+ return $$typeof;
2519
+ }
2520
+ }
2521
+ return undefined;
2522
+ } // AsyncMode is deprecated along with isAsyncMode
2523
+
2524
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
2525
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
2526
+ var ContextConsumer = REACT_CONTEXT_TYPE;
2527
+ var ContextProvider = REACT_PROVIDER_TYPE;
2528
+ var Element = REACT_ELEMENT_TYPE;
2529
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
2530
+ var Fragment = REACT_FRAGMENT_TYPE;
2531
+ var Lazy = REACT_LAZY_TYPE;
2532
+ var Memo = REACT_MEMO_TYPE;
2533
+ var Portal = REACT_PORTAL_TYPE;
2534
+ var Profiler = REACT_PROFILER_TYPE;
2535
+ var StrictMode = REACT_STRICT_MODE_TYPE;
2536
+ var Suspense = REACT_SUSPENSE_TYPE;
2537
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
2538
+
2539
+ function isAsyncMode(object) {
2540
+ {
2541
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2542
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2543
+
2544
+ 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.');
2545
+ }
2546
+ }
2547
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2548
+ }
2549
+ function isConcurrentMode(object) {
2550
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2551
+ }
2552
+ function isContextConsumer(object) {
2553
+ return typeOf(object) === REACT_CONTEXT_TYPE;
2554
+ }
2555
+ function isContextProvider(object) {
2556
+ return typeOf(object) === REACT_PROVIDER_TYPE;
2557
+ }
2558
+ function isElement(object) {
2559
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2560
+ }
2561
+ function isForwardRef(object) {
2562
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
2563
+ }
2564
+ function isFragment(object) {
2565
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
2566
+ }
2567
+ function isLazy(object) {
2568
+ return typeOf(object) === REACT_LAZY_TYPE;
2569
+ }
2570
+ function isMemo(object) {
2571
+ return typeOf(object) === REACT_MEMO_TYPE;
2572
+ }
2573
+ function isPortal(object) {
2574
+ return typeOf(object) === REACT_PORTAL_TYPE;
2575
+ }
2576
+ function isProfiler(object) {
2577
+ return typeOf(object) === REACT_PROFILER_TYPE;
2578
+ }
2579
+ function isStrictMode(object) {
2580
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
2581
+ }
2582
+ function isSuspense(object) {
2583
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
2584
+ }
2585
+ reactIs_development.AsyncMode = AsyncMode;
2586
+ reactIs_development.ConcurrentMode = ConcurrentMode;
2587
+ reactIs_development.ContextConsumer = ContextConsumer;
2588
+ reactIs_development.ContextProvider = ContextProvider;
2589
+ reactIs_development.Element = Element;
2590
+ reactIs_development.ForwardRef = ForwardRef;
2591
+ reactIs_development.Fragment = Fragment;
2592
+ reactIs_development.Lazy = Lazy;
2593
+ reactIs_development.Memo = Memo;
2594
+ reactIs_development.Portal = Portal;
2595
+ reactIs_development.Profiler = Profiler;
2596
+ reactIs_development.StrictMode = StrictMode;
2597
+ reactIs_development.Suspense = Suspense;
2598
+ reactIs_development.isAsyncMode = isAsyncMode;
2599
+ reactIs_development.isConcurrentMode = isConcurrentMode;
2600
+ reactIs_development.isContextConsumer = isContextConsumer;
2601
+ reactIs_development.isContextProvider = isContextProvider;
2602
+ reactIs_development.isElement = isElement;
2603
+ reactIs_development.isForwardRef = isForwardRef;
2604
+ reactIs_development.isFragment = isFragment;
2605
+ reactIs_development.isLazy = isLazy;
2606
+ reactIs_development.isMemo = isMemo;
2607
+ reactIs_development.isPortal = isPortal;
2608
+ reactIs_development.isProfiler = isProfiler;
2609
+ reactIs_development.isStrictMode = isStrictMode;
2610
+ reactIs_development.isSuspense = isSuspense;
2611
+ reactIs_development.isValidElementType = isValidElementType;
2612
+ reactIs_development.typeOf = typeOf;
2613
+ })();
2614
+ }
2615
+ return reactIs_development;
2616
+ }
2617
+ if (process.env.NODE_ENV === 'production') {
2618
+ reactIs$1.exports = requireReactIs_production_min();
2619
+ } else {
2620
+ reactIs$1.exports = requireReactIs_development();
2621
+ }
2622
+ var reactIsExports = reactIs$1.exports;
2623
+ var reactIs = reactIsExports;
2624
+
2625
+ /**
2626
+ * Copyright 2015, Yahoo! Inc.
2627
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2628
+ */
2629
+ var REACT_STATICS = {
2630
+ childContextTypes: true,
2631
+ contextType: true,
2632
+ contextTypes: true,
2633
+ defaultProps: true,
2634
+ displayName: true,
2635
+ getDefaultProps: true,
2636
+ getDerivedStateFromError: true,
2637
+ getDerivedStateFromProps: true,
2638
+ mixins: true,
2639
+ propTypes: true,
2640
+ type: true
2641
+ };
2642
+ var KNOWN_STATICS = {
2643
+ name: true,
2644
+ length: true,
2645
+ prototype: true,
2646
+ caller: true,
2647
+ callee: true,
2648
+ arguments: true,
2649
+ arity: true
2650
+ };
2651
+ var FORWARD_REF_STATICS = {
2652
+ '$$typeof': true,
2653
+ render: true,
2654
+ defaultProps: true,
2655
+ displayName: true,
2656
+ propTypes: true
2657
+ };
2658
+ var MEMO_STATICS = {
2659
+ '$$typeof': true,
2660
+ compare: true,
2661
+ defaultProps: true,
2662
+ displayName: true,
2663
+ propTypes: true,
2664
+ type: true
2665
+ };
2666
+ var TYPE_STATICS = {};
2667
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
2668
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
2669
+ function getStatics(component) {
2670
+ // React v16.11 and below
2671
+ if (reactIs.isMemo(component)) {
2672
+ return MEMO_STATICS;
2673
+ } // React v16.12 and above
2674
+
2675
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
2676
+ }
2677
+ var defineProperty = Object.defineProperty;
2678
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
2679
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2680
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2681
+ var getPrototypeOf = Object.getPrototypeOf;
2682
+ var objectPrototype = Object.prototype;
2683
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2684
+ if (typeof sourceComponent !== 'string') {
2685
+ // don't hoist over string (html) components
2686
+ if (objectPrototype) {
2687
+ var inheritedComponent = getPrototypeOf(sourceComponent);
2688
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
2689
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
2690
+ }
2691
+ }
2692
+ var keys = getOwnPropertyNames(sourceComponent);
2693
+ if (getOwnPropertySymbols) {
2694
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2695
+ }
2696
+ var targetStatics = getStatics(targetComponent);
2697
+ var sourceStatics = getStatics(sourceComponent);
2698
+ for (var i = 0; i < keys.length; ++i) {
2699
+ var key = keys[i];
2700
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
2701
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
2702
+ try {
2703
+ // Avoid failures from read-only properties
2704
+ defineProperty(targetComponent, key, descriptor);
2705
+ } catch (e) {}
2706
+ }
2707
+ }
2708
+ }
2709
+ return targetComponent;
2710
+ }
2711
+ var hoistNonReactStatics_cjs = hoistNonReactStatics;
2712
+ var m = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs);
2713
+ function v() {
2714
+ return (v = Object.assign || function (e) {
2715
+ for (var t = 1; t < arguments.length; t++) {
2716
+ var n = arguments[t];
2717
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2718
+ }
2719
+ return e;
2720
+ }).apply(this, arguments);
2721
+ }
2722
+ var y = function (e, t) {
2723
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2724
+ return n;
2725
+ },
2726
+ g = function (t) {
2727
+ return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
2728
+ },
2729
+ S = Object.freeze([]),
2730
+ w = Object.freeze({});
2731
+ function E(e) {
2732
+ return "function" == typeof e;
2733
+ }
2734
+ function b(e) {
2735
+ return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
2736
+ }
2737
+ function _(e) {
2738
+ return e && "string" == typeof e.styledComponentId;
2739
+ }
2740
+ var N = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
2741
+ C = "undefined" != typeof window && "HTMLElement" in window,
2742
+ I = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && (void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV)),
2743
+ O = "production" !== process.env.NODE_ENV ? {
2744
+ 1: "Cannot create styled-component for component: %s.\n\n",
2745
+ 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",
2746
+ 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
2747
+ 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",
2748
+ 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",
2749
+ 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",
2750
+ 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
2751
+ 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
2752
+ 9: "Missing document `<head>`\n\n",
2753
+ 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",
2754
+ 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",
2755
+ 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",
2756
+ 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",
2757
+ 14: 'ThemeProvider: "theme" prop is required.\n\n',
2758
+ 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",
2759
+ 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",
2760
+ 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
2761
+ } : {};
2762
+ function R() {
2763
+ for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
2764
+ return t.forEach(function (t) {
2765
+ e = e.replace(/%[a-z]/, t);
2766
+ }), e;
2767
+ }
2768
+ function D(e) {
2769
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
2770
+ throw "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")) : new Error(R.apply(void 0, [O[e]].concat(n)).trim());
2771
+ }
2772
+ var j = function () {
2773
+ function e(e) {
2774
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
2775
+ }
2776
+ var t = e.prototype;
2777
+ return t.indexOfGroup = function (e) {
2778
+ for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
2779
+ return t;
2780
+ }, t.insertRules = function (e, t) {
2781
+ if (e >= this.groupSizes.length) {
2782
+ for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && D(16, "" + e);
2783
+ this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
2784
+ for (var s = r; s < o; s++) this.groupSizes[s] = 0;
2785
+ }
2786
+ for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
2787
+ }, t.clearGroup = function (e) {
2788
+ if (e < this.length) {
2789
+ var t = this.groupSizes[e],
2790
+ n = this.indexOfGroup(e),
2791
+ r = n + t;
2792
+ this.groupSizes[e] = 0;
2793
+ for (var o = n; o < r; o++) this.tag.deleteRule(n);
2794
+ }
2795
+ }, t.getGroup = function (e) {
2796
+ var t = "";
2797
+ if (e >= this.length || 0 === this.groupSizes[e]) return t;
2798
+ for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
2799
+ return t;
2800
+ }, e;
2801
+ }(),
2802
+ T = new Map(),
2803
+ x = new Map(),
2804
+ k = 1,
2805
+ V = function (e) {
2806
+ if (T.has(e)) return T.get(e);
2807
+ for (; x.has(k);) k++;
2808
+ var t = k++;
2809
+ return "production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1 << 30) && D(16, "" + t), T.set(e, t), x.set(t, e), t;
2810
+ },
2811
+ z = function (e) {
2812
+ return x.get(e);
2813
+ },
2814
+ B = function (e, t) {
2815
+ t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
2816
+ },
2817
+ M = "style[" + N + '][data-styled-version="5.3.10"]',
2818
+ G = new RegExp("^" + N + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
2819
+ L = function (e, t, n) {
2820
+ for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
2821
+ },
2822
+ F = function (e, t) {
2823
+ for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
2824
+ var i = n[o].trim();
2825
+ if (i) {
2826
+ var a = i.match(G);
2827
+ if (a) {
2828
+ var c = 0 | parseInt(a[1], 10),
2829
+ u = a[2];
2830
+ 0 !== c && (B(u, c), L(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
2831
+ } else r.push(i);
2832
+ }
2833
+ }
2834
+ },
2835
+ Y = function () {
2836
+ return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
2837
+ },
2838
+ q = function (e) {
2839
+ var t = document.head,
2840
+ n = e || t,
2841
+ r = document.createElement("style"),
2842
+ o = function (e) {
2843
+ for (var t = e.childNodes, n = t.length; n >= 0; n--) {
2844
+ var r = t[n];
2845
+ if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
2846
+ }
2847
+ }(n),
2848
+ s = void 0 !== o ? o.nextSibling : null;
2849
+ r.setAttribute(N, "active"), r.setAttribute("data-styled-version", "5.3.10");
2850
+ var i = Y();
2851
+ return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
2852
+ },
2853
+ H = function () {
2854
+ function e(e) {
2855
+ var t = this.element = q(e);
2856
+ t.appendChild(document.createTextNode("")), this.sheet = function (e) {
2857
+ if (e.sheet) return e.sheet;
2858
+ for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
2859
+ var o = t[n];
2860
+ if (o.ownerNode === e) return o;
2861
+ }
2862
+ D(17);
2863
+ }(t), this.length = 0;
2864
+ }
2865
+ var t = e.prototype;
2866
+ return t.insertRule = function (e, t) {
2867
+ try {
2868
+ return this.sheet.insertRule(t, e), this.length++, !0;
2869
+ } catch (e) {
2870
+ return !1;
2871
+ }
2872
+ }, t.deleteRule = function (e) {
2873
+ this.sheet.deleteRule(e), this.length--;
2874
+ }, t.getRule = function (e) {
2875
+ var t = this.sheet.cssRules[e];
2876
+ return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
2877
+ }, e;
2878
+ }(),
2879
+ $ = function () {
2880
+ function e(e) {
2881
+ var t = this.element = q(e);
2882
+ this.nodes = t.childNodes, this.length = 0;
2883
+ }
2884
+ var t = e.prototype;
2885
+ return t.insertRule = function (e, t) {
2886
+ if (e <= this.length && e >= 0) {
2887
+ var n = document.createTextNode(t),
2888
+ r = this.nodes[e];
2889
+ return this.element.insertBefore(n, r || null), this.length++, !0;
2890
+ }
2891
+ return !1;
2892
+ }, t.deleteRule = function (e) {
2893
+ this.element.removeChild(this.nodes[e]), this.length--;
2894
+ }, t.getRule = function (e) {
2895
+ return e < this.length ? this.nodes[e].textContent : "";
2896
+ }, e;
2897
+ }(),
2898
+ W = function () {
2899
+ function e(e) {
2900
+ this.rules = [], this.length = 0;
2901
+ }
2902
+ var t = e.prototype;
2903
+ return t.insertRule = function (e, t) {
2904
+ return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
2905
+ }, t.deleteRule = function (e) {
2906
+ this.rules.splice(e, 1), this.length--;
2907
+ }, t.getRule = function (e) {
2908
+ return e < this.length ? this.rules[e] : "";
2909
+ }, e;
2910
+ }(),
2911
+ U = C,
2912
+ J = {
2913
+ isServer: !C,
2914
+ useCSSOMInjection: !I
2915
+ },
2916
+ X = function () {
2917
+ function e(e, t, n) {
2918
+ void 0 === e && (e = w), void 0 === t && (t = {}), this.options = v({}, J, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && C && U && (U = !1, function (e) {
2919
+ for (var t = document.querySelectorAll(M), n = 0, r = t.length; n < r; n++) {
2920
+ var o = t[n];
2921
+ o && "active" !== o.getAttribute(N) && (F(e, o), o.parentNode && o.parentNode.removeChild(o));
2922
+ }
2923
+ }(this));
2924
+ }
2925
+ e.registerId = function (e) {
2926
+ return V(e);
2927
+ };
2928
+ var t = e.prototype;
2929
+ return t.reconstructWithOptions = function (t, n) {
2930
+ return void 0 === n && (n = !0), new e(v({}, this.options, {}, t), this.gs, n && this.names || void 0);
2931
+ }, t.allocateGSInstance = function (e) {
2932
+ return this.gs[e] = (this.gs[e] || 0) + 1;
2933
+ }, t.getTag = function () {
2934
+ return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new W(o) : r ? new H(o) : new $(o), new j(e)));
2935
+ var e, t, n, r, o;
2936
+ }, t.hasNameForId = function (e, t) {
2937
+ return this.names.has(e) && this.names.get(e).has(t);
2938
+ }, t.registerName = function (e, t) {
2939
+ if (V(e), this.names.has(e)) this.names.get(e).add(t);else {
2940
+ var n = new Set();
2941
+ n.add(t), this.names.set(e, n);
2942
+ }
2943
+ }, t.insertRules = function (e, t, n) {
2944
+ this.registerName(e, t), this.getTag().insertRules(V(e), n);
2945
+ }, t.clearNames = function (e) {
2946
+ this.names.has(e) && this.names.get(e).clear();
2947
+ }, t.clearRules = function (e) {
2948
+ this.getTag().clearGroup(V(e)), this.clearNames(e);
2949
+ }, t.clearTag = function () {
2950
+ this.tag = void 0;
2951
+ }, t.toString = function () {
2952
+ return function (e) {
2953
+ for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
2954
+ var s = z(o);
2955
+ if (void 0 !== s) {
2956
+ var i = e.names.get(s),
2957
+ a = t.getGroup(o);
2958
+ if (i && a && i.size) {
2959
+ var c = N + ".g" + o + '[id="' + s + '"]',
2960
+ u = "";
2961
+ void 0 !== i && i.forEach(function (e) {
2962
+ e.length > 0 && (u += e + ",");
2963
+ }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
2964
+ }
2965
+ }
2966
+ }
2967
+ return r;
2968
+ }(this);
2969
+ }, e;
2970
+ }(),
2971
+ Z = /(a)(d)/gi,
2972
+ K = function (e) {
2973
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
2974
+ };
2975
+ function Q(e) {
2976
+ var t,
2977
+ n = "";
2978
+ for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = K(t % 52) + n;
2979
+ return (K(t % 52) + n).replace(Z, "$1-$2");
2980
+ }
2981
+ var ee = function (e, t) {
2982
+ for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
2983
+ return e;
2984
+ },
2985
+ te = function (e) {
2986
+ return ee(5381, e);
2987
+ };
2988
+ function ne(e) {
2989
+ for (var t = 0; t < e.length; t += 1) {
2990
+ var n = e[t];
2991
+ if (E(n) && !_(n)) return !1;
2992
+ }
2993
+ return !0;
2994
+ }
2995
+ var re = te("5.3.10"),
2996
+ oe = function () {
2997
+ function e(e, t, n) {
2998
+ this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && ne(e), this.componentId = t, this.baseHash = ee(re, t), this.baseStyle = n, X.registerId(t);
2999
+ }
3000
+ return e.prototype.generateAndInjectStyles = function (e, t, n) {
3001
+ var r = this.componentId,
3002
+ o = [];
3003
+ if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
3004
+ if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
3005
+ var s = _e(this.rules, e, t, n).join(""),
3006
+ i = Q(ee(this.baseHash, s) >>> 0);
3007
+ if (!t.hasNameForId(r, i)) {
3008
+ var a = n(s, "." + i, void 0, r);
3009
+ t.insertRules(r, i, a);
3010
+ }
3011
+ o.push(i), this.staticRulesId = i;
3012
+ }
3013
+ } else {
3014
+ for (var c = this.rules.length, u = ee(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
3015
+ var h = this.rules[d];
3016
+ if ("string" == typeof h) l += h, "production" !== process.env.NODE_ENV && (u = ee(u, h + d));else if (h) {
3017
+ var p = _e(h, e, t, n),
3018
+ f = Array.isArray(p) ? p.join("") : p;
3019
+ u = ee(u, f + d), l += f;
3020
+ }
3021
+ }
3022
+ if (l) {
3023
+ var m = Q(u >>> 0);
3024
+ if (!t.hasNameForId(r, m)) {
3025
+ var v = n(l, "." + m, void 0, r);
3026
+ t.insertRules(r, m, v);
3027
+ }
3028
+ o.push(m);
3029
+ }
3030
+ }
3031
+ return o.join(" ");
3032
+ }, e;
3033
+ }(),
3034
+ se = /^\s*\/\/.*$/gm,
3035
+ ie = [":", "[", ".", "#"];
3036
+ function ae(e) {
3037
+ var t,
3038
+ n,
3039
+ r,
3040
+ o,
3041
+ s = void 0 === e ? w : e,
3042
+ i = s.options,
3043
+ a = void 0 === i ? w : i,
3044
+ c = s.plugins,
3045
+ u = void 0 === c ? S : c,
3046
+ l = new stylis_min(a),
3047
+ d = [],
3048
+ p = function (e) {
3049
+ function t(t) {
3050
+ if (t) try {
3051
+ e(t + "}");
3052
+ } catch (e) {}
3053
+ }
3054
+ return function (n, r, o, s, i, a, c, u, l, d) {
3055
+ switch (n) {
3056
+ case 1:
3057
+ if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
3058
+ break;
3059
+ case 2:
3060
+ if (0 === u) return r + "/*|*/";
3061
+ break;
3062
+ case 3:
3063
+ switch (u) {
3064
+ case 102:
3065
+ case 112:
3066
+ return e(o[0] + r), "";
3067
+ default:
3068
+ return r + (0 === d ? "/*|*/" : "");
3069
+ }
3070
+ case -2:
3071
+ r.split("/*|*/}").forEach(t);
3072
+ }
3073
+ };
3074
+ }(function (e) {
3075
+ d.push(e);
3076
+ }),
3077
+ f = function (e, r, s) {
3078
+ return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
3079
+ };
3080
+ function m(e, s, i, a) {
3081
+ void 0 === a && (a = "&");
3082
+ var c = e.replace(se, ""),
3083
+ u = s && i ? i + " " + s + " { " + c + " }" : c;
3084
+ return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
3085
+ }
3086
+ return l.use([].concat(u, [function (e, t, o) {
3087
+ 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
3088
+ }, p, function (e) {
3089
+ if (-2 === e) {
3090
+ var t = d;
3091
+ return d = [], t;
3092
+ }
3093
+ }])), m.hash = u.length ? u.reduce(function (e, t) {
3094
+ return t.name || D(15), ee(e, t.name);
3095
+ }, 5381).toString() : "", m;
3096
+ }
3097
+ var ce = React__default.default.createContext(),
3098
+ le = React__default.default.createContext(),
3099
+ de = new X(),
3100
+ he = ae();
3101
+ function pe() {
3102
+ return React.useContext(ce) || de;
3103
+ }
3104
+ function fe() {
3105
+ return React.useContext(le) || he;
3106
+ }
3107
+ var ve = function () {
3108
+ function e(e, t) {
3109
+ var n = this;
3110
+ this.inject = function (e, t) {
3111
+ void 0 === t && (t = he);
3112
+ var r = n.name + t.hash;
3113
+ e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
3114
+ }, this.toString = function () {
3115
+ return D(12, String(n.name));
3116
+ }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
3117
+ }
3118
+ return e.prototype.getName = function (e) {
3119
+ return void 0 === e && (e = he), this.name + e.hash;
3120
+ }, e;
3121
+ }(),
3122
+ ye = /([A-Z])/,
3123
+ ge = /([A-Z])/g,
3124
+ Se = /^ms-/,
3125
+ we = function (e) {
3126
+ return "-" + e.toLowerCase();
3127
+ };
3128
+ function Ee(e) {
3129
+ return ye.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
3130
+ }
3131
+ var be = function (e) {
3132
+ return null == e || !1 === e || "" === e;
3133
+ };
3134
+ function _e(e, n, r, o) {
3135
+ if (Array.isArray(e)) {
3136
+ for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
3137
+ return i;
3138
+ }
3139
+ if (be(e)) return "";
3140
+ if (_(e)) return "." + e.styledComponentId;
3141
+ if (E(e)) {
3142
+ if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
3143
+ var u = e(n);
3144
+ return "production" !== process.env.NODE_ENV && reactIsExports$1.isElement(u) && console.warn(b(e) + " 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."), _e(u, n, r, o);
3145
+ }
3146
+ var l;
3147
+ return e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : g(e) ? function e(t, n) {
3148
+ var r,
3149
+ o,
3150
+ s = [];
3151
+ for (var i in t) t.hasOwnProperty(i) && !be(t[i]) && (Array.isArray(t[i]) && t[i].isCss || E(t[i]) ? s.push(Ee(i) + ":", t[i], ";") : g(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(Ee(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitlessKeys || r.startsWith("--") ? String(o).trim() : o + "px") + ";"));
3152
+ return n ? [n + " {"].concat(s, ["}"]) : s;
3153
+ }(e) : e.toString();
3154
+ }
3155
+ var Ne = function (e) {
3156
+ return Array.isArray(e) && (e.isCss = !0), e;
3157
+ };
3158
+ function Ae(e) {
3159
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
3160
+ return E(e) || g(e) ? Ne(_e(y(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(y(e, n)));
3161
+ }
3162
+ var Ce = /invalid hook call/i,
3163
+ Ie = new Set(),
3164
+ Pe = function (e, t) {
3165
+ if ("production" !== process.env.NODE_ENV) {
3166
+ var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
3167
+ r = console.error;
3168
+ try {
3169
+ var o = !0;
3170
+ console.error = function (e) {
3171
+ if (Ce.test(e)) o = !1, Ie.delete(n);else {
3172
+ for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
3173
+ r.apply(void 0, [e].concat(s));
3174
+ }
3175
+ }, React.useRef(), o && !Ie.has(n) && (console.warn(n), Ie.add(n));
3176
+ } catch (e) {
3177
+ Ce.test(e.message) && Ie.delete(n);
3178
+ } finally {
3179
+ console.error = r;
3180
+ }
3181
+ }
3182
+ },
3183
+ Oe = function (e, t, n) {
3184
+ return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
3185
+ },
3186
+ Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
3187
+ De = /(^-|-$)/g;
3188
+ function je(e) {
3189
+ return e.replace(Re, "-").replace(De, "");
3190
+ }
3191
+ var Te = function (e) {
3192
+ return Q(te(e) >>> 0);
3193
+ };
3194
+ function xe(e) {
3195
+ return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
3196
+ }
3197
+ var ke = function (e) {
3198
+ return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
3199
+ },
3200
+ Ve = function (e) {
3201
+ return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
3202
+ };
3203
+ function ze(e, t, n) {
3204
+ var r = e[n];
3205
+ ke(t) && ke(r) ? Be(r, t) : e[n] = t;
3206
+ }
3207
+ function Be(e) {
3208
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
3209
+ for (var o = 0, s = n; o < s.length; o++) {
3210
+ var i = s[o];
3211
+ if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
3212
+ }
3213
+ return e;
3214
+ }
3215
+ var Me = React__default.default.createContext();
3216
+ var Fe = {};
3217
+ function Ye(e, t, n) {
3218
+ var o = _(e),
3219
+ i = !xe(e),
3220
+ a = t.attrs,
3221
+ c = void 0 === a ? S : a,
3222
+ d = t.componentId,
3223
+ h = void 0 === d ? function (e, t) {
3224
+ var n = "string" != typeof e ? "sc" : je(e);
3225
+ Fe[n] = (Fe[n] || 0) + 1;
3226
+ var r = n + "-" + Te("5.3.10" + n + Fe[n]);
3227
+ return t ? t + "-" + r : r;
3228
+ }(t.displayName, t.parentComponentId) : d,
3229
+ p = t.displayName,
3230
+ y = void 0 === p ? function (e) {
3231
+ return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
3232
+ }(e) : p,
3233
+ g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
3234
+ N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
3235
+ A = t.shouldForwardProp;
3236
+ o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
3237
+ return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
3238
+ } : e.shouldForwardProp);
3239
+ var C,
3240
+ I = new oe(n, g, o ? e.componentStyle : void 0),
3241
+ P = I.isStatic && 0 === c.length,
3242
+ O = function (e, t) {
3243
+ return function (e, t, n, r) {
3244
+ var o = e.attrs,
3245
+ i = e.componentStyle,
3246
+ a = e.defaultProps,
3247
+ c = e.foldedComponentIds,
3248
+ d = e.shouldForwardProp,
3249
+ h = e.styledComponentId,
3250
+ p = e.target;
3251
+ "production" !== process.env.NODE_ENV && React.useDebugValue(h);
3252
+ var m = function (e, t, n) {
3253
+ void 0 === e && (e = w);
3254
+ var r = v({}, t, {
3255
+ theme: e
3256
+ }),
3257
+ o = {};
3258
+ return n.forEach(function (e) {
3259
+ var t,
3260
+ n,
3261
+ s,
3262
+ i = e;
3263
+ for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
3264
+ }), [r, o];
3265
+ }(Oe(t, React.useContext(Me), a) || w, t, o),
3266
+ y = m[0],
3267
+ g = m[1],
3268
+ S = function (e, t, n, r) {
3269
+ var o = pe(),
3270
+ s = fe(),
3271
+ i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
3272
+ return "production" !== process.env.NODE_ENV && React.useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r && r(i), i;
3273
+ }(i, r, y, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
3274
+ b = n,
3275
+ _ = g.$as || t.$as || g.as || t.as || p,
3276
+ N = xe(_),
3277
+ A = g !== t ? v({}, t, {}, g) : t,
3278
+ C = {};
3279
+ for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
3280
+ return t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = b, React.createElement(_, C);
3281
+ }(C, e, t, P);
3282
+ };
3283
+ return O.displayName = y, (C = React__default.default.forwardRef(O)).attrs = N, C.componentStyle = I, C.displayName = y, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
3284
+ var r = t.componentId,
3285
+ o = function (e, t) {
3286
+ if (null == e) return {};
3287
+ var n,
3288
+ r,
3289
+ o = {},
3290
+ s = Object.keys(e);
3291
+ for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
3292
+ return o;
3293
+ }(t, ["componentId"]),
3294
+ s = r && r + "-" + (xe(e) ? e : je(b(e)));
3295
+ return Ye(e, v({}, o, {
3296
+ attrs: N,
3297
+ componentId: s
3298
+ }), n);
3299
+ }, Object.defineProperty(C, "defaultProps", {
3300
+ get: function () {
3301
+ return this._foldedDefaultProps;
3302
+ },
3303
+ set: function (t) {
3304
+ this._foldedDefaultProps = o ? Be({}, e.defaultProps, t) : t;
3305
+ }
3306
+ }), "production" !== process.env.NODE_ENV && (Pe(y, g), C.warnTooManyClasses = function (e, t) {
3307
+ var n = {},
3308
+ r = !1;
3309
+ return function (o) {
3310
+ if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
3311
+ var s = t ? ' with the id of "' + t + '"' : "";
3312
+ console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {};
3313
+ }
3314
+ };
3315
+ }(y, g)), Object.defineProperty(C, "toString", {
3316
+ value: function () {
3317
+ return "." + C.styledComponentId;
3318
+ }
3319
+ }), i && m(C, e, {
3320
+ attrs: !0,
3321
+ componentStyle: !0,
3322
+ displayName: !0,
3323
+ foldedComponentIds: !0,
3324
+ shouldForwardProp: !0,
3325
+ styledComponentId: !0,
3326
+ target: !0,
3327
+ withComponent: !0
3328
+ }), C;
3329
+ }
3330
+ var qe = function (e) {
3331
+ return function e(t, r, o) {
3332
+ if (void 0 === o && (o = w), !reactIsExports$1.isValidElementType(r)) return D(1, String(r));
3333
+ var s = function () {
3334
+ return t(r, o, Ae.apply(void 0, arguments));
3335
+ };
3336
+ return s.withConfig = function (n) {
3337
+ return e(t, r, v({}, o, {}, n));
3338
+ }, s.attrs = function (n) {
3339
+ return e(t, r, v({}, o, {
3340
+ attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
3341
+ }));
3342
+ }, s;
3343
+ }(Ye, e);
3344
+ };
3345
+ ["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", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
3346
+ qe[e] = qe(e);
3347
+ });
3348
+ "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1);
3349
+ var styled = qe;
1421
3350
  function Status(props) {
1422
3351
  const {
1423
3352
  text,
@@ -1439,7 +3368,13 @@ function Status(props) {
1439
3368
  })
1440
3369
  });
1441
3370
  }
1442
- const StyledStickyCard = styled__default.default(ui.Card)(() => styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n z-index: 1;\n "]))));
3371
+ var __freeze$1 = Object.freeze;
3372
+ var __defProp$1 = Object.defineProperty;
3373
+ var __template$1 = (cooked, raw) => __freeze$1(__defProp$1(cooked, "raw", {
3374
+ value: __freeze$1(raw || cooked.slice())
3375
+ }));
3376
+ var _a$1;
3377
+ const StyledStickyCard = styled(ui.Card)(() => Ae(_a$1 || (_a$1 = __template$1(["\n position: sticky;\n top: 0;\n z-index: 1;\n "]))));
1443
3378
  function StateTitle(props) {
1444
3379
  const {
1445
3380
  state,
@@ -1518,7 +3453,13 @@ function generateMultipleOrderRanks(count, start, end) {
1518
3453
  }
1519
3454
  return ranks.sort((a, b) => a.toString().localeCompare(b.toString()));
1520
3455
  }
1521
- const StyledFloatingCard = styled__default.default(ui.Card)(() => styled.css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 1000;\n "]))));
3456
+ var __freeze = Object.freeze;
3457
+ var __defProp = Object.defineProperty;
3458
+ var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", {
3459
+ value: __freeze(raw || cooked.slice())
3460
+ }));
3461
+ var _a;
3462
+ const StyledFloatingCard = styled(ui.Card)(() => Ae(_a || (_a = __template(["\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 1000;\n "]))));
1522
3463
  function FloatingCard(_ref3) {
1523
3464
  let {
1524
3465
  children
@@ -2054,10 +3995,10 @@ const workflow = sanity.definePlugin(function () {
2054
3995
  ...config
2055
3996
  };
2056
3997
  if (!(states == null ? void 0 : states.length)) {
2057
- throw new Error("Workflow plugin: Missing \"states\" in config");
3998
+ throw new Error('Workflow plugin: Missing "states" in config');
2058
3999
  }
2059
4000
  if (!(schemaTypes == null ? void 0 : schemaTypes.length)) {
2060
- throw new Error("Workflow plugin: Missing \"schemaTypes\" in config");
4001
+ throw new Error('Workflow plugin: Missing "schemaTypes" in config');
2061
4002
  }
2062
4003
  return {
2063
4004
  name: "sanity-plugin-workflow",