@arkitektbedriftene/fe-lib 0.3.17 → 0.3.19

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,22 +1,22 @@
1
- import { jsx as z, jsxs as Ge, Fragment as En } from "react/jsx-runtime";
1
+ import { jsx as z, jsxs as Ze, Fragment as En } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
- import xe, { forwardRef as Ie, useLayoutEffect as qt, useEffect as Zt, useRef as Cn, createContext as kn, useMemo as Tn, useContext as Jt, isValidElement as In, cloneElement as Pn } from "react";
3
+ import xe, { forwardRef as Pe, useLayoutEffect as Zt, useEffect as Jt, useRef as Cn, createContext as kn, useMemo as Tn, useContext as Qt, isValidElement as In, cloneElement as Pn } from "react";
4
4
  import * as An from "react-dom";
5
5
  import { createPortal as Bn } from "react-dom";
6
- import * as Me from "@radix-ui/react-toolbar";
6
+ import * as Le from "@radix-ui/react-toolbar";
7
7
  import { f as On, g as Dn } from "./index.esm-d078f232.js";
8
- import * as Q from "@radix-ui/react-dropdown-menu";
9
- var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: N, backgroundColor: N, backgroundImage: N, borderImage: N, border: N, borderBlock: N, borderBlockEnd: N, borderBlockStart: N, borderBottom: N, borderBottomColor: N, borderColor: N, borderInline: N, borderInlineEnd: N, borderInlineStart: N, borderLeft: N, borderLeftColor: N, borderRight: N, borderRightColor: N, borderTop: N, borderTopColor: N, caretColor: N, color: N, columnRuleColor: N, fill: N, outline: N, outlineColor: N, stroke: N, textDecorationColor: N, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Y, minBlockSize: Y, maxBlockSize: Y, inlineSize: Y, minInlineSize: Y, maxInlineSize: Y, width: Y, minWidth: Y, maxWidth: Y, height: Y, minHeight: Y, maxHeight: Y, flexBasis: Y, gridTemplateColumns: Y, gridTemplateRows: Y, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, Fn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Pe = () => {
8
+ import * as ee from "@radix-ui/react-dropdown-menu";
9
+ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: W, backgroundColor: W, backgroundImage: W, borderImage: W, border: W, borderBlock: W, borderBlockEnd: W, borderBlockStart: W, borderBottom: W, borderBottomColor: W, borderColor: W, borderInline: W, borderInlineEnd: W, borderInlineStart: W, borderLeft: W, borderLeftColor: W, borderRight: W, borderRightColor: W, borderTop: W, borderTopColor: W, caretColor: W, color: W, columnRuleColor: W, fill: W, outline: W, outlineColor: W, stroke: W, textDecorationColor: W, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Y, minBlockSize: Y, maxBlockSize: Y, inlineSize: Y, minInlineSize: Y, maxInlineSize: Y, width: Y, minWidth: Y, maxWidth: Y, height: Y, minHeight: Y, maxHeight: Y, flexBasis: Y, gridTemplateColumns: Y, gridTemplateRows: Y, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, Ln = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Ae = () => {
10
10
  const e = /* @__PURE__ */ Object.create(null);
11
11
  return (t, n, ...r) => {
12
- const o = ((i) => JSON.stringify(i, Fn))(t);
12
+ const o = ((i) => JSON.stringify(i, Ln))(t);
13
13
  return o in e ? e[o] : e[o] = n(t, ...r);
14
14
  };
15
- }, de = Symbol.for("sxs.internal"), mt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), St = (e) => {
15
+ }, me = Symbol.for("sxs.internal"), ft = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), St = (e) => {
16
16
  for (const t in e)
17
17
  return !0;
18
18
  return !1;
19
- }, { hasOwnProperty: Ln } = Object.prototype, lt = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Nn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Nn) : [t]), Rt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, Wn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, zn = (e, t) => e in jn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${lt(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${lt(e)}:${r}fit-content`) + i) : String(t), jn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ee = (e) => e ? e + "-" : "", Qt = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? ee(t) + (l.includes("$") ? "" : ee(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Hn = /\s*,\s*(?![^()]*\))/, Vn = Object.prototype.toString, Ee = (e, t, n, r, o) => {
19
+ }, { hasOwnProperty: Fn } = Object.prototype, st = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Wn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Wn) : [t]), Rt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, Nn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, zn = (e, t) => e in jn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${st(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${st(e)}:${r}fit-content`) + i) : String(t), jn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, te = (e) => e ? e + "-" : "", en = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? te(t) + (l.includes("$") ? "" : te(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Hn = /\s*,\s*(?![^()]*\))/, Vn = Object.prototype.toString, Ee = (e, t, n, r, o) => {
20
20
  let i, s, l;
21
21
  const a = (c, m, d) => {
22
22
  let f, u;
@@ -24,36 +24,36 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
24
24
  for (f in p) {
25
25
  const x = f.charCodeAt(0) === 64, P = x && Array.isArray(p[f]) ? p[f] : [p[f]];
26
26
  for (u of P) {
27
- const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (I) => I[1].toUpperCase()), C = typeof u == "object" && u && u.toString === Vn && (!r.utils[S] || !m.length);
28
- if (S in r.utils && !C) {
29
- const I = r.utils[S];
30
- if (I !== s) {
31
- s = I, g(I(u)), s = null;
27
+ const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof u == "object" && u && u.toString === Vn && (!r.utils[S] || !m.length);
28
+ if (S in r.utils && !k) {
29
+ const C = r.utils[S];
30
+ if (C !== s) {
31
+ s = C, g(C(u)), s = null;
32
32
  continue;
33
33
  }
34
34
  } else if (S in Rt) {
35
- const I = Rt[S];
36
- if (I !== l) {
37
- l = I, g(I(u)), l = null;
35
+ const C = Rt[S];
36
+ if (C !== l) {
37
+ l = C, g(C(u)), l = null;
38
38
  continue;
39
39
  }
40
40
  }
41
- if (x && ($ = f.slice(1) in r.media ? "@media " + r.media[f.slice(1)] : f, f = $.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (I, A, k, O, D, F) => {
42
- const M = et.test(A), B = 0.0625 * (M ? -1 : 1), [b, v] = M ? [O, A] : [A, O];
43
- return "(" + (k[0] === "=" ? "" : k[0] === ">" === M ? "max-" : "min-") + b + ":" + (k[0] !== "=" && k.length === 1 ? v.replace(et, (T, R, w) => Number(R) + B * (k === ">" ? 1 : -1) + w) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? F.replace(et, (T, R, w) => Number(R) + B * (D === ">" ? -1 : 1) + w) : F) : "") + ")";
44
- })), C) {
45
- const I = x ? d.concat(f) : [...d], A = x ? [...m] : Wn(m, f.split(Hn));
46
- i !== void 0 && o(Et(...i)), i = void 0, a(u, A, I);
41
+ if (x && (w = f.slice(1) in r.media ? "@media " + r.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C, A, T, B, D, L) => {
42
+ const M = et.test(A), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [B, A] : [A, B];
43
+ return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(et, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? L.replace(et, (I, R, $) => Number(R) + O * (D === ">" ? -1 : 1) + $) : L) : "") + ")";
44
+ })), k) {
45
+ const C = x ? d.concat(f) : [...d], A = x ? [...m] : Nn(m, f.split(Hn));
46
+ i !== void 0 && o(Et(...i)), i = void 0, a(u, A, C);
47
47
  } else
48
- i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${ee(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = C ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : Qt(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${lt(f)}:`}${u}`);
48
+ i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : en(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${st(f)}:`}${u}`);
49
49
  }
50
50
  }
51
- var $, h;
51
+ var w, h;
52
52
  };
53
53
  g(c), i !== void 0 && o(Et(...i)), i = void 0;
54
54
  };
55
55
  a(e, t, n);
56
- }, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, _n = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ct = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), fe = (e) => ((t) => {
56
+ }, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, _n = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ct = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ge = (e) => ((t) => {
57
57
  let n, r = "";
58
58
  for (n = Math.abs(t); n > 52; n = n / 52 | 0)
59
59
  r = Ct(n % 52) + r;
@@ -63,7 +63,7 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
63
63
  for (; r; )
64
64
  t = 33 * t ^ n.charCodeAt(--r);
65
65
  return t;
66
- })(5381, JSON.stringify(e)) >>> 0), Oe = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Yn = (e) => {
66
+ })(5381, JSON.stringify(e)) >>> 0), De = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Yn = (e) => {
67
67
  if (e.href && !e.href.startsWith(location.origin))
68
68
  return !1;
69
69
  try {
@@ -115,7 +115,7 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
115
115
  const { cssText: f } = m;
116
116
  if (!f.startsWith("--sxs"))
117
117
  continue;
118
- const u = f.slice(14, -3).trim().split(/\s+/), g = Oe[u[0]];
118
+ const u = f.slice(14, -3).trim().split(/\s+/), g = De[u[0]];
119
119
  g && (t || (t = { sheet: l, reset: r, rules: {}, toString: n }), t.rules[g] = { group: d, index: a, cache: new Set(u) });
120
120
  }
121
121
  if (t)
@@ -130,10 +130,10 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
130
130
  t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset: r, toString: n };
131
131
  }
132
132
  const { sheet: i, rules: s } = t;
133
- for (let l = Oe.length - 1; l >= 0; --l) {
134
- const a = Oe[l];
133
+ for (let l = De.length - 1; l >= 0; --l) {
134
+ const a = De[l];
135
135
  if (!s[a]) {
136
- const c = Oe[l + 1], m = s[c] ? s[c].index : i.cssRules.length;
136
+ const c = De[l + 1], m = s[c] ? s[c].index : i.cssRules.length;
137
137
  i.insertRule("@media{}", m), i.insertRule(`--sxs{--sxs:${l}}`, m), s[a] = { group: i.cssRules[m + 1], index: m, cache: /* @__PURE__ */ new Set([l]) };
138
138
  }
139
139
  Xn(s[a]);
@@ -149,29 +149,29 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
149
149
  } catch {
150
150
  }
151
151
  };
