@mdspl/mds-shared-ui 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import H, { useLayoutEffect as Zr, useEffect as A, useRef as M, useMemo as N, useCallback as K, useState as Q, createContext as ht, memo as Qr, useReducer as eo, useContext as ze, forwardRef as hn, createElement as sn } from "react";
2
- import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as de, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as to, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as no, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as ro } from "@chakra-ui/react";
3
- import { unstable_batchedUpdates as St, createPortal as oo } from "react-dom";
1
+ import H, { useLayoutEffect as Qr, useEffect as A, useRef as M, useMemo as N, useCallback as K, useState as Q, createContext as ht, memo as eo, useReducer as to, useContext as ze, forwardRef as hn, createElement as sn } from "react";
2
+ import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as ae, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as no, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as ro, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as oo } from "@chakra-ui/react";
3
+ import { unstable_batchedUpdates as St, createPortal as so } from "react-dom";
4
4
  var Ct = { exports: {} }, ot = {};
5
5
  var Nn;
6
- function so() {
6
+ function io() {
7
7
  if (Nn) return ot;
8
8
  Nn = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
@@ -26,7 +26,7 @@ function so() {
26
26
  }
27
27
  var st = {};
28
28
  var Mn;
29
- function io() {
29
+ function ao() {
30
30
  return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(p) {
32
32
  if (p == null) return null;
@@ -171,7 +171,7 @@ function io() {
171
171
  var P = C.children;
172
172
  if (P !== void 0)
173
173
  if (k)
174
- if (ae(P)) {
174
+ if (le(P)) {
175
175
  for (k = 0; k < P.length; k++)
176
176
  f(P[k]);
177
177
  Object.freeze && Object.freeze(P);
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
221
221
  function v(p) {
222
222
  return typeof p == "object" && p !== null && p.$$typeof === b;
223
223
  }
224
- var d = H, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), R = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), J = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, ae = Array.isArray, Re = console.createTask ? console.createTask : function() {
224
+ var d = H, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), R = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), J = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, le = Array.isArray, Re = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  d = {
@@ -232,7 +232,7 @@ React keys must be passed directly to JSX without using spread:
232
232
  var $e, G = {}, Pe = d.react_stack_bottom_frame.bind(
233
233
  d,
234
234
  s
235
- )(), le = Re(r(s)), Oe = {};
235
+ )(), ce = Re(r(s)), Oe = {};
236
236
  st.Fragment = m, st.jsx = function(p, C, O) {
237
237
  var k = 1e4 > J.recentlyCreatedOwnerStacks++;
238
238
  return h(
@@ -241,7 +241,7 @@ React keys must be passed directly to JSX without using spread:
241
241
  O,
242
242
  !1,
243
243
  k ? Error("react-stack-top-frame") : Pe,
244
- k ? Re(r(p)) : le
244
+ k ? Re(r(p)) : ce
245
245
  );
246
246
  }, st.jsxs = function(p, C, O) {
247
247
  var k = 1e4 > J.recentlyCreatedOwnerStacks++;
@@ -251,18 +251,18 @@ React keys must be passed directly to JSX without using spread:
251
251
  O,
252
252
  !0,
253
253
  k ? Error("react-stack-top-frame") : Pe,
254
- k ? Re(r(p)) : le
254
+ k ? Re(r(p)) : ce
255
255
  );
256
256
  };
257
257
  })()), st;
258
258
  }
259
259
  var Ln;
260
- function ao() {
261
- return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ct.exports = so() : Ct.exports = io()), Ct.exports;
260
+ function lo() {
261
+ return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ct.exports = io() : Ct.exports = ao()), Ct.exports;
262
262
  }
263
- var a = ao(), Rt = { exports: {} }, Xt = {}, Dt = { exports: {} }, qt = {};
263
+ var a = lo(), Rt = { exports: {} }, Xt = {}, Dt = { exports: {} }, qt = {};
264
264
  var $n;
