@snowpact/react-tanstack-query-table 1.5.5 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { jsxs as k, jsx as p, Fragment as zt } from "react/jsx-runtime";
1
+ import { jsxs as k, jsx as p, Fragment as Yt } from "react/jsx-runtime";
2
2
  import { useMutation as Es, useQuery as Qo, keepPreviousData as Rs } from "@tanstack/react-query";
3
3
  import * as d from "react";
4
- import He, { useState as ae, useEffect as pt, useRef as Rn, useCallback as be, useMemo as Ce, forwardRef as er, useLayoutEffect as As, memo as Ps } from "react";
5
- import * as jt from "react-dom";
6
- import Ts, { createPortal as Is } from "react-dom";
7
- import { useReactTable as Ms, getFilteredRowModel as Ns, getPaginationRowModel as _s, getSortedRowModel as Os, getCoreRowModel as Ds, flexRender as bo } from "@tanstack/react-table";
8
- const de = ({ children: e, ...t }) => /* @__PURE__ */ p(
4
+ import He, { useState as ae, useEffect as ht, useRef as Pn, useCallback as be, useMemo as Ce, forwardRef as er, useLayoutEffect as As, memo as Ps } from "react";
5
+ import * as Xt from "react-dom";
6
+ import Ts, { createPortal as Ms } from "react-dom";
7
+ import { useReactTable as Is, getFilteredRowModel as Ns, getPaginationRowModel as _s, getSortedRowModel as Os, getCoreRowModel as Ds, flexRender as bo } from "@tanstack/react-table";
8
+ const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
9
9
  "svg",
10
10
  {
11
11
  xmlns: "http://www.w3.org/2000/svg",
@@ -20,30 +20,34 @@ const de = ({ children: e, ...t }) => /* @__PURE__ */ p(
20
20
  ...t,
21
21
  children: e
22
22
  }
23
- ), tr = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Wn = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ks = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Fs = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ls = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), $s = (e) => /* @__PURE__ */ k(de, { ...e, children: [
23
+ ), tr = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Hn = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Fs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ls = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), $s = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
24
24
  /* @__PURE__ */ p("path", { d: "m11 17-5-5 5-5" }),
25
25
  /* @__PURE__ */ p("path", { d: "m18 17-5-5 5-5" })
26
- ] }), Vs = (e) => /* @__PURE__ */ k(de, { ...e, children: [
26
+ ] }), Vs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
27
27
  /* @__PURE__ */ p("path", { d: "m6 17 5-5-5-5" }),
28
28
  /* @__PURE__ */ p("path", { d: "m13 17 5-5-5-5" })
29
- ] }), Bs = (e) => /* @__PURE__ */ k(de, { ...e, children: [
29
+ ] }), Bs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
30
30
  /* @__PURE__ */ p("path", { d: "m7 15 5 5 5-5" }),
31
31
  /* @__PURE__ */ p("path", { d: "m7 9 5-5 5 5" })
32
- ] }), Ws = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Us = (e) => /* @__PURE__ */ k(de, { ...e, children: [
32
+ ] }), Ws = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Us = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
33
+ /* @__PURE__ */ p("path", { d: "M3 6h18" }),
34
+ /* @__PURE__ */ p("path", { d: "M7 12h10" }),
35
+ /* @__PURE__ */ p("path", { d: "M10 18h4" })
36
+ ] }), Hs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
33
37
  /* @__PURE__ */ p("path", { d: "M10 20v-6L3.6 5.2A2 2 0 0 1 5.17 2h13.66a2 2 0 0 1 1.57 3.2L14 12.9" }),
34
38
  /* @__PURE__ */ p("path", { d: "m22 22-4-4" }),
35
39
  /* @__PURE__ */ p("path", { d: "m18 22 4-4" })
36
- ] }), Hs = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Ks = (e) => /* @__PURE__ */ k(de, { ...e, children: [
40
+ ] }), Ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Gs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
37
41
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "1" }),
38
42
  /* @__PURE__ */ p("circle", { cx: "12", cy: "5", r: "1" }),
39
43
  /* @__PURE__ */ p("circle", { cx: "12", cy: "19", r: "1" })
40
- ] }), nr = (e) => /* @__PURE__ */ k(de, { ...e, children: [
44
+ ] }), nr = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
41
45
  /* @__PURE__ */ p("circle", { cx: "11", cy: "11", r: "8" }),
42
46
  /* @__PURE__ */ p("path", { d: "m21 21-4.3-4.3" })