152
- }, Be = Symbol(), Gn = Pe(), kt = (e, t) => Gn(e, () => (...n) => {
152
+ }, Oe = Symbol(), Gn = Ae(), kt = (e, t) => Gn(e, () => (...n) => {
153
153
  let r = { type: null, composers: /* @__PURE__ */ new Set() };
154
154
  for (const o of n)
155
155
  if (o != null)
156
- if (o[de]) {
157
- r.type == null && (r.type = o[de].type);
158
- for (const i of o[de].composers)
156
+ if (o[me]) {
157
+ r.type == null && (r.type = o[me].type);
158
+ for (const i of o[me].composers)
159
159
  r.composers.add(i);
160
160
  } else
161
161
  o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(Un(o, e));
162
162
  return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]), qn(e, r, t);
163
163
  }), Un = ({ variants: e, compoundVariants: t, defaultVariants: n, ...r }, o) => {
164
- const i = `${ee(o.prefix)}c-${fe(r)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
164
+ const i = `${te(o.prefix)}c-${ge(r)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
165
165
  for (const f in n)
166
166
  a[f] = String(n[f]);
167
167
  if (typeof e == "object" && e)
168
168
  for (const f in e) {
169
- m = a, d = f, Ln.call(m, d) || (a[f] = "undefined");
169
+ m = a, d = f, Fn.call(m, d) || (a[f] = "undefined");
170
170
  const u = e[f];
171
171
  for (const g in u) {
172
172
  const p = { [f]: String(g) };
173
173
  String(g) === "undefined" && c.push(f);
174
- const $ = u[g], h = [p, $, !St($)];
174
+ const w = u[g], h = [p, w, !St(w)];
175
175
  s.push(h);
176
176
  }
177
177
  }
@@ -180,8 +180,8 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
180
180
  for (const f of t) {
181
181
  let { css: u, ...g } = f;
182
182
  u = typeof u == "object" && u || {};
183
- for (const $ in g)
184
- g[$] = String(g[$]);
183
+ for (const w in g)
184
+ g[w] = String(g[w]);
185
185
  const p = [g, u, !St(u)];
186
186
  l.push(p);
187
187
  }
@@ -189,13 +189,13 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
189
189
  }, qn = (e, t, n) => {
190
190
  const [r, o, i, s] = Zn(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((d) => {
191
191
  function f() {
192
- for (let u = 0; u < f[Be].length; u++) {
193
- const [g, p] = f[Be][u];
192
+ for (let u = 0; u < f[Oe].length; u++) {
193
+ const [g, p] = f[Oe][u];
194
194
  d.rules[g].apply(p);
195
195
  }
196
- return f[Be] = [], null;
196
+ return f[Oe] = [], null;
197
197
  }
198
- return f[Be] = [], f.rules = {}, Oe.forEach((u) => f.rules[u] = { apply: (g) => f[Be].push([u, g]) }), f;
198
+ return f[Oe] = [], f.rules = {}, De.forEach((u) => f.rules[u] = { apply: (g) => f[Oe].push([u, g]) }), f;
199
199
  })(n) : null, a = (l || n).rules, c = `.${r}${o.length > 1 ? `:where(.${o.slice(1).join(".")})` : ""}`, m = (d) => {
200
200
  d = typeof d == "object" && d || Jn;
201
201
  const { css: f, ...u } = d, g = {};
@@ -210,38 +210,38 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
210
210
  n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ee(x, [`.${h}`], [], e, (A) => {
211
211
  a.styled.apply(A);
212
212
  }));
213
- const C = Tt(P, g, e.media), I = Tt(S, g, e.media, !0);
214
- for (const A of C)
213
+ const k = Tt(P, g, e.media), C = Tt(S, g, e.media, !0);
214
+ for (const A of k)
215
215
  if (A !== void 0)
216
- for (const [k, O, D] of A) {
217
- const F = `${h}-${fe(O)}-${k}`;
218
- p.add(F);
219
- const M = (D ? n.rules.resonevar : n.rules.onevar).cache, B = D ? a.resonevar : a.onevar;
220
- M.has(F) || (M.add(F), Ee(O, [`.${F}`], [], e, (b) => {
221
- B.apply(b);
216
+ for (const [T, B, D] of A) {
217
+ const L = `${h}-${ge(B)}-${T}`;
218
+ p.add(L);
219
+ const M = (D ? n.rules.resonevar : n.rules.onevar).cache, O = D ? a.resonevar : a.onevar;
220
+ M.has(L) || (M.add(L), Ee(B, [`.${L}`], [], e, (b) => {
221
+ O.apply(b);
222
222
  }));
223
223
  }
224
- for (const A of I)
224
+ for (const A of C)
225
225
  if (A !== void 0)
226
- for (const [k, O] of A) {
227
- const D = `${h}-${fe(O)}-${k}`;
228
- p.add(D), n.rules.allvar.cache.has(D) || (n.rules.allvar.cache.add(D), Ee(O, [`.${D}`], [], e, (F) => {
229
- a.allvar.apply(F);
226
+ for (const [T, B] of A) {
227
+ const D = `${h}-${ge(B)}-${T}`;
228
+ p.add(D), n.rules.allvar.cache.has(D) || (n.rules.allvar.cache.add(D), Ee(B, [`.${D}`], [], e, (L) => {
229
+ a.allvar.apply(L);
230
230
  }));
231
231
  }
232
232
  }
233
233
  if (typeof f == "object" && f) {
234
- const h = `${r}-i${fe(f)}-css`;
234
+ const h = `${r}-i${ge(f)}-css`;
235
235
  p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), Ee(f, [`.${h}`], [], e, (x) => {
236
236
  a.inline.apply(x);
237
237
  }));
238
238
  }
239
239
  for (const h of String(d.className || "").trim().split(/\s+/))
240
240
  h && p.add(h);
241
- const $ = u.className = [...p].join(" ");
242
- return { type: t.type, className: $, selector: c, props: u, toString: () => $, deferredInjector: l };
241
+ const w = u.className = [...p].join(" ");
242
+ return { type: t.type, className: w, selector: c, props: u, toString: () => w, deferredInjector: l };
243
243
  };
244
- return mt(m, { className: r, selector: c, [de]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
244
+ return ft(m, { className: r, selector: c, [me]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
245
245
  }, Zn = (e) => {
246
246
  let t = "";
247
247
  const n = [], r = {}, o = [];
@@ -268,11 +268,11 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
268
268
  continue e;
269
269
  {
270
270
  let u, g, p = 0;
271
- for (const $ in f) {
272
- if (d === String(f[$])) {
273
- if ($ !== "@initial") {
274
- const h = $.slice(1);
275
- (g = g || []).push(h in n ? n[h] : $.replace(/^@media ?/, "")), m = !0;
271
+ for (const w in f) {
272
+ if (d === String(f[w])) {
273
+ if (w !== "@initial") {
274
+ const h = w.slice(1);
275
+ (g = g || []).push(h in n ? n[h] : w.replace(/^@media ?/, "")), m = !0;
276
276
  }
277
277
  c += p, u = !0;
278
278
  }
@@ -286,11 +286,11 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
286
286
  (o[c] = o[c] || []).push([r ? "cv" : `${a}-${i[a]}`, s, m]);
287
287
  }
288
288
  return o;
289
- }, Jn = {}, Qn = Pe(), er = (e, t) => Qn(e, () => (...n) => {
289
+ }, Jn = {}, Qn = Ae(), er = (e, t) => Qn(e, () => (...n) => {
290
290
  const r = () => {
291
291
  for (let o of n) {
292
292
  o = typeof o == "object" && o || {};
293
- let i = fe(o);
293
+ let i = ge(o);
294
294
  if (!t.rules.global.cache.has(i)) {
295
295
  if (t.rules.global.cache.add(i), "@import" in o) {
296
296
  let s = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
@@ -305,9 +305,9 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
305
305
  }
306
306
  return "";
307
307
  };
308
- return mt(r, { toString: r });
309
- }), tr = Pe(), nr = (e, t) => tr(e, () => (n) => {
310
- const r = `${ee(e.prefix)}k-${fe(n)}`, o = () => {
308
+ return ft(r, { toString: r });
309
+ }), tr = Ae(), nr = (e, t) => tr(e, () => (n) => {
310
+ const r = `${te(e.prefix)}k-${ge(n)}`, o = () => {
311
311
  if (!t.rules.global.cache.has(r)) {
312
312
  t.rules.global.cache.add(r);
313
313
  const i = [];
@@ -317,7 +317,7 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
317
317
  }
318
318
  return r;
319
319
  };
320
- return mt(o, { get name() {
320
+ return ft(o, { get name() {
321
321
  return o();
322
322
  }, toString: o });
323
323
  }), rr = class {
@@ -328,18 +328,18 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
328
328
  return "var(" + this.variable + ")";
329
329
  }
330
330
  get variable() {
331
- return "--" + ee(this.prefix) + ee(this.scale) + this.token;
331
+ return "--" + te(this.prefix) + te(this.scale) + this.token;
332
332
  }
333
333
  toString() {
334
334
  return this.computedValue;
335
335
  }
336
- }, or = Pe(), ir = (e, t) => or(e, () => (n, r) => {
336
+ }, or = Ae(), ir = (e, t) => or(e, () => (n, r) => {
337
337
  r = typeof n == "object" && n || Object(r);
338
- const o = `.${n = (n = typeof n == "string" ? n : "") || `${ee(e.prefix)}t-${fe(r)}`}`, i = {}, s = [];
338
+ const o = `.${n = (n = typeof n == "string" ? n : "") || `${te(e.prefix)}t-${ge(r)}`}`, i = {}, s = [];
339
339
  for (const a in r) {
340
340
  i[a] = {};
341
341
  for (const c in r[a]) {
342
- const m = `--${ee(e.prefix)}${a}-${c}`, d = Qt(String(r[a][c]), e.prefix, a);
342
+ const m = `--${te(e.prefix)}${a}-${c}`, d = en(String(r[a][c]), e.prefix, a);
343
343
  i[a][c] = new rr(c, d, a, e.prefix), s.push(`${m}:${d}`);
344
344
  }
345
345
  }
@@ -354,7 +354,7 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
354
354
  return { ...i, get className() {
355
355
  return l();
356
356
  }, selector: o, toString: l };
357
- }), sr = Pe(), lr = Pe(), ar = (e) => {
357
+ }), sr = Ae(), lr = Ae(), ar = (e) => {
358
358
  const t = ((n) => {
359
359
  let r = !1;
360
360
  const o = sr(n, (i) => {
@@ -369,16 +369,16 @@ var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
369
369
  return t.styled = (({ config: n, sheet: r }) => lr(n, () => {
370
370
  const o = kt(n, r);
371
371
  return (...i) => {
372
- const s = o(...i), l = s[de].type, a = xe.forwardRef((c, m) => {
372
+ const s = o(...i), l = s[me].type, a = xe.forwardRef((c, m) => {
373
373
  const d = c && c.as || l, { props: f, deferredInjector: u } = s(c);
374
374
  return delete f.as, f.ref = m, u ? xe.createElement(xe.Fragment, null, xe.createElement(d, f), xe.createElement(u, null)) : xe.createElement(d, f);
375
375
  });
376
- return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[de] = s[de], a;
376
+ return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[me] = s[me], a;
377
377
  };
378
378
  }))(t), t;
379
379
  };
380
380
  let It = 9999;
381
- const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi } = ar({
381
+ const Pt = () => (It--, It), { styled: V, css: mt, keyframes: Be, globalCss: hi } = ar({
382
382
  theme: {
383
383
  colors: {
384
384
  gray50: "#F9FAFA",
@@ -496,23 +496,22 @@ const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi
496
496
  * By using createLayerBelow() we can order the list of layers.
497
497
  * Layers higher up will be on top of layers lower down.
498
498
  */
499
- toast: tt(),
500
- overlayCard: tt(),
501
- modal: tt()
499
+ toast: Pt(),
500
+ overlayCard: Pt()
502
501
  }
503
502
  },
504
503
  media: {
505
504
  lg: "(min-width: 1200px)",
506
505
  print: "print"
507
506
  }
508
- }), cr = Ae({
507
+ }), cr = Be({
509
508
  "0%": {
510
509
  transform: "rotate(0)"
511
510
  },
512
511
  "100%": {
513
512
  transform: "rotate(360deg)"
514
513
  }
515
- }), ur = Ae({
514
+ }), ur = Be({
516
515
  "0%": {
517
516
  strokeDashoffset: 600
518
517
  },
@@ -568,7 +567,7 @@ const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi
568
567
  size: "sm",
569
568
  color: "dark"
570
569
  }
571
- }), gr = Ie(
570
+ }), gr = Pe(
572
571
  (e, t) => /* @__PURE__ */ z(
573
572
  mr,
574
573
  {
@@ -737,8 +736,8 @@ const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi
737
736
  color: "secondary",
738
737
  size: "md"
739
738
  }
740
- }), hr = Ie(
741
- ({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */ Ge(
739
+ }), hr = Pe(
740
+ ({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */ Ze(
742
741
  pr,
743
742
  {
744
743
  ref: s,
@@ -793,7 +792,7 @@ const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi
793
792
  color: "info",
794
793
  size: "md"
795
794
  }
796
- }), hi = Ie(
795
+ }), bi = Pe(
797
796
  ({ children: e, ...t }, n) => /* @__PURE__ */ z(
798
797
  br,
799
798
  {
@@ -803,25 +802,29 @@ const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi
803
802
  children: e
804
803
  }
805
804
  )
806
- ), yr = Ae({
805
+ ), yr = Be({
807
806
  "0%": { opacity: 0, transform: "translateY(0.5rem)" },
808
807
  "100%": { opacity: 1, transform: "translateY(0)" }
809
- }), vr = Ae({
808
+ }), vr = Be({
810
809
  "0%": { opacity: 0, transform: "translateX(-0.5rem)" },
811
810
  "100%": { opacity: 1, transform: "translateX(0)" }
812
- }), xr = Ae({
811
+ }), xr = Be({
813
812
  "0%": { opacity: 0, transform: "translateY(-0.5rem)" },
814
813
  "100%": { opacity: 1, transform: "translateY(0)" }
815
- }), wr = Ae({
814
+ }), wr = Be({
816
815
  "0%": { opacity: 0, transform: "translateX(0.5rem)" },
817
816
  "100%": { opacity: 1, transform: "translateX(0)" }
818
- }), $r = gt({
817
+ }), $r = mt({
819
818
  backgroundColor: "white",
820
819
  boxShadow: "$overlayCard",
821
820
  borderRadius: "$sm",
822
821
  overflow: "hidden",
823
- zIndex: "$overlayCard"
824
- }), Sr = gt({
822
+ zIndex: "$overlayCard",
823
+ // radix dialogs sets `pointer-events: none;` on body,
824
+ // so for other popups that uses `OverlayCard` to work
825
+ // we need to explicitly set this.
826
+ pointerEvents: "auto"
827
+ }), Sr = mt({
825
828
  animationDuration: "400ms",
826
829
  animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
827
830
  willChange: "transform, opacity",
@@ -831,33 +834,33 @@ const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi
831
834
  '&[data-side="bottom"]': { animationName: yr },
832
835
  '&[data-side="left"]': { animationName: vr }
833
836
  }
834
- }), en = V(
837
+ }), tn = V(
835
838
  "div",
836
839
  $r,
837
840
  Sr
838
841
  );
839
- function re(e) {
840
- return tn(e) ? (e.nodeName || "").toLowerCase() : "#document";
842
+ function oe(e) {
843
+ return nn(e) ? (e.nodeName || "").toLowerCase() : "#document";
841
844
  }
842
- function U(e) {
845
+ function q(e) {
843
846
  var t;
844
847
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
845
848
  }
846
- function te(e) {
849
+ function ne(e) {
847
850
  var t;
848
- return (t = (tn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
851
+ return (t = (nn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
849
852
  }
850
- function tn(e) {
851
- return e instanceof Node || e instanceof U(e).Node;
853
+ function nn(e) {
854
+ return e instanceof Node || e instanceof q(e).Node;
852
855
  }
853
- function W(e) {
854
- return e instanceof Element || e instanceof U(e).Element;
856
+ function N(e) {
857
+ return e instanceof Element || e instanceof q(e).Element;
855
858
  }
856
- function q(e) {
857
- return e instanceof HTMLElement || e instanceof U(e).HTMLElement;
859
+ function Z(e) {
860
+ return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
858
861
  }
859
- function at(e) {
860
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
862
+ function lt(e) {
863
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
861
864
  }
862
865
  function Fe(e) {
863
866
  const {
@@ -865,36 +868,36 @@ function Fe(e) {
865
868
  overflowX: n,
866
869
  overflowY: r,
867
870
  display: o
868
- } = Z(e);
871
+ } = J(e);
869
872
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
870
873
  }
871
874
  function Rr(e) {
872
- return ["table", "td", "th"].includes(re(e));
875
+ return ["table", "td", "th"].includes(oe(e));
873
876
  }
874
- function pt(e) {
875
- const t = ht(), n = Z(e);
877
+ function gt(e) {
878
+ const t = pt(), n = J(e);
876
879
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
877
880
  }
878
881
  function Er(e) {
879
- let t = pe(e);
880
- for (; q(t) && !Te(t); ) {
881
- if (pt(t))
882
+ let t = he(e);
883
+ for (; Z(t) && !Te(t); ) {
884
+ if (gt(t))
882
885
  return t;
883
- t = pe(t);
886
+ t = he(t);
884
887
  }
885
888
  return null;
886
889
  }
887
- function ht() {
890
+ function pt() {
888
891
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
889
892
  }
890
893
  function Te(e) {
891
- return ["html", "body", "#document"].includes(re(e));
894
+ return ["html", "body", "#document"].includes(oe(e));
892
895
  }
893
- function Z(e) {
894
- return U(e).getComputedStyle(e);
896
+ function J(e) {
897
+ return q(e).getComputedStyle(e);
895
898
  }
896
- function Ue(e) {
897
- return W(e) ? {
899
+ function Je(e) {
900
+ return N(e) ? {
898
901
  scrollLeft: e.scrollLeft,
899
902
  scrollTop: e.scrollTop
900
903
  } : {
@@ -902,27 +905,27 @@ function Ue(e) {
902
905
  scrollTop: e.pageYOffset
903
906
  };
904
907
  }
905
- function pe(e) {
906
- if (re(e) === "html")
908
+ function he(e) {
909
+ if (oe(e) === "html")
907
910
  return e;
908
911
  const t = (
909
912
  // Step into the shadow DOM of the parent of a slotted node.
910
913
  e.assignedSlot || // DOM Element detected.
911
914
  e.parentNode || // ShadowRoot detected.
912
- at(e) && e.host || // Fallback.
913
- te(e)
915
+ lt(e) && e.host || // Fallback.
916
+ ne(e)
914
917
  );
915
- return at(t) ? t.host : t;
918
+ return lt(t) ? t.host : t;
916
919
  }
917
- function nn(e) {
918
- const t = pe(e);
919
- return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(t) && Fe(t) ? t : nn(t);
920
+ function rn(e) {
921
+ const t = he(e);
922
+ return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Fe(t) ? t : rn(t);
920
923
  }
921
- function ne(e, t, n) {
924
+ function re(e, t, n) {
922
925
  var r;
923
926
  t === void 0 && (t = []), n === void 0 && (n = !0);
924
- const o = nn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = U(o);
925
- return i ? t.concat(s, s.visualViewport || [], Fe(o) ? o : [], s.frameElement && n ? ne(s.frameElement) : []) : t.concat(o, ne(o, [], n));
927
+ const o = rn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = q(o);
928
+ return i ? t.concat(s, s.visualViewport || [], Fe(o) ? o : [], s.frameElement && n ? re(s.frameElement) : []) : t.concat(o, re(o, [], n));
926
929
  }
927
930
  function Cr(e) {
928
931
  let t = e.activeElement;
@@ -932,13 +935,13 @@ function Cr(e) {
932
935
  }
933
936
  return t;
934
937
  }
935
- function me(e, t) {
938
+ function pe(e, t) {
936
939
  if (!e || !t)
937
940
  return !1;
938
941
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
939
942
  if (e.contains(t))
940
943
  return !0;
941
- if (n && at(n)) {
944
+ if (n && lt(n)) {
942
945
  let r = t;
943
946
  for (; r; ) {
944
947
  if (e === r)
@@ -951,7 +954,7 @@ function me(e, t) {
951
954
  function kr() {
952
955
  return /apple/i.test(navigator.vendor);
953
956
  }
954
- function ze(e, t) {
957
+ function _e(e, t) {
955
958
  const n = ["mouse", "pen"];
956
959
  return t || n.push("", void 0), n.includes(e);
957
960
  }
@@ -961,10 +964,10 @@ function Tr(e) {
961
964
  function Ir(e) {
962
965
  return e.matches("html,body");
963
966
  }
964
- function ue(e) {
967
+ function fe(e) {
965
968
  return (e == null ? void 0 : e.ownerDocument) || document;
966
969
  }
967
- function nt(e, t) {
970
+ function tt(e, t) {
968
971
  if (t == null)
969
972
  return !1;
970
973
  if ("composedPath" in e)
@@ -977,9 +980,9 @@ function Se(e) {
977
980
  }
978
981
  const Pr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
979
982
  function Ar(e) {
980
- return q(e) && e.matches(Pr);
983
+ return Z(e) && e.matches(Pr);
981
984
  }
982
- const je = Math.min, ge = Math.max, He = Math.round, Le = Math.floor, oe = (e) => ({
985
+ const Ie = Math.min, U = Math.max, Ye = Math.round, je = Math.floor, ie = (e) => ({
983
986
  x: e,
984
987
  y: e
985
988
  }), Br = {
@@ -991,44 +994,44 @@ const je = Math.min, ge = Math.max, He = Math.round, Le = Math.floor, oe = (e) =
991
994
  start: "end",
992
995
  end: "start"
993
996
  };
994
- function Pt(e, t, n) {
995
- return ge(e, je(t, n));
997
+ function At(e, t, n) {
998
+ return U(e, Ie(t, n));
996
999
  }
997
- function qe(e, t) {
1000
+ function We(e, t) {
998
1001
  return typeof e == "function" ? e(t) : e;
999
1002
  }
1000
- function he(e) {
1003
+ function se(e) {
1001
1004
  return e.split("-")[0];
1002
1005
  }
1003
- function Ze(e) {
1006
+ function Ne(e) {
1004
1007
  return e.split("-")[1];
1005
1008
  }
1006
- function rn(e) {
1009
+ function on(e) {
1007
1010
  return e === "x" ? "y" : "x";
1008
1011
  }
1009
- function on(e) {
1012
+ function sn(e) {
1010
1013
  return e === "y" ? "height" : "width";
1011
1014
  }
1012
- function Je(e) {
1013
- return ["top", "bottom"].includes(he(e)) ? "y" : "x";
1015
+ function ze(e) {
1016
+ return ["top", "bottom"].includes(se(e)) ? "y" : "x";
1014
1017
  }
1015
- function sn(e) {
1016
- return rn(Je(e));
1018
+ function ln(e) {
1019
+ return on(ze(e));
1017
1020
  }
1018
1021
  function Dr(e, t, n) {
1019
1022
  n === void 0 && (n = !1);
1020
- const r = Ze(e), o = sn(e), i = on(o);
1023
+ const r = Ne(e), o = ln(e), i = sn(o);
1021
1024
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1022
- return t.reference[i] > t.floating[i] && (s = Ve(s)), [s, Ve(s)];
1025
+ return t.reference[i] > t.floating[i] && (s = Ke(s)), [s, Ke(s)];
1023
1026
  }
1024
1027
  function Mr(e) {
1025
- const t = Ve(e);
1026
- return [ct(e), t, ct(t)];
1028
+ const t = Ke(e);
1029
+ return [at(e), t, at(t)];
1027
1030
  }
1028
- function ct(e) {
1031
+ function at(e) {
1029
1032
  return e.replace(/start|end/g, (t) => Or[t]);
1030
1033
  }
1031
- function Fr(e, t, n) {
1034
+ function Lr(e, t, n) {
1032
1035
  const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
1033
1036
  switch (e) {
1034
1037
  case "top":
@@ -1041,15 +1044,15 @@ function Fr(e, t, n) {
1041
1044
  return [];
1042
1045
  }
1043
1046
  }
1044
- function Lr(e, t, n, r) {
1045
- const o = Ze(e);
1046
- let i = Fr(he(e), n === "start", r);
1047
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ct)))), i;
1047
+ function Fr(e, t, n, r) {
1048
+ const o = Ne(e);
1049
+ let i = Lr(se(e), n === "start", r);
1050
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(at)))), i;
1048
1051
  }
1049
- function Ve(e) {
1052
+ function Ke(e) {
1050
1053
  return e.replace(/left|right|bottom|top/g, (t) => Br[t]);
1051
1054
  }
1052
- function Nr(e) {
1055
+ function Wr(e) {
1053
1056
  return {
1054
1057
  top: 0,
1055
1058
  right: 0,
@@ -1058,15 +1061,15 @@ function Nr(e) {
1058
1061
  ...e
1059
1062
  };
1060
1063
  }
1061
- function Wr(e) {
1062
- return typeof e != "number" ? Nr(e) : {
1064
+ function Nr(e) {
1065
+ return typeof e != "number" ? Wr(e) : {
1063
1066
  top: e,
1064
1067
  right: e,
1065
1068
  bottom: e,
1066
1069
  left: e
1067
1070
  };
1068
1071
  }
1069
- function _e(e) {
1072
+ function Xe(e) {
1070
1073
  return {
1071
1074
  ...e,
1072
1075
  top: e.y,
@@ -1075,12 +1078,12 @@ function _e(e) {
1075
1078
  bottom: e.y + e.height
1076
1079
  };
1077
1080
  }
1078
- function At(e, t, n) {
1081
+ function Bt(e, t, n) {
1079
1082
  let {
1080
1083
  reference: r,
1081
1084
  floating: o
1082
1085
  } = e;
1083
- const i = Je(t), s = sn(t), l = on(s), a = he(t), c = i === "y", m = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[l] / 2 - o[l] / 2;
1086
+ const i = ze(t), s = ln(t), l = sn(s), a = se(t), c = i === "y", m = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[l] / 2 - o[l] / 2;
1084
1087
  let u;
1085
1088
  switch (a) {
1086
1089
  case "top":
@@ -1113,7 +1116,7 @@ function At(e, t, n) {
1113
1116
  y: r.y
1114
1117
  };
1115
1118
  }
1116
- switch (Ze(t)) {
1119
+ switch (Ne(t)) {
1117
1120
  case "start":
1118
1121
  u[s] -= f * (n && c ? -1 : 1);
1119
1122
  break;
@@ -1137,16 +1140,16 @@ const zr = async (e, t, n) => {
1137
1140
  }), {
1138
1141
  x: m,
1139
1142
  y: d
1140
- } = At(c, r, a), f = r, u = {}, g = 0;
1143
+ } = Bt(c, r, a), f = r, u = {}, g = 0;
1141
1144
  for (let p = 0; p < l.length; p++) {
1142
1145
  const {
1143
- name: $,
1146
+ name: w,
1144
1147
  fn: h
1145
1148
  } = l[p], {
1146
1149
  x,
1147
1150
  y: P,
1148
1151
  data: S,
1149
- reset: C
1152
+ reset: k
1150
1153
  } = await h({
1151
1154
  x: m,
1152
1155
  y: d,
@@ -1163,18 +1166,18 @@ const zr = async (e, t, n) => {
1163
1166
  });
1164
1167
  m = x ?? m, d = P ?? d, u = {
1165
1168
  ...u,
1166
- [$]: {
1167
- ...u[$],
1169
+ [w]: {
1170
+ ...u[w],
1168
1171
  ...S
1169
1172
  }
1170
- }, C && g <= 50 && (g++, typeof C == "object" && (C.placement && (f = C.placement), C.rects && (c = C.rects === !0 ? await s.getElementRects({
1173
+ }, k && g <= 50 && (g++, typeof k == "object" && (k.placement && (f = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
1171
1174
  reference: e,
1172
1175
  floating: t,
1173
1176
  strategy: o
1174
- }) : C.rects), {
1177
+ }) : k.rects), {
1175
1178
  x: m,
1176
1179
  y: d
1177
- } = At(c, f, a)), p = -1);
1180
+ } = Bt(c, f, a)), p = -1);
1178
1181
  }
1179
1182
  return {
1180
1183
  x: m,
@@ -1184,7 +1187,7 @@ const zr = async (e, t, n) => {
1184
1187
  middlewareData: u
1185
1188
  };
1186
1189
  };
1187
- async function ln(e, t) {
1190
+ async function ht(e, t) {
1188
1191
  var n;
1189
1192
  t === void 0 && (t = {});
1190
1193
  const {
@@ -1200,8 +1203,8 @@ async function ln(e, t) {
1200
1203
  elementContext: d = "floating",
1201
1204
  altBoundary: f = !1,
1202
1205
  padding: u = 0
1203
- } = qe(t, e), g = Wr(u), $ = l[f ? d === "floating" ? "reference" : "floating" : d], h = _e(await i.getClippingRect({
1204
- element: (n = await (i.isElement == null ? void 0 : i.isElement($))) == null || n ? $ : $.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
1206
+ } = We(t, e), g = Nr(u), w = l[f ? d === "floating" ? "reference" : "floating" : d], h = Xe(await i.getClippingRect({
1207
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
1205
1208
  boundary: c,
1206
1209
  rootBoundary: m,
1207
1210
  strategy: a
@@ -1215,17 +1218,17 @@ async function ln(e, t) {
1215
1218
  } : {
1216
1219
  x: 1,
1217
1220
  y: 1
1218
- }, C = _e(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1221
+ }, k = Xe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1219
1222
  elements: l,
1220
1223
  rect: x,
1221
1224
  offsetParent: P,
1222
1225
  strategy: a
1223
1226
  }) : x);
1224
1227
  return {
1225
- top: (h.top - C.top + g.top) / S.y,
1226
- bottom: (C.bottom - h.bottom + g.bottom) / S.y,
1227
- left: (h.left - C.left + g.left) / S.x,
1228
- right: (C.right - h.right + g.right) / S.x
1228
+ top: (h.top - k.top + g.top) / S.y,
1229
+ bottom: (k.bottom - h.bottom + g.bottom) / S.y,
1230
+ left: (h.left - k.left + g.left) / S.x,
1231
+ right: (k.right - h.right + g.right) / S.x
1229
1232
  };
1230
1233
  }
1231
1234
  const jr = function(e) {
@@ -1248,40 +1251,40 @@ const jr = function(e) {
1248
1251
  fallbackStrategy: u = "bestFit",
1249
1252
  fallbackAxisSideDirection: g = "none",
1250
1253
  flipAlignment: p = !0,
1251
- ...$
1252
- } = qe(e, t);
1254
+ ...w
1255
+ } = We(e, t);
1253
1256
  if ((n = i.arrow) != null && n.alignmentOffset)
1254
1257
  return {};
1255
- const h = he(o), x = he(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ve(l)] : Mr(l));
1256
- !f && g !== "none" && S.push(...Lr(l, p, g, P));
1257
- const C = [l, ...S], I = await ln(t, $), A = [];
1258
- let k = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1259
- if (m && A.push(I[h]), d) {
1258
+ const h = se(o), x = se(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ke(l)] : Mr(l));
1259
+ !f && g !== "none" && S.push(...Fr(l, p, g, P));
1260
+ const k = [l, ...S], C = await ht(t, w), A = [];
1261
+ let T = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1262
+ if (m && A.push(C[h]), d) {
1260
1263
  const M = Dr(o, s, P);
1261
- A.push(I[M[0]], I[M[1]]);
1264
+ A.push(C[M[0]], C[M[1]]);
1262
1265
  }
1263
- if (k = [...k, {
1266
+ if (T = [...T, {
1264
1267
  placement: o,
1265
1268
  overflows: A
1266
1269
  }], !A.every((M) => M <= 0)) {
1267
- var O, D;
1268
- const M = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, B = C[M];
1269
- if (B)
1270
+ var B, D;
1271
+ const M = (((B = i.flip) == null ? void 0 : B.index) || 0) + 1, O = k[M];
1272
+ if (O)
1270
1273
  return {
1271
1274
  data: {
1272
1275
  index: M,
1273
- overflows: k
1276
+ overflows: T
1274
1277
  },
1275
1278
  reset: {
1276
- placement: B
1279
+ placement: O
1277
1280
  }
1278
1281
  };
1279
- let b = (D = k.filter((v) => v.overflows[0] <= 0).sort((v, T) => v.overflows[1] - T.overflows[1])[0]) == null ? void 0 : D.placement;
1282
+ let b = (D = T.filter((v) => v.overflows[0] <= 0).sort((v, I) => v.overflows[1] - I.overflows[1])[0]) == null ? void 0 : D.placement;
1280
1283
  if (!b)
1281
1284
  switch (u) {
1282
1285
  case "bestFit": {
1283
- var F;
1284
- const v = (F = k.map((T) => [T.placement, T.overflows.filter((R) => R > 0).reduce((R, w) => R + w, 0)]).sort((T, R) => T[1] - R[1])[0]) == null ? void 0 : F[0];
1286
+ var L;
1287
+ const v = (L = T.map((I) => [I.placement, I.overflows.filter((R) => R > 0).reduce((R, $) => R + $, 0)]).sort((I, R) => I[1] - R[1])[0]) == null ? void 0 : L[0];
1285
1288
  v && (b = v);
1286
1289
  break;
1287
1290
  }
@@ -1305,7 +1308,7 @@ async function Hr(e, t) {
1305
1308
  placement: n,
1306
1309
  platform: r,
1307
1310
  elements: o
1308
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = he(n), l = Ze(n), a = Je(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, d = qe(t, e);
1311
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = se(n), l = Ne(n), a = ze(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, d = We(t, e);
1309
1312
  let {
1310
1313
  mainAxis: f,
1311
1314
  crossAxis: u,
@@ -1363,11 +1366,11 @@ const Vr = function(e) {
1363
1366
  mainAxis: i = !0,
1364
1367
  crossAxis: s = !1,
1365
1368
  limiter: l = {
1366
- fn: ($) => {
1369
+ fn: (w) => {
1367
1370
  let {
1368
1371
  x: h,
1369
1372
  y: x
1370
- } = $;
1373
+ } = w;
1371
1374
  return {
1372
1375
  x: h,
1373
1376
  y: x
@@ -1375,18 +1378,18 @@ const Vr = function(e) {
1375
1378
  }
1376
1379
  },
1377
1380
  ...a
1378
- } = qe(e, t), c = {
1381
+ } = We(e, t), c = {
1379
1382
  x: n,
1380
1383
  y: r
1381
- }, m = await ln(t, a), d = Je(he(o)), f = rn(d);
1384
+ }, m = await ht(t, a), d = ze(se(o)), f = on(d);
1382
1385
  let u = c[f], g = c[d];
1383
1386
  if (i) {
1384
- const $ = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[$], P = u - m[h];
1385
- u = Pt(x, u, P);
1387
+ const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[w], P = u - m[h];
1388
+ u = At(x, u, P);
1386
1389
  }
1387
1390
  if (s) {
1388
- const $ = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", x = g + m[$], P = g - m[h];
1389
- g = Pt(x, g, P);
1391
+ const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", x = g + m[w], P = g - m[h];
1392
+ g = At(x, g, P);
1390
1393
  }
1391
1394
  const p = l.fn({
1392
1395
  ...t,
@@ -1402,11 +1405,57 @@ const Vr = function(e) {
1402
1405
  };
1403
1406
  }
1404
1407
  };
1408
+ }, Yr = function(e) {
1409
+ return e === void 0 && (e = {}), {
1410
+ name: "size",
1411
+ options: e,
1412
+ async fn(t) {
1413
+ const {
1414
+ placement: n,
1415
+ rects: r,
1416
+ platform: o,
1417
+ elements: i
1418
+ } = t, {
1419
+ apply: s = () => {
1420
+ },
1421
+ ...l
1422
+ } = We(e, t), a = await ht(t, l), c = se(n), m = Ne(n), d = ze(n) === "y", {
1423
+ width: f,
1424
+ height: u
1425
+ } = r.floating;
1426
+ let g, p;
1427
+ c === "top" || c === "bottom" ? (g = c, p = m === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (p = c, g = m === "end" ? "top" : "bottom");
1428
+ const w = u - a[g], h = f - a[p], x = !t.middlewareData.shift;
1429
+ let P = w, S = h;
1430
+ if (d) {
1431
+ const C = f - a.left - a.right;
1432
+ S = m || x ? Ie(h, C) : C;
1433
+ } else {
1434
+ const C = u - a.top - a.bottom;
1435
+ P = m || x ? Ie(w, C) : C;
1436
+ }
1437
+ if (x && !m) {
1438
+ const C = U(a.left, 0), A = U(a.right, 0), T = U(a.top, 0), B = U(a.bottom, 0);
1439
+ d ? S = f - 2 * (C !== 0 || A !== 0 ? C + A : U(a.left, a.right)) : P = u - 2 * (T !== 0 || B !== 0 ? T + B : U(a.top, a.bottom));
1440
+ }
1441
+ await s({
1442
+ ...t,
1443
+ availableWidth: S,
1444
+ availableHeight: P
1445
+ });
1446
+ const k = await o.getDimensions(i.floating);
1447
+ return f !== k.width || u !== k.height ? {
1448
+ reset: {
1449
+ rects: !0
1450
+ }
1451
+ } : {};
1452
+ }
1453
+ };
1405
1454
  };
1406
1455
  function an(e) {
1407
- const t = Z(e);
1456
+ const t = J(e);
1408
1457
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1409
- const o = q(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = He(n) !== i || He(r) !== s;
1458
+ const o = Z(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = Ye(n) !== i || Ye(r) !== s;
1410
1459
  return l && (n = i, r = s), {
1411
1460
  width: n,
1412
1461
  height: r,
@@ -1414,59 +1463,59 @@ function an(e) {
1414
1463
  };
1415
1464
  }
1416
1465
  function bt(e) {
1417
- return W(e) ? e : e.contextElement;
1466
+ return N(e) ? e : e.contextElement;
1418
1467
  }
1419
1468
  function ke(e) {
1420
1469
  const t = bt(e);
1421
- if (!q(t))
1422
- return oe(1);
1470
+ if (!Z(t))
1471
+ return ie(1);
1423
1472
  const n = t.getBoundingClientRect(), {
1424
1473
  width: r,
1425
1474
  height: o,
1426
1475
  $: i
1427
1476
  } = an(t);
1428
- let s = (i ? He(n.width) : n.width) / r, l = (i ? He(n.height) : n.height) / o;
1477
+ let s = (i ? Ye(n.width) : n.width) / r, l = (i ? Ye(n.height) : n.height) / o;
1429
1478
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
1430
1479
  x: s,
1431
1480
  y: l
1432
1481
  };
1433
1482
  }
1434
- const Yr = /* @__PURE__ */ oe(0);
1483
+ const Kr = /* @__PURE__ */ ie(0);
1435
1484
  function cn(e) {
1436
- const t = U(e);
1437
- return !ht() || !t.visualViewport ? Yr : {
1485
+ const t = q(e);
1486
+ return !pt() || !t.visualViewport ? Kr : {
1438
1487
  x: t.visualViewport.offsetLeft,
1439
1488
  y: t.visualViewport.offsetTop
1440
1489
  };
1441
1490
  }
1442
- function Kr(e, t, n) {
1443
- return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
1491
+ function Xr(e, t, n) {
1492
+ return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
1444
1493
  }
1445
1494
  function be(e, t, n, r) {
1446
1495
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1447
1496
  const o = e.getBoundingClientRect(), i = bt(e);
1448
- let s = oe(1);
1449
- t && (r ? W(r) && (s = ke(r)) : s = ke(e));
1450
- const l = Kr(i, n, r) ? cn(i) : oe(0);
1497
+ let s = ie(1);
1498
+ t && (r ? N(r) && (s = ke(r)) : s = ke(e));
1499
+ const l = Xr(i, n, r) ? cn(i) : ie(0);
1451
1500
  let a = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, m = o.width / s.x, d = o.height / s.y;
1452
1501
  if (i) {
1453
- const f = U(i), u = r && W(r) ? U(r) : r;
1502
+ const f = q(i), u = r && N(r) ? q(r) : r;
1454
1503
  let g = f, p = g.frameElement;
1455
1504
  for (; p && r && u !== g; ) {
1456
- const $ = ke(p), h = p.getBoundingClientRect(), x = Z(p), P = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * $.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * $.y;
1457
- a *= $.x, c *= $.y, m *= $.x, d *= $.y, a += P, c += S, g = U(p), p = g.frameElement;
1505
+ const w = ke(p), h = p.getBoundingClientRect(), x = J(p), P = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
1506
+ a *= w.x, c *= w.y, m *= w.x, d *= w.y, a += P, c += S, g = q(p), p = g.frameElement;
1458
1507
  }
1459
1508
  }
1460
- return _e({
1509
+ return Xe({
1461
1510
  width: m,
1462
1511
  height: d,
1463
1512
  x: a,
1464
1513
  y: c
1465
1514
  });
1466
1515
  }
1467
- const Xr = [":popover-open", ":modal"];
1516
+ const Gr = [":popover-open", ":modal"];
1468
1517
  function un(e) {
1469
- return Xr.some((t) => {
1518
+ return Gr.some((t) => {
1470
1519
  try {
1471
1520
  return e.matches(t);
1472
1521
  } catch {
@@ -1474,22 +1523,22 @@ function un(e) {
1474
1523
  }
1475
1524
  });
1476
1525
  }
1477
- function Gr(e) {
1526
+ function Ur(e) {
1478
1527
  let {
1479
1528
  elements: t,
1480
1529
  rect: n,
1481
1530
  offsetParent: r,
1482
1531
  strategy: o
1483
1532
  } = e;
1484
- const i = o === "fixed", s = te(r), l = t ? un(t.floating) : !1;
1533
+ const i = o === "fixed", s = ne(r), l = t ? un(t.floating) : !1;
1485
1534
  if (r === s || l && i)
1486
1535
  return n;
1487
1536
  let a = {
1488
1537
  scrollLeft: 0,
1489
1538
  scrollTop: 0
1490
- }, c = oe(1);
1491
- const m = oe(0), d = q(r);
1492
- if ((d || !d && !i) && ((re(r) !== "body" || Fe(s)) && (a = Ue(r)), q(r))) {
1539
+ }, c = ie(1);
1540
+ const m = ie(0), d = Z(r);
1541
+ if ((d || !d && !i) && ((oe(r) !== "body" || Fe(s)) && (a = Je(r)), Z(r))) {
1493
1542
  const f = be(r);
1494
1543
  c = ke(r), m.x = f.x + r.clientLeft, m.y = f.y + r.clientTop;
1495
1544
  }
@@ -1500,29 +1549,29 @@ function Gr(e) {
1500
1549
  y: n.y * c.y - a.scrollTop * c.y + m.y
1501
1550
  };
1502
1551
  }
1503
- function Ur(e) {
1552
+ function qr(e) {
1504
1553
  return Array.from(e.getClientRects());
1505
1554
  }
1506
1555
  function dn(e) {
1507
- return be(te(e)).left + Ue(e).scrollLeft;
1556
+ return be(ne(e)).left + Je(e).scrollLeft;
1508
1557
  }
1509
- function qr(e) {
1510
- const t = te(e), n = Ue(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1558
+ function Zr(e) {
1559
+ const t = ne(e), n = Je(e), r = e.ownerDocument.body, o = U(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = U(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1511
1560
  let s = -n.scrollLeft + dn(e);
1512
1561
  const l = -n.scrollTop;
1513
- return Z(r).direction === "rtl" && (s += ge(t.clientWidth, r.clientWidth) - o), {
1562
+ return J(r).direction === "rtl" && (s += U(t.clientWidth, r.clientWidth) - o), {
1514
1563
  width: o,
1515
1564
  height: i,
1516
1565
  x: s,
1517
1566
  y: l
1518
1567
  };
1519
1568
  }
1520
- function Zr(e, t) {
1521
- const n = U(e), r = te(e), o = n.visualViewport;
1569
+ function Jr(e, t) {
1570
+ const n = q(e), r = ne(e), o = n.visualViewport;
1522
1571
  let i = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
1523
1572
  if (o) {
1524
1573
  i = o.width, s = o.height;
1525
- const c = ht();
1574
+ const c = pt();
1526
1575
  (!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
1527
1576
  }
1528
1577
  return {
@@ -1532,8 +1581,8 @@ function Zr(e, t) {
1532
1581
  y: a
1533
1582
  };
1534
1583
  }
1535
- function Jr(e, t) {
1536
- const n = be(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = q(e) ? ke(e) : oe(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = o * i.x, c = r * i.y;
1584
+ function Qr(e, t) {
1585
+ const n = be(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Z(e) ? ke(e) : ie(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = o * i.x, c = r * i.y;
1537
1586
  return {
1538
1587
  width: s,
1539
1588
  height: l,
@@ -1541,14 +1590,14 @@ function Jr(e, t) {
1541
1590
  y: c
1542
1591
  };
1543
1592
  }
1544
- function Bt(e, t, n) {
1593
+ function Ot(e, t, n) {
1545
1594
  let r;
1546
1595
  if (t === "viewport")
1547
- r = Zr(e, n);
1596
+ r = Jr(e, n);
1548
1597
  else if (t === "document")
1549
- r = qr(te(e));
1550
- else if (W(t))
1551
- r = Jr(t, n);
1598
+ r = Zr(ne(e));
1599
+ else if (N(t))
1600
+ r = Qr(t, n);
1552
1601
  else {
1553
1602
  const o = cn(e);
1554
1603
  r = {
@@ -1557,36 +1606,36 @@ function Bt(e, t, n) {
1557
1606
  y: t.y - o.y
1558
1607
  };
1559
1608
  }
1560
- return _e(r);
1609
+ return Xe(r);
1561
1610
  }
1562
1611
  function fn(e, t) {
1563
- const n = pe(e);
1564
- return n === t || !W(n) || Te(n) ? !1 : Z(n).position === "fixed" || fn(n, t);
1612
+ const n = he(e);
1613
+ return n === t || !N(n) || Te(n) ? !1 : J(n).position === "fixed" || fn(n, t);
1565
1614
  }
1566
- function Qr(e, t) {
1615
+ function eo(e, t) {
1567
1616
  const n = t.get(e);
1568
1617
  if (n)
1569
1618
  return n;
1570
- let r = ne(e, [], !1).filter((l) => W(l) && re(l) !== "body"), o = null;
1571
- const i = Z(e).position === "fixed";
1572
- let s = i ? pe(e) : e;
1573
- for (; W(s) && !Te(s); ) {
1574
- const l = Z(s), a = pt(s);
1575
- !a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a && fn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = pe(s);
1619
+ let r = re(e, [], !1).filter((l) => N(l) && oe(l) !== "body"), o = null;
1620
+ const i = J(e).position === "fixed";
1621
+ let s = i ? he(e) : e;
1622
+ for (; N(s) && !Te(s); ) {
1623
+ const l = J(s), a = gt(s);
1624
+ !a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a && fn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = he(s);
1576
1625
  }
1577
1626
  return t.set(e, r), r;
1578
1627
  }
1579
- function eo(e) {
1628
+ function to(e) {
1580
1629
  let {
1581
1630
  element: t,
1582
1631
  boundary: n,
1583
1632
  rootBoundary: r,
1584
1633
  strategy: o
1585
1634
  } = e;
1586
- const s = [...n === "clippingAncestors" ? Qr(t, this._c) : [].concat(n), r], l = s[0], a = s.reduce((c, m) => {
1587
- const d = Bt(t, m, o);
1588
- return c.top = ge(d.top, c.top), c.right = je(d.right, c.right), c.bottom = je(d.bottom, c.bottom), c.left = ge(d.left, c.left), c;
1589
- }, Bt(t, l, o));
1635
+ const s = [...n === "clippingAncestors" ? eo(t, this._c) : [].concat(n), r], l = s[0], a = s.reduce((c, m) => {
1636
+ const d = Ot(t, m, o);
1637
+ return c.top = U(d.top, c.top), c.right = Ie(d.right, c.right), c.bottom = Ie(d.bottom, c.bottom), c.left = U(d.left, c.left), c;
1638
+ }, Ot(t, l, o));
1590
1639
  return {
1591
1640
  width: a.right - a.left,
1592
1641
  height: a.bottom - a.top,
@@ -1594,7 +1643,7 @@ function eo(e) {
1594
1643
  y: a.top
1595
1644
  };
1596
1645
  }
1597
- function to(e) {
1646
+ function no(e) {
1598
1647
  const {
1599
1648
  width: t,
1600
1649
  height: n
@@ -1604,15 +1653,15 @@ function to(e) {
1604
1653
  height: n
1605
1654
  };
1606
1655
  }
1607
- function no(e, t, n) {
1608
- const r = q(t), o = te(t), i = n === "fixed", s = be(e, !0, i, t);
1656
+ function ro(e, t, n) {
1657
+ const r = Z(t), o = ne(t), i = n === "fixed", s = be(e, !0, i, t);
1609
1658
  let l = {
1610
1659
  scrollLeft: 0,
1611
1660
  scrollTop: 0
1612
1661
  };
1613
- const a = oe(0);
1662
+ const a = ie(0);
1614
1663
  if (r || !r && !i)
1615
- if ((re(t) !== "body" || Fe(o)) && (l = Ue(t)), r) {
1664
+ if ((oe(t) !== "body" || Fe(o)) && (l = Je(t)), r) {
1616
1665
  const d = be(t, !0, i, t);
1617
1666
  a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
1618
1667
  } else
@@ -1625,22 +1674,22 @@ function no(e, t, n) {
1625
1674
  height: s.height
1626
1675
  };
1627
1676
  }
1628
- function Ot(e, t) {
1629
- return !q(e) || Z(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1677
+ function Dt(e, t) {
1678
+ return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1630
1679
  }
1631
1680
  function mn(e, t) {
1632
- const n = U(e);
1633
- if (!q(e) || un(e))
1681
+ const n = q(e);
1682
+ if (!Z(e) || un(e))
1634
1683
  return n;
1635
- let r = Ot(e, t);
1636
- for (; r && Rr(r) && Z(r).position === "static"; )
1637
- r = Ot(r, t);
1638
- return r && (re(r) === "html" || re(r) === "body" && Z(r).position === "static" && !pt(r)) ? n : r || Er(e) || n;
1684
+ let r = Dt(e, t);
1685
+ for (; r && Rr(r) && J(r).position === "static"; )
1686
+ r = Dt(r, t);
1687
+ return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !gt(r)) ? n : r || Er(e) || n;
1639
1688
  }
1640
- const ro = async function(e) {
1689
+ const oo = async function(e) {
1641
1690
  const t = this.getOffsetParent || mn, n = this.getDimensions;
1642
1691
  return {
1643
- reference: no(e.reference, await t(e.floating), e.strategy),
1692
+ reference: ro(e.reference, await t(e.floating), e.strategy),
1644
1693
  floating: {
1645
1694
  x: 0,
1646
1695
  y: 0,
@@ -1648,24 +1697,24 @@ const ro = async function(e) {
1648
1697
  }
1649
1698
  };
1650
1699
  };
1651
- function oo(e) {
1652
- return Z(e).direction === "rtl";
1700
+ function io(e) {
1701
+ return J(e).direction === "rtl";
1653
1702
  }
1654
- const io = {
1655
- convertOffsetParentRelativeRectToViewportRelativeRect: Gr,
1656
- getDocumentElement: te,
1657
- getClippingRect: eo,
1703
+ const so = {
1704
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ur,
1705
+ getDocumentElement: ne,
1706
+ getClippingRect: to,
1658
1707
  getOffsetParent: mn,
1659
- getElementRects: ro,
1660
- getClientRects: Ur,
1661
- getDimensions: to,
1708
+ getElementRects: oo,
1709
+ getClientRects: qr,
1710
+ getDimensions: no,
1662
1711
  getScale: ke,
1663
- isElement: W,
1664
- isRTL: oo
1712
+ isElement: N,
1713
+ isRTL: io
1665
1714
  };
1666
- function so(e, t) {
1715
+ function lo(e, t) {
1667
1716
  let n = null, r;
1668
- const o = te(e);
1717
+ const o = ne(e);
1669
1718
  function i() {
1670
1719
  var l;
1671
1720
  clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
@@ -1680,17 +1729,17 @@ function so(e, t) {
1680
1729
  } = e.getBoundingClientRect();
1681
1730
  if (l || t(), !d || !f)
1682
1731
  return;
1683
- const u = Le(m), g = Le(o.clientWidth - (c + d)), p = Le(o.clientHeight - (m + f)), $ = Le(c), x = {
1684
- rootMargin: -u + "px " + -g + "px " + -p + "px " + -$ + "px",
1685
- threshold: ge(0, je(1, a)) || 1
1732
+ const u = je(m), g = je(o.clientWidth - (c + d)), p = je(o.clientHeight - (m + f)), w = je(c), x = {
1733
+ rootMargin: -u + "px " + -g + "px " + -p + "px " + -w + "px",
1734
+ threshold: U(0, Ie(1, a)) || 1
1686
1735
  };
1687
1736
  let P = !0;
1688
- function S(C) {
1689
- const I = C[0].intersectionRatio;
1690
- if (I !== a) {
1737
+ function S(k) {
1738
+ const C = k[0].intersectionRatio;
1739
+ if (C !== a) {
1691
1740
  if (!P)
1692
1741
  return s();
1693
- I ? s(!1, I) : r = setTimeout(() => {
1742
+ C ? s(!1, C) : r = setTimeout(() => {
1694
1743
  s(!1, 1e-7);
1695
1744
  }, 100);
1696
1745
  }
@@ -1709,7 +1758,7 @@ function so(e, t) {
1709
1758
  }
1710
1759
  return s(!0), i;
1711
1760
  }
1712
- function lo(e, t, n, r) {
1761
+ function ao(e, t, n, r) {
1713
1762
  r === void 0 && (r = {});
1714
1763
  const {
1715
1764
  ancestorScroll: o = !0,
@@ -1717,13 +1766,13 @@ function lo(e, t, n, r) {
1717
1766
  elementResize: s = typeof ResizeObserver == "function",
1718
1767
  layoutShift: l = typeof IntersectionObserver == "function",
1719
1768
  animationFrame: a = !1
1720
- } = r, c = bt(e), m = o || i ? [...c ? ne(c) : [], ...ne(t)] : [];
1769
+ } = r, c = bt(e), m = o || i ? [...c ? re(c) : [], ...re(t)] : [];
1721
1770
  m.forEach((h) => {
1722
1771
  o && h.addEventListener("scroll", n, {
1723
1772
  passive: !0
1724
1773
  }), i && h.addEventListener("resize", n);
1725
1774
  });
1726
- const d = c && l ? so(c, n) : null;
1775
+ const d = c && l ? lo(c, n) : null;
1727
1776
  let f = -1, u = null;
1728
1777
  s && (u = new ResizeObserver((h) => {
1729
1778
  let [x] = h;
@@ -1733,10 +1782,10 @@ function lo(e, t, n, r) {
1733
1782
  })), n();
1734
1783
  }), c && !a && u.observe(c), u.observe(t));
1735
1784
  let g, p = a ? be(e) : null;
1736
- a && $();
1737
- function $() {
1785
+ a && w();
1786
+ function w() {
1738
1787
  const h = be(e);
1739
- p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, g = requestAnimationFrame($);
1788
+ p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, g = requestAnimationFrame(w);
1740
1789
  }
1741
1790
  return n(), () => {
1742
1791
  var h;
@@ -1745,9 +1794,9 @@ function lo(e, t, n, r) {
1745
1794
  }), d == null || d(), (h = u) == null || h.disconnect(), u = null, a && cancelAnimationFrame(g);
1746
1795
  };
1747
1796
  }
1748
- const ao = _r, co = jr, uo = (e, t, n) => {
1797
+ const co = _r, uo = jr, yi = Yr, fo = (e, t, n) => {
1749
1798
  const r = /* @__PURE__ */ new Map(), o = {
1750
- platform: io,
1799
+ platform: so,
1751
1800
  ...n
1752
1801
  }, i = {
1753
1802
  ...o.platform,
@@ -1758,8 +1807,8 @@ const ao = _r, co = jr, uo = (e, t, n) => {
1758
1807
  platform: i
1759
1808
  });
1760
1809
  };
1761
- var Ne = typeof document < "u" ? qt : Zt;
1762
- function Ye(e, t) {
1810
+ var He = typeof document < "u" ? Zt : Jt;
1811
+ function Ge(e, t) {
1763
1812
  if (e === t)
1764
1813
  return !0;
1765
1814
  if (typeof e != typeof t)
@@ -1772,7 +1821,7 @@ function Ye(e, t) {
1772
1821
  if (n = e.length, n !== t.length)
1773
1822
  return !1;
1774
1823
  for (r = n; r-- !== 0; )
1775
- if (!Ye(e[r], t[r]))
1824
+ if (!Ge(e[r], t[r]))
1776
1825
  return !1;
1777
1826
  return !0;
1778
1827
  }
@@ -1783,7 +1832,7 @@ function Ye(e, t) {
1783
1832
  return !1;
1784
1833
  for (r = n; r-- !== 0; ) {
1785
1834
  const i = o[r];
1786
- if (!(i === "_owner" && e.$$typeof) && !Ye(e[i], t[i]))
1835
+ if (!(i === "_owner" && e.$$typeof) && !Ge(e[i], t[i]))
1787
1836
  return !1;
1788
1837
  }
1789
1838
  return !0;
@@ -1793,17 +1842,17 @@ function Ye(e, t) {
1793
1842
  function gn(e) {
1794
1843
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1795
1844
  }
1796
- function Dt(e, t) {
1845
+ function Mt(e, t) {
1797
1846
  const n = gn(e);
1798
1847
  return Math.round(t * n) / n;
1799
1848
  }
1800
- function Mt(e) {
1849
+ function Lt(e) {
1801
1850
  const t = y.useRef(e);
1802
- return Ne(() => {
1851
+ return He(() => {
1803
1852
  t.current = e;
1804
1853
  }), t;
1805
1854
  }
1806
- function fo(e) {
1855
+ function mo(e) {
1807
1856
  e === void 0 && (e = {});
1808
1857
  const {
1809
1858
  placement: t = "bottom",
@@ -1825,54 +1874,54 @@ function fo(e) {
1825
1874
  middlewareData: {},
1826
1875
  isPositioned: !1
1827
1876
  }), [f, u] = y.useState(r);
1828
- Ye(f, r) || u(r);
1829
- const [g, p] = y.useState(null), [$, h] = y.useState(null), x = y.useCallback((R) => {
1830
- R !== I.current && (I.current = R, p(R));
1877
+ Ge(f, r) || u(r);
1878
+ const [g, p] = y.useState(null), [w, h] = y.useState(null), x = y.useCallback((R) => {
1879
+ R !== C.current && (C.current = R, p(R));
1831
1880
  }, []), P = y.useCallback((R) => {
1832
1881
  R !== A.current && (A.current = R, h(R));
1833
- }, []), S = i || g, C = s || $, I = y.useRef(null), A = y.useRef(null), k = y.useRef(m), O = a != null, D = Mt(a), F = Mt(o), M = y.useCallback(() => {
1834
- if (!I.current || !A.current)
1882
+ }, []), S = i || g, k = s || w, C = y.useRef(null), A = y.useRef(null), T = y.useRef(m), B = a != null, D = Lt(a), L = Lt(o), M = y.useCallback(() => {
1883
+ if (!C.current || !A.current)
1835
1884
  return;
1836
1885
  const R = {
1837
1886
  placement: t,
1838
1887
  strategy: n,
1839
1888
  middleware: f
1840
1889
  };
1841
- F.current && (R.platform = F.current), uo(I.current, A.current, R).then((w) => {
1842
- const L = {
1843
- ...w,
1890
+ L.current && (R.platform = L.current), fo(C.current, A.current, R).then(($) => {
1891
+ const F = {
1892
+ ...$,
1844
1893
  isPositioned: !0
1845
1894
  };
1846
- B.current && !Ye(k.current, L) && (k.current = L, An.flushSync(() => {
1847
- d(L);
1895
+ O.current && !Ge(T.current, F) && (T.current = F, An.flushSync(() => {
1896
+ d(F);
1848
1897
  }));
1849
1898
  });
1850
- }, [f, t, n, F]);
1851
- Ne(() => {
1852
- c === !1 && k.current.isPositioned && (k.current.isPositioned = !1, d((R) => ({
1899
+ }, [f, t, n, L]);
1900
+ He(() => {
1901
+ c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((R) => ({
1853
1902
  ...R,
1854
1903
  isPositioned: !1
1855
1904
  })));
1856
1905
  }, [c]);
1857
- const B = y.useRef(!1);
1858
- Ne(() => (B.current = !0, () => {
1859
- B.current = !1;
1860
- }), []), Ne(() => {
1861
- if (S && (I.current = S), C && (A.current = C), S && C) {
1906
+ const O = y.useRef(!1);
1907
+ He(() => (O.current = !0, () => {
1908
+ O.current = !1;
1909
+ }), []), He(() => {
1910
+ if (S && (C.current = S), k && (A.current = k), S && k) {
1862
1911
  if (D.current)
1863
- return D.current(S, C, M);
1912
+ return D.current(S, k, M);
1864
1913
  M();
1865
1914
  }
1866
- }, [S, C, M, D, O]);
1915
+ }, [S, k, M, D, B]);
1867
1916
  const b = y.useMemo(() => ({
1868
- reference: I,
1917
+ reference: C,
1869
1918
  floating: A,
1870
1919
  setReference: x,
1871
1920
  setFloating: P
1872
1921
  }), [x, P]), v = y.useMemo(() => ({
1873
1922
  reference: S,
1874
- floating: C
1875
- }), [S, C]), T = y.useMemo(() => {
1923
+ floating: k
1924
+ }), [S, k]), I = y.useMemo(() => {
1876
1925
  const R = {
1877
1926
  position: n,
1878
1927
  left: 0,
@@ -1880,17 +1929,17 @@ function fo(e) {
1880
1929
  };
1881
1930
  if (!v.floating)
1882
1931
  return R;
1883
- const w = Dt(v.floating, m.x), L = Dt(v.floating, m.y);
1932
+ const $ = Mt(v.floating, m.x), F = Mt(v.floating, m.y);
1884
1933
  return l ? {
1885
1934
  ...R,
1886
- transform: "translate(" + w + "px, " + L + "px)",
1935
+ transform: "translate(" + $ + "px, " + F + "px)",
1887
1936
  ...gn(v.floating) >= 1.5 && {
1888
1937
  willChange: "transform"
1889
1938
  }
1890
1939
  } : {
1891
1940
  position: n,
1892
- left: w,
1893
- top: L
1941
+ left: $,
1942
+ top: F
1894
1943
  };
1895
1944
  }, [n, l, v.floating, m.x, m.y]);
1896
1945
  return y.useMemo(() => ({
@@ -1898,36 +1947,36 @@ function fo(e) {
1898
1947
  update: M,
1899
1948
  refs: b,
1900
1949
  elements: v,
1901
- floatingStyles: T
1902
- }), [m, M, b, v, T]);
1950
+ floatingStyles: I
1951
+ }), [m, M, b, v, I]);
1903
1952
  }
1904
1953
  /*!
1905
1954
  * tabbable 6.2.0
1906
1955
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1907
1956
  */
1908
- var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ut = /* @__PURE__ */ mo.join(","), pn = typeof Element > "u", De = pn ? function() {
1909
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !pn && Element.prototype.getRootNode ? function(e) {
1957
+ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ct = /* @__PURE__ */ go.join(","), pn = typeof Element > "u", Me = pn ? function() {
1958
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ue = !pn && Element.prototype.getRootNode ? function(e) {
1910
1959
  var t;
1911
1960
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
1912
1961
  } : function(e) {
1913
1962
  return e == null ? void 0 : e.ownerDocument;
1914
- }, Xe = function e(t, n) {
1963
+ }, qe = function e(t, n) {
1915
1964
  var r;
1916
1965
  n === void 0 && (n = !0);
1917
1966
  var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), i = o === "" || o === "true", s = i || n && t && e(t.parentNode);
1918
1967
  return s;
1919
- }, go = function(t) {
1968
+ }, po = function(t) {
1920
1969
  var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
1921
1970
  return r === "" || r === "true";
1922
- }, po = function(t, n, r) {
1923
- if (Xe(t))
1971
+ }, ho = function(t, n, r) {
1972
+ if (qe(t))
1924
1973
  return [];
1925
- var o = Array.prototype.slice.apply(t.querySelectorAll(ut));
1926
- return n && De.call(t, ut) && o.unshift(t), o = o.filter(r), o;
1927
- }, ho = function e(t, n, r) {
1974
+ var o = Array.prototype.slice.apply(t.querySelectorAll(ct));
1975
+ return n && Me.call(t, ct) && o.unshift(t), o = o.filter(r), o;
1976
+ }, bo = function e(t, n, r) {
1928
1977
  for (var o = [], i = Array.from(t); i.length; ) {
1929
1978
  var s = i.shift();
1930
- if (!Xe(s, !1))
1979
+ if (!qe(s, !1))
1931
1980
  if (s.tagName === "SLOT") {
1932
1981
  var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, r);
1933
1982
  r.flatten ? o.push.apply(o, c) : o.push({
@@ -1935,10 +1984,10 @@ var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1935
1984
  candidates: c
1936
1985
  });
1937
1986
  } else {
1938
- var m = De.call(s, ut);
1987
+ var m = Me.call(s, ct);
1939
1988
  m && r.filter(s) && (n || !t.includes(s)) && o.push(s);
1940
1989
  var d = s.shadowRoot || // check for an undisclosed shadow
1941
- typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !Xe(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
1990
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !qe(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
1942
1991
  if (d && f) {
1943
1992
  var u = e(d === !0 ? s.children : d.children, !0, r);
1944
1993
  r.flatten ? o.push.apply(o, u) : o.push({
@@ -1955,29 +2004,29 @@ var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1955
2004
  }, bn = function(t) {
1956
2005
  if (!t)
1957
2006
  throw new Error("No node provided");
1958
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || go(t)) && !hn(t) ? 0 : t.tabIndex;
1959
- }, bo = function(t, n) {
2007
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || po(t)) && !hn(t) ? 0 : t.tabIndex;
2008
+ }, yo = function(t, n) {
1960
2009
  var r = bn(t);
1961
2010
  return r < 0 && n && !hn(t) ? 0 : r;
1962
- }, yo = function(t, n) {
2011
+ }, vo = function(t, n) {
1963
2012
  return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
1964
2013
  }, yn = function(t) {
1965
2014
  return t.tagName === "INPUT";
1966
- }, vo = function(t) {
1967
- return yn(t) && t.type === "hidden";
1968
2015
  }, xo = function(t) {
2016
+ return yn(t) && t.type === "hidden";
2017
+ }, wo = function(t) {
1969
2018
  var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
1970
2019
  return r.tagName === "SUMMARY";
1971
2020
  });
1972
2021
  return n;
1973
- }, wo = function(t, n) {
2022
+ }, $o = function(t, n) {
1974
2023
  for (var r = 0; r < t.length; r++)
1975
2024
  if (t[r].checked && t[r].form === n)
1976
2025
  return t[r];
1977
- }, $o = function(t) {
2026
+ }, So = function(t) {
1978
2027
  if (!t.name)
1979
2028
  return !0;
1980
- var n = t.form || Ke(t), r = function(l) {
2029
+ var n = t.form || Ue(t), r = function(l) {
1981
2030
  return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
1982
2031
  }, o;
1983
2032
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
@@ -1988,78 +2037,78 @@ var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1988
2037
  } catch (s) {
1989
2038
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
1990
2039
  }
1991
- var i = wo(o, t.form);
2040
+ var i = $o(o, t.form);
1992
2041
  return !i || i === t;
1993
- }, So = function(t) {
1994
- return yn(t) && t.type === "radio";
1995
2042
  }, Ro = function(t) {
1996
- return So(t) && !$o(t);
2043
+ return yn(t) && t.type === "radio";
1997
2044
  }, Eo = function(t) {
1998
- var n, r = t && Ke(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
2045
+ return Ro(t) && !So(t);
2046
+ }, Co = function(t) {
2047
+ var n, r = t && Ue(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
1999
2048
  if (r && r !== t) {
2000
2049
  var s, l, a;
2001
2050
  for (i = !!((s = o) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(o) || t != null && (a = t.ownerDocument) !== null && a !== void 0 && a.contains(t)); !i && o; ) {
2002
2051
  var c, m, d;
2003
- r = Ke(o), o = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((m = o) !== null && m !== void 0 && (d = m.ownerDocument) !== null && d !== void 0 && d.contains(o));
2052
+ r = Ue(o), o = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((m = o) !== null && m !== void 0 && (d = m.ownerDocument) !== null && d !== void 0 && d.contains(o));
2004
2053
  }
2005
2054
  }
2006
2055
  return i;
2007
2056
  }, Ft = function(t) {
2008
2057
  var n = t.getBoundingClientRect(), r = n.width, o = n.height;
2009
2058
  return r === 0 && o === 0;
2010
- }, Co = function(t, n) {
2059
+ }, ko = function(t, n) {
2011
2060
  var r = n.displayCheck, o = n.getShadowRoot;
2012
2061
  if (getComputedStyle(t).visibility === "hidden")
2013
2062
  return !0;
2014
- var i = De.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
2015
- if (De.call(s, "details:not([open]) *"))
2063
+ var i = Me.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
2064
+ if (Me.call(s, "details:not([open]) *"))
2016
2065
  return !0;
2017
2066
  if (!r || r === "full" || r === "legacy-full") {
2018
2067
  if (typeof o == "function") {
2019
2068
  for (var l = t; t; ) {
2020
- var a = t.parentElement, c = Ke(t);
2069
+ var a = t.parentElement, c = Ue(t);
2021
2070
  if (a && !a.shadowRoot && o(a) === !0)
2022
2071
  return Ft(t);
2023
2072
  t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
2024
2073
  }
2025
2074
  t = l;
2026
2075
  }
2027
- if (Eo(t))
2076
+ if (Co(t))
2028
2077
  return !t.getClientRects().length;
2029
2078
  if (r !== "legacy-full")
2030
2079
  return !0;
2031
2080
  } else if (r === "non-zero-area")
2032
2081
  return Ft(t);
2033
2082
  return !1;
2034
- }, ko = function(t) {
2083
+ }, To = function(t) {
2035
2084
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
2036
2085
  for (var n = t.parentElement; n; ) {
2037
2086
  if (n.tagName === "FIELDSET" && n.disabled) {
2038
2087
  for (var r = 0; r < n.children.length; r++) {
2039
2088
  var o = n.children.item(r);
2040
2089
  if (o.tagName === "LEGEND")
2041
- return De.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
2090
+ return Me.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
2042
2091
  }
2043
2092
  return !0;
2044
2093
  }
2045
2094
  n = n.parentElement;
2046
2095
  }
2047
2096
  return !1;
2048
- }, To = function(t, n) {
2097
+ }, Io = function(t, n) {
2049
2098
  return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
2050
2099
  // because we're limited in the type of selectors we can use in JSDom (see related
2051
2100
  // note related to `candidateSelectors`)
2052
- Xe(n) || vo(n) || Co(n, t) || // For a details element with a summary, the summary element gets the focus
2053
- xo(n) || ko(n));
2054
- }, Lt = function(t, n) {
2055
- return !(Ro(n) || bn(n) < 0 || !To(t, n));
2056
- }, Io = function(t) {
2101
+ qe(n) || xo(n) || ko(n, t) || // For a details element with a summary, the summary element gets the focus
2102
+ wo(n) || To(n));
2103
+ }, Wt = function(t, n) {
2104
+ return !(Eo(n) || bn(n) < 0 || !Io(t, n));
2105
+ }, Po = function(t) {
2057
2106
  var n = parseInt(t.getAttribute("tabindex"), 10);
2058
2107
  return !!(isNaN(n) || n >= 0);
2059
- }, Po = function e(t) {
2108
+ }, Ao = function e(t) {
2060
2109
  var n = [], r = [];
2061
2110
  return t.forEach(function(o, i) {
2062
- var s = !!o.scopeParent, l = s ? o.scopeParent : o, a = bo(l, s), c = s ? e(o.candidates) : l;
2111
+ var s = !!o.scopeParent, l = s ? o.scopeParent : o, a = yo(l, s), c = s ? e(o.candidates) : l;
2063
2112
  a === 0 ? s ? n.push.apply(n, c) : n.push(l) : r.push({
2064
2113
  documentOrder: i,
2065
2114
  tabIndex: a,
@@ -2067,26 +2116,26 @@ var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2067
2116
  isScope: s,
2068
2117
  content: c
2069
2118
  });
2070
- }), r.sort(yo).reduce(function(o, i) {
2119
+ }), r.sort(vo).reduce(function(o, i) {
2071
2120
  return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
2072
2121
  }, []).concat(n);
2073
2122
  }, vn = function(t, n) {
2074
2123
  n = n || {};
2075
2124
  var r;
2076
- return n.getShadowRoot ? r = ho([t], n.includeContainer, {
2077
- filter: Lt.bind(null, n),
2125
+ return n.getShadowRoot ? r = bo([t], n.includeContainer, {
2126
+ filter: Wt.bind(null, n),
2078
2127
  flatten: !1,
2079
2128
  getShadowRoot: n.getShadowRoot,
2080
- shadowRootFilter: Io
2081
- }) : r = po(t, n.includeContainer, Lt.bind(null, n)), Po(r);
2129
+ shadowRootFilter: Po
2130
+ }) : r = ho(t, n.includeContainer, Wt.bind(null, n)), Ao(r);
2082
2131
  };
2083
- const Ao = y[/* @__PURE__ */ "useInsertionEffect".toString()], Bo = Ao || ((e) => e());
2132
+ const Bo = y[/* @__PURE__ */ "useInsertionEffect".toString()], Oo = Bo || ((e) => e());
2084
2133
  function Re(e) {
2085
2134
  const t = y.useRef(() => {
2086
2135
  if (process.env.NODE_ENV !== "production")
2087
2136
  throw new Error("Cannot call an event handler while rendering.");
2088
2137
  });
2089
- return Bo(() => {
2138
+ return Oo(() => {
2090
2139
  t.current = e;
2091
2140
  }), y.useCallback(function() {
2092
2141
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
@@ -2094,28 +2143,28 @@ function Re(e) {
2094
2143
  return t.current == null ? void 0 : t.current(...r);
2095
2144
  }, []);
2096
2145
  }
2097
- var J = typeof document < "u" ? qt : Zt;
2098
- function dt() {
2099
- return dt = Object.assign ? Object.assign.bind() : function(e) {
2146
+ var Q = typeof document < "u" ? Zt : Jt;
2147
+ function ut() {
2148
+ return ut = Object.assign ? Object.assign.bind() : function(e) {
2100
2149
  for (var t = 1; t < arguments.length; t++) {
2101
2150
  var n = arguments[t];
2102
2151
  for (var r in n)
2103
2152
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2104
2153
  }
2105
2154
  return e;
2106
- }, dt.apply(this, arguments);
2155
+ }, ut.apply(this, arguments);
2107
2156
  }
2108
- let rt = !1, Oo = 0;
2109
- const Nt = () => "floating-ui-" + Oo++;
2110
- function Do() {
2111
- const [e, t] = y.useState(() => rt ? Nt() : void 0);
2112
- return J(() => {
2157
+ let nt = !1, Do = 0;
2158
+ const Nt = () => "floating-ui-" + Do++;
2159
+ function Mo() {
2160
+ const [e, t] = y.useState(() => nt ? Nt() : void 0);
2161
+ return Q(() => {
2113
2162
  e == null && t(Nt());
2114
2163
  }, []), y.useEffect(() => {
2115
- rt || (rt = !0);
2164
+ nt || (nt = !0);
2116
2165
  }, []), e;
2117
2166
  }
2118
- const Mo = y[/* @__PURE__ */ "useId".toString()], yt = Mo || Do;
2167
+ const Lo = y[/* @__PURE__ */ "useId".toString()], yt = Lo || Mo;
2119
2168
  function Fo() {
2120
2169
  const e = /* @__PURE__ */ new Map();
2121
2170
  return {
@@ -2132,24 +2181,24 @@ function Fo() {
2132
2181
  }
2133
2182
  };
2134
2183
  }
2135
- const Lo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null), vt = () => {
2184
+ const Wo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null), vt = () => {
2136
2185
  var e;
2137
- return ((e = y.useContext(Lo)) == null ? void 0 : e.id) || null;
2186
+ return ((e = y.useContext(Wo)) == null ? void 0 : e.id) || null;
2138
2187
  }, xt = () => y.useContext(No);
2139
2188
  function Qe(e) {
2140
2189
  return "data-floating-ui-" + e;
2141
2190
  }
2142
2191
  function Ce(e) {
2143
2192
  const t = Cn(e);
2144
- return J(() => {
2193
+ return Q(() => {
2145
2194
  t.current = e;
2146
2195
  }), t;
2147
2196
  }
2148
- const Wt = /* @__PURE__ */ Qe("safe-polygon");
2149
- function ot(e, t, n) {
2150
- return n && !ze(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
2197
+ const zt = /* @__PURE__ */ Qe("safe-polygon");
2198
+ function rt(e, t, n) {
2199
+ return n && !_e(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
2151
2200
  }
2152
- function Wo(e, t) {
2201
+ function zo(e, t) {
2153
2202
  t === void 0 && (t = {});
2154
2203
  const {
2155
2204
  open: n,
@@ -2168,7 +2217,7 @@ function Wo(e, t) {
2168
2217
  mouseOnly: f = !1,
2169
2218
  restMs: u = 0,
2170
2219
  move: g = !0
2171
- } = t, p = xt(), $ = vt(), h = Ce(d), x = Ce(m), P = y.useRef(), S = y.useRef(), C = y.useRef(), I = y.useRef(), A = y.useRef(!0), k = y.useRef(!1), O = y.useRef(() => {
2220
+ } = t, p = xt(), w = vt(), h = Ce(d), x = Ce(m), P = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), A = y.useRef(!0), T = y.useRef(!1), B = y.useRef(() => {
2172
2221
  }), D = y.useCallback(() => {
2173
2222
  var b;
2174
2223
  const v = (b = o.current.openEvent) == null ? void 0 : b.type;
@@ -2179,9 +2228,9 @@ function Wo(e, t) {
2179
2228
  return;
2180
2229
  function b(v) {
2181
2230
  let {
2182
- open: T
2231
+ open: I
2183
2232
  } = v;
2184
- T || (clearTimeout(S.current), clearTimeout(I.current), A.current = !0);
2233
+ I || (clearTimeout(S.current), clearTimeout(C.current), A.current = !0);
2185
2234
  }
2186
2235
  return i.on("openchange", b), () => {
2187
2236
  i.off("openchange", b);
@@ -2189,24 +2238,24 @@ function Wo(e, t) {
2189
2238
  }, [c, i]), y.useEffect(() => {
2190
2239
  if (!c || !h.current || !n)
2191
2240
  return;
2192
- function b(T) {
2193
- D() && r(!1, T, "hover");
2241
+ function b(I) {
2242
+ D() && r(!1, I, "hover");
2194
2243
  }
2195
- const v = ue(l).documentElement;
2244
+ const v = fe(l).documentElement;
2196
2245
  return v.addEventListener("mouseleave", b), () => {
2197
2246
  v.removeEventListener("mouseleave", b);
2198
2247
  };
2199
2248
  }, [l, n, r, c, h, D]);
2200
- const F = y.useCallback(function(b, v, T) {
2201
- v === void 0 && (v = !0), T === void 0 && (T = "hover");
2202
- const R = ot(x.current, "close", P.current);
2203
- R && !C.current ? (clearTimeout(S.current), S.current = setTimeout(() => r(!1, b, T), R)) : v && (clearTimeout(S.current), r(!1, b, T));
2249
+ const L = y.useCallback(function(b, v, I) {
2250
+ v === void 0 && (v = !0), I === void 0 && (I = "hover");
2251
+ const R = rt(x.current, "close", P.current);
2252
+ R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => r(!1, b, I), R)) : v && (clearTimeout(S.current), r(!1, b, I));
2204
2253
  }, [x, r]), M = y.useCallback(() => {
2205
- O.current(), C.current = void 0;
2206
- }, []), B = y.useCallback(() => {
2207
- if (k.current) {
2208
- const b = ue(a.floating.current).body;
2209
- b.style.pointerEvents = "", b.removeAttribute(Wt), k.current = !1;
2254
+ B.current(), k.current = void 0;
2255
+ }, []), O = y.useCallback(() => {
2256
+ if (T.current) {
2257
+ const b = fe(a.floating.current).body;
2258
+ b.style.pointerEvents = "", b.removeAttribute(zt), T.current = !1;
2210
2259
  }
2211
2260
  }, [a]);
2212
2261
  return y.useEffect(() => {
@@ -2215,73 +2264,73 @@ function Wo(e, t) {
2215
2264
  function b() {
2216
2265
  return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
2217
2266
  }
2218
- function v(w) {
2219
- if (clearTimeout(S.current), A.current = !1, f && !ze(P.current) || u > 0 && ot(x.current, "open") === 0)
2267
+ function v($) {
2268
+ if (clearTimeout(S.current), A.current = !1, f && !_e(P.current) || u > 0 && rt(x.current, "open") === 0)
2220
2269
  return;
2221
- const L = ot(x.current, "open", P.current);
2222
- L ? S.current = setTimeout(() => {
2223
- r(!0, w, "hover");
2224
- }, L) : r(!0, w, "hover");
2270
+ const F = rt(x.current, "open", P.current);
2271
+ F ? S.current = setTimeout(() => {
2272
+ r(!0, $, "hover");
2273
+ }, F) : r(!0, $, "hover");
2225
2274
  }
2226
- function T(w) {
2275
+ function I($) {
2227
2276
  if (b())
2228
2277
  return;
2229
- O.current();
2230
- const L = ue(l);
2231
- if (clearTimeout(I.current), h.current) {
2232
- n || clearTimeout(S.current), C.current = h.current({
2278
+ B.current();
2279
+ const F = fe(l);
2280
+ if (clearTimeout(C.current), h.current) {
2281
+ n || clearTimeout(S.current), k.current = h.current({
2233
2282
  ...e,
2234
2283
  tree: p,
2235
- x: w.clientX,
2236
- y: w.clientY,
2284
+ x: $.clientX,
2285
+ y: $.clientY,
2237
2286
  onClose() {
2238
- B(), M(), F(w, !0, "safe-polygon");
2287
+ O(), M(), L($, !0, "safe-polygon");
2239
2288
  }
2240
2289
  });
2241
- const G = C.current;
2242
- L.addEventListener("mousemove", G), O.current = () => {
2243
- L.removeEventListener("mousemove", G);
2290
+ const G = k.current;
2291
+ F.addEventListener("mousemove", G), B.current = () => {
2292
+ F.removeEventListener("mousemove", G);
2244
2293
  };
2245
2294
  return;
2246
2295
  }
2247
- (P.current === "touch" ? !me(l, w.relatedTarget) : !0) && F(w);
2296
+ (P.current === "touch" ? !pe(l, $.relatedTarget) : !0) && L($);
2248
2297
  }
2249
- function R(w) {
2298
+ function R($) {
2250
2299
  b() || h.current == null || h.current({
2251
2300
  ...e,
2252
2301
  tree: p,
2253
- x: w.clientX,
2254
- y: w.clientY,
2302
+ x: $.clientX,
2303
+ y: $.clientY,
2255
2304
  onClose() {
2256
- B(), M(), F(w);
2305
+ O(), M(), L($);
2257
2306
  }
2258
- })(w);
2307
+ })($);
2259
2308
  }
2260
- if (W(s)) {
2261
- const w = s;
2262
- return n && w.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), g && w.addEventListener("mousemove", v, {
2309
+ if (N(s)) {
2310
+ const $ = s;
2311
+ return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), g && $.addEventListener("mousemove", v, {
2263
2312
  once: !0
2264
- }), w.addEventListener("mouseenter", v), w.addEventListener("mouseleave", T), () => {
2265
- n && w.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && w.removeEventListener("mousemove", v), w.removeEventListener("mouseenter", v), w.removeEventListener("mouseleave", T);
2313
+ }), $.addEventListener("mouseenter", v), $.addEventListener("mouseleave", I), () => {
2314
+ n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && $.removeEventListener("mousemove", v), $.removeEventListener("mouseenter", v), $.removeEventListener("mouseleave", I);
2266
2315
  };
2267
2316
  }
2268
- }, [s, l, c, e, f, u, g, F, M, B, r, n, p, x, h, o]), J(() => {
2317
+ }, [s, l, c, e, f, u, g, L, M, O, r, n, p, x, h, o]), Q(() => {
2269
2318
  var b;
2270
2319
  if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && D()) {
2271
- const T = ue(l).body;
2272
- if (T.setAttribute(Wt, ""), T.style.pointerEvents = "none", k.current = !0, W(s) && l) {
2320
+ const I = fe(l).body;
2321
+ if (I.setAttribute(zt, ""), I.style.pointerEvents = "none", T.current = !0, N(s) && l) {
2273
2322
  var v;
2274
- const R = s, w = p == null || (v = p.nodesRef.current.find((L) => L.id === $)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
2275
- return w && (w.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
2323
+ const R = s, $ = p == null || (v = p.nodesRef.current.find((F) => F.id === w)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
2324
+ return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
2276
2325
  R.style.pointerEvents = "", l.style.pointerEvents = "";
2277
2326
  };
2278
2327
  }
2279
2328
  }
2280
- }, [c, n, $, l, s, p, h, D]), J(() => {
2281
- n || (P.current = void 0, M(), B());
2282
- }, [n, M, B]), y.useEffect(() => () => {
2283
- M(), clearTimeout(S.current), clearTimeout(I.current), B();
2284
- }, [c, s, M, B]), y.useMemo(() => {
2329
+ }, [c, n, w, l, s, p, h, D]), Q(() => {
2330
+ n || (P.current = void 0, M(), O());
2331
+ }, [n, M, O]), y.useEffect(() => () => {
2332
+ M(), clearTimeout(S.current), clearTimeout(C.current), O();
2333
+ }, [c, s, M, O]), y.useMemo(() => {
2285
2334
  if (!c)
2286
2335
  return {};
2287
2336
  function b(v) {
@@ -2292,7 +2341,7 @@ function Wo(e, t) {
2292
2341
  onPointerDown: b,
2293
2342
  onPointerEnter: b,
2294
2343
  onMouseMove(v) {
2295
- n || u === 0 || (clearTimeout(I.current), I.current = setTimeout(() => {
2344
+ n || u === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
2296
2345
  A.current || r(!0, v.nativeEvent, "hover");
2297
2346
  }, u));
2298
2347
  }
@@ -2302,13 +2351,13 @@ function Wo(e, t) {
2302
2351
  clearTimeout(S.current);
2303
2352
  },
2304
2353
  onMouseLeave(v) {
2305
- F(v.nativeEvent, !1);
2354
+ L(v.nativeEvent, !1);
2306
2355
  }
2307
2356
  }
2308
2357
  };
2309
- }, [c, u, n, r, F]);
2358
+ }, [c, u, n, r, L]);
2310
2359
  }
2311
- function We(e, t) {
2360
+ function Ve(e, t) {
2312
2361
  let n = e.filter((o) => {
2313
2362
  var i;
2314
2363
  return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
@@ -2335,25 +2384,25 @@ const xn = () => ({
2335
2384
  function wn(e, t) {
2336
2385
  const n = vn(e, xn());
2337
2386
  t === "prev" && n.reverse();
2338
- const r = n.indexOf(Cr(ue(e)));
2387
+ const r = n.indexOf(Cr(fe(e)));
2339
2388
  return n.slice(r + 1)[0];
2340
2389
  }
2341
- function zo() {
2390
+ function jo() {
2342
2391
  return wn(document.body, "next");
2343
2392
  }
2344
- function jo() {
2393
+ function Ho() {
2345
2394
  return wn(document.body, "prev");
2346
2395
  }
2347
- function it(e, t) {
2396
+ function ot(e, t) {
2348
2397
  const n = t || e.currentTarget, r = e.relatedTarget;
2349
- return !r || !me(n, r);
2398
+ return !r || !pe(n, r);
2350
2399
  }
2351
- function Ho(e) {
2400
+ function Vo(e) {
2352
2401
  vn(e, xn()).forEach((n) => {
2353
2402
  n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
2354
2403
  });
2355
2404
  }
2356
- function Vo(e) {
2405
+ function _o(e) {
2357
2406
  e.querySelectorAll("[data-tabindex]").forEach((n) => {
2358
2407
  const r = n.dataset.tabindex;
2359
2408
  delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
@@ -2372,14 +2421,14 @@ const $n = {
2372
2421
  top: 0,
2373
2422
  left: 0
2374
2423
  };
2375
- let _o;
2376
- function zt(e) {
2377
- e.key === "Tab" && (e.target, clearTimeout(_o));
2424
+ let Yo;
2425
+ function jt(e) {
2426
+ e.key === "Tab" && (e.target, clearTimeout(Yo));
2378
2427
  }
2379
- const jt = /* @__PURE__ */ y.forwardRef(function(t, n) {
2428
+ const Ht = /* @__PURE__ */ y.forwardRef(function(t, n) {
2380
2429
  const [r, o] = y.useState();
2381
- J(() => (kr() && o("button"), document.addEventListener("keydown", zt), () => {
2382
- document.removeEventListener("keydown", zt);
2430
+ Q(() => (kr() && o("button"), document.addEventListener("keydown", jt), () => {
2431
+ document.removeEventListener("keydown", jt);
2383
2432
  }), []);
2384
2433
  const i = {
2385
2434
  ref: n,
@@ -2390,45 +2439,45 @@ const jt = /* @__PURE__ */ y.forwardRef(function(t, n) {
2390
2439
  [Qe("focus-guard")]: "",
2391
2440
  style: $n
2392
2441
  };
2393
- return /* @__PURE__ */ y.createElement("span", dt({}, t, i));
2394
- }), Sn = /* @__PURE__ */ y.createContext(null), Ht = /* @__PURE__ */ Qe("portal");
2395
- function Yo(e) {
2442
+ return /* @__PURE__ */ y.createElement("span", ut({}, t, i));
2443
+ }), Sn = /* @__PURE__ */ y.createContext(null), Vt = /* @__PURE__ */ Qe("portal");
2444
+ function Ko(e) {
2396
2445
  let {
2397
2446
  id: t,
2398
2447
  root: n
2399
2448
  } = e === void 0 ? {} : e;
2400
- const [r, o] = y.useState(null), i = yt(), s = Xo(), l = y.useRef(null);
2401
- return J(() => () => {
2449
+ const [r, o] = y.useState(null), i = yt(), s = Go(), l = y.useRef(null);
2450
+ return Q(() => () => {
2402
2451
  r == null || r.remove(), queueMicrotask(() => {
2403
2452
  l.current = null;
2404
2453
  });
2405
- }, [r]), J(() => {
2454
+ }, [r]), Q(() => {
2406
2455
  if (l.current)
2407
2456
  return;
2408
2457
  const a = t ? document.getElementById(t) : null;
2409
2458
  if (!a)
2410
2459
  return;
2411
2460
  const c = document.createElement("div");
2412
- c.id = i, c.setAttribute(Ht, ""), a.appendChild(c), l.current = c, o(c);
2413
- }, [t, i]), J(() => {
2461
+ c.id = i, c.setAttribute(Vt, ""), a.appendChild(c), l.current = c, o(c);
2462
+ }, [t, i]), Q(() => {
2414
2463
  if (l.current)
2415
2464
  return;
2416
2465
  let a = n || (s == null ? void 0 : s.portalNode);
2417
- a && !W(a) && (a = a.current), a = a || document.body;
2466
+ a && !N(a) && (a = a.current), a = a || document.body;
2418
2467
  let c = null;
2419
2468
  t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
2420
2469
  const m = document.createElement("div");
2421
- m.id = i, m.setAttribute(Ht, ""), a = c || a, a.appendChild(m), l.current = m, o(m);
2470
+ m.id = i, m.setAttribute(Vt, ""), a = c || a, a.appendChild(m), l.current = m, o(m);
2422
2471
  }, [t, n, i, s]), r;
2423
2472
  }
2424
- function Ko(e) {
2473
+ function Xo(e) {
2425
2474
  let {
2426
2475
  children: t,
2427
2476
  id: n,
2428
2477
  root: r = null,
2429
2478
  preserveTabOrder: o = !0
2430
2479
  } = e;
2431
- const i = Yo({
2480
+ const i = Ko({
2432
2481
  id: n,
2433
2482
  root: r
2434
2483
  }), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), m = y.useRef(null), d = y.useRef(null), f = (
@@ -2442,7 +2491,7 @@ function Ko(e) {
2442
2491
  if (!i || !o || s != null && s.modal)
2443
2492
  return;
2444
2493
  function u(g) {
2445
- i && it(g) && (g.type === "focusin" ? Vo : Ho)(i);
2494
+ i && ot(g) && (g.type === "focusin" ? _o : Vo)(i);
2446
2495
  }
2447
2496
  return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
2448
2497
  i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
@@ -2457,43 +2506,43 @@ function Ko(e) {
2457
2506
  portalNode: i,
2458
2507
  setFocusManagerState: l
2459
2508
  }), [o, i])
2460
- }, f && i && /* @__PURE__ */ y.createElement(jt, {
2509
+ }, f && i && /* @__PURE__ */ y.createElement(Ht, {
2461
2510
  "data-type": "outside",
2462
2511
  ref: a,
2463
2512
  onFocus: (u) => {
2464
- if (it(u, i)) {
2513
+ if (ot(u, i)) {
2465
2514
  var g;
2466
2515
  (g = m.current) == null || g.focus();
2467
2516
  } else {
2468
- const p = jo() || (s == null ? void 0 : s.refs.domReference.current);
2517
+ const p = Ho() || (s == null ? void 0 : s.refs.domReference.current);
2469
2518
  p == null || p.focus();
2470
2519
  }
2471
2520
  }
2472
2521
  }), f && i && /* @__PURE__ */ y.createElement("span", {
2473
2522
  "aria-owns": i.id,
2474
2523
  style: $n
2475
- }), i && /* @__PURE__ */ Bn(t, i), f && i && /* @__PURE__ */ y.createElement(jt, {
2524
+ }), i && /* @__PURE__ */ Bn(t, i), f && i && /* @__PURE__ */ y.createElement(Ht, {
2476
2525
  "data-type": "outside",
2477
2526
  ref: c,
2478
2527
  onFocus: (u) => {
2479
- if (it(u, i)) {
2528
+ if (ot(u, i)) {
2480
2529
  var g;
2481
2530
  (g = d.current) == null || g.focus();
2482
2531
  } else {
2483
- const p = zo() || (s == null ? void 0 : s.refs.domReference.current);
2532
+ const p = jo() || (s == null ? void 0 : s.refs.domReference.current);
2484
2533
  p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, u.nativeEvent));
2485
2534
  }
2486
2535
  }
2487
2536
  }));
2488
2537
  }
2489
- const Xo = () => y.useContext(Sn);
2490
- function Vt(e) {
2491
- return q(e.target) && e.target.tagName === "BUTTON";
2492
- }
2538
+ const Go = () => y.useContext(Sn);
2493
2539
  function _t(e) {
2540
+ return Z(e.target) && e.target.tagName === "BUTTON";
2541
+ }
2542
+ function Yt(e) {
2494
2543
  return Ar(e);
2495
2544
  }
2496
- function Go(e, t) {
2545
+ function Uo(e, t) {
2497
2546
  t === void 0 && (t = {});
2498
2547
  const {
2499
2548
  open: n,
@@ -2515,40 +2564,40 @@ function Go(e, t) {
2515
2564
  d.current = u.pointerType;
2516
2565
  },
2517
2566
  onMouseDown(u) {
2518
- u.button === 0 && (ze(d.current, !0) && c || l !== "click" && (n && a && (!o.current.openEvent || o.current.openEvent.type === "mousedown") ? r(!1, u.nativeEvent, "click") : (u.preventDefault(), r(!0, u.nativeEvent, "click"))));
2567
+ u.button === 0 && (_e(d.current, !0) && c || l !== "click" && (n && a && (!o.current.openEvent || o.current.openEvent.type === "mousedown") ? r(!1, u.nativeEvent, "click") : (u.preventDefault(), r(!0, u.nativeEvent, "click"))));
2519
2568
  },
2520
2569
  onClick(u) {
2521
2570
  if (l === "mousedown" && d.current) {
2522
2571
  d.current = void 0;
2523
2572
  return;
2524
2573
  }
2525
- ze(d.current, !0) && c || (n && a && (!o.current.openEvent || o.current.openEvent.type === "click") ? r(!1, u.nativeEvent, "click") : r(!0, u.nativeEvent, "click"));
2574
+ _e(d.current, !0) && c || (n && a && (!o.current.openEvent || o.current.openEvent.type === "click") ? r(!1, u.nativeEvent, "click") : r(!0, u.nativeEvent, "click"));
2526
2575
  },
2527
2576
  onKeyDown(u) {
2528
- d.current = void 0, !(u.defaultPrevented || !m || Vt(u)) && (u.key === " " && !_t(i) && (u.preventDefault(), f.current = !0), u.key === "Enter" && r(!(n && a), u.nativeEvent, "click"));
2577
+ d.current = void 0, !(u.defaultPrevented || !m || _t(u)) && (u.key === " " && !Yt(i) && (u.preventDefault(), f.current = !0), u.key === "Enter" && r(!(n && a), u.nativeEvent, "click"));
2529
2578
  },
2530
2579
  onKeyUp(u) {
2531
- u.defaultPrevented || !m || Vt(u) || _t(i) || u.key === " " && f.current && (f.current = !1, r(!(n && a), u.nativeEvent, "click"));
2580
+ u.defaultPrevented || !m || _t(u) || Yt(i) || u.key === " " && f.current && (f.current = !1, r(!(n && a), u.nativeEvent, "click"));
2532
2581
  }
2533
2582
  }
2534
2583
  } : {}, [s, o, l, c, m, i, a, n, r]);
2535
2584
  }
2536
- const Uo = {
2585
+ const qo = {
2537
2586
  pointerdown: "onPointerDown",
2538
2587
  mousedown: "onMouseDown",
2539
2588
  click: "onClick"
2540
- }, qo = {
2589
+ }, Zo = {
2541
2590
  pointerdown: "onPointerDownCapture",
2542
2591
  mousedown: "onMouseDownCapture",
2543
2592
  click: "onClickCapture"
2544
- }, Yt = (e) => {
2593
+ }, Kt = (e) => {
2545
2594
  var t, n;
2546
2595
  return {
2547
2596
  escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
2548
2597
  outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
2549
2598
  };
2550
2599
  };
2551
- function Zo(e, t) {
2600
+ function Jo(e, t) {
2552
2601
  t === void 0 && (t = {});
2553
2602
  const {
2554
2603
  open: n,
@@ -2568,23 +2617,23 @@ function Zo(e, t) {
2568
2617
  referencePress: u = !1,
2569
2618
  referencePressEvent: g = "pointerdown",
2570
2619
  ancestorScroll: p = !1,
2571
- bubbles: $,
2620
+ bubbles: w,
2572
2621
  capture: h
2573
- } = t, x = xt(), P = Re(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, C = y.useRef(!1), I = y.useRef(!1), {
2622
+ } = t, x = xt(), P = Re(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, k = y.useRef(!1), C = y.useRef(!1), {
2574
2623
  escapeKey: A,
2575
- outsidePress: k
2576
- } = Yt($), {
2577
- escapeKey: O,
2624
+ outsidePress: T
2625
+ } = Kt(w), {
2626
+ escapeKey: B,
2578
2627
  outsidePress: D
2579
- } = Yt(h), F = Re((v) => {
2628
+ } = Kt(h), L = Re((v) => {
2580
2629
  if (!n || !c || !m || v.key !== "Escape")
2581
2630
  return;
2582
- const T = x ? We(x.nodesRef.current, o) : [];
2583
- if (!A && (v.stopPropagation(), T.length > 0)) {
2631
+ const I = x ? Ve(x.nodesRef.current, o) : [];
2632
+ if (!A && (v.stopPropagation(), I.length > 0)) {
2584
2633
  let R = !0;
2585
- if (T.forEach((w) => {
2586
- var L;
2587
- if ((L = w.context) != null && L.open && !w.context.dataRef.current.__escapeKeyBubbles) {
2634
+ if (I.forEach(($) => {
2635
+ var F;
2636
+ if ((F = $.context) != null && F.open && !$.context.dataRef.current.__escapeKeyBubbles) {
2588
2637
  R = !1;
2589
2638
  return;
2590
2639
  }
@@ -2593,49 +2642,49 @@ function Zo(e, t) {
2593
2642
  }
2594
2643
  r(!1, Tr(v) ? v.nativeEvent : v, "escape-key");
2595
2644
  }), M = Re((v) => {
2596
- var T;
2645
+ var I;
2597
2646
  const R = () => {
2598
- var w;
2599
- F(v), (w = Se(v)) == null || w.removeEventListener("keydown", R);
2647
+ var $;
2648
+ L(v), ($ = Se(v)) == null || $.removeEventListener("keydown", R);
2600
2649
  };
2601
- (T = Se(v)) == null || T.addEventListener("keydown", R);
2602
- }), B = Re((v) => {
2603
- const T = C.current;
2604
- C.current = !1;
2605
- const R = I.current;
2606
- if (I.current = !1, f === "click" && R || T || typeof S == "function" && !S(v))
2650
+ (I = Se(v)) == null || I.addEventListener("keydown", R);
2651
+ }), O = Re((v) => {
2652
+ const I = k.current;
2653
+ k.current = !1;
2654
+ const R = C.current;
2655
+ if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
2607
2656
  return;
2608
- const w = Se(v), L = "[" + Qe("inert") + "]", K = ue(l).querySelectorAll(L);
2609
- let G = W(w) ? w : null;
2657
+ const $ = Se(v), F = "[" + Qe("inert") + "]", K = fe(l).querySelectorAll(F);
2658
+ let G = N($) ? $ : null;
2610
2659
  for (; G && !Te(G); ) {
2611
- const H = pe(G);
2612
- if (Te(H) || !W(H))
2660
+ const H = he(G);
2661
+ if (Te(H) || !N(H))
2613
2662
  break;
2614
2663
  G = H;
2615
2664
  }
2616
- if (K.length && W(w) && !Ir(w) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
2617
- !me(w, l) && // If the target root element contains none of the markers, then the
2665
+ if (K.length && N($) && !Ir($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
2666
+ !pe($, l) && // If the target root element contains none of the markers, then the
2618
2667
  // element was injected after the floating element rendered.
2619
- Array.from(K).every((H) => !me(G, H)))
2668
+ Array.from(K).every((H) => !pe(G, H)))
2620
2669
  return;
2621
- if (q(w) && l) {
2622
- const H = w.clientWidth > 0 && w.scrollWidth > w.clientWidth, X = w.clientHeight > 0 && w.scrollHeight > w.clientHeight;
2623
- let se = X && v.offsetX > w.clientWidth;
2624
- if (X && Z(w).direction === "rtl" && (se = v.offsetX <= w.offsetWidth - w.clientWidth), se || H && v.offsetY > w.clientHeight)
2670
+ if (Z($) && l) {
2671
+ const H = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, X = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
2672
+ let ae = X && v.offsetX > $.clientWidth;
2673
+ if (X && J($).direction === "rtl" && (ae = v.offsetX <= $.offsetWidth - $.clientWidth), ae || H && v.offsetY > $.clientHeight)
2625
2674
  return;
2626
2675
  }
2627
- const ye = x && We(x.nodesRef.current, o).some((H) => {
2676
+ const ye = x && Ve(x.nodesRef.current, o).some((H) => {
2628
2677
  var X;
2629
- return nt(v, (X = H.context) == null ? void 0 : X.elements.floating);
2678
+ return tt(v, (X = H.context) == null ? void 0 : X.elements.floating);
2630
2679
  });
2631
- if (nt(v, l) || nt(v, s) || ye)
2680
+ if (tt(v, l) || tt(v, s) || ye)
2632
2681
  return;
2633
- const ie = x ? We(x.nodesRef.current, o) : [];
2634
- if (ie.length > 0) {
2682
+ const le = x ? Ve(x.nodesRef.current, o) : [];
2683
+ if (le.length > 0) {
2635
2684
  let H = !0;
2636
- if (ie.forEach((X) => {
2637
- var se;
2638
- if ((se = X.context) != null && se.open && !X.context.dataRef.current.__outsidePressBubbles) {
2685
+ if (le.forEach((X) => {
2686
+ var ae;
2687
+ if ((ae = X.context) != null && ae.open && !X.context.dataRef.current.__outsidePressBubbles) {
2639
2688
  H = !1;
2640
2689
  return;
2641
2690
  }
@@ -2644,61 +2693,61 @@ function Zo(e, t) {
2644
2693
  }
2645
2694
  r(!1, v, "outside-press");
2646
2695
  }), b = Re((v) => {
2647
- var T;
2696
+ var I;
2648
2697
  const R = () => {
2649
- var w;
2650
- B(v), (w = Se(v)) == null || w.removeEventListener(f, R);
2698
+ var $;
2699
+ O(v), ($ = Se(v)) == null || $.removeEventListener(f, R);
2651
2700
  };
2652
- (T = Se(v)) == null || T.addEventListener(f, R);
2701
+ (I = Se(v)) == null || I.addEventListener(f, R);
2653
2702
  });
2654
2703
  return y.useEffect(() => {
2655
2704
  if (!n || !c)
2656
2705
  return;
2657
- a.current.__escapeKeyBubbles = A, a.current.__outsidePressBubbles = k;
2658
- function v(w) {
2659
- r(!1, w, "ancestor-scroll");
2706
+ a.current.__escapeKeyBubbles = A, a.current.__outsidePressBubbles = T;
2707
+ function v($) {
2708
+ r(!1, $, "ancestor-scroll");
2660
2709
  }
2661
- const T = ue(l);
2662
- m && T.addEventListener("keydown", O ? M : F, O), S && T.addEventListener(f, D ? b : B, D);
2710
+ const I = fe(l);
2711
+ m && I.addEventListener("keydown", B ? M : L, B), S && I.addEventListener(f, D ? b : O, D);
2663
2712
  let R = [];
2664
- return p && (W(s) && (R = ne(s)), W(l) && (R = R.concat(ne(l))), !W(i) && i && i.contextElement && (R = R.concat(ne(i.contextElement)))), R = R.filter((w) => {
2665
- var L;
2666
- return w !== ((L = T.defaultView) == null ? void 0 : L.visualViewport);
2667
- }), R.forEach((w) => {
2668
- w.addEventListener("scroll", v, {
2713
+ return p && (N(s) && (R = re(s)), N(l) && (R = R.concat(re(l))), !N(i) && i && i.contextElement && (R = R.concat(re(i.contextElement)))), R = R.filter(($) => {
2714
+ var F;
2715
+ return $ !== ((F = I.defaultView) == null ? void 0 : F.visualViewport);
2716
+ }), R.forEach(($) => {
2717
+ $.addEventListener("scroll", v, {
2669
2718
  passive: !0
2670
2719
  });
2671
2720
  }), () => {
2672
- m && T.removeEventListener("keydown", O ? M : F, O), S && T.removeEventListener(f, D ? b : B, D), R.forEach((w) => {
2673
- w.removeEventListener("scroll", v);
2721
+ m && I.removeEventListener("keydown", B ? M : L, B), S && I.removeEventListener(f, D ? b : O, D), R.forEach(($) => {
2722
+ $.removeEventListener("scroll", v);
2674
2723
  });
2675
2724
  };
2676
- }, [a, l, s, i, m, S, f, n, r, p, c, A, k, F, O, M, B, D, b]), y.useEffect(() => {
2677
- C.current = !1;
2725
+ }, [a, l, s, i, m, S, f, n, r, p, c, A, T, L, B, M, O, D, b]), y.useEffect(() => {
2726
+ k.current = !1;
2678
2727
  }, [S, f]), y.useMemo(() => c ? {
2679
2728
  reference: {
2680
- onKeyDown: F,
2681
- [Uo[g]]: (v) => {
2729
+ onKeyDown: L,
2730
+ [qo[g]]: (v) => {
2682
2731
  u && r(!1, v.nativeEvent, "reference-press");
2683
2732
  }
2684
2733
  },
2685
2734
  floating: {
2686
- onKeyDown: F,
2735
+ onKeyDown: L,
2687
2736
  onMouseDown() {
2688
- I.current = !0;
2737
+ C.current = !0;
2689
2738
  },
2690
2739
  onMouseUp() {
2691
- I.current = !0;
2692
- },
2693
- [qo[f]]: () => {
2694
2740
  C.current = !0;
2741
+ },
2742
+ [Zo[f]]: () => {
2743
+ k.current = !0;
2695
2744
  }
2696
2745
  }
2697
- } : {}, [c, u, f, g, r, F]);
2746
+ } : {}, [c, u, f, g, r, L]);
2698
2747
  }
2699
- let ft;
2700
- process.env.NODE_ENV !== "production" && (ft = /* @__PURE__ */ new Set());
2701
- function Jo(e) {
2748
+ let dt;
2749
+ process.env.NODE_ENV !== "production" && (dt = /* @__PURE__ */ new Set());
2750
+ function Qo(e) {
2702
2751
  var t;
2703
2752
  e === void 0 && (e = {});
2704
2753
  const {
@@ -2708,70 +2757,70 @@ function Jo(e) {
2708
2757
  } = e;
2709
2758
  if (process.env.NODE_ENV !== "production") {
2710
2759
  var i;
2711
- const k = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
2712
- if ((i = e.elements) != null && i.reference && !W(e.elements.reference)) {
2760
+ const T = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
2761
+ if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
2713
2762
  var s;
2714
- if (!((s = ft) != null && s.has(k))) {
2763
+ if (!((s = dt) != null && s.has(T))) {
2715
2764
  var l;
2716
- (l = ft) == null || l.add(k), console.error(k);
2765
+ (l = dt) == null || l.add(T), console.error(T);
2717
2766
  }
2718
2767
  }
2719
2768
  }
2720
- const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = fo(e), f = xt(), u = vt() != null, g = Re((k, O, D) => {
2721
- k && ($.current.openEvent = O), h.emit("openchange", {
2722
- open: k,
2723
- event: O,
2769
+ const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = mo(e), f = xt(), u = vt() != null, g = Re((T, B, D) => {
2770
+ T && (w.current.openEvent = B), h.emit("openchange", {
2771
+ open: T,
2772
+ event: B,
2724
2773
  reason: D,
2725
2774
  nested: u
2726
- }), r == null || r(k, O, D);
2727
- }), p = y.useRef(null), $ = y.useRef({}), h = y.useState(() => Fo())[0], x = yt(), P = y.useCallback((k) => {
2728
- const O = W(k) ? {
2729
- getBoundingClientRect: () => k.getBoundingClientRect(),
2730
- contextElement: k
2731
- } : k;
2732
- d.refs.setReference(O);
2733
- }, [d.refs]), S = y.useCallback((k) => {
2734
- (W(k) || k === null) && (p.current = k, c(k)), (W(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2775
+ }), r == null || r(T, B, D);
2776
+ }), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Fo())[0], x = yt(), P = y.useCallback((T) => {
2777
+ const B = N(T) ? {
2778
+ getBoundingClientRect: () => T.getBoundingClientRect(),
2779
+ contextElement: T
2780
+ } : T;
2781
+ d.refs.setReference(B);
2782
+ }, [d.refs]), S = y.useCallback((T) => {
2783
+ (N(T) || T === null) && (p.current = T, c(T)), (N(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2735
2784
  // `null` to support `positionReference` + an unstable `reference`
2736
2785
  // callback ref.
2737
- k !== null && !W(k)) && d.refs.setReference(k);
2738
- }, [d.refs]), C = y.useMemo(() => ({
2786
+ T !== null && !N(T)) && d.refs.setReference(T);
2787
+ }, [d.refs]), k = y.useMemo(() => ({
2739
2788
  ...d.refs,
2740
2789
  setReference: S,
2741
2790
  setPositionReference: P,
2742
2791
  domReference: p
2743
- }), [d.refs, S, P]), I = y.useMemo(() => ({
2792
+ }), [d.refs, S, P]), C = y.useMemo(() => ({
2744
2793
  ...d.elements,
2745
2794
  domReference: m
2746
2795
  }), [d.elements, m]), A = y.useMemo(() => ({
2747
2796
  ...d,
2748
- refs: C,
2749
- elements: I,
2750
- dataRef: $,
2797
+ refs: k,
2798
+ elements: C,
2799
+ dataRef: w,
2751
2800
  nodeId: o,
2752
2801
  floatingId: x,
2753
2802
  events: h,
2754
2803
  open: n,
2755
2804
  onOpenChange: g
2756
- }), [d, o, x, h, n, g, C, I]);
2757
- return J(() => {
2758
- const k = f == null ? void 0 : f.nodesRef.current.find((O) => O.id === o);
2759
- k && (k.context = A);
2805
+ }), [d, o, x, h, n, g, k, C]);
2806
+ return Q(() => {
2807
+ const T = f == null ? void 0 : f.nodesRef.current.find((B) => B.id === o);
2808
+ T && (T.context = A);
2760
2809
  }), y.useMemo(() => ({
2761
2810
  ...d,
2762
2811
  context: A,
2763
- refs: C,
2764
- elements: I
2765
- }), [d, C, I, A]);
2812
+ refs: k,
2813
+ elements: C
2814
+ }), [d, k, C, A]);
2766
2815
  }
2767
- const Kt = "active", Xt = "selected";
2768
- function st(e, t, n) {
2816
+ const Xt = "active", Gt = "selected";
2817
+ function it(e, t, n) {
2769
2818
  const r = /* @__PURE__ */ new Map(), o = n === "item";
2770
2819
  let i = e;
2771
2820
  if (o && e) {
2772
2821
  const {
2773
- [Kt]: s,
2774
- [Xt]: l,
2822
+ [Xt]: s,
2823
+ [Gt]: l,
2775
2824
  ...a
2776
2825
  } = e;
2777
2826
  i = a;
@@ -2786,14 +2835,14 @@ function st(e, t, n) {
2786
2835
  return typeof l == "function" ? e ? l(e) : null : l;
2787
2836
  }).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
2788
2837
  let [c, m] = a;
2789
- if (!(o && [Kt, Xt].includes(c)))
2838
+ if (!(o && [Xt, Gt].includes(c)))
2790
2839
  if (c.indexOf("on") === 0) {
2791
2840
  if (r.has(c) || r.set(c, []), typeof m == "function") {
2792
2841
  var d;
2793
2842
  (d = r.get(c)) == null || d.push(m), s[c] = function() {
2794
2843
  for (var f, u = arguments.length, g = new Array(u), p = 0; p < u; p++)
2795
2844
  g[p] = arguments[p];
2796
- return (f = r.get(c)) == null ? void 0 : f.map(($) => $(...g)).find(($) => $ !== void 0);
2845
+ return (f = r.get(c)) == null ? void 0 : f.map((w) => w(...g)).find((w) => w !== void 0);
2797
2846
  };
2798
2847
  }
2799
2848
  } else
@@ -2801,10 +2850,10 @@ function st(e, t, n) {
2801
2850
  }), s), {})
2802
2851
  };
2803
2852
  }
2804
- function Qo(e) {
2853
+ function ei(e) {
2805
2854
  e === void 0 && (e = []);
2806
- const t = e, n = y.useCallback((i) => st(i, e, "reference"), t), r = y.useCallback((i) => st(i, e, "floating"), t), o = y.useCallback(
2807
- (i) => st(i, e, "item"),
2855
+ const t = e, n = y.useCallback((i) => it(i, e, "reference"), t), r = y.useCallback((i) => it(i, e, "floating"), t), o = y.useCallback(
2856
+ (i) => it(i, e, "item"),
2808
2857
  // Granularly check for `item` changes, because the `getItemProps` getter
2809
2858
  // should be as referentially stable as possible since it may be passed as
2810
2859
  // a prop to many components. All `item` key values must therefore be
@@ -2817,8 +2866,8 @@ function Qo(e) {
2817
2866
  getItemProps: o
2818
2867
  }), [n, r, o]);
2819
2868
  }
2820
- const ei = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
2821
- function ti(e, t) {
2869
+ const ti = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
2870
+ function ni(e, t) {
2822
2871
  var n;
2823
2872
  t === void 0 && (t = {});
2824
2873
  const {
@@ -2827,7 +2876,7 @@ function ti(e, t) {
2827
2876
  } = e, {
2828
2877
  enabled: i = !0,
2829
2878
  role: s = "dialog"
2830
- } = t, l = (n = ei.get(s)) != null ? n : s, a = yt(), m = vt() != null;
2879
+ } = t, l = (n = ti.get(s)) != null ? n : s, a = yt(), m = vt() != null;
2831
2880
  return y.useMemo(() => {
2832
2881
  if (!i)
2833
2882
  return {};
@@ -2899,11 +2948,11 @@ function ti(e, t) {
2899
2948
  };
2900
2949
  }, [i, s, l, r, o, a, m]);
2901
2950
  }
2902
- const Gt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
2951
+ const Ut = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
2903
2952
  function $e(e, t) {
2904
2953
  return typeof e == "function" ? e(t) : e;
2905
2954
  }
2906
- function ni(e, t) {
2955
+ function ri(e, t) {
2907
2956
  const [n, r] = y.useState(e);
2908
2957
  return e && !n && r(!0), y.useEffect(() => {
2909
2958
  if (!e) {
@@ -2912,7 +2961,7 @@ function ni(e, t) {
2912
2961
  }
2913
2962
  }, [e, t]), n;
2914
2963
  }
2915
- function ri(e, t) {
2964
+ function oi(e, t) {
2916
2965
  t === void 0 && (t = {});
2917
2966
  const {
2918
2967
  open: n,
@@ -2921,10 +2970,10 @@ function ri(e, t) {
2921
2970
  }
2922
2971
  } = e, {
2923
2972
  duration: o = 250
2924
- } = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), d = ni(n, s);
2925
- return J(() => {
2973
+ } = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), d = ri(n, s);
2974
+ return Q(() => {
2926
2975
  l && !d && m("unmounted");
2927
- }, [l, d]), J(() => {
2976
+ }, [l, d]), Q(() => {
2928
2977
  if (r) {
2929
2978
  if (n) {
2930
2979
  m("initial");
@@ -2942,7 +2991,7 @@ function ri(e, t) {
2942
2991
  status: c
2943
2992
  };
2944
2993
  }
2945
- function oi(e, t) {
2994
+ function ii(e, t) {
2946
2995
  t === void 0 && (t = {});
2947
2996
  const {
2948
2997
  initial: n = {
@@ -2960,36 +3009,36 @@ function oi(e, t) {
2960
3009
  ...$e(n, c)
2961
3010
  })), {
2962
3011
  isMounted: p,
2963
- status: $
2964
- } = ri(e, {
3012
+ status: w
3013
+ } = oi(e, {
2965
3014
  duration: s
2966
3015
  }), h = Ce(n), x = Ce(r), P = Ce(o), S = Ce(i);
2967
- return J(() => {
2968
- const C = $e(h.current, c), I = $e(P.current, c), A = $e(S.current, c), k = $e(x.current, c) || Object.keys(C).reduce((O, D) => (O[D] = "", O), {});
2969
- if ($ === "initial" && g((O) => ({
2970
- transitionProperty: O.transitionProperty,
3016
+ return Q(() => {
3017
+ const k = $e(h.current, c), C = $e(P.current, c), A = $e(S.current, c), T = $e(x.current, c) || Object.keys(k).reduce((B, D) => (B[D] = "", B), {});
3018
+ if (w === "initial" && g((B) => ({
3019
+ transitionProperty: B.transitionProperty,
2971
3020
  ...A,
2972
- ...C
2973
- })), $ === "open" && g({
2974
- transitionProperty: Object.keys(k).map(Gt).join(","),
3021
+ ...k
3022
+ })), w === "open" && g({
3023
+ transitionProperty: Object.keys(T).map(Ut).join(","),
2975
3024
  transitionDuration: d + "ms",
2976
3025
  ...A,
2977
- ...k
2978
- }), $ === "close") {
2979
- const O = I || C;
3026
+ ...T
3027
+ }), w === "close") {
3028
+ const B = C || k;
2980
3029
  g({
2981
- transitionProperty: Object.keys(O).map(Gt).join(","),
3030
+ transitionProperty: Object.keys(B).map(Ut).join(","),
2982
3031
  transitionDuration: f + "ms",
2983
3032
  ...A,
2984
- ...O
3033
+ ...B
2985
3034
  });
2986
3035
  }
2987
- }, [f, P, h, x, S, d, $, c]), {
3036
+ }, [f, P, h, x, S, d, w, c]), {
2988
3037
  isMounted: p,
2989
3038
  styles: u
2990
3039
  };
2991
3040
  }
2992
- function Ut(e, t) {
3041
+ function qt(e, t) {
2993
3042
  const [n, r] = e;
2994
3043
  let o = !1;
2995
3044
  const i = t.length;
@@ -2999,10 +3048,10 @@ function Ut(e, t) {
2999
3048
  }
3000
3049
  return o;
3001
3050
  }
3002
- function ii(e, t) {
3051
+ function si(e, t) {
3003
3052
  return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
3004
3053
  }
3005
- function si(e) {
3054
+ function li(e) {
3006
3055
  e === void 0 && (e = {});
3007
3056
  const {
3008
3057
  buffer: t = 0.5,
@@ -3014,7 +3063,7 @@ function si(e) {
3014
3063
  const u = performance.now(), g = u - a;
3015
3064
  if (s === null || l === null || g === 0)
3016
3065
  return s = d, l = f, a = u, null;
3017
- const p = d - s, $ = f - l, x = Math.sqrt(p * p + $ * $) / g;
3066
+ const p = d - s, w = f - l, x = Math.sqrt(p * p + w * w) / g;
3018
3067
  return s = d, l = f, a = u, x;
3019
3068
  }
3020
3069
  const m = (d) => {
@@ -3023,80 +3072,80 @@ function si(e) {
3023
3072
  y: u,
3024
3073
  placement: g,
3025
3074
  elements: p,
3026
- onClose: $,
3075
+ onClose: w,
3027
3076
  nodeId: h,
3028
3077
  tree: x
3029
3078
  } = d;
3030
3079
  return function(S) {
3031
- function C() {
3032
- clearTimeout(o), $();
3080
+ function k() {
3081
+ clearTimeout(o), w();
3033
3082
  }
3034
3083
  if (clearTimeout(o), !p.domReference || !p.floating || g == null || f == null || u == null)
3035
3084
  return;
3036
3085
  const {
3037
- clientX: I,
3086
+ clientX: C,
3038
3087
  clientY: A
3039
- } = S, k = [I, A], O = Se(S), D = S.type === "mouseleave", F = me(p.floating, O), M = me(p.domReference, O), B = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], T = f > b.right - b.width / 2, R = u > b.bottom - b.height / 2, w = ii(k, B), L = b.width > B.width, K = b.height > B.height, G = (L ? B : b).left, ye = (L ? B : b).right, ie = (K ? B : b).top, H = (K ? B : b).bottom;
3040
- if (F && (i = !0, !D))
3088
+ } = S, T = [C, A], B = Se(S), D = S.type === "mouseleave", L = pe(p.floating, B), M = pe(p.domReference, B), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], I = f > b.right - b.width / 2, R = u > b.bottom - b.height / 2, $ = si(T, O), F = b.width > O.width, K = b.height > O.height, G = (F ? O : b).left, ye = (F ? O : b).right, le = (K ? O : b).top, H = (K ? O : b).bottom;
3089
+ if (L && (i = !0, !D))
3041
3090
  return;
3042
3091
  if (M && (i = !1), M && !D) {
3043
3092
  i = !0;
3044
3093
  return;
3045
3094
  }
3046
- if (D && W(S.relatedTarget) && me(p.floating, S.relatedTarget) || x && We(x.nodesRef.current, h).some((le) => {
3095
+ if (D && N(S.relatedTarget) && pe(p.floating, S.relatedTarget) || x && Ve(x.nodesRef.current, h).some((ce) => {
3047
3096
  let {
3048
3097
  context: j
3049
- } = le;
3098
+ } = ce;
3050
3099
  return j == null ? void 0 : j.open;
3051
3100
  }))
3052
3101
  return;
3053
- if (v === "top" && u >= B.bottom - 1 || v === "bottom" && u <= B.top + 1 || v === "left" && f >= B.right - 1 || v === "right" && f <= B.left + 1)
3054
- return C();
3102
+ if (v === "top" && u >= O.bottom - 1 || v === "bottom" && u <= O.top + 1 || v === "left" && f >= O.right - 1 || v === "right" && f <= O.left + 1)
3103
+ return k();
3055
3104
  let X = [];
3056
3105
  switch (v) {
3057
3106
  case "top":
3058
- X = [[G, B.top + 1], [G, b.bottom - 1], [ye, b.bottom - 1], [ye, B.top + 1]];
3107
+ X = [[G, O.top + 1], [G, b.bottom - 1], [ye, b.bottom - 1], [ye, O.top + 1]];
3059
3108
  break;
3060
3109
  case "bottom":
3061
- X = [[G, b.top + 1], [G, B.bottom - 1], [ye, B.bottom - 1], [ye, b.top + 1]];
3110
+ X = [[G, b.top + 1], [G, O.bottom - 1], [ye, O.bottom - 1], [ye, b.top + 1]];
3062
3111
  break;
3063
3112
  case "left":
3064
- X = [[b.right - 1, H], [b.right - 1, ie], [B.left + 1, ie], [B.left + 1, H]];
3113
+ X = [[b.right - 1, H], [b.right - 1, le], [O.left + 1, le], [O.left + 1, H]];
3065
3114
  break;
3066
3115
  case "right":
3067
- X = [[B.right - 1, H], [B.right - 1, ie], [b.left + 1, ie], [b.left + 1, H]];
3116
+ X = [[O.right - 1, H], [O.right - 1, le], [b.left + 1, le], [b.left + 1, H]];
3068
3117
  break;
3069
3118
  }
3070
- function se(le) {
3071
- let [j, _] = le;
3119
+ function ae(ce) {
3120
+ let [j, _] = ce;
3072
3121
  switch (v) {
3073
3122
  case "top": {
3074
- const ae = [L ? j + t / 2 : T ? j + t * 4 : j - t * 4, _ + t + 1], ce = [L ? j - t / 2 : T ? j + t * 4 : j - t * 4, _ + t + 1], ve = [[b.left, T || L ? b.bottom - t : b.top], [b.right, T ? L ? b.bottom - t : b.top : b.bottom - t]];
3075
- return [ae, ce, ...ve];
3123
+ const ue = [F ? j + t / 2 : I ? j + t * 4 : j - t * 4, _ + t + 1], de = [F ? j - t / 2 : I ? j + t * 4 : j - t * 4, _ + t + 1], ve = [[b.left, I || F ? b.bottom - t : b.top], [b.right, I ? F ? b.bottom - t : b.top : b.bottom - t]];
3124
+ return [ue, de, ...ve];
3076
3125
  }
3077
3126
  case "bottom": {
3078
- const ae = [L ? j + t / 2 : T ? j + t * 4 : j - t * 4, _ - t], ce = [L ? j - t / 2 : T ? j + t * 4 : j - t * 4, _ - t], ve = [[b.left, T || L ? b.top + t : b.bottom], [b.right, T ? L ? b.top + t : b.bottom : b.top + t]];
3079
- return [ae, ce, ...ve];
3127
+ const ue = [F ? j + t / 2 : I ? j + t * 4 : j - t * 4, _ - t], de = [F ? j - t / 2 : I ? j + t * 4 : j - t * 4, _ - t], ve = [[b.left, I || F ? b.top + t : b.bottom], [b.right, I ? F ? b.top + t : b.bottom : b.top + t]];
3128
+ return [ue, de, ...ve];
3080
3129
  }
3081
3130
  case "left": {
3082
- const ae = [j + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], ce = [j + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
3083
- return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], ae, ce];
3131
+ const ue = [j + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], de = [j + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
3132
+ return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], ue, de];
3084
3133
  }
3085
3134
  case "right": {
3086
- const ae = [j - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], ce = [j - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], ve = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
3087
- return [ae, ce, ...ve];
3135
+ const ue = [j - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], de = [j - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], ve = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
3136
+ return [ue, de, ...ve];
3088
3137
  }
3089
3138
  }
3090
3139
  }
3091
- if (!Ut([I, A], X)) {
3092
- if (i && !w)
3093
- return C();
3140
+ if (!qt([C, A], X)) {
3141
+ if (i && !$)
3142
+ return k();
3094
3143
  if (!D && r) {
3095
- const le = c(S.clientX, S.clientY);
3096
- if (le !== null && le < 0.1)
3097
- return C();
3144
+ const ce = c(S.clientX, S.clientY);
3145
+ if (ce !== null && ce < 0.1)
3146
+ return k();
3098
3147
  }
3099
- Ut([I, A], se([f, u])) ? !i && r && (o = window.setTimeout(C, 40)) : C();
3148
+ qt([C, A], ae([f, u])) ? !i && r && (o = window.setTimeout(k, 40)) : k();
3100
3149
  }
3101
3150
  };
3102
3151
  };
@@ -3104,9 +3153,9 @@ function si(e) {
3104
3153
  blockPointerEvents: n
3105
3154
  }, m;
3106
3155
  }
3107
- const li = V("div"), wt = kn(
3156
+ const ai = V("div"), wt = kn(
3108
3157
  {}
3109
- ), bi = ({
3158
+ ), vi = ({
3110
3159
  children: e,
3111
3160
  offset: t,
3112
3161
  open: n,
@@ -3116,13 +3165,13 @@ const li = V("div"), wt = kn(
3116
3165
  placement: s = "bottom",
3117
3166
  role: l = "dialog"
3118
3167
  }) => {
3119
- const { refs: a, floatingStyles: c, context: m } = Jo({
3168
+ const { refs: a, floatingStyles: c, context: m } = Qo({
3120
3169
  open: n,
3121
3170
  onOpenChange: r,
3122
3171
  placement: s,
3123
- whileElementsMounted: lo,
3124
- middleware: [Vr(t), co(), ao()]
3125
- }), { isMounted: d, styles: f } = oi(m, {
3172
+ whileElementsMounted: ao,
3173
+ middleware: [Vr(t), uo(), co()]
3174
+ }), { isMounted: d, styles: f } = ii(m, {
3126
3175
  initial: ({ side: S }) => ({
3127
3176
  opacity: 0,
3128
3177
  transform: {
@@ -3132,15 +3181,15 @@ const li = V("div"), wt = kn(
3132
3181
  left: "translateX(-0.5rem)"
3133
3182
  }[S]
3134
3183
  })
3135
- }), u = Go(m, { enabled: o === "click" }), g = Wo(m, {
3184
+ }), u = Uo(m, { enabled: o === "click" }), g = zo(m, {
3136
3185
  enabled: o === "hover",
3137
3186
  delay: i,
3138
- handleClose: si()
3139
- }), p = Zo(m), $ = ti(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = Qo([
3187
+ handleClose: li()
3188
+ }), p = Jo(m), w = ni(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = ei([
3140
3189
  u,
3141
3190
  g,
3142
3191
  p,
3143
- $
3192
+ w
3144
3193
  ]), P = Tn(
3145
3194
  () => ({
3146
3195
  getFloatingProps: h,
@@ -3160,22 +3209,22 @@ const li = V("div"), wt = kn(
3160
3209
  ]
3161
3210
  );
3162
3211
  return /* @__PURE__ */ z(wt.Provider, { value: P, children: e });
3163
- }, yi = ({ children: e }) => {
3164
- const { getReferenceProps: t, refs: n } = Jt(wt);
3212
+ }, xi = ({ children: e }) => {
3213
+ const { getReferenceProps: t, refs: n } = Qt(wt);
3165
3214
  return /* @__PURE__ */ z(En, { children: In(e) && Pn(e, {
3166
3215
  ref: n.setReference,
3167
3216
  ...t()
3168
3217
  }) });
3169
- }, vi = ({ children: e, overlayCardProps: t }) => {
3218
+ }, wi = ({ children: e, overlayCardProps: t }) => {
3170
3219
  const {
3171
3220
  getFloatingProps: n,
3172
3221
  isMounted: r,
3173
3222
  refs: o,
3174
3223
  floatingStyles: i,
3175
3224
  transitionStyles: s
3176
- } = Jt(wt);
3177
- return r ? /* @__PURE__ */ z(Ko, { children: /* @__PURE__ */ z(
3178
- li,
3225
+ } = Qt(wt);
3226
+ return r ? /* @__PURE__ */ z(Xo, { children: /* @__PURE__ */ z(
3227
+ ai,
3179
3228
  {
3180
3229
  ref: o.setFloating,
3181
3230
  style: i,
@@ -3183,10 +3232,10 @@ const li = V("div"), wt = kn(
3183
3232
  css: {
3184
3233
  zIndex: "$overlayCard"
3185
3234
  },
3186
- children: /* @__PURE__ */ z(en, { ...t, style: s, children: e })
3235
+ children: /* @__PURE__ */ z(tn, { ...t, style: s, children: e })
3187
3236
  }
3188
3237
  ) }) : null;
3189
- }, xi = V("span", {
3238
+ }, $i = V("span", {
3190
3239
  flex: "0 0 auto",
3191
3240
  display: "inline-flex",
3192
3241
  padding: "$1 $2",
@@ -3223,23 +3272,23 @@ const li = V("div"), wt = kn(
3223
3272
  defaultVariants: {
3224
3273
  color: "primary"
3225
3274
  }
3226
- }), wi = V(Me.Root, {
3275
+ }), Si = V(Le.Root, {
3227
3276
  backgroundColor: "$gray50",
3228
3277
  display: "flex",
3229
3278
  alignItems: "center",
3230
3279
  padding: "$1",
3231
3280
  gap: "$1"
3232
- }), $i = V(Me.ToggleGroup, {
3281
+ }), Ri = V(Le.ToggleGroup, {
3233
3282
  display: "flex",
3234
3283
  gap: "$1",
3235
3284
  alignItems: "center"
3236
- }), Si = V(Me.Separator, {
3285
+ }), Ei = V(Le.Separator, {
3237
3286
  width: "1px",
3238
3287
  height: "1.5rem",
3239
3288
  my: "$1",
3240
3289
  mx: "$1",
3241
3290
  backgroundColor: "$border"
3242
- }), Rn = Ie(({ css: e, ...t }, n) => /* @__PURE__ */ z(
3291
+ }), Rn = Pe(({ css: e, ...t }, n) => /* @__PURE__ */ z(
3243
3292
  hr,
3244
3293
  {
3245
3294
  ref: n,
@@ -3254,13 +3303,13 @@ const li = V("div"), wt = kn(
3254
3303
  },
3255
3304
  ...t
3256
3305
  }
3257
- )), Ri = Ie(
3306
+ )), Ci = Pe(
3258
3307
  ({ children: e, dropdown: t, ...n }, r) => /* @__PURE__ */ z(
3259
- Me.Button,
3308
+ Le.Button,
3260
3309
  {
3261
3310
  asChild: !0,
3262
3311
  ref: r,
3263
- children: /* @__PURE__ */ Ge(
3312
+ children: /* @__PURE__ */ Ze(
3264
3313
  Rn,
3265
3314
  {
3266
3315
  variant: "transparent",
@@ -3274,12 +3323,12 @@ const li = V("div"), wt = kn(
3274
3323
  )
3275
3324
  }
3276
3325
  )
3277
- ), Ei = Ie(({
3326
+ ), ki = Pe(({
3278
3327
  children: e,
3279
3328
  value: t,
3280
3329
  ...n
3281
3330
  }, r) => /* @__PURE__ */ z(
3282
- Me.ToggleItem,
3331
+ Le.ToggleItem,
3283
3332
  {
3284
3333
  value: t,
3285
3334
  asChild: !0,
@@ -3295,10 +3344,10 @@ const li = V("div"), wt = kn(
3295
3344
  }
3296
3345
  )
3297
3346
  }
3298
- )), ai = V(en, {
3347
+ )), ci = V(tn, {
3299
3348
  minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
3300
3349
  padding: "$1"
3301
- }), $t = gt({
3350
+ }), $t = mt({
3302
3351
  padding: "$2 $2 $2 1.5rem",
3303
3352
  fontSize: "$sm",
3304
3353
  lineHeight: "1.25",
@@ -3321,27 +3370,27 @@ const li = V("div"), wt = kn(
3321
3370
  backgroundColor: "transparent"
3322
3371
  }
3323
3372
  }
3324
- }), Ci = ({
3373
+ }), Ti = ({
3325
3374
  side: e = "bottom",
3326
3375
  align: t = "center",
3327
3376
  trigger: n,
3328
3377
  children: r,
3329
3378
  sideOffset: o,
3330
3379
  modal: i
3331
- }) => /* @__PURE__ */ Ge(Q.Root, { modal: i, children: [
3332
- /* @__PURE__ */ z(Q.Trigger, { asChild: !0, children: n }),
3333
- /* @__PURE__ */ z(Q.Portal, { children: /* @__PURE__ */ z(
3334
- Q.Content,
3380
+ }) => /* @__PURE__ */ Ze(ee.Root, { modal: i, children: [
3381
+ /* @__PURE__ */ z(ee.Trigger, { asChild: !0, children: n }),
3382
+ /* @__PURE__ */ z(ee.Portal, { children: /* @__PURE__ */ z(
3383
+ ee.Content,
3335
3384
  {
3336
3385
  asChild: !0,
3337
3386
  side: e,
3338
3387
  align: t,
3339
3388
  collisionPadding: 10,
3340
3389
  sideOffset: o,
3341
- children: /* @__PURE__ */ z(ai, { children: r })
3390
+ children: /* @__PURE__ */ z(ci, { children: r })
3342
3391
  }
3343
3392
  ) })
3344
- ] }), ci = V(Q.ItemIndicator, {
3393
+ ] }), ui = V(ee.ItemIndicator, {
3345
3394
  position: "absolute",
3346
3395
  left: 0,
3347
3396
  top: 0,
@@ -3350,55 +3399,64 @@ const li = V("div"), wt = kn(
3350
3399
  display: "flex",
3351
3400
  justifyContent: "center",
3352
3401
  alignItems: "center"
3353
- }), ki = V(Q.Separator, {
3402
+ }), Ii = V(ee.Separator, {
3354
3403
  height: 1,
3355
3404
  backgroundColor: "$gray200",
3356
3405
  margin: 1
3357
- }), Ti = V(Q.Item, $t), Ii = V(Q.Item, $t, {
3406
+ }), Pi = V(ee.Item, $t), Ai = V(ee.Item, $t, {
3358
3407
  padding: "$2",
3359
3408
  display: "flex",
3360
3409
  alignItems: "center",
3361
3410
  gap: "$2"
3362
- }), ui = V(Q.CheckboxItem, $t), Pi = ({
3411
+ }), di = V(ee.CheckboxItem, $t), Bi = ({
3363
3412
  value: e,
3364
3413
  onChange: t,
3365
3414
  children: n
3366
- }) => /* @__PURE__ */ Ge(
3367
- ui,
3415
+ }) => /* @__PURE__ */ Ze(
3416
+ di,
3368
3417
  {
3369
3418
  checked: e,
3370
3419
  onCheckedChange: t,
3371
3420
  children: [
3372
- /* @__PURE__ */ z(ci, { children: /* @__PURE__ */ z(Dn, { size: "0.75rem" }) }),
3421
+ /* @__PURE__ */ z(ui, { children: /* @__PURE__ */ z(Dn, { size: "0.75rem" }) }),
3373
3422
  n
3374
3423
  ]
3375
3424
  }
3376
3425
  );
3377
3426
  export {
3378
- hi as A,
3379
- li as B,
3380
- Ci as D,
3381
- ai as M,
3382
- en as O,
3383
- bi as P,
3427
+ bi as A,
3428
+ ai as B,
3429
+ Ti as D,
3430
+ Xo as F,
3431
+ ci as M,
3432
+ tn as O,
3433
+ vi as P,
3384
3434
  gr as S,
3385
- wi as T,
3386
- yi as a,
3387
- vi as b,
3388
- gt as c,
3389
- hr as d,
3390
- xi as e,
3391
- $i as f,
3392
- pi as g,
3393
- Si as h,
3394
- Rn as i,
3395
- Ri as j,
3396
- Ae as k,
3435
+ Ci as T,
3436
+ Ai as a,
3437
+ Ri as b,
3438
+ mt as c,
3439
+ ki as d,
3440
+ ao as e,
3441
+ yi as f,
3442
+ uo as g,
3443
+ co as h,
3444
+ ei as i,
3445
+ ni as j,
3446
+ Si as k,
3397
3447
  Ei as l,
3398
- $t as m,
3399
- ki as n,
3400
- Ti as o,
3401
- Ii as p,
3402
- Pi as q,
3403
- V as s
3448
+ xi as m,
3449
+ wi as n,
3450
+ Vr as o,
3451
+ Be as p,
3452
+ hi as q,
3453
+ hr as r,
3454
+ V as s,
3455
+ $i as t,
3456
+ Qo as u,
3457
+ Rn as v,
3458
+ $t as w,
3459
+ Ii as x,
3460
+ Pi as y,
3461
+ Bi as z
3404
3462
  };