@sheetxl/utils-react 0.8.0-beta.20 → 0.8.0-beta.22

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.20
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
@@ -1308,7 +1308,7 @@ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1308
1308
  }, [u, e]), R(pt.Provider, l ? {
1309
1309
  value: a,
1310
1310
  children: R("div", {
1311
- className: "command-key-seam",
1311
+ className: "sxl-command-key-seam",
1312
1312
  style: { display: "contents" },
1313
1313
  ref: c,
1314
1314
  onKeyDown: (e) => {
@@ -1612,21 +1612,21 @@ function tn(e = {}) {
1612
1612
  toggleFullscreen: f
1613
1613
  };
1614
1614
  }
1615
- var nn = "_portal-root_105xh_14", on = "_fullscreen_105xh_31", rn = 0, sn = () => {
1615
+ var nn = "_portal-root_105xh_14", on = "_fullscreen_105xh_31", rn = 0, sn = "sxl-portal-root", ln = () => {
1616
1616
  const e = document.fullscreenElement, t = e ?? document.body;
1617
- let n = document.querySelector(".portal-root");
1618
- n || (n = document.createElement("div"), n.className = `portal-root ${nn}`), n.parentElement !== t && t.appendChild(n);
1617
+ let n = document.querySelector("." + sn);
1618
+ n || (n = document.createElement("div"), n.className = `${sn} ${nn}`), n.parentElement !== t && t.appendChild(n);
1619
1619
  const o = !!e;
1620
- return n.classList.toggle("fullscreen", o), n.classList.toggle(on, o), n;
1620
+ return n.classList.toggle("sxl-fullscreen", o), n.classList.toggle(on, o), n;
1621
1621
  };
1622
- function ln() {
1623
- const [e, t] = A(!!document.fullscreenElement), n = x(() => sn(), []);
1622
+ function an() {
1623
+ const [e, t] = A(!!document.fullscreenElement), n = x(() => ln(), []);
1624
1624
  return M(() => {
1625
1625
  const e = () => {
1626
- t(!!document.fullscreenElement), sn();
1626
+ t(!!document.fullscreenElement), ln();
1627
1627
  };
1628
- return rn++, sn(), document.addEventListener("fullscreenchange", e), () => {
1629
- document.removeEventListener("fullscreenchange", e), --rn <= 0 && (rn = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1628
+ return rn++, ln(), document.addEventListener("fullscreenchange", e), () => {
1629
+ document.removeEventListener("fullscreenchange", e), --rn <= 0 && (rn = 0, document.querySelectorAll("." + sn).forEach((e) => {
1630
1630
  e.parentNode?.removeChild(e);
1631
1631
  }));
1632
1632
  };
@@ -1635,21 +1635,21 @@ function ln() {
1635
1635
  isFullscreen: e
1636
1636
  };
1637
1637
  }
1638
- var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1638
+ var cn, un = "_dragging_at5p4_10", hn = /* @__PURE__ */ new Set([
1639
1639
  "text",
1640
1640
  "search",
1641
1641
  "url",
1642
1642
  "tel",
1643
1643
  "password",
1644
1644
  ""
1645
- ]), hn = (e, t, n) => {
1645
+ ]), dn = (e, t, n) => {
1646
1646
  const o = e.getBoundingClientRect();
1647
1647
  if (!o.width || !o.height) return null;
1648
1648
  const r = Math.min(Math.max(t, o.left + 1), o.right - 1), i = Math.min(Math.max(n, o.top + 1), o.bottom - 1), s = e.ownerDocument, l = s.caretPositionFromPoint?.(r, i);
1649
1649
  if (l) return l.offset;
1650
1650
  const a = s.caretRangeFromPoint?.(r, i);
1651
1651
  return a ? a.startOffset : null;
1652
- }, dn = () => {
1652
+ }, fn = () => {
1653
1653
  const e = z(null);
1654
1654
  return M(() => () => {
1655
1655
  e.current?.();
@@ -1657,13 +1657,13 @@ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1657
1657
  onPointerDown: (t) => {
1658
1658
  if (void 0 !== t?.button && 0 !== t.button) return;
1659
1659
  if (e.current) return;
1660
- const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && un.has(o.type) ? o : null);
1660
+ const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && hn.has(o.type) ? o : null);
1661
1661
  var o;
1662
- const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? hn(n, t.clientX, t.clientY) : null;
1662
+ const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? dn(n, t.clientX, t.clientY) : null;
1663
1663
  let i = null !== n && null !== r, s = t?.clientX ?? 0, l = t?.clientY ?? 0;
1664
1664
  const a = (e, t) => {
1665
1665
  if (!i || !n || null === r) return;
1666
- const o = hn(n, e, t);
1666
+ const o = dn(n, e, t);
1667
1667
  null !== o && n.setSelectionRange(Math.min(r, o), Math.max(r, o), o < r ? "backward" : "forward");
1668
1668
  }, c = (e) => {
1669
1669
  s = e.clientX, l = e.clientY, a(s, l);
@@ -1680,9 +1680,9 @@ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1680
1680
  const r = (e) => Math.max(-24, Math.min(24, e));
1681
1681
  n.scrollLeft += r(t), n.scrollTop += r(o), a(s, l);
1682
1682
  }, 50) : 0, f = () => {
1683
- e.current = null, h.classList.remove(cn), d && window.clearInterval(d), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1683
+ e.current = null, h.classList.remove(un), d && window.clearInterval(d), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1684
1684
  };
1685
- e.current = f, h.classList.add(cn), i && window.addEventListener("mousedown", u, {
1685
+ e.current = f, h.classList.add(un), i && window.addEventListener("mousedown", u, {
1686
1686
  capture: !0,
1687
1687
  once: !0
1688
1688
  }), window.addEventListener("pointermove", c, !0), window.addEventListener("pointerup", f, !0), window.addEventListener("pointercancel", f, !0);
@@ -1692,15 +1692,15 @@ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1692
1692
  }
1693
1693
  }), []);
1694
1694
  };
1695
- function fn(e, t) {
1695
+ function pn(e, t) {
1696
1696
  const n = (() => {
1697
- if (void 0 !== an) return an;
1697
+ if (void 0 !== cn) return cn;
1698
1698
  try {
1699
- an = "undefined" == typeof document ? null : document.createElement("canvas").getContext("2d") ?? null;
1699
+ cn = "undefined" == typeof document ? null : document.createElement("canvas").getContext("2d") ?? null;
1700
1700
  } catch {
1701
- an = null;
1701
+ cn = null;
1702
1702
  }
1703
- return an;
1703
+ return cn;
1704
1704
  })();
1705
1705
  return n ? (n.font = `${t.style ?? "normal"} ${t.weight ?? "normal"} ${t.size}px ${o = t.family || "sans-serif", o.split(",").map((e) => {
1706
1706
  const t = e.trim();
@@ -1708,7 +1708,7 @@ function fn(e, t) {
1708
1708
  }).join(", ")}`, n.measureText(e).width) : e.length * t.size * .6;
1709
1709
  var o;
1710
1710
  }
1711
- function pn(e) {
1711
+ function mn(e) {
1712
1712
  if (!e) throw new Error("must have a PointerHandlerOptions");
1713
1713
  const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1 } = e, i = Yt(t, [t]), s = Yt(n, [n]), l = Yt(o, [o]), a = z(!1), c = e?.timerInitial ?? 230, u = e?.timerContinuous ?? c / 2, h = z(null), d = z(null), f = z(null), p = z(null), m = x(() => {
1714
1714
  p.current && (clearTimeout(p.current), p.current = null);
@@ -1769,8 +1769,8 @@ function pn(e) {
1769
1769
  }, !1 !== i(e, f.current) && (h.current = e, d.current = e.nativeEvent, document.addEventListener(`${_}up`, v, { passive: !1 }), document.addEventListener(`${_}move`, w, { passive: !1 }), document.addEventListener("pointercancel", v, { passive: !1 }), document.addEventListener("keydown", S, { passive: !1 }), document.addEventListener("keyup", E, { passive: !1 }), window.addEventListener("blur", y, { passive: !0 }), a.current = !0, g(c)));
1770
1770
  }, [c, r]);
1771
1771
  }
1772
- function mn(e, t) {
1773
- return pn({
1772
+ function gn(e, t) {
1773
+ return mn({
1774
1774
  onPointerDown: e,
1775
1775
  onPointerMoveOrWait: (t, n, o) => {
1776
1776
  e?.(o);
@@ -1778,63 +1778,63 @@ function mn(e, t) {
1778
1778
  ...t
1779
1779
  });
1780
1780
  }
1781
- var gn = null, _n = /* @__PURE__ */ new Set(), vn = !1, yn = () => "touch" == ("touch" === Fe().primaryInput ? "touch" : "mouse") ? "touch" : gn ?? "mouse", bn = (e) => {
1781
+ var _n = null, vn = /* @__PURE__ */ new Set(), yn = !1, bn = () => "touch" == ("touch" === Fe().primaryInput ? "touch" : "mouse") ? "touch" : _n ?? "mouse", wn = (e) => {
1782
1782
  const t = "touch" === e.pointerType ? "touch" : "mouse";
1783
- if (t === gn) return;
1784
- const n = yn();
1785
- gn = t, yn() !== n && _n.forEach((e) => e());
1786
- }, wn = (e) => (_n.add(e), vn || "undefined" == typeof document || (document.addEventListener("pointerdown", bn, {
1783
+ if (t === _n) return;
1784
+ const n = bn();
1785
+ _n = t, bn() !== n && vn.forEach((e) => e());
1786
+ }, xn = (e) => (vn.add(e), yn || "undefined" == typeof document || (document.addEventListener("pointerdown", wn, {
1787
1787
  capture: !0,
1788
1788
  passive: !0
1789
- }), vn = !0), () => {
1790
- _n.delete(e), 0 === _n.size && vn && (document.removeEventListener("pointerdown", bn, { capture: !0 }), vn = !1);
1791
- }), xn = () => "mouse", Sn = () => D(wn, yn, xn), Mn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1789
+ }), yn = !0), () => {
1790
+ vn.delete(e), 0 === vn.size && yn && (document.removeEventListener("pointerdown", wn, { capture: !0 }), yn = !1);
1791
+ }), Sn = () => "mouse", Mn = () => D(xn, bn, Sn), En = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1792
1792
  const o = z(e);
1793
1793
  if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
1794
1794
  const r = t();
1795
1795
  return L(() => {
1796
1796
  o.current !== r && (o.current = r, n(r));
1797
1797
  }, [n, r]), null;
1798
- }, En = (e) => {
1798
+ }, Cn = (e) => {
1799
1799
  console && console.warn && console.warn(e);
1800
- }, Cn = globalThis, Ln = 1, Tn = !1, kn = !1, zn = [], An = [], Dn = () => {
1801
- An.forEach((e) => e());
1802
- }, Pn = ({ automaticContainerInternalUseOnly: e }) => {
1800
+ }, Ln = globalThis, Tn = 1, kn = !1, zn = !1, An = [], Dn = [], Pn = () => {
1801
+ Dn.forEach((e) => e());
1802
+ }, Rn = ({ automaticContainerInternalUseOnly: e }) => {
1803
1803
  const [t, n] = A([]), o = z([]);
1804
- return o.current = t, e || !1 !== Tn || (kn = !0), M(() => {
1804
+ return o.current = t, e || !1 !== kn || (zn = !0), M(() => {
1805
1805
  let t = !0;
1806
1806
  function r() {
1807
- if (t) return An[0] !== r ? (e || !0 !== Tn || En("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...zn]);
1807
+ if (t) return Dn[0] !== r ? (e || !0 !== kn || Cn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...An]);
1808
1808
  }
1809
- return An.push(r), Dn(), () => {
1810
- t = !1, o.current?.length > 0 && En("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), An.splice(An.indexOf(r), 1), Dn();
1809
+ return Dn.push(r), Pn(), () => {
1810
+ t = !1, o.current?.length > 0 && Cn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Dn.splice(Dn.indexOf(r), 1), Pn();
1811
1811
  };
1812
- }, [e]), R(P, { children: t.map(({ hook: e, key: t }) => _(Mn, {
1812
+ }, [e]), R(P, { children: t.map(({ hook: e, key: t }) => _(En, {
1813
1813
  ...e,
1814
1814
  key: t
1815
1815
  })) });
1816
- }, Rn = (e) => {
1817
- const t = Ln++;
1818
- return zn.push({
1816
+ }, $n = (e) => {
1817
+ const t = Tn++;
1818
+ return An.push({
1819
1819
  hook: e,
1820
1820
  key: t
1821
- }), 0 === An.length && !1 === kn && (Tn = !0, ((e) => {
1822
- if (Cn.document && Cn.document.createElement) {
1823
- const t = Cn.document.createElement("div");
1821
+ }), 0 === Dn.length && !1 === zn && (kn = !0, ((e) => {
1822
+ if (Ln.document && Ln.document.createElement) {
1823
+ const t = Ln.document.createElement("div");
1824
1824
  O(t).render(R(e, { automaticContainerInternalUseOnly: !0 }));
1825
- } else En("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1826
- })(Pn)), Dn(), () => {
1827
- zn.splice(zn.findIndex((e) => e.key === t), 1), Dn();
1825
+ } else Cn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1826
+ })(Rn)), Pn(), () => {
1827
+ An.splice(An.findIndex((e) => e.key === t), 1), Pn();
1828
1828
  };
1829
- }, $n = null;
1830
- $n || ($n = (e, t, n = {}) => {
1829
+ }, Bn = null;
1830
+ Bn || (Bn = (e, t, n = {}) => {
1831
1831
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
1832
1832
  const c = (e) => {
1833
1833
  r = e, I(() => l.forEach((t) => t(e)));
1834
1834
  }, u = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
1835
1835
  return () => {
1836
1836
  const [n, s] = A(u);
1837
- return M(() => (i || (i = !0, o = Rn({
1837
+ return M(() => (i || (i = !0, o = $n({
1838
1838
  initValue: e,
1839
1839
  useHookBody: t,
1840
1840
  applyStateChange: c
@@ -1843,32 +1843,32 @@ $n || ($n = (e, t, n = {}) => {
1843
1843
  }), []), n;
1844
1844
  };
1845
1845
  });
1846
- var Bn = $n, On = () => {
1846
+ var On = Bn, Hn = () => {
1847
1847
  console.warn("You must call useEditMode before setting its state.");
1848
- }, Hn = Bn(null, () => {
1848
+ }, In = On(null, () => {
1849
1849
  const [e, t] = A(null);
1850
- return On = t, e;
1851
- }), In = (e) => {
1852
- On((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1853
- }, Nn = /* @__PURE__ */ new Set(), Fn = (e, t) => {
1854
- Nn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1855
- }, Wn = (e) => (Nn.add(e), () => {
1856
- Nn.delete(e);
1857
- }), Kn = () => {
1858
- const e = Hn();
1850
+ return Hn = t, e;
1851
+ }), Nn = (e) => {
1852
+ Hn((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1853
+ }, Fn = /* @__PURE__ */ new Set(), Wn = (e, t) => {
1854
+ Fn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1855
+ }, Kn = (e) => (Fn.add(e), () => {
1856
+ Fn.delete(e);
1857
+ }), Vn = () => {
1858
+ const e = In();
1859
1859
  return T(() => ({
1860
- setMode: In,
1860
+ setMode: Nn,
1861
1861
  getMode: () => e
1862
1862
  }), [e]);
1863
- }, Vn = { Active: "language" };
1864
- function jn() {
1863
+ }, jn = { Active: "language" };
1864
+ function Yn() {
1865
1865
  return D((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
1866
1866
  }
1867
- function Yn() {
1867
+ function Xn() {
1868
1868
  const e = D((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision());
1869
1869
  return T(() => (e, n) => t.lookup(e, n) ?? e, [e]);
1870
1870
  }
1871
- var Xn = (e, t, n, o) => ({
1871
+ var Zn = (e, t, n, o) => ({
1872
1872
  x: e,
1873
1873
  y: t,
1874
1874
  width: n,
@@ -1887,9 +1887,9 @@ var Xn = (e, t, n, o) => ({
1887
1887
  right: e + n,
1888
1888
  bottom: t + o
1889
1889
  })
1890
- }), Zn = (e) => {
1891
- return Xn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
1892
- }, qn = [
1890
+ }), qn = (e) => {
1891
+ return Zn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
1892
+ }, Un = [
1893
1893
  "paddingTop",
1894
1894
  "paddingRight",
1895
1895
  "paddingBottom",
@@ -1919,18 +1919,18 @@ var Xn = (e, t, n, o) => ({
1919
1919
  "wordBreak",
1920
1920
  "overflowWrap",
1921
1921
  "tabSize"
1922
- ], Un = (e, t, n, o = 0) => {
1923
- if (!e || "undefined" == typeof document) return Xn(0, 0, 0, 0);
1922
+ ], Gn = (e, t, n, o = 0) => {
1923
+ if (!e || "undefined" == typeof document) return Zn(0, 0, 0, 0);
1924
1924
  const r = e.value, i = Math.max(0, Math.min(t ?? e.selectionStart ?? r.length, r.length)), s = !n, l = n ?? document.createElement("div");
1925
1925
  l.setAttribute("aria-hidden", "true"), ((e, t) => {
1926
1926
  const n = getComputedStyle(t), o = e.style;
1927
- for (const e of qn) o[e] = n[e];
1927
+ for (const e of Un) o[e] = n[e];
1928
1928
  o.position = "absolute", o.top = "0", o.left = "0", o.visibility = "hidden", o.pointerEvents = "none", o.overflow = "hidden", o.boxSizing = "border-box", o.height = "auto", o.width = `${t.offsetWidth}px`;
1929
1929
  })(l, e), l.textContent = r.slice(0, i);
1930
1930
  const a = document.createElement("span");
1931
1931
  a.textContent = r.slice(i) || "​", l.appendChild(a), s && document.body.appendChild(l);
1932
1932
  try {
1933
- const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Zn({
1933
+ const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = qn({
1934
1934
  textareaRect: e.getBoundingClientRect(),
1935
1935
  mirrorRect: r,
1936
1936
  markerRect: {
@@ -1941,11 +1941,11 @@ var Xn = (e, t, n, o) => ({
1941
1941
  scrollLeft: e.scrollLeft,
1942
1942
  scrollTop: e.scrollTop
1943
1943
  });
1944
- return o ? Xn(s.left - o, s.top, 0, s.height) : s;
1944
+ return o ? Zn(s.left - o, s.top, 0, s.height) : s;
1945
1945
  } finally {
1946
1946
  s ? l.remove() : l.textContent = "";
1947
1947
  }
1948
- }, Gn = (e) => {
1948
+ }, Jn = (e) => {
1949
1949
  const t = z(null);
1950
1950
  M(() => {
1951
1951
  if ("undefined" == typeof document) return;
@@ -1954,12 +1954,12 @@ var Xn = (e, t, n, o) => ({
1954
1954
  e.remove(), t.current = null;
1955
1955
  };
1956
1956
  }, []);
1957
- const n = x((n, o) => Un(e.current, n, t.current ?? void 0, o), [e]);
1957
+ const n = x((n, o) => Gn(e.current, n, t.current ?? void 0, o), [e]);
1958
1958
  return {
1959
1959
  getCaretRect: n,
1960
1960
  caretAnchor: x((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
1961
1961
  };
1962
- }, Jn = Bn({
1962
+ }, Qn = On({
1963
1963
  setClipboard: (e) => {
1964
1964
  throw new Error("This is only available via the useClipboard.");
1965
1965
  },
@@ -1975,7 +1975,7 @@ var Xn = (e, t, n, o) => ({
1975
1975
  refNativeLastKey: z(null)
1976
1976
  };
1977
1977
  });
1978
- function Qn(e, t = !0) {
1978
+ function eo(e, t = !0) {
1979
1979
  const n = z(e);
1980
1980
  M(() => {
1981
1981
  if (t) {
@@ -1985,16 +1985,16 @@ function Qn(e, t = !0) {
1985
1985
  n.current = e;
1986
1986
  });
1987
1987
  }
1988
- var eo = !1, to = 0, no = "undefined" != typeof document ? L : M, oo = () => "sheetxl-ui-" + to++;
1989
- var ro = f["useId".toString()], io = null != ro ? ro : function() {
1990
- const [e, t] = A(() => eo ? oo() : void 0);
1991
- return no(() => {
1992
- null == e && t(oo());
1988
+ var to = !1, no = 0, oo = "undefined" != typeof document ? L : M, ro = () => "sheetxl-ui-" + no++;
1989
+ var io = f["useId".toString()], so = null != io ? io : function() {
1990
+ const [e, t] = A(() => to ? ro() : void 0);
1991
+ return oo(() => {
1992
+ null == e && t(ro());
1993
1993
  }, []), M(() => {
1994
- eo || (eo = !0);
1994
+ to || (to = !0);
1995
1995
  }, []), e;
1996
- }, so = [];
1997
- function lo(e, t, n = so, o) {
1996
+ }, lo = [];
1997
+ function ao(e, t, n = lo, o) {
1998
1998
  const r = z(null), i = z(null);
1999
1999
  return C(e ?? i, () => {
2000
2000
  const e = void 0 === o ? r.current : o;
@@ -2014,20 +2014,20 @@ function lo(e, t, n = so, o) {
2014
2014
  return e;
2015
2015
  }, void 0 === o ? n : [...n, o]), r;
2016
2016
  }
2017
- var ao = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboard ?? null, co = null, uo = () => "undefined" != typeof window ? window.visualViewport ?? null : null, ho = () => {
2018
- const e = uo();
2019
- return e ? co && co.width === e.width && co.height === e.height && co.offsetTop === e.offsetTop && co.offsetLeft === e.offsetLeft ? co : co = {
2017
+ var co = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboard ?? null, uo = null, ho = () => "undefined" != typeof window ? window.visualViewport ?? null : null, fo = () => {
2018
+ const e = ho();
2019
+ return e ? uo && uo.width === e.width && uo.height === e.height && uo.offsetTop === e.offsetTop && uo.offsetLeft === e.offsetLeft ? uo : uo = {
2020
2020
  width: e.width,
2021
2021
  height: e.height,
2022
2022
  offsetTop: e.offsetTop,
2023
2023
  offsetLeft: e.offsetLeft
2024
2024
  } : null;
2025
- }, fo = (e) => {
2026
- const t = uo(), n = ao();
2025
+ }, po = (e) => {
2026
+ const t = ho(), n = co();
2027
2027
  return t || n ? (t?.addEventListener("resize", e), t?.addEventListener("scroll", e), n?.addEventListener("geometrychange", e), () => {
2028
2028
  t?.removeEventListener("resize", e), t?.removeEventListener("scroll", e), n?.removeEventListener("geometrychange", e);
2029
2029
  }) : () => {};
2030
- }, po = () => () => {}, mo = () => null, go = (e = !0) => D(e ? fo : po, e ? ho : mo, mo), _o = "undefined" != typeof window ? L : M, vo = Object.freeze({
2030
+ }, mo = () => () => {}, go = () => null, _o = (e = !0) => D(e ? po : mo, e ? fo : go, go), vo = "undefined" != typeof window ? L : M, yo = Object.freeze({
2031
2031
  x: 0,
2032
2032
  y: 0,
2033
2033
  width: 0,
@@ -2037,9 +2037,9 @@ var ao = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboar
2037
2037
  bottom: 0,
2038
2038
  right: 0
2039
2039
  });
2040
- function yo() {
2041
- const [e, t] = A(null), [n, o] = A(vo), r = z(n), i = x((e) => t(e), []);
2042
- return _o(() => {
2040
+ function bo() {
2041
+ const [e, t] = A(null), [n, o] = A(yo), r = z(n), i = x((e) => t(e), []);
2042
+ return vo(() => {
2043
2043
  if (!e || "undefined" == typeof ResizeObserver) return;
2044
2044
  const t = (e) => {
2045
2045
  var t, n;
@@ -2079,24 +2079,24 @@ function yo() {
2079
2079
  return i.observe(e), () => i.disconnect();
2080
2080
  }, [e]), [i, n];
2081
2081
  }
2082
- var bo = "sxl-history-change", wo = !1, xo = () => {
2083
- if (wo) return;
2084
- wo = !0;
2082
+ var wo = "sxl-history-change", xo = !1, So = () => {
2083
+ if (xo) return;
2084
+ xo = !0;
2085
2085
  const e = window.history;
2086
2086
  for (const t of ["pushState", "replaceState"]) {
2087
2087
  const n = e[t];
2088
2088
  e[t] = function(...e) {
2089
2089
  const t = n.apply(this, e);
2090
- return window.dispatchEvent(new Event(bo)), t;
2090
+ return window.dispatchEvent(new Event(wo)), t;
2091
2091
  };
2092
2092
  }
2093
- }, So = (e) => (xo(), window.addEventListener("popstate", e), window.addEventListener(bo, e), () => {
2094
- window.removeEventListener("popstate", e), window.removeEventListener(bo, e);
2095
- }), Mo = () => window.location.search, Eo = () => "";
2096
- function Co() {
2097
- return D(So, Mo, Eo);
2093
+ }, Mo = (e) => (So(), window.addEventListener("popstate", e), window.addEventListener(wo, e), () => {
2094
+ window.removeEventListener("popstate", e), window.removeEventListener(wo, e);
2095
+ }), Eo = () => window.location.search, Co = () => "";
2096
+ function Lo() {
2097
+ return D(Mo, Eo, Co);
2098
2098
  }
2099
- var Lo = 3, To = .5, ko = 50, zo = (e) => ({
2099
+ var To = 3, ko = .5, zo = 50, Ao = (e) => ({
2100
2100
  x: e.x,
2101
2101
  y: e.y,
2102
2102
  width: e.width,
@@ -2106,8 +2106,8 @@ var Lo = 3, To = .5, ko = 50, zo = (e) => ({
2106
2106
  right: e.right,
2107
2107
  bottom: e.bottom
2108
2108
  });
2109
- function Ao(e = {}) {
2110
- const { threshold: t = To, stillnessThreshold: n = Lo, maxHierarchyDepth: o = ko } = e, [r, i] = yo(), s = z(null), [l, a] = k((e) => e + 1, 0), c = z(void 0), u = z({
2109
+ function Do(e = {}) {
2110
+ const { threshold: t = ko, stillnessThreshold: n = To, maxHierarchyDepth: o = zo } = e, [r, i] = bo(), s = z(null), [l, a] = k((e) => e + 1, 0), c = z(void 0), u = z({
2111
2111
  x: 0,
2112
2112
  y: 0,
2113
2113
  width: 0,
@@ -2128,7 +2128,7 @@ function Ao(e = {}) {
2128
2128
  const l = () => {
2129
2129
  if (!e) return;
2130
2130
  const o = e.getBoundingClientRect(), s = u.current;
2131
- Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(zo(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(zo(o)), a()), u.current = zo(o), c.current = requestAnimationFrame(l);
2131
+ Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Ao(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Ao(o)), a()), u.current = Ao(o), c.current = requestAnimationFrame(l);
2132
2132
  };
2133
2133
  c.current = requestAnimationFrame(l);
2134
2134
  const h = (e) => {
@@ -2152,7 +2152,7 @@ function Ao(e = {}) {
2152
2152
  o
2153
2153
  ]), [h, d];
2154
2154
  }
2155
- var Do = w(v((e, t) => {
2155
+ var Po = w(v((e, t) => {
2156
2156
  const { refFocusStart: n, ...o } = e, r = z(null), i = x(() => {
2157
2157
  if (n) return void n?.current?.focus();
2158
2158
  const e = r.current?.parentElement;
@@ -2177,11 +2177,11 @@ var Do = w(v((e, t) => {
2177
2177
  onFocus: i,
2178
2178
  ...o
2179
2179
  });
2180
- })), Po = (e) => {
2180
+ })), Ro = (e) => {
2181
2181
  const { render: t, props: n } = e;
2182
2182
  return t ? t(n) : null;
2183
2183
  };
2184
- function Ro(e, t, n = !1) {
2184
+ function $o(e, t, n = !1) {
2185
2185
  if (0 === t) return e;
2186
2186
  function o(e, t, n) {
2187
2187
  let o = t.x - e.x, i = t.y - e.y, s = Math.sqrt(o * o + i * i);
@@ -2241,10 +2241,10 @@ function Ro(e, t, n = !1) {
2241
2241
  return e + t.join(" ") + " ";
2242
2242
  }, "");
2243
2243
  }
2244
- var $o = w(v((e, t) => {
2245
- const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...u } = e, [h, { width: d, height: f }] = yo(), p = z(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = T(() => {
2244
+ var Bo = w(v((e, t) => {
2245
+ const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...u } = e, [h, { width: d, height: f }] = bo(), p = z(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = T(() => {
2246
2246
  const e = d - _, t = f - v;
2247
- return Ro(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
2247
+ return $o(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
2248
2248
  }, [
2249
2249
  d,
2250
2250
  f,
@@ -2255,7 +2255,7 @@ var $o = w(v((e, t) => {
2255
2255
  b
2256
2256
  ]), x = T(() => "rounded" === a ? w : ((e, t = 0) => {
2257
2257
  const n = e / 2, o = f - n + t;
2258
- return Ro(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
2258
+ return $o(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
2259
2259
  })(s), [
2260
2260
  a,
2261
2261
  w,
@@ -2267,7 +2267,7 @@ var $o = w(v((e, t) => {
2267
2267
  if (0 === i) return;
2268
2268
  if ("rounded" === a) return w;
2269
2269
  const e = f - s / 2;
2270
- return Ro(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
2270
+ return $o(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
2271
2271
  }, [
2272
2272
  d,
2273
2273
  f,
@@ -2311,11 +2311,11 @@ var $o = w(v((e, t) => {
2311
2311
  })
2312
2312
  })]
2313
2313
  });
2314
- })), Bo = g(null);
2315
- function Oo() {
2316
- return S(Bo);
2314
+ })), Oo = g(null);
2315
+ function Ho() {
2316
+ return S(Oo);
2317
2317
  }
2318
- function Ho(e, t) {
2318
+ function Io(e, t) {
2319
2319
  const n = t?.renderError;
2320
2320
  let o = null;
2321
2321
  const r = () => {
@@ -2343,13 +2343,13 @@ function Ho(e, t) {
2343
2343
  const [t, n] = A(i), s = x(() => {
2344
2344
  n(() => (o && !o.failed || (o = r()), o.component));
2345
2345
  }, []);
2346
- return R(Bo.Provider, {
2346
+ return R(Oo.Provider, {
2347
2347
  value: s,
2348
2348
  children: R(t, { ...e })
2349
2349
  });
2350
2350
  };
2351
2351
  }
2352
- var Io = class extends p {
2352
+ var No = class extends p {
2353
2353
  constructor(...e) {
2354
2354
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2355
2355
  }
@@ -2365,27 +2365,27 @@ var Io = class extends p {
2365
2365
  render() {
2366
2366
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2367
2367
  }
2368
- }, No = ({ children: e, fallback: t }) => {
2368
+ }, Fo = ({ children: e, fallback: t }) => {
2369
2369
  const n = jt(), o = x((e) => {
2370
2370
  n.showError(e);
2371
2371
  }, [n]);
2372
- return R(Io, {
2372
+ return R(No, {
2373
2373
  fallback: t,
2374
2374
  onError: o,
2375
2375
  children: e
2376
2376
  });
2377
- }, Fo = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, Wo = /\breact_devtools_backend/;
2378
- function Ko(e, t) {
2377
+ }, Wo = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, Ko = /\breact_devtools_backend/;
2378
+ function Vo(e, t) {
2379
2379
  const n = `${e ?? ""}\n${t instanceof Error ? t.stack ?? "" : ""}`;
2380
- return Fo.test(n) || Wo.test(n);
2380
+ return Wo.test(n) || Ko.test(n);
2381
2381
  }
2382
- var Vo = class {
2382
+ var jo = class {
2383
2383
  constructor(e) {
2384
2384
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2385
2385
  const t = e.reason;
2386
- t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || Ko(void 0, t) || (this.notifier.showError(t), t instanceof n && e.preventDefault());
2386
+ t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || Vo(void 0, t) || (this.notifier.showError(t), t instanceof n && e.preventDefault());
2387
2387
  }, this.handleGlobalError = (e) => {
2388
- "string" == typeof e.message && e.message.includes("ResizeObserver loop") || Ko(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2388
+ "string" == typeof e.message && e.message.includes("ResizeObserver loop") || Vo(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2389
2389
  }, this.setupGlobalHandlers();
2390
2390
  }
2391
2391
  setupGlobalHandlers() {
@@ -2394,19 +2394,19 @@ var Vo = class {
2394
2394
  cleanup() {
2395
2395
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2396
2396
  }
2397
- }, jo = ({ children: e }) => {
2397
+ }, Yo = ({ children: e }) => {
2398
2398
  const t = jt();
2399
2399
  return M(() => {
2400
- const e = new Vo(t);
2400
+ const e = new jo(t);
2401
2401
  return () => {
2402
2402
  e.cleanup();
2403
2403
  };
2404
2404
  }, [t]), R(P, { children: e });
2405
- }, Yo = {
2405
+ }, Xo = {
2406
2406
  grid: 1250,
2407
2407
  popup: 1300,
2408
2408
  tooltip: 1500
2409
- }, Xo = (e, t = 0) => Zo(`var(--sxl-z-${e}, ${Yo[e]})`, t), Zo = (e, t) => t ? "number" == typeof e ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, qo = 7, Uo = {
2409
+ }, Zo = (e, t = 0) => qo(`var(--sxl-z-${e}, ${Xo[e]})`, t), qo = (e, t) => t ? "number" == typeof e ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, Uo = 7, Go = {
2410
2410
  light: {
2411
2411
  "color-base-100": "#ffffff",
2412
2412
  "color-base-200": "#f5f5f5",
@@ -2453,9 +2453,9 @@ var Vo = class {
2453
2453
  "radius-field": "4px",
2454
2454
  "radius-box": "6px",
2455
2455
  border: "1px",
2456
- "z-grid": String(Yo.grid),
2457
- "z-popup": String(Yo.popup),
2458
- "z-tooltip": String(Yo.tooltip),
2456
+ "z-grid": String(Xo.grid),
2457
+ "z-popup": String(Xo.popup),
2458
+ "z-tooltip": String(Xo.tooltip),
2459
2459
  "image-background": "none"
2460
2460
  },
2461
2461
  dark: {
@@ -2504,31 +2504,31 @@ var Vo = class {
2504
2504
  "radius-field": "4px",
2505
2505
  "radius-box": "6px",
2506
2506
  border: "1px",
2507
- "z-grid": String(Yo.grid),
2508
- "z-popup": String(Yo.popup),
2509
- "z-tooltip": String(Yo.tooltip),
2507
+ "z-grid": String(Xo.grid),
2508
+ "z-popup": String(Xo.popup),
2509
+ "z-tooltip": String(Xo.tooltip),
2510
2510
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2511
2511
  }
2512
- }, Go = "--sxl-";
2513
- function Jo(e) {
2512
+ }, Jo = "--sxl-";
2513
+ function Qo(e) {
2514
2514
  const t = {};
2515
2515
  for (const n in e) {
2516
2516
  const o = e[n];
2517
2517
  null != o && (Array.isArray(o) ? o.forEach((e, o) => {
2518
- null != e && (t[`${Go}${n}-${o + 1}`] = String(e));
2519
- }) : t[`${Go}${n}`] = String(o));
2518
+ null != e && (t[`${Jo}${n}-${o + 1}`] = String(e));
2519
+ }) : t[`${Jo}${n}`] = String(o));
2520
2520
  }
2521
2521
  return t;
2522
2522
  }
2523
- function Qo(e, ...t) {
2524
- return Jo(Object.assign({}, Uo[e], ...t.filter(Boolean)));
2523
+ function er(e, ...t) {
2524
+ return Qo(Object.assign({}, Go[e], ...t.filter(Boolean)));
2525
2525
  }
2526
- var er = ["light", "dark"], tr = "--sxl-input-selection", nr = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", or = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${tr},${nr});}`, rr = [
2526
+ var tr = ["light", "dark"], nr = "--sxl-input-selection", or = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", rr = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${nr},${or});}`, ir = [
2527
2527
  "sxl-defaults",
2528
2528
  "sxl-app",
2529
2529
  "sxl-overrides"
2530
- ], ir = `@layer ${rr.join(", ")};`;
2531
- function sr(e) {
2530
+ ], sr = `@layer ${ir.join(", ")};`;
2531
+ function lr(e) {
2532
2532
  let t = "";
2533
2533
  for (const n in e) {
2534
2534
  const o = e[n];
@@ -2538,52 +2538,68 @@ function sr(e) {
2538
2538
  }
2539
2539
  return t;
2540
2540
  }
2541
- function lr(e = {}) {
2542
- const { app: t = Uo, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2541
+ function ar(e = {}) {
2542
+ const { app: t = Go, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2543
2543
  app: {
2544
2544
  light: t.light,
2545
2545
  dark: t.dark
2546
2546
  },
2547
2547
  ...n
2548
2548
  }, u = l ? ":scope" : ":root", h = (e) => l ? `:scope${e},${e}` : e, d = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, f = (e, t) => `${e} ${t}`;
2549
- a.push(`:where(${u}){color-scheme:light;${sr(t.light)}}`);
2549
+ a.push(`:where(${u}){color-scheme:light;${lr(t.light)}}`);
2550
2550
  for (const [e, t] of Object.entries(c)) {
2551
2551
  const n = t?.light;
2552
- n && Object.keys(n).length && a.push(`${d(e)}{${sr(n)}}`);
2552
+ n && Object.keys(n).length && a.push(`${d(e)}{${lr(n)}}`);
2553
2553
  }
2554
- for (const e of er) {
2555
- a.push(`${h(`[${r}="${e}"]`)}{color-scheme:${e};${sr(t[e])}}`);
2554
+ for (const e of tr) {
2555
+ a.push(`${h(`[${r}="${e}"]`)}{color-scheme:${e};${lr(t[e])}}`);
2556
2556
  for (const [t, n] of Object.entries(c)) {
2557
2557
  const o = n?.[e];
2558
- o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${sr(o)}}`);
2558
+ o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${lr(o)}}`);
2559
2559
  }
2560
2560
  }
2561
- for (const e of er) for (const [t, n] of Object.entries(c)) {
2561
+ for (const e of tr) for (const [t, n] of Object.entries(c)) {
2562
2562
  const o = n?.[e];
2563
- o && Object.keys(o).length && a.push(`${h(`[${r}="${e}"][${i}="${t}"]`)}{${sr(o)}}`);
2563
+ o && Object.keys(o).length && a.push(`${h(`[${r}="${e}"][${i}="${t}"]`)}{${lr(o)}}`);
2564
2564
  }
2565
- o && Object.keys(o).length && a.push(`${h(`[${r}="hc"]`)}{${sr(o)}}`), a.push(or);
2565
+ o && Object.keys(o).length && a.push(`${h(`[${r}="hc"]`)}{${lr(o)}}`), a.push(rr);
2566
2566
  let p = a.join("\n");
2567
- return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${ir}\n@layer ${s}{\n${p}\n}`), p;
2567
+ return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${sr}\n@layer ${s}{\n${p}\n}`), p;
2568
2568
  }
2569
- var ar = "data-sxl-theme-mode", cr = "data-sxl-theme-surface", ur = (e, t) => {
2570
- const n = { [cr]: e };
2571
- return t && (n[ar] = t), n;
2572
- }, hr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, dr = g("light");
2573
- function fr(e) {
2574
- const { mode: t, fallback: n } = e || {}, o = S(dr), r = n ?? o, [i, s] = A(() => {
2569
+ var cr = "data-sxl-theme-mode", ur = "data-sxl-theme-surface", hr = (e, t) => ({
2570
+ [ur]: e,
2571
+ [cr]: t
2572
+ }), dr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, fr = "sxl-theme-layer-order", pr = (e = document) => {
2573
+ if ("undefined" == typeof document) return;
2574
+ if (e.getElementById(fr)) return;
2575
+ const t = document.createElement("style");
2576
+ t.id = fr, t.textContent = sr, (e instanceof Document ? e.head : e).prepend(t);
2577
+ }, mr = w(({ css: e }) => {
2578
+ const t = z(null);
2579
+ return L(() => {
2580
+ const e = t.current?.getRootNode();
2581
+ (e instanceof Document || e instanceof ShadowRoot) && pr(e);
2582
+ }, []), R("style", {
2583
+ ref: t,
2584
+ children: e
2585
+ });
2586
+ });
2587
+ mr.displayName = "ThemeStyle";
2588
+ var gr = g("light");
2589
+ function _r(e) {
2590
+ const { mode: t, fallback: n } = e || {}, o = S(gr), r = n ?? o, [i, s] = A(() => {
2575
2591
  if ("light" === t || "dark" === t) return {
2576
2592
  themeMode: t,
2577
2593
  source: "prop"
2578
2594
  };
2579
2595
  if ("undefined" != typeof document) {
2580
- const e = mr();
2596
+ const e = yr();
2581
2597
  if (e) return {
2582
2598
  themeMode: e,
2583
2599
  source: "class"
2584
2600
  };
2585
2601
  }
2586
- return pr(r);
2602
+ return vr(r);
2587
2603
  });
2588
2604
  return M(() => {
2589
2605
  const e = () => {
@@ -2592,11 +2608,11 @@ function fr(e) {
2592
2608
  themeMode: t,
2593
2609
  source: "prop"
2594
2610
  })));
2595
- const e = mr();
2611
+ const e = yr();
2596
2612
  s(e ? {
2597
2613
  themeMode: e,
2598
2614
  source: "class"
2599
- } : pr(r));
2615
+ } : vr(r));
2600
2616
  }, n = new MutationObserver(e), o = [document.documentElement, document.body].filter(Boolean);
2601
2617
  for (const e of o) n.observe(e, {
2602
2618
  attributes: !0,
@@ -2608,25 +2624,25 @@ function fr(e) {
2608
2624
  };
2609
2625
  }, [t, r]), i;
2610
2626
  }
2611
- function pr(e) {
2627
+ function vr(e) {
2612
2628
  return "system" === e ? {
2613
- themeMode: gr(),
2629
+ themeMode: br(),
2614
2630
  source: "media"
2615
2631
  } : {
2616
2632
  themeMode: e,
2617
2633
  source: "fallback"
2618
2634
  };
2619
2635
  }
2620
- function mr() {
2636
+ function yr() {
2621
2637
  if ("undefined" == typeof document) return null;
2622
2638
  const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2623
2639
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2624
2640
  }
2625
- function gr() {
2641
+ function br() {
2626
2642
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2627
2643
  }
2628
- var _r = g(null), vr = () => S(_r), yr = (e) => {
2629
- const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u = vr(), h = T(() => ({
2644
+ var wr = g(null), xr = () => S(wr), Sr = (e) => {
2645
+ const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u = xr(), h = T(() => ({
2630
2646
  ...o?.light ?? {},
2631
2647
  ...u?.light ?? {},
2632
2648
  ...t ?? {}
@@ -2642,7 +2658,7 @@ var _r = g(null), vr = () => S(_r), yr = (e) => {
2642
2658
  o?.dark,
2643
2659
  u?.dark,
2644
2660
  n
2645
- ]), p = hr("token", E()), { themeMode: m } = fr("light" === i || "dark" === i ? { mode: i } : { fallback: "system" }), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? u?.mode, v = T(() => lr({
2661
+ ]), p = dr("token", E()), { themeMode: m } = _r("light" === i || "dark" === i ? { mode: i } : { fallback: "system" }), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? u?.mode, v = T(() => ar({
2646
2662
  app: {
2647
2663
  light: h,
2648
2664
  dark: d
@@ -2668,38 +2684,38 @@ var _r = g(null), vr = () => S(_r), yr = (e) => {
2668
2684
  _,
2669
2685
  h,
2670
2686
  d
2671
- ]), b = R("style", { children: v }), w = {};
2672
- g && (w[ar] = g), s && (w[cr] = s);
2687
+ ]), b = R(mr, { css: v }), w = {};
2688
+ g && (w[cr] = g), s && (w[ur] = s);
2673
2689
  let x = c;
2674
2690
  if (l || Object.keys(w).length > 0) {
2675
2691
  const e = f.Children.only(c);
2676
2692
  l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
2677
2693
  }
2678
- return $(_r.Provider, {
2694
+ return $(wr.Provider, {
2679
2695
  value: y,
2680
2696
  children: [b, x]
2681
2697
  });
2682
2698
  };
2683
- function br(e, t) {
2699
+ function Mr(e, t) {
2684
2700
  if (!e || "undefined" == typeof getComputedStyle) return;
2685
- const n = getComputedStyle(e).getPropertyValue(xr(t)).trim();
2701
+ const n = getComputedStyle(e).getPropertyValue(Cr(t)).trim();
2686
2702
  return "" === n ? void 0 : n;
2687
2703
  }
2688
- function wr(e, t) {
2704
+ function Er(e, t) {
2689
2705
  const n = {};
2690
2706
  if (!e || "undefined" == typeof getComputedStyle) return n;
2691
2707
  const o = getComputedStyle(e);
2692
2708
  for (const e of t) {
2693
- const t = o.getPropertyValue(xr(e)).trim();
2709
+ const t = o.getPropertyValue(Cr(e)).trim();
2694
2710
  "" !== t && (n[e] = t);
2695
2711
  }
2696
2712
  return n;
2697
2713
  }
2698
- function xr(e) {
2714
+ function Cr(e) {
2699
2715
  return e.startsWith("--") ? e : `--sxl-${e}`;
2700
2716
  }
2701
- yr.displayName = "TokenThemeProvider";
2702
- var Sr = g(null), Mr = () => {
2717
+ Sr.displayName = "TokenThemeProvider";
2718
+ var Lr = g(null), Tr = () => {
2703
2719
  const e = (t, n) => {
2704
2720
  if (null === n) return;
2705
2721
  t.add(n);
@@ -2762,25 +2778,25 @@ var Sr = g(null), Mr = () => {
2762
2778
  })
2763
2779
  };
2764
2780
  return r;
2765
- }, Er = () => S(Sr), Cr = (e) => {
2781
+ }, kr = () => S(Lr), zr = (e) => {
2766
2782
  const t = {};
2767
- return e ? (e.mode && (t[ar] = e.mode), e.surface && (t[cr] = e.surface), {
2783
+ return e ? (e.mode && (t[cr] = e.mode), e.surface && (t[ur] = e.surface), {
2768
2784
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2769
2785
  attrs: t
2770
2786
  }) : { attrs: t };
2771
- }, Lr = (e) => {
2787
+ }, Ar = (e) => {
2772
2788
  const t = e?.ownerDocument, n = x((e) => {
2773
2789
  if (!t || "undefined" == typeof MutationObserver) return () => {};
2774
2790
  const n = new MutationObserver(e);
2775
2791
  return n.observe(t.documentElement, {
2776
2792
  attributes: !0,
2777
2793
  subtree: !0,
2778
- attributeFilter: [ar, cr]
2794
+ attributeFilter: [cr, ur]
2779
2795
  }), () => n.disconnect();
2780
2796
  }, [t]), o = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [r, i] = D(n, o, o).split("\n"), s = {};
2781
- return r && (s[ar] = r), i && (s[cr] = i), s;
2782
- }, Tr = () => {
2783
- const e = S(Sr), t = vr();
2797
+ return r && (s[cr] = r), i && (s[ur] = i), s;
2798
+ }, Dr = () => {
2799
+ const e = S(Lr), t = xr();
2784
2800
  return T(() => {
2785
2801
  const n = e?.themeScope;
2786
2802
  return t?.scopeClass || t?.mode ? {
@@ -2793,16 +2809,16 @@ var Sr = g(null), Mr = () => {
2793
2809
  t?.scopeClass,
2794
2810
  t?.mode
2795
2811
  ]);
2796
- }, kr = "_float-popper_1z06c_1", zr = "_float-popper-grow_1z06c_14", Ar = "_entered_1z06c_22", Dr = [0, 2], Pr = (e) => {
2812
+ }, Pr = "_float-popper_1z06c_1", Rr = "_float-popper-grow_1z06c_14", $r = "_entered_1z06c_22", Br = [0, 2], Or = (e) => {
2797
2813
  const t = "function" == typeof e ? e() : e;
2798
2814
  if (!t) return null;
2799
2815
  if (1 === t.nodeType) return t;
2800
2816
  const n = t.contextElement;
2801
2817
  return n && 1 === n.nodeType ? n : null;
2802
- }, Rr = w(v((t, n) => {
2803
- const { open: o, children: r, label: i, offsets: s = Dr, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: E, onClosing: L, onClose: k, ...D } = t;
2818
+ }, Hr = w(v((t, n) => {
2819
+ const { open: o, children: r, label: i, offsets: s = Br, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: E, onClosing: L, onClose: k, ...D } = t;
2804
2820
  if (Array.isArray(r)) throw new Error("children can not be an array");
2805
- const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = ln(), se = Tr(), le = Lr(a ? null : Pr(l)), ae = z(h);
2821
+ const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = an(), se = Dr(), le = Ar(a ? null : Or(l)), ae = z(h);
2806
2822
  ae.current = h;
2807
2823
  const ce = !!h, ue = d ? "object" == typeof d ? d.padding ?? 0 : 0 : null, { mainAxis: he, crossAxis: de, alignmentAxis: fe } = Array.isArray(s) ? {
2808
2824
  mainAxis: s[1] ?? 0,
@@ -2851,7 +2867,7 @@ var Sr = g(null), Mr = () => {
2851
2867
  return e && (e.width || e.height || e.x || e.y) ? (re.current = e, e) : re.current ?? new DOMRect(0, 0, 0, 0);
2852
2868
  },
2853
2869
  get contextElement() {
2854
- if (!a) return Pr(l) ?? void 0;
2870
+ if (!a) return Or(l) ?? void 0;
2855
2871
  }
2856
2872
  }), [a, l]), ge = T(() => v ? (e, t, n) => W(e, t, n, { animationFrame: !0 }) : W, [v]), { refs: _e, floatingStyles: ve, isPositioned: ye, placement: be, update: we } = X({
2857
2873
  placement: c,
@@ -2893,16 +2909,16 @@ var Sr = g(null), Mr = () => {
2893
2909
  e.target === e.currentTarget && o && G && B?.();
2894
2910
  }, [o, G]);
2895
2911
  if (!N) return null;
2896
- const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = Cr(se);
2912
+ const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = zr(se);
2897
2913
  let Le;
2898
2914
  Le = "anchor" === _ ? {
2899
2915
  ...Ce,
2900
2916
  ...le
2901
2917
  } : Ee || Ce["data-sxl-theme-mode"] || Ce["data-sxl-theme-surface"] ? Ce : le;
2902
- const Te = m ?? Xo("popup"), ke = r || e.EmptyArray;
2918
+ const Te = m ?? Zo("popup"), ke = r || e.EmptyArray;
2903
2919
  return H(R("div", {
2904
2920
  ref: xe,
2905
- className: F(kr, b, Ee),
2921
+ className: F(Pr, b, Ee),
2906
2922
  role: void 0,
2907
2923
  "data-placement": be ?? c,
2908
2924
  ...Le,
@@ -2910,29 +2926,29 @@ var Sr = g(null), Mr = () => {
2910
2926
  ...ve,
2911
2927
  maxHeight: u ? Q : void 0,
2912
2928
  maxWidth: u ? te : void 0,
2913
- zIndex: o ? Te : Zo(Te, -1),
2929
+ zIndex: o ? Te : qo(Te, -1),
2914
2930
  pointerEvents: N && o ? void 0 : "none",
2915
2931
  ...y
2916
2932
  },
2917
2933
  ...D,
2918
2934
  children: f ? R("div", {
2919
- className: F(zr, { [Ar]: G }),
2935
+ className: F(Rr, { [$r]: G }),
2920
2936
  style: { transformOrigin: Me },
2921
2937
  onTransitionEnd: Se,
2922
2938
  children: ke
2923
2939
  }) : ke
2924
2940
  }), p ?? ie());
2925
2941
  }));
2926
- Rr.displayName = "FloatPopper";
2927
- var $r = "_float-popup_juap7_1", Br = (e) => {
2942
+ Hr.displayName = "FloatPopper";
2943
+ var Ir = "_float-popup_juap7_1", Nr = (e) => {
2928
2944
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2929
2945
  return R("div", {
2930
- className: F("menu", $r, s),
2946
+ className: F("sxl-menu", Ir, s),
2931
2947
  ...l,
2932
2948
  children: i
2933
2949
  });
2934
- }, Or = "_float-panel_qj0za_1", Hr = w(v((e, t) => {
2935
- const { floatReference: n, popupContainer: o, renderPopupPanel: r = Br, children: i, className: s, ...l } = e, a = {
2950
+ }, Fr = "_float-panel_qj0za_1", Wr = w(v((e, t) => {
2951
+ const { floatReference: n, popupContainer: o, renderPopupPanel: r = Nr, children: i, className: s, ...l } = e, a = {
2936
2952
  popupContainer: o,
2937
2953
  floatReference: n,
2938
2954
  children: i,
@@ -2940,19 +2956,19 @@ var $r = "_float-popup_juap7_1", Br = (e) => {
2940
2956
  };
2941
2957
  return R("div", {
2942
2958
  ref: t,
2943
- className: F(Or, s),
2959
+ className: F(Fr, s),
2944
2960
  tabIndex: 0,
2945
- children: R(Po, {
2961
+ children: R(Ro, {
2946
2962
  render: r,
2947
2963
  props: a
2948
2964
  })
2949
2965
  });
2950
2966
  }));
2951
- Hr.displayName = "FloatPanelSurface";
2952
- var Ir = w(v((e, t) => {
2953
- const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Br, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = Yt(u ?? (() => {}), [u]), v = Yt(h ?? (() => {}), [h]), y = Yt(d ?? (() => {}), [d]), b = Yt(f ?? (() => {}), [f]), [w, x] = A(), S = z(null), M = Yt((e, t) => {
2967
+ Wr.displayName = "FloatPanelSurface";
2968
+ var Kr = w(v((e, t) => {
2969
+ const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Nr, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = Yt(u ?? (() => {}), [u]), v = Yt(h ?? (() => {}), [h]), y = Yt(d ?? (() => {}), [d]), b = Yt(f ?? (() => {}), [f]), [w, x] = A(), S = z(null), M = Yt((e, t) => {
2954
2970
  x(e), c?.(S.current, t);
2955
- }, [c]), E = T(() => R(Hr, {
2971
+ }, [c]), E = T(() => R(Wr, {
2956
2972
  ref: S,
2957
2973
  className: m,
2958
2974
  floatReference: s,
@@ -2966,7 +2982,7 @@ var Ir = w(v((e, t) => {
2966
2982
  w,
2967
2983
  s
2968
2984
  ]);
2969
- return R(Rr, {
2985
+ return R(Hr, {
2970
2986
  ref: t,
2971
2987
  anchorEl: o,
2972
2988
  anchorPosition: r,
@@ -2981,9 +2997,9 @@ var Ir = w(v((e, t) => {
2981
2997
  children: E
2982
2998
  });
2983
2999
  }));
2984
- Ir.displayName = "FloatPanel";
2985
- var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
2986
- const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Sr), h = T(() => {
3000
+ Kr.displayName = "FloatPanel";
3001
+ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3002
+ const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Lr), h = T(() => {
2987
3003
  const e = u?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, h = l?.length || a || c ? {
2988
3004
  classes: l,
2989
3005
  surface: a,
@@ -3004,12 +3020,12 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3004
3020
  s,
3005
3021
  u
3006
3022
  ]), d = Lt();
3007
- let f = R(Sr.Provider, {
3023
+ let f = R(Lr.Provider, {
3008
3024
  value: h,
3009
3025
  children: c
3010
3026
  });
3011
3027
  const p = l || !d, m = z(null);
3012
- p && null === m.current && (m.current = Mr());
3028
+ p && null === m.current && (m.current = Tr());
3013
3029
  const g = p ? m.current : null;
3014
3030
  g && (f = R(Ct, {
3015
3031
  value: g,
@@ -3023,8 +3039,8 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3023
3039
  a.current = null;
3024
3040
  });
3025
3041
  }, [a, _]), f;
3026
- }, Wr = (e) => {
3027
- const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f = Er(), p = u ?? f?.renderFloatPanel ?? Nr, m = void 0 === c ? f?.renderPopupPanel ?? Br : c, g = Lt(), [_, v] = A(null), [y, b] = A(!1), [w, S] = A(!1), E = T(() => i ?? g ?? Mr(), []), C = T(() => E.getRoot(), []), L = T(() => ({ label: r }), []), D = z(null), P = z(t);
3042
+ }, Yr = (e) => {
3043
+ const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f = kr(), p = u ?? f?.renderFloatPanel ?? Vr, m = void 0 === c ? f?.renderPopupPanel ?? Nr : c, g = Lt(), [_, v] = A(null), [y, b] = A(!1), [w, S] = A(!1), E = T(() => i ?? g ?? Tr(), []), C = T(() => E.getRoot(), []), L = T(() => ({ label: r }), []), D = z(null), P = z(t);
3028
3044
  M(() => {
3029
3045
  P.current = t;
3030
3046
  }, [t]);
@@ -3117,7 +3133,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3117
3133
  M(() => {
3118
3134
  Y && (_ ? h?.() : !1 === _ && d?.()), oe(y ? R(Ct, {
3119
3135
  value: G,
3120
- children: R(Po, {
3136
+ children: R(Ro, {
3121
3137
  render: p,
3122
3138
  props: {
3123
3139
  ...f?.propsFloatPanel,
@@ -3181,8 +3197,8 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3181
3197
  reference: G,
3182
3198
  isOpen: !0 === _
3183
3199
  };
3184
- }, Kr = {}, Vr = (e) => {
3185
- const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Kr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
3200
+ }, Xr = {}, Zr = (e) => {
3201
+ const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Xr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
3186
3202
  return R("div", {
3187
3203
  style: {
3188
3204
  ...n,
@@ -3190,7 +3206,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3190
3206
  },
3191
3207
  ...c,
3192
3208
  children: R("div", {
3193
- className: F("hit-box", d),
3209
+ className: F("sxl-hit-box", d),
3194
3210
  style: {
3195
3211
  left: (u ? -r : 0) + "px",
3196
3212
  width: `calc(100% + ${u ? r + i : 0}px)`,
@@ -3203,7 +3219,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3203
3219
  ...f
3204
3220
  })
3205
3221
  }, l);
3206
- }, jr = {}, Yr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Xr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Zr = (e, t) => {
3222
+ }, qr = {}, Ur = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Gr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Jr = (e, t) => {
3207
3223
  if (null == e) return null;
3208
3224
  const n = {
3209
3225
  percent: null,
@@ -3211,8 +3227,8 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3211
3227
  };
3212
3228
  let o = t;
3213
3229
  return "string" == typeof e && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), o = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), o = !0), e = parseFloat(e)), o ? n.percent = e : n.pixels = e, Object.freeze(n);
3214
- }, qr = w(v((e, t) => {
3215
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = jr, propsPane: w = jr, propsPaneBefore: x = jr, propsPaneAfter: S = jr, renderResizer: E = Vr } = e;
3230
+ }, Qr = w(v((e, t) => {
3231
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = qr, propsPane: w = qr, propsPaneBefore: x = qr, propsPaneAfter: S = qr, renderResizer: E = Zr } = e;
3216
3232
  if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
3217
3233
  const C = T(() => y(o) && y(n), [o, n]), L = T(() => {
3218
3234
  let e = null;
@@ -3221,21 +3237,21 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3221
3237
  return {
3222
3238
  fixedPaneOffset: e,
3223
3239
  isPercent: t,
3224
- minBefore: Zr(a, t),
3225
- maxBefore: Zr(c, t),
3226
- minAfter: Zr(u, t),
3227
- maxAfter: Zr(h, t)
3240
+ minBefore: Jr(a, t),
3241
+ maxBefore: Jr(c, t),
3242
+ minAfter: Jr(u, t),
3243
+ maxAfter: Jr(h, t)
3228
3244
  };
3229
3245
  }, [
3230
3246
  a,
3231
3247
  c,
3232
3248
  u,
3233
3249
  h
3234
- ]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() => Zr(s, null === i));
3250
+ ]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() => Jr(s, null === i));
3235
3251
  M(() => {
3236
- P(Zr(s, null === i));
3252
+ P(Jr(s, null === i));
3237
3253
  }, [s, i]);
3238
- const [B, { width: O, height: H }] = yo(), [I, { width: W, height: K }] = yo(), V = "row" === r ? W : K, j = "row" === r ? O : H, Y = T(() => ((e, t, n, o) => {
3254
+ const [B, { width: O, height: H }] = bo(), [I, { width: W, height: K }] = bo(), V = "row" === r ? W : K, j = "row" === r ? O : H, Y = T(() => ((e, t, n, o) => {
3239
3255
  const r = [null, null], i = [null, null];
3240
3256
  if (e || (e = {
3241
3257
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -3243,13 +3259,13 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3243
3259
  }), 0 === t) return void 0 !== e.pixels && null !== e.pixels ? 1 !== o.fixedPaneOffset ? (r[0] = e.pixels, i[1] = 100) : (r[1] = e.pixels - n, i[0] = 100) : void 0 !== e.percent && null !== e.percent && (1 !== o.fixedPaneOffset ? (i[0] = e.percent, i[1] = 100 - e.percent) : (i[1] = e.percent, i[0] = 100 - e.percent)), {
3244
3260
  percents: i,
3245
3261
  pixels: r,
3246
- minBefore: Xr(o.minBefore, !0),
3247
- maxBefore: Xr(o.maxBefore, !0),
3248
- minAfter: Xr(o.minAfter),
3249
- maxAfter: Xr(o.maxAfter)
3262
+ minBefore: Gr(o.minBefore, !0),
3263
+ maxBefore: Gr(o.maxBefore, !0),
3264
+ minAfter: Gr(o.minAfter),
3265
+ maxAfter: Gr(o.maxAfter)
3250
3266
  };
3251
- let s = Yr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Yr(o.minBefore, l, !0) ?? 0, c = Yr(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
3252
- u = (Yr(o.maxAfter, t, !1) ?? n) - n, h = Yr(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, Yr(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, Yr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3267
+ let s = Ur(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Ur(o.minBefore, l, !0) ?? 0, c = Ur(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
3268
+ u = (Ur(o.maxAfter, t, !1) ?? n) - n, h = Ur(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, Ur(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, Ur(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3253
3269
  const p = Math.max(0, Math.min(100, s / l * 100));
3254
3270
  return i[0] = p, i[1] = 100 - p, {
3255
3271
  percents: i,
@@ -3283,7 +3299,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3283
3299
  flexDirection: r,
3284
3300
  display: "flex"
3285
3301
  }, { className: de, style: fe, onPointerDown: pe, ...me } = b, ge = Yt((e) => {
3286
- const t = Zr(e, null === i);
3302
+ const t = Jr(e, null === i);
3287
3303
  P(t);
3288
3304
  }, [i]), _e = Yt((e) => {
3289
3305
  if (m || !X) return;
@@ -3302,7 +3318,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3302
3318
  j
3303
3319
  ]), ve = Yt((e) => {
3304
3320
  if (document.removeEventListener("pointermove", _e), document.removeEventListener("touchmove", _e), document.removeEventListener("pointerup", ve), X && (Z(!1), D)) {
3305
- if (G(D.pixels ?? 0), !Zr(s, null === i) || D.pixels !== s) {
3321
+ if (G(D.pixels ?? 0), !Jr(s, null === i) || D.pixels !== s) {
3306
3322
  const e = D.pixels ?? 0, t = {
3307
3323
  pixels: e,
3308
3324
  percent: D.percent ?? e / j * 100
@@ -3319,14 +3335,14 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3319
3335
  j
3320
3336
  ]), ye = Yt((e) => {
3321
3337
  pe?.(e), e.defaultPrevented || m || X || (Z(!0), q(), document.addEventListener("pointermove", _e, { passive: !1 }), document.addEventListener("touchmove", _e, { passive: !1 }), document.addEventListener("pointerup", ve, { passive: !1 }));
3322
- }, [pe]), be = lo(t, () => ({
3338
+ }, [pe]), be = ao(t, () => ({
3323
3339
  setPosition: ge,
3324
3340
  isSplitPane: () => !0
3325
- }), []), we = N([I, Q]), xe = T(() => C ? R(Po, {
3341
+ }), []), we = N([I, Q]), xe = T(() => C ? R(Ro, {
3326
3342
  render: E,
3327
3343
  props: {
3328
3344
  ref: we,
3329
- className: F("resizer", de),
3345
+ className: F("sxl-resizer", de),
3330
3346
  onPointerDownCapture: ye,
3331
3347
  style: {
3332
3348
  cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
@@ -3360,7 +3376,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3360
3376
  };
3361
3377
  return R("div", {
3362
3378
  ref: J,
3363
- className: F("before", ne, ie),
3379
+ className: F("sxl-before", ne, ie),
3364
3380
  style: e,
3365
3381
  ...oe,
3366
3382
  ...le,
@@ -3383,7 +3399,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3383
3399
  };
3384
3400
  return R("div", {
3385
3401
  ref: ee,
3386
- className: F("after", ne, ae),
3402
+ className: F("sxl-after", ne, ae),
3387
3403
  style: e,
3388
3404
  ...oe,
3389
3405
  ...ue,
@@ -3398,7 +3414,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3398
3414
  ]), Ce = N([B, be]);
3399
3415
  return $("div", {
3400
3416
  ref: Ce,
3401
- className: F("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3417
+ className: F("sxl-splitPane", "row" === r ? "sxl-vertical" : "sxl-horizontal", { "sxl-dragging": X }, f),
3402
3418
  style: he,
3403
3419
  children: [
3404
3420
  Me,
@@ -3407,7 +3423,7 @@ var Nr = (e) => R(Ir, { ...e }), Fr = (e) => {
3407
3423
  ]
3408
3424
  });
3409
3425
  }));
3410
- function Ur(e) {
3426
+ function ei(e) {
3411
3427
  if ("function" == typeof e) return e;
3412
3428
  if ("string" == typeof e) {
3413
3429
  const t = e.trim();
@@ -3440,12 +3456,12 @@ function Ur(e) {
3440
3456
  return null;
3441
3457
  }
3442
3458
  }(t);
3443
- if (e) return Qr(e);
3459
+ if (e) return oi(e);
3444
3460
  }
3445
3461
  if (t.startsWith("<")) {
3446
- if (/^<\s*svg\b/i.test(t)) return Qr(t);
3462
+ if (/^<\s*svg\b/i.test(t)) return oi(t);
3447
3463
  if (/^<\s*path\b/i.test(t)) {
3448
- const e = Gr(t);
3464
+ const e = ti(t);
3449
3465
  if (e) return { paths: [{ d: e }] };
3450
3466
  }
3451
3467
  return { paths: [{ d: t }] };
@@ -3457,7 +3473,7 @@ function Ur(e) {
3457
3473
  for (const n of e) if ("string" == typeof n) {
3458
3474
  const e = String(n).trim();
3459
3475
  if (e.startsWith("<path")) {
3460
- const n = Gr(e);
3476
+ const n = ti(e);
3461
3477
  n && t.push({ d: n });
3462
3478
  } else t.push({ d: e });
3463
3479
  } else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
@@ -3465,14 +3481,14 @@ function Ur(e) {
3465
3481
  }
3466
3482
  return e;
3467
3483
  }
3468
- function Gr(e) {
3484
+ function ti(e) {
3469
3485
  const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
3470
3486
  return t ? t[1] ?? t[2] ?? null : null;
3471
3487
  }
3472
- function Jr(e) {
3488
+ function ni(e) {
3473
3489
  if ("svg" in e) return {
3474
3490
  ...e,
3475
- svg: Ur(e.svg)
3491
+ svg: ei(e.svg)
3476
3492
  };
3477
3493
  if ("url" in e) {
3478
3494
  const t = "string" == typeof e.url ? { src: e.url } : e.url;
@@ -3490,7 +3506,7 @@ function Jr(e) {
3490
3506
  }
3491
3507
  return e;
3492
3508
  }
3493
- function Qr(e) {
3509
+ function oi(e) {
3494
3510
  try {
3495
3511
  if ("undefined" != typeof DOMParser) {
3496
3512
  const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
@@ -3523,9 +3539,9 @@ function Qr(e) {
3523
3539
  paths: o
3524
3540
  };
3525
3541
  }
3526
- function ei(e) {
3542
+ function ri(e) {
3527
3543
  const t = {};
3528
- for (const [n, o] of Object.entries(e.icons)) t[n] = Jr(o);
3544
+ for (const [n, o] of Object.entries(e.icons)) t[n] = ni(o);
3529
3545
  const n = {
3530
3546
  label: e.meta?.label ?? "Unnamed",
3531
3547
  version: e.meta?.version ?? "1.0.0",
@@ -3542,14 +3558,14 @@ function ei(e) {
3542
3558
  const e = {};
3543
3559
  for (const [t, n] of Object.entries(r)) {
3544
3560
  const o = {};
3545
- for (const [e, t] of Object.entries(n)) o[e] = Jr(t);
3561
+ for (const [e, t] of Object.entries(n)) o[e] = ni(t);
3546
3562
  e[t] = o;
3547
3563
  }
3548
3564
  o.__overrides = e;
3549
3565
  }
3550
3566
  return o;
3551
3567
  }
3552
- function ti() {
3568
+ function ii() {
3553
3569
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3554
3570
  let n = "base", o = /* @__PURE__ */ new Map();
3555
3571
  async function r(t) {
@@ -3560,7 +3576,7 @@ function ti() {
3560
3576
  if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
3561
3577
  o.loading = o.loader().then((e) => {
3562
3578
  const t = e && "object" == typeof e && "default" in e ? e.default : e;
3563
- o.pack = ei(t);
3579
+ o.pack = ri(t);
3564
3580
  }).catch((e) => {
3565
3581
  throw o.loading = void 0, e;
3566
3582
  });
@@ -3615,7 +3631,7 @@ function ti() {
3615
3631
  return {
3616
3632
  register: function(t, o) {
3617
3633
  const r = e.get(t) ?? {};
3618
- "function" == typeof o ? r.loader = o : r.pack = ei(o), e.set(t, r), n || (n = t);
3634
+ "function" == typeof o ? r.loader = o : r.pack = ri(o), e.set(t, r), n || (n = t);
3619
3635
  },
3620
3636
  prefetch: async function(e = n) {
3621
3637
  const t = Array.isArray(e) ? e : [e];
@@ -3678,25 +3694,25 @@ function ti() {
3678
3694
  }
3679
3695
  };
3680
3696
  }
3681
- qr.displayName = "SplitPane";
3682
- var ni = ti();
3683
- ni.register("base", () => import("./Dmps0ZIoLh14qvGI.mjs")), ni.register("cf", () => import("./BILf4bRupmxScC5R.mjs"));
3684
- var oi = (e) => R("svg", {
3697
+ Qr.displayName = "SplitPane";
3698
+ var si = ii();
3699
+ si.register("base", () => import("./BQslMd4UYY47M7dX.mjs")), si.register("cf", () => import("./BuKRRQ8FGiZxTYQ1.mjs"));
3700
+ var li = (e) => R("svg", {
3685
3701
  ...e,
3686
3702
  children: R("path", {})
3687
- }), ri = {
3703
+ }), ai = {
3688
3704
  Icon: "_Icon_16f7r_10",
3689
3705
  "sxl-walk": "_sxl-walk_16f7r_1"
3690
- }, ii = w((t) => {
3706
+ }, ci = w((t) => {
3691
3707
  const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: u, children: h, ...d } = t, [f, p] = A(null);
3692
3708
  M(() => {
3693
3709
  let t = !0, r = o, i = n;
3694
3710
  if (!i) {
3695
- const t = ni.getPack(r);
3711
+ const t = si.getPack(r);
3696
3712
  p({
3697
3713
  glyph: t ? { svg: e.EmptyArray } : void 0,
3698
3714
  pack: t ?? void 0,
3699
- packKey: r ?? ni.getActive()
3715
+ packKey: r ?? si.getActive()
3700
3716
  });
3701
3717
  return;
3702
3718
  }
@@ -3704,7 +3720,7 @@ var oi = (e) => R("svg", {
3704
3720
  const [e, t] = i.split(":");
3705
3721
  r = e, i = t;
3706
3722
  }
3707
- return ni.resolve(i, { packKey: r }).then((e) => {
3723
+ return si.resolve(i, { packKey: r }).then((e) => {
3708
3724
  t && p(e);
3709
3725
  }).catch(() => {}), () => {
3710
3726
  t = !1;
@@ -3713,7 +3729,7 @@ var oi = (e) => R("svg", {
3713
3729
  const m = f?.pack, g = f?.glyph, _ = f?.packKey;
3714
3730
  let v = g ? g.svg : void 0;
3715
3731
  const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = T(() => [
3716
- ri.Icon,
3732
+ ai.Icon,
3717
3733
  "icon",
3718
3734
  r
3719
3735
  ].filter(Boolean).join(" "), [r]), S = T(() => {
@@ -3749,8 +3765,8 @@ var oi = (e) => R("svg", {
3749
3765
  return L(R(e, { ...t }));
3750
3766
  }
3751
3767
  const k = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3752
- if ("function" == typeof v) return L(v(k) ?? R(oi, { ...k }));
3753
- if (!v) return L(R(oi, { ...k }));
3768
+ if ("function" == typeof v) return L(v(k) ?? R(li, { ...k }));
3769
+ if (!v) return L(R(li, { ...k }));
3754
3770
  const z = v.paths;
3755
3771
  return L(R("svg", {
3756
3772
  ...k,
@@ -3765,7 +3781,7 @@ var oi = (e) => R("svg", {
3765
3781
  }, t)) : null
3766
3782
  }));
3767
3783
  });
3768
- function si(e) {
3784
+ function ui(e) {
3769
3785
  const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...u } = e, h = T(() => {
3770
3786
  if (!t) return;
3771
3787
  const e = {
@@ -3781,7 +3797,7 @@ function si(e) {
3781
3797
  i,
3782
3798
  n
3783
3799
  ]), d = T(() => t ? c + " walking" : c, [t, c]);
3784
- return R(ii, {
3800
+ return R(ci, {
3785
3801
  iconKey: s,
3786
3802
  packKey: l,
3787
3803
  className: d,
@@ -3792,7 +3808,7 @@ function si(e) {
3792
3808
  ...u
3793
3809
  });
3794
3810
  }
3795
- var li = class {
3811
+ var hi = class {
3796
3812
  constructor() {
3797
3813
  this.store = /* @__PURE__ */ new Map();
3798
3814
  }
@@ -3805,32 +3821,32 @@ var li = class {
3805
3821
  removeItem(e) {
3806
3822
  this.store.delete(e);
3807
3823
  }
3808
- }, ai = g(null), ci = Object.freeze({}), ui = {
3824
+ }, di = g(null), fi = Object.freeze({}), pi = {
3809
3825
  parse: (e) => e ? JSON.parse(e) : null,
3810
3826
  stringify: JSON.stringify
3811
- }, hi = /* @__PURE__ */ new Map(), di = {
3812
- store: new li(),
3827
+ }, mi = /* @__PURE__ */ new Map(), gi = {
3828
+ store: new hi(),
3813
3829
  namespace: "",
3814
- serializer: ui,
3830
+ serializer: pi,
3815
3831
  onReady: (e) => {
3816
3832
  e();
3817
3833
  },
3818
3834
  debounceMs: 0,
3819
- defaultValues: ci,
3835
+ defaultValues: fi,
3820
3836
  notify: (e, t) => {
3821
- const n = hi.get(e);
3837
+ const n = mi.get(e);
3822
3838
  n && n.forEach((e) => e(t));
3823
3839
  },
3824
3840
  subscribeKey: (e, t) => {
3825
- const n = hi.get(e) ?? /* @__PURE__ */ new Set();
3826
- return n.add(t), hi.set(e, n), () => {
3827
- const n = hi.get(e);
3828
- n && (n.delete(t), 0 === n.size && hi.delete(e));
3841
+ const n = mi.get(e) ?? /* @__PURE__ */ new Set();
3842
+ return n.add(t), mi.set(e, n), () => {
3843
+ const n = mi.get(e);
3844
+ n && (n.delete(t), 0 === n.size && mi.delete(e));
3829
3845
  };
3830
3846
  }
3831
3847
  };
3832
- function fi(e, t, n = pi) {
3833
- const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(ai) || di, u = n.serializer ?? i ?? ui, h = z(null), d = T(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
3848
+ function _i(e, t, n = vi) {
3849
+ const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(di) || gi, u = n.serializer ?? i ?? pi, h = z(null), d = T(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
3834
3850
  if (null != e && Object.prototype.hasOwnProperty.call(c, e)) return c[e];
3835
3851
  const n = t;
3836
3852
  return "function" == typeof n ? n() : n;
@@ -3910,11 +3926,11 @@ function fi(e, t, n = pi) {
3910
3926
  x(() => C.current(), [])
3911
3927
  ];
3912
3928
  }
3913
- var pi = {};
3914
- function mi(e) {
3915
- const { store: t, namespace: n = "", serializer: o = vi, debounceMs: r = 150, defaultValues: i = ci, children: s } = e, l = z(i);
3916
- yi(l.current, i) || (l.current = i);
3917
- const a = l.current, c = T(() => "undefined" == typeof window ? new li() : t ?? new li(), [t]), u = z(/* @__PURE__ */ new Map()), h = T(() => ({
3929
+ var vi = {};
3930
+ function yi(e) {
3931
+ const { store: t, namespace: n = "", serializer: o = xi, debounceMs: r = 150, defaultValues: i = fi, children: s } = e, l = z(i);
3932
+ Si(l.current, i) || (l.current = i);
3933
+ const a = l.current, c = T(() => "undefined" == typeof window ? new hi() : t ?? new hi(), [t]), u = z(/* @__PURE__ */ new Map()), h = T(() => ({
3918
3934
  store: c,
3919
3935
  namespace: n,
3920
3936
  serializer: o,
@@ -3947,19 +3963,19 @@ function mi(e) {
3947
3963
  const t = e.slice(h.namespace.length + 1);
3948
3964
  h.notify(t);
3949
3965
  });
3950
- }, [h]), R(ai.Provider, {
3966
+ }, [h]), R(di.Provider, {
3951
3967
  value: h,
3952
3968
  children: s
3953
3969
  });
3954
3970
  }
3955
- var gi, _i, vi = {
3971
+ var bi, wi, xi = {
3956
3972
  parse: (e) => null == e ? null : JSON.parse(e),
3957
3973
  stringify: JSON.stringify
3958
- }, yi = (e, t) => {
3974
+ }, Si = (e, t) => {
3959
3975
  if (e === t) return !0;
3960
3976
  const n = Object.keys(e);
3961
3977
  return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
3962
- }, bi = class {
3978
+ }, Mi = class {
3963
3979
  constructor(e = window.localStorage) {
3964
3980
  this.storage = e;
3965
3981
  }
@@ -3986,10 +4002,10 @@ var gi, _i, vi = {
3986
4002
  };
3987
4003
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
3988
4004
  }
3989
- }, wi = /* @__PURE__ */ new WeakMap();
3990
- (_i = gi || (gi = {})).begin = function(e) {
3991
- let t = wi.get(e);
3992
- t || (t = /* @__PURE__ */ new Set(), wi.set(e, t));
4005
+ }, Ei = /* @__PURE__ */ new WeakMap();
4006
+ (wi = bi || (bi = {})).begin = function(e) {
4007
+ let t = Ei.get(e);
4008
+ t || (t = /* @__PURE__ */ new Set(), Ei.set(e, t));
3993
4009
  let n = () => {};
3994
4010
  const o = new Promise((e) => {
3995
4011
  n = e;
@@ -4000,25 +4016,25 @@ var gi, _i, vi = {
4000
4016
  return () => {
4001
4017
  r || (r = !0, i.delete(o), n());
4002
4018
  };
4003
- }, _i.isPending = function(e) {
4004
- return (wi.get(e)?.size ?? 0) > 0;
4019
+ }, wi.isPending = function(e) {
4020
+ return (Ei.get(e)?.size ?? 0) > 0;
4005
4021
  };
4006
- var xi = async (e) => {
4007
- const t = wi.get(e);
4022
+ var Ci = async (e) => {
4023
+ const t = Ei.get(e);
4008
4024
  for (; t && t.size > 0;) await Promise.allSettled([...t]);
4009
- }, Si = g(null), Mi = (e) => f.createElement(Si.Provider, { value: e.scope }, e.children), Ei = (e, t) => {
4010
- const n = S(Si), o = void 0 === t ? n : t;
4025
+ }, Li = g(null), Ti = (e) => f.createElement(Li.Provider, { value: e.scope }, e.children), ki = (e, t) => {
4026
+ const n = S(Li), o = void 0 === t ? n : t;
4011
4027
  M(() => {
4012
- if (o && e) return gi.begin(o);
4028
+ if (o && e) return bi.begin(o);
4013
4029
  }, [o, e]);
4014
- }, Ci = {
4030
+ }, zi = {
4015
4031
  Horizontal: "horizontal",
4016
4032
  Vertical: "vertical"
4017
- }, Li = "_scrollbar_2chse_24", Ti = "_track_2chse_35", ki = "_thumb_2chse_47", zi = "_scrollbar-button_2chse_96", Ai = "_touch-thumb_2chse_131", Di = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Pi = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Ri = { transform: "rotate(180deg)" }, $i = (e) => {
4018
- const { style: t, orientation: n = Ci.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Ci.Vertical ? Di : Pi;
4033
+ }, Ai = "_scrollbar_1kbpg_24", Di = "_track_1kbpg_35", Pi = "_thumb_1kbpg_47", Ri = "_scrollbar-button_1kbpg_96", $i = "_touch-thumb_1kbpg_131", Bi = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Oi = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Hi = { transform: "rotate(180deg)" }, Ii = (e) => {
4034
+ const { style: t, orientation: n = zi.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zi.Vertical ? Bi : Oi;
4019
4035
  return R("button", {
4020
4036
  style: t,
4021
- className: F(zi, n, "scroll-button"),
4037
+ className: F(Ri, `sxl-${n}`, "sxl-scroll-button"),
4022
4038
  disabled: r,
4023
4039
  ...i,
4024
4040
  children: R("svg", {
@@ -4028,23 +4044,23 @@ var xi = async (e) => {
4028
4044
  children: R("path", { d: s })
4029
4045
  })
4030
4046
  });
4031
- }, Bi = (e) => {
4032
- const { style: t, orientation: n = Ci.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Ci.Vertical ? Di : Pi;
4047
+ }, Ni = (e) => {
4048
+ const { style: t, orientation: n = zi.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zi.Vertical ? Bi : Oi;
4033
4049
  return R("button", {
4034
4050
  style: t,
4035
- className: F(zi, n, "scroll-button"),
4051
+ className: F(Ri, `sxl-${n}`, "sxl-scroll-button"),
4036
4052
  disabled: r,
4037
4053
  ...i,
4038
4054
  children: R("svg", {
4039
4055
  width: "9",
4040
4056
  height: "9",
4041
4057
  viewBox: "0 0 9 9",
4042
- style: Ri,
4058
+ style: Hi,
4043
4059
  children: R("path", { d: s })
4044
4060
  })
4045
4061
  });
4046
- }, Oi = (e) => {
4047
- const { style: t, orientation: n = Ci.Vertical, isBefore: o, ...r } = e, i = n === Ci.Vertical;
4062
+ }, Fi = (e) => {
4063
+ const { style: t, orientation: n = zi.Vertical, isBefore: o, ...r } = e, i = n === zi.Vertical;
4048
4064
  return R("div", {
4049
4065
  style: {
4050
4066
  display: "flex",
@@ -4056,9 +4072,9 @@ var xi = async (e) => {
4056
4072
  height: "24px",
4057
4073
  ...t
4058
4074
  },
4059
- className: `scrollbar-button ${i ? "vertical" : "horizontal"} edge`,
4075
+ className: `sxl-scrollbar-button ${i ? "sxl-vertical" : "sxl-horizontal"} sxl-edge`,
4060
4076
  ...r,
4061
- children: R(ii, {
4077
+ children: R(ci, {
4062
4078
  style: {
4063
4079
  transition: "opacity 240ms ease 0s",
4064
4080
  opacity: e.disabled ? 0 : 1,
@@ -4068,7 +4084,7 @@ var xi = async (e) => {
4068
4084
  iconKey: "MoreHorizontal"
4069
4085
  })
4070
4086
  });
4071
- }, Hi = 60, Ii = 260, Ni = 120, Fi = (e) => {
4087
+ }, Wi = 60, Ki = 260, Vi = 120, ji = (e) => {
4072
4088
  const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
4073
4089
  let c = null, u = null, h = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
4074
4090
  const v = () => {
@@ -4118,10 +4134,10 @@ var xi = async (e) => {
4118
4134
  },
4119
4135
  dispose: () => v()
4120
4136
  };
4121
- }, Wi = (e) => {
4137
+ }, Yi = (e) => {
4122
4138
  const [t, n] = A(null), o = z(e);
4123
4139
  o.current = e;
4124
- const r = T(() => Fi({
4140
+ const r = T(() => ji({
4125
4141
  vertical: o.current.vertical,
4126
4142
  getTrackRect: () => o.current.getTrackRect(),
4127
4143
  getThumb: () => o.current.getThumb(),
@@ -4137,16 +4153,16 @@ var xi = async (e) => {
4137
4153
  onPointerUp: r.onPointerUp,
4138
4154
  dragMode: t
4139
4155
  };
4140
- }, Ki = 22, Vi = 1.8, ji = 8, Yi = 4, Xi = 8, Zi = -2, qi = (e = 22) => e / 2 + 8, Ui = (e = 22) => e + 16, Gi = g(null), Ji = (e) => {
4156
+ }, Xi = 22, Zi = 1.8, qi = 8, Ui = 4, Gi = 8, Ji = -2, Qi = (e = 22) => e / 2 + 8, es = (e = 22) => e + 16, ts = g(null), ns = (e) => {
4141
4157
  const { value: t, children: n } = e;
4142
- return R(Gi.Provider, {
4158
+ return R(ts.Provider, {
4143
4159
  value: t,
4144
4160
  children: n
4145
4161
  });
4146
- }, Qi = () => S(Gi), es = Fe().supportsTouchEvents, ts = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ns = w(v((e, t) => {
4147
- const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Ci.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
4148
- if (!es) return null;
4149
- const _ = c === Ci.Vertical, v = Qi(), y = Yt(h ?? (() => {}), [h]), b = Yt(d ?? (() => {}), [d]), w = Yt(f ?? (() => {}), [f]), x = z(null), S = N([x, t]), E = Yt((e) => ({
4162
+ }, os = () => S(ts), rs = Fe().supportsTouchEvents, is = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ss = w(v((e, t) => {
4163
+ const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = zi.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
4164
+ if (!rs) return null;
4165
+ const _ = c === zi.Vertical, v = os(), y = Yt(h ?? (() => {}), [h]), b = Yt(d ?? (() => {}), [d]), w = Yt(f ?? (() => {}), [f]), x = z(null), S = N([x, t]), E = Yt((e) => ({
4150
4166
  dragging: e,
4151
4167
  element: x.current,
4152
4168
  source: "touch"
@@ -4164,7 +4180,7 @@ var xi = async (e) => {
4164
4180
  count: 0,
4165
4181
  timer: null
4166
4182
  });
4167
- k.current.isVertical = _, k.current.fraction = ts(u), k.current.hasEdgeHold = !!d;
4183
+ k.current.isVertical = _, k.current.fraction = is(u), k.current.hasEdgeHold = !!d;
4168
4184
  const D = Yt(() => {
4169
4185
  const e = k.current;
4170
4186
  e.timer && clearTimeout(e.timer), e.timer = null;
@@ -4183,7 +4199,7 @@ var xi = async (e) => {
4183
4199
  if (!e.hasEdgeHold) return;
4184
4200
  const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
4185
4201
  t !== e.edge && (e.edge = t, D(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(P, 60)));
4186
- }, []), B = pn(T(() => ({
4202
+ }, []), B = mn(T(() => ({
4187
4203
  processTouch: !0,
4188
4204
  onPointerDown: (e, t) => {
4189
4205
  const n = k.current;
@@ -4191,7 +4207,7 @@ var xi = async (e) => {
4191
4207
  },
4192
4208
  onPointerMoveOrWait: (e) => {
4193
4209
  const t = k.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
4194
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ts(t.rawFraction)), $();
4210
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(is(t.rawFraction)), $();
4195
4211
  },
4196
4212
  onPointerUp: (e) => {
4197
4213
  const t = k.current;
@@ -4204,10 +4220,10 @@ var xi = async (e) => {
4204
4220
  }, []), !v?.portalTarget) return null;
4205
4221
  const O = 1.8 * s, I = _ ? s : O, W = _ ? O : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - O - 4 - X);
4206
4222
  k.current.travel = Z;
4207
- const q = j + 4 + O / 2 + ts(u) * Z;
4223
+ const q = j + 4 + O / 2 + is(u) * Z;
4208
4224
  let U, G;
4209
4225
  return _ ? (U = v.width - v.crossInset - I / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - I / 2), H(R("div", {
4210
- className: F("touch-thumb", Ai, a, { dragging: C }),
4226
+ className: F("sxl-touch-thumb", $i, a, { "sxl-dragging": C }),
4211
4227
  ref: S,
4212
4228
  style: {
4213
4229
  left: U,
@@ -4232,15 +4248,15 @@ var xi = async (e) => {
4232
4248
  ...g
4233
4249
  }), v.portalTarget, m);
4234
4250
  }));
4235
- ns.displayName = "TouchThumbHandle";
4236
- var os = 24, rs = w(v((e, t) => {
4237
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Ci.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = os, maxThumbSize: m, renderScrollButtonStart: g = $i, renderScrollButtonEnd: _ = Bi, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Sn(), L = u ?? !C;
4251
+ ss.displayName = "TouchThumbHandle";
4252
+ var ls = 24, as = w(v((e, t) => {
4253
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = zi.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ls, maxThumbSize: m, renderScrollButtonStart: g = Ii, renderScrollButtonEnd: _ = Ni, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Mn(), L = u ?? !C;
4238
4254
  Yt(c ?? (() => {}), [c]);
4239
4255
  const [k, D] = A({
4240
4256
  offset: 0,
4241
4257
  length: 0,
4242
4258
  disabled: !1
4243
- }), B = z(-1), O = l === Ci.Vertical, [H, { width: I, height: W }] = yo(), K = O ? W : I, V = z(null), j = N([H, V]), Y = Yt((e, t, n) => {
4259
+ }), B = z(-1), O = l === zi.Vertical, [H, { width: I, height: W }] = bo(), K = O ? W : I, V = z(null), j = N([H, V]), Y = Yt((e, t, n) => {
4244
4260
  if (0 === t || 0 === n) {
4245
4261
  const e = {
4246
4262
  offset: 0,
@@ -4290,14 +4306,14 @@ var os = 24, rs = w(v((e, t) => {
4290
4306
  O,
4291
4307
  K
4292
4308
  ]);
4293
- const q = Math.max(0, o - r), U = lo(t, () => ({ isScrollbar: () => !0 }), []), G = Yt((e) => {
4309
+ const q = Math.max(0, o - r), U = ao(t, () => ({ isScrollbar: () => !0 }), []), G = Yt((e) => {
4294
4310
  const t = Math.max(1, Math.floor(.9 * r)), o = e > 0 ? Math.min(q, n + t) : Math.max(0, n - t);
4295
4311
  Z(o);
4296
4312
  }, [
4297
4313
  r,
4298
4314
  n,
4299
4315
  q
4300
- ]), Q = Wi({
4316
+ ]), Q = Yi({
4301
4317
  vertical: O,
4302
4318
  getTrackRect: () => V.current?.getBoundingClientRect() ?? null,
4303
4319
  getThumb: () => k.disabled ? null : {
@@ -4339,7 +4355,7 @@ var os = 24, rs = w(v((e, t) => {
4339
4355
  if (e) return null;
4340
4356
  const t = R("div", {
4341
4357
  ...y,
4342
- className: F(ki, { disabled: e }),
4358
+ className: F(Pi, { "sxl-disabled": e }),
4343
4359
  ref: ne,
4344
4360
  role: "slider",
4345
4361
  "aria-label": O ? "Rows" : "Columns",
@@ -4360,9 +4376,9 @@ var os = 24, rs = w(v((e, t) => {
4360
4376
  });
4361
4377
  if (!C || e) return t;
4362
4378
  const o = Math.max(0, K - k.length);
4363
- return $(P, { children: [t, R(ns, {
4379
+ return $(P, { children: [t, R(ss, {
4364
4380
  ...v,
4365
- orientation: O ? Ci.Vertical : Ci.Horizontal,
4381
+ orientation: O ? zi.Vertical : zi.Horizontal,
4366
4382
  fraction: o > 0 ? k.offset / o : 0,
4367
4383
  onScrollToFraction: (e) => X(e * o),
4368
4384
  onEdgeHold: b,
@@ -4415,7 +4431,7 @@ var os = 24, rs = w(v((e, t) => {
4415
4431
  ue
4416
4432
  ]);
4417
4433
  M(() => () => ue(), [ue]);
4418
- const de = T(() => L ? R(Po, {
4434
+ const de = T(() => L ? R(Ro, {
4419
4435
  render: g,
4420
4436
  props: {
4421
4437
  orientation: l,
@@ -4429,7 +4445,7 @@ var os = 24, rs = w(v((e, t) => {
4429
4445
  l,
4430
4446
  n,
4431
4447
  re
4432
- ]), fe = T(() => L ? R(Po, {
4448
+ ]), fe = T(() => L ? R(Ro, {
4433
4449
  render: _,
4434
4450
  props: {
4435
4451
  orientation: l,
@@ -4444,12 +4460,12 @@ var os = 24, rs = w(v((e, t) => {
4444
4460
  n,
4445
4461
  q,
4446
4462
  re
4447
- ]), pe = O ? "vertical" : "horizontal", me = N([U, t]);
4463
+ ]), pe = O ? "vertical" : "horizontal", me = `sxl-${pe}`, ge = N([U, t]);
4448
4464
  return $("div", {
4449
- ref: me,
4450
- className: F(s, Li, pe, {
4451
- dragging: ee,
4452
- "has-touch-thumb": C
4465
+ ref: ge,
4466
+ className: F(s, Ai, me, {
4467
+ "sxl-dragging": ee,
4468
+ "sxl-has-touch-thumb": C
4453
4469
  }),
4454
4470
  style: i,
4455
4471
  ...E,
@@ -4463,7 +4479,7 @@ var os = 24, rs = w(v((e, t) => {
4463
4479
  "aria-valuemax": q,
4464
4480
  "aria-valuenow": n,
4465
4481
  tabIndex: 0,
4466
- className: F(Ti, "track", pe),
4482
+ className: F(Di, "sxl-track", me),
4467
4483
  onMouseDown: S,
4468
4484
  onPointerDown: Q.onPointerDown,
4469
4485
  onPointerMove: Q.onPointerMove,
@@ -4474,24 +4490,24 @@ var os = 24, rs = w(v((e, t) => {
4474
4490
  fe
4475
4491
  ]
4476
4492
  });
4477
- })), is = Date.now, ss = 1e3, ls = {}, as = 1, cs = (e) => {
4478
- let t = null !== ls[e];
4479
- return t && (ls[e] = null), t;
4480
- }, us = (e, t, n, o = 0, r) => {
4481
- let i = is(), s = i, l = 0, a = 0, c = 0, u = as++;
4493
+ })), cs = Date.now, us = 1e3, hs = {}, ds = 1, fs = (e) => {
4494
+ let t = null !== hs[e];
4495
+ return t && (hs[e] = null), t;
4496
+ }, ps = (e, t, n, o = 0, r) => {
4497
+ let i = cs(), s = i, l = 0, a = 0, c = 0, u = ds++;
4482
4498
  if (u % 20 == 0) {
4483
4499
  const e = {};
4484
- for (let t in ls) e[t] = !0;
4485
- ls = e;
4500
+ for (let t in hs) e[t] = !0;
4501
+ hs = e;
4486
4502
  }
4487
4503
  const h = function(d) {
4488
- let f = !0 !== d, p = is(), m = !0;
4504
+ let f = !0 !== d, p = cs(), m = !0;
4489
4505
  try {
4490
4506
  m = (!t || t(u)) ?? !0;
4491
4507
  } catch (e) {
4492
4508
  m = !1;
4493
4509
  }
4494
- if (!ls[u] || !m) return ls[u] = null, void n?.(60 - a / ((p - i) / ss), u, !1);
4510
+ if (!hs[u] || !m) return hs[u] = null, void n?.(60 - a / ((p - i) / us), u, !1);
4495
4511
  if (f) {
4496
4512
  c = Math.round((p - s) / 16.666666666666668) - 1;
4497
4513
  for (let e = 0; e < Math.min(c, 4); e++) h(!0), a++;
@@ -4503,17 +4519,17 @@ var os = 24, rs = w(v((e, t) => {
4503
4519
  } catch (e) {
4504
4520
  _ = !1;
4505
4521
  }
4506
- !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (ls[u] = null, n?.(60 - a / ((p - i) / ss), u, 1 === l || null == o));
4522
+ !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (hs[u] = null, n?.(60 - a / ((p - i) / us), u, 1 === l || null == o));
4507
4523
  };
4508
- return ls[u] = !0, requestAnimationFrame(h), u;
4509
- }, hs = function(e) {
4524
+ return hs[u] = !0, requestAnimationFrame(h), u;
4525
+ }, ms = function(e) {
4510
4526
  return Math.pow(e - 1, 3) + 1;
4511
- }, ds = function(e) {
4527
+ }, gs = function(e) {
4512
4528
  return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
4513
- }, fs = Math.log(1.15) / 100, ps = (e) => {
4529
+ }, _s = Math.log(1.15) / 100, vs = (e) => {
4514
4530
  const t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
4515
4531
  return Math.sqrt(t * t + n * n);
4516
- }, ms = class {
4532
+ }, ys = class {
4517
4533
  constructor(e, t) {
4518
4534
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isZooming = !1, this.__pinchStartDistance = 0, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
4519
4535
  scrollingX: !0,
@@ -4567,7 +4583,7 @@ var os = 24, rs = w(v((e, t) => {
4567
4583
  }
4568
4584
  zoomTo(e, t = !1, n, o, r) {
4569
4585
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4570
- r && (this.__zoomComplete = r), this.__isDecelerating && (cs(this.__isDecelerating), this.__isDecelerating = 0);
4586
+ r && (this.__zoomComplete = r), this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0);
4571
4587
  const i = this.__zoomLevel;
4572
4588
  void 0 === n && (n = this.__clientWidth / 2), void 0 === o && (o = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
4573
4589
  const s = e / i;
@@ -4586,7 +4602,7 @@ var os = 24, rs = w(v((e, t) => {
4586
4602
  this.zoomTo(this.__zoomLevel * e, t, n, o, r);
4587
4603
  }
4588
4604
  scrollTo(e, t, n = !1, o) {
4589
- if (this.__isDecelerating && (cs(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4605
+ if (this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4590
4606
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4591
4607
  e *= o, t *= o, this.__computeScrollMax(o);
4592
4608
  } else o = this.__zoomLevel;
@@ -4597,16 +4613,16 @@ var os = 24, rs = w(v((e, t) => {
4597
4613
  this.scrollTo(o + (e || 0), r + (t || 0), n);
4598
4614
  }
4599
4615
  doMouseZoom(e, t, n, o) {
4600
- const r = Math.exp(-e * fs);
4616
+ const r = Math.exp(-e * _s);
4601
4617
  return this.zoomTo(this.__zoomLevel * r, !1, n - this.__clientLeft, o - this.__clientTop);
4602
4618
  }
4603
4619
  doTouchStart(e, t) {
4604
4620
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
4605
4621
  if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
4606
4622
  let n, o;
4607
- this.__interruptedAnimation = !0, this.__isDecelerating && (cs(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (cs(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4623
+ this.__interruptedAnimation = !0, this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (fs(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4608
4624
  let r = 1 === e.length;
4609
- r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = r ? 0 : ps(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4625
+ r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = r ? 0 : vs(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4610
4626
  }
4611
4627
  doTouchMove(e, t) {
4612
4628
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
@@ -4615,7 +4631,7 @@ var os = 24, rs = w(v((e, t) => {
4615
4631
  let n, o;
4616
4632
  2 === e.length ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, o = e[0].pageY);
4617
4633
  let r = this.__positions;
4618
- const i = 2 === e.length && this.__pinchStartDistance > 0 ? ps(e) / this.__pinchStartDistance : 1;
4634
+ const i = 2 === e.length && this.__pinchStartDistance > 0 ? vs(e) / this.__pinchStartDistance : 1;
4619
4635
  if (this.__isDragging) {
4620
4636
  let e = n - this.__lastTouchLeft, s = o - this.__lastTouchTop;
4621
4637
  this.__gestureMoveX = e, this.__gestureMoveY = s;
@@ -4662,14 +4678,14 @@ var os = 24, rs = w(v((e, t) => {
4662
4678
  }
4663
4679
  __publish(e, t, n, o = !1) {
4664
4680
  const r = this.__isAnimating;
4665
- if (r && (cs(r), this.__isAnimating = 0), o && this.options.animating) {
4681
+ if (r && (fs(r), this.__isAnimating = 0), o && this.options.animating) {
4666
4682
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
4667
4683
  const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, u = (e, t, n = !1) => {
4668
4684
  n && (this.__scrollLeft = o + l * e, this.__scrollTop = i + a * e, this.__zoomLevel = s + c * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
4669
4685
  }, h = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
4670
4686
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4671
4687
  };
4672
- this.__isAnimating = us(u, h, d, this.options.animationDuration, r ? hs : ds);
4688
+ this.__isAnimating = ps(u, h, d, this.options.animationDuration, r ? ms : gs);
4673
4689
  } else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4674
4690
  }
4675
4691
  __computeScrollMax(e = this.__zoomLevel) {
@@ -4681,7 +4697,7 @@ var os = 24, rs = w(v((e, t) => {
4681
4697
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / o) * o, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / o) * o;
4682
4698
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
4683
4699
  const t = this.options.snapping ? 4 : .1;
4684
- this.__isDecelerating = us((e, t, n = !1) => {
4700
+ this.__isDecelerating = ps((e, t, n = !1) => {
4685
4701
  this.__stepThroughDeceleration(n);
4686
4702
  }, () => {
4687
4703
  const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -4707,11 +4723,11 @@ var os = 24, rs = w(v((e, t) => {
4707
4723
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? o = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (o = this.__maxDecelerationScrollTop - n), 0 !== e && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * r : this.__decelerationVelocityX = e * i), 0 !== o && (o * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += o * r : this.__decelerationVelocityY = o * i);
4708
4724
  }
4709
4725
  }
4710
- }, gs = /* @__PURE__ */ new Set([
4726
+ }, bs = /* @__PURE__ */ new Set([
4711
4727
  "auto",
4712
4728
  "scroll",
4713
4729
  "overlay"
4714
- ]), _s = /* @__PURE__ */ new Set(["contain", "none"]), vs = (e, t) => {
4730
+ ]), ws = /* @__PURE__ */ new Set(["contain", "none"]), xs = (e, t) => {
4715
4731
  const { deltaX: n, deltaY: o, shiftKey: r } = e, i = r || Math.abs(n) > Math.abs(o), s = r ? o : i ? n : o;
4716
4732
  if (0 === s) return null;
4717
4733
  let l = e.target instanceof Element ? e.target : null;
@@ -4720,21 +4736,21 @@ var os = 24, rs = w(v((e, t) => {
4720
4736
  const e = i ? l.scrollWidth - l.clientWidth : l.scrollHeight - l.clientHeight;
4721
4737
  if (e > 0) {
4722
4738
  const t = getComputedStyle(l);
4723
- if (gs.has(i ? t.overflowX : t.overflowY)) {
4739
+ if (bs.has(i ? t.overflowX : t.overflowY)) {
4724
4740
  const n = i ? l.scrollLeft : l.scrollTop;
4725
4741
  if (s < 0 ? n > 0 : n < e - 1) return "native";
4726
- if (_s.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
4742
+ if (ws.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
4727
4743
  }
4728
4744
  }
4729
4745
  l = l.parentElement;
4730
4746
  }
4731
4747
  return null;
4732
- }, ys = 100 / 3, bs = G({
4748
+ }, Ss = 100 / 3, Ms = G({
4733
4749
  PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
4734
- defaultRenderScrollbar: () => xs,
4735
- getScrollTo: () => ws,
4736
- getWheelOwner: () => vs
4737
- }), ws = (e, t, n, o, r = 0) => {
4750
+ defaultRenderScrollbar: () => Cs,
4751
+ getScrollTo: () => Es,
4752
+ getWheelOwner: () => xs
4753
+ }), Es = (e, t, n, o, r = 0) => {
4738
4754
  for (let r = 0; r < n.length; r++) {
4739
4755
  const i = n[r].getBoundingClientRect();
4740
4756
  let s = i.left - t, l = s + i.width;
@@ -4743,18 +4759,18 @@ var os = 24, rs = w(v((e, t) => {
4743
4759
  } else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
4744
4760
  }
4745
4761
  return r;
4746
- }, xs = (e) => R(rs, { ...e }), Ss = (e) => {
4762
+ }, Cs = (e) => R(as, { ...e }), Ls = (e) => {
4747
4763
  const t = e.ownerDocument?.defaultView;
4748
4764
  return t ? t.getComputedStyle(e).touchAction : "";
4749
- }, Ms = (e) => {
4765
+ }, Ts = (e) => {
4750
4766
  const t = e.trim();
4751
4767
  return "" === t || "auto" === t || "manipulation" === t || t.split(/\s+/).some((e) => e.startsWith("pan-"));
4752
- }, Es = "_scrollpane_zdrii_2", Cs = "_scrollpane-content_zdrii_20", Ls = "_scrollpane-content-cell_zdrii_33", Ts = "_vertical-container_zdrii_42", ks = "_horizontal-container_zdrii_50", zs = "_corner-container_zdrii_59", As = "_touch-thumb-overlay_zdrii_68", Ds = w(v((e, t) => {
4753
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Ps, renderScrollbarHorizontal: u = xs, renderScrollbarVertical: h = xs, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Gt(o, (e) => e.getMetrics()), y = x((e, t) => {
4768
+ }, ks = "_scrollpane_zdrii_2", zs = "_scrollpane-content_zdrii_20", As = "_scrollpane-content-cell_zdrii_33", Ds = "_vertical-container_zdrii_42", Ps = "_horizontal-container_zdrii_50", Rs = "_corner-container_zdrii_59", $s = "_touch-thumb-overlay_zdrii_68", Bs = w(v((e, t) => {
4769
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Os, renderScrollbarHorizontal: u = Cs, renderScrollbarVertical: h = Cs, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Gt(o, (e) => e.getMetrics()), y = x((e, t) => {
4754
4770
  if (!o) return;
4755
4771
  const n = o.getTarget();
4756
4772
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
4757
- }, [o]), b = lo(t, () => ({ isScrollPane: () => !0 }), []);
4773
+ }, [o]), b = ao(t, () => ({ isScrollPane: () => !0 }), []);
4758
4774
  M(() => {}, []);
4759
4775
  const w = z(null), S = Yt((e) => {
4760
4776
  o?.requestZoom(e);
@@ -4799,12 +4815,12 @@ var os = 24, rs = w(v((e, t) => {
4799
4815
  }), f = Yt((t) => {
4800
4816
  const n = t.shiftKey, { deltaX: o, deltaY: r, deltaMode: i } = t, f = c.current && !n && (t.ctrlKey || t.metaKey);
4801
4817
  if (!f && e.current) {
4802
- const n = vs(t, e.current);
4818
+ const n = xs(t, e.current);
4803
4819
  if ("native" === n) return;
4804
4820
  if ("contained" === n) return void t.preventDefault();
4805
4821
  }
4806
4822
  if (t.preventDefault(), f) {
4807
- const e = 1 === i ? ys : 2 === i ? 800 : 1, n = d.current;
4823
+ const e = 1 === i ? Ss : 2 === i ? 800 : 1, n = d.current;
4808
4824
  if (n.deltaY += r * e, n.clientX = t.clientX, n.clientY = t.clientY, h.current) return;
4809
4825
  h.current = window.requestAnimationFrame(() => {
4810
4826
  h.current = null;
@@ -4884,10 +4900,10 @@ var os = 24, rs = w(v((e, t) => {
4884
4900
  top: t
4885
4901
  });
4886
4902
  }, []), B = z(!1), O = x((e) => {
4887
- 1 === e.touches.length && (B.current = ((e, t, n = Ss) => {
4903
+ 1 === e.touches.length && (B.current = ((e, t, n = Ls) => {
4888
4904
  let o = e instanceof Element ? e : null;
4889
4905
  for (; o && o !== t;) {
4890
- if (!Ms(n(o))) return !0;
4906
+ if (!Ts(n(o))) return !0;
4891
4907
  o = o.parentElement;
4892
4908
  }
4893
4909
  return !1;
@@ -4905,7 +4921,7 @@ var os = 24, rs = w(v((e, t) => {
4905
4921
  M(() => {
4906
4922
  const e = b.current, t = !p && Fe().supportsTouchEvents;
4907
4923
  if ((t || s) && e && v) {
4908
- w.current || (w.current = new ms(P, {
4924
+ w.current || (w.current = new ys(P, {
4909
4925
  scrollingX: !0,
4910
4926
  scrollingY: !0,
4911
4927
  decelerationRate: .95,
@@ -4934,11 +4950,11 @@ var os = 24, rs = w(v((e, t) => {
4934
4950
  p,
4935
4951
  s
4936
4952
  ]);
4937
- const W = Fe().supportsTouchEvents, [K, V] = A(null), [j, { width: Y, height: X }] = yo(), Z = x((e) => {
4953
+ const W = Fe().supportsTouchEvents, [K, V] = A(null), [j, { width: Y, height: X }] = bo(), Z = x((e) => {
4938
4954
  V(e), j(e);
4939
4955
  }, [j]), q = T(() => {
4940
4956
  if (!K) return null;
4941
- const e = Ui(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
4957
+ const e = es(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
4942
4958
  return {
4943
4959
  portalTarget: K,
4944
4960
  width: Y,
@@ -4947,7 +4963,7 @@ var os = 24, rs = w(v((e, t) => {
4947
4963
  viewportHeight: n,
4948
4964
  reserveVertical: g ? e : 0,
4949
4965
  reserveHorizontal: _ ? e : 0,
4950
- crossInset: qi()
4966
+ crossInset: Qi()
4951
4967
  };
4952
4968
  }, [
4953
4969
  K,
@@ -4959,10 +4975,10 @@ var os = 24, rs = w(v((e, t) => {
4959
4975
  _
4960
4976
  ]), U = T(() => {
4961
4977
  if (!_) return null;
4962
- const e = R(Po, {
4978
+ const e = R(Ro, {
4963
4979
  render: h,
4964
4980
  props: {
4965
- orientation: Ci.Vertical,
4981
+ orientation: zi.Vertical,
4966
4982
  offset: v?.top ?? 0,
4967
4983
  viewportSize: v?.height ?? 0,
4968
4984
  totalSize: v?.totalHeight ?? 0,
@@ -4972,7 +4988,7 @@ var os = 24, rs = w(v((e, t) => {
4972
4988
  }
4973
4989
  });
4974
4990
  return R("div", {
4975
- className: F("vertical-container", Ts),
4991
+ className: F("sxl-vertical-container", Ds),
4976
4992
  children: e
4977
4993
  });
4978
4994
  }, [
@@ -4982,10 +4998,10 @@ var os = 24, rs = w(v((e, t) => {
4982
4998
  v?.totalHeight
4983
4999
  ]), G = T(() => {
4984
5000
  if (!g) return null;
4985
- const e = R(Po, {
5001
+ const e = R(Ro, {
4986
5002
  render: u,
4987
5003
  props: {
4988
- orientation: Ci.Horizontal,
5004
+ orientation: zi.Horizontal,
4989
5005
  offset: v?.left ?? 0,
4990
5006
  viewportSize: v?.width ?? 0,
4991
5007
  totalSize: v?.totalWidth ?? 0,
@@ -4995,7 +5011,7 @@ var os = 24, rs = w(v((e, t) => {
4995
5011
  }
4996
5012
  });
4997
5013
  return R("div", {
4998
- className: F("horizontal-container", ks),
5014
+ className: F("sxl-horizontal-container", Ps),
4999
5015
  children: e
5000
5016
  });
5001
5017
  }, [
@@ -5004,8 +5020,8 @@ var os = 24, rs = w(v((e, t) => {
5004
5020
  v?.width,
5005
5021
  v?.totalWidth
5006
5022
  ]), J = T(() => _ && g ? R("div", {
5007
- className: F("corner-container", zs),
5008
- children: R(Po, {
5023
+ className: F("sxl-corner-container", Rs),
5024
+ children: R(Ro, {
5009
5025
  render: c,
5010
5026
  props: {}
5011
5027
  })
@@ -5015,17 +5031,17 @@ var os = 24, rs = w(v((e, t) => {
5015
5031
  c
5016
5032
  ]);
5017
5033
  return R("div", {
5018
- className: F(f, "scrollpane", Es),
5034
+ className: F(f, "sxl-scrollpane", ks),
5019
5035
  style: d,
5020
5036
  ...m,
5021
5037
  ref: b,
5022
- children: R(Ji, {
5038
+ children: R(ns, {
5023
5039
  value: q,
5024
5040
  children: $("div", {
5025
- className: F("scrollpane-content", Cs),
5041
+ className: F("sxl-scrollpane-content", zs),
5026
5042
  children: [
5027
5043
  R("div", {
5028
- className: F("scrollpane-content-cell", Ls),
5044
+ className: F("sxl-scrollpane-content-cell", As),
5029
5045
  children: n
5030
5046
  }),
5031
5047
  _ ? U : null,
@@ -5033,18 +5049,18 @@ var os = 24, rs = w(v((e, t) => {
5033
5049
  J,
5034
5050
  W ? R("div", {
5035
5051
  ref: Z,
5036
- className: F("touch-thumb-overlay", As)
5052
+ className: F("sxl-touch-thumb-overlay", $s)
5037
5053
  }) : null
5038
5054
  ]
5039
5055
  })
5040
5056
  })
5041
5057
  });
5042
5058
  }));
5043
- Ds.displayName = "ScrollPane";
5044
- var Ps = (e) => {
5059
+ Bs.displayName = "ScrollPane";
5060
+ var Os = (e) => {
5045
5061
  const { size: t, style: n, ...o } = e;
5046
5062
  return R("div", {
5047
- className: "corner",
5063
+ className: "sxl-corner",
5048
5064
  style: {
5049
5065
  width: "100%",
5050
5066
  height: "100%",
@@ -5052,7 +5068,7 @@ var Ps = (e) => {
5052
5068
  },
5053
5069
  ...o
5054
5070
  });
5055
- }, Rs = class {
5071
+ }, Hs = class {
5056
5072
  constructor(e) {
5057
5073
  this._bounds = {
5058
5074
  minLeft: 0,
@@ -5171,7 +5187,7 @@ var Ps = (e) => {
5171
5187
  }
5172
5188
  _applyBounds(e) {
5173
5189
  this._bounds = e;
5174
- const t = Ws(this._target.left, e.minLeft, e.maxLeft), n = Ws(this._target.top, e.minTop, e.maxTop);
5190
+ const t = Ys(this._target.left, e.minLeft, e.maxLeft), n = Ys(this._target.top, e.minTop, e.maxTop);
5175
5191
  t === this._target.left && n === this._target.top || (this._target = {
5176
5192
  left: t,
5177
5193
  top: n
@@ -5193,12 +5209,12 @@ var Ps = (e) => {
5193
5209
  return this._observe(e, "both");
5194
5210
  }
5195
5211
  _observe(e, t) {
5196
- if (!e) return Fs;
5212
+ if (!e) return js;
5197
5213
  const n = (e, n) => {
5198
5214
  const o = this._measuredClient;
5199
5215
  this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
5200
5216
  };
5201
- if (!Ns()) return n(0, 0), Fs;
5217
+ if (!Vs()) return n(0, 0), js;
5202
5218
  const o = new ResizeObserver((e) => {
5203
5219
  const t = e[0]?.contentRect;
5204
5220
  t && n(t.width, t.height);
@@ -5245,17 +5261,17 @@ var Ps = (e) => {
5245
5261
  }
5246
5262
  setTarget(e, t, n) {
5247
5263
  const o = this._bounds;
5248
- return e = Ws(e, o.minLeft, o.maxLeft), t = Ws(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5264
+ return e = Ys(e, o.minLeft, o.maxLeft), t = Ys(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5249
5265
  left: e,
5250
5266
  top: t
5251
5267
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
5252
5268
  }
5253
5269
  _startAnimation() {
5254
- const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Os : 1 / 0, r = n.height > 0 ? n.height * Os : 1 / 0, i = Ws(e.left, t.left - o, t.left + o), s = Ws(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Bs);
5255
- this._anim = a <= Hs ? null : {
5270
+ const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Fs : 1 / 0, r = n.height > 0 ? n.height * Fs : 1 / 0, i = Ys(e.left, t.left - o, t.left + o), s = Ys(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Ns);
5271
+ this._anim = a <= Ws ? null : {
5256
5272
  fromLeft: i,
5257
5273
  fromTop: s,
5258
- start: Is(),
5274
+ start: Ks(),
5259
5275
  duration: a
5260
5276
  };
5261
5277
  }
@@ -5294,7 +5310,7 @@ var Ps = (e) => {
5294
5310
  const e = this._current, t = this._target, n = this._anim;
5295
5311
  let o, r, i = !1;
5296
5312
  if (n) {
5297
- const e = (Is() - n.start) / n.duration;
5313
+ const e = (Ks() - n.start) / n.duration;
5298
5314
  if (e >= 1) o = t.left, r = t.top, this._anim = null;
5299
5315
  else {
5300
5316
  const s = 1 - Math.pow(1 - e, 3);
@@ -5306,7 +5322,7 @@ var Ps = (e) => {
5306
5322
  top: r
5307
5323
  }, this._viewport = null, this._emit()), i;
5308
5324
  }
5309
- }, $s = 200, Bs = 2.5, Os = 1.5, Hs = 17, Is = () => "undefined" != typeof performance ? performance.now() : Date.now(), Ns = () => "undefined" != typeof ResizeObserver, Fs = () => {}, Ws = (e, t, n) => Math.min(n, Math.max(t, e)), Ks = class {
5325
+ }, Is = 200, Ns = 2.5, Fs = 1.5, Ws = 17, Ks = () => "undefined" != typeof performance ? performance.now() : Date.now(), Vs = () => "undefined" != typeof ResizeObserver, js = () => {}, Ys = (e, t, n) => Math.min(n, Math.max(t, e)), Xs = class {
5310
5326
  constructor(e, t, n, o, r) {
5311
5327
  this._h = e, this._v = t, this._followH = n, this._followV = o, this._zoomCtrl = r, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
5312
5328
  }
@@ -5419,8 +5435,8 @@ var Ps = (e) => {
5419
5435
  setContent(e, t, n = 0, o = 0) {
5420
5436
  this._same ? this._h.setContent(e, t, n, o) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, o));
5421
5437
  }
5422
- }, Vs = 300, js = 100, Ys = 1e6, Xs = 100, Zs = 50, qs = w(v((e, t) => {
5423
- const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Vs, endScrollIncrement: l = js, style: a = Oe, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Ys, scaleFactor: p = Xs, precisionFactor: m = Zs, renderScrollbar: g = xs, ..._ } = e;
5438
+ }, Zs = 300, qs = 100, Us = 1e6, Gs = 100, Js = 50, Qs = w(v((e, t) => {
5439
+ const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Zs, endScrollIncrement: l = qs, style: a = Oe, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Us, scaleFactor: p = Gs, precisionFactor: m = Js, renderScrollbar: g = Cs, ..._ } = e;
5424
5440
  d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
5425
5441
  const v = Yt(c ?? (() => {}), [c]), [y, b] = A(!1), w = z(0), S = T(() => {
5426
5442
  let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
@@ -5461,7 +5477,7 @@ var Ps = (e) => {
5461
5477
  }, []), D = x((e) => {
5462
5478
  b(!0), v?.(e), document.addEventListener("mousemove", L, { passive: !0 }), document.addEventListener("mouseup", k, { passive: !0 });
5463
5479
  }, [L, k]);
5464
- return R(Po, {
5480
+ return R(Ro, {
5465
5481
  render: g,
5466
5482
  props: {
5467
5483
  style: a,
@@ -5477,8 +5493,8 @@ var Ps = (e) => {
5477
5493
  }
5478
5494
  });
5479
5495
  }));
5480
- qs.displayName = "VirtualScrollbar";
5481
- var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5496
+ Qs.displayName = "VirtualScrollbar";
5497
+ var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5482
5498
  "--scrollbar-track-color": e.track,
5483
5499
  "--scrollbar-thumb-color": e.thumb,
5484
5500
  "--scrollbar-button-color": e.button || e.thumb,
@@ -5490,13 +5506,13 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5490
5506
  "--scrollbar-border-radius": "9999px",
5491
5507
  "--scrollbar-border-width": "2px",
5492
5508
  "--scrollbar-min-thumb-size": "24px"
5493
- }), Js = (e) => {
5509
+ }), nl = (e) => {
5494
5510
  if ("undefined" == typeof window) return !1;
5495
- const t = ao();
5511
+ const t = co();
5496
5512
  if (t?.overlaysContent) return t.boundingRect.height > 150;
5497
5513
  const n = window.visualViewport;
5498
5514
  return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
5499
- }, Qs = (e) => {
5515
+ }, ol = (e) => {
5500
5516
  const t = Object.freeze({ ...e }), n = !(t.disabled ?? "mouseOnly" === Fe().deviceType);
5501
5517
  let o = {
5502
5518
  active: !1,
@@ -5529,8 +5545,8 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5529
5545
  i.delete(e);
5530
5546
  })
5531
5547
  };
5532
- }, el = null, tl = g(null), nl = (e) => {
5533
- const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ?? Qs({
5548
+ }, rl = null, il = g(null), sl = (e) => {
5549
+ const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ?? ol({
5534
5550
  disabled: n,
5535
5551
  disableScrollIntoView: o,
5536
5552
  keepOnTap: r
@@ -5540,15 +5556,15 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5540
5556
  o,
5541
5557
  r
5542
5558
  ]);
5543
- return _(tl.Provider, { value: s }, i);
5544
- }, ol = () => S(tl) ?? (el || (el = Qs()), el), rl = () => {
5545
- const e = ol();
5559
+ return _(il.Provider, { value: s }, i);
5560
+ }, ll = () => S(il) ?? (rl || (rl = ol()), rl), al = () => {
5561
+ const e = ll();
5546
5562
  return D(e.subscribe, e.getState, e.getState), e;
5547
- }, il = null, sl = null, ll = /* @__PURE__ */ new Set(), al = (e, t) => {
5548
- null === t && sl !== e || il === t && sl === e || (il = t, sl = null === t ? null : e, ll.forEach((e) => e()));
5549
- }, cl = () => il, ul = (e) => (ll.add(e), () => {
5550
- ll.delete(e);
5551
- }), hl = v((e, t) => {
5563
+ }, cl = null, ul = null, hl = /* @__PURE__ */ new Set(), dl = (e, t) => {
5564
+ null === t && ul !== e || cl === t && ul === e || (cl = t, ul = null === t ? null : e, hl.forEach((e) => e()));
5565
+ }, fl = () => cl, pl = (e) => (hl.add(e), () => {
5566
+ hl.delete(e);
5567
+ }), ml = v((e, t) => {
5552
5568
  const { floating: n, anchor: o = null, onShownChange: r, onKeyboardClose: i, className: s, style: l, children: a } = e, [c, u] = A(null), h = x((e) => {
5553
5569
  u(e), "function" == typeof t ? t(e) : t && (t.current = e);
5554
5570
  }, [t]), d = z(n);
@@ -5562,16 +5578,16 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5562
5578
  onKeyboardClose: i
5563
5579
  };
5564
5580
  const p = z(null);
5565
- _o(() => {
5581
+ vo(() => {
5566
5582
  if (!c || "undefined" == typeof window) return;
5567
5583
  const e = {};
5568
5584
  let t = 0, n = 0, o = !1, r = !1, i = window.innerHeight, s = !1;
5569
- const l = ao();
5585
+ const l = co();
5570
5586
  let a = !1;
5571
5587
  const u = (e) => {
5572
5588
  l && e !== a && (a = e, l.overlaysContent = e);
5573
5589
  }, h = (t) => {
5574
- t !== r && (r = t, c.style.opacity = t ? "1" : "0", c.style.pointerEvents = t ? "auto" : "none", t || al(e, null), f.current.onShownChange?.(t));
5590
+ t !== r && (r = t, c.style.opacity = t ? "1" : "0", c.style.pointerEvents = t ? "auto" : "none", t || dl(e, null), f.current.onShownChange?.(t));
5575
5591
  }, m = () => {
5576
5592
  t = 0;
5577
5593
  const n = window.visualViewport, r = n?.scale ?? 1, i = n?.offsetTop ?? 0, s = n?.height ?? window.innerHeight, u = d.current && !o;
@@ -5580,11 +5596,11 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5580
5596
  const e = l.boundingRect.height;
5581
5597
  c.style.bottom = "auto", c.style.top = i + s - (e + c.offsetHeight) / r + "px", c.style.left = `${n.offsetLeft}px`, c.style.width = n.width * r + "px", c.style.transform = `scale(${1 / r})`;
5582
5598
  } else c.style.top = "auto", c.style.bottom = "env(keyboard-inset-height, 0px)", c.style.left = "0px", c.style.width = "100%", c.style.transform = "";
5583
- c.style.transition = "opacity 150ms ease-out", h(!0), al(e, c.getBoundingClientRect().top);
5599
+ c.style.transition = "opacity 150ms ease-out", h(!0), dl(e, c.getBoundingClientRect().top);
5584
5600
  return;
5585
5601
  }
5586
5602
  const f = u ? i + s - c.offsetHeight / r : i;
5587
- c.style.bottom = "auto", c.style.top = `${f}px`, c.style.left = `${n?.offsetLeft ?? 0}px`, c.style.width = (n?.width ?? window.innerWidth) * r + "px", c.style.transform = 1 !== r ? `scale(${1 / r})` : "", u ? (c.style.transition = "opacity 150ms ease-out", h(!0), al(e, f)) : (c.style.transition = "none", h(!1));
5603
+ c.style.bottom = "auto", c.style.top = `${f}px`, c.style.left = `${n?.offsetLeft ?? 0}px`, c.style.width = (n?.width ?? window.innerWidth) * r + "px", c.style.transform = 1 !== r ? `scale(${1 / r})` : "", u ? (c.style.transition = "opacity 150ms ease-out", h(!0), dl(e, f)) : (c.style.transition = "none", h(!1));
5588
5604
  }, g = () => {
5589
5605
  t || (t = requestAnimationFrame(m));
5590
5606
  }, _ = () => {
@@ -5594,10 +5610,10 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5594
5610
  }, v = () => {
5595
5611
  _(), g();
5596
5612
  }, y = () => {
5597
- v(), d.current && (Js(i) ? s = !0 : s && (s = !1, f.current.onKeyboardClose?.()));
5613
+ v(), d.current && (nl(i) ? s = !0 : s && (s = !1, f.current.onKeyboardClose?.()));
5598
5614
  }, b = () => {
5599
5615
  s = !1, window.setTimeout(() => {
5600
- Js() || (i = window.innerHeight);
5616
+ nl() || (i = window.innerHeight);
5601
5617
  }, 300);
5602
5618
  };
5603
5619
  p.current = () => {
@@ -5611,17 +5627,17 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5611
5627
  c.addEventListener("focusin", x), c.addEventListener("focusout", S), l?.addEventListener("geometrychange", y);
5612
5628
  const M = window.visualViewport;
5613
5629
  return M?.addEventListener("resize", y), M?.addEventListener("scroll", v), window.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), window.addEventListener("orientationchange", b), d.current && p.current(), m(), () => {
5614
- cancelAnimationFrame(t), clearTimeout(n), w?.disconnect(), M?.removeEventListener("resize", y), M?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), c.removeEventListener("focusin", x), c.removeEventListener("focusout", S), l?.removeEventListener("geometrychange", y), u(!1), p.current = null, al(e, null), r && f.current.onShownChange?.(!1);
5630
+ cancelAnimationFrame(t), clearTimeout(n), w?.disconnect(), M?.removeEventListener("resize", y), M?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), c.removeEventListener("focusin", x), c.removeEventListener("focusout", S), l?.removeEventListener("geometrychange", y), u(!1), p.current = null, dl(e, null), r && f.current.onShownChange?.(!1);
5615
5631
  };
5616
5632
  }, [c]), M(() => {
5617
5633
  p.current?.();
5618
5634
  }, [n]);
5619
- const m = Tr(), g = Lr(o), { className: _, attrs: v } = Cr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = ln(), [, w] = A(0);
5635
+ const m = Dr(), g = Ar(o), { className: _, attrs: v } = zr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = an(), [, w] = A(0);
5620
5636
  return M(() => {
5621
5637
  c && !c.isConnected && w((e) => e + 1);
5622
5638
  }), "undefined" == typeof document ? null : H(R("div", {
5623
5639
  ref: h,
5624
- className: F("keyboard-accessory", _, s),
5640
+ className: F("sxl-keyboard-accessory", _, s),
5625
5641
  ...y,
5626
5642
  style: {
5627
5643
  position: "fixed",
@@ -5629,7 +5645,7 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5629
5645
  left: 0,
5630
5646
  boxSizing: "border-box",
5631
5647
  transformOrigin: "top left",
5632
- zIndex: Xo("grid"),
5648
+ zIndex: Zo("grid"),
5633
5649
  opacity: 0,
5634
5650
  pointerEvents: "none",
5635
5651
  ...l
@@ -5637,12 +5653,12 @@ var Us = "_scrollbar-themed_nj3vu_7", Gs = (e) => ({
5637
5653
  children: a
5638
5654
  }), b());
5639
5655
  });
5640
- hl.displayName = "KeyboardAccessory";
5641
- var dl = {
5656
+ ml.displayName = "KeyboardAccessory";
5657
+ var gl = {
5642
5658
  inset: 0,
5643
5659
  offsetTop: 0
5644
- }, fl = (e) => {
5645
- const t = go(e), n = !!t && Js(), o = t?.height, r = z(!1);
5660
+ }, _l = (e) => {
5661
+ const t = _o(e), n = !!t && nl(), o = t?.height, r = z(!1);
5646
5662
  return M(() => {
5647
5663
  if (void 0 === o) return;
5648
5664
  const e = r.current;
@@ -5650,9 +5666,9 @@ var dl = {
5650
5666
  }, [o, n]), t && n ? {
5651
5667
  inset: Math.max(0, Math.round(window.innerHeight - t.height)),
5652
5668
  offsetTop: Math.round(t.offsetTop)
5653
- } : dl;
5669
+ } : gl;
5654
5670
  };
5655
- var pl = {
5671
+ var vl = {
5656
5672
  axis: q.oneOf([
5657
5673
  "both",
5658
5674
  "x",
@@ -5704,12 +5720,12 @@ var pl = {
5704
5720
  const [t] = e;
5705
5721
  return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5706
5722
  }
5707
- }, ml = class extends d.Component {
5723
+ }, yl = class extends d.Component {
5708
5724
  constructor(...e) {
5709
5725
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
5710
5726
  }
5711
5727
  static {
5712
- this.propTypes = pl;
5728
+ this.propTypes = vl;
5713
5729
  }
5714
5730
  static {
5715
5731
  this.defaultProps = {
@@ -5803,7 +5819,7 @@ var pl = {
5803
5819
  }), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), f.cloneElement(b, w);
5804
5820
  var b, w;
5805
5821
  }
5806
- }, gl = class extends d.Component {
5822
+ }, bl = class extends d.Component {
5807
5823
  constructor(...e) {
5808
5824
  super(...e), this.state = {
5809
5825
  width: this.props.width,
@@ -5817,7 +5833,7 @@ var pl = {
5817
5833
  }
5818
5834
  static {
5819
5835
  this.propTypes = {
5820
- ...pl,
5836
+ ...vl,
5821
5837
  children: q.element
5822
5838
  };
5823
5839
  }
@@ -5831,7 +5847,7 @@ var pl = {
5831
5847
  }
5832
5848
  render() {
5833
5849
  const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: u, height: h, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
5834
- return R(ml, {
5850
+ return R(yl, {
5835
5851
  axis: c,
5836
5852
  draggableOpts: i,
5837
5853
  handle: e,
@@ -5857,4 +5873,4 @@ var pl = {
5857
5873
  });
5858
5874
  }
5859
5875
  };
5860
- export { ne as ACCUMULATE, Bt as AnimationModeProvider, Ks as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Le as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, ke as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, De as ConstantActivation, ae as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, ie as DefaultCommandRegistry, ni as DefaultIconService, ii as DynamicIcon, Hi as EDGE_HOLD_INTERVAL_MS, Ir as FloatPanel, Hr as FloatPanelSurface, Rr as FloatPopper, Fr as FloatProvider, Ct as FloatStackProvider, Pe as FocusActivation, Do as FocusKeyNavigation, nr as INPUT_SELECTION_TINT, tr as INPUT_SELECTION_VAR, li as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, hl as KeyboardAccessory, Vn as LanguageStateKey, Re as LayerActivation, bi as LocalStorageStore, Ae as ManualActivation, ee as MouseButtonCodes, Ot as NotifierType, Ii as PAGE_INITIAL_DELAY_MS, Ni as PAGE_REPEAT_DELAY_MS, gi as PendingRender, Mi as PendingRenderScope, mi as PersistentStateProvider, pe as QUICK_ACTION_TAG, No as ReactErrorBoundary, Vt as ReactNotifierProvider, $e as ReactUtils, Po as RenderSlot, ml as Resizable, gl as ResizableBox, $o as RoundedTab, $s as SCROLL_ANIMATION_MS, qo as SERIES_COUNT, rr as SXL_THEME_LAYERS, ir as SXL_THEME_LAYER_ORDER, Ds as ScrollPane, bs as ScrollUtils, rs as Scrollbar, Ci as ScrollbarOrientation, qr as SplitPane, Vr as SplitPaneResizer, ar as THEME_MODE_ATTR, cr as THEME_SURFACE_ATTR, Vi as TOUCH_THUMB_ASPECT, ji as TOUCH_THUMB_MARGIN, Xi as TOUCH_THUMB_MARGIN_CROSS, Zi as TOUCH_THUMB_MARGIN_END, Yi as TOUCH_THUMB_MARGIN_START, Ki as TOUCH_THUMB_SIZE, dr as ThemeModeFallbackContext, _r as TokenThemeContext, yr as TokenThemeProvider, Ji as TouchThumbFrameProvider, ns as TouchThumbHandle, jo as UncaughtErrorBoundary, Rs as Viewport, nl as VirtualKeyboardProvider, qs as VirtualScrollbar, si as WalkingIcon, Yo as Z_INDEX, we as asCommandCatalog, ht as attachWhenReady, lr as buildThemeCSS, Se as chromeToPartial, Zn as composeCaretRect, Ht as createBusyHandle, Ee as createCommandCatalogService, ti as createDynamicIconService, It as createNoopBusyHandle, ge as createResolvedCommand, hr as createThemeScopeClass, Fi as createTrackDrag, Qs as createVirtualKeyboardStore, Nr as defaultRenderFloatPanel, Br as defaultRenderFloatPopupPanel, Oi as defaultRenderScrollButtonEdge, Bi as defaultRenderScrollButtonEnd, $i as defaultRenderScrollButtonStart, Ps as defaultRenderScrollCorner, Uo as defaultTheme, Fn as exitEditMode, xe as fetchCatalog, Cr as floatThemeScopeProps, Qt as getDevicePixelRatio, yn as getInputModality, cl as getKeyboardAccessoryTop, Gs as getScrollbarCssVariables, Un as getTextareaCaretRect, ho as getVisualViewportRect, Je as isCaretKey, Js as isVirtualKeyboardUp, tt as keyEventCanonicals, et as keyStrokeToCanonical, Ho as lazyComponent, fn as measureUIText, Me as mergeChrome, Zo as offsetZIndex, ye as parseShortcutString, oe as reduceDefinitions, ze as resolveAnchorSource, br as resolveToken, wr as resolveTokens, Us as scrollbarThemedClassName, be as serializeShortcut, In as setEditMode, Wn as subscribeEditModeExit, wn as subscribeInputModality, ul as subscribeKeyboardAccessoryTop, fo as subscribeVisualViewport, ur as themeSurfaceProps, Qo as themeVars, Jo as toVars, Ui as touchThumbCornerReserve, qi as touchThumbCrossInset, Ao as useAnimatedMeasure, $t as useAnimationMode, qt as useBoundSyncExternalStore, Yt as useCallbackRef, de as useCommandButtonEntry, ue as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Mt as useCommandFocusRestore, at as useCommandOrder, Te as useCommandRegistry, mt as useCommandResolver, ut as useCommandScope, zt as useCommands, At as useContributeCommands, Jt as useDevicePixelRatio, Kn as useEditMode, Lt as useFloat, kt as useFloatPopupOpen, Wr as useFloatStack, Er as useFloatSurface, tn as useFullscreen, ln as useFullscreenPortal, Jn as useGlobalClipboard, io as useId, lo as useImperativeElement, Sn as useInputModality, _o as useIsomorphicLayoutEffect, fl as useKeyboardResize, jn as useLanguage, Oo as useLazyRetry, Co as useLocationSearch, yo as useMeasure, mn as useMouseDownAndHoldListener, jt as useNotifier, en as useOnClickOrFocusAway, Gt as useOptionalBoundSyncExternalStore, Zt as useOptionalSyncExternalStore, Ei as usePendingRender, fi as usePersistentState, fr as useResolvedThemeMode, pn as useSynchronizedPointerHandler, dn as useTextSelectionDrag, Gn as useTextareaCaretRect, vr as useTokenThemeContext, Qi as useTouchThumbFrame, Qn as useTraceUpdate, Wi as useTrackDrag, Yn as useTranslator, rl as useVirtualKeyboard, ol as useVirtualKeyboardStore, go as useVisualViewportRect, xi as whenRenderSettled, Xo as zIndexVar };
5876
+ export { ne as ACCUMULATE, Bt as AnimationModeProvider, Xs as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Le as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, ke as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, De as ConstantActivation, ae as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, ie as DefaultCommandRegistry, si as DefaultIconService, ci as DynamicIcon, Wi as EDGE_HOLD_INTERVAL_MS, Kr as FloatPanel, Wr as FloatPanelSurface, Hr as FloatPopper, jr as FloatProvider, Ct as FloatStackProvider, Pe as FocusActivation, Po as FocusKeyNavigation, or as INPUT_SELECTION_TINT, nr as INPUT_SELECTION_VAR, hi as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, ml as KeyboardAccessory, jn as LanguageStateKey, Re as LayerActivation, Mi as LocalStorageStore, Ae as ManualActivation, ee as MouseButtonCodes, Ot as NotifierType, Ki as PAGE_INITIAL_DELAY_MS, Vi as PAGE_REPEAT_DELAY_MS, bi as PendingRender, Ti as PendingRenderScope, yi as PersistentStateProvider, pe as QUICK_ACTION_TAG, Fo as ReactErrorBoundary, Vt as ReactNotifierProvider, $e as ReactUtils, Ro as RenderSlot, yl as Resizable, bl as ResizableBox, Bo as RoundedTab, Is as SCROLL_ANIMATION_MS, Uo as SERIES_COUNT, ir as SXL_THEME_LAYERS, sr as SXL_THEME_LAYER_ORDER, Bs as ScrollPane, Ms as ScrollUtils, as as Scrollbar, zi as ScrollbarOrientation, Qr as SplitPane, Zr as SplitPaneResizer, cr as THEME_MODE_ATTR, ur as THEME_SURFACE_ATTR, Zi as TOUCH_THUMB_ASPECT, qi as TOUCH_THUMB_MARGIN, Gi as TOUCH_THUMB_MARGIN_CROSS, Ji as TOUCH_THUMB_MARGIN_END, Ui as TOUCH_THUMB_MARGIN_START, Xi as TOUCH_THUMB_SIZE, gr as ThemeModeFallbackContext, mr as ThemeStyle, wr as TokenThemeContext, Sr as TokenThemeProvider, ns as TouchThumbFrameProvider, ss as TouchThumbHandle, Yo as UncaughtErrorBoundary, Hs as Viewport, sl as VirtualKeyboardProvider, Qs as VirtualScrollbar, ui as WalkingIcon, Xo as Z_INDEX, we as asCommandCatalog, ht as attachWhenReady, ar as buildThemeCSS, Se as chromeToPartial, qn as composeCaretRect, Ht as createBusyHandle, Ee as createCommandCatalogService, ii as createDynamicIconService, It as createNoopBusyHandle, ge as createResolvedCommand, dr as createThemeScopeClass, ji as createTrackDrag, ol as createVirtualKeyboardStore, Vr as defaultRenderFloatPanel, Nr as defaultRenderFloatPopupPanel, Fi as defaultRenderScrollButtonEdge, Ni as defaultRenderScrollButtonEnd, Ii as defaultRenderScrollButtonStart, Os as defaultRenderScrollCorner, Go as defaultTheme, pr as ensureThemeLayerOrder, Wn as exitEditMode, xe as fetchCatalog, zr as floatThemeScopeProps, Qt as getDevicePixelRatio, bn as getInputModality, fl as getKeyboardAccessoryTop, tl as getScrollbarCssVariables, Gn as getTextareaCaretRect, fo as getVisualViewportRect, Je as isCaretKey, nl as isVirtualKeyboardUp, tt as keyEventCanonicals, et as keyStrokeToCanonical, Io as lazyComponent, pn as measureUIText, Me as mergeChrome, qo as offsetZIndex, ye as parseShortcutString, oe as reduceDefinitions, ze as resolveAnchorSource, Mr as resolveToken, Er as resolveTokens, el as scrollbarThemedClassName, be as serializeShortcut, Nn as setEditMode, Kn as subscribeEditModeExit, xn as subscribeInputModality, pl as subscribeKeyboardAccessoryTop, po as subscribeVisualViewport, hr as themeSurfaceProps, er as themeVars, Qo as toVars, es as touchThumbCornerReserve, Qi as touchThumbCrossInset, Do as useAnimatedMeasure, $t as useAnimationMode, qt as useBoundSyncExternalStore, Yt as useCallbackRef, de as useCommandButtonEntry, ue as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Mt as useCommandFocusRestore, at as useCommandOrder, Te as useCommandRegistry, mt as useCommandResolver, ut as useCommandScope, zt as useCommands, At as useContributeCommands, Jt as useDevicePixelRatio, Vn as useEditMode, Lt as useFloat, kt as useFloatPopupOpen, Yr as useFloatStack, kr as useFloatSurface, tn as useFullscreen, an as useFullscreenPortal, Qn as useGlobalClipboard, so as useId, ao as useImperativeElement, Mn as useInputModality, vo as useIsomorphicLayoutEffect, _l as useKeyboardResize, Yn as useLanguage, Ho as useLazyRetry, Lo as useLocationSearch, bo as useMeasure, gn as useMouseDownAndHoldListener, jt as useNotifier, en as useOnClickOrFocusAway, Gt as useOptionalBoundSyncExternalStore, Zt as useOptionalSyncExternalStore, ki as usePendingRender, _i as usePersistentState, _r as useResolvedThemeMode, mn as useSynchronizedPointerHandler, fn as useTextSelectionDrag, Jn as useTextareaCaretRect, xr as useTokenThemeContext, os as useTouchThumbFrame, eo as useTraceUpdate, Yi as useTrackDrag, Xn as useTranslator, al as useVirtualKeyboard, ll as useVirtualKeyboardStore, _o as useVisualViewportRect, Ci as whenRenderSettled, Zo as zIndexVar };