quantum-component-library 1.4.45-qa.4 → 1.4.45-qa.6

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.
Files changed (49) hide show
  1. package/dist/{babel-vendor-Brd7V25k.js → babel-vendor-BOM86iTb.js} +71 -76
  2. package/dist/babel-vendor-cKvSpnBp.cjs +3 -0
  3. package/dist/components.cjs +3 -3
  4. package/dist/components.js +58 -57
  5. package/dist/{dnd-core-vendor-DFyhudg3.cjs → dnd-core-vendor-BYC7cLQD.cjs} +1 -1
  6. package/dist/{dnd-core-vendor-GeFJIrqw.js → dnd-core-vendor-DvzJ584W.js} +2 -2
  7. package/dist/emotion-vendor-D6PQH2K8.cjs +1 -0
  8. package/dist/emotion-vendor-DNnoMT20.js +546 -0
  9. package/dist/floating-ui-vendor-BcB50aec.js +246 -0
  10. package/dist/floating-ui-vendor-Dsd5TAjM.cjs +1 -0
  11. package/dist/{graphql-vendor-Bp1AYkpN.cjs → graphql-vendor-B5FHuhCx.cjs} +1 -1
  12. package/dist/{graphql-vendor-D5ETG7wB.js → graphql-vendor-D_K-hLF7.js} +1 -1
  13. package/dist/hooks.cjs +1 -1
  14. package/dist/hooks.js +1 -1
  15. package/dist/lodash-vendor-D5A6v3mw.cjs +1 -0
  16. package/dist/lodash-vendor-Dz4vW7Gd.js +1120 -0
  17. package/dist/moment-vendor-1cRqq0AH.cjs +10 -0
  18. package/dist/moment-vendor-DMLRxgRE.js +2589 -0
  19. package/dist/other-react-vendor-CbZyzO2N.cjs +36 -0
  20. package/dist/other-react-vendor-ZnZFHn3v.js +598 -0
  21. package/dist/providers.cjs +1 -1
  22. package/dist/providers.js +6 -6
  23. package/dist/quantum-component-library.css +1 -1
  24. package/dist/{react-dnd-vendor-bl4guadi.js → react-dnd-vendor-CN8oCpGz.js} +30 -29
  25. package/dist/react-dnd-vendor-z_kx2PK8.cjs +2 -0
  26. package/dist/{react-select-vendor-CM41In8Q.js → react-select-vendor-BAxJ-fS5.js} +45 -43
  27. package/dist/react-select-vendor-CufHBxrs.cjs +4 -0
  28. package/dist/services.cjs +1 -1
  29. package/dist/services.js +1 -1
  30. package/dist/stylis-vendor-CdCMw5Aa.js +334 -0
  31. package/dist/stylis-vendor-DzcTLVj9.cjs +1 -0
  32. package/dist/types.cjs +1 -1
  33. package/dist/types.js +1 -1
  34. package/dist/utils.cjs +1 -1
  35. package/dist/utils.js +26 -25
  36. package/dist/vendor-DVLzEdMv.js +3717 -0
  37. package/dist/vendor-DoH3f618.cjs +1 -0
  38. package/package.json +3 -4
  39. package/dist/babel-vendor-pl7onWh-.cjs +0 -3
  40. package/dist/framer-motion-vendor-BpR8WNZk.js +0 -2945
  41. package/dist/framer-motion-vendor-DmZv69_a.cjs +0 -9
  42. package/dist/lodash-vendor-Dkc3o8vE.cjs +0 -1
  43. package/dist/lodash-vendor-KQku4vKh.js +0 -1602
  44. package/dist/react-dnd-vendor-CQ6n_Iry.cjs +0 -2
  45. package/dist/react-select-vendor-qYWfPIoq.cjs +0 -4
  46. package/dist/ui-vendor-CDpwLSe-.cjs +0 -294
  47. package/dist/ui-vendor-CTkR2JkD.js +0 -10756
  48. package/dist/vendor-D0fSwmdY.cjs +0 -90
  49. package/dist/vendor-DxZbxm3m.js +0 -13085
