@inertiaui/modal-react 0.6.2 → 0.6.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/inertiaui-modal.js +483 -481
- package/dist/inertiaui-modal.umd.cjs +12 -12
- package/package.json +1 -1
- package/src/ModalRoot.jsx +5 -1
package/dist/inertiaui-modal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Fo = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var ce = (t, e, r) =>
|
|
2
|
+
var Io = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var ce = (t, e, r) => Io(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import * as ht from "react";
|
|
5
|
-
import A, { createContext as fe, useState as Q, useEffect as Y, useContext as ie, useRef as k, createElement as
|
|
6
|
-
import
|
|
5
|
+
import A, { createContext as fe, useState as Q, useEffect as Y, useContext as ie, useRef as k, createElement as Ar, useMemo as J, forwardRef as Vr, useImperativeHandle as na, useLayoutEffect as Co, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Pt, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
|
|
6
|
+
import Lt from "axios";
|
|
7
7
|
import { router as vt, usePage as jo } from "@inertiajs/react";
|
|
8
8
|
import { createPortal as Lo } from "react-dom";
|
|
9
9
|
const ct = {
|
|
@@ -62,8 +62,8 @@ class Wo {
|
|
|
62
62
|
return n;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
var
|
|
65
|
+
const zt = new Wo(), Oc = () => zt.reset(), Pc = (t, e) => zt.put(t, e), qr = (t) => zt.get(t), ze = (t, e) => zt.get(t ? `slideover.${e}` : `modal.${e}`);
|
|
66
|
+
var Tr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
67
67
|
function Uo(t) {
|
|
68
68
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
69
69
|
}
|
|
@@ -86,7 +86,7 @@ function Bo(t) {
|
|
|
86
86
|
});
|
|
87
87
|
}), r;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
89
|
+
var $r = { exports: {} }, ft = {};
|
|
90
90
|
/**
|
|
91
91
|
* @license React
|
|
92
92
|
* react-jsx-runtime.production.min.js
|
|
@@ -96,10 +96,10 @@ var Tr = { exports: {} }, ft = {};
|
|
|
96
96
|
* This source code is licensed under the MIT license found in the
|
|
97
97
|
* LICENSE file in the root directory of this source tree.
|
|
98
98
|
*/
|
|
99
|
-
var
|
|
99
|
+
var En;
|
|
100
100
|
function Ho() {
|
|
101
|
-
if (
|
|
102
|
-
|
|
101
|
+
if (En) return ft;
|
|
102
|
+
En = 1;
|
|
103
103
|
var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
104
104
|
function l(u, i, f) {
|
|
105
105
|
var s, h = {}, v = null, w = null;
|
|
@@ -120,9 +120,9 @@ var dt = {};
|
|
|
120
120
|
* This source code is licensed under the MIT license found in the
|
|
121
121
|
* LICENSE file in the root directory of this source tree.
|
|
122
122
|
*/
|
|
123
|
-
var
|
|
123
|
+
var Sn;
|
|
124
124
|
function Vo() {
|
|
125
|
-
return
|
|
125
|
+
return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
126
126
|
var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), d = Symbol.iterator, y = "@@iterator";
|
|
127
127
|
function p(c) {
|
|
128
128
|
if (c === null || typeof c != "object")
|
|
@@ -142,8 +142,8 @@ function Vo() {
|
|
|
142
142
|
{
|
|
143
143
|
var P = m.ReactDebugCurrentFrame, N = P.getStackAddendum();
|
|
144
144
|
N !== "" && (E += "%s", x = x.concat([N]));
|
|
145
|
-
var L = x.map(function(
|
|
146
|
-
return String(
|
|
145
|
+
var L = x.map(function(C) {
|
|
146
|
+
return String(C);
|
|
147
147
|
});
|
|
148
148
|
L.unshift("Warning: " + E), Function.prototype.apply.call(console[c], console, L);
|
|
149
149
|
}
|
|
@@ -202,9 +202,9 @@ function Vo() {
|
|
|
202
202
|
var P = c.displayName || null;
|
|
203
203
|
return P !== null ? P : $(c.type) || "Memo";
|
|
204
204
|
case v: {
|
|
205
|
-
var N = c, L = N._payload,
|
|
205
|
+
var N = c, L = N._payload, C = N._init;
|
|
206
206
|
try {
|
|
207
|
-
return $(
|
|
207
|
+
return $(C(L));
|
|
208
208
|
} catch {
|
|
209
209
|
return null;
|
|
210
210
|
}
|
|
@@ -216,7 +216,7 @@ function Vo() {
|
|
|
216
216
|
function ee() {
|
|
217
217
|
}
|
|
218
218
|
ee.__reactDisabledLog = !0;
|
|
219
|
-
function
|
|
219
|
+
function or() {
|
|
220
220
|
{
|
|
221
221
|
if (D === 0) {
|
|
222
222
|
ue = console.log, pe = console.info, ge = console.warn, te = console.error, ye = console.group, q = console.groupCollapsed, _e = console.groupEnd;
|
|
@@ -288,16 +288,16 @@ function Vo() {
|
|
|
288
288
|
` + Ne + c;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
var Oe = !1,
|
|
291
|
+
var Oe = !1, Ft;
|
|
292
292
|
{
|
|
293
293
|
var ao = typeof WeakMap == "function" ? WeakMap : Map;
|
|
294
|
-
|
|
294
|
+
Ft = new ao();
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function ln(c, E) {
|
|
297
297
|
if (!c || Oe)
|
|
298
298
|
return "";
|
|
299
299
|
{
|
|
300
|
-
var x =
|
|
300
|
+
var x = Ft.get(c);
|
|
301
301
|
if (x !== void 0)
|
|
302
302
|
return x;
|
|
303
303
|
}
|
|
@@ -306,30 +306,30 @@ function Vo() {
|
|
|
306
306
|
var N = Error.prepareStackTrace;
|
|
307
307
|
Error.prepareStackTrace = void 0;
|
|
308
308
|
var L;
|
|
309
|
-
L = lt.current, lt.current = null,
|
|
309
|
+
L = lt.current, lt.current = null, or();
|
|
310
310
|
try {
|
|
311
311
|
if (E) {
|
|
312
|
-
var
|
|
312
|
+
var C = function() {
|
|
313
313
|
throw Error();
|
|
314
314
|
};
|
|
315
|
-
if (Object.defineProperty(
|
|
315
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
316
316
|
set: function() {
|
|
317
317
|
throw Error();
|
|
318
318
|
}
|
|
319
319
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
320
320
|
try {
|
|
321
|
-
Reflect.construct(
|
|
321
|
+
Reflect.construct(C, []);
|
|
322
322
|
} catch (oe) {
|
|
323
323
|
P = oe;
|
|
324
324
|
}
|
|
325
|
-
Reflect.construct(c, [],
|
|
325
|
+
Reflect.construct(c, [], C);
|
|
326
326
|
} else {
|
|
327
327
|
try {
|
|
328
|
-
|
|
328
|
+
C.call();
|
|
329
329
|
} catch (oe) {
|
|
330
330
|
P = oe;
|
|
331
331
|
}
|
|
332
|
-
c.call(
|
|
332
|
+
c.call(C.prototype);
|
|
333
333
|
}
|
|
334
334
|
} else {
|
|
335
335
|
try {
|
|
@@ -352,7 +352,7 @@ function Vo() {
|
|
|
352
352
|
if (G--, K--, K < 0 || F[G] !== ne[K]) {
|
|
353
353
|
var se = `
|
|
354
354
|
` + F[G].replace(" at new ", " at ");
|
|
355
|
-
return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" &&
|
|
355
|
+
return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && Ft.set(c, se), se;
|
|
356
356
|
}
|
|
357
357
|
while (G >= 1 && K >= 0);
|
|
358
358
|
break;
|
|
@@ -362,20 +362,20 @@ function Vo() {
|
|
|
362
362
|
Oe = !1, lt.current = L, De(), Error.prepareStackTrace = N;
|
|
363
363
|
}
|
|
364
364
|
var Ye = c ? c.displayName || c.name : "", ke = Ye ? xe(Ye) : "";
|
|
365
|
-
return typeof c == "function" &&
|
|
365
|
+
return typeof c == "function" && Ft.set(c, ke), ke;
|
|
366
366
|
}
|
|
367
367
|
function oo(c, E, x) {
|
|
368
|
-
return
|
|
368
|
+
return ln(c, !1);
|
|
369
369
|
}
|
|
370
370
|
function io(c) {
|
|
371
371
|
var E = c.prototype;
|
|
372
372
|
return !!(E && E.isReactComponent);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function It(c, E, x) {
|
|
375
375
|
if (c == null)
|
|
376
376
|
return "";
|
|
377
377
|
if (typeof c == "function")
|
|
378
|
-
return
|
|
378
|
+
return ln(c, io(c));
|
|
379
379
|
if (typeof c == "string")
|
|
380
380
|
return xe(c);
|
|
381
381
|
switch (c) {
|
|
@@ -389,46 +389,46 @@ function Vo() {
|
|
|
389
389
|
case i:
|
|
390
390
|
return oo(c.render);
|
|
391
391
|
case h:
|
|
392
|
-
return
|
|
392
|
+
return It(c.type, E, x);
|
|
393
393
|
case v: {
|
|
394
394
|
var P = c, N = P._payload, L = P._init;
|
|
395
395
|
try {
|
|
396
|
-
return
|
|
396
|
+
return It(L(N), E, x);
|
|
397
397
|
} catch {
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
return "";
|
|
402
402
|
}
|
|
403
|
-
var ut = Object.prototype.hasOwnProperty,
|
|
403
|
+
var ut = Object.prototype.hasOwnProperty, un = {}, sn = m.ReactDebugCurrentFrame;
|
|
404
404
|
function Ct(c) {
|
|
405
405
|
if (c) {
|
|
406
|
-
var E = c._owner, x =
|
|
407
|
-
|
|
406
|
+
var E = c._owner, x = It(c.type, c._source, E ? E.type : null);
|
|
407
|
+
sn.setExtraStackFrame(x);
|
|
408
408
|
} else
|
|
409
|
-
|
|
409
|
+
sn.setExtraStackFrame(null);
|
|
410
410
|
}
|
|
411
411
|
function lo(c, E, x, P, N) {
|
|
412
412
|
{
|
|
413
413
|
var L = Function.call.bind(ut);
|
|
414
|
-
for (var
|
|
415
|
-
if (L(c,
|
|
414
|
+
for (var C in c)
|
|
415
|
+
if (L(c, C)) {
|
|
416
416
|
var F = void 0;
|
|
417
417
|
try {
|
|
418
|
-
if (typeof c[
|
|
419
|
-
var ne = Error((P || "React class") + ": " + x + " type `" +
|
|
418
|
+
if (typeof c[C] != "function") {
|
|
419
|
+
var ne = Error((P || "React class") + ": " + x + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
420
420
|
throw ne.name = "Invariant Violation", ne;
|
|
421
421
|
}
|
|
422
|
-
F = c[
|
|
422
|
+
F = c[C](E, C, P, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
423
423
|
} catch (G) {
|
|
424
424
|
F = G;
|
|
425
425
|
}
|
|
426
|
-
F && !(F instanceof Error) && (Ct(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x,
|
|
426
|
+
F && !(F instanceof Error) && (Ct(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x, C, typeof F), Ct(null)), F instanceof Error && !(F.message in un) && (un[F.message] = !0, Ct(N), g("Failed %s type: %s", x, F.message), Ct(null));
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
var uo = Array.isArray;
|
|
431
|
-
function
|
|
431
|
+
function ir(c) {
|
|
432
432
|
return uo(c);
|
|
433
433
|
}
|
|
434
434
|
function so(c) {
|
|
@@ -439,25 +439,25 @@ function Vo() {
|
|
|
439
439
|
}
|
|
440
440
|
function co(c) {
|
|
441
441
|
try {
|
|
442
|
-
return
|
|
442
|
+
return cn(c), !1;
|
|
443
443
|
} catch {
|
|
444
444
|
return !0;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function cn(c) {
|
|
448
448
|
return "" + c;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function fn(c) {
|
|
451
451
|
if (co(c))
|
|
452
|
-
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)),
|
|
452
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), cn(c);
|
|
453
453
|
}
|
|
454
454
|
var st = m.ReactCurrentOwner, fo = {
|
|
455
455
|
key: !0,
|
|
456
456
|
ref: !0,
|
|
457
457
|
__self: !0,
|
|
458
458
|
__source: !0
|
|
459
|
-
},
|
|
460
|
-
|
|
459
|
+
}, dn, pn, lr;
|
|
460
|
+
lr = {};
|
|
461
461
|
function po(c) {
|
|
462
462
|
if (ut.call(c, "ref")) {
|
|
463
463
|
var E = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
@@ -477,13 +477,13 @@ function Vo() {
|
|
|
477
477
|
function vo(c, E) {
|
|
478
478
|
if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
|
|
479
479
|
var x = $(st.current.type);
|
|
480
|
-
|
|
480
|
+
lr[x] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(st.current.type), c.ref), lr[x] = !0);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function mo(c, E) {
|
|
484
484
|
{
|
|
485
485
|
var x = function() {
|
|
486
|
-
|
|
486
|
+
dn || (dn = !0, g("%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://reactjs.org/link/special-props)", E));
|
|
487
487
|
};
|
|
488
488
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
489
489
|
get: x,
|
|
@@ -494,7 +494,7 @@ function Vo() {
|
|
|
494
494
|
function ho(c, E) {
|
|
495
495
|
{
|
|
496
496
|
var x = function() {
|
|
497
|
-
|
|
497
|
+
pn || (pn = !0, g("%s: `ref` 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://reactjs.org/link/special-props)", E));
|
|
498
498
|
};
|
|
499
499
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
500
500
|
get: x,
|
|
@@ -502,7 +502,7 @@ function Vo() {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
var go = function(c, E, x, P, N, L,
|
|
505
|
+
var go = function(c, E, x, P, N, L, C) {
|
|
506
506
|
var F = {
|
|
507
507
|
// This tag allows us to uniquely identify this as a React Element
|
|
508
508
|
$$typeof: e,
|
|
@@ -510,7 +510,7 @@ function Vo() {
|
|
|
510
510
|
type: c,
|
|
511
511
|
key: E,
|
|
512
512
|
ref: x,
|
|
513
|
-
props:
|
|
513
|
+
props: C,
|
|
514
514
|
// Record the component responsible for creating this element.
|
|
515
515
|
_owner: L
|
|
516
516
|
};
|
|
@@ -533,39 +533,39 @@ function Vo() {
|
|
|
533
533
|
};
|
|
534
534
|
function bo(c, E, x, P, N) {
|
|
535
535
|
{
|
|
536
|
-
var L,
|
|
537
|
-
x !== void 0 && (
|
|
536
|
+
var L, C = {}, F = null, ne = null;
|
|
537
|
+
x !== void 0 && (fn(x), F = "" + x), yo(E) && (fn(E.key), F = "" + E.key), po(E) && (ne = E.ref, vo(E, N));
|
|
538
538
|
for (L in E)
|
|
539
|
-
ut.call(E, L) && !fo.hasOwnProperty(L) && (
|
|
539
|
+
ut.call(E, L) && !fo.hasOwnProperty(L) && (C[L] = E[L]);
|
|
540
540
|
if (c && c.defaultProps) {
|
|
541
541
|
var G = c.defaultProps;
|
|
542
542
|
for (L in G)
|
|
543
|
-
|
|
543
|
+
C[L] === void 0 && (C[L] = G[L]);
|
|
544
544
|
}
|
|
545
545
|
if (F || ne) {
|
|
546
546
|
var K = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
547
|
-
F && mo(
|
|
547
|
+
F && mo(C, K), ne && ho(C, K);
|
|
548
548
|
}
|
|
549
|
-
return go(c, F, ne, N, P, st.current,
|
|
549
|
+
return go(c, F, ne, N, P, st.current, C);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var ur = m.ReactCurrentOwner, yn = m.ReactDebugCurrentFrame;
|
|
553
553
|
function Ge(c) {
|
|
554
554
|
if (c) {
|
|
555
|
-
var E = c._owner, x =
|
|
556
|
-
|
|
555
|
+
var E = c._owner, x = It(c.type, c._source, E ? E.type : null);
|
|
556
|
+
yn.setExtraStackFrame(x);
|
|
557
557
|
} else
|
|
558
|
-
|
|
558
|
+
yn.setExtraStackFrame(null);
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
|
|
562
|
-
function
|
|
560
|
+
var sr;
|
|
561
|
+
sr = !1;
|
|
562
|
+
function cr(c) {
|
|
563
563
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function vn() {
|
|
566
566
|
{
|
|
567
|
-
if (
|
|
568
|
-
var c = $(
|
|
567
|
+
if (ur.current) {
|
|
568
|
+
var c = $(ur.current.type);
|
|
569
569
|
if (c)
|
|
570
570
|
return `
|
|
571
571
|
|
|
@@ -577,10 +577,10 @@ Check the render method of \`` + c + "`.";
|
|
|
577
577
|
function wo(c) {
|
|
578
578
|
return "";
|
|
579
579
|
}
|
|
580
|
-
var
|
|
580
|
+
var mn = {};
|
|
581
581
|
function Eo(c) {
|
|
582
582
|
{
|
|
583
|
-
var E =
|
|
583
|
+
var E = vn();
|
|
584
584
|
if (!E) {
|
|
585
585
|
var x = typeof c == "string" ? c : c.displayName || c.name;
|
|
586
586
|
x && (E = `
|
|
@@ -590,35 +590,35 @@ Check the top-level render call using <` + x + ">.");
|
|
|
590
590
|
return E;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function hn(c, E) {
|
|
594
594
|
{
|
|
595
595
|
if (!c._store || c._store.validated || c.key != null)
|
|
596
596
|
return;
|
|
597
597
|
c._store.validated = !0;
|
|
598
598
|
var x = Eo(E);
|
|
599
|
-
if (
|
|
599
|
+
if (mn[x])
|
|
600
600
|
return;
|
|
601
|
-
|
|
601
|
+
mn[x] = !0;
|
|
602
602
|
var P = "";
|
|
603
|
-
c && c._owner && c._owner !==
|
|
603
|
+
c && c._owner && c._owner !== ur.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function gn(c, E) {
|
|
607
607
|
{
|
|
608
608
|
if (typeof c != "object")
|
|
609
609
|
return;
|
|
610
|
-
if (
|
|
610
|
+
if (ir(c))
|
|
611
611
|
for (var x = 0; x < c.length; x++) {
|
|
612
612
|
var P = c[x];
|
|
613
|
-
|
|
613
|
+
cr(P) && hn(P, E);
|
|
614
614
|
}
|
|
615
|
-
else if (
|
|
615
|
+
else if (cr(c))
|
|
616
616
|
c._store && (c._store.validated = !0);
|
|
617
617
|
else if (c) {
|
|
618
618
|
var N = p(c);
|
|
619
619
|
if (typeof N == "function" && N !== c.entries)
|
|
620
|
-
for (var L = N.call(c),
|
|
621
|
-
|
|
620
|
+
for (var L = N.call(c), C; !(C = L.next()).done; )
|
|
621
|
+
cr(C.value) && hn(C.value, E);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -639,8 +639,8 @@ Check the top-level render call using <` + x + ">.");
|
|
|
639
639
|
if (x) {
|
|
640
640
|
var P = $(E);
|
|
641
641
|
lo(x, c.props, "prop", P, c);
|
|
642
|
-
} else if (E.PropTypes !== void 0 && !
|
|
643
|
-
|
|
642
|
+
} else if (E.PropTypes !== void 0 && !sr) {
|
|
643
|
+
sr = !0;
|
|
644
644
|
var N = $(E);
|
|
645
645
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
646
646
|
}
|
|
@@ -659,63 +659,63 @@ Check the top-level render call using <` + x + ">.");
|
|
|
659
659
|
c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
662
|
+
var bn = {};
|
|
663
|
+
function wn(c, E, x, P, N, L) {
|
|
664
664
|
{
|
|
665
|
-
var
|
|
666
|
-
if (!
|
|
665
|
+
var C = j(c);
|
|
666
|
+
if (!C) {
|
|
667
667
|
var F = "";
|
|
668
668
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
669
669
|
var ne = wo();
|
|
670
|
-
ne ? F += ne : F +=
|
|
670
|
+
ne ? F += ne : F += vn();
|
|
671
671
|
var G;
|
|
672
|
-
c === null ? G = "null" :
|
|
672
|
+
c === null ? G = "null" : ir(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
|
|
673
673
|
}
|
|
674
674
|
var K = bo(c, E, x, N, L);
|
|
675
675
|
if (K == null)
|
|
676
676
|
return K;
|
|
677
|
-
if (
|
|
677
|
+
if (C) {
|
|
678
678
|
var se = E.children;
|
|
679
679
|
if (se !== void 0)
|
|
680
680
|
if (P)
|
|
681
|
-
if (
|
|
681
|
+
if (ir(se)) {
|
|
682
682
|
for (var Ye = 0; Ye < se.length; Ye++)
|
|
683
|
-
|
|
683
|
+
gn(se[Ye], c);
|
|
684
684
|
Object.freeze && Object.freeze(se);
|
|
685
685
|
} else
|
|
686
686
|
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
687
687
|
else
|
|
688
|
-
|
|
688
|
+
gn(se, c);
|
|
689
689
|
}
|
|
690
690
|
if (ut.call(E, "key")) {
|
|
691
691
|
var ke = $(c), oe = Object.keys(E).filter(function(Ro) {
|
|
692
692
|
return Ro !== "key";
|
|
693
|
-
}),
|
|
694
|
-
if (!
|
|
693
|
+
}), fr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
694
|
+
if (!bn[ke + fr]) {
|
|
695
695
|
var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
|
|
696
696
|
g(`A props object containing a "key" prop is being spread into JSX:
|
|
697
697
|
let props = %s;
|
|
698
698
|
<%s {...props} />
|
|
699
699
|
React keys must be passed directly to JSX without using spread:
|
|
700
700
|
let props = %s;
|
|
701
|
-
<%s key={someKey} {...props} />`,
|
|
701
|
+
<%s key={someKey} {...props} />`, fr, ke, $o, ke), bn[ke + fr] = !0;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
return c === n ? xo(K) : So(K), K;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
function Oo(c, E, x) {
|
|
708
|
-
return
|
|
708
|
+
return wn(c, E, x, !0);
|
|
709
709
|
}
|
|
710
710
|
function Po(c, E, x) {
|
|
711
|
-
return
|
|
711
|
+
return wn(c, E, x, !1);
|
|
712
712
|
}
|
|
713
713
|
var Ao = Po, To = Oo;
|
|
714
714
|
dt.Fragment = n, dt.jsx = Ao, dt.jsxs = To;
|
|
715
715
|
}()), dt;
|
|
716
716
|
}
|
|
717
|
-
process.env.NODE_ENV === "production" ?
|
|
718
|
-
var R =
|
|
717
|
+
process.env.NODE_ENV === "production" ? $r.exports = Ho() : $r.exports = Vo();
|
|
718
|
+
var R = $r.exports;
|
|
719
719
|
function qo(t, e) {
|
|
720
720
|
return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
|
|
721
721
|
}
|
|
@@ -756,12 +756,12 @@ function Zo(t) {
|
|
|
756
756
|
function ei(t) {
|
|
757
757
|
return Array.isArray(t) ? [] : {};
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Ot(t, e) {
|
|
760
760
|
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(ei(t), t, e) : t;
|
|
761
761
|
}
|
|
762
762
|
function ti(t, e, r) {
|
|
763
763
|
return t.concat(e).map(function(n) {
|
|
764
|
-
return
|
|
764
|
+
return Ot(n, r);
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
function ri(t, e) {
|
|
@@ -775,7 +775,7 @@ function ni(t) {
|
|
|
775
775
|
return Object.propertyIsEnumerable.call(t, e);
|
|
776
776
|
}) : [];
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function xn(t) {
|
|
779
779
|
return Object.keys(t).concat(ni(t));
|
|
780
780
|
}
|
|
781
781
|
function oa(t, e) {
|
|
@@ -790,16 +790,16 @@ function ai(t, e) {
|
|
|
790
790
|
}
|
|
791
791
|
function oi(t, e, r) {
|
|
792
792
|
var n = {};
|
|
793
|
-
return r.isMergeableObject(t) &&
|
|
794
|
-
n[a] =
|
|
795
|
-
}),
|
|
796
|
-
ai(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ri(a, r)(t[a], e[a], r) : n[a] =
|
|
793
|
+
return r.isMergeableObject(t) && xn(t).forEach(function(a) {
|
|
794
|
+
n[a] = Ot(t[a], r);
|
|
795
|
+
}), xn(e).forEach(function(a) {
|
|
796
|
+
ai(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ri(a, r)(t[a], e[a], r) : n[a] = Ot(e[a], r));
|
|
797
797
|
}), n;
|
|
798
798
|
}
|
|
799
799
|
function Ze(t, e, r) {
|
|
800
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ti, r.isMergeableObject = r.isMergeableObject || zo, r.cloneUnlessOtherwiseSpecified =
|
|
800
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ti, r.isMergeableObject = r.isMergeableObject || zo, r.cloneUnlessOtherwiseSpecified = Ot;
|
|
801
801
|
var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
|
|
802
|
-
return o ? n ? r.arrayMerge(t, e, r) : oi(t, e, r) :
|
|
802
|
+
return o ? n ? r.arrayMerge(t, e, r) : oi(t, e, r) : Ot(e, r);
|
|
803
803
|
}
|
|
804
804
|
Ze.all = function(e, r) {
|
|
805
805
|
if (!Array.isArray(e))
|
|
@@ -810,7 +810,7 @@ Ze.all = function(e, r) {
|
|
|
810
810
|
};
|
|
811
811
|
var ii = Ze, li = ii;
|
|
812
812
|
const ui = /* @__PURE__ */ Uo(li);
|
|
813
|
-
var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = SyntaxError,
|
|
813
|
+
var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = SyntaxError, At = TypeError, pi = URIError, yi = function() {
|
|
814
814
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
815
815
|
return !1;
|
|
816
816
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -833,14 +833,14 @@ var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = Synta
|
|
|
833
833
|
return !1;
|
|
834
834
|
}
|
|
835
835
|
return !0;
|
|
836
|
-
},
|
|
837
|
-
return typeof
|
|
838
|
-
},
|
|
836
|
+
}, On = typeof Symbol < "u" && Symbol, vi = yi, mi = function() {
|
|
837
|
+
return typeof On != "function" || typeof Symbol != "function" || typeof On("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vi();
|
|
838
|
+
}, dr = {
|
|
839
839
|
__proto__: null,
|
|
840
840
|
foo: {}
|
|
841
841
|
}, hi = Object, gi = function() {
|
|
842
|
-
return { __proto__:
|
|
843
|
-
}, bi = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Ei = Math.max, Si = "[object Function]",
|
|
842
|
+
return { __proto__: dr }.foo === dr.foo && !(dr instanceof hi);
|
|
843
|
+
}, bi = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Ei = Math.max, Si = "[object Function]", Pn = function(e, r) {
|
|
844
844
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
845
845
|
n[a] = e[a];
|
|
846
846
|
for (var o = 0; o < r.length; o += 1)
|
|
@@ -862,13 +862,13 @@ var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = Synta
|
|
|
862
862
|
if (this instanceof a) {
|
|
863
863
|
var s = r.apply(
|
|
864
864
|
this,
|
|
865
|
-
|
|
865
|
+
Pn(n, arguments)
|
|
866
866
|
);
|
|
867
867
|
return Object(s) === s ? s : this;
|
|
868
868
|
}
|
|
869
869
|
return r.apply(
|
|
870
870
|
e,
|
|
871
|
-
|
|
871
|
+
Pn(n, arguments)
|
|
872
872
|
);
|
|
873
873
|
}, l = Ei(0, r.length - n.length), u = [], i = 0; i < l; i++)
|
|
874
874
|
u[i] = "$" + i;
|
|
@@ -878,7 +878,7 @@ var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = Synta
|
|
|
878
878
|
f.prototype = r.prototype, a.prototype = new f(), f.prototype = null;
|
|
879
879
|
}
|
|
880
880
|
return a;
|
|
881
|
-
}, Ai = Pi,
|
|
881
|
+
}, Ai = Pi, Gr = Function.prototype.bind || Ai, Ti = Function.prototype.call, $i = Object.prototype.hasOwnProperty, Ri = Gr, Fi = Ri.call(Ti, $i), I, Ii = si, Ci = ci, Mi = fi, _i = di, et = ia, Qe = At, Di = pi, la = Function, pr = function(t) {
|
|
882
882
|
try {
|
|
883
883
|
return la('"use strict"; return (' + t + ").constructor;")();
|
|
884
884
|
} catch {
|
|
@@ -890,89 +890,89 @@ if (Be)
|
|
|
890
890
|
} catch {
|
|
891
891
|
Be = null;
|
|
892
892
|
}
|
|
893
|
-
var
|
|
893
|
+
var yr = function() {
|
|
894
894
|
throw new Qe();
|
|
895
895
|
}, Ni = Be ? function() {
|
|
896
896
|
try {
|
|
897
|
-
return arguments.callee,
|
|
897
|
+
return arguments.callee, yr;
|
|
898
898
|
} catch {
|
|
899
899
|
try {
|
|
900
900
|
return Be(arguments, "callee").get;
|
|
901
901
|
} catch {
|
|
902
|
-
return
|
|
902
|
+
return yr;
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
}() :
|
|
905
|
+
}() : yr, Ke = mi(), ki = gi(), Z = Object.getPrototypeOf || (ki ? function(t) {
|
|
906
906
|
return t.__proto__;
|
|
907
|
-
} : null), Je = {}, ji = typeof Uint8Array > "u" || !Z ?
|
|
907
|
+
} : null), Je = {}, ji = typeof Uint8Array > "u" || !Z ? I : Z(Uint8Array), He = {
|
|
908
908
|
__proto__: null,
|
|
909
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
909
|
+
"%AggregateError%": typeof AggregateError > "u" ? I : AggregateError,
|
|
910
910
|
"%Array%": Array,
|
|
911
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
912
|
-
"%ArrayIteratorPrototype%": Ke && Z ? Z([][Symbol.iterator]()) :
|
|
913
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
911
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? I : ArrayBuffer,
|
|
912
|
+
"%ArrayIteratorPrototype%": Ke && Z ? Z([][Symbol.iterator]()) : I,
|
|
913
|
+
"%AsyncFromSyncIteratorPrototype%": I,
|
|
914
914
|
"%AsyncFunction%": Je,
|
|
915
915
|
"%AsyncGenerator%": Je,
|
|
916
916
|
"%AsyncGeneratorFunction%": Je,
|
|
917
917
|
"%AsyncIteratorPrototype%": Je,
|
|
918
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
919
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
920
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
921
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
918
|
+
"%Atomics%": typeof Atomics > "u" ? I : Atomics,
|
|
919
|
+
"%BigInt%": typeof BigInt > "u" ? I : BigInt,
|
|
920
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? I : BigInt64Array,
|
|
921
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? I : BigUint64Array,
|
|
922
922
|
"%Boolean%": Boolean,
|
|
923
|
-
"%DataView%": typeof DataView > "u" ?
|
|
923
|
+
"%DataView%": typeof DataView > "u" ? I : DataView,
|
|
924
924
|
"%Date%": Date,
|
|
925
925
|
"%decodeURI%": decodeURI,
|
|
926
926
|
"%decodeURIComponent%": decodeURIComponent,
|
|
927
927
|
"%encodeURI%": encodeURI,
|
|
928
928
|
"%encodeURIComponent%": encodeURIComponent,
|
|
929
|
-
"%Error%":
|
|
929
|
+
"%Error%": Ii,
|
|
930
930
|
"%eval%": eval,
|
|
931
931
|
// eslint-disable-line no-eval
|
|
932
|
-
"%EvalError%":
|
|
933
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
934
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
935
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
932
|
+
"%EvalError%": Ci,
|
|
933
|
+
"%Float32Array%": typeof Float32Array > "u" ? I : Float32Array,
|
|
934
|
+
"%Float64Array%": typeof Float64Array > "u" ? I : Float64Array,
|
|
935
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? I : FinalizationRegistry,
|
|
936
936
|
"%Function%": la,
|
|
937
937
|
"%GeneratorFunction%": Je,
|
|
938
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
939
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
940
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
938
|
+
"%Int8Array%": typeof Int8Array > "u" ? I : Int8Array,
|
|
939
|
+
"%Int16Array%": typeof Int16Array > "u" ? I : Int16Array,
|
|
940
|
+
"%Int32Array%": typeof Int32Array > "u" ? I : Int32Array,
|
|
941
941
|
"%isFinite%": isFinite,
|
|
942
942
|
"%isNaN%": isNaN,
|
|
943
|
-
"%IteratorPrototype%": Ke && Z ? Z(Z([][Symbol.iterator]())) :
|
|
944
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
945
|
-
"%Map%": typeof Map > "u" ?
|
|
946
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !Ke || !Z ?
|
|
943
|
+
"%IteratorPrototype%": Ke && Z ? Z(Z([][Symbol.iterator]())) : I,
|
|
944
|
+
"%JSON%": typeof JSON == "object" ? JSON : I,
|
|
945
|
+
"%Map%": typeof Map > "u" ? I : Map,
|
|
946
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Ke || !Z ? I : Z((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
947
947
|
"%Math%": Math,
|
|
948
948
|
"%Number%": Number,
|
|
949
949
|
"%Object%": Object,
|
|
950
950
|
"%parseFloat%": parseFloat,
|
|
951
951
|
"%parseInt%": parseInt,
|
|
952
|
-
"%Promise%": typeof Promise > "u" ?
|
|
953
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
952
|
+
"%Promise%": typeof Promise > "u" ? I : Promise,
|
|
953
|
+
"%Proxy%": typeof Proxy > "u" ? I : Proxy,
|
|
954
954
|
"%RangeError%": Mi,
|
|
955
955
|
"%ReferenceError%": _i,
|
|
956
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
956
|
+
"%Reflect%": typeof Reflect > "u" ? I : Reflect,
|
|
957
957
|
"%RegExp%": RegExp,
|
|
958
|
-
"%Set%": typeof Set > "u" ?
|
|
959
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !Ke || !Z ?
|
|
960
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
958
|
+
"%Set%": typeof Set > "u" ? I : Set,
|
|
959
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Ke || !Z ? I : Z((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
960
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? I : SharedArrayBuffer,
|
|
961
961
|
"%String%": String,
|
|
962
|
-
"%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) :
|
|
963
|
-
"%Symbol%": Ke ? Symbol :
|
|
962
|
+
"%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : I,
|
|
963
|
+
"%Symbol%": Ke ? Symbol : I,
|
|
964
964
|
"%SyntaxError%": et,
|
|
965
965
|
"%ThrowTypeError%": Ni,
|
|
966
966
|
"%TypedArray%": ji,
|
|
967
967
|
"%TypeError%": Qe,
|
|
968
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
969
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
970
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
971
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
968
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? I : Uint8Array,
|
|
969
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? I : Uint8ClampedArray,
|
|
970
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? I : Uint16Array,
|
|
971
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? I : Uint32Array,
|
|
972
972
|
"%URIError%": Di,
|
|
973
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
974
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
975
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
973
|
+
"%WeakMap%": typeof WeakMap > "u" ? I : WeakMap,
|
|
974
|
+
"%WeakRef%": typeof WeakRef > "u" ? I : WeakRef,
|
|
975
|
+
"%WeakSet%": typeof WeakSet > "u" ? I : WeakSet
|
|
976
976
|
};
|
|
977
977
|
if (Z)
|
|
978
978
|
try {
|
|
@@ -984,11 +984,11 @@ if (Z)
|
|
|
984
984
|
var Wi = function t(e) {
|
|
985
985
|
var r;
|
|
986
986
|
if (e === "%AsyncFunction%")
|
|
987
|
-
r =
|
|
987
|
+
r = pr("async function () {}");
|
|
988
988
|
else if (e === "%GeneratorFunction%")
|
|
989
|
-
r =
|
|
989
|
+
r = pr("function* () {}");
|
|
990
990
|
else if (e === "%AsyncGeneratorFunction%")
|
|
991
|
-
r =
|
|
991
|
+
r = pr("async function* () {}");
|
|
992
992
|
else if (e === "%AsyncGenerator%") {
|
|
993
993
|
var n = t("%AsyncGeneratorFunction%");
|
|
994
994
|
n && (r = n.prototype);
|
|
@@ -997,7 +997,7 @@ var Wi = function t(e) {
|
|
|
997
997
|
a && Z && (r = Z(a.prototype));
|
|
998
998
|
}
|
|
999
999
|
return He[e] = r, r;
|
|
1000
|
-
},
|
|
1000
|
+
}, An = {
|
|
1001
1001
|
__proto__: null,
|
|
1002
1002
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1003
1003
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -1050,19 +1050,19 @@ var Wi = function t(e) {
|
|
|
1050
1050
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1051
1051
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1052
1052
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1053
|
-
},
|
|
1054
|
-
var r =
|
|
1053
|
+
}, Tt = Gr, Wt = Fi, Ui = Tt.call(Function.call, Array.prototype.concat), Bi = Tt.call(Function.apply, Array.prototype.splice), Tn = Tt.call(Function.call, String.prototype.replace), Ut = Tt.call(Function.call, String.prototype.slice), Hi = Tt.call(Function.call, RegExp.prototype.exec), Vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qi = /\\(\\)?/g, Gi = function(e) {
|
|
1054
|
+
var r = Ut(e, 0, 1), n = Ut(e, -1);
|
|
1055
1055
|
if (r === "%" && n !== "%")
|
|
1056
1056
|
throw new et("invalid intrinsic syntax, expected closing `%`");
|
|
1057
1057
|
if (n === "%" && r !== "%")
|
|
1058
1058
|
throw new et("invalid intrinsic syntax, expected opening `%`");
|
|
1059
1059
|
var a = [];
|
|
1060
|
-
return
|
|
1061
|
-
a[a.length] = u ?
|
|
1060
|
+
return Tn(e, Vi, function(o, l, u, i) {
|
|
1061
|
+
a[a.length] = u ? Tn(i, qi, "$1") : l || o;
|
|
1062
1062
|
}), a;
|
|
1063
1063
|
}, Yi = function(e, r) {
|
|
1064
1064
|
var n = e, a;
|
|
1065
|
-
if (
|
|
1065
|
+
if (Wt(An, n) && (a = An[n], n = "%" + a[0] + "%"), Wt(He, n)) {
|
|
1066
1066
|
var o = He[n];
|
|
1067
1067
|
if (o === Je && (o = Wi(n)), typeof o > "u" && !r)
|
|
1068
1068
|
throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -1083,10 +1083,10 @@ var Wi = function t(e) {
|
|
|
1083
1083
|
var n = Gi(e), a = n.length > 0 ? n[0] : "", o = Yi("%" + a + "%", r), l = o.name, u = o.value, i = !1, f = o.alias;
|
|
1084
1084
|
f && (a = f[0], Bi(n, Ui([0, 1], f)));
|
|
1085
1085
|
for (var s = 1, h = !0; s < n.length; s += 1) {
|
|
1086
|
-
var v = n[s], w =
|
|
1086
|
+
var v = n[s], w = Ut(v, 0, 1), d = Ut(v, -1);
|
|
1087
1087
|
if ((w === '"' || w === "'" || w === "`" || d === '"' || d === "'" || d === "`") && w !== d)
|
|
1088
1088
|
throw new et("property names with quotes must have matching quotes");
|
|
1089
|
-
if ((v === "constructor" || !h) && (i = !0), a += "." + v, l = "%" + a + "%",
|
|
1089
|
+
if ((v === "constructor" || !h) && (i = !0), a += "." + v, l = "%" + a + "%", Wt(He, l))
|
|
1090
1090
|
u = He[l];
|
|
1091
1091
|
else if (u != null) {
|
|
1092
1092
|
if (!(v in u)) {
|
|
@@ -1098,15 +1098,15 @@ var Wi = function t(e) {
|
|
|
1098
1098
|
var y = Be(u, v);
|
|
1099
1099
|
h = !!y, h && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
|
|
1100
1100
|
} else
|
|
1101
|
-
h =
|
|
1101
|
+
h = Wt(u, v), u = u[v];
|
|
1102
1102
|
h && !i && (He[l] = u);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
return u;
|
|
1106
|
-
}, ua = { exports: {} },
|
|
1107
|
-
function
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1106
|
+
}, ua = { exports: {} }, vr, $n;
|
|
1107
|
+
function Yr() {
|
|
1108
|
+
if ($n) return vr;
|
|
1109
|
+
$n = 1;
|
|
1110
1110
|
var t = nt, e = t("%Object.defineProperty%", !0) || !1;
|
|
1111
1111
|
if (e)
|
|
1112
1112
|
try {
|
|
@@ -1114,16 +1114,16 @@ function Gr() {
|
|
|
1114
1114
|
} catch {
|
|
1115
1115
|
e = !1;
|
|
1116
1116
|
}
|
|
1117
|
-
return
|
|
1117
|
+
return vr = e, vr;
|
|
1118
1118
|
}
|
|
1119
|
-
var zi = nt,
|
|
1120
|
-
if (
|
|
1119
|
+
var zi = nt, kt = zi("%Object.getOwnPropertyDescriptor%", !0);
|
|
1120
|
+
if (kt)
|
|
1121
1121
|
try {
|
|
1122
|
-
|
|
1122
|
+
kt([], "length");
|
|
1123
1123
|
} catch {
|
|
1124
|
-
|
|
1124
|
+
kt = null;
|
|
1125
1125
|
}
|
|
1126
|
-
var sa =
|
|
1126
|
+
var sa = kt, Rn = Yr(), Ki = ia, Xe = At, Fn = sa, Xi = function(e, r, n) {
|
|
1127
1127
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
1128
1128
|
throw new Xe("`obj` must be an object or a function`");
|
|
1129
1129
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -1136,9 +1136,9 @@ var sa = Nt, $n = Gr(), Ki = ia, Xe = Pt, Rn = sa, Xi = function(e, r, n) {
|
|
|
1136
1136
|
throw new Xe("`nonConfigurable`, if provided, must be a boolean or null");
|
|
1137
1137
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
1138
1138
|
throw new Xe("`loose`, if provided, must be a boolean");
|
|
1139
|
-
var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!
|
|
1140
|
-
if (
|
|
1141
|
-
|
|
1139
|
+
var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!Fn && Fn(e, r);
|
|
1140
|
+
if (Rn)
|
|
1141
|
+
Rn(e, r, {
|
|
1142
1142
|
configurable: l === null && i ? i.configurable : !l,
|
|
1143
1143
|
enumerable: a === null && i ? i.enumerable : !a,
|
|
1144
1144
|
value: n,
|
|
@@ -1148,36 +1148,36 @@ var sa = Nt, $n = Gr(), Ki = ia, Xe = Pt, Rn = sa, Xi = function(e, r, n) {
|
|
|
1148
1148
|
e[r] = n;
|
|
1149
1149
|
else
|
|
1150
1150
|
throw new Ki("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
1151
|
-
},
|
|
1152
|
-
return
|
|
1151
|
+
}, Rr = Yr(), ca = function() {
|
|
1152
|
+
return !!Rr;
|
|
1153
1153
|
};
|
|
1154
1154
|
ca.hasArrayLengthDefineBug = function() {
|
|
1155
|
-
if (
|
|
1155
|
+
if (!Rr)
|
|
1156
1156
|
return null;
|
|
1157
1157
|
try {
|
|
1158
|
-
return
|
|
1158
|
+
return Rr([], "length", { value: 1 }).length !== 1;
|
|
1159
1159
|
} catch {
|
|
1160
1160
|
return !0;
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
|
-
var Ji = ca, Qi = nt,
|
|
1163
|
+
var Ji = ca, Qi = nt, In = Xi, Zi = Ji(), Cn = sa, Mn = At, el = Qi("%Math.floor%"), tl = function(e, r) {
|
|
1164
1164
|
if (typeof e != "function")
|
|
1165
|
-
throw new
|
|
1165
|
+
throw new Mn("`fn` is not a function");
|
|
1166
1166
|
if (typeof r != "number" || r < 0 || r > 4294967295 || el(r) !== r)
|
|
1167
|
-
throw new
|
|
1167
|
+
throw new Mn("`length` must be a positive 32-bit integer");
|
|
1168
1168
|
var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
|
|
1169
1169
|
if ("length" in e && Cn) {
|
|
1170
1170
|
var l = Cn(e, "length");
|
|
1171
1171
|
l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
|
|
1172
1172
|
}
|
|
1173
|
-
return (a || o || !n) && (Zi ?
|
|
1173
|
+
return (a || o || !n) && (Zi ? In(
|
|
1174
1174
|
/** @type {Parameters<define>[0]} */
|
|
1175
1175
|
e,
|
|
1176
1176
|
"length",
|
|
1177
1177
|
r,
|
|
1178
1178
|
!0,
|
|
1179
1179
|
!0
|
|
1180
|
-
) :
|
|
1180
|
+
) : In(
|
|
1181
1181
|
/** @type {Parameters<define>[0]} */
|
|
1182
1182
|
e,
|
|
1183
1183
|
"length",
|
|
@@ -1185,7 +1185,7 @@ var Ji = ca, Qi = nt, Fn = Xi, Zi = Ji(), Cn = sa, In = Pt, el = Qi("%Math.floor
|
|
|
1185
1185
|
)), e;
|
|
1186
1186
|
};
|
|
1187
1187
|
(function(t) {
|
|
1188
|
-
var e =
|
|
1188
|
+
var e = Gr, r = nt, n = tl, a = At, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Yr(), f = r("%Math.max%");
|
|
1189
1189
|
t.exports = function(v) {
|
|
1190
1190
|
if (typeof v != "function")
|
|
1191
1191
|
throw new a("a function is required");
|
|
@@ -1209,23 +1209,23 @@ const ol = {}, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1209
1209
|
__proto__: null,
|
|
1210
1210
|
default: ol
|
|
1211
1211
|
}, Symbol.toStringTag, { value: "Module" })), ll = /* @__PURE__ */ Bo(il);
|
|
1212
|
-
var
|
|
1212
|
+
var zr = typeof Map == "function" && Map.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Map.prototype.forEach, Kr = typeof Set == "function" && Set.prototype, hr = Object.getOwnPropertyDescriptor && Kr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ht = Kr && hr && typeof hr.get == "function" ? hr.get : null, Dn = Kr && Set.prototype.forEach, ul = typeof WeakMap == "function" && WeakMap.prototype, gt = ul ? WeakMap.prototype.has : null, sl = typeof WeakSet == "function" && WeakSet.prototype, bt = sl ? WeakSet.prototype.has : null, cl = typeof WeakRef == "function" && WeakRef.prototype, Nn = cl ? WeakRef.prototype.deref : null, fl = Boolean.prototype.valueOf, dl = Object.prototype.toString, pl = Function.prototype.toString, yl = String.prototype.match, Xr = String.prototype.slice, Re = String.prototype.replace, vl = String.prototype.toUpperCase, kn = String.prototype.toLowerCase, pa = RegExp.prototype.test, jn = Array.prototype.concat, Ee = Array.prototype.join, ml = Array.prototype.slice, Ln = Math.floor, Fr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gr = Object.getOwnPropertySymbols, Ir = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Wn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1213
1213
|
return t.__proto__;
|
|
1214
1214
|
} : null);
|
|
1215
|
-
function
|
|
1215
|
+
function Un(t, e) {
|
|
1216
1216
|
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || pa.call(/e/, e))
|
|
1217
1217
|
return e;
|
|
1218
1218
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1219
1219
|
if (typeof t == "number") {
|
|
1220
|
-
var n = t < 0 ? -
|
|
1220
|
+
var n = t < 0 ? -Ln(-t) : Ln(t);
|
|
1221
1221
|
if (n !== t) {
|
|
1222
|
-
var a = String(n), o =
|
|
1222
|
+
var a = String(n), o = Xr.call(e, a.length + 1);
|
|
1223
1223
|
return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return Re.call(e, r, "$&_");
|
|
1227
1227
|
}
|
|
1228
|
-
var Cr = ll,
|
|
1228
|
+
var Cr = ll, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, hl = function t(e, r, n, a) {
|
|
1229
1229
|
var o = r || {};
|
|
1230
1230
|
if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
1231
1231
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1251,15 +1251,15 @@ var Cr = ll, Un = Cr.custom, Bn = ma(Un) ? Un : null, hl = function t(e, r, n, a
|
|
|
1251
1251
|
if (e === 0)
|
|
1252
1252
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1253
1253
|
var i = String(e);
|
|
1254
|
-
return u ?
|
|
1254
|
+
return u ? Un(e, i) : i;
|
|
1255
1255
|
}
|
|
1256
1256
|
if (typeof e == "bigint") {
|
|
1257
1257
|
var f = String(e) + "n";
|
|
1258
|
-
return u ?
|
|
1258
|
+
return u ? Un(e, f) : f;
|
|
1259
1259
|
}
|
|
1260
1260
|
var s = typeof o.depth > "u" ? 5 : o.depth;
|
|
1261
1261
|
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
|
|
1262
|
-
return
|
|
1262
|
+
return Mr(e) ? "[Array]" : "[Object]";
|
|
1263
1263
|
var h = Dl(o, n);
|
|
1264
1264
|
if (typeof a > "u")
|
|
1265
1265
|
a = [];
|
|
@@ -1274,68 +1274,68 @@ var Cr = ll, Un = Cr.custom, Bn = ma(Un) ? Un : null, hl = function t(e, r, n, a
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return t($, o, n + 1, a);
|
|
1276
1276
|
}
|
|
1277
|
-
if (typeof e == "function" && !
|
|
1278
|
-
var w = Al(e), d =
|
|
1277
|
+
if (typeof e == "function" && !Vn(e)) {
|
|
1278
|
+
var w = Al(e), d = Mt(e, v);
|
|
1279
1279
|
return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (d.length > 0 ? " { " + Ee.call(d, ", ") + " }" : "");
|
|
1280
1280
|
}
|
|
1281
1281
|
if (ma(e)) {
|
|
1282
|
-
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
1282
|
+
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ir.call(e);
|
|
1283
1283
|
return typeof e == "object" && !tt ? pt(y) : y;
|
|
1284
1284
|
}
|
|
1285
|
-
if (
|
|
1286
|
-
for (var p = "<" +
|
|
1285
|
+
if (Cl(e)) {
|
|
1286
|
+
for (var p = "<" + kn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
|
|
1287
1287
|
p += " " + m[g].name + "=" + va(gl(m[g].value), "double", o);
|
|
1288
|
-
return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" +
|
|
1288
|
+
return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + kn.call(String(e.nodeName)) + ">", p;
|
|
1289
1289
|
}
|
|
1290
|
-
if (
|
|
1290
|
+
if (Mr(e)) {
|
|
1291
1291
|
if (e.length === 0)
|
|
1292
1292
|
return "[]";
|
|
1293
|
-
var b =
|
|
1294
|
-
return h && !_l(b) ? "[" +
|
|
1293
|
+
var b = Mt(e, v);
|
|
1294
|
+
return h && !_l(b) ? "[" + _r(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
|
|
1295
1295
|
}
|
|
1296
1296
|
if (wl(e)) {
|
|
1297
|
-
var S =
|
|
1298
|
-
return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(
|
|
1297
|
+
var S = Mt(e, v);
|
|
1298
|
+
return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(jn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
|
|
1299
1299
|
}
|
|
1300
1300
|
if (typeof e == "object" && l) {
|
|
1301
|
-
if (
|
|
1301
|
+
if (Hn && typeof e[Hn] == "function" && Cr)
|
|
1302
1302
|
return Cr(e, { depth: s - n });
|
|
1303
1303
|
if (l !== "symbol" && typeof e.inspect == "function")
|
|
1304
1304
|
return e.inspect();
|
|
1305
1305
|
}
|
|
1306
1306
|
if (Tl(e)) {
|
|
1307
1307
|
var O = [];
|
|
1308
|
-
return
|
|
1308
|
+
return _n && _n.call(e, function($, T) {
|
|
1309
1309
|
O.push(v(T, e, !0) + " => " + v($, e));
|
|
1310
|
-
}),
|
|
1310
|
+
}), qn("Map", Bt.call(e), O, h);
|
|
1311
1311
|
}
|
|
1312
1312
|
if (Fl(e)) {
|
|
1313
1313
|
var _ = [];
|
|
1314
|
-
return
|
|
1314
|
+
return Dn && Dn.call(e, function($) {
|
|
1315
1315
|
_.push(v($, e));
|
|
1316
|
-
}),
|
|
1316
|
+
}), qn("Set", Ht.call(e), _, h);
|
|
1317
1317
|
}
|
|
1318
1318
|
if ($l(e))
|
|
1319
|
-
return
|
|
1320
|
-
if (
|
|
1321
|
-
return
|
|
1319
|
+
return br("WeakMap");
|
|
1320
|
+
if (Il(e))
|
|
1321
|
+
return br("WeakSet");
|
|
1322
1322
|
if (Rl(e))
|
|
1323
|
-
return
|
|
1323
|
+
return br("WeakRef");
|
|
1324
1324
|
if (Sl(e))
|
|
1325
1325
|
return pt(v(Number(e)));
|
|
1326
1326
|
if (Ol(e))
|
|
1327
|
-
return pt(v(
|
|
1327
|
+
return pt(v(Fr.call(e)));
|
|
1328
1328
|
if (xl(e))
|
|
1329
1329
|
return pt(fl.call(e));
|
|
1330
1330
|
if (El(e))
|
|
1331
1331
|
return pt(v(String(e)));
|
|
1332
1332
|
if (typeof window < "u" && e === window)
|
|
1333
1333
|
return "{ [object Window] }";
|
|
1334
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
1334
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Tr < "u" && e === Tr)
|
|
1335
1335
|
return "{ [object globalThis] }";
|
|
1336
|
-
if (!bl(e) && !
|
|
1337
|
-
var M =
|
|
1338
|
-
return M.length === 0 ? V + "{}" : h ? V + "{" +
|
|
1336
|
+
if (!bl(e) && !Vn(e)) {
|
|
1337
|
+
var M = Mt(e, v), W = Wn ? Wn(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", j = !W && re && Object(e) === e && re in e ? Xr.call(Ce(e), 8, -1) : H ? "Object" : "", z = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (j || H ? "[" + Ee.call(jn.call([], j || [], H || []), ": ") + "] " : "");
|
|
1338
|
+
return M.length === 0 ? V + "{}" : h ? V + "{" + _r(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
|
|
1339
1339
|
}
|
|
1340
1340
|
return String(e);
|
|
1341
1341
|
};
|
|
@@ -1346,45 +1346,45 @@ function va(t, e, r) {
|
|
|
1346
1346
|
function gl(t) {
|
|
1347
1347
|
return Re.call(String(t), /"/g, """);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1349
|
+
function Mr(t) {
|
|
1350
|
+
return Ce(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
|
|
1351
1351
|
}
|
|
1352
1352
|
function bl(t) {
|
|
1353
|
-
return
|
|
1353
|
+
return Ce(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1355
|
+
function Vn(t) {
|
|
1356
|
+
return Ce(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
|
|
1357
1357
|
}
|
|
1358
1358
|
function wl(t) {
|
|
1359
|
-
return
|
|
1359
|
+
return Ce(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
|
|
1360
1360
|
}
|
|
1361
1361
|
function El(t) {
|
|
1362
|
-
return
|
|
1362
|
+
return Ce(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
|
|
1363
1363
|
}
|
|
1364
1364
|
function Sl(t) {
|
|
1365
|
-
return
|
|
1365
|
+
return Ce(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
|
|
1366
1366
|
}
|
|
1367
1367
|
function xl(t) {
|
|
1368
|
-
return
|
|
1368
|
+
return Ce(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
|
|
1369
1369
|
}
|
|
1370
1370
|
function ma(t) {
|
|
1371
1371
|
if (tt)
|
|
1372
1372
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1373
1373
|
if (typeof t == "symbol")
|
|
1374
1374
|
return !0;
|
|
1375
|
-
if (!t || typeof t != "object" || !
|
|
1375
|
+
if (!t || typeof t != "object" || !Ir)
|
|
1376
1376
|
return !1;
|
|
1377
1377
|
try {
|
|
1378
|
-
return
|
|
1378
|
+
return Ir.call(t), !0;
|
|
1379
1379
|
} catch {
|
|
1380
1380
|
}
|
|
1381
1381
|
return !1;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Ol(t) {
|
|
1384
|
-
if (!t || typeof t != "object" || !
|
|
1384
|
+
if (!t || typeof t != "object" || !Fr)
|
|
1385
1385
|
return !1;
|
|
1386
1386
|
try {
|
|
1387
|
-
return
|
|
1387
|
+
return Fr.call(t), !0;
|
|
1388
1388
|
} catch {
|
|
1389
1389
|
}
|
|
1390
1390
|
return !1;
|
|
@@ -1395,7 +1395,7 @@ var Pl = Object.prototype.hasOwnProperty || function(t) {
|
|
|
1395
1395
|
function Te(t, e) {
|
|
1396
1396
|
return Pl.call(t, e);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Ce(t) {
|
|
1399
1399
|
return dl.call(t);
|
|
1400
1400
|
}
|
|
1401
1401
|
function Al(t) {
|
|
@@ -1413,12 +1413,12 @@ function ha(t, e) {
|
|
|
1413
1413
|
return -1;
|
|
1414
1414
|
}
|
|
1415
1415
|
function Tl(t) {
|
|
1416
|
-
if (!
|
|
1416
|
+
if (!Bt || !t || typeof t != "object")
|
|
1417
1417
|
return !1;
|
|
1418
1418
|
try {
|
|
1419
|
-
|
|
1419
|
+
Bt.call(t);
|
|
1420
1420
|
try {
|
|
1421
|
-
|
|
1421
|
+
Ht.call(t);
|
|
1422
1422
|
} catch {
|
|
1423
1423
|
return !0;
|
|
1424
1424
|
}
|
|
@@ -1443,21 +1443,21 @@ function $l(t) {
|
|
|
1443
1443
|
return !1;
|
|
1444
1444
|
}
|
|
1445
1445
|
function Rl(t) {
|
|
1446
|
-
if (!
|
|
1446
|
+
if (!Nn || !t || typeof t != "object")
|
|
1447
1447
|
return !1;
|
|
1448
1448
|
try {
|
|
1449
|
-
return
|
|
1449
|
+
return Nn.call(t), !0;
|
|
1450
1450
|
} catch {
|
|
1451
1451
|
}
|
|
1452
1452
|
return !1;
|
|
1453
1453
|
}
|
|
1454
1454
|
function Fl(t) {
|
|
1455
|
-
if (!
|
|
1455
|
+
if (!Ht || !t || typeof t != "object")
|
|
1456
1456
|
return !1;
|
|
1457
1457
|
try {
|
|
1458
|
-
|
|
1458
|
+
Ht.call(t);
|
|
1459
1459
|
try {
|
|
1460
|
-
|
|
1460
|
+
Bt.call(t);
|
|
1461
1461
|
} catch {
|
|
1462
1462
|
return !0;
|
|
1463
1463
|
}
|
|
@@ -1466,7 +1466,7 @@ function Fl(t) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return !1;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Il(t) {
|
|
1470
1470
|
if (!bt || !t || typeof t != "object")
|
|
1471
1471
|
return !1;
|
|
1472
1472
|
try {
|
|
@@ -1481,13 +1481,13 @@ function Cl(t) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
return !1;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Cl(t) {
|
|
1485
1485
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
1486
1486
|
}
|
|
1487
1487
|
function ga(t, e) {
|
|
1488
1488
|
if (t.length > e.maxStringLength) {
|
|
1489
1489
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
1490
|
-
return ga(
|
|
1490
|
+
return ga(Xr.call(t, 0, e.maxStringLength), e) + n;
|
|
1491
1491
|
}
|
|
1492
1492
|
var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ml);
|
|
1493
1493
|
return va(a, "single", e);
|
|
@@ -1505,11 +1505,11 @@ function Ml(t) {
|
|
|
1505
1505
|
function pt(t) {
|
|
1506
1506
|
return "Object(" + t + ")";
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function br(t) {
|
|
1509
1509
|
return t + " { ? }";
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
var a = n ?
|
|
1511
|
+
function qn(t, e, r, n) {
|
|
1512
|
+
var a = n ? _r(r, n) : Ee.call(r, ", ");
|
|
1513
1513
|
return t + " (" + e + ") {" + a + "}";
|
|
1514
1514
|
}
|
|
1515
1515
|
function _l(t) {
|
|
@@ -1532,7 +1532,7 @@ function Dl(t, e) {
|
|
|
1532
1532
|
prev: Ee.call(Array(e + 1), r)
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function _r(t, e) {
|
|
1536
1536
|
if (t.length === 0)
|
|
1537
1537
|
return "";
|
|
1538
1538
|
var r = `
|
|
@@ -1540,14 +1540,14 @@ function Mr(t, e) {
|
|
|
1540
1540
|
return r + Ee.call(t, "," + r) + `
|
|
1541
1541
|
` + e.prev;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1544
|
-
var r =
|
|
1543
|
+
function Mt(t, e) {
|
|
1544
|
+
var r = Mr(t), n = [];
|
|
1545
1545
|
if (r) {
|
|
1546
1546
|
n.length = t.length;
|
|
1547
1547
|
for (var a = 0; a < t.length; a++)
|
|
1548
1548
|
n[a] = Te(t, a) ? e(t[a], t) : "";
|
|
1549
1549
|
}
|
|
1550
|
-
var o = typeof
|
|
1550
|
+
var o = typeof gr == "function" ? gr(t) : [], l;
|
|
1551
1551
|
if (tt) {
|
|
1552
1552
|
l = {};
|
|
1553
1553
|
for (var u = 0; u < o.length; u++)
|
|
@@ -1555,21 +1555,21 @@ function It(t, e) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
for (var i in t)
|
|
1557
1557
|
Te(t, i) && (r && String(Number(i)) === i && i < t.length || tt && l["$" + i] instanceof Symbol || (pa.call(/[^\w$]/, i) ? n.push(e(i, t) + ": " + e(t[i], t)) : n.push(i + ": " + e(t[i], t))));
|
|
1558
|
-
if (typeof
|
|
1558
|
+
if (typeof gr == "function")
|
|
1559
1559
|
for (var f = 0; f < o.length; f++)
|
|
1560
1560
|
ya.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
|
|
1561
1561
|
return n;
|
|
1562
1562
|
}
|
|
1563
|
-
var ba = nt, at = al, Nl = hl, kl =
|
|
1563
|
+
var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%", !0), jl = at("WeakMap.prototype.get", !0), Ll = at("WeakMap.prototype.set", !0), Wl = at("WeakMap.prototype.has", !0), Ul = at("Map.prototype.get", !0), Bl = at("Map.prototype.set", !0), Hl = at("Map.prototype.has", !0), Jr = function(t, e) {
|
|
1564
1564
|
for (var r = t, n; (n = r.next) !== null; r = n)
|
|
1565
1565
|
if (n.key === e)
|
|
1566
1566
|
return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
|
|
1567
1567
|
t.next, t.next = n, n;
|
|
1568
1568
|
}, Vl = function(t, e) {
|
|
1569
|
-
var r =
|
|
1569
|
+
var r = Jr(t, e);
|
|
1570
1570
|
return r && r.value;
|
|
1571
1571
|
}, ql = function(t, e, r) {
|
|
1572
|
-
var n =
|
|
1572
|
+
var n = Jr(t, e);
|
|
1573
1573
|
n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
1574
1574
|
{
|
|
1575
1575
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -1578,7 +1578,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1578
1578
|
value: r
|
|
1579
1579
|
};
|
|
1580
1580
|
}, Gl = function(t, e) {
|
|
1581
|
-
return !!
|
|
1581
|
+
return !!Jr(t, e);
|
|
1582
1582
|
}, Yl = function() {
|
|
1583
1583
|
var e, r, n, a = {
|
|
1584
1584
|
assert: function(o) {
|
|
@@ -1586,20 +1586,20 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1586
1586
|
throw new kl("Side channel does not contain " + Nl(o));
|
|
1587
1587
|
},
|
|
1588
1588
|
get: function(o) {
|
|
1589
|
-
if (
|
|
1589
|
+
if (_t && o && (typeof o == "object" || typeof o == "function")) {
|
|
1590
1590
|
if (e)
|
|
1591
1591
|
return jl(e, o);
|
|
1592
|
-
} else if (
|
|
1592
|
+
} else if (Dt) {
|
|
1593
1593
|
if (r)
|
|
1594
1594
|
return Ul(r, o);
|
|
1595
1595
|
} else if (n)
|
|
1596
1596
|
return Vl(n, o);
|
|
1597
1597
|
},
|
|
1598
1598
|
has: function(o) {
|
|
1599
|
-
if (
|
|
1599
|
+
if (_t && o && (typeof o == "object" || typeof o == "function")) {
|
|
1600
1600
|
if (e)
|
|
1601
1601
|
return Wl(e, o);
|
|
1602
|
-
} else if (
|
|
1602
|
+
} else if (Dt) {
|
|
1603
1603
|
if (r)
|
|
1604
1604
|
return Hl(r, o);
|
|
1605
1605
|
} else if (n)
|
|
@@ -1607,15 +1607,15 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1607
1607
|
return !1;
|
|
1608
1608
|
},
|
|
1609
1609
|
set: function(o, l) {
|
|
1610
|
-
|
|
1610
|
+
_t && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new _t()), Ll(e, o, l)) : Dt ? (r || (r = new Dt()), Bl(r, o, l)) : (n || (n = { key: {}, next: null }), ql(n, o, l));
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
1613
|
return a;
|
|
1614
|
-
}, zl = String.prototype.replace, Kl = /%20/g,
|
|
1614
|
+
}, zl = String.prototype.replace, Kl = /%20/g, wr = {
|
|
1615
1615
|
RFC1738: "RFC1738",
|
|
1616
1616
|
RFC3986: "RFC3986"
|
|
1617
|
-
},
|
|
1618
|
-
default:
|
|
1617
|
+
}, Qr = {
|
|
1618
|
+
default: wr.RFC3986,
|
|
1619
1619
|
formatters: {
|
|
1620
1620
|
RFC1738: function(t) {
|
|
1621
1621
|
return zl.call(t, Kl, "+");
|
|
@@ -1624,9 +1624,9 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1624
1624
|
return String(t);
|
|
1625
1625
|
}
|
|
1626
1626
|
},
|
|
1627
|
-
RFC1738:
|
|
1628
|
-
RFC3986:
|
|
1629
|
-
}, Xl =
|
|
1627
|
+
RFC1738: wr.RFC1738,
|
|
1628
|
+
RFC3986: wr.RFC3986
|
|
1629
|
+
}, Xl = Qr, Er = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
|
|
1630
1630
|
for (var t = [], e = 0; e < 256; ++e)
|
|
1631
1631
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1632
1632
|
return t;
|
|
@@ -1650,7 +1650,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1650
1650
|
if (Le(e))
|
|
1651
1651
|
e.push(r);
|
|
1652
1652
|
else if (e && typeof e == "object")
|
|
1653
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
1653
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Er.call(Object.prototype, r)) && (e[r] = !0);
|
|
1654
1654
|
else
|
|
1655
1655
|
return [e, r];
|
|
1656
1656
|
return e;
|
|
@@ -1659,14 +1659,14 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1659
1659
|
return [e].concat(r);
|
|
1660
1660
|
var a = e;
|
|
1661
1661
|
return Le(e) && !Le(r) && (a = wa(e, n)), Le(e) && Le(r) ? (r.forEach(function(o, l) {
|
|
1662
|
-
if (
|
|
1662
|
+
if (Er.call(e, l)) {
|
|
1663
1663
|
var u = e[l];
|
|
1664
1664
|
u && typeof u == "object" && o && typeof o == "object" ? e[l] = t(u, o, n) : e.push(o);
|
|
1665
1665
|
} else
|
|
1666
1666
|
e[l] = o;
|
|
1667
1667
|
}), e) : Object.keys(r).reduce(function(o, l) {
|
|
1668
1668
|
var u = r[l];
|
|
1669
|
-
return
|
|
1669
|
+
return Er.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
|
|
1670
1670
|
}, a);
|
|
1671
1671
|
}, Zl = function(e, r) {
|
|
1672
1672
|
return Object.keys(r).reduce(function(n, a) {
|
|
@@ -1681,7 +1681,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1681
1681
|
} catch {
|
|
1682
1682
|
return n;
|
|
1683
1683
|
}
|
|
1684
|
-
},
|
|
1684
|
+
}, Sr = 1024, tu = function(e, r, n, a, o) {
|
|
1685
1685
|
if (e.length === 0)
|
|
1686
1686
|
return e;
|
|
1687
1687
|
var l = e;
|
|
@@ -1689,8 +1689,8 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1689
1689
|
return escape(l).replace(/%u[0-9a-f]{4}/gi, function(w) {
|
|
1690
1690
|
return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
|
|
1691
1691
|
});
|
|
1692
|
-
for (var u = "", i = 0; i < l.length; i +=
|
|
1693
|
-
for (var f = l.length >=
|
|
1692
|
+
for (var u = "", i = 0; i < l.length; i += Sr) {
|
|
1693
|
+
for (var f = l.length >= Sr ? l.slice(i, i + Sr) : l, s = [], h = 0; h < f.length; ++h) {
|
|
1694
1694
|
var v = f.charCodeAt(h);
|
|
1695
1695
|
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Xl.RFC1738 && (v === 40 || v === 41)) {
|
|
1696
1696
|
s[s.length] = f.charAt(h);
|
|
@@ -1744,7 +1744,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1744
1744
|
isRegExp: nu,
|
|
1745
1745
|
maybeMap: iu,
|
|
1746
1746
|
merge: Ql
|
|
1747
|
-
}, Sa = Yl,
|
|
1747
|
+
}, Sa = Yl, jt = Ea, wt = Qr, lu = Object.prototype.hasOwnProperty, xa = {
|
|
1748
1748
|
brackets: function(e) {
|
|
1749
1749
|
return e + "[]";
|
|
1750
1750
|
},
|
|
@@ -1757,7 +1757,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1757
1757
|
}
|
|
1758
1758
|
}, we = Array.isArray, uu = Array.prototype.push, Oa = function(t, e) {
|
|
1759
1759
|
uu.apply(t, we(e) ? e : [e]);
|
|
1760
|
-
}, su = Date.prototype.toISOString,
|
|
1760
|
+
}, su = Date.prototype.toISOString, Gn = wt.default, X = {
|
|
1761
1761
|
addQueryPrefix: !1,
|
|
1762
1762
|
allowDots: !1,
|
|
1763
1763
|
allowEmptyArrays: !1,
|
|
@@ -1767,10 +1767,10 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1767
1767
|
delimiter: "&",
|
|
1768
1768
|
encode: !0,
|
|
1769
1769
|
encodeDotInKeys: !1,
|
|
1770
|
-
encoder:
|
|
1770
|
+
encoder: jt.encode,
|
|
1771
1771
|
encodeValuesOnly: !1,
|
|
1772
|
-
format:
|
|
1773
|
-
formatter: wt.formatters[
|
|
1772
|
+
format: Gn,
|
|
1773
|
+
formatter: wt.formatters[Gn],
|
|
1774
1774
|
// deprecated
|
|
1775
1775
|
indices: !1,
|
|
1776
1776
|
serializeDate: function(e) {
|
|
@@ -1780,24 +1780,24 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1780
1780
|
strictNullHandling: !1
|
|
1781
1781
|
}, cu = function(e) {
|
|
1782
1782
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1783
|
-
},
|
|
1784
|
-
for (var b = e, S = g, O = 0, _ = !1; (S = S.get(
|
|
1783
|
+
}, xr = {}, fu = function t(e, r, n, a, o, l, u, i, f, s, h, v, w, d, y, p, m, g) {
|
|
1784
|
+
for (var b = e, S = g, O = 0, _ = !1; (S = S.get(xr)) !== void 0 && !_; ) {
|
|
1785
1785
|
var M = S.get(e);
|
|
1786
1786
|
if (O += 1, typeof M < "u") {
|
|
1787
1787
|
if (M === O)
|
|
1788
1788
|
throw new RangeError("Cyclic object value");
|
|
1789
1789
|
_ = !0;
|
|
1790
1790
|
}
|
|
1791
|
-
typeof S.get(
|
|
1791
|
+
typeof S.get(xr) > "u" && (O = 0);
|
|
1792
1792
|
}
|
|
1793
|
-
if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b =
|
|
1793
|
+
if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = jt.maybeMap(b, function(ye) {
|
|
1794
1794
|
return ye instanceof Date ? w(ye) : ye;
|
|
1795
1795
|
})), b === null) {
|
|
1796
1796
|
if (l)
|
|
1797
1797
|
return f && !p ? f(r, X.encoder, m, "key", d) : r;
|
|
1798
1798
|
b = "";
|
|
1799
1799
|
}
|
|
1800
|
-
if (cu(b) ||
|
|
1800
|
+
if (cu(b) || jt.isBuffer(b)) {
|
|
1801
1801
|
if (f) {
|
|
1802
1802
|
var W = p ? r : f(r, X.encoder, m, "key", d);
|
|
1803
1803
|
return [y(W) + "=" + y(f(b, X.encoder, m, "value", d))];
|
|
@@ -1809,7 +1809,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1809
1809
|
return H;
|
|
1810
1810
|
var j;
|
|
1811
1811
|
if (n === "comma" && we(b))
|
|
1812
|
-
p && f && (b =
|
|
1812
|
+
p && f && (b = jt.maybeMap(b, f)), j = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
|
|
1813
1813
|
else if (we(s))
|
|
1814
1814
|
j = s;
|
|
1815
1815
|
else {
|
|
@@ -1825,7 +1825,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1825
1825
|
var pe = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, pe) : $ : $ + (v ? "." + pe : "[" + pe + "]");
|
|
1826
1826
|
g.set(e, O);
|
|
1827
1827
|
var te = Sa();
|
|
1828
|
-
te.set(
|
|
1828
|
+
te.set(xr, g), Oa(H, t(
|
|
1829
1829
|
ue,
|
|
1830
1830
|
ge,
|
|
1831
1831
|
n,
|
|
@@ -1926,7 +1926,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1926
1926
|
}
|
|
1927
1927
|
var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
|
|
1928
1928
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
|
|
1929
|
-
}, rt = Ea,
|
|
1929
|
+
}, rt = Ea, Dr = Object.prototype.hasOwnProperty, yu = Array.isArray, B = {
|
|
1930
1930
|
allowDots: !1,
|
|
1931
1931
|
allowEmptyArrays: !1,
|
|
1932
1932
|
allowPrototypes: !1,
|
|
@@ -1969,7 +1969,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1969
1969
|
return r.decoder(p, B.decoder, f, "value");
|
|
1970
1970
|
}
|
|
1971
1971
|
)), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = vu(d)), s.indexOf("[]=") > -1 && (d = yu(d) ? [d] : d);
|
|
1972
|
-
var y =
|
|
1972
|
+
var y = Dr.call(n, w);
|
|
1973
1973
|
y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], d) : (!y || r.duplicates === "last") && (n[w] = d);
|
|
1974
1974
|
}
|
|
1975
1975
|
return n;
|
|
@@ -1990,12 +1990,12 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1990
1990
|
if (e) {
|
|
1991
1991
|
var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), f = i ? o.slice(0, i.index) : o, s = [];
|
|
1992
1992
|
if (f) {
|
|
1993
|
-
if (!n.plainObjects &&
|
|
1993
|
+
if (!n.plainObjects && Dr.call(Object.prototype, f) && !n.allowPrototypes)
|
|
1994
1994
|
return;
|
|
1995
1995
|
s.push(f);
|
|
1996
1996
|
}
|
|
1997
1997
|
for (var h = 0; n.depth > 0 && (i = u.exec(o)) !== null && h < n.depth; ) {
|
|
1998
|
-
if (h += 1, !n.plainObjects &&
|
|
1998
|
+
if (h += 1, !n.plainObjects && Dr.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1999
1999
|
return;
|
|
2000
2000
|
s.push(i[1]);
|
|
2001
2001
|
}
|
|
@@ -2053,7 +2053,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2053
2053
|
a = rt.merge(a, i, r);
|
|
2054
2054
|
}
|
|
2055
2055
|
return r.allowSparse === !0 ? a : rt.compact(a);
|
|
2056
|
-
}, xu = pu, Ou = Su, Pu =
|
|
2056
|
+
}, xu = pu, Ou = Su, Pu = Qr, Yn = {
|
|
2057
2057
|
formats: Pu,
|
|
2058
2058
|
parse: Ou,
|
|
2059
2059
|
stringify: xu
|
|
@@ -2063,7 +2063,7 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2063
2063
|
(function(t, e) {
|
|
2064
2064
|
(function(r, n) {
|
|
2065
2065
|
t.exports = n();
|
|
2066
|
-
})(
|
|
2066
|
+
})(Tr, function() {
|
|
2067
2067
|
var r = {};
|
|
2068
2068
|
r.version = "0.2.0";
|
|
2069
2069
|
var n = r.settings = {
|
|
@@ -2217,11 +2217,11 @@ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2217
2217
|
})(Au);
|
|
2218
2218
|
function Tu(t, e, r, n = "brackets") {
|
|
2219
2219
|
let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), f = new URL(e.toString(), "http://localhost");
|
|
2220
|
-
return t === "get" && Object.keys(r).length && (f.search =
|
|
2220
|
+
return t === "get" && Object.keys(r).length && (f.search = Yn.stringify(ui(Yn.parse(f.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${f.protocol}//${f.host}` : "", o ? f.pathname : "", l ? f.pathname.substring(1) : "", u ? f.search : "", i ? f.hash : ""].join(""), r];
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2224
|
-
let Aa = null, Ta = null,
|
|
2222
|
+
const Kt = fe(null);
|
|
2223
|
+
Kt.displayName = "ModalStackContext";
|
|
2224
|
+
let Aa = null, Ta = null, Et = null, Nr = null, kr = [];
|
|
2225
2225
|
const $u = ({ children: t }) => {
|
|
2226
2226
|
const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
|
|
2227
2227
|
r((p) => {
|
|
@@ -2235,7 +2235,7 @@ const $u = ({ children: t }) => {
|
|
|
2235
2235
|
});
|
|
2236
2236
|
};
|
|
2237
2237
|
Y(() => {
|
|
2238
|
-
|
|
2238
|
+
kr = e;
|
|
2239
2239
|
}, [e]);
|
|
2240
2240
|
class l {
|
|
2241
2241
|
constructor(p, m, g, b, S) {
|
|
@@ -2292,7 +2292,7 @@ const $u = ({ children: t }) => {
|
|
|
2292
2292
|
ce(this, "reload", (p = {}) => {
|
|
2293
2293
|
var g;
|
|
2294
2294
|
let m = Object.keys(this.response.props);
|
|
2295
|
-
p.only && (m = aa(m, p.only)), p.except && (m = qo(m, p.except)), (g = this.response) != null && g.url &&
|
|
2295
|
+
p.only && (m = aa(m, p.only)), p.except && (m = qo(m, p.except)), (g = this.response) != null && g.url && Lt.get(this.response.url, {
|
|
2296
2296
|
headers: {
|
|
2297
2297
|
Accept: "text/html, application/xhtml+xml",
|
|
2298
2298
|
"X-Inertia": !0,
|
|
@@ -2300,7 +2300,8 @@ const $u = ({ children: t }) => {
|
|
|
2300
2300
|
"X-Inertia-Version": this.response.version,
|
|
2301
2301
|
"X-Inertia-Partial-Data": m.join(","),
|
|
2302
2302
|
"X-InertiaUI-Modal": !0,
|
|
2303
|
-
"X-InertiaUI-Modal-Use-Router": 0
|
|
2303
|
+
"X-InertiaUI-Modal-Use-Router": 0,
|
|
2304
|
+
"X-InertiaUI-Modal-Base-Url": Et
|
|
2304
2305
|
}
|
|
2305
2306
|
}).then((b) => {
|
|
2306
2307
|
this.updateProps(b.data.props);
|
|
@@ -2334,7 +2335,7 @@ const $u = ({ children: t }) => {
|
|
|
2334
2335
|
p.onClose,
|
|
2335
2336
|
p.onAfterLeave,
|
|
2336
2337
|
p.queryStringArrayFormat ?? "brackets",
|
|
2337
|
-
p.navigate ??
|
|
2338
|
+
p.navigate ?? qr("navigate")
|
|
2338
2339
|
), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
|
|
2339
2340
|
if (y.startsWith("#")) {
|
|
2340
2341
|
W(f(y.substring(1), b, S, O));
|
|
@@ -2342,14 +2343,15 @@ const $u = ({ children: t }) => {
|
|
|
2342
2343
|
}
|
|
2343
2344
|
const [j, z] = Tu(p, y || "", m, _);
|
|
2344
2345
|
let V = M && e.length === 0;
|
|
2345
|
-
if (e.length === 0 && (
|
|
2346
|
+
if (e.length === 0 && (Et = typeof window < "u" ? window.location.href : ""), g = {
|
|
2346
2347
|
...g,
|
|
2347
2348
|
Accept: "text/html, application/xhtml+xml",
|
|
2348
2349
|
"X-Requested-With": "XMLHttpRequest",
|
|
2349
2350
|
"X-Inertia": !0,
|
|
2350
2351
|
"X-Inertia-Version": Aa,
|
|
2351
2352
|
"X-InertiaUI-Modal": !0,
|
|
2352
|
-
"X-InertiaUI-Modal-Use-Router": V ? 1 : 0
|
|
2353
|
+
"X-InertiaUI-Modal-Use-Router": V ? 1 : 0,
|
|
2354
|
+
"X-InertiaUI-Modal-Base-Url": Et
|
|
2353
2355
|
}, V)
|
|
2354
2356
|
return Nr = null, vt.visit(j, {
|
|
2355
2357
|
method: p,
|
|
@@ -2373,7 +2375,7 @@ const $u = ({ children: t }) => {
|
|
|
2373
2375
|
});
|
|
2374
2376
|
}
|
|
2375
2377
|
});
|
|
2376
|
-
|
|
2378
|
+
Lt({
|
|
2377
2379
|
url: j,
|
|
2378
2380
|
method: p,
|
|
2379
2381
|
data: z,
|
|
@@ -2387,7 +2389,7 @@ const $u = ({ children: t }) => {
|
|
|
2387
2389
|
push: i,
|
|
2388
2390
|
pushFromResponseData: u,
|
|
2389
2391
|
closeAll: () => {
|
|
2390
|
-
|
|
2392
|
+
kr.reverse().forEach((y) => y.close());
|
|
2391
2393
|
},
|
|
2392
2394
|
reset: () => o(() => []),
|
|
2393
2395
|
visit: h,
|
|
@@ -2405,9 +2407,9 @@ const $u = ({ children: t }) => {
|
|
|
2405
2407
|
});
|
|
2406
2408
|
}
|
|
2407
2409
|
};
|
|
2408
|
-
return /* @__PURE__ */ R.jsx(
|
|
2409
|
-
},
|
|
2410
|
-
const t = ie(
|
|
2410
|
+
return /* @__PURE__ */ R.jsx(Kt.Provider, { value: d, children: t });
|
|
2411
|
+
}, Xt = () => {
|
|
2412
|
+
const t = ie(Kt);
|
|
2411
2413
|
if (t === null)
|
|
2412
2414
|
throw new Error("useModalStack must be used within a ModalStackProvider");
|
|
2413
2415
|
return t;
|
|
@@ -2415,8 +2417,8 @@ const $u = ({ children: t }) => {
|
|
|
2415
2417
|
e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
|
|
2416
2418
|
const r = ({ Component: n, props: a, key: o }) => {
|
|
2417
2419
|
const l = () => {
|
|
2418
|
-
const u =
|
|
2419
|
-
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) =>
|
|
2420
|
+
const u = Ar(n, { key: o, ...a });
|
|
2421
|
+
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) => Ar(s, a, f)) : u;
|
|
2420
2422
|
};
|
|
2421
2423
|
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2422
2424
|
l(),
|
|
@@ -2426,7 +2428,7 @@ const $u = ({ children: t }) => {
|
|
|
2426
2428
|
return /* @__PURE__ */ R.jsx($u, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
|
|
2427
2429
|
}, Ru = ({ children: t }) => {
|
|
2428
2430
|
var u;
|
|
2429
|
-
const e = ie(
|
|
2431
|
+
const e = ie(Kt);
|
|
2430
2432
|
let r = !1, n = !1;
|
|
2431
2433
|
Y(() => vt.on("start", () => r = !0), []), Y(() => vt.on("finish", () => r = !1), []), Y(
|
|
2432
2434
|
() => vt.on("navigate", function(i) {
|
|
@@ -2435,7 +2437,7 @@ const $u = ({ children: t }) => {
|
|
|
2435
2437
|
n && e.closeAll();
|
|
2436
2438
|
return;
|
|
2437
2439
|
}
|
|
2438
|
-
n = f,
|
|
2440
|
+
n = f, Et = f.baseUrl, e.pushFromResponseData(f, {}, () => {
|
|
2439
2441
|
if (!f.baseUrl) {
|
|
2440
2442
|
console.error("No base url in modal response data so cannot navigate back");
|
|
2441
2443
|
return;
|
|
@@ -2450,8 +2452,8 @@ const $u = ({ children: t }) => {
|
|
|
2450
2452
|
}),
|
|
2451
2453
|
[]
|
|
2452
2454
|
);
|
|
2453
|
-
const a = (i) => (i.headers["X-InertiaUI-Modal-Base-Url"] =
|
|
2454
|
-
Y(() => (
|
|
2455
|
+
const a = (i) => (kr.length && (i.headers["X-InertiaUI-Modal-Base-Url"] = Et), i);
|
|
2456
|
+
Y(() => (Lt.interceptors.request.use(a), () => Lt.interceptors.request.eject(a)), []);
|
|
2455
2457
|
const o = jo(), l = k();
|
|
2456
2458
|
return Y(() => {
|
|
2457
2459
|
var s, h;
|
|
@@ -2461,27 +2463,27 @@ const $u = ({ children: t }) => {
|
|
|
2461
2463
|
t,
|
|
2462
2464
|
e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
|
|
2463
2465
|
] });
|
|
2464
|
-
},
|
|
2465
|
-
|
|
2466
|
+
}, Zr = A.createContext(null);
|
|
2467
|
+
Zr.displayName = "ModalIndexContext";
|
|
2466
2468
|
const $a = () => {
|
|
2467
|
-
const t = A.useContext(
|
|
2469
|
+
const t = A.useContext(Zr);
|
|
2468
2470
|
if (t === void 0)
|
|
2469
2471
|
throw new Error("useModalIndex must be used within a ModalIndexProvider");
|
|
2470
2472
|
return t;
|
|
2471
2473
|
}, Ra = ({ index: t }) => {
|
|
2472
|
-
const { stack: e } =
|
|
2473
|
-
return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(
|
|
2474
|
+
const { stack: e } = Xt(), r = J(() => e[t], [e, t]);
|
|
2475
|
+
return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Zr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
|
|
2474
2476
|
r.component,
|
|
2475
2477
|
{
|
|
2476
2478
|
...r.props,
|
|
2477
2479
|
onModalEvent: (...n) => r.emit(...n)
|
|
2478
2480
|
}
|
|
2479
2481
|
) });
|
|
2480
|
-
}, Fa =
|
|
2481
|
-
const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } =
|
|
2482
|
+
}, Fa = Vr(({ name: t, children: e, ...r }, n) => {
|
|
2483
|
+
const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Xt(), [i, f] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
|
|
2482
2484
|
var d;
|
|
2483
2485
|
return (d = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : d.index;
|
|
2484
|
-
}, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ??
|
|
2486
|
+
}, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? qr("type") === "slideover", [r.slideover]), w = J(
|
|
2485
2487
|
() => ({
|
|
2486
2488
|
slideover: v,
|
|
2487
2489
|
closeButton: r.closeButton ?? ze(v, "closeButton"),
|
|
@@ -2544,23 +2546,23 @@ const $a = () => {
|
|
|
2544
2546
|
] });
|
|
2545
2547
|
});
|
|
2546
2548
|
Fa.displayName = "HeadlessModal";
|
|
2547
|
-
function
|
|
2549
|
+
function Ia(t) {
|
|
2548
2550
|
var e, r, n = "";
|
|
2549
2551
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
2550
2552
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2551
2553
|
var a = t.length;
|
|
2552
|
-
for (e = 0; e < a; e++) t[e] && (r =
|
|
2554
|
+
for (e = 0; e < a; e++) t[e] && (r = Ia(t[e])) && (n && (n += " "), n += r);
|
|
2553
2555
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
2554
2556
|
return n;
|
|
2555
2557
|
}
|
|
2556
|
-
function
|
|
2557
|
-
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e =
|
|
2558
|
+
function Vt() {
|
|
2559
|
+
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ia(t)) && (n && (n += " "), n += e);
|
|
2558
2560
|
return n;
|
|
2559
2561
|
}
|
|
2560
|
-
var Fu = Object.defineProperty,
|
|
2561
|
-
let
|
|
2562
|
+
var Fu = Object.defineProperty, Iu = (t, e, r) => e in t ? Fu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Or = (t, e, r) => (Iu(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
2563
|
+
let Cu = class {
|
|
2562
2564
|
constructor() {
|
|
2563
|
-
|
|
2565
|
+
Or(this, "current", this.detect()), Or(this, "handoffState", "pending"), Or(this, "currentId", 0);
|
|
2564
2566
|
}
|
|
2565
2567
|
set(e) {
|
|
2566
2568
|
this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
|
|
@@ -2586,11 +2588,11 @@ let Iu = class {
|
|
|
2586
2588
|
get isHandoffComplete() {
|
|
2587
2589
|
return this.handoffState === "complete";
|
|
2588
2590
|
}
|
|
2589
|
-
}, Ve = new
|
|
2590
|
-
function
|
|
2591
|
+
}, Ve = new Cu();
|
|
2592
|
+
function Jt(t) {
|
|
2591
2593
|
return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
|
|
2592
2594
|
}
|
|
2593
|
-
function
|
|
2595
|
+
function Qt(t) {
|
|
2594
2596
|
typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
|
|
2595
2597
|
throw e;
|
|
2596
2598
|
}));
|
|
@@ -2608,7 +2610,7 @@ function Me() {
|
|
|
2608
2610
|
return e.add(() => clearTimeout(n));
|
|
2609
2611
|
}, microTask(...r) {
|
|
2610
2612
|
let n = { current: !0 };
|
|
2611
|
-
return
|
|
2613
|
+
return Qt(() => {
|
|
2612
2614
|
n.current && r[0]();
|
|
2613
2615
|
}), e.add(() => {
|
|
2614
2616
|
n.current = !1;
|
|
@@ -2631,12 +2633,12 @@ function Me() {
|
|
|
2631
2633
|
} };
|
|
2632
2634
|
return e;
|
|
2633
2635
|
}
|
|
2634
|
-
function
|
|
2636
|
+
function en() {
|
|
2635
2637
|
let [t] = Q(Me);
|
|
2636
2638
|
return Y(() => () => t.dispose(), [t]), t;
|
|
2637
2639
|
}
|
|
2638
2640
|
let ae = (t, e) => {
|
|
2639
|
-
Ve.isServer ? Y(t, e) :
|
|
2641
|
+
Ve.isServer ? Y(t, e) : Co(t, e);
|
|
2640
2642
|
};
|
|
2641
2643
|
function qe(t) {
|
|
2642
2644
|
let e = k(t);
|
|
@@ -2651,43 +2653,43 @@ let U = function(t) {
|
|
|
2651
2653
|
function _u() {
|
|
2652
2654
|
return ie(Mu);
|
|
2653
2655
|
}
|
|
2654
|
-
function
|
|
2656
|
+
function jr(...t) {
|
|
2655
2657
|
return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
|
|
2656
2658
|
}
|
|
2657
|
-
function
|
|
2659
|
+
function Ie(t, e, ...r) {
|
|
2658
2660
|
if (t in e) {
|
|
2659
2661
|
let a = e[t];
|
|
2660
2662
|
return typeof a == "function" ? a(...r) : a;
|
|
2661
2663
|
}
|
|
2662
2664
|
let n = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((a) => `"${a}"`).join(", ")}.`);
|
|
2663
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
2665
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, Ie), n;
|
|
2664
2666
|
}
|
|
2665
|
-
var
|
|
2667
|
+
var qt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(qt || {}), Fe = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Fe || {});
|
|
2666
2668
|
function de() {
|
|
2667
2669
|
let t = Nu();
|
|
2668
2670
|
return ve((e) => Du({ mergeRefs: t, ...e }), [t]);
|
|
2669
2671
|
}
|
|
2670
2672
|
function Du({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
|
|
2671
2673
|
u = u ?? ku;
|
|
2672
|
-
let i =
|
|
2673
|
-
if (o) return
|
|
2674
|
+
let i = Ca(e, t);
|
|
2675
|
+
if (o) return Nt(i, r, n, l, u);
|
|
2674
2676
|
let f = a ?? 0;
|
|
2675
2677
|
if (f & 2) {
|
|
2676
2678
|
let { static: s = !1, ...h } = i;
|
|
2677
|
-
if (s) return
|
|
2679
|
+
if (s) return Nt(h, r, n, l, u);
|
|
2678
2680
|
}
|
|
2679
2681
|
if (f & 1) {
|
|
2680
2682
|
let { unmount: s = !0, ...h } = i;
|
|
2681
|
-
return
|
|
2683
|
+
return Ie(s ? 0 : 1, { 0() {
|
|
2682
2684
|
return null;
|
|
2683
2685
|
}, 1() {
|
|
2684
|
-
return
|
|
2686
|
+
return Nt({ ...h, hidden: !0, style: { display: "none" } }, r, n, l, u);
|
|
2685
2687
|
} });
|
|
2686
2688
|
}
|
|
2687
|
-
return
|
|
2689
|
+
return Nt(i, r, n, l, u);
|
|
2688
2690
|
}
|
|
2689
|
-
function
|
|
2690
|
-
let { as: o = r, children: l, refName: u = "ref", ...i } =
|
|
2691
|
+
function Nt(t, e = {}, r, n, a) {
|
|
2692
|
+
let { as: o = r, children: l, refName: u = "ref", ...i } = Pr(t, ["unmount", "static"]), f = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
|
|
2691
2693
|
"className" in i && i.className && typeof i.className == "function" && (i.className = i.className(e)), i["aria-labelledby"] && i["aria-labelledby"] === i.id && (i["aria-labelledby"] = void 0);
|
|
2692
2694
|
let h = {};
|
|
2693
2695
|
if (e) {
|
|
@@ -2704,11 +2706,11 @@ function Dt(t, e = {}, r, n, a) {
|
|
|
2704
2706
|
`)].join(`
|
|
2705
2707
|
`));
|
|
2706
2708
|
} else {
|
|
2707
|
-
let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) =>
|
|
2709
|
+
let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) => jr(w(...m), i.className) : jr(w, i.className), y = d ? { className: d } : {}, p = Ca(s.props, je(Pr(i, ["ref"])));
|
|
2708
2710
|
for (let m in h) m in p && delete h[m];
|
|
2709
2711
|
return _o(s, Object.assign({}, p, h, f, { ref: a(s.ref, f.ref) }, y));
|
|
2710
2712
|
}
|
|
2711
|
-
return
|
|
2713
|
+
return Ar(o, Object.assign({}, Pr(i, ["ref"]), o !== he && f, o !== he && h), s);
|
|
2712
2714
|
}
|
|
2713
2715
|
function Nu() {
|
|
2714
2716
|
let t = k([]), e = ve((r) => {
|
|
@@ -2723,7 +2725,7 @@ function ku(...t) {
|
|
|
2723
2725
|
for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
|
|
2724
2726
|
};
|
|
2725
2727
|
}
|
|
2726
|
-
function
|
|
2728
|
+
function Ca(...t) {
|
|
2727
2729
|
if (t.length === 0) return {};
|
|
2728
2730
|
if (t.length === 1) return t[0];
|
|
2729
2731
|
let e = {}, r = {};
|
|
@@ -2743,26 +2745,26 @@ function Ia(...t) {
|
|
|
2743
2745
|
}
|
|
2744
2746
|
function le(t) {
|
|
2745
2747
|
var e;
|
|
2746
|
-
return Object.assign(
|
|
2748
|
+
return Object.assign(Vr(t), { displayName: (e = t.displayName) != null ? e : t.name });
|
|
2747
2749
|
}
|
|
2748
2750
|
function je(t) {
|
|
2749
2751
|
let e = Object.assign({}, t);
|
|
2750
2752
|
for (let r in e) e[r] === void 0 && delete e[r];
|
|
2751
2753
|
return e;
|
|
2752
2754
|
}
|
|
2753
|
-
function
|
|
2755
|
+
function Pr(t, e = []) {
|
|
2754
2756
|
let r = Object.assign({}, t);
|
|
2755
2757
|
for (let n of e) n in r && delete r[n];
|
|
2756
2758
|
return r;
|
|
2757
2759
|
}
|
|
2758
2760
|
let ju = "span";
|
|
2759
|
-
var
|
|
2761
|
+
var Gt = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(Gt || {});
|
|
2760
2762
|
function Lu(t, e) {
|
|
2761
2763
|
var r;
|
|
2762
2764
|
let { features: n = 1, ...a } = t, o = { ref: e, "aria-hidden": (n & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
|
|
2763
2765
|
return de()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ju, name: "Hidden" });
|
|
2764
2766
|
}
|
|
2765
|
-
let
|
|
2767
|
+
let Lr = le(Lu), Ma = Symbol();
|
|
2766
2768
|
function Wu(t, e = !0) {
|
|
2767
2769
|
return Object.assign(t, { [Ma]: e });
|
|
2768
2770
|
}
|
|
@@ -2776,10 +2778,10 @@ function Se(...t) {
|
|
|
2776
2778
|
});
|
|
2777
2779
|
return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
|
|
2778
2780
|
}
|
|
2779
|
-
let
|
|
2780
|
-
|
|
2781
|
+
let tn = fe(null);
|
|
2782
|
+
tn.displayName = "DescriptionContext";
|
|
2781
2783
|
function _a() {
|
|
2782
|
-
let t = ie(
|
|
2784
|
+
let t = ie(tn);
|
|
2783
2785
|
if (t === null) {
|
|
2784
2786
|
let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
2785
2787
|
throw Error.captureStackTrace && Error.captureStackTrace(e, _a), e;
|
|
@@ -2793,12 +2795,12 @@ function Uu() {
|
|
|
2793
2795
|
let u = l.slice(), i = u.indexOf(o);
|
|
2794
2796
|
return i !== -1 && u.splice(i, 1), u;
|
|
2795
2797
|
}))), a = J(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
|
|
2796
|
-
return A.createElement(
|
|
2798
|
+
return A.createElement(tn.Provider, { value: a }, r.children);
|
|
2797
2799
|
}, [e])];
|
|
2798
2800
|
}
|
|
2799
2801
|
let Bu = "p";
|
|
2800
2802
|
function Hu(t, e) {
|
|
2801
|
-
let r =
|
|
2803
|
+
let r = Pt(), n = _u(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
|
|
2802
2804
|
ae(() => l.register(a), [a, l.register]);
|
|
2803
2805
|
let i = n || !1, f = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
|
|
2804
2806
|
return de()({ ourProps: s, theirProps: o, slot: f, defaultTag: Bu, name: l.name || "Description" });
|
|
@@ -2842,25 +2844,25 @@ let Ku = new zu(() => Na(() => [], { ADD(t) {
|
|
|
2842
2844
|
return r.splice(e, 1), r;
|
|
2843
2845
|
} }));
|
|
2844
2846
|
function ot(t, e) {
|
|
2845
|
-
let r = Ku.get(e), n =
|
|
2847
|
+
let r = Ku.get(e), n = Pt(), a = ka(r);
|
|
2846
2848
|
if (ae(() => {
|
|
2847
2849
|
if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
|
|
2848
2850
|
}, [r, t]), !t) return !1;
|
|
2849
2851
|
let o = a.indexOf(n), l = a.length;
|
|
2850
2852
|
return o === -1 && (o = l, l += 1), o === l - 1;
|
|
2851
2853
|
}
|
|
2852
|
-
let
|
|
2854
|
+
let Wr = /* @__PURE__ */ new Map(), St = /* @__PURE__ */ new Map();
|
|
2853
2855
|
function Kn(t) {
|
|
2854
2856
|
var e;
|
|
2855
|
-
let r = (e =
|
|
2856
|
-
return
|
|
2857
|
+
let r = (e = St.get(t)) != null ? e : 0;
|
|
2858
|
+
return St.set(t, r + 1), r !== 0 ? () => Xn(t) : (Wr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
|
|
2857
2859
|
}
|
|
2858
2860
|
function Xn(t) {
|
|
2859
2861
|
var e;
|
|
2860
|
-
let r = (e =
|
|
2861
|
-
if (r === 1 ?
|
|
2862
|
-
let n =
|
|
2863
|
-
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert,
|
|
2862
|
+
let r = (e = St.get(t)) != null ? e : 1;
|
|
2863
|
+
if (r === 1 ? St.delete(t) : St.set(t, r - 1), r !== 1) return;
|
|
2864
|
+
let n = Wr.get(t);
|
|
2865
|
+
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Wr.delete(t));
|
|
2864
2866
|
}
|
|
2865
2867
|
function Xu(t, { allowed: e, disallowed: r } = {}) {
|
|
2866
2868
|
let n = ot(t, "inert-others");
|
|
@@ -2872,7 +2874,7 @@ function Xu(t, { allowed: e, disallowed: r } = {}) {
|
|
|
2872
2874
|
let u = (o = e == null ? void 0 : e()) != null ? o : [];
|
|
2873
2875
|
for (let i of u) {
|
|
2874
2876
|
if (!i) continue;
|
|
2875
|
-
let f =
|
|
2877
|
+
let f = Jt(i);
|
|
2876
2878
|
if (!f) continue;
|
|
2877
2879
|
let s = i.parentElement;
|
|
2878
2880
|
for (; s && s !== f.body; ) {
|
|
@@ -2904,10 +2906,10 @@ function Ju(t, e, r) {
|
|
|
2904
2906
|
return () => o.dispose();
|
|
2905
2907
|
}, [e, n, t]);
|
|
2906
2908
|
}
|
|
2907
|
-
let
|
|
2908
|
-
var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}),
|
|
2909
|
+
let Yt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Qu = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
2910
|
+
var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Ur = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Ur || {}), Zu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Zu || {});
|
|
2909
2911
|
function es(t = document.body) {
|
|
2910
|
-
return t == null ? [] : Array.from(t.querySelectorAll(
|
|
2912
|
+
return t == null ? [] : Array.from(t.querySelectorAll(Yt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2911
2913
|
}
|
|
2912
2914
|
function ts(t = document.body) {
|
|
2913
2915
|
return t == null ? [] : Array.from(t.querySelectorAll(Qu)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
@@ -2915,12 +2917,12 @@ function ts(t = document.body) {
|
|
|
2915
2917
|
var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
|
|
2916
2918
|
function rs(t, e = 0) {
|
|
2917
2919
|
var r;
|
|
2918
|
-
return t === ((r =
|
|
2919
|
-
return t.matches(
|
|
2920
|
+
return t === ((r = Jt(t)) == null ? void 0 : r.body) ? !1 : Ie(e, { 0() {
|
|
2921
|
+
return t.matches(Yt);
|
|
2920
2922
|
}, 1() {
|
|
2921
2923
|
let n = t;
|
|
2922
2924
|
for (; n !== null; ) {
|
|
2923
|
-
if (n.matches(
|
|
2925
|
+
if (n.matches(Yt)) return !0;
|
|
2924
2926
|
n = n.parentElement;
|
|
2925
2927
|
}
|
|
2926
2928
|
return !1;
|
|
@@ -2948,7 +2950,7 @@ function is(t, e = (r) => r) {
|
|
|
2948
2950
|
return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
2949
2951
|
});
|
|
2950
2952
|
}
|
|
2951
|
-
function
|
|
2953
|
+
function xt(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
|
|
2952
2954
|
let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? is(t) : t : e & 64 ? ts(t) : es(t);
|
|
2953
2955
|
a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((d) => d != null && "current" in d ? (d == null ? void 0 : d.current) === w : d === w))), n = n ?? o.activeElement;
|
|
2954
2956
|
let u = (() => {
|
|
@@ -3032,8 +3034,8 @@ function ss(t, e, r) {
|
|
|
3032
3034
|
if (!(Math.abs(f.x - u.current.x) >= Jn || Math.abs(f.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
|
|
3033
3035
|
}, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
3034
3036
|
}
|
|
3035
|
-
function
|
|
3036
|
-
return J(() =>
|
|
3037
|
+
function $t(...t) {
|
|
3038
|
+
return J(() => Jt(...t), [...t]);
|
|
3037
3039
|
}
|
|
3038
3040
|
function Ua(t, e, r, n) {
|
|
3039
3041
|
let a = qe(r);
|
|
@@ -3161,7 +3163,7 @@ function gs(t) {
|
|
|
3161
3163
|
return e;
|
|
3162
3164
|
}
|
|
3163
3165
|
function bs(t, e, r, n) {
|
|
3164
|
-
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = ms(t && a ? 3 : 0), f = k(!1), s = k(!1), h =
|
|
3166
|
+
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = ms(t && a ? 3 : 0), f = k(!1), s = k(!1), h = en();
|
|
3165
3167
|
return ae(() => {
|
|
3166
3168
|
var v;
|
|
3167
3169
|
if (t) {
|
|
@@ -3209,7 +3211,7 @@ function Ss(t, { inFlight: e, prepare: r }) {
|
|
|
3209
3211
|
let n = t.style.transition;
|
|
3210
3212
|
t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
|
|
3211
3213
|
}
|
|
3212
|
-
function
|
|
3214
|
+
function rn(t, e) {
|
|
3213
3215
|
let r = k([]), n = U(t);
|
|
3214
3216
|
Y(() => {
|
|
3215
3217
|
let a = [...r.current];
|
|
@@ -3219,17 +3221,17 @@ function tn(t, e) {
|
|
|
3219
3221
|
}
|
|
3220
3222
|
}, [n, ...e]);
|
|
3221
3223
|
}
|
|
3222
|
-
let
|
|
3223
|
-
|
|
3224
|
+
let Zt = fe(null);
|
|
3225
|
+
Zt.displayName = "OpenClosedContext";
|
|
3224
3226
|
var me = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(me || {});
|
|
3225
|
-
function
|
|
3226
|
-
return ie(
|
|
3227
|
+
function er() {
|
|
3228
|
+
return ie(Zt);
|
|
3227
3229
|
}
|
|
3228
3230
|
function xs({ value: t, children: e }) {
|
|
3229
|
-
return A.createElement(
|
|
3231
|
+
return A.createElement(Zt.Provider, { value: t }, e);
|
|
3230
3232
|
}
|
|
3231
3233
|
function Os({ children: t }) {
|
|
3232
|
-
return A.createElement(
|
|
3234
|
+
return A.createElement(Zt.Provider, { value: null }, t);
|
|
3233
3235
|
}
|
|
3234
3236
|
function Ps(t) {
|
|
3235
3237
|
function e() {
|
|
@@ -3242,14 +3244,14 @@ Ps(() => {
|
|
|
3242
3244
|
function t(e) {
|
|
3243
3245
|
if (!(e.target instanceof HTMLElement) || e.target === document.body || $e[0] === e.target) return;
|
|
3244
3246
|
let r = e.target;
|
|
3245
|
-
r = r.closest(
|
|
3247
|
+
r = r.closest(Yt), $e.unshift(r ?? e.target), $e = $e.filter((n) => n != null && n.isConnected), $e.splice(10);
|
|
3246
3248
|
}
|
|
3247
3249
|
window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
|
|
3248
3250
|
});
|
|
3249
3251
|
function Ba(t) {
|
|
3250
3252
|
let e = U(t), r = k(!1);
|
|
3251
3253
|
Y(() => (r.current = !1, () => {
|
|
3252
|
-
r.current = !0,
|
|
3254
|
+
r.current = !0, Qt(() => {
|
|
3253
3255
|
r.current && e();
|
|
3254
3256
|
});
|
|
3255
3257
|
}), [e]);
|
|
@@ -3259,7 +3261,7 @@ function As() {
|
|
|
3259
3261
|
return "useSyncExternalStore" in ht ? ((e) => e.useSyncExternalStore)(ht)(() => () => {
|
|
3260
3262
|
}, () => !1, () => !t) : !1;
|
|
3261
3263
|
}
|
|
3262
|
-
function
|
|
3264
|
+
function Rt() {
|
|
3263
3265
|
let t = As(), [e, r] = ht.useState(Ve.isHandoffComplete);
|
|
3264
3266
|
return e && Ve.isHandoffComplete === !1 && r(!1), ht.useEffect(() => {
|
|
3265
3267
|
e !== !0 && r(!0);
|
|
@@ -3273,7 +3275,7 @@ function ea(t) {
|
|
|
3273
3275
|
return A.createElement(Ha.Provider, { value: t.force }, t.children);
|
|
3274
3276
|
}
|
|
3275
3277
|
function $s(t) {
|
|
3276
|
-
let e = Ts(), r = ie(qa), n =
|
|
3278
|
+
let e = Ts(), r = ie(qa), n = $t(t), [a, o] = Q(() => {
|
|
3277
3279
|
var l;
|
|
3278
3280
|
if (!e && r !== null) return (l = r.current) != null ? l : null;
|
|
3279
3281
|
if (Ve.isServer) return null;
|
|
@@ -3292,10 +3294,10 @@ function $s(t) {
|
|
|
3292
3294
|
let Va = he, Rs = le(function(t, e) {
|
|
3293
3295
|
let r = t, n = k(null), a = Se(Wu((h) => {
|
|
3294
3296
|
n.current = h;
|
|
3295
|
-
}), e), o =
|
|
3297
|
+
}), e), o = $t(n), l = $s(n), [u] = Q(() => {
|
|
3296
3298
|
var h;
|
|
3297
3299
|
return Ve.isServer ? null : (h = o == null ? void 0 : o.createElement("div")) != null ? h : null;
|
|
3298
|
-
}), i = ie(
|
|
3300
|
+
}), i = ie(Br), f = Rt();
|
|
3299
3301
|
ae(() => {
|
|
3300
3302
|
!l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
|
|
3301
3303
|
}, [l, u]), ae(() => {
|
|
@@ -3311,22 +3313,22 @@ function Fs(t, e) {
|
|
|
3311
3313
|
let r = Se(e), { enabled: n = !0, ...a } = t, o = de();
|
|
3312
3314
|
return n ? A.createElement(Rs, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
|
|
3313
3315
|
}
|
|
3314
|
-
let
|
|
3315
|
-
function
|
|
3316
|
+
let Is = he, qa = fe(null);
|
|
3317
|
+
function Cs(t, e) {
|
|
3316
3318
|
let { target: r, ...n } = t, a = { ref: Se(e) }, o = de();
|
|
3317
|
-
return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag:
|
|
3319
|
+
return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Is, name: "Popover.Group" }));
|
|
3318
3320
|
}
|
|
3319
|
-
let
|
|
3321
|
+
let Br = fe(null);
|
|
3320
3322
|
function Ms() {
|
|
3321
|
-
let t = ie(
|
|
3323
|
+
let t = ie(Br), e = k([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
|
|
3322
3324
|
let l = e.current.indexOf(o);
|
|
3323
3325
|
l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
|
|
3324
3326
|
}), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
|
|
3325
3327
|
return [e, J(() => function({ children: o }) {
|
|
3326
|
-
return A.createElement(
|
|
3328
|
+
return A.createElement(Br.Provider, { value: a }, o);
|
|
3327
3329
|
}, [a])];
|
|
3328
3330
|
}
|
|
3329
|
-
let _s = le(Fs), Ga = le(
|
|
3331
|
+
let _s = le(Fs), Ga = le(Cs), Ds = Object.assign(_s, { Group: Ga });
|
|
3330
3332
|
function Ns(t, e = typeof document < "u" ? document.defaultView : null, r) {
|
|
3331
3333
|
let n = ot(t, "escape");
|
|
3332
3334
|
Ua(e, "keydown", (a) => {
|
|
@@ -3345,7 +3347,7 @@ function ks() {
|
|
|
3345
3347
|
}, [e]), r;
|
|
3346
3348
|
}
|
|
3347
3349
|
function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
|
|
3348
|
-
let n =
|
|
3350
|
+
let n = $t(r), a = U(() => {
|
|
3349
3351
|
var o, l;
|
|
3350
3352
|
let u = [];
|
|
3351
3353
|
for (let i of t) i !== null && (i instanceof HTMLElement ? u.push(i) : "current" in i && i.current instanceof HTMLElement && u.push(i.current));
|
|
@@ -3358,10 +3360,10 @@ function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
|
|
|
3358
3360
|
let Ya = fe(null);
|
|
3359
3361
|
function ta({ children: t, node: e }) {
|
|
3360
3362
|
let [r, n] = Q(null), a = za(e ?? r);
|
|
3361
|
-
return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(
|
|
3363
|
+
return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(Lr, { features: Gt.Hidden, ref: (o) => {
|
|
3362
3364
|
var l, u;
|
|
3363
3365
|
if (o) {
|
|
3364
|
-
for (let i of (u = (l =
|
|
3366
|
+
for (let i of (u = (l = Jt(o)) == null ? void 0 : l.querySelectorAll("html > *, body > *")) != null ? u : []) if (i !== document.body && i !== document.head && i instanceof HTMLElement && i != null && i.contains(o)) {
|
|
3365
3367
|
n(i);
|
|
3366
3368
|
break;
|
|
3367
3369
|
}
|
|
@@ -3372,7 +3374,7 @@ function za(t = null) {
|
|
|
3372
3374
|
var e;
|
|
3373
3375
|
return (e = ie(Ya)) != null ? e : t;
|
|
3374
3376
|
}
|
|
3375
|
-
function
|
|
3377
|
+
function nn() {
|
|
3376
3378
|
let t = k(!1);
|
|
3377
3379
|
return ae(() => (t.current = !0, () => {
|
|
3378
3380
|
t.current = !1;
|
|
@@ -3396,21 +3398,21 @@ let Ws = "div";
|
|
|
3396
3398
|
var We = ((t) => (t[t.None = 0] = "None", t[t.InitialFocus = 1] = "InitialFocus", t[t.TabLock = 2] = "TabLock", t[t.FocusLock = 4] = "FocusLock", t[t.RestoreFocus = 8] = "RestoreFocus", t[t.AutoFocus = 16] = "AutoFocus", t))(We || {});
|
|
3397
3399
|
function Us(t, e) {
|
|
3398
3400
|
let r = k(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
|
|
3399
|
-
|
|
3400
|
-
let f =
|
|
3401
|
+
Rt() || (u = 0);
|
|
3402
|
+
let f = $t(r);
|
|
3401
3403
|
qs(u, { ownerDocument: f });
|
|
3402
3404
|
let s = Gs(u, { ownerDocument: f, container: r, initialFocus: a, initialFocusFallback: o });
|
|
3403
3405
|
Ys(u, { ownerDocument: f, container: r, containers: l, previousActiveElement: s });
|
|
3404
3406
|
let h = Ls(), v = U((g) => {
|
|
3405
3407
|
let b = r.current;
|
|
3406
3408
|
b && ((S) => S())(() => {
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
+
Ie(h.current, { [mt.Forwards]: () => {
|
|
3410
|
+
xt(b, Pe.First, { skipElements: [g.relatedTarget, o] });
|
|
3409
3411
|
}, [mt.Backwards]: () => {
|
|
3410
|
-
|
|
3412
|
+
xt(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
|
|
3411
3413
|
} });
|
|
3412
3414
|
});
|
|
3413
|
-
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), d =
|
|
3415
|
+
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), d = en(), y = k(!1), p = { ref: n, onKeyDown(g) {
|
|
3414
3416
|
g.key == "Tab" && (y.current = !0, d.requestAnimationFrame(() => {
|
|
3415
3417
|
y.current = !1;
|
|
3416
3418
|
}));
|
|
@@ -3419,15 +3421,15 @@ function Us(t, e) {
|
|
|
3419
3421
|
let b = Ka(l);
|
|
3420
3422
|
r.current instanceof HTMLElement && b.add(r.current);
|
|
3421
3423
|
let S = g.relatedTarget;
|
|
3422
|
-
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ?
|
|
3424
|
+
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? xt(r.current, Ie(h.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && Ae(g.target)));
|
|
3423
3425
|
} }, m = de();
|
|
3424
|
-
return A.createElement(A.Fragment, null, w && A.createElement(
|
|
3426
|
+
return A.createElement(A.Fragment, null, w && A.createElement(Lr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: Gt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ws, name: "FocusTrap" }), w && A.createElement(Lr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: Gt.Focusable }));
|
|
3425
3427
|
}
|
|
3426
3428
|
let Bs = le(Us), Hs = Object.assign(Bs, { features: We });
|
|
3427
3429
|
function Vs(t = !0) {
|
|
3428
3430
|
let e = k($e.slice());
|
|
3429
|
-
return
|
|
3430
|
-
n === !0 && r === !1 &&
|
|
3431
|
+
return rn(([r], [n]) => {
|
|
3432
|
+
n === !0 && r === !1 && Qt(() => {
|
|
3431
3433
|
e.current.splice(0);
|
|
3432
3434
|
}), n === !1 && r === !0 && (e.current = $e.slice());
|
|
3433
3435
|
}, [t, $e, e]), U(() => {
|
|
@@ -3437,22 +3439,22 @@ function Vs(t = !0) {
|
|
|
3437
3439
|
}
|
|
3438
3440
|
function qs(t, { ownerDocument: e }) {
|
|
3439
3441
|
let r = !!(t & 8), n = Vs(r);
|
|
3440
|
-
|
|
3442
|
+
rn(() => {
|
|
3441
3443
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
|
|
3442
3444
|
}, [r]), Ba(() => {
|
|
3443
3445
|
r && Ae(n());
|
|
3444
3446
|
});
|
|
3445
3447
|
}
|
|
3446
3448
|
function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
|
|
3447
|
-
let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u =
|
|
3448
|
-
return
|
|
3449
|
+
let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = nn();
|
|
3450
|
+
return rn(() => {
|
|
3449
3451
|
if (t === 0) return;
|
|
3450
3452
|
if (!l) {
|
|
3451
3453
|
a != null && a.current && Ae(a.current);
|
|
3452
3454
|
return;
|
|
3453
3455
|
}
|
|
3454
3456
|
let i = r.current;
|
|
3455
|
-
i &&
|
|
3457
|
+
i && Qt(() => {
|
|
3456
3458
|
if (!u.current) return;
|
|
3457
3459
|
let f = e == null ? void 0 : e.activeElement;
|
|
3458
3460
|
if (n != null && n.current) {
|
|
@@ -3467,8 +3469,8 @@ function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3467
3469
|
if (n != null && n.current) Ae(n.current);
|
|
3468
3470
|
else {
|
|
3469
3471
|
if (t & 16) {
|
|
3470
|
-
if (
|
|
3471
|
-
} else if (
|
|
3472
|
+
if (xt(i, Pe.First | Pe.AutoFocus) !== Ur.Error) return;
|
|
3473
|
+
} else if (xt(i, Pe.First) !== Ur.Error) return;
|
|
3472
3474
|
if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
|
|
3473
3475
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
3474
3476
|
}
|
|
@@ -3477,7 +3479,7 @@ function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3477
3479
|
}, [a, l, t]), o;
|
|
3478
3480
|
}
|
|
3479
3481
|
function Ys(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
|
|
3480
|
-
let o =
|
|
3482
|
+
let o = nn(), l = !!(t & 4);
|
|
3481
3483
|
Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
|
|
3482
3484
|
if (!l || !o.current) return;
|
|
3483
3485
|
let i = Ka(n);
|
|
@@ -3496,34 +3498,34 @@ function Ja(t) {
|
|
|
3496
3498
|
var e;
|
|
3497
3499
|
return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : Za) !== he || A.Children.count(t.children) === 1;
|
|
3498
3500
|
}
|
|
3499
|
-
let
|
|
3500
|
-
|
|
3501
|
+
let tr = fe(null);
|
|
3502
|
+
tr.displayName = "TransitionContext";
|
|
3501
3503
|
var zs = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(zs || {});
|
|
3502
3504
|
function Ks() {
|
|
3503
|
-
let t = ie(
|
|
3505
|
+
let t = ie(tr);
|
|
3504
3506
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3505
3507
|
return t;
|
|
3506
3508
|
}
|
|
3507
3509
|
function Xs() {
|
|
3508
|
-
let t = ie(
|
|
3510
|
+
let t = ie(rr);
|
|
3509
3511
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3510
3512
|
return t;
|
|
3511
3513
|
}
|
|
3512
|
-
let
|
|
3513
|
-
|
|
3514
|
-
function
|
|
3515
|
-
return "children" in t ?
|
|
3514
|
+
let rr = fe(null);
|
|
3515
|
+
rr.displayName = "NestingContext";
|
|
3516
|
+
function nr(t) {
|
|
3517
|
+
return "children" in t ? nr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
|
|
3516
3518
|
}
|
|
3517
3519
|
function Qa(t, e) {
|
|
3518
|
-
let r = qe(t), n = k([]), a =
|
|
3520
|
+
let r = qe(t), n = k([]), a = nn(), o = en(), l = U((w, d = Fe.Hidden) => {
|
|
3519
3521
|
let y = n.current.findIndex(({ el: p }) => p === w);
|
|
3520
|
-
y !== -1 && (
|
|
3522
|
+
y !== -1 && (Ie(d, { [Fe.Unmount]() {
|
|
3521
3523
|
n.current.splice(y, 1);
|
|
3522
3524
|
}, [Fe.Hidden]() {
|
|
3523
3525
|
n.current[y].state = "hidden";
|
|
3524
3526
|
} }), o.microTask(() => {
|
|
3525
3527
|
var p;
|
|
3526
|
-
!
|
|
3528
|
+
!nr(n) && a.current && ((p = r.current) == null || p.call(r));
|
|
3527
3529
|
}));
|
|
3528
3530
|
}), u = U((w) => {
|
|
3529
3531
|
let d = n.current.find(({ el: y }) => y === w);
|
|
@@ -3542,7 +3544,7 @@ function Qa(t, e) {
|
|
|
3542
3544
|
});
|
|
3543
3545
|
return J(() => ({ children: n, register: u, unregister: l, onStart: h, onStop: v, wait: f, chains: s }), [u, l, n, h, v, s, f]);
|
|
3544
3546
|
}
|
|
3545
|
-
let Za = he, eo =
|
|
3547
|
+
let Za = he, eo = qt.RenderStrategy;
|
|
3546
3548
|
function Js(t, e) {
|
|
3547
3549
|
var r, n;
|
|
3548
3550
|
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: f, enterFrom: s, enterTo: h, entered: v, leave: w, leaveFrom: d, leaveTo: y, ...p } = t, [m, g] = Q(null), b = k(null), S = Ja(t), O = Se(...S ? [b, e, g] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = Ks(), [j, z] = Q(M ? "visible" : "hidden"), V = Xs(), { register: $, unregister: T } = V;
|
|
@@ -3552,10 +3554,10 @@ function Js(t, e) {
|
|
|
3552
3554
|
z("visible");
|
|
3553
3555
|
return;
|
|
3554
3556
|
}
|
|
3555
|
-
return
|
|
3557
|
+
return Ie(j, { hidden: () => T(b), visible: () => $(b) });
|
|
3556
3558
|
}
|
|
3557
3559
|
}, [j, b, $, T, M, _]);
|
|
3558
|
-
let D =
|
|
3560
|
+
let D = Rt();
|
|
3559
3561
|
ae(() => {
|
|
3560
3562
|
if (S && D && j === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3561
3563
|
}, [b, j, D, S]);
|
|
@@ -3571,20 +3573,20 @@ function Js(t, e) {
|
|
|
3571
3573
|
let xe = Ne ? "enter" : "leave";
|
|
3572
3574
|
ge.current = !1, te.onStop(b, xe, (Oe) => {
|
|
3573
3575
|
Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
|
|
3574
|
-
}), xe === "leave" && !
|
|
3576
|
+
}), xe === "leave" && !nr(te) && (z("hidden"), T(b));
|
|
3575
3577
|
});
|
|
3576
3578
|
Y(() => {
|
|
3577
3579
|
S && a || (ye(M), q(M));
|
|
3578
3580
|
}, [M, S, a]);
|
|
3579
|
-
let _e = !(!a || !S || !D || ue), [, ee] = bs(_e, m, M, { start: ye, end: q }),
|
|
3581
|
+
let _e = !(!a || !S || !D || ue), [, ee] = bs(_e, m, M, { start: ye, end: q }), or = je({ ref: O, className: ((n = jr(p.className, pe && f, pe && s, ee.enter && f, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && d, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...gs(ee) }), De = 0;
|
|
3580
3582
|
j === "visible" && (De |= me.Open), j === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
|
|
3581
3583
|
let lt = de();
|
|
3582
|
-
return A.createElement(
|
|
3584
|
+
return A.createElement(rr.Provider, { value: te }, A.createElement(xs, { value: De }, lt({ ourProps: or, theirProps: p, defaultTag: Za, features: eo, visible: j === "visible", name: "Transition.Child" })));
|
|
3583
3585
|
}
|
|
3584
3586
|
function Qs(t, e) {
|
|
3585
3587
|
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = k(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
|
|
3586
|
-
|
|
3587
|
-
let f =
|
|
3588
|
+
Rt();
|
|
3589
|
+
let f = er();
|
|
3588
3590
|
if (r === void 0 && f !== null && (r = (f & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3589
3591
|
let [s, h] = Q(r ? "visible" : "hidden"), v = Qa(() => {
|
|
3590
3592
|
r || h("hidden");
|
|
@@ -3594,7 +3596,7 @@ function Qs(t, e) {
|
|
|
3594
3596
|
}, [y, r]);
|
|
3595
3597
|
let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
|
|
3596
3598
|
ae(() => {
|
|
3597
|
-
r ? h("visible") : !
|
|
3599
|
+
r ? h("visible") : !nr(v) && l.current !== null && h("hidden");
|
|
3598
3600
|
}, [r, v]);
|
|
3599
3601
|
let m = { unmount: a }, g = U(() => {
|
|
3600
3602
|
var O;
|
|
@@ -3603,37 +3605,37 @@ function Qs(t, e) {
|
|
|
3603
3605
|
var O;
|
|
3604
3606
|
w && d(!1), (O = t.beforeLeave) == null || O.call(t);
|
|
3605
3607
|
}), S = de();
|
|
3606
|
-
return A.createElement(
|
|
3608
|
+
return A.createElement(rr.Provider, { value: v }, A.createElement(tr.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
|
|
3607
3609
|
}
|
|
3608
3610
|
function Zs(t, e) {
|
|
3609
|
-
let r = ie(
|
|
3610
|
-
return A.createElement(A.Fragment, null, !r && n ? A.createElement(
|
|
3611
|
+
let r = ie(tr) !== null, n = er() !== null;
|
|
3612
|
+
return A.createElement(A.Fragment, null, !r && n ? A.createElement(Hr, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
|
|
3611
3613
|
}
|
|
3612
|
-
let
|
|
3614
|
+
let Hr = le(Qs), to = le(Js), it = le(Zs), ro = Object.assign(Hr, { Child: it, Root: Hr });
|
|
3613
3615
|
var ec = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(ec || {}), tc = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(tc || {});
|
|
3614
3616
|
let rc = { 0(t, e) {
|
|
3615
3617
|
return t.titleId === e.id ? t : { ...t, titleId: e.id };
|
|
3616
|
-
} },
|
|
3617
|
-
|
|
3618
|
-
function
|
|
3619
|
-
let e = ie(
|
|
3618
|
+
} }, an = fe(null);
|
|
3619
|
+
an.displayName = "DialogContext";
|
|
3620
|
+
function ar(t) {
|
|
3621
|
+
let e = ie(an);
|
|
3620
3622
|
if (e === null) {
|
|
3621
3623
|
let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
|
|
3622
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
3624
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, ar), r;
|
|
3623
3625
|
}
|
|
3624
3626
|
return e;
|
|
3625
3627
|
}
|
|
3626
3628
|
function nc(t, e) {
|
|
3627
|
-
return
|
|
3629
|
+
return Ie(e.type, rc, t, e);
|
|
3628
3630
|
}
|
|
3629
3631
|
let ra = le(function(t, e) {
|
|
3630
|
-
let r =
|
|
3632
|
+
let r = Pt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: f = !1, unmount: s = !1, ...h } = t, v = k(!1);
|
|
3631
3633
|
u = function() {
|
|
3632
3634
|
return u === "dialog" || u === "alertdialog" ? u : (v.current || (v.current = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
3633
3635
|
}();
|
|
3634
|
-
let w =
|
|
3636
|
+
let w = er();
|
|
3635
3637
|
a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
|
|
3636
|
-
let d = k(null), y = Se(d, e), p =
|
|
3638
|
+
let d = k(null), y = Se(d, e), p = $t(d), m = a ? 0 : 1, [g, b] = No(nc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = Rt() ? m === 0 : !1, [M, W] = Ms(), H = { get current() {
|
|
3637
3639
|
var q;
|
|
3638
3640
|
return (q = g.panelRef.current) != null ? q : d.current;
|
|
3639
3641
|
} }, j = za(), { resolveContainers: z } = js({ mainTreeNode: j, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
|
|
@@ -3651,10 +3653,10 @@ let ra = le(function(t, e) {
|
|
|
3651
3653
|
let [$, T] = Uu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), pe = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": f ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": g.titleId, "aria-describedby": $, unmount: s }, ge = !ks(), te = We.None;
|
|
3652
3654
|
_ && !f && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
|
|
3653
3655
|
let ye = de();
|
|
3654
|
-
return A.createElement(Os, null, A.createElement(ea, { force: !0 }, A.createElement(Ds, null, A.createElement(
|
|
3655
|
-
}), ac = "div", oc =
|
|
3656
|
+
return A.createElement(Os, null, A.createElement(ea, { force: !0 }, A.createElement(Ds, null, A.createElement(an.Provider, { value: D }, A.createElement(Ga, { target: d }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Hs, { initialFocus: l, initialFocusFallback: d, containers: z, features: te }, A.createElement(Yu, { value: S }, ye({ ourProps: pe, theirProps: h, slot: ue, defaultTag: ac, features: oc, visible: m === 0, name: "Dialog" })))))))))));
|
|
3657
|
+
}), ac = "div", oc = qt.RenderStrategy | qt.Static;
|
|
3656
3658
|
function ic(t, e) {
|
|
3657
|
-
let { transition: r = !1, open: n, ...a } = t, o =
|
|
3659
|
+
let { transition: r = !1, open: n, ...a } = t, o = er(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
|
|
3658
3660
|
if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
3659
3661
|
if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
3660
3662
|
if (!u) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
@@ -3664,26 +3666,26 @@ function ic(t, e) {
|
|
|
3664
3666
|
}
|
|
3665
3667
|
let lc = "div";
|
|
3666
3668
|
function uc(t, e) {
|
|
3667
|
-
let r =
|
|
3669
|
+
let r = Pt(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = ar("Dialog.Panel"), f = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), h = U((p) => {
|
|
3668
3670
|
p.stopPropagation();
|
|
3669
3671
|
}), v = { ref: f, id: n, onClick: h }, w = a ? it : he, d = a ? { unmount: u } : {}, y = de();
|
|
3670
3672
|
return A.createElement(w, { ...d }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: lc, name: "Dialog.Panel" }));
|
|
3671
3673
|
}
|
|
3672
3674
|
let sc = "div";
|
|
3673
3675
|
function cc(t, e) {
|
|
3674
|
-
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] =
|
|
3676
|
+
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = ar("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, f = r ? { unmount: o } : {}, s = de();
|
|
3675
3677
|
return A.createElement(i, { ...f }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: sc, name: "Dialog.Backdrop" }));
|
|
3676
3678
|
}
|
|
3677
3679
|
let fc = "h2";
|
|
3678
3680
|
function dc(t, e) {
|
|
3679
|
-
let r =
|
|
3681
|
+
let r = Pt(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = ar("Dialog.Title"), u = Se(e);
|
|
3680
3682
|
Y(() => (l(n), () => l(null)), [n, l]);
|
|
3681
3683
|
let i = J(() => ({ open: o === 0 }), [o]), f = { ref: u, id: n };
|
|
3682
3684
|
return de()({ ourProps: f, theirProps: a, slot: i, defaultTag: fc, name: "Dialog.Title" });
|
|
3683
3685
|
}
|
|
3684
|
-
let pc = le(ic),
|
|
3686
|
+
let pc = le(ic), on = le(uc);
|
|
3685
3687
|
le(cc);
|
|
3686
|
-
let yc = le(dc), vc = Object.assign(pc, { Panel:
|
|
3688
|
+
let yc = le(dc), vc = Object.assign(pc, { Panel: on, Title: yc, Description: qu });
|
|
3687
3689
|
function no({ onClick: t }) {
|
|
3688
3690
|
return /* @__PURE__ */ R.jsxs(
|
|
3689
3691
|
"button",
|
|
@@ -3720,7 +3722,7 @@ function no({ onClick: t }) {
|
|
|
3720
3722
|
const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
|
|
3721
3723
|
"div",
|
|
3722
3724
|
{
|
|
3723
|
-
className:
|
|
3725
|
+
className: Vt("im-modal-positioner flex min-h-full justify-center", {
|
|
3724
3726
|
"items-start": e.position === "top",
|
|
3725
3727
|
"items-center": e.position === "center",
|
|
3726
3728
|
"items-end": e.position === "bottom"
|
|
@@ -3733,7 +3735,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3733
3735
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
3734
3736
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
3735
3737
|
afterLeave: t.afterLeave,
|
|
3736
|
-
className:
|
|
3738
|
+
className: Vt("im-modal-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
|
|
3737
3739
|
"sm:max-w-sm": e.maxWidth === "sm",
|
|
3738
3740
|
"sm:max-w-md": e.maxWidth === "md",
|
|
3739
3741
|
"sm:max-w-md md:max-w-lg": e.maxWidth === "lg",
|
|
@@ -3745,7 +3747,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3745
3747
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
|
|
3746
3748
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3747
3749
|
}),
|
|
3748
|
-
children: /* @__PURE__ */ R.jsxs(
|
|
3750
|
+
children: /* @__PURE__ */ R.jsxs(on, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3749
3751
|
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
|
|
3750
3752
|
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3751
3753
|
] })
|
|
@@ -3755,7 +3757,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3755
3757
|
) }), hc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
|
|
3756
3758
|
"div",
|
|
3757
3759
|
{
|
|
3758
|
-
className:
|
|
3760
|
+
className: Vt("im-slideover-positioner flex min-h-full items-center", {
|
|
3759
3761
|
"justify-start": e.position === "left",
|
|
3760
3762
|
"justify-end": e.position === "right"
|
|
3761
3763
|
}),
|
|
@@ -3767,7 +3769,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3767
3769
|
leaveFrom: "opacity-100 translate-x-0",
|
|
3768
3770
|
leaveTo: `opacity-0 ${e.position === "left" ? "-translate-x-full" : "translate-x-full"}`,
|
|
3769
3771
|
afterLeave: t.afterLeave,
|
|
3770
|
-
className:
|
|
3772
|
+
className: Vt("im-slideover-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
|
|
3771
3773
|
"sm:max-w-sm": e.maxWidth === "sm",
|
|
3772
3774
|
"sm:max-w-md": e.maxWidth === "md",
|
|
3773
3775
|
"sm:max-w-md md:max-w-lg": e.maxWidth === "lg",
|
|
@@ -3779,14 +3781,14 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3779
3781
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
|
|
3780
3782
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3781
3783
|
}),
|
|
3782
|
-
children: /* @__PURE__ */ R.jsxs(
|
|
3784
|
+
children: /* @__PURE__ */ R.jsxs(on, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3783
3785
|
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
|
|
3784
3786
|
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3785
3787
|
] })
|
|
3786
3788
|
}
|
|
3787
3789
|
)
|
|
3788
3790
|
}
|
|
3789
|
-
) }), gc =
|
|
3791
|
+
) }), gc = Vr(({ name: t, children: e, ...r }, n) => {
|
|
3790
3792
|
const a = (l) => typeof e == "function" ? e(l) : e, o = k(null);
|
|
3791
3793
|
return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
|
|
3792
3794
|
Fa,
|
|
@@ -3914,7 +3916,7 @@ const Rc = ({
|
|
|
3914
3916
|
children: d,
|
|
3915
3917
|
...y
|
|
3916
3918
|
}) => {
|
|
3917
|
-
const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } =
|
|
3919
|
+
const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Xt(), _ = J(() => w ?? qr("navigate"), [w]), M = {}, W = {};
|
|
3918
3920
|
Object.keys(y).forEach((T) => {
|
|
3919
3921
|
zn.includes(T) || (T.startsWith("on") && typeof y[T] == "function" ? T.toLowerCase() in window ? M[T] = y[T] : W[T] = y[T] : M[T] = y[T]);
|
|
3920
3922
|
});
|
|
@@ -3957,7 +3959,7 @@ const Rc = ({
|
|
|
3957
3959
|
);
|
|
3958
3960
|
};
|
|
3959
3961
|
function Fc() {
|
|
3960
|
-
return
|
|
3962
|
+
return Xt().stack[$a()] ?? null;
|
|
3961
3963
|
}
|
|
3962
3964
|
export {
|
|
3963
3965
|
Fa as HeadlessModal,
|
|
@@ -3965,11 +3967,11 @@ export {
|
|
|
3965
3967
|
Rc as ModalLink,
|
|
3966
3968
|
Ru as ModalRoot,
|
|
3967
3969
|
$u as ModalStackProvider,
|
|
3968
|
-
|
|
3970
|
+
qr as getConfig,
|
|
3969
3971
|
Pc as putConfig,
|
|
3970
3972
|
Ac as renderApp,
|
|
3971
3973
|
Oc as resetConfig,
|
|
3972
3974
|
Fc as useModal,
|
|
3973
3975
|
$a as useModalIndex,
|
|
3974
|
-
|
|
3976
|
+
Xt as useModalStack
|
|
3975
3977
|
};
|