@snowcone-app/canvas 0.21.0 → 0.21.2

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 (41) hide show
  1. package/README.md +7 -2
  2. package/dist/{CanvasRenderer-CwiYq8qg.js → CanvasRenderer-B0szG0Us.js} +45 -44
  3. package/dist/{CanvasRenderer-CwiYq8qg.js.map → CanvasRenderer-B0szG0Us.js.map} +1 -1
  4. package/dist/{CanvasStateV1-BFabcAKC.js → CanvasStateV1-DmZ1Qvvn.js} +38 -38
  5. package/dist/{CanvasStateV1-BFabcAKC.js.map → CanvasStateV1-DmZ1Qvvn.js.map} +1 -1
  6. package/dist/{ContextualToolbars--vTtorNg.js → ContextualToolbars-BYnovWnN.js} +1372 -1422
  7. package/dist/ContextualToolbars-BYnovWnN.js.map +1 -0
  8. package/dist/{EditorCanvasImpl-2ZgIUVpK.js → EditorCanvasImpl-BmLHjXe7.js} +8 -8
  9. package/dist/{EditorCanvasImpl-2ZgIUVpK.js.map → EditorCanvasImpl-BmLHjXe7.js.map} +1 -1
  10. package/dist/{ExportManager-DK7CdI-G.js → ExportManager-DoU4VK6h.js} +603 -498
  11. package/dist/ExportManager-DoU4VK6h.js.map +1 -0
  12. package/dist/{FontAnalyzer-BpsTYowD.js → FontAnalyzer-CwIpgTGd.js} +309 -299
  13. package/dist/{FontAnalyzer-BpsTYowD.js.map → FontAnalyzer-CwIpgTGd.js.map} +1 -1
  14. package/dist/{SnowconeCanvas-DqZicdxK.js → SnowconeCanvas-Bj2773ym.js} +9 -9
  15. package/dist/{SnowconeCanvas-DqZicdxK.js.map → SnowconeCanvas-Bj2773ym.js.map} +1 -1
  16. package/dist/{UnifiedFontService-B1PGVu8O.js → UnifiedFontService-C8gaspRD.js} +812 -816
  17. package/dist/UnifiedFontService-C8gaspRD.js.map +1 -0
  18. package/dist/advanced.mjs +13 -13
  19. package/dist/{design-builder-CPF60RU2.js → design-builder-CT4DHIPe.js} +2 -2
  20. package/dist/{design-builder-CPF60RU2.js.map → design-builder-CT4DHIPe.js.map} +1 -1
  21. package/dist/{editorErrors-CK1RISFa.js → editorErrors-B2mb1sVN.js} +2 -2
  22. package/dist/{editorErrors-CK1RISFa.js.map → editorErrors-B2mb1sVN.js.map} +1 -1
  23. package/dist/{embed-2tp6Ue90.js → embed-pM7ZkFuz.js} +10 -10
  24. package/dist/{embed-2tp6Ue90.js.map → embed-pM7ZkFuz.js.map} +1 -1
  25. package/dist/embed.mjs +6 -6
  26. package/dist/index.mjs +8 -8
  27. package/dist/internals.mjs +11 -11
  28. package/dist/rendering/element-painters.d.ts +4 -2
  29. package/dist/{template-fields-FgImixyv.js → template-fields-BsnHMf1i.js} +6 -6
  30. package/dist/{template-fields-FgImixyv.js.map → template-fields-BsnHMf1i.js.map} +1 -1
  31. package/dist/testing.mjs +4 -4
  32. package/dist/{usePieceGuideBundle-Ctnu5k2D.js → usePieceGuideBundle-CbJJg66S.js} +2 -2
  33. package/dist/{usePieceGuideBundle-Ctnu5k2D.js.map → usePieceGuideBundle-CbJJg66S.js.map} +1 -1
  34. package/dist/{validation-3YEMnKLB.js → validation-DdVeWnlo.js} +9 -9
  35. package/dist/{validation-3YEMnKLB.js.map → validation-DdVeWnlo.js.map} +1 -1
  36. package/example/package.json +1 -1
  37. package/example/src/Widget.tsx +3 -0
  38. package/package.json +3 -2
  39. package/dist/ContextualToolbars--vTtorNg.js.map +0 -1
  40. package/dist/ExportManager-DK7CdI-G.js.map +0 -1
  41. package/dist/UnifiedFontService-B1PGVu8O.js.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { jsx as f, jsxs as j, Fragment as en } from "react/jsx-runtime";
2
2
  import * as z from "react";
3
3
  import te, { useRef as G, useState as V, useCallback as N, useMemo as q, useEffect as _, forwardRef as Tn, createElement as mn, useLayoutEffect as Ar, memo as Bo, useReducer as Ho, useContext as He, createContext as Xe, cloneElement as Uo, useId as Vo, useSyncExternalStore as Dr } from "react";
4
- import { u as In, h as Go, g as vn, r as Wo, j as _o, k as Mr, d as qo } from "./editorErrors-CK1RISFa.js";
5
- import { G as Ie, c as ot, C as tn } from "./FontAnalyzer-BpsTYowD.js";
4
+ import { u as In, h as Go, g as vn, r as Wo, j as _o, k as Mr, d as qo } from "./editorErrors-B2mb1sVN.js";
5
+ import { G as Ie, c as ot, C as tn } from "./FontAnalyzer-CwIpgTGd.js";
6
+ import { g as Yo, I as nn, E as rn } from "./ExportManager-DoU4VK6h.js";
6
7
  import { createPortal as Nn, unstable_batchedUpdates as Nt } from "react-dom";
7
- import { I as nn, E as rn } from "./ExportManager-DK7CdI-G.js";
8
8
  import { clsx as Lr } from "clsx";
9
9
  import { extendTailwindMerge as Rr } from "tailwind-merge";
10
- import { Slot as Yo } from "@radix-ui/react-slot";
10
+ import { Slot as Ko } from "@radix-ui/react-slot";
11
11
  import { cva as Tr } from "class-variance-authority";
12
12
  import * as tt from "@radix-ui/react-tooltip";
