quickit-ui 0.1.6 → 0.1.7

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.
@@ -1788,29 +1788,84 @@ var ut = i(null), dt = {
1788
1788
  fallback: "text-xl"
1789
1789
  }
1790
1790
  }, pt = {
1791
- circle: "rounded-full",
1792
- rounded: "",
1793
- square: ""
1791
+ sm: 32,
1792
+ md: 40,
1793
+ lg: 48,
1794
+ xl: 56,
1795
+ "2xl": 64
1794
1796
  }, mt = {
1795
- light: {
1796
- root: "border-slate-200 bg-slate-100 text-slate-700",
1797
- groupRing: "[&>[data-slot='avatar']]:ring-white"
1797
+ sm: {
1798
+ rounded: 12,
1799
+ square: 8
1798
1800
  },
1799
- dark: {
1800
- root: "border-zinc-800 bg-zinc-900 text-stone-200",
1801
- groupRing: "[&>[data-slot='avatar']]:ring-neutral-950"
1801
+ md: {
1802
+ rounded: 14,
1803
+ square: 10
1804
+ },
1805
+ lg: {
1806
+ rounded: 16,
1807
+ square: 12
1808
+ },
1809
+ xl: {
1810
+ rounded: 18,
1811
+ square: 14
1812
+ },
1813
+ "2xl": {
1814
+ rounded: 20,
1815
+ square: 16
1802
1816
  }
1817
+ }, ht = .25, gt = {
1818
+ circle: "rounded-full",
1819
+ rounded: "",
1820
+ square: ""
1821
+ }, _t = {
1822
+ light: { root: "border-slate-200 bg-slate-100 text-slate-700" },
1823
+ dark: { root: "border-zinc-800 bg-zinc-900 text-stone-200" }
1803
1824
  };
1804
- function ht(e) {
1825
+ function vt(e) {
1805
1826
  return e === "dark" ? "dark" : "light";
1806
1827
  }
1807
- function gt(e) {
1828
+ function yt(e) {
1829
+ return Object.hasOwn(gt, e) ? e : "circle";
1830
+ }
1831
+ function bt(e) {
1832
+ return ft[e] ? e : "md";
1833
+ }
1834
+ function xt(e) {
1808
1835
  let t = c(ut);
1809
1836
  if (!t) throw Error(`${e} debe usarse dentro de <Avatar>.`);
1810
1837
  return t;
1811
1838
  }
1812
- var _t = a(function({ children: e, className: t, shape: n = "circle", size: r = "md", ...i }, a) {
1813
- let o = ht(S()), s = mt[o], c = Object.hasOwn(pt, n) ? n : "circle", l = ft[r] ? r : "md", [u, d] = m("error"), p = f(() => ({
1839
+ function St(e, t) {
1840
+ return t <= 1 || e === t - 1 ? null : "stacked";
1841
+ }
1842
+ function Ct(e) {
1843
+ return Math.round(pt[e] * ht);
1844
+ }
1845
+ function wt(e, t) {
1846
+ return e === "circle" ? .5 : (mt[t]?.[e] ?? mt.md.rounded) / pt[t];
1847
+ }
1848
+ function Tt(e, t) {
1849
+ let n = Ct(t) / pt[t], r = Number((1 - n * 1.24).toFixed(4));
1850
+ if (e === "circle") return {
1851
+ type: "circle",
1852
+ cx: Number((r + .5).toFixed(4)),
1853
+ cy: .5,
1854
+ r: .5
1855
+ };
1856
+ let i = wt(e, t);
1857
+ return {
1858
+ type: "rect",
1859
+ x: r,
1860
+ y: 0,
1861
+ width: 1,
1862
+ height: 1,
1863
+ rx: Number(i.toFixed(4)),
1864
+ ry: Number(i.toFixed(4))
1865
+ };
1866
+ }
1867
+ var Et = a(function({ children: e, className: t, shape: n = "circle", size: r = "md", ...i }, a) {
1868
+ let o = vt(S()), s = _t[o], c = yt(n), l = bt(r), [u, d] = m("error"), p = f(() => ({
1814
1869
  setStatus: d,
1815
1870
  shape: c,
1816
1871
  size: l,
@@ -1827,13 +1882,13 @@ var _t = a(function({ children: e, className: t, shape: n = "circle", size: r =
1827
1882
  children: /* @__PURE__ */ (0, b.jsx)("span", {
1828
1883
  ref: a,
1829
1884
  "data-slot": "avatar",
1830
- className: K(dt.root, ft[l].root, c === "circle" ? pt.circle : lt(c, l), s.root, t),
1885
+ className: K(dt.root, ft[l].root, c === "circle" ? gt.circle : lt(c, l), s.root, t),
1831
1886
  ...i,
1832
1887
  children: e
1833
1888
  })
1834
1889
  });
1835
- }), vt = a(function({ alt: e = "", className: t, onError: n, onLoad: r, src: i, ...a }, o) {
1836
- let { setStatus: s, status: c } = gt("AvatarImage");
1890
+ }), Dt = a(function({ alt: e = "", className: t, onError: n, onLoad: r, src: i, ...a }, o) {
1891
+ let { setStatus: s, status: c } = xt("AvatarImage");
1837
1892
  return l(() => {
1838
1893
  s(i ? "loading" : "error");
1839
1894
  }, [s, i]), /* @__PURE__ */ (0, b.jsx)("img", {
@@ -1849,36 +1904,86 @@ var _t = a(function({ children: e, className: t, shape: n = "circle", size: r =
1849
1904
  },
1850
1905
  ...a
1851
1906
  });
1852
- }), yt = a(function({ children: e, className: t, ...n }, r) {
1853
- let { size: i, status: a } = gt("AvatarFallback");
1907
+ }), Ot = a(function({ children: e, className: t, ...n }, r) {
1908
+ let { size: i, status: a } = xt("AvatarFallback");
1854
1909
  return a === "loaded" ? null : /* @__PURE__ */ (0, b.jsx)("span", {
1855
1910
  ref: r,
1856
1911
  className: K(dt.fallback, ft[i].fallback, t),
1857
1912
  ...n,
1858
1913
  children: e
1859
1914
  });
1860
- }), bt = a(function({ children: e, className: t, stacked: n = !0, ...r }, i) {
1861
- let a = mt[ht(S())];
1862
- return /* @__PURE__ */ (0, b.jsx)("div", {
1863
- ref: i,
1864
- className: K(dt.group, n && "-space-x-3", n && "[&>[data-slot='avatar']]:ring-2", n && a.groupRing, t),
1865
- ...r,
1866
- children: e
1915
+ }), kt = a(function({ children: e, className: n, stacked: i = !0, ...a }, s) {
1916
+ let c = t.toArray(e), l = u().replaceAll(":", ""), d = i && c.length > 1, f = c.map((e, t) => {
1917
+ if (!o(e)) return {
1918
+ child: e,
1919
+ index: t,
1920
+ maskId: null,
1921
+ overlapPx: 0
1922
+ };
1923
+ let n = yt(e.props.shape), r = bt(e.props.size), i = St(t, c.length) ? `${l}-avatar-group-${t}` : null;
1924
+ return {
1925
+ child: e,
1926
+ index: t,
1927
+ maskId: i,
1928
+ maskDefinition: i ? Tt(n, r) : null,
1929
+ overlapPx: t > 0 ? Ct(r) : 0
1930
+ };
1867
1931
  });
1868
- }), xt = i(null), St = i(null);
1869
- function Ct(e) {
1870
- let t = c(xt);
1932
+ return /* @__PURE__ */ (0, b.jsxs)("div", {
1933
+ ref: s,
1934
+ className: K(dt.group, i && "relative", n),
1935
+ ...a,
1936
+ children: [d ? /* @__PURE__ */ (0, b.jsx)("svg", {
1937
+ "aria-hidden": "true",
1938
+ className: "pointer-events-none absolute h-0 w-0 overflow-hidden",
1939
+ focusable: "false",
1940
+ children: /* @__PURE__ */ (0, b.jsx)("defs", { children: f.map(({ maskId: e, maskDefinition: t }) => e ? /* @__PURE__ */ (0, b.jsxs)("mask", {
1941
+ id: e,
1942
+ maskContentUnits: "objectBoundingBox",
1943
+ maskUnits: "objectBoundingBox",
1944
+ children: [/* @__PURE__ */ (0, b.jsx)("rect", {
1945
+ width: "1",
1946
+ height: "1",
1947
+ fill: "white"
1948
+ }), t.type === "circle" ? /* @__PURE__ */ (0, b.jsx)("circle", {
1949
+ cx: t.cx,
1950
+ cy: t.cy,
1951
+ r: t.r,
1952
+ fill: "black"
1953
+ }) : /* @__PURE__ */ (0, b.jsx)("rect", {
1954
+ x: t.x,
1955
+ y: t.y,
1956
+ width: t.width,
1957
+ height: t.height,
1958
+ rx: t.rx,
1959
+ ry: t.ry,
1960
+ fill: "black"
1961
+ })]
1962
+ }, e) : null) })
1963
+ }) : null, i ? f.map(({ child: e, index: t, maskId: n, overlapPx: i }) => o(e) ? r(e, { style: {
1964
+ ...e.props.style ?? {},
1965
+ marginInlineStart: t > 0 ? `${i * -1}px` : e.props.style?.marginInlineStart,
1966
+ zIndex: c.length - t,
1967
+ ...n ? {
1968
+ WebkitMask: `url(#${n}) center / 100% 100% no-repeat`,
1969
+ mask: `url(#${n}) center / 100% 100% no-repeat`
1970
+ } : {}
1971
+ } }) : e) : e]
1972
+ });
1973
+ }), At = i(null), jt = i(null);
1974
+ function Mt(e) {
1975
+ let t = c(At);
1871
1976
  if (!t) throw Error(`${e} debe usarse dentro de <Accordion>.`);
1872
1977
  return t;
1873
1978
  }
1874
- function wt(e) {
1875
- let t = c(St);
1979
+ function Nt(e) {
1980
+ let t = c(jt);
1876
1981
  if (!t) throw Error(`${e} debe usarse dentro de <AccordionItem>.`);
1877
1982
  return t;
1878
1983
  }
1879
1984
  //#endregion
1880
1985
  //#region src/lib/components/accordion/Accordion.jsx
1881
- var Tt = {
1986
+ var Pt = {
1882
1987
  light: {
1883
1988
  item: "border-slate-200",
1884
1989
  trigger: "text-slate-950 hover:bg-slate-100 hover:text-slate-700 focus-visible:outline-slate-300",
@@ -1894,10 +1999,10 @@ var Tt = {
1894
1999
  icon: "text-stone-400"
1895
2000
  }
1896
2001
  };
1897
- function Et(e) {
2002
+ function Ft(e) {
1898
2003
  return e === "dark" ? "dark" : "light";
1899
2004
  }
1900
- function Dt({ children: e, className: t, collapsible: n = !0, defaultValue: r, onValueChange: i, type: a = "single", value: o }) {
2005
+ function It({ children: e, className: t, collapsible: n = !0, defaultValue: r, onValueChange: i, type: a = "single", value: o }) {
1901
2006
  let s = u(), c = a === "multiple", l = o !== void 0, [d, f] = m(() => c ? Array.isArray(r) ? r : [] : r ?? null), p = l ? o : d, h = c ? Array.isArray(p) ? p : [] : p ? [p] : [], g = (e) => {
1902
2007
  l || f(e), i?.(e);
1903
2008
  }, _ = {
@@ -1915,7 +2020,7 @@ function Dt({ children: e, className: t, collapsible: n = !0, defaultValue: r, o
1915
2020
  g(e);
1916
2021
  }
1917
2022
  };
1918
- return /* @__PURE__ */ (0, b.jsx)(xt.Provider, {
2023
+ return /* @__PURE__ */ (0, b.jsx)(At.Provider, {
1919
2024
  value: _,
1920
2025
  children: /* @__PURE__ */ (0, b.jsx)("div", {
1921
2026
  className: K("w-full", t),
@@ -1923,8 +2028,8 @@ function Dt({ children: e, className: t, collapsible: n = !0, defaultValue: r, o
1923
2028
  })
1924
2029
  });
1925
2030
  }
1926
- function Ot({ children: e, className: t, value: n }) {
1927
- let { baseId: r, openValues: i } = Ct("AccordionItem"), a = Tt[Et(S())], o = i.includes(n), s = f(() => ({
2031
+ function Lt({ children: e, className: t, value: n }) {
2032
+ let { baseId: r, openValues: i } = Mt("AccordionItem"), a = Pt[Ft(S())], o = i.includes(n), s = f(() => ({
1928
2033
  contentId: `${r}-content-${n}`,
1929
2034
  isOpen: o,
1930
2035
  triggerId: `${r}-trigger-${n}`,
@@ -1934,7 +2039,7 @@ function Ot({ children: e, className: t, value: n }) {
1934
2039
  o,
1935
2040
  n
1936
2041
  ]);
1937
- return /* @__PURE__ */ (0, b.jsx)(St.Provider, {
2042
+ return /* @__PURE__ */ (0, b.jsx)(jt.Provider, {
1938
2043
  value: s,
1939
2044
  children: /* @__PURE__ */ (0, b.jsx)("div", {
1940
2045
  className: K("border-b", a.item, t),
@@ -1942,8 +2047,8 @@ function Ot({ children: e, className: t, value: n }) {
1942
2047
  })
1943
2048
  });
1944
2049
  }
1945
- function kt({ children: e, className: t, ...n }) {
1946
- let { toggleItem: r } = Ct("AccordionTrigger"), { contentId: i, isOpen: a, triggerId: o, value: s } = wt("AccordionTrigger"), c = Tt[Et(S())];
2050
+ function Rt({ children: e, className: t, ...n }) {
2051
+ let { toggleItem: r } = Mt("AccordionTrigger"), { contentId: i, isOpen: a, triggerId: o, value: s } = Nt("AccordionTrigger"), c = Pt[Ft(S())];
1947
2052
  return /* @__PURE__ */ (0, b.jsxs)("button", {
1948
2053
  type: "button",
1949
2054
  id: o,
@@ -1964,8 +2069,8 @@ function kt({ children: e, className: t, ...n }) {
1964
2069
  })]
1965
2070
  });
1966
2071
  }
1967
- function At({ children: e, className: t, forceMount: n = !1, ...r }) {
1968
- let { contentId: i, isOpen: a, triggerId: o } = wt("AccordionContent"), s = Tt[Et(S())];
2072
+ function zt({ children: e, className: t, forceMount: n = !1, ...r }) {
2073
+ let { contentId: i, isOpen: a, triggerId: o } = Nt("AccordionContent"), s = Pt[Ft(S())];
1969
2074
  return !n && !a ? null : /* @__PURE__ */ (0, b.jsx)("div", {
1970
2075
  id: i,
1971
2076
  role: "region",
@@ -1978,10 +2083,10 @@ function At({ children: e, className: t, forceMount: n = !1, ...r }) {
1978
2083
  }
1979
2084
  //#endregion
1980
2085
  //#region src/lib/components/badge/Badge.jsx
1981
- var jt = { base: "inline-flex items-center border font-medium" }, Mt = {
2086
+ var Bt = { base: "inline-flex items-center border font-medium" }, Vt = {
1982
2087
  sm: "px-2.5 py-1 text-xs",
1983
2088
  md: "px-3 py-1.5 text-sm"
1984
- }, Nt = {
2089
+ }, Ht = {
1985
2090
  light: {
1986
2091
  solid: {
1987
2092
  primary: "border-blue-700 bg-blue-700 text-white",
@@ -2022,12 +2127,12 @@ var jt = { base: "inline-flex items-center border font-medium" }, Mt = {
2022
2127
  neutral: "border-neutral-100 bg-neutral-100 text-neutral-950"
2023
2128
  },
2024
2129
  soft: {
2025
- primary: "border-blue-500/30 bg-blue-500/10 text-blue-300",
2026
- brand: "border-brand-500/30 bg-brand-500/10 text-brand-300",
2027
- success: "border-emerald-500/30 bg-emerald-500/10 text-emerald-300",
2028
- danger: "border-red-500/30 bg-red-500/10 text-red-300",
2029
- warning: "border-amber-500/30 bg-amber-500/10 text-amber-300",
2030
- info: "border-sky-500/30 bg-sky-500/10 text-sky-300",
2130
+ primary: "border-blue-800 bg-blue-950 text-blue-200",
2131
+ brand: "border-brand-800 bg-brand-950 text-brand-200",
2132
+ success: "border-emerald-800 bg-emerald-950 text-emerald-200",
2133
+ danger: "border-red-800 bg-red-950 text-red-200",
2134
+ warning: "border-amber-800 bg-amber-950 text-amber-200",
2135
+ info: "border-sky-800 bg-sky-950 text-sky-200",
2031
2136
  neutral: "border-neutral-700 bg-neutral-900 text-neutral-200"
2032
2137
  },
2033
2138
  outline: {
@@ -2041,18 +2146,18 @@ var jt = { base: "inline-flex items-center border font-medium" }, Mt = {
2041
2146
  }
2042
2147
  }
2043
2148
  };
2044
- function Pt(e) {
2149
+ function Ut(e) {
2045
2150
  return e === "dark" ? "dark" : "light";
2046
2151
  }
2047
- var Ft = a(function({ children: e, className: t, color: n = "neutral", size: r = "sm", variant: i = "soft", ...a }, o) {
2048
- let s = Pt(S()), c = Nt[s][i] ?? Nt[s].soft, l = c[n] ? n : "neutral";
2152
+ var Wt = a(function({ children: e, className: t, color: n = "neutral", size: r = "sm", variant: i = "soft", ...a }, o) {
2153
+ let s = Ut(S()), c = Ht[s][i] ?? Ht[s].soft, l = c[n] ? n : "neutral";
2049
2154
  return /* @__PURE__ */ (0, b.jsx)("span", {
2050
2155
  ref: o,
2051
- className: K(jt.base, ct(r), Mt[r] ?? Mt.sm, c[l], t),
2156
+ className: K(Bt.base, ct(r), Vt[r] ?? Vt.sm, c[l], t),
2052
2157
  ...a,
2053
2158
  children: e
2054
2159
  });
2055
- }), It = {
2160
+ }), Gt = {
2056
2161
  light: {
2057
2162
  default: "text-blue-700 hover:text-blue-800 focus-visible:outline-blue-300",
2058
2163
  muted: "text-slate-600 hover:text-slate-950 focus-visible:outline-slate-300",
@@ -2063,17 +2168,17 @@ var Ft = a(function({ children: e, className: t, color: n = "neutral", size: r =
2063
2168
  muted: "text-stone-300 hover:text-stone-50 focus-visible:outline-zinc-700",
2064
2169
  subtle: "text-stone-400 hover:text-stone-50 focus-visible:outline-zinc-700"
2065
2170
  }
2066
- }, Lt = [
2171
+ }, Kt = [
2067
2172
  "relative inline-flex items-center justify-center border font-medium",
2068
2173
  "cursor-pointer gap-2 transition-[background-color,border-color,color,transform,filter] duration-200",
2069
2174
  "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
2070
- ].join(" "), Rt = "active:translate-y-px active:scale-[0.99] active:brightness-[0.97] active:saturate-125", zt = {
2175
+ ].join(" "), qt = "active:translate-y-px active:scale-[0.99] active:brightness-[0.97] active:saturate-125", Jt = {
2071
2176
  sm: "h-9 min-w-[5.5rem] px-3.5 text-sm",
2072
2177
  md: "h-11 min-w-[6.5rem] px-[1.125rem] text-sm",
2073
2178
  lg: "h-12 min-w-[7.5rem] px-5 text-base",
2074
2179
  xl: "h-14 min-w-[8.5rem] px-6 text-lg",
2075
2180
  "2xl": "h-16 min-w-[9.5rem] px-7 text-lg"
2076
- }, Bt = {
2181
+ }, Yt = {
2077
2182
  light: {
2078
2183
  solid: {
2079
2184
  neutral: "border-neutral-700 bg-neutral-700 text-white hover:border-neutral-800 hover:bg-neutral-800 focus-visible:outline-neutral-700",
@@ -2123,14 +2228,14 @@ var Ft = a(function({ children: e, className: t, color: n = "neutral", size: r =
2123
2228
  },
2124
2229
  outline: {
2125
2230
  neutral: "border-neutral-700 bg-neutral-900 text-neutral-200 hover:border-neutral-600 hover:bg-neutral-800 focus-visible:outline-neutral-500",
2126
- primary: "border-blue-500/40 bg-blue-500/10 text-blue-300 hover:border-blue-400/60 hover:bg-blue-500/15 focus-visible:outline-blue-300",
2127
- brand: "border-brand-500/40 bg-brand-500/10 text-brand-300 hover:border-brand-400/60 hover:bg-brand-500/15 focus-visible:outline-brand-300",
2128
- success: "border-emerald-500/40 bg-emerald-500/10 text-emerald-300 hover:border-emerald-400/60 hover:bg-emerald-500/15 focus-visible:outline-emerald-300",
2129
- danger: "border-red-500/40 bg-red-500/10 text-red-300 hover:border-red-400/60 hover:bg-red-500/15 focus-visible:outline-red-300",
2130
- warning: "border-amber-500/40 bg-amber-500/10 text-amber-300 hover:border-amber-400/60 hover:bg-amber-500/15 focus-visible:outline-amber-300",
2131
- info: "border-sky-500/40 bg-sky-500/10 text-sky-300 hover:border-sky-400/60 hover:bg-sky-500/15 focus-visible:outline-sky-300",
2132
- light: "border-slate-600 bg-slate-200/10 text-slate-100 hover:border-slate-500 hover:bg-slate-200/15 focus-visible:outline-slate-300",
2133
- dark: "border-slate-300/70 bg-slate-800/35 text-slate-50 hover:border-slate-200 hover:bg-slate-700/45 focus-visible:outline-slate-200"
2231
+ primary: "border-blue-800 bg-blue-950 text-blue-200 hover:border-blue-700 hover:bg-blue-900 focus-visible:outline-blue-300",
2232
+ brand: "border-brand-800 bg-brand-950 text-brand-200 hover:border-brand-700 hover:bg-brand-900 focus-visible:outline-brand-300",
2233
+ success: "border-emerald-800 bg-emerald-950 text-emerald-200 hover:border-emerald-700 hover:bg-emerald-900 focus-visible:outline-emerald-300",
2234
+ danger: "border-red-800 bg-red-950 text-red-200 hover:border-red-700 hover:bg-red-900 focus-visible:outline-red-300",
2235
+ warning: "border-amber-800 bg-amber-950 text-amber-200 hover:border-amber-700 hover:bg-amber-900 focus-visible:outline-amber-300",
2236
+ info: "border-sky-800 bg-sky-950 text-sky-200 hover:border-sky-700 hover:bg-sky-900 focus-visible:outline-sky-300",
2237
+ light: "border-slate-600 bg-slate-800 text-slate-100 hover:border-slate-500 hover:bg-slate-700 focus-visible:outline-slate-300",
2238
+ dark: "border-slate-600 bg-slate-800 text-slate-50 hover:border-slate-500 hover:bg-slate-700 focus-visible:outline-slate-200"
2134
2239
  },
2135
2240
  ghost: {
2136
2241
  neutral: "border-transparent bg-transparent text-neutral-300 hover:bg-neutral-800 hover:text-neutral-50 focus-visible:outline-neutral-500",
@@ -2145,11 +2250,11 @@ var Ft = a(function({ children: e, className: t, color: n = "neutral", size: r =
2145
2250
  }
2146
2251
  }
2147
2252
  };
2148
- function Vt(e) {
2253
+ function Xt(e) {
2149
2254
  return e === "dark" ? "dark" : "light";
2150
2255
  }
2151
- var Ht = a(function({ activeMotion: e = !0, appearance: t = "text", children: n, className: r, color: i = "primary", disabled: a = !1, fullWidth: o = !1, onClick: s, size: c = "md", tabIndex: l, underline: u = "hover", variant: d = "default", ...f }, p) {
2152
- let m = Vt(S()), h = It[m], g = t === "button", _ = h[d] ? d : "default", v = Bt[m][d] ? d : "solid", y = Bt[m][v]?.[i] ? i : "primary", x = {
2256
+ var Zt = a(function({ activeMotion: e = !0, appearance: t = "text", children: n, className: r, color: i = "primary", disabled: a = !1, fullWidth: o = !1, onClick: s, size: c = "md", tabIndex: l, underline: u = "hover", variant: d = "default", ...f }, p) {
2257
+ let m = Xt(S()), h = Gt[m], g = t === "button", _ = h[d] ? d : "default", v = Yt[m][d] ? d : "solid", y = Yt[m][v]?.[i] ? i : "primary", x = {
2153
2258
  always: "underline underline-offset-4",
2154
2259
  hover: "no-underline hover:underline hover:underline-offset-4",
2155
2260
  none: "no-underline"
@@ -2161,17 +2266,17 @@ var Ht = a(function({ activeMotion: e = !0, appearance: t = "text", children: n,
2161
2266
  e.preventDefault();
2162
2267
  } : s,
2163
2268
  tabIndex: a ? -1 : l,
2164
- className: K(g ? Lt : "inline-flex items-center gap-1 text-sm font-medium outline-none transition-colors duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2", g ? [
2269
+ className: K(g ? Kt : "inline-flex items-center gap-1 text-sm font-medium outline-none transition-colors duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2", g ? [
2165
2270
  ct(c),
2166
- e && Rt,
2167
- zt[c] ?? zt.md,
2168
- Bt[m][v]?.[y] ?? Bt[m].solid.primary,
2271
+ e && qt,
2272
+ Jt[c] ?? Jt.md,
2273
+ Yt[m][v]?.[y] ?? Yt[m].solid.primary,
2169
2274
  o && "w-full"
2170
2275
  ] : [h[_], x[u] ?? x.hover], a && "pointer-events-none opacity-60", r),
2171
2276
  ...f,
2172
2277
  children: n
2173
2278
  });
2174
- }), Ut = {
2279
+ }), Qt = {
2175
2280
  light: {
2176
2281
  current: "text-slate-950",
2177
2282
  separator: "text-slate-400"
@@ -2181,10 +2286,10 @@ var Ht = a(function({ activeMotion: e = !0, appearance: t = "text", children: n,
2181
2286
  separator: "text-stone-500"
2182
2287
  }
2183
2288
  };
2184
- function Wt(e) {
2289
+ function $t(e) {
2185
2290
  return e === "dark" ? "dark" : "light";
2186
2291
  }
2187
- var Gt = a(function({ children: e, className: t, ...n }, r) {
2292
+ var en = a(function({ children: e, className: t, ...n }, r) {
2188
2293
  return /* @__PURE__ */ (0, b.jsx)("nav", {
2189
2294
  ref: r,
2190
2295
  "aria-label": "Breadcrumb",
@@ -2192,24 +2297,24 @@ var Gt = a(function({ children: e, className: t, ...n }, r) {
2192
2297
  ...n,
2193
2298
  children: e
2194
2299
  });
2195
- }), Kt = a(function({ children: e, className: r, separator: i = "/", separatorClassName: a, ...o }, s) {
2196
- let c = Ut[Wt(S())], l = t.toArray(e), u = l.some((e) => typeof e == "object" && e?.type && (e.type.displayName === "BreadcrumbSeparator" || e.type.name === "BreadcrumbSeparator"));
2300
+ }), tn = a(function({ children: e, className: r, separator: i = "/", separatorClassName: a, ...o }, s) {
2301
+ let c = Qt[$t(S())], l = t.toArray(e), u = l.some((e) => typeof e == "object" && e?.type && (e.type.displayName === "BreadcrumbSeparator" || e.type.name === "BreadcrumbSeparator"));
2197
2302
  return /* @__PURE__ */ (0, b.jsx)("ol", {
2198
2303
  ref: s,
2199
2304
  className: K("flex flex-wrap items-center gap-2 text-sm", r),
2200
2305
  ...o,
2201
- children: u ? l : l.map((e, t) => /* @__PURE__ */ (0, b.jsxs)(n, { children: [e, t < l.length - 1 ? /* @__PURE__ */ (0, b.jsx)(Yt, {
2306
+ children: u ? l : l.map((e, t) => /* @__PURE__ */ (0, b.jsxs)(n, { children: [e, t < l.length - 1 ? /* @__PURE__ */ (0, b.jsx)(an, {
2202
2307
  className: K(c.separator, a),
2203
2308
  children: i
2204
2309
  }) : null] }, e.key ?? `breadcrumb-item-${t}`))
2205
2310
  });
2206
- }), qt = a(function({ allowLink: e = !1, children: n, className: r, contentClassName: i, current: a = !1, href: o, linkVariant: s = "muted", rel: c, target: l, title: u, underline: d = "hover", ...f }, p) {
2207
- let m = Ut[Wt(S())], h = !a && (e || !!o), g = t.toArray(n).some((e) => typeof e == "object");
2311
+ }), nn = a(function({ allowLink: e = !1, children: n, className: r, contentClassName: i, current: a = !1, href: o, linkVariant: s = "muted", rel: c, target: l, title: u, underline: d = "hover", ...f }, p) {
2312
+ let m = Qt[$t(S())], h = !a && (e || !!o), g = t.toArray(n).some((e) => typeof e == "object");
2208
2313
  return /* @__PURE__ */ (0, b.jsx)("li", {
2209
2314
  ref: p,
2210
2315
  className: K("inline-flex items-center gap-2", r),
2211
2316
  ...f,
2212
- children: h ? /* @__PURE__ */ (0, b.jsx)(Ht, {
2317
+ children: h ? /* @__PURE__ */ (0, b.jsx)(Zt, {
2213
2318
  href: o,
2214
2319
  rel: c,
2215
2320
  target: l,
@@ -2225,15 +2330,15 @@ var Gt = a(function({ children: e, className: t, ...n }, r) {
2225
2330
  children: n
2226
2331
  })
2227
2332
  });
2228
- }), Jt = a(function(e, t) {
2229
- return /* @__PURE__ */ (0, b.jsx)(Ht, {
2333
+ }), rn = a(function(e, t) {
2334
+ return /* @__PURE__ */ (0, b.jsx)(Zt, {
2230
2335
  ref: t,
2231
2336
  variant: "muted",
2232
2337
  underline: "hover",
2233
2338
  ...e
2234
2339
  });
2235
- }), Yt = a(function({ children: e, className: t, ...n }, r) {
2236
- let i = Ut[Wt(S())];
2340
+ }), an = a(function({ children: e, className: t, ...n }, r) {
2341
+ let i = Qt[$t(S())];
2237
2342
  return /* @__PURE__ */ (0, b.jsx)("li", {
2238
2343
  ref: r,
2239
2344
  "aria-hidden": "true",
@@ -2242,9 +2347,9 @@ var Gt = a(function({ children: e, className: t, ...n }, r) {
2242
2347
  children: e ?? "/"
2243
2348
  });
2244
2349
  });
2245
- Yt.displayName = "BreadcrumbSeparator";
2246
- var Xt = a(function({ children: e, className: t, ...n }, r) {
2247
- let i = Ut[Wt(S())];
2350
+ an.displayName = "BreadcrumbSeparator";
2351
+ var on = a(function({ children: e, className: t, ...n }, r) {
2352
+ let i = Qt[$t(S())];
2248
2353
  return /* @__PURE__ */ (0, b.jsx)("span", {
2249
2354
  ref: r,
2250
2355
  "aria-current": "page",
@@ -2252,20 +2357,20 @@ var Xt = a(function({ children: e, className: t, ...n }, r) {
2252
2357
  ...n,
2253
2358
  children: e
2254
2359
  });
2255
- }), Zt = {
2360
+ }), sn = {
2256
2361
  layout: "relative inline-flex items-center justify-center border font-medium",
2257
2362
  interaction: "cursor-pointer transition-[background-color,border-color,color,transform,filter] duration-200",
2258
2363
  interactionAnimated: "active:translate-y-px active:scale-[0.99] active:brightness-[0.97] active:saturate-125",
2259
2364
  spacing: "gap-2",
2260
2365
  focus: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
2261
2366
  disabled: "disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-60"
2262
- }, Qt = {
2367
+ }, cn = {
2263
2368
  idle: "",
2264
2369
  loading: "text-current"
2265
- }, $t = {
2370
+ }, ln = {
2266
2371
  active: "brightness-[0.97] saturate-125",
2267
2372
  pressed: "translate-y-px scale-[0.99]"
2268
- }, en = {
2373
+ }, un = {
2269
2374
  default: {
2270
2375
  sm: "h-9 min-w-[5.5rem] px-3.5 text-sm",
2271
2376
  md: "h-11 min-w-[6.5rem] px-[1.125rem] text-sm",
@@ -2287,7 +2392,7 @@ var Xt = a(function({ children: e, className: t, ...n }, r) {
2287
2392
  xl: "h-14 min-w-[8.5rem] px-6 text-lg",
2288
2393
  "2xl": "h-16 min-w-[9.5rem] px-7 text-lg"
2289
2394
  }
2290
- }, tn = {
2395
+ }, dn = {
2291
2396
  light: {
2292
2397
  solid: {
2293
2398
  neutral: "border-neutral-700 bg-neutral-700 text-white hover:border-neutral-800 hover:bg-neutral-800 focus-visible:outline-neutral-700",
@@ -2337,14 +2442,14 @@ var Xt = a(function({ children: e, className: t, ...n }, r) {
2337
2442
  },
2338
2443
  outline: {
2339
2444
  neutral: "border-neutral-700 bg-neutral-900 text-neutral-200 hover:border-neutral-600 hover:bg-neutral-800 focus-visible:outline-neutral-500",
2340
- primary: "border-blue-500/40 bg-blue-500/10 text-blue-300 hover:border-blue-400/60 hover:bg-blue-500/15 focus-visible:outline-blue-300",
2341
- brand: "border-brand-500/40 bg-brand-500/10 text-brand-300 hover:border-brand-400/60 hover:bg-brand-500/15 focus-visible:outline-brand-300",
2342
- success: "border-emerald-500/40 bg-emerald-500/10 text-emerald-300 hover:border-emerald-400/60 hover:bg-emerald-500/15 focus-visible:outline-emerald-300",
2343
- danger: "border-red-500/40 bg-red-500/10 text-red-300 hover:border-red-400/60 hover:bg-red-500/15 focus-visible:outline-red-300",
2344
- warning: "border-amber-500/40 bg-amber-500/10 text-amber-300 hover:border-amber-400/60 hover:bg-amber-500/15 focus-visible:outline-amber-300",
2345
- info: "border-sky-500/40 bg-sky-500/10 text-sky-300 hover:border-sky-400/60 hover:bg-sky-500/15 focus-visible:outline-sky-300",
2346
- light: "border-slate-600 bg-slate-200/10 text-slate-100 hover:border-slate-500 hover:bg-slate-200/15 focus-visible:outline-slate-300",
2347
- dark: "border-slate-300/70 bg-slate-800/35 text-slate-50 hover:border-slate-200 hover:bg-slate-700/45 focus-visible:outline-slate-200"
2445
+ primary: "border-blue-800 bg-blue-950 text-blue-200 hover:border-blue-700 hover:bg-blue-900 focus-visible:outline-blue-300",
2446
+ brand: "border-brand-800 bg-brand-950 text-brand-200 hover:border-brand-700 hover:bg-brand-900 focus-visible:outline-brand-300",
2447
+ success: "border-emerald-800 bg-emerald-950 text-emerald-200 hover:border-emerald-700 hover:bg-emerald-900 focus-visible:outline-emerald-300",
2448
+ danger: "border-red-800 bg-red-950 text-red-200 hover:border-red-700 hover:bg-red-900 focus-visible:outline-red-300",
2449
+ warning: "border-amber-800 bg-amber-950 text-amber-200 hover:border-amber-700 hover:bg-amber-900 focus-visible:outline-amber-300",
2450
+ info: "border-sky-800 bg-sky-950 text-sky-200 hover:border-sky-700 hover:bg-sky-900 focus-visible:outline-sky-300",
2451
+ light: "border-slate-600 bg-slate-800 text-slate-100 hover:border-slate-500 hover:bg-slate-700 focus-visible:outline-slate-300",
2452
+ dark: "border-slate-600 bg-slate-800 text-slate-50 hover:border-slate-500 hover:bg-slate-700 focus-visible:outline-slate-200"
2348
2453
  },
2349
2454
  ghost: {
2350
2455
  neutral: "border-transparent bg-transparent text-neutral-300 hover:bg-neutral-800 hover:text-neutral-50 focus-visible:outline-neutral-500",
@@ -2359,7 +2464,7 @@ var Xt = a(function({ children: e, className: t, ...n }, r) {
2359
2464
  }
2360
2465
  }
2361
2466
  };
2362
- function nn() {
2467
+ function fn() {
2363
2468
  return /* @__PURE__ */ (0, b.jsxs)("svg", {
2364
2469
  "aria-hidden": "true",
2365
2470
  viewBox: "0 0 24 24",
@@ -2381,8 +2486,8 @@ function nn() {
2381
2486
  })]
2382
2487
  });
2383
2488
  }
2384
- var rn = a(function({ "aria-label": e, "aria-labelledby": t, active: n = !1, activeMotion: r = !0, children: i, className: a, disabled: o = !1, fullWidth: s = !1, loading: c = !1, loadingText: u, pressed: d = !1, spinner: f = !0, color: p = "primary", shape: m = "default", variant: h = "solid", size: g = "md", title: _, type: v = "button", ...y }, x) {
2385
- let C = S() === "dark" ? "dark" : "light", w = o || c, T = n || d, E = tn[C][h] ? h : "solid", D = c ? Qt.loading : Qt.idle, O = tn[C][E]?.[p] ? p : "primary", k = m === "square" || m === "pill" ? m : "default", A = g !== "sm" && k !== "square", j = i ?? u, M = u ?? i, N = en[k][g] ?? en[k].md ?? en.default.md, P = k === "pill" ? "rounded-full" : ct(g);
2489
+ var pn = a(function({ "aria-label": e, "aria-labelledby": t, active: n = !1, activeMotion: r = !0, children: i, className: a, disabled: o = !1, fullWidth: s = !1, loading: c = !1, loadingText: u, pressed: d = !1, spinner: f = !0, color: p = "primary", shape: m = "default", variant: h = "solid", size: g = "md", title: _, type: v = "button", ...y }, x) {
2490
+ let C = S() === "dark" ? "dark" : "light", w = o || c, T = n || d, E = dn[C][h] ? h : "solid", D = c ? cn.loading : cn.idle, O = dn[C][E]?.[p] ? p : "primary", k = m === "square" || m === "pill" ? m : "default", A = g !== "sm" && k !== "square", j = i ?? u, M = u ?? i, N = un[k][g] ?? un[k].md ?? un.default.md, P = k === "pill" ? "rounded-full" : ct(g);
2386
2491
  return l(() => {}, [
2387
2492
  e,
2388
2493
  t,
@@ -2399,7 +2504,7 @@ var rn = a(function({ "aria-label": e, "aria-labelledby": t, active: n = !1, act
2399
2504
  title: _,
2400
2505
  "data-active": T || void 0,
2401
2506
  "data-pressed": d || void 0,
2402
- className: K(Zt.layout, Zt.interaction, r && Zt.interactionAnimated, Zt.spacing, Zt.focus, Zt.disabled, s && "w-full", T && $t.active, d && $t.pressed, P, N, D, tn[C][E]?.[O] ?? tn[C].solid.primary, a),
2507
+ className: K(sn.layout, sn.interaction, r && sn.interactionAnimated, sn.spacing, sn.focus, sn.disabled, s && "w-full", T && ln.active, d && ln.pressed, P, N, D, dn[C][E]?.[O] ?? dn[C].solid.primary, a),
2403
2508
  ...y,
2404
2509
  children: [/* @__PURE__ */ (0, b.jsx)("span", {
2405
2510
  "aria-hidden": c || void 0,
@@ -2407,17 +2512,17 @@ var rn = a(function({ "aria-label": e, "aria-labelledby": t, active: n = !1, act
2407
2512
  children: j
2408
2513
  }), c ? /* @__PURE__ */ (0, b.jsxs)("span", {
2409
2514
  className: "absolute inset-0 inline-flex items-center justify-center gap-2",
2410
- children: [f ? /* @__PURE__ */ (0, b.jsx)(nn, {}) : null, A ? /* @__PURE__ */ (0, b.jsx)("span", { children: M }) : null]
2515
+ children: [f ? /* @__PURE__ */ (0, b.jsx)(fn, {}) : null, A ? /* @__PURE__ */ (0, b.jsx)("span", { children: M }) : null]
2411
2516
  }) : null]
2412
2517
  });
2413
- }), an = i(null);
2414
- function on(e) {
2415
- let t = c(an);
2518
+ }), mn = i(null);
2519
+ function hn(e) {
2520
+ let t = c(mn);
2416
2521
  return !t && e ? null : t;
2417
2522
  }
2418
2523
  //#endregion
2419
2524
  //#region src/lib/components/form-control/FormControl.jsx
2420
- var sn = {
2525
+ var gn = {
2421
2526
  light: {
2422
2527
  description: "text-slate-500",
2423
2528
  message: "text-red-600"
@@ -2427,10 +2532,10 @@ var sn = {
2427
2532
  message: "text-red-300"
2428
2533
  }
2429
2534
  };
2430
- function cn(e) {
2535
+ function _n(e) {
2431
2536
  return e === "dark" ? "dark" : "light";
2432
2537
  }
2433
- function ln({ children: e, className: t, disabled: n = !1, id: r, invalid: i = !1, required: a = !1, ...o }) {
2538
+ function vn({ children: e, className: t, disabled: n = !1, id: r, invalid: i = !1, required: a = !1, ...o }) {
2434
2539
  let s = u(), c = r ?? `quickit-field-${s}`, l = f(() => ({
2435
2540
  controlId: c,
2436
2541
  descriptionId: `${c}-description`,
@@ -2444,7 +2549,7 @@ function ln({ children: e, className: t, disabled: n = !1, id: r, invalid: i = !
2444
2549
  a,
2445
2550
  c
2446
2551
  ]);
2447
- return /* @__PURE__ */ (0, b.jsx)(an.Provider, {
2552
+ return /* @__PURE__ */ (0, b.jsx)(mn.Provider, {
2448
2553
  value: l,
2449
2554
  children: /* @__PURE__ */ (0, b.jsx)("div", {
2450
2555
  className: K("space-y-2", t),
@@ -2453,8 +2558,8 @@ function ln({ children: e, className: t, disabled: n = !1, id: r, invalid: i = !
2453
2558
  })
2454
2559
  });
2455
2560
  }
2456
- function un({ children: e, className: t, id: n, ...r }) {
2457
- let i = sn[cn(S())], a = on("FormDescription");
2561
+ function yn({ children: e, className: t, id: n, ...r }) {
2562
+ let i = gn[_n(S())], a = hn("FormDescription");
2458
2563
  return /* @__PURE__ */ (0, b.jsx)("p", {
2459
2564
  id: n ?? a?.descriptionId,
2460
2565
  className: K("text-sm leading-6", i.description, t),
@@ -2462,8 +2567,8 @@ function un({ children: e, className: t, id: n, ...r }) {
2462
2567
  children: e
2463
2568
  });
2464
2569
  }
2465
- function dn({ children: e, className: t, id: n, ...r }) {
2466
- let i = sn[cn(S())], a = on("FormMessage");
2570
+ function bn({ children: e, className: t, id: n, ...r }) {
2571
+ let i = gn[_n(S())], a = hn("FormMessage");
2467
2572
  return e ? /* @__PURE__ */ (0, b.jsx)("p", {
2468
2573
  id: n ?? a?.messageId,
2469
2574
  className: K("text-sm leading-6", i.message, t),
@@ -2473,12 +2578,12 @@ function dn({ children: e, className: t, id: n, ...r }) {
2473
2578
  }
2474
2579
  //#endregion
2475
2580
  //#region src/lib/components/form-control/useFormControl.js
2476
- function fn() {
2477
- return on();
2581
+ function xn() {
2582
+ return hn();
2478
2583
  }
2479
2584
  //#endregion
2480
2585
  //#region src/lib/components/label/Label.jsx
2481
- var pn = {
2586
+ var Sn = {
2482
2587
  light: {
2483
2588
  base: "text-slate-950",
2484
2589
  muted: "text-red-600"
@@ -2488,11 +2593,11 @@ var pn = {
2488
2593
  muted: "text-red-300"
2489
2594
  }
2490
2595
  };
2491
- function mn(e) {
2596
+ function Cn(e) {
2492
2597
  return e === "dark" ? "dark" : "light";
2493
2598
  }
2494
- var hn = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, requiredIndicator: i = !0, ...a }, o) {
2495
- let s = pn[mn(S())], c = fn(), l = i && c?.required && !r;
2599
+ var wn = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, requiredIndicator: i = !0, ...a }, o) {
2600
+ let s = Sn[Cn(S())], c = xn(), l = i && c?.required && !r;
2496
2601
  return /* @__PURE__ */ (0, b.jsxs)("label", {
2497
2602
  ref: o,
2498
2603
  htmlFor: n ?? c?.controlId,
@@ -2511,7 +2616,7 @@ var hn = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, r
2511
2616
  }) : null
2512
2617
  ]
2513
2618
  });
2514
- }), gn = {
2619
+ }), Tn = {
2515
2620
  sm: {
2516
2621
  root: "size-4",
2517
2622
  box: "size-4 rounded-[0.35rem]",
@@ -2522,7 +2627,7 @@ var hn = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, r
2522
2627
  box: "size-5 rounded-[0.45rem]",
2523
2628
  icon: "size-3.5"
2524
2629
  }
2525
- }, _n = {
2630
+ }, En = {
2526
2631
  light: {
2527
2632
  box: "border-slate-300 bg-white",
2528
2633
  focus: "peer-focus-visible:outline-slate-300",
@@ -2596,16 +2701,16 @@ var hn = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, r
2596
2701
  invalidIcon: "text-neutral-950"
2597
2702
  }
2598
2703
  };
2599
- function vn(e) {
2704
+ function Dn(e) {
2600
2705
  return e === "dark" ? "dark" : "light";
2601
2706
  }
2602
- var yn = a(function({ className: e, color: t = "neutral", containerClassName: n, disabled: r = !1, id: i, invalid: a = !1, label: o, labelClassName: s, required: c = !1, size: l = "md", ...d }, f) {
2603
- let p = u(), m = _n[vn(S())], h = fn(), g = a || h?.invalid, _ = r || h?.disabled, v = c || h?.required, y = m.colors[t] ? t : "neutral", x = gn[l] ? l : "md", C = i ?? h?.controlId ?? p, w = [
2707
+ var On = a(function({ className: e, color: t = "neutral", containerClassName: n, disabled: r = !1, id: i, invalid: a = !1, label: o, labelClassName: s, required: c = !1, size: l = "md", ...d }, f) {
2708
+ let p = u(), m = En[Dn(S())], h = xn(), g = a || h?.invalid, _ = r || h?.disabled, v = c || h?.required, y = m.colors[t] ? t : "neutral", x = Tn[l] ? l : "md", C = i ?? h?.controlId ?? p, w = [
2604
2709
  d["aria-describedby"],
2605
2710
  h?.descriptionId,
2606
2711
  g ? h?.messageId : null
2607
2712
  ].filter(Boolean).join(" ") || void 0, T = /* @__PURE__ */ (0, b.jsxs)("span", {
2608
- className: K("relative inline-flex shrink-0", gn[x].root, e),
2713
+ className: K("relative inline-flex shrink-0", Tn[x].root, e),
2609
2714
  children: [/* @__PURE__ */ (0, b.jsx)("input", {
2610
2715
  ref: f,
2611
2716
  type: "checkbox",
@@ -2618,10 +2723,10 @@ var yn = a(function({ className: e, color: t = "neutral", containerClassName: n,
2618
2723
  ...d
2619
2724
  }), /* @__PURE__ */ (0, b.jsx)("span", {
2620
2725
  "aria-hidden": "true",
2621
- className: K("pointer-events-none inline-flex items-center justify-center border outline-none transition-[background-color,border-color,opacity] duration-200 peer-disabled:opacity-60 peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-checked:[&_svg]:opacity-100", gn[x].box, m.box, m.focus, g ? m.invalid : m.colors[y].box),
2726
+ className: K("pointer-events-none inline-flex items-center justify-center border outline-none transition-[background-color,border-color,opacity] duration-200 peer-disabled:opacity-60 peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-checked:[&_svg]:opacity-100", Tn[x].box, m.box, m.focus, g ? m.invalid : m.colors[y].box),
2622
2727
  children: /* @__PURE__ */ (0, b.jsx)("svg", {
2623
2728
  viewBox: "0 0 16 16",
2624
- className: K("pointer-events-none opacity-0 transition-opacity duration-150", gn[x].icon, g ? m.invalidIcon : m.colors[y].icon),
2729
+ className: K("pointer-events-none opacity-0 transition-opacity duration-150", Tn[x].icon, g ? m.invalidIcon : m.colors[y].icon),
2625
2730
  fill: "none",
2626
2731
  children: /* @__PURE__ */ (0, b.jsx)("path", {
2627
2732
  d: "M4 8.5 6.5 11 12 5.5",
@@ -2635,7 +2740,7 @@ var yn = a(function({ className: e, color: t = "neutral", containerClassName: n,
2635
2740
  });
2636
2741
  return o ? /* @__PURE__ */ (0, b.jsxs)("span", {
2637
2742
  className: K("inline-flex items-center gap-3", n),
2638
- children: [T, /* @__PURE__ */ (0, b.jsx)(hn, {
2743
+ children: [T, /* @__PURE__ */ (0, b.jsx)(wn, {
2639
2744
  htmlFor: C,
2640
2745
  className: s,
2641
2746
  children: o
@@ -2644,39 +2749,39 @@ var yn = a(function({ className: e, color: t = "neutral", containerClassName: n,
2644
2749
  });
2645
2750
  //#endregion
2646
2751
  //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2647
- function bn() {
2752
+ function kn() {
2648
2753
  return typeof window < "u";
2649
2754
  }
2650
- function xn(e) {
2651
- return Cn(e) ? (e.nodeName || "").toLowerCase() : "#document";
2755
+ function An(e) {
2756
+ return Mn(e) ? (e.nodeName || "").toLowerCase() : "#document";
2652
2757
  }
2653
2758
  function q(e) {
2654
2759
  var t;
2655
2760
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2656
2761
  }
2657
- function Sn(e) {
2658
- return ((Cn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2762
+ function jn(e) {
2763
+ return ((Mn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2659
2764
  }
2660
- function Cn(e) {
2661
- return bn() ? e instanceof Node || e instanceof q(e).Node : !1;
2765
+ function Mn(e) {
2766
+ return kn() ? e instanceof Node || e instanceof q(e).Node : !1;
2662
2767
  }
2663
2768
  function J(e) {
2664
- return bn() ? e instanceof Element || e instanceof q(e).Element : !1;
2769
+ return kn() ? e instanceof Element || e instanceof q(e).Element : !1;
2665
2770
  }
2666
2771
  function Y(e) {
2667
- return bn() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
2772
+ return kn() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
2668
2773
  }
2669
- function wn(e) {
2670
- return !bn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
2774
+ function Nn(e) {
2775
+ return !kn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
2671
2776
  }
2672
- function Tn(e) {
2673
- let { overflow: t, overflowX: n, overflowY: r, display: i } = In(e);
2777
+ function Pn(e) {
2778
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = X(e);
2674
2779
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
2675
2780
  }
2676
- function En(e) {
2677
- return /^(table|td|th)$/.test(xn(e));
2781
+ function Fn(e) {
2782
+ return /^(table|td|th)$/.test(An(e));
2678
2783
  }
2679
- function Dn(e) {
2784
+ function In(e) {
2680
2785
  try {
2681
2786
  if (e.matches(":popover-open")) return !0;
2682
2787
  } catch {}
@@ -2686,30 +2791,30 @@ function Dn(e) {
2686
2791
  return !1;
2687
2792
  }
2688
2793
  }
2689
- var On = /transform|translate|scale|rotate|perspective|filter/, kn = /paint|layout|strict|content/, An = (e) => !!e && e !== "none", jn;
2690
- function Mn(e) {
2691
- let t = J(e) ? In(e) : e;
2692
- return An(t.transform) || An(t.translate) || An(t.scale) || An(t.rotate) || An(t.perspective) || !Pn() && (An(t.backdropFilter) || An(t.filter)) || On.test(t.willChange || "") || kn.test(t.contain || "");
2693
- }
2694
- function Nn(e) {
2695
- let t = Rn(e);
2696
- for (; Y(t) && !Fn(t);) {
2697
- if (Mn(t)) return t;
2698
- if (Dn(t)) return null;
2699
- t = Rn(t);
2794
+ var Ln = /transform|translate|scale|rotate|perspective|filter/, Rn = /paint|layout|strict|content/, zn = (e) => !!e && e !== "none", Bn;
2795
+ function Vn(e) {
2796
+ let t = J(e) ? X(e) : e;
2797
+ return zn(t.transform) || zn(t.translate) || zn(t.scale) || zn(t.rotate) || zn(t.perspective) || !Un() && (zn(t.backdropFilter) || zn(t.filter)) || Ln.test(t.willChange || "") || Rn.test(t.contain || "");
2798
+ }
2799
+ function Hn(e) {
2800
+ let t = Kn(e);
2801
+ for (; Y(t) && !Wn(t);) {
2802
+ if (Vn(t)) return t;
2803
+ if (In(t)) return null;
2804
+ t = Kn(t);
2700
2805
  }
2701
2806
  return null;
2702
2807
  }
2703
- function Pn() {
2704
- return jn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), jn;
2808
+ function Un() {
2809
+ return Bn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Bn;
2705
2810
  }
2706
- function Fn(e) {
2707
- return /^(html|body|#document)$/.test(xn(e));
2811
+ function Wn(e) {
2812
+ return /^(html|body|#document)$/.test(An(e));
2708
2813
  }
2709
- function In(e) {
2814
+ function X(e) {
2710
2815
  return q(e).getComputedStyle(e);
2711
2816
  }
2712
- function Ln(e) {
2817
+ function Gn(e) {
2713
2818
  return J(e) ? {
2714
2819
  scrollLeft: e.scrollLeft,
2715
2820
  scrollTop: e.scrollTop
@@ -2718,97 +2823,97 @@ function Ln(e) {
2718
2823
  scrollTop: e.scrollY
2719
2824
  };
2720
2825
  }
2721
- function Rn(e) {
2722
- if (xn(e) === "html") return e;
2723
- let t = e.assignedSlot || e.parentNode || wn(e) && e.host || Sn(e);
2724
- return wn(t) ? t.host : t;
2826
+ function Kn(e) {
2827
+ if (An(e) === "html") return e;
2828
+ let t = e.assignedSlot || e.parentNode || Nn(e) && e.host || jn(e);
2829
+ return Nn(t) ? t.host : t;
2725
2830
  }
2726
- function zn(e) {
2727
- let t = Rn(e);
2728
- return Fn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Tn(t) ? t : zn(t);
2831
+ function qn(e) {
2832
+ let t = Kn(e);
2833
+ return Wn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Pn(t) ? t : qn(t);
2729
2834
  }
2730
- function Bn(e, t, n) {
2835
+ function Jn(e, t, n) {
2731
2836
  t === void 0 && (t = []), n === void 0 && (n = !0);
2732
- let r = zn(e), i = r === e.ownerDocument?.body, a = q(r);
2837
+ let r = qn(e), i = r === e.ownerDocument?.body, a = q(r);
2733
2838
  if (i) {
2734
- let e = Vn(a);
2735
- return t.concat(a, a.visualViewport || [], Tn(r) ? r : [], e && n ? Bn(e) : []);
2736
- } else return t.concat(r, Bn(r, [], n));
2839
+ let e = Yn(a);
2840
+ return t.concat(a, a.visualViewport || [], Pn(r) ? r : [], e && n ? Jn(e) : []);
2841
+ } else return t.concat(r, Jn(r, [], n));
2737
2842
  }
2738
- function Vn(e) {
2843
+ function Yn(e) {
2739
2844
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2740
2845
  }
2741
2846
  //#endregion
2742
2847
  //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2743
- var Hn = Math.min, Un = Math.max, Wn = Math.round, Gn = Math.floor, Kn = (e) => ({
2848
+ var Xn = Math.min, Zn = Math.max, Qn = Math.round, $n = Math.floor, er = (e) => ({
2744
2849
  x: e,
2745
2850
  y: e
2746
- }), qn = {
2851
+ }), tr = {
2747
2852
  left: "right",
2748
2853
  right: "left",
2749
2854
  bottom: "top",
2750
2855
  top: "bottom"
2751
2856
  };
2752
- function Jn(e, t, n) {
2753
- return Un(e, Hn(t, n));
2857
+ function nr(e, t, n) {
2858
+ return Zn(e, Xn(t, n));
2754
2859
  }
2755
- function Yn(e, t) {
2860
+ function rr(e, t) {
2756
2861
  return typeof e == "function" ? e(t) : e;
2757
2862
  }
2758
- function Xn(e) {
2863
+ function ir(e) {
2759
2864
  return e.split("-")[0];
2760
2865
  }
2761
- function Zn(e) {
2866
+ function ar(e) {
2762
2867
  return e.split("-")[1];
2763
2868
  }
2764
- function Qn(e) {
2869
+ function or(e) {
2765
2870
  return e === "x" ? "y" : "x";
2766
2871
  }
2767
- function $n(e) {
2872
+ function sr(e) {
2768
2873
  return e === "y" ? "height" : "width";
2769
2874
  }
2770
- function er(e) {
2875
+ function cr(e) {
2771
2876
  let t = e[0];
2772
2877
  return t === "t" || t === "b" ? "y" : "x";
2773
2878
  }
2774
- function tr(e) {
2775
- return Qn(er(e));
2879
+ function lr(e) {
2880
+ return or(cr(e));
2776
2881
  }
2777
- function nr(e, t, n) {
2882
+ function ur(e, t, n) {
2778
2883
  n === void 0 && (n = !1);
2779
- let r = Zn(e), i = tr(e), a = $n(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
2780
- return t.reference[a] > t.floating[a] && (o = dr(o)), [o, dr(o)];
2884
+ let r = ar(e), i = lr(e), a = sr(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
2885
+ return t.reference[a] > t.floating[a] && (o = yr(o)), [o, yr(o)];
2781
2886
  }
2782
- function rr(e) {
2783
- let t = dr(e);
2887
+ function dr(e) {
2888
+ let t = yr(e);
2784
2889
  return [
2785
- ir(e),
2890
+ fr(e),
2786
2891
  t,
2787
- ir(t)
2892
+ fr(t)
2788
2893
  ];
2789
2894
  }
2790
- function ir(e) {
2895
+ function fr(e) {
2791
2896
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
2792
2897
  }
2793
- var ar = ["left", "right"], or = ["right", "left"], sr = ["top", "bottom"], cr = ["bottom", "top"];
2794
- function lr(e, t, n) {
2898
+ var pr = ["left", "right"], mr = ["right", "left"], hr = ["top", "bottom"], gr = ["bottom", "top"];
2899
+ function _r(e, t, n) {
2795
2900
  switch (e) {
2796
2901
  case "top":
2797
- case "bottom": return n ? t ? or : ar : t ? ar : or;
2902
+ case "bottom": return n ? t ? mr : pr : t ? pr : mr;
2798
2903
  case "left":
2799
- case "right": return t ? sr : cr;
2904
+ case "right": return t ? hr : gr;
2800
2905
  default: return [];
2801
2906
  }
2802
2907
  }
2803
- function ur(e, t, n, r) {
2804
- let i = Zn(e), a = lr(Xn(e), n === "start", r);
2805
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ir)))), a;
2908
+ function vr(e, t, n, r) {
2909
+ let i = ar(e), a = _r(ir(e), n === "start", r);
2910
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(fr)))), a;
2806
2911
  }
2807
- function dr(e) {
2808
- let t = Xn(e);
2809
- return qn[t] + e.slice(t.length);
2912
+ function yr(e) {
2913
+ let t = ir(e);
2914
+ return tr[t] + e.slice(t.length);
2810
2915
  }
2811
- function fr(e) {
2916
+ function br(e) {
2812
2917
  return {
2813
2918
  top: 0,
2814
2919
  right: 0,
@@ -2817,15 +2922,15 @@ function fr(e) {
2817
2922
  ...e
2818
2923
  };
2819
2924
  }
2820
- function pr(e) {
2925
+ function xr(e) {
2821
2926
  return typeof e == "number" ? {
2822
2927
  top: e,
2823
2928
  right: e,
2824
2929
  bottom: e,
2825
2930
  left: e
2826
- } : fr(e);
2931
+ } : br(e);
2827
2932
  }
2828
- function mr(e) {
2933
+ function Sr(e) {
2829
2934
  let { x: t, y: n, width: r, height: i } = e;
2830
2935
  return {
2831
2936
  width: r,
@@ -2838,7 +2943,7 @@ function mr(e) {
2838
2943
  y: n
2839
2944
  };
2840
2945
  }
2841
- var hr = /* @__PURE__ */ [
2946
+ var Cr = /* @__PURE__ */ [
2842
2947
  "input:not([inert]):not([inert] *)",
2843
2948
  "select:not([inert]):not([inert] *)",
2844
2949
  "textarea:not([inert]):not([inert] *)",
@@ -2850,35 +2955,35 @@ var hr = /* @__PURE__ */ [
2850
2955
  "[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)",
2851
2956
  "details>summary:first-of-type:not([inert]):not([inert] *)",
2852
2957
  "details:not([inert]):not([inert] *)"
2853
- ].join(","), gr = typeof Element > "u", _r = gr ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, vr = !gr && Element.prototype.getRootNode ? function(e) {
2958
+ ].join(","), wr = typeof Element > "u", Tr = wr ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Er = !wr && Element.prototype.getRootNode ? function(e) {
2854
2959
  return e?.getRootNode?.call(e);
2855
2960
  } : function(e) {
2856
2961
  return e?.ownerDocument;
2857
- }, yr = function(e, t) {
2962
+ }, Dr = function(e, t) {
2858
2963
  t === void 0 && (t = !0);
2859
2964
  var n = e?.getAttribute?.call(e, "inert");
2860
- return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : yr(e.parentNode));
2861
- }, br = function(e) {
2965
+ return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : Dr(e.parentNode));
2966
+ }, Or = function(e) {
2862
2967
  var t = e?.getAttribute?.call(e, "contenteditable");
2863
2968
  return t === "" || t === "true";
2864
- }, xr = function(e, t, n) {
2865
- if (yr(e)) return [];
2866
- var r = Array.prototype.slice.apply(e.querySelectorAll(hr));
2867
- return t && _r.call(e, hr) && r.unshift(e), r = r.filter(n), r;
2868
- }, Sr = function(e, t, n) {
2969
+ }, kr = function(e, t, n) {
2970
+ if (Dr(e)) return [];
2971
+ var r = Array.prototype.slice.apply(e.querySelectorAll(Cr));
2972
+ return t && Tr.call(e, Cr) && r.unshift(e), r = r.filter(n), r;
2973
+ }, Ar = function(e, t, n) {
2869
2974
  for (var r = [], i = Array.from(e); i.length;) {
2870
2975
  var a = i.shift();
2871
- if (!yr(a, !1)) if (a.tagName === "SLOT") {
2872
- var o = a.assignedElements(), s = Sr(o.length ? o : a.children, !0, n);
2976
+ if (!Dr(a, !1)) if (a.tagName === "SLOT") {
2977
+ var o = a.assignedElements(), s = Ar(o.length ? o : a.children, !0, n);
2873
2978
  n.flatten ? r.push.apply(r, s) : r.push({
2874
2979
  scopeParent: a,
2875
2980
  candidates: s
2876
2981
  });
2877
2982
  } else {
2878
- _r.call(a, hr) && n.filter(a) && (t || !e.includes(a)) && r.push(a);
2879
- var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !yr(c, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
2983
+ Tr.call(a, Cr) && n.filter(a) && (t || !e.includes(a)) && r.push(a);
2984
+ var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !Dr(c, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
2880
2985
  if (c && l) {
2881
- var u = Sr(c === !0 ? a.children : c.children, !0, n);
2986
+ var u = Ar(c === !0 ? a.children : c.children, !0, n);
2882
2987
  n.flatten ? r.push.apply(r, u) : r.push({
2883
2988
  scopeParent: a,
2884
2989
  candidates: u
@@ -2887,29 +2992,29 @@ var hr = /* @__PURE__ */ [
2887
2992
  }
2888
2993
  }
2889
2994
  return r;
2890
- }, Cr = function(e) {
2995
+ }, jr = function(e) {
2891
2996
  return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
2892
- }, wr = function(e) {
2997
+ }, Mr = function(e) {
2893
2998
  if (!e) throw Error("No node provided");
2894
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || br(e)) && !Cr(e) ? 0 : e.tabIndex;
2895
- }, Tr = function(e, t) {
2896
- var n = wr(e);
2897
- return n < 0 && t && !Cr(e) ? 0 : n;
2898
- }, Er = function(e, t) {
2999
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Or(e)) && !jr(e) ? 0 : e.tabIndex;
3000
+ }, Nr = function(e, t) {
3001
+ var n = Mr(e);
3002
+ return n < 0 && t && !jr(e) ? 0 : n;
3003
+ }, Pr = function(e, t) {
2899
3004
  return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
2900
- }, Dr = function(e) {
3005
+ }, Fr = function(e) {
2901
3006
  return e.tagName === "INPUT";
2902
- }, Or = function(e) {
2903
- return Dr(e) && e.type === "hidden";
2904
- }, kr = function(e) {
3007
+ }, Ir = function(e) {
3008
+ return Fr(e) && e.type === "hidden";
3009
+ }, Lr = function(e) {
2905
3010
  return e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(e) {
2906
3011
  return e.tagName === "SUMMARY";
2907
3012
  });
2908
- }, Ar = function(e, t) {
3013
+ }, Rr = function(e, t) {
2909
3014
  for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n];
2910
- }, jr = function(e) {
3015
+ }, zr = function(e) {
2911
3016
  if (!e.name) return !0;
2912
- var t = e.form || vr(e), n = function(e) {
3017
+ var t = e.form || Er(e), n = function(e) {
2913
3018
  return t.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
2914
3019
  }, r;
2915
3020
  if (typeof window < "u" && window.CSS !== void 0 && typeof window.CSS.escape == "function") r = n(window.CSS.escape(e.name));
@@ -2918,26 +3023,26 @@ var hr = /* @__PURE__ */ [
2918
3023
  } catch (e) {
2919
3024
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message), !1;
2920
3025
  }
2921
- var i = Ar(r, e.form);
3026
+ var i = Rr(r, e.form);
2922
3027
  return !i || i === e;
2923
- }, Mr = function(e) {
2924
- return Dr(e) && e.type === "radio";
2925
- }, Nr = function(e) {
2926
- return Mr(e) && !jr(e);
2927
- }, Pr = function(e) {
2928
- var t = e && vr(e), n = t?.host, r = !1;
3028
+ }, Br = function(e) {
3029
+ return Fr(e) && e.type === "radio";
3030
+ }, Vr = function(e) {
3031
+ return Br(e) && !zr(e);
3032
+ }, Hr = function(e) {
3033
+ var t = e && Er(e), n = t?.host, r = !1;
2929
3034
  if (t && t !== e) {
2930
3035
  var i, a, o;
2931
3036
  for (r = !!((i = n) != null && (a = i.ownerDocument) != null && a.contains(n) || e != null && (o = e.ownerDocument) != null && o.contains(e)); !r && n;) {
2932
3037
  var s, c;
2933
- t = vr(n), n = t?.host, r = !!((s = n) != null && (c = s.ownerDocument) != null && c.contains(n));
3038
+ t = Er(n), n = t?.host, r = !!((s = n) != null && (c = s.ownerDocument) != null && c.contains(n));
2934
3039
  }
2935
3040
  }
2936
3041
  return r;
2937
- }, Fr = function(e) {
3042
+ }, Ur = function(e) {
2938
3043
  var t = e.getBoundingClientRect(), n = t.width, r = t.height;
2939
3044
  return n === 0 && r === 0;
2940
- }, Ir = function(e, t) {
3045
+ }, Wr = function(e, t) {
2941
3046
  var n = t.displayCheck, r = t.getShadowRoot;
2942
3047
  if (n === "full-native" && "checkVisibility" in e) return !e.checkVisibility({
2943
3048
  checkOpacity: !1,
@@ -2947,44 +3052,44 @@ var hr = /* @__PURE__ */ [
2947
3052
  checkVisibilityCSS: !0
2948
3053
  });
2949
3054
  if (getComputedStyle(e).visibility === "hidden") return !0;
2950
- var i = _r.call(e, "details>summary:first-of-type") ? e.parentElement : e;
2951
- if (_r.call(i, "details:not([open]) *")) return !0;
3055
+ var i = Tr.call(e, "details>summary:first-of-type") ? e.parentElement : e;
3056
+ if (Tr.call(i, "details:not([open]) *")) return !0;
2952
3057
  if (!n || n === "full" || n === "full-native" || n === "legacy-full") {
2953
3058
  if (typeof r == "function") {
2954
3059
  for (var a = e; e;) {
2955
- var o = e.parentElement, s = vr(e);
2956
- if (o && !o.shadowRoot && r(o) === !0) return Fr(e);
3060
+ var o = e.parentElement, s = Er(e);
3061
+ if (o && !o.shadowRoot && r(o) === !0) return Ur(e);
2957
3062
  e = e.assignedSlot ? e.assignedSlot : !o && s !== e.ownerDocument ? s.host : o;
2958
3063
  }
2959
3064
  e = a;
2960
3065
  }
2961
- if (Pr(e)) return !e.getClientRects().length;
3066
+ if (Hr(e)) return !e.getClientRects().length;
2962
3067
  if (n !== "legacy-full") return !0;
2963
- } else if (n === "non-zero-area") return Fr(e);
3068
+ } else if (n === "non-zero-area") return Ur(e);
2964
3069
  return !1;
2965
- }, Lr = function(e) {
3070
+ }, Gr = function(e) {
2966
3071
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t;) {
2967
3072
  if (t.tagName === "FIELDSET" && t.disabled) {
2968
3073
  for (var n = 0; n < t.children.length; n++) {
2969
3074
  var r = t.children.item(n);
2970
- if (r.tagName === "LEGEND") return _r.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
3075
+ if (r.tagName === "LEGEND") return Tr.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
2971
3076
  }
2972
3077
  return !0;
2973
3078
  }
2974
3079
  t = t.parentElement;
2975
3080
  }
2976
3081
  return !1;
2977
- }, Rr = function(e, t) {
2978
- return !(t.disabled || Or(t) || Ir(t, e) || kr(t) || Lr(t));
2979
- }, zr = function(e, t) {
2980
- return !(Nr(t) || wr(t) < 0 || !Rr(e, t));
2981
- }, Br = function(e) {
3082
+ }, Kr = function(e, t) {
3083
+ return !(t.disabled || Ir(t) || Wr(t, e) || Lr(t) || Gr(t));
3084
+ }, qr = function(e, t) {
3085
+ return !(Vr(t) || Mr(t) < 0 || !Kr(e, t));
3086
+ }, Jr = function(e) {
2982
3087
  var t = parseInt(e.getAttribute("tabindex"), 10);
2983
3088
  return !!(isNaN(t) || t >= 0);
2984
- }, Vr = function(e) {
3089
+ }, Yr = function(e) {
2985
3090
  var t = [], n = [];
2986
3091
  return e.forEach(function(e, r) {
2987
- var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = Tr(a, i), s = i ? Vr(e.candidates) : a;
3092
+ var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = Nr(a, i), s = i ? Yr(e.candidates) : a;
2988
3093
  o === 0 ? i ? t.push.apply(t, s) : t.push(a) : n.push({
2989
3094
  documentOrder: r,
2990
3095
  tabIndex: o,
@@ -2992,45 +3097,45 @@ var hr = /* @__PURE__ */ [
2992
3097
  isScope: i,
2993
3098
  content: s
2994
3099
  });
2995
- }), n.sort(Er).reduce(function(e, t) {
3100
+ }), n.sort(Pr).reduce(function(e, t) {
2996
3101
  return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e;
2997
3102
  }, []).concat(t);
2998
- }, Hr = function(e, t) {
2999
- return t ||= {}, Vr(t.getShadowRoot ? Sr([e], t.includeContainer, {
3000
- filter: zr.bind(null, t),
3103
+ }, Xr = function(e, t) {
3104
+ return t ||= {}, Yr(t.getShadowRoot ? Ar([e], t.includeContainer, {
3105
+ filter: qr.bind(null, t),
3001
3106
  flatten: !1,
3002
3107
  getShadowRoot: t.getShadowRoot,
3003
- shadowRootFilter: Br
3004
- }) : xr(e, t.includeContainer, zr.bind(null, t)));
3108
+ shadowRootFilter: Jr
3109
+ }) : kr(e, t.includeContainer, qr.bind(null, t)));
3005
3110
  };
3006
3111
  //#endregion
3007
3112
  //#region node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs
3008
- function Ur() {
3113
+ function Zr() {
3009
3114
  let e = navigator.userAgentData;
3010
3115
  return e != null && e.platform ? e.platform : navigator.platform;
3011
3116
  }
3012
- function Wr() {
3117
+ function Qr() {
3013
3118
  let e = navigator.userAgentData;
3014
3119
  return e && Array.isArray(e.brands) ? e.brands.map((e) => {
3015
3120
  let { brand: t, version: n } = e;
3016
3121
  return t + "/" + n;
3017
3122
  }).join(" ") : navigator.userAgent;
3018
3123
  }
3019
- function Gr() {
3124
+ function $r() {
3020
3125
  return /apple/i.test(navigator.vendor);
3021
3126
  }
3022
- function Kr() {
3127
+ function ei() {
3023
3128
  let e = /android/i;
3024
- return e.test(Ur()) || e.test(Wr());
3129
+ return e.test(Zr()) || e.test(Qr());
3025
3130
  }
3026
- function qr() {
3027
- return Ur().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
3131
+ function ti() {
3132
+ return Zr().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
3028
3133
  }
3029
- function Jr() {
3030
- return Wr().includes("jsdom/");
3134
+ function ni() {
3135
+ return Qr().includes("jsdom/");
3031
3136
  }
3032
- var Yr = "data-floating-ui-focusable", Xr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", Zr = "ArrowLeft", Qr = "ArrowRight", $r = "ArrowUp", ei = "ArrowDown";
3033
- function ti(e) {
3137
+ var ri = "data-floating-ui-focusable", ii = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", ai = "ArrowLeft", oi = "ArrowRight", si = "ArrowUp", ci = "ArrowDown";
3138
+ function li(e) {
3034
3139
  let t = e.activeElement;
3035
3140
  for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null;) {
3036
3141
  var n;
@@ -3038,11 +3143,11 @@ function ti(e) {
3038
3143
  }
3039
3144
  return t;
3040
3145
  }
3041
- function ni(e, t) {
3146
+ function ui(e, t) {
3042
3147
  if (!e || !t) return !1;
3043
3148
  let n = t.getRootNode == null ? void 0 : t.getRootNode();
3044
3149
  if (e.contains(t)) return !0;
3045
- if (n && wn(n)) {
3150
+ if (n && Nn(n)) {
3046
3151
  let n = t;
3047
3152
  for (; n;) {
3048
3153
  if (e === n) return !0;
@@ -3051,93 +3156,93 @@ function ni(e, t) {
3051
3156
  }
3052
3157
  return !1;
3053
3158
  }
3054
- function ri(e) {
3159
+ function di(e) {
3055
3160
  return "composedPath" in e ? e.composedPath()[0] : e.target;
3056
3161
  }
3057
- function ii(e, t) {
3162
+ function fi(e, t) {
3058
3163
  if (t == null) return !1;
3059
3164
  if ("composedPath" in e) return e.composedPath().includes(t);
3060
3165
  let n = e;
3061
3166
  return n.target != null && t.contains(n.target);
3062
3167
  }
3063
- function ai(e) {
3168
+ function pi(e) {
3064
3169
  return e.matches("html,body");
3065
3170
  }
3066
- function oi(e) {
3171
+ function mi(e) {
3067
3172
  return e?.ownerDocument || document;
3068
3173
  }
3069
- function si(e) {
3070
- return Y(e) && e.matches(Xr);
3174
+ function hi(e) {
3175
+ return Y(e) && e.matches(ii);
3071
3176
  }
3072
- function ci(e) {
3073
- return e ? e.getAttribute("role") === "combobox" && si(e) : !1;
3177
+ function gi(e) {
3178
+ return e ? e.getAttribute("role") === "combobox" && hi(e) : !1;
3074
3179
  }
3075
- function li(e) {
3076
- if (!e || Jr()) return !0;
3180
+ function _i(e) {
3181
+ if (!e || ni()) return !0;
3077
3182
  try {
3078
3183
  return e.matches(":focus-visible");
3079
3184
  } catch {
3080
3185
  return !0;
3081
3186
  }
3082
3187
  }
3083
- function ui(e) {
3084
- return e ? e.hasAttribute(Yr) ? e : e.querySelector("[" + Yr + "]") || e : null;
3188
+ function vi(e) {
3189
+ return e ? e.hasAttribute(ri) ? e : e.querySelector("[" + ri + "]") || e : null;
3085
3190
  }
3086
- function di(e, t, n) {
3087
- return n === void 0 && (n = !0), e.filter((e) => e.parentId === t && (!n || e.context?.open)).flatMap((t) => [t, ...di(e, t.id, n)]);
3191
+ function yi(e, t, n) {
3192
+ return n === void 0 && (n = !0), e.filter((e) => e.parentId === t && (!n || e.context?.open)).flatMap((t) => [t, ...yi(e, t.id, n)]);
3088
3193
  }
3089
- function fi(e, t) {
3194
+ function bi(e, t) {
3090
3195
  let n, r = -1;
3091
3196
  function i(t, a) {
3092
- a > r && (n = t, r = a), di(e, t).forEach((e) => {
3197
+ a > r && (n = t, r = a), yi(e, t).forEach((e) => {
3093
3198
  i(e.id, a + 1);
3094
3199
  });
3095
3200
  }
3096
3201
  return i(t, 0), e.find((e) => e.id === n);
3097
3202
  }
3098
- function pi(e) {
3203
+ function xi(e) {
3099
3204
  e.preventDefault(), e.stopPropagation();
3100
3205
  }
3101
- function mi(e) {
3206
+ function Si(e) {
3102
3207
  return "nativeEvent" in e;
3103
3208
  }
3104
- function hi(e) {
3105
- return e.mozInputSource === 0 && e.isTrusted ? !0 : Kr() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
3209
+ function Ci(e) {
3210
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : ei() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
3106
3211
  }
3107
- function gi(e) {
3108
- return Jr() ? !1 : !Kr() && e.width === 0 && e.height === 0 || Kr() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
3212
+ function wi(e) {
3213
+ return ni() ? !1 : !ei() && e.width === 0 && e.height === 0 || ei() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
3109
3214
  }
3110
- function _i(e, t) {
3215
+ function Ti(e, t) {
3111
3216
  let n = ["mouse", "pen"];
3112
3217
  return t || n.push("", void 0), n.includes(e);
3113
3218
  }
3114
- var X = typeof document < "u" ? d : function() {}, vi = { ...e };
3115
- function yi(t) {
3219
+ var Z = typeof document < "u" ? d : function() {}, Ei = { ...e };
3220
+ function Di(t) {
3116
3221
  let n = e.useRef(t);
3117
- return X(() => {
3222
+ return Z(() => {
3118
3223
  n.current = t;
3119
3224
  }), n;
3120
3225
  }
3121
- var bi = vi.useInsertionEffect || ((e) => e());
3122
- function Z(t) {
3226
+ var Oi = Ei.useInsertionEffect || ((e) => e());
3227
+ function ki(t) {
3123
3228
  let n = e.useRef(() => {});
3124
- return bi(() => {
3229
+ return Oi(() => {
3125
3230
  n.current = t;
3126
3231
  }), e.useCallback(function() {
3127
3232
  var e = [...arguments];
3128
3233
  return n.current == null ? void 0 : n.current(...e);
3129
3234
  }, []);
3130
3235
  }
3131
- function xi(e, t, n) {
3236
+ function Ai(e, t, n) {
3132
3237
  return Math.floor(e / t) !== n;
3133
3238
  }
3134
- function Si(e, t) {
3239
+ function ji(e, t) {
3135
3240
  return t < 0 || t >= e.current.length;
3136
3241
  }
3137
- function Ci(e, t) {
3242
+ function Mi(e, t) {
3138
3243
  return Q(e, { disabledIndices: t });
3139
3244
  }
3140
- function wi(e, t) {
3245
+ function Ni(e, t) {
3141
3246
  return Q(e, {
3142
3247
  decrement: !0,
3143
3248
  startingIndex: e.current.length,
@@ -3148,13 +3253,13 @@ function Q(e, t) {
3148
3253
  let { startingIndex: n = -1, decrement: r = !1, disabledIndices: i, amount: a = 1 } = t === void 0 ? {} : t, o = n;
3149
3254
  do
3150
3255
  o += r ? -a : a;
3151
- while (o >= 0 && o <= e.current.length - 1 && ki(e, o, i));
3256
+ while (o >= 0 && o <= e.current.length - 1 && Ri(e, o, i));
3152
3257
  return o;
3153
3258
  }
3154
- function Ti(e, t) {
3259
+ function Pi(e, t) {
3155
3260
  let { event: n, orientation: r, loop: i, rtl: a, cols: o, disabledIndices: s, minIndex: c, maxIndex: l, prevIndex: u, stopEvent: d = !1 } = t, f = u;
3156
- if (n.key === $r) {
3157
- if (d && pi(n), u === -1) f = l;
3261
+ if (n.key === si) {
3262
+ if (d && xi(n), u === -1) f = l;
3158
3263
  else if (f = Q(e, {
3159
3264
  startingIndex: f,
3160
3265
  amount: o,
@@ -3164,9 +3269,9 @@ function Ti(e, t) {
3164
3269
  let e = u % o, t = l % o, n = l - (t - e);
3165
3270
  f = t === e ? l : t > e ? n : n - o;
3166
3271
  }
3167
- Si(e, f) && (f = u);
3272
+ ji(e, f) && (f = u);
3168
3273
  }
3169
- if (n.key === ei && (d && pi(n), u === -1 ? f = c : (f = Q(e, {
3274
+ if (n.key === ci && (d && xi(n), u === -1 ? f = c : (f = Q(e, {
3170
3275
  startingIndex: u,
3171
3276
  amount: o,
3172
3277
  disabledIndices: s
@@ -3174,18 +3279,18 @@ function Ti(e, t) {
3174
3279
  startingIndex: u % o - o,
3175
3280
  amount: o,
3176
3281
  disabledIndices: s
3177
- }))), Si(e, f) && (f = u)), r === "both") {
3178
- let t = Gn(u / o);
3179
- n.key === (a ? Zr : Qr) && (d && pi(n), u % o === o - 1 ? i && (f = Q(e, {
3282
+ }))), ji(e, f) && (f = u)), r === "both") {
3283
+ let t = $n(u / o);
3284
+ n.key === (a ? ai : oi) && (d && xi(n), u % o === o - 1 ? i && (f = Q(e, {
3180
3285
  startingIndex: u - u % o - 1,
3181
3286
  disabledIndices: s
3182
3287
  })) : (f = Q(e, {
3183
3288
  startingIndex: u,
3184
3289
  disabledIndices: s
3185
- }), i && xi(f, o, t) && (f = Q(e, {
3290
+ }), i && Ai(f, o, t) && (f = Q(e, {
3186
3291
  startingIndex: u - u % o - 1,
3187
3292
  disabledIndices: s
3188
- }))), xi(f, o, t) && (f = u)), n.key === (a ? Qr : Zr) && (d && pi(n), u % o === 0 ? i && (f = Q(e, {
3293
+ }))), Ai(f, o, t) && (f = u)), n.key === (a ? oi : ai) && (d && xi(n), u % o === 0 ? i && (f = Q(e, {
3189
3294
  startingIndex: u + (o - u % o),
3190
3295
  decrement: !0,
3191
3296
  disabledIndices: s
@@ -3193,20 +3298,20 @@ function Ti(e, t) {
3193
3298
  startingIndex: u,
3194
3299
  decrement: !0,
3195
3300
  disabledIndices: s
3196
- }), i && xi(f, o, t) && (f = Q(e, {
3301
+ }), i && Ai(f, o, t) && (f = Q(e, {
3197
3302
  startingIndex: u + (o - u % o),
3198
3303
  decrement: !0,
3199
3304
  disabledIndices: s
3200
- }))), xi(f, o, t) && (f = u));
3201
- let r = Gn(l / o) === t;
3202
- Si(e, f) && (f = i && r ? n.key === (a ? Qr : Zr) ? l : Q(e, {
3305
+ }))), Ai(f, o, t) && (f = u));
3306
+ let r = $n(l / o) === t;
3307
+ ji(e, f) && (f = i && r ? n.key === (a ? oi : ai) ? l : Q(e, {
3203
3308
  startingIndex: u - u % o - 1,
3204
3309
  disabledIndices: s
3205
3310
  }) : u);
3206
3311
  }
3207
3312
  return f;
3208
3313
  }
3209
- function Ei(e, t, n) {
3314
+ function Fi(e, t, n) {
3210
3315
  let r = [], i = 0;
3211
3316
  return e.forEach((e, a) => {
3212
3317
  let { width: o, height: s } = e, c = !1;
@@ -3219,7 +3324,7 @@ function Ei(e, t, n) {
3219
3324
  }
3220
3325
  }), [...r];
3221
3326
  }
3222
- function Di(e, t, n, r, i) {
3327
+ function Ii(e, t, n, r, i) {
3223
3328
  if (e === -1) return -1;
3224
3329
  let a = n.indexOf(e), o = t[e];
3225
3330
  switch (i) {
@@ -3229,41 +3334,41 @@ function Di(e, t, n, r, i) {
3229
3334
  case "br": return n.lastIndexOf(e);
3230
3335
  }
3231
3336
  }
3232
- function Oi(e, t) {
3337
+ function Li(e, t) {
3233
3338
  return t.flatMap((t, n) => e.includes(t) ? [n] : []);
3234
3339
  }
3235
- function ki(e, t, n) {
3340
+ function Ri(e, t, n) {
3236
3341
  if (typeof n == "function") return n(t);
3237
3342
  if (n) return n.includes(t);
3238
3343
  let r = e.current[t];
3239
3344
  return r == null || r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true";
3240
3345
  }
3241
- var Ai = () => ({
3346
+ var zi = () => ({
3242
3347
  getShadowRoot: !0,
3243
3348
  displayCheck: typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
3244
3349
  });
3245
- function ji(e, t) {
3246
- let n = Hr(e, Ai()), r = n.length;
3350
+ function Bi(e, t) {
3351
+ let n = Xr(e, zi()), r = n.length;
3247
3352
  if (r === 0) return;
3248
- let i = ti(oi(e)), a = n.indexOf(i);
3353
+ let i = li(mi(e)), a = n.indexOf(i);
3249
3354
  return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
3250
3355
  }
3251
- function Mi(e) {
3252
- return ji(oi(e).body, 1) || e;
3356
+ function Vi(e) {
3357
+ return Bi(mi(e).body, 1) || e;
3253
3358
  }
3254
- function Ni(e) {
3255
- return ji(oi(e).body, -1) || e;
3359
+ function Hi(e) {
3360
+ return Bi(mi(e).body, -1) || e;
3256
3361
  }
3257
- function Pi(e, t) {
3362
+ function Ui(e, t) {
3258
3363
  let n = t || e.currentTarget, r = e.relatedTarget;
3259
- return !r || !ni(n, r);
3364
+ return !r || !ui(n, r);
3260
3365
  }
3261
- function Fi(e) {
3262
- Hr(e, Ai()).forEach((e) => {
3366
+ function Wi(e) {
3367
+ Xr(e, zi()).forEach((e) => {
3263
3368
  e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
3264
3369
  });
3265
3370
  }
3266
- function Ii(e) {
3371
+ function Gi(e) {
3267
3372
  e.querySelectorAll("[data-tabindex]").forEach((e) => {
3268
3373
  let t = e.dataset.tabindex;
3269
3374
  delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
@@ -3271,8 +3376,8 @@ function Ii(e) {
3271
3376
  }
3272
3377
  //#endregion
3273
3378
  //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
3274
- function Li(e, t, n) {
3275
- let { reference: r, floating: i } = e, a = er(t), o = tr(t), s = $n(o), c = Xn(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
3379
+ function Ki(e, t, n) {
3380
+ let { reference: r, floating: i } = e, a = cr(t), o = lr(t), s = sr(o), c = ir(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
3276
3381
  switch (c) {
3277
3382
  case "top":
3278
3383
  p = {
@@ -3303,7 +3408,7 @@ function Li(e, t, n) {
3303
3408
  y: r.y
3304
3409
  };
3305
3410
  }
3306
- switch (Zn(t)) {
3411
+ switch (ar(t)) {
3307
3412
  case "start":
3308
3413
  p[o] -= f * (n && l ? -1 : 1);
3309
3414
  break;
@@ -3313,9 +3418,9 @@ function Li(e, t, n) {
3313
3418
  }
3314
3419
  return p;
3315
3420
  }
3316
- async function Ri(e, t) {
3421
+ async function qi(e, t) {
3317
3422
  t === void 0 && (t = {});
3318
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Yn(t, e), p = pr(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = mr(await i.getClippingRect({
3423
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = rr(t, e), p = xr(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Sr(await i.getClippingRect({
3319
3424
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
3320
3425
  boundary: c,
3321
3426
  rootBoundary: l,
@@ -3328,7 +3433,7 @@ async function Ri(e, t) {
3328
3433
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
3329
3434
  x: 1,
3330
3435
  y: 1
3331
- }, y = mr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3436
+ }, y = Sr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3332
3437
  elements: o,
3333
3438
  rect: g,
3334
3439
  offsetParent: _,
@@ -3341,15 +3446,15 @@ async function Ri(e, t) {
3341
3446
  right: (y.right - h.right + p.right) / v.x
3342
3447
  };
3343
3448
  }
3344
- var zi = 50, Bi = async (e, t, n) => {
3449
+ var Ji = 50, Yi = async (e, t, n) => {
3345
3450
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
3346
3451
  ...o,
3347
- detectOverflow: Ri
3452
+ detectOverflow: qi
3348
3453
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
3349
3454
  reference: e,
3350
3455
  floating: t,
3351
3456
  strategy: i
3352
- }), { x: u, y: d } = Li(l, r, c), f = r, p = 0, m = {};
3457
+ }), { x: u, y: d } = Ki(l, r, c), f = r, p = 0, m = {};
3353
3458
  for (let n = 0; n < a.length; n++) {
3354
3459
  let h = a[n];
3355
3460
  if (!h) continue;
@@ -3370,11 +3475,11 @@ var zi = 50, Bi = async (e, t, n) => {
3370
3475
  u = v ?? u, d = y ?? d, m[g] = {
3371
3476
  ...m[g],
3372
3477
  ...b
3373
- }, x && p < zi && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
3478
+ }, x && p < Ji && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
3374
3479
  reference: e,
3375
3480
  floating: t,
3376
3481
  strategy: i
3377
- }) : x.rects), {x: u, y: d} = Li(l, f, c)), n = -1);
3482
+ }) : x.rects), {x: u, y: d} = Ki(l, f, c)), n = -1);
3378
3483
  }
3379
3484
  return {
3380
3485
  x: u,
@@ -3383,18 +3488,18 @@ var zi = 50, Bi = async (e, t, n) => {
3383
3488
  strategy: i,
3384
3489
  middlewareData: m
3385
3490
  };
3386
- }, Vi = (e) => ({
3491
+ }, Xi = (e) => ({
3387
3492
  name: "arrow",
3388
3493
  options: e,
3389
3494
  async fn(t) {
3390
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Yn(e, t) || {};
3495
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = rr(e, t) || {};
3391
3496
  if (l == null) return {};
3392
- let d = pr(u), f = {
3497
+ let d = xr(u), f = {
3393
3498
  x: n,
3394
3499
  y: r
3395
- }, p = tr(i), m = $n(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
3500
+ }, p = lr(i), m = sr(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
3396
3501
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
3397
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Hn(d[_], T), D = Hn(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Jn(O, A, k), M = !c.arrow && Zn(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
3502
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Xn(d[_], T), D = Xn(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = nr(O, A, k), M = !c.arrow && ar(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
3398
3503
  return {
3399
3504
  [p]: f[p] + N,
3400
3505
  data: {
@@ -3405,19 +3510,19 @@ var zi = 50, Bi = async (e, t, n) => {
3405
3510
  reset: M
3406
3511
  };
3407
3512
  }
3408
- }), Hi = function(e) {
3513
+ }), Zi = function(e) {
3409
3514
  return e === void 0 && (e = {}), {
3410
3515
  name: "flip",
3411
3516
  options: e,
3412
3517
  async fn(t) {
3413
3518
  var n;
3414
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Yn(e, t);
3519
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = rr(e, t);
3415
3520
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
3416
- let g = Xn(r), _ = er(o), v = Xn(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [dr(o)] : rr(o)), x = p !== "none";
3417
- !d && x && b.push(...ur(o, m, p, y));
3521
+ let g = ir(r), _ = cr(o), v = ir(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [yr(o)] : dr(o)), x = p !== "none";
3522
+ !d && x && b.push(...vr(o, m, p, y));
3418
3523
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
3419
3524
  if (l && w.push(C[g]), u) {
3420
- let e = nr(r, a, y);
3525
+ let e = ur(r, a, y);
3421
3526
  w.push(C[e[0]], C[e[1]]);
3422
3527
  }
3423
3528
  if (T = [...T, {
@@ -3425,7 +3530,7 @@ var zi = 50, Bi = async (e, t, n) => {
3425
3530
  overflows: w
3426
3531
  }], !w.every((e) => e <= 0)) {
3427
3532
  let e = (i.flip?.index || 0) + 1, t = S[e];
3428
- if (t && (!(u === "alignment" && _ !== er(t)) || T.every((e) => er(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
3533
+ if (t && (!(u === "alignment" && _ !== cr(t)) || T.every((e) => cr(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
3429
3534
  data: {
3430
3535
  index: e,
3431
3536
  overflows: T
@@ -3437,7 +3542,7 @@ var zi = 50, Bi = async (e, t, n) => {
3437
3542
  case "bestFit": {
3438
3543
  let e = T.filter((e) => {
3439
3544
  if (x) {
3440
- let t = er(e.placement);
3545
+ let t = cr(e.placement);
3441
3546
  return t === _ || t === "y";
3442
3547
  }
3443
3548
  return !0;
@@ -3454,9 +3559,9 @@ var zi = 50, Bi = async (e, t, n) => {
3454
3559
  return {};
3455
3560
  }
3456
3561
  };
3457
- }, Ui = /* @__PURE__ */ new Set(["left", "top"]);
3458
- async function Wi(e, t) {
3459
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Xn(n), s = Zn(n), c = er(n) === "y", l = Ui.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Yn(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
3562
+ }, Qi = /* @__PURE__ */ new Set(["left", "top"]);
3563
+ async function $i(e, t) {
3564
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ir(n), s = ar(n), c = cr(n) === "y", l = Qi.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = rr(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
3460
3565
  mainAxis: d,
3461
3566
  crossAxis: 0,
3462
3567
  alignmentAxis: null
@@ -3473,13 +3578,13 @@ async function Wi(e, t) {
3473
3578
  y: p * u
3474
3579
  };
3475
3580
  }
3476
- var Gi = function(e) {
3581
+ var ea = function(e) {
3477
3582
  return e === void 0 && (e = 0), {
3478
3583
  name: "offset",
3479
3584
  options: e,
3480
3585
  async fn(t) {
3481
3586
  var n;
3482
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Wi(t, e);
3587
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await $i(t, e);
3483
3588
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
3484
3589
  x: r + s.x,
3485
3590
  y: i + s.y,
@@ -3490,7 +3595,7 @@ var Gi = function(e) {
3490
3595
  };
3491
3596
  }
3492
3597
  };
3493
- }, Ki = function(e) {
3598
+ }, ta = function(e) {
3494
3599
  return e === void 0 && (e = {}), {
3495
3600
  name: "shift",
3496
3601
  options: e,
@@ -3501,17 +3606,17 @@ var Gi = function(e) {
3501
3606
  x: t,
3502
3607
  y: n
3503
3608
  };
3504
- } }, ...l } = Yn(e, t), u = {
3609
+ } }, ...l } = rr(e, t), u = {
3505
3610
  x: n,
3506
3611
  y: r
3507
- }, d = await a.detectOverflow(t, l), f = er(Xn(i)), p = Qn(f), m = u[p], h = u[f];
3612
+ }, d = await a.detectOverflow(t, l), f = cr(ir(i)), p = or(f), m = u[p], h = u[f];
3508
3613
  if (o) {
3509
3614
  let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
3510
- m = Jn(n, m, r);
3615
+ m = nr(n, m, r);
3511
3616
  }
3512
3617
  if (s) {
3513
3618
  let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
3514
- h = Jn(n, h, r);
3619
+ h = nr(n, h, r);
3515
3620
  }
3516
3621
  let g = c.fn({
3517
3622
  ...t,
@@ -3531,18 +3636,18 @@ var Gi = function(e) {
3531
3636
  };
3532
3637
  }
3533
3638
  };
3534
- }, qi = function(e) {
3639
+ }, na = function(e) {
3535
3640
  return e === void 0 && (e = {}), {
3536
3641
  name: "size",
3537
3642
  options: e,
3538
3643
  async fn(t) {
3539
3644
  var n, r;
3540
- let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = Yn(e, t), u = await o.detectOverflow(t, l), d = Xn(i), f = Zn(i), p = er(i) === "y", { width: m, height: h } = a.floating, g, _;
3645
+ let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = rr(e, t), u = await o.detectOverflow(t, l), d = ir(i), f = ar(i), p = cr(i) === "y", { width: m, height: h } = a.floating, g, _;
3541
3646
  d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
3542
- let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Hn(h - u[g], v), x = Hn(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
3647
+ let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Xn(h - u[g], v), x = Xn(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
3543
3648
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
3544
- let e = Un(u.left, 0), t = Un(u.right, 0), n = Un(u.top, 0), r = Un(u.bottom, 0);
3545
- p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : Un(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : Un(u.top, u.bottom));
3649
+ let e = Zn(u.left, 0), t = Zn(u.right, 0), n = Zn(u.top, 0), r = Zn(u.bottom, 0);
3650
+ p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : Zn(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : Zn(u.top, u.bottom));
3546
3651
  }
3547
3652
  await c({
3548
3653
  ...t,
@@ -3556,79 +3661,79 @@ var Gi = function(e) {
3556
3661
  };
3557
3662
  //#endregion
3558
3663
  //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
3559
- function Ji(e) {
3560
- let t = In(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Wn(n) !== a || Wn(r) !== o;
3664
+ function ra(e) {
3665
+ let t = X(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Qn(n) !== a || Qn(r) !== o;
3561
3666
  return s && (n = a, r = o), {
3562
3667
  width: n,
3563
3668
  height: r,
3564
3669
  $: s
3565
3670
  };
3566
3671
  }
3567
- function Yi(e) {
3672
+ function ia(e) {
3568
3673
  return J(e) ? e : e.contextElement;
3569
3674
  }
3570
- function Xi(e) {
3571
- let t = Yi(e);
3572
- if (!Y(t)) return Kn(1);
3573
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ji(t), o = (a ? Wn(n.width) : n.width) / r, s = (a ? Wn(n.height) : n.height) / i;
3675
+ function aa(e) {
3676
+ let t = ia(e);
3677
+ if (!Y(t)) return er(1);
3678
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ra(t), o = (a ? Qn(n.width) : n.width) / r, s = (a ? Qn(n.height) : n.height) / i;
3574
3679
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3575
3680
  x: o,
3576
3681
  y: s
3577
3682
  };
3578
3683
  }
3579
- var Zi = /* @__PURE__ */ Kn(0);
3580
- function Qi(e) {
3684
+ var oa = /* @__PURE__ */ er(0);
3685
+ function sa(e) {
3581
3686
  let t = q(e);
3582
- return !Pn() || !t.visualViewport ? Zi : {
3687
+ return !Un() || !t.visualViewport ? oa : {
3583
3688
  x: t.visualViewport.offsetLeft,
3584
3689
  y: t.visualViewport.offsetTop
3585
3690
  };
3586
3691
  }
3587
- function $i(e, t, n) {
3692
+ function ca(e, t, n) {
3588
3693
  return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
3589
3694
  }
3590
- function ea(e, t, n, r) {
3695
+ function la(e, t, n, r) {
3591
3696
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3592
- let i = e.getBoundingClientRect(), a = Yi(e), o = Kn(1);
3593
- t && (r ? J(r) && (o = Xi(r)) : o = Xi(e));
3594
- let s = $i(a, n, r) ? Qi(a) : Kn(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
3697
+ let i = e.getBoundingClientRect(), a = ia(e), o = er(1);
3698
+ t && (r ? J(r) && (o = aa(r)) : o = aa(e));
3699
+ let s = ca(a, n, r) ? sa(a) : er(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
3595
3700
  if (a) {
3596
- let e = q(a), t = r && J(r) ? q(r) : r, n = e, i = Vn(n);
3701
+ let e = q(a), t = r && J(r) ? q(r) : r, n = e, i = Yn(n);
3597
3702
  for (; i && r && t !== n;) {
3598
- let e = Xi(i), t = i.getBoundingClientRect(), r = In(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
3599
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = q(i), i = Vn(n);
3703
+ let e = aa(i), t = i.getBoundingClientRect(), r = X(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
3704
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = q(i), i = Yn(n);
3600
3705
  }
3601
3706
  }
3602
- return mr({
3707
+ return Sr({
3603
3708
  width: u,
3604
3709
  height: d,
3605
3710
  x: c,
3606
3711
  y: l
3607
3712
  });
3608
3713
  }
3609
- function ta(e, t) {
3610
- let n = Ln(e).scrollLeft;
3611
- return t ? t.left + n : ea(Sn(e)).left + n;
3714
+ function ua(e, t) {
3715
+ let n = Gn(e).scrollLeft;
3716
+ return t ? t.left + n : la(jn(e)).left + n;
3612
3717
  }
3613
- function na(e, t) {
3718
+ function da(e, t) {
3614
3719
  let n = e.getBoundingClientRect();
3615
3720
  return {
3616
- x: n.left + t.scrollLeft - ta(e, n),
3721
+ x: n.left + t.scrollLeft - ua(e, n),
3617
3722
  y: n.top + t.scrollTop
3618
3723
  };
3619
3724
  }
3620
- function ra(e) {
3621
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Sn(r), s = t ? Dn(t.floating) : !1;
3725
+ function fa(e) {
3726
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = jn(r), s = t ? In(t.floating) : !1;
3622
3727
  if (r === o || s && a) return n;
3623
3728
  let c = {
3624
3729
  scrollLeft: 0,
3625
3730
  scrollTop: 0
3626
- }, l = Kn(1), u = Kn(0), d = Y(r);
3627
- if ((d || !d && !a) && ((xn(r) !== "body" || Tn(o)) && (c = Ln(r)), d)) {
3628
- let e = ea(r);
3629
- l = Xi(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
3731
+ }, l = er(1), u = er(0), d = Y(r);
3732
+ if ((d || !d && !a) && ((An(r) !== "body" || Pn(o)) && (c = Gn(r)), d)) {
3733
+ let e = la(r);
3734
+ l = aa(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
3630
3735
  }
3631
- let f = o && !d && !a ? na(o, c) : Kn(0);
3736
+ let f = o && !d && !a ? da(o, c) : er(0);
3632
3737
  return {
3633
3738
  width: n.width * l.x,
3634
3739
  height: n.height * l.y,
@@ -3636,31 +3741,31 @@ function ra(e) {
3636
3741
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
3637
3742
  };
3638
3743
  }
3639
- function ia(e) {
3744
+ function pa(e) {
3640
3745
  return Array.from(e.getClientRects());
3641
3746
  }
3642
- function aa(e) {
3643
- let t = Sn(e), n = Ln(e), r = e.ownerDocument.body, i = Un(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Un(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ta(e), s = -n.scrollTop;
3644
- return In(r).direction === "rtl" && (o += Un(t.clientWidth, r.clientWidth) - i), {
3747
+ function ma(e) {
3748
+ let t = jn(e), n = Gn(e), r = e.ownerDocument.body, i = Zn(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Zn(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ua(e), s = -n.scrollTop;
3749
+ return X(r).direction === "rtl" && (o += Zn(t.clientWidth, r.clientWidth) - i), {
3645
3750
  width: i,
3646
3751
  height: a,
3647
3752
  x: o,
3648
3753
  y: s
3649
3754
  };
3650
3755
  }
3651
- var oa = 25;
3652
- function sa(e, t) {
3653
- let n = q(e), r = Sn(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
3756
+ var ha = 25;
3757
+ function ga(e, t) {
3758
+ let n = q(e), r = jn(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
3654
3759
  if (i) {
3655
3760
  a = i.width, o = i.height;
3656
- let e = Pn();
3761
+ let e = Un();
3657
3762
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
3658
3763
  }
3659
- let l = ta(r);
3764
+ let l = ua(r);
3660
3765
  if (l <= 0) {
3661
3766
  let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
3662
- o <= oa && (a -= o);
3663
- } else l <= oa && (a += l);
3767
+ o <= ha && (a -= o);
3768
+ } else l <= ha && (a += l);
3664
3769
  return {
3665
3770
  width: a,
3666
3771
  height: o,
@@ -3668,8 +3773,8 @@ function sa(e, t) {
3668
3773
  y: c
3669
3774
  };
3670
3775
  }
3671
- function ca(e, t) {
3672
- let n = ea(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? Xi(e) : Kn(1);
3776
+ function _a(e, t) {
3777
+ let n = la(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? aa(e) : er(1);
3673
3778
  return {
3674
3779
  width: e.clientWidth * a.x,
3675
3780
  height: e.clientHeight * a.y,
@@ -3677,13 +3782,13 @@ function ca(e, t) {
3677
3782
  y: r * a.y
3678
3783
  };
3679
3784
  }
3680
- function la(e, t, n) {
3785
+ function va(e, t, n) {
3681
3786
  let r;
3682
- if (t === "viewport") r = sa(e, n);
3683
- else if (t === "document") r = aa(Sn(e));
3684
- else if (J(t)) r = ca(t, n);
3787
+ if (t === "viewport") r = ga(e, n);
3788
+ else if (t === "document") r = ma(jn(e));
3789
+ else if (J(t)) r = _a(t, n);
3685
3790
  else {
3686
- let n = Qi(e);
3791
+ let n = sa(e);
3687
3792
  r = {
3688
3793
  x: t.x - n.x,
3689
3794
  y: t.y - n.y,
@@ -3691,27 +3796,27 @@ function la(e, t, n) {
3691
3796
  height: t.height
3692
3797
  };
3693
3798
  }
3694
- return mr(r);
3799
+ return Sr(r);
3695
3800
  }
3696
- function ua(e, t) {
3697
- let n = Rn(e);
3698
- return n === t || !J(n) || Fn(n) ? !1 : In(n).position === "fixed" || ua(n, t);
3801
+ function ya(e, t) {
3802
+ let n = Kn(e);
3803
+ return n === t || !J(n) || Wn(n) ? !1 : X(n).position === "fixed" || ya(n, t);
3699
3804
  }
3700
- function da(e, t) {
3805
+ function ba(e, t) {
3701
3806
  let n = t.get(e);
3702
3807
  if (n) return n;
3703
- let r = Bn(e, [], !1).filter((e) => J(e) && xn(e) !== "body"), i = null, a = In(e).position === "fixed", o = a ? Rn(e) : e;
3704
- for (; J(o) && !Fn(o);) {
3705
- let t = In(o), n = Mn(o);
3706
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Tn(o) && !n && ua(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Rn(o);
3808
+ let r = Jn(e, [], !1).filter((e) => J(e) && An(e) !== "body"), i = null, a = X(e).position === "fixed", o = a ? Kn(e) : e;
3809
+ for (; J(o) && !Wn(o);) {
3810
+ let t = X(o), n = Vn(o);
3811
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Pn(o) && !n && ya(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Kn(o);
3707
3812
  }
3708
3813
  return t.set(e, r), r;
3709
3814
  }
3710
- function fa(e) {
3711
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Dn(t) ? [] : da(t, this._c) : [].concat(n), r], o = la(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
3815
+ function xa(e) {
3816
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? In(t) ? [] : ba(t, this._c) : [].concat(n), r], o = va(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
3712
3817
  for (let e = 1; e < a.length; e++) {
3713
- let n = la(t, a[e], i);
3714
- s = Un(n.top, s), c = Hn(n.right, c), l = Hn(n.bottom, l), u = Un(n.left, u);
3818
+ let n = va(t, a[e], i);
3819
+ s = Zn(n.top, s), c = Xn(n.right, c), l = Xn(n.bottom, l), u = Zn(n.left, u);
3715
3820
  }
3716
3821
  return {
3717
3822
  width: c - u,
@@ -3720,27 +3825,27 @@ function fa(e) {
3720
3825
  y: s
3721
3826
  };
3722
3827
  }
3723
- function pa(e) {
3724
- let { width: t, height: n } = Ji(e);
3828
+ function Sa(e) {
3829
+ let { width: t, height: n } = ra(e);
3725
3830
  return {
3726
3831
  width: t,
3727
3832
  height: n
3728
3833
  };
3729
3834
  }
3730
- function ma(e, t, n) {
3731
- let r = Y(t), i = Sn(t), a = n === "fixed", o = ea(e, !0, a, t), s = {
3835
+ function Ca(e, t, n) {
3836
+ let r = Y(t), i = jn(t), a = n === "fixed", o = la(e, !0, a, t), s = {
3732
3837
  scrollLeft: 0,
3733
3838
  scrollTop: 0
3734
- }, c = Kn(0);
3839
+ }, c = er(0);
3735
3840
  function l() {
3736
- c.x = ta(i);
3841
+ c.x = ua(i);
3737
3842
  }
3738
- if (r || !r && !a) if ((xn(t) !== "body" || Tn(i)) && (s = Ln(t)), r) {
3739
- let e = ea(t, !0, a, t);
3843
+ if (r || !r && !a) if ((An(t) !== "body" || Pn(i)) && (s = Gn(t)), r) {
3844
+ let e = la(t, !0, a, t);
3740
3845
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
3741
3846
  } else i && l();
3742
3847
  a && !r && i && l();
3743
- let u = i && !r && !a ? na(i, s) : Kn(0);
3848
+ let u = i && !r && !a ? da(i, s) : er(0);
3744
3849
  return {
3745
3850
  x: o.left + s.scrollLeft - c.x - u.x,
3746
3851
  y: o.top + s.scrollTop - c.y - u.y,
@@ -3748,34 +3853,34 @@ function ma(e, t, n) {
3748
3853
  height: o.height
3749
3854
  };
3750
3855
  }
3751
- function ha(e) {
3752
- return In(e).position === "static";
3856
+ function wa(e) {
3857
+ return X(e).position === "static";
3753
3858
  }
3754
- function ga(e, t) {
3755
- if (!Y(e) || In(e).position === "fixed") return null;
3859
+ function Ta(e, t) {
3860
+ if (!Y(e) || X(e).position === "fixed") return null;
3756
3861
  if (t) return t(e);
3757
3862
  let n = e.offsetParent;
3758
- return Sn(e) === n && (n = n.ownerDocument.body), n;
3863
+ return jn(e) === n && (n = n.ownerDocument.body), n;
3759
3864
  }
3760
- function _a(e, t) {
3865
+ function Ea(e, t) {
3761
3866
  let n = q(e);
3762
- if (Dn(e)) return n;
3867
+ if (In(e)) return n;
3763
3868
  if (!Y(e)) {
3764
- let t = Rn(e);
3765
- for (; t && !Fn(t);) {
3766
- if (J(t) && !ha(t)) return t;
3767
- t = Rn(t);
3869
+ let t = Kn(e);
3870
+ for (; t && !Wn(t);) {
3871
+ if (J(t) && !wa(t)) return t;
3872
+ t = Kn(t);
3768
3873
  }
3769
3874
  return n;
3770
3875
  }
3771
- let r = ga(e, t);
3772
- for (; r && En(r) && ha(r);) r = ga(r, t);
3773
- return r && Fn(r) && ha(r) && !Mn(r) ? n : r || Nn(e) || n;
3876
+ let r = Ta(e, t);
3877
+ for (; r && Fn(r) && wa(r);) r = Ta(r, t);
3878
+ return r && Wn(r) && wa(r) && !Vn(r) ? n : r || Hn(e) || n;
3774
3879
  }
3775
- var va = async function(e) {
3776
- let t = this.getOffsetParent || _a, n = this.getDimensions, r = await n(e.floating);
3880
+ var Da = async function(e) {
3881
+ let t = this.getOffsetParent || Ea, n = this.getDimensions, r = await n(e.floating);
3777
3882
  return {
3778
- reference: ma(e.reference, await t(e.floating), e.strategy),
3883
+ reference: Ca(e.reference, await t(e.floating), e.strategy),
3779
3884
  floating: {
3780
3885
  x: 0,
3781
3886
  y: 0,
@@ -3784,26 +3889,26 @@ var va = async function(e) {
3784
3889
  }
3785
3890
  };
3786
3891
  };
3787
- function ya(e) {
3788
- return In(e).direction === "rtl";
3789
- }
3790
- var ba = {
3791
- convertOffsetParentRelativeRectToViewportRelativeRect: ra,
3792
- getDocumentElement: Sn,
3793
- getClippingRect: fa,
3794
- getOffsetParent: _a,
3795
- getElementRects: va,
3796
- getClientRects: ia,
3797
- getDimensions: pa,
3798
- getScale: Xi,
3892
+ function Oa(e) {
3893
+ return X(e).direction === "rtl";
3894
+ }
3895
+ var ka = {
3896
+ convertOffsetParentRelativeRectToViewportRelativeRect: fa,
3897
+ getDocumentElement: jn,
3898
+ getClippingRect: xa,
3899
+ getOffsetParent: Ea,
3900
+ getElementRects: Da,
3901
+ getClientRects: pa,
3902
+ getDimensions: Sa,
3903
+ getScale: aa,
3799
3904
  isElement: J,
3800
- isRTL: ya
3905
+ isRTL: Oa
3801
3906
  };
3802
- function xa(e, t) {
3907
+ function Aa(e, t) {
3803
3908
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
3804
3909
  }
3805
- function Sa(e, t) {
3806
- let n = null, r, i = Sn(e);
3910
+ function ja(e, t) {
3911
+ let n = null, r, i = jn(e);
3807
3912
  function a() {
3808
3913
  var e;
3809
3914
  clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
@@ -3812,9 +3917,9 @@ function Sa(e, t) {
3812
3917
  s === void 0 && (s = !1), c === void 0 && (c = 1), a();
3813
3918
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
3814
3919
  if (s || t(), !f || !p) return;
3815
- let m = Gn(d), h = Gn(i.clientWidth - (u + f)), g = Gn(i.clientHeight - (d + p)), _ = Gn(u), v = {
3920
+ let m = $n(d), h = $n(i.clientWidth - (u + f)), g = $n(i.clientHeight - (d + p)), _ = $n(u), v = {
3816
3921
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
3817
- threshold: Un(0, Hn(1, c)) || 1
3922
+ threshold: Zn(0, Xn(1, c)) || 1
3818
3923
  }, y = !0;
3819
3924
  function b(t) {
3820
3925
  let n = t[0].intersectionRatio;
@@ -3824,7 +3929,7 @@ function Sa(e, t) {
3824
3929
  o(!1, 1e-7);
3825
3930
  }, 1e3);
3826
3931
  }
3827
- n === 1 && !xa(l, e.getBoundingClientRect()) && o(), y = !1;
3932
+ n === 1 && !Aa(l, e.getBoundingClientRect()) && o(), y = !1;
3828
3933
  }
3829
3934
  try {
3830
3935
  n = new IntersectionObserver(b, {
@@ -3838,13 +3943,13 @@ function Sa(e, t) {
3838
3943
  }
3839
3944
  return o(!0), a;
3840
3945
  }
3841
- function Ca(e, t, n, r) {
3946
+ function Ma(e, t, n, r) {
3842
3947
  r === void 0 && (r = {});
3843
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Yi(e), u = i || a ? [...l ? Bn(l) : [], ...t ? Bn(t) : []] : [];
3948
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ia(e), u = i || a ? [...l ? Jn(l) : [], ...t ? Jn(t) : []] : [];
3844
3949
  u.forEach((e) => {
3845
3950
  i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
3846
3951
  });
3847
- let d = l && s ? Sa(l, n) : null, f = -1, p = null;
3952
+ let d = l && s ? ja(l, n) : null, f = -1, p = null;
3848
3953
  o && (p = new ResizeObserver((e) => {
3849
3954
  let [r] = e;
3850
3955
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -3852,11 +3957,11 @@ function Ca(e, t, n, r) {
3852
3957
  (e = p) == null || e.observe(t);
3853
3958
  })), n();
3854
3959
  }), l && !c && p.observe(l), t && p.observe(t));
3855
- let m, h = c ? ea(e) : null;
3960
+ let m, h = c ? la(e) : null;
3856
3961
  c && g();
3857
3962
  function g() {
3858
- let t = ea(e);
3859
- h && !xa(h, t) && n(), h = t, m = requestAnimationFrame(g);
3963
+ let t = la(e);
3964
+ h && !Aa(h, t) && n(), h = t, m = requestAnimationFrame(g);
3860
3965
  }
3861
3966
  return n(), () => {
3862
3967
  var e;
@@ -3865,20 +3970,20 @@ function Ca(e, t, n, r) {
3865
3970
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
3866
3971
  };
3867
3972
  }
3868
- var wa = Gi, Ta = Ki, Ea = Hi, Da = qi, Oa = Vi, ka = (e, t, n) => {
3973
+ var Na = ea, Pa = ta, Fa = Zi, Ia = na, La = Xi, Ra = (e, t, n) => {
3869
3974
  let r = /* @__PURE__ */ new Map(), i = {
3870
- platform: ba,
3975
+ platform: ka,
3871
3976
  ...n
3872
3977
  }, a = {
3873
3978
  ...i.platform,
3874
3979
  _c: r
3875
3980
  };
3876
- return Bi(e, t, {
3981
+ return Yi(e, t, {
3877
3982
  ...i,
3878
3983
  platform: a
3879
3984
  });
3880
- }, Aa = typeof document < "u" ? d : function() {};
3881
- function ja(e, t) {
3985
+ }, za = typeof document < "u" ? d : function() {};
3986
+ function Ba(e, t) {
3882
3987
  if (e === t) return !0;
3883
3988
  if (typeof e != typeof t) return !1;
3884
3989
  if (typeof e == "function" && e.toString() === t.toString()) return !0;
@@ -3886,33 +3991,33 @@ function ja(e, t) {
3886
3991
  if (e && t && typeof e == "object") {
3887
3992
  if (Array.isArray(e)) {
3888
3993
  if (n = e.length, n !== t.length) return !1;
3889
- for (r = n; r-- !== 0;) if (!ja(e[r], t[r])) return !1;
3994
+ for (r = n; r-- !== 0;) if (!Ba(e[r], t[r])) return !1;
3890
3995
  return !0;
3891
3996
  }
3892
3997
  if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
3893
3998
  for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
3894
3999
  for (r = n; r-- !== 0;) {
3895
4000
  let n = i[r];
3896
- if (!(n === "_owner" && e.$$typeof) && !ja(e[n], t[n])) return !1;
4001
+ if (!(n === "_owner" && e.$$typeof) && !Ba(e[n], t[n])) return !1;
3897
4002
  }
3898
4003
  return !0;
3899
4004
  }
3900
4005
  return e !== e && t !== t;
3901
4006
  }
3902
- function Ma(e) {
4007
+ function Va(e) {
3903
4008
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3904
4009
  }
3905
- function Na(e, t) {
3906
- let n = Ma(e);
4010
+ function Ha(e, t) {
4011
+ let n = Va(e);
3907
4012
  return Math.round(t * n) / n;
3908
4013
  }
3909
- function Pa(t) {
4014
+ function Ua(t) {
3910
4015
  let n = e.useRef(t);
3911
- return Aa(() => {
4016
+ return za(() => {
3912
4017
  n.current = t;
3913
4018
  }), n;
3914
4019
  }
3915
- function Fa(t) {
4020
+ function Wa(t) {
3916
4021
  t === void 0 && (t = {});
3917
4022
  let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [d, f] = e.useState({
3918
4023
  x: 0,
@@ -3922,24 +4027,24 @@ function Fa(t) {
3922
4027
  middlewareData: {},
3923
4028
  isPositioned: !1
3924
4029
  }), [p, m] = e.useState(i);
3925
- ja(p, i) || m(i);
4030
+ Ba(p, i) || m(i);
3926
4031
  let [g, _] = e.useState(null), [v, y] = e.useState(null), b = e.useCallback((e) => {
3927
4032
  e !== w.current && (w.current = e, _(e));
3928
4033
  }, []), x = e.useCallback((e) => {
3929
4034
  e !== T.current && (T.current = e, y(e));
3930
- }, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Pa(l), k = Pa(a), A = Pa(u), j = e.useCallback(() => {
4035
+ }, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Ua(l), k = Ua(a), A = Ua(u), j = e.useCallback(() => {
3931
4036
  if (!w.current || !T.current) return;
3932
4037
  let e = {
3933
4038
  placement: n,
3934
4039
  strategy: r,
3935
4040
  middleware: p
3936
4041
  };
3937
- k.current && (e.platform = k.current), ka(w.current, T.current, e).then((e) => {
4042
+ k.current && (e.platform = k.current), Ra(w.current, T.current, e).then((e) => {
3938
4043
  let t = {
3939
4044
  ...e,
3940
4045
  isPositioned: A.current !== !1
3941
4046
  };
3942
- M.current && !ja(E.current, t) && (E.current = t, h.flushSync(() => {
4047
+ M.current && !Ba(E.current, t) && (E.current = t, h.flushSync(() => {
3943
4048
  f(t);
3944
4049
  }));
3945
4050
  });
@@ -3950,16 +4055,16 @@ function Fa(t) {
3950
4055
  k,
3951
4056
  A
3952
4057
  ]);
3953
- Aa(() => {
4058
+ za(() => {
3954
4059
  u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
3955
4060
  ...e,
3956
4061
  isPositioned: !1
3957
4062
  })));
3958
4063
  }, [u]);
3959
4064
  let M = e.useRef(!1);
3960
- Aa(() => (M.current = !0, () => {
4065
+ za(() => (M.current = !0, () => {
3961
4066
  M.current = !1;
3962
- }), []), Aa(() => {
4067
+ }), []), za(() => {
3963
4068
  if (S && (w.current = S), C && (T.current = C), S && C) {
3964
4069
  if (O.current) return O.current(S, C, j);
3965
4070
  j();
@@ -3986,11 +4091,11 @@ function Fa(t) {
3986
4091
  top: 0
3987
4092
  };
3988
4093
  if (!P.floating) return e;
3989
- let t = Na(P.floating, d.x), n = Na(P.floating, d.y);
4094
+ let t = Ha(P.floating, d.x), n = Ha(P.floating, d.y);
3990
4095
  return c ? {
3991
4096
  ...e,
3992
4097
  transform: "translate(" + t + "px, " + n + "px)",
3993
- ...Ma(P.floating) >= 1.5 && { willChange: "transform" }
4098
+ ...Va(P.floating) >= 1.5 && { willChange: "transform" }
3994
4099
  } : {
3995
4100
  position: r,
3996
4101
  left: t,
@@ -4017,7 +4122,7 @@ function Fa(t) {
4017
4122
  F
4018
4123
  ]);
4019
4124
  }
4020
- var Ia = (e) => {
4125
+ var Ga = (e) => {
4021
4126
  function t(e) {
4022
4127
  return {}.hasOwnProperty.call(e, "current");
4023
4128
  }
@@ -4026,65 +4131,65 @@ var Ia = (e) => {
4026
4131
  options: e,
4027
4132
  fn(n) {
4028
4133
  let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
4029
- return r && t(r) ? r.current == null ? {} : Oa({
4134
+ return r && t(r) ? r.current == null ? {} : La({
4030
4135
  element: r.current,
4031
4136
  padding: i
4032
- }).fn(n) : r ? Oa({
4137
+ }).fn(n) : r ? La({
4033
4138
  element: r,
4034
4139
  padding: i
4035
4140
  }).fn(n) : {};
4036
4141
  }
4037
4142
  };
4038
- }, La = (e, t) => {
4039
- let n = wa(e);
4143
+ }, Ka = (e, t) => {
4144
+ let n = Na(e);
4040
4145
  return {
4041
4146
  name: n.name,
4042
4147
  fn: n.fn,
4043
4148
  options: [e, t]
4044
4149
  };
4045
- }, Ra = (e, t) => {
4046
- let n = Ta(e);
4150
+ }, qa = (e, t) => {
4151
+ let n = Pa(e);
4047
4152
  return {
4048
4153
  name: n.name,
4049
4154
  fn: n.fn,
4050
4155
  options: [e, t]
4051
4156
  };
4052
- }, za = (e, t) => {
4053
- let n = Ea(e);
4157
+ }, Ja = (e, t) => {
4158
+ let n = Fa(e);
4054
4159
  return {
4055
4160
  name: n.name,
4056
4161
  fn: n.fn,
4057
4162
  options: [e, t]
4058
4163
  };
4059
- }, Ba = (e, t) => {
4060
- let n = Da(e);
4164
+ }, Ya = (e, t) => {
4165
+ let n = Ia(e);
4061
4166
  return {
4062
4167
  name: n.name,
4063
4168
  fn: n.fn,
4064
4169
  options: [e, t]
4065
4170
  };
4066
- }, Va = (e, t) => {
4067
- let n = Ia(e);
4171
+ }, Xa = (e, t) => {
4172
+ let n = Ga(e);
4068
4173
  return {
4069
4174
  name: n.name,
4070
4175
  fn: n.fn,
4071
4176
  options: [e, t]
4072
4177
  };
4073
- }, Ha = "data-floating-ui-focusable", Ua = "active", Wa = "selected", Ga = "ArrowLeft", Ka = "ArrowRight", qa = "ArrowUp", Ja = "ArrowDown", Ya = [Ga, Ka], Xa = [qa, Ja];
4074
- [...Ya, ...Xa];
4075
- var Za = { ...e }, Qa = !1, $a = 0, eo = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + $a++;
4076
- function to() {
4077
- let [t, n] = e.useState(() => Qa ? eo() : void 0);
4078
- return X(() => {
4079
- t ?? n(eo());
4178
+ }, Za = "data-floating-ui-focusable", Qa = "active", $a = "selected", eo = "ArrowLeft", to = "ArrowRight", no = "ArrowUp", ro = "ArrowDown", io = [eo, to], ao = [no, ro];
4179
+ [...io, ...ao];
4180
+ var oo = { ...e }, so = !1, co = 0, lo = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + co++;
4181
+ function uo() {
4182
+ let [t, n] = e.useState(() => so ? lo() : void 0);
4183
+ return Z(() => {
4184
+ t ?? n(lo());
4080
4185
  }, []), e.useEffect(() => {
4081
- Qa = !0;
4186
+ so = !0;
4082
4187
  }, []), t;
4083
4188
  }
4084
- var no = Za.useId || to, ro = /* @__PURE__ */ e.forwardRef(function(t, n) {
4085
- let { context: { placement: r, elements: { floating: i }, middlewareData: { arrow: a, shift: o } }, width: s = 14, height: c = 7, tipRadius: l = 0, strokeWidth: u = 0, staticOffset: d, stroke: f, d: p, style: { transform: m, ...h } = {}, ...g } = t, _ = no(), [v, y] = e.useState(!1);
4086
- if (X(() => {
4087
- i && In(i).direction === "rtl" && y(!0);
4189
+ var fo = oo.useId || uo, po = /* @__PURE__ */ e.forwardRef(function(t, n) {
4190
+ let { context: { placement: r, elements: { floating: i }, middlewareData: { arrow: a, shift: o } }, width: s = 14, height: c = 7, tipRadius: l = 0, strokeWidth: u = 0, staticOffset: d, stroke: f, d: p, style: { transform: m, ...h } = {}, ...g } = t, _ = fo(), [v, y] = e.useState(!1);
4191
+ if (Z(() => {
4192
+ i && X(i).direction === "rtl" && y(!0);
4088
4193
  }, [i]), !i) return null;
4089
4194
  let [x, S] = r.split("-"), C = x === "top" || x === "bottom", w = d;
4090
4195
  (C && o != null && o.x || !C && o != null && o.y) && (w = null);
@@ -4136,7 +4241,7 @@ var no = Za.useId || to, ro = /* @__PURE__ */ e.forwardRef(function(t, n) {
4136
4241
  ]
4137
4242
  });
4138
4243
  });
4139
- function io() {
4244
+ function mo() {
4140
4245
  let e = /* @__PURE__ */ new Map();
4141
4246
  return {
4142
4247
  emit(t, n) {
@@ -4152,16 +4257,16 @@ function io() {
4152
4257
  }
4153
4258
  };
4154
4259
  }
4155
- var ao = /* @__PURE__ */ e.createContext(null), oo = /* @__PURE__ */ e.createContext(null), so = () => e.useContext(ao)?.id || null, co = () => e.useContext(oo);
4156
- function lo(e) {
4260
+ var ho = /* @__PURE__ */ e.createContext(null), go = /* @__PURE__ */ e.createContext(null), _o = () => e.useContext(ho)?.id || null, vo = () => e.useContext(go);
4261
+ function yo(e) {
4157
4262
  return "data-floating-ui-" + e;
4158
4263
  }
4159
4264
  function $(e) {
4160
4265
  e.current !== -1 && (clearTimeout(e.current), e.current = -1);
4161
4266
  }
4162
- var uo = /* @__PURE__ */ lo("safe-polygon");
4163
- function fo(e, t, n) {
4164
- if (n && !_i(n)) return 0;
4267
+ var bo = /* @__PURE__ */ yo("safe-polygon");
4268
+ function xo(e, t, n) {
4269
+ if (n && !Ti(n)) return 0;
4165
4270
  if (typeof e == "number") return e;
4166
4271
  if (typeof e == "function") {
4167
4272
  let n = e();
@@ -4169,12 +4274,12 @@ function fo(e, t, n) {
4169
4274
  }
4170
4275
  return e?.[t];
4171
4276
  }
4172
- function po(e) {
4277
+ function So(e) {
4173
4278
  return typeof e == "function" ? e() : e;
4174
4279
  }
4175
- function mo(t, n) {
4280
+ function Co(t, n) {
4176
4281
  n === void 0 && (n = {});
4177
- let { open: r, onOpenChange: i, dataRef: a, events: o, elements: s } = t, { enabled: c = !0, delay: l = 0, handleClose: u = null, mouseOnly: d = !1, restMs: f = 0, move: p = !0 } = n, m = co(), h = so(), g = yi(u), _ = yi(l), v = yi(r), y = yi(f), b = e.useRef(), x = e.useRef(-1), S = e.useRef(), C = e.useRef(-1), w = e.useRef(!0), T = e.useRef(!1), E = e.useRef(() => {}), D = e.useRef(!1), O = Z(() => {
4282
+ let { open: r, onOpenChange: i, dataRef: a, events: o, elements: s } = t, { enabled: c = !0, delay: l = 0, handleClose: u = null, mouseOnly: d = !1, restMs: f = 0, move: p = !0 } = n, m = vo(), h = _o(), g = Di(u), _ = Di(l), v = Di(r), y = Di(f), b = e.useRef(), x = e.useRef(-1), S = e.useRef(), C = e.useRef(-1), w = e.useRef(!0), T = e.useRef(!1), E = e.useRef(() => {}), D = e.useRef(!1), O = ki(() => {
4178
4283
  let e = a.current.openEvent?.type;
4179
4284
  return e?.includes("mouse") && e !== "mousedown";
4180
4285
  });
@@ -4192,7 +4297,7 @@ function mo(t, n) {
4192
4297
  function e(e) {
4193
4298
  O() && i(!1, e, "hover");
4194
4299
  }
4195
- let t = oi(s.floating).documentElement;
4300
+ let t = mi(s.floating).documentElement;
4196
4301
  return t.addEventListener("mouseleave", e), () => {
4197
4302
  t.removeEventListener("mouseleave", e);
4198
4303
  };
@@ -4206,21 +4311,21 @@ function mo(t, n) {
4206
4311
  ]);
4207
4312
  let k = e.useCallback(function(e, t, n) {
4208
4313
  t === void 0 && (t = !0), n === void 0 && (n = "hover");
4209
- let r = fo(_.current, "close", b.current);
4314
+ let r = xo(_.current, "close", b.current);
4210
4315
  r && !S.current ? ($(x), x.current = window.setTimeout(() => i(!1, e, n), r)) : t && ($(x), i(!1, e, n));
4211
- }, [_, i]), A = Z(() => {
4316
+ }, [_, i]), A = ki(() => {
4212
4317
  E.current(), S.current = void 0;
4213
- }), j = Z(() => {
4318
+ }), j = ki(() => {
4214
4319
  if (T.current) {
4215
- let e = oi(s.floating).body;
4216
- e.style.pointerEvents = "", e.removeAttribute(uo), T.current = !1;
4320
+ let e = mi(s.floating).body;
4321
+ e.style.pointerEvents = "", e.removeAttribute(bo), T.current = !1;
4217
4322
  }
4218
- }), M = Z(() => a.current.openEvent ? ["click", "mousedown"].includes(a.current.openEvent.type) : !1);
4323
+ }), M = ki(() => a.current.openEvent ? ["click", "mousedown"].includes(a.current.openEvent.type) : !1);
4219
4324
  e.useEffect(() => {
4220
4325
  if (!c) return;
4221
4326
  function e(e) {
4222
- if ($(x), w.current = !1, d && !_i(b.current) || po(y.current) > 0 && !fo(_.current, "open")) return;
4223
- let t = fo(_.current, "open", b.current);
4327
+ if ($(x), w.current = !1, d && !Ti(b.current) || So(y.current) > 0 && !xo(_.current, "open")) return;
4328
+ let t = xo(_.current, "open", b.current);
4224
4329
  t ? x.current = window.setTimeout(() => {
4225
4330
  v.current || i(!0, e, "hover");
4226
4331
  }, t) : r || i(!0, e, "hover");
@@ -4231,7 +4336,7 @@ function mo(t, n) {
4231
4336
  return;
4232
4337
  }
4233
4338
  E.current();
4234
- let t = oi(s.floating);
4339
+ let t = mi(s.floating);
4235
4340
  if ($(C), D.current = !1, g.current && a.current.floatingContext) {
4236
4341
  r || $(x), S.current = g.current({
4237
4342
  ...a.current.floatingContext,
@@ -4248,7 +4353,7 @@ function mo(t, n) {
4248
4353
  };
4249
4354
  return;
4250
4355
  }
4251
- (b.current !== "touch" || !ni(s.floating, e.relatedTarget)) && k(e);
4356
+ (b.current !== "touch" || !ui(s.floating, e.relatedTarget)) && k(e);
4252
4357
  }
4253
4358
  function n(e) {
4254
4359
  M() || a.current.floatingContext && (g.current == null || g.current({
@@ -4291,15 +4396,15 @@ function mo(t, n) {
4291
4396
  a,
4292
4397
  M,
4293
4398
  y
4294
- ]), X(() => {
4399
+ ]), Z(() => {
4295
4400
  var e;
4296
4401
  if (c && r && (e = g.current) != null && (e = e.__options) != null && e.blockPointerEvents && O()) {
4297
4402
  T.current = !0;
4298
4403
  let e = s.floating;
4299
4404
  if (J(s.domReference) && e) {
4300
4405
  var t;
4301
- let n = oi(s.floating).body;
4302
- n.setAttribute(uo, "");
4406
+ let n = mi(s.floating).body;
4407
+ n.setAttribute(bo, "");
4303
4408
  let r = s.domReference, i = m == null || (t = m.nodesRef.current.find((e) => e.id === h)) == null || (t = t.context) == null ? void 0 : t.elements.floating;
4304
4409
  return i && (i.style.pointerEvents = ""), n.style.pointerEvents = "none", r.style.pointerEvents = "auto", e.style.pointerEvents = "auto", () => {
4305
4410
  n.style.pointerEvents = "", r.style.pointerEvents = "", e.style.pointerEvents = "";
@@ -4314,7 +4419,7 @@ function mo(t, n) {
4314
4419
  m,
4315
4420
  g,
4316
4421
  O
4317
- ]), X(() => {
4422
+ ]), Z(() => {
4318
4423
  r || (b.current = void 0, D.current = !1, A(), j());
4319
4424
  }, [
4320
4425
  r,
@@ -4340,7 +4445,7 @@ function mo(t, n) {
4340
4445
  function n() {
4341
4446
  !w.current && !v.current && i(!0, t, "hover");
4342
4447
  }
4343
- d && !_i(b.current) || r || po(y.current) === 0 || D.current && e.movementX ** 2 + e.movementY ** 2 < 2 || ($(C), b.current === "touch" ? n() : (D.current = !0, C.current = window.setTimeout(n, po(y.current))));
4448
+ d && !Ti(b.current) || r || So(y.current) === 0 || D.current && e.movementX ** 2 + e.movementY ** 2 < 2 || ($(C), b.current === "touch" ? n() : (D.current = !0, C.current = window.setTimeout(n, So(y.current))));
4344
4449
  }
4345
4450
  };
4346
4451
  }, [
@@ -4352,19 +4457,19 @@ function mo(t, n) {
4352
4457
  ]);
4353
4458
  return e.useMemo(() => c ? { reference: N } : {}, [c, N]);
4354
4459
  }
4355
- var ho = 0;
4356
- function go(e, t) {
4460
+ var wo = 0;
4461
+ function To(e, t) {
4357
4462
  t === void 0 && (t = {});
4358
4463
  let { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t;
4359
- r && cancelAnimationFrame(ho);
4464
+ r && cancelAnimationFrame(wo);
4360
4465
  let a = () => e?.focus({ preventScroll: n });
4361
- i ? a() : ho = requestAnimationFrame(a);
4466
+ i ? a() : wo = requestAnimationFrame(a);
4362
4467
  }
4363
- function _o(e, t) {
4468
+ function Eo(e, t) {
4364
4469
  if (!e || !t) return !1;
4365
4470
  let n = t.getRootNode == null ? void 0 : t.getRootNode();
4366
4471
  if (e.contains(t)) return !0;
4367
- if (n && wn(n)) {
4472
+ if (n && Nn(n)) {
4368
4473
  let n = t;
4369
4474
  for (; n;) {
4370
4475
  if (e === n) return !0;
@@ -4373,10 +4478,10 @@ function _o(e, t) {
4373
4478
  }
4374
4479
  return !1;
4375
4480
  }
4376
- function vo(e) {
4481
+ function Do(e) {
4377
4482
  return "composedPath" in e ? e.composedPath()[0] : e.target;
4378
4483
  }
4379
- var yo = {
4484
+ var Oo = {
4380
4485
  border: 0,
4381
4486
  clip: "rect(0 0 0 0)",
4382
4487
  height: "1px",
@@ -4388,50 +4493,50 @@ var yo = {
4388
4493
  width: "1px",
4389
4494
  top: 0,
4390
4495
  left: 0
4391
- }, bo = /* @__PURE__ */ e.forwardRef(function(t, n) {
4496
+ }, ko = /* @__PURE__ */ e.forwardRef(function(t, n) {
4392
4497
  let [r, i] = e.useState();
4393
- X(() => {
4394
- Gr() && i("button");
4498
+ Z(() => {
4499
+ $r() && i("button");
4395
4500
  }, []);
4396
4501
  let a = {
4397
4502
  ref: n,
4398
4503
  tabIndex: 0,
4399
4504
  role: r,
4400
4505
  "aria-hidden": r ? void 0 : !0,
4401
- [lo("focus-guard")]: "",
4402
- style: yo
4506
+ [yo("focus-guard")]: "",
4507
+ style: Oo
4403
4508
  };
4404
4509
  return /* @__PURE__ */ (0, b.jsx)("span", {
4405
4510
  ...t,
4406
4511
  ...a
4407
4512
  });
4408
- }), xo = {
4513
+ }), Ao = {
4409
4514
  clipPath: "inset(50%)",
4410
4515
  position: "fixed",
4411
4516
  top: 0,
4412
4517
  left: 0
4413
- }, So = /* @__PURE__ */ e.createContext(null), Co = /* @__PURE__ */ lo("portal");
4414
- function wo(t) {
4518
+ }, jo = /* @__PURE__ */ e.createContext(null), Mo = /* @__PURE__ */ yo("portal");
4519
+ function No(t) {
4415
4520
  t === void 0 && (t = {});
4416
- let { id: n, root: r } = t, i = no(), a = Eo(), [o, s] = e.useState(null), c = e.useRef(null);
4417
- return X(() => () => {
4521
+ let { id: n, root: r } = t, i = fo(), a = Fo(), [o, s] = e.useState(null), c = e.useRef(null);
4522
+ return Z(() => () => {
4418
4523
  o?.remove(), queueMicrotask(() => {
4419
4524
  c.current = null;
4420
4525
  });
4421
- }, [o]), X(() => {
4526
+ }, [o]), Z(() => {
4422
4527
  if (!i || c.current) return;
4423
4528
  let e = n ? document.getElementById(n) : null;
4424
4529
  if (!e) return;
4425
4530
  let t = document.createElement("div");
4426
- t.id = i, t.setAttribute(Co, ""), e.appendChild(t), c.current = t, s(t);
4427
- }, [n, i]), X(() => {
4531
+ t.id = i, t.setAttribute(Mo, ""), e.appendChild(t), c.current = t, s(t);
4532
+ }, [n, i]), Z(() => {
4428
4533
  if (r === null || !i || c.current) return;
4429
4534
  let e = r || a?.portalNode;
4430
- e && !Cn(e) && (e = e.current), e ||= document.body;
4535
+ e && !Mn(e) && (e = e.current), e ||= document.body;
4431
4536
  let t = null;
4432
4537
  n && (t = document.createElement("div"), t.id = n, e.appendChild(t));
4433
4538
  let o = document.createElement("div");
4434
- o.id = i, o.setAttribute(Co, ""), e = t || e, e.appendChild(o), c.current = o, s(o);
4539
+ o.id = i, o.setAttribute(Mo, ""), e = t || e, e.appendChild(o), c.current = o, s(o);
4435
4540
  }, [
4436
4541
  n,
4437
4542
  r,
@@ -4439,15 +4544,15 @@ function wo(t) {
4439
4544
  a
4440
4545
  ]), o;
4441
4546
  }
4442
- function To(t) {
4443
- let { children: n, id: r, root: i, preserveTabOrder: a = !0 } = t, o = wo({
4547
+ function Po(t) {
4548
+ let { children: n, id: r, root: i, preserveTabOrder: a = !0 } = t, o = No({
4444
4549
  id: r,
4445
4550
  root: i
4446
4551
  }), [s, c] = e.useState(null), l = e.useRef(null), u = e.useRef(null), d = e.useRef(null), f = e.useRef(null), p = s?.modal, m = s?.open, g = !!s && !s.modal && s.open && a && !!(i || o);
4447
4552
  return e.useEffect(() => {
4448
4553
  if (!o || !a || p) return;
4449
4554
  function e(e) {
4450
- o && Pi(e) && (e.type === "focusin" ? Ii : Fi)(o);
4555
+ o && Ui(e) && (e.type === "focusin" ? Gi : Wi)(o);
4451
4556
  }
4452
4557
  return o.addEventListener("focusin", e, !0), o.addEventListener("focusout", e, !0), () => {
4453
4558
  o.removeEventListener("focusin", e, !0), o.removeEventListener("focusout", e, !0);
@@ -4457,8 +4562,8 @@ function To(t) {
4457
4562
  a,
4458
4563
  p
4459
4564
  ]), e.useEffect(() => {
4460
- o && (m || Ii(o));
4461
- }, [m, o]), /* @__PURE__ */ (0, b.jsxs)(So.Provider, {
4565
+ o && (m || Gi(o));
4566
+ }, [m, o]), /* @__PURE__ */ (0, b.jsxs)(jo.Provider, {
4462
4567
  value: e.useMemo(() => ({
4463
4568
  preserveTabOrder: a,
4464
4569
  beforeOutsideRef: l,
@@ -4469,45 +4574,45 @@ function To(t) {
4469
4574
  setFocusManagerState: c
4470
4575
  }), [a, o]),
4471
4576
  children: [
4472
- g && o && /* @__PURE__ */ (0, b.jsx)(bo, {
4577
+ g && o && /* @__PURE__ */ (0, b.jsx)(ko, {
4473
4578
  "data-type": "outside",
4474
4579
  ref: l,
4475
4580
  onFocus: (e) => {
4476
- if (Pi(e, o)) {
4581
+ if (Ui(e, o)) {
4477
4582
  var t;
4478
4583
  (t = d.current) == null || t.focus();
4479
- } else Ni(s ? s.domReference : null)?.focus();
4584
+ } else Hi(s ? s.domReference : null)?.focus();
4480
4585
  }
4481
4586
  }),
4482
4587
  g && o && /* @__PURE__ */ (0, b.jsx)("span", {
4483
4588
  "aria-owns": o.id,
4484
- style: xo
4589
+ style: Ao
4485
4590
  }),
4486
4591
  o && /* @__PURE__ */ h.createPortal(n, o),
4487
- g && o && /* @__PURE__ */ (0, b.jsx)(bo, {
4592
+ g && o && /* @__PURE__ */ (0, b.jsx)(ko, {
4488
4593
  "data-type": "outside",
4489
4594
  ref: u,
4490
4595
  onFocus: (e) => {
4491
- if (Pi(e, o)) {
4596
+ if (Ui(e, o)) {
4492
4597
  var t;
4493
4598
  (t = f.current) == null || t.focus();
4494
- } else Mi(s ? s.domReference : null)?.focus(), s != null && s.closeOnFocusOut && s?.onOpenChange(!1, e.nativeEvent, "focus-out");
4599
+ } else Vi(s ? s.domReference : null)?.focus(), s != null && s.closeOnFocusOut && s?.onOpenChange(!1, e.nativeEvent, "focus-out");
4495
4600
  }
4496
4601
  })
4497
4602
  ]
4498
4603
  });
4499
4604
  }
4500
- var Eo = () => e.useContext(So);
4501
- function Do(e) {
4605
+ var Fo = () => e.useContext(jo);
4606
+ function Io(e) {
4502
4607
  return Y(e.target) && e.target.tagName === "BUTTON";
4503
4608
  }
4504
- function Oo(e) {
4609
+ function Lo(e) {
4505
4610
  return Y(e.target) && e.target.tagName === "A";
4506
4611
  }
4507
- function ko(e) {
4508
- return si(e);
4612
+ function Ro(e) {
4613
+ return hi(e);
4509
4614
  }
4510
- function Ao(t, n) {
4615
+ function zo(t, n) {
4511
4616
  n === void 0 && (n = {});
4512
4617
  let { open: r, onOpenChange: i, dataRef: a, elements: { domReference: o } } = t, { enabled: s = !0, event: c = "click", toggle: l = !0, ignoreMouse: u = !1, keyboardHandlers: d = !0, stickIfOpen: f = !0 } = n, p = e.useRef(), m = e.useRef(!1), h = e.useMemo(() => ({
4513
4618
  onPointerDown(e) {
@@ -4515,7 +4620,7 @@ function Ao(t, n) {
4515
4620
  },
4516
4621
  onMouseDown(e) {
4517
4622
  let t = p.current;
4518
- e.button === 0 && c !== "click" && (_i(t, !0) && u || (r && l && (!(a.current.openEvent && f) || a.current.openEvent.type === "mousedown") ? i(!1, e.nativeEvent, "click") : (e.preventDefault(), i(!0, e.nativeEvent, "click"))));
4623
+ e.button === 0 && c !== "click" && (Ti(t, !0) && u || (r && l && (!(a.current.openEvent && f) || a.current.openEvent.type === "mousedown") ? i(!1, e.nativeEvent, "click") : (e.preventDefault(), i(!0, e.nativeEvent, "click"))));
4519
4624
  },
4520
4625
  onClick(e) {
4521
4626
  let t = p.current;
@@ -4523,13 +4628,13 @@ function Ao(t, n) {
4523
4628
  p.current = void 0;
4524
4629
  return;
4525
4630
  }
4526
- _i(t, !0) && u || (r && l && (!(a.current.openEvent && f) || a.current.openEvent.type === "click") ? i(!1, e.nativeEvent, "click") : i(!0, e.nativeEvent, "click"));
4631
+ Ti(t, !0) && u || (r && l && (!(a.current.openEvent && f) || a.current.openEvent.type === "click") ? i(!1, e.nativeEvent, "click") : i(!0, e.nativeEvent, "click"));
4527
4632
  },
4528
4633
  onKeyDown(e) {
4529
- p.current = void 0, !(e.defaultPrevented || !d || Do(e)) && (e.key === " " && !ko(o) && (e.preventDefault(), m.current = !0), !Oo(e) && e.key === "Enter" && i(!(r && l), e.nativeEvent, "click"));
4634
+ p.current = void 0, !(e.defaultPrevented || !d || Io(e)) && (e.key === " " && !Ro(o) && (e.preventDefault(), m.current = !0), !Lo(e) && e.key === "Enter" && i(!(r && l), e.nativeEvent, "click"));
4530
4635
  },
4531
4636
  onKeyUp(e) {
4532
- e.defaultPrevented || !d || Do(e) || ko(o) || e.key === " " && m.current && (m.current = !1, i(!(r && l), e.nativeEvent, "click"));
4637
+ e.defaultPrevented || !d || Io(e) || Ro(o) || e.key === " " && m.current && (m.current = !1, i(!(r && l), e.nativeEvent, "click"));
4533
4638
  }
4534
4639
  }), [
4535
4640
  a,
@@ -4544,23 +4649,23 @@ function Ao(t, n) {
4544
4649
  ]);
4545
4650
  return e.useMemo(() => s ? { reference: h } : {}, [s, h]);
4546
4651
  }
4547
- var jo = {
4652
+ var Bo = {
4548
4653
  pointerdown: "onPointerDown",
4549
4654
  mousedown: "onMouseDown",
4550
4655
  click: "onClick"
4551
- }, Mo = {
4656
+ }, Vo = {
4552
4657
  pointerdown: "onPointerDownCapture",
4553
4658
  mousedown: "onMouseDownCapture",
4554
4659
  click: "onClickCapture"
4555
- }, No = (e) => ({
4660
+ }, Ho = (e) => ({
4556
4661
  escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
4557
4662
  outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
4558
4663
  });
4559
- function Po(t, n) {
4664
+ function Uo(t, n) {
4560
4665
  n === void 0 && (n = {});
4561
- let { open: r, onOpenChange: i, elements: a, dataRef: o } = t, { enabled: s = !0, escapeKey: c = !0, outsidePress: l = !0, outsidePressEvent: u = "pointerdown", referencePress: d = !1, referencePressEvent: f = "pointerdown", ancestorScroll: p = !1, bubbles: m, capture: h } = n, g = co(), _ = Z(typeof l == "function" ? l : () => !1), v = typeof l == "function" ? _ : l, y = e.useRef(!1), { escapeKey: b, outsidePress: x } = No(m), { escapeKey: S, outsidePress: C } = No(h), w = e.useRef(!1), T = Z((e) => {
4666
+ let { open: r, onOpenChange: i, elements: a, dataRef: o } = t, { enabled: s = !0, escapeKey: c = !0, outsidePress: l = !0, outsidePressEvent: u = "pointerdown", referencePress: d = !1, referencePressEvent: f = "pointerdown", ancestorScroll: p = !1, bubbles: m, capture: h } = n, g = vo(), _ = ki(typeof l == "function" ? l : () => !1), v = typeof l == "function" ? _ : l, y = e.useRef(!1), { escapeKey: b, outsidePress: x } = Ho(m), { escapeKey: S, outsidePress: C } = Ho(h), w = e.useRef(!1), T = ki((e) => {
4562
4667
  if (!r || !s || !c || e.key !== "Escape" || w.current) return;
4563
- let t = o.current.floatingContext?.nodeId, n = g ? di(g.nodesRef.current, t) : [];
4668
+ let t = o.current.floatingContext?.nodeId, n = g ? yi(g.nodesRef.current, t) : [];
4564
4669
  if (!b && (e.stopPropagation(), n.length > 0)) {
4565
4670
  let e = !0;
4566
4671
  if (n.forEach((t) => {
@@ -4571,33 +4676,33 @@ function Po(t, n) {
4571
4676
  }
4572
4677
  }), !e) return;
4573
4678
  }
4574
- i(!1, mi(e) ? e.nativeEvent : e, "escape-key");
4575
- }), E = Z((e) => {
4679
+ i(!1, Si(e) ? e.nativeEvent : e, "escape-key");
4680
+ }), E = ki((e) => {
4576
4681
  var t;
4577
4682
  let n = () => {
4578
4683
  var t;
4579
- T(e), (t = ri(e)) == null || t.removeEventListener("keydown", n);
4684
+ T(e), (t = di(e)) == null || t.removeEventListener("keydown", n);
4580
4685
  };
4581
- (t = ri(e)) == null || t.addEventListener("keydown", n);
4582
- }), D = Z((e) => {
4686
+ (t = di(e)) == null || t.addEventListener("keydown", n);
4687
+ }), D = ki((e) => {
4583
4688
  let t = o.current.insideReactTree;
4584
4689
  o.current.insideReactTree = !1;
4585
4690
  let n = y.current;
4586
4691
  if (y.current = !1, u === "click" && n || t || typeof v == "function" && !v(e)) return;
4587
- let r = ri(e), s = "[" + lo("inert") + "]", c = oi(a.floating).querySelectorAll(s), l = J(r) ? r : null;
4588
- for (; l && !Fn(l);) {
4589
- let e = Rn(l);
4590
- if (Fn(e) || !J(e)) break;
4692
+ let r = di(e), s = "[" + yo("inert") + "]", c = mi(a.floating).querySelectorAll(s), l = J(r) ? r : null;
4693
+ for (; l && !Wn(l);) {
4694
+ let e = Kn(l);
4695
+ if (Wn(e) || !J(e)) break;
4591
4696
  l = e;
4592
4697
  }
4593
- if (c.length && J(r) && !ai(r) && !ni(r, a.floating) && Array.from(c).every((e) => !ni(l, e))) return;
4698
+ if (c.length && J(r) && !pi(r) && !ui(r, a.floating) && Array.from(c).every((e) => !ui(l, e))) return;
4594
4699
  if (Y(r) && A) {
4595
- let t = Fn(r), n = In(r), i = /auto|scroll/, a = t || i.test(n.overflowX), o = t || i.test(n.overflowY), s = a && r.clientWidth > 0 && r.scrollWidth > r.clientWidth, c = o && r.clientHeight > 0 && r.scrollHeight > r.clientHeight, l = n.direction === "rtl", u = c && (l ? e.offsetX <= r.offsetWidth - r.clientWidth : e.offsetX > r.clientWidth), d = s && e.offsetY > r.clientHeight;
4700
+ let t = Wn(r), n = X(r), i = /auto|scroll/, a = t || i.test(n.overflowX), o = t || i.test(n.overflowY), s = a && r.clientWidth > 0 && r.scrollWidth > r.clientWidth, c = o && r.clientHeight > 0 && r.scrollHeight > r.clientHeight, l = n.direction === "rtl", u = c && (l ? e.offsetX <= r.offsetWidth - r.clientWidth : e.offsetX > r.clientWidth), d = s && e.offsetY > r.clientHeight;
4596
4701
  if (u || d) return;
4597
4702
  }
4598
- let d = o.current.floatingContext?.nodeId, f = g && di(g.nodesRef.current, d).some((t) => ii(e, t.context?.elements.floating));
4599
- if (ii(e, a.floating) || ii(e, a.domReference) || f) return;
4600
- let p = g ? di(g.nodesRef.current, d) : [];
4703
+ let d = o.current.floatingContext?.nodeId, f = g && yi(g.nodesRef.current, d).some((t) => fi(e, t.context?.elements.floating));
4704
+ if (fi(e, a.floating) || fi(e, a.domReference) || f) return;
4705
+ let p = g ? yi(g.nodesRef.current, d) : [];
4601
4706
  if (p.length > 0) {
4602
4707
  let e = !0;
4603
4708
  if (p.forEach((t) => {
@@ -4609,13 +4714,13 @@ function Po(t, n) {
4609
4714
  }), !e) return;
4610
4715
  }
4611
4716
  i(!1, e, "outside-press");
4612
- }), O = Z((e) => {
4717
+ }), O = ki((e) => {
4613
4718
  var t;
4614
4719
  let n = () => {
4615
4720
  var t;
4616
- D(e), (t = ri(e)) == null || t.removeEventListener(u, n);
4721
+ D(e), (t = di(e)) == null || t.removeEventListener(u, n);
4617
4722
  };
4618
- (t = ri(e)) == null || t.addEventListener(u, n);
4723
+ (t = di(e)) == null || t.addEventListener(u, n);
4619
4724
  });
4620
4725
  e.useEffect(() => {
4621
4726
  if (!r || !s) return;
@@ -4630,12 +4735,12 @@ function Po(t, n) {
4630
4735
  function l() {
4631
4736
  e = window.setTimeout(() => {
4632
4737
  w.current = !1;
4633
- }, Pn() ? 5 : 0);
4738
+ }, Un() ? 5 : 0);
4634
4739
  }
4635
- let d = oi(a.floating);
4740
+ let d = mi(a.floating);
4636
4741
  c && (d.addEventListener("keydown", S ? E : T, S), d.addEventListener("compositionstart", n), d.addEventListener("compositionend", l)), v && d.addEventListener(u, C ? O : D, C);
4637
4742
  let f = [];
4638
- return p && (J(a.domReference) && (f = Bn(a.domReference)), J(a.floating) && (f = f.concat(Bn(a.floating))), !J(a.reference) && a.reference && a.reference.contextElement && (f = f.concat(Bn(a.reference.contextElement)))), f = f.filter((e) => e !== d.defaultView?.visualViewport), f.forEach((e) => {
4743
+ return p && (J(a.domReference) && (f = Jn(a.domReference)), J(a.floating) && (f = f.concat(Jn(a.floating))), !J(a.reference) && a.reference && a.reference.contextElement && (f = f.concat(Jn(a.reference.contextElement)))), f = f.filter((e) => e !== d.defaultView?.visualViewport), f.forEach((e) => {
4639
4744
  e.addEventListener("scroll", t, { passive: !0 });
4640
4745
  }), () => {
4641
4746
  c && (d.removeEventListener("keydown", S ? E : T, S), d.removeEventListener("compositionstart", n), d.removeEventListener("compositionend", l)), v && d.removeEventListener(u, C ? O : D, C), f.forEach((e) => {
@@ -4670,7 +4775,7 @@ function Po(t, n) {
4670
4775
  let k = e.useMemo(() => ({
4671
4776
  onKeyDown: T,
4672
4777
  ...d && {
4673
- [jo[f]]: (e) => {
4778
+ [Bo[f]]: (e) => {
4674
4779
  i(!1, e.nativeEvent, "reference-press");
4675
4780
  },
4676
4781
  ...f !== "click" && { onClick(e) {
@@ -4690,7 +4795,7 @@ function Po(t, n) {
4690
4795
  onKeyDown: T,
4691
4796
  onMouseDown: e,
4692
4797
  onMouseUp: e,
4693
- [Mo[u]]: () => {
4798
+ [Vo[u]]: () => {
4694
4799
  o.current.insideReactTree = !0;
4695
4800
  }
4696
4801
  };
@@ -4708,8 +4813,8 @@ function Po(t, n) {
4708
4813
  A
4709
4814
  ]);
4710
4815
  }
4711
- function Fo(t) {
4712
- let { open: n = !1, onOpenChange: r, elements: i } = t, a = no(), o = e.useRef({}), [s] = e.useState(() => io()), c = so() != null, [l, u] = e.useState(i.reference), d = Z((e, t, n) => {
4816
+ function Wo(t) {
4817
+ let { open: n = !1, onOpenChange: r, elements: i } = t, a = fo(), o = e.useRef({}), [s] = e.useState(() => mo()), c = _o() != null, [l, u] = e.useState(i.reference), d = ki((e, t, n) => {
4713
4818
  o.current.openEvent = e ? t : void 0, s.emit("openchange", {
4714
4819
  open: e,
4715
4820
  event: t,
@@ -4742,20 +4847,20 @@ function Fo(t) {
4742
4847
  f
4743
4848
  ]);
4744
4849
  }
4745
- function Io(t) {
4850
+ function Go(t) {
4746
4851
  t === void 0 && (t = {});
4747
- let { nodeId: n } = t, r = Fo({
4852
+ let { nodeId: n } = t, r = Wo({
4748
4853
  ...t,
4749
4854
  elements: {
4750
4855
  reference: null,
4751
4856
  floating: null,
4752
4857
  ...t.elements
4753
4858
  }
4754
- }), i = t.rootContext || r, a = i.elements, [o, s] = e.useState(null), [c, l] = e.useState(null), u = a?.domReference || o, d = e.useRef(null), f = co();
4755
- X(() => {
4859
+ }), i = t.rootContext || r, a = i.elements, [o, s] = e.useState(null), [c, l] = e.useState(null), u = a?.domReference || o, d = e.useRef(null), f = vo();
4860
+ Z(() => {
4756
4861
  u && (d.current = u);
4757
4862
  }, [u]);
4758
- let p = Fa({
4863
+ let p = Wa({
4759
4864
  ...t,
4760
4865
  elements: {
4761
4866
  ...a,
@@ -4795,7 +4900,7 @@ function Io(t) {
4795
4900
  n,
4796
4901
  i
4797
4902
  ]);
4798
- return X(() => {
4903
+ return Z(() => {
4799
4904
  i.dataRef.current.floatingContext = v;
4800
4905
  let e = f?.nodesRef.current.find((e) => e.id === n);
4801
4906
  e && (e.context = v);
@@ -4811,17 +4916,17 @@ function Io(t) {
4811
4916
  v
4812
4917
  ]);
4813
4918
  }
4814
- function Lo() {
4815
- return qr() && Gr();
4919
+ function Ko() {
4920
+ return ti() && $r();
4816
4921
  }
4817
- function Ro(t, n) {
4922
+ function qo(t, n) {
4818
4923
  n === void 0 && (n = {});
4819
4924
  let { open: r, onOpenChange: i, events: a, dataRef: o, elements: s } = t, { enabled: c = !0, visibleOnly: l = !0 } = n, u = e.useRef(!1), d = e.useRef(-1), f = e.useRef(!0);
4820
4925
  e.useEffect(() => {
4821
4926
  if (!c) return;
4822
4927
  let e = q(s.domReference);
4823
4928
  function t() {
4824
- !r && Y(s.domReference) && s.domReference === ti(oi(s.domReference)) && (u.current = !0);
4929
+ !r && Y(s.domReference) && s.domReference === li(mi(s.domReference)) && (u.current = !0);
4825
4930
  }
4826
4931
  function n() {
4827
4932
  f.current = !0;
@@ -4829,8 +4934,8 @@ function Ro(t, n) {
4829
4934
  function i() {
4830
4935
  f.current = !1;
4831
4936
  }
4832
- return e.addEventListener("blur", t), Lo() && (e.addEventListener("keydown", n, !0), e.addEventListener("pointerdown", i, !0)), () => {
4833
- e.removeEventListener("blur", t), Lo() && (e.removeEventListener("keydown", n, !0), e.removeEventListener("pointerdown", i, !0));
4937
+ return e.addEventListener("blur", t), Ko() && (e.addEventListener("keydown", n, !0), e.addEventListener("pointerdown", i, !0)), () => {
4938
+ e.removeEventListener("blur", t), Ko() && (e.removeEventListener("keydown", n, !0), e.removeEventListener("pointerdown", i, !0));
4834
4939
  };
4835
4940
  }, [
4836
4941
  s.domReference,
@@ -4854,20 +4959,20 @@ function Ro(t, n) {
4854
4959
  },
4855
4960
  onFocus(e) {
4856
4961
  if (u.current) return;
4857
- let t = ri(e.nativeEvent);
4962
+ let t = di(e.nativeEvent);
4858
4963
  if (l && J(t)) {
4859
- if (Lo() && !e.relatedTarget) {
4860
- if (!f.current && !si(t)) return;
4861
- } else if (!li(t)) return;
4964
+ if (Ko() && !e.relatedTarget) {
4965
+ if (!f.current && !hi(t)) return;
4966
+ } else if (!_i(t)) return;
4862
4967
  }
4863
4968
  i(!0, e.nativeEvent, "focus");
4864
4969
  },
4865
4970
  onBlur(e) {
4866
4971
  u.current = !1;
4867
- let t = e.relatedTarget, n = e.nativeEvent, r = J(t) && t.hasAttribute(lo("focus-guard")) && t.getAttribute("data-type") === "outside";
4972
+ let t = e.relatedTarget, n = e.nativeEvent, r = J(t) && t.hasAttribute(yo("focus-guard")) && t.getAttribute("data-type") === "outside";
4868
4973
  d.current = window.setTimeout(() => {
4869
- let e = ti(s.domReference ? s.domReference.ownerDocument : document);
4870
- !t && e === s.domReference || ni(o.current.floatingContext?.refs.floating.current, e) || ni(s.domReference, e) || r || i(!1, n, "focus");
4974
+ let e = li(s.domReference ? s.domReference.ownerDocument : document);
4975
+ !t && e === s.domReference || ui(o.current.floatingContext?.refs.floating.current, e) || ui(s.domReference, e) || r || i(!1, n, "focus");
4871
4976
  });
4872
4977
  }
4873
4978
  }), [
@@ -4878,16 +4983,16 @@ function Ro(t, n) {
4878
4983
  ]);
4879
4984
  return e.useMemo(() => c ? { reference: p } : {}, [c, p]);
4880
4985
  }
4881
- function zo(e, t, n) {
4986
+ function Jo(e, t, n) {
4882
4987
  let r = /* @__PURE__ */ new Map(), i = n === "item", a = e;
4883
4988
  if (i && e) {
4884
- let { [Ua]: t, [Wa]: n, ...r } = e;
4989
+ let { [Qa]: t, [$a]: n, ...r } = e;
4885
4990
  a = r;
4886
4991
  }
4887
4992
  return {
4888
4993
  ...n === "floating" && {
4889
4994
  tabIndex: -1,
4890
- [Ha]: ""
4995
+ [Za]: ""
4891
4996
  },
4892
4997
  ...a,
4893
4998
  ...t.map((t) => {
@@ -4895,7 +5000,7 @@ function zo(e, t, n) {
4895
5000
  return typeof r == "function" ? e ? r(e) : null : r;
4896
5001
  }).concat(e).reduce((e, t) => (t && Object.entries(t).forEach((t) => {
4897
5002
  let [n, a] = t;
4898
- if (!(i && [Ua, Wa].includes(n))) if (n.indexOf("on") === 0) {
5003
+ if (!(i && [Qa, $a].includes(n))) if (n.indexOf("on") === 0) {
4899
5004
  if (r.has(n) || r.set(n, []), typeof a == "function") {
4900
5005
  var o;
4901
5006
  (o = r.get(n)) == null || o.push(a), e[n] = function() {
@@ -4907,9 +5012,9 @@ function zo(e, t, n) {
4907
5012
  }), e), {})
4908
5013
  };
4909
5014
  }
4910
- function Bo(t) {
5015
+ function Yo(t) {
4911
5016
  t === void 0 && (t = []);
4912
- let n = t.map((e) => e?.reference), r = t.map((e) => e?.floating), i = t.map((e) => e?.item), a = e.useCallback((e) => zo(e, t, "reference"), n), o = e.useCallback((e) => zo(e, t, "floating"), r), s = e.useCallback((e) => zo(e, t, "item"), i);
5017
+ let n = t.map((e) => e?.reference), r = t.map((e) => e?.floating), i = t.map((e) => e?.item), a = e.useCallback((e) => Jo(e, t, "reference"), n), o = e.useCallback((e) => Jo(e, t, "floating"), r), s = e.useCallback((e) => Jo(e, t, "item"), i);
4913
5018
  return e.useMemo(() => ({
4914
5019
  getReferenceProps: a,
4915
5020
  getFloatingProps: o,
@@ -4920,39 +5025,39 @@ function Bo(t) {
4920
5025
  s
4921
5026
  ]);
4922
5027
  }
4923
- var Vo = "Escape";
4924
- function Ho(e, t, n) {
5028
+ var Xo = "Escape";
5029
+ function Zo(e, t, n) {
4925
5030
  switch (e) {
4926
5031
  case "vertical": return t;
4927
5032
  case "horizontal": return n;
4928
5033
  default: return t || n;
4929
5034
  }
4930
5035
  }
4931
- function Uo(e, t) {
4932
- return Ho(t, e === qa || e === Ja, e === Ga || e === Ka);
5036
+ function Qo(e, t) {
5037
+ return Zo(t, e === no || e === ro, e === eo || e === to);
4933
5038
  }
4934
- function Wo(e, t, n) {
4935
- return Ho(t, e === Ja, n ? e === Ga : e === Ka) || e === "Enter" || e === " " || e === "";
5039
+ function $o(e, t, n) {
5040
+ return Zo(t, e === ro, n ? e === eo : e === to) || e === "Enter" || e === " " || e === "";
4936
5041
  }
4937
- function Go(e, t, n) {
4938
- return Ho(t, n ? e === Ga : e === Ka, e === Ja);
5042
+ function es(e, t, n) {
5043
+ return Zo(t, n ? e === eo : e === to, e === ro);
4939
5044
  }
4940
- function Ko(e, t, n, r) {
4941
- return t === "both" || t === "horizontal" && r && r > 1 ? e === Vo : Ho(t, n ? e === Ka : e === Ga, e === qa);
5045
+ function ts(e, t, n, r) {
5046
+ return t === "both" || t === "horizontal" && r && r > 1 ? e === Xo : Zo(t, n ? e === to : e === eo, e === no);
4942
5047
  }
4943
- function qo(t, n) {
4944
- let { open: r, onOpenChange: i, elements: a, floatingId: o } = t, { listRef: s, activeIndex: c, onNavigate: l = () => {}, enabled: u = !0, selectedIndex: d = null, allowEscape: f = !1, loop: p = !1, nested: m = !1, rtl: h = !1, virtual: g = !1, focusItemOnOpen: _ = "auto", focusItemOnHover: v = !0, openOnArrowKeyDown: y = !0, disabledIndices: b = void 0, orientation: x = "vertical", parentOrientation: S, cols: C = 1, scrollItemIntoView: w = !0, virtualItemRef: T, itemSizes: E, dense: D = !1 } = n, O = yi(ui(a.floating)), k = so(), A = co();
4945
- X(() => {
5048
+ function ns(t, n) {
5049
+ let { open: r, onOpenChange: i, elements: a, floatingId: o } = t, { listRef: s, activeIndex: c, onNavigate: l = () => {}, enabled: u = !0, selectedIndex: d = null, allowEscape: f = !1, loop: p = !1, nested: m = !1, rtl: h = !1, virtual: g = !1, focusItemOnOpen: _ = "auto", focusItemOnHover: v = !0, openOnArrowKeyDown: y = !0, disabledIndices: b = void 0, orientation: x = "vertical", parentOrientation: S, cols: C = 1, scrollItemIntoView: w = !0, virtualItemRef: T, itemSizes: E, dense: D = !1 } = n, O = Di(vi(a.floating)), k = _o(), A = vo();
5050
+ Z(() => {
4946
5051
  t.dataRef.current.orientation = x;
4947
5052
  }, [t, x]);
4948
- let j = Z(() => {
5053
+ let j = ki(() => {
4949
5054
  l(P.current === -1 ? null : P.current);
4950
- }), M = ci(a.domReference), N = e.useRef(_), P = e.useRef(d ?? -1), F = e.useRef(null), I = e.useRef(!0), L = e.useRef(j), ee = e.useRef(!!a.floating), te = e.useRef(r), ne = e.useRef(!1), R = e.useRef(!1), z = yi(b), B = yi(r), re = yi(w), V = yi(d), [ie, ae] = e.useState(), [oe, se] = e.useState(), ce = Z(() => {
5055
+ }), M = gi(a.domReference), N = e.useRef(_), P = e.useRef(d ?? -1), F = e.useRef(null), I = e.useRef(!0), L = e.useRef(j), ee = e.useRef(!!a.floating), te = e.useRef(r), ne = e.useRef(!1), R = e.useRef(!1), z = Di(b), B = Di(r), re = Di(w), V = Di(d), [ie, ae] = e.useState(), [oe, se] = e.useState(), ce = ki(() => {
4951
5056
  function e(e) {
4952
5057
  if (g) {
4953
5058
  var t;
4954
5059
  (t = e.id) != null && t.endsWith("-fui-option") && (e.id = o + "-" + Math.random().toString(16).slice(2, 10)), ae(e.id), A?.events.emit("virtualfocus", e), T && (T.current = e);
4955
- } else go(e, {
5060
+ } else To(e, {
4956
5061
  sync: ne.current,
4957
5062
  preventScroll: !0
4958
5063
  });
@@ -4969,7 +5074,7 @@ function qo(t, n) {
4969
5074
  } : i));
4970
5075
  });
4971
5076
  });
4972
- X(() => {
5077
+ Z(() => {
4973
5078
  u && (r && a.floating ? N.current && d != null && (R.current = !0, P.current = d, j()) : ee.current && (P.current = -1, L.current()));
4974
5079
  }, [
4975
5080
  u,
@@ -4977,16 +5082,16 @@ function qo(t, n) {
4977
5082
  a.floating,
4978
5083
  d,
4979
5084
  j
4980
- ]), X(() => {
5085
+ ]), Z(() => {
4981
5086
  if (u && r && a.floating) if (c == null) {
4982
5087
  if (ne.current = !1, V.current != null) return;
4983
5088
  if (ee.current && (P.current = -1, ce()), (!te.current || !ee.current) && N.current && (F.current != null || N.current === !0 && F.current == null)) {
4984
5089
  let e = 0, t = () => {
4985
- s.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e++) : (P.current = F.current == null || Wo(F.current, x, h) || m ? Ci(s, z.current) : wi(s, z.current), F.current = null, j());
5090
+ s.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e++) : (P.current = F.current == null || $o(F.current, x, h) || m ? Mi(s, z.current) : Ni(s, z.current), F.current = null, j());
4986
5091
  };
4987
5092
  t();
4988
5093
  }
4989
- } else Si(s, c) || (P.current = c, ce(), R.current = !1);
5094
+ } else ji(s, c) || (P.current = c, ce(), R.current = !1);
4990
5095
  }, [
4991
5096
  u,
4992
5097
  r,
@@ -5000,10 +5105,10 @@ function qo(t, n) {
5000
5105
  j,
5001
5106
  ce,
5002
5107
  z
5003
- ]), X(() => {
5108
+ ]), Z(() => {
5004
5109
  var e;
5005
5110
  if (!u || a.floating || !A || g || !ee.current) return;
5006
- let t = A.nodesRef.current, n = (e = t.find((e) => e.id === k)) == null || (e = e.context) == null ? void 0 : e.elements.floating, r = ti(oi(a.floating)), i = t.some((e) => e.context && ni(e.context.elements.floating, r));
5111
+ let t = A.nodesRef.current, n = (e = t.find((e) => e.id === k)) == null || (e = e.context) == null ? void 0 : e.elements.floating, r = li(mi(a.floating)), i = t.some((e) => e.context && ui(e.context.elements.floating, r));
5007
5112
  n && !i && I.current && n.focus({ preventScroll: !0 });
5008
5113
  }, [
5009
5114
  u,
@@ -5011,7 +5116,7 @@ function qo(t, n) {
5011
5116
  A,
5012
5117
  k,
5013
5118
  g
5014
- ]), X(() => {
5119
+ ]), Z(() => {
5015
5120
  if (!u || !A || !g || k) return;
5016
5121
  function e(e) {
5017
5122
  se(e.id), T && (T.current = e);
@@ -5025,9 +5130,9 @@ function qo(t, n) {
5025
5130
  g,
5026
5131
  k,
5027
5132
  T
5028
- ]), X(() => {
5133
+ ]), Z(() => {
5029
5134
  L.current = j, te.current = r, ee.current = !!a.floating;
5030
- }), X(() => {
5135
+ }), Z(() => {
5031
5136
  r || (F.current = null, N.current = _);
5032
5137
  }, [r, _]);
5033
5138
  let le = c != null, ue = e.useMemo(() => {
@@ -5071,37 +5176,37 @@ function qo(t, n) {
5071
5176
  k,
5072
5177
  A,
5073
5178
  S
5074
- ]), fe = Z((e) => {
5179
+ ]), fe = ki((e) => {
5075
5180
  if (I.current = !1, ne.current = !0, e.which === 229 || !B.current && e.currentTarget === O.current) return;
5076
- if (m && Ko(e.key, x, h, C)) {
5077
- Uo(e.key, de()) || pi(e), i(!1, e.nativeEvent, "list-navigation"), Y(a.domReference) && (g ? A?.events.emit("virtualfocus", a.domReference) : a.domReference.focus());
5181
+ if (m && ts(e.key, x, h, C)) {
5182
+ Qo(e.key, de()) || xi(e), i(!1, e.nativeEvent, "list-navigation"), Y(a.domReference) && (g ? A?.events.emit("virtualfocus", a.domReference) : a.domReference.focus());
5078
5183
  return;
5079
5184
  }
5080
- let t = P.current, n = Ci(s, b), o = wi(s, b);
5081
- if (M || (e.key === "Home" && (pi(e), P.current = n, j()), e.key === "End" && (pi(e), P.current = o, j())), C > 1) {
5185
+ let t = P.current, n = Mi(s, b), o = Ni(s, b);
5186
+ if (M || (e.key === "Home" && (xi(e), P.current = n, j()), e.key === "End" && (xi(e), P.current = o, j())), C > 1) {
5082
5187
  let t = E || Array.from({ length: s.current.length }, () => ({
5083
5188
  width: 1,
5084
5189
  height: 1
5085
- })), r = Ei(t, C, D), i = r.findIndex((e) => e != null && !ki(s, e, b)), a = r.reduce((e, t, n) => t != null && !ki(s, t, b) ? n : e, -1), c = r[Ti({ current: r.map((e) => e == null ? null : s.current[e]) }, {
5190
+ })), r = Fi(t, C, D), i = r.findIndex((e) => e != null && !Ri(s, e, b)), a = r.reduce((e, t, n) => t != null && !Ri(s, t, b) ? n : e, -1), c = r[Pi({ current: r.map((e) => e == null ? null : s.current[e]) }, {
5086
5191
  event: e,
5087
5192
  orientation: x,
5088
5193
  loop: p,
5089
5194
  rtl: h,
5090
5195
  cols: C,
5091
- disabledIndices: Oi([...(typeof b == "function" ? null : b) || s.current.map((e, t) => ki(s, t, b) ? t : void 0), void 0], r),
5196
+ disabledIndices: Li([...(typeof b == "function" ? null : b) || s.current.map((e, t) => Ri(s, t, b) ? t : void 0), void 0], r),
5092
5197
  minIndex: i,
5093
5198
  maxIndex: a,
5094
- prevIndex: Di(P.current > o ? n : P.current, t, r, C, e.key === Ja ? "bl" : e.key === (h ? Ga : Ka) ? "tr" : "tl"),
5199
+ prevIndex: Ii(P.current > o ? n : P.current, t, r, C, e.key === ro ? "bl" : e.key === (h ? eo : to) ? "tr" : "tl"),
5095
5200
  stopEvent: !0
5096
5201
  })];
5097
5202
  if (c != null && (P.current = c, j()), x === "both") return;
5098
5203
  }
5099
- if (Uo(e.key, x)) {
5100
- if (pi(e), r && !g && ti(e.currentTarget.ownerDocument) === e.currentTarget) {
5101
- P.current = Wo(e.key, x, h) ? n : o, j();
5204
+ if (Qo(e.key, x)) {
5205
+ if (xi(e), r && !g && li(e.currentTarget.ownerDocument) === e.currentTarget) {
5206
+ P.current = $o(e.key, x, h) ? n : o, j();
5102
5207
  return;
5103
5208
  }
5104
- Wo(e.key, x, h) ? p ? P.current = t >= o ? f && t !== s.current.length ? -1 : n : Q(s, {
5209
+ $o(e.key, x, h) ? p ? P.current = t >= o ? f && t !== s.current.length ? -1 : n : Q(s, {
5105
5210
  startingIndex: t,
5106
5211
  disabledIndices: b
5107
5212
  }) : P.current = Math.min(o, Q(s, {
@@ -5115,7 +5220,7 @@ function qo(t, n) {
5115
5220
  startingIndex: t,
5116
5221
  decrement: !0,
5117
5222
  disabledIndices: b
5118
- })), Si(s, P.current) && (P.current = -1), j();
5223
+ })), ji(s, P.current) && (P.current = -1), j();
5119
5224
  }
5120
5225
  }), pe = e.useMemo(() => g && r && le && { "aria-activedescendant": oe || ie }, [
5121
5226
  g,
@@ -5137,18 +5242,18 @@ function qo(t, n) {
5137
5242
  M
5138
5243
  ]), H = e.useMemo(() => {
5139
5244
  function e(e) {
5140
- _ === "auto" && hi(e.nativeEvent) && (N.current = !0);
5245
+ _ === "auto" && Ci(e.nativeEvent) && (N.current = !0);
5141
5246
  }
5142
5247
  function t(e) {
5143
- N.current = _, _ === "auto" && gi(e.nativeEvent) && (N.current = !0);
5248
+ N.current = _, _ === "auto" && wi(e.nativeEvent) && (N.current = !0);
5144
5249
  }
5145
5250
  return {
5146
5251
  ...pe,
5147
5252
  onKeyDown(e) {
5148
5253
  I.current = !1;
5149
- let t = e.key.startsWith("Arrow"), n = ["Home", "End"].includes(e.key), a = t || n, o = Go(e.key, x, h), c = Ko(e.key, x, h, C), l = Go(e.key, de(), h), u = Uo(e.key, x), f = (m ? l : u) || e.key === "Enter" || e.key.trim() === "";
5254
+ let t = e.key.startsWith("Arrow"), n = ["Home", "End"].includes(e.key), a = t || n, o = es(e.key, x, h), c = ts(e.key, x, h, C), l = es(e.key, de(), h), u = Qo(e.key, x), f = (m ? l : u) || e.key === "Enter" || e.key.trim() === "";
5150
5255
  if (g && r) {
5151
- let t = A?.nodesRef.current.find((e) => e.parentId == null), r = A && t ? fi(A.nodesRef.current, t.id) : null;
5256
+ let t = A?.nodesRef.current.find((e) => e.parentId == null), r = A && t ? bi(A.nodesRef.current, t.id) : null;
5152
5257
  if (a && r && T) {
5153
5258
  let t = new KeyboardEvent("keydown", {
5154
5259
  key: e.key,
@@ -5156,11 +5261,11 @@ function qo(t, n) {
5156
5261
  });
5157
5262
  if (o || c) {
5158
5263
  let n = r.context?.elements.domReference === e.currentTarget, i = c && !n ? r.context?.elements.domReference : o ? s.current.find((e) => e?.id === ie) : null;
5159
- i && (pi(e), i.dispatchEvent(t), se(void 0));
5264
+ i && (xi(e), i.dispatchEvent(t), se(void 0));
5160
5265
  }
5161
5266
  if ((u || n) && r.context && r.context.open && r.parentId && e.currentTarget !== r.context.elements.domReference) {
5162
5267
  var p;
5163
- pi(e), (p = r.context.elements.domReference) == null || p.dispatchEvent(t);
5268
+ xi(e), (p = r.context.elements.domReference) == null || p.dispatchEvent(t);
5164
5269
  return;
5165
5270
  }
5166
5271
  }
@@ -5168,14 +5273,14 @@ function qo(t, n) {
5168
5273
  }
5169
5274
  if (!(!r && !y && t)) {
5170
5275
  if (f) {
5171
- let t = Uo(e.key, de());
5276
+ let t = Qo(e.key, de());
5172
5277
  F.current = m && t ? null : e.key;
5173
5278
  }
5174
5279
  if (m) {
5175
- l && (pi(e), r ? (P.current = Ci(s, z.current), j()) : i(!0, e.nativeEvent, "list-navigation"));
5280
+ l && (xi(e), r ? (P.current = Mi(s, z.current), j()) : i(!0, e.nativeEvent, "list-navigation"));
5176
5281
  return;
5177
5282
  }
5178
- u && (d != null && (P.current = d), pi(e), !r && y ? i(!0, e.nativeEvent, "list-navigation") : fe(e), r && j());
5283
+ u && (d != null && (P.current = d), xi(e), !r && y ? i(!0, e.nativeEvent, "list-navigation") : fe(e), r && j());
5179
5284
  }
5180
5285
  },
5181
5286
  onFocus() {
@@ -5218,14 +5323,14 @@ function qo(t, n) {
5218
5323
  ue
5219
5324
  ]);
5220
5325
  }
5221
- var Jo = /* @__PURE__ */ new Map([
5326
+ var rs = /* @__PURE__ */ new Map([
5222
5327
  ["select", "listbox"],
5223
5328
  ["combobox", "listbox"],
5224
5329
  ["label", !1]
5225
5330
  ]);
5226
- function Yo(t, n) {
5331
+ function is(t, n) {
5227
5332
  n === void 0 && (n = {});
5228
- let { open: r, elements: i, floatingId: a } = t, { enabled: o = !0, role: s = "dialog" } = n, c = no(), l = i.domReference?.id || c, u = e.useMemo(() => ui(i.floating)?.id || a, [i.floating, a]), d = Jo.get(s) ?? s, f = so() != null, p = e.useMemo(() => d === "tooltip" || s === "label" ? { ["aria-" + (s === "label" ? "labelledby" : "describedby")]: r ? u : void 0 } : {
5333
+ let { open: r, elements: i, floatingId: a } = t, { enabled: o = !0, role: s = "dialog" } = n, c = fo(), l = i.domReference?.id || c, u = e.useMemo(() => vi(i.floating)?.id || a, [i.floating, a]), d = rs.get(s) ?? s, f = _o() != null, p = e.useMemo(() => d === "tooltip" || s === "label" ? { ["aria-" + (s === "label" ? "labelledby" : "describedby")]: r ? u : void 0 } : {
5229
5334
  "aria-expanded": r ? "true" : "false",
5230
5335
  "aria-haspopup": d === "alertdialog" ? "dialog" : d,
5231
5336
  "aria-controls": r ? u : void 0,
@@ -5280,11 +5385,11 @@ function Yo(t, n) {
5280
5385
  h
5281
5386
  ]);
5282
5387
  }
5283
- var Xo = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, t) => (t ? "-" : "") + e.toLowerCase());
5284
- function Zo(e, t) {
5388
+ var as = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, t) => (t ? "-" : "") + e.toLowerCase());
5389
+ function os(e, t) {
5285
5390
  return typeof e == "function" ? e(t) : e;
5286
5391
  }
5287
- function Qo(t, n) {
5392
+ function ss(t, n) {
5288
5393
  let [r, i] = e.useState(t);
5289
5394
  return t && !r && i(!0), e.useEffect(() => {
5290
5395
  if (!t && r) {
@@ -5297,10 +5402,10 @@ function Qo(t, n) {
5297
5402
  n
5298
5403
  ]), r;
5299
5404
  }
5300
- function $o(t, n) {
5405
+ function cs(t, n) {
5301
5406
  n === void 0 && (n = {});
5302
- let { open: r, elements: { floating: i } } = t, { duration: a = 250 } = n, o = (typeof a == "number" ? a : a.close) || 0, [s, c] = e.useState("unmounted"), l = Qo(r, o);
5303
- return !l && s === "close" && c("unmounted"), X(() => {
5407
+ let { open: r, elements: { floating: i } } = t, { duration: a = 250 } = n, o = (typeof a == "number" ? a : a.close) || 0, [s, c] = e.useState("unmounted"), l = ss(r, o);
5408
+ return !l && s === "close" && c("unmounted"), Z(() => {
5304
5409
  if (i) {
5305
5410
  if (r) {
5306
5411
  c("initial");
@@ -5320,30 +5425,30 @@ function $o(t, n) {
5320
5425
  status: s
5321
5426
  };
5322
5427
  }
5323
- function es(t, n) {
5428
+ function ls(t, n) {
5324
5429
  n === void 0 && (n = {});
5325
5430
  let { initial: r = { opacity: 0 }, open: i, close: a, common: o, duration: s = 250 } = n, c = t.placement, l = c.split("-")[0], u = e.useMemo(() => ({
5326
5431
  side: l,
5327
5432
  placement: c
5328
5433
  }), [l, c]), d = typeof s == "number", f = (d ? s : s.open) || 0, p = (d ? s : s.close) || 0, [m, h] = e.useState(() => ({
5329
- ...Zo(o, u),
5330
- ...Zo(r, u)
5331
- })), { isMounted: g, status: _ } = $o(t, { duration: s }), v = yi(r), y = yi(i), b = yi(a), x = yi(o);
5332
- return X(() => {
5333
- let e = Zo(v.current, u), t = Zo(b.current, u), n = Zo(x.current, u), r = Zo(y.current, u) || Object.keys(e).reduce((e, t) => (e[t] = "", e), {});
5434
+ ...os(o, u),
5435
+ ...os(r, u)
5436
+ })), { isMounted: g, status: _ } = cs(t, { duration: s }), v = Di(r), y = Di(i), b = Di(a), x = Di(o);
5437
+ return Z(() => {
5438
+ let e = os(v.current, u), t = os(b.current, u), n = os(x.current, u), r = os(y.current, u) || Object.keys(e).reduce((e, t) => (e[t] = "", e), {});
5334
5439
  if (_ === "initial" && h((t) => ({
5335
5440
  transitionProperty: t.transitionProperty,
5336
5441
  ...n,
5337
5442
  ...e
5338
5443
  })), _ === "open" && h({
5339
- transitionProperty: Object.keys(r).map(Xo).join(","),
5444
+ transitionProperty: Object.keys(r).map(as).join(","),
5340
5445
  transitionDuration: f + "ms",
5341
5446
  ...n,
5342
5447
  ...r
5343
5448
  }), _ === "close") {
5344
5449
  let r = t || e;
5345
5450
  h({
5346
- transitionProperty: Object.keys(r).map(Xo).join(","),
5451
+ transitionProperty: Object.keys(r).map(as).join(","),
5347
5452
  transitionDuration: p + "ms",
5348
5453
  ...n,
5349
5454
  ...r
@@ -5363,10 +5468,10 @@ function es(t, n) {
5363
5468
  styles: m
5364
5469
  };
5365
5470
  }
5366
- function ts(e, t, n) {
5367
- return n === void 0 && (n = !0), e.filter((e) => e.parentId === t && (!n || e.context?.open)).flatMap((t) => [t, ...ts(e, t.id, n)]);
5471
+ function us(e, t, n) {
5472
+ return n === void 0 && (n = !0), e.filter((e) => e.parentId === t && (!n || e.context?.open)).flatMap((t) => [t, ...us(e, t.id, n)]);
5368
5473
  }
5369
- function ns(e, t) {
5474
+ function ds(e, t) {
5370
5475
  let [n, r] = e, i = !1, a = t.length;
5371
5476
  for (let e = 0, o = a - 1; e < a; o = e++) {
5372
5477
  let [a, s] = t[e] || [0, 0], [c, l] = t[o] || [0, 0];
@@ -5374,10 +5479,10 @@ function ns(e, t) {
5374
5479
  }
5375
5480
  return i;
5376
5481
  }
5377
- function rs(e, t) {
5482
+ function fs(e, t) {
5378
5483
  return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
5379
5484
  }
5380
- function is(e) {
5485
+ function ps(e) {
5381
5486
  e === void 0 && (e = {});
5382
5487
  let { buffer: t = .5, blockPointerEvents: n = !1, requireIntent: r = !0 } = e, i = { current: -1 }, a = !1, o = null, s = null, c = typeof performance < "u" ? performance.now() : 0;
5383
5488
  function l(e, t) {
@@ -5393,13 +5498,13 @@ function is(e) {
5393
5498
  $(i), u();
5394
5499
  }
5395
5500
  if ($(i), !c.domReference || !c.floating || s == null || n == null || o == null) return;
5396
- let { clientX: m, clientY: h } = e, g = [m, h], _ = vo(e), v = e.type === "mouseleave", y = _o(c.floating, _), b = _o(c.domReference, _), x = c.domReference.getBoundingClientRect(), S = c.floating.getBoundingClientRect(), C = s.split("-")[0], w = n > S.right - S.width / 2, T = o > S.bottom - S.height / 2, E = rs(g, x), D = S.width > x.width, O = S.height > x.height, k = (D ? x : S).left, A = (D ? x : S).right, j = (O ? x : S).top, M = (O ? x : S).bottom;
5501
+ let { clientX: m, clientY: h } = e, g = [m, h], _ = Do(e), v = e.type === "mouseleave", y = Eo(c.floating, _), b = Eo(c.domReference, _), x = c.domReference.getBoundingClientRect(), S = c.floating.getBoundingClientRect(), C = s.split("-")[0], w = n > S.right - S.width / 2, T = o > S.bottom - S.height / 2, E = fs(g, x), D = S.width > x.width, O = S.height > x.height, k = (D ? x : S).left, A = (D ? x : S).right, j = (O ? x : S).top, M = (O ? x : S).bottom;
5397
5502
  if (y && (a = !0, !v)) return;
5398
5503
  if (b && (a = !1), b && !v) {
5399
5504
  a = !0;
5400
5505
  return;
5401
5506
  }
5402
- if (v && J(e.relatedTarget) && _o(c.floating, e.relatedTarget) || f && ts(f.nodesRef.current, d).length) return;
5507
+ if (v && J(e.relatedTarget) && Eo(c.floating, e.relatedTarget) || f && us(f.nodesRef.current, d).length) return;
5403
5508
  if (C === "top" && o >= x.bottom - 1 || C === "bottom" && o <= x.top + 1 || C === "left" && n >= x.right - 1 || C === "right" && n <= x.left + 1) return p();
5404
5509
  let N = [];
5405
5510
  switch (C) {
@@ -5464,13 +5569,13 @@ function is(e) {
5464
5569
  ];
5465
5570
  }
5466
5571
  }
5467
- if (!ns([m, h], N)) {
5572
+ if (!ds([m, h], N)) {
5468
5573
  if (a && !E) return p();
5469
5574
  if (!v && r) {
5470
5575
  let t = l(e.clientX, e.clientY);
5471
5576
  if (t !== null && t < .1) return p();
5472
5577
  }
5473
- ns([m, h], P([n, o])) ? !a && r && (i.current = window.setTimeout(p, 40)) : p();
5578
+ ds([m, h], P([n, o])) ? !a && r && (i.current = window.setTimeout(p, 40)) : p();
5474
5579
  }
5475
5580
  };
5476
5581
  };
@@ -5478,14 +5583,14 @@ function is(e) {
5478
5583
  }
5479
5584
  //#endregion
5480
5585
  //#region src/lib/components/_shared/floating-list.js
5481
- var as = { layout: "z-50 flex min-w-[12rem] flex-col gap-1 list-none rounded-[1rem] border p-1 outline-none" }, os = { base: [
5586
+ var ms = { layout: "z-50 flex min-w-[12rem] flex-col gap-1 list-none rounded-[1rem] border p-1 outline-none" }, hs = { base: [
5482
5587
  "flex w-full items-center gap-2 rounded-[0.75rem] px-3 py-2 text-left cursor-pointer",
5483
5588
  "text-sm font-medium transition-colors outline-none",
5484
5589
  "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px]"
5485
- ].join(" ") }, ss = {
5590
+ ].join(" ") }, gs = {
5486
5591
  light: "border-slate-200 bg-white text-slate-950",
5487
5592
  dark: "border-zinc-800 bg-zinc-950 text-stone-100"
5488
- }, cs = {
5593
+ }, _s = {
5489
5594
  light: {
5490
5595
  default: [
5491
5596
  "text-slate-700",
@@ -5521,10 +5626,10 @@ var as = { layout: "z-50 flex min-w-[12rem] flex-col gap-1 list-none rounded-[1r
5521
5626
  separator: "border-zinc-800"
5522
5627
  }
5523
5628
  };
5524
- function ls(e) {
5629
+ function vs(e) {
5525
5630
  return e === "dark" ? "dark" : "light";
5526
5631
  }
5527
- function us(e) {
5632
+ function ys(e) {
5528
5633
  switch (e) {
5529
5634
  case "top-start": return "bottom left";
5530
5635
  case "top-end": return "bottom right";
@@ -5541,7 +5646,7 @@ function us(e) {
5541
5646
  default: return "top center";
5542
5647
  }
5543
5648
  }
5544
- function ds(e) {
5649
+ function bs(e) {
5545
5650
  switch (e) {
5546
5651
  case "top": return "translateY(4px) scale(0.98)";
5547
5652
  case "bottom": return "translateY(-4px) scale(0.98)";
@@ -5550,7 +5655,7 @@ function ds(e) {
5550
5655
  default: return "scale(0.98)";
5551
5656
  }
5552
5657
  }
5553
- function fs(e) {
5658
+ function xs(e) {
5554
5659
  return e === "dark" ? {
5555
5660
  fill: "#09090b",
5556
5661
  stroke: "#27272a"
@@ -5561,47 +5666,47 @@ function fs(e) {
5561
5666
  }
5562
5667
  //#endregion
5563
5668
  //#region src/lib/components/dropdown/dropdown-context.js
5564
- var ps = i(null);
5565
- function ms(e) {
5566
- let t = c(ps);
5669
+ var Ss = i(null);
5670
+ function Cs(e) {
5671
+ let t = c(Ss);
5567
5672
  if (!t) throw Error(`${e} debe usarse dentro de <Dropdown>.`);
5568
5673
  return t;
5569
5674
  }
5570
5675
  //#endregion
5571
5676
  //#region src/lib/components/dropdown/Dropdown.jsx
5572
- function hs(e) {
5677
+ function ws(e) {
5573
5678
  return !!(e?.props?.disabled || e?.props?.["aria-disabled"] === !0);
5574
5679
  }
5575
- function gs(e, t) {
5680
+ function Ts(e, t) {
5576
5681
  typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
5577
5682
  }
5578
- function _s({ children: e, closeOnClickOutside: t = !0, closeOnScroll: n = !1, collisionPadding: r = 8, defaultOpen: i = !1, offsetX: a = 0, onOpenChange: o, open: c, placement: u = "bottom-end", showArrow: d = !0, usePortal: p = !0 }) {
5683
+ function Es({ children: e, closeOnClickOutside: t = !0, closeOnScroll: n = !1, collisionPadding: r = 8, defaultOpen: i = !1, offsetX: a = 0, onOpenChange: o, open: c, placement: u = "bottom-end", showArrow: d = !0, usePortal: p = !0 }) {
5579
5684
  let [h, g] = m(i), [_, v] = m(null), y = c !== void 0, x = y ? c : h, S = s((e) => {
5580
5685
  y || g(e), o?.(e);
5581
- }, [y, o]), { refs: C, floatingStyles: w, context: T } = Io({
5686
+ }, [y, o]), { refs: C, floatingStyles: w, context: T } = Go({
5582
5687
  open: x,
5583
5688
  onOpenChange: S,
5584
5689
  placement: u,
5585
5690
  transform: !1,
5586
5691
  middleware: f(() => [
5587
- La({
5692
+ Ka({
5588
5693
  mainAxis: 8,
5589
5694
  crossAxis: a
5590
5695
  }),
5591
- za({ padding: r }),
5592
- Ra({ padding: r }),
5593
- ...d ? [Va({ element: _ })] : []
5696
+ Ja({ padding: r }),
5697
+ qa({ padding: r }),
5698
+ ...d ? [Xa({ element: _ })] : []
5594
5699
  ], [
5595
5700
  _,
5596
5701
  r,
5597
5702
  a,
5598
5703
  d
5599
5704
  ]),
5600
- whileElementsMounted: Ca
5601
- }), E = Bo([
5602
- Ao(T),
5603
- Po(T, { outsidePress: t }),
5604
- Yo(T, { role: "menu" })
5705
+ whileElementsMounted: Ma
5706
+ }), E = Yo([
5707
+ zo(T),
5708
+ Uo(T, { outsidePress: t }),
5709
+ is(T, { role: "menu" })
5605
5710
  ]);
5606
5711
  l(() => {
5607
5712
  if (!n || !x) return;
@@ -5645,14 +5750,14 @@ function _s({ children: e, closeOnClickOutside: t = !0, closeOnScroll: n = !1, c
5645
5750
  d,
5646
5751
  p
5647
5752
  ]);
5648
- return /* @__PURE__ */ (0, b.jsx)(ps.Provider, {
5753
+ return /* @__PURE__ */ (0, b.jsx)(Ss.Provider, {
5649
5754
  value: D,
5650
5755
  children: e
5651
5756
  });
5652
5757
  }
5653
- var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5654
- let { refs: l, interactions: u, open: d } = ms("DropdownTrigger"), f = s((e) => {
5655
- l.setReference(e), gs(c, e);
5758
+ var Ds = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5759
+ let { refs: l, interactions: u, open: d } = Cs("DropdownTrigger"), f = s((e) => {
5760
+ l.setReference(e), Ts(c, e);
5656
5761
  }, [c, l]), p = {
5657
5762
  "data-state": d ? "open" : "closed",
5658
5763
  ...a
@@ -5663,7 +5768,7 @@ var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5663
5768
  return /* @__PURE__ */ (0, b.jsx)("span", {
5664
5769
  ref: f,
5665
5770
  className: K("inline-flex", i),
5666
- ...hs(e) ? p : u.getReferenceProps(p),
5771
+ ...ws(e) ? p : u.getReferenceProps(p),
5667
5772
  children: r(e, { className: K(e.props.className) })
5668
5773
  });
5669
5774
  }
@@ -5674,17 +5779,17 @@ var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5674
5779
  ...u.getReferenceProps(p),
5675
5780
  children: n
5676
5781
  });
5677
- }), ys = a(function({ animated: e = !0, children: t, className: n, ...r }, i) {
5678
- let { refs: a, interactions: o, floatingStyles: c, context: l, placement: u, setArrowElement: d, showArrow: f, open: p, usePortal: m } = ms("DropdownContent"), h = ls(S()), g = s((e) => {
5679
- a.setFloating(e), gs(i, e);
5680
- }, [i, a]), { fill: _, stroke: v } = fs(h), { isMounted: y, styles: x } = es(l, {
5782
+ }), Os = a(function({ animated: e = !0, children: t, className: n, ...r }, i) {
5783
+ let { refs: a, interactions: o, floatingStyles: c, context: l, placement: u, setArrowElement: d, showArrow: f, open: p, usePortal: m } = Cs("DropdownContent"), h = vs(S()), g = s((e) => {
5784
+ a.setFloating(e), Ts(i, e);
5785
+ }, [i, a]), { fill: _, stroke: v } = xs(h), { isMounted: y, styles: x } = ls(l, {
5681
5786
  duration: e ? {
5682
5787
  open: 140,
5683
5788
  close: 100
5684
5789
  } : 0,
5685
5790
  initial: ({ side: e }) => ({
5686
5791
  opacity: 0,
5687
- transform: ds(e)
5792
+ transform: bs(e)
5688
5793
  }),
5689
5794
  open: {
5690
5795
  opacity: 1,
@@ -5692,14 +5797,14 @@ var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5692
5797
  },
5693
5798
  close: ({ side: e }) => ({
5694
5799
  opacity: 0,
5695
- transform: ds(e)
5800
+ transform: bs(e)
5696
5801
  }),
5697
- common: { transformOrigin: us(u) }
5802
+ common: { transformOrigin: ys(u) }
5698
5803
  });
5699
5804
  if (!y) return null;
5700
5805
  let C = /* @__PURE__ */ (0, b.jsxs)("ul", {
5701
5806
  ref: g,
5702
- className: K(as.layout, ss[h], n),
5807
+ className: K(ms.layout, gs[h], n),
5703
5808
  style: {
5704
5809
  ...c,
5705
5810
  ...x
@@ -5708,7 +5813,7 @@ var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5708
5813
  ...r,
5709
5814
  "data-state": p ? "open" : "closed"
5710
5815
  }),
5711
- children: [f ? /* @__PURE__ */ (0, b.jsx)(ro, {
5816
+ children: [f ? /* @__PURE__ */ (0, b.jsx)(po, {
5712
5817
  ref: d,
5713
5818
  context: l,
5714
5819
  width: 16,
@@ -5720,9 +5825,9 @@ var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5720
5825
  className: "pointer-events-none"
5721
5826
  }) : null, t]
5722
5827
  });
5723
- return m ? /* @__PURE__ */ (0, b.jsx)(To, { children: C }) : C;
5724
- }), bs = a(function({ as: e = "button", children: t, className: n, closeOnClick: r = !0, disabled: i = !1, href: a, onClick: o, variant: s = "default", ...c }, l) {
5725
- let { close: u } = ms("DropdownItem"), d = ls(S()), f = s === "danger" ? "danger" : "default";
5828
+ return m ? /* @__PURE__ */ (0, b.jsx)(Po, { children: C }) : C;
5829
+ }), ks = a(function({ as: e = "button", children: t, className: n, closeOnClick: r = !0, disabled: i = !1, href: a, onClick: o, variant: s = "default", ...c }, l) {
5830
+ let { close: u } = Cs("DropdownItem"), d = vs(S()), f = s === "danger" ? "danger" : "default";
5726
5831
  return /* @__PURE__ */ (0, b.jsx)("li", {
5727
5832
  role: "none",
5728
5833
  children: /* @__PURE__ */ (0, b.jsx)(e, {
@@ -5740,26 +5845,26 @@ var vs = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
5740
5845
  "aria-disabled": e !== "button" && i ? !0 : void 0,
5741
5846
  tabIndex: e !== "button" && i ? -1 : void 0,
5742
5847
  type: e === "button" ? "button" : void 0,
5743
- className: K(os.base, cs[d][f], i && cs[d].disabled, n),
5848
+ className: K(hs.base, _s[d][f], i && _s[d].disabled, n),
5744
5849
  ...c,
5745
5850
  children: t
5746
5851
  })
5747
5852
  });
5748
5853
  });
5749
- function xs({ className: e }) {
5854
+ function As({ className: e }) {
5750
5855
  return /* @__PURE__ */ (0, b.jsx)("li", {
5751
5856
  role: "separator",
5752
- className: K("my-1 border-t", cs[ls(S())].separator, e)
5857
+ className: K("my-1 border-t", _s[vs(S())].separator, e)
5753
5858
  });
5754
5859
  }
5755
5860
  //#endregion
5756
5861
  //#region src/lib/components/dropdown/useDropdown.js
5757
- function Ss() {
5758
- return ms("useDropdown");
5862
+ function js() {
5863
+ return Cs("useDropdown");
5759
5864
  }
5760
5865
  //#endregion
5761
5866
  //#region src/lib/components/empty-state/EmptyState.jsx
5762
- var Cs = {
5867
+ var Ms = {
5763
5868
  light: {
5764
5869
  root: "border-slate-200 bg-slate-50 text-slate-950",
5765
5870
  description: "text-slate-600"
@@ -5769,50 +5874,50 @@ var Cs = {
5769
5874
  description: "text-stone-300"
5770
5875
  }
5771
5876
  };
5772
- function ws(e) {
5877
+ function Ns(e) {
5773
5878
  return e === "dark" ? "dark" : "light";
5774
5879
  }
5775
- var Ts = a(function({ align: e = "center", children: t, className: n, ...r }, i) {
5776
- let a = Cs[ws(S())];
5880
+ var Ps = a(function({ align: e = "center", children: t, className: n, ...r }, i) {
5881
+ let a = Ms[Ns(S())];
5777
5882
  return /* @__PURE__ */ (0, b.jsx)("div", {
5778
5883
  ref: i,
5779
5884
  className: K("w-full rounded-[1.5rem] border border-dashed px-6 py-10", e === "center" ? "text-center" : "text-left", a.root, n),
5780
5885
  ...r,
5781
5886
  children: t
5782
5887
  });
5783
- }), Es = a(function({ children: e, className: t, ...n }, r) {
5888
+ }), Fs = a(function({ children: e, className: t, ...n }, r) {
5784
5889
  return /* @__PURE__ */ (0, b.jsx)("h3", {
5785
5890
  ref: r,
5786
5891
  className: K("text-lg font-semibold tracking-[-0.02em]", t),
5787
5892
  ...n,
5788
5893
  children: e
5789
5894
  });
5790
- }), Ds = a(function({ children: e, className: t, ...n }, r) {
5791
- let i = Cs[ws(S())];
5895
+ }), Is = a(function({ children: e, className: t, ...n }, r) {
5896
+ let i = Ms[Ns(S())];
5792
5897
  return /* @__PURE__ */ (0, b.jsx)("p", {
5793
5898
  ref: r,
5794
5899
  className: K("mt-2 text-sm leading-6", i.description, t),
5795
5900
  ...n,
5796
5901
  children: e
5797
5902
  });
5798
- }), Os = a(function({ children: e, className: t, ...n }, r) {
5903
+ }), Ls = a(function({ children: e, className: t, ...n }, r) {
5799
5904
  return /* @__PURE__ */ (0, b.jsx)("div", {
5800
5905
  ref: r,
5801
5906
  className: K("mt-5 flex flex-wrap items-center justify-center gap-3", t),
5802
5907
  ...n,
5803
5908
  children: e
5804
5909
  });
5805
- }), ks = { base: [
5910
+ }), Rs = { base: [
5806
5911
  "w-full border bg-transparent text-sm outline-none",
5807
5912
  "transition-[background-color,border-color,color,box-shadow] duration-200",
5808
5913
  "placeholder:text-current/45",
5809
5914
  "focus-visible:ring-4 focus-visible:ring-offset-0",
5810
5915
  "disabled:cursor-not-allowed disabled:opacity-60"
5811
- ].join(" ") }, As = {
5916
+ ].join(" ") }, zs = {
5812
5917
  sm: "h-9 px-3",
5813
5918
  md: "h-11 px-3.5",
5814
5919
  lg: "h-12 px-4 text-base"
5815
- }, js = {
5920
+ }, Bs = {
5816
5921
  light: {
5817
5922
  base: "border-slate-200 bg-white text-slate-950 focus-visible:border-slate-300 focus-visible:ring-slate-200/70",
5818
5923
  hover: "hover:border-slate-300",
@@ -5824,11 +5929,11 @@ var Ts = a(function({ align: e = "center", children: t, className: n, ...r }, i)
5824
5929
  invalid: "border-red-500/60 text-stone-50 focus-visible:border-red-400/80 focus-visible:ring-red-500/20"
5825
5930
  }
5826
5931
  };
5827
- function Ms(e) {
5932
+ function Vs(e) {
5828
5933
  return e === "dark" ? "dark" : "light";
5829
5934
  }
5830
- var Ns = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, required: i = !1, size: a = "md", ...o }, s) {
5831
- let c = js[Ms(S())], l = fn(), u = r || l?.invalid, d = t || l?.disabled, f = i || l?.required, p = [
5935
+ var Hs = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, required: i = !1, size: a = "md", ...o }, s) {
5936
+ let c = Bs[Vs(S())], l = xn(), u = r || l?.invalid, d = t || l?.disabled, f = i || l?.required, p = [
5832
5937
  o["aria-describedby"],
5833
5938
  l?.descriptionId,
5834
5939
  u ? l?.messageId : null
@@ -5840,22 +5945,22 @@ var Ns = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, re
5840
5945
  disabled: d,
5841
5946
  "aria-invalid": u || void 0,
5842
5947
  "aria-describedby": p,
5843
- className: K(ks.base, ct(a), As[a] ?? As.md, u ? c.invalid : c.base, !d && c.hover, e),
5948
+ className: K(Rs.base, ct(a), zs[a] ?? zs.md, u ? c.invalid : c.base, !d && c.hover, e),
5844
5949
  ...o
5845
5950
  });
5846
- }), Ps = i(null);
5847
- function Fs(e) {
5848
- let t = c(Ps);
5951
+ }), Us = i(null);
5952
+ function Ws(e) {
5953
+ let t = c(Us);
5849
5954
  if (!t) throw Error(`${e} debe usarse dentro de <Modal>.`);
5850
5955
  return t;
5851
5956
  }
5852
5957
  //#endregion
5853
5958
  //#region src/lib/components/modal/Modal.jsx
5854
- var Is = 140, Ls = 0, Rs = 50, zs = 0, Bs = [], Vs = "", Hs = "", Us = "", Ws = "";
5855
- function Gs(e) {
5959
+ var Gs = 140, Ks = 0, qs = 50, Js = 0, Ys = [], Xs = "", Zs = "", Qs = "", $s = "";
5960
+ function ec(e) {
5856
5961
  return !e || e === "transparent" || e === "rgba(0, 0, 0, 0)" || e === "rgb(0 0 0 / 0)";
5857
5962
  }
5858
- function Ks() {
5963
+ function tc() {
5859
5964
  let e = [
5860
5965
  document.body,
5861
5966
  document.getElementById("root"),
@@ -5864,34 +5969,34 @@ function Ks() {
5864
5969
  ].filter(Boolean);
5865
5970
  for (let t of e) {
5866
5971
  let e = window.getComputedStyle(t).backgroundColor;
5867
- if (!Gs(e)) return e;
5972
+ if (!ec(e)) return e;
5868
5973
  }
5869
5974
  return "";
5870
5975
  }
5871
- function qs() {
5872
- if (zs += 1, zs !== 1) return;
5976
+ function nc() {
5977
+ if (Js += 1, Js !== 1) return;
5873
5978
  let e = document.body, t = window.innerWidth - document.documentElement.clientWidth, n = Number.parseFloat(window.getComputedStyle(e).paddingRight) || 0;
5874
- Vs = e.style.overflow, Hs = e.style.overscrollBehavior, Us = e.style.paddingRight, Ws = e.style.backgroundColor, e.style.overflow = "hidden", e.style.overscrollBehavior = "none", e.style.backgroundColor = Ks(), t > 0 && (e.style.paddingRight = `${n + t}px`);
5979
+ Xs = e.style.overflow, Zs = e.style.overscrollBehavior, Qs = e.style.paddingRight, $s = e.style.backgroundColor, e.style.overflow = "hidden", e.style.overscrollBehavior = "none", e.style.backgroundColor = tc(), t > 0 && (e.style.paddingRight = `${n + t}px`);
5875
5980
  }
5876
- function Js() {
5877
- if (zs = Math.max(0, zs - 1), zs !== 0) return;
5981
+ function rc() {
5982
+ if (Js = Math.max(0, Js - 1), Js !== 0) return;
5878
5983
  let e = document.body;
5879
- e.style.overflow = Vs, e.style.overscrollBehavior = Hs, e.style.paddingRight = Us, e.style.backgroundColor = Ws;
5984
+ e.style.overflow = Xs, e.style.overscrollBehavior = Zs, e.style.paddingRight = Qs, e.style.backgroundColor = $s;
5880
5985
  }
5881
- function Ys(e) {
5882
- Bs.includes(e) || Bs.push(e);
5986
+ function ic(e) {
5987
+ Ys.includes(e) || Ys.push(e);
5883
5988
  }
5884
- function Xs(e) {
5885
- let t = Bs.indexOf(e);
5886
- t !== -1 && Bs.splice(t, 1);
5989
+ function ac(e) {
5990
+ let t = Ys.indexOf(e);
5991
+ t !== -1 && Ys.splice(t, 1);
5887
5992
  }
5888
- function Zs(e) {
5889
- return Bs.at(-1) === e;
5993
+ function oc(e) {
5994
+ return Ys.at(-1) === e;
5890
5995
  }
5891
- function Qs(e) {
5996
+ function sc(e) {
5892
5997
  return !!(e?.props?.disabled || e?.props?.["aria-disabled"] === !0);
5893
5998
  }
5894
- var $s = {
5999
+ var cc = {
5895
6000
  overlay: "fixed inset-0 bg-neutral-950/70 transition-opacity duration-[140ms]",
5896
6001
  viewport: "fixed inset-0 flex items-center justify-center p-4 sm:p-6 pointer-events-none",
5897
6002
  dialog: ["pointer-events-auto flex max-h-[calc(100dvh-2rem)] w-full flex-col overflow-hidden", "rounded-[1.25rem] border transition-[opacity,transform] duration-[140ms] ease-out"].join(" "),
@@ -5903,7 +6008,7 @@ var $s = {
5903
6008
  "text-base font-medium transition-colors cursor-pointer",
5904
6009
  "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
5905
6010
  ].join(" ")
5906
- }, ec = {
6011
+ }, lc = {
5907
6012
  light: {
5908
6013
  dialog: "border-slate-200 bg-white text-slate-950",
5909
6014
  muted: "text-slate-600",
@@ -5919,10 +6024,10 @@ var $s = {
5919
6024
  closeButton: "border-zinc-800 text-stone-400 hover:border-zinc-700 hover:bg-zinc-900 hover:text-stone-50 focus-visible:outline-zinc-700"
5920
6025
  }
5921
6026
  };
5922
- function tc(e) {
6027
+ function uc(e) {
5923
6028
  return e === "dark" ? "dark" : "light";
5924
6029
  }
5925
- function nc() {
6030
+ function dc() {
5926
6031
  return /* @__PURE__ */ (0, b.jsx)("svg", {
5927
6032
  "aria-hidden": "true",
5928
6033
  viewBox: "0 0 24 24",
@@ -5936,8 +6041,8 @@ function nc() {
5936
6041
  })
5937
6042
  });
5938
6043
  }
5939
- function rc({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBeforeClose: r, onOpenChange: i, open: a, outsideClick: o = !0, zIndex: c }) {
5940
- let [u, d] = m(t), [p, h] = m(t), [g, _] = m(c ?? 50), [v] = m(() => (Ls += 1, Ls)), y = a !== void 0, x = y ? a : u, S = x || p, C = s((e) => {
6044
+ function fc({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBeforeClose: r, onOpenChange: i, open: a, outsideClick: o = !0, zIndex: c }) {
6045
+ let [u, d] = m(t), [p, h] = m(t), [g, _] = m(c ?? 50), [v] = m(() => (Ks += 1, Ks)), y = a !== void 0, x = y ? a : u, S = x || p, C = s((e) => {
5941
6046
  y || d(e), e !== x && i?.(e);
5942
6047
  }, [
5943
6048
  y,
@@ -5957,18 +6062,18 @@ function rc({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBefo
5957
6062
  }
5958
6063
  let e = window.setTimeout(() => {
5959
6064
  h(!1);
5960
- }, Is);
6065
+ }, Gs);
5961
6066
  return () => {
5962
6067
  window.clearTimeout(e);
5963
6068
  };
5964
6069
  }, [x]), l(() => {
5965
6070
  if (!S) return;
5966
- Ys(v), qs();
5967
- let e = c || (Rs += 10, Rs), t = window.requestAnimationFrame(() => {
6071
+ ic(v), nc();
6072
+ let e = c || (qs += 10, qs), t = window.requestAnimationFrame(() => {
5968
6073
  _(e);
5969
6074
  });
5970
6075
  return () => {
5971
- window.cancelAnimationFrame(t), Xs(v), Js(), !c && Rs > 50 && (Rs -= 10);
6076
+ window.cancelAnimationFrame(t), ac(v), rc(), !c && qs > 50 && (qs -= 10);
5972
6077
  };
5973
6078
  }, [
5974
6079
  c,
@@ -5977,7 +6082,7 @@ function rc({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBefo
5977
6082
  ]), l(() => {
5978
6083
  if (!S || !o) return;
5979
6084
  let e = (e) => {
5980
- e.key !== "Escape" || !Zs(v) || w();
6085
+ e.key !== "Escape" || !oc(v) || w();
5981
6086
  };
5982
6087
  return window.addEventListener("keydown", e), () => {
5983
6088
  window.removeEventListener("keydown", e);
@@ -6007,13 +6112,13 @@ function rc({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBefo
6007
6112
  C,
6008
6113
  p
6009
6114
  ]);
6010
- return /* @__PURE__ */ (0, b.jsx)(Ps.Provider, {
6115
+ return /* @__PURE__ */ (0, b.jsx)(Us.Provider, {
6011
6116
  value: T,
6012
6117
  children: e
6013
6118
  });
6014
6119
  }
6015
- function ic({ as: e = "button", asChild: n = !1, children: i, className: a, disabled: s = !1, ...c }) {
6016
- let { open: l, setOpen: u } = Fs("ModalTrigger");
6120
+ function pc({ as: e = "button", asChild: n = !1, children: i, className: a, disabled: s = !1, ...c }) {
6121
+ let { open: l, setOpen: u } = Ws("ModalTrigger");
6017
6122
  if (n) {
6018
6123
  let e = t.only(i);
6019
6124
  if (!o(e)) throw Error("ModalTrigger con asChild requiere un único elemento React válido.");
@@ -6022,7 +6127,7 @@ function ic({ as: e = "button", asChild: n = !1, children: i, className: a, disa
6022
6127
  className: K(e.props.className, a),
6023
6128
  ...c
6024
6129
  };
6025
- return Qs(e) ? r(e, n) : r(e, {
6130
+ return sc(e) ? r(e, n) : r(e, {
6026
6131
  ...n,
6027
6132
  onClick: (t) => {
6028
6133
  e.props.onClick?.(t), t.defaultPrevented || u(!l);
@@ -6039,17 +6144,17 @@ function ic({ as: e = "button", asChild: n = !1, children: i, className: a, disa
6039
6144
  children: i
6040
6145
  });
6041
6146
  }
6042
- function ac({ children: e, className: t }) {
6043
- let { close: n, instanceZIndex: r, maxWidth: i, outsideClick: a, rendered: o, visible: s } = Fs("ModalContent"), c = ec[tc(S())];
6147
+ function mc({ children: e, className: t }) {
6148
+ let { close: n, instanceZIndex: r, maxWidth: i, outsideClick: a, rendered: o, visible: s } = Ws("ModalContent"), c = lc[uc(S())];
6044
6149
  return typeof window > "u" || !o ? null : g(/* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)("div", {
6045
- className: K($s.overlay, s ? "opacity-100" : "opacity-0"),
6150
+ className: K(cc.overlay, s ? "opacity-100" : "opacity-0"),
6046
6151
  style: { zIndex: r },
6047
6152
  onClick: a ? n : void 0
6048
6153
  }), /* @__PURE__ */ (0, b.jsx)("div", {
6049
- className: $s.viewport,
6154
+ className: cc.viewport,
6050
6155
  style: { zIndex: r + 1 },
6051
6156
  children: /* @__PURE__ */ (0, b.jsx)("div", {
6052
- className: K($s.dialog, c.dialog, i, "translate-y-0 scale-100 opacity-100", !s && "translate-y-2 scale-[0.995] opacity-0", t),
6157
+ className: K(cc.dialog, c.dialog, i, "translate-y-0 scale-100 opacity-100", !s && "translate-y-2 scale-[0.995] opacity-0", t),
6053
6158
  role: "dialog",
6054
6159
  "aria-modal": "true",
6055
6160
  onClick: (e) => e.stopPropagation(),
@@ -6057,45 +6162,45 @@ function ac({ children: e, className: t }) {
6057
6162
  })
6058
6163
  })] }), document.body);
6059
6164
  }
6060
- function oc({ children: e, className: t }) {
6061
- let { close: n, outsideClick: r } = Fs("ModalHeader"), i = ec[tc(S())];
6165
+ function hc({ children: e, className: t }) {
6166
+ let { close: n, outsideClick: r } = Ws("ModalHeader"), i = lc[uc(S())];
6062
6167
  return /* @__PURE__ */ (0, b.jsxs)("div", {
6063
- className: K($s.header, i.header, t),
6168
+ className: K(cc.header, i.header, t),
6064
6169
  children: [/* @__PURE__ */ (0, b.jsx)("div", {
6065
6170
  className: "min-w-0 flex-1",
6066
6171
  children: e
6067
6172
  }), r ? /* @__PURE__ */ (0, b.jsx)("button", {
6068
6173
  type: "button",
6069
6174
  onClick: n,
6070
- className: K($s.closeButton, i.closeButton),
6175
+ className: K(cc.closeButton, i.closeButton),
6071
6176
  "aria-label": "Cerrar modal",
6072
- children: /* @__PURE__ */ (0, b.jsx)(nc, {})
6177
+ children: /* @__PURE__ */ (0, b.jsx)(dc, {})
6073
6178
  }) : null]
6074
6179
  });
6075
6180
  }
6076
- function sc({ centered: e = !0, children: t, className: n }) {
6181
+ function gc({ centered: e = !0, children: t, className: n }) {
6077
6182
  return /* @__PURE__ */ (0, b.jsx)("h2", {
6078
6183
  className: K("text-lg font-semibold tracking-[-0.02em]", e && "text-center", n),
6079
6184
  children: t
6080
6185
  });
6081
6186
  }
6082
- function cc({ children: e, className: t }) {
6083
- let n = ec[tc(S())];
6187
+ function _c({ children: e, className: t }) {
6188
+ let n = lc[uc(S())];
6084
6189
  return /* @__PURE__ */ (0, b.jsx)("div", {
6085
- className: K($s.body, n.muted, t),
6190
+ className: K(cc.body, n.muted, t),
6086
6191
  children: e
6087
6192
  });
6088
6193
  }
6089
- function lc({ children: e, className: t, placement: n = "center" }) {
6090
- let r = ec[tc(S())];
6194
+ function vc({ children: e, className: t, placement: n = "center" }) {
6195
+ let r = lc[uc(S())];
6091
6196
  return /* @__PURE__ */ (0, b.jsx)("div", {
6092
- className: K($s.actions, r.actions, n === "start" && "justify-start", n === "center" && "justify-center", n === "end" && "justify-end", t),
6197
+ className: K(cc.actions, r.actions, n === "start" && "justify-start", n === "center" && "justify-center", n === "end" && "justify-end", t),
6093
6198
  children: e
6094
6199
  });
6095
6200
  }
6096
- function uc({ children: e, className: t, closeOnClick: n = !0, color: r = "primary", onClick: i, size: a = "md", variant: o = "solid", ...s }) {
6097
- let { close: c } = Fs("ModalAction");
6098
- return /* @__PURE__ */ (0, b.jsx)(rn, {
6201
+ function yc({ children: e, className: t, closeOnClick: n = !0, color: r = "primary", onClick: i, size: a = "md", variant: o = "solid", ...s }) {
6202
+ let { close: c } = Ws("ModalAction");
6203
+ return /* @__PURE__ */ (0, b.jsx)(pn, {
6099
6204
  variant: o,
6100
6205
  color: r,
6101
6206
  size: a,
@@ -6107,15 +6212,15 @@ function uc({ children: e, className: t, closeOnClick: n = !0, color: r = "prima
6107
6212
  children: e
6108
6213
  });
6109
6214
  }
6110
- rc.Trigger = ic, rc.Content = ac, rc.Header = oc, rc.Title = sc, rc.Body = cc, rc.Actions = lc, rc.Action = uc;
6215
+ fc.Trigger = pc, fc.Content = mc, fc.Header = hc, fc.Title = gc, fc.Body = _c, fc.Actions = vc, fc.Action = yc;
6111
6216
  //#endregion
6112
6217
  //#region src/lib/components/modal/useModal.js
6113
- function dc() {
6114
- return Fs("useModal");
6218
+ function bc() {
6219
+ return Ws("useModal");
6115
6220
  }
6116
6221
  //#endregion
6117
6222
  //#region src/lib/components/pagination/Pagination.jsx
6118
- function fc({ count: e, page: t, siblingCount: n }) {
6223
+ function xc({ count: e, page: t, siblingCount: n }) {
6119
6224
  if (e <= n * 2 + 5) return Array.from({ length: e }, (e, t) => t + 1);
6120
6225
  let r = Math.max(t - n, 1), i = Math.min(t + n, e), a = r > 2, o = i < e - 1;
6121
6226
  return !a && o ? [
@@ -6134,8 +6239,8 @@ function fc({ count: e, page: t, siblingCount: n }) {
6134
6239
  e
6135
6240
  ];
6136
6241
  }
6137
- function pc({ className: e, color: t = "neutral", count: n, defaultPage: r = 1, disabled: i = !1, onPageChange: a, page: o, siblingCount: s = 1 }) {
6138
- let c = o !== void 0, [l, u] = m(r), d = c ? o : l, p = Math.max(1, n ?? 1), h = Math.min(Math.max(d, 1), p), g = f(() => fc({
6242
+ function Sc({ className: e, color: t = "neutral", count: n, defaultPage: r = 1, disabled: i = !1, onPageChange: a, page: o, siblingCount: s = 1 }) {
6243
+ let c = o !== void 0, [l, u] = m(r), d = c ? o : l, p = Math.max(1, n ?? 1), h = Math.min(Math.max(d, 1), p), g = f(() => xc({
6139
6244
  count: p,
6140
6245
  page: h,
6141
6246
  siblingCount: s
@@ -6152,7 +6257,7 @@ function pc({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
6152
6257
  "aria-label": "Pagination",
6153
6258
  className: K("flex items-center gap-2", e),
6154
6259
  children: [
6155
- /* @__PURE__ */ (0, b.jsx)(rn, {
6260
+ /* @__PURE__ */ (0, b.jsx)(pn, {
6156
6261
  variant: "outline",
6157
6262
  color: t,
6158
6263
  size: "sm",
@@ -6162,7 +6267,7 @@ function pc({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
6162
6267
  }),
6163
6268
  /* @__PURE__ */ (0, b.jsx)("div", {
6164
6269
  className: "flex items-center gap-2",
6165
- children: g.map((e, n) => typeof e == "number" ? /* @__PURE__ */ (0, b.jsx)(rn, {
6270
+ children: g.map((e, n) => typeof e == "number" ? /* @__PURE__ */ (0, b.jsx)(pn, {
6166
6271
  shape: "square",
6167
6272
  size: "sm",
6168
6273
  variant: e === h ? "solid" : "outline",
@@ -6176,7 +6281,7 @@ function pc({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
6176
6281
  children: "..."
6177
6282
  }, `${e}-${n}`))
6178
6283
  }),
6179
- /* @__PURE__ */ (0, b.jsx)(rn, {
6284
+ /* @__PURE__ */ (0, b.jsx)(pn, {
6180
6285
  variant: "outline",
6181
6286
  color: t,
6182
6287
  size: "sm",
@@ -6189,10 +6294,10 @@ function pc({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
6189
6294
  }
6190
6295
  //#endregion
6191
6296
  //#region src/lib/components/popover/Popover.jsx
6192
- var mc = {
6297
+ var Cc = {
6193
6298
  wrapper: "inline-flex",
6194
6299
  panel: ["z-50 w-max max-w-[20rem] break-words rounded-[1rem] border px-3 py-2", "text-sm leading-6 outline-none"].join(" ")
6195
- }, hc = {
6300
+ }, wc = {
6196
6301
  light: {
6197
6302
  default: {
6198
6303
  panel: "border-slate-200 bg-white text-slate-700",
@@ -6235,14 +6340,14 @@ var mc = {
6235
6340
  arrowStroke: "#bae6fd"
6236
6341
  },
6237
6342
  light: {
6238
- panel: "border-slate-200 bg-white text-slate-700",
6343
+ panel: "border-neutral-200 bg-white text-neutral-700",
6239
6344
  arrowFill: "#ffffff",
6240
- arrowStroke: "#e2e8f0"
6345
+ arrowStroke: "#e5e5e5"
6241
6346
  },
6242
6347
  dark: {
6243
- panel: "border-slate-950 bg-slate-950 text-white",
6244
- arrowFill: "#020617",
6245
- arrowStroke: "#020617"
6348
+ panel: "border-neutral-950 bg-neutral-950 text-white",
6349
+ arrowFill: "#0a0a0a",
6350
+ arrowStroke: "#0a0a0a"
6246
6351
  }
6247
6352
  },
6248
6353
  dark: {
@@ -6257,51 +6362,51 @@ var mc = {
6257
6362
  arrowStroke: "#404040"
6258
6363
  },
6259
6364
  primary: {
6260
- panel: "border-blue-500/40 bg-blue-500/10 text-blue-100",
6365
+ panel: "border-blue-800 bg-blue-950 text-blue-100",
6261
6366
  arrowFill: "#172554",
6262
- arrowStroke: "#3b82f6"
6367
+ arrowStroke: "#1e40af"
6263
6368
  },
6264
6369
  brand: {
6265
- panel: "border-brand-500/40 bg-brand-500/10 text-brand-100",
6370
+ panel: "border-brand-800 bg-brand-950 text-brand-100",
6266
6371
  arrowFill: "var(--color-brand-950)",
6267
- arrowStroke: "var(--color-brand-500)"
6372
+ arrowStroke: "var(--color-brand-800)"
6268
6373
  },
6269
6374
  success: {
6270
- panel: "border-emerald-500/40 bg-emerald-500/10 text-emerald-100",
6375
+ panel: "border-emerald-800 bg-emerald-950 text-emerald-100",
6271
6376
  arrowFill: "#022c22",
6272
- arrowStroke: "#34d399"
6377
+ arrowStroke: "#065f46"
6273
6378
  },
6274
6379
  danger: {
6275
- panel: "border-red-500/40 bg-red-500/10 text-red-100",
6380
+ panel: "border-red-800 bg-red-950 text-red-100",
6276
6381
  arrowFill: "#450a0a",
6277
- arrowStroke: "#f87171"
6382
+ arrowStroke: "#991b1b"
6278
6383
  },
6279
6384
  warning: {
6280
- panel: "border-amber-500/40 bg-amber-500/10 text-amber-100",
6385
+ panel: "border-amber-800 bg-amber-950 text-amber-100",
6281
6386
  arrowFill: "#451a03",
6282
- arrowStroke: "#fbbf24"
6387
+ arrowStroke: "#92400e"
6283
6388
  },
6284
6389
  info: {
6285
- panel: "border-sky-500/40 bg-sky-500/10 text-sky-100",
6390
+ panel: "border-sky-800 bg-sky-950 text-sky-100",
6286
6391
  arrowFill: "#082f49",
6287
- arrowStroke: "#38bdf8"
6392
+ arrowStroke: "#075985"
6288
6393
  },
6289
6394
  light: {
6290
- panel: "border-slate-300 bg-slate-50 text-slate-900",
6291
- arrowFill: "#f8fafc",
6292
- arrowStroke: "#cbd5e1"
6395
+ panel: "border-neutral-300 bg-neutral-50 text-neutral-900",
6396
+ arrowFill: "#fafafa",
6397
+ arrowStroke: "#d4d4d4"
6293
6398
  },
6294
6399
  dark: {
6295
- panel: "border-slate-700 bg-slate-900 text-white",
6296
- arrowFill: "#0f172a",
6297
- arrowStroke: "#334155"
6400
+ panel: "border-neutral-700 bg-neutral-900 text-white",
6401
+ arrowFill: "#171717",
6402
+ arrowStroke: "#404040"
6298
6403
  }
6299
6404
  }
6300
6405
  };
6301
- function gc(e) {
6406
+ function Tc(e) {
6302
6407
  return e === "dark" ? "dark" : "light";
6303
6408
  }
6304
- function _c(e) {
6409
+ function Ec(e) {
6305
6410
  switch (e) {
6306
6411
  case "top-start": return "bottom left";
6307
6412
  case "top-end": return "bottom right";
@@ -6318,7 +6423,7 @@ function _c(e) {
6318
6423
  default: return "top center";
6319
6424
  }
6320
6425
  }
6321
- function vc(e) {
6426
+ function Dc(e) {
6322
6427
  switch (e) {
6323
6428
  case "top": return "translateY(4px) scale(0.98)";
6324
6429
  case "bottom": return "translateY(-4px) scale(0.98)";
@@ -6327,49 +6432,49 @@ function vc(e) {
6327
6432
  default: return "scale(0.98)";
6328
6433
  }
6329
6434
  }
6330
- function yc(e) {
6435
+ function Oc(e) {
6331
6436
  return !!(e?.props?.disabled || e?.props?.["aria-disabled"] === !0);
6332
6437
  }
6333
- function bc({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = 1, arrowStroke: i, arrowTipRadius: a = 2, arrowWidth: c = 16, autoCloseMs: u = 0, children: d, className: f = "", color: p = "default", content: h, offset: g = 8, placement: _ = "top", showArrow: v = !0, trigger: y = "hover", usePortal: x = !0, zIndex: C = 2e3 }) {
6334
- let [w, T] = m(!1), [E, D] = m(null), O = gc(S()), k = hc[O][p] ? p : "default", A = hc[O][k], j = y === "hover", { refs: M, floatingStyles: N, context: P } = Io({
6438
+ function kc({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = .75, arrowStroke: i, arrowTipRadius: a = 2, arrowWidth: c = 16, autoCloseMs: u = 0, children: d, className: f = "", color: p = "default", content: h, offset: g = 8, placement: _ = "top", showArrow: v = !0, trigger: y = "hover", usePortal: x = !0, zIndex: C = 2e3 }) {
6439
+ let [w, T] = m(!1), [E, D] = m(null), O = Tc(S()), k = wc[O][p] ? p : "default", A = wc[O][k], j = y === "hover", { refs: M, floatingStyles: N, context: P } = Go({
6335
6440
  open: w,
6336
6441
  onOpenChange: T,
6337
6442
  placement: _,
6338
6443
  strategy: "fixed",
6339
6444
  transform: !1,
6340
- whileElementsMounted: Ca,
6445
+ whileElementsMounted: Ma,
6341
6446
  middleware: [
6342
- La(g),
6343
- za({ padding: 8 }),
6344
- Ra({ padding: 8 }),
6345
- ...v ? [Va({ element: E })] : []
6447
+ Ka(g),
6448
+ Ja({ padding: 8 }),
6449
+ qa({ padding: 8 }),
6450
+ ...v ? [Xa({ element: E })] : []
6346
6451
  ]
6347
- }), { getReferenceProps: F, getFloatingProps: I } = Bo([
6348
- mo(P, {
6452
+ }), { getReferenceProps: F, getFloatingProps: I } = Yo([
6453
+ Co(P, {
6349
6454
  enabled: j,
6350
6455
  move: !1,
6351
6456
  delay: {
6352
6457
  open: 80,
6353
6458
  close: 220
6354
6459
  },
6355
- handleClose: is()
6460
+ handleClose: ps()
6356
6461
  }),
6357
- Ao(P, { enabled: !j }),
6358
- Ro(P),
6359
- Po(P),
6360
- Yo(P, { role: j ? "tooltip" : "dialog" })
6462
+ zo(P, { enabled: !j }),
6463
+ qo(P),
6464
+ Uo(P),
6465
+ is(P, { role: j ? "tooltip" : "dialog" })
6361
6466
  ]), L = s((e) => {
6362
6467
  M.setReference(e);
6363
6468
  }, [M]), ee = s((e) => {
6364
6469
  M.setFloating(e);
6365
- }, [M]), { isMounted: te, styles: ne } = es(P, {
6470
+ }, [M]), { isMounted: te, styles: ne } = ls(P, {
6366
6471
  duration: {
6367
6472
  open: 120,
6368
6473
  close: 90
6369
6474
  },
6370
6475
  initial: ({ side: e }) => ({
6371
6476
  opacity: 0,
6372
- transform: vc(e)
6477
+ transform: Dc(e)
6373
6478
  }),
6374
6479
  open: {
6375
6480
  opacity: 1,
@@ -6377,9 +6482,9 @@ function bc({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = 1, arrowSt
6377
6482
  },
6378
6483
  close: ({ side: e }) => ({
6379
6484
  opacity: 0,
6380
- transform: vc(e)
6485
+ transform: Dc(e)
6381
6486
  }),
6382
- common: { transformOrigin: _c(_) }
6487
+ common: { transformOrigin: Ec(_) }
6383
6488
  });
6384
6489
  l(() => {
6385
6490
  if (!w || !(u > 0)) return;
@@ -6392,26 +6497,26 @@ function bc({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = 1, arrowSt
6392
6497
  }, [u, w]);
6393
6498
  let R = o(d) ? /* @__PURE__ */ (0, b.jsx)("span", {
6394
6499
  ref: L,
6395
- className: mc.wrapper,
6396
- ...yc(d) ? { "data-state": w ? "open" : "closed" } : F({ "data-state": w ? "open" : "closed" }),
6500
+ className: Cc.wrapper,
6501
+ ...Oc(d) ? { "data-state": w ? "open" : "closed" } : F({ "data-state": w ? "open" : "closed" }),
6397
6502
  children: r(d, { className: K(d.props.className) })
6398
6503
  }) : /* @__PURE__ */ (0, b.jsx)("span", {
6399
6504
  ref: L,
6400
- className: mc.wrapper,
6505
+ className: Cc.wrapper,
6401
6506
  ...F({ "data-state": w ? "open" : "closed" }),
6402
6507
  children: d
6403
6508
  });
6404
6509
  if (!te) return R;
6405
6510
  let z = t ?? A.arrowFill, B = i ?? A.arrowStroke, re = /* @__PURE__ */ (0, b.jsxs)("div", {
6406
6511
  ref: ee,
6407
- className: K(mc.panel, A.panel, f),
6512
+ className: K(Cc.panel, A.panel, f),
6408
6513
  style: {
6409
6514
  ...N,
6410
6515
  ...ne,
6411
6516
  zIndex: C
6412
6517
  },
6413
6518
  ...I({ "data-state": w ? "open" : "closed" }),
6414
- children: [h, v ? /* @__PURE__ */ (0, b.jsx)(ro, {
6519
+ children: [h, v ? /* @__PURE__ */ (0, b.jsx)(po, {
6415
6520
  ref: D,
6416
6521
  context: P,
6417
6522
  width: c,
@@ -6423,11 +6528,11 @@ function bc({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = 1, arrowSt
6423
6528
  className: "pointer-events-none"
6424
6529
  }) : null]
6425
6530
  });
6426
- return /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [R, x ? /* @__PURE__ */ (0, b.jsx)(To, { children: re }) : re] });
6531
+ return /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [R, x ? /* @__PURE__ */ (0, b.jsx)(Po, { children: re }) : re] });
6427
6532
  }
6428
6533
  //#endregion
6429
6534
  //#region src/lib/components/radio/Radio.jsx
6430
- var xc = {
6535
+ var Ac = {
6431
6536
  light: {
6432
6537
  ring: "border-slate-300 bg-white",
6433
6538
  focus: "peer-focus-visible:outline-slate-300",
@@ -6500,7 +6605,7 @@ var xc = {
6500
6605
  invalid: "border-red-500/60 peer-checked:border-red-300",
6501
6606
  invalidDot: "bg-red-300"
6502
6607
  }
6503
- }, Sc = {
6608
+ }, jc = {
6504
6609
  sm: {
6505
6610
  root: "size-3.5",
6506
6611
  control: "size-3.5",
@@ -6512,11 +6617,11 @@ var xc = {
6512
6617
  dot: "size-2"
6513
6618
  }
6514
6619
  };
6515
- function Cc(e) {
6620
+ function Mc(e) {
6516
6621
  return e === "dark" ? "dark" : "light";
6517
6622
  }
6518
- var wc = a(function({ className: e, color: t = "neutral", containerClassName: n, disabled: r = !1, id: i, invalid: a = !1, label: o, labelClassName: s, required: c = !1, size: l = "md", ...d }, f) {
6519
- let p = u(), m = xc[Cc(S())], h = fn(), g = a || h?.invalid, _ = r || h?.disabled, v = c || h?.required, y = m.colors[t] ? t : "neutral", x = Sc[Sc[l] ? l : "md"], C = i ?? h?.controlId ?? p, w = [
6623
+ var Nc = a(function({ className: e, color: t = "neutral", containerClassName: n, disabled: r = !1, id: i, invalid: a = !1, label: o, labelClassName: s, required: c = !1, size: l = "md", ...d }, f) {
6624
+ let p = u(), m = Ac[Mc(S())], h = xn(), g = a || h?.invalid, _ = r || h?.disabled, v = c || h?.required, y = m.colors[t] ? t : "neutral", x = jc[jc[l] ? l : "md"], C = i ?? h?.controlId ?? p, w = [
6520
6625
  d["aria-describedby"],
6521
6626
  h?.descriptionId,
6522
6627
  g ? h?.messageId : null
@@ -6540,13 +6645,13 @@ var wc = a(function({ className: e, color: t = "neutral", containerClassName: n,
6540
6645
  });
6541
6646
  return o ? /* @__PURE__ */ (0, b.jsxs)("span", {
6542
6647
  className: K("inline-flex items-center gap-3", n),
6543
- children: [T, /* @__PURE__ */ (0, b.jsx)(hn, {
6648
+ children: [T, /* @__PURE__ */ (0, b.jsx)(wn, {
6544
6649
  htmlFor: C,
6545
6650
  className: s,
6546
6651
  children: o
6547
6652
  })]
6548
6653
  }) : T;
6549
- }), Tc = {
6654
+ }), Pc = {
6550
6655
  wrapper: "relative w-full",
6551
6656
  trigger: [
6552
6657
  "flex w-full items-center justify-between gap-3 border bg-transparent px-3.5 text-sm outline-none",
@@ -6557,11 +6662,11 @@ var wc = a(function({ className: e, color: t = "neutral", containerClassName: n,
6557
6662
  value: "min-w-0 truncate text-left",
6558
6663
  icon: "shrink-0 text-current/55 transition-transform duration-200",
6559
6664
  content: "max-h-72 overflow-y-auto"
6560
- }, Ec = "bottom-start", Dc = 140, Oc = 100, kc = {
6665
+ }, Fc = "bottom-start", Ic = 140, Lc = 100, Rc = {
6561
6666
  sm: "h-9",
6562
6667
  md: "h-11",
6563
6668
  lg: "h-12 text-base"
6564
- }, Ac = {
6669
+ }, zc = {
6565
6670
  light: {
6566
6671
  base: "border-slate-200 bg-white text-slate-950 focus-visible:border-slate-300 focus-visible:ring-slate-200/70",
6567
6672
  hover: "hover:border-slate-300",
@@ -6577,15 +6682,15 @@ var wc = a(function({ className: e, color: t = "neutral", containerClassName: n,
6577
6682
  selectedIndicator: "text-stone-50"
6578
6683
  }
6579
6684
  };
6580
- function jc(e) {
6685
+ function Bc(e) {
6581
6686
  return e == null ? "" : String(e);
6582
6687
  }
6583
- function Mc(e) {
6688
+ function Vc(e) {
6584
6689
  return typeof e == "string" || typeof e == "number" ? String(e) : e;
6585
6690
  }
6586
- function Nc(e) {
6691
+ function Hc(e) {
6587
6692
  return t.toArray(e).filter((e) => o(e) && e.type === "option").map((e, t) => {
6588
- let n = Mc(e.props.children), r = typeof e.props.children == "string" || typeof e.props.children == "number" ? String(e.props.children) : "", i = e.props.value === void 0 ? r || String(t) : jc(e.props.value);
6693
+ let n = Vc(e.props.children), r = typeof e.props.children == "string" || typeof e.props.children == "number" ? String(e.props.children) : "", i = e.props.value === void 0 ? r || String(t) : Bc(e.props.value);
6589
6694
  return {
6590
6695
  disabled: !!e.props.disabled,
6591
6696
  key: e.key ?? `${i}-${t}`,
@@ -6594,16 +6699,16 @@ function Nc(e) {
6594
6699
  };
6595
6700
  });
6596
6701
  }
6597
- function Pc({ controlledValue: e, defaultValue: t, options: n, placeholder: r }) {
6598
- return e === void 0 ? t === void 0 ? r ? "" : n[0]?.value ?? "" : jc(t) : jc(e);
6702
+ function Uc({ controlledValue: e, defaultValue: t, options: n, placeholder: r }) {
6703
+ return e === void 0 ? t === void 0 ? r ? "" : n[0]?.value ?? "" : Bc(t) : Bc(e);
6599
6704
  }
6600
- function Fc({ nextOpen: e, selectedIndex: t, firstEnabledIndex: n }) {
6705
+ function Wc({ nextOpen: e, selectedIndex: t, firstEnabledIndex: n }) {
6601
6706
  return e ? t >= 0 ? t : n : null;
6602
6707
  }
6603
- function Ic(e, t) {
6708
+ function Gc(e, t) {
6604
6709
  typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
6605
6710
  }
6606
- function Lc({ id: e, name: t, nativeEvent: n, value: r }) {
6711
+ function Kc({ id: e, name: t, nativeEvent: n, value: r }) {
6607
6712
  return {
6608
6713
  type: "change",
6609
6714
  nativeEvent: n,
@@ -6625,54 +6730,54 @@ function Lc({ id: e, name: t, nativeEvent: n, value: r }) {
6625
6730
  }
6626
6731
  };
6627
6732
  }
6628
- var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r = !1, id: i, invalid: a = !1, name: o, onChange: c, onValueChange: l, placeholder: u, required: d = !1, size: h = "md", usePortal: g = !0, value: _, ...v }, y) {
6629
- let x = ls(S()), C = Ac[x], w = fn(), T = f(() => Nc(e), [e]), [E, D] = m(Pc({
6733
+ var qc = a(function({ children: e, className: t, defaultValue: n, disabled: r = !1, id: i, invalid: a = !1, name: o, onChange: c, onValueChange: l, placeholder: u, required: d = !1, size: h = "md", usePortal: g = !0, value: _, ...v }, y) {
6734
+ let x = vs(S()), C = zc[x], w = xn(), T = f(() => Hc(e), [e]), [E, D] = m(Uc({
6630
6735
  controlledValue: _,
6631
6736
  defaultValue: n,
6632
6737
  options: T,
6633
6738
  placeholder: u
6634
- })), [O, k] = m(!1), [A, j] = m(null), M = p([]), N = _ === void 0 ? E : jc(_), P = T.findIndex((e) => e.value === N), F = P >= 0 ? T[P] : null, I = a || w?.invalid, L = r || w?.disabled, ee = d || w?.required, te = i ?? w?.controlId, ne = [
6739
+ })), [O, k] = m(!1), [A, j] = m(null), M = p([]), N = _ === void 0 ? E : Bc(_), P = T.findIndex((e) => e.value === N), F = P >= 0 ? T[P] : null, I = a || w?.invalid, L = r || w?.disabled, ee = d || w?.required, te = i ?? w?.controlId, ne = [
6635
6740
  v["aria-describedby"],
6636
6741
  w?.descriptionId,
6637
6742
  I ? w?.messageId : null
6638
6743
  ].filter(Boolean).join(" ") || void 0, R = T.findIndex((e) => !e.disabled), z = s((e) => {
6639
- k(e), j(Fc({
6744
+ k(e), j(Wc({
6640
6745
  nextOpen: e,
6641
6746
  selectedIndex: P,
6642
6747
  firstEnabledIndex: R
6643
6748
  }));
6644
- }, [R, P]), { refs: B, floatingStyles: re, context: V } = Io({
6749
+ }, [R, P]), { refs: B, floatingStyles: re, context: V } = Go({
6645
6750
  open: O,
6646
6751
  onOpenChange: z,
6647
- placement: Ec,
6752
+ placement: Fc,
6648
6753
  transform: !1,
6649
6754
  middleware: [
6650
- La(8),
6651
- za({ padding: 8 }),
6652
- Ra({ padding: 8 }),
6653
- Ba({ apply({ rects: e, elements: t }) {
6755
+ Ka(8),
6756
+ Ja({ padding: 8 }),
6757
+ qa({ padding: 8 }),
6758
+ Ya({ apply({ rects: e, elements: t }) {
6654
6759
  Object.assign(t.floating.style, { width: `${e.reference.width}px` });
6655
6760
  } })
6656
6761
  ],
6657
- whileElementsMounted: Ca
6658
- }), ie = Bo([
6659
- Po(V),
6660
- Yo(V, { role: "listbox" }),
6661
- qo(V, {
6762
+ whileElementsMounted: Ma
6763
+ }), ie = Yo([
6764
+ Uo(V),
6765
+ is(V, { role: "listbox" }),
6766
+ ns(V, {
6662
6767
  activeIndex: A,
6663
6768
  listRef: M,
6664
6769
  loop: !0,
6665
6770
  onNavigate: j,
6666
6771
  selectedIndex: P
6667
6772
  })
6668
- ]), { isMounted: ae, styles: oe } = es(V, {
6773
+ ]), { isMounted: ae, styles: oe } = ls(V, {
6669
6774
  duration: {
6670
- open: Dc,
6671
- close: Oc
6775
+ open: Ic,
6776
+ close: Lc
6672
6777
  },
6673
6778
  initial: ({ side: e }) => ({
6674
6779
  opacity: 0,
6675
- transform: ds(e)
6780
+ transform: bs(e)
6676
6781
  }),
6677
6782
  open: {
6678
6783
  opacity: 1,
@@ -6680,15 +6785,15 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6680
6785
  },
6681
6786
  close: ({ side: e }) => ({
6682
6787
  opacity: 0,
6683
- transform: ds(e)
6788
+ transform: bs(e)
6684
6789
  }),
6685
- common: { transformOrigin: us(Ec) }
6790
+ common: { transformOrigin: ys(Fc) }
6686
6791
  }), se = s((e) => {
6687
6792
  B.setFloating(e);
6688
6793
  }, [B]), ce = s((e) => {
6689
- B.setReference(e), Ic(y, e);
6794
+ B.setReference(e), Gc(y, e);
6690
6795
  }, [y, B]), le = s((e, t) => {
6691
- _ === void 0 && D(e), l?.(e), c?.(Lc({
6796
+ _ === void 0 && D(e), l?.(e), c?.(Kc({
6692
6797
  id: te,
6693
6798
  name: o,
6694
6799
  nativeEvent: t,
@@ -6731,7 +6836,7 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6731
6836
  ie
6732
6837
  ]), H = F?.label ?? u ?? "Selecciona una opción", he = ae ? /* @__PURE__ */ (0, b.jsx)("ul", {
6733
6838
  ref: se,
6734
- className: K(as.layout, ss[x], Tc.content),
6839
+ className: K(ms.layout, gs[x], Pc.content),
6735
6840
  style: {
6736
6841
  ...re,
6737
6842
  ...oe
@@ -6749,7 +6854,7 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6749
6854
  role: "option",
6750
6855
  "aria-selected": n,
6751
6856
  disabled: e.disabled,
6752
- className: K(os.base, cs[x].default, n && cs[x].selected, e.disabled && cs[x].disabled),
6857
+ className: K(hs.base, _s[x].default, n && _s[x].selected, e.disabled && _s[x].disabled),
6753
6858
  ...me(e, t),
6754
6859
  children: [/* @__PURE__ */ (0, b.jsx)("span", {
6755
6860
  className: "min-w-0 flex-1 truncate",
@@ -6765,7 +6870,7 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6765
6870
  })
6766
6871
  }) : null;
6767
6872
  return /* @__PURE__ */ (0, b.jsxs)("span", {
6768
- className: Tc.wrapper,
6873
+ className: Pc.wrapper,
6769
6874
  children: [
6770
6875
  o ? /* @__PURE__ */ (0, b.jsx)("input", {
6771
6876
  type: "hidden",
@@ -6782,7 +6887,7 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6782
6887
  "aria-haspopup": "listbox",
6783
6888
  "aria-invalid": I || void 0,
6784
6889
  "aria-required": ee || void 0,
6785
- className: K(Tc.trigger, ct(h), kc[h] ?? kc.md, I ? C.invalid : C.base, !L && C.hover, t),
6890
+ className: K(Pc.trigger, ct(h), Rc[h] ?? Rc.md, I ? C.invalid : C.base, !L && C.hover, t),
6786
6891
  ...ie.getReferenceProps({
6787
6892
  ...v,
6788
6893
  onClick(e) {
@@ -6793,10 +6898,10 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6793
6898
  }
6794
6899
  }),
6795
6900
  children: [/* @__PURE__ */ (0, b.jsx)("span", {
6796
- className: K(Tc.value, !F && C.placeholder),
6901
+ className: K(Pc.value, !F && C.placeholder),
6797
6902
  children: H
6798
6903
  }), /* @__PURE__ */ (0, b.jsx)("span", {
6799
- className: K(Tc.icon, O && "rotate-180"),
6904
+ className: K(Pc.icon, O && "rotate-180"),
6800
6905
  "aria-hidden": "true",
6801
6906
  children: /* @__PURE__ */ (0, b.jsx)("svg", {
6802
6907
  viewBox: "0 0 20 20",
@@ -6805,29 +6910,29 @@ var Rc = a(function({ children: e, className: t, defaultValue: n, disabled: r =
6805
6910
  })
6806
6911
  })]
6807
6912
  }),
6808
- g ? /* @__PURE__ */ (0, b.jsx)(To, { children: he }) : he
6913
+ g ? /* @__PURE__ */ (0, b.jsx)(Po, { children: he }) : he
6809
6914
  ]
6810
6915
  });
6811
- }), zc = {
6916
+ }), Jc = {
6812
6917
  light: "bg-slate-200",
6813
6918
  dark: "bg-zinc-800"
6814
- }, Bc = {
6919
+ }, Yc = {
6815
6920
  line: "h-4 w-full rounded-full",
6816
6921
  rect: "h-24 w-full rounded-[1rem]",
6817
6922
  circle: "size-12 rounded-full"
6818
6923
  };
6819
- function Vc(e) {
6924
+ function Xc(e) {
6820
6925
  return e === "dark" ? "dark" : "light";
6821
6926
  }
6822
- var Hc = a(function({ animated: e = !0, className: t, shape: n = "line", ...r }, i) {
6823
- let a = Vc(S());
6927
+ var Zc = a(function({ animated: e = !0, className: t, shape: n = "line", ...r }, i) {
6928
+ let a = Xc(S());
6824
6929
  return /* @__PURE__ */ (0, b.jsx)("div", {
6825
6930
  ref: i,
6826
6931
  "aria-hidden": "true",
6827
- className: K(Bc[n] ?? Bc.line, zc[a], e && "animate-pulse", t),
6932
+ className: K(Yc[n] ?? Yc.line, Jc[a], e && "animate-pulse", t),
6828
6933
  ...r
6829
6934
  });
6830
- }), Uc = {
6935
+ }), Qc = {
6831
6936
  root: [
6832
6937
  "relative inline-flex shrink-0 cursor-pointer items-center rounded-full border outline-none",
6833
6938
  "transition-[background-color,border-color] duration-200",
@@ -6835,7 +6940,7 @@ var Hc = a(function({ animated: e = !0, className: t, shape: n = "line", ...r },
6835
6940
  "disabled:cursor-not-allowed disabled:opacity-60"
6836
6941
  ].join(" "),
6837
6942
  thumb: ["pointer-events-none inline-flex rounded-full border", "transition-transform duration-200"].join(" ")
6838
- }, Wc = {
6943
+ }, $c = {
6839
6944
  sm: {
6840
6945
  root: "h-5 w-9",
6841
6946
  thumb: "size-4",
@@ -6848,7 +6953,7 @@ var Hc = a(function({ animated: e = !0, className: t, shape: n = "line", ...r },
6848
6953
  checked: "translate-x-5",
6849
6954
  unchecked: "translate-x-0.5"
6850
6955
  }
6851
- }, Gc = {
6956
+ }, el = {
6852
6957
  light: {
6853
6958
  idle: "border-slate-300 bg-slate-200 focus-visible:outline-slate-300",
6854
6959
  checked: {
@@ -6876,11 +6981,11 @@ var Hc = a(function({ animated: e = !0, className: t, shape: n = "line", ...r },
6876
6981
  thumb: "border-zinc-950 bg-zinc-950"
6877
6982
  }
6878
6983
  };
6879
- function Kc(e) {
6984
+ function tl(e) {
6880
6985
  return e === "dark" ? "dark" : "light";
6881
6986
  }
6882
- var qc = a(function({ checked: e, className: t, color: n = "neutral", containerClassName: r, defaultChecked: i = !1, disabled: a = !1, id: o, invalid: s = !1, label: c, labelClassName: l, name: d, onCheckedChange: p, required: h = !1, size: g = "md", value: _ = "on", ...v }, y) {
6883
- let x = u(), C = e !== void 0, [w, T] = m(i), E = C ? e : w, D = Gc[Kc(S())], O = fn(), k = a || O?.disabled, A = h || O?.required, j = s || O?.invalid, M = D.checked[n] ? n : "neutral", N = Wc[g] ? g : "md", P = o ?? O?.controlId ?? x, F = [
6987
+ var nl = a(function({ checked: e, className: t, color: n = "neutral", containerClassName: r, defaultChecked: i = !1, disabled: a = !1, id: o, invalid: s = !1, label: c, labelClassName: l, name: d, onCheckedChange: p, required: h = !1, size: g = "md", value: _ = "on", ...v }, y) {
6988
+ let x = u(), C = e !== void 0, [w, T] = m(i), E = C ? e : w, D = el[tl(S())], O = xn(), k = a || O?.disabled, A = h || O?.required, j = s || O?.invalid, M = D.checked[n] ? n : "neutral", N = $c[g] ? g : "md", P = o ?? O?.controlId ?? x, F = [
6884
6989
  v["aria-describedby"],
6885
6990
  O?.descriptionId,
6886
6991
  j ? O?.messageId : null
@@ -6908,10 +7013,10 @@ var qc = a(function({ checked: e, className: t, color: n = "neutral", containerC
6908
7013
  "aria-describedby": F,
6909
7014
  disabled: k,
6910
7015
  "data-state": E ? "checked" : "unchecked",
6911
- className: K(Uc.root, Wc[N].root, E ? D.checked[M] : D.idle, t),
7016
+ className: K(Qc.root, $c[N].root, E ? D.checked[M] : D.idle, t),
6912
7017
  onClick: L,
6913
7018
  ...v,
6914
- children: /* @__PURE__ */ (0, b.jsx)("span", { className: K(Uc.thumb, Wc[N].thumb, D.thumb, E ? Wc[N].checked : Wc[N].unchecked) })
7019
+ children: /* @__PURE__ */ (0, b.jsx)("span", { className: K(Qc.thumb, $c[N].thumb, D.thumb, E ? $c[N].checked : $c[N].unchecked) })
6915
7020
  }), I ? /* @__PURE__ */ (0, b.jsx)("input", {
6916
7021
  type: "checkbox",
6917
7022
  hidden: !0,
@@ -6921,25 +7026,25 @@ var qc = a(function({ checked: e, className: t, color: n = "neutral", containerC
6921
7026
  }) : null] });
6922
7027
  return c ? /* @__PURE__ */ (0, b.jsxs)("span", {
6923
7028
  className: K("inline-flex items-center gap-3", r),
6924
- children: [ee, /* @__PURE__ */ (0, b.jsx)(hn, {
7029
+ children: [ee, /* @__PURE__ */ (0, b.jsx)(wn, {
6925
7030
  htmlFor: P,
6926
7031
  className: l,
6927
7032
  children: c
6928
7033
  })]
6929
7034
  }) : ee;
6930
- }), Jc = i(null);
6931
- function Yc(e) {
6932
- let t = c(Jc);
7035
+ }), rl = i(null);
7036
+ function il(e) {
7037
+ let t = c(rl);
6933
7038
  if (!t) throw Error(`${e} debe usarse dentro de <Tabs>.`);
6934
7039
  return t;
6935
7040
  }
6936
7041
  //#endregion
6937
7042
  //#region src/lib/components/tabs/Tabs.jsx
6938
- var Xc = { base: "w-full" }, Zc = {
7043
+ var al = { base: "w-full" }, ol = {
6939
7044
  base: ["inline-flex items-center gap-1 border", "w-fit"].join(" "),
6940
7045
  horizontal: "flex-row",
6941
7046
  vertical: "flex-col items-stretch"
6942
- }, Qc = {
7047
+ }, sl = {
6943
7048
  base: [
6944
7049
  "inline-flex items-center justify-center border border-transparent font-medium",
6945
7050
  "transition-colors outline-none cursor-pointer",
@@ -6947,7 +7052,7 @@ var Xc = { base: "w-full" }, Zc = {
6947
7052
  "disabled:cursor-not-allowed disabled:opacity-50"
6948
7053
  ].join(" "),
6949
7054
  vertical: "justify-start text-left"
6950
- }, $c = {
7055
+ }, cl = {
6951
7056
  xs: {
6952
7057
  list: "min-h-9 rounded-[0.9rem] p-1",
6953
7058
  trigger: "min-w-[4.75rem] rounded-[0.7rem] px-2.5 py-1 text-xs"
@@ -6964,7 +7069,7 @@ var Xc = { base: "w-full" }, Zc = {
6964
7069
  list: "min-h-12 rounded-[1.1rem] p-1.5",
6965
7070
  trigger: "min-w-[7.5rem] rounded-[0.95rem] px-4 py-2.5 text-base"
6966
7071
  }
6967
- }, el = { base: "mt-4 outline-none" }, tl = {
7072
+ }, ll = { base: "mt-4 outline-none" }, ul = {
6968
7073
  light: {
6969
7074
  list: "border-slate-200 bg-slate-100/80",
6970
7075
  triggerIdle: "text-slate-600 hover:bg-white hover:text-slate-950 focus-visible:outline-slate-300",
@@ -6986,32 +7091,32 @@ var Xc = { base: "w-full" }, Zc = {
6986
7091
  triggerIdle: "text-stone-300 hover:bg-zinc-950 hover:text-stone-50 focus-visible:outline-zinc-700",
6987
7092
  triggerActive: {
6988
7093
  neutral: "border-zinc-800 bg-zinc-950 text-stone-50",
6989
- primary: "border-blue-500/40 bg-blue-500/10 text-blue-200",
6990
- brand: "border-brand-500/40 bg-brand-500/10 text-brand-200",
6991
- success: "border-emerald-500/40 bg-emerald-500/10 text-emerald-200",
6992
- danger: "border-red-500/40 bg-red-500/10 text-red-200",
6993
- warning: "border-amber-500/40 bg-amber-500/10 text-amber-200",
6994
- info: "border-sky-500/40 bg-sky-500/10 text-sky-200",
6995
- light: "border-slate-500/50 bg-slate-100/10 text-slate-50",
7094
+ primary: "border-blue-800 bg-blue-950 text-blue-200",
7095
+ brand: "border-brand-800 bg-brand-950 text-brand-200",
7096
+ success: "border-emerald-800 bg-emerald-950 text-emerald-200",
7097
+ danger: "border-red-800 bg-red-950 text-red-200",
7098
+ warning: "border-amber-800 bg-amber-950 text-amber-200",
7099
+ info: "border-sky-800 bg-sky-950 text-sky-200",
7100
+ light: "border-slate-600 bg-slate-800 text-slate-50",
6996
7101
  dark: "border-slate-700 bg-slate-900 text-white"
6997
7102
  },
6998
7103
  content: "text-stone-300"
6999
7104
  }
7000
7105
  };
7001
- function nl(e) {
7106
+ function dl(e) {
7002
7107
  return e === "dark" ? "dark" : "light";
7003
7108
  }
7004
- function rl(e) {
7109
+ function fl(e) {
7005
7110
  return Array.from(e.querySelectorAll("[role=\"tab\"]")).filter((e) => e.getAttribute("aria-disabled") !== "true" && !e.disabled);
7006
7111
  }
7007
- function il({ activationMode: e = "automatic", children: t, className: n, color: r = "neutral", defaultValue: i, onValueChange: a, orientation: o = "horizontal", size: c = "md", value: l }) {
7112
+ function pl({ activationMode: e = "automatic", children: t, className: n, color: r = "neutral", defaultValue: i, onValueChange: a, orientation: o = "horizontal", size: c = "md", value: l }) {
7008
7113
  let d = u(), p = l !== void 0, [h, g] = m(i), _ = p ? l : h, v = s((e) => {
7009
7114
  p || g(e), e !== _ && a?.(e);
7010
7115
  }, [
7011
7116
  p,
7012
7117
  a,
7013
7118
  _
7014
- ]), y = o === "vertical" ? "vertical" : "horizontal", x = e === "manual" ? "manual" : "automatic", S = Object.hasOwn($c, c) ? c : "md", C = tl.light.triggerActive[r] ? r : "neutral", w = f(() => ({
7119
+ ]), y = o === "vertical" ? "vertical" : "horizontal", x = e === "manual" ? "manual" : "automatic", S = Object.hasOwn(cl, c) ? c : "md", C = ul.light.triggerActive[r] ? r : "neutral", w = f(() => ({
7015
7120
  activationMode: x,
7016
7121
  baseId: d,
7017
7122
  color: C,
@@ -7028,31 +7133,31 @@ function il({ activationMode: e = "automatic", children: t, className: n, color:
7028
7133
  v,
7029
7134
  _
7030
7135
  ]);
7031
- return /* @__PURE__ */ (0, b.jsx)(Jc.Provider, {
7136
+ return /* @__PURE__ */ (0, b.jsx)(rl.Provider, {
7032
7137
  value: w,
7033
7138
  children: /* @__PURE__ */ (0, b.jsx)("div", {
7034
7139
  "data-orientation": y,
7035
7140
  "data-size": S,
7036
- className: K(Xc.base, n),
7141
+ className: K(al.base, n),
7037
7142
  children: t
7038
7143
  })
7039
7144
  });
7040
7145
  }
7041
- function al({ children: e, className: t }) {
7042
- let { orientation: n, size: r } = Yc("TabsList"), i = tl[nl(S())];
7146
+ function ml({ children: e, className: t }) {
7147
+ let { orientation: n, size: r } = il("TabsList"), i = ul[dl(S())];
7043
7148
  return /* @__PURE__ */ (0, b.jsx)("div", {
7044
7149
  role: "tablist",
7045
7150
  "aria-orientation": n,
7046
7151
  "data-size": r,
7047
- className: K(Zc.base, Zc[n], $c[r].list, i.list, t),
7152
+ className: K(ol.base, ol[n], cl[r].list, i.list, t),
7048
7153
  children: e
7049
7154
  });
7050
7155
  }
7051
- function ol({ children: e, className: t, disabled: n = !1, value: r }) {
7052
- let { activationMode: i, baseId: a, color: o, orientation: s, setValue: c, size: l, value: u } = Yc("TabsTrigger"), d = tl[nl(S())], f = u === r, p = (e) => {
7156
+ function hl({ children: e, className: t, disabled: n = !1, value: r }) {
7157
+ let { activationMode: i, baseId: a, color: o, orientation: s, setValue: c, size: l, value: u } = il("TabsTrigger"), d = ul[dl(S())], f = u === r, p = (e) => {
7053
7158
  let t = e.currentTarget.parentElement;
7054
7159
  if (!t) return;
7055
- let n = rl(t), a = n.indexOf(e.currentTarget);
7160
+ let n = fl(t), a = n.indexOf(e.currentTarget);
7056
7161
  if (a === -1) return;
7057
7162
  let o = s === "horizontal", l = a;
7058
7163
  if (o && e.key === "ArrowRight" || !o && e.key === "ArrowDown") l = (a + 1) % n.length;
@@ -7081,36 +7186,36 @@ function ol({ children: e, className: t, disabled: n = !1, value: r }) {
7081
7186
  disabled: n,
7082
7187
  onClick: () => c(r),
7083
7188
  onKeyDown: p,
7084
- className: K(Qc.base, $c[l].trigger, s === "vertical" && Qc.vertical, f ? d.triggerActive[o] : d.triggerIdle, t),
7189
+ className: K(sl.base, cl[l].trigger, s === "vertical" && sl.vertical, f ? d.triggerActive[o] : d.triggerIdle, t),
7085
7190
  children: e
7086
7191
  });
7087
7192
  }
7088
- function sl({ children: e, className: t, forceMount: n = !1, value: r }) {
7089
- let { baseId: i, value: a } = Yc("TabsContent"), o = tl[nl(S())], s = a === r;
7193
+ function gl({ children: e, className: t, forceMount: n = !1, value: r }) {
7194
+ let { baseId: i, value: a } = il("TabsContent"), o = ul[dl(S())], s = a === r;
7090
7195
  return !n && !s ? null : /* @__PURE__ */ (0, b.jsx)("div", {
7091
7196
  role: "tabpanel",
7092
7197
  id: `${i}-content-${r}`,
7093
7198
  "aria-labelledby": `${i}-trigger-${r}`,
7094
7199
  hidden: !s,
7095
7200
  tabIndex: 0,
7096
- className: K(el.base, o.content, t),
7201
+ className: K(ll.base, o.content, t),
7097
7202
  children: e
7098
7203
  });
7099
7204
  }
7100
7205
  //#endregion
7101
7206
  //#region src/lib/components/tabs/useTabs.js
7102
- function cl() {
7103
- return Yc("useTabs");
7207
+ function _l() {
7208
+ return il("useTabs");
7104
7209
  }
7105
7210
  //#endregion
7106
7211
  //#region src/lib/components/textarea/Textarea.jsx
7107
- var ll = { base: [
7212
+ var vl = { base: [
7108
7213
  "w-full border bg-transparent px-3.5 py-3 text-sm outline-none",
7109
7214
  "transition-[background-color,border-color,color,box-shadow] duration-200",
7110
7215
  "placeholder:text-current/45",
7111
7216
  "focus-visible:ring-4 focus-visible:ring-offset-0",
7112
7217
  "disabled:cursor-not-allowed disabled:opacity-60"
7113
- ].join(" ") }, ul = {
7218
+ ].join(" ") }, yl = {
7114
7219
  light: {
7115
7220
  base: "border-slate-200 bg-white text-slate-950 focus-visible:border-slate-300 focus-visible:ring-slate-200/70",
7116
7221
  hover: "hover:border-slate-300",
@@ -7122,11 +7227,11 @@ var ll = { base: [
7122
7227
  invalid: "border-red-500/60 text-stone-50 focus-visible:border-red-400/80 focus-visible:ring-red-500/20"
7123
7228
  }
7124
7229
  };
7125
- function dl(e) {
7230
+ function bl(e) {
7126
7231
  return e === "dark" ? "dark" : "light";
7127
7232
  }
7128
- var fl = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, minRows: i = 4, required: a = !1, ...o }, s) {
7129
- let c = ul[dl(S())], l = fn(), u = r || l?.invalid, d = t || l?.disabled, f = a || l?.required, p = [
7233
+ var xl = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, minRows: i = 4, required: a = !1, ...o }, s) {
7234
+ let c = yl[bl(S())], l = xn(), u = r || l?.invalid, d = t || l?.disabled, f = a || l?.required, p = [
7130
7235
  o["aria-describedby"],
7131
7236
  l?.descriptionId,
7132
7237
  u ? l?.messageId : null
@@ -7140,54 +7245,39 @@ var fl = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, mi
7140
7245
  "aria-describedby": p,
7141
7246
  "field-sizing": "content",
7142
7247
  rows: i,
7143
- className: K(ll.base, ct("md"), "min-h-28", u ? c.invalid : c.base, !d && c.hover, e),
7248
+ className: K(vl.base, ct("md"), "min-h-28", u ? c.invalid : c.base, !d && c.hover, e),
7144
7249
  ...o
7145
7250
  });
7146
- }), pl = ["!max-w-[16rem] !rounded-[0.875rem] !px-2.5 !py-1.5", "!text-xs !leading-5"].join(" "), ml = {
7147
- default: "!border-slate-900 !bg-slate-900 !text-white dark:!border-zinc-800 dark:!bg-zinc-800 dark:!text-stone-50",
7148
- neutral: "!border-neutral-900 !bg-neutral-900 !text-white dark:!border-neutral-700 dark:!bg-neutral-700 dark:!text-white",
7149
- primary: "!border-blue-700 !bg-blue-700 !text-white dark:!border-blue-400 dark:!bg-blue-400 dark:!text-slate-950",
7150
- brand: "!border-brand-700 !bg-brand-700 !text-white dark:!border-brand-400 dark:!bg-brand-400 dark:!text-slate-950",
7151
- success: "!border-emerald-600 !bg-emerald-600 !text-white dark:!border-emerald-400 dark:!bg-emerald-400 dark:!text-slate-950",
7152
- danger: "!border-red-600 !bg-red-600 !text-white dark:!border-red-400 dark:!bg-red-400 dark:!text-slate-950",
7153
- warning: "!border-amber-400 !bg-amber-400 !text-slate-950 dark:!border-amber-300 dark:!bg-amber-300 dark:!text-slate-950",
7154
- info: "!border-sky-600 !bg-sky-600 !text-white dark:!border-sky-400 dark:!bg-sky-400 dark:!text-slate-950",
7155
- light: "!border-slate-200 !bg-white !text-slate-700 dark:!border-slate-200 dark:!bg-slate-100 dark:!text-slate-950",
7156
- dark: "!border-slate-950 !bg-slate-950 !text-white dark:!border-slate-700 dark:!bg-slate-900 dark:!text-white"
7157
- };
7158
- function hl({ children: e, className: t = "", color: n = "default", content: r, placement: i = "top", ...a }) {
7159
- let o = S() === "dark" ? "dark" : "light", s = ml[n] ? n : "default";
7160
- return /* @__PURE__ */ (0, b.jsx)(bc, {
7251
+ }), Sl = ["!max-w-[16rem] !rounded-[0.875rem] !px-2.5 !py-1.5", "!text-xs !leading-5"].join(" ");
7252
+ function Cl({ children: e, className: t = "", color: n = "default", content: r, placement: i = "top", ...a }) {
7253
+ return /* @__PURE__ */ (0, b.jsx)(kc, {
7161
7254
  content: r,
7162
- color: s === "default" ? "dark" : s,
7255
+ color: n,
7163
7256
  placement: i,
7164
7257
  trigger: "hover",
7165
7258
  showArrow: !0,
7166
7259
  arrowWidth: 12,
7167
7260
  arrowHeight: 6,
7168
7261
  arrowTipRadius: 1.5,
7169
- arrowStrokeWidth: .75,
7170
- arrowFill: o === "dark" ? "#27272a" : "#0f172a",
7171
- arrowStroke: o === "dark" ? "#27272a" : "#0f172a",
7172
- className: K(pl, ml[s], t),
7262
+ className: [Sl, t].filter(Boolean).join(" "),
7173
7263
  ...a,
7174
7264
  children: e
7175
7265
  });
7176
7266
  }
7177
7267
  //#endregion
7178
7268
  //#region src/lib/hooks/useFloatingLayer.js
7179
- function gl(e = {}) {
7269
+ function wl(e = {}) {
7180
7270
  let { middleware: t = [], offset: n = 10, placement: r = "bottom-start", shiftPadding: i = 12, ...a } = e;
7181
- return Io({
7271
+ return Go({
7182
7272
  placement: r,
7183
7273
  middleware: [
7184
- La(n),
7185
- za(),
7186
- Ra({ padding: i }),
7274
+ Ka(n),
7275
+ Ja(),
7276
+ qa({ padding: i }),
7187
7277
  ...t
7188
7278
  ],
7189
7279
  ...a
7190
7280
  });
7191
7281
  }
7192
7282
  //#endregion
7193
- export { ot as AVATAR_RADIUS_BY_SIZE, Dt as Accordion, At as AccordionContent, Ot as AccordionItem, kt as AccordionTrigger, _t as Avatar, yt as AvatarFallback, bt as AvatarGroup, vt as AvatarImage, Ft as Badge, Gt as Breadcrumb, Xt as BreadcrumbCurrent, qt as BreadcrumbItem, Jt as BreadcrumbLink, Kt as BreadcrumbList, Yt as BreadcrumbSeparator, rn as Button, at as CONTROL_RADIUS_BY_SIZE, yn as Checkbox, st as DEFAULT_CONTROL_RADIUS, _s as Dropdown, ys as DropdownContent, bs as DropdownItem, xs as DropdownSeparator, vs as DropdownTrigger, Ts as EmptyState, Os as EmptyStateActions, Ds as EmptyStateDescription, Es as EmptyStateTitle, ln as FormControl, un as FormDescription, dn as FormMessage, Ns as Input, hn as Label, Ht as Link, rc as Modal, uc as ModalAction, lc as ModalActions, cc as ModalBody, ac as ModalContent, oc as ModalHeader, sc as ModalTitle, ic as ModalTrigger, pc as Pagination, bc as Popover, x as QuickitProvider, wc as Radio, Rc as Select, Hc as Skeleton, qc as Switch, il as Tabs, sl as TabsContent, al as TabsList, ol as TabsTrigger, fl as Textarea, hl as Tooltip, K as cn, lt as getAvatarRadius, ct as getControlRadius, Ss as useDropdown, gl as useFloatingLayer, fn as useFormControl, dc as useModal, S as useQuickitTheme, cl as useTabs };
7283
+ export { ot as AVATAR_RADIUS_BY_SIZE, It as Accordion, zt as AccordionContent, Lt as AccordionItem, Rt as AccordionTrigger, Et as Avatar, Ot as AvatarFallback, kt as AvatarGroup, Dt as AvatarImage, Wt as Badge, en as Breadcrumb, on as BreadcrumbCurrent, nn as BreadcrumbItem, rn as BreadcrumbLink, tn as BreadcrumbList, an as BreadcrumbSeparator, pn as Button, at as CONTROL_RADIUS_BY_SIZE, On as Checkbox, st as DEFAULT_CONTROL_RADIUS, Es as Dropdown, Os as DropdownContent, ks as DropdownItem, As as DropdownSeparator, Ds as DropdownTrigger, Ps as EmptyState, Ls as EmptyStateActions, Is as EmptyStateDescription, Fs as EmptyStateTitle, vn as FormControl, yn as FormDescription, bn as FormMessage, Hs as Input, wn as Label, Zt as Link, fc as Modal, yc as ModalAction, vc as ModalActions, _c as ModalBody, mc as ModalContent, hc as ModalHeader, gc as ModalTitle, pc as ModalTrigger, Sc as Pagination, kc as Popover, x as QuickitProvider, Nc as Radio, qc as Select, Zc as Skeleton, nl as Switch, pl as Tabs, gl as TabsContent, ml as TabsList, hl as TabsTrigger, xl as Textarea, Cl as Tooltip, K as cn, lt as getAvatarRadius, ct as getControlRadius, js as useDropdown, wl as useFloatingLayer, xn as useFormControl, bc as useModal, S as useQuickitTheme, _l as useTabs };