@@ -1,13 +1,14 @@
1
- import { j as e, u as ls } from "./vendor-DxZbxm3m.js";
2
- import { useMemo as D, useState as F, useCallback as O, useRef as as, useEffect as Y, memo as ye } from "react";
3
- import { d as We } from "./styled-components-vendor-Bvwhddj9.js";
4
- import { s as se, y as cs } from "./react-select-vendor-CM41In8Q.js";
5
- import { F as ds, a as us } from "./react-icons-vendor-TETORdU9.js";
6
- import { F as le, I as Pe, a as hs, b as $e, c as Ce, d as Qe, B, T as qe, e as He, f as Ye, g as Se, h as ie, i as Je, j as re, k as ce, l as Ke, m as $, R as ms, n as Ae, o as M, p as gs, q as ps, r as _e, S as ze, N as Ue, s as Ge, H as K, t as de, C as xs, u as Xe, V, v as G, A as be, w as ve, x as Ze, y as fs, M as js, z as bs, D as vs, E as ys, G as Cs, J as Ss, K as ws, L as Ms, O as Ie } from "./ui-vendor-CTkR2JkD.js";
7
- import { u as ee, a as oe, b as As } from "./graphql-vendor-D5ETG7wB.js";
1
+ import { j as e } from "./other-react-vendor-ZnZFHn3v.js";
2
+ import { Flex as le, InputGroup as Pe, InputLeftElement as ls, Icon as We, Input as ye, FormLabel as $e, Box as B, TableContainer as Qe, Table as qe, Thead as He, Tr as Ce, Th as ie, Tbody as Ye, Td as re, ButtonGroup as ce, Tooltip as Je, Button as $, RangeSlider as as, RangeSliderMark as Ae, Text as M, RangeSliderTrack as cs, RangeSliderFilledTrack as ds, RangeSliderThumb as _e, Select as ze, NumberInput as Ue, NumberInputField as Ge, HStack as K, Tag as de, Checkbox as us, useToast as Ke, VStack as V, FormControl as G, Alert as be, AlertIcon as ve, Spinner as Xe, useDisclosure as hs, Modal as ms, ModalOverlay as gs, ModalContent as ps, ModalHeader as xs, ModalCloseButton as fs, ModalBody as js, ModalFooter as bs, IconButton as vs, Textarea as Ie } from "@chakra-ui/react";
3
+ import { useMemo as D, useState as F, useCallback as O, useRef as ys, useEffect as Y, memo as Se } from "react";
4
+ import { u as Cs } from "./vendor-DVLzEdMv.js";
5
+ import { d as Ze } from "./styled-components-vendor-Bvwhddj9.js";
6
+ import { s as se, y as Ss } from "./react-select-vendor-BAxJ-fS5.js";
7
+ import { F as ws, a as Ms } from "./react-icons-vendor-TETORdU9.js";
8
+ import { u as ee, a as oe, b as As } from "./graphql-vendor-D_K-hLF7.js";
8
9
  import { g as W, T as je, S as k, A as ge, a as Te } from "./generated-GfcSQz21.js";
9
10
  import { A as ae, G as Ve, a as Is, C as De, b as es, c as Re, M as ss, d as Le, e as Ts, f as ts, S as Ns, g as Os, U as Rs, h as Ls, i as Fs, j as Ds, k as ks, l as Es, m as Ps } from "./graphql-DZp5ePcc.js";
10
- import { D as _s, H as zs, u as Us, a as Gs } from "./react-dnd-vendor-bl4guadi.js";
11
+ import { D as _s, H as zs, u as Us, a as Gs } from "./react-dnd-vendor-CN8oCpGz.js";
11
12
  import { getSegmentNameWithPlane as ns, getJointNameWithPlane as is, getJointAngleDirectionName as Bs, getSegmentAngleDirectionName as Ws, getNormativeJointRange as $s } from "./services.js";
12
13
  import { availablePlanes as Be, getAnalysisPartIdNoSide as pe } from "./types.js";
13
14
  import { thresholdsToParameters as Qs, parametersToThresholds as Ne, cn as qs } from "./utils.js";
