@factorialco/f0-react 12.10.0 → 12.12.0
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/ArchiveThumbnail-b34U-zTc.js +70 -0
- package/dist/ArchiveViewer-BpmryW7A.js +172 -0
- package/dist/{ChatPostComposerDialog-DcmLrQk6.js → ChatPostComposerDialog-Cr207fXs.js} +4 -4
- package/dist/{CoachmarkProvider-XfLjB3dH.js → CoachmarkProvider-CsytVD-X.js} +29764 -29935
- package/dist/CodeThumbnail-8NiQ3uzU.js +31 -0
- package/dist/CodeViewer-BNZqt-5s.js +98 -0
- package/dist/DocumentToolbar-DUe9R1rU.js +74 -0
- package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
- package/dist/{DocxViewer-CqHgSExq.js → DocxViewer-BUMy2iL7.js} +25 -23
- package/dist/ExternalLink-RdKU698E.js +22 -0
- package/dist/{F0AiProcessingOverlay-H23WHd7F.js → F0AiProcessingOverlay-CiUTeBwG.js} +1388 -1384
- package/dist/F0Alert-Ca8sBfXN.js +102 -0
- package/dist/F0AudioPlayer-BefDLQA2.js +1083 -0
- package/dist/F0AudioPlayer-CNb4kXOk.js +3 -0
- package/dist/{popover-BjrPOMeQ.js → F0Button-d91IgOnc.js} +3164 -8587
- package/dist/{F0CanvasPanel--hLKeQvg.js → F0CanvasPanel-BOo_mxBl.js} +10286 -9593
- package/dist/F0DocumentViewer-CaYAO9ok.js +3 -0
- package/dist/F0DocumentViewer-h0XY5tgT.js +90 -0
- package/dist/F0Icon-DmCBV0gK.js +202 -0
- package/dist/{F0Map-hvgCUGk8.js → F0Map-b1uYlF_H.js} +614 -613
- package/dist/F0SegmentedControl-DXoAzTmH.js +103 -0
- package/dist/{F0Select-B-ZxVjXG.js → F0Select-BZ20yXKy.js} +9172 -9251
- package/dist/{F0VideoPlayer-CNp5hXgp.js → F0VideoPlayer-D85XCpqh.js} +390 -430
- package/dist/F0VideoPlayer-_zLFiEIp.js +1 -0
- package/dist/HtmlThumbnail-BJuJkuvu.js +60 -0
- package/dist/HtmlViewer-DxOnMV30.js +208 -0
- package/dist/LayoutGroup-BGb5jMxE.js +57 -0
- package/dist/LockLocked-gdodYvT_.js +41 -0
- package/dist/{Map-eIXVKc1x.js → Map-BOMgctnS.js} +55 -52
- package/dist/{PdfThumbnail-CCSmwxQU.js → PdfThumbnail-98PDy4ud.js} +5 -5
- package/dist/PdfViewer-nBnKrTYD.js +296 -0
- package/dist/SandboxedHtmlFrame-B95lWsIP.js +309 -0
- package/dist/{SheetViewer-BN5UYkEZ.js → SheetViewer-CD9SHbXJ.js} +36 -26
- package/dist/TextThumbnail-DKNxh344.js +15 -0
- package/dist/{TextViewer-Bt0_dYB-.js → TextViewer-DxRBCXzV.js} +44 -41
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/bash-BcZBmoDA.js +169 -0
- package/dist/c-Dv-5_kUQ.js +187 -0
- package/dist/component-status.js +2 -2
- package/dist/core-C0MCmPil.js +842 -0
- package/dist/cpp-CMQhucZt.js +236 -0
- package/dist/csharp-CuDKSCf2.js +260 -0
- package/dist/css-Dta7Q4Li.js +145 -0
- package/dist/dart-po7Eq73d.js +134 -0
- package/dist/diff-IgsQP-8T.js +39 -0
- package/dist/dist-CFY0KELA.js +55 -0
- package/dist/dist-DtILhk4w.js +253 -0
- package/dist/dist-zvwuNflP.js +59 -0
- package/dist/dockerfile-B4Bz9I5u.js +34 -0
- package/dist/dos-1TcyLtUq.js +57 -0
- package/dist/elixir-BnEjyLGa.js +189 -0
- package/dist/erlang-tgri7ZSv.js +218 -0
- package/dist/experimental.d.ts +24 -4
- package/dist/experimental.js +5957 -5752
- package/dist/{exports-BByQBwpi.d.ts → exports-cxvNeHfV.d.ts} +1 -1
- package/dist/f0.d.ts +130 -8
- package/dist/f0.js +1969 -3034
- package/dist/fetchText-o_GOtiv3.js +54 -0
- package/dist/go-CEVmppuo.js +144 -0
- package/dist/graphql-BWwc-u8d.js +67 -0
- package/dist/groovy-BELuqtd6.js +127 -0
- package/dist/haskell-Cxh7aaFM.js +138 -0
- package/dist/highlight-CqFL-_MG.js +114 -0
- package/dist/i18n-provider-Bdgo-LeP.js +150 -0
- package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-B9vdZZeS.js} +35 -1
- package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-DyPn8R7T.d.ts} +34 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-D3nEDg8x.d.ts → index-DF8ubeg6.d.ts} +1 -1
- package/dist/ini-DA-F0rRr.js +88 -0
- package/dist/java-Bujnoc_f.js +174 -0
- package/dist/javascript-BeEhpXRE.js +431 -0
- package/dist/json-CxvE7tEw.js +42 -0
- package/dist/kotlin-DOwDGI_m.js +206 -0
- package/dist/less-DWlR-e-o.js +196 -0
- package/dist/localized-BrUgGMzm.js +46 -0
- package/dist/lua-BlZiakwh.js +46 -0
- package/dist/makefile-D3841Yg4.js +57 -0
- package/dist/{maplibre-Bywi9z2G.js → maplibre-Ip4Qe9dM.js} +1 -1
- package/dist/markdown-D1wNG79U.js +178 -0
- package/dist/objectivec-DxtRzTBy.js +117 -0
- package/dist/ownValue-D4uSXt0d.js +4 -0
- package/dist/{pdfWorker-CKgxOaCl.js → pdfWorker-DMjHHAyP.js} +12 -9
- package/dist/pdfWorkerConfig-BwllKt1K.js +8 -0
- package/dist/perl-BWRmkuyz.js +192 -0
- package/dist/php-CjwybYSP.js +300 -0
- package/dist/popover-ics24JxK.js +4486 -0
- package/dist/{posts-DGtDUrKT.js → posts-BHRBUAYJ.js} +2 -0
- package/dist/powershell-CgKcNA5Q.js +188 -0
- package/dist/properties-Bc45MTzW.js +38 -0
- package/dist/protobuf-Bv_xSUaI.js +61 -0
- package/dist/purify.es-ZpfdAuNV.js +545 -0
- package/dist/python-D8PdGjgy.js +238 -0
- package/dist/r-DA-9ZIdU.js +140 -0
- package/dist/{renderDocx-_UmnE-yc.js → renderDocx-BW-uDyaZ.js} +2 -0
- package/dist/ruby-Bqr16BpN.js +262 -0
- package/dist/rust-BCvJMwk8.js +182 -0
- package/dist/scala-Du8mOD2z.js +162 -0
- package/dist/scrollarea-cxaFAWG5.js +691 -0
- package/dist/scss-AMxHqh46.js +155 -0
- package/dist/skeleton-AC0Fb8zj.js +72 -0
- package/dist/sql-BbYSgcOA.js +118 -0
- package/dist/styles.css +1 -1
- package/dist/swift-DRKtalPn.js +575 -0
- package/dist/toolbarStyles-lTj_42zD.js +52 -0
- package/dist/{types-UMYBr8Mi.d.ts → types-geibVrTM.d.ts} +3 -95
- package/dist/typescript-Bv8uKU6V.js +516 -0
- package/dist/{useData-B7LYSzh0.js → useData-BYkiGUHX.js} +4734 -5375
- package/dist/useFetchedText-BR3_KLXx.js +38 -0
- package/dist/useThumbnailText-DwXQvLIe.js +22 -0
- package/dist/xml-BVpP05uE.js +162 -0
- package/dist/yaml-BNe2WG-i.js +144 -0
- package/dist/zipTree-B2zUYl6b.js +247 -0
- package/package.json +2 -1
- package/dist/DocumentToolbar-CqbY6eID.js +0 -70
- package/dist/F0DocumentViewer-BN-2IVgz.js +0 -400
- package/dist/F0DocumentViewer-D1G3M2J_.js +0 -3
- package/dist/F0Text-D92NWQRd.js +0 -81
- package/dist/F0VideoPlayer-D4bZBBLK.js +0 -1
- package/dist/TextThumbnail-X04JgaNI.js +0 -26
- package/dist/dist-DvxtFKDL.js +0 -78
|
@@ -0,0 +1,4486 @@
|
|
|
1
|
+
import { L as e, s as t } from "./tooltip-BX4dSfeL.js";
|
|
2
|
+
import { n } from "./F0Icon-DmCBV0gK.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import i, { createElement as a, forwardRef as o, useEffect as s, useLayoutEffect as c, useState as l } from "react";
|
|
5
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
import p, * as m from "react-dom";
|
|
7
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
8
|
+
function h(e, t) {
|
|
9
|
+
if (typeof e == "function") return e(t);
|
|
10
|
+
e != null && (e.current = t);
|
|
11
|
+
}
|
|
12
|
+
function g(...e) {
|
|
13
|
+
return (t) => {
|
|
14
|
+
let n = !1, r = e.map((e) => {
|
|
15
|
+
let r = h(e, t);
|
|
16
|
+
return !n && typeof r == "function" && (n = !0), r;
|
|
17
|
+
});
|
|
18
|
+
if (n) return () => {
|
|
19
|
+
for (let t = 0; t < r.length; t++) {
|
|
20
|
+
let n = r[t];
|
|
21
|
+
typeof n == "function" ? n() : h(e[t], null);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function _(...e) {
|
|
27
|
+
return r.useCallback(g(...e), e);
|
|
28
|
+
}
|
|
29
|
+
typeof window < "u" && window.document && window.document.createElement;
|
|
30
|
+
function v(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
31
|
+
return function(r) {
|
|
32
|
+
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
37
|
+
function y(e, t = []) {
|
|
38
|
+
let n = [];
|
|
39
|
+
function i(t, i) {
|
|
40
|
+
let a = r.createContext(i), o = n.length;
|
|
41
|
+
n = [...n, i];
|
|
42
|
+
let s = (t) => {
|
|
43
|
+
let { scope: n, children: i, ...s } = t, c = n?.[e]?.[o] || a, l = r.useMemo(() => s, Object.values(s));
|
|
44
|
+
return /* @__PURE__ */ d(c.Provider, {
|
|
45
|
+
value: l,
|
|
46
|
+
children: i
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
s.displayName = t + "Provider";
|
|
50
|
+
function c(n, s) {
|
|
51
|
+
let c = s?.[e]?.[o] || a, l = r.useContext(c);
|
|
52
|
+
if (l) return l;
|
|
53
|
+
if (i !== void 0) return i;
|
|
54
|
+
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
55
|
+
}
|
|
56
|
+
return [s, c];
|
|
57
|
+
}
|
|
58
|
+
let a = () => {
|
|
59
|
+
let t = n.map((e) => r.createContext(e));
|
|
60
|
+
return function(n) {
|
|
61
|
+
let i = n?.[e] || t;
|
|
62
|
+
return r.useMemo(() => ({ [`__scope${e}`]: {
|
|
63
|
+
...n,
|
|
64
|
+
[e]: i
|
|
65
|
+
} }), [n, i]);
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
return a.scopeName = e, [i, b(a, ...t)];
|
|
69
|
+
}
|
|
70
|
+
function b(...e) {
|
|
71
|
+
let t = e[0];
|
|
72
|
+
if (e.length === 1) return t;
|
|
73
|
+
let n = () => {
|
|
74
|
+
let n = e.map((e) => ({
|
|
75
|
+
useScope: e(),
|
|
76
|
+
scopeName: e.scopeName
|
|
77
|
+
}));
|
|
78
|
+
return function(e) {
|
|
79
|
+
let i = n.reduce((t, { useScope: n, scopeName: r }) => {
|
|
80
|
+
let i = n(e)[`__scope${r}`];
|
|
81
|
+
return {
|
|
82
|
+
...t,
|
|
83
|
+
...i
|
|
84
|
+
};
|
|
85
|
+
}, {});
|
|
86
|
+
return r.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
return n.scopeName = t.scopeName, n;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
93
|
+
var x = globalThis?.document ? r.useLayoutEffect : () => {}, S = r.useInsertionEffect || x;
|
|
94
|
+
function C({ prop: e, defaultProp: t, onChange: n = () => {}, caller: i }) {
|
|
95
|
+
let [a, o, s] = w({
|
|
96
|
+
defaultProp: t,
|
|
97
|
+
onChange: n
|
|
98
|
+
}), c = e !== void 0, l = c ? e : a;
|
|
99
|
+
{
|
|
100
|
+
let t = r.useRef(e !== void 0);
|
|
101
|
+
r.useEffect(() => {
|
|
102
|
+
let e = t.current;
|
|
103
|
+
e !== c && console.warn(`${i} is changing from ${e ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), t.current = c;
|
|
104
|
+
}, [c, i]);
|
|
105
|
+
}
|
|
106
|
+
return [l, r.useCallback((t) => {
|
|
107
|
+
if (c) {
|
|
108
|
+
let n = T(t) ? t(e) : t;
|
|
109
|
+
n !== e && s.current?.(n);
|
|
110
|
+
} else o(t);
|
|
111
|
+
}, [
|
|
112
|
+
c,
|
|
113
|
+
e,
|
|
114
|
+
o,
|
|
115
|
+
s
|
|
116
|
+
])];
|
|
117
|
+
}
|
|
118
|
+
function w({ defaultProp: e, onChange: t }) {
|
|
119
|
+
let [n, i] = r.useState(e), a = r.useRef(n), o = r.useRef(t);
|
|
120
|
+
return S(() => {
|
|
121
|
+
o.current = t;
|
|
122
|
+
}, [t]), r.useEffect(() => {
|
|
123
|
+
a.current !== n && (o.current?.(n), a.current = n);
|
|
124
|
+
}, [n, a]), [
|
|
125
|
+
n,
|
|
126
|
+
i,
|
|
127
|
+
o
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
function T(e) {
|
|
131
|
+
return typeof e == "function";
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
135
|
+
// @__NO_SIDE_EFFECTS__
|
|
136
|
+
function E(e) {
|
|
137
|
+
let t = /* @__PURE__ */ O(e), n = r.forwardRef((e, n) => {
|
|
138
|
+
let { children: i, ...a } = e, o = r.Children.toArray(i), s = o.find(A);
|
|
139
|
+
if (s) {
|
|
140
|
+
let e = s.props.children, i = o.map((t) => t === s ? r.Children.count(e) > 1 ? r.Children.only(null) : r.isValidElement(e) ? e.props.children : null : t);
|
|
141
|
+
return /* @__PURE__ */ d(t, {
|
|
142
|
+
...a,
|
|
143
|
+
ref: n,
|
|
144
|
+
children: r.isValidElement(e) ? r.cloneElement(e, void 0, i) : null
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
return /* @__PURE__ */ d(t, {
|
|
148
|
+
...a,
|
|
149
|
+
ref: n,
|
|
150
|
+
children: i
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
return n.displayName = `${e}.Slot`, n;
|
|
154
|
+
}
|
|
155
|
+
var D = /* @__PURE__ */ E("Slot");
|
|
156
|
+
// @__NO_SIDE_EFFECTS__
|
|
157
|
+
function O(e) {
|
|
158
|
+
let t = r.forwardRef((e, t) => {
|
|
159
|
+
let { children: n, ...i } = e;
|
|
160
|
+
if (r.isValidElement(n)) {
|
|
161
|
+
let e = M(n), a = j(i, n.props);
|
|
162
|
+
return n.type !== r.Fragment && (a.ref = t ? g(t, e) : e), r.cloneElement(n, a);
|
|
163
|
+
}
|
|
164
|
+
return r.Children.count(n) > 1 ? r.Children.only(null) : null;
|
|
165
|
+
});
|
|
166
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
167
|
+
}
|
|
168
|
+
var k = Symbol("radix.slottable");
|
|
169
|
+
function A(e) {
|
|
170
|
+
return r.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === k;
|
|
171
|
+
}
|
|
172
|
+
function j(e, t) {
|
|
173
|
+
let n = { ...t };
|
|
174
|
+
for (let r in t) {
|
|
175
|
+
let i = e[r], a = t[r];
|
|
176
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
177
|
+
let t = a(...e);
|
|
178
|
+
return i(...e), t;
|
|
179
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
180
|
+
...i,
|
|
181
|
+
...a
|
|
182
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
...e,
|
|
186
|
+
...n
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function M(e) {
|
|
190
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
191
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
195
|
+
var N = [
|
|
196
|
+
"a",
|
|
197
|
+
"button",
|
|
198
|
+
"div",
|
|
199
|
+
"form",
|
|
200
|
+
"h2",
|
|
201
|
+
"h3",
|
|
202
|
+
"img",
|
|
203
|
+
"input",
|
|
204
|
+
"label",
|
|
205
|
+
"li",
|
|
206
|
+
"nav",
|
|
207
|
+
"ol",
|
|
208
|
+
"p",
|
|
209
|
+
"select",
|
|
210
|
+
"span",
|
|
211
|
+
"svg",
|
|
212
|
+
"ul"
|
|
213
|
+
].reduce((e, t) => {
|
|
214
|
+
let n = /* @__PURE__ */ E(`Primitive.${t}`), i = r.forwardRef((e, r) => {
|
|
215
|
+
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
216
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(o, {
|
|
217
|
+
...a,
|
|
218
|
+
ref: r
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
return i.displayName = `Primitive.${t}`, {
|
|
222
|
+
...e,
|
|
223
|
+
[t]: i
|
|
224
|
+
};
|
|
225
|
+
}, {});
|
|
226
|
+
function P(e, t) {
|
|
227
|
+
e && m.flushSync(() => e.dispatchEvent(t));
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom_0e4230adea206cfc9ffba4b61b225db3/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
231
|
+
function F(e) {
|
|
232
|
+
let t = e + "CollectionProvider", [n, r] = y(t), [a, o] = n(t, {
|
|
233
|
+
collectionRef: { current: null },
|
|
234
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
235
|
+
}), s = (e) => {
|
|
236
|
+
let { scope: t, children: n } = e, r = i.useRef(null), o = i.useRef(/* @__PURE__ */ new Map()).current;
|
|
237
|
+
return /* @__PURE__ */ d(a, {
|
|
238
|
+
scope: t,
|
|
239
|
+
itemMap: o,
|
|
240
|
+
collectionRef: r,
|
|
241
|
+
children: n
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
s.displayName = t;
|
|
245
|
+
let c = e + "CollectionSlot", l = /* @__PURE__ */ E(c), u = i.forwardRef((e, t) => {
|
|
246
|
+
let { scope: n, children: r } = e, i = _(t, o(c, n).collectionRef);
|
|
247
|
+
return /* @__PURE__ */ d(l, {
|
|
248
|
+
ref: i,
|
|
249
|
+
children: r
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
u.displayName = c;
|
|
253
|
+
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ E(f), h = i.forwardRef((e, t) => {
|
|
254
|
+
let { scope: n, children: r, ...a } = e, s = i.useRef(null), c = _(t, s), l = o(f, n);
|
|
255
|
+
return i.useEffect(() => (l.itemMap.set(s, {
|
|
256
|
+
ref: s,
|
|
257
|
+
...a
|
|
258
|
+
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ d(m, {
|
|
259
|
+
[p]: "",
|
|
260
|
+
ref: c,
|
|
261
|
+
children: r
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
h.displayName = f;
|
|
265
|
+
function g(t) {
|
|
266
|
+
let n = o(e + "CollectionConsumer", t);
|
|
267
|
+
return i.useCallback(() => {
|
|
268
|
+
let e = n.collectionRef.current;
|
|
269
|
+
if (!e) return [];
|
|
270
|
+
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
271
|
+
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
272
|
+
}, [n.collectionRef, n.itemMap]);
|
|
273
|
+
}
|
|
274
|
+
return [
|
|
275
|
+
{
|
|
276
|
+
Provider: s,
|
|
277
|
+
Slot: u,
|
|
278
|
+
ItemSlot: h
|
|
279
|
+
},
|
|
280
|
+
g,
|
|
281
|
+
r
|
|
282
|
+
];
|
|
283
|
+
}
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
286
|
+
var I = r.createContext(void 0);
|
|
287
|
+
function ee(e) {
|
|
288
|
+
let t = r.useContext(I);
|
|
289
|
+
return e || t || "ltr";
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
293
|
+
function L(e) {
|
|
294
|
+
let t = r.useRef(e);
|
|
295
|
+
return r.useEffect(() => {
|
|
296
|
+
t.current = e;
|
|
297
|
+
}), r.useMemo(() => (...e) => t.current?.(...e), []);
|
|
298
|
+
}
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
301
|
+
function te(e, t = globalThis?.document) {
|
|
302
|
+
let n = L(e);
|
|
303
|
+
r.useEffect(() => {
|
|
304
|
+
let e = (e) => {
|
|
305
|
+
e.key === "Escape" && n(e);
|
|
306
|
+
};
|
|
307
|
+
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
308
|
+
}, [n, t]);
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@18.3.1_@types+react@18.3.18_r_1a66cbccf1f1ad5632e26da06aa2c05c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
312
|
+
var ne = "DismissableLayer", re = "dismissableLayer.update", ie = "dismissableLayer.pointerDownOutside", ae = "dismissableLayer.focusOutside", oe, se = r.createContext({
|
|
313
|
+
layers: /* @__PURE__ */ new Set(),
|
|
314
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
315
|
+
branches: /* @__PURE__ */ new Set()
|
|
316
|
+
}), ce = r.forwardRef((e, t) => {
|
|
317
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = r.useContext(se), [f, p] = r.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = r.useState({}), g = _(t, (e) => p(e)), y = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = y.indexOf(b), S = f ? y.indexOf(f) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= x, T = de((e) => {
|
|
318
|
+
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
319
|
+
w && !n && (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
320
|
+
}, m), E = fe((e) => {
|
|
321
|
+
let t = e.target;
|
|
322
|
+
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
323
|
+
}, m);
|
|
324
|
+
return te((e) => {
|
|
325
|
+
S === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
326
|
+
}, m), r.useEffect(() => {
|
|
327
|
+
if (f) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (oe = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), pe(), () => {
|
|
328
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = oe);
|
|
329
|
+
};
|
|
330
|
+
}, [
|
|
331
|
+
f,
|
|
332
|
+
m,
|
|
333
|
+
n,
|
|
334
|
+
u
|
|
335
|
+
]), r.useEffect(() => () => {
|
|
336
|
+
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), pe());
|
|
337
|
+
}, [f, u]), r.useEffect(() => {
|
|
338
|
+
let e = () => h({});
|
|
339
|
+
return document.addEventListener(re, e), () => document.removeEventListener(re, e);
|
|
340
|
+
}, []), /* @__PURE__ */ d(N.div, {
|
|
341
|
+
...l,
|
|
342
|
+
ref: g,
|
|
343
|
+
style: {
|
|
344
|
+
pointerEvents: C ? w ? "auto" : "none" : void 0,
|
|
345
|
+
...e.style
|
|
346
|
+
},
|
|
347
|
+
onFocusCapture: v(e.onFocusCapture, E.onFocusCapture),
|
|
348
|
+
onBlurCapture: v(e.onBlurCapture, E.onBlurCapture),
|
|
349
|
+
onPointerDownCapture: v(e.onPointerDownCapture, T.onPointerDownCapture)
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
ce.displayName = ne;
|
|
353
|
+
var le = "DismissableLayerBranch", ue = r.forwardRef((e, t) => {
|
|
354
|
+
let n = r.useContext(se), i = r.useRef(null), a = _(t, i);
|
|
355
|
+
return r.useEffect(() => {
|
|
356
|
+
let e = i.current;
|
|
357
|
+
if (e) return n.branches.add(e), () => {
|
|
358
|
+
n.branches.delete(e);
|
|
359
|
+
};
|
|
360
|
+
}, [n.branches]), /* @__PURE__ */ d(N.div, {
|
|
361
|
+
...e,
|
|
362
|
+
ref: a
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
ue.displayName = le;
|
|
366
|
+
function de(e, t = globalThis?.document) {
|
|
367
|
+
let n = L(e), i = r.useRef(!1), a = r.useRef(() => {});
|
|
368
|
+
return r.useEffect(() => {
|
|
369
|
+
let e = (e) => {
|
|
370
|
+
if (e.target && !i.current) {
|
|
371
|
+
let r = function() {
|
|
372
|
+
me(ie, n, i, { discrete: !0 });
|
|
373
|
+
}, i = { originalEvent: e };
|
|
374
|
+
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
|
|
375
|
+
} else t.removeEventListener("click", a.current);
|
|
376
|
+
i.current = !1;
|
|
377
|
+
}, r = window.setTimeout(() => {
|
|
378
|
+
t.addEventListener("pointerdown", e);
|
|
379
|
+
}, 0);
|
|
380
|
+
return () => {
|
|
381
|
+
window.clearTimeout(r), t.removeEventListener("pointerdown", e), t.removeEventListener("click", a.current);
|
|
382
|
+
};
|
|
383
|
+
}, [t, n]), { onPointerDownCapture: () => i.current = !0 };
|
|
384
|
+
}
|
|
385
|
+
function fe(e, t = globalThis?.document) {
|
|
386
|
+
let n = L(e), i = r.useRef(!1);
|
|
387
|
+
return r.useEffect(() => {
|
|
388
|
+
let e = (e) => {
|
|
389
|
+
e.target && !i.current && me(ae, n, { originalEvent: e }, { discrete: !1 });
|
|
390
|
+
};
|
|
391
|
+
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
392
|
+
}, [t, n]), {
|
|
393
|
+
onFocusCapture: () => i.current = !0,
|
|
394
|
+
onBlurCapture: () => i.current = !1
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function pe() {
|
|
398
|
+
let e = new CustomEvent(re);
|
|
399
|
+
document.dispatchEvent(e);
|
|
400
|
+
}
|
|
401
|
+
function me(e, t, n, { discrete: r }) {
|
|
402
|
+
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
403
|
+
bubbles: !1,
|
|
404
|
+
cancelable: !0,
|
|
405
|
+
detail: n
|
|
406
|
+
});
|
|
407
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? P(i, a) : i.dispatchEvent(a);
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
411
|
+
var he = 0;
|
|
412
|
+
function ge() {
|
|
413
|
+
r.useEffect(() => {
|
|
414
|
+
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
415
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? _e()), document.body.insertAdjacentElement("beforeend", e[1] ?? _e()), he++, () => {
|
|
416
|
+
he === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), he--;
|
|
417
|
+
};
|
|
418
|
+
}, []);
|
|
419
|
+
}
|
|
420
|
+
function _e() {
|
|
421
|
+
let e = document.createElement("span");
|
|
422
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@18.3.1_@types+react@18.3.18_react-do_56ad7e199d329ef9fa7b3e23f78502a0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
426
|
+
var ve = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount", be = {
|
|
427
|
+
bubbles: !1,
|
|
428
|
+
cancelable: !0
|
|
429
|
+
}, xe = "FocusScope", Se = r.forwardRef((e, t) => {
|
|
430
|
+
let { loop: n = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = r.useState(null), u = L(a), f = L(o), p = r.useRef(null), m = _(t, (e) => l(e)), h = r.useRef({
|
|
431
|
+
paused: !1,
|
|
432
|
+
pause() {
|
|
433
|
+
this.paused = !0;
|
|
434
|
+
},
|
|
435
|
+
resume() {
|
|
436
|
+
this.paused = !1;
|
|
437
|
+
}
|
|
438
|
+
}).current;
|
|
439
|
+
r.useEffect(() => {
|
|
440
|
+
if (i) {
|
|
441
|
+
let e = function(e) {
|
|
442
|
+
if (h.paused || !c) return;
|
|
443
|
+
let t = e.target;
|
|
444
|
+
c.contains(t) ? p.current = t : ke(p.current, { select: !0 });
|
|
445
|
+
}, t = function(e) {
|
|
446
|
+
if (h.paused || !c) return;
|
|
447
|
+
let t = e.relatedTarget;
|
|
448
|
+
t !== null && (c.contains(t) || ke(p.current, { select: !0 }));
|
|
449
|
+
}, n = function(e) {
|
|
450
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && ke(c);
|
|
451
|
+
};
|
|
452
|
+
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
453
|
+
let r = new MutationObserver(n);
|
|
454
|
+
return c && r.observe(c, {
|
|
455
|
+
childList: !0,
|
|
456
|
+
subtree: !0
|
|
457
|
+
}), () => {
|
|
458
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
}, [
|
|
462
|
+
i,
|
|
463
|
+
c,
|
|
464
|
+
h.paused
|
|
465
|
+
]), r.useEffect(() => {
|
|
466
|
+
if (c) {
|
|
467
|
+
Ae.add(h);
|
|
468
|
+
let e = document.activeElement;
|
|
469
|
+
if (!c.contains(e)) {
|
|
470
|
+
let t = new CustomEvent(ve, be);
|
|
471
|
+
c.addEventListener(ve, u), c.dispatchEvent(t), t.defaultPrevented || (Ce(Ne(Te(c)), { select: !0 }), document.activeElement === e && ke(c));
|
|
472
|
+
}
|
|
473
|
+
return () => {
|
|
474
|
+
c.removeEventListener(ve, u), setTimeout(() => {
|
|
475
|
+
let t = new CustomEvent(ye, be);
|
|
476
|
+
c.addEventListener(ye, f), c.dispatchEvent(t), t.defaultPrevented || ke(e ?? document.body, { select: !0 }), c.removeEventListener(ye, f), Ae.remove(h);
|
|
477
|
+
}, 0);
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}, [
|
|
481
|
+
c,
|
|
482
|
+
u,
|
|
483
|
+
f,
|
|
484
|
+
h
|
|
485
|
+
]);
|
|
486
|
+
let g = r.useCallback((e) => {
|
|
487
|
+
if (!n && !i || h.paused) return;
|
|
488
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = document.activeElement;
|
|
489
|
+
if (t && r) {
|
|
490
|
+
let t = e.currentTarget, [i, a] = we(t);
|
|
491
|
+
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n && ke(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n && ke(a, { select: !0 })) : r === t && e.preventDefault();
|
|
492
|
+
}
|
|
493
|
+
}, [
|
|
494
|
+
n,
|
|
495
|
+
i,
|
|
496
|
+
h.paused
|
|
497
|
+
]);
|
|
498
|
+
return /* @__PURE__ */ d(N.div, {
|
|
499
|
+
tabIndex: -1,
|
|
500
|
+
...s,
|
|
501
|
+
ref: m,
|
|
502
|
+
onKeyDown: g
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
Se.displayName = xe;
|
|
506
|
+
function Ce(e, { select: t = !1 } = {}) {
|
|
507
|
+
let n = document.activeElement;
|
|
508
|
+
for (let r of e) if (ke(r, { select: t }), document.activeElement !== n) return;
|
|
509
|
+
}
|
|
510
|
+
function we(e) {
|
|
511
|
+
let t = Te(e);
|
|
512
|
+
return [Ee(t, e), Ee(t.reverse(), e)];
|
|
513
|
+
}
|
|
514
|
+
function Te(e) {
|
|
515
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
516
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
517
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
518
|
+
} });
|
|
519
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
520
|
+
return t;
|
|
521
|
+
}
|
|
522
|
+
function Ee(e, t) {
|
|
523
|
+
for (let n of e) if (!De(n, { upTo: t })) return n;
|
|
524
|
+
}
|
|
525
|
+
function De(e, { upTo: t }) {
|
|
526
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
527
|
+
for (; e;) {
|
|
528
|
+
if (t !== void 0 && e === t) return !1;
|
|
529
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
530
|
+
e = e.parentElement;
|
|
531
|
+
}
|
|
532
|
+
return !1;
|
|
533
|
+
}
|
|
534
|
+
function Oe(e) {
|
|
535
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
536
|
+
}
|
|
537
|
+
function ke(e, { select: t = !1 } = {}) {
|
|
538
|
+
if (e && e.focus) {
|
|
539
|
+
let n = document.activeElement;
|
|
540
|
+
e.focus({ preventScroll: !0 }), e !== n && Oe(e) && t && e.select();
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
var Ae = je();
|
|
544
|
+
function je() {
|
|
545
|
+
let e = [];
|
|
546
|
+
return {
|
|
547
|
+
add(t) {
|
|
548
|
+
let n = e[0];
|
|
549
|
+
t !== n && n?.pause(), e = Me(e, t), e.unshift(t);
|
|
550
|
+
},
|
|
551
|
+
remove(t) {
|
|
552
|
+
e = Me(e, t), e[0]?.resume();
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
function Me(e, t) {
|
|
557
|
+
let n = [...e], r = n.indexOf(t);
|
|
558
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
559
|
+
}
|
|
560
|
+
function Ne(e) {
|
|
561
|
+
return e.filter((e) => e.tagName !== "A");
|
|
562
|
+
}
|
|
563
|
+
//#endregion
|
|
564
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
565
|
+
var Pe = r.useId || (() => void 0), Fe = 0;
|
|
566
|
+
function Ie(e) {
|
|
567
|
+
let [t, n] = r.useState(Pe());
|
|
568
|
+
return x(() => {
|
|
569
|
+
e || n((e) => e ?? String(Fe++));
|
|
570
|
+
}, [e]), e || (t ? `radix-${t}` : "");
|
|
571
|
+
}
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
574
|
+
var Le = [
|
|
575
|
+
"top",
|
|
576
|
+
"right",
|
|
577
|
+
"bottom",
|
|
578
|
+
"left"
|
|
579
|
+
], Re = Math.min, R = Math.max, ze = Math.round, Be = Math.floor, z = (e) => ({
|
|
580
|
+
x: e,
|
|
581
|
+
y: e
|
|
582
|
+
}), Ve = {
|
|
583
|
+
left: "right",
|
|
584
|
+
right: "left",
|
|
585
|
+
bottom: "top",
|
|
586
|
+
top: "bottom"
|
|
587
|
+
}, He = {
|
|
588
|
+
start: "end",
|
|
589
|
+
end: "start"
|
|
590
|
+
};
|
|
591
|
+
function Ue(e, t, n) {
|
|
592
|
+
return R(e, Re(t, n));
|
|
593
|
+
}
|
|
594
|
+
function B(e, t) {
|
|
595
|
+
return typeof e == "function" ? e(t) : e;
|
|
596
|
+
}
|
|
597
|
+
function V(e) {
|
|
598
|
+
return e.split("-")[0];
|
|
599
|
+
}
|
|
600
|
+
function We(e) {
|
|
601
|
+
return e.split("-")[1];
|
|
602
|
+
}
|
|
603
|
+
function Ge(e) {
|
|
604
|
+
return e === "x" ? "y" : "x";
|
|
605
|
+
}
|
|
606
|
+
function Ke(e) {
|
|
607
|
+
return e === "y" ? "height" : "width";
|
|
608
|
+
}
|
|
609
|
+
var qe = /*#__PURE__*/ new Set(["top", "bottom"]);
|
|
610
|
+
function H(e) {
|
|
611
|
+
return qe.has(V(e)) ? "y" : "x";
|
|
612
|
+
}
|
|
613
|
+
function Je(e) {
|
|
614
|
+
return Ge(H(e));
|
|
615
|
+
}
|
|
616
|
+
function Ye(e, t, n) {
|
|
617
|
+
n === void 0 && (n = !1);
|
|
618
|
+
let r = We(e), i = Je(e), a = Ke(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
619
|
+
return t.reference[a] > t.floating[a] && (o = it(o)), [o, it(o)];
|
|
620
|
+
}
|
|
621
|
+
function Xe(e) {
|
|
622
|
+
let t = it(e);
|
|
623
|
+
return [
|
|
624
|
+
Ze(e),
|
|
625
|
+
t,
|
|
626
|
+
Ze(t)
|
|
627
|
+
];
|
|
628
|
+
}
|
|
629
|
+
function Ze(e) {
|
|
630
|
+
return e.replace(/start|end/g, (e) => He[e]);
|
|
631
|
+
}
|
|
632
|
+
var Qe = ["left", "right"], $e = ["right", "left"], et = ["top", "bottom"], tt = ["bottom", "top"];
|
|
633
|
+
function nt(e, t, n) {
|
|
634
|
+
switch (e) {
|
|
635
|
+
case "top":
|
|
636
|
+
case "bottom": return n ? t ? $e : Qe : t ? Qe : $e;
|
|
637
|
+
case "left":
|
|
638
|
+
case "right": return t ? et : tt;
|
|
639
|
+
default: return [];
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
function rt(e, t, n, r) {
|
|
643
|
+
let i = We(e), a = nt(V(e), n === "start", r);
|
|
644
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ze)))), a;
|
|
645
|
+
}
|
|
646
|
+
function it(e) {
|
|
647
|
+
return e.replace(/left|right|bottom|top/g, (e) => Ve[e]);
|
|
648
|
+
}
|
|
649
|
+
function at(e) {
|
|
650
|
+
return {
|
|
651
|
+
top: 0,
|
|
652
|
+
right: 0,
|
|
653
|
+
bottom: 0,
|
|
654
|
+
left: 0,
|
|
655
|
+
...e
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
function ot(e) {
|
|
659
|
+
return typeof e == "number" ? {
|
|
660
|
+
top: e,
|
|
661
|
+
right: e,
|
|
662
|
+
bottom: e,
|
|
663
|
+
left: e
|
|
664
|
+
} : at(e);
|
|
665
|
+
}
|
|
666
|
+
function st(e) {
|
|
667
|
+
let { x: t, y: n, width: r, height: i } = e;
|
|
668
|
+
return {
|
|
669
|
+
width: r,
|
|
670
|
+
height: i,
|
|
671
|
+
top: n,
|
|
672
|
+
left: t,
|
|
673
|
+
right: t + r,
|
|
674
|
+
bottom: n + i,
|
|
675
|
+
x: t,
|
|
676
|
+
y: n
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region ../../node_modules/.pnpm/@floating-ui+core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
681
|
+
function ct(e, t, n) {
|
|
682
|
+
let { reference: r, floating: i } = e, a = H(t), o = Je(t), s = Ke(o), c = V(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
683
|
+
switch (c) {
|
|
684
|
+
case "top":
|
|
685
|
+
p = {
|
|
686
|
+
x: u,
|
|
687
|
+
y: r.y - i.height
|
|
688
|
+
};
|
|
689
|
+
break;
|
|
690
|
+
case "bottom":
|
|
691
|
+
p = {
|
|
692
|
+
x: u,
|
|
693
|
+
y: r.y + r.height
|
|
694
|
+
};
|
|
695
|
+
break;
|
|
696
|
+
case "right":
|
|
697
|
+
p = {
|
|
698
|
+
x: r.x + r.width,
|
|
699
|
+
y: d
|
|
700
|
+
};
|
|
701
|
+
break;
|
|
702
|
+
case "left":
|
|
703
|
+
p = {
|
|
704
|
+
x: r.x - i.width,
|
|
705
|
+
y: d
|
|
706
|
+
};
|
|
707
|
+
break;
|
|
708
|
+
default: p = {
|
|
709
|
+
x: r.x,
|
|
710
|
+
y: r.y
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
switch (We(t)) {
|
|
714
|
+
case "start":
|
|
715
|
+
p[o] -= f * (n && l ? -1 : 1);
|
|
716
|
+
break;
|
|
717
|
+
case "end": p[o] += f * (n && l ? -1 : 1);
|
|
718
|
+
}
|
|
719
|
+
return p;
|
|
720
|
+
}
|
|
721
|
+
async function lt(e, t) {
|
|
722
|
+
t === void 0 && (t = {});
|
|
723
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = B(t, e), p = ot(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = st(await i.getClippingRect({
|
|
724
|
+
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
725
|
+
boundary: c,
|
|
726
|
+
rootBoundary: l,
|
|
727
|
+
strategy: s
|
|
728
|
+
})), g = u === "floating" ? {
|
|
729
|
+
x: n,
|
|
730
|
+
y: r,
|
|
731
|
+
width: a.floating.width,
|
|
732
|
+
height: a.floating.height
|
|
733
|
+
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
734
|
+
x: 1,
|
|
735
|
+
y: 1
|
|
736
|
+
}, y = st(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
737
|
+
elements: o,
|
|
738
|
+
rect: g,
|
|
739
|
+
offsetParent: _,
|
|
740
|
+
strategy: s
|
|
741
|
+
}) : g);
|
|
742
|
+
return {
|
|
743
|
+
top: (h.top - y.top + p.top) / v.y,
|
|
744
|
+
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
|
|
745
|
+
left: (h.left - y.left + p.left) / v.x,
|
|
746
|
+
right: (y.right - h.right + p.right) / v.x
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
var ut = async (e, t, n) => {
|
|
750
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
751
|
+
reference: e,
|
|
752
|
+
floating: t,
|
|
753
|
+
strategy: i
|
|
754
|
+
}), { x: u, y: d } = ct(l, r, c), f = r, p = {}, m = 0;
|
|
755
|
+
for (let n = 0; n < s.length; n++) {
|
|
756
|
+
let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
|
|
757
|
+
x: u,
|
|
758
|
+
y: d,
|
|
759
|
+
initialPlacement: r,
|
|
760
|
+
placement: f,
|
|
761
|
+
strategy: i,
|
|
762
|
+
middlewareData: p,
|
|
763
|
+
rects: l,
|
|
764
|
+
platform: {
|
|
765
|
+
...o,
|
|
766
|
+
detectOverflow: o.detectOverflow ?? lt
|
|
767
|
+
},
|
|
768
|
+
elements: {
|
|
769
|
+
reference: e,
|
|
770
|
+
floating: t
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
u = g ?? u, d = _ ?? d, p = {
|
|
774
|
+
...p,
|
|
775
|
+
[a]: {
|
|
776
|
+
...p[a],
|
|
777
|
+
...v
|
|
778
|
+
}
|
|
779
|
+
}, y && m <= 50 && (m++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (l = y.rects === !0 ? await o.getElementRects({
|
|
780
|
+
reference: e,
|
|
781
|
+
floating: t,
|
|
782
|
+
strategy: i
|
|
783
|
+
}) : y.rects), {x: u, y: d} = ct(l, f, c)), n = -1);
|
|
784
|
+
}
|
|
785
|
+
return {
|
|
786
|
+
x: u,
|
|
787
|
+
y: d,
|
|
788
|
+
placement: f,
|
|
789
|
+
strategy: i,
|
|
790
|
+
middlewareData: p
|
|
791
|
+
};
|
|
792
|
+
}, dt = (e) => ({
|
|
793
|
+
name: "arrow",
|
|
794
|
+
options: e,
|
|
795
|
+
async fn(t) {
|
|
796
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = B(e, t) || {};
|
|
797
|
+
if (l == null) return {};
|
|
798
|
+
let d = ot(u), f = {
|
|
799
|
+
x: n,
|
|
800
|
+
y: r
|
|
801
|
+
}, p = Je(i), m = Ke(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
802
|
+
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
803
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Re(d[_], T), D = Re(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Ue(O, A, k), M = !c.arrow && We(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
804
|
+
return {
|
|
805
|
+
[p]: f[p] + N,
|
|
806
|
+
data: {
|
|
807
|
+
[p]: j,
|
|
808
|
+
centerOffset: A - j - N,
|
|
809
|
+
...M && { alignmentOffset: N }
|
|
810
|
+
},
|
|
811
|
+
reset: M
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
}), ft = function(e) {
|
|
815
|
+
return e === void 0 && (e = {}), {
|
|
816
|
+
name: "flip",
|
|
817
|
+
options: e,
|
|
818
|
+
async fn(t) {
|
|
819
|
+
var n;
|
|
820
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = B(e, t);
|
|
821
|
+
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
822
|
+
let g = V(r), _ = H(o), v = V(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [it(o)] : Xe(o)), x = p !== "none";
|
|
823
|
+
!d && x && b.push(...rt(o, m, p, y));
|
|
824
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
825
|
+
if (l && w.push(C[g]), u) {
|
|
826
|
+
let e = Ye(r, a, y);
|
|
827
|
+
w.push(C[e[0]], C[e[1]]);
|
|
828
|
+
}
|
|
829
|
+
if (T = [...T, {
|
|
830
|
+
placement: r,
|
|
831
|
+
overflows: w
|
|
832
|
+
}], !w.every((e) => e <= 0)) {
|
|
833
|
+
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
834
|
+
if (t && (u !== "alignment" || _ === H(t) || T.every((e) => H(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
835
|
+
data: {
|
|
836
|
+
index: e,
|
|
837
|
+
overflows: T
|
|
838
|
+
},
|
|
839
|
+
reset: { placement: t }
|
|
840
|
+
};
|
|
841
|
+
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
842
|
+
if (!n) switch (f) {
|
|
843
|
+
case "bestFit": {
|
|
844
|
+
let e = T.filter((e) => {
|
|
845
|
+
if (x) {
|
|
846
|
+
let t = H(e.placement);
|
|
847
|
+
return t === _ || t === "y";
|
|
848
|
+
}
|
|
849
|
+
return !0;
|
|
850
|
+
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
851
|
+
e && (n = e);
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
case "initialPlacement": n = o;
|
|
855
|
+
}
|
|
856
|
+
if (r !== n) return { reset: { placement: n } };
|
|
857
|
+
}
|
|
858
|
+
return {};
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
function pt(e, t) {
|
|
863
|
+
return {
|
|
864
|
+
top: e.top - t.height,
|
|
865
|
+
right: e.right - t.width,
|
|
866
|
+
bottom: e.bottom - t.height,
|
|
867
|
+
left: e.left - t.width
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
function mt(e) {
|
|
871
|
+
return Le.some((t) => e[t] >= 0);
|
|
872
|
+
}
|
|
873
|
+
var ht = function(e) {
|
|
874
|
+
return e === void 0 && (e = {}), {
|
|
875
|
+
name: "hide",
|
|
876
|
+
options: e,
|
|
877
|
+
async fn(t) {
|
|
878
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = B(e, t);
|
|
879
|
+
switch (i) {
|
|
880
|
+
case "referenceHidden": {
|
|
881
|
+
let e = pt(await r.detectOverflow(t, {
|
|
882
|
+
...a,
|
|
883
|
+
elementContext: "reference"
|
|
884
|
+
}), n.reference);
|
|
885
|
+
return { data: {
|
|
886
|
+
referenceHiddenOffsets: e,
|
|
887
|
+
referenceHidden: mt(e)
|
|
888
|
+
} };
|
|
889
|
+
}
|
|
890
|
+
case "escaped": {
|
|
891
|
+
let e = pt(await r.detectOverflow(t, {
|
|
892
|
+
...a,
|
|
893
|
+
altBoundary: !0
|
|
894
|
+
}), n.floating);
|
|
895
|
+
return { data: {
|
|
896
|
+
escapedOffsets: e,
|
|
897
|
+
escaped: mt(e)
|
|
898
|
+
} };
|
|
899
|
+
}
|
|
900
|
+
default: return {};
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
}, gt = /*#__PURE__*/ new Set(["left", "top"]);
|
|
905
|
+
async function _t(e, t) {
|
|
906
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = V(n), s = We(n), c = H(n) === "y", l = gt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = B(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
907
|
+
mainAxis: d,
|
|
908
|
+
crossAxis: 0,
|
|
909
|
+
alignmentAxis: null
|
|
910
|
+
} : {
|
|
911
|
+
mainAxis: d.mainAxis || 0,
|
|
912
|
+
crossAxis: d.crossAxis || 0,
|
|
913
|
+
alignmentAxis: d.alignmentAxis
|
|
914
|
+
};
|
|
915
|
+
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
|
|
916
|
+
x: p * u,
|
|
917
|
+
y: f * l
|
|
918
|
+
} : {
|
|
919
|
+
x: f * l,
|
|
920
|
+
y: p * u
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
var vt = function(e) {
|
|
924
|
+
return e === void 0 && (e = 0), {
|
|
925
|
+
name: "offset",
|
|
926
|
+
options: e,
|
|
927
|
+
async fn(t) {
|
|
928
|
+
var n;
|
|
929
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await _t(t, e);
|
|
930
|
+
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
931
|
+
x: r + s.x,
|
|
932
|
+
y: i + s.y,
|
|
933
|
+
data: {
|
|
934
|
+
...s,
|
|
935
|
+
placement: a
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
}, yt = function(e) {
|
|
941
|
+
return e === void 0 && (e = {}), {
|
|
942
|
+
name: "shift",
|
|
943
|
+
options: e,
|
|
944
|
+
async fn(t) {
|
|
945
|
+
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
|
|
946
|
+
let { x: t, y: n } = e;
|
|
947
|
+
return {
|
|
948
|
+
x: t,
|
|
949
|
+
y: n
|
|
950
|
+
};
|
|
951
|
+
} }, ...l } = B(e, t), u = {
|
|
952
|
+
x: n,
|
|
953
|
+
y: r
|
|
954
|
+
}, d = await a.detectOverflow(t, l), f = H(V(i)), p = Ge(f), m = u[p], h = u[f];
|
|
955
|
+
if (o) {
|
|
956
|
+
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
957
|
+
m = Ue(n, m, r);
|
|
958
|
+
}
|
|
959
|
+
if (s) {
|
|
960
|
+
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
961
|
+
h = Ue(n, h, r);
|
|
962
|
+
}
|
|
963
|
+
let g = c.fn({
|
|
964
|
+
...t,
|
|
965
|
+
[p]: m,
|
|
966
|
+
[f]: h
|
|
967
|
+
});
|
|
968
|
+
return {
|
|
969
|
+
...g,
|
|
970
|
+
data: {
|
|
971
|
+
x: g.x - n,
|
|
972
|
+
y: g.y - r,
|
|
973
|
+
enabled: {
|
|
974
|
+
[p]: o,
|
|
975
|
+
[f]: s
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
}, bt = function(e) {
|
|
982
|
+
return e === void 0 && (e = {}), {
|
|
983
|
+
options: e,
|
|
984
|
+
fn(t) {
|
|
985
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = B(e, t), u = {
|
|
986
|
+
x: n,
|
|
987
|
+
y: r
|
|
988
|
+
}, d = H(i), f = Ge(d), p = u[f], m = u[d], h = B(s, t), g = typeof h == "number" ? {
|
|
989
|
+
mainAxis: h,
|
|
990
|
+
crossAxis: 0
|
|
991
|
+
} : {
|
|
992
|
+
mainAxis: 0,
|
|
993
|
+
crossAxis: 0,
|
|
994
|
+
...h
|
|
995
|
+
};
|
|
996
|
+
if (c) {
|
|
997
|
+
let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
|
|
998
|
+
p < t ? p = t : p > n && (p = n);
|
|
999
|
+
}
|
|
1000
|
+
if (l) {
|
|
1001
|
+
let e = f === "y" ? "width" : "height", t = gt.has(V(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
1002
|
+
m < n ? m = n : m > r && (m = r);
|
|
1003
|
+
}
|
|
1004
|
+
return {
|
|
1005
|
+
[f]: p,
|
|
1006
|
+
[d]: m
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
}, xt = function(e) {
|
|
1011
|
+
return e === void 0 && (e = {}), {
|
|
1012
|
+
name: "size",
|
|
1013
|
+
options: e,
|
|
1014
|
+
async fn(t) {
|
|
1015
|
+
var n, r;
|
|
1016
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = B(e, t), u = await o.detectOverflow(t, l), d = V(i), f = We(i), p = H(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
1017
|
+
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
1018
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Re(h - u[g], v), x = Re(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
1019
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
1020
|
+
let e = R(u.left, 0), t = R(u.right, 0), n = R(u.top, 0), r = R(u.bottom, 0);
|
|
1021
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : R(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : R(u.top, u.bottom));
|
|
1022
|
+
}
|
|
1023
|
+
await c({
|
|
1024
|
+
...t,
|
|
1025
|
+
availableWidth: w,
|
|
1026
|
+
availableHeight: C
|
|
1027
|
+
});
|
|
1028
|
+
let T = await o.getDimensions(s.floating);
|
|
1029
|
+
return m !== T.width || h !== T.height ? { reset: { rects: !0 } } : {};
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1035
|
+
function St() {
|
|
1036
|
+
return typeof window < "u";
|
|
1037
|
+
}
|
|
1038
|
+
function Ct(e) {
|
|
1039
|
+
return wt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1040
|
+
}
|
|
1041
|
+
function U(e) {
|
|
1042
|
+
var t;
|
|
1043
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1044
|
+
}
|
|
1045
|
+
function W(e) {
|
|
1046
|
+
return ((wt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
1047
|
+
}
|
|
1048
|
+
function wt(e) {
|
|
1049
|
+
return St() ? e instanceof Node || e instanceof U(e).Node : !1;
|
|
1050
|
+
}
|
|
1051
|
+
function G(e) {
|
|
1052
|
+
return St() ? e instanceof Element || e instanceof U(e).Element : !1;
|
|
1053
|
+
}
|
|
1054
|
+
function K(e) {
|
|
1055
|
+
return St() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
|
|
1056
|
+
}
|
|
1057
|
+
function Tt(e) {
|
|
1058
|
+
return !St() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
|
|
1059
|
+
}
|
|
1060
|
+
var Et = /*#__PURE__*/ new Set(["inline", "contents"]);
|
|
1061
|
+
function Dt(e) {
|
|
1062
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
|
|
1063
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Et.has(i);
|
|
1064
|
+
}
|
|
1065
|
+
var Ot = /*#__PURE__*/ new Set([
|
|
1066
|
+
"table",
|
|
1067
|
+
"td",
|
|
1068
|
+
"th"
|
|
1069
|
+
]);
|
|
1070
|
+
function kt(e) {
|
|
1071
|
+
return Ot.has(Ct(e));
|
|
1072
|
+
}
|
|
1073
|
+
var At = [":popover-open", ":modal"];
|
|
1074
|
+
function jt(e) {
|
|
1075
|
+
return At.some((t) => {
|
|
1076
|
+
try {
|
|
1077
|
+
return e.matches(t);
|
|
1078
|
+
} catch {
|
|
1079
|
+
return !1;
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
var Mt = [
|
|
1084
|
+
"transform",
|
|
1085
|
+
"translate",
|
|
1086
|
+
"scale",
|
|
1087
|
+
"rotate",
|
|
1088
|
+
"perspective"
|
|
1089
|
+
], Nt = [
|
|
1090
|
+
"transform",
|
|
1091
|
+
"translate",
|
|
1092
|
+
"scale",
|
|
1093
|
+
"rotate",
|
|
1094
|
+
"perspective",
|
|
1095
|
+
"filter"
|
|
1096
|
+
], Pt = [
|
|
1097
|
+
"paint",
|
|
1098
|
+
"layout",
|
|
1099
|
+
"strict",
|
|
1100
|
+
"content"
|
|
1101
|
+
];
|
|
1102
|
+
function Ft(e) {
|
|
1103
|
+
let t = Lt(), n = G(e) ? q(e) : e;
|
|
1104
|
+
return Mt.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Nt.some((e) => (n.willChange || "").includes(e)) || Pt.some((e) => (n.contain || "").includes(e));
|
|
1105
|
+
}
|
|
1106
|
+
function It(e) {
|
|
1107
|
+
let t = Vt(e);
|
|
1108
|
+
for (; K(t) && !zt(t);) {
|
|
1109
|
+
if (Ft(t)) return t;
|
|
1110
|
+
if (jt(t)) return null;
|
|
1111
|
+
t = Vt(t);
|
|
1112
|
+
}
|
|
1113
|
+
return null;
|
|
1114
|
+
}
|
|
1115
|
+
function Lt() {
|
|
1116
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1117
|
+
}
|
|
1118
|
+
var Rt = /*#__PURE__*/ new Set([
|
|
1119
|
+
"html",
|
|
1120
|
+
"body",
|
|
1121
|
+
"#document"
|
|
1122
|
+
]);
|
|
1123
|
+
function zt(e) {
|
|
1124
|
+
return Rt.has(Ct(e));
|
|
1125
|
+
}
|
|
1126
|
+
function q(e) {
|
|
1127
|
+
return U(e).getComputedStyle(e);
|
|
1128
|
+
}
|
|
1129
|
+
function Bt(e) {
|
|
1130
|
+
return G(e) ? {
|
|
1131
|
+
scrollLeft: e.scrollLeft,
|
|
1132
|
+
scrollTop: e.scrollTop
|
|
1133
|
+
} : {
|
|
1134
|
+
scrollLeft: e.scrollX,
|
|
1135
|
+
scrollTop: e.scrollY
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
function Vt(e) {
|
|
1139
|
+
if (Ct(e) === "html") return e;
|
|
1140
|
+
let t = e.assignedSlot || e.parentNode || Tt(e) && e.host || W(e);
|
|
1141
|
+
return Tt(t) ? t.host : t;
|
|
1142
|
+
}
|
|
1143
|
+
function Ht(e) {
|
|
1144
|
+
let t = Vt(e);
|
|
1145
|
+
return zt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Dt(t) ? t : Ht(t);
|
|
1146
|
+
}
|
|
1147
|
+
function Ut(e, t, n) {
|
|
1148
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1149
|
+
let r = Ht(e), i = r === e.ownerDocument?.body, a = U(r);
|
|
1150
|
+
if (i) {
|
|
1151
|
+
let e = Wt(a);
|
|
1152
|
+
return t.concat(a, a.visualViewport || [], Dt(r) ? r : [], e && n ? Ut(e) : []);
|
|
1153
|
+
}
|
|
1154
|
+
return t.concat(r, Ut(r, [], n));
|
|
1155
|
+
}
|
|
1156
|
+
function Wt(e) {
|
|
1157
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1158
|
+
}
|
|
1159
|
+
//#endregion
|
|
1160
|
+
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1161
|
+
function Gt(e) {
|
|
1162
|
+
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = K(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ze(n) !== a || ze(r) !== o;
|
|
1163
|
+
return s && (n = a, r = o), {
|
|
1164
|
+
width: n,
|
|
1165
|
+
height: r,
|
|
1166
|
+
$: s
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
function Kt(e) {
|
|
1170
|
+
return G(e) ? e : e.contextElement;
|
|
1171
|
+
}
|
|
1172
|
+
function qt(e) {
|
|
1173
|
+
let t = Kt(e);
|
|
1174
|
+
if (!K(t)) return z(1);
|
|
1175
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Gt(t), o = (a ? ze(n.width) : n.width) / r, s = (a ? ze(n.height) : n.height) / i;
|
|
1176
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1177
|
+
x: o,
|
|
1178
|
+
y: s
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
var Jt = /*#__PURE__*/ z(0);
|
|
1182
|
+
function Yt(e) {
|
|
1183
|
+
let t = U(e);
|
|
1184
|
+
return !Lt() || !t.visualViewport ? Jt : {
|
|
1185
|
+
x: t.visualViewport.offsetLeft,
|
|
1186
|
+
y: t.visualViewport.offsetTop
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
function Xt(e, t, n) {
|
|
1190
|
+
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
1191
|
+
}
|
|
1192
|
+
function Zt(e, t, n, r) {
|
|
1193
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1194
|
+
let i = e.getBoundingClientRect(), a = Kt(e), o = z(1);
|
|
1195
|
+
t && (r ? G(r) && (o = qt(r)) : o = qt(e));
|
|
1196
|
+
let s = Xt(a, n, r) ? Yt(a) : z(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1197
|
+
if (a) {
|
|
1198
|
+
let e = U(a), t = r && G(r) ? U(r) : r, n = e, i = Wt(n);
|
|
1199
|
+
for (; i && r && t !== n;) {
|
|
1200
|
+
let e = qt(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1201
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = Wt(n);
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
return st({
|
|
1205
|
+
width: u,
|
|
1206
|
+
height: d,
|
|
1207
|
+
x: c,
|
|
1208
|
+
y: l
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
function Qt(e, t) {
|
|
1212
|
+
let n = Bt(e).scrollLeft;
|
|
1213
|
+
return t ? t.left + n : Zt(W(e)).left + n;
|
|
1214
|
+
}
|
|
1215
|
+
function $t(e, t) {
|
|
1216
|
+
let n = e.getBoundingClientRect();
|
|
1217
|
+
return {
|
|
1218
|
+
x: n.left + t.scrollLeft - Qt(e, n),
|
|
1219
|
+
y: n.top + t.scrollTop
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
function en(e) {
|
|
1223
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? jt(t.floating) : !1;
|
|
1224
|
+
if (r === o || s && a) return n;
|
|
1225
|
+
let c = {
|
|
1226
|
+
scrollLeft: 0,
|
|
1227
|
+
scrollTop: 0
|
|
1228
|
+
}, l = z(1), u = z(0), d = K(r);
|
|
1229
|
+
if ((d || !d && !a) && ((Ct(r) !== "body" || Dt(o)) && (c = Bt(r)), K(r))) {
|
|
1230
|
+
let e = Zt(r);
|
|
1231
|
+
l = qt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1232
|
+
}
|
|
1233
|
+
let f = o && !d && !a ? $t(o, c) : z(0);
|
|
1234
|
+
return {
|
|
1235
|
+
width: n.width * l.x,
|
|
1236
|
+
height: n.height * l.y,
|
|
1237
|
+
x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
|
|
1238
|
+
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
function tn(e) {
|
|
1242
|
+
return Array.from(e.getClientRects());
|
|
1243
|
+
}
|
|
1244
|
+
function nn(e) {
|
|
1245
|
+
let t = W(e), n = Bt(e), r = e.ownerDocument.body, i = R(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = R(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Qt(e), s = -n.scrollTop;
|
|
1246
|
+
return q(r).direction === "rtl" && (o += R(t.clientWidth, r.clientWidth) - i), {
|
|
1247
|
+
width: i,
|
|
1248
|
+
height: a,
|
|
1249
|
+
x: o,
|
|
1250
|
+
y: s
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
var rn = 25;
|
|
1254
|
+
function an(e, t) {
|
|
1255
|
+
let n = U(e), r = W(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1256
|
+
if (i) {
|
|
1257
|
+
a = i.width, o = i.height;
|
|
1258
|
+
let e = Lt();
|
|
1259
|
+
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1260
|
+
}
|
|
1261
|
+
let l = Qt(r);
|
|
1262
|
+
if (l <= 0) {
|
|
1263
|
+
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1264
|
+
o <= rn && (a -= o);
|
|
1265
|
+
} else l <= rn && (a += l);
|
|
1266
|
+
return {
|
|
1267
|
+
width: a,
|
|
1268
|
+
height: o,
|
|
1269
|
+
x: s,
|
|
1270
|
+
y: c
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
var on = /*#__PURE__*/ new Set(["absolute", "fixed"]);
|
|
1274
|
+
function sn(e, t) {
|
|
1275
|
+
let n = Zt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = K(e) ? qt(e) : z(1);
|
|
1276
|
+
return {
|
|
1277
|
+
width: e.clientWidth * a.x,
|
|
1278
|
+
height: e.clientHeight * a.y,
|
|
1279
|
+
x: i * a.x,
|
|
1280
|
+
y: r * a.y
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
function cn(e, t, n) {
|
|
1284
|
+
let r;
|
|
1285
|
+
if (t === "viewport") r = an(e, n);
|
|
1286
|
+
else if (t === "document") r = nn(W(e));
|
|
1287
|
+
else if (G(t)) r = sn(t, n);
|
|
1288
|
+
else {
|
|
1289
|
+
let n = Yt(e);
|
|
1290
|
+
r = {
|
|
1291
|
+
x: t.x - n.x,
|
|
1292
|
+
y: t.y - n.y,
|
|
1293
|
+
width: t.width,
|
|
1294
|
+
height: t.height
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
return st(r);
|
|
1298
|
+
}
|
|
1299
|
+
function ln(e, t) {
|
|
1300
|
+
let n = Vt(e);
|
|
1301
|
+
return n === t || !G(n) || zt(n) ? !1 : q(n).position === "fixed" || ln(n, t);
|
|
1302
|
+
}
|
|
1303
|
+
function un(e, t) {
|
|
1304
|
+
let n = t.get(e);
|
|
1305
|
+
if (n) return n;
|
|
1306
|
+
let r = Ut(e, [], !1).filter((e) => G(e) && Ct(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Vt(e) : e;
|
|
1307
|
+
for (; G(o) && !zt(o);) {
|
|
1308
|
+
let t = q(o), n = Ft(o);
|
|
1309
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && on.has(i.position) || Dt(o) && !n && ln(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Vt(o);
|
|
1310
|
+
}
|
|
1311
|
+
return t.set(e, r), r;
|
|
1312
|
+
}
|
|
1313
|
+
function dn(e) {
|
|
1314
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? jt(t) ? [] : un(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
|
|
1315
|
+
let r = cn(t, n, i);
|
|
1316
|
+
return e.top = R(r.top, e.top), e.right = Re(r.right, e.right), e.bottom = Re(r.bottom, e.bottom), e.left = R(r.left, e.left), e;
|
|
1317
|
+
}, cn(t, o, i));
|
|
1318
|
+
return {
|
|
1319
|
+
width: s.right - s.left,
|
|
1320
|
+
height: s.bottom - s.top,
|
|
1321
|
+
x: s.left,
|
|
1322
|
+
y: s.top
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
function fn(e) {
|
|
1326
|
+
let { width: t, height: n } = Gt(e);
|
|
1327
|
+
return {
|
|
1328
|
+
width: t,
|
|
1329
|
+
height: n
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
function pn(e, t, n) {
|
|
1333
|
+
let r = K(t), i = W(t), a = n === "fixed", o = Zt(e, !0, a, t), s = {
|
|
1334
|
+
scrollLeft: 0,
|
|
1335
|
+
scrollTop: 0
|
|
1336
|
+
}, c = z(0);
|
|
1337
|
+
function l() {
|
|
1338
|
+
c.x = Qt(i);
|
|
1339
|
+
}
|
|
1340
|
+
if (r || !r && !a) {
|
|
1341
|
+
if ((Ct(t) !== "body" || Dt(i)) && (s = Bt(t)), r) {
|
|
1342
|
+
let e = Zt(t, !0, a, t);
|
|
1343
|
+
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1344
|
+
} else i && l();
|
|
1345
|
+
}
|
|
1346
|
+
a && !r && i && l();
|
|
1347
|
+
let u = i && !r && !a ? $t(i, s) : z(0);
|
|
1348
|
+
return {
|
|
1349
|
+
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1350
|
+
y: o.top + s.scrollTop - c.y - u.y,
|
|
1351
|
+
width: o.width,
|
|
1352
|
+
height: o.height
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
function mn(e) {
|
|
1356
|
+
return q(e).position === "static";
|
|
1357
|
+
}
|
|
1358
|
+
function hn(e, t) {
|
|
1359
|
+
if (!K(e) || q(e).position === "fixed") return null;
|
|
1360
|
+
if (t) return t(e);
|
|
1361
|
+
let n = e.offsetParent;
|
|
1362
|
+
return W(e) === n && (n = n.ownerDocument.body), n;
|
|
1363
|
+
}
|
|
1364
|
+
function gn(e, t) {
|
|
1365
|
+
let n = U(e);
|
|
1366
|
+
if (jt(e)) return n;
|
|
1367
|
+
if (!K(e)) {
|
|
1368
|
+
let t = Vt(e);
|
|
1369
|
+
for (; t && !zt(t);) {
|
|
1370
|
+
if (G(t) && !mn(t)) return t;
|
|
1371
|
+
t = Vt(t);
|
|
1372
|
+
}
|
|
1373
|
+
return n;
|
|
1374
|
+
}
|
|
1375
|
+
let r = hn(e, t);
|
|
1376
|
+
for (; r && kt(r) && mn(r);) r = hn(r, t);
|
|
1377
|
+
return r && zt(r) && mn(r) && !Ft(r) ? n : r || It(e) || n;
|
|
1378
|
+
}
|
|
1379
|
+
var _n = async function(e) {
|
|
1380
|
+
let t = this.getOffsetParent || gn, n = this.getDimensions, r = await n(e.floating);
|
|
1381
|
+
return {
|
|
1382
|
+
reference: pn(e.reference, await t(e.floating), e.strategy),
|
|
1383
|
+
floating: {
|
|
1384
|
+
x: 0,
|
|
1385
|
+
y: 0,
|
|
1386
|
+
width: r.width,
|
|
1387
|
+
height: r.height
|
|
1388
|
+
}
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
function vn(e) {
|
|
1392
|
+
return q(e).direction === "rtl";
|
|
1393
|
+
}
|
|
1394
|
+
var yn = {
|
|
1395
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: en,
|
|
1396
|
+
getDocumentElement: W,
|
|
1397
|
+
getClippingRect: dn,
|
|
1398
|
+
getOffsetParent: gn,
|
|
1399
|
+
getElementRects: _n,
|
|
1400
|
+
getClientRects: tn,
|
|
1401
|
+
getDimensions: fn,
|
|
1402
|
+
getScale: qt,
|
|
1403
|
+
isElement: G,
|
|
1404
|
+
isRTL: vn
|
|
1405
|
+
};
|
|
1406
|
+
function bn(e, t) {
|
|
1407
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1408
|
+
}
|
|
1409
|
+
function xn(e, t) {
|
|
1410
|
+
let n = null, r, i = W(e);
|
|
1411
|
+
function a() {
|
|
1412
|
+
var e;
|
|
1413
|
+
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
1414
|
+
}
|
|
1415
|
+
function o(s, c) {
|
|
1416
|
+
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
1417
|
+
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1418
|
+
if (s || t(), !f || !p) return;
|
|
1419
|
+
let m = Be(d), h = Be(i.clientWidth - (u + f)), g = Be(i.clientHeight - (d + p)), _ = Be(u), v = {
|
|
1420
|
+
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1421
|
+
threshold: R(0, Re(1, c)) || 1
|
|
1422
|
+
}, y = !0;
|
|
1423
|
+
function b(t) {
|
|
1424
|
+
let n = t[0].intersectionRatio;
|
|
1425
|
+
if (n !== c) {
|
|
1426
|
+
if (!y) return o();
|
|
1427
|
+
n ? o(!1, n) : r = setTimeout(() => {
|
|
1428
|
+
o(!1, 1e-7);
|
|
1429
|
+
}, 1e3);
|
|
1430
|
+
}
|
|
1431
|
+
n === 1 && !bn(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1432
|
+
}
|
|
1433
|
+
try {
|
|
1434
|
+
n = new IntersectionObserver(b, {
|
|
1435
|
+
...v,
|
|
1436
|
+
root: i.ownerDocument
|
|
1437
|
+
});
|
|
1438
|
+
} catch {
|
|
1439
|
+
n = new IntersectionObserver(b, v);
|
|
1440
|
+
}
|
|
1441
|
+
n.observe(e);
|
|
1442
|
+
}
|
|
1443
|
+
return o(!0), a;
|
|
1444
|
+
}
|
|
1445
|
+
function Sn(e, t, n, r) {
|
|
1446
|
+
r === void 0 && (r = {});
|
|
1447
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Kt(e), u = i || a ? [...l ? Ut(l) : [], ...Ut(t)] : [];
|
|
1448
|
+
u.forEach((e) => {
|
|
1449
|
+
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1450
|
+
});
|
|
1451
|
+
let d = l && s ? xn(l, n) : null, f = -1, p = null;
|
|
1452
|
+
o && (p = new ResizeObserver((e) => {
|
|
1453
|
+
let [r] = e;
|
|
1454
|
+
r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1455
|
+
var e;
|
|
1456
|
+
(e = p) == null || e.observe(t);
|
|
1457
|
+
})), n();
|
|
1458
|
+
}), l && !c && p.observe(l), p.observe(t));
|
|
1459
|
+
let m, h = c ? Zt(e) : null;
|
|
1460
|
+
c && g();
|
|
1461
|
+
function g() {
|
|
1462
|
+
let t = Zt(e);
|
|
1463
|
+
h && !bn(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1464
|
+
}
|
|
1465
|
+
return n(), () => {
|
|
1466
|
+
var e;
|
|
1467
|
+
u.forEach((e) => {
|
|
1468
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
1469
|
+
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
var Cn = vt, wn = yt, Tn = ft, En = xt, Dn = ht, On = dt, kn = bt, An = (e, t, n) => {
|
|
1473
|
+
let r = /* @__PURE__ */ new Map(), i = {
|
|
1474
|
+
platform: yn,
|
|
1475
|
+
...n
|
|
1476
|
+
}, a = {
|
|
1477
|
+
...i.platform,
|
|
1478
|
+
_c: r
|
|
1479
|
+
};
|
|
1480
|
+
return ut(e, t, {
|
|
1481
|
+
...i,
|
|
1482
|
+
platform: a
|
|
1483
|
+
});
|
|
1484
|
+
}, jn = typeof document < "u" ? c : s;
|
|
1485
|
+
function Mn(e, t) {
|
|
1486
|
+
if (e === t) return !0;
|
|
1487
|
+
if (typeof e != typeof t) return !1;
|
|
1488
|
+
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
1489
|
+
let n, r, i;
|
|
1490
|
+
if (e && t && typeof e == "object") {
|
|
1491
|
+
if (Array.isArray(e)) {
|
|
1492
|
+
if (n = e.length, n !== t.length) return !1;
|
|
1493
|
+
for (r = n; r-- !== 0;) if (!Mn(e[r], t[r])) return !1;
|
|
1494
|
+
return !0;
|
|
1495
|
+
}
|
|
1496
|
+
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
1497
|
+
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
1498
|
+
for (r = n; r-- !== 0;) {
|
|
1499
|
+
let n = i[r];
|
|
1500
|
+
if (!(n === "_owner" && e.$$typeof) && !Mn(e[n], t[n])) return !1;
|
|
1501
|
+
}
|
|
1502
|
+
return !0;
|
|
1503
|
+
}
|
|
1504
|
+
return e !== e && t !== t;
|
|
1505
|
+
}
|
|
1506
|
+
function Nn(e) {
|
|
1507
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1508
|
+
}
|
|
1509
|
+
function Pn(e, t) {
|
|
1510
|
+
let n = Nn(e);
|
|
1511
|
+
return Math.round(t * n) / n;
|
|
1512
|
+
}
|
|
1513
|
+
function Fn(e) {
|
|
1514
|
+
let t = r.useRef(e);
|
|
1515
|
+
return jn(() => {
|
|
1516
|
+
t.current = e;
|
|
1517
|
+
}), t;
|
|
1518
|
+
}
|
|
1519
|
+
function In(e) {
|
|
1520
|
+
e === void 0 && (e = {});
|
|
1521
|
+
let { placement: t = "bottom", strategy: n = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = e, [d, f] = r.useState({
|
|
1522
|
+
x: 0,
|
|
1523
|
+
y: 0,
|
|
1524
|
+
strategy: n,
|
|
1525
|
+
placement: t,
|
|
1526
|
+
middlewareData: {},
|
|
1527
|
+
isPositioned: !1
|
|
1528
|
+
}), [p, h] = r.useState(i);
|
|
1529
|
+
Mn(p, i) || h(i);
|
|
1530
|
+
let [g, _] = r.useState(null), [v, y] = r.useState(null), b = r.useCallback((e) => {
|
|
1531
|
+
e !== w.current && (w.current = e, _(e));
|
|
1532
|
+
}, []), x = r.useCallback((e) => {
|
|
1533
|
+
e !== T.current && (T.current = e, y(e));
|
|
1534
|
+
}, []), S = o || g, C = s || v, w = r.useRef(null), T = r.useRef(null), E = r.useRef(d), D = l != null, O = Fn(l), k = Fn(a), A = Fn(u), j = r.useCallback(() => {
|
|
1535
|
+
if (!w.current || !T.current) return;
|
|
1536
|
+
let e = {
|
|
1537
|
+
placement: t,
|
|
1538
|
+
strategy: n,
|
|
1539
|
+
middleware: p
|
|
1540
|
+
};
|
|
1541
|
+
k.current && (e.platform = k.current), An(w.current, T.current, e).then((e) => {
|
|
1542
|
+
let t = {
|
|
1543
|
+
...e,
|
|
1544
|
+
isPositioned: A.current !== !1
|
|
1545
|
+
};
|
|
1546
|
+
M.current && !Mn(E.current, t) && (E.current = t, m.flushSync(() => {
|
|
1547
|
+
f(t);
|
|
1548
|
+
}));
|
|
1549
|
+
});
|
|
1550
|
+
}, [
|
|
1551
|
+
p,
|
|
1552
|
+
t,
|
|
1553
|
+
n,
|
|
1554
|
+
k,
|
|
1555
|
+
A
|
|
1556
|
+
]);
|
|
1557
|
+
jn(() => {
|
|
1558
|
+
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
|
|
1559
|
+
...e,
|
|
1560
|
+
isPositioned: !1
|
|
1561
|
+
})));
|
|
1562
|
+
}, [u]);
|
|
1563
|
+
let M = r.useRef(!1);
|
|
1564
|
+
jn(() => (M.current = !0, () => {
|
|
1565
|
+
M.current = !1;
|
|
1566
|
+
}), []), jn(() => {
|
|
1567
|
+
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
1568
|
+
if (O.current) return O.current(S, C, j);
|
|
1569
|
+
j();
|
|
1570
|
+
}
|
|
1571
|
+
}, [
|
|
1572
|
+
S,
|
|
1573
|
+
C,
|
|
1574
|
+
j,
|
|
1575
|
+
O,
|
|
1576
|
+
D
|
|
1577
|
+
]);
|
|
1578
|
+
let N = r.useMemo(() => ({
|
|
1579
|
+
reference: w,
|
|
1580
|
+
floating: T,
|
|
1581
|
+
setReference: b,
|
|
1582
|
+
setFloating: x
|
|
1583
|
+
}), [b, x]), P = r.useMemo(() => ({
|
|
1584
|
+
reference: S,
|
|
1585
|
+
floating: C
|
|
1586
|
+
}), [S, C]), F = r.useMemo(() => {
|
|
1587
|
+
let e = {
|
|
1588
|
+
position: n,
|
|
1589
|
+
left: 0,
|
|
1590
|
+
top: 0
|
|
1591
|
+
};
|
|
1592
|
+
if (!P.floating) return e;
|
|
1593
|
+
let t = Pn(P.floating, d.x), r = Pn(P.floating, d.y);
|
|
1594
|
+
return c ? {
|
|
1595
|
+
...e,
|
|
1596
|
+
transform: "translate(" + t + "px, " + r + "px)",
|
|
1597
|
+
...Nn(P.floating) >= 1.5 && { willChange: "transform" }
|
|
1598
|
+
} : {
|
|
1599
|
+
position: n,
|
|
1600
|
+
left: t,
|
|
1601
|
+
top: r
|
|
1602
|
+
};
|
|
1603
|
+
}, [
|
|
1604
|
+
n,
|
|
1605
|
+
c,
|
|
1606
|
+
P.floating,
|
|
1607
|
+
d.x,
|
|
1608
|
+
d.y
|
|
1609
|
+
]);
|
|
1610
|
+
return r.useMemo(() => ({
|
|
1611
|
+
...d,
|
|
1612
|
+
update: j,
|
|
1613
|
+
refs: N,
|
|
1614
|
+
elements: P,
|
|
1615
|
+
floatingStyles: F
|
|
1616
|
+
}), [
|
|
1617
|
+
d,
|
|
1618
|
+
j,
|
|
1619
|
+
N,
|
|
1620
|
+
P,
|
|
1621
|
+
F
|
|
1622
|
+
]);
|
|
1623
|
+
}
|
|
1624
|
+
var Ln = (e) => {
|
|
1625
|
+
function t(e) {
|
|
1626
|
+
return {}.hasOwnProperty.call(e, "current");
|
|
1627
|
+
}
|
|
1628
|
+
return {
|
|
1629
|
+
name: "arrow",
|
|
1630
|
+
options: e,
|
|
1631
|
+
fn(n) {
|
|
1632
|
+
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
1633
|
+
return r && t(r) ? r.current == null ? {} : On({
|
|
1634
|
+
element: r.current,
|
|
1635
|
+
padding: i
|
|
1636
|
+
}).fn(n) : r ? On({
|
|
1637
|
+
element: r,
|
|
1638
|
+
padding: i
|
|
1639
|
+
}).fn(n) : {};
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
}, Rn = (e, t) => ({
|
|
1643
|
+
...Cn(e),
|
|
1644
|
+
options: [e, t]
|
|
1645
|
+
}), zn = (e, t) => ({
|
|
1646
|
+
...wn(e),
|
|
1647
|
+
options: [e, t]
|
|
1648
|
+
}), Bn = (e, t) => ({
|
|
1649
|
+
...kn(e),
|
|
1650
|
+
options: [e, t]
|
|
1651
|
+
}), Vn = (e, t) => ({
|
|
1652
|
+
...Tn(e),
|
|
1653
|
+
options: [e, t]
|
|
1654
|
+
}), Hn = (e, t) => ({
|
|
1655
|
+
...En(e),
|
|
1656
|
+
options: [e, t]
|
|
1657
|
+
}), Un = (e, t) => ({
|
|
1658
|
+
...Dn(e),
|
|
1659
|
+
options: [e, t]
|
|
1660
|
+
}), Wn = (e, t) => ({
|
|
1661
|
+
...Ln(e),
|
|
1662
|
+
options: [e, t]
|
|
1663
|
+
}), Gn = "Arrow", Kn = r.forwardRef((e, t) => {
|
|
1664
|
+
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
1665
|
+
return /* @__PURE__ */ d(N.svg, {
|
|
1666
|
+
...a,
|
|
1667
|
+
ref: t,
|
|
1668
|
+
width: r,
|
|
1669
|
+
height: i,
|
|
1670
|
+
viewBox: "0 0 30 10",
|
|
1671
|
+
preserveAspectRatio: "none",
|
|
1672
|
+
children: e.asChild ? n : /* @__PURE__ */ d("polygon", { points: "0,0 30,0 15,10" })
|
|
1673
|
+
});
|
|
1674
|
+
});
|
|
1675
|
+
Kn.displayName = Gn;
|
|
1676
|
+
var qn = Kn;
|
|
1677
|
+
//#endregion
|
|
1678
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
1679
|
+
function Jn(e) {
|
|
1680
|
+
let [t, n] = r.useState(void 0);
|
|
1681
|
+
return x(() => {
|
|
1682
|
+
if (e) {
|
|
1683
|
+
n({
|
|
1684
|
+
width: e.offsetWidth,
|
|
1685
|
+
height: e.offsetHeight
|
|
1686
|
+
});
|
|
1687
|
+
let t = new ResizeObserver((t) => {
|
|
1688
|
+
if (!Array.isArray(t) || !t.length) return;
|
|
1689
|
+
let r = t[0], i, a;
|
|
1690
|
+
if ("borderBoxSize" in r) {
|
|
1691
|
+
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
1692
|
+
i = t.inlineSize, a = t.blockSize;
|
|
1693
|
+
} else i = e.offsetWidth, a = e.offsetHeight;
|
|
1694
|
+
n({
|
|
1695
|
+
width: i,
|
|
1696
|
+
height: a
|
|
1697
|
+
});
|
|
1698
|
+
});
|
|
1699
|
+
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
|
|
1700
|
+
}
|
|
1701
|
+
n(void 0);
|
|
1702
|
+
}, [e]), t;
|
|
1703
|
+
}
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
1706
|
+
var Yn = "Popper", [Xn, Zn] = y(Yn), [Qn, $n] = Xn(Yn), er = (e) => {
|
|
1707
|
+
let { __scopePopper: t, children: n } = e, [i, a] = r.useState(null);
|
|
1708
|
+
return /* @__PURE__ */ d(Qn, {
|
|
1709
|
+
scope: t,
|
|
1710
|
+
anchor: i,
|
|
1711
|
+
onAnchorChange: a,
|
|
1712
|
+
children: n
|
|
1713
|
+
});
|
|
1714
|
+
};
|
|
1715
|
+
er.displayName = Yn;
|
|
1716
|
+
var tr = "PopperAnchor", nr = r.forwardRef((e, t) => {
|
|
1717
|
+
let { __scopePopper: n, virtualRef: i, ...a } = e, o = $n(tr, n), s = r.useRef(null), c = _(t, s), l = r.useRef(null);
|
|
1718
|
+
return r.useEffect(() => {
|
|
1719
|
+
let e = l.current;
|
|
1720
|
+
l.current = i?.current || s.current, e !== l.current && o.onAnchorChange(l.current);
|
|
1721
|
+
}), i ? null : /* @__PURE__ */ d(N.div, {
|
|
1722
|
+
...a,
|
|
1723
|
+
ref: c
|
|
1724
|
+
});
|
|
1725
|
+
});
|
|
1726
|
+
nr.displayName = tr;
|
|
1727
|
+
var rr = "PopperContent", [ir, ar] = Xn(rr), or = r.forwardRef((e, t) => {
|
|
1728
|
+
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ...v } = e, y = $n(rr, n), [b, S] = r.useState(null), C = _(t, (e) => S(e)), [w, T] = r.useState(null), E = Jn(w), D = E?.width ?? 0, O = E?.height ?? 0, k = i + (o === "center" ? "" : "-" + o), A = typeof f == "number" ? f : {
|
|
1729
|
+
top: 0,
|
|
1730
|
+
right: 0,
|
|
1731
|
+
bottom: 0,
|
|
1732
|
+
left: 0,
|
|
1733
|
+
...f
|
|
1734
|
+
}, j = Array.isArray(u) ? u : [u], M = j.length > 0, P = {
|
|
1735
|
+
padding: A,
|
|
1736
|
+
boundary: j.filter(ur),
|
|
1737
|
+
altBoundary: M
|
|
1738
|
+
}, { refs: F, floatingStyles: I, placement: ee, isPositioned: te, middlewareData: ne } = In({
|
|
1739
|
+
strategy: "fixed",
|
|
1740
|
+
placement: k,
|
|
1741
|
+
whileElementsMounted: (...e) => Sn(...e, { animationFrame: h === "always" }),
|
|
1742
|
+
elements: { reference: y.anchor },
|
|
1743
|
+
middleware: [
|
|
1744
|
+
Rn({
|
|
1745
|
+
mainAxis: a + O,
|
|
1746
|
+
alignmentAxis: s
|
|
1747
|
+
}),
|
|
1748
|
+
l && zn({
|
|
1749
|
+
mainAxis: !0,
|
|
1750
|
+
crossAxis: !1,
|
|
1751
|
+
limiter: p === "partial" ? Bn() : void 0,
|
|
1752
|
+
...P
|
|
1753
|
+
}),
|
|
1754
|
+
l && Vn({ ...P }),
|
|
1755
|
+
Hn({
|
|
1756
|
+
...P,
|
|
1757
|
+
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
1758
|
+
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
1759
|
+
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
1760
|
+
}
|
|
1761
|
+
}),
|
|
1762
|
+
w && Wn({
|
|
1763
|
+
element: w,
|
|
1764
|
+
padding: c
|
|
1765
|
+
}),
|
|
1766
|
+
dr({
|
|
1767
|
+
arrowWidth: D,
|
|
1768
|
+
arrowHeight: O
|
|
1769
|
+
}),
|
|
1770
|
+
m && Un({
|
|
1771
|
+
strategy: "referenceHidden",
|
|
1772
|
+
...P
|
|
1773
|
+
})
|
|
1774
|
+
]
|
|
1775
|
+
}), [re, ie] = fr(ee), ae = L(g);
|
|
1776
|
+
x(() => {
|
|
1777
|
+
te && ae?.();
|
|
1778
|
+
}, [te, ae]);
|
|
1779
|
+
let oe = ne.arrow?.x, se = ne.arrow?.y, ce = ne.arrow?.centerOffset !== 0, [le, ue] = r.useState();
|
|
1780
|
+
return x(() => {
|
|
1781
|
+
b && ue(window.getComputedStyle(b).zIndex);
|
|
1782
|
+
}, [b]), /* @__PURE__ */ d("div", {
|
|
1783
|
+
ref: F.setFloating,
|
|
1784
|
+
"data-radix-popper-content-wrapper": "",
|
|
1785
|
+
style: {
|
|
1786
|
+
...I,
|
|
1787
|
+
transform: te ? I.transform : "translate(0, -200%)",
|
|
1788
|
+
minWidth: "max-content",
|
|
1789
|
+
zIndex: le,
|
|
1790
|
+
"--radix-popper-transform-origin": [ne.transformOrigin?.x, ne.transformOrigin?.y].join(" "),
|
|
1791
|
+
...ne.hide?.referenceHidden && {
|
|
1792
|
+
visibility: "hidden",
|
|
1793
|
+
pointerEvents: "none"
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1796
|
+
dir: e.dir,
|
|
1797
|
+
children: /* @__PURE__ */ d(ir, {
|
|
1798
|
+
scope: n,
|
|
1799
|
+
placedSide: re,
|
|
1800
|
+
onArrowChange: T,
|
|
1801
|
+
arrowX: oe,
|
|
1802
|
+
arrowY: se,
|
|
1803
|
+
shouldHideArrow: ce,
|
|
1804
|
+
children: /* @__PURE__ */ d(N.div, {
|
|
1805
|
+
"data-side": re,
|
|
1806
|
+
"data-align": ie,
|
|
1807
|
+
...v,
|
|
1808
|
+
ref: C,
|
|
1809
|
+
style: {
|
|
1810
|
+
...v.style,
|
|
1811
|
+
animation: te ? void 0 : "none"
|
|
1812
|
+
}
|
|
1813
|
+
})
|
|
1814
|
+
})
|
|
1815
|
+
});
|
|
1816
|
+
});
|
|
1817
|
+
or.displayName = rr;
|
|
1818
|
+
var sr = "PopperArrow", cr = {
|
|
1819
|
+
top: "bottom",
|
|
1820
|
+
right: "left",
|
|
1821
|
+
bottom: "top",
|
|
1822
|
+
left: "right"
|
|
1823
|
+
}, lr = r.forwardRef(function(e, t) {
|
|
1824
|
+
let { __scopePopper: n, ...r } = e, i = ar(sr, n), a = cr[i.placedSide];
|
|
1825
|
+
return /* @__PURE__ */ d("span", {
|
|
1826
|
+
ref: i.onArrowChange,
|
|
1827
|
+
style: {
|
|
1828
|
+
position: "absolute",
|
|
1829
|
+
left: i.arrowX,
|
|
1830
|
+
top: i.arrowY,
|
|
1831
|
+
[a]: 0,
|
|
1832
|
+
transformOrigin: {
|
|
1833
|
+
top: "",
|
|
1834
|
+
right: "0 0",
|
|
1835
|
+
bottom: "center 0",
|
|
1836
|
+
left: "100% 0"
|
|
1837
|
+
}[i.placedSide],
|
|
1838
|
+
transform: {
|
|
1839
|
+
top: "translateY(100%)",
|
|
1840
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
1841
|
+
bottom: "rotate(180deg)",
|
|
1842
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
1843
|
+
}[i.placedSide],
|
|
1844
|
+
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
1845
|
+
},
|
|
1846
|
+
children: /* @__PURE__ */ d(qn, {
|
|
1847
|
+
...r,
|
|
1848
|
+
ref: t,
|
|
1849
|
+
style: {
|
|
1850
|
+
...r.style,
|
|
1851
|
+
display: "block"
|
|
1852
|
+
}
|
|
1853
|
+
})
|
|
1854
|
+
});
|
|
1855
|
+
});
|
|
1856
|
+
lr.displayName = sr;
|
|
1857
|
+
function ur(e) {
|
|
1858
|
+
return e !== null;
|
|
1859
|
+
}
|
|
1860
|
+
var dr = (e) => ({
|
|
1861
|
+
name: "transformOrigin",
|
|
1862
|
+
options: e,
|
|
1863
|
+
fn(t) {
|
|
1864
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = fr(n), u = {
|
|
1865
|
+
start: "0%",
|
|
1866
|
+
center: "50%",
|
|
1867
|
+
end: "100%"
|
|
1868
|
+
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
1869
|
+
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
|
|
1870
|
+
x: p,
|
|
1871
|
+
y: m
|
|
1872
|
+
} };
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
function fr(e) {
|
|
1876
|
+
let [t, n = "center"] = e.split("-");
|
|
1877
|
+
return [t, n];
|
|
1878
|
+
}
|
|
1879
|
+
var pr = er, mr = nr, hr = or, gr = lr, _r = "Portal", vr = r.forwardRef((e, t) => {
|
|
1880
|
+
let { container: n, ...i } = e, [a, o] = r.useState(!1);
|
|
1881
|
+
x(() => o(!0), []);
|
|
1882
|
+
let s = n || a && globalThis?.document?.body;
|
|
1883
|
+
return s ? p.createPortal(/* @__PURE__ */ d(N.div, {
|
|
1884
|
+
...i,
|
|
1885
|
+
ref: t
|
|
1886
|
+
}), s) : null;
|
|
1887
|
+
});
|
|
1888
|
+
vr.displayName = _r;
|
|
1889
|
+
//#endregion
|
|
1890
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
1891
|
+
function yr(e, t) {
|
|
1892
|
+
return r.useReducer((e, n) => t[e][n] ?? e, e);
|
|
1893
|
+
}
|
|
1894
|
+
var br = (e) => {
|
|
1895
|
+
let { present: t, children: n } = e, i = xr(t), a = typeof n == "function" ? n({ present: i.isPresent }) : r.Children.only(n), o = _(i.ref, Cr(a));
|
|
1896
|
+
return typeof n == "function" || i.isPresent ? r.cloneElement(a, { ref: o }) : null;
|
|
1897
|
+
};
|
|
1898
|
+
br.displayName = "Presence";
|
|
1899
|
+
function xr(e) {
|
|
1900
|
+
let [t, n] = r.useState(), i = r.useRef(null), a = r.useRef(e), o = r.useRef("none"), [s, c] = yr(e ? "mounted" : "unmounted", {
|
|
1901
|
+
mounted: {
|
|
1902
|
+
UNMOUNT: "unmounted",
|
|
1903
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
1904
|
+
},
|
|
1905
|
+
unmountSuspended: {
|
|
1906
|
+
MOUNT: "mounted",
|
|
1907
|
+
ANIMATION_END: "unmounted"
|
|
1908
|
+
},
|
|
1909
|
+
unmounted: { MOUNT: "mounted" }
|
|
1910
|
+
});
|
|
1911
|
+
return r.useEffect(() => {
|
|
1912
|
+
let e = Sr(i.current);
|
|
1913
|
+
o.current = s === "mounted" ? e : "none";
|
|
1914
|
+
}, [s]), x(() => {
|
|
1915
|
+
let t = i.current, n = a.current;
|
|
1916
|
+
if (n !== e) {
|
|
1917
|
+
let r = o.current, i = Sr(t);
|
|
1918
|
+
e ? c("MOUNT") : i === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
1919
|
+
}
|
|
1920
|
+
}, [e, c]), x(() => {
|
|
1921
|
+
if (t) {
|
|
1922
|
+
let e, n = t.ownerDocument.defaultView ?? window, r = (r) => {
|
|
1923
|
+
let o = Sr(i.current).includes(CSS.escape(r.animationName));
|
|
1924
|
+
if (r.target === t && o && (c("ANIMATION_END"), !a.current)) {
|
|
1925
|
+
let r = t.style.animationFillMode;
|
|
1926
|
+
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
1927
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
}, s = (e) => {
|
|
1931
|
+
e.target === t && (o.current = Sr(i.current));
|
|
1932
|
+
};
|
|
1933
|
+
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
|
|
1934
|
+
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
|
|
1935
|
+
};
|
|
1936
|
+
}
|
|
1937
|
+
c("ANIMATION_END");
|
|
1938
|
+
}, [t, c]), {
|
|
1939
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
1940
|
+
ref: r.useCallback((e) => {
|
|
1941
|
+
i.current = e ? getComputedStyle(e) : null, n(e);
|
|
1942
|
+
}, [])
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
function Sr(e) {
|
|
1946
|
+
return e?.animationName || "none";
|
|
1947
|
+
}
|
|
1948
|
+
function Cr(e) {
|
|
1949
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1950
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1951
|
+
}
|
|
1952
|
+
//#endregion
|
|
1953
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@18.3.1_@types+react@18.3.18_react-_5a38b86f3cf460fc62cbabc7e38e59fb/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
1954
|
+
var wr = "rovingFocusGroup.onEntryFocus", Tr = {
|
|
1955
|
+
bubbles: !1,
|
|
1956
|
+
cancelable: !0
|
|
1957
|
+
}, Er = "RovingFocusGroup", [Dr, Or, kr] = F(Er), [Ar, jr] = y(Er, [kr]), [Mr, Nr] = Ar(Er), Pr = r.forwardRef((e, t) => /* @__PURE__ */ d(Dr.Provider, {
|
|
1958
|
+
scope: e.__scopeRovingFocusGroup,
|
|
1959
|
+
children: /* @__PURE__ */ d(Dr.Slot, {
|
|
1960
|
+
scope: e.__scopeRovingFocusGroup,
|
|
1961
|
+
children: /* @__PURE__ */ d(Fr, {
|
|
1962
|
+
...e,
|
|
1963
|
+
ref: t
|
|
1964
|
+
})
|
|
1965
|
+
})
|
|
1966
|
+
}));
|
|
1967
|
+
Pr.displayName = Er;
|
|
1968
|
+
var Fr = r.forwardRef((e, t) => {
|
|
1969
|
+
let { __scopeRovingFocusGroup: n, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: f = !1, ...p } = e, m = r.useRef(null), h = _(t, m), g = ee(o), [y, b] = C({
|
|
1970
|
+
prop: s,
|
|
1971
|
+
defaultProp: c ?? null,
|
|
1972
|
+
onChange: l,
|
|
1973
|
+
caller: Er
|
|
1974
|
+
}), [x, S] = r.useState(!1), w = L(u), T = Or(n), E = r.useRef(!1), [D, O] = r.useState(0);
|
|
1975
|
+
return r.useEffect(() => {
|
|
1976
|
+
let e = m.current;
|
|
1977
|
+
if (e) return e.addEventListener(wr, w), () => e.removeEventListener(wr, w);
|
|
1978
|
+
}, [w]), /* @__PURE__ */ d(Mr, {
|
|
1979
|
+
scope: n,
|
|
1980
|
+
orientation: i,
|
|
1981
|
+
dir: g,
|
|
1982
|
+
loop: a,
|
|
1983
|
+
currentTabStopId: y,
|
|
1984
|
+
onItemFocus: r.useCallback((e) => b(e), [b]),
|
|
1985
|
+
onItemShiftTab: r.useCallback(() => S(!0), []),
|
|
1986
|
+
onFocusableItemAdd: r.useCallback(() => O((e) => e + 1), []),
|
|
1987
|
+
onFocusableItemRemove: r.useCallback(() => O((e) => e - 1), []),
|
|
1988
|
+
children: /* @__PURE__ */ d(N.div, {
|
|
1989
|
+
tabIndex: x || D === 0 ? -1 : 0,
|
|
1990
|
+
"data-orientation": i,
|
|
1991
|
+
...p,
|
|
1992
|
+
ref: h,
|
|
1993
|
+
style: {
|
|
1994
|
+
outline: "none",
|
|
1995
|
+
...e.style
|
|
1996
|
+
},
|
|
1997
|
+
onMouseDown: v(e.onMouseDown, () => {
|
|
1998
|
+
E.current = !0;
|
|
1999
|
+
}),
|
|
2000
|
+
onFocus: v(e.onFocus, (e) => {
|
|
2001
|
+
let t = !E.current;
|
|
2002
|
+
if (e.target === e.currentTarget && t && !x) {
|
|
2003
|
+
let t = new CustomEvent(wr, Tr);
|
|
2004
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
2005
|
+
let e = T().filter((e) => e.focusable);
|
|
2006
|
+
Vr([
|
|
2007
|
+
e.find((e) => e.active),
|
|
2008
|
+
e.find((e) => e.id === y),
|
|
2009
|
+
...e
|
|
2010
|
+
].filter(Boolean).map((e) => e.ref.current), f);
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
E.current = !1;
|
|
2014
|
+
}),
|
|
2015
|
+
onBlur: v(e.onBlur, () => S(!1))
|
|
2016
|
+
})
|
|
2017
|
+
});
|
|
2018
|
+
}), Ir = "RovingFocusGroupItem", Lr = r.forwardRef((e, t) => {
|
|
2019
|
+
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = e, l = Ie(), u = o || l, f = Nr(Ir, n), p = f.currentTabStopId === u, m = Or(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: _ } = f;
|
|
2020
|
+
return r.useEffect(() => {
|
|
2021
|
+
if (i) return h(), () => g();
|
|
2022
|
+
}, [
|
|
2023
|
+
i,
|
|
2024
|
+
h,
|
|
2025
|
+
g
|
|
2026
|
+
]), /* @__PURE__ */ d(Dr.ItemSlot, {
|
|
2027
|
+
scope: n,
|
|
2028
|
+
id: u,
|
|
2029
|
+
focusable: i,
|
|
2030
|
+
active: a,
|
|
2031
|
+
children: /* @__PURE__ */ d(N.span, {
|
|
2032
|
+
tabIndex: p ? 0 : -1,
|
|
2033
|
+
"data-orientation": f.orientation,
|
|
2034
|
+
...c,
|
|
2035
|
+
ref: t,
|
|
2036
|
+
onMouseDown: v(e.onMouseDown, (e) => {
|
|
2037
|
+
i ? f.onItemFocus(u) : e.preventDefault();
|
|
2038
|
+
}),
|
|
2039
|
+
onFocus: v(e.onFocus, () => f.onItemFocus(u)),
|
|
2040
|
+
onKeyDown: v(e.onKeyDown, (e) => {
|
|
2041
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
2042
|
+
f.onItemShiftTab();
|
|
2043
|
+
return;
|
|
2044
|
+
}
|
|
2045
|
+
if (e.target !== e.currentTarget) return;
|
|
2046
|
+
let t = Br(e, f.orientation, f.dir);
|
|
2047
|
+
if (t !== void 0) {
|
|
2048
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
2049
|
+
e.preventDefault();
|
|
2050
|
+
let n = m().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
2051
|
+
if (t === "last") n.reverse();
|
|
2052
|
+
else if (t === "prev" || t === "next") {
|
|
2053
|
+
t === "prev" && n.reverse();
|
|
2054
|
+
let r = n.indexOf(e.currentTarget);
|
|
2055
|
+
n = f.loop ? Hr(n, r + 1) : n.slice(r + 1);
|
|
2056
|
+
}
|
|
2057
|
+
setTimeout(() => Vr(n));
|
|
2058
|
+
}
|
|
2059
|
+
}),
|
|
2060
|
+
children: typeof s == "function" ? s({
|
|
2061
|
+
isCurrentTabStop: p,
|
|
2062
|
+
hasTabStop: _ != null
|
|
2063
|
+
}) : s
|
|
2064
|
+
})
|
|
2065
|
+
});
|
|
2066
|
+
});
|
|
2067
|
+
Lr.displayName = Ir;
|
|
2068
|
+
var Rr = {
|
|
2069
|
+
ArrowLeft: "prev",
|
|
2070
|
+
ArrowUp: "prev",
|
|
2071
|
+
ArrowRight: "next",
|
|
2072
|
+
ArrowDown: "next",
|
|
2073
|
+
PageUp: "first",
|
|
2074
|
+
Home: "first",
|
|
2075
|
+
PageDown: "last",
|
|
2076
|
+
End: "last"
|
|
2077
|
+
};
|
|
2078
|
+
function zr(e, t) {
|
|
2079
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
2080
|
+
}
|
|
2081
|
+
function Br(e, t, n) {
|
|
2082
|
+
let r = zr(e.key, n);
|
|
2083
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Rr[r];
|
|
2084
|
+
}
|
|
2085
|
+
function Vr(e, t = !1) {
|
|
2086
|
+
let n = document.activeElement;
|
|
2087
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
2088
|
+
}
|
|
2089
|
+
function Hr(e, t) {
|
|
2090
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
2091
|
+
}
|
|
2092
|
+
var Ur = Pr, Wr = Lr, Gr = function(e) {
|
|
2093
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
2094
|
+
}, Kr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Jr = {}, Yr = 0, Xr = function(e) {
|
|
2095
|
+
return e && (e.host || Xr(e.parentNode));
|
|
2096
|
+
}, Zr = function(e, t) {
|
|
2097
|
+
return t.map(function(t) {
|
|
2098
|
+
if (e.contains(t)) return t;
|
|
2099
|
+
var n = Xr(t);
|
|
2100
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
2101
|
+
}).filter(function(e) {
|
|
2102
|
+
return !!e;
|
|
2103
|
+
});
|
|
2104
|
+
}, Qr = function(e, t, n, r) {
|
|
2105
|
+
var i = Zr(t, Array.isArray(e) ? e : [e]);
|
|
2106
|
+
Jr[n] || (Jr[n] = /* @__PURE__ */ new WeakMap());
|
|
2107
|
+
var a = Jr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
2108
|
+
e && !s.has(e) && (s.add(e), l(e.parentNode));
|
|
2109
|
+
};
|
|
2110
|
+
i.forEach(l);
|
|
2111
|
+
var u = function(e) {
|
|
2112
|
+
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
|
|
2113
|
+
if (s.has(e)) u(e);
|
|
2114
|
+
else try {
|
|
2115
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Kr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2116
|
+
Kr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && qr.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
2117
|
+
} catch (t) {
|
|
2118
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
2119
|
+
}
|
|
2120
|
+
});
|
|
2121
|
+
};
|
|
2122
|
+
return u(t), s.clear(), Yr++, function() {
|
|
2123
|
+
o.forEach(function(e) {
|
|
2124
|
+
var t = Kr.get(e) - 1, i = a.get(e) - 1;
|
|
2125
|
+
Kr.set(e, t), a.set(e, i), t || (qr.has(e) || e.removeAttribute(r), qr.delete(e)), i || e.removeAttribute(n);
|
|
2126
|
+
}), Yr--, Yr || (Kr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Jr = {});
|
|
2127
|
+
};
|
|
2128
|
+
}, $r = function(e, t, n) {
|
|
2129
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
2130
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Gr(e);
|
|
2131
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Qr(r, i, n, "aria-hidden")) : function() {
|
|
2132
|
+
return null;
|
|
2133
|
+
};
|
|
2134
|
+
}, J = function() {
|
|
2135
|
+
return J = Object.assign || function(e) {
|
|
2136
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2137
|
+
return e;
|
|
2138
|
+
}, J.apply(this, arguments);
|
|
2139
|
+
};
|
|
2140
|
+
function ei(e, t) {
|
|
2141
|
+
var n = {};
|
|
2142
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2143
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2144
|
+
return n;
|
|
2145
|
+
}
|
|
2146
|
+
function ti(e, t, n) {
|
|
2147
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2148
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
2149
|
+
}
|
|
2150
|
+
//#endregion
|
|
2151
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2152
|
+
var ni = "right-scroll-bar-position", ri = "width-before-scroll-bar", ii = "with-scroll-bars-hidden", ai = "--removed-body-scroll-bar-size";
|
|
2153
|
+
//#endregion
|
|
2154
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2155
|
+
function oi(e, t) {
|
|
2156
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2157
|
+
}
|
|
2158
|
+
//#endregion
|
|
2159
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2160
|
+
function si(e, t) {
|
|
2161
|
+
var n = l(function() {
|
|
2162
|
+
return {
|
|
2163
|
+
value: e,
|
|
2164
|
+
callback: t,
|
|
2165
|
+
facade: {
|
|
2166
|
+
get current() {
|
|
2167
|
+
return n.value;
|
|
2168
|
+
},
|
|
2169
|
+
set current(e) {
|
|
2170
|
+
var t = n.value;
|
|
2171
|
+
t !== e && (n.value = e, n.callback(e, t));
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
};
|
|
2175
|
+
})[0];
|
|
2176
|
+
return n.callback = t, n.facade;
|
|
2177
|
+
}
|
|
2178
|
+
//#endregion
|
|
2179
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2180
|
+
var ci = typeof window < "u" ? r.useLayoutEffect : r.useEffect, li = /* @__PURE__ */ new WeakMap();
|
|
2181
|
+
function ui(e, t) {
|
|
2182
|
+
var n = si(t || null, function(t) {
|
|
2183
|
+
return e.forEach(function(e) {
|
|
2184
|
+
return oi(e, t);
|
|
2185
|
+
});
|
|
2186
|
+
});
|
|
2187
|
+
return ci(function() {
|
|
2188
|
+
var t = li.get(n);
|
|
2189
|
+
if (t) {
|
|
2190
|
+
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2191
|
+
r.forEach(function(e) {
|
|
2192
|
+
i.has(e) || oi(e, null);
|
|
2193
|
+
}), i.forEach(function(e) {
|
|
2194
|
+
r.has(e) || oi(e, a);
|
|
2195
|
+
});
|
|
2196
|
+
}
|
|
2197
|
+
li.set(n, e);
|
|
2198
|
+
}, [e]), n;
|
|
2199
|
+
}
|
|
2200
|
+
//#endregion
|
|
2201
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js
|
|
2202
|
+
function di(e) {
|
|
2203
|
+
return e;
|
|
2204
|
+
}
|
|
2205
|
+
function fi(e, t) {
|
|
2206
|
+
t === void 0 && (t = di);
|
|
2207
|
+
var n = [], r = !1;
|
|
2208
|
+
return {
|
|
2209
|
+
read: function() {
|
|
2210
|
+
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
2211
|
+
return n.length ? n[n.length - 1] : e;
|
|
2212
|
+
},
|
|
2213
|
+
useMedium: function(e) {
|
|
2214
|
+
var i = t(e, r);
|
|
2215
|
+
return n.push(i), function() {
|
|
2216
|
+
n = n.filter(function(e) {
|
|
2217
|
+
return e !== i;
|
|
2218
|
+
});
|
|
2219
|
+
};
|
|
2220
|
+
},
|
|
2221
|
+
assignSyncMedium: function(e) {
|
|
2222
|
+
for (r = !0; n.length;) {
|
|
2223
|
+
var t = n;
|
|
2224
|
+
n = [], t.forEach(e);
|
|
2225
|
+
}
|
|
2226
|
+
n = {
|
|
2227
|
+
push: function(t) {
|
|
2228
|
+
return e(t);
|
|
2229
|
+
},
|
|
2230
|
+
filter: function() {
|
|
2231
|
+
return n;
|
|
2232
|
+
}
|
|
2233
|
+
};
|
|
2234
|
+
},
|
|
2235
|
+
assignMedium: function(e) {
|
|
2236
|
+
r = !0;
|
|
2237
|
+
var t = [];
|
|
2238
|
+
if (n.length) {
|
|
2239
|
+
var i = n;
|
|
2240
|
+
n = [], i.forEach(e), t = n;
|
|
2241
|
+
}
|
|
2242
|
+
var a = function() {
|
|
2243
|
+
var n = t;
|
|
2244
|
+
t = [], n.forEach(e);
|
|
2245
|
+
}, o = function() {
|
|
2246
|
+
return Promise.resolve().then(a);
|
|
2247
|
+
};
|
|
2248
|
+
o(), n = {
|
|
2249
|
+
push: function(e) {
|
|
2250
|
+
t.push(e), o();
|
|
2251
|
+
},
|
|
2252
|
+
filter: function(e) {
|
|
2253
|
+
return t = t.filter(e), n;
|
|
2254
|
+
}
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
function pi(e) {
|
|
2260
|
+
e === void 0 && (e = {});
|
|
2261
|
+
var t = fi(null);
|
|
2262
|
+
return t.options = J({
|
|
2263
|
+
async: !0,
|
|
2264
|
+
ssr: !1
|
|
2265
|
+
}, e), t;
|
|
2266
|
+
}
|
|
2267
|
+
//#endregion
|
|
2268
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js
|
|
2269
|
+
var mi = function(e) {
|
|
2270
|
+
var t = e.sideCar, n = ei(e, ["sideCar"]);
|
|
2271
|
+
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2272
|
+
var i = t.read();
|
|
2273
|
+
if (!i) throw Error("Sidecar medium not found");
|
|
2274
|
+
return r.createElement(i, J({}, n));
|
|
2275
|
+
};
|
|
2276
|
+
mi.isSideCarExport = !0;
|
|
2277
|
+
function hi(e, t) {
|
|
2278
|
+
return e.useMedium(t), mi;
|
|
2279
|
+
}
|
|
2280
|
+
//#endregion
|
|
2281
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2282
|
+
var gi = pi(), _i = function() {}, vi = r.forwardRef(function(e, t) {
|
|
2283
|
+
var n = r.useRef(null), i = r.useState({
|
|
2284
|
+
onScrollCapture: _i,
|
|
2285
|
+
onWheelCapture: _i,
|
|
2286
|
+
onTouchMoveCapture: _i
|
|
2287
|
+
}), a = i[0], o = i[1], s = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x = ei(e, [
|
|
2288
|
+
"forwardProps",
|
|
2289
|
+
"children",
|
|
2290
|
+
"className",
|
|
2291
|
+
"removeScrollBar",
|
|
2292
|
+
"enabled",
|
|
2293
|
+
"shards",
|
|
2294
|
+
"sideCar",
|
|
2295
|
+
"noRelative",
|
|
2296
|
+
"noIsolation",
|
|
2297
|
+
"inert",
|
|
2298
|
+
"allowPinchZoom",
|
|
2299
|
+
"as",
|
|
2300
|
+
"gapMode"
|
|
2301
|
+
]), S = p, C = ui([n, t]), w = J(J({}, x), a);
|
|
2302
|
+
return r.createElement(r.Fragment, null, d && r.createElement(S, {
|
|
2303
|
+
sideCar: gi,
|
|
2304
|
+
removeScrollBar: u,
|
|
2305
|
+
shards: f,
|
|
2306
|
+
noRelative: m,
|
|
2307
|
+
noIsolation: h,
|
|
2308
|
+
inert: g,
|
|
2309
|
+
setCallbacks: o,
|
|
2310
|
+
allowPinchZoom: !!_,
|
|
2311
|
+
lockRef: n,
|
|
2312
|
+
gapMode: b
|
|
2313
|
+
}), s ? r.cloneElement(r.Children.only(c), J(J({}, w), { ref: C })) : r.createElement(y, J({}, w, {
|
|
2314
|
+
className: l,
|
|
2315
|
+
ref: C
|
|
2316
|
+
}), c));
|
|
2317
|
+
});
|
|
2318
|
+
vi.defaultProps = {
|
|
2319
|
+
enabled: !0,
|
|
2320
|
+
removeScrollBar: !0,
|
|
2321
|
+
inert: !1
|
|
2322
|
+
}, vi.classNames = {
|
|
2323
|
+
fullWidth: ri,
|
|
2324
|
+
zeroRight: ni
|
|
2325
|
+
};
|
|
2326
|
+
//#endregion
|
|
2327
|
+
//#region ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
2328
|
+
var yi = function() {
|
|
2329
|
+
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2330
|
+
};
|
|
2331
|
+
//#endregion
|
|
2332
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2333
|
+
function bi() {
|
|
2334
|
+
if (!document) return null;
|
|
2335
|
+
var e = document.createElement("style");
|
|
2336
|
+
e.type = "text/css";
|
|
2337
|
+
var t = yi();
|
|
2338
|
+
return t && e.setAttribute("nonce", t), e;
|
|
2339
|
+
}
|
|
2340
|
+
function xi(e, t) {
|
|
2341
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2342
|
+
}
|
|
2343
|
+
function Si(e) {
|
|
2344
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2345
|
+
}
|
|
2346
|
+
var Ci = function() {
|
|
2347
|
+
var e = 0, t = null;
|
|
2348
|
+
return {
|
|
2349
|
+
add: function(n) {
|
|
2350
|
+
e == 0 && (t = bi()) && (xi(t, n), Si(t)), e++;
|
|
2351
|
+
},
|
|
2352
|
+
remove: function() {
|
|
2353
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
}, wi = function() {
|
|
2357
|
+
var e = Ci();
|
|
2358
|
+
return function(t, n) {
|
|
2359
|
+
r.useEffect(function() {
|
|
2360
|
+
return e.add(t), function() {
|
|
2361
|
+
e.remove();
|
|
2362
|
+
};
|
|
2363
|
+
}, [t && n]);
|
|
2364
|
+
};
|
|
2365
|
+
}, Ti = function() {
|
|
2366
|
+
var e = wi();
|
|
2367
|
+
return function(t) {
|
|
2368
|
+
var n = t.styles, r = t.dynamic;
|
|
2369
|
+
return e(n, r), null;
|
|
2370
|
+
};
|
|
2371
|
+
}, Ei = {
|
|
2372
|
+
left: 0,
|
|
2373
|
+
top: 0,
|
|
2374
|
+
right: 0,
|
|
2375
|
+
gap: 0
|
|
2376
|
+
}, Di = function(e) {
|
|
2377
|
+
return parseInt(e || "", 10) || 0;
|
|
2378
|
+
}, Oi = function(e) {
|
|
2379
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2380
|
+
return [
|
|
2381
|
+
Di(n),
|
|
2382
|
+
Di(r),
|
|
2383
|
+
Di(i)
|
|
2384
|
+
];
|
|
2385
|
+
}, ki = function(e) {
|
|
2386
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Ei;
|
|
2387
|
+
var t = Oi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2388
|
+
return {
|
|
2389
|
+
left: t[0],
|
|
2390
|
+
top: t[1],
|
|
2391
|
+
right: t[2],
|
|
2392
|
+
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2393
|
+
};
|
|
2394
|
+
}, Ai = Ti(), ji = "data-scroll-locked", Mi = function(e, t, n, r) {
|
|
2395
|
+
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2396
|
+
return n === void 0 && (n = "margin"), `
|
|
2397
|
+
.${ii} {
|
|
2398
|
+
overflow: hidden ${r};
|
|
2399
|
+
padding-right: ${s}px ${r};
|
|
2400
|
+
}
|
|
2401
|
+
body[${ji}] {
|
|
2402
|
+
overflow: hidden ${r};
|
|
2403
|
+
overscroll-behavior: contain;
|
|
2404
|
+
${[
|
|
2405
|
+
t && `position: relative ${r};`,
|
|
2406
|
+
n === "margin" && `
|
|
2407
|
+
padding-left: ${i}px;
|
|
2408
|
+
padding-top: ${a}px;
|
|
2409
|
+
padding-right: ${o}px;
|
|
2410
|
+
margin-left:0;
|
|
2411
|
+
margin-top:0;
|
|
2412
|
+
margin-right: ${s}px ${r};
|
|
2413
|
+
`,
|
|
2414
|
+
n === "padding" && `padding-right: ${s}px ${r};`
|
|
2415
|
+
].filter(Boolean).join("")}
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
.${ni} {
|
|
2419
|
+
right: ${s}px ${r};
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
.${ri} {
|
|
2423
|
+
margin-right: ${s}px ${r};
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
.${ni} .${ni} {
|
|
2427
|
+
right: 0 ${r};
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
.${ri} .${ri} {
|
|
2431
|
+
margin-right: 0 ${r};
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
body[${ji}] {
|
|
2435
|
+
${ai}: ${s}px;
|
|
2436
|
+
}
|
|
2437
|
+
`;
|
|
2438
|
+
}, Ni = function() {
|
|
2439
|
+
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2440
|
+
return isFinite(e) ? e : 0;
|
|
2441
|
+
}, Pi = function() {
|
|
2442
|
+
r.useEffect(function() {
|
|
2443
|
+
return document.body.setAttribute(ji, (Ni() + 1).toString()), function() {
|
|
2444
|
+
var e = Ni() - 1;
|
|
2445
|
+
e <= 0 ? document.body.removeAttribute(ji) : document.body.setAttribute(ji, e.toString());
|
|
2446
|
+
};
|
|
2447
|
+
}, []);
|
|
2448
|
+
}, Fi = function(e) {
|
|
2449
|
+
var t = e.noRelative, n = e.noImportant, i = e.gapMode, a = i === void 0 ? "margin" : i;
|
|
2450
|
+
Pi();
|
|
2451
|
+
var o = r.useMemo(function() {
|
|
2452
|
+
return ki(a);
|
|
2453
|
+
}, [a]);
|
|
2454
|
+
return r.createElement(Ai, { styles: Mi(o, !t, a, n ? "" : "!important") });
|
|
2455
|
+
}, Ii = !1;
|
|
2456
|
+
if (typeof window < "u") try {
|
|
2457
|
+
var Li = Object.defineProperty({}, "passive", { get: function() {
|
|
2458
|
+
return Ii = !0, !0;
|
|
2459
|
+
} });
|
|
2460
|
+
window.addEventListener("test", Li, Li), window.removeEventListener("test", Li, Li);
|
|
2461
|
+
} catch {
|
|
2462
|
+
Ii = !1;
|
|
2463
|
+
}
|
|
2464
|
+
var Ri = Ii ? { passive: !1 } : !1, zi = function(e) {
|
|
2465
|
+
return e.tagName === "TEXTAREA";
|
|
2466
|
+
}, Bi = function(e, t) {
|
|
2467
|
+
if (!(e instanceof Element)) return !1;
|
|
2468
|
+
var n = window.getComputedStyle(e);
|
|
2469
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !zi(e) && n[t] === "visible");
|
|
2470
|
+
}, Vi = function(e) {
|
|
2471
|
+
return Bi(e, "overflowY");
|
|
2472
|
+
}, Hi = function(e) {
|
|
2473
|
+
return Bi(e, "overflowX");
|
|
2474
|
+
}, Ui = function(e, t) {
|
|
2475
|
+
var n = t.ownerDocument, r = t;
|
|
2476
|
+
do {
|
|
2477
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Ki(e, r)) {
|
|
2478
|
+
var i = qi(e, r);
|
|
2479
|
+
if (i[1] > i[2]) return !0;
|
|
2480
|
+
}
|
|
2481
|
+
r = r.parentNode;
|
|
2482
|
+
} while (r && r !== n.body);
|
|
2483
|
+
return !1;
|
|
2484
|
+
}, Wi = function(e) {
|
|
2485
|
+
return [
|
|
2486
|
+
e.scrollTop,
|
|
2487
|
+
e.scrollHeight,
|
|
2488
|
+
e.clientHeight
|
|
2489
|
+
];
|
|
2490
|
+
}, Gi = function(e) {
|
|
2491
|
+
return [
|
|
2492
|
+
e.scrollLeft,
|
|
2493
|
+
e.scrollWidth,
|
|
2494
|
+
e.clientWidth
|
|
2495
|
+
];
|
|
2496
|
+
}, Ki = function(e, t) {
|
|
2497
|
+
return e === "v" ? Vi(t) : Hi(t);
|
|
2498
|
+
}, qi = function(e, t) {
|
|
2499
|
+
return e === "v" ? Wi(t) : Gi(t);
|
|
2500
|
+
}, Ji = function(e, t) {
|
|
2501
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2502
|
+
}, Yi = function(e, t, n, r, i) {
|
|
2503
|
+
var a = Ji(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2504
|
+
do {
|
|
2505
|
+
if (!s) break;
|
|
2506
|
+
var p = qi(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2507
|
+
(m || h) && Ki(e, s) && (d += h, f += m);
|
|
2508
|
+
var g = s.parentNode;
|
|
2509
|
+
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
2510
|
+
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2511
|
+
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2512
|
+
}, Xi = function(e) {
|
|
2513
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2514
|
+
}, Zi = function(e) {
|
|
2515
|
+
return [e.deltaX, e.deltaY];
|
|
2516
|
+
}, Qi = function(e) {
|
|
2517
|
+
return e && "current" in e ? e.current : e;
|
|
2518
|
+
}, $i = function(e, t) {
|
|
2519
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
2520
|
+
}, ea = function(e) {
|
|
2521
|
+
return `
|
|
2522
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
2523
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
2524
|
+
`;
|
|
2525
|
+
}, ta = 0, na = [];
|
|
2526
|
+
function ra(e) {
|
|
2527
|
+
var t = r.useRef([]), n = r.useRef([0, 0]), i = r.useRef(), a = r.useState(ta++)[0], o = r.useState(Ti)[0], s = r.useRef(e);
|
|
2528
|
+
r.useEffect(function() {
|
|
2529
|
+
s.current = e;
|
|
2530
|
+
}, [e]), r.useEffect(function() {
|
|
2531
|
+
if (e.inert) {
|
|
2532
|
+
document.body.classList.add(`block-interactivity-${a}`);
|
|
2533
|
+
var t = ti([e.lockRef.current], (e.shards || []).map(Qi), !0).filter(Boolean);
|
|
2534
|
+
return t.forEach(function(e) {
|
|
2535
|
+
return e.classList.add(`allow-interactivity-${a}`);
|
|
2536
|
+
}), function() {
|
|
2537
|
+
document.body.classList.remove(`block-interactivity-${a}`), t.forEach(function(e) {
|
|
2538
|
+
return e.classList.remove(`allow-interactivity-${a}`);
|
|
2539
|
+
});
|
|
2540
|
+
};
|
|
2541
|
+
}
|
|
2542
|
+
}, [
|
|
2543
|
+
e.inert,
|
|
2544
|
+
e.lockRef.current,
|
|
2545
|
+
e.shards
|
|
2546
|
+
]);
|
|
2547
|
+
var c = r.useCallback(function(e, t) {
|
|
2548
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
|
|
2549
|
+
var r = Xi(e), a = n.current, o = "deltaX" in e ? e.deltaX : a[0] - r[0], c = "deltaY" in e ? e.deltaY : a[1] - r[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
2550
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2551
|
+
var f = Ui(d, u);
|
|
2552
|
+
if (!f) return !0;
|
|
2553
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = Ui(d, u)), !f) return !1;
|
|
2554
|
+
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
2555
|
+
var p = i.current || l;
|
|
2556
|
+
return Yi(p, t, e, p === "h" ? o : c, !0);
|
|
2557
|
+
}, []), l = r.useCallback(function(e) {
|
|
2558
|
+
var n = e;
|
|
2559
|
+
if (na.length && na[na.length - 1] === o) {
|
|
2560
|
+
var r = "deltaY" in n ? Zi(n) : Xi(n), i = t.current.filter(function(e) {
|
|
2561
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && $i(e.delta, r);
|
|
2562
|
+
})[0];
|
|
2563
|
+
if (i && i.should) n.cancelable && n.preventDefault();
|
|
2564
|
+
else if (!i) {
|
|
2565
|
+
var a = (s.current.shards || []).map(Qi).filter(Boolean).filter(function(e) {
|
|
2566
|
+
return e.contains(n.target);
|
|
2567
|
+
});
|
|
2568
|
+
(a.length > 0 ? c(n, a[0]) : !s.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}, []), u = r.useCallback(function(e, n, r, i) {
|
|
2572
|
+
var a = {
|
|
2573
|
+
name: e,
|
|
2574
|
+
delta: n,
|
|
2575
|
+
target: r,
|
|
2576
|
+
should: i,
|
|
2577
|
+
shadowParent: ia(r)
|
|
2578
|
+
};
|
|
2579
|
+
t.current.push(a), setTimeout(function() {
|
|
2580
|
+
t.current = t.current.filter(function(e) {
|
|
2581
|
+
return e !== a;
|
|
2582
|
+
});
|
|
2583
|
+
}, 1);
|
|
2584
|
+
}, []), d = r.useCallback(function(e) {
|
|
2585
|
+
n.current = Xi(e), i.current = void 0;
|
|
2586
|
+
}, []), f = r.useCallback(function(t) {
|
|
2587
|
+
u(t.type, Zi(t), t.target, c(t, e.lockRef.current));
|
|
2588
|
+
}, []), p = r.useCallback(function(t) {
|
|
2589
|
+
u(t.type, Xi(t), t.target, c(t, e.lockRef.current));
|
|
2590
|
+
}, []);
|
|
2591
|
+
r.useEffect(function() {
|
|
2592
|
+
return na.push(o), e.setCallbacks({
|
|
2593
|
+
onScrollCapture: f,
|
|
2594
|
+
onWheelCapture: f,
|
|
2595
|
+
onTouchMoveCapture: p
|
|
2596
|
+
}), document.addEventListener("wheel", l, Ri), document.addEventListener("touchmove", l, Ri), document.addEventListener("touchstart", d, Ri), function() {
|
|
2597
|
+
na = na.filter(function(e) {
|
|
2598
|
+
return e !== o;
|
|
2599
|
+
}), document.removeEventListener("wheel", l, Ri), document.removeEventListener("touchmove", l, Ri), document.removeEventListener("touchstart", d, Ri);
|
|
2600
|
+
};
|
|
2601
|
+
}, []);
|
|
2602
|
+
var m = e.removeScrollBar, h = e.inert;
|
|
2603
|
+
return r.createElement(r.Fragment, null, h ? r.createElement(o, { styles: ea(a) }) : null, m ? r.createElement(Fi, {
|
|
2604
|
+
noRelative: e.noRelative,
|
|
2605
|
+
gapMode: e.gapMode
|
|
2606
|
+
}) : null);
|
|
2607
|
+
}
|
|
2608
|
+
function ia(e) {
|
|
2609
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2610
|
+
return t;
|
|
2611
|
+
}
|
|
2612
|
+
//#endregion
|
|
2613
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
2614
|
+
var aa = hi(gi, ra), oa = r.forwardRef(function(e, t) {
|
|
2615
|
+
return r.createElement(vi, J({}, e, {
|
|
2616
|
+
ref: t,
|
|
2617
|
+
sideCar: aa
|
|
2618
|
+
}));
|
|
2619
|
+
});
|
|
2620
|
+
oa.classNames = vi.classNames;
|
|
2621
|
+
//#endregion
|
|
2622
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
2623
|
+
var sa = ["Enter", " "], ca = [
|
|
2624
|
+
"ArrowDown",
|
|
2625
|
+
"PageUp",
|
|
2626
|
+
"Home"
|
|
2627
|
+
], la = [
|
|
2628
|
+
"ArrowUp",
|
|
2629
|
+
"PageDown",
|
|
2630
|
+
"End"
|
|
2631
|
+
], ua = [...ca, ...la], da = {
|
|
2632
|
+
ltr: [...sa, "ArrowRight"],
|
|
2633
|
+
rtl: [...sa, "ArrowLeft"]
|
|
2634
|
+
}, fa = {
|
|
2635
|
+
ltr: ["ArrowLeft"],
|
|
2636
|
+
rtl: ["ArrowRight"]
|
|
2637
|
+
}, pa = "Menu", [ma, ha, ga] = F(pa), [_a, va] = y(pa, [
|
|
2638
|
+
ga,
|
|
2639
|
+
Zn,
|
|
2640
|
+
jr
|
|
2641
|
+
]), ya = Zn(), ba = jr(), [xa, Sa] = _a(pa), [Ca, wa] = _a(pa), Ta = (e) => {
|
|
2642
|
+
let { __scopeMenu: t, open: n = !1, children: i, dir: a, onOpenChange: o, modal: s = !0 } = e, c = ya(t), [l, u] = r.useState(null), f = r.useRef(!1), p = L(o), m = ee(a);
|
|
2643
|
+
return r.useEffect(() => {
|
|
2644
|
+
let e = () => {
|
|
2645
|
+
f.current = !0, document.addEventListener("pointerdown", t, {
|
|
2646
|
+
capture: !0,
|
|
2647
|
+
once: !0
|
|
2648
|
+
}), document.addEventListener("pointermove", t, {
|
|
2649
|
+
capture: !0,
|
|
2650
|
+
once: !0
|
|
2651
|
+
});
|
|
2652
|
+
}, t = () => f.current = !1;
|
|
2653
|
+
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
2654
|
+
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
2655
|
+
};
|
|
2656
|
+
}, []), /* @__PURE__ */ d(pr, {
|
|
2657
|
+
...c,
|
|
2658
|
+
children: /* @__PURE__ */ d(xa, {
|
|
2659
|
+
scope: t,
|
|
2660
|
+
open: n,
|
|
2661
|
+
onOpenChange: p,
|
|
2662
|
+
content: l,
|
|
2663
|
+
onContentChange: u,
|
|
2664
|
+
children: /* @__PURE__ */ d(Ca, {
|
|
2665
|
+
scope: t,
|
|
2666
|
+
onClose: r.useCallback(() => p(!1), [p]),
|
|
2667
|
+
isUsingKeyboardRef: f,
|
|
2668
|
+
dir: m,
|
|
2669
|
+
modal: s,
|
|
2670
|
+
children: i
|
|
2671
|
+
})
|
|
2672
|
+
})
|
|
2673
|
+
});
|
|
2674
|
+
};
|
|
2675
|
+
Ta.displayName = pa;
|
|
2676
|
+
var Ea = "MenuAnchor", Da = r.forwardRef((e, t) => {
|
|
2677
|
+
let { __scopeMenu: n, ...r } = e, i = ya(n);
|
|
2678
|
+
return /* @__PURE__ */ d(mr, {
|
|
2679
|
+
...i,
|
|
2680
|
+
...r,
|
|
2681
|
+
ref: t
|
|
2682
|
+
});
|
|
2683
|
+
});
|
|
2684
|
+
Da.displayName = Ea;
|
|
2685
|
+
var Oa = "MenuPortal", [ka, Aa] = _a(Oa, { forceMount: void 0 }), ja = (e) => {
|
|
2686
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = Sa(Oa, t);
|
|
2687
|
+
return /* @__PURE__ */ d(ka, {
|
|
2688
|
+
scope: t,
|
|
2689
|
+
forceMount: n,
|
|
2690
|
+
children: /* @__PURE__ */ d(br, {
|
|
2691
|
+
present: n || a.open,
|
|
2692
|
+
children: /* @__PURE__ */ d(vr, {
|
|
2693
|
+
asChild: !0,
|
|
2694
|
+
container: i,
|
|
2695
|
+
children: r
|
|
2696
|
+
})
|
|
2697
|
+
})
|
|
2698
|
+
});
|
|
2699
|
+
};
|
|
2700
|
+
ja.displayName = Oa;
|
|
2701
|
+
var Y = "MenuContent", [Ma, Na] = _a(Y), Pa = r.forwardRef((e, t) => {
|
|
2702
|
+
let n = Aa(Y, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = Sa(Y, e.__scopeMenu), o = wa(Y, e.__scopeMenu);
|
|
2703
|
+
return /* @__PURE__ */ d(ma.Provider, {
|
|
2704
|
+
scope: e.__scopeMenu,
|
|
2705
|
+
children: /* @__PURE__ */ d(br, {
|
|
2706
|
+
present: r || a.open,
|
|
2707
|
+
children: /* @__PURE__ */ d(ma.Slot, {
|
|
2708
|
+
scope: e.__scopeMenu,
|
|
2709
|
+
children: o.modal ? /* @__PURE__ */ d(Fa, {
|
|
2710
|
+
...i,
|
|
2711
|
+
ref: t
|
|
2712
|
+
}) : /* @__PURE__ */ d(Ia, {
|
|
2713
|
+
...i,
|
|
2714
|
+
ref: t
|
|
2715
|
+
})
|
|
2716
|
+
})
|
|
2717
|
+
})
|
|
2718
|
+
});
|
|
2719
|
+
}), Fa = r.forwardRef((e, t) => {
|
|
2720
|
+
let n = Sa(Y, e.__scopeMenu), i = r.useRef(null), a = _(t, i);
|
|
2721
|
+
return r.useEffect(() => {
|
|
2722
|
+
let e = i.current;
|
|
2723
|
+
if (e) return $r(e);
|
|
2724
|
+
}, []), /* @__PURE__ */ d(Ra, {
|
|
2725
|
+
...e,
|
|
2726
|
+
ref: a,
|
|
2727
|
+
trapFocus: n.open,
|
|
2728
|
+
disableOutsidePointerEvents: n.open,
|
|
2729
|
+
disableOutsideScroll: !0,
|
|
2730
|
+
onFocusOutside: v(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
2731
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
2732
|
+
});
|
|
2733
|
+
}), Ia = r.forwardRef((e, t) => {
|
|
2734
|
+
let n = Sa(Y, e.__scopeMenu);
|
|
2735
|
+
return /* @__PURE__ */ d(Ra, {
|
|
2736
|
+
...e,
|
|
2737
|
+
ref: t,
|
|
2738
|
+
trapFocus: !1,
|
|
2739
|
+
disableOutsidePointerEvents: !1,
|
|
2740
|
+
disableOutsideScroll: !1,
|
|
2741
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
2742
|
+
});
|
|
2743
|
+
}), La = /* @__PURE__ */ E("MenuContent.ScrollLock"), Ra = r.forwardRef((e, t) => {
|
|
2744
|
+
let { __scopeMenu: n, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ...y } = e, b = Sa(Y, n), x = wa(Y, n), S = ya(n), C = ba(n), w = ha(n), [T, E] = r.useState(null), D = r.useRef(null), O = _(t, D, b.onContentChange), k = r.useRef(0), A = r.useRef(""), j = r.useRef(0), M = r.useRef(null), N = r.useRef("right"), P = r.useRef(0), F = g ? oa : r.Fragment, I = g ? {
|
|
2745
|
+
as: La,
|
|
2746
|
+
allowPinchZoom: !0
|
|
2747
|
+
} : void 0, ee = (e) => {
|
|
2748
|
+
let t = A.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Co(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
2749
|
+
(function e(t) {
|
|
2750
|
+
A.current = t, window.clearTimeout(k.current), t !== "" && (k.current = window.setTimeout(() => e(""), 1e3));
|
|
2751
|
+
})(t), o && setTimeout(() => o.focus());
|
|
2752
|
+
};
|
|
2753
|
+
r.useEffect(() => () => window.clearTimeout(k.current), []), ge();
|
|
2754
|
+
let L = r.useCallback((e) => N.current === M.current?.side && To(e, M.current?.area), []);
|
|
2755
|
+
return /* @__PURE__ */ d(Ma, {
|
|
2756
|
+
scope: n,
|
|
2757
|
+
searchRef: A,
|
|
2758
|
+
onItemEnter: r.useCallback((e) => {
|
|
2759
|
+
L(e) && e.preventDefault();
|
|
2760
|
+
}, [L]),
|
|
2761
|
+
onItemLeave: r.useCallback((e) => {
|
|
2762
|
+
L(e) || (D.current?.focus(), E(null));
|
|
2763
|
+
}, [L]),
|
|
2764
|
+
onTriggerLeave: r.useCallback((e) => {
|
|
2765
|
+
L(e) && e.preventDefault();
|
|
2766
|
+
}, [L]),
|
|
2767
|
+
pointerGraceTimerRef: j,
|
|
2768
|
+
onPointerGraceIntentChange: r.useCallback((e) => {
|
|
2769
|
+
M.current = e;
|
|
2770
|
+
}, []),
|
|
2771
|
+
children: /* @__PURE__ */ d(F, {
|
|
2772
|
+
...I,
|
|
2773
|
+
children: /* @__PURE__ */ d(Se, {
|
|
2774
|
+
asChild: !0,
|
|
2775
|
+
trapped: a,
|
|
2776
|
+
onMountAutoFocus: v(o, (e) => {
|
|
2777
|
+
e.preventDefault(), D.current?.focus({ preventScroll: !0 });
|
|
2778
|
+
}),
|
|
2779
|
+
onUnmountAutoFocus: s,
|
|
2780
|
+
children: /* @__PURE__ */ d(ce, {
|
|
2781
|
+
asChild: !0,
|
|
2782
|
+
disableOutsidePointerEvents: c,
|
|
2783
|
+
onEscapeKeyDown: u,
|
|
2784
|
+
onPointerDownOutside: f,
|
|
2785
|
+
onFocusOutside: p,
|
|
2786
|
+
onInteractOutside: m,
|
|
2787
|
+
onDismiss: h,
|
|
2788
|
+
children: /* @__PURE__ */ d(Ur, {
|
|
2789
|
+
asChild: !0,
|
|
2790
|
+
...C,
|
|
2791
|
+
dir: x.dir,
|
|
2792
|
+
orientation: "vertical",
|
|
2793
|
+
loop: i,
|
|
2794
|
+
currentTabStopId: T,
|
|
2795
|
+
onCurrentTabStopIdChange: E,
|
|
2796
|
+
onEntryFocus: v(l, (e) => {
|
|
2797
|
+
x.isUsingKeyboardRef.current || e.preventDefault();
|
|
2798
|
+
}),
|
|
2799
|
+
preventScrollOnEntryFocus: !0,
|
|
2800
|
+
children: /* @__PURE__ */ d(hr, {
|
|
2801
|
+
role: "menu",
|
|
2802
|
+
"aria-orientation": "vertical",
|
|
2803
|
+
"data-state": vo(b.open),
|
|
2804
|
+
"data-radix-menu-content": "",
|
|
2805
|
+
dir: x.dir,
|
|
2806
|
+
...S,
|
|
2807
|
+
...y,
|
|
2808
|
+
ref: O,
|
|
2809
|
+
style: {
|
|
2810
|
+
outline: "none",
|
|
2811
|
+
...y.style
|
|
2812
|
+
},
|
|
2813
|
+
onKeyDown: v(y.onKeyDown, (e) => {
|
|
2814
|
+
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
2815
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && ee(e.key));
|
|
2816
|
+
let i = D.current;
|
|
2817
|
+
if (e.target !== i || !ua.includes(e.key)) return;
|
|
2818
|
+
e.preventDefault();
|
|
2819
|
+
let a = w().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
2820
|
+
la.includes(e.key) && a.reverse(), xo(a);
|
|
2821
|
+
}),
|
|
2822
|
+
onBlur: v(e.onBlur, (e) => {
|
|
2823
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
|
|
2824
|
+
}),
|
|
2825
|
+
onPointerMove: v(e.onPointerMove, Eo((e) => {
|
|
2826
|
+
let t = e.target, n = P.current !== e.clientX;
|
|
2827
|
+
if (e.currentTarget.contains(t) && n) {
|
|
2828
|
+
let t = e.clientX > P.current ? "right" : "left";
|
|
2829
|
+
N.current = t, P.current = e.clientX;
|
|
2830
|
+
}
|
|
2831
|
+
}))
|
|
2832
|
+
})
|
|
2833
|
+
})
|
|
2834
|
+
})
|
|
2835
|
+
})
|
|
2836
|
+
})
|
|
2837
|
+
});
|
|
2838
|
+
});
|
|
2839
|
+
Pa.displayName = Y;
|
|
2840
|
+
var za = "MenuGroup", Ba = r.forwardRef((e, t) => {
|
|
2841
|
+
let { __scopeMenu: n, ...r } = e;
|
|
2842
|
+
return /* @__PURE__ */ d(N.div, {
|
|
2843
|
+
role: "group",
|
|
2844
|
+
...r,
|
|
2845
|
+
ref: t
|
|
2846
|
+
});
|
|
2847
|
+
});
|
|
2848
|
+
Ba.displayName = za;
|
|
2849
|
+
var Va = "MenuLabel", Ha = r.forwardRef((e, t) => {
|
|
2850
|
+
let { __scopeMenu: n, ...r } = e;
|
|
2851
|
+
return /* @__PURE__ */ d(N.div, {
|
|
2852
|
+
...r,
|
|
2853
|
+
ref: t
|
|
2854
|
+
});
|
|
2855
|
+
});
|
|
2856
|
+
Ha.displayName = Va;
|
|
2857
|
+
var Ua = "MenuItem", Wa = "menu.itemSelect", Ga = r.forwardRef((e, t) => {
|
|
2858
|
+
let { disabled: n = !1, onSelect: i, ...a } = e, o = r.useRef(null), s = wa(Ua, e.__scopeMenu), c = Na(Ua, e.__scopeMenu), l = _(t, o), u = r.useRef(!1), f = () => {
|
|
2859
|
+
let e = o.current;
|
|
2860
|
+
if (!n && e) {
|
|
2861
|
+
let t = new CustomEvent(Wa, {
|
|
2862
|
+
bubbles: !0,
|
|
2863
|
+
cancelable: !0
|
|
2864
|
+
});
|
|
2865
|
+
e.addEventListener(Wa, (e) => i?.(e), { once: !0 }), P(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
2866
|
+
}
|
|
2867
|
+
};
|
|
2868
|
+
return /* @__PURE__ */ d(Ka, {
|
|
2869
|
+
...a,
|
|
2870
|
+
ref: l,
|
|
2871
|
+
disabled: n,
|
|
2872
|
+
onClick: v(e.onClick, f),
|
|
2873
|
+
onPointerDown: (t) => {
|
|
2874
|
+
e.onPointerDown?.(t), u.current = !0;
|
|
2875
|
+
},
|
|
2876
|
+
onPointerUp: v(e.onPointerUp, (e) => {
|
|
2877
|
+
u.current || e.currentTarget?.click();
|
|
2878
|
+
}),
|
|
2879
|
+
onKeyDown: v(e.onKeyDown, (e) => {
|
|
2880
|
+
let t = c.searchRef.current !== "";
|
|
2881
|
+
n || t && e.key === " " || sa.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
2882
|
+
})
|
|
2883
|
+
});
|
|
2884
|
+
});
|
|
2885
|
+
Ga.displayName = Ua;
|
|
2886
|
+
var Ka = r.forwardRef((e, t) => {
|
|
2887
|
+
let { __scopeMenu: n, disabled: i = !1, textValue: a, ...o } = e, s = Na(Ua, n), c = ba(n), l = r.useRef(null), u = _(t, l), [f, p] = r.useState(!1), [m, h] = r.useState("");
|
|
2888
|
+
return r.useEffect(() => {
|
|
2889
|
+
let e = l.current;
|
|
2890
|
+
e && h((e.textContent ?? "").trim());
|
|
2891
|
+
}, [o.children]), /* @__PURE__ */ d(ma.ItemSlot, {
|
|
2892
|
+
scope: n,
|
|
2893
|
+
disabled: i,
|
|
2894
|
+
textValue: a ?? m,
|
|
2895
|
+
children: /* @__PURE__ */ d(Wr, {
|
|
2896
|
+
asChild: !0,
|
|
2897
|
+
...c,
|
|
2898
|
+
focusable: !i,
|
|
2899
|
+
children: /* @__PURE__ */ d(N.div, {
|
|
2900
|
+
role: "menuitem",
|
|
2901
|
+
"data-highlighted": f ? "" : void 0,
|
|
2902
|
+
"aria-disabled": i || void 0,
|
|
2903
|
+
"data-disabled": i ? "" : void 0,
|
|
2904
|
+
...o,
|
|
2905
|
+
ref: u,
|
|
2906
|
+
onPointerMove: v(e.onPointerMove, Eo((e) => {
|
|
2907
|
+
i ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
2908
|
+
})),
|
|
2909
|
+
onPointerLeave: v(e.onPointerLeave, Eo((e) => s.onItemLeave(e))),
|
|
2910
|
+
onFocus: v(e.onFocus, () => p(!0)),
|
|
2911
|
+
onBlur: v(e.onBlur, () => p(!1))
|
|
2912
|
+
})
|
|
2913
|
+
})
|
|
2914
|
+
});
|
|
2915
|
+
}), qa = "MenuCheckboxItem", Ja = r.forwardRef((e, t) => {
|
|
2916
|
+
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
2917
|
+
return /* @__PURE__ */ d(no, {
|
|
2918
|
+
scope: e.__scopeMenu,
|
|
2919
|
+
checked: n,
|
|
2920
|
+
children: /* @__PURE__ */ d(Ga, {
|
|
2921
|
+
role: "menuitemcheckbox",
|
|
2922
|
+
"aria-checked": yo(n) ? "mixed" : n,
|
|
2923
|
+
...i,
|
|
2924
|
+
ref: t,
|
|
2925
|
+
"data-state": bo(n),
|
|
2926
|
+
onSelect: v(i.onSelect, () => r?.(yo(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
2927
|
+
})
|
|
2928
|
+
});
|
|
2929
|
+
});
|
|
2930
|
+
Ja.displayName = qa;
|
|
2931
|
+
var Ya = "MenuRadioGroup", [Xa, Za] = _a(Ya, {
|
|
2932
|
+
value: void 0,
|
|
2933
|
+
onValueChange: () => {}
|
|
2934
|
+
}), Qa = r.forwardRef((e, t) => {
|
|
2935
|
+
let { value: n, onValueChange: r, ...i } = e, a = L(r);
|
|
2936
|
+
return /* @__PURE__ */ d(Xa, {
|
|
2937
|
+
scope: e.__scopeMenu,
|
|
2938
|
+
value: n,
|
|
2939
|
+
onValueChange: a,
|
|
2940
|
+
children: /* @__PURE__ */ d(Ba, {
|
|
2941
|
+
...i,
|
|
2942
|
+
ref: t
|
|
2943
|
+
})
|
|
2944
|
+
});
|
|
2945
|
+
});
|
|
2946
|
+
Qa.displayName = Ya;
|
|
2947
|
+
var $a = "MenuRadioItem", eo = r.forwardRef((e, t) => {
|
|
2948
|
+
let { value: n, ...r } = e, i = Za($a, e.__scopeMenu), a = n === i.value;
|
|
2949
|
+
return /* @__PURE__ */ d(no, {
|
|
2950
|
+
scope: e.__scopeMenu,
|
|
2951
|
+
checked: a,
|
|
2952
|
+
children: /* @__PURE__ */ d(Ga, {
|
|
2953
|
+
role: "menuitemradio",
|
|
2954
|
+
"aria-checked": a,
|
|
2955
|
+
...r,
|
|
2956
|
+
ref: t,
|
|
2957
|
+
"data-state": bo(a),
|
|
2958
|
+
onSelect: v(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
2959
|
+
})
|
|
2960
|
+
});
|
|
2961
|
+
});
|
|
2962
|
+
eo.displayName = $a;
|
|
2963
|
+
var to = "MenuItemIndicator", [no, ro] = _a(to, { checked: !1 }), io = r.forwardRef((e, t) => {
|
|
2964
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = ro(to, n);
|
|
2965
|
+
return /* @__PURE__ */ d(br, {
|
|
2966
|
+
present: r || yo(a.checked) || a.checked === !0,
|
|
2967
|
+
children: /* @__PURE__ */ d(N.span, {
|
|
2968
|
+
...i,
|
|
2969
|
+
ref: t,
|
|
2970
|
+
"data-state": bo(a.checked)
|
|
2971
|
+
})
|
|
2972
|
+
});
|
|
2973
|
+
});
|
|
2974
|
+
io.displayName = to;
|
|
2975
|
+
var ao = "MenuSeparator", oo = r.forwardRef((e, t) => {
|
|
2976
|
+
let { __scopeMenu: n, ...r } = e;
|
|
2977
|
+
return /* @__PURE__ */ d(N.div, {
|
|
2978
|
+
role: "separator",
|
|
2979
|
+
"aria-orientation": "horizontal",
|
|
2980
|
+
...r,
|
|
2981
|
+
ref: t
|
|
2982
|
+
});
|
|
2983
|
+
});
|
|
2984
|
+
oo.displayName = ao;
|
|
2985
|
+
var so = "MenuArrow", co = r.forwardRef((e, t) => {
|
|
2986
|
+
let { __scopeMenu: n, ...r } = e, i = ya(n);
|
|
2987
|
+
return /* @__PURE__ */ d(gr, {
|
|
2988
|
+
...i,
|
|
2989
|
+
...r,
|
|
2990
|
+
ref: t
|
|
2991
|
+
});
|
|
2992
|
+
});
|
|
2993
|
+
co.displayName = so;
|
|
2994
|
+
var lo = "MenuSub", [uo, fo] = _a(lo), po = (e) => {
|
|
2995
|
+
let { __scopeMenu: t, children: n, open: i = !1, onOpenChange: a } = e, o = Sa(lo, t), s = ya(t), [c, l] = r.useState(null), [u, f] = r.useState(null), p = L(a);
|
|
2996
|
+
return r.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ d(pr, {
|
|
2997
|
+
...s,
|
|
2998
|
+
children: /* @__PURE__ */ d(xa, {
|
|
2999
|
+
scope: t,
|
|
3000
|
+
open: i,
|
|
3001
|
+
onOpenChange: p,
|
|
3002
|
+
content: u,
|
|
3003
|
+
onContentChange: f,
|
|
3004
|
+
children: /* @__PURE__ */ d(uo, {
|
|
3005
|
+
scope: t,
|
|
3006
|
+
contentId: Ie(),
|
|
3007
|
+
triggerId: Ie(),
|
|
3008
|
+
trigger: c,
|
|
3009
|
+
onTriggerChange: l,
|
|
3010
|
+
children: n
|
|
3011
|
+
})
|
|
3012
|
+
})
|
|
3013
|
+
});
|
|
3014
|
+
};
|
|
3015
|
+
po.displayName = lo;
|
|
3016
|
+
var mo = "MenuSubTrigger", ho = r.forwardRef((e, t) => {
|
|
3017
|
+
let n = Sa(mo, e.__scopeMenu), i = wa(mo, e.__scopeMenu), a = fo(mo, e.__scopeMenu), o = Na(mo, e.__scopeMenu), s = r.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, u = { __scopeMenu: e.__scopeMenu }, f = r.useCallback(() => {
|
|
3018
|
+
s.current && window.clearTimeout(s.current), s.current = null;
|
|
3019
|
+
}, []);
|
|
3020
|
+
return r.useEffect(() => f, [f]), r.useEffect(() => {
|
|
3021
|
+
let e = c.current;
|
|
3022
|
+
return () => {
|
|
3023
|
+
window.clearTimeout(e), l(null);
|
|
3024
|
+
};
|
|
3025
|
+
}, [c, l]), /* @__PURE__ */ d(Da, {
|
|
3026
|
+
asChild: !0,
|
|
3027
|
+
...u,
|
|
3028
|
+
children: /* @__PURE__ */ d(Ka, {
|
|
3029
|
+
id: a.triggerId,
|
|
3030
|
+
"aria-haspopup": "menu",
|
|
3031
|
+
"aria-expanded": n.open,
|
|
3032
|
+
"aria-controls": a.contentId,
|
|
3033
|
+
"data-state": vo(n.open),
|
|
3034
|
+
...e,
|
|
3035
|
+
ref: g(t, a.onTriggerChange),
|
|
3036
|
+
onClick: (t) => {
|
|
3037
|
+
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
3038
|
+
},
|
|
3039
|
+
onPointerMove: v(e.onPointerMove, Eo((t) => {
|
|
3040
|
+
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
3041
|
+
n.onOpenChange(!0), f();
|
|
3042
|
+
}, 100));
|
|
3043
|
+
})),
|
|
3044
|
+
onPointerLeave: v(e.onPointerLeave, Eo((e) => {
|
|
3045
|
+
f();
|
|
3046
|
+
let t = n.content?.getBoundingClientRect();
|
|
3047
|
+
if (t) {
|
|
3048
|
+
let r = n.content?.dataset.side, i = r === "right", a = i ? -5 : 5, s = t[i ? "left" : "right"], l = t[i ? "right" : "left"];
|
|
3049
|
+
o.onPointerGraceIntentChange({
|
|
3050
|
+
area: [
|
|
3051
|
+
{
|
|
3052
|
+
x: e.clientX + a,
|
|
3053
|
+
y: e.clientY
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
x: s,
|
|
3057
|
+
y: t.top
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
x: l,
|
|
3061
|
+
y: t.top
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
x: l,
|
|
3065
|
+
y: t.bottom
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
x: s,
|
|
3069
|
+
y: t.bottom
|
|
3070
|
+
}
|
|
3071
|
+
],
|
|
3072
|
+
side: r
|
|
3073
|
+
}), window.clearTimeout(c.current), c.current = window.setTimeout(() => o.onPointerGraceIntentChange(null), 300);
|
|
3074
|
+
} else {
|
|
3075
|
+
if (o.onTriggerLeave(e), e.defaultPrevented) return;
|
|
3076
|
+
o.onPointerGraceIntentChange(null);
|
|
3077
|
+
}
|
|
3078
|
+
})),
|
|
3079
|
+
onKeyDown: v(e.onKeyDown, (t) => {
|
|
3080
|
+
let r = o.searchRef.current !== "";
|
|
3081
|
+
e.disabled || r && t.key === " " || da[i.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
3082
|
+
})
|
|
3083
|
+
})
|
|
3084
|
+
});
|
|
3085
|
+
});
|
|
3086
|
+
ho.displayName = mo;
|
|
3087
|
+
var go = "MenuSubContent", _o = r.forwardRef((e, t) => {
|
|
3088
|
+
let n = Aa(Y, e.__scopeMenu), { forceMount: i = n.forceMount, ...a } = e, o = Sa(Y, e.__scopeMenu), s = wa(Y, e.__scopeMenu), c = fo(go, e.__scopeMenu), l = r.useRef(null), u = _(t, l);
|
|
3089
|
+
return /* @__PURE__ */ d(ma.Provider, {
|
|
3090
|
+
scope: e.__scopeMenu,
|
|
3091
|
+
children: /* @__PURE__ */ d(br, {
|
|
3092
|
+
present: i || o.open,
|
|
3093
|
+
children: /* @__PURE__ */ d(ma.Slot, {
|
|
3094
|
+
scope: e.__scopeMenu,
|
|
3095
|
+
children: /* @__PURE__ */ d(Ra, {
|
|
3096
|
+
id: c.contentId,
|
|
3097
|
+
"aria-labelledby": c.triggerId,
|
|
3098
|
+
...a,
|
|
3099
|
+
ref: u,
|
|
3100
|
+
align: "start",
|
|
3101
|
+
side: s.dir === "rtl" ? "left" : "right",
|
|
3102
|
+
disableOutsidePointerEvents: !1,
|
|
3103
|
+
disableOutsideScroll: !1,
|
|
3104
|
+
trapFocus: !1,
|
|
3105
|
+
onOpenAutoFocus: (e) => {
|
|
3106
|
+
s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
|
|
3107
|
+
},
|
|
3108
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3109
|
+
onFocusOutside: v(e.onFocusOutside, (e) => {
|
|
3110
|
+
e.target !== c.trigger && o.onOpenChange(!1);
|
|
3111
|
+
}),
|
|
3112
|
+
onEscapeKeyDown: v(e.onEscapeKeyDown, (e) => {
|
|
3113
|
+
s.onClose(), e.preventDefault();
|
|
3114
|
+
}),
|
|
3115
|
+
onKeyDown: v(e.onKeyDown, (e) => {
|
|
3116
|
+
let t = e.currentTarget.contains(e.target), n = fa[s.dir].includes(e.key);
|
|
3117
|
+
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
3118
|
+
})
|
|
3119
|
+
})
|
|
3120
|
+
})
|
|
3121
|
+
})
|
|
3122
|
+
});
|
|
3123
|
+
});
|
|
3124
|
+
_o.displayName = go;
|
|
3125
|
+
function vo(e) {
|
|
3126
|
+
return e ? "open" : "closed";
|
|
3127
|
+
}
|
|
3128
|
+
function yo(e) {
|
|
3129
|
+
return e === "indeterminate";
|
|
3130
|
+
}
|
|
3131
|
+
function bo(e) {
|
|
3132
|
+
return yo(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
3133
|
+
}
|
|
3134
|
+
function xo(e) {
|
|
3135
|
+
let t = document.activeElement;
|
|
3136
|
+
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
3137
|
+
}
|
|
3138
|
+
function So(e, t) {
|
|
3139
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3140
|
+
}
|
|
3141
|
+
function Co(e, t, n) {
|
|
3142
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = So(e, Math.max(i, 0));
|
|
3143
|
+
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
3144
|
+
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
3145
|
+
return o === n ? void 0 : o;
|
|
3146
|
+
}
|
|
3147
|
+
function wo(e, t) {
|
|
3148
|
+
let { x: n, y: r } = e, i = !1;
|
|
3149
|
+
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
3150
|
+
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
3151
|
+
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
|
|
3152
|
+
}
|
|
3153
|
+
return i;
|
|
3154
|
+
}
|
|
3155
|
+
function To(e, t) {
|
|
3156
|
+
return t ? wo({
|
|
3157
|
+
x: e.clientX,
|
|
3158
|
+
y: e.clientY
|
|
3159
|
+
}, t) : !1;
|
|
3160
|
+
}
|
|
3161
|
+
function Eo(e) {
|
|
3162
|
+
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
3163
|
+
}
|
|
3164
|
+
var Do = Ta, Oo = Da, ko = ja, Ao = Pa, jo = Ba, Mo = Ha, No = Ga, Po = Ja, Fo = Qa, Io = eo, Lo = io, Ro = oo, zo = co, Bo = po, Vo = ho, Ho = _o, Uo = "DropdownMenu", [Wo, Go] = y(Uo, [va]), X = va(), [Ko, qo] = Wo(Uo), Jo = (e) => {
|
|
3165
|
+
let { __scopeDropdownMenu: t, children: n, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = X(t), u = r.useRef(null), [f, p] = C({
|
|
3166
|
+
prop: a,
|
|
3167
|
+
defaultProp: o ?? !1,
|
|
3168
|
+
onChange: s,
|
|
3169
|
+
caller: Uo
|
|
3170
|
+
});
|
|
3171
|
+
return /* @__PURE__ */ d(Ko, {
|
|
3172
|
+
scope: t,
|
|
3173
|
+
triggerId: Ie(),
|
|
3174
|
+
triggerRef: u,
|
|
3175
|
+
contentId: Ie(),
|
|
3176
|
+
open: f,
|
|
3177
|
+
onOpenChange: p,
|
|
3178
|
+
onOpenToggle: r.useCallback(() => p((e) => !e), [p]),
|
|
3179
|
+
modal: c,
|
|
3180
|
+
children: /* @__PURE__ */ d(Do, {
|
|
3181
|
+
...l,
|
|
3182
|
+
open: f,
|
|
3183
|
+
onOpenChange: p,
|
|
3184
|
+
dir: i,
|
|
3185
|
+
modal: c,
|
|
3186
|
+
children: n
|
|
3187
|
+
})
|
|
3188
|
+
});
|
|
3189
|
+
};
|
|
3190
|
+
Jo.displayName = Uo;
|
|
3191
|
+
var Yo = "DropdownMenuTrigger", Xo = r.forwardRef((e, t) => {
|
|
3192
|
+
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a = qo(Yo, n), o = X(n);
|
|
3193
|
+
return /* @__PURE__ */ d(Oo, {
|
|
3194
|
+
asChild: !0,
|
|
3195
|
+
...o,
|
|
3196
|
+
children: /* @__PURE__ */ d(N.button, {
|
|
3197
|
+
type: "button",
|
|
3198
|
+
id: a.triggerId,
|
|
3199
|
+
"aria-haspopup": "menu",
|
|
3200
|
+
"aria-expanded": a.open,
|
|
3201
|
+
"aria-controls": a.open ? a.contentId : void 0,
|
|
3202
|
+
"data-state": a.open ? "open" : "closed",
|
|
3203
|
+
"data-disabled": r ? "" : void 0,
|
|
3204
|
+
disabled: r,
|
|
3205
|
+
...i,
|
|
3206
|
+
ref: g(t, a.triggerRef),
|
|
3207
|
+
onPointerDown: v(e.onPointerDown, (e) => {
|
|
3208
|
+
!r && e.button === 0 && e.ctrlKey === !1 && (a.onOpenToggle(), a.open || e.preventDefault());
|
|
3209
|
+
}),
|
|
3210
|
+
onKeyDown: v(e.onKeyDown, (e) => {
|
|
3211
|
+
r || (["Enter", " "].includes(e.key) && a.onOpenToggle(), e.key === "ArrowDown" && a.onOpenChange(!0), [
|
|
3212
|
+
"Enter",
|
|
3213
|
+
" ",
|
|
3214
|
+
"ArrowDown"
|
|
3215
|
+
].includes(e.key) && e.preventDefault());
|
|
3216
|
+
})
|
|
3217
|
+
})
|
|
3218
|
+
});
|
|
3219
|
+
});
|
|
3220
|
+
Xo.displayName = Yo;
|
|
3221
|
+
var Zo = "DropdownMenuPortal", Qo = (e) => {
|
|
3222
|
+
let { __scopeDropdownMenu: t, ...n } = e, r = X(t);
|
|
3223
|
+
return /* @__PURE__ */ d(ko, {
|
|
3224
|
+
...r,
|
|
3225
|
+
...n
|
|
3226
|
+
});
|
|
3227
|
+
};
|
|
3228
|
+
Qo.displayName = Zo;
|
|
3229
|
+
var $o = "DropdownMenuContent", es = r.forwardRef((e, t) => {
|
|
3230
|
+
let { __scopeDropdownMenu: n, ...i } = e, a = qo($o, n), o = X(n), s = r.useRef(!1);
|
|
3231
|
+
return /* @__PURE__ */ d(Ao, {
|
|
3232
|
+
id: a.contentId,
|
|
3233
|
+
"aria-labelledby": a.triggerId,
|
|
3234
|
+
...o,
|
|
3235
|
+
...i,
|
|
3236
|
+
ref: t,
|
|
3237
|
+
onCloseAutoFocus: v(e.onCloseAutoFocus, (e) => {
|
|
3238
|
+
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
3239
|
+
}),
|
|
3240
|
+
onInteractOutside: v(e.onInteractOutside, (e) => {
|
|
3241
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
3242
|
+
(!a.modal || r) && (s.current = !0);
|
|
3243
|
+
}),
|
|
3244
|
+
style: {
|
|
3245
|
+
...e.style,
|
|
3246
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
3247
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
3248
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
3249
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
3250
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
3251
|
+
}
|
|
3252
|
+
});
|
|
3253
|
+
});
|
|
3254
|
+
es.displayName = $o;
|
|
3255
|
+
var ts = "DropdownMenuGroup", ns = r.forwardRef((e, t) => {
|
|
3256
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3257
|
+
return /* @__PURE__ */ d(jo, {
|
|
3258
|
+
...i,
|
|
3259
|
+
...r,
|
|
3260
|
+
ref: t
|
|
3261
|
+
});
|
|
3262
|
+
});
|
|
3263
|
+
ns.displayName = ts;
|
|
3264
|
+
var rs = "DropdownMenuLabel", is = r.forwardRef((e, t) => {
|
|
3265
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3266
|
+
return /* @__PURE__ */ d(Mo, {
|
|
3267
|
+
...i,
|
|
3268
|
+
...r,
|
|
3269
|
+
ref: t
|
|
3270
|
+
});
|
|
3271
|
+
});
|
|
3272
|
+
is.displayName = rs;
|
|
3273
|
+
var as = "DropdownMenuItem", os = r.forwardRef((e, t) => {
|
|
3274
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3275
|
+
return /* @__PURE__ */ d(No, {
|
|
3276
|
+
...i,
|
|
3277
|
+
...r,
|
|
3278
|
+
ref: t
|
|
3279
|
+
});
|
|
3280
|
+
});
|
|
3281
|
+
os.displayName = as;
|
|
3282
|
+
var ss = "DropdownMenuCheckboxItem", cs = r.forwardRef((e, t) => {
|
|
3283
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3284
|
+
return /* @__PURE__ */ d(Po, {
|
|
3285
|
+
...i,
|
|
3286
|
+
...r,
|
|
3287
|
+
ref: t
|
|
3288
|
+
});
|
|
3289
|
+
});
|
|
3290
|
+
cs.displayName = ss;
|
|
3291
|
+
var ls = "DropdownMenuRadioGroup", us = r.forwardRef((e, t) => {
|
|
3292
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3293
|
+
return /* @__PURE__ */ d(Fo, {
|
|
3294
|
+
...i,
|
|
3295
|
+
...r,
|
|
3296
|
+
ref: t
|
|
3297
|
+
});
|
|
3298
|
+
});
|
|
3299
|
+
us.displayName = ls;
|
|
3300
|
+
var ds = "DropdownMenuRadioItem", fs = r.forwardRef((e, t) => {
|
|
3301
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3302
|
+
return /* @__PURE__ */ d(Io, {
|
|
3303
|
+
...i,
|
|
3304
|
+
...r,
|
|
3305
|
+
ref: t
|
|
3306
|
+
});
|
|
3307
|
+
});
|
|
3308
|
+
fs.displayName = ds;
|
|
3309
|
+
var ps = "DropdownMenuItemIndicator", ms = r.forwardRef((e, t) => {
|
|
3310
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3311
|
+
return /* @__PURE__ */ d(Lo, {
|
|
3312
|
+
...i,
|
|
3313
|
+
...r,
|
|
3314
|
+
ref: t
|
|
3315
|
+
});
|
|
3316
|
+
});
|
|
3317
|
+
ms.displayName = ps;
|
|
3318
|
+
var hs = "DropdownMenuSeparator", gs = r.forwardRef((e, t) => {
|
|
3319
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3320
|
+
return /* @__PURE__ */ d(Ro, {
|
|
3321
|
+
...i,
|
|
3322
|
+
...r,
|
|
3323
|
+
ref: t
|
|
3324
|
+
});
|
|
3325
|
+
});
|
|
3326
|
+
gs.displayName = hs;
|
|
3327
|
+
var _s = "DropdownMenuArrow", vs = r.forwardRef((e, t) => {
|
|
3328
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3329
|
+
return /* @__PURE__ */ d(zo, {
|
|
3330
|
+
...i,
|
|
3331
|
+
...r,
|
|
3332
|
+
ref: t
|
|
3333
|
+
});
|
|
3334
|
+
});
|
|
3335
|
+
vs.displayName = _s;
|
|
3336
|
+
var ys = (e) => {
|
|
3337
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = X(t), [s, c] = C({
|
|
3338
|
+
prop: r,
|
|
3339
|
+
defaultProp: a ?? !1,
|
|
3340
|
+
onChange: i,
|
|
3341
|
+
caller: "DropdownMenuSub"
|
|
3342
|
+
});
|
|
3343
|
+
return /* @__PURE__ */ d(Bo, {
|
|
3344
|
+
...o,
|
|
3345
|
+
open: s,
|
|
3346
|
+
onOpenChange: c,
|
|
3347
|
+
children: n
|
|
3348
|
+
});
|
|
3349
|
+
}, bs = "DropdownMenuSubTrigger", xs = r.forwardRef((e, t) => {
|
|
3350
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3351
|
+
return /* @__PURE__ */ d(Vo, {
|
|
3352
|
+
...i,
|
|
3353
|
+
...r,
|
|
3354
|
+
ref: t
|
|
3355
|
+
});
|
|
3356
|
+
});
|
|
3357
|
+
xs.displayName = bs;
|
|
3358
|
+
var Ss = "DropdownMenuSubContent", Cs = r.forwardRef((e, t) => {
|
|
3359
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = X(n);
|
|
3360
|
+
return /* @__PURE__ */ d(Ho, {
|
|
3361
|
+
...i,
|
|
3362
|
+
...r,
|
|
3363
|
+
ref: t,
|
|
3364
|
+
style: {
|
|
3365
|
+
...e.style,
|
|
3366
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
3367
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
3368
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
3369
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
3370
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
3371
|
+
}
|
|
3372
|
+
});
|
|
3373
|
+
});
|
|
3374
|
+
Cs.displayName = Ss;
|
|
3375
|
+
var ws = Jo, Ts = Xo, Es = Qo, Ds = es, Os = ns, ks = is, As = os, js = cs, Ms = us, Ns = fs, Ps = ms, Fs = gs, Is = ys, Ls = xs, Rs = Cs, zs = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bs = (...e) => e.filter((e, t, n) => !!e && n.indexOf(e) === t).join(" "), Vs = {
|
|
3376
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3377
|
+
width: 24,
|
|
3378
|
+
height: 24,
|
|
3379
|
+
viewBox: "0 0 24 24",
|
|
3380
|
+
fill: "none",
|
|
3381
|
+
stroke: "currentColor",
|
|
3382
|
+
strokeWidth: 2,
|
|
3383
|
+
strokeLinecap: "round",
|
|
3384
|
+
strokeLinejoin: "round"
|
|
3385
|
+
}, Hs = o(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: o, iconNode: s, ...c }, l) => a("svg", {
|
|
3386
|
+
ref: l,
|
|
3387
|
+
...Vs,
|
|
3388
|
+
width: t,
|
|
3389
|
+
height: t,
|
|
3390
|
+
stroke: e,
|
|
3391
|
+
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3392
|
+
className: Bs("lucide", i),
|
|
3393
|
+
...c
|
|
3394
|
+
}, [...s.map(([e, t]) => a(e, t)), ...Array.isArray(o) ? o : [o]])), Us = (e, t) => {
|
|
3395
|
+
let n = o(({ className: n, ...r }, i) => a(Hs, {
|
|
3396
|
+
ref: i,
|
|
3397
|
+
iconNode: t,
|
|
3398
|
+
className: Bs(`lucide-${zs(e)}`, n),
|
|
3399
|
+
...r
|
|
3400
|
+
}));
|
|
3401
|
+
return n.displayName = `${e}`, n;
|
|
3402
|
+
}, Ws = Us("Check", [["path", {
|
|
3403
|
+
d: "M20 6 9 17l-5-5",
|
|
3404
|
+
key: "1gmf2c"
|
|
3405
|
+
}]]), Gs = Us("ChevronRight", [["path", {
|
|
3406
|
+
d: "m9 18 6-6-6-6",
|
|
3407
|
+
key: "mthhwq"
|
|
3408
|
+
}]]), Ks = Us("Circle", [["circle", {
|
|
3409
|
+
cx: "12",
|
|
3410
|
+
cy: "12",
|
|
3411
|
+
r: "10",
|
|
3412
|
+
key: "1mglay"
|
|
3413
|
+
}]]), qs = ws, Js = Ts, Ys = Os, Xs = Es, Zs = Is, Qs = Ms, $s = r.forwardRef(({ className: t, inset: r, children: i, ...a }, o) => /* @__PURE__ */ f(Ls, {
|
|
3414
|
+
ref: o,
|
|
3415
|
+
className: e("flex cursor-default select-none items-center rounded-2xs px-2 py-1.5 text-sm outline-none focus:bg-f1-background-secondary data-[state=open]:bg-f1-background-secondary", r && "pl-8", t),
|
|
3416
|
+
...a,
|
|
3417
|
+
children: [i, /* @__PURE__ */ d(n, {
|
|
3418
|
+
icon: Gs,
|
|
3419
|
+
size: "md",
|
|
3420
|
+
className: "ml-auto"
|
|
3421
|
+
})]
|
|
3422
|
+
}));
|
|
3423
|
+
$s.displayName = Ls.displayName;
|
|
3424
|
+
var ec = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ d(Rs, {
|
|
3425
|
+
ref: r,
|
|
3426
|
+
className: e("z-50 min-w-[--radix-popper-anchor-width] overflow-hidden rounded-md border bg-f1-background text-f1-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", t),
|
|
3427
|
+
...n
|
|
3428
|
+
}));
|
|
3429
|
+
ec.displayName = Rs.displayName;
|
|
3430
|
+
var tc = r.forwardRef(({ className: n, sideOffset: r = 4, container: i, ...a }, o) => {
|
|
3431
|
+
let s = t();
|
|
3432
|
+
return /* @__PURE__ */ d(Es, {
|
|
3433
|
+
container: i ?? s ?? void 0,
|
|
3434
|
+
children: /* @__PURE__ */ d(Ds, {
|
|
3435
|
+
ref: o,
|
|
3436
|
+
sideOffset: r,
|
|
3437
|
+
className: e("z-50 min-w-[--radix-popper-anchor-width] overflow-hidden rounded-md border border-solid border-f1-border-secondary bg-f1-background text-f1-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", "origin-[var(--radix-dropdown-menu-content-transform-origin)]", n),
|
|
3438
|
+
...a
|
|
3439
|
+
})
|
|
3440
|
+
});
|
|
3441
|
+
});
|
|
3442
|
+
tc.displayName = Ds.displayName;
|
|
3443
|
+
var nc = e("relative flex cursor-default select-none items-center rounded py-2 pl-3 pr-5 text-base font-medium outline-none transition-colors after:absolute after:inset-x-1 after:inset-y-0 after:h-full after:rounded after:bg-f1-background-hover after:opacity-0 after:transition-opacity after:duration-75 after:content-[''] first:pt-3 first:after:top-1 first:after:h-[calc(100%-0.25rem)] last:pb-3 last:after:bottom-1 last:after:h-[calc(100%-0.25rem)] hover:after:opacity-100 focus:after:opacity-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "only:after:inset-y-1 only:after:h-auto", "focus:outline-none focus:ring-0 focus:ring-transparent"), rc = r.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ d(As, {
|
|
3444
|
+
onClick: (e) => {
|
|
3445
|
+
e.stopPropagation();
|
|
3446
|
+
},
|
|
3447
|
+
ref: i,
|
|
3448
|
+
className: e(nc, n && "pl-8", t),
|
|
3449
|
+
...r
|
|
3450
|
+
}));
|
|
3451
|
+
rc.displayName = As.displayName;
|
|
3452
|
+
var ic = r.forwardRef(({ className: t, children: n, checked: r, ...i }, a) => /* @__PURE__ */ f(js, {
|
|
3453
|
+
ref: a,
|
|
3454
|
+
className: e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-f1-background-secondary focus:text-f1-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
3455
|
+
checked: r,
|
|
3456
|
+
...i,
|
|
3457
|
+
children: [/* @__PURE__ */ d("span", {
|
|
3458
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3459
|
+
children: /* @__PURE__ */ d(Ps, { children: /* @__PURE__ */ d(Ws, { className: "h-4 w-4" }) })
|
|
3460
|
+
}), n]
|
|
3461
|
+
}));
|
|
3462
|
+
ic.displayName = js.displayName;
|
|
3463
|
+
var ac = r.forwardRef(({ className: t, children: n, checked: r, onSelect: i, ...a }, o) => /* @__PURE__ */ d(js, {
|
|
3464
|
+
ref: o,
|
|
3465
|
+
className: e(nc, t),
|
|
3466
|
+
checked: r,
|
|
3467
|
+
onSelect: (e) => {
|
|
3468
|
+
e.preventDefault(), i?.(e);
|
|
3469
|
+
},
|
|
3470
|
+
...a,
|
|
3471
|
+
children: n
|
|
3472
|
+
}));
|
|
3473
|
+
ac.displayName = "DropdownMenuToggleItem";
|
|
3474
|
+
var oc = r.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ f(Ns, {
|
|
3475
|
+
ref: i,
|
|
3476
|
+
className: e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-f1-background-secondary focus:text-f1-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
3477
|
+
...r,
|
|
3478
|
+
children: [/* @__PURE__ */ d("span", {
|
|
3479
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3480
|
+
children: /* @__PURE__ */ d(Ps, { children: /* @__PURE__ */ d(Ks, { className: "h-2 w-2 fill-current" }) })
|
|
3481
|
+
}), n]
|
|
3482
|
+
}));
|
|
3483
|
+
oc.displayName = Ns.displayName;
|
|
3484
|
+
var sc = r.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ d(ks, {
|
|
3485
|
+
ref: i,
|
|
3486
|
+
className: e("px-2 py-1.5 text-sm font-semibold", n && "pl-8", t),
|
|
3487
|
+
...r
|
|
3488
|
+
}));
|
|
3489
|
+
sc.displayName = ks.displayName;
|
|
3490
|
+
var cc = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ d(Fs, {
|
|
3491
|
+
ref: r,
|
|
3492
|
+
className: e("-mx-1 my-1 h-px bg-f1-border-secondary", t),
|
|
3493
|
+
...n
|
|
3494
|
+
}));
|
|
3495
|
+
cc.displayName = Fs.displayName;
|
|
3496
|
+
//#endregion
|
|
3497
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
3498
|
+
function lc(e, t) {
|
|
3499
|
+
let n = r.createContext(t), i = (e) => {
|
|
3500
|
+
let { children: t, ...i } = e, a = r.useMemo(() => i, Object.values(i));
|
|
3501
|
+
return /* @__PURE__ */ d(n.Provider, {
|
|
3502
|
+
value: a,
|
|
3503
|
+
children: t
|
|
3504
|
+
});
|
|
3505
|
+
};
|
|
3506
|
+
i.displayName = e + "Provider";
|
|
3507
|
+
function a(i) {
|
|
3508
|
+
let a = r.useContext(n);
|
|
3509
|
+
if (a) return a;
|
|
3510
|
+
if (t !== void 0) return t;
|
|
3511
|
+
throw Error(`\`${i}\` must be used within \`${e}\``);
|
|
3512
|
+
}
|
|
3513
|
+
return [i, a];
|
|
3514
|
+
}
|
|
3515
|
+
function uc(e, t = []) {
|
|
3516
|
+
let n = [];
|
|
3517
|
+
function i(t, i) {
|
|
3518
|
+
let a = r.createContext(i), o = n.length;
|
|
3519
|
+
n = [...n, i];
|
|
3520
|
+
let s = (t) => {
|
|
3521
|
+
let { scope: n, children: i, ...s } = t, c = n?.[e]?.[o] || a, l = r.useMemo(() => s, Object.values(s));
|
|
3522
|
+
return /* @__PURE__ */ d(c.Provider, {
|
|
3523
|
+
value: l,
|
|
3524
|
+
children: i
|
|
3525
|
+
});
|
|
3526
|
+
};
|
|
3527
|
+
s.displayName = t + "Provider";
|
|
3528
|
+
function c(n, s) {
|
|
3529
|
+
let c = s?.[e]?.[o] || a, l = r.useContext(c);
|
|
3530
|
+
if (l) return l;
|
|
3531
|
+
if (i !== void 0) return i;
|
|
3532
|
+
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
3533
|
+
}
|
|
3534
|
+
return [s, c];
|
|
3535
|
+
}
|
|
3536
|
+
let a = () => {
|
|
3537
|
+
let t = n.map((e) => r.createContext(e));
|
|
3538
|
+
return function(n) {
|
|
3539
|
+
let i = n?.[e] || t;
|
|
3540
|
+
return r.useMemo(() => ({ [`__scope${e}`]: {
|
|
3541
|
+
...n,
|
|
3542
|
+
[e]: i
|
|
3543
|
+
} }), [n, i]);
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3546
|
+
return a.scopeName = e, [i, dc(a, ...t)];
|
|
3547
|
+
}
|
|
3548
|
+
function dc(...e) {
|
|
3549
|
+
let t = e[0];
|
|
3550
|
+
if (e.length === 1) return t;
|
|
3551
|
+
let n = () => {
|
|
3552
|
+
let n = e.map((e) => ({
|
|
3553
|
+
useScope: e(),
|
|
3554
|
+
scopeName: e.scopeName
|
|
3555
|
+
}));
|
|
3556
|
+
return function(e) {
|
|
3557
|
+
let i = n.reduce((t, { useScope: n, scopeName: r }) => {
|
|
3558
|
+
let i = n(e)[`__scope${r}`];
|
|
3559
|
+
return {
|
|
3560
|
+
...t,
|
|
3561
|
+
...i
|
|
3562
|
+
};
|
|
3563
|
+
}, {});
|
|
3564
|
+
return r.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
3565
|
+
};
|
|
3566
|
+
};
|
|
3567
|
+
return n.scopeName = t.scopeName, n;
|
|
3568
|
+
}
|
|
3569
|
+
//#endregion
|
|
3570
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3571
|
+
function Z(e) {
|
|
3572
|
+
let t = r.useRef(e);
|
|
3573
|
+
return r.useEffect(() => {
|
|
3574
|
+
t.current = e;
|
|
3575
|
+
}), r.useMemo(() => (...e) => t.current?.(...e), []);
|
|
3576
|
+
}
|
|
3577
|
+
//#endregion
|
|
3578
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3579
|
+
var fc = globalThis?.document ? r.useLayoutEffect : () => {};
|
|
3580
|
+
//#endregion
|
|
3581
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3582
|
+
function pc(e, t) {
|
|
3583
|
+
if (typeof e == "function") return e(t);
|
|
3584
|
+
e != null && (e.current = t);
|
|
3585
|
+
}
|
|
3586
|
+
function mc(...e) {
|
|
3587
|
+
return (t) => {
|
|
3588
|
+
let n = !1, r = e.map((e) => {
|
|
3589
|
+
let r = pc(e, t);
|
|
3590
|
+
return !n && typeof r == "function" && (n = !0), r;
|
|
3591
|
+
});
|
|
3592
|
+
if (n) return () => {
|
|
3593
|
+
for (let t = 0; t < r.length; t++) {
|
|
3594
|
+
let n = r[t];
|
|
3595
|
+
typeof n == "function" ? n() : pc(e[t], null);
|
|
3596
|
+
}
|
|
3597
|
+
};
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
function Q(...e) {
|
|
3601
|
+
return r.useCallback(mc(...e), e);
|
|
3602
|
+
}
|
|
3603
|
+
//#endregion
|
|
3604
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3605
|
+
var hc = r.forwardRef((e, t) => {
|
|
3606
|
+
let { children: n, ...i } = e, a = r.Children.toArray(n), o = a.find(vc);
|
|
3607
|
+
if (o) {
|
|
3608
|
+
let e = o.props.children, n = a.map((t) => t === o ? r.Children.count(e) > 1 ? r.Children.only(null) : r.isValidElement(e) ? e.props.children : null : t);
|
|
3609
|
+
return /* @__PURE__ */ d(gc, {
|
|
3610
|
+
...i,
|
|
3611
|
+
ref: t,
|
|
3612
|
+
children: r.isValidElement(e) ? r.cloneElement(e, void 0, n) : null
|
|
3613
|
+
});
|
|
3614
|
+
}
|
|
3615
|
+
return /* @__PURE__ */ d(gc, {
|
|
3616
|
+
...i,
|
|
3617
|
+
ref: t,
|
|
3618
|
+
children: n
|
|
3619
|
+
});
|
|
3620
|
+
});
|
|
3621
|
+
hc.displayName = "Slot";
|
|
3622
|
+
var gc = r.forwardRef((e, t) => {
|
|
3623
|
+
let { children: n, ...i } = e;
|
|
3624
|
+
if (r.isValidElement(n)) {
|
|
3625
|
+
let e = bc(n);
|
|
3626
|
+
return r.cloneElement(n, {
|
|
3627
|
+
...yc(i, n.props),
|
|
3628
|
+
ref: t ? mc(t, e) : e
|
|
3629
|
+
});
|
|
3630
|
+
}
|
|
3631
|
+
return r.Children.count(n) > 1 ? r.Children.only(null) : null;
|
|
3632
|
+
});
|
|
3633
|
+
gc.displayName = "SlotClone";
|
|
3634
|
+
var _c = ({ children: e }) => /* @__PURE__ */ d(u, { children: e });
|
|
3635
|
+
function vc(e) {
|
|
3636
|
+
return r.isValidElement(e) && e.type === _c;
|
|
3637
|
+
}
|
|
3638
|
+
function yc(e, t) {
|
|
3639
|
+
let n = { ...t };
|
|
3640
|
+
for (let r in t) {
|
|
3641
|
+
let i = e[r], a = t[r];
|
|
3642
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
3643
|
+
a(...e), i(...e);
|
|
3644
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
3645
|
+
...i,
|
|
3646
|
+
...a
|
|
3647
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
3648
|
+
}
|
|
3649
|
+
return {
|
|
3650
|
+
...e,
|
|
3651
|
+
...n
|
|
3652
|
+
};
|
|
3653
|
+
}
|
|
3654
|
+
function bc(e) {
|
|
3655
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3656
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3657
|
+
}
|
|
3658
|
+
//#endregion
|
|
3659
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.0.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
3660
|
+
var $ = [
|
|
3661
|
+
"a",
|
|
3662
|
+
"button",
|
|
3663
|
+
"div",
|
|
3664
|
+
"form",
|
|
3665
|
+
"h2",
|
|
3666
|
+
"h3",
|
|
3667
|
+
"img",
|
|
3668
|
+
"input",
|
|
3669
|
+
"label",
|
|
3670
|
+
"li",
|
|
3671
|
+
"nav",
|
|
3672
|
+
"ol",
|
|
3673
|
+
"p",
|
|
3674
|
+
"span",
|
|
3675
|
+
"svg",
|
|
3676
|
+
"ul"
|
|
3677
|
+
].reduce((e, t) => {
|
|
3678
|
+
let n = r.forwardRef((e, n) => {
|
|
3679
|
+
let { asChild: r, ...i } = e, a = r ? hc : t;
|
|
3680
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(a, {
|
|
3681
|
+
...i,
|
|
3682
|
+
ref: n
|
|
3683
|
+
});
|
|
3684
|
+
});
|
|
3685
|
+
return n.displayName = `Primitive.${t}`, {
|
|
3686
|
+
...e,
|
|
3687
|
+
[t]: n
|
|
3688
|
+
};
|
|
3689
|
+
}, {});
|
|
3690
|
+
function xc(e, t) {
|
|
3691
|
+
e && m.flushSync(() => e.dispatchEvent(t));
|
|
3692
|
+
}
|
|
3693
|
+
//#endregion
|
|
3694
|
+
//#region ../../node_modules/.pnpm/@radix-ui+primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
3695
|
+
function Sc(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3696
|
+
return function(r) {
|
|
3697
|
+
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
3698
|
+
};
|
|
3699
|
+
}
|
|
3700
|
+
//#endregion
|
|
3701
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
3702
|
+
var Cc = r.useId || (() => void 0), wc = 0;
|
|
3703
|
+
function Tc(e) {
|
|
3704
|
+
let [t, n] = r.useState(Cc());
|
|
3705
|
+
return fc(() => {
|
|
3706
|
+
e || n((e) => e ?? String(wc++));
|
|
3707
|
+
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3708
|
+
}
|
|
3709
|
+
//#endregion
|
|
3710
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
3711
|
+
function Ec({ prop: e, defaultProp: t, onChange: n = () => {} }) {
|
|
3712
|
+
let [i, a] = Dc({
|
|
3713
|
+
defaultProp: t,
|
|
3714
|
+
onChange: n
|
|
3715
|
+
}), o = e !== void 0, s = o ? e : i, c = Z(n);
|
|
3716
|
+
return [s, r.useCallback((t) => {
|
|
3717
|
+
if (o) {
|
|
3718
|
+
let n = typeof t == "function" ? t(e) : t;
|
|
3719
|
+
n !== e && c(n);
|
|
3720
|
+
} else a(t);
|
|
3721
|
+
}, [
|
|
3722
|
+
o,
|
|
3723
|
+
e,
|
|
3724
|
+
a,
|
|
3725
|
+
c
|
|
3726
|
+
])];
|
|
3727
|
+
}
|
|
3728
|
+
function Dc({ defaultProp: e, onChange: t }) {
|
|
3729
|
+
let n = r.useState(e), [i] = n, a = r.useRef(i), o = Z(t);
|
|
3730
|
+
return r.useEffect(() => {
|
|
3731
|
+
a.current !== i && (o(i), a.current = i);
|
|
3732
|
+
}, [
|
|
3733
|
+
i,
|
|
3734
|
+
a,
|
|
3735
|
+
o
|
|
3736
|
+
]), n;
|
|
3737
|
+
}
|
|
3738
|
+
//#endregion
|
|
3739
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
3740
|
+
function Oc(e, t = globalThis?.document) {
|
|
3741
|
+
let n = Z(e);
|
|
3742
|
+
r.useEffect(() => {
|
|
3743
|
+
let e = (e) => {
|
|
3744
|
+
e.key === "Escape" && n(e);
|
|
3745
|
+
};
|
|
3746
|
+
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
3747
|
+
}, [n, t]);
|
|
3748
|
+
}
|
|
3749
|
+
//#endregion
|
|
3750
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.4_@types+react-dom@18.3.1_@types+react@18.3.18_re_6829a286676bb181dfd20166d597ec2d/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
3751
|
+
var kc = "DismissableLayer", Ac = "dismissableLayer.update", jc = "dismissableLayer.pointerDownOutside", Mc = "dismissableLayer.focusOutside", Nc, Pc = r.createContext({
|
|
3752
|
+
layers: /* @__PURE__ */ new Set(),
|
|
3753
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3754
|
+
branches: /* @__PURE__ */ new Set()
|
|
3755
|
+
}), Fc = r.forwardRef((e, t) => {
|
|
3756
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = r.useContext(Pc), [f, p] = r.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = r.useState({}), g = Q(t, (e) => p(e)), _ = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), b = f ? _.indexOf(f) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= y, C = Rc((e) => {
|
|
3757
|
+
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
3758
|
+
S && !n && (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
3759
|
+
}, m), w = zc((e) => {
|
|
3760
|
+
let t = e.target;
|
|
3761
|
+
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
3762
|
+
}, m);
|
|
3763
|
+
return Oc((e) => {
|
|
3764
|
+
b === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
3765
|
+
}, m), r.useEffect(() => {
|
|
3766
|
+
if (f) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Nc = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Bc(), () => {
|
|
3767
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Nc);
|
|
3768
|
+
};
|
|
3769
|
+
}, [
|
|
3770
|
+
f,
|
|
3771
|
+
m,
|
|
3772
|
+
n,
|
|
3773
|
+
u
|
|
3774
|
+
]), r.useEffect(() => () => {
|
|
3775
|
+
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Bc());
|
|
3776
|
+
}, [f, u]), r.useEffect(() => {
|
|
3777
|
+
let e = () => h({});
|
|
3778
|
+
return document.addEventListener(Ac, e), () => document.removeEventListener(Ac, e);
|
|
3779
|
+
}, []), /* @__PURE__ */ d($.div, {
|
|
3780
|
+
...l,
|
|
3781
|
+
ref: g,
|
|
3782
|
+
style: {
|
|
3783
|
+
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
3784
|
+
...e.style
|
|
3785
|
+
},
|
|
3786
|
+
onFocusCapture: Sc(e.onFocusCapture, w.onFocusCapture),
|
|
3787
|
+
onBlurCapture: Sc(e.onBlurCapture, w.onBlurCapture),
|
|
3788
|
+
onPointerDownCapture: Sc(e.onPointerDownCapture, C.onPointerDownCapture)
|
|
3789
|
+
});
|
|
3790
|
+
});
|
|
3791
|
+
Fc.displayName = kc;
|
|
3792
|
+
var Ic = "DismissableLayerBranch", Lc = r.forwardRef((e, t) => {
|
|
3793
|
+
let n = r.useContext(Pc), i = r.useRef(null), a = Q(t, i);
|
|
3794
|
+
return r.useEffect(() => {
|
|
3795
|
+
let e = i.current;
|
|
3796
|
+
if (e) return n.branches.add(e), () => {
|
|
3797
|
+
n.branches.delete(e);
|
|
3798
|
+
};
|
|
3799
|
+
}, [n.branches]), /* @__PURE__ */ d($.div, {
|
|
3800
|
+
...e,
|
|
3801
|
+
ref: a
|
|
3802
|
+
});
|
|
3803
|
+
});
|
|
3804
|
+
Lc.displayName = Ic;
|
|
3805
|
+
function Rc(e, t = globalThis?.document) {
|
|
3806
|
+
let n = Z(e), i = r.useRef(!1), a = r.useRef(() => {});
|
|
3807
|
+
return r.useEffect(() => {
|
|
3808
|
+
let e = (e) => {
|
|
3809
|
+
if (e.target && !i.current) {
|
|
3810
|
+
let r = function() {
|
|
3811
|
+
Vc(jc, n, i, { discrete: !0 });
|
|
3812
|
+
}, i = { originalEvent: e };
|
|
3813
|
+
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
|
|
3814
|
+
} else t.removeEventListener("click", a.current);
|
|
3815
|
+
i.current = !1;
|
|
3816
|
+
}, r = window.setTimeout(() => {
|
|
3817
|
+
t.addEventListener("pointerdown", e);
|
|
3818
|
+
}, 0);
|
|
3819
|
+
return () => {
|
|
3820
|
+
window.clearTimeout(r), t.removeEventListener("pointerdown", e), t.removeEventListener("click", a.current);
|
|
3821
|
+
};
|
|
3822
|
+
}, [t, n]), { onPointerDownCapture: () => i.current = !0 };
|
|
3823
|
+
}
|
|
3824
|
+
function zc(e, t = globalThis?.document) {
|
|
3825
|
+
let n = Z(e), i = r.useRef(!1);
|
|
3826
|
+
return r.useEffect(() => {
|
|
3827
|
+
let e = (e) => {
|
|
3828
|
+
e.target && !i.current && Vc(Mc, n, { originalEvent: e }, { discrete: !1 });
|
|
3829
|
+
};
|
|
3830
|
+
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
3831
|
+
}, [t, n]), {
|
|
3832
|
+
onFocusCapture: () => i.current = !0,
|
|
3833
|
+
onBlurCapture: () => i.current = !1
|
|
3834
|
+
};
|
|
3835
|
+
}
|
|
3836
|
+
function Bc() {
|
|
3837
|
+
let e = new CustomEvent(Ac);
|
|
3838
|
+
document.dispatchEvent(e);
|
|
3839
|
+
}
|
|
3840
|
+
function Vc(e, t, n, { discrete: r }) {
|
|
3841
|
+
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
3842
|
+
bubbles: !1,
|
|
3843
|
+
cancelable: !0,
|
|
3844
|
+
detail: n
|
|
3845
|
+
});
|
|
3846
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? xc(i, a) : i.dispatchEvent(a);
|
|
3847
|
+
}
|
|
3848
|
+
//#endregion
|
|
3849
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-do_706903c570469dc042edac24aa08aefe/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
3850
|
+
var Hc = "focusScope.autoFocusOnMount", Uc = "focusScope.autoFocusOnUnmount", Wc = {
|
|
3851
|
+
bubbles: !1,
|
|
3852
|
+
cancelable: !0
|
|
3853
|
+
}, Gc = "FocusScope", Kc = r.forwardRef((e, t) => {
|
|
3854
|
+
let { loop: n = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = r.useState(null), u = Z(a), f = Z(o), p = r.useRef(null), m = Q(t, (e) => l(e)), h = r.useRef({
|
|
3855
|
+
paused: !1,
|
|
3856
|
+
pause() {
|
|
3857
|
+
this.paused = !0;
|
|
3858
|
+
},
|
|
3859
|
+
resume() {
|
|
3860
|
+
this.paused = !1;
|
|
3861
|
+
}
|
|
3862
|
+
}).current;
|
|
3863
|
+
r.useEffect(() => {
|
|
3864
|
+
if (i) {
|
|
3865
|
+
let e = function(e) {
|
|
3866
|
+
if (h.paused || !c) return;
|
|
3867
|
+
let t = e.target;
|
|
3868
|
+
c.contains(t) ? p.current = t : $c(p.current, { select: !0 });
|
|
3869
|
+
}, t = function(e) {
|
|
3870
|
+
if (h.paused || !c) return;
|
|
3871
|
+
let t = e.relatedTarget;
|
|
3872
|
+
t !== null && (c.contains(t) || $c(p.current, { select: !0 }));
|
|
3873
|
+
}, n = function(e) {
|
|
3874
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && $c(c);
|
|
3875
|
+
};
|
|
3876
|
+
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
3877
|
+
let r = new MutationObserver(n);
|
|
3878
|
+
return c && r.observe(c, {
|
|
3879
|
+
childList: !0,
|
|
3880
|
+
subtree: !0
|
|
3881
|
+
}), () => {
|
|
3882
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
3883
|
+
};
|
|
3884
|
+
}
|
|
3885
|
+
}, [
|
|
3886
|
+
i,
|
|
3887
|
+
c,
|
|
3888
|
+
h.paused
|
|
3889
|
+
]), r.useEffect(() => {
|
|
3890
|
+
if (c) {
|
|
3891
|
+
el.add(h);
|
|
3892
|
+
let e = document.activeElement;
|
|
3893
|
+
if (!c.contains(e)) {
|
|
3894
|
+
let t = new CustomEvent(Hc, Wc);
|
|
3895
|
+
c.addEventListener(Hc, u), c.dispatchEvent(t), t.defaultPrevented || (qc(rl(Yc(c)), { select: !0 }), document.activeElement === e && $c(c));
|
|
3896
|
+
}
|
|
3897
|
+
return () => {
|
|
3898
|
+
c.removeEventListener(Hc, u), setTimeout(() => {
|
|
3899
|
+
let t = new CustomEvent(Uc, Wc);
|
|
3900
|
+
c.addEventListener(Uc, f), c.dispatchEvent(t), t.defaultPrevented || $c(e ?? document.body, { select: !0 }), c.removeEventListener(Uc, f), el.remove(h);
|
|
3901
|
+
}, 0);
|
|
3902
|
+
};
|
|
3903
|
+
}
|
|
3904
|
+
}, [
|
|
3905
|
+
c,
|
|
3906
|
+
u,
|
|
3907
|
+
f,
|
|
3908
|
+
h
|
|
3909
|
+
]);
|
|
3910
|
+
let g = r.useCallback((e) => {
|
|
3911
|
+
if (!n && !i || h.paused) return;
|
|
3912
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = document.activeElement;
|
|
3913
|
+
if (t && r) {
|
|
3914
|
+
let t = e.currentTarget, [i, a] = Jc(t);
|
|
3915
|
+
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n && $c(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n && $c(a, { select: !0 })) : r === t && e.preventDefault();
|
|
3916
|
+
}
|
|
3917
|
+
}, [
|
|
3918
|
+
n,
|
|
3919
|
+
i,
|
|
3920
|
+
h.paused
|
|
3921
|
+
]);
|
|
3922
|
+
return /* @__PURE__ */ d($.div, {
|
|
3923
|
+
tabIndex: -1,
|
|
3924
|
+
...s,
|
|
3925
|
+
ref: m,
|
|
3926
|
+
onKeyDown: g
|
|
3927
|
+
});
|
|
3928
|
+
});
|
|
3929
|
+
Kc.displayName = Gc;
|
|
3930
|
+
function qc(e, { select: t = !1 } = {}) {
|
|
3931
|
+
let n = document.activeElement;
|
|
3932
|
+
for (let r of e) if ($c(r, { select: t }), document.activeElement !== n) return;
|
|
3933
|
+
}
|
|
3934
|
+
function Jc(e) {
|
|
3935
|
+
let t = Yc(e);
|
|
3936
|
+
return [Xc(t, e), Xc(t.reverse(), e)];
|
|
3937
|
+
}
|
|
3938
|
+
function Yc(e) {
|
|
3939
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
3940
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
3941
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
3942
|
+
} });
|
|
3943
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
3944
|
+
return t;
|
|
3945
|
+
}
|
|
3946
|
+
function Xc(e, t) {
|
|
3947
|
+
for (let n of e) if (!Zc(n, { upTo: t })) return n;
|
|
3948
|
+
}
|
|
3949
|
+
function Zc(e, { upTo: t }) {
|
|
3950
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3951
|
+
for (; e;) {
|
|
3952
|
+
if (t !== void 0 && e === t) return !1;
|
|
3953
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
3954
|
+
e = e.parentElement;
|
|
3955
|
+
}
|
|
3956
|
+
return !1;
|
|
3957
|
+
}
|
|
3958
|
+
function Qc(e) {
|
|
3959
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
3960
|
+
}
|
|
3961
|
+
function $c(e, { select: t = !1 } = {}) {
|
|
3962
|
+
if (e && e.focus) {
|
|
3963
|
+
let n = document.activeElement;
|
|
3964
|
+
e.focus({ preventScroll: !0 }), e !== n && Qc(e) && t && e.select();
|
|
3965
|
+
}
|
|
3966
|
+
}
|
|
3967
|
+
var el = tl();
|
|
3968
|
+
function tl() {
|
|
3969
|
+
let e = [];
|
|
3970
|
+
return {
|
|
3971
|
+
add(t) {
|
|
3972
|
+
let n = e[0];
|
|
3973
|
+
t !== n && n?.pause(), e = nl(e, t), e.unshift(t);
|
|
3974
|
+
},
|
|
3975
|
+
remove(t) {
|
|
3976
|
+
e = nl(e, t), e[0]?.resume();
|
|
3977
|
+
}
|
|
3978
|
+
};
|
|
3979
|
+
}
|
|
3980
|
+
function nl(e, t) {
|
|
3981
|
+
let n = [...e], r = n.indexOf(t);
|
|
3982
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
3983
|
+
}
|
|
3984
|
+
function rl(e) {
|
|
3985
|
+
return e.filter((e) => e.tagName !== "A");
|
|
3986
|
+
}
|
|
3987
|
+
//#endregion
|
|
3988
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.3_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
3989
|
+
var il = "Portal", al = r.forwardRef((e, t) => {
|
|
3990
|
+
let { container: n, ...i } = e, [a, o] = r.useState(!1);
|
|
3991
|
+
fc(() => o(!0), []);
|
|
3992
|
+
let s = n || a && globalThis?.document?.body;
|
|
3993
|
+
return s ? p.createPortal(/* @__PURE__ */ d($.div, {
|
|
3994
|
+
...i,
|
|
3995
|
+
ref: t
|
|
3996
|
+
}), s) : null;
|
|
3997
|
+
});
|
|
3998
|
+
al.displayName = il;
|
|
3999
|
+
//#endregion
|
|
4000
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.2_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4001
|
+
function ol(e, t) {
|
|
4002
|
+
return r.useReducer((e, n) => t[e][n] ?? e, e);
|
|
4003
|
+
}
|
|
4004
|
+
var sl = (e) => {
|
|
4005
|
+
let { present: t, children: n } = e, i = cl(t), a = typeof n == "function" ? n({ present: i.isPresent }) : r.Children.only(n), o = Q(i.ref, ul(a));
|
|
4006
|
+
return typeof n == "function" || i.isPresent ? r.cloneElement(a, { ref: o }) : null;
|
|
4007
|
+
};
|
|
4008
|
+
sl.displayName = "Presence";
|
|
4009
|
+
function cl(e) {
|
|
4010
|
+
let [t, n] = r.useState(), i = r.useRef({}), a = r.useRef(e), o = r.useRef("none"), [s, c] = ol(e ? "mounted" : "unmounted", {
|
|
4011
|
+
mounted: {
|
|
4012
|
+
UNMOUNT: "unmounted",
|
|
4013
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
4014
|
+
},
|
|
4015
|
+
unmountSuspended: {
|
|
4016
|
+
MOUNT: "mounted",
|
|
4017
|
+
ANIMATION_END: "unmounted"
|
|
4018
|
+
},
|
|
4019
|
+
unmounted: { MOUNT: "mounted" }
|
|
4020
|
+
});
|
|
4021
|
+
return r.useEffect(() => {
|
|
4022
|
+
let e = ll(i.current);
|
|
4023
|
+
o.current = s === "mounted" ? e : "none";
|
|
4024
|
+
}, [s]), fc(() => {
|
|
4025
|
+
let t = i.current, n = a.current;
|
|
4026
|
+
if (n !== e) {
|
|
4027
|
+
let r = o.current, i = ll(t);
|
|
4028
|
+
e ? c("MOUNT") : i === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
4029
|
+
}
|
|
4030
|
+
}, [e, c]), fc(() => {
|
|
4031
|
+
if (t) {
|
|
4032
|
+
let e, n = t.ownerDocument.defaultView ?? window, r = (r) => {
|
|
4033
|
+
let o = ll(i.current).includes(r.animationName);
|
|
4034
|
+
if (r.target === t && o && (c("ANIMATION_END"), !a.current)) {
|
|
4035
|
+
let r = t.style.animationFillMode;
|
|
4036
|
+
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
4037
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
|
|
4038
|
+
});
|
|
4039
|
+
}
|
|
4040
|
+
}, s = (e) => {
|
|
4041
|
+
e.target === t && (o.current = ll(i.current));
|
|
4042
|
+
};
|
|
4043
|
+
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
|
|
4044
|
+
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
|
|
4045
|
+
};
|
|
4046
|
+
}
|
|
4047
|
+
c("ANIMATION_END");
|
|
4048
|
+
}, [t, c]), {
|
|
4049
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
4050
|
+
ref: r.useCallback((e) => {
|
|
4051
|
+
e && (i.current = getComputedStyle(e)), n(e);
|
|
4052
|
+
}, [])
|
|
4053
|
+
};
|
|
4054
|
+
}
|
|
4055
|
+
function ll(e) {
|
|
4056
|
+
return e?.animationName || "none";
|
|
4057
|
+
}
|
|
4058
|
+
function ul(e) {
|
|
4059
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4060
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4061
|
+
}
|
|
4062
|
+
//#endregion
|
|
4063
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
4064
|
+
var dl = 0;
|
|
4065
|
+
function fl() {
|
|
4066
|
+
r.useEffect(() => {
|
|
4067
|
+
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4068
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? pl()), document.body.insertAdjacentElement("beforeend", e[1] ?? pl()), dl++, () => {
|
|
4069
|
+
dl === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), dl--;
|
|
4070
|
+
};
|
|
4071
|
+
}, []);
|
|
4072
|
+
}
|
|
4073
|
+
function pl() {
|
|
4074
|
+
let e = document.createElement("span");
|
|
4075
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4076
|
+
}
|
|
4077
|
+
//#endregion
|
|
4078
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
4079
|
+
var ml = "Arrow", hl = r.forwardRef((e, t) => {
|
|
4080
|
+
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
4081
|
+
return /* @__PURE__ */ d($.svg, {
|
|
4082
|
+
...a,
|
|
4083
|
+
ref: t,
|
|
4084
|
+
width: r,
|
|
4085
|
+
height: i,
|
|
4086
|
+
viewBox: "0 0 30 10",
|
|
4087
|
+
preserveAspectRatio: "none",
|
|
4088
|
+
children: e.asChild ? n : /* @__PURE__ */ d("polygon", { points: "0,0 30,0 15,10" })
|
|
4089
|
+
});
|
|
4090
|
+
});
|
|
4091
|
+
hl.displayName = ml;
|
|
4092
|
+
var gl = hl;
|
|
4093
|
+
//#endregion
|
|
4094
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4095
|
+
function _l(e) {
|
|
4096
|
+
let [t, n] = r.useState(void 0);
|
|
4097
|
+
return fc(() => {
|
|
4098
|
+
if (e) {
|
|
4099
|
+
n({
|
|
4100
|
+
width: e.offsetWidth,
|
|
4101
|
+
height: e.offsetHeight
|
|
4102
|
+
});
|
|
4103
|
+
let t = new ResizeObserver((t) => {
|
|
4104
|
+
if (!Array.isArray(t) || !t.length) return;
|
|
4105
|
+
let r = t[0], i, a;
|
|
4106
|
+
if ("borderBoxSize" in r) {
|
|
4107
|
+
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
4108
|
+
i = t.inlineSize, a = t.blockSize;
|
|
4109
|
+
} else i = e.offsetWidth, a = e.offsetHeight;
|
|
4110
|
+
n({
|
|
4111
|
+
width: i,
|
|
4112
|
+
height: a
|
|
4113
|
+
});
|
|
4114
|
+
});
|
|
4115
|
+
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
|
|
4116
|
+
}
|
|
4117
|
+
n(void 0);
|
|
4118
|
+
}, [e]), t;
|
|
4119
|
+
}
|
|
4120
|
+
//#endregion
|
|
4121
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
4122
|
+
var vl = "Popper", [yl, bl] = uc(vl), [xl, Sl] = yl(vl), Cl = (e) => {
|
|
4123
|
+
let { __scopePopper: t, children: n } = e, [i, a] = r.useState(null);
|
|
4124
|
+
return /* @__PURE__ */ d(xl, {
|
|
4125
|
+
scope: t,
|
|
4126
|
+
anchor: i,
|
|
4127
|
+
onAnchorChange: a,
|
|
4128
|
+
children: n
|
|
4129
|
+
});
|
|
4130
|
+
};
|
|
4131
|
+
Cl.displayName = vl;
|
|
4132
|
+
var wl = "PopperAnchor", Tl = r.forwardRef((e, t) => {
|
|
4133
|
+
let { __scopePopper: n, virtualRef: i, ...a } = e, o = Sl(wl, n), s = r.useRef(null), c = Q(t, s);
|
|
4134
|
+
return r.useEffect(() => {
|
|
4135
|
+
o.onAnchorChange(i?.current || s.current);
|
|
4136
|
+
}), i ? null : /* @__PURE__ */ d($.div, {
|
|
4137
|
+
...a,
|
|
4138
|
+
ref: c
|
|
4139
|
+
});
|
|
4140
|
+
});
|
|
4141
|
+
Tl.displayName = wl;
|
|
4142
|
+
var El = "PopperContent", [Dl, Ol] = yl(El), kl = r.forwardRef((e, t) => {
|
|
4143
|
+
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = e, v = Sl(El, n), [y, b] = r.useState(null), x = Q(t, (e) => b(e)), [S, C] = r.useState(null), w = _l(S), T = w?.width ?? 0, E = w?.height ?? 0, D = i + (o === "center" ? "" : "-" + o), O = typeof f == "number" ? f : {
|
|
4144
|
+
top: 0,
|
|
4145
|
+
right: 0,
|
|
4146
|
+
bottom: 0,
|
|
4147
|
+
left: 0,
|
|
4148
|
+
...f
|
|
4149
|
+
}, k = Array.isArray(u) ? u : [u], A = k.length > 0, j = {
|
|
4150
|
+
padding: O,
|
|
4151
|
+
boundary: k.filter(Nl),
|
|
4152
|
+
altBoundary: A
|
|
4153
|
+
}, { refs: M, floatingStyles: N, placement: P, isPositioned: F, middlewareData: I } = In({
|
|
4154
|
+
strategy: "fixed",
|
|
4155
|
+
placement: D,
|
|
4156
|
+
whileElementsMounted: (...e) => Sn(...e, { animationFrame: h === "always" }),
|
|
4157
|
+
elements: { reference: v.anchor },
|
|
4158
|
+
middleware: [
|
|
4159
|
+
Rn({
|
|
4160
|
+
mainAxis: a + E,
|
|
4161
|
+
alignmentAxis: s
|
|
4162
|
+
}),
|
|
4163
|
+
l && zn({
|
|
4164
|
+
mainAxis: !0,
|
|
4165
|
+
crossAxis: !1,
|
|
4166
|
+
limiter: p === "partial" ? Bn() : void 0,
|
|
4167
|
+
...j
|
|
4168
|
+
}),
|
|
4169
|
+
l && Vn({ ...j }),
|
|
4170
|
+
Hn({
|
|
4171
|
+
...j,
|
|
4172
|
+
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
4173
|
+
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
4174
|
+
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
4175
|
+
}
|
|
4176
|
+
}),
|
|
4177
|
+
S && Wn({
|
|
4178
|
+
element: S,
|
|
4179
|
+
padding: c
|
|
4180
|
+
}),
|
|
4181
|
+
Pl({
|
|
4182
|
+
arrowWidth: T,
|
|
4183
|
+
arrowHeight: E
|
|
4184
|
+
}),
|
|
4185
|
+
m && Un({
|
|
4186
|
+
strategy: "referenceHidden",
|
|
4187
|
+
...j
|
|
4188
|
+
})
|
|
4189
|
+
]
|
|
4190
|
+
}), [ee, L] = Fl(P), te = Z(g);
|
|
4191
|
+
fc(() => {
|
|
4192
|
+
F && te?.();
|
|
4193
|
+
}, [F, te]);
|
|
4194
|
+
let ne = I.arrow?.x, re = I.arrow?.y, ie = I.arrow?.centerOffset !== 0, [ae, oe] = r.useState();
|
|
4195
|
+
return fc(() => {
|
|
4196
|
+
y && oe(window.getComputedStyle(y).zIndex);
|
|
4197
|
+
}, [y]), /* @__PURE__ */ d("div", {
|
|
4198
|
+
ref: M.setFloating,
|
|
4199
|
+
"data-radix-popper-content-wrapper": "",
|
|
4200
|
+
style: {
|
|
4201
|
+
...N,
|
|
4202
|
+
transform: F ? N.transform : "translate(0, -200%)",
|
|
4203
|
+
minWidth: "max-content",
|
|
4204
|
+
zIndex: ae,
|
|
4205
|
+
"--radix-popper-transform-origin": [I.transformOrigin?.x, I.transformOrigin?.y].join(" "),
|
|
4206
|
+
...I.hide?.referenceHidden && {
|
|
4207
|
+
visibility: "hidden",
|
|
4208
|
+
pointerEvents: "none"
|
|
4209
|
+
}
|
|
4210
|
+
},
|
|
4211
|
+
dir: e.dir,
|
|
4212
|
+
children: /* @__PURE__ */ d(Dl, {
|
|
4213
|
+
scope: n,
|
|
4214
|
+
placedSide: ee,
|
|
4215
|
+
onArrowChange: C,
|
|
4216
|
+
arrowX: ne,
|
|
4217
|
+
arrowY: re,
|
|
4218
|
+
shouldHideArrow: ie,
|
|
4219
|
+
children: /* @__PURE__ */ d($.div, {
|
|
4220
|
+
"data-side": ee,
|
|
4221
|
+
"data-align": L,
|
|
4222
|
+
..._,
|
|
4223
|
+
ref: x,
|
|
4224
|
+
style: {
|
|
4225
|
+
..._.style,
|
|
4226
|
+
animation: F ? void 0 : "none"
|
|
4227
|
+
}
|
|
4228
|
+
})
|
|
4229
|
+
})
|
|
4230
|
+
});
|
|
4231
|
+
});
|
|
4232
|
+
kl.displayName = El;
|
|
4233
|
+
var Al = "PopperArrow", jl = {
|
|
4234
|
+
top: "bottom",
|
|
4235
|
+
right: "left",
|
|
4236
|
+
bottom: "top",
|
|
4237
|
+
left: "right"
|
|
4238
|
+
}, Ml = r.forwardRef(function(e, t) {
|
|
4239
|
+
let { __scopePopper: n, ...r } = e, i = Ol(Al, n), a = jl[i.placedSide];
|
|
4240
|
+
return /* @__PURE__ */ d("span", {
|
|
4241
|
+
ref: i.onArrowChange,
|
|
4242
|
+
style: {
|
|
4243
|
+
position: "absolute",
|
|
4244
|
+
left: i.arrowX,
|
|
4245
|
+
top: i.arrowY,
|
|
4246
|
+
[a]: 0,
|
|
4247
|
+
transformOrigin: {
|
|
4248
|
+
top: "",
|
|
4249
|
+
right: "0 0",
|
|
4250
|
+
bottom: "center 0",
|
|
4251
|
+
left: "100% 0"
|
|
4252
|
+
}[i.placedSide],
|
|
4253
|
+
transform: {
|
|
4254
|
+
top: "translateY(100%)",
|
|
4255
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
4256
|
+
bottom: "rotate(180deg)",
|
|
4257
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
4258
|
+
}[i.placedSide],
|
|
4259
|
+
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
4260
|
+
},
|
|
4261
|
+
children: /* @__PURE__ */ d(gl, {
|
|
4262
|
+
...r,
|
|
4263
|
+
ref: t,
|
|
4264
|
+
style: {
|
|
4265
|
+
...r.style,
|
|
4266
|
+
display: "block"
|
|
4267
|
+
}
|
|
4268
|
+
})
|
|
4269
|
+
});
|
|
4270
|
+
});
|
|
4271
|
+
Ml.displayName = Al;
|
|
4272
|
+
function Nl(e) {
|
|
4273
|
+
return e !== null;
|
|
4274
|
+
}
|
|
4275
|
+
var Pl = (e) => ({
|
|
4276
|
+
name: "transformOrigin",
|
|
4277
|
+
options: e,
|
|
4278
|
+
fn(t) {
|
|
4279
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Fl(n), u = {
|
|
4280
|
+
start: "0%",
|
|
4281
|
+
center: "50%",
|
|
4282
|
+
end: "100%"
|
|
4283
|
+
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
4284
|
+
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
|
|
4285
|
+
x: p,
|
|
4286
|
+
y: m
|
|
4287
|
+
} };
|
|
4288
|
+
}
|
|
4289
|
+
});
|
|
4290
|
+
function Fl(e) {
|
|
4291
|
+
let [t, n = "center"] = e.split("-");
|
|
4292
|
+
return [t, n];
|
|
4293
|
+
}
|
|
4294
|
+
var Il = Cl, Ll = Tl, Rl = kl, zl = Ml, Bl = "Popover", [Vl, Hl] = uc(Bl, [bl]), Ul = bl(), [Wl, Gl] = Vl(Bl), Kl = (e) => {
|
|
4295
|
+
let { __scopePopover: t, children: n, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = e, c = Ul(t), l = r.useRef(null), [u, f] = r.useState(!1), [p = !1, m] = Ec({
|
|
4296
|
+
prop: i,
|
|
4297
|
+
defaultProp: a,
|
|
4298
|
+
onChange: o
|
|
4299
|
+
});
|
|
4300
|
+
return /* @__PURE__ */ d(Il, {
|
|
4301
|
+
...c,
|
|
4302
|
+
children: /* @__PURE__ */ d(Wl, {
|
|
4303
|
+
scope: t,
|
|
4304
|
+
contentId: Tc(),
|
|
4305
|
+
triggerRef: l,
|
|
4306
|
+
open: p,
|
|
4307
|
+
onOpenChange: m,
|
|
4308
|
+
onOpenToggle: r.useCallback(() => m((e) => !e), [m]),
|
|
4309
|
+
hasCustomAnchor: u,
|
|
4310
|
+
onCustomAnchorAdd: r.useCallback(() => f(!0), []),
|
|
4311
|
+
onCustomAnchorRemove: r.useCallback(() => f(!1), []),
|
|
4312
|
+
modal: s,
|
|
4313
|
+
children: n
|
|
4314
|
+
})
|
|
4315
|
+
});
|
|
4316
|
+
};
|
|
4317
|
+
Kl.displayName = Bl;
|
|
4318
|
+
var ql = "PopoverAnchor", Jl = r.forwardRef((e, t) => {
|
|
4319
|
+
let { __scopePopover: n, ...i } = e, a = Gl(ql, n), o = Ul(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
|
|
4320
|
+
return r.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ d(Ll, {
|
|
4321
|
+
...o,
|
|
4322
|
+
...i,
|
|
4323
|
+
ref: t
|
|
4324
|
+
});
|
|
4325
|
+
});
|
|
4326
|
+
Jl.displayName = ql;
|
|
4327
|
+
var Yl = "PopoverTrigger", Xl = r.forwardRef((e, t) => {
|
|
4328
|
+
let { __scopePopover: n, ...r } = e, i = Gl(Yl, n), a = Ul(n), o = Q(t, i.triggerRef), s = /* @__PURE__ */ d($.button, {
|
|
4329
|
+
type: "button",
|
|
4330
|
+
"aria-haspopup": "dialog",
|
|
4331
|
+
"aria-expanded": i.open,
|
|
4332
|
+
"aria-controls": i.contentId,
|
|
4333
|
+
"data-state": uu(i.open),
|
|
4334
|
+
...r,
|
|
4335
|
+
ref: o,
|
|
4336
|
+
onClick: Sc(e.onClick, i.onOpenToggle)
|
|
4337
|
+
});
|
|
4338
|
+
return i.hasCustomAnchor ? s : /* @__PURE__ */ d(Ll, {
|
|
4339
|
+
asChild: !0,
|
|
4340
|
+
...a,
|
|
4341
|
+
children: s
|
|
4342
|
+
});
|
|
4343
|
+
});
|
|
4344
|
+
Xl.displayName = Yl;
|
|
4345
|
+
var Zl = "PopoverPortal", [Ql, $l] = Vl(Zl, { forceMount: void 0 }), eu = (e) => {
|
|
4346
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = Gl(Zl, t);
|
|
4347
|
+
return /* @__PURE__ */ d(Ql, {
|
|
4348
|
+
scope: t,
|
|
4349
|
+
forceMount: n,
|
|
4350
|
+
children: /* @__PURE__ */ d(sl, {
|
|
4351
|
+
present: n || a.open,
|
|
4352
|
+
children: /* @__PURE__ */ d(al, {
|
|
4353
|
+
asChild: !0,
|
|
4354
|
+
container: i,
|
|
4355
|
+
children: r
|
|
4356
|
+
})
|
|
4357
|
+
})
|
|
4358
|
+
});
|
|
4359
|
+
};
|
|
4360
|
+
eu.displayName = Zl;
|
|
4361
|
+
var tu = "PopoverContent", nu = r.forwardRef((e, t) => {
|
|
4362
|
+
let n = $l(tu, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = Gl(tu, e.__scopePopover);
|
|
4363
|
+
return /* @__PURE__ */ d(sl, {
|
|
4364
|
+
present: r || a.open,
|
|
4365
|
+
children: a.modal ? /* @__PURE__ */ d(ru, {
|
|
4366
|
+
...i,
|
|
4367
|
+
ref: t
|
|
4368
|
+
}) : /* @__PURE__ */ d(iu, {
|
|
4369
|
+
...i,
|
|
4370
|
+
ref: t
|
|
4371
|
+
})
|
|
4372
|
+
});
|
|
4373
|
+
});
|
|
4374
|
+
nu.displayName = tu;
|
|
4375
|
+
var ru = r.forwardRef((e, t) => {
|
|
4376
|
+
let n = Gl(tu, e.__scopePopover), i = r.useRef(null), a = Q(t, i), o = r.useRef(!1);
|
|
4377
|
+
return r.useEffect(() => {
|
|
4378
|
+
let e = i.current;
|
|
4379
|
+
if (e) return $r(e);
|
|
4380
|
+
}, []), /* @__PURE__ */ d(oa, {
|
|
4381
|
+
as: hc,
|
|
4382
|
+
allowPinchZoom: !0,
|
|
4383
|
+
children: /* @__PURE__ */ d(au, {
|
|
4384
|
+
...e,
|
|
4385
|
+
ref: a,
|
|
4386
|
+
trapFocus: n.open,
|
|
4387
|
+
disableOutsidePointerEvents: !0,
|
|
4388
|
+
onCloseAutoFocus: Sc(e.onCloseAutoFocus, (e) => {
|
|
4389
|
+
e.preventDefault(), o.current || n.triggerRef.current?.focus();
|
|
4390
|
+
}),
|
|
4391
|
+
onPointerDownOutside: Sc(e.onPointerDownOutside, (e) => {
|
|
4392
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
4393
|
+
o.current = r;
|
|
4394
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
4395
|
+
onFocusOutside: Sc(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
4396
|
+
})
|
|
4397
|
+
});
|
|
4398
|
+
}), iu = r.forwardRef((e, t) => {
|
|
4399
|
+
let n = Gl(tu, e.__scopePopover), i = r.useRef(!1), a = r.useRef(!1);
|
|
4400
|
+
return /* @__PURE__ */ d(au, {
|
|
4401
|
+
...e,
|
|
4402
|
+
ref: t,
|
|
4403
|
+
trapFocus: !1,
|
|
4404
|
+
disableOutsidePointerEvents: !1,
|
|
4405
|
+
onCloseAutoFocus: (t) => {
|
|
4406
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (i.current || n.triggerRef.current?.focus(), t.preventDefault()), i.current = !1, a.current = !1;
|
|
4407
|
+
},
|
|
4408
|
+
onInteractOutside: (t) => {
|
|
4409
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (i.current = !0, t.detail.originalEvent.type === "pointerdown" && (a.current = !0));
|
|
4410
|
+
let r = t.target;
|
|
4411
|
+
n.triggerRef.current?.contains(r) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
4412
|
+
}
|
|
4413
|
+
});
|
|
4414
|
+
}), au = r.forwardRef((e, t) => {
|
|
4415
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...f } = e, p = Gl(tu, n), m = Ul(n);
|
|
4416
|
+
return fl(), /* @__PURE__ */ d(Kc, {
|
|
4417
|
+
asChild: !0,
|
|
4418
|
+
loop: !0,
|
|
4419
|
+
trapped: r,
|
|
4420
|
+
onMountAutoFocus: i,
|
|
4421
|
+
onUnmountAutoFocus: a,
|
|
4422
|
+
children: /* @__PURE__ */ d(Fc, {
|
|
4423
|
+
asChild: !0,
|
|
4424
|
+
disableOutsidePointerEvents: o,
|
|
4425
|
+
onInteractOutside: u,
|
|
4426
|
+
onEscapeKeyDown: s,
|
|
4427
|
+
onPointerDownOutside: c,
|
|
4428
|
+
onFocusOutside: l,
|
|
4429
|
+
onDismiss: () => p.onOpenChange(!1),
|
|
4430
|
+
children: /* @__PURE__ */ d(Rl, {
|
|
4431
|
+
"data-state": uu(p.open),
|
|
4432
|
+
role: "dialog",
|
|
4433
|
+
id: p.contentId,
|
|
4434
|
+
...m,
|
|
4435
|
+
...f,
|
|
4436
|
+
ref: t,
|
|
4437
|
+
style: {
|
|
4438
|
+
...f.style,
|
|
4439
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
4440
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
4441
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
4442
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
4443
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
4444
|
+
}
|
|
4445
|
+
})
|
|
4446
|
+
})
|
|
4447
|
+
});
|
|
4448
|
+
}), ou = "PopoverClose", su = r.forwardRef((e, t) => {
|
|
4449
|
+
let { __scopePopover: n, ...r } = e, i = Gl(ou, n);
|
|
4450
|
+
return /* @__PURE__ */ d($.button, {
|
|
4451
|
+
type: "button",
|
|
4452
|
+
...r,
|
|
4453
|
+
ref: t,
|
|
4454
|
+
onClick: Sc(e.onClick, () => i.onOpenChange(!1))
|
|
4455
|
+
});
|
|
4456
|
+
});
|
|
4457
|
+
su.displayName = ou;
|
|
4458
|
+
var cu = "PopoverArrow", lu = r.forwardRef((e, t) => {
|
|
4459
|
+
let { __scopePopover: n, ...r } = e, i = Ul(n);
|
|
4460
|
+
return /* @__PURE__ */ d(zl, {
|
|
4461
|
+
...i,
|
|
4462
|
+
...r,
|
|
4463
|
+
ref: t
|
|
4464
|
+
});
|
|
4465
|
+
});
|
|
4466
|
+
lu.displayName = cu;
|
|
4467
|
+
function uu(e) {
|
|
4468
|
+
return e ? "open" : "closed";
|
|
4469
|
+
}
|
|
4470
|
+
var du = Kl, fu = Jl, pu = Xl, mu = eu, hu = nu, gu = lu, _u = du, vu = pu, yu = fu, bu = gu, xu = r.forwardRef(({ className: n, align: r = "center", sideOffset: i = 4, container: a, ...o }, s) => {
|
|
4471
|
+
let c = t();
|
|
4472
|
+
return /* @__PURE__ */ d(mu, {
|
|
4473
|
+
container: a ?? c,
|
|
4474
|
+
children: /* @__PURE__ */ d(hu, {
|
|
4475
|
+
asChild: o.asChild,
|
|
4476
|
+
ref: s,
|
|
4477
|
+
align: r,
|
|
4478
|
+
sideOffset: i,
|
|
4479
|
+
className: e("z-50 w-72 rounded-xs border bg-f1-background p-4 text-f1-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", "origin-[var(--radix-popover-content-transform-origin)]", "max-h-[var(--radix-popover-content-available-height)]", "overflow-auto", n),
|
|
4480
|
+
...o
|
|
4481
|
+
})
|
|
4482
|
+
});
|
|
4483
|
+
});
|
|
4484
|
+
xu.displayName = hu.displayName;
|
|
4485
|
+
//#endregion
|
|
4486
|
+
export { pr as $, tc as A, $s as B, mc as C, lc as D, Z as E, Qs as F, Us as G, Js as H, oc as I, br as J, oa as K, cc as L, rc as M, sc as N, uc as O, Xs as P, hr as Q, Zs as R, hc as S, fc as T, nc as U, ac as V, Gs as W, mr as X, vr as Y, gr as Z, Ec as _, vu as a, ce as at, $ as b, mu as c, F as ct, _l as d, E as dt, Zn as et, fl as f, C as ft, Fc as g, _ as gt, Kc as h, v as ht, xu as i, ge as it, Ys as j, qs as k, du as l, N as lt, al as m, y as mt, yu as n, Ie as nt, fu as o, L as ot, sl as p, x as pt, $r as q, bu as r, Se as rt, hu as s, ee as st, _u as t, Jn as tt, pu as u, D as ut, Tc as v, Q as w, xc as x, Sc as y, ec as z };
|