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

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
1
  import { jsxs as k, jsx as p, Fragment as Yt } from "react/jsx-runtime";
2
- import { useMutation as Es, useQuery as Qo, keepPreviousData as Rs } from "@tanstack/react-query";
2
+ import { useMutation as _s, useQuery as ar, keepPreviousData as Os } from "@tanstack/react-query";
3
3
  import * as d from "react";
4
- import He, { useState as ae, useEffect as ht, useRef as Pn, useCallback as be, useMemo as Ce, forwardRef as er, useLayoutEffect as As, memo as Ps } from "react";
4
+ import He, { useState as ae, useEffect as ht, useRef as Pn, useCallback as be, useMemo as Ce, forwardRef as cr, useLayoutEffect as Ds, memo as ks } from "react";
5
5
  import * as Xt from "react-dom";
6
- import Ts, { createPortal as Ms } from "react-dom";
7
- import { useReactTable as Is, getFilteredRowModel as Ns, getPaginationRowModel as _s, getSortedRowModel as Os, getCoreRowModel as Ds, flexRender as bo } from "@tanstack/react-table";
6
+ import Fs, { createPortal as Ls } from "react-dom";
7
+ import { useReactTable as $s, getFilteredRowModel as Vs, getPaginationRowModel as Bs, getSortedRowModel as Ws, getCoreRowModel as Us, flexRender as To } from "@tanstack/react-table";
8
8
  const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
9
9
  "svg",
10
10
  {
@@ -20,34 +20,34 @@ const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
20
20
  ...t,
21
21
  children: e
22
22
  }
23
- ), tr = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Hn = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Fs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ls = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), $s = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
23
+ ), lr = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Hn = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), Hs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Gs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), zs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
24
24
  /* @__PURE__ */ p("path", { d: "m11 17-5-5 5-5" }),
25
25
  /* @__PURE__ */ p("path", { d: "m18 17-5-5 5-5" })
26
- ] }), Vs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
26
+ ] }), js = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
27
27
  /* @__PURE__ */ p("path", { d: "m6 17 5-5-5-5" }),
28
28
  /* @__PURE__ */ p("path", { d: "m13 17 5-5-5-5" })
29
- ] }), Bs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
29
+ ] }), Ys = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
30
30
  /* @__PURE__ */ p("path", { d: "m7 15 5 5 5-5" }),
31
31
  /* @__PURE__ */ p("path", { d: "m7 9 5-5 5 5" })
32
- ] }), Ws = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Us = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
32
+ ] }), Xs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Zs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
33
33
  /* @__PURE__ */ p("path", { d: "M3 6h18" }),
34
34
  /* @__PURE__ */ p("path", { d: "M7 12h10" }),
35
35
  /* @__PURE__ */ p("path", { d: "M10 18h4" })
36
- ] }), Hs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
36
+ ] }), qs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
37
37
  /* @__PURE__ */ p("path", { d: "M10 20v-6L3.6 5.2A2 2 0 0 1 5.17 2h13.66a2 2 0 0 1 1.57 3.2L14 12.9" }),
38
38
  /* @__PURE__ */ p("path", { d: "m22 22-4-4" }),
39
39
  /* @__PURE__ */ p("path", { d: "m18 22 4-4" })
40
- ] }), Ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Gs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
40
+ ] }), Js = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Qs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
41
41
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "1" }),
42
42
  /* @__PURE__ */ p("circle", { cx: "12", cy: "5", r: "1" }),
43
43
  /* @__PURE__ */ p("circle", { cx: "12", cy: "19", r: "1" })
44
- ] }), nr = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
44
+ ] }), ur = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
45
45
  /* @__PURE__ */ p("circle", { cx: "11", cy: "11", r: "8" }),
46
46
  /* @__PURE__ */ p("path", { d: "m21 21-4.3-4.3" })