265
- function lo() {
265
+ function co() {
266
266
  if ($n) return qt;
267
267
  $n = 1;
268
268
  var e = H;
@@ -304,7 +304,7 @@ function lo() {
304
304
  }
305
305
  var Kt = {};
306
306
  var Pn;
307
- function co() {
307
+ function uo() {
308
308
  return Pn || (Pn = 1, process.env.NODE_ENV !== "production" && (function() {
309
309
  function e(d, b) {
310
310
  return d === b && (d !== 0 || 1 / d === 1 / b) || d !== d && b !== b;
@@ -358,10 +358,10 @@ function co() {
358
358
  }
359
359
  var zn;
360
360
  function fr() {
361
- return zn || (zn = 1, process.env.NODE_ENV === "production" ? Dt.exports = lo() : Dt.exports = co()), Dt.exports;
361
+ return zn || (zn = 1, process.env.NODE_ENV === "production" ? Dt.exports = co() : Dt.exports = uo()), Dt.exports;
362
362
  }
363
363
  var Fn;
364
- function uo() {
364
+ function fo() {
365
365
  if (Fn) return Xt;
366
366
  Fn = 1;
367
367
  var e = H, t = fr();
@@ -413,7 +413,7 @@ function uo() {
413
413
  }
414
414
  var Jt = {};
415
415
  var Vn;
416
- function fo() {
416
+ function ho() {
417
417
  return Vn || (Vn = 1, process.env.NODE_ENV !== "production" && (function() {
418
418
  function e(u, h) {
419
419
  return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
@@ -465,11 +465,11 @@ function fo() {
465
465
  })()), Jt;
466
466
  }
467
467
  var Yn;
468
- function ho() {
469
- return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports = uo() : Rt.exports = fo()), Rt.exports;
468
+ function go() {
469
+ return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports = fo() : Rt.exports = ho()), Rt.exports;
470
470
  }
471
- var go = ho();
472
- const an = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakMap(), At = {
471
+ var po = go();
472
+ const an = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), At = {
473
473
  current: []
474
474
  };
475
475
  let Zt = !1;
@@ -479,7 +479,7 @@ function hr(e) {
479
479
  if (At.current.includes(t))
480
480
  continue;
481
481
  At.current.push(t), t.recompute();
482
- const n = po.get(t);
482
+ const n = vo.get(t);
483
483
  if (n)
484
484
  for (const r of n) {
485
485
  const o = an.get(r);
@@ -487,7 +487,7 @@ function hr(e) {
487
487
  }
488
488
  }
489
489
  }
490
- function vo(e) {
490
+ function bo(e) {
491
491
  const t = {
492
492
  prevVal: e.prevState,
493
493
  currentVal: e.state
@@ -495,7 +495,7 @@ function vo(e) {
495
495
  for (const n of e.listeners)
496
496
  n(t);
497
497
  }
498
- function bo(e) {
498
+ function mo(e) {
499
499
  const t = {
500
500
  prevVal: e.prevState,
501
501
  currentVal: e.state
@@ -503,7 +503,7 @@ function bo(e) {
503
503
  for (const n of e.listeners)
504
504
  n(t);
505
505
  }
506
- function mo(e) {
506
+ function xo(e) {
507
507
  if (Et.add(e), !Zt)
508
508
  try {
509
509
  for (Zt = !0; Et.size > 0; ) {
@@ -511,7 +511,7 @@ function mo(e) {
511
511
  Et.clear();
512
512
  for (const n of t) {
513
513
  const r = Hn.get(n) ?? n.prevState;
514
- n.prevState = r, vo(n);
514
+ n.prevState = r, bo(n);
515
515
  }
516
516
  for (const n of t) {
517
517
  const r = an.get(n);
@@ -521,14 +521,14 @@ function mo(e) {
521
521
  const r = an.get(n);
522
522
  if (r)
523
523
  for (const o of r)
524
- bo(o);
524
+ mo(o);
525
525
  }
526
526
  }
527
527
  } finally {
528
528
  Zt = !1, At.current = [], Hn.clear();
529
529
  }
530
530
  }
531
- function xo(e) {
531
+ function yo(e) {
532
532
  return typeof e == "function";
533
533
  }
534
534
  class gr {
@@ -544,12 +544,12 @@ class gr {
544
544
  }
545
545
  setState(t) {
546
546
  var n, r, o;
547
- this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : xo(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), mo(this);
547
+ this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : yo(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), xo(this);
548
548
  }
549
549
  }
550
550
  function vt(e, t = (r) => r, n = {}) {
551
- const r = n.equal ?? yo;
552
- return go.useSyncExternalStoreWithSelector(
551
+ const r = n.equal ?? wo;
552
+ return po.useSyncExternalStoreWithSelector(
553
553
  e.subscribe,
554
554
  () => e.state,
555
555
  () => e.state,
@@ -557,7 +557,7 @@ function vt(e, t = (r) => r, n = {}) {
557
557
  r
558
558
  );
559
559
  }
560
- function yo(e, t) {
560
+ function wo(e, t) {
561
561
  if (Object.is(e, t))
562
562
  return !0;
563
563
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -589,7 +589,7 @@ function Bn(e) {
589
589
  Object.getOwnPropertySymbols(e)
590
590
  );
591
591
  }
592
- function wo() {
592
+ function So() {
593
593
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
594
594
  t[n] = arguments[n];
595
595
  return N(
@@ -628,7 +628,7 @@ function pr(e) {
628
628
  function Je(e) {
629
629
  return e ? Ke(e) ? e.document : gn(e) ? pn(e) ? e : bt(e) || pr(e) ? e.ownerDocument : document : document : document;
630
630
  }
631
- const we = Ft ? Zr : A;
631
+ const we = Ft ? Qr : A;
632
632
  function vn(e) {
633
633
  const t = M(e);
634
634
  return we(() => {
@@ -639,7 +639,7 @@ function vn(e) {
639
639
  return t.current == null ? void 0 : t.current(...r);
640
640
  }, []);
641
641
  }
642
- function So() {
642
+ function Co() {
643
643
  const e = M(null), t = K((r, o) => {
644
644
  e.current = setInterval(r, o);
645
645
  }, []), n = K(() => {
@@ -707,7 +707,7 @@ function vr(e) {
707
707
  };
708
708
  }
709
709
  const Xe = /* @__PURE__ */ vr(1), Nt = /* @__PURE__ */ vr(-1);
710
- function Co(e) {
710
+ function Ro(e) {
711
711
  return "clientX" in e && "clientY" in e;
712
712
  }
713
713
  function bn(e) {
@@ -718,7 +718,7 @@ function bn(e) {
718
718
  } = te(e.target);
719
719
  return t && e instanceof t;
720
720
  }
721
- function Ro(e) {
721
+ function Do(e) {
722
722
  if (!e)
723
723
  return !1;
724
724
  const {
@@ -727,7 +727,7 @@ function Ro(e) {
727
727
  return t && e instanceof t;
728
728
  }
729
729
  function cn(e) {
730
- if (Ro(e)) {
730
+ if (Do(e)) {
731
731
  if (e.touches && e.touches.length) {
732
732
  const {
733
733
  clientX: t,
@@ -748,7 +748,7 @@ function cn(e) {
748
748
  };
749
749
  }
750
750
  }
751
- return Co(e) ? {
751
+ return Ro(e) ? {
752
752
  x: e.clientX,
753
753
  y: e.clientY
754
754
  } : null;
@@ -793,23 +793,23 @@ const qe = /* @__PURE__ */ Object.freeze({
793
793
  }
794
794
  }
795
795
  }), Wn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
796
- function Do(e) {
796
+ function Eo(e) {
797
797
  return e.matches(Wn) ? e : e.querySelector(Wn);
798
798
  }
799
- const Eo = {
799
+ const jo = {
800
800
  display: "none"
801
801
  };
802
- function jo(e) {
802
+ function _o(e) {
803
803
  let {
804
804
  id: t,
805
805
  value: n
806
806
  } = e;
807
807
  return H.createElement("div", {
808
808
  id: t,
809
- style: Eo
809
+ style: jo
810
810
  }, n);
811
811
  }
812
- function _o(e) {
812
+ function Oo(e) {
813
813
  let {
814
814
  id: t,
815
815
  announcement: n,
@@ -837,7 +837,7 @@ function _o(e) {
837
837
  "aria-atomic": !0
838
838
  }, n);
839
839
  }
840
- function Oo() {
840
+ function To() {
841
841
  const [e, t] = Q("");
842
842
  return {
843
843
  announce: K((r) => {
@@ -847,7 +847,7 @@ function Oo() {
847
847
  };
848
848
  }
849
849
  const br = /* @__PURE__ */ ht(null);
850
- function To(e) {
850
+ function Io(e) {
851
851
  const t = ze(br);
852
852
  A(() => {
853
853
  if (!t)
@@ -855,7 +855,7 @@ function To(e) {
855
855
  return t(e);
856
856
  }, [e, t]);
857
857
  }
858
- function Io() {
858
+ function Ao() {
859
859
  const [e] = Q(() => /* @__PURE__ */ new Set()), t = K((r) => (e.add(r), () => e.delete(r)), [e]);
860
860
  return [K((r) => {
861
861
  let {
@@ -868,13 +868,13 @@ function Io() {
868
868
  });
869
869
  }, [e]), t];
870
870
  }
871
- const Ao = {
871
+ const ko = {
872
872
  draggable: `
873
873
  To pick up a draggable item, press the space bar.
874
874
  While dragging, use the arrow keys to move the item.
875
875
  Press space again to drop the item in its new position, or press escape to cancel.
876
876
  `
877
- }, ko = {
877
+ }, No = {
878
878
  onDragStart(e) {
879
879
  let {
880
880
  active: t
@@ -902,20 +902,20 @@ const Ao = {
902
902
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
903
903
  }
904
904
  };
905
- function No(e) {
905
+ function Mo(e) {
906
906
  let {
907
- announcements: t = ko,
907
+ announcements: t = No,
908
908
  container: n,
909
909
  hiddenTextDescribedById: r,
910
- screenReaderInstructions: o = Ao
910
+ screenReaderInstructions: o = ko
911
911
  } = e;
912
912
  const {
913
913
  announce: s,
914
914
  announcement: i
915
- } = Oo(), l = xt("DndLiveRegion"), [c, u] = Q(!1);
915
+ } = To(), l = xt("DndLiveRegion"), [c, u] = Q(!1);
916
916
  if (A(() => {
917
917
  u(!0);
918
- }, []), To(N(() => ({
918
+ }, []), Io(N(() => ({
919
919
  onDragStart(f) {
920
920
  let {
921
921
  active: v
@@ -966,14 +966,14 @@ function No(e) {
966
966
  }
967
967
  }), [s, t])), !c)
968
968
  return null;
969
- const h = H.createElement(H.Fragment, null, H.createElement(jo, {
969
+ const h = H.createElement(H.Fragment, null, H.createElement(_o, {
970
970
  id: r,
971
971
  value: o.draggable
972
- }), H.createElement(_o, {
972
+ }), H.createElement(Oo, {
973
973
  id: l,
974
974
  announcement: i
975
975
  }));
976
- return n ? oo(h, n) : h;
976
+ return n ? so(h, n) : h;
977
977
  }
978
978
  var Y;
979
979
  (function(e) {
@@ -981,7 +981,7 @@ var Y;
981
981
  })(Y || (Y = {}));
982
982
  function Mt() {
983
983
  }
984
- function Mo(e, t) {
984
+ function Lo(e, t) {
985
985
  return N(
986
986
  () => ({
987
987
  sensor: e,
@@ -991,7 +991,7 @@ function Mo(e, t) {
991
991
  [e, t]
992
992
  );
993
993
  }
994
- function Lo() {
994
+ function $o() {
995
995
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
996
996
  t[n] = arguments[n];
997
997
  return N(
@@ -1004,10 +1004,10 @@ const ge = /* @__PURE__ */ Object.freeze({
1004
1004
  x: 0,
1005
1005
  y: 0
1006
1006
  });
1007
- function $o(e, t) {
1007
+ function Po(e, t) {
1008
1008
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
1009
1009
  }
1010
- function Po(e, t) {
1010
+ function zo(e, t) {
1011
1011
  let {
1012
1012
  data: {
1013
1013
  value: n
@@ -1019,7 +1019,7 @@ function Po(e, t) {
1019
1019
  } = t;
1020
1020
  return n - r;
1021
1021
  }
1022
- function zo(e, t) {
1022
+ function Fo(e, t) {
1023
1023
  let {
1024
1024
  data: {
1025
1025
  value: n
@@ -1031,7 +1031,7 @@ function zo(e, t) {
1031
1031
  } = t;
1032
1032
  return r - n;
1033
1033
  }
1034
- function Fo(e, t) {
1034
+ function Vo(e, t) {
1035
1035
  if (!e || e.length === 0)
1036
1036
  return null;
1037
1037
  const [n] = e;
@@ -1055,7 +1055,7 @@ const mr = (e) => {
1055
1055
  id: l
1056
1056
  } = i, c = n.get(l);
1057
1057
  if (c) {
1058
- const u = $o(Un(c), o);
1058
+ const u = Po(Un(c), o);
1059
1059
  s.push({
1060
1060
  id: l,
1061
1061
  data: {
@@ -1065,9 +1065,9 @@ const mr = (e) => {
1065
1065
  });
1066
1066
  }
1067
1067
  }
1068
- return s.sort(Po);
1068
+ return s.sort(zo);
1069
1069
  };
1070
- function Vo(e, t) {
1070
+ function Yo(e, t) {
1071
1071
  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), s = Math.min(t.top + t.height, e.top + e.height), i = o - r, l = s - n;
1072
1072
  if (r < o && n < s) {
1073
1073
  const c = t.width * t.height, u = e.width * e.height, h = i * l, f = h / (c + u - h);
@@ -1075,7 +1075,7 @@ function Vo(e, t) {
1075
1075
  }
1076
1076
  return 0;
1077
1077
  }
1078
- const Yo = (e) => {
1078
+ const Ho = (e) => {
1079
1079
  let {
1080
1080
  collisionRect: t,
1081
1081
  droppableRects: n,
@@ -1087,7 +1087,7 @@ const Yo = (e) => {
1087
1087
  id: i
1088
1088
  } = s, l = n.get(i);
1089
1089
  if (l) {
1090
- const c = Vo(l, t);
1090
+ const c = Yo(l, t);
1091
1091
  c > 0 && o.push({
1092
1092
  id: i,
1093
1093
  data: {
@@ -1097,9 +1097,9 @@ const Yo = (e) => {
1097
1097
  });
1098
1098
  }
1099
1099
  }
1100
- return o.sort(zo);
1100
+ return o.sort(Fo);
1101
1101
  };
1102
- function Ho(e, t, n) {
1102
+ function Bo(e, t, n) {
1103
1103
  return {
1104
1104
  ...e,
1105
1105
  scaleX: t && n ? t.width / n.width : 1,
@@ -1112,7 +1112,7 @@ function xr(e, t) {
1112
1112
  y: e.top - t.top
1113
1113
  } : ge;
1114
1114
  }
1115
- function Bo(e) {
1115
+ function Wo(e) {
1116
1116
  return function(n) {
1117
1117
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
1118
1118
  o[s - 1] = arguments[s];
@@ -1127,8 +1127,8 @@ function Bo(e) {
1127
1127
  });
1128
1128
  };
1129
1129
  }
1130
- const Wo = /* @__PURE__ */ Bo(1);
1131
- function Uo(e) {
1130
+ const Uo = /* @__PURE__ */ Wo(1);
1131
+ function Go(e) {
1132
1132
  if (e.startsWith("matrix3d(")) {
1133
1133
  const t = e.slice(9, -1).split(/, /);
1134
1134
  return {
@@ -1148,8 +1148,8 @@ function Uo(e) {
1148
1148
  }
1149
1149
  return null;
1150
1150
  }
1151
- function Go(e, t, n) {
1152
- const r = Uo(t);
1151
+ function Xo(e, t, n) {
1152
+ const r = Go(t);
1153
1153
  if (!r)
1154
1154
  return e;
1155
1155
  const {
@@ -1167,18 +1167,18 @@ function Go(e, t, n) {
1167
1167
  left: c
1168
1168
  };
1169
1169
  }
1170
- const Xo = {
1170
+ const qo = {
1171
1171
  ignoreTransform: !1
1172
1172
  };
1173
1173
  function Ze(e, t) {
1174
- t === void 0 && (t = Xo);
1174
+ t === void 0 && (t = qo);
1175
1175
  let n = e.getBoundingClientRect();
1176
1176
  if (t.ignoreTransform) {
1177
1177
  const {
1178
1178
  transform: u,
1179
1179
  transformOrigin: h
1180
1180
  } = te(e).getComputedStyle(e);
1181
- u && (n = Go(n, u, h));
1181
+ u && (n = Xo(n, u, h));
1182
1182
  }
1183
1183
  const {
1184
1184
  top: r,
@@ -1202,7 +1202,7 @@ function Gn(e) {
1202
1202
  ignoreTransform: !0
1203
1203
  });
1204
1204
  }
1205
- function qo(e) {
1205
+ function Ko(e) {
1206
1206
  const t = e.innerWidth, n = e.innerHeight;
1207
1207
  return {
1208
1208
  top: 0,
@@ -1213,10 +1213,10 @@ function qo(e) {
1213
1213
  height: n
1214
1214
  };
1215
1215
  }
1216
- function Ko(e, t) {
1216
+ function Jo(e, t) {
1217
1217
  return t === void 0 && (t = te(e).getComputedStyle(e)), t.position === "fixed";
1218
1218
  }
1219
- function Jo(e, t) {
1219
+ function Zo(e, t) {
1220
1220
  t === void 0 && (t = te(e).getComputedStyle(e));
1221
1221
  const n = /(auto|scroll|overlay)/;
1222
1222
  return ["overflow", "overflowX", "overflowY"].some((o) => {
@@ -1234,7 +1234,7 @@ function mn(e, t) {
1234
1234
  if (!bt(o) || pr(o) || n.includes(o))
1235
1235
  return n;
1236
1236
  const s = te(e).getComputedStyle(o);
1237
- return o !== e && Jo(o, s) && n.push(o), Ko(o, s) ? n : r(o.parentNode);
1237
+ return o !== e && Zo(o, s) && n.push(o), Jo(o, s) ? n : r(o.parentNode);
1238
1238
  }
1239
1239
  return e ? r(e) : n;
1240
1240
  }
@@ -1287,18 +1287,18 @@ function Rr(e) {
1287
1287
  minScroll: t
1288
1288
  };
1289
1289
  }
1290
- const Zo = {
1290
+ const Qo = {
1291
1291
  x: 0.2,
1292
1292
  y: 0.2
1293
1293
  };
1294
- function Qo(e, t, n, r, o) {
1294
+ function es(e, t, n, r, o) {
1295
1295
  let {
1296
1296
  top: s,
1297
1297
  left: i,
1298
1298
  right: l,
1299
1299
  bottom: c
1300
1300
  } = n;
1301
- r === void 0 && (r = 10), o === void 0 && (o = Zo);
1301
+ r === void 0 && (r = 10), o === void 0 && (o = Qo);
1302
1302
  const {
1303
1303
  isTop: u,
1304
1304
  isBottom: h,
@@ -1319,7 +1319,7 @@ function Qo(e, t, n, r, o) {
1319
1319
  speed: b
1320
1320
  };
1321
1321
  }
1322
- function es(e) {
1322
+ function ts(e) {
1323
1323
  if (e === document.scrollingElement) {
1324
1324
  const {
1325
1325
  innerWidth: s,
@@ -1352,13 +1352,13 @@ function es(e) {
1352
1352
  function Dr(e) {
1353
1353
  return e.reduce((t, n) => Xe(t, un(n)), ge);
1354
1354
  }
1355
- function ts(e) {
1355
+ function ns(e) {
1356
1356
  return e.reduce((t, n) => t + wr(n), 0);
1357
1357
  }
1358
- function ns(e) {
1358
+ function rs(e) {
1359
1359
  return e.reduce((t, n) => t + Sr(n), 0);
1360
1360
  }
1361
- function rs(e, t) {
1361
+ function os(e, t) {
1362
1362
  if (t === void 0 && (t = Ze), !e)
1363
1363
  return;
1364
1364
  const {
@@ -1372,7 +1372,7 @@ function rs(e, t) {
1372
1372
  inline: "center"
1373
1373
  });
1374
1374
  }
1375
- const os = [["x", ["left", "right"], ts], ["y", ["top", "bottom"], ns]];
1375
+ const ss = [["x", ["left", "right"], ns], ["y", ["top", "bottom"], rs]];
1376
1376
  class xn {
1377
1377
  constructor(t, n) {
1378
1378
  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;
@@ -1380,7 +1380,7 @@ class xn {
1380
1380
  this.rect = {
1381
1381
  ...t
1382
1382
  }, this.width = t.width, this.height = t.height;
1383
- for (const [s, i, l] of os)
1383
+ for (const [s, i, l] of ss)
1384
1384
  for (const c of i)
1385
1385
  Object.defineProperty(this, c, {
1386
1386
  get: () => {
@@ -1408,7 +1408,7 @@ class lt {
1408
1408
  (o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
1409
1409
  }
1410
1410
  }
1411
- function ss(e) {
1411
+ function is(e) {
1412
1412
  const {
1413
1413
  EventTarget: t
1414
1414
  } = te(e);
@@ -1418,14 +1418,14 @@ function tn(e, t) {
1418
1418
  const n = Math.abs(e.x), r = Math.abs(e.y);
1419
1419
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
1420
1420
  }
1421
- var ue;
1421
+ var de;
1422
1422
  (function(e) {
1423
1423
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
1424
- })(ue || (ue = {}));
1424
+ })(de || (de = {}));
1425
1425
  function Xn(e) {
1426
1426
  e.preventDefault();
1427
1427
  }
1428
- function is(e) {
1428
+ function as(e) {
1429
1429
  e.stopPropagation();
1430
1430
  }
1431
1431
  var T;
@@ -1436,7 +1436,7 @@ const Er = {
1436
1436
  start: [T.Space, T.Enter],
1437
1437
  cancel: [T.Esc],
1438
1438
  end: [T.Space, T.Enter, T.Tab]
1439
- }, as = (e, t) => {
1439
+ }, ls = (e, t) => {
1440
1440
  let {
1441
1441
  currentCoordinates: n
1442
1442
  } = t;
@@ -1474,14 +1474,14 @@ class jr {
1474
1474
  this.props = t, this.listeners = new lt(Je(n)), this.windowListeners = new lt(te(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1475
1475
  }
1476
1476
  attach() {
1477
- this.handleStart(), this.windowListeners.add(ue.Resize, this.handleCancel), this.windowListeners.add(ue.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ue.Keydown, this.handleKeyDown));
1477
+ this.handleStart(), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(de.Keydown, this.handleKeyDown));
1478
1478
  }
1479
1479
  handleStart() {
1480
1480
  const {
1481
1481
  activeNode: t,
1482
1482
  onStart: n
1483
1483
  } = this.props, r = t.node.current;
1484
- r && rs(r), n(ge);
1484
+ r && os(r), n(ge);
1485
1485
  }
1486
1486
  handleKeyDown(t) {
1487
1487
  if (bn(t)) {
@@ -1491,7 +1491,7 @@ class jr {
1491
1491
  options: o
1492
1492
  } = this.props, {
1493
1493
  keyboardCodes: s = Er,
1494
- coordinateGetter: i = as,
1494
+ coordinateGetter: i = ls,
1495
1495
  scrollBehavior: l = "smooth"
1496
1496
  } = o, {
1497
1497
  code: c
@@ -1531,7 +1531,7 @@ class jr {
1531
1531
  isBottom: D,
1532
1532
  maxScroll: j,
1533
1533
  minScroll: R
1534
- } = Rr(g), E = es(g), _ = {
1534
+ } = Rr(g), E = ts(g), _ = {
1535
1535
  x: Math.min(m === T.Right ? E.right - E.width / 2 : E.right, Math.max(m === T.Right ? E.left : E.left + E.width / 2, f.x)),
1536
1536
  y: Math.min(m === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(m === T.Down ? E.top : E.top + E.height / 2, f.y))
1537
1537
  }, $ = m === T.Right && !w || m === T.Left && !S, F = m === T.Down && !D || m === T.Up && !x;
@@ -1621,7 +1621,7 @@ function Kn(e) {
1621
1621
  class yn {
1622
1622
  constructor(t, n, r) {
1623
1623
  var o;
1624
- r === void 0 && (r = ss(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;
1624
+ r === void 0 && (r = is(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;
1625
1625
  const {
1626
1626
  event: s
1627
1627
  } = t, {
@@ -1641,7 +1641,7 @@ class yn {
1641
1641
  } = this;
1642
1642
  if (this.listeners.add(t.move.name, this.handleMove, {
1643
1643
  passive: !1
1644
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(ue.Resize, this.handleCancel), this.windowListeners.add(ue.DragStart, Xn), this.windowListeners.add(ue.VisibilityChange, this.handleCancel), this.windowListeners.add(ue.ContextMenu, Xn), this.documentListeners.add(ue.Keydown, this.handleKeydown), n) {
1644
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.DragStart, Xn), this.windowListeners.add(de.VisibilityChange, this.handleCancel), this.windowListeners.add(de.ContextMenu, Xn), this.documentListeners.add(de.Keydown, this.handleKeydown), n) {
1645
1645
  if (r != null && r({
1646
1646
  event: this.props.event,
1647
1647
  activeNode: this.props.activeNode,
@@ -1675,9 +1675,9 @@ class yn {
1675
1675
  } = this, {
1676
1676
  onStart: n
1677
1677
  } = this.props;
1678
- t && (this.activated = !0, this.documentListeners.add(ue.Click, is, {
1678
+ t && (this.activated = !0, this.documentListeners.add(de.Click, as, {
1679
1679
  capture: !0
1680
- }), this.removeTextSelection(), this.documentListeners.add(ue.SelectionChange, this.removeTextSelection), n(t));
1680
+ }), this.removeTextSelection(), this.documentListeners.add(de.SelectionChange, this.removeTextSelection), n(t));
1681
1681
  }
1682
1682
  handleMove(t) {
1683
1683
  var n;
@@ -1730,7 +1730,7 @@ class yn {
1730
1730
  (t = this.document.getSelection()) == null || t.removeAllRanges();
1731
1731
  }
1732
1732
  }
1733
- const ls = {
1733
+ const cs = {
1734
1734
  cancel: {
1735
1735
  name: "pointercancel"
1736
1736
  },
@@ -1746,7 +1746,7 @@ class wn extends yn {
1746
1746
  const {
1747
1747
  event: n
1748
1748
  } = t, r = Je(n.target);
1749
- super(t, ls, r);
1749
+ super(t, cs, r);
1750
1750
  }
1751
1751
  }
1752
1752
  wn.activators = [{
@@ -1762,7 +1762,7 @@ wn.activators = [{
1762
1762
  }), !0);
1763
1763
  }
1764
1764
  }];
1765
- const cs = {
1765
+ const us = {
1766
1766
  move: {
1767
1767
  name: "mousemove"
1768
1768
  },
@@ -1774,12 +1774,12 @@ var dn;
1774
1774
  (function(e) {
1775
1775
  e[e.RightClick = 2] = "RightClick";
1776
1776
  })(dn || (dn = {}));
1777
- class us extends yn {
1777
+ class ds extends yn {
1778
1778
  constructor(t) {
1779
- super(t, cs, Je(t.event.target));
1779
+ super(t, us, Je(t.event.target));
1780
1780
  }
1781
1781
  }
1782
- us.activators = [{
1782
+ ds.activators = [{
1783
1783
  eventName: "onMouseDown",
1784
1784
  handler: (e, t) => {
1785
1785
  let {
@@ -1803,7 +1803,7 @@ const nn = {
1803
1803
  name: "touchend"
1804
1804
  }
1805
1805
  };
1806
- class ds extends yn {
1806
+ class fs extends yn {
1807
1807
  constructor(t) {
1808
1808
  super(t, nn);
1809
1809
  }
@@ -1818,7 +1818,7 @@ class ds extends yn {
1818
1818
  }
1819
1819
  }
1820
1820
  }
1821
- ds.activators = [{
1821
+ fs.activators = [{
1822
1822
  eventName: "onTouchStart",
1823
1823
  handler: (e, t) => {
1824
1824
  let {
@@ -1842,7 +1842,7 @@ var Lt;
1842
1842
  (function(e) {
1843
1843
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1844
1844
  })(Lt || (Lt = {}));
1845
- function fs(e) {
1845
+ function hs(e) {
1846
1846
  let {
1847
1847
  acceleration: t,
1848
1848
  activator: n = ct.Pointer,
@@ -1857,10 +1857,10 @@ function fs(e) {
1857
1857
  delta: f,
1858
1858
  threshold: v
1859
1859
  } = e;
1860
- const d = gs({
1860
+ const d = ps({
1861
1861
  delta: f,
1862
1862
  disabled: !s
1863
- }), [b, g] = So(), m = M({
1863
+ }), [b, g] = Co(), m = M({
1864
1864
  x: 0,
1865
1865
  y: 0
1866
1866
  }), x = M({
@@ -1900,7 +1900,7 @@ function fs(e) {
1900
1900
  const {
1901
1901
  direction: $,
1902
1902
  speed: F
1903
- } = Qo(R, _, w, t, v);
1903
+ } = es(R, _, w, t, v);
1904
1904
  for (const L of ["x", "y"])
1905
1905
  d[L][$[L]] || (F[L] = 0, $[L] = 0);
1906
1906
  if (F.x > 0 || F.y > 0) {
@@ -1937,7 +1937,7 @@ function fs(e) {
1937
1937
  ]
1938
1938
  );
1939
1939
  }
1940
- const hs = {
1940
+ const gs = {
1941
1941
  x: {
1942
1942
  [B.Backward]: !1,
1943
1943
  [B.Forward]: !1
@@ -1947,7 +1947,7 @@ const hs = {
1947
1947
  [B.Forward]: !1
1948
1948
  }
1949
1949
  };
1950
- function gs(e) {
1950
+ function ps(e) {
1951
1951
  let {
1952
1952
  delta: t,
1953
1953
  disabled: n
@@ -1955,7 +1955,7 @@ function gs(e) {
1955
1955
  const r = ln(t);
1956
1956
  return mt((o) => {
1957
1957
  if (n || !r || !o)
1958
- return hs;
1958
+ return gs;
1959
1959
  const s = {
1960
1960
  x: Math.sign(t.x - r.x),
1961
1961
  y: Math.sign(t.y - r.y)
@@ -1972,14 +1972,14 @@ function gs(e) {
1972
1972
  };
1973
1973
  }, [n, t, r]);
1974
1974
  }
1975
- function ps(e, t) {
1975
+ function vs(e, t) {
1976
1976
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
1977
1977
  return mt((o) => {
1978
1978
  var s;
1979
1979
  return t == null ? null : (s = r ?? o) != null ? s : null;
1980
1980
  }, [r, t]);
1981
1981
  }
1982
- function vs(e, t) {
1982
+ function bs(e, t) {
1983
1983
  return N(() => e.reduce((n, r) => {
1984
1984
  const {
1985
1985
  sensor: o
@@ -1999,7 +1999,7 @@ var fn;
1999
1999
  e.Optimized = "optimized";
2000
2000
  })(fn || (fn = {}));
2001
2001
  const Jn = /* @__PURE__ */ new Map();
2002
- function bs(e, t) {
2002
+ function ms(e, t) {
2003
2003
  let {
2004
2004
  dragging: n,
2005
2005
  dependencies: r,
@@ -2071,10 +2071,10 @@ function bs(e, t) {
2071
2071
  function _r(e, t) {
2072
2072
  return mt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
2073
2073
  }
2074
- function ms(e, t) {
2074
+ function xs(e, t) {
2075
2075
  return _r(e, t);
2076
2076
  }
2077
- function xs(e) {
2077
+ function ys(e) {
2078
2078
  let {
2079
2079
  callback: t,
2080
2080
  disabled: n
@@ -2108,11 +2108,11 @@ function Vt(e) {
2108
2108
  );
2109
2109
  return A(() => () => o?.disconnect(), [o]), o;
2110
2110
  }
2111
- function ys(e) {
2111
+ function ws(e) {
2112
2112
  return new xn(Ze(e), e);
2113
2113
  }
2114
2114
  function Zn(e, t, n) {
2115
- t === void 0 && (t = ys);
2115
+ t === void 0 && (t = ws);
2116
2116
  const [r, o] = Q(null);
2117
2117
  function s() {
2118
2118
  o((c) => {
@@ -2126,7 +2126,7 @@ function Zn(e, t, n) {
2126
2126
  return JSON.stringify(c) === JSON.stringify(h) ? c : h;
2127
2127
  });
2128
2128
  }
2129
- const i = xs({
2129
+ const i = ys({
2130
2130
  callback(c) {
2131
2131
  if (e)
2132
2132
  for (const u of c) {
@@ -2150,18 +2150,18 @@ function Zn(e, t, n) {
2150
2150
  })) : (l?.disconnect(), i?.disconnect());
2151
2151
  }, [e]), r;
2152
2152
  }
2153
- function ws(e) {
2153
+ function Ss(e) {
2154
2154
  const t = _r(e);
2155
2155
  return xr(e, t);
2156
2156
  }
2157
2157
  const Qn = [];
2158
- function Ss(e) {
2158
+ function Cs(e) {
2159
2159
  const t = M(e), n = mt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : mn(e) : Qn, [e]);
2160
2160
  return A(() => {
2161
2161
  t.current = e;
2162
2162
  }, [e]), n;
2163
2163
  }
2164
- function Cs(e) {
2164
+ function Rs(e) {
2165
2165
  const [t, n] = Q(null), r = M(e), o = K((s) => {
2166
2166
  const i = en(s.target);
2167
2167
  i && n((l) => l ? (l.set(i, un(i)), new Map(l)) : null);
@@ -2203,7 +2203,7 @@ function er(e, t) {
2203
2203
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
2204
2204
  }, [e]), n.current ? Nt(e, n.current) : ge;
2205
2205
  }
2206
- function Rs(e) {
2206
+ function Ds(e) {
2207
2207
  A(
2208
2208
  () => {
2209
2209
  if (!Ft)
@@ -2229,7 +2229,7 @@ function Rs(e) {
2229
2229
  })
2230
2230
  );
2231
2231
  }
2232
- function Ds(e, t) {
2232
+ function Es(e, t) {
2233
2233
  return N(() => e.reduce((n, r) => {
2234
2234
  let {
2235
2235
  eventName: o,
@@ -2241,10 +2241,10 @@ function Ds(e, t) {
2241
2241
  }, {}), [e, t]);
2242
2242
  }
2243
2243
  function Or(e) {
2244
- return N(() => e ? qo(e) : null, [e]);
2244
+ return N(() => e ? Ko(e) : null, [e]);
2245
2245
  }
2246
2246
  const tr = [];
2247
- function Es(e, t) {
2247
+ function js(e, t) {
2248
2248
  t === void 0 && (t = Ze);
2249
2249
  const [n] = e, r = Or(n ? te(n) : null), [o, s] = Q(tr);
2250
2250
  function i() {
@@ -2257,7 +2257,7 @@ function Es(e, t) {
2257
2257
  l?.disconnect(), i(), e.forEach((c) => l?.observe(c));
2258
2258
  }, [e]), o;
2259
2259
  }
2260
- function js(e) {
2260
+ function _s(e) {
2261
2261
  if (!e)
2262
2262
  return null;
2263
2263
  if (e.children.length > 1)
@@ -2265,7 +2265,7 @@ function js(e) {
2265
2265
  const t = e.children[0];
2266
2266
  return bt(t) ? t : e;
2267
2267
  }
2268
- function _s(e) {
2268
+ function Os(e) {
2269
2269
  let {
2270
2270
  measure: t
2271
2271
  } = e;
@@ -2287,7 +2287,7 @@ function _s(e) {
2287
2287
  }, [t]), s = Vt({
2288
2288
  callback: o
2289
2289
  }), i = K((u) => {
2290
- const h = js(u);
2290
+ const h = _s(u);
2291
2291
  s?.disconnect(), h && s?.observe(h), r(h ? t(h) : null);
2292
2292
  }, [t, s]), [l, c] = kt(i);
2293
2293
  return N(() => ({
@@ -2296,13 +2296,13 @@ function _s(e) {
2296
2296
  setRef: c
2297
2297
  }), [n, l, c]);
2298
2298
  }
2299
- const Os = [{
2299
+ const Ts = [{
2300
2300
  sensor: wn,
2301
2301
  options: {}
2302
2302
  }, {
2303
2303
  sensor: jr,
2304
2304
  options: {}
2305
- }], Ts = {
2305
+ }], Is = {
2306
2306
  current: {}
2307
2307
  }, Tt = {
2308
2308
  draggable: {
@@ -2338,7 +2338,7 @@ class ut extends Map {
2338
2338
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
2339
2339
  }
2340
2340
  }
2341
- const Is = {
2341
+ const As = {
2342
2342
  activatorEvent: null,
2343
2343
  active: null,
2344
2344
  activeNode: null,
@@ -2362,7 +2362,7 @@ const Is = {
2362
2362
  measureDroppableContainers: Mt,
2363
2363
  windowRect: null,
2364
2364
  measuringScheduled: !1
2365
- }, As = {
2365
+ }, ks = {
2366
2366
  activatorEvent: null,
2367
2367
  activators: [],
2368
2368
  active: null,
@@ -2374,8 +2374,8 @@ const Is = {
2374
2374
  draggableNodes: /* @__PURE__ */ new Map(),
2375
2375
  over: null,
2376
2376
  measureDroppableContainers: Mt
2377
- }, Yt = /* @__PURE__ */ ht(As), Tr = /* @__PURE__ */ ht(Is);
2378
- function ks() {
2377
+ }, Yt = /* @__PURE__ */ ht(ks), Tr = /* @__PURE__ */ ht(As);
2378
+ function Ns() {
2379
2379
  return {
2380
2380
  draggable: {
2381
2381
  active: null,
@@ -2394,7 +2394,7 @@ function ks() {
2394
2394
  }
2395
2395
  };
2396
2396
  }
2397
- function Ns(e, t) {
2397
+ function Ms(e, t) {
2398
2398
  switch (t.type) {
2399
2399
  case Y.DragStart:
2400
2400
  return {
@@ -2487,7 +2487,7 @@ function Ns(e, t) {
2487
2487
  return e;
2488
2488
  }
2489
2489
  }
2490
- function Ms(e) {
2490
+ function Ls(e) {
2491
2491
  let {
2492
2492
  disabled: t
2493
2493
  } = e;
@@ -2513,7 +2513,7 @@ function Ms(e) {
2513
2513
  for (const h of [c.current, u.current]) {
2514
2514
  if (!h)
2515
2515
  continue;
2516
- const f = Do(h);
2516
+ const f = Eo(h);
2517
2517
  if (f) {
2518
2518
  f.focus();
2519
2519
  break;
@@ -2523,7 +2523,7 @@ function Ms(e) {
2523
2523
  }
2524
2524
  }, [r, t, o, i, s]), null;
2525
2525
  }
2526
- function Ls(e, t) {
2526
+ function $s(e, t) {
2527
2527
  let {
2528
2528
  transform: n,
2529
2529
  ...r
@@ -2533,7 +2533,7 @@ function Ls(e, t) {
2533
2533
  ...r
2534
2534
  }), n) : n;
2535
2535
  }
2536
- function $s(e) {
2536
+ function Ps(e) {
2537
2537
  return N(
2538
2538
  () => ({
2539
2539
  draggable: {
@@ -2553,7 +2553,7 @@ function $s(e) {
2553
2553
  [e?.draggable, e?.droppable, e?.dragOverlay]
2554
2554
  );
2555
2555
  }
2556
- function Ps(e) {
2556
+ function zs(e) {
2557
2557
  let {
2558
2558
  activeNode: t,
2559
2559
  measure: n,
@@ -2596,20 +2596,20 @@ var Me;
2596
2596
  (function(e) {
2597
2597
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2598
2598
  })(Me || (Me = {}));
2599
- const Ar = /* @__PURE__ */ Qr(function(t) {
2599
+ const Ar = /* @__PURE__ */ eo(function(t) {
2600
2600
  var n, r, o, s;
2601
2601
  let {
2602
2602
  id: i,
2603
2603
  accessibility: l,
2604
2604
  autoScroll: c = !0,
2605
2605
  children: u,
2606
- sensors: h = Os,
2607
- collisionDetection: f = Yo,
2606
+ sensors: h = Ts,
2607
+ collisionDetection: f = Ho,
2608
2608
  measuring: v,
2609
2609
  modifiers: d,
2610
2610
  ...b
2611
2611
  } = t;
2612
- const g = eo(Ns, void 0, ks), [m, x] = g, [w, S] = Io(), [D, j] = Q(Me.Uninitialized), R = D === Me.Initialized, {
2612
+ const g = to(Ms, void 0, Ns), [m, x] = g, [w, S] = Ao(), [D, j] = Q(Me.Uninitialized), R = D === Me.Initialized, {
2613
2613
  draggable: {
2614
2614
  active: E,
2615
2615
  nodes: _,
@@ -2626,19 +2626,19 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2626
2626
  return E != null ? {
2627
2627
  id: E,
2628
2628
  // It's possible for the active node to unmount while dragging
2629
- data: (q = L?.data) != null ? q : Ts,
2629
+ data: (q = L?.data) != null ? q : Is,
2630
2630
  rect: J
2631
2631
  } : null;
2632
- }, [E, L]), ae = M(null), [Re, $e] = Q(null), [G, Pe] = Q(null), le = dt(b, Object.values(b)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), C = $s(v), {
2632
+ }, [E, L]), le = M(null), [Re, $e] = Q(null), [G, Pe] = Q(null), ce = dt(b, Object.values(b)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), C = Ps(v), {
2633
2633
  droppableRects: O,
2634
2634
  measureDroppableContainers: k,
2635
2635
  measuringScheduled: ve
2636
- } = bs(p, {
2636
+ } = ms(p, {
2637
2637
  dragging: R,
2638
2638
  dependencies: [$.x, $.y],
2639
2639
  config: C.droppable
2640
- }), X = ps(_, E), P = N(() => G ? cn(G) : null, [G]), Z = Jr(), re = ms(X, C.draggable.measure);
2641
- Ps({
2640
+ }), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]), Z = Zr(), re = xs(X, C.draggable.measure);
2641
+ zs({
2642
2642
  activeNode: E != null ? _.get(E) : null,
2643
2643
  config: Z.layoutShiftCompensation,
2644
2644
  initialRect: re,
@@ -2658,9 +2658,9 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2658
2658
  over: null,
2659
2659
  scrollableAncestors: [],
2660
2660
  scrollAdjustedTranslate: null
2661
- }), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = _s({
2661
+ }), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = Os({
2662
2662
  measure: C.dragOverlay.measure
2663
- }), Ye = (r = De.nodeRef.current) != null ? r : X, He = R ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = ws(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Ss(R ? Ve ?? X : null), yt = Es(Te), wt = Ls(d, {
2663
+ }), Ye = (r = De.nodeRef.current) != null ? r : X, He = R ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = Ss(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Cs(R ? Ve ?? X : null), yt = js(Te), wt = $s(d, {
2664
2664
  transform: {
2665
2665
  x: $.x - Dn.x,
2666
2666
  y: $.y - Dn.y,
@@ -2677,26 +2677,26 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2677
2677
  scrollableAncestors: Te,
2678
2678
  scrollableAncestorRects: yt,
2679
2679
  windowRect: Bt
2680
- }), En = P ? Xe(P, $) : null, jn = Cs(Te), Br = er(jn), Wr = er(jn, [I]), Be = Xe(wt, Br), We = He ? Wo(He, wt) : null, et = ee && We ? f({
2680
+ }), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), Be = Xe(wt, Wr), We = He ? Uo(He, wt) : null, et = ee && We ? f({
2681
2681
  active: ee,
2682
2682
  collisionRect: We,
2683
2683
  droppableRects: O,
2684
2684
  droppableContainers: p,
2685
2685
  pointerCoordinates: En
2686
- }) : null, _n = Fo(et, "id"), [Ie, On] = Q(null), Ur = Rn ? wt : Xe(wt, Wr), Gr = Ho(Ur, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = K(
2686
+ }) : null, _n = Vo(et, "id"), [Ie, On] = Q(null), Gr = Rn ? wt : Xe(wt, Ur), Xr = Bo(Gr, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = K(
2687
2687
  (q, oe) => {
2688
2688
  let {
2689
2689
  sensor: se,
2690
2690
  options: Ae
2691
2691
  } = oe;
2692
- if (ae.current == null)
2692
+ if (le.current == null)
2693
2693
  return;
2694
- const ce = _.get(ae.current);
2695
- if (!ce)
2694
+ const ue = _.get(le.current);
2695
+ if (!ue)
2696
2696
  return;
2697
2697
  const ie = q.nativeEvent, me = new se({
2698
- active: ae.current,
2699
- activeNode: ce,
2698
+ active: le.current,
2699
+ activeNode: ue,
2700
2700
  event: ie,
2701
2701
  options: Ae,
2702
2702
  // Sensors need to be instantiated with refs for arguments that change over time
@@ -2707,7 +2707,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2707
2707
  return;
2708
2708
  const {
2709
2709
  onDragAbort: xe
2710
- } = le.current, Ee = {
2710
+ } = ce.current, Ee = {
2711
2711
  id: W
2712
2712
  };
2713
2713
  xe?.(Ee), w({
@@ -2720,7 +2720,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2720
2720
  return;
2721
2721
  const {
2722
2722
  onDragPending: nt
2723
- } = le.current, Ne = {
2723
+ } = ce.current, Ne = {
2724
2724
  id: W,
2725
2725
  constraint: ke,
2726
2726
  initialCoordinates: xe,
@@ -2732,7 +2732,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2732
2732
  });
2733
2733
  },
2734
2734
  onStart(W) {
2735
- const ke = ae.current;
2735
+ const ke = le.current;
2736
2736
  if (ke == null)
2737
2737
  return;
2738
2738
  const xe = _.get(ke);
@@ -2740,7 +2740,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2740
2740
  return;
2741
2741
  const {
2742
2742
  onDragStart: Ee
2743
- } = le.current, tt = {
2743
+ } = ce.current, tt = {
2744
2744
  activatorEvent: ie,
2745
2745
  active: {
2746
2746
  id: ke,
@@ -2781,7 +2781,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2781
2781
  if (xe && nt) {
2782
2782
  const {
2783
2783
  cancelDrop: rt
2784
- } = le.current;
2784
+ } = ce.current;
2785
2785
  Ne = {
2786
2786
  activatorEvent: ie,
2787
2787
  active: xe,
@@ -2790,13 +2790,13 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2790
2790
  over: tt
2791
2791
  }, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(Ne)) && (W = Y.DragCancel);
2792
2792
  }
2793
- ae.current = null, St(() => {
2793
+ le.current = null, St(() => {
2794
2794
  x({
2795
2795
  type: W
2796
2796
  }), j(Me.Uninitialized), On(null), $e(null), Pe(null), Wt.current = null;
2797
2797
  const rt = W === Y.DragEnd ? "onDragEnd" : "onDragCancel";
2798
2798
  if (Ne) {
2799
- const Ut = le.current[rt];
2799
+ const Ut = ce.current[rt];
2800
2800
  Ut?.(Ne), w({
2801
2801
  type: rt,
2802
2802
  event: Ne
@@ -2808,33 +2808,33 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2808
2808
  },
2809
2809
  // eslint-disable-next-line react-hooks/exhaustive-deps
2810
2810
  [_]
2811
- ), Xr = K((q, oe) => (se, Ae) => {
2812
- const ce = se.nativeEvent, ie = _.get(Ae);
2811
+ ), qr = K((q, oe) => (se, Ae) => {
2812
+ const ue = se.nativeEvent, ie = _.get(Ae);
2813
2813
  if (
2814
2814
  // Another sensor is already instantiating
2815
- ae.current !== null || // No active draggable
2815
+ le.current !== null || // No active draggable
2816
2816
  !ie || // Event has already been captured
2817
- ce.dndKit || ce.defaultPrevented
2817
+ ue.dndKit || ue.defaultPrevented
2818
2818
  )
2819
2819
  return;
2820
2820
  const me = {
2821
2821
  active: ie
2822
2822
  };
2823
- q(se, oe.options, me) === !0 && (ce.dndKit = {
2823
+ q(se, oe.options, me) === !0 && (ue.dndKit = {
2824
2824
  capturedBy: oe.sensor
2825
- }, ae.current = Ae, Tn(se, oe));
2826
- }, [_, Tn]), In = vs(h, Xr);
2827
- Rs(h), we(() => {
2825
+ }, le.current = Ae, Tn(se, oe));
2826
+ }, [_, Tn]), In = bs(h, qr);
2827
+ Ds(h), we(() => {
2828
2828
  I && D === Me.Initializing && j(Me.Initialized);
2829
2829
  }, [I, D]), A(
2830
2830
  () => {
2831
2831
  const {
2832
2832
  onDragMove: q
2833
- } = le.current, {
2833
+ } = ce.current, {
2834
2834
  active: oe,
2835
2835
  activatorEvent: se,
2836
2836
  collisions: Ae,
2837
- over: ce
2837
+ over: ue
2838
2838
  } = be.current;
2839
2839
  if (!oe || !se)
2840
2840
  return;
@@ -2846,7 +2846,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2846
2846
  x: Be.x,
2847
2847
  y: Be.y
2848
2848
  },
2849
- over: ce
2849
+ over: ue
2850
2850
  };
2851
2851
  St(() => {
2852
2852
  q?.(ie), w({
@@ -2864,13 +2864,13 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2864
2864
  activatorEvent: oe,
2865
2865
  collisions: se,
2866
2866
  droppableContainers: Ae,
2867
- scrollAdjustedTranslate: ce
2867
+ scrollAdjustedTranslate: ue
2868
2868
  } = be.current;
2869
- if (!q || ae.current == null || !oe || !ce)
2869
+ if (!q || le.current == null || !oe || !ue)
2870
2870
  return;
2871
2871
  const {
2872
2872
  onDragOver: ie
2873
- } = le.current, me = Ae.get(_n), Ue = me && me.rect.current ? {
2873
+ } = ce.current, me = Ae.get(_n), Ue = me && me.rect.current ? {
2874
2874
  id: me.id,
2875
2875
  rect: me.rect.current,
2876
2876
  data: me.data,
@@ -2880,8 +2880,8 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2880
2880
  activatorEvent: oe,
2881
2881
  collisions: se,
2882
2882
  delta: {
2883
- x: ce.x,
2884
- y: ce.y
2883
+ x: ue.x,
2884
+ y: ue.y
2885
2885
  },
2886
2886
  over: Ue
2887
2887
  };
@@ -2913,7 +2913,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2913
2913
  initial: He,
2914
2914
  translated: We
2915
2915
  };
2916
- }, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), fs({
2916
+ }, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), hs({
2917
2917
  ...Z,
2918
2918
  delta: $,
2919
2919
  draggingRect: We,
@@ -2921,7 +2921,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2921
2921
  scrollableAncestors: Te,
2922
2922
  scrollableAncestorRects: yt
2923
2923
  });
2924
- const qr = N(() => ({
2924
+ const Kr = N(() => ({
2925
2925
  active: ee,
2926
2926
  activeNode: X,
2927
2927
  activeNodeRect: I,
@@ -2939,7 +2939,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2939
2939
  measuringConfiguration: C,
2940
2940
  measuringScheduled: ve,
2941
2941
  windowRect: Bt
2942
- }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, C, ve, Bt]), Kr = N(() => ({
2942
+ }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, C, ve, Bt]), Jr = N(() => ({
2943
2943
  activatorEvent: G,
2944
2944
  activators: In,
2945
2945
  active: ee,
@@ -2955,18 +2955,18 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2955
2955
  return H.createElement(br.Provider, {
2956
2956
  value: S
2957
2957
  }, H.createElement(Yt.Provider, {
2958
- value: Kr
2958
+ value: Jr
2959
2959
  }, H.createElement(Tr.Provider, {
2960
- value: qr
2960
+ value: Kr
2961
2961
  }, H.createElement(Ir.Provider, {
2962
- value: Gr
2963
- }, u)), H.createElement(Ms, {
2962
+ value: Xr
2963
+ }, u)), H.createElement(Ls, {
2964
2964
  disabled: l?.restoreFocus === !1
2965
- })), H.createElement(No, {
2965
+ })), H.createElement(Mo, {
2966
2966
  ...l,
2967
2967
  hiddenTextDescribedById: Oe
2968
2968
  }));
2969
- function Jr() {
2969
+ function Zr() {
2970
2970
  const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se = R && !q && !oe;
2971
2971
  return typeof c == "object" ? {
2972
2972
  ...c,
@@ -2975,15 +2975,15 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2975
2975
  enabled: se
2976
2976
  };
2977
2977
  }
2978
- }), zs = /* @__PURE__ */ ht(null), nr = "button", Fs = "Draggable";
2979
- function Vs(e) {
2978
+ }), Fs = /* @__PURE__ */ ht(null), nr = "button", Vs = "Draggable";
2979
+ function Ys(e) {
2980
2980
  let {
2981
2981
  id: t,
2982
2982
  data: n,
2983
2983
  disabled: r = !1,
2984
2984
  attributes: o
2985
2985
  } = e;
2986
- const s = xt(Fs), {
2986
+ const s = xt(Vs), {
2987
2987
  activators: i,
2988
2988
  activatorEvent: l,
2989
2989
  active: c,
@@ -2995,7 +2995,7 @@ function Vs(e) {
2995
2995
  role: d = nr,
2996
2996
  roleDescription: b = "draggable",
2997
2997
  tabIndex: g = 0
2998
- } = o ?? {}, m = c?.id === t, x = ze(m ? Ir : zs), [w, S] = kt(), [D, j] = kt(), R = Ds(i, t), E = dt(n);
2998
+ } = o ?? {}, m = c?.id === t, x = ze(m ? Ir : Fs), [w, S] = kt(), [D, j] = kt(), R = Es(i, t), E = dt(n);
2999
2999
  we(
3000
3000
  () => (f.set(t, {
3001
3001
  id: t,
@@ -3032,20 +3032,20 @@ function Vs(e) {
3032
3032
  transform: x
3033
3033
  };
3034
3034
  }
3035
- function Ys() {
3035
+ function Hs() {
3036
3036
  return ze(Tr);
3037
3037
  }
3038
- const Hs = "Droppable", Bs = {
3038
+ const Bs = "Droppable", Ws = {
3039
3039
  timeout: 25
3040
3040
  };
3041
- function Ws(e) {
3041
+ function Us(e) {
3042
3042
  let {
3043
3043
  data: t,
3044
3044
  disabled: n = !1,
3045
3045
  id: r,
3046
3046
  resizeObserverConfig: o
3047
3047
  } = e;
3048
- const s = xt(Hs), {
3048
+ const s = xt(Bs), {
3049
3049
  active: i,
3050
3050
  dispatch: l,
3051
3051
  over: c,
@@ -3057,7 +3057,7 @@ function Ws(e) {
3057
3057
  updateMeasurementsFor: g,
3058
3058
  timeout: m
3059
3059
  } = {
3060
- ...Bs,
3060
+ ...Ws,
3061
3061
  ...o
3062
3062
  }, x = dt(g ?? r), w = K(
3063
3063
  () => {
@@ -3117,7 +3117,7 @@ function Ht(e, t, n) {
3117
3117
  const r = e.slice();
3118
3118
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
3119
3119
  }
3120
- function Us(e, t) {
3120
+ function Gs(e, t) {
3121
3121
  return e.reduce((n, r, o) => {
3122
3122
  const s = t.get(r);
3123
3123
  return s && (n[o] = s), n;
@@ -3126,7 +3126,7 @@ function Us(e, t) {
3126
3126
  function jt(e) {
3127
3127
  return e !== null && e >= 0;
3128
3128
  }
3129
- function Gs(e, t) {
3129
+ function Xs(e, t) {
3130
3130
  if (e === t)
3131
3131
  return !0;
3132
3132
  if (e.length !== t.length)
@@ -3136,7 +3136,7 @@ function Gs(e, t) {
3136
3136
  return !1;
3137
3137
  return !0;
3138
3138
  }
3139
- function Xs(e) {
3139
+ function qs(e) {
3140
3140
  return typeof e == "boolean" ? {
3141
3141
  draggable: e,
3142
3142
  droppable: e
@@ -3145,7 +3145,7 @@ function Xs(e) {
3145
3145
  const _t = {
3146
3146
  scaleX: 1,
3147
3147
  scaleY: 1
3148
- }, qs = (e) => {
3148
+ }, Ks = (e) => {
3149
3149
  var t;
3150
3150
  let {
3151
3151
  rects: n,
@@ -3157,7 +3157,7 @@ const _t = {
3157
3157
  const l = (t = n[o]) != null ? t : r;
3158
3158
  if (!l)
3159
3159
  return null;
3160
- const c = Ks(n, i, o);
3160
+ const c = Js(n, i, o);
3161
3161
  if (i === o) {
3162
3162
  const u = n[s];
3163
3163
  return u ? {
@@ -3180,7 +3180,7 @@ const _t = {
3180
3180
  ..._t
3181
3181
  };
3182
3182
  };
3183
- function Ks(e, t, n) {
3183
+ function Js(e, t, n) {
3184
3184
  const r = e[t], o = e[t - 1], s = e[t + 1];
3185
3185
  return !r || !o && !s ? 0 : n < t ? o ? r.left - (o.left + o.width) : s.left - (r.left + r.width) : s ? s.left - (r.left + r.width) : r.left - (o.left + o.width);
3186
3186
  }
@@ -3201,7 +3201,7 @@ const kr = (e) => {
3201
3201
  }, Ot = {
3202
3202
  scaleX: 1,
3203
3203
  scaleY: 1
3204
- }, Js = (e) => {
3204
+ }, Zs = (e) => {
3205
3205
  var t;
3206
3206
  let {
3207
3207
  activeIndex: n,
@@ -3221,7 +3221,7 @@ const kr = (e) => {
3221
3221
  ...Ot
3222
3222
  } : null;
3223
3223
  }
3224
- const c = Zs(s, o, n);
3224
+ const c = Qs(s, o, n);
3225
3225
  return o > n && o <= i ? {
3226
3226
  x: 0,
3227
3227
  y: -l.height - c,
@@ -3236,7 +3236,7 @@ const kr = (e) => {
3236
3236
  ...Ot
3237
3237
  };
3238
3238
  };
3239
- function Zs(e, t, n) {
3239
+ function Qs(e, t, n) {
3240
3240
  const r = e[t], o = e[t - 1], s = e[t + 1];
3241
3241
  return r ? n < t ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
3242
3242
  }
@@ -3268,7 +3268,7 @@ function Lr(e) {
3268
3268
  droppableRects: c,
3269
3269
  over: u,
3270
3270
  measureDroppableContainers: h
3271
- } = Ys(), f = xt(Nr, n), v = l.rect !== null, d = N(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), b = i != null, g = i ? d.indexOf(i.id) : -1, m = u ? d.indexOf(u.id) : -1, x = M(d), w = !Gs(d, x.current), S = m !== -1 && g === -1 || w, D = Xs(s);
3271
+ } = Hs(), f = xt(Nr, n), v = l.rect !== null, d = N(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), b = i != null, g = i ? d.indexOf(i.id) : -1, m = u ? d.indexOf(u.id) : -1, x = M(d), w = !Xs(d, x.current), S = m !== -1 && g === -1 || w, D = qs(s);
3272
3272
  we(() => {
3273
3273
  w && b && h(d);
3274
3274
  }, [w, d, b, h]), A(() => {
@@ -3283,7 +3283,7 @@ function Lr(e) {
3283
3283
  items: d,
3284
3284
  overIndex: m,
3285
3285
  useDragOverlay: v,
3286
- sortedRects: Us(d, c),
3286
+ sortedRects: Gs(d, c),
3287
3287
  strategy: o
3288
3288
  }),
3289
3289
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -3293,7 +3293,7 @@ function Lr(e) {
3293
3293
  value: j
3294
3294
  }, t);
3295
3295
  }
3296
- const Qs = (e) => {
3296
+ const ei = (e) => {
3297
3297
  let {
3298
3298
  id: t,
3299
3299
  items: n,
@@ -3301,7 +3301,7 @@ const Qs = (e) => {
3301
3301
  overIndex: o
3302
3302
  } = e;
3303
3303
  return Ht(n, r, o).indexOf(t);
3304
- }, ei = (e) => {
3304
+ }, ti = (e) => {
3305
3305
  let {
3306
3306
  containerId: t,
3307
3307
  isSorting: n,
@@ -3314,17 +3314,17 @@ const Qs = (e) => {
3314
3314
  transition: u
3315
3315
  } = e;
3316
3316
  return !u || !r || l !== s && o === i ? !1 : n ? !0 : i !== o && t === c;
3317
- }, ti = {
3317
+ }, ni = {
3318
3318
  duration: 200,
3319
3319
  easing: "ease"
3320
- }, $r = "transform", ni = /* @__PURE__ */ qe.Transition.toString({
3320
+ }, $r = "transform", ri = /* @__PURE__ */ qe.Transition.toString({
3321
3321
  property: $r,
3322
3322
  duration: 0,
3323
3323
  easing: "linear"
3324
- }), ri = {
3324
+ }), oi = {
3325
3325
  roleDescription: "sortable"
3326
3326
  };
3327
- function oi(e) {
3327
+ function si(e) {
3328
3328
  let {
3329
3329
  disabled: t,
3330
3330
  index: n,
@@ -3354,15 +3354,15 @@ function oi(e) {
3354
3354
  }
3355
3355
  function Pr(e) {
3356
3356
  let {
3357
- animateLayoutChanges: t = ei,
3357
+ animateLayoutChanges: t = ti,
3358
3358
  attributes: n,
3359
3359
  disabled: r,
3360
3360
  data: o,
3361
- getNewIndex: s = Qs,
3361
+ getNewIndex: s = ei,
3362
3362
  id: i,
3363
3363
  strategy: l,
3364
3364
  resizeObserverConfig: c,
3365
- transition: u = ti
3365
+ transition: u = ni
3366
3366
  } = e;
3367
3367
  const {
3368
3368
  items: h,
@@ -3374,7 +3374,7 @@ function Pr(e) {
3374
3374
  overIndex: m,
3375
3375
  useDragOverlay: x,
3376
3376
  strategy: w
3377
- } = ze(Mr), S = si(r, d), D = h.indexOf(i), j = N(() => ({
3377
+ } = ze(Mr), S = ii(r, d), D = h.indexOf(i), j = N(() => ({
3378
3378
  sortable: {
3379
3379
  containerId: f,
3380
3380
  index: D,
@@ -3386,7 +3386,7 @@ function Pr(e) {
3386
3386
  node: _,
3387
3387
  isOver: $,
3388
3388
  setNodeRef: F
3389
- } = Ws({
3389
+ } = Us({
3390
3390
  id: i,
3391
3391
  data: j,
3392
3392
  disabled: S.droppable,
@@ -3398,22 +3398,22 @@ function Pr(e) {
3398
3398
  active: L,
3399
3399
  activatorEvent: J,
3400
3400
  activeNodeRect: ee,
3401
- attributes: ae,
3401
+ attributes: le,
3402
3402
  setNodeRef: Re,
3403
3403
  listeners: $e,
3404
3404
  isDragging: G,
3405
3405
  over: Pe,
3406
- setActivatorNodeRef: le,
3406
+ setActivatorNodeRef: ce,
3407
3407
  transform: Oe
3408
- } = Vs({
3408
+ } = Ys({
3409
3409
  id: i,
3410
3410
  data: j,
3411
3411
  attributes: {
3412
- ...ri,
3412
+ ...oi,
3413
3413
  ...n
3414
3414
  },
3415
3415
  disabled: S.draggable
3416
- }), p = wo(F, Re), C = !!L, O = C && !b && jt(v) && jt(m), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
3416
+ }), p = So(F, Re), C = !!L, O = C && !b && jt(v) && jt(m), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
3417
3417
  rects: g,
3418
3418
  activeNodeRect: ee,
3419
3419
  activeIndex: v,
@@ -3442,7 +3442,7 @@ function Pr(e) {
3442
3442
  previousContainerId: I.current.containerId,
3443
3443
  transition: u,
3444
3444
  wasDragging: I.current.activeId != null
3445
- }), Ve = oi({
3445
+ }), Ve = si({
3446
3446
  disabled: !be,
3447
3447
  index: D,
3448
3448
  node: _,
@@ -3464,7 +3464,7 @@ function Pr(e) {
3464
3464
  }, [re]), {
3465
3465
  active: L,
3466
3466
  activeIndex: v,
3467
- attributes: ae,
3467
+ attributes: le,
3468
3468
  data: j,
3469
3469
  rect: E,
3470
3470
  index: D,
@@ -3478,7 +3478,7 @@ function Pr(e) {
3478
3478
  overIndex: m,
3479
3479
  over: Pe,
3480
3480
  setNodeRef: p,
3481
- setActivatorNodeRef: le,
3481
+ setActivatorNodeRef: ce,
3482
3482
  setDroppableNodeRef: F,
3483
3483
  setDraggableNodeRef: Re,
3484
3484
  transform: Ve ?? P,
@@ -3490,7 +3490,7 @@ function Pr(e) {
3490
3490
  Ve || // Or to prevent items jumping to back to their "new" position when items change
3491
3491
  Qe && I.current.newIndex === D
3492
3492
  )
3493
- return ni;
3493
+ return ri;
3494
3494
  if (!(k && !bn(J) || !u) && (C || be))
3495
3495
  return qe.Transition.toString({
3496
3496
  ...u,
@@ -3498,7 +3498,7 @@ function Pr(e) {
3498
3498
  });
3499
3499
  }
3500
3500
  }
3501
- function si(e, t) {
3501
+ function ii(e, t) {
3502
3502
  var n, r;
3503
3503
  return typeof e == "boolean" ? {
3504
3504
  draggable: e,
@@ -3510,18 +3510,18 @@ function si(e, t) {
3510
3510
  };
3511
3511
  }
3512
3512
  T.Down, T.Right, T.Up, T.Left;
3513
- const ii = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ai = (e) => e.replace(
3513
+ const ai = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), li = (e) => e.replace(
3514
3514
  /^([A-Z])|[\s-_]+(\w)/g,
3515
3515
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
3516
3516
  ), rr = (e) => {
3517
- const t = ai(e);
3517
+ const t = li(e);
3518
3518
  return t.charAt(0).toUpperCase() + t.slice(1);
3519
- }, zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), li = (e) => {
3519
+ }, zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), ci = (e) => {
3520
3520
  for (const t in e)
3521
3521
  if (t.startsWith("aria-") || t === "role" || t === "title")
3522
3522
  return !0;
3523
3523
  };
3524
- var ci = {
3524
+ var ui = {
3525
3525
  xmlns: "http://www.w3.org/2000/svg",
3526
3526
  width: 24,
3527
3527
  height: 24,
@@ -3532,7 +3532,7 @@ var ci = {
3532
3532
  strokeLinecap: "round",
3533
3533
  strokeLinejoin: "round"
3534
3534
  };
3535
- const ui = hn(
3535
+ const di = hn(
3536
3536
  ({
3537
3537
  color: e = "currentColor",
3538
3538
  size: t = 24,
@@ -3546,13 +3546,13 @@ const ui = hn(
3546
3546
  "svg",
3547
3547
  {
3548
3548
  ref: c,
3549
- ...ci,
3549
+ ...ui,
3550
3550
  width: t,
3551
3551
  height: t,
3552
3552
  stroke: e,
3553
3553
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
3554
3554
  className: zr("lucide", o),
3555
- ...!s && !li(l) && { "aria-hidden": "true" },
3555
+ ...!s && !ci(l) && { "aria-hidden": "true" },
3556
3556
  ...l
3557
3557
  },
3558
3558
  [
@@ -3563,11 +3563,11 @@ const ui = hn(
3563
3563
  );
3564
3564
  const ne = (e, t) => {
3565
3565
  const n = hn(
3566
- ({ className: r, ...o }, s) => sn(ui, {
3566
+ ({ className: r, ...o }, s) => sn(di, {
3567
3567
  ref: s,
3568
3568
  iconNode: t,
3569
3569
  className: zr(
3570
- `lucide-${ii(rr(e))}`,
3570
+ `lucide-${ai(rr(e))}`,
3571
3571
  `lucide-${e}`,
3572
3572
  r
3573
3573
  ),
@@ -3576,36 +3576,36 @@ const ne = (e, t) => {
3576
3576
  );
3577
3577
  return n.displayName = rr(e), n;
3578
3578
  };
3579
- const di = [
3579
+ const fi = [
3580
3580
  ["path", { d: "M12 5v14", key: "s699le" }],
3581
3581
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
3582
- ], fi = ne("arrow-down", di);
3583
- const hi = [
3582
+ ], hi = ne("arrow-down", fi);
3583
+ const gi = [
3584
3584
  ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
3585
3585
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
3586
3586
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
3587
3587
  ["path", { d: "M7 4v16", key: "1glfcx" }]
3588
- ], gi = ne("arrow-up-down", hi);
3589
- const pi = [
3588
+ ], pi = ne("arrow-up-down", gi);
3589
+ const vi = [
3590
3590
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
3591
3591
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
3592
- ], vi = ne("arrow-up", pi);
3593
- const bi = [
3592
+ ], bi = ne("arrow-up", vi);
3593
+ const mi = [
3594
3594
  ["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
3595
- ], mi = ne("bookmark", bi);
3596
- const xi = [
3595
+ ], xi = ne("bookmark", mi);
3596
+ const yi = [
3597
3597
  ["path", { d: "M8 2v4", key: "1cmpym" }],
3598
3598
  ["path", { d: "M16 2v4", key: "4m81vk" }],
3599
3599
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
3600
3600
  ["path", { d: "M3 10h18", key: "8toen8" }]
3601
- ], or = ne("calendar", xi);
3602
- const yi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], wi = ne("chevron-left", yi);
3603
- const Si = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ci = ne("chevron-right", Si);
3604
- const Ri = [
3601
+ ], or = ne("calendar", yi);
3602
+ const wi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si = ne("chevron-left", wi);
3603
+ const Ci = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ri = ne("chevron-right", Ci);
3604
+ const Di = [
3605
3605
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
3606
3606
  ["path", { d: "M12 3v18", key: "108xh3" }]
3607
- ], Di = ne("columns-2", Ri);
3608
- const Ei = [
3607
+ ], Ei = ne("columns-2", Di);
3608
+ const ji = [
3609
3609
  [
3610
3610
  "path",
3611
3611
  {
@@ -3615,13 +3615,13 @@ const Ei = [
3615
3615
  ],
3616
3616
  ["path", { d: "m12 9 6 6", key: "anjzzh" }],
3617
3617
  ["path", { d: "m18 9-6 6", key: "1fp51s" }]
3618
- ], ji = ne("delete", Ei);
3619
- const _i = [
3618
+ ], _i = ne("delete", ji);
3619
+ const Oi = [
3620
3620
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
3621
3621
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
3622
3622
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
3623
- ], Oi = ne("ellipsis", _i);
3624
- const Ti = [
3623
+ ], Ti = ne("ellipsis", Oi);
3624
+ const Ii = [
3625
3625
  [
3626
3626
  "path",
3627
3627
  {
@@ -3629,15 +3629,15 @@ const Ti = [
3629
3629
  key: "sc7q7i"
3630
3630
  }
3631
3631
  ]
3632
- ], Ii = ne("funnel", Ti);
3633
- const Ai = [
3632
+ ], Ai = ne("funnel", Ii);
3633
+ const ki = [
3634
3634
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
3635
3635
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
3636
3636
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
3637
3637
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
3638
3638
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
3639
3639
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
3640
- ], ki = ne("grip-vertical", Ai);
3640
+ ], Fr = ne("grip-vertical", ki);
3641
3641
  const Ni = [
3642
3642
  [
3643
3643
  "path",
@@ -3666,9 +3666,9 @@ function y(e) {
3666
3666
  );
3667
3667
  });
3668
3668
  }
3669
- const Fr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
3669
+ const Vr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
3670
3670
  const { tableId: t } = fe.state;
3671
- localStorage.setItem(Fr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
3671
+ localStorage.setItem(Vr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
3672
3672
  ...n,
3673
3673
  columnOrder: e
3674
3674
  })), fe.setState((n) => ({ ...n, columnOrder: e }));
@@ -3702,7 +3702,7 @@ function Vi(e, t) {
3702
3702
  const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((c) => ({ id: c, label: c }))).filter(
3703
3703
  (c) => Object.prototype.hasOwnProperty.call(n, c.id)
3704
3704
  ), { tableId: s } = fe.state, i = JSON.parse(
3705
- localStorage.getItem(Fr(s)) || "[]"
3705
+ localStorage.getItem(Vr(s)) || "[]"
3706
3706
  ), l = [
3707
3707
  ...i.map((c) => o.find((u) => u.id === c)).filter(Boolean),
3708
3708
  ...o.filter((c) => !i.includes(c.id))
@@ -3729,7 +3729,7 @@ const Hi = y(Se.Trigger), Bi = y(Se.Positioner), Wi = y(Se.Content), Ui = y(Se.I
3729
3729
  function Ki({ visibility: e, onToggle: t }) {
3730
3730
  const { sortableColumns: n } = vt(fe);
3731
3731
  return /* @__PURE__ */ a.jsxs(Se.Root, { closeOnSelect: !1, children: [
3732
- /* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Di, { size: 18 }) }) }),
3732
+ /* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Ei, { size: 18 }) }) }),
3733
3733
  /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Bi, { children: /* @__PURE__ */ a.jsx(Wi, { minW: "220px", children: n.map((r) => {
3734
3734
  const o = !!e[r.id];
3735
3735
  return /* @__PURE__ */ a.jsx(Ui, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ a.jsxs(pe.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
@@ -3763,9 +3763,9 @@ function Ji({
3763
3763
  borderRightColor: s
3764
3764
  },
3765
3765
  ...l,
3766
- children: /* @__PURE__ */ a.jsxs(de, { justify: "space-between", children: [
3766
+ children: /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
3767
3767
  t,
3768
- /* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(ki, { size: 12 }) })
3768
+ /* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(Fr, { size: 12 }) })
3769
3769
  ] })
3770
3770
  }
3771
3771
  );
@@ -3781,7 +3781,7 @@ function Zi() {
3781
3781
  Lr,
3782
3782
  {
3783
3783
  items: e.map((l) => l.id),
3784
- strategy: qs,
3784
+ strategy: Ks,
3785
3785
  children: /* @__PURE__ */ a.jsxs(ye.Row, { height: "28px", children: [
3786
3786
  s.map((l, c) => {
3787
3787
  const u = n === l?.id;
@@ -3803,7 +3803,7 @@ function Zi() {
3803
3803
  },
3804
3804
  children: [
3805
3805
  l?.label,
3806
- l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(vi, { size: 14 }) : /* @__PURE__ */ a.jsx(fi, { size: 14 }) : /* @__PURE__ */ a.jsx(gi, { size: 14, opacity: 0.4 }))
3806
+ l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(bi, { size: 14 }) : /* @__PURE__ */ a.jsx(hi, { size: 14 }) : /* @__PURE__ */ a.jsx(pi, { size: 14, opacity: 0.4 }))
3807
3807
  ]
3808
3808
  }
3809
3809
  )
@@ -3833,8 +3833,8 @@ function ua({
3833
3833
  onPageSizeChange: o,
3834
3834
  siblingCount: s = 2
3835
3835
  }) {
3836
- return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(de, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3837
- /* @__PURE__ */ a.jsxs(de, { children: [
3836
+ return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3837
+ /* @__PURE__ */ a.jsxs(ae, { children: [
3838
3838
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
3839
3839
  /* @__PURE__ */ a.jsxs(
3840
3840
  z.Root,
@@ -3866,8 +3866,8 @@ function ua({
3866
3866
  page: n,
3867
3867
  siblingCount: s,
3868
3868
  onPageChange: (i) => r && r(i.page),
3869
- children: /* @__PURE__ */ a.jsxs(to, { size: "sm", variant: "ghost", children: [
3870
- /* @__PURE__ */ a.jsx(na, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(wi, { size: 18 }) }) }),
3869
+ children: /* @__PURE__ */ a.jsxs(no, { size: "sm", variant: "ghost", children: [
3870
+ /* @__PURE__ */ a.jsx(na, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(Si, { size: 18 }) }) }),
3871
3871
  /* @__PURE__ */ a.jsx(
3872
3872
  It.Items,
3873
3873
  {
@@ -3882,7 +3882,7 @@ function ua({
3882
3882
  )
3883
3883
  }
3884
3884
  ),
3885
- /* @__PURE__ */ a.jsx(ra, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(Ci, { size: 18 }) }) })
3885
+ /* @__PURE__ */ a.jsx(ra, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(Ri, { size: 18 }) }) })
3886
3886
  ] })
3887
3887
  }
3888
3888
  )
@@ -3897,7 +3897,7 @@ function pa({
3897
3897
  return /* @__PURE__ */ a.jsx(ye.Body, { children: e.map((o) => /* @__PURE__ */ a.jsxs(ye.Row, { children: [
3898
3898
  n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ a.jsx(ye.Cell, { children: o[s.id] }, s.id)),
3899
3899
  /* @__PURE__ */ a.jsx(ye.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ a.jsxs(Se.Root, { children: [
3900
- /* @__PURE__ */ a.jsx(ga, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(Oi, { size: 16 }) }) }),
3900
+ /* @__PURE__ */ a.jsx(ga, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(Ti, { size: 16 }) }) }),
3901
3901
  /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ha, { children: /* @__PURE__ */ a.jsx(fa, { children: t.map((s) => /* @__PURE__ */ a.jsxs(
3902
3902
  da,
3903
3903
  {
@@ -4149,9 +4149,9 @@ function _a({
4149
4149
  }
4150
4150
  ) }),
4151
4151
  /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ja, { children: /* @__PURE__ */ a.jsxs(Ea, { p: 4, children: [
4152
- /* @__PURE__ */ a.jsx(no, {}),
4152
+ /* @__PURE__ */ a.jsx(ro, {}),
4153
4153
  /* @__PURE__ */ a.jsxs(je, { align: "start", gap: 4, children: [
4154
- /* @__PURE__ */ a.jsxs(de, { children: [
4154
+ /* @__PURE__ */ a.jsxs(ae, { children: [
4155
4155
  /* @__PURE__ */ a.jsx(or, { size: 16 }),
4156
4156
  /* @__PURE__ */ a.jsx(U, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4157
4157
  ] }),
@@ -4172,7 +4172,7 @@ function _a({
4172
4172
  ] }),
4173
4173
  /* @__PURE__ */ a.jsxs(je, { align: "start", gap: 1, children: [
4174
4174
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4175
- /* @__PURE__ */ a.jsxs(de, { children: [
4175
+ /* @__PURE__ */ a.jsxs(ae, { children: [
4176
4176
  /* @__PURE__ */ a.jsx(kn, { children: "Ctrl" }),
4177
4177
  /* @__PURE__ */ a.jsx(U, { children: "+" }),
4178
4178
  /* @__PURE__ */ a.jsx(kn, { children: "D" })
@@ -4217,7 +4217,7 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4217
4217
  value: t,
4218
4218
  onChange: n,
4219
4219
  placeholder: r,
4220
- size: o = "sm",
4220
+ size: o = "xs",
4221
4221
  variant: s = "outline",
4222
4222
  width: i = "100%",
4223
4223
  label: l,
@@ -4284,10 +4284,10 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4284
4284
  c && /* @__PURE__ */ a.jsx(ka, { children: c }),
4285
4285
  f && /* @__PURE__ */ a.jsx(Na, { children: f })
4286
4286
  ] });
4287
- }, Vr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4287
+ }, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4288
4288
  function Xa(e) {
4289
4289
  try {
4290
- return JSON.parse(localStorage.getItem(Vr(e)) || "[]");
4290
+ return JSON.parse(localStorage.getItem(Yr(e)) || "[]");
4291
4291
  } catch {
4292
4292
  return [];
4293
4293
  }
@@ -4300,24 +4300,23 @@ const $t = new gr({}), Cn = (e) => {
4300
4300
  ...r,
4301
4301
  [e]: n
4302
4302
  })), n;
4303
- }, Yr = (e, t) => {
4303
+ }, Hr = (e, t) => {
4304
4304
  $t.setState((n) => ({
4305
4305
  ...n,
4306
4306
  [e]: t
4307
- })), localStorage.setItem(Vr(e), JSON.stringify(t));
4307
+ })), localStorage.setItem(Yr(e), JSON.stringify(t));
4308
4308
  }, qa = (e, t) => {
4309
4309
  const n = Cn(e).filter((r) => r.id !== t);
4310
- Yr(e, n);
4310
+ Hr(e, n);
4311
4311
  }, Ka = (e, t) => {
4312
4312
  const n = [t, ...Cn(e)];
4313
- Yr(e, n);
4313
+ Hr(e, n);
4314
4314
  }, Ja = y(pe.Root), Za = y(pe.HiddenInput), Qa = y(pe.Control), el = y(pt.Root), tl = y(pt.Track), nl = y(pt.Range), rl = y(pt.Thumbs), ol = y(pt.Control), sl = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4315
4315
  const { attributes: r, listeners: o, setNodeRef: s, transform: i, transition: l } = Pr({
4316
4316
  id: e.id
4317
4317
  }), c = {
4318
4318
  transform: qe.Transform.toString(i),
4319
- transition: l,
4320
- cursor: "grab"
4319
+ transition: l
4321
4320
  };
4322
4321
  return /* @__PURE__ */ a.jsxs(
4323
4322
  je,
@@ -4330,18 +4329,20 @@ const $t = new gr({}), Cn = (e) => {
4330
4329
  rounded: "md",
4331
4330
  p: 3,
4332
4331
  mb: 3,
4333
- ...r,
4334
- ...o,
4332
+ bg: "white",
4335
4333
  children: [
4336
- /* @__PURE__ */ a.jsx(U, { fontWeight: "bold", children: e.label }),
4337
- /* @__PURE__ */ a.jsxs(de, { justify: "space-between", children: [
4334
+ /* @__PURE__ */ a.jsxs(ae, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
4335
+ /* @__PURE__ */ a.jsx(Fr, { size: 16 }),
4336
+ /* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
4337
+ ] }),
4338
+ /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
4338
4339
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
4339
4340
  /* @__PURE__ */ a.jsxs(
4340
4341
  Ja,
4341
4342
  {
4342
4343
  checked: e.visible,
4343
- onCheckedChange: (u) => t && t(e.id, !!u),
4344
4344
  size: "sm",
4345
+ onCheckedChange: (u) => t?.(e.id, !!u.checked),
4345
4346
  children: [
4346
4347
  /* @__PURE__ */ a.jsx(Za, {}),
4347
4348
  /* @__PURE__ */ a.jsx(Qa, {})
@@ -4354,12 +4355,11 @@ const $t = new gr({}), Cn = (e) => {
4354
4355
  /* @__PURE__ */ a.jsx(
4355
4356
  el,
4356
4357
  {
4357
- width: "200px",
4358
4358
  min: 1,
4359
4359
  max: 5,
4360
4360
  step: 0.5,
4361
4361
  value: [e.size ?? 1],
4362
- onChange: (u) => n && n(e.id, u[0]),
4362
+ onValueChange: (u) => n?.(e.id, u.value[0]),
4363
4363
  children: /* @__PURE__ */ a.jsxs(ol, { children: [
4364
4364
  /* @__PURE__ */ a.jsx(tl, { children: /* @__PURE__ */ a.jsx(nl, {}) }),
4365
4365
  /* @__PURE__ */ a.jsx(rl, {})
@@ -4370,8 +4370,8 @@ const $t = new gr({}), Cn = (e) => {
4370
4370
  ]
4371
4371
  }
4372
4372
  );
4373
- }, il = y(Ce.Root), al = y(Ce.Trigger), ll = y(Ce.Backdrop), cl = y(Ce.Positioner), ul = y(Ce.Content), dl = y(Ce.Header), fl = y(Ce.Title), hl = y(Ce.Body), gl = y(Ce.Footer), pl = y(Ce.CloseTrigger), vl = y(zt.Root), bl = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Hr = (e) => {
4374
- if (console.log(e), e.customComponent)
4373
+ }, il = y(Ce.Root), al = y(Ce.Trigger), ll = y(Ce.Backdrop), cl = y(Ce.Positioner), ul = y(Ce.Content), dl = y(Ce.Header), fl = y(Ce.Title), hl = y(Ce.Body), gl = y(Ce.Footer), pl = y(Ce.CloseTrigger), vl = y(zt.Root), bl = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Br = (e) => {
4374
+ if (e.customComponent)
4375
4375
  return e.customComponent;
4376
4376
  switch (e.type) {
4377
4377
  case "text":
@@ -4437,9 +4437,9 @@ const $t = new gr({}), Cn = (e) => {
4437
4437
  filters: i
4438
4438
  });
4439
4439
  };
4440
- return /* @__PURE__ */ a.jsx(de, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(il, { size: e, children: [
4440
+ return /* @__PURE__ */ a.jsx(ae, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(il, { size: e, children: [
4441
4441
  /* @__PURE__ */ a.jsx(al, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4442
- /* @__PURE__ */ a.jsx(Ii, { size: 16 }),
4442
+ /* @__PURE__ */ a.jsx(Ai, { size: 16 }),
4443
4443
  "Filters"
4444
4444
  ] }) }),
4445
4445
  /* @__PURE__ */ a.jsxs(gt, { children: [
@@ -4457,7 +4457,7 @@ const $t = new gr({}), Cn = (e) => {
4457
4457
  "Settings"
4458
4458
  ] }),
4459
4459
  /* @__PURE__ */ a.jsxs(rn, { value: "presets", children: [
4460
- /* @__PURE__ */ a.jsx(mi, { size: 16 }),
4460
+ /* @__PURE__ */ a.jsx(xi, { size: 16 }),
4461
4461
  "Presets"
4462
4462
  ] })
4463
4463
  ] }),
@@ -4472,14 +4472,14 @@ const $t = new gr({}), Cn = (e) => {
4472
4472
  rounded: "md",
4473
4473
  p: 3,
4474
4474
  mb: 3,
4475
- children: Hr(d)
4475
+ children: Br(d)
4476
4476
  },
4477
4477
  d.id
4478
4478
  )) }),
4479
4479
  /* @__PURE__ */ a.jsx(on, { value: "settings", children: /* @__PURE__ */ a.jsx(
4480
4480
  Ar,
4481
4481
  {
4482
- sensors: Lo(Mo(wn)),
4482
+ sensors: $o(Lo(wn)),
4483
4483
  collisionDetection: mr,
4484
4484
  onDragEnd: ({ active: d, over: b }) => {
4485
4485
  if (!b || d.id === b.id) return;
@@ -4490,7 +4490,7 @@ const $t = new gr({}), Cn = (e) => {
4490
4490
  Lr,
4491
4491
  {
4492
4492
  items: o.map((d) => d.id),
4493
- strategy: Js,
4493
+ strategy: Zs,
4494
4494
  children: o.map((d) => /* @__PURE__ */ a.jsx(
4495
4495
  sl,
4496
4496
  {
@@ -4508,7 +4508,7 @@ const $t = new gr({}), Cn = (e) => {
4508
4508
  /* @__PURE__ */ a.jsx(Gt, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
4509
4509
  f.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4510
4510
  f.map((d) => /* @__PURE__ */ a.jsxs(
4511
- de,
4511
+ ae,
4512
4512
  {
4513
4513
  justify: "space-between",
4514
4514
  border: "1px solid",
@@ -4520,7 +4520,7 @@ const $t = new gr({}), Cn = (e) => {
4520
4520
  /* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: d.name }),
4521
4521
  /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: new Date(d.date).toLocaleDateString() })
4522
4522
  ] }),
4523
- /* @__PURE__ */ a.jsxs(de, { children: [
4523
+ /* @__PURE__ */ a.jsxs(ae, { children: [
4524
4524
  /* @__PURE__ */ a.jsx(
4525
4525
  Gt,
4526
4526
  {
@@ -4537,7 +4537,7 @@ const $t = new gr({}), Cn = (e) => {
4537
4537
  "aria-label": "Delete preset",
4538
4538
  variant: "ghost",
4539
4539
  onClick: () => qa(s, d.id),
4540
- children: /* @__PURE__ */ a.jsx(ji, { size: 14 })
4540
+ children: /* @__PURE__ */ a.jsx(_i, { size: 14 })
4541
4541
  }
4542
4542
  )
4543
4543
  ] })
@@ -4558,7 +4558,7 @@ const $t = new gr({}), Cn = (e) => {
4558
4558
  children: "Clear All"
4559
4559
  }
4560
4560
  ),
4561
- /* @__PURE__ */ a.jsx(pl, { asChild: !0, children: /* @__PURE__ */ a.jsx(ro, {}) })
4561
+ /* @__PURE__ */ a.jsx(pl, { asChild: !0, children: /* @__PURE__ */ a.jsx(oo, {}) })
4562
4562
  ] })
4563
4563
  ] }) })
4564
4564
  ] })
@@ -4576,16 +4576,16 @@ const $t = new gr({}), Cn = (e) => {
4576
4576
  onLoadPreset: u,
4577
4577
  activePresetName: h,
4578
4578
  filterDrawerSize: f = "sm"
4579
- }) => /* @__PURE__ */ a.jsxs(de, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4579
+ }) => /* @__PURE__ */ a.jsxs(ae, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4580
4580
  e,
4581
- /* @__PURE__ */ a.jsxs(de, { gapX: 1, children: [
4581
+ /* @__PURE__ */ a.jsxs(ae, { gapX: 1, children: [
4582
4582
  t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
4583
- de,
4583
+ ae,
4584
4584
  {
4585
4585
  flex: v.size ?? 1,
4586
4586
  minW: `${(v.size ?? 1) * 100}px`,
4587
4587
  alignItems: "center",
4588
- children: Hr(v)
4588
+ children: Br(v)
4589
4589
  },
4590
4590
  v.id
4591
4591
  )),
@@ -4627,7 +4627,7 @@ export {
4627
4627
  Dl as loadOrder,
4628
4628
  $t as presetStore,
4629
4629
  Rl as saveOrder,
4630
- Yr as savePresets,
4630
+ Hr as savePresets,
4631
4631
  Vi as setData,
4632
4632
  Yi as setTableId,
4633
4633
  fe as tableStore,