@snowcone-app/canvas 0.23.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/ERROR_CONTRACT.md +638 -0
  2. package/README.md +2 -1
  3. package/STYLING_CONTRACT.md +59 -8
  4. package/dist/{CanvasRenderer-6_HhR4-q.js → CanvasRenderer-yszzrDfo.js} +4 -4
  5. package/dist/{CanvasRenderer-6_HhR4-q.js.map → CanvasRenderer-yszzrDfo.js.map} +1 -1
  6. package/dist/{CanvasStateV1-DmZ1Qvvn.js → CanvasStateV1-BTbCD_xC.js} +3 -3
  7. package/dist/{CanvasStateV1-DmZ1Qvvn.js.map → CanvasStateV1-BTbCD_xC.js.map} +1 -1
  8. package/dist/{ContextualToolbars-BDEt9ND0.js → ContextualToolbars-BHjYsril.js} +6 -6
  9. package/dist/{ContextualToolbars-BDEt9ND0.js.map → ContextualToolbars-BHjYsril.js.map} +1 -1
  10. package/dist/{EditorCanvasImpl-Ckg7WO2j.js → EditorCanvasImpl-Ui8Ceb-h.js} +8 -8
  11. package/dist/{EditorCanvasImpl-Ckg7WO2j.js.map → EditorCanvasImpl-Ui8Ceb-h.js.map} +1 -1
  12. package/dist/{ExportManager-DoU4VK6h.js → ExportManager-BTcyj4cf.js} +2 -2
  13. package/dist/{ExportManager-DoU4VK6h.js.map → ExportManager-BTcyj4cf.js.map} +1 -1
  14. package/dist/{FontAnalyzer-CwIpgTGd.js → FontAnalyzer-EF3gLPr8.js} +30 -20
  15. package/dist/{FontAnalyzer-CwIpgTGd.js.map → FontAnalyzer-EF3gLPr8.js.map} +1 -1
  16. package/dist/{ImagePanel-BwqFDKvW.js → ImagePanel-CIk6z41z.js} +6 -6
  17. package/dist/{ImagePanel-BwqFDKvW.js.map → ImagePanel-CIk6z41z.js.map} +1 -1
  18. package/dist/{SnowconeCanvas-D1sLcIja.js → SnowconeCanvas-DuWALOAt.js} +10 -10
  19. package/dist/{SnowconeCanvas-D1sLcIja.js.map → SnowconeCanvas-DuWALOAt.js.map} +1 -1
  20. package/dist/{UnifiedFontService-CC3CSmH5.js → UnifiedFontService-CHVYDBDW.js} +869 -836
  21. package/dist/{UnifiedFontService-CC3CSmH5.js.map → UnifiedFontService-CHVYDBDW.js.map} +1 -1
  22. package/dist/advanced.mjs +14 -14
  23. package/dist/api/embed.d.ts +6 -2
  24. package/dist/components/editor/EditorLoadingOverlay.d.ts +12 -0
  25. package/dist/components/editor/EditorPlacements.d.ts +14 -0
  26. package/dist/components/editor/EditorPreview.d.ts +32 -8
  27. package/dist/components/editor/EditorRoot.d.ts +12 -0
  28. package/dist/components/editor/PreviewPrismOverlay.d.ts +23 -0
  29. package/dist/components/editor/RootInternals.d.ts +31 -0
  30. package/dist/components/editor/editorAudit.d.ts +66 -0
  31. package/dist/components/editor/index.d.ts +14 -0
  32. package/dist/components/editor/usePlacements.d.ts +14 -0
  33. package/dist/components/embed-realtime/context.d.ts +11 -2
  34. package/dist/components/embed-realtime/validateEmbed.d.ts +20 -1
  35. package/dist/contexts/EditorContext.d.ts +34 -0
  36. package/dist/core/HybridHistoryManager.d.ts +7 -0
  37. package/dist/core/elementGuards.d.ts +19 -0
  38. package/dist/{custom-icons-BW6hqmkL.js → custom-icons-CcLMyybv.js} +7 -7
  39. package/dist/{custom-icons-BW6hqmkL.js.map → custom-icons-CcLMyybv.js.map} +1 -1
  40. package/dist/design/design-builder.d.ts +41 -3
  41. package/dist/design/product-config.d.ts +10 -0
  42. package/dist/{design-builder-2VUjfmdt.js → design-builder-cZY958Rw.js} +109 -61
  43. package/dist/design-builder-cZY958Rw.js.map +1 -0
  44. package/dist/editorErrors-BhrZ_nwj.js +1219 -0
  45. package/dist/editorErrors-BhrZ_nwj.js.map +1 -0
  46. package/dist/embed-CJswRZte.js +1586 -0
  47. package/dist/embed-CJswRZte.js.map +1 -0
  48. package/dist/embed.mjs +42 -34
  49. package/dist/errors/editorError.d.ts +29 -1
  50. package/dist/{guards-8rkFAMBs.js → guards-DIX8aXWM.js} +2 -2
  51. package/dist/{guards-8rkFAMBs.js.map → guards-DIX8aXWM.js.map} +1 -1
  52. package/dist/hooks/elementPatch.d.ts +96 -0
  53. package/dist/hooks/useCommands.d.ts +20 -0
  54. package/dist/index.mjs +8 -8
  55. package/dist/internals.mjs +9 -9
  56. package/dist/style.css +1 -1
  57. package/dist/template-fields-BXl29sgh.js +716 -0
  58. package/dist/template-fields-BXl29sgh.js.map +1 -0
  59. package/dist/testing.mjs +4 -4
  60. package/dist/{usePieceGuideBundle-CbJJg66S.js → usePieceGuideBundle-DE21DQGZ.js} +2 -2
  61. package/dist/{usePieceGuideBundle-CbJJg66S.js.map → usePieceGuideBundle-DE21DQGZ.js.map} +1 -1
  62. package/dist/{validation-C9Fe9ahK.js → validation-DGXAQmUC.js} +11 -11
  63. package/dist/{validation-C9Fe9ahK.js.map → validation-DGXAQmUC.js.map} +1 -1
  64. package/example/package.json +1 -1
  65. package/llms.txt +3 -0
  66. package/package.json +7 -4
  67. package/dist/design-builder-2VUjfmdt.js.map +0 -1
  68. package/dist/editorErrors-B2mb1sVN.js +0 -1208
  69. package/dist/editorErrors-B2mb1sVN.js.map +0 -1
  70. package/dist/embed-DxsaqZJF.js +0 -1226
  71. package/dist/embed-DxsaqZJF.js.map +0 -1
  72. package/dist/template-fields-CQ6n2P4V.js +0 -548
  73. package/dist/template-fields-CQ6n2P4V.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { jsx as f, jsxs as j, Fragment as tn } from "react/jsx-runtime";
1
+ import { jsx as f, jsxs as j, Fragment as nn } from "react/jsx-runtime";
2
2
  import * as O from "react";
3
- import te, { useRef as G, useState as H, useCallback as N, useMemo as q, useEffect as W, forwardRef as Tn, createElement as vn, useLayoutEffect as Dr, memo as Ho, useReducer as Uo, useContext as He, createContext as Xe, cloneElement as Vo, useId as Go, useSyncExternalStore as Mr } from "react";
4
- import { u as In, h as Wo, g as Pt, r as _o, j as qo, k as Lr, d as Yo } from "./editorErrors-B2mb1sVN.js";
5
- import { G as Ie, c as ot, C as nn } from "./FontAnalyzer-CwIpgTGd.js";
6
- import { g as Ko, I as rn, E as on } from "./ExportManager-DoU4VK6h.js";
7
- import { createPortal as Nn, unstable_batchedUpdates as Nt } from "react-dom";
8
- import { clsx as Rr } from "clsx";
9
- import { extendTailwindMerge as Tr } from "tailwind-merge";
10
- import { Slot as Xo } from "@radix-ui/react-slot";
11
- import { cva as Ir } from "class-variance-authority";
3
+ import te, { useRef as G, useState as H, useCallback as N, useMemo as q, useEffect as W, forwardRef as In, createElement as yn, useLayoutEffect as Nn, memo as Go, useReducer as Wo, useContext as je, createContext as Xe, cloneElement as _o, useId as Lr, useSyncExternalStore as Rr } from "react";
4
+ import { u as On, h as qo, g as Pt, r as Yo, j as Ko, k as Tr, d as Xo } from "./editorErrors-BhrZ_nwj.js";
5
+ import { G as Ie, c as ot, C as rn } from "./FontAnalyzer-EF3gLPr8.js";
6
+ import { g as Jo, I as on, E as sn } from "./ExportManager-BTcyj4cf.js";
7
+ import { createPortal as zn, unstable_batchedUpdates as Nt } from "react-dom";
8
+ import { clsx as Ir } from "clsx";
9
+ import { extendTailwindMerge as Nr } from "tailwind-merge";
10
+ import { Slot as Qo } from "@radix-ui/react-slot";
11
+ import { cva as Or } from "class-variance-authority";
12
12
  import * as tt from "@radix-ui/react-tooltip";
