@jsonpages/core 1.0.20 → 1.0.21

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.
@@ -1,9 +1,9 @@
1
1
  import * as _ from "react";
2
- import ke, { createContext as Mt, useContext as ct, useEffect as ge, forwardRef as Wo, createElement as wo, Component as Sa, useState as me, useRef as Se, useLayoutEffect as $o, useMemo as ze, useCallback as Ae, memo as Cc, useReducer as Ec, cloneElement as Ac, useDeferredValue as zc } from "react";
2
+ import ke, { createContext as Mt, useContext as ct, useEffect as ge, forwardRef as Wo, createElement as wo, Component as Sa, useState as me, useRef as Se, useLayoutEffect as $o, useMemo as Re, useCallback as ze, memo as Cc, useReducer as Ec, cloneElement as Ac, useDeferredValue as zc } from "react";
3
3
  import { BrowserRouter as Rc, Routes as Nc, Route as Bt, useParams as Si, useNavigate as jc } from "react-router-dom";
4
4
  import * as Cn from "react-dom";
5
5
  import Tc, { unstable_batchedUpdates as Br, createPortal as _a } from "react-dom";
6
- import { z as Be } from "zod";
6
+ import { z as Ue } from "zod";
7
7
  const Te = {
8
8
  // Parent -> Child (Data Injection)
9
9
  UPDATE_DRAFTS: "jsonpages:update-drafts",
@@ -2191,15 +2191,15 @@ function Pc() {
2191
2191
  for (L.max_code = ee, J = R.heap_len >> 1; 1 <= J; J--) ce(R, q, J);
2192
2192
  for (I = Y; J = R.heap[1], R.heap[1] = R.heap[R.heap_len--], ce(R, q, 1), F = R.heap[1], R.heap[--R.heap_max] = J, R.heap[--R.heap_max] = F, q[2 * I] = q[2 * J] + q[2 * F], R.depth[I] = (R.depth[J] >= R.depth[F] ? R.depth[J] : R.depth[F]) + 1, q[2 * J + 1] = q[2 * F + 1] = I, R.heap[1] = I++, ce(R, q, 1), 2 <= R.heap_len; ) ;
2193
2193
  R.heap[--R.heap_max] = R.heap[1], (function(se, de) {
2194
- var Ne, _e, We, Ce, bt, Tt, Ze = de.dyn_tree, Lr = de.max_code, Mr = de.stat_desc.static_tree, qn = de.stat_desc.has_stree, Jn = de.stat_desc.extra_bits, Fr = de.stat_desc.extra_base, Oe = de.stat_desc.max_length, De = 0;
2195
- for (Ce = 0; Ce <= v; Ce++) se.bl_count[Ce] = 0;
2196
- for (Ze[2 * se.heap[se.heap_max] + 1] = 0, Ne = se.heap_max + 1; Ne < f; Ne++) Oe < (Ce = Ze[2 * Ze[2 * (_e = se.heap[Ne]) + 1] + 1] + 1) && (Ce = Oe, De++), Ze[2 * _e + 1] = Ce, Lr < _e || (se.bl_count[Ce]++, bt = 0, Fr <= _e && (bt = Jn[_e - Fr]), Tt = Ze[2 * _e], se.opt_len += Tt * (Ce + bt), qn && (se.static_len += Tt * (Mr[2 * _e + 1] + bt)));
2194
+ var Ce, _e, Be, Ee, bt, Tt, Ze = de.dyn_tree, Lr = de.max_code, Mr = de.stat_desc.static_tree, qn = de.stat_desc.has_stree, Jn = de.stat_desc.extra_bits, Fr = de.stat_desc.extra_base, Oe = de.stat_desc.max_length, De = 0;
2195
+ for (Ee = 0; Ee <= v; Ee++) se.bl_count[Ee] = 0;
2196
+ for (Ze[2 * se.heap[se.heap_max] + 1] = 0, Ce = se.heap_max + 1; Ce < f; Ce++) Oe < (Ee = Ze[2 * Ze[2 * (_e = se.heap[Ce]) + 1] + 1] + 1) && (Ee = Oe, De++), Ze[2 * _e + 1] = Ee, Lr < _e || (se.bl_count[Ee]++, bt = 0, Fr <= _e && (bt = Jn[_e - Fr]), Tt = Ze[2 * _e], se.opt_len += Tt * (Ee + bt), qn && (se.static_len += Tt * (Mr[2 * _e + 1] + bt)));
2197
2197
  if (De !== 0) {
2198
2198
  do {
2199
- for (Ce = Oe - 1; se.bl_count[Ce] === 0; ) Ce--;
2200
- se.bl_count[Ce]--, se.bl_count[Ce + 1] += 2, se.bl_count[Oe]--, De -= 2;
2199
+ for (Ee = Oe - 1; se.bl_count[Ee] === 0; ) Ee--;
2200
+ se.bl_count[Ee]--, se.bl_count[Ee + 1] += 2, se.bl_count[Oe]--, De -= 2;
2201
2201
  } while (0 < De);
2202
- for (Ce = Oe; Ce !== 0; Ce--) for (_e = se.bl_count[Ce]; _e !== 0; ) Lr < (We = se.heap[--Ne]) || (Ze[2 * We + 1] !== Ce && (se.opt_len += (Ce - Ze[2 * We + 1]) * Ze[2 * We], Ze[2 * We + 1] = Ce), _e--);
2202
+ for (Ee = Oe; Ee !== 0; Ee--) for (_e = se.bl_count[Ee]; _e !== 0; ) Lr < (Be = se.heap[--Ce]) || (Ze[2 * Be + 1] !== Ee && (se.opt_len += (Ee - Ze[2 * Be + 1]) * Ze[2 * Be], Ze[2 * Be + 1] = Ee), _e--);
2203
2203
  }
2204
2204
  })(R, L), te(q, ee, R.bl_count);
2205
2205
  }
@@ -5577,7 +5577,7 @@ const Ld = Wo(
5577
5577
  * This source code is licensed under the ISC license.
5578
5578
  * See the LICENSE file in the root directory of this source tree.
5579
5579
  */
5580
- const Ee = (e, t) => {
5580
+ const Ae = (e, t) => {
5581
5581
  const r = Wo(
5582
5582
  ({ className: n, ...o }, i) => wo(Ld, {
5583
5583
  ref: i,
@@ -5597,7 +5597,7 @@ const Ee = (e, t) => {
5597
5597
  const Md = [
5598
5598
  ["path", { d: "M12 5v14", key: "s699le" }],
5599
5599
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
5600
- ], Fd = Ee("ArrowDown", Md);
5600
+ ], Fd = Ae("ArrowDown", Md);
5601
5601
  /**
5602
5602
  * @license lucide-react v0.474.0 - ISC
5603
5603
  *
@@ -5607,7 +5607,7 @@ const Md = [
5607
5607
  const Bd = [
5608
5608
  ["path", { d: "M5 12h14", key: "1ays0h" }],
5609
5609
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
5610
- ], Ud = Ee("ArrowRight", Bd);
5610
+ ], Ud = Ae("ArrowRight", Bd);
5611
5611
  /**
5612
5612
  * @license lucide-react v0.474.0 - ISC
5613
5613
  *
@@ -5617,7 +5617,7 @@ const Bd = [
5617
5617
  const Wd = [
5618
5618
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
5619
5619
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
5620
- ], $d = Ee("ArrowUp", Wd);
5620
+ ], $d = Ae("ArrowUp", Wd);
5621
5621
  /**
5622
5622
  * @license lucide-react v0.474.0 - ISC
5623
5623
  *
@@ -5634,35 +5634,35 @@ const Hd = [
5634
5634
  ],
5635
5635
  ["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
5636
5636
  ["path", { d: "M12 22V12", key: "d0xqtd" }]
5637
- ], Vd = Ee("Box", Hd);
5637
+ ], Vd = Ae("Box", Hd);
5638
5638
  /**
5639
5639
  * @license lucide-react v0.474.0 - ISC
5640
5640
  *
5641
5641
  * This source code is licensed under the ISC license.
5642
5642
  * See the LICENSE file in the root directory of this source tree.
5643
5643
  */
5644
- const Yd = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Vo = Ee("Check", Yd);
5644
+ const Yd = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Vo = Ae("Check", Yd);
5645
5645
  /**
5646
5646
  * @license lucide-react v0.474.0 - ISC
5647
5647
  *
5648
5648
  * This source code is licensed under the ISC license.
5649
5649
  * See the LICENSE file in the root directory of this source tree.
5650
5650
  */
5651
- const Kd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], An = Ee("ChevronDown", Kd);
5651
+ const Kd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], An = Ae("ChevronDown", Kd);
5652
5652
  /**
5653
5653
  * @license lucide-react v0.474.0 - ISC
5654
5654
  *
5655
5655
  * This source code is licensed under the ISC license.
5656
5656
  * See the LICENSE file in the root directory of this source tree.
5657
5657
  */
5658
- const Gd = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Zd = Ee("ChevronRight", Gd);
5658
+ const Gd = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Zd = Ae("ChevronRight", Gd);
5659
5659
  /**
5660
5660
  * @license lucide-react v0.474.0 - ISC
5661
5661
  *
5662
5662
  * This source code is licensed under the ISC license.
5663
5663
  * See the LICENSE file in the root directory of this source tree.
5664
5664
  */
5665
- const Xd = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Yo = Ee("ChevronUp", Xd);
5665
+ const Xd = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Yo = Ae("ChevronUp", Xd);
5666
5666
  /**
5667
5667
  * @license lucide-react v0.474.0 - ISC
5668
5668
  *
@@ -5673,7 +5673,7 @@ const qd = [
5673
5673
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
5674
5674
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
5675
5675
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
5676
- ], Jd = Ee("CircleAlert", qd);
5676
+ ], Jd = Ae("CircleAlert", qd);
5677
5677
  /**
5678
5678
  * @license lucide-react v0.474.0 - ISC
5679
5679
  *
@@ -5685,7 +5685,7 @@ const Qd = [
5685
5685
  ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }],
5686
5686
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
5687
5687
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }]
5688
- ], Wa = Ee("FileCode", Qd);
5688
+ ], Wa = Ae("FileCode", Qd);
5689
5689
  /**
5690
5690
  * @license lucide-react v0.474.0 - ISC
5691
5691
  *
@@ -5703,7 +5703,7 @@ const eu = [
5703
5703
  "path",
5704
5704
  { d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1", key: "mpwhp6" }
5705
5705
  ]
5706
- ], tu = Ee("FileJson", eu);
5706
+ ], tu = Ae("FileJson", eu);
5707
5707
  /**
5708
5708
  * @license lucide-react v0.474.0 - ISC
5709
5709
  *
@@ -5716,7 +5716,7 @@ const ru = [
5716
5716
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
5717
5717
  ["path", { d: "M16 13H8", key: "t4e002" }],
5718
5718
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
5719
- ], nu = Ee("FileText", ru);
5719
+ ], nu = Ae("FileText", ru);
5720
5720
  /**
5721
5721
  * @license lucide-react v0.474.0 - ISC
5722
5722
  *
@@ -5732,7 +5732,7 @@ const ou = [
5732
5732
  }
5733
5733
  ],
5734
5734
  ["path", { d: "M9 18c-4.51 2-5-2-7-2", key: "9comsn" }]
5735
- ], iu = Ee("Github", ou);
5735
+ ], iu = Ae("Github", ou);
5736
5736
  /**
5737
5737
  * @license lucide-react v0.474.0 - ISC
5738
5738
  *
@@ -5746,7 +5746,7 @@ const au = [
5746
5746
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
5747
5747
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
5748
5748
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
5749
- ], Pi = Ee("GripVertical", au);
5749
+ ], Pi = Ae("GripVertical", au);
5750
5750
  /**
5751
5751
  * @license lucide-react v0.474.0 - ISC
5752
5752
  *
@@ -5757,7 +5757,7 @@ const su = [
5757
5757
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
5758
5758
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
5759
5759
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
5760
- ], cn = Ee("Image", su);
5760
+ ], cn = Ae("Image", su);
5761
5761
  /**
5762
5762
  * @license lucide-react v0.474.0 - ISC
5763
5763
  *
@@ -5786,7 +5786,7 @@ const lu = [
5786
5786
  key: "kqbvx6"
5787
5787
  }
5788
5788
  ]
5789
- ], Ko = Ee("Layers", lu);
5789
+ ], Ko = Ae("Layers", lu);
5790
5790
  /**
5791
5791
  * @license lucide-react v0.474.0 - ISC
5792
5792
  *
@@ -5797,7 +5797,7 @@ const cu = [
5797
5797
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
5798
5798
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
5799
5799
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
5800
- ], $a = Ee("Link2", cu);
5800
+ ], $a = Ae("Link2", cu);
5801
5801
  /**
5802
5802
  * @license lucide-react v0.474.0 - ISC
5803
5803
  *
@@ -5808,7 +5808,7 @@ const du = [
5808
5808
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
5809
5809
  ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
5810
5810
  ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
5811
- ], uu = Ee("Menu", du);
5811
+ ], uu = Ae("Menu", du);
5812
5812
  /**
5813
5813
  * @license lucide-react v0.474.0 - ISC
5814
5814
  *
@@ -5824,7 +5824,7 @@ const fu = [
5824
5824
  }
5825
5825
  ],
5826
5826
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
5827
- ], hu = Ee("Pencil", fu);
5827
+ ], hu = Ae("Pencil", fu);
5828
5828
  /**
5829
5829
  * @license lucide-react v0.474.0 - ISC
5830
5830
  *
@@ -5834,7 +5834,7 @@ const fu = [
5834
5834
  const pu = [
5835
5835
  ["path", { d: "M5 12h14", key: "1ays0h" }],
5836
5836
  ["path", { d: "M12 5v14", key: "s699le" }]
5837
- ], Go = Ee("Plus", pu);
5837
+ ], Go = Ae("Plus", pu);
5838
5838
  /**
5839
5839
  * @license lucide-react v0.474.0 - ISC
5840
5840
  *
@@ -5851,7 +5851,7 @@ const mu = [
5851
5851
  ],
5852
5852
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
5853
5853
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
5854
- ], gu = Ee("Save", mu);
5854
+ ], gu = Ae("Save", mu);
5855
5855
  /**
5856
5856
  * @license lucide-react v0.474.0 - ISC
5857
5857
  *
@@ -5861,7 +5861,7 @@ const mu = [
5861
5861
  const vu = [
5862
5862
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
5863
5863
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
5864
- ], bu = Ee("Search", vu);
5864
+ ], bu = Ae("Search", vu);
5865
5865
  /**
5866
5866
  * @license lucide-react v0.474.0 - ISC
5867
5867
  *
@@ -5877,7 +5877,7 @@ const wu = [
5877
5877
  }
5878
5878
  ],
5879
5879
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
5880
- ], xu = Ee("Settings", wu);
5880
+ ], xu = Ae("Settings", wu);
5881
5881
  /**
5882
5882
  * @license lucide-react v0.474.0 - ISC
5883
5883
  *
@@ -5896,7 +5896,7 @@ const yu = [
5896
5896
  ["path", { d: "M22 5h-4", key: "1gvqau" }],
5897
5897
  ["path", { d: "M4 17v2", key: "vumght" }],
5898
5898
  ["path", { d: "M5 18H3", key: "zchphs" }]
5899
- ], ku = Ee("Sparkles", yu);
5899
+ ], ku = Ae("Sparkles", yu);
5900
5900
  /**
5901
5901
  * @license lucide-react v0.474.0 - ISC
5902
5902
  *
@@ -5907,7 +5907,7 @@ const Su = [
5907
5907
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
5908
5908
  ["path", { d: "M8 12h8", key: "1wcyev" }],
5909
5909
  ["path", { d: "M12 8v8", key: "napkw2" }]
5910
- ], _u = Ee("SquarePlus", Su);
5910
+ ], _u = Ae("SquarePlus", Su);
5911
5911
  /**
5912
5912
  * @license lucide-react v0.474.0 - ISC
5913
5913
  *
@@ -5917,7 +5917,7 @@ const Su = [
5917
5917
  const Cu = [
5918
5918
  ["polyline", { points: "4 17 10 11 4 5", key: "akl6gq" }],
5919
5919
  ["line", { x1: "12", x2: "20", y1: "19", y2: "19", key: "q2wloq" }]
5920
- ], Eu = Ee("Terminal", Cu);
5920
+ ], Eu = Ae("Terminal", Cu);
5921
5921
  /**
5922
5922
  * @license lucide-react v0.474.0 - ISC
5923
5923
  *
@@ -5930,7 +5930,7 @@ const Au = [
5930
5930
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
5931
5931
  ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
5932
5932
  ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
5933
- ], zn = Ee("Trash2", Au);
5933
+ ], zn = Ae("Trash2", Au);
5934
5934
  /**
5935
5935
  * @license lucide-react v0.474.0 - ISC
5936
5936
  *
@@ -5947,7 +5947,7 @@ const zu = [
5947
5947
  ],
5948
5948
  ["path", { d: "M12 9v4", key: "juzpu7" }],
5949
5949
  ["path", { d: "M12 17h.01", key: "p32p05" }]
5950
- ], Ru = Ee("TriangleAlert", zu);
5950
+ ], Ru = Ae("TriangleAlert", zu);
5951
5951
  /**
5952
5952
  * @license lucide-react v0.474.0 - ISC
5953
5953
  *
@@ -5958,7 +5958,7 @@ const Nu = [
5958
5958
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
5959
5959
  ["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
5960
5960
  ["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
5961
- ], Ha = Ee("Upload", Nu);
5961
+ ], Ha = Ae("Upload", Nu);
5962
5962
  /**
5963
5963
  * @license lucide-react v0.474.0 - ISC
5964
5964
  *
@@ -5968,7 +5968,7 @@ const Nu = [
5968
5968
  const ju = [
5969
5969
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
5970
5970
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
5971
- ], Yt = Ee("X", ju);
5971
+ ], Yt = Ae("X", ju);
5972
5972
  /**
5973
5973
  * @license lucide-react v0.474.0 - ISC
5974
5974
  *
@@ -5983,7 +5983,7 @@ const Tu = [
5983
5983
  key: "1xq2db"
5984
5984
  }
5985
5985
  ]
5986
- ], Ou = Ee("Zap", Tu);
5986
+ ], Ou = Ae("Zap", Tu);
5987
5987
  class Pu extends Sa {
5988
5988
  constructor(t) {
5989
5989
  super(t), this.state = { hasError: !1 };
@@ -6388,7 +6388,7 @@ const Iu = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
6388
6388
  function Mu() {
6389
6389
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
6390
6390
  t[r] = arguments[r];
6391
- return ze(
6391
+ return Re(
6392
6392
  () => (n) => {
6393
6393
  t.forEach((o) => o(n));
6394
6394
  },
@@ -6405,21 +6405,21 @@ function or(e) {
6405
6405
  function Zo(e) {
6406
6406
  return "nodeType" in e;
6407
6407
  }
6408
- function Ue(e) {
6408
+ function We(e) {
6409
6409
  var t, r;
6410
6410
  return e ? or(e) ? e : Zo(e) && (t = (r = e.ownerDocument) == null ? void 0 : r.defaultView) != null ? t : window : window;
6411
6411
  }
6412
6412
  function Xo(e) {
6413
6413
  const {
6414
6414
  Document: t
6415
- } = Ue(e);
6415
+ } = We(e);
6416
6416
  return e instanceof t;
6417
6417
  }
6418
6418
  function Rr(e) {
6419
- return or(e) ? !1 : e instanceof Ue(e).HTMLElement;
6419
+ return or(e) ? !1 : e instanceof We(e).HTMLElement;
6420
6420
  }
6421
6421
  function Ya(e) {
6422
- return e instanceof Ue(e).SVGElement;
6422
+ return e instanceof We(e).SVGElement;
6423
6423
  }
6424
6424
  function ir(e) {
6425
6425
  return e ? or(e) ? e.document : Zo(e) ? Xo(e) ? e : Rr(e) || Ya(e) ? e.ownerDocument : document : document : document;
@@ -6429,16 +6429,16 @@ function Nn(e) {
6429
6429
  const t = Se(e);
6430
6430
  return et(() => {
6431
6431
  t.current = e;
6432
- }), Ae(function() {
6432
+ }), ze(function() {
6433
6433
  for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
6434
6434
  n[o] = arguments[o];
6435
6435
  return t.current == null ? void 0 : t.current(...n);
6436
6436
  }, []);
6437
6437
  }
6438
6438
  function Fu() {
6439
- const e = Se(null), t = Ae((n, o) => {
6439
+ const e = Se(null), t = ze((n, o) => {
6440
6440
  e.current = setInterval(n, o);
6441
- }, []), r = Ae(() => {
6441
+ }, []), r = ze(() => {
6442
6442
  e.current !== null && (clearInterval(e.current), e.current = null);
6443
6443
  }, []);
6444
6444
  return [t, r];
@@ -6452,7 +6452,7 @@ function _r(e, t) {
6452
6452
  }
6453
6453
  function Nr(e, t) {
6454
6454
  const r = Se();
6455
- return ze(
6455
+ return Re(
6456
6456
  () => {
6457
6457
  const n = e(r.current);
6458
6458
  return r.current = n, n;
@@ -6462,7 +6462,7 @@ function Nr(e, t) {
6462
6462
  );
6463
6463
  }
6464
6464
  function dn(e) {
6465
- const t = Nn(e), r = Se(null), n = Ae(
6465
+ const t = Nn(e), r = Se(null), n = ze(
6466
6466
  (o) => {
6467
6467
  o !== r.current && (t == null || t(o, r.current)), r.current = o;
6468
6468
  },
@@ -6479,7 +6479,7 @@ function un(e) {
6479
6479
  }
6480
6480
  let oo = {};
6481
6481
  function jr(e, t) {
6482
- return ze(() => {
6482
+ return Re(() => {
6483
6483
  if (t)
6484
6484
  return t;
6485
6485
  const r = oo[e] == null ? 0 : oo[e] + 1;
@@ -6511,7 +6511,7 @@ function jn(e) {
6511
6511
  return !1;
6512
6512
  const {
6513
6513
  KeyboardEvent: t
6514
- } = Ue(e.target);
6514
+ } = We(e.target);
6515
6515
  return t && e instanceof t;
6516
6516
  }
6517
6517
  function Uu(e) {
@@ -6519,7 +6519,7 @@ function Uu(e) {
6519
6519
  return !1;
6520
6520
  const {
6521
6521
  TouchEvent: t
6522
- } = Ue(e.target);
6522
+ } = We(e.target);
6523
6523
  return t && e instanceof t;
6524
6524
  }
6525
6525
  function fn(e) {
@@ -6636,7 +6636,7 @@ function Vu(e) {
6636
6636
  function Yu() {
6637
6637
  const [e, t] = me("");
6638
6638
  return {
6639
- announce: Ae((n) => {
6639
+ announce: ze((n) => {
6640
6640
  n != null && t(n);
6641
6641
  }, []),
6642
6642
  announcement: e
@@ -6652,8 +6652,8 @@ function Ku(e) {
6652
6652
  }, [e, t]);
6653
6653
  }
6654
6654
  function Gu() {
6655
- const [e] = me(() => /* @__PURE__ */ new Set()), t = Ae((n) => (e.add(n), () => e.delete(n)), [e]);
6656
- return [Ae((n) => {
6655
+ const [e] = me(() => /* @__PURE__ */ new Set()), t = ze((n) => (e.add(n), () => e.delete(n)), [e]);
6656
+ return [ze((n) => {
6657
6657
  let {
6658
6658
  type: o,
6659
6659
  event: i
@@ -6711,7 +6711,7 @@ function qu(e) {
6711
6711
  } = Yu(), s = jr("DndLiveRegion"), [l, c] = me(!1);
6712
6712
  if (ge(() => {
6713
6713
  c(!0);
6714
- }, []), Ku(ze(() => ({
6714
+ }, []), Ku(Re(() => ({
6715
6715
  onDragStart(h) {
6716
6716
  let {
6717
6717
  active: m
@@ -6778,7 +6778,7 @@ var Ie;
6778
6778
  function hn() {
6779
6779
  }
6780
6780
  function io(e, t) {
6781
- return ze(
6781
+ return Re(
6782
6782
  () => ({
6783
6783
  sensor: e,
6784
6784
  options: t ?? {}
@@ -6790,7 +6790,7 @@ function io(e, t) {
6790
6790
  function Ju() {
6791
6791
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
6792
6792
  t[r] = arguments[r];
6793
- return ze(
6793
+ return Re(
6794
6794
  () => [...t].filter((n) => n != null),
6795
6795
  // eslint-disable-next-line react-hooks/exhaustive-deps
6796
6796
  [...t]
@@ -7027,7 +7027,7 @@ function ar(e, t) {
7027
7027
  const {
7028
7028
  transform: c,
7029
7029
  transformOrigin: d
7030
- } = Ue(e).getComputedStyle(e);
7030
+ } = We(e).getComputedStyle(e);
7031
7031
  c && (r = cf(r, c, d));
7032
7032
  }
7033
7033
  const {
@@ -7064,10 +7064,10 @@ function uf(e) {
7064
7064
  };
7065
7065
  }
7066
7066
  function ff(e, t) {
7067
- return t === void 0 && (t = Ue(e).getComputedStyle(e)), t.position === "fixed";
7067
+ return t === void 0 && (t = We(e).getComputedStyle(e)), t.position === "fixed";
7068
7068
  }
7069
7069
  function hf(e, t) {
7070
- t === void 0 && (t = Ue(e).getComputedStyle(e));
7070
+ t === void 0 && (t = We(e).getComputedStyle(e));
7071
7071
  const r = /(auto|scroll|overlay)/;
7072
7072
  return ["overflow", "overflowX", "overflowY"].some((o) => {
7073
7073
  const i = t[o];
@@ -7083,7 +7083,7 @@ function Tn(e, t) {
7083
7083
  return r.push(o.scrollingElement), r;
7084
7084
  if (!Rr(o) || Ya(o) || r.includes(o))
7085
7085
  return r;
7086
- const i = Ue(e).getComputedStyle(o);
7086
+ const i = We(e).getComputedStyle(o);
7087
7087
  return o !== e && hf(o, i) && r.push(o), ff(o, i) ? r : n(o.parentNode);
7088
7088
  }
7089
7089
  return e ? n(e) : r;
@@ -7261,7 +7261,7 @@ class wr {
7261
7261
  function xf(e) {
7262
7262
  const {
7263
7263
  EventTarget: t
7264
- } = Ue(e);
7264
+ } = We(e);
7265
7265
  return e instanceof t ? e : ir(e);
7266
7266
  }
7267
7267
  function so(e, t) {
@@ -7321,7 +7321,7 @@ class Jo {
7321
7321
  target: r
7322
7322
  }
7323
7323
  } = t;
7324
- this.props = t, this.listeners = new wr(ir(r)), this.windowListeners = new wr(Ue(r)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
7324
+ this.props = t, this.listeners = new wr(ir(r)), this.windowListeners = new wr(We(r)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
7325
7325
  }
7326
7326
  attach() {
7327
7327
  this.handleStart(), this.windowListeners.add(qe.Resize, this.handleCancel), this.windowListeners.add(qe.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(qe.Keydown, this.handleKeyDown));
@@ -7477,7 +7477,7 @@ class Qo {
7477
7477
  } = t, {
7478
7478
  target: a
7479
7479
  } = i;
7480
- this.props = t, this.events = r, this.document = ir(a), this.documentListeners = new wr(this.document), this.listeners = new wr(n), this.windowListeners = new wr(Ue(a)), this.initialCoordinates = (o = fn(i)) != null ? o : tt, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
7480
+ this.props = t, this.events = r, this.document = ir(a), this.documentListeners = new wr(this.document), this.listeners = new wr(n), this.windowListeners = new wr(We(a)), this.initialCoordinates = (o = fn(i)) != null ? o : tt, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
7481
7481
  }
7482
7482
  attach() {
7483
7483
  const {
@@ -7716,7 +7716,7 @@ function Ef(e) {
7716
7716
  }), g = Se({
7717
7717
  x: 0,
7718
7718
  y: 0
7719
- }), y = ze(() => {
7719
+ }), y = Re(() => {
7720
7720
  switch (r) {
7721
7721
  case xr.Pointer:
7722
7722
  return l ? {
@@ -7728,13 +7728,13 @@ function Ef(e) {
7728
7728
  case xr.DraggableRect:
7729
7729
  return o;
7730
7730
  }
7731
- }, [r, o, l]), k = Se(null), S = Ae(() => {
7731
+ }, [r, o, l]), k = Se(null), S = ze(() => {
7732
7732
  const j = k.current;
7733
7733
  if (!j)
7734
7734
  return;
7735
7735
  const E = v.current.x * g.current.x, A = v.current.y * g.current.y;
7736
7736
  j.scrollBy(E, A);
7737
- }, []), C = ze(() => s === pn.TreeOrder ? [...c].reverse() : c, [s, c]);
7737
+ }, []), C = Re(() => s === pn.TreeOrder ? [...c].reverse() : c, [s, c]);
7738
7738
  ge(
7739
7739
  () => {
7740
7740
  if (!i || !c.length || !y) {
@@ -7830,7 +7830,7 @@ function Rf(e, t) {
7830
7830
  }, [n, t]);
7831
7831
  }
7832
7832
  function Nf(e, t) {
7833
- return ze(() => e.reduce((r, n) => {
7833
+ return Re(() => e.reduce((r, n) => {
7834
7834
  const {
7835
7835
  sensor: o
7836
7836
  } = n, i = o.activators.map((a) => ({
@@ -7859,7 +7859,7 @@ function jf(e, t) {
7859
7859
  frequency: s,
7860
7860
  measure: l,
7861
7861
  strategy: c
7862
- } = o, d = Se(e), h = v(), m = _r(h), u = Ae(function(g) {
7862
+ } = o, d = Se(e), h = v(), m = _r(h), u = ze(function(g) {
7863
7863
  g === void 0 && (g = []), !m.current && a((y) => y === null ? g : y.concat(g.filter((k) => !y.includes(k))));
7864
7864
  }, [m]), b = Se(null), f = Nr((g) => {
7865
7865
  if (h && !r)
@@ -7929,7 +7929,7 @@ function Of(e) {
7929
7929
  callback: t,
7930
7930
  disabled: r
7931
7931
  } = e;
7932
- const n = Nn(t), o = ze(() => {
7932
+ const n = Nn(t), o = Re(() => {
7933
7933
  if (r || typeof window > "u" || typeof window.MutationObserver > "u")
7934
7934
  return;
7935
7935
  const {
@@ -7944,7 +7944,7 @@ function On(e) {
7944
7944
  callback: t,
7945
7945
  disabled: r
7946
7946
  } = e;
7947
- const n = Nn(t), o = ze(
7947
+ const n = Nn(t), o = Re(
7948
7948
  () => {
7949
7949
  if (r || typeof window > "u" || typeof window.ResizeObserver > "u")
7950
7950
  return;
@@ -8012,7 +8012,7 @@ function Df(e) {
8012
8012
  }, [e]), r;
8013
8013
  }
8014
8014
  function Lf(e) {
8015
- const [t, r] = me(null), n = Se(e), o = Ae((i) => {
8015
+ const [t, r] = me(null), n = Se(e), o = ze((i) => {
8016
8016
  const a = ao(i.target);
8017
8017
  a && r((s) => s ? (s.set(a, ko(a)), new Map(s)) : null);
8018
8018
  }, []);
@@ -8037,7 +8037,7 @@ function Lf(e) {
8037
8037
  c == null || c.removeEventListener("scroll", o);
8038
8038
  });
8039
8039
  }
8040
- }, [o, e]), ze(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Kt(i, a), tt) : is(e) : tt, [e, t]);
8040
+ }, [o, e]), Re(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Kt(i, a), tt) : is(e) : tt, [e, t]);
8041
8041
  }
8042
8042
  function Vi(e, t) {
8043
8043
  t === void 0 && (t = []);
@@ -8080,7 +8080,7 @@ function Mf(e) {
8080
8080
  );
8081
8081
  }
8082
8082
  function Ff(e, t) {
8083
- return ze(() => e.reduce((r, n) => {
8083
+ return Re(() => e.reduce((r, n) => {
8084
8084
  let {
8085
8085
  eventName: o,
8086
8086
  handler: i
@@ -8091,12 +8091,12 @@ function Ff(e, t) {
8091
8091
  }, {}), [e, t]);
8092
8092
  }
8093
8093
  function cs(e) {
8094
- return ze(() => e ? uf(e) : null, [e]);
8094
+ return Re(() => e ? uf(e) : null, [e]);
8095
8095
  }
8096
8096
  const Yi = [];
8097
8097
  function Bf(e, t) {
8098
8098
  t === void 0 && (t = ar);
8099
- const [r] = e, n = cs(r ? Ue(r) : null), [o, i] = me(Yi);
8099
+ const [r] = e, n = cs(r ? We(r) : null), [o, i] = me(Yi);
8100
8100
  function a() {
8101
8101
  i(() => e.length ? e.map((l) => ns(l) ? n : new qo(t(l), l)) : Yi);
8102
8102
  }
@@ -8119,7 +8119,7 @@ function Uf(e) {
8119
8119
  let {
8120
8120
  measure: t
8121
8121
  } = e;
8122
- const [r, n] = me(null), o = Ae((c) => {
8122
+ const [r, n] = me(null), o = ze((c) => {
8123
8123
  for (const {
8124
8124
  target: d
8125
8125
  } of c)
@@ -8136,11 +8136,11 @@ function Uf(e) {
8136
8136
  }
8137
8137
  }, [t]), i = On({
8138
8138
  callback: o
8139
- }), a = Ae((c) => {
8139
+ }), a = ze((c) => {
8140
8140
  const d = ds(c);
8141
8141
  i == null || i.disconnect(), d && (i == null || i.observe(d)), n(d ? t(d) : null);
8142
8142
  }, [t, i]), [s, l] = dn(a);
8143
- return ze(() => ({
8143
+ return Re(() => ({
8144
8144
  nodeRef: s,
8145
8145
  rect: r,
8146
8146
  setRef: l
@@ -8384,7 +8384,7 @@ function hs(e, t) {
8384
8384
  }), r) : r;
8385
8385
  }
8386
8386
  function Gf(e) {
8387
- return ze(
8387
+ return Re(
8388
8388
  () => ({
8389
8389
  draggable: {
8390
8390
  ...nn.draggable,
@@ -8471,7 +8471,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8471
8471
  } = v, V = E != null ? A.get(E) : null, z = Se({
8472
8472
  initial: null,
8473
8473
  translated: null
8474
- }), D = ze(() => {
8474
+ }), D = Re(() => {
8475
8475
  var Oe;
8476
8476
  return E != null ? {
8477
8477
  id: E,
@@ -8479,7 +8479,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8479
8479
  data: (Oe = V == null ? void 0 : V.data) != null ? Oe : $f,
8480
8480
  rect: z
8481
8481
  } : null;
8482
- }, [E, V]), w = Se(null), [U, K] = me(null), [B, W] = me(null), $ = _r(b, Object.values(b)), Q = jr("DndDescribedBy", a), N = ze(() => M.getEnabled(), [M]), P = Gf(m), {
8482
+ }, [E, V]), w = Se(null), [U, K] = me(null), [B, W] = me(null), $ = _r(b, Object.values(b)), Q = jr("DndDescribedBy", a), N = Re(() => M.getEnabled(), [M]), P = Gf(m), {
8483
8483
  droppableRects: G,
8484
8484
  measureDroppableContainers: Z,
8485
8485
  measuringScheduled: re
@@ -8487,7 +8487,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8487
8487
  dragging: j,
8488
8488
  dependencies: [T.x, T.y],
8489
8489
  config: P.droppable
8490
- }), he = Rf(A, E), te = ze(() => B ? fn(B) : null, [B]), ae = Fr(), le = Tf(he, P.draggable.measure);
8490
+ }), he = Rf(A, E), te = Re(() => B ? fn(B) : null, [B]), ae = Fr(), le = Tf(he, P.draggable.measure);
8491
8491
  Zf({
8492
8492
  activeNode: E != null ? A.get(E) : null,
8493
8493
  config: ae.layoutShiftCompensation,
@@ -8510,7 +8510,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8510
8510
  scrollAdjustedTranslate: null
8511
8511
  }), we = M.getNodeFor((r = pe.current.over) == null ? void 0 : r.id), x = Uf({
8512
8512
  measure: P.dragOverlay.measure
8513
- }), X = (n = x.nodeRef.current) != null ? n : he, H = j ? (o = x.rect) != null ? o : ie : null, O = !!(x.nodeRef.current && x.rect), R = If(O ? null : ie), L = cs(X ? Ue(X) : null), J = Df(j ? we ?? he : null), F = Bf(J), I = hs(u, {
8513
+ }), X = (n = x.nodeRef.current) != null ? n : he, H = j ? (o = x.rect) != null ? o : ie : null, O = !!(x.nodeRef.current && x.rect), R = If(O ? null : ie), L = cs(X ? We(X) : null), J = Df(j ? we ?? he : null), F = Bf(J), I = hs(u, {
8514
8514
  transform: {
8515
8515
  x: T.x - R.x,
8516
8516
  y: T.y - R.y,
@@ -8533,7 +8533,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8533
8533
  droppableRects: G,
8534
8534
  droppableContainers: N,
8535
8535
  pointerCoordinates: q
8536
- }) : null, Ne = qa(de, "id"), [_e, We] = me(null), Ce = O ? I : Kt(I, Y), bt = af(Ce, (i = _e == null ? void 0 : _e.rect) != null ? i : null, ie), Tt = Se(null), Ze = Ae(
8536
+ }) : null, Ce = qa(de, "id"), [_e, Be] = me(null), Ee = O ? I : Kt(I, Y), bt = af(Ee, (i = _e == null ? void 0 : _e.rect) != null ? i : null, ie), Tt = Se(null), Ze = ze(
8537
8537
  (Oe, De) => {
8538
8538
  let {
8539
8539
  sensor: He,
@@ -8643,7 +8643,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8643
8643
  w.current = null, Br(() => {
8644
8644
  g({
8645
8645
  type: Me
8646
- }), C(_t.Uninitialized), We(null), K(null), W(null), Tt.current = null;
8646
+ }), C(_t.Uninitialized), Be(null), K(null), W(null), Tt.current = null;
8647
8647
  const pr = Me === Ie.DragEnd ? "onDragEnd" : "onDragCancel";
8648
8648
  if (yt) {
8649
8649
  const Qn = $.current[pr];
@@ -8658,7 +8658,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8658
8658
  },
8659
8659
  // eslint-disable-next-line react-hooks/exhaustive-deps
8660
8660
  [A]
8661
- ), Lr = Ae((Oe, De) => (He, wt) => {
8661
+ ), Lr = ze((Oe, De) => (He, wt) => {
8662
8662
  const Xe = He.nativeEvent, Ve = A.get(wt);
8663
8663
  if (
8664
8664
  // Another sensor is already instantiating
@@ -8720,7 +8720,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8720
8720
  return;
8721
8721
  const {
8722
8722
  onDragOver: Ve
8723
- } = $.current, ot = wt.get(Ne), Ft = ot && ot.rect.current ? {
8723
+ } = $.current, ot = wt.get(Ce), Ft = ot && ot.rect.current ? {
8724
8724
  id: ot.id,
8725
8725
  rect: ot.rect.current,
8726
8726
  data: ot.data,
@@ -8736,14 +8736,14 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8736
8736
  over: Ft
8737
8737
  };
8738
8738
  Br(() => {
8739
- We(Ft), Ve == null || Ve(Me), y({
8739
+ Be(Ft), Ve == null || Ve(Me), y({
8740
8740
  type: "onDragOver",
8741
8741
  event: Me
8742
8742
  });
8743
8743
  });
8744
8744
  },
8745
8745
  // eslint-disable-next-line react-hooks/exhaustive-deps
8746
- [Ne]
8746
+ [Ce]
8747
8747
  ), et(() => {
8748
8748
  pe.current = {
8749
8749
  activatorEvent: B,
@@ -8771,7 +8771,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8771
8771
  scrollableAncestors: J,
8772
8772
  scrollableAncestorRects: F
8773
8773
  });
8774
- const qn = ze(() => ({
8774
+ const qn = Re(() => ({
8775
8775
  active: D,
8776
8776
  activeNode: he,
8777
8777
  activeNodeRect: ie,
@@ -8789,7 +8789,7 @@ const Xf = /* @__PURE__ */ Cc(function(t) {
8789
8789
  measuringConfiguration: P,
8790
8790
  measuringScheduled: re,
8791
8791
  windowRect: L
8792
- }), [D, he, ie, B, de, ce, x, A, M, G, _e, Z, J, F, P, re, L]), Jn = ze(() => ({
8792
+ }), [D, he, ie, B, de, ce, x, A, M, G, _e, Z, J, F, P, re, L]), Jn = Re(() => ({
8793
8793
  activatorEvent: B,
8794
8794
  activators: Mr,
8795
8795
  active: D,
@@ -8860,7 +8860,7 @@ function Qf(e) {
8860
8860
  // eslint-disable-next-line react-hooks/exhaustive-deps
8861
8861
  [h, t]
8862
8862
  );
8863
- const A = ze(() => ({
8863
+ const A = Re(() => ({
8864
8864
  role: u,
8865
8865
  tabIndex: f,
8866
8866
  "aria-disabled": n,
@@ -8909,7 +8909,7 @@ function rh(e) {
8909
8909
  } = {
8910
8910
  ...th,
8911
8911
  ...o
8912
- }, g = _r(f ?? n), y = Ae(
8912
+ }, g = _r(f ?? n), y = ze(
8913
8913
  () => {
8914
8914
  if (!h.current) {
8915
8915
  h.current = !0;
@@ -8924,7 +8924,7 @@ function rh(e) {
8924
8924
  ), k = On({
8925
8925
  callback: y,
8926
8926
  disabled: b || !a
8927
- }), S = Ae((A, T) => {
8927
+ }), S = ze((A, T) => {
8928
8928
  k && (T && (k.unobserve(T), h.current = !1), A && k.observe(A));
8929
8929
  }, [k]), [C, j] = dn(S), E = _r(t);
8930
8930
  return ge(() => {
@@ -9102,7 +9102,7 @@ function fh(e) {
9102
9102
  return;
9103
9103
  const {
9104
9104
  transform: d
9105
- } = Ue(a).getComputedStyle(a), h = Qa(d);
9105
+ } = We(a).getComputedStyle(a), h = Qa(d);
9106
9106
  if (!h)
9107
9107
  return;
9108
9108
  const m = typeof t == "function" ? t : hh(t);
@@ -9182,7 +9182,7 @@ function hh(e) {
9182
9182
  }
9183
9183
  let Gi = 0;
9184
9184
  function ph(e) {
9185
- return ze(() => {
9185
+ return Re(() => {
9186
9186
  if (e != null)
9187
9187
  return Gi++, Gi;
9188
9188
  }, [e]);
@@ -9370,13 +9370,13 @@ function kh(e) {
9370
9370
  droppableRects: l,
9371
9371
  over: c,
9372
9372
  measureDroppableContainers: d
9373
- } = ps(), h = jr(vs, r), m = s.rect !== null, u = ze(() => n.map((j) => typeof j == "object" && "id" in j ? j.id : j), [n]), b = a != null, f = a ? u.indexOf(a.id) : -1, v = c ? u.indexOf(c.id) : -1, g = Se(u), y = !bh(u, g.current), k = v !== -1 && f === -1 || y, S = wh(i);
9373
+ } = ps(), h = jr(vs, r), m = s.rect !== null, u = Re(() => n.map((j) => typeof j == "object" && "id" in j ? j.id : j), [n]), b = a != null, f = a ? u.indexOf(a.id) : -1, v = c ? u.indexOf(c.id) : -1, g = Se(u), y = !bh(u, g.current), k = v !== -1 && f === -1 || y, S = wh(i);
9374
9374
  et(() => {
9375
9375
  y && b && d(u);
9376
9376
  }, [y, u, b, d]), ge(() => {
9377
9377
  g.current = u;
9378
9378
  }, [u]);
9379
- const C = ze(
9379
+ const C = Re(
9380
9380
  () => ({
9381
9381
  activeIndex: f,
9382
9382
  containerId: h,
@@ -9476,14 +9476,14 @@ function Rh(e) {
9476
9476
  overIndex: v,
9477
9477
  useDragOverlay: g,
9478
9478
  strategy: y
9479
- } = ct(bs), k = Nh(n, u), S = d.indexOf(a), C = ze(() => ({
9479
+ } = ct(bs), k = Nh(n, u), S = d.indexOf(a), C = Re(() => ({
9480
9480
  sortable: {
9481
9481
  containerId: h,
9482
9482
  index: S,
9483
9483
  items: d
9484
9484
  },
9485
9485
  ...o
9486
- }), [h, o, S, d]), j = ze(() => d.slice(d.indexOf(a)), [d, a]), {
9486
+ }), [h, o, S, d]), j = Re(() => d.slice(d.indexOf(a)), [d, a]), {
9487
9487
  rect: E,
9488
9488
  node: A,
9489
9489
  isOver: T,
@@ -9927,7 +9927,7 @@ var Vh = [
9927
9927
  "span",
9928
9928
  "svg",
9929
9929
  "ul"
9930
- ], Re = Vh.reduce((e, t) => {
9930
+ ], Ne = Vh.reduce((e, t) => {
9931
9931
  const r = /* @__PURE__ */ qt(`Primitive.${t}`), n = _.forwardRef((o, i) => {
9932
9932
  const { asChild: a, ...s } = o, l = a ? r : t;
9933
9933
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p.jsx(l, { ...s, ref: i });
@@ -9989,7 +9989,7 @@ var Gh = "DismissableLayer", Eo = "dismissableLayer.update", Zh = "dismissableLa
9989
9989
  const E = () => u({});
9990
9990
  return document.addEventListener(Eo, E), () => document.removeEventListener(Eo, E);
9991
9991
  }, []), /* @__PURE__ */ p.jsx(
9992
- Re.div,
9992
+ Ne.div,
9993
9993
  {
9994
9994
  ...l,
9995
9995
  ref: b,
@@ -10016,7 +10016,7 @@ var qh = "DismissableLayerBranch", Jh = _.forwardRef((e, t) => {
10016
10016
  return r.branches.add(i), () => {
10017
10017
  r.branches.delete(i);
10018
10018
  };
10019
- }, [r.branches]), /* @__PURE__ */ p.jsx(Re.div, { ...e, ref: o });
10019
+ }, [r.branches]), /* @__PURE__ */ p.jsx(Ne.div, { ...e, ref: o });
10020
10020
  });
10021
10021
  Jh.displayName = qh;
10022
10022
  function Qh(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -10148,7 +10148,7 @@ var uo = "focusScope.autoFocusOnMount", fo = "focusScope.autoFocusOnUnmount", Qi
10148
10148
  },
10149
10149
  [r, n, u.paused]
10150
10150
  );
10151
- return /* @__PURE__ */ p.jsx(Re.div, { tabIndex: -1, ...a, ref: m, onKeyDown: b });
10151
+ return /* @__PURE__ */ p.jsx(Ne.div, { tabIndex: -1, ...a, ref: m, onKeyDown: b });
10152
10152
  });
10153
10153
  ni.displayName = tp;
10154
10154
  function rp(e, { select: t = !1 } = {}) {
@@ -11540,7 +11540,7 @@ const hm = (e) => {
11540
11540
  var ym = "Arrow", Fs = _.forwardRef((e, t) => {
11541
11541
  const { children: r, width: n = 10, height: o = 5, ...i } = e;
11542
11542
  return /* @__PURE__ */ p.jsx(
11543
- Re.svg,
11543
+ Ne.svg,
11544
11544
  {
11545
11545
  ...i,
11546
11546
  ref: t,
@@ -11587,7 +11587,7 @@ var $s = "PopperAnchor", Hs = _.forwardRef(
11587
11587
  return _.useEffect(() => {
11588
11588
  const c = l.current;
11589
11589
  l.current = (n == null ? void 0 : n.current) || a.current, c !== l.current && i.onAnchorChange(l.current);
11590
- }), n ? null : /* @__PURE__ */ p.jsx(Re.div, { ...o, ref: s });
11590
+ }), n ? null : /* @__PURE__ */ p.jsx(Ne.div, { ...o, ref: s });
11591
11591
  }
11592
11592
  );
11593
11593
  Hs.displayName = $s;
@@ -11685,7 +11685,7 @@ var ui = "PopperContent", [Cm, Em] = Bs(ui), Vs = _.forwardRef(
11685
11685
  arrowY: G,
11686
11686
  shouldHideArrow: Z,
11687
11687
  children: /* @__PURE__ */ p.jsx(
11688
- Re.div,
11688
+ Ne.div,
11689
11689
  {
11690
11690
  "data-side": $,
11691
11691
  "data-align": Q,
@@ -11779,7 +11779,7 @@ var fi = Ws, Bn = Hs, hi = Vs, pi = Ks, Nm = "Portal", Un = _.forwardRef((e, t)
11779
11779
  const { container: r, ...n } = e, [o, i] = _.useState(!1);
11780
11780
  Fe(() => i(!0), []);
11781
11781
  const a = r || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
11782
- return a ? Tc.createPortal(/* @__PURE__ */ p.jsx(Re.div, { ...n, ref: t }), a) : null;
11782
+ return a ? Tc.createPortal(/* @__PURE__ */ p.jsx(Ne.div, { ...n, ref: t }), a) : null;
11783
11783
  });
11784
11784
  Un.displayName = Nm;
11785
11785
  var jm = _[" useInsertionEffect ".trim().toString()] || Fe;
@@ -11849,7 +11849,7 @@ var Zs = Object.freeze({
11849
11849
  wordWrap: "normal"
11850
11850
  }), Im = "VisuallyHidden", Xs = _.forwardRef(
11851
11851
  (e, t) => /* @__PURE__ */ p.jsx(
11852
- Re.span,
11852
+ Ne.span,
11853
11853
  {
11854
11854
  ...e,
11855
11855
  ref: t,
@@ -12483,7 +12483,7 @@ var sl = "SelectTrigger", ll = _.forwardRef(
12483
12483
  });
12484
12484
  };
12485
12485
  return /* @__PURE__ */ p.jsx(Bn, { asChild: !0, ...i, children: /* @__PURE__ */ p.jsx(
12486
- Re.button,
12486
+ Ne.button,
12487
12487
  {
12488
12488
  type: "button",
12489
12489
  role: "combobox",
@@ -12521,7 +12521,7 @@ var cl = "SelectValue", dl = _.forwardRef(
12521
12521
  return Fe(() => {
12522
12522
  c(d);
12523
12523
  }, [c, d]), /* @__PURE__ */ p.jsx(
12524
- Re.span,
12524
+ Ne.span,
12525
12525
  {
12526
12526
  ...s,
12527
12527
  ref: h,
@@ -12535,7 +12535,7 @@ dl.displayName = cl;
12535
12535
  var zg = "SelectIcon", ul = _.forwardRef(
12536
12536
  (e, t) => {
12537
12537
  const { __scopeSelect: r, children: n, ...o } = e;
12538
- return /* @__PURE__ */ p.jsx(Re.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
12538
+ return /* @__PURE__ */ p.jsx(Ne.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
12539
12539
  }
12540
12540
  );
12541
12541
  ul.displayName = zg;
@@ -12813,7 +12813,7 @@ var Tg = "SelectItemAlignedPosition", gl = _.forwardRef((e, t) => {
12813
12813
  zIndex: S
12814
12814
  },
12815
12815
  children: /* @__PURE__ */ p.jsx(
12816
- Re.div,
12816
+ Ne.div,
12817
12817
  {
12818
12818
  ...o,
12819
12819
  ref: h,
@@ -12876,7 +12876,7 @@ var [Pg, gi] = ur(Lt, {}), To = "SelectViewport", vl = _.forwardRef(
12876
12876
  }
12877
12877
  ),
12878
12878
  /* @__PURE__ */ p.jsx($n.Slot, { scope: r, children: /* @__PURE__ */ p.jsx(
12879
- Re.div,
12879
+ Ne.div,
12880
12880
  {
12881
12881
  "data-radix-select-viewport": "",
12882
12882
  role: "presentation",
@@ -12918,14 +12918,14 @@ vl.displayName = To;
12918
12918
  var bl = "SelectGroup", [Ig, Dg] = ur(bl), Lg = _.forwardRef(
12919
12919
  (e, t) => {
12920
12920
  const { __scopeSelect: r, ...n } = e, o = Or();
12921
- return /* @__PURE__ */ p.jsx(Ig, { scope: r, id: o, children: /* @__PURE__ */ p.jsx(Re.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
12921
+ return /* @__PURE__ */ p.jsx(Ig, { scope: r, id: o, children: /* @__PURE__ */ p.jsx(Ne.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
12922
12922
  }
12923
12923
  );
12924
12924
  Lg.displayName = bl;
12925
12925
  var wl = "SelectLabel", Mg = _.forwardRef(
12926
12926
  (e, t) => {
12927
12927
  const { __scopeSelect: r, ...n } = e, o = Dg(wl, r);
12928
- return /* @__PURE__ */ p.jsx(Re.div, { id: o.id, ...n, ref: t });
12928
+ return /* @__PURE__ */ p.jsx(Ne.div, { id: o.id, ...n, ref: t });
12929
12929
  }
12930
12930
  );
12931
12931
  Mg.displayName = wl;
@@ -12969,7 +12969,7 @@ var yn = "SelectItem", [Fg, xl] = ur(yn), yl = _.forwardRef(
12969
12969
  disabled: o,
12970
12970
  textValue: d,
12971
12971
  children: /* @__PURE__ */ p.jsx(
12972
- Re.div,
12972
+ Ne.div,
12973
12973
  {
12974
12974
  role: "option",
12975
12975
  "aria-labelledby": f,
@@ -13028,7 +13028,7 @@ var br = "SelectItemText", kl = _.forwardRef(
13028
13028
  [l.disabled, l.value, u]
13029
13029
  ), { onNativeOptionAdd: f, onNativeOptionRemove: v } = c;
13030
13030
  return Fe(() => (f(b), () => v(b)), [f, v, b]), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
13031
- /* @__PURE__ */ p.jsx(Re.span, { id: l.textId, ...i, ref: m }),
13031
+ /* @__PURE__ */ p.jsx(Ne.span, { id: l.textId, ...i, ref: m }),
13032
13032
  l.isSelected && a.valueNode && !a.valueNodeHasChildren ? Cn.createPortal(i.children, a.valueNode) : null
13033
13033
  ] });
13034
13034
  }
@@ -13037,7 +13037,7 @@ kl.displayName = br;
13037
13037
  var Sl = "SelectItemIndicator", _l = _.forwardRef(
13038
13038
  (e, t) => {
13039
13039
  const { __scopeSelect: r, ...n } = e;
13040
- return xl(Sl, r).isSelected ? /* @__PURE__ */ p.jsx(Re.span, { "aria-hidden": !0, ...n, ref: t }) : null;
13040
+ return xl(Sl, r).isSelected ? /* @__PURE__ */ p.jsx(Ne.span, { "aria-hidden": !0, ...n, ref: t }) : null;
13041
13041
  }
13042
13042
  );
13043
13043
  _l.displayName = Sl;
@@ -13098,7 +13098,7 @@ var Cl = _.forwardRef((e, t) => {
13098
13098
  const c = s().find((h) => h.ref.current === document.activeElement);
13099
13099
  (d = c == null ? void 0 : c.ref.current) == null || d.scrollIntoView({ block: "nearest" });
13100
13100
  }, [s]), /* @__PURE__ */ p.jsx(
13101
- Re.div,
13101
+ Ne.div,
13102
13102
  {
13103
13103
  "aria-hidden": !0,
13104
13104
  ...o,
@@ -13119,7 +13119,7 @@ var Cl = _.forwardRef((e, t) => {
13119
13119
  }), Wg = "SelectSeparator", $g = _.forwardRef(
13120
13120
  (e, t) => {
13121
13121
  const { __scopeSelect: r, ...n } = e;
13122
- return /* @__PURE__ */ p.jsx(Re.div, { "aria-hidden": !0, ...n, ref: t });
13122
+ return /* @__PURE__ */ p.jsx(Ne.div, { "aria-hidden": !0, ...n, ref: t });
13123
13123
  }
13124
13124
  );
13125
13125
  $g.displayName = Wg;
@@ -13145,7 +13145,7 @@ var Vg = "SelectBubbleInput", El = _.forwardRef(
13145
13145
  d.call(s, t), s.dispatchEvent(h);
13146
13146
  }
13147
13147
  }, [a, t]), /* @__PURE__ */ p.jsx(
13148
- Re.select,
13148
+ Ne.select,
13149
13149
  {
13150
13150
  ...r,
13151
13151
  style: { ...Zs, ...r.style },
@@ -13446,7 +13446,7 @@ function a0({
13446
13446
  onPreviewChange: t,
13447
13447
  onAssetUpload: r
13448
13448
  }) {
13449
- const [n, o] = me(!1), i = Se(null), a = Ae(
13449
+ const [n, o] = me(!1), i = Se(null), a = ze(
13450
13450
  async (d) => {
13451
13451
  if (fetch("http://127.0.0.1:7588/ingest/86d71502-47e1-433c-9b6d-5a1390d00813", { method: "POST", headers: { "Content-Type": "application/json", "X-Debug-Session-Id": "34bba5" }, body: JSON.stringify({ sessionId: "34bba5", location: "ImagePickerDialog.tsx:handleFile", message: "handleFile called", data: { fileName: d.name, hasOnAssetUpload: !!r }, timestamp: Date.now(), hypothesisId: "H5" }) }).catch(() => {
13452
13452
  }), !d.type.startsWith("image/")) return;
@@ -13479,7 +13479,7 @@ function a0({
13479
13479
  }, h.readAsDataURL(d);
13480
13480
  },
13481
13481
  [t, r]
13482
- ), s = Ae(
13482
+ ), s = ze(
13483
13483
  (d) => {
13484
13484
  var m, u;
13485
13485
  d.preventDefault(), d.stopPropagation(), o(!1);
@@ -13487,9 +13487,9 @@ function a0({
13487
13487
  h && a(h);
13488
13488
  },
13489
13489
  [a]
13490
- ), l = Ae((d) => {
13490
+ ), l = ze((d) => {
13491
13491
  d.preventDefault(), d.stopPropagation(), o(!0);
13492
- }, []), c = Ae(
13492
+ }, []), c = ze(
13493
13493
  (d) => {
13494
13494
  var m;
13495
13495
  const h = (m = d.target.files) == null ? void 0 : m[0];
@@ -13967,9 +13967,9 @@ const l0 = ({
13967
13967
  ] });
13968
13968
  }
13969
13969
  }, Do = (e) => {
13970
- if (e instanceof Be.ZodOptional || e instanceof Be.ZodDefault)
13970
+ if (e instanceof Ue.ZodOptional || e instanceof Ue.ZodDefault)
13971
13971
  return Do(e._def.innerType);
13972
- if (e instanceof Be.ZodObject) {
13972
+ if (e instanceof Ue.ZodObject) {
13973
13973
  const t = {
13974
13974
  id: crypto.randomUUID()
13975
13975
  };
@@ -13977,8 +13977,8 @@ const l0 = ({
13977
13977
  r !== "id" && (t[r] = Do(e.shape[r]));
13978
13978
  return t;
13979
13979
  }
13980
- return e instanceof Be.ZodArray ? [] : e instanceof Be.ZodString ? "" : e instanceof Be.ZodNumber ? 0 : e instanceof Be.ZodBoolean ? !1 : e instanceof Be.ZodEnum ? e._def.values[0] : null;
13981
- }, Lo = (e) => e instanceof Be.ZodOptional || e instanceof Be.ZodDefault ? Lo(e._def.innerType) : e, en = (e, t) => e && !t ? "opacity-10" : "opacity-100", Vt = (e, t) => e != null && t.toLowerCase() === e.toLowerCase(), u0 = (e, t) => {
13980
+ return e instanceof Ue.ZodArray ? [] : e instanceof Ue.ZodString ? "" : e instanceof Ue.ZodNumber ? 0 : e instanceof Ue.ZodBoolean ? !1 : e instanceof Ue.ZodEnum ? e._def.values[0] : null;
13981
+ }, Lo = (e) => e instanceof Ue.ZodOptional || e instanceof Ue.ZodDefault ? Lo(e._def.innerType) : e, en = (e, t) => e && !t ? "opacity-10" : "opacity-100", Vt = (e, t) => e != null && t.toLowerCase() === e.toLowerCase(), u0 = (e, t) => {
13982
13982
  if (!e) return;
13983
13983
  const r = t.toLowerCase(), n = Object.entries(e).find(([o]) => o.toLowerCase() === r);
13984
13984
  return n == null ? void 0 : n[1];
@@ -13988,7 +13988,7 @@ const l0 = ({
13988
13988
  const f = l[b];
13989
13989
  if (!f) return null;
13990
13990
  const v = Lo(f), g = f.description || "ui:text", y = t[b];
13991
- if (g === "ui:image-picker" && v instanceof Be.ZodObject) {
13991
+ if (g === "ui:image-picker" && v instanceof Ue.ZodObject) {
13992
13992
  const j = Vt(m, b), E = Qr["ui:image-picker"] || Qr["ui:text"];
13993
13993
  return /* @__PURE__ */ p.jsx(
13994
13994
  "div",
@@ -14007,7 +14007,7 @@ const l0 = ({
14007
14007
  b
14008
14008
  );
14009
14009
  }
14010
- if (v instanceof Be.ZodObject) {
14010
+ if (v instanceof Ue.ZodObject) {
14011
14011
  const j = y || {}, E = Vt(m, b);
14012
14012
  return /* @__PURE__ */ p.jsxs(
14013
14013
  "div",
@@ -14035,7 +14035,7 @@ const l0 = ({
14035
14035
  b
14036
14036
  );
14037
14037
  }
14038
- if (v instanceof Be.ZodArray) {
14038
+ if (v instanceof Ue.ZodArray) {
14039
14039
  const j = Array.isArray(y) ? y : [], E = Lo(v.element), A = (z, D) => {
14040
14040
  if (D < 0 || D >= j.length) return;
14041
14041
  const w = [...j], [U] = w.splice(z, 1);
@@ -14089,7 +14089,7 @@ const l0 = ({
14089
14089
  },
14090
14090
  onMoveUp: () => A(D, D - 1),
14091
14091
  onMoveDown: () => A(D, D + 1),
14092
- children: E instanceof Be.ZodObject ? /* @__PURE__ */ p.jsx(
14092
+ children: E instanceof Ue.ZodObject ? /* @__PURE__ */ p.jsx(
14093
14093
  kn,
14094
14094
  {
14095
14095
  schema: E,
@@ -14110,7 +14110,7 @@ const l0 = ({
14110
14110
  b
14111
14111
  );
14112
14112
  }
14113
- const k = Qr[g] || Qr["ui:text"], S = v instanceof Be.ZodEnum ? v._def.values : void 0, C = Vt(m, b);
14113
+ const k = Qr[g] || Qr["ui:text"], S = v instanceof Ue.ZodEnum ? v._def.values : void 0, C = Vt(m, b);
14114
14114
  return /* @__PURE__ */ p.jsx(
14115
14115
  "div",
14116
14116
  {
@@ -14364,7 +14364,7 @@ var Fo = "TooltipTrigger", Yl = _.forwardRef(
14364
14364
  (e, t) => {
14365
14365
  const { __scopeTooltip: r, ...n } = e, o = Ir(Fo, r), i = vi(Fo, r), a = Kn(r), s = _.useRef(null), l = je(t, s, o.onTriggerChange), c = _.useRef(!1), d = _.useRef(!1), h = _.useCallback(() => c.current = !1, []);
14366
14366
  return _.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ p.jsx(Bn, { asChild: !0, ...a, children: /* @__PURE__ */ p.jsx(
14367
- Re.button,
14367
+ Ne.button,
14368
14368
  {
14369
14369
  "aria-describedby": o.open ? o.contentId : void 0,
14370
14370
  "data-state": o.stateAttribute,
@@ -14641,7 +14641,7 @@ M0.displayName = ec;
14641
14641
  var tc = "PopoverTrigger", rc = _.forwardRef(
14642
14642
  (e, t) => {
14643
14643
  const { __scopePopover: r, ...n } = e, o = jt(tc, r), i = Dr(r), a = je(t, o.triggerRef), s = /* @__PURE__ */ p.jsx(
14644
- Re.button,
14644
+ Ne.button,
14645
14645
  {
14646
14646
  type: "button",
14647
14647
  "aria-haspopup": "dialog",
@@ -14787,7 +14787,7 @@ var U0 = /* @__PURE__ */ qt("PopoverContent.RemoveScroll"), W0 = _.forwardRef(
14787
14787
  (e, t) => {
14788
14788
  const { __scopePopover: r, ...n } = e, o = jt(ac, r);
14789
14789
  return /* @__PURE__ */ p.jsx(
14790
- Re.button,
14790
+ Ne.button,
14791
14791
  {
14792
14792
  type: "button",
14793
14793
  ...n,
@@ -14947,7 +14947,7 @@ var xi = "ScrollArea", [dc] = sr(xi), [ev, Je] = dc(xi), uc = _.forwardRef(
14947
14947
  onCornerWidthChange: y,
14948
14948
  onCornerHeightChange: S,
14949
14949
  children: /* @__PURE__ */ p.jsx(
14950
- Re.div,
14950
+ Ne.div,
14951
14951
  {
14952
14952
  dir: M,
14953
14953
  ...a,
@@ -14980,7 +14980,7 @@ var fc = "ScrollAreaViewport", hc = _.forwardRef(
14980
14980
  }
14981
14981
  ),
14982
14982
  /* @__PURE__ */ p.jsx(
14983
- Re.div,
14983
+ Ne.div,
14984
14984
  {
14985
14985
  "data-radix-scroll-area-viewport": "",
14986
14986
  ...i,
@@ -15269,7 +15269,7 @@ var tv = _.forwardRef((e, t) => {
15269
15269
  onThumbPositionChange: j,
15270
15270
  onThumbPointerDown: $e(s),
15271
15271
  children: /* @__PURE__ */ p.jsx(
15272
- Re.div,
15272
+ Ne.div,
15273
15273
  {
15274
15274
  ...m,
15275
15275
  ref: v,
@@ -15311,7 +15311,7 @@ var tv = _.forwardRef((e, t) => {
15311
15311
  return s(), h.addEventListener("scroll", m), () => h.removeEventListener("scroll", m);
15312
15312
  }
15313
15313
  }, [i.viewport, d, s]), /* @__PURE__ */ p.jsx(
15314
- Re.div,
15314
+ Ne.div,
15315
15315
  {
15316
15316
  "data-state": a.hasThumb ? "visible" : "hidden",
15317
15317
  ...o,
@@ -15349,7 +15349,7 @@ var sv = _.forwardRef((e, t) => {
15349
15349
  const d = ((h = o.scrollbarY) == null ? void 0 : h.offsetWidth) || 0;
15350
15350
  o.onCornerWidthChange(d), a(d);
15351
15351
  }), c ? /* @__PURE__ */ p.jsx(
15352
- Re.div,
15352
+ Ne.div,
15353
15353
  {
15354
15354
  ...n,
15355
15355
  ref: t,
@@ -15588,7 +15588,7 @@ const vv = ({
15588
15588
  }, [U]);
15589
15589
  const ie = (F) => {
15590
15590
  T === F ? (h == null || h(F), M(null)) : (M(F), setTimeout(() => M(null), 3e3));
15591
- }, ce = ze(
15591
+ }, ce = Re(
15592
15592
  () => l.filter((F) => F.scope === "local").map((F) => F.id),
15593
15593
  [l]
15594
15594
  ), pe = !!s && ce.length > 0, we = (F) => {
@@ -15601,7 +15601,7 @@ const vv = ({
15601
15601
  if (oe === -1 || ne === -1) return;
15602
15602
  const Y = oe < ne ? ne : ne - 1;
15603
15603
  s(I.id, Y);
15604
- }, X = e ? t.sections.find((F) => F.id === e.id) : void 0, H = Q ? t.sections.find((F) => F.id === Q.id) : void 0, O = Q ? j[Q.type] : void 0, R = l.length > 0 && (E || !e), L = S ? S.charAt(0).toUpperCase() + S.slice(1) : "Select page", J = ze(() => {
15604
+ }, X = e ? t.sections.find((F) => F.id === e.id) : void 0, H = Q ? t.sections.find((F) => F.id === Q.id) : void 0, O = Q ? j[Q.type] : void 0, R = l.length > 0 && (E || !e), L = S ? S.charAt(0).toUpperCase() + S.slice(1) : "Select page", J = Re(() => {
15605
15605
  const F = [];
15606
15606
  let I = null;
15607
15607
  for (const q of l) {
@@ -15938,8 +15938,8 @@ const vv = ({
15938
15938
  schema: ne,
15939
15939
  data: se,
15940
15940
  onChange: (de) => {
15941
- const Ne = { ...F.data, ...de };
15942
- o(U, q, oe, Ne);
15941
+ const Ce = { ...F.data, ...de };
15942
+ o(U, q, oe, Ce);
15943
15943
  },
15944
15944
  keys: ee
15945
15945
  }
@@ -15960,7 +15960,7 @@ const vv = ({
15960
15960
  scrollToSectionId: i,
15961
15961
  onScrollRequested: a
15962
15962
  }) => {
15963
- const s = Se(null), l = Ae(() => {
15963
+ const s = Se(null), l = ze(() => {
15964
15964
  var c;
15965
15965
  (c = s.current) != null && c.contentWindow && s.current.contentWindow.postMessage({
15966
15966
  type: Te.UPDATE_DRAFTS,
@@ -16337,17 +16337,17 @@ function Rv({ config: e }) {
16337
16337
  pages: []
16338
16338
  };
16339
16339
  }
16340
- }), [K, B] = me(null), [W, $] = me(null), [Q, N] = me(null), [P, G] = me(null), [Z, re] = me(!1), [he, te] = me(400), ae = 360, le = 920, ie = Ae((Y) => {
16340
+ }), [K, B] = me(null), [W, $] = me(null), [Q, N] = me(null), [P, G] = me(null), [Z, re] = me(!1), [he, te] = me(400), ae = 360, le = 920, ie = ze((Y) => {
16341
16341
  Y.preventDefault();
16342
16342
  const ee = Y.currentTarget;
16343
16343
  ee.setPointerCapture(Y.pointerId);
16344
- const se = Y.clientX, de = he, Ne = (We) => {
16345
- const Ce = se - We.clientX, bt = Math.min(le, Math.max(ae, de + Ce));
16344
+ const se = Y.clientX, de = he, Ce = (Be) => {
16345
+ const Ee = se - Be.clientX, bt = Math.min(le, Math.max(ae, de + Ee));
16346
16346
  te(bt);
16347
16347
  }, _e = () => {
16348
- ee.releasePointerCapture(Y.pointerId), ee.removeEventListener("pointermove", Ne), ee.removeEventListener("pointerup", _e), ee.removeEventListener("pointercancel", _e), document.body.style.cursor = "", document.body.style.userSelect = "";
16348
+ ee.releasePointerCapture(Y.pointerId), ee.removeEventListener("pointermove", Ce), ee.removeEventListener("pointerup", _e), ee.removeEventListener("pointercancel", _e), document.body.style.cursor = "", document.body.style.userSelect = "";
16349
16349
  };
16350
- document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", ee.addEventListener("pointermove", Ne), ee.addEventListener("pointerup", _e), ee.addEventListener("pointercancel", _e);
16350
+ document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", ee.addEventListener("pointermove", Ce), ee.addEventListener("pointerup", _e), ee.addEventListener("pointercancel", _e);
16351
16351
  }, [he]), ce = A ? [
16352
16352
  ...w.header ? [{ id: w.header.id, type: w.header.type, scope: "global", title: "Header" }] : [],
16353
16353
  ...A.sections.map((Y) => {
@@ -16365,18 +16365,18 @@ function Rv({ config: e }) {
16365
16365
  const Y = n[C];
16366
16366
  Y && T(JSON.parse(JSON.stringify(Y))), B(null), $(null), V(!1);
16367
16367
  }, [C, n]);
16368
- const pe = Ae(() => {
16368
+ const pe = ze(() => {
16369
16369
  const Y = n[C];
16370
16370
  Y && T(JSON.parse(JSON.stringify(Y))), B(null), $(null), V(!1);
16371
- }, [C, n]), we = Ae(
16371
+ }, [C, n]), we = ze(
16372
16372
  (Y, ee, se) => {
16373
- const de = [...se.sections], Ne = de.findIndex((Ce) => Ce.id === Y);
16374
- if (Ne === -1 || ee < 0 || ee >= de.length) return;
16375
- const [_e] = de.splice(Ne, 1), We = ee > Ne ? ee - 1 : ee;
16376
- de.splice(Math.min(We, de.length), 0, _e), T({ ...se, sections: de }), V(!0);
16373
+ const de = [...se.sections], Ce = de.findIndex((Ee) => Ee.id === Y);
16374
+ if (Ce === -1 || ee < 0 || ee >= de.length) return;
16375
+ const [_e] = de.splice(Ce, 1), Be = ee > Ce ? ee - 1 : ee;
16376
+ de.splice(Math.min(Be, de.length), 0, _e), T({ ...se, sections: de }), V(!0);
16377
16377
  },
16378
16378
  []
16379
- ), x = Ae(
16379
+ ), x = ze(
16380
16380
  (Y) => {
16381
16381
  var ee;
16382
16382
  if (Y.origin === window.location.origin) {
@@ -16389,9 +16389,9 @@ function Rv({ config: e }) {
16389
16389
  ...de.itemId != null ? { itemId: String(de.itemId) } : {}
16390
16390
  })));
16391
16391
  else {
16392
- const de = Y.data.itemField, Ne = Y.data.itemId;
16392
+ const de = Y.data.itemField, Ce = Y.data.itemId;
16393
16393
  $(typeof de == "string" ? [
16394
- { fieldKey: de, ...Ne != null ? { itemId: String(Ne) } : {} }
16394
+ { fieldKey: de, ...Ce != null ? { itemId: String(Ce) } : {} }
16395
16395
  ] : null);
16396
16396
  }
16397
16397
  }
@@ -16414,12 +16414,12 @@ function Rv({ config: e }) {
16414
16414
  [A, w, C, i, we]
16415
16415
  );
16416
16416
  ge(() => (window.addEventListener("message", x), () => window.removeEventListener("message", x)), [x]);
16417
- const X = Ae((Y) => {
16417
+ const X = ze((Y) => {
16418
16418
  const ee = ce.find((se) => se.id === Y);
16419
16419
  ee && B({ id: ee.id, type: ee.type, scope: ee.scope }), $(null), G(Y);
16420
- }, [ce]), H = Ae(() => {
16420
+ }, [ce]), H = ze(() => {
16421
16421
  G(null);
16422
- }, []), O = Ae(
16422
+ }, []), O = ze(
16423
16423
  (Y) => {
16424
16424
  T((ee) => ee && { ...ee, sections: ee.sections.filter((se) => se.id !== Y) }), V(!0), B((ee) => (ee == null ? void 0 : ee.id) === Y ? null : ee);
16425
16425
  },
@@ -16434,16 +16434,16 @@ function Rv({ config: e }) {
16434
16434
  );
16435
16435
  T({ ...A, sections: ee });
16436
16436
  }
16437
- }, L = Ae(
16437
+ }, L = ze(
16438
16438
  (Y, ee, se, de) => {
16439
- var Ne, _e;
16439
+ var Ce, _e;
16440
16440
  if (V(!0), ee === "global")
16441
- ((Ne = w.header) == null ? void 0 : Ne.id) === Y ? U({ ...w, header: { ...w.header, data: de } }) : ((_e = w.footer) == null ? void 0 : _e.id) === Y && U({ ...w, footer: { ...w.footer, data: de } });
16441
+ ((Ce = w.header) == null ? void 0 : Ce.id) === Y ? U({ ...w, header: { ...w.header, data: de } }) : ((_e = w.footer) == null ? void 0 : _e.id) === Y && U({ ...w, footer: { ...w.footer, data: de } });
16442
16442
  else if (A) {
16443
- const We = A.sections.map(
16444
- (Ce) => Ce.id === Y ? { ...Ce, data: de } : Ce
16443
+ const Be = A.sections.map(
16444
+ (Ee) => Ee.id === Y ? { ...Ee, data: de } : Ee
16445
16445
  );
16446
- T({ ...A, sections: We });
16446
+ T({ ...A, sections: Be });
16447
16447
  }
16448
16448
  },
16449
16449
  [A, w]
@@ -16460,11 +16460,13 @@ function Rv({ config: e }) {
16460
16460
  menu: { main: (Y == null ? void 0 : Y.links) ?? [] },
16461
16461
  theme: i
16462
16462
  };
16463
- e.persistence.saveToFile(ee, C).then(() => {
16464
- V(!1), D(!0), window.setTimeout(() => window.location.reload(), 1e3);
16465
- }).catch((Ne) => {
16466
- console.error("[JsonPages] saveToFile failed", Ne);
16467
- const _e = Ne instanceof Error ? Ne.message : String(Ne);
16463
+ e.persistence.saveToFile(ee, C).then((Ce) => {
16464
+ V(!1), D(!0);
16465
+ const _e = e.mode;
16466
+ ((Ce == null ? void 0 : Ce.shouldReload) ?? _e !== "cloud") && window.setTimeout(() => window.location.reload(), 1e3);
16467
+ }).catch((Ce) => {
16468
+ console.error("[JsonPages] saveToFile failed", Ce);
16469
+ const _e = Ce instanceof Error ? Ce.message : String(Ce);
16468
16470
  alert(`Save to file failed: ${_e}`);
16469
16471
  });
16470
16472
  }, I = (Y) => {