@inertiaui/modal-react 0.6.4 → 0.8.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.
@@ -1,11 +1,11 @@
1
- var Fo = Object.defineProperty;
2
- var Io = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ce = (t, e, r) => Io(t, typeof e != "symbol" ? e + "" : e, r);
4
- import * as ht from "react";
5
- import A, { createContext as fe, useState as Q, useEffect as Y, useContext as ie, useRef as k, createElement as Ar, useMemo as J, forwardRef as Vr, useImperativeHandle as na, useLayoutEffect as Co, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Pt, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
6
- import Lt from "axios";
7
- import { router as vt, usePage as jo } from "@inertiajs/react";
8
- import { createPortal as Lo } from "react-dom";
1
+ var Io = Object.defineProperty;
2
+ var Co = (t, e, r) => e in t ? Io(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var ce = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import * as gt from "react";
5
+ import A, { createContext as fe, useState as Q, useEffect as z, useContext as ie, useRef as k, createElement as Tr, useMemo as J, forwardRef as qr, useImperativeHandle as aa, useLayoutEffect as Mo, useCallback as ve, Fragment as he, isValidElement as _o, cloneElement as Do, useId as At, useSyncExternalStore as No, useReducer as ko, createRef as jo } from "react";
6
+ import Wt from "axios";
7
+ import { router as mt, usePage as Lo } from "@inertiajs/react";
8
+ import { createPortal as Wo } 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 Wo {
29
+ class Uo {
30
30
  constructor() {
31
31
  this.config = {}, this.reset();
32
32
  }
@@ -62,12 +62,12 @@ class Wo {
62
62
  return n;
63
63
  }
64
64
  }
65
- const zt = new Wo(), Oc = () => zt.reset(), Pc = (t, e) => zt.put(t, e), qr = (t) => zt.get(t), ze = (t, e) => zt.get(t ? `slideover.${e}` : `modal.${e}`);
66
- var Tr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
67
- function Uo(t) {
65
+ const Kt = new Uo(), Pc = () => Kt.reset(), Ac = (t, e) => Kt.put(t, e), Gr = (t) => Kt.get(t), Ye = (t, e) => Kt.get(t ? `slideover.${e}` : `modal.${e}`);
66
+ var $r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
67
+ function Bo(t) {
68
68
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
69
69
  }
70
- function Bo(t) {
70
+ function Ho(t) {
71
71
  if (t.__esModule) return t;
72
72
  var e = t.default;
73
73
  if (typeof e == "function") {
@@ -86,7 +86,7 @@ function Bo(t) {
86
86
  });
87
87
  }), r;
88
88
  }
89
- var $r = { exports: {} }, ft = {};
89
+ var Rr = { exports: {} }, ft = {};
90
90
  /**
91
91
  * @license React
92
92
  * react-jsx-runtime.production.min.js
@@ -96,17 +96,17 @@ var $r = { exports: {} }, ft = {};
96
96
  * This source code is licensed under the MIT license found in the
97
97
  * LICENSE file in the root directory of this source tree.
98
98
  */
99
- var En;
100
- function Ho() {
101
- if (En) return ft;
102
- En = 1;
99
+ var Sn;
100
+ function Vo() {
101
+ if (Sn) return ft;
102
+ Sn = 1;
103
103
  var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
104
104
  function l(u, i, f) {
105
- var s, h = {}, v = null, w = null;
105
+ var s, g = {}, v = null, w = null;
106
106
  f !== void 0 && (v = "" + f), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
107
- for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (h[s] = i[s]);
108
- if (u && u.defaultProps) for (s in i = u.defaultProps, i) h[s] === void 0 && (h[s] = i[s]);
109
- return { $$typeof: e, type: u, key: v, ref: w, props: h, _owner: a.current };
107
+ for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (g[s] = i[s]);
108
+ if (u && u.defaultProps) for (s in i = u.defaultProps, i) g[s] === void 0 && (g[s] = i[s]);
109
+ return { $$typeof: e, type: u, key: v, ref: w, props: g, _owner: a.current };
110
110
  }
111
111
  return ft.Fragment = r, ft.jsx = l, ft.jsxs = l, ft;
112
112
  }
@@ -120,10 +120,10 @@ var dt = {};
120
120
  * This source code is licensed under the MIT license found in the
121
121
  * LICENSE file in the root directory of this source tree.
122
122
  */
123
- var Sn;
124
- function Vo() {
125
- return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
126
- var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), d = Symbol.iterator, y = "@@iterator";
123
+ var xn;
124
+ function qo() {
125
+ return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
126
+ var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), d = Symbol.iterator, y = "@@iterator";
127
127
  function p(c) {
128
128
  if (c === null || typeof c != "object")
129
129
  return null;
@@ -131,7 +131,7 @@ function Vo() {
131
131
  return typeof E == "function" ? E : null;
132
132
  }
133
133
  var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
134
- function g(c) {
134
+ function h(c) {
135
135
  {
136
136
  for (var E = arguments.length, x = new Array(E > 1 ? E - 1 : 0), P = 1; P < E; P++)
137
137
  x[P - 1] = arguments[P];
@@ -151,13 +151,13 @@ function Vo() {
151
151
  var S = !1, O = !1, _ = !1, M = !1, W = !1, H;
152
152
  H = Symbol.for("react.module.reference");
153
153
  function j(c) {
154
- return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === f || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === h || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
154
+ return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === f || 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
155
155
  // types supported by any Flight configuration anywhere since
156
156
  // we don't know which Flight build this will end up being used
157
157
  // with.
158
158
  c.$$typeof === H || c.getModuleId !== void 0));
159
159
  }
160
- function z(c, E, x) {
160
+ function Y(c, E, x) {
161
161
  var P = c.displayName;
162
162
  if (P)
163
163
  return P;
@@ -170,7 +170,7 @@ function Vo() {
170
170
  function $(c) {
171
171
  if (c == null)
172
172
  return null;
173
- if (typeof c.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
173
+ 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")
174
174
  return c.displayName || c.name || null;
175
175
  if (typeof c == "string")
176
176
  return c;
@@ -197,8 +197,8 @@ function Vo() {
197
197
  var x = c;
198
198
  return V(x._context) + ".Provider";
199
199
  case i:
200
- return z(c, c.render, "ForwardRef");
201
- case h:
200
+ return Y(c, c.render, "ForwardRef");
201
+ case g:
202
202
  var P = c.displayName || null;
203
203
  return P !== null ? P : $(c.type) || "Memo";
204
204
  case v: {
@@ -216,7 +216,7 @@ function Vo() {
216
216
  function ee() {
217
217
  }
218
218
  ee.__reactDisabledLog = !0;
219
- function or() {
219
+ function ir() {
220
220
  {
221
221
  if (D === 0) {
222
222
  ue = console.log, pe = console.info, ge = console.warn, te = console.error, ye = console.group, q = console.groupCollapsed, _e = console.groupEnd;
@@ -271,7 +271,7 @@ function Vo() {
271
271
  })
272
272
  });
273
273
  }
274
- D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
274
+ D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
275
275
  }
276
276
  }
277
277
  var lt = m.ReactCurrentDispatcher, Ne;
@@ -288,16 +288,16 @@ function Vo() {
288
288
  ` + Ne + c;
289
289
  }
290
290
  }
291
- var Oe = !1, Ft;
291
+ var Oe = !1, It;
292
292
  {
293
- var ao = typeof WeakMap == "function" ? WeakMap : Map;
294
- Ft = new ao();
293
+ var oo = typeof WeakMap == "function" ? WeakMap : Map;
294
+ It = new oo();
295
295
  }
296
- function ln(c, E) {
296
+ function un(c, E) {
297
297
  if (!c || Oe)
298
298
  return "";
299
299
  {
300
- var x = Ft.get(c);
300
+ var x = It.get(c);
301
301
  if (x !== void 0)
302
302
  return x;
303
303
  }
@@ -306,7 +306,7 @@ function Vo() {
306
306
  var N = Error.prepareStackTrace;
307
307
  Error.prepareStackTrace = void 0;
308
308
  var L;
309
- L = lt.current, lt.current = null, or();
309
+ L = lt.current, lt.current = null, ir();
310
310
  try {
311
311
  if (E) {
312
312
  var C = function() {
@@ -352,7 +352,7 @@ function Vo() {
352
352
  if (G--, K--, K < 0 || F[G] !== ne[K]) {
353
353
  var se = `
354
354
  ` + F[G].replace(" at new ", " at ");
355
- return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && Ft.set(c, se), se;
355
+ return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && It.set(c, se), se;
356
356
  }
357
357
  while (G >= 1 && K >= 0);
358
358
  break;
@@ -361,21 +361,21 @@ function Vo() {
361
361
  } finally {
362
362
  Oe = !1, lt.current = L, De(), Error.prepareStackTrace = N;
363
363
  }
364
- var Ye = c ? c.displayName || c.name : "", ke = Ye ? xe(Ye) : "";
365
- return typeof c == "function" && Ft.set(c, ke), ke;
364
+ var ze = c ? c.displayName || c.name : "", ke = ze ? xe(ze) : "";
365
+ return typeof c == "function" && It.set(c, ke), ke;
366
366
  }
367
- function oo(c, E, x) {
368
- return ln(c, !1);
367
+ function io(c, E, x) {
368
+ return un(c, !1);
369
369
  }
370
- function io(c) {
370
+ function lo(c) {
371
371
  var E = c.prototype;
372
372
  return !!(E && E.isReactComponent);
373
373
  }
374
- function It(c, E, x) {
374
+ function Ct(c, E, x) {
375
375
  if (c == null)
376
376
  return "";
377
377
  if (typeof c == "function")
378
- return ln(c, io(c));
378
+ return un(c, lo(c));
379
379
  if (typeof c == "string")
380
380
  return xe(c);
381
381
  switch (c) {
@@ -387,28 +387,28 @@ function Vo() {
387
387
  if (typeof c == "object")
388
388
  switch (c.$$typeof) {
389
389
  case i:
390
- return oo(c.render);
391
- case h:
392
- return It(c.type, E, x);
390
+ return io(c.render);
391
+ case g:
392
+ return Ct(c.type, E, x);
393
393
  case v: {
394
394
  var P = c, N = P._payload, L = P._init;
395
395
  try {
396
- return It(L(N), E, x);
396
+ return Ct(L(N), E, x);
397
397
  } catch {
398
398
  }
399
399
  }
400
400
  }
401
401
  return "";
402
402
  }
403
- var ut = Object.prototype.hasOwnProperty, un = {}, sn = m.ReactDebugCurrentFrame;
404
- function Ct(c) {
403
+ var ut = Object.prototype.hasOwnProperty, sn = {}, cn = m.ReactDebugCurrentFrame;
404
+ function Mt(c) {
405
405
  if (c) {
406
- var E = c._owner, x = It(c.type, c._source, E ? E.type : null);
407
- sn.setExtraStackFrame(x);
406
+ var E = c._owner, x = Ct(c.type, c._source, E ? E.type : null);
407
+ cn.setExtraStackFrame(x);
408
408
  } else
409
- sn.setExtraStackFrame(null);
409
+ cn.setExtraStackFrame(null);
410
410
  }
411
- function lo(c, E, x, P, N) {
411
+ function uo(c, E, x, P, N) {
412
412
  {
413
413
  var L = Function.call.bind(ut);
414
414
  for (var C in c)
@@ -423,42 +423,42 @@ function Vo() {
423
423
  } catch (G) {
424
424
  F = G;
425
425
  }
426
- F && !(F instanceof Error) && (Ct(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x, C, typeof F), Ct(null)), F instanceof Error && !(F.message in un) && (un[F.message] = !0, Ct(N), g("Failed %s type: %s", x, F.message), Ct(null));
426
+ F && !(F instanceof Error) && (Mt(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, C, typeof F), Mt(null)), F instanceof Error && !(F.message in sn) && (sn[F.message] = !0, Mt(N), h("Failed %s type: %s", x, F.message), Mt(null));
427
427
  }
428
428
  }
429
429
  }
430
- var uo = Array.isArray;
431
- function ir(c) {
432
- return uo(c);
430
+ var so = Array.isArray;
431
+ function lr(c) {
432
+ return so(c);
433
433
  }
434
- function so(c) {
434
+ function co(c) {
435
435
  {
436
436
  var E = typeof Symbol == "function" && Symbol.toStringTag, x = E && c[Symbol.toStringTag] || c.constructor.name || "Object";
437
437
  return x;
438
438
  }
439
439
  }
440
- function co(c) {
440
+ function fo(c) {
441
441
  try {
442
- return cn(c), !1;
442
+ return fn(c), !1;
443
443
  } catch {
444
444
  return !0;
445
445
  }
446
446
  }
447
- function cn(c) {
447
+ function fn(c) {
448
448
  return "" + c;
449
449
  }
450
- function fn(c) {
451
- if (co(c))
452
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), cn(c);
450
+ function dn(c) {
451
+ if (fo(c))
452
+ return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", co(c)), fn(c);
453
453
  }
454
- var st = m.ReactCurrentOwner, fo = {
454
+ var st = m.ReactCurrentOwner, po = {
455
455
  key: !0,
456
456
  ref: !0,
457
457
  __self: !0,
458
458
  __source: !0
459
- }, dn, pn, lr;
460
- lr = {};
461
- function po(c) {
459
+ }, pn, yn, ur;
460
+ ur = {};
461
+ function yo(c) {
462
462
  if (ut.call(c, "ref")) {
463
463
  var E = Object.getOwnPropertyDescriptor(c, "ref").get;
464
464
  if (E && E.isReactWarning)
@@ -466,7 +466,7 @@ function Vo() {
466
466
  }
467
467
  return c.ref !== void 0;
468
468
  }
469
- function yo(c) {
469
+ function vo(c) {
470
470
  if (ut.call(c, "key")) {
471
471
  var E = Object.getOwnPropertyDescriptor(c, "key").get;
472
472
  if (E && E.isReactWarning)
@@ -474,16 +474,16 @@ function Vo() {
474
474
  }
475
475
  return c.key !== void 0;
476
476
  }
477
- function vo(c, E) {
477
+ function mo(c, E) {
478
478
  if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
479
479
  var x = $(st.current.type);
480
- lr[x] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(st.current.type), c.ref), lr[x] = !0);
480
+ ur[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), ur[x] = !0);
481
481
  }
482
482
  }
483
- function mo(c, E) {
483
+ function ho(c, E) {
484
484
  {
485
485
  var x = function() {
486
- dn || (dn = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
486
+ pn || (pn = !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));
487
487
  };
488
488
  x.isReactWarning = !0, Object.defineProperty(c, "key", {
489
489
  get: x,
@@ -491,10 +491,10 @@ function Vo() {
491
491
  });
492
492
  }
493
493
  }
494
- function ho(c, E) {
494
+ function go(c, E) {
495
495
  {
496
496
  var x = function() {
497
- pn || (pn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
497
+ yn || (yn = !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));
498
498
  };
499
499
  x.isReactWarning = !0, Object.defineProperty(c, "ref", {
500
500
  get: x,
@@ -502,7 +502,7 @@ function Vo() {
502
502
  });
503
503
  }
504
504
  }
505
- var go = function(c, E, x, P, N, L, C) {
505
+ var bo = function(c, E, x, P, N, L, C) {
506
506
  var F = {
507
507
  // This tag allows us to uniquely identify this as a React Element
508
508
  $$typeof: e,
@@ -531,12 +531,12 @@ function Vo() {
531
531
  value: N
532
532
  }), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
533
533
  };
534
- function bo(c, E, x, P, N) {
534
+ function wo(c, E, x, P, N) {
535
535
  {
536
536
  var L, C = {}, F = null, ne = null;
537
- x !== void 0 && (fn(x), F = "" + x), yo(E) && (fn(E.key), F = "" + E.key), po(E) && (ne = E.ref, vo(E, N));
537
+ x !== void 0 && (dn(x), F = "" + x), vo(E) && (dn(E.key), F = "" + E.key), yo(E) && (ne = E.ref, mo(E, N));
538
538
  for (L in E)
539
- ut.call(E, L) && !fo.hasOwnProperty(L) && (C[L] = E[L]);
539
+ ut.call(E, L) && !po.hasOwnProperty(L) && (C[L] = E[L]);
540
540
  if (c && c.defaultProps) {
541
541
  var G = c.defaultProps;
542
542
  for (L in G)
@@ -544,28 +544,28 @@ function Vo() {
544
544
  }
545
545
  if (F || ne) {
546
546
  var K = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
547
- F && mo(C, K), ne && ho(C, K);
547
+ F && ho(C, K), ne && go(C, K);
548
548
  }
549
- return go(c, F, ne, N, P, st.current, C);
549
+ return bo(c, F, ne, N, P, st.current, C);
550
550
  }
551
551
  }
552
- var ur = m.ReactCurrentOwner, yn = m.ReactDebugCurrentFrame;
552
+ var sr = m.ReactCurrentOwner, vn = m.ReactDebugCurrentFrame;
553
553
  function Ge(c) {
554
554
  if (c) {
555
- var E = c._owner, x = It(c.type, c._source, E ? E.type : null);
556
- yn.setExtraStackFrame(x);
555
+ var E = c._owner, x = Ct(c.type, c._source, E ? E.type : null);
556
+ vn.setExtraStackFrame(x);
557
557
  } else
558
- yn.setExtraStackFrame(null);
558
+ vn.setExtraStackFrame(null);
559
559
  }
560
- var sr;
561
- sr = !1;
562
- function cr(c) {
560
+ var cr;
561
+ cr = !1;
562
+ function fr(c) {
563
563
  return typeof c == "object" && c !== null && c.$$typeof === e;
564
564
  }
565
- function vn() {
565
+ function mn() {
566
566
  {
567
- if (ur.current) {
568
- var c = $(ur.current.type);
567
+ if (sr.current) {
568
+ var c = $(sr.current.type);
569
569
  if (c)
570
570
  return `
571
571
 
@@ -574,13 +574,13 @@ Check the render method of \`` + c + "`.";
574
574
  return "";
575
575
  }
576
576
  }
577
- function wo(c) {
577
+ function Eo(c) {
578
578
  return "";
579
579
  }
580
- var mn = {};
581
- function Eo(c) {
580
+ var hn = {};
581
+ function So(c) {
582
582
  {
583
- var E = vn();
583
+ var E = mn();
584
584
  if (!E) {
585
585
  var x = typeof c == "string" ? c : c.displayName || c.name;
586
586
  x && (E = `
@@ -590,39 +590,39 @@ Check the top-level render call using <` + x + ">.");
590
590
  return E;
591
591
  }
592
592
  }
593
- function hn(c, E) {
593
+ function gn(c, E) {
594
594
  {
595
595
  if (!c._store || c._store.validated || c.key != null)
596
596
  return;
597
597
  c._store.validated = !0;
598
- var x = Eo(E);
599
- if (mn[x])
598
+ var x = So(E);
599
+ if (hn[x])
600
600
  return;
601
- mn[x] = !0;
601
+ hn[x] = !0;
602
602
  var P = "";
603
- c && c._owner && c._owner !== ur.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
603
+ c && c._owner && c._owner !== sr.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);
604
604
  }
605
605
  }
606
- function gn(c, E) {
606
+ function bn(c, E) {
607
607
  {
608
608
  if (typeof c != "object")
609
609
  return;
610
- if (ir(c))
610
+ if (lr(c))
611
611
  for (var x = 0; x < c.length; x++) {
612
612
  var P = c[x];
613
- cr(P) && hn(P, E);
613
+ fr(P) && gn(P, E);
614
614
  }
615
- else if (cr(c))
615
+ else if (fr(c))
616
616
  c._store && (c._store.validated = !0);
617
617
  else if (c) {
618
618
  var N = p(c);
619
619
  if (typeof N == "function" && N !== c.entries)
620
620
  for (var L = N.call(c), C; !(C = L.next()).done; )
621
- cr(C.value) && hn(C.value, E);
621
+ fr(C.value) && gn(C.value, E);
622
622
  }
623
623
  }
624
624
  }
625
- function So(c) {
625
+ function xo(c) {
626
626
  {
627
627
  var E = c.type;
628
628
  if (E == null || typeof E == "string")
@@ -632,97 +632,97 @@ Check the top-level render call using <` + x + ">.");
632
632
  x = E.propTypes;
633
633
  else if (typeof E == "object" && (E.$$typeof === i || // Note: Memo only checks outer props here.
634
634
  // Inner props are checked in the reconciler.
635
- E.$$typeof === h))
635
+ E.$$typeof === g))
636
636
  x = E.propTypes;
637
637
  else
638
638
  return;
639
639
  if (x) {
640
640
  var P = $(E);
641
- lo(x, c.props, "prop", P, c);
642
- } else if (E.PropTypes !== void 0 && !sr) {
643
- sr = !0;
641
+ uo(x, c.props, "prop", P, c);
642
+ } else if (E.PropTypes !== void 0 && !cr) {
643
+ cr = !0;
644
644
  var N = $(E);
645
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
645
+ h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
646
646
  }
647
- typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
647
+ typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
648
648
  }
649
649
  }
650
- function xo(c) {
650
+ function Oo(c) {
651
651
  {
652
652
  for (var E = Object.keys(c.props), x = 0; x < E.length; x++) {
653
653
  var P = E[x];
654
654
  if (P !== "children" && P !== "key") {
655
- Ge(c), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
655
+ Ge(c), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
656
656
  break;
657
657
  }
658
658
  }
659
- c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
659
+ c.ref !== null && (Ge(c), h("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
660
660
  }
661
661
  }
662
- var bn = {};
663
- function wn(c, E, x, P, N, L) {
662
+ var wn = {};
663
+ function En(c, E, x, P, N, L) {
664
664
  {
665
665
  var C = j(c);
666
666
  if (!C) {
667
667
  var F = "";
668
668
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
669
- var ne = wo();
670
- ne ? F += ne : F += vn();
669
+ var ne = Eo();
670
+ ne ? F += ne : F += mn();
671
671
  var G;
672
- c === null ? G = "null" : ir(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
672
+ c === null ? G = "null" : lr(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);
673
673
  }
674
- var K = bo(c, E, x, N, L);
674
+ var K = wo(c, E, x, N, L);
675
675
  if (K == null)
676
676
  return K;
677
677
  if (C) {
678
678
  var se = E.children;
679
679
  if (se !== void 0)
680
680
  if (P)
681
- if (ir(se)) {
682
- for (var Ye = 0; Ye < se.length; Ye++)
683
- gn(se[Ye], c);
681
+ if (lr(se)) {
682
+ for (var ze = 0; ze < se.length; ze++)
683
+ bn(se[ze], c);
684
684
  Object.freeze && Object.freeze(se);
685
685
  } else
686
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
686
+ 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.");
687
687
  else
688
- gn(se, c);
688
+ bn(se, c);
689
689
  }
690
690
  if (ut.call(E, "key")) {
691
- var ke = $(c), oe = Object.keys(E).filter(function(Ro) {
692
- return Ro !== "key";
693
- }), fr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
694
- if (!bn[ke + fr]) {
695
- var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
696
- g(`A props object containing a "key" prop is being spread into JSX:
691
+ var ke = $(c), oe = Object.keys(E).filter(function(Fo) {
692
+ return Fo !== "key";
693
+ }), dr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
694
+ if (!wn[ke + dr]) {
695
+ var Ro = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
696
+ h(`A props object containing a "key" prop is being spread into JSX:
697
697
  let props = %s;
698
698
  <%s {...props} />
699
699
  React keys must be passed directly to JSX without using spread:
700
700
  let props = %s;
701
- <%s key={someKey} {...props} />`, fr, ke, $o, ke), bn[ke + fr] = !0;
701
+ <%s key={someKey} {...props} />`, dr, ke, Ro, ke), wn[ke + dr] = !0;
702
702
  }
703
703
  }
704
- return c === n ? xo(K) : So(K), K;
704
+ return c === n ? Oo(K) : xo(K), K;
705
705
  }
706
706
  }
707
- function Oo(c, E, x) {
708
- return wn(c, E, x, !0);
709
- }
710
707
  function Po(c, E, x) {
711
- return wn(c, E, x, !1);
708
+ return En(c, E, x, !0);
709
+ }
710
+ function Ao(c, E, x) {
711
+ return En(c, E, x, !1);
712
712
  }
713
- var Ao = Po, To = Oo;
714
- dt.Fragment = n, dt.jsx = Ao, dt.jsxs = To;
713
+ var To = Ao, $o = Po;
714
+ dt.Fragment = n, dt.jsx = To, dt.jsxs = $o;
715
715
  }()), dt;
716
716
  }
717
- process.env.NODE_ENV === "production" ? $r.exports = Ho() : $r.exports = Vo();
718
- var R = $r.exports;
719
- function qo(t, e) {
717
+ process.env.NODE_ENV === "production" ? Rr.exports = Vo() : Rr.exports = qo();
718
+ var R = Rr.exports;
719
+ function Go(t, e) {
720
720
  return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
721
721
  }
722
- function aa(t, e) {
722
+ function oa(t, e) {
723
723
  return Array.isArray(t) ? t.filter((r) => e.includes(r)) : e.reduce((r, n) => (n in t && (r[n] = t[n]), r), {});
724
724
  }
725
- function Go(t) {
725
+ function zo(t) {
726
726
  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), {});
727
727
  }
728
728
  function Yo(t, e = 3, r = 10) {
@@ -739,67 +739,70 @@ function Yo(t, e = 3, r = 10) {
739
739
  }, r);
740
740
  });
741
741
  }
742
- var zo = function(e) {
743
- return Ko(e) && !Xo(e);
742
+ function pt(t) {
743
+ return t ? (t = t.replace(/_/g, "-"), t = t.replace(/-+/g, "-"), /[A-Z]/.test(t) ? (t = t.replace(/\s+/g, "").replace(/_/g, "").replace(/(?:^|\s|-)+([A-Za-z])/g, (e, r) => r.toUpperCase()), t = t.replace(/(.)(?=[A-Z])/g, "$1-"), t.toLowerCase()) : t) : "";
744
+ }
745
+ var Ko = function(e) {
746
+ return Xo(e) && !Jo(e);
744
747
  };
745
- function Ko(t) {
748
+ function Xo(t) {
746
749
  return !!t && typeof t == "object";
747
750
  }
748
- function Xo(t) {
751
+ function Jo(t) {
749
752
  var e = Object.prototype.toString.call(t);
750
- return e === "[object RegExp]" || e === "[object Date]" || Zo(t);
751
- }
752
- var Jo = typeof Symbol == "function" && Symbol.for, Qo = Jo ? Symbol.for("react.element") : 60103;
753
- function Zo(t) {
754
- return t.$$typeof === Qo;
753
+ return e === "[object RegExp]" || e === "[object Date]" || ei(t);
755
754
  }
755
+ var Qo = typeof Symbol == "function" && Symbol.for, Zo = Qo ? Symbol.for("react.element") : 60103;
756
756
  function ei(t) {
757
+ return t.$$typeof === Zo;
758
+ }
759
+ function ti(t) {
757
760
  return Array.isArray(t) ? [] : {};
758
761
  }
759
- function Ot(t, e) {
760
- return e.clone !== !1 && e.isMergeableObject(t) ? Ze(ei(t), t, e) : t;
762
+ function Pt(t, e) {
763
+ return e.clone !== !1 && e.isMergeableObject(t) ? Ze(ti(t), t, e) : t;
761
764
  }
762
- function ti(t, e, r) {
765
+ function ri(t, e, r) {
763
766
  return t.concat(e).map(function(n) {
764
- return Ot(n, r);
767
+ return Pt(n, r);
765
768
  });
766
769
  }
767
- function ri(t, e) {
770
+ function ni(t, e) {
768
771
  if (!e.customMerge)
769
772
  return Ze;
770
773
  var r = e.customMerge(t);
771
774
  return typeof r == "function" ? r : Ze;
772
775
  }
773
- function ni(t) {
776
+ function ai(t) {
774
777
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
775
778
  return Object.propertyIsEnumerable.call(t, e);
776
779
  }) : [];
777
780
  }
778
- function xn(t) {
779
- return Object.keys(t).concat(ni(t));
781
+ function On(t) {
782
+ return Object.keys(t).concat(ai(t));
780
783
  }
781
- function oa(t, e) {
784
+ function ia(t, e) {
782
785
  try {
783
786
  return e in t;
784
787
  } catch {
785
788
  return !1;
786
789
  }
787
790
  }
788
- function ai(t, e) {
789
- return oa(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
791
+ function oi(t, e) {
792
+ return ia(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
790
793
  }
791
- function oi(t, e, r) {
794
+ function ii(t, e, r) {
792
795
  var n = {};
793
- return r.isMergeableObject(t) && xn(t).forEach(function(a) {
794
- n[a] = Ot(t[a], r);
795
- }), xn(e).forEach(function(a) {
796
- ai(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ri(a, r)(t[a], e[a], r) : n[a] = Ot(e[a], r));
796
+ return r.isMergeableObject(t) && On(t).forEach(function(a) {
797
+ n[a] = Pt(t[a], r);
798
+ }), On(e).forEach(function(a) {
799
+ oi(t, a) || (ia(t, a) && r.isMergeableObject(e[a]) ? n[a] = ni(a, r)(t[a], e[a], r) : n[a] = Pt(e[a], r));
797
800
  }), n;
798
801
  }
799
802
  function Ze(t, e, r) {
800
- r = r || {}, r.arrayMerge = r.arrayMerge || ti, r.isMergeableObject = r.isMergeableObject || zo, r.cloneUnlessOtherwiseSpecified = Ot;
803
+ r = r || {}, r.arrayMerge = r.arrayMerge || ri, r.isMergeableObject = r.isMergeableObject || Ko, r.cloneUnlessOtherwiseSpecified = Pt;
801
804
  var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
802
- return o ? n ? r.arrayMerge(t, e, r) : oi(t, e, r) : Ot(e, r);
805
+ return o ? n ? r.arrayMerge(t, e, r) : ii(t, e, r) : Pt(e, r);
803
806
  }
804
807
  Ze.all = function(e, r) {
805
808
  if (!Array.isArray(e))
@@ -808,9 +811,9 @@ Ze.all = function(e, r) {
808
811
  return Ze(n, a, r);
809
812
  }, {});
810
813
  };
811
- var ii = Ze, li = ii;
812
- const ui = /* @__PURE__ */ Uo(li);
813
- var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = SyntaxError, At = TypeError, pi = URIError, yi = function() {
814
+ var li = Ze, ui = li;
815
+ const si = /* @__PURE__ */ Bo(ui);
816
+ var ci = Error, fi = EvalError, di = RangeError, pi = ReferenceError, la = SyntaxError, Tt = TypeError, yi = URIError, vi = function() {
814
817
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
815
818
  return !1;
816
819
  if (typeof Symbol.iterator == "symbol")
@@ -833,54 +836,54 @@ var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = Synta
833
836
  return !1;
834
837
  }
835
838
  return !0;
836
- }, On = typeof Symbol < "u" && Symbol, vi = yi, mi = function() {
837
- return typeof On != "function" || typeof Symbol != "function" || typeof On("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vi();
838
- }, dr = {
839
+ }, Pn = typeof Symbol < "u" && Symbol, mi = vi, hi = function() {
840
+ return typeof Pn != "function" || typeof Symbol != "function" || typeof Pn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : mi();
841
+ }, pr = {
839
842
  __proto__: null,
840
843
  foo: {}
841
- }, hi = Object, gi = function() {
842
- return { __proto__: dr }.foo === dr.foo && !(dr instanceof hi);
843
- }, bi = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Ei = Math.max, Si = "[object Function]", Pn = function(e, r) {
844
+ }, gi = Object, bi = function() {
845
+ return { __proto__: pr }.foo === pr.foo && !(pr instanceof gi);
846
+ }, wi = "Function.prototype.bind called on incompatible ", Ei = Object.prototype.toString, Si = Math.max, xi = "[object Function]", An = function(e, r) {
844
847
  for (var n = [], a = 0; a < e.length; a += 1)
845
848
  n[a] = e[a];
846
849
  for (var o = 0; o < r.length; o += 1)
847
850
  n[o + e.length] = r[o];
848
851
  return n;
849
- }, xi = function(e, r) {
852
+ }, Oi = function(e, r) {
850
853
  for (var n = [], a = r, o = 0; a < e.length; a += 1, o += 1)
851
854
  n[o] = e[a];
852
855
  return n;
853
- }, Oi = function(t, e) {
856
+ }, Pi = function(t, e) {
854
857
  for (var r = "", n = 0; n < t.length; n += 1)
855
858
  r += t[n], n + 1 < t.length && (r += e);
856
859
  return r;
857
- }, Pi = function(e) {
860
+ }, Ai = function(e) {
858
861
  var r = this;
859
- if (typeof r != "function" || wi.apply(r) !== Si)
860
- throw new TypeError(bi + r);
861
- for (var n = xi(arguments, 1), a, o = function() {
862
+ if (typeof r != "function" || Ei.apply(r) !== xi)
863
+ throw new TypeError(wi + r);
864
+ for (var n = Oi(arguments, 1), a, o = function() {
862
865
  if (this instanceof a) {
863
866
  var s = r.apply(
864
867
  this,
865
- Pn(n, arguments)
868
+ An(n, arguments)
866
869
  );
867
870
  return Object(s) === s ? s : this;
868
871
  }
869
872
  return r.apply(
870
873
  e,
871
- Pn(n, arguments)
874
+ An(n, arguments)
872
875
  );
873
- }, l = Ei(0, r.length - n.length), u = [], i = 0; i < l; i++)
876
+ }, l = Si(0, r.length - n.length), u = [], i = 0; i < l; i++)
874
877
  u[i] = "$" + i;
875
- if (a = Function("binder", "return function (" + Oi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
878
+ if (a = Function("binder", "return function (" + Pi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
876
879
  var f = function() {
877
880
  };
878
881
  f.prototype = r.prototype, a.prototype = new f(), f.prototype = null;
879
882
  }
880
883
  return a;
881
- }, Ai = Pi, Gr = Function.prototype.bind || Ai, Ti = Function.prototype.call, $i = Object.prototype.hasOwnProperty, Ri = Gr, Fi = Ri.call(Ti, $i), I, Ii = si, Ci = ci, Mi = fi, _i = di, et = ia, Qe = At, Di = pi, la = Function, pr = function(t) {
884
+ }, Ti = Ai, zr = Function.prototype.bind || Ti, $i = Function.prototype.call, Ri = Object.prototype.hasOwnProperty, Fi = zr, Ii = Fi.call($i, Ri), I, Ci = ci, Mi = fi, _i = di, Di = pi, et = la, Qe = Tt, Ni = yi, ua = Function, yr = function(t) {
882
885
  try {
883
- return la('"use strict"; return (' + t + ").constructor;")();
886
+ return ua('"use strict"; return (' + t + ").constructor;")();
884
887
  } catch {
885
888
  }
886
889
  }, Be = Object.getOwnPropertyDescriptor;
@@ -890,21 +893,21 @@ if (Be)
890
893
  } catch {
891
894
  Be = null;
892
895
  }
893
- var yr = function() {
896
+ var vr = function() {
894
897
  throw new Qe();
895
- }, Ni = Be ? function() {
898
+ }, ki = Be ? function() {
896
899
  try {
897
- return arguments.callee, yr;
900
+ return arguments.callee, vr;
898
901
  } catch {
899
902
  try {
900
903
  return Be(arguments, "callee").get;
901
904
  } catch {
902
- return yr;
905
+ return vr;
903
906
  }
904
907
  }
905
- }() : yr, Ke = mi(), ki = gi(), Z = Object.getPrototypeOf || (ki ? function(t) {
908
+ }() : vr, Ke = hi(), ji = bi(), Z = Object.getPrototypeOf || (ji ? function(t) {
906
909
  return t.__proto__;
907
- } : null), Je = {}, ji = typeof Uint8Array > "u" || !Z ? I : Z(Uint8Array), He = {
910
+ } : null), Je = {}, Li = typeof Uint8Array > "u" || !Z ? I : Z(Uint8Array), He = {
908
911
  __proto__: null,
909
912
  "%AggregateError%": typeof AggregateError > "u" ? I : AggregateError,
910
913
  "%Array%": Array,
@@ -926,14 +929,14 @@ var yr = function() {
926
929
  "%decodeURIComponent%": decodeURIComponent,
927
930
  "%encodeURI%": encodeURI,
928
931
  "%encodeURIComponent%": encodeURIComponent,
929
- "%Error%": Ii,
932
+ "%Error%": Ci,
930
933
  "%eval%": eval,
931
934
  // eslint-disable-line no-eval
932
- "%EvalError%": Ci,
935
+ "%EvalError%": Mi,
933
936
  "%Float32Array%": typeof Float32Array > "u" ? I : Float32Array,
934
937
  "%Float64Array%": typeof Float64Array > "u" ? I : Float64Array,
935
938
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? I : FinalizationRegistry,
936
- "%Function%": la,
939
+ "%Function%": ua,
937
940
  "%GeneratorFunction%": Je,
938
941
  "%Int8Array%": typeof Int8Array > "u" ? I : Int8Array,
939
942
  "%Int16Array%": typeof Int16Array > "u" ? I : Int16Array,
@@ -951,8 +954,8 @@ var yr = function() {
951
954
  "%parseInt%": parseInt,
952
955
  "%Promise%": typeof Promise > "u" ? I : Promise,
953
956
  "%Proxy%": typeof Proxy > "u" ? I : Proxy,
954
- "%RangeError%": Mi,
955
- "%ReferenceError%": _i,
957
+ "%RangeError%": _i,
958
+ "%ReferenceError%": Di,
956
959
  "%Reflect%": typeof Reflect > "u" ? I : Reflect,
957
960
  "%RegExp%": RegExp,
958
961
  "%Set%": typeof Set > "u" ? I : Set,
@@ -962,14 +965,14 @@ var yr = function() {
962
965
  "%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : I,
963
966
  "%Symbol%": Ke ? Symbol : I,
964
967
  "%SyntaxError%": et,
965
- "%ThrowTypeError%": Ni,
966
- "%TypedArray%": ji,
968
+ "%ThrowTypeError%": ki,
969
+ "%TypedArray%": Li,
967
970
  "%TypeError%": Qe,
968
971
  "%Uint8Array%": typeof Uint8Array > "u" ? I : Uint8Array,
969
972
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? I : Uint8ClampedArray,
970
973
  "%Uint16Array%": typeof Uint16Array > "u" ? I : Uint16Array,
971
974
  "%Uint32Array%": typeof Uint32Array > "u" ? I : Uint32Array,
972
- "%URIError%": Di,
975
+ "%URIError%": Ni,
973
976
  "%WeakMap%": typeof WeakMap > "u" ? I : WeakMap,
974
977
  "%WeakRef%": typeof WeakRef > "u" ? I : WeakRef,
975
978
  "%WeakSet%": typeof WeakSet > "u" ? I : WeakSet
@@ -978,17 +981,17 @@ if (Z)
978
981
  try {
979
982
  null.error;
980
983
  } catch (t) {
981
- var Li = Z(Z(t));
982
- He["%Error.prototype%"] = Li;
984
+ var Wi = Z(Z(t));
985
+ He["%Error.prototype%"] = Wi;
983
986
  }
984
- var Wi = function t(e) {
987
+ var Ui = function t(e) {
985
988
  var r;
986
989
  if (e === "%AsyncFunction%")
987
- r = pr("async function () {}");
990
+ r = yr("async function () {}");
988
991
  else if (e === "%GeneratorFunction%")
989
- r = pr("function* () {}");
992
+ r = yr("function* () {}");
990
993
  else if (e === "%AsyncGeneratorFunction%")
991
- r = pr("async function* () {}");
994
+ r = yr("async function* () {}");
992
995
  else if (e === "%AsyncGenerator%") {
993
996
  var n = t("%AsyncGeneratorFunction%");
994
997
  n && (r = n.prototype);
@@ -997,7 +1000,7 @@ var Wi = function t(e) {
997
1000
  a && Z && (r = Z(a.prototype));
998
1001
  }
999
1002
  return He[e] = r, r;
1000
- }, An = {
1003
+ }, Tn = {
1001
1004
  __proto__: null,
1002
1005
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1003
1006
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -1050,21 +1053,21 @@ var Wi = function t(e) {
1050
1053
  "%URIErrorPrototype%": ["URIError", "prototype"],
1051
1054
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1052
1055
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1053
- }, Tt = Gr, Wt = Fi, Ui = Tt.call(Function.call, Array.prototype.concat), Bi = Tt.call(Function.apply, Array.prototype.splice), Tn = Tt.call(Function.call, String.prototype.replace), Ut = Tt.call(Function.call, String.prototype.slice), Hi = Tt.call(Function.call, RegExp.prototype.exec), Vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qi = /\\(\\)?/g, Gi = function(e) {
1054
- var r = Ut(e, 0, 1), n = Ut(e, -1);
1056
+ }, $t = zr, Ut = Ii, Bi = $t.call(Function.call, Array.prototype.concat), Hi = $t.call(Function.apply, Array.prototype.splice), $n = $t.call(Function.call, String.prototype.replace), Bt = $t.call(Function.call, String.prototype.slice), Vi = $t.call(Function.call, RegExp.prototype.exec), qi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Gi = /\\(\\)?/g, zi = function(e) {
1057
+ var r = Bt(e, 0, 1), n = Bt(e, -1);
1055
1058
  if (r === "%" && n !== "%")
1056
1059
  throw new et("invalid intrinsic syntax, expected closing `%`");
1057
1060
  if (n === "%" && r !== "%")
1058
1061
  throw new et("invalid intrinsic syntax, expected opening `%`");
1059
1062
  var a = [];
1060
- return Tn(e, Vi, function(o, l, u, i) {
1061
- a[a.length] = u ? Tn(i, qi, "$1") : l || o;
1063
+ return $n(e, qi, function(o, l, u, i) {
1064
+ a[a.length] = u ? $n(i, Gi, "$1") : l || o;
1062
1065
  }), a;
1063
1066
  }, Yi = function(e, r) {
1064
1067
  var n = e, a;
1065
- if (Wt(An, n) && (a = An[n], n = "%" + a[0] + "%"), Wt(He, n)) {
1068
+ if (Ut(Tn, n) && (a = Tn[n], n = "%" + a[0] + "%"), Ut(He, n)) {
1066
1069
  var o = He[n];
1067
- if (o === Je && (o = Wi(n)), typeof o > "u" && !r)
1070
+ if (o === Je && (o = Ui(n)), typeof o > "u" && !r)
1068
1071
  throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
1069
1072
  return {
1070
1073
  alias: a,
@@ -1078,15 +1081,15 @@ var Wi = function t(e) {
1078
1081
  throw new Qe("intrinsic name must be a non-empty string");
1079
1082
  if (arguments.length > 1 && typeof r != "boolean")
1080
1083
  throw new Qe('"allowMissing" argument must be a boolean');
1081
- if (Hi(/^%?[^%]*%?$/, e) === null)
1084
+ if (Vi(/^%?[^%]*%?$/, e) === null)
1082
1085
  throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1083
- var n = Gi(e), a = n.length > 0 ? n[0] : "", o = Yi("%" + a + "%", r), l = o.name, u = o.value, i = !1, f = o.alias;
1084
- f && (a = f[0], Bi(n, Ui([0, 1], f)));
1085
- for (var s = 1, h = !0; s < n.length; s += 1) {
1086
- var v = n[s], w = Ut(v, 0, 1), d = Ut(v, -1);
1086
+ var n = zi(e), a = n.length > 0 ? n[0] : "", o = Yi("%" + a + "%", r), l = o.name, u = o.value, i = !1, f = o.alias;
1087
+ f && (a = f[0], Hi(n, Bi([0, 1], f)));
1088
+ for (var s = 1, g = !0; s < n.length; s += 1) {
1089
+ var v = n[s], w = Bt(v, 0, 1), d = Bt(v, -1);
1087
1090
  if ((w === '"' || w === "'" || w === "`" || d === '"' || d === "'" || d === "`") && w !== d)
1088
1091
  throw new et("property names with quotes must have matching quotes");
1089
- if ((v === "constructor" || !h) && (i = !0), a += "." + v, l = "%" + a + "%", Wt(He, l))
1092
+ if ((v === "constructor" || !g) && (i = !0), a += "." + v, l = "%" + a + "%", Ut(He, l))
1090
1093
  u = He[l];
1091
1094
  else if (u != null) {
1092
1095
  if (!(v in u)) {
@@ -1096,17 +1099,17 @@ var Wi = function t(e) {
1096
1099
  }
1097
1100
  if (Be && s + 1 >= n.length) {
1098
1101
  var y = Be(u, v);
1099
- h = !!y, h && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
1102
+ g = !!y, g && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
1100
1103
  } else
1101
- h = Wt(u, v), u = u[v];
1102
- h && !i && (He[l] = u);
1104
+ g = Ut(u, v), u = u[v];
1105
+ g && !i && (He[l] = u);
1103
1106
  }
1104
1107
  }
1105
1108
  return u;
1106
- }, ua = { exports: {} }, vr, $n;
1109
+ }, sa = { exports: {} }, mr, Rn;
1107
1110
  function Yr() {
1108
- if ($n) return vr;
1109
- $n = 1;
1111
+ if (Rn) return mr;
1112
+ Rn = 1;
1110
1113
  var t = nt, e = t("%Object.defineProperty%", !0) || !1;
1111
1114
  if (e)
1112
1115
  try {
@@ -1114,16 +1117,16 @@ function Yr() {
1114
1117
  } catch {
1115
1118
  e = !1;
1116
1119
  }
1117
- return vr = e, vr;
1120
+ return mr = e, mr;
1118
1121
  }
1119
- var zi = nt, kt = zi("%Object.getOwnPropertyDescriptor%", !0);
1120
- if (kt)
1122
+ var Ki = nt, jt = Ki("%Object.getOwnPropertyDescriptor%", !0);
1123
+ if (jt)
1121
1124
  try {
1122
- kt([], "length");
1125
+ jt([], "length");
1123
1126
  } catch {
1124
- kt = null;
1127
+ jt = null;
1125
1128
  }
1126
- var sa = kt, Rn = Yr(), Ki = ia, Xe = At, Fn = sa, Xi = function(e, r, n) {
1129
+ var ca = jt, Fn = Yr(), Xi = la, Xe = Tt, In = ca, Ji = function(e, r, n) {
1127
1130
  if (!e || typeof e != "object" && typeof e != "function")
1128
1131
  throw new Xe("`obj` must be an object or a function`");
1129
1132
  if (typeof r != "string" && typeof r != "symbol")
@@ -1136,9 +1139,9 @@ var sa = kt, Rn = Yr(), Ki = ia, Xe = At, Fn = sa, Xi = function(e, r, n) {
1136
1139
  throw new Xe("`nonConfigurable`, if provided, must be a boolean or null");
1137
1140
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
1138
1141
  throw new Xe("`loose`, if provided, must be a boolean");
1139
- var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!Fn && Fn(e, r);
1140
- if (Rn)
1141
- Rn(e, r, {
1142
+ var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!In && In(e, r);
1143
+ if (Fn)
1144
+ Fn(e, r, {
1142
1145
  configurable: l === null && i ? i.configurable : !l,
1143
1146
  enumerable: a === null && i ? i.enumerable : !a,
1144
1147
  value: n,
@@ -1147,37 +1150,37 @@ var sa = kt, Rn = Yr(), Ki = ia, Xe = At, Fn = sa, Xi = function(e, r, n) {
1147
1150
  else if (u || !a && !o && !l)
1148
1151
  e[r] = n;
1149
1152
  else
1150
- throw new Ki("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1151
- }, Rr = Yr(), ca = function() {
1152
- return !!Rr;
1153
+ throw new Xi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1154
+ }, Fr = Yr(), fa = function() {
1155
+ return !!Fr;
1153
1156
  };
1154
- ca.hasArrayLengthDefineBug = function() {
1155
- if (!Rr)
1157
+ fa.hasArrayLengthDefineBug = function() {
1158
+ if (!Fr)
1156
1159
  return null;
1157
1160
  try {
1158
- return Rr([], "length", { value: 1 }).length !== 1;
1161
+ return Fr([], "length", { value: 1 }).length !== 1;
1159
1162
  } catch {
1160
1163
  return !0;
1161
1164
  }
1162
1165
  };
1163
- var Ji = ca, Qi = nt, In = Xi, Zi = Ji(), Cn = sa, Mn = At, el = Qi("%Math.floor%"), tl = function(e, r) {
1166
+ var Qi = fa, Zi = nt, Cn = Ji, el = Qi(), Mn = ca, _n = Tt, tl = Zi("%Math.floor%"), rl = function(e, r) {
1164
1167
  if (typeof e != "function")
1165
- throw new Mn("`fn` is not a function");
1166
- if (typeof r != "number" || r < 0 || r > 4294967295 || el(r) !== r)
1167
- throw new Mn("`length` must be a positive 32-bit integer");
1168
+ throw new _n("`fn` is not a function");
1169
+ if (typeof r != "number" || r < 0 || r > 4294967295 || tl(r) !== r)
1170
+ throw new _n("`length` must be a positive 32-bit integer");
1168
1171
  var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
1169
- if ("length" in e && Cn) {
1170
- var l = Cn(e, "length");
1172
+ if ("length" in e && Mn) {
1173
+ var l = Mn(e, "length");
1171
1174
  l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
1172
1175
  }
1173
- return (a || o || !n) && (Zi ? In(
1176
+ return (a || o || !n) && (el ? Cn(
1174
1177
  /** @type {Parameters<define>[0]} */
1175
1178
  e,
1176
1179
  "length",
1177
1180
  r,
1178
1181
  !0,
1179
1182
  !0
1180
- ) : In(
1183
+ ) : Cn(
1181
1184
  /** @type {Parameters<define>[0]} */
1182
1185
  e,
1183
1186
  "length",
@@ -1185,7 +1188,7 @@ var Ji = ca, Qi = nt, In = Xi, Zi = Ji(), Cn = sa, Mn = At, el = Qi("%Math.floor
1185
1188
  )), e;
1186
1189
  };
1187
1190
  (function(t) {
1188
- var e = Gr, r = nt, n = tl, a = At, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Yr(), f = r("%Math.max%");
1191
+ var e = zr, r = nt, n = rl, a = Tt, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Yr(), f = r("%Math.max%");
1189
1192
  t.exports = function(v) {
1190
1193
  if (typeof v != "function")
1191
1194
  throw new a("a function is required");
@@ -1200,32 +1203,32 @@ var Ji = ca, Qi = nt, In = Xi, Zi = Ji(), Cn = sa, Mn = At, el = Qi("%Math.floor
1200
1203
  return u(e, o, arguments);
1201
1204
  };
1202
1205
  i ? i(t.exports, "apply", { value: s }) : t.exports.apply = s;
1203
- })(ua);
1204
- var rl = ua.exports, fa = nt, da = rl, nl = da(fa("String.prototype.indexOf")), al = function(e, r) {
1205
- var n = fa(e, !!r);
1206
- return typeof n == "function" && nl(e, ".prototype.") > -1 ? da(n) : n;
1206
+ })(sa);
1207
+ var nl = sa.exports, da = nt, pa = nl, al = pa(da("String.prototype.indexOf")), ol = function(e, r) {
1208
+ var n = da(e, !!r);
1209
+ return typeof n == "function" && al(e, ".prototype.") > -1 ? pa(n) : n;
1207
1210
  };
1208
- const ol = {}, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1211
+ const il = {}, ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1209
1212
  __proto__: null,
1210
- default: ol
1211
- }, Symbol.toStringTag, { value: "Module" })), ll = /* @__PURE__ */ Bo(il);
1212
- var zr = typeof Map == "function" && Map.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Map.prototype.forEach, Kr = typeof Set == "function" && Set.prototype, hr = Object.getOwnPropertyDescriptor && Kr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ht = Kr && hr && typeof hr.get == "function" ? hr.get : null, Dn = Kr && Set.prototype.forEach, ul = typeof WeakMap == "function" && WeakMap.prototype, gt = ul ? WeakMap.prototype.has : null, sl = typeof WeakSet == "function" && WeakSet.prototype, bt = sl ? WeakSet.prototype.has : null, cl = typeof WeakRef == "function" && WeakRef.prototype, Nn = cl ? WeakRef.prototype.deref : null, fl = Boolean.prototype.valueOf, dl = Object.prototype.toString, pl = Function.prototype.toString, yl = String.prototype.match, Xr = String.prototype.slice, Re = String.prototype.replace, vl = String.prototype.toUpperCase, kn = String.prototype.toLowerCase, pa = RegExp.prototype.test, jn = Array.prototype.concat, Ee = Array.prototype.join, ml = Array.prototype.slice, Ln = Math.floor, Fr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gr = Object.getOwnPropertySymbols, Ir = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Wn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1213
+ default: il
1214
+ }, Symbol.toStringTag, { value: "Module" })), ul = /* @__PURE__ */ Ho(ll);
1215
+ var Kr = typeof Map == "function" && Map.prototype, hr = Object.getOwnPropertyDescriptor && Kr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ht = Kr && hr && typeof hr.get == "function" ? hr.get : null, Dn = Kr && Map.prototype.forEach, Xr = typeof Set == "function" && Set.prototype, gr = Object.getOwnPropertyDescriptor && Xr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Vt = Xr && gr && typeof gr.get == "function" ? gr.get : null, Nn = Xr && Set.prototype.forEach, sl = typeof WeakMap == "function" && WeakMap.prototype, bt = sl ? WeakMap.prototype.has : null, cl = typeof WeakSet == "function" && WeakSet.prototype, wt = cl ? WeakSet.prototype.has : null, fl = typeof WeakRef == "function" && WeakRef.prototype, kn = fl ? WeakRef.prototype.deref : null, dl = Boolean.prototype.valueOf, pl = Object.prototype.toString, yl = Function.prototype.toString, vl = String.prototype.match, Jr = String.prototype.slice, Re = String.prototype.replace, ml = String.prototype.toUpperCase, jn = String.prototype.toLowerCase, ya = RegExp.prototype.test, Ln = Array.prototype.concat, Ee = Array.prototype.join, hl = Array.prototype.slice, Wn = Math.floor, Ir = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, br = Object.getOwnPropertySymbols, Cr = 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, va = Object.prototype.propertyIsEnumerable, Un = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1213
1216
  return t.__proto__;
1214
1217
  } : null);
1215
- function Un(t, e) {
1216
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || pa.call(/e/, e))
1218
+ function Bn(t, e) {
1219
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || ya.call(/e/, e))
1217
1220
  return e;
1218
1221
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1219
1222
  if (typeof t == "number") {
1220
- var n = t < 0 ? -Ln(-t) : Ln(t);
1223
+ var n = t < 0 ? -Wn(-t) : Wn(t);
1221
1224
  if (n !== t) {
1222
- var a = String(n), o = Xr.call(e, a.length + 1);
1225
+ var a = String(n), o = Jr.call(e, a.length + 1);
1223
1226
  return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
1224
1227
  }
1225
1228
  }
1226
1229
  return Re.call(e, r, "$&_");
1227
1230
  }
1228
- var Cr = ll, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, hl = function t(e, r, n, a) {
1231
+ var Mr = ul, Hn = Mr.custom, Vn = ha(Hn) ? Hn : null, gl = function t(e, r, n, a) {
1229
1232
  var o = r || {};
1230
1233
  if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1231
1234
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -1246,27 +1249,27 @@ var Cr = ll, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, hl = function t(e, r, n, a
1246
1249
  if (typeof e == "boolean")
1247
1250
  return e ? "true" : "false";
1248
1251
  if (typeof e == "string")
1249
- return ga(e, o);
1252
+ return ba(e, o);
1250
1253
  if (typeof e == "number") {
1251
1254
  if (e === 0)
1252
1255
  return 1 / 0 / e > 0 ? "0" : "-0";
1253
1256
  var i = String(e);
1254
- return u ? Un(e, i) : i;
1257
+ return u ? Bn(e, i) : i;
1255
1258
  }
1256
1259
  if (typeof e == "bigint") {
1257
1260
  var f = String(e) + "n";
1258
- return u ? Un(e, f) : f;
1261
+ return u ? Bn(e, f) : f;
1259
1262
  }
1260
1263
  var s = typeof o.depth > "u" ? 5 : o.depth;
1261
1264
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
1262
- return Mr(e) ? "[Array]" : "[Object]";
1263
- var h = Dl(o, n);
1265
+ return _r(e) ? "[Array]" : "[Object]";
1266
+ var g = Nl(o, n);
1264
1267
  if (typeof a > "u")
1265
1268
  a = [];
1266
- else if (ha(a, e) >= 0)
1269
+ else if (ga(a, e) >= 0)
1267
1270
  return "[Circular]";
1268
1271
  function v($, T, D) {
1269
- if (T && (a = ml.call(a), a.push(T)), D) {
1272
+ if (T && (a = hl.call(a), a.push(T)), D) {
1270
1273
  var ue = {
1271
1274
  depth: o.depth
1272
1275
  };
@@ -1274,137 +1277,137 @@ var Cr = ll, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, hl = function t(e, r, n, a
1274
1277
  }
1275
1278
  return t($, o, n + 1, a);
1276
1279
  }
1277
- if (typeof e == "function" && !Vn(e)) {
1278
- var w = Al(e), d = Mt(e, v);
1280
+ if (typeof e == "function" && !qn(e)) {
1281
+ var w = Tl(e), d = _t(e, v);
1279
1282
  return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (d.length > 0 ? " { " + Ee.call(d, ", ") + " }" : "");
1280
1283
  }
1281
- if (ma(e)) {
1282
- var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ir.call(e);
1283
- return typeof e == "object" && !tt ? pt(y) : y;
1284
+ if (ha(e)) {
1285
+ var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Cr.call(e);
1286
+ return typeof e == "object" && !tt ? yt(y) : y;
1284
1287
  }
1285
- if (Cl(e)) {
1286
- for (var p = "<" + kn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1287
- p += " " + m[g].name + "=" + va(gl(m[g].value), "double", o);
1288
- return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + kn.call(String(e.nodeName)) + ">", p;
1288
+ if (Ml(e)) {
1289
+ for (var p = "<" + jn.call(String(e.nodeName)), m = e.attributes || [], h = 0; h < m.length; h++)
1290
+ p += " " + m[h].name + "=" + ma(bl(m[h].value), "double", o);
1291
+ return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + jn.call(String(e.nodeName)) + ">", p;
1289
1292
  }
1290
- if (Mr(e)) {
1293
+ if (_r(e)) {
1291
1294
  if (e.length === 0)
1292
1295
  return "[]";
1293
- var b = Mt(e, v);
1294
- return h && !_l(b) ? "[" + _r(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1296
+ var b = _t(e, v);
1297
+ return g && !Dl(b) ? "[" + Dr(b, g) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1295
1298
  }
1296
- if (wl(e)) {
1297
- var S = Mt(e, v);
1298
- return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(jn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
1299
+ if (El(e)) {
1300
+ var S = _t(e, v);
1301
+ return !("cause" in Error.prototype) && "cause" in e && !va.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(Ln.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
1299
1302
  }
1300
1303
  if (typeof e == "object" && l) {
1301
- if (Hn && typeof e[Hn] == "function" && Cr)
1302
- return Cr(e, { depth: s - n });
1304
+ if (Vn && typeof e[Vn] == "function" && Mr)
1305
+ return Mr(e, { depth: s - n });
1303
1306
  if (l !== "symbol" && typeof e.inspect == "function")
1304
1307
  return e.inspect();
1305
1308
  }
1306
- if (Tl(e)) {
1309
+ if ($l(e)) {
1307
1310
  var O = [];
1308
- return _n && _n.call(e, function($, T) {
1311
+ return Dn && Dn.call(e, function($, T) {
1309
1312
  O.push(v(T, e, !0) + " => " + v($, e));
1310
- }), qn("Map", Bt.call(e), O, h);
1313
+ }), Gn("Map", Ht.call(e), O, g);
1311
1314
  }
1312
- if (Fl(e)) {
1315
+ if (Il(e)) {
1313
1316
  var _ = [];
1314
- return Dn && Dn.call(e, function($) {
1317
+ return Nn && Nn.call(e, function($) {
1315
1318
  _.push(v($, e));
1316
- }), qn("Set", Ht.call(e), _, h);
1319
+ }), Gn("Set", Vt.call(e), _, g);
1317
1320
  }
1318
- if ($l(e))
1319
- return br("WeakMap");
1320
- if (Il(e))
1321
- return br("WeakSet");
1322
1321
  if (Rl(e))
1323
- return br("WeakRef");
1324
- if (Sl(e))
1325
- return pt(v(Number(e)));
1326
- if (Ol(e))
1327
- return pt(v(Fr.call(e)));
1322
+ return wr("WeakMap");
1323
+ if (Cl(e))
1324
+ return wr("WeakSet");
1325
+ if (Fl(e))
1326
+ return wr("WeakRef");
1328
1327
  if (xl(e))
1329
- return pt(fl.call(e));
1330
- if (El(e))
1331
- return pt(v(String(e)));
1328
+ return yt(v(Number(e)));
1329
+ if (Pl(e))
1330
+ return yt(v(Ir.call(e)));
1331
+ if (Ol(e))
1332
+ return yt(dl.call(e));
1333
+ if (Sl(e))
1334
+ return yt(v(String(e)));
1332
1335
  if (typeof window < "u" && e === window)
1333
1336
  return "{ [object Window] }";
1334
- if (typeof globalThis < "u" && e === globalThis || typeof Tr < "u" && e === Tr)
1337
+ if (typeof globalThis < "u" && e === globalThis || typeof $r < "u" && e === $r)
1335
1338
  return "{ [object globalThis] }";
1336
- if (!bl(e) && !Vn(e)) {
1337
- var M = Mt(e, v), W = Wn ? Wn(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", j = !W && re && Object(e) === e && re in e ? Xr.call(Ce(e), 8, -1) : H ? "Object" : "", z = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (j || H ? "[" + Ee.call(jn.call([], j || [], H || []), ": ") + "] " : "");
1338
- return M.length === 0 ? V + "{}" : h ? V + "{" + _r(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1339
+ if (!wl(e) && !qn(e)) {
1340
+ var M = _t(e, v), W = Un ? Un(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", j = !W && re && Object(e) === e && re in e ? Jr.call(Ce(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (j || H ? "[" + Ee.call(Ln.call([], j || [], H || []), ": ") + "] " : "");
1341
+ return M.length === 0 ? V + "{}" : g ? V + "{" + Dr(M, g) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1339
1342
  }
1340
1343
  return String(e);
1341
1344
  };
1342
- function va(t, e, r) {
1345
+ function ma(t, e, r) {
1343
1346
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
1344
1347
  return n + t + n;
1345
1348
  }
1346
- function gl(t) {
1349
+ function bl(t) {
1347
1350
  return Re.call(String(t), /"/g, "&quot;");
1348
1351
  }
1349
- function Mr(t) {
1352
+ function _r(t) {
1350
1353
  return Ce(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
1351
1354
  }
1352
- function bl(t) {
1355
+ function wl(t) {
1353
1356
  return Ce(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
1354
1357
  }
1355
- function Vn(t) {
1358
+ function qn(t) {
1356
1359
  return Ce(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
1357
1360
  }
1358
- function wl(t) {
1361
+ function El(t) {
1359
1362
  return Ce(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
1360
1363
  }
1361
- function El(t) {
1364
+ function Sl(t) {
1362
1365
  return Ce(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
1363
1366
  }
1364
- function Sl(t) {
1367
+ function xl(t) {
1365
1368
  return Ce(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
1366
1369
  }
1367
- function xl(t) {
1370
+ function Ol(t) {
1368
1371
  return Ce(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
1369
1372
  }
1370
- function ma(t) {
1373
+ function ha(t) {
1371
1374
  if (tt)
1372
1375
  return t && typeof t == "object" && t instanceof Symbol;
1373
1376
  if (typeof t == "symbol")
1374
1377
  return !0;
1375
- if (!t || typeof t != "object" || !Ir)
1378
+ if (!t || typeof t != "object" || !Cr)
1376
1379
  return !1;
1377
1380
  try {
1378
- return Ir.call(t), !0;
1381
+ return Cr.call(t), !0;
1379
1382
  } catch {
1380
1383
  }
1381
1384
  return !1;
1382
1385
  }
1383
- function Ol(t) {
1384
- if (!t || typeof t != "object" || !Fr)
1386
+ function Pl(t) {
1387
+ if (!t || typeof t != "object" || !Ir)
1385
1388
  return !1;
1386
1389
  try {
1387
- return Fr.call(t), !0;
1390
+ return Ir.call(t), !0;
1388
1391
  } catch {
1389
1392
  }
1390
1393
  return !1;
1391
1394
  }
1392
- var Pl = Object.prototype.hasOwnProperty || function(t) {
1395
+ var Al = Object.prototype.hasOwnProperty || function(t) {
1393
1396
  return t in this;
1394
1397
  };
1395
1398
  function Te(t, e) {
1396
- return Pl.call(t, e);
1399
+ return Al.call(t, e);
1397
1400
  }
1398
1401
  function Ce(t) {
1399
- return dl.call(t);
1402
+ return pl.call(t);
1400
1403
  }
1401
- function Al(t) {
1404
+ function Tl(t) {
1402
1405
  if (t.name)
1403
1406
  return t.name;
1404
- var e = yl.call(pl.call(t), /^function\s*([\w$]+)/);
1407
+ var e = vl.call(yl.call(t), /^function\s*([\w$]+)/);
1405
1408
  return e ? e[1] : null;
1406
1409
  }
1407
- function ha(t, e) {
1410
+ function ga(t, e) {
1408
1411
  if (t.indexOf)
1409
1412
  return t.indexOf(e);
1410
1413
  for (var r = 0, n = t.length; r < n; r++)
@@ -1412,13 +1415,13 @@ function ha(t, e) {
1412
1415
  return r;
1413
1416
  return -1;
1414
1417
  }
1415
- function Tl(t) {
1416
- if (!Bt || !t || typeof t != "object")
1418
+ function $l(t) {
1419
+ if (!Ht || !t || typeof t != "object")
1417
1420
  return !1;
1418
1421
  try {
1419
- Bt.call(t);
1422
+ Ht.call(t);
1420
1423
  try {
1421
- Ht.call(t);
1424
+ Vt.call(t);
1422
1425
  } catch {
1423
1426
  return !0;
1424
1427
  }
@@ -1427,13 +1430,13 @@ function Tl(t) {
1427
1430
  }
1428
1431
  return !1;
1429
1432
  }
1430
- function $l(t) {
1431
- if (!gt || !t || typeof t != "object")
1433
+ function Rl(t) {
1434
+ if (!bt || !t || typeof t != "object")
1432
1435
  return !1;
1433
1436
  try {
1434
- gt.call(t, gt);
1437
+ bt.call(t, bt);
1435
1438
  try {
1436
- bt.call(t, bt);
1439
+ wt.call(t, wt);
1437
1440
  } catch {
1438
1441
  return !0;
1439
1442
  }
@@ -1442,22 +1445,22 @@ function $l(t) {
1442
1445
  }
1443
1446
  return !1;
1444
1447
  }
1445
- function Rl(t) {
1446
- if (!Nn || !t || typeof t != "object")
1448
+ function Fl(t) {
1449
+ if (!kn || !t || typeof t != "object")
1447
1450
  return !1;
1448
1451
  try {
1449
- return Nn.call(t), !0;
1452
+ return kn.call(t), !0;
1450
1453
  } catch {
1451
1454
  }
1452
1455
  return !1;
1453
1456
  }
1454
- function Fl(t) {
1455
- if (!Ht || !t || typeof t != "object")
1457
+ function Il(t) {
1458
+ if (!Vt || !t || typeof t != "object")
1456
1459
  return !1;
1457
1460
  try {
1458
- Ht.call(t);
1461
+ Vt.call(t);
1459
1462
  try {
1460
- Bt.call(t);
1463
+ Ht.call(t);
1461
1464
  } catch {
1462
1465
  return !0;
1463
1466
  }
@@ -1466,13 +1469,13 @@ function Fl(t) {
1466
1469
  }
1467
1470
  return !1;
1468
1471
  }
1469
- function Il(t) {
1470
- if (!bt || !t || typeof t != "object")
1472
+ function Cl(t) {
1473
+ if (!wt || !t || typeof t != "object")
1471
1474
  return !1;
1472
1475
  try {
1473
- bt.call(t, bt);
1476
+ wt.call(t, wt);
1474
1477
  try {
1475
- gt.call(t, gt);
1478
+ bt.call(t, bt);
1476
1479
  } catch {
1477
1480
  return !0;
1478
1481
  }
@@ -1481,18 +1484,18 @@ function Il(t) {
1481
1484
  }
1482
1485
  return !1;
1483
1486
  }
1484
- function Cl(t) {
1487
+ function Ml(t) {
1485
1488
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
1486
1489
  }
1487
- function ga(t, e) {
1490
+ function ba(t, e) {
1488
1491
  if (t.length > e.maxStringLength) {
1489
1492
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1490
- return ga(Xr.call(t, 0, e.maxStringLength), e) + n;
1493
+ return ba(Jr.call(t, 0, e.maxStringLength), e) + n;
1491
1494
  }
1492
- var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ml);
1493
- return va(a, "single", e);
1495
+ var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, _l);
1496
+ return ma(a, "single", e);
1494
1497
  }
1495
- function Ml(t) {
1498
+ function _l(t) {
1496
1499
  var e = t.charCodeAt(0), r = {
1497
1500
  8: "b",
1498
1501
  9: "t",
@@ -1500,26 +1503,26 @@ function Ml(t) {
1500
1503
  12: "f",
1501
1504
  13: "r"
1502
1505
  }[e];
1503
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + vl.call(e.toString(16));
1506
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + ml.call(e.toString(16));
1504
1507
  }
1505
- function pt(t) {
1508
+ function yt(t) {
1506
1509
  return "Object(" + t + ")";
1507
1510
  }
1508
- function br(t) {
1511
+ function wr(t) {
1509
1512
  return t + " { ? }";
1510
1513
  }
1511
- function qn(t, e, r, n) {
1512
- var a = n ? _r(r, n) : Ee.call(r, ", ");
1514
+ function Gn(t, e, r, n) {
1515
+ var a = n ? Dr(r, n) : Ee.call(r, ", ");
1513
1516
  return t + " (" + e + ") {" + a + "}";
1514
1517
  }
1515
- function _l(t) {
1518
+ function Dl(t) {
1516
1519
  for (var e = 0; e < t.length; e++)
1517
- if (ha(t[e], `
1520
+ if (ga(t[e], `
1518
1521
  `) >= 0)
1519
1522
  return !1;
1520
1523
  return !0;
1521
1524
  }
1522
- function Dl(t, e) {
1525
+ function Nl(t, e) {
1523
1526
  var r;
1524
1527
  if (t.indent === " ")
1525
1528
  r = " ";
@@ -1532,7 +1535,7 @@ function Dl(t, e) {
1532
1535
  prev: Ee.call(Array(e + 1), r)
1533
1536
  };
1534
1537
  }
1535
- function _r(t, e) {
1538
+ function Dr(t, e) {
1536
1539
  if (t.length === 0)
1537
1540
  return "";
1538
1541
  var r = `
@@ -1540,36 +1543,36 @@ function _r(t, e) {
1540
1543
  return r + Ee.call(t, "," + r) + `
1541
1544
  ` + e.prev;
1542
1545
  }
1543
- function Mt(t, e) {
1544
- var r = Mr(t), n = [];
1546
+ function _t(t, e) {
1547
+ var r = _r(t), n = [];
1545
1548
  if (r) {
1546
1549
  n.length = t.length;
1547
1550
  for (var a = 0; a < t.length; a++)
1548
1551
  n[a] = Te(t, a) ? e(t[a], t) : "";
1549
1552
  }
1550
- var o = typeof gr == "function" ? gr(t) : [], l;
1553
+ var o = typeof br == "function" ? br(t) : [], l;
1551
1554
  if (tt) {
1552
1555
  l = {};
1553
1556
  for (var u = 0; u < o.length; u++)
1554
1557
  l["$" + o[u]] = o[u];
1555
1558
  }
1556
1559
  for (var i in t)
1557
- Te(t, i) && (r && String(Number(i)) === i && i < t.length || tt && l["$" + i] instanceof Symbol || (pa.call(/[^\w$]/, i) ? n.push(e(i, t) + ": " + e(t[i], t)) : n.push(i + ": " + e(t[i], t))));
1558
- if (typeof gr == "function")
1560
+ Te(t, i) && (r && String(Number(i)) === i && i < t.length || tt && l["$" + i] instanceof Symbol || (ya.call(/[^\w$]/, i) ? n.push(e(i, t) + ": " + e(t[i], t)) : n.push(i + ": " + e(t[i], t))));
1561
+ if (typeof br == "function")
1559
1562
  for (var f = 0; f < o.length; f++)
1560
- ya.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
1563
+ va.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
1561
1564
  return n;
1562
1565
  }
1563
- var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%", !0), jl = at("WeakMap.prototype.get", !0), Ll = at("WeakMap.prototype.set", !0), Wl = at("WeakMap.prototype.has", !0), Ul = at("Map.prototype.get", !0), Bl = at("Map.prototype.set", !0), Hl = at("Map.prototype.has", !0), Jr = function(t, e) {
1566
+ var wa = nt, at = ol, kl = gl, jl = Tt, Dt = wa("%WeakMap%", !0), Nt = wa("%Map%", !0), Ll = at("WeakMap.prototype.get", !0), Wl = at("WeakMap.prototype.set", !0), Ul = at("WeakMap.prototype.has", !0), Bl = at("Map.prototype.get", !0), Hl = at("Map.prototype.set", !0), Vl = at("Map.prototype.has", !0), Qr = function(t, e) {
1564
1567
  for (var r = t, n; (n = r.next) !== null; r = n)
1565
1568
  if (n.key === e)
1566
1569
  return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
1567
1570
  t.next, t.next = n, n;
1568
- }, Vl = function(t, e) {
1569
- var r = Jr(t, e);
1571
+ }, ql = function(t, e) {
1572
+ var r = Qr(t, e);
1570
1573
  return r && r.value;
1571
- }, ql = function(t, e, r) {
1572
- var n = Jr(t, e);
1574
+ }, Gl = function(t, e, r) {
1575
+ var n = Qr(t, e);
1573
1576
  n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
1574
1577
  {
1575
1578
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -1577,60 +1580,60 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1577
1580
  next: t.next,
1578
1581
  value: r
1579
1582
  };
1580
- }, Gl = function(t, e) {
1581
- return !!Jr(t, e);
1583
+ }, zl = function(t, e) {
1584
+ return !!Qr(t, e);
1582
1585
  }, Yl = function() {
1583
1586
  var e, r, n, a = {
1584
1587
  assert: function(o) {
1585
1588
  if (!a.has(o))
1586
- throw new kl("Side channel does not contain " + Nl(o));
1589
+ throw new jl("Side channel does not contain " + kl(o));
1587
1590
  },
1588
1591
  get: function(o) {
1589
- if (_t && o && (typeof o == "object" || typeof o == "function")) {
1592
+ if (Dt && o && (typeof o == "object" || typeof o == "function")) {
1590
1593
  if (e)
1591
- return jl(e, o);
1592
- } else if (Dt) {
1594
+ return Ll(e, o);
1595
+ } else if (Nt) {
1593
1596
  if (r)
1594
- return Ul(r, o);
1597
+ return Bl(r, o);
1595
1598
  } else if (n)
1596
- return Vl(n, o);
1599
+ return ql(n, o);
1597
1600
  },
1598
1601
  has: function(o) {
1599
- if (_t && o && (typeof o == "object" || typeof o == "function")) {
1602
+ if (Dt && o && (typeof o == "object" || typeof o == "function")) {
1600
1603
  if (e)
1601
- return Wl(e, o);
1602
- } else if (Dt) {
1604
+ return Ul(e, o);
1605
+ } else if (Nt) {
1603
1606
  if (r)
1604
- return Hl(r, o);
1607
+ return Vl(r, o);
1605
1608
  } else if (n)
1606
- return Gl(n, o);
1609
+ return zl(n, o);
1607
1610
  return !1;
1608
1611
  },
1609
1612
  set: function(o, l) {
1610
- _t && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new _t()), Ll(e, o, l)) : Dt ? (r || (r = new Dt()), Bl(r, o, l)) : (n || (n = { key: {}, next: null }), ql(n, o, l));
1613
+ Dt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Dt()), Wl(e, o, l)) : Nt ? (r || (r = new Nt()), Hl(r, o, l)) : (n || (n = { key: {}, next: null }), Gl(n, o, l));
1611
1614
  }
1612
1615
  };
1613
1616
  return a;
1614
- }, zl = String.prototype.replace, Kl = /%20/g, wr = {
1617
+ }, Kl = String.prototype.replace, Xl = /%20/g, Er = {
1615
1618
  RFC1738: "RFC1738",
1616
1619
  RFC3986: "RFC3986"
1617
- }, Qr = {
1618
- default: wr.RFC3986,
1620
+ }, Zr = {
1621
+ default: Er.RFC3986,
1619
1622
  formatters: {
1620
1623
  RFC1738: function(t) {
1621
- return zl.call(t, Kl, "+");
1624
+ return Kl.call(t, Xl, "+");
1622
1625
  },
1623
1626
  RFC3986: function(t) {
1624
1627
  return String(t);
1625
1628
  }
1626
1629
  },
1627
- RFC1738: wr.RFC1738,
1628
- RFC3986: wr.RFC3986
1629
- }, Xl = Qr, Er = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1630
+ RFC1738: Er.RFC1738,
1631
+ RFC3986: Er.RFC3986
1632
+ }, Jl = Zr, Sr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1630
1633
  for (var t = [], e = 0; e < 256; ++e)
1631
1634
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1632
1635
  return t;
1633
- }(), Jl = function(e) {
1636
+ }(), Ql = function(e) {
1634
1637
  for (; e.length > 1; ) {
1635
1638
  var r = e.pop(), n = r.obj[r.prop];
1636
1639
  if (Le(n)) {
@@ -1639,18 +1642,18 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1639
1642
  r.obj[r.prop] = a;
1640
1643
  }
1641
1644
  }
1642
- }, wa = function(e, r) {
1645
+ }, Ea = function(e, r) {
1643
1646
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
1644
1647
  typeof e[a] < "u" && (n[a] = e[a]);
1645
1648
  return n;
1646
- }, Ql = function t(e, r, n) {
1649
+ }, Zl = function t(e, r, n) {
1647
1650
  if (!r)
1648
1651
  return e;
1649
1652
  if (typeof r != "object") {
1650
1653
  if (Le(e))
1651
1654
  e.push(r);
1652
1655
  else if (e && typeof e == "object")
1653
- (n && (n.plainObjects || n.allowPrototypes) || !Er.call(Object.prototype, r)) && (e[r] = !0);
1656
+ (n && (n.plainObjects || n.allowPrototypes) || !Sr.call(Object.prototype, r)) && (e[r] = !0);
1654
1657
  else
1655
1658
  return [e, r];
1656
1659
  return e;
@@ -1658,21 +1661,21 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1658
1661
  if (!e || typeof e != "object")
1659
1662
  return [e].concat(r);
1660
1663
  var a = e;
1661
- return Le(e) && !Le(r) && (a = wa(e, n)), Le(e) && Le(r) ? (r.forEach(function(o, l) {
1662
- if (Er.call(e, l)) {
1664
+ return Le(e) && !Le(r) && (a = Ea(e, n)), Le(e) && Le(r) ? (r.forEach(function(o, l) {
1665
+ if (Sr.call(e, l)) {
1663
1666
  var u = e[l];
1664
1667
  u && typeof u == "object" && o && typeof o == "object" ? e[l] = t(u, o, n) : e.push(o);
1665
1668
  } else
1666
1669
  e[l] = o;
1667
1670
  }), e) : Object.keys(r).reduce(function(o, l) {
1668
1671
  var u = r[l];
1669
- return Er.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
1672
+ return Sr.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
1670
1673
  }, a);
1671
- }, Zl = function(e, r) {
1674
+ }, eu = function(e, r) {
1672
1675
  return Object.keys(r).reduce(function(n, a) {
1673
1676
  return n[a] = r[a], n;
1674
1677
  }, e);
1675
- }, eu = function(t, e, r) {
1678
+ }, tu = function(t, e, r) {
1676
1679
  var n = t.replace(/\+/g, " ");
1677
1680
  if (r === "iso-8859-1")
1678
1681
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1681,7 +1684,7 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1681
1684
  } catch {
1682
1685
  return n;
1683
1686
  }
1684
- }, Sr = 1024, tu = function(e, r, n, a, o) {
1687
+ }, xr = 1024, ru = function(e, r, n, a, o) {
1685
1688
  if (e.length === 0)
1686
1689
  return e;
1687
1690
  var l = e;
@@ -1689,11 +1692,11 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1689
1692
  return escape(l).replace(/%u[0-9a-f]{4}/gi, function(w) {
1690
1693
  return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
1691
1694
  });
1692
- for (var u = "", i = 0; i < l.length; i += Sr) {
1693
- for (var f = l.length >= Sr ? l.slice(i, i + Sr) : l, s = [], h = 0; h < f.length; ++h) {
1694
- var v = f.charCodeAt(h);
1695
- if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Xl.RFC1738 && (v === 40 || v === 41)) {
1696
- s[s.length] = f.charAt(h);
1695
+ for (var u = "", i = 0; i < l.length; i += xr) {
1696
+ for (var f = l.length >= xr ? l.slice(i, i + xr) : l, s = [], g = 0; g < f.length; ++g) {
1697
+ var v = f.charCodeAt(g);
1698
+ if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Jl.RFC1738 && (v === 40 || v === 41)) {
1699
+ s[s.length] = f.charAt(g);
1697
1700
  continue;
1698
1701
  }
1699
1702
  if (v < 128) {
@@ -1708,43 +1711,43 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1708
1711
  s[s.length] = be[224 | v >> 12] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1709
1712
  continue;
1710
1713
  }
1711
- h += 1, v = 65536 + ((v & 1023) << 10 | f.charCodeAt(h) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1714
+ g += 1, v = 65536 + ((v & 1023) << 10 | f.charCodeAt(g) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1712
1715
  }
1713
1716
  u += s.join("");
1714
1717
  }
1715
1718
  return u;
1716
- }, ru = function(e) {
1719
+ }, nu = function(e) {
1717
1720
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < r.length; ++a)
1718
1721
  for (var o = r[a], l = o.obj[o.prop], u = Object.keys(l), i = 0; i < u.length; ++i) {
1719
1722
  var f = u[i], s = l[f];
1720
1723
  typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: f }), n.push(s));
1721
1724
  }
1722
- return Jl(r), e;
1723
- }, nu = function(e) {
1724
- return Object.prototype.toString.call(e) === "[object RegExp]";
1725
+ return Ql(r), e;
1725
1726
  }, au = function(e) {
1727
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1728
+ }, ou = function(e) {
1726
1729
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1727
- }, ou = function(e, r) {
1728
- return [].concat(e, r);
1729
1730
  }, iu = function(e, r) {
1731
+ return [].concat(e, r);
1732
+ }, lu = function(e, r) {
1730
1733
  if (Le(e)) {
1731
1734
  for (var n = [], a = 0; a < e.length; a += 1)
1732
1735
  n.push(r(e[a]));
1733
1736
  return n;
1734
1737
  }
1735
1738
  return r(e);
1736
- }, Ea = {
1737
- arrayToObject: wa,
1738
- assign: Zl,
1739
- combine: ou,
1740
- compact: ru,
1741
- decode: eu,
1742
- encode: tu,
1743
- isBuffer: au,
1744
- isRegExp: nu,
1745
- maybeMap: iu,
1746
- merge: Ql
1747
- }, Sa = Yl, jt = Ea, wt = Qr, lu = Object.prototype.hasOwnProperty, xa = {
1739
+ }, Sa = {
1740
+ arrayToObject: Ea,
1741
+ assign: eu,
1742
+ combine: iu,
1743
+ compact: nu,
1744
+ decode: tu,
1745
+ encode: ru,
1746
+ isBuffer: ou,
1747
+ isRegExp: au,
1748
+ maybeMap: lu,
1749
+ merge: Zl
1750
+ }, xa = Yl, Lt = Sa, Et = Zr, uu = Object.prototype.hasOwnProperty, Oa = {
1748
1751
  brackets: function(e) {
1749
1752
  return e + "[]";
1750
1753
  },
@@ -1755,9 +1758,9 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1755
1758
  repeat: function(e) {
1756
1759
  return e;
1757
1760
  }
1758
- }, we = Array.isArray, uu = Array.prototype.push, Oa = function(t, e) {
1759
- uu.apply(t, we(e) ? e : [e]);
1760
- }, su = Date.prototype.toISOString, Gn = wt.default, X = {
1761
+ }, we = Array.isArray, su = Array.prototype.push, Pa = function(t, e) {
1762
+ su.apply(t, we(e) ? e : [e]);
1763
+ }, cu = Date.prototype.toISOString, zn = Et.default, X = {
1761
1764
  addQueryPrefix: !1,
1762
1765
  allowDots: !1,
1763
1766
  allowEmptyArrays: !1,
@@ -1767,37 +1770,37 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1767
1770
  delimiter: "&",
1768
1771
  encode: !0,
1769
1772
  encodeDotInKeys: !1,
1770
- encoder: jt.encode,
1773
+ encoder: Lt.encode,
1771
1774
  encodeValuesOnly: !1,
1772
- format: Gn,
1773
- formatter: wt.formatters[Gn],
1775
+ format: zn,
1776
+ formatter: Et.formatters[zn],
1774
1777
  // deprecated
1775
1778
  indices: !1,
1776
1779
  serializeDate: function(e) {
1777
- return su.call(e);
1780
+ return cu.call(e);
1778
1781
  },
1779
1782
  skipNulls: !1,
1780
1783
  strictNullHandling: !1
1781
- }, cu = function(e) {
1784
+ }, fu = function(e) {
1782
1785
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1783
- }, xr = {}, fu = function t(e, r, n, a, o, l, u, i, f, s, h, v, w, d, y, p, m, g) {
1784
- for (var b = e, S = g, O = 0, _ = !1; (S = S.get(xr)) !== void 0 && !_; ) {
1786
+ }, Or = {}, du = function t(e, r, n, a, o, l, u, i, f, s, g, v, w, d, y, p, m, h) {
1787
+ for (var b = e, S = h, O = 0, _ = !1; (S = S.get(Or)) !== void 0 && !_; ) {
1785
1788
  var M = S.get(e);
1786
1789
  if (O += 1, typeof M < "u") {
1787
1790
  if (M === O)
1788
1791
  throw new RangeError("Cyclic object value");
1789
1792
  _ = !0;
1790
1793
  }
1791
- typeof S.get(xr) > "u" && (O = 0);
1794
+ typeof S.get(Or) > "u" && (O = 0);
1792
1795
  }
1793
- if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = jt.maybeMap(b, function(ye) {
1796
+ if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = Lt.maybeMap(b, function(ye) {
1794
1797
  return ye instanceof Date ? w(ye) : ye;
1795
1798
  })), b === null) {
1796
1799
  if (l)
1797
1800
  return f && !p ? f(r, X.encoder, m, "key", d) : r;
1798
1801
  b = "";
1799
1802
  }
1800
- if (cu(b) || jt.isBuffer(b)) {
1803
+ if (fu(b) || Lt.isBuffer(b)) {
1801
1804
  if (f) {
1802
1805
  var W = p ? r : f(r, X.encoder, m, "key", d);
1803
1806
  return [y(W) + "=" + y(f(b, X.encoder, m, "value", d))];
@@ -1809,12 +1812,12 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1809
1812
  return H;
1810
1813
  var j;
1811
1814
  if (n === "comma" && we(b))
1812
- p && f && (b = jt.maybeMap(b, f)), j = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
1815
+ p && f && (b = Lt.maybeMap(b, f)), j = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
1813
1816
  else if (we(s))
1814
1817
  j = s;
1815
1818
  else {
1816
- var z = Object.keys(b);
1817
- j = h ? z.sort(h) : z;
1819
+ var Y = Object.keys(b);
1820
+ j = g ? Y.sort(g) : Y;
1818
1821
  }
1819
1822
  var V = i ? r.replace(/\./g, "%2E") : r, $ = a && we(b) && b.length === 1 ? V + "[]" : V;
1820
1823
  if (o && we(b) && b.length === 0)
@@ -1823,9 +1826,9 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1823
1826
  var D = j[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
1824
1827
  if (!(u && ue === null)) {
1825
1828
  var pe = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, pe) : $ : $ + (v ? "." + pe : "[" + pe + "]");
1826
- g.set(e, O);
1827
- var te = Sa();
1828
- te.set(xr, g), Oa(H, t(
1829
+ h.set(e, O);
1830
+ var te = xa();
1831
+ te.set(Or, h), Pa(H, t(
1829
1832
  ue,
1830
1833
  ge,
1831
1834
  n,
@@ -1836,7 +1839,7 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1836
1839
  i,
1837
1840
  n === "comma" && p && we(b) ? null : f,
1838
1841
  s,
1839
- h,
1842
+ g,
1840
1843
  v,
1841
1844
  w,
1842
1845
  d,
@@ -1848,7 +1851,7 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1848
1851
  }
1849
1852
  }
1850
1853
  return H;
1851
- }, du = function(e) {
1854
+ }, pu = function(e) {
1852
1855
  if (!e)
1853
1856
  return X;
1854
1857
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1860,16 +1863,16 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1860
1863
  var r = e.charset || X.charset;
1861
1864
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1862
1865
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1863
- var n = wt.default;
1866
+ var n = Et.default;
1864
1867
  if (typeof e.format < "u") {
1865
- if (!lu.call(wt.formatters, e.format))
1868
+ if (!uu.call(Et.formatters, e.format))
1866
1869
  throw new TypeError("Unknown format option provided.");
1867
1870
  n = e.format;
1868
1871
  }
1869
- var a = wt.formatters[n], o = X.filter;
1872
+ var a = Et.formatters[n], o = X.filter;
1870
1873
  (typeof e.filter == "function" || we(e.filter)) && (o = e.filter);
1871
1874
  var l;
1872
- if (e.arrayFormat in xa ? l = e.arrayFormat : "indices" in e ? l = e.indices ? "indices" : "repeat" : l = X.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1875
+ if (e.arrayFormat in Oa ? l = e.arrayFormat : "indices" in e ? l = e.indices ? "indices" : "repeat" : l = X.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1873
1876
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1874
1877
  var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : X.allowDots : !!e.allowDots;
1875
1878
  return {
@@ -1893,19 +1896,19 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1893
1896
  sort: typeof e.sort == "function" ? e.sort : null,
1894
1897
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : X.strictNullHandling
1895
1898
  };
1896
- }, pu = function(t, e) {
1897
- var r = t, n = du(e), a, o;
1899
+ }, yu = function(t, e) {
1900
+ var r = t, n = pu(e), a, o;
1898
1901
  typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : we(n.filter) && (o = n.filter, a = o);
1899
1902
  var l = [];
1900
1903
  if (typeof r != "object" || r === null)
1901
1904
  return "";
1902
- var u = xa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
1905
+ var u = Oa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
1903
1906
  a || (a = Object.keys(r)), n.sort && a.sort(n.sort);
1904
- for (var f = Sa(), s = 0; s < a.length; ++s) {
1905
- var h = a[s];
1906
- n.skipNulls && r[h] === null || Oa(l, fu(
1907
- r[h],
1908
- h,
1907
+ for (var f = xa(), s = 0; s < a.length; ++s) {
1908
+ var g = a[s];
1909
+ n.skipNulls && r[g] === null || Pa(l, du(
1910
+ r[g],
1911
+ g,
1909
1912
  u,
1910
1913
  i,
1911
1914
  n.allowEmptyArrays,
@@ -1926,7 +1929,7 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1926
1929
  }
1927
1930
  var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
1928
1931
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
1929
- }, rt = Ea, Dr = Object.prototype.hasOwnProperty, yu = Array.isArray, B = {
1932
+ }, rt = Sa, Nr = Object.prototype.hasOwnProperty, vu = Array.isArray, B = {
1930
1933
  allowDots: !1,
1931
1934
  allowEmptyArrays: !1,
1932
1935
  allowPrototypes: !1,
@@ -1947,34 +1950,34 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1947
1950
  plainObjects: !1,
1948
1951
  strictDepth: !1,
1949
1952
  strictNullHandling: !1
1950
- }, vu = function(t) {
1953
+ }, mu = function(t) {
1951
1954
  return t.replace(/&#(\d+);/g, function(e, r) {
1952
1955
  return String.fromCharCode(parseInt(r, 10));
1953
1956
  });
1954
- }, Pa = function(t, e) {
1957
+ }, Aa = function(t, e) {
1955
1958
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
1956
- }, mu = "utf8=%26%2310003%3B", hu = "utf8=%E2%9C%93", gu = function(e, r) {
1959
+ }, hu = "utf8=%26%2310003%3B", gu = "utf8=%E2%9C%93", bu = function(e, r) {
1957
1960
  var n = { __proto__: null }, a = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1958
1961
  a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1959
1962
  var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, f = r.charset;
1960
1963
  if (r.charsetSentinel)
1961
1964
  for (i = 0; i < l.length; ++i)
1962
- l[i].indexOf("utf8=") === 0 && (l[i] === hu ? f = "utf-8" : l[i] === mu && (f = "iso-8859-1"), u = i, i = l.length);
1965
+ l[i].indexOf("utf8=") === 0 && (l[i] === gu ? f = "utf-8" : l[i] === hu && (f = "iso-8859-1"), u = i, i = l.length);
1963
1966
  for (i = 0; i < l.length; ++i)
1964
1967
  if (i !== u) {
1965
- var s = l[i], h = s.indexOf("]="), v = h === -1 ? s.indexOf("=") : h + 1, w, d;
1968
+ var s = l[i], g = s.indexOf("]="), v = g === -1 ? s.indexOf("=") : g + 1, w, d;
1966
1969
  v === -1 ? (w = r.decoder(s, B.decoder, f, "key"), d = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, f, "key"), d = rt.maybeMap(
1967
- Pa(s.slice(v + 1), r),
1970
+ Aa(s.slice(v + 1), r),
1968
1971
  function(p) {
1969
1972
  return r.decoder(p, B.decoder, f, "value");
1970
1973
  }
1971
- )), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = vu(d)), s.indexOf("[]=") > -1 && (d = yu(d) ? [d] : d);
1972
- var y = Dr.call(n, w);
1974
+ )), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = mu(d)), s.indexOf("[]=") > -1 && (d = vu(d) ? [d] : d);
1975
+ var y = Nr.call(n, w);
1973
1976
  y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], d) : (!y || r.duplicates === "last") && (n[w] = d);
1974
1977
  }
1975
1978
  return n;
1976
- }, bu = function(t, e, r, n) {
1977
- for (var a = n ? e : Pa(e, r), o = t.length - 1; o >= 0; --o) {
1979
+ }, wu = function(t, e, r, n) {
1980
+ for (var a = n ? e : Aa(e, r), o = t.length - 1; o >= 0; --o) {
1978
1981
  var l, u = t[o];
1979
1982
  if (u === "[]" && r.parseArrays)
1980
1983
  l = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : [].concat(a);
@@ -1986,16 +1989,16 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
1986
1989
  a = l;
1987
1990
  }
1988
1991
  return a;
1989
- }, wu = function(e, r, n, a) {
1992
+ }, Eu = function(e, r, n, a) {
1990
1993
  if (e) {
1991
1994
  var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), f = i ? o.slice(0, i.index) : o, s = [];
1992
1995
  if (f) {
1993
- if (!n.plainObjects && Dr.call(Object.prototype, f) && !n.allowPrototypes)
1996
+ if (!n.plainObjects && Nr.call(Object.prototype, f) && !n.allowPrototypes)
1994
1997
  return;
1995
1998
  s.push(f);
1996
1999
  }
1997
- for (var h = 0; n.depth > 0 && (i = u.exec(o)) !== null && h < n.depth; ) {
1998
- if (h += 1, !n.plainObjects && Dr.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
2000
+ for (var g = 0; n.depth > 0 && (i = u.exec(o)) !== null && g < n.depth; ) {
2001
+ if (g += 1, !n.plainObjects && Nr.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1999
2002
  return;
2000
2003
  s.push(i[1]);
2001
2004
  }
@@ -2004,9 +2007,9 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2004
2007
  throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
2005
2008
  s.push("[" + o.slice(i.index) + "]");
2006
2009
  }
2007
- return bu(s, r, n, a);
2010
+ return wu(s, r, n, a);
2008
2011
  }
2009
- }, Eu = function(e) {
2012
+ }, Su = function(e) {
2010
2013
  if (!e)
2011
2014
  return B;
2012
2015
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -2044,26 +2047,26 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2044
2047
  strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : B.strictDepth,
2045
2048
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
2046
2049
  };
2047
- }, Su = function(t, e) {
2048
- var r = Eu(e);
2050
+ }, xu = function(t, e) {
2051
+ var r = Su(e);
2049
2052
  if (t === "" || t === null || typeof t > "u")
2050
2053
  return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2051
- for (var n = typeof t == "string" ? gu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
2052
- var u = o[l], i = wu(u, n[u], r, typeof t == "string");
2054
+ for (var n = typeof t == "string" ? bu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
2055
+ var u = o[l], i = Eu(u, n[u], r, typeof t == "string");
2053
2056
  a = rt.merge(a, i, r);
2054
2057
  }
2055
2058
  return r.allowSparse === !0 ? a : rt.compact(a);
2056
- }, xu = pu, Ou = Su, Pu = Qr, Yn = {
2057
- formats: Pu,
2058
- parse: Ou,
2059
- stringify: xu
2060
- }, Au = { exports: {} };
2059
+ }, Ou = yu, Pu = xu, Au = Zr, Yn = {
2060
+ formats: Au,
2061
+ parse: Pu,
2062
+ stringify: Ou
2063
+ }, Tu = { exports: {} };
2061
2064
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
2062
2065
  * @license MIT */
2063
2066
  (function(t, e) {
2064
2067
  (function(r, n) {
2065
2068
  t.exports = n();
2066
- })(Tr, function() {
2069
+ })($r, function() {
2067
2070
  var r = {};
2068
2071
  r.version = "0.2.0";
2069
2072
  var n = r.settings = {
@@ -2088,19 +2091,19 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2088
2091
  }, r.status = null, r.set = function(d) {
2089
2092
  var y = r.isStarted();
2090
2093
  d = a(d, n.minimum, 1), r.status = d === 1 ? null : d;
2091
- var p = r.render(!y), m = p.querySelector(n.barSelector), g = n.speed, b = n.easing;
2094
+ var p = r.render(!y), m = p.querySelector(n.barSelector), h = n.speed, b = n.easing;
2092
2095
  return p.offsetWidth, u(function(S) {
2093
- n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(d, g, b)), d === 1 ? (i(p, {
2096
+ n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(d, h, b)), d === 1 ? (i(p, {
2094
2097
  transition: "none",
2095
2098
  opacity: 1
2096
2099
  }), p.offsetWidth, setTimeout(function() {
2097
2100
  i(p, {
2098
- transition: "all " + g + "ms linear",
2101
+ transition: "all " + h + "ms linear",
2099
2102
  opacity: 0
2100
2103
  }), setTimeout(function() {
2101
2104
  r.remove(), S();
2102
- }, g);
2103
- }, g)) : setTimeout(S, g);
2105
+ }, h);
2106
+ }, h)) : setTimeout(S, h);
2104
2107
  }), this;
2105
2108
  }, r.isStarted = function() {
2106
2109
  return typeof r.status == "number";
@@ -2131,13 +2134,13 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2131
2134
  s(document.documentElement, "nprogress-busy");
2132
2135
  var y = document.createElement("div");
2133
2136
  y.id = "nprogress", y.innerHTML = n.template;
2134
- var p = y.querySelector(n.barSelector), m = d ? "-100" : o(r.status || 0), g = document.querySelector(n.parent), b;
2137
+ var p = y.querySelector(n.barSelector), m = d ? "-100" : o(r.status || 0), h = document.querySelector(n.parent), b;
2135
2138
  return i(p, {
2136
2139
  transition: "all 0 linear",
2137
2140
  transform: "translate3d(" + m + "%,0,0)"
2138
- }), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), g != document.body && s(g, "nprogress-custom-parent"), g.appendChild(y), y;
2141
+ }), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), h != document.body && s(h, "nprogress-custom-parent"), h.appendChild(y), y;
2139
2142
  }, r.remove = function() {
2140
- h(document.documentElement, "nprogress-busy"), h(document.querySelector(n.parent), "nprogress-custom-parent");
2143
+ g(document.documentElement, "nprogress-busy"), g(document.querySelector(n.parent), "nprogress-custom-parent");
2141
2144
  var d = document.getElementById("nprogress");
2142
2145
  d && w(d);
2143
2146
  }, r.isRendered = function() {
@@ -2179,11 +2182,11 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2179
2182
  if (W = d[_] + M, W in O) return W;
2180
2183
  return S;
2181
2184
  }
2182
- function g(S) {
2185
+ function h(S) {
2183
2186
  return S = p(S), y[S] || (y[S] = m(S));
2184
2187
  }
2185
2188
  function b(S, O, _) {
2186
- O = g(O), S.style[O] = _;
2189
+ O = h(O), S.style[O] = _;
2187
2190
  }
2188
2191
  return function(S, O) {
2189
2192
  var _ = arguments, M, W;
@@ -2202,7 +2205,7 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2202
2205
  var p = v(d), m = p + y;
2203
2206
  f(p, y) || (d.className = m.substring(1));
2204
2207
  }
2205
- function h(d, y) {
2208
+ function g(d, y) {
2206
2209
  var p = v(d), m;
2207
2210
  f(d, y) && (m = p.replace(" " + y + " ", " "), d.className = m.substring(1, m.length - 1));
2208
2211
  }
@@ -2214,34 +2217,34 @@ var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%
2214
2217
  }
2215
2218
  return r;
2216
2219
  });
2217
- })(Au);
2218
- function Tu(t, e, r, n = "brackets") {
2220
+ })(Tu);
2221
+ function $u(t, e, r, n = "brackets") {
2219
2222
  let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), f = new URL(e.toString(), "http://localhost");
2220
- return t === "get" && Object.keys(r).length && (f.search = Yn.stringify(ui(Yn.parse(f.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${f.protocol}//${f.host}` : "", o ? f.pathname : "", l ? f.pathname.substring(1) : "", u ? f.search : "", i ? f.hash : ""].join(""), r];
2223
+ return t === "get" && Object.keys(r).length && (f.search = Yn.stringify(si(Yn.parse(f.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${f.protocol}//${f.host}` : "", o ? f.pathname : "", l ? f.pathname.substring(1) : "", u ? f.search : "", i ? f.hash : ""].join(""), r];
2221
2224
  }
2222
- const Kt = fe(null);
2223
- Kt.displayName = "ModalStackContext";
2224
- let Aa = null, Ta = null, Et = null, Nr = null, kr = [];
2225
- const $u = ({ children: t }) => {
2225
+ const Xt = fe(null);
2226
+ Xt.displayName = "ModalStackContext";
2227
+ let Ta = null, $a = null, St = null, kr = null, jr = [];
2228
+ const Ru = ({ children: t }) => {
2226
2229
  const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
2227
2230
  r((p) => {
2228
- const m = y([...p]), g = (b) => {
2231
+ const m = y([...p]), h = (b) => {
2229
2232
  var S;
2230
2233
  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;
2231
2234
  };
2232
2235
  return m.forEach((b, S) => {
2233
- m[S].onTopOfStack = g(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);
2236
+ 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);
2234
2237
  }), m;
2235
2238
  });
2236
2239
  };
2237
- Y(() => {
2238
- kr = e;
2240
+ z(() => {
2241
+ jr = e;
2239
2242
  }, [e]);
2240
2243
  class l {
2241
- constructor(p, m, g, b, S) {
2242
- ce(this, "update", (p, m, g) => {
2244
+ constructor(p, m, h, b, S) {
2245
+ ce(this, "update", (p, m, h) => {
2243
2246
  o(
2244
- (b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = g), S))
2247
+ (b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = h), S))
2245
2248
  );
2246
2249
  });
2247
2250
  ce(this, "show", () => {
@@ -2255,44 +2258,44 @@ const $u = ({ children: t }) => {
2255
2258
  ce(this, "close", () => {
2256
2259
  o(
2257
2260
  (p) => p.map((m) => {
2258
- var g;
2261
+ var h;
2259
2262
  return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
2260
2263
  m.off(b);
2261
- }), m.isOpen = !1, (g = m.onCloseCallback) == null || g.call(m)), m;
2264
+ }), m.isOpen = !1, (h = m.onCloseCallback) == null || h.call(m)), m;
2262
2265
  })
2263
2266
  );
2264
2267
  });
2265
2268
  ce(this, "afterLeave", () => {
2266
2269
  this.isOpen || o((p) => {
2267
- const m = p.map((g) => {
2270
+ const m = p.map((h) => {
2268
2271
  var b;
2269
- return g.id === this.id && !g.isOpen && (g.shouldRender = !1, (b = g.afterLeaveCallback) == null || b.call(g), g.afterLeaveCallback = null), g;
2272
+ return h.id === this.id && !h.isOpen && (h.shouldRender = !1, (b = h.afterLeaveCallback) == null || b.call(h), h.afterLeaveCallback = null), h;
2270
2273
  });
2271
2274
  return this.index === 0 ? [] : m;
2272
2275
  });
2273
2276
  });
2274
2277
  ce(this, "on", (p, m) => {
2275
- this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
2278
+ p = pt(p), this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
2276
2279
  });
2277
2280
  ce(this, "off", (p, m) => {
2278
- var g;
2279
- m ? this.listeners[p] = ((g = this.listeners[p]) == null ? void 0 : g.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
2281
+ var h;
2282
+ p = pt(p), m ? this.listeners[p] = ((h = this.listeners[p]) == null ? void 0 : h.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
2280
2283
  });
2281
2284
  ce(this, "emit", (p, ...m) => {
2282
- var g;
2283
- (g = this.listeners[p]) == null || g.forEach((b) => b(...m));
2285
+ var h;
2286
+ (h = this.listeners[pt(p)]) == null || h.forEach((b) => b(...m));
2284
2287
  });
2285
2288
  ce(this, "registerEventListenersFromProps", (p) => {
2286
2289
  const m = [];
2287
- return Object.keys(p).filter((g) => g.startsWith("on")).forEach((g) => {
2288
- const b = g.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
2289
- this.on(b, p[g]), m.push(() => this.off(b, p[g]));
2290
- }), () => m.forEach((g) => g());
2290
+ return Object.keys(p).filter((h) => h.startsWith("on")).forEach((h) => {
2291
+ const b = pt(h).replace(/^on-/, "");
2292
+ this.on(b, p[h]), m.push(() => this.off(b, p[h]));
2293
+ }), () => m.forEach((h) => h());
2291
2294
  });
2292
2295
  ce(this, "reload", (p = {}) => {
2293
- var g;
2296
+ var h;
2294
2297
  let m = Object.keys(this.response.props);
2295
- p.only && (m = aa(m, p.only)), p.except && (m = qo(m, p.except)), (g = this.response) != null && g.url && Lt.get(this.response.url, {
2298
+ p.only && (m = oa(m, p.only)), p.except && (m = Go(m, p.except)), (h = this.response) != null && h.url && Wt.get(this.response.url, {
2296
2299
  headers: {
2297
2300
  Accept: "text/html, application/xhtml+xml",
2298
2301
  "X-Inertia": !0,
@@ -2301,7 +2304,7 @@ const $u = ({ children: t }) => {
2301
2304
  "X-Inertia-Partial-Data": m.join(","),
2302
2305
  "X-InertiaUI-Modal": !0,
2303
2306
  "X-InertiaUI-Modal-Use-Router": 0,
2304
- "X-InertiaUI-Modal-Base-Url": Et
2307
+ "X-InertiaUI-Modal-Base-Url": St
2305
2308
  }
2306
2309
  }).then((b) => {
2307
2310
  this.updateProps(b.data.props);
@@ -2310,23 +2313,23 @@ const $u = ({ children: t }) => {
2310
2313
  ce(this, "updateProps", (p) => {
2311
2314
  Object.assign(this.props, p), o((m) => m);
2312
2315
  });
2313
- this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = g, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
2316
+ 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;
2314
2317
  }
2315
2318
  static generateId() {
2316
2319
  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)}`;
2317
2320
  }
2318
2321
  }
2319
- const u = (y, p = {}, m = null, g = null) => Ta(y.component).then((b) => i(b, y, p, m, g)), i = (y, p, m, g, b) => {
2320
- const S = new l(y, p, m, g, b);
2322
+ const u = (y, p = {}, m = null, h = null) => $a(y.component).then((b) => i(b, y, p, m, h)), i = (y, p, m, h, b) => {
2323
+ const S = new l(y, p, m, h, b);
2321
2324
  return S.index = e.length, o((O) => [...O, S]), S.show(), S;
2322
2325
  };
2323
- function f(y, p, m, g) {
2326
+ function f(y, p, m, h) {
2324
2327
  if (!n[y])
2325
2328
  throw new Error(`The local modal "${y}" has not been registered.`);
2326
- const b = i(null, {}, p, m, g);
2329
+ const b = i(null, {}, p, m, h);
2327
2330
  return b.name = y, n[y].callback(b), b;
2328
2331
  }
2329
- const s = (y, p = {}) => h(
2332
+ const s = (y, p = {}) => g(
2330
2333
  y,
2331
2334
  p.method ?? "get",
2332
2335
  p.data ?? {},
@@ -2335,33 +2338,39 @@ const $u = ({ children: t }) => {
2335
2338
  p.onClose,
2336
2339
  p.onAfterLeave,
2337
2340
  p.queryStringArrayFormat ?? "brackets",
2338
- p.navigate ?? qr("navigate")
2339
- ), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2341
+ p.navigate ?? Gr("navigate")
2342
+ ).then((m) => {
2343
+ const h = p.listeners ?? {};
2344
+ return Object.keys(h).forEach((b) => {
2345
+ const S = pt(b);
2346
+ m.on(S, h[b]);
2347
+ }), m;
2348
+ }), g = (y, p, m = {}, h = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2340
2349
  if (y.startsWith("#")) {
2341
2350
  W(f(y.substring(1), b, S, O));
2342
2351
  return;
2343
2352
  }
2344
- const [j, z] = Tu(p, y || "", m, _);
2353
+ const [j, Y] = $u(p, y || "", m, _);
2345
2354
  let V = M && e.length === 0;
2346
- if (e.length === 0 && (Et = typeof window < "u" ? window.location.href : ""), g = {
2347
- ...g,
2355
+ if (e.length === 0 && (St = typeof window < "u" ? window.location.href : ""), h = {
2356
+ ...h,
2348
2357
  Accept: "text/html, application/xhtml+xml",
2349
2358
  "X-Requested-With": "XMLHttpRequest",
2350
2359
  "X-Inertia": !0,
2351
- "X-Inertia-Version": Aa,
2360
+ "X-Inertia-Version": Ta,
2352
2361
  "X-InertiaUI-Modal": !0,
2353
2362
  "X-InertiaUI-Modal-Use-Router": V ? 1 : 0,
2354
- "X-InertiaUI-Modal-Base-Url": Et
2363
+ "X-InertiaUI-Modal-Base-Url": St
2355
2364
  }, V)
2356
- return Nr = null, vt.visit(j, {
2365
+ return kr = null, mt.visit(j, {
2357
2366
  method: p,
2358
- data: z,
2359
- headers: g,
2367
+ data: Y,
2368
+ headers: h,
2360
2369
  preserveScroll: !0,
2361
2370
  preserveState: !0,
2362
2371
  onError: H,
2363
2372
  onFinish: () => {
2364
- Yo(() => Nr).then(($) => {
2373
+ Yo(() => kr).then(($) => {
2365
2374
  const T = $.onCloseCallback, D = $.afterLeaveCallback;
2366
2375
  $.update(
2367
2376
  b,
@@ -2375,11 +2384,11 @@ const $u = ({ children: t }) => {
2375
2384
  });
2376
2385
  }
2377
2386
  });
2378
- Lt({
2387
+ Wt({
2379
2388
  url: j,
2380
2389
  method: p,
2381
- data: z,
2382
- headers: g
2390
+ data: Y,
2391
+ headers: h
2383
2392
  }).then(($) => W(u($.data, b, S, O))).catch(($) => {
2384
2393
  H($);
2385
2394
  });
@@ -2389,10 +2398,10 @@ const $u = ({ children: t }) => {
2389
2398
  push: i,
2390
2399
  pushFromResponseData: u,
2391
2400
  closeAll: () => {
2392
- kr.reverse().forEach((y) => y.close());
2401
+ jr.reverse().forEach((y) => y.close());
2393
2402
  },
2394
2403
  reset: () => o(() => []),
2395
- visit: h,
2404
+ visit: g,
2396
2405
  visitModal: s,
2397
2406
  registerLocalModal: (y, p) => {
2398
2407
  a((m) => ({
@@ -2407,96 +2416,96 @@ const $u = ({ children: t }) => {
2407
2416
  });
2408
2417
  }
2409
2418
  };
2410
- return /* @__PURE__ */ R.jsx(Kt.Provider, { value: d, children: t });
2411
- }, Xt = () => {
2412
- const t = ie(Kt);
2419
+ return /* @__PURE__ */ R.jsx(Xt.Provider, { value: d, children: t });
2420
+ }, Jt = () => {
2421
+ const t = ie(Xt);
2413
2422
  if (t === null)
2414
2423
  throw new Error("useModalStack must be used within a ModalStackProvider");
2415
2424
  return t;
2416
- }, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Ac = (t, e) => {
2417
- e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
2425
+ }, Kn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Tc = (t, e) => {
2426
+ e.initialPage && (Ta = e.initialPage.version), e.resolveComponent && ($a = e.resolveComponent);
2418
2427
  const r = ({ Component: n, props: a, key: o }) => {
2419
2428
  const l = () => {
2420
- const u = Ar(n, { key: o, ...a });
2421
- return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) => Ar(s, a, f)) : u;
2429
+ const u = Tr(n, { key: o, ...a });
2430
+ return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) => Tr(s, a, f)) : u;
2422
2431
  };
2423
2432
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2424
2433
  l(),
2425
- /* @__PURE__ */ R.jsx(Ru, {})
2434
+ /* @__PURE__ */ R.jsx(Fu, {})
2426
2435
  ] });
2427
2436
  };
2428
- return /* @__PURE__ */ R.jsx($u, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
2429
- }, Ru = ({ children: t }) => {
2437
+ return /* @__PURE__ */ R.jsx(Ru, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
2438
+ }, Fu = ({ children: t }) => {
2430
2439
  var u;
2431
- const e = ie(Kt);
2440
+ const e = ie(Xt);
2432
2441
  let r = !1, n = !1;
2433
- Y(() => vt.on("start", () => r = !0), []), Y(() => vt.on("finish", () => r = !1), []), Y(
2434
- () => vt.on("navigate", function(i) {
2442
+ z(() => mt.on("start", () => r = !0), []), z(() => mt.on("finish", () => r = !1), []), z(
2443
+ () => mt.on("navigate", function(i) {
2435
2444
  const f = i.detail.page.props._inertiaui_modal;
2436
2445
  if (!f) {
2437
2446
  n && e.closeAll();
2438
2447
  return;
2439
2448
  }
2440
- n = f, Et = f.baseUrl, e.pushFromResponseData(f, {}, () => {
2449
+ n = f, St = f.baseUrl, e.pushFromResponseData(f, {}, () => {
2441
2450
  if (!f.baseUrl) {
2442
2451
  console.error("No base url in modal response data so cannot navigate back");
2443
2452
  return;
2444
2453
  }
2445
- !r && window.location.href !== f.baseUrl && vt.visit(f.baseUrl, {
2454
+ !r && window.location.href !== f.baseUrl && mt.visit(f.baseUrl, {
2446
2455
  preserveScroll: !0,
2447
2456
  preserveState: !0
2448
2457
  });
2449
2458
  }).then((s) => {
2450
- Nr = s;
2459
+ kr = s;
2451
2460
  });
2452
2461
  }),
2453
2462
  []
2454
2463
  );
2455
- const a = (i) => (kr.length && (i.headers["X-InertiaUI-Modal-Base-Url"] = Et), i);
2456
- Y(() => (Lt.interceptors.request.use(a), () => Lt.interceptors.request.eject(a)), []);
2457
- const o = jo(), l = k();
2458
- return Y(() => {
2459
- var s, h;
2464
+ const a = (i) => (jr.length && (i.headers["X-InertiaUI-Modal-Base-Url"] = St), i);
2465
+ z(() => (Wt.interceptors.request.use(a), () => Wt.interceptors.request.eject(a)), []);
2466
+ const o = Lo(), l = k();
2467
+ return z(() => {
2468
+ var s, g;
2460
2469
  const i = (s = o.props) == null ? void 0 : s._inertiaui_modal, f = l.current;
2461
- l.current = i, i && f && i.component === f.component && i.url === f.url && ((h = e.stack[0]) == null || h.updateProps(i.props ?? {}));
2470
+ l.current = i, i && f && i.component === f.component && i.url === f.url && ((g = e.stack[0]) == null || g.updateProps(i.props ?? {}));
2462
2471
  }, [(u = o.props) == null ? void 0 : u._inertiaui_modal]), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2463
2472
  t,
2464
- e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
2473
+ e.stack.length > 0 && /* @__PURE__ */ R.jsx(Fa, { index: 0 })
2465
2474
  ] });
2466
- }, Zr = A.createContext(null);
2467
- Zr.displayName = "ModalIndexContext";
2468
- const $a = () => {
2469
- const t = A.useContext(Zr);
2475
+ }, en = A.createContext(null);
2476
+ en.displayName = "ModalIndexContext";
2477
+ const Ra = () => {
2478
+ const t = A.useContext(en);
2470
2479
  if (t === void 0)
2471
2480
  throw new Error("useModalIndex must be used within a ModalIndexProvider");
2472
2481
  return t;
2473
- }, Ra = ({ index: t }) => {
2474
- const { stack: e } = Xt(), r = J(() => e[t], [e, t]);
2475
- return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Zr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
2482
+ }, Fa = ({ index: t }) => {
2483
+ const { stack: e } = Jt(), r = J(() => e[t], [e, t]);
2484
+ return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(en.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
2476
2485
  r.component,
2477
2486
  {
2478
2487
  ...r.props,
2479
2488
  onModalEvent: (...n) => r.emit(...n)
2480
2489
  }
2481
2490
  ) });
2482
- }, Fa = Vr(({ name: t, children: e, ...r }, n) => {
2483
- const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Xt(), [i, f] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2491
+ }, Ia = qr(({ name: t, children: e, ...r }, n) => {
2492
+ const a = Ra(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Jt(), [i, f] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), g = J(() => {
2484
2493
  var d;
2485
2494
  return (d = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : d.index;
2486
- }, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? qr("type") === "slideover", [r.slideover]), w = J(
2495
+ }, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? Gr("type") === "slideover", [r.slideover]), w = J(
2487
2496
  () => ({
2488
2497
  slideover: v,
2489
- closeButton: r.closeButton ?? ze(v, "closeButton"),
2490
- closeExplicitly: r.closeExplicitly ?? ze(v, "closeExplicitly"),
2491
- maxWidth: r.maxWidth ?? ze(v, "maxWidth"),
2492
- paddingClasses: r.paddingClasses ?? ze(v, "paddingClasses"),
2493
- panelClasses: r.panelClasses ?? ze(v, "panelClasses"),
2494
- position: r.position ?? ze(v, "position"),
2498
+ closeButton: r.closeButton ?? Ye(v, "closeButton"),
2499
+ closeExplicitly: r.closeExplicitly ?? Ye(v, "closeExplicitly"),
2500
+ maxWidth: r.maxWidth ?? Ye(v, "maxWidth"),
2501
+ paddingClasses: r.paddingClasses ?? Ye(v, "paddingClasses"),
2502
+ panelClasses: r.panelClasses ?? Ye(v, "panelClasses"),
2503
+ position: r.position ?? Ye(v, "position"),
2495
2504
  ...s == null ? void 0 : s.config
2496
2505
  }),
2497
2506
  [r, s == null ? void 0 : s.config]
2498
2507
  );
2499
- return Y(() => {
2508
+ return z(() => {
2500
2509
  if (t) {
2501
2510
  let d = null;
2502
2511
  return l(t, (y) => {
@@ -2506,7 +2515,7 @@ const $a = () => {
2506
2515
  };
2507
2516
  }
2508
2517
  return s.registerEventListenersFromProps(r);
2509
- }, [t]), na(
2518
+ }, [t]), aa(
2510
2519
  n,
2511
2520
  () => ({
2512
2521
  afterLeave: () => s.afterLeave(),
@@ -2542,27 +2551,27 @@ const $a = () => {
2542
2551
  setOpen: s.setOpen,
2543
2552
  shouldRender: s.shouldRender
2544
2553
  }) : e,
2545
- h && /* @__PURE__ */ R.jsx(Ra, { index: h })
2554
+ g && /* @__PURE__ */ R.jsx(Fa, { index: g })
2546
2555
  ] });
2547
2556
  });
2548
- Fa.displayName = "HeadlessModal";
2549
- function Ia(t) {
2557
+ Ia.displayName = "HeadlessModal";
2558
+ function Ca(t) {
2550
2559
  var e, r, n = "";
2551
2560
  if (typeof t == "string" || typeof t == "number") n += t;
2552
2561
  else if (typeof t == "object") if (Array.isArray(t)) {
2553
2562
  var a = t.length;
2554
- for (e = 0; e < a; e++) t[e] && (r = Ia(t[e])) && (n && (n += " "), n += r);
2563
+ for (e = 0; e < a; e++) t[e] && (r = Ca(t[e])) && (n && (n += " "), n += r);
2555
2564
  } else for (r in t) t[r] && (n && (n += " "), n += r);
2556
2565
  return n;
2557
2566
  }
2558
- function Vt() {
2559
- for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ia(t)) && (n && (n += " "), n += e);
2567
+ function qt() {
2568
+ for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ca(t)) && (n && (n += " "), n += e);
2560
2569
  return n;
2561
2570
  }
2562
- var Fu = Object.defineProperty, Iu = (t, e, r) => e in t ? Fu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Or = (t, e, r) => (Iu(t, typeof e != "symbol" ? e + "" : e, r), r);
2563
- let Cu = class {
2571
+ var Iu = Object.defineProperty, Cu = (t, e, r) => e in t ? Iu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Pr = (t, e, r) => (Cu(t, typeof e != "symbol" ? e + "" : e, r), r);
2572
+ let Mu = class {
2564
2573
  constructor() {
2565
- Or(this, "current", this.detect()), Or(this, "handoffState", "pending"), Or(this, "currentId", 0);
2574
+ Pr(this, "current", this.detect()), Pr(this, "handoffState", "pending"), Pr(this, "currentId", 0);
2566
2575
  }
2567
2576
  set(e) {
2568
2577
  this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
@@ -2588,11 +2597,11 @@ let Cu = class {
2588
2597
  get isHandoffComplete() {
2589
2598
  return this.handoffState === "complete";
2590
2599
  }
2591
- }, Ve = new Cu();
2592
- function Jt(t) {
2600
+ }, Ve = new Mu();
2601
+ function Qt(t) {
2593
2602
  return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
2594
2603
  }
2595
- function Qt(t) {
2604
+ function Zt(t) {
2596
2605
  typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
2597
2606
  throw e;
2598
2607
  }));
@@ -2610,7 +2619,7 @@ function Me() {
2610
2619
  return e.add(() => clearTimeout(n));
2611
2620
  }, microTask(...r) {
2612
2621
  let n = { current: !0 };
2613
- return Qt(() => {
2622
+ return Zt(() => {
2614
2623
  n.current && r[0]();
2615
2624
  }), e.add(() => {
2616
2625
  n.current = !1;
@@ -2633,12 +2642,12 @@ function Me() {
2633
2642
  } };
2634
2643
  return e;
2635
2644
  }
2636
- function en() {
2645
+ function tn() {
2637
2646
  let [t] = Q(Me);
2638
- return Y(() => () => t.dispose(), [t]), t;
2647
+ return z(() => () => t.dispose(), [t]), t;
2639
2648
  }
2640
2649
  let ae = (t, e) => {
2641
- Ve.isServer ? Y(t, e) : Co(t, e);
2650
+ Ve.isServer ? z(t, e) : Mo(t, e);
2642
2651
  };
2643
2652
  function qe(t) {
2644
2653
  let e = k(t);
@@ -2649,11 +2658,11 @@ function qe(t) {
2649
2658
  let U = function(t) {
2650
2659
  let e = qe(t);
2651
2660
  return A.useCallback((...r) => e.current(...r), [e]);
2652
- }, Mu = fe(void 0);
2653
- function _u() {
2654
- return ie(Mu);
2661
+ }, _u = fe(void 0);
2662
+ function Du() {
2663
+ return ie(_u);
2655
2664
  }
2656
- function jr(...t) {
2665
+ function Lr(...t) {
2657
2666
  return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
2658
2667
  }
2659
2668
  function Ie(t, e, ...r) {
@@ -2664,55 +2673,55 @@ function Ie(t, e, ...r) {
2664
2673
  let n = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((a) => `"${a}"`).join(", ")}.`);
2665
2674
  throw Error.captureStackTrace && Error.captureStackTrace(n, Ie), n;
2666
2675
  }
2667
- var qt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(qt || {}), Fe = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Fe || {});
2676
+ var Gt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Gt || {}), Fe = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Fe || {});
2668
2677
  function de() {
2669
- let t = Nu();
2670
- return ve((e) => Du({ mergeRefs: t, ...e }), [t]);
2678
+ let t = ku();
2679
+ return ve((e) => Nu({ mergeRefs: t, ...e }), [t]);
2671
2680
  }
2672
- function Du({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
2673
- u = u ?? ku;
2674
- let i = Ca(e, t);
2675
- if (o) return Nt(i, r, n, l, u);
2681
+ function Nu({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
2682
+ u = u ?? ju;
2683
+ let i = Ma(e, t);
2684
+ if (o) return kt(i, r, n, l, u);
2676
2685
  let f = a ?? 0;
2677
2686
  if (f & 2) {
2678
- let { static: s = !1, ...h } = i;
2679
- if (s) return Nt(h, r, n, l, u);
2687
+ let { static: s = !1, ...g } = i;
2688
+ if (s) return kt(g, r, n, l, u);
2680
2689
  }
2681
2690
  if (f & 1) {
2682
- let { unmount: s = !0, ...h } = i;
2691
+ let { unmount: s = !0, ...g } = i;
2683
2692
  return Ie(s ? 0 : 1, { 0() {
2684
2693
  return null;
2685
2694
  }, 1() {
2686
- return Nt({ ...h, hidden: !0, style: { display: "none" } }, r, n, l, u);
2695
+ return kt({ ...g, hidden: !0, style: { display: "none" } }, r, n, l, u);
2687
2696
  } });
2688
2697
  }
2689
- return Nt(i, r, n, l, u);
2698
+ return kt(i, r, n, l, u);
2690
2699
  }
2691
- function Nt(t, e = {}, r, n, a) {
2692
- let { as: o = r, children: l, refName: u = "ref", ...i } = Pr(t, ["unmount", "static"]), f = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2700
+ function kt(t, e = {}, r, n, a) {
2701
+ let { as: o = r, children: l, refName: u = "ref", ...i } = Ar(t, ["unmount", "static"]), f = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2693
2702
  "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);
2694
- let h = {};
2703
+ let g = {};
2695
2704
  if (e) {
2696
2705
  let v = !1, w = [];
2697
2706
  for (let [d, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(d.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
2698
2707
  if (v) {
2699
- h["data-headlessui-state"] = w.join(" ");
2700
- for (let d of w) h[`data-${d}`] = "";
2708
+ g["data-headlessui-state"] = w.join(" ");
2709
+ for (let d of w) g[`data-${d}`] = "";
2701
2710
  }
2702
2711
  }
2703
- if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(h)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
2704
- 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(h))).map((v) => ` - ${v}`).join(`
2712
+ if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(g)).length > 0)) if (!_o(s) || Array.isArray(s) && s.length > 1) {
2713
+ 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(`
2705
2714
  `), "", "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(`
2706
2715
  `)].join(`
2707
2716
  `));
2708
2717
  } else {
2709
- let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) => jr(w(...m), i.className) : jr(w, i.className), y = d ? { className: d } : {}, p = Ca(s.props, je(Pr(i, ["ref"])));
2710
- for (let m in h) m in p && delete h[m];
2711
- return _o(s, Object.assign({}, p, h, f, { ref: a(s.ref, f.ref) }, y));
2718
+ let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) => Lr(w(...m), i.className) : Lr(w, i.className), y = d ? { className: d } : {}, p = Ma(s.props, je(Ar(i, ["ref"])));
2719
+ for (let m in g) m in p && delete g[m];
2720
+ return Do(s, Object.assign({}, p, g, f, { ref: a(s.ref, f.ref) }, y));
2712
2721
  }
2713
- return Ar(o, Object.assign({}, Pr(i, ["ref"]), o !== he && f, o !== he && h), s);
2722
+ return Tr(o, Object.assign({}, Ar(i, ["ref"]), o !== he && f, o !== he && g), s);
2714
2723
  }
2715
- function Nu() {
2724
+ function ku() {
2716
2725
  let t = k([]), e = ve((r) => {
2717
2726
  for (let n of t.current) n != null && (typeof n == "function" ? n(r) : n.current = r);
2718
2727
  }, []);
@@ -2720,12 +2729,12 @@ function Nu() {
2720
2729
  if (!r.every((n) => n == null)) return t.current = r, e;
2721
2730
  };
2722
2731
  }
2723
- function ku(...t) {
2732
+ function ju(...t) {
2724
2733
  return t.every((e) => e == null) ? void 0 : (e) => {
2725
2734
  for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
2726
2735
  };
2727
2736
  }
2728
- function Ca(...t) {
2737
+ function Ma(...t) {
2729
2738
  if (t.length === 0) return {};
2730
2739
  if (t.length === 1) return t[0];
2731
2740
  let e = {}, r = {};
@@ -2745,74 +2754,74 @@ function Ca(...t) {
2745
2754
  }
2746
2755
  function le(t) {
2747
2756
  var e;
2748
- return Object.assign(Vr(t), { displayName: (e = t.displayName) != null ? e : t.name });
2757
+ return Object.assign(qr(t), { displayName: (e = t.displayName) != null ? e : t.name });
2749
2758
  }
2750
2759
  function je(t) {
2751
2760
  let e = Object.assign({}, t);
2752
2761
  for (let r in e) e[r] === void 0 && delete e[r];
2753
2762
  return e;
2754
2763
  }
2755
- function Pr(t, e = []) {
2764
+ function Ar(t, e = []) {
2756
2765
  let r = Object.assign({}, t);
2757
2766
  for (let n of e) n in r && delete r[n];
2758
2767
  return r;
2759
2768
  }
2760
- let ju = "span";
2761
- var Gt = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(Gt || {});
2762
- function Lu(t, e) {
2769
+ let Lu = "span";
2770
+ var zt = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(zt || {});
2771
+ function Wu(t, e) {
2763
2772
  var r;
2764
2773
  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" } } };
2765
- return de()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ju, name: "Hidden" });
2774
+ return de()({ ourProps: o, theirProps: a, slot: {}, defaultTag: Lu, name: "Hidden" });
2766
2775
  }
2767
- let Lr = le(Lu), Ma = Symbol();
2768
- function Wu(t, e = !0) {
2769
- return Object.assign(t, { [Ma]: e });
2776
+ let Wr = le(Wu), _a = Symbol();
2777
+ function Uu(t, e = !0) {
2778
+ return Object.assign(t, { [_a]: e });
2770
2779
  }
2771
2780
  function Se(...t) {
2772
2781
  let e = k(t);
2773
- Y(() => {
2782
+ z(() => {
2774
2783
  e.current = t;
2775
2784
  }, [t]);
2776
2785
  let r = U((n) => {
2777
2786
  for (let a of e.current) a != null && (typeof a == "function" ? a(n) : a.current = n);
2778
2787
  });
2779
- return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
2788
+ return t.every((n) => n == null || (n == null ? void 0 : n[_a])) ? void 0 : r;
2780
2789
  }
2781
- let tn = fe(null);
2782
- tn.displayName = "DescriptionContext";
2783
- function _a() {
2784
- let t = ie(tn);
2790
+ let rn = fe(null);
2791
+ rn.displayName = "DescriptionContext";
2792
+ function Da() {
2793
+ let t = ie(rn);
2785
2794
  if (t === null) {
2786
2795
  let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
2787
- throw Error.captureStackTrace && Error.captureStackTrace(e, _a), e;
2796
+ throw Error.captureStackTrace && Error.captureStackTrace(e, Da), e;
2788
2797
  }
2789
2798
  return t;
2790
2799
  }
2791
- function Uu() {
2800
+ function Bu() {
2792
2801
  let [t, e] = Q([]);
2793
2802
  return [t.length > 0 ? t.join(" ") : void 0, J(() => function(r) {
2794
2803
  let n = U((o) => (e((l) => [...l, o]), () => e((l) => {
2795
2804
  let u = l.slice(), i = u.indexOf(o);
2796
2805
  return i !== -1 && u.splice(i, 1), u;
2797
2806
  }))), a = J(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
2798
- return A.createElement(tn.Provider, { value: a }, r.children);
2807
+ return A.createElement(rn.Provider, { value: a }, r.children);
2799
2808
  }, [e])];
2800
2809
  }
2801
- let Bu = "p";
2802
- function Hu(t, e) {
2803
- let r = Pt(), n = _u(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
2810
+ let Hu = "p";
2811
+ function Vu(t, e) {
2812
+ let r = At(), n = Du(), { id: a = `headlessui-description-${r}`, ...o } = t, l = Da(), u = Se(e);
2804
2813
  ae(() => l.register(a), [a, l.register]);
2805
2814
  let i = n || !1, f = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
2806
- return de()({ ourProps: s, theirProps: o, slot: f, defaultTag: Bu, name: l.name || "Description" });
2815
+ return de()({ ourProps: s, theirProps: o, slot: f, defaultTag: Hu, name: l.name || "Description" });
2807
2816
  }
2808
- let Vu = le(Hu), qu = Object.assign(Vu, {});
2809
- 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 || {});
2810
- let Gu = fe(() => {
2817
+ let qu = le(Vu), Gu = Object.assign(qu, {});
2818
+ var Na = ((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))(Na || {});
2819
+ let zu = fe(() => {
2811
2820
  });
2812
2821
  function Yu({ value: t, children: e }) {
2813
- return A.createElement(Gu.Provider, { value: t }, e);
2822
+ return A.createElement(zu.Provider, { value: t }, e);
2814
2823
  }
2815
- let zu = class extends Map {
2824
+ let Ku = class extends Map {
2816
2825
  constructor(e) {
2817
2826
  super(), this.factory = e;
2818
2827
  }
@@ -2821,7 +2830,7 @@ let zu = class extends Map {
2821
2830
  return r === void 0 && (r = this.factory(e), this.set(e, r)), r;
2822
2831
  }
2823
2832
  };
2824
- function Na(t, e) {
2833
+ function ka(t, e) {
2825
2834
  let r = t(), n = /* @__PURE__ */ new Set();
2826
2835
  return { getSnapshot() {
2827
2836
  return r;
@@ -2832,10 +2841,10 @@ function Na(t, e) {
2832
2841
  l && (r = l, n.forEach((u) => u()));
2833
2842
  } };
2834
2843
  }
2835
- function ka(t) {
2836
- return Do(t.subscribe, t.getSnapshot, t.getSnapshot);
2844
+ function ja(t) {
2845
+ return No(t.subscribe, t.getSnapshot, t.getSnapshot);
2837
2846
  }
2838
- let Ku = new zu(() => Na(() => [], { ADD(t) {
2847
+ let Xu = new Ku(() => ka(() => [], { ADD(t) {
2839
2848
  return this.includes(t) ? this : [...this, t];
2840
2849
  }, REMOVE(t) {
2841
2850
  let e = this.indexOf(t);
@@ -2844,53 +2853,53 @@ let Ku = new zu(() => Na(() => [], { ADD(t) {
2844
2853
  return r.splice(e, 1), r;
2845
2854
  } }));
2846
2855
  function ot(t, e) {
2847
- let r = Ku.get(e), n = Pt(), a = ka(r);
2856
+ let r = Xu.get(e), n = At(), a = ja(r);
2848
2857
  if (ae(() => {
2849
2858
  if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
2850
2859
  }, [r, t]), !t) return !1;
2851
2860
  let o = a.indexOf(n), l = a.length;
2852
2861
  return o === -1 && (o = l, l += 1), o === l - 1;
2853
2862
  }
2854
- let Wr = /* @__PURE__ */ new Map(), St = /* @__PURE__ */ new Map();
2855
- function Kn(t) {
2863
+ let Ur = /* @__PURE__ */ new Map(), xt = /* @__PURE__ */ new Map();
2864
+ function Xn(t) {
2856
2865
  var e;
2857
- let r = (e = St.get(t)) != null ? e : 0;
2858
- return St.set(t, r + 1), r !== 0 ? () => Xn(t) : (Wr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
2866
+ let r = (e = xt.get(t)) != null ? e : 0;
2867
+ return xt.set(t, r + 1), r !== 0 ? () => Jn(t) : (Ur.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Jn(t));
2859
2868
  }
2860
- function Xn(t) {
2869
+ function Jn(t) {
2861
2870
  var e;
2862
- let r = (e = St.get(t)) != null ? e : 1;
2863
- if (r === 1 ? St.delete(t) : St.set(t, r - 1), r !== 1) return;
2864
- let n = Wr.get(t);
2865
- n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Wr.delete(t));
2871
+ let r = (e = xt.get(t)) != null ? e : 1;
2872
+ if (r === 1 ? xt.delete(t) : xt.set(t, r - 1), r !== 1) return;
2873
+ let n = Ur.get(t);
2874
+ n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Ur.delete(t));
2866
2875
  }
2867
- function Xu(t, { allowed: e, disallowed: r } = {}) {
2876
+ function Ju(t, { allowed: e, disallowed: r } = {}) {
2868
2877
  let n = ot(t, "inert-others");
2869
2878
  ae(() => {
2870
2879
  var a, o;
2871
2880
  if (!n) return;
2872
2881
  let l = Me();
2873
- for (let i of (a = r == null ? void 0 : r()) != null ? a : []) i && l.add(Kn(i));
2882
+ for (let i of (a = r == null ? void 0 : r()) != null ? a : []) i && l.add(Xn(i));
2874
2883
  let u = (o = e == null ? void 0 : e()) != null ? o : [];
2875
2884
  for (let i of u) {
2876
2885
  if (!i) continue;
2877
- let f = Jt(i);
2886
+ let f = Qt(i);
2878
2887
  if (!f) continue;
2879
2888
  let s = i.parentElement;
2880
2889
  for (; s && s !== f.body; ) {
2881
- for (let h of s.children) u.some((v) => h.contains(v)) || l.add(Kn(h));
2890
+ for (let g of s.children) u.some((v) => g.contains(v)) || l.add(Xn(g));
2882
2891
  s = s.parentElement;
2883
2892
  }
2884
2893
  }
2885
2894
  return l.dispose;
2886
2895
  }, [n, e, r]);
2887
2896
  }
2888
- function Ju(t, e, r) {
2897
+ function Qu(t, e, r) {
2889
2898
  let n = qe((a) => {
2890
2899
  let o = a.getBoundingClientRect();
2891
2900
  o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
2892
2901
  });
2893
- Y(() => {
2902
+ z(() => {
2894
2903
  if (!t) return;
2895
2904
  let a = e === null ? null : e instanceof HTMLElement ? e : e.current;
2896
2905
  if (!a) return;
@@ -2906,18 +2915,18 @@ function Ju(t, e, r) {
2906
2915
  return () => o.dispose();
2907
2916
  }, [e, n, t]);
2908
2917
  }
2909
- let Yt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Qu = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2910
- var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Ur = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Ur || {}), Zu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Zu || {});
2911
- function es(t = document.body) {
2918
+ let Yt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Zu = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2919
+ 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 || {}), Br = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Br || {}), es = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(es || {});
2920
+ function ts(t = document.body) {
2912
2921
  return t == null ? [] : Array.from(t.querySelectorAll(Yt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2913
2922
  }
2914
- function ts(t = document.body) {
2915
- return t == null ? [] : Array.from(t.querySelectorAll(Qu)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2923
+ function rs(t = document.body) {
2924
+ return t == null ? [] : Array.from(t.querySelectorAll(Zu)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2916
2925
  }
2917
- var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
2918
- function rs(t, e = 0) {
2926
+ var La = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(La || {});
2927
+ function ns(t, e = 0) {
2919
2928
  var r;
2920
- return t === ((r = Jt(t)) == null ? void 0 : r.body) ? !1 : Ie(e, { 0() {
2929
+ return t === ((r = Qt(t)) == null ? void 0 : r.body) ? !1 : Ie(e, { 0() {
2921
2930
  return t.matches(Yt);
2922
2931
  }, 1() {
2923
2932
  let n = t;
@@ -2928,7 +2937,7 @@ function rs(t, e = 0) {
2928
2937
  return !1;
2929
2938
  } });
2930
2939
  }
2931
- var ns = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(ns || {});
2940
+ var as = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(as || {});
2932
2941
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (t) => {
2933
2942
  t.metaKey || t.altKey || t.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
2934
2943
  }, !0), document.addEventListener("click", (t) => {
@@ -2937,12 +2946,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
2937
2946
  function Ae(t) {
2938
2947
  t == null || t.focus({ preventScroll: !0 });
2939
2948
  }
2940
- let as = ["textarea", "input"].join(",");
2941
- function os(t) {
2949
+ let os = ["textarea", "input"].join(",");
2950
+ function is(t) {
2942
2951
  var e, r;
2943
- return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, as)) != null ? r : !1;
2952
+ return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, os)) != null ? r : !1;
2944
2953
  }
2945
- function is(t, e = (r) => r) {
2954
+ function ls(t, e = (r) => r) {
2946
2955
  return t.slice().sort((r, n) => {
2947
2956
  let a = e(r), o = e(n);
2948
2957
  if (a === null || o === null) return 0;
@@ -2950,8 +2959,8 @@ function is(t, e = (r) => r) {
2950
2959
  return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
2951
2960
  });
2952
2961
  }
2953
- function xt(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
2954
- let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? is(t) : t : e & 64 ? ts(t) : es(t);
2962
+ function Ot(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
2963
+ let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? ls(t) : t : e & 64 ? rs(t) : ts(t);
2955
2964
  a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((d) => d != null && "current" in d ? (d == null ? void 0 : d.current) === w : d === w))), n = n ?? o.activeElement;
2956
2965
  let u = (() => {
2957
2966
  if (e & 5) return 1;
@@ -2963,31 +2972,31 @@ function xt(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
2963
2972
  if (e & 4) return Math.max(0, l.indexOf(n)) + 1;
2964
2973
  if (e & 8) return l.length - 1;
2965
2974
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
2966
- })(), f = e & 32 ? { preventScroll: !0 } : {}, s = 0, h = l.length, v;
2975
+ })(), f = e & 32 ? { preventScroll: !0 } : {}, s = 0, g = l.length, v;
2967
2976
  do {
2968
- if (s >= h || s + h <= 0) return 0;
2977
+ if (s >= g || s + g <= 0) return 0;
2969
2978
  let w = i + s;
2970
- if (e & 16) w = (w + h) % h;
2979
+ if (e & 16) w = (w + g) % g;
2971
2980
  else {
2972
2981
  if (w < 0) return 3;
2973
- if (w >= h) return 1;
2982
+ if (w >= g) return 1;
2974
2983
  }
2975
2984
  v = l[w], v == null || v.focus(f), s += u;
2976
2985
  } while (v !== o.activeElement);
2977
- return e & 6 && os(v) && v.select(), 2;
2986
+ return e & 6 && is(v) && v.select(), 2;
2978
2987
  }
2979
- function La() {
2988
+ function Wa() {
2980
2989
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
2981
2990
  }
2982
- function ls() {
2991
+ function us() {
2983
2992
  return /Android/gi.test(window.navigator.userAgent);
2984
2993
  }
2985
- function us() {
2986
- return La() || ls();
2994
+ function ss() {
2995
+ return Wa() || us();
2987
2996
  }
2988
- function yt(t, e, r, n) {
2997
+ function vt(t, e, r, n) {
2989
2998
  let a = qe(r);
2990
- Y(() => {
2999
+ z(() => {
2991
3000
  if (!t) return;
2992
3001
  function o(l) {
2993
3002
  a.current(l);
@@ -2995,9 +3004,9 @@ function yt(t, e, r, n) {
2995
3004
  return document.addEventListener(e, o, n), () => document.removeEventListener(e, o, n);
2996
3005
  }, [t, e, n]);
2997
3006
  }
2998
- function Wa(t, e, r, n) {
3007
+ function Ua(t, e, r, n) {
2999
3008
  let a = qe(r);
3000
- Y(() => {
3009
+ z(() => {
3001
3010
  if (!t) return;
3002
3011
  function o(l) {
3003
3012
  a.current(l);
@@ -3005,41 +3014,41 @@ function Wa(t, e, r, n) {
3005
3014
  return window.addEventListener(e, o, n), () => window.removeEventListener(e, o, n);
3006
3015
  }, [t, e, n]);
3007
3016
  }
3008
- const Jn = 30;
3009
- function ss(t, e, r) {
3017
+ const Qn = 30;
3018
+ function cs(t, e, r) {
3010
3019
  let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, f) {
3011
3020
  if (i.defaultPrevented) return;
3012
3021
  let s = f(i);
3013
3022
  if (s === null || !s.getRootNode().contains(s) || !s.isConnected) return;
3014
- let h = function v(w) {
3023
+ let g = function v(w) {
3015
3024
  return typeof w == "function" ? v(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
3016
3025
  }(e);
3017
- for (let v of h) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
3018
- return !rs(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
3026
+ for (let v of g) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
3027
+ return !ns(s, La.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
3019
3028
  }, [a, e]), l = k(null);
3020
- yt(n, "pointerdown", (i) => {
3029
+ vt(n, "pointerdown", (i) => {
3021
3030
  var f, s;
3022
3031
  l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
3023
- }, !0), yt(n, "mousedown", (i) => {
3032
+ }, !0), vt(n, "mousedown", (i) => {
3024
3033
  var f, s;
3025
3034
  l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
3026
- }, !0), yt(n, "click", (i) => {
3027
- us() || l.current && (o(i, () => l.current), l.current = null);
3035
+ }, !0), vt(n, "click", (i) => {
3036
+ ss() || l.current && (o(i, () => l.current), l.current = null);
3028
3037
  }, !0);
3029
3038
  let u = k({ x: 0, y: 0 });
3030
- yt(n, "touchstart", (i) => {
3039
+ vt(n, "touchstart", (i) => {
3031
3040
  u.current.x = i.touches[0].clientX, u.current.y = i.touches[0].clientY;
3032
- }, !0), yt(n, "touchend", (i) => {
3041
+ }, !0), vt(n, "touchend", (i) => {
3033
3042
  let f = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
3034
- if (!(Math.abs(f.x - u.current.x) >= Jn || Math.abs(f.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3035
- }, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
3043
+ if (!(Math.abs(f.x - u.current.x) >= Qn || Math.abs(f.y - u.current.y) >= Qn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3044
+ }, !0), Ua(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
3036
3045
  }
3037
- function $t(...t) {
3038
- return J(() => Jt(...t), [...t]);
3046
+ function Rt(...t) {
3047
+ return J(() => Qt(...t), [...t]);
3039
3048
  }
3040
- function Ua(t, e, r, n) {
3049
+ function Ba(t, e, r, n) {
3041
3050
  let a = qe(r);
3042
- Y(() => {
3051
+ z(() => {
3043
3052
  t = t ?? window;
3044
3053
  function o(l) {
3045
3054
  a.current(l);
@@ -3047,7 +3056,7 @@ function Ua(t, e, r, n) {
3047
3056
  return t.addEventListener(e, o, n), () => t.removeEventListener(e, o, n);
3048
3057
  }, [t, e, n]);
3049
3058
  }
3050
- function cs() {
3059
+ function fs() {
3051
3060
  let t;
3052
3061
  return { before({ doc: e }) {
3053
3062
  var r;
@@ -3058,8 +3067,8 @@ function cs() {
3058
3067
  r.style(n, "paddingRight", `${o}px`);
3059
3068
  } };
3060
3069
  }
3061
- function fs() {
3062
- return La() ? { before({ doc: t, d: e, meta: r }) {
3070
+ function ds() {
3071
+ return Wa() ? { before({ doc: t, d: e, meta: r }) {
3063
3072
  function n(a) {
3064
3073
  return r.containers.flatMap((o) => o()).some((o) => o.contains(a));
3065
3074
  }
@@ -3101,17 +3110,17 @@ function fs() {
3101
3110
  });
3102
3111
  } } : {};
3103
3112
  }
3104
- function ds() {
3113
+ function ps() {
3105
3114
  return { before({ doc: t, d: e }) {
3106
3115
  e.style(t.documentElement, "overflow", "hidden");
3107
3116
  } };
3108
3117
  }
3109
- function ps(t) {
3118
+ function ys(t) {
3110
3119
  let e = {};
3111
3120
  for (let r of t) Object.assign(e, r(e));
3112
3121
  return e;
3113
3122
  }
3114
- let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
3123
+ let Ue = ka(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
3115
3124
  var r;
3116
3125
  let n = (r = this.get(t)) != null ? r : { doc: t, count: 0, d: Me(), meta: /* @__PURE__ */ new Set() };
3117
3126
  return n.count++, n.meta.add(e), this.set(t, n), this;
@@ -3119,7 +3128,7 @@ let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
3119
3128
  let r = this.get(t);
3120
3129
  return r && (r.count--, r.meta.delete(e)), this;
3121
3130
  }, SCROLL_PREVENT({ doc: t, d: e, meta: r }) {
3122
- let n = { doc: t, d: e, meta: ps(r) }, a = [fs(), cs(), ds()];
3131
+ let n = { doc: t, d: e, meta: ys(r) }, a = [ds(), fs(), ps()];
3123
3132
  a.forEach(({ before: o }) => o == null ? void 0 : o(n)), a.forEach(({ after: o }) => o == null ? void 0 : o(n));
3124
3133
  }, SCROLL_ALLOW({ d: t }) {
3125
3134
  t.dispose();
@@ -3134,36 +3143,36 @@ Ue.subscribe(() => {
3134
3143
  (a && !n || !a && n) && Ue.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && Ue.dispatch("TEARDOWN", r);
3135
3144
  }
3136
3145
  });
3137
- function ys(t, e, r = () => ({ containers: [] })) {
3138
- let n = ka(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
3146
+ function vs(t, e, r = () => ({ containers: [] })) {
3147
+ let n = ja(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
3139
3148
  return ae(() => {
3140
3149
  if (!(!e || !t)) return Ue.dispatch("PUSH", e, r), () => Ue.dispatch("POP", e, r);
3141
3150
  }, [t, e]), o;
3142
3151
  }
3143
- function vs(t, e, r = () => [document.body]) {
3152
+ function ms(t, e, r = () => [document.body]) {
3144
3153
  let n = ot(t, "scroll-lock");
3145
- ys(n, e, (a) => {
3154
+ vs(n, e, (a) => {
3146
3155
  var o;
3147
3156
  return { containers: [...(o = a.containers) != null ? o : [], r] };
3148
3157
  });
3149
3158
  }
3150
- function ms(t = 0) {
3159
+ function hs(t = 0) {
3151
3160
  let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((f) => f | i), [e]), o = ve((i) => (e & i) === i, [e]), l = ve((i) => r((f) => f & ~i), [r]), u = ve((i) => r((f) => f ^ i), [r]);
3152
3161
  return { flags: e, setFlag: n, addFlag: a, hasFlag: o, removeFlag: l, toggleFlag: u };
3153
3162
  }
3154
- var Qn, Zn;
3155
- typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Qn = process == null ? void 0 : process.env) == null ? void 0 : Qn.NODE_ENV) === "test" && typeof ((Zn = Element == null ? void 0 : Element.prototype) == null ? void 0 : Zn.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
3163
+ var Zn, ea;
3164
+ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Zn = process == null ? void 0 : process.env) == null ? void 0 : Zn.NODE_ENV) === "test" && typeof ((ea = Element == null ? void 0 : Element.prototype) == null ? void 0 : ea.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
3156
3165
  return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
3157
3166
  `)), [];
3158
3167
  });
3159
- var hs = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(hs || {});
3160
- function gs(t) {
3168
+ var gs = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(gs || {});
3169
+ function bs(t) {
3161
3170
  let e = {};
3162
3171
  for (let r in t) t[r] === !0 && (e[`data-${r}`] = "");
3163
3172
  return e;
3164
3173
  }
3165
- function bs(t, e, r, n) {
3166
- let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = ms(t && a ? 3 : 0), f = k(!1), s = k(!1), h = en();
3174
+ function ws(t, e, r, n) {
3175
+ let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = hs(t && a ? 3 : 0), f = k(!1), s = k(!1), g = tn();
3167
3176
  return ae(() => {
3168
3177
  var v;
3169
3178
  if (t) {
@@ -3171,7 +3180,7 @@ function bs(t, e, r, n) {
3171
3180
  r && u(3);
3172
3181
  return;
3173
3182
  }
3174
- return (v = n == null ? void 0 : n.start) == null || v.call(n, r), ws(e, { inFlight: f, prepare() {
3183
+ return (v = n == null ? void 0 : n.start) == null || v.call(n, r), Es(e, { inFlight: f, prepare() {
3175
3184
  s.current ? s.current = !1 : s.current = f.current, f.current = !0, !s.current && (r ? (u(3), i(4)) : (u(4), i(2)));
3176
3185
  }, run() {
3177
3186
  s.current ? r ? (i(3), u(4)) : (i(4), u(3)) : r ? i(1) : u(1);
@@ -3180,17 +3189,17 @@ function bs(t, e, r, n) {
3180
3189
  s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (f.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
3181
3190
  } });
3182
3191
  }
3183
- }, [t, r, e, h]), 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 }];
3192
+ }, [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 }];
3184
3193
  }
3185
- function ws(t, { prepare: e, run: r, done: n, inFlight: a }) {
3194
+ function Es(t, { prepare: e, run: r, done: n, inFlight: a }) {
3186
3195
  let o = Me();
3187
- return Ss(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
3196
+ return xs(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
3188
3197
  r(), o.requestAnimationFrame(() => {
3189
- o.add(Es(t, n));
3198
+ o.add(Ss(t, n));
3190
3199
  });
3191
3200
  }), o.dispose;
3192
3201
  }
3193
- function Es(t, e) {
3202
+ function Ss(t, e) {
3194
3203
  var r, n;
3195
3204
  let a = Me();
3196
3205
  if (!t) return a.dispose;
@@ -3203,7 +3212,7 @@ function Es(t, e) {
3203
3212
  o || e();
3204
3213
  }), a.dispose);
3205
3214
  }
3206
- function Ss(t, { inFlight: e, prepare: r }) {
3215
+ function xs(t, { inFlight: e, prepare: r }) {
3207
3216
  if (e != null && e.current) {
3208
3217
  r();
3209
3218
  return;
@@ -3211,9 +3220,9 @@ function Ss(t, { inFlight: e, prepare: r }) {
3211
3220
  let n = t.style.transition;
3212
3221
  t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
3213
3222
  }
3214
- function rn(t, e) {
3223
+ function nn(t, e) {
3215
3224
  let r = k([]), n = U(t);
3216
- Y(() => {
3225
+ z(() => {
3217
3226
  let a = [...r.current];
3218
3227
  for (let [o, l] of e.entries()) if (r.current[o] !== l) {
3219
3228
  let u = n(e, a);
@@ -3221,26 +3230,26 @@ function rn(t, e) {
3221
3230
  }
3222
3231
  }, [n, ...e]);
3223
3232
  }
3224
- let Zt = fe(null);
3225
- Zt.displayName = "OpenClosedContext";
3233
+ let er = fe(null);
3234
+ er.displayName = "OpenClosedContext";
3226
3235
  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 || {});
3227
- function er() {
3228
- return ie(Zt);
3236
+ function tr() {
3237
+ return ie(er);
3229
3238
  }
3230
- function xs({ value: t, children: e }) {
3231
- return A.createElement(Zt.Provider, { value: t }, e);
3239
+ function Os({ value: t, children: e }) {
3240
+ return A.createElement(er.Provider, { value: t }, e);
3232
3241
  }
3233
- function Os({ children: t }) {
3234
- return A.createElement(Zt.Provider, { value: null }, t);
3242
+ function Ps({ children: t }) {
3243
+ return A.createElement(er.Provider, { value: null }, t);
3235
3244
  }
3236
- function Ps(t) {
3245
+ function As(t) {
3237
3246
  function e() {
3238
3247
  document.readyState !== "loading" && (t(), document.removeEventListener("DOMContentLoaded", e));
3239
3248
  }
3240
3249
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", e), e());
3241
3250
  }
3242
3251
  let $e = [];
3243
- Ps(() => {
3252
+ As(() => {
3244
3253
  function t(e) {
3245
3254
  if (!(e.target instanceof HTMLElement) || e.target === document.body || $e[0] === e.target) return;
3246
3255
  let r = e.target;
@@ -3248,34 +3257,34 @@ Ps(() => {
3248
3257
  }
3249
3258
  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 });
3250
3259
  });
3251
- function Ba(t) {
3260
+ function Ha(t) {
3252
3261
  let e = U(t), r = k(!1);
3253
- Y(() => (r.current = !1, () => {
3254
- r.current = !0, Qt(() => {
3262
+ z(() => (r.current = !1, () => {
3263
+ r.current = !0, Zt(() => {
3255
3264
  r.current && e();
3256
3265
  });
3257
3266
  }), [e]);
3258
3267
  }
3259
- function As() {
3268
+ function Ts() {
3260
3269
  let t = typeof document > "u";
3261
- return "useSyncExternalStore" in ht ? ((e) => e.useSyncExternalStore)(ht)(() => () => {
3270
+ return "useSyncExternalStore" in gt ? ((e) => e.useSyncExternalStore)(gt)(() => () => {
3262
3271
  }, () => !1, () => !t) : !1;
3263
3272
  }
3264
- function Rt() {
3265
- let t = As(), [e, r] = ht.useState(Ve.isHandoffComplete);
3266
- return e && Ve.isHandoffComplete === !1 && r(!1), ht.useEffect(() => {
3273
+ function Ft() {
3274
+ let t = Ts(), [e, r] = gt.useState(Ve.isHandoffComplete);
3275
+ return e && Ve.isHandoffComplete === !1 && r(!1), gt.useEffect(() => {
3267
3276
  e !== !0 && r(!0);
3268
- }, [e]), ht.useEffect(() => Ve.handoff(), []), t ? !1 : e;
3277
+ }, [e]), gt.useEffect(() => Ve.handoff(), []), t ? !1 : e;
3269
3278
  }
3270
- let Ha = fe(!1);
3271
- function Ts() {
3272
- return ie(Ha);
3279
+ let Va = fe(!1);
3280
+ function $s() {
3281
+ return ie(Va);
3273
3282
  }
3274
- function ea(t) {
3275
- return A.createElement(Ha.Provider, { value: t.force }, t.children);
3283
+ function ta(t) {
3284
+ return A.createElement(Va.Provider, { value: t.force }, t.children);
3276
3285
  }
3277
- function $s(t) {
3278
- let e = Ts(), r = ie(qa), n = $t(t), [a, o] = Q(() => {
3286
+ function Rs(t) {
3287
+ let e = $s(), r = ie(Ga), n = Rt(t), [a, o] = Q(() => {
3279
3288
  var l;
3280
3289
  if (!e && r !== null) return (l = r.current) != null ? l : null;
3281
3290
  if (Ve.isServer) return null;
@@ -3285,57 +3294,57 @@ function $s(t) {
3285
3294
  let i = n.createElement("div");
3286
3295
  return i.setAttribute("id", "headlessui-portal-root"), n.body.appendChild(i);
3287
3296
  });
3288
- return Y(() => {
3297
+ return z(() => {
3289
3298
  a !== null && (n != null && n.body.contains(a) || n == null || n.body.appendChild(a));
3290
- }, [a, n]), Y(() => {
3299
+ }, [a, n]), z(() => {
3291
3300
  e || r !== null && o(r.current);
3292
3301
  }, [r, o, e]), a;
3293
3302
  }
3294
- let Va = he, Rs = le(function(t, e) {
3295
- let r = t, n = k(null), a = Se(Wu((h) => {
3296
- n.current = h;
3297
- }), e), o = $t(n), l = $s(n), [u] = Q(() => {
3298
- var h;
3299
- return Ve.isServer ? null : (h = o == null ? void 0 : o.createElement("div")) != null ? h : null;
3300
- }), i = ie(Br), f = Rt();
3303
+ let qa = he, Fs = le(function(t, e) {
3304
+ let r = t, n = k(null), a = Se(Uu((g) => {
3305
+ n.current = g;
3306
+ }), e), o = Rt(n), l = Rs(n), [u] = Q(() => {
3307
+ var g;
3308
+ return Ve.isServer ? null : (g = o == null ? void 0 : o.createElement("div")) != null ? g : null;
3309
+ }), i = ie(Hr), f = Ft();
3301
3310
  ae(() => {
3302
3311
  !l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
3303
3312
  }, [l, u]), ae(() => {
3304
3313
  if (u && i) return i.register(u);
3305
- }, [i, u]), Ba(() => {
3306
- var h;
3307
- !l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((h = l.parentElement) == null || h.removeChild(l)));
3314
+ }, [i, u]), Ha(() => {
3315
+ var g;
3316
+ !l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l)));
3308
3317
  });
3309
3318
  let s = de();
3310
- return f ? !l || !u ? null : Lo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
3319
+ return f ? !l || !u ? null : Wo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: qa, name: "Portal" }), u) : null;
3311
3320
  });
3312
- function Fs(t, e) {
3321
+ function Is(t, e) {
3313
3322
  let r = Se(e), { enabled: n = !0, ...a } = t, o = de();
3314
- return n ? A.createElement(Rs, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
3323
+ return n ? A.createElement(Fs, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: qa, name: "Portal" });
3315
3324
  }
3316
- let Is = he, qa = fe(null);
3317
- function Cs(t, e) {
3325
+ let Cs = he, Ga = fe(null);
3326
+ function Ms(t, e) {
3318
3327
  let { target: r, ...n } = t, a = { ref: Se(e) }, o = de();
3319
- return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Is, name: "Popover.Group" }));
3328
+ return A.createElement(Ga.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Cs, name: "Popover.Group" }));
3320
3329
  }
3321
- let Br = fe(null);
3322
- function Ms() {
3323
- let t = ie(Br), e = k([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3330
+ let Hr = fe(null);
3331
+ function _s() {
3332
+ let t = ie(Hr), e = k([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3324
3333
  let l = e.current.indexOf(o);
3325
3334
  l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
3326
3335
  }), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
3327
3336
  return [e, J(() => function({ children: o }) {
3328
- return A.createElement(Br.Provider, { value: a }, o);
3337
+ return A.createElement(Hr.Provider, { value: a }, o);
3329
3338
  }, [a])];
3330
3339
  }
3331
- let _s = le(Fs), Ga = le(Cs), Ds = Object.assign(_s, { Group: Ga });
3332
- function Ns(t, e = typeof document < "u" ? document.defaultView : null, r) {
3340
+ let Ds = le(Is), za = le(Ms), Ns = Object.assign(Ds, { Group: za });
3341
+ function ks(t, e = typeof document < "u" ? document.defaultView : null, r) {
3333
3342
  let n = ot(t, "escape");
3334
- Ua(e, "keydown", (a) => {
3335
- n && (a.defaultPrevented || a.key === Da.Escape && r(a));
3343
+ Ba(e, "keydown", (a) => {
3344
+ n && (a.defaultPrevented || a.key === Na.Escape && r(a));
3336
3345
  });
3337
3346
  }
3338
- function ks() {
3347
+ function js() {
3339
3348
  var t;
3340
3349
  let [e] = Q(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = Q((t = e == null ? void 0 : e.matches) != null ? t : !1);
3341
3350
  return ae(() => {
@@ -3346,8 +3355,8 @@ function ks() {
3346
3355
  return e.addEventListener("change", a), () => e.removeEventListener("change", a);
3347
3356
  }, [e]), r;
3348
3357
  }
3349
- function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3350
- let n = $t(r), a = U(() => {
3358
+ function Ls({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3359
+ let n = Rt(r), a = U(() => {
3351
3360
  var o, l;
3352
3361
  let u = [];
3353
3362
  for (let i of t) i !== null && (i instanceof HTMLElement ? u.push(i) : "current" in i && i.current instanceof HTMLElement && u.push(i.current));
@@ -3358,78 +3367,78 @@ function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3358
3367
  return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
3359
3368
  }
3360
3369
  let Ya = fe(null);
3361
- function ta({ children: t, node: e }) {
3362
- let [r, n] = Q(null), a = za(e ?? r);
3363
- return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(Lr, { features: Gt.Hidden, ref: (o) => {
3370
+ function ra({ children: t, node: e }) {
3371
+ let [r, n] = Q(null), a = Ka(e ?? r);
3372
+ return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(Wr, { features: zt.Hidden, ref: (o) => {
3364
3373
  var l, u;
3365
3374
  if (o) {
3366
- for (let i of (u = (l = Jt(o)) == null ? void 0 : l.querySelectorAll("html > *, body > *")) != null ? u : []) if (i !== document.body && i !== document.head && i instanceof HTMLElement && i != null && i.contains(o)) {
3375
+ for (let i of (u = (l = Qt(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)) {
3367
3376
  n(i);
3368
3377
  break;
3369
3378
  }
3370
3379
  }
3371
3380
  } }));
3372
3381
  }
3373
- function za(t = null) {
3382
+ function Ka(t = null) {
3374
3383
  var e;
3375
3384
  return (e = ie(Ya)) != null ? e : t;
3376
3385
  }
3377
- function nn() {
3386
+ function an() {
3378
3387
  let t = k(!1);
3379
3388
  return ae(() => (t.current = !0, () => {
3380
3389
  t.current = !1;
3381
3390
  }), []), t;
3382
3391
  }
3383
- var mt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(mt || {});
3384
- function Ls() {
3392
+ var ht = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(ht || {});
3393
+ function Ws() {
3385
3394
  let t = k(0);
3386
- return Wa(!0, "keydown", (e) => {
3395
+ return Ua(!0, "keydown", (e) => {
3387
3396
  e.key === "Tab" && (t.current = e.shiftKey ? 1 : 0);
3388
3397
  }, !0), t;
3389
3398
  }
3390
- function Ka(t) {
3399
+ function Xa(t) {
3391
3400
  if (!t) return /* @__PURE__ */ new Set();
3392
3401
  if (typeof t == "function") return new Set(t());
3393
3402
  let e = /* @__PURE__ */ new Set();
3394
3403
  for (let r of t.current) r.current instanceof HTMLElement && e.add(r.current);
3395
3404
  return e;
3396
3405
  }
3397
- let Ws = "div";
3406
+ let Us = "div";
3398
3407
  var We = ((t) => (t[t.None = 0] = "None", t[t.InitialFocus = 1] = "InitialFocus", t[t.TabLock = 2] = "TabLock", t[t.FocusLock = 4] = "FocusLock", t[t.RestoreFocus = 8] = "RestoreFocus", t[t.AutoFocus = 16] = "AutoFocus", t))(We || {});
3399
- function Us(t, e) {
3408
+ function Bs(t, e) {
3400
3409
  let r = k(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
3401
- Rt() || (u = 0);
3402
- let f = $t(r);
3403
- qs(u, { ownerDocument: f });
3404
- let s = Gs(u, { ownerDocument: f, container: r, initialFocus: a, initialFocusFallback: o });
3410
+ Ft() || (u = 0);
3411
+ let f = Rt(r);
3412
+ Gs(u, { ownerDocument: f });
3413
+ let s = zs(u, { ownerDocument: f, container: r, initialFocus: a, initialFocusFallback: o });
3405
3414
  Ys(u, { ownerDocument: f, container: r, containers: l, previousActiveElement: s });
3406
- let h = Ls(), v = U((g) => {
3415
+ let g = Ws(), v = U((h) => {
3407
3416
  let b = r.current;
3408
3417
  b && ((S) => S())(() => {
3409
- Ie(h.current, { [mt.Forwards]: () => {
3410
- xt(b, Pe.First, { skipElements: [g.relatedTarget, o] });
3411
- }, [mt.Backwards]: () => {
3412
- xt(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
3418
+ Ie(g.current, { [ht.Forwards]: () => {
3419
+ Ot(b, Pe.First, { skipElements: [h.relatedTarget, o] });
3420
+ }, [ht.Backwards]: () => {
3421
+ Ot(b, Pe.Last, { skipElements: [h.relatedTarget, o] });
3413
3422
  } });
3414
3423
  });
3415
- }), w = ot(!!(u & 2), "focus-trap#tab-lock"), d = en(), y = k(!1), p = { ref: n, onKeyDown(g) {
3416
- g.key == "Tab" && (y.current = !0, d.requestAnimationFrame(() => {
3424
+ }), w = ot(!!(u & 2), "focus-trap#tab-lock"), d = tn(), y = k(!1), p = { ref: n, onKeyDown(h) {
3425
+ h.key == "Tab" && (y.current = !0, d.requestAnimationFrame(() => {
3417
3426
  y.current = !1;
3418
3427
  }));
3419
- }, onBlur(g) {
3428
+ }, onBlur(h) {
3420
3429
  if (!(u & 4)) return;
3421
- let b = Ka(l);
3430
+ let b = Xa(l);
3422
3431
  r.current instanceof HTMLElement && b.add(r.current);
3423
- let S = g.relatedTarget;
3424
- S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? xt(r.current, Ie(h.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && Ae(g.target)));
3432
+ let S = h.relatedTarget;
3433
+ S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Ja(b, S) || (y.current ? Ot(r.current, Ie(g.current, { [ht.Forwards]: () => Pe.Next, [ht.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Ae(h.target)));
3425
3434
  } }, m = de();
3426
- return A.createElement(A.Fragment, null, w && A.createElement(Lr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: Gt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ws, name: "FocusTrap" }), w && A.createElement(Lr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: Gt.Focusable }));
3435
+ return A.createElement(A.Fragment, null, w && A.createElement(Wr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: zt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Us, name: "FocusTrap" }), w && A.createElement(Wr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: zt.Focusable }));
3427
3436
  }
3428
- let Bs = le(Us), Hs = Object.assign(Bs, { features: We });
3429
- function Vs(t = !0) {
3437
+ let Hs = le(Bs), Vs = Object.assign(Hs, { features: We });
3438
+ function qs(t = !0) {
3430
3439
  let e = k($e.slice());
3431
- return rn(([r], [n]) => {
3432
- n === !0 && r === !1 && Qt(() => {
3440
+ return nn(([r], [n]) => {
3441
+ n === !0 && r === !1 && Zt(() => {
3433
3442
  e.current.splice(0);
3434
3443
  }), n === !1 && r === !0 && (e.current = $e.slice());
3435
3444
  }, [t, $e, e]), U(() => {
@@ -3437,24 +3446,24 @@ function Vs(t = !0) {
3437
3446
  return (r = e.current.find((n) => n != null && n.isConnected)) != null ? r : null;
3438
3447
  });
3439
3448
  }
3440
- function qs(t, { ownerDocument: e }) {
3441
- let r = !!(t & 8), n = Vs(r);
3442
- rn(() => {
3449
+ function Gs(t, { ownerDocument: e }) {
3450
+ let r = !!(t & 8), n = qs(r);
3451
+ nn(() => {
3443
3452
  r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
3444
- }, [r]), Ba(() => {
3453
+ }, [r]), Ha(() => {
3445
3454
  r && Ae(n());
3446
3455
  });
3447
3456
  }
3448
- function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3449
- let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = nn();
3450
- return rn(() => {
3457
+ function zs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3458
+ let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = an();
3459
+ return nn(() => {
3451
3460
  if (t === 0) return;
3452
3461
  if (!l) {
3453
3462
  a != null && a.current && Ae(a.current);
3454
3463
  return;
3455
3464
  }
3456
3465
  let i = r.current;
3457
- i && Qt(() => {
3466
+ i && Zt(() => {
3458
3467
  if (!u.current) return;
3459
3468
  let f = e == null ? void 0 : e.activeElement;
3460
3469
  if (n != null && n.current) {
@@ -3469,8 +3478,8 @@ function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3469
3478
  if (n != null && n.current) Ae(n.current);
3470
3479
  else {
3471
3480
  if (t & 16) {
3472
- if (xt(i, Pe.First | Pe.AutoFocus) !== Ur.Error) return;
3473
- } else if (xt(i, Pe.First) !== Ur.Error) return;
3481
+ if (Ot(i, Pe.First | Pe.AutoFocus) !== Br.Error) return;
3482
+ } else if (Ot(i, Pe.First) !== Br.Error) return;
3474
3483
  if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
3475
3484
  console.warn("There are no focusable elements inside the <FocusTrap />");
3476
3485
  }
@@ -3479,45 +3488,45 @@ function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3479
3488
  }, [a, l, t]), o;
3480
3489
  }
3481
3490
  function Ys(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3482
- let o = nn(), l = !!(t & 4);
3483
- Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
3491
+ let o = an(), l = !!(t & 4);
3492
+ Ba(e == null ? void 0 : e.defaultView, "focus", (u) => {
3484
3493
  if (!l || !o.current) return;
3485
- let i = Ka(n);
3494
+ let i = Xa(n);
3486
3495
  r.current instanceof HTMLElement && i.add(r.current);
3487
3496
  let f = a.current;
3488
3497
  if (!f) return;
3489
3498
  let s = u.target;
3490
- s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(f)) : Ae(a.current);
3499
+ s && s instanceof HTMLElement ? Ja(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(f)) : Ae(a.current);
3491
3500
  }, !0);
3492
3501
  }
3493
- function Xa(t, e) {
3502
+ function Ja(t, e) {
3494
3503
  for (let r of t) if (r.contains(e)) return !0;
3495
3504
  return !1;
3496
3505
  }
3497
- function Ja(t) {
3506
+ function Qa(t) {
3498
3507
  var e;
3499
- return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : Za) !== he || A.Children.count(t.children) === 1;
3508
+ return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : eo) !== he || A.Children.count(t.children) === 1;
3500
3509
  }
3501
- let tr = fe(null);
3502
- tr.displayName = "TransitionContext";
3503
- var zs = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(zs || {});
3504
- function Ks() {
3505
- let t = ie(tr);
3510
+ let rr = fe(null);
3511
+ rr.displayName = "TransitionContext";
3512
+ var Ks = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(Ks || {});
3513
+ function Xs() {
3514
+ let t = ie(rr);
3506
3515
  if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3507
3516
  return t;
3508
3517
  }
3509
- function Xs() {
3510
- let t = ie(rr);
3518
+ function Js() {
3519
+ let t = ie(nr);
3511
3520
  if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3512
3521
  return t;
3513
3522
  }
3514
- let rr = fe(null);
3515
- rr.displayName = "NestingContext";
3516
- function nr(t) {
3517
- return "children" in t ? nr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
3523
+ let nr = fe(null);
3524
+ nr.displayName = "NestingContext";
3525
+ function ar(t) {
3526
+ return "children" in t ? ar(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
3518
3527
  }
3519
- function Qa(t, e) {
3520
- let r = qe(t), n = k([]), a = nn(), o = en(), l = U((w, d = Fe.Hidden) => {
3528
+ function Za(t, e) {
3529
+ let r = qe(t), n = k([]), a = an(), o = tn(), l = U((w, d = Fe.Hidden) => {
3521
3530
  let y = n.current.findIndex(({ el: p }) => p === w);
3522
3531
  y !== -1 && (Ie(d, { [Fe.Unmount]() {
3523
3532
  n.current.splice(y, 1);
@@ -3525,16 +3534,16 @@ function Qa(t, e) {
3525
3534
  n.current[y].state = "hidden";
3526
3535
  } }), o.microTask(() => {
3527
3536
  var p;
3528
- !nr(n) && a.current && ((p = r.current) == null || p.call(r));
3537
+ !ar(n) && a.current && ((p = r.current) == null || p.call(r));
3529
3538
  }));
3530
3539
  }), u = U((w) => {
3531
3540
  let d = n.current.find(({ el: y }) => y === w);
3532
3541
  return d ? d.state !== "visible" && (d.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
3533
- }), i = k([]), f = k(Promise.resolve()), s = k({ enter: [], leave: [] }), h = U((w, d, y) => {
3542
+ }), i = k([]), f = k(Promise.resolve()), s = k({ enter: [], leave: [] }), g = U((w, d, y) => {
3534
3543
  i.current.splice(0), e && (e.chains.current[d] = e.chains.current[d].filter(([p]) => p !== w)), e == null || e.chains.current[d].push([w, new Promise((p) => {
3535
3544
  i.current.push(p);
3536
3545
  })]), e == null || e.chains.current[d].push([w, new Promise((p) => {
3537
- Promise.all(s.current[d].map(([m, g]) => g)).then(() => p());
3546
+ Promise.all(s.current[d].map(([m, h]) => h)).then(() => p());
3538
3547
  })]), d === "enter" ? f.current = f.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(d)) : y(d);
3539
3548
  }), v = U((w, d, y) => {
3540
3549
  Promise.all(s.current[d].splice(0).map(([p, m]) => m)).then(() => {
@@ -3542,27 +3551,27 @@ function Qa(t, e) {
3542
3551
  (p = i.current.shift()) == null || p();
3543
3552
  }).then(() => y(d));
3544
3553
  });
3545
- return J(() => ({ children: n, register: u, unregister: l, onStart: h, onStop: v, wait: f, chains: s }), [u, l, n, h, v, s, f]);
3554
+ return J(() => ({ children: n, register: u, unregister: l, onStart: g, onStop: v, wait: f, chains: s }), [u, l, n, g, v, s, f]);
3546
3555
  }
3547
- let Za = he, eo = qt.RenderStrategy;
3548
- function Js(t, e) {
3556
+ let eo = he, to = Gt.RenderStrategy;
3557
+ function Qs(t, e) {
3549
3558
  var r, n;
3550
- let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: f, enterFrom: s, enterTo: h, entered: v, leave: w, leaveFrom: d, leaveTo: y, ...p } = t, [m, g] = Q(null), b = k(null), S = Ja(t), O = Se(...S ? [b, e, g] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = Ks(), [j, z] = Q(M ? "visible" : "hidden"), V = Xs(), { register: $, unregister: T } = V;
3559
+ let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: f, enterFrom: s, enterTo: g, entered: v, leave: w, leaveFrom: d, leaveTo: y, ...p } = t, [m, h] = Q(null), b = k(null), S = Qa(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 } = Xs(), [j, Y] = Q(M ? "visible" : "hidden"), V = Js(), { register: $, unregister: T } = V;
3551
3560
  ae(() => $(b), [$, b]), ae(() => {
3552
3561
  if (_ === Fe.Hidden && b.current) {
3553
3562
  if (M && j !== "visible") {
3554
- z("visible");
3563
+ Y("visible");
3555
3564
  return;
3556
3565
  }
3557
3566
  return Ie(j, { hidden: () => T(b), visible: () => $(b) });
3558
3567
  }
3559
3568
  }, [j, b, $, T, M, _]);
3560
- let D = Rt();
3569
+ let D = Ft();
3561
3570
  ae(() => {
3562
3571
  if (S && D && j === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3563
3572
  }, [b, j, D, S]);
3564
- let ue = H && !W, pe = W && M && H, ge = k(!1), te = Qa(() => {
3565
- ge.current || (z("hidden"), T(b));
3573
+ let ue = H && !W, pe = W && M && H, ge = k(!1), te = Za(() => {
3574
+ ge.current || (Y("hidden"), T(b));
3566
3575
  }, V), ye = U((Ne) => {
3567
3576
  ge.current = !0;
3568
3577
  let xe = Ne ? "enter" : "leave";
@@ -3573,120 +3582,120 @@ function Js(t, e) {
3573
3582
  let xe = Ne ? "enter" : "leave";
3574
3583
  ge.current = !1, te.onStop(b, xe, (Oe) => {
3575
3584
  Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
3576
- }), xe === "leave" && !nr(te) && (z("hidden"), T(b));
3585
+ }), xe === "leave" && !ar(te) && (Y("hidden"), T(b));
3577
3586
  });
3578
- Y(() => {
3587
+ z(() => {
3579
3588
  S && a || (ye(M), q(M));
3580
3589
  }, [M, S, a]);
3581
- let _e = !(!a || !S || !D || ue), [, ee] = bs(_e, m, M, { start: ye, end: q }), or = je({ ref: O, className: ((n = jr(p.className, pe && f, pe && s, ee.enter && f, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && d, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...gs(ee) }), De = 0;
3590
+ let _e = !(!a || !S || !D || ue), [, ee] = ws(_e, m, M, { start: ye, end: q }), ir = je({ ref: O, className: ((n = Lr(p.className, pe && f, pe && s, ee.enter && f, ee.enter && ee.closed && s, ee.enter && !ee.closed && g, ee.leave && w, ee.leave && !ee.closed && d, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...bs(ee) }), De = 0;
3582
3591
  j === "visible" && (De |= me.Open), j === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
3583
3592
  let lt = de();
3584
- return A.createElement(rr.Provider, { value: te }, A.createElement(xs, { value: De }, lt({ ourProps: or, theirProps: p, defaultTag: Za, features: eo, visible: j === "visible", name: "Transition.Child" })));
3593
+ return A.createElement(nr.Provider, { value: te }, A.createElement(Os, { value: De }, lt({ ourProps: ir, theirProps: p, defaultTag: eo, features: to, visible: j === "visible", name: "Transition.Child" })));
3585
3594
  }
3586
- function Qs(t, e) {
3587
- let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = k(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
3588
- Rt();
3589
- let f = er();
3595
+ function Zs(t, e) {
3596
+ let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = k(null), u = Qa(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
3597
+ Ft();
3598
+ let f = tr();
3590
3599
  if (r === void 0 && f !== null && (r = (f & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3591
- let [s, h] = Q(r ? "visible" : "hidden"), v = Qa(() => {
3592
- r || h("hidden");
3600
+ let [s, g] = Q(r ? "visible" : "hidden"), v = Za(() => {
3601
+ r || g("hidden");
3593
3602
  }), [w, d] = Q(!0), y = k([r]);
3594
3603
  ae(() => {
3595
3604
  w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), d(!1));
3596
3605
  }, [y, r]);
3597
3606
  let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
3598
3607
  ae(() => {
3599
- r ? h("visible") : !nr(v) && l.current !== null && h("hidden");
3608
+ r ? g("visible") : !ar(v) && l.current !== null && g("hidden");
3600
3609
  }, [r, v]);
3601
- let m = { unmount: a }, g = U(() => {
3610
+ let m = { unmount: a }, h = U(() => {
3602
3611
  var O;
3603
3612
  w && d(!1), (O = t.beforeEnter) == null || O.call(t);
3604
3613
  }), b = U(() => {
3605
3614
  var O;
3606
3615
  w && d(!1), (O = t.beforeLeave) == null || O.call(t);
3607
3616
  }), S = de();
3608
- return A.createElement(rr.Provider, { value: v }, A.createElement(tr.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
3617
+ return A.createElement(nr.Provider, { value: v }, A.createElement(rr.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(ro, { ref: i, ...m, ...o, beforeEnter: h, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: to, visible: s === "visible", name: "Transition" })));
3609
3618
  }
3610
- function Zs(t, e) {
3611
- let r = ie(tr) !== null, n = er() !== null;
3612
- return A.createElement(A.Fragment, null, !r && n ? A.createElement(Hr, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
3619
+ function ec(t, e) {
3620
+ let r = ie(rr) !== null, n = tr() !== null;
3621
+ return A.createElement(A.Fragment, null, !r && n ? A.createElement(Vr, { ref: e, ...t }) : A.createElement(ro, { ref: e, ...t }));
3613
3622
  }
3614
- let Hr = le(Qs), to = le(Js), it = le(Zs), ro = Object.assign(Hr, { Child: it, Root: Hr });
3615
- var ec = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(ec || {}), tc = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(tc || {});
3616
- let rc = { 0(t, e) {
3623
+ let Vr = le(Zs), ro = le(Qs), it = le(ec), no = Object.assign(Vr, { Child: it, Root: Vr });
3624
+ var tc = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(tc || {}), rc = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(rc || {});
3625
+ let nc = { 0(t, e) {
3617
3626
  return t.titleId === e.id ? t : { ...t, titleId: e.id };
3618
- } }, an = fe(null);
3619
- an.displayName = "DialogContext";
3620
- function ar(t) {
3621
- let e = ie(an);
3627
+ } }, on = fe(null);
3628
+ on.displayName = "DialogContext";
3629
+ function or(t) {
3630
+ let e = ie(on);
3622
3631
  if (e === null) {
3623
3632
  let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
3624
- throw Error.captureStackTrace && Error.captureStackTrace(r, ar), r;
3633
+ throw Error.captureStackTrace && Error.captureStackTrace(r, or), r;
3625
3634
  }
3626
3635
  return e;
3627
3636
  }
3628
- function nc(t, e) {
3629
- return Ie(e.type, rc, t, e);
3637
+ function ac(t, e) {
3638
+ return Ie(e.type, nc, t, e);
3630
3639
  }
3631
- let ra = le(function(t, e) {
3632
- let r = Pt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: f = !1, unmount: s = !1, ...h } = t, v = k(!1);
3640
+ let na = le(function(t, e) {
3641
+ let r = At(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: f = !1, unmount: s = !1, ...g } = t, v = k(!1);
3633
3642
  u = function() {
3634
3643
  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");
3635
3644
  }();
3636
- let w = er();
3645
+ let w = tr();
3637
3646
  a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
3638
- let d = k(null), y = Se(d, e), p = $t(d), m = a ? 0 : 1, [g, b] = No(nc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = Rt() ? m === 0 : !1, [M, W] = Ms(), H = { get current() {
3647
+ let d = k(null), y = Se(d, e), p = Rt(d), m = a ? 0 : 1, [h, b] = ko(ac, { titleId: null, descriptionId: null, panelRef: jo() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = Ft() ? m === 0 : !1, [M, W] = _s(), H = { get current() {
3639
3648
  var q;
3640
- return (q = g.panelRef.current) != null ? q : d.current;
3641
- } }, j = za(), { resolveContainers: z } = js({ mainTreeNode: j, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
3642
- Xu(f || V ? !1 : _, { allowed: U(() => {
3649
+ return (q = h.panelRef.current) != null ? q : d.current;
3650
+ } }, j = Ka(), { resolveContainers: Y } = Ls({ mainTreeNode: j, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
3651
+ Ju(f || V ? !1 : _, { allowed: U(() => {
3643
3652
  var q, _e;
3644
3653
  return [(_e = (q = d.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
3645
3654
  }), disallowed: U(() => {
3646
3655
  var q;
3647
3656
  return [(q = j == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? q : null];
3648
- }) }), ss(_, z, (q) => {
3657
+ }) }), cs(_, Y, (q) => {
3649
3658
  q.preventDefault(), S();
3650
- }), Ns(_, p == null ? void 0 : p.defaultView, (q) => {
3659
+ }), ks(_, p == null ? void 0 : p.defaultView, (q) => {
3651
3660
  q.preventDefault(), q.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
3652
- }), vs(f || V ? !1 : _, p, z), Ju(_, d, S);
3653
- let [$, T] = Uu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), pe = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": f ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": g.titleId, "aria-describedby": $, unmount: s }, ge = !ks(), te = We.None;
3661
+ }), ms(f || V ? !1 : _, p, Y), Qu(_, d, S);
3662
+ let [$, T] = Bu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, h], [m, h, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), pe = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": f ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": h.titleId, "aria-describedby": $, unmount: s }, ge = !js(), te = We.None;
3654
3663
  _ && !f && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3655
3664
  let ye = de();
3656
- return A.createElement(Os, null, A.createElement(ea, { force: !0 }, A.createElement(Ds, null, A.createElement(an.Provider, { value: D }, A.createElement(Ga, { target: d }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Hs, { initialFocus: l, initialFocusFallback: d, containers: z, features: te }, A.createElement(Yu, { value: S }, ye({ ourProps: pe, theirProps: h, slot: ue, defaultTag: ac, features: oc, visible: m === 0, name: "Dialog" })))))))))));
3657
- }), ac = "div", oc = qt.RenderStrategy | qt.Static;
3658
- function ic(t, e) {
3659
- let { transition: r = !1, open: n, ...a } = t, o = er(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
3665
+ return A.createElement(Ps, null, A.createElement(ta, { force: !0 }, A.createElement(Ns, null, A.createElement(on.Provider, { value: D }, A.createElement(za, { target: d }, A.createElement(ta, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Vs, { initialFocus: l, initialFocusFallback: d, containers: Y, features: te }, A.createElement(Yu, { value: S }, ye({ ourProps: pe, theirProps: g, slot: ue, defaultTag: oc, features: ic, visible: m === 0, name: "Dialog" })))))))))));
3666
+ }), oc = "div", ic = Gt.RenderStrategy | Gt.Static;
3667
+ function lc(t, e) {
3668
+ let { transition: r = !1, open: n, ...a } = t, o = tr(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
3660
3669
  if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
3661
3670
  if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
3662
3671
  if (!u) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
3663
3672
  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}`);
3664
3673
  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}`);
3665
- 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 }));
3674
+ return (n !== void 0 || r) && !a.static ? A.createElement(ra, null, A.createElement(no, { show: n, transition: r, unmount: a.unmount }, A.createElement(na, { ref: e, ...a }))) : A.createElement(ra, null, A.createElement(na, { ref: e, open: n, ...a }));
3666
3675
  }
3667
- let lc = "div";
3668
- function uc(t, e) {
3669
- let r = Pt(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = ar("Dialog.Panel"), f = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), h = U((p) => {
3676
+ let uc = "div";
3677
+ function sc(t, e) {
3678
+ let r = At(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = or("Dialog.Panel"), f = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), g = U((p) => {
3670
3679
  p.stopPropagation();
3671
- }), v = { ref: f, id: n, onClick: h }, w = a ? it : he, d = a ? { unmount: u } : {}, y = de();
3672
- return A.createElement(w, { ...d }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: lc, name: "Dialog.Panel" }));
3673
- }
3674
- let sc = "div";
3675
- function cc(t, e) {
3676
- let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = ar("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, f = r ? { unmount: o } : {}, s = de();
3677
- return A.createElement(i, { ...f }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: sc, name: "Dialog.Backdrop" }));
3678
- }
3679
- let fc = "h2";
3680
- function dc(t, e) {
3681
- let r = Pt(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = ar("Dialog.Title"), u = Se(e);
3682
- Y(() => (l(n), () => l(null)), [n, l]);
3680
+ }), v = { ref: f, id: n, onClick: g }, w = a ? it : he, d = a ? { unmount: u } : {}, y = de();
3681
+ return A.createElement(w, { ...d }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: uc, name: "Dialog.Panel" }));
3682
+ }
3683
+ let cc = "div";
3684
+ function fc(t, e) {
3685
+ let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = or("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, f = r ? { unmount: o } : {}, s = de();
3686
+ return A.createElement(i, { ...f }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: cc, name: "Dialog.Backdrop" }));
3687
+ }
3688
+ let dc = "h2";
3689
+ function pc(t, e) {
3690
+ let r = At(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = or("Dialog.Title"), u = Se(e);
3691
+ z(() => (l(n), () => l(null)), [n, l]);
3683
3692
  let i = J(() => ({ open: o === 0 }), [o]), f = { ref: u, id: n };
3684
- return de()({ ourProps: f, theirProps: a, slot: i, defaultTag: fc, name: "Dialog.Title" });
3693
+ return de()({ ourProps: f, theirProps: a, slot: i, defaultTag: dc, name: "Dialog.Title" });
3685
3694
  }
3686
- let pc = le(ic), on = le(uc);
3687
- le(cc);
3688
- let yc = le(dc), vc = Object.assign(pc, { Panel: on, Title: yc, Description: qu });
3689
- function no({ onClick: t }) {
3695
+ let yc = le(lc), ln = le(sc);
3696
+ le(fc);
3697
+ let vc = le(pc), mc = Object.assign(yc, { Panel: ln, Title: vc, Description: Gu });
3698
+ function ao({ onClick: t }) {
3690
3699
  return /* @__PURE__ */ R.jsxs(
3691
3700
  "button",
3692
3701
  {
@@ -3719,10 +3728,10 @@ function no({ onClick: t }) {
3719
3728
  }
3720
3729
  );
3721
3730
  }
3722
- const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
3731
+ const hc = ({ 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(
3723
3732
  "div",
3724
3733
  {
3725
- className: Vt("im-modal-positioner flex min-h-full justify-center", {
3734
+ className: qt("im-modal-positioner flex min-h-full justify-center", {
3726
3735
  "items-start": e.position === "top",
3727
3736
  "items-center": e.position === "center",
3728
3737
  "items-end": e.position === "bottom"
@@ -3735,7 +3744,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3735
3744
  leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
3736
3745
  leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
3737
3746
  afterLeave: t.afterLeave,
3738
- className: Vt("im-modal-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
3747
+ className: qt("im-modal-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
3739
3748
  "sm:max-w-sm": e.maxWidth === "sm",
3740
3749
  "sm:max-w-md": e.maxWidth === "md",
3741
3750
  "sm:max-w-md md:max-w-lg": e.maxWidth === "lg",
@@ -3747,17 +3756,17 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3747
3756
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
3748
3757
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
3749
3758
  }),
3750
- children: /* @__PURE__ */ R.jsxs(on, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3751
- e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
3759
+ children: /* @__PURE__ */ R.jsxs(ln, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3760
+ e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(ao, { onClick: t.close }) }),
3752
3761
  typeof r == "function" ? r({ modalContext: t, config: e }) : r
3753
3762
  ] })
3754
3763
  }
3755
3764
  )
3756
3765
  }
3757
- ) }), hc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
3766
+ ) }), gc = ({ 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(
3758
3767
  "div",
3759
3768
  {
3760
- className: Vt("im-slideover-positioner flex min-h-full items-center", {
3769
+ className: qt("im-slideover-positioner flex min-h-full items-center", {
3761
3770
  "justify-start": e.position === "left",
3762
3771
  "justify-end": e.position === "right"
3763
3772
  }),
@@ -3769,7 +3778,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3769
3778
  leaveFrom: "opacity-100 translate-x-0",
3770
3779
  leaveTo: `opacity-0 ${e.position === "left" ? "-translate-x-full" : "translate-x-full"}`,
3771
3780
  afterLeave: t.afterLeave,
3772
- className: Vt("im-slideover-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
3781
+ className: qt("im-slideover-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
3773
3782
  "sm:max-w-sm": e.maxWidth === "sm",
3774
3783
  "sm:max-w-md": e.maxWidth === "md",
3775
3784
  "sm:max-w-md md:max-w-lg": e.maxWidth === "lg",
@@ -3781,17 +3790,17 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3781
3790
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
3782
3791
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
3783
3792
  }),
3784
- children: /* @__PURE__ */ R.jsxs(on, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3785
- e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
3793
+ children: /* @__PURE__ */ R.jsxs(ln, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3794
+ e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(ao, { onClick: t.close }) }),
3786
3795
  typeof r == "function" ? r({ modalContext: t, config: e }) : r
3787
3796
  ] })
3788
3797
  }
3789
3798
  )
3790
3799
  }
3791
- ) }), gc = Vr(({ name: t, children: e, ...r }, n) => {
3800
+ ) }), bc = qr(({ name: t, children: e, ...r }, n) => {
3792
3801
  const a = (l) => typeof e == "function" ? e(l) : e, o = k(null);
3793
- return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3794
- Fa,
3802
+ return aa(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3803
+ Ia,
3795
3804
  {
3796
3805
  ref: o,
3797
3806
  name: t,
@@ -3802,22 +3811,22 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3802
3811
  config: i,
3803
3812
  emit: f,
3804
3813
  getChildModal: s,
3805
- getParentModal: h,
3814
+ getParentModal: g,
3806
3815
  id: v,
3807
3816
  index: w,
3808
3817
  isOpen: d,
3809
3818
  modalContext: y,
3810
3819
  onTopOfStack: p,
3811
3820
  reload: m,
3812
- setOpen: g,
3821
+ setOpen: h,
3813
3822
  shouldRender: b
3814
3823
  }) => /* @__PURE__ */ R.jsx(
3815
- ro,
3824
+ no,
3816
3825
  {
3817
3826
  appear: !0,
3818
3827
  show: d ?? !1,
3819
3828
  children: /* @__PURE__ */ R.jsxs(
3820
- vc,
3829
+ mc,
3821
3830
  {
3822
3831
  as: "div",
3823
3832
  className: "im-dialog relative z-20",
@@ -3845,7 +3854,7 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3845
3854
  ) : null,
3846
3855
  w > 0 && p ? /* @__PURE__ */ R.jsx("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
3847
3856
  i.slideover ? /* @__PURE__ */ R.jsx(
3848
- hc,
3857
+ gc,
3849
3858
  {
3850
3859
  modalContext: y,
3851
3860
  config: i,
@@ -3855,19 +3864,19 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3855
3864
  config: i,
3856
3865
  emit: f,
3857
3866
  getChildModal: s,
3858
- getParentModal: h,
3867
+ getParentModal: g,
3859
3868
  id: v,
3860
3869
  index: w,
3861
3870
  isOpen: d,
3862
3871
  modalContext: y,
3863
3872
  onTopOfStack: p,
3864
3873
  reload: m,
3865
- setOpen: g,
3874
+ setOpen: h,
3866
3875
  shouldRender: b
3867
3876
  })
3868
3877
  }
3869
3878
  ) : /* @__PURE__ */ R.jsx(
3870
- mc,
3879
+ hc,
3871
3880
  {
3872
3881
  modalContext: y,
3873
3882
  config: i,
@@ -3877,14 +3886,14 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3877
3886
  config: i,
3878
3887
  emit: f,
3879
3888
  getChildModal: s,
3880
- getParentModal: h,
3889
+ getParentModal: g,
3881
3890
  id: v,
3882
3891
  index: w,
3883
3892
  isOpen: d,
3884
3893
  modalContext: y,
3885
3894
  onTopOfStack: p,
3886
3895
  reload: m,
3887
- setOpen: g,
3896
+ setOpen: h,
3888
3897
  shouldRender: b
3889
3898
  })
3890
3899
  }
@@ -3897,8 +3906,8 @@ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3897
3906
  }
3898
3907
  );
3899
3908
  });
3900
- gc.displayName = "Modal";
3901
- const Rc = ({
3909
+ bc.displayName = "Modal";
3910
+ const Fc = ({
3902
3911
  href: t,
3903
3912
  method: e = "get",
3904
3913
  data: r = {},
@@ -3910,33 +3919,33 @@ const Rc = ({
3910
3919
  onClose: i = null,
3911
3920
  onError: f = null,
3912
3921
  onFocus: s = null,
3913
- onStart: h = null,
3922
+ onStart: g = null,
3914
3923
  onSuccess: v = null,
3915
3924
  navigate: w = null,
3916
3925
  children: d,
3917
3926
  ...y
3918
3927
  }) => {
3919
- const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Xt(), _ = J(() => w ?? qr("navigate"), [w]), M = {}, W = {};
3928
+ const [p, m] = Q(!1), [h, b] = Q(null), { stack: S, visit: O } = Jt(), _ = J(() => w ?? Gr("navigate"), [w]), M = {}, W = {};
3920
3929
  Object.keys(y).forEach((T) => {
3921
- zn.includes(T) || (T.startsWith("on") && typeof y[T] == "function" ? T.toLowerCase() in window ? M[T] = y[T] : W[T] = y[T] : M[T] = y[T]);
3930
+ Kn.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]);
3922
3931
  });
3923
3932
  const [H, j] = Q(!1);
3924
- Y(() => {
3925
- g && (g.onTopOfStack && H ? s == null || s() : !g.onTopOfStack && !H && (u == null || u()), j(!g.onTopOfStack));
3933
+ z(() => {
3934
+ h && (h.onTopOfStack && H ? s == null || s() : !h.onTopOfStack && !H && (u == null || u()), j(!h.onTopOfStack));
3926
3935
  }, [S]);
3927
- const z = ve(() => {
3936
+ const Y = ve(() => {
3928
3937
  i == null || i();
3929
3938
  }, [i]), V = ve(() => {
3930
3939
  b(null), l == null || l();
3931
3940
  }, [l]), $ = ve(
3932
3941
  (T) => {
3933
- T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), h == null || h()), O(
3942
+ T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), g == null || g()), O(
3934
3943
  t,
3935
3944
  e,
3936
3945
  r,
3937
3946
  a,
3938
- Go(aa(y, zn)),
3939
- () => z(S.length),
3947
+ zo(oa(y, Kn)),
3948
+ () => Y(S.length),
3940
3949
  V,
3941
3950
  o,
3942
3951
  _
@@ -3946,7 +3955,7 @@ const Rc = ({
3946
3955
  console.error(D), f == null || f(D);
3947
3956
  }).finally(() => m(!1)));
3948
3957
  },
3949
- [t, e, r, a, o, y, z, V]
3958
+ [t, e, r, a, o, y, Y, V]
3950
3959
  );
3951
3960
  return /* @__PURE__ */ R.jsx(
3952
3961
  n,
@@ -3958,20 +3967,20 @@ const Rc = ({
3958
3967
  }
3959
3968
  );
3960
3969
  };
3961
- function Fc() {
3962
- return Xt().stack[$a()] ?? null;
3970
+ function Ic() {
3971
+ return Jt().stack[Ra()] ?? null;
3963
3972
  }
3964
3973
  export {
3965
- Fa as HeadlessModal,
3966
- gc as Modal,
3967
- Rc as ModalLink,
3968
- Ru as ModalRoot,
3969
- $u as ModalStackProvider,
3970
- qr as getConfig,
3971
- Pc as putConfig,
3972
- Ac as renderApp,
3973
- Oc as resetConfig,
3974
- Fc as useModal,
3975
- $a as useModalIndex,
3976
- Xt as useModalStack
3974
+ Ia as HeadlessModal,
3975
+ bc as Modal,
3976
+ Fc as ModalLink,
3977
+ Fu as ModalRoot,
3978
+ Ru as ModalStackProvider,
3979
+ Gr as getConfig,
3980
+ Ac as putConfig,
3981
+ Tc as renderApp,
3982
+ Pc as resetConfig,
3983
+ Ic as useModal,
3984
+ Ra as useModalIndex,
3985
+ Jt as useModalStack
3977
3986
  };