@inertiaui/modal-react 0.1.2 → 0.1.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.
@@ -1,8 +1,8 @@
1
1
  var Ga = Object.defineProperty;
2
2
  var Ka = (e, t, r) => t in e ? Ga(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var Pe = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
3
+ var Oe = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import * as Rt from "react";
5
- import C, { createContext as he, useState as Q, useContext as fe, forwardRef as En, useMemo as ne, useEffect as oe, useImperativeHandle as Zo, useLayoutEffect as Ja, useRef as U, Fragment as we, isValidElement as Ya, cloneElement as Xa, createElement as Qa, useId as It, useSyncExternalStore as Za, useCallback as Ce, useReducer as es, createRef as ts } from "react";
5
+ import F, { createContext as he, useState as Q, useContext as fe, forwardRef as En, useMemo as ne, useEffect as oe, useImperativeHandle as Zo, useLayoutEffect as Ja, useRef as U, Fragment as we, isValidElement as Ya, cloneElement as Xa, createElement as Qa, useId as It, useSyncExternalStore as Za, useCallback as Fe, useReducer as es, createRef as ts } from "react";
6
6
  import { router as ei } from "@inertiajs/react";
7
7
  import { createPortal as rs } from "react-dom";
8
8
  const zt = {
@@ -97,7 +97,7 @@ var ro;
97
97
  function ss() {
98
98
  if (ro) return Et;
99
99
  ro = 1;
100
- var e = C, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
100
+ var e = F, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
101
101
  function a(s, l, f) {
102
102
  var u, y = {}, h = null, v = null;
103
103
  f !== void 0 && (h = "" + f), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (v = l.ref);
@@ -120,7 +120,7 @@ var St = {};
120
120
  var no;
121
121
  function ls() {
122
122
  return no || (no = 1, process.env.NODE_ENV !== "production" && function() {
123
- var e = C, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), c = Symbol.iterator, p = "@@iterator";
123
+ var e = F, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), c = Symbol.iterator, p = "@@iterator";
124
124
  function m(d) {
125
125
  if (d === null || typeof d != "object")
126
126
  return null;
@@ -448,14 +448,14 @@ function ls() {
448
448
  if (Pa(d))
449
449
  return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ra(d)), Vn(d);
450
450
  }
451
- var wt = b.ReactCurrentOwner, Ca = {
451
+ var wt = b.ReactCurrentOwner, Fa = {
452
452
  key: !0,
453
453
  ref: !0,
454
454
  __self: !0,
455
455
  __source: !0
456
- }, Gn, Kn, Cr;
457
- Cr = {};
458
- function Fa(d) {
456
+ }, Gn, Kn, Fr;
457
+ Fr = {};
458
+ function Ca(d) {
459
459
  if (bt.call(d, "ref")) {
460
460
  var w = Object.getOwnPropertyDescriptor(d, "ref").get;
461
461
  if (w && w.isReactWarning)
@@ -474,7 +474,7 @@ function ls() {
474
474
  function _a(d, w) {
475
475
  if (typeof d.ref == "string" && wt.current && w && wt.current.stateNode !== w) {
476
476
  var O = R(wt.current.type);
477
- Cr[O] || (E('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', R(wt.current.type), d.ref), Cr[O] = !0);
477
+ Fr[O] || (E('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', R(wt.current.type), d.ref), Fr[O] = !0);
478
478
  }
479
479
  }
480
480
  function Na(d, w) {
@@ -531,9 +531,9 @@ function ls() {
531
531
  function La(d, w, O, P, k) {
532
532
  {
533
533
  var B, I = {}, _ = null, ae = null;
534
- O !== void 0 && (zn(O), _ = "" + O), $a(w) && (zn(w.key), _ = "" + w.key), Fa(w) && (ae = w.ref, _a(w, k));
534
+ O !== void 0 && (zn(O), _ = "" + O), $a(w) && (zn(w.key), _ = "" + w.key), Ca(w) && (ae = w.ref, _a(w, k));
535
535
  for (B in w)
536
- bt.call(w, B) && !Ca.hasOwnProperty(B) && (I[B] = w[B]);
536
+ bt.call(w, B) && !Fa.hasOwnProperty(B) && (I[B] = w[B]);
537
537
  if (d && d.defaultProps) {
538
538
  var z = d.defaultProps;
539
539
  for (B in z)
@@ -546,7 +546,7 @@ function ls() {
546
546
  return Ia(d, _, ae, k, P, wt.current, I);
547
547
  }
548
548
  }
549
- var Fr = b.ReactCurrentOwner, Jn = b.ReactDebugCurrentFrame;
549
+ var Cr = b.ReactCurrentOwner, Jn = b.ReactDebugCurrentFrame;
550
550
  function rt(d) {
551
551
  if (d) {
552
552
  var w = d._owner, O = qt(d.type, d._source, w ? w.type : null);
@@ -561,8 +561,8 @@ function ls() {
561
561
  }
562
562
  function Yn() {
563
563
  {
564
- if (Fr.current) {
565
- var d = R(Fr.current.type);
564
+ if (Cr.current) {
565
+ var d = R(Cr.current.type);
566
566
  if (d)
567
567
  return `
568
568
 
@@ -597,7 +597,7 @@ Check the top-level render call using <` + O + ">.");
597
597
  return;
598
598
  Xn[O] = !0;
599
599
  var P = "";
600
- d && d._owner && d._owner !== Fr.current && (P = " It was passed a child from " + R(d._owner.type) + "."), rt(d), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, P), rt(null);
600
+ d && d._owner && d._owner !== Cr.current && (P = " It was passed a child from " + R(d._owner.type) + "."), rt(d), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, P), rt(null);
601
601
  }
602
602
  }
603
603
  function Zn(d, w) {
@@ -779,7 +779,7 @@ const Ts = (e, t, r, { allOwnKeys: n } = {}) => (Lt(t, (o, i) => {
779
779
  e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
780
780
  value: t.prototype
781
781
  }), r && Object.assign(e.prototype, r);
782
- }, Cs = (e, t, r, n) => {
782
+ }, Fs = (e, t, r, n) => {
783
783
  let o, i, a;
784
784
  const s = {};
785
785
  if (t = t || {}, e == null) return t;
@@ -789,7 +789,7 @@ const Ts = (e, t, r, { allOwnKeys: n } = {}) => (Lt(t, (o, i) => {
789
789
  e = r !== !1 && Sn(e);
790
790
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
791
791
  return t;
792
- }, Fs = (e, t, r) => {
792
+ }, Cs = (e, t, r) => {
793
793
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
794
794
  const n = e.indexOf(t, r);
795
795
  return n !== -1 && n === r;
@@ -918,10 +918,10 @@ const qs = (e) => {
918
918
  trim: As,
919
919
  stripBOM: Rs,
920
920
  inherits: Ps,
921
- toFlatObject: Cs,
921
+ toFlatObject: Fs,
922
922
  kindOf: dr,
923
923
  kindOfTest: Ee,
924
- endsWith: Fs,
924
+ endsWith: Cs,
925
925
  toArray: $s,
926
926
  forEachEntry: Ns,
927
927
  matchAll: Ds,
@@ -947,10 +947,10 @@ const qs = (e) => {
947
947
  setImmediate: li,
948
948
  asap: Gs
949
949
  };
950
- function F(e, t, r, n, o) {
950
+ function C(e, t, r, n, o) {
951
951
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
952
952
  }
953
- g.inherits(F, Error, {
953
+ g.inherits(C, Error, {
954
954
  toJSON: function() {
955
955
  return {
956
956
  // Standard
@@ -971,7 +971,7 @@ g.inherits(F, Error, {
971
971
  };
972
972
  }
973
973
  });
974
- const ui = F.prototype, ci = {};
974
+ const ui = C.prototype, ci = {};
975
975
  [
976
976
  "ERR_BAD_OPTION_VALUE",
977
977
  "ERR_BAD_OPTION",
@@ -989,13 +989,13 @@ const ui = F.prototype, ci = {};
989
989
  ].forEach((e) => {
990
990
  ci[e] = { value: e };
991
991
  });
992
- Object.defineProperties(F, ci);
992
+ Object.defineProperties(C, ci);
993
993
  Object.defineProperty(ui, "isAxiosError", { value: !0 });
994
- F.from = (e, t, r, n, o, i) => {
994
+ C.from = (e, t, r, n, o, i) => {
995
995
  const a = Object.create(ui);
996
996
  return g.toFlatObject(e, a, function(l) {
997
997
  return l !== Error.prototype;
998
- }, (s) => s !== "isAxiosError"), F.call(a, e.message, t, r, n, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
998
+ }, (s) => s !== "isAxiosError"), C.call(a, e.message, t, r, n, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
999
999
  };
1000
1000
  const Ks = null;
1001
1001
  function tn(e) {
@@ -1033,7 +1033,7 @@ function yr(e, t, r) {
1033
1033
  if (g.isDate(c))
1034
1034
  return c.toISOString();
1035
1035
  if (!l && g.isBlob(c))
1036
- throw new F("Blob is not supported. Use a Buffer instead.");
1036
+ throw new C("Blob is not supported. Use a Buffer instead.");
1037
1037
  return g.isArrayBuffer(c) || g.isTypedArray(c) ? l && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
1038
1038
  }
1039
1039
  function u(c, p, m) {
@@ -1279,7 +1279,7 @@ const Mt = {
1279
1279
  return JSON.parse(t);
1280
1280
  } catch (s) {
1281
1281
  if (a)
1282
- throw s.name === "SyntaxError" ? F.from(s, F.ERR_BAD_RESPONSE, this, null, this.response) : s;
1282
+ throw s.name === "SyntaxError" ? C.from(s, C.ERR_BAD_RESPONSE, this, null, this.response) : s;
1283
1283
  }
1284
1284
  }
1285
1285
  return t;
@@ -1514,16 +1514,16 @@ function hi(e) {
1514
1514
  return !!(e && e.__CANCEL__);
1515
1515
  }
1516
1516
  function mt(e, t, r) {
1517
- F.call(this, e ?? "canceled", F.ERR_CANCELED, t, r), this.name = "CanceledError";
1517
+ C.call(this, e ?? "canceled", C.ERR_CANCELED, t, r), this.name = "CanceledError";
1518
1518
  }
1519
- g.inherits(mt, F, {
1519
+ g.inherits(mt, C, {
1520
1520
  __CANCEL__: !0
1521
1521
  });
1522
1522
  function vi(e, t, r) {
1523
1523
  const n = r.config.validateStatus;
1524
- !r.status || !n || n(r.status) ? e(r) : t(new F(
1524
+ !r.status || !n || n(r.status) ? e(r) : t(new C(
1525
1525
  "Request failed with status code " + r.status,
1526
- [F.ERR_BAD_REQUEST, F.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
1526
+ [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
1527
1527
  r.config,
1528
1528
  r.request,
1529
1529
  r
@@ -1773,15 +1773,15 @@ const bi = (e) => {
1773
1773
  "onloadend" in m ? m.onloadend = b : m.onreadystatechange = function() {
1774
1774
  !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(b);
1775
1775
  }, m.onabort = function() {
1776
- m && (n(new F("Request aborted", F.ECONNABORTED, e, m)), m = null);
1776
+ m && (n(new C("Request aborted", C.ECONNABORTED, e, m)), m = null);
1777
1777
  }, m.onerror = function() {
1778
- n(new F("Network Error", F.ERR_NETWORK, e, m)), m = null;
1778
+ n(new C("Network Error", C.ERR_NETWORK, e, m)), m = null;
1779
1779
  }, m.ontimeout = function() {
1780
1780
  let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1781
1781
  const A = o.transitional || mi;
1782
- o.timeoutErrorMessage && (x = o.timeoutErrorMessage), n(new F(
1782
+ o.timeoutErrorMessage && (x = o.timeoutErrorMessage), n(new C(
1783
1783
  x,
1784
- A.clarifyTimeoutError ? F.ETIMEDOUT : F.ECONNABORTED,
1784
+ A.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
1785
1785
  e,
1786
1786
  m
1787
1787
  )), m = null;
@@ -1792,7 +1792,7 @@ const bi = (e) => {
1792
1792
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1793
1793
  const E = hl(o.url);
1794
1794
  if (E && ue.protocols.indexOf(E) === -1) {
1795
- n(new F("Unsupported protocol " + E + ":", F.ERR_BAD_REQUEST, e));
1795
+ n(new C("Unsupported protocol " + E + ":", C.ERR_BAD_REQUEST, e));
1796
1796
  return;
1797
1797
  }
1798
1798
  m.send(i || null);
@@ -1805,11 +1805,11 @@ const bi = (e) => {
1805
1805
  if (!o) {
1806
1806
  o = !0, s();
1807
1807
  const u = f instanceof Error ? f : this.reason;
1808
- n.abort(u instanceof F ? u : new mt(u instanceof Error ? u.message : u));
1808
+ n.abort(u instanceof C ? u : new mt(u instanceof Error ? u.message : u));
1809
1809
  }
1810
1810
  };
1811
1811
  let a = t && setTimeout(() => {
1812
- a = null, i(new F(`timeout ${t} of ms exceeded`, F.ETIMEDOUT));
1812
+ a = null, i(new C(`timeout ${t} of ms exceeded`, C.ETIMEDOUT));
1813
1813
  }, t);
1814
1814
  const s = () => {
1815
1815
  e && (a && clearTimeout(a), a = null, e.forEach((f) => {
@@ -1877,13 +1877,13 @@ const bi = (e) => {
1877
1877
  }, {
1878
1878
  highWaterMark: 2
1879
1879
  });
1880
- }, hr = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wi = hr && typeof ReadableStream == "function", Cl = hr && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ei = (e, ...t) => {
1880
+ }, hr = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wi = hr && typeof ReadableStream == "function", Fl = hr && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ei = (e, ...t) => {
1881
1881
  try {
1882
1882
  return !!e(...t);
1883
1883
  } catch {
1884
1884
  return !1;
1885
1885
  }
1886
- }, Fl = wi && Ei(() => {
1886
+ }, Cl = wi && Ei(() => {
1887
1887
  let e = !1;
1888
1888
  const t = new Request(ue.origin, {
1889
1889
  body: new ReadableStream(),
@@ -1899,7 +1899,7 @@ const bi = (e) => {
1899
1899
  hr && ((e) => {
1900
1900
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1901
1901
  !rr[t] && (rr[t] = g.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
1902
- throw new F(`Response type '${t}' is not supported`, F.ERR_NOT_SUPPORT, n);
1902
+ throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, n);
1903
1903
  });
1904
1904
  });
1905
1905
  })(new Response());
@@ -1916,7 +1916,7 @@ const $l = async (e) => {
1916
1916
  if (g.isArrayBufferView(e) || g.isArrayBuffer(e))
1917
1917
  return e.byteLength;
1918
1918
  if (g.isURLSearchParams(e) && (e = e + ""), g.isString(e))
1919
- return (await Cl(e)).byteLength;
1919
+ return (await Fl(e)).byteLength;
1920
1920
  }, _l = async (e, t) => {
1921
1921
  const r = g.toFiniteNumber(e.getContentLength());
1922
1922
  return r ?? $l(t);
@@ -1942,7 +1942,7 @@ const $l = async (e) => {
1942
1942
  });
1943
1943
  let m;
1944
1944
  try {
1945
- if (l && Fl && r !== "get" && r !== "head" && (m = await _l(u, n)) !== 0) {
1945
+ if (l && Cl && r !== "get" && r !== "head" && (m = await _l(u, n)) !== 0) {
1946
1946
  let A = new Request(t, {
1947
1947
  method: "POST",
1948
1948
  body: n,
@@ -1999,11 +1999,11 @@ const $l = async (e) => {
1999
1999
  });
2000
2000
  } catch (b) {
2001
2001
  throw p && p(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
2002
- new F("Network Error", F.ERR_NETWORK, e, c),
2002
+ new C("Network Error", C.ERR_NETWORK, e, c),
2003
2003
  {
2004
2004
  cause: b.cause || b
2005
2005
  }
2006
- ) : F.from(b, b && b.code, e, c);
2006
+ ) : C.from(b, b && b.code, e, c);
2007
2007
  }
2008
2008
  }), on = {
2009
2009
  http: Ks,
@@ -2029,7 +2029,7 @@ const ho = (e) => `- ${e}`, Dl = (e) => g.isFunction(e) || e === null || e === !
2029
2029
  r = e[i];
2030
2030
  let a;
2031
2031
  if (n = r, !Dl(r) && (n = on[(a = String(r)).toLowerCase()], n === void 0))
2032
- throw new F(`Unknown adapter '${a}'`);
2032
+ throw new C(`Unknown adapter '${a}'`);
2033
2033
  if (n)
2034
2034
  break;
2035
2035
  o[a || "#" + i] = n;
@@ -2041,7 +2041,7 @@ const ho = (e) => `- ${e}`, Dl = (e) => g.isFunction(e) || e === null || e === !
2041
2041
  let a = t ? i.length > 1 ? `since :
2042
2042
  ` + i.map(ho).join(`
2043
2043
  `) : " " + ho(i[0]) : "as no adapter specified";
2044
- throw new F(
2044
+ throw new C(
2045
2045
  "There is no suitable adapter to dispatch the request " + a,
2046
2046
  "ERR_NOT_SUPPORT"
2047
2047
  );
@@ -2085,9 +2085,9 @@ An.transitional = function(t, r, n) {
2085
2085
  }
2086
2086
  return (i, a, s) => {
2087
2087
  if (t === !1)
2088
- throw new F(
2088
+ throw new C(
2089
2089
  o(a, " has been removed" + (r ? " in " + r : "")),
2090
- F.ERR_DEPRECATED
2090
+ C.ERR_DEPRECATED
2091
2091
  );
2092
2092
  return r && !go[a] && (go[a] = !0, console.warn(
2093
2093
  o(
@@ -2099,7 +2099,7 @@ An.transitional = function(t, r, n) {
2099
2099
  };
2100
2100
  function Il(e, t, r) {
2101
2101
  if (typeof e != "object")
2102
- throw new F("options must be an object", F.ERR_BAD_OPTION_VALUE);
2102
+ throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
2103
2103
  const n = Object.keys(e);
2104
2104
  let o = n.length;
2105
2105
  for (; o-- > 0; ) {
@@ -2107,11 +2107,11 @@ function Il(e, t, r) {
2107
2107
  if (a) {
2108
2108
  const s = e[i], l = s === void 0 || a(s, i, e);
2109
2109
  if (l !== !0)
2110
- throw new F("option " + i + " must be " + l, F.ERR_BAD_OPTION_VALUE);
2110
+ throw new C("option " + i + " must be " + l, C.ERR_BAD_OPTION_VALUE);
2111
2111
  continue;
2112
2112
  }
2113
2113
  if (r !== !0)
2114
- throw new F("Unknown option " + i, F.ERR_BAD_OPTION);
2114
+ throw new C("Unknown option " + i, C.ERR_BAD_OPTION);
2115
2115
  }
2116
2116
  }
2117
2117
  const an = {
@@ -2401,7 +2401,7 @@ G.CancelToken = Tn;
2401
2401
  G.isCancel = hi;
2402
2402
  G.VERSION = xi;
2403
2403
  G.toFormData = yr;
2404
- G.AxiosError = F;
2404
+ G.AxiosError = C;
2405
2405
  G.Cancel = G.CanceledError;
2406
2406
  G.all = function(t) {
2407
2407
  return Promise.all(t);
@@ -2590,7 +2590,7 @@ if (Xe)
2590
2590
  }
2591
2591
  var Br = function() {
2592
2592
  throw new lt();
2593
- }, Cu = Xe ? function() {
2593
+ }, Fu = Xe ? function() {
2594
2594
  try {
2595
2595
  return arguments.callee, Br;
2596
2596
  } catch {
@@ -2600,7 +2600,7 @@ var Br = function() {
2600
2600
  return Br;
2601
2601
  }
2602
2602
  }
2603
- }() : Br, it = uu(), Fu = fu(), ee = Object.getPrototypeOf || (Fu ? function(e) {
2603
+ }() : Br, it = uu(), Cu = fu(), ee = Object.getPrototypeOf || (Cu ? function(e) {
2604
2604
  return e.__proto__;
2605
2605
  } : null), st = {}, $u = typeof Uint8Array > "u" || !ee ? N : ee(Uint8Array), Qe = {
2606
2606
  __proto__: null,
@@ -2660,7 +2660,7 @@ var Br = function() {
2660
2660
  "%StringIteratorPrototype%": it && ee ? ee(""[Symbol.iterator]()) : N,
2661
2661
  "%Symbol%": it ? Symbol : N,
2662
2662
  "%SyntaxError%": ct,
2663
- "%ThrowTypeError%": Cu,
2663
+ "%ThrowTypeError%": Fu,
2664
2664
  "%TypedArray%": $u,
2665
2665
  "%TypeError%": lt,
2666
2666
  "%Uint8Array%": typeof Uint8Array > "u" ? N : Uint8Array,
@@ -2801,7 +2801,7 @@ var Nu = function e(t) {
2801
2801
  }
2802
2802
  }
2803
2803
  return s;
2804
- }, Ci = { exports: {} }, Ur, Oo;
2804
+ }, Fi = { exports: {} }, Ur, Oo;
2805
2805
  function Pn() {
2806
2806
  if (Oo) return Ur;
2807
2807
  Oo = 1;
@@ -2821,7 +2821,7 @@ if (Zt)
2821
2821
  } catch {
2822
2822
  Zt = null;
2823
2823
  }
2824
- var Fi = Zt, Ao = Pn(), Wu = Ri, at = kt, To = Fi, Hu = function(t, r, n) {
2824
+ var Ci = Zt, Ao = Pn(), Wu = Ri, at = kt, To = Ci, Hu = function(t, r, n) {
2825
2825
  if (!t || typeof t != "object" && typeof t != "function")
2826
2826
  throw new at("`obj` must be an object or a function`");
2827
2827
  if (typeof r != "string" && typeof r != "symbol")
@@ -2858,11 +2858,11 @@ $i.hasArrayLengthDefineBug = function() {
2858
2858
  return !0;
2859
2859
  }
2860
2860
  };
2861
- var qu = $i, Vu = yt, Ro = Hu, zu = qu(), Po = Fi, Co = kt, Gu = Vu("%Math.floor%"), Ku = function(t, r) {
2861
+ var qu = $i, Vu = yt, Ro = Hu, zu = qu(), Po = Ci, Fo = kt, Gu = Vu("%Math.floor%"), Ku = function(t, r) {
2862
2862
  if (typeof t != "function")
2863
- throw new Co("`fn` is not a function");
2863
+ throw new Fo("`fn` is not a function");
2864
2864
  if (typeof r != "number" || r < 0 || r > 4294967295 || Gu(r) !== r)
2865
- throw new Co("`length` must be a positive 32-bit integer");
2865
+ throw new Fo("`length` must be a positive 32-bit integer");
2866
2866
  var n = arguments.length > 2 && !!arguments[2], o = !0, i = !0;
2867
2867
  if ("length" in t && Po) {
2868
2868
  var a = Po(t, "length");
@@ -2898,8 +2898,8 @@ var qu = $i, Vu = yt, Ro = Hu, zu = qu(), Po = Fi, Co = kt, Gu = Vu("%Math.floor
2898
2898
  return s(t, i, arguments);
2899
2899
  };
2900
2900
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
2901
- })(Ci);
2902
- var Ju = Ci.exports, _i = yt, Ni = Ju, Yu = Ni(_i("String.prototype.indexOf")), Xu = function(t, r) {
2901
+ })(Fi);
2902
+ var Ju = Fi.exports, _i = yt, Ni = Ju, Yu = Ni(_i("String.prototype.indexOf")), Xu = function(t, r) {
2903
2903
  var n = _i(t, !!r);
2904
2904
  return typeof n == "function" && Yu(t, ".prototype.") > -1 ? Ni(n) : n;
2905
2905
  };
@@ -2907,7 +2907,7 @@ const Qu = {}, Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2907
2907
  __proto__: null,
2908
2908
  default: Qu
2909
2909
  }, Symbol.toStringTag, { value: "Module" })), ec = /* @__PURE__ */ as(Zu);
2910
- var Cn = typeof Map == "function" && Map.prototype, Wr = Object.getOwnPropertyDescriptor && Cn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ir = Cn && Wr && typeof Wr.get == "function" ? Wr.get : null, Fo = Cn && Map.prototype.forEach, Fn = typeof Set == "function" && Set.prototype, Hr = Object.getOwnPropertyDescriptor && Fn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ar = Fn && Hr && typeof Hr.get == "function" ? Hr.get : null, $o = Fn && Set.prototype.forEach, tc = typeof WeakMap == "function" && WeakMap.prototype, Pt = tc ? WeakMap.prototype.has : null, rc = typeof WeakSet == "function" && WeakSet.prototype, Ct = rc ? WeakSet.prototype.has : null, nc = typeof WeakRef == "function" && WeakRef.prototype, _o = nc ? WeakRef.prototype.deref : null, oc = Boolean.prototype.valueOf, ic = Object.prototype.toString, ac = Function.prototype.toString, sc = String.prototype.match, $n = String.prototype.slice, Me = String.prototype.replace, lc = String.prototype.toUpperCase, No = String.prototype.toLowerCase, Di = RegExp.prototype.test, Do = Array.prototype.concat, Te = Array.prototype.join, uc = Array.prototype.slice, Io = Math.floor, un = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, qr = Object.getOwnPropertySymbols, cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ft = typeof Symbol == "function" && typeof Symbol.iterator == "object", ie = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ft || !0) ? Symbol.toStringTag : null, Ii = Object.prototype.propertyIsEnumerable, Lo = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
2910
+ var Fn = typeof Map == "function" && Map.prototype, Wr = Object.getOwnPropertyDescriptor && Fn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ir = Fn && Wr && typeof Wr.get == "function" ? Wr.get : null, Co = Fn && Map.prototype.forEach, Cn = typeof Set == "function" && Set.prototype, Hr = Object.getOwnPropertyDescriptor && Cn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ar = Cn && Hr && typeof Hr.get == "function" ? Hr.get : null, $o = Cn && Set.prototype.forEach, tc = typeof WeakMap == "function" && WeakMap.prototype, Pt = tc ? WeakMap.prototype.has : null, rc = typeof WeakSet == "function" && WeakSet.prototype, Ft = rc ? WeakSet.prototype.has : null, nc = typeof WeakRef == "function" && WeakRef.prototype, _o = nc ? WeakRef.prototype.deref : null, oc = Boolean.prototype.valueOf, ic = Object.prototype.toString, ac = Function.prototype.toString, sc = String.prototype.match, $n = String.prototype.slice, Me = String.prototype.replace, lc = String.prototype.toUpperCase, No = String.prototype.toLowerCase, Di = RegExp.prototype.test, Do = Array.prototype.concat, Re = Array.prototype.join, uc = Array.prototype.slice, Io = Math.floor, un = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, qr = Object.getOwnPropertySymbols, cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ft = typeof Symbol == "function" && typeof Symbol.iterator == "object", ie = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ft || !0) ? Symbol.toStringTag : null, Ii = Object.prototype.propertyIsEnumerable, Lo = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
2911
2911
  return e.__proto__;
2912
2912
  } : null);
2913
2913
  function Mo(e, t) {
@@ -2974,7 +2974,7 @@ var fn = ec, ko = fn.custom, jo = Mi(ko) ? ko : null, cc = function e(t, r, n, o
2974
2974
  }
2975
2975
  if (typeof t == "function" && !Bo(t)) {
2976
2976
  var v = bc(t), c = Gt(t, h);
2977
- return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (c.length > 0 ? " { " + Te.call(c, ", ") + " }" : "");
2977
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (c.length > 0 ? " { " + Re.call(c, ", ") + " }" : "");
2978
2978
  }
2979
2979
  if (Mi(t)) {
2980
2980
  var p = ft ? Me.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : cn.call(t);
@@ -2989,11 +2989,11 @@ var fn = ec, ko = fn.custom, jo = Mi(ko) ? ko : null, cc = function e(t, r, n, o
2989
2989
  if (t.length === 0)
2990
2990
  return "[]";
2991
2991
  var S = Gt(t, h);
2992
- return y && !Rc(S) ? "[" + pn(S, y) + "]" : "[ " + Te.call(S, ", ") + " ]";
2992
+ return y && !Rc(S) ? "[" + pn(S, y) + "]" : "[ " + Re.call(S, ", ") + " ]";
2993
2993
  }
2994
2994
  if (pc(t)) {
2995
2995
  var x = Gt(t, h);
2996
- return !("cause" in Error.prototype) && "cause" in t && !Ii.call(t, "cause") ? "{ [" + String(t) + "] " + Te.call(Do.call("[cause]: " + h(t.cause), x), ", ") + " }" : x.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + Te.call(x, ", ") + " }";
2996
+ return !("cause" in Error.prototype) && "cause" in t && !Ii.call(t, "cause") ? "{ [" + String(t) + "] " + Re.call(Do.call("[cause]: " + h(t.cause), x), ", ") + " }" : x.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + Re.call(x, ", ") + " }";
2997
2997
  }
2998
2998
  if (typeof t == "object" && a) {
2999
2999
  if (jo && typeof t[jo] == "function" && fn)
@@ -3003,7 +3003,7 @@ var fn = ec, ko = fn.custom, jo = Mi(ko) ? ko : null, cc = function e(t, r, n, o
3003
3003
  }
3004
3004
  if (wc(t)) {
3005
3005
  var A = [];
3006
- return Fo && Fo.call(t, function(R, M) {
3006
+ return Co && Co.call(t, function(R, M) {
3007
3007
  A.push(h(M, t, !0) + " => " + h(R, t));
3008
3008
  }), Uo("Map", ir.call(t), A, y);
3009
3009
  }
@@ -3032,8 +3032,8 @@ var fn = ec, ko = fn.custom, jo = Mi(ko) ? ko : null, cc = function e(t, r, n, o
3032
3032
  if (typeof globalThis < "u" && t === globalThis || typeof Qr < "u" && t === Qr)
3033
3033
  return "{ [object globalThis] }";
3034
3034
  if (!dc(t) && !Bo(t)) {
3035
- var $ = Gt(t, h), j = Lo ? Lo(t) === Object.prototype : t instanceof Object || t.constructor === Object, H = t instanceof Object ? "" : "null prototype", L = !j && ie && Object(t) === t && ie in t ? $n.call(Be(t), 8, -1) : H ? "Object" : "", Y = j || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Z = Y + (L || H ? "[" + Te.call(Do.call([], L || [], H || []), ": ") + "] " : "");
3036
- return $.length === 0 ? Z + "{}" : y ? Z + "{" + pn($, y) + "}" : Z + "{ " + Te.call($, ", ") + " }";
3035
+ var $ = Gt(t, h), j = Lo ? Lo(t) === Object.prototype : t instanceof Object || t.constructor === Object, H = t instanceof Object ? "" : "null prototype", L = !j && ie && Object(t) === t && ie in t ? $n.call(Be(t), 8, -1) : H ? "Object" : "", Y = j || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Z = Y + (L || H ? "[" + Re.call(Do.call([], L || [], H || []), ": ") + "] " : "");
3036
+ return $.length === 0 ? Z + "{}" : y ? Z + "{" + pn($, y) + "}" : Z + "{ " + Re.call($, ", ") + " }";
3037
3037
  }
3038
3038
  return String(t);
3039
3039
  };
@@ -3131,7 +3131,7 @@ function Ec(e) {
3131
3131
  try {
3132
3132
  Pt.call(e, Pt);
3133
3133
  try {
3134
- Ct.call(e, Ct);
3134
+ Ft.call(e, Ft);
3135
3135
  } catch {
3136
3136
  return !0;
3137
3137
  }
@@ -3165,10 +3165,10 @@ function xc(e) {
3165
3165
  return !1;
3166
3166
  }
3167
3167
  function Oc(e) {
3168
- if (!Ct || !e || typeof e != "object")
3168
+ if (!Ft || !e || typeof e != "object")
3169
3169
  return !1;
3170
3170
  try {
3171
- Ct.call(e, Ct);
3171
+ Ft.call(e, Ft);
3172
3172
  try {
3173
3173
  Pt.call(e, Pt);
3174
3174
  } catch {
@@ -3207,7 +3207,7 @@ function Vr(e) {
3207
3207
  return e + " { ? }";
3208
3208
  }
3209
3209
  function Uo(e, t, r, n) {
3210
- var o = n ? pn(r, n) : Te.call(r, ", ");
3210
+ var o = n ? pn(r, n) : Re.call(r, ", ");
3211
3211
  return e + " (" + t + ") {" + o + "}";
3212
3212
  }
3213
3213
  function Rc(e) {
@@ -3222,12 +3222,12 @@ function Pc(e, t) {
3222
3222
  if (e.indent === " ")
3223
3223
  r = " ";
3224
3224
  else if (typeof e.indent == "number" && e.indent > 0)
3225
- r = Te.call(Array(e.indent + 1), " ");
3225
+ r = Re.call(Array(e.indent + 1), " ");
3226
3226
  else
3227
3227
  return null;
3228
3228
  return {
3229
3229
  base: r,
3230
- prev: Te.call(Array(t + 1), r)
3230
+ prev: Re.call(Array(t + 1), r)
3231
3231
  };
3232
3232
  }
3233
3233
  function pn(e, t) {
@@ -3235,7 +3235,7 @@ function pn(e, t) {
3235
3235
  return "";
3236
3236
  var r = `
3237
3237
  ` + t.prev + t.base;
3238
- return r + Te.call(e, "," + r) + `
3238
+ return r + Re.call(e, "," + r) + `
3239
3239
  ` + t.prev;
3240
3240
  }
3241
3241
  function Gt(e, t) {
@@ -3258,7 +3258,7 @@ function Gt(e, t) {
3258
3258
  Ii.call(e, i[f]) && n.push("[" + t(i[f]) + "]: " + t(e[i[f]], e));
3259
3259
  return n;
3260
3260
  }
3261
- var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%", !0), $c = ht("WeakMap.prototype.get", !0), _c = ht("WeakMap.prototype.set", !0), Nc = ht("WeakMap.prototype.has", !0), Dc = ht("Map.prototype.get", !0), Ic = ht("Map.prototype.set", !0), Lc = ht("Map.prototype.has", !0), _n = function(e, t) {
3261
+ var Bi = yt, ht = Xu, Fc = cc, Cc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%", !0), $c = ht("WeakMap.prototype.get", !0), _c = ht("WeakMap.prototype.set", !0), Nc = ht("WeakMap.prototype.has", !0), Dc = ht("Map.prototype.get", !0), Ic = ht("Map.prototype.set", !0), Lc = ht("Map.prototype.has", !0), _n = function(e, t) {
3262
3262
  for (var r = e, n; (n = r.next) !== null; r = n)
3263
3263
  if (n.key === t)
3264
3264
  return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
@@ -3281,7 +3281,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3281
3281
  var t, r, n, o = {
3282
3282
  assert: function(i) {
3283
3283
  if (!o.has(i))
3284
- throw new Fc("Side channel does not contain " + Cc(i));
3284
+ throw new Cc("Side channel does not contain " + Fc(i));
3285
3285
  },
3286
3286
  get: function(i) {
3287
3287
  if (Kt && i && (typeof i == "object" || typeof i == "function")) {
@@ -3324,7 +3324,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3324
3324
  },
3325
3325
  RFC1738: zr.RFC1738,
3326
3326
  RFC3986: zr.RFC3986
3327
- }, Hc = Nn, Gr = Object.prototype.hasOwnProperty, ze = Array.isArray, Oe = function() {
3327
+ }, Hc = Nn, Gr = Object.prototype.hasOwnProperty, ze = Array.isArray, Ae = function() {
3328
3328
  for (var e = [], t = 0; t < 256; ++t)
3329
3329
  e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
3330
3330
  return e;
@@ -3395,18 +3395,18 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3395
3395
  continue;
3396
3396
  }
3397
3397
  if (h < 128) {
3398
- u[u.length] = Oe[h];
3398
+ u[u.length] = Ae[h];
3399
3399
  continue;
3400
3400
  }
3401
3401
  if (h < 2048) {
3402
- u[u.length] = Oe[192 | h >> 6] + Oe[128 | h & 63];
3402
+ u[u.length] = Ae[192 | h >> 6] + Ae[128 | h & 63];
3403
3403
  continue;
3404
3404
  }
3405
3405
  if (h < 55296 || h >= 57344) {
3406
- u[u.length] = Oe[224 | h >> 12] + Oe[128 | h >> 6 & 63] + Oe[128 | h & 63];
3406
+ u[u.length] = Ae[224 | h >> 12] + Ae[128 | h >> 6 & 63] + Ae[128 | h & 63];
3407
3407
  continue;
3408
3408
  }
3409
- y += 1, h = 65536 + ((h & 1023) << 10 | f.charCodeAt(y) & 1023), u[u.length] = Oe[240 | h >> 18] + Oe[128 | h >> 12 & 63] + Oe[128 | h >> 6 & 63] + Oe[128 | h & 63];
3409
+ y += 1, h = 65536 + ((h & 1023) << 10 | f.charCodeAt(y) & 1023), u[u.length] = Ae[240 | h >> 18] + Ae[128 | h >> 12 & 63] + Ae[128 | h >> 6 & 63] + Ae[128 | h & 63];
3410
3410
  }
3411
3411
  s += u.join("");
3412
3412
  }
@@ -3442,7 +3442,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3442
3442
  isRegExp: Yc,
3443
3443
  maybeMap: Zc,
3444
3444
  merge: Vc
3445
- }, Hi = Bc, er = Wi, Ft = Nn, ef = Object.prototype.hasOwnProperty, qi = {
3445
+ }, Hi = Bc, er = Wi, Ct = Nn, ef = Object.prototype.hasOwnProperty, qi = {
3446
3446
  brackets: function(t) {
3447
3447
  return t + "[]";
3448
3448
  },
@@ -3453,9 +3453,9 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3453
3453
  repeat: function(t) {
3454
3454
  return t;
3455
3455
  }
3456
- }, Ae = Array.isArray, tf = Array.prototype.push, Vi = function(e, t) {
3457
- tf.apply(e, Ae(t) ? t : [t]);
3458
- }, rf = Date.prototype.toISOString, Wo = Ft.default, X = {
3456
+ }, Te = Array.isArray, tf = Array.prototype.push, Vi = function(e, t) {
3457
+ tf.apply(e, Te(t) ? t : [t]);
3458
+ }, rf = Date.prototype.toISOString, Wo = Ct.default, X = {
3459
3459
  addQueryPrefix: !1,
3460
3460
  allowDots: !1,
3461
3461
  allowEmptyArrays: !1,
@@ -3468,7 +3468,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3468
3468
  encoder: er.encode,
3469
3469
  encodeValuesOnly: !1,
3470
3470
  format: Wo,
3471
- formatter: Ft.formatters[Wo],
3471
+ formatter: Ct.formatters[Wo],
3472
3472
  // deprecated
3473
3473
  indices: !1,
3474
3474
  serializeDate: function(t) {
@@ -3488,7 +3488,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3488
3488
  }
3489
3489
  typeof x.get(Jr) > "u" && (A = 0);
3490
3490
  }
3491
- if (typeof u == "function" ? S = u(r, S) : S instanceof Date ? S = v(S) : n === "comma" && Ae(S) && (S = er.maybeMap(S, function(W) {
3491
+ if (typeof u == "function" ? S = u(r, S) : S instanceof Date ? S = v(S) : n === "comma" && Te(S) && (S = er.maybeMap(S, function(W) {
3492
3492
  return W instanceof Date ? v(W) : W;
3493
3493
  })), S === null) {
3494
3494
  if (a)
@@ -3506,21 +3506,21 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3506
3506
  if (typeof S > "u")
3507
3507
  return H;
3508
3508
  var L;
3509
- if (n === "comma" && Ae(S))
3509
+ if (n === "comma" && Te(S))
3510
3510
  m && f && (S = er.maybeMap(S, f)), L = [{ value: S.length > 0 ? S.join(",") || null : void 0 }];
3511
- else if (Ae(u))
3511
+ else if (Te(u))
3512
3512
  L = u;
3513
3513
  else {
3514
3514
  var Y = Object.keys(S);
3515
3515
  L = y ? Y.sort(y) : Y;
3516
3516
  }
3517
- var Z = l ? r.replace(/\./g, "%2E") : r, R = o && Ae(S) && S.length === 1 ? Z + "[]" : Z;
3518
- if (i && Ae(S) && S.length === 0)
3517
+ var Z = l ? r.replace(/\./g, "%2E") : r, R = o && Te(S) && S.length === 1 ? Z + "[]" : Z;
3518
+ if (i && Te(S) && S.length === 0)
3519
3519
  return R + "[]";
3520
3520
  for (var M = 0; M < L.length; ++M) {
3521
3521
  var K = L[M], pe = typeof K == "object" && typeof K.value < "u" ? K.value : S[K];
3522
3522
  if (!(s && pe === null)) {
3523
- var ge = h && l ? K.replace(/\./g, "%2E") : K, Se = Ae(S) ? typeof n == "function" ? n(R, ge) : R : R + (h ? "." + ge : "[" + ge + "]");
3523
+ var ge = h && l ? K.replace(/\./g, "%2E") : K, Se = Te(S) ? typeof n == "function" ? n(R, ge) : R : R + (h ? "." + ge : "[" + ge + "]");
3524
3524
  E.set(t, A);
3525
3525
  var re = Hi();
3526
3526
  re.set(Jr, E), Vi(H, e(
@@ -3532,7 +3532,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3532
3532
  a,
3533
3533
  s,
3534
3534
  l,
3535
- n === "comma" && m && Ae(S) ? null : f,
3535
+ n === "comma" && m && Te(S) ? null : f,
3536
3536
  u,
3537
3537
  y,
3538
3538
  h,
@@ -3558,14 +3558,14 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3558
3558
  var r = t.charset || X.charset;
3559
3559
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
3560
3560
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3561
- var n = Ft.default;
3561
+ var n = Ct.default;
3562
3562
  if (typeof t.format < "u") {
3563
- if (!ef.call(Ft.formatters, t.format))
3563
+ if (!ef.call(Ct.formatters, t.format))
3564
3564
  throw new TypeError("Unknown format option provided.");
3565
3565
  n = t.format;
3566
3566
  }
3567
- var o = Ft.formatters[n], i = X.filter;
3568
- (typeof t.filter == "function" || Ae(t.filter)) && (i = t.filter);
3567
+ var o = Ct.formatters[n], i = X.filter;
3568
+ (typeof t.filter == "function" || Te(t.filter)) && (i = t.filter);
3569
3569
  var a;
3570
3570
  if (t.arrayFormat in qi ? a = t.arrayFormat : "indices" in t ? a = t.indices ? "indices" : "repeat" : a = X.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
3571
3571
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
@@ -3593,7 +3593,7 @@ var Bi = yt, ht = Xu, Cc = cc, Fc = kt, Kt = Bi("%WeakMap%", !0), Jt = Bi("%Map%
3593
3593
  };
3594
3594
  }, sf = function(e, t) {
3595
3595
  var r = e, n = af(t), o, i;
3596
- typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : Ae(n.filter) && (i = n.filter, o = i);
3596
+ typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : Te(n.filter) && (i = n.filter, o = i);
3597
3597
  var a = [];
3598
3598
  if (typeof r != "object" || r === null)
3599
3599
  return "";
@@ -3923,7 +3923,7 @@ const hp = ({ children: e }) => {
3923
3923
  const [t, r] = Q([]), [n, o] = Q({});
3924
3924
  class i {
3925
3925
  constructor(c, p, m, b, E) {
3926
- Pe(this, "updateStack", (c) => {
3926
+ Oe(this, "updateStack", (c) => {
3927
3927
  r((p) => {
3928
3928
  const m = c([...p]);
3929
3929
  return m.forEach((b, E) => {
@@ -3931,7 +3931,10 @@ const hp = ({ children: e }) => {
3931
3931
  }), m;
3932
3932
  });
3933
3933
  });
3934
- Pe(this, "close", () => {
3934
+ Oe(this, "setOpen", (c) => {
3935
+ c ? this.open = !0 : this.close();
3936
+ });
3937
+ Oe(this, "close", () => {
3935
3938
  this.updateStack(
3936
3939
  (c) => c.map((p) => {
3937
3940
  var m;
@@ -3941,33 +3944,33 @@ const hp = ({ children: e }) => {
3941
3944
  })
3942
3945
  );
3943
3946
  });
3944
- Pe(this, "afterLeave", () => {
3945
- this.updateStack(
3947
+ Oe(this, "afterLeave", () => {
3948
+ this.open || this.updateStack(
3946
3949
  (c) => c.filter((p) => {
3947
3950
  var m;
3948
3951
  return p.id !== this.id ? !0 : ((m = p.afterLeaveCallback) == null || m.call(p), !1);
3949
3952
  })
3950
3953
  );
3951
3954
  });
3952
- Pe(this, "on", (c, p) => {
3955
+ Oe(this, "on", (c, p) => {
3953
3956
  this.listeners[c] = this.listeners[c] ?? [], this.listeners[c].push(p);
3954
3957
  });
3955
- Pe(this, "off", (c, p) => {
3958
+ Oe(this, "off", (c, p) => {
3956
3959
  var m;
3957
3960
  p ? this.listeners[c] = ((m = this.listeners[c]) == null ? void 0 : m.filter((b) => b !== p)) ?? [] : delete this.listeners[c];
3958
3961
  });
3959
- Pe(this, "emit", (c, ...p) => {
3962
+ Oe(this, "emit", (c, ...p) => {
3960
3963
  var m;
3961
3964
  return console.log("Emitting", c, "with args", p), (m = this.listeners[c]) == null || m.forEach((b) => b(...p)), "OK";
3962
3965
  });
3963
- Pe(this, "registerEventListenersFromProps", (c) => {
3966
+ Oe(this, "registerEventListenersFromProps", (c) => {
3964
3967
  const p = [];
3965
3968
  return Object.keys(c).filter((m) => m.startsWith("on")).forEach((m) => {
3966
3969
  const b = m.replace(/^on/, "").replace(/^./, (E) => E.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
3967
3970
  this.on(b, c[m]), p.push(() => this.off(b, c[m]));
3968
3971
  }), () => p.forEach((m) => m());
3969
3972
  });
3970
- Pe(this, "reload", (c = {}) => {
3973
+ Oe(this, "reload", (c = {}) => {
3971
3974
  let p = Object.keys(this.response.props);
3972
3975
  c.only && (p = Ai(p, c.only)), c.except && (p = kl(p, c.except)), G.get(this.response.url, {
3973
3976
  headers: {
@@ -4073,10 +4076,10 @@ const hp = ({ children: e }) => {
4073
4076
  e,
4074
4077
  t.length > 0 && /* @__PURE__ */ D.jsx(Gi, { index: 0 })
4075
4078
  ] });
4076
- }, In = C.createContext(null);
4079
+ }, In = F.createContext(null);
4077
4080
  In.displayName = "ModalIndexContext";
4078
4081
  const Sf = () => {
4079
- const e = C.useContext(In);
4082
+ const e = F.useContext(In);
4080
4083
  if (e === void 0)
4081
4084
  throw new Error("useModalIndex must be used within a ModalIndexProvider");
4082
4085
  return e;
@@ -4121,9 +4124,12 @@ const Sf = () => {
4121
4124
  emit: (...v) => u.emit(...v),
4122
4125
  getChildModal: () => u.getChildModal(),
4123
4126
  getParentModal: () => u.getParentModal(),
4127
+ index: u == null ? void 0 : u.index,
4128
+ isOpen: u == null ? void 0 : u.open,
4124
4129
  modalContext: u,
4125
4130
  modalProps: h,
4126
- reload: () => u.reload()
4131
+ reload: () => u.reload(),
4132
+ setOpen: () => u.setOpen()
4127
4133
  }),
4128
4134
  [u]
4129
4135
  ), u && /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
@@ -4133,9 +4139,12 @@ const Sf = () => {
4133
4139
  emit: u.emit,
4134
4140
  getChildModal: u.getChildModal,
4135
4141
  getParentModal: u.getParentModal,
4142
+ index: u.index,
4143
+ isOpen: u.open,
4136
4144
  modalContext: u,
4137
4145
  modalProps: h,
4138
- reload: u.reload
4146
+ reload: u.reload,
4147
+ setOpen: u.setOpen
4139
4148
  }) : t,
4140
4149
  i[u.index + 1] && /* @__PURE__ */ D.jsx(Gi, { index: u.index + 1 })
4141
4150
  ] });
@@ -4243,7 +4252,7 @@ function tt(e) {
4243
4252
  }
4244
4253
  let q = function(e) {
4245
4254
  let t = tt(e);
4246
- return C.useCallback((...r) => t.current(...r), [t]);
4255
+ return F.useCallback((...r) => t.current(...r), [t]);
4247
4256
  }, Tf = he(void 0);
4248
4257
  function Rf() {
4249
4258
  return fe(Tf);
@@ -4340,18 +4349,18 @@ function Xr(e, t = []) {
4340
4349
  for (let n of t) n in r && delete r[n];
4341
4350
  return r;
4342
4351
  }
4343
- let Cf = "span";
4352
+ let Ff = "span";
4344
4353
  var ur = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(ur || {});
4345
- function Ff(e, t) {
4354
+ function Cf(e, t) {
4346
4355
  var r;
4347
4356
  let { features: n = 1, ...o } = e, i = { ref: t, "aria-hidden": (n & 2) === 2 ? !0 : (r = o["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" } } };
4348
- return ve({ ourProps: i, theirProps: o, slot: {}, defaultTag: Cf, name: "Hidden" });
4357
+ return ve({ ourProps: i, theirProps: o, slot: {}, defaultTag: Ff, name: "Hidden" });
4349
4358
  }
4350
- let hn = de(Ff), Xi = Symbol();
4359
+ let hn = de(Cf), Xi = Symbol();
4351
4360
  function $f(e, t = !0) {
4352
4361
  return Object.assign(e, { [Xi]: t });
4353
4362
  }
4354
- function Re(...e) {
4363
+ function Pe(...e) {
4355
4364
  let t = U(e);
4356
4365
  oe(() => {
4357
4366
  t.current = e;
@@ -4378,12 +4387,12 @@ function _f() {
4378
4387
  let s = a.slice(), l = s.indexOf(i);
4379
4388
  return l !== -1 && s.splice(l, 1), s;
4380
4389
  }))), o = ne(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
4381
- return C.createElement(Mn.Provider, { value: o }, r.children);
4390
+ return F.createElement(Mn.Provider, { value: o }, r.children);
4382
4391
  }, [t])];
4383
4392
  }
4384
4393
  let Nf = "p";
4385
4394
  function Df(e, t) {
4386
- let r = It(), n = Rf(), { id: o = `headlessui-description-${r}`, ...i } = e, a = Qi(), s = Re(t);
4395
+ let r = It(), n = Rf(), { id: o = `headlessui-description-${r}`, ...i } = e, a = Qi(), s = Pe(t);
4387
4396
  se(() => a.register(o), [o, a.register]);
4388
4397
  let l = n || !1, f = ne(() => ({ ...a.slot, disabled: l }), [a.slot, l]), u = { ref: s, ...a.props, id: o };
4389
4398
  return ve({ ourProps: u, theirProps: i, slot: f, defaultTag: Nf, name: a.name || "Description" });
@@ -4393,7 +4402,7 @@ var Zi = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backs
4393
4402
  let Mf = he(() => {
4394
4403
  });
4395
4404
  function kf({ value: e, children: t }) {
4396
- return C.createElement(Mf.Provider, { value: e }, t);
4405
+ return F.createElement(Mf.Provider, { value: e }, t);
4397
4406
  }
4398
4407
  let jf = class extends Map {
4399
4408
  constructor(t) {
@@ -4490,7 +4499,7 @@ function Wf(e, t, r) {
4490
4499
  }, [t, n, e]);
4491
4500
  }
4492
4501
  let cr = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), Hf = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
4493
- var Fe = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Fe || {}), gn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(gn || {}), qf = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(qf || {});
4502
+ var Ce = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Ce || {}), gn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(gn || {}), qf = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(qf || {});
4494
4503
  function Vf(e = document.body) {
4495
4504
  return e == null ? [] : Array.from(e.querySelectorAll(cr)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
4496
4505
  }
@@ -4590,7 +4599,7 @@ function oa(e, t, r, n) {
4590
4599
  }
4591
4600
  const Go = 30;
4592
4601
  function ed(e, t, r) {
4593
- let n = vt(e, "outside-click"), o = tt(r), i = Ce(function(l, f) {
4602
+ let n = vt(e, "outside-click"), o = tt(r), i = Fe(function(l, f) {
4594
4603
  if (l.defaultPrevented) return;
4595
4604
  let u = f(l);
4596
4605
  if (u === null || !u.getRootNode().contains(u) || !u.isConnected) return;
@@ -4731,7 +4740,7 @@ function ad(e, t, r = () => [document.body]) {
4731
4740
  });
4732
4741
  }
4733
4742
  function sd(e = 0) {
4734
- let [t, r] = Q(e), n = Ce((l) => r(l), [t]), o = Ce((l) => r((f) => f | l), [t]), i = Ce((l) => (t & l) === l, [t]), a = Ce((l) => r((f) => f & ~l), [r]), s = Ce((l) => r((f) => f ^ l), [r]);
4743
+ let [t, r] = Q(e), n = Fe((l) => r(l), [t]), o = Fe((l) => r((f) => f | l), [t]), i = Fe((l) => (t & l) === l, [t]), a = Fe((l) => r((f) => f & ~l), [r]), s = Fe((l) => r((f) => f ^ l), [r]);
4735
4744
  return { flags: t, setFlag: n, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: s };
4736
4745
  }
4737
4746
  var Ko, Jo;
@@ -4811,10 +4820,10 @@ function Er() {
4811
4820
  return fe(wr);
4812
4821
  }
4813
4822
  function md({ value: e, children: t }) {
4814
- return C.createElement(wr.Provider, { value: e }, t);
4823
+ return F.createElement(wr.Provider, { value: e }, t);
4815
4824
  }
4816
4825
  function yd({ children: e }) {
4817
- return C.createElement(wr.Provider, { value: null }, e);
4826
+ return F.createElement(wr.Provider, { value: null }, e);
4818
4827
  }
4819
4828
  function hd(e) {
4820
4829
  function t() {
@@ -4855,7 +4864,7 @@ function gd() {
4855
4864
  return fe(sa);
4856
4865
  }
4857
4866
  function Yo(e) {
4858
- return C.createElement(sa.Provider, { value: e.force }, e.children);
4867
+ return F.createElement(sa.Provider, { value: e.force }, e.children);
4859
4868
  }
4860
4869
  function bd(e) {
4861
4870
  let t = gd(), r = fe(ua), n = Bt(e), [o, i] = Q(() => {
@@ -4875,7 +4884,7 @@ function bd(e) {
4875
4884
  }, [r, i, t]), o;
4876
4885
  }
4877
4886
  let la = we, wd = de(function(e, t) {
4878
- let r = e, n = U(null), o = Re($f((u) => {
4887
+ let r = e, n = U(null), o = Pe($f((u) => {
4879
4888
  n.current = u;
4880
4889
  }), t), i = Bt(n), a = bd(n), [s] = Q(() => {
4881
4890
  var u;
@@ -4891,13 +4900,13 @@ let la = we, wd = de(function(e, t) {
4891
4900
  }), f ? !a || !s ? null : rs(ve({ ourProps: { ref: o }, theirProps: r, slot: {}, defaultTag: la, name: "Portal" }), s) : null;
4892
4901
  });
4893
4902
  function Ed(e, t) {
4894
- let r = Re(t), { enabled: n = !0, ...o } = e;
4895
- return n ? C.createElement(wd, { ...o, ref: r }) : ve({ ourProps: { ref: r }, theirProps: o, slot: {}, defaultTag: la, name: "Portal" });
4903
+ let r = Pe(t), { enabled: n = !0, ...o } = e;
4904
+ return n ? F.createElement(wd, { ...o, ref: r }) : ve({ ourProps: { ref: r }, theirProps: o, slot: {}, defaultTag: la, name: "Portal" });
4896
4905
  }
4897
4906
  let Sd = we, ua = he(null);
4898
4907
  function xd(e, t) {
4899
- let { target: r, ...n } = e, o = { ref: Re(t) };
4900
- return C.createElement(ua.Provider, { value: r }, ve({ ourProps: o, theirProps: n, defaultTag: Sd, name: "Popover.Group" }));
4908
+ let { target: r, ...n } = e, o = { ref: Pe(t) };
4909
+ return F.createElement(ua.Provider, { value: r }, ve({ ourProps: o, theirProps: n, defaultTag: Sd, name: "Popover.Group" }));
4901
4910
  }
4902
4911
  let bn = he(null);
4903
4912
  function Od() {
@@ -4906,7 +4915,7 @@ function Od() {
4906
4915
  a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
4907
4916
  }), o = ne(() => ({ register: r, unregister: n, portals: t }), [r, n, t]);
4908
4917
  return [t, ne(() => function({ children: i }) {
4909
- return C.createElement(bn.Provider, { value: o }, i);
4918
+ return F.createElement(bn.Provider, { value: o }, i);
4910
4919
  }, [o])];
4911
4920
  }
4912
4921
  let Ad = de(Ed), ca = de(xd), Td = Object.assign(Ad, { Group: ca });
@@ -4927,7 +4936,7 @@ function Pd() {
4927
4936
  return t.addEventListener("change", o), () => t.removeEventListener("change", o);
4928
4937
  }, [t]), r;
4929
4938
  }
4930
- function Cd({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
4939
+ function Fd({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
4931
4940
  let n = Bt(r), o = q(() => {
4932
4941
  var i, a;
4933
4942
  let s = [];
@@ -4941,7 +4950,7 @@ function Cd({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
4941
4950
  let fa = he(null);
4942
4951
  function Xo({ children: e, node: t }) {
4943
4952
  let [r, n] = Q(null), o = da(t ?? r);
4944
- return C.createElement(fa.Provider, { value: o }, e, o === null && C.createElement(hn, { features: ur.Hidden, ref: (i) => {
4953
+ return F.createElement(fa.Provider, { value: o }, e, o === null && F.createElement(hn, { features: ur.Hidden, ref: (i) => {
4945
4954
  var a, s;
4946
4955
  if (i) {
4947
4956
  for (let l of (s = (a = gr(i)) == null ? void 0 : a.querySelectorAll("html > *, body > *")) != null ? s : []) if (l !== document.body && l !== document.head && l instanceof HTMLElement && l != null && l.contains(i)) {
@@ -4962,7 +4971,7 @@ function jn() {
4962
4971
  }), []), e;
4963
4972
  }
4964
4973
  var Tt = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Tt || {});
4965
- function Fd() {
4974
+ function Cd() {
4966
4975
  let e = U(0);
4967
4976
  return oa(!0, "keydown", (t) => {
4968
4977
  t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
@@ -4978,19 +4987,19 @@ function pa(e) {
4978
4987
  let $d = "div";
4979
4988
  var Ge = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(Ge || {});
4980
4989
  function _d(e, t) {
4981
- let r = U(null), n = Re(r, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: s = 15, ...l } = e;
4990
+ let r = U(null), n = Pe(r, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: s = 15, ...l } = e;
4982
4991
  Ut() || (s = 0);
4983
4992
  let f = Bt(r);
4984
4993
  Ld(s, { ownerDocument: f });
4985
4994
  let u = Md(s, { ownerDocument: f, container: r, initialFocus: o, initialFocusFallback: i });
4986
4995
  kd(s, { ownerDocument: f, container: r, containers: a, previousActiveElement: u });
4987
- let y = Fd(), h = q((b) => {
4996
+ let y = Cd(), h = q((b) => {
4988
4997
  let E = r.current;
4989
4998
  E && ((S) => S())(() => {
4990
4999
  je(y.current, { [Tt.Forwards]: () => {
4991
- _t(E, Fe.First, { skipElements: [b.relatedTarget, i] });
5000
+ _t(E, Ce.First, { skipElements: [b.relatedTarget, i] });
4992
5001
  }, [Tt.Backwards]: () => {
4993
- _t(E, Fe.Last, { skipElements: [b.relatedTarget, i] });
5002
+ _t(E, Ce.Last, { skipElements: [b.relatedTarget, i] });
4994
5003
  } });
4995
5004
  });
4996
5005
  }), v = vt(!!(s & 2), "focus-trap#tab-lock"), c = Ln(), p = U(!1), m = { ref: n, onKeyDown(b) {
@@ -5002,9 +5011,9 @@ function _d(e, t) {
5002
5011
  let E = pa(a);
5003
5012
  r.current instanceof HTMLElement && E.add(r.current);
5004
5013
  let S = b.relatedTarget;
5005
- S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (ma(E, S) || (p.current ? _t(r.current, je(y.current, { [Tt.Forwards]: () => Fe.Next, [Tt.Backwards]: () => Fe.Previous }) | Fe.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && $e(b.target)));
5014
+ S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (ma(E, S) || (p.current ? _t(r.current, je(y.current, { [Tt.Forwards]: () => Ce.Next, [Tt.Backwards]: () => Ce.Previous }) | Ce.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && $e(b.target)));
5006
5015
  } };
5007
- return C.createElement(C.Fragment, null, v && C.createElement(hn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: ur.Focusable }), ve({ ourProps: m, theirProps: l, defaultTag: $d, name: "FocusTrap" }), v && C.createElement(hn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: ur.Focusable }));
5016
+ return F.createElement(F.Fragment, null, v && F.createElement(hn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: ur.Focusable }), ve({ ourProps: m, theirProps: l, defaultTag: $d, name: "FocusTrap" }), v && F.createElement(hn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: ur.Focusable }));
5008
5017
  }
5009
5018
  let Nd = de(_d), Dd = Object.assign(Nd, { features: Ge });
5010
5019
  function Id(e = !0) {
@@ -5050,8 +5059,8 @@ function Md(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFa
5050
5059
  if (n != null && n.current) $e(n.current);
5051
5060
  else {
5052
5061
  if (e & 16) {
5053
- if (_t(l, Fe.First | Fe.AutoFocus) !== gn.Error) return;
5054
- } else if (_t(l, Fe.First) !== gn.Error) return;
5062
+ if (_t(l, Ce.First | Ce.AutoFocus) !== gn.Error) return;
5063
+ } else if (_t(l, Ce.First) !== gn.Error) return;
5055
5064
  if (o != null && o.current && ($e(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
5056
5065
  console.warn("There are no focusable elements inside the <FocusTrap />");
5057
5066
  }
@@ -5077,7 +5086,7 @@ function ma(e, t) {
5077
5086
  }
5078
5087
  function ya(e) {
5079
5088
  var t;
5080
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : va) !== we || C.Children.count(e.children) === 1;
5089
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : va) !== we || F.Children.count(e.children) === 1;
5081
5090
  }
5082
5091
  let Sr = he(null);
5083
5092
  Sr.displayName = "TransitionContext";
@@ -5128,7 +5137,7 @@ function ha(e, t) {
5128
5137
  let va = we, ga = lr.RenderStrategy;
5129
5138
  function Wd(e, t) {
5130
5139
  var r, n;
5131
- let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: f, enterFrom: u, enterTo: y, entered: h, leave: v, leaveFrom: c, leaveTo: p, ...m } = e, [b, E] = Q(null), S = U(null), x = ya(e), A = Re(...x ? [S, t, E] : t === null ? [] : [t]), T = (r = m.unmount) == null || r ? ke.Unmount : ke.Hidden, { show: $, appear: j, initial: H } = Bd(), [L, Y] = Q($ ? "visible" : "hidden"), Z = Ud(), { register: R, unregister: M } = Z;
5140
+ let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: f, enterFrom: u, enterTo: y, entered: h, leave: v, leaveFrom: c, leaveTo: p, ...m } = e, [b, E] = Q(null), S = U(null), x = ya(e), A = Pe(...x ? [S, t, E] : t === null ? [] : [t]), T = (r = m.unmount) == null || r ? ke.Unmount : ke.Hidden, { show: $, appear: j, initial: H } = Bd(), [L, Y] = Q($ ? "visible" : "hidden"), Z = Ud(), { register: R, unregister: M } = Z;
5132
5141
  se(() => R(S), [R, S]), se(() => {
5133
5142
  if (T === ke.Hidden && S.current) {
5134
5143
  if ($ && L !== "visible") {
@@ -5160,10 +5169,10 @@ function Wd(e, t) {
5160
5169
  x && o || (W($), _e($));
5161
5170
  }, [$, x, o]);
5162
5171
  let Wt = !(!o || !x || !K || pe), [, te] = cd(Wt, b, $, { start: W, end: _e }), Tr = Ve({ ref: A, className: ((n = yn(m.className, ge && f, ge && u, te.enter && f, te.enter && te.closed && u, te.enter && !te.closed && y, te.leave && v, te.leave && !te.closed && c, te.leave && te.closed && p, !te.transition && $ && h)) == null ? void 0 : n.trim()) || void 0, ...ud(te) }), We = 0;
5163
- return L === "visible" && (We |= be.Open), L === "hidden" && (We |= be.Closed), te.enter && (We |= be.Opening), te.leave && (We |= be.Closing), C.createElement(xr.Provider, { value: re }, C.createElement(md, { value: We }, ve({ ourProps: Tr, theirProps: m, defaultTag: va, features: ga, visible: L === "visible", name: "Transition.Child" })));
5172
+ return L === "visible" && (We |= be.Open), L === "hidden" && (We |= be.Closed), te.enter && (We |= be.Opening), te.leave && (We |= be.Closing), F.createElement(xr.Provider, { value: re }, F.createElement(md, { value: We }, ve({ ourProps: Tr, theirProps: m, defaultTag: va, features: ga, visible: L === "visible", name: "Transition.Child" })));
5164
5173
  }
5165
5174
  function Hd(e, t) {
5166
- let { show: r, appear: n = !1, unmount: o = !0, ...i } = e, a = U(null), s = ya(e), l = Re(...s ? [a, t] : t === null ? [] : [t]);
5175
+ let { show: r, appear: n = !1, unmount: o = !0, ...i } = e, a = U(null), s = ya(e), l = Pe(...s ? [a, t] : t === null ? [] : [t]);
5167
5176
  Ut();
5168
5177
  let f = Er();
5169
5178
  if (r === void 0 && f !== null && (r = (f & be.Open) === be.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
@@ -5184,11 +5193,11 @@ function Hd(e, t) {
5184
5193
  var x;
5185
5194
  v && c(!1), (x = e.beforeLeave) == null || x.call(e);
5186
5195
  });
5187
- return C.createElement(xr.Provider, { value: h }, C.createElement(Sr.Provider, { value: m }, ve({ ourProps: { ...b, as: we, children: C.createElement(ba, { ref: l, ...b, ...i, beforeEnter: E, beforeLeave: S }) }, theirProps: {}, defaultTag: we, features: ga, visible: u === "visible", name: "Transition" })));
5196
+ return F.createElement(xr.Provider, { value: h }, F.createElement(Sr.Provider, { value: m }, ve({ ourProps: { ...b, as: we, children: F.createElement(ba, { ref: l, ...b, ...i, beforeEnter: E, beforeLeave: S }) }, theirProps: {}, defaultTag: we, features: ga, visible: u === "visible", name: "Transition" })));
5188
5197
  }
5189
5198
  function qd(e, t) {
5190
5199
  let r = fe(Sr) !== null, n = Er() !== null;
5191
- return C.createElement(C.Fragment, null, !r && n ? C.createElement(wn, { ref: t, ...e }) : C.createElement(ba, { ref: t, ...e }));
5200
+ return F.createElement(F.Fragment, null, !r && n ? F.createElement(wn, { ref: t, ...e }) : F.createElement(ba, { ref: t, ...e }));
5192
5201
  }
5193
5202
  let wn = de(Hd), ba = de(Wd), gt = de(qd), wa = Object.assign(wn, { Child: gt, Root: wn });
5194
5203
  var Vd = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Vd || {}), zd = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(zd || {});
@@ -5214,10 +5223,10 @@ let Qo = de(function(e, t) {
5214
5223
  }();
5215
5224
  let v = Er();
5216
5225
  o === void 0 && v !== null && (o = (v & be.Open) === be.Open);
5217
- let c = U(null), p = Re(c, t), m = Bt(c), b = o ? 0 : 1, [E, S] = es(Kd, { titleId: null, descriptionId: null, panelRef: ts() }), x = q(() => i(!1)), A = q((W) => S({ type: 0, id: W })), T = Ut() ? b === 0 : !1, [$, j] = Od(), H = { get current() {
5226
+ let c = U(null), p = Pe(c, t), m = Bt(c), b = o ? 0 : 1, [E, S] = es(Kd, { titleId: null, descriptionId: null, panelRef: ts() }), x = q(() => i(!1)), A = q((W) => S({ type: 0, id: W })), T = Ut() ? b === 0 : !1, [$, j] = Od(), H = { get current() {
5218
5227
  var W;
5219
5228
  return (W = E.panelRef.current) != null ? W : c.current;
5220
- } }, L = da(), { resolveContainers: Y } = Cd({ mainTreeNode: L, portals: $, defaultContainers: [H] }), Z = v !== null ? (v & be.Closing) === be.Closing : !1;
5229
+ } }, L = da(), { resolveContainers: Y } = Fd({ mainTreeNode: L, portals: $, defaultContainers: [H] }), Z = v !== null ? (v & be.Closing) === be.Closing : !1;
5221
5230
  Uf(f || Z ? !1 : T, { allowed: q(() => {
5222
5231
  var W, _e;
5223
5232
  return [(_e = (W = c.current) == null ? void 0 : W.closest("[data-headlessui-portal]")) != null ? _e : null];
@@ -5230,7 +5239,7 @@ let Qo = de(function(e, t) {
5230
5239
  W.preventDefault(), W.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), x();
5231
5240
  }), ad(f || Z ? !1 : T, m, Y), Wf(T, c, x);
5232
5241
  let [R, M] = _f(), K = ne(() => [{ dialogState: b, close: x, setTitleId: A, unmount: u }, E], [b, E, x, A, u]), pe = ne(() => ({ open: b === 0 }), [b]), ge = { ref: p, id: n, role: s, tabIndex: -1, "aria-modal": f ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": E.titleId, "aria-describedby": R, unmount: u }, Se = !Pd(), re = Ge.None;
5233
- return T && !f && (re |= Ge.RestoreFocus, re |= Ge.TabLock, l && (re |= Ge.AutoFocus), Se && (re |= Ge.InitialFocus)), C.createElement(yd, null, C.createElement(Yo, { force: !0 }, C.createElement(Td, null, C.createElement(Bn.Provider, { value: K }, C.createElement(ca, { target: c }, C.createElement(Yo, { force: !1 }, C.createElement(M, { slot: pe }, C.createElement(j, null, C.createElement(Dd, { initialFocus: a, initialFocusFallback: c, containers: Y, features: re }, C.createElement(kf, { value: x }, ve({ ourProps: ge, theirProps: y, slot: pe, defaultTag: Jd, features: Yd, visible: b === 0, name: "Dialog" })))))))))));
5242
+ return T && !f && (re |= Ge.RestoreFocus, re |= Ge.TabLock, l && (re |= Ge.AutoFocus), Se && (re |= Ge.InitialFocus)), F.createElement(yd, null, F.createElement(Yo, { force: !0 }, F.createElement(Td, null, F.createElement(Bn.Provider, { value: K }, F.createElement(ca, { target: c }, F.createElement(Yo, { force: !1 }, F.createElement(M, { slot: pe }, F.createElement(j, null, F.createElement(Dd, { initialFocus: a, initialFocusFallback: c, containers: Y, features: re }, F.createElement(kf, { value: x }, ve({ ourProps: ge, theirProps: y, slot: pe, defaultTag: Jd, features: Yd, visible: b === 0, name: "Dialog" })))))))))));
5234
5243
  }), Jd = "div", Yd = lr.RenderStrategy | lr.Static;
5235
5244
  function Xd(e, t) {
5236
5245
  let { transition: r = !1, open: n, ...o } = e, i = Er(), a = e.hasOwnProperty("open") || i !== null, s = e.hasOwnProperty("onClose");
@@ -5239,23 +5248,23 @@ function Xd(e, t) {
5239
5248
  if (!s) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
5240
5249
  if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
5241
5250
  if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
5242
- return (n !== void 0 || r) && !o.static ? C.createElement(Xo, null, C.createElement(wa, { show: n, transition: r, unmount: o.unmount }, C.createElement(Qo, { ref: t, ...o }))) : C.createElement(Xo, null, C.createElement(Qo, { ref: t, open: n, ...o }));
5251
+ return (n !== void 0 || r) && !o.static ? F.createElement(Xo, null, F.createElement(wa, { show: n, transition: r, unmount: o.unmount }, F.createElement(Qo, { ref: t, ...o }))) : F.createElement(Xo, null, F.createElement(Qo, { ref: t, open: n, ...o }));
5243
5252
  }
5244
5253
  let Qd = "div";
5245
5254
  function Zd(e, t) {
5246
- let r = It(), { id: n = `headlessui-dialog-panel-${r}`, transition: o = !1, ...i } = e, [{ dialogState: a, unmount: s }, l] = Ar("Dialog.Panel"), f = Re(t, l.panelRef), u = ne(() => ({ open: a === 0 }), [a]), y = q((v) => {
5255
+ let r = It(), { id: n = `headlessui-dialog-panel-${r}`, transition: o = !1, ...i } = e, [{ dialogState: a, unmount: s }, l] = Ar("Dialog.Panel"), f = Pe(t, l.panelRef), u = ne(() => ({ open: a === 0 }), [a]), y = q((v) => {
5247
5256
  v.stopPropagation();
5248
5257
  }), h = { ref: f, id: n, onClick: y };
5249
- return C.createElement(o ? gt : we, { ...o ? { unmount: s } : {} }, ve({ ourProps: h, theirProps: i, slot: u, defaultTag: Qd, name: "Dialog.Panel" }));
5258
+ return F.createElement(o ? gt : we, { ...o ? { unmount: s } : {} }, ve({ ourProps: h, theirProps: i, slot: u, defaultTag: Qd, name: "Dialog.Panel" }));
5250
5259
  }
5251
5260
  let ep = "div";
5252
5261
  function tp(e, t) {
5253
5262
  let { transition: r = !1, ...n } = e, [{ dialogState: o, unmount: i }] = Ar("Dialog.Backdrop"), a = ne(() => ({ open: o === 0 }), [o]), s = { ref: t, "aria-hidden": !0 };
5254
- return C.createElement(r ? gt : we, { ...r ? { unmount: i } : {} }, ve({ ourProps: s, theirProps: n, slot: a, defaultTag: ep, name: "Dialog.Backdrop" }));
5263
+ return F.createElement(r ? gt : we, { ...r ? { unmount: i } : {} }, ve({ ourProps: s, theirProps: n, slot: a, defaultTag: ep, name: "Dialog.Backdrop" }));
5255
5264
  }
5256
5265
  let rp = "h2";
5257
5266
  function np(e, t) {
5258
- let r = It(), { id: n = `headlessui-dialog-title-${r}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ar("Dialog.Title"), s = Re(t);
5267
+ let r = It(), { id: n = `headlessui-dialog-title-${r}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ar("Dialog.Title"), s = Pe(t);
5259
5268
  oe(() => (a(n), () => a(null)), [n, a]);
5260
5269
  let l = ne(() => ({ open: i === 0 }), [i]);
5261
5270
  return ve({ ourProps: { ref: s, id: n }, theirProps: o, slot: l, defaultTag: rp, name: "Dialog.Title" });
@@ -5476,14 +5485,14 @@ const wp = ({
5476
5485
  oe(() => {
5477
5486
  E && (E.onTopOfStack && j ? y == null || y() : !E.onTopOfStack && !j && (l == null || l()), H(!E.onTopOfStack));
5478
5487
  }, [x]);
5479
- const L = Ce(
5488
+ const L = Fe(
5480
5489
  (R) => {
5481
5490
  o && R === 0 && (window.location.hash = ""), f == null || f();
5482
5491
  },
5483
5492
  [f, o]
5484
- ), Y = Ce(() => {
5493
+ ), Y = Fe(() => {
5485
5494
  S(null), s == null || s();
5486
- }, [s]), Z = Ce(
5495
+ }, [s]), Z = Fe(
5487
5496
  (R) => {
5488
5497
  R == null || R.preventDefault(), !m && (e.startsWith("#") || (b(!0), h == null || h()), A(
5489
5498
  e,