43
- ] }), Co = (e) => /* @__PURE__ */ k(de, { ...e, children: [
47
+ ] }), Co = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
44
48
  /* @__PURE__ */ p("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
45
49
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
46
- ] }), Gs = Wn;
50
+ ] }), zs = Hn;
47
51
  function X(...e) {
48
52
  const t = [], n = (o) => {
49
53
  if (o) {
@@ -61,19 +65,19 @@ function X(...e) {
61
65
  n(o);
62
66
  return t.join(" ");
63
67
  }
64
- const pn = 768;
65
- function zs() {
68
+ const hn = 768;
69
+ function js() {
66
70
  const [e, t] = ae(void 0);
67
- return pt(() => {
71
+ return ht(() => {
68
72
  if (typeof window > "u" || !window.matchMedia)
69
73
  return;
70
- const n = window.matchMedia(`(max-width: ${pn - 1}px)`), o = () => {
71
- t(window.innerWidth < pn);
74
+ const n = window.matchMedia(`(max-width: ${hn - 1}px)`), o = () => {
75
+ t(window.innerWidth < hn);
72
76
  };
73
- return n.addEventListener("change", o), t(window.innerWidth < pn), () => n.removeEventListener("change", o);
77
+ return n.addEventListener("change", o), t(window.innerWidth < hn), () => n.removeEventListener("change", o);
74
78
  }, []), !!e;
75
79
  }
76
- const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Ys = (e) => js(e) ? String(e) : JSON.stringify(e, null, 2), _t = "dt_prefilter", Ot = "dt_search", Dt = "dt_page", An = "dt_pageSize", kt = "dt_filters", lt = "dt_sortBy", ut = "dt_sortDesc", Ke = (e) => {
80
+ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Xs = (e) => Ys(e) ? String(e) : JSON.stringify(e, null, 2), Dt = "dt_prefilter", kt = "dt_search", Ft = "dt_page", Tn = "dt_pageSize", Lt = "dt_filters", dt = "dt_sortBy", ft = "dt_sortDesc", Ke = (e) => {
77
81
  if (typeof window > "u") return null;
78
82
  try {
79
83
  return new URL(window.location.href).searchParams.get(e);
@@ -91,62 +95,62 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
91
95
  defaultSortBy: o,
92
96
  defaultSortOrder: r = "asc"
93
97
  }) => {
94
- const i = Rn(e), a = Rn(n), [s, c] = ae(() => {
98
+ const i = Pn(e), a = Pn(n), [s, c] = ae(() => {
95
99
  if (e) {
96
- const x = Ke(_t);
100
+ const x = Ke(Dt);
97
101
  if (x) return x;
98
102
  }
99
103
  return t;
100
104
  }), l = be((x) => {
101
- c(x), i.current && se(_t, x ?? null);
102
- }, []), [f, u] = ae(() => e ? Ke(Ot) ?? "" : ""), m = be((x) => {
103
- u(x), i.current && se(Ot, x || null);
105
+ c(x), i.current && se(Dt, x ?? null);
106
+ }, []), [f, u] = ae(() => e ? Ke(kt) ?? "" : ""), m = be((x) => {
107
+ u(x), i.current && se(kt, x || null);
104
108
  }, []), [g, w] = ae(() => {
105
109
  if (e) {
106
- const x = Ke(Dt), I = Ke(An);
110
+ const x = Ke(Ft), M = Ke(Tn);
107
111
  return {
108
112
  pageIndex: x ? parseInt(x, 10) - 1 : 0,
109
- pageSize: I ? parseInt(I, 10) : n
113
+ pageSize: M ? parseInt(M, 10) : n
110
114
  };
111
115
  }
112
116
  return { pageIndex: 0, pageSize: n };
113
117
  }), h = be((x) => {
114
- w((I) => {
115
- const T = typeof x == "function" ? x(I) : x;
116
- return i.current && (I.pageIndex !== T.pageIndex || I.pageSize !== T.pageSize) && (se(Dt, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
117
- An,
118
+ w((M) => {
119
+ const T = typeof x == "function" ? x(M) : x;
120
+ return i.current && (M.pageIndex !== T.pageIndex || M.pageSize !== T.pageSize) && (se(Ft, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
121
+ Tn,
118
122
  T.pageSize !== a.current ? String(T.pageSize) : null
119
123
  )), T;
120
124
  });
121
125
  }, []), [v, y] = ae(() => {
122
126
  if (e) {
123
- const x = Ke(kt);
127
+ const x = Ke(Lt);
124
128
  if (x)
125
- return Xs(x);
129
+ return Zs(x);
126
130
  }
127
131
  return {};
128
132
  }), C = be((x) => {
129
133
  if (y(x), i.current) {
130
134
  const T = Object.keys(x).length > 0 ? rr(x) : null;
131
- se(kt, T);
135
+ se(Lt, T);
132
136
  }
133
137
  }, []), [b, S] = ae(() => {
134
138
  if (e) {
135
- const x = Ke(lt), I = Ke(ut);
139
+ const x = Ke(dt), M = Ke(ft);
136
140
  if (x)
137
- return [{ id: x, desc: I === "true" }];
141
+ return [{ id: x, desc: M === "true" }];
138
142
  }
139
143
  return o ? [{ id: o, desc: r === "desc" }] : [];
140
144
  }), R = be((x) => {
141
- S((I) => {
142
- const T = typeof x == "function" ? x(I) : x;
143
- return i.current && (T.length > 0 ? (se(lt, T[0].id), se(ut, String(T[0].desc))) : (se(lt, null), se(ut, null))), T;
145
+ S((M) => {
146
+ const T = typeof x == "function" ? x(M) : x;
147
+ return i.current && (T.length > 0 ? (se(dt, T[0].id), se(ft, String(T[0].desc))) : (se(dt, null), se(ft, null))), T;
144
148
  });
145
149
  }, []), A = Ce(() => {
146
150
  const x = o ? [{ id: o, desc: r === "desc" }] : [];
147
151
  return f !== "" || s !== t || Object.keys(v).length > 0 || b.length !== x.length || b.length > 0 && x.length > 0 && (b[0].id !== x[0].id || b[0].desc !== x[0].desc);
148
152
  }, [f, s, t, v, b, o, r]), E = be(() => {
149
- i.current && (se(_t, null), se(Ot, null), se(Dt, null), se(kt, null), se(lt, null), se(ut, null)), c(t), u(""), w((x) => ({ pageIndex: 0, pageSize: x.pageSize })), y({}), S(o ? [{ id: o, desc: r === "desc" }] : []);
153
+ i.current && (se(Dt, null), se(kt, null), se(Ft, null), se(Lt, null), se(dt, null), se(ft, null)), c(t), u(""), w((x) => ({ pageIndex: 0, pageSize: x.pageSize })), y({}), S(o ? [{ id: o, desc: r === "desc" }] : []);
150
154
  }, [t, o, r]);
151
155
  return {
152
156
  activePrefilter: s,
@@ -169,7 +173,7 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
169
173
  !n || r.length === 0 || t.push(`${n}:${r.join(",")}`);
170
174
  }
171
175
  return t.join("|");
172
- }, Xs = (e) => {
176
+ }, Zs = (e) => {
173
177
  if (!e) return {};
174
178
  const t = {}, n = e.split("|").map((o) => o.trim()).filter(Boolean);
175
179
  for (const o of n) {
@@ -179,20 +183,20 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
179
183
  a.length > 0 && (t[r] = a);
180
184
  }
181
185
  return t;
182
- }, Yf = (e, t) => {
186
+ }, Xf = (e, t) => {
183
187
  const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
184
188
  if (t) {
185
- if (t.prefilter && n.searchParams.set(_t, t.prefilter), t.search && n.searchParams.set(Ot, t.search), t.pagination) {
189
+ if (t.prefilter && n.searchParams.set(Dt, t.prefilter), t.search && n.searchParams.set(kt, t.search), t.pagination) {
186
190
  const { pageIndex: o, pageSize: r } = t.pagination;
187
- o > 0 && n.searchParams.set(Dt, String(o + 1)), r && n.searchParams.set(An, String(r));
191
+ o > 0 && n.searchParams.set(Ft, String(o + 1)), r && n.searchParams.set(Tn, String(r));
188
192
  }
189
193
  if (t.filters && Object.keys(t.filters).length > 0) {
190
194
  const o = rr(t.filters);
191
- n.searchParams.set(kt, o);
195
+ n.searchParams.set(Lt, o);
192
196
  }
193
197
  if (t.sorting && t.sorting.length > 0) {
194
198
  const o = t.sorting[0];
195
- n.searchParams.set(lt, o.id), n.searchParams.set(ut, String(o.desc));
199
+ n.searchParams.set(dt, o.id), n.searchParams.set(ft, String(o.desc));
196
200
  }
197
201
  }
198
202
  return n.pathname + n.search;
@@ -607,9 +611,9 @@ const ir = {
607
611
  x̧: "x",
608
612
  Z̧: "Z",
609
613
  z̧: "z"
610
- }, Zs = Object.keys(ir).join("|"), qs = new RegExp(Zs, "g");
611
- function Js(e) {
612
- return e.replace(qs, (t) => ir[t]);
614
+ }, qs = Object.keys(ir).join("|"), Js = new RegExp(qs, "g");
615
+ function Qs(e) {
616
+ return e.replace(Js, (t) => ir[t]);
613
617
  }
614
618
  /**
615
619
  * @name match-sorter
@@ -617,7 +621,7 @@ function Js(e) {
617
621
  * @copyright (c) 2099 Kent C. Dodds
618
622
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
619
623
  */
620
- const ue = {
624
+ const de = {
621
625
  CASE_SENSITIVE_EQUAL: 7,
622
626
  EQUAL: 6,
623
627
  STARTS_WITH: 5,
@@ -627,9 +631,9 @@ const ue = {
627
631
  MATCHES: 1,
628
632
  NO_MATCH: 0
629
633
  };
630
- function Qs(e, t, n) {
634
+ function ea(e, t, n) {
631
635
  var o;
632
- if (n = n || {}, n.threshold = (o = n.threshold) != null ? o : ue.MATCHES, !n.accessors) {
636
+ if (n = n || {}, n.threshold = (o = n.threshold) != null ? o : de.MATCHES, !n.accessors) {
633
637
  const a = So(e, t, n);
634
638
  return {
635
639
  // ends up being duplicate of 'item' in matches but consistent
@@ -640,9 +644,9 @@ function Qs(e, t, n) {
640
644
  passed: a >= n.threshold
641
645
  };
642
646
  }
643
- const r = oa(e, n.accessors), i = {
647
+ const r = ra(e, n.accessors), i = {
644
648
  rankedValue: e,
645
- rank: ue.NO_MATCH,
649
+ rank: de.NO_MATCH,
646
650
  accessorIndex: -1,
647
651
  accessorThreshold: n.threshold,
648
652
  passed: !1
@@ -655,14 +659,14 @@ function Qs(e, t, n) {
655
659
  maxRanking: f,
656
660
  threshold: u = n.threshold
657
661
  } = s.attributes;
658
- c < l && c >= ue.MATCHES ? c = l : c > f && (c = f), c = Math.min(c, f), c >= u && c > i.rank && (i.rank = c, i.passed = !0, i.accessorIndex = a, i.accessorThreshold = u, i.rankedValue = s.itemValue);
662
+ c < l && c >= de.MATCHES ? c = l : c > f && (c = f), c = Math.min(c, f), c >= u && c > i.rank && (i.rank = c, i.passed = !0, i.accessorIndex = a, i.accessorThreshold = u, i.rankedValue = s.itemValue);
659
663
  }
660
664
  return i;
661
665
  }
662
666
  function So(e, t, n) {
663
- return e = xo(e, n), t = xo(t, n), t.length > e.length ? ue.NO_MATCH : e === t ? ue.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? ue.EQUAL : e.startsWith(t) ? ue.STARTS_WITH : e.includes(` ${t}`) ? ue.WORD_STARTS_WITH : e.includes(t) ? ue.CONTAINS : t.length === 1 ? ue.NO_MATCH : ea(e).includes(t) ? ue.ACRONYM : ta(e, t));
667
+ return e = xo(e, n), t = xo(t, n), t.length > e.length ? de.NO_MATCH : e === t ? de.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? de.EQUAL : e.startsWith(t) ? de.STARTS_WITH : e.includes(` ${t}`) ? de.WORD_STARTS_WITH : e.includes(t) ? de.CONTAINS : t.length === 1 ? de.NO_MATCH : ta(e).includes(t) ? de.ACRONYM : na(e, t));
664
668
  }
665
- function ea(e) {
669
+ function ta(e) {
666
670
  let t = "";
667
671
  return e.split(" ").forEach((o) => {
668
672
  o.split("-").forEach((i) => {
@@ -670,7 +674,7 @@ function ea(e) {
670
674
  });
671
675
  }), t;
672
676
  }
673
- function ta(e, t) {
677
+ function na(e, t) {
674
678
  let n = 0, o = 0;
675
679
  function r(c, l, f) {
676
680
  for (let u = f, m = l.length; u < m; u++)
@@ -680,16 +684,16 @@ function ta(e, t) {
680
684
  }
681
685
  function i(c) {
682
686
  const l = 1 / c, f = n / t.length;
683
- return ue.MATCHES + f * l;
687
+ return de.MATCHES + f * l;
684
688
  }
685
689
  const a = r(t[0], e, 0);
686
690
  if (a < 0)
687
- return ue.NO_MATCH;
691
+ return de.NO_MATCH;
688
692
  o = a;
689
693
  for (let c = 1, l = t.length; c < l; c++) {
690
694
  const f = t[c];
691
695
  if (o = r(f, e, o), !(o > -1))
692
- return ue.NO_MATCH;
696
+ return de.NO_MATCH;
693
697
  }
694
698
  const s = o - a;
695
699
  return i(s);
@@ -698,18 +702,18 @@ function xo(e, t) {
698
702
  let {
699
703
  keepDiacritics: n
700
704
  } = t;
701
- return e = `${e}`, n || (e = Js(e)), e;
705
+ return e = `${e}`, n || (e = Qs(e)), e;
702
706
  }
703
- function na(e, t) {
707
+ function oa(e, t) {
704
708
  let n = t;
705
709
  typeof t == "object" && (n = t.accessor);
706
710
  const o = n(e);
707
711
  return o == null ? [] : Array.isArray(o) ? o : [String(o)];
708
712
  }
709
- function oa(e, t) {
713
+ function ra(e, t) {
710
714
  const n = [];
711
715
  for (let o = 0, r = t.length; o < r; o++) {
712
- const i = t[o], a = ra(i), s = na(e, i);
716
+ const i = t[o], a = ia(i), s = oa(e, i);
713
717
  for (let c = 0, l = s.length; c < l; c++)
714
718
  n.push({
715
719
  itemValue: s[c],
@@ -722,14 +726,14 @@ const Eo = {
722
726
  maxRanking: 1 / 0,
723
727
  minRanking: -1 / 0
724
728
  };
725
- function ra(e) {
729
+ function ia(e) {
726
730
  return typeof e == "function" ? Eo : {
727
731
  ...Eo,
728
732
  ...e
729
733
  };
730
734
  }
731
- const ia = (e, t, n, o) => {
732
- const r = Qs(e.getValue(t), n);
735
+ const sa = (e, t, n, o) => {
736
+ const r = ea(e.getValue(t), n);
733
737
  return o({
734
738
  itemRank: r
735
739
  }), r.passed;
@@ -740,7 +744,7 @@ const ia = (e, t, n, o) => {
740
744
  } catch (n) {
741
745
  console.warn("Failed to save column configuration:", n);
742
746
  }
743
- }, sa = (e) => {
747
+ }, aa = (e) => {
744
748
  var t;
745
749
  try {
746
750
  const n = `${sr}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
@@ -752,14 +756,14 @@ const ia = (e, t, n, o) => {
752
756
  console.warn("Failed to load column configuration:", n);
753
757
  }
754
758
  return null;
755
- }, aa = (e) => {
759
+ }, ca = (e) => {
756
760
  try {
757
761
  const t = `${sr}${e}`;
758
762
  document.cookie = `${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
759
763
  } catch (t) {
760
764
  console.warn("Failed to delete column configuration:", t);
761
765
  }
762
- }, ca = () => {
766
+ }, la = () => {
763
767
  try {
764
768
  const t = new Error().stack;
765
769
  if (t) {
@@ -775,7 +779,7 @@ const ia = (e, t, n, o) => {
775
779
  console.warn("Failed to generate config ID from parent component:", t);
776
780
  }
777
781
  return `datatable-${window.location.pathname.replace(/[^a-zA-Z0-9]/g, "-")}`;
778
- }, la = {
782
+ }, ua = {
779
783
  default: "",
780
784
  danger: "snow-btn-danger",
781
785
  warning: "snow-btn-warning",
@@ -803,7 +807,7 @@ const ia = (e, t, n, o) => {
803
807
  onMouseLeave: r,
804
808
  disabled: i,
805
809
  title: c,
806
- className: X("snow-btn", la[t], a),
810
+ className: X("snow-btn", ua[t], a),
807
811
  ...l,
808
812
  children: e
809
813
  }
@@ -821,7 +825,7 @@ function Ao(e, t) {
821
825
  return e(t);
822
826
  e != null && (e.current = t);
823
827
  }
824
- function Yt(...e) {
828
+ function Zt(...e) {
825
829
  return (t) => {
826
830
  let n = !1;
827
831
  const o = e.map((r) => {
@@ -838,7 +842,7 @@ function Yt(...e) {
838
842
  };
839
843
  }
840
844
  function Z(...e) {
841
- return d.useCallback(Yt(...e), e);
845
+ return d.useCallback(Zt(...e), e);
842
846
  }
843
847
  function Xe(e, t = []) {
844
848
  let n = [];
@@ -870,9 +874,9 @@ function Xe(e, t = []) {
870
874
  );
871
875
  };
872
876
  };
873
- return r.scopeName = e, [o, ua(r, ...t)];
877
+ return r.scopeName = e, [o, da(r, ...t)];
874
878
  }
875
- function ua(...e) {
879
+ function da(...e) {
876
880
  const t = e[0];
877
881
  if (e.length === 1) return t;
878
882
  const n = () => {
@@ -891,15 +895,15 @@ function ua(...e) {
891
895
  return n.scopeName = t.scopeName, n;
892
896
  }
893
897
  var oe = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
894
- }, da = d[" useInsertionEffect ".trim().toString()] || oe;
895
- function mt({
898
+ }, fa = d[" useInsertionEffect ".trim().toString()] || oe;
899
+ function gt({
896
900
  prop: e,
897
901
  defaultProp: t,
898
902
  onChange: n = () => {
899
903
  },
900
904
  caller: o
901
905
  }) {
902
- const [r, i, a] = fa({
906
+ const [r, i, a] = pa({
903
907
  defaultProp: t,
904
908
  onChange: n
905
909
  }), s = e !== void 0, c = s ? e : r;
@@ -916,7 +920,7 @@ function mt({
916
920
  (f) => {
917
921
  var u;
918
922
  if (s) {
919
- const m = pa(f) ? f(e) : f;
923
+ const m = ma(f) ? f(e) : f;
920
924
  m !== e && ((u = a.current) == null || u.call(a, m));
921
925
  } else
922
926
  i(f);
@@ -925,25 +929,25 @@ function mt({
925
929
  );
926
930
  return [c, l];
927
931
  }
928
- function fa({
932
+ function pa({
929
933
  defaultProp: e,
930
934
  onChange: t
931
935
  }) {
932
936
  const [n, o] = d.useState(e), r = d.useRef(n), i = d.useRef(t);
933
- return da(() => {
937
+ return fa(() => {
934
938
  i.current = t;
935
939
  }, [t]), d.useEffect(() => {
936
940
  var a;
937
941
  r.current !== n && ((a = i.current) == null || a.call(i, n), r.current = n);
938
942
  }, [n, r]), [n, o, i];
939
943
  }
940
- function pa(e) {
944
+ function ma(e) {
941
945
  return typeof e == "function";
942
946
  }
943
947
  // @__NO_SIDE_EFFECTS__
944
- function ht(e) {
945
- const t = /* @__PURE__ */ ma(e), n = d.forwardRef((o, r) => {
946
- const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(ga);
948
+ function vt(e) {
949
+ const t = /* @__PURE__ */ ha(e), n = d.forwardRef((o, r) => {
950
+ const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(va);
947
951
  if (c) {
948
952
  const l = c.props.children, f = s.map((u) => u === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : u);
949
953
  return /* @__PURE__ */ p(t, { ...a, ref: r, children: d.isValidElement(l) ? d.cloneElement(l, void 0, f) : null });
@@ -953,22 +957,22 @@ function ht(e) {
953
957
  return n.displayName = `${e}.Slot`, n;
954
958
  }
955
959
  // @__NO_SIDE_EFFECTS__
956
- function ma(e) {
960
+ function ha(e) {
957
961
  const t = d.forwardRef((n, o) => {
958
962
  const { children: r, ...i } = n;
959
963
  if (d.isValidElement(r)) {
960
- const a = wa(r), s = va(i, r.props);
961
- return r.type !== d.Fragment && (s.ref = o ? Yt(o, a) : a), d.cloneElement(r, s);
964
+ const a = ya(r), s = wa(i, r.props);
965
+ return r.type !== d.Fragment && (s.ref = o ? Zt(o, a) : a), d.cloneElement(r, s);
962
966
  }
963
967
  return d.Children.count(r) > 1 ? d.Children.only(null) : null;
964
968
  });
965
969
  return t.displayName = `${e}.SlotClone`, t;
966
970
  }
967
- var ha = Symbol("radix.slottable");
968
- function ga(e) {
969
- return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ha;
971
+ var ga = Symbol("radix.slottable");
972
+ function va(e) {
973
+ return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ga;
970
974
  }
971
- function va(e, t) {
975
+ function wa(e, t) {
972
976
  const n = { ...t };
973
977
  for (const o in t) {
974
978
  const r = e[o], i = t[o];
@@ -979,12 +983,12 @@ function va(e, t) {
979
983
  }
980
984
  return { ...e, ...n };
981
985
  }
982
- function wa(e) {
986
+ function ya(e) {
983
987
  var o, r;
984
988
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
985
989
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
986
990
  }
987
- var ya = [
991
+ var ba = [
988
992
  "a",
989
993
  "button",
990
994
  "div",
@@ -1002,17 +1006,17 @@ var ya = [
1002
1006
  "span",
1003
1007
  "svg",
1004
1008
  "ul"
1005
- ], U = ya.reduce((e, t) => {
1006
- const n = /* @__PURE__ */ ht(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1009
+ ], U = ba.reduce((e, t) => {
1010
+ const n = /* @__PURE__ */ vt(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1007
1011
  const { asChild: a, ...s } = r, c = a ? n : t;
1008
1012
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...s, ref: i });
1009
1013
  });
1010
1014
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1011
1015
  }, {});
1012
1016
  function ar(e, t) {
1013
- e && jt.flushSync(() => e.dispatchEvent(t));
1017
+ e && Xt.flushSync(() => e.dispatchEvent(t));
1014
1018
  }
1015
- function Un(e) {
1019
+ function Kn(e) {
1016
1020
  const t = e + "CollectionProvider", [n, o] = Xe(t), [r, i] = n(
1017
1021
  t,
1018
1022
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -1021,14 +1025,14 @@ function Un(e) {
1021
1025
  return /* @__PURE__ */ p(r, { scope: v, itemMap: b, collectionRef: C, children: y });
1022
1026
  };
1023
1027
  a.displayName = t;
1024
- const s = e + "CollectionSlot", c = /* @__PURE__ */ ht(s), l = He.forwardRef(
1028
+ const s = e + "CollectionSlot", c = /* @__PURE__ */ vt(s), l = He.forwardRef(
1025
1029
  (h, v) => {
1026
1030
  const { scope: y, children: C } = h, b = i(s, y), S = Z(v, b.collectionRef);
1027
1031
  return /* @__PURE__ */ p(c, { ref: S, children: C });
1028
1032
  }
1029
1033
  );
1030
1034
  l.displayName = s;
1031
- const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */ ht(f), g = He.forwardRef(
1035
+ const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */ vt(f), g = He.forwardRef(
1032
1036
  (h, v) => {
1033
1037
  const { scope: y, children: C, ...b } = h, S = He.useRef(null), R = Z(v, S), A = i(f, y);
1034
1038
  return He.useEffect(() => (A.itemMap.set(S, { ref: S, ...b }), () => void A.itemMap.delete(S))), /* @__PURE__ */ p(m, { [u]: "", ref: R, children: C });
@@ -1052,12 +1056,12 @@ function Un(e) {
1052
1056
  o
1053
1057
  ];
1054
1058
  }
1055
- var ba = d.createContext(void 0);
1056
- function Xt(e) {
1057
- const t = d.useContext(ba);
1059
+ var Ca = d.createContext(void 0);
1060
+ function qt(e) {
1061
+ const t = d.useContext(Ca);
1058
1062
  return e || t || "ltr";
1059
1063
  }
1060
- function Ie(e) {
1064
+ function Me(e) {
1061
1065
  const t = d.useRef(e);
1062
1066
  return d.useEffect(() => {
1063
1067
  t.current = e;
@@ -1066,8 +1070,8 @@ function Ie(e) {
1066
1070
  return (o = t.current) == null ? void 0 : o.call(t, ...n);
1067
1071
  }, []);
1068
1072
  }
1069
- function Ca(e, t = globalThis == null ? void 0 : globalThis.document) {
1070
- const n = Ie(e);
1073
+ function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
1074
+ const n = Me(e);
1071
1075
  d.useEffect(() => {
1072
1076
  const o = (r) => {
1073
1077
  r.key === "Escape" && n(r);
@@ -1075,11 +1079,11 @@ function Ca(e, t = globalThis == null ? void 0 : globalThis.document) {
1075
1079
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
1076
1080
  }, [n, t]);
1077
1081
  }
1078
- var Sa = "DismissableLayer", Pn = "dismissableLayer.update", xa = "dismissableLayer.pointerDownOutside", Ea = "dismissableLayer.focusOutside", Po, cr = d.createContext({
1082
+ var xa = "DismissableLayer", Mn = "dismissableLayer.update", Ea = "dismissableLayer.pointerDownOutside", Ra = "dismissableLayer.focusOutside", Po, cr = d.createContext({
1079
1083
  layers: /* @__PURE__ */ new Set(),
1080
1084
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1081
1085
  branches: /* @__PURE__ */ new Set()
1082
- }), Hn = d.forwardRef(
1086
+ }), Gn = d.forwardRef(
1083
1087
  (e, t) => {
1084
1088
  const {
1085
1089
  disableOutsidePointerEvents: n = !1,
@@ -1089,14 +1093,14 @@ var Sa = "DismissableLayer", Pn = "dismissableLayer.update", xa = "dismissableLa
1089
1093
  onInteractOutside: a,
1090
1094
  onDismiss: s,
1091
1095
  ...c
1092
- } = e, l = d.useContext(cr), [f, u] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => u(E)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), C = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= y, R = Pa((E) => {
1093
- const x = E.target, I = [...l.branches].some((T) => T.contains(x));
1094
- !S || I || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
1095
- }, m), A = Ta((E) => {
1096
+ } = e, l = d.useContext(cr), [f, u] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => u(E)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), C = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= y, R = Ta((E) => {
1097
+ const x = E.target, M = [...l.branches].some((T) => T.contains(x));
1098
+ !S || M || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
1099
+ }, m), A = Ma((E) => {
1096
1100
  const x = E.target;
1097
1101
  [...l.branches].some((T) => T.contains(x)) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
1098
1102
  }, m);
1099
- return Ca((E) => {
1103
+ return Sa((E) => {
1100
1104
  C === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
1101
1105
  }, m), d.useEffect(() => {
1102
1106
  if (f)
@@ -1107,7 +1111,7 @@ var Sa = "DismissableLayer", Pn = "dismissableLayer.update", xa = "dismissableLa
1107
1111
  f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), To());
1108
1112
  }, [f, l]), d.useEffect(() => {
1109
1113
  const E = () => g({});
1110
- return document.addEventListener(Pn, E), () => document.removeEventListener(Pn, E);
1114
+ return document.addEventListener(Mn, E), () => document.removeEventListener(Mn, E);
1111
1115
  }, []), /* @__PURE__ */ p(
1112
1116
  U.div,
1113
1117
  {
@@ -1127,8 +1131,8 @@ var Sa = "DismissableLayer", Pn = "dismissableLayer.update", xa = "dismissableLa
1127
1131
  );
1128
1132
  }
1129
1133
  );
1130
- Hn.displayName = Sa;
1131
- var Ra = "DismissableLayerBranch", Aa = d.forwardRef((e, t) => {
1134
+ Gn.displayName = xa;
1135
+ var Aa = "DismissableLayerBranch", Pa = d.forwardRef((e, t) => {
1132
1136
  const n = d.useContext(cr), o = d.useRef(null), r = Z(t, o);
1133
1137
  return d.useEffect(() => {
1134
1138
  const i = o.current;
@@ -1138,16 +1142,16 @@ var Ra = "DismissableLayerBranch", Aa = d.forwardRef((e, t) => {
1138
1142
  };
1139
1143
  }, [n.branches]), /* @__PURE__ */ p(U.div, { ...e, ref: r });
1140
1144
  });
1141
- Aa.displayName = Ra;
1142
- function Pa(e, t = globalThis == null ? void 0 : globalThis.document) {
1143
- const n = Ie(e), o = d.useRef(!1), r = d.useRef(() => {
1145
+ Pa.displayName = Aa;
1146
+ function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
1147
+ const n = Me(e), o = d.useRef(!1), r = d.useRef(() => {
1144
1148
  });
1145
1149
  return d.useEffect(() => {
1146
1150
  const i = (s) => {
1147
1151
  if (s.target && !o.current) {
1148
1152
  let c = function() {
1149
1153
  lr(
1150
- xa,
1154
+ Ea,
1151
1155
  n,
1152
1156
  l,
1153
1157
  { discrete: !0 }
@@ -1169,11 +1173,11 @@ function Pa(e, t = globalThis == null ? void 0 : globalThis.document) {
1169
1173
  onPointerDownCapture: () => o.current = !0
1170
1174
  };
1171
1175
  }
1172
- function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
1173
- const n = Ie(e), o = d.useRef(!1);
1176
+ function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
1177
+ const n = Me(e), o = d.useRef(!1);
1174
1178
  return d.useEffect(() => {
1175
1179
  const r = (i) => {
1176
- i.target && !o.current && lr(Ea, n, { originalEvent: i }, {
1180
+ i.target && !o.current && lr(Ra, n, { originalEvent: i }, {
1177
1181
  discrete: !1
1178
1182
  });
1179
1183
  };
@@ -1184,34 +1188,34 @@ function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
1184
1188
  };
1185
1189
  }
1186
1190
  function To() {
1187
- const e = new CustomEvent(Pn);
1191
+ const e = new CustomEvent(Mn);
1188
1192
  document.dispatchEvent(e);
1189
1193
  }
1190
1194
  function lr(e, t, n, { discrete: o }) {
1191
1195
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1192
1196
  t && r.addEventListener(e, t, { once: !0 }), o ? ar(r, i) : r.dispatchEvent(i);
1193
1197
  }
1194
- var mn = 0;
1198
+ var gn = 0;
1195
1199
  function ur() {
1196
1200
  d.useEffect(() => {
1197
1201
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1198
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Io()), document.body.insertAdjacentElement("beforeend", e[1] ?? Io()), mn++, () => {
1199
- mn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), mn--;
1202
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mo()), gn++, () => {
1203
+ gn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), gn--;
1200
1204
  };
1201
1205
  }, []);
1202
1206
  }
1203
- function Io() {
1207
+ function Mo() {
1204
1208
  const e = document.createElement("span");
1205
1209
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1206
1210
  }
1207
- var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", Kn = d.forwardRef((e, t) => {
1211
+ var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Io = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", zn = d.forwardRef((e, t) => {
1208
1212
  const {
1209
1213
  loop: n = !1,
1210
1214
  trapped: o = !1,
1211
1215
  onMountAutoFocus: r,
1212
1216
  onUnmountAutoFocus: i,
1213
1217
  ...a
1214
- } = e, [s, c] = d.useState(null), l = Ie(r), f = Ie(i), u = d.useRef(null), m = Z(t, (h) => c(h)), g = d.useRef({
1218
+ } = e, [s, c] = d.useState(null), l = Me(r), f = Me(i), u = d.useRef(null), m = Z(t, (h) => c(h)), g = d.useRef({
1215
1219
  paused: !1,
1216
1220
  pause() {
1217
1221
  this.paused = !0;
@@ -1246,13 +1250,13 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo
1246
1250
  _o.add(g);
1247
1251
  const h = document.activeElement;
1248
1252
  if (!s.contains(h)) {
1249
- const y = new CustomEvent(hn, Mo);
1250
- s.addEventListener(hn, l), s.dispatchEvent(y), y.defaultPrevented || (Ma(ka(dr(s)), { select: !0 }), document.activeElement === h && ke(s));
1253
+ const y = new CustomEvent(vn, Io);
1254
+ s.addEventListener(vn, l), s.dispatchEvent(y), y.defaultPrevented || (Na(Fa(dr(s)), { select: !0 }), document.activeElement === h && ke(s));
1251
1255
  }
1252
1256
  return () => {
1253
- s.removeEventListener(hn, l), setTimeout(() => {
1254
- const y = new CustomEvent(gn, Mo);
1255
- s.addEventListener(gn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(gn, f), _o.remove(g);
1257
+ s.removeEventListener(vn, l), setTimeout(() => {
1258
+ const y = new CustomEvent(wn, Io);
1259
+ s.addEventListener(wn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(wn, f), _o.remove(g);
1256
1260
  }, 0);
1257
1261
  };
1258
1262
  }
@@ -1262,7 +1266,7 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo
1262
1266
  if (!n && !o || g.paused) return;
1263
1267
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
1264
1268
  if (v && y) {
1265
- const C = h.currentTarget, [b, S] = Na(C);
1269
+ const C = h.currentTarget, [b, S] = _a(C);
1266
1270
  b && S ? !h.shiftKey && y === S ? (h.preventDefault(), n && ke(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && ke(S, { select: !0 })) : y === C && h.preventDefault();
1267
1271
  }
1268
1272
  },
@@ -1270,13 +1274,13 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo
1270
1274
  );
1271
1275
  return /* @__PURE__ */ p(U.div, { tabIndex: -1, ...a, ref: m, onKeyDown: w });
1272
1276
  });
1273
- Kn.displayName = Ia;
1274
- function Ma(e, { select: t = !1 } = {}) {
1277
+ zn.displayName = Ia;
1278
+ function Na(e, { select: t = !1 } = {}) {
1275
1279
  const n = document.activeElement;
1276
1280
  for (const o of e)
1277
1281
  if (ke(o, { select: t }), document.activeElement !== n) return;
1278
1282
  }
1279
- function Na(e) {
1283
+ function _a(e) {
1280
1284
  const t = dr(e), n = No(t, e), o = No(t.reverse(), e);
1281
1285
  return [n, o];
1282
1286
  }
@@ -1292,9 +1296,9 @@ function dr(e) {
1292
1296
  }
1293
1297
  function No(e, t) {
1294
1298
  for (const n of e)
1295
- if (!_a(n, { upTo: t })) return n;
1299
+ if (!Oa(n, { upTo: t })) return n;
1296
1300
  }
1297
- function _a(e, { upTo: t }) {
1301
+ function Oa(e, { upTo: t }) {
1298
1302
  if (getComputedStyle(e).visibility === "hidden") return !0;
1299
1303
  for (; e; ) {
1300
1304
  if (t !== void 0 && e === t) return !1;
@@ -1303,17 +1307,17 @@ function _a(e, { upTo: t }) {
1303
1307
  }
1304
1308
  return !1;
1305
1309
  }
1306
- function Oa(e) {
1310
+ function Da(e) {
1307
1311
  return e instanceof HTMLInputElement && "select" in e;
1308
1312
  }
1309
1313
  function ke(e, { select: t = !1 } = {}) {
1310
1314
  if (e && e.focus) {
1311
1315
  const n = document.activeElement;
1312
- e.focus({ preventScroll: !0 }), e !== n && Oa(e) && t && e.select();
1316
+ e.focus({ preventScroll: !0 }), e !== n && Da(e) && t && e.select();
1313
1317
  }
1314
1318
  }
1315
- var _o = Da();
1316
- function Da() {
1319
+ var _o = ka();
1320
+ function ka() {
1317
1321
  let e = [];
1318
1322
  return {
1319
1323
  add(t) {
@@ -1330,30 +1334,30 @@ function Oo(e, t) {
1330
1334
  const n = [...e], o = n.indexOf(t);
1331
1335
  return o !== -1 && n.splice(o, 1), n;
1332
1336
  }
1333
- function ka(e) {
1337
+ function Fa(e) {
1334
1338
  return e.filter((t) => t.tagName !== "A");
1335
1339
  }
1336
- var Fa = d[" useId ".trim().toString()] || (() => {
1337
- }), La = 0;
1340
+ var La = d[" useId ".trim().toString()] || (() => {
1341
+ }), $a = 0;
1338
1342
  function Ge(e) {
1339
- const [t, n] = d.useState(Fa());
1343
+ const [t, n] = d.useState(La());
1340
1344
  return oe(() => {
1341
- n((o) => o ?? String(La++));
1345
+ n((o) => o ?? String($a++));
1342
1346
  }, [e]), e || (t ? `radix-${t}` : "");
1343
1347
  }
1344
- const $a = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Vt = Math.round, At = Math.floor, Te = (e) => ({
1348
+ const Va = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Wt = Math.round, Tt = Math.floor, Te = (e) => ({
1345
1349
  x: e,
1346
1350
  y: e
1347
- }), Va = {
1351
+ }), Ba = {
1348
1352
  left: "right",
1349
1353
  right: "left",
1350
1354
  bottom: "top",
1351
1355
  top: "bottom"
1352
- }, Ba = {
1356
+ }, Wa = {
1353
1357
  start: "end",
1354
1358
  end: "start"
1355
1359
  };
1356
- function Tn(e, t, n) {
1360
+ function In(e, t, n) {
1357
1361
  return fe(e, Fe(t, n));
1358
1362
  }
1359
1363
  function Oe(e, t) {
@@ -1365,54 +1369,54 @@ function De(e) {
1365
1369
  function rt(e) {
1366
1370
  return e.split("-")[1];
1367
1371
  }
1368
- function Gn(e) {
1372
+ function jn(e) {
1369
1373
  return e === "x" ? "y" : "x";
1370
1374
  }
1371
- function zn(e) {
1375
+ function Yn(e) {
1372
1376
  return e === "y" ? "height" : "width";
1373
1377
  }
1374
- const Wa = /* @__PURE__ */ new Set(["top", "bottom"]);
1378
+ const Ua = /* @__PURE__ */ new Set(["top", "bottom"]);
1375
1379
  function Pe(e) {
1376
- return Wa.has(De(e)) ? "y" : "x";
1380
+ return Ua.has(De(e)) ? "y" : "x";
1377
1381
  }
1378
- function jn(e) {
1379
- return Gn(Pe(e));
1382
+ function Xn(e) {
1383
+ return jn(Pe(e));
1380
1384
  }
1381
- function Ua(e, t, n) {
1385
+ function Ha(e, t, n) {
1382
1386
  n === void 0 && (n = !1);
1383
- const o = rt(e), r = jn(e), i = zn(r);
1387
+ const o = rt(e), r = Xn(e), i = Yn(r);
1384
1388
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
1385
- return t.reference[i] > t.floating[i] && (a = Bt(a)), [a, Bt(a)];
1389
+ return t.reference[i] > t.floating[i] && (a = Ut(a)), [a, Ut(a)];
1386
1390
  }
1387
- function Ha(e) {
1388
- const t = Bt(e);
1389
- return [In(e), t, In(t)];
1391
+ function Ka(e) {
1392
+ const t = Ut(e);
1393
+ return [Nn(e), t, Nn(t)];
1390
1394
  }
1391
- function In(e) {
1392
- return e.replace(/start|end/g, (t) => Ba[t]);
1395
+ function Nn(e) {
1396
+ return e.replace(/start|end/g, (t) => Wa[t]);
1393
1397
  }
1394
- const Do = ["left", "right"], ko = ["right", "left"], Ka = ["top", "bottom"], Ga = ["bottom", "top"];
1395
- function za(e, t, n) {
1398
+ const Do = ["left", "right"], ko = ["right", "left"], Ga = ["top", "bottom"], za = ["bottom", "top"];
1399
+ function ja(e, t, n) {
1396
1400
  switch (e) {
1397
1401
  case "top":
1398
1402
  case "bottom":
1399
1403
  return n ? t ? ko : Do : t ? Do : ko;
1400
1404
  case "left":
1401
1405
  case "right":
1402
- return t ? Ka : Ga;
1406
+ return t ? Ga : za;
1403
1407
  default:
1404
1408
  return [];
1405
1409
  }
1406
1410
  }
1407
- function ja(e, t, n, o) {
1411
+ function Ya(e, t, n, o) {
1408
1412
  const r = rt(e);
1409
- let i = za(De(e), n === "start", o);
1410
- return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(In)))), i;
1413
+ let i = ja(De(e), n === "start", o);
1414
+ return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Nn)))), i;
1411
1415
  }
1412
- function Bt(e) {
1413
- return e.replace(/left|right|bottom|top/g, (t) => Va[t]);
1416
+ function Ut(e) {
1417
+ return e.replace(/left|right|bottom|top/g, (t) => Ba[t]);
1414
1418
  }
1415
- function Ya(e) {
1419
+ function Xa(e) {
1416
1420
  return {
1417
1421
  top: 0,
1418
1422
  right: 0,
@@ -1422,14 +1426,14 @@ function Ya(e) {
1422
1426
  };
1423
1427
  }
1424
1428
  function fr(e) {
1425
- return typeof e != "number" ? Ya(e) : {
1429
+ return typeof e != "number" ? Xa(e) : {
1426
1430
  top: e,
1427
1431
  right: e,
1428
1432
  bottom: e,
1429
1433
  left: e
1430
1434
  };
1431
1435
  }
1432
- function Wt(e) {
1436
+ function Ht(e) {
1433
1437
  const {
1434
1438
  x: t,
1435
1439
  y: n,
@@ -1452,7 +1456,7 @@ function Fo(e, t, n) {
1452
1456
  reference: o,
1453
1457
  floating: r
1454
1458
  } = e;
1455
- const i = Pe(t), a = jn(t), s = zn(a), c = De(t), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
1459
+ const i = Pe(t), a = Xn(t), s = Yn(a), c = De(t), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
1456
1460
  let g;
1457
1461
  switch (c) {
1458
1462
  case "top":
@@ -1495,7 +1499,7 @@ function Fo(e, t, n) {
1495
1499
  }
1496
1500
  return g;
1497
1501
  }
1498
- const Xa = async (e, t, n) => {
1502
+ const Za = async (e, t, n) => {
1499
1503
  const {
1500
1504
  placement: o = "bottom",
1501
1505
  strategy: r = "absolute",
@@ -1556,7 +1560,7 @@ const Xa = async (e, t, n) => {
1556
1560
  middlewareData: g
1557
1561
  };
1558
1562
  };
1559
- async function gt(e, t) {
1563
+ async function wt(e, t) {
1560
1564
  var n;
1561
1565
  t === void 0 && (t = {});
1562
1566
  const {
@@ -1572,7 +1576,7 @@ async function gt(e, t) {
1572
1576
  elementContext: u = "floating",
1573
1577
  altBoundary: m = !1,
1574
1578
  padding: g = 0
1575
- } = Oe(t, e), w = fr(g), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Wt(await i.getClippingRect({
1579
+ } = Oe(t, e), w = fr(g), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Ht(await i.getClippingRect({
1576
1580
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1577
1581
  boundary: l,
1578
1582
  rootBoundary: f,
@@ -1588,7 +1592,7 @@ async function gt(e, t) {
1588
1592
  } : {
1589
1593
  x: 1,
1590
1594
  y: 1
1591
- }, R = Wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1595
+ }, R = Ht(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1592
1596
  elements: s,
1593
1597
  rect: C,
1594
1598
  offsetParent: b,
@@ -1601,7 +1605,7 @@ async function gt(e, t) {
1601
1605
  right: (R.right - y.right + w.right) / S.x
1602
1606
  };
1603
1607
  }
1604
- const Za = (e) => ({
1608
+ const qa = (e) => ({
1605
1609
  name: "arrow",
1606
1610
  options: e,
1607
1611
  async fn(t) {
@@ -1622,10 +1626,10 @@ const Za = (e) => ({
1622
1626
  const u = fr(f), m = {
1623
1627
  x: n,
1624
1628
  y: o
1625
- }, g = jn(r), w = zn(g), h = await a.getDimensions(l), v = g === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - m[g] - i.floating[w], R = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1629
+ }, g = Xn(r), w = Yn(g), h = await a.getDimensions(l), v = g === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - m[g] - i.floating[w], R = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1626
1630
  let E = A ? A[b] : 0;
1627
1631
  (!E || !await (a.isElement == null ? void 0 : a.isElement(A))) && (E = s.floating[b] || i.floating[w]);
1628
- const x = S / 2 - R / 2, I = E / 2 - h[w] / 2 - 1, T = Fe(u[y], I), D = Fe(u[C], I), L = T, $ = E - h[w] - D, F = E / 2 - h[w] / 2 + x, K = Tn(L, F, $), O = !c.arrow && rt(r) != null && F !== K && i.reference[w] / 2 - (F < L ? T : D) - h[w] / 2 < 0, B = O ? F < L ? F - L : F - $ : 0;
1632
+ const x = S / 2 - R / 2, M = E / 2 - h[w] / 2 - 1, T = Fe(u[y], M), D = Fe(u[C], M), L = T, $ = E - h[w] - D, F = E / 2 - h[w] / 2 + x, K = In(L, F, $), O = !c.arrow && rt(r) != null && F !== K && i.reference[w] / 2 - (F < L ? T : D) - h[w] / 2 < 0, B = O ? F < L ? F - L : F - $ : 0;
1629
1633
  return {
1630
1634
  [g]: m[g] + B,
1631
1635
  data: {
@@ -1638,7 +1642,7 @@ const Za = (e) => ({
1638
1642
  reset: O
1639
1643
  };
1640
1644
  }
1641
- }), qa = function(e) {
1645
+ }), Ja = function(e) {
1642
1646
  return e === void 0 && (e = {}), {
1643
1647
  name: "flip",
1644
1648
  options: e,
@@ -1662,18 +1666,18 @@ const Za = (e) => ({
1662
1666
  } = Oe(e, t);
1663
1667
  if ((n = i.arrow) != null && n.alignmentOffset)
1664
1668
  return {};
1665
- const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Bt(s)] : Ha(s)), A = w !== "none";
1666
- !m && A && R.push(...ja(s, h, w, S));
1667
- const E = [s, ...R], x = await gt(t, v), I = [];
1669
+ const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Ut(s)] : Ka(s)), A = w !== "none";
1670
+ !m && A && R.push(...Ya(s, h, w, S));
1671
+ const E = [s, ...R], x = await wt(t, v), M = [];
1668
1672
  let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1669
- if (f && I.push(x[y]), u) {
1670
- const F = Ua(r, a, S);
1671
- I.push(x[F[0]], x[F[1]]);
1673
+ if (f && M.push(x[y]), u) {
1674
+ const F = Ha(r, a, S);
1675
+ M.push(x[F[0]], x[F[1]]);
1672
1676
  }
1673
1677
  if (T = [...T, {
1674
1678
  placement: r,
1675
- overflows: I
1676
- }], !I.every((F) => F <= 0)) {
1679
+ overflows: M
1680
+ }], !M.every((F) => F <= 0)) {
1677
1681
  var D, L;
1678
1682
  const F = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, K = E[F];
1679
1683
  if (K && (!(u === "alignment" ? C !== Pe(K) : !1) || // We leave the current main axis only if every placement on that axis
@@ -1729,9 +1733,9 @@ function Lo(e, t) {
1729
1733
  };
1730
1734
  }
1731
1735
  function $o(e) {
1732
- return $a.some((t) => e[t] >= 0);
1736
+ return Va.some((t) => e[t] >= 0);
1733
1737
  }
1734
- const Ja = function(e) {
1738
+ const Qa = function(e) {
1735
1739
  return e === void 0 && (e = {}), {
1736
1740
  name: "hide",
1737
1741
  options: e,
@@ -1744,7 +1748,7 @@ const Ja = function(e) {
1744
1748
  } = Oe(e, t);
1745
1749
  switch (o) {
1746
1750
  case "referenceHidden": {
1747
- const i = await gt(t, {
1751
+ const i = await wt(t, {
1748
1752
  ...r,
1749
1753
  elementContext: "reference"
1750
1754
  }), a = Lo(i, n.reference);
@@ -1756,7 +1760,7 @@ const Ja = function(e) {
1756
1760
  };
1757
1761
  }
1758
1762
  case "escaped": {
1759
- const i = await gt(t, {
1763
+ const i = await wt(t, {
1760
1764
  ...r,
1761
1765
  altBoundary: !0
1762
1766
  }), a = Lo(i, n.floating);
@@ -1773,7 +1777,7 @@ const Ja = function(e) {
1773
1777
  }
1774
1778
  };
1775
1779
  }, pr = /* @__PURE__ */ new Set(["left", "top"]);
1776
- async function Qa(e, t) {
1780
+ async function ec(e, t) {
1777
1781
  const {
1778
1782
  placement: n,
1779
1783
  platform: o,
@@ -1800,7 +1804,7 @@ async function Qa(e, t) {
1800
1804
  y: g * f
1801
1805
  };
1802
1806
  }
1803
- const ec = function(e) {
1807
+ const tc = function(e) {
1804
1808
  return e === void 0 && (e = 0), {
1805
1809
  name: "offset",
1806
1810
  options: e,
@@ -1811,7 +1815,7 @@ const ec = function(e) {
1811
1815
  y: i,
1812
1816
  placement: a,
1813
1817
  middlewareData: s
1814
- } = t, c = await Qa(t, e);
1818
+ } = t, c = await ec(t, e);
1815
1819
  return a === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
1816
1820
  x: r + c.x,
1817
1821
  y: i + c.y,
@@ -1822,7 +1826,7 @@ const ec = function(e) {
1822
1826
  };
1823
1827
  }
1824
1828
  };
1825
- }, tc = function(e) {
1829
+ }, nc = function(e) {
1826
1830
  return e === void 0 && (e = {}), {
1827
1831
  name: "shift",
1828
1832
  options: e,
@@ -1850,15 +1854,15 @@ const ec = function(e) {
1850
1854
  } = Oe(e, t), l = {
1851
1855
  x: n,
1852
1856
  y: o
1853
- }, f = await gt(t, c), u = Pe(De(r)), m = Gn(u);
1857
+ }, f = await wt(t, c), u = Pe(De(r)), m = jn(u);
1854
1858
  let g = l[m], w = l[u];
1855
1859
  if (i) {
1856
1860
  const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", C = g + f[v], b = g - f[y];
1857
- g = Tn(C, g, b);
1861
+ g = In(C, g, b);
1858
1862
  }
1859
1863
  if (a) {
1860
1864
  const v = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", C = w + f[v], b = w - f[y];
1861
- w = Tn(C, w, b);
1865
+ w = In(C, w, b);
1862
1866
  }
1863
1867
  const h = s.fn({
1864
1868
  ...t,
@@ -1878,7 +1882,7 @@ const ec = function(e) {
1878
1882
  };
1879
1883
  }
1880
1884
  };
1881
- }, nc = function(e) {
1885
+ }, oc = function(e) {
1882
1886
  return e === void 0 && (e = {}), {
1883
1887
  options: e,
1884
1888
  fn(t) {
@@ -1895,7 +1899,7 @@ const ec = function(e) {
1895
1899
  } = Oe(e, t), f = {
1896
1900
  x: n,
1897
1901
  y: o
1898
- }, u = Pe(r), m = Gn(u);
1902
+ }, u = Pe(r), m = jn(u);
1899
1903
  let g = f[m], w = f[u];
1900
1904
  const h = Oe(s, t), v = typeof h == "number" ? {
1901
1905
  mainAxis: h,
@@ -1920,7 +1924,7 @@ const ec = function(e) {
1920
1924
  };
1921
1925
  }
1922
1926
  };
1923
- }, oc = function(e) {
1927
+ }, rc = function(e) {
1924
1928
  return e === void 0 && (e = {}), {
1925
1929
  name: "size",
1926
1930
  options: e,
@@ -1935,7 +1939,7 @@ const ec = function(e) {
1935
1939
  apply: c = () => {
1936
1940
  },
1937
1941
  ...l
1938
- } = Oe(e, t), f = await gt(t, l), u = De(r), m = rt(r), g = Pe(r) === "y", {
1942
+ } = Oe(e, t), f = await wt(t, l), u = De(r), m = rt(r), g = Pe(r) === "y", {
1939
1943
  width: w,
1940
1944
  height: h
1941
1945
  } = i.floating;
@@ -1952,8 +1956,8 @@ const ec = function(e) {
1952
1956
  availableWidth: x,
1953
1957
  availableHeight: E
1954
1958
  });
1955
- const I = await a.getDimensions(s.floating);
1956
- return w !== I.width || h !== I.height ? {
1959
+ const M = await a.getDimensions(s.floating);
1960
+ return w !== M.width || h !== M.height ? {
1957
1961
  reset: {
1958
1962
  rects: !0
1959
1963
  }
@@ -1961,7 +1965,7 @@ const ec = function(e) {
1961
1965
  }
1962
1966
  };
1963
1967
  };
1964
- function Zt() {
1968
+ function Jt() {
1965
1969
  return typeof window < "u";
1966
1970
  }
1967
1971
  function it(e) {
@@ -1976,34 +1980,34 @@ function Ne(e) {
1976
1980
  return (t = (mr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1977
1981
  }
1978
1982
  function mr(e) {
1979
- return Zt() ? e instanceof Node || e instanceof pe(e).Node : !1;
1983
+ return Jt() ? e instanceof Node || e instanceof pe(e).Node : !1;
1980
1984
  }
1981
1985
  function Se(e) {
1982
- return Zt() ? e instanceof Element || e instanceof pe(e).Element : !1;
1986
+ return Jt() ? e instanceof Element || e instanceof pe(e).Element : !1;
1983
1987
  }
1984
- function Me(e) {
1985
- return Zt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
1988
+ function Ie(e) {
1989
+ return Jt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
1986
1990
  }
1987
1991
  function Vo(e) {
1988
- return !Zt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
1992
+ return !Jt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
1989
1993
  }
1990
- const rc = /* @__PURE__ */ new Set(["inline", "contents"]);
1991
- function bt(e) {
1994
+ const ic = /* @__PURE__ */ new Set(["inline", "contents"]);
1995
+ function St(e) {
1992
1996
  const {
1993
1997
  overflow: t,
1994
1998
  overflowX: n,
1995
1999
  overflowY: o,
1996
2000
  display: r
1997
2001
  } = xe(e);
1998
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !rc.has(r);
2002
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !ic.has(r);
1999
2003
  }
2000
- const ic = /* @__PURE__ */ new Set(["table", "td", "th"]);
2001
- function sc(e) {
2002
- return ic.has(it(e));
2004
+ const sc = /* @__PURE__ */ new Set(["table", "td", "th"]);
2005
+ function ac(e) {
2006
+ return sc.has(it(e));
2003
2007
  }
2004
- const ac = [":popover-open", ":modal"];
2005
- function qt(e) {
2006
- return ac.some((t) => {
2008
+ const cc = [":popover-open", ":modal"];
2009
+ function Qt(e) {
2010
+ return cc.some((t) => {
2007
2011
  try {
2008
2012
  return e.matches(t);
2009
2013
  } catch {
@@ -2011,33 +2015,33 @@ function qt(e) {
2011
2015
  }
2012
2016
  });
2013
2017
  }
2014
- const cc = ["transform", "translate", "scale", "rotate", "perspective"], lc = ["transform", "translate", "scale", "rotate", "perspective", "filter"], uc = ["paint", "layout", "strict", "content"];
2015
- function Yn(e) {
2016
- const t = Xn(), n = Se(e) ? xe(e) : e;
2017
- return cc.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || lc.some((o) => (n.willChange || "").includes(o)) || uc.some((o) => (n.contain || "").includes(o));
2018
+ const lc = ["transform", "translate", "scale", "rotate", "perspective"], uc = ["transform", "translate", "scale", "rotate", "perspective", "filter"], dc = ["paint", "layout", "strict", "content"];
2019
+ function Zn(e) {
2020
+ const t = qn(), n = Se(e) ? xe(e) : e;
2021
+ return lc.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || uc.some((o) => (n.willChange || "").includes(o)) || dc.some((o) => (n.contain || "").includes(o));
2018
2022
  }
2019
- function dc(e) {
2023
+ function fc(e) {
2020
2024
  let t = Le(e);
2021
- for (; Me(t) && !ot(t); ) {
2022
- if (Yn(t))
2025
+ for (; Ie(t) && !ot(t); ) {
2026
+ if (Zn(t))
2023
2027
  return t;
2024
- if (qt(t))
2028
+ if (Qt(t))
2025
2029
  return null;
2026
2030
  t = Le(t);
2027
2031
  }
2028
2032
  return null;
2029
2033
  }
2030
- function Xn() {
2034
+ function qn() {
2031
2035
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2032
2036
  }
2033
- const fc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2037
+ const pc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2034
2038
  function ot(e) {
2035
- return fc.has(it(e));
2039
+ return pc.has(it(e));
2036
2040
  }
2037
2041
  function xe(e) {
2038
2042
  return pe(e).getComputedStyle(e);
2039
2043
  }
2040
- function Jt(e) {
2044
+ function en(e) {
2041
2045
  return Se(e) ? {
2042
2046
  scrollLeft: e.scrollLeft,
2043
2047
  scrollTop: e.scrollTop
@@ -2060,109 +2064,109 @@ function Le(e) {
2060
2064
  }
2061
2065
  function hr(e) {
2062
2066
  const t = Le(e);
2063
- return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && bt(t) ? t : hr(t);
2067
+ return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && St(t) ? t : hr(t);
2064
2068
  }
2065
- function vt(e, t, n) {
2069
+ function yt(e, t, n) {
2066
2070
  var o;
2067
2071
  t === void 0 && (t = []), n === void 0 && (n = !0);
2068
2072
  const r = hr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
2069
2073
  if (i) {
2070
- const s = Mn(a);
2071
- return t.concat(a, a.visualViewport || [], bt(r) ? r : [], s && n ? vt(s) : []);
2074
+ const s = _n(a);
2075
+ return t.concat(a, a.visualViewport || [], St(r) ? r : [], s && n ? yt(s) : []);
2072
2076
  }
2073
- return t.concat(r, vt(r, [], n));
2077
+ return t.concat(r, yt(r, [], n));
2074
2078
  }
2075
- function Mn(e) {
2079
+ function _n(e) {
2076
2080
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2077
2081
  }
2078
2082
  function gr(e) {
2079
2083
  const t = xe(e);
2080
2084
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
2081
- const r = Me(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Vt(n) !== i || Vt(o) !== a;
2085
+ const r = Ie(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Wt(n) !== i || Wt(o) !== a;
2082
2086
  return s && (n = i, o = a), {
2083
2087
  width: n,
2084
2088
  height: o,
2085
2089
  $: s
2086
2090
  };
2087
2091
  }
2088
- function Zn(e) {
2092
+ function Jn(e) {
2089
2093
  return Se(e) ? e : e.contextElement;
2090
2094
  }
2091
2095
  function tt(e) {
2092
- const t = Zn(e);
2093
- if (!Me(t))
2096
+ const t = Jn(e);
2097
+ if (!Ie(t))
2094
2098
  return Te(1);
2095
2099
  const n = t.getBoundingClientRect(), {
2096
2100
  width: o,
2097
2101
  height: r,
2098
2102
  $: i
2099
2103
  } = gr(t);
2100
- let a = (i ? Vt(n.width) : n.width) / o, s = (i ? Vt(n.height) : n.height) / r;
2104
+ let a = (i ? Wt(n.width) : n.width) / o, s = (i ? Wt(n.height) : n.height) / r;
2101
2105
  return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2102
2106
  x: a,
2103
2107
  y: s
2104
2108
  };
2105
2109
  }
2106
- const pc = /* @__PURE__ */ Te(0);
2110
+ const mc = /* @__PURE__ */ Te(0);
2107
2111
  function vr(e) {
2108
2112
  const t = pe(e);
2109
- return !Xn() || !t.visualViewport ? pc : {
2113
+ return !qn() || !t.visualViewport ? mc : {
2110
2114
  x: t.visualViewport.offsetLeft,
2111
2115
  y: t.visualViewport.offsetTop
2112
2116
  };
2113
2117
  }
2114
- function mc(e, t, n) {
2118
+ function hc(e, t, n) {
2115
2119
  return t === void 0 && (t = !1), !n || t && n !== pe(e) ? !1 : t;
2116
2120
  }
2117
2121
  function ze(e, t, n, o) {
2118
2122
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2119
- const r = e.getBoundingClientRect(), i = Zn(e);
2123
+ const r = e.getBoundingClientRect(), i = Jn(e);
2120
2124
  let a = Te(1);
2121
2125
  t && (o ? Se(o) && (a = tt(o)) : a = tt(e));
2122
- const s = mc(i, n, o) ? vr(i) : Te(0);
2126
+ const s = hc(i, n, o) ? vr(i) : Te(0);
2123
2127
  let c = (r.left + s.x) / a.x, l = (r.top + s.y) / a.y, f = r.width / a.x, u = r.height / a.y;
2124
2128
  if (i) {
2125
2129
  const m = pe(i), g = o && Se(o) ? pe(o) : o;
2126
- let w = m, h = Mn(w);
2130
+ let w = m, h = _n(w);
2127
2131
  for (; h && o && g !== w; ) {
2128
2132
  const v = tt(h), y = h.getBoundingClientRect(), C = xe(h), b = y.left + (h.clientLeft + parseFloat(C.paddingLeft)) * v.x, S = y.top + (h.clientTop + parseFloat(C.paddingTop)) * v.y;
2129
- c *= v.x, l *= v.y, f *= v.x, u *= v.y, c += b, l += S, w = pe(h), h = Mn(w);
2133
+ c *= v.x, l *= v.y, f *= v.x, u *= v.y, c += b, l += S, w = pe(h), h = _n(w);
2130
2134
  }
2131
2135
  }
2132
- return Wt({
2136
+ return Ht({
2133
2137
  width: f,
2134
2138
  height: u,
2135
2139
  x: c,
2136
2140
  y: l
2137
2141
  });
2138
2142
  }
2139
- function Qt(e, t) {
2140
- const n = Jt(e).scrollLeft;
2143
+ function tn(e, t) {
2144
+ const n = en(e).scrollLeft;
2141
2145
  return t ? t.left + n : ze(Ne(e)).left + n;
2142
2146
  }
2143
2147
  function wr(e, t) {
2144
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Qt(e, n), r = n.top + t.scrollTop;
2148
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - tn(e, n), r = n.top + t.scrollTop;
2145
2149
  return {
2146
2150
  x: o,
2147
2151
  y: r
2148
2152
  };
2149
2153
  }
2150
- function hc(e) {
2154
+ function gc(e) {
2151
2155
  let {
2152
2156
  elements: t,
2153
2157
  rect: n,
2154
2158
  offsetParent: o,
2155
2159
  strategy: r
2156
2160
  } = e;
2157
- const i = r === "fixed", a = Ne(o), s = t ? qt(t.floating) : !1;
2161
+ const i = r === "fixed", a = Ne(o), s = t ? Qt(t.floating) : !1;
2158
2162
  if (o === a || s && i)
2159
2163
  return n;
2160
2164
  let c = {
2161
2165
  scrollLeft: 0,
2162
2166
  scrollTop: 0
2163
2167
  }, l = Te(1);
2164
- const f = Te(0), u = Me(o);
2165
- if ((u || !u && !i) && ((it(o) !== "body" || bt(a)) && (c = Jt(o)), Me(o))) {
2168
+ const f = Te(0), u = Ie(o);
2169
+ if ((u || !u && !i) && ((it(o) !== "body" || St(a)) && (c = en(o)), Ie(o))) {
2166
2170
  const g = ze(o);
2167
2171
  l = tt(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
2168
2172
  }
@@ -2174,12 +2178,12 @@ function hc(e) {
2174
2178
  y: n.y * l.y - c.scrollTop * l.y + f.y + m.y
2175
2179
  };
2176
2180
  }
2177
- function gc(e) {
2181
+ function vc(e) {
2178
2182
  return Array.from(e.getClientRects());
2179
2183
  }
2180
- function vc(e) {
2181
- const t = Ne(e), n = Jt(e), o = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = fe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2182
- let a = -n.scrollLeft + Qt(e);
2184
+ function wc(e) {
2185
+ const t = Ne(e), n = en(e), o = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = fe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2186
+ let a = -n.scrollLeft + tn(e);
2183
2187
  const s = -n.scrollTop;
2184
2188
  return xe(o).direction === "rtl" && (a += fe(t.clientWidth, o.clientWidth) - r), {
2185
2189
  width: r,
@@ -2189,15 +2193,15 @@ function vc(e) {
2189
2193
  };
2190
2194
  }
2191
2195
  const Bo = 25;
2192
- function wc(e, t) {
2196
+ function yc(e, t) {
2193
2197
  const n = pe(e), o = Ne(e), r = n.visualViewport;
2194
2198
  let i = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
2195
2199
  if (r) {
2196
2200
  i = r.width, a = r.height;
2197
- const f = Xn();
2201
+ const f = qn();
2198
2202
  (!f || f && t === "fixed") && (s = r.offsetLeft, c = r.offsetTop);
2199
2203
  }
2200
- const l = Qt(o);
2204
+ const l = tn(o);
2201
2205
  if (l <= 0) {
2202
2206
  const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), g = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, w = Math.abs(o.clientWidth - u.clientWidth - g);
2203
2207
  w <= Bo && (i -= w);
@@ -2209,9 +2213,9 @@ function wc(e, t) {
2209
2213
  y: c
2210
2214
  };
2211
2215
  }
2212
- const yc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2213
- function bc(e, t) {
2214
- const n = ze(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Me(e) ? tt(e) : Te(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = r * i.x, l = o * i.y;
2216
+ const bc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2217
+ function Cc(e, t) {
2218
+ const n = ze(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ie(e) ? tt(e) : Te(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = r * i.x, l = o * i.y;
2215
2219
  return {
2216
2220
  width: a,
2217
2221
  height: s,
@@ -2222,11 +2226,11 @@ function bc(e, t) {
2222
2226
  function Wo(e, t, n) {
2223
2227
  let o;
2224
2228
  if (t === "viewport")
2225
- o = wc(e, n);
2229
+ o = yc(e, n);
2226
2230
  else if (t === "document")
2227
- o = vc(Ne(e));
2231
+ o = wc(Ne(e));
2228
2232
  else if (Se(t))
2229
- o = bc(t, n);
2233
+ o = Cc(t, n);
2230
2234
  else {
2231
2235
  const r = vr(e);
2232
2236
  o = {
@@ -2236,33 +2240,33 @@ function Wo(e, t, n) {
2236
2240
  height: t.height
2237
2241
  };
2238
2242
  }
2239
- return Wt(o);
2243
+ return Ht(o);
2240
2244
  }
2241
2245
  function yr(e, t) {
2242
2246
  const n = Le(e);
2243
2247
  return n === t || !Se(n) || ot(n) ? !1 : xe(n).position === "fixed" || yr(n, t);
2244
2248
  }
2245
- function Cc(e, t) {
2249
+ function Sc(e, t) {
2246
2250
  const n = t.get(e);
2247
2251
  if (n)
2248
2252
  return n;
2249
- let o = vt(e, [], !1).filter((s) => Se(s) && it(s) !== "body"), r = null;
2253
+ let o = yt(e, [], !1).filter((s) => Se(s) && it(s) !== "body"), r = null;
2250
2254
  const i = xe(e).position === "fixed";
2251
2255
  let a = i ? Le(e) : e;
2252
2256
  for (; Se(a) && !ot(a); ) {
2253
- const s = xe(a), c = Yn(a);
2254
- !c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && yc.has(r.position) || bt(a) && !c && yr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
2257
+ const s = xe(a), c = Zn(a);
2258
+ !c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && bc.has(r.position) || St(a) && !c && yr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
2255
2259
  }
2256
2260
  return t.set(e, o), o;
2257
2261
  }
2258
- function Sc(e) {
2262
+ function xc(e) {
2259
2263
  let {
2260
2264
  element: t,
2261
2265
  boundary: n,
2262
2266
  rootBoundary: o,
2263
2267
  strategy: r
2264
2268
  } = e;
2265
- const a = [...n === "clippingAncestors" ? qt(t) ? [] : Cc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
2269
+ const a = [...n === "clippingAncestors" ? Qt(t) ? [] : Sc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
2266
2270
  const u = Wo(t, f, r);
2267
2271
  return l.top = fe(u.top, l.top), l.right = Fe(u.right, l.right), l.bottom = Fe(u.bottom, l.bottom), l.left = fe(u.left, l.left), l;
2268
2272
  }, Wo(t, s, r));
@@ -2273,7 +2277,7 @@ function Sc(e) {
2273
2277
  y: c.top
2274
2278
  };
2275
2279
  }
2276
- function xc(e) {
2280
+ function Ec(e) {
2277
2281
  const {
2278
2282
  width: t,
2279
2283
  height: n
@@ -2283,18 +2287,18 @@ function xc(e) {
2283
2287
  height: n
2284
2288
  };
2285
2289
  }
2286
- function Ec(e, t, n) {
2287
- const o = Me(t), r = Ne(t), i = n === "fixed", a = ze(e, !0, i, t);
2290
+ function Rc(e, t, n) {
2291
+ const o = Ie(t), r = Ne(t), i = n === "fixed", a = ze(e, !0, i, t);
2288
2292
  let s = {
2289
2293
  scrollLeft: 0,
2290
2294
  scrollTop: 0
2291
2295
  };
2292
2296
  const c = Te(0);
2293
2297
  function l() {
2294
- c.x = Qt(r);
2298
+ c.x = tn(r);
2295
2299
  }
2296
2300
  if (o || !o && !i)
2297
- if ((it(t) !== "body" || bt(r)) && (s = Jt(t)), o) {
2301
+ if ((it(t) !== "body" || St(r)) && (s = en(t)), o) {
2298
2302
  const g = ze(t, !0, i, t);
2299
2303
  c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
2300
2304
  } else r && l();
@@ -2307,11 +2311,11 @@ function Ec(e, t, n) {
2307
2311
  height: a.height
2308
2312
  };
2309
2313
  }
2310
- function vn(e) {
2314
+ function yn(e) {
2311
2315
  return xe(e).position === "static";
2312
2316
  }
2313
2317
  function Uo(e, t) {
2314
- if (!Me(e) || xe(e).position === "fixed")
2318
+ if (!Ie(e) || xe(e).position === "fixed")
2315
2319
  return null;
2316
2320
  if (t)
2317
2321
  return t(e);
@@ -2320,26 +2324,26 @@ function Uo(e, t) {
2320
2324
  }
2321
2325
  function br(e, t) {
2322
2326
  const n = pe(e);
2323
- if (qt(e))
2327
+ if (Qt(e))
2324
2328
  return n;
2325
- if (!Me(e)) {
2329
+ if (!Ie(e)) {
2326
2330
  let r = Le(e);
2327
2331
  for (; r && !ot(r); ) {
2328
- if (Se(r) && !vn(r))
2332
+ if (Se(r) && !yn(r))
2329
2333
  return r;
2330
2334
  r = Le(r);
2331
2335
  }
2332
2336
  return n;
2333
2337
  }
2334
2338
  let o = Uo(e, t);
2335
- for (; o && sc(o) && vn(o); )
2339
+ for (; o && ac(o) && yn(o); )
2336
2340
  o = Uo(o, t);
2337
- return o && ot(o) && vn(o) && !Yn(o) ? n : o || dc(e) || n;
2341
+ return o && ot(o) && yn(o) && !Zn(o) ? n : o || fc(e) || n;
2338
2342
  }
2339
- const Rc = async function(e) {
2343
+ const Ac = async function(e) {
2340
2344
  const t = this.getOffsetParent || br, n = this.getDimensions, o = await n(e.floating);
2341
2345
  return {
2342
- reference: Ec(e.reference, await t(e.floating), e.strategy),
2346
+ reference: Rc(e.reference, await t(e.floating), e.strategy),
2343
2347
  floating: {
2344
2348
  x: 0,
2345
2349
  y: 0,
@@ -2348,25 +2352,25 @@ const Rc = async function(e) {
2348
2352
  }
2349
2353
  };
2350
2354
  };
2351
- function Ac(e) {
2355
+ function Pc(e) {
2352
2356
  return xe(e).direction === "rtl";
2353
2357
  }
2354
- const Pc = {
2355
- convertOffsetParentRelativeRectToViewportRelativeRect: hc,
2358
+ const Tc = {
2359
+ convertOffsetParentRelativeRectToViewportRelativeRect: gc,
2356
2360
  getDocumentElement: Ne,
2357
- getClippingRect: Sc,
2361
+ getClippingRect: xc,
2358
2362
  getOffsetParent: br,
2359
- getElementRects: Rc,
2360
- getClientRects: gc,
2361
- getDimensions: xc,
2363
+ getElementRects: Ac,
2364
+ getClientRects: vc,
2365
+ getDimensions: Ec,
2362
2366
  getScale: tt,
2363
2367
  isElement: Se,
2364
- isRTL: Ac
2368
+ isRTL: Pc
2365
2369
  };
2366
2370
  function Cr(e, t) {
2367
2371
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2368
2372
  }
2369
- function Tc(e, t) {
2373
+ function Mc(e, t) {
2370
2374
  let n = null, o;
2371
2375
  const r = Ne(e);
2372
2376
  function i() {
@@ -2383,7 +2387,7 @@ function Tc(e, t) {
2383
2387
  } = l;
2384
2388
  if (s || t(), !m || !g)
2385
2389
  return;
2386
- const w = At(u), h = At(r.clientWidth - (f + m)), v = At(r.clientHeight - (u + g)), y = At(f), b = {
2390
+ const w = Tt(u), h = Tt(r.clientWidth - (f + m)), v = Tt(r.clientHeight - (u + g)), y = Tt(f), b = {
2387
2391
  rootMargin: -w + "px " + -h + "px " + -v + "px " + -y + "px",
2388
2392
  threshold: fe(0, Fe(1, c)) || 1
2389
2393
  };
@@ -2420,13 +2424,13 @@ function Ic(e, t, n, o) {
2420
2424
  elementResize: a = typeof ResizeObserver == "function",
2421
2425
  layoutShift: s = typeof IntersectionObserver == "function",
2422
2426
  animationFrame: c = !1
2423
- } = o, l = Zn(e), f = r || i ? [...l ? vt(l) : [], ...vt(t)] : [];
2427
+ } = o, l = Jn(e), f = r || i ? [...l ? yt(l) : [], ...yt(t)] : [];
2424
2428
  f.forEach((y) => {
2425
2429
  r && y.addEventListener("scroll", n, {
2426
2430
  passive: !0
2427
2431
  }), i && y.addEventListener("resize", n);
2428
2432
  });
2429
- const u = l && s ? Tc(l, n) : null;
2433
+ const u = l && s ? Mc(l, n) : null;
2430
2434
  let m = -1, g = null;
2431
2435
  a && (g = new ResizeObserver((y) => {
2432
2436
  let [C] = y;
@@ -2448,22 +2452,22 @@ function Ic(e, t, n, o) {
2448
2452
  }), u == null || u(), (y = g) == null || y.disconnect(), g = null, c && cancelAnimationFrame(w);
2449
2453
  };
2450
2454
  }
2451
- const Mc = ec, Nc = tc, _c = qa, Oc = oc, Dc = Ja, Ho = Za, kc = nc, Fc = (e, t, n) => {
2455
+ const Nc = tc, _c = nc, Oc = Ja, Dc = rc, kc = Qa, Ho = qa, Fc = oc, Lc = (e, t, n) => {
2452
2456
  const o = /* @__PURE__ */ new Map(), r = {
2453
- platform: Pc,
2457
+ platform: Tc,
2454
2458
  ...n
2455
2459
  }, i = {
2456
2460
  ...r.platform,
2457
2461
  _c: o
2458
2462
  };
2459
- return Xa(e, t, {
2463
+ return Za(e, t, {
2460
2464
  ...r,
2461
2465
  platform: i
2462
2466
  });
2463
2467
  };
2464
- var Lc = typeof document < "u", $c = function() {
2465
- }, Ft = Lc ? As : $c;
2466
- function Ut(e, t) {
2468
+ var $c = typeof document < "u", Vc = function() {
2469
+ }, $t = $c ? As : Vc;
2470
+ function Kt(e, t) {
2467
2471
  if (e === t)
2468
2472
  return !0;
2469
2473
  if (typeof e != typeof t)
@@ -2475,7 +2479,7 @@ function Ut(e, t) {
2475
2479
  if (Array.isArray(e)) {
2476
2480
  if (n = e.length, n !== t.length) return !1;
2477
2481
  for (o = n; o-- !== 0; )
2478
- if (!Ut(e[o], t[o]))
2482
+ if (!Kt(e[o], t[o]))
2479
2483
  return !1;
2480
2484
  return !0;
2481
2485
  }
@@ -2486,7 +2490,7 @@ function Ut(e, t) {
2486
2490
  return !1;
2487
2491
  for (o = n; o-- !== 0; ) {
2488
2492
  const i = r[o];
2489
- if (!(i === "_owner" && e.$$typeof) && !Ut(e[i], t[i]))
2493
+ if (!(i === "_owner" && e.$$typeof) && !Kt(e[i], t[i]))
2490
2494
  return !1;
2491
2495
  }
2492
2496
  return !0;
@@ -2500,13 +2504,13 @@ function Ko(e, t) {
2500
2504
  const n = Sr(e);
2501
2505
  return Math.round(t * n) / n;
2502
2506
  }
2503
- function wn(e) {
2507
+ function bn(e) {
2504
2508
  const t = d.useRef(e);
2505
- return Ft(() => {
2509
+ return $t(() => {
2506
2510
  t.current = e;
2507
2511
  }), t;
2508
2512
  }
2509
- function Vc(e) {
2513
+ function Bc(e) {
2510
2514
  e === void 0 && (e = {});
2511
2515
  const {
2512
2516
  placement: t = "bottom",
@@ -2528,12 +2532,12 @@ function Vc(e) {
2528
2532
  middlewareData: {},
2529
2533
  isPositioned: !1
2530
2534
  }), [m, g] = d.useState(o);
2531
- Ut(m, o) || g(o);
2535
+ Kt(m, o) || g(o);
2532
2536
  const [w, h] = d.useState(null), [v, y] = d.useState(null), C = d.useCallback((_) => {
2533
2537
  _ !== A.current && (A.current = _, h(_));
2534
2538
  }, []), b = d.useCallback((_) => {
2535
2539
  _ !== E.current && (E.current = _, y(_));
2536
- }, []), S = i || w, R = a || v, A = d.useRef(null), E = d.useRef(null), x = d.useRef(f), I = c != null, T = wn(c), D = wn(r), L = wn(l), $ = d.useCallback(() => {
2540
+ }, []), S = i || w, R = a || v, A = d.useRef(null), E = d.useRef(null), x = d.useRef(f), M = c != null, T = bn(c), D = bn(r), L = bn(l), $ = d.useCallback(() => {
2537
2541
  if (!A.current || !E.current)
2538
2542
  return;
2539
2543
  const _ = {
@@ -2541,7 +2545,7 @@ function Vc(e) {
2541
2545
  strategy: n,
2542
2546
  middleware: m
2543
2547
  };
2544
- D.current && (_.platform = D.current), Fc(A.current, E.current, _).then((P) => {
2548
+ D.current && (_.platform = D.current), Lc(A.current, E.current, _).then((P) => {
2545
2549
  const j = {
2546
2550
  ...P,
2547
2551
  // The floating element's position may be recomputed while it's closed
@@ -2550,27 +2554,27 @@ function Vc(e) {
2550
2554
  // setting it to `true` when `open === false` (must be specified).
2551
2555
  isPositioned: L.current !== !1
2552
2556
  };
2553
- F.current && !Ut(x.current, j) && (x.current = j, jt.flushSync(() => {
2557
+ F.current && !Kt(x.current, j) && (x.current = j, Xt.flushSync(() => {
2554
2558
  u(j);
2555
2559
  }));
2556
2560
  });
2557
2561
  }, [m, t, n, D, L]);
2558
- Ft(() => {
2562
+ $t(() => {
2559
2563
  l === !1 && x.current.isPositioned && (x.current.isPositioned = !1, u((_) => ({
2560
2564
  ..._,
2561
2565
  isPositioned: !1
2562
2566
  })));
2563
2567
  }, [l]);
2564
2568
  const F = d.useRef(!1);
2565
- Ft(() => (F.current = !0, () => {
2569
+ $t(() => (F.current = !0, () => {
2566
2570
  F.current = !1;
2567
- }), []), Ft(() => {
2571
+ }), []), $t(() => {
2568
2572
  if (S && (A.current = S), R && (E.current = R), S && R) {
2569
2573
  if (T.current)
2570
2574
  return T.current(S, R, $);
2571
2575
  $();
2572
2576
  }
2573
- }, [S, R, $, T, I]);
2577
+ }, [S, R, $, T, M]);
2574
2578
  const K = d.useMemo(() => ({
2575
2579
  reference: A,
2576
2580
  floating: E,
@@ -2608,7 +2612,7 @@ function Vc(e) {
2608
2612
  floatingStyles: B
2609
2613
  }), [f, $, K, O, B]);
2610
2614
  }
2611
- const Bc = (e) => {
2615
+ const Wc = (e) => {
2612
2616
  function t(n) {
2613
2617
  return {}.hasOwnProperty.call(n, "current");
2614
2618
  }
@@ -2629,17 +2633,14 @@ const Bc = (e) => {
2629
2633
  }).fn(n) : {};
2630
2634
  }
2631
2635
  };
2632
- }, Wc = (e, t) => ({
2633
- ...Mc(e),
2634
- options: [e, t]
2635
- }), Uc = (e, t) => ({
2636
+ }, Uc = (e, t) => ({
2636
2637
  ...Nc(e),
2637
2638
  options: [e, t]
2638
2639
  }), Hc = (e, t) => ({
2639
- ...kc(e),
2640
+ ..._c(e),
2640
2641
  options: [e, t]
2641
2642
  }), Kc = (e, t) => ({
2642
- ..._c(e),
2643
+ ...Fc(e),
2643
2644
  options: [e, t]
2644
2645
  }), Gc = (e, t) => ({
2645
2646
  ...Oc(e),
@@ -2648,10 +2649,13 @@ const Bc = (e) => {
2648
2649
  ...Dc(e),
2649
2650
  options: [e, t]
2650
2651
  }), jc = (e, t) => ({
2651
- ...Bc(e),
2652
+ ...kc(e),
2653
+ options: [e, t]
2654
+ }), Yc = (e, t) => ({
2655
+ ...Wc(e),
2652
2656
  options: [e, t]
2653
2657
  });
2654
- var Yc = "Arrow", xr = d.forwardRef((e, t) => {
2658
+ var Xc = "Arrow", xr = d.forwardRef((e, t) => {
2655
2659
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
2656
2660
  return /* @__PURE__ */ p(
2657
2661
  U.svg,
@@ -2666,9 +2670,9 @@ var Yc = "Arrow", xr = d.forwardRef((e, t) => {
2666
2670
  }
2667
2671
  );
2668
2672
  });
2669
- xr.displayName = Yc;
2670
- var Xc = xr;
2671
- function Zc(e) {
2673
+ xr.displayName = Xc;
2674
+ var Zc = xr;
2675
+ function qc(e) {
2672
2676
  const [t, n] = d.useState(void 0);
2673
2677
  return oe(() => {
2674
2678
  if (e) {
@@ -2690,11 +2694,11 @@ function Zc(e) {
2690
2694
  n(void 0);
2691
2695
  }, [e]), t;
2692
2696
  }
2693
- var qn = "Popper", [Er, en] = Xe(qn), [qc, Rr] = Er(qn), Ar = (e) => {
2697
+ var Qn = "Popper", [Er, nn] = Xe(Qn), [Jc, Rr] = Er(Qn), Ar = (e) => {
2694
2698
  const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
2695
- return /* @__PURE__ */ p(qc, { scope: t, anchor: o, onAnchorChange: r, children: n });
2699
+ return /* @__PURE__ */ p(Jc, { scope: t, anchor: o, onAnchorChange: r, children: n });
2696
2700
  };
2697
- Ar.displayName = qn;
2701
+ Ar.displayName = Qn;
2698
2702
  var Pr = "PopperAnchor", Tr = d.forwardRef(
2699
2703
  (e, t) => {
2700
2704
  const { __scopePopper: n, virtualRef: o, ...r } = e, i = Rr(Pr, n), a = d.useRef(null), s = Z(t, a), c = d.useRef(null);
@@ -2705,9 +2709,9 @@ var Pr = "PopperAnchor", Tr = d.forwardRef(
2705
2709
  }
2706
2710
  );
2707
2711
  Tr.displayName = Pr;
2708
- var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
2712
+ var eo = "PopperContent", [Qc, el] = Er(eo), Mr = d.forwardRef(
2709
2713
  (e, t) => {
2710
- var M, W, G, H, V, z;
2714
+ var I, W, G, H, V, z;
2711
2715
  const {
2712
2716
  __scopePopper: n,
2713
2717
  side: o = "bottom",
@@ -2723,15 +2727,15 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
2723
2727
  updatePositionStrategy: g = "optimized",
2724
2728
  onPlaced: w,
2725
2729
  ...h
2726
- } = e, v = Rr(Jn, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = Zc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
2730
+ } = e, v = Rr(eo, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = qc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
2727
2731
  padding: T,
2728
- boundary: D.filter(tl),
2732
+ boundary: D.filter(nl),
2729
2733
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2730
2734
  altBoundary: L
2731
- }, { refs: F, floatingStyles: K, placement: O, isPositioned: B, middlewareData: _ } = Vc({
2735
+ }, { refs: F, floatingStyles: K, placement: O, isPositioned: B, middlewareData: _ } = Bc({
2732
2736
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2733
2737
  strategy: "fixed",
2734
- placement: I,
2738
+ placement: M,
2735
2739
  whileElementsMounted: (...ie) => Ic(...ie, {
2736
2740
  animationFrame: g === "always"
2737
2741
  }),
@@ -2739,30 +2743,30 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
2739
2743
  reference: v.anchor
2740
2744
  },
2741
2745
  middleware: [
2742
- Wc({ mainAxis: r + x, alignmentAxis: a }),
2743
- c && Uc({
2746
+ Uc({ mainAxis: r + x, alignmentAxis: a }),
2747
+ c && Hc({
2744
2748
  mainAxis: !0,
2745
2749
  crossAxis: !1,
2746
- limiter: u === "partial" ? Hc() : void 0,
2750
+ limiter: u === "partial" ? Kc() : void 0,
2747
2751
  ...$
2748
2752
  }),
2749
- c && Kc({ ...$ }),
2750
- Gc({
2753
+ c && Gc({ ...$ }),
2754
+ zc({
2751
2755
  ...$,
2752
2756
  apply: ({ elements: ie, rects: me, availableWidth: Be, availableHeight: We }) => {
2753
- const { width: Ue, height: fn } = me.reference, te = ie.floating.style;
2754
- te.setProperty("--radix-popper-available-width", `${Be}px`), te.setProperty("--radix-popper-available-height", `${We}px`), te.setProperty("--radix-popper-anchor-width", `${Ue}px`), te.setProperty("--radix-popper-anchor-height", `${fn}px`);
2757
+ const { width: Ue, height: mn } = me.reference, te = ie.floating.style;
2758
+ te.setProperty("--radix-popper-available-width", `${Be}px`), te.setProperty("--radix-popper-available-height", `${We}px`), te.setProperty("--radix-popper-anchor-width", `${Ue}px`), te.setProperty("--radix-popper-anchor-height", `${mn}px`);
2755
2759
  }
2756
2760
  }),
2757
- S && jc({ element: S, padding: s }),
2758
- nl({ arrowWidth: E, arrowHeight: x }),
2759
- m && zc({ strategy: "referenceHidden", ...$ })
2761
+ S && Yc({ element: S, padding: s }),
2762
+ ol({ arrowWidth: E, arrowHeight: x }),
2763
+ m && jc({ strategy: "referenceHidden", ...$ })
2760
2764
  ]
2761
- }), [P, j] = _r(O), q = Ie(w);
2765
+ }), [P, j] = _r(O), J = Me(w);
2762
2766
  oe(() => {
2763
- B && (q == null || q());
2764
- }, [B, q]);
2765
- const ne = (M = _.arrow) == null ? void 0 : M.x, ve = (W = _.arrow) == null ? void 0 : W.y, le = ((G = _.arrow) == null ? void 0 : G.centerOffset) !== 0, [we, re] = d.useState();
2767
+ B && (J == null || J());
2768
+ }, [B, J]);
2769
+ const ne = (I = _.arrow) == null ? void 0 : I.x, ve = (W = _.arrow) == null ? void 0 : W.y, ue = ((G = _.arrow) == null ? void 0 : G.centerOffset) !== 0, [we, re] = d.useState();
2766
2770
  return oe(() => {
2767
2771
  y && re(window.getComputedStyle(y).zIndex);
2768
2772
  }, [y]), /* @__PURE__ */ p(
@@ -2790,14 +2794,14 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
2790
2794
  },
2791
2795
  dir: e.dir,
2792
2796
  children: /* @__PURE__ */ p(
2793
- Jc,
2797
+ Qc,
2794
2798
  {
2795
2799
  scope: n,
2796
2800
  placedSide: P,
2797
2801
  onArrowChange: R,
2798
2802
  arrowX: ne,
2799
2803
  arrowY: ve,
2800
- shouldHideArrow: le,
2804
+ shouldHideArrow: ue,
2801
2805
  children: /* @__PURE__ */ p(
2802
2806
  U.div,
2803
2807
  {
@@ -2819,14 +2823,14 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
2819
2823
  );
2820
2824
  }
2821
2825
  );
2822
- Ir.displayName = Jn;
2823
- var Mr = "PopperArrow", el = {
2826
+ Mr.displayName = eo;
2827
+ var Ir = "PopperArrow", tl = {
2824
2828
  top: "bottom",
2825
2829
  right: "left",
2826
2830
  bottom: "top",
2827
2831
  left: "right"
2828
2832
  }, Nr = d.forwardRef(function(t, n) {
2829
- const { __scopePopper: o, ...r } = t, i = Qc(Mr, o), a = el[i.placedSide];
2833
+ const { __scopePopper: o, ...r } = t, i = el(Ir, o), a = tl[i.placedSide];
2830
2834
  return (
2831
2835
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2832
2836
  // doesn't report size as we'd expect on SVG elements.
@@ -2855,7 +2859,7 @@ var Mr = "PopperArrow", el = {
2855
2859
  visibility: i.shouldHideArrow ? "hidden" : void 0
2856
2860
  },
2857
2861
  children: /* @__PURE__ */ p(
2858
- Xc,
2862
+ Zc,
2859
2863
  {
2860
2864
  ...r,
2861
2865
  ref: n,
@@ -2870,11 +2874,11 @@ var Mr = "PopperArrow", el = {
2870
2874
  )
2871
2875
  );
2872
2876
  });
2873
- Nr.displayName = Mr;
2874
- function tl(e) {
2877
+ Nr.displayName = Ir;
2878
+ function nl(e) {
2875
2879
  return e !== null;
2876
2880
  }
2877
- var nl = (e) => ({
2881
+ var ol = (e) => ({
2878
2882
  name: "transformOrigin",
2879
2883
  options: e,
2880
2884
  fn(t) {
@@ -2888,24 +2892,24 @@ function _r(e) {
2888
2892
  const [t, n = "center"] = e.split("-");
2889
2893
  return [t, n];
2890
2894
  }
2891
- var Or = Ar, Dr = Tr, kr = Ir, Fr = Nr, ol = "Portal", Qn = d.forwardRef((e, t) => {
2895
+ var Or = Ar, Dr = Tr, kr = Mr, Fr = Nr, rl = "Portal", to = d.forwardRef((e, t) => {
2892
2896
  var s;
2893
2897
  const { container: n, ...o } = e, [r, i] = d.useState(!1);
2894
2898
  oe(() => i(!0), []);
2895
2899
  const a = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
2896
2900
  return a ? Ts.createPortal(/* @__PURE__ */ p(U.div, { ...o, ref: t }), a) : null;
2897
2901
  });
2898
- Qn.displayName = ol;
2899
- function rl(e, t) {
2902
+ to.displayName = rl;
2903
+ function il(e, t) {
2900
2904
  return d.useReducer((n, o) => t[n][o] ?? n, e);
2901
2905
  }
2902
2906
  var st = (e) => {
2903
- const { present: t, children: n } = e, o = il(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = Z(o.ref, sl(r));
2907
+ const { present: t, children: n } = e, o = sl(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = Z(o.ref, al(r));
2904
2908
  return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: i }) : null;
2905
2909
  };
2906
2910
  st.displayName = "Presence";
2907
- function il(e) {
2908
- const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = rl(a, {
2911
+ function sl(e) {
2912
+ const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = il(a, {
2909
2913
  mounted: {
2910
2914
  UNMOUNT: "unmounted",
2911
2915
  ANIMATION_OUT: "unmountSuspended"
@@ -2919,19 +2923,19 @@ function il(e) {
2919
2923
  }
2920
2924
  });
2921
2925
  return d.useEffect(() => {
2922
- const l = Pt(o.current);
2926
+ const l = Mt(o.current);
2923
2927
  i.current = s === "mounted" ? l : "none";
2924
2928
  }, [s]), oe(() => {
2925
2929
  const l = o.current, f = r.current;
2926
2930
  if (f !== e) {
2927
- const m = i.current, g = Pt(l);
2931
+ const m = i.current, g = Mt(l);
2928
2932
  e ? c("MOUNT") : g === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(f && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
2929
2933
  }
2930
2934
  }, [e, c]), oe(() => {
2931
2935
  if (t) {
2932
2936
  let l;
2933
2937
  const f = t.ownerDocument.defaultView ?? window, u = (g) => {
2934
- const h = Pt(o.current).includes(CSS.escape(g.animationName));
2938
+ const h = Mt(o.current).includes(CSS.escape(g.animationName));
2935
2939
  if (g.target === t && h && (c("ANIMATION_END"), !r.current)) {
2936
2940
  const v = t.style.animationFillMode;
2937
2941
  t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
@@ -2939,7 +2943,7 @@ function il(e) {
2939
2943
  });
2940
2944
  }
2941
2945
  }, m = (g) => {
2942
- g.target === t && (i.current = Pt(o.current));
2946
+ g.target === t && (i.current = Mt(o.current));
2943
2947
  };
2944
2948
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", u), t.addEventListener("animationend", u), () => {
2945
2949
  f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", u), t.removeEventListener("animationend", u);
@@ -2953,22 +2957,22 @@ function il(e) {
2953
2957
  }, [])
2954
2958
  };
2955
2959
  }
2956
- function Pt(e) {
2960
+ function Mt(e) {
2957
2961
  return (e == null ? void 0 : e.animationName) || "none";
2958
2962
  }
2959
- function sl(e) {
2963
+ function al(e) {
2960
2964
  var o, r;
2961
2965
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
2962
2966
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2963
2967
  }
2964
- var yn = "rovingFocusGroup.onEntryFocus", al = { bubbles: !1, cancelable: !0 }, Ct = "RovingFocusGroup", [Nn, Lr, cl] = Un(Ct), [ll, tn] = Xe(
2965
- Ct,
2966
- [cl]
2967
- ), [ul, dl] = ll(Ct), $r = d.forwardRef(
2968
- (e, t) => /* @__PURE__ */ p(Nn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Nn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(fl, { ...e, ref: t }) }) })
2968
+ var Cn = "rovingFocusGroup.onEntryFocus", cl = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [On, Lr, ll] = Kn(xt), [ul, on] = Xe(
2969
+ xt,
2970
+ [ll]
2971
+ ), [dl, fl] = ul(xt), $r = d.forwardRef(
2972
+ (e, t) => /* @__PURE__ */ p(On.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(On.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(pl, { ...e, ref: t }) }) })
2969
2973
  );
2970
- $r.displayName = Ct;
2971
- var fl = d.forwardRef((e, t) => {
2974
+ $r.displayName = xt;
2975
+ var pl = d.forwardRef((e, t) => {
2972
2976
  const {
2973
2977
  __scopeRovingFocusGroup: n,
2974
2978
  orientation: o,
@@ -2980,18 +2984,18 @@ var fl = d.forwardRef((e, t) => {
2980
2984
  onEntryFocus: l,
2981
2985
  preventScrollOnEntryFocus: f = !1,
2982
2986
  ...u
2983
- } = e, m = d.useRef(null), g = Z(t, m), w = Xt(i), [h, v] = mt({
2987
+ } = e, m = d.useRef(null), g = Z(t, m), w = qt(i), [h, v] = gt({
2984
2988
  prop: a,
2985
2989
  defaultProp: s ?? null,
2986
2990
  onChange: c,
2987
- caller: Ct
2988
- }), [y, C] = d.useState(!1), b = Ie(l), S = Lr(n), R = d.useRef(!1), [A, E] = d.useState(0);
2991
+ caller: xt
2992
+ }), [y, C] = d.useState(!1), b = Me(l), S = Lr(n), R = d.useRef(!1), [A, E] = d.useState(0);
2989
2993
  return d.useEffect(() => {
2990
2994
  const x = m.current;
2991
2995
  if (x)
2992
- return x.addEventListener(yn, b), () => x.removeEventListener(yn, b);
2996
+ return x.addEventListener(Cn, b), () => x.removeEventListener(Cn, b);
2993
2997
  }, [b]), /* @__PURE__ */ p(
2994
- ul,
2998
+ dl,
2995
2999
  {
2996
3000
  scope: n,
2997
3001
  orientation: o,
@@ -3023,9 +3027,9 @@ var fl = d.forwardRef((e, t) => {
3023
3027
  R.current = !0;
3024
3028
  }),
3025
3029
  onFocus: N(e.onFocus, (x) => {
3026
- const I = !R.current;
3027
- if (x.target === x.currentTarget && I && !y) {
3028
- const T = new CustomEvent(yn, al);
3030
+ const M = !R.current;
3031
+ if (x.target === x.currentTarget && M && !y) {
3032
+ const T = new CustomEvent(Cn, cl);
3029
3033
  if (x.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
3030
3034
  const D = S().filter((O) => O.focusable), L = D.find((O) => O.active), $ = D.find((O) => O.id === h), K = [L, $, ...D].filter(
3031
3035
  Boolean
@@ -3049,12 +3053,12 @@ var fl = d.forwardRef((e, t) => {
3049
3053
  tabStopId: i,
3050
3054
  children: a,
3051
3055
  ...s
3052
- } = e, c = Ge(), l = i || c, f = dl(Vr, n), u = f.currentTabStopId === l, m = Lr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: h } = f;
3056
+ } = e, c = Ge(), l = i || c, f = fl(Vr, n), u = f.currentTabStopId === l, m = Lr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: h } = f;
3053
3057
  return d.useEffect(() => {
3054
3058
  if (o)
3055
3059
  return g(), () => w();
3056
3060
  }, [o, g, w]), /* @__PURE__ */ p(
3057
- Nn.ItemSlot,
3061
+ On.ItemSlot,
3058
3062
  {
3059
3063
  scope: n,
3060
3064
  id: l,
@@ -3077,7 +3081,7 @@ var fl = d.forwardRef((e, t) => {
3077
3081
  return;
3078
3082
  }
3079
3083
  if (v.target !== v.currentTarget) return;
3080
- const y = hl(v, f.orientation, f.dir);
3084
+ const y = gl(v, f.orientation, f.dir);
3081
3085
  if (y !== void 0) {
3082
3086
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
3083
3087
  v.preventDefault();
@@ -3086,7 +3090,7 @@ var fl = d.forwardRef((e, t) => {
3086
3090
  else if (y === "prev" || y === "next") {
3087
3091
  y === "prev" && b.reverse();
3088
3092
  const S = b.indexOf(v.currentTarget);
3089
- b = f.loop ? gl(b, S + 1) : b.slice(S + 1);
3093
+ b = f.loop ? vl(b, S + 1) : b.slice(S + 1);
3090
3094
  }
3091
3095
  setTimeout(() => Wr(b));
3092
3096
  }
@@ -3099,7 +3103,7 @@ var fl = d.forwardRef((e, t) => {
3099
3103
  }
3100
3104
  );
3101
3105
  Br.displayName = Vr;
3102
- var pl = {
3106
+ var ml = {
3103
3107
  ArrowLeft: "prev",
3104
3108
  ArrowUp: "prev",
3105
3109
  ArrowRight: "next",
@@ -3109,30 +3113,30 @@ var pl = {
3109
3113
  PageDown: "last",
3110
3114
  End: "last"
3111
3115
  };
3112
- function ml(e, t) {
3116
+ function hl(e, t) {
3113
3117
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
3114
3118
  }
3115
- function hl(e, t, n) {
3116
- const o = ml(e.key, n);
3119
+ function gl(e, t, n) {
3120
+ const o = hl(e.key, n);
3117
3121
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
3118
- return pl[o];
3122
+ return ml[o];
3119
3123
  }
3120
3124
  function Wr(e, t = !1) {
3121
3125
  const n = document.activeElement;
3122
3126
  for (const o of e)
3123
3127
  if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
3124
3128
  }
3125
- function gl(e, t) {
3129
+ function vl(e, t) {
3126
3130
  return e.map((n, o) => e[(t + o) % e.length]);
3127
3131
  }
3128
- var Ur = $r, Hr = Br, vl = function(e) {
3132
+ var Ur = $r, Hr = Br, wl = function(e) {
3129
3133
  if (typeof document > "u")
3130
3134
  return null;
3131
3135
  var t = Array.isArray(e) ? e[0] : e;
3132
3136
  return t.ownerDocument.body;
3133
- }, Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), It = {}, bn = 0, Kr = function(e) {
3137
+ }, Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {}, Sn = 0, Kr = function(e) {
3134
3138
  return e && (e.host || Kr(e.parentNode));
3135
- }, wl = function(e, t) {
3139
+ }, yl = function(e, t) {
3136
3140
  return t.map(function(n) {
3137
3141
  if (e.contains(n))
3138
3142
  return n;
@@ -3141,10 +3145,10 @@ var Ur = $r, Hr = Br, vl = function(e) {
3141
3145
  }).filter(function(n) {
3142
3146
  return !!n;
3143
3147
  });
3144
- }, yl = function(e, t, n, o) {
3145
- var r = wl(t, Array.isArray(e) ? e : [e]);
3146
- It[n] || (It[n] = /* @__PURE__ */ new WeakMap());
3147
- var i = It[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(u) {
3148
+ }, bl = function(e, t, n, o) {
3149
+ var r = yl(t, Array.isArray(e) ? e : [e]);
3150
+ Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
3151
+ var i = Nt[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(u) {
3148
3152
  !u || s.has(u) || (s.add(u), l(u.parentNode));
3149
3153
  };
3150
3154
  r.forEach(l);
@@ -3155,22 +3159,22 @@ var Ur = $r, Hr = Br, vl = function(e) {
3155
3159
  else
3156
3160
  try {
3157
3161
  var g = m.getAttribute(o), w = g !== null && g !== "false", h = (Je.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
3158
- Je.set(m, h), i.set(m, v), a.push(m), h === 1 && w && Tt.set(m, !0), v === 1 && m.setAttribute(n, "true"), w || m.setAttribute(o, "true");
3162
+ Je.set(m, h), i.set(m, v), a.push(m), h === 1 && w && It.set(m, !0), v === 1 && m.setAttribute(n, "true"), w || m.setAttribute(o, "true");
3159
3163
  } catch (y) {
3160
3164
  console.error("aria-hidden: cannot operate on ", m, y);
3161
3165
  }
3162
3166
  });
3163
3167
  };
3164
- return f(t), s.clear(), bn++, function() {
3168
+ return f(t), s.clear(), Sn++, function() {
3165
3169
  a.forEach(function(u) {
3166
3170
  var m = Je.get(u) - 1, g = i.get(u) - 1;
3167
- Je.set(u, m), i.set(u, g), m || (Tt.has(u) || u.removeAttribute(o), Tt.delete(u)), g || u.removeAttribute(n);
3168
- }), bn--, bn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), It = {});
3171
+ Je.set(u, m), i.set(u, g), m || (It.has(u) || u.removeAttribute(o), It.delete(u)), g || u.removeAttribute(n);
3172
+ }), Sn--, Sn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {});
3169
3173
  };
3170
3174
  }, Gr = function(e, t, n) {
3171
3175
  n === void 0 && (n = "data-aria-hidden");
3172
- var o = Array.from(Array.isArray(e) ? e : [e]), r = vl(e);
3173
- return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), yl(o, r, n, "aria-hidden")) : function() {
3176
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = wl(e);
3177
+ return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), bl(o, r, n, "aria-hidden")) : function() {
3174
3178
  return null;
3175
3179
  };
3176
3180
  }, Ee = function() {
@@ -3190,16 +3194,16 @@ function zr(e, t) {
3190
3194
  t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
3191
3195
  return n;
3192
3196
  }
3193
- function bl(e, t, n) {
3197
+ function Cl(e, t, n) {
3194
3198
  if (n || arguments.length === 2) for (var o = 0, r = t.length, i; o < r; o++)
3195
3199
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
3196
3200
  return e.concat(i || Array.prototype.slice.call(t));
3197
3201
  }
3198
- var Lt = "right-scroll-bar-position", $t = "width-before-scroll-bar", Cl = "with-scroll-bars-hidden", Sl = "--removed-body-scroll-bar-size";
3199
- function Cn(e, t) {
3202
+ var Vt = "right-scroll-bar-position", Bt = "width-before-scroll-bar", Sl = "with-scroll-bars-hidden", xl = "--removed-body-scroll-bar-size";
3203
+ function xn(e, t) {
3200
3204
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3201
3205
  }
3202
- function xl(e, t) {
3206
+ function El(e, t) {
3203
3207
  var n = ae(function() {
3204
3208
  return {
3205
3209
  // value
@@ -3220,31 +3224,31 @@ function xl(e, t) {
3220
3224
  })[0];
3221
3225
  return n.callback = t, n.facade;
3222
3226
  }
3223
- var El = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Go = /* @__PURE__ */ new WeakMap();
3224
- function Rl(e, t) {
3225
- var n = xl(null, function(o) {
3227
+ var Rl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Go = /* @__PURE__ */ new WeakMap();
3228
+ function Al(e, t) {
3229
+ var n = El(null, function(o) {
3226
3230
  return e.forEach(function(r) {
3227
- return Cn(r, o);
3231
+ return xn(r, o);
3228
3232
  });
3229
3233
  });
3230
- return El(function() {
3234
+ return Rl(function() {
3231
3235
  var o = Go.get(n);
3232
3236
  if (o) {
3233
3237
  var r = new Set(o), i = new Set(e), a = n.current;
3234
3238
  r.forEach(function(s) {
3235
- i.has(s) || Cn(s, null);
3239
+ i.has(s) || xn(s, null);
3236
3240
  }), i.forEach(function(s) {
3237
- r.has(s) || Cn(s, a);
3241
+ r.has(s) || xn(s, a);
3238
3242
  });
3239
3243
  }
3240
3244
  Go.set(n, e);
3241
3245
  }, [e]), n;
3242
3246
  }
3243
- function Al(e) {
3247
+ function Pl(e) {
3244
3248
  return e;
3245
3249
  }
3246
- function Pl(e, t) {
3247
- t === void 0 && (t = Al);
3250
+ function Tl(e, t) {
3251
+ t === void 0 && (t = Pl);
3248
3252
  var n = [], o = !1, r = {
3249
3253
  read: function() {
3250
3254
  if (o)
@@ -3298,9 +3302,9 @@ function Pl(e, t) {
3298
3302
  };
3299
3303
  return r;
3300
3304
  }
3301
- function Tl(e) {
3305
+ function Ml(e) {
3302
3306
  e === void 0 && (e = {});
3303
- var t = Pl(null);
3307
+ var t = Tl(null);
3304
3308
  return t.options = Ee({ async: !0, ssr: !1 }, e), t;
3305
3309
  }
3306
3310
  var jr = function(e) {
@@ -3316,13 +3320,13 @@ jr.isSideCarExport = !0;
3316
3320
  function Il(e, t) {
3317
3321
  return e.useMedium(t), jr;
3318
3322
  }
3319
- var Yr = Tl(), Sn = function() {
3320
- }, nn = d.forwardRef(function(e, t) {
3323
+ var Yr = Ml(), En = function() {
3324
+ }, rn = d.forwardRef(function(e, t) {
3321
3325
  var n = d.useRef(null), o = d.useState({
3322
- onScrollCapture: Sn,
3323
- onWheelCapture: Sn,
3324
- onTouchMoveCapture: Sn
3325
- }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Rl([n, t]), E = Ee(Ee({}, S), r);
3326
+ onScrollCapture: En,
3327
+ onWheelCapture: En,
3328
+ onTouchMoveCapture: En
3329
+ }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Al([n, t]), E = Ee(Ee({}, S), r);
3326
3330
  return d.createElement(
3327
3331
  d.Fragment,
3328
3332
  null,
@@ -3330,46 +3334,46 @@ var Yr = Tl(), Sn = function() {
3330
3334
  a ? d.cloneElement(d.Children.only(s), Ee(Ee({}, E), { ref: A })) : d.createElement(C, Ee({}, E, { className: c, ref: A }), s)
3331
3335
  );
3332
3336
  });
3333
- nn.defaultProps = {
3337
+ rn.defaultProps = {
3334
3338
  enabled: !0,
3335
3339
  removeScrollBar: !0,
3336
3340
  inert: !1
3337
3341
  };
3338
- nn.classNames = {
3339
- fullWidth: $t,
3340
- zeroRight: Lt
3342
+ rn.classNames = {
3343
+ fullWidth: Bt,
3344
+ zeroRight: Vt
3341
3345
  };
3342
- var Ml = function() {
3346
+ var Nl = function() {
3343
3347
  if (typeof __webpack_nonce__ < "u")
3344
3348
  return __webpack_nonce__;
3345
3349
  };
3346
- function Nl() {
3350
+ function _l() {
3347
3351
  if (!document)
3348
3352
  return null;
3349
3353
  var e = document.createElement("style");
3350
3354
  e.type = "text/css";
3351
- var t = Ml();
3355
+ var t = Nl();
3352
3356
  return t && e.setAttribute("nonce", t), e;
3353
3357
  }
3354
- function _l(e, t) {
3358
+ function Ol(e, t) {
3355
3359
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3356
3360
  }
3357
- function Ol(e) {
3361
+ function Dl(e) {
3358
3362
  var t = document.head || document.getElementsByTagName("head")[0];
3359
3363
  t.appendChild(e);
3360
3364
  }
3361
- var Dl = function() {
3365
+ var kl = function() {
3362
3366
  var e = 0, t = null;
3363
3367
  return {
3364
3368
  add: function(n) {
3365
- e == 0 && (t = Nl()) && (_l(t, n), Ol(t)), e++;
3369
+ e == 0 && (t = _l()) && (Ol(t, n), Dl(t)), e++;
3366
3370
  },
3367
3371
  remove: function() {
3368
3372
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3369
3373
  }
3370
3374
  };
3371
- }, kl = function() {
3372
- var e = Dl();
3375
+ }, Fl = function() {
3376
+ var e = kl();
3373
3377
  return function(t, n) {
3374
3378
  d.useEffect(function() {
3375
3379
  return e.add(t), function() {
@@ -3378,35 +3382,35 @@ var Dl = function() {
3378
3382
  }, [t && n]);
3379
3383
  };
3380
3384
  }, Xr = function() {
3381
- var e = kl(), t = function(n) {
3385
+ var e = Fl(), t = function(n) {
3382
3386
  var o = n.styles, r = n.dynamic;
3383
3387
  return e(o, r), null;
3384
3388
  };
3385
3389
  return t;
3386
- }, Fl = {
3390
+ }, Ll = {
3387
3391
  left: 0,
3388
3392
  top: 0,
3389
3393
  right: 0,
3390
3394
  gap: 0
3391
- }, xn = function(e) {
3395
+ }, Rn = function(e) {
3392
3396
  return parseInt(e || "", 10) || 0;
3393
- }, Ll = function(e) {
3394
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
3395
- return [xn(n), xn(o), xn(r)];
3396
3397
  }, $l = function(e) {
3398
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
3399
+ return [Rn(n), Rn(o), Rn(r)];
3400
+ }, Vl = function(e) {
3397
3401
  if (e === void 0 && (e = "margin"), typeof window > "u")
3398
- return Fl;
3399
- var t = Ll(e), n = document.documentElement.clientWidth, o = window.innerWidth;
3402
+ return Ll;
3403
+ var t = $l(e), n = document.documentElement.clientWidth, o = window.innerWidth;
3400
3404
  return {
3401
3405
  left: t[0],
3402
3406
  top: t[1],
3403
3407
  right: t[2],
3404
3408
  gap: Math.max(0, o - n + t[2] - t[0])
3405
3409
  };
3406
- }, Vl = Xr(), nt = "data-scroll-locked", Bl = function(e, t, n, o) {
3410
+ }, Bl = Xr(), nt = "data-scroll-locked", Wl = function(e, t, n, o) {
3407
3411
  var r = e.left, i = e.top, a = e.right, s = e.gap;
3408
3412
  return n === void 0 && (n = "margin"), `
3409
- .`.concat(Cl, ` {
3413
+ .`.concat(Sl, ` {
3410
3414
  overflow: hidden `).concat(o, `;
3411
3415
  padding-right: `).concat(s, "px ").concat(o, `;
3412
3416
  }
@@ -3427,56 +3431,56 @@ var Dl = function() {
3427
3431
  ].filter(Boolean).join(""), `
3428
3432
  }
3429
3433
 
3430
- .`).concat(Lt, ` {
3434
+ .`).concat(Vt, ` {
3431
3435
  right: `).concat(s, "px ").concat(o, `;
3432
3436
  }
3433
3437
 
3434
- .`).concat($t, ` {
3438
+ .`).concat(Bt, ` {
3435
3439
  margin-right: `).concat(s, "px ").concat(o, `;
3436
3440
  }
3437
3441
 
3438
- .`).concat(Lt, " .").concat(Lt, ` {
3442
+ .`).concat(Vt, " .").concat(Vt, ` {
3439
3443
  right: 0 `).concat(o, `;
3440
3444
  }
3441
3445
 
3442
- .`).concat($t, " .").concat($t, ` {
3446
+ .`).concat(Bt, " .").concat(Bt, ` {
3443
3447
  margin-right: 0 `).concat(o, `;
3444
3448
  }
3445
3449
 
3446
3450
  body[`).concat(nt, `] {
3447
- `).concat(Sl, ": ").concat(s, `px;
3451
+ `).concat(xl, ": ").concat(s, `px;
3448
3452
  }
3449
3453
  `);
3450
3454
  }, zo = function() {
3451
3455
  var e = parseInt(document.body.getAttribute(nt) || "0", 10);
3452
3456
  return isFinite(e) ? e : 0;
3453
- }, Wl = function() {
3457
+ }, Ul = function() {
3454
3458
  d.useEffect(function() {
3455
3459
  return document.body.setAttribute(nt, (zo() + 1).toString()), function() {
3456
3460
  var e = zo() - 1;
3457
3461
  e <= 0 ? document.body.removeAttribute(nt) : document.body.setAttribute(nt, e.toString());
3458
3462
  };
3459
3463
  }, []);
3460
- }, Ul = function(e) {
3464
+ }, Hl = function(e) {
3461
3465
  var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
3462
- Wl();
3466
+ Ul();
3463
3467
  var i = d.useMemo(function() {
3464
- return $l(r);
3468
+ return Vl(r);
3465
3469
  }, [r]);
3466
- return d.createElement(Vl, { styles: Bl(i, !t, r, n ? "" : "!important") });
3467
- }, _n = !1;
3470
+ return d.createElement(Bl, { styles: Wl(i, !t, r, n ? "" : "!important") });
3471
+ }, Dn = !1;
3468
3472
  if (typeof window < "u")
3469
3473
  try {
3470
- var Mt = Object.defineProperty({}, "passive", {
3474
+ var _t = Object.defineProperty({}, "passive", {
3471
3475
  get: function() {
3472
- return _n = !0, !0;
3476
+ return Dn = !0, !0;
3473
3477
  }
3474
3478
  });
3475
- window.addEventListener("test", Mt, Mt), window.removeEventListener("test", Mt, Mt);
3479
+ window.addEventListener("test", _t, _t), window.removeEventListener("test", _t, _t);
3476
3480
  } catch {
3477
- _n = !1;
3481
+ Dn = !1;
3478
3482
  }
3479
- var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
3483
+ var Qe = Dn ? { passive: !1 } : !1, Kl = function(e) {
3480
3484
  return e.tagName === "TEXTAREA";
3481
3485
  }, Zr = function(e, t) {
3482
3486
  if (!(e instanceof Element))
@@ -3485,11 +3489,11 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
3485
3489
  return (
3486
3490
  // not-not-scrollable
3487
3491
  n[t] !== "hidden" && // contains scroll inside self
3488
- !(n.overflowY === n.overflowX && !Hl(e) && n[t] === "visible")
3492
+ !(n.overflowY === n.overflowX && !Kl(e) && n[t] === "visible")
3489
3493
  );
3490
- }, Kl = function(e) {
3491
- return Zr(e, "overflowY");
3492
3494
  }, Gl = function(e) {
3495
+ return Zr(e, "overflowY");
3496
+ }, zl = function(e) {
3493
3497
  return Zr(e, "overflowX");
3494
3498
  }, jo = function(e, t) {
3495
3499
  var n = t.ownerDocument, o = t;
@@ -3504,14 +3508,14 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
3504
3508
  o = o.parentNode;
3505
3509
  } while (o && o !== n.body);
3506
3510
  return !1;
3507
- }, zl = function(e) {
3511
+ }, jl = function(e) {
3508
3512
  var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
3509
3513
  return [
3510
3514
  t,
3511
3515
  n,
3512
3516
  o
3513
3517
  ];
3514
- }, jl = function(e) {
3518
+ }, Yl = function(e) {
3515
3519
  var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
3516
3520
  return [
3517
3521
  t,
@@ -3519,13 +3523,13 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
3519
3523
  o
3520
3524
  ];
3521
3525
  }, qr = function(e, t) {
3522
- return e === "v" ? Kl(t) : Gl(t);
3526
+ return e === "v" ? Gl(t) : zl(t);
3523
3527
  }, Jr = function(e, t) {
3524
- return e === "v" ? zl(t) : jl(t);
3525
- }, Yl = function(e, t) {
3528
+ return e === "v" ? jl(t) : Yl(t);
3529
+ }, Xl = function(e, t) {
3526
3530
  return e === "h" && t === "rtl" ? -1 : 1;
3527
- }, Xl = function(e, t, n, o, r) {
3528
- var i = Yl(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, c = t.contains(s), l = !1, f = a > 0, u = 0, m = 0;
3531
+ }, Zl = function(e, t, n, o, r) {
3532
+ var i = Xl(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, c = t.contains(s), l = !1, f = a > 0, u = 0, m = 0;
3529
3533
  do {
3530
3534
  if (!s)
3531
3535
  break;
@@ -3539,28 +3543,28 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
3539
3543
  c && (t.contains(s) || t === s)
3540
3544
  );
3541
3545
  return (f && Math.abs(u) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
3542
- }, Nt = function(e) {
3546
+ }, Ot = function(e) {
3543
3547
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3544
3548
  }, Yo = function(e) {
3545
3549
  return [e.deltaX, e.deltaY];
3546
3550
  }, Xo = function(e) {
3547
3551
  return e && "current" in e ? e.current : e;
3548
- }, Zl = function(e, t) {
3552
+ }, ql = function(e, t) {
3549
3553
  return e[0] === t[0] && e[1] === t[1];
3550
- }, ql = function(e) {
3554
+ }, Jl = function(e) {
3551
3555
  return `
3552
3556
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3553
3557
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3554
3558
  `);
3555
- }, Jl = 0, et = [];
3556
- function Ql(e) {
3557
- var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(Jl++)[0], i = d.useState(Xr)[0], a = d.useRef(e);
3559
+ }, Ql = 0, et = [];
3560
+ function eu(e) {
3561
+ var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(Ql++)[0], i = d.useState(Xr)[0], a = d.useRef(e);
3558
3562
  d.useEffect(function() {
3559
3563
  a.current = e;
3560
3564
  }, [e]), d.useEffect(function() {
3561
3565
  if (e.inert) {
3562
3566
  document.body.classList.add("block-interactivity-".concat(r));
3563
- var h = bl([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
3567
+ var h = Cl([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
3564
3568
  return h.forEach(function(v) {
3565
3569
  return v.classList.add("allow-interactivity-".concat(r));
3566
3570
  }), function() {
@@ -3573,10 +3577,10 @@ function Ql(e) {
3573
3577
  var s = d.useCallback(function(h, v) {
3574
3578
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
3575
3579
  return !a.current.allowPinchZoom;
3576
- var y = Nt(h), C = n.current, b = "deltaX" in h ? h.deltaX : C[0] - y[0], S = "deltaY" in h ? h.deltaY : C[1] - y[1], R, A = h.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
3580
+ var y = Ot(h), C = n.current, b = "deltaX" in h ? h.deltaX : C[0] - y[0], S = "deltaY" in h ? h.deltaY : C[1] - y[1], R, A = h.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
3577
3581
  if ("touches" in h && E === "h" && A.type === "range")
3578
3582
  return !1;
3579
- var x = window.getSelection(), I = x && x.anchorNode, T = I ? I === A || I.contains(A) : !1;
3583
+ var x = window.getSelection(), M = x && x.anchorNode, T = M ? M === A || M.contains(A) : !1;
3580
3584
  if (T)
3581
3585
  return !1;
3582
3586
  var D = jo(E, A);
@@ -3587,12 +3591,12 @@ function Ql(e) {
3587
3591
  if (!o.current && "changedTouches" in h && (b || S) && (o.current = R), !R)
3588
3592
  return !0;
3589
3593
  var L = o.current || R;
3590
- return Xl(L, v, h, L === "h" ? b : S);
3594
+ return Zl(L, v, h, L === "h" ? b : S);
3591
3595
  }, []), c = d.useCallback(function(h) {
3592
3596
  var v = h;
3593
3597
  if (!(!et.length || et[et.length - 1] !== i)) {
3594
- var y = "deltaY" in v ? Yo(v) : Nt(v), C = t.current.filter(function(R) {
3595
- return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && Zl(R.delta, y);
3598
+ var y = "deltaY" in v ? Yo(v) : Ot(v), C = t.current.filter(function(R) {
3599
+ return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && ql(R.delta, y);
3596
3600
  })[0];
3597
3601
  if (C && C.should) {
3598
3602
  v.cancelable && v.preventDefault();
@@ -3606,18 +3610,18 @@ function Ql(e) {
3606
3610
  }
3607
3611
  }
3608
3612
  }, []), l = d.useCallback(function(h, v, y, C) {
3609
- var b = { name: h, delta: v, target: y, should: C, shadowParent: eu(y) };
3613
+ var b = { name: h, delta: v, target: y, should: C, shadowParent: tu(y) };
3610
3614
  t.current.push(b), setTimeout(function() {
3611
3615
  t.current = t.current.filter(function(S) {
3612
3616
  return S !== b;
3613
3617
  });
3614
3618
  }, 1);
3615
3619
  }, []), f = d.useCallback(function(h) {
3616
- n.current = Nt(h), o.current = void 0;
3620
+ n.current = Ot(h), o.current = void 0;
3617
3621
  }, []), u = d.useCallback(function(h) {
3618
3622
  l(h.type, Yo(h), h.target, s(h, e.lockRef.current));
3619
3623
  }, []), m = d.useCallback(function(h) {
3620
- l(h.type, Nt(h), h.target, s(h, e.lockRef.current));
3624
+ l(h.type, Ot(h), h.target, s(h, e.lockRef.current));
3621
3625
  }, []);
3622
3626
  d.useEffect(function() {
3623
3627
  return et.push(i), e.setCallbacks({
@@ -3634,32 +3638,32 @@ function Ql(e) {
3634
3638
  return d.createElement(
3635
3639
  d.Fragment,
3636
3640
  null,
3637
- w ? d.createElement(i, { styles: ql(r) }) : null,
3638
- g ? d.createElement(Ul, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3641
+ w ? d.createElement(i, { styles: Jl(r) }) : null,
3642
+ g ? d.createElement(Hl, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3639
3643
  );
3640
3644
  }
3641
- function eu(e) {
3645
+ function tu(e) {
3642
3646
  for (var t = null; e !== null; )
3643
3647
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3644
3648
  return t;
3645
3649
  }
3646
- const tu = Il(Yr, Ql);
3647
- var eo = d.forwardRef(function(e, t) {
3648
- return d.createElement(nn, Ee({}, e, { ref: t, sideCar: tu }));
3650
+ const nu = Il(Yr, eu);
3651
+ var no = d.forwardRef(function(e, t) {
3652
+ return d.createElement(rn, Ee({}, e, { ref: t, sideCar: nu }));
3649
3653
  });
3650
- eo.classNames = nn.classNames;
3651
- var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp", "PageDown", "End"], ou = [...nu, ...Qr], ru = {
3652
- ltr: [...On, "ArrowRight"],
3653
- rtl: [...On, "ArrowLeft"]
3654
- }, iu = {
3654
+ no.classNames = rn.classNames;
3655
+ var kn = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp", "PageDown", "End"], ru = [...ou, ...Qr], iu = {
3656
+ ltr: [...kn, "ArrowRight"],
3657
+ rtl: [...kn, "ArrowLeft"]
3658
+ }, su = {
3655
3659
  ltr: ["ArrowLeft"],
3656
3660
  rtl: ["ArrowRight"]
3657
- }, St = "Menu", [wt, su, au] = Un(St), [Ze, ei] = Xe(St, [
3658
- au,
3659
- en,
3660
- tn
3661
- ]), on = en(), ti = tn(), [cu, qe] = Ze(St), [lu, xt] = Ze(St), ni = (e) => {
3662
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = on(t), [c, l] = d.useState(null), f = d.useRef(!1), u = Ie(i), m = Xt(r);
3661
+ }, Et = "Menu", [bt, au, cu] = Kn(Et), [Ze, ei] = Xe(Et, [
3662
+ cu,
3663
+ nn,
3664
+ on
3665
+ ]), sn = nn(), ti = on(), [lu, qe] = Ze(Et), [uu, Rt] = Ze(Et), ni = (e) => {
3666
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = sn(t), [c, l] = d.useState(null), f = d.useRef(!1), u = Me(i), m = qt(r);
3663
3667
  return d.useEffect(() => {
3664
3668
  const g = () => {
3665
3669
  f.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
@@ -3668,7 +3672,7 @@ var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3668
3672
  document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
3669
3673
  };
3670
3674
  }, []), /* @__PURE__ */ p(Or, { ...s, children: /* @__PURE__ */ p(
3671
- cu,
3675
+ lu,
3672
3676
  {
3673
3677
  scope: t,
3674
3678
  open: n,
@@ -3676,7 +3680,7 @@ var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3676
3680
  content: c,
3677
3681
  onContentChange: l,
3678
3682
  children: /* @__PURE__ */ p(
3679
- lu,
3683
+ uu,
3680
3684
  {
3681
3685
  scope: t,
3682
3686
  onClose: d.useCallback(() => u(!1), [u]),
@@ -3689,34 +3693,34 @@ var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3689
3693
  }
3690
3694
  ) });
3691
3695
  };
3692
- ni.displayName = St;
3693
- var uu = "MenuAnchor", to = d.forwardRef(
3696
+ ni.displayName = Et;
3697
+ var du = "MenuAnchor", oo = d.forwardRef(
3694
3698
  (e, t) => {
3695
- const { __scopeMenu: n, ...o } = e, r = on(n);
3699
+ const { __scopeMenu: n, ...o } = e, r = sn(n);
3696
3700
  return /* @__PURE__ */ p(Dr, { ...r, ...o, ref: t });
3697
3701
  }
3698
3702
  );
3699
- to.displayName = uu;
3700
- var no = "MenuPortal", [du, oi] = Ze(no, {
3703
+ oo.displayName = du;
3704
+ var ro = "MenuPortal", [fu, oi] = Ze(ro, {
3701
3705
  forceMount: void 0
3702
3706
  }), ri = (e) => {
3703
- const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = qe(no, t);
3704
- return /* @__PURE__ */ p(du, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(Qn, { asChild: !0, container: r, children: o }) }) });
3707
+ const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = qe(ro, t);
3708
+ return /* @__PURE__ */ p(fu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(to, { asChild: !0, container: r, children: o }) }) });
3705
3709
  };
3706
- ri.displayName = no;
3707
- var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3710
+ ri.displayName = ro;
3711
+ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3708
3712
  (e, t) => {
3709
- const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = xt(ge, e.__scopeMenu);
3710
- return /* @__PURE__ */ p(wt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(wt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(pu, { ...r, ref: t }) : /* @__PURE__ */ p(mu, { ...r, ref: t }) }) }) });
3713
+ const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu);
3714
+ return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(mu, { ...r, ref: t }) : /* @__PURE__ */ p(hu, { ...r, ref: t }) }) }) });
3711
3715
  }
3712
- ), pu = d.forwardRef(
3716
+ ), mu = d.forwardRef(
3713
3717
  (e, t) => {
3714
3718
  const n = qe(ge, e.__scopeMenu), o = d.useRef(null), r = Z(t, o);
3715
3719
  return d.useEffect(() => {
3716
3720
  const i = o.current;
3717
3721
  if (i) return Gr(i);
3718
3722
  }, []), /* @__PURE__ */ p(
3719
- ro,
3723
+ so,
3720
3724
  {
3721
3725
  ...e,
3722
3726
  ref: r,
@@ -3732,10 +3736,10 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3732
3736
  }
3733
3737
  );
3734
3738
  }
3735
- ), mu = d.forwardRef((e, t) => {
3739
+ ), hu = d.forwardRef((e, t) => {
3736
3740
  const n = qe(ge, e.__scopeMenu);
3737
3741
  return /* @__PURE__ */ p(
3738
- ro,
3742
+ so,
3739
3743
  {
3740
3744
  ...e,
3741
3745
  ref: t,
@@ -3745,7 +3749,7 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3745
3749
  onDismiss: () => n.onOpenChange(!1)
3746
3750
  }
3747
3751
  );
3748
- }), hu = /* @__PURE__ */ ht("MenuContent.ScrollLock"), ro = d.forwardRef(
3752
+ }), gu = /* @__PURE__ */ vt("MenuContent.ScrollLock"), so = d.forwardRef(
3749
3753
  (e, t) => {
3750
3754
  const {
3751
3755
  __scopeMenu: n,
@@ -3762,20 +3766,20 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3762
3766
  onDismiss: g,
3763
3767
  disableOutsideScroll: w,
3764
3768
  ...h
3765
- } = e, v = qe(ge, n), y = xt(ge, n), C = on(n), b = ti(n), S = su(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), I = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? eo : d.Fragment, O = w ? { as: hu, allowPinchZoom: !0 } : void 0, B = (P) => {
3766
- var M, W;
3767
- const j = T.current + P, q = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (M = q.find((G) => G.ref.current === ne)) == null ? void 0 : M.textValue, le = q.map((G) => G.textValue), we = Pu(le, j, ve), re = (W = q.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
3769
+ } = e, v = qe(ge, n), y = Rt(ge, n), C = sn(n), b = ti(n), S = au(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), M = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? no : d.Fragment, O = w ? { as: gu, allowPinchZoom: !0 } : void 0, B = (P) => {
3770
+ var I, W;
3771
+ const j = T.current + P, J = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (I = J.find((G) => G.ref.current === ne)) == null ? void 0 : I.textValue, ue = J.map((G) => G.textValue), we = Tu(ue, j, ve), re = (W = J.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
3768
3772
  (function G(H) {
3769
- T.current = H, window.clearTimeout(I.current), H !== "" && (I.current = window.setTimeout(() => G(""), 1e3));
3773
+ T.current = H, window.clearTimeout(M.current), H !== "" && (M.current = window.setTimeout(() => G(""), 1e3));
3770
3774
  })(j), re && setTimeout(() => re.focus());
3771
3775
  };
3772
- d.useEffect(() => () => window.clearTimeout(I.current), []), ur();
3776
+ d.useEffect(() => () => window.clearTimeout(M.current), []), ur();
3773
3777
  const _ = d.useCallback((P) => {
3774
- var q, ne;
3775
- return $.current === ((q = L.current) == null ? void 0 : q.side) && Iu(P, (ne = L.current) == null ? void 0 : ne.area);
3778
+ var J, ne;
3779
+ return $.current === ((J = L.current) == null ? void 0 : J.side) && Iu(P, (ne = L.current) == null ? void 0 : ne.area);
3776
3780
  }, []);
3777
3781
  return /* @__PURE__ */ p(
3778
- fu,
3782
+ pu,
3779
3783
  {
3780
3784
  scope: n,
3781
3785
  searchRef: T,
@@ -3803,7 +3807,7 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3803
3807
  L.current = P;
3804
3808
  }, []),
3805
3809
  children: /* @__PURE__ */ p(K, { ...O, children: /* @__PURE__ */ p(
3806
- Kn,
3810
+ zn,
3807
3811
  {
3808
3812
  asChild: !0,
3809
3813
  trapped: r,
@@ -3813,7 +3817,7 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3813
3817
  }),
3814
3818
  onUnmountAutoFocus: a,
3815
3819
  children: /* @__PURE__ */ p(
3816
- Hn,
3820
+ Gn,
3817
3821
  {
3818
3822
  asChild: !0,
3819
3823
  disableOutsidePointerEvents: s,
@@ -3849,22 +3853,22 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3849
3853
  ref: x,
3850
3854
  style: { outline: "none", ...h.style },
3851
3855
  onKeyDown: N(h.onKeyDown, (P) => {
3852
- const q = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ne = P.ctrlKey || P.altKey || P.metaKey, ve = P.key.length === 1;
3853
- q && (P.key === "Tab" && P.preventDefault(), !ne && ve && B(P.key));
3854
- const le = E.current;
3855
- if (P.target !== le || !ou.includes(P.key)) return;
3856
+ const J = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ne = P.ctrlKey || P.altKey || P.metaKey, ve = P.key.length === 1;
3857
+ J && (P.key === "Tab" && P.preventDefault(), !ne && ve && B(P.key));
3858
+ const ue = E.current;
3859
+ if (P.target !== ue || !ru.includes(P.key)) return;
3856
3860
  P.preventDefault();
3857
- const re = S().filter((M) => !M.disabled).map((M) => M.ref.current);
3858
- Qr.includes(P.key) && re.reverse(), Ru(re);
3861
+ const re = S().filter((I) => !I.disabled).map((I) => I.ref.current);
3862
+ Qr.includes(P.key) && re.reverse(), Au(re);
3859
3863
  }),
3860
3864
  onBlur: N(e.onBlur, (P) => {
3861
- P.currentTarget.contains(P.target) || (window.clearTimeout(I.current), T.current = "");
3865
+ P.currentTarget.contains(P.target) || (window.clearTimeout(M.current), T.current = "");
3862
3866
  }),
3863
3867
  onPointerMove: N(
3864
3868
  e.onPointerMove,
3865
- yt((P) => {
3866
- const j = P.target, q = F.current !== P.clientX;
3867
- if (P.currentTarget.contains(j) && q) {
3869
+ Ct((P) => {
3870
+ const j = P.target, J = F.current !== P.clientX;
3871
+ if (P.currentTarget.contains(j) && J) {
3868
3872
  const ne = P.clientX > F.current ? "right" : "left";
3869
3873
  $.current = ne, F.current = P.clientX;
3870
3874
  }
@@ -3883,23 +3887,23 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
3883
3887
  }
3884
3888
  );
3885
3889
  ii.displayName = ge;
3886
- var gu = "MenuGroup", io = d.forwardRef(
3890
+ var vu = "MenuGroup", ao = d.forwardRef(
3887
3891
  (e, t) => {
3888
3892
  const { __scopeMenu: n, ...o } = e;
3889
3893
  return /* @__PURE__ */ p(U.div, { role: "group", ...o, ref: t });
3890
3894
  }
3891
3895
  );
3892
- io.displayName = gu;
3893
- var vu = "MenuLabel", si = d.forwardRef(
3896
+ ao.displayName = vu;
3897
+ var wu = "MenuLabel", si = d.forwardRef(
3894
3898
  (e, t) => {
3895
3899
  const { __scopeMenu: n, ...o } = e;
3896
3900
  return /* @__PURE__ */ p(U.div, { ...o, ref: t });
3897
3901
  }
3898
3902
  );
3899
- si.displayName = vu;
3900
- var Ht = "MenuItem", Zo = "menu.itemSelect", rn = d.forwardRef(
3903
+ si.displayName = wu;
3904
+ var Gt = "MenuItem", Zo = "menu.itemSelect", an = d.forwardRef(
3901
3905
  (e, t) => {
3902
- const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = xt(Ht, e.__scopeMenu), s = oo(Ht, e.__scopeMenu), c = Z(t, i), l = d.useRef(!1), f = () => {
3906
+ const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = Rt(Gt, e.__scopeMenu), s = io(Gt, e.__scopeMenu), c = Z(t, i), l = d.useRef(!1), f = () => {
3903
3907
  const u = i.current;
3904
3908
  if (!n && u) {
3905
3909
  const m = new CustomEvent(Zo, { bubbles: !0, cancelable: !0 });
@@ -3923,21 +3927,21 @@ var Ht = "MenuItem", Zo = "menu.itemSelect", rn = d.forwardRef(
3923
3927
  }),
3924
3928
  onKeyDown: N(e.onKeyDown, (u) => {
3925
3929
  const m = s.searchRef.current !== "";
3926
- n || m && u.key === " " || On.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
3930
+ n || m && u.key === " " || kn.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
3927
3931
  })
3928
3932
  }
3929
3933
  );
3930
3934
  }
3931
3935
  );
3932
- rn.displayName = Ht;
3936
+ an.displayName = Gt;
3933
3937
  var ai = d.forwardRef(
3934
3938
  (e, t) => {
3935
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = oo(Ht, n), s = ti(n), c = d.useRef(null), l = Z(t, c), [f, u] = d.useState(!1), [m, g] = d.useState("");
3939
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = io(Gt, n), s = ti(n), c = d.useRef(null), l = Z(t, c), [f, u] = d.useState(!1), [m, g] = d.useState("");
3936
3940
  return d.useEffect(() => {
3937
3941
  const w = c.current;
3938
3942
  w && g((w.textContent ?? "").trim());
3939
3943
  }, [i.children]), /* @__PURE__ */ p(
3940
- wt.ItemSlot,
3944
+ bt.ItemSlot,
3941
3945
  {
3942
3946
  scope: n,
3943
3947
  disabled: o,
@@ -3953,13 +3957,13 @@ var ai = d.forwardRef(
3953
3957
  ref: l,
3954
3958
  onPointerMove: N(
3955
3959
  e.onPointerMove,
3956
- yt((w) => {
3960
+ Ct((w) => {
3957
3961
  o ? a.onItemLeave(w) : (a.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
3958
3962
  })
3959
3963
  ),
3960
3964
  onPointerLeave: N(
3961
3965
  e.onPointerLeave,
3962
- yt((w) => a.onItemLeave(w))
3966
+ Ct((w) => a.onItemLeave(w))
3963
3967
  ),
3964
3968
  onFocus: N(e.onFocus, () => u(!0)),
3965
3969
  onBlur: N(e.onBlur, () => u(!1))
@@ -3968,49 +3972,49 @@ var ai = d.forwardRef(
3968
3972
  }
3969
3973
  );
3970
3974
  }
3971
- ), wu = "MenuCheckboxItem", ci = d.forwardRef(
3975
+ ), yu = "MenuCheckboxItem", ci = d.forwardRef(
3972
3976
  (e, t) => {
3973
3977
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
3974
3978
  return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
3975
- rn,
3979
+ an,
3976
3980
  {
3977
3981
  role: "menuitemcheckbox",
3978
- "aria-checked": Kt(n) ? "mixed" : n,
3982
+ "aria-checked": zt(n) ? "mixed" : n,
3979
3983
  ...r,
3980
3984
  ref: t,
3981
- "data-state": ao(n),
3985
+ "data-state": lo(n),
3982
3986
  onSelect: N(
3983
3987
  r.onSelect,
3984
- () => o == null ? void 0 : o(Kt(n) ? !0 : !n),
3988
+ () => o == null ? void 0 : o(zt(n) ? !0 : !n),
3985
3989
  { checkForDefaultPrevented: !1 }
3986
3990
  )
3987
3991
  }
3988
3992
  ) });
3989
3993
  }
3990
3994
  );
3991
- ci.displayName = wu;
3992
- var li = "MenuRadioGroup", [yu, bu] = Ze(
3995
+ ci.displayName = yu;
3996
+ var li = "MenuRadioGroup", [bu, Cu] = Ze(
3993
3997
  li,
3994
3998
  { value: void 0, onValueChange: () => {
3995
3999
  } }
3996
4000
  ), ui = d.forwardRef(
3997
4001
  (e, t) => {
3998
- const { value: n, onValueChange: o, ...r } = e, i = Ie(o);
3999
- return /* @__PURE__ */ p(yu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(io, { ...r, ref: t }) });
4002
+ const { value: n, onValueChange: o, ...r } = e, i = Me(o);
4003
+ return /* @__PURE__ */ p(bu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(ao, { ...r, ref: t }) });
4000
4004
  }
4001
4005
  );
4002
4006
  ui.displayName = li;
4003
4007
  var di = "MenuRadioItem", fi = d.forwardRef(
4004
4008
  (e, t) => {
4005
- const { value: n, ...o } = e, r = bu(di, e.__scopeMenu), i = n === r.value;
4009
+ const { value: n, ...o } = e, r = Cu(di, e.__scopeMenu), i = n === r.value;
4006
4010
  return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
4007
- rn,
4011
+ an,
4008
4012
  {
4009
4013
  role: "menuitemradio",
4010
4014
  "aria-checked": i,
4011
4015
  ...o,
4012
4016
  ref: t,
4013
- "data-state": ao(i),
4017
+ "data-state": lo(i),
4014
4018
  onSelect: N(
4015
4019
  o.onSelect,
4016
4020
  () => {
@@ -4024,30 +4028,30 @@ var di = "MenuRadioItem", fi = d.forwardRef(
4024
4028
  }
4025
4029
  );
4026
4030
  fi.displayName = di;
4027
- var so = "MenuItemIndicator", [pi, Cu] = Ze(
4028
- so,
4031
+ var co = "MenuItemIndicator", [pi, Su] = Ze(
4032
+ co,
4029
4033
  { checked: !1 }
4030
4034
  ), mi = d.forwardRef(
4031
4035
  (e, t) => {
4032
- const { __scopeMenu: n, forceMount: o, ...r } = e, i = Cu(so, n);
4036
+ const { __scopeMenu: n, forceMount: o, ...r } = e, i = Su(co, n);
4033
4037
  return /* @__PURE__ */ p(
4034
4038
  st,
4035
4039
  {
4036
- present: o || Kt(i.checked) || i.checked === !0,
4040
+ present: o || zt(i.checked) || i.checked === !0,
4037
4041
  children: /* @__PURE__ */ p(
4038
4042
  U.span,
4039
4043
  {
4040
4044
  ...r,
4041
4045
  ref: t,
4042
- "data-state": ao(i.checked)
4046
+ "data-state": lo(i.checked)
4043
4047
  }
4044
4048
  )
4045
4049
  }
4046
4050
  );
4047
4051
  }
4048
4052
  );
4049
- mi.displayName = so;
4050
- var Su = "MenuSeparator", hi = d.forwardRef(
4053
+ mi.displayName = co;
4054
+ var xu = "MenuSeparator", hi = d.forwardRef(
4051
4055
  (e, t) => {
4052
4056
  const { __scopeMenu: n, ...o } = e;
4053
4057
  return /* @__PURE__ */ p(
@@ -4061,17 +4065,17 @@ var Su = "MenuSeparator", hi = d.forwardRef(
4061
4065
  );
4062
4066
  }
4063
4067
  );
4064
- hi.displayName = Su;
4065
- var xu = "MenuArrow", gi = d.forwardRef(
4068
+ hi.displayName = xu;
4069
+ var Eu = "MenuArrow", gi = d.forwardRef(
4066
4070
  (e, t) => {
4067
- const { __scopeMenu: n, ...o } = e, r = on(n);
4071
+ const { __scopeMenu: n, ...o } = e, r = sn(n);
4068
4072
  return /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t });
4069
4073
  }
4070
4074
  );
4071
- gi.displayName = xu;
4072
- var Eu = "MenuSub", [Xf, vi] = Ze(Eu), dt = "MenuSubTrigger", wi = d.forwardRef(
4075
+ gi.displayName = Eu;
4076
+ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), pt = "MenuSubTrigger", wi = d.forwardRef(
4073
4077
  (e, t) => {
4074
- const n = qe(dt, e.__scopeMenu), o = xt(dt, e.__scopeMenu), r = vi(dt, e.__scopeMenu), i = oo(dt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
4078
+ const n = qe(pt, e.__scopeMenu), o = Rt(pt, e.__scopeMenu), r = vi(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
4075
4079
  a.current && window.clearTimeout(a.current), a.current = null;
4076
4080
  }, []);
4077
4081
  return d.useEffect(() => f, [f]), d.useEffect(() => {
@@ -4079,7 +4083,7 @@ var Eu = "MenuSub", [Xf, vi] = Ze(Eu), dt = "MenuSubTrigger", wi = d.forwardRef(
4079
4083
  return () => {
4080
4084
  window.clearTimeout(u), c(null);
4081
4085
  };
4082
- }, [s, c]), /* @__PURE__ */ p(to, { asChild: !0, ...l, children: /* @__PURE__ */ p(
4086
+ }, [s, c]), /* @__PURE__ */ p(oo, { asChild: !0, ...l, children: /* @__PURE__ */ p(
4083
4087
  ai,
4084
4088
  {
4085
4089
  id: r.triggerId,
@@ -4088,14 +4092,14 @@ var Eu = "MenuSub", [Xf, vi] = Ze(Eu), dt = "MenuSubTrigger", wi = d.forwardRef(
4088
4092
  "aria-controls": r.contentId,
4089
4093
  "data-state": Ci(n.open),
4090
4094
  ...e,
4091
- ref: Yt(t, r.onTriggerChange),
4095
+ ref: Zt(t, r.onTriggerChange),
4092
4096
  onClick: (u) => {
4093
4097
  var m;
4094
4098
  (m = e.onClick) == null || m.call(e, u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
4095
4099
  },
4096
4100
  onPointerMove: N(
4097
4101
  e.onPointerMove,
4098
- yt((u) => {
4102
+ Ct((u) => {
4099
4103
  i.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !a.current && (i.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
4100
4104
  n.onOpenChange(!0), f();
4101
4105
  }, 100));
@@ -4103,7 +4107,7 @@ var Eu = "MenuSub", [Xf, vi] = Ze(Eu), dt = "MenuSubTrigger", wi = d.forwardRef(
4103
4107
  ),
4104
4108
  onPointerLeave: N(
4105
4109
  e.onPointerLeave,
4106
- yt((u) => {
4110
+ Ct((u) => {
4107
4111
  var g, w;
4108
4112
  f();
4109
4113
  const m = (g = n.content) == null ? void 0 : g.getBoundingClientRect();
@@ -4133,18 +4137,18 @@ var Eu = "MenuSub", [Xf, vi] = Ze(Eu), dt = "MenuSubTrigger", wi = d.forwardRef(
4133
4137
  onKeyDown: N(e.onKeyDown, (u) => {
4134
4138
  var g;
4135
4139
  const m = i.searchRef.current !== "";
4136
- e.disabled || m && u.key === " " || ru[o.dir].includes(u.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), u.preventDefault());
4140
+ e.disabled || m && u.key === " " || iu[o.dir].includes(u.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), u.preventDefault());
4137
4141
  })
4138
4142
  }
4139
4143
  ) });
4140
4144
  }
4141
4145
  );
4142
- wi.displayName = dt;
4146
+ wi.displayName = pt;
4143
4147
  var yi = "MenuSubContent", bi = d.forwardRef(
4144
4148
  (e, t) => {
4145
- const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = xt(ge, e.__scopeMenu), s = vi(yi, e.__scopeMenu), c = d.useRef(null), l = Z(t, c);
4146
- return /* @__PURE__ */ p(wt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(wt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4147
- ro,
4149
+ const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu), s = vi(yi, e.__scopeMenu), c = d.useRef(null), l = Z(t, c);
4150
+ return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4151
+ so,
4148
4152
  {
4149
4153
  id: s.contentId,
4150
4154
  "aria-labelledby": s.triggerId,
@@ -4168,7 +4172,7 @@ var yi = "MenuSubContent", bi = d.forwardRef(
4168
4172
  }),
4169
4173
  onKeyDown: N(e.onKeyDown, (f) => {
4170
4174
  var g;
4171
- const u = f.currentTarget.contains(f.target), m = iu[a.dir].includes(f.key);
4175
+ const u = f.currentTarget.contains(f.target), m = su[a.dir].includes(f.key);
4172
4176
  u && m && (i.onOpenChange(!1), (g = s.trigger) == null || g.focus(), f.preventDefault());
4173
4177
  })
4174
4178
  }
@@ -4179,30 +4183,30 @@ bi.displayName = yi;
4179
4183
  function Ci(e) {
4180
4184
  return e ? "open" : "closed";
4181
4185
  }
4182
- function Kt(e) {
4186
+ function zt(e) {
4183
4187
  return e === "indeterminate";
4184
4188
  }
4185
- function ao(e) {
4186
- return Kt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4189
+ function lo(e) {
4190
+ return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4187
4191
  }
4188
- function Ru(e) {
4192
+ function Au(e) {
4189
4193
  const t = document.activeElement;
4190
4194
  for (const n of e)
4191
4195
  if (n === t || (n.focus(), document.activeElement !== t)) return;
4192
4196
  }
4193
- function Au(e, t) {
4197
+ function Pu(e, t) {
4194
4198
  return e.map((n, o) => e[(t + o) % e.length]);
4195
4199
  }
4196
- function Pu(e, t, n) {
4200
+ function Tu(e, t, n) {
4197
4201
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
4198
- let a = Au(e, Math.max(i, 0));
4202
+ let a = Pu(e, Math.max(i, 0));
4199
4203
  r.length === 1 && (a = a.filter((l) => l !== n));
4200
4204
  const c = a.find(
4201
4205
  (l) => l.toLowerCase().startsWith(r.toLowerCase())
4202
4206
  );
4203
4207
  return c !== n ? c : void 0;
4204
4208
  }
4205
- function Tu(e, t) {
4209
+ function Mu(e, t) {
4206
4210
  const { x: n, y: o } = e;
4207
4211
  let r = !1;
4208
4212
  for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
@@ -4214,15 +4218,15 @@ function Tu(e, t) {
4214
4218
  function Iu(e, t) {
4215
4219
  if (!t) return !1;
4216
4220
  const n = { x: e.clientX, y: e.clientY };
4217
- return Tu(n, t);
4221
+ return Mu(n, t);
4218
4222
  }
4219
- function yt(e) {
4223
+ function Ct(e) {
4220
4224
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
4221
4225
  }
4222
- var Mu = ni, Nu = to, _u = ri, Ou = ii, Du = io, ku = si, Fu = rn, Lu = ci, $u = ui, Vu = fi, Bu = mi, Wu = hi, Uu = gi, Hu = wi, Ku = bi, sn = "DropdownMenu", [Gu] = Xe(
4223
- sn,
4226
+ var Nu = ni, _u = oo, Ou = ri, Du = ii, ku = ao, Fu = si, Lu = an, $u = ci, Vu = ui, Bu = fi, Wu = mi, Uu = hi, Hu = gi, Ku = wi, Gu = bi, cn = "DropdownMenu", [zu] = Xe(
4227
+ cn,
4224
4228
  [ei]
4225
- ), ce = ei(), [zu, Si] = Gu(sn), xi = (e) => {
4229
+ ), le = ei(), [ju, Si] = zu(cn), xi = (e) => {
4226
4230
  const {
4227
4231
  __scopeDropdownMenu: t,
4228
4232
  children: n,
@@ -4231,14 +4235,14 @@ var Mu = ni, Nu = to, _u = ri, Ou = ii, Du = io, ku = si, Fu = rn, Lu = ci, $u =
4231
4235
  defaultOpen: i,
4232
4236
  onOpenChange: a,
4233
4237
  modal: s = !0
4234
- } = e, c = ce(t), l = d.useRef(null), [f, u] = mt({
4238
+ } = e, c = le(t), l = d.useRef(null), [f, u] = gt({
4235
4239
  prop: r,
4236
4240
  defaultProp: i ?? !1,
4237
4241
  onChange: a,
4238
- caller: sn
4242
+ caller: cn
4239
4243
  });
4240
4244
  return /* @__PURE__ */ p(
4241
- zu,
4245
+ ju,
4242
4246
  {
4243
4247
  scope: t,
4244
4248
  triggerId: Ge(),
@@ -4248,15 +4252,15 @@ var Mu = ni, Nu = to, _u = ri, Ou = ii, Du = io, ku = si, Fu = rn, Lu = ci, $u =
4248
4252
  onOpenChange: u,
4249
4253
  onOpenToggle: d.useCallback(() => u((m) => !m), [u]),
4250
4254
  modal: s,
4251
- children: /* @__PURE__ */ p(Mu, { ...c, open: f, onOpenChange: u, dir: o, modal: s, children: n })
4255
+ children: /* @__PURE__ */ p(Nu, { ...c, open: f, onOpenChange: u, dir: o, modal: s, children: n })
4252
4256
  }
4253
4257
  );
4254
4258
  };
4255
- xi.displayName = sn;
4259
+ xi.displayName = cn;
4256
4260
  var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4257
4261
  (e, t) => {
4258
- const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Si(Ei, n), a = ce(n);
4259
- return /* @__PURE__ */ p(Nu, { asChild: !0, ...a, children: /* @__PURE__ */ p(
4262
+ const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Si(Ei, n), a = le(n);
4263
+ return /* @__PURE__ */ p(_u, { asChild: !0, ...a, children: /* @__PURE__ */ p(
4260
4264
  U.button,
4261
4265
  {
4262
4266
  type: "button",
@@ -4268,7 +4272,7 @@ var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4268
4272
  "data-disabled": o ? "" : void 0,
4269
4273
  disabled: o,
4270
4274
  ...r,
4271
- ref: Yt(t, i.triggerRef),
4275
+ ref: Zt(t, i.triggerRef),
4272
4276
  onPointerDown: N(e.onPointerDown, (s) => {
4273
4277
  !o && s.button === 0 && s.ctrlKey === !1 && (i.onOpenToggle(), i.open || s.preventDefault());
4274
4278
  }),
@@ -4280,16 +4284,16 @@ var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4280
4284
  }
4281
4285
  );
4282
4286
  Ri.displayName = Ei;
4283
- var ju = "DropdownMenuPortal", Ai = (e) => {
4284
- const { __scopeDropdownMenu: t, ...n } = e, o = ce(t);
4285
- return /* @__PURE__ */ p(_u, { ...o, ...n });
4287
+ var Yu = "DropdownMenuPortal", Ai = (e) => {
4288
+ const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
4289
+ return /* @__PURE__ */ p(Ou, { ...o, ...n });
4286
4290
  };
4287
- Ai.displayName = ju;
4291
+ Ai.displayName = Yu;
4288
4292
  var Pi = "DropdownMenuContent", Ti = d.forwardRef(
4289
4293
  (e, t) => {
4290
- const { __scopeDropdownMenu: n, ...o } = e, r = Si(Pi, n), i = ce(n), a = d.useRef(!1);
4294
+ const { __scopeDropdownMenu: n, ...o } = e, r = Si(Pi, n), i = le(n), a = d.useRef(!1);
4291
4295
  return /* @__PURE__ */ p(
4292
- Ou,
4296
+ Du,
4293
4297
  {
4294
4298
  id: r.contentId,
4295
4299
  "aria-labelledby": r.triggerId,
@@ -4317,68 +4321,68 @@ var Pi = "DropdownMenuContent", Ti = d.forwardRef(
4317
4321
  }
4318
4322
  );
4319
4323
  Ti.displayName = Pi;
4320
- var Yu = "DropdownMenuGroup", Xu = d.forwardRef(
4324
+ var Xu = "DropdownMenuGroup", Zu = d.forwardRef(
4321
4325
  (e, t) => {
4322
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4323
- return /* @__PURE__ */ p(Du, { ...r, ...o, ref: t });
4326
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4327
+ return /* @__PURE__ */ p(ku, { ...r, ...o, ref: t });
4324
4328
  }
4325
4329
  );
4326
- Xu.displayName = Yu;
4327
- var Zu = "DropdownMenuLabel", qu = d.forwardRef(
4330
+ Zu.displayName = Xu;
4331
+ var qu = "DropdownMenuLabel", Ju = d.forwardRef(
4328
4332
  (e, t) => {
4329
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4330
- return /* @__PURE__ */ p(ku, { ...r, ...o, ref: t });
4333
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4334
+ return /* @__PURE__ */ p(Fu, { ...r, ...o, ref: t });
4331
4335
  }
4332
4336
  );
4333
- qu.displayName = Zu;
4334
- var Ju = "DropdownMenuItem", Ii = d.forwardRef(
4337
+ Ju.displayName = qu;
4338
+ var Qu = "DropdownMenuItem", Mi = d.forwardRef(
4335
4339
  (e, t) => {
4336
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4337
- return /* @__PURE__ */ p(Fu, { ...r, ...o, ref: t });
4340
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4341
+ return /* @__PURE__ */ p(Lu, { ...r, ...o, ref: t });
4338
4342
  }
4339
4343
  );
4340
- Ii.displayName = Ju;
4341
- var Qu = "DropdownMenuCheckboxItem", Mi = d.forwardRef((e, t) => {
4342
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4343
- return /* @__PURE__ */ p(Lu, { ...r, ...o, ref: t });
4344
- });
4345
4344
  Mi.displayName = Qu;
4346
- var ed = "DropdownMenuRadioGroup", td = d.forwardRef((e, t) => {
4347
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4345
+ var ed = "DropdownMenuCheckboxItem", Ii = d.forwardRef((e, t) => {
4346
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4348
4347
  return /* @__PURE__ */ p($u, { ...r, ...o, ref: t });
4349
4348
  });
4350
- td.displayName = ed;
4351
- var nd = "DropdownMenuRadioItem", od = d.forwardRef((e, t) => {
4352
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4349
+ Ii.displayName = ed;
4350
+ var td = "DropdownMenuRadioGroup", nd = d.forwardRef((e, t) => {
4351
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4353
4352
  return /* @__PURE__ */ p(Vu, { ...r, ...o, ref: t });
4354
4353
  });
4355
- od.displayName = nd;
4356
- var rd = "DropdownMenuItemIndicator", Ni = d.forwardRef((e, t) => {
4357
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4354
+ nd.displayName = td;
4355
+ var od = "DropdownMenuRadioItem", rd = d.forwardRef((e, t) => {
4356
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4358
4357
  return /* @__PURE__ */ p(Bu, { ...r, ...o, ref: t });
4359
4358
  });
4360
- Ni.displayName = rd;
4361
- var id = "DropdownMenuSeparator", _i = d.forwardRef((e, t) => {
4362
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4359
+ rd.displayName = od;
4360
+ var id = "DropdownMenuItemIndicator", Ni = d.forwardRef((e, t) => {
4361
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4363
4362
  return /* @__PURE__ */ p(Wu, { ...r, ...o, ref: t });
4364
4363
  });
4365
- _i.displayName = id;
4366
- var sd = "DropdownMenuArrow", ad = d.forwardRef(
4364
+ Ni.displayName = id;
4365
+ var sd = "DropdownMenuSeparator", _i = d.forwardRef((e, t) => {
4366
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4367
+ return /* @__PURE__ */ p(Uu, { ...r, ...o, ref: t });
4368
+ });
4369
+ _i.displayName = sd;
4370
+ var ad = "DropdownMenuArrow", cd = d.forwardRef(
4367
4371
  (e, t) => {
4368
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4369
- return /* @__PURE__ */ p(Uu, { ...r, ...o, ref: t });
4372
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4373
+ return /* @__PURE__ */ p(Hu, { ...r, ...o, ref: t });
4370
4374
  }
4371
4375
  );
4372
- ad.displayName = sd;
4373
- var cd = "DropdownMenuSubTrigger", ld = d.forwardRef((e, t) => {
4374
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4375
- return /* @__PURE__ */ p(Hu, { ...r, ...o, ref: t });
4376
+ cd.displayName = ad;
4377
+ var ld = "DropdownMenuSubTrigger", ud = d.forwardRef((e, t) => {
4378
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4379
+ return /* @__PURE__ */ p(Ku, { ...r, ...o, ref: t });
4376
4380
  });
4377
- ld.displayName = cd;
4378
- var ud = "DropdownMenuSubContent", dd = d.forwardRef((e, t) => {
4379
- const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
4381
+ ud.displayName = ld;
4382
+ var dd = "DropdownMenuSubContent", fd = d.forwardRef((e, t) => {
4383
+ const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4380
4384
  return /* @__PURE__ */ p(
4381
- Ku,
4385
+ Gu,
4382
4386
  {
4383
4387
  ...r,
4384
4388
  ...o,
@@ -4394,17 +4398,17 @@ var ud = "DropdownMenuSubContent", dd = d.forwardRef((e, t) => {
4394
4398
  }
4395
4399
  );
4396
4400
  });
4397
- dd.displayName = ud;
4398
- var fd = xi, pd = Ri, md = Ai, hd = Ti, gd = Ii, vd = Mi, wd = Ni, yd = _i;
4399
- function bd({ children: e }) {
4400
- return /* @__PURE__ */ p(fd, { children: e });
4401
+ fd.displayName = dd;
4402
+ var pd = xi, md = Ri, hd = Ai, gd = Ti, vd = Mi, wd = Ii, yd = Ni, bd = _i;
4403
+ function Cd({ children: e, modal: t = !1 }) {
4404
+ return /* @__PURE__ */ p(pd, { modal: t, children: e });
4401
4405
  }
4402
- function Cd({ asChild: e, children: t }) {
4403
- return /* @__PURE__ */ p(pd, { asChild: e, children: t });
4406
+ function Sd({ asChild: e, children: t }) {
4407
+ return /* @__PURE__ */ p(md, { asChild: e, children: t });
4404
4408
  }
4405
- function Sd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
4406
- return /* @__PURE__ */ p(md, { children: /* @__PURE__ */ p(
4407
- hd,
4409
+ function xd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
4410
+ return /* @__PURE__ */ p(hd, { children: /* @__PURE__ */ p(
4411
+ gd,
4408
4412
  {
4409
4413
  align: e,
4410
4414
  sideOffset: t,
@@ -4413,9 +4417,9 @@ function Sd({ align: e = "end", sideOffset: t = 4, className: n, children: o })
4413
4417
  }
4414
4418
  ) });
4415
4419
  }
4416
- function xd({ onClick: e, disabled: t, className: n, asChild: o, children: r }) {
4420
+ function Ed({ onClick: e, disabled: t, className: n, asChild: o, children: r }) {
4417
4421
  return /* @__PURE__ */ p(
4418
- gd,
4422
+ vd,
4419
4423
  {
4420
4424
  onClick: e,
4421
4425
  disabled: t,
@@ -4425,31 +4429,31 @@ function xd({ onClick: e, disabled: t, className: n, asChild: o, children: r })
4425
4429
  }
4426
4430
  );
4427
4431
  }
4428
- function Ed({ checked: e, onCheckedChange: t, className: n, children: o }) {
4432
+ function Rd({ checked: e, onCheckedChange: t, className: n, children: o }) {
4429
4433
  return /* @__PURE__ */ k(
4430
- vd,
4434
+ wd,
4431
4435
  {
4432
4436
  checked: e,
4433
4437
  onCheckedChange: t,
4434
4438
  className: X("snow-dropdown-checkbox-item", n),
4435
4439
  children: [
4436
- /* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(wd, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
4440
+ /* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(yd, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
4437
4441
  o
4438
4442
  ]
4439
4443
  }
4440
4444
  );
4441
4445
  }
4442
- function Rd() {
4443
- return /* @__PURE__ */ p(yd, { className: "snow-dropdown-separator" });
4446
+ function Ad() {
4447
+ return /* @__PURE__ */ p(bd, { className: "snow-dropdown-separator" });
4444
4448
  }
4445
4449
  const ee = {
4446
- Root: bd,
4447
- Trigger: Cd,
4448
- Content: Sd,
4449
- Item: xd,
4450
- CheckboxItem: Ed,
4451
- Separator: Rd
4452
- }, Ad = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ p(
4450
+ Root: Cd,
4451
+ Trigger: Sd,
4452
+ Content: xd,
4453
+ Item: Ed,
4454
+ CheckboxItem: Rd,
4455
+ Separator: Ad
4456
+ }, Pd = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ p(
4453
4457
  "a",
4454
4458
  {
4455
4459
  href: i ? void 0 : e,
@@ -4461,10 +4465,10 @@ const ee = {
4461
4465
  children: t
4462
4466
  }
4463
4467
  );
4464
- let Oi = Ad;
4465
- const Pd = (e) => {
4468
+ let Oi = Pd;
4469
+ const Td = (e) => {
4466
4470
  Oi = e;
4467
- }, Td = () => Oi, Di = {
4471
+ }, Md = () => Oi, Di = {
4468
4472
  "dataTable.search": "Search...",
4469
4473
  "dataTable.elements": "elements",
4470
4474
  "dataTable.paginationSize": "per page",
@@ -4475,25 +4479,25 @@ const Pd = (e) => {
4475
4479
  "dataTable.searchEmpty": "No results found",
4476
4480
  "dataTable.selectFilter": "Select..."
4477
4481
  };
4478
- let Dn = null;
4482
+ let Fn = null;
4479
4483
  const Id = (e) => {
4480
- if (Dn) {
4481
- const t = Dn(e);
4484
+ if (Fn) {
4485
+ const t = Fn(e);
4482
4486
  if (t !== e)
4483
4487
  return t;
4484
4488
  }
4485
4489
  return Di[e] ?? e;
4486
- }, Md = (e) => {
4487
- Dn = e;
4488
- }, at = () => Id, Nd = (e) => {
4490
+ }, Nd = (e) => {
4491
+ Fn = e;
4492
+ }, at = () => Id, _d = (e) => {
4489
4493
  Object.assign(Di, e);
4490
4494
  };
4491
- let kn = !1;
4492
- const Zf = (e) => {
4493
- kn || (Md(e.translate), e.translations && Nd(e.translations), Pd(e.LinkComponent), kn = !0);
4494
- }, qf = () => kn;
4495
- function _d({ table: e }) {
4496
- const t = at(), n = Rn(ca()), o = Ce(() => e.getAllColumns().filter((s) => {
4495
+ let Ln = !1;
4496
+ const qf = (e) => {
4497
+ Ln || (Nd(e.translate), e.translations && _d(e.translations), Td(e.LinkComponent), Ln = !0);
4498
+ }, Jf = () => Ln;
4499
+ function Od({ table: e }) {
4500
+ const t = at(), n = Pn(la()), o = Ce(() => e.getAllColumns().filter((s) => {
4497
4501
  const c = s.columnDef.header;
4498
4502
  return !(!c || typeof c == "string" && c.trim() === "" || s.columnDef.enableHiding === !1);
4499
4503
  }), [e]), r = () => {
@@ -4503,13 +4507,13 @@ function _d({ table: e }) {
4503
4507
  s.toggleVisibility(l);
4504
4508
  });
4505
4509
  };
4506
- pt(() => {
4507
- const s = sa(n.current);
4510
+ ht(() => {
4511
+ const s = aa(n.current);
4508
4512
  let c = !1;
4509
4513
  s ? (Object.entries(s).forEach(([l, f]) => {
4510
4514
  const u = e.getColumn(l);
4511
4515
  u ? u.toggleVisibility(f) : c = !0;
4512
- }), c && aa(n.current)) : r();
4516
+ }), c && ca(n.current)) : r();
4513
4517
  }, [n.current, e, o]);
4514
4518
  const i = (s, c) => {
4515
4519
  const l = e.getColumn(s);
@@ -4556,13 +4560,13 @@ function _d({ table: e }) {
4556
4560
  ] })
4557
4561
  ] });
4558
4562
  }
4559
- function Od({ className: e }) {
4563
+ function Dd({ className: e }) {
4560
4564
  return /* @__PURE__ */ p("div", { className: X("snow-skeleton", e) });
4561
4565
  }
4562
4566
  function qo(e, [t, n]) {
4563
4567
  return Math.min(n, Math.max(t, e));
4564
4568
  }
4565
- function Dd(e) {
4569
+ function kd(e) {
4566
4570
  const t = d.useRef({ value: e, previous: e });
4567
4571
  return d.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
4568
4572
  }
@@ -4578,7 +4582,7 @@ var ki = Object.freeze({
4578
4582
  clip: "rect(0, 0, 0, 0)",
4579
4583
  whiteSpace: "nowrap",
4580
4584
  wordWrap: "normal"
4581
- }), kd = "VisuallyHidden", Fd = d.forwardRef(
4585
+ }), Fd = "VisuallyHidden", Ld = d.forwardRef(
4582
4586
  (e, t) => /* @__PURE__ */ p(
4583
4587
  U.span,
4584
4588
  {
@@ -4588,11 +4592,11 @@ var ki = Object.freeze({
4588
4592
  }
4589
4593
  )
4590
4594
  );
4591
- Fd.displayName = kd;
4592
- var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Select", [an, cn, Vd] = Un(je), [ct] = Xe(je, [
4593
- Vd,
4594
- en
4595
- ]), ln = en(), [Bd, $e] = ct(je), [Wd, Ud] = ct(je), Fi = (e) => {
4595
+ Ld.displayName = Fd;
4596
+ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Select", [ln, un, Bd] = Kn(je), [ct] = Xe(je, [
4597
+ Bd,
4598
+ nn
4599
+ ]), dn = nn(), [Wd, $e] = ct(je), [Ud, Hd] = ct(je), Fi = (e) => {
4596
4600
  const {
4597
4601
  __scopeSelect: t,
4598
4602
  children: n,
@@ -4608,19 +4612,19 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
4608
4612
  disabled: m,
4609
4613
  required: g,
4610
4614
  form: w
4611
- } = e, h = ln(t), [v, y] = d.useState(null), [C, b] = d.useState(null), [S, R] = d.useState(!1), A = Xt(l), [E, x] = mt({
4615
+ } = e, h = dn(t), [v, y] = d.useState(null), [C, b] = d.useState(null), [S, R] = d.useState(!1), A = qt(l), [E, x] = gt({
4612
4616
  prop: o,
4613
4617
  defaultProp: r ?? !1,
4614
4618
  onChange: i,
4615
4619
  caller: je
4616
- }), [I, T] = mt({
4620
+ }), [M, T] = gt({
4617
4621
  prop: a,
4618
4622
  defaultProp: s,
4619
4623
  onChange: c,
4620
4624
  caller: je
4621
4625
  }), D = d.useRef(null), L = v ? w || !!v.closest("form") : !0, [$, F] = d.useState(/* @__PURE__ */ new Set()), K = Array.from($).map((O) => O.props.value).join(";");
4622
4626
  return /* @__PURE__ */ p(Or, { ...h, children: /* @__PURE__ */ k(
4623
- Bd,
4627
+ Wd,
4624
4628
  {
4625
4629
  required: g,
4626
4630
  scope: t,
@@ -4631,7 +4635,7 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
4631
4635
  valueNodeHasChildren: S,
4632
4636
  onValueNodeHasChildrenChange: R,
4633
4637
  contentId: Ge(),
4634
- value: I,
4638
+ value: M,
4635
4639
  onValueChange: T,
4636
4640
  open: E,
4637
4641
  onOpenChange: x,
@@ -4639,8 +4643,8 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
4639
4643
  triggerPointerDownPosRef: D,
4640
4644
  disabled: m,
4641
4645
  children: [
4642
- /* @__PURE__ */ p(an.Provider, { scope: t, children: /* @__PURE__ */ p(
4643
- Wd,
4646
+ /* @__PURE__ */ p(ln.Provider, { scope: t, children: /* @__PURE__ */ p(
4647
+ Ud,
4644
4648
  {
4645
4649
  scope: e.__scopeSelect,
4646
4650
  onNativeOptionAdd: d.useCallback((O) => {
@@ -4663,12 +4667,12 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
4663
4667
  tabIndex: -1,
4664
4668
  name: f,
4665
4669
  autoComplete: u,
4666
- value: I,
4670
+ value: M,
4667
4671
  onChange: (O) => T(O.target.value),
4668
4672
  disabled: m,
4669
4673
  form: w,
4670
4674
  children: [
4671
- I === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
4675
+ M === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
4672
4676
  Array.from($)
4673
4677
  ]
4674
4678
  },
@@ -4681,7 +4685,7 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
4681
4685
  Fi.displayName = je;
4682
4686
  var Li = "SelectTrigger", $i = d.forwardRef(
4683
4687
  (e, t) => {
4684
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = ln(n), a = $e(Li, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), l = cn(n), f = d.useRef("touch"), [u, m, g] = rs((h) => {
4688
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = dn(n), a = $e(Li, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), l = un(n), f = d.useRef("touch"), [u, m, g] = rs((h) => {
4685
4689
  const v = l().filter((b) => !b.disabled), y = v.find((b) => b.value === a.value), C = is(v, h, y);
4686
4690
  C !== void 0 && a.onValueChange(C.value);
4687
4691
  }), w = (h) => {
@@ -4716,7 +4720,7 @@ var Li = "SelectTrigger", $i = d.forwardRef(
4716
4720
  }),
4717
4721
  onKeyDown: N(r.onKeyDown, (h) => {
4718
4722
  const v = u.current !== "";
4719
- !(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(v && h.key === " ") && Ld.includes(h.key) && (w(), h.preventDefault());
4723
+ !(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(v && h.key === " ") && $d.includes(h.key) && (w(), h.preventDefault());
4720
4724
  })
4721
4725
  }
4722
4726
  ) });
@@ -4734,21 +4738,21 @@ var Vi = "SelectValue", Bi = d.forwardRef(
4734
4738
  ...s,
4735
4739
  ref: u,
4736
4740
  style: { pointerEvents: "none" },
4737
- children: os(c.value) ? /* @__PURE__ */ p(zt, { children: a }) : i
4741
+ children: os(c.value) ? /* @__PURE__ */ p(Yt, { children: a }) : i
4738
4742
  }
4739
4743
  );
4740
4744
  }
4741
4745
  );
4742
4746
  Bi.displayName = Vi;
4743
- var Hd = "SelectIcon", Wi = d.forwardRef(
4747
+ var Kd = "SelectIcon", Wi = d.forwardRef(
4744
4748
  (e, t) => {
4745
4749
  const { __scopeSelect: n, children: o, ...r } = e;
4746
4750
  return /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
4747
4751
  }
4748
4752
  );
4749
- Wi.displayName = Hd;
4750
- var Kd = "SelectPortal", Ui = (e) => /* @__PURE__ */ p(Qn, { asChild: !0, ...e });
4751
- Ui.displayName = Kd;
4753
+ Wi.displayName = Kd;
4754
+ var Gd = "SelectPortal", Ui = (e) => /* @__PURE__ */ p(to, { asChild: !0, ...e });
4755
+ Ui.displayName = Gd;
4752
4756
  var Ye = "SelectContent", Hi = d.forwardRef(
4753
4757
  (e, t) => {
4754
4758
  const n = $e(Ye, e.__scopeSelect), [o, r] = d.useState();
@@ -4756,8 +4760,8 @@ var Ye = "SelectContent", Hi = d.forwardRef(
4756
4760
  r(new DocumentFragment());
4757
4761
  }, []), !n.open) {
4758
4762
  const i = o;
4759
- return i ? jt.createPortal(
4760
- /* @__PURE__ */ p(Ki, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(an.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4763
+ return i ? Xt.createPortal(
4764
+ /* @__PURE__ */ p(Ki, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(ln.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4761
4765
  i
4762
4766
  ) : null;
4763
4767
  }
@@ -4765,7 +4769,7 @@ var Ye = "SelectContent", Hi = d.forwardRef(
4765
4769
  }
4766
4770
  );
4767
4771
  Hi.displayName = Ye;
4768
- var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ ht("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4772
+ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4769
4773
  (e, t) => {
4770
4774
  const {
4771
4775
  __scopeSelect: n,
@@ -4787,16 +4791,16 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
4787
4791
  avoidCollisions: v,
4788
4792
  //
4789
4793
  ...y
4790
- } = e, C = $e(Ye, n), [b, S] = d.useState(null), [R, A] = d.useState(null), E = Z(t, (M) => S(M)), [x, I] = d.useState(null), [T, D] = d.useState(
4794
+ } = e, C = $e(Ye, n), [b, S] = d.useState(null), [R, A] = d.useState(null), E = Z(t, (I) => S(I)), [x, M] = d.useState(null), [T, D] = d.useState(
4791
4795
  null
4792
- ), L = cn(n), [$, F] = d.useState(!1), K = d.useRef(!1);
4796
+ ), L = un(n), [$, F] = d.useState(!1), K = d.useRef(!1);
4793
4797
  d.useEffect(() => {
4794
4798
  if (b) return Gr(b);
4795
4799
  }, [b]), ur();
4796
4800
  const O = d.useCallback(
4797
- (M) => {
4801
+ (I) => {
4798
4802
  const [W, ...G] = L().map((z) => z.ref.current), [H] = G.slice(-1), V = document.activeElement;
4799
- for (const z of M)
4803
+ for (const z of I)
4800
4804
  if (z === V || (z == null || z.scrollIntoView({ block: "nearest" }), z === W && R && (R.scrollTop = 0), z === H && R && (R.scrollTop = R.scrollHeight), z == null || z.focus(), document.activeElement !== V)) return;
4801
4805
  },
4802
4806
  [L, R]
@@ -4810,42 +4814,42 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
4810
4814
  const { onOpenChange: _, triggerPointerDownPosRef: P } = C;
4811
4815
  d.useEffect(() => {
4812
4816
  if (b) {
4813
- let M = { x: 0, y: 0 };
4817
+ let I = { x: 0, y: 0 };
4814
4818
  const W = (H) => {
4815
4819
  var V, z;
4816
- M = {
4820
+ I = {
4817
4821
  x: Math.abs(Math.round(H.pageX) - (((V = P.current) == null ? void 0 : V.x) ?? 0)),
4818
4822
  y: Math.abs(Math.round(H.pageY) - (((z = P.current) == null ? void 0 : z.y) ?? 0))
4819
4823
  };
4820
4824
  }, G = (H) => {
4821
- M.x <= 10 && M.y <= 10 ? H.preventDefault() : b.contains(H.target) || _(!1), document.removeEventListener("pointermove", W), P.current = null;
4825
+ I.x <= 10 && I.y <= 10 ? H.preventDefault() : b.contains(H.target) || _(!1), document.removeEventListener("pointermove", W), P.current = null;
4822
4826
  };
4823
4827
  return P.current !== null && (document.addEventListener("pointermove", W), document.addEventListener("pointerup", G, { capture: !0, once: !0 })), () => {
4824
4828
  document.removeEventListener("pointermove", W), document.removeEventListener("pointerup", G, { capture: !0 });
4825
4829
  };
4826
4830
  }
4827
4831
  }, [b, _, P]), d.useEffect(() => {
4828
- const M = () => _(!1);
4829
- return window.addEventListener("blur", M), window.addEventListener("resize", M), () => {
4830
- window.removeEventListener("blur", M), window.removeEventListener("resize", M);
4832
+ const I = () => _(!1);
4833
+ return window.addEventListener("blur", I), window.addEventListener("resize", I), () => {
4834
+ window.removeEventListener("blur", I), window.removeEventListener("resize", I);
4831
4835
  };
4832
4836
  }, [_]);
4833
- const [j, q] = rs((M) => {
4834
- const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = is(W, M, G);
4837
+ const [j, J] = rs((I) => {
4838
+ const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = is(W, I, G);
4835
4839
  H && setTimeout(() => H.ref.current.focus());
4836
4840
  }), ne = d.useCallback(
4837
- (M, W, G) => {
4841
+ (I, W, G) => {
4838
4842
  const H = !K.current && !G;
4839
- (C.value !== void 0 && C.value === W || H) && (I(M), H && (K.current = !0));
4843
+ (C.value !== void 0 && C.value === W || H) && (M(I), H && (K.current = !0));
4840
4844
  },
4841
4845
  [C.value]
4842
- ), ve = d.useCallback(() => b == null ? void 0 : b.focus(), [b]), le = d.useCallback(
4843
- (M, W, G) => {
4846
+ ), ve = d.useCallback(() => b == null ? void 0 : b.focus(), [b]), ue = d.useCallback(
4847
+ (I, W, G) => {
4844
4848
  const H = !K.current && !G;
4845
- (C.value !== void 0 && C.value === W || H) && D(M);
4849
+ (C.value !== void 0 && C.value === W || H) && D(I);
4846
4850
  },
4847
4851
  [C.value]
4848
- ), we = o === "popper" ? Fn : zi, re = we === Fn ? {
4852
+ ), we = o === "popper" ? $n : zi, re = we === $n ? {
4849
4853
  side: s,
4850
4854
  sideOffset: c,
4851
4855
  align: l,
@@ -4867,32 +4871,32 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
4867
4871
  itemRefCallback: ne,
4868
4872
  selectedItem: x,
4869
4873
  onItemLeave: ve,
4870
- itemTextRefCallback: le,
4874
+ itemTextRefCallback: ue,
4871
4875
  focusSelectedItem: B,
4872
4876
  selectedItemText: T,
4873
4877
  position: o,
4874
4878
  isPositioned: $,
4875
4879
  searchRef: j,
4876
- children: /* @__PURE__ */ p(eo, { as: zd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
4877
- Kn,
4880
+ children: /* @__PURE__ */ p(no, { as: jd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
4881
+ zn,
4878
4882
  {
4879
4883
  asChild: !0,
4880
4884
  trapped: C.open,
4881
- onMountAutoFocus: (M) => {
4882
- M.preventDefault();
4885
+ onMountAutoFocus: (I) => {
4886
+ I.preventDefault();
4883
4887
  },
4884
- onUnmountAutoFocus: N(r, (M) => {
4888
+ onUnmountAutoFocus: N(r, (I) => {
4885
4889
  var W;
4886
- (W = C.trigger) == null || W.focus({ preventScroll: !0 }), M.preventDefault();
4890
+ (W = C.trigger) == null || W.focus({ preventScroll: !0 }), I.preventDefault();
4887
4891
  }),
4888
4892
  children: /* @__PURE__ */ p(
4889
- Hn,
4893
+ Gn,
4890
4894
  {
4891
4895
  asChild: !0,
4892
4896
  disableOutsidePointerEvents: !0,
4893
4897
  onEscapeKeyDown: i,
4894
4898
  onPointerDownOutside: a,
4895
- onFocusOutside: (M) => M.preventDefault(),
4899
+ onFocusOutside: (I) => I.preventDefault(),
4896
4900
  onDismiss: () => C.onOpenChange(!1),
4897
4901
  children: /* @__PURE__ */ p(
4898
4902
  we,
@@ -4901,7 +4905,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
4901
4905
  id: C.contentId,
4902
4906
  "data-state": C.open ? "open" : "closed",
4903
4907
  dir: C.dir,
4904
- onContextMenu: (M) => M.preventDefault(),
4908
+ onContextMenu: (I) => I.preventDefault(),
4905
4909
  ...y,
4906
4910
  ...re,
4907
4911
  onPlaced: () => F(!0),
@@ -4914,15 +4918,15 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
4914
4918
  outline: "none",
4915
4919
  ...y.style
4916
4920
  },
4917
- onKeyDown: N(y.onKeyDown, (M) => {
4918
- const W = M.ctrlKey || M.altKey || M.metaKey;
4919
- if (M.key === "Tab" && M.preventDefault(), !W && M.key.length === 1 && q(M.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(M.key)) {
4921
+ onKeyDown: N(y.onKeyDown, (I) => {
4922
+ const W = I.ctrlKey || I.altKey || I.metaKey;
4923
+ if (I.key === "Tab" && I.preventDefault(), !W && I.key.length === 1 && J(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
4920
4924
  let H = L().filter((V) => !V.disabled).map((V) => V.ref.current);
4921
- if (["ArrowUp", "End"].includes(M.key) && (H = H.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(M.key)) {
4922
- const V = M.target, z = H.indexOf(V);
4925
+ if (["ArrowUp", "End"].includes(I.key) && (H = H.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(I.key)) {
4926
+ const V = I.target, z = H.indexOf(V);
4923
4927
  H = H.slice(z + 1);
4924
4928
  }
4925
- setTimeout(() => O(H)), M.preventDefault();
4929
+ setTimeout(() => O(H)), I.preventDefault();
4926
4930
  }
4927
4931
  })
4928
4932
  }
@@ -4935,13 +4939,13 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
4935
4939
  );
4936
4940
  }
4937
4941
  );
4938
- Gi.displayName = Gd;
4939
- var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4940
- const { __scopeSelect: n, onPlaced: o, ...r } = e, i = $e(Ye, n), a = Ve(Ye, n), [s, c] = d.useState(null), [l, f] = d.useState(null), u = Z(t, (E) => f(E)), m = cn(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: C } = a, b = d.useCallback(() => {
4942
+ Gi.displayName = zd;
4943
+ var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4944
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, i = $e(Ye, n), a = Ve(Ye, n), [s, c] = d.useState(null), [l, f] = d.useState(null), u = Z(t, (E) => f(E)), m = un(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: C } = a, b = d.useCallback(() => {
4941
4945
  if (i.trigger && i.valueNode && s && l && h && v && y) {
4942
- const E = i.trigger.getBoundingClientRect(), x = l.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
4946
+ const E = i.trigger.getBoundingClientRect(), x = l.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
4943
4947
  if (i.dir !== "rtl") {
4944
- const V = T.left - x.left, z = I.left - V, ie = E.left - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
4948
+ const V = T.left - x.left, z = M.left - V, ie = E.left - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
4945
4949
  ye,
4946
4950
  // Prevents the content from going off the starting edge of the
4947
4951
  // viewport. It may still go off the ending edge, but this can be
@@ -4952,14 +4956,14 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4952
4956
  ]);
4953
4957
  s.style.minWidth = me + "px", s.style.left = Ue + "px";
4954
4958
  } else {
4955
- const V = x.right - T.right, z = window.innerWidth - I.right - V, ie = window.innerWidth - E.right - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
4959
+ const V = x.right - T.right, z = window.innerWidth - M.right - V, ie = window.innerWidth - E.right - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
4956
4960
  ye,
4957
4961
  Math.max(ye, We - Be)
4958
4962
  ]);
4959
4963
  s.style.minWidth = me + "px", s.style.right = Ue + "px";
4960
4964
  }
4961
- const D = m(), L = window.innerHeight - ye * 2, $ = h.scrollHeight, F = window.getComputedStyle(l), K = parseInt(F.borderTopWidth, 10), O = parseInt(F.paddingTop, 10), B = parseInt(F.borderBottomWidth, 10), _ = parseInt(F.paddingBottom, 10), P = K + O + $ + _ + B, j = Math.min(v.offsetHeight * 5, P), q = window.getComputedStyle(h), ne = parseInt(q.paddingTop, 10), ve = parseInt(q.paddingBottom, 10), le = E.top + E.height / 2 - ye, we = L - le, re = v.offsetHeight / 2, M = v.offsetTop + re, W = K + O + M, G = P - W;
4962
- if (W <= le) {
4965
+ const D = m(), L = window.innerHeight - ye * 2, $ = h.scrollHeight, F = window.getComputedStyle(l), K = parseInt(F.borderTopWidth, 10), O = parseInt(F.paddingTop, 10), B = parseInt(F.borderBottomWidth, 10), _ = parseInt(F.paddingBottom, 10), P = K + O + $ + _ + B, j = Math.min(v.offsetHeight * 5, P), J = window.getComputedStyle(h), ne = parseInt(J.paddingTop, 10), ve = parseInt(J.paddingBottom, 10), ue = E.top + E.height / 2 - ye, we = L - ue, re = v.offsetHeight / 2, I = v.offsetTop + re, W = K + O + I, G = P - W;
4966
+ if (W <= ue) {
4963
4967
  const V = D.length > 0 && v === D[D.length - 1].ref.current;
4964
4968
  s.style.bottom = "0px";
4965
4969
  const z = l.clientHeight - h.offsetTop - h.offsetHeight, ie = Math.max(
@@ -4972,11 +4976,11 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4972
4976
  const V = D.length > 0 && v === D[0].ref.current;
4973
4977
  s.style.top = "0px";
4974
4978
  const ie = Math.max(
4975
- le,
4979
+ ue,
4976
4980
  K + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4977
4981
  (V ? ne : 0) + re
4978
4982
  ) + G;
4979
- s.style.height = ie + "px", h.scrollTop = W - le + h.offsetTop;
4983
+ s.style.height = ie + "px", h.scrollTop = W - ue + h.offsetTop;
4980
4984
  }
4981
4985
  s.style.margin = `${ye}px 0`, s.style.minHeight = j + "px", s.style.maxHeight = L + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
4982
4986
  }
@@ -5004,7 +5008,7 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
5004
5008
  [b, C]
5005
5009
  );
5006
5010
  return /* @__PURE__ */ p(
5007
- Xd,
5011
+ Zd,
5008
5012
  {
5009
5013
  scope: n,
5010
5014
  contentWrapper: s,
@@ -5040,14 +5044,14 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
5040
5044
  }
5041
5045
  );
5042
5046
  });
5043
- zi.displayName = jd;
5044
- var Yd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
5047
+ zi.displayName = Yd;
5048
+ var Xd = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
5045
5049
  const {
5046
5050
  __scopeSelect: n,
5047
5051
  align: o = "start",
5048
5052
  collisionPadding: r = ye,
5049
5053
  ...i
5050
- } = e, a = ln(n);
5054
+ } = e, a = dn(n);
5051
5055
  return /* @__PURE__ */ p(
5052
5056
  kr,
5053
5057
  {
@@ -5069,11 +5073,11 @@ var Yd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
5069
5073
  }
5070
5074
  );
5071
5075
  });
5072
- Fn.displayName = Yd;
5073
- var [Xd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
5076
+ $n.displayName = Xd;
5077
+ var [Zd, uo] = ct(Ye, {}), Vn = "SelectViewport", ji = d.forwardRef(
5074
5078
  (e, t) => {
5075
- const { __scopeSelect: n, nonce: o, ...r } = e, i = Ve(Ln, n), a = co(Ln, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
5076
- return /* @__PURE__ */ k(zt, { children: [
5079
+ const { __scopeSelect: n, nonce: o, ...r } = e, i = Ve(Vn, n), a = uo(Vn, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
5080
+ return /* @__PURE__ */ k(Yt, { children: [
5077
5081
  /* @__PURE__ */ p(
5078
5082
  "style",
5079
5083
  {
@@ -5083,7 +5087,7 @@ var [Xd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
5083
5087
  nonce: o
5084
5088
  }
5085
5089
  ),
5086
- /* @__PURE__ */ p(an.Slot, { scope: n, children: /* @__PURE__ */ p(
5090
+ /* @__PURE__ */ p(ln.Slot, { scope: n, children: /* @__PURE__ */ p(
5087
5091
  U.div,
5088
5092
  {
5089
5093
  "data-radix-select-viewport": "",
@@ -5122,22 +5126,22 @@ var [Xd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
5122
5126
  ] });
5123
5127
  }
5124
5128
  );
5125
- ji.displayName = Ln;
5126
- var Yi = "SelectGroup", [Zd, qd] = ct(Yi), Jd = d.forwardRef(
5129
+ ji.displayName = Vn;
5130
+ var Yi = "SelectGroup", [qd, Jd] = ct(Yi), Qd = d.forwardRef(
5127
5131
  (e, t) => {
5128
5132
  const { __scopeSelect: n, ...o } = e, r = Ge();
5129
- return /* @__PURE__ */ p(Zd, { scope: n, id: r, children: /* @__PURE__ */ p(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5133
+ return /* @__PURE__ */ p(qd, { scope: n, id: r, children: /* @__PURE__ */ p(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5130
5134
  }
5131
5135
  );
5132
- Jd.displayName = Yi;
5133
- var Xi = "SelectLabel", Qd = d.forwardRef(
5136
+ Qd.displayName = Yi;
5137
+ var Xi = "SelectLabel", ef = d.forwardRef(
5134
5138
  (e, t) => {
5135
- const { __scopeSelect: n, ...o } = e, r = qd(Xi, n);
5139
+ const { __scopeSelect: n, ...o } = e, r = Jd(Xi, n);
5136
5140
  return /* @__PURE__ */ p(U.div, { id: r.id, ...o, ref: t });
5137
5141
  }
5138
5142
  );
5139
- Qd.displayName = Xi;
5140
- var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
5143
+ ef.displayName = Xi;
5144
+ var jt = "SelectItem", [tf, Zi] = ct(jt), qi = d.forwardRef(
5141
5145
  (e, t) => {
5142
5146
  const {
5143
5147
  __scopeSelect: n,
@@ -5145,7 +5149,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
5145
5149
  disabled: r = !1,
5146
5150
  textValue: i,
5147
5151
  ...a
5148
- } = e, s = $e(Gt, n), c = Ve(Gt, n), l = s.value === o, [f, u] = d.useState(i ?? ""), [m, g] = d.useState(!1), w = Z(
5152
+ } = e, s = $e(jt, n), c = Ve(jt, n), l = s.value === o, [f, u] = d.useState(i ?? ""), [m, g] = d.useState(!1), w = Z(
5149
5153
  t,
5150
5154
  (C) => {
5151
5155
  var b;
@@ -5159,7 +5163,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
5159
5163
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
5160
5164
  );
5161
5165
  return /* @__PURE__ */ p(
5162
- ef,
5166
+ tf,
5163
5167
  {
5164
5168
  scope: n,
5165
5169
  value: o,
@@ -5170,7 +5174,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
5170
5174
  u((b) => b || ((C == null ? void 0 : C.textContent) ?? "").trim());
5171
5175
  }, []),
5172
5176
  children: /* @__PURE__ */ p(
5173
- an.ItemSlot,
5177
+ ln.ItemSlot,
5174
5178
  {
5175
5179
  scope: n,
5176
5180
  value: o,
@@ -5210,7 +5214,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
5210
5214
  }),
5211
5215
  onKeyDown: N(a.onKeyDown, (C) => {
5212
5216
  var S;
5213
- ((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || ($d.includes(C.key) && y(), C.key === " " && C.preventDefault());
5217
+ ((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (Vd.includes(C.key) && y(), C.key === " " && C.preventDefault());
5214
5218
  })
5215
5219
  }
5216
5220
  )
@@ -5220,10 +5224,10 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
5220
5224
  );
5221
5225
  }
5222
5226
  );
5223
- qi.displayName = Gt;
5224
- var ft = "SelectItemText", Ji = d.forwardRef(
5227
+ qi.displayName = jt;
5228
+ var mt = "SelectItemText", Ji = d.forwardRef(
5225
5229
  (e, t) => {
5226
- const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(ft, n), s = Ve(ft, n), c = Zi(ft, n), l = Ud(ft, n), [f, u] = d.useState(null), m = Z(
5230
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(mt, n), s = Ve(mt, n), c = Zi(mt, n), l = Hd(mt, n), [f, u] = d.useState(null), m = Z(
5227
5231
  t,
5228
5232
  (y) => u(y),
5229
5233
  c.onItemTextChange,
@@ -5235,13 +5239,13 @@ var ft = "SelectItemText", Ji = d.forwardRef(
5235
5239
  () => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: g }, c.value),
5236
5240
  [c.disabled, c.value, g]
5237
5241
  ), { onNativeOptionAdd: h, onNativeOptionRemove: v } = l;
5238
- return oe(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ k(zt, { children: [
5242
+ return oe(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ k(Yt, { children: [
5239
5243
  /* @__PURE__ */ p(U.span, { id: c.textId, ...i, ref: m }),
5240
- c.isSelected && a.valueNode && !a.valueNodeHasChildren ? jt.createPortal(i.children, a.valueNode) : null
5244
+ c.isSelected && a.valueNode && !a.valueNodeHasChildren ? Xt.createPortal(i.children, a.valueNode) : null
5241
5245
  ] });
5242
5246
  }
5243
5247
  );
5244
- Ji.displayName = ft;
5248
+ Ji.displayName = mt;
5245
5249
  var Qi = "SelectItemIndicator", es = d.forwardRef(
5246
5250
  (e, t) => {
5247
5251
  const { __scopeSelect: n, ...o } = e;
@@ -5249,8 +5253,8 @@ var Qi = "SelectItemIndicator", es = d.forwardRef(
5249
5253
  }
5250
5254
  );
5251
5255
  es.displayName = Qi;
5252
- var $n = "SelectScrollUpButton", tf = d.forwardRef((e, t) => {
5253
- const n = Ve($n, e.__scopeSelect), o = co($n, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5256
+ var Bn = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5257
+ const n = Ve(Bn, e.__scopeSelect), o = uo(Bn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5254
5258
  return oe(() => {
5255
5259
  if (n.viewport && n.isPositioned) {
5256
5260
  let s = function() {
@@ -5272,9 +5276,9 @@ var $n = "SelectScrollUpButton", tf = d.forwardRef((e, t) => {
5272
5276
  }
5273
5277
  ) : null;
5274
5278
  });
5275
- tf.displayName = $n;
5276
- var Vn = "SelectScrollDownButton", nf = d.forwardRef((e, t) => {
5277
- const n = Ve(Vn, e.__scopeSelect), o = co(Vn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5279
+ nf.displayName = Bn;
5280
+ var Wn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5281
+ const n = Ve(Wn, e.__scopeSelect), o = uo(Wn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5278
5282
  return oe(() => {
5279
5283
  if (n.viewport && n.isPositioned) {
5280
5284
  let s = function() {
@@ -5296,9 +5300,9 @@ var Vn = "SelectScrollDownButton", nf = d.forwardRef((e, t) => {
5296
5300
  }
5297
5301
  ) : null;
5298
5302
  });
5299
- nf.displayName = Vn;
5303
+ of.displayName = Wn;
5300
5304
  var ts = d.forwardRef((e, t) => {
5301
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Ve("SelectScrollButton", n), a = d.useRef(null), s = cn(n), c = d.useCallback(() => {
5305
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Ve("SelectScrollButton", n), a = d.useRef(null), s = un(n), c = d.useCallback(() => {
5302
5306
  a.current !== null && (window.clearInterval(a.current), a.current = null);
5303
5307
  }, []);
5304
5308
  return d.useEffect(() => () => c(), [c]), oe(() => {
@@ -5324,23 +5328,23 @@ var ts = d.forwardRef((e, t) => {
5324
5328
  })
5325
5329
  }
5326
5330
  );
5327
- }), of = "SelectSeparator", rf = d.forwardRef(
5331
+ }), rf = "SelectSeparator", sf = d.forwardRef(
5328
5332
  (e, t) => {
5329
5333
  const { __scopeSelect: n, ...o } = e;
5330
5334
  return /* @__PURE__ */ p(U.div, { "aria-hidden": !0, ...o, ref: t });
5331
5335
  }
5332
5336
  );
5333
- rf.displayName = of;
5334
- var Bn = "SelectArrow", sf = d.forwardRef(
5337
+ sf.displayName = rf;
5338
+ var Un = "SelectArrow", af = d.forwardRef(
5335
5339
  (e, t) => {
5336
- const { __scopeSelect: n, ...o } = e, r = ln(n), i = $e(Bn, n), a = Ve(Bn, n);
5340
+ const { __scopeSelect: n, ...o } = e, r = dn(n), i = $e(Un, n), a = Ve(Un, n);
5337
5341
  return i.open && a.position === "popper" ? /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t }) : null;
5338
5342
  }
5339
5343
  );
5340
- sf.displayName = Bn;
5341
- var af = "SelectBubbleInput", ns = d.forwardRef(
5344
+ af.displayName = Un;
5345
+ var cf = "SelectBubbleInput", ns = d.forwardRef(
5342
5346
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5343
- const r = d.useRef(null), i = Z(o, r), a = Dd(t);
5347
+ const r = d.useRef(null), i = Z(o, r), a = kd(t);
5344
5348
  return d.useEffect(() => {
5345
5349
  const s = r.current;
5346
5350
  if (!s) return;
@@ -5363,12 +5367,12 @@ var af = "SelectBubbleInput", ns = d.forwardRef(
5363
5367
  );
5364
5368
  }
5365
5369
  );
5366
- ns.displayName = af;
5370
+ ns.displayName = cf;
5367
5371
  function os(e) {
5368
5372
  return e === "" || e === void 0;
5369
5373
  }
5370
5374
  function rs(e) {
5371
- const t = Ie(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
5375
+ const t = Me(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
5372
5376
  (a) => {
5373
5377
  const s = n.current + a;
5374
5378
  t(s), (function c(l) {
@@ -5383,54 +5387,54 @@ function rs(e) {
5383
5387
  }
5384
5388
  function is(e, t, n) {
5385
5389
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
5386
- let a = cf(e, Math.max(i, 0));
5390
+ let a = lf(e, Math.max(i, 0));
5387
5391
  r.length === 1 && (a = a.filter((l) => l !== n));
5388
5392
  const c = a.find(
5389
5393
  (l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
5390
5394
  );
5391
5395
  return c !== n ? c : void 0;
5392
5396
  }
5393
- function cf(e, t) {
5397
+ function lf(e, t) {
5394
5398
  return e.map((n, o) => e[(t + o) % e.length]);
5395
5399
  }
5396
- var lf = Fi, uf = $i, df = Bi, ff = Wi, pf = Ui, mf = Hi, hf = ji, gf = qi, vf = Ji, wf = es;
5397
- function yf({ value: e, onValueChange: t, children: n }) {
5398
- return /* @__PURE__ */ p(lf, { value: e, onValueChange: t, children: n });
5400
+ var uf = Fi, df = $i, ff = Bi, pf = Wi, mf = Ui, hf = Hi, gf = ji, vf = qi, wf = Ji, yf = es;
5401
+ function bf({ value: e, onValueChange: t, children: n }) {
5402
+ return /* @__PURE__ */ p(uf, { value: e, onValueChange: t, children: n });
5399
5403
  }
5400
- function bf({ className: e, children: t }) {
5401
- return /* @__PURE__ */ k(uf, { className: X("snow-select-trigger", e), children: [
5404
+ function Cf({ className: e, children: t }) {
5405
+ return /* @__PURE__ */ k(df, { className: X("snow-select-trigger", e), children: [
5402
5406
  t,
5403
- /* @__PURE__ */ p(ff, { asChild: !0, children: /* @__PURE__ */ p(Gs, { className: "snow-select-icon" }) })
5407
+ /* @__PURE__ */ p(pf, { asChild: !0, children: /* @__PURE__ */ p(zs, { className: "snow-select-icon" }) })
5404
5408
  ] });
5405
5409
  }
5406
- function Cf({ placeholder: e }) {
5407
- return /* @__PURE__ */ p(df, { placeholder: e });
5410
+ function Sf({ placeholder: e }) {
5411
+ return /* @__PURE__ */ p(ff, { placeholder: e });
5408
5412
  }
5409
- function Sf({ children: e }) {
5410
- return /* @__PURE__ */ p(pf, { children: /* @__PURE__ */ p(
5411
- mf,
5413
+ function xf({ children: e }) {
5414
+ return /* @__PURE__ */ p(mf, { children: /* @__PURE__ */ p(
5415
+ hf,
5412
5416
  {
5413
5417
  className: "snow-select-content",
5414
5418
  position: "popper",
5415
5419
  sideOffset: 4,
5416
- children: /* @__PURE__ */ p(hf, { className: "snow-select-viewport", children: e })
5420
+ children: /* @__PURE__ */ p(gf, { className: "snow-select-viewport", children: e })
5417
5421
  }
5418
5422
  ) });
5419
5423
  }
5420
- function xf({ value: e, children: t }) {
5421
- return /* @__PURE__ */ k(gf, { value: e, className: "snow-select-item", children: [
5422
- /* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(wf, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
5423
- /* @__PURE__ */ p(vf, { children: t })
5424
+ function Ef({ value: e, children: t }) {
5425
+ return /* @__PURE__ */ k(vf, { value: e, className: "snow-select-item", children: [
5426
+ /* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(yf, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
5427
+ /* @__PURE__ */ p(wf, { children: t })
5424
5428
  ] });
5425
5429
  }
5426
5430
  const Re = {
5427
- Root: yf,
5428
- Trigger: bf,
5429
- Value: Cf,
5430
- Content: Sf,
5431
- Item: xf
5432
- }, un = [25, 50, 100];
5433
- function Ef({ table: e, isLoading: t }) {
5431
+ Root: bf,
5432
+ Trigger: Cf,
5433
+ Value: Sf,
5434
+ Content: xf,
5435
+ Item: Ef
5436
+ }, fn = [25, 50, 100];
5437
+ function Rf({ table: e, isLoading: t }) {
5434
5438
  return /* @__PURE__ */ p("div", { className: "snow-pagination", children: /* @__PURE__ */ k("div", { className: "snow-pagination-controls", children: [
5435
5439
  /* @__PURE__ */ p(
5436
5440
  Ae,
@@ -5451,7 +5455,7 @@ function Ef({ table: e, isLoading: t }) {
5451
5455
  }
5452
5456
  ),
5453
5457
  /* @__PURE__ */ k("div", { className: "snow-pagination-display", children: [
5454
- /* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(Hs, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
5458
+ /* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(Ks, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
5455
5459
  /* @__PURE__ */ k("span", { className: "snow-pagination-total", children: [
5456
5460
  "de ",
5457
5461
  e.getPageCount()
@@ -5477,9 +5481,9 @@ function Ef({ table: e, isLoading: t }) {
5477
5481
  )
5478
5482
  ] }) });
5479
5483
  }
5480
- function Rf({
5484
+ function Af({
5481
5485
  table: e,
5482
- paginationSizes: t = un,
5486
+ paginationSizes: t = fn,
5483
5487
  enableElementLabel: n = !0
5484
5488
  }) {
5485
5489
  const o = at();
@@ -5500,9 +5504,9 @@ function Rf({
5500
5504
  )
5501
5505
  ] });
5502
5506
  }
5503
- var dn = "Tabs", [Af] = Xe(dn, [
5504
- tn
5505
- ]), ss = tn(), [Pf, lo] = Af(dn), as = d.forwardRef(
5507
+ var pn = "Tabs", [Pf] = Xe(pn, [
5508
+ on
5509
+ ]), ss = on(), [Tf, fo] = Pf(pn), as = d.forwardRef(
5506
5510
  (e, t) => {
5507
5511
  const {
5508
5512
  __scopeTabs: n,
@@ -5513,14 +5517,14 @@ var dn = "Tabs", [Af] = Xe(dn, [
5513
5517
  dir: s,
5514
5518
  activationMode: c = "automatic",
5515
5519
  ...l
5516
- } = e, f = Xt(s), [u, m] = mt({
5520
+ } = e, f = qt(s), [u, m] = gt({
5517
5521
  prop: o,
5518
5522
  onChange: r,
5519
5523
  defaultProp: i ?? "",
5520
- caller: dn
5524
+ caller: pn
5521
5525
  });
5522
5526
  return /* @__PURE__ */ p(
5523
- Pf,
5527
+ Tf,
5524
5528
  {
5525
5529
  scope: n,
5526
5530
  baseId: Ge(),
@@ -5542,10 +5546,10 @@ var dn = "Tabs", [Af] = Xe(dn, [
5542
5546
  );
5543
5547
  }
5544
5548
  );
5545
- as.displayName = dn;
5549
+ as.displayName = pn;
5546
5550
  var cs = "TabsList", ls = d.forwardRef(
5547
5551
  (e, t) => {
5548
- const { __scopeTabs: n, loop: o = !0, ...r } = e, i = lo(cs, n), a = ss(n);
5552
+ const { __scopeTabs: n, loop: o = !0, ...r } = e, i = fo(cs, n), a = ss(n);
5549
5553
  return /* @__PURE__ */ p(
5550
5554
  Ur,
5551
5555
  {
@@ -5570,7 +5574,7 @@ var cs = "TabsList", ls = d.forwardRef(
5570
5574
  ls.displayName = cs;
5571
5575
  var us = "TabsTrigger", ds = d.forwardRef(
5572
5576
  (e, t) => {
5573
- const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = lo(us, n), s = ss(n), c = ps(a.baseId, o), l = ms(a.baseId, o), f = o === a.value;
5577
+ const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = fo(us, n), s = ss(n), c = ps(a.baseId, o), l = ms(a.baseId, o), f = o === a.value;
5574
5578
  return /* @__PURE__ */ p(
5575
5579
  Hr,
5576
5580
  {
@@ -5608,9 +5612,9 @@ var us = "TabsTrigger", ds = d.forwardRef(
5608
5612
  }
5609
5613
  );
5610
5614
  ds.displayName = us;
5611
- var fs = "TabsContent", Tf = d.forwardRef(
5615
+ var fs = "TabsContent", Mf = d.forwardRef(
5612
5616
  (e, t) => {
5613
- const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = lo(fs, n), c = ps(s.baseId, o), l = ms(s.baseId, o), f = o === s.value, u = d.useRef(f);
5617
+ const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = fo(fs, n), c = ps(s.baseId, o), l = ms(s.baseId, o), f = o === s.value, u = d.useRef(f);
5614
5618
  return d.useEffect(() => {
5615
5619
  const m = requestAnimationFrame(() => u.current = !1);
5616
5620
  return () => cancelAnimationFrame(m);
@@ -5635,37 +5639,37 @@ var fs = "TabsContent", Tf = d.forwardRef(
5635
5639
  ) });
5636
5640
  }
5637
5641
  );
5638
- Tf.displayName = fs;
5642
+ Mf.displayName = fs;
5639
5643
  function ps(e, t) {
5640
5644
  return `${e}-trigger-${t}`;
5641
5645
  }
5642
5646
  function ms(e, t) {
5643
5647
  return `${e}-content-${t}`;
5644
5648
  }
5645
- var If = as, Mf = ls, Nf = ds;
5646
- function _f({ value: e, onValueChange: t, children: n }) {
5649
+ var If = as, Nf = ls, _f = ds;
5650
+ function Of({ value: e, onValueChange: t, children: n }) {
5647
5651
  return /* @__PURE__ */ p(If, { value: e, onValueChange: t, children: n });
5648
5652
  }
5649
- function Of({ children: e, className: t }) {
5650
- return /* @__PURE__ */ p(Mf, { className: X("snow-tabs-list", t), children: e });
5653
+ function Df({ children: e, className: t }) {
5654
+ return /* @__PURE__ */ p(Nf, { className: X("snow-tabs-list", t), children: e });
5651
5655
  }
5652
- function Df({ value: e, children: t }) {
5653
- return /* @__PURE__ */ p(Nf, { value: e, className: "snow-tabs-trigger", children: t });
5656
+ function kf({ value: e, children: t }) {
5657
+ return /* @__PURE__ */ p(_f, { value: e, className: "snow-tabs-trigger", children: t });
5654
5658
  }
5655
- const En = {
5656
- Root: _f,
5657
- List: Of,
5658
- Trigger: Df
5659
+ const An = {
5660
+ Root: Of,
5661
+ List: Df,
5662
+ Trigger: kf
5659
5663
  };
5660
- function kf({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
5664
+ function Ff({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
5661
5665
  var s;
5662
- const o = zs(), r = at(), i = e.find((c) => c.id === t), a = e.length > 0 && t !== ((s = e[0]) == null ? void 0 : s.id);
5666
+ const o = js(), r = at(), i = e.find((c) => c.id === t), a = e.length > 0 && t !== ((s = e[0]) == null ? void 0 : s.id);
5663
5667
  return o || e.length > 4 ? /* @__PURE__ */ k(Re.Root, { value: t, onValueChange: n, children: [
5664
5668
  /* @__PURE__ */ p(Re.Trigger, { className: `snow-w-fit snow-min-w-32 ${a ? "snow-state-active" : ""}`, children: /* @__PURE__ */ p(Re.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
5665
5669
  /* @__PURE__ */ p(Re.Content, { children: e.map((c) => /* @__PURE__ */ p(Re.Item, { value: c.id, children: c.label }, c.id)) })
5666
- ] }) : /* @__PURE__ */ p(En.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(En.List, { className: a ? "snow-state-active" : "", children: e.map((c) => /* @__PURE__ */ p(En.Trigger, { value: c.id, children: c.label }, c.id)) }) });
5670
+ ] }) : /* @__PURE__ */ p(An.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(An.List, { className: a ? "snow-state-active" : "", children: e.map((c) => /* @__PURE__ */ p(An.Trigger, { value: c.id, children: c.label }, c.id)) }) });
5667
5671
  }
5668
- const uo = er(
5672
+ const po = er(
5669
5673
  ({ value: e, onChange: t, onKeyDown: n, placeholder: o, className: r, type: i = "text", isActive: a, ...s }, c) => /* @__PURE__ */ p(
5670
5674
  "input",
5671
5675
  {
@@ -5680,22 +5684,22 @@ const uo = er(
5680
5684
  }
5681
5685
  )
5682
5686
  );
5683
- uo.displayName = "Input";
5684
- const Ff = 500;
5685
- function Lf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5687
+ po.displayName = "Input";
5688
+ const Lf = 500;
5689
+ function $f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5686
5690
  const [o, r] = ae(e);
5687
- pt(() => {
5691
+ ht(() => {
5688
5692
  r(e);
5689
- }, [e]), pt(() => {
5693
+ }, [e]), ht(() => {
5690
5694
  const a = setTimeout(() => {
5691
5695
  o !== e && (t == null || t(o));
5692
- }, Ff);
5696
+ }, Lf);
5693
5697
  return () => clearTimeout(a);
5694
5698
  }, [o, e, t]);
5695
5699
  const i = o.length > 0;
5696
5700
  return /* @__PURE__ */ p("div", { className: "snow-searchbar snow-lg:min-w-[331px]", children: /* @__PURE__ */ k("div", { className: "snow-flex snow-relative", children: [
5697
5701
  /* @__PURE__ */ p(
5698
- uo,
5702
+ po,
5699
5703
  {
5700
5704
  "data-testid": "data-table-search-bar",
5701
5705
  type: "text",
@@ -5708,7 +5712,7 @@ function Lf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5708
5712
  /* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(nr, { className: X(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
5709
5713
  ] }) });
5710
5714
  }
5711
- function $f({
5715
+ function Vf({
5712
5716
  filter: e,
5713
5717
  selectedValues: t = [],
5714
5718
  onFilterChange: n
@@ -5734,16 +5738,16 @@ function $f({
5734
5738
  return /* @__PURE__ */ k(ee.Root, { children: [
5735
5739
  /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Ae, { className: X("snow-filter-btn snow-w-full snow-justify-between", a > 0 && "snow-state-active"), children: [
5736
5740
  /* @__PURE__ */ k("div", { className: "snow-filter-btn-content", children: [
5737
- /* @__PURE__ */ p(Ws, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5741
+ e.multipleSelection ? /* @__PURE__ */ p(Us, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Ws, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5738
5742
  /* @__PURE__ */ p("span", { className: "snow-truncate", children: u() })
5739
5743
  ] }),
5740
- /* @__PURE__ */ p(Wn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
5744
+ /* @__PURE__ */ p(Hn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
5741
5745
  ] }) }),
5742
5746
  /* @__PURE__ */ k(ee.Content, { align: "start", className: "snow-w-56", children: [
5743
5747
  /* @__PURE__ */ p("div", { className: "snow-p-2", children: /* @__PURE__ */ k("div", { className: "snow-filter-search", children: [
5744
5748
  /* @__PURE__ */ p(nr, { className: "snow-filter-search-icon" }),
5745
5749
  /* @__PURE__ */ p(
5746
- uo,
5750
+ po,
5747
5751
  {
5748
5752
  placeholder: o("dataTable.searchFilters"),
5749
5753
  value: r,
@@ -5765,15 +5769,15 @@ function $f({
5765
5769
  },
5766
5770
  m.value
5767
5771
  )),
5768
- a > 0 && /* @__PURE__ */ k(zt, { children: [
5772
+ a > 0 && /* @__PURE__ */ k(Yt, { children: [
5769
5773
  /* @__PURE__ */ p(ee.Separator, {}),
5770
- /* @__PURE__ */ p(ee.Item, { onClick: f, className: "snow-text-xs snow-cursor-pointer", children: o("dataTable.resetFilters") })
5774
+ /* @__PURE__ */ p(ee.Item, { onClick: f, className: "snow-text-xs snow-cursor-pointer snow-text-center snow-text-muted-foreground", children: o("dataTable.resetFilters") })
5771
5775
  ] })
5772
5776
  ] })
5773
5777
  ] });
5774
5778
  }
5775
- function Vf({ column: e }) {
5776
- return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Wn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(ks, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Bs, { className: "snow-sort-icon" });
5779
+ function Bf({ column: e }) {
5780
+ return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Hn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(ks, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Bs, { className: "snow-sort-icon" });
5777
5781
  }
5778
5782
  function hs({
5779
5783
  // Data
@@ -5810,7 +5814,7 @@ function hs({
5810
5814
  // UI options
5811
5815
  onRowClick: E,
5812
5816
  activeRowId: x,
5813
- displayTotalNumber: I = !0,
5817
+ displayTotalNumber: M = !0,
5814
5818
  enableElementLabel: T = !0,
5815
5819
  enablePagination: D = !0,
5816
5820
  paginationSizes: L,
@@ -5819,31 +5823,31 @@ function hs({
5819
5823
  // Reset
5820
5824
  onResetFilters: K
5821
5825
  }) {
5822
- var po;
5826
+ var ho;
5823
5827
  const O = at(), [B, _] = ae({
5824
5828
  pageIndex: 0,
5825
- pageSize: un[0]
5826
- }), [P, j] = ae(""), [q, ne] = ae({}), [ve, le] = ae([]), [we, re] = ae({}), M = i ?? B, W = a ?? _, G = c ?? P, H = l ?? j, V = m ?? q, z = g ?? ne, ie = y ?? ve, me = C ?? le, Be = S ?? we, We = R ?? re, Ue = be(
5829
+ pageSize: fn[0]
5830
+ }), [P, j] = ae(""), [J, ne] = ae({}), [ve, ue] = ae([]), [we, re] = ae({}), I = i ?? B, W = a ?? _, G = c ?? P, H = l ?? j, V = m ?? J, z = g ?? ne, ie = y ?? ve, me = C ?? ue, Be = S ?? we, We = R ?? re, Ue = be(
5827
5831
  (Y) => {
5828
- H(Y), W((J) => ({ ...J, pageIndex: 0 }));
5832
+ H(Y), W((q) => ({ ...q, pageIndex: 0 }));
5829
5833
  },
5830
5834
  [H, W]
5831
- ), fn = Ce(() => JSON.stringify(V), [V]);
5832
- pt(() => {
5835
+ ), mn = Ce(() => JSON.stringify(V), [V]);
5836
+ ht(() => {
5833
5837
  W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
5834
- }, [h, fn, W]);
5835
- const te = r === "server", vs = s !== void 0 ? Math.ceil(s / M.pageSize) : void 0, ws = !te || s !== void 0, fo = Ce(() => Object.entries(V).map(([Y, J]) => ({ id: Y, value: J })), [V]), ys = be((Y, J, Q) => {
5836
- const he = Y.getValue(J);
5838
+ }, [h, mn, W]);
5839
+ const te = r === "server", vs = s !== void 0 ? Math.ceil(s / I.pageSize) : void 0, ws = !te || s !== void 0, mo = Ce(() => Object.entries(V).map(([Y, q]) => ({ id: Y, value: q })), [V]), ys = be((Y, q, Q) => {
5840
+ const he = Y.getValue(q);
5837
5841
  return Q.includes(String(he));
5838
- }, []), _e = Ms({
5842
+ }, []), _e = Is({
5839
5843
  data: e,
5840
5844
  columns: t,
5841
5845
  pageCount: te ? vs : void 0,
5842
5846
  state: {
5843
- pagination: M,
5847
+ pagination: I,
5844
5848
  sorting: b ? ie : void 0,
5845
5849
  globalFilter: !te && f ? G : void 0,
5846
- columnFilters: !te && (u != null && u.length) ? fo : void 0,
5850
+ columnFilters: !te && (u != null && u.length) ? mo : void 0,
5847
5851
  columnVisibility: A ? Be : void 0
5848
5852
  },
5849
5853
  onPaginationChange: W,
@@ -5863,25 +5867,25 @@ function hs({
5863
5867
  filterFns: {
5864
5868
  multiSelect: ys
5865
5869
  },
5866
- globalFilterFn: f ? ia : void 0
5870
+ globalFilterFn: f ? sa : void 0
5867
5871
  } : {}
5868
- }), bs = (Y, J) => {
5872
+ }), bs = (Y, q) => {
5869
5873
  const Q = String(Y), he = { ...V };
5870
- J.length === 0 ? delete he[Q] : he[Q] = J, z(he);
5871
- }, Cs = f || I || u && u.length > 0 || A, Ss = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), xs = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, fo]);
5874
+ q.length === 0 ? delete he[Q] : he[Q] = q, z(he);
5875
+ }, Cs = f || M || u && u.length > 0 || A, Ss = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), xs = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, mo]);
5872
5876
  return /* @__PURE__ */ k("div", { className: "snow-table-container snow-table-root", "data-testid": "datatable", children: [
5873
5877
  o && !n && /* @__PURE__ */ p("div", { className: "snow-table-loading-overlay" }),
5874
5878
  Cs && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
5875
5879
  /* @__PURE__ */ p("div", { className: "snow-topbar-left", children: w && w.length > 0 && v && /* @__PURE__ */ p(
5876
- kf,
5880
+ Ff,
5877
5881
  {
5878
5882
  prefilters: w,
5879
- activePrefilter: h ?? ((po = w[0]) == null ? void 0 : po.id) ?? "",
5883
+ activePrefilter: h ?? ((ho = w[0]) == null ? void 0 : ho.id) ?? "",
5880
5884
  onPrefilterChange: v
5881
5885
  }
5882
5886
  ) }),
5883
5887
  /* @__PURE__ */ p("div", { className: "snow-topbar-center", children: f && /* @__PURE__ */ p("div", { className: "snow-w-full snow-max-w-sm", children: /* @__PURE__ */ p(
5884
- Lf,
5888
+ $f,
5885
5889
  {
5886
5890
  value: G,
5887
5891
  onDebouncedChange: Ue,
@@ -5890,7 +5894,7 @@ function hs({
5890
5894
  ) }) }),
5891
5895
  /* @__PURE__ */ k("div", { className: "snow-topbar-right", children: [
5892
5896
  u == null ? void 0 : u.map((Y) => /* @__PURE__ */ p(
5893
- $f,
5897
+ Vf,
5894
5898
  {
5895
5899
  filter: Y,
5896
5900
  selectedValues: V[String(Y.key)],
@@ -5898,14 +5902,14 @@ function hs({
5898
5902
  },
5899
5903
  String(Y.key)
5900
5904
  )),
5901
- A && /* @__PURE__ */ p(_d, { table: _e }),
5905
+ A && /* @__PURE__ */ p(Od, { table: _e }),
5902
5906
  (f || w && w.length > 0 || u && u.length > 0) && K && /* @__PURE__ */ p(
5903
5907
  Ae,
5904
5908
  {
5905
5909
  onClick: K,
5906
5910
  title: O("dataTable.resetFilters"),
5907
5911
  "data-testid": "datatable-reset-filters",
5908
- children: /* @__PURE__ */ p(Us, { className: "snow-size-4" })
5912
+ children: /* @__PURE__ */ p(Hs, { className: "snow-size-4" })
5909
5913
  }
5910
5914
  )
5911
5915
  ] })
@@ -5918,45 +5922,46 @@ function hs({
5918
5922
  $ && "snow-responsive-container"
5919
5923
  ),
5920
5924
  children: /* @__PURE__ */ k("table", { className: "snow-table", "data-testid": "datatable-table", children: [
5921
- /* @__PURE__ */ p("thead", { className: X("snow-table-header", $ && "snow-responsive-thead"), children: _e.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((J) => {
5922
- var Q, he, Et, Rt;
5925
+ /* @__PURE__ */ p("thead", { className: X("snow-table-header", $ && "snow-responsive-thead"), children: _e.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((q) => {
5926
+ var Q, he, At, Pt, lt, ut;
5923
5927
  return /* @__PURE__ */ p(
5924
5928
  "th",
5925
5929
  {
5926
5930
  className: X("snow-table-header-cell", b && "snow-cursor-pointer"),
5927
- onClick: J.column.getToggleSortingHandler(),
5931
+ onClick: q.column.getToggleSortingHandler(),
5928
5932
  style: {
5929
- width: (he = (Q = J.column.columnDef) == null ? void 0 : Q.meta) == null ? void 0 : he.width,
5930
- minWidth: (Rt = (Et = J.column.columnDef) == null ? void 0 : Et.meta) == null ? void 0 : Rt.minWidth
5933
+ width: (he = (Q = q.column.columnDef) == null ? void 0 : Q.meta) == null ? void 0 : he.width,
5934
+ minWidth: (Pt = (At = q.column.columnDef) == null ? void 0 : At.meta) == null ? void 0 : Pt.minWidth,
5935
+ maxWidth: (ut = (lt = q.column.columnDef) == null ? void 0 : lt.meta) == null ? void 0 : ut.maxWidth
5931
5936
  },
5932
- children: J.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
5933
- /* @__PURE__ */ p("h3", { children: bo(J.column.columnDef.header, J.getContext()) }),
5934
- b && /* @__PURE__ */ p(Vf, { column: J.column })
5937
+ children: q.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
5938
+ /* @__PURE__ */ p("h3", { children: bo(q.column.columnDef.header, q.getContext()) }),
5939
+ b && /* @__PURE__ */ p(Bf, { column: q.column })
5935
5940
  ] })
5936
5941
  },
5937
- J.id
5942
+ q.id
5938
5943
  );
5939
5944
  }) }, Y.id)) }),
5940
- n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: M.pageSize > 10 ? 10 : M.pageSize }).map((Y, J) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": J % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Od, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, J)) }) : Ss > 0 ? /* @__PURE__ */ p(
5945
+ n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: I.pageSize > 10 ? 10 : I.pageSize }).map((Y, q) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": q % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Dd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, q)) }) : Ss > 0 ? /* @__PURE__ */ p(
5941
5946
  "tbody",
5942
5947
  {
5943
5948
  className: X("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
5944
5949
  "data-testid": "datatable-body",
5945
- children: _e.getRowModel().rows.map((Y, J) => /* @__PURE__ */ p(
5950
+ children: _e.getRowModel().rows.map((Y, q) => /* @__PURE__ */ p(
5946
5951
  "tr",
5947
5952
  {
5948
5953
  "data-testid": `datatable-row-${Y.id}`,
5949
5954
  className: X(
5950
5955
  "snow-table-row snow-transition-all snow-duration-300 snow-ease-in-out",
5951
5956
  {
5952
- "snow-table-row-alternate": J % 2 === 1,
5957
+ "snow-table-row-alternate": q % 2 === 1,
5953
5958
  "snow-table-row-active": x !== void 0 && "id" in Y.original && x === Y.original.id
5954
5959
  },
5955
5960
  $ && "snow-responsive-row"
5956
5961
  ),
5957
5962
  children: Y.getVisibleCells().map((Q, he) => {
5958
- var mo, ho, go, vo;
5959
- const Et = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Rt = he === Y.getVisibleCells().length - 1;
5963
+ var lt, ut, go, vo;
5964
+ const At = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Pt = he === Y.getVisibleCells().length - 1;
5960
5965
  return /* @__PURE__ */ k(
5961
5966
  "td",
5962
5967
  {
@@ -5965,12 +5970,12 @@ function hs({
5965
5970
  return E && !((yo = (wo = Q.column.columnDef) == null ? void 0 : wo.meta) != null && yo.disableColumnClick) && E(Y.original);
5966
5971
  },
5967
5972
  className: X(
5968
- E && !((ho = (mo = Q.column.columnDef) == null ? void 0 : mo.meta) != null && ho.disableColumnClick) && "snow-cursor-pointer",
5973
+ E && !((ut = (lt = Q.column.columnDef) == null ? void 0 : lt.meta) != null && ut.disableColumnClick) && "snow-cursor-pointer",
5969
5974
  ((vo = (go = Q.column.columnDef) == null ? void 0 : go.meta) == null ? void 0 : vo.center) && "snow-align-middle snow-text-center",
5970
- $ ? X("snow-responsive-cell", Rt && "snow-responsive-cell-last") : "snow-table-cell"
5975
+ $ ? X("snow-responsive-cell", Pt && "snow-responsive-cell-last") : "snow-table-cell"
5971
5976
  ),
5972
5977
  children: [
5973
- $ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: Et }),
5978
+ $ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: At }),
5974
5979
  /* @__PURE__ */ p("span", { className: X($ && "snow-responsive-cell-content"), children: bo(Q.column.columnDef.cell, Q.getContext()) })
5975
5980
  ]
5976
5981
  },
@@ -5986,18 +5991,18 @@ function hs({
5986
5991
  }
5987
5992
  ),
5988
5993
  /* @__PURE__ */ k("div", { className: "snow-table-bottom-bar", children: [
5989
- I && /* @__PURE__ */ k("div", { className: "snow-table-count", "data-testid": "datatable-count", children: [
5994
+ M && /* @__PURE__ */ k("div", { className: "snow-table-count", "data-testid": "datatable-count", children: [
5990
5995
  xs,
5991
5996
  " ",
5992
5997
  O("dataTable.elements")
5993
5998
  ] }),
5994
- /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && ws && /* @__PURE__ */ p(Ef, { table: _e, isLoading: o }) }),
5995
- D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(Rf, { table: _e, enableElementLabel: T, paginationSizes: L }) })
5999
+ /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && ws && /* @__PURE__ */ p(Rf, { table: _e, isLoading: o }) }),
6000
+ D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(Af, { table: _e, enableElementLabel: T, paginationSizes: L }) })
5996
6001
  ] })
5997
6002
  ] });
5998
6003
  }
5999
- function Bf({ label: e, x: t, y: n }) {
6000
- return Is(
6004
+ function Wf({ label: e, x: t, y: n }) {
6005
+ return Ms(
6001
6006
  /* @__PURE__ */ k("div", { style: {
6002
6007
  position: "fixed",
6003
6008
  left: t,
@@ -6018,8 +6023,8 @@ const Jo = {
6018
6023
  info: "snow-variant-info",
6019
6024
  success: "snow-variant-success"
6020
6025
  };
6021
- function Wf({ item: e, actions: t, onAction: n }) {
6022
- const o = Td(), [r, i] = ae(null), a = be((u, m) => {
6026
+ function Uf({ item: e, actions: t, onAction: n }) {
6027
+ const o = Md(), [r, i] = ae(null), a = be((u, m) => {
6023
6028
  const g = m.getBoundingClientRect();
6024
6029
  let w = g.left + g.width / 2;
6025
6030
  const h = g.top - 8, v = window.innerWidth - 8, y = 8, C = u.length * 7 + 16;
@@ -6039,7 +6044,7 @@ function Wf({ item: e, actions: t, onAction: n }) {
6039
6044
  [n, e]
6040
6045
  );
6041
6046
  return /* @__PURE__ */ k("div", { className: "snow-action-cell", children: [
6042
- r && /* @__PURE__ */ p(Bf, { ...r }),
6047
+ r && /* @__PURE__ */ p(Wf, { ...r }),
6043
6048
  c.map((u, m) => {
6044
6049
  const g = typeof u == "function" ? u(e) : u, w = g.icon;
6045
6050
  if (g.type === "link") {
@@ -6085,7 +6090,7 @@ function Wf({ item: e, actions: t, onAction: n }) {
6085
6090
  );
6086
6091
  }),
6087
6092
  l.length > 0 && /* @__PURE__ */ k(ee.Root, { children: [
6088
- /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(Ks, { className: "snow-size-4" }) }) }),
6093
+ /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(Gs, { className: "snow-size-4" }) }) }),
6089
6094
  /* @__PURE__ */ p(ee.Content, { align: "end", children: l.map((u, m) => {
6090
6095
  const g = typeof u == "function" ? u(e) : u, w = g.icon, h = g.variant && Jo[g.variant] ? Jo[g.variant] : "";
6091
6096
  if (g.type === "link") {
@@ -6121,7 +6126,7 @@ function Wf({ item: e, actions: t, onAction: n }) {
6121
6126
  ] })
6122
6127
  ] });
6123
6128
  }
6124
- const Uf = Ps(Wf), gs = ({
6129
+ const Hf = Ps(Uf), gs = ({
6125
6130
  columnConfig: e,
6126
6131
  actions: t,
6127
6132
  filters: n,
@@ -6168,7 +6173,7 @@ const Uf = Ps(Wf), gs = ({
6168
6173
  meta: l.meta,
6169
6174
  cell: ({ row: u }) => {
6170
6175
  const m = u.original[l.key];
6171
- return l.render ? l.render(u.original) : Ys(m);
6176
+ return l.render ? l.render(u.original) : Xs(m);
6172
6177
  }
6173
6178
  };
6174
6179
  });
@@ -6180,12 +6185,12 @@ const Uf = Ps(Wf), gs = ({
6180
6185
  },
6181
6186
  enableSorting: !1,
6182
6187
  enableHiding: !1,
6183
- cell: ({ row: l }) => /* @__PURE__ */ p(Uf, { item: l.original, actions: t, onAction: a })
6188
+ cell: ({ row: l }) => /* @__PURE__ */ p(Hf, { item: l.original, actions: t, onAction: a })
6184
6189
  }), c;
6185
6190
  }, [e, t, n, o, r]),
6186
6191
  handleAction: a
6187
6192
  };
6188
- }, Jf = ({
6193
+ }, Qf = ({
6189
6194
  queryKey: e,
6190
6195
  columnConfig: t,
6191
6196
  actions: n,
@@ -6194,7 +6199,7 @@ const Uf = Ps(Wf), gs = ({
6194
6199
  prefilterFn: i,
6195
6200
  defaultSortBy: a,
6196
6201
  defaultSortOrder: s = "asc",
6197
- defaultPageSize: c = un[0],
6202
+ defaultPageSize: c = fn[0],
6198
6203
  persistState: l = !1,
6199
6204
  fetchAllItemsEndpoint: f,
6200
6205
  ...u
@@ -6221,7 +6226,7 @@ const Uf = Ps(Wf), gs = ({
6221
6226
  }), { data: E = [], isLoading: x } = Qo({
6222
6227
  queryKey: e,
6223
6228
  queryFn: f
6224
- }), I = Ce(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } = gs({
6229
+ }), M = Ce(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } = gs({
6225
6230
  columnConfig: t,
6226
6231
  actions: n,
6227
6232
  filters: o,
@@ -6231,7 +6236,7 @@ const Uf = Ps(Wf), gs = ({
6231
6236
  hs,
6232
6237
  {
6233
6238
  mode: "client",
6234
- data: I,
6239
+ data: M,
6235
6240
  columns: T,
6236
6241
  isLoading: x,
6237
6242
  pagination: m,
@@ -6250,7 +6255,7 @@ const Uf = Ps(Wf), gs = ({
6250
6255
  ...u
6251
6256
  }
6252
6257
  );
6253
- }, Qf = ({
6258
+ }, ep = ({
6254
6259
  queryKey: e,
6255
6260
  columnConfig: t,
6256
6261
  actions: n,
@@ -6258,12 +6263,12 @@ const Uf = Ps(Wf), gs = ({
6258
6263
  prefilters: r,
6259
6264
  defaultSortBy: i,
6260
6265
  defaultSortOrder: a = "asc",
6261
- defaultPageSize: s = un[0],
6266
+ defaultPageSize: s = fn[0],
6262
6267
  persistState: c = !1,
6263
6268
  fetchServerEndpoint: l,
6264
6269
  ...f
6265
6270
  }) => {
6266
- var x, I, T;
6271
+ var x, M, T;
6267
6272
  const {
6268
6273
  pagination: u,
6269
6274
  setPagination: m,
@@ -6307,7 +6312,7 @@ const Uf = Ps(Wf), gs = ({
6307
6312
  hs,
6308
6313
  {
6309
6314
  mode: "server",
6310
- data: ((I = A.data) == null ? void 0 : I.items) ?? [],
6315
+ data: ((M = A.data) == null ? void 0 : M.items) ?? [],
6311
6316
  columns: E,
6312
6317
  isLoading: A.isLoading,
6313
6318
  isFetching: A.isFetching,
@@ -6331,21 +6336,21 @@ const Uf = Ps(Wf), gs = ({
6331
6336
  );
6332
6337
  };
6333
6338
  export {
6334
- Uf as ActionCell,
6335
- _d as ColumnConfiguration,
6336
- un as DEFAULT_PAGE_SIZES,
6339
+ Hf as ActionCell,
6340
+ Od as ColumnConfiguration,
6341
+ fn as DEFAULT_PAGE_SIZES,
6337
6342
  hs as DataTable,
6338
- Rf as PageSizeSelector,
6339
- Ef as Pagination,
6340
- kf as PrefilterTabs,
6341
- Lf as SearchBar,
6342
- $f as SingleFilterDropdown,
6343
- Jf as SnowClientDataTable,
6344
- Qf as SnowServerDataTable,
6345
- Vf as SortButton,
6346
- qf as isSnowTableSetup,
6347
- Yf as redirectToPageWithParam,
6348
- Zf as setupSnowTable,
6343
+ Af as PageSizeSelector,
6344
+ Rf as Pagination,
6345
+ Ff as PrefilterTabs,
6346
+ $f as SearchBar,
6347
+ Vf as SingleFilterDropdown,
6348
+ Qf as SnowClientDataTable,
6349
+ ep as SnowServerDataTable,
6350
+ Bf as SortButton,
6351
+ Jf as isSnowTableSetup,
6352
+ Xf as redirectToPageWithParam,
6353
+ qf as setupSnowTable,
6349
6354
  gs as useSnowColumns,
6350
6355
  or as useTableStatePersist
6351
6356
  };