@inertiaui/modal-react 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Ro = Object.defineProperty;
2
2
  var Fo = (t, e, r) => e in t ? Ro(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var ye = (t, e, r) => Fo(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import * as mt from "react";
5
- import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Co, useRef as j, useCallback as ve, Fragment as he, isValidElement as Io, cloneElement as Mo, useId as xt, useSyncExternalStore as _o, useReducer as Do, createRef as No } from "react";
5
+ import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as Or, useMemo as J, forwardRef as Br, useImperativeHandle as na, useLayoutEffect as Co, useRef as j, useCallback as ve, Fragment as he, isValidElement as Io, cloneElement as Mo, useId as xt, useSyncExternalStore as _o, useReducer as Do, createRef as No } from "react";
6
6
  import jt from "axios";
7
7
  import { router as yt } from "@inertiajs/react";
8
8
  import { createPortal as ko } from "react-dom";
@@ -61,8 +61,8 @@ class jo {
61
61
  return n;
62
62
  }
63
63
  }
64
- const Yt = new jo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
65
- var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
64
+ const Yt = new jo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), Hr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
65
+ var Pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
66
66
  function Lo(t) {
67
67
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
68
68
  }
@@ -85,7 +85,7 @@ function Wo(t) {
85
85
  });
86
86
  }), r;
87
87
  }
88
- var Tr = { exports: {} }, ct = {};
88
+ var Ar = { exports: {} }, ct = {};
89
89
  /**
90
90
  * @license React
91
91
  * react-jsx-runtime.production.min.js
@@ -95,10 +95,10 @@ var Tr = { exports: {} }, ct = {};
95
95
  * This source code is licensed under the MIT license found in the
96
96
  * LICENSE file in the root directory of this source tree.
97
97
  */
