@inertiaui/modal-react 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/inertiaui-modal.js +670 -666
- package/dist/inertiaui-modal.umd.cjs +17 -17
- package/package.json +1 -1
- package/src/HeadlessModal.jsx +13 -13
- package/src/Modal.jsx +7 -7
- package/src/ModalContent.jsx +17 -17
- package/src/ModalRenderer.jsx +1 -1
- package/src/ModalRoot.jsx +16 -16
- package/src/SlideoverContent.jsx +18 -18
- package/src/inertiauiModal.js +2 -1
- package/src/useModal.js +6 -0
package/dist/inertiaui-modal.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ye = (t, e, r) =>
|
|
1
|
+
var Fo = Object.defineProperty;
|
|
2
|
+
var Co = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var ye = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import * as mt from "react";
|
|
5
|
-
import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as
|
|
5
|
+
import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Io, useRef as j, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as xt, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
|
|
6
6
|
import jt from "axios";
|
|
7
7
|
import { router as yt } from "@inertiajs/react";
|
|
8
|
-
import { createPortal as
|
|
8
|
+
import { createPortal as jo } from "react-dom";
|
|
9
9
|
const Ct = {
|
|
10
10
|
type: "modal",
|
|
11
11
|
navigate: !1,
|
|
@@ -26,7 +26,7 @@ const Ct = {
|
|
|
26
26
|
position: "right"
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
class
|
|
29
|
+
class Lo {
|
|
30
30
|
constructor() {
|
|
31
31
|
this.config = {}, this.reset();
|
|
32
32
|
}
|
|
@@ -61,12 +61,12 @@ class jo {
|
|
|
61
61
|
return n;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
const Yt = new
|
|
65
|
-
var
|
|
66
|
-
function
|
|
64
|
+
const Yt = new Lo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
|
|
65
|
+
var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
66
|
+
function Wo(t) {
|
|
67
67
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Uo(t) {
|
|
70
70
|
if (t.__esModule) return t;
|
|
71
71
|
var e = t.default;
|
|
72
72
|
if (typeof e == "function") {
|
|
@@ -85,7 +85,7 @@ function Wo(t) {
|
|
|
85
85
|
});
|
|
86
86
|
}), r;
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Tr = { exports: {} }, ct = {};
|
|
89
89
|
/**
|
|
90
90
|
* @license React
|
|
91
91
|
* react-jsx-runtime.production.min.js
|
|
@@ -96,16 +96,16 @@ var Ar = { exports: {} }, ct = {};
|
|
|
96
96
|
* LICENSE file in the root directory of this source tree.
|
|
97
97
|
*/
|
|
98
98
|
var wn;
|
|
99
|
-
function
|
|
99
|
+
function Bo() {
|
|
100
100
|
if (wn) return ct;
|
|
101
101
|
wn = 1;
|
|
102
102
|
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 };
|
|
103
103
|
function l(u, i, d) {
|
|
104
|
-
var s,
|
|
104
|
+
var s, g = {}, v = null, w = null;
|
|
105
105
|
d !== void 0 && (v = "" + d), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
|
|
106
|
-
for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (
|
|
107
|
-
if (u && u.defaultProps) for (s in i = u.defaultProps, i)
|
|
108
|
-
return { $$typeof: e, type: u, key: v, ref: w, props:
|
|
106
|
+
for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (g[s] = i[s]);
|
|
107
|
+
if (u && u.defaultProps) for (s in i = u.defaultProps, i) g[s] === void 0 && (g[s] = i[s]);
|
|
108
|
+
return { $$typeof: e, type: u, key: v, ref: w, props: g, _owner: a.current };
|
|
109
109
|
}
|
|
110
110
|
return ct.Fragment = r, ct.jsx = l, ct.jsxs = l, ct;
|
|
111
111
|
}
|
|
@@ -120,9 +120,9 @@ var ft = {};
|
|
|
120
120
|
* LICENSE file in the root directory of this source tree.
|
|
121
121
|
*/
|
|
122
122
|
var En;
|
|
123
|
-
function
|
|
123
|
+
function Ho() {
|
|
124
124
|
return En || (En = 1, process.env.NODE_ENV !== "production" && function() {
|
|
125
|
-
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"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"),
|
|
125
|
+
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"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
|
|
126
126
|
function p(c) {
|
|
127
127
|
if (c === null || typeof c != "object")
|
|
128
128
|
return null;
|
|
@@ -130,7 +130,7 @@ function Bo() {
|
|
|
130
130
|
return typeof E == "function" ? E : null;
|
|
131
131
|
}
|
|
132
132
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
133
|
-
function
|
|
133
|
+
function h(c) {
|
|
134
134
|
{
|
|
135
135
|
for (var E = arguments.length, x = new Array(E > 1 ? E - 1 : 0), P = 1; P < E; P++)
|
|
136
136
|
x[P - 1] = arguments[P];
|
|
@@ -150,7 +150,7 @@ function Bo() {
|
|
|
150
150
|
var S = !1, O = !1, _ = !1, M = !1, W = !1, H;
|
|
151
151
|
H = Symbol.for("react.module.reference");
|
|
152
152
|
function k(c) {
|
|
153
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === d || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof ===
|
|
153
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === d || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === g || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
|
|
154
154
|
// types supported by any Flight configuration anywhere since
|
|
155
155
|
// we don't know which Flight build this will end up being used
|
|
156
156
|
// with.
|
|
@@ -169,7 +169,7 @@ function Bo() {
|
|
|
169
169
|
function $(c) {
|
|
170
170
|
if (c == null)
|
|
171
171
|
return null;
|
|
172
|
-
if (typeof c.tag == "number" &&
|
|
172
|
+
if (typeof c.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
173
173
|
return c.displayName || c.name || null;
|
|
174
174
|
if (typeof c == "string")
|
|
175
175
|
return c;
|
|
@@ -197,7 +197,7 @@ function Bo() {
|
|
|
197
197
|
return V(x._context) + ".Provider";
|
|
198
198
|
case i:
|
|
199
199
|
return Y(c, c.render, "ForwardRef");
|
|
200
|
-
case
|
|
200
|
+
case g:
|
|
201
201
|
var P = c.displayName || null;
|
|
202
202
|
return P !== null ? P : $(c.type) || "Memo";
|
|
203
203
|
case v: {
|
|
@@ -215,7 +215,7 @@ function Bo() {
|
|
|
215
215
|
function ee() {
|
|
216
216
|
}
|
|
217
217
|
ee.__reactDisabledLog = !0;
|
|
218
|
-
function
|
|
218
|
+
function ar() {
|
|
219
219
|
{
|
|
220
220
|
if (D === 0) {
|
|
221
221
|
ue = console.log, de = console.info, ge = console.warn, te = console.error, pe = console.group, q = console.groupCollapsed, _e = console.groupEnd;
|
|
@@ -270,7 +270,7 @@ function Bo() {
|
|
|
270
270
|
})
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
D < 0 &&
|
|
273
|
+
D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
var lt = m.ReactCurrentDispatcher, Ne;
|
|
@@ -289,8 +289,8 @@ function Bo() {
|
|
|
289
289
|
}
|
|
290
290
|
var Oe = !1, $t;
|
|
291
291
|
{
|
|
292
|
-
var
|
|
293
|
-
$t = new
|
|
292
|
+
var ao = typeof WeakMap == "function" ? WeakMap : Map;
|
|
293
|
+
$t = new ao();
|
|
294
294
|
}
|
|
295
295
|
function on(c, E) {
|
|
296
296
|
if (!c || Oe)
|
|
@@ -305,7 +305,7 @@ function Bo() {
|
|
|
305
305
|
var N = Error.prepareStackTrace;
|
|
306
306
|
Error.prepareStackTrace = void 0;
|
|
307
307
|
var L;
|
|
308
|
-
L = lt.current, lt.current = null,
|
|
308
|
+
L = lt.current, lt.current = null, ar();
|
|
309
309
|
try {
|
|
310
310
|
if (E) {
|
|
311
311
|
var I = function() {
|
|
@@ -363,10 +363,10 @@ function Bo() {
|
|
|
363
363
|
var Ye = c ? c.displayName || c.name : "", ke = Ye ? xe(Ye) : "";
|
|
364
364
|
return typeof c == "function" && $t.set(c, ke), ke;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function oo(c, E, x) {
|
|
367
367
|
return on(c, !1);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function io(c) {
|
|
370
370
|
var E = c.prototype;
|
|
371
371
|
return !!(E && E.isReactComponent);
|
|
372
372
|
}
|
|
@@ -374,7 +374,7 @@ function Bo() {
|
|
|
374
374
|
if (c == null)
|
|
375
375
|
return "";
|
|
376
376
|
if (typeof c == "function")
|
|
377
|
-
return on(c,
|
|
377
|
+
return on(c, io(c));
|
|
378
378
|
if (typeof c == "string")
|
|
379
379
|
return xe(c);
|
|
380
380
|
switch (c) {
|
|
@@ -386,8 +386,8 @@ function Bo() {
|
|
|
386
386
|
if (typeof c == "object")
|
|
387
387
|
switch (c.$$typeof) {
|
|
388
388
|
case i:
|
|
389
|
-
return
|
|
390
|
-
case
|
|
389
|
+
return oo(c.render);
|
|
390
|
+
case g:
|
|
391
391
|
return Rt(c.type, E, x);
|
|
392
392
|
case v: {
|
|
393
393
|
var P = c, N = P._payload, L = P._init;
|
|
@@ -407,7 +407,7 @@ function Bo() {
|
|
|
407
407
|
} else
|
|
408
408
|
un.setExtraStackFrame(null);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function lo(c, E, x, P, N) {
|
|
411
411
|
{
|
|
412
412
|
var L = Function.call.bind(ut);
|
|
413
413
|
for (var I in c)
|
|
@@ -422,21 +422,21 @@ function Bo() {
|
|
|
422
422
|
} catch (G) {
|
|
423
423
|
F = G;
|
|
424
424
|
}
|
|
425
|
-
F && !(F instanceof Error) && (Ft(N),
|
|
425
|
+
F && !(F instanceof Error) && (Ft(N), h("%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, I, typeof F), Ft(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ft(N), h("Failed %s type: %s", x, F.message), Ft(null));
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
430
|
-
function
|
|
431
|
-
return
|
|
429
|
+
var uo = Array.isArray;
|
|
430
|
+
function or(c) {
|
|
431
|
+
return uo(c);
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function so(c) {
|
|
434
434
|
{
|
|
435
435
|
var E = typeof Symbol == "function" && Symbol.toStringTag, x = E && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
436
436
|
return x;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function co(c) {
|
|
440
440
|
try {
|
|
441
441
|
return sn(c), !1;
|
|
442
442
|
} catch {
|
|
@@ -447,17 +447,17 @@ function Bo() {
|
|
|
447
447
|
return "" + c;
|
|
448
448
|
}
|
|
449
449
|
function cn(c) {
|
|
450
|
-
if (
|
|
451
|
-
return
|
|
450
|
+
if (co(c))
|
|
451
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), sn(c);
|
|
452
452
|
}
|
|
453
|
-
var st = m.ReactCurrentOwner,
|
|
453
|
+
var st = m.ReactCurrentOwner, fo = {
|
|
454
454
|
key: !0,
|
|
455
455
|
ref: !0,
|
|
456
456
|
__self: !0,
|
|
457
457
|
__source: !0
|
|
458
|
-
}, fn, dn,
|
|
459
|
-
|
|
460
|
-
function
|
|
458
|
+
}, fn, dn, ir;
|
|
459
|
+
ir = {};
|
|
460
|
+
function po(c) {
|
|
461
461
|
if (ut.call(c, "ref")) {
|
|
462
462
|
var E = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
463
463
|
if (E && E.isReactWarning)
|
|
@@ -465,7 +465,7 @@ function Bo() {
|
|
|
465
465
|
}
|
|
466
466
|
return c.ref !== void 0;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function yo(c) {
|
|
469
469
|
if (ut.call(c, "key")) {
|
|
470
470
|
var E = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
471
471
|
if (E && E.isReactWarning)
|
|
@@ -473,16 +473,16 @@ function Bo() {
|
|
|
473
473
|
}
|
|
474
474
|
return c.key !== void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function vo(c, E) {
|
|
477
477
|
if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
|
|
478
478
|
var x = $(st.current.type);
|
|
479
|
-
|
|
479
|
+
ir[x] || (h('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), ir[x] = !0);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function mo(c, E) {
|
|
483
483
|
{
|
|
484
484
|
var x = function() {
|
|
485
|
-
fn || (fn = !0,
|
|
485
|
+
fn || (fn = !0, h("%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));
|
|
486
486
|
};
|
|
487
487
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
488
488
|
get: x,
|
|
@@ -490,10 +490,10 @@ function Bo() {
|
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function ho(c, E) {
|
|
494
494
|
{
|
|
495
495
|
var x = function() {
|
|
496
|
-
dn || (dn = !0,
|
|
496
|
+
dn || (dn = !0, h("%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));
|
|
497
497
|
};
|
|
498
498
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
499
499
|
get: x,
|
|
@@ -501,7 +501,7 @@ function Bo() {
|
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
var
|
|
504
|
+
var go = function(c, E, x, P, N, L, I) {
|
|
505
505
|
var F = {
|
|
506
506
|
// This tag allows us to uniquely identify this as a React Element
|
|
507
507
|
$$typeof: e,
|
|
@@ -530,12 +530,12 @@ function Bo() {
|
|
|
530
530
|
value: N
|
|
531
531
|
}), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
|
|
532
532
|
};
|
|
533
|
-
function
|
|
533
|
+
function bo(c, E, x, P, N) {
|
|
534
534
|
{
|
|
535
535
|
var L, I = {}, F = null, ne = null;
|
|
536
|
-
x !== void 0 && (cn(x), F = "" + x),
|
|
536
|
+
x !== void 0 && (cn(x), F = "" + x), yo(E) && (cn(E.key), F = "" + E.key), po(E) && (ne = E.ref, vo(E, N));
|
|
537
537
|
for (L in E)
|
|
538
|
-
ut.call(E, L) && !
|
|
538
|
+
ut.call(E, L) && !fo.hasOwnProperty(L) && (I[L] = E[L]);
|
|
539
539
|
if (c && c.defaultProps) {
|
|
540
540
|
var G = c.defaultProps;
|
|
541
541
|
for (L in G)
|
|
@@ -543,12 +543,12 @@ function Bo() {
|
|
|
543
543
|
}
|
|
544
544
|
if (F || ne) {
|
|
545
545
|
var z = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
546
|
-
F &&
|
|
546
|
+
F && mo(I, z), ne && ho(I, z);
|
|
547
547
|
}
|
|
548
|
-
return
|
|
548
|
+
return go(c, F, ne, N, P, st.current, I);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var lr = m.ReactCurrentOwner, pn = m.ReactDebugCurrentFrame;
|
|
552
552
|
function Ge(c) {
|
|
553
553
|
if (c) {
|
|
554
554
|
var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
|
|
@@ -556,15 +556,15 @@ function Bo() {
|
|
|
556
556
|
} else
|
|
557
557
|
pn.setExtraStackFrame(null);
|
|
558
558
|
}
|
|
559
|
-
var
|
|
560
|
-
|
|
561
|
-
function
|
|
559
|
+
var ur;
|
|
560
|
+
ur = !1;
|
|
561
|
+
function sr(c) {
|
|
562
562
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
563
563
|
}
|
|
564
564
|
function yn() {
|
|
565
565
|
{
|
|
566
|
-
if (
|
|
567
|
-
var c = $(
|
|
566
|
+
if (lr.current) {
|
|
567
|
+
var c = $(lr.current.type);
|
|
568
568
|
if (c)
|
|
569
569
|
return `
|
|
570
570
|
|
|
@@ -573,11 +573,11 @@ Check the render method of \`` + c + "`.";
|
|
|
573
573
|
return "";
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function wo(c) {
|
|
577
577
|
return "";
|
|
578
578
|
}
|
|
579
579
|
var vn = {};
|
|
580
|
-
function
|
|
580
|
+
function Eo(c) {
|
|
581
581
|
{
|
|
582
582
|
var E = yn();
|
|
583
583
|
if (!E) {
|
|
@@ -594,34 +594,34 @@ Check the top-level render call using <` + x + ">.");
|
|
|
594
594
|
if (!c._store || c._store.validated || c.key != null)
|
|
595
595
|
return;
|
|
596
596
|
c._store.validated = !0;
|
|
597
|
-
var x =
|
|
597
|
+
var x = Eo(E);
|
|
598
598
|
if (vn[x])
|
|
599
599
|
return;
|
|
600
600
|
vn[x] = !0;
|
|
601
601
|
var P = "";
|
|
602
|
-
c && c._owner && c._owner !==
|
|
602
|
+
c && c._owner && c._owner !== lr.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), h('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);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function hn(c, E) {
|
|
606
606
|
{
|
|
607
607
|
if (typeof c != "object")
|
|
608
608
|
return;
|
|
609
|
-
if (
|
|
609
|
+
if (or(c))
|
|
610
610
|
for (var x = 0; x < c.length; x++) {
|
|
611
611
|
var P = c[x];
|
|
612
|
-
|
|
612
|
+
sr(P) && mn(P, E);
|
|
613
613
|
}
|
|
614
|
-
else if (
|
|
614
|
+
else if (sr(c))
|
|
615
615
|
c._store && (c._store.validated = !0);
|
|
616
616
|
else if (c) {
|
|
617
617
|
var N = p(c);
|
|
618
618
|
if (typeof N == "function" && N !== c.entries)
|
|
619
619
|
for (var L = N.call(c), I; !(I = L.next()).done; )
|
|
620
|
-
|
|
620
|
+
sr(I.value) && mn(I.value, E);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function So(c) {
|
|
625
625
|
{
|
|
626
626
|
var E = c.type;
|
|
627
627
|
if (E == null || typeof E == "string")
|
|
@@ -631,31 +631,31 @@ Check the top-level render call using <` + x + ">.");
|
|
|
631
631
|
x = E.propTypes;
|
|
632
632
|
else if (typeof E == "object" && (E.$$typeof === i || // Note: Memo only checks outer props here.
|
|
633
633
|
// Inner props are checked in the reconciler.
|
|
634
|
-
E.$$typeof ===
|
|
634
|
+
E.$$typeof === g))
|
|
635
635
|
x = E.propTypes;
|
|
636
636
|
else
|
|
637
637
|
return;
|
|
638
638
|
if (x) {
|
|
639
639
|
var P = $(E);
|
|
640
|
-
|
|
641
|
-
} else if (E.PropTypes !== void 0 && !
|
|
642
|
-
|
|
640
|
+
lo(x, c.props, "prop", P, c);
|
|
641
|
+
} else if (E.PropTypes !== void 0 && !ur) {
|
|
642
|
+
ur = !0;
|
|
643
643
|
var N = $(E);
|
|
644
|
-
|
|
644
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
645
645
|
}
|
|
646
|
-
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved &&
|
|
646
|
+
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function xo(c) {
|
|
650
650
|
{
|
|
651
651
|
for (var E = Object.keys(c.props), x = 0; x < E.length; x++) {
|
|
652
652
|
var P = E[x];
|
|
653
653
|
if (P !== "children" && P !== "key") {
|
|
654
|
-
Ge(c),
|
|
654
|
+
Ge(c), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
|
|
655
655
|
break;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
c.ref !== null && (Ge(c),
|
|
658
|
+
c.ref !== null && (Ge(c), h("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
var gn = {};
|
|
@@ -665,66 +665,66 @@ Check the top-level render call using <` + x + ">.");
|
|
|
665
665
|
if (!I) {
|
|
666
666
|
var F = "";
|
|
667
667
|
(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.");
|
|
668
|
-
var ne =
|
|
668
|
+
var ne = wo();
|
|
669
669
|
ne ? F += ne : F += yn();
|
|
670
670
|
var G;
|
|
671
|
-
c === null ? G = "null" :
|
|
671
|
+
c === null ? G = "null" : or(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, h("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);
|
|
672
672
|
}
|
|
673
|
-
var z =
|
|
673
|
+
var z = bo(c, E, x, N, L);
|
|
674
674
|
if (z == null)
|
|
675
675
|
return z;
|
|
676
676
|
if (I) {
|
|
677
677
|
var se = E.children;
|
|
678
678
|
if (se !== void 0)
|
|
679
679
|
if (P)
|
|
680
|
-
if (
|
|
680
|
+
if (or(se)) {
|
|
681
681
|
for (var Ye = 0; Ye < se.length; Ye++)
|
|
682
682
|
hn(se[Ye], c);
|
|
683
683
|
Object.freeze && Object.freeze(se);
|
|
684
684
|
} else
|
|
685
|
-
|
|
685
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
686
686
|
else
|
|
687
687
|
hn(se, c);
|
|
688
688
|
}
|
|
689
689
|
if (ut.call(E, "key")) {
|
|
690
|
-
var ke = $(c), oe = Object.keys(E).filter(function(
|
|
691
|
-
return
|
|
692
|
-
}),
|
|
693
|
-
if (!gn[ke +
|
|
694
|
-
var
|
|
695
|
-
|
|
690
|
+
var ke = $(c), oe = Object.keys(E).filter(function(Ro) {
|
|
691
|
+
return Ro !== "key";
|
|
692
|
+
}), cr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
693
|
+
if (!gn[ke + cr]) {
|
|
694
|
+
var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
|
|
695
|
+
h(`A props object containing a "key" prop is being spread into JSX:
|
|
696
696
|
let props = %s;
|
|
697
697
|
<%s {...props} />
|
|
698
698
|
React keys must be passed directly to JSX without using spread:
|
|
699
699
|
let props = %s;
|
|
700
|
-
<%s key={someKey} {...props} />`,
|
|
700
|
+
<%s key={someKey} {...props} />`, cr, ke, $o, ke), gn[ke + cr] = !0;
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
return c === n ?
|
|
703
|
+
return c === n ? xo(z) : So(z), z;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Oo(c, E, x) {
|
|
707
707
|
return bn(c, E, x, !0);
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Po(c, E, x) {
|
|
710
710
|
return bn(c, E, x, !1);
|
|
711
711
|
}
|
|
712
|
-
var
|
|
713
|
-
ft.Fragment = n, ft.jsx =
|
|
712
|
+
var Ao = Po, To = Oo;
|
|
713
|
+
ft.Fragment = n, ft.jsx = Ao, ft.jsxs = To;
|
|
714
714
|
}()), ft;
|
|
715
715
|
}
|
|
716
|
-
process.env.NODE_ENV === "production" ?
|
|
717
|
-
var R =
|
|
718
|
-
function
|
|
716
|
+
process.env.NODE_ENV === "production" ? Tr.exports = Bo() : Tr.exports = Ho();
|
|
717
|
+
var R = Tr.exports;
|
|
718
|
+
function Vo(t, e) {
|
|
719
719
|
return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
|
|
720
720
|
}
|
|
721
721
|
function aa(t, e) {
|
|
722
722
|
return Array.isArray(t) ? t.filter((r) => e.includes(r)) : e.reduce((r, n) => (n in t && (r[n] = t[n]), r), {});
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function qo(t) {
|
|
725
725
|
return Array.isArray(t) ? t.filter((e) => e !== null) : Object.keys(t).reduce((e, r) => (r in t && t[r] !== null && (e[r] = t[r]), e), {});
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Go(t, e = 3, r = 10) {
|
|
728
728
|
return new Promise((n, a) => {
|
|
729
729
|
const o = t();
|
|
730
730
|
if (o) {
|
|
@@ -738,44 +738,44 @@ function qo(t, e = 3, r = 10) {
|
|
|
738
738
|
}, r);
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
var
|
|
742
|
-
return
|
|
741
|
+
var Yo = function(e) {
|
|
742
|
+
return zo(e) && !Ko(e);
|
|
743
743
|
};
|
|
744
|
-
function
|
|
744
|
+
function zo(t) {
|
|
745
745
|
return !!t && typeof t == "object";
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Ko(t) {
|
|
748
748
|
var e = Object.prototype.toString.call(t);
|
|
749
|
-
return e === "[object RegExp]" || e === "[object Date]" ||
|
|
750
|
-
}
|
|
751
|
-
var Ko = typeof Symbol == "function" && Symbol.for, Xo = Ko ? Symbol.for("react.element") : 60103;
|
|
752
|
-
function Jo(t) {
|
|
753
|
-
return t.$$typeof === Xo;
|
|
749
|
+
return e === "[object RegExp]" || e === "[object Date]" || Qo(t);
|
|
754
750
|
}
|
|
751
|
+
var Xo = typeof Symbol == "function" && Symbol.for, Jo = Xo ? Symbol.for("react.element") : 60103;
|
|
755
752
|
function Qo(t) {
|
|
753
|
+
return t.$$typeof === Jo;
|
|
754
|
+
}
|
|
755
|
+
function Zo(t) {
|
|
756
756
|
return Array.isArray(t) ? [] : {};
|
|
757
757
|
}
|
|
758
758
|
function St(t, e) {
|
|
759
|
-
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(
|
|
759
|
+
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(Zo(t), t, e) : t;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function ei(t, e, r) {
|
|
762
762
|
return t.concat(e).map(function(n) {
|
|
763
763
|
return St(n, r);
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function ti(t, e) {
|
|
767
767
|
if (!e.customMerge)
|
|
768
768
|
return Ze;
|
|
769
769
|
var r = e.customMerge(t);
|
|
770
770
|
return typeof r == "function" ? r : Ze;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function ri(t) {
|
|
773
773
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
|
|
774
774
|
return Object.propertyIsEnumerable.call(t, e);
|
|
775
775
|
}) : [];
|
|
776
776
|
}
|
|
777
777
|
function Sn(t) {
|
|
778
|
-
return Object.keys(t).concat(
|
|
778
|
+
return Object.keys(t).concat(ri(t));
|
|
779
779
|
}
|
|
780
780
|
function oa(t, e) {
|
|
781
781
|
try {
|
|
@@ -784,21 +784,21 @@ function oa(t, e) {
|
|
|
784
784
|
return !1;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function ni(t, e) {
|
|
788
788
|
return oa(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function ai(t, e, r) {
|
|
791
791
|
var n = {};
|
|
792
792
|
return r.isMergeableObject(t) && Sn(t).forEach(function(a) {
|
|
793
793
|
n[a] = St(t[a], r);
|
|
794
794
|
}), Sn(e).forEach(function(a) {
|
|
795
|
-
|
|
795
|
+
ni(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ti(a, r)(t[a], e[a], r) : n[a] = St(e[a], r));
|
|
796
796
|
}), n;
|
|
797
797
|
}
|
|
798
798
|
function Ze(t, e, r) {
|
|
799
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
799
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ei, r.isMergeableObject = r.isMergeableObject || Yo, r.cloneUnlessOtherwiseSpecified = St;
|
|
800
800
|
var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
|
|
801
|
-
return o ? n ? r.arrayMerge(t, e, r) :
|
|
801
|
+
return o ? n ? r.arrayMerge(t, e, r) : ai(t, e, r) : St(e, r);
|
|
802
802
|
}
|
|
803
803
|
Ze.all = function(e, r) {
|
|
804
804
|
if (!Array.isArray(e))
|
|
@@ -807,9 +807,9 @@ Ze.all = function(e, r) {
|
|
|
807
807
|
return Ze(n, a, r);
|
|
808
808
|
}, {});
|
|
809
809
|
};
|
|
810
|
-
var
|
|
811
|
-
const
|
|
812
|
-
var
|
|
810
|
+
var oi = Ze, ii = oi;
|
|
811
|
+
const li = /* @__PURE__ */ Wo(ii);
|
|
812
|
+
var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = SyntaxError, Ot = TypeError, di = URIError, pi = function() {
|
|
813
813
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
814
814
|
return !1;
|
|
815
815
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -832,32 +832,32 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
|
|
|
832
832
|
return !1;
|
|
833
833
|
}
|
|
834
834
|
return !0;
|
|
835
|
-
}, xn = typeof Symbol < "u" && Symbol,
|
|
836
|
-
return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
837
|
-
},
|
|
835
|
+
}, xn = typeof Symbol < "u" && Symbol, yi = pi, vi = function() {
|
|
836
|
+
return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yi();
|
|
837
|
+
}, fr = {
|
|
838
838
|
__proto__: null,
|
|
839
839
|
foo: {}
|
|
840
|
-
},
|
|
841
|
-
return { __proto__:
|
|
842
|
-
},
|
|
840
|
+
}, mi = Object, hi = function() {
|
|
841
|
+
return { __proto__: fr }.foo === fr.foo && !(fr instanceof mi);
|
|
842
|
+
}, gi = "Function.prototype.bind called on incompatible ", bi = Object.prototype.toString, wi = Math.max, Ei = "[object Function]", On = function(e, r) {
|
|
843
843
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
844
844
|
n[a] = e[a];
|
|
845
845
|
for (var o = 0; o < r.length; o += 1)
|
|
846
846
|
n[o + e.length] = r[o];
|
|
847
847
|
return n;
|
|
848
|
-
},
|
|
848
|
+
}, Si = function(e, r) {
|
|
849
849
|
for (var n = [], a = r, o = 0; a < e.length; a += 1, o += 1)
|
|
850
850
|
n[o] = e[a];
|
|
851
851
|
return n;
|
|
852
|
-
},
|
|
852
|
+
}, xi = function(t, e) {
|
|
853
853
|
for (var r = "", n = 0; n < t.length; n += 1)
|
|
854
854
|
r += t[n], n + 1 < t.length && (r += e);
|
|
855
855
|
return r;
|
|
856
|
-
},
|
|
856
|
+
}, Oi = function(e) {
|
|
857
857
|
var r = this;
|
|
858
|
-
if (typeof r != "function" ||
|
|
859
|
-
throw new TypeError(
|
|
860
|
-
for (var n =
|
|
858
|
+
if (typeof r != "function" || bi.apply(r) !== Ei)
|
|
859
|
+
throw new TypeError(gi + r);
|
|
860
|
+
for (var n = Si(arguments, 1), a, o = function() {
|
|
861
861
|
if (this instanceof a) {
|
|
862
862
|
var s = r.apply(
|
|
863
863
|
this,
|
|
@@ -869,15 +869,15 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
|
|
|
869
869
|
e,
|
|
870
870
|
On(n, arguments)
|
|
871
871
|
);
|
|
872
|
-
}, l =
|
|
872
|
+
}, l = wi(0, r.length - n.length), u = [], i = 0; i < l; i++)
|
|
873
873
|
u[i] = "$" + i;
|
|
874
|
-
if (a = Function("binder", "return function (" +
|
|
874
|
+
if (a = Function("binder", "return function (" + xi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
875
875
|
var d = function() {
|
|
876
876
|
};
|
|
877
877
|
d.prototype = r.prototype, a.prototype = new d(), d.prototype = null;
|
|
878
878
|
}
|
|
879
879
|
return a;
|
|
880
|
-
},
|
|
880
|
+
}, Pi = Oi, qr = Function.prototype.bind || Pi, Ai = Function.prototype.call, Ti = Object.prototype.hasOwnProperty, $i = qr, Ri = $i.call(Ai, Ti), C, Fi = ui, Ci = si, Ii = ci, Mi = fi, et = ia, Qe = Ot, _i = di, la = Function, dr = function(t) {
|
|
881
881
|
try {
|
|
882
882
|
return la('"use strict"; return (' + t + ").constructor;")();
|
|
883
883
|
} catch {
|
|
@@ -889,21 +889,21 @@ if (Be)
|
|
|
889
889
|
} catch {
|
|
890
890
|
Be = null;
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var pr = function() {
|
|
893
893
|
throw new Qe();
|
|
894
|
-
},
|
|
894
|
+
}, Di = Be ? function() {
|
|
895
895
|
try {
|
|
896
|
-
return arguments.callee,
|
|
896
|
+
return arguments.callee, pr;
|
|
897
897
|
} catch {
|
|
898
898
|
try {
|
|
899
899
|
return Be(arguments, "callee").get;
|
|
900
900
|
} catch {
|
|
901
|
-
return
|
|
901
|
+
return pr;
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
}() :
|
|
904
|
+
}() : pr, Ke = vi(), Ni = hi(), Z = Object.getPrototypeOf || (Ni ? function(t) {
|
|
905
905
|
return t.__proto__;
|
|
906
|
-
} : null), Je = {},
|
|
906
|
+
} : null), Je = {}, ki = typeof Uint8Array > "u" || !Z ? C : Z(Uint8Array), He = {
|
|
907
907
|
__proto__: null,
|
|
908
908
|
"%AggregateError%": typeof AggregateError > "u" ? C : AggregateError,
|
|
909
909
|
"%Array%": Array,
|
|
@@ -925,10 +925,10 @@ var dr = function() {
|
|
|
925
925
|
"%decodeURIComponent%": decodeURIComponent,
|
|
926
926
|
"%encodeURI%": encodeURI,
|
|
927
927
|
"%encodeURIComponent%": encodeURIComponent,
|
|
928
|
-
"%Error%":
|
|
928
|
+
"%Error%": Fi,
|
|
929
929
|
"%eval%": eval,
|
|
930
930
|
// eslint-disable-line no-eval
|
|
931
|
-
"%EvalError%":
|
|
931
|
+
"%EvalError%": Ci,
|
|
932
932
|
"%Float32Array%": typeof Float32Array > "u" ? C : Float32Array,
|
|
933
933
|
"%Float64Array%": typeof Float64Array > "u" ? C : Float64Array,
|
|
934
934
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? C : FinalizationRegistry,
|
|
@@ -950,8 +950,8 @@ var dr = function() {
|
|
|
950
950
|
"%parseInt%": parseInt,
|
|
951
951
|
"%Promise%": typeof Promise > "u" ? C : Promise,
|
|
952
952
|
"%Proxy%": typeof Proxy > "u" ? C : Proxy,
|
|
953
|
-
"%RangeError%":
|
|
954
|
-
"%ReferenceError%":
|
|
953
|
+
"%RangeError%": Ii,
|
|
954
|
+
"%ReferenceError%": Mi,
|
|
955
955
|
"%Reflect%": typeof Reflect > "u" ? C : Reflect,
|
|
956
956
|
"%RegExp%": RegExp,
|
|
957
957
|
"%Set%": typeof Set > "u" ? C : Set,
|
|
@@ -961,14 +961,14 @@ var dr = function() {
|
|
|
961
961
|
"%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : C,
|
|
962
962
|
"%Symbol%": Ke ? Symbol : C,
|
|
963
963
|
"%SyntaxError%": et,
|
|
964
|
-
"%ThrowTypeError%":
|
|
965
|
-
"%TypedArray%":
|
|
964
|
+
"%ThrowTypeError%": Di,
|
|
965
|
+
"%TypedArray%": ki,
|
|
966
966
|
"%TypeError%": Qe,
|
|
967
967
|
"%Uint8Array%": typeof Uint8Array > "u" ? C : Uint8Array,
|
|
968
968
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? C : Uint8ClampedArray,
|
|
969
969
|
"%Uint16Array%": typeof Uint16Array > "u" ? C : Uint16Array,
|
|
970
970
|
"%Uint32Array%": typeof Uint32Array > "u" ? C : Uint32Array,
|
|
971
|
-
"%URIError%":
|
|
971
|
+
"%URIError%": _i,
|
|
972
972
|
"%WeakMap%": typeof WeakMap > "u" ? C : WeakMap,
|
|
973
973
|
"%WeakRef%": typeof WeakRef > "u" ? C : WeakRef,
|
|
974
974
|
"%WeakSet%": typeof WeakSet > "u" ? C : WeakSet
|
|
@@ -977,17 +977,17 @@ if (Z)
|
|
|
977
977
|
try {
|
|
978
978
|
null.error;
|
|
979
979
|
} catch (t) {
|
|
980
|
-
var
|
|
981
|
-
He["%Error.prototype%"] =
|
|
980
|
+
var ji = Z(Z(t));
|
|
981
|
+
He["%Error.prototype%"] = ji;
|
|
982
982
|
}
|
|
983
|
-
var
|
|
983
|
+
var Li = function t(e) {
|
|
984
984
|
var r;
|
|
985
985
|
if (e === "%AsyncFunction%")
|
|
986
|
-
r =
|
|
986
|
+
r = dr("async function () {}");
|
|
987
987
|
else if (e === "%GeneratorFunction%")
|
|
988
|
-
r =
|
|
988
|
+
r = dr("function* () {}");
|
|
989
989
|
else if (e === "%AsyncGeneratorFunction%")
|
|
990
|
-
r =
|
|
990
|
+
r = dr("async function* () {}");
|
|
991
991
|
else if (e === "%AsyncGenerator%") {
|
|
992
992
|
var n = t("%AsyncGeneratorFunction%");
|
|
993
993
|
n && (r = n.prototype);
|
|
@@ -1049,21 +1049,21 @@ var ji = function t(e) {
|
|
|
1049
1049
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1050
1050
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1051
1051
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1052
|
-
}, Pt =
|
|
1052
|
+
}, Pt = qr, Lt = Ri, Wi = Pt.call(Function.call, Array.prototype.concat), Ui = Pt.call(Function.apply, Array.prototype.splice), An = Pt.call(Function.call, String.prototype.replace), Wt = Pt.call(Function.call, String.prototype.slice), Bi = Pt.call(Function.call, RegExp.prototype.exec), Hi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Vi = /\\(\\)?/g, qi = function(e) {
|
|
1053
1053
|
var r = Wt(e, 0, 1), n = Wt(e, -1);
|
|
1054
1054
|
if (r === "%" && n !== "%")
|
|
1055
1055
|
throw new et("invalid intrinsic syntax, expected closing `%`");
|
|
1056
1056
|
if (n === "%" && r !== "%")
|
|
1057
1057
|
throw new et("invalid intrinsic syntax, expected opening `%`");
|
|
1058
1058
|
var a = [];
|
|
1059
|
-
return An(e,
|
|
1060
|
-
a[a.length] = u ? An(i,
|
|
1059
|
+
return An(e, Hi, function(o, l, u, i) {
|
|
1060
|
+
a[a.length] = u ? An(i, Vi, "$1") : l || o;
|
|
1061
1061
|
}), a;
|
|
1062
|
-
},
|
|
1062
|
+
}, Gi = function(e, r) {
|
|
1063
1063
|
var n = e, a;
|
|
1064
1064
|
if (Lt(Pn, n) && (a = Pn[n], n = "%" + a[0] + "%"), Lt(He, n)) {
|
|
1065
1065
|
var o = He[n];
|
|
1066
|
-
if (o === Je && (o =
|
|
1066
|
+
if (o === Je && (o = Li(n)), typeof o > "u" && !r)
|
|
1067
1067
|
throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1068
1068
|
return {
|
|
1069
1069
|
alias: a,
|
|
@@ -1077,15 +1077,15 @@ var ji = function t(e) {
|
|
|
1077
1077
|
throw new Qe("intrinsic name must be a non-empty string");
|
|
1078
1078
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1079
1079
|
throw new Qe('"allowMissing" argument must be a boolean');
|
|
1080
|
-
if (
|
|
1080
|
+
if (Bi(/^%?[^%]*%?$/, e) === null)
|
|
1081
1081
|
throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1082
|
-
var n =
|
|
1083
|
-
d && (a = d[0],
|
|
1084
|
-
for (var s = 1,
|
|
1082
|
+
var n = qi(e), a = n.length > 0 ? n[0] : "", o = Gi("%" + a + "%", r), l = o.name, u = o.value, i = !1, d = o.alias;
|
|
1083
|
+
d && (a = d[0], Ui(n, Wi([0, 1], d)));
|
|
1084
|
+
for (var s = 1, g = !0; s < n.length; s += 1) {
|
|
1085
1085
|
var v = n[s], w = Wt(v, 0, 1), f = Wt(v, -1);
|
|
1086
1086
|
if ((w === '"' || w === "'" || w === "`" || f === '"' || f === "'" || f === "`") && w !== f)
|
|
1087
1087
|
throw new et("property names with quotes must have matching quotes");
|
|
1088
|
-
if ((v === "constructor" || !
|
|
1088
|
+
if ((v === "constructor" || !g) && (i = !0), a += "." + v, l = "%" + a + "%", Lt(He, l))
|
|
1089
1089
|
u = He[l];
|
|
1090
1090
|
else if (u != null) {
|
|
1091
1091
|
if (!(v in u)) {
|
|
@@ -1095,16 +1095,16 @@ var ji = function t(e) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
if (Be && s + 1 >= n.length) {
|
|
1097
1097
|
var y = Be(u, v);
|
|
1098
|
-
|
|
1098
|
+
g = !!y, g && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
|
|
1099
1099
|
} else
|
|
1100
|
-
|
|
1101
|
-
|
|
1100
|
+
g = Lt(u, v), u = u[v];
|
|
1101
|
+
g && !i && (He[l] = u);
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
return u;
|
|
1105
|
-
}, ua = { exports: {} },
|
|
1106
|
-
function
|
|
1107
|
-
if (Tn) return
|
|
1105
|
+
}, ua = { exports: {} }, yr, Tn;
|
|
1106
|
+
function Gr() {
|
|
1107
|
+
if (Tn) return yr;
|
|
1108
1108
|
Tn = 1;
|
|
1109
1109
|
var t = nt, e = t("%Object.defineProperty%", !0) || !1;
|
|
1110
1110
|
if (e)
|
|
@@ -1113,16 +1113,16 @@ function qr() {
|
|
|
1113
1113
|
} catch {
|
|
1114
1114
|
e = !1;
|
|
1115
1115
|
}
|
|
1116
|
-
return
|
|
1116
|
+
return yr = e, yr;
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1118
|
+
var Yi = nt, Nt = Yi("%Object.getOwnPropertyDescriptor%", !0);
|
|
1119
1119
|
if (Nt)
|
|
1120
1120
|
try {
|
|
1121
1121
|
Nt([], "length");
|
|
1122
1122
|
} catch {
|
|
1123
1123
|
Nt = null;
|
|
1124
1124
|
}
|
|
1125
|
-
var sa = Nt, $n =
|
|
1125
|
+
var sa = Nt, $n = Gr(), zi = ia, Xe = Ot, Rn = sa, Ki = function(e, r, n) {
|
|
1126
1126
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
1127
1127
|
throw new Xe("`obj` must be an object or a function`");
|
|
1128
1128
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -1146,30 +1146,30 @@ var sa = Nt, $n = qr(), Yi = ia, Xe = Ot, Rn = sa, zi = function(e, r, n) {
|
|
|
1146
1146
|
else if (u || !a && !o && !l)
|
|
1147
1147
|
e[r] = n;
|
|
1148
1148
|
else
|
|
1149
|
-
throw new
|
|
1150
|
-
},
|
|
1151
|
-
return
|
|
1149
|
+
throw new zi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
1150
|
+
}, $r = Gr(), ca = function() {
|
|
1151
|
+
return !!$r;
|
|
1152
1152
|
};
|
|
1153
1153
|
ca.hasArrayLengthDefineBug = function() {
|
|
1154
|
-
if (
|
|
1154
|
+
if (!$r)
|
|
1155
1155
|
return null;
|
|
1156
1156
|
try {
|
|
1157
|
-
return
|
|
1157
|
+
return $r([], "length", { value: 1 }).length !== 1;
|
|
1158
1158
|
} catch {
|
|
1159
1159
|
return !0;
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
|
-
var
|
|
1162
|
+
var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Ot, Zi = Ji("%Math.floor%"), el = function(e, r) {
|
|
1163
1163
|
if (typeof e != "function")
|
|
1164
1164
|
throw new In("`fn` is not a function");
|
|
1165
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
1165
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || Zi(r) !== r)
|
|
1166
1166
|
throw new In("`length` must be a positive 32-bit integer");
|
|
1167
1167
|
var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
|
|
1168
1168
|
if ("length" in e && Cn) {
|
|
1169
1169
|
var l = Cn(e, "length");
|
|
1170
1170
|
l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
|
|
1171
1171
|
}
|
|
1172
|
-
return (a || o || !n) && (
|
|
1172
|
+
return (a || o || !n) && (Qi ? Fn(
|
|
1173
1173
|
/** @type {Parameters<define>[0]} */
|
|
1174
1174
|
e,
|
|
1175
1175
|
"length",
|
|
@@ -1184,7 +1184,7 @@ var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor
|
|
|
1184
1184
|
)), e;
|
|
1185
1185
|
};
|
|
1186
1186
|
(function(t) {
|
|
1187
|
-
var e =
|
|
1187
|
+
var e = qr, r = nt, n = el, a = Ot, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), d = r("%Math.max%");
|
|
1188
1188
|
t.exports = function(v) {
|
|
1189
1189
|
if (typeof v != "function")
|
|
1190
1190
|
throw new a("a function is required");
|
|
@@ -1200,15 +1200,15 @@ var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor
|
|
|
1200
1200
|
};
|
|
1201
1201
|
i ? i(t.exports, "apply", { value: s }) : t.exports.apply = s;
|
|
1202
1202
|
})(ua);
|
|
1203
|
-
var
|
|
1203
|
+
var tl = ua.exports, fa = nt, da = tl, rl = da(fa("String.prototype.indexOf")), nl = function(e, r) {
|
|
1204
1204
|
var n = fa(e, !!r);
|
|
1205
|
-
return typeof n == "function" &&
|
|
1205
|
+
return typeof n == "function" && rl(e, ".prototype.") > -1 ? da(n) : n;
|
|
1206
1206
|
};
|
|
1207
|
-
const
|
|
1207
|
+
const al = {}, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1208
1208
|
__proto__: null,
|
|
1209
|
-
default:
|
|
1210
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1211
|
-
var
|
|
1209
|
+
default: al
|
|
1210
|
+
}, Symbol.toStringTag, { value: "Module" })), il = /* @__PURE__ */ Uo(ol);
|
|
1211
|
+
var Yr = typeof Map == "function" && Map.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && vr && typeof vr.get == "function" ? vr.get : null, Mn = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Set.prototype.forEach, ll = typeof WeakMap == "function" && WeakMap.prototype, ht = ll ? WeakMap.prototype.has : null, ul = typeof WeakSet == "function" && WeakSet.prototype, gt = ul ? WeakSet.prototype.has : null, sl = typeof WeakRef == "function" && WeakRef.prototype, Dn = sl ? WeakRef.prototype.deref : null, cl = Boolean.prototype.valueOf, fl = Object.prototype.toString, dl = Function.prototype.toString, pl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, yl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, vl = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, hr = Object.getOwnPropertySymbols, Fr = 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, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1212
1212
|
return t.__proto__;
|
|
1213
1213
|
} : null);
|
|
1214
1214
|
function Wn(t, e) {
|
|
@@ -1218,13 +1218,13 @@ function Wn(t, e) {
|
|
|
1218
1218
|
if (typeof t == "number") {
|
|
1219
1219
|
var n = t < 0 ? -jn(-t) : jn(t);
|
|
1220
1220
|
if (n !== t) {
|
|
1221
|
-
var a = String(n), o =
|
|
1221
|
+
var a = String(n), o = Kr.call(e, a.length + 1);
|
|
1222
1222
|
return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
return Re.call(e, r, "$&_");
|
|
1226
1226
|
}
|
|
1227
|
-
var
|
|
1227
|
+
var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a) {
|
|
1228
1228
|
var o = r || {};
|
|
1229
1229
|
if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
1230
1230
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1258,14 +1258,14 @@ var Fr = ol, Un = Fr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
|
|
|
1258
1258
|
}
|
|
1259
1259
|
var s = typeof o.depth > "u" ? 5 : o.depth;
|
|
1260
1260
|
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
|
|
1261
|
-
return
|
|
1262
|
-
var
|
|
1261
|
+
return Ir(e) ? "[Array]" : "[Object]";
|
|
1262
|
+
var g = _l(o, n);
|
|
1263
1263
|
if (typeof a > "u")
|
|
1264
1264
|
a = [];
|
|
1265
1265
|
else if (ha(a, e) >= 0)
|
|
1266
1266
|
return "[Circular]";
|
|
1267
1267
|
function v($, T, D) {
|
|
1268
|
-
if (T && (a =
|
|
1268
|
+
if (T && (a = vl.call(a), a.push(T)), D) {
|
|
1269
1269
|
var ue = {
|
|
1270
1270
|
depth: o.depth
|
|
1271
1271
|
};
|
|
@@ -1274,67 +1274,67 @@ var Fr = ol, Un = Fr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
|
|
|
1274
1274
|
return t($, o, n + 1, a);
|
|
1275
1275
|
}
|
|
1276
1276
|
if (typeof e == "function" && !Hn(e)) {
|
|
1277
|
-
var w =
|
|
1277
|
+
var w = Pl(e), f = It(e, v);
|
|
1278
1278
|
return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (f.length > 0 ? " { " + Ee.call(f, ", ") + " }" : "");
|
|
1279
1279
|
}
|
|
1280
1280
|
if (ma(e)) {
|
|
1281
|
-
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
1281
|
+
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Fr.call(e);
|
|
1282
1282
|
return typeof e == "object" && !tt ? dt(y) : y;
|
|
1283
1283
|
}
|
|
1284
|
-
if (
|
|
1285
|
-
for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [],
|
|
1286
|
-
p += " " + m[
|
|
1284
|
+
if (Cl(e)) {
|
|
1285
|
+
for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], h = 0; h < m.length; h++)
|
|
1286
|
+
p += " " + m[h].name + "=" + va(hl(m[h].value), "double", o);
|
|
1287
1287
|
return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + Nn.call(String(e.nodeName)) + ">", p;
|
|
1288
1288
|
}
|
|
1289
|
-
if (
|
|
1289
|
+
if (Ir(e)) {
|
|
1290
1290
|
if (e.length === 0)
|
|
1291
1291
|
return "[]";
|
|
1292
1292
|
var b = It(e, v);
|
|
1293
|
-
return
|
|
1293
|
+
return g && !Ml(b) ? "[" + Mr(b, g) + "]" : "[ " + Ee.call(b, ", ") + " ]";
|
|
1294
1294
|
}
|
|
1295
|
-
if (
|
|
1295
|
+
if (bl(e)) {
|
|
1296
1296
|
var S = It(e, v);
|
|
1297
1297
|
return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(kn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
|
|
1298
1298
|
}
|
|
1299
1299
|
if (typeof e == "object" && l) {
|
|
1300
|
-
if (Bn && typeof e[Bn] == "function" &&
|
|
1301
|
-
return
|
|
1300
|
+
if (Bn && typeof e[Bn] == "function" && Cr)
|
|
1301
|
+
return Cr(e, { depth: s - n });
|
|
1302
1302
|
if (l !== "symbol" && typeof e.inspect == "function")
|
|
1303
1303
|
return e.inspect();
|
|
1304
1304
|
}
|
|
1305
|
-
if (
|
|
1305
|
+
if (Al(e)) {
|
|
1306
1306
|
var O = [];
|
|
1307
1307
|
return Mn && Mn.call(e, function($, T) {
|
|
1308
1308
|
O.push(v(T, e, !0) + " => " + v($, e));
|
|
1309
|
-
}), Vn("Map", Ut.call(e), O,
|
|
1309
|
+
}), Vn("Map", Ut.call(e), O, g);
|
|
1310
1310
|
}
|
|
1311
|
-
if (
|
|
1311
|
+
if (Rl(e)) {
|
|
1312
1312
|
var _ = [];
|
|
1313
1313
|
return _n && _n.call(e, function($) {
|
|
1314
1314
|
_.push(v($, e));
|
|
1315
|
-
}), Vn("Set", Bt.call(e), _,
|
|
1315
|
+
}), Vn("Set", Bt.call(e), _, g);
|
|
1316
1316
|
}
|
|
1317
|
-
if (Al(e))
|
|
1318
|
-
return hr("WeakMap");
|
|
1319
|
-
if (Rl(e))
|
|
1320
|
-
return hr("WeakSet");
|
|
1321
1317
|
if (Tl(e))
|
|
1322
|
-
return
|
|
1323
|
-
if (
|
|
1318
|
+
return gr("WeakMap");
|
|
1319
|
+
if (Fl(e))
|
|
1320
|
+
return gr("WeakSet");
|
|
1321
|
+
if ($l(e))
|
|
1322
|
+
return gr("WeakRef");
|
|
1323
|
+
if (El(e))
|
|
1324
1324
|
return dt(v(Number(e)));
|
|
1325
|
+
if (xl(e))
|
|
1326
|
+
return dt(v(Rr.call(e)));
|
|
1325
1327
|
if (Sl(e))
|
|
1326
|
-
return dt(
|
|
1327
|
-
if (
|
|
1328
|
-
return dt(sl.call(e));
|
|
1329
|
-
if (bl(e))
|
|
1328
|
+
return dt(cl.call(e));
|
|
1329
|
+
if (wl(e))
|
|
1330
1330
|
return dt(v(String(e)));
|
|
1331
1331
|
if (typeof window < "u" && e === window)
|
|
1332
1332
|
return "{ [object Window] }";
|
|
1333
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
1333
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Ar < "u" && e === Ar)
|
|
1334
1334
|
return "{ [object globalThis] }";
|
|
1335
|
-
if (!
|
|
1336
|
-
var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ?
|
|
1337
|
-
return M.length === 0 ? V + "{}" :
|
|
1335
|
+
if (!gl(e) && !Hn(e)) {
|
|
1336
|
+
var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (k || H ? "[" + Ee.call(kn.call([], k || [], H || []), ": ") + "] " : "");
|
|
1337
|
+
return M.length === 0 ? V + "{}" : g ? V + "{" + Mr(M, g) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
|
|
1338
1338
|
}
|
|
1339
1339
|
return String(e);
|
|
1340
1340
|
};
|
|
@@ -1342,28 +1342,28 @@ function va(t, e, r) {
|
|
|
1342
1342
|
var n = (r.quoteStyle || e) === "double" ? '"' : "'";
|
|
1343
1343
|
return n + t + n;
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function hl(t) {
|
|
1346
1346
|
return Re.call(String(t), /"/g, """);
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function Ir(t) {
|
|
1349
1349
|
return Ie(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function gl(t) {
|
|
1352
1352
|
return Ie(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
|
|
1353
1353
|
}
|
|
1354
1354
|
function Hn(t) {
|
|
1355
1355
|
return Ie(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function bl(t) {
|
|
1358
1358
|
return Ie(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function wl(t) {
|
|
1361
1361
|
return Ie(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function El(t) {
|
|
1364
1364
|
return Ie(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Sl(t) {
|
|
1367
1367
|
return Ie(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
|
|
1368
1368
|
}
|
|
1369
1369
|
function ma(t) {
|
|
@@ -1371,36 +1371,36 @@ function ma(t) {
|
|
|
1371
1371
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1372
1372
|
if (typeof t == "symbol")
|
|
1373
1373
|
return !0;
|
|
1374
|
-
if (!t || typeof t != "object" || !
|
|
1374
|
+
if (!t || typeof t != "object" || !Fr)
|
|
1375
1375
|
return !1;
|
|
1376
1376
|
try {
|
|
1377
|
-
return
|
|
1377
|
+
return Fr.call(t), !0;
|
|
1378
1378
|
} catch {
|
|
1379
1379
|
}
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1383
|
-
if (!t || typeof t != "object" ||
|
|
1382
|
+
function xl(t) {
|
|
1383
|
+
if (!t || typeof t != "object" || !Rr)
|
|
1384
1384
|
return !1;
|
|
1385
1385
|
try {
|
|
1386
|
-
return
|
|
1386
|
+
return Rr.call(t), !0;
|
|
1387
1387
|
} catch {
|
|
1388
1388
|
}
|
|
1389
1389
|
return !1;
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1391
|
+
var Ol = Object.prototype.hasOwnProperty || function(t) {
|
|
1392
1392
|
return t in this;
|
|
1393
1393
|
};
|
|
1394
1394
|
function Te(t, e) {
|
|
1395
|
-
return
|
|
1395
|
+
return Ol.call(t, e);
|
|
1396
1396
|
}
|
|
1397
1397
|
function Ie(t) {
|
|
1398
|
-
return
|
|
1398
|
+
return fl.call(t);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Pl(t) {
|
|
1401
1401
|
if (t.name)
|
|
1402
1402
|
return t.name;
|
|
1403
|
-
var e =
|
|
1403
|
+
var e = pl.call(dl.call(t), /^function\s*([\w$]+)/);
|
|
1404
1404
|
return e ? e[1] : null;
|
|
1405
1405
|
}
|
|
1406
1406
|
function ha(t, e) {
|
|
@@ -1411,7 +1411,7 @@ function ha(t, e) {
|
|
|
1411
1411
|
return r;
|
|
1412
1412
|
return -1;
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function Al(t) {
|
|
1415
1415
|
if (!Ut || !t || typeof t != "object")
|
|
1416
1416
|
return !1;
|
|
1417
1417
|
try {
|
|
@@ -1426,7 +1426,7 @@ function Pl(t) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
return !1;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Tl(t) {
|
|
1430
1430
|
if (!ht || !t || typeof t != "object")
|
|
1431
1431
|
return !1;
|
|
1432
1432
|
try {
|
|
@@ -1441,7 +1441,7 @@ function Al(t) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
return !1;
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function $l(t) {
|
|
1445
1445
|
if (!Dn || !t || typeof t != "object")
|
|
1446
1446
|
return !1;
|
|
1447
1447
|
try {
|
|
@@ -1450,7 +1450,7 @@ function Tl(t) {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
return !1;
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function Rl(t) {
|
|
1454
1454
|
if (!Bt || !t || typeof t != "object")
|
|
1455
1455
|
return !1;
|
|
1456
1456
|
try {
|
|
@@ -1465,7 +1465,7 @@ function $l(t) {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
return !1;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Fl(t) {
|
|
1469
1469
|
if (!gt || !t || typeof t != "object")
|
|
1470
1470
|
return !1;
|
|
1471
1471
|
try {
|
|
@@ -1480,18 +1480,18 @@ function Rl(t) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
return !1;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Cl(t) {
|
|
1484
1484
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
1485
1485
|
}
|
|
1486
1486
|
function ga(t, e) {
|
|
1487
1487
|
if (t.length > e.maxStringLength) {
|
|
1488
1488
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
1489
|
-
return ga(
|
|
1489
|
+
return ga(Kr.call(t, 0, e.maxStringLength), e) + n;
|
|
1490
1490
|
}
|
|
1491
|
-
var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
1491
|
+
var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Il);
|
|
1492
1492
|
return va(a, "single", e);
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function Il(t) {
|
|
1495
1495
|
var e = t.charCodeAt(0), r = {
|
|
1496
1496
|
8: "b",
|
|
1497
1497
|
9: "t",
|
|
@@ -1499,26 +1499,26 @@ function Cl(t) {
|
|
|
1499
1499
|
12: "f",
|
|
1500
1500
|
13: "r"
|
|
1501
1501
|
}[e];
|
|
1502
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
1502
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + yl.call(e.toString(16));
|
|
1503
1503
|
}
|
|
1504
1504
|
function dt(t) {
|
|
1505
1505
|
return "Object(" + t + ")";
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function gr(t) {
|
|
1508
1508
|
return t + " { ? }";
|
|
1509
1509
|
}
|
|
1510
1510
|
function Vn(t, e, r, n) {
|
|
1511
|
-
var a = n ?
|
|
1511
|
+
var a = n ? Mr(r, n) : Ee.call(r, ", ");
|
|
1512
1512
|
return t + " (" + e + ") {" + a + "}";
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function Ml(t) {
|
|
1515
1515
|
for (var e = 0; e < t.length; e++)
|
|
1516
1516
|
if (ha(t[e], `
|
|
1517
1517
|
`) >= 0)
|
|
1518
1518
|
return !1;
|
|
1519
1519
|
return !0;
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function _l(t, e) {
|
|
1522
1522
|
var r;
|
|
1523
1523
|
if (t.indent === " ")
|
|
1524
1524
|
r = " ";
|
|
@@ -1531,7 +1531,7 @@ function Ml(t, e) {
|
|
|
1531
1531
|
prev: Ee.call(Array(e + 1), r)
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function Mr(t, e) {
|
|
1535
1535
|
if (t.length === 0)
|
|
1536
1536
|
return "";
|
|
1537
1537
|
var r = `
|
|
@@ -1540,13 +1540,13 @@ function Ir(t, e) {
|
|
|
1540
1540
|
` + e.prev;
|
|
1541
1541
|
}
|
|
1542
1542
|
function It(t, e) {
|
|
1543
|
-
var r =
|
|
1543
|
+
var r = Ir(t), n = [];
|
|
1544
1544
|
if (r) {
|
|
1545
1545
|
n.length = t.length;
|
|
1546
1546
|
for (var a = 0; a < t.length; a++)
|
|
1547
1547
|
n[a] = Te(t, a) ? e(t[a], t) : "";
|
|
1548
1548
|
}
|
|
1549
|
-
var o = typeof
|
|
1549
|
+
var o = typeof hr == "function" ? hr(t) : [], l;
|
|
1550
1550
|
if (tt) {
|
|
1551
1551
|
l = {};
|
|
1552
1552
|
for (var u = 0; u < o.length; u++)
|
|
@@ -1554,21 +1554,21 @@ function It(t, e) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
for (var i in t)
|
|
1556
1556
|
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))));
|
|
1557
|
-
if (typeof
|
|
1557
|
+
if (typeof hr == "function")
|
|
1558
1558
|
for (var d = 0; d < o.length; d++)
|
|
1559
1559
|
ya.call(t, o[d]) && n.push("[" + e(o[d]) + "]: " + e(t[o[d]], t));
|
|
1560
1560
|
return n;
|
|
1561
1561
|
}
|
|
1562
|
-
var ba = nt, at =
|
|
1562
|
+
var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), kl = at("WeakMap.prototype.get", !0), jl = at("WeakMap.prototype.set", !0), Ll = at("WeakMap.prototype.has", !0), Wl = at("Map.prototype.get", !0), Ul = at("Map.prototype.set", !0), Bl = at("Map.prototype.has", !0), Xr = function(t, e) {
|
|
1563
1563
|
for (var r = t, n; (n = r.next) !== null; r = n)
|
|
1564
1564
|
if (n.key === e)
|
|
1565
1565
|
return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
|
|
1566
1566
|
t.next, t.next = n, n;
|
|
1567
|
-
},
|
|
1568
|
-
var r =
|
|
1567
|
+
}, Hl = function(t, e) {
|
|
1568
|
+
var r = Xr(t, e);
|
|
1569
1569
|
return r && r.value;
|
|
1570
|
-
},
|
|
1571
|
-
var n =
|
|
1570
|
+
}, Vl = function(t, e, r) {
|
|
1571
|
+
var n = Xr(t, e);
|
|
1572
1572
|
n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
1573
1573
|
{
|
|
1574
1574
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -1576,60 +1576,60 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1576
1576
|
next: t.next,
|
|
1577
1577
|
value: r
|
|
1578
1578
|
};
|
|
1579
|
-
},
|
|
1580
|
-
return !!
|
|
1581
|
-
},
|
|
1579
|
+
}, ql = function(t, e) {
|
|
1580
|
+
return !!Xr(t, e);
|
|
1581
|
+
}, Gl = function() {
|
|
1582
1582
|
var e, r, n, a = {
|
|
1583
1583
|
assert: function(o) {
|
|
1584
1584
|
if (!a.has(o))
|
|
1585
|
-
throw new
|
|
1585
|
+
throw new Nl("Side channel does not contain " + Dl(o));
|
|
1586
1586
|
},
|
|
1587
1587
|
get: function(o) {
|
|
1588
1588
|
if (Mt && o && (typeof o == "object" || typeof o == "function")) {
|
|
1589
1589
|
if (e)
|
|
1590
|
-
return
|
|
1590
|
+
return kl(e, o);
|
|
1591
1591
|
} else if (_t) {
|
|
1592
1592
|
if (r)
|
|
1593
|
-
return
|
|
1593
|
+
return Wl(r, o);
|
|
1594
1594
|
} else if (n)
|
|
1595
|
-
return
|
|
1595
|
+
return Hl(n, o);
|
|
1596
1596
|
},
|
|
1597
1597
|
has: function(o) {
|
|
1598
1598
|
if (Mt && o && (typeof o == "object" || typeof o == "function")) {
|
|
1599
1599
|
if (e)
|
|
1600
|
-
return
|
|
1600
|
+
return Ll(e, o);
|
|
1601
1601
|
} else if (_t) {
|
|
1602
1602
|
if (r)
|
|
1603
|
-
return
|
|
1603
|
+
return Bl(r, o);
|
|
1604
1604
|
} else if (n)
|
|
1605
|
-
return
|
|
1605
|
+
return ql(n, o);
|
|
1606
1606
|
return !1;
|
|
1607
1607
|
},
|
|
1608
1608
|
set: function(o, l) {
|
|
1609
|
-
Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()),
|
|
1609
|
+
Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()), jl(e, o, l)) : _t ? (r || (r = new _t()), Ul(r, o, l)) : (n || (n = { key: {}, next: null }), Vl(n, o, l));
|
|
1610
1610
|
}
|
|
1611
1611
|
};
|
|
1612
1612
|
return a;
|
|
1613
|
-
},
|
|
1613
|
+
}, Yl = String.prototype.replace, zl = /%20/g, br = {
|
|
1614
1614
|
RFC1738: "RFC1738",
|
|
1615
1615
|
RFC3986: "RFC3986"
|
|
1616
|
-
},
|
|
1617
|
-
default:
|
|
1616
|
+
}, Jr = {
|
|
1617
|
+
default: br.RFC3986,
|
|
1618
1618
|
formatters: {
|
|
1619
1619
|
RFC1738: function(t) {
|
|
1620
|
-
return
|
|
1620
|
+
return Yl.call(t, zl, "+");
|
|
1621
1621
|
},
|
|
1622
1622
|
RFC3986: function(t) {
|
|
1623
1623
|
return String(t);
|
|
1624
1624
|
}
|
|
1625
1625
|
},
|
|
1626
|
-
RFC1738:
|
|
1627
|
-
RFC3986:
|
|
1628
|
-
},
|
|
1626
|
+
RFC1738: br.RFC1738,
|
|
1627
|
+
RFC3986: br.RFC3986
|
|
1628
|
+
}, Kl = Jr, wr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
|
|
1629
1629
|
for (var t = [], e = 0; e < 256; ++e)
|
|
1630
1630
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1631
1631
|
return t;
|
|
1632
|
-
}(),
|
|
1632
|
+
}(), Xl = function(e) {
|
|
1633
1633
|
for (; e.length > 1; ) {
|
|
1634
1634
|
var r = e.pop(), n = r.obj[r.prop];
|
|
1635
1635
|
if (Le(n)) {
|
|
@@ -1642,14 +1642,14 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1642
1642
|
for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
|
|
1643
1643
|
typeof e[a] < "u" && (n[a] = e[a]);
|
|
1644
1644
|
return n;
|
|
1645
|
-
},
|
|
1645
|
+
}, Jl = function t(e, r, n) {
|
|
1646
1646
|
if (!r)
|
|
1647
1647
|
return e;
|
|
1648
1648
|
if (typeof r != "object") {
|
|
1649
1649
|
if (Le(e))
|
|
1650
1650
|
e.push(r);
|
|
1651
1651
|
else if (e && typeof e == "object")
|
|
1652
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
1652
|
+
(n && (n.plainObjects || n.allowPrototypes) || !wr.call(Object.prototype, r)) && (e[r] = !0);
|
|
1653
1653
|
else
|
|
1654
1654
|
return [e, r];
|
|
1655
1655
|
return e;
|
|
@@ -1658,20 +1658,20 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1658
1658
|
return [e].concat(r);
|
|
1659
1659
|
var a = e;
|
|
1660
1660
|
return Le(e) && !Le(r) && (a = wa(e, n)), Le(e) && Le(r) ? (r.forEach(function(o, l) {
|
|
1661
|
-
if (
|
|
1661
|
+
if (wr.call(e, l)) {
|
|
1662
1662
|
var u = e[l];
|
|
1663
1663
|
u && typeof u == "object" && o && typeof o == "object" ? e[l] = t(u, o, n) : e.push(o);
|
|
1664
1664
|
} else
|
|
1665
1665
|
e[l] = o;
|
|
1666
1666
|
}), e) : Object.keys(r).reduce(function(o, l) {
|
|
1667
1667
|
var u = r[l];
|
|
1668
|
-
return
|
|
1668
|
+
return wr.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
|
|
1669
1669
|
}, a);
|
|
1670
|
-
},
|
|
1670
|
+
}, Ql = function(e, r) {
|
|
1671
1671
|
return Object.keys(r).reduce(function(n, a) {
|
|
1672
1672
|
return n[a] = r[a], n;
|
|
1673
1673
|
}, e);
|
|
1674
|
-
},
|
|
1674
|
+
}, Zl = function(t, e, r) {
|
|
1675
1675
|
var n = t.replace(/\+/g, " ");
|
|
1676
1676
|
if (r === "iso-8859-1")
|
|
1677
1677
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1680,7 +1680,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1680
1680
|
} catch {
|
|
1681
1681
|
return n;
|
|
1682
1682
|
}
|
|
1683
|
-
},
|
|
1683
|
+
}, Er = 1024, eu = function(e, r, n, a, o) {
|
|
1684
1684
|
if (e.length === 0)
|
|
1685
1685
|
return e;
|
|
1686
1686
|
var l = e;
|
|
@@ -1688,11 +1688,11 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1688
1688
|
return escape(l).replace(/%u[0-9a-f]{4}/gi, function(w) {
|
|
1689
1689
|
return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
|
|
1690
1690
|
});
|
|
1691
|
-
for (var u = "", i = 0; i < l.length; i +=
|
|
1692
|
-
for (var d = l.length >=
|
|
1693
|
-
var v = d.charCodeAt(
|
|
1694
|
-
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o ===
|
|
1695
|
-
s[s.length] = d.charAt(
|
|
1691
|
+
for (var u = "", i = 0; i < l.length; i += Er) {
|
|
1692
|
+
for (var d = l.length >= Er ? l.slice(i, i + Er) : l, s = [], g = 0; g < d.length; ++g) {
|
|
1693
|
+
var v = d.charCodeAt(g);
|
|
1694
|
+
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Kl.RFC1738 && (v === 40 || v === 41)) {
|
|
1695
|
+
s[s.length] = d.charAt(g);
|
|
1696
1696
|
continue;
|
|
1697
1697
|
}
|
|
1698
1698
|
if (v < 128) {
|
|
@@ -1707,25 +1707,25 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1707
1707
|
s[s.length] = be[224 | v >> 12] + be[128 | v >> 6 & 63] + be[128 | v & 63];
|
|
1708
1708
|
continue;
|
|
1709
1709
|
}
|
|
1710
|
-
|
|
1710
|
+
g += 1, v = 65536 + ((v & 1023) << 10 | d.charCodeAt(g) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
|
|
1711
1711
|
}
|
|
1712
1712
|
u += s.join("");
|
|
1713
1713
|
}
|
|
1714
1714
|
return u;
|
|
1715
|
-
},
|
|
1715
|
+
}, tu = function(e) {
|
|
1716
1716
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < r.length; ++a)
|
|
1717
1717
|
for (var o = r[a], l = o.obj[o.prop], u = Object.keys(l), i = 0; i < u.length; ++i) {
|
|
1718
1718
|
var d = u[i], s = l[d];
|
|
1719
1719
|
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: d }), n.push(s));
|
|
1720
1720
|
}
|
|
1721
|
-
return
|
|
1722
|
-
}, tu = function(e) {
|
|
1723
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1721
|
+
return Xl(r), e;
|
|
1724
1722
|
}, ru = function(e) {
|
|
1723
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1724
|
+
}, nu = function(e) {
|
|
1725
1725
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1726
|
-
}, nu = function(e, r) {
|
|
1727
|
-
return [].concat(e, r);
|
|
1728
1726
|
}, au = function(e, r) {
|
|
1727
|
+
return [].concat(e, r);
|
|
1728
|
+
}, ou = function(e, r) {
|
|
1729
1729
|
if (Le(e)) {
|
|
1730
1730
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1731
1731
|
n.push(r(e[a]));
|
|
@@ -1734,16 +1734,16 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1734
1734
|
return r(e);
|
|
1735
1735
|
}, Ea = {
|
|
1736
1736
|
arrayToObject: wa,
|
|
1737
|
-
assign:
|
|
1738
|
-
combine:
|
|
1739
|
-
compact:
|
|
1740
|
-
decode:
|
|
1741
|
-
encode:
|
|
1742
|
-
isBuffer:
|
|
1743
|
-
isRegExp:
|
|
1744
|
-
maybeMap:
|
|
1745
|
-
merge:
|
|
1746
|
-
}, Sa =
|
|
1737
|
+
assign: Ql,
|
|
1738
|
+
combine: au,
|
|
1739
|
+
compact: tu,
|
|
1740
|
+
decode: Zl,
|
|
1741
|
+
encode: eu,
|
|
1742
|
+
isBuffer: nu,
|
|
1743
|
+
isRegExp: ru,
|
|
1744
|
+
maybeMap: ou,
|
|
1745
|
+
merge: Jl
|
|
1746
|
+
}, Sa = Gl, kt = Ea, bt = Jr, iu = Object.prototype.hasOwnProperty, xa = {
|
|
1747
1747
|
brackets: function(e) {
|
|
1748
1748
|
return e + "[]";
|
|
1749
1749
|
},
|
|
@@ -1754,9 +1754,9 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1754
1754
|
repeat: function(e) {
|
|
1755
1755
|
return e;
|
|
1756
1756
|
}
|
|
1757
|
-
}, we = Array.isArray,
|
|
1758
|
-
|
|
1759
|
-
},
|
|
1757
|
+
}, we = Array.isArray, lu = Array.prototype.push, Oa = function(t, e) {
|
|
1758
|
+
lu.apply(t, we(e) ? e : [e]);
|
|
1759
|
+
}, uu = Date.prototype.toISOString, qn = bt.default, X = {
|
|
1760
1760
|
addQueryPrefix: !1,
|
|
1761
1761
|
allowDots: !1,
|
|
1762
1762
|
allowEmptyArrays: !1,
|
|
@@ -1773,21 +1773,21 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1773
1773
|
// deprecated
|
|
1774
1774
|
indices: !1,
|
|
1775
1775
|
serializeDate: function(e) {
|
|
1776
|
-
return
|
|
1776
|
+
return uu.call(e);
|
|
1777
1777
|
},
|
|
1778
1778
|
skipNulls: !1,
|
|
1779
1779
|
strictNullHandling: !1
|
|
1780
|
-
},
|
|
1780
|
+
}, su = function(e) {
|
|
1781
1781
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1782
|
-
},
|
|
1783
|
-
for (var b = e, S =
|
|
1782
|
+
}, Sr = {}, cu = function t(e, r, n, a, o, l, u, i, d, s, g, v, w, f, y, p, m, h) {
|
|
1783
|
+
for (var b = e, S = h, O = 0, _ = !1; (S = S.get(Sr)) !== void 0 && !_; ) {
|
|
1784
1784
|
var M = S.get(e);
|
|
1785
1785
|
if (O += 1, typeof M < "u") {
|
|
1786
1786
|
if (M === O)
|
|
1787
1787
|
throw new RangeError("Cyclic object value");
|
|
1788
1788
|
_ = !0;
|
|
1789
1789
|
}
|
|
1790
|
-
typeof S.get(
|
|
1790
|
+
typeof S.get(Sr) > "u" && (O = 0);
|
|
1791
1791
|
}
|
|
1792
1792
|
if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = kt.maybeMap(b, function(pe) {
|
|
1793
1793
|
return pe instanceof Date ? w(pe) : pe;
|
|
@@ -1796,7 +1796,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1796
1796
|
return d && !p ? d(r, X.encoder, m, "key", f) : r;
|
|
1797
1797
|
b = "";
|
|
1798
1798
|
}
|
|
1799
|
-
if (
|
|
1799
|
+
if (su(b) || kt.isBuffer(b)) {
|
|
1800
1800
|
if (d) {
|
|
1801
1801
|
var W = p ? r : d(r, X.encoder, m, "key", f);
|
|
1802
1802
|
return [y(W) + "=" + y(d(b, X.encoder, m, "value", f))];
|
|
@@ -1813,7 +1813,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1813
1813
|
k = s;
|
|
1814
1814
|
else {
|
|
1815
1815
|
var Y = Object.keys(b);
|
|
1816
|
-
k =
|
|
1816
|
+
k = g ? Y.sort(g) : Y;
|
|
1817
1817
|
}
|
|
1818
1818
|
var V = i ? r.replace(/\./g, "%2E") : r, $ = a && we(b) && b.length === 1 ? V + "[]" : V;
|
|
1819
1819
|
if (o && we(b) && b.length === 0)
|
|
@@ -1822,9 +1822,9 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1822
1822
|
var D = k[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
|
|
1823
1823
|
if (!(u && ue === null)) {
|
|
1824
1824
|
var de = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, de) : $ : $ + (v ? "." + de : "[" + de + "]");
|
|
1825
|
-
|
|
1825
|
+
h.set(e, O);
|
|
1826
1826
|
var te = Sa();
|
|
1827
|
-
te.set(
|
|
1827
|
+
te.set(Sr, h), Oa(H, t(
|
|
1828
1828
|
ue,
|
|
1829
1829
|
ge,
|
|
1830
1830
|
n,
|
|
@@ -1835,7 +1835,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1835
1835
|
i,
|
|
1836
1836
|
n === "comma" && p && we(b) ? null : d,
|
|
1837
1837
|
s,
|
|
1838
|
-
|
|
1838
|
+
g,
|
|
1839
1839
|
v,
|
|
1840
1840
|
w,
|
|
1841
1841
|
f,
|
|
@@ -1847,7 +1847,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
1849
|
return H;
|
|
1850
|
-
},
|
|
1850
|
+
}, fu = function(e) {
|
|
1851
1851
|
if (!e)
|
|
1852
1852
|
return X;
|
|
1853
1853
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -1861,7 +1861,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1861
1861
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1862
1862
|
var n = bt.default;
|
|
1863
1863
|
if (typeof e.format < "u") {
|
|
1864
|
-
if (!
|
|
1864
|
+
if (!iu.call(bt.formatters, e.format))
|
|
1865
1865
|
throw new TypeError("Unknown format option provided.");
|
|
1866
1866
|
n = e.format;
|
|
1867
1867
|
}
|
|
@@ -1892,8 +1892,8 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1892
1892
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1893
1893
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : X.strictNullHandling
|
|
1894
1894
|
};
|
|
1895
|
-
},
|
|
1896
|
-
var r = t, n =
|
|
1895
|
+
}, du = function(t, e) {
|
|
1896
|
+
var r = t, n = fu(e), a, o;
|
|
1897
1897
|
typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : we(n.filter) && (o = n.filter, a = o);
|
|
1898
1898
|
var l = [];
|
|
1899
1899
|
if (typeof r != "object" || r === null)
|
|
@@ -1901,10 +1901,10 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1901
1901
|
var u = xa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
|
|
1902
1902
|
a || (a = Object.keys(r)), n.sort && a.sort(n.sort);
|
|
1903
1903
|
for (var d = Sa(), s = 0; s < a.length; ++s) {
|
|
1904
|
-
var
|
|
1905
|
-
n.skipNulls && r[
|
|
1906
|
-
r[
|
|
1907
|
-
|
|
1904
|
+
var g = a[s];
|
|
1905
|
+
n.skipNulls && r[g] === null || Oa(l, cu(
|
|
1906
|
+
r[g],
|
|
1907
|
+
g,
|
|
1908
1908
|
u,
|
|
1909
1909
|
i,
|
|
1910
1910
|
n.allowEmptyArrays,
|
|
@@ -1925,7 +1925,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1925
1925
|
}
|
|
1926
1926
|
var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
|
|
1927
1927
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
|
|
1928
|
-
}, rt = Ea,
|
|
1928
|
+
}, rt = Ea, _r = Object.prototype.hasOwnProperty, pu = Array.isArray, B = {
|
|
1929
1929
|
allowDots: !1,
|
|
1930
1930
|
allowEmptyArrays: !1,
|
|
1931
1931
|
allowPrototypes: !1,
|
|
@@ -1946,33 +1946,33 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1946
1946
|
plainObjects: !1,
|
|
1947
1947
|
strictDepth: !1,
|
|
1948
1948
|
strictNullHandling: !1
|
|
1949
|
-
},
|
|
1949
|
+
}, yu = function(t) {
|
|
1950
1950
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
1951
1951
|
return String.fromCharCode(parseInt(r, 10));
|
|
1952
1952
|
});
|
|
1953
1953
|
}, Pa = function(t, e) {
|
|
1954
1954
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
1955
|
-
},
|
|
1955
|
+
}, vu = "utf8=%26%2310003%3B", mu = "utf8=%E2%9C%93", hu = function(e, r) {
|
|
1956
1956
|
var n = { __proto__: null }, a = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1957
1957
|
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1958
1958
|
var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, d = r.charset;
|
|
1959
1959
|
if (r.charsetSentinel)
|
|
1960
1960
|
for (i = 0; i < l.length; ++i)
|
|
1961
|
-
l[i].indexOf("utf8=") === 0 && (l[i] ===
|
|
1961
|
+
l[i].indexOf("utf8=") === 0 && (l[i] === mu ? d = "utf-8" : l[i] === vu && (d = "iso-8859-1"), u = i, i = l.length);
|
|
1962
1962
|
for (i = 0; i < l.length; ++i)
|
|
1963
1963
|
if (i !== u) {
|
|
1964
|
-
var s = l[i],
|
|
1964
|
+
var s = l[i], g = s.indexOf("]="), v = g === -1 ? s.indexOf("=") : g + 1, w, f;
|
|
1965
1965
|
v === -1 ? (w = r.decoder(s, B.decoder, d, "key"), f = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, d, "key"), f = rt.maybeMap(
|
|
1966
1966
|
Pa(s.slice(v + 1), r),
|
|
1967
1967
|
function(p) {
|
|
1968
1968
|
return r.decoder(p, B.decoder, d, "value");
|
|
1969
1969
|
}
|
|
1970
|
-
)), f && r.interpretNumericEntities && d === "iso-8859-1" && (f =
|
|
1971
|
-
var y =
|
|
1970
|
+
)), f && r.interpretNumericEntities && d === "iso-8859-1" && (f = yu(f)), s.indexOf("[]=") > -1 && (f = pu(f) ? [f] : f);
|
|
1971
|
+
var y = _r.call(n, w);
|
|
1972
1972
|
y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], f) : (!y || r.duplicates === "last") && (n[w] = f);
|
|
1973
1973
|
}
|
|
1974
1974
|
return n;
|
|
1975
|
-
},
|
|
1975
|
+
}, gu = function(t, e, r, n) {
|
|
1976
1976
|
for (var a = n ? e : Pa(e, r), o = t.length - 1; o >= 0; --o) {
|
|
1977
1977
|
var l, u = t[o];
|
|
1978
1978
|
if (u === "[]" && r.parseArrays)
|
|
@@ -1985,16 +1985,16 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1985
1985
|
a = l;
|
|
1986
1986
|
}
|
|
1987
1987
|
return a;
|
|
1988
|
-
},
|
|
1988
|
+
}, bu = function(e, r, n, a) {
|
|
1989
1989
|
if (e) {
|
|
1990
1990
|
var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), d = i ? o.slice(0, i.index) : o, s = [];
|
|
1991
1991
|
if (d) {
|
|
1992
|
-
if (!n.plainObjects &&
|
|
1992
|
+
if (!n.plainObjects && _r.call(Object.prototype, d) && !n.allowPrototypes)
|
|
1993
1993
|
return;
|
|
1994
1994
|
s.push(d);
|
|
1995
1995
|
}
|
|
1996
|
-
for (var
|
|
1997
|
-
if (
|
|
1996
|
+
for (var g = 0; n.depth > 0 && (i = u.exec(o)) !== null && g < n.depth; ) {
|
|
1997
|
+
if (g += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1998
1998
|
return;
|
|
1999
1999
|
s.push(i[1]);
|
|
2000
2000
|
}
|
|
@@ -2003,9 +2003,9 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2003
2003
|
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
2004
2004
|
s.push("[" + o.slice(i.index) + "]");
|
|
2005
2005
|
}
|
|
2006
|
-
return
|
|
2006
|
+
return gu(s, r, n, a);
|
|
2007
2007
|
}
|
|
2008
|
-
},
|
|
2008
|
+
}, wu = function(e) {
|
|
2009
2009
|
if (!e)
|
|
2010
2010
|
return B;
|
|
2011
2011
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2043,26 +2043,26 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2043
2043
|
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : B.strictDepth,
|
|
2044
2044
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
|
|
2045
2045
|
};
|
|
2046
|
-
},
|
|
2047
|
-
var r =
|
|
2046
|
+
}, Eu = function(t, e) {
|
|
2047
|
+
var r = wu(e);
|
|
2048
2048
|
if (t === "" || t === null || typeof t > "u")
|
|
2049
2049
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2050
|
-
for (var n = typeof t == "string" ?
|
|
2051
|
-
var u = o[l], i =
|
|
2050
|
+
for (var n = typeof t == "string" ? hu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
|
|
2051
|
+
var u = o[l], i = bu(u, n[u], r, typeof t == "string");
|
|
2052
2052
|
a = rt.merge(a, i, r);
|
|
2053
2053
|
}
|
|
2054
2054
|
return r.allowSparse === !0 ? a : rt.compact(a);
|
|
2055
|
-
},
|
|
2056
|
-
formats:
|
|
2057
|
-
parse:
|
|
2058
|
-
stringify:
|
|
2059
|
-
},
|
|
2055
|
+
}, Su = du, xu = Eu, Ou = Jr, Gn = {
|
|
2056
|
+
formats: Ou,
|
|
2057
|
+
parse: xu,
|
|
2058
|
+
stringify: Su
|
|
2059
|
+
}, Pu = { exports: {} };
|
|
2060
2060
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
2061
2061
|
* @license MIT */
|
|
2062
2062
|
(function(t, e) {
|
|
2063
2063
|
(function(r, n) {
|
|
2064
2064
|
t.exports = n();
|
|
2065
|
-
})(
|
|
2065
|
+
})(Ar, function() {
|
|
2066
2066
|
var r = {};
|
|
2067
2067
|
r.version = "0.2.0";
|
|
2068
2068
|
var n = r.settings = {
|
|
@@ -2087,19 +2087,19 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2087
2087
|
}, r.status = null, r.set = function(f) {
|
|
2088
2088
|
var y = r.isStarted();
|
|
2089
2089
|
f = a(f, n.minimum, 1), r.status = f === 1 ? null : f;
|
|
2090
|
-
var p = r.render(!y), m = p.querySelector(n.barSelector),
|
|
2090
|
+
var p = r.render(!y), m = p.querySelector(n.barSelector), h = n.speed, b = n.easing;
|
|
2091
2091
|
return p.offsetWidth, u(function(S) {
|
|
2092
|
-
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(f,
|
|
2092
|
+
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(f, h, b)), f === 1 ? (i(p, {
|
|
2093
2093
|
transition: "none",
|
|
2094
2094
|
opacity: 1
|
|
2095
2095
|
}), p.offsetWidth, setTimeout(function() {
|
|
2096
2096
|
i(p, {
|
|
2097
|
-
transition: "all " +
|
|
2097
|
+
transition: "all " + h + "ms linear",
|
|
2098
2098
|
opacity: 0
|
|
2099
2099
|
}), setTimeout(function() {
|
|
2100
2100
|
r.remove(), S();
|
|
2101
|
-
},
|
|
2102
|
-
},
|
|
2101
|
+
}, h);
|
|
2102
|
+
}, h)) : setTimeout(S, h);
|
|
2103
2103
|
}), this;
|
|
2104
2104
|
}, r.isStarted = function() {
|
|
2105
2105
|
return typeof r.status == "number";
|
|
@@ -2130,13 +2130,13 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2130
2130
|
s(document.documentElement, "nprogress-busy");
|
|
2131
2131
|
var y = document.createElement("div");
|
|
2132
2132
|
y.id = "nprogress", y.innerHTML = n.template;
|
|
2133
|
-
var p = y.querySelector(n.barSelector), m = f ? "-100" : o(r.status || 0),
|
|
2133
|
+
var p = y.querySelector(n.barSelector), m = f ? "-100" : o(r.status || 0), h = document.querySelector(n.parent), b;
|
|
2134
2134
|
return i(p, {
|
|
2135
2135
|
transition: "all 0 linear",
|
|
2136
2136
|
transform: "translate3d(" + m + "%,0,0)"
|
|
2137
|
-
}), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)),
|
|
2137
|
+
}), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), h != document.body && s(h, "nprogress-custom-parent"), h.appendChild(y), y;
|
|
2138
2138
|
}, r.remove = function() {
|
|
2139
|
-
|
|
2139
|
+
g(document.documentElement, "nprogress-busy"), g(document.querySelector(n.parent), "nprogress-custom-parent");
|
|
2140
2140
|
var f = document.getElementById("nprogress");
|
|
2141
2141
|
f && w(f);
|
|
2142
2142
|
}, r.isRendered = function() {
|
|
@@ -2178,11 +2178,11 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2178
2178
|
if (W = f[_] + M, W in O) return W;
|
|
2179
2179
|
return S;
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2181
|
+
function h(S) {
|
|
2182
2182
|
return S = p(S), y[S] || (y[S] = m(S));
|
|
2183
2183
|
}
|
|
2184
2184
|
function b(S, O, _) {
|
|
2185
|
-
O =
|
|
2185
|
+
O = h(O), S.style[O] = _;
|
|
2186
2186
|
}
|
|
2187
2187
|
return function(S, O) {
|
|
2188
2188
|
var _ = arguments, M, W;
|
|
@@ -2201,7 +2201,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2201
2201
|
var p = v(f), m = p + y;
|
|
2202
2202
|
d(p, y) || (f.className = m.substring(1));
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function g(f, y) {
|
|
2205
2205
|
var p = v(f), m;
|
|
2206
2206
|
d(f, y) && (m = p.replace(" " + y + " ", " "), f.className = m.substring(1, m.length - 1));
|
|
2207
2207
|
}
|
|
@@ -2213,23 +2213,23 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2213
2213
|
}
|
|
2214
2214
|
return r;
|
|
2215
2215
|
});
|
|
2216
|
-
})(
|
|
2217
|
-
function
|
|
2216
|
+
})(Pu);
|
|
2217
|
+
function Au(t, e, r, n = "brackets") {
|
|
2218
2218
|
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("#"), d = new URL(e.toString(), "http://localhost");
|
|
2219
|
-
return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(
|
|
2219
|
+
return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(li(Gn.parse(d.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${d.protocol}//${d.host}` : "", o ? d.pathname : "", l ? d.pathname.substring(1) : "", u ? d.search : "", i ? d.hash : ""].join(""), r];
|
|
2220
2220
|
}
|
|
2221
2221
|
const zt = ce(null);
|
|
2222
2222
|
zt.displayName = "ModalStackContext";
|
|
2223
|
-
let Aa = null, Ta = null,
|
|
2224
|
-
const
|
|
2223
|
+
let Aa = null, Ta = null, Dr = null, Nr = null, Yn = [];
|
|
2224
|
+
const Tu = ({ children: t }) => {
|
|
2225
2225
|
const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
|
|
2226
2226
|
r((p) => {
|
|
2227
|
-
const m = y([...p]),
|
|
2227
|
+
const m = y([...p]), h = (b) => {
|
|
2228
2228
|
var S;
|
|
2229
2229
|
return m.length < 2 ? !0 : ((S = m.map((O) => ({ id: O.id, shouldRender: O.shouldRender })).reverse().find((O) => O.shouldRender)) == null ? void 0 : S.id) === b;
|
|
2230
2230
|
};
|
|
2231
2231
|
return m.forEach((b, S) => {
|
|
2232
|
-
m[S].onTopOfStack =
|
|
2232
|
+
m[S].onTopOfStack = h(b.id), m[S].getParentModal = () => S < 1 ? null : m.slice(0, S).reverse().find((O) => O.isOpen), m[S].getChildModal = () => S === m.length - 1 ? null : m.slice(S + 1).find((O) => O.isOpen);
|
|
2233
2233
|
}), m;
|
|
2234
2234
|
});
|
|
2235
2235
|
};
|
|
@@ -2237,10 +2237,10 @@ const Au = ({ children: t }) => {
|
|
|
2237
2237
|
Yn = e;
|
|
2238
2238
|
}, [e]);
|
|
2239
2239
|
class l {
|
|
2240
|
-
constructor(p, m,
|
|
2241
|
-
ye(this, "update", (p, m,
|
|
2240
|
+
constructor(p, m, h, b, S) {
|
|
2241
|
+
ye(this, "update", (p, m, h) => {
|
|
2242
2242
|
o(
|
|
2243
|
-
(b) => b.map((S) => (S.id === this.id && (S.
|
|
2243
|
+
(b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = h), S))
|
|
2244
2244
|
);
|
|
2245
2245
|
});
|
|
2246
2246
|
ye(this, "show", () => {
|
|
@@ -2254,18 +2254,18 @@ const Au = ({ children: t }) => {
|
|
|
2254
2254
|
ye(this, "close", () => {
|
|
2255
2255
|
o(
|
|
2256
2256
|
(p) => p.map((m) => {
|
|
2257
|
-
var
|
|
2257
|
+
var h;
|
|
2258
2258
|
return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
|
|
2259
2259
|
m.off(b);
|
|
2260
|
-
}), m.isOpen = !1, (
|
|
2260
|
+
}), m.isOpen = !1, (h = m.onCloseCallback) == null || h.call(m)), m;
|
|
2261
2261
|
})
|
|
2262
2262
|
);
|
|
2263
2263
|
});
|
|
2264
2264
|
ye(this, "afterLeave", () => {
|
|
2265
2265
|
this.isOpen || o((p) => {
|
|
2266
|
-
const m = p.map((
|
|
2266
|
+
const m = p.map((h) => {
|
|
2267
2267
|
var b;
|
|
2268
|
-
return
|
|
2268
|
+
return h.id === this.id && !h.isOpen && (h.shouldRender = !1, (b = h.afterLeaveCallback) == null || b.call(h), h.afterLeaveCallback = null), h;
|
|
2269
2269
|
});
|
|
2270
2270
|
return this.index === 0 ? [] : m;
|
|
2271
2271
|
});
|
|
@@ -2274,24 +2274,24 @@ const Au = ({ children: t }) => {
|
|
|
2274
2274
|
this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
|
|
2275
2275
|
});
|
|
2276
2276
|
ye(this, "off", (p, m) => {
|
|
2277
|
-
var
|
|
2278
|
-
m ? this.listeners[p] = ((
|
|
2277
|
+
var h;
|
|
2278
|
+
m ? this.listeners[p] = ((h = this.listeners[p]) == null ? void 0 : h.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
|
|
2279
2279
|
});
|
|
2280
2280
|
ye(this, "emit", (p, ...m) => {
|
|
2281
|
-
var
|
|
2282
|
-
(
|
|
2281
|
+
var h;
|
|
2282
|
+
(h = this.listeners[p]) == null || h.forEach((b) => b(...m));
|
|
2283
2283
|
});
|
|
2284
2284
|
ye(this, "registerEventListenersFromProps", (p) => {
|
|
2285
2285
|
const m = [];
|
|
2286
|
-
return Object.keys(p).filter((
|
|
2287
|
-
const b =
|
|
2288
|
-
this.on(b, p[
|
|
2289
|
-
}), () => m.forEach((
|
|
2286
|
+
return Object.keys(p).filter((h) => h.startsWith("on")).forEach((h) => {
|
|
2287
|
+
const b = h.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
2288
|
+
this.on(b, p[h]), m.push(() => this.off(b, p[h]));
|
|
2289
|
+
}), () => m.forEach((h) => h());
|
|
2290
2290
|
});
|
|
2291
2291
|
ye(this, "reload", (p = {}) => {
|
|
2292
|
-
var
|
|
2292
|
+
var h;
|
|
2293
2293
|
let m = Object.keys(this.response.props);
|
|
2294
|
-
p.only && (m = aa(m, p.only)), p.except && (m =
|
|
2294
|
+
p.only && (m = aa(m, p.only)), p.except && (m = Vo(m, p.except)), (h = this.response) != null && h.url && jt.get(this.response.url, {
|
|
2295
2295
|
headers: {
|
|
2296
2296
|
Accept: "text/html, application/xhtml+xml",
|
|
2297
2297
|
"X-Inertia": !0,
|
|
@@ -2302,26 +2302,26 @@ const Au = ({ children: t }) => {
|
|
|
2302
2302
|
"X-InertiaUI-Modal-Use-Router": 0
|
|
2303
2303
|
}
|
|
2304
2304
|
}).then((b) => {
|
|
2305
|
-
Object.assign(this.
|
|
2305
|
+
Object.assign(this.props, b.data.props), o((S) => S);
|
|
2306
2306
|
});
|
|
2307
2307
|
});
|
|
2308
|
-
this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.
|
|
2308
|
+
this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = h, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
|
|
2309
2309
|
}
|
|
2310
2310
|
static generateId() {
|
|
2311
2311
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `inertiaui_modal_${crypto.randomUUID()}` : `inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2, 9)}`;
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
|
-
const u = (y, p = {}, m = null,
|
|
2315
|
-
const S = new l(y, p, m,
|
|
2314
|
+
const u = (y, p = {}, m = null, h = null) => Ta(y.component).then((b) => i(b, y, p, m, h)), i = (y, p, m, h, b) => {
|
|
2315
|
+
const S = new l(y, p, m, h, b);
|
|
2316
2316
|
return S.index = e.length, o((O) => [...O, S]), S.show(), S;
|
|
2317
2317
|
};
|
|
2318
|
-
function d(y, p, m,
|
|
2318
|
+
function d(y, p, m, h) {
|
|
2319
2319
|
if (!n[y])
|
|
2320
2320
|
throw new Error(`The local modal "${y}" has not been registered.`);
|
|
2321
|
-
const b = i(null, {}, p, m,
|
|
2321
|
+
const b = i(null, {}, p, m, h);
|
|
2322
2322
|
return b.name = y, n[y].callback(b), b;
|
|
2323
2323
|
}
|
|
2324
|
-
const s = (y, p = {}) =>
|
|
2324
|
+
const s = (y, p = {}) => g(
|
|
2325
2325
|
y,
|
|
2326
2326
|
p.method ?? "get",
|
|
2327
2327
|
p.data ?? {},
|
|
@@ -2330,16 +2330,16 @@ const Au = ({ children: t }) => {
|
|
|
2330
2330
|
p.onClose,
|
|
2331
2331
|
p.onAfterLeave,
|
|
2332
2332
|
p.queryStringArrayFormat ?? "brackets",
|
|
2333
|
-
p.navigate ??
|
|
2334
|
-
),
|
|
2333
|
+
p.navigate ?? Vr("navigate")
|
|
2334
|
+
), g = (y, p, m = {}, h = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
|
|
2335
2335
|
if (y.startsWith("#")) {
|
|
2336
2336
|
W(d(y.substring(1), b, S, O));
|
|
2337
2337
|
return;
|
|
2338
2338
|
}
|
|
2339
|
-
const [k, Y] =
|
|
2339
|
+
const [k, Y] = Au(p, y || "", m, _);
|
|
2340
2340
|
let V = M && e.length === 0;
|
|
2341
|
-
if (e.length === 0 && (
|
|
2342
|
-
...
|
|
2341
|
+
if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), h = {
|
|
2342
|
+
...h,
|
|
2343
2343
|
Accept: "text/html, application/xhtml+xml",
|
|
2344
2344
|
"X-Requested-With": "XMLHttpRequest",
|
|
2345
2345
|
"X-Inertia": !0,
|
|
@@ -2350,12 +2350,12 @@ const Au = ({ children: t }) => {
|
|
|
2350
2350
|
return yt.visit(k, {
|
|
2351
2351
|
method: p,
|
|
2352
2352
|
data: Y,
|
|
2353
|
-
headers:
|
|
2353
|
+
headers: h,
|
|
2354
2354
|
preserveScroll: !0,
|
|
2355
2355
|
preserveState: !0,
|
|
2356
2356
|
onError: H,
|
|
2357
2357
|
onFinish: () => {
|
|
2358
|
-
|
|
2358
|
+
Go(() => Nr).then(($) => {
|
|
2359
2359
|
const T = $.onCloseCallback, D = $.afterLeaveCallback;
|
|
2360
2360
|
$.update(
|
|
2361
2361
|
b,
|
|
@@ -2365,7 +2365,7 @@ const Au = ({ children: t }) => {
|
|
|
2365
2365
|
() => {
|
|
2366
2366
|
O == null || O(), D == null || D();
|
|
2367
2367
|
}
|
|
2368
|
-
), W($),
|
|
2368
|
+
), W($), Nr = null;
|
|
2369
2369
|
});
|
|
2370
2370
|
}
|
|
2371
2371
|
});
|
|
@@ -2373,7 +2373,7 @@ const Au = ({ children: t }) => {
|
|
|
2373
2373
|
url: k,
|
|
2374
2374
|
method: p,
|
|
2375
2375
|
data: Y,
|
|
2376
|
-
headers:
|
|
2376
|
+
headers: h
|
|
2377
2377
|
}).then(($) => W(u($.data, b, S, O))).catch(($) => {
|
|
2378
2378
|
H($);
|
|
2379
2379
|
});
|
|
@@ -2386,7 +2386,7 @@ const Au = ({ children: t }) => {
|
|
|
2386
2386
|
Yn.reverse().forEach((y) => y.close());
|
|
2387
2387
|
},
|
|
2388
2388
|
reset: () => o(() => []),
|
|
2389
|
-
visit:
|
|
2389
|
+
visit: g,
|
|
2390
2390
|
visitModal: s,
|
|
2391
2391
|
registerLocalModal: (y, p) => {
|
|
2392
2392
|
a((m) => ({
|
|
@@ -2402,7 +2402,7 @@ const Au = ({ children: t }) => {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
};
|
|
2404
2404
|
return /* @__PURE__ */ R.jsx(zt.Provider, { value: f, children: t });
|
|
2405
|
-
},
|
|
2405
|
+
}, Kt = () => {
|
|
2406
2406
|
const t = ie(zt);
|
|
2407
2407
|
if (t === null)
|
|
2408
2408
|
throw new Error("useModalStack must be used within a ModalStackProvider");
|
|
@@ -2411,16 +2411,16 @@ const Au = ({ children: t }) => {
|
|
|
2411
2411
|
e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
|
|
2412
2412
|
const r = ({ Component: n, props: a, key: o }) => {
|
|
2413
2413
|
const l = () => {
|
|
2414
|
-
const u =
|
|
2415
|
-
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) =>
|
|
2414
|
+
const u = Pr(n, { key: o, ...a });
|
|
2415
|
+
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) => Pr(s, a, d)) : u;
|
|
2416
2416
|
};
|
|
2417
2417
|
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2418
2418
|
l(),
|
|
2419
|
-
/* @__PURE__ */ R.jsx(
|
|
2419
|
+
/* @__PURE__ */ R.jsx($u, {})
|
|
2420
2420
|
] });
|
|
2421
2421
|
};
|
|
2422
|
-
return /* @__PURE__ */ R.jsx(
|
|
2423
|
-
},
|
|
2422
|
+
return /* @__PURE__ */ R.jsx(Tu, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
|
|
2423
|
+
}, $u = ({ children: t }) => {
|
|
2424
2424
|
const e = ie(zt);
|
|
2425
2425
|
let r = !1, n = !1;
|
|
2426
2426
|
K(() => yt.on("start", () => r = !0), []), K(() => yt.on("finish", () => r = !1), []), K(
|
|
@@ -2430,7 +2430,7 @@ const Au = ({ children: t }) => {
|
|
|
2430
2430
|
n && e.closeAll();
|
|
2431
2431
|
return;
|
|
2432
2432
|
}
|
|
2433
|
-
n = l,
|
|
2433
|
+
n = l, Dr = l.baseUrl, e.pushFromResponseData(l, {}, () => {
|
|
2434
2434
|
if (!l.baseUrl) {
|
|
2435
2435
|
console.error("No base url in modal response data so cannot navigate back");
|
|
2436
2436
|
return;
|
|
@@ -2440,37 +2440,37 @@ const Au = ({ children: t }) => {
|
|
|
2440
2440
|
preserveState: !0
|
|
2441
2441
|
});
|
|
2442
2442
|
}).then((u) => {
|
|
2443
|
-
|
|
2443
|
+
Nr = u;
|
|
2444
2444
|
});
|
|
2445
2445
|
}),
|
|
2446
2446
|
[]
|
|
2447
2447
|
);
|
|
2448
|
-
const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] =
|
|
2448
|
+
const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] = Dr, o);
|
|
2449
2449
|
return K(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2450
2450
|
t,
|
|
2451
|
-
e.stack.length > 0 && /* @__PURE__ */ R.jsx(
|
|
2451
|
+
e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
|
|
2452
2452
|
] });
|
|
2453
2453
|
}, Qr = A.createContext(null);
|
|
2454
2454
|
Qr.displayName = "ModalIndexContext";
|
|
2455
|
-
const $
|
|
2455
|
+
const $a = () => {
|
|
2456
2456
|
const t = A.useContext(Qr);
|
|
2457
2457
|
if (t === void 0)
|
|
2458
2458
|
throw new Error("useModalIndex must be used within a ModalIndexProvider");
|
|
2459
2459
|
return t;
|
|
2460
|
-
},
|
|
2461
|
-
const { stack: e } =
|
|
2460
|
+
}, Ra = ({ index: t }) => {
|
|
2461
|
+
const { stack: e } = Kt(), r = J(() => e[t], [e, t]);
|
|
2462
2462
|
return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Qr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
|
|
2463
2463
|
r.component,
|
|
2464
2464
|
{
|
|
2465
|
-
...r.
|
|
2465
|
+
...r.props,
|
|
2466
2466
|
onModalEvent: (...n) => r.emit(...n)
|
|
2467
2467
|
}
|
|
2468
2468
|
) });
|
|
2469
|
-
},
|
|
2470
|
-
const a = $
|
|
2469
|
+
}, Fa = Hr(({ name: t, children: e, ...r }, n) => {
|
|
2470
|
+
const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Kt(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), g = J(() => {
|
|
2471
2471
|
var f;
|
|
2472
2472
|
return (f = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : f.index;
|
|
2473
|
-
}, [a, o]), v = J(() => (s == null ? void 0 : s.
|
|
2473
|
+
}, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? Vr("type") === "slideover", [r.slideover]), w = J(
|
|
2474
2474
|
() => ({
|
|
2475
2475
|
slideover: v,
|
|
2476
2476
|
closeButton: r.closeButton ?? ze(v, "closeButton"),
|
|
@@ -2479,9 +2479,9 @@ const $u = () => {
|
|
|
2479
2479
|
paddingClasses: r.paddingClasses ?? ze(v, "paddingClasses"),
|
|
2480
2480
|
panelClasses: r.panelClasses ?? ze(v, "panelClasses"),
|
|
2481
2481
|
position: r.position ?? ze(v, "position"),
|
|
2482
|
-
...s == null ? void 0 : s.
|
|
2482
|
+
...s == null ? void 0 : s.config
|
|
2483
2483
|
}),
|
|
2484
|
-
[r, s == null ? void 0 : s.
|
|
2484
|
+
[r, s == null ? void 0 : s.config]
|
|
2485
2485
|
);
|
|
2486
2486
|
return K(() => {
|
|
2487
2487
|
if (t) {
|
|
@@ -2498,6 +2498,7 @@ const $u = () => {
|
|
|
2498
2498
|
() => ({
|
|
2499
2499
|
afterLeave: () => s.afterLeave(),
|
|
2500
2500
|
close: () => s.close(),
|
|
2501
|
+
config: w,
|
|
2501
2502
|
emit: (...f) => s.emit(...f),
|
|
2502
2503
|
getChildModal: () => s.getChildModal(),
|
|
2503
2504
|
getParentModal: () => s.getParentModal(),
|
|
@@ -2505,7 +2506,6 @@ const $u = () => {
|
|
|
2505
2506
|
index: s == null ? void 0 : s.index,
|
|
2506
2507
|
isOpen: s == null ? void 0 : s.isOpen,
|
|
2507
2508
|
modalContext: s,
|
|
2508
|
-
modalProps: w,
|
|
2509
2509
|
onTopOfStack: s == null ? void 0 : s.onTopOfStack,
|
|
2510
2510
|
reload: () => s.reload(),
|
|
2511
2511
|
setOpen: () => s.setOpen(),
|
|
@@ -2516,6 +2516,7 @@ const $u = () => {
|
|
|
2516
2516
|
typeof e == "function" ? e({
|
|
2517
2517
|
afterLeave: s.afterLeave,
|
|
2518
2518
|
close: s.close,
|
|
2519
|
+
config: w,
|
|
2519
2520
|
emit: s.emit,
|
|
2520
2521
|
getChildModal: s.getChildModal,
|
|
2521
2522
|
getParentModal: s.getParentModal,
|
|
@@ -2523,33 +2524,32 @@ const $u = () => {
|
|
|
2523
2524
|
index: s.index,
|
|
2524
2525
|
isOpen: s.isOpen,
|
|
2525
2526
|
modalContext: s,
|
|
2526
|
-
modalProps: w,
|
|
2527
2527
|
onTopOfStack: s.onTopOfStack,
|
|
2528
2528
|
reload: s.reload,
|
|
2529
2529
|
setOpen: s.setOpen,
|
|
2530
2530
|
shouldRender: s.shouldRender
|
|
2531
2531
|
}) : e,
|
|
2532
|
-
|
|
2532
|
+
g && /* @__PURE__ */ R.jsx(Ra, { index: g })
|
|
2533
2533
|
] });
|
|
2534
2534
|
});
|
|
2535
|
-
|
|
2536
|
-
function
|
|
2535
|
+
Fa.displayName = "HeadlessModal";
|
|
2536
|
+
function Ca(t) {
|
|
2537
2537
|
var e, r, n = "";
|
|
2538
2538
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
2539
2539
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2540
2540
|
var a = t.length;
|
|
2541
|
-
for (e = 0; e < a; e++) t[e] && (r =
|
|
2541
|
+
for (e = 0; e < a; e++) t[e] && (r = Ca(t[e])) && (n && (n += " "), n += r);
|
|
2542
2542
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
2543
2543
|
return n;
|
|
2544
2544
|
}
|
|
2545
2545
|
function Ht() {
|
|
2546
|
-
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e =
|
|
2546
|
+
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ca(t)) && (n && (n += " "), n += e);
|
|
2547
2547
|
return n;
|
|
2548
2548
|
}
|
|
2549
|
-
var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r,
|
|
2549
|
+
var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Fu(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
2550
2550
|
let Cu = class {
|
|
2551
2551
|
constructor() {
|
|
2552
|
-
|
|
2552
|
+
xr(this, "current", this.detect()), xr(this, "handoffState", "pending"), xr(this, "currentId", 0);
|
|
2553
2553
|
}
|
|
2554
2554
|
set(e) {
|
|
2555
2555
|
this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
|
|
@@ -2576,10 +2576,10 @@ let Cu = class {
|
|
|
2576
2576
|
return this.handoffState === "complete";
|
|
2577
2577
|
}
|
|
2578
2578
|
}, Ve = new Cu();
|
|
2579
|
-
function
|
|
2579
|
+
function Xt(t) {
|
|
2580
2580
|
return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function Jt(t) {
|
|
2583
2583
|
typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
|
|
2584
2584
|
throw e;
|
|
2585
2585
|
}));
|
|
@@ -2597,7 +2597,7 @@ function Me() {
|
|
|
2597
2597
|
return e.add(() => clearTimeout(n));
|
|
2598
2598
|
}, microTask(...r) {
|
|
2599
2599
|
let n = { current: !0 };
|
|
2600
|
-
return
|
|
2600
|
+
return Jt(() => {
|
|
2601
2601
|
n.current && r[0]();
|
|
2602
2602
|
}), e.add(() => {
|
|
2603
2603
|
n.current = !1;
|
|
@@ -2625,7 +2625,7 @@ function Zr() {
|
|
|
2625
2625
|
return K(() => () => t.dispose(), [t]), t;
|
|
2626
2626
|
}
|
|
2627
2627
|
let ae = (t, e) => {
|
|
2628
|
-
Ve.isServer ? K(t, e) :
|
|
2628
|
+
Ve.isServer ? K(t, e) : Io(t, e);
|
|
2629
2629
|
};
|
|
2630
2630
|
function qe(t) {
|
|
2631
2631
|
let e = j(t);
|
|
@@ -2640,7 +2640,7 @@ let U = function(t) {
|
|
|
2640
2640
|
function Mu() {
|
|
2641
2641
|
return ie(Iu);
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function kr(...t) {
|
|
2644
2644
|
return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
|
|
2645
2645
|
}
|
|
2646
2646
|
function Ce(t, e, ...r) {
|
|
@@ -2658,46 +2658,46 @@ function fe() {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
function _u({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
|
|
2660
2660
|
u = u ?? Nu;
|
|
2661
|
-
let i =
|
|
2661
|
+
let i = Ia(e, t);
|
|
2662
2662
|
if (o) return Dt(i, r, n, l, u);
|
|
2663
2663
|
let d = a ?? 0;
|
|
2664
2664
|
if (d & 2) {
|
|
2665
|
-
let { static: s = !1, ...
|
|
2666
|
-
if (s) return Dt(
|
|
2665
|
+
let { static: s = !1, ...g } = i;
|
|
2666
|
+
if (s) return Dt(g, r, n, l, u);
|
|
2667
2667
|
}
|
|
2668
2668
|
if (d & 1) {
|
|
2669
|
-
let { unmount: s = !0, ...
|
|
2669
|
+
let { unmount: s = !0, ...g } = i;
|
|
2670
2670
|
return Ce(s ? 0 : 1, { 0() {
|
|
2671
2671
|
return null;
|
|
2672
2672
|
}, 1() {
|
|
2673
|
-
return Dt({ ...
|
|
2673
|
+
return Dt({ ...g, hidden: !0, style: { display: "none" } }, r, n, l, u);
|
|
2674
2674
|
} });
|
|
2675
2675
|
}
|
|
2676
2676
|
return Dt(i, r, n, l, u);
|
|
2677
2677
|
}
|
|
2678
2678
|
function Dt(t, e = {}, r, n, a) {
|
|
2679
|
-
let { as: o = r, children: l, refName: u = "ref", ...i } =
|
|
2679
|
+
let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), d = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
|
|
2680
2680
|
"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);
|
|
2681
|
-
let
|
|
2681
|
+
let g = {};
|
|
2682
2682
|
if (e) {
|
|
2683
2683
|
let v = !1, w = [];
|
|
2684
2684
|
for (let [f, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(f.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
|
|
2685
2685
|
if (v) {
|
|
2686
|
-
|
|
2687
|
-
for (let f of w)
|
|
2686
|
+
g["data-headlessui-state"] = w.join(" ");
|
|
2687
|
+
for (let f of w) g[`data-${f}`] = "";
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
|
-
if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(
|
|
2691
|
-
if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(
|
|
2690
|
+
if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(g)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
|
|
2691
|
+
if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(g))).map((v) => ` - ${v}`).join(`
|
|
2692
2692
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
|
|
2693
2693
|
`)].join(`
|
|
2694
2694
|
`));
|
|
2695
2695
|
} else {
|
|
2696
|
-
let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) =>
|
|
2697
|
-
for (let m in
|
|
2698
|
-
return
|
|
2696
|
+
let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = f ? { className: f } : {}, p = Ia(s.props, je(Or(i, ["ref"])));
|
|
2697
|
+
for (let m in g) m in p && delete g[m];
|
|
2698
|
+
return _o(s, Object.assign({}, p, g, d, { ref: a(s.ref, d.ref) }, y));
|
|
2699
2699
|
}
|
|
2700
|
-
return
|
|
2700
|
+
return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && d, o !== he && g), s);
|
|
2701
2701
|
}
|
|
2702
2702
|
function Du() {
|
|
2703
2703
|
let t = j([]), e = ve((r) => {
|
|
@@ -2712,7 +2712,7 @@ function Nu(...t) {
|
|
|
2712
2712
|
for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
|
|
2713
2713
|
};
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function Ia(...t) {
|
|
2716
2716
|
if (t.length === 0) return {};
|
|
2717
2717
|
if (t.length === 1) return t[0];
|
|
2718
2718
|
let e = {}, r = {};
|
|
@@ -2732,14 +2732,14 @@ function Ca(...t) {
|
|
|
2732
2732
|
}
|
|
2733
2733
|
function le(t) {
|
|
2734
2734
|
var e;
|
|
2735
|
-
return Object.assign(
|
|
2735
|
+
return Object.assign(Hr(t), { displayName: (e = t.displayName) != null ? e : t.name });
|
|
2736
2736
|
}
|
|
2737
2737
|
function je(t) {
|
|
2738
2738
|
let e = Object.assign({}, t);
|
|
2739
2739
|
for (let r in e) e[r] === void 0 && delete e[r];
|
|
2740
2740
|
return e;
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function Or(t, e = []) {
|
|
2743
2743
|
let r = Object.assign({}, t);
|
|
2744
2744
|
for (let n of e) n in r && delete r[n];
|
|
2745
2745
|
return r;
|
|
@@ -2751,9 +2751,9 @@ function ju(t, e) {
|
|
|
2751
2751
|
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" } } };
|
|
2752
2752
|
return fe()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ku, name: "Hidden" });
|
|
2753
2753
|
}
|
|
2754
|
-
let
|
|
2754
|
+
let jr = le(ju), Ma = Symbol();
|
|
2755
2755
|
function Lu(t, e = !0) {
|
|
2756
|
-
return Object.assign(t, { [
|
|
2756
|
+
return Object.assign(t, { [Ma]: e });
|
|
2757
2757
|
}
|
|
2758
2758
|
function Se(...t) {
|
|
2759
2759
|
let e = j(t);
|
|
@@ -2763,15 +2763,15 @@ function Se(...t) {
|
|
|
2763
2763
|
let r = U((n) => {
|
|
2764
2764
|
for (let a of e.current) a != null && (typeof a == "function" ? a(n) : a.current = n);
|
|
2765
2765
|
});
|
|
2766
|
-
return t.every((n) => n == null || (n == null ? void 0 : n[
|
|
2766
|
+
return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
|
|
2767
2767
|
}
|
|
2768
2768
|
let en = ce(null);
|
|
2769
2769
|
en.displayName = "DescriptionContext";
|
|
2770
|
-
function
|
|
2770
|
+
function _a() {
|
|
2771
2771
|
let t = ie(en);
|
|
2772
2772
|
if (t === null) {
|
|
2773
2773
|
let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
2774
|
-
throw Error.captureStackTrace && Error.captureStackTrace(e,
|
|
2774
|
+
throw Error.captureStackTrace && Error.captureStackTrace(e, _a), e;
|
|
2775
2775
|
}
|
|
2776
2776
|
return t;
|
|
2777
2777
|
}
|
|
@@ -2787,13 +2787,13 @@ function Wu() {
|
|
|
2787
2787
|
}
|
|
2788
2788
|
let Uu = "p";
|
|
2789
2789
|
function Bu(t, e) {
|
|
2790
|
-
let r = xt(), n = Mu(), { id: a = `headlessui-description-${r}`, ...o } = t, l =
|
|
2790
|
+
let r = xt(), n = Mu(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
|
|
2791
2791
|
ae(() => l.register(a), [a, l.register]);
|
|
2792
2792
|
let i = n || !1, d = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
|
|
2793
2793
|
return fe()({ ourProps: s, theirProps: o, slot: d, defaultTag: Uu, name: l.name || "Description" });
|
|
2794
2794
|
}
|
|
2795
2795
|
let Hu = le(Bu), Vu = Object.assign(Hu, {});
|
|
2796
|
-
var
|
|
2796
|
+
var Da = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Da || {});
|
|
2797
2797
|
let qu = ce(() => {
|
|
2798
2798
|
});
|
|
2799
2799
|
function Gu({ value: t, children: e }) {
|
|
@@ -2808,7 +2808,7 @@ let Yu = class extends Map {
|
|
|
2808
2808
|
return r === void 0 && (r = this.factory(e), this.set(e, r)), r;
|
|
2809
2809
|
}
|
|
2810
2810
|
};
|
|
2811
|
-
function
|
|
2811
|
+
function Na(t, e) {
|
|
2812
2812
|
let r = t(), n = /* @__PURE__ */ new Set();
|
|
2813
2813
|
return { getSnapshot() {
|
|
2814
2814
|
return r;
|
|
@@ -2819,10 +2819,10 @@ function Da(t, e) {
|
|
|
2819
2819
|
l && (r = l, n.forEach((u) => u()));
|
|
2820
2820
|
} };
|
|
2821
2821
|
}
|
|
2822
|
-
function
|
|
2823
|
-
return
|
|
2822
|
+
function ka(t) {
|
|
2823
|
+
return Do(t.subscribe, t.getSnapshot, t.getSnapshot);
|
|
2824
2824
|
}
|
|
2825
|
-
let zu = new Yu(() =>
|
|
2825
|
+
let zu = new Yu(() => Na(() => [], { ADD(t) {
|
|
2826
2826
|
return this.includes(t) ? this : [...this, t];
|
|
2827
2827
|
}, REMOVE(t) {
|
|
2828
2828
|
let e = this.indexOf(t);
|
|
@@ -2831,25 +2831,25 @@ let zu = new Yu(() => Da(() => [], { ADD(t) {
|
|
|
2831
2831
|
return r.splice(e, 1), r;
|
|
2832
2832
|
} }));
|
|
2833
2833
|
function ot(t, e) {
|
|
2834
|
-
let r = zu.get(e), n = xt(), a =
|
|
2834
|
+
let r = zu.get(e), n = xt(), a = ka(r);
|
|
2835
2835
|
if (ae(() => {
|
|
2836
2836
|
if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
|
|
2837
2837
|
}, [r, t]), !t) return !1;
|
|
2838
2838
|
let o = a.indexOf(n), l = a.length;
|
|
2839
2839
|
return o === -1 && (o = l, l += 1), o === l - 1;
|
|
2840
2840
|
}
|
|
2841
|
-
let
|
|
2841
|
+
let Lr = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
|
|
2842
2842
|
function Kn(t) {
|
|
2843
2843
|
var e;
|
|
2844
2844
|
let r = (e = wt.get(t)) != null ? e : 0;
|
|
2845
|
-
return wt.set(t, r + 1), r !== 0 ? () => Xn(t) : (
|
|
2845
|
+
return wt.set(t, r + 1), r !== 0 ? () => Xn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
|
|
2846
2846
|
}
|
|
2847
2847
|
function Xn(t) {
|
|
2848
2848
|
var e;
|
|
2849
2849
|
let r = (e = wt.get(t)) != null ? e : 1;
|
|
2850
2850
|
if (r === 1 ? wt.delete(t) : wt.set(t, r - 1), r !== 1) return;
|
|
2851
|
-
let n =
|
|
2852
|
-
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert,
|
|
2851
|
+
let n = Lr.get(t);
|
|
2852
|
+
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Lr.delete(t));
|
|
2853
2853
|
}
|
|
2854
2854
|
function Ku(t, { allowed: e, disallowed: r } = {}) {
|
|
2855
2855
|
let n = ot(t, "inert-others");
|
|
@@ -2861,11 +2861,11 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
|
|
|
2861
2861
|
let u = (o = e == null ? void 0 : e()) != null ? o : [];
|
|
2862
2862
|
for (let i of u) {
|
|
2863
2863
|
if (!i) continue;
|
|
2864
|
-
let d =
|
|
2864
|
+
let d = Xt(i);
|
|
2865
2865
|
if (!d) continue;
|
|
2866
2866
|
let s = i.parentElement;
|
|
2867
2867
|
for (; s && s !== d.body; ) {
|
|
2868
|
-
for (let
|
|
2868
|
+
for (let g of s.children) u.some((v) => g.contains(v)) || l.add(Kn(g));
|
|
2869
2869
|
s = s.parentElement;
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
|
@@ -2894,17 +2894,17 @@ function Xu(t, e, r) {
|
|
|
2894
2894
|
}, [e, n, t]);
|
|
2895
2895
|
}
|
|
2896
2896
|
let Gt = ["[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(","), Ju = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
2897
|
-
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 || {}),
|
|
2897
|
+
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 || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Qu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Qu || {});
|
|
2898
2898
|
function Zu(t = document.body) {
|
|
2899
2899
|
return t == null ? [] : Array.from(t.querySelectorAll(Gt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2900
2900
|
}
|
|
2901
2901
|
function es(t = document.body) {
|
|
2902
2902
|
return t == null ? [] : Array.from(t.querySelectorAll(Ju)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2903
2903
|
}
|
|
2904
|
-
var
|
|
2904
|
+
var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
|
|
2905
2905
|
function ts(t, e = 0) {
|
|
2906
2906
|
var r;
|
|
2907
|
-
return t === ((r =
|
|
2907
|
+
return t === ((r = Xt(t)) == null ? void 0 : r.body) ? !1 : Ce(e, { 0() {
|
|
2908
2908
|
return t.matches(Gt);
|
|
2909
2909
|
}, 1() {
|
|
2910
2910
|
let n = t;
|
|
@@ -2950,27 +2950,27 @@ function Et(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
|
|
|
2950
2950
|
if (e & 4) return Math.max(0, l.indexOf(n)) + 1;
|
|
2951
2951
|
if (e & 8) return l.length - 1;
|
|
2952
2952
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2953
|
-
})(), d = e & 32 ? { preventScroll: !0 } : {}, s = 0,
|
|
2953
|
+
})(), d = e & 32 ? { preventScroll: !0 } : {}, s = 0, g = l.length, v;
|
|
2954
2954
|
do {
|
|
2955
|
-
if (s >=
|
|
2955
|
+
if (s >= g || s + g <= 0) return 0;
|
|
2956
2956
|
let w = i + s;
|
|
2957
|
-
if (e & 16) w = (w +
|
|
2957
|
+
if (e & 16) w = (w + g) % g;
|
|
2958
2958
|
else {
|
|
2959
2959
|
if (w < 0) return 3;
|
|
2960
|
-
if (w >=
|
|
2960
|
+
if (w >= g) return 1;
|
|
2961
2961
|
}
|
|
2962
2962
|
v = l[w], v == null || v.focus(d), s += u;
|
|
2963
2963
|
} while (v !== o.activeElement);
|
|
2964
2964
|
return e & 6 && as(v) && v.select(), 2;
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function La() {
|
|
2967
2967
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2968
2968
|
}
|
|
2969
2969
|
function is() {
|
|
2970
2970
|
return /Android/gi.test(window.navigator.userAgent);
|
|
2971
2971
|
}
|
|
2972
2972
|
function ls() {
|
|
2973
|
-
return
|
|
2973
|
+
return La() || is();
|
|
2974
2974
|
}
|
|
2975
2975
|
function pt(t, e, r, n) {
|
|
2976
2976
|
let a = qe(r);
|
|
@@ -2982,7 +2982,7 @@ function pt(t, e, r, n) {
|
|
|
2982
2982
|
return document.addEventListener(e, o, n), () => document.removeEventListener(e, o, n);
|
|
2983
2983
|
}, [t, e, n]);
|
|
2984
2984
|
}
|
|
2985
|
-
function
|
|
2985
|
+
function Wa(t, e, r, n) {
|
|
2986
2986
|
let a = qe(r);
|
|
2987
2987
|
K(() => {
|
|
2988
2988
|
if (!t) return;
|
|
@@ -2998,11 +2998,11 @@ function us(t, e, r) {
|
|
|
2998
2998
|
if (i.defaultPrevented) return;
|
|
2999
2999
|
let s = d(i);
|
|
3000
3000
|
if (s === null || !s.getRootNode().contains(s) || !s.isConnected) return;
|
|
3001
|
-
let
|
|
3001
|
+
let g = function v(w) {
|
|
3002
3002
|
return typeof w == "function" ? v(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
|
|
3003
3003
|
}(e);
|
|
3004
|
-
for (let v of
|
|
3005
|
-
return !ts(s,
|
|
3004
|
+
for (let v of g) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
|
|
3005
|
+
return !ts(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
|
|
3006
3006
|
}, [a, e]), l = j(null);
|
|
3007
3007
|
pt(n, "pointerdown", (i) => {
|
|
3008
3008
|
var d, s;
|
|
@@ -3019,12 +3019,12 @@ function us(t, e, r) {
|
|
|
3019
3019
|
}, !0), pt(n, "touchend", (i) => {
|
|
3020
3020
|
let d = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
|
|
3021
3021
|
if (!(Math.abs(d.x - u.current.x) >= Jn || Math.abs(d.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
|
|
3022
|
-
}, !0),
|
|
3022
|
+
}, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
3023
3023
|
}
|
|
3024
3024
|
function At(...t) {
|
|
3025
|
-
return J(() =>
|
|
3025
|
+
return J(() => Xt(...t), [...t]);
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3027
|
+
function Ua(t, e, r, n) {
|
|
3028
3028
|
let a = qe(r);
|
|
3029
3029
|
K(() => {
|
|
3030
3030
|
t = t ?? window;
|
|
@@ -3046,7 +3046,7 @@ function ss() {
|
|
|
3046
3046
|
} };
|
|
3047
3047
|
}
|
|
3048
3048
|
function cs() {
|
|
3049
|
-
return
|
|
3049
|
+
return La() ? { before({ doc: t, d: e, meta: r }) {
|
|
3050
3050
|
function n(a) {
|
|
3051
3051
|
return r.containers.flatMap((o) => o()).some((o) => o.contains(a));
|
|
3052
3052
|
}
|
|
@@ -3098,7 +3098,7 @@ function ds(t) {
|
|
|
3098
3098
|
for (let r of t) Object.assign(e, r(e));
|
|
3099
3099
|
return e;
|
|
3100
3100
|
}
|
|
3101
|
-
let Ue =
|
|
3101
|
+
let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
|
|
3102
3102
|
var r;
|
|
3103
3103
|
let n = (r = this.get(t)) != null ? r : { doc: t, count: 0, d: Me(), meta: /* @__PURE__ */ new Set() };
|
|
3104
3104
|
return n.count++, n.meta.add(e), this.set(t, n), this;
|
|
@@ -3122,7 +3122,7 @@ Ue.subscribe(() => {
|
|
|
3122
3122
|
}
|
|
3123
3123
|
});
|
|
3124
3124
|
function ps(t, e, r = () => ({ containers: [] })) {
|
|
3125
|
-
let n =
|
|
3125
|
+
let n = ka(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
|
|
3126
3126
|
return ae(() => {
|
|
3127
3127
|
if (!(!e || !t)) return Ue.dispatch("PUSH", e, r), () => Ue.dispatch("POP", e, r);
|
|
3128
3128
|
}, [t, e]), o;
|
|
@@ -3150,7 +3150,7 @@ function hs(t) {
|
|
|
3150
3150
|
return e;
|
|
3151
3151
|
}
|
|
3152
3152
|
function gs(t, e, r, n) {
|
|
3153
|
-
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1),
|
|
3153
|
+
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), g = Zr();
|
|
3154
3154
|
return ae(() => {
|
|
3155
3155
|
var v;
|
|
3156
3156
|
if (t) {
|
|
@@ -3167,7 +3167,7 @@ function gs(t, e, r, n) {
|
|
|
3167
3167
|
s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (d.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
|
|
3168
3168
|
} });
|
|
3169
3169
|
}
|
|
3170
|
-
}, [t, r, e,
|
|
3170
|
+
}, [t, r, e, g]), t ? [a, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
3171
3171
|
}
|
|
3172
3172
|
function bs(t, { prepare: e, run: r, done: n, inFlight: a }) {
|
|
3173
3173
|
let o = Me();
|
|
@@ -3208,17 +3208,17 @@ function tn(t, e) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
}, [n, ...e]);
|
|
3210
3210
|
}
|
|
3211
|
-
let
|
|
3212
|
-
|
|
3211
|
+
let Qt = ce(null);
|
|
3212
|
+
Qt.displayName = "OpenClosedContext";
|
|
3213
3213
|
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 || {});
|
|
3214
|
-
function
|
|
3215
|
-
return ie(
|
|
3214
|
+
function Zt() {
|
|
3215
|
+
return ie(Qt);
|
|
3216
3216
|
}
|
|
3217
3217
|
function Ss({ value: t, children: e }) {
|
|
3218
|
-
return A.createElement(
|
|
3218
|
+
return A.createElement(Qt.Provider, { value: t }, e);
|
|
3219
3219
|
}
|
|
3220
3220
|
function xs({ children: t }) {
|
|
3221
|
-
return A.createElement(
|
|
3221
|
+
return A.createElement(Qt.Provider, { value: null }, t);
|
|
3222
3222
|
}
|
|
3223
3223
|
function Os(t) {
|
|
3224
3224
|
function e() {
|
|
@@ -3235,10 +3235,10 @@ Os(() => {
|
|
|
3235
3235
|
}
|
|
3236
3236
|
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 });
|
|
3237
3237
|
});
|
|
3238
|
-
function
|
|
3238
|
+
function Ba(t) {
|
|
3239
3239
|
let e = U(t), r = j(!1);
|
|
3240
3240
|
K(() => (r.current = !1, () => {
|
|
3241
|
-
r.current = !0,
|
|
3241
|
+
r.current = !0, Jt(() => {
|
|
3242
3242
|
r.current && e();
|
|
3243
3243
|
});
|
|
3244
3244
|
}), [e]);
|
|
@@ -3254,15 +3254,15 @@ function Tt() {
|
|
|
3254
3254
|
e !== !0 && r(!0);
|
|
3255
3255
|
}, [e]), mt.useEffect(() => Ve.handoff(), []), t ? !1 : e;
|
|
3256
3256
|
}
|
|
3257
|
-
let
|
|
3257
|
+
let Ha = ce(!1);
|
|
3258
3258
|
function As() {
|
|
3259
|
-
return ie(
|
|
3259
|
+
return ie(Ha);
|
|
3260
3260
|
}
|
|
3261
3261
|
function ea(t) {
|
|
3262
|
-
return A.createElement(
|
|
3262
|
+
return A.createElement(Ha.Provider, { value: t.force }, t.children);
|
|
3263
3263
|
}
|
|
3264
3264
|
function Ts(t) {
|
|
3265
|
-
let e = As(), r = ie(
|
|
3265
|
+
let e = As(), r = ie(qa), n = At(t), [a, o] = Q(() => {
|
|
3266
3266
|
var l;
|
|
3267
3267
|
if (!e && r !== null) return (l = r.current) != null ? l : null;
|
|
3268
3268
|
if (Ve.isServer) return null;
|
|
@@ -3278,48 +3278,48 @@ function Ts(t) {
|
|
|
3278
3278
|
e || r !== null && o(r.current);
|
|
3279
3279
|
}, [r, o, e]), a;
|
|
3280
3280
|
}
|
|
3281
|
-
let
|
|
3282
|
-
let r = t, n = j(null), a = Se(Lu((
|
|
3283
|
-
n.current =
|
|
3281
|
+
let Va = he, $s = le(function(t, e) {
|
|
3282
|
+
let r = t, n = j(null), a = Se(Lu((g) => {
|
|
3283
|
+
n.current = g;
|
|
3284
3284
|
}), e), o = At(n), l = Ts(n), [u] = Q(() => {
|
|
3285
|
-
var
|
|
3286
|
-
return Ve.isServer ? null : (
|
|
3287
|
-
}), i = ie(
|
|
3285
|
+
var g;
|
|
3286
|
+
return Ve.isServer ? null : (g = o == null ? void 0 : o.createElement("div")) != null ? g : null;
|
|
3287
|
+
}), i = ie(Ur), d = Tt();
|
|
3288
3288
|
ae(() => {
|
|
3289
3289
|
!l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
|
|
3290
3290
|
}, [l, u]), ae(() => {
|
|
3291
3291
|
if (u && i) return i.register(u);
|
|
3292
|
-
}, [i, u]),
|
|
3293
|
-
var
|
|
3294
|
-
!l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((
|
|
3292
|
+
}, [i, u]), Ba(() => {
|
|
3293
|
+
var g;
|
|
3294
|
+
!l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l)));
|
|
3295
3295
|
});
|
|
3296
3296
|
let s = fe();
|
|
3297
|
-
return d ? !l || !u ? null :
|
|
3297
|
+
return d ? !l || !u ? null : jo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
|
|
3298
3298
|
});
|
|
3299
3299
|
function Rs(t, e) {
|
|
3300
3300
|
let r = Se(e), { enabled: n = !0, ...a } = t, o = fe();
|
|
3301
|
-
return n ? A.createElement($s, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag:
|
|
3301
|
+
return n ? A.createElement($s, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
|
|
3302
3302
|
}
|
|
3303
|
-
let Fs = he,
|
|
3303
|
+
let Fs = he, qa = ce(null);
|
|
3304
3304
|
function Cs(t, e) {
|
|
3305
3305
|
let { target: r, ...n } = t, a = { ref: Se(e) }, o = fe();
|
|
3306
|
-
return A.createElement(
|
|
3306
|
+
return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Fs, name: "Popover.Group" }));
|
|
3307
3307
|
}
|
|
3308
|
-
let
|
|
3308
|
+
let Ur = ce(null);
|
|
3309
3309
|
function Is() {
|
|
3310
|
-
let t = ie(
|
|
3310
|
+
let t = ie(Ur), e = j([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
|
|
3311
3311
|
let l = e.current.indexOf(o);
|
|
3312
3312
|
l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
|
|
3313
3313
|
}), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
|
|
3314
3314
|
return [e, J(() => function({ children: o }) {
|
|
3315
|
-
return A.createElement(
|
|
3315
|
+
return A.createElement(Ur.Provider, { value: a }, o);
|
|
3316
3316
|
}, [a])];
|
|
3317
3317
|
}
|
|
3318
|
-
let Ms = le(Rs),
|
|
3318
|
+
let Ms = le(Rs), Ga = le(Cs), _s = Object.assign(Ms, { Group: Ga });
|
|
3319
3319
|
function Ds(t, e = typeof document < "u" ? document.defaultView : null, r) {
|
|
3320
3320
|
let n = ot(t, "escape");
|
|
3321
|
-
|
|
3322
|
-
n && (a.defaultPrevented || a.key ===
|
|
3321
|
+
Ua(e, "keydown", (a) => {
|
|
3322
|
+
n && (a.defaultPrevented || a.key === Da.Escape && r(a));
|
|
3323
3323
|
});
|
|
3324
3324
|
}
|
|
3325
3325
|
function Ns() {
|
|
@@ -3344,22 +3344,22 @@ function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
|
|
|
3344
3344
|
});
|
|
3345
3345
|
return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
|
|
3346
3346
|
}
|
|
3347
|
-
let
|
|
3347
|
+
let Ya = ce(null);
|
|
3348
3348
|
function ta({ children: t, node: e }) {
|
|
3349
|
-
let [r, n] = Q(null), a =
|
|
3350
|
-
return A.createElement(
|
|
3349
|
+
let [r, n] = Q(null), a = za(e ?? r);
|
|
3350
|
+
return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(jr, { features: qt.Hidden, ref: (o) => {
|
|
3351
3351
|
var l, u;
|
|
3352
3352
|
if (o) {
|
|
3353
|
-
for (let i of (u = (l =
|
|
3353
|
+
for (let i of (u = (l = Xt(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)) {
|
|
3354
3354
|
n(i);
|
|
3355
3355
|
break;
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
3358
3358
|
} }));
|
|
3359
3359
|
}
|
|
3360
|
-
function
|
|
3360
|
+
function za(t = null) {
|
|
3361
3361
|
var e;
|
|
3362
|
-
return (e = ie(
|
|
3362
|
+
return (e = ie(Ya)) != null ? e : t;
|
|
3363
3363
|
}
|
|
3364
3364
|
function rn() {
|
|
3365
3365
|
let t = j(!1);
|
|
@@ -3370,11 +3370,11 @@ function rn() {
|
|
|
3370
3370
|
var vt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(vt || {});
|
|
3371
3371
|
function js() {
|
|
3372
3372
|
let t = j(0);
|
|
3373
|
-
return
|
|
3373
|
+
return Wa(!0, "keydown", (e) => {
|
|
3374
3374
|
e.key === "Tab" && (t.current = e.shiftKey ? 1 : 0);
|
|
3375
3375
|
}, !0), t;
|
|
3376
3376
|
}
|
|
3377
|
-
function
|
|
3377
|
+
function Ka(t) {
|
|
3378
3378
|
if (!t) return /* @__PURE__ */ new Set();
|
|
3379
3379
|
if (typeof t == "function") return new Set(t());
|
|
3380
3380
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -3390,33 +3390,33 @@ function Ws(t, e) {
|
|
|
3390
3390
|
Vs(u, { ownerDocument: d });
|
|
3391
3391
|
let s = qs(u, { ownerDocument: d, container: r, initialFocus: a, initialFocusFallback: o });
|
|
3392
3392
|
Gs(u, { ownerDocument: d, container: r, containers: l, previousActiveElement: s });
|
|
3393
|
-
let
|
|
3393
|
+
let g = js(), v = U((h) => {
|
|
3394
3394
|
let b = r.current;
|
|
3395
3395
|
b && ((S) => S())(() => {
|
|
3396
|
-
Ce(
|
|
3397
|
-
Et(b, Pe.First, { skipElements: [
|
|
3396
|
+
Ce(g.current, { [vt.Forwards]: () => {
|
|
3397
|
+
Et(b, Pe.First, { skipElements: [h.relatedTarget, o] });
|
|
3398
3398
|
}, [vt.Backwards]: () => {
|
|
3399
|
-
Et(b, Pe.Last, { skipElements: [
|
|
3399
|
+
Et(b, Pe.Last, { skipElements: [h.relatedTarget, o] });
|
|
3400
3400
|
} });
|
|
3401
3401
|
});
|
|
3402
|
-
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(
|
|
3403
|
-
|
|
3402
|
+
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(h) {
|
|
3403
|
+
h.key == "Tab" && (y.current = !0, f.requestAnimationFrame(() => {
|
|
3404
3404
|
y.current = !1;
|
|
3405
3405
|
}));
|
|
3406
|
-
}, onBlur(
|
|
3406
|
+
}, onBlur(h) {
|
|
3407
3407
|
if (!(u & 4)) return;
|
|
3408
|
-
let b =
|
|
3408
|
+
let b = Ka(l);
|
|
3409
3409
|
r.current instanceof HTMLElement && b.add(r.current);
|
|
3410
|
-
let S =
|
|
3411
|
-
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (
|
|
3410
|
+
let S = h.relatedTarget;
|
|
3411
|
+
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? Et(r.current, Ce(g.current, { [vt.Forwards]: () => Pe.Next, [vt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Ae(h.target)));
|
|
3412
3412
|
} }, m = fe();
|
|
3413
|
-
return A.createElement(A.Fragment, null, w && A.createElement(
|
|
3413
|
+
return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ls, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
|
|
3414
3414
|
}
|
|
3415
3415
|
let Us = le(Ws), Bs = Object.assign(Us, { features: We });
|
|
3416
3416
|
function Hs(t = !0) {
|
|
3417
3417
|
let e = j($e.slice());
|
|
3418
3418
|
return tn(([r], [n]) => {
|
|
3419
|
-
n === !0 && r === !1 &&
|
|
3419
|
+
n === !0 && r === !1 && Jt(() => {
|
|
3420
3420
|
e.current.splice(0);
|
|
3421
3421
|
}), n === !1 && r === !0 && (e.current = $e.slice());
|
|
3422
3422
|
}, [t, $e, e]), U(() => {
|
|
@@ -3428,7 +3428,7 @@ function Vs(t, { ownerDocument: e }) {
|
|
|
3428
3428
|
let r = !!(t & 8), n = Hs(r);
|
|
3429
3429
|
tn(() => {
|
|
3430
3430
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
|
|
3431
|
-
}, [r]),
|
|
3431
|
+
}, [r]), Ba(() => {
|
|
3432
3432
|
r && Ae(n());
|
|
3433
3433
|
});
|
|
3434
3434
|
}
|
|
@@ -3441,7 +3441,7 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3441
3441
|
return;
|
|
3442
3442
|
}
|
|
3443
3443
|
let i = r.current;
|
|
3444
|
-
i &&
|
|
3444
|
+
i && Jt(() => {
|
|
3445
3445
|
if (!u.current) return;
|
|
3446
3446
|
let d = e == null ? void 0 : e.activeElement;
|
|
3447
3447
|
if (n != null && n.current) {
|
|
@@ -3456,8 +3456,8 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3456
3456
|
if (n != null && n.current) Ae(n.current);
|
|
3457
3457
|
else {
|
|
3458
3458
|
if (t & 16) {
|
|
3459
|
-
if (Et(i, Pe.First | Pe.AutoFocus) !==
|
|
3460
|
-
} else if (Et(i, Pe.First) !==
|
|
3459
|
+
if (Et(i, Pe.First | Pe.AutoFocus) !== Wr.Error) return;
|
|
3460
|
+
} else if (Et(i, Pe.First) !== Wr.Error) return;
|
|
3461
3461
|
if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
|
|
3462
3462
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
3463
3463
|
}
|
|
@@ -3467,43 +3467,43 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3467
3467
|
}
|
|
3468
3468
|
function Gs(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
|
|
3469
3469
|
let o = rn(), l = !!(t & 4);
|
|
3470
|
-
|
|
3470
|
+
Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
|
|
3471
3471
|
if (!l || !o.current) return;
|
|
3472
|
-
let i =
|
|
3472
|
+
let i = Ka(n);
|
|
3473
3473
|
r.current instanceof HTMLElement && i.add(r.current);
|
|
3474
3474
|
let d = a.current;
|
|
3475
3475
|
if (!d) return;
|
|
3476
3476
|
let s = u.target;
|
|
3477
|
-
s && s instanceof HTMLElement ?
|
|
3477
|
+
s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(d)) : Ae(a.current);
|
|
3478
3478
|
}, !0);
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function Xa(t, e) {
|
|
3481
3481
|
for (let r of t) if (r.contains(e)) return !0;
|
|
3482
3482
|
return !1;
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3484
|
+
function Ja(t) {
|
|
3485
3485
|
var e;
|
|
3486
|
-
return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e :
|
|
3486
|
+
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;
|
|
3487
3487
|
}
|
|
3488
|
-
let
|
|
3489
|
-
|
|
3488
|
+
let er = ce(null);
|
|
3489
|
+
er.displayName = "TransitionContext";
|
|
3490
3490
|
var Ys = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(Ys || {});
|
|
3491
3491
|
function zs() {
|
|
3492
|
-
let t = ie(
|
|
3492
|
+
let t = ie(er);
|
|
3493
3493
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3494
3494
|
return t;
|
|
3495
3495
|
}
|
|
3496
3496
|
function Ks() {
|
|
3497
|
-
let t = ie(
|
|
3497
|
+
let t = ie(tr);
|
|
3498
3498
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3499
3499
|
return t;
|
|
3500
3500
|
}
|
|
3501
|
-
let
|
|
3502
|
-
|
|
3503
|
-
function
|
|
3504
|
-
return "children" in t ?
|
|
3501
|
+
let tr = ce(null);
|
|
3502
|
+
tr.displayName = "NestingContext";
|
|
3503
|
+
function rr(t) {
|
|
3504
|
+
return "children" in t ? rr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function Qa(t, e) {
|
|
3507
3507
|
let r = qe(t), n = j([]), a = rn(), o = Zr(), l = U((w, f = Fe.Hidden) => {
|
|
3508
3508
|
let y = n.current.findIndex(({ el: p }) => p === w);
|
|
3509
3509
|
y !== -1 && (Ce(f, { [Fe.Unmount]() {
|
|
@@ -3512,16 +3512,16 @@ function Ja(t, e) {
|
|
|
3512
3512
|
n.current[y].state = "hidden";
|
|
3513
3513
|
} }), o.microTask(() => {
|
|
3514
3514
|
var p;
|
|
3515
|
-
!
|
|
3515
|
+
!rr(n) && a.current && ((p = r.current) == null || p.call(r));
|
|
3516
3516
|
}));
|
|
3517
3517
|
}), u = U((w) => {
|
|
3518
3518
|
let f = n.current.find(({ el: y }) => y === w);
|
|
3519
3519
|
return f ? f.state !== "visible" && (f.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
|
|
3520
|
-
}), i = j([]), d = j(Promise.resolve()), s = j({ enter: [], leave: [] }),
|
|
3520
|
+
}), i = j([]), d = j(Promise.resolve()), s = j({ enter: [], leave: [] }), g = U((w, f, y) => {
|
|
3521
3521
|
i.current.splice(0), e && (e.chains.current[f] = e.chains.current[f].filter(([p]) => p !== w)), e == null || e.chains.current[f].push([w, new Promise((p) => {
|
|
3522
3522
|
i.current.push(p);
|
|
3523
3523
|
})]), e == null || e.chains.current[f].push([w, new Promise((p) => {
|
|
3524
|
-
Promise.all(s.current[f].map(([m,
|
|
3524
|
+
Promise.all(s.current[f].map(([m, h]) => h)).then(() => p());
|
|
3525
3525
|
})]), f === "enter" ? d.current = d.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(f)) : y(f);
|
|
3526
3526
|
}), v = U((w, f, y) => {
|
|
3527
3527
|
Promise.all(s.current[f].splice(0).map(([p, m]) => m)).then(() => {
|
|
@@ -3529,12 +3529,12 @@ function Ja(t, e) {
|
|
|
3529
3529
|
(p = i.current.shift()) == null || p();
|
|
3530
3530
|
}).then(() => y(f));
|
|
3531
3531
|
});
|
|
3532
|
-
return J(() => ({ children: n, register: u, unregister: l, onStart:
|
|
3532
|
+
return J(() => ({ children: n, register: u, unregister: l, onStart: g, onStop: v, wait: d, chains: s }), [u, l, n, g, v, s, d]);
|
|
3533
3533
|
}
|
|
3534
|
-
let
|
|
3534
|
+
let Za = he, eo = Vt.RenderStrategy;
|
|
3535
3535
|
function Xs(t, e) {
|
|
3536
3536
|
var r, n;
|
|
3537
|
-
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: d, enterFrom: s, enterTo:
|
|
3537
|
+
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: d, enterFrom: s, enterTo: g, entered: v, leave: w, leaveFrom: f, leaveTo: y, ...p } = t, [m, h] = Q(null), b = j(null), S = Ja(t), O = Se(...S ? [b, e, h] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = zs(), [k, Y] = Q(M ? "visible" : "hidden"), V = Ks(), { register: $, unregister: T } = V;
|
|
3538
3538
|
ae(() => $(b), [$, b]), ae(() => {
|
|
3539
3539
|
if (_ === Fe.Hidden && b.current) {
|
|
3540
3540
|
if (M && k !== "visible") {
|
|
@@ -3548,7 +3548,7 @@ function Xs(t, e) {
|
|
|
3548
3548
|
ae(() => {
|
|
3549
3549
|
if (S && D && k === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3550
3550
|
}, [b, k, D, S]);
|
|
3551
|
-
let ue = H && !W, de = W && M && H, ge = j(!1), te =
|
|
3551
|
+
let ue = H && !W, de = W && M && H, ge = j(!1), te = Qa(() => {
|
|
3552
3552
|
ge.current || (Y("hidden"), T(b));
|
|
3553
3553
|
}, V), pe = U((Ne) => {
|
|
3554
3554
|
ge.current = !0;
|
|
@@ -3560,55 +3560,55 @@ function Xs(t, e) {
|
|
|
3560
3560
|
let xe = Ne ? "enter" : "leave";
|
|
3561
3561
|
ge.current = !1, te.onStop(b, xe, (Oe) => {
|
|
3562
3562
|
Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
|
|
3563
|
-
}), xe === "leave" && !
|
|
3563
|
+
}), xe === "leave" && !rr(te) && (Y("hidden"), T(b));
|
|
3564
3564
|
});
|
|
3565
3565
|
K(() => {
|
|
3566
3566
|
S && a || (pe(M), q(M));
|
|
3567
3567
|
}, [M, S, a]);
|
|
3568
|
-
let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }),
|
|
3568
|
+
let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }), ar = je({ ref: O, className: ((n = kr(p.className, de && d, de && s, ee.enter && d, ee.enter && ee.closed && s, ee.enter && !ee.closed && g, ee.leave && w, ee.leave && !ee.closed && f, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...hs(ee) }), De = 0;
|
|
3569
3569
|
k === "visible" && (De |= me.Open), k === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
|
|
3570
3570
|
let lt = fe();
|
|
3571
|
-
return A.createElement(
|
|
3571
|
+
return A.createElement(tr.Provider, { value: te }, A.createElement(Ss, { value: De }, lt({ ourProps: ar, theirProps: p, defaultTag: Za, features: eo, visible: k === "visible", name: "Transition.Child" })));
|
|
3572
3572
|
}
|
|
3573
3573
|
function Js(t, e) {
|
|
3574
|
-
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = j(null), u =
|
|
3574
|
+
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = j(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
|
|
3575
3575
|
Tt();
|
|
3576
|
-
let d =
|
|
3576
|
+
let d = Zt();
|
|
3577
3577
|
if (r === void 0 && d !== null && (r = (d & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3578
|
-
let [s,
|
|
3579
|
-
r ||
|
|
3578
|
+
let [s, g] = Q(r ? "visible" : "hidden"), v = Qa(() => {
|
|
3579
|
+
r || g("hidden");
|
|
3580
3580
|
}), [w, f] = Q(!0), y = j([r]);
|
|
3581
3581
|
ae(() => {
|
|
3582
3582
|
w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), f(!1));
|
|
3583
3583
|
}, [y, r]);
|
|
3584
3584
|
let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
|
|
3585
3585
|
ae(() => {
|
|
3586
|
-
r ?
|
|
3586
|
+
r ? g("visible") : !rr(v) && l.current !== null && g("hidden");
|
|
3587
3587
|
}, [r, v]);
|
|
3588
|
-
let m = { unmount: a },
|
|
3588
|
+
let m = { unmount: a }, h = U(() => {
|
|
3589
3589
|
var O;
|
|
3590
3590
|
w && f(!1), (O = t.beforeEnter) == null || O.call(t);
|
|
3591
3591
|
}), b = U(() => {
|
|
3592
3592
|
var O;
|
|
3593
3593
|
w && f(!1), (O = t.beforeLeave) == null || O.call(t);
|
|
3594
3594
|
}), S = fe();
|
|
3595
|
-
return A.createElement(
|
|
3595
|
+
return A.createElement(tr.Provider, { value: v }, A.createElement(er.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: h, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
|
|
3596
3596
|
}
|
|
3597
3597
|
function Qs(t, e) {
|
|
3598
|
-
let r = ie(
|
|
3599
|
-
return A.createElement(A.Fragment, null, !r && n ? A.createElement(
|
|
3598
|
+
let r = ie(er) !== null, n = Zt() !== null;
|
|
3599
|
+
return A.createElement(A.Fragment, null, !r && n ? A.createElement(Br, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
|
|
3600
3600
|
}
|
|
3601
|
-
let
|
|
3601
|
+
let Br = le(Js), to = le(Xs), it = le(Qs), ro = Object.assign(Br, { Child: it, Root: Br });
|
|
3602
3602
|
var Zs = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Zs || {}), ec = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(ec || {});
|
|
3603
3603
|
let tc = { 0(t, e) {
|
|
3604
3604
|
return t.titleId === e.id ? t : { ...t, titleId: e.id };
|
|
3605
3605
|
} }, nn = ce(null);
|
|
3606
3606
|
nn.displayName = "DialogContext";
|
|
3607
|
-
function
|
|
3607
|
+
function nr(t) {
|
|
3608
3608
|
let e = ie(nn);
|
|
3609
3609
|
if (e === null) {
|
|
3610
3610
|
let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
|
|
3611
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
3611
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, nr), r;
|
|
3612
3612
|
}
|
|
3613
3613
|
return e;
|
|
3614
3614
|
}
|
|
@@ -3616,16 +3616,16 @@ function rc(t, e) {
|
|
|
3616
3616
|
return Ce(e.type, tc, t, e);
|
|
3617
3617
|
}
|
|
3618
3618
|
let ra = le(function(t, e) {
|
|
3619
|
-
let r = xt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: d = !1, unmount: s = !1, ...
|
|
3619
|
+
let r = xt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: d = !1, unmount: s = !1, ...g } = t, v = j(!1);
|
|
3620
3620
|
u = function() {
|
|
3621
3621
|
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");
|
|
3622
3622
|
}();
|
|
3623
|
-
let w =
|
|
3623
|
+
let w = Zt();
|
|
3624
3624
|
a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
|
|
3625
|
-
let f = j(null), y = Se(f, e), p = At(f), m = a ? 0 : 1, [
|
|
3625
|
+
let f = j(null), y = Se(f, e), p = At(f), m = a ? 0 : 1, [h, b] = No(rc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = Tt() ? m === 0 : !1, [M, W] = Is(), H = { get current() {
|
|
3626
3626
|
var q;
|
|
3627
|
-
return (q =
|
|
3628
|
-
} }, k =
|
|
3627
|
+
return (q = h.panelRef.current) != null ? q : f.current;
|
|
3628
|
+
} }, k = za(), { resolveContainers: Y } = ks({ mainTreeNode: k, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
|
|
3629
3629
|
Ku(d || V ? !1 : _, { allowed: U(() => {
|
|
3630
3630
|
var q, _e;
|
|
3631
3631
|
return [(_e = (q = f.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
|
|
@@ -3637,35 +3637,35 @@ let ra = le(function(t, e) {
|
|
|
3637
3637
|
}), Ds(_, p == null ? void 0 : p.defaultView, (q) => {
|
|
3638
3638
|
q.preventDefault(), q.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
|
|
3639
3639
|
}), ys(d || V ? !1 : _, p, Y), Xu(_, f, S);
|
|
3640
|
-
let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s },
|
|
3640
|
+
let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, h], [m, h, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), de = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": d ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": h.titleId, "aria-describedby": $, unmount: s }, ge = !Ns(), te = We.None;
|
|
3641
3641
|
_ && !d && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
|
|
3642
3642
|
let pe = fe();
|
|
3643
|
-
return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(
|
|
3643
|
+
return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(Ga, { target: f }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Bs, { initialFocus: l, initialFocusFallback: f, containers: Y, features: te }, A.createElement(Gu, { value: S }, pe({ ourProps: de, theirProps: g, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
|
|
3644
3644
|
}), nc = "div", ac = Vt.RenderStrategy | Vt.Static;
|
|
3645
3645
|
function oc(t, e) {
|
|
3646
|
-
let { transition: r = !1, open: n, ...a } = t, o =
|
|
3646
|
+
let { transition: r = !1, open: n, ...a } = t, o = Zt(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
|
|
3647
3647
|
if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
3648
3648
|
if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
3649
3649
|
if (!u) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
3650
3650
|
if (!o && typeof t.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);
|
|
3651
3651
|
if (typeof t.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);
|
|
3652
|
-
return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(
|
|
3652
|
+
return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(ro, { show: n, transition: r, unmount: a.unmount }, A.createElement(ra, { ref: e, ...a }))) : A.createElement(ta, null, A.createElement(ra, { ref: e, open: n, ...a }));
|
|
3653
3653
|
}
|
|
3654
3654
|
let ic = "div";
|
|
3655
3655
|
function lc(t, e) {
|
|
3656
|
-
let r = xt(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] =
|
|
3656
|
+
let r = xt(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = nr("Dialog.Panel"), d = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), g = U((p) => {
|
|
3657
3657
|
p.stopPropagation();
|
|
3658
|
-
}), v = { ref: d, id: n, onClick:
|
|
3658
|
+
}), v = { ref: d, id: n, onClick: g }, w = a ? it : he, f = a ? { unmount: u } : {}, y = fe();
|
|
3659
3659
|
return A.createElement(w, { ...f }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: ic, name: "Dialog.Panel" }));
|
|
3660
3660
|
}
|
|
3661
3661
|
let uc = "div";
|
|
3662
3662
|
function sc(t, e) {
|
|
3663
|
-
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] =
|
|
3663
|
+
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = nr("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, d = r ? { unmount: o } : {}, s = fe();
|
|
3664
3664
|
return A.createElement(i, { ...d }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: uc, name: "Dialog.Backdrop" }));
|
|
3665
3665
|
}
|
|
3666
3666
|
let cc = "h2";
|
|
3667
3667
|
function fc(t, e) {
|
|
3668
|
-
let r = xt(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] =
|
|
3668
|
+
let r = xt(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = nr("Dialog.Title"), u = Se(e);
|
|
3669
3669
|
K(() => (l(n), () => l(null)), [n, l]);
|
|
3670
3670
|
let i = J(() => ({ open: o === 0 }), [o]), d = { ref: u, id: n };
|
|
3671
3671
|
return fe()({ ourProps: d, theirProps: a, slot: i, defaultTag: cc, name: "Dialog.Title" });
|
|
@@ -3673,7 +3673,7 @@ function fc(t, e) {
|
|
|
3673
3673
|
let dc = le(oc), an = le(lc);
|
|
3674
3674
|
le(sc);
|
|
3675
3675
|
let pc = le(fc), yc = Object.assign(dc, { Panel: an, Title: pc, Description: Vu });
|
|
3676
|
-
function
|
|
3676
|
+
function no({ onClick: t }) {
|
|
3677
3677
|
return /* @__PURE__ */ R.jsxs(
|
|
3678
3678
|
"button",
|
|
3679
3679
|
{
|
|
@@ -3706,7 +3706,7 @@ function ro({ onClick: t }) {
|
|
|
3706
3706
|
}
|
|
3707
3707
|
);
|
|
3708
3708
|
}
|
|
3709
|
-
const vc = ({ modalContext: t,
|
|
3709
|
+
const vc = ({ 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(
|
|
3710
3710
|
"div",
|
|
3711
3711
|
{
|
|
3712
3712
|
className: Ht("im-modal-positioner flex min-h-full justify-center", {
|
|
@@ -3735,13 +3735,13 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3735
3735
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3736
3736
|
}),
|
|
3737
3737
|
children: /* @__PURE__ */ R.jsxs(an, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3738
|
-
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(
|
|
3739
|
-
typeof r == "function" ? r({ modalContext: t,
|
|
3738
|
+
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
|
|
3739
|
+
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3740
3740
|
] })
|
|
3741
3741
|
}
|
|
3742
3742
|
)
|
|
3743
3743
|
}
|
|
3744
|
-
) }), mc = ({ modalContext: t,
|
|
3744
|
+
) }), mc = ({ 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(
|
|
3745
3745
|
"div",
|
|
3746
3746
|
{
|
|
3747
3747
|
className: Ht("im-slideover-positioner flex min-h-full items-center", {
|
|
@@ -3769,16 +3769,16 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3769
3769
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3770
3770
|
}),
|
|
3771
3771
|
children: /* @__PURE__ */ R.jsxs(an, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3772
|
-
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(
|
|
3773
|
-
typeof r == "function" ? r({ modalContext: t,
|
|
3772
|
+
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
|
|
3773
|
+
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3774
3774
|
] })
|
|
3775
3775
|
}
|
|
3776
3776
|
)
|
|
3777
3777
|
}
|
|
3778
|
-
) }), hc =
|
|
3778
|
+
) }), hc = Hr(({ name: t, children: e, ...r }, n) => {
|
|
3779
3779
|
const a = (l) => typeof e == "function" ? e(l) : e, o = j(null);
|
|
3780
3780
|
return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
|
|
3781
|
-
|
|
3781
|
+
Fa,
|
|
3782
3782
|
{
|
|
3783
3783
|
ref: o,
|
|
3784
3784
|
name: t,
|
|
@@ -3786,33 +3786,33 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3786
3786
|
children: ({
|
|
3787
3787
|
afterLeave: l,
|
|
3788
3788
|
close: u,
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3789
|
+
config: i,
|
|
3790
|
+
emit: d,
|
|
3791
|
+
getChildModal: s,
|
|
3792
|
+
getParentModal: g,
|
|
3793
|
+
id: v,
|
|
3794
|
+
index: w,
|
|
3795
|
+
isOpen: f,
|
|
3796
|
+
modalContext: y,
|
|
3797
3797
|
onTopOfStack: p,
|
|
3798
3798
|
reload: m,
|
|
3799
|
-
setOpen:
|
|
3799
|
+
setOpen: h,
|
|
3800
3800
|
shouldRender: b
|
|
3801
3801
|
}) => /* @__PURE__ */ R.jsx(
|
|
3802
|
-
|
|
3802
|
+
ro,
|
|
3803
3803
|
{
|
|
3804
3804
|
appear: !0,
|
|
3805
|
-
show:
|
|
3805
|
+
show: f ?? !1,
|
|
3806
3806
|
children: /* @__PURE__ */ R.jsxs(
|
|
3807
3807
|
yc,
|
|
3808
3808
|
{
|
|
3809
3809
|
as: "div",
|
|
3810
3810
|
className: "im-dialog relative z-20",
|
|
3811
|
-
onClose: () =>
|
|
3812
|
-
"data-inertiaui-modal-id":
|
|
3813
|
-
"data-inertiaui-modal-index":
|
|
3811
|
+
onClose: () => i.closeExplicitly ? null : u(),
|
|
3812
|
+
"data-inertiaui-modal-id": v,
|
|
3813
|
+
"data-inertiaui-modal-index": w,
|
|
3814
3814
|
children: [
|
|
3815
|
-
|
|
3815
|
+
w === 0 ? /* @__PURE__ */ R.jsx(
|
|
3816
3816
|
it,
|
|
3817
3817
|
{
|
|
3818
3818
|
enter: "transition transform ease-in-out duration-300",
|
|
@@ -3830,48 +3830,48 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3830
3830
|
) : /* @__PURE__ */ R.jsx("div", {})
|
|
3831
3831
|
}
|
|
3832
3832
|
) : null,
|
|
3833
|
-
|
|
3834
|
-
|
|
3833
|
+
w > 0 && p ? /* @__PURE__ */ R.jsx("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
|
|
3834
|
+
i.slideover ? /* @__PURE__ */ R.jsx(
|
|
3835
3835
|
mc,
|
|
3836
3836
|
{
|
|
3837
|
-
modalContext:
|
|
3838
|
-
|
|
3837
|
+
modalContext: y,
|
|
3838
|
+
config: i,
|
|
3839
3839
|
children: a({
|
|
3840
3840
|
afterLeave: l,
|
|
3841
3841
|
close: u,
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3842
|
+
config: i,
|
|
3843
|
+
emit: d,
|
|
3844
|
+
getChildModal: s,
|
|
3845
|
+
getParentModal: g,
|
|
3846
|
+
id: v,
|
|
3847
|
+
index: w,
|
|
3848
|
+
isOpen: f,
|
|
3849
|
+
modalContext: y,
|
|
3850
3850
|
onTopOfStack: p,
|
|
3851
3851
|
reload: m,
|
|
3852
|
-
setOpen:
|
|
3852
|
+
setOpen: h,
|
|
3853
3853
|
shouldRender: b
|
|
3854
3854
|
})
|
|
3855
3855
|
}
|
|
3856
3856
|
) : /* @__PURE__ */ R.jsx(
|
|
3857
3857
|
vc,
|
|
3858
3858
|
{
|
|
3859
|
-
modalContext:
|
|
3860
|
-
|
|
3859
|
+
modalContext: y,
|
|
3860
|
+
config: i,
|
|
3861
3861
|
children: a({
|
|
3862
3862
|
afterLeave: l,
|
|
3863
3863
|
close: u,
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3864
|
+
config: i,
|
|
3865
|
+
emit: d,
|
|
3866
|
+
getChildModal: s,
|
|
3867
|
+
getParentModal: g,
|
|
3868
|
+
id: v,
|
|
3869
|
+
index: w,
|
|
3870
|
+
isOpen: f,
|
|
3871
|
+
modalContext: y,
|
|
3872
3872
|
onTopOfStack: p,
|
|
3873
3873
|
reload: m,
|
|
3874
|
-
setOpen:
|
|
3874
|
+
setOpen: h,
|
|
3875
3875
|
shouldRender: b
|
|
3876
3876
|
})
|
|
3877
3877
|
}
|
|
@@ -3897,19 +3897,19 @@ const $c = ({
|
|
|
3897
3897
|
onClose: i = null,
|
|
3898
3898
|
onError: d = null,
|
|
3899
3899
|
onFocus: s = null,
|
|
3900
|
-
onStart:
|
|
3900
|
+
onStart: g = null,
|
|
3901
3901
|
onSuccess: v = null,
|
|
3902
3902
|
navigate: w = null,
|
|
3903
3903
|
children: f,
|
|
3904
3904
|
...y
|
|
3905
3905
|
}) => {
|
|
3906
|
-
const [p, m] = Q(!1), [
|
|
3906
|
+
const [p, m] = Q(!1), [h, b] = Q(null), { stack: S, visit: O } = Kt(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
|
|
3907
3907
|
Object.keys(y).forEach((T) => {
|
|
3908
3908
|
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]);
|
|
3909
3909
|
});
|
|
3910
3910
|
const [H, k] = Q(!1);
|
|
3911
3911
|
K(() => {
|
|
3912
|
-
|
|
3912
|
+
h && (h.onTopOfStack && H ? s == null || s() : !h.onTopOfStack && !H && (u == null || u()), k(!h.onTopOfStack));
|
|
3913
3913
|
}, [S]);
|
|
3914
3914
|
const Y = ve(() => {
|
|
3915
3915
|
i == null || i();
|
|
@@ -3917,12 +3917,12 @@ const $c = ({
|
|
|
3917
3917
|
b(null), l == null || l();
|
|
3918
3918
|
}, [l]), $ = ve(
|
|
3919
3919
|
(T) => {
|
|
3920
|
-
T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0),
|
|
3920
|
+
T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), g == null || g()), O(
|
|
3921
3921
|
t,
|
|
3922
3922
|
e,
|
|
3923
3923
|
r,
|
|
3924
3924
|
a,
|
|
3925
|
-
|
|
3925
|
+
qo(aa(y, zn)),
|
|
3926
3926
|
() => Y(S.length),
|
|
3927
3927
|
V,
|
|
3928
3928
|
o,
|
|
@@ -3945,16 +3945,20 @@ const $c = ({
|
|
|
3945
3945
|
}
|
|
3946
3946
|
);
|
|
3947
3947
|
};
|
|
3948
|
+
function Rc() {
|
|
3949
|
+
return Kt().stack[$a()] ?? null;
|
|
3950
|
+
}
|
|
3948
3951
|
export {
|
|
3949
|
-
|
|
3952
|
+
Fa as HeadlessModal,
|
|
3950
3953
|
hc as Modal,
|
|
3951
3954
|
$c as ModalLink,
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
+
$u as ModalRoot,
|
|
3956
|
+
Tu as ModalStackProvider,
|
|
3957
|
+
Vr as getConfig,
|
|
3955
3958
|
Oc as putConfig,
|
|
3956
3959
|
Pc as renderApp,
|
|
3957
3960
|
xc as resetConfig,
|
|
3958
|
-
|
|
3959
|
-
|
|
3961
|
+
Rc as useModal,
|
|
3962
|
+
$a as useModalIndex,
|
|
3963
|
+
Kt as useModalStack
|
|
3960
3964
|
};
|