@arkitektbedriftene/fe-lib 0.4.37 → 0.4.38
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/hooks.es.js +2 -3
- package/dist/icons.es.js +2 -2
- package/dist/{index.esm-e4db0c1f.js → index.esm-67eba761.js} +5 -5
- package/dist/{index.esm-55efa2d1.js → index.esm-ab03d8db.js} +1 -1
- package/dist/oidc.es.js +102 -2778
- package/dist/rich-text.es.js +2611 -645
- package/dist/stitches.config-00c23cdb.js +136 -0
- package/dist/ui.es.js +77 -76
- package/package.json +1 -1
- package/dist/stitches.config-543644f4.js +0 -2919
- package/dist/useLocalStorageState-b4fb2a60.js +0 -100
|
@@ -1,2919 +0,0 @@
|
|
|
1
|
-
import * as y from "react";
|
|
2
|
-
import ye, { useLayoutEffect as zt, useEffect as Vt, useRef as mn } from "react";
|
|
3
|
-
import * as pn from "react-dom";
|
|
4
|
-
import { createPortal as hn } from "react-dom";
|
|
5
|
-
function re(e) {
|
|
6
|
-
return _t(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7
|
-
}
|
|
8
|
-
function q(e) {
|
|
9
|
-
var t;
|
|
10
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
11
|
-
}
|
|
12
|
-
function te(e) {
|
|
13
|
-
var t;
|
|
14
|
-
return (t = (_t(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
15
|
-
}
|
|
16
|
-
function _t(e) {
|
|
17
|
-
return e instanceof Node || e instanceof q(e).Node;
|
|
18
|
-
}
|
|
19
|
-
function N(e) {
|
|
20
|
-
return e instanceof Element || e instanceof q(e).Element;
|
|
21
|
-
}
|
|
22
|
-
function U(e) {
|
|
23
|
-
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
24
|
-
}
|
|
25
|
-
function Qe(e) {
|
|
26
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
27
|
-
}
|
|
28
|
-
function Me(e) {
|
|
29
|
-
const {
|
|
30
|
-
overflow: t,
|
|
31
|
-
overflowX: n,
|
|
32
|
-
overflowY: r,
|
|
33
|
-
display: o
|
|
34
|
-
} = G(e);
|
|
35
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
36
|
-
}
|
|
37
|
-
function bn(e) {
|
|
38
|
-
return ["table", "td", "th"].includes(re(e));
|
|
39
|
-
}
|
|
40
|
-
function it(e) {
|
|
41
|
-
const t = st(), n = G(e);
|
|
42
|
-
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
43
|
-
}
|
|
44
|
-
function yn(e) {
|
|
45
|
-
let t = me(e);
|
|
46
|
-
for (; U(t) && !ke(t); ) {
|
|
47
|
-
if (it(t))
|
|
48
|
-
return t;
|
|
49
|
-
t = me(t);
|
|
50
|
-
}
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
function st() {
|
|
54
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
55
|
-
}
|
|
56
|
-
function ke(e) {
|
|
57
|
-
return ["html", "body", "#document"].includes(re(e));
|
|
58
|
-
}
|
|
59
|
-
function G(e) {
|
|
60
|
-
return q(e).getComputedStyle(e);
|
|
61
|
-
}
|
|
62
|
-
function Ye(e) {
|
|
63
|
-
return N(e) ? {
|
|
64
|
-
scrollLeft: e.scrollLeft,
|
|
65
|
-
scrollTop: e.scrollTop
|
|
66
|
-
} : {
|
|
67
|
-
scrollLeft: e.pageXOffset,
|
|
68
|
-
scrollTop: e.pageYOffset
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function me(e) {
|
|
72
|
-
if (re(e) === "html")
|
|
73
|
-
return e;
|
|
74
|
-
const t = (
|
|
75
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
76
|
-
e.assignedSlot || // DOM Element detected.
|
|
77
|
-
e.parentNode || // ShadowRoot detected.
|
|
78
|
-
Qe(e) && e.host || // Fallback.
|
|
79
|
-
te(e)
|
|
80
|
-
);
|
|
81
|
-
return Qe(t) ? t.host : t;
|
|
82
|
-
}
|
|
83
|
-
function Ht(e) {
|
|
84
|
-
const t = me(e);
|
|
85
|
-
return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && Me(t) ? t : Ht(t);
|
|
86
|
-
}
|
|
87
|
-
function ne(e, t, n) {
|
|
88
|
-
var r;
|
|
89
|
-
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
90
|
-
const o = Ht(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = q(o);
|
|
91
|
-
return i ? t.concat(s, s.visualViewport || [], Me(o) ? o : [], s.frameElement && n ? ne(s.frameElement) : []) : t.concat(o, ne(o, [], n));
|
|
92
|
-
}
|
|
93
|
-
function vn(e) {
|
|
94
|
-
let t = e.activeElement;
|
|
95
|
-
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
96
|
-
var n;
|
|
97
|
-
t = t.shadowRoot.activeElement;
|
|
98
|
-
}
|
|
99
|
-
return t;
|
|
100
|
-
}
|
|
101
|
-
function fe(e, t) {
|
|
102
|
-
if (!e || !t)
|
|
103
|
-
return !1;
|
|
104
|
-
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
105
|
-
if (e.contains(t))
|
|
106
|
-
return !0;
|
|
107
|
-
if (n && Qe(n)) {
|
|
108
|
-
let r = t;
|
|
109
|
-
for (; r; ) {
|
|
110
|
-
if (e === r)
|
|
111
|
-
return !0;
|
|
112
|
-
r = r.parentNode || r.host;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return !1;
|
|
116
|
-
}
|
|
117
|
-
function xn() {
|
|
118
|
-
return /apple/i.test(navigator.vendor);
|
|
119
|
-
}
|
|
120
|
-
function Ne(e, t) {
|
|
121
|
-
const n = ["mouse", "pen"];
|
|
122
|
-
return t || n.push("", void 0), n.includes(e);
|
|
123
|
-
}
|
|
124
|
-
function wn(e) {
|
|
125
|
-
return "nativeEvent" in e;
|
|
126
|
-
}
|
|
127
|
-
function Rn(e) {
|
|
128
|
-
return e.matches("html,body");
|
|
129
|
-
}
|
|
130
|
-
function ue(e) {
|
|
131
|
-
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
132
|
-
}
|
|
133
|
-
function Xe(e, t) {
|
|
134
|
-
if (t == null)
|
|
135
|
-
return !1;
|
|
136
|
-
if ("composedPath" in e)
|
|
137
|
-
return e.composedPath().includes(t);
|
|
138
|
-
const n = e;
|
|
139
|
-
return n.target != null && t.contains(n.target);
|
|
140
|
-
}
|
|
141
|
-
function we(e) {
|
|
142
|
-
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
143
|
-
}
|
|
144
|
-
const En = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
145
|
-
function Sn(e) {
|
|
146
|
-
return U(e) && e.matches(En);
|
|
147
|
-
}
|
|
148
|
-
const Q = Math.min, _ = Math.max, je = Math.round, Fe = Math.floor, oe = (e) => ({
|
|
149
|
-
x: e,
|
|
150
|
-
y: e
|
|
151
|
-
}), Cn = {
|
|
152
|
-
left: "right",
|
|
153
|
-
right: "left",
|
|
154
|
-
bottom: "top",
|
|
155
|
-
top: "bottom"
|
|
156
|
-
}, kn = {
|
|
157
|
-
start: "end",
|
|
158
|
-
end: "start"
|
|
159
|
-
};
|
|
160
|
-
function gt(e, t, n) {
|
|
161
|
-
return _(e, Q(t, n));
|
|
162
|
-
}
|
|
163
|
-
function Ie(e, t) {
|
|
164
|
-
return typeof e == "function" ? e(t) : e;
|
|
165
|
-
}
|
|
166
|
-
function J(e) {
|
|
167
|
-
return e.split("-")[0];
|
|
168
|
-
}
|
|
169
|
-
function Le(e) {
|
|
170
|
-
return e.split("-")[1];
|
|
171
|
-
}
|
|
172
|
-
function Yt(e) {
|
|
173
|
-
return e === "x" ? "y" : "x";
|
|
174
|
-
}
|
|
175
|
-
function Kt(e) {
|
|
176
|
-
return e === "y" ? "height" : "width";
|
|
177
|
-
}
|
|
178
|
-
function Pe(e) {
|
|
179
|
-
return ["top", "bottom"].includes(J(e)) ? "y" : "x";
|
|
180
|
-
}
|
|
181
|
-
function Xt(e) {
|
|
182
|
-
return Yt(Pe(e));
|
|
183
|
-
}
|
|
184
|
-
function Tn(e, t, n) {
|
|
185
|
-
n === void 0 && (n = !1);
|
|
186
|
-
const r = Le(e), o = Xt(e), i = Kt(o);
|
|
187
|
-
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
188
|
-
return t.reference[i] > t.floating[i] && (s = ze(s)), [s, ze(s)];
|
|
189
|
-
}
|
|
190
|
-
function In(e) {
|
|
191
|
-
const t = ze(e);
|
|
192
|
-
return [et(e), t, et(t)];
|
|
193
|
-
}
|
|
194
|
-
function et(e) {
|
|
195
|
-
return e.replace(/start|end/g, (t) => kn[t]);
|
|
196
|
-
}
|
|
197
|
-
function Pn(e, t, n) {
|
|
198
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
199
|
-
switch (e) {
|
|
200
|
-
case "top":
|
|
201
|
-
case "bottom":
|
|
202
|
-
return n ? t ? o : r : t ? r : o;
|
|
203
|
-
case "left":
|
|
204
|
-
case "right":
|
|
205
|
-
return t ? i : s;
|
|
206
|
-
default:
|
|
207
|
-
return [];
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
function An(e, t, n, r) {
|
|
211
|
-
const o = Le(e);
|
|
212
|
-
let i = Pn(J(e), n === "start", r);
|
|
213
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(et)))), i;
|
|
214
|
-
}
|
|
215
|
-
function ze(e) {
|
|
216
|
-
return e.replace(/left|right|bottom|top/g, (t) => Cn[t]);
|
|
217
|
-
}
|
|
218
|
-
function Bn(e) {
|
|
219
|
-
return {
|
|
220
|
-
top: 0,
|
|
221
|
-
right: 0,
|
|
222
|
-
bottom: 0,
|
|
223
|
-
left: 0,
|
|
224
|
-
...e
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
function qt(e) {
|
|
228
|
-
return typeof e != "number" ? Bn(e) : {
|
|
229
|
-
top: e,
|
|
230
|
-
right: e,
|
|
231
|
-
bottom: e,
|
|
232
|
-
left: e
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function Te(e) {
|
|
236
|
-
return {
|
|
237
|
-
...e,
|
|
238
|
-
top: e.y,
|
|
239
|
-
left: e.x,
|
|
240
|
-
right: e.x + e.width,
|
|
241
|
-
bottom: e.y + e.height
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
function mt(e, t, n) {
|
|
245
|
-
let {
|
|
246
|
-
reference: r,
|
|
247
|
-
floating: o
|
|
248
|
-
} = e;
|
|
249
|
-
const i = Pe(t), s = Xt(t), l = Kt(s), c = J(t), a = i === "y", g = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, d = r[l] / 2 - o[l] / 2;
|
|
250
|
-
let u;
|
|
251
|
-
switch (c) {
|
|
252
|
-
case "top":
|
|
253
|
-
u = {
|
|
254
|
-
x: g,
|
|
255
|
-
y: r.y - o.height
|
|
256
|
-
};
|
|
257
|
-
break;
|
|
258
|
-
case "bottom":
|
|
259
|
-
u = {
|
|
260
|
-
x: g,
|
|
261
|
-
y: r.y + r.height
|
|
262
|
-
};
|
|
263
|
-
break;
|
|
264
|
-
case "right":
|
|
265
|
-
u = {
|
|
266
|
-
x: r.x + r.width,
|
|
267
|
-
y: f
|
|
268
|
-
};
|
|
269
|
-
break;
|
|
270
|
-
case "left":
|
|
271
|
-
u = {
|
|
272
|
-
x: r.x - o.width,
|
|
273
|
-
y: f
|
|
274
|
-
};
|
|
275
|
-
break;
|
|
276
|
-
default:
|
|
277
|
-
u = {
|
|
278
|
-
x: r.x,
|
|
279
|
-
y: r.y
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
switch (Le(t)) {
|
|
283
|
-
case "start":
|
|
284
|
-
u[s] -= d * (n && a ? -1 : 1);
|
|
285
|
-
break;
|
|
286
|
-
case "end":
|
|
287
|
-
u[s] += d * (n && a ? -1 : 1);
|
|
288
|
-
break;
|
|
289
|
-
}
|
|
290
|
-
return u;
|
|
291
|
-
}
|
|
292
|
-
const On = async (e, t, n) => {
|
|
293
|
-
const {
|
|
294
|
-
placement: r = "bottom",
|
|
295
|
-
strategy: o = "absolute",
|
|
296
|
-
middleware: i = [],
|
|
297
|
-
platform: s
|
|
298
|
-
} = n, l = i.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
299
|
-
let a = await s.getElementRects({
|
|
300
|
-
reference: e,
|
|
301
|
-
floating: t,
|
|
302
|
-
strategy: o
|
|
303
|
-
}), {
|
|
304
|
-
x: g,
|
|
305
|
-
y: f
|
|
306
|
-
} = mt(a, r, c), d = r, u = {}, m = 0;
|
|
307
|
-
for (let p = 0; p < l.length; p++) {
|
|
308
|
-
const {
|
|
309
|
-
name: x,
|
|
310
|
-
fn: h
|
|
311
|
-
} = l[p], {
|
|
312
|
-
x: w,
|
|
313
|
-
y: A,
|
|
314
|
-
data: E,
|
|
315
|
-
reset: T
|
|
316
|
-
} = await h({
|
|
317
|
-
x: g,
|
|
318
|
-
y: f,
|
|
319
|
-
initialPlacement: r,
|
|
320
|
-
placement: d,
|
|
321
|
-
strategy: o,
|
|
322
|
-
middlewareData: u,
|
|
323
|
-
rects: a,
|
|
324
|
-
platform: s,
|
|
325
|
-
elements: {
|
|
326
|
-
reference: e,
|
|
327
|
-
floating: t
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
g = w ?? g, f = A ?? f, u = {
|
|
331
|
-
...u,
|
|
332
|
-
[x]: {
|
|
333
|
-
...u[x],
|
|
334
|
-
...E
|
|
335
|
-
}
|
|
336
|
-
}, T && m <= 50 && (m++, typeof T == "object" && (T.placement && (d = T.placement), T.rects && (a = T.rects === !0 ? await s.getElementRects({
|
|
337
|
-
reference: e,
|
|
338
|
-
floating: t,
|
|
339
|
-
strategy: o
|
|
340
|
-
}) : T.rects), {
|
|
341
|
-
x: g,
|
|
342
|
-
y: f
|
|
343
|
-
} = mt(a, d, c)), p = -1);
|
|
344
|
-
}
|
|
345
|
-
return {
|
|
346
|
-
x: g,
|
|
347
|
-
y: f,
|
|
348
|
-
placement: d,
|
|
349
|
-
strategy: o,
|
|
350
|
-
middlewareData: u
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
async function lt(e, t) {
|
|
354
|
-
var n;
|
|
355
|
-
t === void 0 && (t = {});
|
|
356
|
-
const {
|
|
357
|
-
x: r,
|
|
358
|
-
y: o,
|
|
359
|
-
platform: i,
|
|
360
|
-
rects: s,
|
|
361
|
-
elements: l,
|
|
362
|
-
strategy: c
|
|
363
|
-
} = e, {
|
|
364
|
-
boundary: a = "clippingAncestors",
|
|
365
|
-
rootBoundary: g = "viewport",
|
|
366
|
-
elementContext: f = "floating",
|
|
367
|
-
altBoundary: d = !1,
|
|
368
|
-
padding: u = 0
|
|
369
|
-
} = Ie(t, e), m = qt(u), x = l[d ? f === "floating" ? "reference" : "floating" : f], h = Te(await i.getClippingRect({
|
|
370
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(x))) == null || n ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
371
|
-
boundary: a,
|
|
372
|
-
rootBoundary: g,
|
|
373
|
-
strategy: c
|
|
374
|
-
})), w = f === "floating" ? {
|
|
375
|
-
...s.floating,
|
|
376
|
-
x: r,
|
|
377
|
-
y: o
|
|
378
|
-
} : s.reference, A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), E = await (i.isElement == null ? void 0 : i.isElement(A)) ? await (i.getScale == null ? void 0 : i.getScale(A)) || {
|
|
379
|
-
x: 1,
|
|
380
|
-
y: 1
|
|
381
|
-
} : {
|
|
382
|
-
x: 1,
|
|
383
|
-
y: 1
|
|
384
|
-
}, T = Te(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
385
|
-
elements: l,
|
|
386
|
-
rect: w,
|
|
387
|
-
offsetParent: A,
|
|
388
|
-
strategy: c
|
|
389
|
-
}) : w);
|
|
390
|
-
return {
|
|
391
|
-
top: (h.top - T.top + m.top) / E.y,
|
|
392
|
-
bottom: (T.bottom - h.bottom + m.bottom) / E.y,
|
|
393
|
-
left: (h.left - T.left + m.left) / E.x,
|
|
394
|
-
right: (T.right - h.right + m.right) / E.x
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
const Dn = function(e) {
|
|
398
|
-
return e === void 0 && (e = {}), {
|
|
399
|
-
name: "flip",
|
|
400
|
-
options: e,
|
|
401
|
-
async fn(t) {
|
|
402
|
-
var n, r;
|
|
403
|
-
const {
|
|
404
|
-
placement: o,
|
|
405
|
-
middlewareData: i,
|
|
406
|
-
rects: s,
|
|
407
|
-
initialPlacement: l,
|
|
408
|
-
platform: c,
|
|
409
|
-
elements: a
|
|
410
|
-
} = t, {
|
|
411
|
-
mainAxis: g = !0,
|
|
412
|
-
crossAxis: f = !0,
|
|
413
|
-
fallbackPlacements: d,
|
|
414
|
-
fallbackStrategy: u = "bestFit",
|
|
415
|
-
fallbackAxisSideDirection: m = "none",
|
|
416
|
-
flipAlignment: p = !0,
|
|
417
|
-
...x
|
|
418
|
-
} = Ie(e, t);
|
|
419
|
-
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
420
|
-
return {};
|
|
421
|
-
const h = J(o), w = J(l) === l, A = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), E = d || (w || !p ? [ze(l)] : In(l));
|
|
422
|
-
!d && m !== "none" && E.push(...An(l, p, m, A));
|
|
423
|
-
const T = [l, ...E], k = await lt(t, x), B = [];
|
|
424
|
-
let I = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
425
|
-
if (g && B.push(k[h]), f) {
|
|
426
|
-
const L = Tn(o, s, A);
|
|
427
|
-
B.push(k[L[0]], k[L[1]]);
|
|
428
|
-
}
|
|
429
|
-
if (I = [...I, {
|
|
430
|
-
placement: o,
|
|
431
|
-
overflows: B
|
|
432
|
-
}], !B.every((L) => L <= 0)) {
|
|
433
|
-
var M, O;
|
|
434
|
-
const L = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, D = T[L];
|
|
435
|
-
if (D)
|
|
436
|
-
return {
|
|
437
|
-
data: {
|
|
438
|
-
index: L,
|
|
439
|
-
overflows: I
|
|
440
|
-
},
|
|
441
|
-
reset: {
|
|
442
|
-
placement: D
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
let b = (O = I.filter((v) => v.overflows[0] <= 0).sort((v, P) => v.overflows[1] - P.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
446
|
-
if (!b)
|
|
447
|
-
switch (u) {
|
|
448
|
-
case "bestFit": {
|
|
449
|
-
var F;
|
|
450
|
-
const v = (F = I.map((P) => [P.placement, P.overflows.filter((S) => S > 0).reduce((S, R) => S + R, 0)]).sort((P, S) => P[1] - S[1])[0]) == null ? void 0 : F[0];
|
|
451
|
-
v && (b = v);
|
|
452
|
-
break;
|
|
453
|
-
}
|
|
454
|
-
case "initialPlacement":
|
|
455
|
-
b = l;
|
|
456
|
-
break;
|
|
457
|
-
}
|
|
458
|
-
if (o !== b)
|
|
459
|
-
return {
|
|
460
|
-
reset: {
|
|
461
|
-
placement: b
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
return {};
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
};
|
|
469
|
-
function Ut(e) {
|
|
470
|
-
const t = Q(...e.map((i) => i.left)), n = Q(...e.map((i) => i.top)), r = _(...e.map((i) => i.right)), o = _(...e.map((i) => i.bottom));
|
|
471
|
-
return {
|
|
472
|
-
x: t,
|
|
473
|
-
y: n,
|
|
474
|
-
width: r - t,
|
|
475
|
-
height: o - n
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
function Mn(e) {
|
|
479
|
-
const t = e.slice().sort((o, i) => o.y - i.y), n = [];
|
|
480
|
-
let r = null;
|
|
481
|
-
for (let o = 0; o < t.length; o++) {
|
|
482
|
-
const i = t[o];
|
|
483
|
-
!r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
|
|
484
|
-
}
|
|
485
|
-
return n.map((o) => Te(Ut(o)));
|
|
486
|
-
}
|
|
487
|
-
const Ln = function(e) {
|
|
488
|
-
return e === void 0 && (e = {}), {
|
|
489
|
-
name: "inline",
|
|
490
|
-
options: e,
|
|
491
|
-
async fn(t) {
|
|
492
|
-
const {
|
|
493
|
-
placement: n,
|
|
494
|
-
elements: r,
|
|
495
|
-
rects: o,
|
|
496
|
-
platform: i,
|
|
497
|
-
strategy: s
|
|
498
|
-
} = t, {
|
|
499
|
-
padding: l = 2,
|
|
500
|
-
x: c,
|
|
501
|
-
y: a
|
|
502
|
-
} = Ie(e, t), g = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(r.reference)) || []), f = Mn(g), d = Te(Ut(g)), u = qt(l);
|
|
503
|
-
function m() {
|
|
504
|
-
if (f.length === 2 && f[0].left > f[1].right && c != null && a != null)
|
|
505
|
-
return f.find((x) => c > x.left - u.left && c < x.right + u.right && a > x.top - u.top && a < x.bottom + u.bottom) || d;
|
|
506
|
-
if (f.length >= 2) {
|
|
507
|
-
if (Pe(n) === "y") {
|
|
508
|
-
const O = f[0], F = f[f.length - 1], L = J(n) === "top", D = O.top, b = F.bottom, v = L ? O.left : F.left, P = L ? O.right : F.right, S = P - v, R = b - D;
|
|
509
|
-
return {
|
|
510
|
-
top: D,
|
|
511
|
-
bottom: b,
|
|
512
|
-
left: v,
|
|
513
|
-
right: P,
|
|
514
|
-
width: S,
|
|
515
|
-
height: R,
|
|
516
|
-
x: v,
|
|
517
|
-
y: D
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
const x = J(n) === "left", h = _(...f.map((O) => O.right)), w = Q(...f.map((O) => O.left)), A = f.filter((O) => x ? O.left === w : O.right === h), E = A[0].top, T = A[A.length - 1].bottom, k = w, B = h, I = B - k, M = T - E;
|
|
521
|
-
return {
|
|
522
|
-
top: E,
|
|
523
|
-
bottom: T,
|
|
524
|
-
left: k,
|
|
525
|
-
right: B,
|
|
526
|
-
width: I,
|
|
527
|
-
height: M,
|
|
528
|
-
x: k,
|
|
529
|
-
y: E
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
return d;
|
|
533
|
-
}
|
|
534
|
-
const p = await i.getElementRects({
|
|
535
|
-
reference: {
|
|
536
|
-
getBoundingClientRect: m
|
|
537
|
-
},
|
|
538
|
-
floating: r.floating,
|
|
539
|
-
strategy: s
|
|
540
|
-
});
|
|
541
|
-
return o.reference.x !== p.reference.x || o.reference.y !== p.reference.y || o.reference.width !== p.reference.width || o.reference.height !== p.reference.height ? {
|
|
542
|
-
reset: {
|
|
543
|
-
rects: p
|
|
544
|
-
}
|
|
545
|
-
} : {};
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
async function Fn(e, t) {
|
|
550
|
-
const {
|
|
551
|
-
placement: n,
|
|
552
|
-
platform: r,
|
|
553
|
-
elements: o
|
|
554
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = J(n), l = Le(n), c = Pe(n) === "y", a = ["left", "top"].includes(s) ? -1 : 1, g = i && c ? -1 : 1, f = Ie(t, e);
|
|
555
|
-
let {
|
|
556
|
-
mainAxis: d,
|
|
557
|
-
crossAxis: u,
|
|
558
|
-
alignmentAxis: m
|
|
559
|
-
} = typeof f == "number" ? {
|
|
560
|
-
mainAxis: f,
|
|
561
|
-
crossAxis: 0,
|
|
562
|
-
alignmentAxis: null
|
|
563
|
-
} : {
|
|
564
|
-
mainAxis: 0,
|
|
565
|
-
crossAxis: 0,
|
|
566
|
-
alignmentAxis: null,
|
|
567
|
-
...f
|
|
568
|
-
};
|
|
569
|
-
return l && typeof m == "number" && (u = l === "end" ? m * -1 : m), c ? {
|
|
570
|
-
x: u * g,
|
|
571
|
-
y: d * a
|
|
572
|
-
} : {
|
|
573
|
-
x: d * a,
|
|
574
|
-
y: u * g
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
const vo = function(e) {
|
|
578
|
-
return e === void 0 && (e = 0), {
|
|
579
|
-
name: "offset",
|
|
580
|
-
options: e,
|
|
581
|
-
async fn(t) {
|
|
582
|
-
var n, r;
|
|
583
|
-
const {
|
|
584
|
-
x: o,
|
|
585
|
-
y: i,
|
|
586
|
-
placement: s,
|
|
587
|
-
middlewareData: l
|
|
588
|
-
} = t, c = await Fn(t, e);
|
|
589
|
-
return s === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
590
|
-
x: o + c.x,
|
|
591
|
-
y: i + c.y,
|
|
592
|
-
data: {
|
|
593
|
-
...c,
|
|
594
|
-
placement: s
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
}, $n = function(e) {
|
|
600
|
-
return e === void 0 && (e = {}), {
|
|
601
|
-
name: "shift",
|
|
602
|
-
options: e,
|
|
603
|
-
async fn(t) {
|
|
604
|
-
const {
|
|
605
|
-
x: n,
|
|
606
|
-
y: r,
|
|
607
|
-
placement: o
|
|
608
|
-
} = t, {
|
|
609
|
-
mainAxis: i = !0,
|
|
610
|
-
crossAxis: s = !1,
|
|
611
|
-
limiter: l = {
|
|
612
|
-
fn: (x) => {
|
|
613
|
-
let {
|
|
614
|
-
x: h,
|
|
615
|
-
y: w
|
|
616
|
-
} = x;
|
|
617
|
-
return {
|
|
618
|
-
x: h,
|
|
619
|
-
y: w
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
...c
|
|
624
|
-
} = Ie(e, t), a = {
|
|
625
|
-
x: n,
|
|
626
|
-
y: r
|
|
627
|
-
}, g = await lt(t, c), f = Pe(J(o)), d = Yt(f);
|
|
628
|
-
let u = a[d], m = a[f];
|
|
629
|
-
if (i) {
|
|
630
|
-
const x = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", w = u + g[x], A = u - g[h];
|
|
631
|
-
u = gt(w, u, A);
|
|
632
|
-
}
|
|
633
|
-
if (s) {
|
|
634
|
-
const x = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", w = m + g[x], A = m - g[h];
|
|
635
|
-
m = gt(w, m, A);
|
|
636
|
-
}
|
|
637
|
-
const p = l.fn({
|
|
638
|
-
...t,
|
|
639
|
-
[d]: u,
|
|
640
|
-
[f]: m
|
|
641
|
-
});
|
|
642
|
-
return {
|
|
643
|
-
...p,
|
|
644
|
-
data: {
|
|
645
|
-
x: p.x - n,
|
|
646
|
-
y: p.y - r
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
}, Wn = function(e) {
|
|
652
|
-
return e === void 0 && (e = {}), {
|
|
653
|
-
name: "size",
|
|
654
|
-
options: e,
|
|
655
|
-
async fn(t) {
|
|
656
|
-
const {
|
|
657
|
-
placement: n,
|
|
658
|
-
rects: r,
|
|
659
|
-
platform: o,
|
|
660
|
-
elements: i
|
|
661
|
-
} = t, {
|
|
662
|
-
apply: s = () => {
|
|
663
|
-
},
|
|
664
|
-
...l
|
|
665
|
-
} = Ie(e, t), c = await lt(t, l), a = J(n), g = Le(n), f = Pe(n) === "y", {
|
|
666
|
-
width: d,
|
|
667
|
-
height: u
|
|
668
|
-
} = r.floating;
|
|
669
|
-
let m, p;
|
|
670
|
-
a === "top" || a === "bottom" ? (m = a, p = g === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (p = a, m = g === "end" ? "top" : "bottom");
|
|
671
|
-
const x = u - c[m], h = d - c[p], w = !t.middlewareData.shift;
|
|
672
|
-
let A = x, E = h;
|
|
673
|
-
if (f) {
|
|
674
|
-
const k = d - c.left - c.right;
|
|
675
|
-
E = g || w ? Q(h, k) : k;
|
|
676
|
-
} else {
|
|
677
|
-
const k = u - c.top - c.bottom;
|
|
678
|
-
A = g || w ? Q(x, k) : k;
|
|
679
|
-
}
|
|
680
|
-
if (w && !g) {
|
|
681
|
-
const k = _(c.left, 0), B = _(c.right, 0), I = _(c.top, 0), M = _(c.bottom, 0);
|
|
682
|
-
f ? E = d - 2 * (k !== 0 || B !== 0 ? k + B : _(c.left, c.right)) : A = u - 2 * (I !== 0 || M !== 0 ? I + M : _(c.top, c.bottom));
|
|
683
|
-
}
|
|
684
|
-
await s({
|
|
685
|
-
...t,
|
|
686
|
-
availableWidth: E,
|
|
687
|
-
availableHeight: A
|
|
688
|
-
});
|
|
689
|
-
const T = await o.getDimensions(i.floating);
|
|
690
|
-
return d !== T.width || u !== T.height ? {
|
|
691
|
-
reset: {
|
|
692
|
-
rects: !0
|
|
693
|
-
}
|
|
694
|
-
} : {};
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
|
-
function Gt(e) {
|
|
699
|
-
const t = G(e);
|
|
700
|
-
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
701
|
-
const o = U(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = je(n) !== i || je(r) !== s;
|
|
702
|
-
return l && (n = i, r = s), {
|
|
703
|
-
width: n,
|
|
704
|
-
height: r,
|
|
705
|
-
$: l
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
function ct(e) {
|
|
709
|
-
return N(e) ? e : e.contextElement;
|
|
710
|
-
}
|
|
711
|
-
function Ce(e) {
|
|
712
|
-
const t = ct(e);
|
|
713
|
-
if (!U(t))
|
|
714
|
-
return oe(1);
|
|
715
|
-
const n = t.getBoundingClientRect(), {
|
|
716
|
-
width: r,
|
|
717
|
-
height: o,
|
|
718
|
-
$: i
|
|
719
|
-
} = Gt(t);
|
|
720
|
-
let s = (i ? je(n.width) : n.width) / r, l = (i ? je(n.height) : n.height) / o;
|
|
721
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
722
|
-
x: s,
|
|
723
|
-
y: l
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
const Nn = /* @__PURE__ */ oe(0);
|
|
727
|
-
function Zt(e) {
|
|
728
|
-
const t = q(e);
|
|
729
|
-
return !st() || !t.visualViewport ? Nn : {
|
|
730
|
-
x: t.visualViewport.offsetLeft,
|
|
731
|
-
y: t.visualViewport.offsetTop
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
function jn(e, t, n) {
|
|
735
|
-
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
736
|
-
}
|
|
737
|
-
function pe(e, t, n, r) {
|
|
738
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
739
|
-
const o = e.getBoundingClientRect(), i = ct(e);
|
|
740
|
-
let s = oe(1);
|
|
741
|
-
t && (r ? N(r) && (s = Ce(r)) : s = Ce(e));
|
|
742
|
-
const l = jn(i, n, r) ? Zt(i) : oe(0);
|
|
743
|
-
let c = (o.left + l.x) / s.x, a = (o.top + l.y) / s.y, g = o.width / s.x, f = o.height / s.y;
|
|
744
|
-
if (i) {
|
|
745
|
-
const d = q(i), u = r && N(r) ? q(r) : r;
|
|
746
|
-
let m = d, p = m.frameElement;
|
|
747
|
-
for (; p && r && u !== m; ) {
|
|
748
|
-
const x = Ce(p), h = p.getBoundingClientRect(), w = G(p), A = h.left + (p.clientLeft + parseFloat(w.paddingLeft)) * x.x, E = h.top + (p.clientTop + parseFloat(w.paddingTop)) * x.y;
|
|
749
|
-
c *= x.x, a *= x.y, g *= x.x, f *= x.y, c += A, a += E, m = q(p), p = m.frameElement;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
return Te({
|
|
753
|
-
width: g,
|
|
754
|
-
height: f,
|
|
755
|
-
x: c,
|
|
756
|
-
y: a
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
const zn = [":popover-open", ":modal"];
|
|
760
|
-
function Jt(e) {
|
|
761
|
-
return zn.some((t) => {
|
|
762
|
-
try {
|
|
763
|
-
return e.matches(t);
|
|
764
|
-
} catch {
|
|
765
|
-
return !1;
|
|
766
|
-
}
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
function Vn(e) {
|
|
770
|
-
let {
|
|
771
|
-
elements: t,
|
|
772
|
-
rect: n,
|
|
773
|
-
offsetParent: r,
|
|
774
|
-
strategy: o
|
|
775
|
-
} = e;
|
|
776
|
-
const i = o === "fixed", s = te(r), l = t ? Jt(t.floating) : !1;
|
|
777
|
-
if (r === s || l && i)
|
|
778
|
-
return n;
|
|
779
|
-
let c = {
|
|
780
|
-
scrollLeft: 0,
|
|
781
|
-
scrollTop: 0
|
|
782
|
-
}, a = oe(1);
|
|
783
|
-
const g = oe(0), f = U(r);
|
|
784
|
-
if ((f || !f && !i) && ((re(r) !== "body" || Me(s)) && (c = Ye(r)), U(r))) {
|
|
785
|
-
const d = pe(r);
|
|
786
|
-
a = Ce(r), g.x = d.x + r.clientLeft, g.y = d.y + r.clientTop;
|
|
787
|
-
}
|
|
788
|
-
return {
|
|
789
|
-
width: n.width * a.x,
|
|
790
|
-
height: n.height * a.y,
|
|
791
|
-
x: n.x * a.x - c.scrollLeft * a.x + g.x,
|
|
792
|
-
y: n.y * a.y - c.scrollTop * a.y + g.y
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
function _n(e) {
|
|
796
|
-
return Array.from(e.getClientRects());
|
|
797
|
-
}
|
|
798
|
-
function Qt(e) {
|
|
799
|
-
return pe(te(e)).left + Ye(e).scrollLeft;
|
|
800
|
-
}
|
|
801
|
-
function Hn(e) {
|
|
802
|
-
const t = te(e), n = Ye(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
803
|
-
let s = -n.scrollLeft + Qt(e);
|
|
804
|
-
const l = -n.scrollTop;
|
|
805
|
-
return G(r).direction === "rtl" && (s += _(t.clientWidth, r.clientWidth) - o), {
|
|
806
|
-
width: o,
|
|
807
|
-
height: i,
|
|
808
|
-
x: s,
|
|
809
|
-
y: l
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
function Yn(e, t) {
|
|
813
|
-
const n = q(e), r = te(e), o = n.visualViewport;
|
|
814
|
-
let i = r.clientWidth, s = r.clientHeight, l = 0, c = 0;
|
|
815
|
-
if (o) {
|
|
816
|
-
i = o.width, s = o.height;
|
|
817
|
-
const a = st();
|
|
818
|
-
(!a || a && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
|
|
819
|
-
}
|
|
820
|
-
return {
|
|
821
|
-
width: i,
|
|
822
|
-
height: s,
|
|
823
|
-
x: l,
|
|
824
|
-
y: c
|
|
825
|
-
};
|
|
826
|
-
}
|
|
827
|
-
function Kn(e, t) {
|
|
828
|
-
const n = pe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = U(e) ? Ce(e) : oe(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, c = o * i.x, a = r * i.y;
|
|
829
|
-
return {
|
|
830
|
-
width: s,
|
|
831
|
-
height: l,
|
|
832
|
-
x: c,
|
|
833
|
-
y: a
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
function pt(e, t, n) {
|
|
837
|
-
let r;
|
|
838
|
-
if (t === "viewport")
|
|
839
|
-
r = Yn(e, n);
|
|
840
|
-
else if (t === "document")
|
|
841
|
-
r = Hn(te(e));
|
|
842
|
-
else if (N(t))
|
|
843
|
-
r = Kn(t, n);
|
|
844
|
-
else {
|
|
845
|
-
const o = Zt(e);
|
|
846
|
-
r = {
|
|
847
|
-
...t,
|
|
848
|
-
x: t.x - o.x,
|
|
849
|
-
y: t.y - o.y
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
return Te(r);
|
|
853
|
-
}
|
|
854
|
-
function en(e, t) {
|
|
855
|
-
const n = me(e);
|
|
856
|
-
return n === t || !N(n) || ke(n) ? !1 : G(n).position === "fixed" || en(n, t);
|
|
857
|
-
}
|
|
858
|
-
function Xn(e, t) {
|
|
859
|
-
const n = t.get(e);
|
|
860
|
-
if (n)
|
|
861
|
-
return n;
|
|
862
|
-
let r = ne(e, [], !1).filter((l) => N(l) && re(l) !== "body"), o = null;
|
|
863
|
-
const i = G(e).position === "fixed";
|
|
864
|
-
let s = i ? me(e) : e;
|
|
865
|
-
for (; N(s) && !ke(s); ) {
|
|
866
|
-
const l = G(s), c = it(s);
|
|
867
|
-
!c && l.position === "fixed" && (o = null), (i ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Me(s) && !c && en(e, s)) ? r = r.filter((g) => g !== s) : o = l, s = me(s);
|
|
868
|
-
}
|
|
869
|
-
return t.set(e, r), r;
|
|
870
|
-
}
|
|
871
|
-
function qn(e) {
|
|
872
|
-
let {
|
|
873
|
-
element: t,
|
|
874
|
-
boundary: n,
|
|
875
|
-
rootBoundary: r,
|
|
876
|
-
strategy: o
|
|
877
|
-
} = e;
|
|
878
|
-
const s = [...n === "clippingAncestors" ? Xn(t, this._c) : [].concat(n), r], l = s[0], c = s.reduce((a, g) => {
|
|
879
|
-
const f = pt(t, g, o);
|
|
880
|
-
return a.top = _(f.top, a.top), a.right = Q(f.right, a.right), a.bottom = Q(f.bottom, a.bottom), a.left = _(f.left, a.left), a;
|
|
881
|
-
}, pt(t, l, o));
|
|
882
|
-
return {
|
|
883
|
-
width: c.right - c.left,
|
|
884
|
-
height: c.bottom - c.top,
|
|
885
|
-
x: c.left,
|
|
886
|
-
y: c.top
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
function Un(e) {
|
|
890
|
-
const {
|
|
891
|
-
width: t,
|
|
892
|
-
height: n
|
|
893
|
-
} = Gt(e);
|
|
894
|
-
return {
|
|
895
|
-
width: t,
|
|
896
|
-
height: n
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
function Gn(e, t, n) {
|
|
900
|
-
const r = U(t), o = te(t), i = n === "fixed", s = pe(e, !0, i, t);
|
|
901
|
-
let l = {
|
|
902
|
-
scrollLeft: 0,
|
|
903
|
-
scrollTop: 0
|
|
904
|
-
};
|
|
905
|
-
const c = oe(0);
|
|
906
|
-
if (r || !r && !i)
|
|
907
|
-
if ((re(t) !== "body" || Me(o)) && (l = Ye(t)), r) {
|
|
908
|
-
const f = pe(t, !0, i, t);
|
|
909
|
-
c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
|
|
910
|
-
} else
|
|
911
|
-
o && (c.x = Qt(o));
|
|
912
|
-
const a = s.left + l.scrollLeft - c.x, g = s.top + l.scrollTop - c.y;
|
|
913
|
-
return {
|
|
914
|
-
x: a,
|
|
915
|
-
y: g,
|
|
916
|
-
width: s.width,
|
|
917
|
-
height: s.height
|
|
918
|
-
};
|
|
919
|
-
}
|
|
920
|
-
function ht(e, t) {
|
|
921
|
-
return !U(e) || G(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
922
|
-
}
|
|
923
|
-
function tn(e, t) {
|
|
924
|
-
const n = q(e);
|
|
925
|
-
if (!U(e) || Jt(e))
|
|
926
|
-
return n;
|
|
927
|
-
let r = ht(e, t);
|
|
928
|
-
for (; r && bn(r) && G(r).position === "static"; )
|
|
929
|
-
r = ht(r, t);
|
|
930
|
-
return r && (re(r) === "html" || re(r) === "body" && G(r).position === "static" && !it(r)) ? n : r || yn(e) || n;
|
|
931
|
-
}
|
|
932
|
-
const Zn = async function(e) {
|
|
933
|
-
const t = this.getOffsetParent || tn, n = this.getDimensions;
|
|
934
|
-
return {
|
|
935
|
-
reference: Gn(e.reference, await t(e.floating), e.strategy),
|
|
936
|
-
floating: {
|
|
937
|
-
x: 0,
|
|
938
|
-
y: 0,
|
|
939
|
-
...await n(e.floating)
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
};
|
|
943
|
-
function Jn(e) {
|
|
944
|
-
return G(e).direction === "rtl";
|
|
945
|
-
}
|
|
946
|
-
const Qn = {
|
|
947
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Vn,
|
|
948
|
-
getDocumentElement: te,
|
|
949
|
-
getClippingRect: qn,
|
|
950
|
-
getOffsetParent: tn,
|
|
951
|
-
getElementRects: Zn,
|
|
952
|
-
getClientRects: _n,
|
|
953
|
-
getDimensions: Un,
|
|
954
|
-
getScale: Ce,
|
|
955
|
-
isElement: N,
|
|
956
|
-
isRTL: Jn
|
|
957
|
-
};
|
|
958
|
-
function er(e, t) {
|
|
959
|
-
let n = null, r;
|
|
960
|
-
const o = te(e);
|
|
961
|
-
function i() {
|
|
962
|
-
var l;
|
|
963
|
-
clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
|
|
964
|
-
}
|
|
965
|
-
function s(l, c) {
|
|
966
|
-
l === void 0 && (l = !1), c === void 0 && (c = 1), i();
|
|
967
|
-
const {
|
|
968
|
-
left: a,
|
|
969
|
-
top: g,
|
|
970
|
-
width: f,
|
|
971
|
-
height: d
|
|
972
|
-
} = e.getBoundingClientRect();
|
|
973
|
-
if (l || t(), !f || !d)
|
|
974
|
-
return;
|
|
975
|
-
const u = Fe(g), m = Fe(o.clientWidth - (a + f)), p = Fe(o.clientHeight - (g + d)), x = Fe(a), w = {
|
|
976
|
-
rootMargin: -u + "px " + -m + "px " + -p + "px " + -x + "px",
|
|
977
|
-
threshold: _(0, Q(1, c)) || 1
|
|
978
|
-
};
|
|
979
|
-
let A = !0;
|
|
980
|
-
function E(T) {
|
|
981
|
-
const k = T[0].intersectionRatio;
|
|
982
|
-
if (k !== c) {
|
|
983
|
-
if (!A)
|
|
984
|
-
return s();
|
|
985
|
-
k ? s(!1, k) : r = setTimeout(() => {
|
|
986
|
-
s(!1, 1e-7);
|
|
987
|
-
}, 100);
|
|
988
|
-
}
|
|
989
|
-
A = !1;
|
|
990
|
-
}
|
|
991
|
-
try {
|
|
992
|
-
n = new IntersectionObserver(E, {
|
|
993
|
-
...w,
|
|
994
|
-
// Handle <iframe>s
|
|
995
|
-
root: o.ownerDocument
|
|
996
|
-
});
|
|
997
|
-
} catch {
|
|
998
|
-
n = new IntersectionObserver(E, w);
|
|
999
|
-
}
|
|
1000
|
-
n.observe(e);
|
|
1001
|
-
}
|
|
1002
|
-
return s(!0), i;
|
|
1003
|
-
}
|
|
1004
|
-
function xo(e, t, n, r) {
|
|
1005
|
-
r === void 0 && (r = {});
|
|
1006
|
-
const {
|
|
1007
|
-
ancestorScroll: o = !0,
|
|
1008
|
-
ancestorResize: i = !0,
|
|
1009
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
1010
|
-
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1011
|
-
animationFrame: c = !1
|
|
1012
|
-
} = r, a = ct(e), g = o || i ? [...a ? ne(a) : [], ...ne(t)] : [];
|
|
1013
|
-
g.forEach((h) => {
|
|
1014
|
-
o && h.addEventListener("scroll", n, {
|
|
1015
|
-
passive: !0
|
|
1016
|
-
}), i && h.addEventListener("resize", n);
|
|
1017
|
-
});
|
|
1018
|
-
const f = a && l ? er(a, n) : null;
|
|
1019
|
-
let d = -1, u = null;
|
|
1020
|
-
s && (u = new ResizeObserver((h) => {
|
|
1021
|
-
let [w] = h;
|
|
1022
|
-
w && w.target === a && u && (u.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
1023
|
-
var A;
|
|
1024
|
-
(A = u) == null || A.observe(t);
|
|
1025
|
-
})), n();
|
|
1026
|
-
}), a && !c && u.observe(a), u.observe(t));
|
|
1027
|
-
let m, p = c ? pe(e) : null;
|
|
1028
|
-
c && x();
|
|
1029
|
-
function x() {
|
|
1030
|
-
const h = pe(e);
|
|
1031
|
-
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, m = requestAnimationFrame(x);
|
|
1032
|
-
}
|
|
1033
|
-
return n(), () => {
|
|
1034
|
-
var h;
|
|
1035
|
-
g.forEach((w) => {
|
|
1036
|
-
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1037
|
-
}), f == null || f(), (h = u) == null || h.disconnect(), u = null, c && cancelAnimationFrame(m);
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
const wo = $n, Ro = Dn, Eo = Wn, So = Ln, tr = (e, t, n) => {
|
|
1041
|
-
const r = /* @__PURE__ */ new Map(), o = {
|
|
1042
|
-
platform: Qn,
|
|
1043
|
-
...n
|
|
1044
|
-
}, i = {
|
|
1045
|
-
...o.platform,
|
|
1046
|
-
_c: r
|
|
1047
|
-
};
|
|
1048
|
-
return On(e, t, {
|
|
1049
|
-
...o,
|
|
1050
|
-
platform: i
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
var $e = typeof document < "u" ? zt : Vt;
|
|
1054
|
-
function Ve(e, t) {
|
|
1055
|
-
if (e === t)
|
|
1056
|
-
return !0;
|
|
1057
|
-
if (typeof e != typeof t)
|
|
1058
|
-
return !1;
|
|
1059
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
|
1060
|
-
return !0;
|
|
1061
|
-
let n, r, o;
|
|
1062
|
-
if (e && t && typeof e == "object") {
|
|
1063
|
-
if (Array.isArray(e)) {
|
|
1064
|
-
if (n = e.length, n !== t.length)
|
|
1065
|
-
return !1;
|
|
1066
|
-
for (r = n; r-- !== 0; )
|
|
1067
|
-
if (!Ve(e[r], t[r]))
|
|
1068
|
-
return !1;
|
|
1069
|
-
return !0;
|
|
1070
|
-
}
|
|
1071
|
-
if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
|
|
1072
|
-
return !1;
|
|
1073
|
-
for (r = n; r-- !== 0; )
|
|
1074
|
-
if (!{}.hasOwnProperty.call(t, o[r]))
|
|
1075
|
-
return !1;
|
|
1076
|
-
for (r = n; r-- !== 0; ) {
|
|
1077
|
-
const i = o[r];
|
|
1078
|
-
if (!(i === "_owner" && e.$$typeof) && !Ve(e[i], t[i]))
|
|
1079
|
-
return !1;
|
|
1080
|
-
}
|
|
1081
|
-
return !0;
|
|
1082
|
-
}
|
|
1083
|
-
return e !== e && t !== t;
|
|
1084
|
-
}
|
|
1085
|
-
function nn(e) {
|
|
1086
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1087
|
-
}
|
|
1088
|
-
function bt(e, t) {
|
|
1089
|
-
const n = nn(e);
|
|
1090
|
-
return Math.round(t * n) / n;
|
|
1091
|
-
}
|
|
1092
|
-
function yt(e) {
|
|
1093
|
-
const t = y.useRef(e);
|
|
1094
|
-
return $e(() => {
|
|
1095
|
-
t.current = e;
|
|
1096
|
-
}), t;
|
|
1097
|
-
}
|
|
1098
|
-
function nr(e) {
|
|
1099
|
-
e === void 0 && (e = {});
|
|
1100
|
-
const {
|
|
1101
|
-
placement: t = "bottom",
|
|
1102
|
-
strategy: n = "absolute",
|
|
1103
|
-
middleware: r = [],
|
|
1104
|
-
platform: o,
|
|
1105
|
-
elements: {
|
|
1106
|
-
reference: i,
|
|
1107
|
-
floating: s
|
|
1108
|
-
} = {},
|
|
1109
|
-
transform: l = !0,
|
|
1110
|
-
whileElementsMounted: c,
|
|
1111
|
-
open: a
|
|
1112
|
-
} = e, [g, f] = y.useState({
|
|
1113
|
-
x: 0,
|
|
1114
|
-
y: 0,
|
|
1115
|
-
strategy: n,
|
|
1116
|
-
placement: t,
|
|
1117
|
-
middlewareData: {},
|
|
1118
|
-
isPositioned: !1
|
|
1119
|
-
}), [d, u] = y.useState(r);
|
|
1120
|
-
Ve(d, r) || u(r);
|
|
1121
|
-
const [m, p] = y.useState(null), [x, h] = y.useState(null), w = y.useCallback((S) => {
|
|
1122
|
-
S !== k.current && (k.current = S, p(S));
|
|
1123
|
-
}, []), A = y.useCallback((S) => {
|
|
1124
|
-
S !== B.current && (B.current = S, h(S));
|
|
1125
|
-
}, []), E = i || m, T = s || x, k = y.useRef(null), B = y.useRef(null), I = y.useRef(g), M = c != null, O = yt(c), F = yt(o), L = y.useCallback(() => {
|
|
1126
|
-
if (!k.current || !B.current)
|
|
1127
|
-
return;
|
|
1128
|
-
const S = {
|
|
1129
|
-
placement: t,
|
|
1130
|
-
strategy: n,
|
|
1131
|
-
middleware: d
|
|
1132
|
-
};
|
|
1133
|
-
F.current && (S.platform = F.current), tr(k.current, B.current, S).then((R) => {
|
|
1134
|
-
const $ = {
|
|
1135
|
-
...R,
|
|
1136
|
-
isPositioned: !0
|
|
1137
|
-
};
|
|
1138
|
-
D.current && !Ve(I.current, $) && (I.current = $, pn.flushSync(() => {
|
|
1139
|
-
f($);
|
|
1140
|
-
}));
|
|
1141
|
-
});
|
|
1142
|
-
}, [d, t, n, F]);
|
|
1143
|
-
$e(() => {
|
|
1144
|
-
a === !1 && I.current.isPositioned && (I.current.isPositioned = !1, f((S) => ({
|
|
1145
|
-
...S,
|
|
1146
|
-
isPositioned: !1
|
|
1147
|
-
})));
|
|
1148
|
-
}, [a]);
|
|
1149
|
-
const D = y.useRef(!1);
|
|
1150
|
-
$e(() => (D.current = !0, () => {
|
|
1151
|
-
D.current = !1;
|
|
1152
|
-
}), []), $e(() => {
|
|
1153
|
-
if (E && (k.current = E), T && (B.current = T), E && T) {
|
|
1154
|
-
if (O.current)
|
|
1155
|
-
return O.current(E, T, L);
|
|
1156
|
-
L();
|
|
1157
|
-
}
|
|
1158
|
-
}, [E, T, L, O, M]);
|
|
1159
|
-
const b = y.useMemo(() => ({
|
|
1160
|
-
reference: k,
|
|
1161
|
-
floating: B,
|
|
1162
|
-
setReference: w,
|
|
1163
|
-
setFloating: A
|
|
1164
|
-
}), [w, A]), v = y.useMemo(() => ({
|
|
1165
|
-
reference: E,
|
|
1166
|
-
floating: T
|
|
1167
|
-
}), [E, T]), P = y.useMemo(() => {
|
|
1168
|
-
const S = {
|
|
1169
|
-
position: n,
|
|
1170
|
-
left: 0,
|
|
1171
|
-
top: 0
|
|
1172
|
-
};
|
|
1173
|
-
if (!v.floating)
|
|
1174
|
-
return S;
|
|
1175
|
-
const R = bt(v.floating, g.x), $ = bt(v.floating, g.y);
|
|
1176
|
-
return l ? {
|
|
1177
|
-
...S,
|
|
1178
|
-
transform: "translate(" + R + "px, " + $ + "px)",
|
|
1179
|
-
...nn(v.floating) >= 1.5 && {
|
|
1180
|
-
willChange: "transform"
|
|
1181
|
-
}
|
|
1182
|
-
} : {
|
|
1183
|
-
position: n,
|
|
1184
|
-
left: R,
|
|
1185
|
-
top: $
|
|
1186
|
-
};
|
|
1187
|
-
}, [n, l, v.floating, g.x, g.y]);
|
|
1188
|
-
return y.useMemo(() => ({
|
|
1189
|
-
...g,
|
|
1190
|
-
update: L,
|
|
1191
|
-
refs: b,
|
|
1192
|
-
elements: v,
|
|
1193
|
-
floatingStyles: P
|
|
1194
|
-
}), [g, L, b, v, P]);
|
|
1195
|
-
}
|
|
1196
|
-
/*!
|
|
1197
|
-
* tabbable 6.2.0
|
|
1198
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1199
|
-
*/
|
|
1200
|
-
var rr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], tt = /* @__PURE__ */ rr.join(","), rn = typeof Element > "u", De = rn ? function() {
|
|
1201
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _e = !rn && Element.prototype.getRootNode ? function(e) {
|
|
1202
|
-
var t;
|
|
1203
|
-
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1204
|
-
} : function(e) {
|
|
1205
|
-
return e == null ? void 0 : e.ownerDocument;
|
|
1206
|
-
}, He = function e(t, n) {
|
|
1207
|
-
var r;
|
|
1208
|
-
n === void 0 && (n = !0);
|
|
1209
|
-
var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), i = o === "" || o === "true", s = i || n && t && e(t.parentNode);
|
|
1210
|
-
return s;
|
|
1211
|
-
}, or = function(t) {
|
|
1212
|
-
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
1213
|
-
return r === "" || r === "true";
|
|
1214
|
-
}, ir = function(t, n, r) {
|
|
1215
|
-
if (He(t))
|
|
1216
|
-
return [];
|
|
1217
|
-
var o = Array.prototype.slice.apply(t.querySelectorAll(tt));
|
|
1218
|
-
return n && De.call(t, tt) && o.unshift(t), o = o.filter(r), o;
|
|
1219
|
-
}, sr = function e(t, n, r) {
|
|
1220
|
-
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1221
|
-
var s = i.shift();
|
|
1222
|
-
if (!He(s, !1))
|
|
1223
|
-
if (s.tagName === "SLOT") {
|
|
1224
|
-
var l = s.assignedElements(), c = l.length ? l : s.children, a = e(c, !0, r);
|
|
1225
|
-
r.flatten ? o.push.apply(o, a) : o.push({
|
|
1226
|
-
scopeParent: s,
|
|
1227
|
-
candidates: a
|
|
1228
|
-
});
|
|
1229
|
-
} else {
|
|
1230
|
-
var g = De.call(s, tt);
|
|
1231
|
-
g && r.filter(s) && (n || !t.includes(s)) && o.push(s);
|
|
1232
|
-
var f = s.shadowRoot || // check for an undisclosed shadow
|
|
1233
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), d = !He(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
|
|
1234
|
-
if (f && d) {
|
|
1235
|
-
var u = e(f === !0 ? s.children : f.children, !0, r);
|
|
1236
|
-
r.flatten ? o.push.apply(o, u) : o.push({
|
|
1237
|
-
scopeParent: s,
|
|
1238
|
-
candidates: u
|
|
1239
|
-
});
|
|
1240
|
-
} else
|
|
1241
|
-
i.unshift.apply(i, s.children);
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
return o;
|
|
1245
|
-
}, on = function(t) {
|
|
1246
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
1247
|
-
}, sn = function(t) {
|
|
1248
|
-
if (!t)
|
|
1249
|
-
throw new Error("No node provided");
|
|
1250
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || or(t)) && !on(t) ? 0 : t.tabIndex;
|
|
1251
|
-
}, lr = function(t, n) {
|
|
1252
|
-
var r = sn(t);
|
|
1253
|
-
return r < 0 && n && !on(t) ? 0 : r;
|
|
1254
|
-
}, cr = function(t, n) {
|
|
1255
|
-
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
1256
|
-
}, ln = function(t) {
|
|
1257
|
-
return t.tagName === "INPUT";
|
|
1258
|
-
}, ar = function(t) {
|
|
1259
|
-
return ln(t) && t.type === "hidden";
|
|
1260
|
-
}, ur = function(t) {
|
|
1261
|
-
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
1262
|
-
return r.tagName === "SUMMARY";
|
|
1263
|
-
});
|
|
1264
|
-
return n;
|
|
1265
|
-
}, fr = function(t, n) {
|
|
1266
|
-
for (var r = 0; r < t.length; r++)
|
|
1267
|
-
if (t[r].checked && t[r].form === n)
|
|
1268
|
-
return t[r];
|
|
1269
|
-
}, dr = function(t) {
|
|
1270
|
-
if (!t.name)
|
|
1271
|
-
return !0;
|
|
1272
|
-
var n = t.form || _e(t), r = function(l) {
|
|
1273
|
-
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
1274
|
-
}, o;
|
|
1275
|
-
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
1276
|
-
o = r(window.CSS.escape(t.name));
|
|
1277
|
-
else
|
|
1278
|
-
try {
|
|
1279
|
-
o = r(t.name);
|
|
1280
|
-
} catch (s) {
|
|
1281
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
1282
|
-
}
|
|
1283
|
-
var i = fr(o, t.form);
|
|
1284
|
-
return !i || i === t;
|
|
1285
|
-
}, gr = function(t) {
|
|
1286
|
-
return ln(t) && t.type === "radio";
|
|
1287
|
-
}, mr = function(t) {
|
|
1288
|
-
return gr(t) && !dr(t);
|
|
1289
|
-
}, pr = function(t) {
|
|
1290
|
-
var n, r = t && _e(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
1291
|
-
if (r && r !== t) {
|
|
1292
|
-
var s, l, c;
|
|
1293
|
-
for (i = !!((s = o) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(o) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !i && o; ) {
|
|
1294
|
-
var a, g, f;
|
|
1295
|
-
r = _e(o), o = (a = r) === null || a === void 0 ? void 0 : a.host, i = !!((g = o) !== null && g !== void 0 && (f = g.ownerDocument) !== null && f !== void 0 && f.contains(o));
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
return i;
|
|
1299
|
-
}, vt = function(t) {
|
|
1300
|
-
var n = t.getBoundingClientRect(), r = n.width, o = n.height;
|
|
1301
|
-
return r === 0 && o === 0;
|
|
1302
|
-
}, hr = function(t, n) {
|
|
1303
|
-
var r = n.displayCheck, o = n.getShadowRoot;
|
|
1304
|
-
if (getComputedStyle(t).visibility === "hidden")
|
|
1305
|
-
return !0;
|
|
1306
|
-
var i = De.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
|
|
1307
|
-
if (De.call(s, "details:not([open]) *"))
|
|
1308
|
-
return !0;
|
|
1309
|
-
if (!r || r === "full" || r === "legacy-full") {
|
|
1310
|
-
if (typeof o == "function") {
|
|
1311
|
-
for (var l = t; t; ) {
|
|
1312
|
-
var c = t.parentElement, a = _e(t);
|
|
1313
|
-
if (c && !c.shadowRoot && o(c) === !0)
|
|
1314
|
-
return vt(t);
|
|
1315
|
-
t.assignedSlot ? t = t.assignedSlot : !c && a !== t.ownerDocument ? t = a.host : t = c;
|
|
1316
|
-
}
|
|
1317
|
-
t = l;
|
|
1318
|
-
}
|
|
1319
|
-
if (pr(t))
|
|
1320
|
-
return !t.getClientRects().length;
|
|
1321
|
-
if (r !== "legacy-full")
|
|
1322
|
-
return !0;
|
|
1323
|
-
} else if (r === "non-zero-area")
|
|
1324
|
-
return vt(t);
|
|
1325
|
-
return !1;
|
|
1326
|
-
}, br = function(t) {
|
|
1327
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
1328
|
-
for (var n = t.parentElement; n; ) {
|
|
1329
|
-
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
1330
|
-
for (var r = 0; r < n.children.length; r++) {
|
|
1331
|
-
var o = n.children.item(r);
|
|
1332
|
-
if (o.tagName === "LEGEND")
|
|
1333
|
-
return De.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
|
|
1334
|
-
}
|
|
1335
|
-
return !0;
|
|
1336
|
-
}
|
|
1337
|
-
n = n.parentElement;
|
|
1338
|
-
}
|
|
1339
|
-
return !1;
|
|
1340
|
-
}, yr = function(t, n) {
|
|
1341
|
-
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
1342
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
1343
|
-
// note related to `candidateSelectors`)
|
|
1344
|
-
He(n) || ar(n) || hr(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
1345
|
-
ur(n) || br(n));
|
|
1346
|
-
}, xt = function(t, n) {
|
|
1347
|
-
return !(mr(n) || sn(n) < 0 || !yr(t, n));
|
|
1348
|
-
}, vr = function(t) {
|
|
1349
|
-
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
1350
|
-
return !!(isNaN(n) || n >= 0);
|
|
1351
|
-
}, xr = function e(t) {
|
|
1352
|
-
var n = [], r = [];
|
|
1353
|
-
return t.forEach(function(o, i) {
|
|
1354
|
-
var s = !!o.scopeParent, l = s ? o.scopeParent : o, c = lr(l, s), a = s ? e(o.candidates) : l;
|
|
1355
|
-
c === 0 ? s ? n.push.apply(n, a) : n.push(l) : r.push({
|
|
1356
|
-
documentOrder: i,
|
|
1357
|
-
tabIndex: c,
|
|
1358
|
-
item: o,
|
|
1359
|
-
isScope: s,
|
|
1360
|
-
content: a
|
|
1361
|
-
});
|
|
1362
|
-
}), r.sort(cr).reduce(function(o, i) {
|
|
1363
|
-
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
1364
|
-
}, []).concat(n);
|
|
1365
|
-
}, cn = function(t, n) {
|
|
1366
|
-
n = n || {};
|
|
1367
|
-
var r;
|
|
1368
|
-
return n.getShadowRoot ? r = sr([t], n.includeContainer, {
|
|
1369
|
-
filter: xt.bind(null, n),
|
|
1370
|
-
flatten: !1,
|
|
1371
|
-
getShadowRoot: n.getShadowRoot,
|
|
1372
|
-
shadowRootFilter: vr
|
|
1373
|
-
}) : r = ir(t, n.includeContainer, xt.bind(null, n)), xr(r);
|
|
1374
|
-
};
|
|
1375
|
-
const wr = y[/* @__PURE__ */ "useInsertionEffect".toString()], Rr = wr || ((e) => e());
|
|
1376
|
-
function Re(e) {
|
|
1377
|
-
const t = y.useRef(() => {
|
|
1378
|
-
if (process.env.NODE_ENV !== "production")
|
|
1379
|
-
throw new Error("Cannot call an event handler while rendering.");
|
|
1380
|
-
});
|
|
1381
|
-
return Rr(() => {
|
|
1382
|
-
t.current = e;
|
|
1383
|
-
}), y.useCallback(function() {
|
|
1384
|
-
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
1385
|
-
r[o] = arguments[o];
|
|
1386
|
-
return t.current == null ? void 0 : t.current(...r);
|
|
1387
|
-
}, []);
|
|
1388
|
-
}
|
|
1389
|
-
var Z = typeof document < "u" ? zt : Vt;
|
|
1390
|
-
function nt() {
|
|
1391
|
-
return nt = Object.assign ? Object.assign.bind() : function(e) {
|
|
1392
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1393
|
-
var n = arguments[t];
|
|
1394
|
-
for (var r in n)
|
|
1395
|
-
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1396
|
-
}
|
|
1397
|
-
return e;
|
|
1398
|
-
}, nt.apply(this, arguments);
|
|
1399
|
-
}
|
|
1400
|
-
let qe = !1, Er = 0;
|
|
1401
|
-
const wt = () => "floating-ui-" + Er++;
|
|
1402
|
-
function Sr() {
|
|
1403
|
-
const [e, t] = y.useState(() => qe ? wt() : void 0);
|
|
1404
|
-
return Z(() => {
|
|
1405
|
-
e == null && t(wt());
|
|
1406
|
-
}, []), y.useEffect(() => {
|
|
1407
|
-
qe || (qe = !0);
|
|
1408
|
-
}, []), e;
|
|
1409
|
-
}
|
|
1410
|
-
const Cr = y[/* @__PURE__ */ "useId".toString()], at = Cr || Sr;
|
|
1411
|
-
function kr() {
|
|
1412
|
-
const e = /* @__PURE__ */ new Map();
|
|
1413
|
-
return {
|
|
1414
|
-
emit(t, n) {
|
|
1415
|
-
var r;
|
|
1416
|
-
(r = e.get(t)) == null || r.forEach((o) => o(n));
|
|
1417
|
-
},
|
|
1418
|
-
on(t, n) {
|
|
1419
|
-
e.set(t, [...e.get(t) || [], n]);
|
|
1420
|
-
},
|
|
1421
|
-
off(t, n) {
|
|
1422
|
-
var r;
|
|
1423
|
-
e.set(t, ((r = e.get(t)) == null ? void 0 : r.filter((o) => o !== n)) || []);
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
}
|
|
1427
|
-
const Tr = /* @__PURE__ */ y.createContext(null), Ir = /* @__PURE__ */ y.createContext(null), ut = () => {
|
|
1428
|
-
var e;
|
|
1429
|
-
return ((e = y.useContext(Tr)) == null ? void 0 : e.id) || null;
|
|
1430
|
-
}, ft = () => y.useContext(Ir);
|
|
1431
|
-
function Ke(e) {
|
|
1432
|
-
return "data-floating-ui-" + e;
|
|
1433
|
-
}
|
|
1434
|
-
function Ee(e) {
|
|
1435
|
-
const t = mn(e);
|
|
1436
|
-
return Z(() => {
|
|
1437
|
-
t.current = e;
|
|
1438
|
-
}), t;
|
|
1439
|
-
}
|
|
1440
|
-
const Rt = /* @__PURE__ */ Ke("safe-polygon");
|
|
1441
|
-
function Ue(e, t, n) {
|
|
1442
|
-
return n && !Ne(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
1443
|
-
}
|
|
1444
|
-
function Co(e, t) {
|
|
1445
|
-
t === void 0 && (t = {});
|
|
1446
|
-
const {
|
|
1447
|
-
open: n,
|
|
1448
|
-
onOpenChange: r,
|
|
1449
|
-
dataRef: o,
|
|
1450
|
-
events: i,
|
|
1451
|
-
elements: {
|
|
1452
|
-
domReference: s,
|
|
1453
|
-
floating: l
|
|
1454
|
-
},
|
|
1455
|
-
refs: c
|
|
1456
|
-
} = e, {
|
|
1457
|
-
enabled: a = !0,
|
|
1458
|
-
delay: g = 0,
|
|
1459
|
-
handleClose: f = null,
|
|
1460
|
-
mouseOnly: d = !1,
|
|
1461
|
-
restMs: u = 0,
|
|
1462
|
-
move: m = !0
|
|
1463
|
-
} = t, p = ft(), x = ut(), h = Ee(f), w = Ee(g), A = y.useRef(), E = y.useRef(), T = y.useRef(), k = y.useRef(), B = y.useRef(!0), I = y.useRef(!1), M = y.useRef(() => {
|
|
1464
|
-
}), O = y.useCallback(() => {
|
|
1465
|
-
var b;
|
|
1466
|
-
const v = (b = o.current.openEvent) == null ? void 0 : b.type;
|
|
1467
|
-
return (v == null ? void 0 : v.includes("mouse")) && v !== "mousedown";
|
|
1468
|
-
}, [o]);
|
|
1469
|
-
y.useEffect(() => {
|
|
1470
|
-
if (!a)
|
|
1471
|
-
return;
|
|
1472
|
-
function b(v) {
|
|
1473
|
-
let {
|
|
1474
|
-
open: P
|
|
1475
|
-
} = v;
|
|
1476
|
-
P || (clearTimeout(E.current), clearTimeout(k.current), B.current = !0);
|
|
1477
|
-
}
|
|
1478
|
-
return i.on("openchange", b), () => {
|
|
1479
|
-
i.off("openchange", b);
|
|
1480
|
-
};
|
|
1481
|
-
}, [a, i]), y.useEffect(() => {
|
|
1482
|
-
if (!a || !h.current || !n)
|
|
1483
|
-
return;
|
|
1484
|
-
function b(P) {
|
|
1485
|
-
O() && r(!1, P, "hover");
|
|
1486
|
-
}
|
|
1487
|
-
const v = ue(l).documentElement;
|
|
1488
|
-
return v.addEventListener("mouseleave", b), () => {
|
|
1489
|
-
v.removeEventListener("mouseleave", b);
|
|
1490
|
-
};
|
|
1491
|
-
}, [l, n, r, a, h, O]);
|
|
1492
|
-
const F = y.useCallback(function(b, v, P) {
|
|
1493
|
-
v === void 0 && (v = !0), P === void 0 && (P = "hover");
|
|
1494
|
-
const S = Ue(w.current, "close", A.current);
|
|
1495
|
-
S && !T.current ? (clearTimeout(E.current), E.current = setTimeout(() => r(!1, b, P), S)) : v && (clearTimeout(E.current), r(!1, b, P));
|
|
1496
|
-
}, [w, r]), L = y.useCallback(() => {
|
|
1497
|
-
M.current(), T.current = void 0;
|
|
1498
|
-
}, []), D = y.useCallback(() => {
|
|
1499
|
-
if (I.current) {
|
|
1500
|
-
const b = ue(c.floating.current).body;
|
|
1501
|
-
b.style.pointerEvents = "", b.removeAttribute(Rt), I.current = !1;
|
|
1502
|
-
}
|
|
1503
|
-
}, [c]);
|
|
1504
|
-
return y.useEffect(() => {
|
|
1505
|
-
if (!a)
|
|
1506
|
-
return;
|
|
1507
|
-
function b() {
|
|
1508
|
-
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
1509
|
-
}
|
|
1510
|
-
function v(R) {
|
|
1511
|
-
if (clearTimeout(E.current), B.current = !1, d && !Ne(A.current) || u > 0 && Ue(w.current, "open") === 0)
|
|
1512
|
-
return;
|
|
1513
|
-
const $ = Ue(w.current, "open", A.current);
|
|
1514
|
-
$ ? E.current = setTimeout(() => {
|
|
1515
|
-
r(!0, R, "hover");
|
|
1516
|
-
}, $) : r(!0, R, "hover");
|
|
1517
|
-
}
|
|
1518
|
-
function P(R) {
|
|
1519
|
-
if (b())
|
|
1520
|
-
return;
|
|
1521
|
-
M.current();
|
|
1522
|
-
const $ = ue(l);
|
|
1523
|
-
if (clearTimeout(k.current), h.current) {
|
|
1524
|
-
n || clearTimeout(E.current), T.current = h.current({
|
|
1525
|
-
...e,
|
|
1526
|
-
tree: p,
|
|
1527
|
-
x: R.clientX,
|
|
1528
|
-
y: R.clientY,
|
|
1529
|
-
onClose() {
|
|
1530
|
-
D(), L(), F(R, !0, "safe-polygon");
|
|
1531
|
-
}
|
|
1532
|
-
});
|
|
1533
|
-
const X = T.current;
|
|
1534
|
-
$.addEventListener("mousemove", X), M.current = () => {
|
|
1535
|
-
$.removeEventListener("mousemove", X);
|
|
1536
|
-
};
|
|
1537
|
-
return;
|
|
1538
|
-
}
|
|
1539
|
-
(A.current === "touch" ? !fe(l, R.relatedTarget) : !0) && F(R);
|
|
1540
|
-
}
|
|
1541
|
-
function S(R) {
|
|
1542
|
-
b() || h.current == null || h.current({
|
|
1543
|
-
...e,
|
|
1544
|
-
tree: p,
|
|
1545
|
-
x: R.clientX,
|
|
1546
|
-
y: R.clientY,
|
|
1547
|
-
onClose() {
|
|
1548
|
-
D(), L(), F(R);
|
|
1549
|
-
}
|
|
1550
|
-
})(R);
|
|
1551
|
-
}
|
|
1552
|
-
if (N(s)) {
|
|
1553
|
-
const R = s;
|
|
1554
|
-
return n && R.addEventListener("mouseleave", S), l == null || l.addEventListener("mouseleave", S), m && R.addEventListener("mousemove", v, {
|
|
1555
|
-
once: !0
|
|
1556
|
-
}), R.addEventListener("mouseenter", v), R.addEventListener("mouseleave", P), () => {
|
|
1557
|
-
n && R.removeEventListener("mouseleave", S), l == null || l.removeEventListener("mouseleave", S), m && R.removeEventListener("mousemove", v), R.removeEventListener("mouseenter", v), R.removeEventListener("mouseleave", P);
|
|
1558
|
-
};
|
|
1559
|
-
}
|
|
1560
|
-
}, [s, l, a, e, d, u, m, F, L, D, r, n, p, w, h, o]), Z(() => {
|
|
1561
|
-
var b;
|
|
1562
|
-
if (a && n && (b = h.current) != null && b.__options.blockPointerEvents && O()) {
|
|
1563
|
-
const P = ue(l).body;
|
|
1564
|
-
if (P.setAttribute(Rt, ""), P.style.pointerEvents = "none", I.current = !0, N(s) && l) {
|
|
1565
|
-
var v;
|
|
1566
|
-
const S = s, R = p == null || (v = p.nodesRef.current.find(($) => $.id === x)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
1567
|
-
return R && (R.style.pointerEvents = ""), S.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
1568
|
-
S.style.pointerEvents = "", l.style.pointerEvents = "";
|
|
1569
|
-
};
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
}, [a, n, x, l, s, p, h, O]), Z(() => {
|
|
1573
|
-
n || (A.current = void 0, L(), D());
|
|
1574
|
-
}, [n, L, D]), y.useEffect(() => () => {
|
|
1575
|
-
L(), clearTimeout(E.current), clearTimeout(k.current), D();
|
|
1576
|
-
}, [a, s, L, D]), y.useMemo(() => {
|
|
1577
|
-
if (!a)
|
|
1578
|
-
return {};
|
|
1579
|
-
function b(v) {
|
|
1580
|
-
A.current = v.pointerType;
|
|
1581
|
-
}
|
|
1582
|
-
return {
|
|
1583
|
-
reference: {
|
|
1584
|
-
onPointerDown: b,
|
|
1585
|
-
onPointerEnter: b,
|
|
1586
|
-
onMouseMove(v) {
|
|
1587
|
-
n || u === 0 || (clearTimeout(k.current), k.current = setTimeout(() => {
|
|
1588
|
-
B.current || r(!0, v.nativeEvent, "hover");
|
|
1589
|
-
}, u));
|
|
1590
|
-
}
|
|
1591
|
-
},
|
|
1592
|
-
floating: {
|
|
1593
|
-
onMouseEnter() {
|
|
1594
|
-
clearTimeout(E.current);
|
|
1595
|
-
},
|
|
1596
|
-
onMouseLeave(v) {
|
|
1597
|
-
F(v.nativeEvent, !1);
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
};
|
|
1601
|
-
}, [a, u, n, r, F]);
|
|
1602
|
-
}
|
|
1603
|
-
function We(e, t) {
|
|
1604
|
-
let n = e.filter((o) => {
|
|
1605
|
-
var i;
|
|
1606
|
-
return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
|
|
1607
|
-
}), r = n;
|
|
1608
|
-
for (; r.length; )
|
|
1609
|
-
r = e.filter((o) => {
|
|
1610
|
-
var i;
|
|
1611
|
-
return (i = r) == null ? void 0 : i.some((s) => {
|
|
1612
|
-
var l;
|
|
1613
|
-
return o.parentId === s.id && ((l = o.context) == null ? void 0 : l.open);
|
|
1614
|
-
});
|
|
1615
|
-
}), n = n.concat(r);
|
|
1616
|
-
return n;
|
|
1617
|
-
}
|
|
1618
|
-
const an = () => ({
|
|
1619
|
-
getShadowRoot: !0,
|
|
1620
|
-
displayCheck: (
|
|
1621
|
-
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
1622
|
-
// check if `ResizeObserver` is a real function (not polyfilled), which
|
|
1623
|
-
// determines if the current environment is JSDOM-like.
|
|
1624
|
-
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
1625
|
-
)
|
|
1626
|
-
});
|
|
1627
|
-
function un(e, t) {
|
|
1628
|
-
const n = cn(e, an());
|
|
1629
|
-
t === "prev" && n.reverse();
|
|
1630
|
-
const r = n.indexOf(vn(ue(e)));
|
|
1631
|
-
return n.slice(r + 1)[0];
|
|
1632
|
-
}
|
|
1633
|
-
function Pr() {
|
|
1634
|
-
return un(document.body, "next");
|
|
1635
|
-
}
|
|
1636
|
-
function Ar() {
|
|
1637
|
-
return un(document.body, "prev");
|
|
1638
|
-
}
|
|
1639
|
-
function Ge(e, t) {
|
|
1640
|
-
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
1641
|
-
return !r || !fe(n, r);
|
|
1642
|
-
}
|
|
1643
|
-
function Br(e) {
|
|
1644
|
-
cn(e, an()).forEach((n) => {
|
|
1645
|
-
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
function Or(e) {
|
|
1649
|
-
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
1650
|
-
const r = n.dataset.tabindex;
|
|
1651
|
-
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
const fn = {
|
|
1655
|
-
border: 0,
|
|
1656
|
-
clip: "rect(0 0 0 0)",
|
|
1657
|
-
height: "1px",
|
|
1658
|
-
margin: "-1px",
|
|
1659
|
-
overflow: "hidden",
|
|
1660
|
-
padding: 0,
|
|
1661
|
-
position: "fixed",
|
|
1662
|
-
whiteSpace: "nowrap",
|
|
1663
|
-
width: "1px",
|
|
1664
|
-
top: 0,
|
|
1665
|
-
left: 0
|
|
1666
|
-
};
|
|
1667
|
-
let Dr;
|
|
1668
|
-
function Et(e) {
|
|
1669
|
-
e.key === "Tab" && (e.target, clearTimeout(Dr));
|
|
1670
|
-
}
|
|
1671
|
-
const St = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
1672
|
-
const [r, o] = y.useState();
|
|
1673
|
-
Z(() => (xn() && o("button"), document.addEventListener("keydown", Et), () => {
|
|
1674
|
-
document.removeEventListener("keydown", Et);
|
|
1675
|
-
}), []);
|
|
1676
|
-
const i = {
|
|
1677
|
-
ref: n,
|
|
1678
|
-
tabIndex: 0,
|
|
1679
|
-
// Role is only for VoiceOver
|
|
1680
|
-
role: r,
|
|
1681
|
-
"aria-hidden": r ? void 0 : !0,
|
|
1682
|
-
[Ke("focus-guard")]: "",
|
|
1683
|
-
style: fn
|
|
1684
|
-
};
|
|
1685
|
-
return /* @__PURE__ */ y.createElement("span", nt({}, t, i));
|
|
1686
|
-
}), dn = /* @__PURE__ */ y.createContext(null), Ct = /* @__PURE__ */ Ke("portal");
|
|
1687
|
-
function Mr(e) {
|
|
1688
|
-
let {
|
|
1689
|
-
id: t,
|
|
1690
|
-
root: n
|
|
1691
|
-
} = e === void 0 ? {} : e;
|
|
1692
|
-
const [r, o] = y.useState(null), i = at(), s = Lr(), l = y.useRef(null);
|
|
1693
|
-
return Z(() => () => {
|
|
1694
|
-
r == null || r.remove(), queueMicrotask(() => {
|
|
1695
|
-
l.current = null;
|
|
1696
|
-
});
|
|
1697
|
-
}, [r]), Z(() => {
|
|
1698
|
-
if (l.current)
|
|
1699
|
-
return;
|
|
1700
|
-
const c = t ? document.getElementById(t) : null;
|
|
1701
|
-
if (!c)
|
|
1702
|
-
return;
|
|
1703
|
-
const a = document.createElement("div");
|
|
1704
|
-
a.id = i, a.setAttribute(Ct, ""), c.appendChild(a), l.current = a, o(a);
|
|
1705
|
-
}, [t, i]), Z(() => {
|
|
1706
|
-
if (l.current)
|
|
1707
|
-
return;
|
|
1708
|
-
let c = n || (s == null ? void 0 : s.portalNode);
|
|
1709
|
-
c && !N(c) && (c = c.current), c = c || document.body;
|
|
1710
|
-
let a = null;
|
|
1711
|
-
t && (a = document.createElement("div"), a.id = t, c.appendChild(a));
|
|
1712
|
-
const g = document.createElement("div");
|
|
1713
|
-
g.id = i, g.setAttribute(Ct, ""), c = a || c, c.appendChild(g), l.current = g, o(g);
|
|
1714
|
-
}, [t, n, i, s]), r;
|
|
1715
|
-
}
|
|
1716
|
-
function ko(e) {
|
|
1717
|
-
let {
|
|
1718
|
-
children: t,
|
|
1719
|
-
id: n,
|
|
1720
|
-
root: r = null,
|
|
1721
|
-
preserveTabOrder: o = !0
|
|
1722
|
-
} = e;
|
|
1723
|
-
const i = Mr({
|
|
1724
|
-
id: n,
|
|
1725
|
-
root: r
|
|
1726
|
-
}), [s, l] = y.useState(null), c = y.useRef(null), a = y.useRef(null), g = y.useRef(null), f = y.useRef(null), d = (
|
|
1727
|
-
// The FocusManager and therefore floating element are currently open/
|
|
1728
|
-
// rendered.
|
|
1729
|
-
!!s && // Guards are only for non-modal focus management.
|
|
1730
|
-
!s.modal && // Don't render if unmount is transitioning.
|
|
1731
|
-
s.open && o && !!(r || i)
|
|
1732
|
-
);
|
|
1733
|
-
return y.useEffect(() => {
|
|
1734
|
-
if (!i || !o || s != null && s.modal)
|
|
1735
|
-
return;
|
|
1736
|
-
function u(m) {
|
|
1737
|
-
i && Ge(m) && (m.type === "focusin" ? Or : Br)(i);
|
|
1738
|
-
}
|
|
1739
|
-
return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
|
|
1740
|
-
i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
|
|
1741
|
-
};
|
|
1742
|
-
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(dn.Provider, {
|
|
1743
|
-
value: y.useMemo(() => ({
|
|
1744
|
-
preserveTabOrder: o,
|
|
1745
|
-
beforeOutsideRef: c,
|
|
1746
|
-
afterOutsideRef: a,
|
|
1747
|
-
beforeInsideRef: g,
|
|
1748
|
-
afterInsideRef: f,
|
|
1749
|
-
portalNode: i,
|
|
1750
|
-
setFocusManagerState: l
|
|
1751
|
-
}), [o, i])
|
|
1752
|
-
}, d && i && /* @__PURE__ */ y.createElement(St, {
|
|
1753
|
-
"data-type": "outside",
|
|
1754
|
-
ref: c,
|
|
1755
|
-
onFocus: (u) => {
|
|
1756
|
-
if (Ge(u, i)) {
|
|
1757
|
-
var m;
|
|
1758
|
-
(m = g.current) == null || m.focus();
|
|
1759
|
-
} else {
|
|
1760
|
-
const p = Ar() || (s == null ? void 0 : s.refs.domReference.current);
|
|
1761
|
-
p == null || p.focus();
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
}), d && i && /* @__PURE__ */ y.createElement("span", {
|
|
1765
|
-
"aria-owns": i.id,
|
|
1766
|
-
style: fn
|
|
1767
|
-
}), i && /* @__PURE__ */ hn(t, i), d && i && /* @__PURE__ */ y.createElement(St, {
|
|
1768
|
-
"data-type": "outside",
|
|
1769
|
-
ref: a,
|
|
1770
|
-
onFocus: (u) => {
|
|
1771
|
-
if (Ge(u, i)) {
|
|
1772
|
-
var m;
|
|
1773
|
-
(m = f.current) == null || m.focus();
|
|
1774
|
-
} else {
|
|
1775
|
-
const p = Pr() || (s == null ? void 0 : s.refs.domReference.current);
|
|
1776
|
-
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, u.nativeEvent));
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
}));
|
|
1780
|
-
}
|
|
1781
|
-
const Lr = () => y.useContext(dn);
|
|
1782
|
-
function kt(e) {
|
|
1783
|
-
return U(e.target) && e.target.tagName === "BUTTON";
|
|
1784
|
-
}
|
|
1785
|
-
function Tt(e) {
|
|
1786
|
-
return Sn(e);
|
|
1787
|
-
}
|
|
1788
|
-
function To(e, t) {
|
|
1789
|
-
t === void 0 && (t = {});
|
|
1790
|
-
const {
|
|
1791
|
-
open: n,
|
|
1792
|
-
onOpenChange: r,
|
|
1793
|
-
dataRef: o,
|
|
1794
|
-
elements: {
|
|
1795
|
-
domReference: i
|
|
1796
|
-
}
|
|
1797
|
-
} = e, {
|
|
1798
|
-
enabled: s = !0,
|
|
1799
|
-
event: l = "click",
|
|
1800
|
-
toggle: c = !0,
|
|
1801
|
-
ignoreMouse: a = !1,
|
|
1802
|
-
keyboardHandlers: g = !0
|
|
1803
|
-
} = t, f = y.useRef(), d = y.useRef(!1);
|
|
1804
|
-
return y.useMemo(() => s ? {
|
|
1805
|
-
reference: {
|
|
1806
|
-
onPointerDown(u) {
|
|
1807
|
-
f.current = u.pointerType;
|
|
1808
|
-
},
|
|
1809
|
-
onMouseDown(u) {
|
|
1810
|
-
u.button === 0 && (Ne(f.current, !0) && a || l !== "click" && (n && c && (!o.current.openEvent || o.current.openEvent.type === "mousedown") ? r(!1, u.nativeEvent, "click") : (u.preventDefault(), r(!0, u.nativeEvent, "click"))));
|
|
1811
|
-
},
|
|
1812
|
-
onClick(u) {
|
|
1813
|
-
if (l === "mousedown" && f.current) {
|
|
1814
|
-
f.current = void 0;
|
|
1815
|
-
return;
|
|
1816
|
-
}
|
|
1817
|
-
Ne(f.current, !0) && a || (n && c && (!o.current.openEvent || o.current.openEvent.type === "click") ? r(!1, u.nativeEvent, "click") : r(!0, u.nativeEvent, "click"));
|
|
1818
|
-
},
|
|
1819
|
-
onKeyDown(u) {
|
|
1820
|
-
f.current = void 0, !(u.defaultPrevented || !g || kt(u)) && (u.key === " " && !Tt(i) && (u.preventDefault(), d.current = !0), u.key === "Enter" && r(!(n && c), u.nativeEvent, "click"));
|
|
1821
|
-
},
|
|
1822
|
-
onKeyUp(u) {
|
|
1823
|
-
u.defaultPrevented || !g || kt(u) || Tt(i) || u.key === " " && d.current && (d.current = !1, r(!(n && c), u.nativeEvent, "click"));
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
} : {}, [s, o, l, a, g, i, c, n, r]);
|
|
1827
|
-
}
|
|
1828
|
-
const Fr = {
|
|
1829
|
-
pointerdown: "onPointerDown",
|
|
1830
|
-
mousedown: "onMouseDown",
|
|
1831
|
-
click: "onClick"
|
|
1832
|
-
}, $r = {
|
|
1833
|
-
pointerdown: "onPointerDownCapture",
|
|
1834
|
-
mousedown: "onMouseDownCapture",
|
|
1835
|
-
click: "onClickCapture"
|
|
1836
|
-
}, It = (e) => {
|
|
1837
|
-
var t, n;
|
|
1838
|
-
return {
|
|
1839
|
-
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
1840
|
-
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
1841
|
-
};
|
|
1842
|
-
};
|
|
1843
|
-
function Io(e, t) {
|
|
1844
|
-
t === void 0 && (t = {});
|
|
1845
|
-
const {
|
|
1846
|
-
open: n,
|
|
1847
|
-
onOpenChange: r,
|
|
1848
|
-
nodeId: o,
|
|
1849
|
-
elements: {
|
|
1850
|
-
reference: i,
|
|
1851
|
-
domReference: s,
|
|
1852
|
-
floating: l
|
|
1853
|
-
},
|
|
1854
|
-
dataRef: c
|
|
1855
|
-
} = e, {
|
|
1856
|
-
enabled: a = !0,
|
|
1857
|
-
escapeKey: g = !0,
|
|
1858
|
-
outsidePress: f = !0,
|
|
1859
|
-
outsidePressEvent: d = "pointerdown",
|
|
1860
|
-
referencePress: u = !1,
|
|
1861
|
-
referencePressEvent: m = "pointerdown",
|
|
1862
|
-
ancestorScroll: p = !1,
|
|
1863
|
-
bubbles: x,
|
|
1864
|
-
capture: h
|
|
1865
|
-
} = t, w = ft(), A = Re(typeof f == "function" ? f : () => !1), E = typeof f == "function" ? A : f, T = y.useRef(!1), k = y.useRef(!1), {
|
|
1866
|
-
escapeKey: B,
|
|
1867
|
-
outsidePress: I
|
|
1868
|
-
} = It(x), {
|
|
1869
|
-
escapeKey: M,
|
|
1870
|
-
outsidePress: O
|
|
1871
|
-
} = It(h), F = Re((v) => {
|
|
1872
|
-
if (!n || !a || !g || v.key !== "Escape")
|
|
1873
|
-
return;
|
|
1874
|
-
const P = w ? We(w.nodesRef.current, o) : [];
|
|
1875
|
-
if (!B && (v.stopPropagation(), P.length > 0)) {
|
|
1876
|
-
let S = !0;
|
|
1877
|
-
if (P.forEach((R) => {
|
|
1878
|
-
var $;
|
|
1879
|
-
if (($ = R.context) != null && $.open && !R.context.dataRef.current.__escapeKeyBubbles) {
|
|
1880
|
-
S = !1;
|
|
1881
|
-
return;
|
|
1882
|
-
}
|
|
1883
|
-
}), !S)
|
|
1884
|
-
return;
|
|
1885
|
-
}
|
|
1886
|
-
r(!1, wn(v) ? v.nativeEvent : v, "escape-key");
|
|
1887
|
-
}), L = Re((v) => {
|
|
1888
|
-
var P;
|
|
1889
|
-
const S = () => {
|
|
1890
|
-
var R;
|
|
1891
|
-
F(v), (R = we(v)) == null || R.removeEventListener("keydown", S);
|
|
1892
|
-
};
|
|
1893
|
-
(P = we(v)) == null || P.addEventListener("keydown", S);
|
|
1894
|
-
}), D = Re((v) => {
|
|
1895
|
-
const P = T.current;
|
|
1896
|
-
T.current = !1;
|
|
1897
|
-
const S = k.current;
|
|
1898
|
-
if (k.current = !1, d === "click" && S || P || typeof E == "function" && !E(v))
|
|
1899
|
-
return;
|
|
1900
|
-
const R = we(v), $ = "[" + Ke("inert") + "]", Y = ue(l).querySelectorAll($);
|
|
1901
|
-
let X = N(R) ? R : null;
|
|
1902
|
-
for (; X && !ke(X); ) {
|
|
1903
|
-
const z = me(X);
|
|
1904
|
-
if (ke(z) || !N(z))
|
|
1905
|
-
break;
|
|
1906
|
-
X = z;
|
|
1907
|
-
}
|
|
1908
|
-
if (Y.length && N(R) && !Rn(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
1909
|
-
!fe(R, l) && // If the target root element contains none of the markers, then the
|
|
1910
|
-
// element was injected after the floating element rendered.
|
|
1911
|
-
Array.from(Y).every((z) => !fe(X, z)))
|
|
1912
|
-
return;
|
|
1913
|
-
if (U(R) && l) {
|
|
1914
|
-
const z = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, K = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
|
|
1915
|
-
let se = K && v.offsetX > R.clientWidth;
|
|
1916
|
-
if (K && G(R).direction === "rtl" && (se = v.offsetX <= R.offsetWidth - R.clientWidth), se || z && v.offsetY > R.clientHeight)
|
|
1917
|
-
return;
|
|
1918
|
-
}
|
|
1919
|
-
const he = w && We(w.nodesRef.current, o).some((z) => {
|
|
1920
|
-
var K;
|
|
1921
|
-
return Xe(v, (K = z.context) == null ? void 0 : K.elements.floating);
|
|
1922
|
-
});
|
|
1923
|
-
if (Xe(v, l) || Xe(v, s) || he)
|
|
1924
|
-
return;
|
|
1925
|
-
const ie = w ? We(w.nodesRef.current, o) : [];
|
|
1926
|
-
if (ie.length > 0) {
|
|
1927
|
-
let z = !0;
|
|
1928
|
-
if (ie.forEach((K) => {
|
|
1929
|
-
var se;
|
|
1930
|
-
if ((se = K.context) != null && se.open && !K.context.dataRef.current.__outsidePressBubbles) {
|
|
1931
|
-
z = !1;
|
|
1932
|
-
return;
|
|
1933
|
-
}
|
|
1934
|
-
}), !z)
|
|
1935
|
-
return;
|
|
1936
|
-
}
|
|
1937
|
-
r(!1, v, "outside-press");
|
|
1938
|
-
}), b = Re((v) => {
|
|
1939
|
-
var P;
|
|
1940
|
-
const S = () => {
|
|
1941
|
-
var R;
|
|
1942
|
-
D(v), (R = we(v)) == null || R.removeEventListener(d, S);
|
|
1943
|
-
};
|
|
1944
|
-
(P = we(v)) == null || P.addEventListener(d, S);
|
|
1945
|
-
});
|
|
1946
|
-
return y.useEffect(() => {
|
|
1947
|
-
if (!n || !a)
|
|
1948
|
-
return;
|
|
1949
|
-
c.current.__escapeKeyBubbles = B, c.current.__outsidePressBubbles = I;
|
|
1950
|
-
function v(R) {
|
|
1951
|
-
r(!1, R, "ancestor-scroll");
|
|
1952
|
-
}
|
|
1953
|
-
const P = ue(l);
|
|
1954
|
-
g && P.addEventListener("keydown", M ? L : F, M), E && P.addEventListener(d, O ? b : D, O);
|
|
1955
|
-
let S = [];
|
|
1956
|
-
return p && (N(s) && (S = ne(s)), N(l) && (S = S.concat(ne(l))), !N(i) && i && i.contextElement && (S = S.concat(ne(i.contextElement)))), S = S.filter((R) => {
|
|
1957
|
-
var $;
|
|
1958
|
-
return R !== (($ = P.defaultView) == null ? void 0 : $.visualViewport);
|
|
1959
|
-
}), S.forEach((R) => {
|
|
1960
|
-
R.addEventListener("scroll", v, {
|
|
1961
|
-
passive: !0
|
|
1962
|
-
});
|
|
1963
|
-
}), () => {
|
|
1964
|
-
g && P.removeEventListener("keydown", M ? L : F, M), E && P.removeEventListener(d, O ? b : D, O), S.forEach((R) => {
|
|
1965
|
-
R.removeEventListener("scroll", v);
|
|
1966
|
-
});
|
|
1967
|
-
};
|
|
1968
|
-
}, [c, l, s, i, g, E, d, n, r, p, a, B, I, F, M, L, D, O, b]), y.useEffect(() => {
|
|
1969
|
-
T.current = !1;
|
|
1970
|
-
}, [E, d]), y.useMemo(() => a ? {
|
|
1971
|
-
reference: {
|
|
1972
|
-
onKeyDown: F,
|
|
1973
|
-
[Fr[m]]: (v) => {
|
|
1974
|
-
u && r(!1, v.nativeEvent, "reference-press");
|
|
1975
|
-
}
|
|
1976
|
-
},
|
|
1977
|
-
floating: {
|
|
1978
|
-
onKeyDown: F,
|
|
1979
|
-
onMouseDown() {
|
|
1980
|
-
k.current = !0;
|
|
1981
|
-
},
|
|
1982
|
-
onMouseUp() {
|
|
1983
|
-
k.current = !0;
|
|
1984
|
-
},
|
|
1985
|
-
[$r[d]]: () => {
|
|
1986
|
-
T.current = !0;
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
} : {}, [a, u, d, m, r, F]);
|
|
1990
|
-
}
|
|
1991
|
-
let rt;
|
|
1992
|
-
process.env.NODE_ENV !== "production" && (rt = /* @__PURE__ */ new Set());
|
|
1993
|
-
function Po(e) {
|
|
1994
|
-
var t;
|
|
1995
|
-
e === void 0 && (e = {});
|
|
1996
|
-
const {
|
|
1997
|
-
open: n = !1,
|
|
1998
|
-
onOpenChange: r,
|
|
1999
|
-
nodeId: o
|
|
2000
|
-
} = e;
|
|
2001
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2002
|
-
var i;
|
|
2003
|
-
const I = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
2004
|
-
if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
|
|
2005
|
-
var s;
|
|
2006
|
-
if (!((s = rt) != null && s.has(I))) {
|
|
2007
|
-
var l;
|
|
2008
|
-
(l = rt) == null || l.add(I), console.error(I);
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
const [c, a] = y.useState(null), g = ((t = e.elements) == null ? void 0 : t.reference) || c, f = nr(e), d = ft(), u = ut() != null, m = Re((I, M, O) => {
|
|
2013
|
-
I && (x.current.openEvent = M), h.emit("openchange", {
|
|
2014
|
-
open: I,
|
|
2015
|
-
event: M,
|
|
2016
|
-
reason: O,
|
|
2017
|
-
nested: u
|
|
2018
|
-
}), r == null || r(I, M, O);
|
|
2019
|
-
}), p = y.useRef(null), x = y.useRef({}), h = y.useState(() => kr())[0], w = at(), A = y.useCallback((I) => {
|
|
2020
|
-
const M = N(I) ? {
|
|
2021
|
-
getBoundingClientRect: () => I.getBoundingClientRect(),
|
|
2022
|
-
contextElement: I
|
|
2023
|
-
} : I;
|
|
2024
|
-
f.refs.setReference(M);
|
|
2025
|
-
}, [f.refs]), E = y.useCallback((I) => {
|
|
2026
|
-
(N(I) || I === null) && (p.current = I, a(I)), (N(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
2027
|
-
// `null` to support `positionReference` + an unstable `reference`
|
|
2028
|
-
// callback ref.
|
|
2029
|
-
I !== null && !N(I)) && f.refs.setReference(I);
|
|
2030
|
-
}, [f.refs]), T = y.useMemo(() => ({
|
|
2031
|
-
...f.refs,
|
|
2032
|
-
setReference: E,
|
|
2033
|
-
setPositionReference: A,
|
|
2034
|
-
domReference: p
|
|
2035
|
-
}), [f.refs, E, A]), k = y.useMemo(() => ({
|
|
2036
|
-
...f.elements,
|
|
2037
|
-
domReference: g
|
|
2038
|
-
}), [f.elements, g]), B = y.useMemo(() => ({
|
|
2039
|
-
...f,
|
|
2040
|
-
refs: T,
|
|
2041
|
-
elements: k,
|
|
2042
|
-
dataRef: x,
|
|
2043
|
-
nodeId: o,
|
|
2044
|
-
floatingId: w,
|
|
2045
|
-
events: h,
|
|
2046
|
-
open: n,
|
|
2047
|
-
onOpenChange: m
|
|
2048
|
-
}), [f, o, w, h, n, m, T, k]);
|
|
2049
|
-
return Z(() => {
|
|
2050
|
-
const I = d == null ? void 0 : d.nodesRef.current.find((M) => M.id === o);
|
|
2051
|
-
I && (I.context = B);
|
|
2052
|
-
}), y.useMemo(() => ({
|
|
2053
|
-
...f,
|
|
2054
|
-
context: B,
|
|
2055
|
-
refs: T,
|
|
2056
|
-
elements: k
|
|
2057
|
-
}), [f, T, k, B]);
|
|
2058
|
-
}
|
|
2059
|
-
const Pt = "active", At = "selected";
|
|
2060
|
-
function Ze(e, t, n) {
|
|
2061
|
-
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
2062
|
-
let i = e;
|
|
2063
|
-
if (o && e) {
|
|
2064
|
-
const {
|
|
2065
|
-
[Pt]: s,
|
|
2066
|
-
[At]: l,
|
|
2067
|
-
...c
|
|
2068
|
-
} = e;
|
|
2069
|
-
i = c;
|
|
2070
|
-
}
|
|
2071
|
-
return {
|
|
2072
|
-
...n === "floating" && {
|
|
2073
|
-
tabIndex: -1
|
|
2074
|
-
},
|
|
2075
|
-
...i,
|
|
2076
|
-
...t.map((s) => {
|
|
2077
|
-
const l = s ? s[n] : null;
|
|
2078
|
-
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2079
|
-
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((c) => {
|
|
2080
|
-
let [a, g] = c;
|
|
2081
|
-
if (!(o && [Pt, At].includes(a)))
|
|
2082
|
-
if (a.indexOf("on") === 0) {
|
|
2083
|
-
if (r.has(a) || r.set(a, []), typeof g == "function") {
|
|
2084
|
-
var f;
|
|
2085
|
-
(f = r.get(a)) == null || f.push(g), s[a] = function() {
|
|
2086
|
-
for (var d, u = arguments.length, m = new Array(u), p = 0; p < u; p++)
|
|
2087
|
-
m[p] = arguments[p];
|
|
2088
|
-
return (d = r.get(a)) == null ? void 0 : d.map((x) => x(...m)).find((x) => x !== void 0);
|
|
2089
|
-
};
|
|
2090
|
-
}
|
|
2091
|
-
} else
|
|
2092
|
-
s[a] = g;
|
|
2093
|
-
}), s), {})
|
|
2094
|
-
};
|
|
2095
|
-
}
|
|
2096
|
-
function Ao(e) {
|
|
2097
|
-
e === void 0 && (e = []);
|
|
2098
|
-
const t = e, n = y.useCallback((i) => Ze(i, e, "reference"), t), r = y.useCallback((i) => Ze(i, e, "floating"), t), o = y.useCallback(
|
|
2099
|
-
(i) => Ze(i, e, "item"),
|
|
2100
|
-
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2101
|
-
// should be as referentially stable as possible since it may be passed as
|
|
2102
|
-
// a prop to many components. All `item` key values must therefore be
|
|
2103
|
-
// memoized.
|
|
2104
|
-
e.map((i) => i == null ? void 0 : i.item)
|
|
2105
|
-
);
|
|
2106
|
-
return y.useMemo(() => ({
|
|
2107
|
-
getReferenceProps: n,
|
|
2108
|
-
getFloatingProps: r,
|
|
2109
|
-
getItemProps: o
|
|
2110
|
-
}), [n, r, o]);
|
|
2111
|
-
}
|
|
2112
|
-
const Wr = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2113
|
-
function Bo(e, t) {
|
|
2114
|
-
var n;
|
|
2115
|
-
t === void 0 && (t = {});
|
|
2116
|
-
const {
|
|
2117
|
-
open: r,
|
|
2118
|
-
floatingId: o
|
|
2119
|
-
} = e, {
|
|
2120
|
-
enabled: i = !0,
|
|
2121
|
-
role: s = "dialog"
|
|
2122
|
-
} = t, l = (n = Wr.get(s)) != null ? n : s, c = at(), g = ut() != null;
|
|
2123
|
-
return y.useMemo(() => {
|
|
2124
|
-
if (!i)
|
|
2125
|
-
return {};
|
|
2126
|
-
const f = {
|
|
2127
|
-
id: o,
|
|
2128
|
-
...l && {
|
|
2129
|
-
role: l
|
|
2130
|
-
}
|
|
2131
|
-
};
|
|
2132
|
-
return l === "tooltip" || s === "label" ? {
|
|
2133
|
-
reference: {
|
|
2134
|
-
["aria-" + (s === "label" ? "labelledby" : "describedby")]: r ? o : void 0
|
|
2135
|
-
},
|
|
2136
|
-
floating: f
|
|
2137
|
-
} : {
|
|
2138
|
-
reference: {
|
|
2139
|
-
"aria-expanded": r ? "true" : "false",
|
|
2140
|
-
"aria-haspopup": l === "alertdialog" ? "dialog" : l,
|
|
2141
|
-
"aria-controls": r ? o : void 0,
|
|
2142
|
-
...l === "listbox" && {
|
|
2143
|
-
role: "combobox"
|
|
2144
|
-
},
|
|
2145
|
-
...l === "menu" && {
|
|
2146
|
-
id: c
|
|
2147
|
-
},
|
|
2148
|
-
...l === "menu" && g && {
|
|
2149
|
-
role: "menuitem"
|
|
2150
|
-
},
|
|
2151
|
-
...s === "select" && {
|
|
2152
|
-
"aria-autocomplete": "none"
|
|
2153
|
-
},
|
|
2154
|
-
...s === "combobox" && {
|
|
2155
|
-
"aria-autocomplete": "list"
|
|
2156
|
-
}
|
|
2157
|
-
},
|
|
2158
|
-
floating: {
|
|
2159
|
-
...f,
|
|
2160
|
-
...l === "menu" && {
|
|
2161
|
-
"aria-labelledby": c
|
|
2162
|
-
}
|
|
2163
|
-
},
|
|
2164
|
-
item(d) {
|
|
2165
|
-
let {
|
|
2166
|
-
active: u,
|
|
2167
|
-
selected: m
|
|
2168
|
-
} = d;
|
|
2169
|
-
const p = {
|
|
2170
|
-
role: "option",
|
|
2171
|
-
...u && {
|
|
2172
|
-
id: o + "-option"
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2175
|
-
switch (s) {
|
|
2176
|
-
case "select":
|
|
2177
|
-
return {
|
|
2178
|
-
...p,
|
|
2179
|
-
"aria-selected": u && m
|
|
2180
|
-
};
|
|
2181
|
-
case "combobox":
|
|
2182
|
-
return {
|
|
2183
|
-
...p,
|
|
2184
|
-
...u && {
|
|
2185
|
-
"aria-selected": !0
|
|
2186
|
-
}
|
|
2187
|
-
};
|
|
2188
|
-
}
|
|
2189
|
-
return {};
|
|
2190
|
-
}
|
|
2191
|
-
};
|
|
2192
|
-
}, [i, s, l, r, o, c, g]);
|
|
2193
|
-
}
|
|
2194
|
-
const Bt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
2195
|
-
function ve(e, t) {
|
|
2196
|
-
return typeof e == "function" ? e(t) : e;
|
|
2197
|
-
}
|
|
2198
|
-
function Nr(e, t) {
|
|
2199
|
-
const [n, r] = y.useState(e);
|
|
2200
|
-
return e && !n && r(!0), y.useEffect(() => {
|
|
2201
|
-
if (!e) {
|
|
2202
|
-
const o = setTimeout(() => r(!1), t);
|
|
2203
|
-
return () => clearTimeout(o);
|
|
2204
|
-
}
|
|
2205
|
-
}, [e, t]), n;
|
|
2206
|
-
}
|
|
2207
|
-
function jr(e, t) {
|
|
2208
|
-
t === void 0 && (t = {});
|
|
2209
|
-
const {
|
|
2210
|
-
open: n,
|
|
2211
|
-
elements: {
|
|
2212
|
-
floating: r
|
|
2213
|
-
}
|
|
2214
|
-
} = e, {
|
|
2215
|
-
duration: o = 250
|
|
2216
|
-
} = t, s = (typeof o == "number" ? o : o.close) || 0, [l, c] = y.useState(!1), [a, g] = y.useState("unmounted"), f = Nr(n, s);
|
|
2217
|
-
return Z(() => {
|
|
2218
|
-
l && !f && g("unmounted");
|
|
2219
|
-
}, [l, f]), Z(() => {
|
|
2220
|
-
if (r) {
|
|
2221
|
-
if (n) {
|
|
2222
|
-
g("initial");
|
|
2223
|
-
const d = requestAnimationFrame(() => {
|
|
2224
|
-
g("open");
|
|
2225
|
-
});
|
|
2226
|
-
return () => {
|
|
2227
|
-
cancelAnimationFrame(d);
|
|
2228
|
-
};
|
|
2229
|
-
}
|
|
2230
|
-
c(!0), g("close");
|
|
2231
|
-
}
|
|
2232
|
-
}, [n, r]), {
|
|
2233
|
-
isMounted: f,
|
|
2234
|
-
status: a
|
|
2235
|
-
};
|
|
2236
|
-
}
|
|
2237
|
-
function Oo(e, t) {
|
|
2238
|
-
t === void 0 && (t = {});
|
|
2239
|
-
const {
|
|
2240
|
-
initial: n = {
|
|
2241
|
-
opacity: 0
|
|
2242
|
-
},
|
|
2243
|
-
open: r,
|
|
2244
|
-
close: o,
|
|
2245
|
-
common: i,
|
|
2246
|
-
duration: s = 250
|
|
2247
|
-
} = t, l = e.placement, c = l.split("-")[0], a = y.useMemo(() => ({
|
|
2248
|
-
side: c,
|
|
2249
|
-
placement: l
|
|
2250
|
-
}), [c, l]), g = typeof s == "number", f = (g ? s : s.open) || 0, d = (g ? s : s.close) || 0, [u, m] = y.useState(() => ({
|
|
2251
|
-
...ve(i, a),
|
|
2252
|
-
...ve(n, a)
|
|
2253
|
-
})), {
|
|
2254
|
-
isMounted: p,
|
|
2255
|
-
status: x
|
|
2256
|
-
} = jr(e, {
|
|
2257
|
-
duration: s
|
|
2258
|
-
}), h = Ee(n), w = Ee(r), A = Ee(o), E = Ee(i);
|
|
2259
|
-
return Z(() => {
|
|
2260
|
-
const T = ve(h.current, a), k = ve(A.current, a), B = ve(E.current, a), I = ve(w.current, a) || Object.keys(T).reduce((M, O) => (M[O] = "", M), {});
|
|
2261
|
-
if (x === "initial" && m((M) => ({
|
|
2262
|
-
transitionProperty: M.transitionProperty,
|
|
2263
|
-
...B,
|
|
2264
|
-
...T
|
|
2265
|
-
})), x === "open" && m({
|
|
2266
|
-
transitionProperty: Object.keys(I).map(Bt).join(","),
|
|
2267
|
-
transitionDuration: f + "ms",
|
|
2268
|
-
...B,
|
|
2269
|
-
...I
|
|
2270
|
-
}), x === "close") {
|
|
2271
|
-
const M = k || T;
|
|
2272
|
-
m({
|
|
2273
|
-
transitionProperty: Object.keys(M).map(Bt).join(","),
|
|
2274
|
-
transitionDuration: d + "ms",
|
|
2275
|
-
...B,
|
|
2276
|
-
...M
|
|
2277
|
-
});
|
|
2278
|
-
}
|
|
2279
|
-
}, [d, A, h, w, E, f, x, a]), {
|
|
2280
|
-
isMounted: p,
|
|
2281
|
-
styles: u
|
|
2282
|
-
};
|
|
2283
|
-
}
|
|
2284
|
-
function Ot(e, t) {
|
|
2285
|
-
const [n, r] = e;
|
|
2286
|
-
let o = !1;
|
|
2287
|
-
const i = t.length;
|
|
2288
|
-
for (let s = 0, l = i - 1; s < i; l = s++) {
|
|
2289
|
-
const [c, a] = t[s] || [0, 0], [g, f] = t[l] || [0, 0];
|
|
2290
|
-
a >= r != f >= r && n <= (g - c) * (r - a) / (f - a) + c && (o = !o);
|
|
2291
|
-
}
|
|
2292
|
-
return o;
|
|
2293
|
-
}
|
|
2294
|
-
function zr(e, t) {
|
|
2295
|
-
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
2296
|
-
}
|
|
2297
|
-
function Do(e) {
|
|
2298
|
-
e === void 0 && (e = {});
|
|
2299
|
-
const {
|
|
2300
|
-
buffer: t = 0.5,
|
|
2301
|
-
blockPointerEvents: n = !1,
|
|
2302
|
-
requireIntent: r = !0
|
|
2303
|
-
} = e;
|
|
2304
|
-
let o, i = !1, s = null, l = null, c = performance.now();
|
|
2305
|
-
function a(f, d) {
|
|
2306
|
-
const u = performance.now(), m = u - c;
|
|
2307
|
-
if (s === null || l === null || m === 0)
|
|
2308
|
-
return s = f, l = d, c = u, null;
|
|
2309
|
-
const p = f - s, x = d - l, w = Math.sqrt(p * p + x * x) / m;
|
|
2310
|
-
return s = f, l = d, c = u, w;
|
|
2311
|
-
}
|
|
2312
|
-
const g = (f) => {
|
|
2313
|
-
let {
|
|
2314
|
-
x: d,
|
|
2315
|
-
y: u,
|
|
2316
|
-
placement: m,
|
|
2317
|
-
elements: p,
|
|
2318
|
-
onClose: x,
|
|
2319
|
-
nodeId: h,
|
|
2320
|
-
tree: w
|
|
2321
|
-
} = f;
|
|
2322
|
-
return function(E) {
|
|
2323
|
-
function T() {
|
|
2324
|
-
clearTimeout(o), x();
|
|
2325
|
-
}
|
|
2326
|
-
if (clearTimeout(o), !p.domReference || !p.floating || m == null || d == null || u == null)
|
|
2327
|
-
return;
|
|
2328
|
-
const {
|
|
2329
|
-
clientX: k,
|
|
2330
|
-
clientY: B
|
|
2331
|
-
} = E, I = [k, B], M = we(E), O = E.type === "mouseleave", F = fe(p.floating, M), L = fe(p.domReference, M), D = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = m.split("-")[0], P = d > b.right - b.width / 2, S = u > b.bottom - b.height / 2, R = zr(I, D), $ = b.width > D.width, Y = b.height > D.height, X = ($ ? D : b).left, he = ($ ? D : b).right, ie = (Y ? D : b).top, z = (Y ? D : b).bottom;
|
|
2332
|
-
if (F && (i = !0, !O))
|
|
2333
|
-
return;
|
|
2334
|
-
if (L && (i = !1), L && !O) {
|
|
2335
|
-
i = !0;
|
|
2336
|
-
return;
|
|
2337
|
-
}
|
|
2338
|
-
if (O && N(E.relatedTarget) && fe(p.floating, E.relatedTarget) || w && We(w.nodesRef.current, h).some((le) => {
|
|
2339
|
-
let {
|
|
2340
|
-
context: j
|
|
2341
|
-
} = le;
|
|
2342
|
-
return j == null ? void 0 : j.open;
|
|
2343
|
-
}))
|
|
2344
|
-
return;
|
|
2345
|
-
if (v === "top" && u >= D.bottom - 1 || v === "bottom" && u <= D.top + 1 || v === "left" && d >= D.right - 1 || v === "right" && d <= D.left + 1)
|
|
2346
|
-
return T();
|
|
2347
|
-
let K = [];
|
|
2348
|
-
switch (v) {
|
|
2349
|
-
case "top":
|
|
2350
|
-
K = [[X, D.top + 1], [X, b.bottom - 1], [he, b.bottom - 1], [he, D.top + 1]];
|
|
2351
|
-
break;
|
|
2352
|
-
case "bottom":
|
|
2353
|
-
K = [[X, b.top + 1], [X, D.bottom - 1], [he, D.bottom - 1], [he, b.top + 1]];
|
|
2354
|
-
break;
|
|
2355
|
-
case "left":
|
|
2356
|
-
K = [[b.right - 1, z], [b.right - 1, ie], [D.left + 1, ie], [D.left + 1, z]];
|
|
2357
|
-
break;
|
|
2358
|
-
case "right":
|
|
2359
|
-
K = [[D.right - 1, z], [D.right - 1, ie], [b.left + 1, ie], [b.left + 1, z]];
|
|
2360
|
-
break;
|
|
2361
|
-
}
|
|
2362
|
-
function se(le) {
|
|
2363
|
-
let [j, V] = le;
|
|
2364
|
-
switch (v) {
|
|
2365
|
-
case "top": {
|
|
2366
|
-
const ce = [$ ? j + t / 2 : P ? j + t * 4 : j - t * 4, V + t + 1], ae = [$ ? j - t / 2 : P ? j + t * 4 : j - t * 4, V + t + 1], be = [[b.left, P || $ ? b.bottom - t : b.top], [b.right, P ? $ ? b.bottom - t : b.top : b.bottom - t]];
|
|
2367
|
-
return [ce, ae, ...be];
|
|
2368
|
-
}
|
|
2369
|
-
case "bottom": {
|
|
2370
|
-
const ce = [$ ? j + t / 2 : P ? j + t * 4 : j - t * 4, V - t], ae = [$ ? j - t / 2 : P ? j + t * 4 : j - t * 4, V - t], be = [[b.left, P || $ ? b.top + t : b.bottom], [b.right, P ? $ ? b.top + t : b.bottom : b.top + t]];
|
|
2371
|
-
return [ce, ae, ...be];
|
|
2372
|
-
}
|
|
2373
|
-
case "left": {
|
|
2374
|
-
const ce = [j + t + 1, Y ? V + t / 2 : S ? V + t * 4 : V - t * 4], ae = [j + t + 1, Y ? V - t / 2 : S ? V + t * 4 : V - t * 4];
|
|
2375
|
-
return [...[[S || Y ? b.right - t : b.left, b.top], [S ? Y ? b.right - t : b.left : b.right - t, b.bottom]], ce, ae];
|
|
2376
|
-
}
|
|
2377
|
-
case "right": {
|
|
2378
|
-
const ce = [j - t, Y ? V + t / 2 : S ? V + t * 4 : V - t * 4], ae = [j - t, Y ? V - t / 2 : S ? V + t * 4 : V - t * 4], be = [[S || Y ? b.left + t : b.right, b.top], [S ? Y ? b.left + t : b.right : b.left + t, b.bottom]];
|
|
2379
|
-
return [ce, ae, ...be];
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
if (!Ot([k, B], K)) {
|
|
2384
|
-
if (i && !R)
|
|
2385
|
-
return T();
|
|
2386
|
-
if (!O && r) {
|
|
2387
|
-
const le = a(E.clientX, E.clientY);
|
|
2388
|
-
if (le !== null && le < 0.1)
|
|
2389
|
-
return T();
|
|
2390
|
-
}
|
|
2391
|
-
Ot([k, B], se([d, u])) ? !i && r && (o = window.setTimeout(T, 40)) : T();
|
|
2392
|
-
}
|
|
2393
|
-
};
|
|
2394
|
-
};
|
|
2395
|
-
return g.__options = {
|
|
2396
|
-
blockPointerEvents: n
|
|
2397
|
-
}, g;
|
|
2398
|
-
}
|
|
2399
|
-
var W = "colors", H = "sizes", C = "space", Vr = { gap: C, gridGap: C, columnGap: C, gridColumnGap: C, rowGap: C, gridRowGap: C, inset: C, insetBlock: C, insetBlockEnd: C, insetBlockStart: C, insetInline: C, insetInlineEnd: C, insetInlineStart: C, margin: C, marginTop: C, marginRight: C, marginBottom: C, marginLeft: C, marginBlock: C, marginBlockEnd: C, marginBlockStart: C, marginInline: C, marginInlineEnd: C, marginInlineStart: C, padding: C, paddingTop: C, paddingRight: C, paddingBottom: C, paddingLeft: C, paddingBlock: C, paddingBlockEnd: C, paddingBlockStart: C, paddingInline: C, paddingInlineEnd: C, paddingInlineStart: C, top: C, right: C, bottom: C, left: C, scrollMargin: C, scrollMarginTop: C, scrollMarginRight: C, scrollMarginBottom: C, scrollMarginLeft: C, scrollMarginX: C, scrollMarginY: C, scrollMarginBlock: C, scrollMarginBlockEnd: C, scrollMarginBlockStart: C, scrollMarginInline: C, scrollMarginInlineEnd: C, scrollMarginInlineStart: C, scrollPadding: C, scrollPaddingTop: C, scrollPaddingRight: C, scrollPaddingBottom: C, scrollPaddingLeft: C, scrollPaddingX: C, scrollPaddingY: C, scrollPaddingBlock: C, scrollPaddingBlockEnd: C, scrollPaddingBlockStart: C, scrollPaddingInline: C, scrollPaddingInlineEnd: C, scrollPaddingInlineStart: C, fontSize: "fontSizes", background: W, backgroundColor: W, backgroundImage: W, borderImage: W, border: W, borderBlock: W, borderBlockEnd: W, borderBlockStart: W, borderBottom: W, borderBottomColor: W, borderColor: W, borderInline: W, borderInlineEnd: W, borderInlineStart: W, borderLeft: W, borderLeftColor: W, borderRight: W, borderRightColor: W, borderTop: W, borderTopColor: W, caretColor: W, color: W, columnRuleColor: W, fill: W, outline: W, outlineColor: W, stroke: W, textDecorationColor: W, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: H, minBlockSize: H, maxBlockSize: H, inlineSize: H, minInlineSize: H, maxInlineSize: H, width: H, minWidth: H, maxWidth: H, height: H, minHeight: H, maxHeight: H, flexBasis: H, gridTemplateColumns: H, gridTemplateRows: H, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, _r = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Ae = () => {
|
|
2400
|
-
const e = /* @__PURE__ */ Object.create(null);
|
|
2401
|
-
return (t, n, ...r) => {
|
|
2402
|
-
const o = ((i) => JSON.stringify(i, _r))(t);
|
|
2403
|
-
return o in e ? e[o] : e[o] = n(t, ...r);
|
|
2404
|
-
};
|
|
2405
|
-
}, de = Symbol.for("sxs.internal"), dt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Dt = (e) => {
|
|
2406
|
-
for (const t in e)
|
|
2407
|
-
return !0;
|
|
2408
|
-
return !1;
|
|
2409
|
-
}, { hasOwnProperty: Hr } = Object.prototype, ot = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Yr = /\s+(?![^()]*\))/, xe = (e) => (t) => e(...typeof t == "string" ? String(t).split(Yr) : [t]), Mt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: xe((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: xe((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: xe((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: xe((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: xe((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: xe((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, Je = /([\d.]+)([^]*)/, Kr = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, Xr = (e, t) => e in qr && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${ot(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${ot(e)}:${r}fit-content`) + i) : String(t), qr = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ee = (e) => e ? e + "-" : "", gn = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? ee(t) + (l.includes("$") ? "" : ee(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Ur = /\s*,\s*(?![^()]*\))/, Gr = Object.prototype.toString, Se = (e, t, n, r, o) => {
|
|
2410
|
-
let i, s, l;
|
|
2411
|
-
const c = (a, g, f) => {
|
|
2412
|
-
let d, u;
|
|
2413
|
-
const m = (p) => {
|
|
2414
|
-
for (d in p) {
|
|
2415
|
-
const w = d.charCodeAt(0) === 64, A = w && Array.isArray(p[d]) ? p[d] : [p[d]];
|
|
2416
|
-
for (u of A) {
|
|
2417
|
-
const E = /[A-Z]/.test(h = d) ? h : h.replace(/-[^]/g, (k) => k[1].toUpperCase()), T = typeof u == "object" && u && u.toString === Gr && (!r.utils[E] || !g.length);
|
|
2418
|
-
if (E in r.utils && !T) {
|
|
2419
|
-
const k = r.utils[E];
|
|
2420
|
-
if (k !== s) {
|
|
2421
|
-
s = k, m(k(u)), s = null;
|
|
2422
|
-
continue;
|
|
2423
|
-
}
|
|
2424
|
-
} else if (E in Mt) {
|
|
2425
|
-
const k = Mt[E];
|
|
2426
|
-
if (k !== l) {
|
|
2427
|
-
l = k, m(k(u)), l = null;
|
|
2428
|
-
continue;
|
|
2429
|
-
}
|
|
2430
|
-
}
|
|
2431
|
-
if (w && (x = d.slice(1) in r.media ? "@media " + r.media[d.slice(1)] : d, d = x.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (k, B, I, M, O, F) => {
|
|
2432
|
-
const L = Je.test(B), D = 0.0625 * (L ? -1 : 1), [b, v] = L ? [M, B] : [B, M];
|
|
2433
|
-
return "(" + (I[0] === "=" ? "" : I[0] === ">" === L ? "max-" : "min-") + b + ":" + (I[0] !== "=" && I.length === 1 ? v.replace(Je, (P, S, R) => Number(S) + D * (I === ">" ? 1 : -1) + R) : v) + (O ? ") and (" + (O[0] === ">" ? "min-" : "max-") + b + ":" + (O.length === 1 ? F.replace(Je, (P, S, R) => Number(S) + D * (O === ">" ? -1 : 1) + R) : F) : "") + ")";
|
|
2434
|
-
})), T) {
|
|
2435
|
-
const k = w ? f.concat(d) : [...f], B = w ? [...g] : Kr(g, d.split(Ur));
|
|
2436
|
-
i !== void 0 && o(Lt(...i)), i = void 0, c(u, B, k);
|
|
2437
|
-
} else
|
|
2438
|
-
i === void 0 && (i = [[], g, f]), d = w || d.charCodeAt(0) !== 36 ? d : `--${ee(r.prefix)}${d.slice(1).replace(/\$/g, "-")}`, u = T ? u : typeof u == "number" ? u && E in Zr ? String(u) + "px" : String(u) : gn(Xr(E, u ?? ""), r.prefix, r.themeMap[E]), i[0].push(`${w ? `${d} ` : `${ot(d)}:`}${u}`);
|
|
2439
|
-
}
|
|
2440
|
-
}
|
|
2441
|
-
var x, h;
|
|
2442
|
-
};
|
|
2443
|
-
m(a), i !== void 0 && o(Lt(...i)), i = void 0;
|
|
2444
|
-
};
|
|
2445
|
-
c(e, t, n);
|
|
2446
|
-
}, Lt = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, Zr = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ft = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ge = (e) => ((t) => {
|
|
2447
|
-
let n, r = "";
|
|
2448
|
-
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
2449
|
-
r = Ft(n % 52) + r;
|
|
2450
|
-
return Ft(n % 52) + r;
|
|
2451
|
-
})(((t, n) => {
|
|
2452
|
-
let r = n.length;
|
|
2453
|
-
for (; r; )
|
|
2454
|
-
t = 33 * t ^ n.charCodeAt(--r);
|
|
2455
|
-
return t;
|
|
2456
|
-
})(5381, JSON.stringify(e)) >>> 0), Oe = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Jr = (e) => {
|
|
2457
|
-
if (e.href && !e.href.startsWith(location.origin))
|
|
2458
|
-
return !1;
|
|
2459
|
-
try {
|
|
2460
|
-
return !!e.cssRules;
|
|
2461
|
-
} catch {
|
|
2462
|
-
return !1;
|
|
2463
|
-
}
|
|
2464
|
-
}, Qr = (e) => {
|
|
2465
|
-
let t;
|
|
2466
|
-
const n = () => {
|
|
2467
|
-
const { cssRules: o } = t.sheet;
|
|
2468
|
-
return [].map.call(o, (i, s) => {
|
|
2469
|
-
const { cssText: l } = i;
|
|
2470
|
-
let c = "";
|
|
2471
|
-
if (l.startsWith("--sxs"))
|
|
2472
|
-
return "";
|
|
2473
|
-
if (o[s - 1] && (c = o[s - 1].cssText).startsWith("--sxs")) {
|
|
2474
|
-
if (!i.cssRules.length)
|
|
2475
|
-
return "";
|
|
2476
|
-
for (const a in t.rules)
|
|
2477
|
-
if (t.rules[a].group === i)
|
|
2478
|
-
return `--sxs{--sxs:${[...t.rules[a].cache].join(" ")}}${l}`;
|
|
2479
|
-
return i.cssRules.length ? `${c}${l}` : "";
|
|
2480
|
-
}
|
|
2481
|
-
return l;
|
|
2482
|
-
}).join("");
|
|
2483
|
-
}, r = () => {
|
|
2484
|
-
if (t) {
|
|
2485
|
-
const { rules: l, sheet: c } = t;
|
|
2486
|
-
if (!c.deleteRule) {
|
|
2487
|
-
for (; Object(Object(c.cssRules)[0]).type === 3; )
|
|
2488
|
-
c.cssRules.splice(0, 1);
|
|
2489
|
-
c.cssRules = [];
|
|
2490
|
-
}
|
|
2491
|
-
for (const a in l)
|
|
2492
|
-
delete l[a];
|
|
2493
|
-
}
|
|
2494
|
-
const o = Object(e).styleSheets || [];
|
|
2495
|
-
for (const l of o)
|
|
2496
|
-
if (Jr(l)) {
|
|
2497
|
-
for (let c = 0, a = l.cssRules; a[c]; ++c) {
|
|
2498
|
-
const g = Object(a[c]);
|
|
2499
|
-
if (g.type !== 1)
|
|
2500
|
-
continue;
|
|
2501
|
-
const f = Object(a[c + 1]);
|
|
2502
|
-
if (f.type !== 4)
|
|
2503
|
-
continue;
|
|
2504
|
-
++c;
|
|
2505
|
-
const { cssText: d } = g;
|
|
2506
|
-
if (!d.startsWith("--sxs"))
|
|
2507
|
-
continue;
|
|
2508
|
-
const u = d.slice(14, -3).trim().split(/\s+/), m = Oe[u[0]];
|
|
2509
|
-
m && (t || (t = { sheet: l, reset: r, rules: {}, toString: n }), t.rules[m] = { group: f, index: c, cache: new Set(u) });
|
|
2510
|
-
}
|
|
2511
|
-
if (t)
|
|
2512
|
-
break;
|
|
2513
|
-
}
|
|
2514
|
-
if (!t) {
|
|
2515
|
-
const l = (c, a) => ({ type: a, cssRules: [], insertRule(g, f) {
|
|
2516
|
-
this.cssRules.splice(f, 0, l(g, { import: 3, undefined: 1 }[(g.toLowerCase().match(/^@([a-z]+)/) || [])[1]] || 4));
|
|
2517
|
-
}, get cssText() {
|
|
2518
|
-
return c === "@media{}" ? `@media{${[].map.call(this.cssRules, (g) => g.cssText).join("")}}` : c;
|
|
2519
|
-
} });
|
|
2520
|
-
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset: r, toString: n };
|
|
2521
|
-
}
|
|
2522
|
-
const { sheet: i, rules: s } = t;
|
|
2523
|
-
for (let l = Oe.length - 1; l >= 0; --l) {
|
|
2524
|
-
const c = Oe[l];
|
|
2525
|
-
if (!s[c]) {
|
|
2526
|
-
const a = Oe[l + 1], g = s[a] ? s[a].index : i.cssRules.length;
|
|
2527
|
-
i.insertRule("@media{}", g), i.insertRule(`--sxs{--sxs:${l}}`, g), s[c] = { group: i.cssRules[g + 1], index: g, cache: /* @__PURE__ */ new Set([l]) };
|
|
2528
|
-
}
|
|
2529
|
-
eo(s[c]);
|
|
2530
|
-
}
|
|
2531
|
-
};
|
|
2532
|
-
return r(), t;
|
|
2533
|
-
}, eo = (e) => {
|
|
2534
|
-
const t = e.group;
|
|
2535
|
-
let n = t.cssRules.length;
|
|
2536
|
-
e.apply = (r) => {
|
|
2537
|
-
try {
|
|
2538
|
-
t.insertRule(r, n), ++n;
|
|
2539
|
-
} catch {
|
|
2540
|
-
}
|
|
2541
|
-
};
|
|
2542
|
-
}, Be = Symbol(), to = Ae(), $t = (e, t) => to(e, () => (...n) => {
|
|
2543
|
-
let r = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
2544
|
-
for (const o of n)
|
|
2545
|
-
if (o != null)
|
|
2546
|
-
if (o[de]) {
|
|
2547
|
-
r.type == null && (r.type = o[de].type);
|
|
2548
|
-
for (const i of o[de].composers)
|
|
2549
|
-
r.composers.add(i);
|
|
2550
|
-
} else
|
|
2551
|
-
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(no(o, e));
|
|
2552
|
-
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]), ro(e, r, t);
|
|
2553
|
-
}), no = ({ variants: e, compoundVariants: t, defaultVariants: n, ...r }, o) => {
|
|
2554
|
-
const i = `${ee(o.prefix)}c-${ge(r)}`, s = [], l = [], c = /* @__PURE__ */ Object.create(null), a = [];
|
|
2555
|
-
for (const d in n)
|
|
2556
|
-
c[d] = String(n[d]);
|
|
2557
|
-
if (typeof e == "object" && e)
|
|
2558
|
-
for (const d in e) {
|
|
2559
|
-
g = c, f = d, Hr.call(g, f) || (c[d] = "undefined");
|
|
2560
|
-
const u = e[d];
|
|
2561
|
-
for (const m in u) {
|
|
2562
|
-
const p = { [d]: String(m) };
|
|
2563
|
-
String(m) === "undefined" && a.push(d);
|
|
2564
|
-
const x = u[m], h = [p, x, !Dt(x)];
|
|
2565
|
-
s.push(h);
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
var g, f;
|
|
2569
|
-
if (typeof t == "object" && t)
|
|
2570
|
-
for (const d of t) {
|
|
2571
|
-
let { css: u, ...m } = d;
|
|
2572
|
-
u = typeof u == "object" && u || {};
|
|
2573
|
-
for (const x in m)
|
|
2574
|
-
m[x] = String(m[x]);
|
|
2575
|
-
const p = [m, u, !Dt(u)];
|
|
2576
|
-
l.push(p);
|
|
2577
|
-
}
|
|
2578
|
-
return [i, r, s, l, c, a];
|
|
2579
|
-
}, ro = (e, t, n) => {
|
|
2580
|
-
const [r, o, i, s] = oo(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((f) => {
|
|
2581
|
-
function d() {
|
|
2582
|
-
for (let u = 0; u < d[Be].length; u++) {
|
|
2583
|
-
const [m, p] = d[Be][u];
|
|
2584
|
-
f.rules[m].apply(p);
|
|
2585
|
-
}
|
|
2586
|
-
return d[Be] = [], null;
|
|
2587
|
-
}
|
|
2588
|
-
return d[Be] = [], d.rules = {}, Oe.forEach((u) => d.rules[u] = { apply: (m) => d[Be].push([u, m]) }), d;
|
|
2589
|
-
})(n) : null, c = (l || n).rules, a = `.${r}${o.length > 1 ? `:where(.${o.slice(1).join(".")})` : ""}`, g = (f) => {
|
|
2590
|
-
f = typeof f == "object" && f || io;
|
|
2591
|
-
const { css: d, ...u } = f, m = {};
|
|
2592
|
-
for (const h in i)
|
|
2593
|
-
if (delete u[h], h in f) {
|
|
2594
|
-
let w = f[h];
|
|
2595
|
-
typeof w == "object" && w ? m[h] = { "@initial": i[h], ...w } : (w = String(w), m[h] = w !== "undefined" || s.has(h) ? w : i[h]);
|
|
2596
|
-
} else
|
|
2597
|
-
m[h] = i[h];
|
|
2598
|
-
const p = /* @__PURE__ */ new Set([...o]);
|
|
2599
|
-
for (const [h, w, A, E] of t.composers) {
|
|
2600
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Se(w, [`.${h}`], [], e, (B) => {
|
|
2601
|
-
c.styled.apply(B);
|
|
2602
|
-
}));
|
|
2603
|
-
const T = Wt(A, m, e.media), k = Wt(E, m, e.media, !0);
|
|
2604
|
-
for (const B of T)
|
|
2605
|
-
if (B !== void 0)
|
|
2606
|
-
for (const [I, M, O] of B) {
|
|
2607
|
-
const F = `${h}-${ge(M)}-${I}`;
|
|
2608
|
-
p.add(F);
|
|
2609
|
-
const L = (O ? n.rules.resonevar : n.rules.onevar).cache, D = O ? c.resonevar : c.onevar;
|
|
2610
|
-
L.has(F) || (L.add(F), Se(M, [`.${F}`], [], e, (b) => {
|
|
2611
|
-
D.apply(b);
|
|
2612
|
-
}));
|
|
2613
|
-
}
|
|
2614
|
-
for (const B of k)
|
|
2615
|
-
if (B !== void 0)
|
|
2616
|
-
for (const [I, M] of B) {
|
|
2617
|
-
const O = `${h}-${ge(M)}-${I}`;
|
|
2618
|
-
p.add(O), n.rules.allvar.cache.has(O) || (n.rules.allvar.cache.add(O), Se(M, [`.${O}`], [], e, (F) => {
|
|
2619
|
-
c.allvar.apply(F);
|
|
2620
|
-
}));
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
if (typeof d == "object" && d) {
|
|
2624
|
-
const h = `${r}-i${ge(d)}-css`;
|
|
2625
|
-
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), Se(d, [`.${h}`], [], e, (w) => {
|
|
2626
|
-
c.inline.apply(w);
|
|
2627
|
-
}));
|
|
2628
|
-
}
|
|
2629
|
-
for (const h of String(f.className || "").trim().split(/\s+/))
|
|
2630
|
-
h && p.add(h);
|
|
2631
|
-
const x = u.className = [...p].join(" ");
|
|
2632
|
-
return { type: t.type, className: x, selector: a, props: u, toString: () => x, deferredInjector: l };
|
|
2633
|
-
};
|
|
2634
|
-
return dt(g, { className: r, selector: a, [de]: t, toString: () => (n.rules.styled.cache.has(r) || g(), r) });
|
|
2635
|
-
}, oo = (e) => {
|
|
2636
|
-
let t = "";
|
|
2637
|
-
const n = [], r = {}, o = [];
|
|
2638
|
-
for (const [i, , , , s, l] of e) {
|
|
2639
|
-
t === "" && (t = i), n.push(i), o.push(...l);
|
|
2640
|
-
for (const c in s) {
|
|
2641
|
-
const a = s[c];
|
|
2642
|
-
(r[c] === void 0 || a !== "undefined" || l.includes(a)) && (r[c] = a);
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
return [t, n, r, new Set(o)];
|
|
2646
|
-
}, Wt = (e, t, n, r) => {
|
|
2647
|
-
const o = [];
|
|
2648
|
-
e:
|
|
2649
|
-
for (let [i, s, l] of e) {
|
|
2650
|
-
if (l)
|
|
2651
|
-
continue;
|
|
2652
|
-
let c, a = 0, g = !1;
|
|
2653
|
-
for (c in i) {
|
|
2654
|
-
const f = i[c];
|
|
2655
|
-
let d = t[c];
|
|
2656
|
-
if (d !== f) {
|
|
2657
|
-
if (typeof d != "object" || !d)
|
|
2658
|
-
continue e;
|
|
2659
|
-
{
|
|
2660
|
-
let u, m, p = 0;
|
|
2661
|
-
for (const x in d) {
|
|
2662
|
-
if (f === String(d[x])) {
|
|
2663
|
-
if (x !== "@initial") {
|
|
2664
|
-
const h = x.slice(1);
|
|
2665
|
-
(m = m || []).push(h in n ? n[h] : x.replace(/^@media ?/, "")), g = !0;
|
|
2666
|
-
}
|
|
2667
|
-
a += p, u = !0;
|
|
2668
|
-
}
|
|
2669
|
-
++p;
|
|
2670
|
-
}
|
|
2671
|
-
if (m && m.length && (s = { ["@media " + m.join(", ")]: s }), !u)
|
|
2672
|
-
continue e;
|
|
2673
|
-
}
|
|
2674
|
-
}
|
|
2675
|
-
}
|
|
2676
|
-
(o[a] = o[a] || []).push([r ? "cv" : `${c}-${i[c]}`, s, g]);
|
|
2677
|
-
}
|
|
2678
|
-
return o;
|
|
2679
|
-
}, io = {}, so = Ae(), lo = (e, t) => so(e, () => (...n) => {
|
|
2680
|
-
const r = () => {
|
|
2681
|
-
for (let o of n) {
|
|
2682
|
-
o = typeof o == "object" && o || {};
|
|
2683
|
-
let i = ge(o);
|
|
2684
|
-
if (!t.rules.global.cache.has(i)) {
|
|
2685
|
-
if (t.rules.global.cache.add(i), "@import" in o) {
|
|
2686
|
-
let s = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
|
|
2687
|
-
for (let l of [].concat(o["@import"]))
|
|
2688
|
-
l = l.includes('"') || l.includes("'") ? l : `"${l}"`, t.sheet.insertRule(`@import ${l};`, s++);
|
|
2689
|
-
delete o["@import"];
|
|
2690
|
-
}
|
|
2691
|
-
Se(o, [], [], e, (s) => {
|
|
2692
|
-
t.rules.global.apply(s);
|
|
2693
|
-
});
|
|
2694
|
-
}
|
|
2695
|
-
}
|
|
2696
|
-
return "";
|
|
2697
|
-
};
|
|
2698
|
-
return dt(r, { toString: r });
|
|
2699
|
-
}), co = Ae(), ao = (e, t) => co(e, () => (n) => {
|
|
2700
|
-
const r = `${ee(e.prefix)}k-${ge(n)}`, o = () => {
|
|
2701
|
-
if (!t.rules.global.cache.has(r)) {
|
|
2702
|
-
t.rules.global.cache.add(r);
|
|
2703
|
-
const i = [];
|
|
2704
|
-
Se(n, [], [], e, (l) => i.push(l));
|
|
2705
|
-
const s = `@keyframes ${r}{${i.join("")}}`;
|
|
2706
|
-
t.rules.global.apply(s);
|
|
2707
|
-
}
|
|
2708
|
-
return r;
|
|
2709
|
-
};
|
|
2710
|
-
return dt(o, { get name() {
|
|
2711
|
-
return o();
|
|
2712
|
-
}, toString: o });
|
|
2713
|
-
}), uo = class {
|
|
2714
|
-
constructor(e, t, n, r) {
|
|
2715
|
-
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = r == null ? "" : String(r);
|
|
2716
|
-
}
|
|
2717
|
-
get computedValue() {
|
|
2718
|
-
return "var(" + this.variable + ")";
|
|
2719
|
-
}
|
|
2720
|
-
get variable() {
|
|
2721
|
-
return "--" + ee(this.prefix) + ee(this.scale) + this.token;
|
|
2722
|
-
}
|
|
2723
|
-
toString() {
|
|
2724
|
-
return this.computedValue;
|
|
2725
|
-
}
|
|
2726
|
-
}, fo = Ae(), go = (e, t) => fo(e, () => (n, r) => {
|
|
2727
|
-
r = typeof n == "object" && n || Object(r);
|
|
2728
|
-
const o = `.${n = (n = typeof n == "string" ? n : "") || `${ee(e.prefix)}t-${ge(r)}`}`, i = {}, s = [];
|
|
2729
|
-
for (const c in r) {
|
|
2730
|
-
i[c] = {};
|
|
2731
|
-
for (const a in r[c]) {
|
|
2732
|
-
const g = `--${ee(e.prefix)}${c}-${a}`, f = gn(String(r[c][a]), e.prefix, c);
|
|
2733
|
-
i[c][a] = new uo(a, f, c, e.prefix), s.push(`${g}:${f}`);
|
|
2734
|
-
}
|
|
2735
|
-
}
|
|
2736
|
-
const l = () => {
|
|
2737
|
-
if (s.length && !t.rules.themed.cache.has(n)) {
|
|
2738
|
-
t.rules.themed.cache.add(n);
|
|
2739
|
-
const c = `${r === e.theme ? ":root," : ""}.${n}{${s.join(";")}}`;
|
|
2740
|
-
t.rules.themed.apply(c);
|
|
2741
|
-
}
|
|
2742
|
-
return n;
|
|
2743
|
-
};
|
|
2744
|
-
return { ...i, get className() {
|
|
2745
|
-
return l();
|
|
2746
|
-
}, selector: o, toString: l };
|
|
2747
|
-
}), mo = Ae(), po = Ae(), ho = (e) => {
|
|
2748
|
-
const t = ((n) => {
|
|
2749
|
-
let r = !1;
|
|
2750
|
-
const o = mo(n, (i) => {
|
|
2751
|
-
r = !0;
|
|
2752
|
-
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, c = typeof i.root == "object" ? i.root || null : globalThis.document || null, a = typeof i.theme == "object" && i.theme || {}, g = { prefix: s, media: l, theme: a, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Vr }, utils: typeof i.utils == "object" && i.utils || {} }, f = Qr(c), d = { css: $t(g, f), globalCss: lo(g, f), keyframes: ao(g, f), createTheme: go(g, f), reset() {
|
|
2753
|
-
f.reset(), d.theme.toString();
|
|
2754
|
-
}, theme: {}, sheet: f, config: g, prefix: s, getCssText: f.toString, toString: f.toString };
|
|
2755
|
-
return String(d.theme = d.createTheme(a)), d;
|
|
2756
|
-
});
|
|
2757
|
-
return r || o.reset(), o;
|
|
2758
|
-
})(e);
|
|
2759
|
-
return t.styled = (({ config: n, sheet: r }) => po(n, () => {
|
|
2760
|
-
const o = $t(n, r);
|
|
2761
|
-
return (...i) => {
|
|
2762
|
-
const s = o(...i), l = s[de].type, c = ye.forwardRef((a, g) => {
|
|
2763
|
-
const f = a && a.as || l, { props: d, deferredInjector: u } = s(a);
|
|
2764
|
-
return delete d.as, d.ref = g, u ? ye.createElement(ye.Fragment, null, ye.createElement(f, d), ye.createElement(u, null)) : ye.createElement(f, d);
|
|
2765
|
-
});
|
|
2766
|
-
return c.className = s.className, c.displayName = `Styled.${l.displayName || l.name || l}`, c.selector = s.selector, c.toString = () => s.selector, c[de] = s[de], c;
|
|
2767
|
-
};
|
|
2768
|
-
}))(t), t;
|
|
2769
|
-
};
|
|
2770
|
-
let Nt = 9999;
|
|
2771
|
-
const jt = () => (Nt--, Nt), { styled: Mo, css: Lo, keyframes: Fo, globalCss: $o, getCssText: Wo } = ho({
|
|
2772
|
-
theme: {
|
|
2773
|
-
colors: {
|
|
2774
|
-
gray50: "#F9FAFA",
|
|
2775
|
-
gray100: "#EBEEEE",
|
|
2776
|
-
gray200: "#CFD6D7",
|
|
2777
|
-
gray300: "#B3BEC0",
|
|
2778
|
-
gray400: "#97A6A8",
|
|
2779
|
-
gray500: "#7C8E91",
|
|
2780
|
-
gray600: "#627578",
|
|
2781
|
-
gray700: "#4F5F61",
|
|
2782
|
-
gray800: "#414D4F",
|
|
2783
|
-
gray900: "#2C3435",
|
|
2784
|
-
blue50: "#F7FBFB",
|
|
2785
|
-
blue100: "#E3F0F2",
|
|
2786
|
-
blue200: "#BADADF",
|
|
2787
|
-
blue300: "#92C5CC",
|
|
2788
|
-
blue400: "#67AEB8",
|
|
2789
|
-
blue500: "#3C97A3",
|
|
2790
|
-
blue600: "#1F7D8A",
|
|
2791
|
-
blue700: "#19656F",
|
|
2792
|
-
blue800: "#14525B",
|
|
2793
|
-
blue900: "#0E383E",
|
|
2794
|
-
yellow50: "#FDFAEF",
|
|
2795
|
-
yellow100: "#F9EDCA",
|
|
2796
|
-
yellow200: "#EFD27A",
|
|
2797
|
-
yellow300: "#E5B626",
|
|
2798
|
-
yellow400: "#C89E1C",
|
|
2799
|
-
yellow500: "#AA8618",
|
|
2800
|
-
yellow600: "#8C6E14",
|
|
2801
|
-
yellow700: "#715910",
|
|
2802
|
-
yellow800: "#5C490D",
|
|
2803
|
-
yellow900: "#3E3109",
|
|
2804
|
-
orange500: "#D1721C",
|
|
2805
|
-
red50: "#FDF9F9",
|
|
2806
|
-
red100: "#F7EBEB",
|
|
2807
|
-
red200: "#EBCECD",
|
|
2808
|
-
red300: "#DFB1B0",
|
|
2809
|
-
red400: "#D39392",
|
|
2810
|
-
red500: "#C67473",
|
|
2811
|
-
red600: "#B85250",
|
|
2812
|
-
red700: "#A92F2D",
|
|
2813
|
-
red800: "#901F1E",
|
|
2814
|
-
red900: "#631614",
|
|
2815
|
-
green50: "#F8FAF9",
|
|
2816
|
-
green100: "#E7F0EA",
|
|
2817
|
-
green200: "#C5D9CB",
|
|
2818
|
-
green300: "#A4C4AD",
|
|
2819
|
-
green400: "#82AD8D",
|
|
2820
|
-
green500: "#60976F",
|
|
2821
|
-
green600: "#3C7F4E",
|
|
2822
|
-
green700: "#296839",
|
|
2823
|
-
green800: "#21552F",
|
|
2824
|
-
green900: "#163920",
|
|
2825
|
-
// Primary
|
|
2826
|
-
primaryTextOnLightBg: "#194b58",
|
|
2827
|
-
primaryBg: "$blue600",
|
|
2828
|
-
primaryBgHover: "$blue700",
|
|
2829
|
-
primaryTextOnWhite: "$blue600",
|
|
2830
|
-
bodyGray: "$gray100",
|
|
2831
|
-
hoverDarker: "hsla(214deg, 25%, 21%, 0.06)",
|
|
2832
|
-
borderDarker: "hsla(214deg, 25%, 21%, 0.1)",
|
|
2833
|
-
selectedDarker: "hsla(214deg, 25%, 21%, 0.06)",
|
|
2834
|
-
selectedOnBodyGray: "hsl(214deg, 35%, 80%)",
|
|
2835
|
-
darkGrayBg: "#1f2937",
|
|
2836
|
-
border: "hsl(214deg, 25%, 80%)",
|
|
2837
|
-
text: "#1f2937",
|
|
2838
|
-
secondaryText: "$gray500",
|
|
2839
|
-
focusRing: "hsla(214deg, 15%, 10%, 0.6)"
|
|
2840
|
-
},
|
|
2841
|
-
fontSizes: {
|
|
2842
|
-
xs: "0.75rem",
|
|
2843
|
-
// 12px
|
|
2844
|
-
sm: "0.875rem",
|
|
2845
|
-
// 14px
|
|
2846
|
-
md: "1rem",
|
|
2847
|
-
// 16px
|
|
2848
|
-
lg: "1.125rem",
|
|
2849
|
-
// 18px
|
|
2850
|
-
xl: "1.25rem",
|
|
2851
|
-
// 20px
|
|
2852
|
-
"2xl": "1.5rem",
|
|
2853
|
-
// 24px
|
|
2854
|
-
"3xl": "1.875rem"
|
|
2855
|
-
// 30px
|
|
2856
|
-
},
|
|
2857
|
-
fontWeights: {
|
|
2858
|
-
normal: "var(--ui-font-weight-normal)",
|
|
2859
|
-
medium: "var(--ui-font-weight-semibold)",
|
|
2860
|
-
bold: "var(--ui-font-weight-bold)"
|
|
2861
|
-
},
|
|
2862
|
-
space: {
|
|
2863
|
-
1: "0.25rem",
|
|
2864
|
-
2: "0.5rem",
|
|
2865
|
-
3: "0.75rem",
|
|
2866
|
-
4: "1rem",
|
|
2867
|
-
6: "1.5rem",
|
|
2868
|
-
8: "2rem"
|
|
2869
|
-
},
|
|
2870
|
-
shadows: {
|
|
2871
|
-
xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
2872
|
-
sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
2873
|
-
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
2874
|
-
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
2875
|
-
overlayCard: "0 5px 50px 0px rgb(0 0 0 / 0.15), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"
|
|
2876
|
-
},
|
|
2877
|
-
radii: {
|
|
2878
|
-
xs: "0.125rem",
|
|
2879
|
-
sm: "0.25rem",
|
|
2880
|
-
md: "0.5rem",
|
|
2881
|
-
mdmd: "calc(0.5rem - 0.125rem)",
|
|
2882
|
-
full: "9999px"
|
|
2883
|
-
},
|
|
2884
|
-
zIndices: {
|
|
2885
|
-
/**
|
|
2886
|
-
* By using createLayerBelow() we can order the list of layers.
|
|
2887
|
-
* Layers higher up will be on top of layers lower down.
|
|
2888
|
-
*/
|
|
2889
|
-
toast: jt(),
|
|
2890
|
-
overlayCard: jt()
|
|
2891
|
-
}
|
|
2892
|
-
},
|
|
2893
|
-
media: {
|
|
2894
|
-
lg: "(min-width: 1200px)",
|
|
2895
|
-
print: "print"
|
|
2896
|
-
}
|
|
2897
|
-
});
|
|
2898
|
-
export {
|
|
2899
|
-
ko as F,
|
|
2900
|
-
xo as a,
|
|
2901
|
-
Eo as b,
|
|
2902
|
-
wo as c,
|
|
2903
|
-
Ao as d,
|
|
2904
|
-
Bo as e,
|
|
2905
|
-
Ro as f,
|
|
2906
|
-
Lo as g,
|
|
2907
|
-
Io as h,
|
|
2908
|
-
So as i,
|
|
2909
|
-
Oo as j,
|
|
2910
|
-
Fo as k,
|
|
2911
|
-
To as l,
|
|
2912
|
-
Co as m,
|
|
2913
|
-
Do as n,
|
|
2914
|
-
vo as o,
|
|
2915
|
-
$o as p,
|
|
2916
|
-
Wo as q,
|
|
2917
|
-
Mo as s,
|
|
2918
|
-
Po as u
|
|
2919
|
-
};
|