98
- var En;
98
+ var wn;
99
99
  function Uo() {
100
- if (En) return ct;
101
- En = 1;
100
+ if (wn) return ct;
101
+ wn = 1;
102
102
  var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
103
103
  function l(u, i, d) {
104
104
  var s, h = {}, v = null, w = null;
@@ -119,9 +119,9 @@ var ft = {};
119
119
  * This source code is licensed under the MIT license found in the
120
120
  * LICENSE file in the root directory of this source tree.
121
121
  */
122
- var Sn;
122
+ var En;
123
123
  function Bo() {
124
- return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
124
+ return En || (En = 1, process.env.NODE_ENV !== "production" && function() {
125
125
  var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
126
126
  function p(c) {
127
127
  if (c === null || typeof c != "object")
@@ -292,7 +292,7 @@ function Bo() {
292
292
  var no = typeof WeakMap == "function" ? WeakMap : Map;
293
293
  $t = new no();
294
294
  }
295
- function ln(c, E) {
295
+ function on(c, E) {
296
296
  if (!c || Oe)
297
297
  return "";
298
298
  {
@@ -364,7 +364,7 @@ function Bo() {
364
364
  return typeof c == "function" && $t.set(c, ke), ke;
365
365
  }
366
366
  function ao(c, E, x) {
367
- return ln(c, !1);
367
+ return on(c, !1);
368
368
  }
369
369
  function oo(c) {
370
370
  var E = c.prototype;
@@ -374,7 +374,7 @@ function Bo() {
374
374
  if (c == null)
375
375
  return "";
376
376
  if (typeof c == "function")
377
- return ln(c, oo(c));
377
+ return on(c, oo(c));
378
378
  if (typeof c == "string")
379
379
  return xe(c);
380
380
  switch (c) {
@@ -399,13 +399,13 @@ function Bo() {
399
399
  }
400
400
  return "";
401
401
  }
402
- var ut = Object.prototype.hasOwnProperty, un = {}, sn = m.ReactDebugCurrentFrame;
402
+ var ut = Object.prototype.hasOwnProperty, ln = {}, un = m.ReactDebugCurrentFrame;
403
403
  function Ft(c) {
404
404
  if (c) {
405
405
  var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
406
- sn.setExtraStackFrame(x);
406
+ un.setExtraStackFrame(x);
407
407
  } else
408
- sn.setExtraStackFrame(null);
408
+ un.setExtraStackFrame(null);
409
409
  }
410
410
  function io(c, E, x, P, N) {
411
411
  {
@@ -422,7 +422,7 @@ function Bo() {
422
422
  } catch (G) {
423
423
  F = G;
424
424
  }
425
- F && !(F instanceof Error) && (Ft(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, I, typeof F), Ft(null)), F instanceof Error && !(F.message in un) && (un[F.message] = !0, Ft(N), g("Failed %s type: %s", x, F.message), Ft(null));
425
+ F && !(F instanceof Error) && (Ft(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, I, typeof F), Ft(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ft(N), g("Failed %s type: %s", x, F.message), Ft(null));
426
426
  }
427
427
  }
428
428
  }
@@ -438,24 +438,24 @@ function Bo() {
438
438
  }
439
439
  function so(c) {
440
440
  try {
441
- return cn(c), !1;
441
+ return sn(c), !1;
442
442
  } catch {
443
443
  return !0;
444
444
  }
445
445
  }
446
- function cn(c) {
446
+ function sn(c) {
447
447
  return "" + c;
448
448
  }
449
- function fn(c) {
449
+ function cn(c) {
450
450
  if (so(c))
451
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", uo(c)), cn(c);
451
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", uo(c)), sn(c);
452
452
  }
453
453
  var st = m.ReactCurrentOwner, co = {
454
454
  key: !0,
455
455
  ref: !0,
456
456
  __self: !0,
457
457
  __source: !0
458
- }, dn, pn, or;
458
+ }, fn, dn, or;
459
459
  or = {};
460
460
  function fo(c) {
461
461
  if (ut.call(c, "ref")) {
@@ -482,7 +482,7 @@ function Bo() {
482
482
  function vo(c, E) {
483
483
  {
484
484
  var x = function() {
485
- 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));
485
+ fn || (fn = !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
486
  };
487
487
  x.isReactWarning = !0, Object.defineProperty(c, "key", {
488
488
  get: x,
@@ -493,7 +493,7 @@ function Bo() {
493
493
  function mo(c, E) {
494
494
  {
495
495
  var x = function() {
496
- 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));
496
+ dn || (dn = !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
497
  };
498
498
  x.isReactWarning = !0, Object.defineProperty(c, "ref", {
499
499
  get: x,
@@ -533,7 +533,7 @@ function Bo() {
533
533
  function go(c, E, x, P, N) {
534
534
  {
535
535
  var L, I = {}, F = null, ne = null;
536
- x !== void 0 && (fn(x), F = "" + x), po(E) && (fn(E.key), F = "" + E.key), fo(E) && (ne = E.ref, yo(E, N));
536
+ x !== void 0 && (cn(x), F = "" + x), po(E) && (cn(E.key), F = "" + E.key), fo(E) && (ne = E.ref, yo(E, N));
537
537
  for (L in E)
538
538
  ut.call(E, L) && !co.hasOwnProperty(L) && (I[L] = E[L]);
539
539
  if (c && c.defaultProps) {
@@ -548,20 +548,20 @@ function Bo() {
548
548
  return ho(c, F, ne, N, P, st.current, I);
549
549
  }
550
550
  }
551
- var ir = m.ReactCurrentOwner, yn = m.ReactDebugCurrentFrame;
551
+ var ir = m.ReactCurrentOwner, pn = m.ReactDebugCurrentFrame;
552
552
  function Ge(c) {
553
553
  if (c) {
554
554
  var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
555
- yn.setExtraStackFrame(x);
555
+ pn.setExtraStackFrame(x);
556
556
  } else
557
- yn.setExtraStackFrame(null);
557
+ pn.setExtraStackFrame(null);
558
558
  }
559
559
  var lr;
560
560
  lr = !1;
561
561
  function ur(c) {
562
562
  return typeof c == "object" && c !== null && c.$$typeof === e;
563
563
  }
564
- function vn() {
564
+ function yn() {
565
565
  {
566
566
  if (ir.current) {
567
567
  var c = $(ir.current.type);
@@ -576,10 +576,10 @@ Check the render method of \`` + c + "`.";
576
576
  function bo(c) {
577
577
  return "";
578
578
  }
579
- var mn = {};
579
+ var vn = {};
580
580
  function wo(c) {
581
581
  {
582
- var E = vn();
582
+ var E = yn();
583
583
  if (!E) {
584
584
  var x = typeof c == "string" ? c : c.displayName || c.name;
585
585
  x && (E = `
@@ -589,27 +589,27 @@ Check the top-level render call using <` + x + ">.");
589
589
  return E;
590
590
  }
591
591
  }
592
- function hn(c, E) {
592
+ function mn(c, E) {
593
593
  {
594
594
  if (!c._store || c._store.validated || c.key != null)
595
595
  return;
596
596
  c._store.validated = !0;
597
597
  var x = wo(E);
598
- if (mn[x])
598
+ if (vn[x])
599
599
  return;
600
- mn[x] = !0;
600
+ vn[x] = !0;
601
601
  var P = "";
602
602
  c && c._owner && c._owner !== ir.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
603
  }
604
604
  }
605
- function gn(c, E) {
605
+ function hn(c, E) {
606
606
  {
607
607
  if (typeof c != "object")
608
608
  return;
609
609
  if (ar(c))
610
610
  for (var x = 0; x < c.length; x++) {
611
611
  var P = c[x];
612
- ur(P) && hn(P, E);
612
+ ur(P) && mn(P, E);
613
613
  }
614
614
  else if (ur(c))
615
615
  c._store && (c._store.validated = !0);
@@ -617,7 +617,7 @@ Check the top-level render call using <` + x + ">.");
617
617
  var N = p(c);
618
618
  if (typeof N == "function" && N !== c.entries)
619
619
  for (var L = N.call(c), I; !(I = L.next()).done; )
620
- ur(I.value) && hn(I.value, E);
620
+ ur(I.value) && mn(I.value, E);
621
621
  }
622
622
  }
623
623
  }
@@ -658,15 +658,15 @@ Check the top-level render call using <` + x + ">.");
658
658
  c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
659
659
  }
660
660
  }
661
- var bn = {};
662
- function wn(c, E, x, P, N, L) {
661
+ var gn = {};
662
+ function bn(c, E, x, P, N, L) {
663
663
  {
664
664
  var I = k(c);
665
665
  if (!I) {
666
666
  var F = "";
667
667
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
668
668
  var ne = bo();
669
- ne ? F += ne : F += vn();
669
+ ne ? F += ne : F += yn();
670
670
  var G;
671
671
  c === null ? G = "null" : ar(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
672
  }
@@ -679,42 +679,42 @@ Check the top-level render call using <` + x + ">.");
679
679
  if (P)
680
680
  if (ar(se)) {
681
681
  for (var Ye = 0; Ye < se.length; Ye++)
682
- gn(se[Ye], c);
682
+ hn(se[Ye], c);
683
683
  Object.freeze && Object.freeze(se);
684
684
  } else
685
685
  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
686
  else
687
- gn(se, c);
687
+ hn(se, c);
688
688
  }
689
689
  if (ut.call(E, "key")) {
690
690
  var ke = $(c), oe = Object.keys(E).filter(function($o) {
691
691
  return $o !== "key";
692
692
  }), sr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
693
- if (!bn[ke + sr]) {
693
+ if (!gn[ke + sr]) {
694
694
  var To = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
695
695
  g(`A props object containing a "key" prop is being spread into JSX:
696
696
  let props = %s;
697
697
  <%s {...props} />
698
698
  React keys must be passed directly to JSX without using spread:
699
699
  let props = %s;
700
- <%s key={someKey} {...props} />`, sr, ke, To, ke), bn[ke + sr] = !0;
700
+ <%s key={someKey} {...props} />`, sr, ke, To, ke), gn[ke + sr] = !0;
701
701
  }
702
702
  }
703
703
  return c === n ? So(z) : Eo(z), z;
704
704
  }
705
705
  }
706
706
  function xo(c, E, x) {
707
- return wn(c, E, x, !0);
707
+ return bn(c, E, x, !0);
708
708
  }
709
709
  function Oo(c, E, x) {
710
- return wn(c, E, x, !1);
710
+ return bn(c, E, x, !1);
711
711
  }
712
712
  var Po = Oo, Ao = xo;
713
713
  ft.Fragment = n, ft.jsx = Po, ft.jsxs = Ao;
714
714
  }()), ft;
715
715
  }
716
- process.env.NODE_ENV === "production" ? Tr.exports = Uo() : Tr.exports = Bo();
717
- var R = Tr.exports;
716
+ process.env.NODE_ENV === "production" ? Ar.exports = Uo() : Ar.exports = Bo();
717
+ var R = Ar.exports;
718
718
  function Ho(t, e) {
719
719
  return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
720
720
  }
@@ -774,7 +774,7 @@ function ti(t) {
774
774
  return Object.propertyIsEnumerable.call(t, e);
775
775
  }) : [];
776
776
  }
777
- function xn(t) {
777
+ function Sn(t) {
778
778
  return Object.keys(t).concat(ti(t));
779
779
  }
780
780
  function oa(t, e) {
@@ -789,9 +789,9 @@ function ri(t, e) {
789
789
  }
790
790
  function ni(t, e, r) {
791
791
  var n = {};
792
- return r.isMergeableObject(t) && xn(t).forEach(function(a) {
792
+ return r.isMergeableObject(t) && Sn(t).forEach(function(a) {
793
793
  n[a] = St(t[a], r);
794
- }), xn(e).forEach(function(a) {
794
+ }), Sn(e).forEach(function(a) {
795
795
  ri(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ei(a, r)(t[a], e[a], r) : n[a] = St(e[a], r));
796
796
  }), n;
797
797
  }
@@ -832,14 +832,14 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
832
832
  return !1;
833
833
  }
834
834
  return !0;
835
- }, On = typeof Symbol < "u" && Symbol, pi = di, yi = function() {
836
- return typeof On != "function" || typeof Symbol != "function" || typeof On("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : pi();
835
+ }, xn = typeof Symbol < "u" && Symbol, pi = di, yi = function() {
836
+ return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : pi();
837
837
  }, cr = {
838
838
  __proto__: null,
839
839
  foo: {}
840
840
  }, vi = Object, mi = function() {
841
841
  return { __proto__: cr }.foo === cr.foo && !(cr instanceof vi);
842
- }, hi = "Function.prototype.bind called on incompatible ", gi = Object.prototype.toString, bi = Math.max, wi = "[object Function]", Pn = function(e, r) {
842
+ }, hi = "Function.prototype.bind called on incompatible ", gi = Object.prototype.toString, bi = Math.max, wi = "[object Function]", On = function(e, r) {
843
843
  for (var n = [], a = 0; a < e.length; a += 1)
844
844
  n[a] = e[a];
845
845
  for (var o = 0; o < r.length; o += 1)
@@ -861,13 +861,13 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
861
861
  if (this instanceof a) {
862
862
  var s = r.apply(
863
863
  this,
864
- Pn(n, arguments)
864
+ On(n, arguments)
865
865
  );
866
866
  return Object(s) === s ? s : this;
867
867
  }
868
868
  return r.apply(
869
869
  e,
870
- Pn(n, arguments)
870
+ On(n, arguments)
871
871
  );
872
872
  }, l = bi(0, r.length - n.length), u = [], i = 0; i < l; i++)
873
873
  u[i] = "$" + i;
@@ -877,7 +877,7 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
877
877
  d.prototype = r.prototype, a.prototype = new d(), d.prototype = null;
878
878
  }
879
879
  return a;
880
- }, Oi = xi, qr = Function.prototype.bind || Oi, Pi = Function.prototype.call, Ai = Object.prototype.hasOwnProperty, Ti = qr, $i = Ti.call(Pi, Ai), C, Ri = li, Fi = ui, Ci = si, Ii = ci, et = ia, Qe = Ot, Mi = fi, la = Function, fr = function(t) {
880
+ }, Oi = xi, Vr = Function.prototype.bind || Oi, Pi = Function.prototype.call, Ai = Object.prototype.hasOwnProperty, Ti = Vr, $i = Ti.call(Pi, Ai), C, Ri = li, Fi = ui, Ci = si, Ii = ci, et = ia, Qe = Ot, Mi = fi, la = Function, fr = function(t) {
881
881
  try {
882
882
  return la('"use strict"; return (' + t + ").constructor;")();
883
883
  } catch {
@@ -996,7 +996,7 @@ var ji = function t(e) {
996
996
  a && Z && (r = Z(a.prototype));
997
997
  }
998
998
  return He[e] = r, r;
999
- }, An = {
999
+ }, Pn = {
1000
1000
  __proto__: null,
1001
1001
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1002
1002
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -1049,19 +1049,19 @@ var ji = function t(e) {
1049
1049
  "%URIErrorPrototype%": ["URIError", "prototype"],
1050
1050
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1051
1051
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1052
- }, Pt = qr, Lt = $i, Li = Pt.call(Function.call, Array.prototype.concat), Wi = Pt.call(Function.apply, Array.prototype.splice), Tn = Pt.call(Function.call, String.prototype.replace), Wt = Pt.call(Function.call, String.prototype.slice), Ui = Pt.call(Function.call, RegExp.prototype.exec), Bi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Hi = /\\(\\)?/g, Vi = function(e) {
1052
+ }, Pt = Vr, Lt = $i, Li = Pt.call(Function.call, Array.prototype.concat), Wi = Pt.call(Function.apply, Array.prototype.splice), An = Pt.call(Function.call, String.prototype.replace), Wt = Pt.call(Function.call, String.prototype.slice), Ui = Pt.call(Function.call, RegExp.prototype.exec), Bi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Hi = /\\(\\)?/g, Vi = function(e) {
1053
1053
  var r = Wt(e, 0, 1), n = Wt(e, -1);
1054
1054
  if (r === "%" && n !== "%")
1055
1055
  throw new et("invalid intrinsic syntax, expected closing `%`");
1056
1056
  if (n === "%" && r !== "%")
1057
1057
  throw new et("invalid intrinsic syntax, expected opening `%`");
1058
1058
  var a = [];
1059
- return Tn(e, Bi, function(o, l, u, i) {
1060
- a[a.length] = u ? Tn(i, Hi, "$1") : l || o;
1059
+ return An(e, Bi, function(o, l, u, i) {
1060
+ a[a.length] = u ? An(i, Hi, "$1") : l || o;
1061
1061
  }), a;
1062
1062
  }, qi = function(e, r) {
1063
1063
  var n = e, a;
1064
- if (Lt(An, n) && (a = An[n], n = "%" + a[0] + "%"), Lt(He, n)) {
1064
+ if (Lt(Pn, n) && (a = Pn[n], n = "%" + a[0] + "%"), Lt(He, n)) {
1065
1065
  var o = He[n];
1066
1066
  if (o === Je && (o = ji(n)), typeof o > "u" && !r)
1067
1067
  throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
@@ -1102,10 +1102,10 @@ var ji = function t(e) {
1102
1102
  }
1103
1103
  }
1104
1104
  return u;
1105
- }, ua = { exports: {} }, pr, $n;
1106
- function Gr() {
1107
- if ($n) return pr;
1108
- $n = 1;
1105
+ }, ua = { exports: {} }, pr, Tn;
1106
+ function qr() {
1107
+ if (Tn) return pr;
1108
+ Tn = 1;
1109
1109
  var t = nt, e = t("%Object.defineProperty%", !0) || !1;
1110
1110
  if (e)
1111
1111
  try {
@@ -1122,7 +1122,7 @@ if (Nt)
1122
1122
  } catch {
1123
1123
  Nt = null;
1124
1124
  }
1125
- var sa = Nt, Rn = Gr(), Yi = ia, Xe = Ot, Fn = sa, zi = function(e, r, n) {
1125
+ var sa = Nt, $n = qr(), Yi = ia, Xe = Ot, Rn = sa, zi = function(e, r, n) {
1126
1126
  if (!e || typeof e != "object" && typeof e != "function")
1127
1127
  throw new Xe("`obj` must be an object or a function`");
1128
1128
  if (typeof r != "string" && typeof r != "symbol")
@@ -1135,9 +1135,9 @@ var sa = Nt, Rn = Gr(), Yi = ia, Xe = Ot, Fn = sa, zi = function(e, r, n) {
1135
1135
  throw new Xe("`nonConfigurable`, if provided, must be a boolean or null");
1136
1136
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
1137
1137
  throw new Xe("`loose`, if provided, must be a boolean");
1138
- 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);
1139
- if (Rn)
1140
- Rn(e, r, {
1138
+ 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 = !!Rn && Rn(e, r);
1139
+ if ($n)
1140
+ $n(e, r, {
1141
1141
  configurable: l === null && i ? i.configurable : !l,
1142
1142
  enumerable: a === null && i ? i.enumerable : !a,
1143
1143
  value: n,
@@ -1147,36 +1147,36 @@ var sa = Nt, Rn = Gr(), Yi = ia, Xe = Ot, Fn = sa, zi = function(e, r, n) {
1147
1147
  e[r] = n;
1148
1148
  else
1149
1149
  throw new Yi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1150
- }, $r = Gr(), ca = function() {
1151
- return !!$r;
1150
+ }, Tr = qr(), ca = function() {
1151
+ return !!Tr;
1152
1152
  };
1153
1153
  ca.hasArrayLengthDefineBug = function() {
1154
- if (!$r)
1154
+ if (!Tr)
1155
1155
  return null;
1156
1156
  try {
1157
- return $r([], "length", { value: 1 }).length !== 1;
1157
+ return Tr([], "length", { value: 1 }).length !== 1;
1158
1158
  } catch {
1159
1159
  return !0;
1160
1160
  }
1161
1161
  };
1162
- var Ki = ca, Xi = nt, Cn = zi, Ji = Ki(), In = sa, Mn = Ot, Qi = Xi("%Math.floor%"), Zi = function(e, r) {
1162
+ var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor%"), Zi = function(e, r) {
1163
1163
  if (typeof e != "function")
1164
- throw new Mn("`fn` is not a function");
1164
+ throw new In("`fn` is not a function");
1165
1165
  if (typeof r != "number" || r < 0 || r > 4294967295 || Qi(r) !== r)
1166
- throw new Mn("`length` must be a positive 32-bit integer");
1166
+ throw new In("`length` must be a positive 32-bit integer");
1167
1167
  var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
1168
- if ("length" in e && In) {
1169
- var l = In(e, "length");
1168
+ if ("length" in e && Cn) {
1169
+ var l = Cn(e, "length");
1170
1170
  l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
1171
1171
  }
1172
- return (a || o || !n) && (Ji ? Cn(
1172
+ return (a || o || !n) && (Ji ? Fn(
1173
1173
  /** @type {Parameters<define>[0]} */
1174
1174
  e,
1175
1175
  "length",
1176
1176
  r,
1177
1177
  !0,
1178
1178
  !0
1179
- ) : Cn(
1179
+ ) : Fn(
1180
1180
  /** @type {Parameters<define>[0]} */
1181
1181
  e,
1182
1182
  "length",
@@ -1184,7 +1184,7 @@ var Ki = ca, Xi = nt, Cn = zi, Ji = Ki(), In = sa, Mn = Ot, Qi = Xi("%Math.floor
1184
1184
  )), e;
1185
1185
  };
1186
1186
  (function(t) {
1187
- var e = qr, r = nt, n = Zi, a = Ot, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), d = r("%Math.max%");
1187
+ var e = Vr, r = nt, n = Zi, a = Ot, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = qr(), d = r("%Math.max%");
1188
1188
  t.exports = function(v) {
1189
1189
  if (typeof v != "function")
1190
1190
  throw new a("a function is required");
@@ -1208,23 +1208,23 @@ const nl = {}, al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1208
1208
  __proto__: null,
1209
1209
  default: nl
1210
1210
  }, Symbol.toStringTag, { value: "Module" })), ol = /* @__PURE__ */ Wo(al);
1211
- var Yr = typeof Map == "function" && Map.prototype, yr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && yr && typeof yr.get == "function" ? yr.get : null, _n = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, vr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && vr && typeof vr.get == "function" ? vr.get : null, Dn = zr && Set.prototype.forEach, il = typeof WeakMap == "function" && WeakMap.prototype, ht = il ? WeakMap.prototype.has : null, ll = typeof WeakSet == "function" && WeakSet.prototype, gt = ll ? WeakSet.prototype.has : null, ul = typeof WeakRef == "function" && WeakRef.prototype, Nn = ul ? WeakRef.prototype.deref : null, sl = Boolean.prototype.valueOf, cl = Object.prototype.toString, fl = Function.prototype.toString, dl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, pl = String.prototype.toUpperCase, kn = String.prototype.toLowerCase, pa = RegExp.prototype.test, jn = Array.prototype.concat, Ee = Array.prototype.join, yl = Array.prototype.slice, Ln = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, mr = Object.getOwnPropertySymbols, Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Wn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1211
+ var Gr = typeof Map == "function" && Map.prototype, yr = Object.getOwnPropertyDescriptor && Gr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Gr && yr && typeof yr.get == "function" ? yr.get : null, Mn = Gr && Map.prototype.forEach, Yr = typeof Set == "function" && Set.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = Yr && vr && typeof vr.get == "function" ? vr.get : null, _n = Yr && Set.prototype.forEach, il = typeof WeakMap == "function" && WeakMap.prototype, ht = il ? WeakMap.prototype.has : null, ll = typeof WeakSet == "function" && WeakSet.prototype, gt = ll ? WeakSet.prototype.has : null, ul = typeof WeakRef == "function" && WeakRef.prototype, Dn = ul ? WeakRef.prototype.deref : null, sl = Boolean.prototype.valueOf, cl = Object.prototype.toString, fl = Function.prototype.toString, dl = String.prototype.match, zr = String.prototype.slice, Re = String.prototype.replace, pl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, yl = Array.prototype.slice, jn = Math.floor, $r = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, mr = Object.getOwnPropertySymbols, Rr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1212
1212
  return t.__proto__;
1213
1213
  } : null);
1214
- function Un(t, e) {
1214
+ function Wn(t, e) {
1215
1215
  if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || pa.call(/e/, e))
1216
1216
  return e;
1217
1217
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1218
1218
  if (typeof t == "number") {
1219
- var n = t < 0 ? -Ln(-t) : Ln(t);
1219
+ var n = t < 0 ? -jn(-t) : jn(t);
1220
1220
  if (n !== t) {
1221
- var a = String(n), o = Kr.call(e, a.length + 1);
1221
+ var a = String(n), o = zr.call(e, a.length + 1);
1222
1222
  return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
1223
1223
  }
1224
1224
  }
1225
1225
  return Re.call(e, r, "$&_");
1226
1226
  }
1227
- var Cr = ol, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, vl = function t(e, r, n, a) {
1227
+ var Fr = ol, Un = Fr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a) {
1228
1228
  var o = r || {};
1229
1229
  if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1230
1230
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -1250,15 +1250,15 @@ var Cr = ol, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, vl = function t(e, r, n, a
1250
1250
  if (e === 0)
1251
1251
  return 1 / 0 / e > 0 ? "0" : "-0";
1252
1252
  var i = String(e);
1253
- return u ? Un(e, i) : i;
1253
+ return u ? Wn(e, i) : i;
1254
1254
  }
1255
1255
  if (typeof e == "bigint") {
1256
1256
  var d = String(e) + "n";
1257
- return u ? Un(e, d) : d;
1257
+ return u ? Wn(e, d) : d;
1258
1258
  }
1259
1259
  var s = typeof o.depth > "u" ? 5 : o.depth;
1260
1260
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
1261
- return Ir(e) ? "[Array]" : "[Object]";
1261
+ return Cr(e) ? "[Array]" : "[Object]";
1262
1262
  var h = Ml(o, n);
1263
1263
  if (typeof a > "u")
1264
1264
  a = [];
@@ -1273,46 +1273,46 @@ var Cr = ol, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, vl = function t(e, r, n, a
1273
1273
  }
1274
1274
  return t($, o, n + 1, a);
1275
1275
  }
1276
- if (typeof e == "function" && !Vn(e)) {
1276
+ if (typeof e == "function" && !Hn(e)) {
1277
1277
  var w = Ol(e), f = It(e, v);
1278
1278
  return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (f.length > 0 ? " { " + Ee.call(f, ", ") + " }" : "");
1279
1279
  }
1280
1280
  if (ma(e)) {
1281
- var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Fr.call(e);
1281
+ var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Rr.call(e);
1282
1282
  return typeof e == "object" && !tt ? dt(y) : y;
1283
1283
  }
1284
1284
  if (Fl(e)) {
1285
- for (var p = "<" + kn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1285
+ for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1286
1286
  p += " " + m[g].name + "=" + va(ml(m[g].value), "double", o);
1287
- return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + kn.call(String(e.nodeName)) + ">", p;
1287
+ return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + Nn.call(String(e.nodeName)) + ">", p;
1288
1288
  }
1289
- if (Ir(e)) {
1289
+ if (Cr(e)) {
1290
1290
  if (e.length === 0)
1291
1291
  return "[]";
1292
1292
  var b = It(e, v);
1293
- return h && !Il(b) ? "[" + Mr(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1293
+ return h && !Il(b) ? "[" + Ir(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1294
1294
  }
1295
1295
  if (gl(e)) {
1296
1296
  var S = It(e, v);
1297
- 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, ", ") + " }";
1297
+ return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(kn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
1298
1298
  }
1299
1299
  if (typeof e == "object" && l) {
1300
- if (Hn && typeof e[Hn] == "function" && Cr)
1301
- return Cr(e, { depth: s - n });
1300
+ if (Bn && typeof e[Bn] == "function" && Fr)
1301
+ return Fr(e, { depth: s - n });
1302
1302
  if (l !== "symbol" && typeof e.inspect == "function")
1303
1303
  return e.inspect();
1304
1304
  }
1305
1305
  if (Pl(e)) {
1306
1306
  var O = [];
1307
- return _n && _n.call(e, function($, T) {
1307
+ return Mn && Mn.call(e, function($, T) {
1308
1308
  O.push(v(T, e, !0) + " => " + v($, e));
1309
- }), qn("Map", Ut.call(e), O, h);
1309
+ }), Vn("Map", Ut.call(e), O, h);
1310
1310
  }
1311
1311
  if ($l(e)) {
1312
1312
  var _ = [];
1313
- return Dn && Dn.call(e, function($) {
1313
+ return _n && _n.call(e, function($) {
1314
1314
  _.push(v($, e));
1315
- }), qn("Set", Bt.call(e), _, h);
1315
+ }), Vn("Set", Bt.call(e), _, h);
1316
1316
  }
1317
1317
  if (Al(e))
1318
1318
  return hr("WeakMap");
@@ -1323,18 +1323,18 @@ var Cr = ol, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, vl = function t(e, r, n, a
1323
1323
  if (wl(e))
1324
1324
  return dt(v(Number(e)));
1325
1325
  if (Sl(e))
1326
- return dt(v(Rr.call(e)));
1326
+ return dt(v($r.call(e)));
1327
1327
  if (El(e))
1328
1328
  return dt(sl.call(e));
1329
1329
  if (bl(e))
1330
1330
  return dt(v(String(e)));
1331
1331
  if (typeof window < "u" && e === window)
1332
1332
  return "{ [object Window] }";
1333
- if (typeof globalThis < "u" && e === globalThis || typeof Ar < "u" && e === Ar)
1333
+ if (typeof globalThis < "u" && e === globalThis || typeof Pr < "u" && e === Pr)
1334
1334
  return "{ [object globalThis] }";
1335
- if (!hl(e) && !Vn(e)) {
1336
- var M = It(e, v), W = Wn ? Wn(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (k || H ? "[" + Ee.call(jn.call([], k || [], H || []), ": ") + "] " : "");
1337
- return M.length === 0 ? V + "{}" : h ? V + "{" + Mr(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1335
+ if (!hl(e) && !Hn(e)) {
1336
+ var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ? zr.call(Ie(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (k || H ? "[" + Ee.call(kn.call([], k || [], H || []), ": ") + "] " : "");
1337
+ return M.length === 0 ? V + "{}" : h ? V + "{" + Ir(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1338
1338
  }
1339
1339
  return String(e);
1340
1340
  };
@@ -1345,13 +1345,13 @@ function va(t, e, r) {
1345
1345
  function ml(t) {
1346
1346
  return Re.call(String(t), /"/g, "&quot;");
1347
1347
  }
1348
- function Ir(t) {
1348
+ function Cr(t) {
1349
1349
  return Ie(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
1350
1350
  }
1351
1351
  function hl(t) {
1352
1352
  return Ie(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
1353
1353
  }
1354
- function Vn(t) {
1354
+ function Hn(t) {
1355
1355
  return Ie(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
1356
1356
  }
1357
1357
  function gl(t) {
@@ -1371,19 +1371,19 @@ function ma(t) {
1371
1371
  return t && typeof t == "object" && t instanceof Symbol;
1372
1372
  if (typeof t == "symbol")
1373
1373
  return !0;
1374
- if (!t || typeof t != "object" || !Fr)
1374
+ if (!t || typeof t != "object" || !Rr)
1375
1375
  return !1;
1376
1376
  try {
1377
- return Fr.call(t), !0;
1377
+ return Rr.call(t), !0;
1378
1378
  } catch {
1379
1379
  }
1380
1380
  return !1;
1381
1381
  }
1382
1382
  function Sl(t) {
1383
- if (!t || typeof t != "object" || !Rr)
1383
+ if (!t || typeof t != "object" || !$r)
1384
1384
  return !1;
1385
1385
  try {
1386
- return Rr.call(t), !0;
1386
+ return $r.call(t), !0;
1387
1387
  } catch {
1388
1388
  }
1389
1389
  return !1;
@@ -1442,10 +1442,10 @@ function Al(t) {
1442
1442
  return !1;
1443
1443
  }
1444
1444
  function Tl(t) {
1445
- if (!Nn || !t || typeof t != "object")
1445
+ if (!Dn || !t || typeof t != "object")
1446
1446
  return !1;
1447
1447
  try {
1448
- return Nn.call(t), !0;
1448
+ return Dn.call(t), !0;
1449
1449
  } catch {
1450
1450
  }
1451
1451
  return !1;
@@ -1486,7 +1486,7 @@ function Fl(t) {
1486
1486
  function ga(t, e) {
1487
1487
  if (t.length > e.maxStringLength) {
1488
1488
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1489
- return ga(Kr.call(t, 0, e.maxStringLength), e) + n;
1489
+ return ga(zr.call(t, 0, e.maxStringLength), e) + n;
1490
1490
  }
1491
1491
  var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Cl);
1492
1492
  return va(a, "single", e);
@@ -1507,8 +1507,8 @@ function dt(t) {
1507
1507
  function hr(t) {
1508
1508
  return t + " { ? }";
1509
1509
  }
1510
- function qn(t, e, r, n) {
1511
- var a = n ? Mr(r, n) : Ee.call(r, ", ");
1510
+ function Vn(t, e, r, n) {
1511
+ var a = n ? Ir(r, n) : Ee.call(r, ", ");
1512
1512
  return t + " (" + e + ") {" + a + "}";
1513
1513
  }
1514
1514
  function Il(t) {
@@ -1531,7 +1531,7 @@ function Ml(t, e) {
1531
1531
  prev: Ee.call(Array(e + 1), r)
1532
1532
  };
1533
1533
  }
1534
- function Mr(t, e) {
1534
+ function Ir(t, e) {
1535
1535
  if (t.length === 0)
1536
1536
  return "";
1537
1537
  var r = `
@@ -1540,7 +1540,7 @@ function Mr(t, e) {
1540
1540
  ` + e.prev;
1541
1541
  }
1542
1542
  function It(t, e) {
1543
- var r = Ir(t), n = [];
1543
+ var r = Cr(t), n = [];
1544
1544
  if (r) {
1545
1545
  n.length = t.length;
1546
1546
  for (var a = 0; a < t.length; a++)
@@ -1559,16 +1559,16 @@ function It(t, e) {
1559
1559
  ya.call(t, o[d]) && n.push("[" + e(o[d]) + "]: " + e(t[o[d]], t));
1560
1560
  return n;
1561
1561
  }
1562
- var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), Nl = at("WeakMap.prototype.get", !0), kl = at("WeakMap.prototype.set", !0), jl = at("WeakMap.prototype.has", !0), Ll = at("Map.prototype.get", !0), Wl = at("Map.prototype.set", !0), Ul = at("Map.prototype.has", !0), Xr = function(t, e) {
1562
+ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), Nl = at("WeakMap.prototype.get", !0), kl = at("WeakMap.prototype.set", !0), jl = at("WeakMap.prototype.has", !0), Ll = at("Map.prototype.get", !0), Wl = at("Map.prototype.set", !0), Ul = at("Map.prototype.has", !0), Kr = function(t, e) {
1563
1563
  for (var r = t, n; (n = r.next) !== null; r = n)
1564
1564
  if (n.key === e)
1565
1565
  return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
1566
1566
  t.next, t.next = n, n;
1567
1567
  }, Bl = function(t, e) {
1568
- var r = Xr(t, e);
1568
+ var r = Kr(t, e);
1569
1569
  return r && r.value;
1570
1570
  }, Hl = function(t, e, r) {
1571
- var n = Xr(t, e);
1571
+ var n = Kr(t, e);
1572
1572
  n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
1573
1573
  {
1574
1574
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -1577,7 +1577,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1577
1577
  value: r
1578
1578
  };
1579
1579
  }, Vl = function(t, e) {
1580
- return !!Xr(t, e);
1580
+ return !!Kr(t, e);
1581
1581
  }, ql = function() {
1582
1582
  var e, r, n, a = {
1583
1583
  assert: function(o) {
@@ -1613,7 +1613,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1613
1613
  }, Gl = String.prototype.replace, Yl = /%20/g, gr = {
1614
1614
  RFC1738: "RFC1738",
1615
1615
  RFC3986: "RFC3986"
1616
- }, Jr = {
1616
+ }, Xr = {
1617
1617
  default: gr.RFC3986,
1618
1618
  formatters: {
1619
1619
  RFC1738: function(t) {
@@ -1625,7 +1625,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1625
1625
  },
1626
1626
  RFC1738: gr.RFC1738,
1627
1627
  RFC3986: gr.RFC3986
1628
- }, zl = Jr, br = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1628
+ }, zl = Xr, br = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1629
1629
  for (var t = [], e = 0; e < 256; ++e)
1630
1630
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1631
1631
  return t;
@@ -1743,7 +1743,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1743
1743
  isRegExp: tu,
1744
1744
  maybeMap: au,
1745
1745
  merge: Xl
1746
- }, Sa = ql, kt = Ea, bt = Jr, ou = Object.prototype.hasOwnProperty, xa = {
1746
+ }, Sa = ql, kt = Ea, bt = Xr, ou = Object.prototype.hasOwnProperty, xa = {
1747
1747
  brackets: function(e) {
1748
1748
  return e + "[]";
1749
1749
  },
@@ -1756,7 +1756,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1756
1756
  }
1757
1757
  }, we = Array.isArray, iu = Array.prototype.push, Oa = function(t, e) {
1758
1758
  iu.apply(t, we(e) ? e : [e]);
1759
- }, lu = Date.prototype.toISOString, Gn = bt.default, X = {
1759
+ }, lu = Date.prototype.toISOString, qn = bt.default, X = {
1760
1760
  addQueryPrefix: !1,
1761
1761
  allowDots: !1,
1762
1762
  allowEmptyArrays: !1,
@@ -1768,8 +1768,8 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1768
1768
  encodeDotInKeys: !1,
1769
1769
  encoder: kt.encode,
1770
1770
  encodeValuesOnly: !1,
1771
- format: Gn,
1772
- formatter: bt.formatters[Gn],
1771
+ format: qn,
1772
+ formatter: bt.formatters[qn],
1773
1773
  // deprecated
1774
1774
  indices: !1,
1775
1775
  serializeDate: function(e) {
@@ -1925,7 +1925,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1925
1925
  }
1926
1926
  var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
1927
1927
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
1928
- }, rt = Ea, _r = Object.prototype.hasOwnProperty, du = Array.isArray, B = {
1928
+ }, rt = Ea, Mr = Object.prototype.hasOwnProperty, du = Array.isArray, B = {
1929
1929
  allowDots: !1,
1930
1930
  allowEmptyArrays: !1,
1931
1931
  allowPrototypes: !1,
@@ -1968,7 +1968,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1968
1968
  return r.decoder(p, B.decoder, d, "value");
1969
1969
  }
1970
1970
  )), f && r.interpretNumericEntities && d === "iso-8859-1" && (f = pu(f)), s.indexOf("[]=") > -1 && (f = du(f) ? [f] : f);
1971
- var y = _r.call(n, w);
1971
+ var y = Mr.call(n, w);
1972
1972
  y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], f) : (!y || r.duplicates === "last") && (n[w] = f);
1973
1973
  }
1974
1974
  return n;
@@ -1989,12 +1989,12 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1989
1989
  if (e) {
1990
1990
  var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), d = i ? o.slice(0, i.index) : o, s = [];
1991
1991
  if (d) {
1992
- if (!n.plainObjects && _r.call(Object.prototype, d) && !n.allowPrototypes)
1992
+ if (!n.plainObjects && Mr.call(Object.prototype, d) && !n.allowPrototypes)
1993
1993
  return;
1994
1994
  s.push(d);
1995
1995
  }
1996
1996
  for (var h = 0; n.depth > 0 && (i = u.exec(o)) !== null && h < n.depth; ) {
1997
- if (h += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1997
+ if (h += 1, !n.plainObjects && Mr.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1998
1998
  return;
1999
1999
  s.push(i[1]);
2000
2000
  }
@@ -2052,7 +2052,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2052
2052
  a = rt.merge(a, i, r);
2053
2053
  }
2054
2054
  return r.allowSparse === !0 ? a : rt.compact(a);
2055
- }, Eu = fu, Su = wu, xu = Jr, Yn = {
2055
+ }, Eu = fu, Su = wu, xu = Xr, Gn = {
2056
2056
  formats: xu,
2057
2057
  parse: Su,
2058
2058
  stringify: Eu
@@ -2062,7 +2062,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2062
2062
  (function(t, e) {
2063
2063
  (function(r, n) {
2064
2064
  t.exports = n();
2065
- })(Ar, function() {
2065
+ })(Pr, function() {
2066
2066
  var r = {};
2067
2067
  r.version = "0.2.0";
2068
2068
  var n = r.settings = {
@@ -2216,11 +2216,11 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2216
2216
  })(Ou);
2217
2217
  function Pu(t, e, r, n = "brackets") {
2218
2218
  let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), d = new URL(e.toString(), "http://localhost");
2219
- return t === "get" && Object.keys(r).length && (d.search = Yn.stringify(ii(Yn.parse(d.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${d.protocol}//${d.host}` : "", o ? d.pathname : "", l ? d.pathname.substring(1) : "", u ? d.search : "", i ? d.hash : ""].join(""), r];
2219
+ return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(ii(Gn.parse(d.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${d.protocol}//${d.host}` : "", o ? d.pathname : "", l ? d.pathname.substring(1) : "", u ? d.search : "", i ? d.hash : ""].join(""), r];
2220
2220
  }
2221
2221
  const zt = ce(null);
2222
2222
  zt.displayName = "ModalStackContext";
2223
- let Aa = null, Ta = null, Dr = null, Nr = null, Sr = [];
2223
+ let Aa = null, Ta = null, _r = null, Dr = null, Yn = [];
2224
2224
  const Au = ({ children: t }) => {
2225
2225
  const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
2226
2226
  r((p) => {
@@ -2234,7 +2234,7 @@ const Au = ({ children: t }) => {
2234
2234
  });
2235
2235
  };
2236
2236
  K(() => {
2237
- Sr = e;
2237
+ Yn = e;
2238
2238
  }, [e]);
2239
2239
  class l {
2240
2240
  constructor(p, m, g, b, S) {
@@ -2252,7 +2252,7 @@ const Au = ({ children: t }) => {
2252
2252
  p ? this.show() : this.close();
2253
2253
  });
2254
2254
  ye(this, "close", () => {
2255
- console.log("Closing", this.id), o(
2255
+ o(
2256
2256
  (p) => p.map((m) => {
2257
2257
  var g;
2258
2258
  return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
@@ -2262,7 +2262,7 @@ const Au = ({ children: t }) => {
2262
2262
  );
2263
2263
  });
2264
2264
  ye(this, "afterLeave", () => {
2265
- console.log("After leave", this.id), !this.isOpen && o((p) => {
2265
+ this.isOpen || o((p) => {
2266
2266
  const m = p.map((g) => {
2267
2267
  var b;
2268
2268
  return g.id === this.id && !g.isOpen && (g.shouldRender = !1, (b = g.afterLeaveCallback) == null || b.call(g), g.afterLeaveCallback = null), g;
@@ -2330,7 +2330,7 @@ const Au = ({ children: t }) => {
2330
2330
  p.onClose,
2331
2331
  p.onAfterLeave,
2332
2332
  p.queryStringArrayFormat ?? "brackets",
2333
- p.navigate ?? Vr("navigate")
2333
+ p.navigate ?? Hr("navigate")
2334
2334
  ), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2335
2335
  if (y.startsWith("#")) {
2336
2336
  W(d(y.substring(1), b, S, O));
@@ -2338,7 +2338,7 @@ const Au = ({ children: t }) => {
2338
2338
  }
2339
2339
  const [k, Y] = Pu(p, y || "", m, _);
2340
2340
  let V = M && e.length === 0;
2341
- if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), g = {
2341
+ if (e.length === 0 && (_r = typeof window < "u" ? window.location.href : ""), g = {
2342
2342
  ...g,
2343
2343
  Accept: "text/html, application/xhtml+xml",
2344
2344
  "X-Requested-With": "XMLHttpRequest",
@@ -2355,7 +2355,7 @@ const Au = ({ children: t }) => {
2355
2355
  preserveState: !0,
2356
2356
  onError: H,
2357
2357
  onFinish: () => {
2358
- qo(() => Nr).then(($) => {
2358
+ qo(() => Dr).then(($) => {
2359
2359
  const T = $.onCloseCallback, D = $.afterLeaveCallback;
2360
2360
  $.update(
2361
2361
  b,
@@ -2365,7 +2365,7 @@ const Au = ({ children: t }) => {
2365
2365
  () => {
2366
2366
  O == null || O(), D == null || D();
2367
2367
  }
2368
- ), W($), Nr = null;
2368
+ ), W($), Dr = null;
2369
2369
  });
2370
2370
  }
2371
2371
  });
@@ -2383,7 +2383,7 @@ const Au = ({ children: t }) => {
2383
2383
  push: i,
2384
2384
  pushFromResponseData: u,
2385
2385
  closeAll: () => {
2386
- console.log("Closing all modals", { stack: e, localStackCopy: Sr }), Sr.reverse().forEach((y) => y.close());
2386
+ Yn.reverse().forEach((y) => y.close());
2387
2387
  },
2388
2388
  reset: () => o(() => []),
2389
2389
  visit: h,
@@ -2402,7 +2402,7 @@ const Au = ({ children: t }) => {
2402
2402
  }
2403
2403
  };
2404
2404
  return /* @__PURE__ */ R.jsx(zt.Provider, { value: f, children: t });
2405
- }, Qr = () => {
2405
+ }, Jr = () => {
2406
2406
  const t = ie(zt);
2407
2407
  if (t === null)
2408
2408
  throw new Error("useModalStack must be used within a ModalStackProvider");
@@ -2411,8 +2411,8 @@ const Au = ({ children: t }) => {
2411
2411
  e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
2412
2412
  const r = ({ Component: n, props: a, key: o }) => {
2413
2413
  const l = () => {
2414
- const u = Pr(n, { key: o, ...a });
2415
- return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) => Pr(s, a, d)) : u;
2414
+ const u = Or(n, { key: o, ...a });
2415
+ return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) => Or(s, a, d)) : u;
2416
2416
  };
2417
2417
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2418
2418
  l(),
@@ -2430,7 +2430,7 @@ const Au = ({ children: t }) => {
2430
2430
  n && e.closeAll();
2431
2431
  return;
2432
2432
  }
2433
- n = l, Dr = l.baseUrl, e.pushFromResponseData(l, {}, () => {
2433
+ n = l, _r = l.baseUrl, e.pushFromResponseData(l, {}, () => {
2434
2434
  if (!l.baseUrl) {
2435
2435
  console.error("No base url in modal response data so cannot navigate back");
2436
2436
  return;
@@ -2440,37 +2440,37 @@ const Au = ({ children: t }) => {
2440
2440
  preserveState: !0
2441
2441
  });
2442
2442
  }).then((u) => {
2443
- Nr = u;
2443
+ Dr = u;
2444
2444
  });
2445
2445
  }),
2446
2446
  []
2447
2447
  );
2448
- const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] = Dr, o);
2448
+ const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] = _r, o);
2449
2449
  return K(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2450
2450
  t,
2451
2451
  e.stack.length > 0 && /* @__PURE__ */ R.jsx($a, { index: 0 })
2452
2452
  ] });
2453
- }, Zr = A.createContext(null);
2454
- Zr.displayName = "ModalIndexContext";
2453
+ }, Qr = A.createContext(null);
2454
+ Qr.displayName = "ModalIndexContext";
2455
2455
  const $u = () => {
2456
- const t = A.useContext(Zr);
2456
+ const t = A.useContext(Qr);
2457
2457
  if (t === void 0)
2458
2458
  throw new Error("useModalIndex must be used within a ModalIndexProvider");
2459
2459
  return t;
2460
2460
  }, $a = ({ index: t }) => {
2461
- const { stack: e } = Qr(), r = J(() => e[t], [e, t]);
2462
- return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Zr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
2461
+ const { stack: e } = Jr(), r = J(() => e[t], [e, t]);
2462
+ return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Qr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
2463
2463
  r.component,
2464
2464
  {
2465
2465
  ...r.componentProps,
2466
2466
  onModalEvent: (...n) => r.emit(...n)
2467
2467
  }
2468
2468
  ) });
2469
- }, Ra = Hr(({ name: t, children: e, ...r }, n) => {
2470
- const a = $u(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Qr(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2469
+ }, Ra = Br(({ name: t, children: e, ...r }, n) => {
2470
+ const a = $u(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Jr(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2471
2471
  var f;
2472
2472
  return (f = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : f.index;
2473
- }, [a, o]), v = J(() => (s == null ? void 0 : s.modalProps.slideover) ?? r.slideover ?? Vr("type") === "slideover", [r.slideover]), w = J(
2473
+ }, [a, o]), v = J(() => (s == null ? void 0 : s.modalProps.slideover) ?? r.slideover ?? Hr("type") === "slideover", [r.slideover]), w = J(
2474
2474
  () => ({
2475
2475
  slideover: v,
2476
2476
  closeButton: r.closeButton ?? ze(v, "closeButton"),
@@ -2546,10 +2546,10 @@ function Ht() {
2546
2546
  for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Fa(t)) && (n && (n += " "), n += e);
2547
2547
  return n;
2548
2548
  }
2549
- var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Fu(t, typeof e != "symbol" ? e + "" : e, r), r);
2549
+ var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Sr = (t, e, r) => (Fu(t, typeof e != "symbol" ? e + "" : e, r), r);
2550
2550
  let Cu = class {
2551
2551
  constructor() {
2552
- xr(this, "current", this.detect()), xr(this, "handoffState", "pending"), xr(this, "currentId", 0);
2552
+ Sr(this, "current", this.detect()), Sr(this, "handoffState", "pending"), Sr(this, "currentId", 0);
2553
2553
  }
2554
2554
  set(e) {
2555
2555
  this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
@@ -2620,7 +2620,7 @@ function Me() {
2620
2620
  } };
2621
2621
  return e;
2622
2622
  }
2623
- function en() {
2623
+ function Zr() {
2624
2624
  let [t] = Q(Me);
2625
2625
  return K(() => () => t.dispose(), [t]), t;
2626
2626
  }
@@ -2640,7 +2640,7 @@ let U = function(t) {
2640
2640
  function Mu() {
2641
2641
  return ie(Iu);
2642
2642
  }
2643
- function kr(...t) {
2643
+ function Nr(...t) {
2644
2644
  return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
2645
2645
  }
2646
2646
  function Ce(t, e, ...r) {
@@ -2676,7 +2676,7 @@ function _u({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, v
2676
2676
  return Dt(i, r, n, l, u);
2677
2677
  }
2678
2678
  function Dt(t, e = {}, r, n, a) {
2679
- let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), d = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2679
+ let { as: o = r, children: l, refName: u = "ref", ...i } = xr(t, ["unmount", "static"]), d = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2680
2680
  "className" in i && i.className && typeof i.className == "function" && (i.className = i.className(e)), i["aria-labelledby"] && i["aria-labelledby"] === i.id && (i["aria-labelledby"] = void 0);
2681
2681
  let h = {};
2682
2682
  if (e) {
@@ -2693,11 +2693,11 @@ function Dt(t, e = {}, r, n, a) {
2693
2693
  `)].join(`
2694
2694
  `));
2695
2695
  } else {
2696
- let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = f ? { className: f } : {}, p = Ca(s.props, je(Or(i, ["ref"])));
2696
+ let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) => Nr(w(...m), i.className) : Nr(w, i.className), y = f ? { className: f } : {}, p = Ca(s.props, je(xr(i, ["ref"])));
2697
2697
  for (let m in h) m in p && delete h[m];
2698
2698
  return Mo(s, Object.assign({}, p, h, d, { ref: a(s.ref, d.ref) }, y));
2699
2699
  }
2700
- return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && d, o !== he && h), s);
2700
+ return Or(o, Object.assign({}, xr(i, ["ref"]), o !== he && d, o !== he && h), s);
2701
2701
  }
2702
2702
  function Du() {
2703
2703
  let t = j([]), e = ve((r) => {
@@ -2732,14 +2732,14 @@ function Ca(...t) {
2732
2732
  }
2733
2733
  function le(t) {
2734
2734
  var e;
2735
- return Object.assign(Hr(t), { displayName: (e = t.displayName) != null ? e : t.name });
2735
+ return Object.assign(Br(t), { displayName: (e = t.displayName) != null ? e : t.name });
2736
2736
  }
2737
2737
  function je(t) {
2738
2738
  let e = Object.assign({}, t);
2739
2739
  for (let r in e) e[r] === void 0 && delete e[r];
2740
2740
  return e;
2741
2741
  }
2742
- function Or(t, e = []) {
2742
+ function xr(t, e = []) {
2743
2743
  let r = Object.assign({}, t);
2744
2744
  for (let n of e) n in r && delete r[n];
2745
2745
  return r;
@@ -2751,7 +2751,7 @@ function ju(t, e) {
2751
2751
  let { features: n = 1, ...a } = t, o = { ref: e, "aria-hidden": (n & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
2752
2752
  return fe()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ku, name: "Hidden" });
2753
2753
  }
2754
- let jr = le(ju), Ia = Symbol();
2754
+ let kr = le(ju), Ia = Symbol();
2755
2755
  function Lu(t, e = !0) {
2756
2756
  return Object.assign(t, { [Ia]: e });
2757
2757
  }
@@ -2765,10 +2765,10 @@ function Se(...t) {
2765
2765
  });
2766
2766
  return t.every((n) => n == null || (n == null ? void 0 : n[Ia])) ? void 0 : r;
2767
2767
  }
2768
- let tn = ce(null);
2769
- tn.displayName = "DescriptionContext";
2768
+ let en = ce(null);
2769
+ en.displayName = "DescriptionContext";
2770
2770
  function Ma() {
2771
- let t = ie(tn);
2771
+ let t = ie(en);
2772
2772
  if (t === null) {
2773
2773
  let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
2774
2774
  throw Error.captureStackTrace && Error.captureStackTrace(e, Ma), e;
@@ -2782,7 +2782,7 @@ function Wu() {
2782
2782
  let u = l.slice(), i = u.indexOf(o);
2783
2783
  return i !== -1 && u.splice(i, 1), u;
2784
2784
  }))), 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]);
2785
- return A.createElement(tn.Provider, { value: a }, r.children);
2785
+ return A.createElement(en.Provider, { value: a }, r.children);
2786
2786
  }, [e])];
2787
2787
  }
2788
2788
  let Uu = "p";
@@ -2838,18 +2838,18 @@ function ot(t, e) {
2838
2838
  let o = a.indexOf(n), l = a.length;
2839
2839
  return o === -1 && (o = l, l += 1), o === l - 1;
2840
2840
  }
2841
- let Lr = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
2841
+ let jr = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
2842
2842
  function Kn(t) {
2843
2843
  var e;
2844
2844
  let r = (e = wt.get(t)) != null ? e : 0;
2845
- return wt.set(t, r + 1), r !== 0 ? () => Xn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
2845
+ return wt.set(t, r + 1), r !== 0 ? () => Xn(t) : (jr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
2846
2846
  }
2847
2847
  function Xn(t) {
2848
2848
  var e;
2849
2849
  let r = (e = wt.get(t)) != null ? e : 1;
2850
2850
  if (r === 1 ? wt.delete(t) : wt.set(t, r - 1), r !== 1) return;
2851
- let n = Lr.get(t);
2852
- n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Lr.delete(t));
2851
+ let n = jr.get(t);
2852
+ n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, jr.delete(t));
2853
2853
  }
2854
2854
  function Ku(t, { allowed: e, disallowed: r } = {}) {
2855
2855
  let n = ot(t, "inert-others");
@@ -2894,7 +2894,7 @@ function Xu(t, e, r) {
2894
2894
  }, [e, n, t]);
2895
2895
  }
2896
2896
  let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Ju = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2897
- var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Qu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Qu || {});
2897
+ var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Lr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Lr || {}), Qu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Qu || {});
2898
2898
  function Zu(t = document.body) {
2899
2899
  return t == null ? [] : Array.from(t.querySelectorAll(Gt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2900
2900
  }
@@ -3150,7 +3150,7 @@ function hs(t) {
3150
3150
  return e;
3151
3151
  }
3152
3152
  function gs(t, e, r, n) {
3153
- let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), h = en();
3153
+ let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), h = Zr();
3154
3154
  return ae(() => {
3155
3155
  var v;
3156
3156
  if (t) {
@@ -3198,7 +3198,7 @@ function Es(t, { inFlight: e, prepare: r }) {
3198
3198
  let n = t.style.transition;
3199
3199
  t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
3200
3200
  }
3201
- function rn(t, e) {
3201
+ function tn(t, e) {
3202
3202
  let r = j([]), n = U(t);
3203
3203
  K(() => {
3204
3204
  let a = [...r.current];
@@ -3284,7 +3284,7 @@ let Ha = he, $s = le(function(t, e) {
3284
3284
  }), e), o = At(n), l = Ts(n), [u] = Q(() => {
3285
3285
  var h;
3286
3286
  return Ve.isServer ? null : (h = o == null ? void 0 : o.createElement("div")) != null ? h : null;
3287
- }), i = ie(Ur), d = Tt();
3287
+ }), i = ie(Wr), d = Tt();
3288
3288
  ae(() => {
3289
3289
  !l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
3290
3290
  }, [l, u]), ae(() => {
@@ -3305,14 +3305,14 @@ function Cs(t, e) {
3305
3305
  let { target: r, ...n } = t, a = { ref: Se(e) }, o = fe();
3306
3306
  return A.createElement(Va.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Fs, name: "Popover.Group" }));
3307
3307
  }
3308
- let Ur = ce(null);
3308
+ let Wr = ce(null);
3309
3309
  function Is() {
3310
- let t = ie(Ur), e = j([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3310
+ let t = ie(Wr), e = j([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3311
3311
  let l = e.current.indexOf(o);
3312
3312
  l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
3313
3313
  }), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
3314
3314
  return [e, J(() => function({ children: o }) {
3315
- return A.createElement(Ur.Provider, { value: a }, o);
3315
+ return A.createElement(Wr.Provider, { value: a }, o);
3316
3316
  }, [a])];
3317
3317
  }
3318
3318
  let Ms = le(Rs), qa = le(Cs), _s = Object.assign(Ms, { Group: qa });
@@ -3347,7 +3347,7 @@ function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3347
3347
  let Ga = ce(null);
3348
3348
  function ta({ children: t, node: e }) {
3349
3349
  let [r, n] = Q(null), a = Ya(e ?? r);
3350
- return A.createElement(Ga.Provider, { value: a }, t, a === null && A.createElement(jr, { features: qt.Hidden, ref: (o) => {
3350
+ return A.createElement(Ga.Provider, { value: a }, t, a === null && A.createElement(kr, { features: qt.Hidden, ref: (o) => {
3351
3351
  var l, u;
3352
3352
  if (o) {
3353
3353
  for (let i of (u = (l = Kt(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)) {
@@ -3361,7 +3361,7 @@ function Ya(t = null) {
3361
3361
  var e;
3362
3362
  return (e = ie(Ga)) != null ? e : t;
3363
3363
  }
3364
- function nn() {
3364
+ function rn() {
3365
3365
  let t = j(!1);
3366
3366
  return ae(() => (t.current = !0, () => {
3367
3367
  t.current = !1;
@@ -3399,7 +3399,7 @@ function Ws(t, e) {
3399
3399
  Et(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
3400
3400
  } });
3401
3401
  });
3402
- }), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = en(), y = j(!1), p = { ref: n, onKeyDown(g) {
3402
+ }), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(g) {
3403
3403
  g.key == "Tab" && (y.current = !0, f.requestAnimationFrame(() => {
3404
3404
  y.current = !1;
3405
3405
  }));
@@ -3410,12 +3410,12 @@ function Ws(t, e) {
3410
3410
  let S = g.relatedTarget;
3411
3411
  S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Ka(b, S) || (y.current ? Et(r.current, Ce(h.current, { [vt.Forwards]: () => Pe.Next, [vt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && Ae(g.target)));
3412
3412
  } }, m = fe();
3413
- return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ls, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
3413
+ return A.createElement(A.Fragment, null, w && A.createElement(kr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ls, name: "FocusTrap" }), w && A.createElement(kr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
3414
3414
  }
3415
3415
  let Us = le(Ws), Bs = Object.assign(Us, { features: We });
3416
3416
  function Hs(t = !0) {
3417
3417
  let e = j($e.slice());
3418
- return rn(([r], [n]) => {
3418
+ return tn(([r], [n]) => {
3419
3419
  n === !0 && r === !1 && Xt(() => {
3420
3420
  e.current.splice(0);
3421
3421
  }), n === !1 && r === !0 && (e.current = $e.slice());
@@ -3426,15 +3426,15 @@ function Hs(t = !0) {
3426
3426
  }
3427
3427
  function Vs(t, { ownerDocument: e }) {
3428
3428
  let r = !!(t & 8), n = Hs(r);
3429
- rn(() => {
3429
+ tn(() => {
3430
3430
  r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
3431
3431
  }, [r]), Ua(() => {
3432
3432
  r && Ae(n());
3433
3433
  });
3434
3434
  }
3435
3435
  function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3436
- let o = j(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = nn();
3437
- return rn(() => {
3436
+ let o = j(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = rn();
3437
+ return tn(() => {
3438
3438
  if (t === 0) return;
3439
3439
  if (!l) {
3440
3440
  a != null && a.current && Ae(a.current);
@@ -3456,8 +3456,8 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3456
3456
  if (n != null && n.current) Ae(n.current);
3457
3457
  else {
3458
3458
  if (t & 16) {
3459
- if (Et(i, Pe.First | Pe.AutoFocus) !== Wr.Error) return;
3460
- } else if (Et(i, Pe.First) !== Wr.Error) return;
3459
+ if (Et(i, Pe.First | Pe.AutoFocus) !== Lr.Error) return;
3460
+ } else if (Et(i, Pe.First) !== Lr.Error) return;
3461
3461
  if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
3462
3462
  console.warn("There are no focusable elements inside the <FocusTrap />");
3463
3463
  }
@@ -3466,7 +3466,7 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3466
3466
  }, [a, l, t]), o;
3467
3467
  }
3468
3468
  function Gs(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3469
- let o = nn(), l = !!(t & 4);
3469
+ let o = rn(), l = !!(t & 4);
3470
3470
  Wa(e == null ? void 0 : e.defaultView, "focus", (u) => {
3471
3471
  if (!l || !o.current) return;
3472
3472
  let i = za(n);
@@ -3504,7 +3504,7 @@ function tr(t) {
3504
3504
  return "children" in t ? tr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
3505
3505
  }
3506
3506
  function Ja(t, e) {
3507
- let r = qe(t), n = j([]), a = nn(), o = en(), l = U((w, f = Fe.Hidden) => {
3507
+ let r = qe(t), n = j([]), a = rn(), o = Zr(), l = U((w, f = Fe.Hidden) => {
3508
3508
  let y = n.current.findIndex(({ el: p }) => p === w);
3509
3509
  y !== -1 && (Ce(f, { [Fe.Unmount]() {
3510
3510
  n.current.splice(y, 1);
@@ -3565,7 +3565,7 @@ function Xs(t, e) {
3565
3565
  K(() => {
3566
3566
  S && a || (pe(M), q(M));
3567
3567
  }, [M, S, a]);
3568
- let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }), nr = je({ ref: O, className: ((n = kr(p.className, de && d, de && s, ee.enter && d, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && f, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...hs(ee) }), De = 0;
3568
+ let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }), nr = je({ ref: O, className: ((n = Nr(p.className, de && d, de && s, ee.enter && d, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && f, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...hs(ee) }), De = 0;
3569
3569
  k === "visible" && (De |= me.Open), k === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
3570
3570
  let lt = fe();
3571
3571
  return A.createElement(er.Provider, { value: te }, A.createElement(Ss, { value: De }, lt({ ourProps: nr, theirProps: p, defaultTag: Qa, features: Za, visible: k === "visible", name: "Transition.Child" })));
@@ -3596,16 +3596,16 @@ function Js(t, e) {
3596
3596
  }
3597
3597
  function Qs(t, e) {
3598
3598
  let r = ie(Zt) !== null, n = Qt() !== null;
3599
- return A.createElement(A.Fragment, null, !r && n ? A.createElement(Br, { ref: e, ...t }) : A.createElement(eo, { ref: e, ...t }));
3599
+ return A.createElement(A.Fragment, null, !r && n ? A.createElement(Ur, { ref: e, ...t }) : A.createElement(eo, { ref: e, ...t }));
3600
3600
  }
3601
- let Br = le(Js), eo = le(Xs), it = le(Qs), to = Object.assign(Br, { Child: it, Root: Br });
3601
+ let Ur = le(Js), eo = le(Xs), it = le(Qs), to = Object.assign(Ur, { Child: it, Root: Ur });
3602
3602
  var Zs = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Zs || {}), ec = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(ec || {});
3603
3603
  let tc = { 0(t, e) {
3604
3604
  return t.titleId === e.id ? t : { ...t, titleId: e.id };
3605
- } }, an = ce(null);
3606
- an.displayName = "DialogContext";
3605
+ } }, nn = ce(null);
3606
+ nn.displayName = "DialogContext";
3607
3607
  function rr(t) {
3608
- let e = ie(an);
3608
+ let e = ie(nn);
3609
3609
  if (e === null) {
3610
3610
  let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
3611
3611
  throw Error.captureStackTrace && Error.captureStackTrace(r, rr), r;
@@ -3640,7 +3640,7 @@ let ra = le(function(t, e) {
3640
3640
  let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), de = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": d ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": g.titleId, "aria-describedby": $, unmount: s }, ge = !Ns(), te = We.None;
3641
3641
  _ && !d && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3642
3642
  let pe = fe();
3643
- return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(an.Provider, { value: D }, A.createElement(qa, { target: f }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Bs, { initialFocus: l, initialFocusFallback: f, containers: Y, features: te }, A.createElement(Gu, { value: S }, pe({ ourProps: de, theirProps: h, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
3643
+ return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(qa, { target: f }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Bs, { initialFocus: l, initialFocusFallback: f, containers: Y, features: te }, A.createElement(Gu, { value: S }, pe({ ourProps: de, theirProps: h, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
3644
3644
  }), nc = "div", ac = Vt.RenderStrategy | Vt.Static;
3645
3645
  function oc(t, e) {
3646
3646
  let { transition: r = !1, open: n, ...a } = t, o = Qt(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
@@ -3670,9 +3670,9 @@ function fc(t, e) {
3670
3670
  let i = J(() => ({ open: o === 0 }), [o]), d = { ref: u, id: n };
3671
3671
  return fe()({ ourProps: d, theirProps: a, slot: i, defaultTag: cc, name: "Dialog.Title" });
3672
3672
  }
3673
- let dc = le(oc), on = le(lc);
3673
+ let dc = le(oc), an = le(lc);
3674
3674
  le(sc);
3675
- let pc = le(fc), yc = Object.assign(dc, { Panel: on, Title: pc, Description: Vu });
3675
+ let pc = le(fc), yc = Object.assign(dc, { Panel: an, Title: pc, Description: Vu });
3676
3676
  function ro({ onClick: t }) {
3677
3677
  return /* @__PURE__ */ R.jsxs(
3678
3678
  "button",
@@ -3734,7 +3734,7 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
3734
3734
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
3735
3735
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
3736
3736
  }),
3737
- children: /* @__PURE__ */ R.jsxs(on, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3737
+ children: /* @__PURE__ */ R.jsxs(an, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3738
3738
  e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(ro, { onClick: t.close }) }),
3739
3739
  typeof r == "function" ? r({ modalContext: t, modalProps: e }) : r
3740
3740
  ] })
@@ -3768,14 +3768,14 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
3768
3768
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
3769
3769
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
3770
3770
  }),
3771
- children: /* @__PURE__ */ R.jsxs(on, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3771
+ children: /* @__PURE__ */ R.jsxs(an, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3772
3772
  e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(ro, { onClick: t.close }) }),
3773
3773
  typeof r == "function" ? r({ modalContext: t, modalProps: e }) : r
3774
3774
  ] })
3775
3775
  }
3776
3776
  )
3777
3777
  }
3778
- ) }), hc = Hr(({ name: t, children: e, ...r }, n) => {
3778
+ ) }), hc = Br(({ name: t, children: e, ...r }, n) => {
3779
3779
  const a = (l) => typeof e == "function" ? e(l) : e, o = j(null);
3780
3780
  return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3781
3781
  Ra,
@@ -3903,7 +3903,7 @@ const $c = ({
3903
3903
  children: f,
3904
3904
  ...y
3905
3905
  }) => {
3906
- const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Qr(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
3906
+ const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Jr(), _ = J(() => w ?? Hr("navigate"), [w]), M = {}, W = {};
3907
3907
  Object.keys(y).forEach((T) => {
3908
3908
  zn.includes(T) || (T.startsWith("on") && typeof y[T] == "function" ? T.toLowerCase() in window ? M[T] = y[T] : W[T] = y[T] : M[T] = y[T]);
3909
3909
  });
@@ -3951,10 +3951,10 @@ export {
3951
3951
  $c as ModalLink,
3952
3952
  Tu as ModalRoot,
3953
3953
  Au as ModalStackProvider,
3954
- Vr as getConfig,
3954
+ Hr as getConfig,
3955
3955
  Oc as putConfig,
3956
3956
  Pc as renderApp,
3957
3957
  xc as resetConfig,
3958
3958
  $u as useModalIndex,
3959
- Qr as useModalStack
3959
+ Jr as useModalStack
3960
3960
  };