@sheetxl/utils-react 0.8.0-beta.16 → 0.8.0-beta.18

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,32 +1,32 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._dragging_at5p4_10,._dragging_at5p4_10 *{user-select:text!important}._float-popper_1z06c_1{max-width:100%;max-height:100%;font-family:var(--sxl-font-family,inherit);font-size:var(--sxl-font-size,inherit);font-weight:var(--sxl-font-weight,inherit);font-style:var(--sxl-font-style,inherit);color:var(--sxl-color-base-content,inherit);display:flex}._float-popper-grow_1z06c_14{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_1z06c_14._entered_1z06c_22{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_qj0za_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);box-shadow:0 5px 5px -3px var(--sxl-color-shadow,#0003), 0 8px 10px 1px var(--sxl-color-shadow,#00000024), 0 3px 14px 2px var(--sxl-color-shadow,#0000001f);border-radius:4px;outline:none;display:flex;overflow:auto}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .has-touch-thumb,& .has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_2chse_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_2chse_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_2chse_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_2chse_47:hover{background:var(--scrollbar-active-color)}&.vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_2chse_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_2chse_35{width:100%}}&.horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_2chse_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_2chse_35{height:100%}}&.dragging{& ._thumb_2chse_47{background:var(--scrollbar-active-color)}}&.has-touch-thumb{visibility:hidden}& ._scrollbar-button_2chse_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.vertical{width:var(--scrollbar-width)}&.horizontal{height:var(--scrollbar-height)}}}._touch-thumb_2chse_131{cursor:grab;pointer-events:all;touch-action:none;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.16
3
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.18
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: MIT
7
7
  */
8
- import { i as e, n as t, r as n, t as r } from "./BmdiPnzlhea3lj4S.mjs";
8
+ import { i as e, n as t, r as n, t as r } from "./DMqgkx4jpoNE2WwM.mjs";
9
9
  import { CommonUtils as i, DefaultLanguagePackService as a, ExpectedError as o, InternalClipboard as s, Notifier as c, TimerUtils as l, fetchLocaleResourceAll as u, formatMessage as d, loadPackageLocales as f, mergeMessageFiles as p, onResourceRootsChange as m, resolveLocaleChain as h } from "@sheetxl/utils";
10
10
  import * as g from "react";
11
11
  import _, { Component as v, cloneElement as y, createContext as b, createElement as x, forwardRef as S, isValidElement as C, lazy as w, memo as T, useCallback as E, useContext as D, useEffect as O, useId as k, useImperativeHandle as A, useLayoutEffect as j, useMemo as M, useReducer as N, useRef as P, useState as F, useSyncExternalStore as I, version as ee } from "react";
12
- import { Fragment as te, jsx as L, jsxs as ne } from "react/jsx-runtime";
13
- import { createRoot as R } from "react-dom/client";
14
- import * as re from "react-dom";
15
- import z, { createPortal as B, unstable_batchedUpdates as V } from "react-dom";
16
- var H = Object.create, U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames, ae = Object.getPrototypeOf, G = Object.prototype.hasOwnProperty, oe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), se = (e, t) => {
12
+ import { Fragment as te, jsx as L, jsxs as R } from "react/jsx-runtime";
13
+ import { createRoot as z } from "react-dom/client";
14
+ import * as ne from "react-dom";
15
+ import B, { createPortal as V, unstable_batchedUpdates as H } from "react-dom";
16
+ var U = Object.create, W = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames, ae = Object.getPrototypeOf, G = Object.prototype.hasOwnProperty, oe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), se = (e, t) => {
17
17
  let n = {};
18
- for (var r in e) U(n, r, {
18
+ for (var r in e) W(n, r, {
19
19
  get: e[r],
20
20
  enumerable: !0
21
21
  });
22
- return t || U(n, Symbol.toStringTag, { value: "Module" }), n;
23
- }, ce = (e, t, n) => (n = e == null ? {} : H(ae(e)), ((e, t, n, r) => {
24
- if (t && typeof t == "object" || typeof t == "function") for (var i, a = ie(t), o = 0, s = a.length; o < s; o++) i = a[o], G.call(e, i) || i === n || U(e, i, {
22
+ return t || W(n, Symbol.toStringTag, { value: "Module" }), n;
23
+ }, ce = (e, t, n) => (n = e == null ? {} : U(ae(e)), ((e, t, n, r) => {
24
+ if (t && typeof t == "object" || typeof t == "function") for (var i, a = ie(t), o = 0, s = a.length; o < s; o++) i = a[o], G.call(e, i) || i === n || W(e, i, {
25
25
  get: ((e) => t[e]).bind(null, i),
26
- enumerable: !(r = W(t, i)) || r.enumerable
26
+ enumerable: !(r = re(t, i)) || r.enumerable
27
27
  });
28
28
  return e;
29
- })(!t && e && e.__esModule && G.call(e, "default") ? n : U(n, "default", {
29
+ })(!t && e && e.__esModule && G.call(e, "default") ? n : W(n, "default", {
30
30
  value: e,
31
31
  enumerable: !0
32
32
  }), e)), le = {
@@ -1266,7 +1266,7 @@ function Lt({ spec: e, scope: t, use: n, order: r, elementRef: i, region: a, sco
1266
1266
  let y = M(() => p ? p.getRegistry()?.getDynamic(p.name) ?? [] : [], [p]);
1267
1267
  return L(Pt.Provider, {
1268
1268
  value: m,
1269
- children: ne(At.Provider, {
1269
+ children: R(At.Provider, {
1270
1270
  value: p ? null : l,
1271
1271
  children: [p && y.map((e, t) => L(e, {
1272
1272
  scope: p,
@@ -1817,7 +1817,7 @@ var Bn = null, Vn = /* @__PURE__ */ new Set(), Hn = !1, Un = () => (ft().primary
1817
1817
  }), tr.length === 0 && !1 === $n && (Qn = !0, ((e) => {
1818
1818
  if (Xn.document && Xn.document.createElement) {
1819
1819
  let t = Xn.document.createElement("div");
1820
- R(t).render(L(e, { automaticContainerInternalUseOnly: !0 }));
1820
+ z(t).render(L(e, { automaticContainerInternalUseOnly: !0 }));
1821
1821
  } else Yn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1822
1822
  })(rr)), nr(), () => {
1823
1823
  er.splice(er.findIndex((e) => e.key === t), 1), nr();
@@ -1825,7 +1825,7 @@ var Bn = null, Vn = /* @__PURE__ */ new Set(), Hn = !1, Un = () => (ft().primary
1825
1825
  }, ar = null;
1826
1826
  ar ||= (e, t, n = {}) => {
1827
1827
  let r, i, a = !1, o = !1, s = [], { unmountIfNoConsumers: c = !1 } = n, l = (e) => {
1828
- i = e, V(() => s.forEach((t) => t(e)));
1828
+ i = e, H(() => s.forEach((t) => t(e)));
1829
1829
  }, u = () => (o ||= (i = typeof e == "function" ? e() : e, !0), i);
1830
1830
  return () => {
1831
1831
  let [n, o] = F(u);
@@ -1976,20 +1976,20 @@ function Ar(e, t, n = kr, r) {
1976
1976
  return e;
1977
1977
  }, r === void 0 ? n : [...n, r]), i;
1978
1978
  }
1979
- var jr = null, Mr = () => typeof window < "u" ? window.visualViewport ?? null : null, Nr = () => {
1980
- let e = Mr();
1981
- return e ? jr && jr.width === e.width && jr.height === e.height && jr.offsetTop === e.offsetTop && jr.offsetLeft === e.offsetLeft ? jr : jr = {
1979
+ var jr = () => typeof navigator > "u" ? null : navigator.virtualKeyboard ?? null, Mr = null, Nr = () => typeof window < "u" ? window.visualViewport ?? null : null, Pr = () => {
1980
+ let e = Nr();
1981
+ return e ? Mr && Mr.width === e.width && Mr.height === e.height && Mr.offsetTop === e.offsetTop && Mr.offsetLeft === e.offsetLeft ? Mr : Mr = {
1982
1982
  width: e.width,
1983
1983
  height: e.height,
1984
1984
  offsetTop: e.offsetTop,
1985
1985
  offsetLeft: e.offsetLeft
1986
1986
  } : null;
1987
- }, Pr = (e) => {
1988
- let t = Mr();
1989
- return t ? (t.addEventListener("resize", e), t.addEventListener("scroll", e), () => {
1990
- t.removeEventListener("resize", e), t.removeEventListener("scroll", e);
1987
+ }, Fr = (e) => {
1988
+ let t = Nr(), n = jr();
1989
+ return t || n ? (t?.addEventListener("resize", e), t?.addEventListener("scroll", e), n?.addEventListener("geometrychange", e), () => {
1990
+ t?.removeEventListener("resize", e), t?.removeEventListener("scroll", e), n?.removeEventListener("geometrychange", e);
1991
1991
  }) : () => {};
1992
- }, Fr = () => () => {}, Ir = () => null, Lr = (e = !0) => I(e ? Pr : Fr, e ? Nr : Ir, Ir), Rr = typeof window < "u" ? j : O, zr = Object.freeze({
1992
+ }, Ir = () => () => {}, Lr = () => null, Rr = (e = !0) => I(e ? Fr : Ir, e ? Pr : Lr, Lr), zr = typeof window < "u" ? j : O, Br = Object.freeze({
1993
1993
  x: 0,
1994
1994
  y: 0,
1995
1995
  width: 0,
@@ -1999,9 +1999,9 @@ var jr = null, Mr = () => typeof window < "u" ? window.visualViewport ?? null :
1999
1999
  bottom: 0,
2000
2000
  right: 0
2001
2001
  });
2002
- function Br() {
2003
- let [e, t] = F(null), [n, r] = F(zr), i = P(n), a = E((e) => t(e), []);
2004
- return Rr(() => {
2002
+ function Vr() {
2003
+ let [e, t] = F(null), [n, r] = F(Br), i = P(n), a = E((e) => t(e), []);
2004
+ return zr(() => {
2005
2005
  if (!e || typeof ResizeObserver > "u") return;
2006
2006
  let t = (e) => {
2007
2007
  var t = i.current, n = e;
@@ -2039,24 +2039,24 @@ function Br() {
2039
2039
  return a.observe(e), () => a.disconnect();
2040
2040
  }, [e]), [a, n];
2041
2041
  }
2042
- var Vr = "sxl-history-change", Hr = !1, Ur = () => {
2043
- if (Hr) return;
2044
- Hr = !0;
2042
+ var Hr = "sxl-history-change", Ur = !1, Wr = () => {
2043
+ if (Ur) return;
2044
+ Ur = !0;
2045
2045
  let e = window.history;
2046
2046
  for (let t of ["pushState", "replaceState"]) {
2047
2047
  let n = e[t];
2048
2048
  e[t] = function(...e) {
2049
2049
  let t = n.apply(this, e);
2050
- return window.dispatchEvent(new Event(Vr)), t;
2050
+ return window.dispatchEvent(new Event(Hr)), t;
2051
2051
  };
2052
2052
  }
2053
- }, Wr = (e) => (Ur(), window.addEventListener("popstate", e), window.addEventListener(Vr, e), () => {
2054
- window.removeEventListener("popstate", e), window.removeEventListener(Vr, e);
2055
- }), Gr = () => window.location.search, Kr = () => "";
2056
- function qr() {
2057
- return I(Wr, Gr, Kr);
2053
+ }, Gr = (e) => (Wr(), window.addEventListener("popstate", e), window.addEventListener(Hr, e), () => {
2054
+ window.removeEventListener("popstate", e), window.removeEventListener(Hr, e);
2055
+ }), Kr = () => window.location.search, qr = () => "";
2056
+ function Jr() {
2057
+ return I(Gr, Kr, qr);
2058
2058
  }
2059
- var Jr = 3, Yr = .5, Xr = 50, Zr = (e) => ({
2059
+ var Yr = 3, Xr = .5, Zr = 50, Qr = (e) => ({
2060
2060
  x: e.x,
2061
2061
  y: e.y,
2062
2062
  width: e.width,
@@ -2066,8 +2066,8 @@ var Jr = 3, Yr = .5, Xr = 50, Zr = (e) => ({
2066
2066
  right: e.right,
2067
2067
  bottom: e.bottom
2068
2068
  });
2069
- function Qr(e = {}) {
2070
- let { threshold: t = Yr, stillnessThreshold: n = Jr, maxHierarchyDepth: r = Xr } = e, [i, a] = Br(), o = P(null), [s, c] = N((e) => e + 1, 0), l = P(void 0), u = P({
2069
+ function $r(e = {}) {
2070
+ let { threshold: t = Xr, stillnessThreshold: n = Yr, maxHierarchyDepth: r = Zr } = e, [i, a] = Vr(), o = P(null), [s, c] = N((e) => e + 1, 0), l = P(void 0), u = P({
2071
2071
  x: 0,
2072
2072
  y: 0,
2073
2073
  width: 0,
@@ -2087,7 +2087,7 @@ function Qr(e = {}) {
2087
2087
  let i = !1, a = 0, s = () => {
2088
2088
  if (!e) return;
2089
2089
  let r = e.getBoundingClientRect(), o = u.current;
2090
- Math.abs(r.x - o.x) > t || Math.abs(r.y - o.y) > t || Math.abs(r.width - o.width) > t || Math.abs(r.height - o.height) > t ? (i || (i = !0, p(Zr(r)), c()), a = 0) : a++, i && a >= n && (i = !1, p(Zr(r)), c()), u.current = Zr(r), l.current = requestAnimationFrame(s);
2090
+ Math.abs(r.x - o.x) > t || Math.abs(r.y - o.y) > t || Math.abs(r.width - o.width) > t || Math.abs(r.height - o.height) > t ? (i || (i = !0, p(Qr(r)), c()), a = 0) : a++, i && a >= n && (i = !1, p(Qr(r)), c()), u.current = Qr(r), l.current = requestAnimationFrame(s);
2091
2091
  };
2092
2092
  l.current = requestAnimationFrame(s);
2093
2093
  let d = (e) => {
@@ -2109,16 +2109,16 @@ function Qr(e = {}) {
2109
2109
  r
2110
2110
  ]), [d, f];
2111
2111
  }
2112
- function $r(e, t) {
2112
+ function ei(e, t) {
2113
2113
  if (typeof e == "function") return e(t);
2114
2114
  e && (e.current = t);
2115
2115
  }
2116
- var ei = parseInt(ee.split(".")[0], 10) >= 19 ? function(e) {
2116
+ var ti = parseInt(ee.split(".")[0], 10) >= 19 ? function(e) {
2117
2117
  return (t) => {
2118
2118
  let n = [];
2119
2119
  for (let r of e) {
2120
- let e = $r(r, t), i = typeof e == "function";
2121
- n.push(i ? e : () => $r(r, null));
2120
+ let e = ei(r, t), i = typeof e == "function";
2121
+ n.push(i ? e : () => ei(r, null));
2122
2122
  }
2123
2123
  return () => {
2124
2124
  for (let e of n) e();
@@ -2126,13 +2126,13 @@ var ei = parseInt(ee.split(".")[0], 10) >= 19 ? function(e) {
2126
2126
  };
2127
2127
  } : function(e) {
2128
2128
  return (t) => {
2129
- for (let n of e) $r(n, t);
2129
+ for (let n of e) ei(n, t);
2130
2130
  };
2131
2131
  };
2132
- function ti(e) {
2133
- return M(() => ei(e), e);
2132
+ function ni(e) {
2133
+ return M(() => ti(e), e);
2134
2134
  }
2135
- var ni = T(S((e, t) => {
2135
+ var ri = T(S((e, t) => {
2136
2136
  let { refFocusStart: n, ...r } = e, i = P(null), a = E(() => {
2137
2137
  if (n) return void n?.current?.focus();
2138
2138
  let e = i.current?.parentElement;
@@ -2148,18 +2148,18 @@ var ni = T(S((e, t) => {
2148
2148
  r.length !== 0 && (r.sort(function(e, t) {
2149
2149
  return e.tabindex - t.tabindex;
2150
2150
  }), r[0].child.focus());
2151
- }, [n]), o = ti([i, t]);
2151
+ }, [n]), o = ni([i, t]);
2152
2152
  return L("div", {
2153
2153
  tabIndex: 0,
2154
2154
  ref: o,
2155
2155
  onFocus: a,
2156
2156
  ...r
2157
2157
  });
2158
- })), ri = (e) => {
2158
+ })), ii = (e) => {
2159
2159
  let { render: t, props: n } = e;
2160
2160
  return t ? t(n) : null;
2161
2161
  };
2162
- function ii(e, t, n = !1) {
2162
+ function ai(e, t, n = !1) {
2163
2163
  if (t === 0) return e;
2164
2164
  function r(e, t, n) {
2165
2165
  let r = t.x - e.x, a = t.y - e.y, o = Math.sqrt(r * r + a * a);
@@ -2219,10 +2219,10 @@ function ii(e, t, n = !1) {
2219
2219
  return e + t.join(" ") + " ";
2220
2220
  }, "");
2221
2221
  }
2222
- var ai = T(S((e, t) => {
2223
- let { className: n, style: r, children: i, radius: a = 4, strokeWidth: o = 1, strokeColor: s = "grey", variant: c = "tab", clipInset: l, ...u } = e, [d, { width: f, height: p }] = Br(), m = P(null), h = l?.top ?? 0, g = l?.right ?? 0, _ = l?.bottom ?? 0, v = l?.left ?? 0, b = M(() => {
2222
+ var oi = T(S((e, t) => {
2223
+ let { className: n, style: r, children: i, radius: a = 4, strokeWidth: o = 1, strokeColor: s = "grey", variant: c = "tab", clipInset: l, ...u } = e, [d, { width: f, height: p }] = Vr(), m = P(null), h = l?.top ?? 0, g = l?.right ?? 0, _ = l?.bottom ?? 0, v = l?.left ?? 0, b = M(() => {
2224
2224
  let e = f - g, t = p - _;
2225
- return ii(`M ${v} ${h} L ${e} ${h} L ${e} ${t} L ${v} ${t} Z`, a);
2225
+ return ai(`M ${v} ${h} L ${e} ${h} L ${e} ${t} L ${v} ${t} Z`, a);
2226
2226
  }, [
2227
2227
  f,
2228
2228
  p,
@@ -2233,7 +2233,7 @@ var ai = T(S((e, t) => {
2233
2233
  v
2234
2234
  ]), x = M(() => c === "rounded" ? b : ((e, t = 0) => {
2235
2235
  let n = e / 2, r = p - n + t;
2236
- return ii(`M 0 ${n} L ${a} ${n} L ${a} ${r} L ${2 * a} ${r} L ${f - 2 * a} ${r} M ${f - 2 * a} ${r} L ${f - a} ${r} L ${f - a} ${n} L ${f} ${n}`, a);
2236
+ return ai(`M 0 ${n} L ${a} ${n} L ${a} ${r} L ${2 * a} ${r} L ${f - 2 * a} ${r} M ${f - 2 * a} ${r} L ${f - a} ${r} L ${f - a} ${n} L ${f} ${n}`, a);
2237
2237
  })(o), [
2238
2238
  c,
2239
2239
  b,
@@ -2245,7 +2245,7 @@ var ai = T(S((e, t) => {
2245
2245
  if (a === 0) return;
2246
2246
  if (c === "rounded") return b;
2247
2247
  let e = p - o / 2;
2248
- return ii(`M 0 0 L ${a} 0 L ${a} ${e} L ${f - a} ${e} L ${f - a} 0 L ${f} 0`, a);
2248
+ return ai(`M 0 0 L ${a} 0 L ${a} ${e} L ${f - a} ${e} L ${f - a} 0 L ${f} 0`, a);
2249
2249
  }, [
2250
2250
  f,
2251
2251
  p,
@@ -2256,12 +2256,12 @@ var ai = T(S((e, t) => {
2256
2256
  ]), w = M(() => ({ style: {
2257
2257
  ...C(i) ? i.props?.style : void 0,
2258
2258
  clipPath: `path('${S}')`
2259
- } }), [S, i]), T = ti([
2259
+ } }), [S, i]), T = ni([
2260
2260
  m,
2261
2261
  d,
2262
2262
  t
2263
2263
  ]);
2264
- return ne("div", {
2264
+ return R("div", {
2265
2265
  className: n,
2266
2266
  style: {
2267
2267
  display: "flex",
@@ -2289,11 +2289,11 @@ var ai = T(S((e, t) => {
2289
2289
  })
2290
2290
  })]
2291
2291
  });
2292
- })), oi = b(null);
2293
- function si() {
2294
- return D(oi);
2292
+ })), si = b(null);
2293
+ function ci() {
2294
+ return D(si);
2295
2295
  }
2296
- function ci(e, t) {
2296
+ function li(e, t) {
2297
2297
  let n = t?.renderError, r = null, i = () => {
2298
2298
  let t = {
2299
2299
  failed: !1,
@@ -2318,13 +2318,13 @@ function ci(e, t) {
2318
2318
  let [t, n] = F(a), o = E(() => {
2319
2319
  n(() => (r && !r.failed || (r = i()), r.component));
2320
2320
  }, []);
2321
- return L(oi.Provider, {
2321
+ return L(si.Provider, {
2322
2322
  value: o,
2323
2323
  children: L(t, { ...e })
2324
2324
  });
2325
2325
  };
2326
2326
  }
2327
- var li = class extends v {
2327
+ var ui = class extends v {
2328
2328
  constructor(...e) {
2329
2329
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2330
2330
  }
@@ -2340,27 +2340,27 @@ var li = class extends v {
2340
2340
  render() {
2341
2341
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2342
2342
  }
2343
- }, ui = ({ children: e, fallback: t }) => {
2343
+ }, di = ({ children: e, fallback: t }) => {
2344
2344
  let n = _n(), r = E((e) => {
2345
2345
  n.showError(e);
2346
2346
  }, [n]);
2347
- return L(li, {
2347
+ return L(ui, {
2348
2348
  fallback: t,
2349
2349
  onError: r,
2350
2350
  children: e
2351
2351
  });
2352
- }, di = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, fi = /\breact_devtools_backend/;
2353
- function pi(e, t) {
2352
+ }, fi = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, pi = /\breact_devtools_backend/;
2353
+ function mi(e, t) {
2354
2354
  let n = `${e ?? ""}\n${t instanceof Error ? t.stack ?? "" : ""}`;
2355
- return di.test(n) || fi.test(n);
2355
+ return fi.test(n) || pi.test(n);
2356
2356
  }
2357
- var mi = class {
2357
+ var hi = class {
2358
2358
  constructor(e) {
2359
2359
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2360
2360
  let t = e.reason;
2361
- t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && t.name === "AbortError" || pi(void 0, t) || (this.notifier.showError(t), t instanceof o && e.preventDefault());
2361
+ t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && t.name === "AbortError" || mi(void 0, t) || (this.notifier.showError(t), t instanceof o && e.preventDefault());
2362
2362
  }, this.handleGlobalError = (e) => {
2363
- typeof e.message == "string" && e.message.includes("ResizeObserver loop") || pi(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2363
+ typeof e.message == "string" && e.message.includes("ResizeObserver loop") || mi(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2364
2364
  }, this.setupGlobalHandlers();
2365
2365
  }
2366
2366
  setupGlobalHandlers() {
@@ -2369,19 +2369,19 @@ var mi = class {
2369
2369
  cleanup() {
2370
2370
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2371
2371
  }
2372
- }, hi = ({ children: e }) => {
2372
+ }, gi = ({ children: e }) => {
2373
2373
  let t = _n();
2374
2374
  return O(() => {
2375
- let e = new mi(t);
2375
+ let e = new hi(t);
2376
2376
  return () => {
2377
2377
  e.cleanup();
2378
2378
  };
2379
2379
  }, [t]), L(te, { children: e });
2380
- }, gi = {
2380
+ }, _i = {
2381
2381
  grid: 1250,
2382
2382
  popup: 1300,
2383
2383
  tooltip: 1500
2384
- }, _i = (e, t = 0) => vi(`var(--sxl-z-${e}, ${gi[e]})`, t), vi = (e, t) => t ? typeof e == "number" ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, yi = 7, bi = {
2384
+ }, vi = (e, t = 0) => yi(`var(--sxl-z-${e}, ${_i[e]})`, t), yi = (e, t) => t ? typeof e == "number" ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, bi = 7, xi = {
2385
2385
  light: {
2386
2386
  "color-base-100": "#ffffff",
2387
2387
  "color-base-200": "#f5f5f5",
@@ -2428,9 +2428,9 @@ var mi = class {
2428
2428
  "radius-field": "4px",
2429
2429
  "radius-box": "6px",
2430
2430
  border: "1px",
2431
- "z-grid": String(gi.grid),
2432
- "z-popup": String(gi.popup),
2433
- "z-tooltip": String(gi.tooltip),
2431
+ "z-grid": String(_i.grid),
2432
+ "z-popup": String(_i.popup),
2433
+ "z-tooltip": String(_i.tooltip),
2434
2434
  "image-background": "none"
2435
2435
  },
2436
2436
  dark: {
@@ -2479,31 +2479,31 @@ var mi = class {
2479
2479
  "radius-field": "4px",
2480
2480
  "radius-box": "6px",
2481
2481
  border: "1px",
2482
- "z-grid": String(gi.grid),
2483
- "z-popup": String(gi.popup),
2484
- "z-tooltip": String(gi.tooltip),
2482
+ "z-grid": String(_i.grid),
2483
+ "z-popup": String(_i.popup),
2484
+ "z-tooltip": String(_i.tooltip),
2485
2485
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2486
2486
  }
2487
- }, xi = "--sxl-";
2488
- function Si(e) {
2487
+ }, Si = "--sxl-";
2488
+ function Ci(e) {
2489
2489
  let t = {};
2490
2490
  for (let n in e) {
2491
2491
  let r = e[n];
2492
2492
  r != null && (Array.isArray(r) ? r.forEach((e, r) => {
2493
- e != null && (t[`${xi}${n}-${r + 1}`] = String(e));
2494
- }) : t[`${xi}${n}`] = String(r));
2493
+ e != null && (t[`${Si}${n}-${r + 1}`] = String(e));
2494
+ }) : t[`${Si}${n}`] = String(r));
2495
2495
  }
2496
2496
  return t;
2497
2497
  }
2498
- function Ci(e, ...t) {
2499
- return Si(Object.assign({}, bi[e], ...t.filter(Boolean)));
2498
+ function wi(e, ...t) {
2499
+ return Ci(Object.assign({}, xi[e], ...t.filter(Boolean)));
2500
2500
  }
2501
- var wi = ["light", "dark"], Ti = "--sxl-input-selection", Ei = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", Di = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${Ti},${Ei});}`, Oi = [
2501
+ var Ti = ["light", "dark"], Ei = "--sxl-input-selection", Di = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", Oi = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${Ei},${Di});}`, ki = [
2502
2502
  "sxl-defaults",
2503
2503
  "sxl-app",
2504
2504
  "sxl-overrides"
2505
- ], ki = `@layer ${Oi.join(", ")};`;
2506
- function Ai(e) {
2505
+ ], Ai = `@layer ${ki.join(", ")};`;
2506
+ function ji(e) {
2507
2507
  let t = "";
2508
2508
  for (let n in e) {
2509
2509
  let r = e[n];
@@ -2513,53 +2513,53 @@ function Ai(e) {
2513
2513
  }
2514
2514
  return t;
2515
2515
  }
2516
- function ji(e = {}) {
2517
- let { app: t = bi, surfaces: n = {}, hc: r, modeAttr: i = "data-sxl-theme-mode", surfaceAttr: a = "data-sxl-theme-surface", layer: o, scope: s } = e, c = [], l = {
2516
+ function Mi(e = {}) {
2517
+ let { app: t = xi, surfaces: n = {}, hc: r, modeAttr: i = "data-sxl-theme-mode", surfaceAttr: a = "data-sxl-theme-surface", layer: o, scope: s } = e, c = [], l = {
2518
2518
  app: {
2519
2519
  light: t.light,
2520
2520
  dark: t.dark
2521
2521
  },
2522
2522
  ...n
2523
2523
  }, u = s ? ":scope" : ":root", d = (e) => s ? `:scope${e},${e}` : e, f = (e) => s ? `:where(:scope[${a}="${e}"],[${a}="${e}"])` : `:where([${a}="${e}"])`, p = (e, t) => `${e} ${t}`;
2524
- c.push(`:where(${u}){color-scheme:light;${Ai(t.light)}}`);
2524
+ c.push(`:where(${u}){color-scheme:light;${ji(t.light)}}`);
2525
2525
  for (let [e, t] of Object.entries(l)) {
2526
2526
  let n = t?.light;
2527
- n && Object.keys(n).length && c.push(`${f(e)}{${Ai(n)}}`);
2527
+ n && Object.keys(n).length && c.push(`${f(e)}{${ji(n)}}`);
2528
2528
  }
2529
- for (let e of wi) {
2530
- c.push(`${d(`[${i}="${e}"]`)}{color-scheme:${e};${Ai(t[e])}}`);
2529
+ for (let e of Ti) {
2530
+ c.push(`${d(`[${i}="${e}"]`)}{color-scheme:${e};${ji(t[e])}}`);
2531
2531
  for (let [t, n] of Object.entries(l)) {
2532
2532
  let r = n?.[e];
2533
- r && Object.keys(r).length && c.push(`${p(`[${i}="${e}"]`, `[${a}="${t}"]`)}{${Ai(r)}}`);
2533
+ r && Object.keys(r).length && c.push(`${p(`[${i}="${e}"]`, `[${a}="${t}"]`)}{${ji(r)}}`);
2534
2534
  }
2535
2535
  }
2536
- for (let e of wi) for (let [t, n] of Object.entries(l)) {
2536
+ for (let e of Ti) for (let [t, n] of Object.entries(l)) {
2537
2537
  let r = n?.[e];
2538
- r && Object.keys(r).length && c.push(`${d(`[${i}="${e}"][${a}="${t}"]`)}{${Ai(r)}}`);
2538
+ r && Object.keys(r).length && c.push(`${d(`[${i}="${e}"][${a}="${t}"]`)}{${ji(r)}}`);
2539
2539
  }
2540
- r && Object.keys(r).length && c.push(`${d(`[${i}="hc"]`)}{${Ai(r)}}`), c.push(Di);
2540
+ r && Object.keys(r).length && c.push(`${d(`[${i}="hc"]`)}{${ji(r)}}`), c.push(Oi);
2541
2541
  let m = c.join("\n");
2542
- return s && (m = `@scope (${s}){\n${m}\n}`), o && (m = `${ki}\n@layer ${o}{\n${m}\n}`), m;
2542
+ return s && (m = `@scope (${s}){\n${m}\n}`), o && (m = `${Ai}\n@layer ${o}{\n${m}\n}`), m;
2543
2543
  }
2544
- var Mi = "data-sxl-theme-mode", Ni = "data-sxl-theme-surface", Pi = (e, t) => {
2545
- let n = { [Ni]: e };
2546
- return t && (n[Mi] = t), n;
2547
- }, Fi = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2548
- function Ii(e) {
2544
+ var Ni = "data-sxl-theme-mode", Pi = "data-sxl-theme-surface", Fi = (e, t) => {
2545
+ let n = { [Pi]: e };
2546
+ return t && (n[Ni] = t), n;
2547
+ }, Ii = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2548
+ function Li(e) {
2549
2549
  let { mode: t } = e || {}, [n, r] = F(() => {
2550
2550
  if (t === "light" || t === "dark") return {
2551
2551
  themeMode: t,
2552
2552
  source: "prop"
2553
2553
  };
2554
2554
  if (typeof document < "u") {
2555
- let e = Li();
2555
+ let e = Ri();
2556
2556
  if (e) return {
2557
2557
  themeMode: e,
2558
2558
  source: "class"
2559
2559
  };
2560
2560
  }
2561
2561
  return {
2562
- themeMode: Ri(),
2562
+ themeMode: zi(),
2563
2563
  source: "media"
2564
2564
  };
2565
2565
  });
@@ -2570,13 +2570,13 @@ function Ii(e) {
2570
2570
  themeMode: t,
2571
2571
  source: "prop"
2572
2572
  })));
2573
- let e = Li();
2573
+ let e = Ri();
2574
2574
  if (e) r({
2575
2575
  themeMode: e,
2576
2576
  source: "class"
2577
2577
  });
2578
2578
  else {
2579
- let e = Ri();
2579
+ let e = zi();
2580
2580
  r({
2581
2581
  themeMode: e,
2582
2582
  source: "media"
@@ -2593,16 +2593,16 @@ function Ii(e) {
2593
2593
  };
2594
2594
  }, [t]), n;
2595
2595
  }
2596
- function Li() {
2596
+ function Ri() {
2597
2597
  if (typeof document > "u") return null;
2598
2598
  let e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2599
2599
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2600
2600
  }
2601
- function Ri() {
2601
+ function zi() {
2602
2602
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2603
2603
  }
2604
- var zi = b(null), Bi = () => D(zi), Vi = (e) => {
2605
- let { light: t, dark: n, base: r, surfaces: i, mode: a, surface: o, isolate: s = !1, layer: c = "sxl-overrides", children: l } = e, u = Bi(), d = M(() => ({
2604
+ var Bi = b(null), Vi = () => D(Bi), Hi = (e) => {
2605
+ let { light: t, dark: n, base: r, surfaces: i, mode: a, surface: o, isolate: s = !1, layer: c = "sxl-overrides", children: l } = e, u = Vi(), d = M(() => ({
2606
2606
  ...r?.light ?? {},
2607
2607
  ...u?.light ?? {},
2608
2608
  ...t ?? {}
@@ -2618,7 +2618,7 @@ var zi = b(null), Bi = () => D(zi), Vi = (e) => {
2618
2618
  r?.dark,
2619
2619
  u?.dark,
2620
2620
  n
2621
- ]), p = Fi("token", k()), { themeMode: m } = Ii(a === "light" || a === "dark" ? { mode: a } : void 0), h = a === void 0 ? void 0 : a === "auto" ? m : a, g = h ?? u?.mode, v = M(() => ji({
2621
+ ]), p = Ii("token", k()), { themeMode: m } = Li(a === "light" || a === "dark" ? { mode: a } : void 0), h = a === void 0 ? void 0 : a === "auto" ? m : a, g = h ?? u?.mode, v = M(() => Mi({
2622
2622
  app: {
2623
2623
  light: d,
2624
2624
  dark: f
@@ -2645,37 +2645,37 @@ var zi = b(null), Bi = () => D(zi), Vi = (e) => {
2645
2645
  d,
2646
2646
  f
2647
2647
  ]), b = L("style", { children: v }), x = {};
2648
- h && (x[Mi] = h), o && (x[Ni] = o);
2648
+ h && (x[Ni] = h), o && (x[Pi] = o);
2649
2649
  let S = l;
2650
2650
  if (s || Object.keys(x).length > 0) {
2651
2651
  let e = _.Children.only(l);
2652
2652
  s && (x.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), S = _.cloneElement(e, x);
2653
2653
  }
2654
- return ne(zi.Provider, {
2654
+ return R(Bi.Provider, {
2655
2655
  value: y,
2656
2656
  children: [b, S]
2657
2657
  });
2658
2658
  };
2659
- function Hi(e, t) {
2659
+ function Ui(e, t) {
2660
2660
  if (!e || typeof getComputedStyle > "u") return;
2661
- let n = getComputedStyle(e).getPropertyValue(Wi(t)).trim();
2661
+ let n = getComputedStyle(e).getPropertyValue(Gi(t)).trim();
2662
2662
  return n === "" ? void 0 : n;
2663
2663
  }
2664
- function Ui(e, t) {
2664
+ function Wi(e, t) {
2665
2665
  let n = {};
2666
2666
  if (!e || typeof getComputedStyle > "u") return n;
2667
2667
  let r = getComputedStyle(e);
2668
2668
  for (let e of t) {
2669
- let t = r.getPropertyValue(Wi(e)).trim();
2669
+ let t = r.getPropertyValue(Gi(e)).trim();
2670
2670
  t !== "" && (n[e] = t);
2671
2671
  }
2672
2672
  return n;
2673
2673
  }
2674
- function Wi(e) {
2674
+ function Gi(e) {
2675
2675
  return e.startsWith("--") ? e : `--sxl-${e}`;
2676
2676
  }
2677
- Vi.displayName = "TokenThemeProvider";
2678
- var Gi = b(null), Ki = () => {
2677
+ Hi.displayName = "TokenThemeProvider";
2678
+ var Ki = b(null), qi = () => {
2679
2679
  let e = (t, n) => {
2680
2680
  if (n === null) return;
2681
2681
  t.add(n);
@@ -2738,80 +2738,80 @@ var Gi = b(null), Ki = () => {
2738
2738
  })
2739
2739
  };
2740
2740
  return i;
2741
- }, qi = () => D(Gi), Ji = (e) => {
2741
+ }, Ji = () => D(Ki), Yi = (e) => {
2742
2742
  let t = {};
2743
- return e ? (e.mode && (t[Mi] = e.mode), e.surface && (t[Ni] = e.surface), {
2743
+ return e ? (e.mode && (t[Ni] = e.mode), e.surface && (t[Pi] = e.surface), {
2744
2744
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2745
2745
  attrs: t
2746
2746
  }) : { attrs: t };
2747
2747
  };
2748
- function Yi(e) {
2748
+ function Xi(e) {
2749
2749
  var t, n, r = "";
2750
2750
  if (typeof e == "string" || typeof e == "number") r += e;
2751
2751
  else if (typeof e == "object") {
2752
2752
  if (Array.isArray(e)) {
2753
2753
  var i = e.length;
2754
- for (t = 0; t < i; t++) e[t] && (n = Yi(e[t])) && (r && (r += " "), r += n);
2754
+ for (t = 0; t < i; t++) e[t] && (n = Xi(e[t])) && (r && (r += " "), r += n);
2755
2755
  } else for (n in e) e[n] && (r && (r += " "), r += n);
2756
2756
  }
2757
2757
  return r;
2758
2758
  }
2759
2759
  function X() {
2760
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Yi(e)) && (r && (r += " "), r += t);
2760
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Xi(e)) && (r && (r += " "), r += t);
2761
2761
  return r;
2762
2762
  }
2763
- var Xi = Math.min, Zi = Math.max, Qi = Math.round, $i = Math.floor, ea = (e) => ({
2763
+ var Zi = Math.min, Qi = Math.max, $i = Math.round, ea = Math.floor, ta = (e) => ({
2764
2764
  x: e,
2765
2765
  y: e
2766
- }), ta = {
2766
+ }), na = {
2767
2767
  left: "right",
2768
2768
  right: "left",
2769
2769
  bottom: "top",
2770
2770
  top: "bottom"
2771
2771
  };
2772
- function na(e, t) {
2772
+ function ra(e, t) {
2773
2773
  return typeof e == "function" ? e(t) : e;
2774
2774
  }
2775
- function ra(e) {
2775
+ function ia(e) {
2776
2776
  return e.split("-")[0];
2777
2777
  }
2778
- function ia(e) {
2778
+ function aa(e) {
2779
2779
  return e.split("-")[1];
2780
2780
  }
2781
- function aa(e) {
2781
+ function oa(e) {
2782
2782
  return e === "x" ? "y" : "x";
2783
2783
  }
2784
- function oa(e) {
2784
+ function sa(e) {
2785
2785
  return e === "y" ? "height" : "width";
2786
2786
  }
2787
- function sa(e) {
2787
+ function ca(e) {
2788
2788
  let t = e[0];
2789
2789
  return t === "t" || t === "b" ? "y" : "x";
2790
2790
  }
2791
- function ca(e) {
2792
- return aa(sa(e));
2793
- }
2794
2791
  function la(e) {
2792
+ return oa(ca(e));
2793
+ }
2794
+ function ua(e) {
2795
2795
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
2796
2796
  }
2797
- var ua = ["left", "right"], da = ["right", "left"], fa = ["top", "bottom"], pa = ["bottom", "top"];
2798
- function ma(e, t, n, r) {
2799
- let i = ia(e), a = function(e, t, n) {
2797
+ var da = ["left", "right"], fa = ["right", "left"], pa = ["top", "bottom"], ma = ["bottom", "top"];
2798
+ function ha(e, t, n, r) {
2799
+ let i = aa(e), a = function(e, t, n) {
2800
2800
  switch (e) {
2801
2801
  case "top":
2802
- case "bottom": return n ? t ? da : ua : t ? ua : da;
2802
+ case "bottom": return n ? t ? fa : da : t ? da : fa;
2803
2803
  case "left":
2804
- case "right": return t ? fa : pa;
2804
+ case "right": return t ? pa : ma;
2805
2805
  default: return [];
2806
2806
  }
2807
- }(ra(e), n === "start", r);
2808
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(la)))), a;
2809
- }
2810
- function ha(e) {
2811
- let t = ra(e);
2812
- return ta[t] + e.slice(t.length);
2807
+ }(ia(e), n === "start", r);
2808
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ua)))), a;
2813
2809
  }
2814
2810
  function ga(e) {
2811
+ let t = ia(e);
2812
+ return na[t] + e.slice(t.length);
2813
+ }
2814
+ function _a(e) {
2815
2815
  let { x: t, y: n, width: r, height: i } = e;
2816
2816
  return {
2817
2817
  width: r,
@@ -2824,8 +2824,8 @@ function ga(e) {
2824
2824
  y: n
2825
2825
  };
2826
2826
  }
2827
- function _a(e, t, n) {
2828
- let { reference: r, floating: i } = e, a = sa(t), o = ca(t), s = oa(o), c = ra(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
2827
+ function va(e, t, n) {
2828
+ let { reference: r, floating: i } = e, a = ca(t), o = la(t), s = sa(o), c = ia(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
2829
2829
  switch (c) {
2830
2830
  case "top":
2831
2831
  p = {
@@ -2856,13 +2856,13 @@ function _a(e, t, n) {
2856
2856
  y: r.y
2857
2857
  };
2858
2858
  }
2859
- let m = ia(t);
2859
+ let m = aa(t);
2860
2860
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
2861
2861
  }
2862
- async function va(e, t) {
2862
+ async function ya(e, t) {
2863
2863
  var n;
2864
2864
  t === void 0 && (t = {});
2865
- let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = na(t, e), m = function(e) {
2865
+ let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = ra(t, e), m = function(e) {
2866
2866
  return typeof e == "number" ? {
2867
2867
  top: e,
2868
2868
  right: e,
@@ -2876,7 +2876,7 @@ async function va(e, t) {
2876
2876
  left: e.left ?? 0
2877
2877
  };
2878
2878
  }(e);
2879
- }(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = ga(await a.getClippingRect({
2879
+ }(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = _a(await a.getClippingRect({
2880
2880
  element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2881
2881
  boundary: l,
2882
2882
  rootBoundary: u,
@@ -2889,7 +2889,7 @@ async function va(e, t) {
2889
2889
  } : o.reference, v = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), y = await (a.isElement == null ? void 0 : a.isElement(v)) && await (a.getScale == null ? void 0 : a.getScale(v)) || {
2890
2890
  x: 1,
2891
2891
  y: 1
2892
- }, b = ga(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2892
+ }, b = _a(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2893
2893
  elements: s,
2894
2894
  rect: _,
2895
2895
  offsetParent: v,
@@ -2902,40 +2902,40 @@ async function va(e, t) {
2902
2902
  right: (b.right - g.right + m.right) / y.x
2903
2903
  };
2904
2904
  }
2905
- var ya = /* @__PURE__ */ new Set(["left", "top"]);
2906
- function ba() {
2905
+ var ba = /* @__PURE__ */ new Set(["left", "top"]);
2906
+ function xa() {
2907
2907
  return typeof window < "u";
2908
2908
  }
2909
- function xa(e) {
2910
- return wa(e) ? (e.nodeName || "").toLowerCase() : "#document";
2911
- }
2912
2909
  function Sa(e) {
2913
- var t;
2914
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2910
+ return Ta(e) ? (e.nodeName || "").toLowerCase() : "#document";
2915
2911
  }
2916
2912
  function Ca(e) {
2917
- return ((wa(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2913
+ var t;
2914
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2918
2915
  }
2919
2916
  function wa(e) {
2920
- return !!ba() && (e instanceof Node || e instanceof Sa(e).Node);
2917
+ return ((Ta(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2921
2918
  }
2922
2919
  function Ta(e) {
2923
- return !!ba() && (e instanceof Element || e instanceof Sa(e).Element);
2920
+ return !!xa() && (e instanceof Node || e instanceof Ca(e).Node);
2924
2921
  }
2925
2922
  function Ea(e) {
2926
- return !!ba() && (e instanceof HTMLElement || e instanceof Sa(e).HTMLElement);
2923
+ return !!xa() && (e instanceof Element || e instanceof Ca(e).Element);
2927
2924
  }
2928
2925
  function Da(e) {
2929
- return !(!ba() || typeof ShadowRoot > "u") && (e instanceof ShadowRoot || e instanceof Sa(e).ShadowRoot);
2926
+ return !!xa() && (e instanceof HTMLElement || e instanceof Ca(e).HTMLElement);
2930
2927
  }
2931
2928
  function Oa(e) {
2932
- let { overflow: t, overflowX: n, overflowY: r, display: i } = Ra(e);
2933
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
2929
+ return !(!xa() || typeof ShadowRoot > "u") && (e instanceof ShadowRoot || e instanceof Ca(e).ShadowRoot);
2934
2930
  }
2935
2931
  function ka(e) {
2936
- return /^(table|td|th)$/.test(xa(e));
2932
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = za(e);
2933
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
2937
2934
  }
2938
2935
  function Aa(e) {
2936
+ return /^(table|td|th)$/.test(Sa(e));
2937
+ }
2938
+ function ja(e) {
2939
2939
  try {
2940
2940
  if (e.matches(":popover-open")) return !0;
2941
2941
  } catch {}
@@ -2945,22 +2945,22 @@ function Aa(e) {
2945
2945
  return !1;
2946
2946
  }
2947
2947
  }
2948
- var ja, Ma = /transform|translate|scale|rotate|perspective|filter/, Na = /paint|layout|strict|content/, Pa = (e) => !!e && e !== "none";
2949
- function Fa(e) {
2950
- let t = Ta(e) ? Ra(e) : e;
2951
- return Pa(t.transform) || Pa(t.translate) || Pa(t.scale) || Pa(t.rotate) || Pa(t.perspective) || !Ia() && (Pa(t.backdropFilter) || Pa(t.filter)) || Ma.test(t.willChange || "") || Na.test(t.contain || "");
2948
+ var Ma, Na = /transform|translate|scale|rotate|perspective|filter/, Pa = /paint|layout|strict|content/, Fa = (e) => !!e && e !== "none";
2949
+ function Ia(e) {
2950
+ let t = Ea(e) ? za(e) : e;
2951
+ return Fa(t.transform) || Fa(t.translate) || Fa(t.scale) || Fa(t.rotate) || Fa(t.perspective) || !La() && (Fa(t.backdropFilter) || Fa(t.filter)) || Na.test(t.willChange || "") || Pa.test(t.contain || "");
2952
2952
  }
2953
- function Ia() {
2954
- return ja ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ja;
2955
- }
2956
- function La(e) {
2957
- return /^(html|body|#document)$/.test(xa(e));
2953
+ function La() {
2954
+ return Ma ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ma;
2958
2955
  }
2959
2956
  function Ra(e) {
2960
- return Sa(e).getComputedStyle(e);
2957
+ return /^(html|body|#document)$/.test(Sa(e));
2961
2958
  }
2962
2959
  function za(e) {
2963
- return Ta(e) ? {
2960
+ return Ca(e).getComputedStyle(e);
2961
+ }
2962
+ function Ba(e) {
2963
+ return Ea(e) ? {
2964
2964
  scrollLeft: e.scrollLeft,
2965
2965
  scrollTop: e.scrollTop
2966
2966
  } : {
@@ -2968,97 +2968,97 @@ function za(e) {
2968
2968
  scrollTop: e.scrollY
2969
2969
  };
2970
2970
  }
2971
- function Ba(e) {
2972
- if (xa(e) === "html") return e;
2973
- let t = e.assignedSlot || e.parentNode || Da(e) && e.host || Ca(e);
2974
- return Da(t) ? t.host : t;
2975
- }
2976
2971
  function Va(e) {
2977
- let t = Ba(e);
2978
- return La(t) ? (e.ownerDocument || e).body : Ea(t) && Oa(t) ? t : Va(t);
2972
+ if (Sa(e) === "html") return e;
2973
+ let t = e.assignedSlot || e.parentNode || Oa(e) && e.host || wa(e);
2974
+ return Oa(t) ? t.host : t;
2979
2975
  }
2980
- function Ha(e, t, n) {
2976
+ function Ha(e) {
2977
+ let t = Va(e);
2978
+ return Ra(t) ? (e.ownerDocument || e).body : Da(t) && ka(t) ? t : Ha(t);
2979
+ }
2980
+ function Ua(e, t, n) {
2981
2981
  t === void 0 && (t = []), n === void 0 && (n = !0);
2982
- let r = Va(e), i = r === e.ownerDocument?.body, a = Sa(r);
2982
+ let r = Ha(e), i = r === e.ownerDocument?.body, a = Ca(r);
2983
2983
  if (i) {
2984
- let e = Ua(a);
2985
- return t.concat(a, a.visualViewport || [], Oa(r) ? r : [], e && n ? Ha(e) : []);
2984
+ let e = Wa(a);
2985
+ return t.concat(a, a.visualViewport || [], ka(r) ? r : [], e && n ? Ua(e) : []);
2986
2986
  }
2987
- return t.concat(r, Ha(r, [], n));
2987
+ return t.concat(r, Ua(r, [], n));
2988
2988
  }
2989
- function Ua(e) {
2989
+ function Wa(e) {
2990
2990
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2991
2991
  }
2992
- function Wa(e) {
2993
- let t = Ra(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ea(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Qi(n) !== a || Qi(r) !== o;
2992
+ function Ga(e) {
2993
+ let t = za(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Da(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = $i(n) !== a || $i(r) !== o;
2994
2994
  return s && (n = a, r = o), {
2995
2995
  width: n,
2996
2996
  height: r,
2997
2997
  $: s
2998
2998
  };
2999
2999
  }
3000
- function Ga(e) {
3001
- return Ta(e) ? e : e.contextElement;
3002
- }
3003
3000
  function Ka(e) {
3004
- let t = Ga(e);
3005
- if (!Ea(t)) return ea(1);
3006
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Wa(t), o = (a ? Qi(n.width) : n.width) / r, s = (a ? Qi(n.height) : n.height) / i;
3001
+ return Ea(e) ? e : e.contextElement;
3002
+ }
3003
+ function qa(e) {
3004
+ let t = Ka(e);
3005
+ if (!Da(t)) return ta(1);
3006
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ga(t), o = (a ? $i(n.width) : n.width) / r, s = (a ? $i(n.height) : n.height) / i;
3007
3007
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
3008
3008
  x: o,
3009
3009
  y: s
3010
3010
  };
3011
3011
  }
3012
- var qa = ea(0);
3013
- function Ja(e) {
3014
- let t = Sa(e);
3015
- return Ia() && t.visualViewport ? {
3012
+ var Ja = ta(0);
3013
+ function Ya(e) {
3014
+ let t = Ca(e);
3015
+ return La() && t.visualViewport ? {
3016
3016
  x: t.visualViewport.offsetLeft,
3017
3017
  y: t.visualViewport.offsetTop
3018
- } : qa;
3018
+ } : Ja;
3019
3019
  }
3020
- function Ya(e, t, n, r) {
3020
+ function Xa(e, t, n, r) {
3021
3021
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3022
- let i = e.getBoundingClientRect(), a = Ga(e), o = ea(1);
3023
- t && (r ? Ta(r) && (o = Ka(r)) : o = Ka(e));
3022
+ let i = e.getBoundingClientRect(), a = Ka(e), o = ta(1);
3023
+ t && (r ? Ea(r) && (o = qa(r)) : o = qa(e));
3024
3024
  let s = function(e, t, n) {
3025
- return t === void 0 && (t = !1), !!n && t && n === Sa(e);
3026
- }(a, n, r) ? Ja(a) : ea(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
3025
+ return t === void 0 && (t = !1), !!n && t && n === Ca(e);
3026
+ }(a, n, r) ? Ya(a) : ta(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
3027
3027
  if (a && r) {
3028
- let e = Sa(a), t = Ta(r) ? Sa(r) : r, n = e, i = Ua(n);
3028
+ let e = Ca(a), t = Ea(r) ? Ca(r) : r, n = e, i = Wa(n);
3029
3029
  for (; i && t !== n;) {
3030
- let e = Ka(i), t = i.getBoundingClientRect(), r = Ra(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
3031
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Sa(i), i = Ua(n);
3030
+ let e = qa(i), t = i.getBoundingClientRect(), r = za(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
3031
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Ca(i), i = Wa(n);
3032
3032
  }
3033
3033
  }
3034
- return ga({
3034
+ return _a({
3035
3035
  width: u,
3036
3036
  height: d,
3037
3037
  x: c,
3038
3038
  y: l
3039
3039
  });
3040
3040
  }
3041
- function Xa(e, t) {
3042
- let n = za(e).scrollLeft;
3043
- return t ? t.left + n : Ya(Ca(e)).left + n;
3044
- }
3045
3041
  function Za(e, t) {
3042
+ let n = Ba(e).scrollLeft;
3043
+ return t ? t.left + n : Xa(wa(e)).left + n;
3044
+ }
3045
+ function Qa(e, t) {
3046
3046
  let n = e.getBoundingClientRect();
3047
3047
  return {
3048
- x: n.left + t.scrollLeft - Xa(e, n),
3048
+ x: n.left + t.scrollLeft - Za(e, n),
3049
3049
  y: n.top + t.scrollTop
3050
3050
  };
3051
3051
  }
3052
- function Qa(e, t, n) {
3052
+ function $a(e, t, n) {
3053
3053
  let r;
3054
3054
  if (t === "viewport" || t === "layoutViewport") r = function(e, t, n) {
3055
3055
  n === void 0 && (n = "viewport");
3056
- let r = n === "layoutViewport", i = Sa(e), a = Ca(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
3056
+ let r = n === "layoutViewport", i = Ca(e), a = wa(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
3057
3057
  if (o) {
3058
- let e = !Ia() || t === "fixed";
3058
+ let e = !La() || t === "fixed";
3059
3059
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
3060
3060
  }
3061
- if (Xa(a) <= 0) {
3061
+ if (Za(a) <= 0) {
3062
3062
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
3063
3063
  o <= 25 && (s -= o);
3064
3064
  }
@@ -3070,16 +3070,16 @@ function Qa(e, t, n) {
3070
3070
  };
3071
3071
  }(e, n, t);
3072
3072
  else if (t === "document") r = function(e) {
3073
- let t = za(e), n = e.ownerDocument.body, r = Zi(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Zi(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Xa(e), o = -t.scrollTop;
3074
- return Ra(n).direction === "rtl" && (a += Zi(e.clientWidth, n.clientWidth) - r), {
3073
+ let t = Ba(e), n = e.ownerDocument.body, r = Qi(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Qi(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Za(e), o = -t.scrollTop;
3074
+ return za(n).direction === "rtl" && (a += Qi(e.clientWidth, n.clientWidth) - r), {
3075
3075
  width: r,
3076
3076
  height: i,
3077
3077
  x: a,
3078
3078
  y: o
3079
3079
  };
3080
- }(Ca(e));
3081
- else if (Ta(t)) r = function(e, t) {
3082
- let n = Ya(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ka(e);
3080
+ }(wa(e));
3081
+ else if (Ea(t)) r = function(e, t) {
3082
+ let n = Xa(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = qa(e);
3083
3083
  return {
3084
3084
  width: e.clientWidth * a.x,
3085
3085
  height: e.clientHeight * a.y,
@@ -3088,7 +3088,7 @@ function Qa(e, t, n) {
3088
3088
  };
3089
3089
  }(t, n);
3090
3090
  else {
3091
- let n = Ja(e);
3091
+ let n = Ya(e);
3092
3092
  r = {
3093
3093
  x: t.x - n.x,
3094
3094
  y: t.y - n.y,
@@ -3096,29 +3096,29 @@ function Qa(e, t, n) {
3096
3096
  height: t.height
3097
3097
  };
3098
3098
  }
3099
- return ga(r);
3099
+ return _a(r);
3100
3100
  }
3101
- function $a(e, t) {
3101
+ function eo(e, t) {
3102
3102
  let n = t.get(e);
3103
3103
  if (n) return n;
3104
- let r = Ha(e, [], !1).filter((e) => Ta(e) && xa(e) !== "body"), i = null, a = Ra(e).position === "fixed", o = a ? Ba(e) : e;
3105
- for (; Ta(o) && !La(o);) {
3106
- let e = Ra(o), t = Fa(o), n = i ? i.position : a ? "fixed" : "";
3107
- t || n !== "fixed" && (n !== "absolute" || e.position !== "static") ? i = e : r = r.filter((e) => e !== o), o = Ba(o);
3104
+ let r = Ua(e, [], !1).filter((e) => Ea(e) && Sa(e) !== "body"), i = null, a = za(e).position === "fixed", o = a ? Va(e) : e;
3105
+ for (; Ea(o) && !Ra(o);) {
3106
+ let e = za(o), t = Ia(o), n = i ? i.position : a ? "fixed" : "";
3107
+ t || n !== "fixed" && (n !== "absolute" || e.position !== "static") ? i = e : r = r.filter((e) => e !== o), o = Va(o);
3108
3108
  }
3109
3109
  return t.set(e, r), r;
3110
3110
  }
3111
- function eo(e, t, n) {
3112
- let r = Ea(t), i = Ca(t), a = n === "fixed", o = Ya(e, !0, a, t), s = {
3111
+ function to(e, t, n) {
3112
+ let r = Da(t), i = wa(t), a = n === "fixed", o = Xa(e, !0, a, t), s = {
3113
3113
  scrollLeft: 0,
3114
3114
  scrollTop: 0
3115
- }, c = ea(0);
3116
- if ((r || !a) && ((xa(t) !== "body" || Oa(i)) && (s = za(t)), r)) {
3117
- let e = Ya(t, !0, a, t);
3115
+ }, c = ta(0);
3116
+ if ((r || !a) && ((Sa(t) !== "body" || ka(i)) && (s = Ba(t)), r)) {
3117
+ let e = Xa(t, !0, a, t);
3118
3118
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
3119
3119
  }
3120
- !r && i && (c.x = Xa(i));
3121
- let l = !i || r || a ? ea(0) : Za(i, s);
3120
+ !r && i && (c.x = Za(i));
3121
+ let l = !i || r || a ? ta(0) : Qa(i, s);
3122
3122
  return {
3123
3123
  x: o.left + s.scrollLeft - c.x - l.x,
3124
3124
  y: o.top + s.scrollTop - c.y - l.y,
@@ -3126,51 +3126,51 @@ function eo(e, t, n) {
3126
3126
  height: o.height
3127
3127
  };
3128
3128
  }
3129
- function to(e) {
3130
- return Ra(e).position === "static";
3129
+ function no(e) {
3130
+ return za(e).position === "static";
3131
3131
  }
3132
- function no(e, t) {
3133
- if (!Ea(e) || Ra(e).position === "fixed") return null;
3132
+ function ro(e, t) {
3133
+ if (!Da(e) || za(e).position === "fixed") return null;
3134
3134
  if (t) return t(e);
3135
3135
  let n = e.offsetParent;
3136
- return Ca(e) === n && (n = n.ownerDocument.body), n;
3137
- }
3138
- function ro(e, t) {
3139
- let n = Sa(e);
3140
- if (Aa(e)) return n;
3141
- if (!Ea(e)) {
3142
- let t = Ba(e);
3143
- for (; t && !La(t);) {
3144
- if (Ta(t) && !to(t)) return t;
3145
- t = Ba(t);
3136
+ return wa(e) === n && (n = n.ownerDocument.body), n;
3137
+ }
3138
+ function io(e, t) {
3139
+ let n = Ca(e);
3140
+ if (ja(e)) return n;
3141
+ if (!Da(e)) {
3142
+ let t = Va(e);
3143
+ for (; t && !Ra(t);) {
3144
+ if (Ea(t) && !no(t)) return t;
3145
+ t = Va(t);
3146
3146
  }
3147
3147
  return n;
3148
3148
  }
3149
- let r = no(e, t);
3150
- for (; r && ka(r) && to(r);) r = no(r, t);
3151
- return r && La(r) && to(r) && !Fa(r) ? n : r || function(e) {
3152
- let t = Ba(e);
3153
- for (; Ea(t) && !La(t);) {
3154
- if (Fa(t)) return t;
3155
- if (Aa(t)) return null;
3156
- t = Ba(t);
3149
+ let r = ro(e, t);
3150
+ for (; r && Aa(r) && no(r);) r = ro(r, t);
3151
+ return r && Ra(r) && no(r) && !Ia(r) ? n : r || function(e) {
3152
+ let t = Va(e);
3153
+ for (; Da(t) && !Ra(t);) {
3154
+ if (Ia(t)) return t;
3155
+ if (ja(t)) return null;
3156
+ t = Va(t);
3157
3157
  }
3158
3158
  return null;
3159
3159
  }(e) || n;
3160
3160
  }
3161
- var io = {
3161
+ var ao = {
3162
3162
  convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
3163
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Ca(r), s = !!t && Aa(t.floating);
3163
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = wa(r), s = !!t && ja(t.floating);
3164
3164
  if (r === o || s && a) return n;
3165
3165
  let c = {
3166
3166
  scrollLeft: 0,
3167
3167
  scrollTop: 0
3168
- }, l = ea(1), u = ea(0), d = Ea(r);
3169
- if ((d || !a) && ((xa(r) !== "body" || Oa(o)) && (c = za(r)), d)) {
3170
- let e = Ya(r);
3171
- l = Ka(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
3168
+ }, l = ta(1), u = ta(0), d = Da(r);
3169
+ if ((d || !a) && ((Sa(r) !== "body" || ka(o)) && (c = Ba(r)), d)) {
3170
+ let e = Xa(r);
3171
+ l = qa(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
3172
3172
  }
3173
- let f = !o || d || a ? ea(0) : Za(o, c);
3173
+ let f = !o || d || a ? ta(0) : Qa(o, c);
3174
3174
  return {
3175
3175
  width: n.width * l.x,
3176
3176
  height: n.height * l.y,
@@ -3178,12 +3178,12 @@ var io = {
3178
3178
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
3179
3179
  };
3180
3180
  },
3181
- getDocumentElement: Ca,
3181
+ getDocumentElement: wa,
3182
3182
  getClippingRect: function(e) {
3183
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Aa(t) ? [] : $a(t, this._c) : [].concat(n), r], o = Qa(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
3183
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ja(t) ? [] : eo(t, this._c) : [].concat(n), r], o = $a(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
3184
3184
  for (let e = 1; e < a.length; e++) {
3185
- let n = Qa(t, a[e], i);
3186
- s = Zi(n.top, s), c = Xi(n.right, c), l = Xi(n.bottom, l), u = Zi(n.left, u);
3185
+ let n = $a(t, a[e], i);
3186
+ s = Qi(n.top, s), c = Zi(n.right, c), l = Zi(n.bottom, l), u = Qi(n.left, u);
3187
3187
  }
3188
3188
  return {
3189
3189
  width: c - u,
@@ -3192,11 +3192,11 @@ var io = {
3192
3192
  y: s
3193
3193
  };
3194
3194
  },
3195
- getOffsetParent: ro,
3195
+ getOffsetParent: io,
3196
3196
  getElementRects: async function(e) {
3197
- let t = this.getOffsetParent || ro, n = this.getDimensions, r = await n(e.floating);
3197
+ let t = this.getOffsetParent || io, n = this.getDimensions, r = await n(e.floating);
3198
3198
  return {
3199
- reference: eo(e.reference, await t(e.floating), e.strategy),
3199
+ reference: to(e.reference, await t(e.floating), e.strategy),
3200
3200
  floating: {
3201
3201
  x: 0,
3202
3202
  y: 0,
@@ -3209,29 +3209,29 @@ var io = {
3209
3209
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
3210
3210
  },
3211
3211
  getDimensions: function(e) {
3212
- let { width: t, height: n } = Wa(e);
3212
+ let { width: t, height: n } = Ga(e);
3213
3213
  return {
3214
3214
  width: t,
3215
3215
  height: n
3216
3216
  };
3217
3217
  },
3218
- getScale: Ka,
3219
- isElement: Ta,
3218
+ getScale: qa,
3219
+ isElement: Ea,
3220
3220
  isRTL: function(e) {
3221
- return Ra(e).direction === "rtl";
3221
+ return za(e).direction === "rtl";
3222
3222
  }
3223
3223
  };
3224
- function ao(e, t) {
3224
+ function oo(e, t) {
3225
3225
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
3226
3226
  }
3227
- function oo(e, t, n, r) {
3227
+ function so(e, t, n, r) {
3228
3228
  r === void 0 && (r = {});
3229
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ga(e), u = i || a ? [...l ? Ha(l) : [], ...t ? Ha(t) : []] : [];
3229
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ka(e), u = i || a ? [...l ? Ua(l) : [], ...t ? Ua(t) : []] : [];
3230
3230
  u.forEach((e) => {
3231
3231
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
3232
3232
  });
3233
3233
  let d = l && s ? function(e, t, n) {
3234
- let r, i = null, a = Ca(e);
3234
+ let r, i = null, a = wa(e);
3235
3235
  function o() {
3236
3236
  var e;
3237
3237
  clearTimeout(r), (e = i) == null || e.disconnect(), i = null;
@@ -3241,12 +3241,12 @@ function oo(e, t, n, r) {
3241
3241
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
3242
3242
  if (n || t(), !f || !p) return;
3243
3243
  let m = {
3244
- rootMargin: -$i(d) + "px " + -$i(a.clientWidth - (u + f)) + "px " + -$i(a.clientHeight - (d + p)) + "px " + -$i(u) + "px",
3245
- threshold: Zi(0, Xi(1, c)) || 1
3244
+ rootMargin: -ea(d) + "px " + -ea(a.clientWidth - (u + f)) + "px " + -ea(a.clientHeight - (d + p)) + "px " + -ea(u) + "px",
3245
+ threshold: Qi(0, Zi(1, c)) || 1
3246
3246
  }, h = !0;
3247
3247
  function g(t) {
3248
3248
  let n = t[0].intersectionRatio;
3249
- if (!ao(l, e.getBoundingClientRect())) return s();
3249
+ if (!oo(l, e.getBoundingClientRect())) return s();
3250
3250
  if (n !== c) {
3251
3251
  if (!h) return s();
3252
3252
  n ? s(!1, n) : r = setTimeout(() => {
@@ -3265,7 +3265,7 @@ function oo(e, t, n, r) {
3265
3265
  }
3266
3266
  i.observe(e);
3267
3267
  }
3268
- let c = Sa(e), l = () => s(n);
3268
+ let c = Ca(e), l = () => s(n);
3269
3269
  return c.addEventListener("resize", l), s(!0), () => {
3270
3270
  c.removeEventListener("resize", l), o();
3271
3271
  };
@@ -3277,10 +3277,10 @@ function oo(e, t, n, r) {
3277
3277
  (e = m) == null || e.observe(t);
3278
3278
  })), n();
3279
3279
  }), l && !c && m.observe(l), t && m.observe(t));
3280
- let h = c ? Ya(e) : null;
3280
+ let h = c ? Xa(e) : null;
3281
3281
  return c && function t() {
3282
- let r = Ya(e);
3283
- h && !ao(h, r) && n(), h = r, f = requestAnimationFrame(t);
3282
+ let r = Xa(e);
3283
+ h && !oo(h, r) && n(), h = r, f = requestAnimationFrame(t);
3284
3284
  }(), n(), () => {
3285
3285
  var e;
3286
3286
  u.forEach((e) => {
@@ -3288,14 +3288,14 @@ function oo(e, t, n, r) {
3288
3288
  }), d?.(), (e = m) == null || e.disconnect(), m = null, c && cancelAnimationFrame(f);
3289
3289
  };
3290
3290
  }
3291
- var so = function(e) {
3291
+ var co = function(e) {
3292
3292
  return e === void 0 && (e = 0), {
3293
3293
  name: "offset",
3294
3294
  options: e,
3295
3295
  async fn(t) {
3296
3296
  var n;
3297
3297
  let { x: r, y: i, placement: a, middlewareData: o } = t, s = await async function(e, t) {
3298
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ra(n), s = ia(n), c = sa(n) === "y", l = ya.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = na(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
3298
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ia(n), s = aa(n), c = ca(n) === "y", l = ba.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = ra(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
3299
3299
  mainAxis: d,
3300
3300
  crossAxis: 0,
3301
3301
  alignmentAxis: null
@@ -3322,7 +3322,7 @@ var so = function(e) {
3322
3322
  };
3323
3323
  }
3324
3324
  };
3325
- }, co = function(e) {
3325
+ }, lo = function(e) {
3326
3326
  return e === void 0 && (e = {}), {
3327
3327
  name: "shift",
3328
3328
  options: e,
@@ -3333,11 +3333,11 @@ var so = function(e) {
3333
3333
  x: t,
3334
3334
  y: n
3335
3335
  };
3336
- } }, ...l } = na(e, t), u = {
3336
+ } }, ...l } = ra(e, t), u = {
3337
3337
  x: n,
3338
3338
  y: r
3339
- }, d = await a.detectOverflow(t, l), f = sa(i), p = aa(f), m = u[p], h = u[f], g = (e, t) => function(e, t, n) {
3340
- return Zi(e, Xi(t, n));
3339
+ }, d = await a.detectOverflow(t, l), f = ca(i), p = oa(f), m = u[p], h = u[f], g = (e, t) => function(e, t, n) {
3340
+ return Qi(e, Zi(t, n));
3341
3341
  }(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
3342
3342
  o && (m = g(p, m)), s && (h = g(f, h));
3343
3343
  let _ = c.fn({
@@ -3358,29 +3358,29 @@ var so = function(e) {
3358
3358
  };
3359
3359
  }
3360
3360
  };
3361
- }, lo = function(e) {
3361
+ }, uo = function(e) {
3362
3362
  return e === void 0 && (e = {}), {
3363
3363
  name: "flip",
3364
3364
  options: e,
3365
3365
  async fn(t) {
3366
3366
  var n;
3367
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = na(e, t);
3367
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = ra(e, t);
3368
3368
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
3369
- let g = ra(r), _ = sa(o), v = ra(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ha(o)] : function(e) {
3370
- let t = ha(e);
3369
+ let g = ia(r), _ = ca(o), v = ia(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ga(o)] : function(e) {
3370
+ let t = ga(e);
3371
3371
  return [
3372
- la(e),
3372
+ ua(e),
3373
3373
  t,
3374
- la(t)
3374
+ ua(t)
3375
3375
  ];
3376
3376
  }(o)), x = p !== "none";
3377
- !d && x && b.push(...ma(o, m, p, y));
3377
+ !d && x && b.push(...ha(o, m, p, y));
3378
3378
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
3379
3379
  if (l && w.push(C[g]), u) {
3380
3380
  let e = function(e, t, n) {
3381
3381
  n === void 0 && (n = !1);
3382
- let r = ia(e), i = ca(e), a = oa(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3383
- return t.reference[a] > t.floating[a] && (o = ha(o)), [o, ha(o)];
3382
+ let r = aa(e), i = la(e), a = sa(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3383
+ return t.reference[a] > t.floating[a] && (o = ga(o)), [o, ga(o)];
3384
3384
  }(r, a, y);
3385
3385
  w.push(C[e[0]], C[e[1]]);
3386
3386
  }
@@ -3389,7 +3389,7 @@ var so = function(e) {
3389
3389
  overflows: w
3390
3390
  }], !w.every((e) => e <= 0)) {
3391
3391
  let e = (i.flip?.index || 0) + 1, t = S[e];
3392
- if (t && (u !== "alignment" || _ === sa(t) || T.every((e) => sa(e.placement) !== _ || e.overflows[0] > 0))) return {
3392
+ if (t && (u !== "alignment" || _ === ca(t) || T.every((e) => ca(e.placement) !== _ || e.overflows[0] > 0))) return {
3393
3393
  data: {
3394
3394
  index: e,
3395
3395
  overflows: T
@@ -3401,7 +3401,7 @@ var so = function(e) {
3401
3401
  case "bestFit": {
3402
3402
  let e = T.filter((e) => {
3403
3403
  if (x) {
3404
- let t = sa(e.placement);
3404
+ let t = ca(e.placement);
3405
3405
  return t === _ || t === "y";
3406
3406
  }
3407
3407
  return !0;
@@ -3416,15 +3416,15 @@ var so = function(e) {
3416
3416
  return {};
3417
3417
  }
3418
3418
  };
3419
- }, uo = function(e) {
3419
+ }, fo = function(e) {
3420
3420
  return e === void 0 && (e = {}), {
3421
3421
  name: "size",
3422
3422
  options: e,
3423
3423
  async fn(t) {
3424
- let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = na(e, t), c = await i.detectOverflow(t, s), l = ra(n), u = ia(n), d = sa(n) === "y", { width: f, height: p } = r.floating, m, h;
3424
+ let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = ra(e, t), c = await i.detectOverflow(t, s), l = ia(n), u = aa(n), d = ca(n) === "y", { width: f, height: p } = r.floating, m, h;
3425
3425
  l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
3426
- let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = Xi(p - c[m], g), y = Xi(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
3427
- b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * Zi(c.left, c.right) : S = p - 2 * Zi(c.top, c.bottom)), await o({
3426
+ let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = Zi(p - c[m], g), y = Zi(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
3427
+ b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * Qi(c.left, c.right) : S = p - 2 * Qi(c.top, c.bottom)), await o({
3428
3428
  ...t,
3429
3429
  availableWidth: C,
3430
3430
  availableHeight: S
@@ -3433,21 +3433,21 @@ var so = function(e) {
3433
3433
  return f !== w.width || p !== w.height ? { reset: { rects: !0 } } : {};
3434
3434
  }
3435
3435
  };
3436
- }, fo = (e, t, n) => {
3436
+ }, po = (e, t, n) => {
3437
3437
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
3438
- ...io,
3438
+ ...ao,
3439
3439
  ...i.platform,
3440
3440
  _c: r
3441
3441
  };
3442
3442
  return (async (e, t, n) => {
3443
3443
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
3444
3444
  ...o,
3445
- detectOverflow: va
3445
+ detectOverflow: ya
3446
3446
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
3447
3447
  reference: e,
3448
3448
  floating: t,
3449
3449
  strategy: i
3450
- }), { x: u, y: d } = _a(l, r, c), f = r, p = 0, m = {};
3450
+ }), { x: u, y: d } = va(l, r, c), f = r, p = 0, m = {};
3451
3451
  for (let n = 0; n < a.length; n++) {
3452
3452
  let h = a[n];
3453
3453
  if (!h) continue;
@@ -3472,7 +3472,7 @@ var so = function(e) {
3472
3472
  reference: e,
3473
3473
  floating: t,
3474
3474
  strategy: i
3475
- }) : x.rects), {x: u, y: d} = _a(l, f, c)), n = -1);
3475
+ }) : x.rects), {x: u, y: d} = va(l, f, c)), n = -1);
3476
3476
  }
3477
3477
  return {
3478
3478
  x: u,
@@ -3485,8 +3485,8 @@ var so = function(e) {
3485
3485
  ...i,
3486
3486
  platform: a
3487
3487
  });
3488
- }, po = typeof document < "u" ? j : function() {};
3489
- function mo(e, t) {
3488
+ }, mo = typeof document < "u" ? j : function() {};
3489
+ function ho(e, t) {
3490
3490
  if (e === t) return !0;
3491
3491
  if (typeof e != typeof t) return !1;
3492
3492
  if (typeof e == "function" && e.toString() === t.toString()) return !0;
@@ -3494,87 +3494,90 @@ function mo(e, t) {
3494
3494
  if (e && t && typeof e == "object") {
3495
3495
  if (Array.isArray(e)) {
3496
3496
  if (n = e.length, n !== t.length) return !1;
3497
- for (r = n; r-- !== 0;) if (!mo(e[r], t[r])) return !1;
3497
+ for (r = n; r-- !== 0;) if (!ho(e[r], t[r])) return !1;
3498
3498
  return !0;
3499
3499
  }
3500
3500
  if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
3501
3501
  for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
3502
3502
  for (r = n; r-- !== 0;) {
3503
3503
  let n = i[r];
3504
- if ((n !== "_owner" || !e.$$typeof) && !mo(e[n], t[n])) return !1;
3504
+ if ((n !== "_owner" || !e.$$typeof) && !ho(e[n], t[n])) return !1;
3505
3505
  }
3506
3506
  return !0;
3507
3507
  }
3508
3508
  return e != e && t != t;
3509
3509
  }
3510
- function ho(e) {
3510
+ function go(e) {
3511
3511
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3512
3512
  }
3513
- function go(e, t) {
3514
- let n = ho(e);
3513
+ function _o(e, t) {
3514
+ let n = go(e);
3515
3515
  return Math.round(t * n) / n;
3516
3516
  }
3517
- function _o(e) {
3517
+ function vo(e) {
3518
3518
  let t = g.useRef(e);
3519
- return po(() => {
3519
+ return mo(() => {
3520
3520
  t.current = e;
3521
3521
  }), t;
3522
3522
  }
3523
- var vo = (e, t) => {
3524
- let n = so(e);
3523
+ var yo = (e, t) => {
3524
+ let n = co(e);
3525
3525
  return {
3526
3526
  name: n.name,
3527
3527
  fn: n.fn,
3528
3528
  options: [e, t]
3529
3529
  };
3530
- }, yo = (e, t) => {
3531
- let n = lo(e);
3530
+ }, bo = (e, t) => {
3531
+ let n = uo(e);
3532
3532
  return {
3533
3533
  name: n.name,
3534
3534
  fn: n.fn,
3535
3535
  options: [e, t]
3536
3536
  };
3537
- }, bo = (e, t) => {
3538
- let n = uo(e);
3537
+ }, xo = (e, t) => {
3538
+ let n = fo(e);
3539
3539
  return {
3540
3540
  name: n.name,
3541
3541
  fn: n.fn,
3542
3542
  options: [e, t]
3543
3543
  };
3544
- }, xo = "_float-popper_1z06c_1", So = "_float-popper-grow_1z06c_14", Co = "_entered_1z06c_22", wo = [0, 2], To = (e) => {
3544
+ }, So = (e) => {
3545
+ let t = e?.ownerDocument, n = E((e) => {
3546
+ if (!t || typeof MutationObserver > "u") return () => {};
3547
+ let n = new MutationObserver(e);
3548
+ return n.observe(t.documentElement, {
3549
+ attributes: !0,
3550
+ subtree: !0,
3551
+ attributeFilter: [Ni, Pi]
3552
+ }), () => n.disconnect();
3553
+ }, [t]), r = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [i, a] = I(n, r, r).split("\n"), o = {};
3554
+ return i && (o[Ni] = i), a && (o[Pi] = a), o;
3555
+ }, Co = () => {
3556
+ let e = D(Ki), t = Vi();
3557
+ return M(() => {
3558
+ let n = e?.themeScope;
3559
+ return t?.scopeClass || t?.mode ? {
3560
+ classes: t?.scopeClass ? [...n?.classes ?? [], t.scopeClass] : n?.classes,
3561
+ surface: n?.surface,
3562
+ mode: n?.mode ?? t?.mode
3563
+ } : n;
3564
+ }, [
3565
+ e?.themeScope,
3566
+ t?.scopeClass,
3567
+ t?.mode
3568
+ ]);
3569
+ }, wo = "_float-popper_1z06c_1", To = "_float-popper-grow_1z06c_14", Eo = "_entered_1z06c_22", Do = [0, 2], Oo = (e) => {
3545
3570
  let t = typeof e == "function" ? e() : e;
3546
3571
  if (!t) return null;
3547
3572
  if (t.nodeType === 1) return t;
3548
3573
  let n = t.contextElement;
3549
3574
  return n && n.nodeType === 1 ? n : null;
3550
- }, Eo = T(S((e, t) => {
3551
- let { open: n, children: r, label: a, offsets: o = wo, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, boundary: d, shift: f = !1, transition: p = !0, container: m, zIndex: h, strategy: _ = "absolute", themeFrom: v = "provider", followAnchor: y = !1, style: b, className: x, onMount: S, onOpening: C, onOpen: w, onClosing: T, onClose: D, ...k } = e;
3575
+ }, ko = T(S((e, t) => {
3576
+ let { open: n, children: r, label: a, offsets: o = Do, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, boundary: d, shift: f = !1, transition: p = !0, container: m, zIndex: h, strategy: _ = "absolute", themeFrom: v = "provider", followAnchor: y = !1, style: b, className: x, onMount: S, onOpening: C, onOpen: w, onClosing: T, onClose: D, ...k } = e;
3552
3577
  if (Array.isArray(r)) throw Error("children can not be an array");
3553
- let j = Y(S ?? (() => {}), [S]), N = Y(C ?? (() => {}), [C]), ee = Y(w ?? (() => {}), [w]), te = Y(T ?? (() => {}), [T]), ne = Y(D ?? (() => {}), [D]), [R, z] = F(!1), [V, H] = F(!1), [U, W] = F(!1), [ie, ae] = F(), [G, oe] = F(), se = P(null), ce = P(null), { getPortalContainer: le } = jn(), ue = qi(), de = Bi(), fe = M(() => {
3554
- let e = ue?.themeScope;
3555
- return de?.scopeClass || de?.mode ? {
3556
- classes: de?.scopeClass ? [...e?.classes ?? [], de.scopeClass] : e?.classes,
3557
- surface: e?.surface,
3558
- mode: e?.mode ?? de?.mode
3559
- } : e;
3560
- }, [
3561
- ue?.themeScope,
3562
- de?.scopeClass,
3563
- de?.mode
3564
- ]), pe = ((e) => {
3565
- let t = e?.ownerDocument, n = E((e) => {
3566
- if (!t || typeof MutationObserver > "u") return () => {};
3567
- let n = new MutationObserver(e);
3568
- return n.observe(t.documentElement, {
3569
- attributes: !0,
3570
- subtree: !0,
3571
- attributeFilter: [Mi, Ni]
3572
- }), () => n.disconnect();
3573
- }, [t]), r = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [i, a] = I(n, r, r).split("\n"), o = {};
3574
- return i && (o[Mi] = i), a && (o[Ni] = a), o;
3575
- })(c ? null : To(s)), me = P(d);
3576
- me.current = d;
3577
- let K = !!d, q = f ? typeof f == "object" ? f.padding ?? 0 : 0 : null, { mainAxis: he, crossAxis: ge, alignmentAxis: J } = Array.isArray(o) ? {
3578
+ let j = Y(S ?? (() => {}), [S]), N = Y(C ?? (() => {}), [C]), I = Y(w ?? (() => {}), [w]), ee = Y(T ?? (() => {}), [T]), te = Y(D ?? (() => {}), [D]), [R, z] = F(!1), [B, H] = F(!1), [U, W] = F(!1), [re, ie] = F(), [ae, G] = F(), oe = P(null), se = P(null), { getPortalContainer: ce } = jn(), le = Co(), ue = So(c ? null : Oo(s)), de = P(d);
3579
+ de.current = d;
3580
+ let fe = !!d, pe = f ? typeof f == "object" ? f.padding ?? 0 : 0 : null, { mainAxis: me, crossAxis: K, alignmentAxis: q } = Array.isArray(o) ? {
3578
3581
  mainAxis: o[1] ?? 0,
3579
3582
  crossAxis: o[0] ?? 0,
3580
3583
  alignmentAxis: void 0
@@ -3582,14 +3585,14 @@ var vo = (e, t) => {
3582
3585
  mainAxis: o.mainAxis ?? 0,
3583
3586
  crossAxis: o.crossAxis ?? 0,
3584
3587
  alignmentAxis: o.alignmentAxis
3585
- }, _e = M(() => {
3586
- let e = () => me.current?.(), t = [vo({
3587
- mainAxis: he,
3588
- crossAxis: ge,
3589
- alignmentAxis: J
3590
- }), yo(K ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
3591
- if (q !== null && t.push(((e, t) => {
3592
- let n = co(e);
3588
+ }, he = M(() => {
3589
+ let e = () => de.current?.(), t = [yo({
3590
+ mainAxis: me,
3591
+ crossAxis: K,
3592
+ alignmentAxis: q
3593
+ }), bo(fe ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
3594
+ if (pe !== null && t.push(((e, t) => {
3595
+ let n = lo(e);
3593
3596
  return {
3594
3597
  name: n.name,
3595
3598
  fn: n.fn,
@@ -3597,15 +3600,15 @@ var vo = (e, t) => {
3597
3600
  };
3598
3601
  })(() => ({
3599
3602
  boundary: e(),
3600
- padding: q
3603
+ padding: pe
3601
3604
  }))), u) {
3602
3605
  let n = ({ availableHeight: e, availableWidth: t }) => {
3603
3606
  let n = Math.max(0, Math.round(e - 10));
3604
- ae((e) => e === n ? e : n);
3607
+ ie((e) => e === n ? e : n);
3605
3608
  let r = Math.max(0, Math.round(t - 10));
3606
- oe((e) => e === r ? e : r);
3609
+ G((e) => e === r ? e : r);
3607
3610
  };
3608
- t.push(bo(K ? () => ({
3611
+ t.push(xo(fe ? () => ({
3609
3612
  boundary: e(),
3610
3613
  apply: n
3611
3614
  }) : {
@@ -3616,21 +3619,21 @@ var vo = (e, t) => {
3616
3619
  return t;
3617
3620
  }, [
3618
3621
  u,
3619
- he,
3620
- ge,
3621
- J,
3622
+ me,
3622
3623
  K,
3623
- q
3624
- ]), ve = M(() => ({
3624
+ q,
3625
+ fe,
3626
+ pe
3627
+ ]), ge = M(() => ({
3625
3628
  getBoundingClientRect: () => {
3626
3629
  if (c) return new DOMRect(c.left || 0, c.top || 0, 0, 0);
3627
3630
  let e = ((typeof s == "function" ? s() : s) ?? null)?.getBoundingClientRect?.();
3628
- return e && (e.width || e.height || e.x || e.y) ? (ce.current = e, e) : ce.current ?? new DOMRect(0, 0, 0, 0);
3631
+ return e && (e.width || e.height || e.x || e.y) ? (se.current = e, e) : se.current ?? new DOMRect(0, 0, 0, 0);
3629
3632
  },
3630
3633
  get contextElement() {
3631
- if (!c) return To(s) ?? void 0;
3634
+ if (!c) return Oo(s) ?? void 0;
3632
3635
  }
3633
- }), [c, s]), { refs: ye, floatingStyles: be, isPositioned: xe, placement: Se, update: Ce } = function(e) {
3636
+ }), [c, s]), { refs: J, floatingStyles: _e, isPositioned: ve, placement: ye, update: be } = function(e) {
3634
3637
  e === void 0 && (e = {});
3635
3638
  let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: o } = {}, transform: s = !0, whileElementsMounted: c, open: l } = e, [u, d] = g.useState({
3636
3639
  x: 0,
@@ -3640,24 +3643,24 @@ var vo = (e, t) => {
3640
3643
  middlewareData: {},
3641
3644
  isPositioned: !1
3642
3645
  }), [f, p] = g.useState(r);
3643
- mo(f, r) || p(r);
3646
+ ho(f, r) || p(r);
3644
3647
  let [m, h] = g.useState(null), [_, v] = g.useState(null), y = g.useCallback((e) => {
3645
3648
  e !== C.current && (C.current = e, h(e));
3646
3649
  }, []), b = g.useCallback((e) => {
3647
3650
  e !== w.current && (w.current = e, v(e));
3648
- }, []), x = a || m, S = o || _, C = g.useRef(null), w = g.useRef(null), T = g.useRef(u), E = c != null, D = _o(c), O = _o(i), k = _o(l), A = g.useCallback(() => {
3651
+ }, []), x = a || m, S = o || _, C = g.useRef(null), w = g.useRef(null), T = g.useRef(u), E = c != null, D = vo(c), O = vo(i), k = vo(l), A = g.useCallback(() => {
3649
3652
  if (!C.current || !w.current) return;
3650
3653
  let e = {
3651
3654
  placement: t,
3652
3655
  strategy: n,
3653
3656
  middleware: f
3654
3657
  };
3655
- O.current && (e.platform = O.current), fo(C.current, w.current, e).then((e) => {
3658
+ O.current && (e.platform = O.current), po(C.current, w.current, e).then((e) => {
3656
3659
  let t = {
3657
3660
  ...e,
3658
3661
  isPositioned: !1 !== k.current
3659
3662
  };
3660
- j.current && !mo(T.current, t) && (T.current = t, re.flushSync(() => {
3663
+ j.current && !ho(T.current, t) && (T.current = t, ne.flushSync(() => {
3661
3664
  d(t);
3662
3665
  }));
3663
3666
  });
@@ -3668,16 +3671,16 @@ var vo = (e, t) => {
3668
3671
  O,
3669
3672
  k
3670
3673
  ]);
3671
- po(() => {
3674
+ mo(() => {
3672
3675
  !1 === l && T.current.isPositioned && (T.current.isPositioned = !1, d((e) => ({
3673
3676
  ...e,
3674
3677
  isPositioned: !1
3675
3678
  })));
3676
3679
  }, [l]);
3677
3680
  let j = g.useRef(!1);
3678
- po(() => (j.current = !0, () => {
3681
+ mo(() => (j.current = !0, () => {
3679
3682
  j.current = !1;
3680
- }), []), po(() => {
3683
+ }), []), mo(() => {
3681
3684
  if (x && (C.current = x), S && (w.current = S), x && S) {
3682
3685
  if (D.current) return D.current(x, S, A);
3683
3686
  A();
@@ -3704,11 +3707,11 @@ var vo = (e, t) => {
3704
3707
  top: 0
3705
3708
  };
3706
3709
  if (!N.floating) return e;
3707
- let t = go(N.floating, u.x), r = go(N.floating, u.y);
3710
+ let t = _o(N.floating, u.x), r = _o(N.floating, u.y);
3708
3711
  return s ? {
3709
3712
  ...e,
3710
3713
  transform: "translate(" + t + "px, " + r + "px)",
3711
- ...ho(N.floating) >= 1.5 && { willChange: "transform" }
3714
+ ...go(N.floating) >= 1.5 && { willChange: "transform" }
3712
3715
  } : {
3713
3716
  position: n,
3714
3717
  left: t,
@@ -3737,81 +3740,81 @@ var vo = (e, t) => {
3737
3740
  }({
3738
3741
  placement: l,
3739
3742
  strategy: _,
3740
- middleware: _e,
3741
- whileElementsMounted: M(() => y ? (e, t, n) => oo(e, t, n, { animationFrame: !0 }) : oo, [y]),
3742
- elements: { reference: ve }
3743
- }), we = E((e) => {
3744
- se.current = e, ye.setFloating(e);
3745
- }, [ye]);
3743
+ middleware: he,
3744
+ whileElementsMounted: M(() => y ? (e, t, n) => so(e, t, n, { animationFrame: !0 }) : so, [y]),
3745
+ elements: { reference: ge }
3746
+ }), xe = E((e) => {
3747
+ oe.current = e, J.setFloating(e);
3748
+ }, [J]);
3746
3749
  A(t, () => ({
3747
- instance: () => se.current ? { update: Ce } : null,
3748
- element: () => se.current
3749
- }), [Ce]), O(() => {
3750
+ instance: () => oe.current ? { update: be } : null,
3751
+ element: () => oe.current
3752
+ }), [be]), O(() => {
3750
3753
  n && z(!0);
3751
3754
  }, [n]), O(() => {
3752
- R && xe && !V && (H(!0), j?.(se.current, { update: Ce }));
3755
+ R && ve && !B && (H(!0), j?.(oe.current, { update: be }));
3753
3756
  }, [
3754
3757
  R,
3755
- xe,
3756
- V
3758
+ ve,
3759
+ B
3757
3760
  ]), O(() => {
3758
- n && V ? N?.() : !n && R && te?.();
3759
- }, [n, V]), O(() => {
3760
- if (R && V && n) {
3761
- if (!p) return W(!0), void ee?.();
3761
+ n && B ? N?.() : !n && R && ee?.();
3762
+ }, [n, B]), O(() => {
3763
+ if (R && B && n) {
3764
+ if (!p) return W(!0), void I?.();
3762
3765
  let e = requestAnimationFrame(() => W(!0));
3763
3766
  return () => cancelAnimationFrame(e);
3764
3767
  }
3765
3768
  }, [
3766
3769
  R,
3767
- V,
3770
+ B,
3768
3771
  n,
3769
3772
  p
3770
3773
  ]), O(() => {
3771
- !n && R && (W(!1), z(!1), H(!1), ne?.());
3774
+ !n && R && (W(!1), z(!1), H(!1), te?.());
3772
3775
  }, [n, R]);
3773
- let Te = Y((e) => {
3774
- e.target === e.currentTarget && n && U && ee?.();
3776
+ let Se = Y((e) => {
3777
+ e.target === e.currentTarget && n && U && I?.();
3775
3778
  }, [n, U]);
3776
3779
  if (!R) return null;
3777
- let Ee = (Se ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: De, attrs: Oe } = Ji(fe), ke;
3778
- ke = v === "anchor" ? {
3779
- ...Oe,
3780
- ...pe
3781
- } : De || Oe["data-sxl-theme-mode"] || Oe["data-sxl-theme-surface"] ? Oe : pe;
3782
- let Ae = h ?? _i("popup"), je = r || i.EmptyArray;
3783
- return B(L("div", {
3784
- ref: we,
3785
- className: X(xo, x, De),
3780
+ let Ce = (ye ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: we, attrs: Te } = Yi(le), Ee;
3781
+ Ee = v === "anchor" ? {
3782
+ ...Te,
3783
+ ...ue
3784
+ } : we || Te["data-sxl-theme-mode"] || Te["data-sxl-theme-surface"] ? Te : ue;
3785
+ let De = h ?? vi("popup"), Oe = r || i.EmptyArray;
3786
+ return V(L("div", {
3787
+ ref: xe,
3788
+ className: X(wo, x, we),
3786
3789
  role: void 0,
3787
- ...ke,
3790
+ ...Ee,
3788
3791
  style: {
3789
- ...be,
3790
- maxHeight: u ? ie : void 0,
3791
- maxWidth: u ? G : void 0,
3792
- zIndex: n ? Ae : vi(Ae, -1),
3792
+ ..._e,
3793
+ maxHeight: u ? re : void 0,
3794
+ maxWidth: u ? ae : void 0,
3795
+ zIndex: n ? De : yi(De, -1),
3793
3796
  pointerEvents: R && n ? void 0 : "none",
3794
3797
  ...b
3795
3798
  },
3796
3799
  ...k,
3797
3800
  children: p ? L("div", {
3798
- className: X(So, { [Co]: U }),
3799
- style: { transformOrigin: Ee },
3800
- onTransitionEnd: Te,
3801
- children: je
3802
- }) : je
3803
- }), m ?? le());
3801
+ className: X(To, { [Eo]: U }),
3802
+ style: { transformOrigin: Ce },
3803
+ onTransitionEnd: Se,
3804
+ children: Oe
3805
+ }) : Oe
3806
+ }), m ?? ce());
3804
3807
  }));
3805
- Eo.displayName = "FloatPopper";
3806
- var Do = "_float-popup_juap7_1", Oo = (e) => {
3808
+ ko.displayName = "FloatPopper";
3809
+ var Ao = "_float-popup_juap7_1", jo = (e) => {
3807
3810
  let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, ...s } = e;
3808
3811
  return L("div", {
3809
- className: X("menu", Do, o),
3812
+ className: X("menu", Ao, o),
3810
3813
  ...s,
3811
3814
  children: a
3812
3815
  });
3813
- }, ko = "_float-panel_qj0za_1", Ao = T(S((e, t) => {
3814
- let { floatReference: n, popupContainer: r, renderPopupPanel: i = Oo, children: a, className: o, ...s } = e, c = {
3816
+ }, Mo = "_float-panel_qj0za_1", No = T(S((e, t) => {
3817
+ let { floatReference: n, popupContainer: r, renderPopupPanel: i = jo, children: a, className: o, ...s } = e, c = {
3815
3818
  popupContainer: r,
3816
3819
  floatReference: n,
3817
3820
  children: a,
@@ -3819,19 +3822,19 @@ var Do = "_float-popup_juap7_1", Oo = (e) => {
3819
3822
  };
3820
3823
  return L("div", {
3821
3824
  ref: t,
3822
- className: X(ko, o),
3825
+ className: X(Mo, o),
3823
3826
  tabIndex: 0,
3824
- children: L(ri, {
3827
+ children: L(ii, {
3825
3828
  render: i,
3826
3829
  props: c
3827
3830
  })
3828
3831
  });
3829
3832
  }));
3830
- Ao.displayName = "FloatPanelSurface";
3831
- var jo = T(S((e, t) => {
3832
- let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = Oo, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: f, onOpen: p, children: m, className: h, ...g } = e, _ = Y(u ?? (() => {}), [u]), v = Y(d ?? (() => {}), [d]), y = Y(f ?? (() => {}), [f]), b = Y(p ?? (() => {}), [p]), [x, S] = F(), C = P(null), w = Y((e, t) => {
3833
+ No.displayName = "FloatPanelSurface";
3834
+ var Po = T(S((e, t) => {
3835
+ let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = jo, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: f, onOpen: p, children: m, className: h, ...g } = e, _ = Y(u ?? (() => {}), [u]), v = Y(d ?? (() => {}), [d]), y = Y(f ?? (() => {}), [f]), b = Y(p ?? (() => {}), [p]), [x, S] = F(), C = P(null), w = Y((e, t) => {
3833
3836
  S(e), l?.(C.current, t);
3834
- }, [l]), T = M(() => L(Ao, {
3837
+ }, [l]), T = M(() => L(No, {
3835
3838
  ref: C,
3836
3839
  className: h,
3837
3840
  floatReference: o,
@@ -3845,7 +3848,7 @@ var jo = T(S((e, t) => {
3845
3848
  x,
3846
3849
  o
3847
3850
  ]);
3848
- return L(Eo, {
3851
+ return L(ko, {
3849
3852
  ref: t,
3850
3853
  anchorEl: r,
3851
3854
  anchorPosition: i,
@@ -3860,9 +3863,9 @@ var jo = T(S((e, t) => {
3860
3863
  children: T
3861
3864
  });
3862
3865
  }));
3863
- jo.displayName = "FloatPanel";
3864
- var Mo = (e) => L(jo, { ...e }), No = (e) => {
3865
- let { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: r, themeScopeClass: i, themeSurface: a, themeMode: o, isolate: s, rootRef: c, children: l } = e, u = D(Gi), d = M(() => {
3866
+ Po.displayName = "FloatPanel";
3867
+ var Fo = (e) => L(Po, { ...e }), Io = (e) => {
3868
+ let { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: r, themeScopeClass: i, themeSurface: a, themeMode: o, isolate: s, rootRef: c, children: l } = e, u = D(Ki), d = M(() => {
3866
3869
  let e = u?.themeScope, s = i ? [...e?.classes ?? [], i] : e?.classes, c = a ?? e?.surface, l = o ?? e?.mode, d = s?.length || c || l ? {
3867
3870
  classes: s,
3868
3871
  surface: c,
@@ -3882,11 +3885,11 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3882
3885
  a,
3883
3886
  o,
3884
3887
  u
3885
- ]), f = Qt(), p = L(Gi.Provider, {
3888
+ ]), f = Qt(), p = L(Ki.Provider, {
3886
3889
  value: d,
3887
3890
  children: l
3888
3891
  }), m = s || !f, h = P(null);
3889
- m && h.current === null && (h.current = Ki());
3892
+ m && h.current === null && (h.current = qi());
3890
3893
  let g = m ? h.current : null;
3891
3894
  g && (p = L(Zt, {
3892
3895
  value: g,
@@ -3900,8 +3903,8 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3900
3903
  c.current = null;
3901
3904
  });
3902
3905
  }, [c, _]), p;
3903
- }, Po = (e) => {
3904
- let { anchor: t, autoFocus: n = !0, disableClickAway: r = !1, label: i = null, parentFloat: a = null, onOpen: o, onClose: s, propsPopper: c, renderPopupPanel: l, renderFloatPanel: u } = e ?? {}, d = Y(o ?? (() => {}), [o]), f = Y(s ?? (() => {}), [s]), p = qi(), m = u ?? p?.renderFloatPanel ?? Mo, h = l === void 0 ? p?.renderPopupPanel ?? Oo : l, g = Qt(), [_, v] = F(null), [y, b] = F(!1), [x, S] = F(!1), C = M(() => a ?? g ?? Ki(), []), w = M(() => C.getRoot(), []), T = M(() => ({ label: i }), []), D = P(null), k = P(t);
3906
+ }, Lo = (e) => {
3907
+ let { anchor: t, autoFocus: n = !0, disableClickAway: r = !1, label: i = null, parentFloat: a = null, onOpen: o, onClose: s, propsPopper: c, renderPopupPanel: l, renderFloatPanel: u } = e ?? {}, d = Y(o ?? (() => {}), [o]), f = Y(s ?? (() => {}), [s]), p = Ji(), m = u ?? p?.renderFloatPanel ?? Fo, h = l === void 0 ? p?.renderPopupPanel ?? jo : l, g = Qt(), [_, v] = F(null), [y, b] = F(!1), [x, S] = F(!1), C = M(() => a ?? g ?? qi(), []), w = M(() => C.getRoot(), []), T = M(() => ({ label: i }), []), D = P(null), k = P(t);
3905
3908
  O(() => {
3906
3909
  k.current = t;
3907
3910
  }, [t]);
@@ -3909,7 +3912,7 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3909
3912
  let t = w.floatByParents.get(e), n = null;
3910
3913
  return t && (n = w.statesByMovables.get(t)?.close(0) ?? null), n;
3911
3914
  }, j = () => A(G.key), [I, ee] = F(null), te = () => {
3912
- if (!_) return B(), null;
3915
+ if (!_) return V(), null;
3913
3916
  let e = new Promise((e) => {
3914
3917
  ee((t) => [...t ?? [], { resolve: e }]);
3915
3918
  });
@@ -3925,24 +3928,24 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3925
3928
  x,
3926
3929
  I
3927
3930
  ]);
3928
- let ne = E(() => {
3931
+ let R = E(() => {
3929
3932
  let e = C;
3930
3933
  for (; e.parent;) e = e.parent;
3931
3934
  return A(e.key);
3932
- }, []), R = P(null), re = () => {
3933
- if (_) return void B();
3935
+ }, []), z = P(null), ne = () => {
3936
+ if (_) return void V();
3934
3937
  C && w.statesByMovables.get(C.key)?.open(0);
3935
3938
  let e = w.floatByParents.get(C.key);
3936
3939
  e && e !== T && w.statesByMovables.get(e)?.close(0);
3937
3940
  let t = document.activeElement;
3938
- t && t !== document.body && typeof t.focus == "function" && (R.current = t), requestAnimationFrame(() => {
3941
+ t && t !== document.body && typeof t.focus == "function" && (z.current = t), requestAnimationFrame(() => {
3939
3942
  w.floatByParents.set(C.key, G.key), v(!0);
3940
3943
  });
3941
- }, [z, B] = N((e) => e + 1, 0), V = E((e) => h === null ? null : h({
3942
- closeFloat: W,
3944
+ }, [B, V] = N((e) => e + 1, 0), H = E((e) => h === null ? null : h({
3945
+ closeFloat: re,
3943
3946
  closeFloatAll: ae,
3944
3947
  ...e
3945
- }), [h]), H = h === null, U = Y((e = 120) => w.debounce(e, re, /* @__PURE__ */ new Set([G]), !1)(), [re]), W = Y((e = 60) => w.debounce(e, te, w.descendants(G), !0)(), [te]), ie = Y((e = 360) => w.debounce(e, j, w.descendants(w.getChildRef(G)), !0)(), [j]), ae = Y(ne, [ne]), G = M(() => ({
3948
+ }), [h]), U = h === null, W = Y((e = 120) => w.debounce(e, ne, /* @__PURE__ */ new Set([G]), !1)(), [ne]), re = Y((e = 60) => w.debounce(e, te, w.descendants(G), !0)(), [te]), ie = Y((e = 360) => w.debounce(e, j, w.descendants(w.getChildRef(G)), !0)(), [j]), ae = Y(R, [R]), G = M(() => ({
3946
3949
  key: T,
3947
3950
  isRoot: !1,
3948
3951
  label: i,
@@ -3953,8 +3956,8 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3953
3956
  onChildHidden: () => {
3954
3957
  S(!1);
3955
3958
  },
3956
- open: U,
3957
- close: W,
3959
+ open: W,
3960
+ close: re,
3958
3961
  closeChild: ie,
3959
3962
  closeAll: ae,
3960
3963
  getRoot: () => w,
@@ -3964,22 +3967,22 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3964
3967
  O(() => {
3965
3968
  w.statesByMovables.set(T, G);
3966
3969
  }, [G]), O(() => () => {
3967
- w.statesByMovables.delete(T), W(0);
3970
+ w.statesByMovables.delete(T), re(0);
3968
3971
  }, []), O(() => {
3969
- _ && !H && (b(!0), C.onChildVisible());
3970
- }, [_, H]), O(() => {
3971
- if (_ && !H) return w.addOpenPopup(G);
3972
- }, [_, H]);
3972
+ _ && !U && (b(!0), C.onChildVisible());
3973
+ }, [_, U]), O(() => {
3974
+ if (_ && !U) return w.addOpenPopup(G);
3975
+ }, [_, U]);
3973
3976
  let oe = E((e) => {
3974
- e.which === ue.Escape && (e.preventDefault(), e.stopPropagation(), W(0));
3977
+ e.which === ue.Escape && (e.preventDefault(), e.stopPropagation(), re(0));
3975
3978
  }, []), se = E(() => {
3976
- let e = R.current, t = D.current;
3979
+ let e = z.current, t = D.current;
3977
3980
  e && t && (requestAnimationFrame(() => {
3978
3981
  (t.contains(document.activeElement) || document.activeElement === document.body) && e.focus();
3979
- }), R.current = null), f?.();
3982
+ }), z.current = null), f?.();
3980
3983
  }, []), ce = E((e) => {
3981
3984
  if (D.current = e, e.addEventListener("focusin", (e) => {
3982
- R.current ||= e.relatedTarget;
3985
+ z.current ||= e.relatedTarget;
3983
3986
  }, {
3984
3987
  once: !0,
3985
3988
  passive: !0
@@ -3990,9 +3993,9 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
3990
3993
  });
3991
3994
  }, [n]), [le, de] = F();
3992
3995
  O(() => {
3993
- H && (_ ? d?.() : !1 === _ && f?.()), de(y ? L(Zt, {
3996
+ U && (_ ? d?.() : !1 === _ && f?.()), de(y ? L(Zt, {
3994
3997
  value: G,
3995
- children: L(ri, {
3998
+ children: L(ii, {
3996
3999
  render: m,
3997
4000
  props: {
3998
4001
  ...p?.propsFloatPanel,
@@ -4015,7 +4018,7 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4015
4018
  },
4016
4019
  ...c
4017
4020
  },
4018
- renderPopupPanel: V
4021
+ renderPopupPanel: H
4019
4022
  }
4020
4023
  })
4021
4024
  }) : null);
@@ -4023,12 +4026,12 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4023
4026
  y,
4024
4027
  _,
4025
4028
  i,
4026
- H,
4029
+ U,
4027
4030
  c,
4028
- V,
4031
+ H,
4029
4032
  m,
4030
4033
  p?.propsFloatPanel,
4031
- z
4034
+ B
4032
4035
  ]);
4033
4036
  let fe = Y((e) => {
4034
4037
  if (w.floatByParents.size === 0) return;
@@ -4036,8 +4039,8 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4036
4039
  w.floatByParents.forEach((e) => {
4037
4040
  let n = w.statesByMovables.get(e);
4038
4041
  t || n && (i(n.floatElement()) && (t = !0), i(n.anchorElement()) && (t = !0));
4039
- }), t || typeof r == "function" && r(e.target) || ne();
4040
- }, [ne, r]);
4042
+ }), t || typeof r == "function" && r(e.target) || R();
4043
+ }, [R, r]);
4041
4044
  return O(() => {
4042
4045
  if (!_ || !C.isRoot || !0 === r) return;
4043
4046
  let e = (e) => {
@@ -4055,8 +4058,8 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4055
4058
  reference: G,
4056
4059
  isOpen: !0 === _
4057
4060
  };
4058
- }, Fo = {}, Io = (e) => {
4059
- let { onPointerDown: t, style: n, splitDirection: r, paddingBefore: i = 0, paddingAfter: a = 0, disabled: o, key: s, propsHitArea: c = Fo, ...l } = e, u = r === "row", { style: d, className: f, ...p } = c;
4061
+ }, Ro = {}, zo = (e) => {
4062
+ let { onPointerDown: t, style: n, splitDirection: r, paddingBefore: i = 0, paddingAfter: a = 0, disabled: o, key: s, propsHitArea: c = Ro, ...l } = e, u = r === "row", { style: d, className: f, ...p } = c;
4060
4063
  return L("div", {
4061
4064
  style: {
4062
4065
  ...n,
@@ -4077,15 +4080,15 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4077
4080
  ...p
4078
4081
  })
4079
4082
  }, s);
4080
- }, Lo = {}, Ro = (e, t, n = !0) => e === null ? null : e.pixels === null ? (n ? e.percent : 100 - e.percent) / 100 * t : n ? e.pixels : t - e.pixels, zo = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Bo = (e, t) => {
4083
+ }, Bo = {}, Vo = (e, t, n = !0) => e === null ? null : e.pixels === null ? (n ? e.percent : 100 - e.percent) / 100 * t : n ? e.pixels : t - e.pixels, Ho = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Uo = (e, t) => {
4081
4084
  if (e == null) return null;
4082
4085
  let n = {
4083
4086
  percent: null,
4084
4087
  pixels: null
4085
4088
  }, r = t;
4086
4089
  return typeof e == "string" && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), r = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), r = !0), e = parseFloat(e)), r ? n.percent = e : n.pixels = e, Object.freeze(n);
4087
- }, Vo = T(S((e, t) => {
4088
- let { elementBefore: n, elementAfter: r, splitDirection: i = "row", fixedPane: a = null, position: o, onPositionChange: s, minBefore: c, maxBefore: l, minAfter: u, maxAfter: d, children: f, className: p, style: m, disabled: h = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = Lo, propsPane: b = Lo, propsPaneBefore: x = Lo, propsPaneAfter: S = Lo, renderResizer: w = Io } = e;
4090
+ }, Wo = T(S((e, t) => {
4091
+ let { elementBefore: n, elementAfter: r, splitDirection: i = "row", fixedPane: a = null, position: o, onPositionChange: s, minBefore: c, maxBefore: l, minAfter: u, maxAfter: d, children: f, className: p, style: m, disabled: h = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = Bo, propsPane: b = Bo, propsPaneBefore: x = Bo, propsPaneAfter: S = Bo, renderResizer: w = zo } = e;
4089
4092
  if (f) throw Error("Use elementBefore and elementAfter instead of children.");
4090
4093
  let T = M(() => C(r) && C(n), [r, n]), E = M(() => {
4091
4094
  let e = null;
@@ -4094,21 +4097,21 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4094
4097
  return {
4095
4098
  fixedPaneOffset: e,
4096
4099
  isPercent: t,
4097
- minBefore: Bo(c, t),
4098
- maxBefore: Bo(l, t),
4099
- minAfter: Bo(u, t),
4100
- maxAfter: Bo(d, t)
4100
+ minBefore: Uo(c, t),
4101
+ maxBefore: Uo(l, t),
4102
+ minAfter: Uo(u, t),
4103
+ maxAfter: Uo(d, t)
4101
4104
  };
4102
4105
  }, [
4103
4106
  c,
4104
4107
  l,
4105
4108
  u,
4106
4109
  d
4107
- ]), D = Y(s ?? (() => {}), [s]), [k, A] = F(() => Bo(o, a === null));
4110
+ ]), D = Y(s ?? (() => {}), [s]), [k, A] = F(() => Uo(o, a === null));
4108
4111
  O(() => {
4109
- A(Bo(o, a === null));
4112
+ A(Uo(o, a === null));
4110
4113
  }, [o, a]);
4111
- let [j, { width: N, height: I }] = Br(), [ee, { width: te, height: R }] = Br(), re = i === "row" ? te : R, z = i === "row" ? N : I, B = M(() => ((e, t, n, r) => {
4114
+ let [j, { width: N, height: I }] = Vr(), [ee, { width: te, height: z }] = Vr(), ne = i === "row" ? te : z, B = i === "row" ? N : I, V = M(() => ((e, t, n, r) => {
4112
4115
  let i = [null, null], a = [null, null];
4113
4116
  if (e ||= {
4114
4117
  percent: r.fixedPaneOffset === null ? 50 : null,
@@ -4116,13 +4119,13 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4116
4119
  }, t === 0) return e.pixels !== void 0 && e.pixels !== null ? r.fixedPaneOffset === 1 ? (i[1] = e.pixels - n, a[0] = 100) : (i[0] = e.pixels, a[1] = 100) : e.percent !== void 0 && e.percent !== null && (r.fixedPaneOffset === 1 ? (a[1] = e.percent, a[0] = 100 - e.percent) : (a[0] = e.percent, a[1] = 100 - e.percent)), {
4117
4120
  percents: a,
4118
4121
  pixels: i,
4119
- minBefore: zo(r.minBefore, !0),
4120
- maxBefore: zo(r.maxBefore, !0),
4121
- minAfter: zo(r.minAfter),
4122
- maxAfter: zo(r.maxAfter)
4122
+ minBefore: Ho(r.minBefore, !0),
4123
+ maxBefore: Ho(r.maxBefore, !0),
4124
+ minAfter: Ho(r.minAfter),
4125
+ maxAfter: Ho(r.maxAfter)
4123
4126
  };
4124
- let o = Ro(e, t, r.fixedPaneOffset !== 1) ?? 0, s = t - n, c = Ro(r.minBefore, s, !0) ?? 0, l = Ro(r.maxBefore, s, !0) ?? s, u = 0, d = 0, f = 0, p = s;
4125
- u = (Ro(r.maxAfter, t, !1) ?? n) - n, d = Ro(r.minAfter, t, !1) ?? t, f = Math.max(c, u), p = Math.min(l, d), o = Math.max(f, Math.min(o, p)), d = Math.min(s - o, Ro(r.maxAfter, s - o, !0) ?? s), u = Math.min(s - o, Ro(r.minAfter, s - o, !0) ?? s), i[0] = o, i[1] = s - o;
4127
+ let o = Vo(e, t, r.fixedPaneOffset !== 1) ?? 0, s = t - n, c = Vo(r.minBefore, s, !0) ?? 0, l = Vo(r.maxBefore, s, !0) ?? s, u = 0, d = 0, f = 0, p = s;
4128
+ u = (Vo(r.maxAfter, t, !1) ?? n) - n, d = Vo(r.minAfter, t, !1) ?? t, f = Math.max(c, u), p = Math.min(l, d), o = Math.max(f, Math.min(o, p)), d = Math.min(s - o, Vo(r.maxAfter, s - o, !0) ?? s), u = Math.min(s - o, Vo(r.minAfter, s - o, !0) ?? s), i[0] = o, i[1] = s - o;
4126
4129
  let m = Math.max(0, Math.min(100, o / s * 100));
4127
4130
  return a[0] = m, a[1] = 100 - m, {
4128
4131
  percents: a,
@@ -4132,13 +4135,13 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4132
4135
  maxBefore: `${i[0]}px`,
4133
4136
  maxAfter: `${i[1]}px`
4134
4137
  };
4135
- })(k, z, re, E), [
4138
+ })(k, B, ne, E), [
4136
4139
  E,
4137
4140
  k,
4138
- z,
4139
- re,
4141
+ B,
4142
+ ne,
4140
4143
  i
4141
- ]), [V, H] = F(!1), U = Y(g ?? (() => {}), [g]), W = Y(_ ?? (() => {}), [_]), ie = Y(v ?? (() => {}), [v]), ae = P(null), G = P(null), oe = P(null), { style: se, className: ce, ...le } = b, ue = {
4144
+ ]), [H, U] = F(!1), W = Y(g ?? (() => {}), [g]), re = Y(_ ?? (() => {}), [_]), ie = Y(v ?? (() => {}), [v]), ae = P(null), G = P(null), oe = P(null), { style: se, className: ce, ...le } = b, ue = {
4142
4145
  minWidth: 0,
4143
4146
  minHeight: 0,
4144
4147
  maxWidth: "100%",
@@ -4156,28 +4159,28 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4156
4159
  flexDirection: i,
4157
4160
  display: "flex"
4158
4161
  }, { className: ge, style: J, onPointerDown: _e, ...ve } = y, ye = Y((e) => {
4159
- let t = Bo(e, a === null);
4162
+ let t = Uo(e, a === null);
4160
4163
  A(t);
4161
4164
  }, [a]), be = Y((e) => {
4162
- if (h || !V) return;
4165
+ if (h || !H) return;
4163
4166
  let t = Ce.current?.getBoundingClientRect(), n = 0;
4164
- n = i === "row" ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(z, n)), E.fixedPaneOffset === 1 && (n = z - n), o && k?.pixels === n || A({
4167
+ n = i === "row" ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(B, n)), E.fixedPaneOffset === 1 && (n = B - n), o && k?.pixels === n || A({
4165
4168
  pixels: n,
4166
4169
  percent: null
4167
- }), W?.(n), e.stopPropagation(), e.preventDefault();
4170
+ }), re?.(n), e.stopPropagation(), e.preventDefault();
4168
4171
  }, [
4169
4172
  E,
4170
4173
  i,
4171
4174
  h,
4172
- V,
4175
+ H,
4173
4176
  k,
4174
- z
4177
+ B
4175
4178
  ]), xe = Y((e) => {
4176
- if (document.removeEventListener("pointermove", be), document.removeEventListener("touchmove", be), document.removeEventListener("pointerup", xe), V && (H(!1), k)) {
4177
- if (ie(k.pixels ?? 0), !Bo(o, a === null) || k.pixels !== o) {
4179
+ if (document.removeEventListener("pointermove", be), document.removeEventListener("touchmove", be), document.removeEventListener("pointerup", xe), H && (U(!1), k)) {
4180
+ if (ie(k.pixels ?? 0), !Uo(o, a === null) || k.pixels !== o) {
4178
4181
  let e = k.pixels ?? 0, t = {
4179
4182
  pixels: e,
4180
- percent: k.percent ?? e / z * 100
4183
+ percent: k.percent ?? e / B * 100
4181
4184
  };
4182
4185
  D(t);
4183
4186
  }
@@ -4185,16 +4188,16 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4185
4188
  }
4186
4189
  }, [
4187
4190
  k,
4188
- V,
4191
+ H,
4189
4192
  o,
4190
4193
  a,
4191
- z
4194
+ B
4192
4195
  ]), Se = Y((e) => {
4193
- _e?.(e), e.defaultPrevented || h || V || (H(!0), U(), document.addEventListener("pointermove", be, { passive: !1 }), document.addEventListener("touchmove", be, { passive: !1 }), document.addEventListener("pointerup", xe, { passive: !1 }));
4196
+ _e?.(e), e.defaultPrevented || h || H || (U(!0), W(), document.addEventListener("pointermove", be, { passive: !1 }), document.addEventListener("touchmove", be, { passive: !1 }), document.addEventListener("pointerup", xe, { passive: !1 }));
4194
4197
  }, [_e]), Ce = Ar(t, () => ({
4195
4198
  setPosition: ye,
4196
4199
  isSplitPane: () => !0
4197
- }), []), we = ti([ee, G]), Te = M(() => T ? L(ri, {
4200
+ }), []), we = ni([ee, G]), Te = M(() => T ? L(ii, {
4198
4201
  render: w,
4199
4202
  props: {
4200
4203
  ref: we,
@@ -4226,9 +4229,9 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4226
4229
  let e = {
4227
4230
  ...ue,
4228
4231
  ...fe,
4229
- flex: E.fixedPaneOffset === 0 && B?.pixels[0] !== null ? `0 0 ${Math.round(B?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(B?.percents[0] ?? 100)}%`,
4230
- [`min${Ee}`]: B?.minBefore,
4231
- [`max${Ee}`]: r ? B?.maxBefore : "100%"
4232
+ flex: E.fixedPaneOffset === 0 && V?.pixels[0] !== null ? `0 0 ${Math.round(V?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(V?.percents[0] ?? 100)}%`,
4233
+ [`min${Ee}`]: V?.minBefore,
4234
+ [`max${Ee}`]: r ? V?.maxBefore : "100%"
4232
4235
  };
4233
4236
  return L("div", {
4234
4237
  ref: ae,
@@ -4243,15 +4246,15 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4243
4246
  b,
4244
4247
  x,
4245
4248
  E,
4246
- B
4249
+ V
4247
4250
  ]), Oe = M(() => {
4248
4251
  if (!r) return null;
4249
4252
  let e = {
4250
4253
  ...ue,
4251
4254
  ...K,
4252
- flex: E.fixedPaneOffset === 1 && B?.pixels[1] !== null ? `0 0 ${Math.round(B?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(B?.percents[1] ?? 100)}%`,
4253
- [`min${Ee}`]: B?.minAfter,
4254
- [`max${Ee}`]: n ? B?.maxAfter : "100%"
4255
+ flex: E.fixedPaneOffset === 1 && V?.pixels[1] !== null ? `0 0 ${Math.round(V?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(V?.percents[1] ?? 100)}%`,
4256
+ [`min${Ee}`]: V?.minAfter,
4257
+ [`max${Ee}`]: n ? V?.maxAfter : "100%"
4255
4258
  };
4256
4259
  return L("div", {
4257
4260
  ref: oe,
@@ -4266,11 +4269,11 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4266
4269
  b,
4267
4270
  S,
4268
4271
  E,
4269
- B
4270
- ]), ke = ti([j, Ce]);
4271
- return ne("div", {
4272
+ V
4273
+ ]), ke = ni([j, Ce]);
4274
+ return R("div", {
4272
4275
  ref: ke,
4273
- className: X("splitPane", i === "row" ? "vertical" : "horizontal", { dragging: V }, p),
4276
+ className: X("splitPane", i === "row" ? "vertical" : "horizontal", { dragging: H }, p),
4274
4277
  style: he,
4275
4278
  children: [
4276
4279
  De,
@@ -4279,8 +4282,8 @@ var Mo = (e) => L(jo, { ...e }), No = (e) => {
4279
4282
  ]
4280
4283
  });
4281
4284
  }));
4282
- Vo.displayName = "SplitPane";
4283
- var Ho = class {
4285
+ Wo.displayName = "SplitPane";
4286
+ var Go = class {
4284
4287
  constructor() {
4285
4288
  this.store = /* @__PURE__ */ new Map();
4286
4289
  }
@@ -4293,32 +4296,32 @@ var Ho = class {
4293
4296
  removeItem(e) {
4294
4297
  this.store.delete(e);
4295
4298
  }
4296
- }, Uo = b(null), Wo = Object.freeze({}), Go = {
4299
+ }, Ko = b(null), qo = Object.freeze({}), Jo = {
4297
4300
  parse: (e) => e ? JSON.parse(e) : null,
4298
4301
  stringify: JSON.stringify
4299
- }, Ko = /* @__PURE__ */ new Map(), qo = {
4300
- store: new Ho(),
4302
+ }, Yo = /* @__PURE__ */ new Map(), Xo = {
4303
+ store: new Go(),
4301
4304
  namespace: "",
4302
- serializer: Go,
4305
+ serializer: Jo,
4303
4306
  onReady: (e) => {
4304
4307
  e();
4305
4308
  },
4306
4309
  debounceMs: 0,
4307
- defaultValues: Wo,
4310
+ defaultValues: qo,
4308
4311
  notify: (e, t) => {
4309
- let n = Ko.get(e);
4312
+ let n = Yo.get(e);
4310
4313
  n && n.forEach((e) => e(t));
4311
4314
  },
4312
4315
  subscribeKey: (e, t) => {
4313
- let n = Ko.get(e) ?? /* @__PURE__ */ new Set();
4314
- return n.add(t), Ko.set(e, n), () => {
4315
- let n = Ko.get(e);
4316
- n && (n.delete(t), n.size === 0 && Ko.delete(e));
4316
+ let n = Yo.get(e) ?? /* @__PURE__ */ new Set();
4317
+ return n.add(t), Yo.set(e, n), () => {
4318
+ let n = Yo.get(e);
4319
+ n && (n.delete(t), n.size === 0 && Yo.delete(e));
4317
4320
  };
4318
4321
  }
4319
4322
  };
4320
- function Jo(e, t, n = Yo) {
4321
- let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = D(Uo) || qo, u = n.serializer ?? a ?? Go, d = P(null), f = M(() => e == null ? null : `${i}:${e}`, [i, e]), p = f ? `${f}::v` : null, m = () => {
4323
+ function Zo(e, t, n = Qo) {
4324
+ let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = D(Ko) || Xo, u = n.serializer ?? a ?? Jo, d = P(null), f = M(() => e == null ? null : `${i}:${e}`, [i, e]), p = f ? `${f}::v` : null, m = () => {
4322
4325
  if (e != null && Object.prototype.hasOwnProperty.call(l, e)) return l[e];
4323
4326
  let n = t;
4324
4327
  return typeof n == "function" ? n() : n;
@@ -4398,11 +4401,11 @@ function Jo(e, t, n = Yo) {
4398
4401
  E(() => C.current(), [])
4399
4402
  ];
4400
4403
  }
4401
- var Yo = {};
4402
- function Xo(e) {
4403
- let { store: t, namespace: n = "", serializer: r = $o, debounceMs: i = 150, defaultValues: a = Wo, children: o } = e, s = P(a);
4404
- es(s.current, a) || (s.current = a);
4405
- let c = s.current, l = M(() => typeof window > "u" ? new Ho() : t ?? new Ho(), [t]), u = P(/* @__PURE__ */ new Map()), d = M(() => ({
4404
+ var Qo = {};
4405
+ function $o(e) {
4406
+ let { store: t, namespace: n = "", serializer: r = ns, debounceMs: i = 150, defaultValues: a = qo, children: o } = e, s = P(a);
4407
+ rs(s.current, a) || (s.current = a);
4408
+ let c = s.current, l = M(() => typeof window > "u" ? new Go() : t ?? new Go(), [t]), u = P(/* @__PURE__ */ new Map()), d = M(() => ({
4406
4409
  store: l,
4407
4410
  namespace: n,
4408
4411
  serializer: r,
@@ -4435,19 +4438,19 @@ function Xo(e) {
4435
4438
  let t = e.slice(d.namespace.length + 1);
4436
4439
  d.notify(t);
4437
4440
  });
4438
- }, [d]), L(Uo.Provider, {
4441
+ }, [d]), L(Ko.Provider, {
4439
4442
  value: d,
4440
4443
  children: o
4441
4444
  });
4442
4445
  }
4443
- var Zo, Qo, $o = {
4446
+ var es, ts, ns = {
4444
4447
  parse: (e) => e == null ? null : JSON.parse(e),
4445
4448
  stringify: JSON.stringify
4446
- }, es = (e, t) => {
4449
+ }, rs = (e, t) => {
4447
4450
  if (e === t) return !0;
4448
4451
  let n = Object.keys(e);
4449
4452
  return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
4450
- }, ts = class {
4453
+ }, is = class {
4451
4454
  constructor(e = window.localStorage) {
4452
4455
  this.storage = e;
4453
4456
  }
@@ -4474,10 +4477,10 @@ var Zo, Qo, $o = {
4474
4477
  };
4475
4478
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
4476
4479
  }
4477
- }, ns = /* @__PURE__ */ new WeakMap();
4478
- (Qo = Zo ||= {}).begin = function(e) {
4479
- let t = ns.get(e);
4480
- t || (t = /* @__PURE__ */ new Set(), ns.set(e, t));
4480
+ }, as = /* @__PURE__ */ new WeakMap();
4481
+ (ts = es ||= {}).begin = function(e) {
4482
+ let t = as.get(e);
4483
+ t || (t = /* @__PURE__ */ new Set(), as.set(e, t));
4481
4484
  let n = () => {}, r = new Promise((e) => {
4482
4485
  n = e;
4483
4486
  });
@@ -4486,25 +4489,25 @@ var Zo, Qo, $o = {
4486
4489
  return () => {
4487
4490
  i || (i = !0, a.delete(r), n());
4488
4491
  };
4489
- }, Qo.isPending = function(e) {
4490
- return (ns.get(e)?.size ?? 0) > 0;
4492
+ }, ts.isPending = function(e) {
4493
+ return (as.get(e)?.size ?? 0) > 0;
4491
4494
  };
4492
- var rs = async (e) => {
4493
- let t = ns.get(e);
4495
+ var os = async (e) => {
4496
+ let t = as.get(e);
4494
4497
  for (; t && t.size > 0;) await Promise.allSettled([...t]);
4495
- }, is = b(null), as = (e) => _.createElement(is.Provider, { value: e.scope }, e.children), os = (e, t) => {
4496
- let n = D(is), r = t === void 0 ? n : t;
4498
+ }, ss = b(null), cs = (e) => _.createElement(ss.Provider, { value: e.scope }, e.children), ls = (e, t) => {
4499
+ let n = D(ss), r = t === void 0 ? n : t;
4497
4500
  O(() => {
4498
- if (r && e) return Zo.begin(r);
4501
+ if (r && e) return es.begin(r);
4499
4502
  }, [r, e]);
4500
4503
  }, Z = {
4501
4504
  Horizontal: "horizontal",
4502
4505
  Vertical: "vertical"
4503
- }, ss = "_scrollbar_2chse_24", cs = "_track_2chse_35", ls = "_thumb_2chse_47", us = "_scrollbar-button_2chse_96", ds = "_touch-thumb_2chse_131", fs = "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", ps = "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", ms = { transform: "rotate(180deg)" }, hs = (e) => {
4504
- let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? fs : ps;
4506
+ }, us = "_scrollbar_2chse_24", ds = "_track_2chse_35", fs = "_thumb_2chse_47", ps = "_scrollbar-button_2chse_96", ms = "_touch-thumb_2chse_131", hs = "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", gs = "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", _s = { transform: "rotate(180deg)" }, vs = (e) => {
4507
+ let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? hs : gs;
4505
4508
  return L("button", {
4506
4509
  style: t,
4507
- className: X(us, n, "scroll-button"),
4510
+ className: X(ps, n, "scroll-button"),
4508
4511
  disabled: i,
4509
4512
  ...a,
4510
4513
  children: L("svg", {
@@ -4514,22 +4517,22 @@ var rs = async (e) => {
4514
4517
  children: L("path", { d: o })
4515
4518
  })
4516
4519
  });
4517
- }, gs = (e) => {
4518
- let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? fs : ps;
4520
+ }, ys = (e) => {
4521
+ let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? hs : gs;
4519
4522
  return L("button", {
4520
4523
  style: t,
4521
- className: X(us, n, "scroll-button"),
4524
+ className: X(ps, n, "scroll-button"),
4522
4525
  disabled: i,
4523
4526
  ...a,
4524
4527
  children: L("svg", {
4525
4528
  width: "9",
4526
4529
  height: "9",
4527
4530
  viewBox: "0 0 9 9",
4528
- style: ms,
4531
+ style: _s,
4529
4532
  children: L("path", { d: o })
4530
4533
  })
4531
4534
  });
4532
- }, _s = (e) => {
4535
+ }, bs = (e) => {
4533
4536
  let { style: n, orientation: r = Z.Vertical, isBefore: i, ...a } = e, o = r === Z.Vertical;
4534
4537
  return L("div", {
4535
4538
  style: {
@@ -4554,7 +4557,7 @@ var rs = async (e) => {
4554
4557
  iconKey: "MoreHorizontal"
4555
4558
  })
4556
4559
  });
4557
- }, vs = 60, ys = 260, bs = 120, xs = (e) => {
4560
+ }, xs = 60, Ss = 260, Cs = 120, ws = (e) => {
4558
4561
  let { vertical: t, getTrackRect: n, getThumb: r, onStart: i, onDragModeChange: a, edgeHoldIntervalMs: o = 60, pageInitialDelayMs: s = 260, pageRepeatDelayMs: c = 120 } = e, l = null, u = null, d = 0, f = 0, p = 1, m = 0, h = 0, g = 0, _ = null, v = () => {
4559
4562
  _ && clearTimeout(_), _ = null;
4560
4563
  }, y = (e) => {
@@ -4602,10 +4605,10 @@ var rs = async (e) => {
4602
4605
  },
4603
4606
  dispose: () => v()
4604
4607
  };
4605
- }, Ss = (e) => {
4608
+ }, Ts = (e) => {
4606
4609
  let [t, n] = F(null), r = P(e);
4607
4610
  r.current = e;
4608
- let i = M(() => xs({
4611
+ let i = M(() => ws({
4609
4612
  vertical: r.current.vertical,
4610
4613
  getTrackRect: () => r.current.getTrackRect(),
4611
4614
  getThumb: () => r.current.getThumb(),
@@ -4621,16 +4624,16 @@ var rs = async (e) => {
4621
4624
  onPointerUp: i.onPointerUp,
4622
4625
  dragMode: t
4623
4626
  };
4624
- }, Cs = 22, ws = 1.8, Ts = 8, Es = 4, Ds = 8, Os = -2, ks = (e = 22) => e / 2 + 8, As = (e = 22) => e + 16, js = b(null), Ms = (e) => {
4627
+ }, Es = 22, Ds = 1.8, Os = 8, ks = 4, As = 8, js = -2, Ms = (e = 22) => e / 2 + 8, Ns = (e = 22) => e + 16, Ps = b(null), Fs = (e) => {
4625
4628
  let { value: t, children: n } = e;
4626
- return L(js.Provider, {
4629
+ return L(Ps.Provider, {
4627
4630
  value: t,
4628
4631
  children: n
4629
4632
  });
4630
- }, Ns = () => D(js), Ps = ft().supportsTouchEvents, Fs = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Is = T(S((e, t) => {
4633
+ }, Is = () => D(Ps), Ls = ft().supportsTouchEvents, Rs = (e) => e < 0 ? 0 : e > 1 ? 1 : e, zs = T(S((e, t) => {
4631
4634
  let { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: r = "var(--sxl-color-base-100, white)", fillColor: i = "var(--sxl-color-neutral, grey)", borderWidth: a = 3, size: o = 22, style: s, className: c, orientation: l = Z.Vertical, fraction: u = 0, onScrollToFraction: d, onEdgeHold: f, onDraggingChange: p, currentTouchAnchor: m, key: h, ...g } = e;
4632
- if (!Ps) return null;
4633
- let _ = l === Z.Vertical, v = Ns(), y = Y(d ?? (() => {}), [d]), b = Y(f ?? (() => {}), [f]), x = Y(p ?? (() => {}), [p]), S = P(null), C = ti([S, t]), w = Y((e) => ({
4635
+ if (!Ls) return null;
4636
+ let _ = l === Z.Vertical, v = Is(), y = Y(d ?? (() => {}), [d]), b = Y(f ?? (() => {}), [f]), x = Y(p ?? (() => {}), [p]), S = P(null), C = ni([S, t]), w = Y((e) => ({
4634
4637
  dragging: e,
4635
4638
  element: S.current,
4636
4639
  source: "touch"
@@ -4648,7 +4651,7 @@ var rs = async (e) => {
4648
4651
  count: 0,
4649
4652
  timer: null
4650
4653
  });
4651
- D.current.isVertical = _, D.current.fraction = Fs(u), D.current.hasEdgeHold = !!f;
4654
+ D.current.isVertical = _, D.current.fraction = Rs(u), D.current.hasEdgeHold = !!f;
4652
4655
  let k = Y(() => {
4653
4656
  let e = D.current;
4654
4657
  e.timer && clearTimeout(e.timer), e.timer = null;
@@ -4675,7 +4678,7 @@ var rs = async (e) => {
4675
4678
  },
4676
4679
  onPointerMoveOrWait: (e) => {
4677
4680
  let t = D.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
4678
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Fs(t.rawFraction)), j();
4681
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Rs(t.rawFraction)), j();
4679
4682
  },
4680
4683
  onPointerUp: (e) => {
4681
4684
  let t = D.current;
@@ -4686,14 +4689,14 @@ var rs = async (e) => {
4686
4689
  let e = D.current;
4687
4690
  e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, x?.(w(!1)));
4688
4691
  }, []), !v?.portalTarget) return null;
4689
- let I = 1.8 * o, ee = _ ? o : I, te = _ ? I : o, ne = _ ? v.viewportHeight : v.viewportWidth, R = _ ? v.height : v.width, re = Math.max(0, R - ne), z = _ ? v.reserveVertical : v.reserveHorizontal, V = z > 0 ? -2 : 4, H = Math.max(0, ne - z - I - 4 - V);
4690
- D.current.travel = H;
4691
- let U = re + 4 + I / 2 + Fs(u) * H, W, ie;
4692
- return _ ? (W = v.width - v.crossInset - ee / 2, ie = U - te / 2) : (ie = v.height - v.crossInset - te / 2, W = U - ee / 2), B(L("div", {
4693
- className: X("touch-thumb", ds, c, { dragging: T }),
4692
+ let I = 1.8 * o, ee = _ ? o : I, te = _ ? I : o, R = _ ? v.viewportHeight : v.viewportWidth, z = _ ? v.height : v.width, ne = Math.max(0, z - R), B = _ ? v.reserveVertical : v.reserveHorizontal, H = B > 0 ? -2 : 4, U = Math.max(0, R - B - I - 4 - H);
4693
+ D.current.travel = U;
4694
+ let W = ne + 4 + I / 2 + Rs(u) * U, re, ie;
4695
+ return _ ? (re = v.width - v.crossInset - ee / 2, ie = W - te / 2) : (ie = v.height - v.crossInset - te / 2, re = W - ee / 2), V(L("div", {
4696
+ className: X("touch-thumb", ms, c, { dragging: T }),
4694
4697
  ref: C,
4695
4698
  style: {
4696
- left: W,
4699
+ left: re,
4697
4700
  top: ie,
4698
4701
  width: ee,
4699
4702
  height: te,
@@ -4715,15 +4718,15 @@ var rs = async (e) => {
4715
4718
  ...g
4716
4719
  }), v.portalTarget, h);
4717
4720
  }));
4718
- Is.displayName = "TouchThumbHandle";
4719
- var Ls = 24, Rs = T(S((e, t) => {
4720
- let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m = Ls, maxThumbSize: h, renderScrollButtonStart: g = hs, renderScrollButtonEnd: _ = gs, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: S, ...C } = e, w = qn() === "touch", T = u ?? !w;
4721
+ zs.displayName = "TouchThumbHandle";
4722
+ var Bs = 24, Vs = T(S((e, t) => {
4723
+ let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m = Bs, maxThumbSize: h, renderScrollButtonStart: g = vs, renderScrollButtonEnd: _ = ys, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: S, ...C } = e, w = qn() === "touch", T = u ?? !w;
4721
4724
  Y(l ?? (() => {}), [l]);
4722
4725
  let [D, k] = F({
4723
4726
  offset: 0,
4724
4727
  length: 0,
4725
4728
  disabled: !1
4726
- }), A = P(-1), j = s === Z.Vertical, [N, { width: I, height: ee }] = Br(), R = j ? ee : I, re = P(null), z = ti([N, re]), B = Y((e, t, n) => {
4729
+ }), A = P(-1), j = s === Z.Vertical, [N, { width: I, height: ee }] = Vr(), z = j ? ee : I, ne = P(null), B = ni([N, ne]), V = Y((e, t, n) => {
4727
4730
  if (t === 0 || n === 0) {
4728
4731
  let e = {
4729
4732
  offset: 0,
@@ -4734,55 +4737,55 @@ var Ls = 24, Rs = T(S((e, t) => {
4734
4737
  }
4735
4738
  if (t >= n) return {
4736
4739
  offset: 0,
4737
- length: R,
4740
+ length: z,
4738
4741
  disabled: !0
4739
4742
  };
4740
- let r = n / R, i = t / r, a = Math.min(Math.max(m, i), Math.min(R, h ?? 2 ** 53 - 1)), o = e / r;
4743
+ let r = n / z, i = t / r, a = Math.min(Math.max(m, i), Math.min(z, h ?? 2 ** 53 - 1)), o = e / r;
4741
4744
  return {
4742
- offset: Math.min(Math.max(0, o), R - a),
4745
+ offset: Math.min(Math.max(0, o), z - a),
4743
4746
  length: a,
4744
4747
  disabled: !1
4745
4748
  };
4746
4749
  }, [
4747
- R,
4750
+ z,
4748
4751
  m,
4749
4752
  h
4750
- ]), V = Y((e) => {
4751
- let t = r / R, n = Math.round(e * t);
4752
- k(B(n, i, r)), c?.(n, i, r), A.current = e;
4753
+ ]), H = Y((e) => {
4754
+ let t = r / z, n = Math.round(e * t);
4755
+ k(V(n, i, r)), c?.(n, i, r), A.current = e;
4753
4756
  }, [
4754
4757
  c,
4755
4758
  i,
4756
4759
  r,
4757
- R,
4760
+ z,
4758
4761
  D
4759
- ]), H = Y((e) => {
4760
- k(B(e, i, r)), c?.(e, i, r), A.current = e;
4762
+ ]), U = Y((e) => {
4763
+ k(V(e, i, r)), c?.(e, i, r), A.current = e;
4761
4764
  }, [
4762
4765
  c,
4763
4766
  i,
4764
4767
  r
4765
4768
  ]);
4766
4769
  O(() => {
4767
- A.current !== n && R !== 0 && (A.current = -1, k(B(n, i, r)));
4770
+ A.current !== n && z !== 0 && (A.current = -1, k(V(n, i, r)));
4768
4771
  }, [n]), O(() => {
4769
- R !== 0 && k(B(n, i, r));
4772
+ z !== 0 && k(V(n, i, r));
4770
4773
  }, [
4771
4774
  i,
4772
4775
  r,
4773
4776
  j,
4774
- R
4777
+ z
4775
4778
  ]);
4776
- let U = Math.max(0, r - i), W = Ar(t, () => ({ isScrollbar: () => !0 }), []), ie = Y((e) => {
4777
- let t = Math.max(1, Math.floor(.9 * i)), r = e > 0 ? Math.min(U, n + t) : Math.max(0, n - t);
4778
- H(r);
4779
+ let W = Math.max(0, r - i), re = Ar(t, () => ({ isScrollbar: () => !0 }), []), ie = Y((e) => {
4780
+ let t = Math.max(1, Math.floor(.9 * i)), r = e > 0 ? Math.min(W, n + t) : Math.max(0, n - t);
4781
+ U(r);
4779
4782
  }, [
4780
4783
  i,
4781
4784
  n,
4782
- U
4783
- ]), ae = Ss({
4785
+ W
4786
+ ]), ae = Ts({
4784
4787
  vertical: j,
4785
- getTrackRect: () => re.current?.getBoundingClientRect() ?? null,
4788
+ getTrackRect: () => ne.current?.getBoundingClientRect() ?? null,
4786
4789
  getThumb: () => D.disabled ? null : {
4787
4790
  offset: D.offset,
4788
4791
  length: D.length
@@ -4792,7 +4795,7 @@ var Ls = 24, Rs = T(S((e, t) => {
4792
4795
  element: se.current,
4793
4796
  source: "thumb"
4794
4797
  }), {
4795
- apply: (e) => V(e),
4798
+ apply: (e) => H(e),
4796
4799
  edgeHold: b,
4797
4800
  end: () => x?.({
4798
4801
  dragging: !1,
@@ -4810,25 +4813,25 @@ var Ls = 24, Rs = T(S((e, t) => {
4810
4813
  ])
4811
4814
  }), G = ae.dragMode === "thumb", oe = Y((e) => {
4812
4815
  let t = Math.max(1, Math.floor(.9 * i));
4813
- j ? (e.key === "ArrowDown" && V(Math.min(U, n + 1)), e.key === "ArrowUp" && V(Math.max(0, n - 1)), e.key === "PageDown" && V(Math.min(U, n + t)), e.key === "PageUp" && V(Math.max(0, n - t)), e.key === "Home" && V(0), e.key === "End" && V(U)) : (e.key === "ArrowRight" && V(Math.min(U, n + 1)), e.key === "ArrowLeft" && V(Math.max(0, n - 1)), e.key === "PageDown" && V(Math.min(U, n + t)), e.key === "PageUp" && V(Math.max(0, n - t)), e.key === "Home" && V(0), e.key === "End" && V(U));
4816
+ j ? (e.key === "ArrowDown" && H(Math.min(W, n + 1)), e.key === "ArrowUp" && H(Math.max(0, n - 1)), e.key === "PageDown" && H(Math.min(W, n + t)), e.key === "PageUp" && H(Math.max(0, n - t)), e.key === "Home" && H(0), e.key === "End" && H(W)) : (e.key === "ArrowRight" && H(Math.min(W, n + 1)), e.key === "ArrowLeft" && H(Math.max(0, n - 1)), e.key === "PageDown" && H(Math.min(W, n + t)), e.key === "PageUp" && H(Math.max(0, n - t)), e.key === "Home" && H(0), e.key === "End" && H(W));
4814
4817
  }, [
4815
4818
  j,
4816
4819
  i,
4817
4820
  r,
4818
4821
  n,
4819
- U
4822
+ W
4820
4823
  ]), se = P(null), ce = M(() => {
4821
4824
  let e = D.disabled;
4822
4825
  if (e) return null;
4823
4826
  let t = L("div", {
4824
4827
  ...y,
4825
- className: X(ls, { disabled: e }),
4828
+ className: X(fs, { disabled: e }),
4826
4829
  ref: se,
4827
4830
  role: "slider",
4828
4831
  "aria-label": j ? "Rows" : "Columns",
4829
4832
  "aria-orientation": j ? "vertical" : "horizontal",
4830
4833
  "aria-valuemin": 0,
4831
- "aria-valuemax": U,
4834
+ "aria-valuemax": W,
4832
4835
  "aria-valuenow": n,
4833
4836
  tabIndex: 0,
4834
4837
  style: {
@@ -4842,33 +4845,33 @@ var Ls = 24, Rs = T(S((e, t) => {
4842
4845
  onMouseDown: S
4843
4846
  });
4844
4847
  if (!w || e) return t;
4845
- let r = Math.max(0, R - D.length);
4846
- return ne(te, { children: [t, L(Is, {
4848
+ let r = Math.max(0, z - D.length);
4849
+ return R(te, { children: [t, L(zs, {
4847
4850
  ...v,
4848
4851
  orientation: j ? Z.Vertical : Z.Horizontal,
4849
4852
  fraction: r > 0 ? D.offset / r : 0,
4850
- onScrollToFraction: (e) => V(e * r),
4853
+ onScrollToFraction: (e) => H(e * r),
4851
4854
  onEdgeHold: b,
4852
4855
  onDraggingChange: x
4853
4856
  })] });
4854
4857
  }, [
4855
4858
  D,
4856
4859
  m,
4857
- U,
4860
+ W,
4858
4861
  n,
4859
4862
  j,
4860
4863
  w,
4861
4864
  S,
4862
4865
  v,
4863
4866
  y,
4864
- R,
4867
+ z,
4865
4868
  b,
4866
4869
  x
4867
4870
  ]), [le, ue] = F(null), de = Y(() => {
4868
4871
  let e;
4869
4872
  e = typeof d == "function" ? d(n, i, r) : n - d;
4870
4873
  let t = Math.max(0, e);
4871
- return H(t), ue(t), t;
4874
+ return U(t), ue(t), t;
4872
4875
  }, [
4873
4876
  d,
4874
4877
  n,
@@ -4877,12 +4880,12 @@ var Ls = 24, Rs = T(S((e, t) => {
4877
4880
  ]), fe = Y(() => {
4878
4881
  let e;
4879
4882
  e = typeof d == "function" ? d(n, i, r) : n + d;
4880
- let t = Math.min(U, e);
4881
- return H(t), ue(t), t;
4883
+ let t = Math.min(W, e);
4884
+ return U(t), ue(t), t;
4882
4885
  }, [
4883
4886
  d,
4884
4887
  n,
4885
- U,
4888
+ W,
4886
4889
  i,
4887
4890
  r
4888
4891
  ]), pe = P(null), me = P(null), K = E(() => {
@@ -4898,7 +4901,7 @@ var Ls = 24, Rs = T(S((e, t) => {
4898
4901
  K
4899
4902
  ]);
4900
4903
  O(() => () => K(), [K]);
4901
- let he = M(() => T ? L(ri, {
4904
+ let he = M(() => T ? L(ii, {
4902
4905
  render: g,
4903
4906
  props: {
4904
4907
  orientation: s,
@@ -4912,11 +4915,11 @@ var Ls = 24, Rs = T(S((e, t) => {
4912
4915
  s,
4913
4916
  n,
4914
4917
  le
4915
- ]), ge = M(() => T ? L(ri, {
4918
+ ]), ge = M(() => T ? L(ii, {
4916
4919
  render: _,
4917
4920
  props: {
4918
4921
  orientation: s,
4919
- disabled: n >= U,
4922
+ disabled: n >= W,
4920
4923
  onMouseUp: K,
4921
4924
  onMouseLeave: K,
4922
4925
  onMouseDown: () => q(n, !0, !1)
@@ -4925,12 +4928,12 @@ var Ls = 24, Rs = T(S((e, t) => {
4925
4928
  T,
4926
4929
  s,
4927
4930
  n,
4928
- U,
4931
+ W,
4929
4932
  le
4930
- ]), J = j ? "vertical" : "horizontal", _e = ti([W, t]);
4931
- return ne("div", {
4933
+ ]), J = j ? "vertical" : "horizontal", _e = ni([re, t]);
4934
+ return R("div", {
4932
4935
  ref: _e,
4933
- className: X(o, ss, J, {
4936
+ className: X(o, us, J, {
4934
4937
  dragging: G,
4935
4938
  "has-touch-thumb": w
4936
4939
  }),
@@ -4939,14 +4942,14 @@ var Ls = 24, Rs = T(S((e, t) => {
4939
4942
  children: [
4940
4943
  he,
4941
4944
  L("div", {
4942
- ref: z,
4945
+ ref: B,
4943
4946
  role: "scrollbar",
4944
4947
  "aria-orientation": J,
4945
4948
  "aria-valuemin": 0,
4946
- "aria-valuemax": U,
4949
+ "aria-valuemax": W,
4947
4950
  "aria-valuenow": n,
4948
4951
  tabIndex: 0,
4949
- className: X(cs, "track", J),
4952
+ className: X(ds, "track", J),
4950
4953
  onMouseDown: S,
4951
4954
  onPointerDown: ae.onPointerDown,
4952
4955
  onPointerMove: ae.onPointerMove,
@@ -4957,24 +4960,24 @@ var Ls = 24, Rs = T(S((e, t) => {
4957
4960
  ge
4958
4961
  ]
4959
4962
  });
4960
- })), zs = Date.now, Bs = 1e3, Vs = {}, Hs = 1, Us = (e) => {
4961
- let t = Vs[e] !== null;
4962
- return t && (Vs[e] = null), t;
4963
- }, Ws = (e, t, n, r = 0, i) => {
4964
- let a = zs(), o = a, s = 0, c = 0, l = 0, u = Hs++;
4963
+ })), Hs = Date.now, Us = 1e3, Ws = {}, Gs = 1, Ks = (e) => {
4964
+ let t = Ws[e] !== null;
4965
+ return t && (Ws[e] = null), t;
4966
+ }, qs = (e, t, n, r = 0, i) => {
4967
+ let a = Hs(), o = a, s = 0, c = 0, l = 0, u = Gs++;
4965
4968
  if (u % 20 == 0) {
4966
4969
  let e = {};
4967
- for (let t in Vs) e[t] = !0;
4968
- Vs = e;
4970
+ for (let t in Ws) e[t] = !0;
4971
+ Ws = e;
4969
4972
  }
4970
4973
  let d = function(f) {
4971
- let p = !0 !== f, m = zs(), h = !0;
4974
+ let p = !0 !== f, m = Hs(), h = !0;
4972
4975
  try {
4973
4976
  h = (!t || t(u)) ?? !0;
4974
4977
  } catch {
4975
4978
  h = !1;
4976
4979
  }
4977
- if (!Vs[u] || !h) return Vs[u] = null, void n?.(60 - c / ((m - a) / Bs), u, !1);
4980
+ if (!Ws[u] || !h) return Ws[u] = null, void n?.(60 - c / ((m - a) / Us), u, !1);
4978
4981
  if (p) {
4979
4982
  l = Math.round((m - o) / 16.666666666666668) - 1;
4980
4983
  for (let e = 0; e < Math.min(l, 4); e++) d(!0), c++;
@@ -4986,17 +4989,17 @@ var Ls = 24, Rs = T(S((e, t) => {
4986
4989
  } catch {
4987
4990
  _ = !1;
4988
4991
  }
4989
- !1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (Vs[u] = null, n?.(60 - c / ((m - a) / Bs), u, s === 1 || r == null));
4992
+ !1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (Ws[u] = null, n?.(60 - c / ((m - a) / Us), u, s === 1 || r == null));
4990
4993
  };
4991
- return Vs[u] = !0, requestAnimationFrame(d), u;
4992
- }, Gs = function(e) {
4994
+ return Ws[u] = !0, requestAnimationFrame(d), u;
4995
+ }, Js = function(e) {
4993
4996
  return (e - 1) ** 3 + 1;
4994
- }, Ks = function(e) {
4997
+ }, Ys = function(e) {
4995
4998
  return (e /= .5) < 1 ? .5 * e ** 3 : .5 * ((e - 2) ** 3 + 2);
4996
- }, qs = Math.log(1.15) / 100, Js = (e) => {
4999
+ }, Xs = Math.log(1.15) / 100, Zs = (e) => {
4997
5000
  let t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
4998
5001
  return Math.sqrt(t * t + n * n);
4999
- }, Ys = class {
5002
+ }, Qs = class {
5000
5003
  constructor(e, t) {
5001
5004
  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 = {
5002
5005
  scrollingX: !0,
@@ -5050,7 +5053,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5050
5053
  }
5051
5054
  zoomTo(e, t = !1, n, r, i) {
5052
5055
  if (!this.options.zooming) throw Error("Zooming is not enabled!");
5053
- i && (this.__zoomComplete = i), this.__isDecelerating &&= (Us(this.__isDecelerating), 0);
5056
+ i && (this.__zoomComplete = i), this.__isDecelerating &&= (Ks(this.__isDecelerating), 0);
5054
5057
  let a = this.__zoomLevel;
5055
5058
  n === void 0 && (n = this.__clientWidth / 2), r === void 0 && (r = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
5056
5059
  let o = e / a, s = o * (this.__scrollLeft + n) - n, c = o * (this.__scrollTop + r) - r;
@@ -5068,7 +5071,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5068
5071
  this.zoomTo(this.__zoomLevel * e, t, n, r, i);
5069
5072
  }
5070
5073
  scrollTo(e, t, n = !1, r) {
5071
- if (this.__isDecelerating &&= (Us(this.__isDecelerating), 0), r !== void 0 && r !== this.__zoomLevel) {
5074
+ if (this.__isDecelerating &&= (Ks(this.__isDecelerating), 0), r !== void 0 && r !== this.__zoomLevel) {
5072
5075
  if (!this.options.zooming) throw Error("Zooming is not enabled!");
5073
5076
  e *= r, t *= r, this.__computeScrollMax(r);
5074
5077
  } else r = this.__zoomLevel;
@@ -5079,16 +5082,16 @@ var Ls = 24, Rs = T(S((e, t) => {
5079
5082
  this.scrollTo(r + (e || 0), i + (t || 0), n);
5080
5083
  }
5081
5084
  doMouseZoom(e, t, n, r) {
5082
- let i = Math.exp(-e * qs);
5085
+ let i = Math.exp(-e * Xs);
5083
5086
  return this.zoomTo(this.__zoomLevel * i, !1, n - this.__clientLeft, r - this.__clientTop);
5084
5087
  }
5085
5088
  doTouchStart(e, t) {
5086
5089
  if (e.length === void 0) throw Error("Invalid touch list: " + e);
5087
5090
  if (t instanceof Date && (t = t.valueOf()), typeof t != "number") throw Error("Invalid timestamp value: " + t);
5088
5091
  let n, r;
5089
- this.__interruptedAnimation = !0, this.__isDecelerating && (Us(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (Us(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
5092
+ this.__interruptedAnimation = !0, this.__isDecelerating && (Ks(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (Ks(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
5090
5093
  let i = e.length === 1;
5091
- i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = i ? 0 : Js(e), this.__isGesturing = !i && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = r, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !i && !!this.options.scrollingX, this.__enableScrollY = !i && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !i, this.__isSingleTouch = i, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
5094
+ i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = i ? 0 : Zs(e), this.__isGesturing = !i && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = r, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !i && !!this.options.scrollingX, this.__enableScrollY = !i && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !i, this.__isSingleTouch = i, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
5092
5095
  }
5093
5096
  doTouchMove(e, t) {
5094
5097
  if (e.length === void 0) throw Error("Invalid touch list: " + e);
@@ -5096,7 +5099,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5096
5099
  if (!this.__isTracking) return;
5097
5100
  let n, r;
5098
5101
  e.length === 2 ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, r = e[0].pageY);
5099
- let i = this.__positions, a = e.length === 2 && this.__pinchStartDistance > 0 ? Js(e) / this.__pinchStartDistance : 1;
5102
+ let i = this.__positions, a = e.length === 2 && this.__pinchStartDistance > 0 ? Zs(e) / this.__pinchStartDistance : 1;
5100
5103
  if (this.__isDragging) {
5101
5104
  let e = n - this.__lastTouchLeft, o = r - this.__lastTouchTop;
5102
5105
  this.__gestureMoveX = e, this.__gestureMoveY = o;
@@ -5145,14 +5148,14 @@ var Ls = 24, Rs = T(S((e, t) => {
5145
5148
  }
5146
5149
  __publish(e, t, n, r = !1) {
5147
5150
  let i = this.__isAnimating;
5148
- if (i && (Us(i), this.__isAnimating = 0), r && this.options.animating) {
5151
+ if (i && (Ks(i), this.__isAnimating = 0), r && this.options.animating) {
5149
5152
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
5150
5153
  let r = this.__scrollLeft, a = this.__scrollTop, o = this.__zoomLevel, s = e - r, c = t - a, l = n - o, u = (e, t, n = !1) => {
5151
5154
  n && (this.__scrollLeft = r + s * e, this.__scrollTop = a + c * e, this.__zoomLevel = o + l * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
5152
5155
  }, d = (e) => this.__isAnimating === e, f = (e, t, n = !1) => {
5153
5156
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete &&= (this.__zoomComplete(), null));
5154
5157
  };
5155
- this.__isAnimating = Ws(u, d, f, this.options.animationDuration, i ? Gs : Ks);
5158
+ this.__isAnimating = qs(u, d, f, this.options.animationDuration, i ? Js : Ys);
5156
5159
  } 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(), null));
5157
5160
  }
5158
5161
  __computeScrollMax(e = this.__zoomLevel) {
@@ -5164,7 +5167,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5164
5167
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / r) * r, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / r) * r;
5165
5168
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
5166
5169
  let t = this.options.snapping ? 4 : .1;
5167
- this.__isDecelerating = Ws((e, t, n = !1) => {
5170
+ this.__isDecelerating = qs((e, t, n = !1) => {
5168
5171
  this.__stepThroughDeceleration(n);
5169
5172
  }, () => {
5170
5173
  let e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -5190,11 +5193,11 @@ var Ls = 24, Rs = T(S((e, t) => {
5190
5193
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? r = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (r = this.__maxDecelerationScrollTop - n), e !== 0 && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * i : this.__decelerationVelocityX = e * a), r !== 0 && (r * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += r * i : this.__decelerationVelocityY = r * a);
5191
5194
  }
5192
5195
  }
5193
- }, Xs = /* @__PURE__ */ new Set([
5196
+ }, $s = /* @__PURE__ */ new Set([
5194
5197
  "auto",
5195
5198
  "scroll",
5196
5199
  "overlay"
5197
- ]), Zs = /* @__PURE__ */ new Set(["contain", "none"]), Qs = (e, t) => {
5200
+ ]), ec = /* @__PURE__ */ new Set(["contain", "none"]), tc = (e, t) => {
5198
5201
  let { deltaX: n, deltaY: r, shiftKey: i } = e, a = i || Math.abs(n) > Math.abs(r), o = i ? r : a ? n : r;
5199
5202
  if (o === 0) return null;
5200
5203
  let s = e.target instanceof Element ? e.target : null;
@@ -5203,21 +5206,21 @@ var Ls = 24, Rs = T(S((e, t) => {
5203
5206
  let e = a ? s.scrollWidth - s.clientWidth : s.scrollHeight - s.clientHeight;
5204
5207
  if (e > 0) {
5205
5208
  let t = getComputedStyle(s);
5206
- if (Xs.has(a ? t.overflowX : t.overflowY)) {
5209
+ if ($s.has(a ? t.overflowX : t.overflowY)) {
5207
5210
  let n = a ? s.scrollLeft : s.scrollTop;
5208
5211
  if (o < 0 ? n > 0 : n < e - 1) return "native";
5209
- if (Zs.has(a ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
5212
+ if (ec.has(a ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
5210
5213
  }
5211
5214
  }
5212
5215
  s = s.parentElement;
5213
5216
  }
5214
5217
  return null;
5215
- }, $s = 100 / 3, ec = se({
5218
+ }, nc = 100 / 3, rc = se({
5216
5219
  PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
5217
- defaultRenderScrollbar: () => nc,
5218
- getScrollTo: () => tc,
5219
- getWheelOwner: () => Qs
5220
- }), tc = (e, t, n, r, i = 0) => {
5220
+ defaultRenderScrollbar: () => ac,
5221
+ getScrollTo: () => ic,
5222
+ getWheelOwner: () => tc
5223
+ }), ic = (e, t, n, r, i = 0) => {
5221
5224
  for (let i = 0; i < n.length; i++) {
5222
5225
  let a = n[i].getBoundingClientRect(), o = a.left - t, s = o + a.width;
5223
5226
  if (r) {
@@ -5225,14 +5228,14 @@ var Ls = 24, Rs = T(S((e, t) => {
5225
5228
  } else if (Math.ceil(s) > Math.ceil(e) + 2) return s;
5226
5229
  }
5227
5230
  return i;
5228
- }, nc = (e) => L(Rs, { ...e }), rc = (e) => {
5231
+ }, ac = (e) => L(Vs, { ...e }), oc = (e) => {
5229
5232
  let t = e.ownerDocument?.defaultView;
5230
5233
  return t ? t.getComputedStyle(e).touchAction : "";
5231
- }, ic = (e) => {
5234
+ }, sc = (e) => {
5232
5235
  let t = e.trim();
5233
5236
  return t === "" || t === "auto" || t === "manipulation" || t.split(/\s+/).some((e) => e.startsWith("pan-"));
5234
- }, ac = "_scrollpane_zdrii_2", oc = "_scrollpane-content_zdrii_20", sc = "_scrollpane-content-cell_zdrii_33", cc = "_vertical-container_zdrii_42", lc = "_horizontal-container_zdrii_50", uc = "_corner-container_zdrii_59", dc = "_touch-thumb-overlay_zdrii_68", fc = T(S((e, t) => {
5235
- let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, zoomable: o = !1, showHorizontalScrollbar: s = !0, showVerticalScrollbar: c = !0, renderScrollCorner: l = pc, renderScrollbarHorizontal: u = nc, renderScrollbarVertical: d = nc, style: f, className: p, disableTouch: m, ...h } = e, g = s && u, _ = c && d, v = Sn(r, (e) => e.getMetrics()), y = E((e, t) => {
5237
+ }, cc = "_scrollpane_zdrii_2", lc = "_scrollpane-content_zdrii_20", uc = "_scrollpane-content-cell_zdrii_33", dc = "_vertical-container_zdrii_42", fc = "_horizontal-container_zdrii_50", pc = "_corner-container_zdrii_59", mc = "_touch-thumb-overlay_zdrii_68", hc = T(S((e, t) => {
5238
+ let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, zoomable: o = !1, showHorizontalScrollbar: s = !0, showVerticalScrollbar: c = !0, renderScrollCorner: l = gc, renderScrollbarHorizontal: u = ac, renderScrollbarVertical: d = ac, style: f, className: p, disableTouch: m, ...h } = e, g = s && u, _ = c && d, v = Sn(r, (e) => e.getMetrics()), y = E((e, t) => {
5236
5239
  if (!r) return;
5237
5240
  let n = r.getTarget();
5238
5241
  r.setTarget(e.left ?? n.left, e.top ?? n.top, t);
@@ -5281,12 +5284,12 @@ var Ls = 24, Rs = T(S((e, t) => {
5281
5284
  }), p = Y((t) => {
5282
5285
  let n = t.shiftKey, { deltaX: r, deltaY: i, deltaMode: a } = t, p = l.current && !n && (t.ctrlKey || t.metaKey);
5283
5286
  if (!p && e.current) {
5284
- let n = Qs(t, e.current);
5287
+ let n = tc(t, e.current);
5285
5288
  if (n === "native") return;
5286
5289
  if (n === "contained") return void t.preventDefault();
5287
5290
  }
5288
5291
  if (t.preventDefault(), p) {
5289
- let e = a === 1 ? $s : a === 2 ? 800 : 1, n = f.current;
5292
+ let e = a === 1 ? nc : a === 2 ? 800 : 1, n = f.current;
5290
5293
  if (n.deltaY += i * e, n.clientX = t.clientX, n.clientY = t.clientY, d.current) return;
5291
5294
  d.current = window.requestAnimationFrame(() => {
5292
5295
  d.current = null;
@@ -5364,10 +5367,10 @@ var Ls = 24, Rs = T(S((e, t) => {
5364
5367
  top: t
5365
5368
  });
5366
5369
  }, []), j = P(!1), N = E((e) => {
5367
- e.touches.length === 1 && (j.current = ((e, t, n = rc) => {
5370
+ e.touches.length === 1 && (j.current = ((e, t, n = oc) => {
5368
5371
  let r = e instanceof Element ? e : null;
5369
5372
  for (; r && r !== t;) {
5370
- if (!ic(n(r))) return !0;
5373
+ if (!sc(n(r))) return !0;
5371
5374
  r = r.parentElement;
5372
5375
  }
5373
5376
  return !1;
@@ -5385,7 +5388,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5385
5388
  O(() => {
5386
5389
  let e = b.current, t = !m && ft().supportsTouchEvents;
5387
5390
  if ((t || o) && e && v) {
5388
- x.current || (x.current = new Ys(A, {
5391
+ x.current || (x.current = new Qs(A, {
5389
5392
  scrollingX: !0,
5390
5393
  scrollingY: !0,
5391
5394
  decelerationRate: .95,
@@ -5414,32 +5417,32 @@ var Ls = 24, Rs = T(S((e, t) => {
5414
5417
  m,
5415
5418
  o
5416
5419
  ]);
5417
- let R = ft().supportsTouchEvents, [re, z] = F(null), [B, { width: V, height: H }] = Br(), U = E((e) => {
5418
- z(e), B(e);
5419
- }, [B]), W = M(() => {
5420
- if (!re) return null;
5421
- let e = As(), t = Math.min(V, v?.width ?? V), n = Math.min(H, v?.height ?? H);
5420
+ let z = ft().supportsTouchEvents, [ne, B] = F(null), [V, { width: H, height: U }] = Vr(), W = E((e) => {
5421
+ B(e), V(e);
5422
+ }, [V]), re = M(() => {
5423
+ if (!ne) return null;
5424
+ let e = Ns(), t = Math.min(H, v?.width ?? H), n = Math.min(U, v?.height ?? U);
5422
5425
  return {
5423
- portalTarget: re,
5424
- width: V,
5425
- height: H,
5426
+ portalTarget: ne,
5427
+ width: H,
5428
+ height: U,
5426
5429
  viewportWidth: t,
5427
5430
  viewportHeight: n,
5428
5431
  reserveVertical: g ? e : 0,
5429
5432
  reserveHorizontal: _ ? e : 0,
5430
- crossInset: ks()
5433
+ crossInset: Ms()
5431
5434
  };
5432
5435
  }, [
5433
- re,
5434
- V,
5436
+ ne,
5435
5437
  H,
5438
+ U,
5436
5439
  v?.width,
5437
5440
  v?.height,
5438
5441
  g,
5439
5442
  _
5440
5443
  ]), ie = M(() => {
5441
5444
  if (!_) return null;
5442
- let e = L(ri, {
5445
+ let e = L(ii, {
5443
5446
  render: d,
5444
5447
  props: {
5445
5448
  orientation: Z.Vertical,
@@ -5452,7 +5455,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5452
5455
  }
5453
5456
  });
5454
5457
  return L("div", {
5455
- className: X("vertical-container", cc),
5458
+ className: X("vertical-container", dc),
5456
5459
  children: e
5457
5460
  });
5458
5461
  }, [
@@ -5462,7 +5465,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5462
5465
  v?.totalHeight
5463
5466
  ]), ae = M(() => {
5464
5467
  if (!g) return null;
5465
- let e = L(ri, {
5468
+ let e = L(ii, {
5466
5469
  render: u,
5467
5470
  props: {
5468
5471
  orientation: Z.Horizontal,
@@ -5475,7 +5478,7 @@ var Ls = 24, Rs = T(S((e, t) => {
5475
5478
  }
5476
5479
  });
5477
5480
  return L("div", {
5478
- className: X("horizontal-container", lc),
5481
+ className: X("horizontal-container", fc),
5479
5482
  children: e
5480
5483
  });
5481
5484
  }, [
@@ -5484,8 +5487,8 @@ var Ls = 24, Rs = T(S((e, t) => {
5484
5487
  v?.width,
5485
5488
  v?.totalWidth
5486
5489
  ]), G = M(() => _ && g ? L("div", {
5487
- className: X("corner-container", uc),
5488
- children: L(ri, {
5490
+ className: X("corner-container", pc),
5491
+ children: L(ii, {
5489
5492
  render: l,
5490
5493
  props: {}
5491
5494
  })
@@ -5495,33 +5498,33 @@ var Ls = 24, Rs = T(S((e, t) => {
5495
5498
  l
5496
5499
  ]);
5497
5500
  return L("div", {
5498
- className: X(p, "scrollpane", ac),
5501
+ className: X(p, "scrollpane", cc),
5499
5502
  style: f,
5500
5503
  ...h,
5501
5504
  ref: b,
5502
- children: L(Ms, {
5503
- value: W,
5504
- children: ne("div", {
5505
- className: X("scrollpane-content", oc),
5505
+ children: L(Fs, {
5506
+ value: re,
5507
+ children: R("div", {
5508
+ className: X("scrollpane-content", lc),
5506
5509
  children: [
5507
5510
  L("div", {
5508
- className: X("scrollpane-content-cell", sc),
5511
+ className: X("scrollpane-content-cell", uc),
5509
5512
  children: n
5510
5513
  }),
5511
5514
  _ ? ie : null,
5512
5515
  g ? ae : null,
5513
5516
  G,
5514
- R ? L("div", {
5515
- ref: U,
5516
- className: X("touch-thumb-overlay", dc)
5517
+ z ? L("div", {
5518
+ ref: W,
5519
+ className: X("touch-thumb-overlay", mc)
5517
5520
  }) : null
5518
5521
  ]
5519
5522
  })
5520
5523
  })
5521
5524
  });
5522
5525
  }));
5523
- fc.displayName = "ScrollPane";
5524
- var pc = (e) => {
5526
+ hc.displayName = "ScrollPane";
5527
+ var gc = (e) => {
5525
5528
  let { size: t, style: n, ...r } = e;
5526
5529
  return L("div", {
5527
5530
  className: "corner",
@@ -5532,7 +5535,7 @@ var pc = (e) => {
5532
5535
  },
5533
5536
  ...r
5534
5537
  });
5535
- }, mc = class {
5538
+ }, _c = class {
5536
5539
  constructor(e) {
5537
5540
  this._bounds = {
5538
5541
  minLeft: 0,
@@ -5651,7 +5654,7 @@ var pc = (e) => {
5651
5654
  }
5652
5655
  _applyBounds(e) {
5653
5656
  this._bounds = e;
5654
- let t = Sc(this._target.left, e.minLeft, e.maxLeft), n = Sc(this._target.top, e.minTop, e.maxTop);
5657
+ let t = Tc(this._target.left, e.minLeft, e.maxLeft), n = Tc(this._target.top, e.minTop, e.maxTop);
5655
5658
  t === this._target.left && n === this._target.top || (this._target = {
5656
5659
  left: t,
5657
5660
  top: n
@@ -5673,12 +5676,12 @@ var pc = (e) => {
5673
5676
  return this._observe(e, "both");
5674
5677
  }
5675
5678
  _observe(e, t) {
5676
- if (!e) return xc;
5679
+ if (!e) return wc;
5677
5680
  let n = (e, n) => {
5678
5681
  let r = this._measuredClient;
5679
5682
  this._setMeasuredClient(t === "height" ? r?.width ?? 0 : e, t === "width" ? r?.height ?? 0 : n);
5680
5683
  };
5681
- if (!bc()) return n(0, 0), xc;
5684
+ if (!Cc()) return n(0, 0), wc;
5682
5685
  let r = new ResizeObserver((e) => {
5683
5686
  let t = e[0]?.contentRect;
5684
5687
  t && n(t.width, t.height);
@@ -5725,17 +5728,17 @@ var pc = (e) => {
5725
5728
  }
5726
5729
  setTarget(e, t, n) {
5727
5730
  let r = this._bounds;
5728
- return e = Sc(e, r.minLeft, r.maxLeft), t = Sc(t, r.minTop, r.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5731
+ return e = Tc(e, r.minLeft, r.maxLeft), t = Tc(t, r.minTop, r.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
5729
5732
  left: e,
5730
5733
  top: t
5731
5734
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
5732
5735
  }
5733
5736
  _startAnimation() {
5734
- let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width * _c : 1 / 0, i = n.height > 0 ? n.height * _c : 1 / 0, a = Sc(e.left, t.left - r, t.left + r), o = Sc(e.top, t.top - i, t.top + i), s = Math.max(Math.abs(t.left - a), Math.abs(t.top - o)), c = Math.min(200, s * gc);
5735
- this._anim = c <= vc ? null : {
5737
+ let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width * bc : 1 / 0, i = n.height > 0 ? n.height * bc : 1 / 0, a = Tc(e.left, t.left - r, t.left + r), o = Tc(e.top, t.top - i, t.top + i), s = Math.max(Math.abs(t.left - a), Math.abs(t.top - o)), c = Math.min(200, s * yc);
5738
+ this._anim = c <= xc ? null : {
5736
5739
  fromLeft: a,
5737
5740
  fromTop: o,
5738
- start: yc(),
5741
+ start: Sc(),
5739
5742
  duration: c
5740
5743
  };
5741
5744
  }
@@ -5775,7 +5778,7 @@ var pc = (e) => {
5775
5778
  _advance() {
5776
5779
  let e = this._current, t = this._target, n = this._anim, r, i, a = !1;
5777
5780
  if (n) {
5778
- let e = (yc() - n.start) / n.duration;
5781
+ let e = (Sc() - n.start) / n.duration;
5779
5782
  if (e >= 1) r = t.left, i = t.top, this._anim = null;
5780
5783
  else {
5781
5784
  let o = 1 - (1 - e) ** 3;
@@ -5787,7 +5790,7 @@ var pc = (e) => {
5787
5790
  top: i
5788
5791
  }, this._viewport = null, this._emit()), a;
5789
5792
  }
5790
- }, hc = 200, gc = 2.5, _c = 1.5, vc = 17, yc = () => typeof performance < "u" ? performance.now() : Date.now(), bc = () => typeof ResizeObserver < "u", xc = () => {}, Sc = (e, t, n) => Math.min(n, Math.max(t, e)), Cc = class {
5793
+ }, vc = 200, yc = 2.5, bc = 1.5, xc = 17, Sc = () => typeof performance < "u" ? performance.now() : Date.now(), Cc = () => typeof ResizeObserver < "u", wc = () => {}, Tc = (e, t, n) => Math.min(n, Math.max(t, e)), Ec = class {
5791
5794
  constructor(e, t, n, r, i) {
5792
5795
  this._h = e, this._v = t, this._followH = n, this._followV = r, this._zoomCtrl = i, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
5793
5796
  }
@@ -5900,8 +5903,8 @@ var pc = (e) => {
5900
5903
  setContent(e, t, n = 0, r = 0) {
5901
5904
  this._same ? this._h.setContent(e, t, n, r) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, r));
5902
5905
  }
5903
- }, wc = 300, Tc = 100, Ec = 1e6, Dc = 100, Oc = 50, kc = T(S((e, t) => {
5904
- let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o = wc, endScrollIncrement: s = Tc, style: c = ct, onMouseDown: l, onThumbDrag: u, onScrollOffset: d, onScroll: f, scaleLimit: p = Ec, scaleFactor: m = Dc, precisionFactor: h = Oc, renderScrollbar: g = nc, ..._ } = e;
5906
+ }, Dc = 300, Oc = 100, kc = 1e6, Ac = 100, jc = 50, Mc = T(S((e, t) => {
5907
+ let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o = Dc, endScrollIncrement: s = Oc, style: c = ct, onMouseDown: l, onThumbDrag: u, onScrollOffset: d, onScroll: f, scaleLimit: p = kc, scaleFactor: m = Ac, precisionFactor: h = jc, renderScrollbar: g = ac, ..._ } = e;
5905
5908
  f && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
5906
5909
  let v = Y(l ?? (() => {}), [l]), [y, b] = F(!1), x = P(0), S = M(() => {
5907
5910
  let e = p === 0 ? i : Math.min(i ?? 0, Math.max(a ?? 0, (n ?? 0) + (r ?? 0)) + (o ?? 0));
@@ -5942,7 +5945,7 @@ var pc = (e) => {
5942
5945
  }, []), k = E((e) => {
5943
5946
  b(!0), v?.(e), document.addEventListener("mousemove", D, { passive: !0 }), document.addEventListener("mouseup", O, { passive: !0 });
5944
5947
  }, [D, O]);
5945
- return L(ri, {
5948
+ return L(ii, {
5946
5949
  render: g,
5947
5950
  props: {
5948
5951
  style: c,
@@ -5958,8 +5961,8 @@ var pc = (e) => {
5958
5961
  }
5959
5962
  });
5960
5963
  }));
5961
- kc.displayName = "VirtualScrollbar";
5962
- var Ac = "_scrollbar-themed_nj3vu_7", jc = (e) => ({
5964
+ Mc.displayName = "VirtualScrollbar";
5965
+ var Nc = "_scrollbar-themed_nj3vu_7", Pc = (e) => ({
5963
5966
  "--scrollbar-track-color": e.track,
5964
5967
  "--scrollbar-thumb-color": e.thumb,
5965
5968
  "--scrollbar-button-color": e.button || e.thumb,
@@ -5971,11 +5974,13 @@ var Ac = "_scrollbar-themed_nj3vu_7", jc = (e) => ({
5971
5974
  "--scrollbar-border-radius": "9999px",
5972
5975
  "--scrollbar-border-width": "2px",
5973
5976
  "--scrollbar-min-thumb-size": "24px"
5974
- }), Mc = () => {
5977
+ }), Fc = (e) => {
5975
5978
  if (typeof window > "u") return !1;
5976
- let e = window.visualViewport;
5977
- return !!e && window.innerHeight - e.height * e.scale > 150;
5978
- }, Nc = (e) => {
5979
+ let t = jr();
5980
+ if (t?.overlaysContent) return t.boundingRect.height > 150;
5981
+ let n = window.visualViewport;
5982
+ return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
5983
+ }, Ic = (e) => {
5979
5984
  let t = Object.freeze({ ...e }), n = !(t.disabled ?? ft().deviceType === "mouseOnly"), r = {
5980
5985
  active: !1,
5981
5986
  inputMode: "text"
@@ -6006,8 +6011,8 @@ var Ac = "_scrollbar-themed_nj3vu_7", jc = (e) => ({
6006
6011
  a.delete(e);
6007
6012
  })
6008
6013
  };
6009
- }, Pc = null, Fc = b(null), Ic = (e) => {
6010
- let { store: t, disabled: n, disableScrollIntoView: r, keepOnTap: i, children: a } = e, o = M(() => t ?? Nc({
6014
+ }, Lc = null, Rc = b(null), zc = (e) => {
6015
+ let { store: t, disabled: n, disableScrollIntoView: r, keepOnTap: i, children: a } = e, o = M(() => t ?? Ic({
6011
6016
  disabled: n,
6012
6017
  disableScrollIntoView: r,
6013
6018
  keepOnTap: i
@@ -6017,14 +6022,117 @@ var Ac = "_scrollbar-themed_nj3vu_7", jc = (e) => ({
6017
6022
  r,
6018
6023
  i
6019
6024
  ]);
6020
- return x(Fc.Provider, { value: o }, a);
6021
- }, Lc = () => D(Fc) ?? (Pc ||= Nc(), Pc), Rc = () => {
6022
- let e = Lc();
6025
+ return x(Rc.Provider, { value: o }, a);
6026
+ }, Bc = () => D(Rc) ?? (Lc ||= Ic(), Lc), Vc = () => {
6027
+ let e = Bc();
6023
6028
  return I(e.subscribe, e.getState, e.getState), e;
6024
- }, zc = oe((e, t) => {
6029
+ }, Hc = null, Uc = null, Wc = /* @__PURE__ */ new Set(), Gc = (e, t) => {
6030
+ t === null && Uc !== e || Hc === t && Uc === e || (Hc = t, Uc = t === null ? null : e, Wc.forEach((e) => e()));
6031
+ }, Kc = () => Hc, qc = (e) => (Wc.add(e), () => {
6032
+ Wc.delete(e);
6033
+ }), Jc = S((e, t) => {
6034
+ let { floating: n, anchor: r = null, onShownChange: i, onKeyboardClose: a, className: o, style: s, children: c } = e, [l, u] = F(null), d = E((e) => {
6035
+ u(e), typeof t == "function" ? t(e) : t && (t.current = e);
6036
+ }, [t]), f = P(n);
6037
+ f.current = n;
6038
+ let p = P({
6039
+ onShownChange: i,
6040
+ onKeyboardClose: a
6041
+ });
6042
+ p.current = {
6043
+ onShownChange: i,
6044
+ onKeyboardClose: a
6045
+ };
6046
+ let m = P(null);
6047
+ zr(() => {
6048
+ if (!l || typeof window > "u") return;
6049
+ let e = {}, t = 0, n = 0, r = !1, i = !1, a = window.innerHeight, o = !1, s = jr(), c = !1, u = (e) => {
6050
+ s && e !== c && (c = e, s.overlaysContent = e);
6051
+ }, d = (t) => {
6052
+ t !== i && (i = t, l.style.opacity = t ? "1" : "0", l.style.pointerEvents = t ? "auto" : "none", t || Gc(e, null), p.current.onShownChange?.(t));
6053
+ }, h = () => {
6054
+ t = 0;
6055
+ let n = window.visualViewport, i = n?.scale ?? 1, a = n?.offsetTop ?? 0, o = n?.height ?? window.innerHeight, u = f.current && !r;
6056
+ if (u && c) {
6057
+ if (n && i > 1.01) {
6058
+ let e = s.boundingRect.height;
6059
+ l.style.bottom = "auto", l.style.top = a + o - (e + l.offsetHeight) / i + "px", l.style.left = `${n.offsetLeft}px`, l.style.width = n.width * i + "px", l.style.transform = `scale(${1 / i})`;
6060
+ } else l.style.top = "auto", l.style.bottom = "env(keyboard-inset-height, 0px)", l.style.left = "0px", l.style.width = "100%", l.style.transform = "";
6061
+ l.style.transition = "opacity 150ms ease-out", d(!0), Gc(e, l.getBoundingClientRect().top);
6062
+ return;
6063
+ }
6064
+ let p = u ? a + o - l.offsetHeight / i : a;
6065
+ l.style.bottom = "auto", l.style.top = `${p}px`, l.style.left = `${n?.offsetLeft ?? 0}px`, l.style.width = (n?.width ?? window.innerWidth) * i + "px", l.style.transform = i === 1 ? "" : `scale(${1 / i})`, u ? (l.style.transition = "opacity 150ms ease-out", d(!0), Gc(e, p)) : (l.style.transition = "none", d(!1));
6066
+ }, g = () => {
6067
+ t ||= requestAnimationFrame(h);
6068
+ }, _ = () => {
6069
+ f.current && (r = !0, l.style.transition = "none", d(!1), clearTimeout(n), n = window.setTimeout(() => {
6070
+ r = !1, h();
6071
+ }, 150));
6072
+ }, v = () => {
6073
+ _(), g();
6074
+ }, y = () => {
6075
+ v(), f.current && (Fc(a) ? o = !0 : o && (o = !1, p.current.onKeyboardClose?.()));
6076
+ }, b = () => {
6077
+ o = !1, window.setTimeout(() => {
6078
+ Fc() || (a = window.innerHeight);
6079
+ }, 300);
6080
+ };
6081
+ m.current = () => {
6082
+ u(f.current), f.current ? (a = window.innerHeight, o = !1, _()) : (clearTimeout(n), r = !1), g();
6083
+ };
6084
+ let x = typeof ResizeObserver < "u" ? new ResizeObserver(g) : null;
6085
+ x?.observe(l);
6086
+ let S = () => u(!0), C = (e) => {
6087
+ f.current || l.contains(e.relatedTarget) || u(!1);
6088
+ };
6089
+ l.addEventListener("focusin", S), l.addEventListener("focusout", C), s?.addEventListener("geometrychange", y);
6090
+ let w = window.visualViewport;
6091
+ return w?.addEventListener("resize", y), w?.addEventListener("scroll", v), window.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), window.addEventListener("orientationchange", b), f.current && m.current(), h(), () => {
6092
+ cancelAnimationFrame(t), clearTimeout(n), x?.disconnect(), w?.removeEventListener("resize", y), w?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), l.removeEventListener("focusin", S), l.removeEventListener("focusout", C), s?.removeEventListener("geometrychange", y), u(!1), m.current = null, Gc(e, null), i && p.current.onShownChange?.(!1);
6093
+ };
6094
+ }, [l]), O(() => {
6095
+ m.current?.();
6096
+ }, [n]);
6097
+ let h = Co(), g = So(r), { className: _, attrs: v } = Yi(h), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = jn(), [, x] = F(0);
6098
+ return O(() => {
6099
+ l && !l.isConnected && x((e) => e + 1);
6100
+ }), typeof document > "u" ? null : V(L("div", {
6101
+ ref: d,
6102
+ className: X("keyboard-accessory", _, o),
6103
+ ...y,
6104
+ style: {
6105
+ position: "fixed",
6106
+ top: 0,
6107
+ left: 0,
6108
+ boxSizing: "border-box",
6109
+ transformOrigin: "top left",
6110
+ zIndex: vi("grid"),
6111
+ opacity: 0,
6112
+ pointerEvents: "none",
6113
+ ...s
6114
+ },
6115
+ children: c
6116
+ }), b());
6117
+ });
6118
+ Jc.displayName = "KeyboardAccessory";
6119
+ var Yc = {
6120
+ inset: 0,
6121
+ offsetTop: 0
6122
+ }, Xc = (e) => {
6123
+ let t = Rr(e), n = !!t && Fc(), r = t?.height, i = P(!1);
6124
+ return O(() => {
6125
+ if (r === void 0) return;
6126
+ let e = i.current;
6127
+ i.current = n, (n || e) && (window.scrollX === 0 && window.scrollY === 0 || window.scrollTo(0, 0));
6128
+ }, [r, n]), t && n ? {
6129
+ inset: Math.max(0, Math.round(window.innerHeight - t.height)),
6130
+ offsetTop: Math.round(t.offsetTop)
6131
+ } : Yc;
6132
+ }, Zc = oe((e, t) => {
6025
6133
  t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
6026
- }), Bc = oe((e, t) => {
6027
- var n = zc();
6134
+ }), Qc = oe((e, t) => {
6135
+ var n = Zc();
6028
6136
  function r() {}
6029
6137
  function i() {}
6030
6138
  i.resetWarningCache = r, t.exports = function() {
@@ -6064,70 +6172,70 @@ var Ac = "_scrollbar-themed_nj3vu_7", jc = (e) => ({
6064
6172
  return a.PropTypes = a, a;
6065
6173
  };
6066
6174
  }), Q = ce(oe((e, t) => {
6067
- t.exports = Bc()();
6175
+ t.exports = Qc()();
6068
6176
  })(), 1);
6069
- function Vc(e, t) {
6177
+ function $c(e, t) {
6070
6178
  for (let n = 0, r = e.length; n < r; n++) if (t.apply(t, [
6071
6179
  e[n],
6072
6180
  n,
6073
6181
  e
6074
6182
  ])) return e[n];
6075
6183
  }
6076
- function Hc(e) {
6184
+ function el(e) {
6077
6185
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
6078
6186
  }
6079
- function Uc(e) {
6187
+ function tl(e) {
6080
6188
  return typeof e == "number" && !isNaN(e);
6081
6189
  }
6082
6190
  function $(e) {
6083
6191
  return parseInt(e, 10);
6084
6192
  }
6085
- function Wc(e, t, n) {
6193
+ function nl(e, t, n) {
6086
6194
  if (e[t]) return /* @__PURE__ */ Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`);
6087
6195
  }
6088
- var Gc = [
6196
+ var rl = [
6089
6197
  "Moz",
6090
6198
  "Webkit",
6091
6199
  "O",
6092
6200
  "ms"
6093
6201
  ];
6094
- function Kc(e, t) {
6202
+ function il(e, t) {
6095
6203
  return t ? `${t}${function(e) {
6096
6204
  let t = "", n = !0;
6097
6205
  for (let r = 0; r < e.length; r++) n ? (t += e[r].toUpperCase(), n = !1) : e[r] === "-" ? n = !0 : t += e[r];
6098
6206
  return t;
6099
6207
  }(e)}` : e;
6100
6208
  }
6101
- var qc = function(e = "transform") {
6209
+ var al = function(e = "transform") {
6102
6210
  if (typeof window > "u") return "";
6103
6211
  let t = window.document?.documentElement?.style;
6104
6212
  if (!t || e in t) return "";
6105
- for (let n = 0; n < Gc.length; n++) if (Kc(e, Gc[n]) in t) return Gc[n];
6213
+ for (let n = 0; n < rl.length; n++) if (il(e, rl[n]) in t) return rl[n];
6106
6214
  return "";
6107
- }(), Jc = "";
6108
- function Yc(e, t) {
6109
- Jc ||= Vc([
6215
+ }(), ol = "";
6216
+ function sl(e, t) {
6217
+ ol ||= $c([
6110
6218
  "matches",
6111
6219
  "webkitMatchesSelector",
6112
6220
  "mozMatchesSelector",
6113
6221
  "msMatchesSelector",
6114
6222
  "oMatchesSelector"
6115
6223
  ], function(t) {
6116
- return Hc(e[t]);
6224
+ return el(e[t]);
6117
6225
  }) ?? "";
6118
- let n = e[Jc];
6119
- return !!Hc(n) && !!n.call(e, t);
6226
+ let n = e[ol];
6227
+ return !!el(n) && !!n.call(e, t);
6120
6228
  }
6121
- function Xc(e, t, n) {
6229
+ function cl(e, t, n) {
6122
6230
  let r = e;
6123
6231
  do {
6124
- if (Yc(r, t)) return !0;
6232
+ if (sl(r, t)) return !0;
6125
6233
  if (r === n) return !1;
6126
6234
  r = r.parentNode;
6127
6235
  } while (r);
6128
6236
  return !1;
6129
6237
  }
6130
- function Zc(e, t, n, r) {
6238
+ function ll(e, t, n, r) {
6131
6239
  if (!e) return;
6132
6240
  let i = {
6133
6241
  capture: !0,
@@ -6135,7 +6243,7 @@ function Zc(e, t, n, r) {
6135
6243
  }, a = n;
6136
6244
  e.addEventListener ? e.addEventListener(t, a, i) : e.attachEvent ? e.attachEvent("on" + t, a) : e["on" + t] = a;
6137
6245
  }
6138
- function Qc(e, t, n, r) {
6246
+ function ul(e, t, n, r) {
6139
6247
  if (!e) return;
6140
6248
  let i = {
6141
6249
  capture: !0,
@@ -6143,27 +6251,27 @@ function Qc(e, t, n, r) {
6143
6251
  }, a = n;
6144
6252
  e.removeEventListener ? e.removeEventListener(t, a, i) : e.detachEvent ? e.detachEvent("on" + t, a) : e["on" + t] = null;
6145
6253
  }
6146
- function $c(e) {
6254
+ function dl(e) {
6147
6255
  let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
6148
6256
  return t += $(n.borderTopWidth), t += $(n.borderBottomWidth), t;
6149
6257
  }
6150
- function el(e) {
6258
+ function fl(e) {
6151
6259
  let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
6152
6260
  return t += $(n.borderLeftWidth), t += $(n.borderRightWidth), t;
6153
6261
  }
6154
- function tl(e) {
6262
+ function pl(e) {
6155
6263
  let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
6156
6264
  return t -= $(n.paddingTop), t -= $(n.paddingBottom), t;
6157
6265
  }
6158
- function nl(e) {
6266
+ function ml(e) {
6159
6267
  let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
6160
6268
  return t -= $(n.paddingLeft), t -= $(n.paddingRight), t;
6161
6269
  }
6162
- function rl({ x: e, y: t }, n, r) {
6270
+ function hl({ x: e, y: t }, n, r) {
6163
6271
  let i = `translate(${e}${r},${t}${r})`;
6164
6272
  return n && (i = `translate(${typeof n.x == "string" ? n.x : n.x + r}, ${typeof n.y == "string" ? n.y : n.y + r})` + i), i;
6165
6273
  }
6166
- function il(e, t) {
6274
+ function gl(e, t) {
6167
6275
  if (!e) return;
6168
6276
  let n = e.getElementById("react-draggable-style-el");
6169
6277
  if (!n) {
@@ -6174,12 +6282,12 @@ function il(e, t) {
6174
6282
  var r, i;
6175
6283
  e.body && (r = e.body, i = "react-draggable-transparent-selection", r.classList ? r.classList.add(i) : r.className.match(RegExp(`(?:^|\\s)${i}(?!\\S)`)) || (r.className += ` ${i}`));
6176
6284
  }
6177
- function al(e) {
6285
+ function _l(e) {
6178
6286
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
6179
- ol(e);
6180
- }) : ol(e);
6287
+ vl(e);
6288
+ }) : vl(e);
6181
6289
  }
6182
- function ol(e) {
6290
+ function vl(e) {
6183
6291
  var t, n;
6184
6292
  if (e) try {
6185
6293
  e.body && (t = e.body, n = "react-draggable-transparent-selection", t.classList ? t.classList.remove(n) : t.className = t.className.replace(RegExp(`(?:^|\\s)${n}(?!\\S)`, "g"), ""));
@@ -6191,21 +6299,21 @@ function ol(e) {
6191
6299
  }
6192
6300
  } catch {}
6193
6301
  }
6194
- function sl(e, t, n) {
6302
+ function yl(e, t, n) {
6195
6303
  return [Math.round(t / e[0]) * e[0], Math.round(n / e[1]) * e[1]];
6196
6304
  }
6197
- function cl(e) {
6305
+ function bl(e) {
6198
6306
  return e.props.axis === "both" || e.props.axis === "x";
6199
6307
  }
6200
- function ll(e) {
6308
+ function xl(e) {
6201
6309
  return e.props.axis === "both" || e.props.axis === "y";
6202
6310
  }
6203
- function ul(e, t, n) {
6311
+ function Sl(e, t, n) {
6204
6312
  let r = typeof t == "number" ? function(e, t) {
6205
- return e.targetTouches && Vc(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && Vc(e.changedTouches, (e) => t === e.identifier);
6313
+ return e.targetTouches && $c(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && $c(e.changedTouches, (e) => t === e.identifier);
6206
6314
  }(e, t) : null;
6207
6315
  if (typeof t == "number" && !r) return null;
6208
- let i = pl(n);
6316
+ let i = Tl(n);
6209
6317
  return function(e, t, n) {
6210
6318
  let r = t === t.ownerDocument.body ? {
6211
6319
  left: 0,
@@ -6217,8 +6325,8 @@ function ul(e, t, n) {
6217
6325
  };
6218
6326
  }(r || e, n.props.offsetParent || i.offsetParent || i.ownerDocument.body, n.props.scale);
6219
6327
  }
6220
- function dl(e, t, n) {
6221
- let r = !Uc(e.lastX), i = pl(e);
6328
+ function Cl(e, t, n) {
6329
+ let r = !tl(e.lastX), i = Tl(e);
6222
6330
  return r ? {
6223
6331
  node: i,
6224
6332
  deltaX: 0,
@@ -6237,7 +6345,7 @@ function dl(e, t, n) {
6237
6345
  y: n
6238
6346
  };
6239
6347
  }
6240
- function fl(e, t) {
6348
+ function wl(e, t) {
6241
6349
  let n = e.props.scale;
6242
6350
  return {
6243
6351
  node: t.node,
@@ -6249,46 +6357,46 @@ function fl(e, t) {
6249
6357
  lastY: e.state.y
6250
6358
  };
6251
6359
  }
6252
- function pl(e) {
6360
+ function Tl(e) {
6253
6361
  let t = e.findDOMNode();
6254
6362
  if (!t) throw Error("<DraggableCore>: Unmounted during event!");
6255
6363
  return t;
6256
6364
  }
6257
- var ml = {
6365
+ var El = {
6258
6366
  start: "touchstart",
6259
6367
  move: "touchmove",
6260
6368
  stop: "touchend"
6261
- }, hl = {
6369
+ }, Dl = {
6262
6370
  start: "mousedown",
6263
6371
  move: "mousemove",
6264
6372
  stop: "mouseup"
6265
- }, gl = hl, _l = class extends g.Component {
6373
+ }, Ol = Dl, kl = class extends g.Component {
6266
6374
  constructor() {
6267
6375
  super(...arguments), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, this.touchIdentifier = null, this.mounted = !1, this.handleDragStart = (e) => {
6268
6376
  if (this.props.onMouseDown(e), !this.props.allowAnyClick && (typeof e.button == "number" && e.button !== 0 || e.ctrlKey)) return !1;
6269
6377
  let t = this.findDOMNode();
6270
6378
  if (!t || !t.ownerDocument || !t.ownerDocument.body) throw Error("<DraggableCore> not mounted on DragStart!");
6271
6379
  let { ownerDocument: n } = t;
6272
- if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !Xc(e.target, this.props.handle, t) || this.props.cancel && Xc(e.target, this.props.cancel, t)) return;
6380
+ if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !cl(e.target, this.props.handle, t) || this.props.cancel && cl(e.target, this.props.cancel, t)) return;
6273
6381
  e.type !== "touchstart" || this.props.allowMobileScroll || e.preventDefault();
6274
6382
  let r = function(e) {
6275
6383
  return e.targetTouches && e.targetTouches[0] ? e.targetTouches[0].identifier : e.changedTouches && e.changedTouches[0] ? e.changedTouches[0].identifier : void 0;
6276
6384
  }(e);
6277
6385
  this.touchIdentifier = r;
6278
- let i = ul(e, r, this);
6386
+ let i = Sl(e, r, this);
6279
6387
  if (i == null) return;
6280
- let { x: a, y: o } = i, s = dl(this, a, o);
6281
- this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack && il(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, Zc(n, gl.move, this.handleDrag), Zc(n, gl.stop, this.handleDragStop));
6388
+ let { x: a, y: o } = i, s = Cl(this, a, o);
6389
+ this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack && gl(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, ll(n, Ol.move, this.handleDrag), ll(n, Ol.stop, this.handleDragStop));
6282
6390
  }, this.handleDrag = (e) => {
6283
- let t = ul(e, this.touchIdentifier, this);
6391
+ let t = Sl(e, this.touchIdentifier, this);
6284
6392
  if (t == null) return;
6285
6393
  let { x: n, y: r } = t;
6286
6394
  if (Array.isArray(this.props.grid)) {
6287
6395
  let e = n - this.lastX, t = r - this.lastY;
6288
- if ([e, t] = sl(this.props.grid, e, t), !e && !t) return;
6396
+ if ([e, t] = yl(this.props.grid, e, t), !e && !t) return;
6289
6397
  n = this.lastX + e, r = this.lastY + t;
6290
6398
  }
6291
- let i = dl(this, n, r);
6399
+ let i = Cl(this, n, r);
6292
6400
  if (!1 !== this.props.onDrag(e, i) && !1 !== this.mounted) this.lastX = n, this.lastY = r;
6293
6401
  else try {
6294
6402
  this.handleDragStop(new MouseEvent("mouseup"));
@@ -6298,35 +6406,35 @@ var ml = {
6298
6406
  }
6299
6407
  }, this.handleDragStop = (e) => {
6300
6408
  if (!this.dragging) return;
6301
- let t = ul(e, this.touchIdentifier, this);
6409
+ let t = Sl(e, this.touchIdentifier, this);
6302
6410
  if (t == null) return;
6303
6411
  let { x: n, y: r } = t;
6304
6412
  if (Array.isArray(this.props.grid)) {
6305
6413
  let e = n - this.lastX || 0, t = r - this.lastY || 0;
6306
- [e, t] = sl(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
6414
+ [e, t] = yl(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
6307
6415
  }
6308
- let i = dl(this, n, r);
6416
+ let i = Cl(this, n, r);
6309
6417
  if (!1 === this.props.onStop(e, i) || !1 === this.mounted) return !1;
6310
6418
  let a = this.findDOMNode();
6311
- a && this.props.enableUserSelectHack && al(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (Qc(a.ownerDocument, gl.move, this.handleDrag), Qc(a.ownerDocument, gl.stop, this.handleDragStop));
6312
- }, this.onMouseDown = (e) => (gl = hl, this.handleDragStart(e)), this.onMouseUp = (e) => (gl = hl, this.handleDragStop(e)), this.onTouchStart = (e) => (gl = ml, this.handleDragStart(e)), this.onTouchEnd = (e) => (gl = ml, this.handleDragStop(e));
6419
+ a && this.props.enableUserSelectHack && _l(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (ul(a.ownerDocument, Ol.move, this.handleDrag), ul(a.ownerDocument, Ol.stop, this.handleDragStop));
6420
+ }, this.onMouseDown = (e) => (Ol = Dl, this.handleDragStart(e)), this.onMouseUp = (e) => (Ol = Dl, this.handleDragStop(e)), this.onTouchStart = (e) => (Ol = El, this.handleDragStart(e)), this.onTouchEnd = (e) => (Ol = El, this.handleDragStop(e));
6313
6421
  }
6314
6422
  componentDidMount() {
6315
6423
  this.mounted = !0;
6316
6424
  let e = this.findDOMNode();
6317
- e && Zc(e, ml.start, this.onTouchStart, { passive: !1 });
6425
+ e && ll(e, El.start, this.onTouchStart, { passive: !1 });
6318
6426
  }
6319
6427
  componentWillUnmount() {
6320
6428
  this.mounted = !1;
6321
6429
  let e = this.findDOMNode();
6322
6430
  if (e) {
6323
6431
  let { ownerDocument: t } = e;
6324
- Qc(t, hl.move, this.handleDrag), Qc(t, ml.move, this.handleDrag), Qc(t, hl.stop, this.handleDragStop), Qc(t, ml.stop, this.handleDragStop), Qc(e, ml.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && al(t);
6432
+ ul(t, Dl.move, this.handleDrag), ul(t, El.move, this.handleDrag), ul(t, Dl.stop, this.handleDragStop), ul(t, El.stop, this.handleDragStop), ul(e, El.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && _l(t);
6325
6433
  }
6326
6434
  }
6327
6435
  findDOMNode() {
6328
6436
  if (this.props?.nodeRef) return this.props.nodeRef.current;
6329
- let e = z;
6437
+ let e = B;
6330
6438
  return typeof e.findDOMNode == "function" ? e.findDOMNode(this) : null;
6331
6439
  }
6332
6440
  render() {
@@ -6337,7 +6445,7 @@ var ml = {
6337
6445
  });
6338
6446
  }
6339
6447
  };
6340
- _l.displayName = "DraggableCore", _l.propTypes = {
6448
+ kl.displayName = "DraggableCore", kl.propTypes = {
6341
6449
  allowAnyClick: Q.default.bool,
6342
6450
  allowMobileScroll: Q.default.bool,
6343
6451
  children: Q.default.node.isRequired,
@@ -6356,10 +6464,10 @@ _l.displayName = "DraggableCore", _l.propTypes = {
6356
6464
  onStop: Q.default.func,
6357
6465
  onMouseDown: Q.default.func,
6358
6466
  scale: Q.default.number,
6359
- className: Wc,
6360
- style: Wc,
6361
- transform: Wc
6362
- }, _l.defaultProps = {
6467
+ className: nl,
6468
+ style: nl,
6469
+ transform: nl
6470
+ }, kl.defaultProps = {
6363
6471
  allowAnyClick: !1,
6364
6472
  allowMobileScroll: !1,
6365
6473
  disabled: !1,
@@ -6370,17 +6478,17 @@ _l.displayName = "DraggableCore", _l.propTypes = {
6370
6478
  onMouseDown: function() {},
6371
6479
  scale: 1
6372
6480
  };
6373
- var vl = class extends g.Component {
6481
+ var Al = class extends g.Component {
6374
6482
  constructor(e) {
6375
6483
  super(e), this.onDragStart = (e, t) => {
6376
- if (!1 === this.props.onStart(e, fl(this, t))) return !1;
6484
+ if (!1 === this.props.onStart(e, wl(this, t))) return !1;
6377
6485
  this.setState({
6378
6486
  dragging: !0,
6379
6487
  dragged: !0
6380
6488
  });
6381
6489
  }, this.onDrag = (e, t) => {
6382
6490
  if (!this.state.dragging) return !1;
6383
- let n = fl(this, t), r = {
6491
+ let n = wl(this, t), r = {
6384
6492
  x: n.x,
6385
6493
  y: n.y,
6386
6494
  slackX: 0,
@@ -6400,7 +6508,7 @@ var vl = class extends g.Component {
6400
6508
  bottom: e.bottom
6401
6509
  };
6402
6510
  }(r);
6403
- let i = pl(e);
6511
+ let i = Tl(e);
6404
6512
  if (typeof r == "string") {
6405
6513
  let { ownerDocument: e } = i, t = e.defaultView;
6406
6514
  if (!t) throw Error("Cannot resolve the owner window of the draggable node.");
@@ -6410,18 +6518,18 @@ var vl = class extends g.Component {
6410
6518
  r = {
6411
6519
  left: -i.offsetLeft + $(s.paddingLeft) + $(o.marginLeft),
6412
6520
  top: -i.offsetTop + $(s.paddingTop) + $(o.marginTop),
6413
- right: nl(a) - el(i) - i.offsetLeft + $(s.paddingRight) - $(o.marginRight),
6414
- bottom: tl(a) - $c(i) - i.offsetTop + $(s.paddingBottom) - $(o.marginBottom)
6521
+ right: ml(a) - fl(i) - i.offsetLeft + $(s.paddingRight) - $(o.marginRight),
6522
+ bottom: pl(a) - dl(i) - i.offsetTop + $(s.paddingBottom) - $(o.marginBottom)
6415
6523
  };
6416
6524
  }
6417
- return Uc(r.right) && (t = Math.min(t, r.right)), Uc(r.bottom) && (n = Math.min(n, r.bottom)), Uc(r.left) && (t = Math.max(t, r.left)), Uc(r.top) && (n = Math.max(n, r.top)), [t, n];
6525
+ return tl(r.right) && (t = Math.min(t, r.right)), tl(r.bottom) && (n = Math.min(n, r.bottom)), tl(r.left) && (t = Math.max(t, r.left)), tl(r.top) && (n = Math.max(n, r.top)), [t, n];
6418
6526
  }(this, r.x, r.y);
6419
6527
  r.x = i, r.y = a, r.slackX = this.state.slackX + (e - r.x), r.slackY = this.state.slackY + (t - r.y), n.x = r.x, n.y = r.y, n.deltaX = r.x - this.state.x, n.deltaY = r.y - this.state.y;
6420
6528
  }
6421
6529
  if (!1 === this.props.onDrag(e, n)) return !1;
6422
6530
  this.setState(r);
6423
6531
  }, this.onDragStop = (e, t) => {
6424
- if (!this.state.dragging || !1 === this.props.onStop(e, fl(this, t))) return !1;
6532
+ if (!this.state.dragging || !1 === this.props.onStop(e, wl(this, t))) return !1;
6425
6533
  let n = {
6426
6534
  dragging: !1,
6427
6535
  slackX: 0,
@@ -6458,25 +6566,25 @@ var vl = class extends g.Component {
6458
6566
  }
6459
6567
  findDOMNode() {
6460
6568
  if (this.props?.nodeRef) return this.props.nodeRef.current;
6461
- let e = z;
6569
+ let e = B;
6462
6570
  return typeof e.findDOMNode == "function" ? e.findDOMNode(this) : null;
6463
6571
  }
6464
6572
  render() {
6465
6573
  let { axis: e, bounds: t, children: n, defaultPosition: r, defaultClassName: i, defaultClassNameDragging: a, defaultClassNameDragged: o, position: s, positionOffset: c, scale: l, ...u } = this.props, d = {}, f = null, p = !s || this.state.dragging, m = s || r, h = {
6466
- x: cl(this) && p ? this.state.x : m.x,
6467
- y: ll(this) && p ? this.state.y : m.y
6574
+ x: bl(this) && p ? this.state.x : m.x,
6575
+ y: xl(this) && p ? this.state.y : m.y
6468
6576
  };
6469
6577
  this.state.isElementSVG ? f = function(e, t) {
6470
- return rl(e, t, "");
6578
+ return hl(e, t, "");
6471
6579
  }(h, c) : d = function(e, t) {
6472
- let n = rl(e, t, "px");
6473
- return { [Kc("transform", qc)]: n };
6580
+ let n = hl(e, t, "px");
6581
+ return { [il("transform", al)]: n };
6474
6582
  }(h, c);
6475
6583
  let _ = g.Children.only(n), v = X(_.props.className || "", i, {
6476
6584
  [a]: this.state.dragging,
6477
6585
  [o]: this.state.dragged
6478
6586
  });
6479
- return g.createElement(_l, {
6587
+ return g.createElement(kl, {
6480
6588
  ...u,
6481
6589
  onStart: this.onDragStart,
6482
6590
  onDrag: this.onDrag,
@@ -6491,8 +6599,8 @@ var vl = class extends g.Component {
6491
6599
  }));
6492
6600
  }
6493
6601
  };
6494
- vl.displayName = "Draggable", vl.propTypes = {
6495
- ..._l.propTypes,
6602
+ Al.displayName = "Draggable", Al.propTypes = {
6603
+ ...kl.propTypes,
6496
6604
  axis: Q.default.oneOf([
6497
6605
  "both",
6498
6606
  "x",
@@ -6524,11 +6632,11 @@ vl.displayName = "Draggable", vl.propTypes = {
6524
6632
  x: Q.default.number,
6525
6633
  y: Q.default.number
6526
6634
  }),
6527
- className: Wc,
6528
- style: Wc,
6529
- transform: Wc
6530
- }, vl.defaultProps = {
6531
- ..._l.defaultProps,
6635
+ className: nl,
6636
+ style: nl,
6637
+ transform: nl
6638
+ }, Al.defaultProps = {
6639
+ ...kl.defaultProps,
6532
6640
  axis: "both",
6533
6641
  bounds: !1,
6534
6642
  defaultClassName: "react-draggable",
@@ -6540,7 +6648,7 @@ vl.displayName = "Draggable", vl.propTypes = {
6540
6648
  },
6541
6649
  scale: 1
6542
6650
  };
6543
- var yl = {
6651
+ var jl = {
6544
6652
  axis: Q.default.oneOf([
6545
6653
  "both",
6546
6654
  "x",
@@ -6592,12 +6700,12 @@ var yl = {
6592
6700
  let [t] = e;
6593
6701
  return t.axis === "both" || t.axis === "x" ? Q.default.number.isRequired(...e) : Q.default.number(...e);
6594
6702
  }
6595
- }, bl = class extends g.Component {
6703
+ }, Ml = class extends g.Component {
6596
6704
  constructor(...e) {
6597
6705
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
6598
6706
  }
6599
6707
  static {
6600
- this.propTypes = yl;
6708
+ this.propTypes = jl;
6601
6709
  }
6602
6710
  static {
6603
6711
  this.defaultProps = {
@@ -6671,7 +6779,7 @@ var yl = {
6671
6779
  className: (t ? `${t} ` : "") + "react-resizable",
6672
6780
  children: [...g.Children.toArray(e.props.children), ...m.map((e) => {
6673
6781
  let t = this.handleRefs[e] ?? (this.handleRefs[e] = g.createRef());
6674
- return x(_l, {
6782
+ return x(kl, {
6675
6783
  ...n,
6676
6784
  nodeRef: t,
6677
6785
  key: `resizableHandle-${e}`,
@@ -6686,7 +6794,7 @@ var yl = {
6686
6794
  }), b.className && y.props.className && (b.className = `${y.props.className} ${b.className}`), _.cloneElement(y, b);
6687
6795
  var y, b;
6688
6796
  }
6689
- }, xl = class extends g.Component {
6797
+ }, Nl = class extends g.Component {
6690
6798
  constructor(...e) {
6691
6799
  super(...e), this.state = {
6692
6800
  width: this.props.width,
@@ -6700,7 +6808,7 @@ var yl = {
6700
6808
  }
6701
6809
  static {
6702
6810
  this.propTypes = {
6703
- ...yl,
6811
+ ...jl,
6704
6812
  children: Q.default.element
6705
6813
  };
6706
6814
  }
@@ -6714,7 +6822,7 @@ var yl = {
6714
6822
  }
6715
6823
  render() {
6716
6824
  let { handle: e, handleSize: t, onResize: n, onResizeStart: r, onResizeStop: i, draggableOpts: a, minConstraints: o, maxConstraints: s, lockAspectRatio: c, axis: l, width: u, height: d, resizeHandles: f, style: p, transformScale: m, ...h } = this.props;
6717
- return L(bl, {
6825
+ return L(Ml, {
6718
6826
  axis: l,
6719
6827
  draggableOpts: a,
6720
6828
  handle: e,
@@ -6740,4 +6848,4 @@ var yl = {
6740
6848
  });
6741
6849
  }
6742
6850
  };
6743
- export { pe as ACCUMULATE, cn as AnimationModeProvider, Cc as AxisViewport, rn as Command, Vt as CommandAnchorProvider, xe as CommandButtonEntryLabel, _e as CommandButtonRegistryContext, ye as CommandButtonRegistryProvider, fe as CommandButtonType, At as CommandChainContext, Ut as CommandFallbackContext, Kt as CommandFallbackProvider, Jt as CommandFocusProvider, Mt as CommandOrderContext, K as CommandRegistry, Fe as CommandRegistryContext, kt as CommandResolver, zt as CommandResolverContext, Le as CommandScope, Pt as CommandScopeContext, Lt as CommandScopeProvider, Be as ConstantActivation, J as DefaultCommandButtonRegistry, Pe as DefaultCommandCatalogService, q as DefaultCommandRegistry, n as DefaultIconService, t as DynamicIcon, vs as EDGE_HOLD_INTERVAL_MS, jo as FloatPanel, Ao as FloatPanelSurface, Eo as FloatPopper, No as FloatProvider, Zt as FloatStackProvider, Ve as FocusActivation, ni as FocusKeyNavigation, Ei as INPUT_SELECTION_TINT, Ti as INPUT_SELECTION_VAR, Ho as InMemoryStore, wt as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, mr as LanguageStateKey, He as LayerActivation, ts as LocalStorageStore, ze as ManualActivation, de as MouseButtonCodes, ln as NotifierType, ys as PAGE_INITIAL_DELAY_MS, bs as PAGE_REPEAT_DELAY_MS, Zo as PendingRender, as as PendingRenderScope, Xo as PersistentStateProvider, Se as QUICK_ACTION_TAG, ui as ReactErrorBoundary, gn as ReactNotifierProvider, ot as ReactUtils, ri as RenderSlot, bl as Resizable, xl as ResizableBox, ai as RoundedTab, hc as SCROLL_ANIMATION_MS, yi as SERIES_COUNT, Oi as SXL_THEME_LAYERS, ki as SXL_THEME_LAYER_ORDER, fc as ScrollPane, ec as ScrollUtils, Rs as Scrollbar, Z as ScrollbarOrientation, Vo as SplitPane, Io as SplitPaneResizer, Mi as THEME_MODE_ATTR, Ni as THEME_SURFACE_ATTR, ws as TOUCH_THUMB_ASPECT, Ts as TOUCH_THUMB_MARGIN, Ds as TOUCH_THUMB_MARGIN_CROSS, Os as TOUCH_THUMB_MARGIN_END, Es as TOUCH_THUMB_MARGIN_START, Cs as TOUCH_THUMB_SIZE, zi as TokenThemeContext, Vi as TokenThemeProvider, Ms as TouchThumbFrameProvider, Is as TouchThumbHandle, hi as UncaughtErrorBoundary, mc as Viewport, Ic as VirtualKeyboardProvider, kc as VirtualScrollbar, r as WalkingIcon, gi as Z_INDEX, ke as asCommandCatalog, It as attachWhenReady, ji as buildThemeCSS, je as chromeToPartial, vr as composeCaretRect, un as createBusyHandle, Ne as createCommandCatalogService, e as createDynamicIconService, dn as createNoopBusyHandle, we as createResolvedCommand, Fi as createThemeScopeClass, xs as createTrackDrag, Nc as createVirtualKeyboardStore, Mo as defaultRenderFloatPanel, Oo as defaultRenderFloatPopupPanel, _s as defaultRenderScrollButtonEdge, gs as defaultRenderScrollButtonEnd, hs as defaultRenderScrollButtonStart, pc as defaultRenderScrollCorner, bi as defaultTheme, dr as exitEditMode, Ae as fetchCatalog, Ji as floatThemeScopeProps, wn as getDevicePixelRatio, Un as getInputModality, jc as getScrollbarCssVariables, br as getTextareaCaretRect, Nr as getVisualViewportRect, Ct as isCaretKey, Mc as isVirtualKeyboardUp, Et as keyEventCanonicals, Tt as keyStrokeToCanonical, ci as lazyComponent, Ln as measureUIText, Me as mergeChrome, vi as offsetZIndex, De as parseShortcutString, me as reduceDefinitions, Re as resolveAnchorSource, Hi as resolveToken, Ui as resolveTokens, Ac as scrollbarThemedClassName, Oe as serializeShortcut, lr as setEditMode, fr as subscribeEditModeExit, Gn as subscribeInputModality, Pr as subscribeVisualViewport, Pi as themeSurfaceProps, Ci as themeVars, Si as toVars, As as touchThumbCornerReserve, ks as touchThumbCrossInset, Qr as useAnimatedMeasure, sn as useAnimationMode, bn as useBoundSyncExternalStore, Y as useCallbackRef, be as useCommandButtonEntry, ve as useCommandButtonRegistry, jt as useCommandChain, Rt as useCommandElement, Ht as useCommandExecute, Wt as useCommandFallback, Yt as useCommandFocusRestore, Nt as useCommandOrder, Ie as useCommandRegistry, Bt as useCommandResolver, Ft as useCommandScope, tn as useCommands, nn as useContributeCommands, Cn as useDevicePixelRatio, pr as useEditMode, Qt as useFloat, en as useFloatPopupOpen, Po as useFloatStack, qi as useFloatSurface, En as useFullscreen, jn as useFullscreenPortal, Sr as useGlobalClipboard, Or as useId, Ar as useImperativeElement, qn as useInputModality, Rr as useIsomorphicLayoutEffect, hr as useLanguage, si as useLazyRetry, qr as useLocationSearch, Br as useMeasure, zn as useMouseDownAndHoldListener, _n as useNotifier, Tn as useOnClickOrFocusAway, Sn as useOptionalBoundSyncExternalStore, yn as useOptionalSyncExternalStore, os as usePendingRender, Jo as usePersistentState, Ii as useResolvedThemeMode, Rn as useSynchronizedPointerHandler, In as useTextSelectionDrag, xr as useTextareaCaretRect, Bi as useTokenThemeContext, Ns as useTouchThumbFrame, Cr as useTraceUpdate, Ss as useTrackDrag, gr as useTranslator, Rc as useVirtualKeyboard, Lc as useVirtualKeyboardStore, Lr as useVisualViewportRect, rs as whenRenderSettled, _i as zIndexVar };
6851
+ export { pe as ACCUMULATE, cn as AnimationModeProvider, Ec as AxisViewport, rn as Command, Vt as CommandAnchorProvider, xe as CommandButtonEntryLabel, _e as CommandButtonRegistryContext, ye as CommandButtonRegistryProvider, fe as CommandButtonType, At as CommandChainContext, Ut as CommandFallbackContext, Kt as CommandFallbackProvider, Jt as CommandFocusProvider, Mt as CommandOrderContext, K as CommandRegistry, Fe as CommandRegistryContext, kt as CommandResolver, zt as CommandResolverContext, Le as CommandScope, Pt as CommandScopeContext, Lt as CommandScopeProvider, Be as ConstantActivation, J as DefaultCommandButtonRegistry, Pe as DefaultCommandCatalogService, q as DefaultCommandRegistry, n as DefaultIconService, t as DynamicIcon, xs as EDGE_HOLD_INTERVAL_MS, Po as FloatPanel, No as FloatPanelSurface, ko as FloatPopper, Io as FloatProvider, Zt as FloatStackProvider, Ve as FocusActivation, ri as FocusKeyNavigation, Di as INPUT_SELECTION_TINT, Ei as INPUT_SELECTION_VAR, Go as InMemoryStore, wt as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, Jc as KeyboardAccessory, mr as LanguageStateKey, He as LayerActivation, is as LocalStorageStore, ze as ManualActivation, de as MouseButtonCodes, ln as NotifierType, Ss as PAGE_INITIAL_DELAY_MS, Cs as PAGE_REPEAT_DELAY_MS, es as PendingRender, cs as PendingRenderScope, $o as PersistentStateProvider, Se as QUICK_ACTION_TAG, di as ReactErrorBoundary, gn as ReactNotifierProvider, ot as ReactUtils, ii as RenderSlot, Ml as Resizable, Nl as ResizableBox, oi as RoundedTab, vc as SCROLL_ANIMATION_MS, bi as SERIES_COUNT, ki as SXL_THEME_LAYERS, Ai as SXL_THEME_LAYER_ORDER, hc as ScrollPane, rc as ScrollUtils, Vs as Scrollbar, Z as ScrollbarOrientation, Wo as SplitPane, zo as SplitPaneResizer, Ni as THEME_MODE_ATTR, Pi as THEME_SURFACE_ATTR, Ds as TOUCH_THUMB_ASPECT, Os as TOUCH_THUMB_MARGIN, As as TOUCH_THUMB_MARGIN_CROSS, js as TOUCH_THUMB_MARGIN_END, ks as TOUCH_THUMB_MARGIN_START, Es as TOUCH_THUMB_SIZE, Bi as TokenThemeContext, Hi as TokenThemeProvider, Fs as TouchThumbFrameProvider, zs as TouchThumbHandle, gi as UncaughtErrorBoundary, _c as Viewport, zc as VirtualKeyboardProvider, Mc as VirtualScrollbar, r as WalkingIcon, _i as Z_INDEX, ke as asCommandCatalog, It as attachWhenReady, Mi as buildThemeCSS, je as chromeToPartial, vr as composeCaretRect, un as createBusyHandle, Ne as createCommandCatalogService, e as createDynamicIconService, dn as createNoopBusyHandle, we as createResolvedCommand, Ii as createThemeScopeClass, ws as createTrackDrag, Ic as createVirtualKeyboardStore, Fo as defaultRenderFloatPanel, jo as defaultRenderFloatPopupPanel, bs as defaultRenderScrollButtonEdge, ys as defaultRenderScrollButtonEnd, vs as defaultRenderScrollButtonStart, gc as defaultRenderScrollCorner, xi as defaultTheme, dr as exitEditMode, Ae as fetchCatalog, Yi as floatThemeScopeProps, wn as getDevicePixelRatio, Un as getInputModality, Kc as getKeyboardAccessoryTop, Pc as getScrollbarCssVariables, br as getTextareaCaretRect, Pr as getVisualViewportRect, Ct as isCaretKey, Fc as isVirtualKeyboardUp, Et as keyEventCanonicals, Tt as keyStrokeToCanonical, li as lazyComponent, Ln as measureUIText, Me as mergeChrome, yi as offsetZIndex, De as parseShortcutString, me as reduceDefinitions, Re as resolveAnchorSource, Ui as resolveToken, Wi as resolveTokens, Nc as scrollbarThemedClassName, Oe as serializeShortcut, lr as setEditMode, fr as subscribeEditModeExit, Gn as subscribeInputModality, qc as subscribeKeyboardAccessoryTop, Fr as subscribeVisualViewport, Fi as themeSurfaceProps, wi as themeVars, Ci as toVars, Ns as touchThumbCornerReserve, Ms as touchThumbCrossInset, $r as useAnimatedMeasure, sn as useAnimationMode, bn as useBoundSyncExternalStore, Y as useCallbackRef, be as useCommandButtonEntry, ve as useCommandButtonRegistry, jt as useCommandChain, Rt as useCommandElement, Ht as useCommandExecute, Wt as useCommandFallback, Yt as useCommandFocusRestore, Nt as useCommandOrder, Ie as useCommandRegistry, Bt as useCommandResolver, Ft as useCommandScope, tn as useCommands, nn as useContributeCommands, Cn as useDevicePixelRatio, pr as useEditMode, Qt as useFloat, en as useFloatPopupOpen, Lo as useFloatStack, Ji as useFloatSurface, En as useFullscreen, jn as useFullscreenPortal, Sr as useGlobalClipboard, Or as useId, Ar as useImperativeElement, qn as useInputModality, zr as useIsomorphicLayoutEffect, Xc as useKeyboardResize, hr as useLanguage, ci as useLazyRetry, Jr as useLocationSearch, Vr as useMeasure, zn as useMouseDownAndHoldListener, _n as useNotifier, Tn as useOnClickOrFocusAway, Sn as useOptionalBoundSyncExternalStore, yn as useOptionalSyncExternalStore, ls as usePendingRender, Zo as usePersistentState, Li as useResolvedThemeMode, Rn as useSynchronizedPointerHandler, In as useTextSelectionDrag, xr as useTextareaCaretRect, Vi as useTokenThemeContext, Is as useTouchThumbFrame, Cr as useTraceUpdate, Ts as useTrackDrag, gr as useTranslator, Vc as useVirtualKeyboard, Bc as useVirtualKeyboardStore, Rr as useVisualViewportRect, os as whenRenderSettled, vi as zIndexVar };