@@ -26,9 +27,9 @@ const Ys = ({
26
27
  );
27
28
  return /* @__PURE__ */ e.jsxs(le, { width: "100%", alignContent: "space-evenly", gap: 4, children: [
28
29
  /* @__PURE__ */ e.jsxs(Pe, { size: "md", children: [
29
- /* @__PURE__ */ e.jsx(hs, { children: /* @__PURE__ */ e.jsx($e, { as: ds, color: "gray.300" }) }),
30
+ /* @__PURE__ */ e.jsx(ls, { children: /* @__PURE__ */ e.jsx(We, { as: ws, color: "gray.300" }) }),
30
31
  /* @__PURE__ */ e.jsx(
31
- Ce,
32
+ ye,
32
33
  {
33
34
  placeholder: "Search by name...",
34
35
  maxW: "30rem",
@@ -56,7 +57,7 @@ const Ys = ({
56
57
  ] });
57
58
  }, te = ({
58
59
  children: t
59
- }) => /* @__PURE__ */ e.jsx(Qe, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Js = ({ value: t, onChange: s }) => {
60
+ }) => /* @__PURE__ */ e.jsx($e, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Js = ({ value: t, onChange: s }) => {
60
61
  const o = F(
61
62
  () => Math.random().toString(36).substring(2, 15)
62
63
  )[0], u = O(
@@ -68,12 +69,12 @@ const Ys = ({
68
69
  },
69
70
  [s]
70
71
  );
71
- return /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(_s, { backend: zs, children: /* @__PURE__ */ e.jsx(qe, { children: /* @__PURE__ */ e.jsxs(He, { variant: "simple", size: "md", children: [
72
- /* @__PURE__ */ e.jsx(Ye, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
72
+ return /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(_s, { backend: zs, children: /* @__PURE__ */ e.jsx(Qe, { children: /* @__PURE__ */ e.jsxs(qe, { variant: "simple", size: "md", children: [
73
+ /* @__PURE__ */ e.jsx(He, { children: /* @__PURE__ */ e.jsxs(Ce, { children: [
73
74
  /* @__PURE__ */ e.jsx(ie, { children: "Order" }),
74
75
  /* @__PURE__ */ e.jsx(ie, { children: "Name" })
75
76
  ] }) }),
76
- /* @__PURE__ */ e.jsx(Je, { children: t.map((l, a) => /* @__PURE__ */ e.jsx(
77
+ /* @__PURE__ */ e.jsx(Ye, { children: t.map((l, a) => /* @__PURE__ */ e.jsx(
77
78
  Ks,
78
79
  {
79
80
  listKey: o,
@@ -86,7 +87,7 @@ const Ys = ({
86
87
  )) })
87
88
  ] }) }) }) });
88
89
  }, Ks = ({ listKey: t, index: s, id: o, name: u, move: l }) => {
89
- const a = as(null), [{ handlerId: m }, f] = Us({
90
+ const a = ys(null), [{ handlerId: m }, f] = Us({
90
91
  accept: t,
91
92
  collect: (x) => ({
92
93
  handlerId: x.getHandlerId()?.toString() ?? ""
@@ -107,7 +108,7 @@ const Ys = ({
107
108
  isDragging: x.isDragging()
108
109
  })
109
110
  }), I = j ? 0.6 : 1, p = j ? "grabbing" : "grab";
110
- return C(f(a)), /* @__PURE__ */ e.jsxs(Se, { ref: a, style: { opacity: I, cursor: p }, "data-handler-id": m, children: [
111
+ return C(f(a)), /* @__PURE__ */ e.jsxs(Ce, { ref: a, style: { opacity: I, cursor: p }, "data-handler-id": m, children: [
111
112
  /* @__PURE__ */ e.jsx(re, { children: s + 1 }),
112
113
  /* @__PURE__ */ e.jsx(re, { children: u })
113
114
  ] });
@@ -121,7 +122,7 @@ const Ys = ({
121
122
  }) => {
122
123
  const m = (j) => j === o || j.value === o, f = (j) => m(j) ? { ...a, ...l } : a;
123
124
  return /* @__PURE__ */ e.jsx(ce, { isAttached: !0, isDisabled: u, children: t.map((j, C) => /* @__PURE__ */ e.jsx(
124
- Ke,
125
+ Je,
125
126
  {
126
127
  label: j.tooltip,
127
128
  openDelay: 50,
@@ -202,7 +203,7 @@ const Ys = ({
202
203
  );
203
204
  return /* @__PURE__ */ e.jsxs(le, { direction: "column", ...x, children: [
204
205
  /* @__PURE__ */ e.jsx(B, { pt: "1em", mb: "-0.5em", children: /* @__PURE__ */ e.jsxs(
205
- ms,
206
+ as,
206
207
  {
207
208
  "aria-label": ["min", "max"],
208
209
  isReversed: t,
@@ -238,7 +239,7 @@ const Ys = ({
238
239
  /* @__PURE__ */ e.jsx(M, { fontSize: m, fontWeight: "semibold", children: j?.(0) ?? "0" }),
239
240
  /* @__PURE__ */ e.jsx(Zs, {})
240
241
  ] }),
241
- /* @__PURE__ */ e.jsx(gs, { children: /* @__PURE__ */ e.jsx(ps, {}) }),
242
+ /* @__PURE__ */ e.jsx(cs, { children: /* @__PURE__ */ e.jsx(ds, {}) }),
242
243
  /* @__PURE__ */ e.jsx(_e, { index: 0, w: c, h: c }),
243
244
  /* @__PURE__ */ e.jsx(_e, { index: 1, w: c, h: c })
244
245
  ]
@@ -363,14 +364,14 @@ const Ys = ({
363
364
  }
364
365
  )
365
366
  ] });
366
- }, Zs = We(B)`
367
+ }, Zs = Ze(B)`
367
368
  position: absolute;
368
369
  width: 2px;
369
370
  height: 1em;
370
371
  top: 90%;
371
372
  left: 20%;
372
373
  background-color: var(--chakra-colors-gray-300);
373
- `, Vs = ({ tags: t, containerProps: s, ...o }) => /* @__PURE__ */ e.jsx(K, { ...s, children: t.map((u, l) => /* @__PURE__ */ e.jsx(de, { ...o, children: u }, l)) }), et = new ls({}), st = (t, s) => {
374
+ `, Vs = ({ tags: t, containerProps: s, ...o }) => /* @__PURE__ */ e.jsx(K, { ...s, children: t.map((u, l) => /* @__PURE__ */ e.jsx(de, { ...o, children: u }, l)) }), et = new Cs({}), st = (t, s) => {
374
375
  if (!s || !s.trim().length)
375
376
  return t;
376
377
  const o = t.map((l) => l.name ?? "");
@@ -449,8 +450,8 @@ const Ys = ({
449
450
  }
450
451
  )
451
452
  ] }),
452
- /* @__PURE__ */ e.jsx(qe, { mr: "2rem", overflowX: "hidden", ...p, children: /* @__PURE__ */ e.jsxs(He, { size: "md", variant: "simple", children: [
453
- /* @__PURE__ */ e.jsx(Ye, { position: "sticky", top: 0, bg: "white", zIndex: 1, children: /* @__PURE__ */ e.jsxs(Se, { children: [
453
+ /* @__PURE__ */ e.jsx(Qe, { mr: "2rem", overflowX: "hidden", ...p, children: /* @__PURE__ */ e.jsxs(qe, { size: "md", variant: "simple", children: [
454
+ /* @__PURE__ */ e.jsx(He, { position: "sticky", top: 0, bg: "white", zIndex: 1, children: /* @__PURE__ */ e.jsxs(Ce, { children: [
454
455
  /* @__PURE__ */ e.jsxs(ie, { fontWeight: "normal", children: [
455
456
  "(showing ",
456
457
  b?.length ?? 0,
@@ -464,7 +465,7 @@ const Ys = ({
464
465
  /* @__PURE__ */ e.jsx(ie, { children: "Use Case" }),
465
466
  /* @__PURE__ */ e.jsx(ie, {})
466
467
  ] }) }),
467
- /* @__PURE__ */ e.jsx(Je, { children: b?.map((g) => /* @__PURE__ */ e.jsxs(
468
+ /* @__PURE__ */ e.jsx(Ye, { children: b?.map((g) => /* @__PURE__ */ e.jsxs(
468
469
  it,
469
470
  {
470
471
  disableMultiSelect: f,
@@ -475,7 +476,7 @@ const Ys = ({
475
476
  children: [
476
477
  /* @__PURE__ */ e.jsx(re, { children: /* @__PURE__ */ e.jsxs(le, { children: [
477
478
  a && !f && /* @__PURE__ */ e.jsx(
478
- xs,
479
+ us,
479
480
  {
480
481
  isChecked: g.selected,
481
482
  onChange: (w) => a(g, w.target.checked)
@@ -509,12 +510,12 @@ const Ys = ({
509
510
  )) })
510
511
  ] }) })
511
512
  ] });
512
- }, it = We(Se)`
513
+ }, it = Ze(Ce)`
513
514
  &:hover {
514
515
  background-color: ${(t) => t.disableMultiSelect && !t.selected ? "#f7f7f7" : void 0};
515
516
  }
516
517
  cursor: ${(t) => t.disableMultiSelect ? "pointer" : "default"};
517
- `, Ot = ({
518
+ `, Rt = ({
518
519
  onSave: t,
519
520
  onCancel: s,
520
521
  onError: o,
@@ -523,7 +524,7 @@ const Ys = ({
523
524
  setButtonOnClick: a,
524
525
  quantumOwned: m
525
526
  }) => {
526
- const f = Xe(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
527
+ const f = Ke(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
527
528
  query: Ve
528
529
  }), [r] = ee({
529
530
  query: Is,
@@ -663,7 +664,7 @@ const Ys = ({
663
664
  j && /* @__PURE__ */ e.jsxs(G, { children: [
664
665
  /* @__PURE__ */ e.jsx(te, { children: "Select Activities to Copy" }),
665
666
  U ? /* @__PURE__ */ e.jsxs(K, { children: [
666
- /* @__PURE__ */ e.jsx(Ze, { size: "sm" }),
667
+ /* @__PURE__ */ e.jsx(Xe, { size: "sm" }),
667
668
  /* @__PURE__ */ e.jsx(M, { fontSize: "sm", color: "gray.600", children: "Loading activities..." })
668
669
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
669
670
  /* @__PURE__ */ e.jsx(
@@ -809,7 +810,7 @@ const Ys = ({
809
810
  )
810
811
  ] })
811
812
  ] }) });
812
- }, Rt = ({
813
+ }, Lt = ({
813
814
  onSave: t,
814
815
  onCancel: s,
815
816
  onError: o,
@@ -818,7 +819,7 @@ const Ys = ({
818
819
  setButtonOnClick: a,
819
820
  quantumOwned: m
820
821
  }) => {
821
- const f = Xe(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
822
+ const f = Ke(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
822
823
  query: Ve
823
824
  }), [r] = ee({
824
825
  query: Ts,
@@ -997,7 +998,7 @@ const Ys = ({
997
998
  j && /* @__PURE__ */ e.jsxs(G, { children: [
998
999
  /* @__PURE__ */ e.jsx(te, { children: "Select Module to Copy" }),
999
1000
  c ? /* @__PURE__ */ e.jsxs(K, { children: [
1000
- /* @__PURE__ */ e.jsx(Ze, { size: "sm" }),
1001
+ /* @__PURE__ */ e.jsx(Xe, { size: "sm" }),
1001
1002
  /* @__PURE__ */ e.jsx(M, { fontSize: "sm", color: "gray.600", children: "Loading modules..." })
1002
1003
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1003
1004
  /* @__PURE__ */ e.jsx(
@@ -1152,7 +1153,7 @@ const Ys = ({
1152
1153
  setDescription: C,
1153
1154
  ...I
1154
1155
  }) => {
1155
- const p = fs(), x = D(() => o.map((v) => ({
1156
+ const p = hs(), x = D(() => o.map((v) => ({
1156
1157
  ...v,
1157
1158
  selected: u.includes(v.id)
1158
1159
  })), [o, u]), A = D(() => o.reduce((v, h) => (v[h.id] = h, v), {}), [o]), d = D(
@@ -1202,17 +1203,17 @@ const Ys = ({
1202
1203
  }
1203
1204
  ),
1204
1205
  /* @__PURE__ */ e.jsxs(
1205
- js,
1206
+ ms,
1206
1207
  {
1207
1208
  isOpen: p.isOpen,
1208
1209
  onClose: p.onClose,
1209
1210
  size: "6xl",
1210
1211
  children: [
1211
- /* @__PURE__ */ e.jsx(bs, {}),
1212
- /* @__PURE__ */ e.jsxs(vs, { children: [
1213
- /* @__PURE__ */ e.jsx(ys, { children: "Select Activities" }),
1214
- /* @__PURE__ */ e.jsx(Cs, {}),
1215
- /* @__PURE__ */ e.jsx(Ss, { children: /* @__PURE__ */ e.jsx(
1212
+ /* @__PURE__ */ e.jsx(gs, {}),
1213
+ /* @__PURE__ */ e.jsxs(ps, { children: [
1214
+ /* @__PURE__ */ e.jsx(xs, { children: "Select Activities" }),
1215
+ /* @__PURE__ */ e.jsx(fs, {}),
1216
+ /* @__PURE__ */ e.jsx(js, { children: /* @__PURE__ */ e.jsx(
1216
1217
  nt,
1217
1218
  {
1218
1219
  actions: x,
@@ -1225,7 +1226,7 @@ const Ys = ({
1225
1226
  }
1226
1227
  }
1227
1228
  ) }),
1228
- /* @__PURE__ */ e.jsx(ws, { children: /* @__PURE__ */ e.jsx(
1229
+ /* @__PURE__ */ e.jsx(bs, { children: /* @__PURE__ */ e.jsx(
1229
1230
  $,
1230
1231
  {
1231
1232
  colorScheme: "blue",
@@ -1239,14 +1240,14 @@ const Ys = ({
1239
1240
  }
1240
1241
  )
1241
1242
  ] });
1242
- }, rt = ye(
1243
+ }, rt = Se(
1243
1244
  ({
1244
1245
  name: t,
1245
1246
  onInputChange: s
1246
1247
  }) => /* @__PURE__ */ e.jsxs(G, { mb: 4, children: [
1247
1248
  /* @__PURE__ */ e.jsx(te, { children: "Module Name" }),
1248
1249
  /* @__PURE__ */ e.jsx(
1249
- Ce,
1250
+ ye,
1250
1251
  {
1251
1252
  placeholder: "i.e. ACL RTP Test Battery",
1252
1253
  value: t,
@@ -1255,7 +1256,7 @@ const Ys = ({
1255
1256
  }
1256
1257
  )
1257
1258
  ] })
1258
- ), lt = ye(
1259
+ ), lt = Se(
1259
1260
  ({
1260
1261
  availableCategories: t,
1261
1262
  value: s,
@@ -1289,7 +1290,7 @@ const Ys = ({
1289
1290
  )
1290
1291
  ] });
1291
1292
  }
1292
- ), at = ye(
1293
+ ), at = Se(
1293
1294
  ({
1294
1295
  description: t,
1295
1296
  onInputChange: s
@@ -1299,7 +1300,7 @@ const Ys = ({
1299
1300
  /* @__PURE__ */ e.jsx(M, { fontSize: "sm", color: "gray.500", children: "Briefly describe the objective of this module. Max 40 words." })
1300
1301
  ] }) }),
1301
1302
  /* @__PURE__ */ e.jsx(
1302
- Ce,
1303
+ ye,
1303
1304
  {
1304
1305
  placeholder: "i.e. Assess readiness to return to play post-ACL reconstruction",
1305
1306
  value: t,
@@ -1307,7 +1308,7 @@ const Ys = ({
1307
1308
  }
1308
1309
  )
1309
1310
  ] })
1310
- ), ct = ye(
1311
+ ), ct = Se(
1311
1312
  ({
1312
1313
  value: t,
1313
1314
  onChange: s,
@@ -1451,12 +1452,12 @@ const Ys = ({
1451
1452
  }
1452
1453
  ),
1453
1454
  u && /* @__PURE__ */ e.jsx(
1454
- Ms,
1455
+ vs,
1455
1456
  {
1456
1457
  size: "xs",
1457
1458
  variant: "ghost",
1458
1459
  "aria-label": "delete",
1459
- icon: /* @__PURE__ */ e.jsx($e, { as: us }),
1460
+ icon: /* @__PURE__ */ e.jsx(We, { as: Ms }),
1460
1461
  onClick: u
1461
1462
  }
1462
1463
  ),
@@ -1632,7 +1633,7 @@ const Ys = ({
1632
1633
  value: t
1633
1634
  })), Oe = (t) => t.map(
1634
1635
  (s) => s.__isNew__ ? { name: s.label } : { id: s.value, name: s.label }
1635
- ), Lt = ({
1636
+ ), Ft = ({
1636
1637
  id: t,
1637
1638
  onError: s,
1638
1639
  onCancel: o,
@@ -1780,7 +1781,7 @@ const Ys = ({
1780
1781
  /* @__PURE__ */ e.jsxs(G, { children: [
1781
1782
  /* @__PURE__ */ e.jsx(Z, { children: "Name" }),
1782
1783
  /* @__PURE__ */ e.jsx(
1783
- Ce,
1784
+ ye,
1784
1785
  {
1785
1786
  value: b,
1786
1787
  onChange: (N) => v(N.target.value),
@@ -1850,13 +1851,13 @@ const Ys = ({
1850
1851
  /* @__PURE__ */ e.jsxs(G, { children: [
1851
1852
  /* @__PURE__ */ e.jsx(Z, { children: "Use Cases" }),
1852
1853
  /* @__PURE__ */ e.jsx(
1853
- Ke,
1854
+ Je,
1854
1855
  {
1855
1856
  isOpen: z,
1856
1857
  label: "Type to search for existing use cases",
1857
1858
  placement: "top-end",
1858
1859
  children: /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(
1859
- cs,
1860
+ Ss,
1860
1861
  {
1861
1862
  value: y,
1862
1863
  onChange: (N) => L([...N]),
@@ -1955,7 +1956,7 @@ const Ys = ({
1955
1956
  }
1956
1957
  )
1957
1958
  ] });
1958
- }, Z = ({ children: t }) => /* @__PURE__ */ e.jsx(Qe, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Ft = ({
1959
+ }, Z = ({ children: t }) => /* @__PURE__ */ e.jsx($e, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Dt = ({
1959
1960
  id: t,
1960
1961
  onCancel: s,
1961
1962
  onSave: o,
@@ -2068,11 +2069,11 @@ const Ys = ({
2068
2069
  };
2069
2070
  export {
2070
2071
  nt as ActivityList,
2071
- Ot as CopyActivityForm,
2072
- Rt as CopyModuleForm,
2072
+ Rt as CopyActivityForm,
2073
+ Lt as CopyModuleForm,
2073
2074
  ot as ModuleForm,
2074
2075
  dt as ParameterEditList,
2075
2076
  ht as ParameterEditSelect,
2076
- Lt as UpsertActivityForm,
2077
- Ft as UpsertModuleForm
2077
+ Ft as UpsertActivityForm,
2078
+ Dt as UpsertModuleForm
2078
2079
  };
@@ -1 +1 @@
1
- "use strict";const M=require("./vendor-D0fSwmdY.cjs"),s=require("./react-dnd-vendor-CQ6n_Iry.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
1
+ "use strict";const M=require("./vendor-DoH3f618.cjs"),s=require("./react-dnd-vendor-z_kx2PK8.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
@@ -1,5 +1,5 @@
1
- import { c as j } from "./vendor-DxZbxm3m.js";
2
- import { i as s, b as M } from "./react-dnd-vendor-bl4guadi.js";
1
+ import { c as j } from "./vendor-DVLzEdMv.js";
2
+ import { i as s, b as M } from "./react-dnd-vendor-CN8oCpGz.js";
3
3
  function H(t, e, r) {
4
4
  return e.split(".").reduce(
5
5
  (n, i) => n && n[i] ? n[i] : r || null,
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./stylis-vendor-DzcTLVj9.cjs"),M=require("react");function R(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const S=R(M);function O(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function v(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var _=(function(){function e(n){var a=this;this._insertTag=function(s){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(s,i),a.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(a){a.forEach(this._insertTag)},r.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(v(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=O(s);try{i.insertRule(a,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(a));this.ctr++},r.flush=function(){this.tags.forEach(function(a){var s;return(s=a.parentNode)==null?void 0:s.removeChild(a)}),this.tags=[],this.ctr=0},e})();function P(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var N=function(r,n,a){for(var s=0,i=0;s=i,i=t.peek(),s===38&&i===12&&(n[a]=1),!t.token(i);)t.next();return t.slice(r,t.position)},F=function(r,n){var a=-1,s=44;do switch(t.token(s)){case 0:s===38&&t.peek()===12&&(n[a]=1),r[a]+=N(t.position-1,n,a);break;case 2:r[a]+=t.delimit(s);break;case 4:if(s===44){r[++a]=t.peek()===58?"&\f":"",n[a]=r[a].length;break}default:r[a]+=t.from(s)}while(s=t.next());return r},G=function(r,n){return t.dealloc(F(t.alloc(r),n))},E=new WeakMap,L=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var n=r.value,a=r.parent,s=r.column===a.column&&r.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(r.props.length===1&&n.charCodeAt(0)!==58&&!E.get(a))&&!s){E.set(r,!0);for(var i=[],c=G(n,i),f=a.props,o=0,u=0;o<c.length;o++)for(var d=0;d<f.length;d++,u++)r.props[u]=i[o]?c[o].replace(/&\f/g,f[d]):f[d]+" "+c[o]}}},D=function(r){if(r.type==="decl"){var n=r.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(r.return="",r.value="")}};function W(e,r){switch(t.hash(e,r)){case 5103:return t.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return t.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return t.WEBKIT+e+t.MOZ+e+t.MS+e+e;case 6828:case 4268:return t.WEBKIT+e+t.MS+e+e;case 6165:return t.WEBKIT+e+t.MS+"flex-"+e+e;case 5187:return t.WEBKIT+e+t.replace(e,/(\w+).+(:[^]+)/,t.WEBKIT+"box-$1$2"+t.MS+"flex-$1$2")+e;case 5443:return t.WEBKIT+e+t.MS+"flex-item-"+t.replace(e,/flex-|-self/,"")+e;case 4675:return t.WEBKIT+e+t.MS+"flex-line-pack"+t.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return t.WEBKIT+e+t.MS+t.replace(e,"shrink","negative")+e;case 5292:return t.WEBKIT+e+t.MS+t.replace(e,"basis","preferred-size")+e;case 6060:return t.WEBKIT+"box-"+t.replace(e,"-grow","")+t.WEBKIT+e+t.MS+t.replace(e,"grow","positive")+e;case 4554:return t.WEBKIT+t.replace(e,/([^-])(transform)/g,"$1"+t.WEBKIT+"$2")+e;case 6187:return t.replace(t.replace(t.replace(e,/(zoom-|grab)/,t.WEBKIT+"$1"),/(image-set)/,t.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return t.replace(e,/(image-set\([^]*)/,t.WEBKIT+"$1$`$1");case 4968:return t.replace(t.replace(e,/(.+:)(flex-)?(.*)/,t.WEBKIT+"box-pack:$3"+t.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+t.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return t.replace(e,/(.+)-inline(.+)/,t.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(t.strlen(e)-1-r>6)switch(t.charat(e,r+1)){case 109:if(t.charat(e,r+4)!==45)break;case 102:return t.replace(e,/(.+:)(.+)-([^]+)/,"$1"+t.WEBKIT+"$2-$3$1"+t.MOZ+(t.charat(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~t.indexof(e,"stretch")?W(t.replace(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(t.charat(e,r+1)!==115)break;case 6444:switch(t.charat(e,t.strlen(e)-3-(~t.indexof(e,"!important")&&10))){case 107:return t.replace(e,":",":"+t.WEBKIT)+e;case 101:return t.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+t.WEBKIT+(t.charat(e,14)===45?"inline-":"")+"box$3$1"+t.WEBKIT+"$2$3$1"+t.MS+"$2box$3")+e}break;case 5936:switch(t.charat(e,r+11)){case 114:return t.WEBKIT+e+t.MS+t.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return t.WEBKIT+e+t.MS+t.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return t.WEBKIT+e+t.MS+t.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return t.WEBKIT+e+t.MS+e+e}return e}var V=function(r,n,a,s){if(r.length>-1&&!r.return)switch(r.type){case t.DECLARATION:r.return=W(r.value,r.length);break;case t.KEYFRAMES:return t.serialize([t.copy(r,{value:t.replace(r.value,"@","@"+t.WEBKIT)})],s);case t.RULESET:if(r.length)return t.combine(r.props,function(i){switch(t.match(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return t.serialize([t.copy(r,{props:[t.replace(i,/:(read-\w+)/,":"+t.MOZ+"$1")]})],s);case"::placeholder":return t.serialize([t.copy(r,{props:[t.replace(i,/:(plac\w+)/,":"+t.WEBKIT+"input-$1")]}),t.copy(r,{props:[t.replace(i,/:(plac\w+)/,":"+t.MOZ+"$1")]}),t.copy(r,{props:[t.replace(i,/:(plac\w+)/,t.MS+"input-$1")]})],s)}return""})}},Z=[V],q=function(r){var n=r.key;if(n==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(l){var p=l.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var s=r.stylisPlugins||Z,i={},c,f=[];c=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(l){for(var p=l.getAttribute("data-emotion").split(" "),y=1;y<p.length;y++)i[p[y]]=!0;f.push(l)});var o,u=[L,D];{var d,x=[t.stringify,t.rulesheet(function(l){d.insert(l)})],C=t.middleware(u.concat(s,x)),K=function(p){return t.serialize(t.compile(p),C)};o=function(p,y,A,k){d=A,K(p?p+"{"+y.styles+"}":y.styles),k&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new _({key:n,container:c,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(f),g},z=!0;function j(e,r,n){var a="";return n.split(" ").forEach(function(s){e[s]!==void 0?r.push(e[s]+";"):s&&(a+=s+" ")}),a}var $=function(r,n,a){var s=r.key+"-"+n.name;(a===!1||z===!1)&&r.registered[s]===void 0&&(r.registered[s]=n.styles)},H=function(r,n,a){$(r,n,a);var s=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var i=n;do r.insert(n===i?"."+s:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function U(e){for(var r=0,n,a=0,s=e.length;s>=4;++a,s-=4)n=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(s){case 3:r^=(e.charCodeAt(a+2)&255)<<16;case 2:r^=(e.charCodeAt(a+1)&255)<<8;case 1:r^=e.charCodeAt(a)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Y={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},J=/[A-Z]|^ms/g,Q=/_EMO_([^_]+?)_([^]*?)_EMO_/g,B=function(r){return r.charCodeAt(1)===45},w=function(r){return r!=null&&typeof r!="boolean"},m=P(function(e){return B(e)?e:e.replace(J,"-$&").toLowerCase()}),I=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(Q,function(a,s,i){return h={name:s,styles:i,next:h},s})}return Y[r]!==1&&!B(r)&&typeof n=="number"&&n!==0?n+"px":n};function b(e,r,n){if(n==null)return"";var a=n;if(a.__emotion_styles!==void 0)return a;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return h={name:s.name,styles:s.styles,next:h},s.name;var i=n;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)h={name:c.name,styles:c.styles,next:h},c=c.next;var f=i.styles+";";return f}return X(e,r,n)}case"function":{if(e!==void 0){var o=h,u=n(e);return h=o,b(e,r,u)}break}}var d=n;return d}function X(e,r,n){var a="";if(Array.isArray(n))for(var s=0;s<n.length;s++)a+=b(e,r,n[s])+";";else for(var i in n){var c=n[i];if(typeof c!="object"){var f=c;w(f)&&(a+=m(i)+":"+I(i,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&r==null)for(var o=0;o<c.length;o++)w(c[o])&&(a+=m(i)+":"+I(i,c[o])+";");else{var u=b(e,r,c);switch(i){case"animation":case"animationName":{a+=m(i)+":"+u+";";break}default:a+=i+"{"+u+"}"}}}return a}var T=/label:\s*([^\s;{]+)\s*(;|$)/g,h;function ee(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,s="";h=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,s+=b(n,r,i);else{var c=i;s+=c[0]}for(var f=1;f<e.length;f++)if(s+=b(n,r,e[f]),a){var o=i;s+=o[f]}T.lastIndex=0;for(var u="",d;(d=T.exec(s))!==null;)u+="-"+d[1];var x=U(s)+u;return{name:x,styles:s,next:h}}var re=function(r){return r()},te=S.useInsertionEffect?S.useInsertionEffect:!1,ne=te||re;exports.createCache=q;exports.getRegisteredStyles=j;exports.insertStyles=H;exports.registerStyles=$;exports.serializeStyles=ee;exports.useInsertionEffectAlwaysWithSyncFallback=ne;