47
- ] }), Co = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
47
+ ] }), Mo = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
48
48
  /* @__PURE__ */ p("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
49
49
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
50
- ] }), zs = Hn;
50
+ ] }), ea = Hn;
51
51
  function X(...e) {
52
52
  const t = [], n = (o) => {
53
53
  if (o) {
@@ -66,7 +66,7 @@ function X(...e) {
66
66
  return t.join(" ");
67
67
  }
68
68
  const hn = 768;
69
- function js() {
69
+ function ta() {
70
70
  const [e, t] = ae(void 0);
71
71
  return ht(() => {
72
72
  if (typeof window > "u" || !window.matchMedia)
@@ -77,7 +77,7 @@ function js() {
77
77
  return n.addEventListener("change", o), t(window.innerWidth < hn), () => n.removeEventListener("change", o);
78
78
  }, []), !!e;
79
79
  }
80
- const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Xs = (e) => Ys(e) ? String(e) : JSON.stringify(e, null, 2), Dt = "dt_prefilter", kt = "dt_search", Ft = "dt_page", Tn = "dt_pageSize", Lt = "dt_filters", dt = "dt_sortBy", ft = "dt_sortDesc", Ke = (e) => {
80
+ const na = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, oa = (e) => na(e) ? String(e) : JSON.stringify(e, null, 2), Dt = "dt_prefilter", kt = "dt_search", Ft = "dt_page", Tn = "dt_pageSize", Lt = "dt_filters", dt = "dt_sortBy", ft = "dt_sortDesc", Ke = (e) => {
81
81
  if (typeof window > "u") return null;
82
82
  try {
83
83
  return new URL(window.location.href).searchParams.get(e);
@@ -88,7 +88,7 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
88
88
  if (typeof window > "u" || new URL(window.location.href).searchParams.get(e) === t) return;
89
89
  const o = new URL(window.location.href);
90
90
  t ? o.searchParams.set(e, t) : o.searchParams.delete(e), window.history.replaceState(window.history.state, "", o.toString());
91
- }, or = ({
91
+ }, dr = ({
92
92
  enabled: e,
93
93
  defaultPrefilter: t,
94
94
  defaultPageSize: n,
@@ -126,12 +126,12 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
126
126
  if (e) {
127
127
  const x = Ke(Lt);
128
128
  if (x)
129
- return Zs(x);
129
+ return ra(x);
130
130
  }
131
131
  return {};
132
132
  }), C = be((x) => {
133
133
  if (y(x), i.current) {
134
- const T = Object.keys(x).length > 0 ? rr(x) : null;
134
+ const T = Object.keys(x).length > 0 ? fr(x) : null;
135
135
  se(Lt, T);
136
136
  }
137
137
  }, []), [b, S] = ae(() => {
@@ -166,14 +166,14 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
166
166
  resetToDefaults: E,
167
167
  hasActiveFilters: A
168
168
  };
169
- }, rr = (e) => {
169
+ }, fr = (e) => {
170
170
  const t = [];
171
171
  for (const [n, o] of Object.entries(e)) {
172
172
  const r = o.filter((i) => i !== "");
173
173
  !n || r.length === 0 || t.push(`${n}:${r.join(",")}`);
174
174
  }
175
175
  return t.join("|");
176
- }, Zs = (e) => {
176
+ }, ra = (e) => {
177
177
  if (!e) return {};
178
178
  const t = {}, n = e.split("|").map((o) => o.trim()).filter(Boolean);
179
179
  for (const o of n) {
@@ -183,7 +183,7 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
183
183
  a.length > 0 && (t[r] = a);
184
184
  }
185
185
  return t;
186
- }, Xf = (e, t) => {
186
+ }, op = (e, t) => {
187
187
  const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
188
188
  if (t) {
189
189
  if (t.prefilter && n.searchParams.set(Dt, t.prefilter), t.search && n.searchParams.set(kt, t.search), t.pagination) {
@@ -191,7 +191,7 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
191
191
  o > 0 && n.searchParams.set(Ft, String(o + 1)), r && n.searchParams.set(Tn, String(r));
192
192
  }
193
193
  if (t.filters && Object.keys(t.filters).length > 0) {
194
- const o = rr(t.filters);
194
+ const o = fr(t.filters);
195
195
  n.searchParams.set(Lt, o);
196
196
  }
197
197
  if (t.sorting && t.sorting.length > 0) {
@@ -211,7 +211,7 @@ const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
211
211
  *
212
212
  * @license MIT
213
213
  */
214
- const ir = {
214
+ const pr = {
215
215
  À: "A",
216
216
  Á: "A",
217
217
  Â: "A",
@@ -611,9 +611,9 @@ const ir = {
611
611
  x̧: "x",
612
612
  Z̧: "Z",
613
613
  z̧: "z"
614
- }, qs = Object.keys(ir).join("|"), Js = new RegExp(qs, "g");
615
- function Qs(e) {
616
- return e.replace(Js, (t) => ir[t]);
614
+ }, ia = Object.keys(pr).join("|"), sa = new RegExp(ia, "g");
615
+ function aa(e) {
616
+ return e.replace(sa, (t) => pr[t]);
617
617
  }
618
618
  /**
619
619
  * @name match-sorter
@@ -631,10 +631,10 @@ const de = {
631
631
  MATCHES: 1,
632
632
  NO_MATCH: 0
633
633
  };
634
- function ea(e, t, n) {
634
+ function ca(e, t, n) {
635
635
  var o;
636
636
  if (n = n || {}, n.threshold = (o = n.threshold) != null ? o : de.MATCHES, !n.accessors) {
637
- const a = So(e, t, n);
637
+ const a = Io(e, t, n);
638
638
  return {
639
639
  // ends up being duplicate of 'item' in matches but consistent
640
640
  rankedValue: e,
@@ -644,7 +644,7 @@ function ea(e, t, n) {
644
644
  passed: a >= n.threshold
645
645
  };
646
646
  }
647
- const r = ra(e, n.accessors), i = {
647
+ const r = fa(e, n.accessors), i = {
648
648
  rankedValue: e,
649
649
  rank: de.NO_MATCH,
650
650
  accessorIndex: -1,
@@ -653,7 +653,7 @@ function ea(e, t, n) {
653
653
  };
654
654
  for (let a = 0; a < r.length; a++) {
655
655
  const s = r[a];
656
- let c = So(s.itemValue, t, n);
656
+ let c = Io(s.itemValue, t, n);
657
657
  const {
658
658
  minRanking: l,
659
659
  maxRanking: f,
@@ -663,10 +663,10 @@ function ea(e, t, n) {
663
663
  }
664
664
  return i;
665
665
  }
666
- function So(e, t, n) {
667
- return e = xo(e, n), t = xo(t, n), t.length > e.length ? de.NO_MATCH : e === t ? de.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? de.EQUAL : e.startsWith(t) ? de.STARTS_WITH : e.includes(` ${t}`) ? de.WORD_STARTS_WITH : e.includes(t) ? de.CONTAINS : t.length === 1 ? de.NO_MATCH : ta(e).includes(t) ? de.ACRONYM : na(e, t));
666
+ function Io(e, t, n) {
667
+ return e = No(e, n), t = No(t, n), t.length > e.length ? de.NO_MATCH : e === t ? de.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? de.EQUAL : e.startsWith(t) ? de.STARTS_WITH : e.includes(` ${t}`) ? de.WORD_STARTS_WITH : e.includes(t) ? de.CONTAINS : t.length === 1 ? de.NO_MATCH : la(e).includes(t) ? de.ACRONYM : ua(e, t));
668
668
  }
669
- function ta(e) {
669
+ function la(e) {
670
670
  let t = "";
671
671
  return e.split(" ").forEach((o) => {
672
672
  o.split("-").forEach((i) => {
@@ -674,7 +674,7 @@ function ta(e) {
674
674
  });
675
675
  }), t;
676
676
  }
677
- function na(e, t) {
677
+ function ua(e, t) {
678
678
  let n = 0, o = 0;
679
679
  function r(c, l, f) {
680
680
  for (let u = f, m = l.length; u < m; u++)
@@ -698,22 +698,22 @@ function na(e, t) {
698
698
  const s = o - a;
699
699
  return i(s);
700
700
  }
701
- function xo(e, t) {
701
+ function No(e, t) {
702
702
  let {
703
703
  keepDiacritics: n
704
704
  } = t;
705
- return e = `${e}`, n || (e = Qs(e)), e;
705
+ return e = `${e}`, n || (e = aa(e)), e;
706
706
  }
707
- function oa(e, t) {
707
+ function da(e, t) {
708
708
  let n = t;
709
709
  typeof t == "object" && (n = t.accessor);
710
710
  const o = n(e);
711
711
  return o == null ? [] : Array.isArray(o) ? o : [String(o)];
712
712
  }
713
- function ra(e, t) {
713
+ function fa(e, t) {
714
714
  const n = [];
715
715
  for (let o = 0, r = t.length; o < r; o++) {
716
- const i = t[o], a = ia(i), s = oa(e, i);
716
+ const i = t[o], a = pa(i), s = da(e, i);
717
717
  for (let c = 0, l = s.length; c < l; c++)
718
718
  n.push({
719
719
  itemValue: s[c],
@@ -722,32 +722,32 @@ function ra(e, t) {
722
722
  }
723
723
  return n;
724
724
  }
725
- const Eo = {
725
+ const _o = {
726
726
  maxRanking: 1 / 0,
727
727
  minRanking: -1 / 0
728
728
  };
729
- function ia(e) {
730
- return typeof e == "function" ? Eo : {
731
- ...Eo,
729
+ function pa(e) {
730
+ return typeof e == "function" ? _o : {
731
+ ..._o,
732
732
  ...e
733
733
  };
734
734
  }
735
- const sa = (e, t, n, o) => {
736
- const r = ea(e.getValue(t), n);
735
+ const ma = (e, t, n, o) => {
736
+ const r = ca(e.getValue(t), n);
737
737
  return o({
738
738
  itemRank: r
739
739
  }), r.passed;
740
- }, sr = "datatable-config-", Ro = (e, t) => {
740
+ }, mr = "datatable-config-", Oo = (e, t) => {
741
741
  try {
742
742
  const n = `datatable-config-${e}`, o = JSON.stringify(t);
743
743
  document.cookie = `${n}=${encodeURIComponent(o)}; path=/`;
744
744
  } catch (n) {
745
745
  console.warn("Failed to save column configuration:", n);
746
746
  }
747
- }, aa = (e) => {
747
+ }, ha = (e) => {
748
748
  var t;
749
749
  try {
750
- const n = `${sr}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
750
+ const n = `${mr}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
751
751
  if (o) {
752
752
  const r = decodeURIComponent(o);
753
753
  return JSON.parse(r);
@@ -756,14 +756,14 @@ const sa = (e, t, n, o) => {
756
756
  console.warn("Failed to load column configuration:", n);
757
757
  }
758
758
  return null;
759
- }, ca = (e) => {
759
+ }, ga = (e) => {
760
760
  try {
761
- const t = `${sr}${e}`;
761
+ const t = `${mr}${e}`;
762
762
  document.cookie = `${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
763
763
  } catch (t) {
764
764
  console.warn("Failed to delete column configuration:", t);
765
765
  }
766
- }, la = () => {
766
+ }, va = () => {
767
767
  try {
768
768
  const t = new Error().stack;
769
769
  if (t) {
@@ -779,13 +779,13 @@ const sa = (e, t, n, o) => {
779
779
  console.warn("Failed to generate config ID from parent component:", t);
780
780
  }
781
781
  return `datatable-${window.location.pathname.replace(/[^a-zA-Z0-9]/g, "-")}`;
782
- }, ua = {
782
+ }, wa = {
783
783
  default: "",
784
784
  danger: "snow-btn-danger",
785
785
  warning: "snow-btn-warning",
786
786
  info: "snow-btn-info",
787
787
  success: "snow-btn-success"
788
- }, Ae = er(
788
+ }, Ae = cr(
789
789
  ({
790
790
  children: e,
791
791
  variant: t = "default",
@@ -807,7 +807,7 @@ const sa = (e, t, n, o) => {
807
807
  onMouseLeave: r,
808
808
  disabled: i,
809
809
  title: c,
810
- className: X("snow-btn", ua[t], a),
810
+ className: X("snow-btn", wa[t], a),
811
811
  ...l,
812
812
  children: e
813
813
  }
@@ -820,7 +820,7 @@ function N(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
820
820
  return t == null ? void 0 : t(r);
821
821
  };
822
822
  }
823
- function Ao(e, t) {
823
+ function Do(e, t) {
824
824
  if (typeof e == "function")
825
825
  return e(t);
826
826
  e != null && (e.current = t);
@@ -829,14 +829,14 @@ function Zt(...e) {
829
829
  return (t) => {
830
830
  let n = !1;
831
831
  const o = e.map((r) => {
832
- const i = Ao(r, t);
832
+ const i = Do(r, t);
833
833
  return !n && typeof i == "function" && (n = !0), i;
834
834
  });
835
835
  if (n)
836
836
  return () => {
837
837
  for (let r = 0; r < o.length; r++) {
838
838
  const i = o[r];
839
- typeof i == "function" ? i() : Ao(e[r], null);
839
+ typeof i == "function" ? i() : Do(e[r], null);
840
840
  }
841
841
  };
842
842
  };
@@ -874,9 +874,9 @@ function Xe(e, t = []) {
874
874
  );
875
875
  };
876
876
  };
877
- return r.scopeName = e, [o, da(r, ...t)];
877
+ return r.scopeName = e, [o, ya(r, ...t)];
878
878
  }
879
- function da(...e) {
879
+ function ya(...e) {
880
880
  const t = e[0];
881
881
  if (e.length === 1) return t;
882
882
  const n = () => {
@@ -895,7 +895,7 @@ function da(...e) {
895
895
  return n.scopeName = t.scopeName, n;
896
896
  }
897
897
  var oe = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
898
- }, fa = d[" useInsertionEffect ".trim().toString()] || oe;
898
+ }, ba = d[" useInsertionEffect ".trim().toString()] || oe;
899
899
  function gt({
900
900
  prop: e,
901
901
  defaultProp: t,
@@ -903,7 +903,7 @@ function gt({
903
903
  },
904
904
  caller: o
905
905
  }) {
906
- const [r, i, a] = pa({
906
+ const [r, i, a] = Ca({
907
907
  defaultProp: t,
908
908
  onChange: n
909
909
  }), s = e !== void 0, c = s ? e : r;
@@ -920,7 +920,7 @@ function gt({
920
920
  (f) => {
921
921
  var u;
922
922
  if (s) {
923
- const m = ma(f) ? f(e) : f;
923
+ const m = Sa(f) ? f(e) : f;
924
924
  m !== e && ((u = a.current) == null || u.call(a, m));
925
925
  } else
926
926
  i(f);
@@ -929,25 +929,25 @@ function gt({
929
929
  );
930
930
  return [c, l];
931
931
  }
932
- function pa({
932
+ function Ca({
933
933
  defaultProp: e,
934
934
  onChange: t
935
935
  }) {
936
936
  const [n, o] = d.useState(e), r = d.useRef(n), i = d.useRef(t);
937
- return fa(() => {
937
+ return ba(() => {
938
938
  i.current = t;
939
939
  }, [t]), d.useEffect(() => {
940
940
  var a;
941
941
  r.current !== n && ((a = i.current) == null || a.call(i, n), r.current = n);
942
942
  }, [n, r]), [n, o, i];
943
943
  }
944
- function ma(e) {
944
+ function Sa(e) {
945
945
  return typeof e == "function";
946
946
  }
947
947
  // @__NO_SIDE_EFFECTS__
948
948
  function vt(e) {
949
- const t = /* @__PURE__ */ ha(e), n = d.forwardRef((o, r) => {
950
- const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(va);
949
+ const t = /* @__PURE__ */ xa(e), n = d.forwardRef((o, r) => {
950
+ const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(Ra);
951
951
  if (c) {
952
952
  const l = c.props.children, f = s.map((u) => u === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : u);
953
953
  return /* @__PURE__ */ p(t, { ...a, ref: r, children: d.isValidElement(l) ? d.cloneElement(l, void 0, f) : null });
@@ -957,22 +957,22 @@ function vt(e) {
957
957
  return n.displayName = `${e}.Slot`, n;
958
958
  }
959
959
  // @__NO_SIDE_EFFECTS__
960
- function ha(e) {
960
+ function xa(e) {
961
961
  const t = d.forwardRef((n, o) => {
962
962
  const { children: r, ...i } = n;
963
963
  if (d.isValidElement(r)) {
964
- const a = ya(r), s = wa(i, r.props);
964
+ const a = Pa(r), s = Aa(i, r.props);
965
965
  return r.type !== d.Fragment && (s.ref = o ? Zt(o, a) : a), d.cloneElement(r, s);
966
966
  }
967
967
  return d.Children.count(r) > 1 ? d.Children.only(null) : null;
968
968
  });
969
969
  return t.displayName = `${e}.SlotClone`, t;
970
970
  }
971
- var ga = Symbol("radix.slottable");
972
- function va(e) {
973
- return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ga;
971
+ var Ea = Symbol("radix.slottable");
972
+ function Ra(e) {
973
+ return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ea;
974
974
  }
975
- function wa(e, t) {
975
+ function Aa(e, t) {
976
976
  const n = { ...t };
977
977
  for (const o in t) {
978
978
  const r = e[o], i = t[o];
@@ -983,12 +983,12 @@ function wa(e, t) {
983
983
  }
984
984
  return { ...e, ...n };
985
985
  }
986
- function ya(e) {
986
+ function Pa(e) {
987
987
  var o, r;
988
988
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
989
989
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
990
990
  }
991
- var ba = [
991
+ var Ta = [
992
992
  "a",
993
993
  "button",
994
994
  "div",
@@ -1006,14 +1006,14 @@ var ba = [
1006
1006
  "span",
1007
1007
  "svg",
1008
1008
  "ul"
1009
- ], U = ba.reduce((e, t) => {
1009
+ ], U = Ta.reduce((e, t) => {
1010
1010
  const n = /* @__PURE__ */ vt(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1011
1011
  const { asChild: a, ...s } = r, c = a ? n : t;
1012
1012
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...s, ref: i });
1013
1013
  });
1014
1014
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1015
1015
  }, {});
1016
- function ar(e, t) {
1016
+ function hr(e, t) {
1017
1017
  e && Xt.flushSync(() => e.dispatchEvent(t));
1018
1018
  }
1019
1019
  function Kn(e) {
@@ -1056,9 +1056,9 @@ function Kn(e) {
1056
1056
  o
1057
1057
  ];
1058
1058
  }
1059
- var Ca = d.createContext(void 0);
1059
+ var Ma = d.createContext(void 0);
1060
1060
  function qt(e) {
1061
- const t = d.useContext(Ca);
1061
+ const t = d.useContext(Ma);
1062
1062
  return e || t || "ltr";
1063
1063
  }
1064
1064
  function Me(e) {
@@ -1070,7 +1070,7 @@ function Me(e) {
1070
1070
  return (o = t.current) == null ? void 0 : o.call(t, ...n);
1071
1071
  }, []);
1072
1072
  }
1073
- function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
1073
+ function Ia(e, t = globalThis == null ? void 0 : globalThis.document) {
1074
1074
  const n = Me(e);
1075
1075
  d.useEffect(() => {
1076
1076
  const o = (r) => {
@@ -1079,7 +1079,7 @@ function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
1079
1079
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
1080
1080
  }, [n, t]);
1081
1081
  }
1082
- var xa = "DismissableLayer", Mn = "dismissableLayer.update", Ea = "dismissableLayer.pointerDownOutside", Ra = "dismissableLayer.focusOutside", Po, cr = d.createContext({
1082
+ var Na = "DismissableLayer", Mn = "dismissableLayer.update", _a = "dismissableLayer.pointerDownOutside", Oa = "dismissableLayer.focusOutside", ko, gr = d.createContext({
1083
1083
  layers: /* @__PURE__ */ new Set(),
1084
1084
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1085
1085
  branches: /* @__PURE__ */ new Set()
@@ -1093,22 +1093,22 @@ var xa = "DismissableLayer", Mn = "dismissableLayer.update", Ea = "dismissableLa
1093
1093
  onInteractOutside: a,
1094
1094
  onDismiss: s,
1095
1095
  ...c
1096
- } = e, l = d.useContext(cr), [f, u] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => u(E)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), C = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= y, R = Ta((E) => {
1096
+ } = e, l = d.useContext(gr), [f, u] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => u(E)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), C = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= y, R = Fa((E) => {
1097
1097
  const x = E.target, M = [...l.branches].some((T) => T.contains(x));
1098
1098
  !S || M || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
1099
- }, m), A = Ma((E) => {
1099
+ }, m), A = La((E) => {
1100
1100
  const x = E.target;
1101
1101
  [...l.branches].some((T) => T.contains(x)) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
1102
1102
  }, m);
1103
- return Sa((E) => {
1103
+ return Ia((E) => {
1104
1104
  C === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
1105
1105
  }, m), d.useEffect(() => {
1106
1106
  if (f)
1107
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Po = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), To(), () => {
1108
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Po);
1107
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (ko = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Fo(), () => {
1108
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = ko);
1109
1109
  };
1110
1110
  }, [f, m, n, l]), d.useEffect(() => () => {
1111
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), To());
1111
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Fo());
1112
1112
  }, [f, l]), d.useEffect(() => {
1113
1113
  const E = () => g({});
1114
1114
  return document.addEventListener(Mn, E), () => document.removeEventListener(Mn, E);
@@ -1131,9 +1131,9 @@ var xa = "DismissableLayer", Mn = "dismissableLayer.update", Ea = "dismissableLa
1131
1131
  );
1132
1132
  }
1133
1133
  );
1134
- Gn.displayName = xa;
1135
- var Aa = "DismissableLayerBranch", Pa = d.forwardRef((e, t) => {
1136
- const n = d.useContext(cr), o = d.useRef(null), r = Z(t, o);
1134
+ Gn.displayName = Na;
1135
+ var Da = "DismissableLayerBranch", ka = d.forwardRef((e, t) => {
1136
+ const n = d.useContext(gr), o = d.useRef(null), r = Z(t, o);
1137
1137
  return d.useEffect(() => {
1138
1138
  const i = o.current;
1139
1139
  if (i)
@@ -1142,16 +1142,16 @@ var Aa = "DismissableLayerBranch", Pa = d.forwardRef((e, t) => {
1142
1142
  };
1143
1143
  }, [n.branches]), /* @__PURE__ */ p(U.div, { ...e, ref: r });
1144
1144
  });
1145
- Pa.displayName = Aa;
1146
- function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
1145
+ ka.displayName = Da;
1146
+ function Fa(e, t = globalThis == null ? void 0 : globalThis.document) {
1147
1147
  const n = Me(e), o = d.useRef(!1), r = d.useRef(() => {
1148
1148
  });
1149
1149
  return d.useEffect(() => {
1150
1150
  const i = (s) => {
1151
1151
  if (s.target && !o.current) {
1152
1152
  let c = function() {
1153
- lr(
1154
- Ea,
1153
+ vr(
1154
+ _a,
1155
1155
  n,
1156
1156
  l,
1157
1157
  { discrete: !0 }
@@ -1173,11 +1173,11 @@ function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
1173
1173
  onPointerDownCapture: () => o.current = !0
1174
1174
  };
1175
1175
  }
1176
- function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
1176
+ function La(e, t = globalThis == null ? void 0 : globalThis.document) {
1177
1177
  const n = Me(e), o = d.useRef(!1);
1178
1178
  return d.useEffect(() => {
1179
1179
  const r = (i) => {
1180
- i.target && !o.current && lr(Ra, n, { originalEvent: i }, {
1180
+ i.target && !o.current && vr(Oa, n, { originalEvent: i }, {
1181
1181
  discrete: !1
1182
1182
  });
1183
1183
  };
@@ -1187,28 +1187,28 @@ function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
1187
1187
  onBlurCapture: () => o.current = !1
1188
1188
  };
1189
1189
  }
1190
- function To() {
1190
+ function Fo() {
1191
1191
  const e = new CustomEvent(Mn);
1192
1192
  document.dispatchEvent(e);
1193
1193
  }
1194
- function lr(e, t, n, { discrete: o }) {
1194
+ function vr(e, t, n, { discrete: o }) {
1195
1195
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1196
- t && r.addEventListener(e, t, { once: !0 }), o ? ar(r, i) : r.dispatchEvent(i);
1196
+ t && r.addEventListener(e, t, { once: !0 }), o ? hr(r, i) : r.dispatchEvent(i);
1197
1197
  }
1198
1198
  var gn = 0;
1199
- function ur() {
1199
+ function wr() {
1200
1200
  d.useEffect(() => {
1201
1201
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1202
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mo()), gn++, () => {
1202
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Lo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Lo()), gn++, () => {
1203
1203
  gn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), gn--;
1204
1204
  };
1205
1205
  }, []);
1206
1206
  }
1207
- function Mo() {
1207
+ function Lo() {
1208
1208
  const e = document.createElement("span");
1209
1209
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1210
1210
  }
1211
- var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Io = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", zn = d.forwardRef((e, t) => {
1211
+ var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", $o = { bubbles: !1, cancelable: !0 }, $a = "FocusScope", zn = d.forwardRef((e, t) => {
1212
1212
  const {
1213
1213
  loop: n = !1,
1214
1214
  trapped: o = !1,
@@ -1247,16 +1247,16 @@ var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Io
1247
1247
  }
1248
1248
  }, [o, s, g.paused]), d.useEffect(() => {
1249
1249
  if (s) {
1250
- _o.add(g);
1250
+ Bo.add(g);
1251
1251
  const h = document.activeElement;
1252
1252
  if (!s.contains(h)) {
1253
- const y = new CustomEvent(vn, Io);
1254
- s.addEventListener(vn, l), s.dispatchEvent(y), y.defaultPrevented || (Na(Fa(dr(s)), { select: !0 }), document.activeElement === h && ke(s));
1253
+ const y = new CustomEvent(vn, $o);
1254
+ s.addEventListener(vn, l), s.dispatchEvent(y), y.defaultPrevented || (Va(Ka(yr(s)), { select: !0 }), document.activeElement === h && ke(s));
1255
1255
  }
1256
1256
  return () => {
1257
1257
  s.removeEventListener(vn, l), setTimeout(() => {
1258
- const y = new CustomEvent(wn, Io);
1259
- s.addEventListener(wn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(wn, f), _o.remove(g);
1258
+ const y = new CustomEvent(wn, $o);
1259
+ s.addEventListener(wn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(wn, f), Bo.remove(g);
1260
1260
  }, 0);
1261
1261
  };
1262
1262
  }
@@ -1266,7 +1266,7 @@ var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Io
1266
1266
  if (!n && !o || g.paused) return;
1267
1267
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
1268
1268
  if (v && y) {
1269
- const C = h.currentTarget, [b, S] = _a(C);
1269
+ const C = h.currentTarget, [b, S] = Ba(C);
1270
1270
  b && S ? !h.shiftKey && y === S ? (h.preventDefault(), n && ke(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && ke(S, { select: !0 })) : y === C && h.preventDefault();
1271
1271
  }
1272
1272
  },
@@ -1274,17 +1274,17 @@ var vn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Io
1274
1274
  );
1275
1275
  return /* @__PURE__ */ p(U.div, { tabIndex: -1, ...a, ref: m, onKeyDown: w });
1276
1276
  });
1277
- zn.displayName = Ia;
1278
- function Na(e, { select: t = !1 } = {}) {
1277
+ zn.displayName = $a;
1278
+ function Va(e, { select: t = !1 } = {}) {
1279
1279
  const n = document.activeElement;
1280
1280
  for (const o of e)
1281
1281
  if (ke(o, { select: t }), document.activeElement !== n) return;
1282
1282
  }
1283
- function _a(e) {
1284
- const t = dr(e), n = No(t, e), o = No(t.reverse(), e);
1283
+ function Ba(e) {
1284
+ const t = yr(e), n = Vo(t, e), o = Vo(t.reverse(), e);
1285
1285
  return [n, o];
1286
1286
  }
1287
- function dr(e) {
1287
+ function yr(e) {
1288
1288
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1289
1289
  acceptNode: (o) => {
1290
1290
  const r = o.tagName === "INPUT" && o.type === "hidden";
@@ -1294,11 +1294,11 @@ function dr(e) {
1294
1294
  for (; n.nextNode(); ) t.push(n.currentNode);
1295
1295
  return t;
1296
1296
  }
1297
- function No(e, t) {
1297
+ function Vo(e, t) {
1298
1298
  for (const n of e)
1299
- if (!Oa(n, { upTo: t })) return n;
1299
+ if (!Wa(n, { upTo: t })) return n;
1300
1300
  }
1301
- function Oa(e, { upTo: t }) {
1301
+ function Wa(e, { upTo: t }) {
1302
1302
  if (getComputedStyle(e).visibility === "hidden") return !0;
1303
1303
  for (; e; ) {
1304
1304
  if (t !== void 0 && e === t) return !1;
@@ -1307,53 +1307,53 @@ function Oa(e, { upTo: t }) {
1307
1307
  }
1308
1308
  return !1;
1309
1309
  }
1310
- function Da(e) {
1310
+ function Ua(e) {
1311
1311
  return e instanceof HTMLInputElement && "select" in e;
1312
1312
  }
1313
1313
  function ke(e, { select: t = !1 } = {}) {
1314
1314
  if (e && e.focus) {
1315
1315
  const n = document.activeElement;
1316
- e.focus({ preventScroll: !0 }), e !== n && Da(e) && t && e.select();
1316
+ e.focus({ preventScroll: !0 }), e !== n && Ua(e) && t && e.select();
1317
1317
  }
1318
1318
  }
1319
- var _o = ka();
1320
- function ka() {
1319
+ var Bo = Ha();
1320
+ function Ha() {
1321
1321
  let e = [];
1322
1322
  return {
1323
1323
  add(t) {
1324
1324
  const n = e[0];
1325
- t !== n && (n == null || n.pause()), e = Oo(e, t), e.unshift(t);
1325
+ t !== n && (n == null || n.pause()), e = Wo(e, t), e.unshift(t);
1326
1326
  },
1327
1327
  remove(t) {
1328
1328
  var n;
1329
- e = Oo(e, t), (n = e[0]) == null || n.resume();
1329
+ e = Wo(e, t), (n = e[0]) == null || n.resume();
1330
1330
  }
1331
1331
  };
1332
1332
  }
1333
- function Oo(e, t) {
1333
+ function Wo(e, t) {
1334
1334
  const n = [...e], o = n.indexOf(t);
1335
1335
  return o !== -1 && n.splice(o, 1), n;
1336
1336
  }
1337
- function Fa(e) {
1337
+ function Ka(e) {
1338
1338
  return e.filter((t) => t.tagName !== "A");
1339
1339
  }
1340
- var La = d[" useId ".trim().toString()] || (() => {
1341
- }), $a = 0;
1340
+ var Ga = d[" useId ".trim().toString()] || (() => {
1341
+ }), za = 0;
1342
1342
  function Ge(e) {
1343
- const [t, n] = d.useState(La());
1343
+ const [t, n] = d.useState(Ga());
1344
1344
  return oe(() => {
1345
- n((o) => o ?? String($a++));
1345
+ n((o) => o ?? String(za++));
1346
1346
  }, [e]), e || (t ? `radix-${t}` : "");
1347
1347
  }
1348
- const Va = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Wt = Math.round, Tt = Math.floor, Te = (e) => ({
1348
+ const ja = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Wt = Math.round, Tt = Math.floor, Te = (e) => ({
1349
1349
  x: e,
1350
1350
  y: e
1351
- }), Ba = {
1351
+ }), Ya = {
1352
1352
  left: "right",
1353
1353
  right: "left",
1354
1354
  bottom: "top",
1355
1355
  top: "bottom"
1356
- }, Wa = {
1356
+ }, Xa = {
1357
1357
  start: "end",
1358
1358
  end: "start"
1359
1359
  };
@@ -1375,48 +1375,48 @@ function jn(e) {
1375
1375
  function Yn(e) {
1376
1376
  return e === "y" ? "height" : "width";
1377
1377
  }
1378
- const Ua = /* @__PURE__ */ new Set(["top", "bottom"]);
1378
+ const Za = /* @__PURE__ */ new Set(["top", "bottom"]);
1379
1379
  function Pe(e) {
1380
- return Ua.has(De(e)) ? "y" : "x";
1380
+ return Za.has(De(e)) ? "y" : "x";
1381
1381
  }
1382
1382
  function Xn(e) {
1383
1383
  return jn(Pe(e));
1384
1384
  }
1385
- function Ha(e, t, n) {
1385
+ function qa(e, t, n) {
1386
1386
  n === void 0 && (n = !1);
1387
1387
  const o = rt(e), r = Xn(e), i = Yn(r);
1388
1388
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
1389
1389
  return t.reference[i] > t.floating[i] && (a = Ut(a)), [a, Ut(a)];
1390
1390
  }
1391
- function Ka(e) {
1391
+ function Ja(e) {
1392
1392
  const t = Ut(e);
1393
1393
  return [Nn(e), t, Nn(t)];
1394
1394
  }
1395
1395
  function Nn(e) {
1396
- return e.replace(/start|end/g, (t) => Wa[t]);
1396
+ return e.replace(/start|end/g, (t) => Xa[t]);
1397
1397
  }
1398
- const Do = ["left", "right"], ko = ["right", "left"], Ga = ["top", "bottom"], za = ["bottom", "top"];
1399
- function ja(e, t, n) {
1398
+ const Uo = ["left", "right"], Ho = ["right", "left"], Qa = ["top", "bottom"], ec = ["bottom", "top"];
1399
+ function tc(e, t, n) {
1400
1400
  switch (e) {
1401
1401
  case "top":
1402
1402
  case "bottom":
1403
- return n ? t ? ko : Do : t ? Do : ko;
1403
+ return n ? t ? Ho : Uo : t ? Uo : Ho;
1404
1404
  case "left":
1405
1405
  case "right":
1406
- return t ? Ga : za;
1406
+ return t ? Qa : ec;
1407
1407
  default:
1408
1408
  return [];
1409
1409
  }
1410
1410
  }
1411
- function Ya(e, t, n, o) {
1411
+ function nc(e, t, n, o) {
1412
1412
  const r = rt(e);
1413
- let i = ja(De(e), n === "start", o);
1413
+ let i = tc(De(e), n === "start", o);
1414
1414
  return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Nn)))), i;
1415
1415
  }
1416
1416
  function Ut(e) {
1417
- return e.replace(/left|right|bottom|top/g, (t) => Ba[t]);
1417
+ return e.replace(/left|right|bottom|top/g, (t) => Ya[t]);
1418
1418
  }
1419
- function Xa(e) {
1419
+ function oc(e) {
1420
1420
  return {
1421
1421
  top: 0,
1422
1422
  right: 0,
@@ -1425,8 +1425,8 @@ function Xa(e) {
1425
1425
  ...e
1426
1426
  };
1427
1427
  }
1428
- function fr(e) {
1429
- return typeof e != "number" ? Xa(e) : {
1428
+ function br(e) {
1429
+ return typeof e != "number" ? oc(e) : {
1430
1430
  top: e,
1431
1431
  right: e,
1432
1432
  bottom: e,
@@ -1451,7 +1451,7 @@ function Ht(e) {
1451
1451
  y: n
1452
1452
  };
1453
1453
  }
1454
- function Fo(e, t, n) {
1454
+ function Ko(e, t, n) {
1455
1455
  let {
1456
1456
  reference: o,
1457
1457
  floating: r
@@ -1499,7 +1499,7 @@ function Fo(e, t, n) {
1499
1499
  }
1500
1500
  return g;
1501
1501
  }
1502
- const Za = async (e, t, n) => {
1502
+ const rc = async (e, t, n) => {
1503
1503
  const {
1504
1504
  placement: o = "bottom",
1505
1505
  strategy: r = "absolute",
@@ -1513,7 +1513,7 @@ const Za = async (e, t, n) => {
1513
1513
  }), {
1514
1514
  x: f,
1515
1515
  y: u
1516
- } = Fo(l, o, c), m = o, g = {}, w = 0;
1516
+ } = Ko(l, o, c), m = o, g = {}, w = 0;
1517
1517
  for (let h = 0; h < s.length; h++) {
1518
1518
  const {
1519
1519
  name: v,
@@ -1550,7 +1550,7 @@ const Za = async (e, t, n) => {
1550
1550
  }) : R.rects), {
1551
1551
  x: f,
1552
1552
  y: u
1553
- } = Fo(l, m, c)), h = -1);
1553
+ } = Ko(l, m, c)), h = -1);
1554
1554
  }
1555
1555
  return {
1556
1556
  x: f,
@@ -1576,7 +1576,7 @@ async function wt(e, t) {
1576
1576
  elementContext: u = "floating",
1577
1577
  altBoundary: m = !1,
1578
1578
  padding: g = 0
1579
- } = Oe(t, e), w = fr(g), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Ht(await i.getClippingRect({
1579
+ } = Oe(t, e), w = br(g), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Ht(await i.getClippingRect({
1580
1580
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1581
1581
  boundary: l,
1582
1582
  rootBoundary: f,
@@ -1605,7 +1605,7 @@ async function wt(e, t) {
1605
1605
  right: (R.right - y.right + w.right) / S.x
1606
1606
  };
1607
1607
  }
1608
- const qa = (e) => ({
1608
+ const ic = (e) => ({
1609
1609
  name: "arrow",
1610
1610
  options: e,
1611
1611
  async fn(t) {
@@ -1623,7 +1623,7 @@ const qa = (e) => ({
1623
1623
  } = Oe(e, t) || {};
1624
1624
  if (l == null)
1625
1625
  return {};
1626
- const u = fr(f), m = {
1626
+ const u = br(f), m = {
1627
1627
  x: n,
1628
1628
  y: o
1629
1629
  }, g = Xn(r), w = Yn(g), h = await a.getDimensions(l), v = g === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - m[g] - i.floating[w], R = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
@@ -1642,7 +1642,7 @@ const qa = (e) => ({
1642
1642
  reset: O
1643
1643
  };
1644
1644
  }
1645
- }), Ja = function(e) {
1645
+ }), sc = function(e) {
1646
1646
  return e === void 0 && (e = {}), {
1647
1647
  name: "flip",
1648
1648
  options: e,
@@ -1666,12 +1666,12 @@ const qa = (e) => ({
1666
1666
  } = Oe(e, t);
1667
1667
  if ((n = i.arrow) != null && n.alignmentOffset)
1668
1668
  return {};
1669
- const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Ut(s)] : Ka(s)), A = w !== "none";
1670
- !m && A && R.push(...Ya(s, h, w, S));
1669
+ const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Ut(s)] : Ja(s)), A = w !== "none";
1670
+ !m && A && R.push(...nc(s, h, w, S));
1671
1671
  const E = [s, ...R], x = await wt(t, v), M = [];
1672
1672
  let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1673
1673
  if (f && M.push(x[y]), u) {
1674
- const F = Ha(r, a, S);
1674
+ const F = qa(r, a, S);
1675
1675
  M.push(x[F[0]], x[F[1]]);
1676
1676
  }
1677
1677
  if (T = [...T, {
@@ -1724,7 +1724,7 @@ const qa = (e) => ({
1724
1724
  }
1725
1725
  };
1726
1726
  };
1727
- function Lo(e, t) {
1727
+ function Go(e, t) {
1728
1728
  return {
1729
1729
  top: e.top - t.height,
1730
1730
  right: e.right - t.width,
@@ -1732,10 +1732,10 @@ function Lo(e, t) {
1732
1732
  left: e.left - t.width
1733
1733
  };
1734
1734
  }
1735
- function $o(e) {
1736
- return Va.some((t) => e[t] >= 0);
1735
+ function zo(e) {
1736
+ return ja.some((t) => e[t] >= 0);
1737
1737
  }
1738
- const Qa = function(e) {
1738
+ const ac = function(e) {
1739
1739
  return e === void 0 && (e = {}), {
1740
1740
  name: "hide",
1741
1741
  options: e,
@@ -1751,11 +1751,11 @@ const Qa = function(e) {
1751
1751
  const i = await wt(t, {
1752
1752
  ...r,
1753
1753
  elementContext: "reference"
1754
- }), a = Lo(i, n.reference);
1754
+ }), a = Go(i, n.reference);
1755
1755
  return {
1756
1756
  data: {
1757
1757
  referenceHiddenOffsets: a,
1758
- referenceHidden: $o(a)
1758
+ referenceHidden: zo(a)
1759
1759
  }
1760
1760
  };
1761
1761
  }
@@ -1763,11 +1763,11 @@ const Qa = function(e) {
1763
1763
  const i = await wt(t, {
1764
1764
  ...r,
1765
1765
  altBoundary: !0
1766
- }), a = Lo(i, n.floating);
1766
+ }), a = Go(i, n.floating);
1767
1767
  return {
1768
1768
  data: {
1769
1769
  escapedOffsets: a,
1770
- escaped: $o(a)
1770
+ escaped: zo(a)
1771
1771
  }
1772
1772
  };
1773
1773
  }
@@ -1776,13 +1776,13 @@ const Qa = function(e) {
1776
1776
  }
1777
1777
  }
1778
1778
  };
1779
- }, pr = /* @__PURE__ */ new Set(["left", "top"]);
1780
- async function ec(e, t) {
1779
+ }, Cr = /* @__PURE__ */ new Set(["left", "top"]);
1780
+ async function cc(e, t) {
1781
1781
  const {
1782
1782
  placement: n,
1783
1783
  platform: o,
1784
1784
  elements: r
1785
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = De(n), s = rt(n), c = Pe(n) === "y", l = pr.has(a) ? -1 : 1, f = i && c ? -1 : 1, u = Oe(t, e);
1785
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = De(n), s = rt(n), c = Pe(n) === "y", l = Cr.has(a) ? -1 : 1, f = i && c ? -1 : 1, u = Oe(t, e);
1786
1786
  let {
1787
1787
  mainAxis: m,
1788
1788
  crossAxis: g,
@@ -1804,7 +1804,7 @@ async function ec(e, t) {
1804
1804
  y: g * f
1805
1805
  };
1806
1806
  }
1807
- const tc = function(e) {
1807
+ const lc = function(e) {
1808
1808
  return e === void 0 && (e = 0), {
1809
1809
  name: "offset",
1810
1810
  options: e,
@@ -1815,7 +1815,7 @@ const tc = function(e) {
1815
1815
  y: i,
1816
1816
  placement: a,
1817
1817
  middlewareData: s
1818
- } = t, c = await ec(t, e);
1818
+ } = t, c = await cc(t, e);
1819
1819
  return a === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
1820
1820
  x: r + c.x,
1821
1821
  y: i + c.y,
@@ -1826,7 +1826,7 @@ const tc = function(e) {
1826
1826
  };
1827
1827
  }
1828
1828
  };
1829
- }, nc = function(e) {
1829
+ }, uc = function(e) {
1830
1830
  return e === void 0 && (e = {}), {
1831
1831
  name: "shift",
1832
1832
  options: e,
@@ -1882,7 +1882,7 @@ const tc = function(e) {
1882
1882
  };
1883
1883
  }
1884
1884
  };
1885
- }, oc = function(e) {
1885
+ }, dc = function(e) {
1886
1886
  return e === void 0 && (e = {}), {
1887
1887
  options: e,
1888
1888
  fn(t) {
@@ -1915,7 +1915,7 @@ const tc = function(e) {
1915
1915
  }
1916
1916
  if (l) {
1917
1917
  var y, C;
1918
- const b = m === "y" ? "width" : "height", S = pr.has(De(r)), R = i.reference[u] - i.floating[b] + (S && ((y = a.offset) == null ? void 0 : y[u]) || 0) + (S ? 0 : v.crossAxis), A = i.reference[u] + i.reference[b] + (S ? 0 : ((C = a.offset) == null ? void 0 : C[u]) || 0) - (S ? v.crossAxis : 0);
1918
+ const b = m === "y" ? "width" : "height", S = Cr.has(De(r)), R = i.reference[u] - i.floating[b] + (S && ((y = a.offset) == null ? void 0 : y[u]) || 0) + (S ? 0 : v.crossAxis), A = i.reference[u] + i.reference[b] + (S ? 0 : ((C = a.offset) == null ? void 0 : C[u]) || 0) - (S ? v.crossAxis : 0);
1919
1919
  w < R ? w = R : w > A && (w = A);
1920
1920
  }
1921
1921
  return {
@@ -1924,7 +1924,7 @@ const tc = function(e) {
1924
1924
  };
1925
1925
  }
1926
1926
  };
1927
- }, rc = function(e) {
1927
+ }, fc = function(e) {
1928
1928
  return e === void 0 && (e = {}), {
1929
1929
  name: "size",
1930
1930
  options: e,
@@ -1969,7 +1969,7 @@ function Jt() {
1969
1969
  return typeof window < "u";
1970
1970
  }
1971
1971
  function it(e) {
1972
- return mr(e) ? (e.nodeName || "").toLowerCase() : "#document";
1972
+ return Sr(e) ? (e.nodeName || "").toLowerCase() : "#document";
1973
1973
  }
1974
1974
  function pe(e) {
1975
1975
  var t;
@@ -1977,9 +1977,9 @@ function pe(e) {
1977
1977
  }
1978
1978
  function Ne(e) {
1979
1979
  var t;
1980
- return (t = (mr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1980
+ return (t = (Sr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1981
1981
  }
1982
- function mr(e) {
1982
+ function Sr(e) {
1983
1983
  return Jt() ? e instanceof Node || e instanceof pe(e).Node : !1;
1984
1984
  }
1985
1985
  function Se(e) {
@@ -1988,10 +1988,10 @@ function Se(e) {
1988
1988
  function Ie(e) {
1989
1989
  return Jt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
1990
1990
  }
1991
- function Vo(e) {
1991
+ function jo(e) {
1992
1992
  return !Jt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
1993
1993
  }
1994
- const ic = /* @__PURE__ */ new Set(["inline", "contents"]);
1994
+ const pc = /* @__PURE__ */ new Set(["inline", "contents"]);
1995
1995
  function St(e) {
1996
1996
  const {
1997
1997
  overflow: t,
@@ -1999,15 +1999,15 @@ function St(e) {
1999
1999
  overflowY: o,
2000
2000
  display: r
2001
2001
  } = xe(e);
2002
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !ic.has(r);
2002
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !pc.has(r);
2003
2003
  }
2004
- const sc = /* @__PURE__ */ new Set(["table", "td", "th"]);
2005
- function ac(e) {
2006
- return sc.has(it(e));
2004
+ const mc = /* @__PURE__ */ new Set(["table", "td", "th"]);
2005
+ function hc(e) {
2006
+ return mc.has(it(e));
2007
2007
  }
2008
- const cc = [":popover-open", ":modal"];
2008
+ const gc = [":popover-open", ":modal"];
2009
2009
  function Qt(e) {
2010
- return cc.some((t) => {
2010
+ return gc.some((t) => {
2011
2011
  try {
2012
2012
  return e.matches(t);
2013
2013
  } catch {
@@ -2015,12 +2015,12 @@ function Qt(e) {
2015
2015
  }
2016
2016
  });
2017
2017
  }
2018
- const lc = ["transform", "translate", "scale", "rotate", "perspective"], uc = ["transform", "translate", "scale", "rotate", "perspective", "filter"], dc = ["paint", "layout", "strict", "content"];
2018
+ const vc = ["transform", "translate", "scale", "rotate", "perspective"], wc = ["transform", "translate", "scale", "rotate", "perspective", "filter"], yc = ["paint", "layout", "strict", "content"];
2019
2019
  function Zn(e) {
2020
2020
  const t = qn(), n = Se(e) ? xe(e) : e;
2021
- return lc.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || uc.some((o) => (n.willChange || "").includes(o)) || dc.some((o) => (n.contain || "").includes(o));
2021
+ return vc.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || wc.some((o) => (n.willChange || "").includes(o)) || yc.some((o) => (n.contain || "").includes(o));
2022
2022
  }
2023
- function fc(e) {
2023
+ function bc(e) {
2024
2024
  let t = Le(e);
2025
2025
  for (; Ie(t) && !ot(t); ) {
2026
2026
  if (Zn(t))
@@ -2034,9 +2034,9 @@ function fc(e) {
2034
2034
  function qn() {
2035
2035
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2036
2036
  }
2037
- const pc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2037
+ const Cc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2038
2038
  function ot(e) {
2039
- return pc.has(it(e));
2039
+ return Cc.has(it(e));
2040
2040
  }
2041
2041
  function xe(e) {
2042
2042
  return pe(e).getComputedStyle(e);
@@ -2057,19 +2057,19 @@ function Le(e) {
2057
2057
  // Step into the shadow DOM of the parent of a slotted node.
2058
2058
  e.assignedSlot || // DOM Element detected.
2059
2059
  e.parentNode || // ShadowRoot detected.
2060
- Vo(e) && e.host || // Fallback.
2060
+ jo(e) && e.host || // Fallback.
2061
2061
  Ne(e)
2062
2062
  );
2063
- return Vo(t) ? t.host : t;
2063
+ return jo(t) ? t.host : t;
2064
2064
  }
2065
- function hr(e) {
2065
+ function xr(e) {
2066
2066
  const t = Le(e);
2067
- return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && St(t) ? t : hr(t);
2067
+ return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && St(t) ? t : xr(t);
2068
2068
  }
2069
2069
  function yt(e, t, n) {
2070
2070
  var o;
2071
2071
  t === void 0 && (t = []), n === void 0 && (n = !0);
2072
- const r = hr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
2072
+ const r = xr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
2073
2073
  if (i) {
2074
2074
  const s = _n(a);
2075
2075
  return t.concat(a, a.visualViewport || [], St(r) ? r : [], s && n ? yt(s) : []);
@@ -2079,7 +2079,7 @@ function yt(e, t, n) {
2079
2079
  function _n(e) {
2080
2080
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2081
2081
  }
2082
- function gr(e) {
2082
+ function Er(e) {
2083
2083
  const t = xe(e);
2084
2084
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
2085
2085
  const r = Ie(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Wt(n) !== i || Wt(o) !== a;
@@ -2100,22 +2100,22 @@ function tt(e) {
2100
2100
  width: o,
2101
2101
  height: r,
2102
2102
  $: i
2103
- } = gr(t);
2103
+ } = Er(t);
2104
2104
  let a = (i ? Wt(n.width) : n.width) / o, s = (i ? Wt(n.height) : n.height) / r;
2105
2105
  return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2106
2106
  x: a,
2107
2107
  y: s
2108
2108
  };
2109
2109
  }
2110
- const mc = /* @__PURE__ */ Te(0);
2111
- function vr(e) {
2110
+ const Sc = /* @__PURE__ */ Te(0);
2111
+ function Rr(e) {
2112
2112
  const t = pe(e);
2113
- return !qn() || !t.visualViewport ? mc : {
2113
+ return !qn() || !t.visualViewport ? Sc : {
2114
2114
  x: t.visualViewport.offsetLeft,
2115
2115
  y: t.visualViewport.offsetTop
2116
2116
  };
2117
2117
  }
2118
- function hc(e, t, n) {
2118
+ function xc(e, t, n) {
2119
2119
  return t === void 0 && (t = !1), !n || t && n !== pe(e) ? !1 : t;
2120
2120
  }
2121
2121
  function ze(e, t, n, o) {
@@ -2123,7 +2123,7 @@ function ze(e, t, n, o) {
2123
2123
  const r = e.getBoundingClientRect(), i = Jn(e);
2124
2124
  let a = Te(1);
2125
2125
  t && (o ? Se(o) && (a = tt(o)) : a = tt(e));
2126
- const s = hc(i, n, o) ? vr(i) : Te(0);
2126
+ const s = xc(i, n, o) ? Rr(i) : Te(0);
2127
2127
  let c = (r.left + s.x) / a.x, l = (r.top + s.y) / a.y, f = r.width / a.x, u = r.height / a.y;
2128
2128
  if (i) {
2129
2129
  const m = pe(i), g = o && Se(o) ? pe(o) : o;
@@ -2144,14 +2144,14 @@ function tn(e, t) {
2144
2144
  const n = en(e).scrollLeft;
2145
2145
  return t ? t.left + n : ze(Ne(e)).left + n;
2146
2146
  }
2147
- function wr(e, t) {
2147
+ function Ar(e, t) {
2148
2148
  const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - tn(e, n), r = n.top + t.scrollTop;
2149
2149
  return {
2150
2150
  x: o,
2151
2151
  y: r
2152
2152
  };
2153
2153
  }
2154
- function gc(e) {
2154
+ function Ec(e) {
2155
2155
  let {
2156
2156
  elements: t,
2157
2157
  rect: n,
@@ -2170,7 +2170,7 @@ function gc(e) {
2170
2170
  const g = ze(o);
2171
2171
  l = tt(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
2172
2172
  }
2173
- const m = a && !u && !i ? wr(a, c) : Te(0);
2173
+ const m = a && !u && !i ? Ar(a, c) : Te(0);
2174
2174
  return {
2175
2175
  width: n.width * l.x,
2176
2176
  height: n.height * l.y,
@@ -2178,10 +2178,10 @@ function gc(e) {
2178
2178
  y: n.y * l.y - c.scrollTop * l.y + f.y + m.y
2179
2179
  };
2180
2180
  }
2181
- function vc(e) {
2181
+ function Rc(e) {
2182
2182
  return Array.from(e.getClientRects());
2183
2183
  }
2184
- function wc(e) {
2184
+ function Ac(e) {
2185
2185
  const t = Ne(e), n = en(e), o = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = fe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2186
2186
  let a = -n.scrollLeft + tn(e);
2187
2187
  const s = -n.scrollTop;
@@ -2192,8 +2192,8 @@ function wc(e) {
2192
2192
  y: s
2193
2193
  };
2194
2194
  }
2195
- const Bo = 25;
2196
- function yc(e, t) {
2195
+ const Yo = 25;
2196
+ function Pc(e, t) {
2197
2197
  const n = pe(e), o = Ne(e), r = n.visualViewport;
2198
2198
  let i = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
2199
2199
  if (r) {
@@ -2204,8 +2204,8 @@ function yc(e, t) {
2204
2204
  const l = tn(o);
2205
2205
  if (l <= 0) {
2206
2206
  const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), g = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, w = Math.abs(o.clientWidth - u.clientWidth - g);
2207
- w <= Bo && (i -= w);
2208
- } else l <= Bo && (i += l);
2207
+ w <= Yo && (i -= w);
2208
+ } else l <= Yo && (i += l);
2209
2209
  return {
2210
2210
  width: i,
2211
2211
  height: a,
@@ -2213,8 +2213,8 @@ function yc(e, t) {
2213
2213
  y: c
2214
2214
  };
2215
2215
  }
2216
- const bc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2217
- function Cc(e, t) {
2216
+ const Tc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2217
+ function Mc(e, t) {
2218
2218
  const n = ze(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ie(e) ? tt(e) : Te(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = r * i.x, l = o * i.y;
2219
2219
  return {
2220
2220
  width: a,
@@ -2223,16 +2223,16 @@ function Cc(e, t) {
2223
2223
  y: l
2224
2224
  };
2225
2225
  }
2226
- function Wo(e, t, n) {
2226
+ function Xo(e, t, n) {
2227
2227
  let o;
2228
2228
  if (t === "viewport")
2229
- o = yc(e, n);
2229
+ o = Pc(e, n);
2230
2230
  else if (t === "document")
2231
- o = wc(Ne(e));
2231
+ o = Ac(Ne(e));
2232
2232
  else if (Se(t))
2233
- o = Cc(t, n);
2233
+ o = Mc(t, n);
2234
2234
  else {
2235
- const r = vr(e);
2235
+ const r = Rr(e);
2236
2236
  o = {
2237
2237
  x: t.x - r.x,
2238
2238
  y: t.y - r.y,
@@ -2242,11 +2242,11 @@ function Wo(e, t, n) {
2242
2242
  }
2243
2243
  return Ht(o);
2244
2244
  }
2245
- function yr(e, t) {
2245
+ function Pr(e, t) {
2246
2246
  const n = Le(e);
2247
- return n === t || !Se(n) || ot(n) ? !1 : xe(n).position === "fixed" || yr(n, t);
2247
+ return n === t || !Se(n) || ot(n) ? !1 : xe(n).position === "fixed" || Pr(n, t);
2248
2248
  }
2249
- function Sc(e, t) {
2249
+ function Ic(e, t) {
2250
2250
  const n = t.get(e);
2251
2251
  if (n)
2252
2252
  return n;
@@ -2255,21 +2255,21 @@ function Sc(e, t) {
2255
2255
  let a = i ? Le(e) : e;
2256
2256
  for (; Se(a) && !ot(a); ) {
2257
2257
  const s = xe(a), c = Zn(a);
2258
- !c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && bc.has(r.position) || St(a) && !c && yr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
2258
+ !c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && Tc.has(r.position) || St(a) && !c && Pr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
2259
2259
  }
2260
2260
  return t.set(e, o), o;
2261
2261
  }
2262
- function xc(e) {
2262
+ function Nc(e) {
2263
2263
  let {
2264
2264
  element: t,
2265
2265
  boundary: n,
2266
2266
  rootBoundary: o,
2267
2267
  strategy: r
2268
2268
  } = e;
2269
- const a = [...n === "clippingAncestors" ? Qt(t) ? [] : Sc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
2270
- const u = Wo(t, f, r);
2269
+ const a = [...n === "clippingAncestors" ? Qt(t) ? [] : Ic(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
2270
+ const u = Xo(t, f, r);
2271
2271
  return l.top = fe(u.top, l.top), l.right = Fe(u.right, l.right), l.bottom = Fe(u.bottom, l.bottom), l.left = fe(u.left, l.left), l;
2272
- }, Wo(t, s, r));
2272
+ }, Xo(t, s, r));
2273
2273
  return {
2274
2274
  width: c.right - c.left,
2275
2275
  height: c.bottom - c.top,
@@ -2277,17 +2277,17 @@ function xc(e) {
2277
2277
  y: c.top
2278
2278
  };
2279
2279
  }
2280
- function Ec(e) {
2280
+ function _c(e) {
2281
2281
  const {
2282
2282
  width: t,
2283
2283
  height: n
2284
- } = gr(e);
2284
+ } = Er(e);
2285
2285
  return {
2286
2286
  width: t,
2287
2287
  height: n
2288
2288
  };
2289
2289
  }
2290
- function Rc(e, t, n) {
2290
+ function Oc(e, t, n) {
2291
2291
  const o = Ie(t), r = Ne(t), i = n === "fixed", a = ze(e, !0, i, t);
2292
2292
  let s = {
2293
2293
  scrollLeft: 0,
@@ -2303,7 +2303,7 @@ function Rc(e, t, n) {
2303
2303
  c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
2304
2304
  } else r && l();
2305
2305
  i && !o && r && l();
2306
- const f = r && !o && !i ? wr(r, s) : Te(0), u = a.left + s.scrollLeft - c.x - f.x, m = a.top + s.scrollTop - c.y - f.y;
2306
+ const f = r && !o && !i ? Ar(r, s) : Te(0), u = a.left + s.scrollLeft - c.x - f.x, m = a.top + s.scrollTop - c.y - f.y;
2307
2307
  return {
2308
2308
  x: u,
2309
2309
  y: m,
@@ -2314,7 +2314,7 @@ function Rc(e, t, n) {
2314
2314
  function yn(e) {
2315
2315
  return xe(e).position === "static";
2316
2316
  }
2317
- function Uo(e, t) {
2317
+ function Zo(e, t) {
2318
2318
  if (!Ie(e) || xe(e).position === "fixed")
2319
2319
  return null;
2320
2320
  if (t)
@@ -2322,7 +2322,7 @@ function Uo(e, t) {
2322
2322
  let n = e.offsetParent;
2323
2323
  return Ne(e) === n && (n = n.ownerDocument.body), n;
2324
2324
  }
2325
- function br(e, t) {
2325
+ function Tr(e, t) {
2326
2326
  const n = pe(e);
2327
2327
  if (Qt(e))
2328
2328
  return n;
@@ -2335,15 +2335,15 @@ function br(e, t) {
2335
2335
  }
2336
2336
  return n;
2337
2337
  }
2338
- let o = Uo(e, t);
2339
- for (; o && ac(o) && yn(o); )
2340
- o = Uo(o, t);
2341
- return o && ot(o) && yn(o) && !Zn(o) ? n : o || fc(e) || n;
2338
+ let o = Zo(e, t);
2339
+ for (; o && hc(o) && yn(o); )
2340
+ o = Zo(o, t);
2341
+ return o && ot(o) && yn(o) && !Zn(o) ? n : o || bc(e) || n;
2342
2342
  }
2343
- const Ac = async function(e) {
2344
- const t = this.getOffsetParent || br, n = this.getDimensions, o = await n(e.floating);
2343
+ const Dc = async function(e) {
2344
+ const t = this.getOffsetParent || Tr, n = this.getDimensions, o = await n(e.floating);
2345
2345
  return {
2346
- reference: Rc(e.reference, await t(e.floating), e.strategy),
2346
+ reference: Oc(e.reference, await t(e.floating), e.strategy),
2347
2347
  floating: {
2348
2348
  x: 0,
2349
2349
  y: 0,
@@ -2352,25 +2352,25 @@ const Ac = async function(e) {
2352
2352
  }
2353
2353
  };
2354
2354
  };
2355
- function Pc(e) {
2355
+ function kc(e) {
2356
2356
  return xe(e).direction === "rtl";
2357
2357
  }
2358
- const Tc = {
2359
- convertOffsetParentRelativeRectToViewportRelativeRect: gc,
2358
+ const Fc = {
2359
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ec,
2360
2360
  getDocumentElement: Ne,
2361
- getClippingRect: xc,
2362
- getOffsetParent: br,
2363
- getElementRects: Ac,
2364
- getClientRects: vc,
2365
- getDimensions: Ec,
2361
+ getClippingRect: Nc,
2362
+ getOffsetParent: Tr,
2363
+ getElementRects: Dc,
2364
+ getClientRects: Rc,
2365
+ getDimensions: _c,
2366
2366
  getScale: tt,
2367
2367
  isElement: Se,
2368
- isRTL: Pc
2368
+ isRTL: kc
2369
2369
  };
2370
- function Cr(e, t) {
2370
+ function Mr(e, t) {
2371
2371
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2372
2372
  }
2373
- function Mc(e, t) {
2373
+ function Lc(e, t) {
2374
2374
  let n = null, o;
2375
2375
  const r = Ne(e);
2376
2376
  function i() {
@@ -2401,7 +2401,7 @@ function Mc(e, t) {
2401
2401
  a(!1, 1e-7);
2402
2402
  }, 1e3);
2403
2403
  }
2404
- E === 1 && !Cr(l, e.getBoundingClientRect()) && a(), S = !1;
2404
+ E === 1 && !Mr(l, e.getBoundingClientRect()) && a(), S = !1;
2405
2405
  }
2406
2406
  try {
2407
2407
  n = new IntersectionObserver(R, {
@@ -2416,7 +2416,7 @@ function Mc(e, t) {
2416
2416
  }
2417
2417
  return a(!0), i;
2418
2418
  }
2419
- function Ic(e, t, n, o) {
2419
+ function $c(e, t, n, o) {
2420
2420
  o === void 0 && (o = {});
2421
2421
  const {
2422
2422
  ancestorScroll: r = !0,
@@ -2430,7 +2430,7 @@ function Ic(e, t, n, o) {
2430
2430
  passive: !0
2431
2431
  }), i && y.addEventListener("resize", n);
2432
2432
  });
2433
- const u = l && s ? Mc(l, n) : null;
2433
+ const u = l && s ? Lc(l, n) : null;
2434
2434
  let m = -1, g = null;
2435
2435
  a && (g = new ResizeObserver((y) => {
2436
2436
  let [C] = y;
@@ -2443,7 +2443,7 @@ function Ic(e, t, n, o) {
2443
2443
  c && v();
2444
2444
  function v() {
2445
2445
  const y = ze(e);
2446
- h && !Cr(h, y) && n(), h = y, w = requestAnimationFrame(v);
2446
+ h && !Mr(h, y) && n(), h = y, w = requestAnimationFrame(v);
2447
2447
  }
2448
2448
  return n(), () => {
2449
2449
  var y;
@@ -2452,21 +2452,21 @@ function Ic(e, t, n, o) {
2452
2452
  }), u == null || u(), (y = g) == null || y.disconnect(), g = null, c && cancelAnimationFrame(w);
2453
2453
  };
2454
2454
  }
2455
- const Nc = tc, _c = nc, Oc = Ja, Dc = rc, kc = Qa, Ho = qa, Fc = oc, Lc = (e, t, n) => {
2455
+ const Vc = lc, Bc = uc, Wc = sc, Uc = fc, Hc = ac, qo = ic, Kc = dc, Gc = (e, t, n) => {
2456
2456
  const o = /* @__PURE__ */ new Map(), r = {
2457
- platform: Tc,
2457
+ platform: Fc,
2458
2458
  ...n
2459
2459
  }, i = {
2460
2460
  ...r.platform,
2461
2461
  _c: o
2462
2462
  };
2463
- return Za(e, t, {
2463
+ return rc(e, t, {
2464
2464
  ...r,
2465
2465
  platform: i
2466
2466
  });
2467
2467
  };
2468
- var $c = typeof document < "u", Vc = function() {
2469
- }, $t = $c ? As : Vc;
2468
+ var zc = typeof document < "u", jc = function() {
2469
+ }, $t = zc ? Ds : jc;
2470
2470
  function Kt(e, t) {
2471
2471
  if (e === t)
2472
2472
  return !0;
@@ -2497,11 +2497,11 @@ function Kt(e, t) {
2497
2497
  }
2498
2498
  return e !== e && t !== t;
2499
2499
  }
2500
- function Sr(e) {
2500
+ function Ir(e) {
2501
2501
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2502
2502
  }
2503
- function Ko(e, t) {
2504
- const n = Sr(e);
2503
+ function Jo(e, t) {
2504
+ const n = Ir(e);
2505
2505
  return Math.round(t * n) / n;
2506
2506
  }
2507
2507
  function bn(e) {
@@ -2510,7 +2510,7 @@ function bn(e) {
2510
2510
  t.current = e;
2511
2511
  }), t;
2512
2512
  }
2513
- function Bc(e) {
2513
+ function Yc(e) {
2514
2514
  e === void 0 && (e = {});
2515
2515
  const {
2516
2516
  placement: t = "bottom",
@@ -2545,7 +2545,7 @@ function Bc(e) {
2545
2545
  strategy: n,
2546
2546
  middleware: m
2547
2547
  };
2548
- D.current && (_.platform = D.current), Lc(A.current, E.current, _).then((P) => {
2548
+ D.current && (_.platform = D.current), Gc(A.current, E.current, _).then((P) => {
2549
2549
  const j = {
2550
2550
  ...P,
2551
2551
  // The floating element's position may be recomputed while it's closed
@@ -2591,11 +2591,11 @@ function Bc(e) {
2591
2591
  };
2592
2592
  if (!O.floating)
2593
2593
  return _;
2594
- const P = Ko(O.floating, f.x), j = Ko(O.floating, f.y);
2594
+ const P = Jo(O.floating, f.x), j = Jo(O.floating, f.y);
2595
2595
  return s ? {
2596
2596
  ..._,
2597
2597
  transform: "translate(" + P + "px, " + j + "px)",
2598
- ...Sr(O.floating) >= 1.5 && {
2598
+ ...Ir(O.floating) >= 1.5 && {
2599
2599
  willChange: "transform"
2600
2600
  }
2601
2601
  } : {
@@ -2612,7 +2612,7 @@ function Bc(e) {
2612
2612
  floatingStyles: B
2613
2613
  }), [f, $, K, O, B]);
2614
2614
  }
2615
- const Wc = (e) => {
2615
+ const Xc = (e) => {
2616
2616
  function t(n) {
2617
2617
  return {}.hasOwnProperty.call(n, "current");
2618
2618
  }
@@ -2624,38 +2624,38 @@ const Wc = (e) => {
2624
2624
  element: o,
2625
2625
  padding: r
2626
2626
  } = typeof e == "function" ? e(n) : e;
2627
- return o && t(o) ? o.current != null ? Ho({
2627
+ return o && t(o) ? o.current != null ? qo({
2628
2628
  element: o.current,
2629
2629
  padding: r
2630
- }).fn(n) : {} : o ? Ho({
2630
+ }).fn(n) : {} : o ? qo({
2631
2631
  element: o,
2632
2632
  padding: r
2633
2633
  }).fn(n) : {};
2634
2634
  }
2635
2635
  };
2636
- }, Uc = (e, t) => ({
2637
- ...Nc(e),
2636
+ }, Zc = (e, t) => ({
2637
+ ...Vc(e),
2638
2638
  options: [e, t]
2639
- }), Hc = (e, t) => ({
2640
- ..._c(e),
2639
+ }), qc = (e, t) => ({
2640
+ ...Bc(e),
2641
2641
  options: [e, t]
2642
- }), Kc = (e, t) => ({
2643
- ...Fc(e),
2642
+ }), Jc = (e, t) => ({
2643
+ ...Kc(e),
2644
2644
  options: [e, t]
2645
- }), Gc = (e, t) => ({
2646
- ...Oc(e),
2645
+ }), Qc = (e, t) => ({
2646
+ ...Wc(e),
2647
2647
  options: [e, t]
2648
- }), zc = (e, t) => ({
2649
- ...Dc(e),
2648
+ }), el = (e, t) => ({
2649
+ ...Uc(e),
2650
2650
  options: [e, t]
2651
- }), jc = (e, t) => ({
2652
- ...kc(e),
2651
+ }), tl = (e, t) => ({
2652
+ ...Hc(e),
2653
2653
  options: [e, t]
2654
- }), Yc = (e, t) => ({
2655
- ...Wc(e),
2654
+ }), nl = (e, t) => ({
2655
+ ...Xc(e),
2656
2656
  options: [e, t]
2657
2657
  });
2658
- var Xc = "Arrow", xr = d.forwardRef((e, t) => {
2658
+ var ol = "Arrow", Nr = d.forwardRef((e, t) => {
2659
2659
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
2660
2660
  return /* @__PURE__ */ p(
2661
2661
  U.svg,
@@ -2670,9 +2670,9 @@ var Xc = "Arrow", xr = d.forwardRef((e, t) => {
2670
2670
  }
2671
2671
  );
2672
2672
  });
2673
- xr.displayName = Xc;
2674
- var Zc = xr;
2675
- function qc(e) {
2673
+ Nr.displayName = ol;
2674
+ var rl = Nr;
2675
+ function il(e) {
2676
2676
  const [t, n] = d.useState(void 0);
2677
2677
  return oe(() => {
2678
2678
  if (e) {
@@ -2694,22 +2694,22 @@ function qc(e) {
2694
2694
  n(void 0);
2695
2695
  }, [e]), t;
2696
2696
  }
2697
- var Qn = "Popper", [Er, nn] = Xe(Qn), [Jc, Rr] = Er(Qn), Ar = (e) => {
2697
+ var Qn = "Popper", [_r, nn] = Xe(Qn), [sl, Or] = _r(Qn), Dr = (e) => {
2698
2698
  const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
2699
- return /* @__PURE__ */ p(Jc, { scope: t, anchor: o, onAnchorChange: r, children: n });
2699
+ return /* @__PURE__ */ p(sl, { scope: t, anchor: o, onAnchorChange: r, children: n });
2700
2700
  };
2701
- Ar.displayName = Qn;
2702
- var Pr = "PopperAnchor", Tr = d.forwardRef(
2701
+ Dr.displayName = Qn;
2702
+ var kr = "PopperAnchor", Fr = d.forwardRef(
2703
2703
  (e, t) => {
2704
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = Rr(Pr, n), a = d.useRef(null), s = Z(t, a), c = d.useRef(null);
2704
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = Or(kr, n), a = d.useRef(null), s = Z(t, a), c = d.useRef(null);
2705
2705
  return d.useEffect(() => {
2706
2706
  const l = c.current;
2707
2707
  c.current = (o == null ? void 0 : o.current) || a.current, l !== c.current && i.onAnchorChange(c.current);
2708
2708
  }), o ? null : /* @__PURE__ */ p(U.div, { ...r, ref: s });
2709
2709
  }
2710
2710
  );
2711
- Tr.displayName = Pr;
2712
- var eo = "PopperContent", [Qc, el] = Er(eo), Mr = d.forwardRef(
2711
+ Fr.displayName = kr;
2712
+ var eo = "PopperContent", [al, cl] = _r(eo), Lr = d.forwardRef(
2713
2713
  (e, t) => {
2714
2714
  var I, W, G, H, V, z;
2715
2715
  const {
@@ -2727,42 +2727,42 @@ var eo = "PopperContent", [Qc, el] = Er(eo), Mr = d.forwardRef(
2727
2727
  updatePositionStrategy: g = "optimized",
2728
2728
  onPlaced: w,
2729
2729
  ...h
2730
- } = e, v = Rr(eo, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = qc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
2730
+ } = e, v = Or(eo, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = il(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
2731
2731
  padding: T,
2732
- boundary: D.filter(nl),
2732
+ boundary: D.filter(ul),
2733
2733
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2734
2734
  altBoundary: L
2735
- }, { refs: F, floatingStyles: K, placement: O, isPositioned: B, middlewareData: _ } = Bc({
2735
+ }, { refs: F, floatingStyles: K, placement: O, isPositioned: B, middlewareData: _ } = Yc({
2736
2736
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2737
2737
  strategy: "fixed",
2738
2738
  placement: M,
2739
- whileElementsMounted: (...ie) => Ic(...ie, {
2739
+ whileElementsMounted: (...ie) => $c(...ie, {
2740
2740
  animationFrame: g === "always"
2741
2741
  }),
2742
2742
  elements: {
2743
2743
  reference: v.anchor
2744
2744
  },
2745
2745
  middleware: [
2746
- Uc({ mainAxis: r + x, alignmentAxis: a }),
2747
- c && Hc({
2746
+ Zc({ mainAxis: r + x, alignmentAxis: a }),
2747
+ c && qc({
2748
2748
  mainAxis: !0,
2749
2749
  crossAxis: !1,
2750
- limiter: u === "partial" ? Kc() : void 0,
2750
+ limiter: u === "partial" ? Jc() : void 0,
2751
2751
  ...$
2752
2752
  }),
2753
- c && Gc({ ...$ }),
2754
- zc({
2753
+ c && Qc({ ...$ }),
2754
+ el({
2755
2755
  ...$,
2756
2756
  apply: ({ elements: ie, rects: me, availableWidth: Be, availableHeight: We }) => {
2757
2757
  const { width: Ue, height: mn } = me.reference, te = ie.floating.style;
2758
2758
  te.setProperty("--radix-popper-available-width", `${Be}px`), te.setProperty("--radix-popper-available-height", `${We}px`), te.setProperty("--radix-popper-anchor-width", `${Ue}px`), te.setProperty("--radix-popper-anchor-height", `${mn}px`);
2759
2759
  }
2760
2760
  }),
2761
- S && Yc({ element: S, padding: s }),
2762
- ol({ arrowWidth: E, arrowHeight: x }),
2763
- m && jc({ strategy: "referenceHidden", ...$ })
2761
+ S && nl({ element: S, padding: s }),
2762
+ dl({ arrowWidth: E, arrowHeight: x }),
2763
+ m && tl({ strategy: "referenceHidden", ...$ })
2764
2764
  ]
2765
- }), [P, j] = _r(O), J = Me(w);
2765
+ }), [P, j] = Br(O), J = Me(w);
2766
2766
  oe(() => {
2767
2767
  B && (J == null || J());
2768
2768
  }, [B, J]);
@@ -2794,7 +2794,7 @@ var eo = "PopperContent", [Qc, el] = Er(eo), Mr = d.forwardRef(
2794
2794
  },
2795
2795
  dir: e.dir,
2796
2796
  children: /* @__PURE__ */ p(
2797
- Qc,
2797
+ al,
2798
2798
  {
2799
2799
  scope: n,
2800
2800
  placedSide: P,
@@ -2823,14 +2823,14 @@ var eo = "PopperContent", [Qc, el] = Er(eo), Mr = d.forwardRef(
2823
2823
  );
2824
2824
  }
2825
2825
  );
2826
- Mr.displayName = eo;
2827
- var Ir = "PopperArrow", tl = {
2826
+ Lr.displayName = eo;
2827
+ var $r = "PopperArrow", ll = {
2828
2828
  top: "bottom",
2829
2829
  right: "left",
2830
2830
  bottom: "top",
2831
2831
  left: "right"
2832
- }, Nr = d.forwardRef(function(t, n) {
2833
- const { __scopePopper: o, ...r } = t, i = el(Ir, o), a = tl[i.placedSide];
2832
+ }, Vr = d.forwardRef(function(t, n) {
2833
+ const { __scopePopper: o, ...r } = t, i = cl($r, o), a = ll[i.placedSide];
2834
2834
  return (
2835
2835
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2836
2836
  // doesn't report size as we'd expect on SVG elements.
@@ -2859,7 +2859,7 @@ var Ir = "PopperArrow", tl = {
2859
2859
  visibility: i.shouldHideArrow ? "hidden" : void 0
2860
2860
  },
2861
2861
  children: /* @__PURE__ */ p(
2862
- Zc,
2862
+ rl,
2863
2863
  {
2864
2864
  ...r,
2865
2865
  ref: n,
@@ -2874,42 +2874,42 @@ var Ir = "PopperArrow", tl = {
2874
2874
  )
2875
2875
  );
2876
2876
  });
2877
- Nr.displayName = Ir;
2878
- function nl(e) {
2877
+ Vr.displayName = $r;
2878
+ function ul(e) {
2879
2879
  return e !== null;
2880
2880
  }
2881
- var ol = (e) => ({
2881
+ var dl = (e) => ({
2882
2882
  name: "transformOrigin",
2883
2883
  options: e,
2884
2884
  fn(t) {
2885
2885
  var v, y, C;
2886
- const { placement: n, rects: o, middlewareData: r } = t, a = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [l, f] = _r(n), u = { start: "0%", center: "50%", end: "100%" }[f], m = (((y = r.arrow) == null ? void 0 : y.x) ?? 0) + s / 2, g = (((C = r.arrow) == null ? void 0 : C.y) ?? 0) + c / 2;
2886
+ const { placement: n, rects: o, middlewareData: r } = t, a = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [l, f] = Br(n), u = { start: "0%", center: "50%", end: "100%" }[f], m = (((y = r.arrow) == null ? void 0 : y.x) ?? 0) + s / 2, g = (((C = r.arrow) == null ? void 0 : C.y) ?? 0) + c / 2;
2887
2887
  let w = "", h = "";
2888
2888
  return l === "bottom" ? (w = a ? u : `${m}px`, h = `${-c}px`) : l === "top" ? (w = a ? u : `${m}px`, h = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, h = a ? u : `${g}px`) : l === "left" && (w = `${o.floating.width + c}px`, h = a ? u : `${g}px`), { data: { x: w, y: h } };
2889
2889
  }
2890
2890
  });
2891
- function _r(e) {
2891
+ function Br(e) {
2892
2892
  const [t, n = "center"] = e.split("-");
2893
2893
  return [t, n];
2894
2894
  }
2895
- var Or = Ar, Dr = Tr, kr = Mr, Fr = Nr, rl = "Portal", to = d.forwardRef((e, t) => {
2895
+ var Wr = Dr, Ur = Fr, Hr = Lr, Kr = Vr, fl = "Portal", to = d.forwardRef((e, t) => {
2896
2896
  var s;
2897
2897
  const { container: n, ...o } = e, [r, i] = d.useState(!1);
2898
2898
  oe(() => i(!0), []);
2899
2899
  const a = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
2900
- return a ? Ts.createPortal(/* @__PURE__ */ p(U.div, { ...o, ref: t }), a) : null;
2900
+ return a ? Fs.createPortal(/* @__PURE__ */ p(U.div, { ...o, ref: t }), a) : null;
2901
2901
  });
2902
- to.displayName = rl;
2903
- function il(e, t) {
2902
+ to.displayName = fl;
2903
+ function pl(e, t) {
2904
2904
  return d.useReducer((n, o) => t[n][o] ?? n, e);
2905
2905
  }
2906
2906
  var st = (e) => {
2907
- const { present: t, children: n } = e, o = sl(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = Z(o.ref, al(r));
2907
+ const { present: t, children: n } = e, o = ml(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = Z(o.ref, hl(r));
2908
2908
  return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: i }) : null;
2909
2909
  };
2910
2910
  st.displayName = "Presence";
2911
- function sl(e) {
2912
- const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = il(a, {
2911
+ function ml(e) {
2912
+ const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = pl(a, {
2913
2913
  mounted: {
2914
2914
  UNMOUNT: "unmounted",
2915
2915
  ANIMATION_OUT: "unmountSuspended"
@@ -2960,19 +2960,19 @@ function sl(e) {
2960
2960
  function Mt(e) {
2961
2961
  return (e == null ? void 0 : e.animationName) || "none";
2962
2962
  }
2963
- function al(e) {
2963
+ function hl(e) {
2964
2964
  var o, r;
2965
2965
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
2966
2966
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2967
2967
  }
2968
- var Cn = "rovingFocusGroup.onEntryFocus", cl = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [On, Lr, ll] = Kn(xt), [ul, on] = Xe(
2968
+ var Cn = "rovingFocusGroup.onEntryFocus", gl = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [On, Gr, vl] = Kn(xt), [wl, on] = Xe(
2969
2969
  xt,
2970
- [ll]
2971
- ), [dl, fl] = ul(xt), $r = d.forwardRef(
2972
- (e, t) => /* @__PURE__ */ p(On.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(On.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(pl, { ...e, ref: t }) }) })
2970
+ [vl]
2971
+ ), [yl, bl] = wl(xt), zr = d.forwardRef(
2972
+ (e, t) => /* @__PURE__ */ p(On.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(On.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Cl, { ...e, ref: t }) }) })
2973
2973
  );
2974
- $r.displayName = xt;
2975
- var pl = d.forwardRef((e, t) => {
2974
+ zr.displayName = xt;
2975
+ var Cl = d.forwardRef((e, t) => {
2976
2976
  const {
2977
2977
  __scopeRovingFocusGroup: n,
2978
2978
  orientation: o,
@@ -2989,13 +2989,13 @@ var pl = d.forwardRef((e, t) => {
2989
2989
  defaultProp: s ?? null,
2990
2990
  onChange: c,
2991
2991
  caller: xt
2992
- }), [y, C] = d.useState(!1), b = Me(l), S = Lr(n), R = d.useRef(!1), [A, E] = d.useState(0);
2992
+ }), [y, C] = d.useState(!1), b = Me(l), S = Gr(n), R = d.useRef(!1), [A, E] = d.useState(0);
2993
2993
  return d.useEffect(() => {
2994
2994
  const x = m.current;
2995
2995
  if (x)
2996
2996
  return x.addEventListener(Cn, b), () => x.removeEventListener(Cn, b);
2997
2997
  }, [b]), /* @__PURE__ */ p(
2998
- dl,
2998
+ yl,
2999
2999
  {
3000
3000
  scope: n,
3001
3001
  orientation: o,
@@ -3029,12 +3029,12 @@ var pl = d.forwardRef((e, t) => {
3029
3029
  onFocus: N(e.onFocus, (x) => {
3030
3030
  const M = !R.current;
3031
3031
  if (x.target === x.currentTarget && M && !y) {
3032
- const T = new CustomEvent(Cn, cl);
3032
+ const T = new CustomEvent(Cn, gl);
3033
3033
  if (x.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
3034
3034
  const D = S().filter((O) => O.focusable), L = D.find((O) => O.active), $ = D.find((O) => O.id === h), K = [L, $, ...D].filter(
3035
3035
  Boolean
3036
3036
  ).map((O) => O.ref.current);
3037
- Wr(K, f);
3037
+ Xr(K, f);
3038
3038
  }
3039
3039
  }
3040
3040
  R.current = !1;
@@ -3044,7 +3044,7 @@ var pl = d.forwardRef((e, t) => {
3044
3044
  )
3045
3045
  }
3046
3046
  );
3047
- }), Vr = "RovingFocusGroupItem", Br = d.forwardRef(
3047
+ }), jr = "RovingFocusGroupItem", Yr = d.forwardRef(
3048
3048
  (e, t) => {
3049
3049
  const {
3050
3050
  __scopeRovingFocusGroup: n,
@@ -3053,7 +3053,7 @@ var pl = d.forwardRef((e, t) => {
3053
3053
  tabStopId: i,
3054
3054
  children: a,
3055
3055
  ...s
3056
- } = e, c = Ge(), l = i || c, f = fl(Vr, n), u = f.currentTabStopId === l, m = Lr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: h } = f;
3056
+ } = e, c = Ge(), l = i || c, f = bl(jr, n), u = f.currentTabStopId === l, m = Gr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: h } = f;
3057
3057
  return d.useEffect(() => {
3058
3058
  if (o)
3059
3059
  return g(), () => w();
@@ -3081,7 +3081,7 @@ var pl = d.forwardRef((e, t) => {
3081
3081
  return;
3082
3082
  }
3083
3083
  if (v.target !== v.currentTarget) return;
3084
- const y = gl(v, f.orientation, f.dir);
3084
+ const y = El(v, f.orientation, f.dir);
3085
3085
  if (y !== void 0) {
3086
3086
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
3087
3087
  v.preventDefault();
@@ -3090,9 +3090,9 @@ var pl = d.forwardRef((e, t) => {
3090
3090
  else if (y === "prev" || y === "next") {
3091
3091
  y === "prev" && b.reverse();
3092
3092
  const S = b.indexOf(v.currentTarget);
3093
- b = f.loop ? vl(b, S + 1) : b.slice(S + 1);
3093
+ b = f.loop ? Rl(b, S + 1) : b.slice(S + 1);
3094
3094
  }
3095
- setTimeout(() => Wr(b));
3095
+ setTimeout(() => Xr(b));
3096
3096
  }
3097
3097
  }),
3098
3098
  children: typeof a == "function" ? a({ isCurrentTabStop: u, hasTabStop: h != null }) : a
@@ -3102,8 +3102,8 @@ var pl = d.forwardRef((e, t) => {
3102
3102
  );
3103
3103
  }
3104
3104
  );
3105
- Br.displayName = Vr;
3106
- var ml = {
3105
+ Yr.displayName = jr;
3106
+ var Sl = {
3107
3107
  ArrowLeft: "prev",
3108
3108
  ArrowUp: "prev",
3109
3109
  ArrowRight: "next",
@@ -3113,40 +3113,40 @@ var ml = {
3113
3113
  PageDown: "last",
3114
3114
  End: "last"
3115
3115
  };
3116
- function hl(e, t) {
3116
+ function xl(e, t) {
3117
3117
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
3118
3118
  }
3119
- function gl(e, t, n) {
3120
- const o = hl(e.key, n);
3119
+ function El(e, t, n) {
3120
+ const o = xl(e.key, n);
3121
3121
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
3122
- return ml[o];
3122
+ return Sl[o];
3123
3123
  }
3124
- function Wr(e, t = !1) {
3124
+ function Xr(e, t = !1) {
3125
3125
  const n = document.activeElement;
3126
3126
  for (const o of e)
3127
3127
  if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
3128
3128
  }
3129
- function vl(e, t) {
3129
+ function Rl(e, t) {
3130
3130
  return e.map((n, o) => e[(t + o) % e.length]);
3131
3131
  }
3132
- var Ur = $r, Hr = Br, wl = function(e) {
3132
+ var Zr = zr, qr = Yr, Al = function(e) {
3133
3133
  if (typeof document > "u")
3134
3134
  return null;
3135
3135
  var t = Array.isArray(e) ? e[0] : e;
3136
3136
  return t.ownerDocument.body;
3137
- }, Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {}, Sn = 0, Kr = function(e) {
3138
- return e && (e.host || Kr(e.parentNode));
3139
- }, yl = function(e, t) {
3137
+ }, Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {}, Sn = 0, Jr = function(e) {
3138
+ return e && (e.host || Jr(e.parentNode));
3139
+ }, Pl = function(e, t) {
3140
3140
  return t.map(function(n) {
3141
3141
  if (e.contains(n))
3142
3142
  return n;
3143
- var o = Kr(n);
3143
+ var o = Jr(n);
3144
3144
  return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3145
3145
  }).filter(function(n) {
3146
3146
  return !!n;
3147
3147
  });
3148
- }, bl = function(e, t, n, o) {
3149
- var r = yl(t, Array.isArray(e) ? e : [e]);
3148
+ }, Tl = function(e, t, n, o) {
3149
+ var r = Pl(t, Array.isArray(e) ? e : [e]);
3150
3150
  Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
3151
3151
  var i = Nt[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(u) {
3152
3152
  !u || s.has(u) || (s.add(u), l(u.parentNode));
@@ -3171,10 +3171,10 @@ var Ur = $r, Hr = Br, wl = function(e) {
3171
3171
  Je.set(u, m), i.set(u, g), m || (It.has(u) || u.removeAttribute(o), It.delete(u)), g || u.removeAttribute(n);
3172
3172
  }), Sn--, Sn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {});
3173
3173
  };
3174
- }, Gr = function(e, t, n) {
3174
+ }, Qr = function(e, t, n) {
3175
3175
  n === void 0 && (n = "data-aria-hidden");
3176
- var o = Array.from(Array.isArray(e) ? e : [e]), r = wl(e);
3177
- return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), bl(o, r, n, "aria-hidden")) : function() {
3176
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = Al(e);
3177
+ return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), Tl(o, r, n, "aria-hidden")) : function() {
3178
3178
  return null;
3179
3179
  };
3180
3180
  }, Ee = function() {
@@ -3186,7 +3186,7 @@ var Ur = $r, Hr = Br, wl = function(e) {
3186
3186
  return t;
3187
3187
  }, Ee.apply(this, arguments);
3188
3188
  };
3189
- function zr(e, t) {
3189
+ function ei(e, t) {
3190
3190
  var n = {};
3191
3191
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
3192
3192
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3194,16 +3194,16 @@ function zr(e, t) {
3194
3194
  t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
3195
3195
  return n;
3196
3196
  }
3197
- function Cl(e, t, n) {
3197
+ function Ml(e, t, n) {
3198
3198
  if (n || arguments.length === 2) for (var o = 0, r = t.length, i; o < r; o++)
3199
3199
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
3200
3200
  return e.concat(i || Array.prototype.slice.call(t));
3201
3201
  }
3202
- var Vt = "right-scroll-bar-position", Bt = "width-before-scroll-bar", Sl = "with-scroll-bars-hidden", xl = "--removed-body-scroll-bar-size";
3202
+ var Vt = "right-scroll-bar-position", Bt = "width-before-scroll-bar", Il = "with-scroll-bars-hidden", Nl = "--removed-body-scroll-bar-size";
3203
3203
  function xn(e, t) {
3204
3204
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3205
3205
  }
3206
- function El(e, t) {
3206
+ function _l(e, t) {
3207
3207
  var n = ae(function() {
3208
3208
  return {
3209
3209
  // value
@@ -3224,15 +3224,15 @@ function El(e, t) {
3224
3224
  })[0];
3225
3225
  return n.callback = t, n.facade;
3226
3226
  }
3227
- var Rl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Go = /* @__PURE__ */ new WeakMap();
3228
- function Al(e, t) {
3229
- var n = El(null, function(o) {
3227
+ var Ol = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Qo = /* @__PURE__ */ new WeakMap();
3228
+ function Dl(e, t) {
3229
+ var n = _l(null, function(o) {
3230
3230
  return e.forEach(function(r) {
3231
3231
  return xn(r, o);
3232
3232
  });
3233
3233
  });
3234
- return Rl(function() {
3235
- var o = Go.get(n);
3234
+ return Ol(function() {
3235
+ var o = Qo.get(n);
3236
3236
  if (o) {
3237
3237
  var r = new Set(o), i = new Set(e), a = n.current;
3238
3238
  r.forEach(function(s) {
@@ -3241,14 +3241,14 @@ function Al(e, t) {
3241
3241
  r.has(s) || xn(s, a);
3242
3242
  });
3243
3243
  }
3244
- Go.set(n, e);
3244
+ Qo.set(n, e);
3245
3245
  }, [e]), n;
3246
3246
  }
3247
- function Pl(e) {
3247
+ function kl(e) {
3248
3248
  return e;
3249
3249
  }
3250
- function Tl(e, t) {
3251
- t === void 0 && (t = Pl);
3250
+ function Fl(e, t) {
3251
+ t === void 0 && (t = kl);
3252
3252
  var n = [], o = !1, r = {
3253
3253
  read: function() {
3254
3254
  if (o)
@@ -3302,13 +3302,13 @@ function Tl(e, t) {
3302
3302
  };
3303
3303
  return r;
3304
3304
  }
3305
- function Ml(e) {
3305
+ function Ll(e) {
3306
3306
  e === void 0 && (e = {});
3307
- var t = Tl(null);
3307
+ var t = Fl(null);
3308
3308
  return t.options = Ee({ async: !0, ssr: !1 }, e), t;
3309
3309
  }
3310
- var jr = function(e) {
3311
- var t = e.sideCar, n = zr(e, ["sideCar"]);
3310
+ var ti = function(e) {
3311
+ var t = e.sideCar, n = ei(e, ["sideCar"]);
3312
3312
  if (!t)
3313
3313
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3314
3314
  var o = t.read();
@@ -3316,21 +3316,21 @@ var jr = function(e) {
3316
3316
  throw new Error("Sidecar medium not found");
3317
3317
  return d.createElement(o, Ee({}, n));
3318
3318
  };
3319
- jr.isSideCarExport = !0;
3320
- function Il(e, t) {
3321
- return e.useMedium(t), jr;
3319
+ ti.isSideCarExport = !0;
3320
+ function $l(e, t) {
3321
+ return e.useMedium(t), ti;
3322
3322
  }
3323
- var Yr = Ml(), En = function() {
3323
+ var ni = Ll(), En = function() {
3324
3324
  }, rn = d.forwardRef(function(e, t) {
3325
3325
  var n = d.useRef(null), o = d.useState({
3326
3326
  onScrollCapture: En,
3327
3327
  onWheelCapture: En,
3328
3328
  onTouchMoveCapture: En
3329
- }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Al([n, t]), E = Ee(Ee({}, S), r);
3329
+ }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = ei(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Dl([n, t]), E = Ee(Ee({}, S), r);
3330
3330
  return d.createElement(
3331
3331
  d.Fragment,
3332
3332
  null,
3333
- f && d.createElement(R, { sideCar: Yr, removeScrollBar: l, shards: u, noRelative: g, noIsolation: w, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
3333
+ f && d.createElement(R, { sideCar: ni, removeScrollBar: l, shards: u, noRelative: g, noIsolation: w, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
3334
3334
  a ? d.cloneElement(d.Children.only(s), Ee(Ee({}, E), { ref: A })) : d.createElement(C, Ee({}, E, { className: c, ref: A }), s)
3335
3335
  );
3336
3336
  });
@@ -3343,37 +3343,37 @@ rn.classNames = {
3343
3343
  fullWidth: Bt,
3344
3344
  zeroRight: Vt
3345
3345
  };
3346
- var Nl = function() {
3346
+ var Vl = function() {
3347
3347
  if (typeof __webpack_nonce__ < "u")
3348
3348
  return __webpack_nonce__;
3349
3349
  };
3350
- function _l() {
3350
+ function Bl() {
3351
3351
  if (!document)
3352
3352
  return null;
3353
3353
  var e = document.createElement("style");
3354
3354
  e.type = "text/css";
3355
- var t = Nl();
3355
+ var t = Vl();
3356
3356
  return t && e.setAttribute("nonce", t), e;
3357
3357
  }
3358
- function Ol(e, t) {
3358
+ function Wl(e, t) {
3359
3359
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3360
3360
  }
3361
- function Dl(e) {
3361
+ function Ul(e) {
3362
3362
  var t = document.head || document.getElementsByTagName("head")[0];
3363
3363
  t.appendChild(e);
3364
3364
  }
3365
- var kl = function() {
3365
+ var Hl = function() {
3366
3366
  var e = 0, t = null;
3367
3367
  return {
3368
3368
  add: function(n) {
3369
- e == 0 && (t = _l()) && (Ol(t, n), Dl(t)), e++;
3369
+ e == 0 && (t = Bl()) && (Wl(t, n), Ul(t)), e++;
3370
3370
  },
3371
3371
  remove: function() {
3372
3372
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3373
3373
  }
3374
3374
  };
3375
- }, Fl = function() {
3376
- var e = kl();
3375
+ }, Kl = function() {
3376
+ var e = Hl();
3377
3377
  return function(t, n) {
3378
3378
  d.useEffect(function() {
3379
3379
  return e.add(t), function() {
@@ -3381,36 +3381,36 @@ var kl = function() {
3381
3381
  };
3382
3382
  }, [t && n]);
3383
3383
  };
3384
- }, Xr = function() {
3385
- var e = Fl(), t = function(n) {
3384
+ }, oi = function() {
3385
+ var e = Kl(), t = function(n) {
3386
3386
  var o = n.styles, r = n.dynamic;
3387
3387
  return e(o, r), null;
3388
3388
  };
3389
3389
  return t;
3390
- }, Ll = {
3390
+ }, Gl = {
3391
3391
  left: 0,
3392
3392
  top: 0,
3393
3393
  right: 0,
3394
3394
  gap: 0
3395
3395
  }, Rn = function(e) {
3396
3396
  return parseInt(e || "", 10) || 0;
3397
- }, $l = function(e) {
3397
+ }, zl = function(e) {
3398
3398
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
3399
3399
  return [Rn(n), Rn(o), Rn(r)];
3400
- }, Vl = function(e) {
3400
+ }, jl = function(e) {
3401
3401
  if (e === void 0 && (e = "margin"), typeof window > "u")
3402
- return Ll;
3403
- var t = $l(e), n = document.documentElement.clientWidth, o = window.innerWidth;
3402
+ return Gl;
3403
+ var t = zl(e), n = document.documentElement.clientWidth, o = window.innerWidth;
3404
3404
  return {
3405
3405
  left: t[0],
3406
3406
  top: t[1],
3407
3407
  right: t[2],
3408
3408
  gap: Math.max(0, o - n + t[2] - t[0])
3409
3409
  };
3410
- }, Bl = Xr(), nt = "data-scroll-locked", Wl = function(e, t, n, o) {
3410
+ }, Yl = oi(), nt = "data-scroll-locked", Xl = function(e, t, n, o) {
3411
3411
  var r = e.left, i = e.top, a = e.right, s = e.gap;
3412
3412
  return n === void 0 && (n = "margin"), `
3413
- .`.concat(Sl, ` {
3413
+ .`.concat(Il, ` {
3414
3414
  overflow: hidden `).concat(o, `;
3415
3415
  padding-right: `).concat(s, "px ").concat(o, `;
3416
3416
  }
@@ -3448,26 +3448,26 @@ var kl = function() {
3448
3448
  }
3449
3449
 
3450
3450
  body[`).concat(nt, `] {
3451
- `).concat(xl, ": ").concat(s, `px;
3451
+ `).concat(Nl, ": ").concat(s, `px;
3452
3452
  }
3453
3453
  `);
3454
- }, zo = function() {
3454
+ }, er = function() {
3455
3455
  var e = parseInt(document.body.getAttribute(nt) || "0", 10);
3456
3456
  return isFinite(e) ? e : 0;
3457
- }, Ul = function() {
3457
+ }, Zl = function() {
3458
3458
  d.useEffect(function() {
3459
- return document.body.setAttribute(nt, (zo() + 1).toString()), function() {
3460
- var e = zo() - 1;
3459
+ return document.body.setAttribute(nt, (er() + 1).toString()), function() {
3460
+ var e = er() - 1;
3461
3461
  e <= 0 ? document.body.removeAttribute(nt) : document.body.setAttribute(nt, e.toString());
3462
3462
  };
3463
3463
  }, []);
3464
- }, Hl = function(e) {
3464
+ }, ql = function(e) {
3465
3465
  var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
3466
- Ul();
3466
+ Zl();
3467
3467
  var i = d.useMemo(function() {
3468
- return Vl(r);
3468
+ return jl(r);
3469
3469
  }, [r]);
3470
- return d.createElement(Bl, { styles: Wl(i, !t, r, n ? "" : "!important") });
3470
+ return d.createElement(Yl, { styles: Xl(i, !t, r, n ? "" : "!important") });
3471
3471
  }, Dn = !1;
3472
3472
  if (typeof window < "u")
3473
3473
  try {
@@ -3480,61 +3480,61 @@ if (typeof window < "u")
3480
3480
  } catch {
3481
3481
  Dn = !1;
3482
3482
  }
3483
- var Qe = Dn ? { passive: !1 } : !1, Kl = function(e) {
3483
+ var Qe = Dn ? { passive: !1 } : !1, Jl = function(e) {
3484
3484
  return e.tagName === "TEXTAREA";
3485
- }, Zr = function(e, t) {
3485
+ }, ri = function(e, t) {
3486
3486
  if (!(e instanceof Element))
3487
3487
  return !1;
3488
3488
  var n = window.getComputedStyle(e);
3489
3489
  return (
3490
3490
  // not-not-scrollable
3491
3491
  n[t] !== "hidden" && // contains scroll inside self
3492
- !(n.overflowY === n.overflowX && !Kl(e) && n[t] === "visible")
3492
+ !(n.overflowY === n.overflowX && !Jl(e) && n[t] === "visible")
3493
3493
  );
3494
- }, Gl = function(e) {
3495
- return Zr(e, "overflowY");
3496
- }, zl = function(e) {
3497
- return Zr(e, "overflowX");
3498
- }, jo = function(e, t) {
3494
+ }, Ql = function(e) {
3495
+ return ri(e, "overflowY");
3496
+ }, eu = function(e) {
3497
+ return ri(e, "overflowX");
3498
+ }, tr = function(e, t) {
3499
3499
  var n = t.ownerDocument, o = t;
3500
3500
  do {
3501
3501
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
3502
- var r = qr(e, o);
3502
+ var r = ii(e, o);
3503
3503
  if (r) {
3504
- var i = Jr(e, o), a = i[1], s = i[2];
3504
+ var i = si(e, o), a = i[1], s = i[2];
3505
3505
  if (a > s)
3506
3506
  return !0;
3507
3507
  }
3508
3508
  o = o.parentNode;
3509
3509
  } while (o && o !== n.body);
3510
3510
  return !1;
3511
- }, jl = function(e) {
3511
+ }, tu = function(e) {
3512
3512
  var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
3513
3513
  return [
3514
3514
  t,
3515
3515
  n,
3516
3516
  o
3517
3517
  ];
3518
- }, Yl = function(e) {
3518
+ }, nu = function(e) {
3519
3519
  var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
3520
3520
  return [
3521
3521
  t,
3522
3522
  n,
3523
3523
  o
3524
3524
  ];
3525
- }, qr = function(e, t) {
3526
- return e === "v" ? Gl(t) : zl(t);
3527
- }, Jr = function(e, t) {
3528
- return e === "v" ? jl(t) : Yl(t);
3529
- }, Xl = function(e, t) {
3525
+ }, ii = function(e, t) {
3526
+ return e === "v" ? Ql(t) : eu(t);
3527
+ }, si = function(e, t) {
3528
+ return e === "v" ? tu(t) : nu(t);
3529
+ }, ou = function(e, t) {
3530
3530
  return e === "h" && t === "rtl" ? -1 : 1;
3531
- }, Zl = function(e, t, n, o, r) {
3532
- var i = Xl(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, c = t.contains(s), l = !1, f = a > 0, u = 0, m = 0;
3531
+ }, ru = function(e, t, n, o, r) {
3532
+ var i = ou(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, c = t.contains(s), l = !1, f = a > 0, u = 0, m = 0;
3533
3533
  do {
3534
3534
  if (!s)
3535
3535
  break;
3536
- var g = Jr(e, s), w = g[0], h = g[1], v = g[2], y = h - v - i * w;
3537
- (w || y) && qr(e, s) && (u += y, m += w);
3536
+ var g = si(e, s), w = g[0], h = g[1], v = g[2], y = h - v - i * w;
3537
+ (w || y) && ii(e, s) && (u += y, m += w);
3538
3538
  var C = s.parentNode;
3539
3539
  s = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
3540
3540
  } while (
@@ -3545,26 +3545,26 @@ var Qe = Dn ? { passive: !1 } : !1, Kl = function(e) {
3545
3545
  return (f && Math.abs(u) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
3546
3546
  }, Ot = function(e) {
3547
3547
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3548
- }, Yo = function(e) {
3548
+ }, nr = function(e) {
3549
3549
  return [e.deltaX, e.deltaY];
3550
- }, Xo = function(e) {
3550
+ }, or = function(e) {
3551
3551
  return e && "current" in e ? e.current : e;
3552
- }, ql = function(e, t) {
3552
+ }, iu = function(e, t) {
3553
3553
  return e[0] === t[0] && e[1] === t[1];
3554
- }, Jl = function(e) {
3554
+ }, su = function(e) {
3555
3555
  return `
3556
3556
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3557
3557
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3558
3558
  `);
3559
- }, Ql = 0, et = [];
3560
- function eu(e) {
3561
- var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(Ql++)[0], i = d.useState(Xr)[0], a = d.useRef(e);
3559
+ }, au = 0, et = [];
3560
+ function cu(e) {
3561
+ var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(au++)[0], i = d.useState(oi)[0], a = d.useRef(e);
3562
3562
  d.useEffect(function() {
3563
3563
  a.current = e;
3564
3564
  }, [e]), d.useEffect(function() {
3565
3565
  if (e.inert) {
3566
3566
  document.body.classList.add("block-interactivity-".concat(r));
3567
- var h = Cl([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
3567
+ var h = Ml([e.lockRef.current], (e.shards || []).map(or), !0).filter(Boolean);
3568
3568
  return h.forEach(function(v) {
3569
3569
  return v.classList.add("allow-interactivity-".concat(r));
3570
3570
  }), function() {
@@ -3583,34 +3583,34 @@ function eu(e) {
3583
3583
  var x = window.getSelection(), M = x && x.anchorNode, T = M ? M === A || M.contains(A) : !1;
3584
3584
  if (T)
3585
3585
  return !1;
3586
- var D = jo(E, A);
3586
+ var D = tr(E, A);
3587
3587
  if (!D)
3588
3588
  return !0;
3589
- if (D ? R = E : (R = E === "v" ? "h" : "v", D = jo(E, A)), !D)
3589
+ if (D ? R = E : (R = E === "v" ? "h" : "v", D = tr(E, A)), !D)
3590
3590
  return !1;
3591
3591
  if (!o.current && "changedTouches" in h && (b || S) && (o.current = R), !R)
3592
3592
  return !0;
3593
3593
  var L = o.current || R;
3594
- return Zl(L, v, h, L === "h" ? b : S);
3594
+ return ru(L, v, h, L === "h" ? b : S);
3595
3595
  }, []), c = d.useCallback(function(h) {
3596
3596
  var v = h;
3597
3597
  if (!(!et.length || et[et.length - 1] !== i)) {
3598
- var y = "deltaY" in v ? Yo(v) : Ot(v), C = t.current.filter(function(R) {
3599
- return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && ql(R.delta, y);
3598
+ var y = "deltaY" in v ? nr(v) : Ot(v), C = t.current.filter(function(R) {
3599
+ return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && iu(R.delta, y);
3600
3600
  })[0];
3601
3601
  if (C && C.should) {
3602
3602
  v.cancelable && v.preventDefault();
3603
3603
  return;
3604
3604
  }
3605
3605
  if (!C) {
3606
- var b = (a.current.shards || []).map(Xo).filter(Boolean).filter(function(R) {
3606
+ var b = (a.current.shards || []).map(or).filter(Boolean).filter(function(R) {
3607
3607
  return R.contains(v.target);
3608
3608
  }), S = b.length > 0 ? s(v, b[0]) : !a.current.noIsolation;
3609
3609
  S && v.cancelable && v.preventDefault();
3610
3610
  }
3611
3611
  }
3612
3612
  }, []), l = d.useCallback(function(h, v, y, C) {
3613
- var b = { name: h, delta: v, target: y, should: C, shadowParent: tu(y) };
3613
+ var b = { name: h, delta: v, target: y, should: C, shadowParent: lu(y) };
3614
3614
  t.current.push(b), setTimeout(function() {
3615
3615
  t.current = t.current.filter(function(S) {
3616
3616
  return S !== b;
@@ -3619,7 +3619,7 @@ function eu(e) {
3619
3619
  }, []), f = d.useCallback(function(h) {
3620
3620
  n.current = Ot(h), o.current = void 0;
3621
3621
  }, []), u = d.useCallback(function(h) {
3622
- l(h.type, Yo(h), h.target, s(h, e.lockRef.current));
3622
+ l(h.type, nr(h), h.target, s(h, e.lockRef.current));
3623
3623
  }, []), m = d.useCallback(function(h) {
3624
3624
  l(h.type, Ot(h), h.target, s(h, e.lockRef.current));
3625
3625
  }, []);
@@ -3638,31 +3638,31 @@ function eu(e) {
3638
3638
  return d.createElement(
3639
3639
  d.Fragment,
3640
3640
  null,
3641
- w ? d.createElement(i, { styles: Jl(r) }) : null,
3642
- g ? d.createElement(Hl, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3641
+ w ? d.createElement(i, { styles: su(r) }) : null,
3642
+ g ? d.createElement(ql, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3643
3643
  );
3644
3644
  }
3645
- function tu(e) {
3645
+ function lu(e) {
3646
3646
  for (var t = null; e !== null; )
3647
3647
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3648
3648
  return t;
3649
3649
  }
3650
- const nu = Il(Yr, eu);
3650
+ const uu = $l(ni, cu);
3651
3651
  var no = d.forwardRef(function(e, t) {
3652
- return d.createElement(rn, Ee({}, e, { ref: t, sideCar: nu }));
3652
+ return d.createElement(rn, Ee({}, e, { ref: t, sideCar: uu }));
3653
3653
  });
3654
3654
  no.classNames = rn.classNames;
3655
- var kn = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp", "PageDown", "End"], ru = [...ou, ...Qr], iu = {
3655
+ var kn = ["Enter", " "], du = ["ArrowDown", "PageUp", "Home"], ai = ["ArrowUp", "PageDown", "End"], fu = [...du, ...ai], pu = {
3656
3656
  ltr: [...kn, "ArrowRight"],
3657
3657
  rtl: [...kn, "ArrowLeft"]
3658
- }, su = {
3658
+ }, mu = {
3659
3659
  ltr: ["ArrowLeft"],
3660
3660
  rtl: ["ArrowRight"]
3661
- }, Et = "Menu", [bt, au, cu] = Kn(Et), [Ze, ei] = Xe(Et, [
3662
- cu,
3661
+ }, Et = "Menu", [bt, hu, gu] = Kn(Et), [Ze, ci] = Xe(Et, [
3662
+ gu,
3663
3663
  nn,
3664
3664
  on
3665
- ]), sn = nn(), ti = on(), [lu, qe] = Ze(Et), [uu, Rt] = Ze(Et), ni = (e) => {
3665
+ ]), sn = nn(), li = on(), [vu, qe] = Ze(Et), [wu, Rt] = Ze(Et), ui = (e) => {
3666
3666
  const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = sn(t), [c, l] = d.useState(null), f = d.useRef(!1), u = Me(i), m = qt(r);
3667
3667
  return d.useEffect(() => {
3668
3668
  const g = () => {
@@ -3671,8 +3671,8 @@ var kn = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3671
3671
  return document.addEventListener("keydown", g, { capture: !0 }), () => {
3672
3672
  document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
3673
3673
  };
3674
- }, []), /* @__PURE__ */ p(Or, { ...s, children: /* @__PURE__ */ p(
3675
- lu,
3674
+ }, []), /* @__PURE__ */ p(Wr, { ...s, children: /* @__PURE__ */ p(
3675
+ vu,
3676
3676
  {
3677
3677
  scope: t,
3678
3678
  open: n,
@@ -3680,7 +3680,7 @@ var kn = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3680
3680
  content: c,
3681
3681
  onContentChange: l,
3682
3682
  children: /* @__PURE__ */ p(
3683
- uu,
3683
+ wu,
3684
3684
  {
3685
3685
  scope: t,
3686
3686
  onClose: d.useCallback(() => u(!1), [u]),
@@ -3693,32 +3693,32 @@ var kn = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3693
3693
  }
3694
3694
  ) });
3695
3695
  };
3696
- ni.displayName = Et;
3697
- var du = "MenuAnchor", oo = d.forwardRef(
3696
+ ui.displayName = Et;
3697
+ var yu = "MenuAnchor", oo = d.forwardRef(
3698
3698
  (e, t) => {
3699
3699
  const { __scopeMenu: n, ...o } = e, r = sn(n);
3700
- return /* @__PURE__ */ p(Dr, { ...r, ...o, ref: t });
3700
+ return /* @__PURE__ */ p(Ur, { ...r, ...o, ref: t });
3701
3701
  }
3702
3702
  );
3703
- oo.displayName = du;
3704
- var ro = "MenuPortal", [fu, oi] = Ze(ro, {
3703
+ oo.displayName = yu;
3704
+ var ro = "MenuPortal", [bu, di] = Ze(ro, {
3705
3705
  forceMount: void 0
3706
- }), ri = (e) => {
3706
+ }), fi = (e) => {
3707
3707
  const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = qe(ro, t);
3708
- return /* @__PURE__ */ p(fu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(to, { asChild: !0, container: r, children: o }) }) });
3708
+ return /* @__PURE__ */ p(bu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(to, { asChild: !0, container: r, children: o }) }) });
3709
3709
  };
3710
- ri.displayName = ro;
3711
- var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3710
+ fi.displayName = ro;
3711
+ var ge = "MenuContent", [Cu, io] = Ze(ge), pi = d.forwardRef(
3712
3712
  (e, t) => {
3713
- const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu);
3714
- return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(mu, { ...r, ref: t }) : /* @__PURE__ */ p(hu, { ...r, ref: t }) }) }) });
3713
+ const n = di(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu);
3714
+ return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(Su, { ...r, ref: t }) : /* @__PURE__ */ p(xu, { ...r, ref: t }) }) }) });
3715
3715
  }
3716
- ), mu = d.forwardRef(
3716
+ ), Su = d.forwardRef(
3717
3717
  (e, t) => {
3718
3718
  const n = qe(ge, e.__scopeMenu), o = d.useRef(null), r = Z(t, o);
3719
3719
  return d.useEffect(() => {
3720
3720
  const i = o.current;
3721
- if (i) return Gr(i);
3721
+ if (i) return Qr(i);
3722
3722
  }, []), /* @__PURE__ */ p(
3723
3723
  so,
3724
3724
  {
@@ -3736,7 +3736,7 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3736
3736
  }
3737
3737
  );
3738
3738
  }
3739
- ), hu = d.forwardRef((e, t) => {
3739
+ ), xu = d.forwardRef((e, t) => {
3740
3740
  const n = qe(ge, e.__scopeMenu);
3741
3741
  return /* @__PURE__ */ p(
3742
3742
  so,
@@ -3749,7 +3749,7 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3749
3749
  onDismiss: () => n.onOpenChange(!1)
3750
3750
  }
3751
3751
  );
3752
- }), gu = /* @__PURE__ */ vt("MenuContent.ScrollLock"), so = d.forwardRef(
3752
+ }), Eu = /* @__PURE__ */ vt("MenuContent.ScrollLock"), so = d.forwardRef(
3753
3753
  (e, t) => {
3754
3754
  const {
3755
3755
  __scopeMenu: n,
@@ -3766,20 +3766,20 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3766
3766
  onDismiss: g,
3767
3767
  disableOutsideScroll: w,
3768
3768
  ...h
3769
- } = e, v = qe(ge, n), y = Rt(ge, n), C = sn(n), b = ti(n), S = au(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), M = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? no : d.Fragment, O = w ? { as: gu, allowPinchZoom: !0 } : void 0, B = (P) => {
3769
+ } = e, v = qe(ge, n), y = Rt(ge, n), C = sn(n), b = li(n), S = hu(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), M = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? no : d.Fragment, O = w ? { as: Eu, allowPinchZoom: !0 } : void 0, B = (P) => {
3770
3770
  var I, W;
3771
- const j = T.current + P, J = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (I = J.find((G) => G.ref.current === ne)) == null ? void 0 : I.textValue, ue = J.map((G) => G.textValue), we = Tu(ue, j, ve), re = (W = J.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
3771
+ const j = T.current + P, J = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (I = J.find((G) => G.ref.current === ne)) == null ? void 0 : I.textValue, ue = J.map((G) => G.textValue), we = Fu(ue, j, ve), re = (W = J.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
3772
3772
  (function G(H) {
3773
3773
  T.current = H, window.clearTimeout(M.current), H !== "" && (M.current = window.setTimeout(() => G(""), 1e3));
3774
3774
  })(j), re && setTimeout(() => re.focus());
3775
3775
  };
3776
- d.useEffect(() => () => window.clearTimeout(M.current), []), ur();
3776
+ d.useEffect(() => () => window.clearTimeout(M.current), []), wr();
3777
3777
  const _ = d.useCallback((P) => {
3778
3778
  var J, ne;
3779
- return $.current === ((J = L.current) == null ? void 0 : J.side) && Iu(P, (ne = L.current) == null ? void 0 : ne.area);
3779
+ return $.current === ((J = L.current) == null ? void 0 : J.side) && $u(P, (ne = L.current) == null ? void 0 : ne.area);
3780
3780
  }, []);
3781
3781
  return /* @__PURE__ */ p(
3782
- pu,
3782
+ Cu,
3783
3783
  {
3784
3784
  scope: n,
3785
3785
  searchRef: T,
@@ -3827,7 +3827,7 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3827
3827
  onInteractOutside: m,
3828
3828
  onDismiss: g,
3829
3829
  children: /* @__PURE__ */ p(
3830
- Ur,
3830
+ Zr,
3831
3831
  {
3832
3832
  asChild: !0,
3833
3833
  ...b,
@@ -3841,11 +3841,11 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3841
3841
  }),
3842
3842
  preventScrollOnEntryFocus: !0,
3843
3843
  children: /* @__PURE__ */ p(
3844
- kr,
3844
+ Hr,
3845
3845
  {
3846
3846
  role: "menu",
3847
3847
  "aria-orientation": "vertical",
3848
- "data-state": Ci(v.open),
3848
+ "data-state": Mi(v.open),
3849
3849
  "data-radix-menu-content": "",
3850
3850
  dir: y.dir,
3851
3851
  ...C,
@@ -3856,10 +3856,10 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3856
3856
  const J = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ne = P.ctrlKey || P.altKey || P.metaKey, ve = P.key.length === 1;
3857
3857
  J && (P.key === "Tab" && P.preventDefault(), !ne && ve && B(P.key));
3858
3858
  const ue = E.current;
3859
- if (P.target !== ue || !ru.includes(P.key)) return;
3859
+ if (P.target !== ue || !fu.includes(P.key)) return;
3860
3860
  P.preventDefault();
3861
3861
  const re = S().filter((I) => !I.disabled).map((I) => I.ref.current);
3862
- Qr.includes(P.key) && re.reverse(), Au(re);
3862
+ ai.includes(P.key) && re.reverse(), Du(re);
3863
3863
  }),
3864
3864
  onBlur: N(e.onBlur, (P) => {
3865
3865
  P.currentTarget.contains(P.target) || (window.clearTimeout(M.current), T.current = "");
@@ -3886,32 +3886,32 @@ var ge = "MenuContent", [pu, io] = Ze(ge), ii = d.forwardRef(
3886
3886
  );
3887
3887
  }
3888
3888
  );
3889
- ii.displayName = ge;
3890
- var vu = "MenuGroup", ao = d.forwardRef(
3889
+ pi.displayName = ge;
3890
+ var Ru = "MenuGroup", ao = d.forwardRef(
3891
3891
  (e, t) => {
3892
3892
  const { __scopeMenu: n, ...o } = e;
3893
3893
  return /* @__PURE__ */ p(U.div, { role: "group", ...o, ref: t });
3894
3894
  }
3895
3895
  );
3896
- ao.displayName = vu;
3897
- var wu = "MenuLabel", si = d.forwardRef(
3896
+ ao.displayName = Ru;
3897
+ var Au = "MenuLabel", mi = d.forwardRef(
3898
3898
  (e, t) => {
3899
3899
  const { __scopeMenu: n, ...o } = e;
3900
3900
  return /* @__PURE__ */ p(U.div, { ...o, ref: t });
3901
3901
  }
3902
3902
  );
3903
- si.displayName = wu;
3904
- var Gt = "MenuItem", Zo = "menu.itemSelect", an = d.forwardRef(
3903
+ mi.displayName = Au;
3904
+ var Gt = "MenuItem", rr = "menu.itemSelect", an = d.forwardRef(
3905
3905
  (e, t) => {
3906
3906
  const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = Rt(Gt, e.__scopeMenu), s = io(Gt, e.__scopeMenu), c = Z(t, i), l = d.useRef(!1), f = () => {
3907
3907
  const u = i.current;
3908
3908
  if (!n && u) {
3909
- const m = new CustomEvent(Zo, { bubbles: !0, cancelable: !0 });
3910
- u.addEventListener(Zo, (g) => o == null ? void 0 : o(g), { once: !0 }), ar(u, m), m.defaultPrevented ? l.current = !1 : a.onClose();
3909
+ const m = new CustomEvent(rr, { bubbles: !0, cancelable: !0 });
3910
+ u.addEventListener(rr, (g) => o == null ? void 0 : o(g), { once: !0 }), hr(u, m), m.defaultPrevented ? l.current = !1 : a.onClose();
3911
3911
  }
3912
3912
  };
3913
3913
  return /* @__PURE__ */ p(
3914
- ai,
3914
+ hi,
3915
3915
  {
3916
3916
  ...r,
3917
3917
  ref: c,
@@ -3934,9 +3934,9 @@ var Gt = "MenuItem", Zo = "menu.itemSelect", an = d.forwardRef(
3934
3934
  }
3935
3935
  );
3936
3936
  an.displayName = Gt;
3937
- var ai = d.forwardRef(
3937
+ var hi = d.forwardRef(
3938
3938
  (e, t) => {
3939
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = io(Gt, n), s = ti(n), c = d.useRef(null), l = Z(t, c), [f, u] = d.useState(!1), [m, g] = d.useState("");
3939
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = io(Gt, n), s = li(n), c = d.useRef(null), l = Z(t, c), [f, u] = d.useState(!1), [m, g] = d.useState("");
3940
3940
  return d.useEffect(() => {
3941
3941
  const w = c.current;
3942
3942
  w && g((w.textContent ?? "").trim());
@@ -3946,7 +3946,7 @@ var ai = d.forwardRef(
3946
3946
  scope: n,
3947
3947
  disabled: o,
3948
3948
  textValue: r ?? m,
3949
- children: /* @__PURE__ */ p(Hr, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ p(
3949
+ children: /* @__PURE__ */ p(qr, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ p(
3950
3950
  U.div,
3951
3951
  {
3952
3952
  role: "menuitem",
@@ -3972,10 +3972,10 @@ var ai = d.forwardRef(
3972
3972
  }
3973
3973
  );
3974
3974
  }
3975
- ), yu = "MenuCheckboxItem", ci = d.forwardRef(
3975
+ ), Pu = "MenuCheckboxItem", gi = d.forwardRef(
3976
3976
  (e, t) => {
3977
3977
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
3978
- return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
3978
+ return /* @__PURE__ */ p(Ci, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
3979
3979
  an,
3980
3980
  {
3981
3981
  role: "menuitemcheckbox",
@@ -3992,22 +3992,22 @@ var ai = d.forwardRef(
3992
3992
  ) });
3993
3993
  }
3994
3994
  );
3995
- ci.displayName = yu;
3996
- var li = "MenuRadioGroup", [bu, Cu] = Ze(
3997
- li,
3995
+ gi.displayName = Pu;
3996
+ var vi = "MenuRadioGroup", [Tu, Mu] = Ze(
3997
+ vi,
3998
3998
  { value: void 0, onValueChange: () => {
3999
3999
  } }
4000
- ), ui = d.forwardRef(
4000
+ ), wi = d.forwardRef(
4001
4001
  (e, t) => {
4002
4002
  const { value: n, onValueChange: o, ...r } = e, i = Me(o);
4003
- return /* @__PURE__ */ p(bu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(ao, { ...r, ref: t }) });
4003
+ return /* @__PURE__ */ p(Tu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(ao, { ...r, ref: t }) });
4004
4004
  }
4005
4005
  );
4006
- ui.displayName = li;
4007
- var di = "MenuRadioItem", fi = d.forwardRef(
4006
+ wi.displayName = vi;
4007
+ var yi = "MenuRadioItem", bi = d.forwardRef(
4008
4008
  (e, t) => {
4009
- const { value: n, ...o } = e, r = Cu(di, e.__scopeMenu), i = n === r.value;
4010
- return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
4009
+ const { value: n, ...o } = e, r = Mu(yi, e.__scopeMenu), i = n === r.value;
4010
+ return /* @__PURE__ */ p(Ci, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
4011
4011
  an,
4012
4012
  {
4013
4013
  role: "menuitemradio",
@@ -4027,13 +4027,13 @@ var di = "MenuRadioItem", fi = d.forwardRef(
4027
4027
  ) });
4028
4028
  }
4029
4029
  );
4030
- fi.displayName = di;
4031
- var co = "MenuItemIndicator", [pi, Su] = Ze(
4030
+ bi.displayName = yi;
4031
+ var co = "MenuItemIndicator", [Ci, Iu] = Ze(
4032
4032
  co,
4033
4033
  { checked: !1 }
4034
- ), mi = d.forwardRef(
4034
+ ), Si = d.forwardRef(
4035
4035
  (e, t) => {
4036
- const { __scopeMenu: n, forceMount: o, ...r } = e, i = Su(co, n);
4036
+ const { __scopeMenu: n, forceMount: o, ...r } = e, i = Iu(co, n);
4037
4037
  return /* @__PURE__ */ p(
4038
4038
  st,
4039
4039
  {
@@ -4050,8 +4050,8 @@ var co = "MenuItemIndicator", [pi, Su] = Ze(
4050
4050
  );
4051
4051
  }
4052
4052
  );
4053
- mi.displayName = co;
4054
- var xu = "MenuSeparator", hi = d.forwardRef(
4053
+ Si.displayName = co;
4054
+ var Nu = "MenuSeparator", xi = d.forwardRef(
4055
4055
  (e, t) => {
4056
4056
  const { __scopeMenu: n, ...o } = e;
4057
4057
  return /* @__PURE__ */ p(
@@ -4065,17 +4065,17 @@ var xu = "MenuSeparator", hi = d.forwardRef(
4065
4065
  );
4066
4066
  }
4067
4067
  );
4068
- hi.displayName = xu;
4069
- var Eu = "MenuArrow", gi = d.forwardRef(
4068
+ xi.displayName = Nu;
4069
+ var _u = "MenuArrow", Ei = d.forwardRef(
4070
4070
  (e, t) => {
4071
4071
  const { __scopeMenu: n, ...o } = e, r = sn(n);
4072
- return /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t });
4072
+ return /* @__PURE__ */ p(Kr, { ...r, ...o, ref: t });
4073
4073
  }
4074
4074
  );
4075
- gi.displayName = Eu;
4076
- var Ru = "MenuSub", [Zf, vi] = Ze(Ru), pt = "MenuSubTrigger", wi = d.forwardRef(
4075
+ Ei.displayName = _u;
4076
+ var Ou = "MenuSub", [rp, Ri] = Ze(Ou), pt = "MenuSubTrigger", Ai = d.forwardRef(
4077
4077
  (e, t) => {
4078
- const n = qe(pt, e.__scopeMenu), o = Rt(pt, e.__scopeMenu), r = vi(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
4078
+ const n = qe(pt, e.__scopeMenu), o = Rt(pt, e.__scopeMenu), r = Ri(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
4079
4079
  a.current && window.clearTimeout(a.current), a.current = null;
4080
4080
  }, []);
4081
4081
  return d.useEffect(() => f, [f]), d.useEffect(() => {
@@ -4084,13 +4084,13 @@ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), pt = "MenuSubTrigger", wi = d.forwardRef(
4084
4084
  window.clearTimeout(u), c(null);
4085
4085
  };
4086
4086
  }, [s, c]), /* @__PURE__ */ p(oo, { asChild: !0, ...l, children: /* @__PURE__ */ p(
4087
- ai,
4087
+ hi,
4088
4088
  {
4089
4089
  id: r.triggerId,
4090
4090
  "aria-haspopup": "menu",
4091
4091
  "aria-expanded": n.open,
4092
4092
  "aria-controls": r.contentId,
4093
- "data-state": Ci(n.open),
4093
+ "data-state": Mi(n.open),
4094
4094
  ...e,
4095
4095
  ref: Zt(t, r.onTriggerChange),
4096
4096
  onClick: (u) => {
@@ -4137,16 +4137,16 @@ var Ru = "MenuSub", [Zf, vi] = Ze(Ru), pt = "MenuSubTrigger", wi = d.forwardRef(
4137
4137
  onKeyDown: N(e.onKeyDown, (u) => {
4138
4138
  var g;
4139
4139
  const m = i.searchRef.current !== "";
4140
- e.disabled || m && u.key === " " || iu[o.dir].includes(u.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), u.preventDefault());
4140
+ e.disabled || m && u.key === " " || pu[o.dir].includes(u.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), u.preventDefault());
4141
4141
  })
4142
4142
  }
4143
4143
  ) });
4144
4144
  }
4145
4145
  );
4146
- wi.displayName = pt;
4147
- var yi = "MenuSubContent", bi = d.forwardRef(
4146
+ Ai.displayName = pt;
4147
+ var Pi = "MenuSubContent", Ti = d.forwardRef(
4148
4148
  (e, t) => {
4149
- const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu), s = vi(yi, e.__scopeMenu), c = d.useRef(null), l = Z(t, c);
4149
+ const n = di(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = Rt(ge, e.__scopeMenu), s = Ri(Pi, e.__scopeMenu), c = d.useRef(null), l = Z(t, c);
4150
4150
  return /* @__PURE__ */ p(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(bt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
4151
4151
  so,
4152
4152
  {
@@ -4172,15 +4172,15 @@ var yi = "MenuSubContent", bi = d.forwardRef(
4172
4172
  }),
4173
4173
  onKeyDown: N(e.onKeyDown, (f) => {
4174
4174
  var g;
4175
- const u = f.currentTarget.contains(f.target), m = su[a.dir].includes(f.key);
4175
+ const u = f.currentTarget.contains(f.target), m = mu[a.dir].includes(f.key);
4176
4176
  u && m && (i.onOpenChange(!1), (g = s.trigger) == null || g.focus(), f.preventDefault());
4177
4177
  })
4178
4178
  }
4179
4179
  ) }) }) });
4180
4180
  }
4181
4181
  );
4182
- bi.displayName = yi;
4183
- function Ci(e) {
4182
+ Ti.displayName = Pi;
4183
+ function Mi(e) {
4184
4184
  return e ? "open" : "closed";
4185
4185
  }
4186
4186
  function zt(e) {
@@ -4189,24 +4189,24 @@ function zt(e) {
4189
4189
  function lo(e) {
4190
4190
  return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
4191
4191
  }
4192
- function Au(e) {
4192
+ function Du(e) {
4193
4193
  const t = document.activeElement;
4194
4194
  for (const n of e)
4195
4195
  if (n === t || (n.focus(), document.activeElement !== t)) return;
4196
4196
  }
4197
- function Pu(e, t) {
4197
+ function ku(e, t) {
4198
4198
  return e.map((n, o) => e[(t + o) % e.length]);
4199
4199
  }
4200
- function Tu(e, t, n) {
4200
+ function Fu(e, t, n) {
4201
4201
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
4202
- let a = Pu(e, Math.max(i, 0));
4202
+ let a = ku(e, Math.max(i, 0));
4203
4203
  r.length === 1 && (a = a.filter((l) => l !== n));
4204
4204
  const c = a.find(
4205
4205
  (l) => l.toLowerCase().startsWith(r.toLowerCase())
4206
4206
  );
4207
4207
  return c !== n ? c : void 0;
4208
4208
  }
4209
- function Mu(e, t) {
4209
+ function Lu(e, t) {
4210
4210
  const { x: n, y: o } = e;
4211
4211
  let r = !1;
4212
4212
  for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
@@ -4215,18 +4215,18 @@ function Mu(e, t) {
4215
4215
  }
4216
4216
  return r;
4217
4217
  }
4218
- function Iu(e, t) {
4218
+ function $u(e, t) {
4219
4219
  if (!t) return !1;
4220
4220
  const n = { x: e.clientX, y: e.clientY };
4221
- return Mu(n, t);
4221
+ return Lu(n, t);
4222
4222
  }
4223
4223
  function Ct(e) {
4224
4224
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
4225
4225
  }
4226
- var Nu = ni, _u = oo, Ou = ri, Du = ii, ku = ao, Fu = si, Lu = an, $u = ci, Vu = ui, Bu = fi, Wu = mi, Uu = hi, Hu = gi, Ku = wi, Gu = bi, cn = "DropdownMenu", [zu] = Xe(
4226
+ var Vu = ui, Bu = oo, Wu = fi, Uu = pi, Hu = ao, Ku = mi, Gu = an, zu = gi, ju = wi, Yu = bi, Xu = Si, Zu = xi, qu = Ei, Ju = Ai, Qu = Ti, cn = "DropdownMenu", [ed] = Xe(
4227
4227
  cn,
4228
- [ei]
4229
- ), le = ei(), [ju, Si] = zu(cn), xi = (e) => {
4228
+ [ci]
4229
+ ), le = ci(), [td, Ii] = ed(cn), Ni = (e) => {
4230
4230
  const {
4231
4231
  __scopeDropdownMenu: t,
4232
4232
  children: n,
@@ -4242,7 +4242,7 @@ var Nu = ni, _u = oo, Ou = ri, Du = ii, ku = ao, Fu = si, Lu = an, $u = ci, Vu =
4242
4242
  caller: cn
4243
4243
  });
4244
4244
  return /* @__PURE__ */ p(
4245
- ju,
4245
+ td,
4246
4246
  {
4247
4247
  scope: t,
4248
4248
  triggerId: Ge(),
@@ -4252,15 +4252,15 @@ var Nu = ni, _u = oo, Ou = ri, Du = ii, ku = ao, Fu = si, Lu = an, $u = ci, Vu =
4252
4252
  onOpenChange: u,
4253
4253
  onOpenToggle: d.useCallback(() => u((m) => !m), [u]),
4254
4254
  modal: s,
4255
- children: /* @__PURE__ */ p(Nu, { ...c, open: f, onOpenChange: u, dir: o, modal: s, children: n })
4255
+ children: /* @__PURE__ */ p(Vu, { ...c, open: f, onOpenChange: u, dir: o, modal: s, children: n })
4256
4256
  }
4257
4257
  );
4258
4258
  };
4259
- xi.displayName = cn;
4260
- var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4259
+ Ni.displayName = cn;
4260
+ var _i = "DropdownMenuTrigger", Oi = d.forwardRef(
4261
4261
  (e, t) => {
4262
- const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Si(Ei, n), a = le(n);
4263
- return /* @__PURE__ */ p(_u, { asChild: !0, ...a, children: /* @__PURE__ */ p(
4262
+ const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Ii(_i, n), a = le(n);
4263
+ return /* @__PURE__ */ p(Bu, { asChild: !0, ...a, children: /* @__PURE__ */ p(
4264
4264
  U.button,
4265
4265
  {
4266
4266
  type: "button",
@@ -4283,17 +4283,17 @@ var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
4283
4283
  ) });
4284
4284
  }
4285
4285
  );
4286
- Ri.displayName = Ei;
4287
- var Yu = "DropdownMenuPortal", Ai = (e) => {
4286
+ Oi.displayName = _i;
4287
+ var nd = "DropdownMenuPortal", Di = (e) => {
4288
4288
  const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
4289
- return /* @__PURE__ */ p(Ou, { ...o, ...n });
4289
+ return /* @__PURE__ */ p(Wu, { ...o, ...n });
4290
4290
  };
4291
- Ai.displayName = Yu;
4292
- var Pi = "DropdownMenuContent", Ti = d.forwardRef(
4291
+ Di.displayName = nd;
4292
+ var ki = "DropdownMenuContent", Fi = d.forwardRef(
4293
4293
  (e, t) => {
4294
- const { __scopeDropdownMenu: n, ...o } = e, r = Si(Pi, n), i = le(n), a = d.useRef(!1);
4294
+ const { __scopeDropdownMenu: n, ...o } = e, r = Ii(ki, n), i = le(n), a = d.useRef(!1);
4295
4295
  return /* @__PURE__ */ p(
4296
- Du,
4296
+ Uu,
4297
4297
  {
4298
4298
  id: r.contentId,
4299
4299
  "aria-labelledby": r.triggerId,
@@ -4320,69 +4320,69 @@ var Pi = "DropdownMenuContent", Ti = d.forwardRef(
4320
4320
  );
4321
4321
  }
4322
4322
  );
4323
- Ti.displayName = Pi;
4324
- var Xu = "DropdownMenuGroup", Zu = d.forwardRef(
4323
+ Fi.displayName = ki;
4324
+ var od = "DropdownMenuGroup", rd = d.forwardRef(
4325
4325
  (e, t) => {
4326
4326
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4327
- return /* @__PURE__ */ p(ku, { ...r, ...o, ref: t });
4327
+ return /* @__PURE__ */ p(Hu, { ...r, ...o, ref: t });
4328
4328
  }
4329
4329
  );
4330
- Zu.displayName = Xu;
4331
- var qu = "DropdownMenuLabel", Ju = d.forwardRef(
4330
+ rd.displayName = od;
4331
+ var id = "DropdownMenuLabel", sd = d.forwardRef(
4332
4332
  (e, t) => {
4333
4333
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4334
- return /* @__PURE__ */ p(Fu, { ...r, ...o, ref: t });
4334
+ return /* @__PURE__ */ p(Ku, { ...r, ...o, ref: t });
4335
4335
  }
4336
4336
  );
4337
- Ju.displayName = qu;
4338
- var Qu = "DropdownMenuItem", Mi = d.forwardRef(
4337
+ sd.displayName = id;
4338
+ var ad = "DropdownMenuItem", Li = d.forwardRef(
4339
4339
  (e, t) => {
4340
4340
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4341
- return /* @__PURE__ */ p(Lu, { ...r, ...o, ref: t });
4341
+ return /* @__PURE__ */ p(Gu, { ...r, ...o, ref: t });
4342
4342
  }
4343
4343
  );
4344
- Mi.displayName = Qu;
4345
- var ed = "DropdownMenuCheckboxItem", Ii = d.forwardRef((e, t) => {
4344
+ Li.displayName = ad;
4345
+ var cd = "DropdownMenuCheckboxItem", $i = d.forwardRef((e, t) => {
4346
4346
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4347
- return /* @__PURE__ */ p($u, { ...r, ...o, ref: t });
4347
+ return /* @__PURE__ */ p(zu, { ...r, ...o, ref: t });
4348
4348
  });
4349
- Ii.displayName = ed;
4350
- var td = "DropdownMenuRadioGroup", nd = d.forwardRef((e, t) => {
4349
+ $i.displayName = cd;
4350
+ var ld = "DropdownMenuRadioGroup", ud = d.forwardRef((e, t) => {
4351
4351
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4352
- return /* @__PURE__ */ p(Vu, { ...r, ...o, ref: t });
4352
+ return /* @__PURE__ */ p(ju, { ...r, ...o, ref: t });
4353
4353
  });
4354
- nd.displayName = td;
4355
- var od = "DropdownMenuRadioItem", rd = d.forwardRef((e, t) => {
4354
+ ud.displayName = ld;
4355
+ var dd = "DropdownMenuRadioItem", fd = d.forwardRef((e, t) => {
4356
4356
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4357
- return /* @__PURE__ */ p(Bu, { ...r, ...o, ref: t });
4357
+ return /* @__PURE__ */ p(Yu, { ...r, ...o, ref: t });
4358
4358
  });
4359
- rd.displayName = od;
4360
- var id = "DropdownMenuItemIndicator", Ni = d.forwardRef((e, t) => {
4359
+ fd.displayName = dd;
4360
+ var pd = "DropdownMenuItemIndicator", Vi = d.forwardRef((e, t) => {
4361
4361
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4362
- return /* @__PURE__ */ p(Wu, { ...r, ...o, ref: t });
4362
+ return /* @__PURE__ */ p(Xu, { ...r, ...o, ref: t });
4363
4363
  });
4364
- Ni.displayName = id;
4365
- var sd = "DropdownMenuSeparator", _i = d.forwardRef((e, t) => {
4364
+ Vi.displayName = pd;
4365
+ var md = "DropdownMenuSeparator", Bi = d.forwardRef((e, t) => {
4366
4366
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4367
- return /* @__PURE__ */ p(Uu, { ...r, ...o, ref: t });
4367
+ return /* @__PURE__ */ p(Zu, { ...r, ...o, ref: t });
4368
4368
  });
4369
- _i.displayName = sd;
4370
- var ad = "DropdownMenuArrow", cd = d.forwardRef(
4369
+ Bi.displayName = md;
4370
+ var hd = "DropdownMenuArrow", gd = d.forwardRef(
4371
4371
  (e, t) => {
4372
4372
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4373
- return /* @__PURE__ */ p(Hu, { ...r, ...o, ref: t });
4373
+ return /* @__PURE__ */ p(qu, { ...r, ...o, ref: t });
4374
4374
  }
4375
4375
  );
4376
- cd.displayName = ad;
4377
- var ld = "DropdownMenuSubTrigger", ud = d.forwardRef((e, t) => {
4376
+ gd.displayName = hd;
4377
+ var vd = "DropdownMenuSubTrigger", wd = d.forwardRef((e, t) => {
4378
4378
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4379
- return /* @__PURE__ */ p(Ku, { ...r, ...o, ref: t });
4379
+ return /* @__PURE__ */ p(Ju, { ...r, ...o, ref: t });
4380
4380
  });
4381
- ud.displayName = ld;
4382
- var dd = "DropdownMenuSubContent", fd = d.forwardRef((e, t) => {
4381
+ wd.displayName = vd;
4382
+ var yd = "DropdownMenuSubContent", bd = d.forwardRef((e, t) => {
4383
4383
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
4384
4384
  return /* @__PURE__ */ p(
4385
- Gu,
4385
+ Qu,
4386
4386
  {
4387
4387
  ...r,
4388
4388
  ...o,
@@ -4398,17 +4398,17 @@ var dd = "DropdownMenuSubContent", fd = d.forwardRef((e, t) => {
4398
4398
  }
4399
4399
  );
4400
4400
  });
4401
- fd.displayName = dd;
4402
- var pd = xi, md = Ri, hd = Ai, gd = Ti, vd = Mi, wd = Ii, yd = Ni, bd = _i;
4403
- function Cd({ children: e, modal: t = !1 }) {
4404
- return /* @__PURE__ */ p(pd, { modal: t, children: e });
4401
+ bd.displayName = yd;
4402
+ var Cd = Ni, Sd = Oi, xd = Di, Ed = Fi, Rd = Li, Ad = $i, Pd = Vi, Td = Bi;
4403
+ function Md({ children: e, modal: t = !1 }) {
4404
+ return /* @__PURE__ */ p(Cd, { modal: t, children: e });
4405
4405
  }
4406
- function Sd({ asChild: e, children: t }) {
4407
- return /* @__PURE__ */ p(md, { asChild: e, children: t });
4406
+ function Id({ asChild: e, children: t }) {
4407
+ return /* @__PURE__ */ p(Sd, { asChild: e, children: t });
4408
4408
  }
4409
- function xd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
4410
- return /* @__PURE__ */ p(hd, { children: /* @__PURE__ */ p(
4411
- gd,
4409
+ function Nd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
4410
+ return /* @__PURE__ */ p(xd, { children: /* @__PURE__ */ p(
4411
+ Ed,
4412
4412
  {
4413
4413
  align: e,
4414
4414
  sideOffset: t,
@@ -4417,9 +4417,9 @@ function xd({ align: e = "end", sideOffset: t = 4, className: n, children: o })
4417
4417
  }
4418
4418
  ) });
4419
4419
  }
4420
- function Ed({ onClick: e, disabled: t, className: n, asChild: o, children: r }) {
4420
+ function _d({ onClick: e, disabled: t, className: n, asChild: o, children: r }) {
4421
4421
  return /* @__PURE__ */ p(
4422
- vd,
4422
+ Rd,
4423
4423
  {
4424
4424
  onClick: e,
4425
4425
  disabled: t,
@@ -4429,31 +4429,31 @@ function Ed({ onClick: e, disabled: t, className: n, asChild: o, children: r })
4429
4429
  }
4430
4430
  );
4431
4431
  }
4432
- function Rd({ checked: e, onCheckedChange: t, className: n, children: o }) {
4432
+ function Od({ checked: e, onCheckedChange: t, className: n, children: o }) {
4433
4433
  return /* @__PURE__ */ k(
4434
- wd,
4434
+ Ad,
4435
4435
  {
4436
4436
  checked: e,
4437
4437
  onCheckedChange: t,
4438
4438
  className: X("snow-dropdown-checkbox-item", n),
4439
4439
  children: [
4440
- /* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(yd, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
4440
+ /* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(Pd, { children: /* @__PURE__ */ p(lr, { className: "snow-size-4" }) }) }),
4441
4441
  o
4442
4442
  ]
4443
4443
  }
4444
4444
  );
4445
4445
  }
4446
- function Ad() {
4447
- return /* @__PURE__ */ p(bd, { className: "snow-dropdown-separator" });
4446
+ function Dd() {
4447
+ return /* @__PURE__ */ p(Td, { className: "snow-dropdown-separator" });
4448
4448
  }
4449
4449
  const ee = {
4450
- Root: Cd,
4451
- Trigger: Sd,
4452
- Content: xd,
4453
- Item: Ed,
4454
- CheckboxItem: Rd,
4455
- Separator: Ad
4456
- }, Pd = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ p(
4450
+ Root: Md,
4451
+ Trigger: Id,
4452
+ Content: Nd,
4453
+ Item: _d,
4454
+ CheckboxItem: Od,
4455
+ Separator: Dd
4456
+ }, kd = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ p(
4457
4457
  "a",
4458
4458
  {
4459
4459
  href: i ? void 0 : e,
@@ -4465,10 +4465,10 @@ const ee = {
4465
4465
  children: t
4466
4466
  }
4467
4467
  );
4468
- let Oi = Pd;
4469
- const Td = (e) => {
4470
- Oi = e;
4471
- }, Md = () => Oi, Di = {
4468
+ let Wi = kd;
4469
+ const Fd = (e) => {
4470
+ Wi = e;
4471
+ }, Ld = () => Wi, Ui = {
4472
4472
  "dataTable.search": "Search...",
4473
4473
  "dataTable.elements": "elements",
4474
4474
  "dataTable.paginationSize": "per page",
@@ -4480,24 +4480,24 @@ const Td = (e) => {
4480
4480
  "dataTable.selectFilter": "Select..."
4481
4481
  };
4482
4482
  let Fn = null;
4483
- const Id = (e) => {
4483
+ const $d = (e) => {
4484
4484
  if (Fn) {
4485
4485
  const t = Fn(e);
4486
4486
  if (t !== e)
4487
4487
  return t;
4488
4488
  }
4489
- return Di[e] ?? e;
4490
- }, Nd = (e) => {
4489
+ return Ui[e] ?? e;
4490
+ }, Vd = (e) => {
4491
4491
  Fn = e;
4492
- }, at = () => Id, _d = (e) => {
4493
- Object.assign(Di, e);
4492
+ }, at = () => $d, Bd = (e) => {
4493
+ Object.assign(Ui, e);
4494
4494
  };
4495
4495
  let Ln = !1;
4496
- const qf = (e) => {
4497
- Ln || (Nd(e.translate), e.translations && _d(e.translations), Td(e.LinkComponent), Ln = !0);
4498
- }, Jf = () => Ln;
4499
- function Od({ table: e }) {
4500
- const t = at(), n = Pn(la()), o = Ce(() => e.getAllColumns().filter((s) => {
4496
+ const ip = (e) => {
4497
+ Ln || (Vd(e.translate), e.translations && Bd(e.translations), Fd(e.LinkComponent), Ln = !0);
4498
+ }, sp = () => Ln;
4499
+ function Wd({ table: e }) {
4500
+ const t = at(), n = Pn(va()), o = Ce(() => e.getAllColumns().filter((s) => {
4501
4501
  const c = s.columnDef.header;
4502
4502
  return !(!c || typeof c == "string" && c.trim() === "" || s.columnDef.enableHiding === !1);
4503
4503
  }), [e]), r = () => {
@@ -4508,12 +4508,12 @@ function Od({ table: e }) {
4508
4508
  });
4509
4509
  };
4510
4510
  ht(() => {
4511
- const s = aa(n.current);
4511
+ const s = ha(n.current);
4512
4512
  let c = !1;
4513
4513
  s ? (Object.entries(s).forEach(([l, f]) => {
4514
4514
  const u = e.getColumn(l);
4515
4515
  u ? u.toggleVisibility(f) : c = !0;
4516
- }), c && ca(n.current)) : r();
4516
+ }), c && ga(n.current)) : r();
4517
4517
  }, [n.current, e, o]);
4518
4518
  const i = (s, c) => {
4519
4519
  const l = e.getColumn(s);
@@ -4523,7 +4523,7 @@ function Od({ table: e }) {
4523
4523
  ...e.getState().columnVisibility,
4524
4524
  [s]: c
4525
4525
  };
4526
- Ro(n.current, f);
4526
+ Oo(n.current, f);
4527
4527
  }
4528
4528
  }, a = () => {
4529
4529
  r();
@@ -4532,13 +4532,13 @@ function Od({ table: e }) {
4532
4532
  var f;
4533
4533
  const l = (f = c.columnDef.meta) == null ? void 0 : f.defaultHidden;
4534
4534
  s[c.id] = !l;
4535
- }), Ro(n.current, s);
4535
+ }), Oo(n.current, s);
4536
4536
  };
4537
4537
  return /* @__PURE__ */ k(ee.Root, { children: [
4538
- /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { children: /* @__PURE__ */ p(Co, { className: "snow-size-4" }) }) }),
4538
+ /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { children: /* @__PURE__ */ p(Mo, { className: "snow-size-4" }) }) }),
4539
4539
  /* @__PURE__ */ k(ee.Content, { align: "end", className: "snow-w-56", children: [
4540
4540
  /* @__PURE__ */ k("div", { className: "snow-flex snow-items-center snow-gap-2 snow-px-2 snow-py-1\\\\.5 snow-text-sm snow-font-semibold", children: [
4541
- /* @__PURE__ */ p(Co, { className: "snow-size-4" }),
4541
+ /* @__PURE__ */ p(Mo, { className: "snow-size-4" }),
4542
4542
  t("dataTable.columnsConfiguration")
4543
4543
  ] }),
4544
4544
  /* @__PURE__ */ p(ee.Separator, {}),
@@ -4560,17 +4560,17 @@ function Od({ table: e }) {
4560
4560
  ] })
4561
4561
  ] });
4562
4562
  }
4563
- function Dd({ className: e }) {
4563
+ function Ud({ className: e }) {
4564
4564
  return /* @__PURE__ */ p("div", { className: X("snow-skeleton", e) });
4565
4565
  }
4566
- function qo(e, [t, n]) {
4566
+ function ir(e, [t, n]) {
4567
4567
  return Math.min(n, Math.max(t, e));
4568
4568
  }
4569
- function kd(e) {
4569
+ function Hd(e) {
4570
4570
  const t = d.useRef({ value: e, previous: e });
4571
4571
  return d.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
4572
4572
  }
4573
- var ki = Object.freeze({
4573
+ var Hi = Object.freeze({
4574
4574
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
4575
4575
  position: "absolute",
4576
4576
  border: 0,
@@ -4582,21 +4582,21 @@ var ki = Object.freeze({
4582
4582
  clip: "rect(0, 0, 0, 0)",
4583
4583
  whiteSpace: "nowrap",
4584
4584
  wordWrap: "normal"
4585
- }), Fd = "VisuallyHidden", Ld = d.forwardRef(
4585
+ }), Kd = "VisuallyHidden", Gd = d.forwardRef(
4586
4586
  (e, t) => /* @__PURE__ */ p(
4587
4587
  U.span,
4588
4588
  {
4589
4589
  ...e,
4590
4590
  ref: t,
4591
- style: { ...ki, ...e.style }
4591
+ style: { ...Hi, ...e.style }
4592
4592
  }
4593
4593
  )
4594
4594
  );
4595
- Ld.displayName = Fd;
4596
- var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Select", [ln, un, Bd] = Kn(je), [ct] = Xe(je, [
4597
- Bd,
4595
+ Gd.displayName = Kd;
4596
+ var zd = [" ", "Enter", "ArrowUp", "ArrowDown"], jd = [" ", "Enter"], je = "Select", [ln, un, Yd] = Kn(je), [ct] = Xe(je, [
4597
+ Yd,
4598
4598
  nn
4599
- ]), dn = nn(), [Wd, $e] = ct(je), [Ud, Hd] = ct(je), Fi = (e) => {
4599
+ ]), dn = nn(), [Xd, $e] = ct(je), [Zd, qd] = ct(je), Ki = (e) => {
4600
4600
  const {
4601
4601
  __scopeSelect: t,
4602
4602
  children: n,
@@ -4623,8 +4623,8 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4623
4623
  onChange: c,
4624
4624
  caller: je
4625
4625
  }), D = d.useRef(null), L = v ? w || !!v.closest("form") : !0, [$, F] = d.useState(/* @__PURE__ */ new Set()), K = Array.from($).map((O) => O.props.value).join(";");
4626
- return /* @__PURE__ */ p(Or, { ...h, children: /* @__PURE__ */ k(
4627
- Wd,
4626
+ return /* @__PURE__ */ p(Wr, { ...h, children: /* @__PURE__ */ k(
4627
+ Xd,
4628
4628
  {
4629
4629
  required: g,
4630
4630
  scope: t,
@@ -4644,7 +4644,7 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4644
4644
  disabled: m,
4645
4645
  children: [
4646
4646
  /* @__PURE__ */ p(ln.Provider, { scope: t, children: /* @__PURE__ */ p(
4647
- Ud,
4647
+ Zd,
4648
4648
  {
4649
4649
  scope: e.__scopeSelect,
4650
4650
  onNativeOptionAdd: d.useCallback((O) => {
@@ -4660,7 +4660,7 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4660
4660
  }
4661
4661
  ) }),
4662
4662
  L ? /* @__PURE__ */ k(
4663
- ns,
4663
+ us,
4664
4664
  {
4665
4665
  "aria-hidden": !0,
4666
4666
  required: g,
@@ -4682,11 +4682,11 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Sele
4682
4682
  }
4683
4683
  ) });
4684
4684
  };
4685
- Fi.displayName = je;
4686
- var Li = "SelectTrigger", $i = d.forwardRef(
4685
+ Ki.displayName = je;
4686
+ var Gi = "SelectTrigger", zi = d.forwardRef(
4687
4687
  (e, t) => {
4688
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = dn(n), a = $e(Li, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), l = un(n), f = d.useRef("touch"), [u, m, g] = rs((h) => {
4689
- const v = l().filter((b) => !b.disabled), y = v.find((b) => b.value === a.value), C = is(v, h, y);
4688
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = dn(n), a = $e(Gi, n), s = a.disabled || o, c = Z(t, a.onTriggerChange), l = un(n), f = d.useRef("touch"), [u, m, g] = fs((h) => {
4689
+ const v = l().filter((b) => !b.disabled), y = v.find((b) => b.value === a.value), C = ps(v, h, y);
4690
4690
  C !== void 0 && a.onValueChange(C.value);
4691
4691
  }), w = (h) => {
4692
4692
  s || (a.onOpenChange(!0), g()), h && (a.triggerPointerDownPosRef.current = {
@@ -4694,7 +4694,7 @@ var Li = "SelectTrigger", $i = d.forwardRef(
4694
4694
  y: Math.round(h.pageY)
4695
4695
  });
4696
4696
  };
4697
- return /* @__PURE__ */ p(Dr, { asChild: !0, ...i, children: /* @__PURE__ */ p(
4697
+ return /* @__PURE__ */ p(Ur, { asChild: !0, ...i, children: /* @__PURE__ */ p(
4698
4698
  U.button,
4699
4699
  {
4700
4700
  type: "button",
@@ -4707,7 +4707,7 @@ var Li = "SelectTrigger", $i = d.forwardRef(
4707
4707
  "data-state": a.open ? "open" : "closed",
4708
4708
  disabled: s,
4709
4709
  "data-disabled": s ? "" : void 0,
4710
- "data-placeholder": os(a.value) ? "" : void 0,
4710
+ "data-placeholder": ds(a.value) ? "" : void 0,
4711
4711
  ...r,
4712
4712
  ref: c,
4713
4713
  onClick: N(r.onClick, (h) => {
@@ -4720,16 +4720,16 @@ var Li = "SelectTrigger", $i = d.forwardRef(
4720
4720
  }),
4721
4721
  onKeyDown: N(r.onKeyDown, (h) => {
4722
4722
  const v = u.current !== "";
4723
- !(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(v && h.key === " ") && $d.includes(h.key) && (w(), h.preventDefault());
4723
+ !(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(v && h.key === " ") && zd.includes(h.key) && (w(), h.preventDefault());
4724
4724
  })
4725
4725
  }
4726
4726
  ) });
4727
4727
  }
4728
4728
  );
4729
- $i.displayName = Li;
4730
- var Vi = "SelectValue", Bi = d.forwardRef(
4729
+ zi.displayName = Gi;
4730
+ var ji = "SelectValue", Yi = d.forwardRef(
4731
4731
  (e, t) => {
4732
- const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, c = $e(Vi, n), { onValueNodeHasChildrenChange: l } = c, f = i !== void 0, u = Z(t, c.onValueNodeChange);
4732
+ const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, c = $e(ji, n), { onValueNodeHasChildrenChange: l } = c, f = i !== void 0, u = Z(t, c.onValueNodeChange);
4733
4733
  return oe(() => {
4734
4734
  l(f);
4735
4735
  }, [l, f]), /* @__PURE__ */ p(
@@ -4738,22 +4738,22 @@ var Vi = "SelectValue", Bi = d.forwardRef(
4738
4738
  ...s,
4739
4739
  ref: u,
4740
4740
  style: { pointerEvents: "none" },
4741
- children: os(c.value) ? /* @__PURE__ */ p(Yt, { children: a }) : i
4741
+ children: ds(c.value) ? /* @__PURE__ */ p(Yt, { children: a }) : i
4742
4742
  }
4743
4743
  );
4744
4744
  }
4745
4745
  );
4746
- Bi.displayName = Vi;
4747
- var Kd = "SelectIcon", Wi = d.forwardRef(
4746
+ Yi.displayName = ji;
4747
+ var Jd = "SelectIcon", Xi = d.forwardRef(
4748
4748
  (e, t) => {
4749
4749
  const { __scopeSelect: n, children: o, ...r } = e;
4750
4750
  return /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
4751
4751
  }
4752
4752
  );
4753
- Wi.displayName = Kd;
4754
- var Gd = "SelectPortal", Ui = (e) => /* @__PURE__ */ p(to, { asChild: !0, ...e });
4755
- Ui.displayName = Gd;
4756
- var Ye = "SelectContent", Hi = d.forwardRef(
4753
+ Xi.displayName = Jd;
4754
+ var Qd = "SelectPortal", Zi = (e) => /* @__PURE__ */ p(to, { asChild: !0, ...e });
4755
+ Zi.displayName = Qd;
4756
+ var Ye = "SelectContent", qi = d.forwardRef(
4757
4757
  (e, t) => {
4758
4758
  const n = $e(Ye, e.__scopeSelect), [o, r] = d.useState();
4759
4759
  if (oe(() => {
@@ -4761,15 +4761,15 @@ var Ye = "SelectContent", Hi = d.forwardRef(
4761
4761
  }, []), !n.open) {
4762
4762
  const i = o;
4763
4763
  return i ? Xt.createPortal(
4764
- /* @__PURE__ */ p(Ki, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(ln.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4764
+ /* @__PURE__ */ p(Ji, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(ln.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
4765
4765
  i
4766
4766
  ) : null;
4767
4767
  }
4768
- return /* @__PURE__ */ p(Gi, { ...e, ref: t });
4768
+ return /* @__PURE__ */ p(Qi, { ...e, ref: t });
4769
4769
  }
4770
4770
  );
4771
- Hi.displayName = Ye;
4772
- var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4771
+ qi.displayName = Ye;
4772
+ var ye = 10, [Ji, Ve] = ct(Ye), ef = "SelectContentImpl", tf = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), Qi = d.forwardRef(
4773
4773
  (e, t) => {
4774
4774
  const {
4775
4775
  __scopeSelect: n,
@@ -4795,8 +4795,8 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ v
4795
4795
  null
4796
4796
  ), L = un(n), [$, F] = d.useState(!1), K = d.useRef(!1);
4797
4797
  d.useEffect(() => {
4798
- if (b) return Gr(b);
4799
- }, [b]), ur();
4798
+ if (b) return Qr(b);
4799
+ }, [b]), wr();
4800
4800
  const O = d.useCallback(
4801
4801
  (I) => {
4802
4802
  const [W, ...G] = L().map((z) => z.ref.current), [H] = G.slice(-1), V = document.activeElement;
@@ -4834,8 +4834,8 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ v
4834
4834
  window.removeEventListener("blur", I), window.removeEventListener("resize", I);
4835
4835
  };
4836
4836
  }, [_]);
4837
- const [j, J] = rs((I) => {
4838
- const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = is(W, I, G);
4837
+ const [j, J] = fs((I) => {
4838
+ const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = ps(W, I, G);
4839
4839
  H && setTimeout(() => H.ref.current.focus());
4840
4840
  }), ne = d.useCallback(
4841
4841
  (I, W, G) => {
@@ -4849,7 +4849,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ v
4849
4849
  (C.value !== void 0 && C.value === W || H) && D(I);
4850
4850
  },
4851
4851
  [C.value]
4852
- ), we = o === "popper" ? $n : zi, re = we === $n ? {
4852
+ ), we = o === "popper" ? $n : es, re = we === $n ? {
4853
4853
  side: s,
4854
4854
  sideOffset: c,
4855
4855
  align: l,
@@ -4862,7 +4862,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ v
4862
4862
  avoidCollisions: v
4863
4863
  } : {};
4864
4864
  return /* @__PURE__ */ p(
4865
- Ki,
4865
+ Ji,
4866
4866
  {
4867
4867
  scope: n,
4868
4868
  content: b,
@@ -4877,7 +4877,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ v
4877
4877
  position: o,
4878
4878
  isPositioned: $,
4879
4879
  searchRef: j,
4880
- children: /* @__PURE__ */ p(no, { as: jd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
4880
+ children: /* @__PURE__ */ p(no, { as: tf, allowPinchZoom: !0, children: /* @__PURE__ */ p(
4881
4881
  zn,
4882
4882
  {
4883
4883
  asChild: !0,
@@ -4939,13 +4939,13 @@ var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ v
4939
4939
  );
4940
4940
  }
4941
4941
  );
4942
- Gi.displayName = zd;
4943
- var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4942
+ Qi.displayName = ef;
4943
+ var nf = "SelectItemAlignedPosition", es = d.forwardRef((e, t) => {
4944
4944
  const { __scopeSelect: n, onPlaced: o, ...r } = e, i = $e(Ye, n), a = Ve(Ye, n), [s, c] = d.useState(null), [l, f] = d.useState(null), u = Z(t, (E) => f(E)), m = un(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: C } = a, b = d.useCallback(() => {
4945
4945
  if (i.trigger && i.valueNode && s && l && h && v && y) {
4946
4946
  const E = i.trigger.getBoundingClientRect(), x = l.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
4947
4947
  if (i.dir !== "rtl") {
4948
- const V = T.left - x.left, z = M.left - V, ie = E.left - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
4948
+ const V = T.left - x.left, z = M.left - V, ie = E.left - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = ir(z, [
4949
4949
  ye,
4950
4950
  // Prevents the content from going off the starting edge of the
4951
4951
  // viewport. It may still go off the ending edge, but this can be
@@ -4956,7 +4956,7 @@ var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
4956
4956
  ]);
4957
4957
  s.style.minWidth = me + "px", s.style.left = Ue + "px";
4958
4958
  } else {
4959
- const V = x.right - T.right, z = window.innerWidth - M.right - V, ie = window.innerWidth - E.right - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
4959
+ const V = x.right - T.right, z = window.innerWidth - M.right - V, ie = window.innerWidth - E.right - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = ir(z, [
4960
4960
  ye,
4961
4961
  Math.max(ye, We - Be)
4962
4962
  ]);
@@ -5008,7 +5008,7 @@ var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
5008
5008
  [b, C]
5009
5009
  );
5010
5010
  return /* @__PURE__ */ p(
5011
- Zd,
5011
+ rf,
5012
5012
  {
5013
5013
  scope: n,
5014
5014
  contentWrapper: s,
@@ -5044,8 +5044,8 @@ var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
5044
5044
  }
5045
5045
  );
5046
5046
  });
5047
- zi.displayName = Yd;
5048
- var Xd = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
5047
+ es.displayName = nf;
5048
+ var of = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
5049
5049
  const {
5050
5050
  __scopeSelect: n,
5051
5051
  align: o = "start",
@@ -5053,7 +5053,7 @@ var Xd = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
5053
5053
  ...i
5054
5054
  } = e, a = dn(n);
5055
5055
  return /* @__PURE__ */ p(
5056
- kr,
5056
+ Hr,
5057
5057
  {
5058
5058
  ...a,
5059
5059
  ...i,
@@ -5073,8 +5073,8 @@ var Xd = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
5073
5073
  }
5074
5074
  );
5075
5075
  });
5076
- $n.displayName = Xd;
5077
- var [Zd, uo] = ct(Ye, {}), Vn = "SelectViewport", ji = d.forwardRef(
5076
+ $n.displayName = of;
5077
+ var [rf, uo] = ct(Ye, {}), Vn = "SelectViewport", ts = d.forwardRef(
5078
5078
  (e, t) => {
5079
5079
  const { __scopeSelect: n, nonce: o, ...r } = e, i = Ve(Vn, n), a = uo(Vn, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
5080
5080
  return /* @__PURE__ */ k(Yt, { children: [
@@ -5126,22 +5126,22 @@ var [Zd, uo] = ct(Ye, {}), Vn = "SelectViewport", ji = d.forwardRef(
5126
5126
  ] });
5127
5127
  }
5128
5128
  );
5129
- ji.displayName = Vn;
5130
- var Yi = "SelectGroup", [qd, Jd] = ct(Yi), Qd = d.forwardRef(
5129
+ ts.displayName = Vn;
5130
+ var ns = "SelectGroup", [sf, af] = ct(ns), cf = d.forwardRef(
5131
5131
  (e, t) => {
5132
5132
  const { __scopeSelect: n, ...o } = e, r = Ge();
5133
- return /* @__PURE__ */ p(qd, { scope: n, id: r, children: /* @__PURE__ */ p(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5133
+ return /* @__PURE__ */ p(sf, { scope: n, id: r, children: /* @__PURE__ */ p(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
5134
5134
  }
5135
5135
  );
5136
- Qd.displayName = Yi;
5137
- var Xi = "SelectLabel", ef = d.forwardRef(
5136
+ cf.displayName = ns;
5137
+ var os = "SelectLabel", lf = d.forwardRef(
5138
5138
  (e, t) => {
5139
- const { __scopeSelect: n, ...o } = e, r = Jd(Xi, n);
5139
+ const { __scopeSelect: n, ...o } = e, r = af(os, n);
5140
5140
  return /* @__PURE__ */ p(U.div, { id: r.id, ...o, ref: t });
5141
5141
  }
5142
5142
  );
5143
- ef.displayName = Xi;
5144
- var jt = "SelectItem", [tf, Zi] = ct(jt), qi = d.forwardRef(
5143
+ lf.displayName = os;
5144
+ var jt = "SelectItem", [uf, rs] = ct(jt), is = d.forwardRef(
5145
5145
  (e, t) => {
5146
5146
  const {
5147
5147
  __scopeSelect: n,
@@ -5163,7 +5163,7 @@ var jt = "SelectItem", [tf, Zi] = ct(jt), qi = d.forwardRef(
5163
5163
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
5164
5164
  );
5165
5165
  return /* @__PURE__ */ p(
5166
- tf,
5166
+ uf,
5167
5167
  {
5168
5168
  scope: n,
5169
5169
  value: o,
@@ -5214,7 +5214,7 @@ var jt = "SelectItem", [tf, Zi] = ct(jt), qi = d.forwardRef(
5214
5214
  }),
5215
5215
  onKeyDown: N(a.onKeyDown, (C) => {
5216
5216
  var S;
5217
- ((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (Vd.includes(C.key) && y(), C.key === " " && C.preventDefault());
5217
+ ((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (jd.includes(C.key) && y(), C.key === " " && C.preventDefault());
5218
5218
  })
5219
5219
  }
5220
5220
  )
@@ -5224,10 +5224,10 @@ var jt = "SelectItem", [tf, Zi] = ct(jt), qi = d.forwardRef(
5224
5224
  );
5225
5225
  }
5226
5226
  );
5227
- qi.displayName = jt;
5228
- var mt = "SelectItemText", Ji = d.forwardRef(
5227
+ is.displayName = jt;
5228
+ var mt = "SelectItemText", ss = d.forwardRef(
5229
5229
  (e, t) => {
5230
- const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(mt, n), s = Ve(mt, n), c = Zi(mt, n), l = Hd(mt, n), [f, u] = d.useState(null), m = Z(
5230
+ const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(mt, n), s = Ve(mt, n), c = rs(mt, n), l = qd(mt, n), [f, u] = d.useState(null), m = Z(
5231
5231
  t,
5232
5232
  (y) => u(y),
5233
5233
  c.onItemTextChange,
@@ -5245,15 +5245,15 @@ var mt = "SelectItemText", Ji = d.forwardRef(
5245
5245
  ] });
5246
5246
  }
5247
5247
  );
5248
- Ji.displayName = mt;
5249
- var Qi = "SelectItemIndicator", es = d.forwardRef(
5248
+ ss.displayName = mt;
5249
+ var as = "SelectItemIndicator", cs = d.forwardRef(
5250
5250
  (e, t) => {
5251
5251
  const { __scopeSelect: n, ...o } = e;
5252
- return Zi(Qi, n).isSelected ? /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...o, ref: t }) : null;
5252
+ return rs(as, n).isSelected ? /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...o, ref: t }) : null;
5253
5253
  }
5254
5254
  );
5255
- es.displayName = Qi;
5256
- var Bn = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5255
+ cs.displayName = as;
5256
+ var Bn = "SelectScrollUpButton", df = d.forwardRef((e, t) => {
5257
5257
  const n = Ve(Bn, e.__scopeSelect), o = uo(Bn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5258
5258
  return oe(() => {
5259
5259
  if (n.viewport && n.isPositioned) {
@@ -5265,7 +5265,7 @@ var Bn = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5265
5265
  return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
5266
5266
  }
5267
5267
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
5268
- ts,
5268
+ ls,
5269
5269
  {
5270
5270
  ...e,
5271
5271
  ref: a,
@@ -5276,8 +5276,8 @@ var Bn = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
5276
5276
  }
5277
5277
  ) : null;
5278
5278
  });
5279
- nf.displayName = Bn;
5280
- var Wn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5279
+ df.displayName = Bn;
5280
+ var Wn = "SelectScrollDownButton", ff = d.forwardRef((e, t) => {
5281
5281
  const n = Ve(Wn, e.__scopeSelect), o = uo(Wn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
5282
5282
  return oe(() => {
5283
5283
  if (n.viewport && n.isPositioned) {
@@ -5289,7 +5289,7 @@ var Wn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5289
5289
  return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
5290
5290
  }
5291
5291
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
5292
- ts,
5292
+ ls,
5293
5293
  {
5294
5294
  ...e,
5295
5295
  ref: a,
@@ -5300,8 +5300,8 @@ var Wn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
5300
5300
  }
5301
5301
  ) : null;
5302
5302
  });
5303
- of.displayName = Wn;
5304
- var ts = d.forwardRef((e, t) => {
5303
+ ff.displayName = Wn;
5304
+ var ls = d.forwardRef((e, t) => {
5305
5305
  const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Ve("SelectScrollButton", n), a = d.useRef(null), s = un(n), c = d.useCallback(() => {
5306
5306
  a.current !== null && (window.clearInterval(a.current), a.current = null);
5307
5307
  }, []);
@@ -5328,23 +5328,23 @@ var ts = d.forwardRef((e, t) => {
5328
5328
  })
5329
5329
  }
5330
5330
  );
5331
- }), rf = "SelectSeparator", sf = d.forwardRef(
5331
+ }), pf = "SelectSeparator", mf = d.forwardRef(
5332
5332
  (e, t) => {
5333
5333
  const { __scopeSelect: n, ...o } = e;
5334
5334
  return /* @__PURE__ */ p(U.div, { "aria-hidden": !0, ...o, ref: t });
5335
5335
  }
5336
5336
  );
5337
- sf.displayName = rf;
5338
- var Un = "SelectArrow", af = d.forwardRef(
5337
+ mf.displayName = pf;
5338
+ var Un = "SelectArrow", hf = d.forwardRef(
5339
5339
  (e, t) => {
5340
5340
  const { __scopeSelect: n, ...o } = e, r = dn(n), i = $e(Un, n), a = Ve(Un, n);
5341
- return i.open && a.position === "popper" ? /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t }) : null;
5341
+ return i.open && a.position === "popper" ? /* @__PURE__ */ p(Kr, { ...r, ...o, ref: t }) : null;
5342
5342
  }
5343
5343
  );
5344
- af.displayName = Un;
5345
- var cf = "SelectBubbleInput", ns = d.forwardRef(
5344
+ hf.displayName = Un;
5345
+ var gf = "SelectBubbleInput", us = d.forwardRef(
5346
5346
  ({ __scopeSelect: e, value: t, ...n }, o) => {
5347
- const r = d.useRef(null), i = Z(o, r), a = kd(t);
5347
+ const r = d.useRef(null), i = Z(o, r), a = Hd(t);
5348
5348
  return d.useEffect(() => {
5349
5349
  const s = r.current;
5350
5350
  if (!s) return;
@@ -5360,18 +5360,18 @@ var cf = "SelectBubbleInput", ns = d.forwardRef(
5360
5360
  U.select,
5361
5361
  {
5362
5362
  ...n,
5363
- style: { ...ki, ...n.style },
5363
+ style: { ...Hi, ...n.style },
5364
5364
  ref: i,
5365
5365
  defaultValue: t
5366
5366
  }
5367
5367
  );
5368
5368
  }
5369
5369
  );
5370
- ns.displayName = cf;
5371
- function os(e) {
5370
+ us.displayName = gf;
5371
+ function ds(e) {
5372
5372
  return e === "" || e === void 0;
5373
5373
  }
5374
- function rs(e) {
5374
+ function fs(e) {
5375
5375
  const t = Me(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
5376
5376
  (a) => {
5377
5377
  const s = n.current + a;
@@ -5385,56 +5385,56 @@ function rs(e) {
5385
5385
  }, []);
5386
5386
  return d.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, i];
5387
5387
  }
5388
- function is(e, t, n) {
5388
+ function ps(e, t, n) {
5389
5389
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
5390
- let a = lf(e, Math.max(i, 0));
5390
+ let a = vf(e, Math.max(i, 0));
5391
5391
  r.length === 1 && (a = a.filter((l) => l !== n));
5392
5392
  const c = a.find(
5393
5393
  (l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
5394
5394
  );
5395
5395
  return c !== n ? c : void 0;
5396
5396
  }
5397
- function lf(e, t) {
5397
+ function vf(e, t) {
5398
5398
  return e.map((n, o) => e[(t + o) % e.length]);
5399
5399
  }
5400
- var uf = Fi, df = $i, ff = Bi, pf = Wi, mf = Ui, hf = Hi, gf = ji, vf = qi, wf = Ji, yf = es;
5401
- function bf({ value: e, onValueChange: t, children: n }) {
5402
- return /* @__PURE__ */ p(uf, { value: e, onValueChange: t, children: n });
5400
+ var wf = Ki, yf = zi, bf = Yi, Cf = Xi, Sf = Zi, xf = qi, Ef = ts, Rf = is, Af = ss, Pf = cs;
5401
+ function Tf({ value: e, onValueChange: t, children: n }) {
5402
+ return /* @__PURE__ */ p(wf, { value: e, onValueChange: t, children: n });
5403
5403
  }
5404
- function Cf({ className: e, children: t }) {
5405
- return /* @__PURE__ */ k(df, { className: X("snow-select-trigger", e), children: [
5404
+ function Mf({ className: e, children: t }) {
5405
+ return /* @__PURE__ */ k(yf, { className: X("snow-select-trigger", e), children: [
5406
5406
  t,
5407
- /* @__PURE__ */ p(pf, { asChild: !0, children: /* @__PURE__ */ p(zs, { className: "snow-select-icon" }) })
5407
+ /* @__PURE__ */ p(Cf, { asChild: !0, children: /* @__PURE__ */ p(ea, { className: "snow-select-icon" }) })
5408
5408
  ] });
5409
5409
  }
5410
- function Sf({ placeholder: e }) {
5411
- return /* @__PURE__ */ p(ff, { placeholder: e });
5410
+ function If({ placeholder: e }) {
5411
+ return /* @__PURE__ */ p(bf, { placeholder: e });
5412
5412
  }
5413
- function xf({ children: e }) {
5414
- return /* @__PURE__ */ p(mf, { children: /* @__PURE__ */ p(
5415
- hf,
5413
+ function Nf({ children: e }) {
5414
+ return /* @__PURE__ */ p(Sf, { children: /* @__PURE__ */ p(
5415
+ xf,
5416
5416
  {
5417
5417
  className: "snow-select-content",
5418
5418
  position: "popper",
5419
5419
  sideOffset: 4,
5420
- children: /* @__PURE__ */ p(gf, { className: "snow-select-viewport", children: e })
5420
+ children: /* @__PURE__ */ p(Ef, { className: "snow-select-viewport", children: e })
5421
5421
  }
5422
5422
  ) });
5423
5423
  }
5424
- function Ef({ value: e, children: t }) {
5425
- return /* @__PURE__ */ k(vf, { value: e, className: "snow-select-item", children: [
5426
- /* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(yf, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
5427
- /* @__PURE__ */ p(wf, { children: t })
5424
+ function _f({ value: e, children: t }) {
5425
+ return /* @__PURE__ */ k(Rf, { value: e, className: "snow-select-item", children: [
5426
+ /* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(Pf, { children: /* @__PURE__ */ p(lr, { className: "snow-size-4" }) }) }),
5427
+ /* @__PURE__ */ p(Af, { children: t })
5428
5428
  ] });
5429
5429
  }
5430
5430
  const Re = {
5431
- Root: bf,
5432
- Trigger: Cf,
5433
- Value: Sf,
5434
- Content: xf,
5435
- Item: Ef
5431
+ Root: Tf,
5432
+ Trigger: Mf,
5433
+ Value: If,
5434
+ Content: Nf,
5435
+ Item: _f
5436
5436
  }, fn = [25, 50, 100];
5437
- function Rf({ table: e, isLoading: t }) {
5437
+ function Of({ table: e, isLoading: t }) {
5438
5438
  return /* @__PURE__ */ p("div", { className: "snow-pagination", children: /* @__PURE__ */ k("div", { className: "snow-pagination-controls", children: [
5439
5439
  /* @__PURE__ */ p(
5440
5440
  Ae,
@@ -5442,7 +5442,7 @@ function Rf({ table: e, isLoading: t }) {
5442
5442
  className: "snow-btn-icon-lg",
5443
5443
  onClick: () => e.setPageIndex(0),
5444
5444
  disabled: !e.getCanPreviousPage() || t,
5445
- children: /* @__PURE__ */ p($s, {})
5445
+ children: /* @__PURE__ */ p(zs, {})
5446
5446
  }
5447
5447
  ),
5448
5448
  /* @__PURE__ */ p(
@@ -5451,11 +5451,11 @@ function Rf({ table: e, isLoading: t }) {
5451
5451
  className: "snow-btn-icon-lg",
5452
5452
  onClick: () => e.previousPage(),
5453
5453
  disabled: !e.getCanPreviousPage() || t,
5454
- children: /* @__PURE__ */ p(Fs, {})
5454
+ children: /* @__PURE__ */ p(Ks, {})
5455
5455
  }
5456
5456
  ),
5457
5457
  /* @__PURE__ */ k("div", { className: "snow-pagination-display", children: [
5458
- /* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(Ks, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
5458
+ /* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(Js, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
5459
5459
  /* @__PURE__ */ k("span", { className: "snow-pagination-total", children: [
5460
5460
  "de ",
5461
5461
  e.getPageCount()
@@ -5467,7 +5467,7 @@ function Rf({ table: e, isLoading: t }) {
5467
5467
  className: "snow-btn-icon-lg",
5468
5468
  onClick: () => e.nextPage(),
5469
5469
  disabled: !e.getCanNextPage() || t,
5470
- children: /* @__PURE__ */ p(Ls, {})
5470
+ children: /* @__PURE__ */ p(Gs, {})
5471
5471
  }
5472
5472
  ),
5473
5473
  /* @__PURE__ */ p(
@@ -5476,12 +5476,12 @@ function Rf({ table: e, isLoading: t }) {
5476
5476
  className: "snow-btn-icon-lg",
5477
5477
  onClick: () => e.setPageIndex(e.getPageCount() - 1),
5478
5478
  disabled: !e.getCanNextPage() || t,
5479
- children: /* @__PURE__ */ p(Vs, {})
5479
+ children: /* @__PURE__ */ p(js, {})
5480
5480
  }
5481
5481
  )
5482
5482
  ] }) });
5483
5483
  }
5484
- function Af({
5484
+ function Df({
5485
5485
  table: e,
5486
5486
  paginationSizes: t = fn,
5487
5487
  enableElementLabel: n = !0
@@ -5504,9 +5504,9 @@ function Af({
5504
5504
  )
5505
5505
  ] });
5506
5506
  }
5507
- var pn = "Tabs", [Pf] = Xe(pn, [
5507
+ var pn = "Tabs", [kf] = Xe(pn, [
5508
5508
  on
5509
- ]), ss = on(), [Tf, fo] = Pf(pn), as = d.forwardRef(
5509
+ ]), ms = on(), [Ff, fo] = kf(pn), hs = d.forwardRef(
5510
5510
  (e, t) => {
5511
5511
  const {
5512
5512
  __scopeTabs: n,
@@ -5524,7 +5524,7 @@ var pn = "Tabs", [Pf] = Xe(pn, [
5524
5524
  caller: pn
5525
5525
  });
5526
5526
  return /* @__PURE__ */ p(
5527
- Tf,
5527
+ Ff,
5528
5528
  {
5529
5529
  scope: n,
5530
5530
  baseId: Ge(),
@@ -5546,12 +5546,12 @@ var pn = "Tabs", [Pf] = Xe(pn, [
5546
5546
  );
5547
5547
  }
5548
5548
  );
5549
- as.displayName = pn;
5550
- var cs = "TabsList", ls = d.forwardRef(
5549
+ hs.displayName = pn;
5550
+ var gs = "TabsList", vs = d.forwardRef(
5551
5551
  (e, t) => {
5552
- const { __scopeTabs: n, loop: o = !0, ...r } = e, i = fo(cs, n), a = ss(n);
5552
+ const { __scopeTabs: n, loop: o = !0, ...r } = e, i = fo(gs, n), a = ms(n);
5553
5553
  return /* @__PURE__ */ p(
5554
- Ur,
5554
+ Zr,
5555
5555
  {
5556
5556
  asChild: !0,
5557
5557
  ...a,
@@ -5571,12 +5571,12 @@ var cs = "TabsList", ls = d.forwardRef(
5571
5571
  );
5572
5572
  }
5573
5573
  );
5574
- ls.displayName = cs;
5575
- var us = "TabsTrigger", ds = d.forwardRef(
5574
+ vs.displayName = gs;
5575
+ var ws = "TabsTrigger", ys = d.forwardRef(
5576
5576
  (e, t) => {
5577
- const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = fo(us, n), s = ss(n), c = ps(a.baseId, o), l = ms(a.baseId, o), f = o === a.value;
5577
+ const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = fo(ws, n), s = ms(n), c = Cs(a.baseId, o), l = Ss(a.baseId, o), f = o === a.value;
5578
5578
  return /* @__PURE__ */ p(
5579
- Hr,
5579
+ qr,
5580
5580
  {
5581
5581
  asChild: !0,
5582
5582
  ...s,
@@ -5611,10 +5611,10 @@ var us = "TabsTrigger", ds = d.forwardRef(
5611
5611
  );
5612
5612
  }
5613
5613
  );
5614
- ds.displayName = us;
5615
- var fs = "TabsContent", Mf = d.forwardRef(
5614
+ ys.displayName = ws;
5615
+ var bs = "TabsContent", Lf = d.forwardRef(
5616
5616
  (e, t) => {
5617
- const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = fo(fs, n), c = ps(s.baseId, o), l = ms(s.baseId, o), f = o === s.value, u = d.useRef(f);
5617
+ const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = fo(bs, n), c = Cs(s.baseId, o), l = Ss(s.baseId, o), f = o === s.value, u = d.useRef(f);
5618
5618
  return d.useEffect(() => {
5619
5619
  const m = requestAnimationFrame(() => u.current = !1);
5620
5620
  return () => cancelAnimationFrame(m);
@@ -5639,37 +5639,37 @@ var fs = "TabsContent", Mf = d.forwardRef(
5639
5639
  ) });
5640
5640
  }
5641
5641
  );
5642
- Mf.displayName = fs;
5643
- function ps(e, t) {
5642
+ Lf.displayName = bs;
5643
+ function Cs(e, t) {
5644
5644
  return `${e}-trigger-${t}`;
5645
5645
  }
5646
- function ms(e, t) {
5646
+ function Ss(e, t) {
5647
5647
  return `${e}-content-${t}`;
5648
5648
  }
5649
- var If = as, Nf = ls, _f = ds;
5650
- function Of({ value: e, onValueChange: t, children: n }) {
5651
- return /* @__PURE__ */ p(If, { value: e, onValueChange: t, children: n });
5649
+ var $f = hs, Vf = vs, Bf = ys;
5650
+ function Wf({ value: e, onValueChange: t, children: n }) {
5651
+ return /* @__PURE__ */ p($f, { value: e, onValueChange: t, children: n });
5652
5652
  }
5653
- function Df({ children: e, className: t }) {
5654
- return /* @__PURE__ */ p(Nf, { className: X("snow-tabs-list", t), children: e });
5653
+ function Uf({ children: e, className: t }) {
5654
+ return /* @__PURE__ */ p(Vf, { className: X("snow-tabs-list", t), children: e });
5655
5655
  }
5656
- function kf({ value: e, children: t }) {
5657
- return /* @__PURE__ */ p(_f, { value: e, className: "snow-tabs-trigger", children: t });
5656
+ function Hf({ value: e, children: t }) {
5657
+ return /* @__PURE__ */ p(Bf, { value: e, className: "snow-tabs-trigger", children: t });
5658
5658
  }
5659
5659
  const An = {
5660
- Root: Of,
5661
- List: Df,
5662
- Trigger: kf
5660
+ Root: Wf,
5661
+ List: Uf,
5662
+ Trigger: Hf
5663
5663
  };
5664
- function Ff({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
5664
+ function Kf({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
5665
5665
  var s;
5666
- const o = js(), r = at(), i = e.find((c) => c.id === t), a = e.length > 0 && t !== ((s = e[0]) == null ? void 0 : s.id);
5666
+ const o = ta(), r = at(), i = e.find((c) => c.id === t), a = e.length > 0 && t !== ((s = e[0]) == null ? void 0 : s.id);
5667
5667
  return o || e.length > 4 ? /* @__PURE__ */ k(Re.Root, { value: t, onValueChange: n, children: [
5668
5668
  /* @__PURE__ */ p(Re.Trigger, { className: `snow-w-fit snow-min-w-32 ${a ? "snow-state-active" : ""}`, children: /* @__PURE__ */ p(Re.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
5669
5669
  /* @__PURE__ */ p(Re.Content, { children: e.map((c) => /* @__PURE__ */ p(Re.Item, { value: c.id, children: c.label }, c.id)) })
5670
5670
  ] }) : /* @__PURE__ */ p(An.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(An.List, { className: a ? "snow-state-active" : "", children: e.map((c) => /* @__PURE__ */ p(An.Trigger, { value: c.id, children: c.label }, c.id)) }) });
5671
5671
  }
5672
- const po = er(
5672
+ const po = cr(
5673
5673
  ({ value: e, onChange: t, onKeyDown: n, placeholder: o, className: r, type: i = "text", isActive: a, ...s }, c) => /* @__PURE__ */ p(
5674
5674
  "input",
5675
5675
  {
@@ -5685,15 +5685,15 @@ const po = er(
5685
5685
  )
5686
5686
  );
5687
5687
  po.displayName = "Input";
5688
- const Lf = 500;
5689
- function $f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5688
+ const Gf = 500;
5689
+ function zf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5690
5690
  const [o, r] = ae(e);
5691
5691
  ht(() => {
5692
5692
  r(e);
5693
5693
  }, [e]), ht(() => {
5694
5694
  const a = setTimeout(() => {
5695
5695
  o !== e && (t == null || t(o));
5696
- }, Lf);
5696
+ }, Gf);
5697
5697
  return () => clearTimeout(a);
5698
5698
  }, [o, e, t]);
5699
5699
  const i = o.length > 0;
@@ -5709,10 +5709,10 @@ function $f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
5709
5709
  isActive: i
5710
5710
  }
5711
5711
  ),
5712
- /* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(nr, { className: X(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
5712
+ /* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(ur, { className: X(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
5713
5713
  ] }) });
5714
5714
  }
5715
- function Vf({
5715
+ function jf({
5716
5716
  filter: e,
5717
5717
  selectedValues: t = [],
5718
5718
  onFilterChange: n
@@ -5738,14 +5738,14 @@ function Vf({
5738
5738
  return /* @__PURE__ */ k(ee.Root, { children: [
5739
5739
  /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Ae, { className: X("snow-filter-btn snow-w-full snow-justify-between", a > 0 && "snow-state-active"), children: [
5740
5740
  /* @__PURE__ */ k("div", { className: "snow-filter-btn-content", children: [
5741
- e.multipleSelection ? /* @__PURE__ */ p(Us, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Ws, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5741
+ e.multipleSelection ? /* @__PURE__ */ p(Zs, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Xs, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
5742
5742
  /* @__PURE__ */ p("span", { className: "snow-truncate", children: u() })
5743
5743
  ] }),
5744
5744
  /* @__PURE__ */ p(Hn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
5745
5745
  ] }) }),
5746
5746
  /* @__PURE__ */ k(ee.Content, { align: "start", className: "snow-w-56", children: [
5747
5747
  /* @__PURE__ */ p("div", { className: "snow-p-2", children: /* @__PURE__ */ k("div", { className: "snow-filter-search", children: [
5748
- /* @__PURE__ */ p(nr, { className: "snow-filter-search-icon" }),
5748
+ /* @__PURE__ */ p(ur, { className: "snow-filter-search-icon" }),
5749
5749
  /* @__PURE__ */ p(
5750
5750
  po,
5751
5751
  {
@@ -5776,10 +5776,10 @@ function Vf({
5776
5776
  ] })
5777
5777
  ] });
5778
5778
  }
5779
- function Bf({ column: e }) {
5780
- return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Hn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(ks, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Bs, { className: "snow-sort-icon" });
5779
+ function Yf({ column: e }) {
5780
+ return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Hn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Hs, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Ys, { className: "snow-sort-icon" });
5781
5781
  }
5782
- function hs({
5782
+ function xs({
5783
5783
  // Data
5784
5784
  data: e,
5785
5785
  columns: t,
@@ -5836,13 +5836,13 @@ function hs({
5836
5836
  ht(() => {
5837
5837
  W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
5838
5838
  }, [h, mn, W]);
5839
- const te = r === "server", vs = s !== void 0 ? Math.ceil(s / I.pageSize) : void 0, ws = !te || s !== void 0, mo = Ce(() => Object.entries(V).map(([Y, q]) => ({ id: Y, value: q })), [V]), ys = be((Y, q, Q) => {
5839
+ const te = r === "server", Rs = s !== void 0 ? Math.ceil(s / I.pageSize) : void 0, As = !te || s !== void 0, mo = Ce(() => Object.entries(V).map(([Y, q]) => ({ id: Y, value: q })), [V]), Ps = be((Y, q, Q) => {
5840
5840
  const he = Y.getValue(q);
5841
5841
  return Q.includes(String(he));
5842
- }, []), _e = Is({
5842
+ }, []), _e = $s({
5843
5843
  data: e,
5844
5844
  columns: t,
5845
- pageCount: te ? vs : void 0,
5845
+ pageCount: te ? Rs : void 0,
5846
5846
  state: {
5847
5847
  pagination: I,
5848
5848
  sorting: b ? ie : void 0,
@@ -5858,26 +5858,26 @@ function hs({
5858
5858
  manualFiltering: te,
5859
5859
  manualSorting: te,
5860
5860
  // Row models
5861
- getCoreRowModel: Ds(),
5862
- getSortedRowModel: Os(),
5863
- getPaginationRowModel: D ? _s() : void 0,
5861
+ getCoreRowModel: Us(),
5862
+ getSortedRowModel: Ws(),
5863
+ getPaginationRowModel: D ? Bs() : void 0,
5864
5864
  // Client-side filtering (only when not in manual mode)
5865
5865
  ...!te && (u != null && u.length || f) ? {
5866
- getFilteredRowModel: Ns(),
5866
+ getFilteredRowModel: Vs(),
5867
5867
  filterFns: {
5868
- multiSelect: ys
5868
+ multiSelect: Ps
5869
5869
  },
5870
- globalFilterFn: f ? sa : void 0
5870
+ globalFilterFn: f ? ma : void 0
5871
5871
  } : {}
5872
- }), bs = (Y, q) => {
5872
+ }), Ts = (Y, q) => {
5873
5873
  const Q = String(Y), he = { ...V };
5874
5874
  q.length === 0 ? delete he[Q] : he[Q] = q, z(he);
5875
- }, Cs = f || M || u && u.length > 0 || A, Ss = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), xs = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, mo]);
5875
+ }, Ms = f || M || u && u.length > 0 || A, Is = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), Ns = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, mo]);
5876
5876
  return /* @__PURE__ */ k("div", { className: "snow-table-container snow-table-root", "data-testid": "datatable", children: [
5877
5877
  o && !n && /* @__PURE__ */ p("div", { className: "snow-table-loading-overlay" }),
5878
- Cs && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
5878
+ Ms && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
5879
5879
  /* @__PURE__ */ p("div", { className: "snow-topbar-left", children: w && w.length > 0 && v && /* @__PURE__ */ p(
5880
- Ff,
5880
+ Kf,
5881
5881
  {
5882
5882
  prefilters: w,
5883
5883
  activePrefilter: h ?? ((ho = w[0]) == null ? void 0 : ho.id) ?? "",
@@ -5885,7 +5885,7 @@ function hs({
5885
5885
  }
5886
5886
  ) }),
5887
5887
  /* @__PURE__ */ p("div", { className: "snow-topbar-center", children: f && /* @__PURE__ */ p("div", { className: "snow-w-full snow-max-w-sm", children: /* @__PURE__ */ p(
5888
- $f,
5888
+ zf,
5889
5889
  {
5890
5890
  value: G,
5891
5891
  onDebouncedChange: Ue,
@@ -5894,22 +5894,22 @@ function hs({
5894
5894
  ) }) }),
5895
5895
  /* @__PURE__ */ k("div", { className: "snow-topbar-right", children: [
5896
5896
  u == null ? void 0 : u.map((Y) => /* @__PURE__ */ p(
5897
- Vf,
5897
+ jf,
5898
5898
  {
5899
5899
  filter: Y,
5900
5900
  selectedValues: V[String(Y.key)],
5901
- onFilterChange: bs
5901
+ onFilterChange: Ts
5902
5902
  },
5903
5903
  String(Y.key)
5904
5904
  )),
5905
- A && /* @__PURE__ */ p(Od, { table: _e }),
5905
+ A && /* @__PURE__ */ p(Wd, { table: _e }),
5906
5906
  (f || w && w.length > 0 || u && u.length > 0) && K && /* @__PURE__ */ p(
5907
5907
  Ae,
5908
5908
  {
5909
5909
  onClick: K,
5910
5910
  title: O("dataTable.resetFilters"),
5911
5911
  "data-testid": "datatable-reset-filters",
5912
- children: /* @__PURE__ */ p(Hs, { className: "snow-size-4" })
5912
+ children: /* @__PURE__ */ p(qs, { className: "snow-size-4" })
5913
5913
  }
5914
5914
  )
5915
5915
  ] })
@@ -5935,14 +5935,14 @@ function hs({
5935
5935
  maxWidth: (ut = (lt = q.column.columnDef) == null ? void 0 : lt.meta) == null ? void 0 : ut.maxWidth
5936
5936
  },
5937
5937
  children: q.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
5938
- /* @__PURE__ */ p("h3", { children: bo(q.column.columnDef.header, q.getContext()) }),
5939
- b && /* @__PURE__ */ p(Bf, { column: q.column })
5938
+ /* @__PURE__ */ p("h3", { children: To(q.column.columnDef.header, q.getContext()) }),
5939
+ b && /* @__PURE__ */ p(Yf, { column: q.column })
5940
5940
  ] })
5941
5941
  },
5942
5942
  q.id
5943
5943
  );
5944
5944
  }) }, Y.id)) }),
5945
- n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: I.pageSize > 10 ? 10 : I.pageSize }).map((Y, q) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": q % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Dd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, q)) }) : Ss > 0 ? /* @__PURE__ */ p(
5945
+ n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: I.pageSize > 10 ? 10 : I.pageSize }).map((Y, q) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": q % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Ud, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, q)) }) : Is > 0 ? /* @__PURE__ */ p(
5946
5946
  "tbody",
5947
5947
  {
5948
5948
  className: X("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
@@ -5960,23 +5960,29 @@ function hs({
5960
5960
  $ && "snow-responsive-row"
5961
5961
  ),
5962
5962
  children: Y.getVisibleCells().map((Q, he) => {
5963
- var lt, ut, go, vo;
5963
+ var lt, ut, go, vo, wo, yo, bo, Co, So, xo, Eo, Ro;
5964
5964
  const At = typeof Q.column.columnDef.header == "string" ? Q.column.columnDef.header : Q.column.id, Pt = he === Y.getVisibleCells().length - 1;
5965
5965
  return /* @__PURE__ */ k(
5966
5966
  "td",
5967
5967
  {
5968
5968
  onClick: () => {
5969
- var wo, yo;
5970
- return E && !((yo = (wo = Q.column.columnDef) == null ? void 0 : wo.meta) != null && yo.disableColumnClick) && E(Y.original);
5969
+ var Ao, Po;
5970
+ return E && !((Po = (Ao = Q.column.columnDef) == null ? void 0 : Ao.meta) != null && Po.disableColumnClick) && E(Y.original);
5971
5971
  },
5972
5972
  className: X(
5973
5973
  E && !((ut = (lt = Q.column.columnDef) == null ? void 0 : lt.meta) != null && ut.disableColumnClick) && "snow-cursor-pointer",
5974
5974
  ((vo = (go = Q.column.columnDef) == null ? void 0 : go.meta) == null ? void 0 : vo.center) && "snow-align-middle snow-text-center",
5975
+ ((yo = (wo = Q.column.columnDef) == null ? void 0 : wo.meta) == null ? void 0 : yo.maxWidth) !== void 0 && "snow-cell-truncate",
5975
5976
  $ ? X("snow-responsive-cell", Pt && "snow-responsive-cell-last") : "snow-table-cell"
5976
5977
  ),
5978
+ style: {
5979
+ width: (Co = (bo = Q.column.columnDef) == null ? void 0 : bo.meta) == null ? void 0 : Co.width,
5980
+ minWidth: (xo = (So = Q.column.columnDef) == null ? void 0 : So.meta) == null ? void 0 : xo.minWidth,
5981
+ maxWidth: (Ro = (Eo = Q.column.columnDef) == null ? void 0 : Eo.meta) == null ? void 0 : Ro.maxWidth
5982
+ },
5977
5983
  children: [
5978
5984
  $ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: At }),
5979
- /* @__PURE__ */ p("span", { className: X($ && "snow-responsive-cell-content"), children: bo(Q.column.columnDef.cell, Q.getContext()) })
5985
+ /* @__PURE__ */ p("span", { className: X($ && "snow-responsive-cell-content"), children: To(Q.column.columnDef.cell, Q.getContext()) })
5980
5986
  ]
5981
5987
  },
5982
5988
  Q.id
@@ -5992,17 +5998,17 @@ function hs({
5992
5998
  ),
5993
5999
  /* @__PURE__ */ k("div", { className: "snow-table-bottom-bar", children: [
5994
6000
  M && /* @__PURE__ */ k("div", { className: "snow-table-count", "data-testid": "datatable-count", children: [
5995
- xs,
6001
+ Ns,
5996
6002
  " ",
5997
6003
  O("dataTable.elements")
5998
6004
  ] }),
5999
- /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && ws && /* @__PURE__ */ p(Rf, { table: _e, isLoading: o }) }),
6000
- D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(Af, { table: _e, enableElementLabel: T, paginationSizes: L }) })
6005
+ /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && As && /* @__PURE__ */ p(Of, { table: _e, isLoading: o }) }),
6006
+ D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(Df, { table: _e, enableElementLabel: T, paginationSizes: L }) })
6001
6007
  ] })
6002
6008
  ] });
6003
6009
  }
6004
- function Wf({ label: e, x: t, y: n }) {
6005
- return Ms(
6010
+ function Xf({ label: e, x: t, y: n }) {
6011
+ return Ls(
6006
6012
  /* @__PURE__ */ k("div", { style: {
6007
6013
  position: "fixed",
6008
6014
  left: t,
@@ -6017,14 +6023,14 @@ function Wf({ label: e, x: t, y: n }) {
6017
6023
  document.body
6018
6024
  );
6019
6025
  }
6020
- const Jo = {
6026
+ const sr = {
6021
6027
  warning: "snow-variant-warning",
6022
6028
  danger: "snow-variant-danger",
6023
6029
  info: "snow-variant-info",
6024
6030
  success: "snow-variant-success"
6025
6031
  };
6026
- function Uf({ item: e, actions: t, onAction: n }) {
6027
- const o = Md(), [r, i] = ae(null), a = be((u, m) => {
6032
+ function Zf({ item: e, actions: t, onAction: n }) {
6033
+ const o = Ld(), [r, i] = ae(null), a = be((u, m) => {
6028
6034
  const g = m.getBoundingClientRect();
6029
6035
  let w = g.left + g.width / 2;
6030
6036
  const h = g.top - 8, v = window.innerWidth - 8, y = 8, C = u.length * 7 + 16;
@@ -6044,7 +6050,7 @@ function Uf({ item: e, actions: t, onAction: n }) {
6044
6050
  [n, e]
6045
6051
  );
6046
6052
  return /* @__PURE__ */ k("div", { className: "snow-action-cell", children: [
6047
- r && /* @__PURE__ */ p(Wf, { ...r }),
6053
+ r && /* @__PURE__ */ p(Xf, { ...r }),
6048
6054
  c.map((u, m) => {
6049
6055
  const g = typeof u == "function" ? u(e) : u, w = g.icon;
6050
6056
  if (g.type === "link") {
@@ -6090,9 +6096,9 @@ function Uf({ item: e, actions: t, onAction: n }) {
6090
6096
  );
6091
6097
  }),
6092
6098
  l.length > 0 && /* @__PURE__ */ k(ee.Root, { children: [
6093
- /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(Gs, { className: "snow-size-4" }) }) }),
6099
+ /* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(Qs, { className: "snow-size-4" }) }) }),
6094
6100
  /* @__PURE__ */ p(ee.Content, { align: "end", children: l.map((u, m) => {
6095
- const g = typeof u == "function" ? u(e) : u, w = g.icon, h = g.variant && Jo[g.variant] ? Jo[g.variant] : "";
6101
+ const g = typeof u == "function" ? u(e) : u, w = g.icon, h = g.variant && sr[g.variant] ? sr[g.variant] : "";
6096
6102
  if (g.type === "link") {
6097
6103
  const v = g, y = v.href(e);
6098
6104
  return /* @__PURE__ */ p(ee.Item, { asChild: !0, disabled: g.disabled, children: /* @__PURE__ */ k(
@@ -6126,13 +6132,13 @@ function Uf({ item: e, actions: t, onAction: n }) {
6126
6132
  ] })
6127
6133
  ] });
6128
6134
  }
6129
- const Hf = Ps(Uf), gs = ({
6135
+ const qf = ks(Zf), Es = ({
6130
6136
  columnConfig: e,
6131
6137
  actions: t,
6132
6138
  filters: n,
6133
6139
  mode: o
6134
6140
  }) => {
6135
- const r = at(), { mutate: i } = Es({
6141
+ const r = at(), { mutate: i } = _s({
6136
6142
  mutationFn: async (c) => c.endpoint(c.item)
6137
6143
  }), a = async (c, l) => {
6138
6144
  const f = typeof c == "function" ? c(l) : c;
@@ -6173,7 +6179,7 @@ const Hf = Ps(Uf), gs = ({
6173
6179
  meta: l.meta,
6174
6180
  cell: ({ row: u }) => {
6175
6181
  const m = u.original[l.key];
6176
- return l.render ? l.render(u.original) : Xs(m);
6182
+ return l.render ? l.render(u.original) : oa(m);
6177
6183
  }
6178
6184
  };
6179
6185
  });
@@ -6185,12 +6191,12 @@ const Hf = Ps(Uf), gs = ({
6185
6191
  },
6186
6192
  enableSorting: !1,
6187
6193
  enableHiding: !1,
6188
- cell: ({ row: l }) => /* @__PURE__ */ p(Hf, { item: l.original, actions: t, onAction: a })
6194
+ cell: ({ row: l }) => /* @__PURE__ */ p(qf, { item: l.original, actions: t, onAction: a })
6189
6195
  }), c;
6190
6196
  }, [e, t, n, o, r]),
6191
6197
  handleAction: a
6192
6198
  };
6193
- }, Qf = ({
6199
+ }, ap = ({
6194
6200
  queryKey: e,
6195
6201
  columnConfig: t,
6196
6202
  actions: n,
@@ -6217,23 +6223,23 @@ const Hf = Ps(Uf), gs = ({
6217
6223
  sorting: S,
6218
6224
  setSorting: R,
6219
6225
  resetToDefaults: A
6220
- } = or({
6226
+ } = dr({
6221
6227
  enabled: l,
6222
6228
  defaultPrefilter: (D = r == null ? void 0 : r[0]) == null ? void 0 : D.id,
6223
6229
  defaultPageSize: c,
6224
6230
  defaultSortBy: a,
6225
6231
  defaultSortOrder: s
6226
- }), { data: E = [], isLoading: x } = Qo({
6232
+ }), { data: E = [], isLoading: x } = ar({
6227
6233
  queryKey: e,
6228
6234
  queryFn: f
6229
- }), M = Ce(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } = gs({
6235
+ }), M = Ce(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } = Es({
6230
6236
  columnConfig: t,
6231
6237
  actions: n,
6232
6238
  filters: o,
6233
6239
  mode: "client"
6234
6240
  });
6235
6241
  return /* @__PURE__ */ p(
6236
- hs,
6242
+ xs,
6237
6243
  {
6238
6244
  mode: "client",
6239
6245
  data: M,
@@ -6255,7 +6261,7 @@ const Hf = Ps(Uf), gs = ({
6255
6261
  ...u
6256
6262
  }
6257
6263
  );
6258
- }, ep = ({
6264
+ }, cp = ({
6259
6265
  queryKey: e,
6260
6266
  columnConfig: t,
6261
6267
  actions: n,
@@ -6281,13 +6287,13 @@ const Hf = Ps(Uf), gs = ({
6281
6287
  sorting: b,
6282
6288
  setSorting: S,
6283
6289
  resetToDefaults: R
6284
- } = or({
6290
+ } = dr({
6285
6291
  enabled: c,
6286
6292
  defaultPrefilter: (x = r == null ? void 0 : r[0]) == null ? void 0 : x.id,
6287
6293
  defaultPageSize: s,
6288
6294
  defaultSortBy: i,
6289
6295
  defaultSortOrder: a
6290
- }), A = Qo({
6296
+ }), A = ar({
6291
6297
  queryKey: [...e, "server", u, g, h, y, b],
6292
6298
  queryFn: async () => {
6293
6299
  var D, L;
@@ -6301,15 +6307,15 @@ const Hf = Ps(Uf), gs = ({
6301
6307
  sortOrder: (L = b[0]) != null && L.desc ? "DESC" : "ASC"
6302
6308
  });
6303
6309
  },
6304
- placeholderData: Rs
6305
- }), { columns: E } = gs({
6310
+ placeholderData: Os
6311
+ }), { columns: E } = Es({
6306
6312
  columnConfig: t,
6307
6313
  actions: n,
6308
6314
  filters: o,
6309
6315
  mode: "server"
6310
6316
  });
6311
6317
  return /* @__PURE__ */ p(
6312
- hs,
6318
+ xs,
6313
6319
  {
6314
6320
  mode: "server",
6315
6321
  data: ((M = A.data) == null ? void 0 : M.items) ?? [],
@@ -6336,22 +6342,22 @@ const Hf = Ps(Uf), gs = ({
6336
6342
  );
6337
6343
  };
6338
6344
  export {
6339
- Hf as ActionCell,
6340
- Od as ColumnConfiguration,
6345
+ qf as ActionCell,
6346
+ Wd as ColumnConfiguration,
6341
6347
  fn as DEFAULT_PAGE_SIZES,
6342
- hs as DataTable,
6343
- Af as PageSizeSelector,
6344
- Rf as Pagination,
6345
- Ff as PrefilterTabs,
6346
- $f as SearchBar,
6347
- Vf as SingleFilterDropdown,
6348
- Qf as SnowClientDataTable,
6349
- ep as SnowServerDataTable,
6350
- Bf as SortButton,
6351
- Jf as isSnowTableSetup,
6352
- Xf as redirectToPageWithParam,
6353
- qf as setupSnowTable,
6354
- gs as useSnowColumns,
6355
- or as useTableStatePersist
6348
+ xs as DataTable,
6349
+ Df as PageSizeSelector,
6350
+ Of as Pagination,
6351
+ Kf as PrefilterTabs,
6352
+ zf as SearchBar,
6353
+ jf as SingleFilterDropdown,
6354
+ ap as SnowClientDataTable,
6355
+ cp as SnowServerDataTable,
6356
+ Yf as SortButton,
6357
+ sp as isSnowTableSetup,
6358
+ op as redirectToPageWithParam,
6359
+ ip as setupSnowTable,
6360
+ Es as useSnowColumns,
6361
+ dr as useTableStatePersist
6356
6362
  };
6357
6363
  //# sourceMappingURL=index.js.map