@arkitektbedriftene/fe-lib 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DropdownMenu-3889bea2.js → TextInput-2616ca2d.js} +828 -735
- package/dist/icons.es.js +1 -1
- package/dist/{index.esm-d078f232.js → index.esm-969855d2.js} +39 -35
- package/dist/rich-text.es.js +2 -2
- package/dist/ui/components/Form/ReactSelect.d.ts +1 -1
- package/dist/ui/components/Form/TextInput.d.ts +13 -0
- package/dist/ui/components/Form/text.d.ts +232 -0
- package/dist/ui/ui.d.ts +1 -0
- package/dist/ui.es.js +76 -61
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as z, jsxs as Pe, Fragment as Pn } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import * as
|
|
7
|
-
import { f as Ln, g as
|
|
3
|
+
import $e, { forwardRef as ve, useLayoutEffect as en, useEffect as gt, useRef as tn, createContext as Bn, useMemo as An, useContext as nn, isValidElement as On, cloneElement as Dn, useCallback as Et, useId as Mn } from "react";
|
|
4
|
+
import * as Fn from "react-dom";
|
|
5
|
+
import { createPortal as rn } from "react-dom";
|
|
6
|
+
import * as ze from "@radix-ui/react-toolbar";
|
|
7
|
+
import { f as Ln, g as zn, h as Wn } from "./index.esm-969855d2.js";
|
|
8
8
|
import * as ee from "@radix-ui/react-dropdown-menu";
|
|
9
|
-
var W = "colors", Y = "sizes", E = "space",
|
|
9
|
+
var W = "colors", Y = "sizes", E = "space", Nn = { 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" }, jn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Oe = () => {
|
|
10
10
|
const e = /* @__PURE__ */ Object.create(null);
|
|
11
11
|
return (t, n, ...r) => {
|
|
12
|
-
const o = ((i) => JSON.stringify(i,
|
|
12
|
+
const o = ((i) => JSON.stringify(i, jn))(t);
|
|
13
13
|
return o in e ? e[o] : e[o] = n(t, ...r);
|
|
14
14
|
};
|
|
15
|
-
},
|
|
15
|
+
}, ge = Symbol.for("sxs.internal"), pt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Ct = (e) => {
|
|
16
16
|
for (const t in e)
|
|
17
17
|
return !0;
|
|
18
18
|
return !1;
|
|
19
|
-
}, { hasOwnProperty:
|
|
19
|
+
}, { hasOwnProperty: Hn } = Object.prototype, at = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Vn = /\s+(?![^()]*\))/, Se = (e) => (t) => e(...typeof t == "string" ? String(t).split(Vn) : [t]), kt = { 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: Se((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: Se((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: Se((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: Se((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: Se((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: Se((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, nt = /([\d.]+)([^]*)/, _n = (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, Yn = (e, t) => e in Kn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${at(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${at(e)}:${r}fit-content`) + i) : String(t), Kn = { 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 + "-" : "", on = (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") + ")" : "")), Xn = /\s*,\s*(?![^()]*\))/, Gn = Object.prototype.toString, ke = (e, t, n, r, o) => {
|
|
20
20
|
let i, s, l;
|
|
21
21
|
const a = (c, m, d) => {
|
|
22
22
|
let f, u;
|
|
@@ -24,46 +24,46 @@ var W = "colors", Y = "sizes", E = "space", Wn = { 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, (C) => C[1].toUpperCase()), k = typeof u == "object" && u && u.toString ===
|
|
27
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof u == "object" && u && u.toString === Gn && (!r.utils[S] || !m.length);
|
|
28
28
|
if (S in r.utils && !k) {
|
|
29
29
|
const C = r.utils[S];
|
|
30
30
|
if (C !== s) {
|
|
31
31
|
s = C, g(C(u)), s = null;
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
|
-
} else if (S in
|
|
35
|
-
const C =
|
|
34
|
+
} else if (S in kt) {
|
|
35
|
+
const C = kt[S];
|
|
36
36
|
if (C !== l) {
|
|
37
37
|
l = C, g(C(u)), l = null;
|
|
38
38
|
continue;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
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,
|
|
42
|
-
const M =
|
|
43
|
-
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(
|
|
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, B, T, A, D, F) => {
|
|
42
|
+
const M = nt.test(B), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [A, B] : [B, A];
|
|
43
|
+
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(nt, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? F.replace(nt, (I, R, $) => Number(R) + O * (D === ">" ? -1 : 1) + $) : F) : "") + ")";
|
|
44
44
|
})), k) {
|
|
45
|
-
const C = x ? d.concat(f) : [...d],
|
|
46
|
-
i !== void 0 && o(
|
|
45
|
+
const C = x ? d.concat(f) : [...d], B = x ? [...m] : _n(m, f.split(Xn));
|
|
46
|
+
i !== void 0 && o(Tt(...i)), i = void 0, a(u, B, C);
|
|
47
47
|
} else
|
|
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
|
|
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 Un ? String(u) + "px" : String(u) : on(Yn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${at(f)}:`}${u}`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
var w, h;
|
|
52
52
|
};
|
|
53
|
-
g(c), i !== void 0 && o(
|
|
53
|
+
g(c), i !== void 0 && o(Tt(...i)), i = void 0;
|
|
54
54
|
};
|
|
55
55
|
a(e, t, n);
|
|
56
|
-
},
|
|
56
|
+
}, Tt = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, Un = { 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 }, It = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), pe = (e) => ((t) => {
|
|
57
57
|
let n, r = "";
|
|
58
58
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
59
|
-
r =
|
|
60
|
-
return
|
|
59
|
+
r = It(n % 52) + r;
|
|
60
|
+
return It(n % 52) + r;
|
|
61
61
|
})(((t, n) => {
|
|
62
62
|
let r = n.length;
|
|
63
63
|
for (; r; )
|
|
64
64
|
t = 33 * t ^ n.charCodeAt(--r);
|
|
65
65
|
return t;
|
|
66
|
-
})(5381, JSON.stringify(e)) >>> 0),
|
|
66
|
+
})(5381, JSON.stringify(e)) >>> 0), Fe = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], qn = (e) => {
|
|
67
67
|
if (e.href && !e.href.startsWith(location.origin))
|
|
68
68
|
return !1;
|
|
69
69
|
try {
|
|
@@ -71,7 +71,7 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
71
71
|
} catch {
|
|
72
72
|
return !1;
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, Zn = (e) => {
|
|
75
75
|
let t;
|
|
76
76
|
const n = () => {
|
|
77
77
|
const { cssRules: o } = t.sheet;
|
|
@@ -103,7 +103,7 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
103
103
|
}
|
|
104
104
|
const o = Object(e).styleSheets || [];
|
|
105
105
|
for (const l of o)
|
|
106
|
-
if (
|
|
106
|
+
if (qn(l)) {
|
|
107
107
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
108
108
|
const m = Object(c[a]);
|
|
109
109
|
if (m.type !== 1)
|
|
@@ -115,7 +115,7 @@ var W = "colors", Y = "sizes", E = "space", Wn = { 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 =
|
|
118
|
+
const u = f.slice(14, -3).trim().split(/\s+/), g = Fe[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,17 +130,17 @@ var W = "colors", Y = "sizes", E = "space", Wn = { 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 =
|
|
134
|
-
const a =
|
|
133
|
+
for (let l = Fe.length - 1; l >= 0; --l) {
|
|
134
|
+
const a = Fe[l];
|
|
135
135
|
if (!s[a]) {
|
|
136
|
-
const c =
|
|
136
|
+
const c = Fe[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
|
+
Jn(s[a]);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
return r(), t;
|
|
143
|
-
},
|
|
143
|
+
}, Jn = (e) => {
|
|
144
144
|
const t = e.group;
|
|
145
145
|
let n = t.cssRules.length;
|
|
146
146
|
e.apply = (r) => {
|
|
@@ -149,29 +149,29 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
149
149
|
} catch {
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
},
|
|
152
|
+
}, Me = Symbol(), Qn = Oe(), Pt = (e, t) => Qn(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[
|
|
157
|
-
r.type == null && (r.type = o[
|
|
158
|
-
for (const i of o[
|
|
156
|
+
if (o[ge]) {
|
|
157
|
+
r.type == null && (r.type = o[ge].type);
|
|
158
|
+
for (const i of o[ge].composers)
|
|
159
159
|
r.composers.add(i);
|
|
160
160
|
} else
|
|
161
|
-
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(
|
|
162
|
-
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]),
|
|
163
|
-
}),
|
|
164
|
-
const i = `${te(o.prefix)}c-${
|
|
161
|
+
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(er(o, e));
|
|
162
|
+
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]), tr(e, r, t);
|
|
163
|
+
}), er = ({ variants: e, compoundVariants: t, defaultVariants: n, ...r }, o) => {
|
|
164
|
+
const i = `${te(o.prefix)}c-${pe(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,
|
|
169
|
+
m = a, d = f, Hn.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 w = u[g], h = [p, w, !
|
|
174
|
+
const w = u[g], h = [p, w, !Ct(w)];
|
|
175
175
|
s.push(h);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
@@ -182,22 +182,22 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
182
182
|
u = typeof u == "object" && u || {};
|
|
183
183
|
for (const w in g)
|
|
184
184
|
g[w] = String(g[w]);
|
|
185
|
-
const p = [g, u, !
|
|
185
|
+
const p = [g, u, !Ct(u)];
|
|
186
186
|
l.push(p);
|
|
187
187
|
}
|
|
188
188
|
return [i, r, s, l, a, c];
|
|
189
|
-
},
|
|
190
|
-
const [r, o, i, s] =
|
|
189
|
+
}, tr = (e, t, n) => {
|
|
190
|
+
const [r, o, i, s] = nr(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((d) => {
|
|
191
191
|
function f() {
|
|
192
|
-
for (let u = 0; u < f[
|
|
193
|
-
const [g, p] = f[
|
|
192
|
+
for (let u = 0; u < f[Me].length; u++) {
|
|
193
|
+
const [g, p] = f[Me][u];
|
|
194
194
|
d.rules[g].apply(p);
|
|
195
195
|
}
|
|
196
|
-
return f[
|
|
196
|
+
return f[Me] = [], null;
|
|
197
197
|
}
|
|
198
|
-
return f[
|
|
198
|
+
return f[Me] = [], f.rules = {}, Fe.forEach((u) => f.rules[u] = { apply: (g) => f[Me].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
|
-
d = typeof d == "object" && d ||
|
|
200
|
+
d = typeof d == "object" && d || rr;
|
|
201
201
|
const { css: f, ...u } = d, g = {};
|
|
202
202
|
for (const h in i)
|
|
203
203
|
if (delete u[h], h in d) {
|
|
@@ -207,32 +207,32 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
207
207
|
g[h] = i[h];
|
|
208
208
|
const p = /* @__PURE__ */ new Set([...o]);
|
|
209
209
|
for (const [h, x, P, S] of t.composers) {
|
|
210
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h),
|
|
211
|
-
a.styled.apply(
|
|
210
|
+
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), ke(x, [`.${h}`], [], e, (B) => {
|
|
211
|
+
a.styled.apply(B);
|
|
212
212
|
}));
|
|
213
|
-
const k =
|
|
214
|
-
for (const
|
|
215
|
-
if (
|
|
216
|
-
for (const [T,
|
|
217
|
-
const
|
|
218
|
-
p.add(
|
|
213
|
+
const k = Bt(P, g, e.media), C = Bt(S, g, e.media, !0);
|
|
214
|
+
for (const B of k)
|
|
215
|
+
if (B !== void 0)
|
|
216
|
+
for (const [T, A, D] of B) {
|
|
217
|
+
const F = `${h}-${pe(A)}-${T}`;
|
|
218
|
+
p.add(F);
|
|
219
219
|
const M = (D ? n.rules.resonevar : n.rules.onevar).cache, O = D ? a.resonevar : a.onevar;
|
|
220
|
-
M.has(
|
|
220
|
+
M.has(F) || (M.add(F), ke(A, [`.${F}`], [], e, (b) => {
|
|
221
221
|
O.apply(b);
|
|
222
222
|
}));
|
|
223
223
|
}
|
|
224
|
-
for (const
|
|
225
|
-
if (
|
|
226
|
-
for (const [T,
|
|
227
|
-
const D = `${h}-${
|
|
228
|
-
p.add(D), n.rules.allvar.cache.has(D) || (n.rules.allvar.cache.add(D),
|
|
229
|
-
a.allvar.apply(
|
|
224
|
+
for (const B of C)
|
|
225
|
+
if (B !== void 0)
|
|
226
|
+
for (const [T, A] of B) {
|
|
227
|
+
const D = `${h}-${pe(A)}-${T}`;
|
|
228
|
+
p.add(D), n.rules.allvar.cache.has(D) || (n.rules.allvar.cache.add(D), ke(A, [`.${D}`], [], e, (F) => {
|
|
229
|
+
a.allvar.apply(F);
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
if (typeof f == "object" && f) {
|
|
234
|
-
const h = `${r}-i${
|
|
235
|
-
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h),
|
|
234
|
+
const h = `${r}-i${pe(f)}-css`;
|
|
235
|
+
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), ke(f, [`.${h}`], [], e, (x) => {
|
|
236
236
|
a.inline.apply(x);
|
|
237
237
|
}));
|
|
238
238
|
}
|
|
@@ -241,8 +241,8 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
241
241
|
const w = u.className = [...p].join(" ");
|
|
242
242
|
return { type: t.type, className: w, selector: c, props: u, toString: () => w, deferredInjector: l };
|
|
243
243
|
};
|
|
244
|
-
return
|
|
245
|
-
},
|
|
244
|
+
return pt(m, { className: r, selector: c, [ge]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
|
|
245
|
+
}, nr = (e) => {
|
|
246
246
|
let t = "";
|
|
247
247
|
const n = [], r = {}, o = [];
|
|
248
248
|
for (const [i, , , , s, l] of e) {
|
|
@@ -253,7 +253,7 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return [t, n, r, new Set(o)];
|
|
256
|
-
},
|
|
256
|
+
}, Bt = (e, t, n, r) => {
|
|
257
257
|
const o = [];
|
|
258
258
|
e:
|
|
259
259
|
for (let [i, s, l] of e) {
|
|
@@ -286,11 +286,11 @@ var W = "colors", Y = "sizes", E = "space", Wn = { 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
|
-
},
|
|
289
|
+
}, rr = {}, or = Oe(), ir = (e, t) => or(e, () => (...n) => {
|
|
290
290
|
const r = () => {
|
|
291
291
|
for (let o of n) {
|
|
292
292
|
o = typeof o == "object" && o || {};
|
|
293
|
-
let i =
|
|
293
|
+
let i = pe(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;
|
|
@@ -298,29 +298,29 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
298
298
|
l = l.includes('"') || l.includes("'") ? l : `"${l}"`, t.sheet.insertRule(`@import ${l};`, s++);
|
|
299
299
|
delete o["@import"];
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
ke(o, [], [], e, (s) => {
|
|
302
302
|
t.rules.global.apply(s);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
return "";
|
|
307
307
|
};
|
|
308
|
-
return
|
|
309
|
-
}),
|
|
310
|
-
const r = `${te(e.prefix)}k-${
|
|
308
|
+
return pt(r, { toString: r });
|
|
309
|
+
}), sr = Oe(), lr = (e, t) => sr(e, () => (n) => {
|
|
310
|
+
const r = `${te(e.prefix)}k-${pe(n)}`, o = () => {
|
|
311
311
|
if (!t.rules.global.cache.has(r)) {
|
|
312
312
|
t.rules.global.cache.add(r);
|
|
313
313
|
const i = [];
|
|
314
|
-
|
|
314
|
+
ke(n, [], [], e, (l) => i.push(l));
|
|
315
315
|
const s = `@keyframes ${r}{${i.join("")}}`;
|
|
316
316
|
t.rules.global.apply(s);
|
|
317
317
|
}
|
|
318
318
|
return r;
|
|
319
319
|
};
|
|
320
|
-
return
|
|
320
|
+
return pt(o, { get name() {
|
|
321
321
|
return o();
|
|
322
322
|
}, toString: o });
|
|
323
|
-
}),
|
|
323
|
+
}), ar = class {
|
|
324
324
|
constructor(e, t, n, r) {
|
|
325
325
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = r == null ? "" : String(r);
|
|
326
326
|
}
|
|
@@ -333,14 +333,14 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
333
333
|
toString() {
|
|
334
334
|
return this.computedValue;
|
|
335
335
|
}
|
|
336
|
-
},
|
|
336
|
+
}, cr = Oe(), ur = (e, t) => cr(e, () => (n, r) => {
|
|
337
337
|
r = typeof n == "object" && n || Object(r);
|
|
338
|
-
const o = `.${n = (n = typeof n == "string" ? n : "") || `${te(e.prefix)}t-${
|
|
338
|
+
const o = `.${n = (n = typeof n == "string" ? n : "") || `${te(e.prefix)}t-${pe(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 = `--${te(e.prefix)}${a}-${c}`, d =
|
|
343
|
-
i[a][c] = new
|
|
342
|
+
const m = `--${te(e.prefix)}${a}-${c}`, d = on(String(r[a][c]), e.prefix, a);
|
|
343
|
+
i[a][c] = new ar(c, d, a, e.prefix), s.push(`${m}:${d}`);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
const l = () => {
|
|
@@ -354,31 +354,31 @@ var W = "colors", Y = "sizes", E = "space", Wn = { gap: E, gridGap: E, columnGap
|
|
|
354
354
|
return { ...i, get className() {
|
|
355
355
|
return l();
|
|
356
356
|
}, selector: o, toString: l };
|
|
357
|
-
}),
|
|
357
|
+
}), dr = Oe(), fr = Oe(), mr = (e) => {
|
|
358
358
|
const t = ((n) => {
|
|
359
359
|
let r = !1;
|
|
360
|
-
const o =
|
|
360
|
+
const o = dr(n, (i) => {
|
|
361
361
|
r = !0;
|
|
362
|
-
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...
|
|
362
|
+
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Nn }, utils: typeof i.utils == "object" && i.utils || {} }, d = Zn(a), f = { css: Pt(m, d), globalCss: ir(m, d), keyframes: lr(m, d), createTheme: ur(m, d), reset() {
|
|
363
363
|
d.reset(), f.theme.toString();
|
|
364
364
|
}, theme: {}, sheet: d, config: m, prefix: s, getCssText: d.toString, toString: d.toString };
|
|
365
365
|
return String(f.theme = f.createTheme(c)), f;
|
|
366
366
|
});
|
|
367
367
|
return r || o.reset(), o;
|
|
368
368
|
})(e);
|
|
369
|
-
return t.styled = (({ config: n, sheet: r }) =>
|
|
370
|
-
const o =
|
|
369
|
+
return t.styled = (({ config: n, sheet: r }) => fr(n, () => {
|
|
370
|
+
const o = Pt(n, r);
|
|
371
371
|
return (...i) => {
|
|
372
|
-
const s = o(...i), l = s[
|
|
372
|
+
const s = o(...i), l = s[ge].type, a = $e.forwardRef((c, m) => {
|
|
373
373
|
const d = c && c.as || l, { props: f, deferredInjector: u } = s(c);
|
|
374
|
-
return delete f.as, f.ref = m, u ?
|
|
374
|
+
return delete f.as, f.ref = m, u ? $e.createElement($e.Fragment, null, $e.createElement(d, f), $e.createElement(u, null)) : $e.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[
|
|
376
|
+
return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[ge] = s[ge], a;
|
|
377
377
|
};
|
|
378
378
|
}))(t), t;
|
|
379
379
|
};
|
|
380
380
|
let At = 9999;
|
|
381
|
-
const
|
|
381
|
+
const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei, getCssText: Ci } = mr({
|
|
382
382
|
theme: {
|
|
383
383
|
colors: {
|
|
384
384
|
gray50: "#F9FAFA",
|
|
@@ -496,32 +496,32 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
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:
|
|
500
|
-
overlayCard:
|
|
499
|
+
toast: Ot(),
|
|
500
|
+
overlayCard: Ot()
|
|
501
501
|
}
|
|
502
502
|
},
|
|
503
503
|
media: {
|
|
504
504
|
lg: "(min-width: 1200px)",
|
|
505
505
|
print: "print"
|
|
506
506
|
}
|
|
507
|
-
}),
|
|
507
|
+
}), gr = De({
|
|
508
508
|
"0%": {
|
|
509
509
|
transform: "rotate(0)"
|
|
510
510
|
},
|
|
511
511
|
"100%": {
|
|
512
512
|
transform: "rotate(360deg)"
|
|
513
513
|
}
|
|
514
|
-
}),
|
|
514
|
+
}), pr = De({
|
|
515
515
|
"0%": {
|
|
516
516
|
strokeDashoffset: 600
|
|
517
517
|
},
|
|
518
518
|
"100%": {
|
|
519
519
|
strokeDashoffset: 0
|
|
520
520
|
}
|
|
521
|
-
}),
|
|
522
|
-
animation: `${
|
|
523
|
-
}),
|
|
524
|
-
animation: `${
|
|
521
|
+
}), hr = j("svg", {
|
|
522
|
+
animation: `${gr} 2s linear infinite`
|
|
523
|
+
}), br = j("circle", {
|
|
524
|
+
animation: `${pr} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
525
525
|
fill: "transparent",
|
|
526
526
|
stroke: "currentColor",
|
|
527
527
|
strokeDasharray: 300,
|
|
@@ -529,7 +529,7 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
529
529
|
strokeLinecap: "round",
|
|
530
530
|
strokeMiterlimit: 10,
|
|
531
531
|
strokeWidth: 12
|
|
532
|
-
}),
|
|
532
|
+
}), yr = j("div", {
|
|
533
533
|
lineHeight: 0,
|
|
534
534
|
flexShrink: 0,
|
|
535
535
|
variants: {
|
|
@@ -567,20 +567,20 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
567
567
|
size: "sm",
|
|
568
568
|
color: "dark"
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
571
|
-
(e, t) => /* @__PURE__ */
|
|
572
|
-
|
|
570
|
+
}), vr = ve(
|
|
571
|
+
(e, t) => /* @__PURE__ */ z(
|
|
572
|
+
yr,
|
|
573
573
|
{
|
|
574
574
|
ref: t,
|
|
575
575
|
...e,
|
|
576
|
-
children: /* @__PURE__ */
|
|
577
|
-
|
|
576
|
+
children: /* @__PURE__ */ z(
|
|
577
|
+
hr,
|
|
578
578
|
{
|
|
579
579
|
x: "0px",
|
|
580
580
|
y: "0px",
|
|
581
581
|
viewBox: "0 0 150 150",
|
|
582
|
-
children: /* @__PURE__ */
|
|
583
|
-
|
|
582
|
+
children: /* @__PURE__ */ z(
|
|
583
|
+
br,
|
|
584
584
|
{
|
|
585
585
|
cx: "75",
|
|
586
586
|
cy: "75",
|
|
@@ -591,7 +591,7 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
591
591
|
)
|
|
592
592
|
}
|
|
593
593
|
)
|
|
594
|
-
),
|
|
594
|
+
), xr = j("button", {
|
|
595
595
|
appearance: "none",
|
|
596
596
|
margin: 0,
|
|
597
597
|
padding: 0,
|
|
@@ -736,9 +736,9 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
736
736
|
color: "secondary",
|
|
737
737
|
size: "md"
|
|
738
738
|
}
|
|
739
|
-
}),
|
|
740
|
-
({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */
|
|
741
|
-
|
|
739
|
+
}), sn = ve(
|
|
740
|
+
({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */ Pe(
|
|
741
|
+
xr,
|
|
742
742
|
{
|
|
743
743
|
ref: s,
|
|
744
744
|
type: "button",
|
|
@@ -749,11 +749,11 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
749
749
|
...i,
|
|
750
750
|
children: [
|
|
751
751
|
e,
|
|
752
|
-
n && /* @__PURE__ */
|
|
752
|
+
n && /* @__PURE__ */ z(vr, { color: "inherit" })
|
|
753
753
|
]
|
|
754
754
|
}
|
|
755
755
|
))
|
|
756
|
-
),
|
|
756
|
+
), wr = j("div", {
|
|
757
757
|
padding: "$3",
|
|
758
758
|
borderRadius: "$md",
|
|
759
759
|
variants: {
|
|
@@ -792,9 +792,9 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
792
792
|
color: "info",
|
|
793
793
|
size: "md"
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
796
|
-
({ children: e, ...t }, n) => /* @__PURE__ */
|
|
797
|
-
|
|
795
|
+
}), ki = ve(
|
|
796
|
+
({ children: e, ...t }, n) => /* @__PURE__ */ z(
|
|
797
|
+
wr,
|
|
798
798
|
{
|
|
799
799
|
ref: n,
|
|
800
800
|
role: "alert",
|
|
@@ -802,19 +802,19 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
802
802
|
children: e
|
|
803
803
|
}
|
|
804
804
|
)
|
|
805
|
-
),
|
|
805
|
+
), $r = De({
|
|
806
806
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
807
807
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
808
|
-
}),
|
|
808
|
+
}), Sr = De({
|
|
809
809
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
810
810
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
811
|
-
}),
|
|
811
|
+
}), Rr = De({
|
|
812
812
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
813
813
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
814
|
-
}),
|
|
814
|
+
}), Er = De({
|
|
815
815
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
816
816
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
817
|
-
}),
|
|
817
|
+
}), Cr = We({
|
|
818
818
|
backgroundColor: "white",
|
|
819
819
|
boxShadow: "$overlayCard",
|
|
820
820
|
borderRadius: "$sm",
|
|
@@ -824,23 +824,23 @@ const Bt = () => (At--, At), { styled: j, css: gt, keyframes: Be, globalCss: vi,
|
|
|
824
824
|
// so for other popups that uses `OverlayCard` to work
|
|
825
825
|
// we need to explicitly set this.
|
|
826
826
|
pointerEvents: "auto"
|
|
827
|
-
}),
|
|
827
|
+
}), kr = We({
|
|
828
828
|
animationDuration: "400ms",
|
|
829
829
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
830
830
|
willChange: "transform, opacity",
|
|
831
831
|
'&[data-state="open"]': {
|
|
832
|
-
'&[data-side="top"]': { animationName:
|
|
833
|
-
'&[data-side="right"]': { animationName:
|
|
834
|
-
'&[data-side="bottom"]': { animationName:
|
|
835
|
-
'&[data-side="left"]': { animationName:
|
|
832
|
+
'&[data-side="top"]': { animationName: Rr },
|
|
833
|
+
'&[data-side="right"]': { animationName: Er },
|
|
834
|
+
'&[data-side="bottom"]': { animationName: $r },
|
|
835
|
+
'&[data-side="left"]': { animationName: Sr }
|
|
836
836
|
}
|
|
837
|
-
}),
|
|
837
|
+
}), ln = j(
|
|
838
838
|
"div",
|
|
839
|
-
|
|
840
|
-
|
|
839
|
+
Cr,
|
|
840
|
+
kr
|
|
841
841
|
);
|
|
842
842
|
function oe(e) {
|
|
843
|
-
return
|
|
843
|
+
return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
844
844
|
}
|
|
845
845
|
function q(e) {
|
|
846
846
|
var t;
|
|
@@ -848,21 +848,21 @@ function q(e) {
|
|
|
848
848
|
}
|
|
849
849
|
function ne(e) {
|
|
850
850
|
var t;
|
|
851
|
-
return (t = (
|
|
851
|
+
return (t = (an(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function an(e) {
|
|
854
854
|
return e instanceof Node || e instanceof q(e).Node;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function N(e) {
|
|
857
857
|
return e instanceof Element || e instanceof q(e).Element;
|
|
858
858
|
}
|
|
859
859
|
function Z(e) {
|
|
860
860
|
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function ct(e) {
|
|
863
863
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Ne(e) {
|
|
866
866
|
const {
|
|
867
867
|
overflow: t,
|
|
868
868
|
overflowX: n,
|
|
@@ -871,33 +871,33 @@ function Fe(e) {
|
|
|
871
871
|
} = J(e);
|
|
872
872
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Tr(e) {
|
|
875
875
|
return ["table", "td", "th"].includes(oe(e));
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
const t =
|
|
877
|
+
function ht(e) {
|
|
878
|
+
const t = bt(), n = J(e);
|
|
879
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));
|
|
880
880
|
}
|
|
881
|
-
function
|
|
882
|
-
let t =
|
|
883
|
-
for (; Z(t) && !
|
|
884
|
-
if (
|
|
881
|
+
function Ir(e) {
|
|
882
|
+
let t = be(e);
|
|
883
|
+
for (; Z(t) && !Be(t); ) {
|
|
884
|
+
if (ht(t))
|
|
885
885
|
return t;
|
|
886
|
-
t =
|
|
886
|
+
t = be(t);
|
|
887
887
|
}
|
|
888
888
|
return null;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function bt() {
|
|
891
891
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Be(e) {
|
|
894
894
|
return ["html", "body", "#document"].includes(oe(e));
|
|
895
895
|
}
|
|
896
896
|
function J(e) {
|
|
897
897
|
return q(e).getComputedStyle(e);
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
899
|
+
function et(e) {
|
|
900
|
+
return N(e) ? {
|
|
901
901
|
scrollLeft: e.scrollLeft,
|
|
902
902
|
scrollTop: e.scrollTop
|
|
903
903
|
} : {
|
|
@@ -905,29 +905,29 @@ function Je(e) {
|
|
|
905
905
|
scrollTop: e.pageYOffset
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function be(e) {
|
|
909
909
|
if (oe(e) === "html")
|
|
910
910
|
return e;
|
|
911
911
|
const t = (
|
|
912
912
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
913
913
|
e.assignedSlot || // DOM Element detected.
|
|
914
914
|
e.parentNode || // ShadowRoot detected.
|
|
915
|
-
|
|
915
|
+
ct(e) && e.host || // Fallback.
|
|
916
916
|
ne(e)
|
|
917
917
|
);
|
|
918
|
-
return
|
|
918
|
+
return ct(t) ? t.host : t;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
const t =
|
|
922
|
-
return
|
|
920
|
+
function cn(e) {
|
|
921
|
+
const t = be(e);
|
|
922
|
+
return Be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ne(t) ? t : cn(t);
|
|
923
923
|
}
|
|
924
924
|
function re(e, t, n) {
|
|
925
925
|
var r;
|
|
926
926
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
927
|
-
const o =
|
|
928
|
-
return i ? t.concat(s, s.visualViewport || [],
|
|
927
|
+
const o = cn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = q(o);
|
|
928
|
+
return i ? t.concat(s, s.visualViewport || [], Ne(o) ? o : [], s.frameElement && n ? re(s.frameElement) : []) : t.concat(o, re(o, [], n));
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Pr(e) {
|
|
931
931
|
let t = e.activeElement;
|
|
932
932
|
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
933
933
|
var n;
|
|
@@ -935,13 +935,13 @@ function Tr(e) {
|
|
|
935
935
|
}
|
|
936
936
|
return t;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function he(e, t) {
|
|
939
939
|
if (!e || !t)
|
|
940
940
|
return !1;
|
|
941
941
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
942
942
|
if (e.contains(t))
|
|
943
943
|
return !0;
|
|
944
|
-
if (n &&
|
|
944
|
+
if (n && ct(n)) {
|
|
945
945
|
let r = t;
|
|
946
946
|
for (; r; ) {
|
|
947
947
|
if (e === r)
|
|
@@ -951,23 +951,23 @@ function pe(e, t) {
|
|
|
951
951
|
}
|
|
952
952
|
return !1;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Br() {
|
|
955
955
|
return /apple/i.test(navigator.vendor);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Xe(e, t) {
|
|
958
958
|
const n = ["mouse", "pen"];
|
|
959
959
|
return t || n.push("", void 0), n.includes(e);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Ar(e) {
|
|
962
962
|
return "nativeEvent" in e;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Or(e) {
|
|
965
965
|
return e.matches("html,body");
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function me(e) {
|
|
968
968
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function rt(e, t) {
|
|
971
971
|
if (t == null)
|
|
972
972
|
return !1;
|
|
973
973
|
if ("composedPath" in e)
|
|
@@ -975,63 +975,63 @@ function tt(e, t) {
|
|
|
975
975
|
const n = e;
|
|
976
976
|
return n.target != null && t.contains(n.target);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Ee(e) {
|
|
979
979
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
980
980
|
}
|
|
981
|
-
const
|
|
982
|
-
function
|
|
983
|
-
return Z(e) && e.matches(
|
|
981
|
+
const Dr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
982
|
+
function Mr(e) {
|
|
983
|
+
return Z(e) && e.matches(Dr);
|
|
984
984
|
}
|
|
985
|
-
const
|
|
985
|
+
const Ae = Math.min, U = Math.max, Ge = Math.round, _e = Math.floor, ie = (e) => ({
|
|
986
986
|
x: e,
|
|
987
987
|
y: e
|
|
988
|
-
}),
|
|
988
|
+
}), Fr = {
|
|
989
989
|
left: "right",
|
|
990
990
|
right: "left",
|
|
991
991
|
bottom: "top",
|
|
992
992
|
top: "bottom"
|
|
993
|
-
},
|
|
993
|
+
}, Lr = {
|
|
994
994
|
start: "end",
|
|
995
995
|
end: "start"
|
|
996
996
|
};
|
|
997
|
-
function
|
|
998
|
-
return U(e,
|
|
997
|
+
function Dt(e, t, n) {
|
|
998
|
+
return U(e, Ae(t, n));
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function je(e, t) {
|
|
1001
1001
|
return typeof e == "function" ? e(t) : e;
|
|
1002
1002
|
}
|
|
1003
1003
|
function se(e) {
|
|
1004
1004
|
return e.split("-")[0];
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function He(e) {
|
|
1007
1007
|
return e.split("-")[1];
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function un(e) {
|
|
1010
1010
|
return e === "x" ? "y" : "x";
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function dn(e) {
|
|
1013
1013
|
return e === "y" ? "height" : "width";
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Ve(e) {
|
|
1016
1016
|
return ["top", "bottom"].includes(se(e)) ? "y" : "x";
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1018
|
+
function fn(e) {
|
|
1019
|
+
return un(Ve(e));
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function zr(e, t, n) {
|
|
1022
1022
|
n === void 0 && (n = !1);
|
|
1023
|
-
const r =
|
|
1023
|
+
const r = He(e), o = fn(e), i = dn(o);
|
|
1024
1024
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1025
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1025
|
+
return t.reference[i] > t.floating[i] && (s = Ue(s)), [s, Ue(s)];
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const t =
|
|
1029
|
-
return [
|
|
1027
|
+
function Wr(e) {
|
|
1028
|
+
const t = Ue(e);
|
|
1029
|
+
return [ut(e), t, ut(t)];
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1032
|
-
return e.replace(/start|end/g, (t) =>
|
|
1031
|
+
function ut(e) {
|
|
1032
|
+
return e.replace(/start|end/g, (t) => Lr[t]);
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function Nr(e, t, n) {
|
|
1035
1035
|
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1036
1036
|
switch (e) {
|
|
1037
1037
|
case "top":
|
|
@@ -1044,15 +1044,15 @@ function Wr(e, t, n) {
|
|
|
1044
1044
|
return [];
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
const o =
|
|
1049
|
-
let i =
|
|
1050
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
1047
|
+
function jr(e, t, n, r) {
|
|
1048
|
+
const o = He(e);
|
|
1049
|
+
let i = Nr(se(e), n === "start", r);
|
|
1050
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ut)))), i;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1052
|
+
function Ue(e) {
|
|
1053
|
+
return e.replace(/left|right|bottom|top/g, (t) => Fr[t]);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function Hr(e) {
|
|
1056
1056
|
return {
|
|
1057
1057
|
top: 0,
|
|
1058
1058
|
right: 0,
|
|
@@ -1061,15 +1061,15 @@ function zr(e) {
|
|
|
1061
1061
|
...e
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return typeof e != "number" ?
|
|
1064
|
+
function Vr(e) {
|
|
1065
|
+
return typeof e != "number" ? Hr(e) : {
|
|
1066
1066
|
top: e,
|
|
1067
1067
|
right: e,
|
|
1068
1068
|
bottom: e,
|
|
1069
1069
|
left: e
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function qe(e) {
|
|
1073
1073
|
return {
|
|
1074
1074
|
...e,
|
|
1075
1075
|
top: e.y,
|
|
@@ -1078,12 +1078,12 @@ function Xe(e) {
|
|
|
1078
1078
|
bottom: e.y + e.height
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Mt(e, t, n) {
|
|
1082
1082
|
let {
|
|
1083
1083
|
reference: r,
|
|
1084
1084
|
floating: o
|
|
1085
1085
|
} = e;
|
|
1086
|
-
const i =
|
|
1086
|
+
const i = Ve(t), s = fn(t), l = dn(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;
|
|
1087
1087
|
let u;
|
|
1088
1088
|
switch (a) {
|
|
1089
1089
|
case "top":
|
|
@@ -1116,7 +1116,7 @@ function Dt(e, t, n) {
|
|
|
1116
1116
|
y: r.y
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
|
-
switch (
|
|
1119
|
+
switch (He(t)) {
|
|
1120
1120
|
case "start":
|
|
1121
1121
|
u[s] -= f * (n && c ? -1 : 1);
|
|
1122
1122
|
break;
|
|
@@ -1126,7 +1126,7 @@ function Dt(e, t, n) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
return u;
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1129
|
+
const _r = async (e, t, n) => {
|
|
1130
1130
|
const {
|
|
1131
1131
|
placement: r = "bottom",
|
|
1132
1132
|
strategy: o = "absolute",
|
|
@@ -1140,7 +1140,7 @@ const Hr = async (e, t, n) => {
|
|
|
1140
1140
|
}), {
|
|
1141
1141
|
x: m,
|
|
1142
1142
|
y: d
|
|
1143
|
-
} =
|
|
1143
|
+
} = Mt(c, r, a), f = r, u = {}, g = 0;
|
|
1144
1144
|
for (let p = 0; p < l.length; p++) {
|
|
1145
1145
|
const {
|
|
1146
1146
|
name: w,
|
|
@@ -1177,7 +1177,7 @@ const Hr = async (e, t, n) => {
|
|
|
1177
1177
|
}) : k.rects), {
|
|
1178
1178
|
x: m,
|
|
1179
1179
|
y: d
|
|
1180
|
-
} =
|
|
1180
|
+
} = Mt(c, f, a)), p = -1);
|
|
1181
1181
|
}
|
|
1182
1182
|
return {
|
|
1183
1183
|
x: m,
|
|
@@ -1187,7 +1187,7 @@ const Hr = async (e, t, n) => {
|
|
|
1187
1187
|
middlewareData: u
|
|
1188
1188
|
};
|
|
1189
1189
|
};
|
|
1190
|
-
async function
|
|
1190
|
+
async function yt(e, t) {
|
|
1191
1191
|
var n;
|
|
1192
1192
|
t === void 0 && (t = {});
|
|
1193
1193
|
const {
|
|
@@ -1203,7 +1203,7 @@ async function bt(e, t) {
|
|
|
1203
1203
|
elementContext: d = "floating",
|
|
1204
1204
|
altBoundary: f = !1,
|
|
1205
1205
|
padding: u = 0
|
|
1206
|
-
} =
|
|
1206
|
+
} = je(t, e), g = Vr(u), w = l[f ? d === "floating" ? "reference" : "floating" : d], h = qe(await i.getClippingRect({
|
|
1207
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)),
|
|
1208
1208
|
boundary: c,
|
|
1209
1209
|
rootBoundary: m,
|
|
@@ -1218,7 +1218,7 @@ async function bt(e, t) {
|
|
|
1218
1218
|
} : {
|
|
1219
1219
|
x: 1,
|
|
1220
1220
|
y: 1
|
|
1221
|
-
}, k =
|
|
1221
|
+
}, k = qe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1222
1222
|
elements: l,
|
|
1223
1223
|
rect: x,
|
|
1224
1224
|
offsetParent: P,
|
|
@@ -1231,7 +1231,7 @@ async function bt(e, t) {
|
|
|
1231
1231
|
right: (k.right - h.right + g.right) / S.x
|
|
1232
1232
|
};
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1234
|
+
const Yr = function(e) {
|
|
1235
1235
|
return e === void 0 && (e = {}), {
|
|
1236
1236
|
name: "flip",
|
|
1237
1237
|
options: e,
|
|
@@ -1252,23 +1252,23 @@ const Vr = function(e) {
|
|
|
1252
1252
|
fallbackAxisSideDirection: g = "none",
|
|
1253
1253
|
flipAlignment: p = !0,
|
|
1254
1254
|
...w
|
|
1255
|
-
} =
|
|
1255
|
+
} = je(e, t);
|
|
1256
1256
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1257
1257
|
return {};
|
|
1258
|
-
const h = se(o), x = se(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [
|
|
1259
|
-
!f && g !== "none" && S.push(...
|
|
1260
|
-
const k = [l, ...S], C = await
|
|
1258
|
+
const h = se(o), x = se(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ue(l)] : Wr(l));
|
|
1259
|
+
!f && g !== "none" && S.push(...jr(l, p, g, P));
|
|
1260
|
+
const k = [l, ...S], C = await yt(t, w), B = [];
|
|
1261
1261
|
let T = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1262
|
-
if (m &&
|
|
1263
|
-
const M =
|
|
1264
|
-
|
|
1262
|
+
if (m && B.push(C[h]), d) {
|
|
1263
|
+
const M = zr(o, s, P);
|
|
1264
|
+
B.push(C[M[0]], C[M[1]]);
|
|
1265
1265
|
}
|
|
1266
1266
|
if (T = [...T, {
|
|
1267
1267
|
placement: o,
|
|
1268
|
-
overflows:
|
|
1269
|
-
}], !
|
|
1270
|
-
var
|
|
1271
|
-
const M = (((
|
|
1268
|
+
overflows: B
|
|
1269
|
+
}], !B.every((M) => M <= 0)) {
|
|
1270
|
+
var A, D;
|
|
1271
|
+
const M = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, O = k[M];
|
|
1272
1272
|
if (O)
|
|
1273
1273
|
return {
|
|
1274
1274
|
data: {
|
|
@@ -1283,8 +1283,8 @@ const Vr = function(e) {
|
|
|
1283
1283
|
if (!b)
|
|
1284
1284
|
switch (u) {
|
|
1285
1285
|
case "bestFit": {
|
|
1286
|
-
var
|
|
1287
|
-
const v = (
|
|
1286
|
+
var F;
|
|
1287
|
+
const v = (F = 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 : F[0];
|
|
1288
1288
|
v && (b = v);
|
|
1289
1289
|
break;
|
|
1290
1290
|
}
|
|
@@ -1303,12 +1303,12 @@ const Vr = function(e) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
};
|
|
1306
|
-
async function
|
|
1306
|
+
async function Kr(e, t) {
|
|
1307
1307
|
const {
|
|
1308
1308
|
placement: n,
|
|
1309
1309
|
platform: r,
|
|
1310
1310
|
elements: o
|
|
1311
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = se(n), l =
|
|
1311
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = se(n), l = He(n), a = Ve(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, d = je(t, e);
|
|
1312
1312
|
let {
|
|
1313
1313
|
mainAxis: f,
|
|
1314
1314
|
crossAxis: u,
|
|
@@ -1331,7 +1331,7 @@ async function _r(e, t) {
|
|
|
1331
1331
|
y: u * m
|
|
1332
1332
|
};
|
|
1333
1333
|
}
|
|
1334
|
-
const
|
|
1334
|
+
const Xr = function(e) {
|
|
1335
1335
|
return e === void 0 && (e = 0), {
|
|
1336
1336
|
name: "offset",
|
|
1337
1337
|
options: e,
|
|
@@ -1342,7 +1342,7 @@ const Yr = function(e) {
|
|
|
1342
1342
|
y: i,
|
|
1343
1343
|
placement: s,
|
|
1344
1344
|
middlewareData: l
|
|
1345
|
-
} = t, a = await
|
|
1345
|
+
} = t, a = await Kr(t, e);
|
|
1346
1346
|
return s === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
1347
1347
|
x: o + a.x,
|
|
1348
1348
|
y: i + a.y,
|
|
@@ -1353,7 +1353,7 @@ const Yr = function(e) {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
1355
|
};
|
|
1356
|
-
},
|
|
1356
|
+
}, Gr = function(e) {
|
|
1357
1357
|
return e === void 0 && (e = {}), {
|
|
1358
1358
|
name: "shift",
|
|
1359
1359
|
options: e,
|
|
@@ -1378,18 +1378,18 @@ const Yr = function(e) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
},
|
|
1380
1380
|
...a
|
|
1381
|
-
} =
|
|
1381
|
+
} = je(e, t), c = {
|
|
1382
1382
|
x: n,
|
|
1383
1383
|
y: r
|
|
1384
|
-
}, m = await
|
|
1384
|
+
}, m = await yt(t, a), d = Ve(se(o)), f = un(d);
|
|
1385
1385
|
let u = c[f], g = c[d];
|
|
1386
1386
|
if (i) {
|
|
1387
1387
|
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[w], P = u - m[h];
|
|
1388
|
-
u =
|
|
1388
|
+
u = Dt(x, u, P);
|
|
1389
1389
|
}
|
|
1390
1390
|
if (s) {
|
|
1391
1391
|
const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", x = g + m[w], P = g - m[h];
|
|
1392
|
-
g =
|
|
1392
|
+
g = Dt(x, g, P);
|
|
1393
1393
|
}
|
|
1394
1394
|
const p = l.fn({
|
|
1395
1395
|
...t,
|
|
@@ -1405,7 +1405,7 @@ const Yr = function(e) {
|
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
1407
|
};
|
|
1408
|
-
},
|
|
1408
|
+
}, Ur = function(e) {
|
|
1409
1409
|
return e === void 0 && (e = {}), {
|
|
1410
1410
|
name: "size",
|
|
1411
1411
|
options: e,
|
|
@@ -1419,7 +1419,7 @@ const Yr = function(e) {
|
|
|
1419
1419
|
apply: s = () => {
|
|
1420
1420
|
},
|
|
1421
1421
|
...l
|
|
1422
|
-
} =
|
|
1422
|
+
} = je(e, t), a = await yt(t, l), c = se(n), m = He(n), d = Ve(n) === "y", {
|
|
1423
1423
|
width: f,
|
|
1424
1424
|
height: u
|
|
1425
1425
|
} = r.floating;
|
|
@@ -1429,14 +1429,14 @@ const Yr = function(e) {
|
|
|
1429
1429
|
let P = w, S = h;
|
|
1430
1430
|
if (d) {
|
|
1431
1431
|
const C = f - a.left - a.right;
|
|
1432
|
-
S = m || x ?
|
|
1432
|
+
S = m || x ? Ae(h, C) : C;
|
|
1433
1433
|
} else {
|
|
1434
1434
|
const C = u - a.top - a.bottom;
|
|
1435
|
-
P = m || x ?
|
|
1435
|
+
P = m || x ? Ae(w, C) : C;
|
|
1436
1436
|
}
|
|
1437
1437
|
if (x && !m) {
|
|
1438
|
-
const C = U(a.left, 0),
|
|
1439
|
-
d ? S = f - 2 * (C !== 0 ||
|
|
1438
|
+
const C = U(a.left, 0), B = U(a.right, 0), T = U(a.top, 0), A = U(a.bottom, 0);
|
|
1439
|
+
d ? S = f - 2 * (C !== 0 || B !== 0 ? C + B : U(a.left, a.right)) : P = u - 2 * (T !== 0 || A !== 0 ? T + A : U(a.top, a.bottom));
|
|
1440
1440
|
}
|
|
1441
1441
|
await s({
|
|
1442
1442
|
...t,
|
|
@@ -1452,70 +1452,70 @@ const Yr = function(e) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
};
|
|
1454
1454
|
};
|
|
1455
|
-
function
|
|
1455
|
+
function mn(e) {
|
|
1456
1456
|
const t = J(e);
|
|
1457
1457
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1458
|
-
const o = Z(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l =
|
|
1458
|
+
const o = Z(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = Ge(n) !== i || Ge(r) !== s;
|
|
1459
1459
|
return l && (n = i, r = s), {
|
|
1460
1460
|
width: n,
|
|
1461
1461
|
height: r,
|
|
1462
1462
|
$: l
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1466
|
-
return
|
|
1465
|
+
function vt(e) {
|
|
1466
|
+
return N(e) ? e : e.contextElement;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1469
|
-
const t =
|
|
1468
|
+
function Ie(e) {
|
|
1469
|
+
const t = vt(e);
|
|
1470
1470
|
if (!Z(t))
|
|
1471
1471
|
return ie(1);
|
|
1472
1472
|
const n = t.getBoundingClientRect(), {
|
|
1473
1473
|
width: r,
|
|
1474
1474
|
height: o,
|
|
1475
1475
|
$: i
|
|
1476
|
-
} =
|
|
1477
|
-
let s = (i ?
|
|
1476
|
+
} = mn(t);
|
|
1477
|
+
let s = (i ? Ge(n.width) : n.width) / r, l = (i ? Ge(n.height) : n.height) / o;
|
|
1478
1478
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1479
1479
|
x: s,
|
|
1480
1480
|
y: l
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
|
-
const
|
|
1484
|
-
function
|
|
1483
|
+
const qr = /* @__PURE__ */ ie(0);
|
|
1484
|
+
function gn(e) {
|
|
1485
1485
|
const t = q(e);
|
|
1486
|
-
return !
|
|
1486
|
+
return !bt() || !t.visualViewport ? qr : {
|
|
1487
1487
|
x: t.visualViewport.offsetLeft,
|
|
1488
1488
|
y: t.visualViewport.offsetTop
|
|
1489
1489
|
};
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Zr(e, t, n) {
|
|
1492
1492
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function ye(e, t, n, r) {
|
|
1495
1495
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1496
|
-
const o = e.getBoundingClientRect(), i =
|
|
1496
|
+
const o = e.getBoundingClientRect(), i = vt(e);
|
|
1497
1497
|
let s = ie(1);
|
|
1498
|
-
t && (r ?
|
|
1499
|
-
const l =
|
|
1498
|
+
t && (r ? N(r) && (s = Ie(r)) : s = Ie(e));
|
|
1499
|
+
const l = Zr(i, n, r) ? gn(i) : ie(0);
|
|
1500
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;
|
|
1501
1501
|
if (i) {
|
|
1502
|
-
const f = q(i), u = r &&
|
|
1502
|
+
const f = q(i), u = r && N(r) ? q(r) : r;
|
|
1503
1503
|
let g = f, p = g.frameElement;
|
|
1504
1504
|
for (; p && r && u !== g; ) {
|
|
1505
|
-
const w =
|
|
1505
|
+
const w = Ie(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
1506
|
a *= w.x, c *= w.y, m *= w.x, d *= w.y, a += P, c += S, g = q(p), p = g.frameElement;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
return
|
|
1509
|
+
return qe({
|
|
1510
1510
|
width: m,
|
|
1511
1511
|
height: d,
|
|
1512
1512
|
x: a,
|
|
1513
1513
|
y: c
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1516
|
+
const Jr = [":popover-open", ":modal"];
|
|
1517
|
+
function pn(e) {
|
|
1518
|
+
return Jr.some((t) => {
|
|
1519
1519
|
try {
|
|
1520
1520
|
return e.matches(t);
|
|
1521
1521
|
} catch {
|
|
@@ -1523,14 +1523,14 @@ function gn(e) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Qr(e) {
|
|
1527
1527
|
let {
|
|
1528
1528
|
elements: t,
|
|
1529
1529
|
rect: n,
|
|
1530
1530
|
offsetParent: r,
|
|
1531
1531
|
strategy: o
|
|
1532
1532
|
} = e;
|
|
1533
|
-
const i = o === "fixed", s = ne(r), l = t ?
|
|
1533
|
+
const i = o === "fixed", s = ne(r), l = t ? pn(t.floating) : !1;
|
|
1534
1534
|
if (r === s || l && i)
|
|
1535
1535
|
return n;
|
|
1536
1536
|
let a = {
|
|
@@ -1538,9 +1538,9 @@ function Zr(e) {
|
|
|
1538
1538
|
scrollTop: 0
|
|
1539
1539
|
}, c = ie(1);
|
|
1540
1540
|
const m = ie(0), d = Z(r);
|
|
1541
|
-
if ((d || !d && !i) && ((oe(r) !== "body" ||
|
|
1542
|
-
const f =
|
|
1543
|
-
c =
|
|
1541
|
+
if ((d || !d && !i) && ((oe(r) !== "body" || Ne(s)) && (a = et(r)), Z(r))) {
|
|
1542
|
+
const f = ye(r);
|
|
1543
|
+
c = Ie(r), m.x = f.x + r.clientLeft, m.y = f.y + r.clientTop;
|
|
1544
1544
|
}
|
|
1545
1545
|
return {
|
|
1546
1546
|
width: n.width * c.x,
|
|
@@ -1549,15 +1549,15 @@ function Zr(e) {
|
|
|
1549
1549
|
y: n.y * c.y - a.scrollTop * c.y + m.y
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function eo(e) {
|
|
1553
1553
|
return Array.from(e.getClientRects());
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return
|
|
1555
|
+
function hn(e) {
|
|
1556
|
+
return ye(ne(e)).left + et(e).scrollLeft;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1559
|
-
const t = ne(e), n =
|
|
1560
|
-
let s = -n.scrollLeft +
|
|
1558
|
+
function to(e) {
|
|
1559
|
+
const t = ne(e), n = et(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);
|
|
1560
|
+
let s = -n.scrollLeft + hn(e);
|
|
1561
1561
|
const l = -n.scrollTop;
|
|
1562
1562
|
return J(r).direction === "rtl" && (s += U(t.clientWidth, r.clientWidth) - o), {
|
|
1563
1563
|
width: o,
|
|
@@ -1566,12 +1566,12 @@ function Qr(e) {
|
|
|
1566
1566
|
y: l
|
|
1567
1567
|
};
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function no(e, t) {
|
|
1570
1570
|
const n = q(e), r = ne(e), o = n.visualViewport;
|
|
1571
1571
|
let i = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
1572
1572
|
if (o) {
|
|
1573
1573
|
i = o.width, s = o.height;
|
|
1574
|
-
const c =
|
|
1574
|
+
const c = bt();
|
|
1575
1575
|
(!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
|
|
1576
1576
|
}
|
|
1577
1577
|
return {
|
|
@@ -1581,8 +1581,8 @@ function eo(e, t) {
|
|
|
1581
1581
|
y: a
|
|
1582
1582
|
};
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1585
|
-
const n =
|
|
1584
|
+
function ro(e, t) {
|
|
1585
|
+
const n = ye(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Z(e) ? Ie(e) : ie(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = o * i.x, c = r * i.y;
|
|
1586
1586
|
return {
|
|
1587
1587
|
width: s,
|
|
1588
1588
|
height: l,
|
|
@@ -1590,52 +1590,52 @@ function to(e, t) {
|
|
|
1590
1590
|
y: c
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Ft(e, t, n) {
|
|
1594
1594
|
let r;
|
|
1595
1595
|
if (t === "viewport")
|
|
1596
|
-
r =
|
|
1596
|
+
r = no(e, n);
|
|
1597
1597
|
else if (t === "document")
|
|
1598
|
-
r =
|
|
1599
|
-
else if (
|
|
1600
|
-
r =
|
|
1598
|
+
r = to(ne(e));
|
|
1599
|
+
else if (N(t))
|
|
1600
|
+
r = ro(t, n);
|
|
1601
1601
|
else {
|
|
1602
|
-
const o =
|
|
1602
|
+
const o = gn(e);
|
|
1603
1603
|
r = {
|
|
1604
1604
|
...t,
|
|
1605
1605
|
x: t.x - o.x,
|
|
1606
1606
|
y: t.y - o.y
|
|
1607
1607
|
};
|
|
1608
1608
|
}
|
|
1609
|
-
return
|
|
1609
|
+
return qe(r);
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const n =
|
|
1613
|
-
return n === t || !
|
|
1611
|
+
function bn(e, t) {
|
|
1612
|
+
const n = be(e);
|
|
1613
|
+
return n === t || !N(n) || Be(n) ? !1 : J(n).position === "fixed" || bn(n, t);
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function oo(e, t) {
|
|
1616
1616
|
const n = t.get(e);
|
|
1617
1617
|
if (n)
|
|
1618
1618
|
return n;
|
|
1619
|
-
let r = re(e, [], !1).filter((l) =>
|
|
1619
|
+
let r = re(e, [], !1).filter((l) => N(l) && oe(l) !== "body"), o = null;
|
|
1620
1620
|
const i = J(e).position === "fixed";
|
|
1621
|
-
let s = i ?
|
|
1622
|
-
for (;
|
|
1623
|
-
const l = J(s), a =
|
|
1624
|
-
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
1621
|
+
let s = i ? be(e) : e;
|
|
1622
|
+
for (; N(s) && !Be(s); ) {
|
|
1623
|
+
const l = J(s), a = ht(s);
|
|
1624
|
+
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ne(s) && !a && bn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = be(s);
|
|
1625
1625
|
}
|
|
1626
1626
|
return t.set(e, r), r;
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1628
|
+
function io(e) {
|
|
1629
1629
|
let {
|
|
1630
1630
|
element: t,
|
|
1631
1631
|
boundary: n,
|
|
1632
1632
|
rootBoundary: r,
|
|
1633
1633
|
strategy: o
|
|
1634
1634
|
} = e;
|
|
1635
|
-
const s = [...n === "clippingAncestors" ?
|
|
1636
|
-
const d =
|
|
1637
|
-
return c.top = U(d.top, c.top), c.right =
|
|
1638
|
-
},
|
|
1635
|
+
const s = [...n === "clippingAncestors" ? oo(t, this._c) : [].concat(n), r], l = s[0], a = s.reduce((c, m) => {
|
|
1636
|
+
const d = Ft(t, m, o);
|
|
1637
|
+
return c.top = U(d.top, c.top), c.right = Ae(d.right, c.right), c.bottom = Ae(d.bottom, c.bottom), c.left = U(d.left, c.left), c;
|
|
1638
|
+
}, Ft(t, l, o));
|
|
1639
1639
|
return {
|
|
1640
1640
|
width: a.right - a.left,
|
|
1641
1641
|
height: a.bottom - a.top,
|
|
@@ -1643,29 +1643,29 @@ function ro(e) {
|
|
|
1643
1643
|
y: a.top
|
|
1644
1644
|
};
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function so(e) {
|
|
1647
1647
|
const {
|
|
1648
1648
|
width: t,
|
|
1649
1649
|
height: n
|
|
1650
|
-
} =
|
|
1650
|
+
} = mn(e);
|
|
1651
1651
|
return {
|
|
1652
1652
|
width: t,
|
|
1653
1653
|
height: n
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const r = Z(t), o = ne(t), i = n === "fixed", s =
|
|
1656
|
+
function lo(e, t, n) {
|
|
1657
|
+
const r = Z(t), o = ne(t), i = n === "fixed", s = ye(e, !0, i, t);
|
|
1658
1658
|
let l = {
|
|
1659
1659
|
scrollLeft: 0,
|
|
1660
1660
|
scrollTop: 0
|
|
1661
1661
|
};
|
|
1662
1662
|
const a = ie(0);
|
|
1663
1663
|
if (r || !r && !i)
|
|
1664
|
-
if ((oe(t) !== "body" ||
|
|
1665
|
-
const d =
|
|
1664
|
+
if ((oe(t) !== "body" || Ne(o)) && (l = et(t)), r) {
|
|
1665
|
+
const d = ye(t, !0, i, t);
|
|
1666
1666
|
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1667
1667
|
} else
|
|
1668
|
-
o && (a.x =
|
|
1668
|
+
o && (a.x = hn(o));
|
|
1669
1669
|
const c = s.left + l.scrollLeft - a.x, m = s.top + l.scrollTop - a.y;
|
|
1670
1670
|
return {
|
|
1671
1671
|
x: c,
|
|
@@ -1677,19 +1677,19 @@ function io(e, t, n) {
|
|
|
1677
1677
|
function Lt(e, t) {
|
|
1678
1678
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function yn(e, t) {
|
|
1681
1681
|
const n = q(e);
|
|
1682
|
-
if (!Z(e) ||
|
|
1682
|
+
if (!Z(e) || pn(e))
|
|
1683
1683
|
return n;
|
|
1684
1684
|
let r = Lt(e, t);
|
|
1685
|
-
for (; r &&
|
|
1685
|
+
for (; r && Tr(r) && J(r).position === "static"; )
|
|
1686
1686
|
r = Lt(r, t);
|
|
1687
|
-
return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !
|
|
1687
|
+
return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !ht(r)) ? n : r || Ir(e) || n;
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1690
|
-
const t = this.getOffsetParent ||
|
|
1689
|
+
const ao = async function(e) {
|
|
1690
|
+
const t = this.getOffsetParent || yn, n = this.getDimensions;
|
|
1691
1691
|
return {
|
|
1692
|
-
reference:
|
|
1692
|
+
reference: lo(e.reference, await t(e.floating), e.strategy),
|
|
1693
1693
|
floating: {
|
|
1694
1694
|
x: 0,
|
|
1695
1695
|
y: 0,
|
|
@@ -1697,22 +1697,22 @@ const so = async function(e) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
};
|
|
1699
1699
|
};
|
|
1700
|
-
function
|
|
1700
|
+
function co(e) {
|
|
1701
1701
|
return J(e).direction === "rtl";
|
|
1702
1702
|
}
|
|
1703
|
-
const
|
|
1704
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1703
|
+
const uo = {
|
|
1704
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qr,
|
|
1705
1705
|
getDocumentElement: ne,
|
|
1706
|
-
getClippingRect:
|
|
1707
|
-
getOffsetParent:
|
|
1708
|
-
getElementRects:
|
|
1709
|
-
getClientRects:
|
|
1710
|
-
getDimensions:
|
|
1711
|
-
getScale:
|
|
1712
|
-
isElement:
|
|
1713
|
-
isRTL:
|
|
1706
|
+
getClippingRect: io,
|
|
1707
|
+
getOffsetParent: yn,
|
|
1708
|
+
getElementRects: ao,
|
|
1709
|
+
getClientRects: eo,
|
|
1710
|
+
getDimensions: so,
|
|
1711
|
+
getScale: Ie,
|
|
1712
|
+
isElement: N,
|
|
1713
|
+
isRTL: co
|
|
1714
1714
|
};
|
|
1715
|
-
function
|
|
1715
|
+
function fo(e, t) {
|
|
1716
1716
|
let n = null, r;
|
|
1717
1717
|
const o = ne(e);
|
|
1718
1718
|
function i() {
|
|
@@ -1729,9 +1729,9 @@ function co(e, t) {
|
|
|
1729
1729
|
} = e.getBoundingClientRect();
|
|
1730
1730
|
if (l || t(), !d || !f)
|
|
1731
1731
|
return;
|
|
1732
|
-
const u =
|
|
1732
|
+
const u = _e(m), g = _e(o.clientWidth - (c + d)), p = _e(o.clientHeight - (m + f)), w = _e(c), x = {
|
|
1733
1733
|
rootMargin: -u + "px " + -g + "px " + -p + "px " + -w + "px",
|
|
1734
|
-
threshold: U(0,
|
|
1734
|
+
threshold: U(0, Ae(1, a)) || 1
|
|
1735
1735
|
};
|
|
1736
1736
|
let P = !0;
|
|
1737
1737
|
function S(k) {
|
|
@@ -1758,7 +1758,7 @@ function co(e, t) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return s(!0), i;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function mo(e, t, n, r) {
|
|
1762
1762
|
r === void 0 && (r = {});
|
|
1763
1763
|
const {
|
|
1764
1764
|
ancestorScroll: o = !0,
|
|
@@ -1766,13 +1766,13 @@ function uo(e, t, n, r) {
|
|
|
1766
1766
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1767
1767
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1768
1768
|
animationFrame: a = !1
|
|
1769
|
-
} = r, c =
|
|
1769
|
+
} = r, c = vt(e), m = o || i ? [...c ? re(c) : [], ...re(t)] : [];
|
|
1770
1770
|
m.forEach((h) => {
|
|
1771
1771
|
o && h.addEventListener("scroll", n, {
|
|
1772
1772
|
passive: !0
|
|
1773
1773
|
}), i && h.addEventListener("resize", n);
|
|
1774
1774
|
});
|
|
1775
|
-
const d = c && l ?
|
|
1775
|
+
const d = c && l ? fo(c, n) : null;
|
|
1776
1776
|
let f = -1, u = null;
|
|
1777
1777
|
s && (u = new ResizeObserver((h) => {
|
|
1778
1778
|
let [x] = h;
|
|
@@ -1781,10 +1781,10 @@ function uo(e, t, n, r) {
|
|
|
1781
1781
|
(P = u) == null || P.observe(t);
|
|
1782
1782
|
})), n();
|
|
1783
1783
|
}), c && !a && u.observe(c), u.observe(t));
|
|
1784
|
-
let g, p = a ?
|
|
1784
|
+
let g, p = a ? ye(e) : null;
|
|
1785
1785
|
a && w();
|
|
1786
1786
|
function w() {
|
|
1787
|
-
const h =
|
|
1787
|
+
const h = ye(e);
|
|
1788
1788
|
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, g = requestAnimationFrame(w);
|
|
1789
1789
|
}
|
|
1790
1790
|
return n(), () => {
|
|
@@ -1794,21 +1794,21 @@ function uo(e, t, n, r) {
|
|
|
1794
1794
|
}), d == null || d(), (h = u) == null || h.disconnect(), u = null, a && cancelAnimationFrame(g);
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
const
|
|
1797
|
+
const go = Gr, po = Yr, Ti = Ur, ho = (e, t, n) => {
|
|
1798
1798
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1799
|
-
platform:
|
|
1799
|
+
platform: uo,
|
|
1800
1800
|
...n
|
|
1801
1801
|
}, i = {
|
|
1802
1802
|
...o.platform,
|
|
1803
1803
|
_c: r
|
|
1804
1804
|
};
|
|
1805
|
-
return
|
|
1805
|
+
return _r(e, t, {
|
|
1806
1806
|
...o,
|
|
1807
1807
|
platform: i
|
|
1808
1808
|
});
|
|
1809
1809
|
};
|
|
1810
|
-
var
|
|
1811
|
-
function
|
|
1810
|
+
var Ye = typeof document < "u" ? en : gt;
|
|
1811
|
+
function Ze(e, t) {
|
|
1812
1812
|
if (e === t)
|
|
1813
1813
|
return !0;
|
|
1814
1814
|
if (typeof e != typeof t)
|
|
@@ -1821,7 +1821,7 @@ function Ge(e, t) {
|
|
|
1821
1821
|
if (n = e.length, n !== t.length)
|
|
1822
1822
|
return !1;
|
|
1823
1823
|
for (r = n; r-- !== 0; )
|
|
1824
|
-
if (!
|
|
1824
|
+
if (!Ze(e[r], t[r]))
|
|
1825
1825
|
return !1;
|
|
1826
1826
|
return !0;
|
|
1827
1827
|
}
|
|
@@ -1832,27 +1832,27 @@ function Ge(e, t) {
|
|
|
1832
1832
|
return !1;
|
|
1833
1833
|
for (r = n; r-- !== 0; ) {
|
|
1834
1834
|
const i = o[r];
|
|
1835
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
1835
|
+
if (!(i === "_owner" && e.$$typeof) && !Ze(e[i], t[i]))
|
|
1836
1836
|
return !1;
|
|
1837
1837
|
}
|
|
1838
1838
|
return !0;
|
|
1839
1839
|
}
|
|
1840
1840
|
return e !== e && t !== t;
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function vn(e) {
|
|
1843
1843
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1846
|
-
const n =
|
|
1845
|
+
function zt(e, t) {
|
|
1846
|
+
const n = vn(e);
|
|
1847
1847
|
return Math.round(t * n) / n;
|
|
1848
1848
|
}
|
|
1849
1849
|
function Wt(e) {
|
|
1850
1850
|
const t = y.useRef(e);
|
|
1851
|
-
return
|
|
1851
|
+
return Ye(() => {
|
|
1852
1852
|
t.current = e;
|
|
1853
1853
|
}), t;
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function bo(e) {
|
|
1856
1856
|
e === void 0 && (e = {});
|
|
1857
1857
|
const {
|
|
1858
1858
|
placement: t = "bottom",
|
|
@@ -1874,48 +1874,48 @@ function po(e) {
|
|
|
1874
1874
|
middlewareData: {},
|
|
1875
1875
|
isPositioned: !1
|
|
1876
1876
|
}), [f, u] = y.useState(r);
|
|
1877
|
-
|
|
1877
|
+
Ze(f, r) || u(r);
|
|
1878
1878
|
const [g, p] = y.useState(null), [w, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1879
1879
|
R !== C.current && (C.current = R, p(R));
|
|
1880
1880
|
}, []), P = y.useCallback((R) => {
|
|
1881
|
-
R !==
|
|
1882
|
-
}, []), S = i || g, k = s || w, C = y.useRef(null),
|
|
1883
|
-
if (!C.current || !
|
|
1881
|
+
R !== B.current && (B.current = R, h(R));
|
|
1882
|
+
}, []), S = i || g, k = s || w, C = y.useRef(null), B = y.useRef(null), T = y.useRef(m), A = a != null, D = Wt(a), F = Wt(o), M = y.useCallback(() => {
|
|
1883
|
+
if (!C.current || !B.current)
|
|
1884
1884
|
return;
|
|
1885
1885
|
const R = {
|
|
1886
1886
|
placement: t,
|
|
1887
1887
|
strategy: n,
|
|
1888
1888
|
middleware: f
|
|
1889
1889
|
};
|
|
1890
|
-
|
|
1891
|
-
const
|
|
1890
|
+
F.current && (R.platform = F.current), ho(C.current, B.current, R).then(($) => {
|
|
1891
|
+
const L = {
|
|
1892
1892
|
...$,
|
|
1893
1893
|
isPositioned: !0
|
|
1894
1894
|
};
|
|
1895
|
-
O.current && !
|
|
1896
|
-
d(
|
|
1895
|
+
O.current && !Ze(T.current, L) && (T.current = L, Fn.flushSync(() => {
|
|
1896
|
+
d(L);
|
|
1897
1897
|
}));
|
|
1898
1898
|
});
|
|
1899
|
-
}, [f, t, n,
|
|
1900
|
-
|
|
1899
|
+
}, [f, t, n, F]);
|
|
1900
|
+
Ye(() => {
|
|
1901
1901
|
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((R) => ({
|
|
1902
1902
|
...R,
|
|
1903
1903
|
isPositioned: !1
|
|
1904
1904
|
})));
|
|
1905
1905
|
}, [c]);
|
|
1906
1906
|
const O = y.useRef(!1);
|
|
1907
|
-
|
|
1907
|
+
Ye(() => (O.current = !0, () => {
|
|
1908
1908
|
O.current = !1;
|
|
1909
|
-
}), []),
|
|
1910
|
-
if (S && (C.current = S), k && (
|
|
1909
|
+
}), []), Ye(() => {
|
|
1910
|
+
if (S && (C.current = S), k && (B.current = k), S && k) {
|
|
1911
1911
|
if (D.current)
|
|
1912
1912
|
return D.current(S, k, M);
|
|
1913
1913
|
M();
|
|
1914
1914
|
}
|
|
1915
|
-
}, [S, k, M, D,
|
|
1915
|
+
}, [S, k, M, D, A]);
|
|
1916
1916
|
const b = y.useMemo(() => ({
|
|
1917
1917
|
reference: C,
|
|
1918
|
-
floating:
|
|
1918
|
+
floating: B,
|
|
1919
1919
|
setReference: x,
|
|
1920
1920
|
setFloating: P
|
|
1921
1921
|
}), [x, P]), v = y.useMemo(() => ({
|
|
@@ -1929,17 +1929,17 @@ function po(e) {
|
|
|
1929
1929
|
};
|
|
1930
1930
|
if (!v.floating)
|
|
1931
1931
|
return R;
|
|
1932
|
-
const $ =
|
|
1932
|
+
const $ = zt(v.floating, m.x), L = zt(v.floating, m.y);
|
|
1933
1933
|
return l ? {
|
|
1934
1934
|
...R,
|
|
1935
|
-
transform: "translate(" + $ + "px, " +
|
|
1936
|
-
...
|
|
1935
|
+
transform: "translate(" + $ + "px, " + L + "px)",
|
|
1936
|
+
...vn(v.floating) >= 1.5 && {
|
|
1937
1937
|
willChange: "transform"
|
|
1938
1938
|
}
|
|
1939
1939
|
} : {
|
|
1940
1940
|
position: n,
|
|
1941
1941
|
left: $,
|
|
1942
|
-
top:
|
|
1942
|
+
top: L
|
|
1943
1943
|
};
|
|
1944
1944
|
}, [n, l, v.floating, m.x, m.y]);
|
|
1945
1945
|
return y.useMemo(() => ({
|
|
@@ -1954,29 +1954,29 @@ function po(e) {
|
|
|
1954
1954
|
* tabbable 6.2.0
|
|
1955
1955
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1956
1956
|
*/
|
|
1957
|
-
var
|
|
1958
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
1957
|
+
var yo = ["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])"], dt = /* @__PURE__ */ yo.join(","), xn = typeof Element > "u", Le = xn ? function() {
|
|
1958
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Je = !xn && Element.prototype.getRootNode ? function(e) {
|
|
1959
1959
|
var t;
|
|
1960
1960
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1961
1961
|
} : function(e) {
|
|
1962
1962
|
return e == null ? void 0 : e.ownerDocument;
|
|
1963
|
-
},
|
|
1963
|
+
}, Qe = function e(t, n) {
|
|
1964
1964
|
var r;
|
|
1965
1965
|
n === void 0 && (n = !0);
|
|
1966
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);
|
|
1967
1967
|
return s;
|
|
1968
|
-
},
|
|
1968
|
+
}, vo = function(t) {
|
|
1969
1969
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
1970
1970
|
return r === "" || r === "true";
|
|
1971
|
-
},
|
|
1972
|
-
if (
|
|
1971
|
+
}, xo = function(t, n, r) {
|
|
1972
|
+
if (Qe(t))
|
|
1973
1973
|
return [];
|
|
1974
|
-
var o = Array.prototype.slice.apply(t.querySelectorAll(
|
|
1975
|
-
return n &&
|
|
1976
|
-
},
|
|
1974
|
+
var o = Array.prototype.slice.apply(t.querySelectorAll(dt));
|
|
1975
|
+
return n && Le.call(t, dt) && o.unshift(t), o = o.filter(r), o;
|
|
1976
|
+
}, wo = function e(t, n, r) {
|
|
1977
1977
|
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1978
1978
|
var s = i.shift();
|
|
1979
|
-
if (!
|
|
1979
|
+
if (!Qe(s, !1))
|
|
1980
1980
|
if (s.tagName === "SLOT") {
|
|
1981
1981
|
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, r);
|
|
1982
1982
|
r.flatten ? o.push.apply(o, c) : o.push({
|
|
@@ -1984,10 +1984,10 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1984
1984
|
candidates: c
|
|
1985
1985
|
});
|
|
1986
1986
|
} else {
|
|
1987
|
-
var m =
|
|
1987
|
+
var m = Le.call(s, dt);
|
|
1988
1988
|
m && r.filter(s) && (n || !t.includes(s)) && o.push(s);
|
|
1989
1989
|
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
1990
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !
|
|
1990
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !Qe(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
|
|
1991
1991
|
if (d && f) {
|
|
1992
1992
|
var u = e(d === !0 ? s.children : d.children, !0, r);
|
|
1993
1993
|
r.flatten ? o.push.apply(o, u) : o.push({
|
|
@@ -1999,34 +1999,34 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
return o;
|
|
2002
|
-
}, xn = function(t) {
|
|
2003
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2004
2002
|
}, wn = function(t) {
|
|
2003
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2004
|
+
}, $n = function(t) {
|
|
2005
2005
|
if (!t)
|
|
2006
2006
|
throw new Error("No node provided");
|
|
2007
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
2008
|
-
},
|
|
2009
|
-
var r =
|
|
2010
|
-
return r < 0 && n && !
|
|
2011
|
-
},
|
|
2007
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || vo(t)) && !wn(t) ? 0 : t.tabIndex;
|
|
2008
|
+
}, $o = function(t, n) {
|
|
2009
|
+
var r = $n(t);
|
|
2010
|
+
return r < 0 && n && !wn(t) ? 0 : r;
|
|
2011
|
+
}, So = function(t, n) {
|
|
2012
2012
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2013
|
-
},
|
|
2013
|
+
}, Sn = function(t) {
|
|
2014
2014
|
return t.tagName === "INPUT";
|
|
2015
|
-
},
|
|
2016
|
-
return
|
|
2017
|
-
},
|
|
2015
|
+
}, Ro = function(t) {
|
|
2016
|
+
return Sn(t) && t.type === "hidden";
|
|
2017
|
+
}, Eo = function(t) {
|
|
2018
2018
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
2019
2019
|
return r.tagName === "SUMMARY";
|
|
2020
2020
|
});
|
|
2021
2021
|
return n;
|
|
2022
|
-
},
|
|
2022
|
+
}, Co = function(t, n) {
|
|
2023
2023
|
for (var r = 0; r < t.length; r++)
|
|
2024
2024
|
if (t[r].checked && t[r].form === n)
|
|
2025
2025
|
return t[r];
|
|
2026
|
-
},
|
|
2026
|
+
}, ko = function(t) {
|
|
2027
2027
|
if (!t.name)
|
|
2028
2028
|
return !0;
|
|
2029
|
-
var n = t.form ||
|
|
2029
|
+
var n = t.form || Je(t), r = function(l) {
|
|
2030
2030
|
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
2031
2031
|
}, o;
|
|
2032
2032
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -2037,78 +2037,78 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2037
2037
|
} catch (s) {
|
|
2038
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;
|
|
2039
2039
|
}
|
|
2040
|
-
var i =
|
|
2040
|
+
var i = Co(o, t.form);
|
|
2041
2041
|
return !i || i === t;
|
|
2042
|
-
}, Co = function(t) {
|
|
2043
|
-
return $n(t) && t.type === "radio";
|
|
2044
|
-
}, ko = function(t) {
|
|
2045
|
-
return Co(t) && !Eo(t);
|
|
2046
2042
|
}, To = function(t) {
|
|
2047
|
-
|
|
2043
|
+
return Sn(t) && t.type === "radio";
|
|
2044
|
+
}, Io = function(t) {
|
|
2045
|
+
return To(t) && !ko(t);
|
|
2046
|
+
}, Po = function(t) {
|
|
2047
|
+
var n, r = t && Je(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
2048
2048
|
if (r && r !== t) {
|
|
2049
2049
|
var s, l, a;
|
|
2050
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; ) {
|
|
2051
2051
|
var c, m, d;
|
|
2052
|
-
r =
|
|
2052
|
+
r = Je(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));
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
return i;
|
|
2056
2056
|
}, Nt = function(t) {
|
|
2057
2057
|
var n = t.getBoundingClientRect(), r = n.width, o = n.height;
|
|
2058
2058
|
return r === 0 && o === 0;
|
|
2059
|
-
},
|
|
2059
|
+
}, Bo = function(t, n) {
|
|
2060
2060
|
var r = n.displayCheck, o = n.getShadowRoot;
|
|
2061
2061
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2062
2062
|
return !0;
|
|
2063
|
-
var i =
|
|
2064
|
-
if (
|
|
2063
|
+
var i = Le.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
|
|
2064
|
+
if (Le.call(s, "details:not([open]) *"))
|
|
2065
2065
|
return !0;
|
|
2066
2066
|
if (!r || r === "full" || r === "legacy-full") {
|
|
2067
2067
|
if (typeof o == "function") {
|
|
2068
2068
|
for (var l = t; t; ) {
|
|
2069
|
-
var a = t.parentElement, c =
|
|
2069
|
+
var a = t.parentElement, c = Je(t);
|
|
2070
2070
|
if (a && !a.shadowRoot && o(a) === !0)
|
|
2071
2071
|
return Nt(t);
|
|
2072
2072
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2073
2073
|
}
|
|
2074
2074
|
t = l;
|
|
2075
2075
|
}
|
|
2076
|
-
if (
|
|
2076
|
+
if (Po(t))
|
|
2077
2077
|
return !t.getClientRects().length;
|
|
2078
2078
|
if (r !== "legacy-full")
|
|
2079
2079
|
return !0;
|
|
2080
2080
|
} else if (r === "non-zero-area")
|
|
2081
2081
|
return Nt(t);
|
|
2082
2082
|
return !1;
|
|
2083
|
-
},
|
|
2083
|
+
}, Ao = function(t) {
|
|
2084
2084
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2085
2085
|
for (var n = t.parentElement; n; ) {
|
|
2086
2086
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
2087
2087
|
for (var r = 0; r < n.children.length; r++) {
|
|
2088
2088
|
var o = n.children.item(r);
|
|
2089
2089
|
if (o.tagName === "LEGEND")
|
|
2090
|
-
return
|
|
2090
|
+
return Le.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
|
|
2091
2091
|
}
|
|
2092
2092
|
return !0;
|
|
2093
2093
|
}
|
|
2094
2094
|
n = n.parentElement;
|
|
2095
2095
|
}
|
|
2096
2096
|
return !1;
|
|
2097
|
-
},
|
|
2097
|
+
}, Oo = function(t, n) {
|
|
2098
2098
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2099
2099
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2100
2100
|
// note related to `candidateSelectors`)
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
},
|
|
2104
|
-
return !(
|
|
2105
|
-
},
|
|
2101
|
+
Qe(n) || Ro(n) || Bo(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2102
|
+
Eo(n) || Ao(n));
|
|
2103
|
+
}, jt = function(t, n) {
|
|
2104
|
+
return !(Io(n) || $n(n) < 0 || !Oo(t, n));
|
|
2105
|
+
}, Do = function(t) {
|
|
2106
2106
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2107
2107
|
return !!(isNaN(n) || n >= 0);
|
|
2108
|
-
},
|
|
2108
|
+
}, Mo = function e(t) {
|
|
2109
2109
|
var n = [], r = [];
|
|
2110
2110
|
return t.forEach(function(o, i) {
|
|
2111
|
-
var s = !!o.scopeParent, l = s ? o.scopeParent : o, a =
|
|
2111
|
+
var s = !!o.scopeParent, l = s ? o.scopeParent : o, a = $o(l, s), c = s ? e(o.candidates) : l;
|
|
2112
2112
|
a === 0 ? s ? n.push.apply(n, c) : n.push(l) : r.push({
|
|
2113
2113
|
documentOrder: i,
|
|
2114
2114
|
tabIndex: a,
|
|
@@ -2116,26 +2116,26 @@ var ho = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2116
2116
|
isScope: s,
|
|
2117
2117
|
content: c
|
|
2118
2118
|
});
|
|
2119
|
-
}), r.sort(
|
|
2119
|
+
}), r.sort(So).reduce(function(o, i) {
|
|
2120
2120
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
2121
2121
|
}, []).concat(n);
|
|
2122
|
-
},
|
|
2122
|
+
}, Rn = function(t, n) {
|
|
2123
2123
|
n = n || {};
|
|
2124
2124
|
var r;
|
|
2125
|
-
return n.getShadowRoot ? r =
|
|
2126
|
-
filter:
|
|
2125
|
+
return n.getShadowRoot ? r = wo([t], n.includeContainer, {
|
|
2126
|
+
filter: jt.bind(null, n),
|
|
2127
2127
|
flatten: !1,
|
|
2128
2128
|
getShadowRoot: n.getShadowRoot,
|
|
2129
|
-
shadowRootFilter:
|
|
2130
|
-
}) : r =
|
|
2129
|
+
shadowRootFilter: Do
|
|
2130
|
+
}) : r = xo(t, n.includeContainer, jt.bind(null, n)), Mo(r);
|
|
2131
2131
|
};
|
|
2132
|
-
const
|
|
2133
|
-
function
|
|
2132
|
+
const Fo = y[/* @__PURE__ */ "useInsertionEffect".toString()], Lo = Fo || ((e) => e());
|
|
2133
|
+
function Ce(e) {
|
|
2134
2134
|
const t = y.useRef(() => {
|
|
2135
2135
|
if (process.env.NODE_ENV !== "production")
|
|
2136
2136
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2137
2137
|
});
|
|
2138
|
-
return
|
|
2138
|
+
return Lo(() => {
|
|
2139
2139
|
t.current = e;
|
|
2140
2140
|
}), y.useCallback(function() {
|
|
2141
2141
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
@@ -2143,29 +2143,29 @@ function Re(e) {
|
|
|
2143
2143
|
return t.current == null ? void 0 : t.current(...r);
|
|
2144
2144
|
}, []);
|
|
2145
2145
|
}
|
|
2146
|
-
var Q = typeof document < "u" ?
|
|
2147
|
-
function
|
|
2148
|
-
return
|
|
2146
|
+
var Q = typeof document < "u" ? en : gt;
|
|
2147
|
+
function ft() {
|
|
2148
|
+
return ft = Object.assign ? Object.assign.bind() : function(e) {
|
|
2149
2149
|
for (var t = 1; t < arguments.length; t++) {
|
|
2150
2150
|
var n = arguments[t];
|
|
2151
2151
|
for (var r in n)
|
|
2152
2152
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2153
2153
|
}
|
|
2154
2154
|
return e;
|
|
2155
|
-
},
|
|
2155
|
+
}, ft.apply(this, arguments);
|
|
2156
2156
|
}
|
|
2157
|
-
let
|
|
2158
|
-
const
|
|
2159
|
-
function
|
|
2160
|
-
const [e, t] = y.useState(() =>
|
|
2157
|
+
let ot = !1, zo = 0;
|
|
2158
|
+
const Ht = () => "floating-ui-" + zo++;
|
|
2159
|
+
function Wo() {
|
|
2160
|
+
const [e, t] = y.useState(() => ot ? Ht() : void 0);
|
|
2161
2161
|
return Q(() => {
|
|
2162
|
-
e == null && t(
|
|
2162
|
+
e == null && t(Ht());
|
|
2163
2163
|
}, []), y.useEffect(() => {
|
|
2164
|
-
|
|
2164
|
+
ot || (ot = !0);
|
|
2165
2165
|
}, []), e;
|
|
2166
2166
|
}
|
|
2167
|
-
const
|
|
2168
|
-
function
|
|
2167
|
+
const No = y[/* @__PURE__ */ "useId".toString()], xt = No || Wo;
|
|
2168
|
+
function jo() {
|
|
2169
2169
|
const e = /* @__PURE__ */ new Map();
|
|
2170
2170
|
return {
|
|
2171
2171
|
emit(t, n) {
|
|
@@ -2181,24 +2181,24 @@ function No() {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
}
|
|
2184
|
-
const
|
|
2184
|
+
const Ho = /* @__PURE__ */ y.createContext(null), Vo = /* @__PURE__ */ y.createContext(null), wt = () => {
|
|
2185
2185
|
var e;
|
|
2186
|
-
return ((e = y.useContext(
|
|
2187
|
-
},
|
|
2188
|
-
function
|
|
2186
|
+
return ((e = y.useContext(Ho)) == null ? void 0 : e.id) || null;
|
|
2187
|
+
}, $t = () => y.useContext(Vo);
|
|
2188
|
+
function tt(e) {
|
|
2189
2189
|
return "data-floating-ui-" + e;
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2192
|
-
const t =
|
|
2191
|
+
function Te(e) {
|
|
2192
|
+
const t = tn(e);
|
|
2193
2193
|
return Q(() => {
|
|
2194
2194
|
t.current = e;
|
|
2195
2195
|
}), t;
|
|
2196
2196
|
}
|
|
2197
|
-
const
|
|
2198
|
-
function
|
|
2199
|
-
return n && !
|
|
2197
|
+
const Vt = /* @__PURE__ */ tt("safe-polygon");
|
|
2198
|
+
function it(e, t, n) {
|
|
2199
|
+
return n && !Xe(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function _o(e, t) {
|
|
2202
2202
|
t === void 0 && (t = {});
|
|
2203
2203
|
const {
|
|
2204
2204
|
open: n,
|
|
@@ -2217,7 +2217,7 @@ function Ho(e, t) {
|
|
|
2217
2217
|
mouseOnly: f = !1,
|
|
2218
2218
|
restMs: u = 0,
|
|
2219
2219
|
move: g = !0
|
|
2220
|
-
} = t, p =
|
|
2220
|
+
} = t, p = $t(), w = wt(), h = Te(d), x = Te(m), P = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), B = y.useRef(!0), T = y.useRef(!1), A = y.useRef(() => {
|
|
2221
2221
|
}), D = y.useCallback(() => {
|
|
2222
2222
|
var b;
|
|
2223
2223
|
const v = (b = o.current.openEvent) == null ? void 0 : b.type;
|
|
@@ -2230,7 +2230,7 @@ function Ho(e, t) {
|
|
|
2230
2230
|
let {
|
|
2231
2231
|
open: I
|
|
2232
2232
|
} = v;
|
|
2233
|
-
I || (clearTimeout(S.current), clearTimeout(C.current),
|
|
2233
|
+
I || (clearTimeout(S.current), clearTimeout(C.current), B.current = !0);
|
|
2234
2234
|
}
|
|
2235
2235
|
return i.on("openchange", b), () => {
|
|
2236
2236
|
i.off("openchange", b);
|
|
@@ -2241,21 +2241,21 @@ function Ho(e, t) {
|
|
|
2241
2241
|
function b(I) {
|
|
2242
2242
|
D() && r(!1, I, "hover");
|
|
2243
2243
|
}
|
|
2244
|
-
const v =
|
|
2244
|
+
const v = me(l).documentElement;
|
|
2245
2245
|
return v.addEventListener("mouseleave", b), () => {
|
|
2246
2246
|
v.removeEventListener("mouseleave", b);
|
|
2247
2247
|
};
|
|
2248
2248
|
}, [l, n, r, c, h, D]);
|
|
2249
|
-
const
|
|
2249
|
+
const F = y.useCallback(function(b, v, I) {
|
|
2250
2250
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2251
|
-
const R =
|
|
2251
|
+
const R = it(x.current, "close", P.current);
|
|
2252
2252
|
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => r(!1, b, I), R)) : v && (clearTimeout(S.current), r(!1, b, I));
|
|
2253
2253
|
}, [x, r]), M = y.useCallback(() => {
|
|
2254
|
-
|
|
2254
|
+
A.current(), k.current = void 0;
|
|
2255
2255
|
}, []), O = y.useCallback(() => {
|
|
2256
2256
|
if (T.current) {
|
|
2257
|
-
const b =
|
|
2258
|
-
b.style.pointerEvents = "", b.removeAttribute(
|
|
2257
|
+
const b = me(a.floating.current).body;
|
|
2258
|
+
b.style.pointerEvents = "", b.removeAttribute(Vt), T.current = !1;
|
|
2259
2259
|
}
|
|
2260
2260
|
}, [a]);
|
|
2261
2261
|
return y.useEffect(() => {
|
|
@@ -2265,18 +2265,18 @@ function Ho(e, t) {
|
|
|
2265
2265
|
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
2266
2266
|
}
|
|
2267
2267
|
function v($) {
|
|
2268
|
-
if (clearTimeout(S.current),
|
|
2268
|
+
if (clearTimeout(S.current), B.current = !1, f && !Xe(P.current) || u > 0 && it(x.current, "open") === 0)
|
|
2269
2269
|
return;
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2270
|
+
const L = it(x.current, "open", P.current);
|
|
2271
|
+
L ? S.current = setTimeout(() => {
|
|
2272
2272
|
r(!0, $, "hover");
|
|
2273
|
-
},
|
|
2273
|
+
}, L) : r(!0, $, "hover");
|
|
2274
2274
|
}
|
|
2275
2275
|
function I($) {
|
|
2276
2276
|
if (b())
|
|
2277
2277
|
return;
|
|
2278
|
-
|
|
2279
|
-
const
|
|
2278
|
+
A.current();
|
|
2279
|
+
const L = me(l);
|
|
2280
2280
|
if (clearTimeout(C.current), h.current) {
|
|
2281
2281
|
n || clearTimeout(S.current), k.current = h.current({
|
|
2282
2282
|
...e,
|
|
@@ -2284,16 +2284,16 @@ function Ho(e, t) {
|
|
|
2284
2284
|
x: $.clientX,
|
|
2285
2285
|
y: $.clientY,
|
|
2286
2286
|
onClose() {
|
|
2287
|
-
O(), M(),
|
|
2287
|
+
O(), M(), F($, !0, "safe-polygon");
|
|
2288
2288
|
}
|
|
2289
2289
|
});
|
|
2290
2290
|
const G = k.current;
|
|
2291
|
-
|
|
2292
|
-
|
|
2291
|
+
L.addEventListener("mousemove", G), A.current = () => {
|
|
2292
|
+
L.removeEventListener("mousemove", G);
|
|
2293
2293
|
};
|
|
2294
2294
|
return;
|
|
2295
2295
|
}
|
|
2296
|
-
(P.current === "touch" ? !
|
|
2296
|
+
(P.current === "touch" ? !he(l, $.relatedTarget) : !0) && F($);
|
|
2297
2297
|
}
|
|
2298
2298
|
function R($) {
|
|
2299
2299
|
b() || h.current == null || h.current({
|
|
@@ -2302,11 +2302,11 @@ function Ho(e, t) {
|
|
|
2302
2302
|
x: $.clientX,
|
|
2303
2303
|
y: $.clientY,
|
|
2304
2304
|
onClose() {
|
|
2305
|
-
O(), M(),
|
|
2305
|
+
O(), M(), F($);
|
|
2306
2306
|
}
|
|
2307
2307
|
})($);
|
|
2308
2308
|
}
|
|
2309
|
-
if (
|
|
2309
|
+
if (N(s)) {
|
|
2310
2310
|
const $ = s;
|
|
2311
2311
|
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), g && $.addEventListener("mousemove", v, {
|
|
2312
2312
|
once: !0
|
|
@@ -2314,13 +2314,13 @@ function Ho(e, t) {
|
|
|
2314
2314
|
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && $.removeEventListener("mousemove", v), $.removeEventListener("mouseenter", v), $.removeEventListener("mouseleave", I);
|
|
2315
2315
|
};
|
|
2316
2316
|
}
|
|
2317
|
-
}, [s, l, c, e, f, u, g,
|
|
2317
|
+
}, [s, l, c, e, f, u, g, F, M, O, r, n, p, x, h, o]), Q(() => {
|
|
2318
2318
|
var b;
|
|
2319
2319
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && D()) {
|
|
2320
|
-
const I =
|
|
2321
|
-
if (I.setAttribute(
|
|
2320
|
+
const I = me(l).body;
|
|
2321
|
+
if (I.setAttribute(Vt, ""), I.style.pointerEvents = "none", T.current = !0, N(s) && l) {
|
|
2322
2322
|
var v;
|
|
2323
|
-
const R = s, $ = p == null || (v = p.nodesRef.current.find((
|
|
2323
|
+
const R = s, $ = p == null || (v = p.nodesRef.current.find((L) => L.id === w)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2324
2324
|
return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
2325
2325
|
R.style.pointerEvents = "", l.style.pointerEvents = "";
|
|
2326
2326
|
};
|
|
@@ -2342,7 +2342,7 @@ function Ho(e, t) {
|
|
|
2342
2342
|
onPointerEnter: b,
|
|
2343
2343
|
onMouseMove(v) {
|
|
2344
2344
|
n || u === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2345
|
-
|
|
2345
|
+
B.current || r(!0, v.nativeEvent, "hover");
|
|
2346
2346
|
}, u));
|
|
2347
2347
|
}
|
|
2348
2348
|
},
|
|
@@ -2351,13 +2351,13 @@ function Ho(e, t) {
|
|
|
2351
2351
|
clearTimeout(S.current);
|
|
2352
2352
|
},
|
|
2353
2353
|
onMouseLeave(v) {
|
|
2354
|
-
|
|
2354
|
+
F(v.nativeEvent, !1);
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
};
|
|
2358
|
-
}, [c, u, n, r,
|
|
2358
|
+
}, [c, u, n, r, F]);
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2360
|
+
function Ke(e, t) {
|
|
2361
2361
|
let n = e.filter((o) => {
|
|
2362
2362
|
var i;
|
|
2363
2363
|
return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
|
|
@@ -2372,7 +2372,7 @@ function Ve(e, t) {
|
|
|
2372
2372
|
}), n = n.concat(r);
|
|
2373
2373
|
return n;
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const En = () => ({
|
|
2376
2376
|
getShadowRoot: !0,
|
|
2377
2377
|
displayCheck: (
|
|
2378
2378
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2381,34 +2381,34 @@ const Rn = () => ({
|
|
|
2381
2381
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2382
2382
|
)
|
|
2383
2383
|
});
|
|
2384
|
-
function
|
|
2385
|
-
const n =
|
|
2384
|
+
function Cn(e, t) {
|
|
2385
|
+
const n = Rn(e, En());
|
|
2386
2386
|
t === "prev" && n.reverse();
|
|
2387
|
-
const r = n.indexOf(
|
|
2387
|
+
const r = n.indexOf(Pr(me(e)));
|
|
2388
2388
|
return n.slice(r + 1)[0];
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return
|
|
2390
|
+
function Yo() {
|
|
2391
|
+
return Cn(document.body, "next");
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return
|
|
2393
|
+
function Ko() {
|
|
2394
|
+
return Cn(document.body, "prev");
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function st(e, t) {
|
|
2397
2397
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
2398
|
-
return !r || !
|
|
2398
|
+
return !r || !he(n, r);
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2401
|
-
|
|
2400
|
+
function Xo(e) {
|
|
2401
|
+
Rn(e, En()).forEach((n) => {
|
|
2402
2402
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function Go(e) {
|
|
2406
2406
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
2407
2407
|
const r = n.dataset.tabindex;
|
|
2408
2408
|
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
2411
|
-
const
|
|
2411
|
+
const kn = {
|
|
2412
2412
|
border: 0,
|
|
2413
2413
|
clip: "rect(0 0 0 0)",
|
|
2414
2414
|
height: "1px",
|
|
@@ -2421,14 +2421,14 @@ const Cn = {
|
|
|
2421
2421
|
top: 0,
|
|
2422
2422
|
left: 0
|
|
2423
2423
|
};
|
|
2424
|
-
let
|
|
2425
|
-
function
|
|
2426
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2424
|
+
let Uo;
|
|
2425
|
+
function _t(e) {
|
|
2426
|
+
e.key === "Tab" && (e.target, clearTimeout(Uo));
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2428
|
+
const Yt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2429
2429
|
const [r, o] = y.useState();
|
|
2430
|
-
Q(() => (
|
|
2431
|
-
document.removeEventListener("keydown",
|
|
2430
|
+
Q(() => (Br() && o("button"), document.addEventListener("keydown", _t), () => {
|
|
2431
|
+
document.removeEventListener("keydown", _t);
|
|
2432
2432
|
}), []);
|
|
2433
2433
|
const i = {
|
|
2434
2434
|
ref: n,
|
|
@@ -2436,17 +2436,17 @@ const _t = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2436
2436
|
// Role is only for VoiceOver
|
|
2437
2437
|
role: r,
|
|
2438
2438
|
"aria-hidden": r ? void 0 : !0,
|
|
2439
|
-
[
|
|
2440
|
-
style:
|
|
2439
|
+
[tt("focus-guard")]: "",
|
|
2440
|
+
style: kn
|
|
2441
2441
|
};
|
|
2442
|
-
return /* @__PURE__ */ y.createElement("span",
|
|
2443
|
-
}),
|
|
2444
|
-
function
|
|
2442
|
+
return /* @__PURE__ */ y.createElement("span", ft({}, t, i));
|
|
2443
|
+
}), Tn = /* @__PURE__ */ y.createContext(null), Kt = /* @__PURE__ */ tt("portal");
|
|
2444
|
+
function qo(e) {
|
|
2445
2445
|
let {
|
|
2446
2446
|
id: t,
|
|
2447
2447
|
root: n
|
|
2448
2448
|
} = e === void 0 ? {} : e;
|
|
2449
|
-
const [r, o] = y.useState(null), i =
|
|
2449
|
+
const [r, o] = y.useState(null), i = xt(), s = Jo(), l = y.useRef(null);
|
|
2450
2450
|
return Q(() => () => {
|
|
2451
2451
|
r == null || r.remove(), queueMicrotask(() => {
|
|
2452
2452
|
l.current = null;
|
|
@@ -2458,26 +2458,26 @@ function Go(e) {
|
|
|
2458
2458
|
if (!a)
|
|
2459
2459
|
return;
|
|
2460
2460
|
const c = document.createElement("div");
|
|
2461
|
-
c.id = i, c.setAttribute(
|
|
2461
|
+
c.id = i, c.setAttribute(Kt, ""), a.appendChild(c), l.current = c, o(c);
|
|
2462
2462
|
}, [t, i]), Q(() => {
|
|
2463
2463
|
if (l.current)
|
|
2464
2464
|
return;
|
|
2465
2465
|
let a = n || (s == null ? void 0 : s.portalNode);
|
|
2466
|
-
a && !
|
|
2466
|
+
a && !N(a) && (a = a.current), a = a || document.body;
|
|
2467
2467
|
let c = null;
|
|
2468
2468
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2469
2469
|
const m = document.createElement("div");
|
|
2470
|
-
m.id = i, m.setAttribute(
|
|
2470
|
+
m.id = i, m.setAttribute(Kt, ""), a = c || a, a.appendChild(m), l.current = m, o(m);
|
|
2471
2471
|
}, [t, n, i, s]), r;
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Zo(e) {
|
|
2474
2474
|
let {
|
|
2475
2475
|
children: t,
|
|
2476
2476
|
id: n,
|
|
2477
2477
|
root: r = null,
|
|
2478
2478
|
preserveTabOrder: o = !0
|
|
2479
2479
|
} = e;
|
|
2480
|
-
const i =
|
|
2480
|
+
const i = qo({
|
|
2481
2481
|
id: n,
|
|
2482
2482
|
root: r
|
|
2483
2483
|
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), m = y.useRef(null), d = y.useRef(null), f = (
|
|
@@ -2491,12 +2491,12 @@ function Uo(e) {
|
|
|
2491
2491
|
if (!i || !o || s != null && s.modal)
|
|
2492
2492
|
return;
|
|
2493
2493
|
function u(g) {
|
|
2494
|
-
i &&
|
|
2494
|
+
i && st(g) && (g.type === "focusin" ? Go : Xo)(i);
|
|
2495
2495
|
}
|
|
2496
2496
|
return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
|
|
2497
2497
|
i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
|
|
2498
2498
|
};
|
|
2499
|
-
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(
|
|
2499
|
+
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(Tn.Provider, {
|
|
2500
2500
|
value: y.useMemo(() => ({
|
|
2501
2501
|
preserveTabOrder: o,
|
|
2502
2502
|
beforeOutsideRef: a,
|
|
@@ -2506,43 +2506,43 @@ function Uo(e) {
|
|
|
2506
2506
|
portalNode: i,
|
|
2507
2507
|
setFocusManagerState: l
|
|
2508
2508
|
}), [o, i])
|
|
2509
|
-
}, f && i && /* @__PURE__ */ y.createElement(
|
|
2509
|
+
}, f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2510
2510
|
"data-type": "outside",
|
|
2511
2511
|
ref: a,
|
|
2512
2512
|
onFocus: (u) => {
|
|
2513
|
-
if (
|
|
2513
|
+
if (st(u, i)) {
|
|
2514
2514
|
var g;
|
|
2515
2515
|
(g = m.current) == null || g.focus();
|
|
2516
2516
|
} else {
|
|
2517
|
-
const p =
|
|
2517
|
+
const p = Ko() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2518
2518
|
p == null || p.focus();
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2522
2522
|
"aria-owns": i.id,
|
|
2523
|
-
style:
|
|
2524
|
-
}), i && /* @__PURE__ */
|
|
2523
|
+
style: kn
|
|
2524
|
+
}), i && /* @__PURE__ */ rn(t, i), f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2525
2525
|
"data-type": "outside",
|
|
2526
2526
|
ref: c,
|
|
2527
2527
|
onFocus: (u) => {
|
|
2528
|
-
if (
|
|
2528
|
+
if (st(u, i)) {
|
|
2529
2529
|
var g;
|
|
2530
2530
|
(g = d.current) == null || g.focus();
|
|
2531
2531
|
} else {
|
|
2532
|
-
const p =
|
|
2532
|
+
const p = Yo() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2533
2533
|
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, u.nativeEvent));
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
2536
|
}));
|
|
2537
2537
|
}
|
|
2538
|
-
const
|
|
2539
|
-
function
|
|
2538
|
+
const Jo = () => y.useContext(Tn);
|
|
2539
|
+
function Xt(e) {
|
|
2540
2540
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2543
|
-
return
|
|
2542
|
+
function Gt(e) {
|
|
2543
|
+
return Mr(e);
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function Qo(e, t) {
|
|
2546
2546
|
t === void 0 && (t = {});
|
|
2547
2547
|
const {
|
|
2548
2548
|
open: n,
|
|
@@ -2564,40 +2564,40 @@ function Zo(e, t) {
|
|
|
2564
2564
|
d.current = u.pointerType;
|
|
2565
2565
|
},
|
|
2566
2566
|
onMouseDown(u) {
|
|
2567
|
-
u.button === 0 && (
|
|
2567
|
+
u.button === 0 && (Xe(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"))));
|
|
2568
2568
|
},
|
|
2569
2569
|
onClick(u) {
|
|
2570
2570
|
if (l === "mousedown" && d.current) {
|
|
2571
2571
|
d.current = void 0;
|
|
2572
2572
|
return;
|
|
2573
2573
|
}
|
|
2574
|
-
|
|
2574
|
+
Xe(d.current, !0) && c || (n && a && (!o.current.openEvent || o.current.openEvent.type === "click") ? r(!1, u.nativeEvent, "click") : r(!0, u.nativeEvent, "click"));
|
|
2575
2575
|
},
|
|
2576
2576
|
onKeyDown(u) {
|
|
2577
|
-
d.current = void 0, !(u.defaultPrevented || !m ||
|
|
2577
|
+
d.current = void 0, !(u.defaultPrevented || !m || Xt(u)) && (u.key === " " && !Gt(i) && (u.preventDefault(), f.current = !0), u.key === "Enter" && r(!(n && a), u.nativeEvent, "click"));
|
|
2578
2578
|
},
|
|
2579
2579
|
onKeyUp(u) {
|
|
2580
|
-
u.defaultPrevented || !m ||
|
|
2580
|
+
u.defaultPrevented || !m || Xt(u) || Gt(i) || u.key === " " && f.current && (f.current = !1, r(!(n && a), u.nativeEvent, "click"));
|
|
2581
2581
|
}
|
|
2582
2582
|
}
|
|
2583
2583
|
} : {}, [s, o, l, c, m, i, a, n, r]);
|
|
2584
2584
|
}
|
|
2585
|
-
const
|
|
2585
|
+
const ei = {
|
|
2586
2586
|
pointerdown: "onPointerDown",
|
|
2587
2587
|
mousedown: "onMouseDown",
|
|
2588
2588
|
click: "onClick"
|
|
2589
|
-
},
|
|
2589
|
+
}, ti = {
|
|
2590
2590
|
pointerdown: "onPointerDownCapture",
|
|
2591
2591
|
mousedown: "onMouseDownCapture",
|
|
2592
2592
|
click: "onClickCapture"
|
|
2593
|
-
},
|
|
2593
|
+
}, Ut = (e) => {
|
|
2594
2594
|
var t, n;
|
|
2595
2595
|
return {
|
|
2596
2596
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
2597
2597
|
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2598
2598
|
};
|
|
2599
2599
|
};
|
|
2600
|
-
function
|
|
2600
|
+
function ni(e, t) {
|
|
2601
2601
|
t === void 0 && (t = {});
|
|
2602
2602
|
const {
|
|
2603
2603
|
open: n,
|
|
@@ -2619,53 +2619,53 @@ function ei(e, t) {
|
|
|
2619
2619
|
ancestorScroll: p = !1,
|
|
2620
2620
|
bubbles: w,
|
|
2621
2621
|
capture: h
|
|
2622
|
-
} = t, x =
|
|
2623
|
-
escapeKey: A,
|
|
2624
|
-
outsidePress: T
|
|
2625
|
-
} = Gt(w), {
|
|
2622
|
+
} = t, x = $t(), P = Ce(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, k = y.useRef(!1), C = y.useRef(!1), {
|
|
2626
2623
|
escapeKey: B,
|
|
2624
|
+
outsidePress: T
|
|
2625
|
+
} = Ut(w), {
|
|
2626
|
+
escapeKey: A,
|
|
2627
2627
|
outsidePress: D
|
|
2628
|
-
} =
|
|
2628
|
+
} = Ut(h), F = Ce((v) => {
|
|
2629
2629
|
if (!n || !c || !m || v.key !== "Escape")
|
|
2630
2630
|
return;
|
|
2631
|
-
const I = x ?
|
|
2632
|
-
if (!
|
|
2631
|
+
const I = x ? Ke(x.nodesRef.current, o) : [];
|
|
2632
|
+
if (!B && (v.stopPropagation(), I.length > 0)) {
|
|
2633
2633
|
let R = !0;
|
|
2634
2634
|
if (I.forEach(($) => {
|
|
2635
|
-
var
|
|
2636
|
-
if ((
|
|
2635
|
+
var L;
|
|
2636
|
+
if ((L = $.context) != null && L.open && !$.context.dataRef.current.__escapeKeyBubbles) {
|
|
2637
2637
|
R = !1;
|
|
2638
2638
|
return;
|
|
2639
2639
|
}
|
|
2640
2640
|
}), !R)
|
|
2641
2641
|
return;
|
|
2642
2642
|
}
|
|
2643
|
-
r(!1,
|
|
2644
|
-
}), M =
|
|
2643
|
+
r(!1, Ar(v) ? v.nativeEvent : v, "escape-key");
|
|
2644
|
+
}), M = Ce((v) => {
|
|
2645
2645
|
var I;
|
|
2646
2646
|
const R = () => {
|
|
2647
2647
|
var $;
|
|
2648
|
-
|
|
2648
|
+
F(v), ($ = Ee(v)) == null || $.removeEventListener("keydown", R);
|
|
2649
2649
|
};
|
|
2650
|
-
(I =
|
|
2651
|
-
}), O =
|
|
2650
|
+
(I = Ee(v)) == null || I.addEventListener("keydown", R);
|
|
2651
|
+
}), O = Ce((v) => {
|
|
2652
2652
|
const I = k.current;
|
|
2653
2653
|
k.current = !1;
|
|
2654
2654
|
const R = C.current;
|
|
2655
2655
|
if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
|
|
2656
2656
|
return;
|
|
2657
|
-
const $ =
|
|
2658
|
-
let G =
|
|
2659
|
-
for (; G && !
|
|
2660
|
-
const V =
|
|
2661
|
-
if (
|
|
2657
|
+
const $ = Ee(v), L = "[" + tt("inert") + "]", K = me(l).querySelectorAll(L);
|
|
2658
|
+
let G = N($) ? $ : null;
|
|
2659
|
+
for (; G && !Be(G); ) {
|
|
2660
|
+
const V = be(G);
|
|
2661
|
+
if (Be(V) || !N(V))
|
|
2662
2662
|
break;
|
|
2663
2663
|
G = V;
|
|
2664
2664
|
}
|
|
2665
|
-
if (K.length &&
|
|
2666
|
-
!
|
|
2665
|
+
if (K.length && N($) && !Or($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2666
|
+
!he($, l) && // If the target root element contains none of the markers, then the
|
|
2667
2667
|
// element was injected after the floating element rendered.
|
|
2668
|
-
Array.from(K).every((V) => !
|
|
2668
|
+
Array.from(K).every((V) => !he(G, V)))
|
|
2669
2669
|
return;
|
|
2670
2670
|
if (Z($) && l) {
|
|
2671
2671
|
const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, X = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
|
|
@@ -2673,13 +2673,13 @@ function ei(e, t) {
|
|
|
2673
2673
|
if (X && J($).direction === "rtl" && (ae = v.offsetX <= $.offsetWidth - $.clientWidth), ae || V && v.offsetY > $.clientHeight)
|
|
2674
2674
|
return;
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2676
|
+
const xe = x && Ke(x.nodesRef.current, o).some((V) => {
|
|
2677
2677
|
var X;
|
|
2678
|
-
return
|
|
2678
|
+
return rt(v, (X = V.context) == null ? void 0 : X.elements.floating);
|
|
2679
2679
|
});
|
|
2680
|
-
if (
|
|
2680
|
+
if (rt(v, l) || rt(v, s) || xe)
|
|
2681
2681
|
return;
|
|
2682
|
-
const le = x ?
|
|
2682
|
+
const le = x ? Ke(x.nodesRef.current, o) : [];
|
|
2683
2683
|
if (le.length > 0) {
|
|
2684
2684
|
let V = !0;
|
|
2685
2685
|
if (le.forEach((X) => {
|
|
@@ -2692,62 +2692,62 @@ function ei(e, t) {
|
|
|
2692
2692
|
return;
|
|
2693
2693
|
}
|
|
2694
2694
|
r(!1, v, "outside-press");
|
|
2695
|
-
}), b =
|
|
2695
|
+
}), b = Ce((v) => {
|
|
2696
2696
|
var I;
|
|
2697
2697
|
const R = () => {
|
|
2698
2698
|
var $;
|
|
2699
|
-
O(v), ($ =
|
|
2699
|
+
O(v), ($ = Ee(v)) == null || $.removeEventListener(f, R);
|
|
2700
2700
|
};
|
|
2701
|
-
(I =
|
|
2701
|
+
(I = Ee(v)) == null || I.addEventListener(f, R);
|
|
2702
2702
|
});
|
|
2703
2703
|
return y.useEffect(() => {
|
|
2704
2704
|
if (!n || !c)
|
|
2705
2705
|
return;
|
|
2706
|
-
a.current.__escapeKeyBubbles =
|
|
2706
|
+
a.current.__escapeKeyBubbles = B, a.current.__outsidePressBubbles = T;
|
|
2707
2707
|
function v($) {
|
|
2708
2708
|
r(!1, $, "ancestor-scroll");
|
|
2709
2709
|
}
|
|
2710
|
-
const I =
|
|
2711
|
-
m && I.addEventListener("keydown",
|
|
2710
|
+
const I = me(l);
|
|
2711
|
+
m && I.addEventListener("keydown", A ? M : F, A), S && I.addEventListener(f, D ? b : O, D);
|
|
2712
2712
|
let R = [];
|
|
2713
|
-
return p && (
|
|
2714
|
-
var
|
|
2715
|
-
return $ !== ((
|
|
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 L;
|
|
2715
|
+
return $ !== ((L = I.defaultView) == null ? void 0 : L.visualViewport);
|
|
2716
2716
|
}), R.forEach(($) => {
|
|
2717
2717
|
$.addEventListener("scroll", v, {
|
|
2718
2718
|
passive: !0
|
|
2719
2719
|
});
|
|
2720
2720
|
}), () => {
|
|
2721
|
-
m && I.removeEventListener("keydown",
|
|
2721
|
+
m && I.removeEventListener("keydown", A ? M : F, A), S && I.removeEventListener(f, D ? b : O, D), R.forEach(($) => {
|
|
2722
2722
|
$.removeEventListener("scroll", v);
|
|
2723
2723
|
});
|
|
2724
2724
|
};
|
|
2725
|
-
}, [a, l, s, i, m, S, f, n, r, p, c,
|
|
2725
|
+
}, [a, l, s, i, m, S, f, n, r, p, c, B, T, F, A, M, O, D, b]), y.useEffect(() => {
|
|
2726
2726
|
k.current = !1;
|
|
2727
2727
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2728
2728
|
reference: {
|
|
2729
|
-
onKeyDown:
|
|
2730
|
-
[
|
|
2729
|
+
onKeyDown: F,
|
|
2730
|
+
[ei[g]]: (v) => {
|
|
2731
2731
|
u && r(!1, v.nativeEvent, "reference-press");
|
|
2732
2732
|
}
|
|
2733
2733
|
},
|
|
2734
2734
|
floating: {
|
|
2735
|
-
onKeyDown:
|
|
2735
|
+
onKeyDown: F,
|
|
2736
2736
|
onMouseDown() {
|
|
2737
2737
|
C.current = !0;
|
|
2738
2738
|
},
|
|
2739
2739
|
onMouseUp() {
|
|
2740
2740
|
C.current = !0;
|
|
2741
2741
|
},
|
|
2742
|
-
[
|
|
2742
|
+
[ti[f]]: () => {
|
|
2743
2743
|
k.current = !0;
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
|
-
} : {}, [c, u, f, g, r,
|
|
2746
|
+
} : {}, [c, u, f, g, r, F]);
|
|
2747
2747
|
}
|
|
2748
|
-
let
|
|
2749
|
-
process.env.NODE_ENV !== "production" && (
|
|
2750
|
-
function
|
|
2748
|
+
let mt;
|
|
2749
|
+
process.env.NODE_ENV !== "production" && (mt = /* @__PURE__ */ new Set());
|
|
2750
|
+
function ri(e) {
|
|
2751
2751
|
var t;
|
|
2752
2752
|
e === void 0 && (e = {});
|
|
2753
2753
|
const {
|
|
@@ -2758,32 +2758,32 @@ function ti(e) {
|
|
|
2758
2758
|
if (process.env.NODE_ENV !== "production") {
|
|
2759
2759
|
var i;
|
|
2760
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 && !
|
|
2761
|
+
if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
|
|
2762
2762
|
var s;
|
|
2763
|
-
if (!((s =
|
|
2763
|
+
if (!((s = mt) != null && s.has(T))) {
|
|
2764
2764
|
var l;
|
|
2765
|
-
(l =
|
|
2765
|
+
(l = mt) == null || l.add(T), console.error(T);
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d =
|
|
2770
|
-
T && (w.current.openEvent =
|
|
2769
|
+
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = bo(e), f = $t(), u = wt() != null, g = Ce((T, A, D) => {
|
|
2770
|
+
T && (w.current.openEvent = A), h.emit("openchange", {
|
|
2771
2771
|
open: T,
|
|
2772
|
-
event:
|
|
2772
|
+
event: A,
|
|
2773
2773
|
reason: D,
|
|
2774
2774
|
nested: u
|
|
2775
|
-
}), r == null || r(T,
|
|
2776
|
-
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() =>
|
|
2777
|
-
const
|
|
2775
|
+
}), r == null || r(T, A, D);
|
|
2776
|
+
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => jo())[0], x = xt(), P = y.useCallback((T) => {
|
|
2777
|
+
const A = N(T) ? {
|
|
2778
2778
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2779
2779
|
contextElement: T
|
|
2780
2780
|
} : T;
|
|
2781
|
-
d.refs.setReference(
|
|
2781
|
+
d.refs.setReference(A);
|
|
2782
2782
|
}, [d.refs]), S = y.useCallback((T) => {
|
|
2783
|
-
(
|
|
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
|
|
2784
2784
|
// `null` to support `positionReference` + an unstable `reference`
|
|
2785
2785
|
// callback ref.
|
|
2786
|
-
T !== null && !
|
|
2786
|
+
T !== null && !N(T)) && d.refs.setReference(T);
|
|
2787
2787
|
}, [d.refs]), k = y.useMemo(() => ({
|
|
2788
2788
|
...d.refs,
|
|
2789
2789
|
setReference: S,
|
|
@@ -2792,7 +2792,7 @@ function ti(e) {
|
|
|
2792
2792
|
}), [d.refs, S, P]), C = y.useMemo(() => ({
|
|
2793
2793
|
...d.elements,
|
|
2794
2794
|
domReference: m
|
|
2795
|
-
}), [d.elements, m]),
|
|
2795
|
+
}), [d.elements, m]), B = y.useMemo(() => ({
|
|
2796
2796
|
...d,
|
|
2797
2797
|
refs: k,
|
|
2798
2798
|
elements: C,
|
|
@@ -2804,23 +2804,23 @@ function ti(e) {
|
|
|
2804
2804
|
onOpenChange: g
|
|
2805
2805
|
}), [d, o, x, h, n, g, k, C]);
|
|
2806
2806
|
return Q(() => {
|
|
2807
|
-
const T = f == null ? void 0 : f.nodesRef.current.find((
|
|
2808
|
-
T && (T.context =
|
|
2807
|
+
const T = f == null ? void 0 : f.nodesRef.current.find((A) => A.id === o);
|
|
2808
|
+
T && (T.context = B);
|
|
2809
2809
|
}), y.useMemo(() => ({
|
|
2810
2810
|
...d,
|
|
2811
|
-
context:
|
|
2811
|
+
context: B,
|
|
2812
2812
|
refs: k,
|
|
2813
2813
|
elements: C
|
|
2814
|
-
}), [d, k, C,
|
|
2814
|
+
}), [d, k, C, B]);
|
|
2815
2815
|
}
|
|
2816
|
-
const
|
|
2817
|
-
function
|
|
2816
|
+
const qt = "active", Zt = "selected";
|
|
2817
|
+
function lt(e, t, n) {
|
|
2818
2818
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
2819
2819
|
let i = e;
|
|
2820
2820
|
if (o && e) {
|
|
2821
2821
|
const {
|
|
2822
|
-
[
|
|
2823
|
-
[
|
|
2822
|
+
[qt]: s,
|
|
2823
|
+
[Zt]: l,
|
|
2824
2824
|
...a
|
|
2825
2825
|
} = e;
|
|
2826
2826
|
i = a;
|
|
@@ -2835,7 +2835,7 @@ function it(e, t, n) {
|
|
|
2835
2835
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2836
2836
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2837
2837
|
let [c, m] = a;
|
|
2838
|
-
if (!(o && [
|
|
2838
|
+
if (!(o && [qt, Zt].includes(c)))
|
|
2839
2839
|
if (c.indexOf("on") === 0) {
|
|
2840
2840
|
if (r.has(c) || r.set(c, []), typeof m == "function") {
|
|
2841
2841
|
var d;
|
|
@@ -2850,10 +2850,10 @@ function it(e, t, n) {
|
|
|
2850
2850
|
}), s), {})
|
|
2851
2851
|
};
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function oi(e) {
|
|
2854
2854
|
e === void 0 && (e = []);
|
|
2855
|
-
const t = e, n = y.useCallback((i) =>
|
|
2856
|
-
(i) =>
|
|
2855
|
+
const t = e, n = y.useCallback((i) => lt(i, e, "reference"), t), r = y.useCallback((i) => lt(i, e, "floating"), t), o = y.useCallback(
|
|
2856
|
+
(i) => lt(i, e, "item"),
|
|
2857
2857
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2858
2858
|
// should be as referentially stable as possible since it may be passed as
|
|
2859
2859
|
// a prop to many components. All `item` key values must therefore be
|
|
@@ -2866,8 +2866,8 @@ function ni(e) {
|
|
|
2866
2866
|
getItemProps: o
|
|
2867
2867
|
}), [n, r, o]);
|
|
2868
2868
|
}
|
|
2869
|
-
const
|
|
2870
|
-
function
|
|
2869
|
+
const ii = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2870
|
+
function si(e, t) {
|
|
2871
2871
|
var n;
|
|
2872
2872
|
t === void 0 && (t = {});
|
|
2873
2873
|
const {
|
|
@@ -2876,7 +2876,7 @@ function oi(e, t) {
|
|
|
2876
2876
|
} = e, {
|
|
2877
2877
|
enabled: i = !0,
|
|
2878
2878
|
role: s = "dialog"
|
|
2879
|
-
} = t, l = (n =
|
|
2879
|
+
} = t, l = (n = ii.get(s)) != null ? n : s, a = xt(), m = wt() != null;
|
|
2880
2880
|
return y.useMemo(() => {
|
|
2881
2881
|
if (!i)
|
|
2882
2882
|
return {};
|
|
@@ -2948,11 +2948,11 @@ function oi(e, t) {
|
|
|
2948
2948
|
};
|
|
2949
2949
|
}, [i, s, l, r, o, a, m]);
|
|
2950
2950
|
}
|
|
2951
|
-
const
|
|
2952
|
-
function
|
|
2951
|
+
const Jt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
2952
|
+
function Re(e, t) {
|
|
2953
2953
|
return typeof e == "function" ? e(t) : e;
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function li(e, t) {
|
|
2956
2956
|
const [n, r] = y.useState(e);
|
|
2957
2957
|
return e && !n && r(!0), y.useEffect(() => {
|
|
2958
2958
|
if (!e) {
|
|
@@ -2961,7 +2961,7 @@ function ii(e, t) {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
}, [e, t]), n;
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2964
|
+
function ai(e, t) {
|
|
2965
2965
|
t === void 0 && (t = {});
|
|
2966
2966
|
const {
|
|
2967
2967
|
open: n,
|
|
@@ -2970,7 +2970,7 @@ function si(e, t) {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
} = e, {
|
|
2972
2972
|
duration: o = 250
|
|
2973
|
-
} = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), d =
|
|
2973
|
+
} = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), d = li(n, s);
|
|
2974
2974
|
return Q(() => {
|
|
2975
2975
|
l && !d && m("unmounted");
|
|
2976
2976
|
}, [l, d]), Q(() => {
|
|
@@ -2991,7 +2991,7 @@ function si(e, t) {
|
|
|
2991
2991
|
status: c
|
|
2992
2992
|
};
|
|
2993
2993
|
}
|
|
2994
|
-
function
|
|
2994
|
+
function ci(e, t) {
|
|
2995
2995
|
t === void 0 && (t = {});
|
|
2996
2996
|
const {
|
|
2997
2997
|
initial: n = {
|
|
@@ -3005,32 +3005,32 @@ function li(e, t) {
|
|
|
3005
3005
|
side: a,
|
|
3006
3006
|
placement: l
|
|
3007
3007
|
}), [a, l]), m = typeof s == "number", d = (m ? s : s.open) || 0, f = (m ? s : s.close) || 0, [u, g] = y.useState(() => ({
|
|
3008
|
-
|
|
3009
|
-
|
|
3008
|
+
...Re(i, c),
|
|
3009
|
+
...Re(n, c)
|
|
3010
3010
|
})), {
|
|
3011
3011
|
isMounted: p,
|
|
3012
3012
|
status: w
|
|
3013
|
-
} =
|
|
3013
|
+
} = ai(e, {
|
|
3014
3014
|
duration: s
|
|
3015
|
-
}), h =
|
|
3015
|
+
}), h = Te(n), x = Te(r), P = Te(o), S = Te(i);
|
|
3016
3016
|
return Q(() => {
|
|
3017
|
-
const k =
|
|
3018
|
-
if (w === "initial" && g((
|
|
3019
|
-
transitionProperty:
|
|
3020
|
-
...
|
|
3017
|
+
const k = Re(h.current, c), C = Re(P.current, c), B = Re(S.current, c), T = Re(x.current, c) || Object.keys(k).reduce((A, D) => (A[D] = "", A), {});
|
|
3018
|
+
if (w === "initial" && g((A) => ({
|
|
3019
|
+
transitionProperty: A.transitionProperty,
|
|
3020
|
+
...B,
|
|
3021
3021
|
...k
|
|
3022
3022
|
})), w === "open" && g({
|
|
3023
|
-
transitionProperty: Object.keys(T).map(
|
|
3023
|
+
transitionProperty: Object.keys(T).map(Jt).join(","),
|
|
3024
3024
|
transitionDuration: d + "ms",
|
|
3025
|
-
...
|
|
3025
|
+
...B,
|
|
3026
3026
|
...T
|
|
3027
3027
|
}), w === "close") {
|
|
3028
|
-
const
|
|
3028
|
+
const A = C || k;
|
|
3029
3029
|
g({
|
|
3030
|
-
transitionProperty: Object.keys(
|
|
3030
|
+
transitionProperty: Object.keys(A).map(Jt).join(","),
|
|
3031
3031
|
transitionDuration: f + "ms",
|
|
3032
|
-
...
|
|
3033
|
-
...
|
|
3032
|
+
...B,
|
|
3033
|
+
...A
|
|
3034
3034
|
});
|
|
3035
3035
|
}
|
|
3036
3036
|
}, [f, P, h, x, S, d, w, c]), {
|
|
@@ -3038,7 +3038,7 @@ function li(e, t) {
|
|
|
3038
3038
|
styles: u
|
|
3039
3039
|
};
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Qt(e, t) {
|
|
3042
3042
|
const [n, r] = e;
|
|
3043
3043
|
let o = !1;
|
|
3044
3044
|
const i = t.length;
|
|
@@ -3048,10 +3048,10 @@ function Jt(e, t) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
return o;
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function ui(e, t) {
|
|
3052
3052
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3054
|
+
function di(e) {
|
|
3055
3055
|
e === void 0 && (e = {});
|
|
3056
3056
|
const {
|
|
3057
3057
|
buffer: t = 0.5,
|
|
@@ -3084,15 +3084,15 @@ function ci(e) {
|
|
|
3084
3084
|
return;
|
|
3085
3085
|
const {
|
|
3086
3086
|
clientX: C,
|
|
3087
|
-
clientY:
|
|
3088
|
-
} = S, T = [C,
|
|
3089
|
-
if (
|
|
3087
|
+
clientY: B
|
|
3088
|
+
} = S, T = [C, B], A = Ee(S), D = S.type === "mouseleave", F = he(p.floating, A), M = he(p.domReference, A), 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, $ = ui(T, O), L = b.width > O.width, K = b.height > O.height, G = (L ? O : b).left, xe = (L ? O : b).right, le = (K ? O : b).top, V = (K ? O : b).bottom;
|
|
3089
|
+
if (F && (i = !0, !D))
|
|
3090
3090
|
return;
|
|
3091
3091
|
if (M && (i = !1), M && !D) {
|
|
3092
3092
|
i = !0;
|
|
3093
3093
|
return;
|
|
3094
3094
|
}
|
|
3095
|
-
if (D &&
|
|
3095
|
+
if (D && N(S.relatedTarget) && he(p.floating, S.relatedTarget) || x && Ke(x.nodesRef.current, h).some((ce) => {
|
|
3096
3096
|
let {
|
|
3097
3097
|
context: H
|
|
3098
3098
|
} = ce;
|
|
@@ -3104,10 +3104,10 @@ function ci(e) {
|
|
|
3104
3104
|
let X = [];
|
|
3105
3105
|
switch (v) {
|
|
3106
3106
|
case "top":
|
|
3107
|
-
X = [[G, O.top + 1], [G, b.bottom - 1], [
|
|
3107
|
+
X = [[G, O.top + 1], [G, b.bottom - 1], [xe, b.bottom - 1], [xe, O.top + 1]];
|
|
3108
3108
|
break;
|
|
3109
3109
|
case "bottom":
|
|
3110
|
-
X = [[G, b.top + 1], [G, O.bottom - 1], [
|
|
3110
|
+
X = [[G, b.top + 1], [G, O.bottom - 1], [xe, O.bottom - 1], [xe, b.top + 1]];
|
|
3111
3111
|
break;
|
|
3112
3112
|
case "left":
|
|
3113
3113
|
X = [[b.right - 1, V], [b.right - 1, le], [O.left + 1, le], [O.left + 1, V]];
|
|
@@ -3120,24 +3120,24 @@ function ci(e) {
|
|
|
3120
3120
|
let [H, _] = ce;
|
|
3121
3121
|
switch (v) {
|
|
3122
3122
|
case "top": {
|
|
3123
|
-
const ue = [
|
|
3124
|
-
return [ue, de, ...
|
|
3123
|
+
const ue = [L ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], de = [L ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], we = [[b.left, I || L ? b.bottom - t : b.top], [b.right, I ? L ? b.bottom - t : b.top : b.bottom - t]];
|
|
3124
|
+
return [ue, de, ...we];
|
|
3125
3125
|
}
|
|
3126
3126
|
case "bottom": {
|
|
3127
|
-
const ue = [
|
|
3128
|
-
return [ue, de, ...
|
|
3127
|
+
const ue = [L ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ - t], de = [L ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ - t], we = [[b.left, I || L ? b.top + t : b.bottom], [b.right, I ? L ? b.top + t : b.bottom : b.top + t]];
|
|
3128
|
+
return [ue, de, ...we];
|
|
3129
3129
|
}
|
|
3130
3130
|
case "left": {
|
|
3131
3131
|
const ue = [H + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], de = [H + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
|
|
3132
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];
|
|
3133
3133
|
}
|
|
3134
3134
|
case "right": {
|
|
3135
|
-
const ue = [H - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], de = [H - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4],
|
|
3136
|
-
return [ue, de, ...
|
|
3135
|
+
const ue = [H - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], de = [H - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], we = [[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, ...we];
|
|
3137
3137
|
}
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
|
-
if (!
|
|
3140
|
+
if (!Qt([C, B], X)) {
|
|
3141
3141
|
if (i && !$)
|
|
3142
3142
|
return k();
|
|
3143
3143
|
if (!D && r) {
|
|
@@ -3145,7 +3145,7 @@ function ci(e) {
|
|
|
3145
3145
|
if (ce !== null && ce < 0.1)
|
|
3146
3146
|
return k();
|
|
3147
3147
|
}
|
|
3148
|
-
|
|
3148
|
+
Qt([C, B], ae([f, u])) ? !i && r && (o = window.setTimeout(k, 40)) : k();
|
|
3149
3149
|
}
|
|
3150
3150
|
};
|
|
3151
3151
|
};
|
|
@@ -3153,9 +3153,9 @@ function ci(e) {
|
|
|
3153
3153
|
blockPointerEvents: n
|
|
3154
3154
|
}, m;
|
|
3155
3155
|
}
|
|
3156
|
-
const
|
|
3156
|
+
const fe = j("div"), St = Bn(
|
|
3157
3157
|
{}
|
|
3158
|
-
),
|
|
3158
|
+
), Ii = ({
|
|
3159
3159
|
children: e,
|
|
3160
3160
|
offset: t,
|
|
3161
3161
|
open: n,
|
|
@@ -3165,13 +3165,13 @@ const Tn = j("div"), $t = An(
|
|
|
3165
3165
|
placement: s = "bottom",
|
|
3166
3166
|
role: l = "dialog"
|
|
3167
3167
|
}) => {
|
|
3168
|
-
const { refs: a, floatingStyles: c, context: m } =
|
|
3168
|
+
const { refs: a, floatingStyles: c, context: m } = ri({
|
|
3169
3169
|
open: n,
|
|
3170
3170
|
onOpenChange: r,
|
|
3171
3171
|
placement: s,
|
|
3172
|
-
whileElementsMounted:
|
|
3173
|
-
middleware: [
|
|
3174
|
-
}), { isMounted: d, styles: f } =
|
|
3172
|
+
whileElementsMounted: mo,
|
|
3173
|
+
middleware: [Xr(t), po(), go()]
|
|
3174
|
+
}), { isMounted: d, styles: f } = ci(m, {
|
|
3175
3175
|
initial: ({ side: S }) => ({
|
|
3176
3176
|
opacity: 0,
|
|
3177
3177
|
transform: {
|
|
@@ -3181,16 +3181,16 @@ const Tn = j("div"), $t = An(
|
|
|
3181
3181
|
left: "translateX(-0.5rem)"
|
|
3182
3182
|
}[S]
|
|
3183
3183
|
})
|
|
3184
|
-
}), u =
|
|
3184
|
+
}), u = Qo(m, { enabled: o === "click" }), g = _o(m, {
|
|
3185
3185
|
enabled: o === "hover",
|
|
3186
3186
|
delay: i,
|
|
3187
|
-
handleClose:
|
|
3188
|
-
}), p =
|
|
3187
|
+
handleClose: di()
|
|
3188
|
+
}), p = ni(m), w = si(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = oi([
|
|
3189
3189
|
u,
|
|
3190
3190
|
g,
|
|
3191
3191
|
p,
|
|
3192
3192
|
w
|
|
3193
|
-
]), P =
|
|
3193
|
+
]), P = An(
|
|
3194
3194
|
() => ({
|
|
3195
3195
|
getFloatingProps: h,
|
|
3196
3196
|
getReferenceProps: x,
|
|
@@ -3208,23 +3208,23 @@ const Tn = j("div"), $t = An(
|
|
|
3208
3208
|
f
|
|
3209
3209
|
]
|
|
3210
3210
|
);
|
|
3211
|
-
return /* @__PURE__ */
|
|
3212
|
-
},
|
|
3213
|
-
const { getReferenceProps: t, refs: n } =
|
|
3214
|
-
return /* @__PURE__ */
|
|
3211
|
+
return /* @__PURE__ */ z(St.Provider, { value: P, children: e });
|
|
3212
|
+
}, Pi = ({ children: e }) => {
|
|
3213
|
+
const { getReferenceProps: t, refs: n } = nn(St);
|
|
3214
|
+
return /* @__PURE__ */ z(Pn, { children: On(e) && Dn(e, {
|
|
3215
3215
|
ref: n.setReference,
|
|
3216
3216
|
...t()
|
|
3217
3217
|
}) });
|
|
3218
|
-
},
|
|
3218
|
+
}, Bi = ({ children: e, overlayCardProps: t }) => {
|
|
3219
3219
|
const {
|
|
3220
3220
|
getFloatingProps: n,
|
|
3221
3221
|
isMounted: r,
|
|
3222
3222
|
refs: o,
|
|
3223
3223
|
floatingStyles: i,
|
|
3224
3224
|
transitionStyles: s
|
|
3225
|
-
} =
|
|
3226
|
-
return r ? /* @__PURE__ */
|
|
3227
|
-
|
|
3225
|
+
} = nn(St);
|
|
3226
|
+
return r ? /* @__PURE__ */ z(Zo, { children: /* @__PURE__ */ z(
|
|
3227
|
+
fe,
|
|
3228
3228
|
{
|
|
3229
3229
|
ref: o.setFloating,
|
|
3230
3230
|
style: i,
|
|
@@ -3232,10 +3232,10 @@ const Tn = j("div"), $t = An(
|
|
|
3232
3232
|
css: {
|
|
3233
3233
|
zIndex: "$overlayCard"
|
|
3234
3234
|
},
|
|
3235
|
-
children: /* @__PURE__ */
|
|
3235
|
+
children: /* @__PURE__ */ z(ln, { ...t, style: s, children: e })
|
|
3236
3236
|
}
|
|
3237
3237
|
) }) : null;
|
|
3238
|
-
},
|
|
3238
|
+
}, Ai = j("span", {
|
|
3239
3239
|
flex: "0 0 auto",
|
|
3240
3240
|
display: "inline-flex",
|
|
3241
3241
|
padding: "$1 $2",
|
|
@@ -3272,24 +3272,24 @@ const Tn = j("div"), $t = An(
|
|
|
3272
3272
|
defaultVariants: {
|
|
3273
3273
|
color: "primary"
|
|
3274
3274
|
}
|
|
3275
|
-
}),
|
|
3275
|
+
}), Oi = j(ze.Root, {
|
|
3276
3276
|
backgroundColor: "$gray50",
|
|
3277
3277
|
display: "flex",
|
|
3278
3278
|
alignItems: "center",
|
|
3279
3279
|
padding: "$1",
|
|
3280
3280
|
gap: "$1"
|
|
3281
|
-
}),
|
|
3281
|
+
}), Di = j(ze.ToggleGroup, {
|
|
3282
3282
|
display: "flex",
|
|
3283
3283
|
gap: "$1",
|
|
3284
3284
|
alignItems: "center"
|
|
3285
|
-
}),
|
|
3285
|
+
}), Mi = j(ze.Separator, {
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
height: "1.5rem",
|
|
3288
3288
|
my: "$1",
|
|
3289
3289
|
mx: "$1",
|
|
3290
3290
|
backgroundColor: "$border"
|
|
3291
|
-
}), In =
|
|
3292
|
-
|
|
3291
|
+
}), In = ve(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3292
|
+
sn,
|
|
3293
3293
|
{
|
|
3294
3294
|
ref: n,
|
|
3295
3295
|
icon: !0,
|
|
@@ -3303,13 +3303,13 @@ const Tn = j("div"), $t = An(
|
|
|
3303
3303
|
},
|
|
3304
3304
|
...t
|
|
3305
3305
|
}
|
|
3306
|
-
)),
|
|
3307
|
-
({ children: e, dropdown: t, ...n }, r) => /* @__PURE__ */
|
|
3308
|
-
|
|
3306
|
+
)), Fi = ve(
|
|
3307
|
+
({ children: e, dropdown: t, ...n }, r) => /* @__PURE__ */ z(
|
|
3308
|
+
ze.Button,
|
|
3309
3309
|
{
|
|
3310
3310
|
asChild: !0,
|
|
3311
3311
|
ref: r,
|
|
3312
|
-
children: /* @__PURE__ */
|
|
3312
|
+
children: /* @__PURE__ */ Pe(
|
|
3313
3313
|
In,
|
|
3314
3314
|
{
|
|
3315
3315
|
variant: "transparent",
|
|
@@ -3317,23 +3317,23 @@ const Tn = j("div"), $t = An(
|
|
|
3317
3317
|
...n,
|
|
3318
3318
|
children: [
|
|
3319
3319
|
e,
|
|
3320
|
-
t && /* @__PURE__ */
|
|
3320
|
+
t && /* @__PURE__ */ z(Ln, {})
|
|
3321
3321
|
]
|
|
3322
3322
|
}
|
|
3323
3323
|
)
|
|
3324
3324
|
}
|
|
3325
3325
|
)
|
|
3326
|
-
),
|
|
3326
|
+
), Li = ve(({
|
|
3327
3327
|
children: e,
|
|
3328
3328
|
value: t,
|
|
3329
3329
|
...n
|
|
3330
|
-
}, r) => /* @__PURE__ */
|
|
3331
|
-
|
|
3330
|
+
}, r) => /* @__PURE__ */ z(
|
|
3331
|
+
ze.ToggleItem,
|
|
3332
3332
|
{
|
|
3333
3333
|
value: t,
|
|
3334
3334
|
asChild: !0,
|
|
3335
3335
|
ref: r,
|
|
3336
|
-
children: /* @__PURE__ */
|
|
3336
|
+
children: /* @__PURE__ */ z(
|
|
3337
3337
|
In,
|
|
3338
3338
|
{
|
|
3339
3339
|
variant: "transparent",
|
|
@@ -3344,7 +3344,7 @@ const Tn = j("div"), $t = An(
|
|
|
3344
3344
|
}
|
|
3345
3345
|
)
|
|
3346
3346
|
}
|
|
3347
|
-
)),
|
|
3347
|
+
)), zi = j("div", {
|
|
3348
3348
|
color: "$$cardText",
|
|
3349
3349
|
backgroundColor: "$$cardBackground",
|
|
3350
3350
|
borderRadius: "$md",
|
|
@@ -3369,7 +3369,7 @@ const Tn = j("div"), $t = An(
|
|
|
3369
3369
|
variant: "primary",
|
|
3370
3370
|
elevation: "raised"
|
|
3371
3371
|
}
|
|
3372
|
-
}),
|
|
3372
|
+
}), fi = j("div", {
|
|
3373
3373
|
borderRadius: "$md",
|
|
3374
3374
|
padding: "$1",
|
|
3375
3375
|
border: "2px solid $blue100",
|
|
@@ -3377,12 +3377,12 @@ const Tn = j("div"), $t = An(
|
|
|
3377
3377
|
display: "flex",
|
|
3378
3378
|
alignItems: "center",
|
|
3379
3379
|
gap: "$1"
|
|
3380
|
-
}),
|
|
3380
|
+
}), Wi = (e) => /* @__PURE__ */ z(fi, { ...e }), Ni = ({
|
|
3381
3381
|
children: e,
|
|
3382
3382
|
active: t = !1,
|
|
3383
3383
|
...n
|
|
3384
|
-
}) => /* @__PURE__ */
|
|
3385
|
-
|
|
3384
|
+
}) => /* @__PURE__ */ z(
|
|
3385
|
+
sn,
|
|
3386
3386
|
{
|
|
3387
3387
|
variant: "transparent",
|
|
3388
3388
|
color: "primary",
|
|
@@ -3395,7 +3395,7 @@ const Tn = j("div"), $t = An(
|
|
|
3395
3395
|
...n,
|
|
3396
3396
|
children: e
|
|
3397
3397
|
}
|
|
3398
|
-
),
|
|
3398
|
+
), mi = j("dialog", {
|
|
3399
3399
|
border: 0,
|
|
3400
3400
|
padding: 0,
|
|
3401
3401
|
outline: "none",
|
|
@@ -3407,50 +3407,50 @@ const Tn = j("div"), $t = An(
|
|
|
3407
3407
|
"&::backdrop": {
|
|
3408
3408
|
background: "rgba(0, 0, 0, 0.8)"
|
|
3409
3409
|
}
|
|
3410
|
-
}),
|
|
3410
|
+
}), ji = ({
|
|
3411
3411
|
children: e,
|
|
3412
3412
|
open: t = !1,
|
|
3413
3413
|
onOpenChange: n,
|
|
3414
3414
|
...r
|
|
3415
3415
|
}) => {
|
|
3416
|
-
const o =
|
|
3417
|
-
|
|
3416
|
+
const o = tn(null);
|
|
3417
|
+
gt(() => {
|
|
3418
3418
|
o.current && t && o.current.showModal();
|
|
3419
3419
|
}, [t]);
|
|
3420
|
-
const i =
|
|
3420
|
+
const i = Et(() => {
|
|
3421
3421
|
n(!1);
|
|
3422
|
-
}, [n]), s =
|
|
3422
|
+
}, [n]), s = Et((l) => {
|
|
3423
3423
|
var a;
|
|
3424
3424
|
l.target === o.current && ((a = o.current) == null || a.close());
|
|
3425
3425
|
}, []);
|
|
3426
|
-
return t ?
|
|
3427
|
-
/* @__PURE__ */
|
|
3428
|
-
|
|
3426
|
+
return t ? rn(
|
|
3427
|
+
/* @__PURE__ */ z(
|
|
3428
|
+
mi,
|
|
3429
3429
|
{
|
|
3430
3430
|
ref: o,
|
|
3431
3431
|
onClose: i,
|
|
3432
3432
|
onClick: s,
|
|
3433
3433
|
...r,
|
|
3434
|
-
children: /* @__PURE__ */
|
|
3434
|
+
children: /* @__PURE__ */ z(fe, { css: { padding: "$4" }, children: e })
|
|
3435
3435
|
}
|
|
3436
3436
|
),
|
|
3437
3437
|
document.body
|
|
3438
3438
|
) : null;
|
|
3439
|
-
},
|
|
3439
|
+
}, Hi = j("h2", {
|
|
3440
3440
|
fontSize: "$xl",
|
|
3441
3441
|
fontWeight: "$medium",
|
|
3442
3442
|
marginBottom: "$6"
|
|
3443
|
-
}),
|
|
3443
|
+
}), Vi = j("div", {
|
|
3444
3444
|
display: "flex",
|
|
3445
3445
|
gap: "$2",
|
|
3446
3446
|
justifyContent: "flex-end",
|
|
3447
3447
|
background: "$gray100",
|
|
3448
3448
|
margin: "$6 -$4 -$4 -$4",
|
|
3449
3449
|
padding: "$2"
|
|
3450
|
-
}),
|
|
3450
|
+
}), gi = j(ln, {
|
|
3451
3451
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3452
3452
|
padding: "$1"
|
|
3453
|
-
}),
|
|
3453
|
+
}), Rt = We({
|
|
3454
3454
|
padding: "$2 $2 $2 1.5rem",
|
|
3455
3455
|
fontSize: "$sm",
|
|
3456
3456
|
lineHeight: "1.25",
|
|
@@ -3473,16 +3473,16 @@ const Tn = j("div"), $t = An(
|
|
|
3473
3473
|
backgroundColor: "transparent"
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
}),
|
|
3476
|
+
}), _i = ({
|
|
3477
3477
|
side: e = "bottom",
|
|
3478
3478
|
align: t = "center",
|
|
3479
3479
|
trigger: n,
|
|
3480
3480
|
children: r,
|
|
3481
3481
|
sideOffset: o,
|
|
3482
3482
|
modal: i
|
|
3483
|
-
}) => /* @__PURE__ */
|
|
3484
|
-
/* @__PURE__ */
|
|
3485
|
-
/* @__PURE__ */
|
|
3483
|
+
}) => /* @__PURE__ */ Pe(ee.Root, { modal: i, children: [
|
|
3484
|
+
/* @__PURE__ */ z(ee.Trigger, { asChild: !0, children: n }),
|
|
3485
|
+
/* @__PURE__ */ z(ee.Portal, { children: /* @__PURE__ */ z(
|
|
3486
3486
|
ee.Content,
|
|
3487
3487
|
{
|
|
3488
3488
|
asChild: !0,
|
|
@@ -3490,10 +3490,10 @@ const Tn = j("div"), $t = An(
|
|
|
3490
3490
|
align: t,
|
|
3491
3491
|
collisionPadding: 10,
|
|
3492
3492
|
sideOffset: o,
|
|
3493
|
-
children: /* @__PURE__ */
|
|
3493
|
+
children: /* @__PURE__ */ z(gi, { children: r })
|
|
3494
3494
|
}
|
|
3495
3495
|
) })
|
|
3496
|
-
] }),
|
|
3496
|
+
] }), pi = j(ee.ItemIndicator, {
|
|
3497
3497
|
position: "absolute",
|
|
3498
3498
|
left: 0,
|
|
3499
3499
|
top: 0,
|
|
@@ -3502,71 +3502,164 @@ const Tn = j("div"), $t = An(
|
|
|
3502
3502
|
display: "flex",
|
|
3503
3503
|
justifyContent: "center",
|
|
3504
3504
|
alignItems: "center"
|
|
3505
|
-
}),
|
|
3505
|
+
}), Yi = j(ee.Separator, {
|
|
3506
3506
|
height: 1,
|
|
3507
3507
|
backgroundColor: "$gray200",
|
|
3508
3508
|
margin: 1
|
|
3509
|
-
}),
|
|
3509
|
+
}), Ki = j(ee.Item, Rt), Xi = j(ee.Item, Rt, {
|
|
3510
3510
|
padding: "$2",
|
|
3511
3511
|
display: "flex",
|
|
3512
3512
|
alignItems: "center",
|
|
3513
3513
|
gap: "$2"
|
|
3514
|
-
}),
|
|
3514
|
+
}), hi = j(ee.CheckboxItem, Rt), Gi = ({
|
|
3515
3515
|
value: e,
|
|
3516
3516
|
onChange: t,
|
|
3517
3517
|
children: n
|
|
3518
|
-
}) => /* @__PURE__ */
|
|
3519
|
-
|
|
3518
|
+
}) => /* @__PURE__ */ Pe(
|
|
3519
|
+
hi,
|
|
3520
3520
|
{
|
|
3521
3521
|
checked: e,
|
|
3522
3522
|
onCheckedChange: t,
|
|
3523
3523
|
children: [
|
|
3524
|
-
/* @__PURE__ */
|
|
3524
|
+
/* @__PURE__ */ z(pi, { children: /* @__PURE__ */ z(zn, { size: "0.75rem" }) }),
|
|
3525
3525
|
n
|
|
3526
3526
|
]
|
|
3527
3527
|
}
|
|
3528
|
+
), bi = We({
|
|
3529
|
+
display: "block",
|
|
3530
|
+
width: "100%",
|
|
3531
|
+
padding: "0.5rem 0.75rem",
|
|
3532
|
+
background: "transparent",
|
|
3533
|
+
borderRadius: "none",
|
|
3534
|
+
outline: "none",
|
|
3535
|
+
border: "none",
|
|
3536
|
+
fontSize: "$md",
|
|
3537
|
+
"-webkit-appearance": "none",
|
|
3538
|
+
"-moz-appearance": "none",
|
|
3539
|
+
appearance: "none"
|
|
3540
|
+
}), yi = We({
|
|
3541
|
+
display: "block",
|
|
3542
|
+
width: "100%",
|
|
3543
|
+
background: "#fff",
|
|
3544
|
+
border: "1px solid $colors$gray300",
|
|
3545
|
+
borderRadius: "$md",
|
|
3546
|
+
outline: "none",
|
|
3547
|
+
transition: "border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",
|
|
3548
|
+
"&:focus-within": {
|
|
3549
|
+
border: "1px solid $colors$blue300",
|
|
3550
|
+
boxShadow: "0 0 0 4px $colors$blue100",
|
|
3551
|
+
background: "#fff"
|
|
3552
|
+
},
|
|
3553
|
+
variants: {
|
|
3554
|
+
error: {
|
|
3555
|
+
true: {
|
|
3556
|
+
border: "1px solid $colors$red500",
|
|
3557
|
+
"&:focus-within": {
|
|
3558
|
+
border: "1px solid $colors$red500",
|
|
3559
|
+
boxShadow: "0 0 0 4px $colors$red100"
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
}), vi = j("input", bi), xi = j("div", yi, {
|
|
3565
|
+
display: "flex",
|
|
3566
|
+
alignItems: "center",
|
|
3567
|
+
gap: "$2",
|
|
3568
|
+
width: "100%"
|
|
3569
|
+
}), Ui = ve(
|
|
3570
|
+
({ type: e = "text", label: t, error: n, style: r, css: o, suffix: i, id: s, ...l }, a) => {
|
|
3571
|
+
const c = Mn();
|
|
3572
|
+
return s = s || c, /* @__PURE__ */ Pe(fe, { css: o, children: [
|
|
3573
|
+
t && /* @__PURE__ */ z(
|
|
3574
|
+
fe,
|
|
3575
|
+
{
|
|
3576
|
+
as: "label",
|
|
3577
|
+
htmlFor: s,
|
|
3578
|
+
css: {
|
|
3579
|
+
display: "block",
|
|
3580
|
+
marginBottom: "$2",
|
|
3581
|
+
fontSize: "$md"
|
|
3582
|
+
},
|
|
3583
|
+
children: t
|
|
3584
|
+
}
|
|
3585
|
+
),
|
|
3586
|
+
/* @__PURE__ */ Pe(xi, { error: !!n, children: [
|
|
3587
|
+
/* @__PURE__ */ z(
|
|
3588
|
+
vi,
|
|
3589
|
+
{
|
|
3590
|
+
id: s,
|
|
3591
|
+
ref: a,
|
|
3592
|
+
type: e,
|
|
3593
|
+
"aria-invalid": n ? "true" : "false",
|
|
3594
|
+
...l
|
|
3595
|
+
}
|
|
3596
|
+
),
|
|
3597
|
+
i && /* @__PURE__ */ z(
|
|
3598
|
+
fe,
|
|
3599
|
+
{
|
|
3600
|
+
css: {
|
|
3601
|
+
fontSize: "$sm",
|
|
3602
|
+
fontWeight: "$medium",
|
|
3603
|
+
marginRight: "$2"
|
|
3604
|
+
},
|
|
3605
|
+
children: i
|
|
3606
|
+
}
|
|
3607
|
+
),
|
|
3608
|
+
n && /* @__PURE__ */ z(
|
|
3609
|
+
fe,
|
|
3610
|
+
{
|
|
3611
|
+
as: Wn,
|
|
3612
|
+
css: { color: "$red600", marginRight: "$2" },
|
|
3613
|
+
size: 24
|
|
3614
|
+
}
|
|
3615
|
+
)
|
|
3616
|
+
] }),
|
|
3617
|
+
typeof n == "string" && /* @__PURE__ */ z(fe, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
|
|
3618
|
+
] });
|
|
3619
|
+
}
|
|
3528
3620
|
);
|
|
3529
3621
|
export {
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
oi as
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3622
|
+
ki as A,
|
|
3623
|
+
fe as B,
|
|
3624
|
+
zi as C,
|
|
3625
|
+
_i as D,
|
|
3626
|
+
gi as E,
|
|
3627
|
+
Zo as F,
|
|
3628
|
+
Rt as G,
|
|
3629
|
+
Yi as H,
|
|
3630
|
+
Ki as I,
|
|
3631
|
+
Gi as J,
|
|
3632
|
+
Ui as K,
|
|
3633
|
+
ji as M,
|
|
3634
|
+
Wi as N,
|
|
3635
|
+
ln as O,
|
|
3636
|
+
Ii as P,
|
|
3637
|
+
vr as S,
|
|
3638
|
+
Fi as T,
|
|
3639
|
+
Xi as a,
|
|
3640
|
+
Di as b,
|
|
3641
|
+
We as c,
|
|
3642
|
+
Li as d,
|
|
3643
|
+
mo as e,
|
|
3644
|
+
Ti as f,
|
|
3645
|
+
po as g,
|
|
3646
|
+
go as h,
|
|
3647
|
+
oi as i,
|
|
3648
|
+
si as j,
|
|
3649
|
+
Oi as k,
|
|
3650
|
+
Mi as l,
|
|
3651
|
+
Pi as m,
|
|
3652
|
+
Bi as n,
|
|
3653
|
+
Xr as o,
|
|
3654
|
+
De as p,
|
|
3655
|
+
Ei as q,
|
|
3656
|
+
Ci as r,
|
|
3564
3657
|
j as s,
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3658
|
+
sn as t,
|
|
3659
|
+
ri as u,
|
|
3660
|
+
Ai as v,
|
|
3568
3661
|
In as w,
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3662
|
+
Ni as x,
|
|
3663
|
+
Hi as y,
|
|
3664
|
+
Vi as z
|
|
3572
3665
|
};
|