@sellgar/kit 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4974 -0
- package/dist/index.umd.cjs +95 -0
- package/package.json +15 -6
- package/dist/index.es.js +0 -9427
- package/dist/index.umd.js +0 -96
- package/dist/kit.css +0 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,4974 @@
|
|
|
1
|
+
function zr(e, t) {
|
|
2
|
+
for (var r = 0; r < t.length; r++) {
|
|
3
|
+
const o = t[r];
|
|
4
|
+
if (typeof o != "string" && !Array.isArray(o)) {
|
|
5
|
+
for (const i in o)
|
|
6
|
+
if (i !== "default" && !(i in e)) {
|
|
7
|
+
const s = Object.getOwnPropertyDescriptor(o, i);
|
|
8
|
+
s && Object.defineProperty(e, i, s.get ? s : {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: () => o[i]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
16
|
+
}
|
|
17
|
+
function ir(e) {
|
|
18
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
19
|
+
}
|
|
20
|
+
var Tt = { exports: {} }, X = {};
|
|
21
|
+
/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react.production.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/
|
|
30
|
+
var Nn;
|
|
31
|
+
function Ir() {
|
|
32
|
+
if (Nn) return X;
|
|
33
|
+
Nn = 1;
|
|
34
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), g = Symbol.iterator;
|
|
35
|
+
function f(l) {
|
|
36
|
+
return l === null || typeof l != "object" ? null : (l = g && l[g] || l["@@iterator"], typeof l == "function" ? l : null);
|
|
37
|
+
}
|
|
38
|
+
var h = {
|
|
39
|
+
isMounted: function() {
|
|
40
|
+
return !1;
|
|
41
|
+
},
|
|
42
|
+
enqueueForceUpdate: function() {
|
|
43
|
+
},
|
|
44
|
+
enqueueReplaceState: function() {
|
|
45
|
+
},
|
|
46
|
+
enqueueSetState: function() {
|
|
47
|
+
}
|
|
48
|
+
}, w = Object.assign, b = {};
|
|
49
|
+
function T(l, y, S) {
|
|
50
|
+
this.props = l, this.context = y, this.refs = b, this.updater = S || h;
|
|
51
|
+
}
|
|
52
|
+
T.prototype.isReactComponent = {}, T.prototype.setState = function(l, y) {
|
|
53
|
+
if (typeof l != "object" && typeof l != "function" && l != null)
|
|
54
|
+
throw Error(
|
|
55
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
56
|
+
);
|
|
57
|
+
this.updater.enqueueSetState(this, l, y, "setState");
|
|
58
|
+
}, T.prototype.forceUpdate = function(l) {
|
|
59
|
+
this.updater.enqueueForceUpdate(this, l, "forceUpdate");
|
|
60
|
+
};
|
|
61
|
+
function x() {
|
|
62
|
+
}
|
|
63
|
+
x.prototype = T.prototype;
|
|
64
|
+
function j(l, y, S) {
|
|
65
|
+
this.props = l, this.context = y, this.refs = b, this.updater = S || h;
|
|
66
|
+
}
|
|
67
|
+
var P = j.prototype = new x();
|
|
68
|
+
P.constructor = j, w(P, T.prototype), P.isPureReactComponent = !0;
|
|
69
|
+
var H = Array.isArray, A = { H: null, A: null, T: null, S: null }, K = Object.prototype.hasOwnProperty;
|
|
70
|
+
function B(l, y, S, $, F, oe) {
|
|
71
|
+
return S = oe.ref, {
|
|
72
|
+
$$typeof: e,
|
|
73
|
+
type: l,
|
|
74
|
+
key: y,
|
|
75
|
+
ref: S !== void 0 ? S : null,
|
|
76
|
+
props: oe
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function ee(l, y) {
|
|
80
|
+
return B(
|
|
81
|
+
l.type,
|
|
82
|
+
y,
|
|
83
|
+
void 0,
|
|
84
|
+
void 0,
|
|
85
|
+
void 0,
|
|
86
|
+
l.props
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function q(l) {
|
|
90
|
+
return typeof l == "object" && l !== null && l.$$typeof === e;
|
|
91
|
+
}
|
|
92
|
+
function ne(l) {
|
|
93
|
+
var y = { "=": "=0", ":": "=2" };
|
|
94
|
+
return "$" + l.replace(/[=:]/g, function(S) {
|
|
95
|
+
return y[S];
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
var te = /\/+/g;
|
|
99
|
+
function Q(l, y) {
|
|
100
|
+
return typeof l == "object" && l !== null && l.key != null ? ne("" + l.key) : y.toString(36);
|
|
101
|
+
}
|
|
102
|
+
function J() {
|
|
103
|
+
}
|
|
104
|
+
function V(l) {
|
|
105
|
+
switch (l.status) {
|
|
106
|
+
case "fulfilled":
|
|
107
|
+
return l.value;
|
|
108
|
+
case "rejected":
|
|
109
|
+
throw l.reason;
|
|
110
|
+
default:
|
|
111
|
+
switch (typeof l.status == "string" ? l.then(J, J) : (l.status = "pending", l.then(
|
|
112
|
+
function(y) {
|
|
113
|
+
l.status === "pending" && (l.status = "fulfilled", l.value = y);
|
|
114
|
+
},
|
|
115
|
+
function(y) {
|
|
116
|
+
l.status === "pending" && (l.status = "rejected", l.reason = y);
|
|
117
|
+
}
|
|
118
|
+
)), l.status) {
|
|
119
|
+
case "fulfilled":
|
|
120
|
+
return l.value;
|
|
121
|
+
case "rejected":
|
|
122
|
+
throw l.reason;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
throw l;
|
|
126
|
+
}
|
|
127
|
+
function z(l, y, S, $, F) {
|
|
128
|
+
var oe = typeof l;
|
|
129
|
+
(oe === "undefined" || oe === "boolean") && (l = null);
|
|
130
|
+
var I = !1;
|
|
131
|
+
if (l === null) I = !0;
|
|
132
|
+
else
|
|
133
|
+
switch (oe) {
|
|
134
|
+
case "bigint":
|
|
135
|
+
case "string":
|
|
136
|
+
case "number":
|
|
137
|
+
I = !0;
|
|
138
|
+
break;
|
|
139
|
+
case "object":
|
|
140
|
+
switch (l.$$typeof) {
|
|
141
|
+
case e:
|
|
142
|
+
case t:
|
|
143
|
+
I = !0;
|
|
144
|
+
break;
|
|
145
|
+
case v:
|
|
146
|
+
return I = l._init, z(
|
|
147
|
+
I(l._payload),
|
|
148
|
+
y,
|
|
149
|
+
S,
|
|
150
|
+
$,
|
|
151
|
+
F
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (I)
|
|
156
|
+
return F = F(l), I = $ === "" ? "." + Q(l, 0) : $, H(F) ? (S = "", I != null && (S = I.replace(te, "$&/") + "/"), z(F, y, S, "", function(Se) {
|
|
157
|
+
return Se;
|
|
158
|
+
})) : F != null && (q(F) && (F = ee(
|
|
159
|
+
F,
|
|
160
|
+
S + (F.key == null || l && l.key === F.key ? "" : ("" + F.key).replace(
|
|
161
|
+
te,
|
|
162
|
+
"$&/"
|
|
163
|
+
) + "/") + I
|
|
164
|
+
)), y.push(F)), 1;
|
|
165
|
+
I = 0;
|
|
166
|
+
var le = $ === "" ? "." : $ + ":";
|
|
167
|
+
if (H(l))
|
|
168
|
+
for (var re = 0; re < l.length; re++)
|
|
169
|
+
$ = l[re], oe = le + Q($, re), I += z(
|
|
170
|
+
$,
|
|
171
|
+
y,
|
|
172
|
+
S,
|
|
173
|
+
oe,
|
|
174
|
+
F
|
|
175
|
+
);
|
|
176
|
+
else if (re = f(l), typeof re == "function")
|
|
177
|
+
for (l = re.call(l), re = 0; !($ = l.next()).done; )
|
|
178
|
+
$ = $.value, oe = le + Q($, re++), I += z(
|
|
179
|
+
$,
|
|
180
|
+
y,
|
|
181
|
+
S,
|
|
182
|
+
oe,
|
|
183
|
+
F
|
|
184
|
+
);
|
|
185
|
+
else if (oe === "object") {
|
|
186
|
+
if (typeof l.then == "function")
|
|
187
|
+
return z(
|
|
188
|
+
V(l),
|
|
189
|
+
y,
|
|
190
|
+
S,
|
|
191
|
+
$,
|
|
192
|
+
F
|
|
193
|
+
);
|
|
194
|
+
throw y = String(l), Error(
|
|
195
|
+
"Objects are not valid as a React child (found: " + (y === "[object Object]" ? "object with keys {" + Object.keys(l).join(", ") + "}" : y) + "). If you meant to render a collection of children, use an array instead."
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
return I;
|
|
199
|
+
}
|
|
200
|
+
function W(l, y, S) {
|
|
201
|
+
if (l == null) return l;
|
|
202
|
+
var $ = [], F = 0;
|
|
203
|
+
return z(l, $, "", "", function(oe) {
|
|
204
|
+
return y.call(S, oe, F++);
|
|
205
|
+
}), $;
|
|
206
|
+
}
|
|
207
|
+
function k(l) {
|
|
208
|
+
if (l._status === -1) {
|
|
209
|
+
var y = l._result;
|
|
210
|
+
y = y(), y.then(
|
|
211
|
+
function(S) {
|
|
212
|
+
(l._status === 0 || l._status === -1) && (l._status = 1, l._result = S);
|
|
213
|
+
},
|
|
214
|
+
function(S) {
|
|
215
|
+
(l._status === 0 || l._status === -1) && (l._status = 2, l._result = S);
|
|
216
|
+
}
|
|
217
|
+
), l._status === -1 && (l._status = 0, l._result = y);
|
|
218
|
+
}
|
|
219
|
+
if (l._status === 1) return l._result.default;
|
|
220
|
+
throw l._result;
|
|
221
|
+
}
|
|
222
|
+
var C = typeof reportError == "function" ? reportError : function(l) {
|
|
223
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
224
|
+
var y = new window.ErrorEvent("error", {
|
|
225
|
+
bubbles: !0,
|
|
226
|
+
cancelable: !0,
|
|
227
|
+
message: typeof l == "object" && l !== null && typeof l.message == "string" ? String(l.message) : String(l),
|
|
228
|
+
error: l
|
|
229
|
+
});
|
|
230
|
+
if (!window.dispatchEvent(y)) return;
|
|
231
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
232
|
+
process.emit("uncaughtException", l);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
console.error(l);
|
|
236
|
+
};
|
|
237
|
+
function R() {
|
|
238
|
+
}
|
|
239
|
+
return X.Children = {
|
|
240
|
+
map: W,
|
|
241
|
+
forEach: function(l, y, S) {
|
|
242
|
+
W(
|
|
243
|
+
l,
|
|
244
|
+
function() {
|
|
245
|
+
y.apply(this, arguments);
|
|
246
|
+
},
|
|
247
|
+
S
|
|
248
|
+
);
|
|
249
|
+
},
|
|
250
|
+
count: function(l) {
|
|
251
|
+
var y = 0;
|
|
252
|
+
return W(l, function() {
|
|
253
|
+
y++;
|
|
254
|
+
}), y;
|
|
255
|
+
},
|
|
256
|
+
toArray: function(l) {
|
|
257
|
+
return W(l, function(y) {
|
|
258
|
+
return y;
|
|
259
|
+
}) || [];
|
|
260
|
+
},
|
|
261
|
+
only: function(l) {
|
|
262
|
+
if (!q(l))
|
|
263
|
+
throw Error(
|
|
264
|
+
"React.Children.only expected to receive a single React element child."
|
|
265
|
+
);
|
|
266
|
+
return l;
|
|
267
|
+
}
|
|
268
|
+
}, X.Component = T, X.Fragment = r, X.Profiler = i, X.PureComponent = j, X.StrictMode = o, X.Suspense = d, X.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = A, X.act = function() {
|
|
269
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
270
|
+
}, X.cache = function(l) {
|
|
271
|
+
return function() {
|
|
272
|
+
return l.apply(null, arguments);
|
|
273
|
+
};
|
|
274
|
+
}, X.cloneElement = function(l, y, S) {
|
|
275
|
+
if (l == null)
|
|
276
|
+
throw Error(
|
|
277
|
+
"The argument must be a React element, but you passed " + l + "."
|
|
278
|
+
);
|
|
279
|
+
var $ = w({}, l.props), F = l.key, oe = void 0;
|
|
280
|
+
if (y != null)
|
|
281
|
+
for (I in y.ref !== void 0 && (oe = void 0), y.key !== void 0 && (F = "" + y.key), y)
|
|
282
|
+
!K.call(y, I) || I === "key" || I === "__self" || I === "__source" || I === "ref" && y.ref === void 0 || ($[I] = y[I]);
|
|
283
|
+
var I = arguments.length - 2;
|
|
284
|
+
if (I === 1) $.children = S;
|
|
285
|
+
else if (1 < I) {
|
|
286
|
+
for (var le = Array(I), re = 0; re < I; re++)
|
|
287
|
+
le[re] = arguments[re + 2];
|
|
288
|
+
$.children = le;
|
|
289
|
+
}
|
|
290
|
+
return B(l.type, F, void 0, void 0, oe, $);
|
|
291
|
+
}, X.createContext = function(l) {
|
|
292
|
+
return l = {
|
|
293
|
+
$$typeof: a,
|
|
294
|
+
_currentValue: l,
|
|
295
|
+
_currentValue2: l,
|
|
296
|
+
_threadCount: 0,
|
|
297
|
+
Provider: null,
|
|
298
|
+
Consumer: null
|
|
299
|
+
}, l.Provider = l, l.Consumer = {
|
|
300
|
+
$$typeof: s,
|
|
301
|
+
_context: l
|
|
302
|
+
}, l;
|
|
303
|
+
}, X.createElement = function(l, y, S) {
|
|
304
|
+
var $, F = {}, oe = null;
|
|
305
|
+
if (y != null)
|
|
306
|
+
for ($ in y.key !== void 0 && (oe = "" + y.key), y)
|
|
307
|
+
K.call(y, $) && $ !== "key" && $ !== "__self" && $ !== "__source" && (F[$] = y[$]);
|
|
308
|
+
var I = arguments.length - 2;
|
|
309
|
+
if (I === 1) F.children = S;
|
|
310
|
+
else if (1 < I) {
|
|
311
|
+
for (var le = Array(I), re = 0; re < I; re++)
|
|
312
|
+
le[re] = arguments[re + 2];
|
|
313
|
+
F.children = le;
|
|
314
|
+
}
|
|
315
|
+
if (l && l.defaultProps)
|
|
316
|
+
for ($ in I = l.defaultProps, I)
|
|
317
|
+
F[$] === void 0 && (F[$] = I[$]);
|
|
318
|
+
return B(l, oe, void 0, void 0, null, F);
|
|
319
|
+
}, X.createRef = function() {
|
|
320
|
+
return { current: null };
|
|
321
|
+
}, X.forwardRef = function(l) {
|
|
322
|
+
return { $$typeof: c, render: l };
|
|
323
|
+
}, X.isValidElement = q, X.lazy = function(l) {
|
|
324
|
+
return {
|
|
325
|
+
$$typeof: v,
|
|
326
|
+
_payload: { _status: -1, _result: l },
|
|
327
|
+
_init: k
|
|
328
|
+
};
|
|
329
|
+
}, X.memo = function(l, y) {
|
|
330
|
+
return {
|
|
331
|
+
$$typeof: u,
|
|
332
|
+
type: l,
|
|
333
|
+
compare: y === void 0 ? null : y
|
|
334
|
+
};
|
|
335
|
+
}, X.startTransition = function(l) {
|
|
336
|
+
var y = A.T, S = {};
|
|
337
|
+
A.T = S;
|
|
338
|
+
try {
|
|
339
|
+
var $ = l(), F = A.S;
|
|
340
|
+
F !== null && F(S, $), typeof $ == "object" && $ !== null && typeof $.then == "function" && $.then(R, C);
|
|
341
|
+
} catch (oe) {
|
|
342
|
+
C(oe);
|
|
343
|
+
} finally {
|
|
344
|
+
A.T = y;
|
|
345
|
+
}
|
|
346
|
+
}, X.unstable_useCacheRefresh = function() {
|
|
347
|
+
return A.H.useCacheRefresh();
|
|
348
|
+
}, X.use = function(l) {
|
|
349
|
+
return A.H.use(l);
|
|
350
|
+
}, X.useActionState = function(l, y, S) {
|
|
351
|
+
return A.H.useActionState(l, y, S);
|
|
352
|
+
}, X.useCallback = function(l, y) {
|
|
353
|
+
return A.H.useCallback(l, y);
|
|
354
|
+
}, X.useContext = function(l) {
|
|
355
|
+
return A.H.useContext(l);
|
|
356
|
+
}, X.useDebugValue = function() {
|
|
357
|
+
}, X.useDeferredValue = function(l, y) {
|
|
358
|
+
return A.H.useDeferredValue(l, y);
|
|
359
|
+
}, X.useEffect = function(l, y) {
|
|
360
|
+
return A.H.useEffect(l, y);
|
|
361
|
+
}, X.useId = function() {
|
|
362
|
+
return A.H.useId();
|
|
363
|
+
}, X.useImperativeHandle = function(l, y, S) {
|
|
364
|
+
return A.H.useImperativeHandle(l, y, S);
|
|
365
|
+
}, X.useInsertionEffect = function(l, y) {
|
|
366
|
+
return A.H.useInsertionEffect(l, y);
|
|
367
|
+
}, X.useLayoutEffect = function(l, y) {
|
|
368
|
+
return A.H.useLayoutEffect(l, y);
|
|
369
|
+
}, X.useMemo = function(l, y) {
|
|
370
|
+
return A.H.useMemo(l, y);
|
|
371
|
+
}, X.useOptimistic = function(l, y) {
|
|
372
|
+
return A.H.useOptimistic(l, y);
|
|
373
|
+
}, X.useReducer = function(l, y, S) {
|
|
374
|
+
return A.H.useReducer(l, y, S);
|
|
375
|
+
}, X.useRef = function(l) {
|
|
376
|
+
return A.H.useRef(l);
|
|
377
|
+
}, X.useState = function(l) {
|
|
378
|
+
return A.H.useState(l);
|
|
379
|
+
}, X.useSyncExternalStore = function(l, y, S) {
|
|
380
|
+
return A.H.useSyncExternalStore(
|
|
381
|
+
l,
|
|
382
|
+
y,
|
|
383
|
+
S
|
|
384
|
+
);
|
|
385
|
+
}, X.useTransition = function() {
|
|
386
|
+
return A.H.useTransition();
|
|
387
|
+
}, X.version = "19.0.0", X;
|
|
388
|
+
}
|
|
389
|
+
var ft = { exports: {} };
|
|
390
|
+
/**
|
|
391
|
+
* @license React
|
|
392
|
+
* react.development.js
|
|
393
|
+
*
|
|
394
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
395
|
+
*
|
|
396
|
+
* This source code is licensed under the MIT license found in the
|
|
397
|
+
* LICENSE file in the root directory of this source tree.
|
|
398
|
+
*/
|
|
399
|
+
ft.exports;
|
|
400
|
+
var Pn;
|
|
401
|
+
function $r() {
|
|
402
|
+
return Pn || (Pn = 1, function(e, t) {
|
|
403
|
+
process.env.NODE_ENV !== "production" && function() {
|
|
404
|
+
function r(n, p) {
|
|
405
|
+
Object.defineProperty(s.prototype, n, {
|
|
406
|
+
get: function() {
|
|
407
|
+
console.warn(
|
|
408
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
409
|
+
p[0],
|
|
410
|
+
p[1]
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
function o(n) {
|
|
416
|
+
return n === null || typeof n != "object" ? null : (n = at && n[at] || n["@@iterator"], typeof n == "function" ? n : null);
|
|
417
|
+
}
|
|
418
|
+
function i(n, p) {
|
|
419
|
+
n = (n = n.constructor) && (n.displayName || n.name) || "ReactClass";
|
|
420
|
+
var E = n + "." + p;
|
|
421
|
+
ut[E] || (console.error(
|
|
422
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
423
|
+
p,
|
|
424
|
+
n
|
|
425
|
+
), ut[E] = !0);
|
|
426
|
+
}
|
|
427
|
+
function s(n, p, E) {
|
|
428
|
+
this.props = n, this.context = p, this.refs = M, this.updater = E || m;
|
|
429
|
+
}
|
|
430
|
+
function a() {
|
|
431
|
+
}
|
|
432
|
+
function c(n, p, E) {
|
|
433
|
+
this.props = n, this.context = p, this.refs = M, this.updater = E || m;
|
|
434
|
+
}
|
|
435
|
+
function d(n) {
|
|
436
|
+
return "" + n;
|
|
437
|
+
}
|
|
438
|
+
function u(n) {
|
|
439
|
+
try {
|
|
440
|
+
d(n);
|
|
441
|
+
var p = !1;
|
|
442
|
+
} catch {
|
|
443
|
+
p = !0;
|
|
444
|
+
}
|
|
445
|
+
if (p) {
|
|
446
|
+
p = console;
|
|
447
|
+
var E = p.error, O = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
448
|
+
return E.call(
|
|
449
|
+
p,
|
|
450
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
451
|
+
O
|
|
452
|
+
), d(n);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function v(n) {
|
|
456
|
+
if (n == null) return null;
|
|
457
|
+
if (typeof n == "function")
|
|
458
|
+
return n.$$typeof === G ? null : n.displayName || n.name || null;
|
|
459
|
+
if (typeof n == "string") return n;
|
|
460
|
+
switch (n) {
|
|
461
|
+
case re:
|
|
462
|
+
return "Fragment";
|
|
463
|
+
case le:
|
|
464
|
+
return "Portal";
|
|
465
|
+
case We:
|
|
466
|
+
return "Profiler";
|
|
467
|
+
case Se:
|
|
468
|
+
return "StrictMode";
|
|
469
|
+
case Ae:
|
|
470
|
+
return "Suspense";
|
|
471
|
+
case ze:
|
|
472
|
+
return "SuspenseList";
|
|
473
|
+
}
|
|
474
|
+
if (typeof n == "object")
|
|
475
|
+
switch (typeof n.tag == "number" && console.error(
|
|
476
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
477
|
+
), n.$$typeof) {
|
|
478
|
+
case Le:
|
|
479
|
+
return (n.displayName || "Context") + ".Provider";
|
|
480
|
+
case Me:
|
|
481
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
482
|
+
case De:
|
|
483
|
+
var p = n.render;
|
|
484
|
+
return n = n.displayName, n || (n = p.displayName || p.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
485
|
+
case qe:
|
|
486
|
+
return p = n.displayName || null, p !== null ? p : v(n.type) || "Memo";
|
|
487
|
+
case Ue:
|
|
488
|
+
p = n._payload, n = n._init;
|
|
489
|
+
try {
|
|
490
|
+
return v(n(p));
|
|
491
|
+
} catch {
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return null;
|
|
495
|
+
}
|
|
496
|
+
function g(n) {
|
|
497
|
+
return typeof n == "string" || typeof n == "function" || n === re || n === We || n === Se || n === Ae || n === ze || n === _t || typeof n == "object" && n !== null && (n.$$typeof === Ue || n.$$typeof === qe || n.$$typeof === Le || n.$$typeof === Me || n.$$typeof === De || n.$$typeof === pe || n.getModuleId !== void 0);
|
|
498
|
+
}
|
|
499
|
+
function f() {
|
|
500
|
+
}
|
|
501
|
+
function h() {
|
|
502
|
+
if (be === 0) {
|
|
503
|
+
Fe = console.log, xe = console.info, Ge = console.warn, Te = console.error, vn = console.group, yn = console.groupCollapsed, _n = console.groupEnd;
|
|
504
|
+
var n = {
|
|
505
|
+
configurable: !0,
|
|
506
|
+
enumerable: !0,
|
|
507
|
+
value: f,
|
|
508
|
+
writable: !0
|
|
509
|
+
};
|
|
510
|
+
Object.defineProperties(console, {
|
|
511
|
+
info: n,
|
|
512
|
+
log: n,
|
|
513
|
+
warn: n,
|
|
514
|
+
error: n,
|
|
515
|
+
group: n,
|
|
516
|
+
groupCollapsed: n,
|
|
517
|
+
groupEnd: n
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
be++;
|
|
521
|
+
}
|
|
522
|
+
function w() {
|
|
523
|
+
if (be--, be === 0) {
|
|
524
|
+
var n = { configurable: !0, enumerable: !0, writable: !0 };
|
|
525
|
+
Object.defineProperties(console, {
|
|
526
|
+
log: N({}, n, { value: Fe }),
|
|
527
|
+
info: N({}, n, { value: xe }),
|
|
528
|
+
warn: N({}, n, { value: Ge }),
|
|
529
|
+
error: N({}, n, { value: Te }),
|
|
530
|
+
group: N({}, n, { value: vn }),
|
|
531
|
+
groupCollapsed: N({}, n, { value: yn }),
|
|
532
|
+
groupEnd: N({}, n, { value: _n })
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
0 > be && console.error(
|
|
536
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
function b(n) {
|
|
540
|
+
if (Wt === void 0)
|
|
541
|
+
try {
|
|
542
|
+
throw Error();
|
|
543
|
+
} catch (E) {
|
|
544
|
+
var p = E.stack.trim().match(/\n( *(at )?)/);
|
|
545
|
+
Wt = p && p[1] || "", En = -1 < E.stack.indexOf(`
|
|
546
|
+
at`) ? " (<anonymous>)" : -1 < E.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
547
|
+
}
|
|
548
|
+
return `
|
|
549
|
+
` + Wt + n + En;
|
|
550
|
+
}
|
|
551
|
+
function T(n, p) {
|
|
552
|
+
if (!n || Ut) return "";
|
|
553
|
+
var E = Ft.get(n);
|
|
554
|
+
if (E !== void 0) return E;
|
|
555
|
+
Ut = !0, E = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
556
|
+
var O = null;
|
|
557
|
+
O = U.H, U.H = null, h();
|
|
558
|
+
try {
|
|
559
|
+
var L = {
|
|
560
|
+
DetermineComponentFrameRoot: function() {
|
|
561
|
+
try {
|
|
562
|
+
if (p) {
|
|
563
|
+
var Ne = function() {
|
|
564
|
+
throw Error();
|
|
565
|
+
};
|
|
566
|
+
if (Object.defineProperty(Ne.prototype, "props", {
|
|
567
|
+
set: function() {
|
|
568
|
+
throw Error();
|
|
569
|
+
}
|
|
570
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
571
|
+
try {
|
|
572
|
+
Reflect.construct(Ne, []);
|
|
573
|
+
} catch (Ie) {
|
|
574
|
+
var Rt = Ie;
|
|
575
|
+
}
|
|
576
|
+
Reflect.construct(n, [], Ne);
|
|
577
|
+
} else {
|
|
578
|
+
try {
|
|
579
|
+
Ne.call();
|
|
580
|
+
} catch (Ie) {
|
|
581
|
+
Rt = Ie;
|
|
582
|
+
}
|
|
583
|
+
n.call(Ne.prototype);
|
|
584
|
+
}
|
|
585
|
+
} else {
|
|
586
|
+
try {
|
|
587
|
+
throw Error();
|
|
588
|
+
} catch (Ie) {
|
|
589
|
+
Rt = Ie;
|
|
590
|
+
}
|
|
591
|
+
(Ne = n()) && typeof Ne.catch == "function" && Ne.catch(function() {
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
} catch (Ie) {
|
|
595
|
+
if (Ie && Rt && typeof Ie.stack == "string")
|
|
596
|
+
return [Ie.stack, Rt.stack];
|
|
597
|
+
}
|
|
598
|
+
return [null, null];
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
L.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
602
|
+
var Y = Object.getOwnPropertyDescriptor(
|
|
603
|
+
L.DetermineComponentFrameRoot,
|
|
604
|
+
"name"
|
|
605
|
+
);
|
|
606
|
+
Y && Y.configurable && Object.defineProperty(
|
|
607
|
+
L.DetermineComponentFrameRoot,
|
|
608
|
+
"name",
|
|
609
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
610
|
+
);
|
|
611
|
+
var D = L.DetermineComponentFrameRoot(), ae = D[0], ie = D[1];
|
|
612
|
+
if (ae && ie) {
|
|
613
|
+
var fe = ae.split(`
|
|
614
|
+
`), _e = ie.split(`
|
|
615
|
+
`);
|
|
616
|
+
for (D = Y = 0; Y < fe.length && !fe[Y].includes(
|
|
617
|
+
"DetermineComponentFrameRoot"
|
|
618
|
+
); )
|
|
619
|
+
Y++;
|
|
620
|
+
for (; D < _e.length && !_e[D].includes(
|
|
621
|
+
"DetermineComponentFrameRoot"
|
|
622
|
+
); )
|
|
623
|
+
D++;
|
|
624
|
+
if (Y === fe.length || D === _e.length)
|
|
625
|
+
for (Y = fe.length - 1, D = _e.length - 1; 1 <= Y && 0 <= D && fe[Y] !== _e[D]; )
|
|
626
|
+
D--;
|
|
627
|
+
for (; 1 <= Y && 0 <= D; Y--, D--)
|
|
628
|
+
if (fe[Y] !== _e[D]) {
|
|
629
|
+
if (Y !== 1 || D !== 1)
|
|
630
|
+
do
|
|
631
|
+
if (Y--, D--, 0 > D || fe[Y] !== _e[D]) {
|
|
632
|
+
var Ke = `
|
|
633
|
+
` + fe[Y].replace(
|
|
634
|
+
" at new ",
|
|
635
|
+
" at "
|
|
636
|
+
);
|
|
637
|
+
return n.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", n.displayName)), typeof n == "function" && Ft.set(n, Ke), Ke;
|
|
638
|
+
}
|
|
639
|
+
while (1 <= Y && 0 <= D);
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
} finally {
|
|
644
|
+
Ut = !1, U.H = O, w(), Error.prepareStackTrace = E;
|
|
645
|
+
}
|
|
646
|
+
return fe = (fe = n ? n.displayName || n.name : "") ? b(fe) : "", typeof n == "function" && Ft.set(n, fe), fe;
|
|
647
|
+
}
|
|
648
|
+
function x(n) {
|
|
649
|
+
if (n == null) return "";
|
|
650
|
+
if (typeof n == "function") {
|
|
651
|
+
var p = n.prototype;
|
|
652
|
+
return T(
|
|
653
|
+
n,
|
|
654
|
+
!(!p || !p.isReactComponent)
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
if (typeof n == "string") return b(n);
|
|
658
|
+
switch (n) {
|
|
659
|
+
case Ae:
|
|
660
|
+
return b("Suspense");
|
|
661
|
+
case ze:
|
|
662
|
+
return b("SuspenseList");
|
|
663
|
+
}
|
|
664
|
+
if (typeof n == "object")
|
|
665
|
+
switch (n.$$typeof) {
|
|
666
|
+
case De:
|
|
667
|
+
return n = T(n.render, !1), n;
|
|
668
|
+
case qe:
|
|
669
|
+
return x(n.type);
|
|
670
|
+
case Ue:
|
|
671
|
+
p = n._payload, n = n._init;
|
|
672
|
+
try {
|
|
673
|
+
return x(n(p));
|
|
674
|
+
} catch {
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
return "";
|
|
678
|
+
}
|
|
679
|
+
function j() {
|
|
680
|
+
var n = U.A;
|
|
681
|
+
return n === null ? null : n.getOwner();
|
|
682
|
+
}
|
|
683
|
+
function P(n) {
|
|
684
|
+
if (Oe.call(n, "key")) {
|
|
685
|
+
var p = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
686
|
+
if (p && p.isReactWarning) return !1;
|
|
687
|
+
}
|
|
688
|
+
return n.key !== void 0;
|
|
689
|
+
}
|
|
690
|
+
function H(n, p) {
|
|
691
|
+
function E() {
|
|
692
|
+
bn || (bn = !0, console.error(
|
|
693
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
694
|
+
p
|
|
695
|
+
));
|
|
696
|
+
}
|
|
697
|
+
E.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
698
|
+
get: E,
|
|
699
|
+
configurable: !0
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
function A() {
|
|
703
|
+
var n = v(this.type);
|
|
704
|
+
return Rn[n] || (Rn[n] = !0, console.error(
|
|
705
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
706
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
707
|
+
}
|
|
708
|
+
function K(n, p, E, O, L, Y) {
|
|
709
|
+
return E = Y.ref, n = {
|
|
710
|
+
$$typeof: I,
|
|
711
|
+
type: n,
|
|
712
|
+
key: p,
|
|
713
|
+
props: Y,
|
|
714
|
+
_owner: L
|
|
715
|
+
}, (E !== void 0 ? E : null) !== null ? Object.defineProperty(n, "ref", {
|
|
716
|
+
enumerable: !1,
|
|
717
|
+
get: A
|
|
718
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
719
|
+
configurable: !1,
|
|
720
|
+
enumerable: !1,
|
|
721
|
+
writable: !0,
|
|
722
|
+
value: 0
|
|
723
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
724
|
+
configurable: !1,
|
|
725
|
+
enumerable: !1,
|
|
726
|
+
writable: !0,
|
|
727
|
+
value: null
|
|
728
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
729
|
+
}
|
|
730
|
+
function B(n, p) {
|
|
731
|
+
return p = K(
|
|
732
|
+
n.type,
|
|
733
|
+
p,
|
|
734
|
+
void 0,
|
|
735
|
+
void 0,
|
|
736
|
+
n._owner,
|
|
737
|
+
n.props
|
|
738
|
+
), p._store.validated = n._store.validated, p;
|
|
739
|
+
}
|
|
740
|
+
function ee(n, p) {
|
|
741
|
+
if (typeof n == "object" && n && n.$$typeof !== Dr) {
|
|
742
|
+
if (ue(n))
|
|
743
|
+
for (var E = 0; E < n.length; E++) {
|
|
744
|
+
var O = n[E];
|
|
745
|
+
q(O) && ne(O, p);
|
|
746
|
+
}
|
|
747
|
+
else if (q(n))
|
|
748
|
+
n._store && (n._store.validated = 1);
|
|
749
|
+
else if (E = o(n), typeof E == "function" && E !== n.entries && (E = E.call(n), E !== n))
|
|
750
|
+
for (; !(n = E.next()).done; )
|
|
751
|
+
q(n.value) && ne(n.value, p);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
function q(n) {
|
|
755
|
+
return typeof n == "object" && n !== null && n.$$typeof === I;
|
|
756
|
+
}
|
|
757
|
+
function ne(n, p) {
|
|
758
|
+
if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, p = te(p), !Tn[p])) {
|
|
759
|
+
Tn[p] = !0;
|
|
760
|
+
var E = "";
|
|
761
|
+
n && n._owner != null && n._owner !== j() && (E = null, typeof n._owner.tag == "number" ? E = v(n._owner.type) : typeof n._owner.name == "string" && (E = n._owner.name), E = " It was passed a child from " + E + ".");
|
|
762
|
+
var O = U.getCurrentStack;
|
|
763
|
+
U.getCurrentStack = function() {
|
|
764
|
+
var L = x(n.type);
|
|
765
|
+
return O && (L += O() || ""), L;
|
|
766
|
+
}, console.error(
|
|
767
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
768
|
+
p,
|
|
769
|
+
E
|
|
770
|
+
), U.getCurrentStack = O;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
function te(n) {
|
|
774
|
+
var p = "", E = j();
|
|
775
|
+
return E && (E = v(E.type)) && (p = `
|
|
776
|
+
|
|
777
|
+
Check the render method of \`` + E + "`."), p || (n = v(n)) && (p = `
|
|
778
|
+
|
|
779
|
+
Check the top-level render call using <` + n + ">."), p;
|
|
780
|
+
}
|
|
781
|
+
function Q(n) {
|
|
782
|
+
var p = { "=": "=0", ":": "=2" };
|
|
783
|
+
return "$" + n.replace(/[=:]/g, function(E) {
|
|
784
|
+
return p[E];
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function J(n, p) {
|
|
788
|
+
return typeof n == "object" && n !== null && n.key != null ? (u(n.key), Q("" + n.key)) : p.toString(36);
|
|
789
|
+
}
|
|
790
|
+
function V() {
|
|
791
|
+
}
|
|
792
|
+
function z(n) {
|
|
793
|
+
switch (n.status) {
|
|
794
|
+
case "fulfilled":
|
|
795
|
+
return n.value;
|
|
796
|
+
case "rejected":
|
|
797
|
+
throw n.reason;
|
|
798
|
+
default:
|
|
799
|
+
switch (typeof n.status == "string" ? n.then(V, V) : (n.status = "pending", n.then(
|
|
800
|
+
function(p) {
|
|
801
|
+
n.status === "pending" && (n.status = "fulfilled", n.value = p);
|
|
802
|
+
},
|
|
803
|
+
function(p) {
|
|
804
|
+
n.status === "pending" && (n.status = "rejected", n.reason = p);
|
|
805
|
+
}
|
|
806
|
+
)), n.status) {
|
|
807
|
+
case "fulfilled":
|
|
808
|
+
return n.value;
|
|
809
|
+
case "rejected":
|
|
810
|
+
throw n.reason;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
throw n;
|
|
814
|
+
}
|
|
815
|
+
function W(n, p, E, O, L) {
|
|
816
|
+
var Y = typeof n;
|
|
817
|
+
(Y === "undefined" || Y === "boolean") && (n = null);
|
|
818
|
+
var D = !1;
|
|
819
|
+
if (n === null) D = !0;
|
|
820
|
+
else
|
|
821
|
+
switch (Y) {
|
|
822
|
+
case "bigint":
|
|
823
|
+
case "string":
|
|
824
|
+
case "number":
|
|
825
|
+
D = !0;
|
|
826
|
+
break;
|
|
827
|
+
case "object":
|
|
828
|
+
switch (n.$$typeof) {
|
|
829
|
+
case I:
|
|
830
|
+
case le:
|
|
831
|
+
D = !0;
|
|
832
|
+
break;
|
|
833
|
+
case Ue:
|
|
834
|
+
return D = n._init, W(
|
|
835
|
+
D(n._payload),
|
|
836
|
+
p,
|
|
837
|
+
E,
|
|
838
|
+
O,
|
|
839
|
+
L
|
|
840
|
+
);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
if (D) {
|
|
844
|
+
D = n, L = L(D);
|
|
845
|
+
var ae = O === "" ? "." + J(D, 0) : O;
|
|
846
|
+
return ue(L) ? (E = "", ae != null && (E = ae.replace(xn, "$&/") + "/"), W(L, p, E, "", function(fe) {
|
|
847
|
+
return fe;
|
|
848
|
+
})) : L != null && (q(L) && (L.key != null && (D && D.key === L.key || u(L.key)), E = B(
|
|
849
|
+
L,
|
|
850
|
+
E + (L.key == null || D && D.key === L.key ? "" : ("" + L.key).replace(
|
|
851
|
+
xn,
|
|
852
|
+
"$&/"
|
|
853
|
+
) + "/") + ae
|
|
854
|
+
), O !== "" && D != null && q(D) && D.key == null && D._store && !D._store.validated && (E._store.validated = 2), L = E), p.push(L)), 1;
|
|
855
|
+
}
|
|
856
|
+
if (D = 0, ae = O === "" ? "." : O + ":", ue(n))
|
|
857
|
+
for (var ie = 0; ie < n.length; ie++)
|
|
858
|
+
O = n[ie], Y = ae + J(O, ie), D += W(
|
|
859
|
+
O,
|
|
860
|
+
p,
|
|
861
|
+
E,
|
|
862
|
+
Y,
|
|
863
|
+
L
|
|
864
|
+
);
|
|
865
|
+
else if (ie = o(n), typeof ie == "function")
|
|
866
|
+
for (ie === n.entries && (On || console.warn(
|
|
867
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
868
|
+
), On = !0), n = ie.call(n), ie = 0; !(O = n.next()).done; )
|
|
869
|
+
O = O.value, Y = ae + J(O, ie++), D += W(
|
|
870
|
+
O,
|
|
871
|
+
p,
|
|
872
|
+
E,
|
|
873
|
+
Y,
|
|
874
|
+
L
|
|
875
|
+
);
|
|
876
|
+
else if (Y === "object") {
|
|
877
|
+
if (typeof n.then == "function")
|
|
878
|
+
return W(
|
|
879
|
+
z(n),
|
|
880
|
+
p,
|
|
881
|
+
E,
|
|
882
|
+
O,
|
|
883
|
+
L
|
|
884
|
+
);
|
|
885
|
+
throw p = String(n), Error(
|
|
886
|
+
"Objects are not valid as a React child (found: " + (p === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : p) + "). If you meant to render a collection of children, use an array instead."
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
return D;
|
|
890
|
+
}
|
|
891
|
+
function k(n, p, E) {
|
|
892
|
+
if (n == null) return n;
|
|
893
|
+
var O = [], L = 0;
|
|
894
|
+
return W(n, O, "", "", function(Y) {
|
|
895
|
+
return p.call(E, Y, L++);
|
|
896
|
+
}), O;
|
|
897
|
+
}
|
|
898
|
+
function C(n) {
|
|
899
|
+
if (n._status === -1) {
|
|
900
|
+
var p = n._result;
|
|
901
|
+
p = p(), p.then(
|
|
902
|
+
function(E) {
|
|
903
|
+
(n._status === 0 || n._status === -1) && (n._status = 1, n._result = E);
|
|
904
|
+
},
|
|
905
|
+
function(E) {
|
|
906
|
+
(n._status === 0 || n._status === -1) && (n._status = 2, n._result = E);
|
|
907
|
+
}
|
|
908
|
+
), n._status === -1 && (n._status = 0, n._result = p);
|
|
909
|
+
}
|
|
910
|
+
if (n._status === 1)
|
|
911
|
+
return p = n._result, p === void 0 && console.error(
|
|
912
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
913
|
+
|
|
914
|
+
Your code should look like:
|
|
915
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
916
|
+
|
|
917
|
+
Did you accidentally put curly braces around the import?`,
|
|
918
|
+
p
|
|
919
|
+
), "default" in p || console.error(
|
|
920
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
921
|
+
|
|
922
|
+
Your code should look like:
|
|
923
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
924
|
+
p
|
|
925
|
+
), p.default;
|
|
926
|
+
throw n._result;
|
|
927
|
+
}
|
|
928
|
+
function R() {
|
|
929
|
+
var n = U.H;
|
|
930
|
+
return n === null && console.error(
|
|
931
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
932
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
933
|
+
2. You might be breaking the Rules of Hooks
|
|
934
|
+
3. You might have more than one copy of React in the same app
|
|
935
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
936
|
+
), n;
|
|
937
|
+
}
|
|
938
|
+
function l() {
|
|
939
|
+
}
|
|
940
|
+
function y(n) {
|
|
941
|
+
if (Et === null)
|
|
942
|
+
try {
|
|
943
|
+
var p = ("require" + Math.random()).slice(0, 7);
|
|
944
|
+
Et = (e && e[p]).call(
|
|
945
|
+
e,
|
|
946
|
+
"timers"
|
|
947
|
+
).setImmediate;
|
|
948
|
+
} catch {
|
|
949
|
+
Et = function(O) {
|
|
950
|
+
Sn === !1 && (Sn = !0, typeof MessageChannel > "u" && console.error(
|
|
951
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
952
|
+
));
|
|
953
|
+
var L = new MessageChannel();
|
|
954
|
+
L.port1.onmessage = O, L.port2.postMessage(void 0);
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
return Et(n);
|
|
958
|
+
}
|
|
959
|
+
function S(n) {
|
|
960
|
+
return 1 < n.length && typeof AggregateError == "function" ? new AggregateError(n) : n[0];
|
|
961
|
+
}
|
|
962
|
+
function $(n, p) {
|
|
963
|
+
p !== bt - 1 && console.error(
|
|
964
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
965
|
+
), bt = p;
|
|
966
|
+
}
|
|
967
|
+
function F(n, p, E) {
|
|
968
|
+
var O = U.actQueue;
|
|
969
|
+
if (O !== null)
|
|
970
|
+
if (O.length !== 0)
|
|
971
|
+
try {
|
|
972
|
+
oe(O), y(function() {
|
|
973
|
+
return F(n, p, E);
|
|
974
|
+
});
|
|
975
|
+
return;
|
|
976
|
+
} catch (L) {
|
|
977
|
+
U.thrownErrors.push(L);
|
|
978
|
+
}
|
|
979
|
+
else U.actQueue = null;
|
|
980
|
+
0 < U.thrownErrors.length ? (O = S(U.thrownErrors), U.thrownErrors.length = 0, E(O)) : p(n);
|
|
981
|
+
}
|
|
982
|
+
function oe(n) {
|
|
983
|
+
if (!Bt) {
|
|
984
|
+
Bt = !0;
|
|
985
|
+
var p = 0;
|
|
986
|
+
try {
|
|
987
|
+
for (; p < n.length; p++) {
|
|
988
|
+
var E = n[p];
|
|
989
|
+
do {
|
|
990
|
+
U.didUsePromise = !1;
|
|
991
|
+
var O = E(!1);
|
|
992
|
+
if (O !== null) {
|
|
993
|
+
if (U.didUsePromise) {
|
|
994
|
+
n[p] = E, n.splice(0, p);
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
E = O;
|
|
998
|
+
} else break;
|
|
999
|
+
} while (!0);
|
|
1000
|
+
}
|
|
1001
|
+
n.length = 0;
|
|
1002
|
+
} catch (L) {
|
|
1003
|
+
n.splice(0, p + 1), U.thrownErrors.push(L);
|
|
1004
|
+
} finally {
|
|
1005
|
+
Bt = !1;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1010
|
+
var I = Symbol.for("react.transitional.element"), le = Symbol.for("react.portal"), re = Symbol.for("react.fragment"), Se = Symbol.for("react.strict_mode"), We = Symbol.for("react.profiler"), Me = Symbol.for("react.consumer"), Le = Symbol.for("react.context"), De = Symbol.for("react.forward_ref"), Ae = Symbol.for("react.suspense"), ze = Symbol.for("react.suspense_list"), qe = Symbol.for("react.memo"), Ue = Symbol.for("react.lazy"), _t = Symbol.for("react.offscreen"), at = Symbol.iterator, ut = {}, m = {
|
|
1011
|
+
isMounted: function() {
|
|
1012
|
+
return !1;
|
|
1013
|
+
},
|
|
1014
|
+
enqueueForceUpdate: function(n) {
|
|
1015
|
+
i(n, "forceUpdate");
|
|
1016
|
+
},
|
|
1017
|
+
enqueueReplaceState: function(n) {
|
|
1018
|
+
i(n, "replaceState");
|
|
1019
|
+
},
|
|
1020
|
+
enqueueSetState: function(n) {
|
|
1021
|
+
i(n, "setState");
|
|
1022
|
+
}
|
|
1023
|
+
}, N = Object.assign, M = {};
|
|
1024
|
+
Object.freeze(M), s.prototype.isReactComponent = {}, s.prototype.setState = function(n, p) {
|
|
1025
|
+
if (typeof n != "object" && typeof n != "function" && n != null)
|
|
1026
|
+
throw Error(
|
|
1027
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1028
|
+
);
|
|
1029
|
+
this.updater.enqueueSetState(this, n, p, "setState");
|
|
1030
|
+
}, s.prototype.forceUpdate = function(n) {
|
|
1031
|
+
this.updater.enqueueForceUpdate(this, n, "forceUpdate");
|
|
1032
|
+
};
|
|
1033
|
+
var Z = {
|
|
1034
|
+
isMounted: [
|
|
1035
|
+
"isMounted",
|
|
1036
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1037
|
+
],
|
|
1038
|
+
replaceState: [
|
|
1039
|
+
"replaceState",
|
|
1040
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1041
|
+
]
|
|
1042
|
+
}, me;
|
|
1043
|
+
for (me in Z)
|
|
1044
|
+
Z.hasOwnProperty(me) && r(me, Z[me]);
|
|
1045
|
+
a.prototype = s.prototype, Z = c.prototype = new a(), Z.constructor = c, N(Z, s.prototype), Z.isPureReactComponent = !0;
|
|
1046
|
+
var ue = Array.isArray, G = Symbol.for("react.client.reference"), U = {
|
|
1047
|
+
H: null,
|
|
1048
|
+
A: null,
|
|
1049
|
+
T: null,
|
|
1050
|
+
S: null,
|
|
1051
|
+
actQueue: null,
|
|
1052
|
+
isBatchingLegacy: !1,
|
|
1053
|
+
didScheduleLegacyUpdate: !1,
|
|
1054
|
+
didUsePromise: !1,
|
|
1055
|
+
thrownErrors: [],
|
|
1056
|
+
getCurrentStack: null
|
|
1057
|
+
}, Oe = Object.prototype.hasOwnProperty, pe = Symbol.for("react.client.reference"), be = 0, Fe, xe, Ge, Te, vn, yn, _n;
|
|
1058
|
+
f.__reactDisabledLog = !0;
|
|
1059
|
+
var Wt, En, Ut = !1, Ft = new (typeof WeakMap == "function" ? WeakMap : Map)(), Dr = Symbol.for("react.client.reference"), bn, wn, Rn = {}, Tn = {}, On = !1, xn = /\/+/g, Cn = typeof reportError == "function" ? reportError : function(n) {
|
|
1060
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1061
|
+
var p = new window.ErrorEvent("error", {
|
|
1062
|
+
bubbles: !0,
|
|
1063
|
+
cancelable: !0,
|
|
1064
|
+
message: typeof n == "object" && n !== null && typeof n.message == "string" ? String(n.message) : String(n),
|
|
1065
|
+
error: n
|
|
1066
|
+
});
|
|
1067
|
+
if (!window.dispatchEvent(p)) return;
|
|
1068
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1069
|
+
process.emit("uncaughtException", n);
|
|
1070
|
+
return;
|
|
1071
|
+
}
|
|
1072
|
+
console.error(n);
|
|
1073
|
+
}, Sn = !1, Et = null, bt = 0, wt = !1, Bt = !1, An = typeof queueMicrotask == "function" ? function(n) {
|
|
1074
|
+
queueMicrotask(function() {
|
|
1075
|
+
return queueMicrotask(n);
|
|
1076
|
+
});
|
|
1077
|
+
} : y;
|
|
1078
|
+
t.Children = {
|
|
1079
|
+
map: k,
|
|
1080
|
+
forEach: function(n, p, E) {
|
|
1081
|
+
k(
|
|
1082
|
+
n,
|
|
1083
|
+
function() {
|
|
1084
|
+
p.apply(this, arguments);
|
|
1085
|
+
},
|
|
1086
|
+
E
|
|
1087
|
+
);
|
|
1088
|
+
},
|
|
1089
|
+
count: function(n) {
|
|
1090
|
+
var p = 0;
|
|
1091
|
+
return k(n, function() {
|
|
1092
|
+
p++;
|
|
1093
|
+
}), p;
|
|
1094
|
+
},
|
|
1095
|
+
toArray: function(n) {
|
|
1096
|
+
return k(n, function(p) {
|
|
1097
|
+
return p;
|
|
1098
|
+
}) || [];
|
|
1099
|
+
},
|
|
1100
|
+
only: function(n) {
|
|
1101
|
+
if (!q(n))
|
|
1102
|
+
throw Error(
|
|
1103
|
+
"React.Children.only expected to receive a single React element child."
|
|
1104
|
+
);
|
|
1105
|
+
return n;
|
|
1106
|
+
}
|
|
1107
|
+
}, t.Component = s, t.Fragment = re, t.Profiler = We, t.PureComponent = c, t.StrictMode = Se, t.Suspense = Ae, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = U, t.act = function(n) {
|
|
1108
|
+
var p = U.actQueue, E = bt;
|
|
1109
|
+
bt++;
|
|
1110
|
+
var O = U.actQueue = p !== null ? p : [], L = !1;
|
|
1111
|
+
try {
|
|
1112
|
+
var Y = n();
|
|
1113
|
+
} catch (ie) {
|
|
1114
|
+
U.thrownErrors.push(ie);
|
|
1115
|
+
}
|
|
1116
|
+
if (0 < U.thrownErrors.length)
|
|
1117
|
+
throw $(p, E), n = S(U.thrownErrors), U.thrownErrors.length = 0, n;
|
|
1118
|
+
if (Y !== null && typeof Y == "object" && typeof Y.then == "function") {
|
|
1119
|
+
var D = Y;
|
|
1120
|
+
return An(function() {
|
|
1121
|
+
L || wt || (wt = !0, console.error(
|
|
1122
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1123
|
+
));
|
|
1124
|
+
}), {
|
|
1125
|
+
then: function(ie, fe) {
|
|
1126
|
+
L = !0, D.then(
|
|
1127
|
+
function(_e) {
|
|
1128
|
+
if ($(p, E), E === 0) {
|
|
1129
|
+
try {
|
|
1130
|
+
oe(O), y(function() {
|
|
1131
|
+
return F(
|
|
1132
|
+
_e,
|
|
1133
|
+
ie,
|
|
1134
|
+
fe
|
|
1135
|
+
);
|
|
1136
|
+
});
|
|
1137
|
+
} catch (Ne) {
|
|
1138
|
+
U.thrownErrors.push(Ne);
|
|
1139
|
+
}
|
|
1140
|
+
if (0 < U.thrownErrors.length) {
|
|
1141
|
+
var Ke = S(
|
|
1142
|
+
U.thrownErrors
|
|
1143
|
+
);
|
|
1144
|
+
U.thrownErrors.length = 0, fe(Ke);
|
|
1145
|
+
}
|
|
1146
|
+
} else ie(_e);
|
|
1147
|
+
},
|
|
1148
|
+
function(_e) {
|
|
1149
|
+
$(p, E), 0 < U.thrownErrors.length && (_e = S(
|
|
1150
|
+
U.thrownErrors
|
|
1151
|
+
), U.thrownErrors.length = 0), fe(_e);
|
|
1152
|
+
}
|
|
1153
|
+
);
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
var ae = Y;
|
|
1158
|
+
if ($(p, E), E === 0 && (oe(O), O.length !== 0 && An(function() {
|
|
1159
|
+
L || wt || (wt = !0, console.error(
|
|
1160
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1161
|
+
));
|
|
1162
|
+
}), U.actQueue = null), 0 < U.thrownErrors.length)
|
|
1163
|
+
throw n = S(U.thrownErrors), U.thrownErrors.length = 0, n;
|
|
1164
|
+
return {
|
|
1165
|
+
then: function(ie, fe) {
|
|
1166
|
+
L = !0, E === 0 ? (U.actQueue = O, y(function() {
|
|
1167
|
+
return F(
|
|
1168
|
+
ae,
|
|
1169
|
+
ie,
|
|
1170
|
+
fe
|
|
1171
|
+
);
|
|
1172
|
+
})) : ie(ae);
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
}, t.cache = function(n) {
|
|
1176
|
+
return function() {
|
|
1177
|
+
return n.apply(null, arguments);
|
|
1178
|
+
};
|
|
1179
|
+
}, t.cloneElement = function(n, p, E) {
|
|
1180
|
+
if (n == null)
|
|
1181
|
+
throw Error(
|
|
1182
|
+
"The argument must be a React element, but you passed " + n + "."
|
|
1183
|
+
);
|
|
1184
|
+
var O = N({}, n.props), L = n.key, Y = n._owner;
|
|
1185
|
+
if (p != null) {
|
|
1186
|
+
var D;
|
|
1187
|
+
e: {
|
|
1188
|
+
if (Oe.call(p, "ref") && (D = Object.getOwnPropertyDescriptor(
|
|
1189
|
+
p,
|
|
1190
|
+
"ref"
|
|
1191
|
+
).get) && D.isReactWarning) {
|
|
1192
|
+
D = !1;
|
|
1193
|
+
break e;
|
|
1194
|
+
}
|
|
1195
|
+
D = p.ref !== void 0;
|
|
1196
|
+
}
|
|
1197
|
+
D && (Y = j()), P(p) && (u(p.key), L = "" + p.key);
|
|
1198
|
+
for (ae in p)
|
|
1199
|
+
!Oe.call(p, ae) || ae === "key" || ae === "__self" || ae === "__source" || ae === "ref" && p.ref === void 0 || (O[ae] = p[ae]);
|
|
1200
|
+
}
|
|
1201
|
+
var ae = arguments.length - 2;
|
|
1202
|
+
if (ae === 1) O.children = E;
|
|
1203
|
+
else if (1 < ae) {
|
|
1204
|
+
D = Array(ae);
|
|
1205
|
+
for (var ie = 0; ie < ae; ie++)
|
|
1206
|
+
D[ie] = arguments[ie + 2];
|
|
1207
|
+
O.children = D;
|
|
1208
|
+
}
|
|
1209
|
+
for (O = K(n.type, L, void 0, void 0, Y, O), L = 2; L < arguments.length; L++)
|
|
1210
|
+
ee(arguments[L], O.type);
|
|
1211
|
+
return O;
|
|
1212
|
+
}, t.createContext = function(n) {
|
|
1213
|
+
return n = {
|
|
1214
|
+
$$typeof: Le,
|
|
1215
|
+
_currentValue: n,
|
|
1216
|
+
_currentValue2: n,
|
|
1217
|
+
_threadCount: 0,
|
|
1218
|
+
Provider: null,
|
|
1219
|
+
Consumer: null
|
|
1220
|
+
}, n.Provider = n, n.Consumer = {
|
|
1221
|
+
$$typeof: Me,
|
|
1222
|
+
_context: n
|
|
1223
|
+
}, n._currentRenderer = null, n._currentRenderer2 = null, n;
|
|
1224
|
+
}, t.createElement = function(n, p, E) {
|
|
1225
|
+
if (g(n))
|
|
1226
|
+
for (var O = 2; O < arguments.length; O++)
|
|
1227
|
+
ee(arguments[O], n);
|
|
1228
|
+
else {
|
|
1229
|
+
if (O = "", (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), n === null) var L = "null";
|
|
1230
|
+
else
|
|
1231
|
+
ue(n) ? L = "array" : n !== void 0 && n.$$typeof === I ? (L = "<" + (v(n.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : L = typeof n;
|
|
1232
|
+
console.error(
|
|
1233
|
+
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
1234
|
+
L,
|
|
1235
|
+
O
|
|
1236
|
+
);
|
|
1237
|
+
}
|
|
1238
|
+
var Y;
|
|
1239
|
+
if (O = {}, L = null, p != null)
|
|
1240
|
+
for (Y in wn || !("__self" in p) || "key" in p || (wn = !0, console.warn(
|
|
1241
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1242
|
+
)), P(p) && (u(p.key), L = "" + p.key), p)
|
|
1243
|
+
Oe.call(p, Y) && Y !== "key" && Y !== "__self" && Y !== "__source" && (O[Y] = p[Y]);
|
|
1244
|
+
var D = arguments.length - 2;
|
|
1245
|
+
if (D === 1) O.children = E;
|
|
1246
|
+
else if (1 < D) {
|
|
1247
|
+
for (var ae = Array(D), ie = 0; ie < D; ie++)
|
|
1248
|
+
ae[ie] = arguments[ie + 2];
|
|
1249
|
+
Object.freeze && Object.freeze(ae), O.children = ae;
|
|
1250
|
+
}
|
|
1251
|
+
if (n && n.defaultProps)
|
|
1252
|
+
for (Y in D = n.defaultProps, D)
|
|
1253
|
+
O[Y] === void 0 && (O[Y] = D[Y]);
|
|
1254
|
+
return L && H(
|
|
1255
|
+
O,
|
|
1256
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
1257
|
+
), K(n, L, void 0, void 0, j(), O);
|
|
1258
|
+
}, t.createRef = function() {
|
|
1259
|
+
var n = { current: null };
|
|
1260
|
+
return Object.seal(n), n;
|
|
1261
|
+
}, t.forwardRef = function(n) {
|
|
1262
|
+
n != null && n.$$typeof === qe ? console.error(
|
|
1263
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1264
|
+
) : typeof n != "function" ? console.error(
|
|
1265
|
+
"forwardRef requires a render function but was given %s.",
|
|
1266
|
+
n === null ? "null" : typeof n
|
|
1267
|
+
) : n.length !== 0 && n.length !== 2 && console.error(
|
|
1268
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1269
|
+
n.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1270
|
+
), n != null && n.defaultProps != null && console.error(
|
|
1271
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1272
|
+
);
|
|
1273
|
+
var p = { $$typeof: De, render: n }, E;
|
|
1274
|
+
return Object.defineProperty(p, "displayName", {
|
|
1275
|
+
enumerable: !1,
|
|
1276
|
+
configurable: !0,
|
|
1277
|
+
get: function() {
|
|
1278
|
+
return E;
|
|
1279
|
+
},
|
|
1280
|
+
set: function(O) {
|
|
1281
|
+
E = O, n.name || n.displayName || (Object.defineProperty(n, "name", { value: O }), n.displayName = O);
|
|
1282
|
+
}
|
|
1283
|
+
}), p;
|
|
1284
|
+
}, t.isValidElement = q, t.lazy = function(n) {
|
|
1285
|
+
return {
|
|
1286
|
+
$$typeof: Ue,
|
|
1287
|
+
_payload: { _status: -1, _result: n },
|
|
1288
|
+
_init: C
|
|
1289
|
+
};
|
|
1290
|
+
}, t.memo = function(n, p) {
|
|
1291
|
+
g(n) || console.error(
|
|
1292
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1293
|
+
n === null ? "null" : typeof n
|
|
1294
|
+
), p = {
|
|
1295
|
+
$$typeof: qe,
|
|
1296
|
+
type: n,
|
|
1297
|
+
compare: p === void 0 ? null : p
|
|
1298
|
+
};
|
|
1299
|
+
var E;
|
|
1300
|
+
return Object.defineProperty(p, "displayName", {
|
|
1301
|
+
enumerable: !1,
|
|
1302
|
+
configurable: !0,
|
|
1303
|
+
get: function() {
|
|
1304
|
+
return E;
|
|
1305
|
+
},
|
|
1306
|
+
set: function(O) {
|
|
1307
|
+
E = O, n.name || n.displayName || (Object.defineProperty(n, "name", { value: O }), n.displayName = O);
|
|
1308
|
+
}
|
|
1309
|
+
}), p;
|
|
1310
|
+
}, t.startTransition = function(n) {
|
|
1311
|
+
var p = U.T, E = {};
|
|
1312
|
+
U.T = E, E._updatedFibers = /* @__PURE__ */ new Set();
|
|
1313
|
+
try {
|
|
1314
|
+
var O = n(), L = U.S;
|
|
1315
|
+
L !== null && L(E, O), typeof O == "object" && O !== null && typeof O.then == "function" && O.then(l, Cn);
|
|
1316
|
+
} catch (Y) {
|
|
1317
|
+
Cn(Y);
|
|
1318
|
+
} finally {
|
|
1319
|
+
p === null && E._updatedFibers && (n = E._updatedFibers.size, E._updatedFibers.clear(), 10 < n && console.warn(
|
|
1320
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1321
|
+
)), U.T = p;
|
|
1322
|
+
}
|
|
1323
|
+
}, t.unstable_useCacheRefresh = function() {
|
|
1324
|
+
return R().useCacheRefresh();
|
|
1325
|
+
}, t.use = function(n) {
|
|
1326
|
+
return R().use(n);
|
|
1327
|
+
}, t.useActionState = function(n, p, E) {
|
|
1328
|
+
return R().useActionState(
|
|
1329
|
+
n,
|
|
1330
|
+
p,
|
|
1331
|
+
E
|
|
1332
|
+
);
|
|
1333
|
+
}, t.useCallback = function(n, p) {
|
|
1334
|
+
return R().useCallback(n, p);
|
|
1335
|
+
}, t.useContext = function(n) {
|
|
1336
|
+
var p = R();
|
|
1337
|
+
return n.$$typeof === Me && console.error(
|
|
1338
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1339
|
+
), p.useContext(n);
|
|
1340
|
+
}, t.useDebugValue = function(n, p) {
|
|
1341
|
+
return R().useDebugValue(n, p);
|
|
1342
|
+
}, t.useDeferredValue = function(n, p) {
|
|
1343
|
+
return R().useDeferredValue(n, p);
|
|
1344
|
+
}, t.useEffect = function(n, p) {
|
|
1345
|
+
return R().useEffect(n, p);
|
|
1346
|
+
}, t.useId = function() {
|
|
1347
|
+
return R().useId();
|
|
1348
|
+
}, t.useImperativeHandle = function(n, p, E) {
|
|
1349
|
+
return R().useImperativeHandle(n, p, E);
|
|
1350
|
+
}, t.useInsertionEffect = function(n, p) {
|
|
1351
|
+
return R().useInsertionEffect(n, p);
|
|
1352
|
+
}, t.useLayoutEffect = function(n, p) {
|
|
1353
|
+
return R().useLayoutEffect(n, p);
|
|
1354
|
+
}, t.useMemo = function(n, p) {
|
|
1355
|
+
return R().useMemo(n, p);
|
|
1356
|
+
}, t.useOptimistic = function(n, p) {
|
|
1357
|
+
return R().useOptimistic(n, p);
|
|
1358
|
+
}, t.useReducer = function(n, p, E) {
|
|
1359
|
+
return R().useReducer(n, p, E);
|
|
1360
|
+
}, t.useRef = function(n) {
|
|
1361
|
+
return R().useRef(n);
|
|
1362
|
+
}, t.useState = function(n) {
|
|
1363
|
+
return R().useState(n);
|
|
1364
|
+
}, t.useSyncExternalStore = function(n, p, E) {
|
|
1365
|
+
return R().useSyncExternalStore(
|
|
1366
|
+
n,
|
|
1367
|
+
p,
|
|
1368
|
+
E
|
|
1369
|
+
);
|
|
1370
|
+
}, t.useTransition = function() {
|
|
1371
|
+
return R().useTransition();
|
|
1372
|
+
}, t.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1373
|
+
}();
|
|
1374
|
+
}(ft, ft.exports)), ft.exports;
|
|
1375
|
+
}
|
|
1376
|
+
var kn;
|
|
1377
|
+
function Lt() {
|
|
1378
|
+
return kn || (kn = 1, process.env.NODE_ENV === "production" ? Tt.exports = Ir() : Tt.exports = $r()), Tt.exports;
|
|
1379
|
+
}
|
|
1380
|
+
var _ = Lt();
|
|
1381
|
+
const se = /* @__PURE__ */ ir(_), Yr = /* @__PURE__ */ zr({
|
|
1382
|
+
__proto__: null,
|
|
1383
|
+
default: se
|
|
1384
|
+
}, [_]);
|
|
1385
|
+
var Vt = { exports: {} };
|
|
1386
|
+
/*!
|
|
1387
|
+
Copyright (c) 2018 Jed Watson.
|
|
1388
|
+
Licensed under the MIT License (MIT), see
|
|
1389
|
+
http://jedwatson.github.io/classnames
|
|
1390
|
+
*/
|
|
1391
|
+
var jn;
|
|
1392
|
+
function Hr() {
|
|
1393
|
+
return jn || (jn = 1, function(e) {
|
|
1394
|
+
(function() {
|
|
1395
|
+
var t = {}.hasOwnProperty;
|
|
1396
|
+
function r() {
|
|
1397
|
+
for (var s = "", a = 0; a < arguments.length; a++) {
|
|
1398
|
+
var c = arguments[a];
|
|
1399
|
+
c && (s = i(s, o(c)));
|
|
1400
|
+
}
|
|
1401
|
+
return s;
|
|
1402
|
+
}
|
|
1403
|
+
function o(s) {
|
|
1404
|
+
if (typeof s == "string" || typeof s == "number")
|
|
1405
|
+
return s;
|
|
1406
|
+
if (typeof s != "object")
|
|
1407
|
+
return "";
|
|
1408
|
+
if (Array.isArray(s))
|
|
1409
|
+
return r.apply(null, s);
|
|
1410
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
1411
|
+
return s.toString();
|
|
1412
|
+
var a = "";
|
|
1413
|
+
for (var c in s)
|
|
1414
|
+
t.call(s, c) && s[c] && (a = i(a, c));
|
|
1415
|
+
return a;
|
|
1416
|
+
}
|
|
1417
|
+
function i(s, a) {
|
|
1418
|
+
return a ? s ? s + " " + a : s + a : s;
|
|
1419
|
+
}
|
|
1420
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1421
|
+
})();
|
|
1422
|
+
}(Vt)), Vt.exports;
|
|
1423
|
+
}
|
|
1424
|
+
var Wr = Hr();
|
|
1425
|
+
const nt = /* @__PURE__ */ ir(Wr), dt = (e) => /* @__PURE__ */ se.createElement("span", { className: "icon-" + e.icon }), Ur = "_wrapper_1njaz_1", Fr = "_label_1njaz_52", Br = "_stroke_1njaz_141", Vr = "_disabled_1njaz_145", de = {
|
|
1426
|
+
wrapper: Ur,
|
|
1427
|
+
"lead-icon": "_lead-icon_1njaz_7",
|
|
1428
|
+
"tail-icon": "_tail-icon_1njaz_8",
|
|
1429
|
+
"color--gray": "_color--gray_1njaz_16",
|
|
1430
|
+
"color--blue": "_color--blue_1njaz_20",
|
|
1431
|
+
"color--green": "_color--green_1njaz_24",
|
|
1432
|
+
"color--orange": "_color--orange_1njaz_28",
|
|
1433
|
+
"color--red": "_color--red_1njaz_32",
|
|
1434
|
+
"color--purple": "_color--purple_1njaz_36",
|
|
1435
|
+
"color--white": "_color--white_1njaz_40",
|
|
1436
|
+
"color--surface": "_color--surface_1njaz_44",
|
|
1437
|
+
"color--white-destructive": "_color--white-destructive_1njaz_48",
|
|
1438
|
+
label: Fr,
|
|
1439
|
+
"color--surface-destructive": "_color--surface-destructive_1njaz_55",
|
|
1440
|
+
"size--large": "_size--large_1njaz_63",
|
|
1441
|
+
"size--medium": "_size--medium_1njaz_79",
|
|
1442
|
+
"size--small": "_size--small_1njaz_95",
|
|
1443
|
+
"size--extra-small": "_size--extra-small_1njaz_111",
|
|
1444
|
+
"shape--rounded": "_shape--rounded_1njaz_125",
|
|
1445
|
+
"shape--pill": "_shape--pill_1njaz_137",
|
|
1446
|
+
stroke: Br,
|
|
1447
|
+
disabled: Vr
|
|
1448
|
+
}, ms = ({
|
|
1449
|
+
color: e = "gray",
|
|
1450
|
+
size: t = "md",
|
|
1451
|
+
shape: r = "rounded",
|
|
1452
|
+
stroke: o,
|
|
1453
|
+
disabled: i,
|
|
1454
|
+
label: s,
|
|
1455
|
+
leadicon: a,
|
|
1456
|
+
tailicon: c
|
|
1457
|
+
}) => {
|
|
1458
|
+
const d = se.useMemo(
|
|
1459
|
+
() => nt(
|
|
1460
|
+
de.wrapper,
|
|
1461
|
+
{
|
|
1462
|
+
[de["color--gray"]]: e === "gray",
|
|
1463
|
+
[de["color--blue"]]: e === "blue",
|
|
1464
|
+
[de["color--green"]]: e === "green",
|
|
1465
|
+
[de["color--orange"]]: e === "orange",
|
|
1466
|
+
[de["color--red"]]: e === "red",
|
|
1467
|
+
[de["color--purple"]]: e === "purple",
|
|
1468
|
+
[de["color--white"]]: e === "white",
|
|
1469
|
+
[de["color--surface"]]: e === "surface",
|
|
1470
|
+
[de["color--white-destructive"]]: e === "white-destructive",
|
|
1471
|
+
[de["color--surface-destructive"]]: e === "surface-destructive"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
[de["size--large"]]: t === "lg",
|
|
1475
|
+
[de["size--medium"]]: t === "md",
|
|
1476
|
+
[de["size--small"]]: t === "sm",
|
|
1477
|
+
[de["size--extra-small"]]: t === "xs"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
[de["shape--rounded"]]: r === "rounded",
|
|
1481
|
+
[de["shape--pill"]]: r === "pill"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
[de.stroke]: o
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
[de.disabled]: i
|
|
1488
|
+
}
|
|
1489
|
+
),
|
|
1490
|
+
[e, t, r, o, i]
|
|
1491
|
+
);
|
|
1492
|
+
return /* @__PURE__ */ se.createElement("div", { className: d }, a && /* @__PURE__ */ se.createElement("span", { className: de["lead-icon"] }, /* @__PURE__ */ se.createElement(dt, { icon: a })), /* @__PURE__ */ se.createElement("span", { className: de.label }, s), c && /* @__PURE__ */ se.createElement("span", { className: de["tail-icon"] }, /* @__PURE__ */ se.createElement(dt, { icon: c })));
|
|
1493
|
+
}, qr = "_wrapper_f5r3l_1", Gr = "_badge_f5r3l_18", Kr = "_label_f5r3l_29", Xr = "_text_f5r3l_52", he = {
|
|
1494
|
+
wrapper: qr,
|
|
1495
|
+
"lead-icon": "_lead-icon_f5r3l_10",
|
|
1496
|
+
badge: Gr,
|
|
1497
|
+
label: Kr,
|
|
1498
|
+
"tail-icon": "_tail-icon_f5r3l_32",
|
|
1499
|
+
"size--large": "_size--large_f5r3l_41",
|
|
1500
|
+
text: Xr,
|
|
1501
|
+
"size--medium": "_size--medium_f5r3l_69",
|
|
1502
|
+
"size--small": "_size--small_f5r3l_97",
|
|
1503
|
+
"size--extra-small": "_size--extra-small_f5r3l_125",
|
|
1504
|
+
"style--primary": "_style--primary_f5r3l_151",
|
|
1505
|
+
"style--secondary": "_style--secondary_f5r3l_169",
|
|
1506
|
+
"style--tertiary": "_style--tertiary_f5r3l_200",
|
|
1507
|
+
"style--ghost": "_style--ghost_f5r3l_227",
|
|
1508
|
+
"target--destructive": "_target--destructive_f5r3l_256",
|
|
1509
|
+
"shape--rounded": "_shape--rounded_f5r3l_375",
|
|
1510
|
+
"shape--pill": "_shape--pill_f5r3l_387"
|
|
1511
|
+
}, gs = ({
|
|
1512
|
+
size: e = "md",
|
|
1513
|
+
style: t = "primary",
|
|
1514
|
+
shape: r = "rounded",
|
|
1515
|
+
target: o,
|
|
1516
|
+
leadicon: i,
|
|
1517
|
+
tailicon: s,
|
|
1518
|
+
label: a,
|
|
1519
|
+
...c
|
|
1520
|
+
}) => {
|
|
1521
|
+
const d = se.useMemo(
|
|
1522
|
+
() => nt(
|
|
1523
|
+
he.wrapper,
|
|
1524
|
+
{
|
|
1525
|
+
[he["size--large"]]: e === "lg",
|
|
1526
|
+
[he["size--medium"]]: e === "md",
|
|
1527
|
+
[he["size--small"]]: e === "sm",
|
|
1528
|
+
[he["size--extra-small"]]: e === "xs"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
[he["style--primary"]]: t === "primary",
|
|
1532
|
+
[he["style--secondary"]]: t === "secondary",
|
|
1533
|
+
[he["style--tertiary"]]: t === "tertiary",
|
|
1534
|
+
[he["style--ghost"]]: t === "ghost"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
[he["target--destructive"]]: o === "destructive"
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
[he["shape--rounded"]]: r === "rounded",
|
|
1541
|
+
[he["shape--pill"]]: r === "pill"
|
|
1542
|
+
}
|
|
1543
|
+
),
|
|
1544
|
+
[e, t, o, r]
|
|
1545
|
+
);
|
|
1546
|
+
return /* @__PURE__ */ se.createElement("button", { ...c, className: d }, i && /* @__PURE__ */ se.createElement("div", { className: he["lead-icon"] }, /* @__PURE__ */ se.createElement(dt, { icon: i })), /* @__PURE__ */ se.createElement("div", { className: he.text }, c.children), a && /* @__PURE__ */ se.createElement("div", { className: he.badge }, /* @__PURE__ */ se.createElement("span", { className: he.label }, a)), s && /* @__PURE__ */ se.createElement("div", { className: he["tail-icon"] }, /* @__PURE__ */ se.createElement(dt, { icon: s })));
|
|
1547
|
+
}, ge = {
|
|
1548
|
+
"font-size__h1": "_font-size__h1_yyj49_1",
|
|
1549
|
+
"font-size__h2": "_font-size__h2_yyj49_6",
|
|
1550
|
+
"font-size__h3": "_font-size__h3_yyj49_11",
|
|
1551
|
+
"font-size__h4": "_font-size__h4_yyj49_16",
|
|
1552
|
+
"font-size__h5": "_font-size__h5_yyj49_21",
|
|
1553
|
+
"font-size__h6": "_font-size__h6_yyj49_26",
|
|
1554
|
+
"font-size__body-l": "_font-size__body-l_yyj49_31",
|
|
1555
|
+
"font-size__body-m": "_font-size__body-m_yyj49_36",
|
|
1556
|
+
"font-size__body-s": "_font-size__body-s_yyj49_41",
|
|
1557
|
+
"font-size__caption-l": "_font-size__caption-l_yyj49_46",
|
|
1558
|
+
"font-size__caption-m": "_font-size__caption-m_yyj49_51",
|
|
1559
|
+
"font-size__caption-s": "_font-size__caption-s_yyj49_56",
|
|
1560
|
+
"font-weight__light": "_font-weight__light_yyj49_62",
|
|
1561
|
+
"font-weight__regular": "_font-weight__regular_yyj49_65",
|
|
1562
|
+
"font-weight__medium": "_font-weight__medium_yyj49_68",
|
|
1563
|
+
"font-weight__bold": "_font-weight__bold_yyj49_71",
|
|
1564
|
+
"font-weight__semi-bold": "_font-weight__semi-bold_yyj49_74",
|
|
1565
|
+
"font-weight__extra-bold": "_font-weight__extra-bold_yyj49_77",
|
|
1566
|
+
"font-weight__black": "_font-weight__black_yyj49_80"
|
|
1567
|
+
}, sr = (e) => {
|
|
1568
|
+
const t = se.useMemo(
|
|
1569
|
+
() => nt(
|
|
1570
|
+
{
|
|
1571
|
+
[ge["font-size__h1"]]: e.size === "h1",
|
|
1572
|
+
[ge["font-size__h2"]]: e.size === "h2",
|
|
1573
|
+
[ge["font-size__h3"]]: e.size === "h3",
|
|
1574
|
+
[ge["font-size__h4"]]: e.size === "h4",
|
|
1575
|
+
[ge["font-size__h5"]]: e.size === "h5",
|
|
1576
|
+
[ge["font-size__h6"]]: e.size === "h6",
|
|
1577
|
+
[ge["font-size__body-l"]]: e.size === "body-l",
|
|
1578
|
+
[ge["font-size__body-m"]]: e.size === "body-m",
|
|
1579
|
+
[ge["font-size__body-s"]]: e.size === "body-s",
|
|
1580
|
+
[ge["font-size__caption-l"]]: e.size === "caption-l",
|
|
1581
|
+
[ge["font-size__caption-m"]]: e.size === "caption-m",
|
|
1582
|
+
[ge["font-size__caption-s"]]: e.size === "caption-s"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
[ge["font-weight__light"]]: e.weight === "light",
|
|
1586
|
+
[ge["font-weight__regular"]]: e.weight === "regular",
|
|
1587
|
+
[ge["font-weight__medium"]]: e.weight === "medium",
|
|
1588
|
+
[ge["font-weight__semi-bold"]]: e.weight === "semi-bold",
|
|
1589
|
+
[ge["font-weight__bold"]]: e.weight === "bold",
|
|
1590
|
+
[ge["font-weight__extra-bold"]]: e.weight === "extra-bold",
|
|
1591
|
+
[ge["font-weight__black"]]: e.weight === "black"
|
|
1592
|
+
}
|
|
1593
|
+
),
|
|
1594
|
+
[e.size, e.weight]
|
|
1595
|
+
);
|
|
1596
|
+
return se.Children.map(e.children, (r) => {
|
|
1597
|
+
if (se.isValidElement(r)) {
|
|
1598
|
+
const o = r;
|
|
1599
|
+
return se.cloneElement(o, {
|
|
1600
|
+
className: nt(t, o.props.className)
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
return r;
|
|
1604
|
+
});
|
|
1605
|
+
};
|
|
1606
|
+
function Dt() {
|
|
1607
|
+
return typeof window < "u";
|
|
1608
|
+
}
|
|
1609
|
+
function st(e) {
|
|
1610
|
+
return ar(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1611
|
+
}
|
|
1612
|
+
function Ee(e) {
|
|
1613
|
+
var t;
|
|
1614
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1615
|
+
}
|
|
1616
|
+
function je(e) {
|
|
1617
|
+
var t;
|
|
1618
|
+
return (t = (ar(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1619
|
+
}
|
|
1620
|
+
function ar(e) {
|
|
1621
|
+
return Dt() ? e instanceof Node || e instanceof Ee(e).Node : !1;
|
|
1622
|
+
}
|
|
1623
|
+
function ce(e) {
|
|
1624
|
+
return Dt() ? e instanceof Element || e instanceof Ee(e).Element : !1;
|
|
1625
|
+
}
|
|
1626
|
+
function we(e) {
|
|
1627
|
+
return Dt() ? e instanceof HTMLElement || e instanceof Ee(e).HTMLElement : !1;
|
|
1628
|
+
}
|
|
1629
|
+
function nn(e) {
|
|
1630
|
+
return !Dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ee(e).ShadowRoot;
|
|
1631
|
+
}
|
|
1632
|
+
function pt(e) {
|
|
1633
|
+
const {
|
|
1634
|
+
overflow: t,
|
|
1635
|
+
overflowX: r,
|
|
1636
|
+
overflowY: o,
|
|
1637
|
+
display: i
|
|
1638
|
+
} = Re(e);
|
|
1639
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + r) && !["inline", "contents"].includes(i);
|
|
1640
|
+
}
|
|
1641
|
+
function Qr(e) {
|
|
1642
|
+
return ["table", "td", "th"].includes(st(e));
|
|
1643
|
+
}
|
|
1644
|
+
function zt(e) {
|
|
1645
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
1646
|
+
try {
|
|
1647
|
+
return e.matches(t);
|
|
1648
|
+
} catch {
|
|
1649
|
+
return !1;
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
function ln(e) {
|
|
1654
|
+
const t = It(), r = ce(e) ? Re(e) : e;
|
|
1655
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => r[o] ? r[o] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (r.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (r.contain || "").includes(o));
|
|
1656
|
+
}
|
|
1657
|
+
function Zr(e) {
|
|
1658
|
+
let t = He(e);
|
|
1659
|
+
for (; we(t) && !Ye(t); ) {
|
|
1660
|
+
if (ln(t))
|
|
1661
|
+
return t;
|
|
1662
|
+
if (zt(t))
|
|
1663
|
+
return null;
|
|
1664
|
+
t = He(t);
|
|
1665
|
+
}
|
|
1666
|
+
return null;
|
|
1667
|
+
}
|
|
1668
|
+
function It() {
|
|
1669
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1670
|
+
}
|
|
1671
|
+
function Ye(e) {
|
|
1672
|
+
return ["html", "body", "#document"].includes(st(e));
|
|
1673
|
+
}
|
|
1674
|
+
function Re(e) {
|
|
1675
|
+
return Ee(e).getComputedStyle(e);
|
|
1676
|
+
}
|
|
1677
|
+
function $t(e) {
|
|
1678
|
+
return ce(e) ? {
|
|
1679
|
+
scrollLeft: e.scrollLeft,
|
|
1680
|
+
scrollTop: e.scrollTop
|
|
1681
|
+
} : {
|
|
1682
|
+
scrollLeft: e.scrollX,
|
|
1683
|
+
scrollTop: e.scrollY
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
function He(e) {
|
|
1687
|
+
if (st(e) === "html")
|
|
1688
|
+
return e;
|
|
1689
|
+
const t = (
|
|
1690
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1691
|
+
e.assignedSlot || // DOM Element detected.
|
|
1692
|
+
e.parentNode || // ShadowRoot detected.
|
|
1693
|
+
nn(e) && e.host || // Fallback.
|
|
1694
|
+
je(e)
|
|
1695
|
+
);
|
|
1696
|
+
return nn(t) ? t.host : t;
|
|
1697
|
+
}
|
|
1698
|
+
function ur(e) {
|
|
1699
|
+
const t = He(e);
|
|
1700
|
+
return Ye(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : we(t) && pt(t) ? t : ur(t);
|
|
1701
|
+
}
|
|
1702
|
+
function Ve(e, t, r) {
|
|
1703
|
+
var o;
|
|
1704
|
+
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
1705
|
+
const i = ur(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Ee(i);
|
|
1706
|
+
if (s) {
|
|
1707
|
+
const c = rn(a);
|
|
1708
|
+
return t.concat(a, a.visualViewport || [], pt(i) ? i : [], c && r ? Ve(c) : []);
|
|
1709
|
+
}
|
|
1710
|
+
return t.concat(i, Ve(i, [], r));
|
|
1711
|
+
}
|
|
1712
|
+
function rn(e) {
|
|
1713
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1714
|
+
}
|
|
1715
|
+
function on(e) {
|
|
1716
|
+
let t = e.activeElement;
|
|
1717
|
+
for (; ((r = t) == null || (r = r.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
|
|
1718
|
+
var r;
|
|
1719
|
+
t = t.shadowRoot.activeElement;
|
|
1720
|
+
}
|
|
1721
|
+
return t;
|
|
1722
|
+
}
|
|
1723
|
+
function rt(e, t) {
|
|
1724
|
+
if (!e || !t)
|
|
1725
|
+
return !1;
|
|
1726
|
+
const r = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
1727
|
+
if (e.contains(t))
|
|
1728
|
+
return !0;
|
|
1729
|
+
if (r && nn(r)) {
|
|
1730
|
+
let o = t;
|
|
1731
|
+
for (; o; ) {
|
|
1732
|
+
if (e === o)
|
|
1733
|
+
return !0;
|
|
1734
|
+
o = o.parentNode || o.host;
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
return !1;
|
|
1738
|
+
}
|
|
1739
|
+
function cr() {
|
|
1740
|
+
const e = navigator.userAgentData;
|
|
1741
|
+
return e != null && e.platform ? e.platform : navigator.platform;
|
|
1742
|
+
}
|
|
1743
|
+
function lr() {
|
|
1744
|
+
const e = navigator.userAgentData;
|
|
1745
|
+
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
1746
|
+
let {
|
|
1747
|
+
brand: r,
|
|
1748
|
+
version: o
|
|
1749
|
+
} = t;
|
|
1750
|
+
return r + "/" + o;
|
|
1751
|
+
}).join(" ") : navigator.userAgent;
|
|
1752
|
+
}
|
|
1753
|
+
function Jr(e) {
|
|
1754
|
+
return to() ? !1 : !Mn() && e.width === 0 && e.height === 0 || Mn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
1755
|
+
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
1756
|
+
}
|
|
1757
|
+
function fr() {
|
|
1758
|
+
return /apple/i.test(navigator.vendor);
|
|
1759
|
+
}
|
|
1760
|
+
function Mn() {
|
|
1761
|
+
const e = /android/i;
|
|
1762
|
+
return e.test(cr()) || e.test(lr());
|
|
1763
|
+
}
|
|
1764
|
+
function eo() {
|
|
1765
|
+
return cr().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
1766
|
+
}
|
|
1767
|
+
function to() {
|
|
1768
|
+
return lr().includes("jsdom/");
|
|
1769
|
+
}
|
|
1770
|
+
function sn(e, t) {
|
|
1771
|
+
const r = ["mouse", "pen"];
|
|
1772
|
+
return r.push("", void 0), r.includes(e);
|
|
1773
|
+
}
|
|
1774
|
+
function no(e) {
|
|
1775
|
+
return "nativeEvent" in e;
|
|
1776
|
+
}
|
|
1777
|
+
function ro(e) {
|
|
1778
|
+
return e.matches("html,body");
|
|
1779
|
+
}
|
|
1780
|
+
function Be(e) {
|
|
1781
|
+
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
1782
|
+
}
|
|
1783
|
+
function qt(e, t) {
|
|
1784
|
+
if (t == null)
|
|
1785
|
+
return !1;
|
|
1786
|
+
if ("composedPath" in e)
|
|
1787
|
+
return e.composedPath().includes(t);
|
|
1788
|
+
const r = e;
|
|
1789
|
+
return r.target != null && t.contains(r.target);
|
|
1790
|
+
}
|
|
1791
|
+
function et(e) {
|
|
1792
|
+
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
1793
|
+
}
|
|
1794
|
+
const oo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
1795
|
+
function io(e) {
|
|
1796
|
+
return we(e) && e.matches(oo);
|
|
1797
|
+
}
|
|
1798
|
+
const ot = Math.min, Xe = Math.max, At = Math.round, Ot = Math.floor, ke = (e) => ({
|
|
1799
|
+
x: e,
|
|
1800
|
+
y: e
|
|
1801
|
+
}), so = {
|
|
1802
|
+
left: "right",
|
|
1803
|
+
right: "left",
|
|
1804
|
+
bottom: "top",
|
|
1805
|
+
top: "bottom"
|
|
1806
|
+
}, ao = {
|
|
1807
|
+
start: "end",
|
|
1808
|
+
end: "start"
|
|
1809
|
+
};
|
|
1810
|
+
function an(e, t, r) {
|
|
1811
|
+
return Xe(e, ot(t, r));
|
|
1812
|
+
}
|
|
1813
|
+
function ht(e, t) {
|
|
1814
|
+
return typeof e == "function" ? e(t) : e;
|
|
1815
|
+
}
|
|
1816
|
+
function Ze(e) {
|
|
1817
|
+
return e.split("-")[0];
|
|
1818
|
+
}
|
|
1819
|
+
function vt(e) {
|
|
1820
|
+
return e.split("-")[1];
|
|
1821
|
+
}
|
|
1822
|
+
function dr(e) {
|
|
1823
|
+
return e === "x" ? "y" : "x";
|
|
1824
|
+
}
|
|
1825
|
+
function fn(e) {
|
|
1826
|
+
return e === "y" ? "height" : "width";
|
|
1827
|
+
}
|
|
1828
|
+
function it(e) {
|
|
1829
|
+
return ["top", "bottom"].includes(Ze(e)) ? "y" : "x";
|
|
1830
|
+
}
|
|
1831
|
+
function dn(e) {
|
|
1832
|
+
return dr(it(e));
|
|
1833
|
+
}
|
|
1834
|
+
function uo(e, t, r) {
|
|
1835
|
+
r === void 0 && (r = !1);
|
|
1836
|
+
const o = vt(e), i = dn(e), s = fn(i);
|
|
1837
|
+
let a = i === "x" ? o === (r ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1838
|
+
return t.reference[s] > t.floating[s] && (a = Nt(a)), [a, Nt(a)];
|
|
1839
|
+
}
|
|
1840
|
+
function co(e) {
|
|
1841
|
+
const t = Nt(e);
|
|
1842
|
+
return [un(e), t, un(t)];
|
|
1843
|
+
}
|
|
1844
|
+
function un(e) {
|
|
1845
|
+
return e.replace(/start|end/g, (t) => ao[t]);
|
|
1846
|
+
}
|
|
1847
|
+
function lo(e, t, r) {
|
|
1848
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
1849
|
+
switch (e) {
|
|
1850
|
+
case "top":
|
|
1851
|
+
case "bottom":
|
|
1852
|
+
return r ? t ? i : o : t ? o : i;
|
|
1853
|
+
case "left":
|
|
1854
|
+
case "right":
|
|
1855
|
+
return t ? s : a;
|
|
1856
|
+
default:
|
|
1857
|
+
return [];
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
function fo(e, t, r, o) {
|
|
1861
|
+
const i = vt(e);
|
|
1862
|
+
let s = lo(Ze(e), r === "start", o);
|
|
1863
|
+
return i && (s = s.map((a) => a + "-" + i), t && (s = s.concat(s.map(un)))), s;
|
|
1864
|
+
}
|
|
1865
|
+
function Nt(e) {
|
|
1866
|
+
return e.replace(/left|right|bottom|top/g, (t) => so[t]);
|
|
1867
|
+
}
|
|
1868
|
+
function mo(e) {
|
|
1869
|
+
return {
|
|
1870
|
+
top: 0,
|
|
1871
|
+
right: 0,
|
|
1872
|
+
bottom: 0,
|
|
1873
|
+
left: 0,
|
|
1874
|
+
...e
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
function mr(e) {
|
|
1878
|
+
return typeof e != "number" ? mo(e) : {
|
|
1879
|
+
top: e,
|
|
1880
|
+
right: e,
|
|
1881
|
+
bottom: e,
|
|
1882
|
+
left: e
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
function Pt(e) {
|
|
1886
|
+
const {
|
|
1887
|
+
x: t,
|
|
1888
|
+
y: r,
|
|
1889
|
+
width: o,
|
|
1890
|
+
height: i
|
|
1891
|
+
} = e;
|
|
1892
|
+
return {
|
|
1893
|
+
width: o,
|
|
1894
|
+
height: i,
|
|
1895
|
+
top: r,
|
|
1896
|
+
left: t,
|
|
1897
|
+
right: t + o,
|
|
1898
|
+
bottom: r + i,
|
|
1899
|
+
x: t,
|
|
1900
|
+
y: r
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
var xt = { exports: {} }, ct = {};
|
|
1904
|
+
/**
|
|
1905
|
+
* @license React
|
|
1906
|
+
* react-jsx-runtime.production.js
|
|
1907
|
+
*
|
|
1908
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1909
|
+
*
|
|
1910
|
+
* This source code is licensed under the MIT license found in the
|
|
1911
|
+
* LICENSE file in the root directory of this source tree.
|
|
1912
|
+
*/
|
|
1913
|
+
var Ln;
|
|
1914
|
+
function go() {
|
|
1915
|
+
if (Ln) return ct;
|
|
1916
|
+
Ln = 1;
|
|
1917
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
1918
|
+
function r(o, i, s) {
|
|
1919
|
+
var a = null;
|
|
1920
|
+
if (s !== void 0 && (a = "" + s), i.key !== void 0 && (a = "" + i.key), "key" in i) {
|
|
1921
|
+
s = {};
|
|
1922
|
+
for (var c in i)
|
|
1923
|
+
c !== "key" && (s[c] = i[c]);
|
|
1924
|
+
} else s = i;
|
|
1925
|
+
return i = s.ref, {
|
|
1926
|
+
$$typeof: e,
|
|
1927
|
+
type: o,
|
|
1928
|
+
key: a,
|
|
1929
|
+
ref: i !== void 0 ? i : null,
|
|
1930
|
+
props: s
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
return ct.Fragment = t, ct.jsx = r, ct.jsxs = r, ct;
|
|
1934
|
+
}
|
|
1935
|
+
var lt = {};
|
|
1936
|
+
/**
|
|
1937
|
+
* @license React
|
|
1938
|
+
* react-jsx-runtime.development.js
|
|
1939
|
+
*
|
|
1940
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1941
|
+
*
|
|
1942
|
+
* This source code is licensed under the MIT license found in the
|
|
1943
|
+
* LICENSE file in the root directory of this source tree.
|
|
1944
|
+
*/
|
|
1945
|
+
var Dn;
|
|
1946
|
+
function po() {
|
|
1947
|
+
return Dn || (Dn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1948
|
+
function e(m) {
|
|
1949
|
+
if (m == null) return null;
|
|
1950
|
+
if (typeof m == "function")
|
|
1951
|
+
return m.$$typeof === C ? null : m.displayName || m.name || null;
|
|
1952
|
+
if (typeof m == "string") return m;
|
|
1953
|
+
switch (m) {
|
|
1954
|
+
case K:
|
|
1955
|
+
return "Fragment";
|
|
1956
|
+
case A:
|
|
1957
|
+
return "Portal";
|
|
1958
|
+
case ee:
|
|
1959
|
+
return "Profiler";
|
|
1960
|
+
case B:
|
|
1961
|
+
return "StrictMode";
|
|
1962
|
+
case Q:
|
|
1963
|
+
return "Suspense";
|
|
1964
|
+
case J:
|
|
1965
|
+
return "SuspenseList";
|
|
1966
|
+
}
|
|
1967
|
+
if (typeof m == "object")
|
|
1968
|
+
switch (typeof m.tag == "number" && console.error(
|
|
1969
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1970
|
+
), m.$$typeof) {
|
|
1971
|
+
case ne:
|
|
1972
|
+
return (m.displayName || "Context") + ".Provider";
|
|
1973
|
+
case q:
|
|
1974
|
+
return (m._context.displayName || "Context") + ".Consumer";
|
|
1975
|
+
case te:
|
|
1976
|
+
var N = m.render;
|
|
1977
|
+
return m = m.displayName, m || (m = N.displayName || N.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
|
|
1978
|
+
case V:
|
|
1979
|
+
return N = m.displayName || null, N !== null ? N : e(m.type) || "Memo";
|
|
1980
|
+
case z:
|
|
1981
|
+
N = m._payload, m = m._init;
|
|
1982
|
+
try {
|
|
1983
|
+
return e(m(N));
|
|
1984
|
+
} catch {
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
return null;
|
|
1988
|
+
}
|
|
1989
|
+
function t(m) {
|
|
1990
|
+
return "" + m;
|
|
1991
|
+
}
|
|
1992
|
+
function r(m) {
|
|
1993
|
+
try {
|
|
1994
|
+
t(m);
|
|
1995
|
+
var N = !1;
|
|
1996
|
+
} catch {
|
|
1997
|
+
N = !0;
|
|
1998
|
+
}
|
|
1999
|
+
if (N) {
|
|
2000
|
+
N = console;
|
|
2001
|
+
var M = N.error, Z = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
2002
|
+
return M.call(
|
|
2003
|
+
N,
|
|
2004
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2005
|
+
Z
|
|
2006
|
+
), t(m);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
function o() {
|
|
2010
|
+
}
|
|
2011
|
+
function i() {
|
|
2012
|
+
if (F === 0) {
|
|
2013
|
+
oe = console.log, I = console.info, le = console.warn, re = console.error, Se = console.group, We = console.groupCollapsed, Me = console.groupEnd;
|
|
2014
|
+
var m = {
|
|
2015
|
+
configurable: !0,
|
|
2016
|
+
enumerable: !0,
|
|
2017
|
+
value: o,
|
|
2018
|
+
writable: !0
|
|
2019
|
+
};
|
|
2020
|
+
Object.defineProperties(console, {
|
|
2021
|
+
info: m,
|
|
2022
|
+
log: m,
|
|
2023
|
+
warn: m,
|
|
2024
|
+
error: m,
|
|
2025
|
+
group: m,
|
|
2026
|
+
groupCollapsed: m,
|
|
2027
|
+
groupEnd: m
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
2030
|
+
F++;
|
|
2031
|
+
}
|
|
2032
|
+
function s() {
|
|
2033
|
+
if (F--, F === 0) {
|
|
2034
|
+
var m = { configurable: !0, enumerable: !0, writable: !0 };
|
|
2035
|
+
Object.defineProperties(console, {
|
|
2036
|
+
log: y({}, m, { value: oe }),
|
|
2037
|
+
info: y({}, m, { value: I }),
|
|
2038
|
+
warn: y({}, m, { value: le }),
|
|
2039
|
+
error: y({}, m, { value: re }),
|
|
2040
|
+
group: y({}, m, { value: Se }),
|
|
2041
|
+
groupCollapsed: y({}, m, { value: We }),
|
|
2042
|
+
groupEnd: y({}, m, { value: Me })
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
0 > F && console.error(
|
|
2046
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
2047
|
+
);
|
|
2048
|
+
}
|
|
2049
|
+
function a(m) {
|
|
2050
|
+
if (Le === void 0)
|
|
2051
|
+
try {
|
|
2052
|
+
throw Error();
|
|
2053
|
+
} catch (M) {
|
|
2054
|
+
var N = M.stack.trim().match(/\n( *(at )?)/);
|
|
2055
|
+
Le = N && N[1] || "", De = -1 < M.stack.indexOf(`
|
|
2056
|
+
at`) ? " (<anonymous>)" : -1 < M.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
2057
|
+
}
|
|
2058
|
+
return `
|
|
2059
|
+
` + Le + m + De;
|
|
2060
|
+
}
|
|
2061
|
+
function c(m, N) {
|
|
2062
|
+
if (!m || Ae) return "";
|
|
2063
|
+
var M = ze.get(m);
|
|
2064
|
+
if (M !== void 0) return M;
|
|
2065
|
+
Ae = !0, M = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
2066
|
+
var Z = null;
|
|
2067
|
+
Z = R.H, R.H = null, i();
|
|
2068
|
+
try {
|
|
2069
|
+
var me = {
|
|
2070
|
+
DetermineComponentFrameRoot: function() {
|
|
2071
|
+
try {
|
|
2072
|
+
if (N) {
|
|
2073
|
+
var xe = function() {
|
|
2074
|
+
throw Error();
|
|
2075
|
+
};
|
|
2076
|
+
if (Object.defineProperty(xe.prototype, "props", {
|
|
2077
|
+
set: function() {
|
|
2078
|
+
throw Error();
|
|
2079
|
+
}
|
|
2080
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2081
|
+
try {
|
|
2082
|
+
Reflect.construct(xe, []);
|
|
2083
|
+
} catch (Te) {
|
|
2084
|
+
var Ge = Te;
|
|
2085
|
+
}
|
|
2086
|
+
Reflect.construct(m, [], xe);
|
|
2087
|
+
} else {
|
|
2088
|
+
try {
|
|
2089
|
+
xe.call();
|
|
2090
|
+
} catch (Te) {
|
|
2091
|
+
Ge = Te;
|
|
2092
|
+
}
|
|
2093
|
+
m.call(xe.prototype);
|
|
2094
|
+
}
|
|
2095
|
+
} else {
|
|
2096
|
+
try {
|
|
2097
|
+
throw Error();
|
|
2098
|
+
} catch (Te) {
|
|
2099
|
+
Ge = Te;
|
|
2100
|
+
}
|
|
2101
|
+
(xe = m()) && typeof xe.catch == "function" && xe.catch(function() {
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
} catch (Te) {
|
|
2105
|
+
if (Te && Ge && typeof Te.stack == "string")
|
|
2106
|
+
return [Te.stack, Ge.stack];
|
|
2107
|
+
}
|
|
2108
|
+
return [null, null];
|
|
2109
|
+
}
|
|
2110
|
+
};
|
|
2111
|
+
me.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
2112
|
+
var ue = Object.getOwnPropertyDescriptor(
|
|
2113
|
+
me.DetermineComponentFrameRoot,
|
|
2114
|
+
"name"
|
|
2115
|
+
);
|
|
2116
|
+
ue && ue.configurable && Object.defineProperty(
|
|
2117
|
+
me.DetermineComponentFrameRoot,
|
|
2118
|
+
"name",
|
|
2119
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
2120
|
+
);
|
|
2121
|
+
var G = me.DetermineComponentFrameRoot(), U = G[0], Oe = G[1];
|
|
2122
|
+
if (U && Oe) {
|
|
2123
|
+
var pe = U.split(`
|
|
2124
|
+
`), be = Oe.split(`
|
|
2125
|
+
`);
|
|
2126
|
+
for (G = ue = 0; ue < pe.length && !pe[ue].includes(
|
|
2127
|
+
"DetermineComponentFrameRoot"
|
|
2128
|
+
); )
|
|
2129
|
+
ue++;
|
|
2130
|
+
for (; G < be.length && !be[G].includes(
|
|
2131
|
+
"DetermineComponentFrameRoot"
|
|
2132
|
+
); )
|
|
2133
|
+
G++;
|
|
2134
|
+
if (ue === pe.length || G === be.length)
|
|
2135
|
+
for (ue = pe.length - 1, G = be.length - 1; 1 <= ue && 0 <= G && pe[ue] !== be[G]; )
|
|
2136
|
+
G--;
|
|
2137
|
+
for (; 1 <= ue && 0 <= G; ue--, G--)
|
|
2138
|
+
if (pe[ue] !== be[G]) {
|
|
2139
|
+
if (ue !== 1 || G !== 1)
|
|
2140
|
+
do
|
|
2141
|
+
if (ue--, G--, 0 > G || pe[ue] !== be[G]) {
|
|
2142
|
+
var Fe = `
|
|
2143
|
+
` + pe[ue].replace(
|
|
2144
|
+
" at new ",
|
|
2145
|
+
" at "
|
|
2146
|
+
);
|
|
2147
|
+
return m.displayName && Fe.includes("<anonymous>") && (Fe = Fe.replace("<anonymous>", m.displayName)), typeof m == "function" && ze.set(m, Fe), Fe;
|
|
2148
|
+
}
|
|
2149
|
+
while (1 <= ue && 0 <= G);
|
|
2150
|
+
break;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
} finally {
|
|
2154
|
+
Ae = !1, R.H = Z, s(), Error.prepareStackTrace = M;
|
|
2155
|
+
}
|
|
2156
|
+
return pe = (pe = m ? m.displayName || m.name : "") ? a(pe) : "", typeof m == "function" && ze.set(m, pe), pe;
|
|
2157
|
+
}
|
|
2158
|
+
function d(m) {
|
|
2159
|
+
if (m == null) return "";
|
|
2160
|
+
if (typeof m == "function") {
|
|
2161
|
+
var N = m.prototype;
|
|
2162
|
+
return c(
|
|
2163
|
+
m,
|
|
2164
|
+
!(!N || !N.isReactComponent)
|
|
2165
|
+
);
|
|
2166
|
+
}
|
|
2167
|
+
if (typeof m == "string") return a(m);
|
|
2168
|
+
switch (m) {
|
|
2169
|
+
case Q:
|
|
2170
|
+
return a("Suspense");
|
|
2171
|
+
case J:
|
|
2172
|
+
return a("SuspenseList");
|
|
2173
|
+
}
|
|
2174
|
+
if (typeof m == "object")
|
|
2175
|
+
switch (m.$$typeof) {
|
|
2176
|
+
case te:
|
|
2177
|
+
return m = c(m.render, !1), m;
|
|
2178
|
+
case V:
|
|
2179
|
+
return d(m.type);
|
|
2180
|
+
case z:
|
|
2181
|
+
N = m._payload, m = m._init;
|
|
2182
|
+
try {
|
|
2183
|
+
return d(m(N));
|
|
2184
|
+
} catch {
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
return "";
|
|
2188
|
+
}
|
|
2189
|
+
function u() {
|
|
2190
|
+
var m = R.A;
|
|
2191
|
+
return m === null ? null : m.getOwner();
|
|
2192
|
+
}
|
|
2193
|
+
function v(m) {
|
|
2194
|
+
if (l.call(m, "key")) {
|
|
2195
|
+
var N = Object.getOwnPropertyDescriptor(m, "key").get;
|
|
2196
|
+
if (N && N.isReactWarning) return !1;
|
|
2197
|
+
}
|
|
2198
|
+
return m.key !== void 0;
|
|
2199
|
+
}
|
|
2200
|
+
function g(m, N) {
|
|
2201
|
+
function M() {
|
|
2202
|
+
Ue || (Ue = !0, console.error(
|
|
2203
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
2204
|
+
N
|
|
2205
|
+
));
|
|
2206
|
+
}
|
|
2207
|
+
M.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
2208
|
+
get: M,
|
|
2209
|
+
configurable: !0
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2212
|
+
function f() {
|
|
2213
|
+
var m = e(this.type);
|
|
2214
|
+
return _t[m] || (_t[m] = !0, console.error(
|
|
2215
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2216
|
+
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
2217
|
+
}
|
|
2218
|
+
function h(m, N, M, Z, me, ue) {
|
|
2219
|
+
return M = ue.ref, m = {
|
|
2220
|
+
$$typeof: H,
|
|
2221
|
+
type: m,
|
|
2222
|
+
key: N,
|
|
2223
|
+
props: ue,
|
|
2224
|
+
_owner: me
|
|
2225
|
+
}, (M !== void 0 ? M : null) !== null ? Object.defineProperty(m, "ref", {
|
|
2226
|
+
enumerable: !1,
|
|
2227
|
+
get: f
|
|
2228
|
+
}) : Object.defineProperty(m, "ref", { enumerable: !1, value: null }), m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
2229
|
+
configurable: !1,
|
|
2230
|
+
enumerable: !1,
|
|
2231
|
+
writable: !0,
|
|
2232
|
+
value: 0
|
|
2233
|
+
}), Object.defineProperty(m, "_debugInfo", {
|
|
2234
|
+
configurable: !1,
|
|
2235
|
+
enumerable: !1,
|
|
2236
|
+
writable: !0,
|
|
2237
|
+
value: null
|
|
2238
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
2239
|
+
}
|
|
2240
|
+
function w(m, N, M, Z, me, ue) {
|
|
2241
|
+
if (typeof m == "string" || typeof m == "function" || m === K || m === ee || m === B || m === Q || m === J || m === W || typeof m == "object" && m !== null && (m.$$typeof === z || m.$$typeof === V || m.$$typeof === ne || m.$$typeof === q || m.$$typeof === te || m.$$typeof === S || m.getModuleId !== void 0)) {
|
|
2242
|
+
var G = N.children;
|
|
2243
|
+
if (G !== void 0)
|
|
2244
|
+
if (Z)
|
|
2245
|
+
if ($(G)) {
|
|
2246
|
+
for (Z = 0; Z < G.length; Z++)
|
|
2247
|
+
b(G[Z], m);
|
|
2248
|
+
Object.freeze && Object.freeze(G);
|
|
2249
|
+
} else
|
|
2250
|
+
console.error(
|
|
2251
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
2252
|
+
);
|
|
2253
|
+
else b(G, m);
|
|
2254
|
+
} else
|
|
2255
|
+
G = "", (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (G += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), m === null ? Z = "null" : $(m) ? Z = "array" : m !== void 0 && m.$$typeof === H ? (Z = "<" + (e(m.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof m, console.error(
|
|
2256
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
2257
|
+
Z,
|
|
2258
|
+
G
|
|
2259
|
+
);
|
|
2260
|
+
if (l.call(N, "key")) {
|
|
2261
|
+
G = e(m);
|
|
2262
|
+
var U = Object.keys(N).filter(function(pe) {
|
|
2263
|
+
return pe !== "key";
|
|
2264
|
+
});
|
|
2265
|
+
Z = 0 < U.length ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}", at[G + Z] || (U = 0 < U.length ? "{" + U.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2266
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
2267
|
+
let props = %s;
|
|
2268
|
+
<%s {...props} />
|
|
2269
|
+
React keys must be passed directly to JSX without using spread:
|
|
2270
|
+
let props = %s;
|
|
2271
|
+
<%s key={someKey} {...props} />`,
|
|
2272
|
+
Z,
|
|
2273
|
+
G,
|
|
2274
|
+
U,
|
|
2275
|
+
G
|
|
2276
|
+
), at[G + Z] = !0);
|
|
2277
|
+
}
|
|
2278
|
+
if (G = null, M !== void 0 && (r(M), G = "" + M), v(N) && (r(N.key), G = "" + N.key), "key" in N) {
|
|
2279
|
+
M = {};
|
|
2280
|
+
for (var Oe in N)
|
|
2281
|
+
Oe !== "key" && (M[Oe] = N[Oe]);
|
|
2282
|
+
} else M = N;
|
|
2283
|
+
return G && g(
|
|
2284
|
+
M,
|
|
2285
|
+
typeof m == "function" ? m.displayName || m.name || "Unknown" : m
|
|
2286
|
+
), h(m, G, ue, me, u(), M);
|
|
2287
|
+
}
|
|
2288
|
+
function b(m, N) {
|
|
2289
|
+
if (typeof m == "object" && m && m.$$typeof !== qe) {
|
|
2290
|
+
if ($(m))
|
|
2291
|
+
for (var M = 0; M < m.length; M++) {
|
|
2292
|
+
var Z = m[M];
|
|
2293
|
+
T(Z) && x(Z, N);
|
|
2294
|
+
}
|
|
2295
|
+
else if (T(m))
|
|
2296
|
+
m._store && (m._store.validated = 1);
|
|
2297
|
+
else if (m === null || typeof m != "object" ? M = null : (M = k && m[k] || m["@@iterator"], M = typeof M == "function" ? M : null), typeof M == "function" && M !== m.entries && (M = M.call(m), M !== m))
|
|
2298
|
+
for (; !(m = M.next()).done; )
|
|
2299
|
+
T(m.value) && x(m.value, N);
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
function T(m) {
|
|
2303
|
+
return typeof m == "object" && m !== null && m.$$typeof === H;
|
|
2304
|
+
}
|
|
2305
|
+
function x(m, N) {
|
|
2306
|
+
if (m._store && !m._store.validated && m.key == null && (m._store.validated = 1, N = j(N), !ut[N])) {
|
|
2307
|
+
ut[N] = !0;
|
|
2308
|
+
var M = "";
|
|
2309
|
+
m && m._owner != null && m._owner !== u() && (M = null, typeof m._owner.tag == "number" ? M = e(m._owner.type) : typeof m._owner.name == "string" && (M = m._owner.name), M = " It was passed a child from " + M + ".");
|
|
2310
|
+
var Z = R.getCurrentStack;
|
|
2311
|
+
R.getCurrentStack = function() {
|
|
2312
|
+
var me = d(m.type);
|
|
2313
|
+
return Z && (me += Z() || ""), me;
|
|
2314
|
+
}, console.error(
|
|
2315
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
2316
|
+
N,
|
|
2317
|
+
M
|
|
2318
|
+
), R.getCurrentStack = Z;
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
function j(m) {
|
|
2322
|
+
var N = "", M = u();
|
|
2323
|
+
return M && (M = e(M.type)) && (N = `
|
|
2324
|
+
|
|
2325
|
+
Check the render method of \`` + M + "`."), N || (m = e(m)) && (N = `
|
|
2326
|
+
|
|
2327
|
+
Check the top-level render call using <` + m + ">."), N;
|
|
2328
|
+
}
|
|
2329
|
+
var P = Lt(), H = Symbol.for("react.transitional.element"), A = Symbol.for("react.portal"), K = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), k = Symbol.iterator, C = Symbol.for("react.client.reference"), R = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, l = Object.prototype.hasOwnProperty, y = Object.assign, S = Symbol.for("react.client.reference"), $ = Array.isArray, F = 0, oe, I, le, re, Se, We, Me;
|
|
2330
|
+
o.__reactDisabledLog = !0;
|
|
2331
|
+
var Le, De, Ae = !1, ze = new (typeof WeakMap == "function" ? WeakMap : Map)(), qe = Symbol.for("react.client.reference"), Ue, _t = {}, at = {}, ut = {};
|
|
2332
|
+
lt.Fragment = K, lt.jsx = function(m, N, M, Z, me) {
|
|
2333
|
+
return w(m, N, M, !1, Z, me);
|
|
2334
|
+
}, lt.jsxs = function(m, N, M, Z, me) {
|
|
2335
|
+
return w(m, N, M, !0, Z, me);
|
|
2336
|
+
};
|
|
2337
|
+
}()), lt;
|
|
2338
|
+
}
|
|
2339
|
+
var zn;
|
|
2340
|
+
function ho() {
|
|
2341
|
+
return zn || (zn = 1, process.env.NODE_ENV === "production" ? xt.exports = go() : xt.exports = po()), xt.exports;
|
|
2342
|
+
}
|
|
2343
|
+
var Pe = ho();
|
|
2344
|
+
/*!
|
|
2345
|
+
* tabbable 6.2.0
|
|
2346
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2347
|
+
*/
|
|
2348
|
+
var vo = ["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])"], cn = /* @__PURE__ */ vo.join(","), gr = typeof Element > "u", mt = gr ? function() {
|
|
2349
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, kt = !gr && Element.prototype.getRootNode ? function(e) {
|
|
2350
|
+
var t;
|
|
2351
|
+
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
2352
|
+
} : function(e) {
|
|
2353
|
+
return e == null ? void 0 : e.ownerDocument;
|
|
2354
|
+
}, jt = function e(t, r) {
|
|
2355
|
+
var o;
|
|
2356
|
+
r === void 0 && (r = !0);
|
|
2357
|
+
var i = t == null || (o = t.getAttribute) === null || o === void 0 ? void 0 : o.call(t, "inert"), s = i === "" || i === "true", a = s || r && t && e(t.parentNode);
|
|
2358
|
+
return a;
|
|
2359
|
+
}, yo = function(t) {
|
|
2360
|
+
var r, o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
2361
|
+
return o === "" || o === "true";
|
|
2362
|
+
}, _o = function(t, r, o) {
|
|
2363
|
+
if (jt(t))
|
|
2364
|
+
return [];
|
|
2365
|
+
var i = Array.prototype.slice.apply(t.querySelectorAll(cn));
|
|
2366
|
+
return r && mt.call(t, cn) && i.unshift(t), i = i.filter(o), i;
|
|
2367
|
+
}, Eo = function e(t, r, o) {
|
|
2368
|
+
for (var i = [], s = Array.from(t); s.length; ) {
|
|
2369
|
+
var a = s.shift();
|
|
2370
|
+
if (!jt(a, !1))
|
|
2371
|
+
if (a.tagName === "SLOT") {
|
|
2372
|
+
var c = a.assignedElements(), d = c.length ? c : a.children, u = e(d, !0, o);
|
|
2373
|
+
o.flatten ? i.push.apply(i, u) : i.push({
|
|
2374
|
+
scopeParent: a,
|
|
2375
|
+
candidates: u
|
|
2376
|
+
});
|
|
2377
|
+
} else {
|
|
2378
|
+
var v = mt.call(a, cn);
|
|
2379
|
+
v && o.filter(a) && (r || !t.includes(a)) && i.push(a);
|
|
2380
|
+
var g = a.shadowRoot || // check for an undisclosed shadow
|
|
2381
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(a), f = !jt(g, !1) && (!o.shadowRootFilter || o.shadowRootFilter(a));
|
|
2382
|
+
if (g && f) {
|
|
2383
|
+
var h = e(g === !0 ? a.children : g.children, !0, o);
|
|
2384
|
+
o.flatten ? i.push.apply(i, h) : i.push({
|
|
2385
|
+
scopeParent: a,
|
|
2386
|
+
candidates: h
|
|
2387
|
+
});
|
|
2388
|
+
} else
|
|
2389
|
+
s.unshift.apply(s, a.children);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
return i;
|
|
2393
|
+
}, pr = function(t) {
|
|
2394
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2395
|
+
}, hr = function(t) {
|
|
2396
|
+
if (!t)
|
|
2397
|
+
throw new Error("No node provided");
|
|
2398
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || yo(t)) && !pr(t) ? 0 : t.tabIndex;
|
|
2399
|
+
}, bo = function(t, r) {
|
|
2400
|
+
var o = hr(t);
|
|
2401
|
+
return o < 0 && r && !pr(t) ? 0 : o;
|
|
2402
|
+
}, wo = function(t, r) {
|
|
2403
|
+
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
2404
|
+
}, vr = function(t) {
|
|
2405
|
+
return t.tagName === "INPUT";
|
|
2406
|
+
}, Ro = function(t) {
|
|
2407
|
+
return vr(t) && t.type === "hidden";
|
|
2408
|
+
}, To = function(t) {
|
|
2409
|
+
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
2410
|
+
return o.tagName === "SUMMARY";
|
|
2411
|
+
});
|
|
2412
|
+
return r;
|
|
2413
|
+
}, Oo = function(t, r) {
|
|
2414
|
+
for (var o = 0; o < t.length; o++)
|
|
2415
|
+
if (t[o].checked && t[o].form === r)
|
|
2416
|
+
return t[o];
|
|
2417
|
+
}, xo = function(t) {
|
|
2418
|
+
if (!t.name)
|
|
2419
|
+
return !0;
|
|
2420
|
+
var r = t.form || kt(t), o = function(c) {
|
|
2421
|
+
return r.querySelectorAll('input[type="radio"][name="' + c + '"]');
|
|
2422
|
+
}, i;
|
|
2423
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
2424
|
+
i = o(window.CSS.escape(t.name));
|
|
2425
|
+
else
|
|
2426
|
+
try {
|
|
2427
|
+
i = o(t.name);
|
|
2428
|
+
} catch (a) {
|
|
2429
|
+
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", a.message), !1;
|
|
2430
|
+
}
|
|
2431
|
+
var s = Oo(i, t.form);
|
|
2432
|
+
return !s || s === t;
|
|
2433
|
+
}, Co = function(t) {
|
|
2434
|
+
return vr(t) && t.type === "radio";
|
|
2435
|
+
}, So = function(t) {
|
|
2436
|
+
return Co(t) && !xo(t);
|
|
2437
|
+
}, Ao = function(t) {
|
|
2438
|
+
var r, o = t && kt(t), i = (r = o) === null || r === void 0 ? void 0 : r.host, s = !1;
|
|
2439
|
+
if (o && o !== t) {
|
|
2440
|
+
var a, c, d;
|
|
2441
|
+
for (s = !!((a = i) !== null && a !== void 0 && (c = a.ownerDocument) !== null && c !== void 0 && c.contains(i) || t != null && (d = t.ownerDocument) !== null && d !== void 0 && d.contains(t)); !s && i; ) {
|
|
2442
|
+
var u, v, g;
|
|
2443
|
+
o = kt(i), i = (u = o) === null || u === void 0 ? void 0 : u.host, s = !!((v = i) !== null && v !== void 0 && (g = v.ownerDocument) !== null && g !== void 0 && g.contains(i));
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
return s;
|
|
2447
|
+
}, In = function(t) {
|
|
2448
|
+
var r = t.getBoundingClientRect(), o = r.width, i = r.height;
|
|
2449
|
+
return o === 0 && i === 0;
|
|
2450
|
+
}, No = function(t, r) {
|
|
2451
|
+
var o = r.displayCheck, i = r.getShadowRoot;
|
|
2452
|
+
if (getComputedStyle(t).visibility === "hidden")
|
|
2453
|
+
return !0;
|
|
2454
|
+
var s = mt.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
|
|
2455
|
+
if (mt.call(a, "details:not([open]) *"))
|
|
2456
|
+
return !0;
|
|
2457
|
+
if (!o || o === "full" || o === "legacy-full") {
|
|
2458
|
+
if (typeof i == "function") {
|
|
2459
|
+
for (var c = t; t; ) {
|
|
2460
|
+
var d = t.parentElement, u = kt(t);
|
|
2461
|
+
if (d && !d.shadowRoot && i(d) === !0)
|
|
2462
|
+
return In(t);
|
|
2463
|
+
t.assignedSlot ? t = t.assignedSlot : !d && u !== t.ownerDocument ? t = u.host : t = d;
|
|
2464
|
+
}
|
|
2465
|
+
t = c;
|
|
2466
|
+
}
|
|
2467
|
+
if (Ao(t))
|
|
2468
|
+
return !t.getClientRects().length;
|
|
2469
|
+
if (o !== "legacy-full")
|
|
2470
|
+
return !0;
|
|
2471
|
+
} else if (o === "non-zero-area")
|
|
2472
|
+
return In(t);
|
|
2473
|
+
return !1;
|
|
2474
|
+
}, Po = function(t) {
|
|
2475
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2476
|
+
for (var r = t.parentElement; r; ) {
|
|
2477
|
+
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
2478
|
+
for (var o = 0; o < r.children.length; o++) {
|
|
2479
|
+
var i = r.children.item(o);
|
|
2480
|
+
if (i.tagName === "LEGEND")
|
|
2481
|
+
return mt.call(r, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
|
2482
|
+
}
|
|
2483
|
+
return !0;
|
|
2484
|
+
}
|
|
2485
|
+
r = r.parentElement;
|
|
2486
|
+
}
|
|
2487
|
+
return !1;
|
|
2488
|
+
}, ko = function(t, r) {
|
|
2489
|
+
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2490
|
+
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2491
|
+
// note related to `candidateSelectors`)
|
|
2492
|
+
jt(r) || Ro(r) || No(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
2493
|
+
To(r) || Po(r));
|
|
2494
|
+
}, $n = function(t, r) {
|
|
2495
|
+
return !(So(r) || hr(r) < 0 || !ko(t, r));
|
|
2496
|
+
}, jo = function(t) {
|
|
2497
|
+
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
2498
|
+
return !!(isNaN(r) || r >= 0);
|
|
2499
|
+
}, Mo = function e(t) {
|
|
2500
|
+
var r = [], o = [];
|
|
2501
|
+
return t.forEach(function(i, s) {
|
|
2502
|
+
var a = !!i.scopeParent, c = a ? i.scopeParent : i, d = bo(c, a), u = a ? e(i.candidates) : c;
|
|
2503
|
+
d === 0 ? a ? r.push.apply(r, u) : r.push(c) : o.push({
|
|
2504
|
+
documentOrder: s,
|
|
2505
|
+
tabIndex: d,
|
|
2506
|
+
item: i,
|
|
2507
|
+
isScope: a,
|
|
2508
|
+
content: u
|
|
2509
|
+
});
|
|
2510
|
+
}), o.sort(wo).reduce(function(i, s) {
|
|
2511
|
+
return s.isScope ? i.push.apply(i, s.content) : i.push(s.content), i;
|
|
2512
|
+
}, []).concat(r);
|
|
2513
|
+
}, yr = function(t, r) {
|
|
2514
|
+
r = r || {};
|
|
2515
|
+
var o;
|
|
2516
|
+
return r.getShadowRoot ? o = Eo([t], r.includeContainer, {
|
|
2517
|
+
filter: $n.bind(null, r),
|
|
2518
|
+
flatten: !1,
|
|
2519
|
+
getShadowRoot: r.getShadowRoot,
|
|
2520
|
+
shadowRootFilter: jo
|
|
2521
|
+
}) : o = _o(t, r.includeContainer, $n.bind(null, r)), Mo(o);
|
|
2522
|
+
}, Ct = { exports: {} }, ve = {};
|
|
2523
|
+
/**
|
|
2524
|
+
* @license React
|
|
2525
|
+
* react-dom.production.js
|
|
2526
|
+
*
|
|
2527
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2528
|
+
*
|
|
2529
|
+
* This source code is licensed under the MIT license found in the
|
|
2530
|
+
* LICENSE file in the root directory of this source tree.
|
|
2531
|
+
*/
|
|
2532
|
+
var Yn;
|
|
2533
|
+
function Lo() {
|
|
2534
|
+
if (Yn) return ve;
|
|
2535
|
+
Yn = 1;
|
|
2536
|
+
var e = Lt();
|
|
2537
|
+
function t(d) {
|
|
2538
|
+
var u = "https://react.dev/errors/" + d;
|
|
2539
|
+
if (1 < arguments.length) {
|
|
2540
|
+
u += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
2541
|
+
for (var v = 2; v < arguments.length; v++)
|
|
2542
|
+
u += "&args[]=" + encodeURIComponent(arguments[v]);
|
|
2543
|
+
}
|
|
2544
|
+
return "Minified React error #" + d + "; visit " + u + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
2545
|
+
}
|
|
2546
|
+
function r() {
|
|
2547
|
+
}
|
|
2548
|
+
var o = {
|
|
2549
|
+
d: {
|
|
2550
|
+
f: r,
|
|
2551
|
+
r: function() {
|
|
2552
|
+
throw Error(t(522));
|
|
2553
|
+
},
|
|
2554
|
+
D: r,
|
|
2555
|
+
C: r,
|
|
2556
|
+
L: r,
|
|
2557
|
+
m: r,
|
|
2558
|
+
X: r,
|
|
2559
|
+
S: r,
|
|
2560
|
+
M: r
|
|
2561
|
+
},
|
|
2562
|
+
p: 0,
|
|
2563
|
+
findDOMNode: null
|
|
2564
|
+
}, i = Symbol.for("react.portal");
|
|
2565
|
+
function s(d, u, v) {
|
|
2566
|
+
var g = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
2567
|
+
return {
|
|
2568
|
+
$$typeof: i,
|
|
2569
|
+
key: g == null ? null : "" + g,
|
|
2570
|
+
children: d,
|
|
2571
|
+
containerInfo: u,
|
|
2572
|
+
implementation: v
|
|
2573
|
+
};
|
|
2574
|
+
}
|
|
2575
|
+
var a = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2576
|
+
function c(d, u) {
|
|
2577
|
+
if (d === "font") return "";
|
|
2578
|
+
if (typeof u == "string")
|
|
2579
|
+
return u === "use-credentials" ? u : "";
|
|
2580
|
+
}
|
|
2581
|
+
return ve.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, ve.createPortal = function(d, u) {
|
|
2582
|
+
var v = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
2583
|
+
if (!u || u.nodeType !== 1 && u.nodeType !== 9 && u.nodeType !== 11)
|
|
2584
|
+
throw Error(t(299));
|
|
2585
|
+
return s(d, u, null, v);
|
|
2586
|
+
}, ve.flushSync = function(d) {
|
|
2587
|
+
var u = a.T, v = o.p;
|
|
2588
|
+
try {
|
|
2589
|
+
if (a.T = null, o.p = 2, d) return d();
|
|
2590
|
+
} finally {
|
|
2591
|
+
a.T = u, o.p = v, o.d.f();
|
|
2592
|
+
}
|
|
2593
|
+
}, ve.preconnect = function(d, u) {
|
|
2594
|
+
typeof d == "string" && (u ? (u = u.crossOrigin, u = typeof u == "string" ? u === "use-credentials" ? u : "" : void 0) : u = null, o.d.C(d, u));
|
|
2595
|
+
}, ve.prefetchDNS = function(d) {
|
|
2596
|
+
typeof d == "string" && o.d.D(d);
|
|
2597
|
+
}, ve.preinit = function(d, u) {
|
|
2598
|
+
if (typeof d == "string" && u && typeof u.as == "string") {
|
|
2599
|
+
var v = u.as, g = c(v, u.crossOrigin), f = typeof u.integrity == "string" ? u.integrity : void 0, h = typeof u.fetchPriority == "string" ? u.fetchPriority : void 0;
|
|
2600
|
+
v === "style" ? o.d.S(
|
|
2601
|
+
d,
|
|
2602
|
+
typeof u.precedence == "string" ? u.precedence : void 0,
|
|
2603
|
+
{
|
|
2604
|
+
crossOrigin: g,
|
|
2605
|
+
integrity: f,
|
|
2606
|
+
fetchPriority: h
|
|
2607
|
+
}
|
|
2608
|
+
) : v === "script" && o.d.X(d, {
|
|
2609
|
+
crossOrigin: g,
|
|
2610
|
+
integrity: f,
|
|
2611
|
+
fetchPriority: h,
|
|
2612
|
+
nonce: typeof u.nonce == "string" ? u.nonce : void 0
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
}, ve.preinitModule = function(d, u) {
|
|
2616
|
+
if (typeof d == "string")
|
|
2617
|
+
if (typeof u == "object" && u !== null) {
|
|
2618
|
+
if (u.as == null || u.as === "script") {
|
|
2619
|
+
var v = c(
|
|
2620
|
+
u.as,
|
|
2621
|
+
u.crossOrigin
|
|
2622
|
+
);
|
|
2623
|
+
o.d.M(d, {
|
|
2624
|
+
crossOrigin: v,
|
|
2625
|
+
integrity: typeof u.integrity == "string" ? u.integrity : void 0,
|
|
2626
|
+
nonce: typeof u.nonce == "string" ? u.nonce : void 0
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
} else u == null && o.d.M(d);
|
|
2630
|
+
}, ve.preload = function(d, u) {
|
|
2631
|
+
if (typeof d == "string" && typeof u == "object" && u !== null && typeof u.as == "string") {
|
|
2632
|
+
var v = u.as, g = c(v, u.crossOrigin);
|
|
2633
|
+
o.d.L(d, v, {
|
|
2634
|
+
crossOrigin: g,
|
|
2635
|
+
integrity: typeof u.integrity == "string" ? u.integrity : void 0,
|
|
2636
|
+
nonce: typeof u.nonce == "string" ? u.nonce : void 0,
|
|
2637
|
+
type: typeof u.type == "string" ? u.type : void 0,
|
|
2638
|
+
fetchPriority: typeof u.fetchPriority == "string" ? u.fetchPriority : void 0,
|
|
2639
|
+
referrerPolicy: typeof u.referrerPolicy == "string" ? u.referrerPolicy : void 0,
|
|
2640
|
+
imageSrcSet: typeof u.imageSrcSet == "string" ? u.imageSrcSet : void 0,
|
|
2641
|
+
imageSizes: typeof u.imageSizes == "string" ? u.imageSizes : void 0,
|
|
2642
|
+
media: typeof u.media == "string" ? u.media : void 0
|
|
2643
|
+
});
|
|
2644
|
+
}
|
|
2645
|
+
}, ve.preloadModule = function(d, u) {
|
|
2646
|
+
if (typeof d == "string")
|
|
2647
|
+
if (u) {
|
|
2648
|
+
var v = c(u.as, u.crossOrigin);
|
|
2649
|
+
o.d.m(d, {
|
|
2650
|
+
as: typeof u.as == "string" && u.as !== "script" ? u.as : void 0,
|
|
2651
|
+
crossOrigin: v,
|
|
2652
|
+
integrity: typeof u.integrity == "string" ? u.integrity : void 0
|
|
2653
|
+
});
|
|
2654
|
+
} else o.d.m(d);
|
|
2655
|
+
}, ve.requestFormReset = function(d) {
|
|
2656
|
+
o.d.r(d);
|
|
2657
|
+
}, ve.unstable_batchedUpdates = function(d, u) {
|
|
2658
|
+
return d(u);
|
|
2659
|
+
}, ve.useFormState = function(d, u, v) {
|
|
2660
|
+
return a.H.useFormState(d, u, v);
|
|
2661
|
+
}, ve.useFormStatus = function() {
|
|
2662
|
+
return a.H.useHostTransitionStatus();
|
|
2663
|
+
}, ve.version = "19.0.0", ve;
|
|
2664
|
+
}
|
|
2665
|
+
var ye = {};
|
|
2666
|
+
/**
|
|
2667
|
+
* @license React
|
|
2668
|
+
* react-dom.development.js
|
|
2669
|
+
*
|
|
2670
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2671
|
+
*
|
|
2672
|
+
* This source code is licensed under the MIT license found in the
|
|
2673
|
+
* LICENSE file in the root directory of this source tree.
|
|
2674
|
+
*/
|
|
2675
|
+
var Hn;
|
|
2676
|
+
function Do() {
|
|
2677
|
+
return Hn || (Hn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2678
|
+
function e() {
|
|
2679
|
+
}
|
|
2680
|
+
function t(g) {
|
|
2681
|
+
return "" + g;
|
|
2682
|
+
}
|
|
2683
|
+
function r(g, f, h) {
|
|
2684
|
+
var w = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
2685
|
+
try {
|
|
2686
|
+
t(w);
|
|
2687
|
+
var b = !1;
|
|
2688
|
+
} catch {
|
|
2689
|
+
b = !0;
|
|
2690
|
+
}
|
|
2691
|
+
return b && (console.error(
|
|
2692
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2693
|
+
typeof Symbol == "function" && Symbol.toStringTag && w[Symbol.toStringTag] || w.constructor.name || "Object"
|
|
2694
|
+
), t(w)), {
|
|
2695
|
+
$$typeof: u,
|
|
2696
|
+
key: w == null ? null : "" + w,
|
|
2697
|
+
children: g,
|
|
2698
|
+
containerInfo: f,
|
|
2699
|
+
implementation: h
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
2702
|
+
function o(g, f) {
|
|
2703
|
+
if (g === "font") return "";
|
|
2704
|
+
if (typeof f == "string")
|
|
2705
|
+
return f === "use-credentials" ? f : "";
|
|
2706
|
+
}
|
|
2707
|
+
function i(g) {
|
|
2708
|
+
return g === null ? "`null`" : g === void 0 ? "`undefined`" : g === "" ? "an empty string" : 'something with type "' + typeof g + '"';
|
|
2709
|
+
}
|
|
2710
|
+
function s(g) {
|
|
2711
|
+
return g === null ? "`null`" : g === void 0 ? "`undefined`" : g === "" ? "an empty string" : typeof g == "string" ? JSON.stringify(g) : typeof g == "number" ? "`" + g + "`" : 'something with type "' + typeof g + '"';
|
|
2712
|
+
}
|
|
2713
|
+
function a() {
|
|
2714
|
+
var g = v.H;
|
|
2715
|
+
return g === null && console.error(
|
|
2716
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2717
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2718
|
+
2. You might be breaking the Rules of Hooks
|
|
2719
|
+
3. You might have more than one copy of React in the same app
|
|
2720
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
2721
|
+
), g;
|
|
2722
|
+
}
|
|
2723
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2724
|
+
var c = Lt(), d = {
|
|
2725
|
+
d: {
|
|
2726
|
+
f: e,
|
|
2727
|
+
r: function() {
|
|
2728
|
+
throw Error(
|
|
2729
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
2730
|
+
);
|
|
2731
|
+
},
|
|
2732
|
+
D: e,
|
|
2733
|
+
C: e,
|
|
2734
|
+
L: e,
|
|
2735
|
+
m: e,
|
|
2736
|
+
X: e,
|
|
2737
|
+
S: e,
|
|
2738
|
+
M: e
|
|
2739
|
+
},
|
|
2740
|
+
p: 0,
|
|
2741
|
+
findDOMNode: null
|
|
2742
|
+
}, u = Symbol.for("react.portal"), v = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2743
|
+
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
2744
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
2745
|
+
), ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = d, ye.createPortal = function(g, f) {
|
|
2746
|
+
var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
2747
|
+
if (!f || f.nodeType !== 1 && f.nodeType !== 9 && f.nodeType !== 11)
|
|
2748
|
+
throw Error("Target container is not a DOM element.");
|
|
2749
|
+
return r(g, f, null, h);
|
|
2750
|
+
}, ye.flushSync = function(g) {
|
|
2751
|
+
var f = v.T, h = d.p;
|
|
2752
|
+
try {
|
|
2753
|
+
if (v.T = null, d.p = 2, g)
|
|
2754
|
+
return g();
|
|
2755
|
+
} finally {
|
|
2756
|
+
v.T = f, d.p = h, d.d.f() && console.error(
|
|
2757
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
2758
|
+
);
|
|
2759
|
+
}
|
|
2760
|
+
}, ye.preconnect = function(g, f) {
|
|
2761
|
+
typeof g == "string" && g ? f != null && typeof f != "object" ? console.error(
|
|
2762
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
2763
|
+
s(f)
|
|
2764
|
+
) : f != null && typeof f.crossOrigin != "string" && console.error(
|
|
2765
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
2766
|
+
i(f.crossOrigin)
|
|
2767
|
+
) : console.error(
|
|
2768
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2769
|
+
i(g)
|
|
2770
|
+
), typeof g == "string" && (f ? (f = f.crossOrigin, f = typeof f == "string" ? f === "use-credentials" ? f : "" : void 0) : f = null, d.d.C(g, f));
|
|
2771
|
+
}, ye.prefetchDNS = function(g) {
|
|
2772
|
+
if (typeof g != "string" || !g)
|
|
2773
|
+
console.error(
|
|
2774
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2775
|
+
i(g)
|
|
2776
|
+
);
|
|
2777
|
+
else if (1 < arguments.length) {
|
|
2778
|
+
var f = arguments[1];
|
|
2779
|
+
typeof f == "object" && f.hasOwnProperty("crossOrigin") ? console.error(
|
|
2780
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
2781
|
+
s(f)
|
|
2782
|
+
) : console.error(
|
|
2783
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
2784
|
+
s(f)
|
|
2785
|
+
);
|
|
2786
|
+
}
|
|
2787
|
+
typeof g == "string" && d.d.D(g);
|
|
2788
|
+
}, ye.preinit = function(g, f) {
|
|
2789
|
+
if (typeof g == "string" && g ? f == null || typeof f != "object" ? console.error(
|
|
2790
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
2791
|
+
s(f)
|
|
2792
|
+
) : f.as !== "style" && f.as !== "script" && console.error(
|
|
2793
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
2794
|
+
s(f.as)
|
|
2795
|
+
) : console.error(
|
|
2796
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2797
|
+
i(g)
|
|
2798
|
+
), typeof g == "string" && f && typeof f.as == "string") {
|
|
2799
|
+
var h = f.as, w = o(h, f.crossOrigin), b = typeof f.integrity == "string" ? f.integrity : void 0, T = typeof f.fetchPriority == "string" ? f.fetchPriority : void 0;
|
|
2800
|
+
h === "style" ? d.d.S(
|
|
2801
|
+
g,
|
|
2802
|
+
typeof f.precedence == "string" ? f.precedence : void 0,
|
|
2803
|
+
{
|
|
2804
|
+
crossOrigin: w,
|
|
2805
|
+
integrity: b,
|
|
2806
|
+
fetchPriority: T
|
|
2807
|
+
}
|
|
2808
|
+
) : h === "script" && d.d.X(g, {
|
|
2809
|
+
crossOrigin: w,
|
|
2810
|
+
integrity: b,
|
|
2811
|
+
fetchPriority: T,
|
|
2812
|
+
nonce: typeof f.nonce == "string" ? f.nonce : void 0
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
}, ye.preinitModule = function(g, f) {
|
|
2816
|
+
var h = "";
|
|
2817
|
+
if (typeof g == "string" && g || (h += " The `href` argument encountered was " + i(g) + "."), f !== void 0 && typeof f != "object" ? h += " The `options` argument encountered was " + i(f) + "." : f && "as" in f && f.as !== "script" && (h += " The `as` option encountered was " + s(f.as) + "."), h)
|
|
2818
|
+
console.error(
|
|
2819
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
2820
|
+
h
|
|
2821
|
+
);
|
|
2822
|
+
else
|
|
2823
|
+
switch (h = f && typeof f.as == "string" ? f.as : "script", h) {
|
|
2824
|
+
case "script":
|
|
2825
|
+
break;
|
|
2826
|
+
default:
|
|
2827
|
+
h = s(h), console.error(
|
|
2828
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
2829
|
+
h,
|
|
2830
|
+
g
|
|
2831
|
+
);
|
|
2832
|
+
}
|
|
2833
|
+
typeof g == "string" && (typeof f == "object" && f !== null ? (f.as == null || f.as === "script") && (h = o(
|
|
2834
|
+
f.as,
|
|
2835
|
+
f.crossOrigin
|
|
2836
|
+
), d.d.M(g, {
|
|
2837
|
+
crossOrigin: h,
|
|
2838
|
+
integrity: typeof f.integrity == "string" ? f.integrity : void 0,
|
|
2839
|
+
nonce: typeof f.nonce == "string" ? f.nonce : void 0
|
|
2840
|
+
})) : f == null && d.d.M(g));
|
|
2841
|
+
}, ye.preload = function(g, f) {
|
|
2842
|
+
var h = "";
|
|
2843
|
+
if (typeof g == "string" && g || (h += " The `href` argument encountered was " + i(g) + "."), f == null || typeof f != "object" ? h += " The `options` argument encountered was " + i(f) + "." : typeof f.as == "string" && f.as || (h += " The `as` option encountered was " + i(f.as) + "."), h && console.error(
|
|
2844
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
2845
|
+
h
|
|
2846
|
+
), typeof g == "string" && typeof f == "object" && f !== null && typeof f.as == "string") {
|
|
2847
|
+
h = f.as;
|
|
2848
|
+
var w = o(
|
|
2849
|
+
h,
|
|
2850
|
+
f.crossOrigin
|
|
2851
|
+
);
|
|
2852
|
+
d.d.L(g, h, {
|
|
2853
|
+
crossOrigin: w,
|
|
2854
|
+
integrity: typeof f.integrity == "string" ? f.integrity : void 0,
|
|
2855
|
+
nonce: typeof f.nonce == "string" ? f.nonce : void 0,
|
|
2856
|
+
type: typeof f.type == "string" ? f.type : void 0,
|
|
2857
|
+
fetchPriority: typeof f.fetchPriority == "string" ? f.fetchPriority : void 0,
|
|
2858
|
+
referrerPolicy: typeof f.referrerPolicy == "string" ? f.referrerPolicy : void 0,
|
|
2859
|
+
imageSrcSet: typeof f.imageSrcSet == "string" ? f.imageSrcSet : void 0,
|
|
2860
|
+
imageSizes: typeof f.imageSizes == "string" ? f.imageSizes : void 0,
|
|
2861
|
+
media: typeof f.media == "string" ? f.media : void 0
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
}, ye.preloadModule = function(g, f) {
|
|
2865
|
+
var h = "";
|
|
2866
|
+
typeof g == "string" && g || (h += " The `href` argument encountered was " + i(g) + "."), f !== void 0 && typeof f != "object" ? h += " The `options` argument encountered was " + i(f) + "." : f && "as" in f && typeof f.as != "string" && (h += " The `as` option encountered was " + i(f.as) + "."), h && console.error(
|
|
2867
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
2868
|
+
h
|
|
2869
|
+
), typeof g == "string" && (f ? (h = o(
|
|
2870
|
+
f.as,
|
|
2871
|
+
f.crossOrigin
|
|
2872
|
+
), d.d.m(g, {
|
|
2873
|
+
as: typeof f.as == "string" && f.as !== "script" ? f.as : void 0,
|
|
2874
|
+
crossOrigin: h,
|
|
2875
|
+
integrity: typeof f.integrity == "string" ? f.integrity : void 0
|
|
2876
|
+
})) : d.d.m(g));
|
|
2877
|
+
}, ye.requestFormReset = function(g) {
|
|
2878
|
+
d.d.r(g);
|
|
2879
|
+
}, ye.unstable_batchedUpdates = function(g, f) {
|
|
2880
|
+
return g(f);
|
|
2881
|
+
}, ye.useFormState = function(g, f, h) {
|
|
2882
|
+
return a().useFormState(g, f, h);
|
|
2883
|
+
}, ye.useFormStatus = function() {
|
|
2884
|
+
return a().useHostTransitionStatus();
|
|
2885
|
+
}, ye.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2886
|
+
}()), ye;
|
|
2887
|
+
}
|
|
2888
|
+
var Wn;
|
|
2889
|
+
function zo() {
|
|
2890
|
+
if (Wn) return Ct.exports;
|
|
2891
|
+
Wn = 1;
|
|
2892
|
+
function e() {
|
|
2893
|
+
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
2894
|
+
if (process.env.NODE_ENV !== "production")
|
|
2895
|
+
throw new Error("^_^");
|
|
2896
|
+
try {
|
|
2897
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
|
|
2898
|
+
} catch (t) {
|
|
2899
|
+
console.error(t);
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
return process.env.NODE_ENV === "production" ? (e(), Ct.exports = Lo()) : Ct.exports = Do(), Ct.exports;
|
|
2904
|
+
}
|
|
2905
|
+
var _r = zo();
|
|
2906
|
+
function Un(e, t, r) {
|
|
2907
|
+
let {
|
|
2908
|
+
reference: o,
|
|
2909
|
+
floating: i
|
|
2910
|
+
} = e;
|
|
2911
|
+
const s = it(t), a = dn(t), c = fn(a), d = Ze(t), u = s === "y", v = o.x + o.width / 2 - i.width / 2, g = o.y + o.height / 2 - i.height / 2, f = o[c] / 2 - i[c] / 2;
|
|
2912
|
+
let h;
|
|
2913
|
+
switch (d) {
|
|
2914
|
+
case "top":
|
|
2915
|
+
h = {
|
|
2916
|
+
x: v,
|
|
2917
|
+
y: o.y - i.height
|
|
2918
|
+
};
|
|
2919
|
+
break;
|
|
2920
|
+
case "bottom":
|
|
2921
|
+
h = {
|
|
2922
|
+
x: v,
|
|
2923
|
+
y: o.y + o.height
|
|
2924
|
+
};
|
|
2925
|
+
break;
|
|
2926
|
+
case "right":
|
|
2927
|
+
h = {
|
|
2928
|
+
x: o.x + o.width,
|
|
2929
|
+
y: g
|
|
2930
|
+
};
|
|
2931
|
+
break;
|
|
2932
|
+
case "left":
|
|
2933
|
+
h = {
|
|
2934
|
+
x: o.x - i.width,
|
|
2935
|
+
y: g
|
|
2936
|
+
};
|
|
2937
|
+
break;
|
|
2938
|
+
default:
|
|
2939
|
+
h = {
|
|
2940
|
+
x: o.x,
|
|
2941
|
+
y: o.y
|
|
2942
|
+
};
|
|
2943
|
+
}
|
|
2944
|
+
switch (vt(t)) {
|
|
2945
|
+
case "start":
|
|
2946
|
+
h[a] -= f * (r && u ? -1 : 1);
|
|
2947
|
+
break;
|
|
2948
|
+
case "end":
|
|
2949
|
+
h[a] += f * (r && u ? -1 : 1);
|
|
2950
|
+
break;
|
|
2951
|
+
}
|
|
2952
|
+
return h;
|
|
2953
|
+
}
|
|
2954
|
+
const Io = async (e, t, r) => {
|
|
2955
|
+
const {
|
|
2956
|
+
placement: o = "bottom",
|
|
2957
|
+
strategy: i = "absolute",
|
|
2958
|
+
middleware: s = [],
|
|
2959
|
+
platform: a
|
|
2960
|
+
} = r, c = s.filter(Boolean), d = await (a.isRTL == null ? void 0 : a.isRTL(t));
|
|
2961
|
+
let u = await a.getElementRects({
|
|
2962
|
+
reference: e,
|
|
2963
|
+
floating: t,
|
|
2964
|
+
strategy: i
|
|
2965
|
+
}), {
|
|
2966
|
+
x: v,
|
|
2967
|
+
y: g
|
|
2968
|
+
} = Un(u, o, d), f = o, h = {}, w = 0;
|
|
2969
|
+
for (let b = 0; b < c.length; b++) {
|
|
2970
|
+
const {
|
|
2971
|
+
name: T,
|
|
2972
|
+
fn: x
|
|
2973
|
+
} = c[b], {
|
|
2974
|
+
x: j,
|
|
2975
|
+
y: P,
|
|
2976
|
+
data: H,
|
|
2977
|
+
reset: A
|
|
2978
|
+
} = await x({
|
|
2979
|
+
x: v,
|
|
2980
|
+
y: g,
|
|
2981
|
+
initialPlacement: o,
|
|
2982
|
+
placement: f,
|
|
2983
|
+
strategy: i,
|
|
2984
|
+
middlewareData: h,
|
|
2985
|
+
rects: u,
|
|
2986
|
+
platform: a,
|
|
2987
|
+
elements: {
|
|
2988
|
+
reference: e,
|
|
2989
|
+
floating: t
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
v = j ?? v, g = P ?? g, h = {
|
|
2993
|
+
...h,
|
|
2994
|
+
[T]: {
|
|
2995
|
+
...h[T],
|
|
2996
|
+
...H
|
|
2997
|
+
}
|
|
2998
|
+
}, A && w <= 50 && (w++, typeof A == "object" && (A.placement && (f = A.placement), A.rects && (u = A.rects === !0 ? await a.getElementRects({
|
|
2999
|
+
reference: e,
|
|
3000
|
+
floating: t,
|
|
3001
|
+
strategy: i
|
|
3002
|
+
}) : A.rects), {
|
|
3003
|
+
x: v,
|
|
3004
|
+
y: g
|
|
3005
|
+
} = Un(u, f, d)), b = -1);
|
|
3006
|
+
}
|
|
3007
|
+
return {
|
|
3008
|
+
x: v,
|
|
3009
|
+
y: g,
|
|
3010
|
+
placement: f,
|
|
3011
|
+
strategy: i,
|
|
3012
|
+
middlewareData: h
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
async function Er(e, t) {
|
|
3016
|
+
var r;
|
|
3017
|
+
t === void 0 && (t = {});
|
|
3018
|
+
const {
|
|
3019
|
+
x: o,
|
|
3020
|
+
y: i,
|
|
3021
|
+
platform: s,
|
|
3022
|
+
rects: a,
|
|
3023
|
+
elements: c,
|
|
3024
|
+
strategy: d
|
|
3025
|
+
} = e, {
|
|
3026
|
+
boundary: u = "clippingAncestors",
|
|
3027
|
+
rootBoundary: v = "viewport",
|
|
3028
|
+
elementContext: g = "floating",
|
|
3029
|
+
altBoundary: f = !1,
|
|
3030
|
+
padding: h = 0
|
|
3031
|
+
} = ht(t, e), w = mr(h), T = c[f ? g === "floating" ? "reference" : "floating" : g], x = Pt(await s.getClippingRect({
|
|
3032
|
+
element: (r = await (s.isElement == null ? void 0 : s.isElement(T))) == null || r ? T : T.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
3033
|
+
boundary: u,
|
|
3034
|
+
rootBoundary: v,
|
|
3035
|
+
strategy: d
|
|
3036
|
+
})), j = g === "floating" ? {
|
|
3037
|
+
x: o,
|
|
3038
|
+
y: i,
|
|
3039
|
+
width: a.floating.width,
|
|
3040
|
+
height: a.floating.height
|
|
3041
|
+
} : a.reference, P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), H = await (s.isElement == null ? void 0 : s.isElement(P)) ? await (s.getScale == null ? void 0 : s.getScale(P)) || {
|
|
3042
|
+
x: 1,
|
|
3043
|
+
y: 1
|
|
3044
|
+
} : {
|
|
3045
|
+
x: 1,
|
|
3046
|
+
y: 1
|
|
3047
|
+
}, A = Pt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3048
|
+
elements: c,
|
|
3049
|
+
rect: j,
|
|
3050
|
+
offsetParent: P,
|
|
3051
|
+
strategy: d
|
|
3052
|
+
}) : j);
|
|
3053
|
+
return {
|
|
3054
|
+
top: (x.top - A.top + w.top) / H.y,
|
|
3055
|
+
bottom: (A.bottom - x.bottom + w.bottom) / H.y,
|
|
3056
|
+
left: (x.left - A.left + w.left) / H.x,
|
|
3057
|
+
right: (A.right - x.right + w.right) / H.x
|
|
3058
|
+
};
|
|
3059
|
+
}
|
|
3060
|
+
const $o = (e) => ({
|
|
3061
|
+
name: "arrow",
|
|
3062
|
+
options: e,
|
|
3063
|
+
async fn(t) {
|
|
3064
|
+
const {
|
|
3065
|
+
x: r,
|
|
3066
|
+
y: o,
|
|
3067
|
+
placement: i,
|
|
3068
|
+
rects: s,
|
|
3069
|
+
platform: a,
|
|
3070
|
+
elements: c,
|
|
3071
|
+
middlewareData: d
|
|
3072
|
+
} = t, {
|
|
3073
|
+
element: u,
|
|
3074
|
+
padding: v = 0
|
|
3075
|
+
} = ht(e, t) || {};
|
|
3076
|
+
if (u == null)
|
|
3077
|
+
return {};
|
|
3078
|
+
const g = mr(v), f = {
|
|
3079
|
+
x: r,
|
|
3080
|
+
y: o
|
|
3081
|
+
}, h = dn(i), w = fn(h), b = await a.getDimensions(u), T = h === "y", x = T ? "top" : "left", j = T ? "bottom" : "right", P = T ? "clientHeight" : "clientWidth", H = s.reference[w] + s.reference[h] - f[h] - s.floating[w], A = f[h] - s.reference[h], K = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
3082
|
+
let B = K ? K[P] : 0;
|
|
3083
|
+
(!B || !await (a.isElement == null ? void 0 : a.isElement(K))) && (B = c.floating[P] || s.floating[w]);
|
|
3084
|
+
const ee = H / 2 - A / 2, q = B / 2 - b[w] / 2 - 1, ne = ot(g[x], q), te = ot(g[j], q), Q = ne, J = B - b[w] - te, V = B / 2 - b[w] / 2 + ee, z = an(Q, V, J), W = !d.arrow && vt(i) != null && V !== z && s.reference[w] / 2 - (V < Q ? ne : te) - b[w] / 2 < 0, k = W ? V < Q ? V - Q : V - J : 0;
|
|
3085
|
+
return {
|
|
3086
|
+
[h]: f[h] + k,
|
|
3087
|
+
data: {
|
|
3088
|
+
[h]: z,
|
|
3089
|
+
centerOffset: V - z - k,
|
|
3090
|
+
...W && {
|
|
3091
|
+
alignmentOffset: k
|
|
3092
|
+
}
|
|
3093
|
+
},
|
|
3094
|
+
reset: W
|
|
3095
|
+
};
|
|
3096
|
+
}
|
|
3097
|
+
}), Yo = function(e) {
|
|
3098
|
+
return e === void 0 && (e = {}), {
|
|
3099
|
+
name: "flip",
|
|
3100
|
+
options: e,
|
|
3101
|
+
async fn(t) {
|
|
3102
|
+
var r, o;
|
|
3103
|
+
const {
|
|
3104
|
+
placement: i,
|
|
3105
|
+
middlewareData: s,
|
|
3106
|
+
rects: a,
|
|
3107
|
+
initialPlacement: c,
|
|
3108
|
+
platform: d,
|
|
3109
|
+
elements: u
|
|
3110
|
+
} = t, {
|
|
3111
|
+
mainAxis: v = !0,
|
|
3112
|
+
crossAxis: g = !0,
|
|
3113
|
+
fallbackPlacements: f,
|
|
3114
|
+
fallbackStrategy: h = "bestFit",
|
|
3115
|
+
fallbackAxisSideDirection: w = "none",
|
|
3116
|
+
flipAlignment: b = !0,
|
|
3117
|
+
...T
|
|
3118
|
+
} = ht(e, t);
|
|
3119
|
+
if ((r = s.arrow) != null && r.alignmentOffset)
|
|
3120
|
+
return {};
|
|
3121
|
+
const x = Ze(i), j = it(c), P = Ze(c) === c, H = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), A = f || (P || !b ? [Nt(c)] : co(c)), K = w !== "none";
|
|
3122
|
+
!f && K && A.push(...fo(c, b, w, H));
|
|
3123
|
+
const B = [c, ...A], ee = await Er(t, T), q = [];
|
|
3124
|
+
let ne = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
3125
|
+
if (v && q.push(ee[x]), g) {
|
|
3126
|
+
const V = uo(i, a, H);
|
|
3127
|
+
q.push(ee[V[0]], ee[V[1]]);
|
|
3128
|
+
}
|
|
3129
|
+
if (ne = [...ne, {
|
|
3130
|
+
placement: i,
|
|
3131
|
+
overflows: q
|
|
3132
|
+
}], !q.every((V) => V <= 0)) {
|
|
3133
|
+
var te, Q;
|
|
3134
|
+
const V = (((te = s.flip) == null ? void 0 : te.index) || 0) + 1, z = B[V];
|
|
3135
|
+
if (z)
|
|
3136
|
+
return {
|
|
3137
|
+
data: {
|
|
3138
|
+
index: V,
|
|
3139
|
+
overflows: ne
|
|
3140
|
+
},
|
|
3141
|
+
reset: {
|
|
3142
|
+
placement: z
|
|
3143
|
+
}
|
|
3144
|
+
};
|
|
3145
|
+
let W = (Q = ne.filter((k) => k.overflows[0] <= 0).sort((k, C) => k.overflows[1] - C.overflows[1])[0]) == null ? void 0 : Q.placement;
|
|
3146
|
+
if (!W)
|
|
3147
|
+
switch (h) {
|
|
3148
|
+
case "bestFit": {
|
|
3149
|
+
var J;
|
|
3150
|
+
const k = (J = ne.filter((C) => {
|
|
3151
|
+
if (K) {
|
|
3152
|
+
const R = it(C.placement);
|
|
3153
|
+
return R === j || // Create a bias to the `y` side axis due to horizontal
|
|
3154
|
+
// reading directions favoring greater width.
|
|
3155
|
+
R === "y";
|
|
3156
|
+
}
|
|
3157
|
+
return !0;
|
|
3158
|
+
}).map((C) => [C.placement, C.overflows.filter((R) => R > 0).reduce((R, l) => R + l, 0)]).sort((C, R) => C[1] - R[1])[0]) == null ? void 0 : J[0];
|
|
3159
|
+
k && (W = k);
|
|
3160
|
+
break;
|
|
3161
|
+
}
|
|
3162
|
+
case "initialPlacement":
|
|
3163
|
+
W = c;
|
|
3164
|
+
break;
|
|
3165
|
+
}
|
|
3166
|
+
if (i !== W)
|
|
3167
|
+
return {
|
|
3168
|
+
reset: {
|
|
3169
|
+
placement: W
|
|
3170
|
+
}
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3173
|
+
return {};
|
|
3174
|
+
}
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
async function Ho(e, t) {
|
|
3178
|
+
const {
|
|
3179
|
+
placement: r,
|
|
3180
|
+
platform: o,
|
|
3181
|
+
elements: i
|
|
3182
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), a = Ze(r), c = vt(r), d = it(r) === "y", u = ["left", "top"].includes(a) ? -1 : 1, v = s && d ? -1 : 1, g = ht(t, e);
|
|
3183
|
+
let {
|
|
3184
|
+
mainAxis: f,
|
|
3185
|
+
crossAxis: h,
|
|
3186
|
+
alignmentAxis: w
|
|
3187
|
+
} = typeof g == "number" ? {
|
|
3188
|
+
mainAxis: g,
|
|
3189
|
+
crossAxis: 0,
|
|
3190
|
+
alignmentAxis: null
|
|
3191
|
+
} : {
|
|
3192
|
+
mainAxis: g.mainAxis || 0,
|
|
3193
|
+
crossAxis: g.crossAxis || 0,
|
|
3194
|
+
alignmentAxis: g.alignmentAxis
|
|
3195
|
+
};
|
|
3196
|
+
return c && typeof w == "number" && (h = c === "end" ? w * -1 : w), d ? {
|
|
3197
|
+
x: h * v,
|
|
3198
|
+
y: f * u
|
|
3199
|
+
} : {
|
|
3200
|
+
x: f * u,
|
|
3201
|
+
y: h * v
|
|
3202
|
+
};
|
|
3203
|
+
}
|
|
3204
|
+
const Wo = function(e) {
|
|
3205
|
+
return e === void 0 && (e = 0), {
|
|
3206
|
+
name: "offset",
|
|
3207
|
+
options: e,
|
|
3208
|
+
async fn(t) {
|
|
3209
|
+
var r, o;
|
|
3210
|
+
const {
|
|
3211
|
+
x: i,
|
|
3212
|
+
y: s,
|
|
3213
|
+
placement: a,
|
|
3214
|
+
middlewareData: c
|
|
3215
|
+
} = t, d = await Ho(t, e);
|
|
3216
|
+
return a === ((r = c.offset) == null ? void 0 : r.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
3217
|
+
x: i + d.x,
|
|
3218
|
+
y: s + d.y,
|
|
3219
|
+
data: {
|
|
3220
|
+
...d,
|
|
3221
|
+
placement: a
|
|
3222
|
+
}
|
|
3223
|
+
};
|
|
3224
|
+
}
|
|
3225
|
+
};
|
|
3226
|
+
}, Uo = function(e) {
|
|
3227
|
+
return e === void 0 && (e = {}), {
|
|
3228
|
+
name: "shift",
|
|
3229
|
+
options: e,
|
|
3230
|
+
async fn(t) {
|
|
3231
|
+
const {
|
|
3232
|
+
x: r,
|
|
3233
|
+
y: o,
|
|
3234
|
+
placement: i
|
|
3235
|
+
} = t, {
|
|
3236
|
+
mainAxis: s = !0,
|
|
3237
|
+
crossAxis: a = !1,
|
|
3238
|
+
limiter: c = {
|
|
3239
|
+
fn: (T) => {
|
|
3240
|
+
let {
|
|
3241
|
+
x,
|
|
3242
|
+
y: j
|
|
3243
|
+
} = T;
|
|
3244
|
+
return {
|
|
3245
|
+
x,
|
|
3246
|
+
y: j
|
|
3247
|
+
};
|
|
3248
|
+
}
|
|
3249
|
+
},
|
|
3250
|
+
...d
|
|
3251
|
+
} = ht(e, t), u = {
|
|
3252
|
+
x: r,
|
|
3253
|
+
y: o
|
|
3254
|
+
}, v = await Er(t, d), g = it(Ze(i)), f = dr(g);
|
|
3255
|
+
let h = u[f], w = u[g];
|
|
3256
|
+
if (s) {
|
|
3257
|
+
const T = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", j = h + v[T], P = h - v[x];
|
|
3258
|
+
h = an(j, h, P);
|
|
3259
|
+
}
|
|
3260
|
+
if (a) {
|
|
3261
|
+
const T = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", j = w + v[T], P = w - v[x];
|
|
3262
|
+
w = an(j, w, P);
|
|
3263
|
+
}
|
|
3264
|
+
const b = c.fn({
|
|
3265
|
+
...t,
|
|
3266
|
+
[f]: h,
|
|
3267
|
+
[g]: w
|
|
3268
|
+
});
|
|
3269
|
+
return {
|
|
3270
|
+
...b,
|
|
3271
|
+
data: {
|
|
3272
|
+
x: b.x - r,
|
|
3273
|
+
y: b.y - o,
|
|
3274
|
+
enabled: {
|
|
3275
|
+
[f]: s,
|
|
3276
|
+
[g]: a
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
};
|
|
3280
|
+
}
|
|
3281
|
+
};
|
|
3282
|
+
};
|
|
3283
|
+
function br(e) {
|
|
3284
|
+
const t = Re(e);
|
|
3285
|
+
let r = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
3286
|
+
const i = we(e), s = i ? e.offsetWidth : r, a = i ? e.offsetHeight : o, c = At(r) !== s || At(o) !== a;
|
|
3287
|
+
return c && (r = s, o = a), {
|
|
3288
|
+
width: r,
|
|
3289
|
+
height: o,
|
|
3290
|
+
$: c
|
|
3291
|
+
};
|
|
3292
|
+
}
|
|
3293
|
+
function mn(e) {
|
|
3294
|
+
return ce(e) ? e : e.contextElement;
|
|
3295
|
+
}
|
|
3296
|
+
function tt(e) {
|
|
3297
|
+
const t = mn(e);
|
|
3298
|
+
if (!we(t))
|
|
3299
|
+
return ke(1);
|
|
3300
|
+
const r = t.getBoundingClientRect(), {
|
|
3301
|
+
width: o,
|
|
3302
|
+
height: i,
|
|
3303
|
+
$: s
|
|
3304
|
+
} = br(t);
|
|
3305
|
+
let a = (s ? At(r.width) : r.width) / o, c = (s ? At(r.height) : r.height) / i;
|
|
3306
|
+
return (!a || !Number.isFinite(a)) && (a = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
3307
|
+
x: a,
|
|
3308
|
+
y: c
|
|
3309
|
+
};
|
|
3310
|
+
}
|
|
3311
|
+
const Fo = /* @__PURE__ */ ke(0);
|
|
3312
|
+
function wr(e) {
|
|
3313
|
+
const t = Ee(e);
|
|
3314
|
+
return !It() || !t.visualViewport ? Fo : {
|
|
3315
|
+
x: t.visualViewport.offsetLeft,
|
|
3316
|
+
y: t.visualViewport.offsetTop
|
|
3317
|
+
};
|
|
3318
|
+
}
|
|
3319
|
+
function Bo(e, t, r) {
|
|
3320
|
+
return t === void 0 && (t = !1), !r || t && r !== Ee(e) ? !1 : t;
|
|
3321
|
+
}
|
|
3322
|
+
function Je(e, t, r, o) {
|
|
3323
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
3324
|
+
const i = e.getBoundingClientRect(), s = mn(e);
|
|
3325
|
+
let a = ke(1);
|
|
3326
|
+
t && (o ? ce(o) && (a = tt(o)) : a = tt(e));
|
|
3327
|
+
const c = Bo(s, r, o) ? wr(s) : ke(0);
|
|
3328
|
+
let d = (i.left + c.x) / a.x, u = (i.top + c.y) / a.y, v = i.width / a.x, g = i.height / a.y;
|
|
3329
|
+
if (s) {
|
|
3330
|
+
const f = Ee(s), h = o && ce(o) ? Ee(o) : o;
|
|
3331
|
+
let w = f, b = rn(w);
|
|
3332
|
+
for (; b && o && h !== w; ) {
|
|
3333
|
+
const T = tt(b), x = b.getBoundingClientRect(), j = Re(b), P = x.left + (b.clientLeft + parseFloat(j.paddingLeft)) * T.x, H = x.top + (b.clientTop + parseFloat(j.paddingTop)) * T.y;
|
|
3334
|
+
d *= T.x, u *= T.y, v *= T.x, g *= T.y, d += P, u += H, w = Ee(b), b = rn(w);
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
return Pt({
|
|
3338
|
+
width: v,
|
|
3339
|
+
height: g,
|
|
3340
|
+
x: d,
|
|
3341
|
+
y: u
|
|
3342
|
+
});
|
|
3343
|
+
}
|
|
3344
|
+
function gn(e, t) {
|
|
3345
|
+
const r = $t(e).scrollLeft;
|
|
3346
|
+
return t ? t.left + r : Je(je(e)).left + r;
|
|
3347
|
+
}
|
|
3348
|
+
function Rr(e, t, r) {
|
|
3349
|
+
r === void 0 && (r = !1);
|
|
3350
|
+
const o = e.getBoundingClientRect(), i = o.left + t.scrollLeft - (r ? 0 : (
|
|
3351
|
+
// RTL <body> scrollbar.
|
|
3352
|
+
gn(e, o)
|
|
3353
|
+
)), s = o.top + t.scrollTop;
|
|
3354
|
+
return {
|
|
3355
|
+
x: i,
|
|
3356
|
+
y: s
|
|
3357
|
+
};
|
|
3358
|
+
}
|
|
3359
|
+
function Vo(e) {
|
|
3360
|
+
let {
|
|
3361
|
+
elements: t,
|
|
3362
|
+
rect: r,
|
|
3363
|
+
offsetParent: o,
|
|
3364
|
+
strategy: i
|
|
3365
|
+
} = e;
|
|
3366
|
+
const s = i === "fixed", a = je(o), c = t ? zt(t.floating) : !1;
|
|
3367
|
+
if (o === a || c && s)
|
|
3368
|
+
return r;
|
|
3369
|
+
let d = {
|
|
3370
|
+
scrollLeft: 0,
|
|
3371
|
+
scrollTop: 0
|
|
3372
|
+
}, u = ke(1);
|
|
3373
|
+
const v = ke(0), g = we(o);
|
|
3374
|
+
if ((g || !g && !s) && ((st(o) !== "body" || pt(a)) && (d = $t(o)), we(o))) {
|
|
3375
|
+
const h = Je(o);
|
|
3376
|
+
u = tt(o), v.x = h.x + o.clientLeft, v.y = h.y + o.clientTop;
|
|
3377
|
+
}
|
|
3378
|
+
const f = a && !g && !s ? Rr(a, d, !0) : ke(0);
|
|
3379
|
+
return {
|
|
3380
|
+
width: r.width * u.x,
|
|
3381
|
+
height: r.height * u.y,
|
|
3382
|
+
x: r.x * u.x - d.scrollLeft * u.x + v.x + f.x,
|
|
3383
|
+
y: r.y * u.y - d.scrollTop * u.y + v.y + f.y
|
|
3384
|
+
};
|
|
3385
|
+
}
|
|
3386
|
+
function qo(e) {
|
|
3387
|
+
return Array.from(e.getClientRects());
|
|
3388
|
+
}
|
|
3389
|
+
function Go(e) {
|
|
3390
|
+
const t = je(e), r = $t(e), o = e.ownerDocument.body, i = Xe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = Xe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
3391
|
+
let a = -r.scrollLeft + gn(e);
|
|
3392
|
+
const c = -r.scrollTop;
|
|
3393
|
+
return Re(o).direction === "rtl" && (a += Xe(t.clientWidth, o.clientWidth) - i), {
|
|
3394
|
+
width: i,
|
|
3395
|
+
height: s,
|
|
3396
|
+
x: a,
|
|
3397
|
+
y: c
|
|
3398
|
+
};
|
|
3399
|
+
}
|
|
3400
|
+
function Ko(e, t) {
|
|
3401
|
+
const r = Ee(e), o = je(e), i = r.visualViewport;
|
|
3402
|
+
let s = o.clientWidth, a = o.clientHeight, c = 0, d = 0;
|
|
3403
|
+
if (i) {
|
|
3404
|
+
s = i.width, a = i.height;
|
|
3405
|
+
const u = It();
|
|
3406
|
+
(!u || u && t === "fixed") && (c = i.offsetLeft, d = i.offsetTop);
|
|
3407
|
+
}
|
|
3408
|
+
return {
|
|
3409
|
+
width: s,
|
|
3410
|
+
height: a,
|
|
3411
|
+
x: c,
|
|
3412
|
+
y: d
|
|
3413
|
+
};
|
|
3414
|
+
}
|
|
3415
|
+
function Xo(e, t) {
|
|
3416
|
+
const r = Je(e, !0, t === "fixed"), o = r.top + e.clientTop, i = r.left + e.clientLeft, s = we(e) ? tt(e) : ke(1), a = e.clientWidth * s.x, c = e.clientHeight * s.y, d = i * s.x, u = o * s.y;
|
|
3417
|
+
return {
|
|
3418
|
+
width: a,
|
|
3419
|
+
height: c,
|
|
3420
|
+
x: d,
|
|
3421
|
+
y: u
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
function Fn(e, t, r) {
|
|
3425
|
+
let o;
|
|
3426
|
+
if (t === "viewport")
|
|
3427
|
+
o = Ko(e, r);
|
|
3428
|
+
else if (t === "document")
|
|
3429
|
+
o = Go(je(e));
|
|
3430
|
+
else if (ce(t))
|
|
3431
|
+
o = Xo(t, r);
|
|
3432
|
+
else {
|
|
3433
|
+
const i = wr(e);
|
|
3434
|
+
o = {
|
|
3435
|
+
x: t.x - i.x,
|
|
3436
|
+
y: t.y - i.y,
|
|
3437
|
+
width: t.width,
|
|
3438
|
+
height: t.height
|
|
3439
|
+
};
|
|
3440
|
+
}
|
|
3441
|
+
return Pt(o);
|
|
3442
|
+
}
|
|
3443
|
+
function Tr(e, t) {
|
|
3444
|
+
const r = He(e);
|
|
3445
|
+
return r === t || !ce(r) || Ye(r) ? !1 : Re(r).position === "fixed" || Tr(r, t);
|
|
3446
|
+
}
|
|
3447
|
+
function Qo(e, t) {
|
|
3448
|
+
const r = t.get(e);
|
|
3449
|
+
if (r)
|
|
3450
|
+
return r;
|
|
3451
|
+
let o = Ve(e, [], !1).filter((c) => ce(c) && st(c) !== "body"), i = null;
|
|
3452
|
+
const s = Re(e).position === "fixed";
|
|
3453
|
+
let a = s ? He(e) : e;
|
|
3454
|
+
for (; ce(a) && !Ye(a); ) {
|
|
3455
|
+
const c = Re(a), d = ln(a);
|
|
3456
|
+
!d && c.position === "fixed" && (i = null), (s ? !d && !i : !d && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || pt(a) && !d && Tr(e, a)) ? o = o.filter((v) => v !== a) : i = c, a = He(a);
|
|
3457
|
+
}
|
|
3458
|
+
return t.set(e, o), o;
|
|
3459
|
+
}
|
|
3460
|
+
function Zo(e) {
|
|
3461
|
+
let {
|
|
3462
|
+
element: t,
|
|
3463
|
+
boundary: r,
|
|
3464
|
+
rootBoundary: o,
|
|
3465
|
+
strategy: i
|
|
3466
|
+
} = e;
|
|
3467
|
+
const a = [...r === "clippingAncestors" ? zt(t) ? [] : Qo(t, this._c) : [].concat(r), o], c = a[0], d = a.reduce((u, v) => {
|
|
3468
|
+
const g = Fn(t, v, i);
|
|
3469
|
+
return u.top = Xe(g.top, u.top), u.right = ot(g.right, u.right), u.bottom = ot(g.bottom, u.bottom), u.left = Xe(g.left, u.left), u;
|
|
3470
|
+
}, Fn(t, c, i));
|
|
3471
|
+
return {
|
|
3472
|
+
width: d.right - d.left,
|
|
3473
|
+
height: d.bottom - d.top,
|
|
3474
|
+
x: d.left,
|
|
3475
|
+
y: d.top
|
|
3476
|
+
};
|
|
3477
|
+
}
|
|
3478
|
+
function Jo(e) {
|
|
3479
|
+
const {
|
|
3480
|
+
width: t,
|
|
3481
|
+
height: r
|
|
3482
|
+
} = br(e);
|
|
3483
|
+
return {
|
|
3484
|
+
width: t,
|
|
3485
|
+
height: r
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
function ei(e, t, r) {
|
|
3489
|
+
const o = we(t), i = je(t), s = r === "fixed", a = Je(e, !0, s, t);
|
|
3490
|
+
let c = {
|
|
3491
|
+
scrollLeft: 0,
|
|
3492
|
+
scrollTop: 0
|
|
3493
|
+
};
|
|
3494
|
+
const d = ke(0);
|
|
3495
|
+
if (o || !o && !s)
|
|
3496
|
+
if ((st(t) !== "body" || pt(i)) && (c = $t(t)), o) {
|
|
3497
|
+
const f = Je(t, !0, s, t);
|
|
3498
|
+
d.x = f.x + t.clientLeft, d.y = f.y + t.clientTop;
|
|
3499
|
+
} else i && (d.x = gn(i));
|
|
3500
|
+
const u = i && !o && !s ? Rr(i, c) : ke(0), v = a.left + c.scrollLeft - d.x - u.x, g = a.top + c.scrollTop - d.y - u.y;
|
|
3501
|
+
return {
|
|
3502
|
+
x: v,
|
|
3503
|
+
y: g,
|
|
3504
|
+
width: a.width,
|
|
3505
|
+
height: a.height
|
|
3506
|
+
};
|
|
3507
|
+
}
|
|
3508
|
+
function Gt(e) {
|
|
3509
|
+
return Re(e).position === "static";
|
|
3510
|
+
}
|
|
3511
|
+
function Bn(e, t) {
|
|
3512
|
+
if (!we(e) || Re(e).position === "fixed")
|
|
3513
|
+
return null;
|
|
3514
|
+
if (t)
|
|
3515
|
+
return t(e);
|
|
3516
|
+
let r = e.offsetParent;
|
|
3517
|
+
return je(e) === r && (r = r.ownerDocument.body), r;
|
|
3518
|
+
}
|
|
3519
|
+
function Or(e, t) {
|
|
3520
|
+
const r = Ee(e);
|
|
3521
|
+
if (zt(e))
|
|
3522
|
+
return r;
|
|
3523
|
+
if (!we(e)) {
|
|
3524
|
+
let i = He(e);
|
|
3525
|
+
for (; i && !Ye(i); ) {
|
|
3526
|
+
if (ce(i) && !Gt(i))
|
|
3527
|
+
return i;
|
|
3528
|
+
i = He(i);
|
|
3529
|
+
}
|
|
3530
|
+
return r;
|
|
3531
|
+
}
|
|
3532
|
+
let o = Bn(e, t);
|
|
3533
|
+
for (; o && Qr(o) && Gt(o); )
|
|
3534
|
+
o = Bn(o, t);
|
|
3535
|
+
return o && Ye(o) && Gt(o) && !ln(o) ? r : o || Zr(e) || r;
|
|
3536
|
+
}
|
|
3537
|
+
const ti = async function(e) {
|
|
3538
|
+
const t = this.getOffsetParent || Or, r = this.getDimensions, o = await r(e.floating);
|
|
3539
|
+
return {
|
|
3540
|
+
reference: ei(e.reference, await t(e.floating), e.strategy),
|
|
3541
|
+
floating: {
|
|
3542
|
+
x: 0,
|
|
3543
|
+
y: 0,
|
|
3544
|
+
width: o.width,
|
|
3545
|
+
height: o.height
|
|
3546
|
+
}
|
|
3547
|
+
};
|
|
3548
|
+
};
|
|
3549
|
+
function ni(e) {
|
|
3550
|
+
return Re(e).direction === "rtl";
|
|
3551
|
+
}
|
|
3552
|
+
const ri = {
|
|
3553
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Vo,
|
|
3554
|
+
getDocumentElement: je,
|
|
3555
|
+
getClippingRect: Zo,
|
|
3556
|
+
getOffsetParent: Or,
|
|
3557
|
+
getElementRects: ti,
|
|
3558
|
+
getClientRects: qo,
|
|
3559
|
+
getDimensions: Jo,
|
|
3560
|
+
getScale: tt,
|
|
3561
|
+
isElement: ce,
|
|
3562
|
+
isRTL: ni
|
|
3563
|
+
};
|
|
3564
|
+
function xr(e, t) {
|
|
3565
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3566
|
+
}
|
|
3567
|
+
function oi(e, t) {
|
|
3568
|
+
let r = null, o;
|
|
3569
|
+
const i = je(e);
|
|
3570
|
+
function s() {
|
|
3571
|
+
var c;
|
|
3572
|
+
clearTimeout(o), (c = r) == null || c.disconnect(), r = null;
|
|
3573
|
+
}
|
|
3574
|
+
function a(c, d) {
|
|
3575
|
+
c === void 0 && (c = !1), d === void 0 && (d = 1), s();
|
|
3576
|
+
const u = e.getBoundingClientRect(), {
|
|
3577
|
+
left: v,
|
|
3578
|
+
top: g,
|
|
3579
|
+
width: f,
|
|
3580
|
+
height: h
|
|
3581
|
+
} = u;
|
|
3582
|
+
if (c || t(), !f || !h)
|
|
3583
|
+
return;
|
|
3584
|
+
const w = Ot(g), b = Ot(i.clientWidth - (v + f)), T = Ot(i.clientHeight - (g + h)), x = Ot(v), P = {
|
|
3585
|
+
rootMargin: -w + "px " + -b + "px " + -T + "px " + -x + "px",
|
|
3586
|
+
threshold: Xe(0, ot(1, d)) || 1
|
|
3587
|
+
};
|
|
3588
|
+
let H = !0;
|
|
3589
|
+
function A(K) {
|
|
3590
|
+
const B = K[0].intersectionRatio;
|
|
3591
|
+
if (B !== d) {
|
|
3592
|
+
if (!H)
|
|
3593
|
+
return a();
|
|
3594
|
+
B ? a(!1, B) : o = setTimeout(() => {
|
|
3595
|
+
a(!1, 1e-7);
|
|
3596
|
+
}, 1e3);
|
|
3597
|
+
}
|
|
3598
|
+
B === 1 && !xr(u, e.getBoundingClientRect()) && a(), H = !1;
|
|
3599
|
+
}
|
|
3600
|
+
try {
|
|
3601
|
+
r = new IntersectionObserver(A, {
|
|
3602
|
+
...P,
|
|
3603
|
+
// Handle <iframe>s
|
|
3604
|
+
root: i.ownerDocument
|
|
3605
|
+
});
|
|
3606
|
+
} catch {
|
|
3607
|
+
r = new IntersectionObserver(A, P);
|
|
3608
|
+
}
|
|
3609
|
+
r.observe(e);
|
|
3610
|
+
}
|
|
3611
|
+
return a(!0), s;
|
|
3612
|
+
}
|
|
3613
|
+
function ii(e, t, r, o) {
|
|
3614
|
+
o === void 0 && (o = {});
|
|
3615
|
+
const {
|
|
3616
|
+
ancestorScroll: i = !0,
|
|
3617
|
+
ancestorResize: s = !0,
|
|
3618
|
+
elementResize: a = typeof ResizeObserver == "function",
|
|
3619
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
3620
|
+
animationFrame: d = !1
|
|
3621
|
+
} = o, u = mn(e), v = i || s ? [...u ? Ve(u) : [], ...Ve(t)] : [];
|
|
3622
|
+
v.forEach((x) => {
|
|
3623
|
+
i && x.addEventListener("scroll", r, {
|
|
3624
|
+
passive: !0
|
|
3625
|
+
}), s && x.addEventListener("resize", r);
|
|
3626
|
+
});
|
|
3627
|
+
const g = u && c ? oi(u, r) : null;
|
|
3628
|
+
let f = -1, h = null;
|
|
3629
|
+
a && (h = new ResizeObserver((x) => {
|
|
3630
|
+
let [j] = x;
|
|
3631
|
+
j && j.target === u && h && (h.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
3632
|
+
var P;
|
|
3633
|
+
(P = h) == null || P.observe(t);
|
|
3634
|
+
})), r();
|
|
3635
|
+
}), u && !d && h.observe(u), h.observe(t));
|
|
3636
|
+
let w, b = d ? Je(e) : null;
|
|
3637
|
+
d && T();
|
|
3638
|
+
function T() {
|
|
3639
|
+
const x = Je(e);
|
|
3640
|
+
b && !xr(b, x) && r(), b = x, w = requestAnimationFrame(T);
|
|
3641
|
+
}
|
|
3642
|
+
return r(), () => {
|
|
3643
|
+
var x;
|
|
3644
|
+
v.forEach((j) => {
|
|
3645
|
+
i && j.removeEventListener("scroll", r), s && j.removeEventListener("resize", r);
|
|
3646
|
+
}), g == null || g(), (x = h) == null || x.disconnect(), h = null, d && cancelAnimationFrame(w);
|
|
3647
|
+
};
|
|
3648
|
+
}
|
|
3649
|
+
const si = Wo, ai = Uo, ui = Yo, Vn = $o, ci = (e, t, r) => {
|
|
3650
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
|
3651
|
+
platform: ri,
|
|
3652
|
+
...r
|
|
3653
|
+
}, s = {
|
|
3654
|
+
...i.platform,
|
|
3655
|
+
_c: o
|
|
3656
|
+
};
|
|
3657
|
+
return Io(e, t, {
|
|
3658
|
+
...i,
|
|
3659
|
+
platform: s
|
|
3660
|
+
});
|
|
3661
|
+
};
|
|
3662
|
+
var St = typeof document < "u" ? _.useLayoutEffect : _.useEffect;
|
|
3663
|
+
function Mt(e, t) {
|
|
3664
|
+
if (e === t)
|
|
3665
|
+
return !0;
|
|
3666
|
+
if (typeof e != typeof t)
|
|
3667
|
+
return !1;
|
|
3668
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
3669
|
+
return !0;
|
|
3670
|
+
let r, o, i;
|
|
3671
|
+
if (e && t && typeof e == "object") {
|
|
3672
|
+
if (Array.isArray(e)) {
|
|
3673
|
+
if (r = e.length, r !== t.length) return !1;
|
|
3674
|
+
for (o = r; o-- !== 0; )
|
|
3675
|
+
if (!Mt(e[o], t[o]))
|
|
3676
|
+
return !1;
|
|
3677
|
+
return !0;
|
|
3678
|
+
}
|
|
3679
|
+
if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length)
|
|
3680
|
+
return !1;
|
|
3681
|
+
for (o = r; o-- !== 0; )
|
|
3682
|
+
if (!{}.hasOwnProperty.call(t, i[o]))
|
|
3683
|
+
return !1;
|
|
3684
|
+
for (o = r; o-- !== 0; ) {
|
|
3685
|
+
const s = i[o];
|
|
3686
|
+
if (!(s === "_owner" && e.$$typeof) && !Mt(e[s], t[s]))
|
|
3687
|
+
return !1;
|
|
3688
|
+
}
|
|
3689
|
+
return !0;
|
|
3690
|
+
}
|
|
3691
|
+
return e !== e && t !== t;
|
|
3692
|
+
}
|
|
3693
|
+
function Cr(e) {
|
|
3694
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3695
|
+
}
|
|
3696
|
+
function qn(e, t) {
|
|
3697
|
+
const r = Cr(e);
|
|
3698
|
+
return Math.round(t * r) / r;
|
|
3699
|
+
}
|
|
3700
|
+
function Kt(e) {
|
|
3701
|
+
const t = _.useRef(e);
|
|
3702
|
+
return St(() => {
|
|
3703
|
+
t.current = e;
|
|
3704
|
+
}), t;
|
|
3705
|
+
}
|
|
3706
|
+
function li(e) {
|
|
3707
|
+
e === void 0 && (e = {});
|
|
3708
|
+
const {
|
|
3709
|
+
placement: t = "bottom",
|
|
3710
|
+
strategy: r = "absolute",
|
|
3711
|
+
middleware: o = [],
|
|
3712
|
+
platform: i,
|
|
3713
|
+
elements: {
|
|
3714
|
+
reference: s,
|
|
3715
|
+
floating: a
|
|
3716
|
+
} = {},
|
|
3717
|
+
transform: c = !0,
|
|
3718
|
+
whileElementsMounted: d,
|
|
3719
|
+
open: u
|
|
3720
|
+
} = e, [v, g] = _.useState({
|
|
3721
|
+
x: 0,
|
|
3722
|
+
y: 0,
|
|
3723
|
+
strategy: r,
|
|
3724
|
+
placement: t,
|
|
3725
|
+
middlewareData: {},
|
|
3726
|
+
isPositioned: !1
|
|
3727
|
+
}), [f, h] = _.useState(o);
|
|
3728
|
+
Mt(f, o) || h(o);
|
|
3729
|
+
const [w, b] = _.useState(null), [T, x] = _.useState(null), j = _.useCallback((C) => {
|
|
3730
|
+
C !== K.current && (K.current = C, b(C));
|
|
3731
|
+
}, []), P = _.useCallback((C) => {
|
|
3732
|
+
C !== B.current && (B.current = C, x(C));
|
|
3733
|
+
}, []), H = s || w, A = a || T, K = _.useRef(null), B = _.useRef(null), ee = _.useRef(v), q = d != null, ne = Kt(d), te = Kt(i), Q = Kt(u), J = _.useCallback(() => {
|
|
3734
|
+
if (!K.current || !B.current)
|
|
3735
|
+
return;
|
|
3736
|
+
const C = {
|
|
3737
|
+
placement: t,
|
|
3738
|
+
strategy: r,
|
|
3739
|
+
middleware: f
|
|
3740
|
+
};
|
|
3741
|
+
te.current && (C.platform = te.current), ci(K.current, B.current, C).then((R) => {
|
|
3742
|
+
const l = {
|
|
3743
|
+
...R,
|
|
3744
|
+
// The floating element's position may be recomputed while it's closed
|
|
3745
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
3746
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
3747
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
3748
|
+
isPositioned: Q.current !== !1
|
|
3749
|
+
};
|
|
3750
|
+
V.current && !Mt(ee.current, l) && (ee.current = l, _r.flushSync(() => {
|
|
3751
|
+
g(l);
|
|
3752
|
+
}));
|
|
3753
|
+
});
|
|
3754
|
+
}, [f, t, r, te, Q]);
|
|
3755
|
+
St(() => {
|
|
3756
|
+
u === !1 && ee.current.isPositioned && (ee.current.isPositioned = !1, g((C) => ({
|
|
3757
|
+
...C,
|
|
3758
|
+
isPositioned: !1
|
|
3759
|
+
})));
|
|
3760
|
+
}, [u]);
|
|
3761
|
+
const V = _.useRef(!1);
|
|
3762
|
+
St(() => (V.current = !0, () => {
|
|
3763
|
+
V.current = !1;
|
|
3764
|
+
}), []), St(() => {
|
|
3765
|
+
if (H && (K.current = H), A && (B.current = A), H && A) {
|
|
3766
|
+
if (ne.current)
|
|
3767
|
+
return ne.current(H, A, J);
|
|
3768
|
+
J();
|
|
3769
|
+
}
|
|
3770
|
+
}, [H, A, J, ne, q]);
|
|
3771
|
+
const z = _.useMemo(() => ({
|
|
3772
|
+
reference: K,
|
|
3773
|
+
floating: B,
|
|
3774
|
+
setReference: j,
|
|
3775
|
+
setFloating: P
|
|
3776
|
+
}), [j, P]), W = _.useMemo(() => ({
|
|
3777
|
+
reference: H,
|
|
3778
|
+
floating: A
|
|
3779
|
+
}), [H, A]), k = _.useMemo(() => {
|
|
3780
|
+
const C = {
|
|
3781
|
+
position: r,
|
|
3782
|
+
left: 0,
|
|
3783
|
+
top: 0
|
|
3784
|
+
};
|
|
3785
|
+
if (!W.floating)
|
|
3786
|
+
return C;
|
|
3787
|
+
const R = qn(W.floating, v.x), l = qn(W.floating, v.y);
|
|
3788
|
+
return c ? {
|
|
3789
|
+
...C,
|
|
3790
|
+
transform: "translate(" + R + "px, " + l + "px)",
|
|
3791
|
+
...Cr(W.floating) >= 1.5 && {
|
|
3792
|
+
willChange: "transform"
|
|
3793
|
+
}
|
|
3794
|
+
} : {
|
|
3795
|
+
position: r,
|
|
3796
|
+
left: R,
|
|
3797
|
+
top: l
|
|
3798
|
+
};
|
|
3799
|
+
}, [r, c, W.floating, v.x, v.y]);
|
|
3800
|
+
return _.useMemo(() => ({
|
|
3801
|
+
...v,
|
|
3802
|
+
update: J,
|
|
3803
|
+
refs: z,
|
|
3804
|
+
elements: W,
|
|
3805
|
+
floatingStyles: k
|
|
3806
|
+
}), [v, J, z, W, k]);
|
|
3807
|
+
}
|
|
3808
|
+
const fi = (e) => {
|
|
3809
|
+
function t(r) {
|
|
3810
|
+
return {}.hasOwnProperty.call(r, "current");
|
|
3811
|
+
}
|
|
3812
|
+
return {
|
|
3813
|
+
name: "arrow",
|
|
3814
|
+
options: e,
|
|
3815
|
+
fn(r) {
|
|
3816
|
+
const {
|
|
3817
|
+
element: o,
|
|
3818
|
+
padding: i
|
|
3819
|
+
} = typeof e == "function" ? e(r) : e;
|
|
3820
|
+
return o && t(o) ? o.current != null ? Vn({
|
|
3821
|
+
element: o.current,
|
|
3822
|
+
padding: i
|
|
3823
|
+
}).fn(r) : {} : o ? Vn({
|
|
3824
|
+
element: o,
|
|
3825
|
+
padding: i
|
|
3826
|
+
}).fn(r) : {};
|
|
3827
|
+
}
|
|
3828
|
+
};
|
|
3829
|
+
}, di = (e, t) => ({
|
|
3830
|
+
...si(e),
|
|
3831
|
+
options: [e, t]
|
|
3832
|
+
}), mi = (e, t) => ({
|
|
3833
|
+
...ai(e),
|
|
3834
|
+
options: [e, t]
|
|
3835
|
+
}), gi = (e, t) => ({
|
|
3836
|
+
...ui(e),
|
|
3837
|
+
options: [e, t]
|
|
3838
|
+
}), pi = (e, t) => ({
|
|
3839
|
+
...fi(e),
|
|
3840
|
+
options: [e, t]
|
|
3841
|
+
});
|
|
3842
|
+
function Sr(e) {
|
|
3843
|
+
return _.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
3844
|
+
e.forEach((r) => {
|
|
3845
|
+
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
3846
|
+
});
|
|
3847
|
+
}, e);
|
|
3848
|
+
}
|
|
3849
|
+
const Ar = {
|
|
3850
|
+
...Yr
|
|
3851
|
+
}, hi = Ar.useInsertionEffect, vi = hi || ((e) => e());
|
|
3852
|
+
function $e(e) {
|
|
3853
|
+
const t = _.useRef(() => {
|
|
3854
|
+
if (process.env.NODE_ENV !== "production")
|
|
3855
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
3856
|
+
});
|
|
3857
|
+
return vi(() => {
|
|
3858
|
+
t.current = e;
|
|
3859
|
+
}), _.useCallback(function() {
|
|
3860
|
+
for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++)
|
|
3861
|
+
o[i] = arguments[i];
|
|
3862
|
+
return t.current == null ? void 0 : t.current(...o);
|
|
3863
|
+
}, []);
|
|
3864
|
+
}
|
|
3865
|
+
var Ce = typeof document < "u" ? _.useLayoutEffect : _.useEffect;
|
|
3866
|
+
let Gn = !1, yi = 0;
|
|
3867
|
+
const Kn = () => (
|
|
3868
|
+
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
3869
|
+
// on <React 18
|
|
3870
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + yi++
|
|
3871
|
+
);
|
|
3872
|
+
function _i() {
|
|
3873
|
+
const [e, t] = _.useState(() => Gn ? Kn() : void 0);
|
|
3874
|
+
return Ce(() => {
|
|
3875
|
+
e == null && t(Kn());
|
|
3876
|
+
}, []), _.useEffect(() => {
|
|
3877
|
+
Gn = !0;
|
|
3878
|
+
}, []), e;
|
|
3879
|
+
}
|
|
3880
|
+
const Ei = Ar.useId, Yt = Ei || _i;
|
|
3881
|
+
let gt;
|
|
3882
|
+
process.env.NODE_ENV !== "production" && (gt = /* @__PURE__ */ new Set());
|
|
3883
|
+
function bi() {
|
|
3884
|
+
for (var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)
|
|
3885
|
+
r[o] = arguments[o];
|
|
3886
|
+
const i = "Floating UI: " + r.join(" ");
|
|
3887
|
+
if (!((e = gt) != null && e.has(i))) {
|
|
3888
|
+
var s;
|
|
3889
|
+
(s = gt) == null || s.add(i), console.warn(i);
|
|
3890
|
+
}
|
|
3891
|
+
}
|
|
3892
|
+
function wi() {
|
|
3893
|
+
for (var e, t = arguments.length, r = new Array(t), o = 0; o < t; o++)
|
|
3894
|
+
r[o] = arguments[o];
|
|
3895
|
+
const i = "Floating UI: " + r.join(" ");
|
|
3896
|
+
if (!((e = gt) != null && e.has(i))) {
|
|
3897
|
+
var s;
|
|
3898
|
+
(s = gt) == null || s.add(i), console.error(i);
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
const Xn = /* @__PURE__ */ _.forwardRef(function(t, r) {
|
|
3902
|
+
const {
|
|
3903
|
+
context: {
|
|
3904
|
+
placement: o,
|
|
3905
|
+
elements: {
|
|
3906
|
+
floating: i
|
|
3907
|
+
},
|
|
3908
|
+
middlewareData: {
|
|
3909
|
+
arrow: s,
|
|
3910
|
+
shift: a
|
|
3911
|
+
}
|
|
3912
|
+
},
|
|
3913
|
+
width: c = 14,
|
|
3914
|
+
height: d = 7,
|
|
3915
|
+
tipRadius: u = 0,
|
|
3916
|
+
strokeWidth: v = 0,
|
|
3917
|
+
staticOffset: g,
|
|
3918
|
+
stroke: f,
|
|
3919
|
+
d: h,
|
|
3920
|
+
style: {
|
|
3921
|
+
transform: w,
|
|
3922
|
+
...b
|
|
3923
|
+
} = {},
|
|
3924
|
+
...T
|
|
3925
|
+
} = t;
|
|
3926
|
+
process.env.NODE_ENV !== "production" && (r || bi("The `ref` prop is required for `FloatingArrow`."));
|
|
3927
|
+
const x = Yt(), [j, P] = _.useState(!1);
|
|
3928
|
+
if (Ce(() => {
|
|
3929
|
+
if (!i) return;
|
|
3930
|
+
Re(i).direction === "rtl" && P(!0);
|
|
3931
|
+
}, [i]), !i)
|
|
3932
|
+
return null;
|
|
3933
|
+
const [H, A] = o.split("-"), K = H === "top" || H === "bottom";
|
|
3934
|
+
let B = g;
|
|
3935
|
+
(K && a != null && a.x || !K && a != null && a.y) && (B = null);
|
|
3936
|
+
const ee = v * 2, q = ee / 2, ne = c / 2 * (u / -8 + 1), te = d / 2 * u / 4, Q = !!h, J = B && A === "end" ? "bottom" : "top";
|
|
3937
|
+
let V = B && A === "end" ? "right" : "left";
|
|
3938
|
+
B && j && (V = A === "end" ? "left" : "right");
|
|
3939
|
+
const z = (s == null ? void 0 : s.x) != null ? B || s.x : "", W = (s == null ? void 0 : s.y) != null ? B || s.y : "", k = h || "M0,0" + (" H" + c) + (" L" + (c - ne) + "," + (d - te)) + (" Q" + c / 2 + "," + d + " " + ne + "," + (d - te)) + " Z", C = {
|
|
3940
|
+
top: Q ? "rotate(180deg)" : "",
|
|
3941
|
+
left: Q ? "rotate(90deg)" : "rotate(-90deg)",
|
|
3942
|
+
bottom: Q ? "" : "rotate(180deg)",
|
|
3943
|
+
right: Q ? "rotate(-90deg)" : "rotate(90deg)"
|
|
3944
|
+
}[H];
|
|
3945
|
+
return /* @__PURE__ */ Pe.jsxs("svg", {
|
|
3946
|
+
...T,
|
|
3947
|
+
"aria-hidden": !0,
|
|
3948
|
+
ref: r,
|
|
3949
|
+
width: Q ? c : c + ee,
|
|
3950
|
+
height: c,
|
|
3951
|
+
viewBox: "0 0 " + c + " " + (d > c ? d : c),
|
|
3952
|
+
style: {
|
|
3953
|
+
position: "absolute",
|
|
3954
|
+
pointerEvents: "none",
|
|
3955
|
+
[V]: z,
|
|
3956
|
+
[J]: W,
|
|
3957
|
+
[H]: K || Q ? "100%" : "calc(100% - " + ee / 2 + "px)",
|
|
3958
|
+
transform: [C, w].filter((R) => !!R).join(" "),
|
|
3959
|
+
...b
|
|
3960
|
+
},
|
|
3961
|
+
children: [ee > 0 && /* @__PURE__ */ Pe.jsx("path", {
|
|
3962
|
+
clipPath: "url(#" + x + ")",
|
|
3963
|
+
fill: "none",
|
|
3964
|
+
stroke: f,
|
|
3965
|
+
strokeWidth: ee + (h ? 0 : 1),
|
|
3966
|
+
d: k
|
|
3967
|
+
}), /* @__PURE__ */ Pe.jsx("path", {
|
|
3968
|
+
stroke: ee && !h ? T.fill : "none",
|
|
3969
|
+
d: k
|
|
3970
|
+
}), /* @__PURE__ */ Pe.jsx("clipPath", {
|
|
3971
|
+
id: x,
|
|
3972
|
+
children: /* @__PURE__ */ Pe.jsx("rect", {
|
|
3973
|
+
x: -q,
|
|
3974
|
+
y: q * (Q ? -1 : 1),
|
|
3975
|
+
width: c + ee,
|
|
3976
|
+
height: c
|
|
3977
|
+
})
|
|
3978
|
+
})]
|
|
3979
|
+
});
|
|
3980
|
+
});
|
|
3981
|
+
function Ri() {
|
|
3982
|
+
const e = /* @__PURE__ */ new Map();
|
|
3983
|
+
return {
|
|
3984
|
+
emit(t, r) {
|
|
3985
|
+
var o;
|
|
3986
|
+
(o = e.get(t)) == null || o.forEach((i) => i(r));
|
|
3987
|
+
},
|
|
3988
|
+
on(t, r) {
|
|
3989
|
+
e.set(t, [...e.get(t) || [], r]);
|
|
3990
|
+
},
|
|
3991
|
+
off(t, r) {
|
|
3992
|
+
var o;
|
|
3993
|
+
e.set(t, ((o = e.get(t)) == null ? void 0 : o.filter((i) => i !== r)) || []);
|
|
3994
|
+
}
|
|
3995
|
+
};
|
|
3996
|
+
}
|
|
3997
|
+
const Ti = /* @__PURE__ */ _.createContext(null), Oi = /* @__PURE__ */ _.createContext(null), pn = () => {
|
|
3998
|
+
var e;
|
|
3999
|
+
return ((e = _.useContext(Ti)) == null ? void 0 : e.id) || null;
|
|
4000
|
+
}, hn = () => _.useContext(Oi);
|
|
4001
|
+
function yt(e) {
|
|
4002
|
+
return "data-floating-ui-" + e;
|
|
4003
|
+
}
|
|
4004
|
+
function Xt(e) {
|
|
4005
|
+
const t = _.useRef(e);
|
|
4006
|
+
return Ce(() => {
|
|
4007
|
+
t.current = e;
|
|
4008
|
+
}), t;
|
|
4009
|
+
}
|
|
4010
|
+
const Qn = /* @__PURE__ */ yt("safe-polygon");
|
|
4011
|
+
function Qt(e, t, r) {
|
|
4012
|
+
return r && !sn(r) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
4013
|
+
}
|
|
4014
|
+
function xi(e, t) {
|
|
4015
|
+
t === void 0 && (t = {});
|
|
4016
|
+
const {
|
|
4017
|
+
open: r,
|
|
4018
|
+
onOpenChange: o,
|
|
4019
|
+
dataRef: i,
|
|
4020
|
+
events: s,
|
|
4021
|
+
elements: a
|
|
4022
|
+
} = e, {
|
|
4023
|
+
enabled: c = !0,
|
|
4024
|
+
delay: d = 0,
|
|
4025
|
+
handleClose: u = null,
|
|
4026
|
+
mouseOnly: v = !1,
|
|
4027
|
+
restMs: g = 0,
|
|
4028
|
+
move: f = !0
|
|
4029
|
+
} = t, h = hn(), w = pn(), b = Xt(u), T = Xt(d), x = Xt(r), j = _.useRef(), P = _.useRef(-1), H = _.useRef(), A = _.useRef(-1), K = _.useRef(!0), B = _.useRef(!1), ee = _.useRef(() => {
|
|
4030
|
+
}), q = _.useRef(!1), ne = _.useCallback(() => {
|
|
4031
|
+
var k;
|
|
4032
|
+
const C = (k = i.current.openEvent) == null ? void 0 : k.type;
|
|
4033
|
+
return (C == null ? void 0 : C.includes("mouse")) && C !== "mousedown";
|
|
4034
|
+
}, [i]);
|
|
4035
|
+
_.useEffect(() => {
|
|
4036
|
+
if (!c) return;
|
|
4037
|
+
function k(C) {
|
|
4038
|
+
let {
|
|
4039
|
+
open: R
|
|
4040
|
+
} = C;
|
|
4041
|
+
R || (clearTimeout(P.current), clearTimeout(A.current), K.current = !0, q.current = !1);
|
|
4042
|
+
}
|
|
4043
|
+
return s.on("openchange", k), () => {
|
|
4044
|
+
s.off("openchange", k);
|
|
4045
|
+
};
|
|
4046
|
+
}, [c, s]), _.useEffect(() => {
|
|
4047
|
+
if (!c || !b.current || !r) return;
|
|
4048
|
+
function k(R) {
|
|
4049
|
+
ne() && o(!1, R, "hover");
|
|
4050
|
+
}
|
|
4051
|
+
const C = Be(a.floating).documentElement;
|
|
4052
|
+
return C.addEventListener("mouseleave", k), () => {
|
|
4053
|
+
C.removeEventListener("mouseleave", k);
|
|
4054
|
+
};
|
|
4055
|
+
}, [a.floating, r, o, c, b, ne]);
|
|
4056
|
+
const te = _.useCallback(function(k, C, R) {
|
|
4057
|
+
C === void 0 && (C = !0), R === void 0 && (R = "hover");
|
|
4058
|
+
const l = Qt(T.current, "close", j.current);
|
|
4059
|
+
l && !H.current ? (clearTimeout(P.current), P.current = window.setTimeout(() => o(!1, k, R), l)) : C && (clearTimeout(P.current), o(!1, k, R));
|
|
4060
|
+
}, [T, o]), Q = $e(() => {
|
|
4061
|
+
ee.current(), H.current = void 0;
|
|
4062
|
+
}), J = $e(() => {
|
|
4063
|
+
if (B.current) {
|
|
4064
|
+
const k = Be(a.floating).body;
|
|
4065
|
+
k.style.pointerEvents = "", k.removeAttribute(Qn), B.current = !1;
|
|
4066
|
+
}
|
|
4067
|
+
}), V = $e(() => i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1);
|
|
4068
|
+
_.useEffect(() => {
|
|
4069
|
+
if (!c) return;
|
|
4070
|
+
function k(y) {
|
|
4071
|
+
if (clearTimeout(P.current), K.current = !1, v && !sn(j.current) || g > 0 && !Qt(T.current, "open"))
|
|
4072
|
+
return;
|
|
4073
|
+
const S = Qt(T.current, "open", j.current);
|
|
4074
|
+
S ? P.current = window.setTimeout(() => {
|
|
4075
|
+
x.current || o(!0, y, "hover");
|
|
4076
|
+
}, S) : r || o(!0, y, "hover");
|
|
4077
|
+
}
|
|
4078
|
+
function C(y) {
|
|
4079
|
+
if (V()) return;
|
|
4080
|
+
ee.current();
|
|
4081
|
+
const S = Be(a.floating);
|
|
4082
|
+
if (clearTimeout(A.current), q.current = !1, b.current && i.current.floatingContext) {
|
|
4083
|
+
r || clearTimeout(P.current), H.current = b.current({
|
|
4084
|
+
...i.current.floatingContext,
|
|
4085
|
+
tree: h,
|
|
4086
|
+
x: y.clientX,
|
|
4087
|
+
y: y.clientY,
|
|
4088
|
+
onClose() {
|
|
4089
|
+
J(), Q(), V() || te(y, !0, "safe-polygon");
|
|
4090
|
+
}
|
|
4091
|
+
});
|
|
4092
|
+
const F = H.current;
|
|
4093
|
+
S.addEventListener("mousemove", F), ee.current = () => {
|
|
4094
|
+
S.removeEventListener("mousemove", F);
|
|
4095
|
+
};
|
|
4096
|
+
return;
|
|
4097
|
+
}
|
|
4098
|
+
(j.current === "touch" ? !rt(a.floating, y.relatedTarget) : !0) && te(y);
|
|
4099
|
+
}
|
|
4100
|
+
function R(y) {
|
|
4101
|
+
V() || i.current.floatingContext && (b.current == null || b.current({
|
|
4102
|
+
...i.current.floatingContext,
|
|
4103
|
+
tree: h,
|
|
4104
|
+
x: y.clientX,
|
|
4105
|
+
y: y.clientY,
|
|
4106
|
+
onClose() {
|
|
4107
|
+
J(), Q(), V() || te(y);
|
|
4108
|
+
}
|
|
4109
|
+
})(y));
|
|
4110
|
+
}
|
|
4111
|
+
if (ce(a.domReference)) {
|
|
4112
|
+
var l;
|
|
4113
|
+
const y = a.domReference;
|
|
4114
|
+
return r && y.addEventListener("mouseleave", R), (l = a.floating) == null || l.addEventListener("mouseleave", R), f && y.addEventListener("mousemove", k, {
|
|
4115
|
+
once: !0
|
|
4116
|
+
}), y.addEventListener("mouseenter", k), y.addEventListener("mouseleave", C), () => {
|
|
4117
|
+
var S;
|
|
4118
|
+
r && y.removeEventListener("mouseleave", R), (S = a.floating) == null || S.removeEventListener("mouseleave", R), f && y.removeEventListener("mousemove", k), y.removeEventListener("mouseenter", k), y.removeEventListener("mouseleave", C);
|
|
4119
|
+
};
|
|
4120
|
+
}
|
|
4121
|
+
}, [a, c, e, v, g, f, te, Q, J, o, r, x, h, T, b, i, V]), Ce(() => {
|
|
4122
|
+
var k;
|
|
4123
|
+
if (c && r && (k = b.current) != null && k.__options.blockPointerEvents && ne()) {
|
|
4124
|
+
B.current = !0;
|
|
4125
|
+
const R = a.floating;
|
|
4126
|
+
if (ce(a.domReference) && R) {
|
|
4127
|
+
var C;
|
|
4128
|
+
const l = Be(a.floating).body;
|
|
4129
|
+
l.setAttribute(Qn, "");
|
|
4130
|
+
const y = a.domReference, S = h == null || (C = h.nodesRef.current.find(($) => $.id === w)) == null || (C = C.context) == null ? void 0 : C.elements.floating;
|
|
4131
|
+
return S && (S.style.pointerEvents = ""), l.style.pointerEvents = "none", y.style.pointerEvents = "auto", R.style.pointerEvents = "auto", () => {
|
|
4132
|
+
l.style.pointerEvents = "", y.style.pointerEvents = "", R.style.pointerEvents = "";
|
|
4133
|
+
};
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
}, [c, r, w, a, h, b, ne]), Ce(() => {
|
|
4137
|
+
r || (j.current = void 0, q.current = !1, Q(), J());
|
|
4138
|
+
}, [r, Q, J]), _.useEffect(() => () => {
|
|
4139
|
+
Q(), clearTimeout(P.current), clearTimeout(A.current), J();
|
|
4140
|
+
}, [c, a.domReference, Q, J]);
|
|
4141
|
+
const z = _.useMemo(() => {
|
|
4142
|
+
function k(C) {
|
|
4143
|
+
j.current = C.pointerType;
|
|
4144
|
+
}
|
|
4145
|
+
return {
|
|
4146
|
+
onPointerDown: k,
|
|
4147
|
+
onPointerEnter: k,
|
|
4148
|
+
onMouseMove(C) {
|
|
4149
|
+
const {
|
|
4150
|
+
nativeEvent: R
|
|
4151
|
+
} = C;
|
|
4152
|
+
function l() {
|
|
4153
|
+
!K.current && !x.current && o(!0, R, "hover");
|
|
4154
|
+
}
|
|
4155
|
+
v && !sn(j.current) || r || g === 0 || q.current && C.movementX ** 2 + C.movementY ** 2 < 2 || (clearTimeout(A.current), j.current === "touch" ? l() : (q.current = !0, A.current = window.setTimeout(l, g)));
|
|
4156
|
+
}
|
|
4157
|
+
};
|
|
4158
|
+
}, [v, o, r, x, g]), W = _.useMemo(() => ({
|
|
4159
|
+
onMouseEnter() {
|
|
4160
|
+
clearTimeout(P.current);
|
|
4161
|
+
},
|
|
4162
|
+
onMouseLeave(k) {
|
|
4163
|
+
V() || te(k.nativeEvent, !1);
|
|
4164
|
+
}
|
|
4165
|
+
}), [te, V]);
|
|
4166
|
+
return _.useMemo(() => c ? {
|
|
4167
|
+
reference: z,
|
|
4168
|
+
floating: W
|
|
4169
|
+
} : {}, [c, z, W]);
|
|
4170
|
+
}
|
|
4171
|
+
function Zt(e, t) {
|
|
4172
|
+
let r = e.filter((i) => {
|
|
4173
|
+
var s;
|
|
4174
|
+
return i.parentId === t && ((s = i.context) == null ? void 0 : s.open);
|
|
4175
|
+
}), o = r;
|
|
4176
|
+
for (; o.length; )
|
|
4177
|
+
o = e.filter((i) => {
|
|
4178
|
+
var s;
|
|
4179
|
+
return (s = o) == null ? void 0 : s.some((a) => {
|
|
4180
|
+
var c;
|
|
4181
|
+
return i.parentId === a.id && ((c = i.context) == null ? void 0 : c.open);
|
|
4182
|
+
});
|
|
4183
|
+
}), r = r.concat(o);
|
|
4184
|
+
return r;
|
|
4185
|
+
}
|
|
4186
|
+
const Nr = () => ({
|
|
4187
|
+
getShadowRoot: !0,
|
|
4188
|
+
displayCheck: (
|
|
4189
|
+
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
4190
|
+
// check if `ResizeObserver` is a real function (not polyfilled), which
|
|
4191
|
+
// determines if the current environment is JSDOM-like.
|
|
4192
|
+
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
4193
|
+
)
|
|
4194
|
+
});
|
|
4195
|
+
function Pr(e, t) {
|
|
4196
|
+
const r = yr(e, Nr());
|
|
4197
|
+
t === "prev" && r.reverse();
|
|
4198
|
+
const o = r.indexOf(on(Be(e)));
|
|
4199
|
+
return r.slice(o + 1)[0];
|
|
4200
|
+
}
|
|
4201
|
+
function Ci() {
|
|
4202
|
+
return Pr(document.body, "next");
|
|
4203
|
+
}
|
|
4204
|
+
function Si() {
|
|
4205
|
+
return Pr(document.body, "prev");
|
|
4206
|
+
}
|
|
4207
|
+
function Jt(e, t) {
|
|
4208
|
+
const r = t || e.currentTarget, o = e.relatedTarget;
|
|
4209
|
+
return !o || !rt(r, o);
|
|
4210
|
+
}
|
|
4211
|
+
function Ai(e) {
|
|
4212
|
+
yr(e, Nr()).forEach((r) => {
|
|
4213
|
+
r.dataset.tabindex = r.getAttribute("tabindex") || "", r.setAttribute("tabindex", "-1");
|
|
4214
|
+
});
|
|
4215
|
+
}
|
|
4216
|
+
function Zn(e) {
|
|
4217
|
+
e.querySelectorAll("[data-tabindex]").forEach((r) => {
|
|
4218
|
+
const o = r.dataset.tabindex;
|
|
4219
|
+
delete r.dataset.tabindex, o ? r.setAttribute("tabindex", o) : r.removeAttribute("tabindex");
|
|
4220
|
+
});
|
|
4221
|
+
}
|
|
4222
|
+
const kr = {
|
|
4223
|
+
border: 0,
|
|
4224
|
+
clip: "rect(0 0 0 0)",
|
|
4225
|
+
height: "1px",
|
|
4226
|
+
margin: "-1px",
|
|
4227
|
+
overflow: "hidden",
|
|
4228
|
+
padding: 0,
|
|
4229
|
+
position: "fixed",
|
|
4230
|
+
whiteSpace: "nowrap",
|
|
4231
|
+
width: "1px",
|
|
4232
|
+
top: 0,
|
|
4233
|
+
left: 0
|
|
4234
|
+
};
|
|
4235
|
+
let Ni;
|
|
4236
|
+
function Jn(e) {
|
|
4237
|
+
e.key === "Tab" && (e.target, clearTimeout(Ni));
|
|
4238
|
+
}
|
|
4239
|
+
const er = /* @__PURE__ */ _.forwardRef(function(t, r) {
|
|
4240
|
+
const [o, i] = _.useState();
|
|
4241
|
+
Ce(() => (fr() && i("button"), document.addEventListener("keydown", Jn), () => {
|
|
4242
|
+
document.removeEventListener("keydown", Jn);
|
|
4243
|
+
}), []);
|
|
4244
|
+
const s = {
|
|
4245
|
+
ref: r,
|
|
4246
|
+
tabIndex: 0,
|
|
4247
|
+
// Role is only for VoiceOver
|
|
4248
|
+
role: o,
|
|
4249
|
+
"aria-hidden": o ? void 0 : !0,
|
|
4250
|
+
[yt("focus-guard")]: "",
|
|
4251
|
+
style: kr
|
|
4252
|
+
};
|
|
4253
|
+
return /* @__PURE__ */ Pe.jsx("span", {
|
|
4254
|
+
...t,
|
|
4255
|
+
...s
|
|
4256
|
+
});
|
|
4257
|
+
}), jr = /* @__PURE__ */ _.createContext(null), tr = /* @__PURE__ */ yt("portal");
|
|
4258
|
+
function Pi(e) {
|
|
4259
|
+
e === void 0 && (e = {});
|
|
4260
|
+
const {
|
|
4261
|
+
id: t,
|
|
4262
|
+
root: r
|
|
4263
|
+
} = e, o = Yt(), i = ji(), [s, a] = _.useState(null), c = _.useRef(null);
|
|
4264
|
+
return Ce(() => () => {
|
|
4265
|
+
s == null || s.remove(), queueMicrotask(() => {
|
|
4266
|
+
c.current = null;
|
|
4267
|
+
});
|
|
4268
|
+
}, [s]), Ce(() => {
|
|
4269
|
+
if (!o || c.current) return;
|
|
4270
|
+
const d = t ? document.getElementById(t) : null;
|
|
4271
|
+
if (!d) return;
|
|
4272
|
+
const u = document.createElement("div");
|
|
4273
|
+
u.id = o, u.setAttribute(tr, ""), d.appendChild(u), c.current = u, a(u);
|
|
4274
|
+
}, [t, o]), Ce(() => {
|
|
4275
|
+
if (r === null || !o || c.current) return;
|
|
4276
|
+
let d = r || (i == null ? void 0 : i.portalNode);
|
|
4277
|
+
d && !ce(d) && (d = d.current), d = d || document.body;
|
|
4278
|
+
let u = null;
|
|
4279
|
+
t && (u = document.createElement("div"), u.id = t, d.appendChild(u));
|
|
4280
|
+
const v = document.createElement("div");
|
|
4281
|
+
v.id = o, v.setAttribute(tr, ""), d = u || d, d.appendChild(v), c.current = v, a(v);
|
|
4282
|
+
}, [t, r, o, i]), s;
|
|
4283
|
+
}
|
|
4284
|
+
function ki(e) {
|
|
4285
|
+
const {
|
|
4286
|
+
children: t,
|
|
4287
|
+
id: r,
|
|
4288
|
+
root: o,
|
|
4289
|
+
preserveTabOrder: i = !0
|
|
4290
|
+
} = e, s = Pi({
|
|
4291
|
+
id: r,
|
|
4292
|
+
root: o
|
|
4293
|
+
}), [a, c] = _.useState(null), d = _.useRef(null), u = _.useRef(null), v = _.useRef(null), g = _.useRef(null), f = a == null ? void 0 : a.modal, h = a == null ? void 0 : a.open, w = (
|
|
4294
|
+
// The FocusManager and therefore floating element are currently open/
|
|
4295
|
+
// rendered.
|
|
4296
|
+
!!a && // Guards are only for non-modal focus management.
|
|
4297
|
+
!a.modal && // Don't render if unmount is transitioning.
|
|
4298
|
+
a.open && i && !!(o || s)
|
|
4299
|
+
);
|
|
4300
|
+
return _.useEffect(() => {
|
|
4301
|
+
if (!s || !i || f)
|
|
4302
|
+
return;
|
|
4303
|
+
function b(T) {
|
|
4304
|
+
s && Jt(T) && (T.type === "focusin" ? Zn : Ai)(s);
|
|
4305
|
+
}
|
|
4306
|
+
return s.addEventListener("focusin", b, !0), s.addEventListener("focusout", b, !0), () => {
|
|
4307
|
+
s.removeEventListener("focusin", b, !0), s.removeEventListener("focusout", b, !0);
|
|
4308
|
+
};
|
|
4309
|
+
}, [s, i, f]), _.useEffect(() => {
|
|
4310
|
+
s && (h || Zn(s));
|
|
4311
|
+
}, [h, s]), /* @__PURE__ */ Pe.jsxs(jr.Provider, {
|
|
4312
|
+
value: _.useMemo(() => ({
|
|
4313
|
+
preserveTabOrder: i,
|
|
4314
|
+
beforeOutsideRef: d,
|
|
4315
|
+
afterOutsideRef: u,
|
|
4316
|
+
beforeInsideRef: v,
|
|
4317
|
+
afterInsideRef: g,
|
|
4318
|
+
portalNode: s,
|
|
4319
|
+
setFocusManagerState: c
|
|
4320
|
+
}), [i, s]),
|
|
4321
|
+
children: [w && s && /* @__PURE__ */ Pe.jsx(er, {
|
|
4322
|
+
"data-type": "outside",
|
|
4323
|
+
ref: d,
|
|
4324
|
+
onFocus: (b) => {
|
|
4325
|
+
if (Jt(b, s)) {
|
|
4326
|
+
var T;
|
|
4327
|
+
(T = v.current) == null || T.focus();
|
|
4328
|
+
} else {
|
|
4329
|
+
const x = Si() || (a == null ? void 0 : a.domReference);
|
|
4330
|
+
x == null || x.focus();
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
}), w && s && /* @__PURE__ */ Pe.jsx("span", {
|
|
4334
|
+
"aria-owns": s.id,
|
|
4335
|
+
style: kr
|
|
4336
|
+
}), s && /* @__PURE__ */ _r.createPortal(t, s), w && s && /* @__PURE__ */ Pe.jsx(er, {
|
|
4337
|
+
"data-type": "outside",
|
|
4338
|
+
ref: u,
|
|
4339
|
+
onFocus: (b) => {
|
|
4340
|
+
if (Jt(b, s)) {
|
|
4341
|
+
var T;
|
|
4342
|
+
(T = g.current) == null || T.focus();
|
|
4343
|
+
} else {
|
|
4344
|
+
const x = Ci() || (a == null ? void 0 : a.domReference);
|
|
4345
|
+
x == null || x.focus(), a != null && a.closeOnFocusOut && (a == null || a.onOpenChange(!1, b.nativeEvent, "focus-out"));
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
})]
|
|
4349
|
+
});
|
|
4350
|
+
}
|
|
4351
|
+
const ji = () => _.useContext(jr), Mi = "data-floating-ui-focusable", Li = {
|
|
4352
|
+
pointerdown: "onPointerDown",
|
|
4353
|
+
mousedown: "onMouseDown",
|
|
4354
|
+
click: "onClick"
|
|
4355
|
+
}, Di = {
|
|
4356
|
+
pointerdown: "onPointerDownCapture",
|
|
4357
|
+
mousedown: "onMouseDownCapture",
|
|
4358
|
+
click: "onClickCapture"
|
|
4359
|
+
}, nr = (e) => {
|
|
4360
|
+
var t, r;
|
|
4361
|
+
return {
|
|
4362
|
+
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
4363
|
+
outsidePress: typeof e == "boolean" ? e : (r = e == null ? void 0 : e.outsidePress) != null ? r : !0
|
|
4364
|
+
};
|
|
4365
|
+
};
|
|
4366
|
+
function zi(e, t) {
|
|
4367
|
+
t === void 0 && (t = {});
|
|
4368
|
+
const {
|
|
4369
|
+
open: r,
|
|
4370
|
+
onOpenChange: o,
|
|
4371
|
+
elements: i,
|
|
4372
|
+
dataRef: s
|
|
4373
|
+
} = e, {
|
|
4374
|
+
enabled: a = !0,
|
|
4375
|
+
escapeKey: c = !0,
|
|
4376
|
+
outsidePress: d = !0,
|
|
4377
|
+
outsidePressEvent: u = "pointerdown",
|
|
4378
|
+
referencePress: v = !1,
|
|
4379
|
+
referencePressEvent: g = "pointerdown",
|
|
4380
|
+
ancestorScroll: f = !1,
|
|
4381
|
+
bubbles: h,
|
|
4382
|
+
capture: w
|
|
4383
|
+
} = t, b = hn(), T = $e(typeof d == "function" ? d : () => !1), x = typeof d == "function" ? T : d, j = _.useRef(!1), P = _.useRef(!1), {
|
|
4384
|
+
escapeKey: H,
|
|
4385
|
+
outsidePress: A
|
|
4386
|
+
} = nr(h), {
|
|
4387
|
+
escapeKey: K,
|
|
4388
|
+
outsidePress: B
|
|
4389
|
+
} = nr(w), ee = _.useRef(!1), q = $e((z) => {
|
|
4390
|
+
var W;
|
|
4391
|
+
if (!r || !a || !c || z.key !== "Escape" || ee.current)
|
|
4392
|
+
return;
|
|
4393
|
+
const k = (W = s.current.floatingContext) == null ? void 0 : W.nodeId, C = b ? Zt(b.nodesRef.current, k) : [];
|
|
4394
|
+
if (!H && (z.stopPropagation(), C.length > 0)) {
|
|
4395
|
+
let R = !0;
|
|
4396
|
+
if (C.forEach((l) => {
|
|
4397
|
+
var y;
|
|
4398
|
+
if ((y = l.context) != null && y.open && !l.context.dataRef.current.__escapeKeyBubbles) {
|
|
4399
|
+
R = !1;
|
|
4400
|
+
return;
|
|
4401
|
+
}
|
|
4402
|
+
}), !R)
|
|
4403
|
+
return;
|
|
4404
|
+
}
|
|
4405
|
+
o(!1, no(z) ? z.nativeEvent : z, "escape-key");
|
|
4406
|
+
}), ne = $e((z) => {
|
|
4407
|
+
var W;
|
|
4408
|
+
const k = () => {
|
|
4409
|
+
var C;
|
|
4410
|
+
q(z), (C = et(z)) == null || C.removeEventListener("keydown", k);
|
|
4411
|
+
};
|
|
4412
|
+
(W = et(z)) == null || W.addEventListener("keydown", k);
|
|
4413
|
+
}), te = $e((z) => {
|
|
4414
|
+
var W;
|
|
4415
|
+
const k = j.current;
|
|
4416
|
+
j.current = !1;
|
|
4417
|
+
const C = P.current;
|
|
4418
|
+
if (P.current = !1, u === "click" && C || k || typeof x == "function" && !x(z))
|
|
4419
|
+
return;
|
|
4420
|
+
const R = et(z), l = "[" + yt("inert") + "]", y = Be(i.floating).querySelectorAll(l);
|
|
4421
|
+
let S = ce(R) ? R : null;
|
|
4422
|
+
for (; S && !Ye(S); ) {
|
|
4423
|
+
const I = He(S);
|
|
4424
|
+
if (Ye(I) || !ce(I))
|
|
4425
|
+
break;
|
|
4426
|
+
S = I;
|
|
4427
|
+
}
|
|
4428
|
+
if (y.length && ce(R) && !ro(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
4429
|
+
!rt(R, i.floating) && // If the target root element contains none of the markers, then the
|
|
4430
|
+
// element was injected after the floating element rendered.
|
|
4431
|
+
Array.from(y).every((I) => !rt(S, I)))
|
|
4432
|
+
return;
|
|
4433
|
+
if (we(R) && V) {
|
|
4434
|
+
const I = Ye(R), le = Re(R), re = /auto|scroll/, Se = I || re.test(le.overflowX), We = I || re.test(le.overflowY), Me = Se && R.clientWidth > 0 && R.scrollWidth > R.clientWidth, Le = We && R.clientHeight > 0 && R.scrollHeight > R.clientHeight, De = le.direction === "rtl", Ae = Le && (De ? z.offsetX <= R.offsetWidth - R.clientWidth : z.offsetX > R.clientWidth), ze = Me && z.offsetY > R.clientHeight;
|
|
4435
|
+
if (Ae || ze)
|
|
4436
|
+
return;
|
|
4437
|
+
}
|
|
4438
|
+
const $ = (W = s.current.floatingContext) == null ? void 0 : W.nodeId, F = b && Zt(b.nodesRef.current, $).some((I) => {
|
|
4439
|
+
var le;
|
|
4440
|
+
return qt(z, (le = I.context) == null ? void 0 : le.elements.floating);
|
|
4441
|
+
});
|
|
4442
|
+
if (qt(z, i.floating) || qt(z, i.domReference) || F)
|
|
4443
|
+
return;
|
|
4444
|
+
const oe = b ? Zt(b.nodesRef.current, $) : [];
|
|
4445
|
+
if (oe.length > 0) {
|
|
4446
|
+
let I = !0;
|
|
4447
|
+
if (oe.forEach((le) => {
|
|
4448
|
+
var re;
|
|
4449
|
+
if ((re = le.context) != null && re.open && !le.context.dataRef.current.__outsidePressBubbles) {
|
|
4450
|
+
I = !1;
|
|
4451
|
+
return;
|
|
4452
|
+
}
|
|
4453
|
+
}), !I)
|
|
4454
|
+
return;
|
|
4455
|
+
}
|
|
4456
|
+
o(!1, z, "outside-press");
|
|
4457
|
+
}), Q = $e((z) => {
|
|
4458
|
+
var W;
|
|
4459
|
+
const k = () => {
|
|
4460
|
+
var C;
|
|
4461
|
+
te(z), (C = et(z)) == null || C.removeEventListener(u, k);
|
|
4462
|
+
};
|
|
4463
|
+
(W = et(z)) == null || W.addEventListener(u, k);
|
|
4464
|
+
});
|
|
4465
|
+
_.useEffect(() => {
|
|
4466
|
+
if (!r || !a)
|
|
4467
|
+
return;
|
|
4468
|
+
s.current.__escapeKeyBubbles = H, s.current.__outsidePressBubbles = A;
|
|
4469
|
+
let z = -1;
|
|
4470
|
+
function W(y) {
|
|
4471
|
+
o(!1, y, "ancestor-scroll");
|
|
4472
|
+
}
|
|
4473
|
+
function k() {
|
|
4474
|
+
window.clearTimeout(z), ee.current = !0;
|
|
4475
|
+
}
|
|
4476
|
+
function C() {
|
|
4477
|
+
z = window.setTimeout(
|
|
4478
|
+
() => {
|
|
4479
|
+
ee.current = !1;
|
|
4480
|
+
},
|
|
4481
|
+
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
4482
|
+
// Only apply to WebKit for the test to remain 0ms.
|
|
4483
|
+
It() ? 5 : 0
|
|
4484
|
+
);
|
|
4485
|
+
}
|
|
4486
|
+
const R = Be(i.floating);
|
|
4487
|
+
c && (R.addEventListener("keydown", K ? ne : q, K), R.addEventListener("compositionstart", k), R.addEventListener("compositionend", C)), x && R.addEventListener(u, B ? Q : te, B);
|
|
4488
|
+
let l = [];
|
|
4489
|
+
return f && (ce(i.domReference) && (l = Ve(i.domReference)), ce(i.floating) && (l = l.concat(Ve(i.floating))), !ce(i.reference) && i.reference && i.reference.contextElement && (l = l.concat(Ve(i.reference.contextElement)))), l = l.filter((y) => {
|
|
4490
|
+
var S;
|
|
4491
|
+
return y !== ((S = R.defaultView) == null ? void 0 : S.visualViewport);
|
|
4492
|
+
}), l.forEach((y) => {
|
|
4493
|
+
y.addEventListener("scroll", W, {
|
|
4494
|
+
passive: !0
|
|
4495
|
+
});
|
|
4496
|
+
}), () => {
|
|
4497
|
+
c && (R.removeEventListener("keydown", K ? ne : q, K), R.removeEventListener("compositionstart", k), R.removeEventListener("compositionend", C)), x && R.removeEventListener(u, B ? Q : te, B), l.forEach((y) => {
|
|
4498
|
+
y.removeEventListener("scroll", W);
|
|
4499
|
+
}), window.clearTimeout(z);
|
|
4500
|
+
};
|
|
4501
|
+
}, [s, i, c, x, u, r, o, f, a, H, A, q, K, ne, te, B, Q]), _.useEffect(() => {
|
|
4502
|
+
j.current = !1;
|
|
4503
|
+
}, [x, u]);
|
|
4504
|
+
const J = _.useMemo(() => ({
|
|
4505
|
+
onKeyDown: q,
|
|
4506
|
+
...v && {
|
|
4507
|
+
[Li[g]]: (z) => {
|
|
4508
|
+
o(!1, z.nativeEvent, "reference-press");
|
|
4509
|
+
},
|
|
4510
|
+
...g !== "click" && {
|
|
4511
|
+
onClick(z) {
|
|
4512
|
+
o(!1, z.nativeEvent, "reference-press");
|
|
4513
|
+
}
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4516
|
+
}), [q, o, v, g]), V = _.useMemo(() => ({
|
|
4517
|
+
onKeyDown: q,
|
|
4518
|
+
onMouseDown() {
|
|
4519
|
+
P.current = !0;
|
|
4520
|
+
},
|
|
4521
|
+
onMouseUp() {
|
|
4522
|
+
P.current = !0;
|
|
4523
|
+
},
|
|
4524
|
+
[Di[u]]: () => {
|
|
4525
|
+
j.current = !0;
|
|
4526
|
+
}
|
|
4527
|
+
}), [q, u]);
|
|
4528
|
+
return _.useMemo(() => a ? {
|
|
4529
|
+
reference: J,
|
|
4530
|
+
floating: V
|
|
4531
|
+
} : {}, [a, J, V]);
|
|
4532
|
+
}
|
|
4533
|
+
function Ii(e) {
|
|
4534
|
+
const {
|
|
4535
|
+
open: t = !1,
|
|
4536
|
+
onOpenChange: r,
|
|
4537
|
+
elements: o
|
|
4538
|
+
} = e, i = Yt(), s = _.useRef({}), [a] = _.useState(() => Ri()), c = pn() != null;
|
|
4539
|
+
if (process.env.NODE_ENV !== "production") {
|
|
4540
|
+
const h = o.reference;
|
|
4541
|
+
h && !ce(h) && wi("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
4542
|
+
}
|
|
4543
|
+
const [d, u] = _.useState(o.reference), v = $e((h, w, b) => {
|
|
4544
|
+
s.current.openEvent = h ? w : void 0, a.emit("openchange", {
|
|
4545
|
+
open: h,
|
|
4546
|
+
event: w,
|
|
4547
|
+
reason: b,
|
|
4548
|
+
nested: c
|
|
4549
|
+
}), r == null || r(h, w, b);
|
|
4550
|
+
}), g = _.useMemo(() => ({
|
|
4551
|
+
setPositionReference: u
|
|
4552
|
+
}), []), f = _.useMemo(() => ({
|
|
4553
|
+
reference: d || o.reference || null,
|
|
4554
|
+
floating: o.floating || null,
|
|
4555
|
+
domReference: o.reference
|
|
4556
|
+
}), [d, o.reference, o.floating]);
|
|
4557
|
+
return _.useMemo(() => ({
|
|
4558
|
+
dataRef: s,
|
|
4559
|
+
open: t,
|
|
4560
|
+
onOpenChange: v,
|
|
4561
|
+
elements: f,
|
|
4562
|
+
events: a,
|
|
4563
|
+
floatingId: i,
|
|
4564
|
+
refs: g
|
|
4565
|
+
}), [t, v, f, a, i, g]);
|
|
4566
|
+
}
|
|
4567
|
+
function $i(e) {
|
|
4568
|
+
e === void 0 && (e = {});
|
|
4569
|
+
const {
|
|
4570
|
+
nodeId: t
|
|
4571
|
+
} = e, r = Ii({
|
|
4572
|
+
...e,
|
|
4573
|
+
elements: {
|
|
4574
|
+
reference: null,
|
|
4575
|
+
floating: null,
|
|
4576
|
+
...e.elements
|
|
4577
|
+
}
|
|
4578
|
+
}), o = e.rootContext || r, i = o.elements, [s, a] = _.useState(null), [c, d] = _.useState(null), v = (i == null ? void 0 : i.domReference) || s, g = _.useRef(null), f = hn();
|
|
4579
|
+
Ce(() => {
|
|
4580
|
+
v && (g.current = v);
|
|
4581
|
+
}, [v]);
|
|
4582
|
+
const h = li({
|
|
4583
|
+
...e,
|
|
4584
|
+
elements: {
|
|
4585
|
+
...i,
|
|
4586
|
+
...c && {
|
|
4587
|
+
reference: c
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
4590
|
+
}), w = _.useCallback((P) => {
|
|
4591
|
+
const H = ce(P) ? {
|
|
4592
|
+
getBoundingClientRect: () => P.getBoundingClientRect(),
|
|
4593
|
+
contextElement: P
|
|
4594
|
+
} : P;
|
|
4595
|
+
d(H), h.refs.setReference(H);
|
|
4596
|
+
}, [h.refs]), b = _.useCallback((P) => {
|
|
4597
|
+
(ce(P) || P === null) && (g.current = P, a(P)), (ce(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
4598
|
+
// `null` to support `positionReference` + an unstable `reference`
|
|
4599
|
+
// callback ref.
|
|
4600
|
+
P !== null && !ce(P)) && h.refs.setReference(P);
|
|
4601
|
+
}, [h.refs]), T = _.useMemo(() => ({
|
|
4602
|
+
...h.refs,
|
|
4603
|
+
setReference: b,
|
|
4604
|
+
setPositionReference: w,
|
|
4605
|
+
domReference: g
|
|
4606
|
+
}), [h.refs, b, w]), x = _.useMemo(() => ({
|
|
4607
|
+
...h.elements,
|
|
4608
|
+
domReference: v
|
|
4609
|
+
}), [h.elements, v]), j = _.useMemo(() => ({
|
|
4610
|
+
...h,
|
|
4611
|
+
...o,
|
|
4612
|
+
refs: T,
|
|
4613
|
+
elements: x,
|
|
4614
|
+
nodeId: t
|
|
4615
|
+
}), [h, T, x, t, o]);
|
|
4616
|
+
return Ce(() => {
|
|
4617
|
+
o.dataRef.current.floatingContext = j;
|
|
4618
|
+
const P = f == null ? void 0 : f.nodesRef.current.find((H) => H.id === t);
|
|
4619
|
+
P && (P.context = j);
|
|
4620
|
+
}), _.useMemo(() => ({
|
|
4621
|
+
...h,
|
|
4622
|
+
context: j,
|
|
4623
|
+
refs: T,
|
|
4624
|
+
elements: x
|
|
4625
|
+
}), [h, T, x, j]);
|
|
4626
|
+
}
|
|
4627
|
+
function Yi(e, t) {
|
|
4628
|
+
t === void 0 && (t = {});
|
|
4629
|
+
const {
|
|
4630
|
+
open: r,
|
|
4631
|
+
onOpenChange: o,
|
|
4632
|
+
events: i,
|
|
4633
|
+
dataRef: s,
|
|
4634
|
+
elements: a
|
|
4635
|
+
} = e, {
|
|
4636
|
+
enabled: c = !0,
|
|
4637
|
+
visibleOnly: d = !0
|
|
4638
|
+
} = t, u = _.useRef(!1), v = _.useRef(), g = _.useRef(!0);
|
|
4639
|
+
_.useEffect(() => {
|
|
4640
|
+
if (!c) return;
|
|
4641
|
+
const h = Ee(a.domReference);
|
|
4642
|
+
function w() {
|
|
4643
|
+
!r && we(a.domReference) && a.domReference === on(Be(a.domReference)) && (u.current = !0);
|
|
4644
|
+
}
|
|
4645
|
+
function b() {
|
|
4646
|
+
g.current = !0;
|
|
4647
|
+
}
|
|
4648
|
+
return h.addEventListener("blur", w), h.addEventListener("keydown", b, !0), () => {
|
|
4649
|
+
h.removeEventListener("blur", w), h.removeEventListener("keydown", b, !0);
|
|
4650
|
+
};
|
|
4651
|
+
}, [a.domReference, r, c]), _.useEffect(() => {
|
|
4652
|
+
if (!c) return;
|
|
4653
|
+
function h(w) {
|
|
4654
|
+
let {
|
|
4655
|
+
reason: b
|
|
4656
|
+
} = w;
|
|
4657
|
+
(b === "reference-press" || b === "escape-key") && (u.current = !0);
|
|
4658
|
+
}
|
|
4659
|
+
return i.on("openchange", h), () => {
|
|
4660
|
+
i.off("openchange", h);
|
|
4661
|
+
};
|
|
4662
|
+
}, [i, c]), _.useEffect(() => () => {
|
|
4663
|
+
clearTimeout(v.current);
|
|
4664
|
+
}, []);
|
|
4665
|
+
const f = _.useMemo(() => ({
|
|
4666
|
+
onPointerDown(h) {
|
|
4667
|
+
Jr(h.nativeEvent) || (g.current = !1);
|
|
4668
|
+
},
|
|
4669
|
+
onMouseLeave() {
|
|
4670
|
+
u.current = !1;
|
|
4671
|
+
},
|
|
4672
|
+
onFocus(h) {
|
|
4673
|
+
if (u.current) return;
|
|
4674
|
+
const w = et(h.nativeEvent);
|
|
4675
|
+
if (d && ce(w))
|
|
4676
|
+
try {
|
|
4677
|
+
if (fr() && eo()) throw Error();
|
|
4678
|
+
if (!w.matches(":focus-visible")) return;
|
|
4679
|
+
} catch {
|
|
4680
|
+
if (!g.current && !io(w))
|
|
4681
|
+
return;
|
|
4682
|
+
}
|
|
4683
|
+
o(!0, h.nativeEvent, "focus");
|
|
4684
|
+
},
|
|
4685
|
+
onBlur(h) {
|
|
4686
|
+
u.current = !1;
|
|
4687
|
+
const w = h.relatedTarget, b = h.nativeEvent, T = ce(w) && w.hasAttribute(yt("focus-guard")) && w.getAttribute("data-type") === "outside";
|
|
4688
|
+
v.current = window.setTimeout(() => {
|
|
4689
|
+
var x;
|
|
4690
|
+
const j = on(a.domReference ? a.domReference.ownerDocument : document);
|
|
4691
|
+
!w && j === a.domReference || rt((x = s.current.floatingContext) == null ? void 0 : x.refs.floating.current, j) || rt(a.domReference, j) || T || o(!1, b, "focus");
|
|
4692
|
+
});
|
|
4693
|
+
}
|
|
4694
|
+
}), [s, a.domReference, o, d]);
|
|
4695
|
+
return _.useMemo(() => c ? {
|
|
4696
|
+
reference: f
|
|
4697
|
+
} : {}, [c, f]);
|
|
4698
|
+
}
|
|
4699
|
+
const rr = "active", or = "selected";
|
|
4700
|
+
function en(e, t, r) {
|
|
4701
|
+
const o = /* @__PURE__ */ new Map(), i = r === "item";
|
|
4702
|
+
let s = e;
|
|
4703
|
+
if (i && e) {
|
|
4704
|
+
const {
|
|
4705
|
+
[rr]: a,
|
|
4706
|
+
[or]: c,
|
|
4707
|
+
...d
|
|
4708
|
+
} = e;
|
|
4709
|
+
s = d;
|
|
4710
|
+
}
|
|
4711
|
+
return {
|
|
4712
|
+
...r === "floating" && {
|
|
4713
|
+
tabIndex: -1,
|
|
4714
|
+
[Mi]: ""
|
|
4715
|
+
},
|
|
4716
|
+
...s,
|
|
4717
|
+
...t.map((a) => {
|
|
4718
|
+
const c = a ? a[r] : null;
|
|
4719
|
+
return typeof c == "function" ? e ? c(e) : null : c;
|
|
4720
|
+
}).concat(e).reduce((a, c) => (c && Object.entries(c).forEach((d) => {
|
|
4721
|
+
let [u, v] = d;
|
|
4722
|
+
if (!(i && [rr, or].includes(u)))
|
|
4723
|
+
if (u.indexOf("on") === 0) {
|
|
4724
|
+
if (o.has(u) || o.set(u, []), typeof v == "function") {
|
|
4725
|
+
var g;
|
|
4726
|
+
(g = o.get(u)) == null || g.push(v), a[u] = function() {
|
|
4727
|
+
for (var f, h = arguments.length, w = new Array(h), b = 0; b < h; b++)
|
|
4728
|
+
w[b] = arguments[b];
|
|
4729
|
+
return (f = o.get(u)) == null ? void 0 : f.map((T) => T(...w)).find((T) => T !== void 0);
|
|
4730
|
+
};
|
|
4731
|
+
}
|
|
4732
|
+
} else
|
|
4733
|
+
a[u] = v;
|
|
4734
|
+
}), a), {})
|
|
4735
|
+
};
|
|
4736
|
+
}
|
|
4737
|
+
function Hi(e) {
|
|
4738
|
+
e === void 0 && (e = []);
|
|
4739
|
+
const t = e.map((c) => c == null ? void 0 : c.reference), r = e.map((c) => c == null ? void 0 : c.floating), o = e.map((c) => c == null ? void 0 : c.item), i = _.useCallback(
|
|
4740
|
+
(c) => en(c, e, "reference"),
|
|
4741
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4742
|
+
t
|
|
4743
|
+
), s = _.useCallback(
|
|
4744
|
+
(c) => en(c, e, "floating"),
|
|
4745
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4746
|
+
r
|
|
4747
|
+
), a = _.useCallback(
|
|
4748
|
+
(c) => en(c, e, "item"),
|
|
4749
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4750
|
+
o
|
|
4751
|
+
);
|
|
4752
|
+
return _.useMemo(() => ({
|
|
4753
|
+
getReferenceProps: i,
|
|
4754
|
+
getFloatingProps: s,
|
|
4755
|
+
getItemProps: a
|
|
4756
|
+
}), [i, s, a]);
|
|
4757
|
+
}
|
|
4758
|
+
const Wi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
4759
|
+
function Ui(e, t) {
|
|
4760
|
+
var r;
|
|
4761
|
+
t === void 0 && (t = {});
|
|
4762
|
+
const {
|
|
4763
|
+
open: o,
|
|
4764
|
+
floatingId: i
|
|
4765
|
+
} = e, {
|
|
4766
|
+
enabled: s = !0,
|
|
4767
|
+
role: a = "dialog"
|
|
4768
|
+
} = t, c = (r = Wi.get(a)) != null ? r : a, d = Yt(), v = pn() != null, g = _.useMemo(() => c === "tooltip" || a === "label" ? {
|
|
4769
|
+
["aria-" + (a === "label" ? "labelledby" : "describedby")]: o ? i : void 0
|
|
4770
|
+
} : {
|
|
4771
|
+
"aria-expanded": o ? "true" : "false",
|
|
4772
|
+
"aria-haspopup": c === "alertdialog" ? "dialog" : c,
|
|
4773
|
+
"aria-controls": o ? i : void 0,
|
|
4774
|
+
...c === "listbox" && {
|
|
4775
|
+
role: "combobox"
|
|
4776
|
+
},
|
|
4777
|
+
...c === "menu" && {
|
|
4778
|
+
id: d
|
|
4779
|
+
},
|
|
4780
|
+
...c === "menu" && v && {
|
|
4781
|
+
role: "menuitem"
|
|
4782
|
+
},
|
|
4783
|
+
...a === "select" && {
|
|
4784
|
+
"aria-autocomplete": "none"
|
|
4785
|
+
},
|
|
4786
|
+
...a === "combobox" && {
|
|
4787
|
+
"aria-autocomplete": "list"
|
|
4788
|
+
}
|
|
4789
|
+
}, [c, i, v, o, d, a]), f = _.useMemo(() => {
|
|
4790
|
+
const w = {
|
|
4791
|
+
id: i,
|
|
4792
|
+
...c && {
|
|
4793
|
+
role: c
|
|
4794
|
+
}
|
|
4795
|
+
};
|
|
4796
|
+
return c === "tooltip" || a === "label" ? w : {
|
|
4797
|
+
...w,
|
|
4798
|
+
...c === "menu" && {
|
|
4799
|
+
"aria-labelledby": d
|
|
4800
|
+
}
|
|
4801
|
+
};
|
|
4802
|
+
}, [c, i, d, a]), h = _.useCallback((w) => {
|
|
4803
|
+
let {
|
|
4804
|
+
active: b,
|
|
4805
|
+
selected: T
|
|
4806
|
+
} = w;
|
|
4807
|
+
const x = {
|
|
4808
|
+
role: "option",
|
|
4809
|
+
...b && {
|
|
4810
|
+
id: i + "-option"
|
|
4811
|
+
}
|
|
4812
|
+
};
|
|
4813
|
+
switch (a) {
|
|
4814
|
+
case "select":
|
|
4815
|
+
return {
|
|
4816
|
+
...x,
|
|
4817
|
+
"aria-selected": b && T
|
|
4818
|
+
};
|
|
4819
|
+
case "combobox":
|
|
4820
|
+
return {
|
|
4821
|
+
...x,
|
|
4822
|
+
...b && {
|
|
4823
|
+
"aria-selected": !0
|
|
4824
|
+
}
|
|
4825
|
+
};
|
|
4826
|
+
}
|
|
4827
|
+
return {};
|
|
4828
|
+
}, [i, a]);
|
|
4829
|
+
return _.useMemo(() => s ? {
|
|
4830
|
+
reference: g,
|
|
4831
|
+
floating: f,
|
|
4832
|
+
item: h
|
|
4833
|
+
} : {}, [s, g, f, h]);
|
|
4834
|
+
}
|
|
4835
|
+
const Fi = "_wrapper_iejlm_1", tn = {
|
|
4836
|
+
wrapper: Fi,
|
|
4837
|
+
"size--sm": "_size--sm_iejlm_12",
|
|
4838
|
+
"size--md": "_size--md_iejlm_15"
|
|
4839
|
+
}, Bi = (e) => {
|
|
4840
|
+
const t = se.useMemo(
|
|
4841
|
+
() => nt(tn.wrapper, {
|
|
4842
|
+
[tn["size--sm"]]: e.size === "sm",
|
|
4843
|
+
[tn["size--md"]]: e.size === "md"
|
|
4844
|
+
}),
|
|
4845
|
+
[e.size]
|
|
4846
|
+
);
|
|
4847
|
+
return /* @__PURE__ */ se.createElement("div", { className: t }, e.children);
|
|
4848
|
+
}, Vi = "_wrapper_9hfm7_1", qi = "_icon_9hfm7_7", Gi = "_active_9hfm7_23", Ki = "_arrow_9hfm7_28", Xi = "_arrow2_9hfm7_33", Qi = "_label_9hfm7_38", Zi = "_caption_9hfm7_43", Qe = {
|
|
4849
|
+
wrapper: Vi,
|
|
4850
|
+
icon: qi,
|
|
4851
|
+
active: Gi,
|
|
4852
|
+
arrow: Ki,
|
|
4853
|
+
arrow2: Xi,
|
|
4854
|
+
label: Qi,
|
|
4855
|
+
caption: Zi
|
|
4856
|
+
};
|
|
4857
|
+
function Ji({
|
|
4858
|
+
size: e = "sm",
|
|
4859
|
+
initialOpen: t = !1,
|
|
4860
|
+
placement: r = "top",
|
|
4861
|
+
open: o,
|
|
4862
|
+
onOpenChange: i
|
|
4863
|
+
}) {
|
|
4864
|
+
const [s, a] = _.useState(t), c = _.useRef(null), d = o ?? s, u = i ?? a, v = $i({
|
|
4865
|
+
placement: r,
|
|
4866
|
+
open: d,
|
|
4867
|
+
onOpenChange: u,
|
|
4868
|
+
whileElementsMounted: ii,
|
|
4869
|
+
middleware: [
|
|
4870
|
+
di(6),
|
|
4871
|
+
gi({
|
|
4872
|
+
crossAxis: r.includes("-"),
|
|
4873
|
+
fallbackAxisSideDirection: "start",
|
|
4874
|
+
padding: 5
|
|
4875
|
+
}),
|
|
4876
|
+
mi({ padding: 10 }),
|
|
4877
|
+
pi({ element: c })
|
|
4878
|
+
]
|
|
4879
|
+
}), g = v.context, f = xi(g, {
|
|
4880
|
+
move: !1,
|
|
4881
|
+
enabled: o == null
|
|
4882
|
+
}), h = Yi(g, {
|
|
4883
|
+
enabled: o == null
|
|
4884
|
+
}), w = zi(g), b = Ui(g, { role: "tooltip" }), T = Hi([f, h, w, b]);
|
|
4885
|
+
return _.useMemo(
|
|
4886
|
+
() => ({
|
|
4887
|
+
size: e,
|
|
4888
|
+
open: d,
|
|
4889
|
+
setOpen: u,
|
|
4890
|
+
arrowRef: c,
|
|
4891
|
+
...T,
|
|
4892
|
+
...v
|
|
4893
|
+
}),
|
|
4894
|
+
[d, u, T, v, e, c]
|
|
4895
|
+
);
|
|
4896
|
+
}
|
|
4897
|
+
const Mr = _.createContext(null), Lr = () => {
|
|
4898
|
+
const e = _.useContext(Mr);
|
|
4899
|
+
if (e == null)
|
|
4900
|
+
throw new Error("Tooltip components must be wrapped in <Tooltip />");
|
|
4901
|
+
return e;
|
|
4902
|
+
}, es = ({ children: e, ...t }) => {
|
|
4903
|
+
const r = Ji(t);
|
|
4904
|
+
return /* @__PURE__ */ _.createElement(Mr.Provider, { value: r }, e);
|
|
4905
|
+
}, ts = _.forwardRef(function({ children: t, ...r }, o) {
|
|
4906
|
+
const i = Lr(), s = Sr([i.refs.setReference, o]);
|
|
4907
|
+
return /* @__PURE__ */ _.createElement(
|
|
4908
|
+
"div",
|
|
4909
|
+
{
|
|
4910
|
+
className: Qe.wrapper,
|
|
4911
|
+
ref: s,
|
|
4912
|
+
"data-state": i.open ? "open" : "closed",
|
|
4913
|
+
...i.getReferenceProps(r)
|
|
4914
|
+
},
|
|
4915
|
+
t ?? /* @__PURE__ */ _.createElement(
|
|
4916
|
+
"div",
|
|
4917
|
+
{
|
|
4918
|
+
className: nt(Qe.icon, {
|
|
4919
|
+
[Qe.active]: i.open
|
|
4920
|
+
})
|
|
4921
|
+
},
|
|
4922
|
+
/* @__PURE__ */ _.createElement(dt, { icon: "information-fill" })
|
|
4923
|
+
)
|
|
4924
|
+
);
|
|
4925
|
+
}), ns = _.forwardRef(function({ style: t, ...r }, o) {
|
|
4926
|
+
const i = Lr(), s = Sr([i.refs.setFloating, o]);
|
|
4927
|
+
return i.open ? /* @__PURE__ */ _.createElement(ki, null, /* @__PURE__ */ _.createElement(
|
|
4928
|
+
"div",
|
|
4929
|
+
{
|
|
4930
|
+
ref: s,
|
|
4931
|
+
style: {
|
|
4932
|
+
...i.floatingStyles,
|
|
4933
|
+
...t
|
|
4934
|
+
},
|
|
4935
|
+
...i.getFloatingProps(r)
|
|
4936
|
+
},
|
|
4937
|
+
/* @__PURE__ */ _.createElement(Bi, { size: i.size }, r.children),
|
|
4938
|
+
/* @__PURE__ */ _.createElement(Xn, { ref: i.arrowRef, context: i.context, className: Qe.arrow, width: 14, height: 4 }),
|
|
4939
|
+
/* @__PURE__ */ _.createElement(
|
|
4940
|
+
Xn,
|
|
4941
|
+
{
|
|
4942
|
+
ref: i.arrowRef,
|
|
4943
|
+
context: i.context,
|
|
4944
|
+
className: Qe.arrow2,
|
|
4945
|
+
width: 14,
|
|
4946
|
+
height: 4,
|
|
4947
|
+
style: { transform: "translateY(-1px)" }
|
|
4948
|
+
}
|
|
4949
|
+
)
|
|
4950
|
+
)) : null;
|
|
4951
|
+
}), rs = (e) => /* @__PURE__ */ _.createElement("div", { className: Qe.label }, /* @__PURE__ */ _.createElement(sr, { size: "caption-m", weight: "semi-bold" }, /* @__PURE__ */ _.createElement("p", null, e.children))), os = (e) => /* @__PURE__ */ _.createElement("div", { className: Qe.caption }, /* @__PURE__ */ _.createElement(sr, { size: "caption-m", weight: "medium" }, /* @__PURE__ */ _.createElement("p", null, e.children)));
|
|
4952
|
+
Object.assign(es, {
|
|
4953
|
+
Trigger: ts,
|
|
4954
|
+
Content: Object.assign(ns, {
|
|
4955
|
+
Label: rs,
|
|
4956
|
+
Caption: os
|
|
4957
|
+
})
|
|
4958
|
+
});
|
|
4959
|
+
const is = "_wrapper_rf188_1", ss = "_label_rf188_7", as = "_content_rf188_14", us = "_caption_rf188_20", Ht = {
|
|
4960
|
+
wrapper: is,
|
|
4961
|
+
label: ss,
|
|
4962
|
+
content: as,
|
|
4963
|
+
caption: us
|
|
4964
|
+
}, cs = (e) => /* @__PURE__ */ se.createElement("div", { className: Ht.label }, e.children), ls = (e) => /* @__PURE__ */ se.createElement("div", { className: Ht.content }, e.children), fs = (e) => /* @__PURE__ */ se.createElement("div", { className: Ht.caption }, e.children), ds = (e) => /* @__PURE__ */ se.createElement("div", { className: Ht.wrapper }, se.Children.map(e.children, (t) => se.isValidElement(t) ? t : null));
|
|
4965
|
+
Object.assign(ds, {
|
|
4966
|
+
Label: cs,
|
|
4967
|
+
Content: ls,
|
|
4968
|
+
Caption: fs
|
|
4969
|
+
});
|
|
4970
|
+
export {
|
|
4971
|
+
ms as Badge,
|
|
4972
|
+
gs as Button,
|
|
4973
|
+
sr as Typography
|
|
4974
|
+
};
|