13
- const Ko = {
13
+ const Xo = {
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,
@@ -477,26 +477,22 @@ const Ko = {
477
477
  height: 15
478
478
  }
479
479
  }, Ir = typeof window < "u";
480
- async function Xo() {
480
+ async function Jo() {
481
481
  if (!Ir) return;
482
- const { addIcon: e } = await Promise.resolve().then(() => Xi);
483
- for (const [t, n] of Object.entries(Ko))
482
+ const { addIcon: e } = await Promise.resolve().then(() => Ki);
483
+ for (const [t, n] of Object.entries(Xo))
484
484
  e(t, n);
485
485
  }
486
486
  let on = !1;
487
- function Oa() {
488
- on || !Ir || (on = !0, Xo().catch(() => {
487
+ function Fl() {
488
+ on || !Ir || (on = !0, Jo().catch(() => {
489
489
  on = !1;
490
490
  }));
491
491
  }
492
- let Jo = null;
493
- function Qo() {
494
- return Jo;
495
- }
496
- const ie = ot("Layers"), Zo = 150;
492
+ const ie = ot("Layers"), Qo = 150;
497
493
  async function Jn(e, t = 64, n = "transparent") {
498
494
  try {
499
- const r = Qo();
495
+ const r = Yo();
500
496
  return r && r(e, {
501
497
  width: t,
502
498
  height: t,
@@ -508,33 +504,33 @@ async function Jn(e, t = 64, n = "transparent") {
508
504
  }
509
505
  }
510
506
  function Nr(e, t, n, r, o, i = 0, s = null) {
511
- return (i > 0 ? e : e.filter((a) => {
512
- const c = a.parentId ?? null;
513
- return a instanceof Ie, c === null;
514
- })).map((a) => {
515
- const c = a instanceof Ie, u = t === a.id || n.includes(a.id), d = {
516
- id: a.id,
517
- name: a.name || `Layer ${a.id.slice(0, 8)}`,
518
- type: a.transformType,
519
- visible: a.visible ?? !0,
520
- locked: a.locked ?? !1,
507
+ return (i > 0 ? e : e.filter((l) => {
508
+ const c = l.parentId ?? null;
509
+ return l instanceof Ie, c === null;
510
+ })).map((l) => {
511
+ const c = l instanceof Ie, u = t === l.id || n.includes(l.id), d = {
512
+ id: l.id,
513
+ name: l.name || `Layer ${l.id.slice(0, 8)}`,
514
+ type: l.transformType,
515
+ visible: l.visible ?? !0,
516
+ locked: l.locked ?? !1,
521
517
  isSelected: u,
522
518
  isGroup: c,
523
519
  depth: i,
524
520
  parentId: s,
525
- previewUrl: r.get(a.id) || null,
521
+ previewUrl: r.get(l.id) || null,
526
522
  refreshPreview: async () => {
527
- await o(a.id);
523
+ await o(l.id);
528
524
  }
529
525
  };
530
- return c && a instanceof Ie && (d.children = Nr(
531
- a.children,
526
+ return c && l instanceof Ie && (d.children = Nr(
527
+ l.children,
532
528
  t,
533
529
  n,
534
530
  r,
535
531
  o,
536
532
  i + 1,
537
- a.id
533
+ l.id
538
534
  )), d;
539
535
  });
540
536
  }
@@ -544,7 +540,7 @@ function zr(e) {
544
540
  t.push(n), n.children && t.push(...zr(n.children));
545
541
  return t;
546
542
  }
547
- function ei(e = {}) {
543
+ function Zo(e = {}) {
548
544
  var ce;
549
545
  const {
550
546
  artboardId: t,
@@ -554,8 +550,8 @@ function ei(e = {}) {
554
550
  autoRefreshPreviews: i = !1
555
551
  } = e, {
556
552
  elements: s,
557
- selectedId: l,
558
- multiSelection: a,
553
+ selectedId: a,
554
+ multiSelection: l,
559
555
  artboardManager: c,
560
556
  handleSelectionChange: u,
561
557
  handleElementUpdate: d,
@@ -577,13 +573,13 @@ function ei(e = {}) {
577
573
  return n || (k = k.filter((C) => C.visible !== !1)), k;
578
574
  }, [s, M, n, c]), L = q(() => Nr(
579
575
  v,
580
- l,
581
576
  a,
577
+ l,
582
578
  p.current,
583
579
  S
584
- ), [v, l, a, S, m]), b = q(() => zr(L), [L]), D = q(() => b.filter((k) => k.isSelected), [b]), R = N((k, C = !1) => {
585
- C ? a.includes(k) ? h(a.filter((I) => I !== k)) : h([...a, k]) : u(k);
586
- }, [a, h, u]), O = N((k) => {
580
+ ), [v, a, l, S, m]), b = q(() => zr(L), [L]), D = q(() => b.filter((k) => k.isSelected), [b]), R = N((k, C = !1) => {
581
+ C ? l.includes(k) ? h(l.filter((I) => I !== k)) : h([...l, k]) : u(k);
582
+ }, [l, h, u]), O = N((k) => {
587
583
  h(k);
588
584
  }, [h]), X = N(() => {
589
585
  u(null), h([]);
@@ -608,9 +604,9 @@ function ei(e = {}) {
608
604
  ie.warn(`Element ${k} not found for deletion`);
609
605
  return;
610
606
  }
611
- x(C), (l === k || a.includes(k)) && (u(null), h(a.filter((I) => I !== k)));
612
- }, [s, x, l, a, u, h]), ee = N((k) => {
613
- const C = s.find((le) => le.id === k);
607
+ x(C), (a === k || l.includes(k)) && (u(null), h(l.filter((I) => I !== k)));
608
+ }, [s, x, a, l, u, h]), ee = N((k) => {
609
+ const C = s.find((ae) => ae.id === k);
614
610
  if (!C) {
615
611
  ie.warn(`Element ${k} not found for duplication`);
616
612
  return;
@@ -673,13 +669,13 @@ function ei(e = {}) {
673
669
  ie.warn("Could not calculate bounding boxes for group");
674
670
  return;
675
671
  }
676
- const Z = Math.min(...P.map((ne) => ne.x)), le = Math.min(...P.map((ne) => ne.y)), me = new Ie({
672
+ const Z = Math.min(...P.map((ne) => ne.x)), ae = Math.min(...P.map((ne) => ne.y)), me = new Ie({
677
673
  x: Z,
678
- y: le
674
+ y: ae
679
675
  });
680
676
  me.children = C.map((ne) => {
681
677
  const je = ne.clone();
682
- return je.x = ne.x - Z, je.y = ne.y - le, je;
678
+ return je.x = ne.x - Z, je.y = ne.y - ae, je;
683
679
  }), C.forEach((ne) => x(ne)), g(me, K), u(me.id), h([]);
684
680
  }, [s, c, x, g, u, h]), ze = N((k) => {
685
681
  const C = s.find((P) => P.id === k);
@@ -719,10 +715,10 @@ function ei(e = {}) {
719
715
  if (!i) return;
720
716
  const k = setTimeout(() => {
721
717
  Se();
722
- }, Zo);
718
+ }, Qo);
723
719
  return () => clearTimeout(k);
724
720
  }, [i, Se]);
725
- const ae = N(() => {
721
+ const le = N(() => {
726
722
  p.current.clear();
727
723
  }, []), Fe = N(
728
724
  (k, C, I) => {
@@ -736,8 +732,8 @@ function ei(e = {}) {
736
732
  ie.warn(`Group ${F} not found for reorder`);
737
733
  return;
738
734
  }
739
- const P = K.clone(), Z = P.children.findIndex((Te) => Te.id === k), le = P.children.findIndex((Te) => Te.id === C);
740
- if (Z === -1 || le === -1) {
735
+ const P = K.clone(), Z = P.children.findIndex((Te) => Te.id === k), ae = P.children.findIndex((Te) => Te.id === C);
736
+ if (Z === -1 || ae === -1) {
741
737
  ie.warn(`Children not found in group for reorder: ${k}, ${C}`);
742
738
  return;
743
739
  }
@@ -767,7 +763,7 @@ function ei(e = {}) {
767
763
  [s]
768
764
  ), xe = N(
769
765
  (k, C) => {
770
- const I = s.find((le) => le.id === k), F = s.find((le) => le.id === C);
766
+ const I = s.find((ae) => ae.id === k), F = s.find((ae) => ae.id === C);
771
767
  if (!I || !F || !(F instanceof Ie)) {
772
768
  ie.warn(`Cannot add ${k} to group ${C}`);
773
769
  return;
@@ -788,8 +784,8 @@ function ei(e = {}) {
788
784
  if (!K) return;
789
785
  const P = c.getArtboardIdForElement(F.id);
790
786
  if (!P) return;
791
- const Z = K.clone(), le = F.clone();
792
- le.removeChild(k), d(le), C && I ? g(Z, P, I === "after" ? C : void 0, I === "before" ? C : void 0) : g(Z, P, void 0, F.id), u(Z.id);
787
+ const Z = K.clone(), ae = F.clone();
788
+ ae.removeChild(k), d(ae), C && I ? g(Z, P, I === "after" ? C : void 0, I === "before" ? C : void 0) : g(Z, P, void 0, F.id), u(Z.id);
793
789
  },
794
790
  [$, c, x, d, g, u]
795
791
  ), Je = N(() => {
@@ -830,20 +826,20 @@ function ei(e = {}) {
830
826
  findElementById: se,
831
827
  findParentGroup: $,
832
828
  generateAllPreviews: Se,
833
- clearPreviewCache: ae,
829
+ clearPreviewCache: le,
834
830
  artboardId: M,
835
831
  artboardManager: c,
836
832
  layerCount: b.length
837
833
  };
838
834
  }
839
- function ti(e, t) {
835
+ function ei(e, t) {
840
836
  const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
841
837
  function i(s) {
842
838
  if (n[s]) return o[s] = [];
843
839
  if (!(s in o)) {
844
840
  o[s] = null;
845
- const l = r[s] && r[s].parent, a = l && i(l);
846
- a && (o[s] = [l].concat(a));
841
+ const a = r[s] && r[s].parent, l = a && i(a);
842
+ l && (o[s] = [a].concat(l));
847
843
  }
848
844
  return o[s];
849
845
  }
@@ -866,22 +862,22 @@ const Fr = Object.freeze({
866
862
  body: "",
867
863
  hidden: !1
868
864
  });
869
- function ni(e, t) {
865
+ function ti(e, t) {
870
866
  const n = {};
871
867
  !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
872
868
  const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
873
869
  return r && (n.rotate = r), n;
874
870
  }
875
871
  function Qn(e, t) {
876
- const n = ni(e, t);
872
+ const n = ti(e, t);
877
873
  for (const r in yn) r in Pt ? r in e && !(r in n) && (n[r] = Pt[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
878
874
  return n;
879
875
  }
880
- function ri(e, t, n) {
876
+ function ni(e, t, n) {
881
877
  const r = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
882
878
  let i = {};
883
- function s(l) {
884
- i = Qn(r[l] || o[l], i);
879
+ function s(a) {
880
+ i = Qn(r[a] || o[a], i);
885
881
  }
886
882
  return s(t), n.forEach(s), Qn(e, i);
887
883
  }
@@ -891,14 +887,14 @@ function Or(e, t) {
891
887
  e.not_found instanceof Array && e.not_found.forEach((o) => {
892
888
  t(o, null), n.push(o);
893
889
  });
894
- const r = ti(e);
890
+ const r = ei(e);
895
891
  for (const o in r) {
896
892
  const i = r[o];
897
- i && (t(o, ri(e, o, i)), n.push(o));
893
+ i && (t(o, ni(e, o, i)), n.push(o));
898
894
  }
899
895
  return n;
900
896
  }
901
- const oi = {
897
+ const ri = {
902
898
  provider: "",
903
899
  aliases: {},
904
900
  not_found: {},
@@ -911,7 +907,7 @@ function sn(e, t) {
911
907
  function Pr(e) {
912
908
  if (typeof e != "object" || e === null) return null;
913
909
  const t = e;
914
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !sn(e, oi)) return null;
910
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !sn(e, ri)) return null;
915
911
  const n = t.icons;
916
912
  for (const o in n) {
917
913
  const i = n[o];
@@ -925,7 +921,7 @@ function Pr(e) {
925
921
  return t;
926
922
  }
927
923
  const Zn = /* @__PURE__ */ Object.create(null);
928
- function ii(e, t) {
924
+ function oi(e, t) {
929
925
  return {
930
926
  provider: e,
931
927
  prefix: t,
@@ -935,14 +931,14 @@ function ii(e, t) {
935
931
  }
936
932
  function nt(e, t) {
937
933
  const n = Zn[e] || (Zn[e] = /* @__PURE__ */ Object.create(null));
938
- return n[t] || (n[t] = ii(e, t));
934
+ return n[t] || (n[t] = oi(e, t));
939
935
  }
940
936
  function jr(e, t) {
941
937
  return Pr(t) ? Or(t, (n, r) => {
942
938
  r ? e.icons[n] = r : e.missing.add(n);
943
939
  }) : [];
944
940
  }
945
- function si(e, t, n) {
941
+ function ii(e, t, n) {
946
942
  try {
947
943
  if (typeof n.body == "string")
948
944
  return e.icons[t] = { ...n }, !0;
@@ -958,29 +954,29 @@ const $r = /^[a-z0-9]+(-[a-z0-9]+)*$/, Gt = (e, t, n, r = "") => {
958
954
  }
959
955
  if (o.length > 3 || !o.length) return null;
960
956
  if (o.length > 1) {
961
- const l = o.pop(), a = o.pop(), c = {
957
+ const a = o.pop(), l = o.pop(), c = {
962
958
  provider: o.length > 0 ? o[0] : r,
963
- prefix: a,
964
- name: l
959
+ prefix: l,
960
+ name: a
965
961
  };
966
962
  return t && !zt(c) ? null : c;
967
963
  }
968
964
  const i = o[0], s = i.split("-");
969
965
  if (s.length > 1) {
970
- const l = {
966
+ const a = {
971
967
  provider: r,
972
968
  prefix: s.shift(),
973
969
  name: s.join("-")
974
970
  };
975
- return t && !zt(l) ? null : l;
971
+ return t && !zt(a) ? null : a;
976
972
  }
977
973
  if (n && r === "") {
978
- const l = {
974
+ const a = {
979
975
  provider: r,
980
976
  prefix: "",
981
977
  name: i
982
978
  };
983
- return t && !zt(l, n) ? null : l;
979
+ return t && !zt(a, n) ? null : a;
984
980
  }
985
981
  return null;
986
982
  }, zt = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
@@ -999,7 +995,7 @@ function Hr(e, t) {
999
995
  const n = Gt(e, !0, yt);
1000
996
  if (!n) return !1;
1001
997
  const r = nt(n.provider, n.prefix);
1002
- return t ? si(r, n.name, t) : (r.missing.add(n.name), !0);
998
+ return t ? ii(r, n.name, t) : (r.missing.add(n.name), !0);
1003
999
  }
1004
1000
  function Ur(e, t) {
1005
1001
  if (typeof e != "object") return !1;
@@ -1023,25 +1019,25 @@ const Vr = Object.freeze({
1023
1019
  }), Gr = Object.freeze({
1024
1020
  ...Vr,
1025
1021
  ...Pt
1026
- }), li = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ai = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1022
+ }), si = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ai = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1027
1023
  function bn(e, t, n) {
1028
1024
  if (t === 1) return e;
1029
1025
  if (n = n || 100, typeof e == "number") return Math.ceil(e * t * n) / n;
1030
1026
  if (typeof e != "string") return e;
1031
- const r = e.split(li);
1027
+ const r = e.split(si);
1032
1028
  if (r === null || !r.length) return e;
1033
1029
  const o = [];
1034
1030
  let i = r.shift(), s = ai.test(i);
1035
1031
  for (; ; ) {
1036
1032
  if (s) {
1037
- const l = parseFloat(i);
1038
- isNaN(l) ? o.push(i) : o.push(Math.ceil(l * t * n) / n);
1033
+ const a = parseFloat(i);
1034
+ isNaN(a) ? o.push(i) : o.push(Math.ceil(a * t * n) / n);
1039
1035
  } else o.push(i);
1040
1036
  if (i = r.shift(), i === void 0) return o.join("");
1041
1037
  s = !s;
1042
1038
  }
1043
1039
  }
1044
- function ci(e, t = "defs") {
1040
+ function li(e, t = "defs") {
1045
1041
  let n = "";
1046
1042
  const r = e.indexOf("<" + t);
1047
1043
  for (; r >= 0; ) {
@@ -1056,14 +1052,14 @@ function ci(e, t = "defs") {
1056
1052
  content: e
1057
1053
  };
1058
1054
  }
1059
- function di(e, t) {
1055
+ function ci(e, t) {
1060
1056
  return e ? "<defs>" + e + "</defs>" + t : t;
1061
1057
  }
1062
- function ui(e, t, n) {
1063
- const r = ci(e);
1064
- return di(r.defs, t + r.content + n);
1058
+ function di(e, t, n) {
1059
+ const r = li(e);
1060
+ return ci(r.defs, t + r.content + n);
1065
1061
  }
1066
- const fi = (e) => e === "unset" || e === "undefined" || e === "none";
1062
+ const ui = (e) => e === "unset" || e === "undefined" || e === "none";
1067
1063
  function Wr(e, t) {
1068
1064
  const n = {
1069
1065
  ...zn,
@@ -1094,19 +1090,19 @@ function Wr(e, t) {
1094
1090
  M = o.width / 2 + o.left, p.unshift("rotate(-90 " + M.toString() + " " + M.toString() + ")");
1095
1091
  break;
1096
1092
  }
1097
- 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 = di(i, '<g transform="' + p.join(" ") + '">', "</g>"));
1098
1094
  });
1099
- const s = r.width, l = r.height, a = o.width, c = o.height;
1095
+ const s = r.width, a = r.height, l = o.width, c = o.height;
1100
1096
  let u, d;
1101
- s === null ? (d = l === null ? "1em" : l === "auto" ? c : l, u = bn(d, a / c)) : (u = s === "auto" ? a : s, d = l === null ? bn(u, c / a) : l === "auto" ? c : l);
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);
1102
1098
  const h = {}, g = (w, p) => {
1103
- fi(p) || (h[w] = p.toString());
1099
+ ui(p) || (h[w] = p.toString());
1104
1100
  };
1105
1101
  g("width", u), g("height", d);
1106
1102
  const x = [
1107
1103
  o.left,
1108
1104
  o.top,
1109
- a,
1105
+ l,
1110
1106
  c
1111
1107
  ];
1112
1108
  return h.viewBox = x.join(" "), {
@@ -1115,21 +1111,21 @@ function Wr(e, t) {
1115
1111
  body: i
1116
1112
  };
1117
1113
  }
1118
- const hi = /\sid="(\S+)"/g, pi = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1119
- let gi = 0;
1120
- function _r(e, t = pi) {
1114
+ const fi = /\sid="(\S+)"/g, hi = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1115
+ let pi = 0;
1116
+ function _r(e, t = hi) {
1121
1117
  const n = [];
1122
1118
  let r;
1123
- for (; r = hi.exec(e); ) n.push(r[1]);
1119
+ for (; r = fi.exec(e); ) n.push(r[1]);
1124
1120
  if (!n.length) return e;
1125
1121
  const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
1126
1122
  return n.forEach((i) => {
1127
- const s = typeof t == "function" ? t(i) : t + (gi++).toString(), l = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1128
- e = e.replace(new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"), "$1" + s + o + "$3");
1123
+ const s = typeof t == "function" ? t(i) : t + (pi++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1124
+ e = e.replace(new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"), "$1" + s + o + "$3");
1129
1125
  }), e = e.replace(new RegExp(o, "g"), ""), e;
1130
1126
  }
1131
1127
  const wn = /* @__PURE__ */ Object.create(null);
1132
- function mi(e, t) {
1128
+ function gi(e, t) {
1133
1129
  wn[e] = t;
1134
1130
  }
1135
1131
  function xn(e) {
@@ -1160,15 +1156,15 @@ function qr(e, t) {
1160
1156
  function Pn(e) {
1161
1157
  return On[e];
1162
1158
  }
1163
- const vi = () => {
1159
+ const mi = () => {
1164
1160
  let e;
1165
1161
  try {
1166
1162
  if (e = fetch, typeof e == "function") return e;
1167
1163
  } catch {
1168
1164
  }
1169
1165
  };
1170
- let tr = vi();
1171
- function yi(e, t) {
1166
+ let tr = mi();
1167
+ function vi(e, t) {
1172
1168
  const n = Pn(e);
1173
1169
  if (!n) return 0;
1174
1170
  let r;
@@ -1183,43 +1179,43 @@ function yi(e, t) {
1183
1179
  }
1184
1180
  return r;
1185
1181
  }
1186
- function bi(e) {
1182
+ function yi(e) {
1187
1183
  return e === 404;
1188
1184
  }
1189
- const wi = (e, t, n) => {
1190
- const r = [], o = yi(e, t), i = "icons";
1185
+ const bi = (e, t, n) => {
1186
+ const r = [], o = vi(e, t), i = "icons";
1191
1187
  let s = {
1192
1188
  type: i,
1193
1189
  provider: e,
1194
1190
  prefix: t,
1195
1191
  icons: []
1196
- }, l = 0;
1197
- return n.forEach((a, c) => {
1198
- l += a.length + 1, l >= o && c > 0 && (r.push(s), s = {
1192
+ }, a = 0;
1193
+ return n.forEach((l, c) => {
1194
+ a += l.length + 1, a >= o && c > 0 && (r.push(s), s = {
1199
1195
  type: i,
1200
1196
  provider: e,
1201
1197
  prefix: t,
1202
1198
  icons: []
1203
- }, l = a.length), s.icons.push(a);
1199
+ }, a = l.length), s.icons.push(l);
1204
1200
  }), r.push(s), r;
1205
1201
  };
1206
- function xi(e) {
1202
+ function wi(e) {
1207
1203
  if (typeof e == "string") {
1208
1204
  const t = Pn(e);
1209
1205
  if (t) return t.path;
1210
1206
  }
1211
1207
  return "/";
1212
1208
  }
1213
- const ki = (e, t, n) => {
1209
+ const xi = (e, t, n) => {
1214
1210
  if (!tr) {
1215
1211
  n("abort", 424);
1216
1212
  return;
1217
1213
  }
1218
- let r = xi(t.provider);
1214
+ let r = wi(t.provider);
1219
1215
  switch (t.type) {
1220
1216
  case "icons": {
1221
- const i = t.prefix, l = t.icons.join(","), a = new URLSearchParams({ icons: l });
1222
- r += i + ".json?" + a.toString();
1217
+ const i = t.prefix, a = t.icons.join(","), l = new URLSearchParams({ icons: a });
1218
+ r += i + ".json?" + l.toString();
1223
1219
  break;
1224
1220
  }
1225
1221
  case "custom": {
@@ -1236,7 +1232,7 @@ const ki = (e, t, n) => {
1236
1232
  const s = i.status;
1237
1233
  if (s !== 200) {
1238
1234
  setTimeout(() => {
1239
- n(bi(s) ? "abort" : "next", s);
1235
+ n(yi(s) ? "abort" : "next", s);
1240
1236
  });
1241
1237
  return;
1242
1238
  }
@@ -1254,9 +1250,9 @@ const ki = (e, t, n) => {
1254
1250
  }).catch(() => {
1255
1251
  n("next", o);
1256
1252
  });
1257
- }, Ci = {
1258
- prepare: wi,
1259
- send: ki
1253
+ }, ki = {
1254
+ prepare: bi,
1255
+ send: xi
1260
1256
  };
1261
1257
  function Yr(e, t) {
1262
1258
  e.forEach((n) => {
@@ -1264,7 +1260,7 @@ function Yr(e, t) {
1264
1260
  r && (n.loaderCallbacks = r.filter((o) => o.id !== t));
1265
1261
  });
1266
1262
  }
1267
- function Si(e) {
1263
+ function Ci(e) {
1268
1264
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
1269
1265
  e.pendingCallbacksFlag = !1;
1270
1266
  const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -1272,10 +1268,10 @@ function Si(e) {
1272
1268
  let n = !1;
1273
1269
  const r = e.provider, o = e.prefix;
1274
1270
  t.forEach((i) => {
1275
- const s = i.icons, l = s.pending.length;
1276
- s.pending = s.pending.filter((a) => {
1277
- if (a.prefix !== o) return !0;
1278
- const c = a.name;
1271
+ const s = i.icons, a = s.pending.length;
1272
+ s.pending = s.pending.filter((l) => {
1273
+ if (l.prefix !== o) return !0;
1274
+ const c = l.name;
1279
1275
  if (e.icons[c]) s.loaded.push({
1280
1276
  provider: r,
1281
1277
  prefix: o,
@@ -1289,13 +1285,13 @@ function Si(e) {
1289
1285
  else
1290
1286
  return n = !0, !0;
1291
1287
  return !1;
1292
- }), s.pending.length !== l && (n || Yr([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 || Yr([e], i.id), i.callback(s.loaded.slice(0), s.missing.slice(0), s.pending.slice(0), i.abort));
1293
1289
  });
1294
1290
  }));
1295
1291
  }
1296
- let Ei = 0;
1297
- function Ai(e, t, n) {
1298
- const r = Ei++, o = Yr.bind(null, n, r);
1292
+ let Si = 0;
1293
+ function Ei(e, t, n) {
1294
+ const r = Si++, o = Yr.bind(null, n, r);
1299
1295
  if (!t.pending.length) return o;
1300
1296
  const i = {
1301
1297
  id: r,
@@ -1307,7 +1303,7 @@ function Ai(e, t, n) {
1307
1303
  (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
1308
1304
  }), o;
1309
1305
  }
1310
- function Di(e) {
1306
+ function Ai(e) {
1311
1307
  const t = {
1312
1308
  loaded: [],
1313
1309
  missing: [],
@@ -1322,25 +1318,25 @@ function Di(e) {
1322
1318
  return e.forEach((o) => {
1323
1319
  if (r.name === o.name && r.prefix === o.prefix && r.provider === o.provider) return;
1324
1320
  r = o;
1325
- const i = o.provider, s = o.prefix, l = o.name, a = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = a[s] || (a[s] = nt(i, s));
1321
+ const i = o.provider, s = o.prefix, a = o.name, l = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = l[s] || (l[s] = nt(i, s));
1326
1322
  let u;
1327
- l in c.icons ? u = t.loaded : s === "" || c.missing.has(l) ? u = t.missing : u = t.pending;
1323
+ a in c.icons ? u = t.loaded : s === "" || c.missing.has(a) ? u = t.missing : u = t.pending;
1328
1324
  const d = {
1329
1325
  provider: i,
1330
1326
  prefix: s,
1331
- name: l
1327
+ name: a
1332
1328
  };
1333
1329
  u.push(d);
1334
1330
  }), t;
1335
1331
  }
1336
- function Mi(e, t = !0, n = !1) {
1332
+ function Di(e, t = !0, n = !1) {
1337
1333
  const r = [];
1338
1334
  return e.forEach((o) => {
1339
1335
  const i = typeof o == "string" ? Gt(o, t, n) : o;
1340
1336
  i && r.push(i);
1341
1337
  }), r;
1342
1338
  }
1343
- const Li = {
1339
+ const Mi = {
1344
1340
  resources: [],
1345
1341
  index: 0,
1346
1342
  timeout: 2e3,
@@ -1348,7 +1344,7 @@ const Li = {
1348
1344
  random: !1,
1349
1345
  dataAfterTimeout: !1
1350
1346
  };
1351
- function Ri(e, t, n, r) {
1347
+ function Li(e, t, n, r) {
1352
1348
  const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
1353
1349
  let s;
1354
1350
  if (e.random) {
@@ -1359,14 +1355,14 @@ function Ri(e, t, n, r) {
1359
1355
  }
1360
1356
  s = s.concat(y);
1361
1357
  } else s = e.resources.slice(i).concat(e.resources.slice(0, i));
1362
- const l = Date.now();
1363
- let a = "pending", c = 0, u, d = null, h = [], g = [];
1358
+ const a = Date.now();
1359
+ let l = "pending", c = 0, u, d = null, h = [], g = [];
1364
1360
  typeof r == "function" && g.push(r);
1365
1361
  function x() {
1366
1362
  d && (clearTimeout(d), d = null);
1367
1363
  }
1368
1364
  function w() {
1369
- a === "pending" && (a = "aborted"), x(), h.forEach((y) => {
1365
+ l === "pending" && (l = "aborted"), x(), h.forEach((y) => {
1370
1366
  y.status === "pending" && (y.status = "aborted");
1371
1367
  }), h = [];
1372
1368
  }
@@ -1375,9 +1371,9 @@ function Ri(e, t, n, r) {
1375
1371
  }
1376
1372
  function m() {
1377
1373
  return {
1378
- startTime: l,
1374
+ startTime: a,
1379
1375
  payload: t,
1380
- status: a,
1376
+ status: l,
1381
1377
  queriesSent: c,
1382
1378
  queriesPending: h.length,
1383
1379
  subscribe: p,
@@ -1385,7 +1381,7 @@ function Ri(e, t, n, r) {
1385
1381
  };
1386
1382
  }
1387
1383
  function E() {
1388
- a = "failed", g.forEach((y) => {
1384
+ l = "failed", g.forEach((y) => {
1389
1385
  y(void 0, u);
1390
1386
  });
1391
1387
  }
@@ -1396,7 +1392,7 @@ function Ri(e, t, n, r) {
1396
1392
  }
1397
1393
  function M(y, S, v) {
1398
1394
  const L = S !== "success";
1399
- switch (h = h.filter((b) => b !== y), a) {
1395
+ switch (h = h.filter((b) => b !== y), l) {
1400
1396
  case "pending":
1401
1397
  break;
1402
1398
  case "failed":
@@ -1417,18 +1413,18 @@ function Ri(e, t, n, r) {
1417
1413
  const b = e.resources.indexOf(y.resource);
1418
1414
  b !== -1 && b !== e.index && (e.index = b);
1419
1415
  }
1420
- a = "completed", g.forEach((b) => {
1416
+ l = "completed", g.forEach((b) => {
1421
1417
  b(v);
1422
1418
  });
1423
1419
  }
1424
1420
  function T() {
1425
- if (a !== "pending") return;
1421
+ if (l !== "pending") return;
1426
1422
  x();
1427
1423
  const y = s.shift();
1428
1424
  if (y === void 0) {
1429
1425
  if (h.length) {
1430
1426
  d = setTimeout(() => {
1431
- x(), a === "pending" && (A(), E());
1427
+ x(), l === "pending" && (A(), E());
1432
1428
  }, e.timeout);
1433
1429
  return;
1434
1430
  }
@@ -1448,27 +1444,27 @@ function Ri(e, t, n, r) {
1448
1444
  }
1449
1445
  function Kr(e) {
1450
1446
  const t = {
1451
- ...Li,
1447
+ ...Mi,
1452
1448
  ...e
1453
1449
  };
1454
1450
  let n = [];
1455
1451
  function r() {
1456
- n = n.filter((l) => l().status === "pending");
1452
+ n = n.filter((a) => a().status === "pending");
1457
1453
  }
1458
- function o(l, a, c) {
1459
- const u = Ri(t, l, a, (d, h) => {
1454
+ function o(a, l, c) {
1455
+ const u = Li(t, a, l, (d, h) => {
1460
1456
  r(), c && c(d, h);
1461
1457
  });
1462
1458
  return n.push(u), u;
1463
1459
  }
1464
- function i(l) {
1465
- return n.find((a) => l(a)) || null;
1460
+ function i(a) {
1461
+ return n.find((l) => a(l)) || null;
1466
1462
  }
1467
1463
  return {
1468
1464
  query: o,
1469
1465
  find: i,
1470
- setIndex: (l) => {
1471
- t.index = l;
1466
+ setIndex: (a) => {
1467
+ t.index = a;
1472
1468
  },
1473
1469
  getIndex: () => t.index,
1474
1470
  cleanup: r
@@ -1476,46 +1472,46 @@ function Kr(e) {
1476
1472
  }
1477
1473
  function nr() {
1478
1474
  }
1479
- const ln = /* @__PURE__ */ Object.create(null);
1480
- function Ti(e) {
1481
- if (!ln[e]) {
1475
+ const an = /* @__PURE__ */ Object.create(null);
1476
+ function Ri(e) {
1477
+ if (!an[e]) {
1482
1478
  const t = Pn(e);
1483
1479
  if (!t) return;
1484
1480
  const n = Kr(t), r = {
1485
1481
  config: t,
1486
1482
  redundancy: n
1487
1483
  };
1488
- ln[e] = r;
1484
+ an[e] = r;
1489
1485
  }
1490
- return ln[e];
1486
+ return an[e];
1491
1487
  }
1492
- function Ii(e, t, n) {
1488
+ function Ti(e, t, n) {
1493
1489
  let r, o;
1494
1490
  if (typeof e == "string") {
1495
1491
  const i = xn(e);
1496
1492
  if (!i)
1497
1493
  return n(void 0, 424), nr;
1498
1494
  o = i.send;
1499
- const s = Ti(e);
1495
+ const s = Ri(e);
1500
1496
  s && (r = s.redundancy);
1501
1497
  } else {
1502
1498
  const i = Fn(e);
1503
1499
  if (i) {
1504
1500
  r = Kr(i);
1505
- const s = e.resources ? e.resources[0] : "", l = xn(s);
1506
- l && (o = l.send);
1501
+ const s = e.resources ? e.resources[0] : "", a = xn(s);
1502
+ a && (o = a.send);
1507
1503
  }
1508
1504
  }
1509
1505
  return !r || !o ? (n(void 0, 424), nr) : r.query(t, o, n)().abort;
1510
1506
  }
1511
1507
  function rr() {
1512
1508
  }
1513
- function Ni(e) {
1509
+ function Ii(e) {
1514
1510
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1515
- e.iconsLoaderFlag = !1, Si(e);
1511
+ e.iconsLoaderFlag = !1, Ci(e);
1516
1512
  }));
1517
1513
  }
1518
- function zi(e) {
1514
+ function Ni(e) {
1519
1515
  const t = [], n = [];
1520
1516
  return e.forEach((r) => {
1521
1517
  (r.match($r) ? t : n).push(r);
@@ -1539,7 +1535,7 @@ function ft(e, t, n) {
1539
1535
  } catch (o) {
1540
1536
  console.error(o);
1541
1537
  }
1542
- r(), Ni(e);
1538
+ r(), Ii(e);
1543
1539
  }
1544
1540
  function or(e, t) {
1545
1541
  e instanceof Promise ? e.then((n) => {
@@ -1548,7 +1544,7 @@ function or(e, t) {
1548
1544
  t(null);
1549
1545
  }) : t(e);
1550
1546
  }
1551
- function Fi(e, t) {
1547
+ function zi(e, t) {
1552
1548
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1553
1549
  e.iconsQueueFlag = !1;
1554
1550
  const { provider: n, prefix: r } = e, o = e.iconsToLoad;
@@ -1573,47 +1569,47 @@ function Fi(e, t) {
1573
1569
  });
1574
1570
  return;
1575
1571
  }
1576
- const { valid: s, invalid: l } = zi(o);
1577
- if (l.length && ft(e, l, null), !s.length) return;
1578
- const a = r.match($r) ? xn(n) : null;
1579
- if (!a) {
1572
+ const { valid: s, invalid: a } = Ni(o);
1573
+ if (a.length && ft(e, a, null), !s.length) return;
1574
+ const l = r.match($r) ? xn(n) : null;
1575
+ if (!l) {
1580
1576
  ft(e, s, null);
1581
1577
  return;
1582
1578
  }
1583
- a.prepare(n, r, s).forEach((u) => {
1584
- Ii(n, u, (d) => {
1579
+ l.prepare(n, r, s).forEach((u) => {
1580
+ Ti(n, u, (d) => {
1585
1581
  ft(e, u.icons, d);
1586
1582
  });
1587
1583
  });
1588
1584
  }));
1589
1585
  }
1590
1586
  const Xr = (e, t) => {
1591
- const n = Mi(e, !0, Br()), r = Di(n);
1587
+ const n = Di(e, !0, Br()), r = Ai(n);
1592
1588
  if (!r.pending.length) {
1593
- let a = !0;
1589
+ let l = !0;
1594
1590
  return t && setTimeout(() => {
1595
- a && t(r.loaded, r.missing, r.pending, rr);
1591
+ l && t(r.loaded, r.missing, r.pending, rr);
1596
1592
  }), () => {
1597
- a = !1;
1593
+ l = !1;
1598
1594
  };
1599
1595
  }
1600
1596
  const o = /* @__PURE__ */ Object.create(null), i = [];
1601
- let s, l;
1602
- return r.pending.forEach((a) => {
1603
- const { provider: c, prefix: u } = a;
1604
- if (u === l && c === s) return;
1605
- s = c, l = u, i.push(nt(c, u));
1597
+ let s, a;
1598
+ return r.pending.forEach((l) => {
1599
+ const { provider: c, prefix: u } = l;
1600
+ if (u === a && c === s) return;
1601
+ s = c, a = u, i.push(nt(c, u));
1606
1602
  const d = o[c] || (o[c] = /* @__PURE__ */ Object.create(null));
1607
1603
  d[u] || (d[u] = []);
1608
- }), r.pending.forEach((a) => {
1609
- const { provider: c, prefix: u, name: d } = a, h = nt(c, u), g = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
1604
+ }), r.pending.forEach((l) => {
1605
+ const { provider: c, prefix: u, name: d } = l, h = nt(c, u), g = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
1610
1606
  g.has(d) || (g.add(d), o[c][u].push(d));
1611
- }), i.forEach((a) => {
1612
- const c = o[a.provider][a.prefix];
1613
- c.length && Fi(a, c);
1614
- }), t ? Ai(t, r, i) : rr;
1607
+ }), i.forEach((l) => {
1608
+ const c = o[l.provider][l.prefix];
1609
+ c.length && zi(l, c);
1610
+ }), t ? Ei(t, r, i) : rr;
1615
1611
  };
1616
- function Oi(e, t) {
1612
+ function Fi(e, t) {
1617
1613
  const n = { ...e };
1618
1614
  for (const r in t) {
1619
1615
  const o = t[r], i = typeof o;
@@ -1621,9 +1617,9 @@ function Oi(e, t) {
1621
1617
  }
1622
1618
  return n;
1623
1619
  }
1624
- const Pi = /[\s,]+/;
1625
- function ji(e, t) {
1626
- t.split(Pi).forEach((n) => {
1620
+ const Oi = /[\s,]+/;
1621
+ function Pi(e, t) {
1622
+ t.split(Oi).forEach((n) => {
1627
1623
  switch (n.trim()) {
1628
1624
  case "horizontal":
1629
1625
  e.hFlip = !0;
@@ -1634,7 +1630,7 @@ function ji(e, t) {
1634
1630
  }
1635
1631
  });
1636
1632
  }
1637
- function $i(e, t = 0) {
1633
+ function ji(e, t = 0) {
1638
1634
  const n = e.replace(/^-?[0-9.]*/, "");
1639
1635
  function r(o) {
1640
1636
  for (; o < 0; ) o += 4;
@@ -1659,40 +1655,40 @@ function $i(e, t = 0) {
1659
1655
  }
1660
1656
  return t;
1661
1657
  }
1662
- function Bi(e, t) {
1658
+ function $i(e, t) {
1663
1659
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1664
1660
  for (const r in t) n += " " + r + '="' + t[r] + '"';
1665
1661
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1666
1662
  }
1667
- function Hi(e) {
1663
+ function Bi(e) {
1668
1664
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1669
1665
  }
1670
- function Ui(e) {
1671
- return "data:image/svg+xml," + Hi(e);
1666
+ function Hi(e) {
1667
+ return "data:image/svg+xml," + Bi(e);
1672
1668
  }
1673
- function Vi(e) {
1674
- return 'url("' + Ui(e) + '")';
1669
+ function Ui(e) {
1670
+ return 'url("' + Hi(e) + '")';
1675
1671
  }
1676
1672
  let pt;
1677
- function Gi() {
1673
+ function Vi() {
1678
1674
  try {
1679
1675
  pt = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
1680
1676
  } catch {
1681
1677
  pt = null;
1682
1678
  }
1683
1679
  }
1684
- function Wi(e) {
1685
- return pt === void 0 && Gi(), pt ? pt.createHTML(e) : e;
1680
+ function Gi(e) {
1681
+ return pt === void 0 && Vi(), pt ? pt.createHTML(e) : e;
1686
1682
  }
1687
1683
  const Jr = {
1688
1684
  ...Gr,
1689
1685
  inline: !1
1690
- }, _i = {
1686
+ }, Wi = {
1691
1687
  xmlns: "http://www.w3.org/2000/svg",
1692
1688
  xmlnsXlink: "http://www.w3.org/1999/xlink",
1693
1689
  "aria-hidden": !0,
1694
1690
  role: "img"
1695
- }, qi = {
1691
+ }, _i = {
1696
1692
  display: "inline-block"
1697
1693
  }, kn = {
1698
1694
  backgroundColor: "currentColor"
@@ -1712,16 +1708,16 @@ for (const e in sr) {
1712
1708
  for (const n in ir)
1713
1709
  t[e + n] = ir[n];
1714
1710
  }
1715
- const Yi = {
1711
+ const qi = {
1716
1712
  ...Jr,
1717
1713
  inline: !0
1718
1714
  };
1719
- function lr(e) {
1715
+ function ar(e) {
1720
1716
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1721
1717
  }
1722
- const Ki = (e, t, n) => {
1723
- const r = t.inline ? Yi : Jr, o = Oi(r, t), i = t.mode || "svg", s = {}, l = t.style || {}, a = {
1724
- ...i === "svg" ? _i : {}
1718
+ const Yi = (e, t, n) => {
1719
+ const r = t.inline ? qi : Jr, o = Fi(r, t), i = t.mode || "svg", s = {}, a = t.style || {}, l = {
1720
+ ...i === "svg" ? Wi : {}
1725
1721
  };
1726
1722
  if (n) {
1727
1723
  const p = Gt(n, !1, !0);
@@ -1732,7 +1728,7 @@ const Ki = (e, t, n) => {
1732
1728
  ];
1733
1729
  for (const A of E)
1734
1730
  p[A] && m.push("iconify--" + p[A]);
1735
- a.className = m.join(" ");
1731
+ l.className = m.join(" ");
1736
1732
  }
1737
1733
  }
1738
1734
  for (let p in t) {
@@ -1750,11 +1746,11 @@ const Ki = (e, t, n) => {
1750
1746
  break;
1751
1747
  // Forward ref
1752
1748
  case "_ref":
1753
- a.ref = m;
1749
+ l.ref = m;
1754
1750
  break;
1755
1751
  // Merge class names
1756
1752
  case "className":
1757
- a[p] = (a[p] ? a[p] + " " : "") + m;
1753
+ l[p] = (l[p] ? l[p] + " " : "") + m;
1758
1754
  break;
1759
1755
  // Boolean attributes
1760
1756
  case "inline":
@@ -1764,7 +1760,7 @@ const Ki = (e, t, n) => {
1764
1760
  break;
1765
1761
  // Flip as string: 'horizontal,vertical'
1766
1762
  case "flip":
1767
- typeof m == "string" && ji(o, m);
1763
+ typeof m == "string" && Pi(o, m);
1768
1764
  break;
1769
1765
  // Color: copy to style
1770
1766
  case "color":
@@ -1772,46 +1768,46 @@ const Ki = (e, t, n) => {
1772
1768
  break;
1773
1769
  // Rotation as string
1774
1770
  case "rotate":
1775
- typeof m == "string" ? o[p] = $i(m) : typeof m == "number" && (o[p] = m);
1771
+ typeof m == "string" ? o[p] = ji(m) : typeof m == "number" && (o[p] = m);
1776
1772
  break;
1777
1773
  // Remove aria-hidden
1778
1774
  case "ariaHidden":
1779
1775
  case "aria-hidden":
1780
- m !== !0 && m !== "true" && delete a["aria-hidden"];
1776
+ m !== !0 && m !== "true" && delete l["aria-hidden"];
1781
1777
  break;
1782
1778
  // Copy missing property if it does not exist in customisations
1783
1779
  default:
1784
- r[p] === void 0 && (a[p] = m);
1780
+ r[p] === void 0 && (l[p] = m);
1785
1781
  }
1786
1782
  }
1787
1783
  const c = Wr(e, o), u = c.attributes;
1788
1784
  if (o.inline && (s.verticalAlign = "-0.125em"), i === "svg") {
1789
- a.style = {
1785
+ l.style = {
1790
1786
  ...s,
1791
- ...l
1792
- }, Object.assign(a, u);
1787
+ ...a
1788
+ }, Object.assign(l, u);
1793
1789
  let p = 0, m = t.id;
1794
- return typeof m == "string" && (m = m.replace(/-/g, "_")), a.dangerouslySetInnerHTML = {
1795
- __html: Wi(_r(c.body, m ? () => m + "ID" + p++ : "iconifyReact"))
1796
- }, mn("svg", a);
1790
+ return typeof m == "string" && (m = m.replace(/-/g, "_")), l.dangerouslySetInnerHTML = {
1791
+ __html: Gi(_r(c.body, m ? () => m + "ID" + p++ : "iconifyReact"))
1792
+ }, mn("svg", l);
1797
1793
  }
1798
- 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 = $i(d, {
1799
1795
  ...u,
1800
1796
  width: h + "",
1801
1797
  height: g + ""
1802
1798
  });
1803
- return a.style = {
1799
+ return l.style = {
1804
1800
  ...s,
1805
- "--svg": Vi(w),
1806
- width: lr(u.width),
1807
- height: lr(u.height),
1808
- ...qi,
1801
+ "--svg": Ui(w),
1802
+ width: ar(u.width),
1803
+ height: ar(u.height),
1804
+ ..._i,
1809
1805
  ...x ? kn : Qr,
1810
- ...l
1811
- }, mn("span", a);
1806
+ ...a
1807
+ }, mn("span", l);
1812
1808
  };
1813
1809
  Br(!0);
1814
- mi("", Ci);
1810
+ gi("", ki);
1815
1811
  if (typeof document < "u" && typeof window < "u") {
1816
1812
  const e = window;
1817
1813
  if (e.IconifyPreload !== void 0) {
@@ -1864,14 +1860,14 @@ function Zr(e) {
1864
1860
  name: ""
1865
1861
  };
1866
1862
  }
1867
- const [s, l] = V(i(!!e.ssr));
1868
- function a() {
1863
+ const [s, a] = V(i(!!e.ssr));
1864
+ function l() {
1869
1865
  const g = r.callback;
1870
1866
  g && (g(), o({}));
1871
1867
  }
1872
1868
  function c(g) {
1873
1869
  if (JSON.stringify(s) !== JSON.stringify(g))
1874
- return a(), l(g), !0;
1870
+ return l(), a(g), !0;
1875
1871
  }
1876
1872
  function u() {
1877
1873
  var g;
@@ -1895,11 +1891,11 @@ function Zr(e) {
1895
1891
  });
1896
1892
  } else w && ((g = e.onLoad) === null || g === void 0 || g.call(e, x));
1897
1893
  }
1898
- _(() => (n(!0), a), []), _(() => {
1894
+ _(() => (n(!0), l), []), _(() => {
1899
1895
  t && u();
1900
1896
  }, [e.icon, t]);
1901
1897
  const { name: d, data: h } = s;
1902
- return h ? Ki({
1898
+ return h ? Yi({
1903
1899
  ...zn,
1904
1900
  ...h
1905
1901
  }, e, d) : e.children ? e.children : e.fallback ? e.fallback : mn("span", {});
@@ -1913,7 +1909,7 @@ Tn((e, t) => Zr({
1913
1909
  ...e,
1914
1910
  _ref: t
1915
1911
  }));
1916
- const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1912
+ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1917
1913
  __proto__: null,
1918
1914
  Icon: B,
1919
1915
  addAPIProvider: qr,
@@ -1924,7 +1920,7 @@ const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1924
1920
  loadIcons: Xr,
1925
1921
  replaceIDs: _r
1926
1922
  }, Symbol.toStringTag, { value: "Module" }));
1927
- class Ji {
1923
+ class Xi {
1928
1924
  constructor() {
1929
1925
  this.isProtectedFlag = !1, this.timeout = null, this.timeoutDuration = 5e3;
1930
1926
  }
@@ -1960,15 +1956,15 @@ class Ji {
1960
1956
  return this.isProtectedFlag;
1961
1957
  }
1962
1958
  }
1963
- const Qi = new Ji(), Zi = Rr({ prefix: "sc" });
1959
+ const Ji = new Xi(), Qi = Rr({ prefix: "sc" });
1964
1960
  function Le(...e) {
1965
- return Zi(Lr(e));
1961
+ return Qi(Lr(e));
1966
1962
  }
1967
1963
  const eo = z.createContext({ variant: "transparent" });
1968
- function es() {
1964
+ function Zi() {
1969
1965
  return z.useContext(eo);
1970
1966
  }
1971
- const ts = Tr("", {
1967
+ const es = Tr("", {
1972
1968
  variants: {
1973
1969
  variant: {
1974
1970
  transparent: "sc:bg-transparent",
@@ -1981,12 +1977,12 @@ const ts = Tr("", {
1981
1977
  }
1982
1978
  }), to = z.forwardRef(
1983
1979
  ({ className: e, variant: t = "default", asChild: n = !1, children: r, ...o }, i) => {
1984
- const s = n ? Yo : "div";
1985
- return /* @__PURE__ */ f(eo.Provider, { value: { variant: t ?? "default" }, children: /* @__PURE__ */ f(s, { ref: i, className: Le(ts({ variant: t }), e), ...o, children: r }) });
1980
+ const s = n ? Ko : "div";
1981
+ return /* @__PURE__ */ f(eo.Provider, { value: { variant: t ?? "default" }, children: /* @__PURE__ */ f(s, { ref: i, className: Le(es({ variant: t }), e), ...o, children: r }) });
1986
1982
  }
1987
1983
  );
1988
1984
  to.displayName = "Surface";
1989
- const ns = Tr(
1985
+ const ts = Tr(
1990
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",
1991
1987
  {
1992
1988
  variants: {
@@ -2032,8 +2028,8 @@ const ns = Tr(
2032
2028
  }
2033
2029
  }
2034
2030
  ), rt = z.forwardRef(
2035
- ({ className: e, variant: t, size: n, onPress: r, isPending: o, onClick: i, disabled: s, selected: l, children: a, ...c }, u) => {
2036
- const { variant: d } = es(), h = d === "default", g = d === "secondary", x = (p) => {
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 } = Zi(), h = d === "default", g = d === "secondary", x = (p) => {
2037
2033
  r && r(p), i && i(p);
2038
2034
  }, w = {
2039
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),
@@ -2045,7 +2041,7 @@ const ns = Tr(
2045
2041
  "button",
2046
2042
  {
2047
2043
  className: Le(
2048
- ns({ variant: t, size: n }),
2044
+ ts({ variant: t, size: n }),
2049
2045
  w.secondary,
2050
2046
  w.field,
2051
2047
  w.ghost,
@@ -2055,9 +2051,9 @@ const ns = Tr(
2055
2051
  ref: u,
2056
2052
  onClick: x,
2057
2053
  disabled: s || o,
2058
- "data-selected": l,
2054
+ "data-selected": a,
2059
2055
  ...c,
2060
- children: a
2056
+ children: l
2061
2057
  }
2062
2058
  );
2063
2059
  }
@@ -2076,27 +2072,27 @@ function ro({
2076
2072
  onOpenChange: n,
2077
2073
  children: r
2078
2074
  }) {
2079
- const [o, i] = z.useState(t), s = e !== void 0, l = s ? e : o, a = z.useCallback(
2075
+ const [o, i] = z.useState(t), s = e !== void 0, a = s ? e : o, l = z.useCallback(
2080
2076
  (d) => {
2081
2077
  s || i(d), n == null || n(d);
2082
2078
  },
2083
2079
  [s, n]
2084
2080
  ), c = 10, u = z.useRef(!1);
2085
2081
  return z.useLayoutEffect(() => {
2086
- if (l) {
2082
+ if (a) {
2087
2083
  u.current = !0, document.documentElement.setAttribute("data-drawer-open", "true");
2088
2084
  const d = setTimeout(() => {
2089
2085
  window.dispatchEvent(new CustomEvent("drawer-open"));
2090
2086
  }, c);
2091
2087
  return () => clearTimeout(d);
2092
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"))));
2093
- }, [l]), /* @__PURE__ */ f(no.Provider, { value: { open: l, onOpenChange: a }, children: r });
2089
+ }, [a]), /* @__PURE__ */ f(no.Provider, { value: { open: a, onOpenChange: l }, children: r });
2094
2090
  }
2095
2091
  ro.displayName = "Drawer";
2096
- const rs = z.forwardRef(
2092
+ const ns = z.forwardRef(
2097
2093
  ({ asChild: e, onClick: t, children: n, ...r }, o) => {
2098
- const { onOpenChange: i } = jn(), s = (l) => {
2099
- t == null || t(l), i(!0);
2094
+ const { onOpenChange: i } = jn(), s = (a) => {
2095
+ t == null || t(a), i(!0);
2100
2096
  };
2101
2097
  return e && z.isValidElement(n) ? z.cloneElement(
2102
2098
  n,
@@ -2106,11 +2102,11 @@ const rs = z.forwardRef(
2106
2102
  ) : /* @__PURE__ */ f("button", { ref: o, onClick: s, ...r, children: n });
2107
2103
  }
2108
2104
  );
2109
- rs.displayName = "DrawerTrigger";
2110
- const os = z.forwardRef(
2105
+ ns.displayName = "DrawerTrigger";
2106
+ const rs = z.forwardRef(
2111
2107
  ({ asChild: e, onClick: t, children: n, ...r }, o) => {
2112
- const { onOpenChange: i } = jn(), s = (l) => {
2113
- t == null || t(l), i(!1);
2108
+ const { onOpenChange: i } = jn(), s = (a) => {
2109
+ t == null || t(a), i(!1);
2114
2110
  };
2115
2111
  return e && z.isValidElement(n) ? z.cloneElement(
2116
2112
  n,
@@ -2120,7 +2116,7 @@ const os = z.forwardRef(
2120
2116
  ) : /* @__PURE__ */ f("button", { ref: o, onClick: s, ...r, children: n });
2121
2117
  }
2122
2118
  );
2123
- os.displayName = "DrawerClose";
2119
+ rs.displayName = "DrawerClose";
2124
2120
  const oo = z.forwardRef(
2125
2121
  ({
2126
2122
  className: e,
@@ -2130,8 +2126,8 @@ const oo = z.forwardRef(
2130
2126
  maxHeight: o = "80dvh",
2131
2127
  width: i,
2132
2128
  maxWidth: s = "400px",
2133
- showOverlay: l = !0,
2134
- hideHandle: a = !1,
2129
+ showOverlay: a = !0,
2130
+ hideHandle: l = !1,
2135
2131
  overlayOpacity: c = 0.3,
2136
2132
  lockBodyScroll: u = !0,
2137
2133
  useDialogRole: d = !0,
@@ -2143,7 +2139,7 @@ const oo = z.forwardRef(
2143
2139
  safeAreaPadding: m = !1,
2144
2140
  ...E
2145
2141
  }, A) => {
2146
- const { open: M, onOpenChange: T } = jn(), [y, S] = z.useState(!1), [v, L] = z.useState(0), [b, D] = z.useState(!1), [R, O] = z.useState(!1), [X, pe] = z.useState(!1), [J, re] = z.useState(!1), Y = z.useRef(null), ee = z.useRef(null), ge = z.useRef(0), we = z.useRef(0), [oe, ue] = z.useState(!1), [ze, Se] = z.useState(!1), ae = z.useRef(!1), Fe = z.useRef(!0), Q = z.useRef(null), se = 120;
2142
+ const { open: M, onOpenChange: T } = jn(), [y, S] = z.useState(!1), [v, L] = z.useState(0), [b, D] = z.useState(!1), [R, O] = z.useState(!1), [X, pe] = z.useState(!1), [J, re] = z.useState(!1), Y = z.useRef(null), ee = z.useRef(null), ge = z.useRef(0), we = z.useRef(0), [oe, ue] = z.useState(!1), [ze, Se] = z.useState(!1), le = z.useRef(!1), Fe = z.useRef(!0), Q = z.useRef(null), se = 120;
2147
2143
  z.useEffect(() => {
2148
2144
  if (M) {
2149
2145
  const W = setTimeout(() => re(!0), se);
@@ -2168,17 +2164,17 @@ const oo = z.forwardRef(
2168
2164
  u && (document.body.style.overflow = "");
2169
2165
  }), [M, u]), z.useLayoutEffect(() => {
2170
2166
  if (!M) {
2171
- ae.current = !1, Fe.current = !0, ue(!1);
2167
+ le.current = !1, Fe.current = !0, ue(!1);
2172
2168
  return;
2173
2169
  }
2174
2170
  const W = setTimeout(() => {
2175
- ae.current = !0, Fe.current = !1;
2171
+ le.current = !0, Fe.current = !1;
2176
2172
  }, 200), fe = () => {
2177
- !ae.current || Fe.current || (Q.current && clearTimeout(Q.current), Se(!0), ue(!0), Q.current = setTimeout(() => {
2173
+ !le.current || Fe.current || (Q.current && clearTimeout(Q.current), Se(!0), ue(!0), Q.current = setTimeout(() => {
2178
2174
  Se(!1), Q.current = null;
2179
2175
  }, 60));
2180
2176
  }, ye = () => {
2181
- ae.current && ue(!1);
2177
+ le.current && ue(!1);
2182
2178
  };
2183
2179
  return window.addEventListener("drawer-open", fe), window.addEventListener("drawer-close", ye), () => {
2184
2180
  clearTimeout(W), Q.current && (clearTimeout(Q.current), Q.current = null), window.removeEventListener("drawer-open", fe), window.removeEventListener("drawer-close", ye);
@@ -2186,8 +2182,8 @@ const oo = z.forwardRef(
2186
2182
  }, [M]);
2187
2183
  const xe = oe ? 10 : 0, Ce = 50, Je = 10, ce = z.useRef(null), k = z.useCallback(
2188
2184
  (W, fe) => {
2189
- const ye = window.scrollY, Mt = W - ye, Qt = performance.now(), Lt = (lt) => {
2190
- const Rt = lt - Qt, Tt = Math.min(Rt / fe, 1), It = 1 - Math.pow(1 - Tt, 3);
2185
+ const ye = window.scrollY, Mt = W - ye, Qt = performance.now(), Lt = (at) => {
2186
+ const Rt = at - Qt, Tt = Math.min(Rt / fe, 1), It = 1 - Math.pow(1 - Tt, 3);
2191
2187
  window.scrollTo(0, ye + Mt * It), Tt < 1 && requestAnimationFrame(Lt);
2192
2188
  };
2193
2189
  requestAnimationFrame(Lt);
@@ -2212,7 +2208,7 @@ const oo = z.forwardRef(
2212
2208
  ce.current = null, document.body.style.overflow = "", window.scrollTo(0, W);
2213
2209
  }
2214
2210
  }, [M, b]);
2215
- const I = 300, F = 200, K = 250, P = 150, Z = K + P, le = 50, me = z.useCallback(() => {
2211
+ const I = 300, F = 200, K = 250, P = 150, Z = K + P, ae = 50, me = z.useCallback(() => {
2216
2212
  setTimeout(() => {
2217
2213
  D(!0), setTimeout(() => {
2218
2214
  document.body.style.overflow = "";
@@ -2225,7 +2221,7 @@ const oo = z.forwardRef(
2225
2221
  }, K), setTimeout(() => {
2226
2222
  D(!1), O(!1), T(!1);
2227
2223
  }, Z);
2228
- }, le);
2224
+ }, ae);
2229
2225
  }, [T]);
2230
2226
  z.useEffect(() => {
2231
2227
  const W = (fe) => {
@@ -2267,7 +2263,7 @@ const oo = z.forwardRef(
2267
2263
  },
2268
2264
  ...d ? { role: "dialog", "aria-modal": !0 } : {},
2269
2265
  children: [
2270
- l && /* @__PURE__ */ f(
2266
+ a && /* @__PURE__ */ f(
2271
2267
  "div",
2272
2268
  {
2273
2269
  onClick: me,
@@ -2355,10 +2351,10 @@ const oo = z.forwardRef(
2355
2351
  onTouchEnd: Te,
2356
2352
  className: Le(
2357
2353
  "sc:cursor-grab sc:active:cursor-grabbing sc:flex-shrink-0",
2358
- a && "sc:absolute sc:top-0 sc:left-0 sc:right-0 sc:h-8 sc:z-10"
2354
+ l && "sc:absolute sc:top-0 sc:left-0 sc:right-0 sc:h-8 sc:z-10"
2359
2355
  ),
2360
2356
  style: { touchAction: "none" },
2361
- children: !a && /* @__PURE__ */ f("div", { className: "sc:flex sc:justify-center sc:pt-3 sc:pb-2", children: /* @__PURE__ */ f(
2357
+ children: !l && /* @__PURE__ */ f("div", { className: "sc:flex sc:justify-center sc:pt-3 sc:pb-2", children: /* @__PURE__ */ f(
2362
2358
  "div",
2363
2359
  {
2364
2360
  className: "sc:h-1 sc:w-10 sc:rounded-full sc:bg-muted-foreground/30",
@@ -2436,7 +2432,7 @@ const so = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
2436
2432
  }
2437
2433
  ));
2438
2434
  so.displayName = "DrawerDescription";
2439
- const is = tt.Provider, ss = tt.Root, Wt = tt.Trigger, Ct = z.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(tt.Portal, { children: /* @__PURE__ */ f(
2435
+ const os = tt.Provider, is = tt.Root, Wt = tt.Trigger, Ct = z.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(tt.Portal, { children: /* @__PURE__ */ f(
2440
2436
  tt.Content,
2441
2437
  {
2442
2438
  ref: r,
@@ -2451,14 +2447,14 @@ const is = tt.Provider, ss = tt.Root, Wt = tt.Trigger, Ct = z.forwardRef(({ clas
2451
2447
  }
2452
2448
  ) }));
2453
2449
  Ct.displayName = tt.Content.displayName;
2454
- const ls = ({ children: e, delayDuration: t, delay: n, ...r }) => /* @__PURE__ */ f(is, { children: /* @__PURE__ */ f(ss, { delayDuration: n ?? t ?? 200, ...r, children: e }) }), $n = Object.assign(ls, {
2450
+ const ss = ({ children: e, delayDuration: t, delay: n, ...r }) => /* @__PURE__ */ f(os, { children: /* @__PURE__ */ f(is, { delayDuration: n ?? t ?? 200, ...r, children: e }) }), $n = Object.assign(ss, {
2455
2451
  Trigger: Wt,
2456
2452
  Content: Ct
2457
2453
  }), as = Rr({ prefix: "sc" });
2458
2454
  function Cn(...e) {
2459
2455
  return as(Lr(e));
2460
2456
  }
2461
- const cs = {
2457
+ const ls = {
2462
2458
  "gravity-ui": 1.2,
2463
2459
  // Thinner strokes need +20% (20px → 24px)
2464
2460
  lucide: 1,
@@ -2476,11 +2472,11 @@ const cs = {
2476
2472
  // Filled variants are heavy
2477
2473
  "simple-icons": 0.95,
2478
2474
  "eos-icons": 1
2479
- }, ds = 1, us = {
2475
+ }, cs = 1, ds = {
2480
2476
  "gravity-ui:arrow-rotate-left": { x: 4, y: 4 },
2481
2477
  "gravity-ui:arrow-rotate-right": { x: -4, y: 4 },
2482
2478
  "gravity-ui:sparkles": { x: 2, y: -2 }
2483
- }, fs = {
2479
+ }, us = {
2484
2480
  xs: 12,
2485
2481
  sm: 16,
2486
2482
  md: 20,
@@ -2488,40 +2484,40 @@ const cs = {
2488
2484
  xl: 32,
2489
2485
  toolbar: { mobile: 24, desktop: 20 }
2490
2486
  };
2491
- function hs(e) {
2487
+ function fs(e) {
2492
2488
  const t = e.indexOf(":");
2493
2489
  return t === -1 ? "" : e.substring(0, t);
2494
2490
  }
2495
- function ps(e) {
2496
- return cs[e] ?? ds;
2491
+ function hs(e) {
2492
+ return ls[e] ?? cs;
2497
2493
  }
2498
- function gs(e) {
2499
- return us[e] ?? null;
2494
+ function ps(e) {
2495
+ return ds[e] ?? null;
2500
2496
  }
2501
- function an(e, t) {
2502
- const n = ps(t);
2497
+ function ln(e, t) {
2498
+ const n = hs(t);
2503
2499
  return Math.round(e * n);
2504
2500
  }
2505
- const lo = ({
2501
+ const ao = ({
2506
2502
  icon: e,
2507
2503
  size: t = "md",
2508
2504
  className: n
2509
2505
  }) => {
2510
- const r = hs(e), o = fs[t], i = gs(e);
2506
+ const r = fs(e), o = us[t], i = ps(e);
2511
2507
  if (typeof o == "object") {
2512
- const a = an(o.mobile, r), c = an(o.desktop, r), u = i ? {
2513
- x: i.x * a / 20,
2514
- y: i.y * a / 20
2508
+ const l = ln(o.mobile, r), c = ln(o.desktop, r), u = i ? {
2509
+ x: i.x * l / 20,
2510
+ y: i.y * l / 20
2515
2511
  } : null;
2516
2512
  return /* @__PURE__ */ f(
2517
2513
  "span",
2518
2514
  {
2519
2515
  className: Cn("sc-normalized-icon-responsive sc:inline-flex", n),
2520
2516
  style: {
2521
- "--icon-size-mobile": `${a}px`,
2517
+ "--icon-size-mobile": `${l}px`,
2522
2518
  "--icon-size-desktop": `${c}px`,
2523
- width: `${a}px`,
2524
- height: `${a}px`
2519
+ width: `${l}px`,
2520
+ height: `${l}px`
2525
2521
  },
2526
2522
  children: /* @__PURE__ */ f(
2527
2523
  B,
@@ -2535,7 +2531,7 @@ const lo = ({
2535
2531
  }
2536
2532
  );
2537
2533
  }
2538
- const s = an(o, r), l = i ? {
2534
+ const s = ln(o, r), a = i ? {
2539
2535
  x: i.x * s / 20,
2540
2536
  y: i.y * s / 20
2541
2537
  } : null;
@@ -2550,13 +2546,13 @@ const lo = ({
2550
2546
  icon: e,
2551
2547
  width: "100%",
2552
2548
  height: "100%",
2553
- style: l ? { transform: `translate(${l.x}px, ${l.y}px)` } : void 0
2549
+ style: a ? { transform: `translate(${a.x}px, ${a.y}px)` } : void 0
2554
2550
  }
2555
2551
  )
2556
2552
  }
2557
2553
  );
2558
2554
  };
2559
- lo.displayName = "NormalizedIcon";
2555
+ ao.displayName = "NormalizedIcon";
2560
2556
  const Sn = te.forwardRef(
2561
2557
  ({
2562
2558
  icon: e,
@@ -2566,8 +2562,8 @@ const Sn = te.forwardRef(
2566
2562
  tooltipDelay: o = 300,
2567
2563
  tooltipDisabled: i = !1,
2568
2564
  "aria-label": s,
2569
- disabled: l = !1,
2570
- className: a,
2565
+ disabled: a = !1,
2566
+ className: l,
2571
2567
  onMouseLeave: c
2572
2568
  }, u) => {
2573
2569
  const d = /* @__PURE__ */ f(
@@ -2577,13 +2573,13 @@ const Sn = te.forwardRef(
2577
2573
  variant: "ghost",
2578
2574
  size: "toolbar",
2579
2575
  onClick: t,
2580
- disabled: l,
2576
+ disabled: a,
2581
2577
  "aria-label": s || r,
2582
2578
  "aria-pressed": n,
2583
2579
  "data-active": n,
2584
2580
  onMouseLeave: c,
2585
- className: Cn(a),
2586
- children: typeof e == "string" ? /* @__PURE__ */ f(lo, { icon: e, size: "toolbar" }) : e
2581
+ className: Cn(l),
2582
+ children: typeof e == "string" ? /* @__PURE__ */ f(ao, { icon: e, size: "toolbar" }) : e
2587
2583
  }
2588
2584
  );
2589
2585
  return !r || i ? d : /* @__PURE__ */ j($n, { delay: o, children: [
@@ -2651,14 +2647,14 @@ const U = {
2651
2647
  alertCircle: "lucide:alert-circle",
2652
2648
  // Special purpose
2653
2649
  wand: "lucide:wand-2"
2654
- }, cn = ot("useArtboards"), ms = () => {
2650
+ }, cn = ot("useArtboards"), gs = () => {
2655
2651
  const {
2656
2652
  artboards: e,
2657
2653
  artboardManager: t,
2658
2654
  refreshArtboards: n,
2659
2655
  setSelectedId: r,
2660
2656
  setMultiSelection: o
2661
- } = In(), i = t.getActiveArtboardId(), s = t.getActiveArtboard(), l = q(() => e.map((p) => {
2657
+ } = In(), i = t.getActiveArtboardId(), s = t.getActiveArtboard(), a = q(() => e.map((p) => {
2662
2658
  const E = t.getElementsOnArtboard(p.id).length;
2663
2659
  return {
2664
2660
  id: p.id,
@@ -2672,7 +2668,7 @@ const U = {
2672
2668
  isActive: p.id === i,
2673
2669
  elementCount: E
2674
2670
  };
2675
- }), [e, t, i]), a = q(() => {
2671
+ }), [e, t, i]), l = q(() => {
2676
2672
  if (!s) return null;
2677
2673
  const m = t.getElementsOnArtboard(s.id).length;
2678
2674
  return {
@@ -2730,10 +2726,10 @@ const U = {
2730
2726
  }, [e, t, n]);
2731
2727
  return {
2732
2728
  artboards: e,
2733
- artboardsInfo: l,
2729
+ artboardsInfo: a,
2734
2730
  activeArtboard: s,
2735
2731
  activeArtboardId: i,
2736
- activeArtboardInfo: a,
2732
+ activeArtboardInfo: l,
2737
2733
  createArtboard: c,
2738
2734
  deleteArtboard: u,
2739
2735
  duplicateArtboard: d,
@@ -2765,11 +2761,11 @@ function Hn(e) {
2765
2761
  function St(e) {
2766
2762
  return it(e) ? !1 : e instanceof ke(e).HTMLElement;
2767
2763
  }
2768
- function ao(e) {
2764
+ function lo(e) {
2769
2765
  return e instanceof ke(e).SVGElement;
2770
2766
  }
2771
2767
  function st(e) {
2772
- return e ? it(e) ? e.document : Bn(e) ? Hn(e) ? e : St(e) || ao(e) ? e.ownerDocument : document : document : document;
2768
+ return e ? it(e) ? e.document : Bn(e) ? Hn(e) ? e : St(e) || lo(e) ? e.ownerDocument : document : document : document;
2773
2769
  }
2774
2770
  const Ue = _t ? Ar : _;
2775
2771
  function qt(e) {
@@ -2782,7 +2778,7 @@ function qt(e) {
2782
2778
  return t.current == null ? void 0 : t.current(...r);
2783
2779
  }, []);
2784
2780
  }
2785
- function vs() {
2781
+ function ms() {
2786
2782
  const e = G(null), t = N((r, o) => {
2787
2783
  e.current = setInterval(r, o);
2788
2784
  }, []), n = N(() => {
@@ -2838,10 +2834,10 @@ function co(e) {
2838
2834
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
2839
2835
  r[o - 1] = arguments[o];
2840
2836
  return r.reduce((i, s) => {
2841
- const l = Object.entries(s);
2842
- for (const [a, c] of l) {
2843
- const u = i[a];
2844
- u != null && (i[a] = u + e * c);
2837
+ const a = Object.entries(s);
2838
+ for (const [l, c] of a) {
2839
+ const u = i[l];
2840
+ u != null && (i[l] = u + e * c);
2845
2841
  }
2846
2842
  return i;
2847
2843
  }, {
@@ -2850,7 +2846,7 @@ function co(e) {
2850
2846
  };
2851
2847
  }
2852
2848
  const et = /* @__PURE__ */ co(1), wt = /* @__PURE__ */ co(-1);
2853
- function ys(e) {
2849
+ function vs(e) {
2854
2850
  return "clientX" in e && "clientY" in e;
2855
2851
  }
2856
2852
  function Un(e) {
@@ -2861,7 +2857,7 @@ function Un(e) {
2861
2857
  } = ke(e.target);
2862
2858
  return t && e instanceof t;
2863
2859
  }
2864
- function bs(e) {
2860
+ function ys(e) {
2865
2861
  if (!e)
2866
2862
  return !1;
2867
2863
  const {
@@ -2870,7 +2866,7 @@ function bs(e) {
2870
2866
  return t && e instanceof t;
2871
2867
  }
2872
2868
  function Bt(e) {
2873
- if (bs(e)) {
2869
+ if (ys(e)) {
2874
2870
  if (e.touches && e.touches.length) {
2875
2871
  const {
2876
2872
  clientX: t,
@@ -2891,7 +2887,7 @@ function Bt(e) {
2891
2887
  };
2892
2888
  }
2893
2889
  }
2894
- return ys(e) ? {
2890
+ return vs(e) ? {
2895
2891
  x: e.clientX,
2896
2892
  y: e.clientY
2897
2893
  } : null;
@@ -2935,24 +2931,24 @@ const xt = /* @__PURE__ */ Object.freeze({
2935
2931
  return t + " " + n + "ms " + r;
2936
2932
  }
2937
2933
  }
2938
- }), ar = "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(ar) ? e : e.querySelector(ar);
2934
+ }), lr = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
2935
+ function bs(e) {
2936
+ return e.matches(lr) ? e : e.querySelector(lr);
2941
2937
  }
2942
- const xs = {
2938
+ const ws = {
2943
2939
  display: "none"
2944
2940
  };
2945
- function ks(e) {
2941
+ function xs(e) {
2946
2942
  let {
2947
2943
  id: t,
2948
2944
  value: n
2949
2945
  } = e;
2950
2946
  return te.createElement("div", {
2951
2947
  id: t,
2952
- style: xs
2948
+ style: ws
2953
2949
  }, n);
2954
2950
  }
2955
- function Cs(e) {
2951
+ function ks(e) {
2956
2952
  let {
2957
2953
  id: t,
2958
2954
  announcement: n,
@@ -2980,7 +2976,7 @@ function Cs(e) {
2980
2976
  "aria-atomic": !0
2981
2977
  }, n);
2982
2978
  }
2983
- function Ss() {
2979
+ function Cs() {
2984
2980
  const [e, t] = V("");
2985
2981
  return {
2986
2982
  announce: N((r) => {
@@ -2990,7 +2986,7 @@ function Ss() {
2990
2986
  };
2991
2987
  }
2992
2988
  const uo = /* @__PURE__ */ Xe(null);
2993
- function Es(e) {
2989
+ function Ss(e) {
2994
2990
  const t = He(uo);
2995
2991
  _(() => {
2996
2992
  if (!t)
@@ -2998,7 +2994,7 @@ function Es(e) {
2998
2994
  return t(e);
2999
2995
  }, [e, t]);
3000
2996
  }
3001
- function As() {
2997
+ function Es() {
3002
2998
  const [e] = V(() => /* @__PURE__ */ new Set()), t = N((r) => (e.add(r), () => e.delete(r)), [e]);
3003
2999
  return [N((r) => {
3004
3000
  let {
@@ -3006,18 +3002,18 @@ function As() {
3006
3002
  event: i
3007
3003
  } = r;
3008
3004
  e.forEach((s) => {
3009
- var l;
3010
- return (l = s[o]) == null ? void 0 : l.call(s, i);
3005
+ var a;
3006
+ return (a = s[o]) == null ? void 0 : a.call(s, i);
3011
3007
  });
3012
3008
  }, [e]), t];
3013
3009
  }
3014
- const Ds = {
3010
+ const As = {
3015
3011
  draggable: `
3016
3012
  To pick up a draggable item, press the space bar.
3017
3013
  While dragging, use the arrow keys to move the item.
3018
3014
  Press space again to drop the item in its new position, or press escape to cancel.
3019
3015
  `
3020
- }, Ms = {
3016
+ }, Ds = {
3021
3017
  onDragStart(e) {
3022
3018
  let {
3023
3019
  active: t
@@ -3045,20 +3041,20 @@ const Ds = {
3045
3041
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
3046
3042
  }
3047
3043
  };
3048
- function Ls(e) {
3044
+ function Ms(e) {
3049
3045
  let {
3050
- announcements: t = Ms,
3046
+ announcements: t = Ds,
3051
3047
  container: n,
3052
3048
  hiddenTextDescribedById: r,
3053
- screenReaderInstructions: o = Ds
3049
+ screenReaderInstructions: o = As
3054
3050
  } = e;
3055
3051
  const {
3056
3052
  announce: i,
3057
3053
  announcement: s
3058
- } = Ss(), l = Yt("DndLiveRegion"), [a, c] = V(!1);
3054
+ } = Cs(), a = Yt("DndLiveRegion"), [l, c] = V(!1);
3059
3055
  if (_(() => {
3060
3056
  c(!0);
3061
- }, []), Es(q(() => ({
3057
+ }, []), Ss(q(() => ({
3062
3058
  onDragStart(d) {
3063
3059
  let {
3064
3060
  active: h
@@ -3107,13 +3103,13 @@ function Ls(e) {
3107
3103
  over: g
3108
3104
  }));
3109
3105
  }
3110
- }), [i, t])), !a)
3106
+ }), [i, t])), !l)
3111
3107
  return null;
3112
- const u = te.createElement(te.Fragment, null, te.createElement(ks, {
3108
+ const u = te.createElement(te.Fragment, null, te.createElement(xs, {
3113
3109
  id: r,
3114
3110
  value: o.draggable
3115
- }), te.createElement(Cs, {
3116
- id: l,
3111
+ }), te.createElement(ks, {
3112
+ id: a,
3117
3113
  announcement: s
3118
3114
  }));
3119
3115
  return n ? Nn(u, n) : u;
@@ -3134,7 +3130,7 @@ function cr(e, t) {
3134
3130
  [e, t]
3135
3131
  );
3136
3132
  }
3137
- function Rs() {
3133
+ function Ls() {
3138
3134
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
3139
3135
  t[n] = arguments[n];
3140
3136
  return q(
@@ -3150,7 +3146,7 @@ const Ne = /* @__PURE__ */ Object.freeze({
3150
3146
  function Vn(e, t) {
3151
3147
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
3152
3148
  }
3153
- function Ts(e, t) {
3149
+ function Rs(e, t) {
3154
3150
  const n = Bt(e);
3155
3151
  if (!n)
3156
3152
  return "0 0";
@@ -3172,7 +3168,7 @@ function Gn(e, t) {
3172
3168
  } = t;
3173
3169
  return n - r;
3174
3170
  }
3175
- function Is(e, t) {
3171
+ function Ts(e, t) {
3176
3172
  let {
3177
3173
  data: {
3178
3174
  value: n
@@ -3217,7 +3213,7 @@ function dr(e, t, n) {
3217
3213
  y: n + e.height * 0.5
3218
3214
  };
3219
3215
  }
3220
- const Ns = (e) => {
3216
+ const Is = (e) => {
3221
3217
  let {
3222
3218
  collisionRect: t,
3223
3219
  droppableRects: n,
@@ -3226,12 +3222,12 @@ const Ns = (e) => {
3226
3222
  const o = dr(t, t.left, t.top), i = [];
3227
3223
  for (const s of r) {
3228
3224
  const {
3229
- id: l
3230
- } = s, a = n.get(l);
3231
- if (a) {
3232
- const c = Vn(dr(a), o);
3225
+ id: a
3226
+ } = s, l = n.get(a);
3227
+ if (l) {
3228
+ const c = Vn(dr(l), o);
3233
3229
  i.push({
3234
- id: l,
3230
+ id: a,
3235
3231
  data: {
3236
3232
  droppableContainer: s,
3237
3233
  value: c
@@ -3240,7 +3236,7 @@ const Ns = (e) => {
3240
3236
  }
3241
3237
  }
3242
3238
  return i.sort(Gn);
3243
- }, zs = (e) => {
3239
+ }, Ns = (e) => {
3244
3240
  let {
3245
3241
  collisionRect: t,
3246
3242
  droppableRects: n,
@@ -3249,12 +3245,12 @@ const Ns = (e) => {
3249
3245
  const o = En(t), i = [];
3250
3246
  for (const s of r) {
3251
3247
  const {
3252
- id: l
3253
- } = s, a = n.get(l);
3254
- if (a) {
3255
- const c = En(a), u = o.reduce((h, g, x) => h + Vn(c[x], g), 0), d = Number((u / 4).toFixed(4));
3248
+ id: a
3249
+ } = s, l = n.get(a);
3250
+ if (l) {
3251
+ const c = En(l), u = o.reduce((h, g, x) => h + Vn(c[x], g), 0), d = Number((u / 4).toFixed(4));
3256
3252
  i.push({
3257
- id: l,
3253
+ id: a,
3258
3254
  data: {
3259
3255
  droppableContainer: s,
3260
3256
  value: d
@@ -3264,15 +3260,15 @@ const Ns = (e) => {
3264
3260
  }
3265
3261
  return i.sort(Gn);
3266
3262
  };
3267
- function Fs(e, t) {
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, l = i - n;
3263
+ function zs(e, t) {
3264
+ 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
3265
  if (r < o && n < i) {
3270
- const a = t.width * t.height, c = e.width * e.height, u = s * l, d = u / (a + c - u);
3266
+ const l = t.width * t.height, c = e.width * e.height, u = s * a, d = u / (l + c - u);
3271
3267
  return Number(d.toFixed(4));
3272
3268
  }
3273
3269
  return 0;
3274
3270
  }
3275
- const Os = (e) => {
3271
+ const Fs = (e) => {
3276
3272
  let {
3277
3273
  collisionRect: t,
3278
3274
  droppableRects: n,
@@ -3282,21 +3278,21 @@ const Os = (e) => {
3282
3278
  for (const i of r) {
3283
3279
  const {
3284
3280
  id: s
3285
- } = i, l = n.get(s);
3286
- if (l) {
3287
- const a = Fs(l, t);
3288
- a > 0 && o.push({
3281
+ } = i, a = n.get(s);
3282
+ if (a) {
3283
+ const l = zs(a, t);
3284
+ l > 0 && o.push({
3289
3285
  id: s,
3290
3286
  data: {
3291
3287
  droppableContainer: i,
3292
- value: a
3288
+ value: l
3293
3289
  }
3294
3290
  });
3295
3291
  }
3296
3292
  }
3297
- return o.sort(Is);
3293
+ return o.sort(Ts);
3298
3294
  };
3299
- function Ps(e, t) {
3295
+ function Os(e, t) {
3300
3296
  const {
3301
3297
  top: n,
3302
3298
  left: r,
@@ -3305,7 +3301,7 @@ function Ps(e, t) {
3305
3301
  } = t;
3306
3302
  return n <= e.y && e.y <= o && r <= e.x && e.x <= i;
3307
3303
  }
3308
- const js = (e) => {
3304
+ const Ps = (e) => {
3309
3305
  let {
3310
3306
  droppableContainers: t,
3311
3307
  droppableRects: n,
@@ -3317,9 +3313,9 @@ const js = (e) => {
3317
3313
  for (const i of t) {
3318
3314
  const {
3319
3315
  id: s
3320
- } = i, l = n.get(s);
3321
- if (l && Ps(r, l)) {
3322
- const c = En(l).reduce((d, h) => d + Vn(r, h), 0), u = Number((c / 4).toFixed(4));
3316
+ } = i, a = n.get(s);
3317
+ if (a && Os(r, a)) {
3318
+ const c = En(a).reduce((d, h) => d + Vn(r, h), 0), u = Number((c / 4).toFixed(4));
3323
3319
  o.push({
3324
3320
  id: s,
3325
3321
  data: {
@@ -3331,7 +3327,7 @@ const js = (e) => {
3331
3327
  }
3332
3328
  return o.sort(Gn);
3333
3329
  };
3334
- function $s(e, t, n) {
3330
+ function js(e, t, n) {
3335
3331
  return {
3336
3332
  ...e,
3337
3333
  scaleX: t && n ? t.width / n.width : 1,
@@ -3344,22 +3340,22 @@ function ho(e, t) {
3344
3340
  y: e.top - t.top
3345
3341
  } : Ne;
3346
3342
  }
3347
- function Bs(e) {
3343
+ function $s(e) {
3348
3344
  return function(n) {
3349
3345
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
3350
3346
  o[i - 1] = arguments[i];
3351
- return o.reduce((s, l) => ({
3347
+ return o.reduce((s, a) => ({
3352
3348
  ...s,
3353
- top: s.top + e * l.y,
3354
- bottom: s.bottom + e * l.y,
3355
- left: s.left + e * l.x,
3356
- right: s.right + e * l.x
3349
+ top: s.top + e * a.y,
3350
+ bottom: s.bottom + e * a.y,
3351
+ left: s.left + e * a.x,
3352
+ right: s.right + e * a.x
3357
3353
  }), {
3358
3354
  ...n
3359
3355
  });
3360
3356
  };
3361
3357
  }
3362
- const Hs = /* @__PURE__ */ Bs(1);
3358
+ const Bs = /* @__PURE__ */ $s(1);
3363
3359
  function po(e) {
3364
3360
  if (e.startsWith("matrix3d(")) {
3365
3361
  const t = e.slice(9, -1).split(/, /);
@@ -3380,7 +3376,7 @@ function po(e) {
3380
3376
  }
3381
3377
  return null;
3382
3378
  }
3383
- function Us(e, t, n) {
3379
+ function Hs(e, t, n) {
3384
3380
  const r = po(t);
3385
3381
  if (!r)
3386
3382
  return e;
@@ -3388,45 +3384,45 @@ function Us(e, t, n) {
3388
3384
  scaleX: o,
3389
3385
  scaleY: i,
3390
3386
  x: s,
3391
- y: l
3392
- } = r, a = e.left - s - (1 - o) * parseFloat(n), c = e.top - l - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = o ? e.width / o : e.width, d = i ? e.height / i : e.height;
3387
+ y: a
3388
+ } = r, l = e.left - s - (1 - o) * parseFloat(n), c = e.top - a - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = o ? e.width / o : e.width, d = i ? e.height / i : e.height;
3393
3389
  return {
3394
3390
  width: u,
3395
3391
  height: d,
3396
3392
  top: c,
3397
- right: a + u,
3393
+ right: l + u,
3398
3394
  bottom: c + d,
3399
- left: a
3395
+ left: l
3400
3396
  };
3401
3397
  }
3402
- const Vs = {
3398
+ const Us = {
3403
3399
  ignoreTransform: !1
3404
3400
  };
3405
3401
  function At(e, t) {
3406
- t === void 0 && (t = Vs);
3402
+ t === void 0 && (t = Us);
3407
3403
  let n = e.getBoundingClientRect();
3408
3404
  if (t.ignoreTransform) {
3409
3405
  const {
3410
3406
  transform: c,
3411
3407
  transformOrigin: u
3412
3408
  } = ke(e).getComputedStyle(e);
3413
- c && (n = Us(n, c, u));
3409
+ c && (n = Hs(n, c, u));
3414
3410
  }
3415
3411
  const {
3416
3412
  top: r,
3417
3413
  left: o,
3418
3414
  width: i,
3419
3415
  height: s,
3420
- bottom: l,
3421
- right: a
3416
+ bottom: a,
3417
+ right: l
3422
3418
  } = n;
3423
3419
  return {
3424
3420
  top: r,
3425
3421
  left: o,
3426
3422
  width: i,
3427
3423
  height: s,
3428
- bottom: l,
3429
- right: a
3424
+ bottom: a,
3425
+ right: l
3430
3426
  };
3431
3427
  }
3432
3428
  function ur(e) {
@@ -3434,7 +3430,7 @@ function ur(e) {
3434
3430
  ignoreTransform: !0
3435
3431
  });
3436
3432
  }
3437
- function Gs(e) {
3433
+ function Vs(e) {
3438
3434
  const t = e.innerWidth, n = e.innerHeight;
3439
3435
  return {
3440
3436
  top: 0,
@@ -3445,10 +3441,10 @@ function Gs(e) {
3445
3441
  height: n
3446
3442
  };
3447
3443
  }
3448
- function Ws(e, t) {
3444
+ function Gs(e, t) {
3449
3445
  return t === void 0 && (t = ke(e).getComputedStyle(e)), t.position === "fixed";
3450
3446
  }
3451
- function _s(e, t) {
3447
+ function Ws(e, t) {
3452
3448
  t === void 0 && (t = ke(e).getComputedStyle(e));
3453
3449
  const n = /(auto|scroll|overlay)/;
3454
3450
  return ["overflow", "overflowX", "overflowY"].some((o) => {
@@ -3463,10 +3459,10 @@ function Kt(e, t) {
3463
3459
  return n;
3464
3460
  if (Hn(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
3465
3461
  return n.push(o.scrollingElement), n;
3466
- if (!St(o) || ao(o) || n.includes(o))
3462
+ if (!St(o) || lo(o) || n.includes(o))
3467
3463
  return n;
3468
3464
  const i = ke(e).getComputedStyle(o);
3469
- return o !== e && _s(o, i) && n.push(o), Ws(o, i) ? n : r(o.parentNode);
3465
+ return o !== e && Ws(o, i) && n.push(o), Gs(o, i) ? n : r(o.parentNode);
3470
3466
  }
3471
3467
  return e ? r(e) : n;
3472
3468
  }
@@ -3509,28 +3505,28 @@ function bo(e) {
3509
3505
  }, r = {
3510
3506
  x: e.scrollWidth - n.width,
3511
3507
  y: e.scrollHeight - n.height
3512
- }, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, l = e.scrollLeft >= r.x;
3508
+ }, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, a = e.scrollLeft >= r.x;
3513
3509
  return {
3514
3510
  isTop: o,
3515
3511
  isLeft: i,
3516
3512
  isBottom: s,
3517
- isRight: l,
3513
+ isRight: a,
3518
3514
  maxScroll: r,
3519
3515
  minScroll: t
3520
3516
  };
3521
3517
  }
3522
- const qs = {
3518
+ const _s = {
3523
3519
  x: 0.2,
3524
3520
  y: 0.2
3525
3521
  };
3526
- function Ys(e, t, n, r, o) {
3522
+ function qs(e, t, n, r, o) {
3527
3523
  let {
3528
3524
  top: i,
3529
3525
  left: s,
3530
- right: l,
3531
- bottom: a
3526
+ right: a,
3527
+ bottom: l
3532
3528
  } = n;
3533
- r === void 0 && (r = 10), o === void 0 && (o = qs);
3529
+ r === void 0 && (r = 10), o === void 0 && (o = _s);
3534
3530
  const {
3535
3531
  isTop: c,
3536
3532
  isBottom: u,
@@ -3546,12 +3542,12 @@ function Ys(e, t, n, r, o) {
3546
3542
  height: t.height * o.y,
3547
3543
  width: t.width * o.x
3548
3544
  };
3549
- return !c && i <= t.top + w.height ? (g.y = he.Backward, x.y = r * Math.abs((t.top + w.height - i) / w.height)) : !u && a >= t.bottom - w.height && (g.y = he.Forward, x.y = r * Math.abs((t.bottom - w.height - a) / w.height)), !h && l >= t.right - w.width ? (g.x = he.Forward, x.x = r * Math.abs((t.right - w.width - l) / w.width)) : !d && s <= t.left + w.width && (g.x = he.Backward, x.x = r * Math.abs((t.left + w.width - s) / w.width)), {
3545
+ return !c && i <= t.top + w.height ? (g.y = he.Backward, x.y = r * Math.abs((t.top + w.height - i) / w.height)) : !u && l >= t.bottom - w.height && (g.y = he.Forward, x.y = r * Math.abs((t.bottom - w.height - l) / w.height)), !h && a >= t.right - w.width ? (g.x = he.Forward, x.x = r * Math.abs((t.right - w.width - a) / w.width)) : !d && s <= t.left + w.width && (g.x = he.Backward, x.x = r * Math.abs((t.left + w.width - s) / w.width)), {
3550
3546
  direction: g,
3551
3547
  speed: x
3552
3548
  };
3553
3549
  }
3554
- function Ks(e) {
3550
+ function Ys(e) {
3555
3551
  if (e === document.scrollingElement) {
3556
3552
  const {
3557
3553
  innerWidth: i,
@@ -3584,10 +3580,10 @@ function Ks(e) {
3584
3580
  function wo(e) {
3585
3581
  return e.reduce((t, n) => et(t, An(n)), Ne);
3586
3582
  }
3587
- function Xs(e) {
3583
+ function Ks(e) {
3588
3584
  return e.reduce((t, n) => t + mo(n), 0);
3589
3585
  }
3590
- function Js(e) {
3586
+ function Xs(e) {
3591
3587
  return e.reduce((t, n) => t + vo(n), 0);
3592
3588
  }
3593
3589
  function xo(e, t) {
@@ -3604,7 +3600,7 @@ function xo(e, t) {
3604
3600
  inline: "center"
3605
3601
  });
3606
3602
  }
3607
- const Qs = [["x", ["left", "right"], Xs], ["y", ["top", "bottom"], Js]];
3603
+ const Js = [["x", ["left", "right"], Ks], ["y", ["top", "bottom"], Xs]];
3608
3604
  class Wn {
3609
3605
  constructor(t, n) {
3610
3606
  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;
@@ -3612,12 +3608,12 @@ class Wn {
3612
3608
  this.rect = {
3613
3609
  ...t
3614
3610
  }, this.width = t.width, this.height = t.height;
3615
- for (const [i, s, l] of Qs)
3616
- for (const a of s)
3617
- Object.defineProperty(this, a, {
3611
+ for (const [i, s, a] of Js)
3612
+ for (const l of s)
3613
+ Object.defineProperty(this, l, {
3618
3614
  get: () => {
3619
- const c = l(r), u = o[i] - c;
3620
- return this.rect[a] + u;
3615
+ const c = a(r), u = o[i] - c;
3616
+ return this.rect[l] + u;
3621
3617
  },
3622
3618
  enumerable: !0
3623
3619
  });
@@ -3640,7 +3636,7 @@ class gt {
3640
3636
  (o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
3641
3637
  }
3642
3638
  }
3643
- function Zs(e) {
3639
+ function Qs(e) {
3644
3640
  const {
3645
3641
  EventTarget: t
3646
3642
  } = ke(e);
@@ -3657,7 +3653,7 @@ var Re;
3657
3653
  function fr(e) {
3658
3654
  e.preventDefault();
3659
3655
  }
3660
- function el(e) {
3656
+ function Zs(e) {
3661
3657
  e.stopPropagation();
3662
3658
  }
3663
3659
  var H;
@@ -3668,7 +3664,7 @@ const ko = {
3668
3664
  start: [H.Space, H.Enter],
3669
3665
  cancel: [H.Esc],
3670
3666
  end: [H.Space, H.Enter, H.Tab]
3671
- }, tl = (e, t) => {
3667
+ }, ea = (e, t) => {
3672
3668
  let {
3673
3669
  currentCoordinates: n
3674
3670
  } = t;
@@ -3723,16 +3719,16 @@ class _n {
3723
3719
  options: o
3724
3720
  } = this.props, {
3725
3721
  keyboardCodes: i = ko,
3726
- coordinateGetter: s = tl,
3727
- scrollBehavior: l = "smooth"
3722
+ coordinateGetter: s = ea,
3723
+ scrollBehavior: a = "smooth"
3728
3724
  } = o, {
3729
- code: a
3725
+ code: l
3730
3726
  } = t;
3731
- if (i.end.includes(a)) {
3727
+ if (i.end.includes(l)) {
3732
3728
  this.handleEnd(t);
3733
3729
  return;
3734
3730
  }
3735
- if (i.cancel.includes(a)) {
3731
+ if (i.cancel.includes(l)) {
3736
3732
  this.handleCancel(t);
3737
3733
  return;
3738
3734
  }
@@ -3763,7 +3759,7 @@ class _n {
3763
3759
  isBottom: M,
3764
3760
  maxScroll: T,
3765
3761
  minScroll: y
3766
- } = bo(w), S = Ks(w), v = {
3762
+ } = bo(w), S = Ys(w), v = {
3767
3763
  x: Math.min(p === H.Right ? S.right - S.width / 2 : S.right, Math.max(p === H.Right ? S.left : S.left + S.width / 2, d.x)),
3768
3764
  y: Math.min(p === H.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(p === H.Down ? S.top : S.top + S.height / 2, d.y))
3769
3765
  }, L = p === H.Right && !E || p === H.Left && !A, b = p === H.Down && !M || p === H.Up && !m;
@@ -3772,13 +3768,13 @@ class _n {
3772
3768
  if (R && !h.y) {
3773
3769
  w.scrollTo({
3774
3770
  left: D,
3775
- behavior: l
3771
+ behavior: a
3776
3772
  });
3777
3773
  return;
3778
3774
  }
3779
3775
  R ? g.x = w.scrollLeft - D : g.x = p === H.Right ? w.scrollLeft - T.x : w.scrollLeft - y.x, g.x && w.scrollBy({
3780
3776
  left: -g.x,
3781
- behavior: l
3777
+ behavior: a
3782
3778
  });
3783
3779
  break;
3784
3780
  } else if (b && v.y !== d.y) {
@@ -3786,13 +3782,13 @@ class _n {
3786
3782
  if (R && !h.x) {
3787
3783
  w.scrollTo({
3788
3784
  top: D,
3789
- behavior: l
3785
+ behavior: a
3790
3786
  });
3791
3787
  return;
3792
3788
  }
3793
3789
  R ? g.y = w.scrollTop - D : g.y = p === H.Down ? w.scrollTop - T.y : w.scrollTop - y.y, g.y && w.scrollBy({
3794
3790
  top: -g.y,
3795
- behavior: l
3791
+ behavior: a
3796
3792
  });
3797
3793
  break;
3798
3794
  }
@@ -3836,8 +3832,8 @@ _n.activators = [{
3836
3832
  code: s
3837
3833
  } = e.nativeEvent;
3838
3834
  if (r.start.includes(s)) {
3839
- const l = i.activatorNode.current;
3840
- return l && e.target !== l ? !1 : (e.preventDefault(), o == null || o({
3835
+ const a = i.activatorNode.current;
3836
+ return a && e.target !== a ? !1 : (e.preventDefault(), o == null || o({
3841
3837
  event: e.nativeEvent
3842
3838
  }), !0);
3843
3839
  }
@@ -3853,7 +3849,7 @@ function pr(e) {
3853
3849
  class qn {
3854
3850
  constructor(t, n, r) {
3855
3851
  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;
3852
+ r === void 0 && (r = Qs(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
3853
  const {
3858
3854
  event: i
3859
3855
  } = t, {
@@ -3907,7 +3903,7 @@ class qn {
3907
3903
  } = this, {
3908
3904
  onStart: n
3909
3905
  } = this.props;
3910
- t && (this.activated = !0, this.documentListeners.add(Re.Click, el, {
3906
+ t && (this.activated = !0, this.documentListeners.add(Re.Click, Zs, {
3911
3907
  capture: !0
3912
3908
  }), this.removeTextSelection(), this.documentListeners.add(Re.SelectionChange, this.removeTextSelection), n(t));
3913
3909
  }
@@ -3920,25 +3916,25 @@ class qn {
3920
3916
  } = this, {
3921
3917
  onMove: s,
3922
3918
  options: {
3923
- activationConstraint: l
3919
+ activationConstraint: a
3924
3920
  }
3925
3921
  } = i;
3926
3922
  if (!o)
3927
3923
  return;
3928
- const a = (n = Bt(t)) != null ? n : Ne, c = wt(o, a);
3929
- if (!r && l) {
3930
- if (hr(l)) {
3931
- if (l.tolerance != null && fn(c, l.tolerance))
3924
+ const l = (n = Bt(t)) != null ? n : Ne, c = wt(o, l);
3925
+ if (!r && a) {
3926
+ if (hr(a)) {
3927
+ if (a.tolerance != null && fn(c, a.tolerance))
3932
3928
  return this.handleCancel();
3933
- if (fn(c, l.distance))
3929
+ if (fn(c, a.distance))
3934
3930
  return this.handleStart();
3935
3931
  }
3936
- if (pr(l) && fn(c, l.tolerance))
3932
+ if (pr(a) && fn(c, a.tolerance))
3937
3933
  return this.handleCancel();
3938
- this.handlePending(l, c);
3934
+ this.handlePending(a, c);
3939
3935
  return;
3940
3936
  }
3941
- t.cancelable && t.preventDefault(), s(a);
3937
+ t.cancelable && t.preventDefault(), s(l);
3942
3938
  }
3943
3939
  handleEnd() {
3944
3940
  const {
@@ -3962,7 +3958,7 @@ class qn {
3962
3958
  (t = this.document.getSelection()) == null || t.removeAllRanges();
3963
3959
  }
3964
3960
  }
3965
- const nl = {
3961
+ const ta = {
3966
3962
  cancel: {
3967
3963
  name: "pointercancel"
3968
3964
  },
@@ -3978,7 +3974,7 @@ class Yn extends qn {
3978
3974
  const {
3979
3975
  event: n
3980
3976
  } = t, r = st(n.target);
3981
- super(t, nl, r);
3977
+ super(t, ta, r);
3982
3978
  }
3983
3979
  }
3984
3980
  Yn.activators = [{
@@ -3994,7 +3990,7 @@ Yn.activators = [{
3994
3990
  }), !0);
3995
3991
  }
3996
3992
  }];
3997
- const rl = {
3993
+ const na = {
3998
3994
  move: {
3999
3995
  name: "mousemove"
4000
3996
  },
@@ -4006,12 +4002,12 @@ var Dn;
4006
4002
  (function(e) {
4007
4003
  e[e.RightClick = 2] = "RightClick";
4008
4004
  })(Dn || (Dn = {}));
4009
- class ol extends qn {
4005
+ class ra extends qn {
4010
4006
  constructor(t) {
4011
- super(t, rl, st(t.event.target));
4007
+ super(t, na, st(t.event.target));
4012
4008
  }
4013
4009
  }
4014
- ol.activators = [{
4010
+ ra.activators = [{
4015
4011
  eventName: "onMouseDown",
4016
4012
  handler: (e, t) => {
4017
4013
  let {
@@ -4035,7 +4031,7 @@ const hn = {
4035
4031
  name: "touchend"
4036
4032
  }
4037
4033
  };
4038
- class il extends qn {
4034
+ class oa extends qn {
4039
4035
  constructor(t) {
4040
4036
  super(t, hn);
4041
4037
  }
@@ -4050,7 +4046,7 @@ class il extends qn {
4050
4046
  }
4051
4047
  }
4052
4048
  }
4053
- il.activators = [{
4049
+ oa.activators = [{
4054
4050
  eventName: "onTouchStart",
4055
4051
  handler: (e, t) => {
4056
4052
  let {
@@ -4074,7 +4070,7 @@ var Ut;
4074
4070
  (function(e) {
4075
4071
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
4076
4072
  })(Ut || (Ut = {}));
4077
- function sl(e) {
4073
+ function ia(e) {
4078
4074
  let {
4079
4075
  acceleration: t,
4080
4076
  activator: n = mt.Pointer,
@@ -4082,17 +4078,17 @@ function sl(e) {
4082
4078
  draggingRect: o,
4083
4079
  enabled: i,
4084
4080
  interval: s = 5,
4085
- order: l = Ut.TreeOrder,
4086
- pointerCoordinates: a,
4081
+ order: a = Ut.TreeOrder,
4082
+ pointerCoordinates: l,
4087
4083
  scrollableAncestors: c,
4088
4084
  scrollableAncestorRects: u,
4089
4085
  delta: d,
4090
4086
  threshold: h
4091
4087
  } = e;
4092
- const g = al({
4088
+ const g = aa({
4093
4089
  delta: d,
4094
4090
  disabled: !i
4095
- }), [x, w] = vs(), p = G({
4091
+ }), [x, w] = ms(), p = G({
4096
4092
  x: 0,
4097
4093
  y: 0
4098
4094
  }), m = G({
@@ -4101,22 +4097,22 @@ function sl(e) {
4101
4097
  }), E = q(() => {
4102
4098
  switch (n) {
4103
4099
  case mt.Pointer:
4104
- return a ? {
4105
- top: a.y,
4106
- bottom: a.y,
4107
- left: a.x,
4108
- right: a.x
4100
+ return l ? {
4101
+ top: l.y,
4102
+ bottom: l.y,
4103
+ left: l.x,
4104
+ right: l.x
4109
4105
  } : null;
4110
4106
  case mt.DraggableRect:
4111
4107
  return o;
4112
4108
  }
4113
- }, [n, o, a]), A = G(null), M = N(() => {
4109
+ }, [n, o, l]), A = G(null), M = N(() => {
4114
4110
  const y = A.current;
4115
4111
  if (!y)
4116
4112
  return;
4117
4113
  const S = p.current.x * m.current.x, v = p.current.y * m.current.y;
4118
4114
  y.scrollBy(S, v);
4119
- }, []), T = q(() => l === Ut.TreeOrder ? [...c].reverse() : c, [l, c]);
4115
+ }, []), T = q(() => a === Ut.TreeOrder ? [...c].reverse() : c, [a, c]);
4120
4116
  _(
4121
4117
  () => {
4122
4118
  if (!i || !c.length || !E) {
@@ -4132,7 +4128,7 @@ function sl(e) {
4132
4128
  const {
4133
4129
  direction: L,
4134
4130
  speed: b
4135
- } = Ys(y, v, E, t, h);
4131
+ } = qs(y, v, E, t, h);
4136
4132
  for (const D of ["x", "y"])
4137
4133
  g[D][L[D]] || (b[D] = 0, L[D] = 0);
4138
4134
  if (b.x > 0 || b.y > 0) {
@@ -4169,7 +4165,7 @@ function sl(e) {
4169
4165
  ]
4170
4166
  );
4171
4167
  }
4172
- const ll = {
4168
+ const sa = {
4173
4169
  x: {
4174
4170
  [he.Backward]: !1,
4175
4171
  [he.Forward]: !1
@@ -4179,7 +4175,7 @@ const ll = {
4179
4175
  [he.Forward]: !1
4180
4176
  }
4181
4177
  };
4182
- function al(e) {
4178
+ function aa(e) {
4183
4179
  let {
4184
4180
  delta: t,
4185
4181
  disabled: n
@@ -4187,7 +4183,7 @@ function al(e) {
4187
4183
  const r = $t(t);
4188
4184
  return Et((o) => {
4189
4185
  if (n || !r || !o)
4190
- return ll;
4186
+ return sa;
4191
4187
  const i = {
4192
4188
  x: Math.sign(t.x - r.x),
4193
4189
  y: Math.sign(t.y - r.y)
@@ -4204,14 +4200,14 @@ function al(e) {
4204
4200
  };
4205
4201
  }, [n, t, r]);
4206
4202
  }
4207
- function cl(e, t) {
4203
+ function la(e, t) {
4208
4204
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
4209
4205
  return Et((o) => {
4210
4206
  var i;
4211
4207
  return t == null ? null : (i = r ?? o) != null ? i : null;
4212
4208
  }, [r, t]);
4213
4209
  }
4214
- function dl(e, t) {
4210
+ function ca(e, t) {
4215
4211
  return q(() => e.reduce((n, r) => {
4216
4212
  const {
4217
4213
  sensor: o
@@ -4231,15 +4227,15 @@ var Mn;
4231
4227
  e.Optimized = "optimized";
4232
4228
  })(Mn || (Mn = {}));
4233
4229
  const gr = /* @__PURE__ */ new Map();
4234
- function ul(e, t) {
4230
+ function da(e, t) {
4235
4231
  let {
4236
4232
  dragging: n,
4237
4233
  dependencies: r,
4238
4234
  config: o
4239
4235
  } = t;
4240
4236
  const [i, s] = V(null), {
4241
- frequency: l,
4242
- measure: a,
4237
+ frequency: a,
4238
+ measure: l,
4243
4239
  strategy: c
4244
4240
  } = o, u = G(e), d = p(), h = bt(d), g = N(function(m) {
4245
4241
  m === void 0 && (m = []), !h.current && s((E) => E === null ? m : E.concat(m.filter((A) => !E.includes(A))));
@@ -4255,13 +4251,13 @@ function ul(e, t) {
4255
4251
  E.set(A.id, A.rect.current);
4256
4252
  continue;
4257
4253
  }
4258
- const M = A.node.current, T = M ? new Wn(a(M), M) : null;
4254
+ const M = A.node.current, T = M ? new Wn(l(M), M) : null;
4259
4255
  A.rect.current = T, T && E.set(A.id, T);
4260
4256
  }
4261
4257
  return E;
4262
4258
  }
4263
4259
  return m;
4264
- }, [e, i, n, d, a]);
4260
+ }, [e, i, n, d, l]);
4265
4261
  return _(() => {
4266
4262
  u.current = e;
4267
4263
  }, [e]), _(
@@ -4278,12 +4274,12 @@ function ul(e, t) {
4278
4274
  [JSON.stringify(i)]
4279
4275
  ), _(
4280
4276
  () => {
4281
- d || typeof l != "number" || x.current !== null || (x.current = setTimeout(() => {
4277
+ d || typeof a != "number" || x.current !== null || (x.current = setTimeout(() => {
4282
4278
  g(), x.current = null;
4283
- }, l));
4279
+ }, a));
4284
4280
  },
4285
4281
  // eslint-disable-next-line react-hooks/exhaustive-deps
4286
- [l, d, g, ...r]
4282
+ [a, d, g, ...r]
4287
4283
  ), {
4288
4284
  droppableRects: w,
4289
4285
  measureDroppableContainers: g,
@@ -4303,10 +4299,10 @@ function ul(e, t) {
4303
4299
  function Kn(e, t) {
4304
4300
  return Et((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
4305
4301
  }
4306
- function fl(e, t) {
4302
+ function ua(e, t) {
4307
4303
  return Kn(e, t);
4308
4304
  }
4309
- function hl(e) {
4305
+ function fa(e) {
4310
4306
  let {
4311
4307
  callback: t,
4312
4308
  disabled: n
@@ -4340,28 +4336,28 @@ function Xt(e) {
4340
4336
  );
4341
4337
  return _(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
4342
4338
  }
4343
- function pl(e) {
4339
+ function ha(e) {
4344
4340
  return new Wn(At(e), e);
4345
4341
  }
4346
4342
  function mr(e, t, n) {
4347
- t === void 0 && (t = pl);
4343
+ t === void 0 && (t = ha);
4348
4344
  const [r, o] = V(null);
4349
4345
  function i() {
4350
- o((a) => {
4346
+ o((l) => {
4351
4347
  if (!e)
4352
4348
  return null;
4353
4349
  if (e.isConnected === !1) {
4354
4350
  var c;
4355
- return (c = a ?? n) != null ? c : null;
4351
+ return (c = l ?? n) != null ? c : null;
4356
4352
  }
4357
4353
  const u = t(e);
4358
- return JSON.stringify(a) === JSON.stringify(u) ? a : u;
4354
+ return JSON.stringify(l) === JSON.stringify(u) ? l : u;
4359
4355
  });
4360
4356
  }
4361
- const s = hl({
4362
- callback(a) {
4357
+ const s = fa({
4358
+ callback(l) {
4363
4359
  if (e)
4364
- for (const c of a) {
4360
+ for (const c of l) {
4365
4361
  const {
4366
4362
  type: u,
4367
4363
  target: d
@@ -4372,50 +4368,50 @@ function mr(e, t, n) {
4372
4368
  }
4373
4369
  }
4374
4370
  }
4375
- }), l = Xt({
4371
+ }), a = Xt({
4376
4372
  callback: i
4377
4373
  });
4378
4374
  return Ue(() => {
4379
- i(), e ? (l == null || l.observe(e), s == null || s.observe(document.body, {
4375
+ i(), e ? (a == null || a.observe(e), s == null || s.observe(document.body, {
4380
4376
  childList: !0,
4381
4377
  subtree: !0
4382
- })) : (l == null || l.disconnect(), s == null || s.disconnect());
4378
+ })) : (a == null || a.disconnect(), s == null || s.disconnect());
4383
4379
  }, [e]), r;
4384
4380
  }
4385
- function gl(e) {
4381
+ function pa(e) {
4386
4382
  const t = Kn(e);
4387
4383
  return ho(e, t);
4388
4384
  }
4389
4385
  const vr = [];
4390
- function ml(e) {
4386
+ function ga(e) {
4391
4387
  const t = G(e), n = Et((r) => e ? r && r !== vr && e && t.current && e.parentNode === t.current.parentNode ? r : Kt(e) : vr, [e]);
4392
4388
  return _(() => {
4393
4389
  t.current = e;
4394
4390
  }, [e]), n;
4395
4391
  }
4396
- function vl(e) {
4392
+ function ma(e) {
4397
4393
  const [t, n] = V(null), r = G(e), o = N((i) => {
4398
4394
  const s = un(i.target);
4399
- s && n((l) => l ? (l.set(s, An(s)), new Map(l)) : null);
4395
+ s && n((a) => a ? (a.set(s, An(s)), new Map(a)) : null);
4400
4396
  }, []);
4401
4397
  return _(() => {
4402
4398
  const i = r.current;
4403
4399
  if (e !== i) {
4404
4400
  s(i);
4405
- const l = e.map((a) => {
4406
- const c = un(a);
4401
+ const a = e.map((l) => {
4402
+ const c = un(l);
4407
4403
  return c ? (c.addEventListener("scroll", o, {
4408
4404
  passive: !0
4409
4405
  }), [c, An(c)]) : null;
4410
- }).filter((a) => a != null);
4411
- n(l.length ? new Map(l) : null), r.current = e;
4406
+ }).filter((l) => l != null);
4407
+ n(a.length ? new Map(a) : null), r.current = e;
4412
4408
  }
4413
4409
  return () => {
4414
4410
  s(e), s(i);
4415
4411
  };
4416
- function s(l) {
4417
- l.forEach((a) => {
4418
- const c = un(a);
4412
+ function s(a) {
4413
+ a.forEach((l) => {
4414
+ const c = un(l);
4419
4415
  c == null || c.removeEventListener("scroll", o);
4420
4416
  });
4421
4417
  }
@@ -4435,7 +4431,7 @@ function yr(e, t) {
4435
4431
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
4436
4432
  }, [e]), n.current ? wt(e, n.current) : Ne;
4437
4433
  }
4438
- function yl(e) {
4434
+ function va(e) {
4439
4435
  _(
4440
4436
  () => {
4441
4437
  if (!_t)
@@ -4461,7 +4457,7 @@ function yl(e) {
4461
4457
  })
4462
4458
  );
4463
4459
  }
4464
- function bl(e, t) {
4460
+ function ya(e, t) {
4465
4461
  return q(() => e.reduce((n, r) => {
4466
4462
  let {
4467
4463
  eventName: o,
@@ -4473,20 +4469,20 @@ function bl(e, t) {
4473
4469
  }, {}), [e, t]);
4474
4470
  }
4475
4471
  function Co(e) {
4476
- return q(() => e ? Gs(e) : null, [e]);
4472
+ return q(() => e ? Vs(e) : null, [e]);
4477
4473
  }
4478
4474
  const br = [];
4479
- function wl(e, t) {
4475
+ function ba(e, t) {
4480
4476
  t === void 0 && (t = At);
4481
4477
  const [n] = e, r = Co(n ? ke(n) : null), [o, i] = V(br);
4482
4478
  function s() {
4483
- i(() => e.length ? e.map((a) => yo(a) ? r : new Wn(t(a), a)) : br);
4479
+ i(() => e.length ? e.map((l) => yo(l) ? r : new Wn(t(l), l)) : br);
4484
4480
  }
4485
- const l = Xt({
4481
+ const a = Xt({
4486
4482
  callback: s
4487
4483
  });
4488
4484
  return Ue(() => {
4489
- l == null || l.disconnect(), s(), e.forEach((a) => l == null ? void 0 : l.observe(a));
4485
+ a == null || a.disconnect(), s(), e.forEach((l) => a == null ? void 0 : a.observe(l));
4490
4486
  }, [e]), o;
4491
4487
  }
4492
4488
  function So(e) {
@@ -4497,7 +4493,7 @@ function So(e) {
4497
4493
  const t = e.children[0];
4498
4494
  return St(t) ? t : e;
4499
4495
  }
4500
- function xl(e) {
4496
+ function wa(e) {
4501
4497
  let {
4502
4498
  measure: t
4503
4499
  } = e;
@@ -4521,20 +4517,20 @@ function xl(e) {
4521
4517
  }), s = N((c) => {
4522
4518
  const u = So(c);
4523
4519
  i == null || i.disconnect(), u && (i == null || i.observe(u)), r(u ? t(u) : null);
4524
- }, [t, i]), [l, a] = jt(s);
4520
+ }, [t, i]), [a, l] = jt(s);
4525
4521
  return q(() => ({
4526
- nodeRef: l,
4522
+ nodeRef: a,
4527
4523
  rect: n,
4528
- setRef: a
4529
- }), [n, l, a]);
4524
+ setRef: l
4525
+ }), [n, a, l]);
4530
4526
  }
4531
- const kl = [{
4527
+ const xa = [{
4532
4528
  sensor: Yn,
4533
4529
  options: {}
4534
4530
  }, {
4535
4531
  sensor: _n,
4536
4532
  options: {}
4537
- }], Cl = {
4533
+ }], ka = {
4538
4534
  current: {}
4539
4535
  }, Ot = {
4540
4536
  draggable: {
@@ -4570,7 +4566,7 @@ class vt extends Map {
4570
4566
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
4571
4567
  }
4572
4568
  }
4573
- const Sl = {
4569
+ const Ca = {
4574
4570
  activatorEvent: null,
4575
4571
  active: null,
4576
4572
  activeNode: null,
@@ -4606,8 +4602,8 @@ const Sl = {
4606
4602
  draggableNodes: /* @__PURE__ */ new Map(),
4607
4603
  over: null,
4608
4604
  measureDroppableContainers: Ht
4609
- }, Dt = /* @__PURE__ */ Xe(Eo), Ao = /* @__PURE__ */ Xe(Sl);
4610
- function El() {
4605
+ }, Dt = /* @__PURE__ */ Xe(Eo), Ao = /* @__PURE__ */ Xe(Ca);
4606
+ function Sa() {
4611
4607
  return {
4612
4608
  draggable: {
4613
4609
  active: null,
@@ -4626,7 +4622,7 @@ function El() {
4626
4622
  }
4627
4623
  };
4628
4624
  }
4629
- function Al(e, t) {
4625
+ function Ea(e, t) {
4630
4626
  switch (t.type) {
4631
4627
  case de.DragStart:
4632
4628
  return {
@@ -4719,7 +4715,7 @@ function Al(e, t) {
4719
4715
  return e;
4720
4716
  }
4721
4717
  }
4722
- function Dl(e) {
4718
+ function Aa(e) {
4723
4719
  let {
4724
4720
  disabled: t
4725
4721
  } = e;
@@ -4732,20 +4728,20 @@ function Dl(e) {
4732
4728
  if (!t && !r && i && s != null) {
4733
4729
  if (!Un(i) || document.activeElement === i.target)
4734
4730
  return;
4735
- const l = o.get(s);
4736
- if (!l)
4731
+ const a = o.get(s);
4732
+ if (!a)
4737
4733
  return;
4738
4734
  const {
4739
- activatorNode: a,
4735
+ activatorNode: l,
4740
4736
  node: c
4741
- } = l;
4742
- if (!a.current && !c.current)
4737
+ } = a;
4738
+ if (!l.current && !c.current)
4743
4739
  return;
4744
4740
  requestAnimationFrame(() => {
4745
- for (const u of [a.current, c.current]) {
4741
+ for (const u of [l.current, c.current]) {
4746
4742
  if (!u)
4747
4743
  continue;
4748
- const d = ws(u);
4744
+ const d = bs(u);
4749
4745
  if (d) {
4750
4746
  d.focus();
4751
4747
  break;
@@ -4765,7 +4761,7 @@ function Do(e, t) {
4765
4761
  ...r
4766
4762
  }), n) : n;
4767
4763
  }
4768
- function Ml(e) {
4764
+ function Da(e) {
4769
4765
  return q(
4770
4766
  () => ({
4771
4767
  draggable: {
@@ -4785,7 +4781,7 @@ function Ml(e) {
4785
4781
  [e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
4786
4782
  );
4787
4783
  }
4788
- function Ll(e) {
4784
+ function Ma(e) {
4789
4785
  let {
4790
4786
  activeNode: t,
4791
4787
  measure: n,
@@ -4794,13 +4790,13 @@ function Ll(e) {
4794
4790
  } = e;
4795
4791
  const i = G(!1), {
4796
4792
  x: s,
4797
- y: l
4793
+ y: a
4798
4794
  } = typeof o == "boolean" ? {
4799
4795
  x: o,
4800
4796
  y: o
4801
4797
  } : o;
4802
4798
  Ue(() => {
4803
- if (!s && !l || !t) {
4799
+ if (!s && !a || !t) {
4804
4800
  i.current = !1;
4805
4801
  return;
4806
4802
  }
@@ -4810,14 +4806,14 @@ function Ll(e) {
4810
4806
  if (!c || c.isConnected === !1)
4811
4807
  return;
4812
4808
  const u = n(c), d = ho(u, r);
4813
- if (s || (d.x = 0), l || (d.y = 0), i.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
4809
+ if (s || (d.x = 0), a || (d.y = 0), i.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
4814
4810
  const h = go(c);
4815
4811
  h && h.scrollBy({
4816
4812
  top: d.y,
4817
4813
  left: d.x
4818
4814
  });
4819
4815
  }
4820
- }, [t, s, l, r, n]);
4816
+ }, [t, s, a, r, n]);
4821
4817
  }
4822
4818
  const Jt = /* @__PURE__ */ Xe({
4823
4819
  ...Ne,
@@ -4828,20 +4824,20 @@ var Ye;
4828
4824
  (function(e) {
4829
4825
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
4830
4826
  })(Ye || (Ye = {}));
4831
- const Rl = /* @__PURE__ */ Bo(function(t) {
4827
+ const La = /* @__PURE__ */ Bo(function(t) {
4832
4828
  var n, r, o, i;
4833
4829
  let {
4834
4830
  id: s,
4835
- accessibility: l,
4836
- autoScroll: a = !0,
4831
+ accessibility: a,
4832
+ autoScroll: l = !0,
4837
4833
  children: c,
4838
- sensors: u = kl,
4839
- collisionDetection: d = Os,
4834
+ sensors: u = xa,
4835
+ collisionDetection: d = Fs,
4840
4836
  measuring: h,
4841
4837
  modifiers: g,
4842
4838
  ...x
4843
4839
  } = t;
4844
- const w = Ho(Al, void 0, El), [p, m] = w, [E, A] = As(), [M, T] = V(Ye.Uninitialized), y = M === Ye.Initialized, {
4840
+ const w = Ho(Ea, void 0, Sa), [p, m] = w, [E, A] = Es(), [M, T] = V(Ye.Uninitialized), y = M === Ye.Initialized, {
4845
4841
  draggable: {
4846
4842
  active: S,
4847
4843
  nodes: v,
@@ -4858,28 +4854,28 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
4858
4854
  return S != null ? {
4859
4855
  id: S,
4860
4856
  // It's possible for the active node to unmount while dragging
4861
- data: (be = D == null ? void 0 : D.data) != null ? be : Cl,
4857
+ data: (be = D == null ? void 0 : D.data) != null ? be : ka,
4862
4858
  rect: R
4863
4859
  } : null;
4864
- }, [S, D]), X = G(null), [pe, J] = V(null), [re, Y] = V(null), ee = bt(x, Object.values(x)), ge = Yt("DndDescribedBy", s), we = q(() => b.getEnabled(), [b]), oe = Ml(h), {
4860
+ }, [S, D]), X = G(null), [pe, J] = V(null), [re, Y] = V(null), ee = bt(x, Object.values(x)), ge = Yt("DndDescribedBy", s), we = q(() => b.getEnabled(), [b]), oe = Da(h), {
4865
4861
  droppableRects: ue,
4866
4862
  measureDroppableContainers: ze,
4867
4863
  measuringScheduled: Se
4868
- } = ul(we, {
4864
+ } = da(we, {
4869
4865
  dragging: y,
4870
4866
  dependencies: [L.x, L.y],
4871
4867
  config: oe.droppable
4872
- }), ae = cl(v, S), Fe = q(() => re ? Bt(re) : null, [re]), Q = $o(), se = fl(ae, oe.draggable.measure);
4873
- Ll({
4868
+ }), le = la(v, S), Fe = q(() => re ? Bt(re) : null, [re]), Q = $o(), se = ua(le, oe.draggable.measure);
4869
+ Ma({
4874
4870
  activeNode: S != null ? v.get(S) : null,
4875
4871
  config: Q.layoutShiftCompensation,
4876
4872
  initialRect: se,
4877
4873
  measure: oe.draggable.measure
4878
4874
  });
4879
- const $ = mr(ae, oe.draggable.measure, se), xe = mr(ae ? ae.parentElement : null), Ce = G({
4875
+ const $ = mr(le, oe.draggable.measure, se), xe = mr(le ? le.parentElement : null), Ce = G({
4880
4876
  activatorEvent: null,
4881
4877
  active: null,
4882
- activeNode: ae,
4878
+ activeNode: le,
4883
4879
  collisionRect: null,
4884
4880
  collisions: null,
4885
4881
  droppableRects: ue,
@@ -4890,9 +4886,9 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
4890
4886
  over: null,
4891
4887
  scrollableAncestors: [],
4892
4888
  scrollAdjustedTranslate: null
4893
- }), Je = b.getNodeFor((n = Ce.current.over) == null ? void 0 : n.id), ce = xl({
4889
+ }), Je = b.getNodeFor((n = Ce.current.over) == null ? void 0 : n.id), ce = wa({
4894
4890
  measure: oe.dragOverlay.measure
4895
- }), k = (r = ce.nodeRef.current) != null ? r : ae, C = y ? (o = ce.rect) != null ? o : $ : null, I = !!(ce.nodeRef.current && ce.rect), F = gl(I ? null : $), K = Co(k ? ke(k) : null), P = ml(y ? Je ?? ae : null), Z = wl(P), le = Do(g, {
4891
+ }), k = (r = ce.nodeRef.current) != null ? r : le, C = y ? (o = ce.rect) != null ? o : $ : null, I = !!(ce.nodeRef.current && ce.rect), F = pa(I ? null : $), K = Co(k ? ke(k) : null), P = ga(y ? Je ?? le : null), Z = ba(P), ae = Do(g, {
4896
4892
  transform: {
4897
4893
  x: L.x - F.x,
4898
4894
  y: L.y - F.y,
@@ -4909,13 +4905,13 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
4909
4905
  scrollableAncestors: P,
4910
4906
  scrollableAncestorRects: Z,
4911
4907
  windowRect: K
4912
- }), me = Fe ? et(Fe, L) : null, ne = vl(P), je = yr(ne), Te = yr(ne, [$]), Ve = et(le, je), Ge = C ? Hs(C, le) : null, W = O && Ge ? d({
4908
+ }), me = Fe ? et(Fe, L) : null, ne = ma(P), je = yr(ne), Te = yr(ne, [$]), Ve = et(ae, je), Ge = C ? Bs(C, ae) : null, W = O && Ge ? d({
4913
4909
  active: O,
4914
4910
  collisionRect: Ge,
4915
4911
  droppableRects: ue,
4916
4912
  droppableContainers: we,
4917
4913
  pointerCoordinates: me
4918
- }) : null, fe = fo(W, "id"), [ye, Mt] = V(null), Qt = I ? le : et(le, Te), Lt = $s(Qt, (i = ye == null ? void 0 : ye.rect) != null ? i : null, $), lt = G(null), Rt = N(
4914
+ }) : null, fe = fo(W, "id"), [ye, Mt] = V(null), Qt = I ? ae : et(ae, Te), Lt = js(Qt, (i = ye == null ? void 0 : ye.rect) != null ? i : null, $), at = G(null), Rt = N(
4919
4915
  (be, Ee) => {
4920
4916
  let {
4921
4917
  sensor: Ae,
@@ -4972,7 +4968,7 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
4972
4968
  return;
4973
4969
  const {
4974
4970
  onDragStart: $e
4975
- } = ee.current, at = {
4971
+ } = ee.current, lt = {
4976
4972
  activatorEvent: De,
4977
4973
  active: {
4978
4974
  id: _e,
@@ -4981,14 +4977,14 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
4981
4977
  }
4982
4978
  };
4983
4979
  Nt(() => {
4984
- $e == null || $e(at), T(Ye.Initializing), m({
4980
+ $e == null || $e(lt), T(Ye.Initializing), m({
4985
4981
  type: de.DragStart,
4986
4982
  initialCoordinates: ve,
4987
4983
  active: _e
4988
4984
  }), E({
4989
4985
  type: "onDragStart",
4990
- event: at
4991
- }), J(lt.current), Y(De);
4986
+ event: lt
4987
+ }), J(at.current), Y(De);
4992
4988
  });
4993
4989
  },
4994
4990
  onMove(ve) {
@@ -5000,13 +4996,13 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5000
4996
  onEnd: Qe(de.DragEnd),
5001
4997
  onCancel: Qe(de.DragCancel)
5002
4998
  });
5003
- lt.current = Oe;
4999
+ at.current = Oe;
5004
5000
  function Qe(ve) {
5005
5001
  return async function() {
5006
5002
  const {
5007
5003
  active: Pe,
5008
5004
  collisions: $e,
5009
- over: at,
5005
+ over: lt,
5010
5006
  scrollAdjustedTranslate: ct
5011
5007
  } = Ce.current;
5012
5008
  let qe = null;
@@ -5019,13 +5015,13 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5019
5015
  active: Pe,
5020
5016
  collisions: $e,
5021
5017
  delta: ct,
5022
- over: at
5018
+ over: lt
5023
5019
  }, ve === de.DragEnd && typeof dt == "function" && await Promise.resolve(dt(qe)) && (ve = de.DragCancel);
5024
5020
  }
5025
5021
  X.current = null, Nt(() => {
5026
5022
  m({
5027
5023
  type: ve
5028
- }), T(Ye.Uninitialized), Mt(null), J(null), Y(null), lt.current = null;
5024
+ }), T(Ye.Uninitialized), Mt(null), J(null), Y(null), at.current = null;
5029
5025
  const dt = ve === de.DragEnd ? "onDragEnd" : "onDragCancel";
5030
5026
  if (qe) {
5031
5027
  const Zt = ee.current[dt];
@@ -5055,8 +5051,8 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5055
5051
  be(Ae, Ee.options, Oe) === !0 && (Me.dndKit = {
5056
5052
  capturedBy: Ee.sensor
5057
5053
  }, X.current = We, Rt(Ae, Ee));
5058
- }, [v, Rt]), It = dl(u, Tt);
5059
- yl(u), Ue(() => {
5054
+ }, [v, Rt]), It = ca(u, Tt);
5055
+ va(u), Ue(() => {
5060
5056
  $ && M === Ye.Initializing && T(Ye.Initialized);
5061
5057
  }, [$, M]), _(
5062
5058
  () => {
@@ -5130,7 +5126,7 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5130
5126
  Ce.current = {
5131
5127
  activatorEvent: re,
5132
5128
  active: O,
5133
- activeNode: ae,
5129
+ activeNode: le,
5134
5130
  collisionRect: Ge,
5135
5131
  collisions: W,
5136
5132
  droppableRects: ue,
@@ -5145,7 +5141,7 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5145
5141
  initial: C,
5146
5142
  translated: Ge
5147
5143
  };
5148
- }, [O, ae, W, Ge, v, k, C, ue, b, ye, P, Ve]), sl({
5144
+ }, [O, le, W, Ge, v, k, C, ue, b, ye, P, Ve]), ia({
5149
5145
  ...Q,
5150
5146
  delta: L,
5151
5147
  draggingRect: Ge,
@@ -5155,7 +5151,7 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5155
5151
  });
5156
5152
  const Po = q(() => ({
5157
5153
  active: O,
5158
- activeNode: ae,
5154
+ activeNode: le,
5159
5155
  activeNodeRect: $,
5160
5156
  activatorEvent: re,
5161
5157
  collisions: W,
@@ -5171,7 +5167,7 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5171
5167
  measuringConfiguration: oe,
5172
5168
  measuringScheduled: Se,
5173
5169
  windowRect: K
5174
- }), [O, ae, $, re, W, xe, ce, v, b, ue, ye, ze, P, Z, oe, Se, K]), jo = q(() => ({
5170
+ }), [O, le, $, re, W, xe, ce, v, b, ue, ye, ze, P, Z, oe, Se, K]), jo = q(() => ({
5175
5171
  activatorEvent: re,
5176
5172
  activators: It,
5177
5173
  active: O,
@@ -5192,33 +5188,33 @@ const Rl = /* @__PURE__ */ Bo(function(t) {
5192
5188
  value: Po
5193
5189
  }, te.createElement(Jt.Provider, {
5194
5190
  value: Lt
5195
- }, c)), te.createElement(Dl, {
5196
- disabled: (l == null ? void 0 : l.restoreFocus) === !1
5197
- })), te.createElement(Ls, {
5198
- ...l,
5191
+ }, c)), te.createElement(Aa, {
5192
+ disabled: (a == null ? void 0 : a.restoreFocus) === !1
5193
+ })), te.createElement(Ms, {
5194
+ ...a,
5199
5195
  hiddenTextDescribedById: ge
5200
5196
  }));
5201
5197
  function $o() {
5202
- const be = (pe == null ? void 0 : pe.autoScrollEnabled) === !1, Ee = typeof a == "object" ? a.enabled === !1 : a === !1, Ae = y && !be && !Ee;
5203
- return typeof a == "object" ? {
5204
- ...a,
5198
+ const be = (pe == null ? void 0 : pe.autoScrollEnabled) === !1, Ee = typeof l == "object" ? l.enabled === !1 : l === !1, Ae = y && !be && !Ee;
5199
+ return typeof l == "object" ? {
5200
+ ...l,
5205
5201
  enabled: Ae
5206
5202
  } : {
5207
5203
  enabled: Ae
5208
5204
  };
5209
5205
  }
5210
- }), Tl = /* @__PURE__ */ Xe(null), wr = "button", Il = "Draggable";
5211
- function Nl(e) {
5206
+ }), Ra = /* @__PURE__ */ Xe(null), wr = "button", Ta = "Draggable";
5207
+ function Ia(e) {
5212
5208
  let {
5213
5209
  id: t,
5214
5210
  data: n,
5215
5211
  disabled: r = !1,
5216
5212
  attributes: o
5217
5213
  } = e;
5218
- const i = Yt(Il), {
5214
+ const i = Yt(Ta), {
5219
5215
  activators: s,
5220
- activatorEvent: l,
5221
- active: a,
5216
+ activatorEvent: a,
5217
+ active: l,
5222
5218
  activeNodeRect: c,
5223
5219
  ariaDescribedById: u,
5224
5220
  draggableNodes: d,
@@ -5227,7 +5223,7 @@ function Nl(e) {
5227
5223
  role: g = wr,
5228
5224
  roleDescription: x = "draggable",
5229
5225
  tabIndex: w = 0
5230
- } = o ?? {}, p = (a == null ? void 0 : a.id) === t, m = He(p ? Jt : Tl), [E, A] = jt(), [M, T] = jt(), y = bl(s, t), S = bt(n);
5226
+ } = o ?? {}, p = (l == null ? void 0 : l.id) === t, m = He(p ? Jt : Ra), [E, A] = jt(), [M, T] = jt(), y = ya(s, t), S = bt(n);
5231
5227
  Ue(
5232
5228
  () => (d.set(t, {
5233
5229
  id: t,
@@ -5251,8 +5247,8 @@ function Nl(e) {
5251
5247
  "aria-describedby": u.draggable
5252
5248
  }), [r, g, w, p, x, u.draggable]);
5253
5249
  return {
5254
- active: a,
5255
- activatorEvent: l,
5250
+ active: l,
5251
+ activatorEvent: a,
5256
5252
  activeNodeRect: c,
5257
5253
  attributes: v,
5258
5254
  isDragging: p,
@@ -5264,10 +5260,10 @@ function Nl(e) {
5264
5260
  transform: m
5265
5261
  };
5266
5262
  }
5267
- function zl() {
5263
+ function Na() {
5268
5264
  return He(Ao);
5269
5265
  }
5270
- const Fl = "Droppable", Ol = {
5266
+ const za = "Droppable", Fa = {
5271
5267
  timeout: 25
5272
5268
  };
5273
5269
  function Mo(e) {
@@ -5277,10 +5273,10 @@ function Mo(e) {
5277
5273
  id: r,
5278
5274
  resizeObserverConfig: o
5279
5275
  } = e;
5280
- const i = Yt(Fl), {
5276
+ const i = Yt(za), {
5281
5277
  active: s,
5282
- dispatch: l,
5283
- over: a,
5278
+ dispatch: a,
5279
+ over: l,
5284
5280
  measureDroppableContainers: c
5285
5281
  } = He(Dt), u = G({
5286
5282
  disabled: n
@@ -5289,7 +5285,7 @@ function Mo(e) {
5289
5285
  updateMeasurementsFor: w,
5290
5286
  timeout: p
5291
5287
  } = {
5292
- ...Ol,
5288
+ ...Fa,
5293
5289
  ...o
5294
5290
  }, m = bt(w ?? r), E = N(
5295
5291
  () => {
@@ -5312,7 +5308,7 @@ function Mo(e) {
5312
5308
  return _(() => {
5313
5309
  !A || !T.current || (A.disconnect(), d.current = !1, A.observe(T.current));
5314
5310
  }, [T, A]), _(
5315
- () => (l({
5311
+ () => (a({
5316
5312
  type: de.RegisterDroppable,
5317
5313
  element: {
5318
5314
  id: r,
@@ -5322,7 +5318,7 @@ function Mo(e) {
5322
5318
  rect: h,
5323
5319
  data: S
5324
5320
  }
5325
- }), () => l({
5321
+ }), () => a({
5326
5322
  type: de.UnregisterDroppable,
5327
5323
  key: i,
5328
5324
  id: r
@@ -5330,32 +5326,32 @@ function Mo(e) {
5330
5326
  // eslint-disable-next-line react-hooks/exhaustive-deps
5331
5327
  [r]
5332
5328
  ), _(() => {
5333
- n !== u.current.disabled && (l({
5329
+ n !== u.current.disabled && (a({
5334
5330
  type: de.SetDroppableDisabled,
5335
5331
  id: r,
5336
5332
  key: i,
5337
5333
  disabled: n
5338
5334
  }), u.current.disabled = n);
5339
- }, [r, i, n, l]), {
5335
+ }, [r, i, n, a]), {
5340
5336
  active: s,
5341
5337
  rect: h,
5342
- isOver: (a == null ? void 0 : a.id) === r,
5338
+ isOver: (l == null ? void 0 : l.id) === r,
5343
5339
  node: T,
5344
- over: a,
5340
+ over: l,
5345
5341
  setNodeRef: y
5346
5342
  };
5347
5343
  }
5348
- function Pl(e) {
5344
+ function Oa(e) {
5349
5345
  let {
5350
5346
  animation: t,
5351
5347
  children: n
5352
5348
  } = e;
5353
- const [r, o] = V(null), [i, s] = V(null), l = $t(n);
5354
- return !n && !r && l && o(l), Ue(() => {
5349
+ const [r, o] = V(null), [i, s] = V(null), a = $t(n);
5350
+ return !n && !r && a && o(a), Ue(() => {
5355
5351
  if (!i)
5356
5352
  return;
5357
- const a = r == null ? void 0 : r.key, c = r == null ? void 0 : r.props.id;
5358
- if (a == null || c == null) {
5353
+ const l = r == null ? void 0 : r.key, c = r == null ? void 0 : r.props.id;
5354
+ if (l == null || c == null) {
5359
5355
  o(null);
5360
5356
  return;
5361
5357
  }
@@ -5366,60 +5362,60 @@ function Pl(e) {
5366
5362
  ref: s
5367
5363
  }) : null);
5368
5364
  }
5369
- const jl = {
5365
+ const Pa = {
5370
5366
  x: 0,
5371
5367
  y: 0,
5372
5368
  scaleX: 1,
5373
5369
  scaleY: 1
5374
5370
  };
5375
- function $l(e) {
5371
+ function ja(e) {
5376
5372
  let {
5377
5373
  children: t
5378
5374
  } = e;
5379
5375
  return te.createElement(Dt.Provider, {
5380
5376
  value: Eo
5381
5377
  }, te.createElement(Jt.Provider, {
5382
- value: jl
5378
+ value: Pa
5383
5379
  }, t));
5384
5380
  }
5385
- const Bl = {
5381
+ const $a = {
5386
5382
  position: "fixed",
5387
5383
  touchAction: "none"
5388
- }, Hl = (e) => Un(e) ? "transform 250ms ease" : void 0, Ul = /* @__PURE__ */ Tn((e, t) => {
5384
+ }, Ba = (e) => Un(e) ? "transform 250ms ease" : void 0, Ha = /* @__PURE__ */ Tn((e, t) => {
5389
5385
  let {
5390
5386
  as: n,
5391
5387
  activatorEvent: r,
5392
5388
  adjustScale: o,
5393
5389
  children: i,
5394
5390
  className: s,
5395
- rect: l,
5396
- style: a,
5391
+ rect: a,
5392
+ style: l,
5397
5393
  transform: c,
5398
- transition: u = Hl
5394
+ transition: u = Ba
5399
5395
  } = e;
5400
- if (!l)
5396
+ if (!a)
5401
5397
  return null;
5402
5398
  const d = o ? c : {
5403
5399
  ...c,
5404
5400
  scaleX: 1,
5405
5401
  scaleY: 1
5406
5402
  }, h = {
5407
- ...Bl,
5408
- width: l.width,
5409
- height: l.height,
5410
- top: l.top,
5411
- left: l.left,
5403
+ ...$a,
5404
+ width: a.width,
5405
+ height: a.height,
5406
+ top: a.top,
5407
+ left: a.left,
5412
5408
  transform: xt.Transform.toString(d),
5413
- transformOrigin: o && r ? Ts(r, l) : void 0,
5409
+ transformOrigin: o && r ? Rs(r, a) : void 0,
5414
5410
  transition: typeof u == "function" ? u(r) : u,
5415
- ...a
5411
+ ...l
5416
5412
  };
5417
5413
  return te.createElement(n, {
5418
5414
  className: s,
5419
5415
  style: h,
5420
5416
  ref: t
5421
5417
  }, i);
5422
- }), Vl = (e) => (t) => {
5418
+ }), Ua = (e) => (t) => {
5423
5419
  let {
5424
5420
  active: n,
5425
5421
  dragOverlay: r
@@ -5429,17 +5425,17 @@ const Bl = {
5429
5425
  className: s
5430
5426
  } = e;
5431
5427
  if (i != null && i.active)
5432
- for (const [l, a] of Object.entries(i.active))
5433
- a !== void 0 && (o[l] = n.node.style.getPropertyValue(l), n.node.style.setProperty(l, a));
5428
+ for (const [a, l] of Object.entries(i.active))
5429
+ l !== void 0 && (o[a] = n.node.style.getPropertyValue(a), n.node.style.setProperty(a, l));
5434
5430
  if (i != null && i.dragOverlay)
5435
- for (const [l, a] of Object.entries(i.dragOverlay))
5436
- a !== void 0 && r.node.style.setProperty(l, a);
5431
+ for (const [a, l] of Object.entries(i.dragOverlay))
5432
+ l !== void 0 && r.node.style.setProperty(a, l);
5437
5433
  return s != null && s.active && n.node.classList.add(s.active), s != null && s.dragOverlay && r.node.classList.add(s.dragOverlay), function() {
5438
- for (const [a, c] of Object.entries(o))
5439
- n.node.style.setProperty(a, c);
5434
+ for (const [l, c] of Object.entries(o))
5435
+ n.node.style.setProperty(l, c);
5440
5436
  s != null && s.active && n.node.classList.remove(s.active);
5441
5437
  };
5442
- }, Gl = (e) => {
5438
+ }, Va = (e) => {
5443
5439
  let {
5444
5440
  transform: {
5445
5441
  initial: t,
@@ -5451,11 +5447,11 @@ const Bl = {
5451
5447
  }, {
5452
5448
  transform: xt.Transform.toString(n)
5453
5449
  }];
5454
- }, Wl = {
5450
+ }, Ga = {
5455
5451
  duration: 250,
5456
5452
  easing: "ease",
5457
- keyframes: Gl,
5458
- sideEffects: /* @__PURE__ */ Vl({
5453
+ keyframes: Va,
5454
+ sideEffects: /* @__PURE__ */ Ua({
5459
5455
  styles: {
5460
5456
  active: {
5461
5457
  opacity: "0"
@@ -5463,7 +5459,7 @@ const Bl = {
5463
5459
  }
5464
5460
  })
5465
5461
  };
5466
- function _l(e) {
5462
+ function Wa(e) {
5467
5463
  let {
5468
5464
  config: t,
5469
5465
  draggableNodes: n,
@@ -5473,12 +5469,12 @@ function _l(e) {
5473
5469
  return qt((i, s) => {
5474
5470
  if (t === null)
5475
5471
  return;
5476
- const l = n.get(i);
5477
- if (!l)
5478
- return;
5479
- const a = l.node.current;
5472
+ const a = n.get(i);
5480
5473
  if (!a)
5481
5474
  return;
5475
+ const l = a.node.current;
5476
+ if (!l)
5477
+ return;
5482
5478
  const c = So(s);
5483
5479
  if (!c)
5484
5480
  return;
@@ -5487,13 +5483,13 @@ function _l(e) {
5487
5483
  } = ke(s).getComputedStyle(s), d = po(u);
5488
5484
  if (!d)
5489
5485
  return;
5490
- const h = typeof t == "function" ? t : ql(t);
5491
- return xo(a, o.draggable.measure), h({
5486
+ const h = typeof t == "function" ? t : _a(t);
5487
+ return xo(l, o.draggable.measure), h({
5492
5488
  active: {
5493
5489
  id: i,
5494
- data: l.data,
5495
- node: a,
5496
- rect: o.draggable.measure(a)
5490
+ data: a.data,
5491
+ node: l,
5492
+ rect: o.draggable.measure(l)
5497
5493
  },
5498
5494
  draggableNodes: n,
5499
5495
  dragOverlay: {
@@ -5506,41 +5502,41 @@ function _l(e) {
5506
5502
  });
5507
5503
  });
5508
5504
  }
5509
- function ql(e) {
5505
+ function _a(e) {
5510
5506
  const {
5511
5507
  duration: t,
5512
5508
  easing: n,
5513
5509
  sideEffects: r,
5514
5510
  keyframes: o
5515
5511
  } = {
5516
- ...Wl,
5512
+ ...Ga,
5517
5513
  ...e
5518
5514
  };
5519
5515
  return (i) => {
5520
5516
  let {
5521
5517
  active: s,
5522
- dragOverlay: l,
5523
- transform: a,
5518
+ dragOverlay: a,
5519
+ transform: l,
5524
5520
  ...c
5525
5521
  } = i;
5526
5522
  if (!t)
5527
5523
  return;
5528
5524
  const u = {
5529
- x: l.rect.left - s.rect.left,
5530
- y: l.rect.top - s.rect.top
5525
+ x: a.rect.left - s.rect.left,
5526
+ y: a.rect.top - s.rect.top
5531
5527
  }, d = {
5532
- scaleX: a.scaleX !== 1 ? s.rect.width * a.scaleX / l.rect.width : 1,
5533
- scaleY: a.scaleY !== 1 ? s.rect.height * a.scaleY / l.rect.height : 1
5528
+ scaleX: l.scaleX !== 1 ? s.rect.width * l.scaleX / a.rect.width : 1,
5529
+ scaleY: l.scaleY !== 1 ? s.rect.height * l.scaleY / a.rect.height : 1
5534
5530
  }, h = {
5535
- x: a.x - u.x,
5536
- y: a.y - u.y,
5531
+ x: l.x - u.x,
5532
+ y: l.y - u.y,
5537
5533
  ...d
5538
5534
  }, g = o({
5539
5535
  ...c,
5540
5536
  active: s,
5541
- dragOverlay: l,
5537
+ dragOverlay: a,
5542
5538
  transform: {
5543
- initial: a,
5539
+ initial: l,
5544
5540
  final: h
5545
5541
  }
5546
5542
  }), [x] = g, w = g[g.length - 1];
@@ -5548,9 +5544,9 @@ function ql(e) {
5548
5544
  return;
5549
5545
  const p = r == null ? void 0 : r({
5550
5546
  active: s,
5551
- dragOverlay: l,
5547
+ dragOverlay: a,
5552
5548
  ...c
5553
- }), m = l.node.animate(g, {
5549
+ }), m = a.node.animate(g, {
5554
5550
  duration: t,
5555
5551
  easing: n,
5556
5552
  fill: "forwards"
@@ -5563,13 +5559,13 @@ function ql(e) {
5563
5559
  };
5564
5560
  }
5565
5561
  let xr = 0;
5566
- function Yl(e) {
5562
+ function qa(e) {
5567
5563
  return q(() => {
5568
5564
  if (e != null)
5569
5565
  return xr++, xr;
5570
5566
  }, [e]);
5571
5567
  }
5572
- const Kl = /* @__PURE__ */ te.memo((e) => {
5568
+ const Ya = /* @__PURE__ */ te.memo((e) => {
5573
5569
  let {
5574
5570
  adjustScale: t = !1,
5575
5571
  children: n,
@@ -5577,8 +5573,8 @@ const Kl = /* @__PURE__ */ te.memo((e) => {
5577
5573
  style: o,
5578
5574
  transition: i,
5579
5575
  modifiers: s,
5580
- wrapperElement: l = "div",
5581
- className: a,
5576
+ wrapperElement: a = "div",
5577
+ className: l,
5582
5578
  zIndex: c = 999
5583
5579
  } = e;
5584
5580
  const {
@@ -5594,7 +5590,7 @@ const Kl = /* @__PURE__ */ te.memo((e) => {
5594
5590
  scrollableAncestors: A,
5595
5591
  scrollableAncestorRects: M,
5596
5592
  windowRect: T
5597
- } = zl(), y = He(Jt), S = Yl(d == null ? void 0 : d.id), v = Do(s, {
5593
+ } = Na(), y = He(Jt), S = qa(d == null ? void 0 : d.id), v = Do(s, {
5598
5594
  activatorEvent: u,
5599
5595
  active: d,
5600
5596
  activeNodeRect: h,
@@ -5606,22 +5602,22 @@ const Kl = /* @__PURE__ */ te.memo((e) => {
5606
5602
  scrollableAncestorRects: M,
5607
5603
  transform: y,
5608
5604
  windowRect: T
5609
- }), L = Kn(h), b = _l({
5605
+ }), L = Kn(h), b = Wa({
5610
5606
  config: r,
5611
5607
  draggableNodes: x,
5612
5608
  droppableContainers: w,
5613
5609
  measuringConfiguration: E
5614
5610
  }), D = L ? p.setRef : void 0;
5615
- return te.createElement($l, null, te.createElement(Pl, {
5611
+ return te.createElement(ja, null, te.createElement(Oa, {
5616
5612
  animation: b
5617
- }, d && S ? te.createElement(Ul, {
5613
+ }, d && S ? te.createElement(Ha, {
5618
5614
  key: S,
5619
5615
  id: d.id,
5620
5616
  ref: D,
5621
- as: l,
5617
+ as: a,
5622
5618
  activatorEvent: u,
5623
5619
  adjustScale: t,
5624
- className: a,
5620
+ className: l,
5625
5621
  transition: i,
5626
5622
  rect: L,
5627
5623
  style: {
@@ -5637,7 +5633,7 @@ function Vt(e) {
5637
5633
  const t = e.data.current;
5638
5634
  return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
5639
5635
  }
5640
- const Xl = [H.Down, H.Right, H.Up, H.Left], Jl = (e, t) => {
5636
+ const Ka = [H.Down, H.Right, H.Up, H.Left], Xa = (e, t) => {
5641
5637
  let {
5642
5638
  context: {
5643
5639
  active: n,
@@ -5645,13 +5641,13 @@ const Xl = [H.Down, H.Right, H.Up, H.Left], Jl = (e, t) => {
5645
5641
  droppableRects: o,
5646
5642
  droppableContainers: i,
5647
5643
  over: s,
5648
- scrollableAncestors: l
5644
+ scrollableAncestors: a
5649
5645
  }
5650
5646
  } = t;
5651
- if (Xl.includes(e.code)) {
5647
+ if (Ka.includes(e.code)) {
5652
5648
  if (e.preventDefault(), !n || !r)
5653
5649
  return;
5654
- const a = [];
5650
+ const l = [];
5655
5651
  i.getEnabled().forEach((d) => {
5656
5652
  if (!d || d != null && d.disabled)
5657
5653
  return;
@@ -5659,29 +5655,29 @@ const Xl = [H.Down, H.Right, H.Up, H.Left], Jl = (e, t) => {
5659
5655
  if (h)
5660
5656
  switch (e.code) {
5661
5657
  case H.Down:
5662
- r.top < h.top && a.push(d);
5658
+ r.top < h.top && l.push(d);
5663
5659
  break;
5664
5660
  case H.Up:
5665
- r.top > h.top && a.push(d);
5661
+ r.top > h.top && l.push(d);
5666
5662
  break;
5667
5663
  case H.Left:
5668
- r.left > h.left && a.push(d);
5664
+ r.left > h.left && l.push(d);
5669
5665
  break;
5670
5666
  case H.Right:
5671
- r.left < h.left && a.push(d);
5667
+ r.left < h.left && l.push(d);
5672
5668
  break;
5673
5669
  }
5674
5670
  });
5675
- const c = zs({
5671
+ const c = Ns({
5676
5672
  collisionRect: r,
5677
5673
  droppableRects: o,
5678
- droppableContainers: a
5674
+ droppableContainers: l
5679
5675
  });
5680
5676
  let u = fo(c, "id");
5681
5677
  if (u === (s == null ? void 0 : s.id) && c.length > 1 && (u = c[1].id), u != null) {
5682
5678
  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
5679
  if (x && g && d && h) {
5684
- const p = Kt(x).some((y, S) => l[S] !== y), m = Lo(d, h), E = Ql(d, h), A = p || !m ? {
5680
+ const p = Kt(x).some((y, S) => a[S] !== y), m = Lo(d, h), E = Ja(d, h), A = p || !m ? {
5685
5681
  x: 0,
5686
5682
  y: 0
5687
5683
  } : {
@@ -5699,7 +5695,7 @@ const Xl = [H.Down, H.Right, H.Up, H.Left], Jl = (e, t) => {
5699
5695
  function Lo(e, t) {
5700
5696
  return !Vt(e) || !Vt(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
5701
5697
  }
5702
- function Ql(e, t) {
5698
+ function Ja(e, t) {
5703
5699
  return !Vt(e) || !Vt(t) || !Lo(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
5704
5700
  }
5705
5701
  function kr(e) {
@@ -5708,7 +5704,7 @@ function kr(e) {
5708
5704
  const t = (n = e[0].data) == null ? void 0 : n.zone;
5709
5705
  return t === "before" || t === "after" || t === "into" ? t : null;
5710
5706
  }
5711
- function Zl(e) {
5707
+ function Qa(e) {
5712
5708
  const {
5713
5709
  onReorder: t,
5714
5710
  onGroupReorder: n,
@@ -5716,17 +5712,17 @@ function Zl(e) {
5716
5712
  onDropIntoGroupAtPosition: o,
5717
5713
  onRemoveFromGroup: i,
5718
5714
  findParentGroup: s
5719
- } = e, [l, a] = V(null), [c, u] = V(null), [d, h] = V(null), g = G(null), x = Rs(
5715
+ } = e, [a, l] = V(null), [c, u] = V(null), [d, h] = V(null), g = G(null), x = Ls(
5720
5716
  cr(Yn, {
5721
5717
  activationConstraint: {
5722
5718
  distance: 5
5723
5719
  }
5724
5720
  }),
5725
5721
  cr(_n, {
5726
- coordinateGetter: Jl
5722
+ coordinateGetter: Xa
5727
5723
  })
5728
5724
  ), w = N((T) => {
5729
- a(String(T.active.id));
5725
+ l(String(T.active.id));
5730
5726
  }, []), p = N(
5731
5727
  (T) => {
5732
5728
  const { over: y, collisions: S } = T;
@@ -5742,7 +5738,7 @@ function Zl(e) {
5742
5738
  },
5743
5739
  []
5744
5740
  ), E = N(() => {
5745
- g.current = null, a(null), u(null), h(null);
5741
+ g.current = null, l(null), u(null), h(null);
5746
5742
  }, []), A = N(
5747
5743
  (T) => {
5748
5744
  const { active: y, over: S } = T, v = g.current;
@@ -5777,7 +5773,7 @@ function Zl(e) {
5777
5773
  E();
5778
5774
  }, [E]);
5779
5775
  return {
5780
- activeId: l,
5776
+ activeId: a,
5781
5777
  overId: c,
5782
5778
  dropPosition: d,
5783
5779
  sensors: x,
@@ -5788,23 +5784,23 @@ function Zl(e) {
5788
5784
  onDragCancel: M
5789
5785
  };
5790
5786
  }
5791
- const ea = (e) => {
5787
+ const Za = (e) => {
5792
5788
  var h, g;
5793
5789
  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;
5790
+ let o = Ps(e);
5791
+ if (o.length === 0 && (o = Is(e)), o.length === 0 || !t) return o;
5796
5792
  const i = o[0];
5797
5793
  if (String(i.id).startsWith("group-footer::"))
5798
5794
  return [{ ...i, data: { ...i.data, zone: "after" } }];
5799
5795
  const s = r.get(i.id);
5800
5796
  if (!s) return o;
5801
- const l = t.y - s.top, a = s.height, c = n.find((x) => x.id === i.id), u = ((g = (h = c == null ? void 0 : c.data) == null ? void 0 : h.current) == null ? void 0 : g.isGroup) === !0;
5797
+ const a = t.y - s.top, l = s.height, c = n.find((x) => x.id === i.id), u = ((g = (h = c == null ? void 0 : c.data) == null ? void 0 : h.current) == null ? void 0 : g.isGroup) === !0;
5802
5798
  let d;
5803
- return u ? l < a * 0.25 ? d = "before" : l > a * 0.75 ? d = "after" : d = "into" : d = l < a / 2 ? "before" : "after", [{
5799
+ return u ? a < l * 0.25 ? d = "before" : a > l * 0.75 ? d = "after" : d = "into" : d = a < l / 2 ? "before" : "after", [{
5804
5800
  ...i,
5805
5801
  data: { ...i.data, zone: d }
5806
5802
  }];
5807
- }, ta = ({
5803
+ }, el = ({
5808
5804
  layer: e,
5809
5805
  isOver: t,
5810
5806
  dropPosition: n,
@@ -5812,13 +5808,13 @@ const ea = (e) => {
5812
5808
  showPreviewImages: o,
5813
5809
  previewDisplaySize: i,
5814
5810
  onSelect: s,
5815
- onToggleVisibility: l,
5816
- onToggleLock: a,
5811
+ onToggleVisibility: a,
5812
+ onToggleLock: l,
5817
5813
  onDuplicate: c,
5818
5814
  onDelete: u,
5819
5815
  deleteSuppressed: d
5820
5816
  }) => {
5821
- const { attributes: h, listeners: g, setNodeRef: x, isDragging: w } = Nl({ id: e.id }), { setNodeRef: p } = Mo({ id: e.id, data: { isGroup: !!e.isGroup } }), m = N((L) => {
5817
+ const { attributes: h, listeners: g, setNodeRef: x, isDragging: w } = Ia({ id: e.id }), { setNodeRef: p } = Mo({ id: e.id, data: { isGroup: !!e.isGroup } }), m = N((L) => {
5822
5818
  x(L), p(L);
5823
5819
  }, [x, p]), E = e.isGroup, A = e.depth > 0, M = A ? e.depth * 24 : 0, T = {
5824
5820
  opacity: w ? 0.3 : 1,
@@ -5946,7 +5942,7 @@ const ea = (e) => {
5946
5942
  Be,
5947
5943
  {
5948
5944
  title: e.visible ? "Hide" : "Show",
5949
- onClick: () => l(e.id),
5945
+ onClick: () => a(e.id),
5950
5946
  style: { opacity: e.visible ? 1 : 0.4 },
5951
5947
  children: /* @__PURE__ */ f(B, { icon: e.visible ? U.eye : U.eyeOff, className: "sc:size-6" })
5952
5948
  }
@@ -5955,7 +5951,7 @@ const ea = (e) => {
5955
5951
  Be,
5956
5952
  {
5957
5953
  title: e.locked ? "Unlock" : "Lock",
5958
- onClick: () => a(e.id),
5954
+ onClick: () => l(e.id),
5959
5955
  style: { opacity: e.locked ? 1 : 0.4 },
5960
5956
  children: /* @__PURE__ */ f(B, { icon: e.locked ? U.lock : U.lockOpen, className: "sc:size-6" })
5961
5957
  }
@@ -5989,7 +5985,7 @@ const ea = (e) => {
5989
5985
  title: e,
5990
5986
  children: r
5991
5987
  }
5992
- ), na = ({ groupId: e, isOver: t, depth: n }) => {
5988
+ ), tl = ({ groupId: e, isOver: t, depth: n }) => {
5993
5989
  const { setNodeRef: r } = Mo({ id: `group-footer::${e}` }), o = (n + 1) * 24;
5994
5990
  return /* @__PURE__ */ f(
5995
5991
  "div",
@@ -6005,7 +6001,7 @@ const ea = (e) => {
6005
6001
  }
6006
6002
  }
6007
6003
  );
6008
- }, ra = ({ layer: e, showPreviewImages: t, previewDisplaySize: n }) => /* @__PURE__ */ j(
6004
+ }, nl = ({ layer: e, showPreviewImages: t, previewDisplaySize: n }) => /* @__PURE__ */ j(
6009
6005
  "div",
6010
6006
  {
6011
6007
  style: {
@@ -6055,7 +6051,7 @@ const ea = (e) => {
6055
6051
  /* @__PURE__ */ f("span", { style: { fontSize: 13, color: "var(--foreground, #333)" }, children: e.name })
6056
6052
  ]
6057
6053
  }
6058
- ), oa = ({
6054
+ ), rl = ({
6059
6055
  width: e = 250,
6060
6056
  height: t,
6061
6057
  showPreviewImages: n = !0,
@@ -6063,10 +6059,10 @@ const ea = (e) => {
6063
6059
  enableGrouping: o = !1,
6064
6060
  style: i = {},
6065
6061
  className: s = "",
6066
- showHeader: l = !0,
6067
- ...a
6062
+ showHeader: a = !0,
6063
+ ...l
6068
6064
  }) => {
6069
- const { activeArtboard: c } = ms(), u = (c == null ? void 0 : c.previewBackgroundColor) || (c == null ? void 0 : c.backgroundColor) || "transparent", d = 80, h = 160, {
6065
+ const { activeArtboard: c } = gs(), u = (c == null ? void 0 : c.previewBackgroundColor) || (c == null ? void 0 : c.backgroundColor) || "transparent", d = 80, h = 160, {
6070
6066
  layers: g,
6071
6067
  flatLayers: x,
6072
6068
  selectLayer: w,
@@ -6082,8 +6078,8 @@ const ea = (e) => {
6082
6078
  findElementById: L,
6083
6079
  findParentGroup: b,
6084
6080
  generateAllPreviews: D
6085
- } = ei({
6086
- ...a,
6081
+ } = Zo({
6082
+ ...l,
6087
6083
  previewSize: h,
6088
6084
  previewBackgroundColor: u
6089
6085
  });
@@ -6108,7 +6104,7 @@ const ea = (e) => {
6108
6104
  xe && !Ce ? S(Q, se, $) : M(Q, se, $);
6109
6105
  },
6110
6106
  [b, S, M]
6111
- ), J = Zl({
6107
+ ), J = Qa({
6112
6108
  onReorder: pe,
6113
6109
  onDropIntoGroup: y,
6114
6110
  onDropIntoGroupAtPosition: (Q, se) => y(Q, se),
@@ -6117,7 +6113,7 @@ const ea = (e) => {
6117
6113
  findParentGroup: b
6118
6114
  }), re = (Q) => [...Q].reverse().map(($) => /* @__PURE__ */ j(te.Fragment, { children: [
6119
6115
  /* @__PURE__ */ f(
6120
- ta,
6116
+ el,
6121
6117
  {
6122
6118
  layer: $,
6123
6119
  isOver: J.overId === $.id,
@@ -6135,7 +6131,7 @@ const ea = (e) => {
6135
6131
  ),
6136
6132
  $.children && re($.children),
6137
6133
  $.isGroup && /* @__PURE__ */ f(
6138
- na,
6134
+ tl,
6139
6135
  {
6140
6136
  groupId: $.id,
6141
6137
  isOver: J.overId === `group-footer::${$.id}`,
@@ -6144,7 +6140,7 @@ const ea = (e) => {
6144
6140
  )
6145
6141
  ] }, $.id)), Y = (Q) => [...Q].reverse().map(($) => /* @__PURE__ */ j(te.Fragment, { children: [
6146
6142
  /* @__PURE__ */ f(
6147
- ia,
6143
+ ol,
6148
6144
  {
6149
6145
  layer: $,
6150
6146
  showPreviewImages: n,
@@ -6174,7 +6170,7 @@ const ea = (e) => {
6174
6170
  ...ue
6175
6171
  },
6176
6172
  children: [
6177
- (l || o) && /* @__PURE__ */ j(
6173
+ (a || o) && /* @__PURE__ */ j(
6178
6174
  "div",
6179
6175
  {
6180
6176
  style: {
@@ -6189,12 +6185,12 @@ const ea = (e) => {
6189
6185
  justifyContent: "space-between"
6190
6186
  },
6191
6187
  children: [
6192
- l && /* @__PURE__ */ j("span", { children: [
6188
+ a && /* @__PURE__ */ j("span", { children: [
6193
6189
  "Layers (",
6194
6190
  x.length,
6195
6191
  ")"
6196
6192
  ] }),
6197
- !l && /* @__PURE__ */ f("span", {}),
6193
+ !a && /* @__PURE__ */ f("span", {}),
6198
6194
  o && /* @__PURE__ */ j(
6199
6195
  "button",
6200
6196
  {
@@ -6221,10 +6217,10 @@ const ea = (e) => {
6221
6217
  ),
6222
6218
  /* @__PURE__ */ j("div", { style: { flex: 1, overflow: "auto", minHeight: 0 }, children: [
6223
6219
  g.length > 0 ? r ? /* @__PURE__ */ j(
6224
- Rl,
6220
+ La,
6225
6221
  {
6226
6222
  sensors: J.sensors,
6227
- collisionDetection: ea,
6223
+ collisionDetection: Za,
6228
6224
  onDragStart: J.onDragStart,
6229
6225
  onDragMove: J.onDragMove,
6230
6226
  onDragOver: J.onDragOver,
@@ -6232,8 +6228,8 @@ const ea = (e) => {
6232
6228
  onDragCancel: J.onDragCancel,
6233
6229
  children: [
6234
6230
  re(g),
6235
- /* @__PURE__ */ f(Kl, { dropAnimation: null, children: ee ? /* @__PURE__ */ f(
6236
- ra,
6231
+ /* @__PURE__ */ f(Ya, { dropAnimation: null, children: ee ? /* @__PURE__ */ f(
6232
+ nl,
6237
6233
  {
6238
6234
  layer: ee,
6239
6235
  showPreviewImages: n,
@@ -6270,7 +6266,7 @@ const ea = (e) => {
6270
6266
  ]
6271
6267
  }
6272
6268
  );
6273
- }, ia = ({ layer: e, showPreviewImages: t, previewDisplaySize: n, onSelect: r, onToggleVisibility: o, onToggleLock: i, onDuplicate: s, onDelete: l, deleteSuppressed: a }) => {
6269
+ }, ol = ({ layer: e, showPreviewImages: t, previewDisplaySize: n, onSelect: r, onToggleVisibility: o, onToggleLock: i, onDuplicate: s, onDelete: a, deleteSuppressed: l }) => {
6274
6270
  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
6271
  paddingLeft: u + 8,
6276
6272
  paddingRight: 8,
@@ -6343,11 +6339,11 @@ const ea = (e) => {
6343
6339
  }
6344
6340
  ),
6345
6341
  /* @__PURE__ */ f(Be, { title: "Duplicate", onClick: () => s(e.id), children: /* @__PURE__ */ f(B, { icon: U.copy, className: "sc:size-6" }) }),
6346
- !a && /* @__PURE__ */ f(
6342
+ !l && /* @__PURE__ */ f(
6347
6343
  Be,
6348
6344
  {
6349
6345
  title: "Delete",
6350
- onClick: () => l(e.id),
6346
+ onClick: () => a(e.id),
6351
6347
  style: { color: "var(--error, #ef4444)" },
6352
6348
  children: /* @__PURE__ */ f(B, { icon: U.trash, className: "sc:size-6" })
6353
6349
  }
@@ -6355,7 +6351,7 @@ const ea = (e) => {
6355
6351
  ] })
6356
6352
  ] }, e.id);
6357
6353
  };
6358
- class Pa {
6354
+ class Ol {
6359
6355
  constructor() {
6360
6356
  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));
6361
6357
  }
@@ -6439,9 +6435,9 @@ class Pa {
6439
6435
  for (const t of [...this.listeners]) t();
6440
6436
  }
6441
6437
  }
6442
- const sa = Xe(null);
6438
+ const il = Xe(null);
6443
6439
  function Ro(e) {
6444
- const t = He(sa);
6440
+ const t = He(il);
6445
6441
  if (!t)
6446
6442
  throw new vn(
6447
6443
  "E_OUTSIDE_ROOT",
@@ -6457,7 +6453,7 @@ function Xn(e) {
6457
6453
  [t.registry, n, e]
6458
6454
  );
6459
6455
  }
6460
- function ja(e) {
6456
+ function Pl(e) {
6461
6457
  return {
6462
6458
  reportInvariant(t) {
6463
6459
  if (_o()) throw t;
@@ -6468,7 +6464,7 @@ function ja(e) {
6468
6464
  }
6469
6465
  };
6470
6466
  }
6471
- function la(e) {
6467
+ function sl(e) {
6472
6468
  const { elements: t } = e.getState();
6473
6469
  return t.map((n, r) => {
6474
6470
  const o = n, i = o.transformType ?? "custom", s = o.name ?? i.charAt(0).toUpperCase() + i.slice(1);
@@ -6480,23 +6476,23 @@ function la(e) {
6480
6476
  };
6481
6477
  });
6482
6478
  }
6483
- function aa(e) {
6479
+ function al(e) {
6484
6480
  const t = G(null), n = () => {
6485
6481
  var i;
6486
- const r = la(e), o = r.map((s) => `${s.key}|${s.kind}|${s.visible}`).join(`
6482
+ const r = sl(e), o = r.map((s) => `${s.key}|${s.kind}|${s.visible}`).join(`
6487
6483
  `);
6488
6484
  return ((i = t.current) == null ? void 0 : i.key) !== o && (t.current = { key: o, rows: r }), t.current.rows;
6489
6485
  };
6490
6486
  return Dr(e.subscribe, n, n);
6491
6487
  }
6492
- function ca(e) {
6488
+ function ll(e) {
6493
6489
  return e === "image" ? U.image : e === "shape" ? U.shapes : e === "group" ? "lucide:folder-open" : U.text;
6494
6490
  }
6495
- function da({
6491
+ function cl({
6496
6492
  store: e,
6497
6493
  direction: t
6498
6494
  }) {
6499
- const r = [...aa(e)].reverse();
6495
+ const r = [...al(e)].reverse();
6500
6496
  return /* @__PURE__ */ f(
6501
6497
  "div",
6502
6498
  {
@@ -6520,7 +6516,7 @@ function da({
6520
6516
  opacity: o.visible ? 1 : 0.4
6521
6517
  },
6522
6518
  children: [
6523
- /* @__PURE__ */ f(B, { icon: ca(o.kind), style: { fontSize: 18, color: "var(--text-secondary, #888)", flexShrink: 0 } }),
6519
+ /* @__PURE__ */ f(B, { icon: ll(o.kind), style: { fontSize: 18, color: "var(--text-secondary, #888)", flexShrink: 0 } }),
6524
6520
  /* @__PURE__ */ f(
6525
6521
  "span",
6526
6522
  {
@@ -6541,7 +6537,7 @@ function da({
6541
6537
  }
6542
6538
  );
6543
6539
  }
6544
- function $a({
6540
+ function jl({
6545
6541
  direction: e = "vertical",
6546
6542
  className: t,
6547
6543
  style: n
@@ -6551,7 +6547,7 @@ function $a({
6551
6547
  () => o.hasCanvas(),
6552
6548
  () => o.hasCanvas()
6553
6549
  );
6554
- return /* @__PURE__ */ f("div", { "data-sc-part": "layers", "data-sc-direction": e, className: t, style: n, children: i ? /* @__PURE__ */ f(oa, { style: { width: "100%" } }) : /* @__PURE__ */ f(da, { store: r.store, direction: e }) });
6550
+ return /* @__PURE__ */ f("div", { "data-sc-part": "layers", "data-sc-direction": e, className: t, style: n, children: i ? /* @__PURE__ */ f(rl, { style: { width: "100%" } }) : /* @__PURE__ */ f(cl, { store: r.store, direction: e }) });
6555
6551
  }
6556
6552
  const To = ({
6557
6553
  trigger: e,
@@ -6561,12 +6557,12 @@ const To = ({
6561
6557
  position: o = "bottom",
6562
6558
  align: i = "start",
6563
6559
  offset: s = 8,
6564
- protectClick: l = !0,
6565
- className: a = "",
6560
+ protectClick: a = !0,
6561
+ className: l = "",
6566
6562
  contentClassName: c = ""
6567
6563
  }) => {
6568
6564
  const u = G(null), d = G(null), h = G(null), [g, x] = V({}), [w, p] = V(!1), m = (A) => {
6569
- A.stopPropagation(), !n && l && Qi.protectNextClick(), r(!n);
6565
+ A.stopPropagation(), !n && a && Ji.protectNextClick(), r(!n);
6570
6566
  };
6571
6567
  _(() => {
6572
6568
  if (!n) return;
@@ -6636,7 +6632,7 @@ const To = ({
6636
6632
  children: t
6637
6633
  }
6638
6634
  );
6639
- return /* @__PURE__ */ j("div", { className: `sc:relative sc:inline-flex ${a}`.trim(), ref: u, children: [
6635
+ return /* @__PURE__ */ j("div", { className: `sc:relative sc:inline-flex ${l}`.trim(), ref: u, children: [
6640
6636
  /* @__PURE__ */ f("div", { ref: d, onClick: m, children: e }),
6641
6637
  E && Nn(E, document.body)
6642
6638
  ] });
@@ -6659,8 +6655,8 @@ const To = ({
6659
6655
  disabled: o = !1,
6660
6656
  onClick: i,
6661
6657
  className: s = "",
6662
- children: l,
6663
- ...a
6658
+ children: a,
6659
+ ...l
6664
6660
  }) => {
6665
6661
  const c = [
6666
6662
  "sc:flex sc:items-center sc:gap-md",
@@ -6677,9 +6673,9 @@ const To = ({
6677
6673
  ], d = [...c, ...u, s].filter(Boolean).join(" ");
6678
6674
  return /* @__PURE__ */ j("button", { role: "menuitem", className: d, onClick: () => {
6679
6675
  !o && i && i();
6680
- }, disabled: o, type: "button", ...a, children: [
6676
+ }, disabled: o, type: "button", ...l, children: [
6681
6677
  e && /* @__PURE__ */ f("span", { className: "sc:flex sc:shrink-0 sc:items-center", children: e }),
6682
- /* @__PURE__ */ f("span", { className: "sc:flex-1", children: l || t }),
6678
+ /* @__PURE__ */ f("span", { className: "sc:flex-1", children: a || t }),
6683
6679
  n && /* @__PURE__ */ f("span", { className: "sc:ml-auto sc:text-sm sc:text-text-muted", children: n }),
6684
6680
  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" }) })
6685
6681
  ] });
@@ -6691,7 +6687,7 @@ const To = ({
6691
6687
  { type: "wave", label: "Wave Text", icon: /* @__PURE__ */ f(B, { icon: "lucide:waves", className: "sc:size-[18px]" }) },
6692
6688
  { type: "arch", label: "Arch Text", icon: /* @__PURE__ */ f(B, { icon: "lucide:arrow-up-from-dot", className: "sc:size-[18px]" }) }
6693
6689
  ];
6694
- function ua() {
6690
+ function dl() {
6695
6691
  const [e, t] = te.useState(!1);
6696
6692
  return te.useEffect(() => {
6697
6693
  if (typeof document > "u") return;
@@ -6704,7 +6700,7 @@ function ua() {
6704
6700
  }), () => r.disconnect();
6705
6701
  }, []), e;
6706
6702
  }
6707
- const fa = ({
6703
+ const ul = ({
6708
6704
  isOpen: e,
6709
6705
  onClose: t,
6710
6706
  title: n,
@@ -6712,8 +6708,8 @@ const fa = ({
6712
6708
  children: o,
6713
6709
  placement: i = "bottom",
6714
6710
  height: s,
6715
- maxHeight: l = "70vh",
6716
- width: a,
6711
+ maxHeight: a = "70vh",
6712
+ width: l,
6717
6713
  maxWidth: c = "400px",
6718
6714
  showCloseButton: u = !0,
6719
6715
  headerActions: d,
@@ -6723,7 +6719,7 @@ const fa = ({
6723
6719
  disableOverflowHidden: w = !1,
6724
6720
  "data-testid": p
6725
6721
  }) => {
6726
- const m = i === "bottom" ? s || l : void 0, A = ua() ? 0.65 : 0.4;
6722
+ const m = i === "bottom" ? s || a : void 0, A = dl() ? 0.65 : 0.4;
6727
6723
  return /* @__PURE__ */ f(
6728
6724
  ro,
6729
6725
  {
@@ -6733,7 +6729,7 @@ const fa = ({
6733
6729
  oo,
6734
6730
  {
6735
6731
  placement: i,
6736
- width: a,
6732
+ width: l,
6737
6733
  maxWidth: c,
6738
6734
  hideHandle: g || i !== "bottom",
6739
6735
  showOverlay: !0,
@@ -6800,7 +6796,7 @@ const fa = ({
6800
6796
  )
6801
6797
  }
6802
6798
  );
6803
- }, ha = ({ className: e }) => /* @__PURE__ */ f(
6799
+ }, fl = ({ className: e }) => /* @__PURE__ */ f(
6804
6800
  "svg",
6805
6801
  {
6806
6802
  className: e,
@@ -6813,7 +6809,7 @@ const fa = ({
6813
6809
  "aria-hidden": !0,
6814
6810
  children: /* @__PURE__ */ f("path", { d: "M12 2L21 8L18 19L6 19L3 8L12 2Z" })
6815
6811
  }
6816
- ), pa = ({ className: e }) => /* @__PURE__ */ f(
6812
+ ), hl = ({ className: e }) => /* @__PURE__ */ f(
6817
6813
  "svg",
6818
6814
  {
6819
6815
  className: e,
@@ -6824,12 +6820,12 @@ const fa = ({
6824
6820
  "aria-hidden": !0,
6825
6821
  children: /* @__PURE__ */ f("ellipse", { cx: "12", cy: "12", rx: "9", ry: "6" })
6826
6822
  }
6827
- ), Rn = "sc:size-10", ga = [
6823
+ ), Rn = "sc:size-10", pl = [
6828
6824
  { id: "rectangle", label: "Rectangle", icon: "lucide:square" },
6829
6825
  { id: "circle", label: "Circle", icon: "lucide:circle" },
6830
- { id: "ellipse", label: "Ellipse", reactIcon: /* @__PURE__ */ f(pa, { className: Rn }) },
6826
+ { id: "ellipse", label: "Ellipse", reactIcon: /* @__PURE__ */ f(hl, { className: Rn }) },
6831
6827
  { id: "triangle", label: "Triangle", icon: "lucide:triangle" },
6832
- { id: "polygon", label: "Polygon", reactIcon: /* @__PURE__ */ f(ha, { className: Rn }) },
6828
+ { id: "polygon", label: "Polygon", reactIcon: /* @__PURE__ */ f(fl, { className: Rn }) },
6833
6829
  { id: "star", label: "Star", icon: "lucide:star" },
6834
6830
  { id: "line", label: "Line", icon: "lucide:minus" }
6835
6831
  ], No = ({
@@ -6838,11 +6834,11 @@ const fa = ({
6838
6834
  onSelectType: n,
6839
6835
  currentType: r
6840
6836
  }) => {
6841
- const o = r ? "Change Shape" : "Select Shape", i = r ? "Select a new shape type" : "Choose a shape to add", s = (l) => {
6842
- n(l), t();
6837
+ const o = r ? "Change Shape" : "Select Shape", i = r ? "Select a new shape type" : "Choose a shape to add", s = (a) => {
6838
+ n(a), t();
6843
6839
  };
6844
6840
  return /* @__PURE__ */ j(
6845
- fa,
6841
+ ul,
6846
6842
  {
6847
6843
  isOpen: e,
6848
6844
  onClose: t,
@@ -6871,34 +6867,34 @@ const fa = ({
6871
6867
  {
6872
6868
  className: "sc:grid sc:grid-cols-3 sc:gap-2 sc:p-4",
6873
6869
  "data-testid": "shape-type-list",
6874
- children: ga.map((l) => {
6875
- const a = l.id === r;
6870
+ children: pl.map((a) => {
6871
+ const l = a.id === r;
6876
6872
  return /* @__PURE__ */ j(
6877
6873
  "button",
6878
6874
  {
6879
6875
  type: "button",
6880
- onClick: () => s(l.id),
6881
- "aria-pressed": a,
6882
- "data-testid": `shape-type-${l.id}`,
6883
- className: `sc:aspect-square sc:flex sc:flex-col sc:items-center sc:justify-center sc:gap-2.5 sc:rounded-xl sc:border sc:transition-colors ${a ? "sc:bg-primary/10 sc:border-primary/40" : "sc:bg-transparent sc:border-transparent sc:hover:bg-foreground/[0.04] sc:active:bg-foreground/[0.06]"}`,
6876
+ onClick: () => s(a.id),
6877
+ "aria-pressed": l,
6878
+ "data-testid": `shape-type-${a.id}`,
6879
+ className: `sc:aspect-square sc:flex sc:flex-col sc:items-center sc:justify-center sc:gap-2.5 sc:rounded-xl sc:border sc:transition-colors ${l ? "sc:bg-primary/10 sc:border-primary/40" : "sc:bg-transparent sc:border-transparent sc:hover:bg-foreground/[0.04] sc:active:bg-foreground/[0.06]"}`,
6884
6880
  children: [
6885
6881
  /* @__PURE__ */ f(
6886
6882
  "span",
6887
6883
  {
6888
- className: a ? "sc:text-primary" : "sc:text-foreground/85",
6889
- children: l.reactIcon ? l.reactIcon : /* @__PURE__ */ f(B, { icon: l.icon, className: Rn })
6884
+ className: l ? "sc:text-primary" : "sc:text-foreground/85",
6885
+ children: a.reactIcon ? a.reactIcon : /* @__PURE__ */ f(B, { icon: a.icon, className: Rn })
6890
6886
  }
6891
6887
  ),
6892
6888
  /* @__PURE__ */ f(
6893
6889
  "span",
6894
6890
  {
6895
- className: `sc:text-xs ${a ? "sc:text-primary sc:font-medium" : "sc:text-foreground/70"}`,
6896
- children: l.label
6891
+ className: `sc:text-xs ${l ? "sc:text-primary sc:font-medium" : "sc:text-foreground/70"}`,
6892
+ children: a.label
6897
6893
  }
6898
6894
  )
6899
6895
  ]
6900
6896
  },
6901
- l.id
6897
+ a.id
6902
6898
  );
6903
6899
  })
6904
6900
  }
@@ -6906,7 +6902,7 @@ const fa = ({
6906
6902
  ]
6907
6903
  }
6908
6904
  );
6909
- }, pn = ot("MenuButton"), ma = ({
6905
+ }, pn = ot("MenuButton"), gl = ({
6910
6906
  isLayersPanelOpen: e = !1,
6911
6907
  onToggleLayersPanel: t,
6912
6908
  onOpenImageBrowser: n,
@@ -6916,9 +6912,9 @@ const fa = ({
6916
6912
  className: s
6917
6913
  }) => {
6918
6914
  var S;
6919
- const { get: l } = Mr(), [a, c] = V(!1), [u, d] = V(!1), [h, g] = V(!1), x = G(null), w = async () => {
6915
+ const { get: a } = Mr(), [l, c] = V(!1), [u, d] = V(!1), [h, g] = V(!1), x = G(null), w = async () => {
6920
6916
  try {
6921
- const { ExportManager: v } = await import("./ExportManager-DK7CdI-G.js").then((R) => R.P), { artboardManager: L, elements: b } = l(), D = L.getAllArtboards();
6917
+ const { ExportManager: v } = await import("./ExportManager-DoU4VK6h.js").then((R) => R.S), { artboardManager: L, elements: b } = a(), D = L.getAllArtboards();
6922
6918
  v.exportToJSON(D, b, L), c(!1);
6923
6919
  } catch (v) {
6924
6920
  pn.error("Failed to save workspace:", v), alert("Failed to save workspace. Please try again.");
@@ -6952,7 +6948,7 @@ Do you want to load anyway?`
6952
6948
  • ${O.elementCount} element(s)
6953
6949
 
6954
6950
  This will replace your current workspace. Continue?`
6955
- ) && l().handleLoadWorkspace(D.artboards, D.elements, D.activeArtboardId || null);
6951
+ ) && a().handleLoadWorkspace(D.artboards, D.elements, D.activeArtboardId || null);
6956
6952
  } else
6957
6953
  alert(`Failed to load: ${D.error || "Unknown error"}`);
6958
6954
  } catch (D) {
@@ -6961,7 +6957,7 @@ This will replace your current workspace. Continue?`
6961
6957
  x.current && (x.current.value = "");
6962
6958
  }
6963
6959
  }, E = async () => {
6964
- const { artboardManager: v, elements: L, canvasRef: b } = l();
6960
+ const { artboardManager: v, elements: L, canvasRef: b } = a();
6965
6961
  if (!(b != null && b.current)) {
6966
6962
  alert("Canvas not available for export");
6967
6963
  return;
@@ -6972,7 +6968,7 @@ This will replace your current workspace. Continue?`
6972
6968
  return;
6973
6969
  }
6974
6970
  try {
6975
- const { ExportManager: R } = await import("./ExportManager-DK7CdI-G.js").then((O) => O.P);
6971
+ const { ExportManager: R } = await import("./ExportManager-DoU4VK6h.js").then((O) => O.S);
6976
6972
  await R.exportArtboardToImage(D, L, b.current, {
6977
6973
  format: "png",
6978
6974
  scale: 2,
@@ -6990,9 +6986,9 @@ This will replace your current workspace. Continue?`
6990
6986
  c(!1), d(!1), g(!0);
6991
6987
  return;
6992
6988
  }
6993
- await l().handleAddElement(v), c(!1), d(!1);
6989
+ await a().handleAddElement(v), c(!1), d(!1);
6994
6990
  }, M = async (v) => {
6995
- g(!1), await l().handleAddElement("shape", { shapeType: v });
6991
+ g(!1), await a().handleAddElement("shape", { shapeType: v });
6996
6992
  }, T = Io, y = () => /* @__PURE__ */ f("div", { className: "sc:my-xs sc:h-px sc:bg-border-primary" });
6997
6993
  return /* @__PURE__ */ j(en, { children: [
6998
6994
  /* @__PURE__ */ f(
@@ -7011,7 +7007,7 @@ This will replace your current workspace. Continue?`
7011
7007
  ) }),
7012
7008
  /* @__PURE__ */ f(Ct, { children: /* @__PURE__ */ f("p", { children: i }) })
7013
7009
  ] }),
7014
- isOpen: a,
7010
+ isOpen: l,
7015
7011
  onToggle: c,
7016
7012
  position: "bottom",
7017
7013
  align: "end",
@@ -7056,7 +7052,7 @@ This will replace your current workspace. Continue?`
7056
7052
  icon: /* @__PURE__ */ f(B, { icon: U.download, className: "sc:size-[18px]" }),
7057
7053
  label: "Export Image",
7058
7054
  onClick: E,
7059
- disabled: !((S = l().canvasRef) != null && S.current)
7055
+ disabled: !((S = a().canvasRef) != null && S.current)
7060
7056
  }
7061
7057
  ),
7062
7058
  t && /* @__PURE__ */ j(en, { children: [
@@ -7099,10 +7095,10 @@ This will replace your current workspace. Continue?`
7099
7095
  )
7100
7096
  ] });
7101
7097
  };
7102
- function Ba({ className: e, style: t }) {
7103
- return Xn("Editor.Menu"), /* @__PURE__ */ f("div", { "data-sc-part": "menu", className: e, style: t, children: /* @__PURE__ */ f(ma, {}) });
7098
+ function $l({ className: e, style: t }) {
7099
+ return Xn("Editor.Menu"), /* @__PURE__ */ f("div", { "data-sc-part": "menu", className: e, style: t, children: /* @__PURE__ */ f(gl, {}) });
7104
7100
  }
7105
- const va = () => {
7101
+ const ml = () => {
7106
7102
  const { undo: e, redo: t, canUndo: n, canRedo: r } = qo();
7107
7103
  return /* @__PURE__ */ j("div", { className: "sc-undo-redo", style: { display: "inline-flex", gap: 4 }, children: [
7108
7104
  /* @__PURE__ */ f(
@@ -7127,18 +7123,18 @@ const va = () => {
7127
7123
  )
7128
7124
  ] });
7129
7125
  };
7130
- function Ha({ className: e, style: t }) {
7131
- return Xn("Editor.History"), /* @__PURE__ */ f("div", { "data-sc-part": "history", className: e, style: t, children: /* @__PURE__ */ f(va, {}) });
7126
+ function Bl({ className: e, style: t }) {
7127
+ return Xn("Editor.History"), /* @__PURE__ */ f("div", { "data-sc-part": "history", className: e, style: t, children: /* @__PURE__ */ f(ml, {}) });
7132
7128
  }
7133
- function Ua({ className: e, style: t }) {
7129
+ function Hl({ className: e, style: t }) {
7134
7130
  Xn("Editor.Add");
7135
- const { get: n } = Mr(), [r, o] = V(!1), [i, s] = V(!1), l = async (c) => {
7131
+ const { get: n } = Mr(), [r, o] = V(!1), [i, s] = V(!1), a = async (c) => {
7136
7132
  if (o(!1), c === "shape") {
7137
7133
  s(!0);
7138
7134
  return;
7139
7135
  }
7140
7136
  await n().handleAddElement(c);
7141
- }, a = async (c) => {
7137
+ }, l = async (c) => {
7142
7138
  s(!1), await n().handleAddElement("shape", { shapeType: c });
7143
7139
  };
7144
7140
  return /* @__PURE__ */ j("div", { "data-sc-part": "add", className: e, style: t, children: [
@@ -7158,7 +7154,7 @@ function Ua({ className: e, style: t }) {
7158
7154
  {
7159
7155
  icon: c.icon,
7160
7156
  label: c.label,
7161
- onClick: () => l(c.type)
7157
+ onClick: () => a(c.type)
7162
7158
  },
7163
7159
  c.type
7164
7160
  )) })
@@ -7169,19 +7165,19 @@ function Ua({ className: e, style: t }) {
7169
7165
  {
7170
7166
  isOpen: i,
7171
7167
  onClose: () => s(!1),
7172
- onSelectType: a
7168
+ onSelectType: l
7173
7169
  }
7174
7170
  )
7175
7171
  ] });
7176
7172
  }
7177
- const ya = ot("useExport");
7178
- function Va() {
7173
+ const vl = ot("useExport");
7174
+ function Ul() {
7179
7175
  const {
7180
7176
  artboards: e,
7181
7177
  artboardManager: t,
7182
7178
  elements: n,
7183
7179
  canvasRef: r
7184
- } = In(), [o, i] = V(!1), [s, l] = V(!1), [a, c] = V([]), [u, d] = V({}), [h, g] = V({
7180
+ } = In(), [o, i] = V(!1), [s, a] = V(!1), [l, c] = V([]), [u, d] = V({}), [h, g] = V({
7185
7181
  totalExports: 0,
7186
7182
  avgExportTime: 0,
7187
7183
  isWorkerActive: !1
@@ -7278,11 +7274,11 @@ function Va() {
7278
7274
  i(!1);
7279
7275
  }
7280
7276
  }, [e, M]), y = N(() => {
7281
- x.current++, l(!1), w.current = null;
7277
+ x.current++, a(!1), w.current = null;
7282
7278
  }, []), S = N((v) => {
7283
7279
  x.current++;
7284
7280
  const L = x.current;
7285
- w.current = v, l(!0);
7281
+ w.current = v, a(!0);
7286
7282
  const {
7287
7283
  artboardIds: b,
7288
7284
  interval: D = 500,
@@ -7303,7 +7299,7 @@ function Va() {
7303
7299
  we[oe] = ue;
7304
7300
  d((oe) => ({ ...oe, ...we })), X && X(we);
7305
7301
  } catch (ee) {
7306
- ya.error("[useExport] Continuous export error:", ee);
7302
+ vl.error("[useExport] Continuous export error:", ee);
7307
7303
  }
7308
7304
  };
7309
7305
  (async () => {
@@ -7322,7 +7318,7 @@ function Va() {
7322
7318
  stopContinuousExport: y,
7323
7319
  isExporting: o,
7324
7320
  isContinuousExporting: s,
7325
- progress: a,
7321
+ progress: l,
7326
7322
  latestExports: u,
7327
7323
  supportsWorkerExport: p,
7328
7324
  workerStats: h
@@ -7340,7 +7336,7 @@ async function zo(e, t) {
7340
7336
  }
7341
7337
  return t;
7342
7338
  }
7343
- function ba(e) {
7339
+ function yl(e) {
7344
7340
  return {
7345
7341
  async search({ query: t, page: n, perPage: r = 30 }) {
7346
7342
  const o = new URLSearchParams({
@@ -7371,7 +7367,7 @@ function ba(e) {
7371
7367
  }
7372
7368
  };
7373
7369
  }
7374
- function wa(e) {
7370
+ function bl(e) {
7375
7371
  return {
7376
7372
  async generate({ prompt: t, width: n, height: r, numberResults: o }) {
7377
7373
  const i = await fetch(e, {
@@ -7387,7 +7383,7 @@ function wa(e) {
7387
7383
  }
7388
7384
  };
7389
7385
  }
7390
- function xa(e) {
7386
+ function wl(e) {
7391
7387
  const t = "/api/image-proxy?url=";
7392
7388
  if (!e || !e.startsWith(t)) return e;
7393
7389
  try {
@@ -7396,9 +7392,9 @@ function xa(e) {
7396
7392
  return e;
7397
7393
  }
7398
7394
  }
7399
- function ka(e) {
7395
+ function xl(e) {
7400
7396
  return async function(n) {
7401
- const r = xa(n);
7397
+ const r = wl(n);
7402
7398
  if (!/^https?:\/\//.test(r))
7403
7399
  throw new Error("Background removal isn't available for this image yet");
7404
7400
  const o = await fetch(e, {
@@ -7413,12 +7409,12 @@ function ka(e) {
7413
7409
  };
7414
7410
  }
7415
7411
  const Fo = {}, Oo = Xe(Fo);
7416
- function Ga({ services: e, children: t }) {
7412
+ function Vl({ services: e, children: t }) {
7417
7413
  const n = q(() => e ? {
7418
- imageSearch: e.imageSearch ?? (e.imageSearchUrl ? ba(e.imageSearchUrl) : void 0),
7419
- generate: e.generate ?? (e.generateUrl ? wa(e.generateUrl) : void 0),
7414
+ imageSearch: e.imageSearch ?? (e.imageSearchUrl ? yl(e.imageSearchUrl) : void 0),
7415
+ generate: e.generate ?? (e.generateUrl ? bl(e.generateUrl) : void 0),
7420
7416
  vectors: e.vectors,
7421
- removeBackground: e.removeBackground ?? (e.bgRemoveUrl ? ka(e.bgRemoveUrl) : void 0)
7417
+ removeBackground: e.removeBackground ?? (e.bgRemoveUrl ? xl(e.bgRemoveUrl) : void 0)
7422
7418
  } : Fo, [
7423
7419
  e == null ? void 0 : e.imageSearch,
7424
7420
  e == null ? void 0 : e.imageSearchUrl,
@@ -7430,12 +7426,12 @@ function Ga({ services: e, children: t }) {
7430
7426
  ]);
7431
7427
  return /* @__PURE__ */ f(Oo.Provider, { value: n, children: t });
7432
7428
  }
7433
- function Wa() {
7429
+ function Gl() {
7434
7430
  return He(Oo);
7435
7431
  }
7436
7432
  const Cr = ot("GoogleFontsService");
7437
7433
  let Ze = [], ht = null;
7438
- async function Ca() {
7434
+ async function kl() {
7439
7435
  return Ze.length > 0 ? Ze : ht || (ht = fetch("/google-fonts.json").then((e) => {
7440
7436
  if (!e.ok)
7441
7437
  throw new Error(`HTTP error! status: ${e.status}`);
@@ -7451,7 +7447,7 @@ async function Ca() {
7451
7447
  function gn() {
7452
7448
  return Ze;
7453
7449
  }
7454
- function Sa() {
7450
+ function Cl() {
7455
7451
  return Ze.length > 0;
7456
7452
  }
7457
7453
  function Sr(e) {
@@ -7464,7 +7460,7 @@ function Sr(e) {
7464
7460
  }[e.toLowerCase()] || "display";
7465
7461
  }
7466
7462
  const Er = ot("UnifiedFontService");
7467
- class Ea {
7463
+ class Sl {
7468
7464
  constructor() {
7469
7465
  this.searchCache = /* @__PURE__ */ new Map(), this.previewFontLinks = /* @__PURE__ */ new Set();
7470
7466
  }
@@ -7476,7 +7472,7 @@ class Ea {
7476
7472
  */
7477
7473
  async initialize() {
7478
7474
  try {
7479
- await Ca();
7475
+ await kl();
7480
7476
  } catch (t) {
7481
7477
  Er.error("Failed to initialize UnifiedFontService:", t);
7482
7478
  }
@@ -7485,7 +7481,7 @@ class Ea {
7485
7481
  * Check if fonts are loaded
7486
7482
  */
7487
7483
  isFontsLoaded() {
7488
- return Sa();
7484
+ return Cl();
7489
7485
  }
7490
7486
  // ========================================
7491
7487
  // Font Retrieval
@@ -7669,51 +7665,51 @@ class Ea {
7669
7665
  };
7670
7666
  }
7671
7667
  }
7672
- const _a = new Ea();
7668
+ const Wl = new Sl();
7673
7669
  export {
7674
7670
  ro as A,
7675
7671
  rt as B,
7676
- Ga as C,
7672
+ Vl as C,
7677
7673
  To as D,
7678
- Pa as E,
7674
+ Ol as E,
7679
7675
  oo as F,
7680
7676
  io as G,
7681
7677
  U as H,
7682
7678
  B as I,
7683
- fa as J,
7679
+ ul as J,
7684
7680
  eo as K,
7685
- oa as L,
7686
- ma as M,
7681
+ rl as L,
7682
+ gl as M,
7687
7683
  Cn as N,
7688
7684
  Sn as O,
7689
7685
  No as S,
7690
7686
  $n as T,
7691
- _a as U,
7692
- wa as a,
7693
- ba as b,
7694
- ka as c,
7695
- Wa as d,
7696
- Oa as e,
7697
- Va as f,
7698
- ei as g,
7687
+ Wl as U,
7688
+ bl as a,
7689
+ yl as b,
7690
+ xl as c,
7691
+ Gl as d,
7692
+ Fl as e,
7693
+ Ul as f,
7694
+ Zo as g,
7699
7695
  Wt as h,
7700
7696
  Ct as i,
7701
- Qi as j,
7697
+ Ji as j,
7702
7698
  Ln as k,
7703
7699
  Ke as l,
7704
7700
  to as m,
7705
- es as n,
7706
- ja as o,
7707
- sa as p,
7701
+ Zi as n,
7702
+ Pl as o,
7703
+ il as p,
7708
7704
  Ro as q,
7709
7705
  Xn as r,
7710
- ts as s,
7711
- Ua as t,
7712
- ms as u,
7713
- Ba as v,
7714
- Ha as w,
7715
- $a as x,
7706
+ es as s,
7707
+ Hl as t,
7708
+ gs as u,
7709
+ $l as v,
7710
+ Bl as w,
7711
+ jl as x,
7716
7712
  Le as y,
7717
- is as z
7713
+ os as z
7718
7714
  };
7719
- //# sourceMappingURL=UnifiedFontService-B1PGVu8O.js.map
7715
+ //# sourceMappingURL=UnifiedFontService-C8gaspRD.js.map