13
- const Jo = {
13
+ const Zo = {
14
14
  "eos-icons:loading": {
15
15
  body: '<path fill="currentColor" d="M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z" opacity=".5"/><path fill="currentColor" d="M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"><animateTransform attributeName="transform" dur="1s" from="0 12 12" repeatCount="indefinite" to="360 12 12" type="rotate"/></path>',
16
16
  width: 24,
@@ -476,23 +476,23 @@ const Jo = {
476
476
  width: 15,
477
477
  height: 15
478
478
  }
479
- }, Nr = typeof window < "u";
480
- async function Qo() {
481
- if (!Nr) return;
482
- const { addIcon: e } = await Promise.resolve().then(() => Xi);
483
- for (const [t, n] of Object.entries(Jo))
479
+ }, zr = typeof window < "u";
480
+ async function ei() {
481
+ if (!zr) return;
482
+ const { addIcon: e } = await Promise.resolve().then(() => Qi);
483
+ for (const [t, n] of Object.entries(Zo))
484
484
  e(t, n);
485
485
  }
486
- let sn = !1;
487
- function Fl() {
488
- sn || !Nr || (sn = !0, Qo().catch(() => {
489
- sn = !1;
486
+ let an = !1;
487
+ function Pl() {
488
+ an || !zr || (an = !0, ei().catch(() => {
489
+ an = !1;
490
490
  }));
491
491
  }
492
- const ie = ot("Layers"), Zo = 150;
493
- async function Qn(e, t = 64, n = "transparent") {
492
+ const ie = ot("Layers"), ti = 150;
493
+ async function er(e, t = 64, n = "transparent") {
494
494
  try {
495
- const r = Ko();
495
+ const r = Jo();
496
496
  return r && r(e, {
497
497
  width: t,
498
498
  height: t,
@@ -503,7 +503,7 @@ async function Qn(e, t = 64, n = "transparent") {
503
503
  return ie.error("Failed to generate preview:", r), null;
504
504
  }
505
505
  }
506
- function Or(e, t, n, r, o, i = 0, s = null) {
506
+ function Fr(e, t, n, r, o, i = 0, s = null) {
507
507
  return (i > 0 ? e : e.filter((l) => {
508
508
  const c = l.parentId ?? null;
509
509
  return l instanceof Ie, c === null;
@@ -523,7 +523,7 @@ function Or(e, t, n, r, o, i = 0, s = null) {
523
523
  await o(l.id);
524
524
  }
525
525
  };
526
- return c && l instanceof Ie && (d.children = Or(
526
+ return c && l instanceof Ie && (d.children = Fr(
527
527
  l.children,
528
528
  t,
529
529
  n,
@@ -534,13 +534,13 @@ function Or(e, t, n, r, o, i = 0, s = null) {
534
534
  )), d;
535
535
  });
536
536
  }
537
- function zr(e) {
537
+ function Pr(e) {
538
538
  const t = [];
539
539
  for (const n of e)
540
- t.push(n), n.children && t.push(...zr(n.children));
540
+ t.push(n), n.children && t.push(...Pr(n.children));
541
541
  return t;
542
542
  }
543
- function ei(e = {}) {
543
+ function ni(e = {}) {
544
544
  var ce;
545
545
  const {
546
546
  artboardId: t,
@@ -559,10 +559,10 @@ function ei(e = {}) {
559
559
  executeAddElement: g,
560
560
  executeRemoveElement: x,
561
561
  executeReorderElement: w
562
- } = In(), p = G(/* @__PURE__ */ new Map()), [m, E] = H(0), A = c.getActiveArtboardId(), M = t !== void 0 ? t : A, T = M ? (ce = c.getArtboard) == null ? void 0 : ce.call(c, M) : null, y = o ?? (T == null ? void 0 : T.backgroundColor) ?? "transparent", S = N(async (k) => {
562
+ } = On(), p = G(/* @__PURE__ */ new Map()), [m, E] = H(0), A = c.getActiveArtboardId(), M = t !== void 0 ? t : A, T = M ? (ce = c.getArtboard) == null ? void 0 : ce.call(c, M) : null, y = o ?? (T == null ? void 0 : T.backgroundColor) ?? "transparent", S = N(async (k) => {
563
563
  const C = s.find((z) => z.id === k);
564
564
  if (!C) return;
565
- const I = await Qn(C, r, y);
565
+ const I = await er(C, r, y);
566
566
  p.current.set(k, I), E((z) => z + 1);
567
567
  }, [s, r, y]), v = q(() => {
568
568
  let k = s;
@@ -571,13 +571,13 @@ function ei(e = {}) {
571
571
  k = k.filter((I) => C.includes(I.id));
572
572
  }
573
573
  return n || (k = k.filter((C) => C.visible !== !1)), k;
574
- }, [s, M, n, c]), L = q(() => Or(
574
+ }, [s, M, n, c]), L = q(() => Fr(
575
575
  v,
576
576
  a,
577
577
  l,
578
578
  p.current,
579
579
  S
580
- ), [v, a, l, S, m]), b = q(() => zr(L), [L]), D = q(() => b.filter((k) => k.isSelected), [b]), R = N((k, C = !1) => {
580
+ ), [v, a, l, S, m]), b = q(() => Pr(L), [L]), D = q(() => b.filter((k) => k.isSelected), [b]), R = N((k, C = !1) => {
581
581
  C ? l.includes(k) ? h(l.filter((I) => I !== k)) : h([...l, k]) : u(k);
582
582
  }, [l, h, u]), F = N((k) => {
583
583
  h(k);
@@ -674,8 +674,8 @@ function ei(e = {}) {
674
674
  y: ae
675
675
  });
676
676
  me.children = C.map((ne) => {
677
- const je = ne.clone();
678
- return je.x = ne.x - Z, je.y = ne.y - ae, je;
677
+ const $e = ne.clone();
678
+ return $e.x = ne.x - Z, $e.y = ne.y - ae, $e;
679
679
  }), C.forEach((ne) => x(ne)), g(me, K), u(me.id), h([]);
680
680
  }, [s, c, x, g, u, h]), Oe = N((k) => {
681
681
  const C = s.find((P) => P.id === k);
@@ -705,7 +705,7 @@ function ei(e = {}) {
705
705
  }, [s, c, x, g, u, h]), Se = N(async (k = r) => {
706
706
  const C = async (I) => {
707
707
  for (const z of I) {
708
- const K = await Qn(z, k, y);
708
+ const K = await er(z, k, y);
709
709
  p.current.set(z.id, K), z instanceof Ie && z.children.length > 0 && await C(z.children);
710
710
  }
711
711
  };
@@ -715,7 +715,7 @@ function ei(e = {}) {
715
715
  if (!i) return;
716
716
  const k = setTimeout(() => {
717
717
  Se();
718
- }, Zo);
718
+ }, ti);
719
719
  return () => clearTimeout(k);
720
720
  }, [i, Se]);
721
721
  const le = N(() => {
@@ -737,8 +737,8 @@ function ei(e = {}) {
737
737
  ie.warn(`Children not found in group for reorder: ${k}, ${C}`);
738
738
  return;
739
739
  }
740
- const [me] = P.children.splice(Z, 1), ne = P.children.findIndex((Te) => Te.id === C), je = I === "before" ? ne : ne + 1;
741
- P.children.splice(je, 0, me), d(P);
740
+ const [me] = P.children.splice(Z, 1), ne = P.children.findIndex((Te) => Te.id === C), $e = I === "before" ? ne : ne + 1;
741
+ P.children.splice($e, 0, me), d(P);
742
742
  },
743
743
  [s, d]
744
744
  ), se = N(
@@ -832,7 +832,7 @@ function ei(e = {}) {
832
832
  layerCount: b.length
833
833
  };
834
834
  }
835
- function ti(e, t) {
835
+ function ri(e, t) {
836
836
  const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
837
837
  function i(s) {
838
838
  if (n[s]) return o[s] = [];
@@ -845,7 +845,7 @@ function ti(e, t) {
845
845
  }
846
846
  return Object.keys(n).concat(Object.keys(r)).forEach(i), o;
847
847
  }
848
- const Fr = Object.freeze({
848
+ const jr = Object.freeze({
849
849
  left: 0,
850
850
  top: 0,
851
851
  width: 16,
@@ -854,74 +854,74 @@ const Fr = Object.freeze({
854
854
  rotate: 0,
855
855
  vFlip: !1,
856
856
  hFlip: !1
857
- }), On = Object.freeze({
858
- ...Fr,
857
+ }), Fn = Object.freeze({
858
+ ...jr,
859
859
  ...jt
860
- }), yn = Object.freeze({
861
- ...On,
860
+ }), bn = Object.freeze({
861
+ ...Fn,
862
862
  body: "",
863
863
  hidden: !1
864
864
  });
865
- function ni(e, t) {
865
+ function oi(e, t) {
866
866
  const n = {};
867
867
  !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
868
868
  const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
869
869
  return r && (n.rotate = r), n;
870
870
  }
871
- function Zn(e, t) {
872
- const n = ni(e, t);
873
- for (const r in yn) r in jt ? r in e && !(r in n) && (n[r] = jt[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
871
+ function tr(e, t) {
872
+ const n = oi(e, t);
873
+ for (const r in bn) r in jt ? r in e && !(r in n) && (n[r] = jt[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
874
874
  return n;
875
875
  }
876
- function ri(e, t, n) {
876
+ function ii(e, t, n) {
877
877
  const r = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
878
878
  let i = {};
879
879
  function s(a) {
880
- i = Zn(r[a] || o[a], i);
880
+ i = tr(r[a] || o[a], i);
881
881
  }
882
- return s(t), n.forEach(s), Zn(e, i);
882
+ return s(t), n.forEach(s), tr(e, i);
883
883
  }
884
- function Pr(e, t) {
884
+ function $r(e, t) {
885
885
  const n = [];
886
886
  if (typeof e != "object" || typeof e.icons != "object") return n;
887
887
  e.not_found instanceof Array && e.not_found.forEach((o) => {
888
888
  t(o, null), n.push(o);
889
889
  });
890
- const r = ti(e);
890
+ const r = ri(e);
891
891
  for (const o in r) {
892
892
  const i = r[o];
893
- i && (t(o, ri(e, o, i)), n.push(o));
893
+ i && (t(o, ii(e, o, i)), n.push(o));
894
894
  }
895
895
  return n;
896
896
  }
897
- const oi = {
897
+ const si = {
898
898
  provider: "",
899
899
  aliases: {},
900
900
  not_found: {},
901
- ...Fr
901
+ ...jr
902
902
  };
903
- function an(e, t) {
903
+ function ln(e, t) {
904
904
  for (const n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
905
905
  return !0;
906
906
  }
907
- function jr(e) {
907
+ function Br(e) {
908
908
  if (typeof e != "object" || e === null) return null;
909
909
  const t = e;
910
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !an(e, oi)) return null;
910
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ln(e, si)) return null;
911
911
  const n = t.icons;
912
912
  for (const o in n) {
913
913
  const i = n[o];
914
- if (!o || typeof i.body != "string" || !an(i, yn)) return null;
914
+ if (!o || typeof i.body != "string" || !ln(i, bn)) return null;
915
915
  }
916
916
  const r = t.aliases || /* @__PURE__ */ Object.create(null);
917
917
  for (const o in r) {
918
918
  const i = r[o], s = i.parent;
919
- if (!o || typeof s != "string" || !n[s] && !r[s] || !an(i, yn)) return null;
919
+ if (!o || typeof s != "string" || !n[s] && !r[s] || !ln(i, bn)) return null;
920
920
  }
921
921
  return t;
922
922
  }
923
- const er = /* @__PURE__ */ Object.create(null);
924
- function ii(e, t) {
923
+ const nr = /* @__PURE__ */ Object.create(null);
924
+ function ai(e, t) {
925
925
  return {
926
926
  provider: e,
927
927
  prefix: t,
@@ -930,15 +930,15 @@ function ii(e, t) {
930
930
  };
931
931
  }
932
932
  function nt(e, t) {
933
- const n = er[e] || (er[e] = /* @__PURE__ */ Object.create(null));
934
- return n[t] || (n[t] = ii(e, t));
933
+ const n = nr[e] || (nr[e] = /* @__PURE__ */ Object.create(null));
934
+ return n[t] || (n[t] = ai(e, t));
935
935
  }
936
- function $r(e, t) {
937
- return jr(t) ? Pr(t, (n, r) => {
936
+ function Hr(e, t) {
937
+ return Br(t) ? $r(t, (n, r) => {
938
938
  r ? e.icons[n] = r : e.missing.add(n);
939
939
  }) : [];
940
940
  }
941
- function si(e, t, n) {
941
+ function li(e, t, n) {
942
942
  try {
943
943
  if (typeof n.body == "string")
944
944
  return e.icons[t] = { ...n }, !0;
@@ -946,7 +946,7 @@ function si(e, t, n) {
946
946
  }
947
947
  return !1;
948
948
  }
949
- const Br = /^[a-z0-9]+(-[a-z0-9]+)*$/, Wt = (e, t, n, r = "") => {
949
+ const Ur = /^[a-z0-9]+(-[a-z0-9]+)*$/, Wt = (e, t, n, r = "") => {
950
950
  const o = e.split(":");
951
951
  if (e.slice(0, 1) === "@") {
952
952
  if (o.length < 2 || o.length > 3) return null;
@@ -981,28 +981,28 @@ const Br = /^[a-z0-9]+(-[a-z0-9]+)*$/, Wt = (e, t, n, r = "") => {
981
981
  return null;
982
982
  }, Ot = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
983
983
  let yt = !1;
984
- function Hr(e) {
984
+ function Vr(e) {
985
985
  return typeof e == "boolean" && (yt = e), yt;
986
986
  }
987
- function tr(e) {
987
+ function rr(e) {
988
988
  const t = typeof e == "string" ? Wt(e, !0, yt) : e;
989
989
  if (t) {
990
990
  const n = nt(t.provider, t.prefix), r = t.name;
991
991
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
992
992
  }
993
993
  }
994
- function Ur(e, t) {
994
+ function Gr(e, t) {
995
995
  const n = Wt(e, !0, yt);
996
996
  if (!n) return !1;
997
997
  const r = nt(n.provider, n.prefix);
998
- return t ? si(r, n.name, t) : (r.missing.add(n.name), !0);
998
+ return t ? li(r, n.name, t) : (r.missing.add(n.name), !0);
999
999
  }
1000
- function Vr(e, t) {
1000
+ function Wr(e, t) {
1001
1001
  if (typeof e != "object") return !1;
1002
1002
  if (typeof t != "string" && (t = e.provider || ""), yt && !t && !e.prefix) {
1003
1003
  let o = !1;
1004
- return jr(e) && (e.prefix = "", Pr(e, (i, s) => {
1005
- Ur(i, s) && (o = !0);
1004
+ return Br(e) && (e.prefix = "", $r(e, (i, s) => {
1005
+ Gr(i, s) && (o = !0);
1006
1006
  })), o;
1007
1007
  }
1008
1008
  const n = e.prefix;
@@ -1011,23 +1011,23 @@ function Vr(e, t) {
1011
1011
  name: "a"
1012
1012
  })) return !1;
1013
1013
  const r = nt(t, n);
1014
- return !!$r(r, e);
1014
+ return !!Hr(r, e);
1015
1015
  }
1016
- const Gr = Object.freeze({
1016
+ const _r = Object.freeze({
1017
1017
  width: null,
1018
1018
  height: null
1019
- }), Wr = Object.freeze({
1020
- ...Gr,
1019
+ }), qr = Object.freeze({
1020
+ ..._r,
1021
1021
  ...jt
1022
- }), ai = /(-?[0-9.]*[0-9]+[0-9.]*)/g, li = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1023
- function bn(e, t, n) {
1022
+ }), ci = /(-?[0-9.]*[0-9]+[0-9.]*)/g, di = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1023
+ function wn(e, t, n) {
1024
1024
  if (t === 1) return e;
1025
1025
  if (n = n || 100, typeof e == "number") return Math.ceil(e * t * n) / n;
1026
1026
  if (typeof e != "string") return e;
1027
- const r = e.split(ai);
1027
+ const r = e.split(ci);
1028
1028
  if (r === null || !r.length) return e;
1029
1029
  const o = [];
1030
- let i = r.shift(), s = li.test(i);
1030
+ let i = r.shift(), s = di.test(i);
1031
1031
  for (; ; ) {
1032
1032
  if (s) {
1033
1033
  const a = parseFloat(i);
@@ -1037,7 +1037,7 @@ function bn(e, t, n) {
1037
1037
  s = !s;
1038
1038
  }
1039
1039
  }
1040
- function ci(e, t = "defs") {
1040
+ function ui(e, t = "defs") {
1041
1041
  let n = "";
1042
1042
  const r = e.indexOf("<" + t);
1043
1043
  for (; r >= 0; ) {
@@ -1052,20 +1052,20 @@ function ci(e, t = "defs") {
1052
1052
  content: e
1053
1053
  };
1054
1054
  }
1055
- function di(e, t) {
1055
+ function fi(e, t) {
1056
1056
  return e ? "<defs>" + e + "</defs>" + t : t;
1057
1057
  }
1058
- function ui(e, t, n) {
1059
- const r = ci(e);
1060
- return di(r.defs, t + r.content + n);
1058
+ function hi(e, t, n) {
1059
+ const r = ui(e);
1060
+ return fi(r.defs, t + r.content + n);
1061
1061
  }
1062
- const fi = (e) => e === "unset" || e === "undefined" || e === "none";
1063
- function _r(e, t) {
1062
+ const pi = (e) => e === "unset" || e === "undefined" || e === "none";
1063
+ function Yr(e, t) {
1064
1064
  const n = {
1065
- ...On,
1065
+ ...Fn,
1066
1066
  ...e
1067
1067
  }, r = {
1068
- ...Wr,
1068
+ ...qr,
1069
1069
  ...t
1070
1070
  }, o = {
1071
1071
  left: n.left,
@@ -1090,13 +1090,13 @@ function _r(e, t) {
1090
1090
  M = o.width / 2 + o.left, p.unshift("rotate(-90 " + M.toString() + " " + M.toString() + ")");
1091
1091
  break;
1092
1092
  }
1093
- A % 2 === 1 && (o.left !== o.top && (M = o.left, o.left = o.top, o.top = M), o.width !== o.height && (M = o.width, o.width = o.height, o.height = M)), p.length && (i = ui(i, '<g transform="' + p.join(" ") + '">', "</g>"));
1093
+ A % 2 === 1 && (o.left !== o.top && (M = o.left, o.left = o.top, o.top = M), o.width !== o.height && (M = o.width, o.width = o.height, o.height = M)), p.length && (i = hi(i, '<g transform="' + p.join(" ") + '">', "</g>"));
1094
1094
  });
1095
1095
  const s = r.width, a = r.height, l = o.width, c = o.height;
1096
1096
  let u, d;
1097
- s === null ? (d = a === null ? "1em" : a === "auto" ? c : a, u = bn(d, l / c)) : (u = s === "auto" ? l : s, d = a === null ? bn(u, c / l) : a === "auto" ? c : a);
1097
+ s === null ? (d = a === null ? "1em" : a === "auto" ? c : a, u = wn(d, l / c)) : (u = s === "auto" ? l : s, d = a === null ? wn(u, c / l) : a === "auto" ? c : a);
1098
1098
  const h = {}, g = (w, p) => {
1099
- fi(p) || (h[w] = p.toString());
1099
+ pi(p) || (h[w] = p.toString());
1100
1100
  };
1101
1101
  g("width", u), g("height", d);
1102
1102
  const x = [
@@ -1111,27 +1111,27 @@ function _r(e, t) {
1111
1111
  body: i
1112
1112
  };
1113
1113
  }
1114
- const hi = /\sid="(\S+)"/g, pi = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1115
- let gi = 0;
1116
- function qr(e, t = pi) {
1114
+ const gi = /\sid="(\S+)"/g, mi = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1115
+ let vi = 0;
1116
+ function Kr(e, t = mi) {
1117
1117
  const n = [];
1118
1118
  let r;
1119
- for (; r = hi.exec(e); ) n.push(r[1]);
1119
+ for (; r = gi.exec(e); ) n.push(r[1]);
1120
1120
  if (!n.length) return e;
1121
1121
  const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
1122
1122
  return n.forEach((i) => {
1123
- const s = typeof t == "function" ? t(i) : t + (gi++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1123
+ const s = typeof t == "function" ? t(i) : t + (vi++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1124
1124
  e = e.replace(new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"), "$1" + s + o + "$3");
1125
1125
  }), e = e.replace(new RegExp(o, "g"), ""), e;
1126
1126
  }
1127
- const wn = /* @__PURE__ */ Object.create(null);
1128
- function mi(e, t) {
1129
- wn[e] = t;
1127
+ const xn = /* @__PURE__ */ Object.create(null);
1128
+ function yi(e, t) {
1129
+ xn[e] = t;
1130
1130
  }
1131
- function xn(e) {
1132
- return wn[e] || wn[""];
1131
+ function kn(e) {
1132
+ return xn[e] || xn[""];
1133
1133
  }
1134
- function zn(e) {
1134
+ function Pn(e) {
1135
1135
  let t;
1136
1136
  if (typeof e.resources == "string") t = [e.resources];
1137
1137
  else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
@@ -1146,26 +1146,26 @@ function zn(e) {
1146
1146
  dataAfterTimeout: e.dataAfterTimeout !== !1
1147
1147
  };
1148
1148
  }
1149
- const Fn = /* @__PURE__ */ Object.create(null), ut = ["https://api.simplesvg.com", "https://api.unisvg.com"], zt = [];
1149
+ const jn = /* @__PURE__ */ Object.create(null), ut = ["https://api.simplesvg.com", "https://api.unisvg.com"], zt = [];
1150
1150
  for (; ut.length > 0; ) ut.length === 1 || Math.random() > 0.5 ? zt.push(ut.shift()) : zt.push(ut.pop());
1151
- Fn[""] = zn({ resources: ["https://api.iconify.design"].concat(zt) });
1152
- function Yr(e, t) {
1153
- const n = zn(t);
1154
- return n === null ? !1 : (Fn[e] = n, !0);
1151
+ jn[""] = Pn({ resources: ["https://api.iconify.design"].concat(zt) });
1152
+ function Xr(e, t) {
1153
+ const n = Pn(t);
1154
+ return n === null ? !1 : (jn[e] = n, !0);
1155
1155
  }
1156
- function Pn(e) {
1157
- return Fn[e];
1156
+ function $n(e) {
1157
+ return jn[e];
1158
1158
  }
1159
- const vi = () => {
1159
+ const bi = () => {
1160
1160
  let e;
1161
1161
  try {
1162
1162
  if (e = fetch, typeof e == "function") return e;
1163
1163
  } catch {
1164
1164
  }
1165
1165
  };
1166
- let nr = vi();
1167
- function yi(e, t) {
1168
- const n = Pn(e);
1166
+ let or = bi();
1167
+ function wi(e, t) {
1168
+ const n = $n(e);
1169
1169
  if (!n) return 0;
1170
1170
  let r;
1171
1171
  if (!n.maxURL) r = 0;
@@ -1179,11 +1179,11 @@ function yi(e, t) {
1179
1179
  }
1180
1180
  return r;
1181
1181
  }
1182
- function bi(e) {
1182
+ function xi(e) {
1183
1183
  return e === 404;
1184
1184
  }
1185
- const wi = (e, t, n) => {
1186
- const r = [], o = yi(e, t), i = "icons";
1185
+ const ki = (e, t, n) => {
1186
+ const r = [], o = wi(e, t), i = "icons";
1187
1187
  let s = {
1188
1188
  type: i,
1189
1189
  provider: e,
@@ -1199,19 +1199,19 @@ const wi = (e, t, n) => {
1199
1199
  }, a = l.length), s.icons.push(l);
1200
1200
  }), r.push(s), r;
1201
1201
  };
1202
- function xi(e) {
1202
+ function Ci(e) {
1203
1203
  if (typeof e == "string") {
1204
- const t = Pn(e);
1204
+ const t = $n(e);
1205
1205
  if (t) return t.path;
1206
1206
  }
1207
1207
  return "/";
1208
1208
  }
1209
- const ki = (e, t, n) => {
1210
- if (!nr) {
1209
+ const Si = (e, t, n) => {
1210
+ if (!or) {
1211
1211
  n("abort", 424);
1212
1212
  return;
1213
1213
  }
1214
- let r = xi(t.provider);
1214
+ let r = Ci(t.provider);
1215
1215
  switch (t.type) {
1216
1216
  case "icons": {
1217
1217
  const i = t.prefix, a = t.icons.join(","), l = new URLSearchParams({ icons: a });
@@ -1228,11 +1228,11 @@ const ki = (e, t, n) => {
1228
1228
  return;
1229
1229
  }
1230
1230
  let o = 503;
1231
- nr(e + r).then((i) => {
1231
+ or(e + r).then((i) => {
1232
1232
  const s = i.status;
1233
1233
  if (s !== 200) {
1234
1234
  setTimeout(() => {
1235
- n(bi(s) ? "abort" : "next", s);
1235
+ n(xi(s) ? "abort" : "next", s);
1236
1236
  });
1237
1237
  return;
1238
1238
  }
@@ -1250,17 +1250,17 @@ const ki = (e, t, n) => {
1250
1250
  }).catch(() => {
1251
1251
  n("next", o);
1252
1252
  });
1253
- }, Ci = {
1254
- prepare: wi,
1255
- send: ki
1253
+ }, Ei = {
1254
+ prepare: ki,
1255
+ send: Si
1256
1256
  };
1257
- function Kr(e, t) {
1257
+ function Jr(e, t) {
1258
1258
  e.forEach((n) => {
1259
1259
  const r = n.loaderCallbacks;
1260
1260
  r && (n.loaderCallbacks = r.filter((o) => o.id !== t));
1261
1261
  });
1262
1262
  }
1263
- function Si(e) {
1263
+ function Ai(e) {
1264
1264
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
1265
1265
  e.pendingCallbacksFlag = !1;
1266
1266
  const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -1285,13 +1285,13 @@ function Si(e) {
1285
1285
  else
1286
1286
  return n = !0, !0;
1287
1287
  return !1;
1288
- }), s.pending.length !== a && (n || Kr([e], i.id), i.callback(s.loaded.slice(0), s.missing.slice(0), s.pending.slice(0), i.abort));
1288
+ }), s.pending.length !== a && (n || Jr([e], i.id), i.callback(s.loaded.slice(0), s.missing.slice(0), s.pending.slice(0), i.abort));
1289
1289
  });
1290
1290
  }));
1291
1291
  }
1292
- let Ei = 0;
1293
- function Ai(e, t, n) {
1294
- const r = Ei++, o = Kr.bind(null, n, r);
1292
+ let Di = 0;
1293
+ function Mi(e, t, n) {
1294
+ const r = Di++, o = Jr.bind(null, n, r);
1295
1295
  if (!t.pending.length) return o;
1296
1296
  const i = {
1297
1297
  id: r,
@@ -1303,7 +1303,7 @@ function Ai(e, t, n) {
1303
1303
  (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
1304
1304
  }), o;
1305
1305
  }
1306
- function Di(e) {
1306
+ function Li(e) {
1307
1307
  const t = {
1308
1308
  loaded: [],
1309
1309
  missing: [],
@@ -1329,14 +1329,14 @@ function Di(e) {
1329
1329
  u.push(d);
1330
1330
  }), t;
1331
1331
  }
1332
- function Mi(e, t = !0, n = !1) {
1332
+ function Ri(e, t = !0, n = !1) {
1333
1333
  const r = [];
1334
1334
  return e.forEach((o) => {
1335
1335
  const i = typeof o == "string" ? Wt(o, t, n) : o;
1336
1336
  i && r.push(i);
1337
1337
  }), r;
1338
1338
  }
1339
- const Li = {
1339
+ const Ti = {
1340
1340
  resources: [],
1341
1341
  index: 0,
1342
1342
  timeout: 2e3,
@@ -1344,7 +1344,7 @@ const Li = {
1344
1344
  random: !1,
1345
1345
  dataAfterTimeout: !1
1346
1346
  };
1347
- function Ri(e, t, n, r) {
1347
+ function Ii(e, t, n, r) {
1348
1348
  const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
1349
1349
  let s;
1350
1350
  if (e.random) {
@@ -1442,9 +1442,9 @@ function Ri(e, t, n, r) {
1442
1442
  }
1443
1443
  return setTimeout(T), m;
1444
1444
  }
1445
- function Xr(e) {
1445
+ function Qr(e) {
1446
1446
  const t = {
1447
- ...Li,
1447
+ ...Ti,
1448
1448
  ...e
1449
1449
  };
1450
1450
  let n = [];
@@ -1452,7 +1452,7 @@ function Xr(e) {
1452
1452
  n = n.filter((a) => a().status === "pending");
1453
1453
  }
1454
1454
  function o(a, l, c) {
1455
- const u = Ri(t, a, l, (d, h) => {
1455
+ const u = Ii(t, a, l, (d, h) => {
1456
1456
  r(), c && c(d, h);
1457
1457
  });
1458
1458
  return n.push(u), u;
@@ -1470,51 +1470,51 @@ function Xr(e) {
1470
1470
  cleanup: r
1471
1471
  };
1472
1472
  }
1473
- function rr() {
1473
+ function ir() {
1474
1474
  }
1475
- const ln = /* @__PURE__ */ Object.create(null);
1476
- function Ti(e) {
1477
- if (!ln[e]) {
1478
- const t = Pn(e);
1475
+ const cn = /* @__PURE__ */ Object.create(null);
1476
+ function Ni(e) {
1477
+ if (!cn[e]) {
1478
+ const t = $n(e);
1479
1479
  if (!t) return;
1480
- const n = Xr(t), r = {
1480
+ const n = Qr(t), r = {
1481
1481
  config: t,
1482
1482
  redundancy: n
1483
1483
  };
1484
- ln[e] = r;
1484
+ cn[e] = r;
1485
1485
  }
1486
- return ln[e];
1486
+ return cn[e];
1487
1487
  }
1488
- function Ii(e, t, n) {
1488
+ function Oi(e, t, n) {
1489
1489
  let r, o;
1490
1490
  if (typeof e == "string") {
1491
- const i = xn(e);
1491
+ const i = kn(e);
1492
1492
  if (!i)
1493
- return n(void 0, 424), rr;
1493
+ return n(void 0, 424), ir;
1494
1494
  o = i.send;
1495
- const s = Ti(e);
1495
+ const s = Ni(e);
1496
1496
  s && (r = s.redundancy);
1497
1497
  } else {
1498
- const i = zn(e);
1498
+ const i = Pn(e);
1499
1499
  if (i) {
1500
- r = Xr(i);
1501
- const s = e.resources ? e.resources[0] : "", a = xn(s);
1500
+ r = Qr(i);
1501
+ const s = e.resources ? e.resources[0] : "", a = kn(s);
1502
1502
  a && (o = a.send);
1503
1503
  }
1504
1504
  }
1505
- return !r || !o ? (n(void 0, 424), rr) : r.query(t, o, n)().abort;
1505
+ return !r || !o ? (n(void 0, 424), ir) : r.query(t, o, n)().abort;
1506
1506
  }
1507
- function or() {
1507
+ function sr() {
1508
1508
  }
1509
- function Ni(e) {
1509
+ function zi(e) {
1510
1510
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1511
- e.iconsLoaderFlag = !1, Si(e);
1511
+ e.iconsLoaderFlag = !1, Ai(e);
1512
1512
  }));
1513
1513
  }
1514
- function Oi(e) {
1514
+ function Fi(e) {
1515
1515
  const t = [], n = [];
1516
1516
  return e.forEach((r) => {
1517
- (r.match(Br) ? t : n).push(r);
1517
+ (r.match(Ur) ? t : n).push(r);
1518
1518
  }), {
1519
1519
  valid: t,
1520
1520
  invalid: n
@@ -1528,30 +1528,30 @@ function ft(e, t, n) {
1528
1528
  });
1529
1529
  }
1530
1530
  if (n && typeof n == "object") try {
1531
- if (!$r(e, n).length) {
1531
+ if (!Hr(e, n).length) {
1532
1532
  r();
1533
1533
  return;
1534
1534
  }
1535
1535
  } catch (o) {
1536
1536
  console.error(o);
1537
1537
  }
1538
- r(), Ni(e);
1538
+ r(), zi(e);
1539
1539
  }
1540
- function ir(e, t) {
1540
+ function ar(e, t) {
1541
1541
  e instanceof Promise ? e.then((n) => {
1542
1542
  t(n);
1543
1543
  }).catch(() => {
1544
1544
  t(null);
1545
1545
  }) : t(e);
1546
1546
  }
1547
- function zi(e, t) {
1547
+ function Pi(e, t) {
1548
1548
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1549
1549
  e.iconsQueueFlag = !1;
1550
1550
  const { provider: n, prefix: r } = e, o = e.iconsToLoad;
1551
1551
  if (delete e.iconsToLoad, !o || !o.length) return;
1552
1552
  const i = e.loadIcon;
1553
1553
  if (e.loadIcons && (o.length > 1 || !i)) {
1554
- ir(e.loadIcons(o, r, n), (u) => {
1554
+ ar(e.loadIcons(o, r, n), (u) => {
1555
1555
  ft(e, o, u);
1556
1556
  });
1557
1557
  return;
@@ -1559,7 +1559,7 @@ function zi(e, t) {
1559
1559
  if (i) {
1560
1560
  o.forEach((u) => {
1561
1561
  const d = i(u, r, n);
1562
- ir(d, (h) => {
1562
+ ar(d, (h) => {
1563
1563
  const g = h ? {
1564
1564
  prefix: r,
1565
1565
  icons: { [u]: h }
@@ -1569,26 +1569,26 @@ function zi(e, t) {
1569
1569
  });
1570
1570
  return;
1571
1571
  }
1572
- const { valid: s, invalid: a } = Oi(o);
1572
+ const { valid: s, invalid: a } = Fi(o);
1573
1573
  if (a.length && ft(e, a, null), !s.length) return;
1574
- const l = r.match(Br) ? xn(n) : null;
1574
+ const l = r.match(Ur) ? kn(n) : null;
1575
1575
  if (!l) {
1576
1576
  ft(e, s, null);
1577
1577
  return;
1578
1578
  }
1579
1579
  l.prepare(n, r, s).forEach((u) => {
1580
- Ii(n, u, (d) => {
1580
+ Oi(n, u, (d) => {
1581
1581
  ft(e, u.icons, d);
1582
1582
  });
1583
1583
  });
1584
1584
  }));
1585
1585
  }
1586
- const Jr = (e, t) => {
1587
- const n = Mi(e, !0, Hr()), r = Di(n);
1586
+ const Zr = (e, t) => {
1587
+ const n = Ri(e, !0, Vr()), r = Li(n);
1588
1588
  if (!r.pending.length) {
1589
1589
  let l = !0;
1590
1590
  return t && setTimeout(() => {
1591
- l && t(r.loaded, r.missing, r.pending, or);
1591
+ l && t(r.loaded, r.missing, r.pending, sr);
1592
1592
  }), () => {
1593
1593
  l = !1;
1594
1594
  };
@@ -1606,20 +1606,20 @@ const Jr = (e, t) => {
1606
1606
  g.has(d) || (g.add(d), o[c][u].push(d));
1607
1607
  }), i.forEach((l) => {
1608
1608
  const c = o[l.provider][l.prefix];
1609
- c.length && zi(l, c);
1610
- }), t ? Ai(t, r, i) : or;
1609
+ c.length && Pi(l, c);
1610
+ }), t ? Mi(t, r, i) : sr;
1611
1611
  };
1612
- function Fi(e, t) {
1612
+ function ji(e, t) {
1613
1613
  const n = { ...e };
1614
1614
  for (const r in t) {
1615
1615
  const o = t[r], i = typeof o;
1616
- r in Gr ? (o === null || o && (i === "string" || i === "number")) && (n[r] = o) : i === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
1616
+ r in _r ? (o === null || o && (i === "string" || i === "number")) && (n[r] = o) : i === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
1617
1617
  }
1618
1618
  return n;
1619
1619
  }
1620
- const Pi = /[\s,]+/;
1621
- function ji(e, t) {
1622
- t.split(Pi).forEach((n) => {
1620
+ const $i = /[\s,]+/;
1621
+ function Bi(e, t) {
1622
+ t.split($i).forEach((n) => {
1623
1623
  switch (n.trim()) {
1624
1624
  case "horizontal":
1625
1625
  e.hFlip = !0;
@@ -1630,7 +1630,7 @@ function ji(e, t) {
1630
1630
  }
1631
1631
  });
1632
1632
  }
1633
- function $i(e, t = 0) {
1633
+ function Hi(e, t = 0) {
1634
1634
  const n = e.replace(/^-?[0-9.]*/, "");
1635
1635
  function r(o) {
1636
1636
  for (; o < 0; ) o += 4;
@@ -1655,69 +1655,69 @@ function $i(e, t = 0) {
1655
1655
  }
1656
1656
  return t;
1657
1657
  }
1658
- function Bi(e, t) {
1658
+ function Ui(e, t) {
1659
1659
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1660
1660
  for (const r in t) n += " " + r + '="' + t[r] + '"';
1661
1661
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1662
1662
  }
1663
- function Hi(e) {
1663
+ function Vi(e) {
1664
1664
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1665
1665
  }
1666
- function Ui(e) {
1667
- return "data:image/svg+xml," + Hi(e);
1666
+ function Gi(e) {
1667
+ return "data:image/svg+xml," + Vi(e);
1668
1668
  }
1669
- function Vi(e) {
1670
- return 'url("' + Ui(e) + '")';
1669
+ function Wi(e) {
1670
+ return 'url("' + Gi(e) + '")';
1671
1671
  }
1672
1672
  let pt;
1673
- function Gi() {
1673
+ function _i() {
1674
1674
  try {
1675
1675
  pt = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
1676
1676
  } catch {
1677
1677
  pt = null;
1678
1678
  }
1679
1679
  }
1680
- function Wi(e) {
1681
- return pt === void 0 && Gi(), pt ? pt.createHTML(e) : e;
1680
+ function qi(e) {
1681
+ return pt === void 0 && _i(), pt ? pt.createHTML(e) : e;
1682
1682
  }
1683
- const Qr = {
1684
- ...Wr,
1683
+ const eo = {
1684
+ ...qr,
1685
1685
  inline: !1
1686
- }, _i = {
1686
+ }, Yi = {
1687
1687
  xmlns: "http://www.w3.org/2000/svg",
1688
1688
  xmlnsXlink: "http://www.w3.org/1999/xlink",
1689
1689
  "aria-hidden": !0,
1690
1690
  role: "img"
1691
- }, qi = {
1691
+ }, Ki = {
1692
1692
  display: "inline-block"
1693
- }, kn = {
1693
+ }, Cn = {
1694
1694
  backgroundColor: "currentColor"
1695
- }, Zr = {
1695
+ }, to = {
1696
1696
  backgroundColor: "transparent"
1697
- }, sr = {
1697
+ }, lr = {
1698
1698
  Image: "var(--svg)",
1699
1699
  Repeat: "no-repeat",
1700
1700
  Size: "100% 100%"
1701
- }, ar = {
1702
- WebkitMask: kn,
1703
- mask: kn,
1704
- background: Zr
1701
+ }, cr = {
1702
+ WebkitMask: Cn,
1703
+ mask: Cn,
1704
+ background: to
1705
1705
  };
1706
- for (const e in ar) {
1707
- const t = ar[e];
1708
- for (const n in sr)
1709
- t[e + n] = sr[n];
1706
+ for (const e in cr) {
1707
+ const t = cr[e];
1708
+ for (const n in lr)
1709
+ t[e + n] = lr[n];
1710
1710
  }
1711
- const Yi = {
1712
- ...Qr,
1711
+ const Xi = {
1712
+ ...eo,
1713
1713
  inline: !0
1714
1714
  };
1715
- function lr(e) {
1715
+ function dr(e) {
1716
1716
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1717
1717
  }
1718
- const Ki = (e, t, n) => {
1719
- const r = t.inline ? Yi : Qr, o = Fi(r, t), i = t.mode || "svg", s = {}, a = t.style || {}, l = {
1720
- ...i === "svg" ? _i : {}
1718
+ const Ji = (e, t, n) => {
1719
+ const r = t.inline ? Xi : eo, o = ji(r, t), i = t.mode || "svg", s = {}, a = t.style || {}, l = {
1720
+ ...i === "svg" ? Yi : {}
1721
1721
  };
1722
1722
  if (n) {
1723
1723
  const p = Wt(n, !1, !0);
@@ -1760,7 +1760,7 @@ const Ki = (e, t, n) => {
1760
1760
  break;
1761
1761
  // Flip as string: 'horizontal,vertical'
1762
1762
  case "flip":
1763
- typeof m == "string" && ji(o, m);
1763
+ typeof m == "string" && Bi(o, m);
1764
1764
  break;
1765
1765
  // Color: copy to style
1766
1766
  case "color":
@@ -1768,7 +1768,7 @@ const Ki = (e, t, n) => {
1768
1768
  break;
1769
1769
  // Rotation as string
1770
1770
  case "rotate":
1771
- typeof m == "string" ? o[p] = $i(m) : typeof m == "number" && (o[p] = m);
1771
+ typeof m == "string" ? o[p] = Hi(m) : typeof m == "number" && (o[p] = m);
1772
1772
  break;
1773
1773
  // Remove aria-hidden
1774
1774
  case "ariaHidden":
@@ -1780,7 +1780,7 @@ const Ki = (e, t, n) => {
1780
1780
  r[p] === void 0 && (l[p] = m);
1781
1781
  }
1782
1782
  }
1783
- const c = _r(e, o), u = c.attributes;
1783
+ const c = Yr(e, o), u = c.attributes;
1784
1784
  if (o.inline && (s.verticalAlign = "-0.125em"), i === "svg") {
1785
1785
  l.style = {
1786
1786
  ...s,
@@ -1788,26 +1788,26 @@ const Ki = (e, t, n) => {
1788
1788
  }, Object.assign(l, u);
1789
1789
  let p = 0, m = t.id;
1790
1790
  return typeof m == "string" && (m = m.replace(/-/g, "_")), l.dangerouslySetInnerHTML = {
1791
- __html: Wi(qr(c.body, m ? () => m + "ID" + p++ : "iconifyReact"))
1792
- }, vn("svg", l);
1791
+ __html: qi(Kr(c.body, m ? () => m + "ID" + p++ : "iconifyReact"))
1792
+ }, yn("svg", l);
1793
1793
  }
1794
- const { body: d, width: h, height: g } = e, x = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), w = Bi(d, {
1794
+ const { body: d, width: h, height: g } = e, x = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), w = Ui(d, {
1795
1795
  ...u,
1796
1796
  width: h + "",
1797
1797
  height: g + ""
1798
1798
  });
1799
1799
  return l.style = {
1800
1800
  ...s,
1801
- "--svg": Vi(w),
1802
- width: lr(u.width),
1803
- height: lr(u.height),
1804
- ...qi,
1805
- ...x ? kn : Zr,
1801
+ "--svg": Wi(w),
1802
+ width: dr(u.width),
1803
+ height: dr(u.height),
1804
+ ...Ki,
1805
+ ...x ? Cn : to,
1806
1806
  ...a
1807
- }, vn("span", l);
1807
+ }, yn("span", l);
1808
1808
  };
1809
- Hr(!0);
1810
- mi("", Ci);
1809
+ Vr(!0);
1810
+ yi("", Ei);
1811
1811
  if (typeof document < "u" && typeof window < "u") {
1812
1812
  const e = window;
1813
1813
  if (e.IconifyPreload !== void 0) {
@@ -1817,7 +1817,7 @@ if (typeof document < "u" && typeof window < "u") {
1817
1817
  // Check if item is an object and not null/array
1818
1818
  (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
1819
1819
  typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
1820
- !Vr(r)) && console.error(n);
1820
+ !Wr(r)) && console.error(n);
1821
1821
  } catch {
1822
1822
  console.error(n);
1823
1823
  }
@@ -1832,14 +1832,14 @@ if (typeof document < "u" && typeof window < "u") {
1832
1832
  const o = t[n];
1833
1833
  if (typeof o != "object" || !o || o.resources === void 0)
1834
1834
  continue;
1835
- Yr(n, o) || console.error(r);
1835
+ Xr(n, o) || console.error(r);
1836
1836
  } catch {
1837
1837
  console.error(r);
1838
1838
  }
1839
1839
  }
1840
1840
  }
1841
1841
  }
1842
- function eo(e) {
1842
+ function no(e) {
1843
1843
  const [t, n] = H(!!e.ssr), [r, o] = H({});
1844
1844
  function i(g) {
1845
1845
  if (g) {
@@ -1849,7 +1849,7 @@ function eo(e) {
1849
1849
  name: "",
1850
1850
  data: x
1851
1851
  };
1852
- const w = tr(x);
1852
+ const w = rr(x);
1853
1853
  if (w)
1854
1854
  return {
1855
1855
  name: x,
@@ -1879,13 +1879,13 @@ function eo(e) {
1879
1879
  });
1880
1880
  return;
1881
1881
  }
1882
- const w = tr(x);
1882
+ const w = rr(x);
1883
1883
  if (c({
1884
1884
  name: x,
1885
1885
  data: w
1886
1886
  }))
1887
1887
  if (w === void 0) {
1888
- const p = Jr([x], u);
1888
+ const p = Zr([x], u);
1889
1889
  o({
1890
1890
  callback: p
1891
1891
  });
@@ -1895,32 +1895,32 @@ function eo(e) {
1895
1895
  t && u();
1896
1896
  }, [e.icon, t]);
1897
1897
  const { name: d, data: h } = s;
1898
- return h ? Ki({
1899
- ...On,
1898
+ return h ? Ji({
1899
+ ...Fn,
1900
1900
  ...h
1901
- }, e, d) : e.children ? e.children : e.fallback ? e.fallback : vn("span", {});
1901
+ }, e, d) : e.children ? e.children : e.fallback ? e.fallback : yn("span", {});
1902
1902
  }
1903
- const B = Tn((e, t) => eo({
1903
+ const B = In((e, t) => no({
1904
1904
  ...e,
1905
1905
  _ref: t
1906
1906
  }));
1907
- Tn((e, t) => eo({
1907
+ In((e, t) => no({
1908
1908
  inline: !0,
1909
1909
  ...e,
1910
1910
  _ref: t
1911
1911
  }));
1912
- const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1912
+ const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1913
1913
  __proto__: null,
1914
1914
  Icon: B,
1915
- addAPIProvider: Yr,
1916
- addCollection: Vr,
1917
- addIcon: Ur,
1918
- buildIcon: _r,
1919
- calculateSize: bn,
1920
- loadIcons: Jr,
1921
- replaceIDs: qr
1915
+ addAPIProvider: Xr,
1916
+ addCollection: Wr,
1917
+ addIcon: Gr,
1918
+ buildIcon: Yr,
1919
+ calculateSize: wn,
1920
+ loadIcons: Zr,
1921
+ replaceIDs: Kr
1922
1922
  }, Symbol.toStringTag, { value: "Module" }));
1923
- class Ji {
1923
+ class Zi {
1924
1924
  constructor() {
1925
1925
  this.isProtectedFlag = !1, this.timeout = null, this.timeoutDuration = 5e3;
1926
1926
  }
@@ -1956,15 +1956,15 @@ class Ji {
1956
1956
  return this.isProtectedFlag;
1957
1957
  }
1958
1958
  }
1959
- const Qi = new Ji(), Zi = Tr({ prefix: "sc" });
1959
+ const es = new Zi(), ts = Nr({ prefix: "sc" });
1960
1960
  function Le(...e) {
1961
- return Zi(Rr(e));
1961
+ return ts(Ir(e));
1962
1962
  }
1963
- const to = O.createContext({ variant: "transparent" });
1964
- function es() {
1965
- return O.useContext(to);
1963
+ const ro = O.createContext({ variant: "transparent" });
1964
+ function ns() {
1965
+ return O.useContext(ro);
1966
1966
  }
1967
- const ts = Ir("", {
1967
+ const rs = Or("", {
1968
1968
  variants: {
1969
1969
  variant: {
1970
1970
  transparent: "sc:bg-transparent",
@@ -1975,14 +1975,14 @@ const ts = Ir("", {
1975
1975
  defaultVariants: {
1976
1976
  variant: "default"
1977
1977
  }
1978
- }), no = O.forwardRef(
1978
+ }), oo = O.forwardRef(
1979
1979
  ({ className: e, variant: t = "default", asChild: n = !1, children: r, ...o }, i) => {
1980
- const s = n ? Xo : "div";
1981
- return /* @__PURE__ */ f(to.Provider, { value: { variant: t ?? "default" }, children: /* @__PURE__ */ f(s, { ref: i, className: Le(ts({ variant: t }), e), ...o, children: r }) });
1980
+ const s = n ? Qo : "div";
1981
+ return /* @__PURE__ */ f(ro.Provider, { value: { variant: t ?? "default" }, children: /* @__PURE__ */ f(s, { ref: i, className: Le(rs({ variant: t }), e), ...o, children: r }) });
1982
1982
  }
1983
1983
  );
1984
- no.displayName = "Surface";
1985
- const ns = Ir(
1984
+ oo.displayName = "Surface";
1985
+ const os = Or(
1986
1986
  "sc:inline-flex sc:items-center sc:justify-center sc:gap-2 sc:rounded-button sc:text-sm sc:transition-colors sc:focus-visible:outline-none sc:disabled:pointer-events-none sc:disabled:opacity-50 sc:font-button",
1987
1987
  {
1988
1988
  variants: {
@@ -2029,7 +2029,7 @@ const ns = Ir(
2029
2029
  }
2030
2030
  ), rt = O.forwardRef(
2031
2031
  ({ className: e, variant: t, size: n, onPress: r, isPending: o, onClick: i, disabled: s, selected: a, children: l, ...c }, u) => {
2032
- const { variant: d } = es(), h = d === "default", g = d === "secondary", x = (p) => {
2032
+ const { variant: d } = ns(), h = d === "default", g = d === "secondary", x = (p) => {
2033
2033
  r && r(p), i && i(p);
2034
2034
  }, w = {
2035
2035
  secondary: t === "secondary" && (g ? "sc:bg-[var(--color-default-on-surface)] sc:hover:bg-[var(--color-default-on-surface)]/80" : h ? "sc:dark:bg-[var(--color-default-on-surface)] sc:dark:hover:bg-[var(--color-default-on-surface)]/80" : !1),
@@ -2041,7 +2041,7 @@ const ns = Ir(
2041
2041
  "button",
2042
2042
  {
2043
2043
  className: Le(
2044
- ns({ variant: t, size: n }),
2044
+ os({ variant: t, size: n }),
2045
2045
  w.secondary,
2046
2046
  w.field,
2047
2047
  w.ghost,
@@ -2059,14 +2059,14 @@ const ns = Ir(
2059
2059
  }
2060
2060
  );
2061
2061
  rt.displayName = "Button";
2062
- const ro = O.createContext(null);
2063
- function jn() {
2064
- const e = O.useContext(ro);
2062
+ const io = O.createContext(null);
2063
+ function Bn() {
2064
+ const e = O.useContext(io);
2065
2065
  if (!e)
2066
2066
  throw new Error("Drawer components must be used within a Drawer");
2067
2067
  return e;
2068
2068
  }
2069
- function oo({
2069
+ function so({
2070
2070
  open: e,
2071
2071
  defaultOpen: t = !1,
2072
2072
  onOpenChange: n,
@@ -2086,12 +2086,12 @@ function oo({
2086
2086
  }, c);
2087
2087
  return () => clearTimeout(d);
2088
2088
  } else u.current && (u.current = !1, document.documentElement.hasAttribute("data-drawer-open") && (document.documentElement.removeAttribute("data-drawer-open"), window.dispatchEvent(new CustomEvent("drawer-close"))));
2089
- }, [a]), /* @__PURE__ */ f(ro.Provider, { value: { open: a, onOpenChange: l }, children: r });
2089
+ }, [a]), /* @__PURE__ */ f(io.Provider, { value: { open: a, onOpenChange: l }, children: r });
2090
2090
  }
2091
- oo.displayName = "Drawer";
2092
- const rs = O.forwardRef(
2091
+ so.displayName = "Drawer";
2092
+ const is = O.forwardRef(
2093
2093
  ({ asChild: e, onClick: t, children: n, ...r }, o) => {
2094
- const { onOpenChange: i } = jn(), s = (a) => {
2094
+ const { onOpenChange: i } = Bn(), s = (a) => {
2095
2095
  t == null || t(a), i(!0);
2096
2096
  };
2097
2097
  return e && O.isValidElement(n) ? O.cloneElement(
@@ -2102,10 +2102,10 @@ const rs = O.forwardRef(
2102
2102
  ) : /* @__PURE__ */ f("button", { ref: o, onClick: s, ...r, children: n });
2103
2103
  }
2104
2104
  );
2105
- rs.displayName = "DrawerTrigger";
2106
- const os = O.forwardRef(
2105
+ is.displayName = "DrawerTrigger";
2106
+ const ss = O.forwardRef(
2107
2107
  ({ asChild: e, onClick: t, children: n, ...r }, o) => {
2108
- const { onOpenChange: i } = jn(), s = (a) => {
2108
+ const { onOpenChange: i } = Bn(), s = (a) => {
2109
2109
  t == null || t(a), i(!1);
2110
2110
  };
2111
2111
  return e && O.isValidElement(n) ? O.cloneElement(
@@ -2116,8 +2116,8 @@ const os = O.forwardRef(
2116
2116
  ) : /* @__PURE__ */ f("button", { ref: o, onClick: s, ...r, children: n });
2117
2117
  }
2118
2118
  );
2119
- os.displayName = "DrawerClose";
2120
- const io = O.forwardRef(
2119
+ ss.displayName = "DrawerClose";
2120
+ const ao = O.forwardRef(
2121
2121
  ({
2122
2122
  className: e,
2123
2123
  children: t,
@@ -2139,7 +2139,7 @@ const io = O.forwardRef(
2139
2139
  safeAreaPadding: m = !1,
2140
2140
  ...E
2141
2141
  }, A) => {
2142
- const { open: M, onOpenChange: T } = jn(), [y, S] = O.useState(!1), [v, L] = O.useState(0), [b, D] = O.useState(!1), [R, F] = O.useState(!1), [X, pe] = O.useState(!1), [J, re] = O.useState(!1), Y = O.useRef(null), ee = O.useRef(null), ge = O.useRef(0), we = O.useRef(0), [oe, ue] = O.useState(!1), [Oe, Se] = O.useState(!1), le = O.useRef(!1), ze = O.useRef(!0), Q = O.useRef(null), se = 120;
2142
+ const { open: M, onOpenChange: T } = Bn(), [y, S] = O.useState(!1), [v, L] = O.useState(0), [b, D] = O.useState(!1), [R, F] = O.useState(!1), [X, pe] = O.useState(!1), [J, re] = O.useState(!1), Y = O.useRef(null), ee = O.useRef(null), ge = O.useRef(0), we = O.useRef(0), [oe, ue] = O.useState(!1), [Oe, Se] = O.useState(!1), le = O.useRef(!1), ze = O.useRef(!0), Q = O.useRef(null), se = 120;
2143
2143
  O.useEffect(() => {
2144
2144
  if (M) {
2145
2145
  const _ = setTimeout(() => re(!0), se);
@@ -2182,8 +2182,8 @@ const io = O.forwardRef(
2182
2182
  }, [M]);
2183
2183
  const xe = oe ? 10 : 0, Ce = 50, Je = 10, ce = O.useRef(null), k = O.useCallback(
2184
2184
  (_, fe) => {
2185
- const ye = window.scrollY, Mt = _ - ye, Zt = performance.now(), Lt = (at) => {
2186
- const Rt = at - Zt, Tt = Math.min(Rt / fe, 1), It = 1 - Math.pow(1 - Tt, 3);
2185
+ const ye = window.scrollY, Mt = _ - ye, en = performance.now(), Lt = (at) => {
2186
+ const Rt = at - en, Tt = Math.min(Rt / fe, 1), It = 1 - Math.pow(1 - Tt, 3);
2187
2187
  window.scrollTo(0, ye + Mt * It), Tt < 1 && requestAnimationFrame(Lt);
2188
2188
  };
2189
2189
  requestAnimationFrame(Lt);
@@ -2234,7 +2234,7 @@ const io = O.forwardRef(
2234
2234
  h || (ge.current = _.touches[0].clientY, we.current = 0, Y.current && (Y.current.style.transition = "none"));
2235
2235
  },
2236
2236
  [h]
2237
- ), je = O.useCallback(
2237
+ ), $e = O.useCallback(
2238
2238
  (_) => {
2239
2239
  if (h) return;
2240
2240
  const fe = _.touches[0].clientY - ge.current;
@@ -2249,7 +2249,7 @@ const io = O.forwardRef(
2249
2249
  const Ve = J || b, Ge = {
2250
2250
  "--animation-duration": `${g}ms`
2251
2251
  };
2252
- return Nn(
2252
+ return zn(
2253
2253
  // The .sc-root wrapper is load-bearing: a body portal escapes the
2254
2254
  // editor's .sc-root scope, so without it every scoped theme token
2255
2255
  // (--sc-spacing-*, --sc-color-*, --sc-z-*) inside the drawer resolves
@@ -2309,7 +2309,7 @@ const io = O.forwardRef(
2309
2309
  top: n === "bottom" ? xe : 0,
2310
2310
  transition: "top 10ms ease-out"
2311
2311
  },
2312
- children: /* @__PURE__ */ f(no, { asChild: !0, variant: "default", children: /* @__PURE__ */ j(
2312
+ children: /* @__PURE__ */ f(oo, { asChild: !0, variant: "default", children: /* @__PURE__ */ j(
2313
2313
  "div",
2314
2314
  {
2315
2315
  ref: Y,
@@ -2351,7 +2351,7 @@ const io = O.forwardRef(
2351
2351
  "div",
2352
2352
  {
2353
2353
  onTouchStart: ne,
2354
- onTouchMove: je,
2354
+ onTouchMove: $e,
2355
2355
  onTouchEnd: Te,
2356
2356
  className: Le(
2357
2357
  "sc:cursor-grab sc:active:cursor-grabbing sc:flex-shrink-0",
@@ -2414,8 +2414,8 @@ const io = O.forwardRef(
2414
2414
  );
2415
2415
  }
2416
2416
  );
2417
- io.displayName = "DrawerContent";
2418
- const so = O.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2417
+ ao.displayName = "DrawerContent";
2418
+ const lo = O.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2419
2419
  "h2",
2420
2420
  {
2421
2421
  ref: n,
@@ -2426,8 +2426,8 @@ const so = O.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2426
2426
  ...t
2427
2427
  }
2428
2428
  ));
2429
- so.displayName = "DrawerTitle";
2430
- const ao = O.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2429
+ lo.displayName = "DrawerTitle";
2430
+ const co = O.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2431
2431
  "p",
2432
2432
  {
2433
2433
  ref: n,
@@ -2435,8 +2435,8 @@ const ao = O.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2435
2435
  ...t
2436
2436
  }
2437
2437
  ));
2438
- ao.displayName = "DrawerDescription";
2439
- const is = tt.Provider, ss = tt.Root, _t = tt.Trigger, Ct = O.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(tt.Portal, { children: /* @__PURE__ */ f(
2438
+ co.displayName = "DrawerDescription";
2439
+ const as = tt.Provider, ls = tt.Root, _t = tt.Trigger, Ct = O.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(tt.Portal, { children: /* @__PURE__ */ f(
2440
2440
  tt.Content,
2441
2441
  {
2442
2442
  ref: r,
@@ -2451,14 +2451,14 @@ const is = tt.Provider, ss = tt.Root, _t = tt.Trigger, Ct = O.forwardRef(({ clas
2451
2451
  }
2452
2452
  ) }));
2453
2453
  Ct.displayName = tt.Content.displayName;
2454
- const as = ({ children: e, delayDuration: t, delay: n, ...r }) => /* @__PURE__ */ f(is, { children: /* @__PURE__ */ f(ss, { delayDuration: n ?? t ?? 200, ...r, children: e }) }), $n = Object.assign(as, {
2454
+ const cs = ({ children: e, delayDuration: t, delay: n, ...r }) => /* @__PURE__ */ f(as, { children: /* @__PURE__ */ f(ls, { delayDuration: n ?? t ?? 200, ...r, children: e }) }), Hn = Object.assign(cs, {
2455
2455
  Trigger: _t,
2456
2456
  Content: Ct
2457
- }), ls = Tr({ prefix: "sc" });
2458
- function Cn(...e) {
2459
- return ls(Rr(e));
2457
+ }), ds = Nr({ prefix: "sc" });
2458
+ function Sn(...e) {
2459
+ return ds(Ir(e));
2460
2460
  }
2461
- const cs = {
2461
+ const us = {
2462
2462
  "gravity-ui": 1.2,
2463
2463
  // Thinner strokes need +20% (20px → 24px)
2464
2464
  lucide: 1,
@@ -2476,11 +2476,11 @@ const cs = {
2476
2476
  // Filled variants are heavy
2477
2477
  "simple-icons": 0.95,
2478
2478
  "eos-icons": 1
2479
- }, ds = 1, us = {
2479
+ }, fs = 1, hs = {
2480
2480
  "gravity-ui:arrow-rotate-left": { x: 4, y: 4 },
2481
2481
  "gravity-ui:arrow-rotate-right": { x: -4, y: 4 },
2482
2482
  "gravity-ui:sparkles": { x: 2, y: -2 }
2483
- }, fs = {
2483
+ }, ps = {
2484
2484
  xs: 12,
2485
2485
  sm: 16,
2486
2486
  md: 20,
@@ -2488,35 +2488,35 @@ const cs = {
2488
2488
  xl: 32,
2489
2489
  toolbar: { mobile: 24, desktop: 20 }
2490
2490
  };
2491
- function hs(e) {
2491
+ function gs(e) {
2492
2492
  const t = e.indexOf(":");
2493
2493
  return t === -1 ? "" : e.substring(0, t);
2494
2494
  }
2495
- function ps(e) {
2496
- return cs[e] ?? ds;
2495
+ function ms(e) {
2496
+ return us[e] ?? fs;
2497
2497
  }
2498
- function gs(e) {
2499
- return us[e] ?? null;
2498
+ function vs(e) {
2499
+ return hs[e] ?? null;
2500
2500
  }
2501
- function cn(e, t) {
2502
- const n = ps(t);
2501
+ function dn(e, t) {
2502
+ const n = ms(t);
2503
2503
  return Math.round(e * n);
2504
2504
  }
2505
- const lo = ({
2505
+ const uo = ({
2506
2506
  icon: e,
2507
2507
  size: t = "md",
2508
2508
  className: n
2509
2509
  }) => {
2510
- const r = hs(e), o = fs[t], i = gs(e);
2510
+ const r = gs(e), o = ps[t], i = vs(e);
2511
2511
  if (typeof o == "object") {
2512
- const l = cn(o.mobile, r), c = cn(o.desktop, r), u = i ? {
2512
+ const l = dn(o.mobile, r), c = dn(o.desktop, r), u = i ? {
2513
2513
  x: i.x * l / 20,
2514
2514
  y: i.y * l / 20
2515
2515
  } : null;
2516
2516
  return /* @__PURE__ */ f(
2517
2517
  "span",
2518
2518
  {
2519
- className: Cn("sc-normalized-icon-responsive sc:inline-flex", n),
2519
+ className: Sn("sc-normalized-icon-responsive sc:inline-flex", n),
2520
2520
  style: {
2521
2521
  "--icon-size-mobile": `${l}px`,
2522
2522
  "--icon-size-desktop": `${c}px`,
@@ -2535,14 +2535,14 @@ const lo = ({
2535
2535
  }
2536
2536
  );
2537
2537
  }
2538
- const s = cn(o, r), a = i ? {
2538
+ const s = dn(o, r), a = i ? {
2539
2539
  x: i.x * s / 20,
2540
2540
  y: i.y * s / 20
2541
2541
  } : null;
2542
2542
  return /* @__PURE__ */ f(
2543
2543
  "span",
2544
2544
  {
2545
- className: Cn("sc:inline-flex", n),
2545
+ className: Sn("sc:inline-flex", n),
2546
2546
  style: { width: `${s}px`, height: `${s}px` },
2547
2547
  children: /* @__PURE__ */ f(
2548
2548
  B,
@@ -2556,8 +2556,8 @@ const lo = ({
2556
2556
  }
2557
2557
  );
2558
2558
  };
2559
- lo.displayName = "NormalizedIcon";
2560
- const Sn = te.forwardRef(
2559
+ uo.displayName = "NormalizedIcon";
2560
+ const En = te.forwardRef(
2561
2561
  ({
2562
2562
  icon: e,
2563
2563
  onClick: t,
@@ -2582,17 +2582,17 @@ const Sn = te.forwardRef(
2582
2582
  "aria-pressed": n,
2583
2583
  "data-active": n,
2584
2584
  onMouseLeave: c,
2585
- className: Cn(l),
2586
- children: typeof e == "string" ? /* @__PURE__ */ f(lo, { icon: e, size: "toolbar" }) : e
2585
+ className: Sn(l),
2586
+ children: typeof e == "string" ? /* @__PURE__ */ f(uo, { icon: e, size: "toolbar" }) : e
2587
2587
  }
2588
2588
  );
2589
- return !r || i ? d : /* @__PURE__ */ j($n, { delay: o, children: [
2589
+ return !r || i ? d : /* @__PURE__ */ j(Hn, { delay: o, children: [
2590
2590
  /* @__PURE__ */ f(_t, { asChild: !0, children: d }),
2591
2591
  /* @__PURE__ */ f(Ct, { children: r })
2592
2592
  ] });
2593
2593
  }
2594
2594
  );
2595
- Sn.displayName = "ToolbarButton";
2595
+ En.displayName = "ToolbarButton";
2596
2596
  const V = {
2597
2597
  // Navigation/Actions
2598
2598
  plus: "lucide:plus",
@@ -2651,14 +2651,14 @@ const V = {
2651
2651
  alertCircle: "lucide:alert-circle",
2652
2652
  // Special purpose
2653
2653
  wand: "lucide:wand-2"
2654
- }, dn = ot("useArtboards"), ms = () => {
2654
+ }, un = ot("useArtboards"), ys = () => {
2655
2655
  const {
2656
2656
  artboards: e,
2657
2657
  artboardManager: t,
2658
2658
  refreshArtboards: n,
2659
2659
  setSelectedId: r,
2660
2660
  setMultiSelection: o
2661
- } = In(), i = t.getActiveArtboardId(), s = t.getActiveArtboard(), a = q(() => e.map((p) => {
2661
+ } = On(), i = t.getActiveArtboardId(), s = t.getActiveArtboard(), a = q(() => e.map((p) => {
2662
2662
  const E = t.getElementsOnArtboard(p.id).length;
2663
2663
  return {
2664
2664
  id: p.id,
@@ -2699,7 +2699,7 @@ const V = {
2699
2699
  }, [t, n]), d = N((p) => {
2700
2700
  const m = e.find((E) => E.id === p);
2701
2701
  if (!m) {
2702
- dn.warn(`[useArtboards] Artboard ${p} not found`);
2702
+ un.warn(`[useArtboards] Artboard ${p} not found`);
2703
2703
  return;
2704
2704
  }
2705
2705
  t.createArtboard({
@@ -2712,14 +2712,14 @@ const V = {
2712
2712
  }, [e, t, n]), h = N((p, m) => {
2713
2713
  const E = e.find((A) => A.id === p);
2714
2714
  if (!E) {
2715
- dn.warn(`[useArtboards] Artboard ${p} not found`);
2715
+ un.warn(`[useArtboards] Artboard ${p} not found`);
2716
2716
  return;
2717
2717
  }
2718
2718
  E.name = m, n();
2719
2719
  }, [e, n]), g = N((p, m) => {
2720
2720
  const E = e.find((A) => A.id === p);
2721
2721
  if (!E) {
2722
- dn.warn(`[useArtboards] Artboard ${p} not found`);
2722
+ un.warn(`[useArtboards] Artboard ${p} not found`);
2723
2723
  return;
2724
2724
  }
2725
2725
  m.name !== void 0 && (E.name = m.name), m.width !== void 0 && (E.width = m.width), m.height !== void 0 && (E.height = m.height), m.backgroundColor !== void 0 && (E.backgroundColor = m.backgroundColor), m.clipShape !== void 0 && (E.clipShape = m.clipShape), "distressTexture" in m && (E.distressTexture = m.distressTexture ? { ...m.distressTexture } : void 0), n();
@@ -2749,14 +2749,14 @@ function it(e) {
2749
2749
  return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
2750
2750
  t === "[object global]";
2751
2751
  }
2752
- function Bn(e) {
2752
+ function Un(e) {
2753
2753
  return "nodeType" in e;
2754
2754
  }
2755
2755
  function ke(e) {
2756
2756
  var t, n;
2757
- return e ? it(e) ? e : Bn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
2757
+ return e ? it(e) ? e : Un(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
2758
2758
  }
2759
- function Hn(e) {
2759
+ function Vn(e) {
2760
2760
  const {
2761
2761
  Document: t
2762
2762
  } = ke(e);
@@ -2765,13 +2765,13 @@ function Hn(e) {
2765
2765
  function St(e) {
2766
2766
  return it(e) ? !1 : e instanceof ke(e).HTMLElement;
2767
2767
  }
2768
- function co(e) {
2768
+ function fo(e) {
2769
2769
  return e instanceof ke(e).SVGElement;
2770
2770
  }
2771
2771
  function st(e) {
2772
- return e ? it(e) ? e.document : Bn(e) ? Hn(e) ? e : St(e) || co(e) ? e.ownerDocument : document : document : document;
2772
+ return e ? it(e) ? e.document : Un(e) ? Vn(e) ? e : St(e) || fo(e) ? e.ownerDocument : document : document : document;
2773
2773
  }
2774
- const Ue = qt ? Dr : W;
2774
+ const Ue = qt ? Nn : W;
2775
2775
  function Yt(e) {
2776
2776
  const t = G(e);
2777
2777
  return Ue(() => {
@@ -2782,7 +2782,7 @@ function Yt(e) {
2782
2782
  return t.current == null ? void 0 : t.current(...r);
2783
2783
  }, []);
2784
2784
  }
2785
- function vs() {
2785
+ function bs() {
2786
2786
  const e = G(null), t = N((r, o) => {
2787
2787
  e.current = setInterval(r, o);
2788
2788
  }, []), n = N(() => {
@@ -2824,16 +2824,16 @@ function Bt(e) {
2824
2824
  t.current = e;
2825
2825
  }, [e]), t.current;
2826
2826
  }
2827
- let un = {};
2827
+ let fn = {};
2828
2828
  function Kt(e, t) {
2829
2829
  return q(() => {
2830
2830
  if (t)
2831
2831
  return t;
2832
- const n = un[e] == null ? 0 : un[e] + 1;
2833
- return un[e] = n, e + "-" + n;
2832
+ const n = fn[e] == null ? 0 : fn[e] + 1;
2833
+ return fn[e] = n, e + "-" + n;
2834
2834
  }, [e, t]);
2835
2835
  }
2836
- function uo(e) {
2836
+ function ho(e) {
2837
2837
  return function(t) {
2838
2838
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
2839
2839
  r[o - 1] = arguments[o];
@@ -2849,11 +2849,11 @@ function uo(e) {
2849
2849
  });
2850
2850
  };
2851
2851
  }
2852
- const et = /* @__PURE__ */ uo(1), wt = /* @__PURE__ */ uo(-1);
2853
- function ys(e) {
2852
+ const et = /* @__PURE__ */ ho(1), wt = /* @__PURE__ */ ho(-1);
2853
+ function ws(e) {
2854
2854
  return "clientX" in e && "clientY" in e;
2855
2855
  }
2856
- function Un(e) {
2856
+ function Gn(e) {
2857
2857
  if (!e)
2858
2858
  return !1;
2859
2859
  const {
@@ -2861,7 +2861,7 @@ function Un(e) {
2861
2861
  } = ke(e.target);
2862
2862
  return t && e instanceof t;
2863
2863
  }
2864
- function bs(e) {
2864
+ function xs(e) {
2865
2865
  if (!e)
2866
2866
  return !1;
2867
2867
  const {
@@ -2870,7 +2870,7 @@ function bs(e) {
2870
2870
  return t && e instanceof t;
2871
2871
  }
2872
2872
  function Ht(e) {
2873
- if (bs(e)) {
2873
+ if (xs(e)) {
2874
2874
  if (e.touches && e.touches.length) {
2875
2875
  const {
2876
2876
  clientX: t,
@@ -2891,7 +2891,7 @@ function Ht(e) {
2891
2891
  };
2892
2892
  }
2893
2893
  }
2894
- return ys(e) ? {
2894
+ return ws(e) ? {
2895
2895
  x: e.clientX,
2896
2896
  y: e.clientY
2897
2897
  } : null;
@@ -2935,24 +2935,24 @@ const xt = /* @__PURE__ */ Object.freeze({
2935
2935
  return t + " " + n + "ms " + r;
2936
2936
  }
2937
2937
  }
2938
- }), cr = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
2939
- function ws(e) {
2940
- return e.matches(cr) ? e : e.querySelector(cr);
2938
+ }), ur = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
2939
+ function ks(e) {
2940
+ return e.matches(ur) ? e : e.querySelector(ur);
2941
2941
  }
2942
- const xs = {
2942
+ const Cs = {
2943
2943
  display: "none"
2944
2944
  };
2945
- function ks(e) {
2945
+ function Ss(e) {
2946
2946
  let {
2947
2947
  id: t,
2948
2948
  value: n
2949
2949
  } = e;
2950
2950
  return te.createElement("div", {
2951
2951
  id: t,
2952
- style: xs
2952
+ style: Cs
2953
2953
  }, n);
2954
2954
  }
2955
- function Cs(e) {
2955
+ function Es(e) {
2956
2956
  let {
2957
2957
  id: t,
2958
2958
  announcement: n,
@@ -2980,7 +2980,7 @@ function Cs(e) {
2980
2980
  "aria-atomic": !0
2981
2981
  }, n);
2982
2982
  }
2983
- function Ss() {
2983
+ function As() {
2984
2984
  const [e, t] = H("");
2985
2985
  return {
2986
2986
  announce: N((r) => {
@@ -2989,16 +2989,16 @@ function Ss() {
2989
2989
  announcement: e
2990
2990
  };
2991
2991
  }
2992
- const fo = /* @__PURE__ */ Xe(null);
2993
- function Es(e) {
2994
- const t = He(fo);
2992
+ const po = /* @__PURE__ */ Xe(null);
2993
+ function Ds(e) {
2994
+ const t = je(po);
2995
2995
  W(() => {
2996
2996
  if (!t)
2997
2997
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
2998
2998
  return t(e);
2999
2999
  }, [e, t]);
3000
3000
  }
3001
- function As() {
3001
+ function Ms() {
3002
3002
  const [e] = H(() => /* @__PURE__ */ new Set()), t = N((r) => (e.add(r), () => e.delete(r)), [e]);
3003
3003
  return [N((r) => {
3004
3004
  let {
@@ -3011,13 +3011,13 @@ function As() {
3011
3011
  });
3012
3012
  }, [e]), t];
3013
3013
  }
3014
- const Ds = {
3014
+ const Ls = {
3015
3015
  draggable: `
3016
3016
  To pick up a draggable item, press the space bar.
3017
3017
  While dragging, use the arrow keys to move the item.
3018
3018
  Press space again to drop the item in its new position, or press escape to cancel.
3019
3019
  `
3020
- }, Ms = {
3020
+ }, Rs = {
3021
3021
  onDragStart(e) {
3022
3022
  let {
3023
3023
  active: t
@@ -3045,20 +3045,20 @@ const Ds = {
3045
3045
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
3046
3046
  }
3047
3047
  };
3048
- function Ls(e) {
3048
+ function Ts(e) {
3049
3049
  let {
3050
- announcements: t = Ms,
3050
+ announcements: t = Rs,
3051
3051
  container: n,
3052
3052
  hiddenTextDescribedById: r,
3053
- screenReaderInstructions: o = Ds
3053
+ screenReaderInstructions: o = Ls
3054
3054
  } = e;
3055
3055
  const {
3056
3056
  announce: i,
3057
3057
  announcement: s
3058
- } = Ss(), a = Kt("DndLiveRegion"), [l, c] = H(!1);
3058
+ } = As(), a = Kt("DndLiveRegion"), [l, c] = H(!1);
3059
3059
  if (W(() => {
3060
3060
  c(!0);
3061
- }, []), Es(q(() => ({
3061
+ }, []), Ds(q(() => ({
3062
3062
  onDragStart(d) {
3063
3063
  let {
3064
3064
  active: h
@@ -3109,14 +3109,14 @@ function Ls(e) {
3109
3109
  }
3110
3110
  }), [i, t])), !l)
3111
3111
  return null;
3112
- const u = te.createElement(te.Fragment, null, te.createElement(ks, {
3112
+ const u = te.createElement(te.Fragment, null, te.createElement(Ss, {
3113
3113
  id: r,
3114
3114
  value: o.draggable
3115
- }), te.createElement(Cs, {
3115
+ }), te.createElement(Es, {
3116
3116
  id: a,
3117
3117
  announcement: s
3118
3118
  }));
3119
- return n ? Nn(u, n) : u;
3119
+ return n ? zn(u, n) : u;
3120
3120
  }
3121
3121
  var de;
3122
3122
  (function(e) {
@@ -3124,7 +3124,7 @@ var de;
3124
3124
  })(de || (de = {}));
3125
3125
  function Ut() {
3126
3126
  }
3127
- function dr(e, t) {
3127
+ function fr(e, t) {
3128
3128
  return q(
3129
3129
  () => ({
3130
3130
  sensor: e,
@@ -3134,7 +3134,7 @@ function dr(e, t) {
3134
3134
  [e, t]
3135
3135
  );
3136
3136
  }
3137
- function Rs() {
3137
+ function Is() {
3138
3138
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
3139
3139
  t[n] = arguments[n];
3140
3140
  return q(
@@ -3147,10 +3147,10 @@ const Ne = /* @__PURE__ */ Object.freeze({
3147
3147
  x: 0,
3148
3148
  y: 0
3149
3149
  });
3150
- function Vn(e, t) {
3150
+ function Wn(e, t) {
3151
3151
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
3152
3152
  }
3153
- function Ts(e, t) {
3153
+ function Ns(e, t) {
3154
3154
  const n = Ht(e);
3155
3155
  if (!n)
3156
3156
  return "0 0";
@@ -3160,7 +3160,7 @@ function Ts(e, t) {
3160
3160
  };
3161
3161
  return r.x + "% " + r.y + "%";
3162
3162
  }
3163
- function Gn(e, t) {
3163
+ function _n(e, t) {
3164
3164
  let {
3165
3165
  data: {
3166
3166
  value: n
@@ -3172,7 +3172,7 @@ function Gn(e, t) {
3172
3172
  } = t;
3173
3173
  return n - r;
3174
3174
  }
3175
- function Is(e, t) {
3175
+ function Os(e, t) {
3176
3176
  let {
3177
3177
  data: {
3178
3178
  value: n
@@ -3184,7 +3184,7 @@ function Is(e, t) {
3184
3184
  } = t;
3185
3185
  return r - n;
3186
3186
  }
3187
- function En(e) {
3187
+ function An(e) {
3188
3188
  let {
3189
3189
  left: t,
3190
3190
  top: n,
@@ -3205,31 +3205,31 @@ function En(e) {
3205
3205
  y: n + r
3206
3206
  }];
3207
3207
  }
3208
- function ho(e, t) {
3208
+ function go(e, t) {
3209
3209
  if (!e || e.length === 0)
3210
3210
  return null;
3211
3211
  const [n] = e;
3212
3212
  return n[t];
3213
3213
  }
3214
- function ur(e, t, n) {
3214
+ function hr(e, t, n) {
3215
3215
  return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
3216
3216
  x: t + e.width * 0.5,
3217
3217
  y: n + e.height * 0.5
3218
3218
  };
3219
3219
  }
3220
- const Ns = (e) => {
3220
+ const zs = (e) => {
3221
3221
  let {
3222
3222
  collisionRect: t,
3223
3223
  droppableRects: n,
3224
3224
  droppableContainers: r
3225
3225
  } = e;
3226
- const o = ur(t, t.left, t.top), i = [];
3226
+ const o = hr(t, t.left, t.top), i = [];
3227
3227
  for (const s of r) {
3228
3228
  const {
3229
3229
  id: a
3230
3230
  } = s, l = n.get(a);
3231
3231
  if (l) {
3232
- const c = Vn(ur(l), o);
3232
+ const c = Wn(hr(l), o);
3233
3233
  i.push({
3234
3234
  id: a,
3235
3235
  data: {
@@ -3239,20 +3239,20 @@ const Ns = (e) => {
3239
3239
  });
3240
3240
  }
3241
3241
  }
3242
- return i.sort(Gn);
3243
- }, Os = (e) => {
3242
+ return i.sort(_n);
3243
+ }, Fs = (e) => {
3244
3244
  let {
3245
3245
  collisionRect: t,
3246
3246
  droppableRects: n,
3247
3247
  droppableContainers: r
3248
3248
  } = e;
3249
- const o = En(t), i = [];
3249
+ const o = An(t), i = [];
3250
3250
  for (const s of r) {
3251
3251
  const {
3252
3252
  id: a
3253
3253
  } = s, l = n.get(a);
3254
3254
  if (l) {
3255
- const c = En(l), u = o.reduce((h, g, x) => h + Vn(c[x], g), 0), d = Number((u / 4).toFixed(4));
3255
+ const c = An(l), u = o.reduce((h, g, x) => h + Wn(c[x], g), 0), d = Number((u / 4).toFixed(4));
3256
3256
  i.push({
3257
3257
  id: a,
3258
3258
  data: {
@@ -3262,9 +3262,9 @@ const Ns = (e) => {
3262
3262
  });
3263
3263
  }
3264
3264
  }
3265
- return i.sort(Gn);
3265
+ return i.sort(_n);
3266
3266
  };
3267
- function zs(e, t) {
3267
+ function Ps(e, t) {
3268
3268
  const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, a = i - n;
3269
3269
  if (r < o && n < i) {
3270
3270
  const l = t.width * t.height, c = e.width * e.height, u = s * a, d = u / (l + c - u);
@@ -3272,7 +3272,7 @@ function zs(e, t) {
3272
3272
  }
3273
3273
  return 0;
3274
3274
  }
3275
- const Fs = (e) => {
3275
+ const js = (e) => {
3276
3276
  let {
3277
3277
  collisionRect: t,
3278
3278
  droppableRects: n,
@@ -3284,7 +3284,7 @@ const Fs = (e) => {
3284
3284
  id: s
3285
3285
  } = i, a = n.get(s);
3286
3286
  if (a) {
3287
- const l = zs(a, t);
3287
+ const l = Ps(a, t);
3288
3288
  l > 0 && o.push({
3289
3289
  id: s,
3290
3290
  data: {
@@ -3294,9 +3294,9 @@ const Fs = (e) => {
3294
3294
  });
3295
3295
  }
3296
3296
  }
3297
- return o.sort(Is);
3297
+ return o.sort(Os);
3298
3298
  };
3299
- function Ps(e, t) {
3299
+ function $s(e, t) {
3300
3300
  const {
3301
3301
  top: n,
3302
3302
  left: r,
@@ -3305,7 +3305,7 @@ function Ps(e, t) {
3305
3305
  } = t;
3306
3306
  return n <= e.y && e.y <= o && r <= e.x && e.x <= i;
3307
3307
  }
3308
- const js = (e) => {
3308
+ const Bs = (e) => {
3309
3309
  let {
3310
3310
  droppableContainers: t,
3311
3311
  droppableRects: n,
@@ -3318,8 +3318,8 @@ const js = (e) => {
3318
3318
  const {
3319
3319
  id: s
3320
3320
  } = i, a = n.get(s);
3321
- if (a && Ps(r, a)) {
3322
- const c = En(a).reduce((d, h) => d + Vn(r, h), 0), u = Number((c / 4).toFixed(4));
3321
+ if (a && $s(r, a)) {
3322
+ const c = An(a).reduce((d, h) => d + Wn(r, h), 0), u = Number((c / 4).toFixed(4));
3323
3323
  o.push({
3324
3324
  id: s,
3325
3325
  data: {
@@ -3329,22 +3329,22 @@ const js = (e) => {
3329
3329
  });
3330
3330
  }
3331
3331
  }
3332
- return o.sort(Gn);
3332
+ return o.sort(_n);
3333
3333
  };
3334
- function $s(e, t, n) {
3334
+ function Hs(e, t, n) {
3335
3335
  return {
3336
3336
  ...e,
3337
3337
  scaleX: t && n ? t.width / n.width : 1,
3338
3338
  scaleY: t && n ? t.height / n.height : 1
3339
3339
  };
3340
3340
  }
3341
- function po(e, t) {
3341
+ function mo(e, t) {
3342
3342
  return e && t ? {
3343
3343
  x: e.left - t.left,
3344
3344
  y: e.top - t.top
3345
3345
  } : Ne;
3346
3346
  }
3347
- function Bs(e) {
3347
+ function Us(e) {
3348
3348
  return function(n) {
3349
3349
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
3350
3350
  o[i - 1] = arguments[i];
@@ -3359,8 +3359,8 @@ function Bs(e) {
3359
3359
  });
3360
3360
  };
3361
3361
  }
3362
- const Hs = /* @__PURE__ */ Bs(1);
3363
- function go(e) {
3362
+ const Vs = /* @__PURE__ */ Us(1);
3363
+ function vo(e) {
3364
3364
  if (e.startsWith("matrix3d(")) {
3365
3365
  const t = e.slice(9, -1).split(/, /);
3366
3366
  return {
@@ -3380,8 +3380,8 @@ function go(e) {
3380
3380
  }
3381
3381
  return null;
3382
3382
  }
3383
- function Us(e, t, n) {
3384
- const r = go(t);
3383
+ function Gs(e, t, n) {
3384
+ const r = vo(t);
3385
3385
  if (!r)
3386
3386
  return e;
3387
3387
  const {
@@ -3399,18 +3399,18 @@ function Us(e, t, n) {
3399
3399
  left: l
3400
3400
  };
3401
3401
  }
3402
- const Vs = {
3402
+ const Ws = {
3403
3403
  ignoreTransform: !1
3404
3404
  };
3405
3405
  function At(e, t) {
3406
- t === void 0 && (t = Vs);
3406
+ t === void 0 && (t = Ws);
3407
3407
  let n = e.getBoundingClientRect();
3408
3408
  if (t.ignoreTransform) {
3409
3409
  const {
3410
3410
  transform: c,
3411
3411
  transformOrigin: u
3412
3412
  } = ke(e).getComputedStyle(e);
3413
- c && (n = Us(n, c, u));
3413
+ c && (n = Gs(n, c, u));
3414
3414
  }
3415
3415
  const {
3416
3416
  top: r,
@@ -3429,12 +3429,12 @@ function At(e, t) {
3429
3429
  right: l
3430
3430
  };
3431
3431
  }
3432
- function fr(e) {
3432
+ function pr(e) {
3433
3433
  return At(e, {
3434
3434
  ignoreTransform: !0
3435
3435
  });
3436
3436
  }
3437
- function Gs(e) {
3437
+ function _s(e) {
3438
3438
  const t = e.innerWidth, n = e.innerHeight;
3439
3439
  return {
3440
3440
  top: 0,
@@ -3445,10 +3445,10 @@ function Gs(e) {
3445
3445
  height: n
3446
3446
  };
3447
3447
  }
3448
- function Ws(e, t) {
3448
+ function qs(e, t) {
3449
3449
  return t === void 0 && (t = ke(e).getComputedStyle(e)), t.position === "fixed";
3450
3450
  }
3451
- function _s(e, t) {
3451
+ function Ys(e, t) {
3452
3452
  t === void 0 && (t = ke(e).getComputedStyle(e));
3453
3453
  const n = /(auto|scroll|overlay)/;
3454
3454
  return ["overflow", "overflowX", "overflowY"].some((o) => {
@@ -3461,46 +3461,46 @@ function Xt(e, t) {
3461
3461
  function r(o) {
3462
3462
  if (t != null && n.length >= t || !o)
3463
3463
  return n;
3464
- if (Hn(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
3464
+ if (Vn(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
3465
3465
  return n.push(o.scrollingElement), n;
3466
- if (!St(o) || co(o) || n.includes(o))
3466
+ if (!St(o) || fo(o) || n.includes(o))
3467
3467
  return n;
3468
3468
  const i = ke(e).getComputedStyle(o);
3469
- return o !== e && _s(o, i) && n.push(o), Ws(o, i) ? n : r(o.parentNode);
3469
+ return o !== e && Ys(o, i) && n.push(o), qs(o, i) ? n : r(o.parentNode);
3470
3470
  }
3471
3471
  return e ? r(e) : n;
3472
3472
  }
3473
- function mo(e) {
3473
+ function yo(e) {
3474
3474
  const [t] = Xt(e, 1);
3475
3475
  return t ?? null;
3476
3476
  }
3477
- function fn(e) {
3478
- return !qt || !e ? null : it(e) ? e : Bn(e) ? Hn(e) || e === st(e).scrollingElement ? window : St(e) ? e : null : null;
3477
+ function hn(e) {
3478
+ return !qt || !e ? null : it(e) ? e : Un(e) ? Vn(e) || e === st(e).scrollingElement ? window : St(e) ? e : null : null;
3479
3479
  }
3480
- function vo(e) {
3480
+ function bo(e) {
3481
3481
  return it(e) ? e.scrollX : e.scrollLeft;
3482
3482
  }
3483
- function yo(e) {
3483
+ function wo(e) {
3484
3484
  return it(e) ? e.scrollY : e.scrollTop;
3485
3485
  }
3486
- function An(e) {
3486
+ function Dn(e) {
3487
3487
  return {
3488
- x: vo(e),
3489
- y: yo(e)
3488
+ x: bo(e),
3489
+ y: wo(e)
3490
3490
  };
3491
3491
  }
3492
3492
  var he;
3493
3493
  (function(e) {
3494
3494
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
3495
3495
  })(he || (he = {}));
3496
- function bo(e) {
3496
+ function xo(e) {
3497
3497
  return !qt || !e ? !1 : e === document.scrollingElement;
3498
3498
  }
3499
- function wo(e) {
3499
+ function ko(e) {
3500
3500
  const t = {
3501
3501
  x: 0,
3502
3502
  y: 0
3503
- }, n = bo(e) ? {
3503
+ }, n = xo(e) ? {
3504
3504
  height: window.innerHeight,
3505
3505
  width: window.innerWidth
3506
3506
  } : {
@@ -3519,24 +3519,24 @@ function wo(e) {
3519
3519
  minScroll: t
3520
3520
  };
3521
3521
  }
3522
- const qs = {
3522
+ const Ks = {
3523
3523
  x: 0.2,
3524
3524
  y: 0.2
3525
3525
  };
3526
- function Ys(e, t, n, r, o) {
3526
+ function Xs(e, t, n, r, o) {
3527
3527
  let {
3528
3528
  top: i,
3529
3529
  left: s,
3530
3530
  right: a,
3531
3531
  bottom: l
3532
3532
  } = n;
3533
- r === void 0 && (r = 10), o === void 0 && (o = qs);
3533
+ r === void 0 && (r = 10), o === void 0 && (o = Ks);
3534
3534
  const {
3535
3535
  isTop: c,
3536
3536
  isBottom: u,
3537
3537
  isLeft: d,
3538
3538
  isRight: h
3539
- } = wo(e), g = {
3539
+ } = ko(e), g = {
3540
3540
  x: 0,
3541
3541
  y: 0
3542
3542
  }, x = {
@@ -3551,7 +3551,7 @@ function Ys(e, t, n, r, o) {
3551
3551
  speed: x
3552
3552
  };
3553
3553
  }
3554
- function Ks(e) {
3554
+ function Js(e) {
3555
3555
  if (e === document.scrollingElement) {
3556
3556
  const {
3557
3557
  innerWidth: i,
@@ -3581,16 +3581,16 @@ function Ks(e) {
3581
3581
  height: e.clientHeight
3582
3582
  };
3583
3583
  }
3584
- function xo(e) {
3585
- return e.reduce((t, n) => et(t, An(n)), Ne);
3584
+ function Co(e) {
3585
+ return e.reduce((t, n) => et(t, Dn(n)), Ne);
3586
3586
  }
3587
- function Xs(e) {
3588
- return e.reduce((t, n) => t + vo(n), 0);
3587
+ function Qs(e) {
3588
+ return e.reduce((t, n) => t + bo(n), 0);
3589
3589
  }
3590
- function Js(e) {
3591
- return e.reduce((t, n) => t + yo(n), 0);
3590
+ function Zs(e) {
3591
+ return e.reduce((t, n) => t + wo(n), 0);
3592
3592
  }
3593
- function ko(e, t) {
3593
+ function So(e, t) {
3594
3594
  if (t === void 0 && (t = At), !e)
3595
3595
  return;
3596
3596
  const {
@@ -3599,20 +3599,20 @@ function ko(e, t) {
3599
3599
  bottom: o,
3600
3600
  right: i
3601
3601
  } = t(e);
3602
- mo(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
3602
+ yo(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
3603
3603
  block: "center",
3604
3604
  inline: "center"
3605
3605
  });
3606
3606
  }
3607
- const Qs = [["x", ["left", "right"], Xs], ["y", ["top", "bottom"], Js]];
3608
- class Wn {
3607
+ const ea = [["x", ["left", "right"], Qs], ["y", ["top", "bottom"], Zs]];
3608
+ class qn {
3609
3609
  constructor(t, n) {
3610
3610
  this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
3611
- const r = Xt(n), o = xo(r);
3611
+ const r = Xt(n), o = Co(r);
3612
3612
  this.rect = {
3613
3613
  ...t
3614
3614
  }, this.width = t.width, this.height = t.height;
3615
- for (const [i, s, a] of Qs)
3615
+ for (const [i, s, a] of ea)
3616
3616
  for (const l of s)
3617
3617
  Object.defineProperty(this, l, {
3618
3618
  get: () => {
@@ -3640,13 +3640,13 @@ class gt {
3640
3640
  (o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
3641
3641
  }
3642
3642
  }
3643
- function Zs(e) {
3643
+ function ta(e) {
3644
3644
  const {
3645
3645
  EventTarget: t
3646
3646
  } = ke(e);
3647
3647
  return e instanceof t ? e : st(e);
3648
3648
  }
3649
- function hn(e, t) {
3649
+ function pn(e, t) {
3650
3650
  const n = Math.abs(e.x), r = Math.abs(e.y);
3651
3651
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
3652
3652
  }
@@ -3654,21 +3654,21 @@ var Re;
3654
3654
  (function(e) {
3655
3655
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
3656
3656
  })(Re || (Re = {}));
3657
- function hr(e) {
3657
+ function gr(e) {
3658
3658
  e.preventDefault();
3659
3659
  }
3660
- function ea(e) {
3660
+ function na(e) {
3661
3661
  e.stopPropagation();
3662
3662
  }
3663
3663
  var U;
3664
3664
  (function(e) {
3665
3665
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
3666
3666
  })(U || (U = {}));
3667
- const Co = {
3667
+ const Eo = {
3668
3668
  start: [U.Space, U.Enter],
3669
3669
  cancel: [U.Esc],
3670
3670
  end: [U.Space, U.Enter, U.Tab]
3671
- }, ta = (e, t) => {
3671
+ }, ra = (e, t) => {
3672
3672
  let {
3673
3673
  currentCoordinates: n
3674
3674
  } = t;
@@ -3695,7 +3695,7 @@ const Co = {
3695
3695
  };
3696
3696
  }
3697
3697
  };
3698
- class _n {
3698
+ class Yn {
3699
3699
  constructor(t) {
3700
3700
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
3701
3701
  const {
@@ -3713,17 +3713,17 @@ class _n {
3713
3713
  activeNode: t,
3714
3714
  onStart: n
3715
3715
  } = this.props, r = t.node.current;
3716
- r && ko(r), n(Ne);
3716
+ r && So(r), n(Ne);
3717
3717
  }
3718
3718
  handleKeyDown(t) {
3719
- if (Un(t)) {
3719
+ if (Gn(t)) {
3720
3720
  const {
3721
3721
  active: n,
3722
3722
  context: r,
3723
3723
  options: o
3724
3724
  } = this.props, {
3725
- keyboardCodes: i = Co,
3726
- coordinateGetter: s = ta,
3725
+ keyboardCodes: i = Eo,
3726
+ coordinateGetter: s = ra,
3727
3727
  scrollBehavior: a = "smooth"
3728
3728
  } = o, {
3729
3729
  code: l
@@ -3763,7 +3763,7 @@ class _n {
3763
3763
  isBottom: M,
3764
3764
  maxScroll: T,
3765
3765
  minScroll: y
3766
- } = wo(w), S = Ks(w), v = {
3766
+ } = ko(w), S = Js(w), v = {
3767
3767
  x: Math.min(p === U.Right ? S.right - S.width / 2 : S.right, Math.max(p === U.Right ? S.left : S.left + S.width / 2, d.x)),
3768
3768
  y: Math.min(p === U.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(p === U.Down ? S.top : S.top + S.height / 2, d.y))
3769
3769
  }, L = p === U.Right && !E || p === U.Left && !A, b = p === U.Down && !M || p === U.Up && !m;
@@ -3823,11 +3823,11 @@ class _n {
3823
3823
  this.listeners.removeAll(), this.windowListeners.removeAll();
3824
3824
  }
3825
3825
  }
3826
- _n.activators = [{
3826
+ Yn.activators = [{
3827
3827
  eventName: "onKeyDown",
3828
3828
  handler: (e, t, n) => {
3829
3829
  let {
3830
- keyboardCodes: r = Co,
3830
+ keyboardCodes: r = Eo,
3831
3831
  onActivation: o
3832
3832
  } = t, {
3833
3833
  active: i
@@ -3844,16 +3844,16 @@ _n.activators = [{
3844
3844
  return !1;
3845
3845
  }
3846
3846
  }];
3847
- function pr(e) {
3847
+ function mr(e) {
3848
3848
  return !!(e && "distance" in e);
3849
3849
  }
3850
- function gr(e) {
3850
+ function vr(e) {
3851
3851
  return !!(e && "delay" in e);
3852
3852
  }
3853
- class qn {
3853
+ class Kn {
3854
3854
  constructor(t, n, r) {
3855
3855
  var o;
3856
- r === void 0 && (r = Zs(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
3856
+ r === void 0 && (r = ta(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
3857
3857
  const {
3858
3858
  event: i
3859
3859
  } = t, {
@@ -3873,18 +3873,18 @@ class qn {
3873
3873
  } = this;
3874
3874
  if (this.listeners.add(t.move.name, this.handleMove, {
3875
3875
  passive: !1
3876
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(Re.Resize, this.handleCancel), this.windowListeners.add(Re.DragStart, hr), this.windowListeners.add(Re.VisibilityChange, this.handleCancel), this.windowListeners.add(Re.ContextMenu, hr), this.documentListeners.add(Re.Keydown, this.handleKeydown), n) {
3876
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(Re.Resize, this.handleCancel), this.windowListeners.add(Re.DragStart, gr), this.windowListeners.add(Re.VisibilityChange, this.handleCancel), this.windowListeners.add(Re.ContextMenu, gr), this.documentListeners.add(Re.Keydown, this.handleKeydown), n) {
3877
3877
  if (r != null && r({
3878
3878
  event: this.props.event,
3879
3879
  activeNode: this.props.activeNode,
3880
3880
  options: this.props.options
3881
3881
  }))
3882
3882
  return this.handleStart();
3883
- if (gr(n)) {
3883
+ if (vr(n)) {
3884
3884
  this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
3885
3885
  return;
3886
3886
  }
3887
- if (pr(n)) {
3887
+ if (mr(n)) {
3888
3888
  this.handlePending(n);
3889
3889
  return;
3890
3890
  }
@@ -3907,7 +3907,7 @@ class qn {
3907
3907
  } = this, {
3908
3908
  onStart: n
3909
3909
  } = this.props;
3910
- t && (this.activated = !0, this.documentListeners.add(Re.Click, ea, {
3910
+ t && (this.activated = !0, this.documentListeners.add(Re.Click, na, {
3911
3911
  capture: !0
3912
3912
  }), this.removeTextSelection(), this.documentListeners.add(Re.SelectionChange, this.removeTextSelection), n(t));
3913
3913
  }
@@ -3927,13 +3927,13 @@ class qn {
3927
3927
  return;
3928
3928
  const l = (n = Ht(t)) != null ? n : Ne, c = wt(o, l);
3929
3929
  if (!r && a) {
3930
- if (pr(a)) {
3931
- if (a.tolerance != null && hn(c, a.tolerance))
3930
+ if (mr(a)) {
3931
+ if (a.tolerance != null && pn(c, a.tolerance))
3932
3932
  return this.handleCancel();
3933
- if (hn(c, a.distance))
3933
+ if (pn(c, a.distance))
3934
3934
  return this.handleStart();
3935
3935
  }
3936
- if (gr(a) && hn(c, a.tolerance))
3936
+ if (vr(a) && pn(c, a.tolerance))
3937
3937
  return this.handleCancel();
3938
3938
  this.handlePending(a, c);
3939
3939
  return;
@@ -3962,7 +3962,7 @@ class qn {
3962
3962
  (t = this.document.getSelection()) == null || t.removeAllRanges();
3963
3963
  }
3964
3964
  }
3965
- const na = {
3965
+ const oa = {
3966
3966
  cancel: {
3967
3967
  name: "pointercancel"
3968
3968
  },
@@ -3973,15 +3973,15 @@ const na = {
3973
3973
  name: "pointerup"
3974
3974
  }
3975
3975
  };
3976
- class Yn extends qn {
3976
+ class Xn extends Kn {
3977
3977
  constructor(t) {
3978
3978
  const {
3979
3979
  event: n
3980
3980
  } = t, r = st(n.target);
3981
- super(t, na, r);
3981
+ super(t, oa, r);
3982
3982
  }
3983
3983
  }
3984
- Yn.activators = [{
3984
+ Xn.activators = [{
3985
3985
  eventName: "onPointerDown",
3986
3986
  handler: (e, t) => {
3987
3987
  let {
@@ -3994,7 +3994,7 @@ Yn.activators = [{
3994
3994
  }), !0);
3995
3995
  }
3996
3996
  }];
3997
- const ra = {
3997
+ const ia = {
3998
3998
  move: {
3999
3999
  name: "mousemove"
4000
4000
  },
@@ -4002,16 +4002,16 @@ const ra = {
4002
4002
  name: "mouseup"
4003
4003
  }
4004
4004
  };
4005
- var Dn;
4005
+ var Mn;
4006
4006
  (function(e) {
4007
4007
  e[e.RightClick = 2] = "RightClick";
4008
- })(Dn || (Dn = {}));
4009
- class oa extends qn {
4008
+ })(Mn || (Mn = {}));
4009
+ class sa extends Kn {
4010
4010
  constructor(t) {
4011
- super(t, ra, st(t.event.target));
4011
+ super(t, ia, st(t.event.target));
4012
4012
  }
4013
4013
  }
4014
- oa.activators = [{
4014
+ sa.activators = [{
4015
4015
  eventName: "onMouseDown",
4016
4016
  handler: (e, t) => {
4017
4017
  let {
@@ -4019,12 +4019,12 @@ oa.activators = [{
4019
4019
  } = e, {
4020
4020
  onActivation: r
4021
4021
  } = t;
4022
- return n.button === Dn.RightClick ? !1 : (r == null || r({
4022
+ return n.button === Mn.RightClick ? !1 : (r == null || r({
4023
4023
  event: n
4024
4024
  }), !0);
4025
4025
  }
4026
4026
  }];
4027
- const pn = {
4027
+ const gn = {
4028
4028
  cancel: {
4029
4029
  name: "touchcancel"
4030
4030
  },
@@ -4035,22 +4035,22 @@ const pn = {
4035
4035
  name: "touchend"
4036
4036
  }
4037
4037
  };
4038
- class ia extends qn {
4038
+ class aa extends Kn {
4039
4039
  constructor(t) {
4040
- super(t, pn);
4040
+ super(t, gn);
4041
4041
  }
4042
4042
  static setup() {
4043
- return window.addEventListener(pn.move.name, t, {
4043
+ return window.addEventListener(gn.move.name, t, {
4044
4044
  capture: !1,
4045
4045
  passive: !1
4046
4046
  }), function() {
4047
- window.removeEventListener(pn.move.name, t);
4047
+ window.removeEventListener(gn.move.name, t);
4048
4048
  };
4049
4049
  function t() {
4050
4050
  }
4051
4051
  }
4052
4052
  }
4053
- ia.activators = [{
4053
+ aa.activators = [{
4054
4054
  eventName: "onTouchStart",
4055
4055
  handler: (e, t) => {
4056
4056
  let {
@@ -4074,7 +4074,7 @@ var Vt;
4074
4074
  (function(e) {
4075
4075
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
4076
4076
  })(Vt || (Vt = {}));
4077
- function sa(e) {
4077
+ function la(e) {
4078
4078
  let {
4079
4079
  acceleration: t,
4080
4080
  activator: n = mt.Pointer,
@@ -4089,10 +4089,10 @@ function sa(e) {
4089
4089
  delta: d,
4090
4090
  threshold: h
4091
4091
  } = e;
4092
- const g = la({
4092
+ const g = da({
4093
4093
  delta: d,
4094
4094
  disabled: !i
4095
- }), [x, w] = vs(), p = G({
4095
+ }), [x, w] = bs(), p = G({
4096
4096
  x: 0,
4097
4097
  y: 0
4098
4098
  }), m = G({
@@ -4132,7 +4132,7 @@ function sa(e) {
4132
4132
  const {
4133
4133
  direction: L,
4134
4134
  speed: b
4135
- } = Ys(y, v, E, t, h);
4135
+ } = Xs(y, v, E, t, h);
4136
4136
  for (const D of ["x", "y"])
4137
4137
  g[D][L[D]] || (b[D] = 0, L[D] = 0);
4138
4138
  if (b.x > 0 || b.y > 0) {
@@ -4169,7 +4169,7 @@ function sa(e) {
4169
4169
  ]
4170
4170
  );
4171
4171
  }
4172
- const aa = {
4172
+ const ca = {
4173
4173
  x: {
4174
4174
  [he.Backward]: !1,
4175
4175
  [he.Forward]: !1
@@ -4179,7 +4179,7 @@ const aa = {
4179
4179
  [he.Forward]: !1
4180
4180
  }
4181
4181
  };
4182
- function la(e) {
4182
+ function da(e) {
4183
4183
  let {
4184
4184
  delta: t,
4185
4185
  disabled: n
@@ -4187,7 +4187,7 @@ function la(e) {
4187
4187
  const r = Bt(t);
4188
4188
  return Et((o) => {
4189
4189
  if (n || !r || !o)
4190
- return aa;
4190
+ return ca;
4191
4191
  const i = {
4192
4192
  x: Math.sign(t.x - r.x),
4193
4193
  y: Math.sign(t.y - r.y)
@@ -4204,14 +4204,14 @@ function la(e) {
4204
4204
  };
4205
4205
  }, [n, t, r]);
4206
4206
  }
4207
- function ca(e, t) {
4207
+ function ua(e, t) {
4208
4208
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
4209
4209
  return Et((o) => {
4210
4210
  var i;
4211
4211
  return t == null ? null : (i = r ?? o) != null ? i : null;
4212
4212
  }, [r, t]);
4213
4213
  }
4214
- function da(e, t) {
4214
+ function fa(e, t) {
4215
4215
  return q(() => e.reduce((n, r) => {
4216
4216
  const {
4217
4217
  sensor: o
@@ -4226,12 +4226,12 @@ var kt;
4226
4226
  (function(e) {
4227
4227
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
4228
4228
  })(kt || (kt = {}));
4229
- var Mn;
4229
+ var Ln;
4230
4230
  (function(e) {
4231
4231
  e.Optimized = "optimized";
4232
- })(Mn || (Mn = {}));
4233
- const mr = /* @__PURE__ */ new Map();
4234
- function ua(e, t) {
4232
+ })(Ln || (Ln = {}));
4233
+ const yr = /* @__PURE__ */ new Map();
4234
+ function ha(e, t) {
4235
4235
  let {
4236
4236
  dragging: n,
4237
4237
  dependencies: r,
@@ -4245,8 +4245,8 @@ function ua(e, t) {
4245
4245
  m === void 0 && (m = []), !h.current && s((E) => E === null ? m : E.concat(m.filter((A) => !E.includes(A))));
4246
4246
  }, [h]), x = G(null), w = Et((m) => {
4247
4247
  if (d && !n)
4248
- return mr;
4249
- if (!m || m === mr || u.current !== e || i != null) {
4248
+ return yr;
4249
+ if (!m || m === yr || u.current !== e || i != null) {
4250
4250
  const E = /* @__PURE__ */ new Map();
4251
4251
  for (let A of e) {
4252
4252
  if (!A)
@@ -4255,7 +4255,7 @@ function ua(e, t) {
4255
4255
  E.set(A.id, A.rect.current);
4256
4256
  continue;
4257
4257
  }
4258
- const M = A.node.current, T = M ? new Wn(l(M), M) : null;
4258
+ const M = A.node.current, T = M ? new qn(l(M), M) : null;
4259
4259
  A.rect.current = T, T && E.set(A.id, T);
4260
4260
  }
4261
4261
  return E;
@@ -4300,13 +4300,13 @@ function ua(e, t) {
4300
4300
  }
4301
4301
  }
4302
4302
  }
4303
- function Kn(e, t) {
4303
+ function Jn(e, t) {
4304
4304
  return Et((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
4305
4305
  }
4306
- function fa(e, t) {
4307
- return Kn(e, t);
4306
+ function pa(e, t) {
4307
+ return Jn(e, t);
4308
4308
  }
4309
- function ha(e) {
4309
+ function ga(e) {
4310
4310
  let {
4311
4311
  callback: t,
4312
4312
  disabled: n
@@ -4340,11 +4340,11 @@ function Jt(e) {
4340
4340
  );
4341
4341
  return W(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
4342
4342
  }
4343
- function pa(e) {
4344
- return new Wn(At(e), e);
4343
+ function ma(e) {
4344
+ return new qn(At(e), e);
4345
4345
  }
4346
- function vr(e, t, n) {
4347
- t === void 0 && (t = pa);
4346
+ function br(e, t, n) {
4347
+ t === void 0 && (t = ma);
4348
4348
  const [r, o] = H(null);
4349
4349
  function i() {
4350
4350
  o((l) => {
@@ -4358,7 +4358,7 @@ function vr(e, t, n) {
4358
4358
  return JSON.stringify(l) === JSON.stringify(u) ? l : u;
4359
4359
  });
4360
4360
  }
4361
- const s = ha({
4361
+ const s = ga({
4362
4362
  callback(l) {
4363
4363
  if (e)
4364
4364
  for (const c of l) {
@@ -4382,31 +4382,31 @@ function vr(e, t, n) {
4382
4382
  })) : (a == null || a.disconnect(), s == null || s.disconnect());
4383
4383
  }, [e]), r;
4384
4384
  }
4385
- function ga(e) {
4386
- const t = Kn(e);
4387
- return po(e, t);
4385
+ function va(e) {
4386
+ const t = Jn(e);
4387
+ return mo(e, t);
4388
4388
  }
4389
- const yr = [];
4390
- function ma(e) {
4391
- const t = G(e), n = Et((r) => e ? r && r !== yr && e && t.current && e.parentNode === t.current.parentNode ? r : Xt(e) : yr, [e]);
4389
+ const wr = [];
4390
+ function ya(e) {
4391
+ const t = G(e), n = Et((r) => e ? r && r !== wr && e && t.current && e.parentNode === t.current.parentNode ? r : Xt(e) : wr, [e]);
4392
4392
  return W(() => {
4393
4393
  t.current = e;
4394
4394
  }, [e]), n;
4395
4395
  }
4396
- function va(e) {
4396
+ function ba(e) {
4397
4397
  const [t, n] = H(null), r = G(e), o = N((i) => {
4398
- const s = fn(i.target);
4399
- s && n((a) => a ? (a.set(s, An(s)), new Map(a)) : null);
4398
+ const s = hn(i.target);
4399
+ s && n((a) => a ? (a.set(s, Dn(s)), new Map(a)) : null);
4400
4400
  }, []);
4401
4401
  return W(() => {
4402
4402
  const i = r.current;
4403
4403
  if (e !== i) {
4404
4404
  s(i);
4405
4405
  const a = e.map((l) => {
4406
- const c = fn(l);
4406
+ const c = hn(l);
4407
4407
  return c ? (c.addEventListener("scroll", o, {
4408
4408
  passive: !0
4409
- }), [c, An(c)]) : null;
4409
+ }), [c, Dn(c)]) : null;
4410
4410
  }).filter((l) => l != null);
4411
4411
  n(a.length ? new Map(a) : null), r.current = e;
4412
4412
  }
@@ -4415,13 +4415,13 @@ function va(e) {
4415
4415
  };
4416
4416
  function s(a) {
4417
4417
  a.forEach((l) => {
4418
- const c = fn(l);
4418
+ const c = hn(l);
4419
4419
  c == null || c.removeEventListener("scroll", o);
4420
4420
  });
4421
4421
  }
4422
- }, [o, e]), q(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => et(i, s), Ne) : xo(e) : Ne, [e, t]);
4422
+ }, [o, e]), q(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => et(i, s), Ne) : Co(e) : Ne, [e, t]);
4423
4423
  }
4424
- function br(e, t) {
4424
+ function xr(e, t) {
4425
4425
  t === void 0 && (t = []);
4426
4426
  const n = G(null);
4427
4427
  return W(
@@ -4435,7 +4435,7 @@ function br(e, t) {
4435
4435
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
4436
4436
  }, [e]), n.current ? wt(e, n.current) : Ne;
4437
4437
  }
4438
- function ya(e) {
4438
+ function wa(e) {
4439
4439
  W(
4440
4440
  () => {
4441
4441
  if (!qt)
@@ -4461,7 +4461,7 @@ function ya(e) {
4461
4461
  })
4462
4462
  );
4463
4463
  }
4464
- function ba(e, t) {
4464
+ function xa(e, t) {
4465
4465
  return q(() => e.reduce((n, r) => {
4466
4466
  let {
4467
4467
  eventName: o,
@@ -4472,15 +4472,15 @@ function ba(e, t) {
4472
4472
  }, n;
4473
4473
  }, {}), [e, t]);
4474
4474
  }
4475
- function So(e) {
4476
- return q(() => e ? Gs(e) : null, [e]);
4475
+ function Ao(e) {
4476
+ return q(() => e ? _s(e) : null, [e]);
4477
4477
  }
4478
- const wr = [];
4479
- function wa(e, t) {
4478
+ const kr = [];
4479
+ function ka(e, t) {
4480
4480
  t === void 0 && (t = At);
4481
- const [n] = e, r = So(n ? ke(n) : null), [o, i] = H(wr);
4481
+ const [n] = e, r = Ao(n ? ke(n) : null), [o, i] = H(kr);
4482
4482
  function s() {
4483
- i(() => e.length ? e.map((l) => bo(l) ? r : new Wn(t(l), l)) : wr);
4483
+ i(() => e.length ? e.map((l) => xo(l) ? r : new qn(t(l), l)) : kr);
4484
4484
  }
4485
4485
  const a = Jt({
4486
4486
  callback: s
@@ -4489,7 +4489,7 @@ function wa(e, t) {
4489
4489
  a == null || a.disconnect(), s(), e.forEach((l) => a == null ? void 0 : a.observe(l));
4490
4490
  }, [e]), o;
4491
4491
  }
4492
- function Eo(e) {
4492
+ function Do(e) {
4493
4493
  if (!e)
4494
4494
  return null;
4495
4495
  if (e.children.length > 1)
@@ -4497,7 +4497,7 @@ function Eo(e) {
4497
4497
  const t = e.children[0];
4498
4498
  return St(t) ? t : e;
4499
4499
  }
4500
- function xa(e) {
4500
+ function Ca(e) {
4501
4501
  let {
4502
4502
  measure: t
4503
4503
  } = e;
@@ -4519,7 +4519,7 @@ function xa(e) {
4519
4519
  }, [t]), i = Jt({
4520
4520
  callback: o
4521
4521
  }), s = N((c) => {
4522
- const u = Eo(c);
4522
+ const u = Do(c);
4523
4523
  i == null || i.disconnect(), u && (i == null || i.observe(u)), r(u ? t(u) : null);
4524
4524
  }, [t, i]), [a, l] = $t(s);
4525
4525
  return q(() => ({
@@ -4528,22 +4528,22 @@ function xa(e) {
4528
4528
  setRef: l
4529
4529
  }), [n, a, l]);
4530
4530
  }
4531
- const ka = [{
4532
- sensor: Yn,
4531
+ const Sa = [{
4532
+ sensor: Xn,
4533
4533
  options: {}
4534
4534
  }, {
4535
- sensor: _n,
4535
+ sensor: Yn,
4536
4536
  options: {}
4537
- }], Ca = {
4537
+ }], Ea = {
4538
4538
  current: {}
4539
4539
  }, Ft = {
4540
4540
  draggable: {
4541
- measure: fr
4541
+ measure: pr
4542
4542
  },
4543
4543
  droppable: {
4544
- measure: fr,
4544
+ measure: pr,
4545
4545
  strategy: kt.WhileDragging,
4546
- frequency: Mn.Optimized
4546
+ frequency: Ln.Optimized
4547
4547
  },
4548
4548
  dragOverlay: {
4549
4549
  measure: At
@@ -4570,7 +4570,7 @@ class vt extends Map {
4570
4570
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
4571
4571
  }
4572
4572
  }
4573
- const Sa = {
4573
+ const Aa = {
4574
4574
  activatorEvent: null,
4575
4575
  active: null,
4576
4576
  activeNode: null,
@@ -4594,7 +4594,7 @@ const Sa = {
4594
4594
  measureDroppableContainers: Ut,
4595
4595
  windowRect: null,
4596
4596
  measuringScheduled: !1
4597
- }, Ao = {
4597
+ }, Mo = {
4598
4598
  activatorEvent: null,
4599
4599
  activators: [],
4600
4600
  active: null,
@@ -4606,8 +4606,8 @@ const Sa = {
4606
4606
  draggableNodes: /* @__PURE__ */ new Map(),
4607
4607
  over: null,
4608
4608
  measureDroppableContainers: Ut
4609
- }, Dt = /* @__PURE__ */ Xe(Ao), Do = /* @__PURE__ */ Xe(Sa);
4610
- function Ea() {
4609
+ }, Dt = /* @__PURE__ */ Xe(Mo), Lo = /* @__PURE__ */ Xe(Aa);
4610
+ function Da() {
4611
4611
  return {
4612
4612
  draggable: {
4613
4613
  active: null,
@@ -4626,7 +4626,7 @@ function Ea() {
4626
4626
  }
4627
4627
  };
4628
4628
  }
4629
- function Aa(e, t) {
4629
+ function Ma(e, t) {
4630
4630
  switch (t.type) {
4631
4631
  case de.DragStart:
4632
4632
  return {
@@ -4719,7 +4719,7 @@ function Aa(e, t) {
4719
4719
  return e;
4720
4720
  }
4721
4721
  }
4722
- function Da(e) {
4722
+ function La(e) {
4723
4723
  let {
4724
4724
  disabled: t
4725
4725
  } = e;
@@ -4727,10 +4727,10 @@ function Da(e) {
4727
4727
  active: n,
4728
4728
  activatorEvent: r,
4729
4729
  draggableNodes: o
4730
- } = He(Dt), i = Bt(r), s = Bt(n == null ? void 0 : n.id);
4730
+ } = je(Dt), i = Bt(r), s = Bt(n == null ? void 0 : n.id);
4731
4731
  return W(() => {
4732
4732
  if (!t && !r && i && s != null) {
4733
- if (!Un(i) || document.activeElement === i.target)
4733
+ if (!Gn(i) || document.activeElement === i.target)
4734
4734
  return;
4735
4735
  const a = o.get(s);
4736
4736
  if (!a)
@@ -4745,7 +4745,7 @@ function Da(e) {
4745
4745
  for (const u of [l.current, c.current]) {
4746
4746
  if (!u)
4747
4747
  continue;
4748
- const d = ws(u);
4748
+ const d = ks(u);
4749
4749
  if (d) {
4750
4750
  d.focus();
4751
4751
  break;
@@ -4755,7 +4755,7 @@ function Da(e) {
4755
4755
  }
4756
4756
  }, [r, t, o, s, i]), null;
4757
4757
  }
4758
- function Mo(e, t) {
4758
+ function Ro(e, t) {
4759
4759
  let {
4760
4760
  transform: n,
4761
4761
  ...r
@@ -4765,7 +4765,7 @@ function Mo(e, t) {
4765
4765
  ...r
4766
4766
  }), n) : n;
4767
4767
  }
4768
- function Ma(e) {
4768
+ function Ra(e) {
4769
4769
  return q(
4770
4770
  () => ({
4771
4771
  draggable: {
@@ -4785,7 +4785,7 @@ function Ma(e) {
4785
4785
  [e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
4786
4786
  );
4787
4787
  }
4788
- function La(e) {
4788
+ function Ta(e) {
4789
4789
  let {
4790
4790
  activeNode: t,
4791
4791
  measure: n,
@@ -4809,9 +4809,9 @@ function La(e) {
4809
4809
  const c = t == null ? void 0 : t.node.current;
4810
4810
  if (!c || c.isConnected === !1)
4811
4811
  return;
4812
- const u = n(c), d = po(u, r);
4812
+ const u = n(c), d = mo(u, r);
4813
4813
  if (s || (d.x = 0), a || (d.y = 0), i.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
4814
- const h = mo(c);
4814
+ const h = yo(c);
4815
4815
  h && h.scrollBy({
4816
4816
  top: d.y,
4817
4817
  left: d.x
@@ -4828,20 +4828,20 @@ var Ye;
4828
4828
  (function(e) {
4829
4829
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
4830
4830
  })(Ye || (Ye = {}));
4831
- const Ra = /* @__PURE__ */ Ho(function(t) {
4831
+ const Ia = /* @__PURE__ */ Go(function(t) {
4832
4832
  var n, r, o, i;
4833
4833
  let {
4834
4834
  id: s,
4835
4835
  accessibility: a,
4836
4836
  autoScroll: l = !0,
4837
4837
  children: c,
4838
- sensors: u = ka,
4839
- collisionDetection: d = Fs,
4838
+ sensors: u = Sa,
4839
+ collisionDetection: d = js,
4840
4840
  measuring: h,
4841
4841
  modifiers: g,
4842
4842
  ...x
4843
4843
  } = t;
4844
- const w = Uo(Aa, void 0, Ea), [p, m] = w, [E, A] = As(), [M, T] = H(Ye.Uninitialized), y = M === Ye.Initialized, {
4844
+ const w = Wo(Ma, void 0, Da), [p, m] = w, [E, A] = Ms(), [M, T] = H(Ye.Uninitialized), y = M === Ye.Initialized, {
4845
4845
  draggable: {
4846
4846
  active: S,
4847
4847
  nodes: v,
@@ -4858,25 +4858,25 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4858
4858
  return S != null ? {
4859
4859
  id: S,
4860
4860
  // It's possible for the active node to unmount while dragging
4861
- data: (be = D == null ? void 0 : D.data) != null ? be : Ca,
4861
+ data: (be = D == null ? void 0 : D.data) != null ? be : Ea,
4862
4862
  rect: R
4863
4863
  } : null;
4864
- }, [S, D]), X = G(null), [pe, J] = H(null), [re, Y] = H(null), ee = bt(x, Object.values(x)), ge = Kt("DndDescribedBy", s), we = q(() => b.getEnabled(), [b]), oe = Ma(h), {
4864
+ }, [S, D]), X = G(null), [pe, J] = H(null), [re, Y] = H(null), ee = bt(x, Object.values(x)), ge = Kt("DndDescribedBy", s), we = q(() => b.getEnabled(), [b]), oe = Ra(h), {
4865
4865
  droppableRects: ue,
4866
4866
  measureDroppableContainers: Oe,
4867
4867
  measuringScheduled: Se
4868
- } = ua(we, {
4868
+ } = ha(we, {
4869
4869
  dragging: y,
4870
4870
  dependencies: [L.x, L.y],
4871
4871
  config: oe.droppable
4872
- }), le = ca(v, S), ze = q(() => re ? Ht(re) : null, [re]), Q = Bo(), se = fa(le, oe.draggable.measure);
4873
- La({
4872
+ }), le = ua(v, S), ze = q(() => re ? Ht(re) : null, [re]), Q = Vo(), se = pa(le, oe.draggable.measure);
4873
+ Ta({
4874
4874
  activeNode: S != null ? v.get(S) : null,
4875
4875
  config: Q.layoutShiftCompensation,
4876
4876
  initialRect: se,
4877
4877
  measure: oe.draggable.measure
4878
4878
  });
4879
- const $ = vr(le, oe.draggable.measure, se), xe = vr(le ? le.parentElement : null), Ce = G({
4879
+ const $ = br(le, oe.draggable.measure, se), xe = br(le ? le.parentElement : null), Ce = G({
4880
4880
  activatorEvent: null,
4881
4881
  active: null,
4882
4882
  activeNode: le,
@@ -4890,9 +4890,9 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4890
4890
  over: null,
4891
4891
  scrollableAncestors: [],
4892
4892
  scrollAdjustedTranslate: null
4893
- }), Je = b.getNodeFor((n = Ce.current.over) == null ? void 0 : n.id), ce = xa({
4893
+ }), Je = b.getNodeFor((n = Ce.current.over) == null ? void 0 : n.id), ce = Ca({
4894
4894
  measure: oe.dragOverlay.measure
4895
- }), k = (r = ce.nodeRef.current) != null ? r : le, C = y ? (o = ce.rect) != null ? o : $ : null, I = !!(ce.nodeRef.current && ce.rect), z = ga(I ? null : $), K = So(k ? ke(k) : null), P = ma(y ? Je ?? le : null), Z = wa(P), ae = Mo(g, {
4895
+ }), k = (r = ce.nodeRef.current) != null ? r : le, C = y ? (o = ce.rect) != null ? o : $ : null, I = !!(ce.nodeRef.current && ce.rect), z = va(I ? null : $), K = Ao(k ? ke(k) : null), P = ya(y ? Je ?? le : null), Z = ka(P), ae = Ro(g, {
4896
4896
  transform: {
4897
4897
  x: L.x - z.x,
4898
4898
  y: L.y - z.y,
@@ -4909,13 +4909,13 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4909
4909
  scrollableAncestors: P,
4910
4910
  scrollableAncestorRects: Z,
4911
4911
  windowRect: K
4912
- }), me = ze ? et(ze, L) : null, ne = va(P), je = br(ne), Te = br(ne, [$]), Ve = et(ae, je), Ge = C ? Hs(C, ae) : null, _ = F && Ge ? d({
4912
+ }), me = ze ? et(ze, L) : null, ne = ba(P), $e = xr(ne), Te = xr(ne, [$]), Ve = et(ae, $e), Ge = C ? Vs(C, ae) : null, _ = F && Ge ? d({
4913
4913
  active: F,
4914
4914
  collisionRect: Ge,
4915
4915
  droppableRects: ue,
4916
4916
  droppableContainers: we,
4917
4917
  pointerCoordinates: me
4918
- }) : null, fe = ho(_, "id"), [ye, Mt] = H(null), Zt = I ? ae : et(ae, Te), Lt = $s(Zt, (i = ye == null ? void 0 : ye.rect) != null ? i : null, $), at = G(null), Rt = N(
4918
+ }) : null, fe = go(_, "id"), [ye, Mt] = H(null), en = I ? ae : et(ae, Te), Lt = Hs(en, (i = ye == null ? void 0 : ye.rect) != null ? i : null, $), at = G(null), Rt = N(
4919
4919
  (be, Ee) => {
4920
4920
  let {
4921
4921
  sensor: Ae,
@@ -4939,15 +4939,15 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4939
4939
  return;
4940
4940
  const {
4941
4941
  onDragAbort: Pe
4942
- } = ee.current, $e = {
4942
+ } = ee.current, Be = {
4943
4943
  id: ve
4944
4944
  };
4945
- Pe == null || Pe($e), E({
4945
+ Pe == null || Pe(Be), E({
4946
4946
  type: "onDragAbort",
4947
- event: $e
4947
+ event: Be
4948
4948
  });
4949
4949
  },
4950
- onPending(ve, _e, Pe, $e) {
4950
+ onPending(ve, _e, Pe, Be) {
4951
4951
  if (!v.get(ve))
4952
4952
  return;
4953
4953
  const {
@@ -4956,7 +4956,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4956
4956
  id: ve,
4957
4957
  constraint: _e,
4958
4958
  initialCoordinates: Pe,
4959
- offset: $e
4959
+ offset: Be
4960
4960
  };
4961
4961
  ct == null || ct(qe), E({
4962
4962
  type: "onDragPending",
@@ -4971,7 +4971,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4971
4971
  if (!Pe)
4972
4972
  return;
4973
4973
  const {
4974
- onDragStart: $e
4974
+ onDragStart: Be
4975
4975
  } = ee.current, lt = {
4976
4976
  activatorEvent: De,
4977
4977
  active: {
@@ -4981,7 +4981,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
4981
4981
  }
4982
4982
  };
4983
4983
  Nt(() => {
4984
- $e == null || $e(lt), T(Ye.Initializing), m({
4984
+ Be == null || Be(lt), T(Ye.Initializing), m({
4985
4985
  type: de.DragStart,
4986
4986
  initialCoordinates: ve,
4987
4987
  active: _e
@@ -5005,7 +5005,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5005
5005
  return async function() {
5006
5006
  const {
5007
5007
  active: Pe,
5008
- collisions: $e,
5008
+ collisions: Be,
5009
5009
  over: lt,
5010
5010
  scrollAdjustedTranslate: ct
5011
5011
  } = Ce.current;
@@ -5017,7 +5017,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5017
5017
  qe = {
5018
5018
  activatorEvent: De,
5019
5019
  active: Pe,
5020
- collisions: $e,
5020
+ collisions: Be,
5021
5021
  delta: ct,
5022
5022
  over: lt
5023
5023
  }, ve === de.DragEnd && typeof dt == "function" && await Promise.resolve(dt(qe)) && (ve = de.DragCancel);
@@ -5028,8 +5028,8 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5028
5028
  }), T(Ye.Uninitialized), Mt(null), J(null), Y(null), at.current = null;
5029
5029
  const dt = ve === de.DragEnd ? "onDragEnd" : "onDragCancel";
5030
5030
  if (qe) {
5031
- const en = ee.current[dt];
5032
- en == null || en(qe), E({
5031
+ const tn = ee.current[dt];
5032
+ tn == null || tn(qe), E({
5033
5033
  type: dt,
5034
5034
  event: qe
5035
5035
  });
@@ -5055,8 +5055,8 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5055
5055
  be(Ae, Ee.options, Fe) === !0 && (Me.dndKit = {
5056
5056
  capturedBy: Ee.sensor
5057
5057
  }, X.current = We, Rt(Ae, Ee));
5058
- }, [v, Rt]), It = da(u, Tt);
5059
- ya(u), Ue(() => {
5058
+ }, [v, Rt]), It = fa(u, Tt);
5059
+ wa(u), Ue(() => {
5060
5060
  $ && M === Ye.Initializing && T(Ye.Initialized);
5061
5061
  }, [$, M]), W(
5062
5062
  () => {
@@ -5145,7 +5145,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5145
5145
  initial: C,
5146
5146
  translated: Ge
5147
5147
  };
5148
- }, [F, le, _, Ge, v, k, C, ue, b, ye, P, Ve]), sa({
5148
+ }, [F, le, _, Ge, v, k, C, ue, b, ye, P, Ve]), la({
5149
5149
  ...Q,
5150
5150
  delta: L,
5151
5151
  draggingRect: Ge,
@@ -5153,7 +5153,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5153
5153
  scrollableAncestors: P,
5154
5154
  scrollableAncestorRects: Z
5155
5155
  });
5156
- const jo = q(() => ({
5156
+ const Ho = q(() => ({
5157
5157
  active: F,
5158
5158
  activeNode: le,
5159
5159
  activeNodeRect: $,
@@ -5171,7 +5171,7 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5171
5171
  measuringConfiguration: oe,
5172
5172
  measuringScheduled: Se,
5173
5173
  windowRect: K
5174
- }), [F, le, $, re, _, xe, ce, v, b, ue, ye, Oe, P, Z, oe, Se, K]), $o = q(() => ({
5174
+ }), [F, le, $, re, _, xe, ce, v, b, ue, ye, Oe, P, Z, oe, Se, K]), Uo = q(() => ({
5175
5175
  activatorEvent: re,
5176
5176
  activators: It,
5177
5177
  active: F,
@@ -5184,21 +5184,21 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5184
5184
  over: ye,
5185
5185
  measureDroppableContainers: Oe
5186
5186
  }), [re, It, F, $, m, ge, v, ye, Oe]);
5187
- return te.createElement(fo.Provider, {
5187
+ return te.createElement(po.Provider, {
5188
5188
  value: A
5189
5189
  }, te.createElement(Dt.Provider, {
5190
- value: $o
5191
- }, te.createElement(Do.Provider, {
5192
- value: jo
5190
+ value: Uo
5191
+ }, te.createElement(Lo.Provider, {
5192
+ value: Ho
5193
5193
  }, te.createElement(Qt.Provider, {
5194
5194
  value: Lt
5195
- }, c)), te.createElement(Da, {
5195
+ }, c)), te.createElement(La, {
5196
5196
  disabled: (a == null ? void 0 : a.restoreFocus) === !1
5197
- })), te.createElement(Ls, {
5197
+ })), te.createElement(Ts, {
5198
5198
  ...a,
5199
5199
  hiddenTextDescribedById: ge
5200
5200
  }));
5201
- function Bo() {
5201
+ function Vo() {
5202
5202
  const be = (pe == null ? void 0 : pe.autoScrollEnabled) === !1, Ee = typeof l == "object" ? l.enabled === !1 : l === !1, Ae = y && !be && !Ee;
5203
5203
  return typeof l == "object" ? {
5204
5204
  ...l,
@@ -5207,15 +5207,15 @@ const Ra = /* @__PURE__ */ Ho(function(t) {
5207
5207
  enabled: Ae
5208
5208
  };
5209
5209
  }
5210
- }), Ta = /* @__PURE__ */ Xe(null), xr = "button", Ia = "Draggable";
5211
- function Na(e) {
5210
+ }), Na = /* @__PURE__ */ Xe(null), Cr = "button", Oa = "Draggable";
5211
+ function za(e) {
5212
5212
  let {
5213
5213
  id: t,
5214
5214
  data: n,
5215
5215
  disabled: r = !1,
5216
5216
  attributes: o
5217
5217
  } = e;
5218
- const i = Kt(Ia), {
5218
+ const i = Kt(Oa), {
5219
5219
  activators: s,
5220
5220
  activatorEvent: a,
5221
5221
  active: l,
@@ -5223,11 +5223,11 @@ function Na(e) {
5223
5223
  ariaDescribedById: u,
5224
5224
  draggableNodes: d,
5225
5225
  over: h
5226
- } = He(Dt), {
5227
- role: g = xr,
5226
+ } = je(Dt), {
5227
+ role: g = Cr,
5228
5228
  roleDescription: x = "draggable",
5229
5229
  tabIndex: w = 0
5230
- } = o ?? {}, p = (l == null ? void 0 : l.id) === t, m = He(p ? Qt : Ta), [E, A] = $t(), [M, T] = $t(), y = ba(s, t), S = bt(n);
5230
+ } = o ?? {}, p = (l == null ? void 0 : l.id) === t, m = je(p ? Qt : Na), [E, A] = $t(), [M, T] = $t(), y = xa(s, t), S = bt(n);
5231
5231
  Ue(
5232
5232
  () => (d.set(t, {
5233
5233
  id: t,
@@ -5246,7 +5246,7 @@ function Na(e) {
5246
5246
  role: g,
5247
5247
  tabIndex: w,
5248
5248
  "aria-disabled": r,
5249
- "aria-pressed": p && g === xr ? !0 : void 0,
5249
+ "aria-pressed": p && g === Cr ? !0 : void 0,
5250
5250
  "aria-roledescription": x,
5251
5251
  "aria-describedby": u.draggable
5252
5252
  }), [r, g, w, p, x, u.draggable]);
@@ -5264,32 +5264,32 @@ function Na(e) {
5264
5264
  transform: m
5265
5265
  };
5266
5266
  }
5267
- function Oa() {
5268
- return He(Do);
5267
+ function Fa() {
5268
+ return je(Lo);
5269
5269
  }
5270
- const za = "Droppable", Fa = {
5270
+ const Pa = "Droppable", ja = {
5271
5271
  timeout: 25
5272
5272
  };
5273
- function Lo(e) {
5273
+ function To(e) {
5274
5274
  let {
5275
5275
  data: t,
5276
5276
  disabled: n = !1,
5277
5277
  id: r,
5278
5278
  resizeObserverConfig: o
5279
5279
  } = e;
5280
- const i = Kt(za), {
5280
+ const i = Kt(Pa), {
5281
5281
  active: s,
5282
5282
  dispatch: a,
5283
5283
  over: l,
5284
5284
  measureDroppableContainers: c
5285
- } = He(Dt), u = G({
5285
+ } = je(Dt), u = G({
5286
5286
  disabled: n
5287
5287
  }), d = G(!1), h = G(null), g = G(null), {
5288
5288
  disabled: x,
5289
5289
  updateMeasurementsFor: w,
5290
5290
  timeout: p
5291
5291
  } = {
5292
- ...Fa,
5292
+ ...ja,
5293
5293
  ...o
5294
5294
  }, m = bt(w ?? r), E = N(
5295
5295
  () => {
@@ -5345,7 +5345,7 @@ function Lo(e) {
5345
5345
  setNodeRef: y
5346
5346
  };
5347
5347
  }
5348
- function Pa(e) {
5348
+ function $a(e) {
5349
5349
  let {
5350
5350
  animation: t,
5351
5351
  children: n
@@ -5362,30 +5362,30 @@ function Pa(e) {
5362
5362
  Promise.resolve(t(c, i)).then(() => {
5363
5363
  o(null);
5364
5364
  });
5365
- }, [t, r, i]), te.createElement(te.Fragment, null, n, r ? Vo(r, {
5365
+ }, [t, r, i]), te.createElement(te.Fragment, null, n, r ? _o(r, {
5366
5366
  ref: s
5367
5367
  }) : null);
5368
5368
  }
5369
- const ja = {
5369
+ const Ba = {
5370
5370
  x: 0,
5371
5371
  y: 0,
5372
5372
  scaleX: 1,
5373
5373
  scaleY: 1
5374
5374
  };
5375
- function $a(e) {
5375
+ function Ha(e) {
5376
5376
  let {
5377
5377
  children: t
5378
5378
  } = e;
5379
5379
  return te.createElement(Dt.Provider, {
5380
- value: Ao
5380
+ value: Mo
5381
5381
  }, te.createElement(Qt.Provider, {
5382
- value: ja
5382
+ value: Ba
5383
5383
  }, t));
5384
5384
  }
5385
- const Ba = {
5385
+ const Ua = {
5386
5386
  position: "fixed",
5387
5387
  touchAction: "none"
5388
- }, Ha = (e) => Un(e) ? "transform 250ms ease" : void 0, Ua = /* @__PURE__ */ Tn((e, t) => {
5388
+ }, Va = (e) => Gn(e) ? "transform 250ms ease" : void 0, Ga = /* @__PURE__ */ In((e, t) => {
5389
5389
  let {
5390
5390
  as: n,
5391
5391
  activatorEvent: r,
@@ -5395,7 +5395,7 @@ const Ba = {
5395
5395
  rect: a,
5396
5396
  style: l,
5397
5397
  transform: c,
5398
- transition: u = Ha
5398
+ transition: u = Va
5399
5399
  } = e;
5400
5400
  if (!a)
5401
5401
  return null;
@@ -5404,13 +5404,13 @@ const Ba = {
5404
5404
  scaleX: 1,
5405
5405
  scaleY: 1
5406
5406
  }, h = {
5407
- ...Ba,
5407
+ ...Ua,
5408
5408
  width: a.width,
5409
5409
  height: a.height,
5410
5410
  top: a.top,
5411
5411
  left: a.left,
5412
5412
  transform: xt.Transform.toString(d),
5413
- transformOrigin: o && r ? Ts(r, a) : void 0,
5413
+ transformOrigin: o && r ? Ns(r, a) : void 0,
5414
5414
  transition: typeof u == "function" ? u(r) : u,
5415
5415
  ...l
5416
5416
  };
@@ -5419,7 +5419,7 @@ const Ba = {
5419
5419
  style: h,
5420
5420
  ref: t
5421
5421
  }, i);
5422
- }), Va = (e) => (t) => {
5422
+ }), Wa = (e) => (t) => {
5423
5423
  let {
5424
5424
  active: n,
5425
5425
  dragOverlay: r
@@ -5439,7 +5439,7 @@ const Ba = {
5439
5439
  n.node.style.setProperty(l, c);
5440
5440
  s != null && s.active && n.node.classList.remove(s.active);
5441
5441
  };
5442
- }, Ga = (e) => {
5442
+ }, _a = (e) => {
5443
5443
  let {
5444
5444
  transform: {
5445
5445
  initial: t,
@@ -5451,11 +5451,11 @@ const Ba = {
5451
5451
  }, {
5452
5452
  transform: xt.Transform.toString(n)
5453
5453
  }];
5454
- }, Wa = {
5454
+ }, qa = {
5455
5455
  duration: 250,
5456
5456
  easing: "ease",
5457
- keyframes: Ga,
5458
- sideEffects: /* @__PURE__ */ Va({
5457
+ keyframes: _a,
5458
+ sideEffects: /* @__PURE__ */ Wa({
5459
5459
  styles: {
5460
5460
  active: {
5461
5461
  opacity: "0"
@@ -5463,7 +5463,7 @@ const Ba = {
5463
5463
  }
5464
5464
  })
5465
5465
  };
5466
- function _a(e) {
5466
+ function Ya(e) {
5467
5467
  let {
5468
5468
  config: t,
5469
5469
  draggableNodes: n,
@@ -5479,16 +5479,16 @@ function _a(e) {
5479
5479
  const l = a.node.current;
5480
5480
  if (!l)
5481
5481
  return;
5482
- const c = Eo(s);
5482
+ const c = Do(s);
5483
5483
  if (!c)
5484
5484
  return;
5485
5485
  const {
5486
5486
  transform: u
5487
- } = ke(s).getComputedStyle(s), d = go(u);
5487
+ } = ke(s).getComputedStyle(s), d = vo(u);
5488
5488
  if (!d)
5489
5489
  return;
5490
- const h = typeof t == "function" ? t : qa(t);
5491
- return ko(l, o.draggable.measure), h({
5490
+ const h = typeof t == "function" ? t : Ka(t);
5491
+ return So(l, o.draggable.measure), h({
5492
5492
  active: {
5493
5493
  id: i,
5494
5494
  data: a.data,
@@ -5506,14 +5506,14 @@ function _a(e) {
5506
5506
  });
5507
5507
  });
5508
5508
  }
5509
- function qa(e) {
5509
+ function Ka(e) {
5510
5510
  const {
5511
5511
  duration: t,
5512
5512
  easing: n,
5513
5513
  sideEffects: r,
5514
5514
  keyframes: o
5515
5515
  } = {
5516
- ...Wa,
5516
+ ...qa,
5517
5517
  ...e
5518
5518
  };
5519
5519
  return (i) => {
@@ -5562,14 +5562,14 @@ function qa(e) {
5562
5562
  });
5563
5563
  };
5564
5564
  }
5565
- let kr = 0;
5566
- function Ya(e) {
5565
+ let Sr = 0;
5566
+ function Xa(e) {
5567
5567
  return q(() => {
5568
5568
  if (e != null)
5569
- return kr++, kr;
5569
+ return Sr++, Sr;
5570
5570
  }, [e]);
5571
5571
  }
5572
- const Ka = /* @__PURE__ */ te.memo((e) => {
5572
+ const Ja = /* @__PURE__ */ te.memo((e) => {
5573
5573
  let {
5574
5574
  adjustScale: t = !1,
5575
5575
  children: n,
@@ -5594,7 +5594,7 @@ const Ka = /* @__PURE__ */ te.memo((e) => {
5594
5594
  scrollableAncestors: A,
5595
5595
  scrollableAncestorRects: M,
5596
5596
  windowRect: T
5597
- } = Oa(), y = He(Qt), S = Ya(d == null ? void 0 : d.id), v = Mo(s, {
5597
+ } = Fa(), y = je(Qt), S = Xa(d == null ? void 0 : d.id), v = Ro(s, {
5598
5598
  activatorEvent: u,
5599
5599
  active: d,
5600
5600
  activeNodeRect: h,
@@ -5606,15 +5606,15 @@ const Ka = /* @__PURE__ */ te.memo((e) => {
5606
5606
  scrollableAncestorRects: M,
5607
5607
  transform: y,
5608
5608
  windowRect: T
5609
- }), L = Kn(h), b = _a({
5609
+ }), L = Jn(h), b = Ya({
5610
5610
  config: r,
5611
5611
  draggableNodes: x,
5612
5612
  droppableContainers: w,
5613
5613
  measuringConfiguration: E
5614
5614
  }), D = L ? p.setRef : void 0;
5615
- return te.createElement($a, null, te.createElement(Pa, {
5615
+ return te.createElement(Ha, null, te.createElement($a, {
5616
5616
  animation: b
5617
- }, d && S ? te.createElement(Ua, {
5617
+ }, d && S ? te.createElement(Ga, {
5618
5618
  key: S,
5619
5619
  id: d.id,
5620
5620
  ref: D,
@@ -5637,7 +5637,7 @@ function Gt(e) {
5637
5637
  const t = e.data.current;
5638
5638
  return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
5639
5639
  }
5640
- const Xa = [U.Down, U.Right, U.Up, U.Left], Ja = (e, t) => {
5640
+ const Qa = [U.Down, U.Right, U.Up, U.Left], Za = (e, t) => {
5641
5641
  let {
5642
5642
  context: {
5643
5643
  active: n,
@@ -5648,7 +5648,7 @@ const Xa = [U.Down, U.Right, U.Up, U.Left], Ja = (e, t) => {
5648
5648
  scrollableAncestors: a
5649
5649
  }
5650
5650
  } = t;
5651
- if (Xa.includes(e.code)) {
5651
+ if (Qa.includes(e.code)) {
5652
5652
  if (e.preventDefault(), !n || !r)
5653
5653
  return;
5654
5654
  const l = [];
@@ -5672,16 +5672,16 @@ const Xa = [U.Down, U.Right, U.Up, U.Left], Ja = (e, t) => {
5672
5672
  break;
5673
5673
  }
5674
5674
  });
5675
- const c = Os({
5675
+ const c = Fs({
5676
5676
  collisionRect: r,
5677
5677
  droppableRects: o,
5678
5678
  droppableContainers: l
5679
5679
  });
5680
- let u = ho(c, "id");
5680
+ let u = go(c, "id");
5681
5681
  if (u === (s == null ? void 0 : s.id) && c.length > 1 && (u = c[1].id), u != null) {
5682
5682
  const d = i.get(n.id), h = i.get(u), g = h ? o.get(h.id) : null, x = h == null ? void 0 : h.node.current;
5683
5683
  if (x && g && d && h) {
5684
- const p = Xt(x).some((y, S) => a[S] !== y), m = Ro(d, h), E = Qa(d, h), A = p || !m ? {
5684
+ const p = Xt(x).some((y, S) => a[S] !== y), m = Io(d, h), E = el(d, h), A = p || !m ? {
5685
5685
  x: 0,
5686
5686
  y: 0
5687
5687
  } : {
@@ -5696,19 +5696,19 @@ const Xa = [U.Down, U.Right, U.Up, U.Left], Ja = (e, t) => {
5696
5696
  }
5697
5697
  }
5698
5698
  };
5699
- function Ro(e, t) {
5699
+ function Io(e, t) {
5700
5700
  return !Gt(e) || !Gt(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
5701
5701
  }
5702
- function Qa(e, t) {
5703
- return !Gt(e) || !Gt(t) || !Ro(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
5702
+ function el(e, t) {
5703
+ return !Gt(e) || !Gt(t) || !Io(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
5704
5704
  }
5705
- function Cr(e) {
5705
+ function Er(e) {
5706
5706
  var n;
5707
5707
  if (!e || e.length === 0) return null;
5708
5708
  const t = (n = e[0].data) == null ? void 0 : n.zone;
5709
5709
  return t === "before" || t === "after" || t === "into" ? t : null;
5710
5710
  }
5711
- function Za(e) {
5711
+ function tl(e) {
5712
5712
  const {
5713
5713
  onReorder: t,
5714
5714
  onGroupReorder: n,
@@ -5716,14 +5716,14 @@ function Za(e) {
5716
5716
  onDropIntoGroupAtPosition: o,
5717
5717
  onRemoveFromGroup: i,
5718
5718
  findParentGroup: s
5719
- } = e, [a, l] = H(null), [c, u] = H(null), [d, h] = H(null), g = G(null), x = Rs(
5720
- dr(Yn, {
5719
+ } = e, [a, l] = H(null), [c, u] = H(null), [d, h] = H(null), g = G(null), x = Is(
5720
+ fr(Xn, {
5721
5721
  activationConstraint: {
5722
5722
  distance: 5
5723
5723
  }
5724
5724
  }),
5725
- dr(_n, {
5726
- coordinateGetter: Ja
5725
+ fr(Yn, {
5726
+ coordinateGetter: Za
5727
5727
  })
5728
5728
  ), w = N((T) => {
5729
5729
  l(String(T.active.id));
@@ -5731,13 +5731,13 @@ function Za(e) {
5731
5731
  (T) => {
5732
5732
  const { over: y, collisions: S } = T;
5733
5733
  u(y ? String(y.id) : null);
5734
- const v = Cr(S);
5734
+ const v = Er(S);
5735
5735
  g.current = v, h(v);
5736
5736
  },
5737
5737
  []
5738
5738
  ), m = N(
5739
5739
  (T) => {
5740
- const { collisions: y } = T, S = Cr(y);
5740
+ const { collisions: y } = T, S = Er(y);
5741
5741
  g.current = S, h(S);
5742
5742
  },
5743
5743
  []
@@ -5788,11 +5788,11 @@ function Za(e) {
5788
5788
  onDragCancel: M
5789
5789
  };
5790
5790
  }
5791
- const el = (e) => {
5791
+ const nl = (e) => {
5792
5792
  var h, g;
5793
5793
  const { pointerCoordinates: t, droppableContainers: n, droppableRects: r } = e;
5794
- let o = js(e);
5795
- if (o.length === 0 && (o = Ns(e)), o.length === 0 || !t) return o;
5794
+ let o = Bs(e);
5795
+ if (o.length === 0 && (o = zs(e)), o.length === 0 || !t) return o;
5796
5796
  const i = o[0];
5797
5797
  if (String(i.id).startsWith("group-footer::"))
5798
5798
  return [{ ...i, data: { ...i.data, zone: "after" } }];
@@ -5804,7 +5804,7 @@ const el = (e) => {
5804
5804
  ...i,
5805
5805
  data: { ...i.data, zone: d }
5806
5806
  }];
5807
- }, tl = ({
5807
+ }, rl = ({
5808
5808
  layer: e,
5809
5809
  isOver: t,
5810
5810
  dropPosition: n,
@@ -5818,7 +5818,7 @@ const el = (e) => {
5818
5818
  onDelete: u,
5819
5819
  deleteSuppressed: d
5820
5820
  }) => {
5821
- const { attributes: h, listeners: g, setNodeRef: x, isDragging: w } = Na({ id: e.id }), { setNodeRef: p } = Lo({ id: e.id, data: { isGroup: !!e.isGroup } }), m = N((L) => {
5821
+ const { attributes: h, listeners: g, setNodeRef: x, isDragging: w } = za({ id: e.id }), { setNodeRef: p } = To({ id: e.id, data: { isGroup: !!e.isGroup } }), m = N((L) => {
5822
5822
  x(L), p(L);
5823
5823
  }, [x, p]), E = e.isGroup, A = e.depth > 0, M = A ? e.depth * 24 : 0, T = {
5824
5824
  opacity: w ? 0.3 : 1,
@@ -5892,7 +5892,7 @@ const el = (e) => {
5892
5892
  }
5893
5893
  ),
5894
5894
  !r && !d && (!e.children || e.children.length === 0) && /* @__PURE__ */ f("div", { style: { display: "flex", gap: 4, flexShrink: 0 }, children: /* @__PURE__ */ f(
5895
- Be,
5895
+ He,
5896
5896
  {
5897
5897
  title: "Delete Group",
5898
5898
  onClick: () => u(e.id),
@@ -5943,7 +5943,7 @@ const el = (e) => {
5943
5943
  /* @__PURE__ */ f("div", { style: { flex: 1, minWidth: 0 }, onClick: S }),
5944
5944
  !r && /* @__PURE__ */ j("div", { style: { display: "flex", gap: 4, flexShrink: 0 }, children: [
5945
5945
  /* @__PURE__ */ f(
5946
- Be,
5946
+ He,
5947
5947
  {
5948
5948
  title: e.visible ? "Hide" : "Show",
5949
5949
  onClick: () => a(e.id),
@@ -5952,7 +5952,7 @@ const el = (e) => {
5952
5952
  }
5953
5953
  ),
5954
5954
  /* @__PURE__ */ f(
5955
- Be,
5955
+ He,
5956
5956
  {
5957
5957
  title: e.locked ? "Unlock" : "Lock",
5958
5958
  onClick: () => l(e.id),
@@ -5960,9 +5960,9 @@ const el = (e) => {
5960
5960
  children: /* @__PURE__ */ f(B, { icon: e.locked ? V.lock : V.lockOpen, className: "sc:size-6" })
5961
5961
  }
5962
5962
  ),
5963
- /* @__PURE__ */ f(Be, { title: "Duplicate", onClick: () => c(e.id), children: /* @__PURE__ */ f(B, { icon: V.copy, className: "sc:size-6" }) }),
5963
+ /* @__PURE__ */ f(He, { title: "Duplicate", onClick: () => c(e.id), children: /* @__PURE__ */ f(B, { icon: V.copy, className: "sc:size-6" }) }),
5964
5964
  !d && /* @__PURE__ */ f(
5965
- Be,
5965
+ He,
5966
5966
  {
5967
5967
  title: "Delete",
5968
5968
  onClick: () => u(e.id),
@@ -5972,7 +5972,7 @@ const el = (e) => {
5972
5972
  )
5973
5973
  ] })
5974
5974
  ] });
5975
- }, Be = ({ title: e, onClick: t, style: n, children: r }) => /* @__PURE__ */ f(
5975
+ }, He = ({ title: e, onClick: t, style: n, children: r }) => /* @__PURE__ */ f(
5976
5976
  "button",
5977
5977
  {
5978
5978
  onClick: (o) => {
@@ -5989,8 +5989,8 @@ const el = (e) => {
5989
5989
  title: e,
5990
5990
  children: r
5991
5991
  }
5992
- ), nl = ({ groupId: e, isOver: t, depth: n }) => {
5993
- const { setNodeRef: r } = Lo({ id: `group-footer::${e}` }), o = (n + 1) * 24;
5992
+ ), ol = ({ groupId: e, isOver: t, depth: n }) => {
5993
+ const { setNodeRef: r } = To({ id: `group-footer::${e}` }), o = (n + 1) * 24;
5994
5994
  return /* @__PURE__ */ f(
5995
5995
  "div",
5996
5996
  {
@@ -6005,7 +6005,7 @@ const el = (e) => {
6005
6005
  }
6006
6006
  }
6007
6007
  );
6008
- }, rl = ({ layer: e, showPreviewImages: t, previewDisplaySize: n }) => /* @__PURE__ */ j(
6008
+ }, il = ({ layer: e, showPreviewImages: t, previewDisplaySize: n }) => /* @__PURE__ */ j(
6009
6009
  "div",
6010
6010
  {
6011
6011
  style: {
@@ -6055,7 +6055,7 @@ const el = (e) => {
6055
6055
  /* @__PURE__ */ f("span", { style: { fontSize: 13, color: "var(--foreground, #333)" }, children: e.name })
6056
6056
  ]
6057
6057
  }
6058
- ), ol = ({
6058
+ ), sl = ({
6059
6059
  width: e = 250,
6060
6060
  height: t,
6061
6061
  showPreviewImages: n = !0,
@@ -6066,7 +6066,7 @@ const el = (e) => {
6066
6066
  showHeader: a = !0,
6067
6067
  ...l
6068
6068
  }) => {
6069
- const { activeArtboard: c } = ms(), u = (c == null ? void 0 : c.previewBackgroundColor) || (c == null ? void 0 : c.backgroundColor) || "transparent", d = 80, h = 160, {
6069
+ const { activeArtboard: c } = ys(), u = (c == null ? void 0 : c.previewBackgroundColor) || (c == null ? void 0 : c.backgroundColor) || "transparent", d = 80, h = 160, {
6070
6070
  layers: g,
6071
6071
  flatLayers: x,
6072
6072
  selectLayer: w,
@@ -6082,7 +6082,7 @@ const el = (e) => {
6082
6082
  findElementById: L,
6083
6083
  findParentGroup: b,
6084
6084
  generateAllPreviews: D
6085
- } = ei({
6085
+ } = ni({
6086
6086
  ...l,
6087
6087
  previewSize: h,
6088
6088
  previewBackgroundColor: u
@@ -6090,7 +6090,7 @@ const el = (e) => {
6090
6090
  W(() => {
6091
6091
  n && x.length > 0 && D();
6092
6092
  }, [n, x.length, u, D]);
6093
- const R = Wo(), F = N(
6093
+ const R = qo(), F = N(
6094
6094
  (Q) => {
6095
6095
  var se;
6096
6096
  return R((se = L(Q.id)) == null ? void 0 : se.name);
@@ -6108,7 +6108,7 @@ const el = (e) => {
6108
6108
  xe && !Ce ? S(Q, se, $) : M(Q, se, $);
6109
6109
  },
6110
6110
  [b, S, M]
6111
- ), J = Za({
6111
+ ), J = tl({
6112
6112
  onReorder: pe,
6113
6113
  onDropIntoGroup: y,
6114
6114
  onDropIntoGroupAtPosition: (Q, se) => y(Q, se),
@@ -6117,7 +6117,7 @@ const el = (e) => {
6117
6117
  findParentGroup: b
6118
6118
  }), re = (Q) => [...Q].reverse().map(($) => /* @__PURE__ */ j(te.Fragment, { children: [
6119
6119
  /* @__PURE__ */ f(
6120
- tl,
6120
+ rl,
6121
6121
  {
6122
6122
  layer: $,
6123
6123
  isOver: J.overId === $.id,
@@ -6135,7 +6135,7 @@ const el = (e) => {
6135
6135
  ),
6136
6136
  $.children && re($.children),
6137
6137
  $.isGroup && /* @__PURE__ */ f(
6138
- nl,
6138
+ ol,
6139
6139
  {
6140
6140
  groupId: $.id,
6141
6141
  isOver: J.overId === `group-footer::${$.id}`,
@@ -6144,7 +6144,7 @@ const el = (e) => {
6144
6144
  )
6145
6145
  ] }, $.id)), Y = (Q) => [...Q].reverse().map(($) => /* @__PURE__ */ j(te.Fragment, { children: [
6146
6146
  /* @__PURE__ */ f(
6147
- il,
6147
+ al,
6148
6148
  {
6149
6149
  layer: $,
6150
6150
  showPreviewImages: n,
@@ -6221,10 +6221,10 @@ const el = (e) => {
6221
6221
  ),
6222
6222
  /* @__PURE__ */ j("div", { style: { flex: 1, overflow: "auto", minHeight: 0 }, children: [
6223
6223
  g.length > 0 ? r ? /* @__PURE__ */ j(
6224
- Ra,
6224
+ Ia,
6225
6225
  {
6226
6226
  sensors: J.sensors,
6227
- collisionDetection: el,
6227
+ collisionDetection: nl,
6228
6228
  onDragStart: J.onDragStart,
6229
6229
  onDragMove: J.onDragMove,
6230
6230
  onDragOver: J.onDragOver,
@@ -6232,8 +6232,8 @@ const el = (e) => {
6232
6232
  onDragCancel: J.onDragCancel,
6233
6233
  children: [
6234
6234
  re(g),
6235
- /* @__PURE__ */ f(Ka, { dropAnimation: null, children: ee ? /* @__PURE__ */ f(
6236
- rl,
6235
+ /* @__PURE__ */ f(Ja, { dropAnimation: null, children: ee ? /* @__PURE__ */ f(
6236
+ il,
6237
6237
  {
6238
6238
  layer: ee,
6239
6239
  showPreviewImages: n,
@@ -6270,7 +6270,7 @@ const el = (e) => {
6270
6270
  ]
6271
6271
  }
6272
6272
  );
6273
- }, il = ({ layer: e, showPreviewImages: t, previewDisplaySize: n, onSelect: r, onToggleVisibility: o, onToggleLock: i, onDuplicate: s, onDelete: a, deleteSuppressed: l }) => {
6273
+ }, al = ({ layer: e, showPreviewImages: t, previewDisplaySize: n, onSelect: r, onToggleVisibility: o, onToggleLock: i, onDuplicate: s, onDelete: a, deleteSuppressed: l }) => {
6274
6274
  const c = e.depth > 0, u = c ? e.depth * 24 : 0, d = e.isSelected ? { outline: "3px solid var(--primary, var(--accent-primary, #007AFF))", outlineOffset: "2px" } : {}, h = {
6275
6275
  paddingLeft: u + 8,
6276
6276
  paddingRight: 8,
@@ -6325,7 +6325,7 @@ const el = (e) => {
6325
6325
  /* @__PURE__ */ f("div", { style: { flex: 1 }, onClick: () => r(e.id) }),
6326
6326
  /* @__PURE__ */ j("div", { style: { display: "flex", gap: 4 }, children: [
6327
6327
  /* @__PURE__ */ f(
6328
- Be,
6328
+ He,
6329
6329
  {
6330
6330
  title: e.visible ? "Hide" : "Show",
6331
6331
  onClick: () => o(e.id),
@@ -6334,7 +6334,7 @@ const el = (e) => {
6334
6334
  }
6335
6335
  ),
6336
6336
  /* @__PURE__ */ f(
6337
- Be,
6337
+ He,
6338
6338
  {
6339
6339
  title: e.locked ? "Unlock" : "Lock",
6340
6340
  onClick: () => i(e.id),
@@ -6342,9 +6342,9 @@ const el = (e) => {
6342
6342
  children: /* @__PURE__ */ f(B, { icon: e.locked ? V.lock : V.lockOpen, className: "sc:size-6" })
6343
6343
  }
6344
6344
  ),
6345
- /* @__PURE__ */ f(Be, { title: "Duplicate", onClick: () => s(e.id), children: /* @__PURE__ */ f(B, { icon: V.copy, className: "sc:size-6" }) }),
6345
+ /* @__PURE__ */ f(He, { title: "Duplicate", onClick: () => s(e.id), children: /* @__PURE__ */ f(B, { icon: V.copy, className: "sc:size-6" }) }),
6346
6346
  !l && /* @__PURE__ */ f(
6347
- Be,
6347
+ He,
6348
6348
  {
6349
6349
  title: "Delete",
6350
6350
  onClick: () => a(e.id),
@@ -6355,9 +6355,9 @@ const el = (e) => {
6355
6355
  ] })
6356
6356
  ] }, e.id);
6357
6357
  };
6358
- class Pl {
6358
+ class jl {
6359
6359
  constructor() {
6360
- this.canvasIds = /* @__PURE__ */ new Set(), this.requirements = /* @__PURE__ */ new Map(), this.textFields = /* @__PURE__ */ new Map(), this.controls = /* @__PURE__ */ new Map(), this.bridge = null, this.listeners = /* @__PURE__ */ new Set(), this.version = 0, this.getVersion = () => this.version, this.subscribe = (t) => (this.listeners.add(t), () => this.listeners.delete(t));
6360
+ this.canvasIds = /* @__PURE__ */ new Set(), this.requirements = /* @__PURE__ */ new Map(), this.textFields = /* @__PURE__ */ new Map(), this.controls = /* @__PURE__ */ new Map(), this.parts = /* @__PURE__ */ new Map(), this.bridge = null, this.listeners = /* @__PURE__ */ new Set(), this.version = 0, this.getVersion = () => this.version, this.subscribe = (t) => (this.listeners.add(t), () => this.listeners.delete(t));
6361
6361
  }
6362
6362
  registerCanvas(t) {
6363
6363
  return this.canvasIds.add(t), this.bump(), () => {
@@ -6426,6 +6426,23 @@ class Pl {
6426
6426
  if (t === "docked") return !0;
6427
6427
  return !1;
6428
6428
  }
6429
+ /** Census registration (`Editor.audit()`, #10): every mounted part records
6430
+ * its public name + audit-relevant meta. Purely observational — nothing
6431
+ * validates through this map. */
6432
+ registerPart(t, n, r = {}) {
6433
+ return this.parts.set(t, { name: n, meta: r }), this.bump(), () => {
6434
+ this.parts.delete(t), this.bump();
6435
+ };
6436
+ }
6437
+ /** Every mounted part's census entry (audit input). */
6438
+ getParts() {
6439
+ return [...this.parts.values()];
6440
+ }
6441
+ /** Unique public names of mounted parts that declared a canvas requirement
6442
+ * (audit input — same data `validate()` throws `E_REQUIRES_CANVAS` from). */
6443
+ requiresCanvasPartNames() {
6444
+ return [...new Set(this.requirements.values())];
6445
+ }
6429
6446
  registerCanvasBridge(t) {
6430
6447
  return this.bridge = t, this.bump(), () => {
6431
6448
  this.bridge === t && (this.bridge = null), this.bump();
@@ -6439,9 +6456,9 @@ class Pl {
6439
6456
  for (const t of [...this.listeners]) t();
6440
6457
  }
6441
6458
  }
6442
- const sl = Xe(null);
6443
- function Xn(e) {
6444
- const t = He(sl);
6459
+ const No = Xe(null);
6460
+ function Qn(e) {
6461
+ const t = je(No);
6445
6462
  if (!t)
6446
6463
  throw new Pt(
6447
6464
  "E_OUTSIDE_ROOT",
@@ -6450,25 +6467,38 @@ function Xn(e) {
6450
6467
  );
6451
6468
  return t;
6452
6469
  }
6453
- function Jn(e) {
6454
- const t = Xn(e), n = Go();
6455
- Dr(
6470
+ function Zn(e) {
6471
+ const t = Qn(e), n = Lr();
6472
+ Nn(
6456
6473
  () => t.registry.requireCanvas(n, e),
6457
6474
  [t.registry, n, e]
6458
6475
  );
6459
6476
  }
6460
- function jl(e) {
6477
+ function Zt(e, t) {
6478
+ const n = je(No), r = (n == null ? void 0 : n.registry) ?? null, o = Lr(), i = t == null ? void 0 : t.mockupId, s = t == null ? void 0 : t.floatingToolbar, a = q(
6479
+ () => ({
6480
+ ...i !== void 0 ? { mockupId: i } : {},
6481
+ ...s !== void 0 ? { floatingToolbar: s } : {}
6482
+ }),
6483
+ [i, s]
6484
+ );
6485
+ Nn(() => {
6486
+ if (r)
6487
+ return r.registerPart(o, e, a);
6488
+ }, [r, o, e, a]);
6489
+ }
6490
+ function $l(e) {
6461
6491
  return {
6462
6492
  reportInvariant(t) {
6463
- if (qo()) throw t;
6493
+ if (Ko()) throw t;
6464
6494
  e(t);
6465
6495
  },
6466
6496
  reportRuntimeError(t) {
6467
- _o(t), e(t);
6497
+ Yo(t), e(t);
6468
6498
  }
6469
6499
  };
6470
6500
  }
6471
- function al(e) {
6501
+ function ll(e) {
6472
6502
  const { elements: t } = e.getState();
6473
6503
  return t.map((n, r) => {
6474
6504
  const o = n, i = o.transformType ?? "custom", s = o.name ?? i.charAt(0).toUpperCase() + i.slice(1);
@@ -6480,23 +6510,23 @@ function al(e) {
6480
6510
  };
6481
6511
  });
6482
6512
  }
6483
- function ll(e) {
6513
+ function cl(e) {
6484
6514
  const t = G(null), n = () => {
6485
6515
  var i;
6486
- const r = al(e), o = r.map((s) => `${s.key}|${s.kind}|${s.visible}`).join(`
6516
+ const r = ll(e), o = r.map((s) => `${s.key}|${s.kind}|${s.visible}`).join(`
6487
6517
  `);
6488
6518
  return ((i = t.current) == null ? void 0 : i.key) !== o && (t.current = { key: o, rows: r }), t.current.rows;
6489
6519
  };
6490
- return Mr(e.subscribe, n, n);
6520
+ return Rr(e.subscribe, n, n);
6491
6521
  }
6492
- function cl(e) {
6522
+ function dl(e) {
6493
6523
  return e === "image" ? V.image : e === "shape" ? V.shapes : e === "group" ? "lucide:folder-open" : V.text;
6494
6524
  }
6495
- function dl({
6525
+ function ul({
6496
6526
  store: e,
6497
6527
  direction: t
6498
6528
  }) {
6499
- const r = [...ll(e)].reverse();
6529
+ const r = [...cl(e)].reverse();
6500
6530
  return /* @__PURE__ */ f(
6501
6531
  "div",
6502
6532
  {
@@ -6520,7 +6550,7 @@ function dl({
6520
6550
  opacity: o.visible ? 1 : 0.4
6521
6551
  },
6522
6552
  children: [
6523
- /* @__PURE__ */ f(B, { icon: cl(o.kind), style: { fontSize: 18, color: "var(--text-secondary, #888)", flexShrink: 0 } }),
6553
+ /* @__PURE__ */ f(B, { icon: dl(o.kind), style: { fontSize: 18, color: "var(--text-secondary, #888)", flexShrink: 0 } }),
6524
6554
  /* @__PURE__ */ f(
6525
6555
  "span",
6526
6556
  {
@@ -6541,19 +6571,21 @@ function dl({
6541
6571
  }
6542
6572
  );
6543
6573
  }
6544
- function $l({
6574
+ function Bl({
6545
6575
  direction: e = "vertical",
6546
6576
  className: t,
6547
6577
  style: n
6548
6578
  }) {
6549
- const r = Xn("Editor.Layers"), { registry: o } = r, i = Mr(
6579
+ const r = Qn("Editor.Layers");
6580
+ Zt("Editor.Layers");
6581
+ const { registry: o } = r, i = Rr(
6550
6582
  o.subscribe,
6551
6583
  () => o.hasCanvas(),
6552
6584
  () => o.hasCanvas()
6553
6585
  );
6554
- return /* @__PURE__ */ f("div", { "data-sc-part": "layers", "data-sc-direction": e, className: t, style: n, children: i ? /* @__PURE__ */ f(ol, { style: { width: "100%" } }) : /* @__PURE__ */ f(dl, { store: r.store, direction: e }) });
6586
+ return /* @__PURE__ */ f("div", { "data-sc-part": "layers", "data-sc-direction": e, className: t, style: n, children: i ? /* @__PURE__ */ f(sl, { style: { width: "100%" } }) : /* @__PURE__ */ f(ul, { store: r.store, direction: e }) });
6555
6587
  }
6556
- const To = ({
6588
+ const Oo = ({
6557
6589
  trigger: e,
6558
6590
  children: t,
6559
6591
  isOpen: n,
@@ -6566,7 +6598,7 @@ const To = ({
6566
6598
  contentClassName: c = ""
6567
6599
  }) => {
6568
6600
  const u = G(null), d = G(null), h = G(null), [g, x] = H({}), [w, p] = H(!1), m = (A) => {
6569
- A.stopPropagation(), !n && a && Qi.protectNextClick(), r(!n);
6601
+ A.stopPropagation(), !n && a && es.protectNextClick(), r(!n);
6570
6602
  };
6571
6603
  W(() => {
6572
6604
  if (!n) return;
@@ -6638,12 +6670,12 @@ const To = ({
6638
6670
  );
6639
6671
  return /* @__PURE__ */ j("div", { className: `sc:relative sc:inline-flex ${l}`.trim(), ref: u, children: [
6640
6672
  /* @__PURE__ */ f("div", { ref: d, onClick: m, children: e }),
6641
- E && Nn(
6673
+ E && zn(
6642
6674
  /* @__PURE__ */ f("div", { className: "sc-root", style: { display: "contents" }, children: E }),
6643
6675
  document.body
6644
6676
  )
6645
6677
  ] });
6646
- }, Ln = ({ children: e, className: t = "", minWidth: n = "160px", maxHeight: r }) => {
6678
+ }, Rn = ({ children: e, className: t = "", minWidth: n = "160px", maxHeight: r }) => {
6647
6679
  const o = r ? `max-h-[${r}]` : "", i = { minWidth: n };
6648
6680
  return /* @__PURE__ */ f(
6649
6681
  "div",
@@ -6686,7 +6718,7 @@ const To = ({
6686
6718
  n && /* @__PURE__ */ f("span", { className: "sc:ml-auto sc:text-sm sc:text-text-muted", children: n }),
6687
6719
  r && !n && /* @__PURE__ */ f("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "sc:ml-auto sc:shrink-0", children: /* @__PURE__ */ f("path", { d: "M13 4L6 11L3 8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
6688
6720
  ] });
6689
- }, Io = [
6721
+ }, zo = [
6690
6722
  { type: "custom", label: "Text", icon: /* @__PURE__ */ f(B, { icon: V.text, className: "sc:size-[18px]" }) },
6691
6723
  { type: "image", label: "Image", icon: /* @__PURE__ */ f(B, { icon: V.image, className: "sc:size-[18px]" }) },
6692
6724
  { type: "shape", label: "Shape", icon: /* @__PURE__ */ f(B, { icon: V.shapes, className: "sc:size-[18px]" }) },
@@ -6694,7 +6726,7 @@ const To = ({
6694
6726
  { type: "wave", label: "Wave Text", icon: /* @__PURE__ */ f(B, { icon: "lucide:waves", className: "sc:size-[18px]" }) },
6695
6727
  { type: "arch", label: "Arch Text", icon: /* @__PURE__ */ f(B, { icon: "lucide:arrow-up-from-dot", className: "sc:size-[18px]" }) }
6696
6728
  ];
6697
- function ul() {
6729
+ function fl() {
6698
6730
  const [e, t] = te.useState(!1);
6699
6731
  return te.useEffect(() => {
6700
6732
  if (typeof document > "u") return;
@@ -6707,7 +6739,7 @@ function ul() {
6707
6739
  }), () => r.disconnect();
6708
6740
  }, []), e;
6709
6741
  }
6710
- const fl = ({
6742
+ const hl = ({
6711
6743
  isOpen: e,
6712
6744
  onClose: t,
6713
6745
  title: n,
@@ -6726,14 +6758,14 @@ const fl = ({
6726
6758
  disableOverflowHidden: w = !1,
6727
6759
  "data-testid": p
6728
6760
  }) => {
6729
- const m = i === "bottom" ? s || a : void 0, A = ul() ? 0.65 : 0.4;
6761
+ const m = i === "bottom" ? s || a : void 0, A = fl() ? 0.65 : 0.4;
6730
6762
  return /* @__PURE__ */ f(
6731
- oo,
6763
+ so,
6732
6764
  {
6733
6765
  open: e,
6734
6766
  onOpenChange: (M) => !M && t(),
6735
6767
  children: /* @__PURE__ */ j(
6736
- io,
6768
+ ao,
6737
6769
  {
6738
6770
  placement: i,
6739
6771
  width: l,
@@ -6751,8 +6783,8 @@ const fl = ({
6751
6783
  "data-testid": p,
6752
6784
  "data-preserve-selection": !0,
6753
6785
  children: [
6754
- /* @__PURE__ */ f(so, { className: "sc:sr-only", children: n }),
6755
- r && /* @__PURE__ */ f(ao, { className: "sc:sr-only", children: r }),
6786
+ /* @__PURE__ */ f(lo, { className: "sc:sr-only", children: n }),
6787
+ r && /* @__PURE__ */ f(co, { className: "sc:sr-only", children: r }),
6756
6788
  x ? (
6757
6789
  // Custom scroll control - children manage their own scrolling
6758
6790
  /* @__PURE__ */ j("div", { className: "sc:flex sc:flex-col sc:flex-1 sc:min-h-0", children: [
@@ -6803,7 +6835,7 @@ const fl = ({
6803
6835
  )
6804
6836
  }
6805
6837
  );
6806
- }, hl = ({ className: e }) => /* @__PURE__ */ f(
6838
+ }, pl = ({ className: e }) => /* @__PURE__ */ f(
6807
6839
  "svg",
6808
6840
  {
6809
6841
  className: e,
@@ -6816,7 +6848,7 @@ const fl = ({
6816
6848
  "aria-hidden": !0,
6817
6849
  children: /* @__PURE__ */ f("path", { d: "M12 2L21 8L18 19L6 19L3 8L12 2Z" })
6818
6850
  }
6819
- ), pl = ({ className: e }) => /* @__PURE__ */ f(
6851
+ ), gl = ({ className: e }) => /* @__PURE__ */ f(
6820
6852
  "svg",
6821
6853
  {
6822
6854
  className: e,
@@ -6827,15 +6859,15 @@ const fl = ({
6827
6859
  "aria-hidden": !0,
6828
6860
  children: /* @__PURE__ */ f("ellipse", { cx: "12", cy: "12", rx: "9", ry: "6" })
6829
6861
  }
6830
- ), Rn = "sc:size-10", gl = [
6862
+ ), Tn = "sc:size-10", ml = [
6831
6863
  { id: "rectangle", label: "Rectangle", icon: "lucide:square" },
6832
6864
  { id: "circle", label: "Circle", icon: "lucide:circle" },
6833
- { id: "ellipse", label: "Ellipse", reactIcon: /* @__PURE__ */ f(pl, { className: Rn }) },
6865
+ { id: "ellipse", label: "Ellipse", reactIcon: /* @__PURE__ */ f(gl, { className: Tn }) },
6834
6866
  { id: "triangle", label: "Triangle", icon: "lucide:triangle" },
6835
- { id: "polygon", label: "Polygon", reactIcon: /* @__PURE__ */ f(hl, { className: Rn }) },
6867
+ { id: "polygon", label: "Polygon", reactIcon: /* @__PURE__ */ f(pl, { className: Tn }) },
6836
6868
  { id: "star", label: "Star", icon: "lucide:star" },
6837
6869
  { id: "line", label: "Line", icon: "lucide:minus" }
6838
- ], No = ({
6870
+ ], Fo = ({
6839
6871
  isOpen: e,
6840
6872
  onClose: t,
6841
6873
  onSelectType: n,
@@ -6845,7 +6877,7 @@ const fl = ({
6845
6877
  n(a), t();
6846
6878
  };
6847
6879
  return /* @__PURE__ */ j(
6848
- fl,
6880
+ hl,
6849
6881
  {
6850
6882
  isOpen: e,
6851
6883
  onClose: t,
@@ -6874,7 +6906,7 @@ const fl = ({
6874
6906
  {
6875
6907
  className: "sc:grid sc:grid-cols-3 sc:gap-2 sc:p-4",
6876
6908
  "data-testid": "shape-type-list",
6877
- children: gl.map((a) => {
6909
+ children: ml.map((a) => {
6878
6910
  const l = a.id === r;
6879
6911
  return /* @__PURE__ */ j(
6880
6912
  "button",
@@ -6889,7 +6921,7 @@ const fl = ({
6889
6921
  "span",
6890
6922
  {
6891
6923
  className: l ? "sc:text-primary" : "sc:text-foreground/85",
6892
- children: a.reactIcon ? a.reactIcon : /* @__PURE__ */ f(B, { icon: a.icon, className: Rn })
6924
+ children: a.reactIcon ? a.reactIcon : /* @__PURE__ */ f(B, { icon: a.icon, className: Tn })
6893
6925
  }
6894
6926
  ),
6895
6927
  /* @__PURE__ */ f(
@@ -6909,7 +6941,7 @@ const fl = ({
6909
6941
  ]
6910
6942
  }
6911
6943
  );
6912
- }, gn = ot("MenuButton"), ml = ({
6944
+ }, mn = ot("MenuButton"), vl = ({
6913
6945
  isLayersPanelOpen: e = !1,
6914
6946
  onToggleLayersPanel: t,
6915
6947
  onOpenImageBrowser: n,
@@ -6919,12 +6951,12 @@ const fl = ({
6919
6951
  className: s
6920
6952
  }) => {
6921
6953
  var S;
6922
- const { get: a } = Lr(), [l, c] = H(!1), [u, d] = H(!1), [h, g] = H(!1), x = G(null), w = async () => {
6954
+ const { get: a } = Tr(), [l, c] = H(!1), [u, d] = H(!1), [h, g] = H(!1), x = G(null), w = async () => {
6923
6955
  try {
6924
- const { ExportManager: v } = await import("./ExportManager-DoU4VK6h.js").then((R) => R.S), { artboardManager: L, elements: b } = a(), D = L.getAllArtboards();
6956
+ const { ExportManager: v } = await import("./ExportManager-BTcyj4cf.js").then((R) => R.S), { artboardManager: L, elements: b } = a(), D = L.getAllArtboards();
6925
6957
  v.exportToJSON(D, b, L), c(!1);
6926
6958
  } catch (v) {
6927
- gn.error("Failed to save workspace:", v), alert("Failed to save workspace. Please try again.");
6959
+ mn.error("Failed to save workspace:", v), alert("Failed to save workspace. Please try again.");
6928
6960
  }
6929
6961
  }, p = () => {
6930
6962
  var v;
@@ -6934,9 +6966,9 @@ const fl = ({
6934
6966
  const L = (b = v.target.files) == null ? void 0 : b[0];
6935
6967
  if (L) {
6936
6968
  try {
6937
- const D = await rn.importFromJSON(L);
6969
+ const D = await on.importFromJSON(L);
6938
6970
  if (D.success && D.artboards && D.elements) {
6939
- const R = rn.validateImportedData(D.artboards, D.elements);
6971
+ const R = on.validateImportedData(D.artboards, D.elements);
6940
6972
  if (!R.valid && !confirm(
6941
6973
  `Found ${R.errors.length} issue(s) in the file:
6942
6974
 
@@ -6947,7 +6979,7 @@ const fl = ({
6947
6979
  Do you want to load anyway?`
6948
6980
  ))
6949
6981
  return;
6950
- const F = rn.getImportSummary(D.artboards, D.elements);
6982
+ const F = on.getImportSummary(D.artboards, D.elements);
6951
6983
  confirm(
6952
6984
  `Load workspace with:
6953
6985
 
@@ -6959,7 +6991,7 @@ This will replace your current workspace. Continue?`
6959
6991
  } else
6960
6992
  alert(`Failed to load: ${D.error || "Unknown error"}`);
6961
6993
  } catch (D) {
6962
- gn.error("Failed to load workspace:", D), alert("Failed to load workspace. Please check the file and try again.");
6994
+ mn.error("Failed to load workspace:", D), alert("Failed to load workspace. Please check the file and try again.");
6963
6995
  }
6964
6996
  x.current && (x.current.value = "");
6965
6997
  }
@@ -6975,14 +7007,14 @@ This will replace your current workspace. Continue?`
6975
7007
  return;
6976
7008
  }
6977
7009
  try {
6978
- const { ExportManager: R } = await import("./ExportManager-DoU4VK6h.js").then((F) => F.S);
7010
+ const { ExportManager: R } = await import("./ExportManager-BTcyj4cf.js").then((F) => F.S);
6979
7011
  await R.exportArtboardToImage(D, L, b.current, {
6980
7012
  format: "png",
6981
7013
  scale: 2,
6982
7014
  transparentBackground: !1
6983
7015
  }), c(!1);
6984
7016
  } catch (R) {
6985
- gn.error("Failed to export artboard:", R), alert("Failed to export artboard. Please try again.");
7017
+ mn.error("Failed to export artboard:", R), alert("Failed to export artboard. Please try again.");
6986
7018
  }
6987
7019
  }, A = async (v) => {
6988
7020
  if (v === "image" && n) {
@@ -6996,12 +7028,12 @@ This will replace your current workspace. Continue?`
6996
7028
  await a().handleAddElement(v), c(!1), d(!1);
6997
7029
  }, M = async (v) => {
6998
7030
  g(!1), await a().handleAddElement("shape", { shapeType: v });
6999
- }, T = Io, y = () => /* @__PURE__ */ f("div", { className: "sc:my-xs sc:h-px sc:bg-border-primary" });
7000
- return /* @__PURE__ */ j(tn, { children: [
7031
+ }, T = zo, y = () => /* @__PURE__ */ f("div", { className: "sc:my-xs sc:h-px sc:bg-border-primary" });
7032
+ return /* @__PURE__ */ j(nn, { children: [
7001
7033
  /* @__PURE__ */ f(
7002
- To,
7034
+ Oo,
7003
7035
  {
7004
- trigger: /* @__PURE__ */ j($n, { delayDuration: 0, children: [
7036
+ trigger: /* @__PURE__ */ j(Hn, { delayDuration: 0, children: [
7005
7037
  /* @__PURE__ */ f(_t, { asChild: !0, children: /* @__PURE__ */ f(
7006
7038
  rt,
7007
7039
  {
@@ -7018,7 +7050,7 @@ This will replace your current workspace. Continue?`
7018
7050
  onToggle: c,
7019
7051
  position: "bottom",
7020
7052
  align: "end",
7021
- children: /* @__PURE__ */ j(Ln, { minWidth: "200px", children: [
7053
+ children: /* @__PURE__ */ j(Rn, { minWidth: "200px", children: [
7022
7054
  /* @__PURE__ */ j(
7023
7055
  "div",
7024
7056
  {
@@ -7036,7 +7068,7 @@ This will replace your current workspace. Continue?`
7036
7068
  top: 0,
7037
7069
  zIndex: "var(--sc-z-sticky)"
7038
7070
  },
7039
- children: /* @__PURE__ */ f(Ln, { minWidth: "180px", children: T.map((v) => /* @__PURE__ */ f(
7071
+ children: /* @__PURE__ */ f(Rn, { minWidth: "180px", children: T.map((v) => /* @__PURE__ */ f(
7040
7072
  Ke,
7041
7073
  {
7042
7074
  icon: v.icon,
@@ -7062,7 +7094,7 @@ This will replace your current workspace. Continue?`
7062
7094
  disabled: !((S = a().canvasRef) != null && S.current)
7063
7095
  }
7064
7096
  ),
7065
- t && /* @__PURE__ */ j(tn, { children: [
7097
+ t && /* @__PURE__ */ j(nn, { children: [
7066
7098
  /* @__PURE__ */ f(y, {}),
7067
7099
  /* @__PURE__ */ f(
7068
7100
  Ke,
@@ -7075,7 +7107,7 @@ This will replace your current workspace. Continue?`
7075
7107
  }
7076
7108
  )
7077
7109
  ] }),
7078
- r && /* @__PURE__ */ j(tn, { children: [
7110
+ r && /* @__PURE__ */ j(nn, { children: [
7079
7111
  /* @__PURE__ */ f(y, {}),
7080
7112
  r
7081
7113
  ] })
@@ -7093,7 +7125,7 @@ This will replace your current workspace. Continue?`
7093
7125
  }
7094
7126
  ),
7095
7127
  /* @__PURE__ */ f(
7096
- No,
7128
+ Fo,
7097
7129
  {
7098
7130
  isOpen: h,
7099
7131
  onClose: () => g(!1),
@@ -7102,16 +7134,16 @@ This will replace your current workspace. Continue?`
7102
7134
  )
7103
7135
  ] });
7104
7136
  };
7105
- function Oo({
7137
+ function Po({
7106
7138
  part: e,
7107
7139
  isOpen: t,
7108
7140
  onOpenChange: n
7109
7141
  }) {
7110
- const r = Xn(e), [o, i] = H(null);
7142
+ const r = Qn(e), [o, i] = H(null);
7111
7143
  return W(() => {
7112
7144
  if (!t || o) return;
7113
7145
  let s = !1;
7114
- return import("./ImagePanel-BwqFDKvW.js").then(
7146
+ return import("./ImagePanel-CIk6z41z.js").then(
7115
7147
  (a) => {
7116
7148
  s || i(() => a.ImagePanel);
7117
7149
  },
@@ -7129,13 +7161,13 @@ function Oo({
7129
7161
  };
7130
7162
  }, [t, o, r]), o ? /* @__PURE__ */ f(o, { isOpen: t, onOpenChange: n }) : null;
7131
7163
  }
7132
- function Bl({ className: e, style: t }) {
7133
- Jn("Editor.Menu");
7164
+ function Hl({ className: e, style: t }) {
7165
+ Zn("Editor.Menu"), Zt("Editor.Menu");
7134
7166
  const [n, r] = H(!1);
7135
7167
  return /* @__PURE__ */ j("div", { "data-sc-part": "menu", className: e, style: t, children: [
7136
- /* @__PURE__ */ f(ml, { onOpenImageBrowser: () => r(!0) }),
7168
+ /* @__PURE__ */ f(vl, { onOpenImageBrowser: () => r(!0) }),
7137
7169
  /* @__PURE__ */ f(
7138
- Oo,
7170
+ Po,
7139
7171
  {
7140
7172
  part: "Editor.Menu",
7141
7173
  isOpen: n,
@@ -7144,11 +7176,11 @@ function Bl({ className: e, style: t }) {
7144
7176
  )
7145
7177
  ] });
7146
7178
  }
7147
- const vl = () => {
7148
- const { undo: e, redo: t, canUndo: n, canRedo: r } = Yo();
7179
+ const yl = () => {
7180
+ const { undo: e, redo: t, canUndo: n, canRedo: r } = Xo();
7149
7181
  return /* @__PURE__ */ j("div", { className: "sc-undo-redo", style: { display: "inline-flex", gap: 4 }, children: [
7150
7182
  /* @__PURE__ */ f(
7151
- Sn,
7183
+ En,
7152
7184
  {
7153
7185
  icon: V.undo,
7154
7186
  onClick: e,
@@ -7158,7 +7190,7 @@ const vl = () => {
7158
7190
  }
7159
7191
  ),
7160
7192
  /* @__PURE__ */ f(
7161
- Sn,
7193
+ En,
7162
7194
  {
7163
7195
  icon: V.redo,
7164
7196
  onClick: t,
@@ -7169,12 +7201,12 @@ const vl = () => {
7169
7201
  )
7170
7202
  ] });
7171
7203
  };
7172
- function Hl({ className: e, style: t }) {
7173
- return Jn("Editor.History"), /* @__PURE__ */ f("div", { "data-sc-part": "history", className: e, style: t, children: /* @__PURE__ */ f(vl, {}) });
7174
- }
7175
7204
  function Ul({ className: e, style: t }) {
7176
- Jn("Editor.Add");
7177
- const { get: n } = Lr(), [r, o] = H(!1), [i, s] = H(!1), [a, l] = H(!1), c = async (d) => {
7205
+ return Zn("Editor.History"), Zt("Editor.History"), /* @__PURE__ */ f("div", { "data-sc-part": "history", className: e, style: t, children: /* @__PURE__ */ f(yl, {}) });
7206
+ }
7207
+ function Vl({ className: e, style: t }) {
7208
+ Zn("Editor.Add"), Zt("Editor.Add");
7209
+ const { get: n } = Tr(), [r, o] = H(!1), [i, s] = H(!1), [a, l] = H(!1), c = async (d) => {
7178
7210
  if (o(!1), d === "shape") {
7179
7211
  s(!0);
7180
7212
  return;
@@ -7189,9 +7221,9 @@ function Ul({ className: e, style: t }) {
7189
7221
  };
7190
7222
  return /* @__PURE__ */ j("div", { "data-sc-part": "add", className: e, style: t, children: [
7191
7223
  /* @__PURE__ */ f(
7192
- To,
7224
+ Oo,
7193
7225
  {
7194
- trigger: /* @__PURE__ */ j($n, { delayDuration: 0, children: [
7226
+ trigger: /* @__PURE__ */ j(Hn, { delayDuration: 0, children: [
7195
7227
  /* @__PURE__ */ f(_t, { asChild: !0, children: /* @__PURE__ */ f(rt, { variant: "ghost", size: "icon", "aria-label": "Add element", children: /* @__PURE__ */ f(B, { icon: V.plus, className: "sc:size-6" }) }) }),
7196
7228
  /* @__PURE__ */ f(Ct, { children: /* @__PURE__ */ f("p", { children: "Add element" }) })
7197
7229
  ] }),
@@ -7199,7 +7231,7 @@ function Ul({ className: e, style: t }) {
7199
7231
  onToggle: o,
7200
7232
  position: "bottom",
7201
7233
  align: "start",
7202
- children: /* @__PURE__ */ f(Ln, { minWidth: "180px", children: Io.map((d) => /* @__PURE__ */ f(
7234
+ children: /* @__PURE__ */ f(Rn, { minWidth: "180px", children: zo.map((d) => /* @__PURE__ */ f(
7203
7235
  Ke,
7204
7236
  {
7205
7237
  icon: d.icon,
@@ -7211,7 +7243,7 @@ function Ul({ className: e, style: t }) {
7211
7243
  }
7212
7244
  ),
7213
7245
  /* @__PURE__ */ f(
7214
- No,
7246
+ Fo,
7215
7247
  {
7216
7248
  isOpen: i,
7217
7249
  onClose: () => s(!1),
@@ -7219,7 +7251,7 @@ function Ul({ className: e, style: t }) {
7219
7251
  }
7220
7252
  ),
7221
7253
  /* @__PURE__ */ f(
7222
- Oo,
7254
+ Po,
7223
7255
  {
7224
7256
  part: "Editor.Add",
7225
7257
  isOpen: a,
@@ -7228,18 +7260,18 @@ function Ul({ className: e, style: t }) {
7228
7260
  )
7229
7261
  ] });
7230
7262
  }
7231
- const yl = ot("useExport");
7232
- function Vl() {
7263
+ const bl = ot("useExport");
7264
+ function Gl() {
7233
7265
  const {
7234
7266
  artboards: e,
7235
7267
  artboardManager: t,
7236
7268
  elements: n,
7237
7269
  canvasRef: r
7238
- } = In(), [o, i] = H(!1), [s, a] = H(!1), [l, c] = H([]), [u, d] = H({}), [h, g] = H({
7270
+ } = On(), [o, i] = H(!1), [s, a] = H(!1), [l, c] = H([]), [u, d] = H({}), [h, g] = H({
7239
7271
  totalExports: 0,
7240
7272
  avgExportTime: 0,
7241
7273
  isWorkerActive: !1
7242
- }), x = G(0), w = G(null), p = on.supportsWorkerExport(), m = N(async (v, L = {}) => {
7274
+ }), x = G(0), w = G(null), p = sn.supportsWorkerExport(), m = N(async (v, L = {}) => {
7243
7275
  const b = e.find((R) => R.id === v);
7244
7276
  if (!b)
7245
7277
  throw new Error(`[useExport] Artboard ${v} not found`);
@@ -7255,7 +7287,7 @@ function Vl() {
7255
7287
  };
7256
7288
  c((R) => [...R, D]);
7257
7289
  try {
7258
- const R = Date.now(), F = A.current, X = t.getElementsOnArtboard(v), pe = F.filter((Y) => X.includes(Y.id)), J = await on.exportArtboardToDataURL(
7290
+ const R = Date.now(), F = A.current, X = t.getElementsOnArtboard(v), pe = F.filter((Y) => X.includes(Y.id)), J = await sn.exportArtboardToDataURL(
7259
7291
  b,
7260
7292
  pe,
7261
7293
  r.current,
@@ -7304,7 +7336,7 @@ function Vl() {
7304
7336
  i(!0);
7305
7337
  try {
7306
7338
  const D = A.current, R = t.getElementsOnArtboard(v), F = D.filter((pe) => R.includes(pe.id));
7307
- return await on.exportArtboardToBlob(
7339
+ return await sn.exportArtboardToBlob(
7308
7340
  b,
7309
7341
  F,
7310
7342
  r.current,
@@ -7357,7 +7389,7 @@ function Vl() {
7357
7389
  we[oe] = ue;
7358
7390
  d((oe) => ({ ...oe, ...we })), X && X(we);
7359
7391
  } catch (ee) {
7360
- yl.error("[useExport] Continuous export error:", ee);
7392
+ bl.error("[useExport] Continuous export error:", ee);
7361
7393
  }
7362
7394
  };
7363
7395
  (async () => {
@@ -7382,7 +7414,7 @@ function Vl() {
7382
7414
  workerStats: h
7383
7415
  };
7384
7416
  }
7385
- async function zo(e, t) {
7417
+ async function jo(e, t) {
7386
7418
  try {
7387
7419
  const n = await e.json();
7388
7420
  if (n && typeof n == "object") {
@@ -7394,7 +7426,7 @@ async function zo(e, t) {
7394
7426
  }
7395
7427
  return t;
7396
7428
  }
7397
- function bl(e) {
7429
+ function wl(e) {
7398
7430
  return {
7399
7431
  async search({ query: t, page: n, perPage: r = 30 }) {
7400
7432
  const o = new URLSearchParams({
@@ -7406,7 +7438,7 @@ function bl(e) {
7406
7438
  credentials: "same-origin"
7407
7439
  });
7408
7440
  if (!s.ok)
7409
- throw new Error(await zo(s, `Image search failed (${s.status})`));
7441
+ throw new Error(await jo(s, `Image search failed (${s.status})`));
7410
7442
  return await s.json();
7411
7443
  },
7412
7444
  trackSelect(t) {
@@ -7425,7 +7457,7 @@ function bl(e) {
7425
7457
  }
7426
7458
  };
7427
7459
  }
7428
- function wl(e) {
7460
+ function xl(e) {
7429
7461
  return {
7430
7462
  async generate({ prompt: t, width: n, height: r, numberResults: o }) {
7431
7463
  const i = await fetch(e, {
@@ -7435,13 +7467,13 @@ function wl(e) {
7435
7467
  body: JSON.stringify({ prompt: t, width: n, height: r, numberResults: o })
7436
7468
  });
7437
7469
  if (!i.ok)
7438
- throw new Error(await zo(i, `Image generation failed (${i.status})`));
7470
+ throw new Error(await jo(i, `Image generation failed (${i.status})`));
7439
7471
  const s = await i.json();
7440
7472
  return { images: s.images ?? (s.imageUrl ? [{ imageUrl: s.imageUrl }] : []) };
7441
7473
  }
7442
7474
  };
7443
7475
  }
7444
- function xl(e) {
7476
+ function kl(e) {
7445
7477
  const t = "/api/image-proxy?url=";
7446
7478
  if (!e || !e.startsWith(t)) return e;
7447
7479
  try {
@@ -7450,9 +7482,9 @@ function xl(e) {
7450
7482
  return e;
7451
7483
  }
7452
7484
  }
7453
- function kl(e) {
7485
+ function Cl(e) {
7454
7486
  return async function(n) {
7455
- const r = xl(n);
7487
+ const r = kl(n);
7456
7488
  if (!/^https?:\/\//.test(r))
7457
7489
  throw new Error("Background removal isn't available for this image yet");
7458
7490
  const o = await fetch(e, {
@@ -7466,14 +7498,14 @@ function kl(e) {
7466
7498
  return i.imageUrl;
7467
7499
  };
7468
7500
  }
7469
- const Fo = {}, Po = Xe(Fo);
7470
- function Gl({ services: e, children: t }) {
7501
+ const $o = {}, Bo = Xe($o);
7502
+ function Wl({ services: e, children: t }) {
7471
7503
  const n = q(() => e ? {
7472
- imageSearch: e.imageSearch ?? (e.imageSearchUrl ? bl(e.imageSearchUrl) : void 0),
7473
- generate: e.generate ?? (e.generateUrl ? wl(e.generateUrl) : void 0),
7504
+ imageSearch: e.imageSearch ?? (e.imageSearchUrl ? wl(e.imageSearchUrl) : void 0),
7505
+ generate: e.generate ?? (e.generateUrl ? xl(e.generateUrl) : void 0),
7474
7506
  vectors: e.vectors,
7475
- removeBackground: e.removeBackground ?? (e.bgRemoveUrl ? kl(e.bgRemoveUrl) : void 0)
7476
- } : Fo, [
7507
+ removeBackground: e.removeBackground ?? (e.bgRemoveUrl ? Cl(e.bgRemoveUrl) : void 0)
7508
+ } : $o, [
7477
7509
  e == null ? void 0 : e.imageSearch,
7478
7510
  e == null ? void 0 : e.imageSearchUrl,
7479
7511
  e == null ? void 0 : e.generate,
@@ -7482,14 +7514,14 @@ function Gl({ services: e, children: t }) {
7482
7514
  e == null ? void 0 : e.bgRemoveUrl,
7483
7515
  e == null ? void 0 : e.removeBackground
7484
7516
  ]);
7485
- return /* @__PURE__ */ f(Po.Provider, { value: n, children: t });
7517
+ return /* @__PURE__ */ f(Bo.Provider, { value: n, children: t });
7486
7518
  }
7487
- function Wl() {
7488
- return He(Po);
7519
+ function _l() {
7520
+ return je(Bo);
7489
7521
  }
7490
- const Sr = ot("GoogleFontsService");
7522
+ const Ar = ot("GoogleFontsService");
7491
7523
  let Ze = [], ht = null;
7492
- async function Cl() {
7524
+ async function Sl() {
7493
7525
  return Ze.length > 0 ? Ze : ht || (ht = fetch("/google-fonts.json").then((e) => {
7494
7526
  if (!e.ok)
7495
7527
  throw new Error(`HTTP error! status: ${e.status}`);
@@ -7500,15 +7532,15 @@ async function Cl() {
7500
7532
  subsets: t.subsets || [],
7501
7533
  variants: t.variants || [],
7502
7534
  popularity: t.popularity
7503
- })) : Sr.error("Unexpected API response structure:", e), Ze)).catch((e) => (Sr.error("Error fetching Google Fonts:", e), ht = null, [])), ht);
7535
+ })) : Ar.error("Unexpected API response structure:", e), Ze)).catch((e) => (Ar.error("Error fetching Google Fonts:", e), ht = null, [])), ht);
7504
7536
  }
7505
- function mn() {
7537
+ function vn() {
7506
7538
  return Ze;
7507
7539
  }
7508
- function Sl() {
7540
+ function El() {
7509
7541
  return Ze.length > 0;
7510
7542
  }
7511
- function Er(e) {
7543
+ function Dr(e) {
7512
7544
  return {
7513
7545
  "sans serif": "sans-serif",
7514
7546
  serif: "serif",
@@ -7517,8 +7549,8 @@ function Er(e) {
7517
7549
  monospace: "monospace"
7518
7550
  }[e.toLowerCase()] || "display";
7519
7551
  }
7520
- const Ar = ot("UnifiedFontService");
7521
- class El {
7552
+ const Mr = ot("UnifiedFontService");
7553
+ class Al {
7522
7554
  constructor() {
7523
7555
  this.searchCache = /* @__PURE__ */ new Map(), this.previewFontLinks = /* @__PURE__ */ new Set();
7524
7556
  }
@@ -7530,16 +7562,16 @@ class El {
7530
7562
  */
7531
7563
  async initialize() {
7532
7564
  try {
7533
- await Cl();
7565
+ await Sl();
7534
7566
  } catch (t) {
7535
- Ar.error("Failed to initialize UnifiedFontService:", t);
7567
+ Mr.error("Failed to initialize UnifiedFontService:", t);
7536
7568
  }
7537
7569
  }
7538
7570
  /**
7539
7571
  * Check if fonts are loaded
7540
7572
  */
7541
7573
  isFontsLoaded() {
7542
- return Sl();
7574
+ return El();
7543
7575
  }
7544
7576
  // ========================================
7545
7577
  // Font Retrieval
@@ -7549,14 +7581,14 @@ class El {
7549
7581
  * Returns system fonts + Google Fonts (deduplicated)
7550
7582
  */
7551
7583
  getAllFonts() {
7552
- const t = nn.filter((r) => !r.googleFont), n = this.mapGoogleFonts(mn());
7584
+ const t = rn.filter((r) => !r.googleFont), n = this.mapGoogleFonts(vn());
7553
7585
  return this.mergeFonts([...t, ...n]);
7554
7586
  }
7555
7587
  /**
7556
7588
  * Get recommended fonts (TSHIRT_FONTS curated list)
7557
7589
  */
7558
7590
  getRecommendedFonts() {
7559
- return nn;
7591
+ return rn;
7560
7592
  }
7561
7593
  // ========================================
7562
7594
  // Dual Search Strategy
@@ -7570,7 +7602,7 @@ class El {
7570
7602
  const n = `search:${t.toLowerCase()}`;
7571
7603
  if (this.searchCache.has(n))
7572
7604
  return this.searchCache.get(n);
7573
- const r = t.toLowerCase().trim(), o = mn().filter((s) => s.family.toLowerCase().includes(r)).map((s) => this.mapGoogleFont(s)), i = this.mergeFonts(o);
7605
+ const r = t.toLowerCase().trim(), o = vn().filter((s) => s.family.toLowerCase().includes(r)).map((s) => this.mapGoogleFont(s)), i = this.mergeFonts(o);
7574
7606
  return this.searchCache.set(n, i), i;
7575
7607
  }
7576
7608
  /**
@@ -7578,11 +7610,11 @@ class El {
7578
7610
  */
7579
7611
  async filterFontsByCategory(t) {
7580
7612
  if (t === "system")
7581
- return nn.filter((i) => !i.googleFont);
7613
+ return rn.filter((i) => !i.googleFont);
7582
7614
  const n = `category:${t}`;
7583
7615
  if (this.searchCache.has(n))
7584
7616
  return this.searchCache.get(n);
7585
- const r = mn().filter((i) => Er(i.category) === t).map((i) => this.mapGoogleFont(i)), o = this.mergeFonts(r);
7617
+ const r = vn().filter((i) => Dr(i.category) === t).map((i) => this.mapGoogleFont(i)), o = this.mergeFonts(r);
7586
7618
  return this.searchCache.set(n, o), o;
7587
7619
  }
7588
7620
  /**
@@ -7605,7 +7637,7 @@ class El {
7605
7637
  try {
7606
7638
  t.googleFont && this.loadGoogleFont(t.name);
7607
7639
  } catch (n) {
7608
- Ar.error(`Failed to load font ${t.name}:`, n);
7640
+ Mr.error(`Failed to load font ${t.name}:`, n);
7609
7641
  }
7610
7642
  }
7611
7643
  /**
@@ -7666,7 +7698,7 @@ class El {
7666
7698
  var n;
7667
7699
  return {
7668
7700
  name: t.family,
7669
- category: Er(t.category),
7701
+ category: Dr(t.category),
7670
7702
  googleFont: !0,
7671
7703
  source: "google",
7672
7704
  weights: ((n = t.variants) == null ? void 0 : n.map((r) => {
@@ -7723,51 +7755,52 @@ class El {
7723
7755
  };
7724
7756
  }
7725
7757
  }
7726
- const _l = new El();
7758
+ const ql = new Al();
7727
7759
  export {
7728
- oo as A,
7760
+ as as A,
7729
7761
  rt as B,
7730
- Gl as C,
7731
- To as D,
7732
- Pl as E,
7733
- io as F,
7734
- so as G,
7735
- V as H,
7762
+ Wl as C,
7763
+ Oo as D,
7764
+ jl as E,
7765
+ so as F,
7766
+ ao as G,
7767
+ lo as H,
7736
7768
  B as I,
7737
- fl as J,
7738
- to as K,
7739
- ol as L,
7740
- ml as M,
7741
- Cn as N,
7769
+ V as J,
7770
+ hl as K,
7771
+ sl as L,
7772
+ vl as M,
7773
+ ro as N,
7742
7774
  Sn as O,
7743
- No as S,
7744
- $n as T,
7745
- _l as U,
7746
- wl as a,
7747
- bl as b,
7748
- kl as c,
7749
- Wl as d,
7750
- Fl as e,
7751
- Vl as f,
7752
- ei as g,
7775
+ En as P,
7776
+ Fo as S,
7777
+ Hn as T,
7778
+ ql as U,
7779
+ xl as a,
7780
+ wl as b,
7781
+ Cl as c,
7782
+ _l as d,
7783
+ Pl as e,
7784
+ Gl as f,
7785
+ ni as g,
7753
7786
  _t as h,
7754
7787
  Ct as i,
7755
- Qi as j,
7756
- Ln as k,
7788
+ es as j,
7789
+ Rn as k,
7757
7790
  Ke as l,
7758
- no as m,
7759
- es as n,
7760
- jl as o,
7761
- sl as p,
7762
- Xn as q,
7763
- Jn as r,
7764
- ts as s,
7765
- Ul as t,
7766
- ms as u,
7767
- Bl as v,
7791
+ oo as m,
7792
+ ns as n,
7793
+ $l as o,
7794
+ No as p,
7795
+ Qn as q,
7796
+ Zt as r,
7797
+ rs as s,
7798
+ Zn as t,
7799
+ ys as u,
7800
+ Vl as v,
7768
7801
  Hl as w,
7769
- $l as x,
7770
- Le as y,
7771
- is as z
7802
+ Ul as x,
7803
+ Bl as y,
7804
+ Le as z
7772
7805
  };
7773
- //# sourceMappingURL=UnifiedFontService-CC3CSmH5.js.map
7806
+ //# sourceMappingURL=UnifiedFontService-CHVYDBDW.js.map