highsoft-ui 1.0.46 → 1.0.48
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/Check-Cm4roSEj.js +23 -0
- package/dist/components/Button/index.js +78 -5
- package/dist/components/Footer/index.d.ts +5 -0
- package/dist/components/Footer/index.js +607 -0
- package/dist/components/GPTInput/index.js +2 -4
- package/dist/components/Header/index.js +65 -65
- package/dist/components/Logo/index.d.ts +1 -1
- package/dist/components/Logo/index.js +17 -21
- package/dist/components/NewTag/index.d.ts +8 -0
- package/dist/components/NewTag/index.js +54 -0
- package/dist/components/Notification/index.js +2 -2
- package/dist/components/PrefPanel/index.js +864 -888
- package/dist/extends-hS2Bh-Yp.js +12 -0
- package/dist/highsoft-ui.css +1 -1
- package/dist/{index-BFhQ-SSv.js → index-CUjEIxqY.js} +20 -19
- package/dist/main.d.ts +2 -0
- package/dist/main.js +19 -15
- package/dist/utils-xhWUdTOZ.js +132 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +6 -20
- package/package.json +4 -3
- package/dist/index-CMegByeX.js +0 -85
- package/dist/index-DKE1ODpv.js +0 -89
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
import { jsx as C, jsxs as Q, Fragment as
|
|
2
|
-
import { z as
|
|
1
|
+
import { jsx as C, jsxs as Q, Fragment as Bt } from "react/jsx-runtime";
|
|
2
|
+
import { z as Zn, a as Gn } from "../../utils-xhWUdTOZ.js";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
width: 24,
|
|
14
|
-
height: 24,
|
|
15
|
-
fill: "none",
|
|
16
|
-
viewBox: "0 0 24 24"
|
|
17
|
-
}, t, {
|
|
18
|
-
children: /* @__PURE__ */ C("path", {
|
|
19
|
-
stroke: "currentColor",
|
|
20
|
-
strokeLinecap: "round",
|
|
21
|
-
strokeLinejoin: "round",
|
|
22
|
-
strokeWidth: 2,
|
|
23
|
-
d: "M20 6 9 17l-5-5"
|
|
24
|
-
})
|
|
25
|
-
}));
|
|
26
|
-
}, sr = function(t) {
|
|
27
|
-
return /* @__PURE__ */ C("svg", be({
|
|
4
|
+
import { useState as qn, useLayoutEffect as Qn } from "react";
|
|
5
|
+
import { C as Jn } from "../../Check-Cm4roSEj.js";
|
|
6
|
+
import { _ as Fe } from "../../extends-hS2Bh-Yp.js";
|
|
7
|
+
import { c as er } from "../../clsx-OuTLNxxd.js";
|
|
8
|
+
import { Button as tr } from "../Button/index.js";
|
|
9
|
+
import * as $t from "react-dom";
|
|
10
|
+
import nr from "react-dom";
|
|
11
|
+
var rr = function(t) {
|
|
12
|
+
return /* @__PURE__ */ C("svg", Fe({
|
|
28
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
14
|
width: 24,
|
|
30
15
|
height: 24,
|
|
@@ -39,8 +24,8 @@ var ir = function(t) {
|
|
|
39
24
|
d: "M15 17v4H9v-4m-3.8 0h13.6c1.1201 0 1.6802 0 2.108-.218a2 2 0 0 0 .874-.874C22 15.4802 22 14.9201 22 13.8V6.2c0-1.1201 0-1.6802-.218-2.108a2 2 0 0 0-.874-.874C20.4802 3 19.9201 3 18.8 3H5.2c-1.1201 0-1.6802 0-2.108.218a2 2 0 0 0-.874.874C2 4.5198 2 5.08 2 6.2v7.6c0 1.1201 0 1.6802.218 2.108.1917.3763.4977.6823.874.874C3.5198 17 4.08 17 5.2 17"
|
|
40
25
|
})
|
|
41
26
|
}));
|
|
42
|
-
},
|
|
43
|
-
return /* @__PURE__ */ C("svg",
|
|
27
|
+
}, or = function(t) {
|
|
28
|
+
return /* @__PURE__ */ C("svg", Fe({
|
|
44
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
30
|
width: 24,
|
|
46
31
|
height: 24,
|
|
@@ -55,8 +40,8 @@ var ir = function(t) {
|
|
|
55
40
|
d: "M21.9548 12.9564c-1.3769 2.4153-3.9757 4.0437-6.9548 4.0437-4.4183 0-8-3.5817-8-8 0-2.9794 1.6287-5.5783 4.0443-6.9552C5.9698 2.5261 2 6.7994 2 11.9998c0 5.5229 4.4772 10 10 10 5.2002 0 9.4733-3.9693 9.9548-9.0434"
|
|
56
41
|
})
|
|
57
42
|
}));
|
|
58
|
-
},
|
|
59
|
-
return /* @__PURE__ */ C("svg",
|
|
43
|
+
}, ir = function(t) {
|
|
44
|
+
return /* @__PURE__ */ C("svg", Fe({
|
|
60
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
61
46
|
width: 24,
|
|
62
47
|
height: 24,
|
|
@@ -71,8 +56,8 @@ var ir = function(t) {
|
|
|
71
56
|
d: "M3 8h12m0 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3-1.3431-3-3-3-3 1.3431-3 3m-6 8h12M9 16c0 1.6569-1.3431 3-3 3s-3-1.3431-3-3 1.3431-3 3-3 3 1.3431 3 3"
|
|
72
57
|
})
|
|
73
58
|
}));
|
|
74
|
-
},
|
|
75
|
-
return /* @__PURE__ */ C("svg",
|
|
59
|
+
}, sr = function(t) {
|
|
60
|
+
return /* @__PURE__ */ C("svg", Fe({
|
|
76
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
77
62
|
width: 24,
|
|
78
63
|
height: 24,
|
|
@@ -88,34 +73,34 @@ var ir = function(t) {
|
|
|
88
73
|
})
|
|
89
74
|
}));
|
|
90
75
|
};
|
|
91
|
-
function
|
|
76
|
+
function vt(e, t) {
|
|
92
77
|
if (typeof e == "function")
|
|
93
78
|
return e(t);
|
|
94
79
|
e != null && (e.current = t);
|
|
95
80
|
}
|
|
96
|
-
function
|
|
81
|
+
function Ht(...e) {
|
|
97
82
|
return (t) => {
|
|
98
83
|
let n = !1;
|
|
99
84
|
const r = e.map((o) => {
|
|
100
|
-
const i =
|
|
85
|
+
const i = vt(o, t);
|
|
101
86
|
return !n && typeof i == "function" && (n = !0), i;
|
|
102
87
|
});
|
|
103
88
|
if (n)
|
|
104
89
|
return () => {
|
|
105
90
|
for (let o = 0; o < r.length; o++) {
|
|
106
91
|
const i = r[o];
|
|
107
|
-
typeof i == "function" ? i() :
|
|
92
|
+
typeof i == "function" ? i() : vt(e[o], null);
|
|
108
93
|
}
|
|
109
94
|
};
|
|
110
95
|
};
|
|
111
96
|
}
|
|
112
97
|
function re(...e) {
|
|
113
|
-
return a.useCallback(
|
|
98
|
+
return a.useCallback(Ht(...e), e);
|
|
114
99
|
}
|
|
115
100
|
// @__NO_SIDE_EFFECTS__
|
|
116
|
-
function
|
|
117
|
-
const t = /* @__PURE__ */
|
|
118
|
-
const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(
|
|
101
|
+
function Vt(e) {
|
|
102
|
+
const t = /* @__PURE__ */ cr(e), n = a.forwardRef((r, o) => {
|
|
103
|
+
const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(lr);
|
|
119
104
|
if (u) {
|
|
120
105
|
const l = u.props.children, f = c.map((d) => d === u ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : d);
|
|
121
106
|
return /* @__PURE__ */ C(t, { ...s, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
|
|
@@ -125,22 +110,22 @@ function Yt(e) {
|
|
|
125
110
|
return n.displayName = `${e}.Slot`, n;
|
|
126
111
|
}
|
|
127
112
|
// @__NO_SIDE_EFFECTS__
|
|
128
|
-
function
|
|
113
|
+
function cr(e) {
|
|
129
114
|
const t = a.forwardRef((n, r) => {
|
|
130
115
|
const { children: o, ...i } = n;
|
|
131
116
|
if (a.isValidElement(o)) {
|
|
132
|
-
const s =
|
|
133
|
-
return o.type !== a.Fragment && (c.ref = r ?
|
|
117
|
+
const s = fr(o), c = ur(i, o.props);
|
|
118
|
+
return o.type !== a.Fragment && (c.ref = r ? Ht(r, s) : s), a.cloneElement(o, c);
|
|
134
119
|
}
|
|
135
120
|
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
136
121
|
});
|
|
137
122
|
return t.displayName = `${e}.SlotClone`, t;
|
|
138
123
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
124
|
+
var ar = Symbol("radix.slottable");
|
|
125
|
+
function lr(e) {
|
|
126
|
+
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ar;
|
|
142
127
|
}
|
|
143
|
-
function
|
|
128
|
+
function ur(e, t) {
|
|
144
129
|
const n = { ...t };
|
|
145
130
|
for (const r in t) {
|
|
146
131
|
const o = e[r], i = t[r];
|
|
@@ -151,12 +136,11 @@ function hr(e, t) {
|
|
|
151
136
|
}
|
|
152
137
|
return { ...e, ...n };
|
|
153
138
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
139
|
+
function fr(e) {
|
|
140
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
141
|
+
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);
|
|
158
142
|
}
|
|
159
|
-
var
|
|
143
|
+
var dr = [
|
|
160
144
|
"a",
|
|
161
145
|
"button",
|
|
162
146
|
"div",
|
|
@@ -174,31 +158,29 @@ var mr = [
|
|
|
174
158
|
"span",
|
|
175
159
|
"svg",
|
|
176
160
|
"ul"
|
|
177
|
-
], G =
|
|
178
|
-
const n = /* @__PURE__ */
|
|
161
|
+
], G = dr.reduce((e, t) => {
|
|
162
|
+
const n = /* @__PURE__ */ Vt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
|
|
179
163
|
const { asChild: s, ...c } = o, u = s ? n : t;
|
|
180
164
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(u, { ...c, ref: i });
|
|
181
165
|
});
|
|
182
166
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
183
167
|
}, {});
|
|
184
|
-
function
|
|
185
|
-
e &&
|
|
168
|
+
function pr(e, t) {
|
|
169
|
+
e && $t.flushSync(() => e.dispatchEvent(t));
|
|
186
170
|
}
|
|
187
|
-
function
|
|
171
|
+
function zt(e, t = []) {
|
|
188
172
|
let n = [];
|
|
189
173
|
function r(i, s) {
|
|
190
174
|
const c = a.createContext(s), u = n.length;
|
|
191
175
|
n = [...n, s];
|
|
192
176
|
const l = (d) => {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return /* @__PURE__ */ C(h.Provider, { value: v, children: m });
|
|
177
|
+
const { scope: m, children: h, ...v } = d, p = m?.[e]?.[u] || c, g = a.useMemo(() => v, Object.values(v));
|
|
178
|
+
return /* @__PURE__ */ C(p.Provider, { value: g, children: h });
|
|
196
179
|
};
|
|
197
180
|
l.displayName = i + "Provider";
|
|
198
|
-
function f(d,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (g) return g;
|
|
181
|
+
function f(d, m) {
|
|
182
|
+
const h = m?.[e]?.[u] || c, v = a.useContext(h);
|
|
183
|
+
if (v) return v;
|
|
202
184
|
if (s !== void 0) return s;
|
|
203
185
|
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
204
186
|
}
|
|
@@ -207,16 +189,16 @@ function Xt(e, t = []) {
|
|
|
207
189
|
const o = () => {
|
|
208
190
|
const i = n.map((s) => a.createContext(s));
|
|
209
191
|
return function(c) {
|
|
210
|
-
const u =
|
|
192
|
+
const u = c?.[e] || i;
|
|
211
193
|
return a.useMemo(
|
|
212
194
|
() => ({ [`__scope${e}`]: { ...c, [e]: u } }),
|
|
213
195
|
[c, u]
|
|
214
196
|
);
|
|
215
197
|
};
|
|
216
198
|
};
|
|
217
|
-
return o.scopeName = e, [r,
|
|
199
|
+
return o.scopeName = e, [r, hr(o, ...t)];
|
|
218
200
|
}
|
|
219
|
-
function
|
|
201
|
+
function hr(...e) {
|
|
220
202
|
const t = e[0];
|
|
221
203
|
if (e.length === 1) return t;
|
|
222
204
|
const n = () => {
|
|
@@ -236,20 +218,20 @@ function gr(...e) {
|
|
|
236
218
|
}
|
|
237
219
|
function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
238
220
|
return function(o) {
|
|
239
|
-
if (e
|
|
240
|
-
return t
|
|
221
|
+
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
222
|
+
return t?.(o);
|
|
241
223
|
};
|
|
242
224
|
}
|
|
243
|
-
var ee = globalThis
|
|
244
|
-
},
|
|
245
|
-
function
|
|
225
|
+
var ee = globalThis?.document ? a.useLayoutEffect : () => {
|
|
226
|
+
}, mr = a[" useInsertionEffect ".trim().toString()] || ee;
|
|
227
|
+
function vr({
|
|
246
228
|
prop: e,
|
|
247
229
|
defaultProp: t,
|
|
248
230
|
onChange: n = () => {
|
|
249
231
|
},
|
|
250
232
|
caller: r
|
|
251
233
|
}) {
|
|
252
|
-
const [o, i, s] =
|
|
234
|
+
const [o, i, s] = gr({
|
|
253
235
|
defaultProp: t,
|
|
254
236
|
onChange: n
|
|
255
237
|
}), c = e !== void 0, u = c ? e : o;
|
|
@@ -264,10 +246,9 @@ function wr({
|
|
|
264
246
|
}
|
|
265
247
|
const l = a.useCallback(
|
|
266
248
|
(f) => {
|
|
267
|
-
var d;
|
|
268
249
|
if (c) {
|
|
269
|
-
const
|
|
270
|
-
|
|
250
|
+
const d = yr(f) ? f(e) : f;
|
|
251
|
+
d !== e && s.current?.(d);
|
|
271
252
|
} else
|
|
272
253
|
i(f);
|
|
273
254
|
},
|
|
@@ -275,31 +256,30 @@ function wr({
|
|
|
275
256
|
);
|
|
276
257
|
return [u, l];
|
|
277
258
|
}
|
|
278
|
-
function
|
|
259
|
+
function gr({
|
|
279
260
|
defaultProp: e,
|
|
280
261
|
onChange: t
|
|
281
262
|
}) {
|
|
282
263
|
const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
|
|
283
|
-
return
|
|
264
|
+
return mr(() => {
|
|
284
265
|
i.current = t;
|
|
285
266
|
}, [t]), a.useEffect(() => {
|
|
286
|
-
|
|
287
|
-
o.current !== n && ((s = i.current) == null || s.call(i, n), o.current = n);
|
|
267
|
+
o.current !== n && (i.current?.(n), o.current = n);
|
|
288
268
|
}, [n, o]), [n, r, i];
|
|
289
269
|
}
|
|
290
|
-
function
|
|
270
|
+
function yr(e) {
|
|
291
271
|
return typeof e == "function";
|
|
292
272
|
}
|
|
293
|
-
function
|
|
273
|
+
function wr(e, t) {
|
|
294
274
|
return a.useReducer((n, r) => t[n][r] ?? n, e);
|
|
295
275
|
}
|
|
296
|
-
var
|
|
297
|
-
const { present: t, children: n } = e, r =
|
|
276
|
+
var rt = (e) => {
|
|
277
|
+
const { present: t, children: n } = e, r = br(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, xr(o));
|
|
298
278
|
return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
|
|
299
279
|
};
|
|
300
|
-
|
|
301
|
-
function
|
|
302
|
-
const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] =
|
|
280
|
+
rt.displayName = "Presence";
|
|
281
|
+
function br(e) {
|
|
282
|
+
const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = wr(s, {
|
|
303
283
|
mounted: {
|
|
304
284
|
UNMOUNT: "unmounted",
|
|
305
285
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -313,30 +293,30 @@ function Cr(e) {
|
|
|
313
293
|
}
|
|
314
294
|
});
|
|
315
295
|
return a.useEffect(() => {
|
|
316
|
-
const l =
|
|
296
|
+
const l = Ce(r.current);
|
|
317
297
|
i.current = c === "mounted" ? l : "none";
|
|
318
298
|
}, [c]), ee(() => {
|
|
319
299
|
const l = r.current, f = o.current;
|
|
320
300
|
if (f !== e) {
|
|
321
|
-
const
|
|
322
|
-
e ? u("MOUNT") :
|
|
301
|
+
const m = i.current, h = Ce(l);
|
|
302
|
+
e ? u("MOUNT") : h === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
323
303
|
}
|
|
324
304
|
}, [e, u]), ee(() => {
|
|
325
305
|
if (t) {
|
|
326
306
|
let l;
|
|
327
|
-
const f = t.ownerDocument.defaultView ?? window, d = (
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
const
|
|
307
|
+
const f = t.ownerDocument.defaultView ?? window, d = (h) => {
|
|
308
|
+
const p = Ce(r.current).includes(h.animationName);
|
|
309
|
+
if (h.target === t && p && (u("ANIMATION_END"), !o.current)) {
|
|
310
|
+
const g = t.style.animationFillMode;
|
|
331
311
|
t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
|
|
332
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
312
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
|
|
333
313
|
});
|
|
334
314
|
}
|
|
335
|
-
},
|
|
336
|
-
|
|
315
|
+
}, m = (h) => {
|
|
316
|
+
h.target === t && (i.current = Ce(r.current));
|
|
337
317
|
};
|
|
338
|
-
return t.addEventListener("animationstart",
|
|
339
|
-
f.clearTimeout(l), t.removeEventListener("animationstart",
|
|
318
|
+
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
319
|
+
f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
340
320
|
};
|
|
341
321
|
} else
|
|
342
322
|
u("ANIMATION_END");
|
|
@@ -347,32 +327,28 @@ function Cr(e) {
|
|
|
347
327
|
}, [])
|
|
348
328
|
};
|
|
349
329
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
330
|
+
function Ce(e) {
|
|
331
|
+
return e?.animationName || "none";
|
|
332
|
+
}
|
|
333
|
+
function xr(e) {
|
|
334
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
335
|
+
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);
|
|
352
336
|
}
|
|
337
|
+
var Er = a[" useId ".trim().toString()] || (() => {
|
|
338
|
+
}), Cr = 0;
|
|
353
339
|
function Pr(e) {
|
|
354
|
-
|
|
355
|
-
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
356
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
357
|
-
}
|
|
358
|
-
var Ar = a[" useId ".trim().toString()] || (() => {
|
|
359
|
-
}), Sr = 0;
|
|
360
|
-
function Rr(e) {
|
|
361
|
-
const [t, n] = a.useState(Ar());
|
|
340
|
+
const [t, n] = a.useState(Er());
|
|
362
341
|
return ee(() => {
|
|
363
|
-
n((r) => r ?? String(
|
|
342
|
+
n((r) => r ?? String(Cr++));
|
|
364
343
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
365
344
|
}
|
|
366
345
|
function fe(e) {
|
|
367
346
|
const t = a.useRef(e);
|
|
368
347
|
return a.useEffect(() => {
|
|
369
348
|
t.current = e;
|
|
370
|
-
}), a.useMemo(() => (...n) =>
|
|
371
|
-
var r;
|
|
372
|
-
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
373
|
-
}, []);
|
|
349
|
+
}), a.useMemo(() => (...n) => t.current?.(...n), []);
|
|
374
350
|
}
|
|
375
|
-
function
|
|
351
|
+
function Sr(e, t = globalThis?.document) {
|
|
376
352
|
const n = fe(e);
|
|
377
353
|
a.useEffect(() => {
|
|
378
354
|
const r = (o) => {
|
|
@@ -381,11 +357,11 @@ function Or(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
381
357
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
382
358
|
}, [n, t]);
|
|
383
359
|
}
|
|
384
|
-
var
|
|
360
|
+
var Ar = "DismissableLayer", Qe = "dismissableLayer.update", Rr = "dismissableLayer.pointerDownOutside", Or = "dismissableLayer.focusOutside", gt, Ut = a.createContext({
|
|
385
361
|
layers: /* @__PURE__ */ new Set(),
|
|
386
362
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
387
363
|
branches: /* @__PURE__ */ new Set()
|
|
388
|
-
}),
|
|
364
|
+
}), jt = a.forwardRef(
|
|
389
365
|
(e, t) => {
|
|
390
366
|
const {
|
|
391
367
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -395,36 +371,36 @@ var Nr = "DismissableLayer", Je = "dismissableLayer.update", Mr = "dismissableLa
|
|
|
395
371
|
onInteractOutside: s,
|
|
396
372
|
onDismiss: c,
|
|
397
373
|
...u
|
|
398
|
-
} = e, l = a.useContext(
|
|
399
|
-
const R = P.target,
|
|
400
|
-
!b ||
|
|
401
|
-
},
|
|
374
|
+
} = e, l = a.useContext(Ut), [f, d] = a.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), v = re(t, (P) => d(P)), p = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g), w = f ? p.indexOf(f) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, E = Mr((P) => {
|
|
375
|
+
const R = P.target, T = [...l.branches].some((O) => O.contains(R));
|
|
376
|
+
!b || T || (o?.(P), s?.(P), P.defaultPrevented || c?.());
|
|
377
|
+
}, m), S = kr((P) => {
|
|
402
378
|
const R = P.target;
|
|
403
|
-
[...l.branches].some((O) => O.contains(R)) || (i
|
|
404
|
-
},
|
|
405
|
-
return
|
|
406
|
-
w === l.layers.size - 1 && (r
|
|
407
|
-
},
|
|
379
|
+
[...l.branches].some((O) => O.contains(R)) || (i?.(P), s?.(P), P.defaultPrevented || c?.());
|
|
380
|
+
}, m);
|
|
381
|
+
return Sr((P) => {
|
|
382
|
+
w === l.layers.size - 1 && (r?.(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
|
|
383
|
+
}, m), a.useEffect(() => {
|
|
408
384
|
if (f)
|
|
409
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
410
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (
|
|
385
|
+
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (gt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), yt(), () => {
|
|
386
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = gt);
|
|
411
387
|
};
|
|
412
|
-
}, [f,
|
|
413
|
-
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
388
|
+
}, [f, m, n, l]), a.useEffect(() => () => {
|
|
389
|
+
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), yt());
|
|
414
390
|
}, [f, l]), a.useEffect(() => {
|
|
415
|
-
const P = () =>
|
|
416
|
-
return document.addEventListener(
|
|
391
|
+
const P = () => h({});
|
|
392
|
+
return document.addEventListener(Qe, P), () => document.removeEventListener(Qe, P);
|
|
417
393
|
}, []), /* @__PURE__ */ C(
|
|
418
394
|
G.div,
|
|
419
395
|
{
|
|
420
396
|
...u,
|
|
421
|
-
ref:
|
|
397
|
+
ref: v,
|
|
422
398
|
style: {
|
|
423
399
|
pointerEvents: x ? b ? "auto" : "none" : void 0,
|
|
424
400
|
...e.style
|
|
425
401
|
},
|
|
426
|
-
onFocusCapture: J(e.onFocusCapture,
|
|
427
|
-
onBlurCapture: J(e.onBlurCapture,
|
|
402
|
+
onFocusCapture: J(e.onFocusCapture, S.onFocusCapture),
|
|
403
|
+
onBlurCapture: J(e.onBlurCapture, S.onBlurCapture),
|
|
428
404
|
onPointerDownCapture: J(
|
|
429
405
|
e.onPointerDownCapture,
|
|
430
406
|
E.onPointerDownCapture
|
|
@@ -433,9 +409,9 @@ var Nr = "DismissableLayer", Je = "dismissableLayer.update", Mr = "dismissableLa
|
|
|
433
409
|
);
|
|
434
410
|
}
|
|
435
411
|
);
|
|
436
|
-
|
|
437
|
-
var
|
|
438
|
-
const n = a.useContext(
|
|
412
|
+
jt.displayName = Ar;
|
|
413
|
+
var Nr = "DismissableLayerBranch", Tr = a.forwardRef((e, t) => {
|
|
414
|
+
const n = a.useContext(Ut), r = a.useRef(null), o = re(t, r);
|
|
439
415
|
return a.useEffect(() => {
|
|
440
416
|
const i = r.current;
|
|
441
417
|
if (i)
|
|
@@ -444,16 +420,16 @@ var kr = "DismissableLayerBranch", Lr = a.forwardRef((e, t) => {
|
|
|
444
420
|
};
|
|
445
421
|
}, [n.branches]), /* @__PURE__ */ C(G.div, { ...e, ref: o });
|
|
446
422
|
});
|
|
447
|
-
|
|
448
|
-
function
|
|
423
|
+
Tr.displayName = Nr;
|
|
424
|
+
function Mr(e, t = globalThis?.document) {
|
|
449
425
|
const n = fe(e), r = a.useRef(!1), o = a.useRef(() => {
|
|
450
426
|
});
|
|
451
427
|
return a.useEffect(() => {
|
|
452
428
|
const i = (c) => {
|
|
453
429
|
if (c.target && !r.current) {
|
|
454
430
|
let u = function() {
|
|
455
|
-
|
|
456
|
-
|
|
431
|
+
Yt(
|
|
432
|
+
Rr,
|
|
457
433
|
n,
|
|
458
434
|
l,
|
|
459
435
|
{ discrete: !0 }
|
|
@@ -475,11 +451,11 @@ function Dr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
475
451
|
onPointerDownCapture: () => r.current = !0
|
|
476
452
|
};
|
|
477
453
|
}
|
|
478
|
-
function
|
|
454
|
+
function kr(e, t = globalThis?.document) {
|
|
479
455
|
const n = fe(e), r = a.useRef(!1);
|
|
480
456
|
return a.useEffect(() => {
|
|
481
457
|
const o = (i) => {
|
|
482
|
-
i.target && !r.current &&
|
|
458
|
+
i.target && !r.current && Yt(Or, n, { originalEvent: i }, {
|
|
483
459
|
discrete: !1
|
|
484
460
|
});
|
|
485
461
|
};
|
|
@@ -489,22 +465,22 @@ function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
489
465
|
onBlurCapture: () => r.current = !1
|
|
490
466
|
};
|
|
491
467
|
}
|
|
492
|
-
function
|
|
493
|
-
const e = new CustomEvent(
|
|
468
|
+
function yt() {
|
|
469
|
+
const e = new CustomEvent(Qe);
|
|
494
470
|
document.dispatchEvent(e);
|
|
495
471
|
}
|
|
496
|
-
function
|
|
472
|
+
function Yt(e, t, n, { discrete: r }) {
|
|
497
473
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
498
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
474
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? pr(o, i) : o.dispatchEvent(i);
|
|
499
475
|
}
|
|
500
|
-
var
|
|
476
|
+
var Ve = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", wt = { bubbles: !1, cancelable: !0 }, Lr = "FocusScope", Kt = a.forwardRef((e, t) => {
|
|
501
477
|
const {
|
|
502
478
|
loop: n = !1,
|
|
503
479
|
trapped: r = !1,
|
|
504
480
|
onMountAutoFocus: o,
|
|
505
481
|
onUnmountAutoFocus: i,
|
|
506
482
|
...s
|
|
507
|
-
} = e, [c, u] = a.useState(null), l = fe(o), f = fe(i), d = a.useRef(null),
|
|
483
|
+
} = e, [c, u] = a.useState(null), l = fe(o), f = fe(i), d = a.useRef(null), m = re(t, (p) => u(p)), h = a.useRef({
|
|
508
484
|
paused: !1,
|
|
509
485
|
pause() {
|
|
510
486
|
this.paused = !0;
|
|
@@ -515,12 +491,12 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
|
|
|
515
491
|
}).current;
|
|
516
492
|
a.useEffect(() => {
|
|
517
493
|
if (r) {
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
494
|
+
let p = function(x) {
|
|
495
|
+
if (h.paused || !c) return;
|
|
520
496
|
const b = x.target;
|
|
521
497
|
c.contains(b) ? d.current = b : q(d.current, { select: !0 });
|
|
522
|
-
},
|
|
523
|
-
if (
|
|
498
|
+
}, g = function(x) {
|
|
499
|
+
if (h.paused || !c) return;
|
|
524
500
|
const b = x.relatedTarget;
|
|
525
501
|
b !== null && (c.contains(b) || q(d.current, { select: !0 }));
|
|
526
502
|
}, y = function(x) {
|
|
@@ -528,52 +504,52 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
|
|
|
528
504
|
for (const E of x)
|
|
529
505
|
E.removedNodes.length > 0 && q(c);
|
|
530
506
|
};
|
|
531
|
-
document.addEventListener("focusin",
|
|
507
|
+
document.addEventListener("focusin", p), document.addEventListener("focusout", g);
|
|
532
508
|
const w = new MutationObserver(y);
|
|
533
509
|
return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
|
|
534
|
-
document.removeEventListener("focusin",
|
|
510
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", g), w.disconnect();
|
|
535
511
|
};
|
|
536
512
|
}
|
|
537
|
-
}, [r, c,
|
|
513
|
+
}, [r, c, h.paused]), a.useEffect(() => {
|
|
538
514
|
if (c) {
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
if (!c.contains(
|
|
542
|
-
const y = new CustomEvent(
|
|
543
|
-
c.addEventListener(
|
|
515
|
+
xt.add(h);
|
|
516
|
+
const p = document.activeElement;
|
|
517
|
+
if (!c.contains(p)) {
|
|
518
|
+
const y = new CustomEvent(Ve, wt);
|
|
519
|
+
c.addEventListener(Ve, l), c.dispatchEvent(y), y.defaultPrevented || (Dr(Br(Xt(c)), { select: !0 }), document.activeElement === p && q(c));
|
|
544
520
|
}
|
|
545
521
|
return () => {
|
|
546
|
-
c.removeEventListener(
|
|
547
|
-
const y = new CustomEvent(ze,
|
|
548
|
-
c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || q(
|
|
522
|
+
c.removeEventListener(Ve, l), setTimeout(() => {
|
|
523
|
+
const y = new CustomEvent(ze, wt);
|
|
524
|
+
c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || q(p ?? document.body, { select: !0 }), c.removeEventListener(ze, f), xt.remove(h);
|
|
549
525
|
}, 0);
|
|
550
526
|
};
|
|
551
527
|
}
|
|
552
|
-
}, [c, l, f,
|
|
553
|
-
const
|
|
554
|
-
(
|
|
555
|
-
if (!n && !r ||
|
|
556
|
-
const
|
|
557
|
-
if (
|
|
558
|
-
const w =
|
|
559
|
-
x && b ? !
|
|
528
|
+
}, [c, l, f, h]);
|
|
529
|
+
const v = a.useCallback(
|
|
530
|
+
(p) => {
|
|
531
|
+
if (!n && !r || h.paused) return;
|
|
532
|
+
const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
|
|
533
|
+
if (g && y) {
|
|
534
|
+
const w = p.currentTarget, [x, b] = _r(w);
|
|
535
|
+
x && b ? !p.shiftKey && y === b ? (p.preventDefault(), n && q(x, { select: !0 })) : p.shiftKey && y === x && (p.preventDefault(), n && q(b, { select: !0 })) : y === w && p.preventDefault();
|
|
560
536
|
}
|
|
561
537
|
},
|
|
562
|
-
[n, r,
|
|
538
|
+
[n, r, h.paused]
|
|
563
539
|
);
|
|
564
|
-
return /* @__PURE__ */ C(G.div, { tabIndex: -1, ...s, ref:
|
|
540
|
+
return /* @__PURE__ */ C(G.div, { tabIndex: -1, ...s, ref: m, onKeyDown: v });
|
|
565
541
|
});
|
|
566
|
-
|
|
567
|
-
function
|
|
542
|
+
Kt.displayName = Lr;
|
|
543
|
+
function Dr(e, { select: t = !1 } = {}) {
|
|
568
544
|
const n = document.activeElement;
|
|
569
545
|
for (const r of e)
|
|
570
546
|
if (q(r, { select: t }), document.activeElement !== n) return;
|
|
571
547
|
}
|
|
572
|
-
function
|
|
573
|
-
const t =
|
|
548
|
+
function _r(e) {
|
|
549
|
+
const t = Xt(e), n = bt(t, e), r = bt(t.reverse(), e);
|
|
574
550
|
return [n, r];
|
|
575
551
|
}
|
|
576
|
-
function
|
|
552
|
+
function Xt(e) {
|
|
577
553
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
578
554
|
acceptNode: (r) => {
|
|
579
555
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -583,11 +559,11 @@ function Qt(e) {
|
|
|
583
559
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
584
560
|
return t;
|
|
585
561
|
}
|
|
586
|
-
function
|
|
562
|
+
function bt(e, t) {
|
|
587
563
|
for (const n of e)
|
|
588
|
-
if (!
|
|
564
|
+
if (!Fr(n, { upTo: t })) return n;
|
|
589
565
|
}
|
|
590
|
-
function
|
|
566
|
+
function Fr(e, { upTo: t }) {
|
|
591
567
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
592
568
|
for (; e; ) {
|
|
593
569
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -596,67 +572,65 @@ function Br(e, { upTo: t }) {
|
|
|
596
572
|
}
|
|
597
573
|
return !1;
|
|
598
574
|
}
|
|
599
|
-
function
|
|
575
|
+
function Ir(e) {
|
|
600
576
|
return e instanceof HTMLInputElement && "select" in e;
|
|
601
577
|
}
|
|
602
578
|
function q(e, { select: t = !1 } = {}) {
|
|
603
579
|
if (e && e.focus) {
|
|
604
580
|
const n = document.activeElement;
|
|
605
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
581
|
+
e.focus({ preventScroll: !0 }), e !== n && Ir(e) && t && e.select();
|
|
606
582
|
}
|
|
607
583
|
}
|
|
608
|
-
var
|
|
609
|
-
function
|
|
584
|
+
var xt = Wr();
|
|
585
|
+
function Wr() {
|
|
610
586
|
let e = [];
|
|
611
587
|
return {
|
|
612
588
|
add(t) {
|
|
613
589
|
const n = e[0];
|
|
614
|
-
t !== n &&
|
|
590
|
+
t !== n && n?.pause(), e = Et(e, t), e.unshift(t);
|
|
615
591
|
},
|
|
616
592
|
remove(t) {
|
|
617
|
-
|
|
618
|
-
e = Ot(e, t), (n = e[0]) == null || n.resume();
|
|
593
|
+
e = Et(e, t), e[0]?.resume();
|
|
619
594
|
}
|
|
620
595
|
};
|
|
621
596
|
}
|
|
622
|
-
function
|
|
597
|
+
function Et(e, t) {
|
|
623
598
|
const n = [...e], r = n.indexOf(t);
|
|
624
599
|
return r !== -1 && n.splice(r, 1), n;
|
|
625
600
|
}
|
|
626
|
-
function
|
|
601
|
+
function Br(e) {
|
|
627
602
|
return e.filter((t) => t.tagName !== "A");
|
|
628
603
|
}
|
|
629
|
-
var
|
|
630
|
-
var c;
|
|
604
|
+
var $r = "Portal", Zt = a.forwardRef((e, t) => {
|
|
631
605
|
const { container: n, ...r } = e, [o, i] = a.useState(!1);
|
|
632
606
|
ee(() => i(!0), []);
|
|
633
|
-
const s = n || o &&
|
|
634
|
-
return s ?
|
|
607
|
+
const s = n || o && globalThis?.document?.body;
|
|
608
|
+
return s ? nr.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
|
|
635
609
|
});
|
|
636
|
-
|
|
637
|
-
var
|
|
638
|
-
function
|
|
610
|
+
Zt.displayName = $r;
|
|
611
|
+
var Ue = 0;
|
|
612
|
+
function Hr() {
|
|
639
613
|
a.useEffect(() => {
|
|
640
614
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
641
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
642
|
-
|
|
615
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ct()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ct()), Ue++, () => {
|
|
616
|
+
Ue === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ue--;
|
|
643
617
|
};
|
|
644
618
|
}, []);
|
|
645
619
|
}
|
|
646
|
-
function
|
|
620
|
+
function Ct() {
|
|
647
621
|
const e = document.createElement("span");
|
|
648
622
|
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;
|
|
649
623
|
}
|
|
650
|
-
var
|
|
651
|
-
return
|
|
624
|
+
var z = function() {
|
|
625
|
+
return z = Object.assign || function(t) {
|
|
652
626
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
653
627
|
n = arguments[r];
|
|
654
628
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
655
629
|
}
|
|
656
630
|
return t;
|
|
657
|
-
},
|
|
631
|
+
}, z.apply(this, arguments);
|
|
658
632
|
};
|
|
659
|
-
function
|
|
633
|
+
function Gt(e, t) {
|
|
660
634
|
var n = {};
|
|
661
635
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
662
636
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -664,17 +638,17 @@ function en(e, t) {
|
|
|
664
638
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
665
639
|
return n;
|
|
666
640
|
}
|
|
667
|
-
function
|
|
641
|
+
function Vr(e, t, n) {
|
|
668
642
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
669
643
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
670
644
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
671
645
|
}
|
|
672
|
-
var
|
|
673
|
-
function
|
|
646
|
+
var Ne = "right-scroll-bar-position", Te = "width-before-scroll-bar", zr = "with-scroll-bars-hidden", Ur = "--removed-body-scroll-bar-size";
|
|
647
|
+
function je(e, t) {
|
|
674
648
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
675
649
|
}
|
|
676
|
-
function
|
|
677
|
-
var n =
|
|
650
|
+
function jr(e, t) {
|
|
651
|
+
var n = qn(function() {
|
|
678
652
|
return {
|
|
679
653
|
// value
|
|
680
654
|
value: e,
|
|
@@ -694,31 +668,31 @@ function Kr(e, t) {
|
|
|
694
668
|
})[0];
|
|
695
669
|
return n.callback = t, n.facade;
|
|
696
670
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
var n =
|
|
671
|
+
var Yr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Pt = /* @__PURE__ */ new WeakMap();
|
|
672
|
+
function Kr(e, t) {
|
|
673
|
+
var n = jr(null, function(r) {
|
|
700
674
|
return e.forEach(function(o) {
|
|
701
|
-
return
|
|
675
|
+
return je(o, r);
|
|
702
676
|
});
|
|
703
677
|
});
|
|
704
|
-
return
|
|
705
|
-
var r =
|
|
678
|
+
return Yr(function() {
|
|
679
|
+
var r = Pt.get(n);
|
|
706
680
|
if (r) {
|
|
707
681
|
var o = new Set(r), i = new Set(e), s = n.current;
|
|
708
682
|
o.forEach(function(c) {
|
|
709
|
-
i.has(c) ||
|
|
683
|
+
i.has(c) || je(c, null);
|
|
710
684
|
}), i.forEach(function(c) {
|
|
711
|
-
o.has(c) ||
|
|
685
|
+
o.has(c) || je(c, s);
|
|
712
686
|
});
|
|
713
687
|
}
|
|
714
|
-
|
|
688
|
+
Pt.set(n, e);
|
|
715
689
|
}, [e]), n;
|
|
716
690
|
}
|
|
717
|
-
function
|
|
691
|
+
function Xr(e) {
|
|
718
692
|
return e;
|
|
719
693
|
}
|
|
720
|
-
function
|
|
721
|
-
t === void 0 && (t =
|
|
694
|
+
function Zr(e, t) {
|
|
695
|
+
t === void 0 && (t = Xr);
|
|
722
696
|
var n = [], r = !1, o = {
|
|
723
697
|
read: function() {
|
|
724
698
|
if (r)
|
|
@@ -772,78 +746,78 @@ function Qr(e, t) {
|
|
|
772
746
|
};
|
|
773
747
|
return o;
|
|
774
748
|
}
|
|
775
|
-
function
|
|
749
|
+
function Gr(e) {
|
|
776
750
|
e === void 0 && (e = {});
|
|
777
|
-
var t =
|
|
778
|
-
return t.options =
|
|
751
|
+
var t = Zr(null);
|
|
752
|
+
return t.options = z({ async: !0, ssr: !1 }, e), t;
|
|
779
753
|
}
|
|
780
|
-
var
|
|
781
|
-
var t = e.sideCar, n =
|
|
754
|
+
var qt = function(e) {
|
|
755
|
+
var t = e.sideCar, n = Gt(e, ["sideCar"]);
|
|
782
756
|
if (!t)
|
|
783
757
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
784
758
|
var r = t.read();
|
|
785
759
|
if (!r)
|
|
786
760
|
throw new Error("Sidecar medium not found");
|
|
787
|
-
return a.createElement(r,
|
|
761
|
+
return a.createElement(r, z({}, n));
|
|
788
762
|
};
|
|
789
|
-
|
|
790
|
-
function
|
|
791
|
-
return e.useMedium(t),
|
|
763
|
+
qt.isSideCarExport = !0;
|
|
764
|
+
function qr(e, t) {
|
|
765
|
+
return e.useMedium(t), qt;
|
|
792
766
|
}
|
|
793
|
-
var
|
|
794
|
-
},
|
|
767
|
+
var Qt = Gr(), Ye = function() {
|
|
768
|
+
}, Ie = a.forwardRef(function(e, t) {
|
|
795
769
|
var n = a.useRef(null), r = a.useState({
|
|
796
|
-
onScrollCapture:
|
|
797
|
-
onWheelCapture:
|
|
798
|
-
onTouchMoveCapture:
|
|
799
|
-
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards,
|
|
770
|
+
onScrollCapture: Ye,
|
|
771
|
+
onWheelCapture: Ye,
|
|
772
|
+
onTouchMoveCapture: Ye
|
|
773
|
+
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, m = e.sideCar, h = e.noRelative, v = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, b = Gt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m, S = Kr([n, t]), P = z(z({}, b), o);
|
|
800
774
|
return a.createElement(
|
|
801
775
|
a.Fragment,
|
|
802
776
|
null,
|
|
803
|
-
f && a.createElement(E, { sideCar:
|
|
804
|
-
s ? a.cloneElement(a.Children.only(c),
|
|
777
|
+
f && a.createElement(E, { sideCar: Qt, removeScrollBar: l, shards: d, noRelative: h, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
|
|
778
|
+
s ? a.cloneElement(a.Children.only(c), z(z({}, P), { ref: S })) : a.createElement(w, z({}, P, { className: u, ref: S }), c)
|
|
805
779
|
);
|
|
806
780
|
});
|
|
807
|
-
|
|
781
|
+
Ie.defaultProps = {
|
|
808
782
|
enabled: !0,
|
|
809
783
|
removeScrollBar: !0,
|
|
810
784
|
inert: !1
|
|
811
785
|
};
|
|
812
|
-
|
|
813
|
-
fullWidth:
|
|
814
|
-
zeroRight:
|
|
786
|
+
Ie.classNames = {
|
|
787
|
+
fullWidth: Te,
|
|
788
|
+
zeroRight: Ne
|
|
815
789
|
};
|
|
816
|
-
var
|
|
790
|
+
var Qr = function() {
|
|
817
791
|
if (typeof __webpack_nonce__ < "u")
|
|
818
792
|
return __webpack_nonce__;
|
|
819
793
|
};
|
|
820
|
-
function
|
|
794
|
+
function Jr() {
|
|
821
795
|
if (!document)
|
|
822
796
|
return null;
|
|
823
797
|
var e = document.createElement("style");
|
|
824
798
|
e.type = "text/css";
|
|
825
|
-
var t =
|
|
799
|
+
var t = Qr();
|
|
826
800
|
return t && e.setAttribute("nonce", t), e;
|
|
827
801
|
}
|
|
828
|
-
function
|
|
802
|
+
function eo(e, t) {
|
|
829
803
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
830
804
|
}
|
|
831
|
-
function
|
|
805
|
+
function to(e) {
|
|
832
806
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
833
807
|
t.appendChild(e);
|
|
834
808
|
}
|
|
835
|
-
var
|
|
809
|
+
var no = function() {
|
|
836
810
|
var e = 0, t = null;
|
|
837
811
|
return {
|
|
838
812
|
add: function(n) {
|
|
839
|
-
e == 0 && (t =
|
|
813
|
+
e == 0 && (t = Jr()) && (eo(t, n), to(t)), e++;
|
|
840
814
|
},
|
|
841
815
|
remove: function() {
|
|
842
816
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
843
817
|
}
|
|
844
818
|
};
|
|
845
|
-
},
|
|
846
|
-
var e =
|
|
819
|
+
}, ro = function() {
|
|
820
|
+
var e = no();
|
|
847
821
|
return function(t, n) {
|
|
848
822
|
a.useEffect(function() {
|
|
849
823
|
return e.add(t), function() {
|
|
@@ -851,36 +825,36 @@ var io = function() {
|
|
|
851
825
|
};
|
|
852
826
|
}, [t && n]);
|
|
853
827
|
};
|
|
854
|
-
},
|
|
855
|
-
var e =
|
|
828
|
+
}, Jt = function() {
|
|
829
|
+
var e = ro(), t = function(n) {
|
|
856
830
|
var r = n.styles, o = n.dynamic;
|
|
857
831
|
return e(r, o), null;
|
|
858
832
|
};
|
|
859
833
|
return t;
|
|
860
|
-
},
|
|
834
|
+
}, oo = {
|
|
861
835
|
left: 0,
|
|
862
836
|
top: 0,
|
|
863
837
|
right: 0,
|
|
864
838
|
gap: 0
|
|
865
839
|
}, Ke = function(e) {
|
|
866
840
|
return parseInt(e || "", 10) || 0;
|
|
867
|
-
},
|
|
841
|
+
}, io = function(e) {
|
|
868
842
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
869
843
|
return [Ke(n), Ke(r), Ke(o)];
|
|
870
|
-
},
|
|
844
|
+
}, so = function(e) {
|
|
871
845
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
872
|
-
return
|
|
873
|
-
var t =
|
|
846
|
+
return oo;
|
|
847
|
+
var t = io(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
874
848
|
return {
|
|
875
849
|
left: t[0],
|
|
876
850
|
top: t[1],
|
|
877
851
|
right: t[2],
|
|
878
852
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
879
853
|
};
|
|
880
|
-
},
|
|
854
|
+
}, co = Jt(), le = "data-scroll-locked", ao = function(e, t, n, r) {
|
|
881
855
|
var o = e.left, i = e.top, s = e.right, c = e.gap;
|
|
882
856
|
return n === void 0 && (n = "margin"), `
|
|
883
|
-
.`.concat(
|
|
857
|
+
.`.concat(zr, ` {
|
|
884
858
|
overflow: hidden `).concat(r, `;
|
|
885
859
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
886
860
|
}
|
|
@@ -901,110 +875,110 @@ var io = function() {
|
|
|
901
875
|
].filter(Boolean).join(""), `
|
|
902
876
|
}
|
|
903
877
|
|
|
904
|
-
.`).concat(
|
|
878
|
+
.`).concat(Ne, ` {
|
|
905
879
|
right: `).concat(c, "px ").concat(r, `;
|
|
906
880
|
}
|
|
907
881
|
|
|
908
|
-
.`).concat(
|
|
882
|
+
.`).concat(Te, ` {
|
|
909
883
|
margin-right: `).concat(c, "px ").concat(r, `;
|
|
910
884
|
}
|
|
911
885
|
|
|
912
|
-
.`).concat(
|
|
886
|
+
.`).concat(Ne, " .").concat(Ne, ` {
|
|
913
887
|
right: 0 `).concat(r, `;
|
|
914
888
|
}
|
|
915
889
|
|
|
916
|
-
.`).concat(
|
|
890
|
+
.`).concat(Te, " .").concat(Te, ` {
|
|
917
891
|
margin-right: 0 `).concat(r, `;
|
|
918
892
|
}
|
|
919
893
|
|
|
920
894
|
body[`).concat(le, `] {
|
|
921
|
-
`).concat(
|
|
895
|
+
`).concat(Ur, ": ").concat(c, `px;
|
|
922
896
|
}
|
|
923
897
|
`);
|
|
924
|
-
},
|
|
898
|
+
}, St = function() {
|
|
925
899
|
var e = parseInt(document.body.getAttribute(le) || "0", 10);
|
|
926
900
|
return isFinite(e) ? e : 0;
|
|
927
|
-
},
|
|
901
|
+
}, lo = function() {
|
|
928
902
|
a.useEffect(function() {
|
|
929
|
-
return document.body.setAttribute(le, (
|
|
930
|
-
var e =
|
|
903
|
+
return document.body.setAttribute(le, (St() + 1).toString()), function() {
|
|
904
|
+
var e = St() - 1;
|
|
931
905
|
e <= 0 ? document.body.removeAttribute(le) : document.body.setAttribute(le, e.toString());
|
|
932
906
|
};
|
|
933
907
|
}, []);
|
|
934
|
-
},
|
|
908
|
+
}, uo = function(e) {
|
|
935
909
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
936
|
-
|
|
910
|
+
lo();
|
|
937
911
|
var i = a.useMemo(function() {
|
|
938
|
-
return
|
|
912
|
+
return so(o);
|
|
939
913
|
}, [o]);
|
|
940
|
-
return a.createElement(
|
|
941
|
-
},
|
|
914
|
+
return a.createElement(co, { styles: ao(i, !t, o, n ? "" : "!important") });
|
|
915
|
+
}, Je = !1;
|
|
942
916
|
if (typeof window < "u")
|
|
943
917
|
try {
|
|
944
|
-
var
|
|
918
|
+
var Pe = Object.defineProperty({}, "passive", {
|
|
945
919
|
get: function() {
|
|
946
|
-
return
|
|
920
|
+
return Je = !0, !0;
|
|
947
921
|
}
|
|
948
922
|
});
|
|
949
|
-
window.addEventListener("test",
|
|
923
|
+
window.addEventListener("test", Pe, Pe), window.removeEventListener("test", Pe, Pe);
|
|
950
924
|
} catch {
|
|
951
|
-
|
|
925
|
+
Je = !1;
|
|
952
926
|
}
|
|
953
|
-
var se =
|
|
927
|
+
var se = Je ? { passive: !1 } : !1, fo = function(e) {
|
|
954
928
|
return e.tagName === "TEXTAREA";
|
|
955
|
-
},
|
|
929
|
+
}, en = function(e, t) {
|
|
956
930
|
if (!(e instanceof Element))
|
|
957
931
|
return !1;
|
|
958
932
|
var n = window.getComputedStyle(e);
|
|
959
933
|
return (
|
|
960
934
|
// not-not-scrollable
|
|
961
935
|
n[t] !== "hidden" && // contains scroll inside self
|
|
962
|
-
!(n.overflowY === n.overflowX && !
|
|
936
|
+
!(n.overflowY === n.overflowX && !fo(e) && n[t] === "visible")
|
|
963
937
|
);
|
|
964
|
-
},
|
|
965
|
-
return
|
|
966
|
-
},
|
|
967
|
-
return
|
|
968
|
-
},
|
|
938
|
+
}, po = function(e) {
|
|
939
|
+
return en(e, "overflowY");
|
|
940
|
+
}, ho = function(e) {
|
|
941
|
+
return en(e, "overflowX");
|
|
942
|
+
}, At = function(e, t) {
|
|
969
943
|
var n = t.ownerDocument, r = t;
|
|
970
944
|
do {
|
|
971
945
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
972
|
-
var o =
|
|
946
|
+
var o = tn(e, r);
|
|
973
947
|
if (o) {
|
|
974
|
-
var i =
|
|
948
|
+
var i = nn(e, r), s = i[1], c = i[2];
|
|
975
949
|
if (s > c)
|
|
976
950
|
return !0;
|
|
977
951
|
}
|
|
978
952
|
r = r.parentNode;
|
|
979
953
|
} while (r && r !== n.body);
|
|
980
954
|
return !1;
|
|
981
|
-
},
|
|
955
|
+
}, mo = function(e) {
|
|
982
956
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
983
957
|
return [
|
|
984
958
|
t,
|
|
985
959
|
n,
|
|
986
960
|
r
|
|
987
961
|
];
|
|
988
|
-
},
|
|
962
|
+
}, vo = function(e) {
|
|
989
963
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
990
964
|
return [
|
|
991
965
|
t,
|
|
992
966
|
n,
|
|
993
967
|
r
|
|
994
968
|
];
|
|
995
|
-
},
|
|
996
|
-
return e === "v" ?
|
|
997
|
-
},
|
|
998
|
-
return e === "v" ?
|
|
999
|
-
},
|
|
969
|
+
}, tn = function(e, t) {
|
|
970
|
+
return e === "v" ? po(t) : ho(t);
|
|
971
|
+
}, nn = function(e, t) {
|
|
972
|
+
return e === "v" ? mo(t) : vo(t);
|
|
973
|
+
}, go = function(e, t) {
|
|
1000
974
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1001
|
-
},
|
|
1002
|
-
var i =
|
|
975
|
+
}, yo = function(e, t, n, r, o) {
|
|
976
|
+
var i = go(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, m = 0;
|
|
1003
977
|
do {
|
|
1004
978
|
if (!c)
|
|
1005
979
|
break;
|
|
1006
|
-
var
|
|
1007
|
-
(
|
|
980
|
+
var h = nn(e, c), v = h[0], p = h[1], g = h[2], y = p - g - i * v;
|
|
981
|
+
(v || y) && tn(e, c) && (d += y, m += v);
|
|
1008
982
|
var w = c.parentNode;
|
|
1009
983
|
c = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
1010
984
|
} while (
|
|
@@ -1012,163 +986,163 @@ var se = et ? { passive: !1 } : !1, mo = function(e) {
|
|
|
1012
986
|
!u && c !== document.body || // self content
|
|
1013
987
|
u && (t.contains(c) || t === c)
|
|
1014
988
|
);
|
|
1015
|
-
return (f && Math.abs(d) < 1 || !f && Math.abs(
|
|
1016
|
-
},
|
|
989
|
+
return (f && Math.abs(d) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
|
|
990
|
+
}, Se = function(e) {
|
|
1017
991
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1018
|
-
},
|
|
992
|
+
}, Rt = function(e) {
|
|
1019
993
|
return [e.deltaX, e.deltaY];
|
|
1020
|
-
},
|
|
994
|
+
}, Ot = function(e) {
|
|
1021
995
|
return e && "current" in e ? e.current : e;
|
|
1022
|
-
},
|
|
996
|
+
}, wo = function(e, t) {
|
|
1023
997
|
return e[0] === t[0] && e[1] === t[1];
|
|
1024
|
-
},
|
|
998
|
+
}, bo = function(e) {
|
|
1025
999
|
return `
|
|
1026
1000
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1027
1001
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1028
1002
|
`);
|
|
1029
|
-
},
|
|
1030
|
-
function
|
|
1031
|
-
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(
|
|
1003
|
+
}, xo = 0, ce = [];
|
|
1004
|
+
function Eo(e) {
|
|
1005
|
+
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(xo++)[0], i = a.useState(Jt)[0], s = a.useRef(e);
|
|
1032
1006
|
a.useEffect(function() {
|
|
1033
1007
|
s.current = e;
|
|
1034
1008
|
}, [e]), a.useEffect(function() {
|
|
1035
1009
|
if (e.inert) {
|
|
1036
1010
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
1037
|
-
var
|
|
1038
|
-
return
|
|
1039
|
-
return
|
|
1011
|
+
var p = Vr([e.lockRef.current], (e.shards || []).map(Ot), !0).filter(Boolean);
|
|
1012
|
+
return p.forEach(function(g) {
|
|
1013
|
+
return g.classList.add("allow-interactivity-".concat(o));
|
|
1040
1014
|
}), function() {
|
|
1041
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
1042
|
-
return
|
|
1015
|
+
document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(g) {
|
|
1016
|
+
return g.classList.remove("allow-interactivity-".concat(o));
|
|
1043
1017
|
});
|
|
1044
1018
|
};
|
|
1045
1019
|
}
|
|
1046
1020
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1047
|
-
var c = a.useCallback(function(
|
|
1048
|
-
if ("touches" in
|
|
1021
|
+
var c = a.useCallback(function(p, g) {
|
|
1022
|
+
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
1049
1023
|
return !s.current.allowPinchZoom;
|
|
1050
|
-
var y =
|
|
1051
|
-
if ("touches" in
|
|
1024
|
+
var y = Se(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - y[0], b = "deltaY" in p ? p.deltaY : w[1] - y[1], E, S = p.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
|
|
1025
|
+
if ("touches" in p && P === "h" && S.type === "range")
|
|
1052
1026
|
return !1;
|
|
1053
|
-
var R =
|
|
1027
|
+
var R = At(P, S);
|
|
1054
1028
|
if (!R)
|
|
1055
1029
|
return !0;
|
|
1056
|
-
if (R ? E = P : (E = P === "v" ? "h" : "v", R =
|
|
1030
|
+
if (R ? E = P : (E = P === "v" ? "h" : "v", R = At(P, S)), !R)
|
|
1057
1031
|
return !1;
|
|
1058
|
-
if (!r.current && "changedTouches" in
|
|
1032
|
+
if (!r.current && "changedTouches" in p && (x || b) && (r.current = E), !E)
|
|
1059
1033
|
return !0;
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1062
|
-
}, []), u = a.useCallback(function(
|
|
1063
|
-
var
|
|
1034
|
+
var T = r.current || E;
|
|
1035
|
+
return yo(T, g, p, T === "h" ? x : b);
|
|
1036
|
+
}, []), u = a.useCallback(function(p) {
|
|
1037
|
+
var g = p;
|
|
1064
1038
|
if (!(!ce.length || ce[ce.length - 1] !== i)) {
|
|
1065
|
-
var y = "deltaY" in
|
|
1066
|
-
return E.name ===
|
|
1039
|
+
var y = "deltaY" in g ? Rt(g) : Se(g), w = t.current.filter(function(E) {
|
|
1040
|
+
return E.name === g.type && (E.target === g.target || g.target === E.shadowParent) && wo(E.delta, y);
|
|
1067
1041
|
})[0];
|
|
1068
1042
|
if (w && w.should) {
|
|
1069
|
-
|
|
1043
|
+
g.cancelable && g.preventDefault();
|
|
1070
1044
|
return;
|
|
1071
1045
|
}
|
|
1072
1046
|
if (!w) {
|
|
1073
|
-
var x = (s.current.shards || []).map(
|
|
1074
|
-
return E.contains(
|
|
1075
|
-
}), b = x.length > 0 ? c(
|
|
1076
|
-
b &&
|
|
1047
|
+
var x = (s.current.shards || []).map(Ot).filter(Boolean).filter(function(E) {
|
|
1048
|
+
return E.contains(g.target);
|
|
1049
|
+
}), b = x.length > 0 ? c(g, x[0]) : !s.current.noIsolation;
|
|
1050
|
+
b && g.cancelable && g.preventDefault();
|
|
1077
1051
|
}
|
|
1078
1052
|
}
|
|
1079
|
-
}, []), l = a.useCallback(function(
|
|
1080
|
-
var x = { name:
|
|
1053
|
+
}, []), l = a.useCallback(function(p, g, y, w) {
|
|
1054
|
+
var x = { name: p, delta: g, target: y, should: w, shadowParent: Co(y) };
|
|
1081
1055
|
t.current.push(x), setTimeout(function() {
|
|
1082
1056
|
t.current = t.current.filter(function(b) {
|
|
1083
1057
|
return b !== x;
|
|
1084
1058
|
});
|
|
1085
1059
|
}, 1);
|
|
1086
|
-
}, []), f = a.useCallback(function(
|
|
1087
|
-
n.current =
|
|
1088
|
-
}, []), d = a.useCallback(function(
|
|
1089
|
-
l(
|
|
1090
|
-
}, []),
|
|
1091
|
-
l(
|
|
1060
|
+
}, []), f = a.useCallback(function(p) {
|
|
1061
|
+
n.current = Se(p), r.current = void 0;
|
|
1062
|
+
}, []), d = a.useCallback(function(p) {
|
|
1063
|
+
l(p.type, Rt(p), p.target, c(p, e.lockRef.current));
|
|
1064
|
+
}, []), m = a.useCallback(function(p) {
|
|
1065
|
+
l(p.type, Se(p), p.target, c(p, e.lockRef.current));
|
|
1092
1066
|
}, []);
|
|
1093
1067
|
a.useEffect(function() {
|
|
1094
1068
|
return ce.push(i), e.setCallbacks({
|
|
1095
1069
|
onScrollCapture: d,
|
|
1096
1070
|
onWheelCapture: d,
|
|
1097
|
-
onTouchMoveCapture:
|
|
1071
|
+
onTouchMoveCapture: m
|
|
1098
1072
|
}), document.addEventListener("wheel", u, se), document.addEventListener("touchmove", u, se), document.addEventListener("touchstart", f, se), function() {
|
|
1099
|
-
ce = ce.filter(function(
|
|
1100
|
-
return
|
|
1073
|
+
ce = ce.filter(function(p) {
|
|
1074
|
+
return p !== i;
|
|
1101
1075
|
}), document.removeEventListener("wheel", u, se), document.removeEventListener("touchmove", u, se), document.removeEventListener("touchstart", f, se);
|
|
1102
1076
|
};
|
|
1103
1077
|
}, []);
|
|
1104
|
-
var
|
|
1078
|
+
var h = e.removeScrollBar, v = e.inert;
|
|
1105
1079
|
return a.createElement(
|
|
1106
1080
|
a.Fragment,
|
|
1107
1081
|
null,
|
|
1108
|
-
|
|
1109
|
-
|
|
1082
|
+
v ? a.createElement(i, { styles: bo(o) }) : null,
|
|
1083
|
+
h ? a.createElement(uo, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1110
1084
|
);
|
|
1111
1085
|
}
|
|
1112
|
-
function
|
|
1086
|
+
function Co(e) {
|
|
1113
1087
|
for (var t = null; e !== null; )
|
|
1114
1088
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1115
1089
|
return t;
|
|
1116
1090
|
}
|
|
1117
|
-
const
|
|
1118
|
-
var
|
|
1119
|
-
return a.createElement(
|
|
1091
|
+
const Po = qr(Qt, Eo);
|
|
1092
|
+
var rn = a.forwardRef(function(e, t) {
|
|
1093
|
+
return a.createElement(Ie, z({}, e, { ref: t, sideCar: Po }));
|
|
1120
1094
|
});
|
|
1121
|
-
|
|
1122
|
-
var
|
|
1095
|
+
rn.classNames = Ie.classNames;
|
|
1096
|
+
var So = function(e) {
|
|
1123
1097
|
if (typeof document > "u")
|
|
1124
1098
|
return null;
|
|
1125
1099
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1126
1100
|
return t.ownerDocument.body;
|
|
1127
|
-
}, ae = /* @__PURE__ */ new WeakMap(),
|
|
1128
|
-
return e && (e.host ||
|
|
1129
|
-
},
|
|
1101
|
+
}, ae = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Re = {}, Xe = 0, on = function(e) {
|
|
1102
|
+
return e && (e.host || on(e.parentNode));
|
|
1103
|
+
}, Ao = function(e, t) {
|
|
1130
1104
|
return t.map(function(n) {
|
|
1131
1105
|
if (e.contains(n))
|
|
1132
1106
|
return n;
|
|
1133
|
-
var r =
|
|
1107
|
+
var r = on(n);
|
|
1134
1108
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
1135
1109
|
}).filter(function(n) {
|
|
1136
1110
|
return !!n;
|
|
1137
1111
|
});
|
|
1138
|
-
},
|
|
1139
|
-
var o =
|
|
1140
|
-
|
|
1141
|
-
var i =
|
|
1112
|
+
}, Ro = function(e, t, n, r) {
|
|
1113
|
+
var o = Ao(t, Array.isArray(e) ? e : [e]);
|
|
1114
|
+
Re[n] || (Re[n] = /* @__PURE__ */ new WeakMap());
|
|
1115
|
+
var i = Re[n], s = [], c = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
|
|
1142
1116
|
!d || c.has(d) || (c.add(d), l(d.parentNode));
|
|
1143
1117
|
};
|
|
1144
1118
|
o.forEach(l);
|
|
1145
1119
|
var f = function(d) {
|
|
1146
|
-
!d || u.has(d) || Array.prototype.forEach.call(d.children, function(
|
|
1147
|
-
if (c.has(
|
|
1148
|
-
f(
|
|
1120
|
+
!d || u.has(d) || Array.prototype.forEach.call(d.children, function(m) {
|
|
1121
|
+
if (c.has(m))
|
|
1122
|
+
f(m);
|
|
1149
1123
|
else
|
|
1150
1124
|
try {
|
|
1151
|
-
var
|
|
1152
|
-
ae.set(
|
|
1125
|
+
var h = m.getAttribute(r), v = h !== null && h !== "false", p = (ae.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
|
|
1126
|
+
ae.set(m, p), i.set(m, g), s.push(m), p === 1 && v && Ae.set(m, !0), g === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
|
|
1153
1127
|
} catch (y) {
|
|
1154
|
-
console.error("aria-hidden: cannot operate on ",
|
|
1128
|
+
console.error("aria-hidden: cannot operate on ", m, y);
|
|
1155
1129
|
}
|
|
1156
1130
|
});
|
|
1157
1131
|
};
|
|
1158
|
-
return f(t), c.clear(),
|
|
1132
|
+
return f(t), c.clear(), Xe++, function() {
|
|
1159
1133
|
s.forEach(function(d) {
|
|
1160
|
-
var
|
|
1161
|
-
ae.set(d,
|
|
1162
|
-
}),
|
|
1134
|
+
var m = ae.get(d) - 1, h = i.get(d) - 1;
|
|
1135
|
+
ae.set(d, m), i.set(d, h), m || (Ae.has(d) || d.removeAttribute(r), Ae.delete(d)), h || d.removeAttribute(n);
|
|
1136
|
+
}), Xe--, Xe || (ae = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Re = {});
|
|
1163
1137
|
};
|
|
1164
|
-
},
|
|
1138
|
+
}, Oo = function(e, t, n) {
|
|
1165
1139
|
n === void 0 && (n = "data-aria-hidden");
|
|
1166
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
1167
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
1140
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = So(e);
|
|
1141
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ro(r, o, n, "aria-hidden")) : function() {
|
|
1168
1142
|
return null;
|
|
1169
1143
|
};
|
|
1170
1144
|
};
|
|
1171
|
-
function
|
|
1145
|
+
function No(e) {
|
|
1172
1146
|
const [t, n] = a.useState(void 0);
|
|
1173
1147
|
return ee(() => {
|
|
1174
1148
|
if (e) {
|
|
@@ -1190,75 +1164,76 @@ function ko(e) {
|
|
|
1190
1164
|
n(void 0);
|
|
1191
1165
|
}, [e]), t;
|
|
1192
1166
|
}
|
|
1193
|
-
const
|
|
1167
|
+
const To = ["top", "right", "bottom", "left"], te = Math.min, W = Math.max, ke = Math.round, Oe = Math.floor, j = (e) => ({
|
|
1194
1168
|
x: e,
|
|
1195
1169
|
y: e
|
|
1196
|
-
}),
|
|
1170
|
+
}), Mo = {
|
|
1197
1171
|
left: "right",
|
|
1198
1172
|
right: "left",
|
|
1199
1173
|
bottom: "top",
|
|
1200
1174
|
top: "bottom"
|
|
1201
|
-
},
|
|
1175
|
+
}, ko = {
|
|
1202
1176
|
start: "end",
|
|
1203
1177
|
end: "start"
|
|
1204
1178
|
};
|
|
1205
|
-
function
|
|
1179
|
+
function et(e, t, n) {
|
|
1206
1180
|
return W(e, te(t, n));
|
|
1207
1181
|
}
|
|
1208
|
-
function
|
|
1182
|
+
function X(e, t) {
|
|
1209
1183
|
return typeof e == "function" ? e(t) : e;
|
|
1210
1184
|
}
|
|
1211
1185
|
function Z(e) {
|
|
1212
1186
|
return e.split("-")[0];
|
|
1213
1187
|
}
|
|
1214
|
-
function
|
|
1188
|
+
function he(e) {
|
|
1215
1189
|
return e.split("-")[1];
|
|
1216
1190
|
}
|
|
1217
|
-
function
|
|
1191
|
+
function ot(e) {
|
|
1218
1192
|
return e === "x" ? "y" : "x";
|
|
1219
1193
|
}
|
|
1220
|
-
function
|
|
1194
|
+
function it(e) {
|
|
1221
1195
|
return e === "y" ? "height" : "width";
|
|
1222
1196
|
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1197
|
+
const Lo = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1198
|
+
function U(e) {
|
|
1199
|
+
return Lo.has(Z(e)) ? "y" : "x";
|
|
1225
1200
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1201
|
+
function st(e) {
|
|
1202
|
+
return ot(U(e));
|
|
1228
1203
|
}
|
|
1229
|
-
function
|
|
1204
|
+
function Do(e, t, n) {
|
|
1230
1205
|
n === void 0 && (n = !1);
|
|
1231
|
-
const r =
|
|
1206
|
+
const r = he(e), o = st(e), i = it(o);
|
|
1232
1207
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1233
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1208
|
+
return t.reference[i] > t.floating[i] && (s = Le(s)), [s, Le(s)];
|
|
1234
1209
|
}
|
|
1235
|
-
function
|
|
1236
|
-
const t =
|
|
1237
|
-
return [
|
|
1210
|
+
function _o(e) {
|
|
1211
|
+
const t = Le(e);
|
|
1212
|
+
return [tt(e), t, tt(t)];
|
|
1238
1213
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.replace(/start|end/g, (t) =>
|
|
1214
|
+
function tt(e) {
|
|
1215
|
+
return e.replace(/start|end/g, (t) => ko[t]);
|
|
1241
1216
|
}
|
|
1217
|
+
const Nt = ["left", "right"], Tt = ["right", "left"], Fo = ["top", "bottom"], Io = ["bottom", "top"];
|
|
1242
1218
|
function Wo(e, t, n) {
|
|
1243
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1244
1219
|
switch (e) {
|
|
1245
1220
|
case "top":
|
|
1246
1221
|
case "bottom":
|
|
1247
|
-
return n ? t ?
|
|
1222
|
+
return n ? t ? Tt : Nt : t ? Nt : Tt;
|
|
1248
1223
|
case "left":
|
|
1249
1224
|
case "right":
|
|
1250
|
-
return t ?
|
|
1225
|
+
return t ? Fo : Io;
|
|
1251
1226
|
default:
|
|
1252
1227
|
return [];
|
|
1253
1228
|
}
|
|
1254
1229
|
}
|
|
1255
1230
|
function Bo(e, t, n, r) {
|
|
1256
|
-
const o =
|
|
1231
|
+
const o = he(e);
|
|
1257
1232
|
let i = Wo(Z(e), n === "start", r);
|
|
1258
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
1233
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
|
|
1259
1234
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1235
|
+
function Le(e) {
|
|
1236
|
+
return e.replace(/left|right|bottom|top/g, (t) => Mo[t]);
|
|
1262
1237
|
}
|
|
1263
1238
|
function $o(e) {
|
|
1264
1239
|
return {
|
|
@@ -1269,7 +1244,7 @@ function $o(e) {
|
|
|
1269
1244
|
...e
|
|
1270
1245
|
};
|
|
1271
1246
|
}
|
|
1272
|
-
function
|
|
1247
|
+
function sn(e) {
|
|
1273
1248
|
return typeof e != "number" ? $o(e) : {
|
|
1274
1249
|
top: e,
|
|
1275
1250
|
right: e,
|
|
@@ -1277,7 +1252,7 @@ function un(e) {
|
|
|
1277
1252
|
left: e
|
|
1278
1253
|
};
|
|
1279
1254
|
}
|
|
1280
|
-
function
|
|
1255
|
+
function De(e) {
|
|
1281
1256
|
const {
|
|
1282
1257
|
x: t,
|
|
1283
1258
|
y: n,
|
|
@@ -1295,53 +1270,53 @@ function Fe(e) {
|
|
|
1295
1270
|
y: n
|
|
1296
1271
|
};
|
|
1297
1272
|
}
|
|
1298
|
-
function
|
|
1273
|
+
function Mt(e, t, n) {
|
|
1299
1274
|
let {
|
|
1300
1275
|
reference: r,
|
|
1301
1276
|
floating: o
|
|
1302
1277
|
} = e;
|
|
1303
|
-
const i =
|
|
1304
|
-
let
|
|
1278
|
+
const i = U(t), s = st(t), c = it(s), u = Z(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, m = r[c] / 2 - o[c] / 2;
|
|
1279
|
+
let h;
|
|
1305
1280
|
switch (u) {
|
|
1306
1281
|
case "top":
|
|
1307
|
-
|
|
1282
|
+
h = {
|
|
1308
1283
|
x: f,
|
|
1309
1284
|
y: r.y - o.height
|
|
1310
1285
|
};
|
|
1311
1286
|
break;
|
|
1312
1287
|
case "bottom":
|
|
1313
|
-
|
|
1288
|
+
h = {
|
|
1314
1289
|
x: f,
|
|
1315
1290
|
y: r.y + r.height
|
|
1316
1291
|
};
|
|
1317
1292
|
break;
|
|
1318
1293
|
case "right":
|
|
1319
|
-
|
|
1294
|
+
h = {
|
|
1320
1295
|
x: r.x + r.width,
|
|
1321
1296
|
y: d
|
|
1322
1297
|
};
|
|
1323
1298
|
break;
|
|
1324
1299
|
case "left":
|
|
1325
|
-
|
|
1300
|
+
h = {
|
|
1326
1301
|
x: r.x - o.width,
|
|
1327
1302
|
y: d
|
|
1328
1303
|
};
|
|
1329
1304
|
break;
|
|
1330
1305
|
default:
|
|
1331
|
-
|
|
1306
|
+
h = {
|
|
1332
1307
|
x: r.x,
|
|
1333
1308
|
y: r.y
|
|
1334
1309
|
};
|
|
1335
1310
|
}
|
|
1336
|
-
switch (
|
|
1311
|
+
switch (he(t)) {
|
|
1337
1312
|
case "start":
|
|
1338
|
-
|
|
1313
|
+
h[s] -= m * (n && l ? -1 : 1);
|
|
1339
1314
|
break;
|
|
1340
1315
|
case "end":
|
|
1341
|
-
|
|
1316
|
+
h[s] += m * (n && l ? -1 : 1);
|
|
1342
1317
|
break;
|
|
1343
1318
|
}
|
|
1344
|
-
return
|
|
1319
|
+
return h;
|
|
1345
1320
|
}
|
|
1346
1321
|
const Ho = async (e, t, n) => {
|
|
1347
1322
|
const {
|
|
@@ -1357,12 +1332,12 @@ const Ho = async (e, t, n) => {
|
|
|
1357
1332
|
}), {
|
|
1358
1333
|
x: f,
|
|
1359
1334
|
y: d
|
|
1360
|
-
} =
|
|
1361
|
-
for (let
|
|
1335
|
+
} = Mt(l, r, u), m = r, h = {}, v = 0;
|
|
1336
|
+
for (let p = 0; p < c.length; p++) {
|
|
1362
1337
|
const {
|
|
1363
|
-
name:
|
|
1338
|
+
name: g,
|
|
1364
1339
|
fn: y
|
|
1365
|
-
} = c[
|
|
1340
|
+
} = c[p], {
|
|
1366
1341
|
x: w,
|
|
1367
1342
|
y: x,
|
|
1368
1343
|
data: b,
|
|
@@ -1371,9 +1346,9 @@ const Ho = async (e, t, n) => {
|
|
|
1371
1346
|
x: f,
|
|
1372
1347
|
y: d,
|
|
1373
1348
|
initialPlacement: r,
|
|
1374
|
-
placement:
|
|
1349
|
+
placement: m,
|
|
1375
1350
|
strategy: o,
|
|
1376
|
-
middlewareData:
|
|
1351
|
+
middlewareData: h,
|
|
1377
1352
|
rects: l,
|
|
1378
1353
|
platform: s,
|
|
1379
1354
|
elements: {
|
|
@@ -1381,27 +1356,27 @@ const Ho = async (e, t, n) => {
|
|
|
1381
1356
|
floating: t
|
|
1382
1357
|
}
|
|
1383
1358
|
});
|
|
1384
|
-
f = w ?? f, d = x ?? d,
|
|
1385
|
-
...
|
|
1386
|
-
[
|
|
1387
|
-
...
|
|
1359
|
+
f = w ?? f, d = x ?? d, h = {
|
|
1360
|
+
...h,
|
|
1361
|
+
[g]: {
|
|
1362
|
+
...h[g],
|
|
1388
1363
|
...b
|
|
1389
1364
|
}
|
|
1390
|
-
}, E &&
|
|
1365
|
+
}, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
|
|
1391
1366
|
reference: e,
|
|
1392
1367
|
floating: t,
|
|
1393
1368
|
strategy: o
|
|
1394
1369
|
}) : E.rects), {
|
|
1395
1370
|
x: f,
|
|
1396
1371
|
y: d
|
|
1397
|
-
} =
|
|
1372
|
+
} = Mt(l, m, u)), p = -1);
|
|
1398
1373
|
}
|
|
1399
1374
|
return {
|
|
1400
1375
|
x: f,
|
|
1401
1376
|
y: d,
|
|
1402
|
-
placement:
|
|
1377
|
+
placement: m,
|
|
1403
1378
|
strategy: o,
|
|
1404
|
-
middlewareData:
|
|
1379
|
+
middlewareData: h
|
|
1405
1380
|
};
|
|
1406
1381
|
};
|
|
1407
1382
|
async function ye(e, t) {
|
|
@@ -1418,10 +1393,10 @@ async function ye(e, t) {
|
|
|
1418
1393
|
boundary: l = "clippingAncestors",
|
|
1419
1394
|
rootBoundary: f = "viewport",
|
|
1420
1395
|
elementContext: d = "floating",
|
|
1421
|
-
altBoundary:
|
|
1422
|
-
padding:
|
|
1423
|
-
} =
|
|
1424
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(
|
|
1396
|
+
altBoundary: m = !1,
|
|
1397
|
+
padding: h = 0
|
|
1398
|
+
} = X(t, e), v = sn(h), g = c[m ? d === "floating" ? "reference" : "floating" : d], y = De(await i.getClippingRect({
|
|
1399
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
1425
1400
|
boundary: l,
|
|
1426
1401
|
rootBoundary: f,
|
|
1427
1402
|
strategy: u
|
|
@@ -1436,17 +1411,17 @@ async function ye(e, t) {
|
|
|
1436
1411
|
} : {
|
|
1437
1412
|
x: 1,
|
|
1438
1413
|
y: 1
|
|
1439
|
-
}, E =
|
|
1414
|
+
}, E = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1440
1415
|
elements: c,
|
|
1441
1416
|
rect: w,
|
|
1442
1417
|
offsetParent: x,
|
|
1443
1418
|
strategy: u
|
|
1444
1419
|
}) : w);
|
|
1445
1420
|
return {
|
|
1446
|
-
top: (y.top - E.top +
|
|
1447
|
-
bottom: (E.bottom - y.bottom +
|
|
1448
|
-
left: (y.left - E.left +
|
|
1449
|
-
right: (E.right - y.right +
|
|
1421
|
+
top: (y.top - E.top + v.top) / b.y,
|
|
1422
|
+
bottom: (E.bottom - y.bottom + v.bottom) / b.y,
|
|
1423
|
+
left: (y.left - E.left + v.left) / b.x,
|
|
1424
|
+
right: (E.right - y.right + v.right) / b.x
|
|
1450
1425
|
};
|
|
1451
1426
|
}
|
|
1452
1427
|
const Vo = (e) => ({
|
|
@@ -1464,20 +1439,20 @@ const Vo = (e) => ({
|
|
|
1464
1439
|
} = t, {
|
|
1465
1440
|
element: l,
|
|
1466
1441
|
padding: f = 0
|
|
1467
|
-
} =
|
|
1442
|
+
} = X(e, t) || {};
|
|
1468
1443
|
if (l == null)
|
|
1469
1444
|
return {};
|
|
1470
|
-
const d =
|
|
1445
|
+
const d = sn(f), m = {
|
|
1471
1446
|
x: n,
|
|
1472
1447
|
y: r
|
|
1473
|
-
},
|
|
1474
|
-
let P =
|
|
1475
|
-
(!P || !await (s.isElement == null ? void 0 : s.isElement(
|
|
1476
|
-
const R = b / 2 - E / 2,
|
|
1448
|
+
}, h = st(o), v = it(h), p = await s.getDimensions(l), g = h === "y", y = g ? "top" : "left", w = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = i.reference[v] + i.reference[h] - m[h] - i.floating[v], E = m[h] - i.reference[h], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1449
|
+
let P = S ? S[x] : 0;
|
|
1450
|
+
(!P || !await (s.isElement == null ? void 0 : s.isElement(S))) && (P = c.floating[x] || i.floating[v]);
|
|
1451
|
+
const R = b / 2 - E / 2, T = P / 2 - p[v] / 2 - 1, O = te(d[y], T), _ = te(d[w], T), F = O, M = P - p[v] - _, N = P / 2 - p[v] / 2 + R, I = et(F, N, M), k = !u.arrow && he(o) != null && N !== I && i.reference[v] / 2 - (N < F ? O : _) - p[v] / 2 < 0, L = k ? N < F ? N - F : N - M : 0;
|
|
1477
1452
|
return {
|
|
1478
|
-
[
|
|
1453
|
+
[h]: m[h] + L,
|
|
1479
1454
|
data: {
|
|
1480
|
-
[
|
|
1455
|
+
[h]: I,
|
|
1481
1456
|
centerOffset: N - I - L,
|
|
1482
1457
|
...k && {
|
|
1483
1458
|
alignmentOffset: L
|
|
@@ -1486,7 +1461,7 @@ const Vo = (e) => ({
|
|
|
1486
1461
|
reset: k
|
|
1487
1462
|
};
|
|
1488
1463
|
}
|
|
1489
|
-
}),
|
|
1464
|
+
}), zo = function(e) {
|
|
1490
1465
|
return e === void 0 && (e = {}), {
|
|
1491
1466
|
name: "flip",
|
|
1492
1467
|
options: e,
|
|
@@ -1502,31 +1477,31 @@ const Vo = (e) => ({
|
|
|
1502
1477
|
} = t, {
|
|
1503
1478
|
mainAxis: f = !0,
|
|
1504
1479
|
crossAxis: d = !0,
|
|
1505
|
-
fallbackPlacements:
|
|
1506
|
-
fallbackStrategy:
|
|
1507
|
-
fallbackAxisSideDirection:
|
|
1508
|
-
flipAlignment:
|
|
1509
|
-
...
|
|
1510
|
-
} =
|
|
1480
|
+
fallbackPlacements: m,
|
|
1481
|
+
fallbackStrategy: h = "bestFit",
|
|
1482
|
+
fallbackAxisSideDirection: v = "none",
|
|
1483
|
+
flipAlignment: p = !0,
|
|
1484
|
+
...g
|
|
1485
|
+
} = X(e, t);
|
|
1511
1486
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1512
1487
|
return {};
|
|
1513
|
-
const y = Z(o), w =
|
|
1514
|
-
!
|
|
1515
|
-
const P = [c, ...E], R = await ye(t,
|
|
1488
|
+
const y = Z(o), w = U(c), x = Z(c) === c, b = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = m || (x || !p ? [Le(c)] : _o(c)), S = v !== "none";
|
|
1489
|
+
!m && S && E.push(...Bo(c, p, v, b));
|
|
1490
|
+
const P = [c, ...E], R = await ye(t, g), T = [];
|
|
1516
1491
|
let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1517
|
-
if (f &&
|
|
1518
|
-
const N =
|
|
1519
|
-
|
|
1492
|
+
if (f && T.push(R[y]), d) {
|
|
1493
|
+
const N = Do(o, s, b);
|
|
1494
|
+
T.push(R[N[0]], R[N[1]]);
|
|
1520
1495
|
}
|
|
1521
1496
|
if (O = [...O, {
|
|
1522
1497
|
placement: o,
|
|
1523
|
-
overflows:
|
|
1524
|
-
}], !
|
|
1498
|
+
overflows: T
|
|
1499
|
+
}], !T.every((N) => N <= 0)) {
|
|
1525
1500
|
var _, F;
|
|
1526
1501
|
const N = (((_ = i.flip) == null ? void 0 : _.index) || 0) + 1, I = P[N];
|
|
1527
|
-
if (I && (!(d === "alignment" ? w !==
|
|
1502
|
+
if (I && (!(d === "alignment" ? w !== U(I) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1528
1503
|
// overflows the main axis.
|
|
1529
|
-
O.every((
|
|
1504
|
+
O.every((A) => A.overflows[0] > 0 && U(A.placement) === w)))
|
|
1530
1505
|
return {
|
|
1531
1506
|
data: {
|
|
1532
1507
|
index: N,
|
|
@@ -1536,20 +1511,20 @@ const Vo = (e) => ({
|
|
|
1536
1511
|
placement: I
|
|
1537
1512
|
}
|
|
1538
1513
|
};
|
|
1539
|
-
let k = (F = O.filter((L) => L.overflows[0] <= 0).sort((L,
|
|
1514
|
+
let k = (F = O.filter((L) => L.overflows[0] <= 0).sort((L, A) => L.overflows[1] - A.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
1540
1515
|
if (!k)
|
|
1541
|
-
switch (
|
|
1516
|
+
switch (h) {
|
|
1542
1517
|
case "bestFit": {
|
|
1543
|
-
var
|
|
1544
|
-
const L = (
|
|
1545
|
-
if (
|
|
1546
|
-
const D =
|
|
1518
|
+
var M;
|
|
1519
|
+
const L = (M = O.filter((A) => {
|
|
1520
|
+
if (S) {
|
|
1521
|
+
const D = U(A.placement);
|
|
1547
1522
|
return D === w || // Create a bias to the `y` side axis due to horizontal
|
|
1548
1523
|
// reading directions favoring greater width.
|
|
1549
1524
|
D === "y";
|
|
1550
1525
|
}
|
|
1551
1526
|
return !0;
|
|
1552
|
-
}).map((
|
|
1527
|
+
}).map((A) => [A.placement, A.overflows.filter((D) => D > 0).reduce((D, V) => D + V, 0)]).sort((A, D) => A[1] - D[1])[0]) == null ? void 0 : M[0];
|
|
1553
1528
|
L && (k = L);
|
|
1554
1529
|
break;
|
|
1555
1530
|
}
|
|
@@ -1568,7 +1543,7 @@ const Vo = (e) => ({
|
|
|
1568
1543
|
}
|
|
1569
1544
|
};
|
|
1570
1545
|
};
|
|
1571
|
-
function
|
|
1546
|
+
function kt(e, t) {
|
|
1572
1547
|
return {
|
|
1573
1548
|
top: e.top - t.height,
|
|
1574
1549
|
right: e.right - t.width,
|
|
@@ -1576,10 +1551,10 @@ function Ft(e, t) {
|
|
|
1576
1551
|
left: e.left - t.width
|
|
1577
1552
|
};
|
|
1578
1553
|
}
|
|
1579
|
-
function
|
|
1580
|
-
return
|
|
1554
|
+
function Lt(e) {
|
|
1555
|
+
return To.some((t) => e[t] >= 0);
|
|
1581
1556
|
}
|
|
1582
|
-
const
|
|
1557
|
+
const Uo = function(e) {
|
|
1583
1558
|
return e === void 0 && (e = {}), {
|
|
1584
1559
|
name: "hide",
|
|
1585
1560
|
options: e,
|
|
@@ -1589,17 +1564,17 @@ const zo = function(e) {
|
|
|
1589
1564
|
} = t, {
|
|
1590
1565
|
strategy: r = "referenceHidden",
|
|
1591
1566
|
...o
|
|
1592
|
-
} =
|
|
1567
|
+
} = X(e, t);
|
|
1593
1568
|
switch (r) {
|
|
1594
1569
|
case "referenceHidden": {
|
|
1595
1570
|
const i = await ye(t, {
|
|
1596
1571
|
...o,
|
|
1597
1572
|
elementContext: "reference"
|
|
1598
|
-
}), s =
|
|
1573
|
+
}), s = kt(i, n.reference);
|
|
1599
1574
|
return {
|
|
1600
1575
|
data: {
|
|
1601
1576
|
referenceHiddenOffsets: s,
|
|
1602
|
-
referenceHidden:
|
|
1577
|
+
referenceHidden: Lt(s)
|
|
1603
1578
|
}
|
|
1604
1579
|
};
|
|
1605
1580
|
}
|
|
@@ -1607,11 +1582,11 @@ const zo = function(e) {
|
|
|
1607
1582
|
const i = await ye(t, {
|
|
1608
1583
|
...o,
|
|
1609
1584
|
altBoundary: !0
|
|
1610
|
-
}), s =
|
|
1585
|
+
}), s = kt(i, n.floating);
|
|
1611
1586
|
return {
|
|
1612
1587
|
data: {
|
|
1613
1588
|
escapedOffsets: s,
|
|
1614
|
-
escaped:
|
|
1589
|
+
escaped: Lt(s)
|
|
1615
1590
|
}
|
|
1616
1591
|
};
|
|
1617
1592
|
}
|
|
@@ -1620,17 +1595,17 @@ const zo = function(e) {
|
|
|
1620
1595
|
}
|
|
1621
1596
|
}
|
|
1622
1597
|
};
|
|
1623
|
-
};
|
|
1598
|
+
}, cn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1624
1599
|
async function jo(e, t) {
|
|
1625
1600
|
const {
|
|
1626
1601
|
placement: n,
|
|
1627
1602
|
platform: r,
|
|
1628
1603
|
elements: o
|
|
1629
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c =
|
|
1604
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c = he(n), u = U(n) === "y", l = cn.has(s) ? -1 : 1, f = i && u ? -1 : 1, d = X(t, e);
|
|
1630
1605
|
let {
|
|
1631
|
-
mainAxis:
|
|
1632
|
-
crossAxis:
|
|
1633
|
-
alignmentAxis:
|
|
1606
|
+
mainAxis: m,
|
|
1607
|
+
crossAxis: h,
|
|
1608
|
+
alignmentAxis: v
|
|
1634
1609
|
} = typeof d == "number" ? {
|
|
1635
1610
|
mainAxis: d,
|
|
1636
1611
|
crossAxis: 0,
|
|
@@ -1640,12 +1615,12 @@ async function jo(e, t) {
|
|
|
1640
1615
|
crossAxis: d.crossAxis || 0,
|
|
1641
1616
|
alignmentAxis: d.alignmentAxis
|
|
1642
1617
|
};
|
|
1643
|
-
return c && typeof
|
|
1644
|
-
x:
|
|
1645
|
-
y:
|
|
1618
|
+
return c && typeof v == "number" && (h = c === "end" ? v * -1 : v), u ? {
|
|
1619
|
+
x: h * f,
|
|
1620
|
+
y: m * l
|
|
1646
1621
|
} : {
|
|
1647
|
-
x:
|
|
1648
|
-
y:
|
|
1622
|
+
x: m * l,
|
|
1623
|
+
y: h * f
|
|
1649
1624
|
};
|
|
1650
1625
|
}
|
|
1651
1626
|
const Yo = function(e) {
|
|
@@ -1670,7 +1645,7 @@ const Yo = function(e) {
|
|
|
1670
1645
|
};
|
|
1671
1646
|
}
|
|
1672
1647
|
};
|
|
1673
|
-
},
|
|
1648
|
+
}, Ko = function(e) {
|
|
1674
1649
|
return e === void 0 && (e = {}), {
|
|
1675
1650
|
name: "shift",
|
|
1676
1651
|
options: e,
|
|
@@ -1683,11 +1658,11 @@ const Yo = function(e) {
|
|
|
1683
1658
|
mainAxis: i = !0,
|
|
1684
1659
|
crossAxis: s = !1,
|
|
1685
1660
|
limiter: c = {
|
|
1686
|
-
fn: (
|
|
1661
|
+
fn: (g) => {
|
|
1687
1662
|
let {
|
|
1688
1663
|
x: y,
|
|
1689
1664
|
y: w
|
|
1690
|
-
} =
|
|
1665
|
+
} = g;
|
|
1691
1666
|
return {
|
|
1692
1667
|
x: y,
|
|
1693
1668
|
y: w
|
|
@@ -1695,38 +1670,38 @@ const Yo = function(e) {
|
|
|
1695
1670
|
}
|
|
1696
1671
|
},
|
|
1697
1672
|
...u
|
|
1698
|
-
} =
|
|
1673
|
+
} = X(e, t), l = {
|
|
1699
1674
|
x: n,
|
|
1700
1675
|
y: r
|
|
1701
|
-
}, f = await ye(t, u), d =
|
|
1702
|
-
let
|
|
1676
|
+
}, f = await ye(t, u), d = U(Z(o)), m = ot(d);
|
|
1677
|
+
let h = l[m], v = l[d];
|
|
1703
1678
|
if (i) {
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1679
|
+
const g = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", w = h + f[g], x = h - f[y];
|
|
1680
|
+
h = et(w, h, x);
|
|
1706
1681
|
}
|
|
1707
1682
|
if (s) {
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1683
|
+
const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = v + f[g], x = v - f[y];
|
|
1684
|
+
v = et(w, v, x);
|
|
1710
1685
|
}
|
|
1711
|
-
const
|
|
1686
|
+
const p = c.fn({
|
|
1712
1687
|
...t,
|
|
1713
|
-
[
|
|
1714
|
-
[d]:
|
|
1688
|
+
[m]: h,
|
|
1689
|
+
[d]: v
|
|
1715
1690
|
});
|
|
1716
1691
|
return {
|
|
1717
|
-
...
|
|
1692
|
+
...p,
|
|
1718
1693
|
data: {
|
|
1719
|
-
x:
|
|
1720
|
-
y:
|
|
1694
|
+
x: p.x - n,
|
|
1695
|
+
y: p.y - r,
|
|
1721
1696
|
enabled: {
|
|
1722
|
-
[
|
|
1697
|
+
[m]: i,
|
|
1723
1698
|
[d]: s
|
|
1724
1699
|
}
|
|
1725
1700
|
}
|
|
1726
1701
|
};
|
|
1727
1702
|
}
|
|
1728
1703
|
};
|
|
1729
|
-
},
|
|
1704
|
+
}, Xo = function(e) {
|
|
1730
1705
|
return e === void 0 && (e = {}), {
|
|
1731
1706
|
options: e,
|
|
1732
1707
|
fn(t) {
|
|
@@ -1740,31 +1715,31 @@ const Yo = function(e) {
|
|
|
1740
1715
|
offset: c = 0,
|
|
1741
1716
|
mainAxis: u = !0,
|
|
1742
1717
|
crossAxis: l = !0
|
|
1743
|
-
} =
|
|
1718
|
+
} = X(e, t), f = {
|
|
1744
1719
|
x: n,
|
|
1745
1720
|
y: r
|
|
1746
|
-
}, d =
|
|
1747
|
-
let
|
|
1748
|
-
const
|
|
1749
|
-
mainAxis:
|
|
1721
|
+
}, d = U(o), m = ot(d);
|
|
1722
|
+
let h = f[m], v = f[d];
|
|
1723
|
+
const p = X(c, t), g = typeof p == "number" ? {
|
|
1724
|
+
mainAxis: p,
|
|
1750
1725
|
crossAxis: 0
|
|
1751
1726
|
} : {
|
|
1752
1727
|
mainAxis: 0,
|
|
1753
1728
|
crossAxis: 0,
|
|
1754
|
-
...
|
|
1729
|
+
...p
|
|
1755
1730
|
};
|
|
1756
1731
|
if (u) {
|
|
1757
|
-
const x =
|
|
1758
|
-
|
|
1732
|
+
const x = m === "y" ? "height" : "width", b = i.reference[m] - i.floating[x] + g.mainAxis, E = i.reference[m] + i.reference[x] - g.mainAxis;
|
|
1733
|
+
h < b ? h = b : h > E && (h = E);
|
|
1759
1734
|
}
|
|
1760
1735
|
if (l) {
|
|
1761
1736
|
var y, w;
|
|
1762
|
-
const x =
|
|
1763
|
-
|
|
1737
|
+
const x = m === "y" ? "width" : "height", b = cn.has(Z(o)), E = i.reference[d] - i.floating[x] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : g.crossAxis), S = i.reference[d] + i.reference[x] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? g.crossAxis : 0);
|
|
1738
|
+
v < E ? v = E : v > S && (v = S);
|
|
1764
1739
|
}
|
|
1765
1740
|
return {
|
|
1766
|
-
[
|
|
1767
|
-
[d]:
|
|
1741
|
+
[m]: h,
|
|
1742
|
+
[d]: v
|
|
1768
1743
|
};
|
|
1769
1744
|
}
|
|
1770
1745
|
};
|
|
@@ -1783,25 +1758,25 @@ const Yo = function(e) {
|
|
|
1783
1758
|
apply: u = () => {
|
|
1784
1759
|
},
|
|
1785
1760
|
...l
|
|
1786
|
-
} =
|
|
1787
|
-
width:
|
|
1788
|
-
height:
|
|
1761
|
+
} = X(e, t), f = await ye(t, l), d = Z(o), m = he(o), h = U(o) === "y", {
|
|
1762
|
+
width: v,
|
|
1763
|
+
height: p
|
|
1789
1764
|
} = i.floating;
|
|
1790
|
-
let
|
|
1791
|
-
d === "top" || d === "bottom" ? (
|
|
1792
|
-
const w =
|
|
1765
|
+
let g, y;
|
|
1766
|
+
d === "top" || d === "bottom" ? (g = d, y = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, g = m === "end" ? "top" : "bottom");
|
|
1767
|
+
const w = p - f.top - f.bottom, x = v - f.left - f.right, b = te(p - f[g], w), E = te(v - f[y], x), S = !t.middlewareData.shift;
|
|
1793
1768
|
let P = b, R = E;
|
|
1794
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (r = t.middlewareData.shift) != null && r.enabled.y && (P = w),
|
|
1795
|
-
const O = W(f.left, 0), _ = W(f.right, 0), F = W(f.top, 0),
|
|
1796
|
-
|
|
1769
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (r = t.middlewareData.shift) != null && r.enabled.y && (P = w), S && !m) {
|
|
1770
|
+
const O = W(f.left, 0), _ = W(f.right, 0), F = W(f.top, 0), M = W(f.bottom, 0);
|
|
1771
|
+
h ? R = v - 2 * (O !== 0 || _ !== 0 ? O + _ : W(f.left, f.right)) : P = p - 2 * (F !== 0 || M !== 0 ? F + M : W(f.top, f.bottom));
|
|
1797
1772
|
}
|
|
1798
1773
|
await u({
|
|
1799
1774
|
...t,
|
|
1800
1775
|
availableWidth: R,
|
|
1801
1776
|
availableHeight: P
|
|
1802
1777
|
});
|
|
1803
|
-
const
|
|
1804
|
-
return
|
|
1778
|
+
const T = await s.getDimensions(c.floating);
|
|
1779
|
+
return v !== T.width || p !== T.height ? {
|
|
1805
1780
|
reset: {
|
|
1806
1781
|
rects: !0
|
|
1807
1782
|
}
|
|
@@ -1809,46 +1784,49 @@ const Yo = function(e) {
|
|
|
1809
1784
|
}
|
|
1810
1785
|
};
|
|
1811
1786
|
};
|
|
1812
|
-
function
|
|
1787
|
+
function We() {
|
|
1813
1788
|
return typeof window < "u";
|
|
1814
1789
|
}
|
|
1815
1790
|
function me(e) {
|
|
1816
|
-
return
|
|
1791
|
+
return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1817
1792
|
}
|
|
1818
1793
|
function B(e) {
|
|
1819
1794
|
var t;
|
|
1820
1795
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1821
1796
|
}
|
|
1822
|
-
function
|
|
1797
|
+
function K(e) {
|
|
1823
1798
|
var t;
|
|
1824
|
-
return (t = (
|
|
1799
|
+
return (t = (an(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1825
1800
|
}
|
|
1826
|
-
function
|
|
1827
|
-
return
|
|
1801
|
+
function an(e) {
|
|
1802
|
+
return We() ? e instanceof Node || e instanceof B(e).Node : !1;
|
|
1828
1803
|
}
|
|
1829
1804
|
function $(e) {
|
|
1830
|
-
return
|
|
1805
|
+
return We() ? e instanceof Element || e instanceof B(e).Element : !1;
|
|
1831
1806
|
}
|
|
1832
1807
|
function Y(e) {
|
|
1833
|
-
return
|
|
1808
|
+
return We() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
|
|
1834
1809
|
}
|
|
1835
|
-
function
|
|
1836
|
-
return !
|
|
1810
|
+
function Dt(e) {
|
|
1811
|
+
return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
1837
1812
|
}
|
|
1838
|
-
|
|
1813
|
+
const Go = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1814
|
+
function be(e) {
|
|
1839
1815
|
const {
|
|
1840
1816
|
overflow: t,
|
|
1841
1817
|
overflowX: n,
|
|
1842
1818
|
overflowY: r,
|
|
1843
1819
|
display: o
|
|
1844
1820
|
} = H(e);
|
|
1845
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
1821
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Go.has(o);
|
|
1846
1822
|
}
|
|
1847
|
-
|
|
1848
|
-
|
|
1823
|
+
const qo = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1824
|
+
function Qo(e) {
|
|
1825
|
+
return qo.has(me(e));
|
|
1849
1826
|
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1827
|
+
const Jo = [":popover-open", ":modal"];
|
|
1828
|
+
function Be(e) {
|
|
1829
|
+
return Jo.some((t) => {
|
|
1852
1830
|
try {
|
|
1853
1831
|
return e.matches(t);
|
|
1854
1832
|
} catch {
|
|
@@ -1856,31 +1834,33 @@ function $e(e) {
|
|
|
1856
1834
|
}
|
|
1857
1835
|
});
|
|
1858
1836
|
}
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1837
|
+
const ei = ["transform", "translate", "scale", "rotate", "perspective"], ti = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ni = ["paint", "layout", "strict", "content"];
|
|
1838
|
+
function ct(e) {
|
|
1839
|
+
const t = at(), n = $(e) ? H(e) : e;
|
|
1840
|
+
return ei.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ti.some((r) => (n.willChange || "").includes(r)) || ni.some((r) => (n.contain || "").includes(r));
|
|
1862
1841
|
}
|
|
1863
|
-
function
|
|
1842
|
+
function ri(e) {
|
|
1864
1843
|
let t = ne(e);
|
|
1865
1844
|
for (; Y(t) && !de(t); ) {
|
|
1866
|
-
if (
|
|
1845
|
+
if (ct(t))
|
|
1867
1846
|
return t;
|
|
1868
|
-
if (
|
|
1847
|
+
if (Be(t))
|
|
1869
1848
|
return null;
|
|
1870
1849
|
t = ne(t);
|
|
1871
1850
|
}
|
|
1872
1851
|
return null;
|
|
1873
1852
|
}
|
|
1874
|
-
function
|
|
1853
|
+
function at() {
|
|
1875
1854
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1876
1855
|
}
|
|
1856
|
+
const oi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
1877
1857
|
function de(e) {
|
|
1878
|
-
return
|
|
1858
|
+
return oi.has(me(e));
|
|
1879
1859
|
}
|
|
1880
1860
|
function H(e) {
|
|
1881
1861
|
return B(e).getComputedStyle(e);
|
|
1882
1862
|
}
|
|
1883
|
-
function
|
|
1863
|
+
function $e(e) {
|
|
1884
1864
|
return $(e) ? {
|
|
1885
1865
|
scrollLeft: e.scrollLeft,
|
|
1886
1866
|
scrollTop: e.scrollTop
|
|
@@ -1896,112 +1876,112 @@ function ne(e) {
|
|
|
1896
1876
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1897
1877
|
e.assignedSlot || // DOM Element detected.
|
|
1898
1878
|
e.parentNode || // ShadowRoot detected.
|
|
1899
|
-
|
|
1900
|
-
|
|
1879
|
+
Dt(e) && e.host || // Fallback.
|
|
1880
|
+
K(e)
|
|
1901
1881
|
);
|
|
1902
|
-
return
|
|
1882
|
+
return Dt(t) ? t.host : t;
|
|
1903
1883
|
}
|
|
1904
|
-
function
|
|
1884
|
+
function ln(e) {
|
|
1905
1885
|
const t = ne(e);
|
|
1906
|
-
return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) &&
|
|
1886
|
+
return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && be(t) ? t : ln(t);
|
|
1907
1887
|
}
|
|
1908
1888
|
function we(e, t, n) {
|
|
1909
1889
|
var r;
|
|
1910
1890
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1911
|
-
const o =
|
|
1891
|
+
const o = ln(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
|
|
1912
1892
|
if (i) {
|
|
1913
|
-
const c =
|
|
1914
|
-
return t.concat(s, s.visualViewport || [],
|
|
1893
|
+
const c = nt(s);
|
|
1894
|
+
return t.concat(s, s.visualViewport || [], be(o) ? o : [], c && n ? we(c) : []);
|
|
1915
1895
|
}
|
|
1916
1896
|
return t.concat(o, we(o, [], n));
|
|
1917
1897
|
}
|
|
1918
|
-
function
|
|
1898
|
+
function nt(e) {
|
|
1919
1899
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1920
1900
|
}
|
|
1921
|
-
function
|
|
1901
|
+
function un(e) {
|
|
1922
1902
|
const t = H(e);
|
|
1923
1903
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1924
|
-
const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c =
|
|
1904
|
+
const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = ke(n) !== i || ke(r) !== s;
|
|
1925
1905
|
return c && (n = i, r = s), {
|
|
1926
1906
|
width: n,
|
|
1927
1907
|
height: r,
|
|
1928
1908
|
$: c
|
|
1929
1909
|
};
|
|
1930
1910
|
}
|
|
1931
|
-
function
|
|
1911
|
+
function lt(e) {
|
|
1932
1912
|
return $(e) ? e : e.contextElement;
|
|
1933
1913
|
}
|
|
1934
1914
|
function ue(e) {
|
|
1935
|
-
const t =
|
|
1915
|
+
const t = lt(e);
|
|
1936
1916
|
if (!Y(t))
|
|
1937
1917
|
return j(1);
|
|
1938
1918
|
const n = t.getBoundingClientRect(), {
|
|
1939
1919
|
width: r,
|
|
1940
1920
|
height: o,
|
|
1941
1921
|
$: i
|
|
1942
|
-
} =
|
|
1943
|
-
let s = (i ?
|
|
1922
|
+
} = un(t);
|
|
1923
|
+
let s = (i ? ke(n.width) : n.width) / r, c = (i ? ke(n.height) : n.height) / o;
|
|
1944
1924
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1945
1925
|
x: s,
|
|
1946
1926
|
y: c
|
|
1947
1927
|
};
|
|
1948
1928
|
}
|
|
1949
|
-
const
|
|
1950
|
-
function
|
|
1929
|
+
const ii = /* @__PURE__ */ j(0);
|
|
1930
|
+
function fn(e) {
|
|
1951
1931
|
const t = B(e);
|
|
1952
|
-
return !
|
|
1932
|
+
return !at() || !t.visualViewport ? ii : {
|
|
1953
1933
|
x: t.visualViewport.offsetLeft,
|
|
1954
1934
|
y: t.visualViewport.offsetTop
|
|
1955
1935
|
};
|
|
1956
1936
|
}
|
|
1957
|
-
function
|
|
1937
|
+
function si(e, t, n) {
|
|
1958
1938
|
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
1959
1939
|
}
|
|
1960
1940
|
function ie(e, t, n, r) {
|
|
1961
1941
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1962
|
-
const o = e.getBoundingClientRect(), i =
|
|
1942
|
+
const o = e.getBoundingClientRect(), i = lt(e);
|
|
1963
1943
|
let s = j(1);
|
|
1964
1944
|
t && (r ? $(r) && (s = ue(r)) : s = ue(e));
|
|
1965
|
-
const c =
|
|
1945
|
+
const c = si(i, n, r) ? fn(i) : j(0);
|
|
1966
1946
|
let u = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, d = o.height / s.y;
|
|
1967
1947
|
if (i) {
|
|
1968
|
-
const
|
|
1969
|
-
let
|
|
1970
|
-
for (;
|
|
1971
|
-
const
|
|
1972
|
-
u *=
|
|
1948
|
+
const m = B(i), h = r && $(r) ? B(r) : r;
|
|
1949
|
+
let v = m, p = nt(v);
|
|
1950
|
+
for (; p && r && h !== v; ) {
|
|
1951
|
+
const g = ue(p), y = p.getBoundingClientRect(), w = H(p), x = y.left + (p.clientLeft + parseFloat(w.paddingLeft)) * g.x, b = y.top + (p.clientTop + parseFloat(w.paddingTop)) * g.y;
|
|
1952
|
+
u *= g.x, l *= g.y, f *= g.x, d *= g.y, u += x, l += b, v = B(p), p = nt(v);
|
|
1973
1953
|
}
|
|
1974
1954
|
}
|
|
1975
|
-
return
|
|
1955
|
+
return De({
|
|
1976
1956
|
width: f,
|
|
1977
1957
|
height: d,
|
|
1978
1958
|
x: u,
|
|
1979
1959
|
y: l
|
|
1980
1960
|
});
|
|
1981
1961
|
}
|
|
1982
|
-
function
|
|
1983
|
-
const n =
|
|
1984
|
-
return t ? t.left + n : ie(
|
|
1962
|
+
function ut(e, t) {
|
|
1963
|
+
const n = $e(e).scrollLeft;
|
|
1964
|
+
return t ? t.left + n : ie(K(e)).left + n;
|
|
1985
1965
|
}
|
|
1986
|
-
function
|
|
1966
|
+
function dn(e, t, n) {
|
|
1987
1967
|
n === void 0 && (n = !1);
|
|
1988
1968
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
1989
1969
|
// RTL <body> scrollbar.
|
|
1990
|
-
|
|
1970
|
+
ut(e, r)
|
|
1991
1971
|
)), i = r.top + t.scrollTop;
|
|
1992
1972
|
return {
|
|
1993
1973
|
x: o,
|
|
1994
1974
|
y: i
|
|
1995
1975
|
};
|
|
1996
1976
|
}
|
|
1997
|
-
function
|
|
1977
|
+
function ci(e) {
|
|
1998
1978
|
let {
|
|
1999
1979
|
elements: t,
|
|
2000
1980
|
rect: n,
|
|
2001
1981
|
offsetParent: r,
|
|
2002
1982
|
strategy: o
|
|
2003
1983
|
} = e;
|
|
2004
|
-
const i = o === "fixed", s =
|
|
1984
|
+
const i = o === "fixed", s = K(r), c = t ? Be(t.floating) : !1;
|
|
2005
1985
|
if (r === s || c && i)
|
|
2006
1986
|
return n;
|
|
2007
1987
|
let u = {
|
|
@@ -2009,24 +1989,24 @@ function ei(e) {
|
|
|
2009
1989
|
scrollTop: 0
|
|
2010
1990
|
}, l = j(1);
|
|
2011
1991
|
const f = j(0), d = Y(r);
|
|
2012
|
-
if ((d || !d && !i) && ((me(r) !== "body" ||
|
|
2013
|
-
const
|
|
2014
|
-
l = ue(r), f.x =
|
|
1992
|
+
if ((d || !d && !i) && ((me(r) !== "body" || be(s)) && (u = $e(r)), Y(r))) {
|
|
1993
|
+
const h = ie(r);
|
|
1994
|
+
l = ue(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
|
|
2015
1995
|
}
|
|
2016
|
-
const
|
|
1996
|
+
const m = s && !d && !i ? dn(s, u, !0) : j(0);
|
|
2017
1997
|
return {
|
|
2018
1998
|
width: n.width * l.x,
|
|
2019
1999
|
height: n.height * l.y,
|
|
2020
|
-
x: n.x * l.x - u.scrollLeft * l.x + f.x +
|
|
2021
|
-
y: n.y * l.y - u.scrollTop * l.y + f.y +
|
|
2000
|
+
x: n.x * l.x - u.scrollLeft * l.x + f.x + m.x,
|
|
2001
|
+
y: n.y * l.y - u.scrollTop * l.y + f.y + m.y
|
|
2022
2002
|
};
|
|
2023
2003
|
}
|
|
2024
|
-
function
|
|
2004
|
+
function ai(e) {
|
|
2025
2005
|
return Array.from(e.getClientRects());
|
|
2026
2006
|
}
|
|
2027
|
-
function
|
|
2028
|
-
const t =
|
|
2029
|
-
let s = -n.scrollLeft +
|
|
2007
|
+
function li(e) {
|
|
2008
|
+
const t = K(e), n = $e(e), r = e.ownerDocument.body, o = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
2009
|
+
let s = -n.scrollLeft + ut(e);
|
|
2030
2010
|
const c = -n.scrollTop;
|
|
2031
2011
|
return H(r).direction === "rtl" && (s += W(t.clientWidth, r.clientWidth) - o), {
|
|
2032
2012
|
width: o,
|
|
@@ -2035,12 +2015,12 @@ function ni(e) {
|
|
|
2035
2015
|
y: c
|
|
2036
2016
|
};
|
|
2037
2017
|
}
|
|
2038
|
-
function
|
|
2039
|
-
const n = B(e), r =
|
|
2018
|
+
function ui(e, t) {
|
|
2019
|
+
const n = B(e), r = K(e), o = n.visualViewport;
|
|
2040
2020
|
let i = r.clientWidth, s = r.clientHeight, c = 0, u = 0;
|
|
2041
2021
|
if (o) {
|
|
2042
2022
|
i = o.width, s = o.height;
|
|
2043
|
-
const l =
|
|
2023
|
+
const l = at();
|
|
2044
2024
|
(!l || l && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
|
|
2045
2025
|
}
|
|
2046
2026
|
return {
|
|
@@ -2050,7 +2030,8 @@ function ri(e, t) {
|
|
|
2050
2030
|
y: u
|
|
2051
2031
|
};
|
|
2052
2032
|
}
|
|
2053
|
-
|
|
2033
|
+
const fi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2034
|
+
function di(e, t) {
|
|
2054
2035
|
const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? ue(e) : j(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
|
|
2055
2036
|
return {
|
|
2056
2037
|
width: s,
|
|
@@ -2059,16 +2040,16 @@ function oi(e, t) {
|
|
|
2059
2040
|
y: l
|
|
2060
2041
|
};
|
|
2061
2042
|
}
|
|
2062
|
-
function
|
|
2043
|
+
function _t(e, t, n) {
|
|
2063
2044
|
let r;
|
|
2064
2045
|
if (t === "viewport")
|
|
2065
|
-
r =
|
|
2046
|
+
r = ui(e, n);
|
|
2066
2047
|
else if (t === "document")
|
|
2067
|
-
r =
|
|
2048
|
+
r = li(K(e));
|
|
2068
2049
|
else if ($(t))
|
|
2069
|
-
r =
|
|
2050
|
+
r = di(t, n);
|
|
2070
2051
|
else {
|
|
2071
|
-
const o =
|
|
2052
|
+
const o = fn(e);
|
|
2072
2053
|
r = {
|
|
2073
2054
|
x: t.x - o.x,
|
|
2074
2055
|
y: t.y - o.y,
|
|
@@ -2076,13 +2057,13 @@ function Bt(e, t, n) {
|
|
|
2076
2057
|
height: t.height
|
|
2077
2058
|
};
|
|
2078
2059
|
}
|
|
2079
|
-
return
|
|
2060
|
+
return De(r);
|
|
2080
2061
|
}
|
|
2081
|
-
function
|
|
2062
|
+
function pn(e, t) {
|
|
2082
2063
|
const n = ne(e);
|
|
2083
|
-
return n === t || !$(n) || de(n) ? !1 : H(n).position === "fixed" ||
|
|
2064
|
+
return n === t || !$(n) || de(n) ? !1 : H(n).position === "fixed" || pn(n, t);
|
|
2084
2065
|
}
|
|
2085
|
-
function
|
|
2066
|
+
function pi(e, t) {
|
|
2086
2067
|
const n = t.get(e);
|
|
2087
2068
|
if (n)
|
|
2088
2069
|
return n;
|
|
@@ -2090,22 +2071,22 @@ function ii(e, t) {
|
|
|
2090
2071
|
const i = H(e).position === "fixed";
|
|
2091
2072
|
let s = i ? ne(e) : e;
|
|
2092
2073
|
for (; $(s) && !de(s); ) {
|
|
2093
|
-
const c = H(s), u =
|
|
2094
|
-
!u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o &&
|
|
2074
|
+
const c = H(s), u = ct(s);
|
|
2075
|
+
!u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && fi.has(o.position) || be(s) && !u && pn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
|
|
2095
2076
|
}
|
|
2096
2077
|
return t.set(e, r), r;
|
|
2097
2078
|
}
|
|
2098
|
-
function
|
|
2079
|
+
function hi(e) {
|
|
2099
2080
|
let {
|
|
2100
2081
|
element: t,
|
|
2101
2082
|
boundary: n,
|
|
2102
2083
|
rootBoundary: r,
|
|
2103
2084
|
strategy: o
|
|
2104
2085
|
} = e;
|
|
2105
|
-
const s = [...n === "clippingAncestors" ?
|
|
2106
|
-
const d =
|
|
2086
|
+
const s = [...n === "clippingAncestors" ? Be(t) ? [] : pi(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
|
|
2087
|
+
const d = _t(t, f, o);
|
|
2107
2088
|
return l.top = W(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
|
|
2108
|
-
},
|
|
2089
|
+
}, _t(t, c, o));
|
|
2109
2090
|
return {
|
|
2110
2091
|
width: u.right - u.left,
|
|
2111
2092
|
height: u.bottom - u.top,
|
|
@@ -2113,73 +2094,73 @@ function si(e) {
|
|
|
2113
2094
|
y: u.top
|
|
2114
2095
|
};
|
|
2115
2096
|
}
|
|
2116
|
-
function
|
|
2097
|
+
function mi(e) {
|
|
2117
2098
|
const {
|
|
2118
2099
|
width: t,
|
|
2119
2100
|
height: n
|
|
2120
|
-
} =
|
|
2101
|
+
} = un(e);
|
|
2121
2102
|
return {
|
|
2122
2103
|
width: t,
|
|
2123
2104
|
height: n
|
|
2124
2105
|
};
|
|
2125
2106
|
}
|
|
2126
|
-
function
|
|
2127
|
-
const r = Y(t), o =
|
|
2107
|
+
function vi(e, t, n) {
|
|
2108
|
+
const r = Y(t), o = K(t), i = n === "fixed", s = ie(e, !0, i, t);
|
|
2128
2109
|
let c = {
|
|
2129
2110
|
scrollLeft: 0,
|
|
2130
2111
|
scrollTop: 0
|
|
2131
2112
|
};
|
|
2132
2113
|
const u = j(0);
|
|
2133
2114
|
function l() {
|
|
2134
|
-
u.x =
|
|
2115
|
+
u.x = ut(o);
|
|
2135
2116
|
}
|
|
2136
2117
|
if (r || !r && !i)
|
|
2137
|
-
if ((me(t) !== "body" ||
|
|
2138
|
-
const
|
|
2139
|
-
u.x =
|
|
2118
|
+
if ((me(t) !== "body" || be(o)) && (c = $e(t)), r) {
|
|
2119
|
+
const h = ie(t, !0, i, t);
|
|
2120
|
+
u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
|
|
2140
2121
|
} else o && l();
|
|
2141
2122
|
i && !r && o && l();
|
|
2142
|
-
const f = o && !r && !i ?
|
|
2123
|
+
const f = o && !r && !i ? dn(o, c) : j(0), d = s.left + c.scrollLeft - u.x - f.x, m = s.top + c.scrollTop - u.y - f.y;
|
|
2143
2124
|
return {
|
|
2144
2125
|
x: d,
|
|
2145
|
-
y:
|
|
2126
|
+
y: m,
|
|
2146
2127
|
width: s.width,
|
|
2147
2128
|
height: s.height
|
|
2148
2129
|
};
|
|
2149
2130
|
}
|
|
2150
|
-
function
|
|
2131
|
+
function Ze(e) {
|
|
2151
2132
|
return H(e).position === "static";
|
|
2152
2133
|
}
|
|
2153
|
-
function
|
|
2134
|
+
function Ft(e, t) {
|
|
2154
2135
|
if (!Y(e) || H(e).position === "fixed")
|
|
2155
2136
|
return null;
|
|
2156
2137
|
if (t)
|
|
2157
2138
|
return t(e);
|
|
2158
2139
|
let n = e.offsetParent;
|
|
2159
|
-
return
|
|
2140
|
+
return K(e) === n && (n = n.ownerDocument.body), n;
|
|
2160
2141
|
}
|
|
2161
|
-
function
|
|
2142
|
+
function hn(e, t) {
|
|
2162
2143
|
const n = B(e);
|
|
2163
|
-
if (
|
|
2144
|
+
if (Be(e))
|
|
2164
2145
|
return n;
|
|
2165
2146
|
if (!Y(e)) {
|
|
2166
2147
|
let o = ne(e);
|
|
2167
2148
|
for (; o && !de(o); ) {
|
|
2168
|
-
if ($(o) && !
|
|
2149
|
+
if ($(o) && !Ze(o))
|
|
2169
2150
|
return o;
|
|
2170
2151
|
o = ne(o);
|
|
2171
2152
|
}
|
|
2172
2153
|
return n;
|
|
2173
2154
|
}
|
|
2174
|
-
let r =
|
|
2175
|
-
for (; r &&
|
|
2176
|
-
r =
|
|
2177
|
-
return r && de(r) &&
|
|
2155
|
+
let r = Ft(e, t);
|
|
2156
|
+
for (; r && Qo(r) && Ze(r); )
|
|
2157
|
+
r = Ft(r, t);
|
|
2158
|
+
return r && de(r) && Ze(r) && !ct(r) ? n : r || ri(e) || n;
|
|
2178
2159
|
}
|
|
2179
|
-
const
|
|
2180
|
-
const t = this.getOffsetParent ||
|
|
2160
|
+
const gi = async function(e) {
|
|
2161
|
+
const t = this.getOffsetParent || hn, n = this.getDimensions, r = await n(e.floating);
|
|
2181
2162
|
return {
|
|
2182
|
-
reference:
|
|
2163
|
+
reference: vi(e.reference, await t(e.floating), e.strategy),
|
|
2183
2164
|
floating: {
|
|
2184
2165
|
x: 0,
|
|
2185
2166
|
y: 0,
|
|
@@ -2188,27 +2169,27 @@ const li = async function(e) {
|
|
|
2188
2169
|
}
|
|
2189
2170
|
};
|
|
2190
2171
|
};
|
|
2191
|
-
function
|
|
2172
|
+
function yi(e) {
|
|
2192
2173
|
return H(e).direction === "rtl";
|
|
2193
2174
|
}
|
|
2194
|
-
const
|
|
2195
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2196
|
-
getDocumentElement:
|
|
2197
|
-
getClippingRect:
|
|
2198
|
-
getOffsetParent:
|
|
2199
|
-
getElementRects:
|
|
2200
|
-
getClientRects:
|
|
2201
|
-
getDimensions:
|
|
2175
|
+
const wi = {
|
|
2176
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ci,
|
|
2177
|
+
getDocumentElement: K,
|
|
2178
|
+
getClippingRect: hi,
|
|
2179
|
+
getOffsetParent: hn,
|
|
2180
|
+
getElementRects: gi,
|
|
2181
|
+
getClientRects: ai,
|
|
2182
|
+
getDimensions: mi,
|
|
2202
2183
|
getScale: ue,
|
|
2203
2184
|
isElement: $,
|
|
2204
|
-
isRTL:
|
|
2185
|
+
isRTL: yi
|
|
2205
2186
|
};
|
|
2206
|
-
function
|
|
2187
|
+
function mn(e, t) {
|
|
2207
2188
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2208
2189
|
}
|
|
2209
|
-
function
|
|
2190
|
+
function bi(e, t) {
|
|
2210
2191
|
let n = null, r;
|
|
2211
|
-
const o =
|
|
2192
|
+
const o = K(e);
|
|
2212
2193
|
function i() {
|
|
2213
2194
|
var c;
|
|
2214
2195
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -2218,18 +2199,18 @@ function di(e, t) {
|
|
|
2218
2199
|
const l = e.getBoundingClientRect(), {
|
|
2219
2200
|
left: f,
|
|
2220
2201
|
top: d,
|
|
2221
|
-
width:
|
|
2222
|
-
height:
|
|
2202
|
+
width: m,
|
|
2203
|
+
height: h
|
|
2223
2204
|
} = l;
|
|
2224
|
-
if (c || t(), !
|
|
2205
|
+
if (c || t(), !m || !h)
|
|
2225
2206
|
return;
|
|
2226
|
-
const
|
|
2227
|
-
rootMargin: -
|
|
2207
|
+
const v = Oe(d), p = Oe(o.clientWidth - (f + m)), g = Oe(o.clientHeight - (d + h)), y = Oe(f), x = {
|
|
2208
|
+
rootMargin: -v + "px " + -p + "px " + -g + "px " + -y + "px",
|
|
2228
2209
|
threshold: W(0, te(1, u)) || 1
|
|
2229
2210
|
};
|
|
2230
2211
|
let b = !0;
|
|
2231
|
-
function E(
|
|
2232
|
-
const P =
|
|
2212
|
+
function E(S) {
|
|
2213
|
+
const P = S[0].intersectionRatio;
|
|
2233
2214
|
if (P !== u) {
|
|
2234
2215
|
if (!b)
|
|
2235
2216
|
return s();
|
|
@@ -2237,7 +2218,7 @@ function di(e, t) {
|
|
|
2237
2218
|
s(!1, 1e-7);
|
|
2238
2219
|
}, 1e3);
|
|
2239
2220
|
}
|
|
2240
|
-
P === 1 && !
|
|
2221
|
+
P === 1 && !mn(l, e.getBoundingClientRect()) && s(), b = !1;
|
|
2241
2222
|
}
|
|
2242
2223
|
try {
|
|
2243
2224
|
n = new IntersectionObserver(E, {
|
|
@@ -2252,7 +2233,7 @@ function di(e, t) {
|
|
|
2252
2233
|
}
|
|
2253
2234
|
return s(!0), i;
|
|
2254
2235
|
}
|
|
2255
|
-
function
|
|
2236
|
+
function xi(e, t, n, r) {
|
|
2256
2237
|
r === void 0 && (r = {});
|
|
2257
2238
|
const {
|
|
2258
2239
|
ancestorScroll: o = !0,
|
|
@@ -2260,37 +2241,37 @@ function hi(e, t, n, r) {
|
|
|
2260
2241
|
elementResize: s = typeof ResizeObserver == "function",
|
|
2261
2242
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
2262
2243
|
animationFrame: u = !1
|
|
2263
|
-
} = r, l =
|
|
2244
|
+
} = r, l = lt(e), f = o || i ? [...l ? we(l) : [], ...we(t)] : [];
|
|
2264
2245
|
f.forEach((y) => {
|
|
2265
2246
|
o && y.addEventListener("scroll", n, {
|
|
2266
2247
|
passive: !0
|
|
2267
2248
|
}), i && y.addEventListener("resize", n);
|
|
2268
2249
|
});
|
|
2269
|
-
const d = l && c ?
|
|
2270
|
-
let
|
|
2271
|
-
s && (
|
|
2250
|
+
const d = l && c ? bi(l, n) : null;
|
|
2251
|
+
let m = -1, h = null;
|
|
2252
|
+
s && (h = new ResizeObserver((y) => {
|
|
2272
2253
|
let [w] = y;
|
|
2273
|
-
w && w.target === l &&
|
|
2254
|
+
w && w.target === l && h && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
2274
2255
|
var x;
|
|
2275
|
-
(x =
|
|
2256
|
+
(x = h) == null || x.observe(t);
|
|
2276
2257
|
})), n();
|
|
2277
|
-
}), l && !u &&
|
|
2278
|
-
let
|
|
2279
|
-
u &&
|
|
2280
|
-
function
|
|
2258
|
+
}), l && !u && h.observe(l), h.observe(t));
|
|
2259
|
+
let v, p = u ? ie(e) : null;
|
|
2260
|
+
u && g();
|
|
2261
|
+
function g() {
|
|
2281
2262
|
const y = ie(e);
|
|
2282
|
-
|
|
2263
|
+
p && !mn(p, y) && n(), p = y, v = requestAnimationFrame(g);
|
|
2283
2264
|
}
|
|
2284
2265
|
return n(), () => {
|
|
2285
2266
|
var y;
|
|
2286
2267
|
f.forEach((w) => {
|
|
2287
2268
|
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
2288
|
-
}), d
|
|
2269
|
+
}), d?.(), (y = h) == null || y.disconnect(), h = null, u && cancelAnimationFrame(v);
|
|
2289
2270
|
};
|
|
2290
2271
|
}
|
|
2291
|
-
const
|
|
2272
|
+
const Ei = Yo, Ci = Ko, Pi = zo, Si = Zo, Ai = Uo, It = Vo, Ri = Xo, Oi = (e, t, n) => {
|
|
2292
2273
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2293
|
-
platform:
|
|
2274
|
+
platform: wi,
|
|
2294
2275
|
...n
|
|
2295
2276
|
}, i = {
|
|
2296
2277
|
...o.platform,
|
|
@@ -2301,9 +2282,9 @@ const pi = Yo, mi = Xo, vi = Uo, gi = Zo, yi = zo, Ht = Vo, wi = Ko, bi = (e, t,
|
|
|
2301
2282
|
platform: i
|
|
2302
2283
|
});
|
|
2303
2284
|
};
|
|
2304
|
-
var
|
|
2305
|
-
},
|
|
2306
|
-
function
|
|
2285
|
+
var Ni = typeof document < "u", Ti = function() {
|
|
2286
|
+
}, Me = Ni ? Qn : Ti;
|
|
2287
|
+
function _e(e, t) {
|
|
2307
2288
|
if (e === t)
|
|
2308
2289
|
return !0;
|
|
2309
2290
|
if (typeof e != typeof t)
|
|
@@ -2315,7 +2296,7 @@ function Ie(e, t) {
|
|
|
2315
2296
|
if (Array.isArray(e)) {
|
|
2316
2297
|
if (n = e.length, n !== t.length) return !1;
|
|
2317
2298
|
for (r = n; r-- !== 0; )
|
|
2318
|
-
if (!
|
|
2299
|
+
if (!_e(e[r], t[r]))
|
|
2319
2300
|
return !1;
|
|
2320
2301
|
return !0;
|
|
2321
2302
|
}
|
|
@@ -2326,27 +2307,27 @@ function Ie(e, t) {
|
|
|
2326
2307
|
return !1;
|
|
2327
2308
|
for (r = n; r-- !== 0; ) {
|
|
2328
2309
|
const i = o[r];
|
|
2329
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
2310
|
+
if (!(i === "_owner" && e.$$typeof) && !_e(e[i], t[i]))
|
|
2330
2311
|
return !1;
|
|
2331
2312
|
}
|
|
2332
2313
|
return !0;
|
|
2333
2314
|
}
|
|
2334
2315
|
return e !== e && t !== t;
|
|
2335
2316
|
}
|
|
2336
|
-
function
|
|
2317
|
+
function vn(e) {
|
|
2337
2318
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2338
2319
|
}
|
|
2339
|
-
function
|
|
2340
|
-
const n =
|
|
2320
|
+
function Wt(e, t) {
|
|
2321
|
+
const n = vn(e);
|
|
2341
2322
|
return Math.round(t * n) / n;
|
|
2342
2323
|
}
|
|
2343
|
-
function
|
|
2324
|
+
function Ge(e) {
|
|
2344
2325
|
const t = a.useRef(e);
|
|
2345
|
-
return
|
|
2326
|
+
return Me(() => {
|
|
2346
2327
|
t.current = e;
|
|
2347
2328
|
}), t;
|
|
2348
2329
|
}
|
|
2349
|
-
function
|
|
2330
|
+
function Mi(e) {
|
|
2350
2331
|
e === void 0 && (e = {});
|
|
2351
2332
|
const {
|
|
2352
2333
|
placement: t = "bottom",
|
|
@@ -2367,21 +2348,21 @@ function Ci(e) {
|
|
|
2367
2348
|
placement: t,
|
|
2368
2349
|
middlewareData: {},
|
|
2369
2350
|
isPositioned: !1
|
|
2370
|
-
}), [
|
|
2371
|
-
|
|
2372
|
-
const [
|
|
2373
|
-
|
|
2374
|
-
}, []), x = a.useCallback((
|
|
2375
|
-
|
|
2376
|
-
}, []), b = i ||
|
|
2377
|
-
if (!
|
|
2351
|
+
}), [m, h] = a.useState(r);
|
|
2352
|
+
_e(m, r) || h(r);
|
|
2353
|
+
const [v, p] = a.useState(null), [g, y] = a.useState(null), w = a.useCallback((A) => {
|
|
2354
|
+
A !== S.current && (S.current = A, p(A));
|
|
2355
|
+
}, []), x = a.useCallback((A) => {
|
|
2356
|
+
A !== P.current && (P.current = A, y(A));
|
|
2357
|
+
}, []), b = i || v, E = s || g, S = a.useRef(null), P = a.useRef(null), R = a.useRef(f), T = u != null, O = Ge(u), _ = Ge(o), F = Ge(l), M = a.useCallback(() => {
|
|
2358
|
+
if (!S.current || !P.current)
|
|
2378
2359
|
return;
|
|
2379
|
-
const
|
|
2360
|
+
const A = {
|
|
2380
2361
|
placement: t,
|
|
2381
2362
|
strategy: n,
|
|
2382
|
-
middleware:
|
|
2363
|
+
middleware: m
|
|
2383
2364
|
};
|
|
2384
|
-
_.current && (
|
|
2365
|
+
_.current && (A.platform = _.current), Oi(S.current, P.current, A).then((D) => {
|
|
2385
2366
|
const V = {
|
|
2386
2367
|
...D,
|
|
2387
2368
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2390,29 +2371,29 @@ function Ci(e) {
|
|
|
2390
2371
|
// setting it to `true` when `open === false` (must be specified).
|
|
2391
2372
|
isPositioned: F.current !== !1
|
|
2392
2373
|
};
|
|
2393
|
-
N.current && !
|
|
2374
|
+
N.current && !_e(R.current, V) && (R.current = V, $t.flushSync(() => {
|
|
2394
2375
|
d(V);
|
|
2395
2376
|
}));
|
|
2396
2377
|
});
|
|
2397
|
-
}, [
|
|
2398
|
-
|
|
2399
|
-
l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, d((
|
|
2400
|
-
...
|
|
2378
|
+
}, [m, t, n, _, F]);
|
|
2379
|
+
Me(() => {
|
|
2380
|
+
l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, d((A) => ({
|
|
2381
|
+
...A,
|
|
2401
2382
|
isPositioned: !1
|
|
2402
2383
|
})));
|
|
2403
2384
|
}, [l]);
|
|
2404
2385
|
const N = a.useRef(!1);
|
|
2405
|
-
|
|
2386
|
+
Me(() => (N.current = !0, () => {
|
|
2406
2387
|
N.current = !1;
|
|
2407
|
-
}), []),
|
|
2408
|
-
if (b && (
|
|
2388
|
+
}), []), Me(() => {
|
|
2389
|
+
if (b && (S.current = b), E && (P.current = E), b && E) {
|
|
2409
2390
|
if (O.current)
|
|
2410
|
-
return O.current(b, E,
|
|
2411
|
-
|
|
2391
|
+
return O.current(b, E, M);
|
|
2392
|
+
M();
|
|
2412
2393
|
}
|
|
2413
|
-
}, [b, E,
|
|
2394
|
+
}, [b, E, M, O, T]);
|
|
2414
2395
|
const I = a.useMemo(() => ({
|
|
2415
|
-
reference:
|
|
2396
|
+
reference: S,
|
|
2416
2397
|
floating: P,
|
|
2417
2398
|
setReference: w,
|
|
2418
2399
|
setFloating: x
|
|
@@ -2420,18 +2401,18 @@ function Ci(e) {
|
|
|
2420
2401
|
reference: b,
|
|
2421
2402
|
floating: E
|
|
2422
2403
|
}), [b, E]), L = a.useMemo(() => {
|
|
2423
|
-
const
|
|
2404
|
+
const A = {
|
|
2424
2405
|
position: n,
|
|
2425
2406
|
left: 0,
|
|
2426
2407
|
top: 0
|
|
2427
2408
|
};
|
|
2428
2409
|
if (!k.floating)
|
|
2429
|
-
return
|
|
2430
|
-
const D =
|
|
2410
|
+
return A;
|
|
2411
|
+
const D = Wt(k.floating, f.x), V = Wt(k.floating, f.y);
|
|
2431
2412
|
return c ? {
|
|
2432
|
-
...
|
|
2413
|
+
...A,
|
|
2433
2414
|
transform: "translate(" + D + "px, " + V + "px)",
|
|
2434
|
-
...
|
|
2415
|
+
...vn(k.floating) >= 1.5 && {
|
|
2435
2416
|
willChange: "transform"
|
|
2436
2417
|
}
|
|
2437
2418
|
} : {
|
|
@@ -2442,13 +2423,13 @@ function Ci(e) {
|
|
|
2442
2423
|
}, [n, c, k.floating, f.x, f.y]);
|
|
2443
2424
|
return a.useMemo(() => ({
|
|
2444
2425
|
...f,
|
|
2445
|
-
update:
|
|
2426
|
+
update: M,
|
|
2446
2427
|
refs: I,
|
|
2447
2428
|
elements: k,
|
|
2448
2429
|
floatingStyles: L
|
|
2449
|
-
}), [f,
|
|
2430
|
+
}), [f, M, I, k, L]);
|
|
2450
2431
|
}
|
|
2451
|
-
const
|
|
2432
|
+
const ki = (e) => {
|
|
2452
2433
|
function t(n) {
|
|
2453
2434
|
return {}.hasOwnProperty.call(n, "current");
|
|
2454
2435
|
}
|
|
@@ -2460,38 +2441,38 @@ const Pi = (e) => {
|
|
|
2460
2441
|
element: r,
|
|
2461
2442
|
padding: o
|
|
2462
2443
|
} = typeof e == "function" ? e(n) : e;
|
|
2463
|
-
return r && t(r) ? r.current != null ?
|
|
2444
|
+
return r && t(r) ? r.current != null ? It({
|
|
2464
2445
|
element: r.current,
|
|
2465
2446
|
padding: o
|
|
2466
|
-
}).fn(n) : {} : r ?
|
|
2447
|
+
}).fn(n) : {} : r ? It({
|
|
2467
2448
|
element: r,
|
|
2468
2449
|
padding: o
|
|
2469
2450
|
}).fn(n) : {};
|
|
2470
2451
|
}
|
|
2471
2452
|
};
|
|
2472
|
-
},
|
|
2473
|
-
...
|
|
2453
|
+
}, Li = (e, t) => ({
|
|
2454
|
+
...Ei(e),
|
|
2474
2455
|
options: [e, t]
|
|
2475
|
-
}),
|
|
2476
|
-
...
|
|
2456
|
+
}), Di = (e, t) => ({
|
|
2457
|
+
...Ci(e),
|
|
2477
2458
|
options: [e, t]
|
|
2478
|
-
}),
|
|
2479
|
-
...
|
|
2459
|
+
}), _i = (e, t) => ({
|
|
2460
|
+
...Ri(e),
|
|
2480
2461
|
options: [e, t]
|
|
2481
|
-
}),
|
|
2482
|
-
...
|
|
2462
|
+
}), Fi = (e, t) => ({
|
|
2463
|
+
...Pi(e),
|
|
2483
2464
|
options: [e, t]
|
|
2484
|
-
}),
|
|
2485
|
-
...
|
|
2465
|
+
}), Ii = (e, t) => ({
|
|
2466
|
+
...Si(e),
|
|
2486
2467
|
options: [e, t]
|
|
2487
|
-
}),
|
|
2488
|
-
...
|
|
2468
|
+
}), Wi = (e, t) => ({
|
|
2469
|
+
...Ai(e),
|
|
2489
2470
|
options: [e, t]
|
|
2490
|
-
}),
|
|
2491
|
-
...
|
|
2471
|
+
}), Bi = (e, t) => ({
|
|
2472
|
+
...ki(e),
|
|
2492
2473
|
options: [e, t]
|
|
2493
2474
|
});
|
|
2494
|
-
var
|
|
2475
|
+
var $i = "Arrow", gn = a.forwardRef((e, t) => {
|
|
2495
2476
|
const { children: n, width: r = 10, height: o = 5, ...i } = e;
|
|
2496
2477
|
return /* @__PURE__ */ C(
|
|
2497
2478
|
G.svg,
|
|
@@ -2506,24 +2487,23 @@ var ki = "Arrow", bn = a.forwardRef((e, t) => {
|
|
|
2506
2487
|
}
|
|
2507
2488
|
);
|
|
2508
2489
|
});
|
|
2509
|
-
|
|
2510
|
-
var
|
|
2490
|
+
gn.displayName = $i;
|
|
2491
|
+
var Hi = gn, ft = "Popper", [yn, wn] = zt(ft), [Vi, bn] = yn(ft), xn = (e) => {
|
|
2511
2492
|
const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
|
|
2512
|
-
return /* @__PURE__ */ C(
|
|
2493
|
+
return /* @__PURE__ */ C(Vi, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2513
2494
|
};
|
|
2514
|
-
|
|
2515
|
-
var
|
|
2495
|
+
xn.displayName = ft;
|
|
2496
|
+
var En = "PopperAnchor", Cn = a.forwardRef(
|
|
2516
2497
|
(e, t) => {
|
|
2517
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, i =
|
|
2498
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, i = bn(En, n), s = a.useRef(null), c = re(t, s);
|
|
2518
2499
|
return a.useEffect(() => {
|
|
2519
|
-
i.onAnchorChange(
|
|
2500
|
+
i.onAnchorChange(r?.current || s.current);
|
|
2520
2501
|
}), r ? null : /* @__PURE__ */ C(G.div, { ...o, ref: c });
|
|
2521
2502
|
}
|
|
2522
2503
|
);
|
|
2523
|
-
|
|
2524
|
-
var
|
|
2504
|
+
Cn.displayName = En;
|
|
2505
|
+
var dt = "PopperContent", [zi, Ui] = yn(dt), Pn = a.forwardRef(
|
|
2525
2506
|
(e, t) => {
|
|
2526
|
-
var mt, vt, gt, yt, wt, bt;
|
|
2527
2507
|
const {
|
|
2528
2508
|
__scopePopper: n,
|
|
2529
2509
|
side: r = "bottom",
|
|
@@ -2535,52 +2515,52 @@ var ht = "PopperContent", [_i, Fi] = xn(ht), Rn = a.forwardRef(
|
|
|
2535
2515
|
collisionBoundary: l = [],
|
|
2536
2516
|
collisionPadding: f = 0,
|
|
2537
2517
|
sticky: d = "partial",
|
|
2538
|
-
hideWhenDetached:
|
|
2539
|
-
updatePositionStrategy:
|
|
2540
|
-
onPlaced:
|
|
2541
|
-
...
|
|
2542
|
-
} = e,
|
|
2518
|
+
hideWhenDetached: m = !1,
|
|
2519
|
+
updatePositionStrategy: h = "optimized",
|
|
2520
|
+
onPlaced: v,
|
|
2521
|
+
...p
|
|
2522
|
+
} = e, g = bn(dt, n), [y, w] = a.useState(null), x = re(t, (ve) => w(ve)), [b, E] = a.useState(null), S = No(b), P = S?.width ?? 0, R = S?.height ?? 0, T = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, _ = Array.isArray(l) ? l : [l], F = _.length > 0, M = {
|
|
2543
2523
|
padding: O,
|
|
2544
|
-
boundary: _.filter(
|
|
2524
|
+
boundary: _.filter(Yi),
|
|
2545
2525
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2546
2526
|
altBoundary: F
|
|
2547
|
-
}, { refs: N, floatingStyles: I, placement: k, isPositioned: L, middlewareData:
|
|
2527
|
+
}, { refs: N, floatingStyles: I, placement: k, isPositioned: L, middlewareData: A } = Mi({
|
|
2548
2528
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2549
2529
|
strategy: "fixed",
|
|
2550
|
-
placement:
|
|
2551
|
-
whileElementsMounted: (...ve) =>
|
|
2552
|
-
animationFrame:
|
|
2530
|
+
placement: T,
|
|
2531
|
+
whileElementsMounted: (...ve) => xi(...ve, {
|
|
2532
|
+
animationFrame: h === "always"
|
|
2553
2533
|
}),
|
|
2554
2534
|
elements: {
|
|
2555
|
-
reference:
|
|
2535
|
+
reference: g.anchor
|
|
2556
2536
|
},
|
|
2557
2537
|
middleware: [
|
|
2558
|
-
|
|
2559
|
-
u &&
|
|
2538
|
+
Li({ mainAxis: o + R, alignmentAxis: s }),
|
|
2539
|
+
u && Di({
|
|
2560
2540
|
mainAxis: !0,
|
|
2561
2541
|
crossAxis: !1,
|
|
2562
|
-
limiter: d === "partial" ?
|
|
2563
|
-
...
|
|
2542
|
+
limiter: d === "partial" ? _i() : void 0,
|
|
2543
|
+
...M
|
|
2564
2544
|
}),
|
|
2565
|
-
u &&
|
|
2566
|
-
|
|
2567
|
-
...
|
|
2568
|
-
apply: ({ elements: ve, rects:
|
|
2569
|
-
const { width:
|
|
2570
|
-
|
|
2545
|
+
u && Fi({ ...M }),
|
|
2546
|
+
Ii({
|
|
2547
|
+
...M,
|
|
2548
|
+
apply: ({ elements: ve, rects: mt, availableWidth: jn, availableHeight: Yn }) => {
|
|
2549
|
+
const { width: Kn, height: Xn } = mt.reference, Ee = ve.floating.style;
|
|
2550
|
+
Ee.setProperty("--radix-popper-available-width", `${jn}px`), Ee.setProperty("--radix-popper-available-height", `${Yn}px`), Ee.setProperty("--radix-popper-anchor-width", `${Kn}px`), Ee.setProperty("--radix-popper-anchor-height", `${Xn}px`);
|
|
2571
2551
|
}
|
|
2572
2552
|
}),
|
|
2573
|
-
b &&
|
|
2574
|
-
|
|
2575
|
-
|
|
2553
|
+
b && Bi({ element: b, padding: c }),
|
|
2554
|
+
Ki({ arrowWidth: P, arrowHeight: R }),
|
|
2555
|
+
m && Wi({ strategy: "referenceHidden", ...M })
|
|
2576
2556
|
]
|
|
2577
|
-
}), [D, V] =
|
|
2557
|
+
}), [D, V] = Rn(k), ht = fe(v);
|
|
2578
2558
|
ee(() => {
|
|
2579
|
-
L && (
|
|
2580
|
-
}, [L,
|
|
2581
|
-
const
|
|
2559
|
+
L && ht?.();
|
|
2560
|
+
}, [L, ht]);
|
|
2561
|
+
const $n = A.arrow?.x, Hn = A.arrow?.y, Vn = A.arrow?.centerOffset !== 0, [zn, Un] = a.useState();
|
|
2582
2562
|
return ee(() => {
|
|
2583
|
-
y &&
|
|
2563
|
+
y && Un(window.getComputedStyle(y).zIndex);
|
|
2584
2564
|
}, [y]), /* @__PURE__ */ C(
|
|
2585
2565
|
"div",
|
|
2586
2566
|
{
|
|
@@ -2591,38 +2571,38 @@ var ht = "PopperContent", [_i, Fi] = xn(ht), Rn = a.forwardRef(
|
|
|
2591
2571
|
transform: L ? I.transform : "translate(0, -200%)",
|
|
2592
2572
|
// keep off the page when measuring
|
|
2593
2573
|
minWidth: "max-content",
|
|
2594
|
-
zIndex:
|
|
2574
|
+
zIndex: zn,
|
|
2595
2575
|
"--radix-popper-transform-origin": [
|
|
2596
|
-
|
|
2597
|
-
|
|
2576
|
+
A.transformOrigin?.x,
|
|
2577
|
+
A.transformOrigin?.y
|
|
2598
2578
|
].join(" "),
|
|
2599
2579
|
// hide the content if using the hide middleware and should be hidden
|
|
2600
2580
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2601
2581
|
// as if the PopperContent isn't there at all
|
|
2602
|
-
...
|
|
2582
|
+
...A.hide?.referenceHidden && {
|
|
2603
2583
|
visibility: "hidden",
|
|
2604
2584
|
pointerEvents: "none"
|
|
2605
2585
|
}
|
|
2606
2586
|
},
|
|
2607
2587
|
dir: e.dir,
|
|
2608
2588
|
children: /* @__PURE__ */ C(
|
|
2609
|
-
|
|
2589
|
+
zi,
|
|
2610
2590
|
{
|
|
2611
2591
|
scope: n,
|
|
2612
2592
|
placedSide: D,
|
|
2613
2593
|
onArrowChange: E,
|
|
2614
|
-
arrowX:
|
|
2615
|
-
arrowY:
|
|
2616
|
-
shouldHideArrow:
|
|
2594
|
+
arrowX: $n,
|
|
2595
|
+
arrowY: Hn,
|
|
2596
|
+
shouldHideArrow: Vn,
|
|
2617
2597
|
children: /* @__PURE__ */ C(
|
|
2618
2598
|
G.div,
|
|
2619
2599
|
{
|
|
2620
2600
|
"data-side": D,
|
|
2621
2601
|
"data-align": V,
|
|
2622
|
-
...
|
|
2602
|
+
...p,
|
|
2623
2603
|
ref: x,
|
|
2624
2604
|
style: {
|
|
2625
|
-
...
|
|
2605
|
+
...p.style,
|
|
2626
2606
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2627
2607
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2628
2608
|
animation: L ? void 0 : "none"
|
|
@@ -2635,14 +2615,14 @@ var ht = "PopperContent", [_i, Fi] = xn(ht), Rn = a.forwardRef(
|
|
|
2635
2615
|
);
|
|
2636
2616
|
}
|
|
2637
2617
|
);
|
|
2638
|
-
|
|
2639
|
-
var
|
|
2618
|
+
Pn.displayName = dt;
|
|
2619
|
+
var Sn = "PopperArrow", ji = {
|
|
2640
2620
|
top: "bottom",
|
|
2641
2621
|
right: "left",
|
|
2642
2622
|
bottom: "top",
|
|
2643
2623
|
left: "right"
|
|
2644
|
-
},
|
|
2645
|
-
const { __scopePopper: r, ...o } = t, i =
|
|
2624
|
+
}, An = a.forwardRef(function(t, n) {
|
|
2625
|
+
const { __scopePopper: r, ...o } = t, i = Ui(Sn, r), s = ji[i.placedSide];
|
|
2646
2626
|
return (
|
|
2647
2627
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2648
2628
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2671,7 +2651,7 @@ var On = "PopperArrow", Ii = {
|
|
|
2671
2651
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2672
2652
|
},
|
|
2673
2653
|
children: /* @__PURE__ */ C(
|
|
2674
|
-
|
|
2654
|
+
Hi,
|
|
2675
2655
|
{
|
|
2676
2656
|
...o,
|
|
2677
2657
|
ref: n,
|
|
@@ -2686,27 +2666,26 @@ var On = "PopperArrow", Ii = {
|
|
|
2686
2666
|
)
|
|
2687
2667
|
);
|
|
2688
2668
|
});
|
|
2689
|
-
|
|
2690
|
-
function
|
|
2669
|
+
An.displayName = Sn;
|
|
2670
|
+
function Yi(e) {
|
|
2691
2671
|
return e !== null;
|
|
2692
2672
|
}
|
|
2693
|
-
var
|
|
2673
|
+
var Ki = (e) => ({
|
|
2694
2674
|
name: "transformOrigin",
|
|
2695
2675
|
options: e,
|
|
2696
2676
|
fn(t) {
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
return l === "bottom" ? (g = s ? d : `${p}px`, h = `${-u}px`) : l === "top" ? (g = s ? d : `${p}px`, h = `${r.floating.height + u}px`) : l === "right" ? (g = `${-u}px`, h = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + u}px`, h = s ? d : `${m}px`), { data: { x: g, y: h } };
|
|
2677
|
+
const { placement: n, rects: r, middlewareData: o } = t, s = o.arrow?.centerOffset !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Rn(n), d = { start: "0%", center: "50%", end: "100%" }[f], m = (o.arrow?.x ?? 0) + c / 2, h = (o.arrow?.y ?? 0) + u / 2;
|
|
2678
|
+
let v = "", p = "";
|
|
2679
|
+
return l === "bottom" ? (v = s ? d : `${m}px`, p = `${-u}px`) : l === "top" ? (v = s ? d : `${m}px`, p = `${r.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, p = s ? d : `${h}px`) : l === "left" && (v = `${r.floating.width + u}px`, p = s ? d : `${h}px`), { data: { x: v, y: p } };
|
|
2701
2680
|
}
|
|
2702
2681
|
});
|
|
2703
|
-
function
|
|
2682
|
+
function Rn(e) {
|
|
2704
2683
|
const [t, n = "center"] = e.split("-");
|
|
2705
2684
|
return [t, n];
|
|
2706
2685
|
}
|
|
2707
|
-
var
|
|
2708
|
-
|
|
2709
|
-
]),
|
|
2686
|
+
var Xi = xn, On = Cn, Zi = Pn, Gi = An, He = "Popover", [Nn, Ps] = zt(He, [
|
|
2687
|
+
wn
|
|
2688
|
+
]), xe = wn(), [qi, oe] = Nn(He), Tn = (e) => {
|
|
2710
2689
|
const {
|
|
2711
2690
|
__scopePopover: t,
|
|
2712
2691
|
children: n,
|
|
@@ -2714,21 +2693,21 @@ var $i = Pn, Tn = Sn, Hi = Rn, Vi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
|
|
|
2714
2693
|
defaultOpen: o,
|
|
2715
2694
|
onOpenChange: i,
|
|
2716
2695
|
modal: s = !1
|
|
2717
|
-
} = e, c =
|
|
2696
|
+
} = e, c = xe(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, m] = vr({
|
|
2718
2697
|
prop: r,
|
|
2719
2698
|
defaultProp: o ?? !1,
|
|
2720
2699
|
onChange: i,
|
|
2721
|
-
caller:
|
|
2700
|
+
caller: He
|
|
2722
2701
|
});
|
|
2723
|
-
return /* @__PURE__ */ C(
|
|
2724
|
-
|
|
2702
|
+
return /* @__PURE__ */ C(Xi, { ...c, children: /* @__PURE__ */ C(
|
|
2703
|
+
qi,
|
|
2725
2704
|
{
|
|
2726
2705
|
scope: t,
|
|
2727
|
-
contentId:
|
|
2706
|
+
contentId: Pr(),
|
|
2728
2707
|
triggerRef: u,
|
|
2729
2708
|
open: d,
|
|
2730
|
-
onOpenChange:
|
|
2731
|
-
onOpenToggle: a.useCallback(() =>
|
|
2709
|
+
onOpenChange: m,
|
|
2710
|
+
onOpenToggle: a.useCallback(() => m((h) => !h), [m]),
|
|
2732
2711
|
hasCustomAnchor: l,
|
|
2733
2712
|
onCustomAnchorAdd: a.useCallback(() => f(!0), []),
|
|
2734
2713
|
onCustomAnchorRemove: a.useCallback(() => f(!1), []),
|
|
@@ -2737,63 +2716,62 @@ var $i = Pn, Tn = Sn, Hi = Rn, Vi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
|
|
|
2737
2716
|
}
|
|
2738
2717
|
) });
|
|
2739
2718
|
};
|
|
2740
|
-
|
|
2741
|
-
var
|
|
2719
|
+
Tn.displayName = He;
|
|
2720
|
+
var Mn = "PopoverAnchor", kn = a.forwardRef(
|
|
2742
2721
|
(e, t) => {
|
|
2743
|
-
const { __scopePopover: n, ...r } = e, o = oe(
|
|
2744
|
-
return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(
|
|
2722
|
+
const { __scopePopover: n, ...r } = e, o = oe(Mn, n), i = xe(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
|
|
2723
|
+
return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(On, { ...i, ...r, ref: t });
|
|
2745
2724
|
}
|
|
2746
2725
|
);
|
|
2747
|
-
|
|
2748
|
-
var
|
|
2726
|
+
kn.displayName = Mn;
|
|
2727
|
+
var Ln = "PopoverTrigger", Dn = a.forwardRef(
|
|
2749
2728
|
(e, t) => {
|
|
2750
|
-
const { __scopePopover: n, ...r } = e, o = oe(
|
|
2729
|
+
const { __scopePopover: n, ...r } = e, o = oe(Ln, n), i = xe(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
|
|
2751
2730
|
G.button,
|
|
2752
2731
|
{
|
|
2753
2732
|
type: "button",
|
|
2754
2733
|
"aria-haspopup": "dialog",
|
|
2755
2734
|
"aria-expanded": o.open,
|
|
2756
2735
|
"aria-controls": o.contentId,
|
|
2757
|
-
"data-state":
|
|
2736
|
+
"data-state": Bn(o.open),
|
|
2758
2737
|
...r,
|
|
2759
2738
|
ref: s,
|
|
2760
2739
|
onClick: J(e.onClick, o.onOpenToggle)
|
|
2761
2740
|
}
|
|
2762
2741
|
);
|
|
2763
|
-
return o.hasCustomAnchor ? c : /* @__PURE__ */ C(
|
|
2742
|
+
return o.hasCustomAnchor ? c : /* @__PURE__ */ C(On, { asChild: !0, ...i, children: c });
|
|
2764
2743
|
}
|
|
2765
2744
|
);
|
|
2766
|
-
|
|
2767
|
-
var pt = "PopoverPortal", [
|
|
2745
|
+
Dn.displayName = Ln;
|
|
2746
|
+
var pt = "PopoverPortal", [Qi, Ji] = Nn(pt, {
|
|
2768
2747
|
forceMount: void 0
|
|
2769
|
-
}),
|
|
2748
|
+
}), _n = (e) => {
|
|
2770
2749
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(pt, t);
|
|
2771
|
-
return /* @__PURE__ */ C(
|
|
2750
|
+
return /* @__PURE__ */ C(Qi, { scope: t, forceMount: n, children: /* @__PURE__ */ C(rt, { present: n || i.open, children: /* @__PURE__ */ C(Zt, { asChild: !0, container: o, children: r }) }) });
|
|
2772
2751
|
};
|
|
2773
|
-
|
|
2774
|
-
var
|
|
2752
|
+
_n.displayName = pt;
|
|
2753
|
+
var pe = "PopoverContent", Fn = a.forwardRef(
|
|
2775
2754
|
(e, t) => {
|
|
2776
|
-
const n =
|
|
2777
|
-
return /* @__PURE__ */ C(
|
|
2755
|
+
const n = Ji(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
|
|
2756
|
+
return /* @__PURE__ */ C(rt, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(ts, { ...o, ref: t }) : /* @__PURE__ */ C(ns, { ...o, ref: t }) });
|
|
2778
2757
|
}
|
|
2779
2758
|
);
|
|
2780
|
-
|
|
2781
|
-
var
|
|
2759
|
+
Fn.displayName = pe;
|
|
2760
|
+
var es = /* @__PURE__ */ Vt("PopoverContent.RemoveScroll"), ts = a.forwardRef(
|
|
2782
2761
|
(e, t) => {
|
|
2783
|
-
const n = oe(
|
|
2762
|
+
const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = re(t, r), i = a.useRef(!1);
|
|
2784
2763
|
return a.useEffect(() => {
|
|
2785
2764
|
const s = r.current;
|
|
2786
|
-
if (s) return
|
|
2787
|
-
}, []), /* @__PURE__ */ C(
|
|
2788
|
-
|
|
2765
|
+
if (s) return Oo(s);
|
|
2766
|
+
}, []), /* @__PURE__ */ C(rn, { as: es, allowPinchZoom: !0, children: /* @__PURE__ */ C(
|
|
2767
|
+
In,
|
|
2789
2768
|
{
|
|
2790
2769
|
...e,
|
|
2791
2770
|
ref: o,
|
|
2792
2771
|
trapFocus: n.open,
|
|
2793
2772
|
disableOutsidePointerEvents: !0,
|
|
2794
2773
|
onCloseAutoFocus: J(e.onCloseAutoFocus, (s) => {
|
|
2795
|
-
|
|
2796
|
-
s.preventDefault(), i.current || (c = n.triggerRef.current) == null || c.focus();
|
|
2774
|
+
s.preventDefault(), i.current || n.triggerRef.current?.focus();
|
|
2797
2775
|
}),
|
|
2798
2776
|
onPointerDownOutside: J(
|
|
2799
2777
|
e.onPointerDownOutside,
|
|
@@ -2811,30 +2789,28 @@ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2811
2789
|
}
|
|
2812
2790
|
) });
|
|
2813
2791
|
}
|
|
2814
|
-
),
|
|
2792
|
+
), ns = a.forwardRef(
|
|
2815
2793
|
(e, t) => {
|
|
2816
|
-
const n = oe(
|
|
2794
|
+
const n = oe(pe, e.__scopePopover), r = a.useRef(!1), o = a.useRef(!1);
|
|
2817
2795
|
return /* @__PURE__ */ C(
|
|
2818
|
-
|
|
2796
|
+
In,
|
|
2819
2797
|
{
|
|
2820
2798
|
...e,
|
|
2821
2799
|
ref: t,
|
|
2822
2800
|
trapFocus: !1,
|
|
2823
2801
|
disableOutsidePointerEvents: !1,
|
|
2824
2802
|
onCloseAutoFocus: (i) => {
|
|
2825
|
-
|
|
2826
|
-
(s = e.onCloseAutoFocus) == null || s.call(e, i), i.defaultPrevented || (r.current || (c = n.triggerRef.current) == null || c.focus(), i.preventDefault()), r.current = !1, o.current = !1;
|
|
2803
|
+
e.onCloseAutoFocus?.(i), i.defaultPrevented || (r.current || n.triggerRef.current?.focus(), i.preventDefault()), r.current = !1, o.current = !1;
|
|
2827
2804
|
},
|
|
2828
2805
|
onInteractOutside: (i) => {
|
|
2829
|
-
|
|
2830
|
-
(u = e.onInteractOutside) == null || u.call(e, i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
2806
|
+
e.onInteractOutside?.(i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
2831
2807
|
const s = i.target;
|
|
2832
|
-
|
|
2808
|
+
n.triggerRef.current?.contains(s) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
|
|
2833
2809
|
}
|
|
2834
2810
|
}
|
|
2835
2811
|
);
|
|
2836
2812
|
}
|
|
2837
|
-
),
|
|
2813
|
+
), In = a.forwardRef(
|
|
2838
2814
|
(e, t) => {
|
|
2839
2815
|
const {
|
|
2840
2816
|
__scopePopover: n,
|
|
@@ -2847,9 +2823,9 @@ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2847
2823
|
onFocusOutside: l,
|
|
2848
2824
|
onInteractOutside: f,
|
|
2849
2825
|
...d
|
|
2850
|
-
} = e,
|
|
2851
|
-
return
|
|
2852
|
-
|
|
2826
|
+
} = e, m = oe(pe, n), h = xe(n);
|
|
2827
|
+
return Hr(), /* @__PURE__ */ C(
|
|
2828
|
+
Kt,
|
|
2853
2829
|
{
|
|
2854
2830
|
asChild: !0,
|
|
2855
2831
|
loop: !0,
|
|
@@ -2857,7 +2833,7 @@ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2857
2833
|
onMountAutoFocus: o,
|
|
2858
2834
|
onUnmountAutoFocus: i,
|
|
2859
2835
|
children: /* @__PURE__ */ C(
|
|
2860
|
-
|
|
2836
|
+
jt,
|
|
2861
2837
|
{
|
|
2862
2838
|
asChild: !0,
|
|
2863
2839
|
disableOutsidePointerEvents: s,
|
|
@@ -2865,14 +2841,14 @@ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2865
2841
|
onEscapeKeyDown: c,
|
|
2866
2842
|
onPointerDownOutside: u,
|
|
2867
2843
|
onFocusOutside: l,
|
|
2868
|
-
onDismiss: () =>
|
|
2844
|
+
onDismiss: () => m.onOpenChange(!1),
|
|
2869
2845
|
children: /* @__PURE__ */ C(
|
|
2870
|
-
|
|
2846
|
+
Zi,
|
|
2871
2847
|
{
|
|
2872
|
-
"data-state":
|
|
2848
|
+
"data-state": Bn(m.open),
|
|
2873
2849
|
role: "dialog",
|
|
2874
|
-
id:
|
|
2875
|
-
...
|
|
2850
|
+
id: m.contentId,
|
|
2851
|
+
...h,
|
|
2876
2852
|
...d,
|
|
2877
2853
|
ref: t,
|
|
2878
2854
|
style: {
|
|
@@ -2890,9 +2866,9 @@ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2890
2866
|
}
|
|
2891
2867
|
);
|
|
2892
2868
|
}
|
|
2893
|
-
),
|
|
2869
|
+
), Wn = "PopoverClose", rs = a.forwardRef(
|
|
2894
2870
|
(e, t) => {
|
|
2895
|
-
const { __scopePopover: n, ...r } = e, o = oe(
|
|
2871
|
+
const { __scopePopover: n, ...r } = e, o = oe(Wn, n);
|
|
2896
2872
|
return /* @__PURE__ */ C(
|
|
2897
2873
|
G.button,
|
|
2898
2874
|
{
|
|
@@ -2904,66 +2880,66 @@ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2904
2880
|
);
|
|
2905
2881
|
}
|
|
2906
2882
|
);
|
|
2907
|
-
|
|
2908
|
-
var
|
|
2883
|
+
rs.displayName = Wn;
|
|
2884
|
+
var os = "PopoverArrow", is = a.forwardRef(
|
|
2909
2885
|
(e, t) => {
|
|
2910
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
2911
|
-
return /* @__PURE__ */ C(
|
|
2886
|
+
const { __scopePopover: n, ...r } = e, o = xe(n);
|
|
2887
|
+
return /* @__PURE__ */ C(Gi, { ...o, ...r, ref: t });
|
|
2912
2888
|
}
|
|
2913
2889
|
);
|
|
2914
|
-
|
|
2915
|
-
function
|
|
2890
|
+
is.displayName = os;
|
|
2891
|
+
function Bn(e) {
|
|
2916
2892
|
return e ? "open" : "closed";
|
|
2917
2893
|
}
|
|
2918
|
-
var
|
|
2919
|
-
const
|
|
2920
|
-
anchor:
|
|
2921
|
-
container:
|
|
2922
|
-
radio:
|
|
2923
|
-
check:
|
|
2924
|
-
radioInput:
|
|
2894
|
+
var ss = Tn, cs = kn, as = Dn, ls = _n, us = Fn;
|
|
2895
|
+
const fs = "_anchor_vbdag_270", ds = "_container_vbdag_275", ps = "_radio_vbdag_292", hs = "_check_vbdag_304", ms = "_radioInput_vbdag_312", ge = {
|
|
2896
|
+
anchor: fs,
|
|
2897
|
+
container: ds,
|
|
2898
|
+
radio: ps,
|
|
2899
|
+
check: hs,
|
|
2900
|
+
radioInput: ms
|
|
2925
2901
|
};
|
|
2926
|
-
function
|
|
2927
|
-
return /* @__PURE__ */ Q(
|
|
2902
|
+
function qe({ children: e, id: t, ...n }) {
|
|
2903
|
+
return /* @__PURE__ */ Q(Bt, { children: [
|
|
2928
2904
|
/* @__PURE__ */ C(
|
|
2929
2905
|
"input",
|
|
2930
2906
|
{
|
|
2931
2907
|
type: "radio",
|
|
2932
2908
|
id: t,
|
|
2933
|
-
className:
|
|
2909
|
+
className: er(ge.radioInput, "sr-only"),
|
|
2934
2910
|
...n
|
|
2935
2911
|
}
|
|
2936
2912
|
),
|
|
2937
2913
|
/* @__PURE__ */ Q("label", { htmlFor: t, className: ge.radio, children: [
|
|
2938
2914
|
e,
|
|
2939
|
-
/* @__PURE__ */ C(
|
|
2915
|
+
/* @__PURE__ */ C(Jn, { className: ge.check })
|
|
2940
2916
|
] })
|
|
2941
2917
|
] });
|
|
2942
2918
|
}
|
|
2943
|
-
function
|
|
2944
|
-
const { theme: e, systemTheme: t, setTheme: n } =
|
|
2945
|
-
return /* @__PURE__ */ Q(
|
|
2946
|
-
/* @__PURE__ */ C(
|
|
2947
|
-
/* @__PURE__ */ C(
|
|
2948
|
-
/* @__PURE__ */ C(
|
|
2919
|
+
function Ss() {
|
|
2920
|
+
const { theme: e, systemTheme: t, setTheme: n } = Zn(), r = Gn();
|
|
2921
|
+
return /* @__PURE__ */ Q(ss, { children: [
|
|
2922
|
+
/* @__PURE__ */ C(as, { asChild: !0, children: /* @__PURE__ */ Q(tr, { variant: "transparent", "aria-label": "Preferences", children: [
|
|
2923
|
+
/* @__PURE__ */ C(ir, {}),
|
|
2924
|
+
/* @__PURE__ */ C(cs, { className: ge.anchor })
|
|
2949
2925
|
] }) }),
|
|
2950
|
-
/* @__PURE__ */ C(
|
|
2951
|
-
|
|
2926
|
+
/* @__PURE__ */ C(ls, { children: /* @__PURE__ */ C(
|
|
2927
|
+
us,
|
|
2952
2928
|
{
|
|
2953
2929
|
sideOffset: 8,
|
|
2954
2930
|
hideWhenDetached: !0,
|
|
2955
2931
|
className: ge.container,
|
|
2956
|
-
children: r && /* @__PURE__ */ Q(
|
|
2932
|
+
children: r && /* @__PURE__ */ Q(Bt, { children: [
|
|
2957
2933
|
/* @__PURE__ */ C("span", { children: "Appearance" }),
|
|
2958
2934
|
/* @__PURE__ */ Q(
|
|
2959
|
-
|
|
2935
|
+
qe,
|
|
2960
2936
|
{
|
|
2961
2937
|
id: "system",
|
|
2962
2938
|
name: "theme",
|
|
2963
2939
|
checked: e === "system",
|
|
2964
2940
|
onChange: () => n("system"),
|
|
2965
2941
|
children: [
|
|
2966
|
-
/* @__PURE__ */ C(
|
|
2942
|
+
/* @__PURE__ */ C(rr, {}),
|
|
2967
2943
|
"Auto (",
|
|
2968
2944
|
t,
|
|
2969
2945
|
")"
|
|
@@ -2971,27 +2947,27 @@ function vs() {
|
|
|
2971
2947
|
}
|
|
2972
2948
|
),
|
|
2973
2949
|
/* @__PURE__ */ Q(
|
|
2974
|
-
|
|
2950
|
+
qe,
|
|
2975
2951
|
{
|
|
2976
2952
|
id: "light",
|
|
2977
2953
|
name: "theme",
|
|
2978
2954
|
checked: e === "light",
|
|
2979
2955
|
onChange: () => n("light"),
|
|
2980
2956
|
children: [
|
|
2981
|
-
/* @__PURE__ */ C(
|
|
2957
|
+
/* @__PURE__ */ C(sr, {}),
|
|
2982
2958
|
"Light"
|
|
2983
2959
|
]
|
|
2984
2960
|
}
|
|
2985
2961
|
),
|
|
2986
2962
|
/* @__PURE__ */ Q(
|
|
2987
|
-
|
|
2963
|
+
qe,
|
|
2988
2964
|
{
|
|
2989
2965
|
id: "dark",
|
|
2990
2966
|
name: "theme",
|
|
2991
2967
|
checked: e === "dark",
|
|
2992
2968
|
onChange: () => n("dark"),
|
|
2993
2969
|
children: [
|
|
2994
|
-
/* @__PURE__ */ C(
|
|
2970
|
+
/* @__PURE__ */ C(or, {}),
|
|
2995
2971
|
"Dark"
|
|
2996
2972
|
]
|
|
2997
2973
|
}
|
|
@@ -3002,6 +2978,6 @@ function vs() {
|
|
|
3002
2978
|
] });
|
|
3003
2979
|
}
|
|
3004
2980
|
export {
|
|
3005
|
-
|
|
3006
|
-
|
|
2981
|
+
Ss as PrefPanel,
|
|
2982
|
+
qe as PrefRadio
|
|
3007
2983
|
};
|