@snowpact/react-tanstack-query-table 1.0.0 → 1.1.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,10 +1,10 @@
1
- import { jsxs as F, jsx as p, Fragment as Gt } from "react/jsx-runtime";
2
- import { useMutation as Ms, useQuery as nr, keepPreviousData as Ps } from "@tanstack/react-query";
1
+ import { jsxs as F, jsx as p, Fragment as Zt } from "react/jsx-runtime";
2
+ import { useMutation as Ms, useQuery as nr, keepPreviousData as Ns } from "@tanstack/react-query";
3
3
  import * as f from "react";
4
- import Ge, { useState as ue, useEffect as mt, forwardRef as or, useLayoutEffect as Ns, useRef as Pn, useMemo as Re, useCallback as Fe } from "react";
5
- import * as zt from "react-dom";
6
- import _s from "react-dom";
7
- import { useReactTable as Os, getFilteredRowModel as Ds, getPaginationRowModel as ks, getSortedRowModel as Ls, getCoreRowModel as Fs, flexRender as Eo } from "@tanstack/react-table";
4
+ import Ge, { useState as ue, useEffect as gt, useRef as Mn, useCallback as Fe, useMemo as Re, forwardRef as or, useLayoutEffect as _s } from "react";
5
+ import * as qt from "react-dom";
6
+ import Os from "react-dom";
7
+ import { useReactTable as Ds, getFilteredRowModel as ks, getPaginationRowModel as Ls, getSortedRowModel as Fs, getCoreRowModel as $s, flexRender as Eo } from "@tanstack/react-table";
8
8
  const de = ({ children: e, ...t }) => /* @__PURE__ */ p(
9
9
  "svg",
10
10
  {
@@ -20,20 +20,20 @@ const de = ({ children: e, ...t }) => /* @__PURE__ */ p(
20
20
  ...t,
21
21
  children: e
22
22
  }
23
- ), rr = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Gn = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), $s = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Vs = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Us = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), Bs = (e) => /* @__PURE__ */ F(de, { ...e, children: [
23
+ ), rr = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Gn = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), Vs = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Us = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Bs = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), Hs = (e) => /* @__PURE__ */ F(de, { ...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
- ] }), Hs = (e) => /* @__PURE__ */ F(de, { ...e, children: [
26
+ ] }), Ws = (e) => /* @__PURE__ */ F(de, { ...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
- ] }), Ws = (e) => /* @__PURE__ */ F(de, { ...e, children: [
29
+ ] }), Ks = (e) => /* @__PURE__ */ F(de, { ...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
- ] }), Ks = (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" }) }), Gs = (e) => /* @__PURE__ */ F(de, { ...e, children: [
32
+ ] }), Gs = (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" }) }), zs = (e) => /* @__PURE__ */ F(de, { ...e, children: [
33
33
  /* @__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
34
  /* @__PURE__ */ p("path", { d: "m22 22-4-4" }),
35
35
  /* @__PURE__ */ p("path", { d: "m18 22 4-4" })
36
- ] }), zs = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), js = (e) => /* @__PURE__ */ F(de, { ...e, children: [
36
+ ] }), js = (e) => /* @__PURE__ */ p(de, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Ys = (e) => /* @__PURE__ */ F(de, { ...e, children: [
37
37
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "1" }),
38
38
  /* @__PURE__ */ p("circle", { cx: "12", cy: "5", r: "1" }),
39
39
  /* @__PURE__ */ p("circle", { cx: "12", cy: "19", r: "1" })
@@ -43,21 +43,21 @@ const de = ({ children: e, ...t }) => /* @__PURE__ */ p(
43
43
  ] }), Ro = (e) => /* @__PURE__ */ F(de, { ...e, children: [
44
44
  /* @__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
45
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
46
- ] }), Ys = Gn;
46
+ ] }), Xs = Gn;
47
47
  let sr, ar;
48
- const Xs = (e, t) => {
48
+ const Zs = (e, t) => {
49
49
  sr = e, ar = t;
50
- }, Zs = () => sr, qs = () => ar;
50
+ }, qs = () => sr, Js = () => ar;
51
51
  let cr = () => ({
52
52
  confirm: async () => !0
53
53
  });
54
- const Js = (e) => {
54
+ const Qs = (e) => {
55
55
  cr = e;
56
- }, Qs = () => cr(), ea = ({ to: e, children: t, className: n, target: o, rel: r, onMouseEnter: i, onMouseLeave: a }) => /* @__PURE__ */ p("a", { href: e, className: n, target: o, rel: r, onMouseEnter: i, onMouseLeave: a, children: t });
57
- let lr = ea;
58
- const ta = (e) => {
56
+ }, ea = () => cr(), ta = ({ to: e, children: t, className: n, target: o, rel: r, onMouseEnter: i, onMouseLeave: a }) => /* @__PURE__ */ p("a", { href: e, className: n, target: o, rel: r, onMouseEnter: i, onMouseLeave: a, children: t });
57
+ let lr = ta;
58
+ const na = (e) => {
59
59
  lr = e;
60
- }, na = () => lr, oa = {
60
+ }, oa = () => lr, ra = {
61
61
  state: {
62
62
  active: "ring-2 ring-inset ring-primary/30",
63
63
  activeText: "text-primary",
@@ -104,26 +104,26 @@ const ta = (e) => {
104
104
  loadingOverlay: "bg-background/50"
105
105
  }
106
106
  };
107
- let Nn = JSON.parse(JSON.stringify(oa));
108
- const ra = (e, t) => {
107
+ let Nn = JSON.parse(JSON.stringify(ra));
108
+ const ia = (e, t) => {
109
109
  const n = JSON.parse(JSON.stringify(e));
110
110
  for (const o in t) {
111
111
  const r = t[o], i = e[o];
112
112
  typeof r == "object" && r !== null && typeof i == "object" ? n[o] = { ...i, ...r } : r !== void 0 && (n[o] = r);
113
113
  }
114
114
  return n;
115
- }, ia = (e) => {
116
- Nn = ra(Nn, e);
115
+ }, sa = (e) => {
116
+ Nn = ia(Nn, e);
117
117
  }, re = () => Nn;
118
118
  let ur = () => ({
119
119
  t: (e) => e
120
120
  });
121
- const sa = (e) => {
121
+ const aa = (e) => {
122
122
  ur = e;
123
123
  }, at = () => ur();
124
124
  let _n = !1;
125
125
  const pp = (e) => {
126
- _n || (sa(e.useTranslation), ta(e.LinkComponent), Js(e.useConfirm), e.styles && ia(e.styles), (e.onActionHover || e.onActionUnhover) && Xs(e.onActionHover, e.onActionUnhover), _n = !0);
126
+ _n || (aa(e.useTranslation), na(e.LinkComponent), Qs(e.useConfirm), e.styles && sa(e.styles), (e.onActionHover || e.onActionUnhover) && Zs(e.onActionHover, e.onActionUnhover), _n = !0);
127
127
  }, mp = () => _n;
128
128
  function X(...e) {
129
129
  const t = [], n = (o) => {
@@ -142,19 +142,108 @@ function X(...e) {
142
142
  n(o);
143
143
  return t.join(" ");
144
144
  }
145
- const fn = 768;
146
- function aa() {
145
+ const vn = 768;
146
+ function ca() {
147
147
  const [e, t] = ue(void 0);
148
- return mt(() => {
148
+ return gt(() => {
149
149
  if (typeof window > "u" || !window.matchMedia)
150
150
  return;
151
- const n = window.matchMedia(`(max-width: ${fn - 1}px)`), o = () => {
152
- t(window.innerWidth < fn);
151
+ const n = window.matchMedia(`(max-width: ${vn - 1}px)`), o = () => {
152
+ t(window.innerWidth < vn);
153
153
  };
154
- return n.addEventListener("change", o), t(window.innerWidth < fn), () => n.removeEventListener("change", o);
154
+ return n.addEventListener("change", o), t(window.innerWidth < vn), () => n.removeEventListener("change", o);
155
155
  }, []), !!e;
156
156
  }
157
- const ca = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, la = (e) => ca(e) ? String(e) : JSON.stringify(e, null, 2), ua = (e) => {
157
+ const la = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, ua = (e) => la(e) ? String(e) : JSON.stringify(e, null, 2), kt = "dt_prefilter", Lt = "dt_search", Ft = "dt_page", $t = "dt_pageSize", Vt = "dt_filters", ft = "dt_sortBy", pt = "dt_sortDesc", ze = (e) => {
158
+ if (typeof window > "u") return null;
159
+ try {
160
+ return new URL(window.location.href).searchParams.get(e);
161
+ } catch {
162
+ return null;
163
+ }
164
+ }, ne = (e, t) => {
165
+ if (typeof window > "u" || new URL(window.location.href).searchParams.get(e) === t) return;
166
+ const o = new URL(window.location.href);
167
+ t ? o.searchParams.set(e, t) : o.searchParams.delete(e), window.history.replaceState(window.history.state, "", o.toString());
168
+ }, dr = ({
169
+ enabled: e,
170
+ defaultPrefilter: t,
171
+ defaultPageSize: n,
172
+ defaultSortBy: o,
173
+ defaultSortOrder: r = "asc"
174
+ }) => {
175
+ const i = Mn(e), a = Mn(n), [s, u] = ue(() => {
176
+ if (e) {
177
+ const S = ze(kt);
178
+ if (S) return S;
179
+ }
180
+ return t;
181
+ }), l = Fe((S) => {
182
+ u(S), i.current && ne(kt, S ?? null);
183
+ }, []), [d, c] = ue(() => e ? ze(Lt) ?? "" : ""), h = Fe((S) => {
184
+ c(S), i.current && ne(Lt, S || null);
185
+ }, []), [g, w] = ue(() => {
186
+ if (e) {
187
+ const S = ze(Ft), I = ze($t);
188
+ return {
189
+ pageIndex: S ? parseInt(S, 10) - 1 : 0,
190
+ pageSize: I ? parseInt(I, 10) : n
191
+ };
192
+ }
193
+ return { pageIndex: 0, pageSize: n };
194
+ }), m = Fe((S) => {
195
+ w((I) => {
196
+ const P = typeof S == "function" ? S(I) : S;
197
+ return i.current && (I.pageIndex !== P.pageIndex || I.pageSize !== P.pageSize) && (ne(Ft, P.pageIndex > 0 ? String(P.pageIndex + 1) : null), ne(
198
+ $t,
199
+ P.pageSize !== a.current ? String(P.pageSize) : null
200
+ )), P;
201
+ });
202
+ }, []), [v, b] = ue(() => {
203
+ if (e) {
204
+ const S = ze(Vt);
205
+ if (S)
206
+ return da(S);
207
+ }
208
+ return {};
209
+ }), C = Fe((S) => {
210
+ if (b(S), i.current) {
211
+ const P = Object.keys(S).length > 0 ? fr(S) : null;
212
+ ne(Vt, P);
213
+ }
214
+ }, []), [y, x] = ue(() => {
215
+ if (e) {
216
+ const S = ze(ft), I = ze(pt);
217
+ if (S)
218
+ return [{ id: S, desc: I === "true" }];
219
+ }
220
+ return o ? [{ id: o, desc: r === "desc" }] : [];
221
+ }), R = Fe((S) => {
222
+ x((I) => {
223
+ const P = typeof S == "function" ? S(I) : S;
224
+ return i.current && (P.length > 0 ? (ne(ft, P[0].id), ne(pt, String(P[0].desc))) : (ne(ft, null), ne(pt, null))), P;
225
+ });
226
+ }, []), T = Re(() => {
227
+ const S = o ? [{ id: o, desc: r === "desc" }] : [];
228
+ return d !== "" || s !== t || Object.keys(v).length > 0 || y.length !== S.length || y.length > 0 && S.length > 0 && (y[0].id !== S[0].id || y[0].desc !== S[0].desc);
229
+ }, [d, s, t, v, y, o, r]), E = Fe(() => {
230
+ i.current && (ne(kt, null), ne(Lt, null), ne(Ft, null), ne($t, null), ne(Vt, null), ne(ft, null), ne(pt, null)), u(t), c(""), w({ pageIndex: 0, pageSize: a.current }), b({}), x(o ? [{ id: o, desc: r === "desc" }] : []);
231
+ }, [t, o, r]);
232
+ return {
233
+ activePrefilter: s,
234
+ setActivePrefilter: l,
235
+ globalFilter: d,
236
+ setGlobalFilter: h,
237
+ pagination: g,
238
+ setPagination: m,
239
+ columnFilters: v,
240
+ setColumnFilters: C,
241
+ sorting: y,
242
+ setSorting: R,
243
+ resetToDefaults: E,
244
+ hasActiveFilters: T
245
+ };
246
+ }, fr = (e) => {
158
247
  const t = [];
159
248
  for (const [n, o] of Object.entries(e)) {
160
249
  const r = o.filter((i) => i !== "");
@@ -171,6 +260,23 @@ const ca = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
171
260
  a.length > 0 && (t[r] = a);
172
261
  }
173
262
  return t;
263
+ }, hp = (e, t) => {
264
+ const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
265
+ if (t) {
266
+ if (t.prefilter && n.searchParams.set(kt, t.prefilter), t.search && n.searchParams.set(Lt, t.search), t.pagination) {
267
+ const { pageIndex: o, pageSize: r } = t.pagination;
268
+ o > 0 && n.searchParams.set(Ft, String(o + 1)), r && n.searchParams.set($t, String(r));
269
+ }
270
+ if (t.filters && Object.keys(t.filters).length > 0) {
271
+ const o = fr(t.filters);
272
+ n.searchParams.set(Vt, o);
273
+ }
274
+ if (t.sorting && t.sorting.length > 0) {
275
+ const o = t.sorting[0];
276
+ n.searchParams.set(ft, o.id), n.searchParams.set(pt, String(o.desc));
277
+ }
278
+ }
279
+ return n.pathname + n.search;
174
280
  };
175
281
  /**
176
282
  * match-sorter-utils
@@ -182,7 +288,7 @@ const ca = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
182
288
  *
183
289
  * @license MIT
184
290
  */
185
- const dr = {
291
+ const pr = {
186
292
  À: "A",
187
293
  Á: "A",
188
294
  Â: "A",
@@ -582,9 +688,9 @@ const dr = {
582
688
  x̧: "x",
583
689
  Z̧: "Z",
584
690
  z̧: "z"
585
- }, fa = Object.keys(dr).join("|"), pa = new RegExp(fa, "g");
691
+ }, fa = Object.keys(pr).join("|"), pa = new RegExp(fa, "g");
586
692
  function ma(e) {
587
- return e.replace(pa, (t) => dr[t]);
693
+ return e.replace(pa, (t) => pr[t]);
588
694
  }
589
695
  /**
590
696
  * @name match-sorter
@@ -693,13 +799,13 @@ function ya(e, t) {
693
799
  }
694
800
  return n;
695
801
  }
696
- const Io = {
802
+ const Po = {
697
803
  maxRanking: 1 / 0,
698
804
  minRanking: -1 / 0
699
805
  };
700
806
  function ba(e) {
701
- return typeof e == "function" ? Io : {
702
- ...Io,
807
+ return typeof e == "function" ? Po : {
808
+ ...Po,
703
809
  ...e
704
810
  };
705
811
  }
@@ -708,7 +814,7 @@ const Ca = (e, t, n, o) => {
708
814
  return o({
709
815
  itemRank: r
710
816
  }), r.passed;
711
- }, fr = "datatable-config-", Mo = (e, t) => {
817
+ }, mr = "datatable-config-", Io = (e, t) => {
712
818
  try {
713
819
  const n = `datatable-config-${e}`, o = JSON.stringify(t);
714
820
  document.cookie = `${n}=${encodeURIComponent(o)}; path=/`;
@@ -718,7 +824,7 @@ const Ca = (e, t, n, o) => {
718
824
  }, xa = (e) => {
719
825
  var t;
720
826
  try {
721
- const n = `${fr}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
827
+ const n = `${mr}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
722
828
  if (o) {
723
829
  const r = decodeURIComponent(o);
724
830
  return JSON.parse(r);
@@ -729,7 +835,7 @@ const Ca = (e, t, n, o) => {
729
835
  return null;
730
836
  }, Sa = (e) => {
731
837
  try {
732
- const t = `${fr}${e}`;
838
+ const t = `${mr}${e}`;
733
839
  document.cookie = `${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
734
840
  } catch (t) {
735
841
  console.warn("Failed to delete column configuration:", t);
@@ -821,35 +927,35 @@ const Ca = (e, t, n, o) => {
821
927
  }
822
928
  );
823
929
  Te.displayName = "Button";
824
- function P(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
930
+ function M(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
825
931
  return function(r) {
826
932
  if (e == null || e(r), n === !1 || !r.defaultPrevented)
827
933
  return t == null ? void 0 : t(r);
828
934
  };
829
935
  }
830
- function Po(e, t) {
936
+ function Mo(e, t) {
831
937
  if (typeof e == "function")
832
938
  return e(t);
833
939
  e != null && (e.current = t);
834
940
  }
835
- function jt(...e) {
941
+ function Jt(...e) {
836
942
  return (t) => {
837
943
  let n = !1;
838
944
  const o = e.map((r) => {
839
- const i = Po(r, t);
945
+ const i = Mo(r, t);
840
946
  return !n && typeof i == "function" && (n = !0), i;
841
947
  });
842
948
  if (n)
843
949
  return () => {
844
950
  for (let r = 0; r < o.length; r++) {
845
951
  const i = o[r];
846
- typeof i == "function" ? i() : Po(e[r], null);
952
+ typeof i == "function" ? i() : Mo(e[r], null);
847
953
  }
848
954
  };
849
955
  };
850
956
  }
851
957
  function Z(...e) {
852
- return f.useCallback(jt(...e), e);
958
+ return f.useCallback(Jt(...e), e);
853
959
  }
854
960
  function qe(e, t = []) {
855
961
  let n = [];
@@ -903,14 +1009,14 @@ function Ta(...e) {
903
1009
  }
904
1010
  var oe = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
905
1011
  }, Aa = f[" useInsertionEffect ".trim().toString()] || oe;
906
- function ht({
1012
+ function vt({
907
1013
  prop: e,
908
1014
  defaultProp: t,
909
1015
  onChange: n = () => {
910
1016
  },
911
1017
  caller: o
912
1018
  }) {
913
- const [r, i, a] = Ia({
1019
+ const [r, i, a] = Pa({
914
1020
  defaultProp: t,
915
1021
  onChange: n
916
1022
  }), s = e !== void 0, u = s ? e : r;
@@ -927,7 +1033,7 @@ function ht({
927
1033
  (d) => {
928
1034
  var c;
929
1035
  if (s) {
930
- const h = Ma(d) ? d(e) : d;
1036
+ const h = Ia(d) ? d(e) : d;
931
1037
  h !== e && ((c = a.current) == null || c.call(a, h));
932
1038
  } else
933
1039
  i(d);
@@ -936,7 +1042,7 @@ function ht({
936
1042
  );
937
1043
  return [u, l];
938
1044
  }
939
- function Ia({
1045
+ function Pa({
940
1046
  defaultProp: e,
941
1047
  onChange: t
942
1048
  }) {
@@ -948,12 +1054,12 @@ function Ia({
948
1054
  r.current !== n && ((a = i.current) == null || a.call(i, n), r.current = n);
949
1055
  }, [n, r]), [n, o, i];
950
1056
  }
951
- function Ma(e) {
1057
+ function Ia(e) {
952
1058
  return typeof e == "function";
953
1059
  }
954
1060
  // @__NO_SIDE_EFFECTS__
955
- function gt(e) {
956
- const t = /* @__PURE__ */ Pa(e), n = f.forwardRef((o, r) => {
1061
+ function wt(e) {
1062
+ const t = /* @__PURE__ */ Ma(e), n = f.forwardRef((o, r) => {
957
1063
  const { children: i, ...a } = o, s = f.Children.toArray(i), u = s.find(_a);
958
1064
  if (u) {
959
1065
  const l = u.props.children, d = s.map((c) => c === u ? f.Children.count(l) > 1 ? f.Children.only(null) : f.isValidElement(l) ? l.props.children : null : c);
@@ -964,12 +1070,12 @@ function gt(e) {
964
1070
  return n.displayName = `${e}.Slot`, n;
965
1071
  }
966
1072
  // @__NO_SIDE_EFFECTS__
967
- function Pa(e) {
1073
+ function Ma(e) {
968
1074
  const t = f.forwardRef((n, o) => {
969
1075
  const { children: r, ...i } = n;
970
1076
  if (f.isValidElement(r)) {
971
1077
  const a = Da(r), s = Oa(i, r.props);
972
- return r.type !== f.Fragment && (s.ref = o ? jt(o, a) : a), f.cloneElement(r, s);
1078
+ return r.type !== f.Fragment && (s.ref = o ? Jt(o, a) : a), f.cloneElement(r, s);
973
1079
  }
974
1080
  return f.Children.count(r) > 1 ? f.Children.only(null) : null;
975
1081
  });
@@ -1014,14 +1120,14 @@ var ka = [
1014
1120
  "svg",
1015
1121
  "ul"
1016
1122
  ], H = ka.reduce((e, t) => {
1017
- const n = /* @__PURE__ */ gt(`Primitive.${t}`), o = f.forwardRef((r, i) => {
1123
+ const n = /* @__PURE__ */ wt(`Primitive.${t}`), o = f.forwardRef((r, i) => {
1018
1124
  const { asChild: a, ...s } = r, u = a ? n : t;
1019
1125
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(u, { ...s, ref: i });
1020
1126
  });
1021
1127
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1022
1128
  }, {});
1023
- function pr(e, t) {
1024
- e && zt.flushSync(() => e.dispatchEvent(t));
1129
+ function hr(e, t) {
1130
+ e && qt.flushSync(() => e.dispatchEvent(t));
1025
1131
  }
1026
1132
  function zn(e) {
1027
1133
  const t = e + "CollectionProvider", [n, o] = qe(t), [r, i] = n(
@@ -1032,14 +1138,14 @@ function zn(e) {
1032
1138
  return /* @__PURE__ */ p(r, { scope: v, itemMap: y, collectionRef: C, children: b });
1033
1139
  };
1034
1140
  a.displayName = t;
1035
- const s = e + "CollectionSlot", u = /* @__PURE__ */ gt(s), l = Ge.forwardRef(
1141
+ const s = e + "CollectionSlot", u = /* @__PURE__ */ wt(s), l = Ge.forwardRef(
1036
1142
  (m, v) => {
1037
1143
  const { scope: b, children: C } = m, y = i(s, b), x = Z(v, y.collectionRef);
1038
1144
  return /* @__PURE__ */ p(u, { ref: x, children: C });
1039
1145
  }
1040
1146
  );
1041
1147
  l.displayName = s;
1042
- const d = e + "CollectionItemSlot", c = "data-radix-collection-item", h = /* @__PURE__ */ gt(d), g = Ge.forwardRef(
1148
+ const d = e + "CollectionItemSlot", c = "data-radix-collection-item", h = /* @__PURE__ */ wt(d), g = Ge.forwardRef(
1043
1149
  (m, v) => {
1044
1150
  const { scope: b, children: C, ...y } = m, x = Ge.useRef(null), R = Z(v, x), T = i(d, b);
1045
1151
  return Ge.useEffect(() => (T.itemMap.set(x, { ref: x, ...y }), () => void T.itemMap.delete(x))), /* @__PURE__ */ p(h, { [c]: "", ref: R, children: C });
@@ -1064,11 +1170,11 @@ function zn(e) {
1064
1170
  ];
1065
1171
  }
1066
1172
  var La = f.createContext(void 0);
1067
- function Yt(e) {
1173
+ function Qt(e) {
1068
1174
  const t = f.useContext(La);
1069
1175
  return e || t || "ltr";
1070
1176
  }
1071
- function Me(e) {
1177
+ function Ie(e) {
1072
1178
  const t = f.useRef(e);
1073
1179
  return f.useEffect(() => {
1074
1180
  t.current = e;
@@ -1078,7 +1184,7 @@ function Me(e) {
1078
1184
  }, []);
1079
1185
  }
1080
1186
  function Fa(e, t = globalThis == null ? void 0 : globalThis.document) {
1081
- const n = Me(e);
1187
+ const n = Ie(e);
1082
1188
  f.useEffect(() => {
1083
1189
  const o = (r) => {
1084
1190
  r.key === "Escape" && n(r);
@@ -1086,7 +1192,7 @@ function Fa(e, t = globalThis == null ? void 0 : globalThis.document) {
1086
1192
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
1087
1193
  }, [n, t]);
1088
1194
  }
1089
- var $a = "DismissableLayer", On = "dismissableLayer.update", Va = "dismissableLayer.pointerDownOutside", Ua = "dismissableLayer.focusOutside", No, mr = f.createContext({
1195
+ var $a = "DismissableLayer", On = "dismissableLayer.update", Va = "dismissableLayer.pointerDownOutside", Ua = "dismissableLayer.focusOutside", No, gr = f.createContext({
1090
1196
  layers: /* @__PURE__ */ new Set(),
1091
1197
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1092
1198
  branches: /* @__PURE__ */ new Set()
@@ -1100,12 +1206,12 @@ var $a = "DismissableLayer", On = "dismissableLayer.update", Va = "dismissableLa
1100
1206
  onInteractOutside: a,
1101
1207
  onDismiss: s,
1102
1208
  ...u
1103
- } = e, l = f.useContext(mr), [d, c] = f.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), w = Z(t, (E) => c(E)), m = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(v), C = d ? m.indexOf(d) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, x = C >= b, R = Wa((E) => {
1104
- const S = E.target, M = [...l.branches].some((I) => I.contains(S));
1105
- !x || M || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
1209
+ } = e, l = f.useContext(gr), [d, c] = f.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), w = Z(t, (E) => c(E)), m = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(v), C = d ? m.indexOf(d) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, x = C >= b, R = Wa((E) => {
1210
+ const S = E.target, I = [...l.branches].some((P) => P.contains(S));
1211
+ !x || I || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
1106
1212
  }, h), T = Ka((E) => {
1107
1213
  const S = E.target;
1108
- [...l.branches].some((I) => I.contains(S)) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
1214
+ [...l.branches].some((P) => P.contains(S)) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
1109
1215
  }, h);
1110
1216
  return Fa((E) => {
1111
1217
  C === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
@@ -1128,9 +1234,9 @@ var $a = "DismissableLayer", On = "dismissableLayer.update", Va = "dismissableLa
1128
1234
  pointerEvents: y ? x ? "auto" : "none" : void 0,
1129
1235
  ...e.style
1130
1236
  },
1131
- onFocusCapture: P(e.onFocusCapture, T.onFocusCapture),
1132
- onBlurCapture: P(e.onBlurCapture, T.onBlurCapture),
1133
- onPointerDownCapture: P(
1237
+ onFocusCapture: M(e.onFocusCapture, T.onFocusCapture),
1238
+ onBlurCapture: M(e.onBlurCapture, T.onBlurCapture),
1239
+ onPointerDownCapture: M(
1134
1240
  e.onPointerDownCapture,
1135
1241
  R.onPointerDownCapture
1136
1242
  )
@@ -1140,7 +1246,7 @@ var $a = "DismissableLayer", On = "dismissableLayer.update", Va = "dismissableLa
1140
1246
  );
1141
1247
  jn.displayName = $a;
1142
1248
  var Ba = "DismissableLayerBranch", Ha = f.forwardRef((e, t) => {
1143
- const n = f.useContext(mr), o = f.useRef(null), r = Z(t, o);
1249
+ const n = f.useContext(gr), o = f.useRef(null), r = Z(t, o);
1144
1250
  return f.useEffect(() => {
1145
1251
  const i = o.current;
1146
1252
  if (i)
@@ -1151,13 +1257,13 @@ var Ba = "DismissableLayerBranch", Ha = f.forwardRef((e, t) => {
1151
1257
  });
1152
1258
  Ha.displayName = Ba;
1153
1259
  function Wa(e, t = globalThis == null ? void 0 : globalThis.document) {
1154
- const n = Me(e), o = f.useRef(!1), r = f.useRef(() => {
1260
+ const n = Ie(e), o = f.useRef(!1), r = f.useRef(() => {
1155
1261
  });
1156
1262
  return f.useEffect(() => {
1157
1263
  const i = (s) => {
1158
1264
  if (s.target && !o.current) {
1159
1265
  let u = function() {
1160
- hr(
1266
+ vr(
1161
1267
  Va,
1162
1268
  n,
1163
1269
  l,
@@ -1181,10 +1287,10 @@ function Wa(e, t = globalThis == null ? void 0 : globalThis.document) {
1181
1287
  };
1182
1288
  }
1183
1289
  function Ka(e, t = globalThis == null ? void 0 : globalThis.document) {
1184
- const n = Me(e), o = f.useRef(!1);
1290
+ const n = Ie(e), o = f.useRef(!1);
1185
1291
  return f.useEffect(() => {
1186
1292
  const r = (i) => {
1187
- i.target && !o.current && hr(Ua, n, { originalEvent: i }, {
1293
+ i.target && !o.current && vr(Ua, n, { originalEvent: i }, {
1188
1294
  discrete: !1
1189
1295
  });
1190
1296
  };
@@ -1198,16 +1304,16 @@ function _o() {
1198
1304
  const e = new CustomEvent(On);
1199
1305
  document.dispatchEvent(e);
1200
1306
  }
1201
- function hr(e, t, n, { discrete: o }) {
1307
+ function vr(e, t, n, { discrete: o }) {
1202
1308
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1203
- t && r.addEventListener(e, t, { once: !0 }), o ? pr(r, i) : r.dispatchEvent(i);
1309
+ t && r.addEventListener(e, t, { once: !0 }), o ? hr(r, i) : r.dispatchEvent(i);
1204
1310
  }
1205
- var pn = 0;
1206
- function gr() {
1311
+ var wn = 0;
1312
+ function wr() {
1207
1313
  f.useEffect(() => {
1208
1314
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1209
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Oo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Oo()), pn++, () => {
1210
- pn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), pn--;
1315
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Oo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Oo()), wn++, () => {
1316
+ wn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), wn--;
1211
1317
  };
1212
1318
  }, []);
1213
1319
  }
@@ -1215,14 +1321,14 @@ function Oo() {
1215
1321
  const e = document.createElement("span");
1216
1322
  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;
1217
1323
  }
1218
- var mn = "focusScope.autoFocusOnMount", hn = "focusScope.autoFocusOnUnmount", Do = { bubbles: !1, cancelable: !0 }, Ga = "FocusScope", Yn = f.forwardRef((e, t) => {
1324
+ var yn = "focusScope.autoFocusOnMount", bn = "focusScope.autoFocusOnUnmount", Do = { bubbles: !1, cancelable: !0 }, Ga = "FocusScope", Yn = f.forwardRef((e, t) => {
1219
1325
  const {
1220
1326
  loop: n = !1,
1221
1327
  trapped: o = !1,
1222
1328
  onMountAutoFocus: r,
1223
1329
  onUnmountAutoFocus: i,
1224
1330
  ...a
1225
- } = e, [s, u] = f.useState(null), l = Me(r), d = Me(i), c = f.useRef(null), h = Z(t, (m) => u(m)), g = f.useRef({
1331
+ } = e, [s, u] = f.useState(null), l = Ie(r), d = Ie(i), c = f.useRef(null), h = Z(t, (m) => u(m)), g = f.useRef({
1226
1332
  paused: !1,
1227
1333
  pause() {
1228
1334
  this.paused = !0;
@@ -1257,13 +1363,13 @@ var mn = "focusScope.autoFocusOnMount", hn = "focusScope.autoFocusOnUnmount", Do
1257
1363
  Lo.add(g);
1258
1364
  const m = document.activeElement;
1259
1365
  if (!s.contains(m)) {
1260
- const b = new CustomEvent(mn, Do);
1261
- s.addEventListener(mn, l), s.dispatchEvent(b), b.defaultPrevented || (za(qa(vr(s)), { select: !0 }), document.activeElement === m && Le(s));
1366
+ const b = new CustomEvent(yn, Do);
1367
+ s.addEventListener(yn, l), s.dispatchEvent(b), b.defaultPrevented || (za(qa(yr(s)), { select: !0 }), document.activeElement === m && Le(s));
1262
1368
  }
1263
1369
  return () => {
1264
- s.removeEventListener(mn, l), setTimeout(() => {
1265
- const b = new CustomEvent(hn, Do);
1266
- s.addEventListener(hn, d), s.dispatchEvent(b), b.defaultPrevented || Le(m ?? document.body, { select: !0 }), s.removeEventListener(hn, d), Lo.remove(g);
1370
+ s.removeEventListener(yn, l), setTimeout(() => {
1371
+ const b = new CustomEvent(bn, Do);
1372
+ s.addEventListener(bn, d), s.dispatchEvent(b), b.defaultPrevented || Le(m ?? document.body, { select: !0 }), s.removeEventListener(bn, d), Lo.remove(g);
1267
1373
  }, 0);
1268
1374
  };
1269
1375
  }
@@ -1288,10 +1394,10 @@ function za(e, { select: t = !1 } = {}) {
1288
1394
  if (Le(o, { select: t }), document.activeElement !== n) return;
1289
1395
  }
1290
1396
  function ja(e) {
1291
- const t = vr(e), n = ko(t, e), o = ko(t.reverse(), e);
1397
+ const t = yr(e), n = ko(t, e), o = ko(t.reverse(), e);
1292
1398
  return [n, o];
1293
1399
  }
1294
- function vr(e) {
1400
+ function yr(e) {
1295
1401
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1296
1402
  acceptNode: (o) => {
1297
1403
  const r = o.tagName === "INPUT" && o.type === "hidden";
@@ -1352,7 +1458,7 @@ function je(e) {
1352
1458
  n((o) => o ?? String(Qa++));
1353
1459
  }, [e]), e || (t ? `radix-${t}` : "");
1354
1460
  }
1355
- const ec = ["top", "right", "bottom", "left"], $e = Math.min, fe = Math.max, $t = Math.round, At = Math.floor, Ie = (e) => ({
1461
+ const ec = ["top", "right", "bottom", "left"], $e = Math.min, fe = Math.max, Wt = Math.round, It = Math.floor, Pe = (e) => ({
1356
1462
  x: e,
1357
1463
  y: e
1358
1464
  }), tc = {
@@ -1393,10 +1499,10 @@ function rc(e, t, n) {
1393
1499
  n === void 0 && (n = !1);
1394
1500
  const o = ct(e), r = qn(e), i = Zn(r);
1395
1501
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
1396
- return t.reference[i] > t.floating[i] && (a = Vt(a)), [a, Vt(a)];
1502
+ return t.reference[i] > t.floating[i] && (a = Kt(a)), [a, Kt(a)];
1397
1503
  }
1398
1504
  function ic(e) {
1399
- const t = Vt(e);
1505
+ const t = Kt(e);
1400
1506
  return [kn(e), t, kn(t)];
1401
1507
  }
1402
1508
  function kn(e) {
@@ -1420,7 +1526,7 @@ function lc(e, t, n, o) {
1420
1526
  let i = cc(De(e), n === "start", o);
1421
1527
  return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(kn)))), i;
1422
1528
  }
1423
- function Vt(e) {
1529
+ function Kt(e) {
1424
1530
  return e.replace(/left|right|bottom|top/g, (t) => tc[t]);
1425
1531
  }
1426
1532
  function uc(e) {
@@ -1432,7 +1538,7 @@ function uc(e) {
1432
1538
  ...e
1433
1539
  };
1434
1540
  }
1435
- function wr(e) {
1541
+ function br(e) {
1436
1542
  return typeof e != "number" ? uc(e) : {
1437
1543
  top: e,
1438
1544
  right: e,
@@ -1440,7 +1546,7 @@ function wr(e) {
1440
1546
  left: e
1441
1547
  };
1442
1548
  }
1443
- function Ut(e) {
1549
+ function Gt(e) {
1444
1550
  const {
1445
1551
  x: t,
1446
1552
  y: n,
@@ -1567,7 +1673,7 @@ const dc = async (e, t, n) => {
1567
1673
  middlewareData: g
1568
1674
  };
1569
1675
  };
1570
- async function vt(e, t) {
1676
+ async function yt(e, t) {
1571
1677
  var n;
1572
1678
  t === void 0 && (t = {});
1573
1679
  const {
@@ -1583,7 +1689,7 @@ async function vt(e, t) {
1583
1689
  elementContext: c = "floating",
1584
1690
  altBoundary: h = !1,
1585
1691
  padding: g = 0
1586
- } = Oe(t, e), w = wr(g), v = s[h ? c === "floating" ? "reference" : "floating" : c], b = Ut(await i.getClippingRect({
1692
+ } = Oe(t, e), w = br(g), v = s[h ? c === "floating" ? "reference" : "floating" : c], b = Gt(await i.getClippingRect({
1587
1693
  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)),
1588
1694
  boundary: l,
1589
1695
  rootBoundary: d,
@@ -1599,7 +1705,7 @@ async function vt(e, t) {
1599
1705
  } : {
1600
1706
  x: 1,
1601
1707
  y: 1
1602
- }, R = Ut(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1708
+ }, R = Gt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1603
1709
  elements: s,
1604
1710
  rect: C,
1605
1711
  offsetParent: y,
@@ -1630,13 +1736,13 @@ const fc = (e) => ({
1630
1736
  } = Oe(e, t) || {};
1631
1737
  if (l == null)
1632
1738
  return {};
1633
- const c = wr(d), h = {
1739
+ const c = br(d), h = {
1634
1740
  x: n,
1635
1741
  y: o
1636
1742
  }, g = qn(r), w = Zn(g), m = await a.getDimensions(l), v = g === "y", b = v ? "top" : "left", C = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", x = i.reference[w] + i.reference[g] - h[g] - i.floating[w], R = h[g] - i.reference[g], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1637
1743
  let E = T ? T[y] : 0;
1638
1744
  (!E || !await (a.isElement == null ? void 0 : a.isElement(T))) && (E = s.floating[y] || i.floating[w]);
1639
- const S = x / 2 - R / 2, M = E / 2 - m[w] / 2 - 1, I = $e(c[b], M), L = $e(c[C], M), D = I, $ = E - m[w] - L, V = E / 2 - m[w] / 2 + S, z = Dn(D, V, $), O = !u.arrow && ct(r) != null && V !== z && i.reference[w] / 2 - (V < D ? I : L) - m[w] / 2 < 0, k = O ? V < D ? V - D : V - $ : 0;
1745
+ const S = x / 2 - R / 2, I = E / 2 - m[w] / 2 - 1, P = $e(c[b], I), L = $e(c[C], I), D = P, $ = E - m[w] - L, V = E / 2 - m[w] / 2 + S, z = Dn(D, V, $), O = !u.arrow && ct(r) != null && V !== z && i.reference[w] / 2 - (V < D ? P : L) - m[w] / 2 < 0, k = O ? V < D ? V - D : V - $ : 0;
1640
1746
  return {
1641
1747
  [g]: h[g] + k,
1642
1748
  data: {
@@ -1673,38 +1779,38 @@ const fc = (e) => ({
1673
1779
  } = Oe(e, t);
1674
1780
  if ((n = i.arrow) != null && n.alignmentOffset)
1675
1781
  return {};
1676
- const b = De(r), C = Ae(s), y = De(s) === s, x = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), R = h || (y || !m ? [Vt(s)] : ic(s)), T = w !== "none";
1782
+ const b = De(r), C = Ae(s), y = De(s) === s, x = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), R = h || (y || !m ? [Kt(s)] : ic(s)), T = w !== "none";
1677
1783
  !h && T && R.push(...lc(s, m, w, x));
1678
- const E = [s, ...R], S = await vt(t, v), M = [];
1679
- let I = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1680
- if (d && M.push(S[b]), c) {
1784
+ const E = [s, ...R], S = await yt(t, v), I = [];
1785
+ let P = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1786
+ if (d && I.push(S[b]), c) {
1681
1787
  const V = rc(r, a, x);
1682
- M.push(S[V[0]], S[V[1]]);
1788
+ I.push(S[V[0]], S[V[1]]);
1683
1789
  }
1684
- if (I = [...I, {
1790
+ if (P = [...P, {
1685
1791
  placement: r,
1686
- overflows: M
1687
- }], !M.every((V) => V <= 0)) {
1792
+ overflows: I
1793
+ }], !I.every((V) => V <= 0)) {
1688
1794
  var L, D;
1689
1795
  const V = (((L = i.flip) == null ? void 0 : L.index) || 0) + 1, z = E[V];
1690
1796
  if (z && (!(c === "alignment" ? C !== Ae(z) : !1) || // We leave the current main axis only if every placement on that axis
1691
1797
  // overflows the main axis.
1692
- I.every((N) => Ae(N.placement) === C ? N.overflows[0] > 0 : !0)))
1798
+ P.every((N) => Ae(N.placement) === C ? N.overflows[0] > 0 : !0)))
1693
1799
  return {
1694
1800
  data: {
1695
1801
  index: V,
1696
- overflows: I
1802
+ overflows: P
1697
1803
  },
1698
1804
  reset: {
1699
1805
  placement: z
1700
1806
  }
1701
1807
  };
1702
- let O = (D = I.filter((k) => k.overflows[0] <= 0).sort((k, N) => k.overflows[1] - N.overflows[1])[0]) == null ? void 0 : D.placement;
1808
+ let O = (D = P.filter((k) => k.overflows[0] <= 0).sort((k, N) => k.overflows[1] - N.overflows[1])[0]) == null ? void 0 : D.placement;
1703
1809
  if (!O)
1704
1810
  switch (g) {
1705
1811
  case "bestFit": {
1706
1812
  var $;
1707
- const k = ($ = I.filter((N) => {
1813
+ const k = ($ = P.filter((N) => {
1708
1814
  if (T) {
1709
1815
  const A = Ae(N.placement);
1710
1816
  return A === C || // Create a bias to the `y` side axis due to horizontal
@@ -1755,7 +1861,7 @@ const mc = function(e) {
1755
1861
  } = Oe(e, t);
1756
1862
  switch (o) {
1757
1863
  case "referenceHidden": {
1758
- const i = await vt(t, {
1864
+ const i = await yt(t, {
1759
1865
  ...r,
1760
1866
  elementContext: "reference"
1761
1867
  }), a = Bo(i, n.reference);
@@ -1767,7 +1873,7 @@ const mc = function(e) {
1767
1873
  };
1768
1874
  }
1769
1875
  case "escaped": {
1770
- const i = await vt(t, {
1876
+ const i = await yt(t, {
1771
1877
  ...r,
1772
1878
  altBoundary: !0
1773
1879
  }), a = Bo(i, n.floating);
@@ -1783,13 +1889,13 @@ const mc = function(e) {
1783
1889
  }
1784
1890
  }
1785
1891
  };
1786
- }, yr = /* @__PURE__ */ new Set(["left", "top"]);
1892
+ }, Cr = /* @__PURE__ */ new Set(["left", "top"]);
1787
1893
  async function hc(e, t) {
1788
1894
  const {
1789
1895
  placement: n,
1790
1896
  platform: o,
1791
1897
  elements: r
1792
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = De(n), s = ct(n), u = Ae(n) === "y", l = yr.has(a) ? -1 : 1, d = i && u ? -1 : 1, c = Oe(t, e);
1898
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = De(n), s = ct(n), u = Ae(n) === "y", l = Cr.has(a) ? -1 : 1, d = i && u ? -1 : 1, c = Oe(t, e);
1793
1899
  let {
1794
1900
  mainAxis: h,
1795
1901
  crossAxis: g,
@@ -1861,7 +1967,7 @@ const gc = function(e) {
1861
1967
  } = Oe(e, t), l = {
1862
1968
  x: n,
1863
1969
  y: o
1864
- }, d = await vt(t, u), c = Ae(De(r)), h = Xn(c);
1970
+ }, d = await yt(t, u), c = Ae(De(r)), h = Xn(c);
1865
1971
  let g = l[h], w = l[c];
1866
1972
  if (i) {
1867
1973
  const v = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", C = g + d[v], y = g - d[b];
@@ -1922,7 +2028,7 @@ const gc = function(e) {
1922
2028
  }
1923
2029
  if (l) {
1924
2030
  var b, C;
1925
- const y = h === "y" ? "width" : "height", x = yr.has(De(r)), R = i.reference[c] - i.floating[y] + (x && ((b = a.offset) == null ? void 0 : b[c]) || 0) + (x ? 0 : v.crossAxis), T = i.reference[c] + i.reference[y] + (x ? 0 : ((C = a.offset) == null ? void 0 : C[c]) || 0) - (x ? v.crossAxis : 0);
2031
+ const y = h === "y" ? "width" : "height", x = Cr.has(De(r)), R = i.reference[c] - i.floating[y] + (x && ((b = a.offset) == null ? void 0 : b[c]) || 0) + (x ? 0 : v.crossAxis), T = i.reference[c] + i.reference[y] + (x ? 0 : ((C = a.offset) == null ? void 0 : C[c]) || 0) - (x ? v.crossAxis : 0);
1926
2032
  w < R ? w = R : w > T && (w = T);
1927
2033
  }
1928
2034
  return {
@@ -1946,7 +2052,7 @@ const gc = function(e) {
1946
2052
  apply: u = () => {
1947
2053
  },
1948
2054
  ...l
1949
- } = Oe(e, t), d = await vt(t, l), c = De(r), h = ct(r), g = Ae(r) === "y", {
2055
+ } = Oe(e, t), d = await yt(t, l), c = De(r), h = ct(r), g = Ae(r) === "y", {
1950
2056
  width: w,
1951
2057
  height: m
1952
2058
  } = i.floating;
@@ -1955,16 +2061,16 @@ const gc = function(e) {
1955
2061
  const C = m - d.top - d.bottom, y = w - d.left - d.right, x = $e(m - d[v], C), R = $e(w - d[b], y), T = !t.middlewareData.shift;
1956
2062
  let E = x, S = R;
1957
2063
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = y), (o = t.middlewareData.shift) != null && o.enabled.y && (E = C), T && !h) {
1958
- const I = fe(d.left, 0), L = fe(d.right, 0), D = fe(d.top, 0), $ = fe(d.bottom, 0);
1959
- g ? S = w - 2 * (I !== 0 || L !== 0 ? I + L : fe(d.left, d.right)) : E = m - 2 * (D !== 0 || $ !== 0 ? D + $ : fe(d.top, d.bottom));
2064
+ const P = fe(d.left, 0), L = fe(d.right, 0), D = fe(d.top, 0), $ = fe(d.bottom, 0);
2065
+ g ? S = w - 2 * (P !== 0 || L !== 0 ? P + L : fe(d.left, d.right)) : E = m - 2 * (D !== 0 || $ !== 0 ? D + $ : fe(d.top, d.bottom));
1960
2066
  }
1961
2067
  await u({
1962
2068
  ...t,
1963
2069
  availableWidth: S,
1964
2070
  availableHeight: E
1965
2071
  });
1966
- const M = await a.getDimensions(s.floating);
1967
- return w !== M.width || m !== M.height ? {
2072
+ const I = await a.getDimensions(s.floating);
2073
+ return w !== I.width || m !== I.height ? {
1968
2074
  reset: {
1969
2075
  rects: !0
1970
2076
  }
@@ -1972,11 +2078,11 @@ const gc = function(e) {
1972
2078
  }
1973
2079
  };
1974
2080
  };
1975
- function Xt() {
2081
+ function en() {
1976
2082
  return typeof window < "u";
1977
2083
  }
1978
2084
  function lt(e) {
1979
- return br(e) ? (e.nodeName || "").toLowerCase() : "#document";
2085
+ return xr(e) ? (e.nodeName || "").toLowerCase() : "#document";
1980
2086
  }
1981
2087
  function pe(e) {
1982
2088
  var t;
@@ -1984,22 +2090,22 @@ function pe(e) {
1984
2090
  }
1985
2091
  function Ne(e) {
1986
2092
  var t;
1987
- return (t = (br(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2093
+ return (t = (xr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1988
2094
  }
1989
- function br(e) {
1990
- return Xt() ? e instanceof Node || e instanceof pe(e).Node : !1;
2095
+ function xr(e) {
2096
+ return en() ? e instanceof Node || e instanceof pe(e).Node : !1;
1991
2097
  }
1992
2098
  function Ce(e) {
1993
- return Xt() ? e instanceof Element || e instanceof pe(e).Element : !1;
2099
+ return en() ? e instanceof Element || e instanceof pe(e).Element : !1;
1994
2100
  }
1995
- function Pe(e) {
1996
- return Xt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
2101
+ function Me(e) {
2102
+ return en() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
1997
2103
  }
1998
2104
  function Wo(e) {
1999
- return !Xt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
2105
+ return !en() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
2000
2106
  }
2001
2107
  const bc = /* @__PURE__ */ new Set(["inline", "contents"]);
2002
- function Ct(e) {
2108
+ function St(e) {
2003
2109
  const {
2004
2110
  overflow: t,
2005
2111
  overflowX: n,
@@ -2013,7 +2119,7 @@ function xc(e) {
2013
2119
  return Cc.has(lt(e));
2014
2120
  }
2015
2121
  const Sc = [":popover-open", ":modal"];
2016
- function Zt(e) {
2122
+ function tn(e) {
2017
2123
  return Sc.some((t) => {
2018
2124
  try {
2019
2125
  return e.matches(t);
@@ -2029,10 +2135,10 @@ function Jn(e) {
2029
2135
  }
2030
2136
  function Ac(e) {
2031
2137
  let t = Ve(e);
2032
- for (; Pe(t) && !st(t); ) {
2138
+ for (; Me(t) && !st(t); ) {
2033
2139
  if (Jn(t))
2034
2140
  return t;
2035
- if (Zt(t))
2141
+ if (tn(t))
2036
2142
  return null;
2037
2143
  t = Ve(t);
2038
2144
  }
@@ -2041,14 +2147,14 @@ function Ac(e) {
2041
2147
  function Qn() {
2042
2148
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2043
2149
  }
2044
- const Ic = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2150
+ const Pc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2045
2151
  function st(e) {
2046
- return Ic.has(lt(e));
2152
+ return Pc.has(lt(e));
2047
2153
  }
2048
2154
  function xe(e) {
2049
2155
  return pe(e).getComputedStyle(e);
2050
2156
  }
2051
- function qt(e) {
2157
+ function nn(e) {
2052
2158
  return Ce(e) ? {
2053
2159
  scrollLeft: e.scrollLeft,
2054
2160
  scrollTop: e.scrollTop
@@ -2069,27 +2175,27 @@ function Ve(e) {
2069
2175
  );
2070
2176
  return Wo(t) ? t.host : t;
2071
2177
  }
2072
- function Cr(e) {
2178
+ function Sr(e) {
2073
2179
  const t = Ve(e);
2074
- return st(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Pe(t) && Ct(t) ? t : Cr(t);
2180
+ return st(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && St(t) ? t : Sr(t);
2075
2181
  }
2076
- function wt(e, t, n) {
2182
+ function bt(e, t, n) {
2077
2183
  var o;
2078
2184
  t === void 0 && (t = []), n === void 0 && (n = !0);
2079
- const r = Cr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
2185
+ const r = Sr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
2080
2186
  if (i) {
2081
2187
  const s = Ln(a);
2082
- return t.concat(a, a.visualViewport || [], Ct(r) ? r : [], s && n ? wt(s) : []);
2188
+ return t.concat(a, a.visualViewport || [], St(r) ? r : [], s && n ? bt(s) : []);
2083
2189
  }
2084
- return t.concat(r, wt(r, [], n));
2190
+ return t.concat(r, bt(r, [], n));
2085
2191
  }
2086
2192
  function Ln(e) {
2087
2193
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2088
2194
  }
2089
- function xr(e) {
2195
+ function Er(e) {
2090
2196
  const t = xe(e);
2091
2197
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
2092
- const r = Pe(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = $t(n) !== i || $t(o) !== a;
2198
+ const r = Me(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Wt(n) !== i || Wt(o) !== a;
2093
2199
  return s && (n = i, o = a), {
2094
2200
  width: n,
2095
2201
  height: o,
@@ -2101,36 +2207,36 @@ function eo(e) {
2101
2207
  }
2102
2208
  function rt(e) {
2103
2209
  const t = eo(e);
2104
- if (!Pe(t))
2105
- return Ie(1);
2210
+ if (!Me(t))
2211
+ return Pe(1);
2106
2212
  const n = t.getBoundingClientRect(), {
2107
2213
  width: o,
2108
2214
  height: r,
2109
2215
  $: i
2110
- } = xr(t);
2111
- let a = (i ? $t(n.width) : n.width) / o, s = (i ? $t(n.height) : n.height) / r;
2216
+ } = Er(t);
2217
+ let a = (i ? Wt(n.width) : n.width) / o, s = (i ? Wt(n.height) : n.height) / r;
2112
2218
  return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2113
2219
  x: a,
2114
2220
  y: s
2115
2221
  };
2116
2222
  }
2117
- const Mc = /* @__PURE__ */ Ie(0);
2118
- function Sr(e) {
2223
+ const Ic = /* @__PURE__ */ Pe(0);
2224
+ function Rr(e) {
2119
2225
  const t = pe(e);
2120
- return !Qn() || !t.visualViewport ? Mc : {
2226
+ return !Qn() || !t.visualViewport ? Ic : {
2121
2227
  x: t.visualViewport.offsetLeft,
2122
2228
  y: t.visualViewport.offsetTop
2123
2229
  };
2124
2230
  }
2125
- function Pc(e, t, n) {
2231
+ function Mc(e, t, n) {
2126
2232
  return t === void 0 && (t = !1), !n || t && n !== pe(e) ? !1 : t;
2127
2233
  }
2128
2234
  function Ye(e, t, n, o) {
2129
2235
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2130
2236
  const r = e.getBoundingClientRect(), i = eo(e);
2131
- let a = Ie(1);
2237
+ let a = Pe(1);
2132
2238
  t && (o ? Ce(o) && (a = rt(o)) : a = rt(e));
2133
- const s = Pc(i, n, o) ? Sr(i) : Ie(0);
2239
+ const s = Mc(i, n, o) ? Rr(i) : Pe(0);
2134
2240
  let u = (r.left + s.x) / a.x, l = (r.top + s.y) / a.y, d = r.width / a.x, c = r.height / a.y;
2135
2241
  if (i) {
2136
2242
  const h = pe(i), g = o && Ce(o) ? pe(o) : o;
@@ -2140,19 +2246,19 @@ function Ye(e, t, n, o) {
2140
2246
  u *= v.x, l *= v.y, d *= v.x, c *= v.y, u += y, l += x, w = pe(m), m = Ln(w);
2141
2247
  }
2142
2248
  }
2143
- return Ut({
2249
+ return Gt({
2144
2250
  width: d,
2145
2251
  height: c,
2146
2252
  x: u,
2147
2253
  y: l
2148
2254
  });
2149
2255
  }
2150
- function Jt(e, t) {
2151
- const n = qt(e).scrollLeft;
2256
+ function on(e, t) {
2257
+ const n = nn(e).scrollLeft;
2152
2258
  return t ? t.left + n : Ye(Ne(e)).left + n;
2153
2259
  }
2154
- function Er(e, t) {
2155
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Jt(e, n), r = n.top + t.scrollTop;
2260
+ function Tr(e, t) {
2261
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - on(e, n), r = n.top + t.scrollTop;
2156
2262
  return {
2157
2263
  x: o,
2158
2264
  y: r
@@ -2165,19 +2271,19 @@ function Nc(e) {
2165
2271
  offsetParent: o,
2166
2272
  strategy: r
2167
2273
  } = e;
2168
- const i = r === "fixed", a = Ne(o), s = t ? Zt(t.floating) : !1;
2274
+ const i = r === "fixed", a = Ne(o), s = t ? tn(t.floating) : !1;
2169
2275
  if (o === a || s && i)
2170
2276
  return n;
2171
2277
  let u = {
2172
2278
  scrollLeft: 0,
2173
2279
  scrollTop: 0
2174
- }, l = Ie(1);
2175
- const d = Ie(0), c = Pe(o);
2176
- if ((c || !c && !i) && ((lt(o) !== "body" || Ct(a)) && (u = qt(o)), Pe(o))) {
2280
+ }, l = Pe(1);
2281
+ const d = Pe(0), c = Me(o);
2282
+ if ((c || !c && !i) && ((lt(o) !== "body" || St(a)) && (u = nn(o)), Me(o))) {
2177
2283
  const g = Ye(o);
2178
2284
  l = rt(o), d.x = g.x + o.clientLeft, d.y = g.y + o.clientTop;
2179
2285
  }
2180
- const h = a && !c && !i ? Er(a, u) : Ie(0);
2286
+ const h = a && !c && !i ? Tr(a, u) : Pe(0);
2181
2287
  return {
2182
2288
  width: n.width * l.x,
2183
2289
  height: n.height * l.y,
@@ -2189,8 +2295,8 @@ function _c(e) {
2189
2295
  return Array.from(e.getClientRects());
2190
2296
  }
2191
2297
  function Oc(e) {
2192
- const t = Ne(e), n = qt(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);
2193
- let a = -n.scrollLeft + Jt(e);
2298
+ const t = Ne(e), n = nn(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);
2299
+ let a = -n.scrollLeft + on(e);
2194
2300
  const s = -n.scrollTop;
2195
2301
  return xe(o).direction === "rtl" && (a += fe(t.clientWidth, o.clientWidth) - r), {
2196
2302
  width: r,
@@ -2208,7 +2314,7 @@ function Dc(e, t) {
2208
2314
  const d = Qn();
2209
2315
  (!d || d && t === "fixed") && (s = r.offsetLeft, u = r.offsetTop);
2210
2316
  }
2211
- const l = Jt(o);
2317
+ const l = on(o);
2212
2318
  if (l <= 0) {
2213
2319
  const d = o.ownerDocument, c = d.body, h = getComputedStyle(c), g = d.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, w = Math.abs(o.clientWidth - c.clientWidth - g);
2214
2320
  w <= Ko && (i -= w);
@@ -2222,7 +2328,7 @@ function Dc(e, t) {
2222
2328
  }
2223
2329
  const kc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2224
2330
  function Lc(e, t) {
2225
- const n = Ye(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Pe(e) ? rt(e) : Ie(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = r * i.x, l = o * i.y;
2331
+ const n = Ye(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Me(e) ? rt(e) : Pe(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = r * i.x, l = o * i.y;
2226
2332
  return {
2227
2333
  width: a,
2228
2334
  height: s,
@@ -2239,7 +2345,7 @@ function Go(e, t, n) {
2239
2345
  else if (Ce(t))
2240
2346
  o = Lc(t, n);
2241
2347
  else {
2242
- const r = Sr(e);
2348
+ const r = Rr(e);
2243
2349
  o = {
2244
2350
  x: t.x - r.x,
2245
2351
  y: t.y - r.y,
@@ -2247,22 +2353,22 @@ function Go(e, t, n) {
2247
2353
  height: t.height
2248
2354
  };
2249
2355
  }
2250
- return Ut(o);
2356
+ return Gt(o);
2251
2357
  }
2252
- function Rr(e, t) {
2358
+ function Ar(e, t) {
2253
2359
  const n = Ve(e);
2254
- return n === t || !Ce(n) || st(n) ? !1 : xe(n).position === "fixed" || Rr(n, t);
2360
+ return n === t || !Ce(n) || st(n) ? !1 : xe(n).position === "fixed" || Ar(n, t);
2255
2361
  }
2256
2362
  function Fc(e, t) {
2257
2363
  const n = t.get(e);
2258
2364
  if (n)
2259
2365
  return n;
2260
- let o = wt(e, [], !1).filter((s) => Ce(s) && lt(s) !== "body"), r = null;
2366
+ let o = bt(e, [], !1).filter((s) => Ce(s) && lt(s) !== "body"), r = null;
2261
2367
  const i = xe(e).position === "fixed";
2262
2368
  let a = i ? Ve(e) : e;
2263
2369
  for (; Ce(a) && !st(a); ) {
2264
2370
  const s = xe(a), u = Jn(a);
2265
- !u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && kc.has(r.position) || Ct(a) && !u && Rr(e, a)) ? o = o.filter((d) => d !== a) : r = s, a = Ve(a);
2371
+ !u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && kc.has(r.position) || St(a) && !u && Ar(e, a)) ? o = o.filter((d) => d !== a) : r = s, a = Ve(a);
2266
2372
  }
2267
2373
  return t.set(e, o), o;
2268
2374
  }
@@ -2273,7 +2379,7 @@ function $c(e) {
2273
2379
  rootBoundary: o,
2274
2380
  strategy: r
2275
2381
  } = e;
2276
- const a = [...n === "clippingAncestors" ? Zt(t) ? [] : Fc(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((l, d) => {
2382
+ const a = [...n === "clippingAncestors" ? tn(t) ? [] : Fc(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((l, d) => {
2277
2383
  const c = Go(t, d, r);
2278
2384
  return l.top = fe(c.top, l.top), l.right = $e(c.right, l.right), l.bottom = $e(c.bottom, l.bottom), l.left = fe(c.left, l.left), l;
2279
2385
  }, Go(t, s, r));
@@ -2288,29 +2394,29 @@ function Vc(e) {
2288
2394
  const {
2289
2395
  width: t,
2290
2396
  height: n
2291
- } = xr(e);
2397
+ } = Er(e);
2292
2398
  return {
2293
2399
  width: t,
2294
2400
  height: n
2295
2401
  };
2296
2402
  }
2297
2403
  function Uc(e, t, n) {
2298
- const o = Pe(t), r = Ne(t), i = n === "fixed", a = Ye(e, !0, i, t);
2404
+ const o = Me(t), r = Ne(t), i = n === "fixed", a = Ye(e, !0, i, t);
2299
2405
  let s = {
2300
2406
  scrollLeft: 0,
2301
2407
  scrollTop: 0
2302
2408
  };
2303
- const u = Ie(0);
2409
+ const u = Pe(0);
2304
2410
  function l() {
2305
- u.x = Jt(r);
2411
+ u.x = on(r);
2306
2412
  }
2307
2413
  if (o || !o && !i)
2308
- if ((lt(t) !== "body" || Ct(r)) && (s = qt(t)), o) {
2414
+ if ((lt(t) !== "body" || St(r)) && (s = nn(t)), o) {
2309
2415
  const g = Ye(t, !0, i, t);
2310
2416
  u.x = g.x + t.clientLeft, u.y = g.y + t.clientTop;
2311
2417
  } else r && l();
2312
2418
  i && !o && r && l();
2313
- const d = r && !o && !i ? Er(r, s) : Ie(0), c = a.left + s.scrollLeft - u.x - d.x, h = a.top + s.scrollTop - u.y - d.y;
2419
+ const d = r && !o && !i ? Tr(r, s) : Pe(0), c = a.left + s.scrollLeft - u.x - d.x, h = a.top + s.scrollTop - u.y - d.y;
2314
2420
  return {
2315
2421
  x: c,
2316
2422
  y: h,
@@ -2318,37 +2424,37 @@ function Uc(e, t, n) {
2318
2424
  height: a.height
2319
2425
  };
2320
2426
  }
2321
- function gn(e) {
2427
+ function Cn(e) {
2322
2428
  return xe(e).position === "static";
2323
2429
  }
2324
2430
  function zo(e, t) {
2325
- if (!Pe(e) || xe(e).position === "fixed")
2431
+ if (!Me(e) || xe(e).position === "fixed")
2326
2432
  return null;
2327
2433
  if (t)
2328
2434
  return t(e);
2329
2435
  let n = e.offsetParent;
2330
2436
  return Ne(e) === n && (n = n.ownerDocument.body), n;
2331
2437
  }
2332
- function Tr(e, t) {
2438
+ function Pr(e, t) {
2333
2439
  const n = pe(e);
2334
- if (Zt(e))
2440
+ if (tn(e))
2335
2441
  return n;
2336
- if (!Pe(e)) {
2442
+ if (!Me(e)) {
2337
2443
  let r = Ve(e);
2338
2444
  for (; r && !st(r); ) {
2339
- if (Ce(r) && !gn(r))
2445
+ if (Ce(r) && !Cn(r))
2340
2446
  return r;
2341
2447
  r = Ve(r);
2342
2448
  }
2343
2449
  return n;
2344
2450
  }
2345
2451
  let o = zo(e, t);
2346
- for (; o && xc(o) && gn(o); )
2452
+ for (; o && xc(o) && Cn(o); )
2347
2453
  o = zo(o, t);
2348
- return o && st(o) && gn(o) && !Jn(o) ? n : o || Ac(e) || n;
2454
+ return o && st(o) && Cn(o) && !Jn(o) ? n : o || Ac(e) || n;
2349
2455
  }
2350
2456
  const Bc = async function(e) {
2351
- const t = this.getOffsetParent || Tr, n = this.getDimensions, o = await n(e.floating);
2457
+ const t = this.getOffsetParent || Pr, n = this.getDimensions, o = await n(e.floating);
2352
2458
  return {
2353
2459
  reference: Uc(e.reference, await t(e.floating), e.strategy),
2354
2460
  floating: {
@@ -2366,7 +2472,7 @@ const Wc = {
2366
2472
  convertOffsetParentRelativeRectToViewportRelativeRect: Nc,
2367
2473
  getDocumentElement: Ne,
2368
2474
  getClippingRect: $c,
2369
- getOffsetParent: Tr,
2475
+ getOffsetParent: Pr,
2370
2476
  getElementRects: Bc,
2371
2477
  getClientRects: _c,
2372
2478
  getDimensions: Vc,
@@ -2374,7 +2480,7 @@ const Wc = {
2374
2480
  isElement: Ce,
2375
2481
  isRTL: Hc
2376
2482
  };
2377
- function Ar(e, t) {
2483
+ function Ir(e, t) {
2378
2484
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2379
2485
  }
2380
2486
  function Kc(e, t) {
@@ -2394,7 +2500,7 @@ function Kc(e, t) {
2394
2500
  } = l;
2395
2501
  if (s || t(), !h || !g)
2396
2502
  return;
2397
- const w = At(c), m = At(r.clientWidth - (d + h)), v = At(r.clientHeight - (c + g)), b = At(d), y = {
2503
+ const w = It(c), m = It(r.clientWidth - (d + h)), v = It(r.clientHeight - (c + g)), b = It(d), y = {
2398
2504
  rootMargin: -w + "px " + -m + "px " + -v + "px " + -b + "px",
2399
2505
  threshold: fe(0, $e(1, u)) || 1
2400
2506
  };
@@ -2408,7 +2514,7 @@ function Kc(e, t) {
2408
2514
  a(!1, 1e-7);
2409
2515
  }, 1e3);
2410
2516
  }
2411
- E === 1 && !Ar(l, e.getBoundingClientRect()) && a(), x = !1;
2517
+ E === 1 && !Ir(l, e.getBoundingClientRect()) && a(), x = !1;
2412
2518
  }
2413
2519
  try {
2414
2520
  n = new IntersectionObserver(R, {
@@ -2431,7 +2537,7 @@ function Gc(e, t, n, o) {
2431
2537
  elementResize: a = typeof ResizeObserver == "function",
2432
2538
  layoutShift: s = typeof IntersectionObserver == "function",
2433
2539
  animationFrame: u = !1
2434
- } = o, l = eo(e), d = r || i ? [...l ? wt(l) : [], ...wt(t)] : [];
2540
+ } = o, l = eo(e), d = r || i ? [...l ? bt(l) : [], ...bt(t)] : [];
2435
2541
  d.forEach((b) => {
2436
2542
  r && b.addEventListener("scroll", n, {
2437
2543
  passive: !0
@@ -2450,7 +2556,7 @@ function Gc(e, t, n, o) {
2450
2556
  u && v();
2451
2557
  function v() {
2452
2558
  const b = Ye(e);
2453
- m && !Ar(m, b) && n(), m = b, w = requestAnimationFrame(v);
2559
+ m && !Ir(m, b) && n(), m = b, w = requestAnimationFrame(v);
2454
2560
  }
2455
2561
  return n(), () => {
2456
2562
  var b;
@@ -2473,8 +2579,8 @@ const zc = gc, jc = vc, Yc = pc, Xc = yc, Zc = mc, jo = fc, qc = wc, Jc = (e, t,
2473
2579
  });
2474
2580
  };
2475
2581
  var Qc = typeof document < "u", el = function() {
2476
- }, kt = Qc ? Ns : el;
2477
- function Bt(e, t) {
2582
+ }, Ut = Qc ? _s : el;
2583
+ function zt(e, t) {
2478
2584
  if (e === t)
2479
2585
  return !0;
2480
2586
  if (typeof e != typeof t)
@@ -2486,7 +2592,7 @@ function Bt(e, t) {
2486
2592
  if (Array.isArray(e)) {
2487
2593
  if (n = e.length, n !== t.length) return !1;
2488
2594
  for (o = n; o-- !== 0; )
2489
- if (!Bt(e[o], t[o]))
2595
+ if (!zt(e[o], t[o]))
2490
2596
  return !1;
2491
2597
  return !0;
2492
2598
  }
@@ -2497,23 +2603,23 @@ function Bt(e, t) {
2497
2603
  return !1;
2498
2604
  for (o = n; o-- !== 0; ) {
2499
2605
  const i = r[o];
2500
- if (!(i === "_owner" && e.$$typeof) && !Bt(e[i], t[i]))
2606
+ if (!(i === "_owner" && e.$$typeof) && !zt(e[i], t[i]))
2501
2607
  return !1;
2502
2608
  }
2503
2609
  return !0;
2504
2610
  }
2505
2611
  return e !== e && t !== t;
2506
2612
  }
2507
- function Ir(e) {
2613
+ function Mr(e) {
2508
2614
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2509
2615
  }
2510
2616
  function Yo(e, t) {
2511
- const n = Ir(e);
2617
+ const n = Mr(e);
2512
2618
  return Math.round(t * n) / n;
2513
2619
  }
2514
- function vn(e) {
2620
+ function xn(e) {
2515
2621
  const t = f.useRef(e);
2516
- return kt(() => {
2622
+ return Ut(() => {
2517
2623
  t.current = e;
2518
2624
  }), t;
2519
2625
  }
@@ -2539,12 +2645,12 @@ function tl(e) {
2539
2645
  middlewareData: {},
2540
2646
  isPositioned: !1
2541
2647
  }), [h, g] = f.useState(o);
2542
- Bt(h, o) || g(o);
2648
+ zt(h, o) || g(o);
2543
2649
  const [w, m] = f.useState(null), [v, b] = f.useState(null), C = f.useCallback((N) => {
2544
2650
  N !== T.current && (T.current = N, m(N));
2545
2651
  }, []), y = f.useCallback((N) => {
2546
2652
  N !== E.current && (E.current = N, b(N));
2547
- }, []), x = i || w, R = a || v, T = f.useRef(null), E = f.useRef(null), S = f.useRef(d), M = u != null, I = vn(u), L = vn(r), D = vn(l), $ = f.useCallback(() => {
2653
+ }, []), x = i || w, R = a || v, T = f.useRef(null), E = f.useRef(null), S = f.useRef(d), I = u != null, P = xn(u), L = xn(r), D = xn(l), $ = f.useCallback(() => {
2548
2654
  if (!T.current || !E.current)
2549
2655
  return;
2550
2656
  const N = {
@@ -2561,27 +2667,27 @@ function tl(e) {
2561
2667
  // setting it to `true` when `open === false` (must be specified).
2562
2668
  isPositioned: D.current !== !1
2563
2669
  };
2564
- V.current && !Bt(S.current, j) && (S.current = j, zt.flushSync(() => {
2670
+ V.current && !zt(S.current, j) && (S.current = j, qt.flushSync(() => {
2565
2671
  c(j);
2566
2672
  }));
2567
2673
  });
2568
2674
  }, [h, t, n, L, D]);
2569
- kt(() => {
2675
+ Ut(() => {
2570
2676
  l === !1 && S.current.isPositioned && (S.current.isPositioned = !1, c((N) => ({
2571
2677
  ...N,
2572
2678
  isPositioned: !1
2573
2679
  })));
2574
2680
  }, [l]);
2575
2681
  const V = f.useRef(!1);
2576
- kt(() => (V.current = !0, () => {
2682
+ Ut(() => (V.current = !0, () => {
2577
2683
  V.current = !1;
2578
- }), []), kt(() => {
2684
+ }), []), Ut(() => {
2579
2685
  if (x && (T.current = x), R && (E.current = R), x && R) {
2580
- if (I.current)
2581
- return I.current(x, R, $);
2686
+ if (P.current)
2687
+ return P.current(x, R, $);
2582
2688
  $();
2583
2689
  }
2584
- }, [x, R, $, I, M]);
2690
+ }, [x, R, $, P, I]);
2585
2691
  const z = f.useMemo(() => ({
2586
2692
  reference: T,
2587
2693
  floating: E,
@@ -2602,7 +2708,7 @@ function tl(e) {
2602
2708
  return s ? {
2603
2709
  ...N,
2604
2710
  transform: "translate(" + A + "px, " + j + "px)",
2605
- ...Ir(O.floating) >= 1.5 && {
2711
+ ...Mr(O.floating) >= 1.5 && {
2606
2712
  willChange: "transform"
2607
2713
  }
2608
2714
  } : {
@@ -2662,7 +2768,7 @@ const nl = (e) => {
2662
2768
  ...nl(e),
2663
2769
  options: [e, t]
2664
2770
  });
2665
- var ul = "Arrow", Mr = f.forwardRef((e, t) => {
2771
+ var ul = "Arrow", Nr = f.forwardRef((e, t) => {
2666
2772
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
2667
2773
  return /* @__PURE__ */ p(
2668
2774
  H.svg,
@@ -2677,8 +2783,8 @@ var ul = "Arrow", Mr = f.forwardRef((e, t) => {
2677
2783
  }
2678
2784
  );
2679
2785
  });
2680
- Mr.displayName = ul;
2681
- var dl = Mr;
2786
+ Nr.displayName = ul;
2787
+ var dl = Nr;
2682
2788
  function fl(e) {
2683
2789
  const [t, n] = f.useState(void 0);
2684
2790
  return oe(() => {
@@ -2701,22 +2807,22 @@ function fl(e) {
2701
2807
  n(void 0);
2702
2808
  }, [e]), t;
2703
2809
  }
2704
- var to = "Popper", [Pr, Qt] = qe(to), [pl, Nr] = Pr(to), _r = (e) => {
2810
+ var to = "Popper", [_r, rn] = qe(to), [pl, Or] = _r(to), Dr = (e) => {
2705
2811
  const { __scopePopper: t, children: n } = e, [o, r] = f.useState(null);
2706
2812
  return /* @__PURE__ */ p(pl, { scope: t, anchor: o, onAnchorChange: r, children: n });
2707
2813
  };
2708
- _r.displayName = to;
2709
- var Or = "PopperAnchor", Dr = f.forwardRef(
2814
+ Dr.displayName = to;
2815
+ var kr = "PopperAnchor", Lr = f.forwardRef(
2710
2816
  (e, t) => {
2711
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = Nr(Or, n), a = f.useRef(null), s = Z(t, a), u = f.useRef(null);
2817
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = Or(kr, n), a = f.useRef(null), s = Z(t, a), u = f.useRef(null);
2712
2818
  return f.useEffect(() => {
2713
2819
  const l = u.current;
2714
2820
  u.current = (o == null ? void 0 : o.current) || a.current, l !== u.current && i.onAnchorChange(u.current);
2715
2821
  }), o ? null : /* @__PURE__ */ p(H.div, { ...r, ref: s });
2716
2822
  }
2717
2823
  );
2718
- Dr.displayName = Or;
2719
- var no = "PopperContent", [ml, hl] = Pr(no), kr = f.forwardRef(
2824
+ Lr.displayName = kr;
2825
+ var no = "PopperContent", [ml, hl] = _r(no), Fr = f.forwardRef(
2720
2826
  (e, t) => {
2721
2827
  var _, B, W, K, G, U;
2722
2828
  const {
@@ -2734,15 +2840,15 @@ var no = "PopperContent", [ml, hl] = Pr(no), kr = f.forwardRef(
2734
2840
  updatePositionStrategy: g = "optimized",
2735
2841
  onPlaced: w,
2736
2842
  ...m
2737
- } = e, v = Nr(no, n), [b, C] = f.useState(null), y = Z(t, (se) => C(se)), [x, R] = f.useState(null), T = fl(x), E = (T == null ? void 0 : T.width) ?? 0, S = (T == null ? void 0 : T.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), I = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(l) ? l : [l], D = L.length > 0, $ = {
2738
- padding: I,
2843
+ } = e, v = Or(no, n), [b, C] = f.useState(null), y = Z(t, (se) => C(se)), [x, R] = f.useState(null), T = fl(x), E = (T == null ? void 0 : T.width) ?? 0, S = (T == null ? void 0 : T.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), P = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(l) ? l : [l], D = L.length > 0, $ = {
2844
+ padding: P,
2739
2845
  boundary: L.filter(vl),
2740
2846
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2741
2847
  altBoundary: D
2742
2848
  }, { refs: V, floatingStyles: z, placement: O, isPositioned: k, middlewareData: N } = tl({
2743
2849
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2744
2850
  strategy: "fixed",
2745
- placement: M,
2851
+ placement: I,
2746
2852
  whileElementsMounted: (...se) => Gc(...se, {
2747
2853
  animationFrame: g === "always"
2748
2854
  }),
@@ -2761,15 +2867,15 @@ var no = "PopperContent", [ml, hl] = Pr(no), kr = f.forwardRef(
2761
2867
  al({
2762
2868
  ...$,
2763
2869
  apply: ({ elements: se, rects: me, availableWidth: He, availableHeight: We }) => {
2764
- const { width: Ke, height: dn } = me.reference, et = se.floating.style;
2765
- et.setProperty("--radix-popper-available-width", `${He}px`), et.setProperty("--radix-popper-available-height", `${We}px`), et.setProperty("--radix-popper-anchor-width", `${Ke}px`), et.setProperty("--radix-popper-anchor-height", `${dn}px`);
2870
+ const { width: Ke, height: gn } = me.reference, et = se.floating.style;
2871
+ et.setProperty("--radix-popper-available-width", `${He}px`), et.setProperty("--radix-popper-available-height", `${We}px`), et.setProperty("--radix-popper-anchor-width", `${Ke}px`), et.setProperty("--radix-popper-anchor-height", `${gn}px`);
2766
2872
  }
2767
2873
  }),
2768
2874
  x && ll({ element: x, padding: s }),
2769
2875
  wl({ arrowWidth: E, arrowHeight: S }),
2770
2876
  h && cl({ strategy: "referenceHidden", ...$ })
2771
2877
  ]
2772
- }), [A, j] = $r(O), q = Me(w);
2878
+ }), [A, j] = Ur(O), q = Ie(w);
2773
2879
  oe(() => {
2774
2880
  k && (q == null || q());
2775
2881
  }, [k, q]);
@@ -2830,14 +2936,14 @@ var no = "PopperContent", [ml, hl] = Pr(no), kr = f.forwardRef(
2830
2936
  );
2831
2937
  }
2832
2938
  );
2833
- kr.displayName = no;
2834
- var Lr = "PopperArrow", gl = {
2939
+ Fr.displayName = no;
2940
+ var $r = "PopperArrow", gl = {
2835
2941
  top: "bottom",
2836
2942
  right: "left",
2837
2943
  bottom: "top",
2838
2944
  left: "right"
2839
- }, Fr = f.forwardRef(function(t, n) {
2840
- const { __scopePopper: o, ...r } = t, i = hl(Lr, o), a = gl[i.placedSide];
2945
+ }, Vr = f.forwardRef(function(t, n) {
2946
+ const { __scopePopper: o, ...r } = t, i = hl($r, o), a = gl[i.placedSide];
2841
2947
  return (
2842
2948
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2843
2949
  // doesn't report size as we'd expect on SVG elements.
@@ -2881,7 +2987,7 @@ var Lr = "PopperArrow", gl = {
2881
2987
  )
2882
2988
  );
2883
2989
  });
2884
- Fr.displayName = Lr;
2990
+ Vr.displayName = $r;
2885
2991
  function vl(e) {
2886
2992
  return e !== null;
2887
2993
  }
@@ -2890,21 +2996,21 @@ var wl = (e) => ({
2890
2996
  options: e,
2891
2997
  fn(t) {
2892
2998
  var v, b, C;
2893
- const { placement: n, rects: o, middlewareData: r } = t, a = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, d] = $r(n), c = { start: "0%", center: "50%", end: "100%" }[d], h = (((b = r.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, g = (((C = r.arrow) == null ? void 0 : C.y) ?? 0) + u / 2;
2999
+ const { placement: n, rects: o, middlewareData: r } = t, a = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, d] = Ur(n), c = { start: "0%", center: "50%", end: "100%" }[d], h = (((b = r.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, g = (((C = r.arrow) == null ? void 0 : C.y) ?? 0) + u / 2;
2894
3000
  let w = "", m = "";
2895
3001
  return l === "bottom" ? (w = a ? c : `${h}px`, m = `${-u}px`) : l === "top" ? (w = a ? c : `${h}px`, m = `${o.floating.height + u}px`) : l === "right" ? (w = `${-u}px`, m = a ? c : `${g}px`) : l === "left" && (w = `${o.floating.width + u}px`, m = a ? c : `${g}px`), { data: { x: w, y: m } };
2896
3002
  }
2897
3003
  });
2898
- function $r(e) {
3004
+ function Ur(e) {
2899
3005
  const [t, n = "center"] = e.split("-");
2900
3006
  return [t, n];
2901
3007
  }
2902
- var Vr = _r, Ur = Dr, Br = kr, Hr = Fr, yl = "Portal", oo = f.forwardRef((e, t) => {
3008
+ var Br = Dr, Hr = Lr, Wr = Fr, Kr = Vr, yl = "Portal", oo = f.forwardRef((e, t) => {
2903
3009
  var s;
2904
3010
  const { container: n, ...o } = e, [r, i] = f.useState(!1);
2905
3011
  oe(() => i(!0), []);
2906
3012
  const a = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
2907
- return a ? _s.createPortal(/* @__PURE__ */ p(H.div, { ...o, ref: t }), a) : null;
3013
+ return a ? Os.createPortal(/* @__PURE__ */ p(H.div, { ...o, ref: t }), a) : null;
2908
3014
  });
2909
3015
  oo.displayName = yl;
2910
3016
  function bl(e, t) {
@@ -2930,19 +3036,19 @@ function Cl(e) {
2930
3036
  }
2931
3037
  });
2932
3038
  return f.useEffect(() => {
2933
- const l = It(o.current);
3039
+ const l = Mt(o.current);
2934
3040
  i.current = s === "mounted" ? l : "none";
2935
3041
  }, [s]), oe(() => {
2936
3042
  const l = o.current, d = r.current;
2937
3043
  if (d !== e) {
2938
- const h = i.current, g = It(l);
3044
+ const h = i.current, g = Mt(l);
2939
3045
  e ? u("MOUNT") : g === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(d && h !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
2940
3046
  }
2941
3047
  }, [e, u]), oe(() => {
2942
3048
  if (t) {
2943
3049
  let l;
2944
3050
  const d = t.ownerDocument.defaultView ?? window, c = (g) => {
2945
- const m = It(o.current).includes(CSS.escape(g.animationName));
3051
+ const m = Mt(o.current).includes(CSS.escape(g.animationName));
2946
3052
  if (g.target === t && m && (u("ANIMATION_END"), !r.current)) {
2947
3053
  const v = t.style.animationFillMode;
2948
3054
  t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
@@ -2950,7 +3056,7 @@ function Cl(e) {
2950
3056
  });
2951
3057
  }
2952
3058
  }, h = (g) => {
2953
- g.target === t && (i.current = It(o.current));
3059
+ g.target === t && (i.current = Mt(o.current));
2954
3060
  };
2955
3061
  return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", c), t.addEventListener("animationend", c), () => {
2956
3062
  d.clearTimeout(l), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
@@ -2964,7 +3070,7 @@ function Cl(e) {
2964
3070
  }, [])
2965
3071
  };
2966
3072
  }
2967
- function It(e) {
3073
+ function Mt(e) {
2968
3074
  return (e == null ? void 0 : e.animationName) || "none";
2969
3075
  }
2970
3076
  function xl(e) {
@@ -2972,14 +3078,14 @@ function xl(e) {
2972
3078
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
2973
3079
  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);
2974
3080
  }
2975
- var wn = "rovingFocusGroup.onEntryFocus", Sl = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [Fn, Wr, El] = zn(xt), [Rl, en] = qe(
2976
- xt,
3081
+ var Sn = "rovingFocusGroup.onEntryFocus", Sl = { bubbles: !1, cancelable: !0 }, Et = "RovingFocusGroup", [Fn, Gr, El] = zn(Et), [Rl, sn] = qe(
3082
+ Et,
2977
3083
  [El]
2978
- ), [Tl, Al] = Rl(xt), Kr = f.forwardRef(
2979
- (e, t) => /* @__PURE__ */ p(Fn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Fn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Il, { ...e, ref: t }) }) })
3084
+ ), [Tl, Al] = Rl(Et), zr = f.forwardRef(
3085
+ (e, t) => /* @__PURE__ */ p(Fn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Fn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Pl, { ...e, ref: t }) }) })
2980
3086
  );
2981
- Kr.displayName = xt;
2982
- var Il = f.forwardRef((e, t) => {
3087
+ zr.displayName = Et;
3088
+ var Pl = f.forwardRef((e, t) => {
2983
3089
  const {
2984
3090
  __scopeRovingFocusGroup: n,
2985
3091
  orientation: o,
@@ -2991,16 +3097,16 @@ var Il = f.forwardRef((e, t) => {
2991
3097
  onEntryFocus: l,
2992
3098
  preventScrollOnEntryFocus: d = !1,
2993
3099
  ...c
2994
- } = e, h = f.useRef(null), g = Z(t, h), w = Yt(i), [m, v] = ht({
3100
+ } = e, h = f.useRef(null), g = Z(t, h), w = Qt(i), [m, v] = vt({
2995
3101
  prop: a,
2996
3102
  defaultProp: s ?? null,
2997
3103
  onChange: u,
2998
- caller: xt
2999
- }), [b, C] = f.useState(!1), y = Me(l), x = Wr(n), R = f.useRef(!1), [T, E] = f.useState(0);
3104
+ caller: Et
3105
+ }), [b, C] = f.useState(!1), y = Ie(l), x = Gr(n), R = f.useRef(!1), [T, E] = f.useState(0);
3000
3106
  return f.useEffect(() => {
3001
3107
  const S = h.current;
3002
3108
  if (S)
3003
- return S.addEventListener(wn, y), () => S.removeEventListener(wn, y);
3109
+ return S.addEventListener(Sn, y), () => S.removeEventListener(Sn, y);
3004
3110
  }, [y]), /* @__PURE__ */ p(
3005
3111
  Tl,
3006
3112
  {
@@ -3030,28 +3136,28 @@ var Il = f.forwardRef((e, t) => {
3030
3136
  ...c,
3031
3137
  ref: g,
3032
3138
  style: { outline: "none", ...e.style },
3033
- onMouseDown: P(e.onMouseDown, () => {
3139
+ onMouseDown: M(e.onMouseDown, () => {
3034
3140
  R.current = !0;
3035
3141
  }),
3036
- onFocus: P(e.onFocus, (S) => {
3037
- const M = !R.current;
3038
- if (S.target === S.currentTarget && M && !b) {
3039
- const I = new CustomEvent(wn, Sl);
3040
- if (S.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
3142
+ onFocus: M(e.onFocus, (S) => {
3143
+ const I = !R.current;
3144
+ if (S.target === S.currentTarget && I && !b) {
3145
+ const P = new CustomEvent(Sn, Sl);
3146
+ if (S.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
3041
3147
  const L = x().filter((O) => O.focusable), D = L.find((O) => O.active), $ = L.find((O) => O.id === m), z = [D, $, ...L].filter(
3042
3148
  Boolean
3043
3149
  ).map((O) => O.ref.current);
3044
- jr(z, d);
3150
+ Xr(z, d);
3045
3151
  }
3046
3152
  }
3047
3153
  R.current = !1;
3048
3154
  }),
3049
- onBlur: P(e.onBlur, () => C(!1))
3155
+ onBlur: M(e.onBlur, () => C(!1))
3050
3156
  }
3051
3157
  )
3052
3158
  }
3053
3159
  );
3054
- }), Gr = "RovingFocusGroupItem", zr = f.forwardRef(
3160
+ }), jr = "RovingFocusGroupItem", Yr = f.forwardRef(
3055
3161
  (e, t) => {
3056
3162
  const {
3057
3163
  __scopeRovingFocusGroup: n,
@@ -3060,7 +3166,7 @@ var Il = f.forwardRef((e, t) => {
3060
3166
  tabStopId: i,
3061
3167
  children: a,
3062
3168
  ...s
3063
- } = e, u = je(), l = i || u, d = Al(Gr, n), c = d.currentTabStopId === l, h = Wr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = d;
3169
+ } = e, u = je(), l = i || u, d = Al(jr, n), c = d.currentTabStopId === l, h = Gr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = d;
3064
3170
  return f.useEffect(() => {
3065
3171
  if (o)
3066
3172
  return g(), () => w();
@@ -3078,11 +3184,11 @@ var Il = f.forwardRef((e, t) => {
3078
3184
  "data-orientation": d.orientation,
3079
3185
  ...s,
3080
3186
  ref: t,
3081
- onMouseDown: P(e.onMouseDown, (v) => {
3187
+ onMouseDown: M(e.onMouseDown, (v) => {
3082
3188
  o ? d.onItemFocus(l) : v.preventDefault();
3083
3189
  }),
3084
- onFocus: P(e.onFocus, () => d.onItemFocus(l)),
3085
- onKeyDown: P(e.onKeyDown, (v) => {
3190
+ onFocus: M(e.onFocus, () => d.onItemFocus(l)),
3191
+ onKeyDown: M(e.onKeyDown, (v) => {
3086
3192
  if (v.key === "Tab" && v.shiftKey) {
3087
3193
  d.onItemShiftTab();
3088
3194
  return;
@@ -3099,7 +3205,7 @@ var Il = f.forwardRef((e, t) => {
3099
3205
  const x = y.indexOf(v.currentTarget);
3100
3206
  y = d.loop ? _l(y, x + 1) : y.slice(x + 1);
3101
3207
  }
3102
- setTimeout(() => jr(y));
3208
+ setTimeout(() => Xr(y));
3103
3209
  }
3104
3210
  }),
3105
3211
  children: typeof a == "function" ? a({ isCurrentTabStop: c, hasTabStop: m != null }) : a
@@ -3109,8 +3215,8 @@ var Il = f.forwardRef((e, t) => {
3109
3215
  );
3110
3216
  }
3111
3217
  );
3112
- zr.displayName = Gr;
3113
- var Ml = {
3218
+ Yr.displayName = jr;
3219
+ var Il = {
3114
3220
  ArrowLeft: "prev",
3115
3221
  ArrowUp: "prev",
3116
3222
  ArrowRight: "next",
@@ -3120,15 +3226,15 @@ var Ml = {
3120
3226
  PageDown: "last",
3121
3227
  End: "last"
3122
3228
  };
3123
- function Pl(e, t) {
3229
+ function Ml(e, t) {
3124
3230
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
3125
3231
  }
3126
3232
  function Nl(e, t, n) {
3127
- const o = Pl(e.key, n);
3233
+ const o = Ml(e.key, n);
3128
3234
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
3129
- return Ml[o];
3235
+ return Il[o];
3130
3236
  }
3131
- function jr(e, t = !1) {
3237
+ function Xr(e, t = !1) {
3132
3238
  const n = document.activeElement;
3133
3239
  for (const o of e)
3134
3240
  if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
@@ -3136,26 +3242,26 @@ function jr(e, t = !1) {
3136
3242
  function _l(e, t) {
3137
3243
  return e.map((n, o) => e[(t + o) % e.length]);
3138
3244
  }
3139
- var Yr = Kr, Xr = zr, Ol = function(e) {
3245
+ var Zr = zr, qr = Yr, Ol = function(e) {
3140
3246
  if (typeof document > "u")
3141
3247
  return null;
3142
3248
  var t = Array.isArray(e) ? e[0] : e;
3143
3249
  return t.ownerDocument.body;
3144
- }, tt = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Pt = {}, yn = 0, Zr = function(e) {
3145
- return e && (e.host || Zr(e.parentNode));
3250
+ }, tt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), _t = {}, En = 0, Jr = function(e) {
3251
+ return e && (e.host || Jr(e.parentNode));
3146
3252
  }, Dl = function(e, t) {
3147
3253
  return t.map(function(n) {
3148
3254
  if (e.contains(n))
3149
3255
  return n;
3150
- var o = Zr(n);
3256
+ var o = Jr(n);
3151
3257
  return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3152
3258
  }).filter(function(n) {
3153
3259
  return !!n;
3154
3260
  });
3155
3261
  }, kl = function(e, t, n, o) {
3156
3262
  var r = Dl(t, Array.isArray(e) ? e : [e]);
3157
- Pt[n] || (Pt[n] = /* @__PURE__ */ new WeakMap());
3158
- var i = Pt[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(r), l = function(c) {
3263
+ _t[n] || (_t[n] = /* @__PURE__ */ new WeakMap());
3264
+ var i = _t[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(r), l = function(c) {
3159
3265
  !c || s.has(c) || (s.add(c), l(c.parentNode));
3160
3266
  };
3161
3267
  r.forEach(l);
@@ -3166,19 +3272,19 @@ var Yr = Kr, Xr = zr, Ol = function(e) {
3166
3272
  else
3167
3273
  try {
3168
3274
  var g = h.getAttribute(o), w = g !== null && g !== "false", m = (tt.get(h) || 0) + 1, v = (i.get(h) || 0) + 1;
3169
- tt.set(h, m), i.set(h, v), a.push(h), m === 1 && w && Mt.set(h, !0), v === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
3275
+ tt.set(h, m), i.set(h, v), a.push(h), m === 1 && w && Nt.set(h, !0), v === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
3170
3276
  } catch (b) {
3171
3277
  console.error("aria-hidden: cannot operate on ", h, b);
3172
3278
  }
3173
3279
  });
3174
3280
  };
3175
- return d(t), s.clear(), yn++, function() {
3281
+ return d(t), s.clear(), En++, function() {
3176
3282
  a.forEach(function(c) {
3177
3283
  var h = tt.get(c) - 1, g = i.get(c) - 1;
3178
- tt.set(c, h), i.set(c, g), h || (Mt.has(c) || c.removeAttribute(o), Mt.delete(c)), g || c.removeAttribute(n);
3179
- }), yn--, yn || (tt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Pt = {});
3284
+ tt.set(c, h), i.set(c, g), h || (Nt.has(c) || c.removeAttribute(o), Nt.delete(c)), g || c.removeAttribute(n);
3285
+ }), En--, En || (tt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), _t = {});
3180
3286
  };
3181
- }, qr = function(e, t, n) {
3287
+ }, Qr = function(e, t, n) {
3182
3288
  n === void 0 && (n = "data-aria-hidden");
3183
3289
  var o = Array.from(Array.isArray(e) ? e : [e]), r = Ol(e);
3184
3290
  return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), kl(o, r, n, "aria-hidden")) : function() {
@@ -3193,7 +3299,7 @@ var Yr = Kr, Xr = zr, Ol = function(e) {
3193
3299
  return t;
3194
3300
  }, Se.apply(this, arguments);
3195
3301
  };
3196
- function Jr(e, t) {
3302
+ function ei(e, t) {
3197
3303
  var n = {};
3198
3304
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
3199
3305
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3206,8 +3312,8 @@ function Ll(e, t, n) {
3206
3312
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
3207
3313
  return e.concat(i || Array.prototype.slice.call(t));
3208
3314
  }
3209
- var Lt = "right-scroll-bar-position", Ft = "width-before-scroll-bar", Fl = "with-scroll-bars-hidden", $l = "--removed-body-scroll-bar-size";
3210
- function bn(e, t) {
3315
+ var Bt = "right-scroll-bar-position", Ht = "width-before-scroll-bar", Fl = "with-scroll-bars-hidden", $l = "--removed-body-scroll-bar-size";
3316
+ function Rn(e, t) {
3211
3317
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3212
3318
  }
3213
3319
  function Vl(e, t) {
@@ -3235,7 +3341,7 @@ var Ul = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Xo = /* @__PURE_
3235
3341
  function Bl(e, t) {
3236
3342
  var n = Vl(null, function(o) {
3237
3343
  return e.forEach(function(r) {
3238
- return bn(r, o);
3344
+ return Rn(r, o);
3239
3345
  });
3240
3346
  });
3241
3347
  return Ul(function() {
@@ -3243,9 +3349,9 @@ function Bl(e, t) {
3243
3349
  if (o) {
3244
3350
  var r = new Set(o), i = new Set(e), a = n.current;
3245
3351
  r.forEach(function(s) {
3246
- i.has(s) || bn(s, null);
3352
+ i.has(s) || Rn(s, null);
3247
3353
  }), i.forEach(function(s) {
3248
- r.has(s) || bn(s, a);
3354
+ r.has(s) || Rn(s, a);
3249
3355
  });
3250
3356
  }
3251
3357
  Xo.set(n, e);
@@ -3314,8 +3420,8 @@ function Kl(e) {
3314
3420
  var t = Wl(null);
3315
3421
  return t.options = Se({ async: !0, ssr: !1 }, e), t;
3316
3422
  }
3317
- var Qr = function(e) {
3318
- var t = e.sideCar, n = Jr(e, ["sideCar"]);
3423
+ var ti = function(e) {
3424
+ var t = e.sideCar, n = ei(e, ["sideCar"]);
3319
3425
  if (!t)
3320
3426
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3321
3427
  var o = t.read();
@@ -3323,32 +3429,32 @@ var Qr = function(e) {
3323
3429
  throw new Error("Sidecar medium not found");
3324
3430
  return f.createElement(o, Se({}, n));
3325
3431
  };
3326
- Qr.isSideCarExport = !0;
3432
+ ti.isSideCarExport = !0;
3327
3433
  function Gl(e, t) {
3328
- return e.useMedium(t), Qr;
3434
+ return e.useMedium(t), ti;
3329
3435
  }
3330
- var ei = Kl(), Cn = function() {
3331
- }, tn = f.forwardRef(function(e, t) {
3436
+ var ni = Kl(), Tn = function() {
3437
+ }, an = f.forwardRef(function(e, t) {
3332
3438
  var n = f.useRef(null), o = f.useState({
3333
- onScrollCapture: Cn,
3334
- onWheelCapture: Cn,
3335
- onTouchMoveCapture: Cn
3336
- }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, d = e.enabled, c = e.shards, h = e.sideCar, g = e.noRelative, w = e.noIsolation, m = e.inert, v = e.allowPinchZoom, b = e.as, C = b === void 0 ? "div" : b, y = e.gapMode, x = Jr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, T = Bl([n, t]), E = Se(Se({}, x), r);
3439
+ onScrollCapture: Tn,
3440
+ onWheelCapture: Tn,
3441
+ onTouchMoveCapture: Tn
3442
+ }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, d = e.enabled, c = e.shards, h = e.sideCar, g = e.noRelative, w = e.noIsolation, m = e.inert, v = e.allowPinchZoom, b = e.as, C = b === void 0 ? "div" : b, y = e.gapMode, x = ei(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, T = Bl([n, t]), E = Se(Se({}, x), r);
3337
3443
  return f.createElement(
3338
3444
  f.Fragment,
3339
3445
  null,
3340
- d && f.createElement(R, { sideCar: ei, removeScrollBar: l, shards: c, noRelative: g, noIsolation: w, inert: m, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
3446
+ d && f.createElement(R, { sideCar: ni, removeScrollBar: l, shards: c, noRelative: g, noIsolation: w, inert: m, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
3341
3447
  a ? f.cloneElement(f.Children.only(s), Se(Se({}, E), { ref: T })) : f.createElement(C, Se({}, E, { className: u, ref: T }), s)
3342
3448
  );
3343
3449
  });
3344
- tn.defaultProps = {
3450
+ an.defaultProps = {
3345
3451
  enabled: !0,
3346
3452
  removeScrollBar: !0,
3347
3453
  inert: !1
3348
3454
  };
3349
- tn.classNames = {
3350
- fullWidth: Ft,
3351
- zeroRight: Lt
3455
+ an.classNames = {
3456
+ fullWidth: Ht,
3457
+ zeroRight: Bt
3352
3458
  };
3353
3459
  var zl = function() {
3354
3460
  if (typeof __webpack_nonce__ < "u")
@@ -3388,7 +3494,7 @@ var Zl = function() {
3388
3494
  };
3389
3495
  }, [t && n]);
3390
3496
  };
3391
- }, ti = function() {
3497
+ }, oi = function() {
3392
3498
  var e = ql(), t = function(n) {
3393
3499
  var o = n.styles, r = n.dynamic;
3394
3500
  return e(o, r), null;
@@ -3399,11 +3505,11 @@ var Zl = function() {
3399
3505
  top: 0,
3400
3506
  right: 0,
3401
3507
  gap: 0
3402
- }, xn = function(e) {
3508
+ }, An = function(e) {
3403
3509
  return parseInt(e || "", 10) || 0;
3404
3510
  }, Ql = function(e) {
3405
3511
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
3406
- return [xn(n), xn(o), xn(r)];
3512
+ return [An(n), An(o), An(r)];
3407
3513
  }, eu = function(e) {
3408
3514
  if (e === void 0 && (e = "margin"), typeof window > "u")
3409
3515
  return Jl;
@@ -3414,7 +3520,7 @@ var Zl = function() {
3414
3520
  right: t[2],
3415
3521
  gap: Math.max(0, o - n + t[2] - t[0])
3416
3522
  };
3417
- }, tu = ti(), it = "data-scroll-locked", nu = function(e, t, n, o) {
3523
+ }, tu = oi(), it = "data-scroll-locked", nu = function(e, t, n, o) {
3418
3524
  var r = e.left, i = e.top, a = e.right, s = e.gap;
3419
3525
  return n === void 0 && (n = "margin"), `
3420
3526
  .`.concat(Fl, ` {
@@ -3438,19 +3544,19 @@ var Zl = function() {
3438
3544
  ].filter(Boolean).join(""), `
3439
3545
  }
3440
3546
 
3441
- .`).concat(Lt, ` {
3547
+ .`).concat(Bt, ` {
3442
3548
  right: `).concat(s, "px ").concat(o, `;
3443
3549
  }
3444
3550
 
3445
- .`).concat(Ft, ` {
3551
+ .`).concat(Ht, ` {
3446
3552
  margin-right: `).concat(s, "px ").concat(o, `;
3447
3553
  }
3448
3554
 
3449
- .`).concat(Lt, " .").concat(Lt, ` {
3555
+ .`).concat(Bt, " .").concat(Bt, ` {
3450
3556
  right: 0 `).concat(o, `;
3451
3557
  }
3452
3558
 
3453
- .`).concat(Ft, " .").concat(Ft, ` {
3559
+ .`).concat(Ht, " .").concat(Ht, ` {
3454
3560
  margin-right: 0 `).concat(o, `;
3455
3561
  }
3456
3562
 
@@ -3478,18 +3584,18 @@ var Zl = function() {
3478
3584
  }, $n = !1;
3479
3585
  if (typeof window < "u")
3480
3586
  try {
3481
- var Nt = Object.defineProperty({}, "passive", {
3587
+ var Ot = Object.defineProperty({}, "passive", {
3482
3588
  get: function() {
3483
3589
  return $n = !0, !0;
3484
3590
  }
3485
3591
  });
3486
- window.addEventListener("test", Nt, Nt), window.removeEventListener("test", Nt, Nt);
3592
+ window.addEventListener("test", Ot, Ot), window.removeEventListener("test", Ot, Ot);
3487
3593
  } catch {
3488
3594
  $n = !1;
3489
3595
  }
3490
3596
  var nt = $n ? { passive: !1 } : !1, iu = function(e) {
3491
3597
  return e.tagName === "TEXTAREA";
3492
- }, ni = function(e, t) {
3598
+ }, ri = function(e, t) {
3493
3599
  if (!(e instanceof Element))
3494
3600
  return !1;
3495
3601
  var n = window.getComputedStyle(e);
@@ -3499,16 +3605,16 @@ var nt = $n ? { passive: !1 } : !1, iu = function(e) {
3499
3605
  !(n.overflowY === n.overflowX && !iu(e) && n[t] === "visible")
3500
3606
  );
3501
3607
  }, su = function(e) {
3502
- return ni(e, "overflowY");
3608
+ return ri(e, "overflowY");
3503
3609
  }, au = function(e) {
3504
- return ni(e, "overflowX");
3610
+ return ri(e, "overflowX");
3505
3611
  }, qo = function(e, t) {
3506
3612
  var n = t.ownerDocument, o = t;
3507
3613
  do {
3508
3614
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
3509
- var r = oi(e, o);
3615
+ var r = ii(e, o);
3510
3616
  if (r) {
3511
- var i = ri(e, o), a = i[1], s = i[2];
3617
+ var i = si(e, o), a = i[1], s = i[2];
3512
3618
  if (a > s)
3513
3619
  return !0;
3514
3620
  }
@@ -3529,9 +3635,9 @@ var nt = $n ? { passive: !1 } : !1, iu = function(e) {
3529
3635
  n,
3530
3636
  o
3531
3637
  ];
3532
- }, oi = function(e, t) {
3638
+ }, ii = function(e, t) {
3533
3639
  return e === "v" ? su(t) : au(t);
3534
- }, ri = function(e, t) {
3640
+ }, si = function(e, t) {
3535
3641
  return e === "v" ? cu(t) : lu(t);
3536
3642
  }, uu = function(e, t) {
3537
3643
  return e === "h" && t === "rtl" ? -1 : 1;
@@ -3540,8 +3646,8 @@ var nt = $n ? { passive: !1 } : !1, iu = function(e) {
3540
3646
  do {
3541
3647
  if (!s)
3542
3648
  break;
3543
- var g = ri(e, s), w = g[0], m = g[1], v = g[2], b = m - v - i * w;
3544
- (w || b) && oi(e, s) && (c += b, h += w);
3649
+ var g = si(e, s), w = g[0], m = g[1], v = g[2], b = m - v - i * w;
3650
+ (w || b) && ii(e, s) && (c += b, h += w);
3545
3651
  var C = s.parentNode;
3546
3652
  s = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
3547
3653
  } while (
@@ -3550,7 +3656,7 @@ var nt = $n ? { passive: !1 } : !1, iu = function(e) {
3550
3656
  u && (t.contains(s) || t === s)
3551
3657
  );
3552
3658
  return (d && Math.abs(c) < 1 || !d && Math.abs(h) < 1) && (l = !0), l;
3553
- }, _t = function(e) {
3659
+ }, Dt = function(e) {
3554
3660
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3555
3661
  }, Jo = function(e) {
3556
3662
  return [e.deltaX, e.deltaY];
@@ -3565,7 +3671,7 @@ var nt = $n ? { passive: !1 } : !1, iu = function(e) {
3565
3671
  `);
3566
3672
  }, mu = 0, ot = [];
3567
3673
  function hu(e) {
3568
- var t = f.useRef([]), n = f.useRef([0, 0]), o = f.useRef(), r = f.useState(mu++)[0], i = f.useState(ti)[0], a = f.useRef(e);
3674
+ var t = f.useRef([]), n = f.useRef([0, 0]), o = f.useRef(), r = f.useState(mu++)[0], i = f.useState(oi)[0], a = f.useRef(e);
3569
3675
  f.useEffect(function() {
3570
3676
  a.current = e;
3571
3677
  }, [e]), f.useEffect(function() {
@@ -3584,11 +3690,11 @@ function hu(e) {
3584
3690
  var s = f.useCallback(function(m, v) {
3585
3691
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
3586
3692
  return !a.current.allowPinchZoom;
3587
- var b = _t(m), C = n.current, y = "deltaX" in m ? m.deltaX : C[0] - b[0], x = "deltaY" in m ? m.deltaY : C[1] - b[1], R, T = m.target, E = Math.abs(y) > Math.abs(x) ? "h" : "v";
3693
+ var b = Dt(m), C = n.current, y = "deltaX" in m ? m.deltaX : C[0] - b[0], x = "deltaY" in m ? m.deltaY : C[1] - b[1], R, T = m.target, E = Math.abs(y) > Math.abs(x) ? "h" : "v";
3588
3694
  if ("touches" in m && E === "h" && T.type === "range")
3589
3695
  return !1;
3590
- var S = window.getSelection(), M = S && S.anchorNode, I = M ? M === T || M.contains(T) : !1;
3591
- if (I)
3696
+ var S = window.getSelection(), I = S && S.anchorNode, P = I ? I === T || I.contains(T) : !1;
3697
+ if (P)
3592
3698
  return !1;
3593
3699
  var L = qo(E, T);
3594
3700
  if (!L)
@@ -3602,7 +3708,7 @@ function hu(e) {
3602
3708
  }, []), u = f.useCallback(function(m) {
3603
3709
  var v = m;
3604
3710
  if (!(!ot.length || ot[ot.length - 1] !== i)) {
3605
- var b = "deltaY" in v ? Jo(v) : _t(v), C = t.current.filter(function(R) {
3711
+ var b = "deltaY" in v ? Jo(v) : Dt(v), C = t.current.filter(function(R) {
3606
3712
  return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && fu(R.delta, b);
3607
3713
  })[0];
3608
3714
  if (C && C.should) {
@@ -3624,11 +3730,11 @@ function hu(e) {
3624
3730
  });
3625
3731
  }, 1);
3626
3732
  }, []), d = f.useCallback(function(m) {
3627
- n.current = _t(m), o.current = void 0;
3733
+ n.current = Dt(m), o.current = void 0;
3628
3734
  }, []), c = f.useCallback(function(m) {
3629
3735
  l(m.type, Jo(m), m.target, s(m, e.lockRef.current));
3630
3736
  }, []), h = f.useCallback(function(m) {
3631
- l(m.type, _t(m), m.target, s(m, e.lockRef.current));
3737
+ l(m.type, Dt(m), m.target, s(m, e.lockRef.current));
3632
3738
  }, []);
3633
3739
  f.useEffect(function() {
3634
3740
  return ot.push(i), e.setCallbacks({
@@ -3654,23 +3760,23 @@ function gu(e) {
3654
3760
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3655
3761
  return t;
3656
3762
  }
3657
- const vu = Gl(ei, hu);
3763
+ const vu = Gl(ni, hu);
3658
3764
  var ro = f.forwardRef(function(e, t) {
3659
- return f.createElement(tn, Se({}, e, { ref: t, sideCar: vu }));
3765
+ return f.createElement(an, Se({}, e, { ref: t, sideCar: vu }));
3660
3766
  });
3661
- ro.classNames = tn.classNames;
3662
- var Vn = ["Enter", " "], wu = ["ArrowDown", "PageUp", "Home"], ii = ["ArrowUp", "PageDown", "End"], yu = [...wu, ...ii], bu = {
3767
+ ro.classNames = an.classNames;
3768
+ var Vn = ["Enter", " "], wu = ["ArrowDown", "PageUp", "Home"], ai = ["ArrowUp", "PageDown", "End"], yu = [...wu, ...ai], bu = {
3663
3769
  ltr: [...Vn, "ArrowRight"],
3664
3770
  rtl: [...Vn, "ArrowLeft"]
3665
3771
  }, Cu = {
3666
3772
  ltr: ["ArrowLeft"],
3667
3773
  rtl: ["ArrowRight"]
3668
- }, St = "Menu", [yt, xu, Su] = zn(St), [Je, si] = qe(St, [
3774
+ }, Rt = "Menu", [Ct, xu, Su] = zn(Rt), [Je, ci] = qe(Rt, [
3669
3775
  Su,
3670
- Qt,
3671
- en
3672
- ]), nn = Qt(), ai = en(), [Eu, Qe] = Je(St), [Ru, Et] = Je(St), ci = (e) => {
3673
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = nn(t), [u, l] = f.useState(null), d = f.useRef(!1), c = Me(i), h = Yt(r);
3776
+ rn,
3777
+ sn
3778
+ ]), cn = rn(), li = sn(), [Eu, Qe] = Je(Rt), [Ru, Tt] = Je(Rt), ui = (e) => {
3779
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = cn(t), [u, l] = f.useState(null), d = f.useRef(!1), c = Ie(i), h = Qt(r);
3674
3780
  return f.useEffect(() => {
3675
3781
  const g = () => {
3676
3782
  d.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
@@ -3678,7 +3784,7 @@ var Vn = ["Enter", " "], wu = ["ArrowDown", "PageUp", "Home"], ii = ["ArrowUp",
3678
3784
  return document.addEventListener("keydown", g, { capture: !0 }), () => {
3679
3785
  document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
3680
3786
  };
3681
- }, []), /* @__PURE__ */ p(Vr, { ...s, children: /* @__PURE__ */ p(
3787
+ }, []), /* @__PURE__ */ p(Br, { ...s, children: /* @__PURE__ */ p(
3682
3788
  Eu,
3683
3789
  {
3684
3790
  scope: t,
@@ -3700,32 +3806,32 @@ var Vn = ["Enter", " "], wu = ["ArrowDown", "PageUp", "Home"], ii = ["ArrowUp",
3700
3806
  }
3701
3807
  ) });
3702
3808
  };
3703
- ci.displayName = St;
3809
+ ui.displayName = Rt;
3704
3810
  var Tu = "MenuAnchor", io = f.forwardRef(
3705
3811
  (e, t) => {
3706
- const { __scopeMenu: n, ...o } = e, r = nn(n);
3707
- return /* @__PURE__ */ p(Ur, { ...r, ...o, ref: t });
3812
+ const { __scopeMenu: n, ...o } = e, r = cn(n);
3813
+ return /* @__PURE__ */ p(Hr, { ...r, ...o, ref: t });
3708
3814
  }
3709
3815
  );
3710
3816
  io.displayName = Tu;
3711
- var so = "MenuPortal", [Au, li] = Je(so, {
3817
+ var so = "MenuPortal", [Au, di] = Je(so, {
3712
3818
  forceMount: void 0
3713
- }), ui = (e) => {
3819
+ }), fi = (e) => {
3714
3820
  const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = Qe(so, t);
3715
3821
  return /* @__PURE__ */ p(Au, { scope: t, forceMount: n, children: /* @__PURE__ */ p(ut, { present: n || i.open, children: /* @__PURE__ */ p(oo, { asChild: !0, container: r, children: o }) }) });
3716
3822
  };
3717
- ui.displayName = so;
3718
- var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3823
+ fi.displayName = so;
3824
+ var ve = "MenuContent", [Pu, ao] = Je(ve), pi = f.forwardRef(
3719
3825
  (e, t) => {
3720
- const n = li(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Qe(ve, e.__scopeMenu), a = Et(ve, e.__scopeMenu);
3721
- return /* @__PURE__ */ p(yt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(ut, { present: o || i.open, children: /* @__PURE__ */ p(yt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(Mu, { ...r, ref: t }) : /* @__PURE__ */ p(Pu, { ...r, ref: t }) }) }) });
3826
+ const n = di(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Qe(ve, e.__scopeMenu), a = Tt(ve, e.__scopeMenu);
3827
+ return /* @__PURE__ */ p(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(ut, { present: o || i.open, children: /* @__PURE__ */ p(Ct.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(Iu, { ...r, ref: t }) : /* @__PURE__ */ p(Mu, { ...r, ref: t }) }) }) });
3722
3828
  }
3723
- ), Mu = f.forwardRef(
3829
+ ), Iu = f.forwardRef(
3724
3830
  (e, t) => {
3725
3831
  const n = Qe(ve, e.__scopeMenu), o = f.useRef(null), r = Z(t, o);
3726
3832
  return f.useEffect(() => {
3727
3833
  const i = o.current;
3728
- if (i) return qr(i);
3834
+ if (i) return Qr(i);
3729
3835
  }, []), /* @__PURE__ */ p(
3730
3836
  co,
3731
3837
  {
@@ -3734,7 +3840,7 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3734
3840
  trapFocus: n.open,
3735
3841
  disableOutsidePointerEvents: n.open,
3736
3842
  disableOutsideScroll: !0,
3737
- onFocusOutside: P(
3843
+ onFocusOutside: M(
3738
3844
  e.onFocusOutside,
3739
3845
  (i) => i.preventDefault(),
3740
3846
  { checkForDefaultPrevented: !1 }
@@ -3743,7 +3849,7 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3743
3849
  }
3744
3850
  );
3745
3851
  }
3746
- ), Pu = f.forwardRef((e, t) => {
3852
+ ), Mu = f.forwardRef((e, t) => {
3747
3853
  const n = Qe(ve, e.__scopeMenu);
3748
3854
  return /* @__PURE__ */ p(
3749
3855
  co,
@@ -3756,7 +3862,7 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3756
3862
  onDismiss: () => n.onOpenChange(!1)
3757
3863
  }
3758
3864
  );
3759
- }), Nu = /* @__PURE__ */ gt("MenuContent.ScrollLock"), co = f.forwardRef(
3865
+ }), Nu = /* @__PURE__ */ wt("MenuContent.ScrollLock"), co = f.forwardRef(
3760
3866
  (e, t) => {
3761
3867
  const {
3762
3868
  __scopeMenu: n,
@@ -3773,23 +3879,23 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3773
3879
  onDismiss: g,
3774
3880
  disableOutsideScroll: w,
3775
3881
  ...m
3776
- } = e, v = Qe(ve, n), b = Et(ve, n), C = nn(n), y = ai(n), x = xu(n), [R, T] = f.useState(null), E = f.useRef(null), S = Z(t, E, v.onContentChange), M = f.useRef(0), I = f.useRef(""), L = f.useRef(0), D = f.useRef(null), $ = f.useRef("right"), V = f.useRef(0), z = w ? ro : f.Fragment, O = w ? { as: Nu, allowPinchZoom: !0 } : void 0, k = (A) => {
3882
+ } = e, v = Qe(ve, n), b = Tt(ve, n), C = cn(n), y = li(n), x = xu(n), [R, T] = f.useState(null), E = f.useRef(null), S = Z(t, E, v.onContentChange), I = f.useRef(0), P = f.useRef(""), L = f.useRef(0), D = f.useRef(null), $ = f.useRef("right"), V = f.useRef(0), z = w ? ro : f.Fragment, O = w ? { as: Nu, allowPinchZoom: !0 } : void 0, k = (A) => {
3777
3883
  var _, B;
3778
- const j = I.current + A, q = x().filter((W) => !W.disabled), te = document.activeElement, we = (_ = q.find((W) => W.ref.current === te)) == null ? void 0 : _.textValue, ce = q.map((W) => W.textValue), ye = Wu(ce, j, we), ie = (B = q.find((W) => W.textValue === ye)) == null ? void 0 : B.ref.current;
3884
+ const j = P.current + A, q = x().filter((W) => !W.disabled), te = document.activeElement, we = (_ = q.find((W) => W.ref.current === te)) == null ? void 0 : _.textValue, ce = q.map((W) => W.textValue), ye = Wu(ce, j, we), ie = (B = q.find((W) => W.textValue === ye)) == null ? void 0 : B.ref.current;
3779
3885
  (function W(K) {
3780
- I.current = K, window.clearTimeout(M.current), K !== "" && (M.current = window.setTimeout(() => W(""), 1e3));
3886
+ P.current = K, window.clearTimeout(I.current), K !== "" && (I.current = window.setTimeout(() => W(""), 1e3));
3781
3887
  })(j), ie && setTimeout(() => ie.focus());
3782
3888
  };
3783
- f.useEffect(() => () => window.clearTimeout(M.current), []), gr();
3889
+ f.useEffect(() => () => window.clearTimeout(I.current), []), wr();
3784
3890
  const N = f.useCallback((A) => {
3785
3891
  var q, te;
3786
3892
  return $.current === ((q = D.current) == null ? void 0 : q.side) && Gu(A, (te = D.current) == null ? void 0 : te.area);
3787
3893
  }, []);
3788
3894
  return /* @__PURE__ */ p(
3789
- Iu,
3895
+ Pu,
3790
3896
  {
3791
3897
  scope: n,
3792
- searchRef: I,
3898
+ searchRef: P,
3793
3899
  onItemEnter: f.useCallback(
3794
3900
  (A) => {
3795
3901
  N(A) && A.preventDefault();
@@ -3818,7 +3924,7 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3818
3924
  {
3819
3925
  asChild: !0,
3820
3926
  trapped: r,
3821
- onMountAutoFocus: P(i, (A) => {
3927
+ onMountAutoFocus: M(i, (A) => {
3822
3928
  var j;
3823
3929
  A.preventDefault(), (j = E.current) == null || j.focus({ preventScroll: !0 });
3824
3930
  }),
@@ -3834,7 +3940,7 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3834
3940
  onInteractOutside: h,
3835
3941
  onDismiss: g,
3836
3942
  children: /* @__PURE__ */ p(
3837
- Yr,
3943
+ Zr,
3838
3944
  {
3839
3945
  asChild: !0,
3840
3946
  ...y,
@@ -3843,37 +3949,37 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3843
3949
  loop: o,
3844
3950
  currentTabStopId: R,
3845
3951
  onCurrentTabStopIdChange: T,
3846
- onEntryFocus: P(u, (A) => {
3952
+ onEntryFocus: M(u, (A) => {
3847
3953
  b.isUsingKeyboardRef.current || A.preventDefault();
3848
3954
  }),
3849
3955
  preventScrollOnEntryFocus: !0,
3850
3956
  children: /* @__PURE__ */ p(
3851
- Br,
3957
+ Wr,
3852
3958
  {
3853
3959
  role: "menu",
3854
3960
  "aria-orientation": "vertical",
3855
- "data-state": Ai(v.open),
3961
+ "data-state": Ii(v.open),
3856
3962
  "data-radix-menu-content": "",
3857
3963
  dir: b.dir,
3858
3964
  ...C,
3859
3965
  ...m,
3860
3966
  ref: S,
3861
3967
  style: { outline: "none", ...m.style },
3862
- onKeyDown: P(m.onKeyDown, (A) => {
3968
+ onKeyDown: M(m.onKeyDown, (A) => {
3863
3969
  const q = A.target.closest("[data-radix-menu-content]") === A.currentTarget, te = A.ctrlKey || A.altKey || A.metaKey, we = A.key.length === 1;
3864
3970
  q && (A.key === "Tab" && A.preventDefault(), !te && we && k(A.key));
3865
3971
  const ce = E.current;
3866
3972
  if (A.target !== ce || !yu.includes(A.key)) return;
3867
3973
  A.preventDefault();
3868
3974
  const ie = x().filter((_) => !_.disabled).map((_) => _.ref.current);
3869
- ii.includes(A.key) && ie.reverse(), Bu(ie);
3975
+ ai.includes(A.key) && ie.reverse(), Bu(ie);
3870
3976
  }),
3871
- onBlur: P(e.onBlur, (A) => {
3872
- A.currentTarget.contains(A.target) || (window.clearTimeout(M.current), I.current = "");
3977
+ onBlur: M(e.onBlur, (A) => {
3978
+ A.currentTarget.contains(A.target) || (window.clearTimeout(I.current), P.current = "");
3873
3979
  }),
3874
- onPointerMove: P(
3980
+ onPointerMove: M(
3875
3981
  e.onPointerMove,
3876
- bt((A) => {
3982
+ xt((A) => {
3877
3983
  const j = A.target, q = V.current !== A.clientX;
3878
3984
  if (A.currentTarget.contains(j) && q) {
3879
3985
  const te = A.clientX > V.current ? "right" : "left";
@@ -3893,7 +3999,7 @@ var ve = "MenuContent", [Iu, ao] = Je(ve), di = f.forwardRef(
3893
3999
  );
3894
4000
  }
3895
4001
  );
3896
- di.displayName = ve;
4002
+ pi.displayName = ve;
3897
4003
  var _u = "MenuGroup", lo = f.forwardRef(
3898
4004
  (e, t) => {
3899
4005
  const { __scopeMenu: n, ...o } = e;
@@ -3901,38 +4007,38 @@ var _u = "MenuGroup", lo = f.forwardRef(
3901
4007
  }
3902
4008
  );
3903
4009
  lo.displayName = _u;
3904
- var Ou = "MenuLabel", fi = f.forwardRef(
4010
+ var Ou = "MenuLabel", mi = f.forwardRef(
3905
4011
  (e, t) => {
3906
4012
  const { __scopeMenu: n, ...o } = e;
3907
4013
  return /* @__PURE__ */ p(H.div, { ...o, ref: t });
3908
4014
  }
3909
4015
  );
3910
- fi.displayName = Ou;
3911
- var Ht = "MenuItem", er = "menu.itemSelect", on = f.forwardRef(
4016
+ mi.displayName = Ou;
4017
+ var jt = "MenuItem", er = "menu.itemSelect", ln = f.forwardRef(
3912
4018
  (e, t) => {
3913
- const { disabled: n = !1, onSelect: o, ...r } = e, i = f.useRef(null), a = Et(Ht, e.__scopeMenu), s = ao(Ht, e.__scopeMenu), u = Z(t, i), l = f.useRef(!1), d = () => {
4019
+ const { disabled: n = !1, onSelect: o, ...r } = e, i = f.useRef(null), a = Tt(jt, e.__scopeMenu), s = ao(jt, e.__scopeMenu), u = Z(t, i), l = f.useRef(!1), d = () => {
3914
4020
  const c = i.current;
3915
4021
  if (!n && c) {
3916
4022
  const h = new CustomEvent(er, { bubbles: !0, cancelable: !0 });
3917
- c.addEventListener(er, (g) => o == null ? void 0 : o(g), { once: !0 }), pr(c, h), h.defaultPrevented ? l.current = !1 : a.onClose();
4023
+ c.addEventListener(er, (g) => o == null ? void 0 : o(g), { once: !0 }), hr(c, h), h.defaultPrevented ? l.current = !1 : a.onClose();
3918
4024
  }
3919
4025
  };
3920
4026
  return /* @__PURE__ */ p(
3921
- pi,
4027
+ hi,
3922
4028
  {
3923
4029
  ...r,
3924
4030
  ref: u,
3925
4031
  disabled: n,
3926
- onClick: P(e.onClick, d),
4032
+ onClick: M(e.onClick, d),
3927
4033
  onPointerDown: (c) => {
3928
4034
  var h;
3929
4035
  (h = e.onPointerDown) == null || h.call(e, c), l.current = !0;
3930
4036
  },
3931
- onPointerUp: P(e.onPointerUp, (c) => {
4037
+ onPointerUp: M(e.onPointerUp, (c) => {
3932
4038
  var h;
3933
4039
  l.current || (h = c.currentTarget) == null || h.click();
3934
4040
  }),
3935
- onKeyDown: P(e.onKeyDown, (c) => {
4041
+ onKeyDown: M(e.onKeyDown, (c) => {
3936
4042
  const h = s.searchRef.current !== "";
3937
4043
  n || h && c.key === " " || Vn.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
3938
4044
  })
@@ -3940,20 +4046,20 @@ var Ht = "MenuItem", er = "menu.itemSelect", on = f.forwardRef(
3940
4046
  );
3941
4047
  }
3942
4048
  );
3943
- on.displayName = Ht;
3944
- var pi = f.forwardRef(
4049
+ ln.displayName = jt;
4050
+ var hi = f.forwardRef(
3945
4051
  (e, t) => {
3946
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = ao(Ht, n), s = ai(n), u = f.useRef(null), l = Z(t, u), [d, c] = f.useState(!1), [h, g] = f.useState("");
4052
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = ao(jt, n), s = li(n), u = f.useRef(null), l = Z(t, u), [d, c] = f.useState(!1), [h, g] = f.useState("");
3947
4053
  return f.useEffect(() => {
3948
4054
  const w = u.current;
3949
4055
  w && g((w.textContent ?? "").trim());
3950
4056
  }, [i.children]), /* @__PURE__ */ p(
3951
- yt.ItemSlot,
4057
+ Ct.ItemSlot,
3952
4058
  {
3953
4059
  scope: n,
3954
4060
  disabled: o,
3955
4061
  textValue: r ?? h,
3956
- children: /* @__PURE__ */ p(Xr, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ p(
4062
+ children: /* @__PURE__ */ p(qr, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ p(
3957
4063
  H.div,
3958
4064
  {
3959
4065
  role: "menuitem",
@@ -3962,67 +4068,67 @@ var pi = f.forwardRef(
3962
4068
  "data-disabled": o ? "" : void 0,
3963
4069
  ...i,
3964
4070
  ref: l,
3965
- onPointerMove: P(
4071
+ onPointerMove: M(
3966
4072
  e.onPointerMove,
3967
- bt((w) => {
4073
+ xt((w) => {
3968
4074
  o ? a.onItemLeave(w) : (a.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
3969
4075
  })
3970
4076
  ),
3971
- onPointerLeave: P(
4077
+ onPointerLeave: M(
3972
4078
  e.onPointerLeave,
3973
- bt((w) => a.onItemLeave(w))
4079
+ xt((w) => a.onItemLeave(w))
3974
4080
  ),
3975
- onFocus: P(e.onFocus, () => c(!0)),
3976
- onBlur: P(e.onBlur, () => c(!1))
4081
+ onFocus: M(e.onFocus, () => c(!0)),
4082
+ onBlur: M(e.onBlur, () => c(!1))
3977
4083
  }
3978
4084
  ) })
3979
4085
  }
3980
4086
  );
3981
4087
  }
3982
- ), Du = "MenuCheckboxItem", mi = f.forwardRef(
4088
+ ), Du = "MenuCheckboxItem", gi = f.forwardRef(
3983
4089
  (e, t) => {
3984
4090
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
3985
- return /* @__PURE__ */ p(yi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
3986
- on,
4091
+ return /* @__PURE__ */ p(Ci, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
4092
+ ln,
3987
4093
  {
3988
4094
  role: "menuitemcheckbox",
3989
- "aria-checked": Wt(n) ? "mixed" : n,
4095
+ "aria-checked": Yt(n) ? "mixed" : n,
3990
4096
  ...r,
3991
4097
  ref: t,
3992
4098
  "data-state": fo(n),
3993
- onSelect: P(
4099
+ onSelect: M(
3994
4100
  r.onSelect,
3995
- () => o == null ? void 0 : o(Wt(n) ? !0 : !n),
4101
+ () => o == null ? void 0 : o(Yt(n) ? !0 : !n),
3996
4102
  { checkForDefaultPrevented: !1 }
3997
4103
  )
3998
4104
  }
3999
4105
  ) });
4000
4106
  }
4001
4107
  );
4002
- mi.displayName = Du;
4003
- var hi = "MenuRadioGroup", [ku, Lu] = Je(
4004
- hi,
4108
+ gi.displayName = Du;
4109
+ var vi = "MenuRadioGroup", [ku, Lu] = Je(
4110
+ vi,
4005
4111
  { value: void 0, onValueChange: () => {
4006
4112
  } }
4007
- ), gi = f.forwardRef(
4113
+ ), wi = f.forwardRef(
4008
4114
  (e, t) => {
4009
- const { value: n, onValueChange: o, ...r } = e, i = Me(o);
4115
+ const { value: n, onValueChange: o, ...r } = e, i = Ie(o);
4010
4116
  return /* @__PURE__ */ p(ku, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(lo, { ...r, ref: t }) });
4011
4117
  }
4012
4118
  );
4013
- gi.displayName = hi;
4014
- var vi = "MenuRadioItem", wi = f.forwardRef(
4119
+ wi.displayName = vi;
4120
+ var yi = "MenuRadioItem", bi = f.forwardRef(
4015
4121
  (e, t) => {
4016
- const { value: n, ...o } = e, r = Lu(vi, e.__scopeMenu), i = n === r.value;
4017
- return /* @__PURE__ */ p(yi, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
4018
- on,
4122
+ const { value: n, ...o } = e, r = Lu(yi, e.__scopeMenu), i = n === r.value;
4123
+ return /* @__PURE__ */ p(Ci, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
4124
+ ln,
4019
4125
  {
4020
4126
  role: "menuitemradio",
4021
4127
  "aria-checked": i,
4022
4128
  ...o,
4023
4129
  ref: t,
4024
4130
  "data-state": fo(i),
4025
- onSelect: P(
4131
+ onSelect: M(
4026
4132
  o.onSelect,
4027
4133
  () => {
4028
4134
  var a;
@@ -4034,17 +4140,17 @@ var vi = "MenuRadioItem", wi = f.forwardRef(
4034
4140
  ) });
4035
4141
  }
4036
4142
  );
4037
- wi.displayName = vi;
4038
- var uo = "MenuItemIndicator", [yi, Fu] = Je(
4143
+ bi.displayName = yi;
4144
+ var uo = "MenuItemIndicator", [Ci, Fu] = Je(
4039
4145
  uo,
4040
4146
  { checked: !1 }
4041
- ), bi = f.forwardRef(
4147
+ ), xi = f.forwardRef(
4042
4148
  (e, t) => {
4043
4149
  const { __scopeMenu: n, forceMount: o, ...r } = e, i = Fu(uo, n);
4044
4150
  return /* @__PURE__ */ p(
4045
4151
  ut,
4046
4152
  {
4047
- present: o || Wt(i.checked) || i.checked === !0,
4153
+ present: o || Yt(i.checked) || i.checked === !0,
4048
4154
  children: /* @__PURE__ */ p(
4049
4155
  H.span,
4050
4156
  {
@@ -4057,8 +4163,8 @@ var uo = "MenuItemIndicator", [yi, Fu] = Je(
4057
4163
  );
4058
4164
  }
4059
4165
  );
4060
- bi.displayName = uo;
4061
- var $u = "MenuSeparator", Ci = f.forwardRef(
4166
+ xi.displayName = uo;
4167
+ var $u = "MenuSeparator", Si = f.forwardRef(
4062
4168
  (e, t) => {
4063
4169
  const { __scopeMenu: n, ...o } = e;
4064
4170
  return /* @__PURE__ */ p(
@@ -4072,17 +4178,17 @@ var $u = "MenuSeparator", Ci = f.forwardRef(
4072
4178
  );
4073
4179
  }
4074
4180
  );
4075
- Ci.displayName = $u;
4076
- var Vu = "MenuArrow", xi = f.forwardRef(
4181
+ Si.displayName = $u;
4182
+ var Vu = "MenuArrow", Ei = f.forwardRef(
4077
4183
  (e, t) => {
4078
- const { __scopeMenu: n, ...o } = e, r = nn(n);
4079
- return /* @__PURE__ */ p(Hr, { ...r, ...o, ref: t });
4184
+ const { __scopeMenu: n, ...o } = e, r = cn(n);
4185
+ return /* @__PURE__ */ p(Kr, { ...r, ...o, ref: t });
4080
4186
  }
4081
4187
  );
4082
- xi.displayName = Vu;
4083
- var Uu = "MenuSub", [hp, Si] = Je(Uu), ft = "MenuSubTrigger", Ei = f.forwardRef(
4188
+ Ei.displayName = Vu;
4189
+ var Uu = "MenuSub", [gp, Ri] = Je(Uu), mt = "MenuSubTrigger", Ti = f.forwardRef(
4084
4190
  (e, t) => {
4085
- const n = Qe(ft, e.__scopeMenu), o = Et(ft, e.__scopeMenu), r = Si(ft, e.__scopeMenu), i = ao(ft, e.__scopeMenu), a = f.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: u } = i, l = { __scopeMenu: e.__scopeMenu }, d = f.useCallback(() => {
4191
+ const n = Qe(mt, e.__scopeMenu), o = Tt(mt, e.__scopeMenu), r = Ri(mt, e.__scopeMenu), i = ao(mt, e.__scopeMenu), a = f.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: u } = i, l = { __scopeMenu: e.__scopeMenu }, d = f.useCallback(() => {
4086
4192
  a.current && window.clearTimeout(a.current), a.current = null;
4087
4193
  }, []);
4088
4194
  return f.useEffect(() => d, [d]), f.useEffect(() => {
@@ -4091,30 +4197,30 @@ var Uu = "MenuSub", [hp, Si] = Je(Uu), ft = "MenuSubTrigger", Ei = f.forwardRef(
4091
4197
  window.clearTimeout(c), u(null);
4092
4198
  };
4093
4199
  }, [s, u]), /* @__PURE__ */ p(io, { asChild: !0, ...l, children: /* @__PURE__ */ p(
4094
- pi,
4200
+ hi,
4095
4201
  {
4096
4202
  id: r.triggerId,
4097
4203
  "aria-haspopup": "menu",
4098
4204
  "aria-expanded": n.open,
4099
4205
  "aria-controls": r.contentId,
4100
- "data-state": Ai(n.open),
4206
+ "data-state": Ii(n.open),
4101
4207
  ...e,
4102
- ref: jt(t, r.onTriggerChange),
4208
+ ref: Jt(t, r.onTriggerChange),
4103
4209
  onClick: (c) => {
4104
4210
  var h;
4105
4211
  (h = e.onClick) == null || h.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
4106
4212
  },
4107
- onPointerMove: P(
4213
+ onPointerMove: M(
4108
4214
  e.onPointerMove,
4109
- bt((c) => {
4215
+ xt((c) => {
4110
4216
  i.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !a.current && (i.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
4111
4217
  n.onOpenChange(!0), d();
4112
4218
  }, 100));
4113
4219
  })
4114
4220
  ),
4115
- onPointerLeave: P(
4221
+ onPointerLeave: M(
4116
4222
  e.onPointerLeave,
4117
- bt((c) => {
4223
+ xt((c) => {
4118
4224
  var g, w;
4119
4225
  d();
4120
4226
  const h = (g = n.content) == null ? void 0 : g.getBoundingClientRect();
@@ -4141,7 +4247,7 @@ var Uu = "MenuSub", [hp, Si] = Je(Uu), ft = "MenuSubTrigger", Ei = f.forwardRef(
4141
4247
  }
4142
4248
  })
4143
4249
  ),
4144
- onKeyDown: P(e.onKeyDown, (c) => {
4250
+ onKeyDown: M(e.onKeyDown, (c) => {
4145
4251
  var g;
4146
4252
  const h = i.searchRef.current !== "";
4147
4253
  e.disabled || h && c.key === " " || bu[o.dir].includes(c.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), c.preventDefault());
@@ -4150,11 +4256,11 @@ var Uu = "MenuSub", [hp, Si] = Je(Uu), ft = "MenuSubTrigger", Ei = f.forwardRef(
4150
4256
  ) });
4151
4257
  }
4152
4258
  );
4153
- Ei.displayName = ft;
4154
- var Ri = "MenuSubContent", Ti = f.forwardRef(
4259
+ Ti.displayName = mt;
4260
+ var Ai = "MenuSubContent", Pi = f.forwardRef(
4155
4261
  (e, t) => {
4156
- const n = li(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Qe(ve, e.__scopeMenu), a = Et(ve, e.__scopeMenu), s = Si(Ri, e.__scopeMenu), u = f.useRef(null), l = Z(t, u);
4157
- return /* @__PURE__ */ p(yt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(ut, { present: o || i.open, children: /* @__PURE__ */ p(yt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4262
+ const n = di(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Qe(ve, e.__scopeMenu), a = Tt(ve, e.__scopeMenu), s = Ri(Ai, e.__scopeMenu), u = f.useRef(null), l = Z(t, u);
4263
+ return /* @__PURE__ */ p(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(ut, { present: o || i.open, children: /* @__PURE__ */ p(Ct.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4158
4264
  co,
4159
4265
  {
4160
4266
  id: s.contentId,
@@ -4171,13 +4277,13 @@ var Ri = "MenuSubContent", Ti = f.forwardRef(
4171
4277
  a.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), d.preventDefault();
4172
4278
  },
4173
4279
  onCloseAutoFocus: (d) => d.preventDefault(),
4174
- onFocusOutside: P(e.onFocusOutside, (d) => {
4280
+ onFocusOutside: M(e.onFocusOutside, (d) => {
4175
4281
  d.target !== s.trigger && i.onOpenChange(!1);
4176
4282
  }),
4177
- onEscapeKeyDown: P(e.onEscapeKeyDown, (d) => {
4283
+ onEscapeKeyDown: M(e.onEscapeKeyDown, (d) => {
4178
4284
  a.onClose(), d.preventDefault();
4179
4285
  }),
4180
- onKeyDown: P(e.onKeyDown, (d) => {
4286
+ onKeyDown: M(e.onKeyDown, (d) => {
4181
4287
  var g;
4182
4288
  const c = d.currentTarget.contains(d.target), h = Cu[a.dir].includes(d.key);
4183
4289
  c && h && (i.onOpenChange(!1), (g = s.trigger) == null || g.focus(), d.preventDefault());
@@ -4186,15 +4292,15 @@ var Ri = "MenuSubContent", Ti = f.forwardRef(
4186
4292
  ) }) }) });
4187
4293
  }
4188
4294
  );
4189
- Ti.displayName = Ri;
4190
- function Ai(e) {
4295
+ Pi.displayName = Ai;
4296
+ function Ii(e) {
4191
4297
  return e ? "open" : "closed";
4192
4298
  }
4193
- function Wt(e) {
4299
+ function Yt(e) {
4194
4300
  return e === "indeterminate";
4195
4301
  }
4196
4302
  function fo(e) {
4197
- return Wt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4303
+ return Yt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4198
4304
  }
4199
4305
  function Bu(e) {
4200
4306
  const t = document.activeElement;
@@ -4227,13 +4333,13 @@ function Gu(e, t) {
4227
4333
  const n = { x: e.clientX, y: e.clientY };
4228
4334
  return Ku(n, t);
4229
4335
  }
4230
- function bt(e) {
4336
+ function xt(e) {
4231
4337
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
4232
4338
  }
4233
- var zu = ci, ju = io, Yu = ui, Xu = di, Zu = lo, qu = fi, Ju = on, Qu = mi, ed = gi, td = wi, nd = bi, od = Ci, rd = xi, id = Ei, sd = Ti, rn = "DropdownMenu", [ad] = qe(
4234
- rn,
4235
- [si]
4236
- ), ae = si(), [cd, Ii] = ad(rn), Mi = (e) => {
4339
+ var zu = ui, ju = io, Yu = fi, Xu = pi, Zu = lo, qu = mi, Ju = ln, Qu = gi, ed = wi, td = bi, nd = xi, od = Si, rd = Ei, id = Ti, sd = Pi, un = "DropdownMenu", [ad] = qe(
4340
+ un,
4341
+ [ci]
4342
+ ), ae = ci(), [cd, Mi] = ad(un), Ni = (e) => {
4237
4343
  const {
4238
4344
  __scopeDropdownMenu: t,
4239
4345
  children: n,
@@ -4242,11 +4348,11 @@ var zu = ci, ju = io, Yu = ui, Xu = di, Zu = lo, qu = fi, Ju = on, Qu = mi, ed =
4242
4348
  defaultOpen: i,
4243
4349
  onOpenChange: a,
4244
4350
  modal: s = !0
4245
- } = e, u = ae(t), l = f.useRef(null), [d, c] = ht({
4351
+ } = e, u = ae(t), l = f.useRef(null), [d, c] = vt({
4246
4352
  prop: r,
4247
4353
  defaultProp: i ?? !1,
4248
4354
  onChange: a,
4249
- caller: rn
4355
+ caller: un
4250
4356
  });
4251
4357
  return /* @__PURE__ */ p(
4252
4358
  cd,
@@ -4263,10 +4369,10 @@ var zu = ci, ju = io, Yu = ui, Xu = di, Zu = lo, qu = fi, Ju = on, Qu = mi, ed =
4263
4369
  }
4264
4370
  );
4265
4371
  };
4266
- Mi.displayName = rn;
4267
- var Pi = "DropdownMenuTrigger", Ni = f.forwardRef(
4372
+ Ni.displayName = un;
4373
+ var _i = "DropdownMenuTrigger", Oi = f.forwardRef(
4268
4374
  (e, t) => {
4269
- const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Ii(Pi, n), a = ae(n);
4375
+ const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Mi(_i, n), a = ae(n);
4270
4376
  return /* @__PURE__ */ p(ju, { asChild: !0, ...a, children: /* @__PURE__ */ p(
4271
4377
  H.button,
4272
4378
  {
@@ -4279,26 +4385,26 @@ var Pi = "DropdownMenuTrigger", Ni = f.forwardRef(
4279
4385
  "data-disabled": o ? "" : void 0,
4280
4386
  disabled: o,
4281
4387
  ...r,
4282
- ref: jt(t, i.triggerRef),
4283
- onPointerDown: P(e.onPointerDown, (s) => {
4388
+ ref: Jt(t, i.triggerRef),
4389
+ onPointerDown: M(e.onPointerDown, (s) => {
4284
4390
  !o && s.button === 0 && s.ctrlKey === !1 && (i.onOpenToggle(), i.open || s.preventDefault());
4285
4391
  }),
4286
- onKeyDown: P(e.onKeyDown, (s) => {
4392
+ onKeyDown: M(e.onKeyDown, (s) => {
4287
4393
  o || (["Enter", " "].includes(s.key) && i.onOpenToggle(), s.key === "ArrowDown" && i.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(s.key) && s.preventDefault());
4288
4394
  })
4289
4395
  }
4290
4396
  ) });
4291
4397
  }
4292
4398
  );
4293
- Ni.displayName = Pi;
4294
- var ld = "DropdownMenuPortal", _i = (e) => {
4399
+ Oi.displayName = _i;
4400
+ var ld = "DropdownMenuPortal", Di = (e) => {
4295
4401
  const { __scopeDropdownMenu: t, ...n } = e, o = ae(t);
4296
4402
  return /* @__PURE__ */ p(Yu, { ...o, ...n });
4297
4403
  };
4298
- _i.displayName = ld;
4299
- var Oi = "DropdownMenuContent", Di = f.forwardRef(
4404
+ Di.displayName = ld;
4405
+ var ki = "DropdownMenuContent", Li = f.forwardRef(
4300
4406
  (e, t) => {
4301
- const { __scopeDropdownMenu: n, ...o } = e, r = Ii(Oi, n), i = ae(n), a = f.useRef(!1);
4407
+ const { __scopeDropdownMenu: n, ...o } = e, r = Mi(ki, n), i = ae(n), a = f.useRef(!1);
4302
4408
  return /* @__PURE__ */ p(
4303
4409
  Xu,
4304
4410
  {
@@ -4307,11 +4413,11 @@ var Oi = "DropdownMenuContent", Di = f.forwardRef(
4307
4413
  ...i,
4308
4414
  ...o,
4309
4415
  ref: t,
4310
- onCloseAutoFocus: P(e.onCloseAutoFocus, (s) => {
4416
+ onCloseAutoFocus: M(e.onCloseAutoFocus, (s) => {
4311
4417
  var u;
4312
4418
  a.current || (u = r.triggerRef.current) == null || u.focus(), a.current = !1, s.preventDefault();
4313
4419
  }),
4314
- onInteractOutside: P(e.onInteractOutside, (s) => {
4420
+ onInteractOutside: M(e.onInteractOutside, (s) => {
4315
4421
  const u = s.detail.originalEvent, l = u.button === 0 && u.ctrlKey === !0, d = u.button === 2 || l;
4316
4422
  (!r.modal || d) && (a.current = !0);
4317
4423
  }),
@@ -4327,7 +4433,7 @@ var Oi = "DropdownMenuContent", Di = f.forwardRef(
4327
4433
  );
4328
4434
  }
4329
4435
  );
4330
- Di.displayName = Oi;
4436
+ Li.displayName = ki;
4331
4437
  var ud = "DropdownMenuGroup", dd = f.forwardRef(
4332
4438
  (e, t) => {
4333
4439
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
@@ -4342,18 +4448,18 @@ var fd = "DropdownMenuLabel", pd = f.forwardRef(
4342
4448
  }
4343
4449
  );
4344
4450
  pd.displayName = fd;
4345
- var md = "DropdownMenuItem", ki = f.forwardRef(
4451
+ var md = "DropdownMenuItem", Fi = f.forwardRef(
4346
4452
  (e, t) => {
4347
4453
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
4348
4454
  return /* @__PURE__ */ p(Ju, { ...r, ...o, ref: t });
4349
4455
  }
4350
4456
  );
4351
- ki.displayName = md;
4352
- var hd = "DropdownMenuCheckboxItem", Li = f.forwardRef((e, t) => {
4457
+ Fi.displayName = md;
4458
+ var hd = "DropdownMenuCheckboxItem", $i = f.forwardRef((e, t) => {
4353
4459
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
4354
4460
  return /* @__PURE__ */ p(Qu, { ...r, ...o, ref: t });
4355
4461
  });
4356
- Li.displayName = hd;
4462
+ $i.displayName = hd;
4357
4463
  var gd = "DropdownMenuRadioGroup", vd = f.forwardRef((e, t) => {
4358
4464
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
4359
4465
  return /* @__PURE__ */ p(ed, { ...r, ...o, ref: t });
@@ -4364,16 +4470,16 @@ var wd = "DropdownMenuRadioItem", yd = f.forwardRef((e, t) => {
4364
4470
  return /* @__PURE__ */ p(td, { ...r, ...o, ref: t });
4365
4471
  });
4366
4472
  yd.displayName = wd;
4367
- var bd = "DropdownMenuItemIndicator", Fi = f.forwardRef((e, t) => {
4473
+ var bd = "DropdownMenuItemIndicator", Vi = f.forwardRef((e, t) => {
4368
4474
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
4369
4475
  return /* @__PURE__ */ p(nd, { ...r, ...o, ref: t });
4370
4476
  });
4371
- Fi.displayName = bd;
4372
- var Cd = "DropdownMenuSeparator", $i = f.forwardRef((e, t) => {
4477
+ Vi.displayName = bd;
4478
+ var Cd = "DropdownMenuSeparator", Ui = f.forwardRef((e, t) => {
4373
4479
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
4374
4480
  return /* @__PURE__ */ p(od, { ...r, ...o, ref: t });
4375
4481
  });
4376
- $i.displayName = Cd;
4482
+ Ui.displayName = Cd;
4377
4483
  var xd = "DropdownMenuArrow", Sd = f.forwardRef(
4378
4484
  (e, t) => {
4379
4485
  const { __scopeDropdownMenu: n, ...o } = e, r = ae(n);
@@ -4406,17 +4512,17 @@ var Td = "DropdownMenuSubContent", Ad = f.forwardRef((e, t) => {
4406
4512
  );
4407
4513
  });
4408
4514
  Ad.displayName = Td;
4409
- var Id = Mi, Md = Ni, Pd = _i, Nd = Di, _d = ki, Od = Li, Dd = Fi, kd = $i;
4515
+ var Pd = Ni, Id = Oi, Md = Di, Nd = Li, _d = Fi, Od = $i, Dd = Vi, kd = Ui;
4410
4516
  const Ld = "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto p-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", Fd = 'relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4', $d = 'relative flex cursor-default select-none items-center gap-2 py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4', Vd = "-mx-1 my-1 h-px";
4411
4517
  function Ud({ children: e }) {
4412
- return /* @__PURE__ */ p(Id, { children: e });
4518
+ return /* @__PURE__ */ p(Pd, { children: e });
4413
4519
  }
4414
4520
  function Bd({ asChild: e, children: t }) {
4415
- return /* @__PURE__ */ p(Md, { asChild: e, children: t });
4521
+ return /* @__PURE__ */ p(Id, { asChild: e, children: t });
4416
4522
  }
4417
4523
  function Hd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
4418
4524
  const r = re();
4419
- return /* @__PURE__ */ p(Pd, { children: /* @__PURE__ */ p(
4525
+ return /* @__PURE__ */ p(Md, { children: /* @__PURE__ */ p(
4420
4526
  Nd,
4421
4527
  {
4422
4528
  align: e,
@@ -4467,7 +4573,7 @@ const ee = {
4467
4573
  Separator: Gd
4468
4574
  };
4469
4575
  function zd({ table: e }) {
4470
- const { t } = at(), n = Pn(Ea()), o = Re(() => e.getAllColumns().filter((s) => {
4576
+ const { t } = at(), n = Mn(Ea()), o = Re(() => e.getAllColumns().filter((s) => {
4471
4577
  const u = s.columnDef.header;
4472
4578
  return !(!u || typeof u == "string" && u.trim() === "" || s.columnDef.enableHiding === !1);
4473
4579
  }), [e]), r = () => {
@@ -4477,7 +4583,7 @@ function zd({ table: e }) {
4477
4583
  s.toggleVisibility(l);
4478
4584
  });
4479
4585
  };
4480
- mt(() => {
4586
+ gt(() => {
4481
4587
  const s = xa(n.current);
4482
4588
  let u = !1;
4483
4589
  s ? (Object.entries(s).forEach(([l, d]) => {
@@ -4493,7 +4599,7 @@ function zd({ table: e }) {
4493
4599
  ...e.getState().columnVisibility,
4494
4600
  [s]: u
4495
4601
  };
4496
- Mo(n.current, d);
4602
+ Io(n.current, d);
4497
4603
  }
4498
4604
  }, a = () => {
4499
4605
  r();
@@ -4502,7 +4608,7 @@ function zd({ table: e }) {
4502
4608
  var d;
4503
4609
  const l = (d = u.columnDef.meta) == null ? void 0 : d.defaultHidden;
4504
4610
  s[u.id] = !l;
4505
- }), Mo(n.current, s);
4611
+ }), Io(n.current, s);
4506
4612
  };
4507
4613
  return /* @__PURE__ */ F(ee.Root, { children: [
4508
4614
  /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(Ro, { className: "h-4 w-4" }) }) }),
@@ -4541,7 +4647,7 @@ function Yd(e) {
4541
4647
  const t = f.useRef({ value: e, previous: e });
4542
4648
  return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
4543
4649
  }
4544
- var Vi = Object.freeze({
4650
+ var Bi = Object.freeze({
4545
4651
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
4546
4652
  position: "absolute",
4547
4653
  border: 0,
@@ -4559,15 +4665,15 @@ var Vi = Object.freeze({
4559
4665
  {
4560
4666
  ...e,
4561
4667
  ref: t,
4562
- style: { ...Vi, ...e.style }
4668
+ style: { ...Bi, ...e.style }
4563
4669
  }
4564
4670
  )
4565
4671
  );
4566
4672
  Zd.displayName = Xd;
4567
- var qd = [" ", "Enter", "ArrowUp", "ArrowDown"], Jd = [" ", "Enter"], Xe = "Select", [sn, an, Qd] = zn(Xe), [dt] = qe(Xe, [
4673
+ var qd = [" ", "Enter", "ArrowUp", "ArrowDown"], Jd = [" ", "Enter"], Xe = "Select", [dn, fn, Qd] = zn(Xe), [dt] = qe(Xe, [
4568
4674
  Qd,
4569
- Qt
4570
- ]), cn = Qt(), [ef, Ue] = dt(Xe), [tf, nf] = dt(Xe), Ui = (e) => {
4675
+ rn
4676
+ ]), pn = rn(), [ef, Ue] = dt(Xe), [tf, nf] = dt(Xe), Hi = (e) => {
4571
4677
  const {
4572
4678
  __scopeSelect: t,
4573
4679
  children: n,
@@ -4583,18 +4689,18 @@ var qd = [" ", "Enter", "ArrowUp", "ArrowDown"], Jd = [" ", "Enter"], Xe = "Sele
4583
4689
  disabled: h,
4584
4690
  required: g,
4585
4691
  form: w
4586
- } = e, m = cn(t), [v, b] = f.useState(null), [C, y] = f.useState(null), [x, R] = f.useState(!1), T = Yt(l), [E, S] = ht({
4692
+ } = e, m = pn(t), [v, b] = f.useState(null), [C, y] = f.useState(null), [x, R] = f.useState(!1), T = Qt(l), [E, S] = vt({
4587
4693
  prop: o,
4588
4694
  defaultProp: r ?? !1,
4589
4695
  onChange: i,
4590
4696
  caller: Xe
4591
- }), [M, I] = ht({
4697
+ }), [I, P] = vt({
4592
4698
  prop: a,
4593
4699
  defaultProp: s,
4594
4700
  onChange: u,
4595
4701
  caller: Xe
4596
4702
  }), L = f.useRef(null), D = v ? w || !!v.closest("form") : !0, [$, V] = f.useState(/* @__PURE__ */ new Set()), z = Array.from($).map((O) => O.props.value).join(";");
4597
- return /* @__PURE__ */ p(Vr, { ...m, children: /* @__PURE__ */ F(
4703
+ return /* @__PURE__ */ p(Br, { ...m, children: /* @__PURE__ */ F(
4598
4704
  ef,
4599
4705
  {
4600
4706
  required: g,
@@ -4606,15 +4712,15 @@ var qd = [" ", "Enter", "ArrowUp", "ArrowDown"], Jd = [" ", "Enter"], Xe = "Sele
4606
4712
  valueNodeHasChildren: x,
4607
4713
  onValueNodeHasChildrenChange: R,
4608
4714
  contentId: je(),
4609
- value: M,
4610
- onValueChange: I,
4715
+ value: I,
4716
+ onValueChange: P,
4611
4717
  open: E,
4612
4718
  onOpenChange: S,
4613
4719
  dir: T,
4614
4720
  triggerPointerDownPosRef: L,
4615
4721
  disabled: h,
4616
4722
  children: [
4617
- /* @__PURE__ */ p(sn.Provider, { scope: t, children: /* @__PURE__ */ p(
4723
+ /* @__PURE__ */ p(dn.Provider, { scope: t, children: /* @__PURE__ */ p(
4618
4724
  tf,
4619
4725
  {
4620
4726
  scope: e.__scopeSelect,
@@ -4631,19 +4737,19 @@ var qd = [" ", "Enter", "ArrowUp", "ArrowDown"], Jd = [" ", "Enter"], Xe = "Sele
4631
4737
  }
4632
4738
  ) }),
4633
4739
  D ? /* @__PURE__ */ F(
4634
- ss,
4740
+ cs,
4635
4741
  {
4636
4742
  "aria-hidden": !0,
4637
4743
  required: g,
4638
4744
  tabIndex: -1,
4639
4745
  name: d,
4640
4746
  autoComplete: c,
4641
- value: M,
4642
- onChange: (O) => I(O.target.value),
4747
+ value: I,
4748
+ onChange: (O) => P(O.target.value),
4643
4749
  disabled: h,
4644
4750
  form: w,
4645
4751
  children: [
4646
- M === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
4752
+ I === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
4647
4753
  Array.from($)
4648
4754
  ]
4649
4755
  },
@@ -4653,11 +4759,11 @@ var qd = [" ", "Enter", "ArrowUp", "ArrowDown"], Jd = [" ", "Enter"], Xe = "Sele
4653
4759
  }
4654
4760
  ) });
4655
4761
  };
4656
- Ui.displayName = Xe;
4657
- var Bi = "SelectTrigger", Hi = f.forwardRef(
4762
+ Hi.displayName = Xe;
4763
+ var Wi = "SelectTrigger", Ki = f.forwardRef(
4658
4764
  (e, t) => {
4659
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = cn(n), a = Ue(Bi, n), s = a.disabled || o, u = Z(t, a.onTriggerChange), l = an(n), d = f.useRef("touch"), [c, h, g] = cs((m) => {
4660
- const v = l().filter((y) => !y.disabled), b = v.find((y) => y.value === a.value), C = ls(v, m, b);
4765
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = pn(n), a = Ue(Wi, n), s = a.disabled || o, u = Z(t, a.onTriggerChange), l = fn(n), d = f.useRef("touch"), [c, h, g] = us((m) => {
4766
+ const v = l().filter((y) => !y.disabled), b = v.find((y) => y.value === a.value), C = ds(v, m, b);
4661
4767
  C !== void 0 && a.onValueChange(C.value);
4662
4768
  }), w = (m) => {
4663
4769
  s || (a.onOpenChange(!0), g()), m && (a.triggerPointerDownPosRef.current = {
@@ -4665,7 +4771,7 @@ var Bi = "SelectTrigger", Hi = f.forwardRef(
4665
4771
  y: Math.round(m.pageY)
4666
4772
  });
4667
4773
  };
4668
- return /* @__PURE__ */ p(Ur, { asChild: !0, ...i, children: /* @__PURE__ */ p(
4774
+ return /* @__PURE__ */ p(Hr, { asChild: !0, ...i, children: /* @__PURE__ */ p(
4669
4775
  H.button,
4670
4776
  {
4671
4777
  type: "button",
@@ -4678,18 +4784,18 @@ var Bi = "SelectTrigger", Hi = f.forwardRef(
4678
4784
  "data-state": a.open ? "open" : "closed",
4679
4785
  disabled: s,
4680
4786
  "data-disabled": s ? "" : void 0,
4681
- "data-placeholder": as(a.value) ? "" : void 0,
4787
+ "data-placeholder": ls(a.value) ? "" : void 0,
4682
4788
  ...r,
4683
4789
  ref: u,
4684
- onClick: P(r.onClick, (m) => {
4790
+ onClick: M(r.onClick, (m) => {
4685
4791
  m.currentTarget.focus(), d.current !== "mouse" && w(m);
4686
4792
  }),
4687
- onPointerDown: P(r.onPointerDown, (m) => {
4793
+ onPointerDown: M(r.onPointerDown, (m) => {
4688
4794
  d.current = m.pointerType;
4689
4795
  const v = m.target;
4690
4796
  v.hasPointerCapture(m.pointerId) && v.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (w(m), m.preventDefault());
4691
4797
  }),
4692
- onKeyDown: P(r.onKeyDown, (m) => {
4798
+ onKeyDown: M(r.onKeyDown, (m) => {
4693
4799
  const v = c.current !== "";
4694
4800
  !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && h(m.key), !(v && m.key === " ") && qd.includes(m.key) && (w(), m.preventDefault());
4695
4801
  })
@@ -4697,10 +4803,10 @@ var Bi = "SelectTrigger", Hi = f.forwardRef(
4697
4803
  ) });
4698
4804
  }
4699
4805
  );
4700
- Hi.displayName = Bi;
4701
- var Wi = "SelectValue", Ki = f.forwardRef(
4806
+ Ki.displayName = Wi;
4807
+ var Gi = "SelectValue", zi = f.forwardRef(
4702
4808
  (e, t) => {
4703
- const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, u = Ue(Wi, n), { onValueNodeHasChildrenChange: l } = u, d = i !== void 0, c = Z(t, u.onValueNodeChange);
4809
+ const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, u = Ue(Gi, n), { onValueNodeHasChildrenChange: l } = u, d = i !== void 0, c = Z(t, u.onValueNodeChange);
4704
4810
  return oe(() => {
4705
4811
  l(d);
4706
4812
  }, [l, d]), /* @__PURE__ */ p(
@@ -4709,38 +4815,38 @@ var Wi = "SelectValue", Ki = f.forwardRef(
4709
4815
  ...s,
4710
4816
  ref: c,
4711
4817
  style: { pointerEvents: "none" },
4712
- children: as(u.value) ? /* @__PURE__ */ p(Gt, { children: a }) : i
4818
+ children: ls(u.value) ? /* @__PURE__ */ p(Zt, { children: a }) : i
4713
4819
  }
4714
4820
  );
4715
4821
  }
4716
4822
  );
4717
- Ki.displayName = Wi;
4718
- var of = "SelectIcon", Gi = f.forwardRef(
4823
+ zi.displayName = Gi;
4824
+ var of = "SelectIcon", ji = f.forwardRef(
4719
4825
  (e, t) => {
4720
4826
  const { __scopeSelect: n, children: o, ...r } = e;
4721
4827
  return /* @__PURE__ */ p(H.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
4722
4828
  }
4723
4829
  );
4724
- Gi.displayName = of;
4725
- var rf = "SelectPortal", zi = (e) => /* @__PURE__ */ p(oo, { asChild: !0, ...e });
4726
- zi.displayName = rf;
4727
- var Ze = "SelectContent", ji = f.forwardRef(
4830
+ ji.displayName = of;
4831
+ var rf = "SelectPortal", Yi = (e) => /* @__PURE__ */ p(oo, { asChild: !0, ...e });
4832
+ Yi.displayName = rf;
4833
+ var Ze = "SelectContent", Xi = f.forwardRef(
4728
4834
  (e, t) => {
4729
4835
  const n = Ue(Ze, e.__scopeSelect), [o, r] = f.useState();
4730
4836
  if (oe(() => {
4731
4837
  r(new DocumentFragment());
4732
4838
  }, []), !n.open) {
4733
4839
  const i = o;
4734
- return i ? zt.createPortal(
4735
- /* @__PURE__ */ p(Yi, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(sn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4840
+ return i ? qt.createPortal(
4841
+ /* @__PURE__ */ p(Zi, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(dn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4736
4842
  i
4737
4843
  ) : null;
4738
4844
  }
4739
- return /* @__PURE__ */ p(Xi, { ...e, ref: t });
4845
+ return /* @__PURE__ */ p(qi, { ...e, ref: t });
4740
4846
  }
4741
4847
  );
4742
- ji.displayName = Ze;
4743
- var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ gt("SelectContent.RemoveScroll"), Xi = f.forwardRef(
4848
+ Xi.displayName = Ze;
4849
+ var be = 10, [Zi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ wt("SelectContent.RemoveScroll"), qi = f.forwardRef(
4744
4850
  (e, t) => {
4745
4851
  const {
4746
4852
  __scopeSelect: n,
@@ -4762,12 +4868,12 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4762
4868
  avoidCollisions: v,
4763
4869
  //
4764
4870
  ...b
4765
- } = e, C = Ue(Ze, n), [y, x] = f.useState(null), [R, T] = f.useState(null), E = Z(t, (_) => x(_)), [S, M] = f.useState(null), [I, L] = f.useState(
4871
+ } = e, C = Ue(Ze, n), [y, x] = f.useState(null), [R, T] = f.useState(null), E = Z(t, (_) => x(_)), [S, I] = f.useState(null), [P, L] = f.useState(
4766
4872
  null
4767
- ), D = an(n), [$, V] = f.useState(!1), z = f.useRef(!1);
4873
+ ), D = fn(n), [$, V] = f.useState(!1), z = f.useRef(!1);
4768
4874
  f.useEffect(() => {
4769
- if (y) return qr(y);
4770
- }, [y]), gr();
4875
+ if (y) return Qr(y);
4876
+ }, [y]), wr();
4771
4877
  const O = f.useCallback(
4772
4878
  (_) => {
4773
4879
  const [B, ...W] = D().map((U) => U.ref.current), [K] = W.slice(-1), G = document.activeElement;
@@ -4805,13 +4911,13 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4805
4911
  window.removeEventListener("blur", _), window.removeEventListener("resize", _);
4806
4912
  };
4807
4913
  }, [N]);
4808
- const [j, q] = cs((_) => {
4809
- const B = D().filter((G) => !G.disabled), W = B.find((G) => G.ref.current === document.activeElement), K = ls(B, _, W);
4914
+ const [j, q] = us((_) => {
4915
+ const B = D().filter((G) => !G.disabled), W = B.find((G) => G.ref.current === document.activeElement), K = ds(B, _, W);
4810
4916
  K && setTimeout(() => K.ref.current.focus());
4811
4917
  }), te = f.useCallback(
4812
4918
  (_, B, W) => {
4813
4919
  const K = !z.current && !W;
4814
- (C.value !== void 0 && C.value === B || K) && (M(_), K && (z.current = !0));
4920
+ (C.value !== void 0 && C.value === B || K) && (I(_), K && (z.current = !0));
4815
4921
  },
4816
4922
  [C.value]
4817
4923
  ), we = f.useCallback(() => y == null ? void 0 : y.focus(), [y]), ce = f.useCallback(
@@ -4820,7 +4926,7 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4820
4926
  (C.value !== void 0 && C.value === B || K) && L(_);
4821
4927
  },
4822
4928
  [C.value]
4823
- ), ye = o === "popper" ? Un : Zi, ie = ye === Un ? {
4929
+ ), ye = o === "popper" ? Un : Ji, ie = ye === Un ? {
4824
4930
  side: s,
4825
4931
  sideOffset: u,
4826
4932
  align: l,
@@ -4833,7 +4939,7 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4833
4939
  avoidCollisions: v
4834
4940
  } : {};
4835
4941
  return /* @__PURE__ */ p(
4836
- Yi,
4942
+ Zi,
4837
4943
  {
4838
4944
  scope: n,
4839
4945
  content: y,
@@ -4844,7 +4950,7 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4844
4950
  onItemLeave: we,
4845
4951
  itemTextRefCallback: ce,
4846
4952
  focusSelectedItem: k,
4847
- selectedItemText: I,
4953
+ selectedItemText: P,
4848
4954
  position: o,
4849
4955
  isPositioned: $,
4850
4956
  searchRef: j,
@@ -4856,7 +4962,7 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4856
4962
  onMountAutoFocus: (_) => {
4857
4963
  _.preventDefault();
4858
4964
  },
4859
- onUnmountAutoFocus: P(r, (_) => {
4965
+ onUnmountAutoFocus: M(r, (_) => {
4860
4966
  var B;
4861
4967
  (B = C.trigger) == null || B.focus({ preventScroll: !0 }), _.preventDefault();
4862
4968
  }),
@@ -4889,7 +4995,7 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4889
4995
  outline: "none",
4890
4996
  ...b.style
4891
4997
  },
4892
- onKeyDown: P(b.onKeyDown, (_) => {
4998
+ onKeyDown: M(b.onKeyDown, (_) => {
4893
4999
  const B = _.ctrlKey || _.altKey || _.metaKey;
4894
5000
  if (_.key === "Tab" && _.preventDefault(), !B && _.key.length === 1 && q(_.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(_.key)) {
4895
5001
  let K = D().filter((G) => !G.disabled).map((G) => G.ref.current);
@@ -4910,13 +5016,13 @@ var be = 10, [Yi, Be] = dt(Ze), sf = "SelectContentImpl", af = /* @__PURE__ */ g
4910
5016
  );
4911
5017
  }
4912
5018
  );
4913
- Xi.displayName = sf;
4914
- var cf = "SelectItemAlignedPosition", Zi = f.forwardRef((e, t) => {
4915
- const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ue(Ze, n), a = Be(Ze, n), [s, u] = f.useState(null), [l, d] = f.useState(null), c = Z(t, (E) => d(E)), h = an(n), g = f.useRef(!1), w = f.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: C } = a, y = f.useCallback(() => {
5019
+ qi.displayName = sf;
5020
+ var cf = "SelectItemAlignedPosition", Ji = f.forwardRef((e, t) => {
5021
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ue(Ze, n), a = Be(Ze, n), [s, u] = f.useState(null), [l, d] = f.useState(null), c = Z(t, (E) => d(E)), h = fn(n), g = f.useRef(!1), w = f.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: C } = a, y = f.useCallback(() => {
4916
5022
  if (i.trigger && i.valueNode && s && l && m && v && b) {
4917
- const E = i.trigger.getBoundingClientRect(), S = l.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), I = b.getBoundingClientRect();
5023
+ const E = i.trigger.getBoundingClientRect(), S = l.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(), P = b.getBoundingClientRect();
4918
5024
  if (i.dir !== "rtl") {
4919
- const G = I.left - S.left, U = M.left - G, se = E.left - U, me = E.width + se, He = Math.max(me, S.width), We = window.innerWidth - be, Ke = tr(U, [
5025
+ const G = P.left - S.left, U = I.left - G, se = E.left - U, me = E.width + se, He = Math.max(me, S.width), We = window.innerWidth - be, Ke = tr(U, [
4920
5026
  be,
4921
5027
  // Prevents the content from going off the starting edge of the
4922
5028
  // viewport. It may still go off the ending edge, but this can be
@@ -4927,7 +5033,7 @@ var cf = "SelectItemAlignedPosition", Zi = f.forwardRef((e, t) => {
4927
5033
  ]);
4928
5034
  s.style.minWidth = me + "px", s.style.left = Ke + "px";
4929
5035
  } else {
4930
- const G = S.right - I.right, U = window.innerWidth - M.right - G, se = window.innerWidth - E.right - U, me = E.width + se, He = Math.max(me, S.width), We = window.innerWidth - be, Ke = tr(U, [
5036
+ const G = S.right - P.right, U = window.innerWidth - I.right - G, se = window.innerWidth - E.right - U, me = E.width + se, He = Math.max(me, S.width), We = window.innerWidth - be, Ke = tr(U, [
4931
5037
  be,
4932
5038
  Math.max(be, We - He)
4933
5039
  ]);
@@ -5015,16 +5121,16 @@ var cf = "SelectItemAlignedPosition", Zi = f.forwardRef((e, t) => {
5015
5121
  }
5016
5122
  );
5017
5123
  });
5018
- Zi.displayName = cf;
5124
+ Ji.displayName = cf;
5019
5125
  var lf = "SelectPopperPosition", Un = f.forwardRef((e, t) => {
5020
5126
  const {
5021
5127
  __scopeSelect: n,
5022
5128
  align: o = "start",
5023
5129
  collisionPadding: r = be,
5024
5130
  ...i
5025
- } = e, a = cn(n);
5131
+ } = e, a = pn(n);
5026
5132
  return /* @__PURE__ */ p(
5027
- Br,
5133
+ Wr,
5028
5134
  {
5029
5135
  ...a,
5030
5136
  ...i,
@@ -5045,10 +5151,10 @@ var lf = "SelectPopperPosition", Un = f.forwardRef((e, t) => {
5045
5151
  );
5046
5152
  });
5047
5153
  Un.displayName = lf;
5048
- var [uf, po] = dt(Ze, {}), Bn = "SelectViewport", qi = f.forwardRef(
5154
+ var [uf, po] = dt(Ze, {}), Bn = "SelectViewport", Qi = f.forwardRef(
5049
5155
  (e, t) => {
5050
5156
  const { __scopeSelect: n, nonce: o, ...r } = e, i = Be(Bn, n), a = po(Bn, n), s = Z(t, i.onViewportChange), u = f.useRef(0);
5051
- return /* @__PURE__ */ F(Gt, { children: [
5157
+ return /* @__PURE__ */ F(Zt, { children: [
5052
5158
  /* @__PURE__ */ p(
5053
5159
  "style",
5054
5160
  {
@@ -5058,7 +5164,7 @@ var [uf, po] = dt(Ze, {}), Bn = "SelectViewport", qi = f.forwardRef(
5058
5164
  nonce: o
5059
5165
  }
5060
5166
  ),
5061
- /* @__PURE__ */ p(sn.Slot, { scope: n, children: /* @__PURE__ */ p(
5167
+ /* @__PURE__ */ p(dn.Slot, { scope: n, children: /* @__PURE__ */ p(
5062
5168
  H.div,
5063
5169
  {
5064
5170
  "data-radix-select-viewport": "",
@@ -5078,7 +5184,7 @@ var [uf, po] = dt(Ze, {}), Bn = "SelectViewport", qi = f.forwardRef(
5078
5184
  overflow: "hidden auto",
5079
5185
  ...r.style
5080
5186
  },
5081
- onScroll: P(r.onScroll, (l) => {
5187
+ onScroll: M(r.onScroll, (l) => {
5082
5188
  const d = l.currentTarget, { contentWrapper: c, shouldExpandOnScrollRef: h } = a;
5083
5189
  if (h != null && h.current && c) {
5084
5190
  const g = Math.abs(u.current - d.scrollTop);
@@ -5097,22 +5203,22 @@ var [uf, po] = dt(Ze, {}), Bn = "SelectViewport", qi = f.forwardRef(
5097
5203
  ] });
5098
5204
  }
5099
5205
  );
5100
- qi.displayName = Bn;
5101
- var Ji = "SelectGroup", [df, ff] = dt(Ji), pf = f.forwardRef(
5206
+ Qi.displayName = Bn;
5207
+ var es = "SelectGroup", [df, ff] = dt(es), pf = f.forwardRef(
5102
5208
  (e, t) => {
5103
5209
  const { __scopeSelect: n, ...o } = e, r = je();
5104
5210
  return /* @__PURE__ */ p(df, { scope: n, id: r, children: /* @__PURE__ */ p(H.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5105
5211
  }
5106
5212
  );
5107
- pf.displayName = Ji;
5108
- var Qi = "SelectLabel", mf = f.forwardRef(
5213
+ pf.displayName = es;
5214
+ var ts = "SelectLabel", mf = f.forwardRef(
5109
5215
  (e, t) => {
5110
- const { __scopeSelect: n, ...o } = e, r = ff(Qi, n);
5216
+ const { __scopeSelect: n, ...o } = e, r = ff(ts, n);
5111
5217
  return /* @__PURE__ */ p(H.div, { id: r.id, ...o, ref: t });
5112
5218
  }
5113
5219
  );
5114
- mf.displayName = Qi;
5115
- var Kt = "SelectItem", [hf, es] = dt(Kt), ts = f.forwardRef(
5220
+ mf.displayName = ts;
5221
+ var Xt = "SelectItem", [hf, ns] = dt(Xt), os = f.forwardRef(
5116
5222
  (e, t) => {
5117
5223
  const {
5118
5224
  __scopeSelect: n,
@@ -5120,7 +5226,7 @@ var Kt = "SelectItem", [hf, es] = dt(Kt), ts = f.forwardRef(
5120
5226
  disabled: r = !1,
5121
5227
  textValue: i,
5122
5228
  ...a
5123
- } = e, s = Ue(Kt, n), u = Be(Kt, n), l = s.value === o, [d, c] = f.useState(i ?? ""), [h, g] = f.useState(!1), w = Z(
5229
+ } = e, s = Ue(Xt, n), u = Be(Xt, n), l = s.value === o, [d, c] = f.useState(i ?? ""), [h, g] = f.useState(!1), w = Z(
5124
5230
  t,
5125
5231
  (C) => {
5126
5232
  var y;
@@ -5145,7 +5251,7 @@ var Kt = "SelectItem", [hf, es] = dt(Kt), ts = f.forwardRef(
5145
5251
  c((y) => y || ((C == null ? void 0 : C.textContent) ?? "").trim());
5146
5252
  }, []),
5147
5253
  children: /* @__PURE__ */ p(
5148
- sn.ItemSlot,
5254
+ dn.ItemSlot,
5149
5255
  {
5150
5256
  scope: n,
5151
5257
  value: o,
@@ -5164,26 +5270,26 @@ var Kt = "SelectItem", [hf, es] = dt(Kt), ts = f.forwardRef(
5164
5270
  tabIndex: r ? void 0 : -1,
5165
5271
  ...a,
5166
5272
  ref: w,
5167
- onFocus: P(a.onFocus, () => g(!0)),
5168
- onBlur: P(a.onBlur, () => g(!1)),
5169
- onClick: P(a.onClick, () => {
5273
+ onFocus: M(a.onFocus, () => g(!0)),
5274
+ onBlur: M(a.onBlur, () => g(!1)),
5275
+ onClick: M(a.onClick, () => {
5170
5276
  v.current !== "mouse" && b();
5171
5277
  }),
5172
- onPointerUp: P(a.onPointerUp, () => {
5278
+ onPointerUp: M(a.onPointerUp, () => {
5173
5279
  v.current === "mouse" && b();
5174
5280
  }),
5175
- onPointerDown: P(a.onPointerDown, (C) => {
5281
+ onPointerDown: M(a.onPointerDown, (C) => {
5176
5282
  v.current = C.pointerType;
5177
5283
  }),
5178
- onPointerMove: P(a.onPointerMove, (C) => {
5284
+ onPointerMove: M(a.onPointerMove, (C) => {
5179
5285
  var y;
5180
5286
  v.current = C.pointerType, r ? (y = u.onItemLeave) == null || y.call(u) : v.current === "mouse" && C.currentTarget.focus({ preventScroll: !0 });
5181
5287
  }),
5182
- onPointerLeave: P(a.onPointerLeave, (C) => {
5288
+ onPointerLeave: M(a.onPointerLeave, (C) => {
5183
5289
  var y;
5184
5290
  C.currentTarget === document.activeElement && ((y = u.onItemLeave) == null || y.call(u));
5185
5291
  }),
5186
- onKeyDown: P(a.onKeyDown, (C) => {
5292
+ onKeyDown: M(a.onKeyDown, (C) => {
5187
5293
  var x;
5188
5294
  ((x = u.searchRef) == null ? void 0 : x.current) !== "" && C.key === " " || (Jd.includes(C.key) && b(), C.key === " " && C.preventDefault());
5189
5295
  })
@@ -5195,10 +5301,10 @@ var Kt = "SelectItem", [hf, es] = dt(Kt), ts = f.forwardRef(
5195
5301
  );
5196
5302
  }
5197
5303
  );
5198
- ts.displayName = Kt;
5199
- var pt = "SelectItemText", ns = f.forwardRef(
5304
+ os.displayName = Xt;
5305
+ var ht = "SelectItemText", rs = f.forwardRef(
5200
5306
  (e, t) => {
5201
- const { __scopeSelect: n, className: o, style: r, ...i } = e, a = Ue(pt, n), s = Be(pt, n), u = es(pt, n), l = nf(pt, n), [d, c] = f.useState(null), h = Z(
5307
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, a = Ue(ht, n), s = Be(ht, n), u = ns(ht, n), l = nf(ht, n), [d, c] = f.useState(null), h = Z(
5202
5308
  t,
5203
5309
  (b) => c(b),
5204
5310
  u.onItemTextChange,
@@ -5210,20 +5316,20 @@ var pt = "SelectItemText", ns = f.forwardRef(
5210
5316
  () => /* @__PURE__ */ p("option", { value: u.value, disabled: u.disabled, children: g }, u.value),
5211
5317
  [u.disabled, u.value, g]
5212
5318
  ), { onNativeOptionAdd: m, onNativeOptionRemove: v } = l;
5213
- return oe(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ F(Gt, { children: [
5319
+ return oe(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ F(Zt, { children: [
5214
5320
  /* @__PURE__ */ p(H.span, { id: u.textId, ...i, ref: h }),
5215
- u.isSelected && a.valueNode && !a.valueNodeHasChildren ? zt.createPortal(i.children, a.valueNode) : null
5321
+ u.isSelected && a.valueNode && !a.valueNodeHasChildren ? qt.createPortal(i.children, a.valueNode) : null
5216
5322
  ] });
5217
5323
  }
5218
5324
  );
5219
- ns.displayName = pt;
5220
- var os = "SelectItemIndicator", rs = f.forwardRef(
5325
+ rs.displayName = ht;
5326
+ var is = "SelectItemIndicator", ss = f.forwardRef(
5221
5327
  (e, t) => {
5222
5328
  const { __scopeSelect: n, ...o } = e;
5223
- return es(os, n).isSelected ? /* @__PURE__ */ p(H.span, { "aria-hidden": !0, ...o, ref: t }) : null;
5329
+ return ns(is, n).isSelected ? /* @__PURE__ */ p(H.span, { "aria-hidden": !0, ...o, ref: t }) : null;
5224
5330
  }
5225
5331
  );
5226
- rs.displayName = os;
5332
+ ss.displayName = is;
5227
5333
  var Hn = "SelectScrollUpButton", gf = f.forwardRef((e, t) => {
5228
5334
  const n = Be(Hn, e.__scopeSelect), o = po(Hn, e.__scopeSelect), [r, i] = f.useState(!1), a = Z(t, o.onScrollButtonChange);
5229
5335
  return oe(() => {
@@ -5236,7 +5342,7 @@ var Hn = "SelectScrollUpButton", gf = f.forwardRef((e, t) => {
5236
5342
  return s(), u.addEventListener("scroll", s), () => u.removeEventListener("scroll", s);
5237
5343
  }
5238
5344
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
5239
- is,
5345
+ as,
5240
5346
  {
5241
5347
  ...e,
5242
5348
  ref: a,
@@ -5260,7 +5366,7 @@ var Wn = "SelectScrollDownButton", vf = f.forwardRef((e, t) => {
5260
5366
  return s(), u.addEventListener("scroll", s), () => u.removeEventListener("scroll", s);
5261
5367
  }
5262
5368
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
5263
- is,
5369
+ as,
5264
5370
  {
5265
5371
  ...e,
5266
5372
  ref: a,
@@ -5272,8 +5378,8 @@ var Wn = "SelectScrollDownButton", vf = f.forwardRef((e, t) => {
5272
5378
  ) : null;
5273
5379
  });
5274
5380
  vf.displayName = Wn;
5275
- var is = f.forwardRef((e, t) => {
5276
- const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Be("SelectScrollButton", n), a = f.useRef(null), s = an(n), u = f.useCallback(() => {
5381
+ var as = f.forwardRef((e, t) => {
5382
+ const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Be("SelectScrollButton", n), a = f.useRef(null), s = fn(n), u = f.useCallback(() => {
5277
5383
  a.current !== null && (window.clearInterval(a.current), a.current = null);
5278
5384
  }, []);
5279
5385
  return f.useEffect(() => () => u(), [u]), oe(() => {
@@ -5287,14 +5393,14 @@ var is = f.forwardRef((e, t) => {
5287
5393
  ...r,
5288
5394
  ref: t,
5289
5395
  style: { flexShrink: 0, ...r.style },
5290
- onPointerDown: P(r.onPointerDown, () => {
5396
+ onPointerDown: M(r.onPointerDown, () => {
5291
5397
  a.current === null && (a.current = window.setInterval(o, 50));
5292
5398
  }),
5293
- onPointerMove: P(r.onPointerMove, () => {
5399
+ onPointerMove: M(r.onPointerMove, () => {
5294
5400
  var l;
5295
5401
  (l = i.onItemLeave) == null || l.call(i), a.current === null && (a.current = window.setInterval(o, 50));
5296
5402
  }),
5297
- onPointerLeave: P(r.onPointerLeave, () => {
5403
+ onPointerLeave: M(r.onPointerLeave, () => {
5298
5404
  u();
5299
5405
  })
5300
5406
  }
@@ -5308,12 +5414,12 @@ var is = f.forwardRef((e, t) => {
5308
5414
  yf.displayName = wf;
5309
5415
  var Kn = "SelectArrow", bf = f.forwardRef(
5310
5416
  (e, t) => {
5311
- const { __scopeSelect: n, ...o } = e, r = cn(n), i = Ue(Kn, n), a = Be(Kn, n);
5312
- return i.open && a.position === "popper" ? /* @__PURE__ */ p(Hr, { ...r, ...o, ref: t }) : null;
5417
+ const { __scopeSelect: n, ...o } = e, r = pn(n), i = Ue(Kn, n), a = Be(Kn, n);
5418
+ return i.open && a.position === "popper" ? /* @__PURE__ */ p(Kr, { ...r, ...o, ref: t }) : null;
5313
5419
  }
5314
5420
  );
5315
5421
  bf.displayName = Kn;
5316
- var Cf = "SelectBubbleInput", ss = f.forwardRef(
5422
+ var Cf = "SelectBubbleInput", cs = f.forwardRef(
5317
5423
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5318
5424
  const r = f.useRef(null), i = Z(o, r), a = Yd(t);
5319
5425
  return f.useEffect(() => {
@@ -5331,19 +5437,19 @@ var Cf = "SelectBubbleInput", ss = f.forwardRef(
5331
5437
  H.select,
5332
5438
  {
5333
5439
  ...n,
5334
- style: { ...Vi, ...n.style },
5440
+ style: { ...Bi, ...n.style },
5335
5441
  ref: i,
5336
5442
  defaultValue: t
5337
5443
  }
5338
5444
  );
5339
5445
  }
5340
5446
  );
5341
- ss.displayName = Cf;
5342
- function as(e) {
5447
+ cs.displayName = Cf;
5448
+ function ls(e) {
5343
5449
  return e === "" || e === void 0;
5344
5450
  }
5345
- function cs(e) {
5346
- const t = Me(e), n = f.useRef(""), o = f.useRef(0), r = f.useCallback(
5451
+ function us(e) {
5452
+ const t = Ie(e), n = f.useRef(""), o = f.useRef(0), r = f.useCallback(
5347
5453
  (a) => {
5348
5454
  const s = n.current + a;
5349
5455
  t(s), (function u(l) {
@@ -5356,7 +5462,7 @@ function cs(e) {
5356
5462
  }, []);
5357
5463
  return f.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, i];
5358
5464
  }
5359
- function ls(e, t, n) {
5465
+ function ds(e, t, n) {
5360
5466
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
5361
5467
  let a = xf(e, Math.max(i, 0));
5362
5468
  r.length === 1 && (a = a.filter((l) => l !== n));
@@ -5368,7 +5474,7 @@ function ls(e, t, n) {
5368
5474
  function xf(e, t) {
5369
5475
  return e.map((n, o) => e[(t + o) % e.length]);
5370
5476
  }
5371
- var Sf = Ui, Ef = Hi, Rf = Ki, Tf = Gi, Af = zi, If = ji, Mf = qi, Pf = ts, Nf = ns, _f = rs;
5477
+ var Sf = Hi, Ef = Ki, Rf = zi, Tf = ji, Af = Yi, Pf = Xi, If = Qi, Mf = os, Nf = rs, _f = ss;
5372
5478
  const Of = "flex h-9 w-full items-center justify-between gap-2 px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1", Df = "relative z-50 max-h-96 min-w-[8rem] overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", kf = "p-1 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]", Lf = "relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
5373
5479
  function Ff({ value: e, onValueChange: t, children: n }) {
5374
5480
  return /* @__PURE__ */ p(Sf, { value: e, onValueChange: t, children: n });
@@ -5377,7 +5483,7 @@ function $f({ className: e, children: t }) {
5377
5483
  const n = re();
5378
5484
  return /* @__PURE__ */ F(Ef, { className: X(Of, n.select.trigger, e), children: [
5379
5485
  t,
5380
- /* @__PURE__ */ p(Tf, { asChild: !0, children: /* @__PURE__ */ p(Ys, { className: "h-4 w-4 opacity-50" }) })
5486
+ /* @__PURE__ */ p(Tf, { asChild: !0, children: /* @__PURE__ */ p(Xs, { className: "h-4 w-4 opacity-50" }) })
5381
5487
  ] });
5382
5488
  }
5383
5489
  function Vf({ placeholder: e }) {
@@ -5386,19 +5492,19 @@ function Vf({ placeholder: e }) {
5386
5492
  function Uf({ children: e }) {
5387
5493
  const t = re();
5388
5494
  return /* @__PURE__ */ p(Af, { children: /* @__PURE__ */ p(
5389
- If,
5495
+ Pf,
5390
5496
  {
5391
5497
  className: X(Df, t.select.content),
5392
5498
  position: "popper",
5393
5499
  sideOffset: 4,
5394
- children: /* @__PURE__ */ p(Mf, { className: kf, children: e })
5500
+ children: /* @__PURE__ */ p(If, { className: kf, children: e })
5395
5501
  }
5396
5502
  ) });
5397
5503
  }
5398
5504
  function Bf({ value: e, children: t }) {
5399
5505
  const n = re();
5400
5506
  return /* @__PURE__ */ F(
5401
- Pf,
5507
+ Mf,
5402
5508
  {
5403
5509
  value: e,
5404
5510
  className: X(Lf, n.select.item, "focus:bg-accent focus:text-accent-foreground"),
@@ -5415,7 +5521,7 @@ const Ee = {
5415
5521
  Value: Vf,
5416
5522
  Content: Uf,
5417
5523
  Item: Bf
5418
- }, ln = [25, 50, 100];
5524
+ }, mn = [25, 50, 100];
5419
5525
  function Hf({ table: e, isLoading: t }) {
5420
5526
  return /* @__PURE__ */ p("div", { className: "flex items-center justify-center px-2 py-4", children: /* @__PURE__ */ F("div", { className: "flex items-center gap-2", children: [
5421
5527
  /* @__PURE__ */ p(
@@ -5424,7 +5530,7 @@ function Hf({ table: e, isLoading: t }) {
5424
5530
  className: "h-9 w-9 p-0",
5425
5531
  onClick: () => e.setPageIndex(0),
5426
5532
  disabled: !e.getCanPreviousPage() || t,
5427
- children: /* @__PURE__ */ p(Bs, { className: "h-4 w-4" })
5533
+ children: /* @__PURE__ */ p(Hs, { className: "h-4 w-4" })
5428
5534
  }
5429
5535
  ),
5430
5536
  /* @__PURE__ */ p(
@@ -5433,11 +5539,11 @@ function Hf({ table: e, isLoading: t }) {
5433
5539
  className: "h-9 w-9 p-0",
5434
5540
  onClick: () => e.previousPage(),
5435
5541
  disabled: !e.getCanPreviousPage() || t,
5436
- children: /* @__PURE__ */ p(Vs, { className: "h-4 w-4" })
5542
+ children: /* @__PURE__ */ p(Us, { className: "h-4 w-4" })
5437
5543
  }
5438
5544
  ),
5439
5545
  /* @__PURE__ */ F("div", { className: "flex items-center gap-2 px-4", children: [
5440
- /* @__PURE__ */ p("div", { className: "flex h-8 w-8 items-center justify-center rounded-md border bg-background", children: t ? /* @__PURE__ */ p(zs, { className: "h-4 w-4 animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
5546
+ /* @__PURE__ */ p("div", { className: "flex h-8 w-8 items-center justify-center rounded-md border bg-background", children: t ? /* @__PURE__ */ p(js, { className: "h-4 w-4 animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
5441
5547
  /* @__PURE__ */ F("span", { className: "text-sm text-muted-foreground", children: [
5442
5548
  "de ",
5443
5549
  e.getPageCount()
@@ -5449,7 +5555,7 @@ function Hf({ table: e, isLoading: t }) {
5449
5555
  className: "h-9 w-9 p-0",
5450
5556
  onClick: () => e.nextPage(),
5451
5557
  disabled: !e.getCanNextPage() || t,
5452
- children: /* @__PURE__ */ p(Us, { className: "h-4 w-4" })
5558
+ children: /* @__PURE__ */ p(Bs, { className: "h-4 w-4" })
5453
5559
  }
5454
5560
  ),
5455
5561
  /* @__PURE__ */ p(
@@ -5458,14 +5564,14 @@ function Hf({ table: e, isLoading: t }) {
5458
5564
  className: "h-9 w-9 p-0",
5459
5565
  onClick: () => e.setPageIndex(e.getPageCount() - 1),
5460
5566
  disabled: !e.getCanNextPage() || t,
5461
- children: /* @__PURE__ */ p(Hs, { className: "h-4 w-4" })
5567
+ children: /* @__PURE__ */ p(Ws, { className: "h-4 w-4" })
5462
5568
  }
5463
5569
  )
5464
5570
  ] }) });
5465
5571
  }
5466
5572
  function Wf({
5467
5573
  table: e,
5468
- paginationSizes: t = ln,
5574
+ paginationSizes: t = mn,
5469
5575
  enableElementLabel: n = !0
5470
5576
  }) {
5471
5577
  const { t: o } = at();
@@ -5486,9 +5592,9 @@ function Wf({
5486
5592
  )
5487
5593
  ] });
5488
5594
  }
5489
- var un = "Tabs", [Kf] = qe(un, [
5490
- en
5491
- ]), us = en(), [Gf, mo] = Kf(un), ds = f.forwardRef(
5595
+ var hn = "Tabs", [Kf] = qe(hn, [
5596
+ sn
5597
+ ]), fs = sn(), [Gf, mo] = Kf(hn), ps = f.forwardRef(
5492
5598
  (e, t) => {
5493
5599
  const {
5494
5600
  __scopeTabs: n,
@@ -5499,11 +5605,11 @@ var un = "Tabs", [Kf] = qe(un, [
5499
5605
  dir: s,
5500
5606
  activationMode: u = "automatic",
5501
5607
  ...l
5502
- } = e, d = Yt(s), [c, h] = ht({
5608
+ } = e, d = Qt(s), [c, h] = vt({
5503
5609
  prop: o,
5504
5610
  onChange: r,
5505
5611
  defaultProp: i ?? "",
5506
- caller: un
5612
+ caller: hn
5507
5613
  });
5508
5614
  return /* @__PURE__ */ p(
5509
5615
  Gf,
@@ -5528,12 +5634,12 @@ var un = "Tabs", [Kf] = qe(un, [
5528
5634
  );
5529
5635
  }
5530
5636
  );
5531
- ds.displayName = un;
5532
- var fs = "TabsList", ps = f.forwardRef(
5637
+ ps.displayName = hn;
5638
+ var ms = "TabsList", hs = f.forwardRef(
5533
5639
  (e, t) => {
5534
- const { __scopeTabs: n, loop: o = !0, ...r } = e, i = mo(fs, n), a = us(n);
5640
+ const { __scopeTabs: n, loop: o = !0, ...r } = e, i = mo(ms, n), a = fs(n);
5535
5641
  return /* @__PURE__ */ p(
5536
- Yr,
5642
+ Zr,
5537
5643
  {
5538
5644
  asChild: !0,
5539
5645
  ...a,
@@ -5553,12 +5659,12 @@ var fs = "TabsList", ps = f.forwardRef(
5553
5659
  );
5554
5660
  }
5555
5661
  );
5556
- ps.displayName = fs;
5557
- var ms = "TabsTrigger", hs = f.forwardRef(
5662
+ hs.displayName = ms;
5663
+ var gs = "TabsTrigger", vs = f.forwardRef(
5558
5664
  (e, t) => {
5559
- const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = mo(ms, n), s = us(n), u = vs(a.baseId, o), l = ws(a.baseId, o), d = o === a.value;
5665
+ const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = mo(gs, n), s = fs(n), u = ys(a.baseId, o), l = bs(a.baseId, o), d = o === a.value;
5560
5666
  return /* @__PURE__ */ p(
5561
- Xr,
5667
+ qr,
5562
5668
  {
5563
5669
  asChild: !0,
5564
5670
  ...s,
@@ -5577,13 +5683,13 @@ var ms = "TabsTrigger", hs = f.forwardRef(
5577
5683
  id: u,
5578
5684
  ...i,
5579
5685
  ref: t,
5580
- onMouseDown: P(e.onMouseDown, (c) => {
5686
+ onMouseDown: M(e.onMouseDown, (c) => {
5581
5687
  !r && c.button === 0 && c.ctrlKey === !1 ? a.onValueChange(o) : c.preventDefault();
5582
5688
  }),
5583
- onKeyDown: P(e.onKeyDown, (c) => {
5689
+ onKeyDown: M(e.onKeyDown, (c) => {
5584
5690
  [" ", "Enter"].includes(c.key) && a.onValueChange(o);
5585
5691
  }),
5586
- onFocus: P(e.onFocus, () => {
5692
+ onFocus: M(e.onFocus, () => {
5587
5693
  const c = a.activationMode !== "manual";
5588
5694
  !d && !r && c && a.onValueChange(o);
5589
5695
  })
@@ -5593,10 +5699,10 @@ var ms = "TabsTrigger", hs = f.forwardRef(
5593
5699
  );
5594
5700
  }
5595
5701
  );
5596
- hs.displayName = ms;
5597
- var gs = "TabsContent", zf = f.forwardRef(
5702
+ vs.displayName = gs;
5703
+ var ws = "TabsContent", zf = f.forwardRef(
5598
5704
  (e, t) => {
5599
- const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = mo(gs, n), u = vs(s.baseId, o), l = ws(s.baseId, o), d = o === s.value, c = f.useRef(d);
5705
+ const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = mo(ws, n), u = ys(s.baseId, o), l = bs(s.baseId, o), d = o === s.value, c = f.useRef(d);
5600
5706
  return f.useEffect(() => {
5601
5707
  const h = requestAnimationFrame(() => c.current = !1);
5602
5708
  return () => cancelAnimationFrame(h);
@@ -5621,14 +5727,14 @@ var gs = "TabsContent", zf = f.forwardRef(
5621
5727
  ) });
5622
5728
  }
5623
5729
  );
5624
- zf.displayName = gs;
5625
- function vs(e, t) {
5730
+ zf.displayName = ws;
5731
+ function ys(e, t) {
5626
5732
  return `${e}-trigger-${t}`;
5627
5733
  }
5628
- function ws(e, t) {
5734
+ function bs(e, t) {
5629
5735
  return `${e}-content-${t}`;
5630
5736
  }
5631
- var jf = ds, Yf = ps, Xf = hs;
5737
+ var jf = ps, Yf = hs, Xf = vs;
5632
5738
  const Zf = "inline-flex h-9 w-fit items-center justify-center p-[3px]", qf = 'inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-2 py-1 text-sm font-medium whitespace-nowrap border border-transparent transition-[color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4';
5633
5739
  function Jf({ value: e, onValueChange: t, children: n }) {
5634
5740
  return /* @__PURE__ */ p(jf, { value: e, onValueChange: t, children: n });
@@ -5648,18 +5754,18 @@ function ep({ value: e, children: t }) {
5648
5754
  }
5649
5755
  );
5650
5756
  }
5651
- const Sn = {
5757
+ const Pn = {
5652
5758
  Root: Jf,
5653
5759
  List: Qf,
5654
5760
  Trigger: ep
5655
5761
  };
5656
5762
  function tp({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
5657
5763
  var u;
5658
- const o = aa(), { t: r } = at(), i = re(), a = e.find((l) => l.id === t), s = e.length > 0 && t !== ((u = e[0]) == null ? void 0 : u.id);
5764
+ const o = ca(), { t: r } = at(), i = re(), a = e.find((l) => l.id === t), s = e.length > 0 && t !== ((u = e[0]) == null ? void 0 : u.id);
5659
5765
  return o || e.length > 4 ? /* @__PURE__ */ F(Ee.Root, { value: t, onValueChange: n, children: [
5660
5766
  /* @__PURE__ */ p(Ee.Trigger, { className: `w-fit min-w-32 ${s ? i.state.active : ""}`, children: /* @__PURE__ */ p(Ee.Value, { children: (a == null ? void 0 : a.label) || r("dataTable.selectFilter") }) }),
5661
5767
  /* @__PURE__ */ p(Ee.Content, { children: e.map((l) => /* @__PURE__ */ p(Ee.Item, { value: l.id, children: l.label }, l.id)) })
5662
- ] }) : /* @__PURE__ */ p(Sn.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(Sn.List, { className: s ? i.state.active : "", children: e.map((l) => /* @__PURE__ */ p(Sn.Trigger, { value: l.id, children: l.label }, l.id)) }) });
5768
+ ] }) : /* @__PURE__ */ p(Pn.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(Pn.List, { className: s ? i.state.active : "", children: e.map((l) => /* @__PURE__ */ p(Pn.Trigger, { value: l.id, children: l.label }, l.id)) }) });
5663
5769
  }
5664
5770
  const np = "flex h-9 w-full min-w-0 px-3 py-1 text-sm shadow-xs transition-[color,box-shadow] outline-none file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", ho = or(
5665
5771
  ({ value: e, onChange: t, onKeyDown: n, placeholder: o, className: r, type: i = "text", isActive: a, ...s }, u) => {
@@ -5683,9 +5789,9 @@ ho.displayName = "Input";
5683
5789
  const op = 500;
5684
5790
  function rp({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5685
5791
  const o = re(), [r, i] = ue(e);
5686
- mt(() => {
5792
+ gt(() => {
5687
5793
  i(e);
5688
- }, [e]), mt(() => {
5794
+ }, [e]), gt(() => {
5689
5795
  const s = setTimeout(() => {
5690
5796
  r !== e && (t == null || t(r));
5691
5797
  }, op);
@@ -5732,7 +5838,7 @@ function ip({
5732
5838
  const h = () => s === 0 ? e.label : s === 1 ? u[0] : s === 2 ? u.join(", ") : `${u.slice(0, 2).join(", ")} +${s - 2}`;
5733
5839
  return /* @__PURE__ */ F(ee.Root, { children: [
5734
5840
  /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ F(Te, { className: `gap-1.5 max-w-[250px] ${s > 0 ? r.state.active : ""}`, children: [
5735
- /* @__PURE__ */ p(Ks, { className: `h-4 w-4 shrink-0 ${s > 0 ? r.state.activeText : ""}` }),
5841
+ /* @__PURE__ */ p(Gs, { className: `h-4 w-4 shrink-0 ${s > 0 ? r.state.activeText : ""}` }),
5736
5842
  /* @__PURE__ */ p("span", { className: "truncate", children: h() }),
5737
5843
  /* @__PURE__ */ p(Gn, { className: "h-3.5 w-3.5 opacity-50 shrink-0" })
5738
5844
  ] }) }),
@@ -5762,18 +5868,18 @@ function ip({
5762
5868
  },
5763
5869
  g.value
5764
5870
  )),
5765
- s > 0 && /* @__PURE__ */ F(Gt, { children: [
5871
+ s > 0 && /* @__PURE__ */ F(Zt, { children: [
5766
5872
  /* @__PURE__ */ p(ee.Separator, {}),
5767
5873
  /* @__PURE__ */ p(ee.Item, { onClick: c, className: "text-xs cursor-pointer", children: o("dataTable.resetFilters") })
5768
5874
  ] })
5769
5875
  ] })
5770
5876
  ] });
5771
5877
  }
5772
- const En = "h-[15px] w-[15px] text-black";
5878
+ const In = "h-[15px] w-[15px] text-black";
5773
5879
  function sp({ column: e }) {
5774
- return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Gn, { className: En }) : /* @__PURE__ */ p($s, { className: En }) : /* @__PURE__ */ p(Ws, { className: En });
5880
+ return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Gn, { className: In }) : /* @__PURE__ */ p(Vs, { className: In }) : /* @__PURE__ */ p(Ks, { className: In });
5775
5881
  }
5776
- function ys({
5882
+ function Cs({
5777
5883
  // Data
5778
5884
  data: e,
5779
5885
  columns: t,
@@ -5808,8 +5914,8 @@ function ys({
5808
5914
  // UI options
5809
5915
  onRowClick: E,
5810
5916
  activeRowId: S,
5811
- displayTotalNumber: M = !0,
5812
- enableElementLabel: I = !0,
5917
+ displayTotalNumber: I = !0,
5918
+ enableElementLabel: P = !0,
5813
5919
  enablePagination: L = !0,
5814
5920
  enableResponsive: D = !0,
5815
5921
  texts: $,
@@ -5820,28 +5926,28 @@ function ys({
5820
5926
  var vo;
5821
5927
  const { t: O } = at(), k = re(), [N, A] = ue({
5822
5928
  pageIndex: 0,
5823
- pageSize: ln[0]
5824
- }), [j, q] = ue(""), [te, we] = ue({}), [ce, ye] = ue([]), [ie, _] = ue({}), B = i ?? N, W = a ?? A, K = u ?? j, G = l ?? q, U = h ?? te, se = g ?? we, me = b ?? ce, He = C ?? ye, We = x ?? ie, Ke = R ?? _, dn = Fe(
5929
+ pageSize: mn[0]
5930
+ }), [j, q] = ue(""), [te, we] = ue({}), [ce, ye] = ue([]), [ie, _] = ue({}), B = i ?? N, W = a ?? A, K = u ?? j, G = l ?? q, U = h ?? te, se = g ?? we, me = b ?? ce, He = C ?? ye, We = x ?? ie, Ke = R ?? _, gn = Fe(
5825
5931
  (Y) => {
5826
5932
  G(Y), W((J) => ({ ...J, pageIndex: 0 }));
5827
5933
  },
5828
5934
  [G, W]
5829
5935
  ), et = Re(() => JSON.stringify(U), [U]);
5830
- mt(() => {
5936
+ gt(() => {
5831
5937
  W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
5832
5938
  }, [m, et, W]);
5833
- const he = r === "server", xs = s !== void 0 ? Math.ceil(s / B.pageSize) : void 0, Ss = !he || s !== void 0, Es = Re(() => Object.entries(U).map(([Y, J]) => ({ id: Y, value: J })), [U]), Rs = Fe((Y, J, Q) => {
5939
+ const he = r === "server", Ss = s !== void 0 ? Math.ceil(s / B.pageSize) : void 0, Es = !he || s !== void 0, Rs = Re(() => Object.entries(U).map(([Y, J]) => ({ id: Y, value: J })), [U]), Ts = Fe((Y, J, Q) => {
5834
5940
  const ge = Y.getValue(J);
5835
5941
  return Q.includes(String(ge));
5836
- }, []), _e = Os({
5942
+ }, []), _e = Ds({
5837
5943
  data: e,
5838
5944
  columns: t,
5839
- pageCount: he ? xs : void 0,
5945
+ pageCount: he ? Ss : void 0,
5840
5946
  state: {
5841
5947
  pagination: B,
5842
5948
  sorting: y ? me : void 0,
5843
5949
  globalFilter: !he && d ? K : void 0,
5844
- columnFilters: !he && (c != null && c.length) ? Es : void 0,
5950
+ columnFilters: !he && (c != null && c.length) ? Rs : void 0,
5845
5951
  columnVisibility: T ? We : void 0
5846
5952
  },
5847
5953
  onPaginationChange: W,
@@ -5852,24 +5958,24 @@ function ys({
5852
5958
  manualFiltering: he,
5853
5959
  manualSorting: he,
5854
5960
  // Row models
5855
- getCoreRowModel: Fs(),
5856
- getSortedRowModel: Ls(),
5857
- getPaginationRowModel: L ? ks() : void 0,
5961
+ getCoreRowModel: $s(),
5962
+ getSortedRowModel: Fs(),
5963
+ getPaginationRowModel: L ? Ls() : void 0,
5858
5964
  // Client-side filtering (only when not in manual mode)
5859
5965
  ...!he && (c != null && c.length || d) ? {
5860
- getFilteredRowModel: Ds(),
5966
+ getFilteredRowModel: ks(),
5861
5967
  filterFns: {
5862
- multiSelect: Rs
5968
+ multiSelect: Ts
5863
5969
  },
5864
5970
  globalFilterFn: d ? Ca : void 0
5865
5971
  } : {}
5866
- }), Ts = (Y, J) => {
5972
+ }), As = (Y, J) => {
5867
5973
  const Q = String(Y), ge = { ...U };
5868
5974
  J.length === 0 ? delete ge[Q] : ge[Q] = J, se(ge);
5869
- }, As = d || M || c && c.length > 0 || T, go = Re(() => he ? e.length : _e.getRowModel().rows.length, [he, e.length, _e]), Is = Re(() => he && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [he, s, _e]);
5975
+ }, Ps = d || I || c && c.length > 0 || T, go = Re(() => he ? e.length : _e.getRowModel().rows.length, [he, e.length, _e]), Is = Re(() => he && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [he, s, _e]);
5870
5976
  return /* @__PURE__ */ F("div", { className: "relative flex flex-col flex-1", "data-testid": "datatable", children: [
5871
5977
  o && !n && /* @__PURE__ */ p("div", { className: X("absolute inset-0 z-10 pointer-events-none", k.table.loadingOverlay) }),
5872
- As && /* @__PURE__ */ F("div", { className: "flex flex-col sm:flex-row sm:items-center sm:justify-between py-4 gap-4", children: [
5978
+ Ps && /* @__PURE__ */ F("div", { className: "flex flex-col sm:flex-row sm:items-center sm:justify-between py-4 gap-4", children: [
5873
5979
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2 overflow-x-auto", children: w && w.length > 0 && v && /* @__PURE__ */ p(
5874
5980
  tp,
5875
5981
  {
@@ -5882,7 +5988,7 @@ function ys({
5882
5988
  rp,
5883
5989
  {
5884
5990
  value: K,
5885
- onDebouncedChange: dn,
5991
+ onDebouncedChange: gn,
5886
5992
  placeholder: ($ == null ? void 0 : $.searchPlaceholder) || O("dataTable.search")
5887
5993
  }
5888
5994
  ) }) }),
@@ -5892,7 +5998,7 @@ function ys({
5892
5998
  {
5893
5999
  filter: Y,
5894
6000
  selectedValues: U[String(Y.key)],
5895
- onFilterChange: Ts
6001
+ onFilterChange: As
5896
6002
  },
5897
6003
  String(Y.key)
5898
6004
  )),
@@ -5903,7 +6009,7 @@ function ys({
5903
6009
  onClick: V,
5904
6010
  title: O("dataTable.resetFilters"),
5905
6011
  "data-testid": "datatable-reset-filters",
5906
- children: /* @__PURE__ */ p(Gs, { className: "h-4 w-4" })
6012
+ children: /* @__PURE__ */ p(zs, { className: "h-4 w-4" })
5907
6013
  }
5908
6014
  )
5909
6015
  ] })
@@ -5918,7 +6024,7 @@ function ys({
5918
6024
  ),
5919
6025
  children: /* @__PURE__ */ F("table", { className: X("w-full text-sm"), "data-testid": "datatable-table", children: [
5920
6026
  /* @__PURE__ */ p("thead", { className: X(k.table.header, D && ke.thead.base), children: _e.getHeaderGroups().map((Y) => /* @__PURE__ */ p("tr", { children: Y.headers.map((J) => {
5921
- var Q, ge, Rt, Tt;
6027
+ var Q, ge, At, Pt;
5922
6028
  return /* @__PURE__ */ p(
5923
6029
  "th",
5924
6030
  {
@@ -5930,7 +6036,7 @@ function ys({
5930
6036
  onClick: J.column.getToggleSortingHandler(),
5931
6037
  style: {
5932
6038
  width: (ge = (Q = J.column.columnDef) == null ? void 0 : Q.meta) == null ? void 0 : ge.width,
5933
- minWidth: (Tt = (Rt = J.column.columnDef) == null ? void 0 : Rt.meta) == null ? void 0 : Tt.minWidth
6039
+ minWidth: (Pt = (At = J.column.columnDef) == null ? void 0 : At.meta) == null ? void 0 : Pt.minWidth
5934
6040
  },
5935
6041
  children: J.isPlaceholder ? null : /* @__PURE__ */ F("span", { className: "flex gap-2 items-center justify-between w-full", children: [
5936
6042
  /* @__PURE__ */ p("h3", { children: Eo(J.column.columnDef.header, J.getContext()) }),
@@ -5961,7 +6067,7 @@ function ys({
5961
6067
  ),
5962
6068
  children: Y.getVisibleCells().map((Q, ge) => {
5963
6069
  var wo, yo, bo, Co;
5964
- const Rt = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Tt = ge === Y.getVisibleCells().length - 1;
6070
+ const At = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Pt = ge === Y.getVisibleCells().length - 1;
5965
6071
  return /* @__PURE__ */ F(
5966
6072
  "td",
5967
6073
  {
@@ -5972,10 +6078,10 @@ function ys({
5972
6078
  className: X(
5973
6079
  E && !((yo = (wo = Q.column.columnDef) == null ? void 0 : wo.meta) != null && yo.disableColumnClick) && "cursor-pointer",
5974
6080
  ((Co = (bo = Q.column.columnDef) == null ? void 0 : bo.meta) == null ? void 0 : Co.center) && "align-middle text-center",
5975
- D ? X(ke.cell.base, Tt && ke.cell.last) : "px-4 py-3"
6081
+ D ? X(ke.cell.base, Pt && ke.cell.last) : "px-4 py-3"
5976
6082
  ),
5977
6083
  children: [
5978
- D && /* @__PURE__ */ p("span", { className: ke.cellLabel.base, children: Rt }),
6084
+ D && /* @__PURE__ */ p("span", { className: ke.cellLabel.base, children: At }),
5979
6085
  /* @__PURE__ */ p("span", { className: X(D && ke.cellContent.base), children: Eo(Q.column.columnDef.cell, Q.getContext()) })
5980
6086
  ]
5981
6087
  },
@@ -5998,19 +6104,19 @@ function ys({
5998
6104
  }
5999
6105
  ),
6000
6106
  /* @__PURE__ */ F("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4 py-4", children: [
6001
- M && /* @__PURE__ */ p("div", { className: X("text-sm order-3 sm:order-1", k.table.empty), "data-testid": "datatable-count", children: O("dataTable.element", { count: go, total: Is }) }),
6002
- /* @__PURE__ */ p("div", { className: "flex-1 flex justify-center order-1 sm:order-2", children: L && Ss && /* @__PURE__ */ p(Hf, { table: _e, isLoading: o }) }),
6003
- /* @__PURE__ */ p("div", { className: "order-2 sm:order-3", children: /* @__PURE__ */ p(Wf, { table: _e, enableElementLabel: I }) })
6107
+ I && /* @__PURE__ */ p("div", { className: X("text-sm order-3 sm:order-1", k.table.empty), "data-testid": "datatable-count", children: O("dataTable.element", { count: go, total: Is }) }),
6108
+ /* @__PURE__ */ p("div", { className: "flex-1 flex justify-center order-1 sm:order-2", children: L && Es && /* @__PURE__ */ p(Hf, { table: _e, isLoading: o }) }),
6109
+ /* @__PURE__ */ p("div", { className: "order-2 sm:order-3", children: /* @__PURE__ */ p(Wf, { table: _e, enableElementLabel: P }) })
6004
6110
  ] })
6005
6111
  ] });
6006
6112
  }
6007
6113
  function ap({ item: e, actions: t, onAction: n }) {
6008
- const o = na(), r = (l, d) => {
6114
+ const o = oa(), r = (l, d) => {
6009
6115
  var c;
6010
- (c = Zs()) == null || c({ label: l, element: d });
6116
+ (c = qs()) == null || c({ label: l, element: d });
6011
6117
  }, i = () => {
6012
6118
  var l;
6013
- (l = qs()) == null || l();
6119
+ (l = Js()) == null || l();
6014
6120
  }, a = t.filter((l) => !(typeof l == "function" ? l(e) : l).hidden), s = a.filter((l) => (typeof l == "function" ? l(e) : l).display !== "dropdown"), u = a.filter((l) => (typeof l == "function" ? l(e) : l).display === "dropdown");
6015
6121
  return /* @__PURE__ */ F("div", { className: "flex gap-2 justify-end items-center", children: [
6016
6122
  s.map((l, d) => {
@@ -6053,7 +6159,7 @@ function ap({ item: e, actions: t, onAction: n }) {
6053
6159
  );
6054
6160
  }),
6055
6161
  u.length > 0 && /* @__PURE__ */ F(ee.Root, { children: [
6056
- /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Te, { className: "h-9 w-9 p-0", children: /* @__PURE__ */ p(js, { className: "h-4 w-4" }) }) }),
6162
+ /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Te, { className: "h-9 w-9 p-0", children: /* @__PURE__ */ p(Ys, { className: "h-4 w-4" }) }) }),
6057
6163
  /* @__PURE__ */ p(ee.Content, { align: "end", children: u.map((l, d) => {
6058
6164
  const c = typeof l == "function" ? l(e) : l, h = c.icon, g = {
6059
6165
  warning: "text-amber-600 hover:text-amber-700 focus:text-amber-700",
@@ -6094,13 +6200,13 @@ function ap({ item: e, actions: t, onAction: n }) {
6094
6200
  ] })
6095
6201
  ] });
6096
6202
  }
6097
- const bs = ({
6203
+ const xs = ({
6098
6204
  columnConfig: e,
6099
6205
  actions: t,
6100
6206
  filters: n,
6101
6207
  mode: o
6102
6208
  }) => {
6103
- const { confirm: r } = Qs(), { t: i } = at(), { mutate: a } = Ms({
6209
+ const { confirm: r } = ea(), { t: i } = at(), { mutate: a } = Ms({
6104
6210
  mutationFn: async (l) => l.endpoint(l.item)
6105
6211
  }), s = async (l, d) => {
6106
6212
  const c = typeof l == "function" ? l(d) : l;
@@ -6154,7 +6260,7 @@ const bs = ({
6154
6260
  meta: d.meta,
6155
6261
  cell: ({ row: h }) => {
6156
6262
  const g = h.original[d.key];
6157
- return d.render ? d.render(h.original) : la(g);
6263
+ return d.render ? d.render(h.original) : ua(g);
6158
6264
  }
6159
6265
  };
6160
6266
  });
@@ -6171,96 +6277,7 @@ const bs = ({
6171
6277
  }, [e, t, n, o, i]),
6172
6278
  handleAction: s
6173
6279
  };
6174
- }, Rn = "dt_prefilter", Tn = "dt_search", An = "dt_page", In = "dt_pageSize", Mn = "dt_filters", Ot = "dt_sortBy", Dt = "dt_sortDesc", ze = (e) => {
6175
- if (typeof window > "u") return null;
6176
- try {
6177
- return new URL(window.location.href).searchParams.get(e);
6178
- } catch {
6179
- return null;
6180
- }
6181
- }, ne = (e, t) => {
6182
- if (typeof window > "u" || new URL(window.location.href).searchParams.get(e) === t) return;
6183
- const o = new URL(window.location.href);
6184
- t ? o.searchParams.set(e, t) : o.searchParams.delete(e), window.history.replaceState(window.history.state, "", o.toString());
6185
- }, Cs = ({
6186
- enabled: e,
6187
- defaultPrefilter: t,
6188
- defaultPageSize: n,
6189
- defaultSortBy: o,
6190
- defaultSortOrder: r = "asc"
6191
- }) => {
6192
- const i = Pn(e), a = Pn(n), [s, u] = ue(() => {
6193
- if (e) {
6194
- const S = ze(Rn);
6195
- if (S) return S;
6196
- }
6197
- return t;
6198
- }), l = Fe((S) => {
6199
- u(S), i.current && ne(Rn, S ?? null);
6200
- }, []), [d, c] = ue(() => e ? ze(Tn) ?? "" : ""), h = Fe((S) => {
6201
- c(S), i.current && ne(Tn, S || null);
6202
- }, []), [g, w] = ue(() => {
6203
- if (e) {
6204
- const S = ze(An), M = ze(In);
6205
- return {
6206
- pageIndex: S ? parseInt(S, 10) - 1 : 0,
6207
- pageSize: M ? parseInt(M, 10) : n
6208
- };
6209
- }
6210
- return { pageIndex: 0, pageSize: n };
6211
- }), m = Fe((S) => {
6212
- w((M) => {
6213
- const I = typeof S == "function" ? S(M) : S;
6214
- return i.current && (M.pageIndex !== I.pageIndex || M.pageSize !== I.pageSize) && (ne(An, I.pageIndex > 0 ? String(I.pageIndex + 1) : null), ne(
6215
- In,
6216
- I.pageSize !== a.current ? String(I.pageSize) : null
6217
- )), I;
6218
- });
6219
- }, []), [v, b] = ue(() => {
6220
- if (e) {
6221
- const S = ze(Mn);
6222
- if (S)
6223
- return da(S);
6224
- }
6225
- return {};
6226
- }), C = Fe((S) => {
6227
- if (b(S), i.current) {
6228
- const I = Object.keys(S).length > 0 ? ua(S) : null;
6229
- ne(Mn, I);
6230
- }
6231
- }, []), [y, x] = ue(() => {
6232
- if (e) {
6233
- const S = ze(Ot), M = ze(Dt);
6234
- if (S)
6235
- return [{ id: S, desc: M === "true" }];
6236
- }
6237
- return o ? [{ id: o, desc: r === "desc" }] : [];
6238
- }), R = Fe((S) => {
6239
- x((M) => {
6240
- const I = typeof S == "function" ? S(M) : S;
6241
- return i.current && (I.length > 0 ? (ne(Ot, I[0].id), ne(Dt, String(I[0].desc))) : (ne(Ot, null), ne(Dt, null))), I;
6242
- });
6243
- }, []), T = Re(() => {
6244
- const S = o ? [{ id: o, desc: r === "desc" }] : [];
6245
- return d !== "" || s !== t || Object.keys(v).length > 0 || y.length !== S.length || y.length > 0 && S.length > 0 && (y[0].id !== S[0].id || y[0].desc !== S[0].desc);
6246
- }, [d, s, t, v, y, o, r]), E = Fe(() => {
6247
- i.current && (ne(Rn, null), ne(Tn, null), ne(An, null), ne(In, null), ne(Mn, null), ne(Ot, null), ne(Dt, null)), u(t), c(""), w({ pageIndex: 0, pageSize: a.current }), b({}), x(o ? [{ id: o, desc: r === "desc" }] : []);
6248
- }, [t, o, r]);
6249
- return {
6250
- activePrefilter: s,
6251
- setActivePrefilter: l,
6252
- globalFilter: d,
6253
- setGlobalFilter: h,
6254
- pagination: g,
6255
- setPagination: m,
6256
- columnFilters: v,
6257
- setColumnFilters: C,
6258
- sorting: y,
6259
- setSorting: R,
6260
- resetToDefaults: E,
6261
- hasActiveFilters: T
6262
- };
6263
- }, gp = ({
6280
+ }, vp = ({
6264
6281
  queryKey: e,
6265
6282
  columnConfig: t,
6266
6283
  actions: n,
@@ -6269,7 +6286,7 @@ const bs = ({
6269
6286
  prefilterFn: i,
6270
6287
  defaultSortBy: a,
6271
6288
  defaultSortOrder: s = "asc",
6272
- defaultPageSize: u = ln[0],
6289
+ defaultPageSize: u = mn[0],
6273
6290
  persistState: l = !1,
6274
6291
  fetchAllItemsEndpoint: d,
6275
6292
  ...c
@@ -6287,7 +6304,7 @@ const bs = ({
6287
6304
  sorting: x,
6288
6305
  setSorting: R,
6289
6306
  resetToDefaults: T
6290
- } = Cs({
6307
+ } = dr({
6291
6308
  enabled: l,
6292
6309
  defaultPrefilter: (L = r == null ? void 0 : r[0]) == null ? void 0 : L.id,
6293
6310
  defaultPageSize: u,
@@ -6296,18 +6313,18 @@ const bs = ({
6296
6313
  }), { data: E = [], isLoading: S } = nr({
6297
6314
  queryKey: e,
6298
6315
  queryFn: d
6299
- }), M = Re(() => !E || !v || !i ? E : E.filter((D) => i(D, v)), [E, v, i]), { columns: I } = bs({
6316
+ }), I = Re(() => !E || !v || !i ? E : E.filter((D) => i(D, v)), [E, v, i]), { columns: P } = xs({
6300
6317
  columnConfig: t,
6301
6318
  actions: n,
6302
6319
  filters: o,
6303
6320
  mode: "client"
6304
6321
  });
6305
6322
  return /* @__PURE__ */ p(
6306
- ys,
6323
+ Cs,
6307
6324
  {
6308
6325
  mode: "client",
6309
- data: M,
6310
- columns: I,
6326
+ data: I,
6327
+ columns: P,
6311
6328
  isLoading: S,
6312
6329
  pagination: h,
6313
6330
  onPaginationChange: g,
@@ -6325,7 +6342,7 @@ const bs = ({
6325
6342
  ...c
6326
6343
  }
6327
6344
  );
6328
- }, vp = ({
6345
+ }, wp = ({
6329
6346
  queryKey: e,
6330
6347
  columnConfig: t,
6331
6348
  actions: n,
@@ -6333,12 +6350,12 @@ const bs = ({
6333
6350
  prefilters: r,
6334
6351
  defaultSortBy: i,
6335
6352
  defaultSortOrder: a = "asc",
6336
- defaultPageSize: s = ln[0],
6353
+ defaultPageSize: s = mn[0],
6337
6354
  persistState: u = !1,
6338
6355
  fetchServerEndpoint: l,
6339
6356
  ...d
6340
6357
  }) => {
6341
- var S, M, I;
6358
+ var S, I, P;
6342
6359
  const {
6343
6360
  pagination: c,
6344
6361
  setPagination: h,
@@ -6351,7 +6368,7 @@ const bs = ({
6351
6368
  sorting: y,
6352
6369
  setSorting: x,
6353
6370
  resetToDefaults: R
6354
- } = Cs({
6371
+ } = dr({
6355
6372
  enabled: u,
6356
6373
  defaultPrefilter: (S = r == null ? void 0 : r[0]) == null ? void 0 : S.id,
6357
6374
  defaultPageSize: s,
@@ -6371,22 +6388,22 @@ const bs = ({
6371
6388
  sortOrder: (D = y[0]) != null && D.desc ? "DESC" : "ASC"
6372
6389
  });
6373
6390
  },
6374
- placeholderData: Ps
6375
- }), { columns: E } = bs({
6391
+ placeholderData: Ns
6392
+ }), { columns: E } = xs({
6376
6393
  columnConfig: t,
6377
6394
  actions: n,
6378
6395
  filters: o,
6379
6396
  mode: "server"
6380
6397
  });
6381
6398
  return /* @__PURE__ */ p(
6382
- ys,
6399
+ Cs,
6383
6400
  {
6384
6401
  mode: "server",
6385
- data: ((M = T.data) == null ? void 0 : M.items) ?? [],
6402
+ data: ((I = T.data) == null ? void 0 : I.items) ?? [],
6386
6403
  columns: E,
6387
6404
  isLoading: T.isLoading,
6388
6405
  isFetching: T.isFetching,
6389
- totalCount: ((I = T.data) == null ? void 0 : I.totalItemCount) ?? 0,
6406
+ totalCount: ((P = T.data) == null ? void 0 : P.totalItemCount) ?? 0,
6390
6407
  pagination: c,
6391
6408
  onPaginationChange: h,
6392
6409
  globalFilter: g,
@@ -6407,19 +6424,20 @@ const bs = ({
6407
6424
  export {
6408
6425
  ap as ActionCell,
6409
6426
  zd as ColumnConfiguration,
6410
- ln as DEFAULT_PAGE_SIZES,
6411
- ys as DataTable,
6427
+ mn as DEFAULT_PAGE_SIZES,
6428
+ Cs as DataTable,
6412
6429
  Wf as PageSizeSelector,
6413
6430
  Hf as Pagination,
6414
6431
  tp as PrefilterTabs,
6415
6432
  rp as SearchBar,
6416
6433
  ip as SingleFilterDropdown,
6417
- gp as SnowClientTable,
6418
- vp as SnowServerTable,
6434
+ vp as SnowClientTable,
6435
+ wp as SnowServerTable,
6419
6436
  sp as SortButton,
6420
6437
  mp as isSnowTableSetup,
6438
+ hp as redirectToPageWithParam,
6421
6439
  pp as setupSnowTable,
6422
- bs as useSnowColumns,
6423
- Cs as useTableStatePersist
6440
+ xs as useSnowColumns,
6441
+ dr as useTableStatePersist
6424
6442
  };
6425
6443
  //# sourceMappingURL=index.js.map