@billgangcom/theme-lib 1.124.4 → 1.124.8

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.
Files changed (45) hide show
  1. package/dist/{builder-C0CY2NqW.cjs → builder-B_VHcbLD.cjs} +13 -13
  2. package/dist/{builder-NZcfw_uK.js → builder-Da7TEF-Q.js} +919 -925
  3. package/dist/{builder-components-t8vV2Uyv.js → builder-components-Cp8Zqx_S.js} +256 -245
  4. package/dist/{builder-components-Df75FZjk.cjs → builder-components-iEhF2Pbf.cjs} +2 -2
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +23 -23
  7. package/dist/{charge-Dlt2N2gE.js → charge-JIFfQW47.js} +3107 -3084
  8. package/dist/{charge-1NVtSa19.cjs → charge-PbrSlzq2.cjs} +33 -33
  9. package/dist/{checkout-B9xrJpzo.cjs → checkout-BUYeNvtd.cjs} +1 -1
  10. package/dist/{checkout-DQQO7oVk.js → checkout-DqtDf6g1.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-BKO1t2iG.cjs → index-AnMmiW23.cjs} +1 -1
  14. package/dist/{index-D8IUUs19.cjs → index-BJCYi1GY.cjs} +1 -1
  15. package/dist/{index-BlN9RDzk.js → index-BMA4a_O3.js} +5 -5
  16. package/dist/{index-D5e4nxfb.js → index-BTDlV9jN.js} +5 -5
  17. package/dist/{index-BPf7tR5l.cjs → index-BkSjxDPp.cjs} +1 -1
  18. package/dist/{index-CVatcZ-w.js → index-ChL-8xQO.js} +1 -1
  19. package/dist/{index-DeVXhlDm.js → index-DFnipeuV.js} +5 -5
  20. package/dist/{index-Df1M0AqD.cjs → index-DiAipax-.cjs} +1 -1
  21. package/dist/{index-uoTQcf9e.cjs → index-DlAAHfEI.cjs} +1 -1
  22. package/dist/{index-FcGMiqa9.js → index-DqhgfGZj.js} +2 -2
  23. package/dist/{index-DKixA0l5.cjs → index-ZHeSdR1d.cjs} +1 -1
  24. package/dist/{index-C-R7NUm4.js → index-wBb3CwJ1.js} +5 -5
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-QenSr8PO.js → order-7agEr47O.js} +5 -5
  28. package/dist/{order-CtTYCM0e.cjs → order-dz_UgvGB.cjs} +1 -1
  29. package/dist/src/assets/storefront-icons/index.d.ts +3 -0
  30. package/dist/src/builder/api/fetchData.d.ts +2 -4
  31. package/dist/src/storefront/components/PaymentMethod/model.d.ts +2 -1
  32. package/dist/src/storefront/models/payment.d.ts +2 -1
  33. package/dist/{subscription-i9Trr3Dj.cjs → subscription-BNkw4ae-.cjs} +1 -1
  34. package/dist/{subscription-tZMq2hbO.js → subscription-JT7LtnI_.js} +5 -5
  35. package/dist/{ticket-B7_yQkrG.js → ticket-CUj-mxgQ.js} +5 -5
  36. package/dist/{ticket-D5hDuE4u.cjs → ticket-nM6Hb7qw.cjs} +1 -1
  37. package/dist/{top-up-Cf5uGOet.js → top-up-CqoCBzK9.js} +5 -5
  38. package/dist/{top-up-D5nnzq3p.cjs → top-up-vR4oqVTR.cjs} +1 -1
  39. package/dist/{ui-components-DYyu32oT.js → ui-components-BpioK3SF.js} +4 -4
  40. package/dist/{ui-components-DTLctw1s.cjs → ui-components-DxzPkQcO.cjs} +1 -1
  41. package/dist/ui.cjs.js +1 -1
  42. package/dist/ui.es.js +1 -1
  43. package/dist/{validation-Bco9jXpi.js → validation-BRmHHm4X.js} +5 -5
  44. package/dist/{validation-BDFP1fbJ.cjs → validation-Cfgi2DqP.cjs} +1 -1
  45. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import * as y from "react";
2
- import _e, { useRef as jr, useEffect as Ta } from "react";
2
+ import Te, { useRef as $r, useEffect as Ta } from "react";
3
3
  import * as Pa from "react-dom";
4
- import { jsx as M, jsxs as Le, Fragment as Oa } from "react/jsx-runtime";
5
- import { I as Wt, B as $r, a as Zn, C as Ma, b as Aa, L as Da } from "./ui-components-DYyu32oT.js";
6
- import "./charge-Dlt2N2gE.js";
7
- import { N as Fa, H as Ia, S as Ba, P as Ha, M as Ua } from "./builder-components-t8vV2Uyv.js";
8
- import "./ticket-B7_yQkrG.js";
4
+ import { jsx as M, jsxs as Ee, Fragment as Oa } from "react/jsx-runtime";
5
+ import { I as Wt, B as zr, a as Zn, C as Ma, b as Aa, L as Da } from "./ui-components-BpioK3SF.js";
6
+ import "./charge-JIFfQW47.js";
7
+ import { N as Fa, H as Ia, S as Ba, P as Ha, M as Ua } from "./builder-components-Cp8Zqx_S.js";
8
+ import "./ticket-CUj-mxgQ.js";
9
9
  /**
10
10
  * @remix-run/router v1.23.0
11
11
  *
@@ -30,7 +30,7 @@ var ve;
30
30
  (function(e) {
31
31
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
32
32
  })(ve || (ve = {}));
33
- const zr = "popstate";
33
+ const Jr = "popstate";
34
34
  function Va(e) {
35
35
  e === void 0 && (e = {});
36
36
  function t(r, o) {
@@ -52,7 +52,7 @@ function Va(e) {
52
52
  );
53
53
  }
54
54
  function n(r, o) {
55
- return typeof o == "string" ? o : ct(o);
55
+ return typeof o == "string" ? o : ut(o);
56
56
  }
57
57
  return $a(t, n, null, e);
58
58
  }
@@ -72,7 +72,7 @@ function we(e, t) {
72
72
  function ja() {
73
73
  return Math.random().toString(36).substr(2, 8);
74
74
  }
75
- function Jr(e, t) {
75
+ function Wr(e, t) {
76
76
  return {
77
77
  usr: e.state,
78
78
  key: e.key,
@@ -84,7 +84,7 @@ function qt(e, t, n, r) {
84
84
  pathname: typeof e == "string" ? e : e.pathname,
85
85
  search: "",
86
86
  hash: ""
87
- }, typeof t == "string" ? dt(t) : t, {
87
+ }, typeof t == "string" ? ft(t) : t, {
88
88
  state: n,
89
89
  // TODO: This could be cleaned up. push/replace should probably just take
90
90
  // full Locations now and avoid the need to run through this flow at all
@@ -93,7 +93,7 @@ function qt(e, t, n, r) {
93
93
  key: t && t.key || r || ja()
94
94
  });
95
95
  }
96
- function ct(e) {
96
+ function ut(e) {
97
97
  let {
98
98
  pathname: t = "/",
99
99
  search: n = "",
@@ -101,7 +101,7 @@ function ct(e) {
101
101
  } = e;
102
102
  return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), r && r !== "#" && (t += r.charAt(0) === "#" ? r : "#" + r), t;
103
103
  }
104
- function dt(e) {
104
+ function ft(e) {
105
105
  let t = {};
106
106
  if (e) {
107
107
  let n = e.indexOf("#");
@@ -138,7 +138,7 @@ function $a(e, t, n, r) {
138
138
  s = ve.Push;
139
139
  let S = qt(p.location, v, R);
140
140
  c = u() + 1;
141
- let x = Jr(S, c), _ = p.createHref(S);
141
+ let x = Wr(S, c), _ = p.createHref(S);
142
142
  try {
143
143
  i.pushState(x, "", _);
144
144
  } catch (N) {
@@ -156,7 +156,7 @@ function $a(e, t, n, r) {
156
156
  s = ve.Replace;
157
157
  let S = qt(p.location, v, R);
158
158
  c = u();
159
- let x = Jr(S, c), _ = p.createHref(S);
159
+ let x = Wr(S, c), _ = p.createHref(S);
160
160
  i.replaceState(x, "", _), a && l && l({
161
161
  action: s,
162
162
  location: p.location,
@@ -164,7 +164,7 @@ function $a(e, t, n, r) {
164
164
  });
165
165
  }
166
166
  function m(v) {
167
- let R = o.location.origin !== "null" ? o.location.origin : o.location.href, S = typeof v == "string" ? v : ct(v);
167
+ let R = o.location.origin !== "null" ? o.location.origin : o.location.href, S = typeof v == "string" ? v : ut(v);
168
168
  return S = S.replace(/ $/, "%20"), I(R, "No window.location.(origin|href) available to create URL for href: " + S), new URL(S, R);
169
169
  }
170
170
  let p = {
@@ -177,8 +177,8 @@ function $a(e, t, n, r) {
177
177
  listen(v) {
178
178
  if (l)
179
179
  throw new Error("A history only accepts one active listener");
180
- return o.addEventListener(zr, d), l = v, () => {
181
- o.removeEventListener(zr, d), l = null;
180
+ return o.addEventListener(Jr, d), l = v, () => {
181
+ o.removeEventListener(Jr, d), l = null;
182
182
  };
183
183
  },
184
184
  createHref(v) {
@@ -226,14 +226,14 @@ function Cn(e, t, n, r) {
226
226
  }
227
227
  });
228
228
  }
229
- function mt(e, t, n) {
229
+ function gt(e, t, n) {
230
230
  return n === void 0 && (n = "/"), gn(e, t, n, !1);
231
231
  }
232
232
  function gn(e, t, n, r) {
233
- let o = typeof t == "string" ? dt(t) : t, a = Je(o.pathname || "/", n);
233
+ let o = typeof t == "string" ? ft(t) : t, a = We(o.pathname || "/", n);
234
234
  if (a == null)
235
235
  return null;
236
- let i = Oo(e);
236
+ let i = Mo(e);
237
237
  qa(i);
238
238
  let s = null;
239
239
  for (let l = 0; s == null && l < i.length; ++l) {
@@ -256,7 +256,7 @@ function Wa(e, t) {
256
256
  handle: n.handle
257
257
  };
258
258
  }
259
- function Oo(e, t, n, r) {
259
+ function Mo(e, t, n, r) {
260
260
  t === void 0 && (t = []), n === void 0 && (n = []), r === void 0 && (r = "");
261
261
  let o = (a, i, s) => {
262
262
  let l = {
@@ -266,13 +266,13 @@ function Oo(e, t, n, r) {
266
266
  route: a
267
267
  };
268
268
  l.relativePath.startsWith("/") && (I(l.relativePath.startsWith(r), 'Absolute route path "' + l.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), l.relativePath = l.relativePath.slice(r.length));
269
- let c = Xe([r, l.relativePath]), u = n.concat(l);
269
+ let c = Qe([r, l.relativePath]), u = n.concat(l);
270
270
  a.children && a.children.length > 0 && (I(
271
271
  // Our types know better, but runtime JS may not!
272
272
  // @ts-expect-error
273
273
  a.index !== !0,
274
274
  "Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
275
- ), Oo(a.children, t, u, c)), !(a.path == null && !a.index) && t.push({
275
+ ), Mo(a.children, t, u, c)), !(a.path == null && !a.index) && t.push({
276
276
  path: c,
277
277
  score: ei(c, a.index),
278
278
  routesMeta: u
@@ -283,26 +283,26 @@ function Oo(e, t, n, r) {
283
283
  if (a.path === "" || !((s = a.path) != null && s.includes("?")))
284
284
  o(a, i);
285
285
  else
286
- for (let l of Mo(a.path))
286
+ for (let l of Ao(a.path))
287
287
  o(a, i, l);
288
288
  }), t;
289
289
  }
290
- function Mo(e) {
290
+ function Ao(e) {
291
291
  let t = e.split("/");
292
292
  if (t.length === 0) return [];
293
293
  let [n, ...r] = t, o = n.endsWith("?"), a = n.replace(/\?$/, "");
294
294
  if (r.length === 0)
295
295
  return o ? [a, ""] : [a];
296
- let i = Mo(r.join("/")), s = [];
296
+ let i = Ao(r.join("/")), s = [];
297
297
  return s.push(...i.map((l) => l === "" ? a : [a, l].join("/"))), o && s.push(...i), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
298
298
  }
299
299
  function qa(e) {
300
300
  e.sort((t, n) => t.score !== n.score ? n.score - t.score : ti(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
301
301
  }
302
- const Za = /^:[\w-]+$/, Ka = 3, Ga = 2, Ya = 1, Xa = 10, Qa = -2, Wr = (e) => e === "*";
302
+ const Za = /^:[\w-]+$/, Ka = 3, Ga = 2, Ya = 1, Xa = 10, Qa = -2, qr = (e) => e === "*";
303
303
  function ei(e, t) {
304
304
  let n = e.split("/"), r = n.length;
305
- return n.some(Wr) && (r += Qa), t && (r += Ga), n.filter((o) => !Wr(o)).reduce((o, a) => o + (Za.test(a) ? Ka : a === "" ? Ya : Xa), r);
305
+ return n.some(qr) && (r += Qa), t && (r += Ga), n.filter((o) => !qr(o)).reduce((o, a) => o + (Za.test(a) ? Ka : a === "" ? Ya : Xa), r);
306
306
  }
307
307
  function ti(e, t) {
308
308
  return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
@@ -337,10 +337,10 @@ function ni(e, t, n) {
337
337
  Object.assign(o, d.params), i.push({
338
338
  // TODO: Can this as be avoided?
339
339
  params: o,
340
- pathname: Xe([a, d.pathname]),
341
- pathnameBase: si(Xe([a, d.pathnameBase])),
340
+ pathname: Qe([a, d.pathname]),
341
+ pathnameBase: si(Qe([a, d.pathnameBase])),
342
342
  route: h
343
- }), d.pathnameBase !== "/" && (a = Xe([a, d.pathnameBase]));
343
+ }), d.pathnameBase !== "/" && (a = Qe([a, d.pathnameBase]));
344
344
  }
345
345
  return i;
346
346
  }
@@ -388,7 +388,7 @@ function oi(e) {
388
388
  return we(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
389
389
  }
390
390
  }
391
- function Je(e, t) {
391
+ function We(e, t) {
392
392
  if (t === "/") return e;
393
393
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
394
394
  return null;
@@ -401,7 +401,7 @@ function ai(e, t) {
401
401
  pathname: n,
402
402
  search: r = "",
403
403
  hash: o = ""
404
- } = typeof e == "string" ? dt(e) : e;
404
+ } = typeof e == "string" ? ft(e) : e;
405
405
  return {
406
406
  pathname: n ? n.startsWith("/") ? n : ii(n, t) : t,
407
407
  search: li(r),
@@ -417,17 +417,17 @@ function ii(e, t) {
417
417
  function Kn(e, t, n, r) {
418
418
  return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
419
419
  }
420
- function Ao(e) {
420
+ function Do(e) {
421
421
  return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
422
422
  }
423
423
  function Tn(e, t) {
424
- let n = Ao(e);
424
+ let n = Do(e);
425
425
  return t ? n.map((r, o) => o === n.length - 1 ? r.pathname : r.pathnameBase) : n.map((r) => r.pathnameBase);
426
426
  }
427
427
  function Pn(e, t, n, r) {
428
428
  r === void 0 && (r = !1);
429
429
  let o;
430
- typeof e == "string" ? o = dt(e) : (o = fe({}, e), I(!o.pathname || !o.pathname.includes("?"), Kn("?", "pathname", "search", o)), I(!o.pathname || !o.pathname.includes("#"), Kn("#", "pathname", "hash", o)), I(!o.search || !o.search.includes("#"), Kn("#", "search", "hash", o)));
430
+ typeof e == "string" ? o = ft(e) : (o = fe({}, e), I(!o.pathname || !o.pathname.includes("?"), Kn("?", "pathname", "search", o)), I(!o.pathname || !o.pathname.includes("#"), Kn("#", "pathname", "hash", o)), I(!o.search || !o.search.includes("#"), Kn("#", "search", "hash", o)));
431
431
  let a = e === "" || o.pathname === "", i = a ? "/" : o.pathname, s;
432
432
  if (i == null)
433
433
  s = n;
@@ -444,7 +444,7 @@ function Pn(e, t, n, r) {
444
444
  let l = ai(o, s), c = i && i !== "/" && i.endsWith("/"), u = (a || i === ".") && n.endsWith("/");
445
445
  return !l.pathname.endsWith("/") && (c || u) && (l.pathname += "/"), l;
446
446
  }
447
- const Xe = (e) => e.join("/").replace(/\/\/+/g, "/"), si = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ci = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
447
+ const Qe = (e) => e.join("/").replace(/\/\/+/g, "/"), si = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ci = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
448
448
  class Ln {
449
449
  constructor(t, n, r, o) {
450
450
  o === void 0 && (o = !1), this.status = t, this.statusText = n || "", this.internal = o, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
@@ -453,7 +453,7 @@ class Ln {
453
453
  function Zt(e) {
454
454
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
455
455
  }
456
- const Do = ["post", "put", "patch", "delete"], ui = new Set(Do), di = ["get", ...Do], fi = new Set(di), hi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), pi = /* @__PURE__ */ new Set([307, 308]), Gn = {
456
+ const Fo = ["post", "put", "patch", "delete"], ui = new Set(Fo), di = ["get", ...Fo], fi = new Set(di), hi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), pi = /* @__PURE__ */ new Set([307, 308]), Gn = {
457
457
  state: "idle",
458
458
  location: void 0,
459
459
  formMethod: void 0,
@@ -478,7 +478,7 @@ const Do = ["post", "put", "patch", "delete"], ui = new Set(Do), di = ["get", ..
478
478
  location: void 0
479
479
  }, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, gi = (e) => ({
480
480
  hasErrorBoundary: !!e.hasErrorBoundary
481
- }), Fo = "remix-router-transitions";
481
+ }), Io = "remix-router-transitions";
482
482
  function yi(e) {
483
483
  const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
484
484
  I(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
@@ -499,14 +499,14 @@ function yi(e) {
499
499
  v7_prependBasename: !1,
500
500
  v7_relativeSplatPath: !1,
501
501
  v7_skipActionErrorRevalidation: !1
502
- }, e.future), h = null, w = /* @__PURE__ */ new Set(), m = null, p = null, v = null, R = e.hydrationData != null, S = mt(i, e.history.location, l), x = !1, _ = null;
502
+ }, e.future), h = null, w = /* @__PURE__ */ new Set(), m = null, p = null, v = null, R = e.hydrationData != null, S = gt(i, e.history.location, l), x = !1, _ = null;
503
503
  if (S == null && !u) {
504
- let f = Ae(404, {
504
+ let f = Pe(404, {
505
505
  pathname: e.history.location.pathname
506
506
  }), {
507
507
  matches: g,
508
508
  route: C
509
- } = ro(i);
509
+ } = oo(i);
510
510
  S = g, _ = {
511
511
  [C.id]: f
512
512
  };
@@ -546,7 +546,7 @@ function yi(e) {
546
546
  errors: e.hydrationData && e.hydrationData.errors || _,
547
547
  fetchers: /* @__PURE__ */ new Map(),
548
548
  blockers: /* @__PURE__ */ new Map()
549
- }, T = ve.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Te = [], qe = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), Re = 0, Se = -1, be = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Map(), ft;
549
+ }, T = ve.Pop, K = !1, B, ae = !1, ie = /* @__PURE__ */ new Map(), te = null, he = !1, Le = !1, Ze = [], Ae = /* @__PURE__ */ new Set(), le = /* @__PURE__ */ new Map(), Ne = 0, be = -1, $e = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set(), Be = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Set(), Se = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Map(), De;
550
550
  function en() {
551
551
  if (h = e.history.listen((f) => {
552
552
  let {
@@ -554,19 +554,19 @@ function yi(e) {
554
554
  location: C,
555
555
  delta: L
556
556
  } = f;
557
- if (ft) {
558
- ft(), ft = void 0;
557
+ if (De) {
558
+ De(), De = void 0;
559
559
  return;
560
560
  }
561
- we(Ce.size === 0 || L != null, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
562
- let k = Br({
561
+ we(Re.size === 0 || L != null, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
562
+ let k = Hr({
563
563
  currentLocation: b.location,
564
564
  nextLocation: C,
565
565
  historyAction: g
566
566
  });
567
567
  if (k && L != null) {
568
568
  let F = new Promise((H) => {
569
- ft = H;
569
+ De = H;
570
570
  });
571
571
  e.history.go(L * -1), an(k, {
572
572
  state: "blocked",
@@ -581,70 +581,70 @@ function yi(e) {
581
581
  },
582
582
  reset() {
583
583
  let H = new Map(b.blockers);
584
- H.set(k, Ft), Ee({
584
+ H.set(k, Ft), Ce({
585
585
  blockers: H
586
586
  });
587
587
  }
588
588
  });
589
589
  return;
590
590
  }
591
- return Ze(g, C);
591
+ return Ke(g, C);
592
592
  }), n) {
593
- Di(t, ee);
594
- let f = () => Fi(t, ee);
593
+ Di(t, ie);
594
+ let f = () => Fi(t, ie);
595
595
  t.addEventListener("pagehide", f), te = () => t.removeEventListener("pagehide", f);
596
596
  }
597
- return b.initialized || Ze(ve.Pop, b.location, {
597
+ return b.initialized || Ke(ve.Pop, b.location, {
598
598
  initialHydration: !0
599
599
  }), U;
600
600
  }
601
601
  function zn() {
602
- h && h(), te && te(), w.clear(), B && B.abort(), b.fetchers.forEach((f, g) => on(g)), b.blockers.forEach((f, g) => Ir(g));
602
+ h && h(), te && te(), w.clear(), B && B.abort(), b.fetchers.forEach((f, g) => on(g)), b.blockers.forEach((f, g) => Br(g));
603
603
  }
604
604
  function tn(f) {
605
605
  return w.add(f), () => w.delete(f);
606
606
  }
607
- function Ee(f, g) {
607
+ function Ce(f, g) {
608
608
  g === void 0 && (g = {}), b = fe({}, b, f);
609
609
  let C = [], L = [];
610
610
  d.v7_fetcherPersist && b.fetchers.forEach((k, F) => {
611
- k.state === "idle" && (pe.has(F) ? L.push(F) : C.push(F));
612
- }), pe.forEach((k) => {
613
- !b.fetchers.has(k) && !ce.has(k) && L.push(k);
611
+ k.state === "idle" && (G.has(F) ? L.push(F) : C.push(F));
612
+ }), G.forEach((k) => {
613
+ !b.fetchers.has(k) && !le.has(k) && L.push(k);
614
614
  }), [...w].forEach((k) => k(b, {
615
615
  deletedFetchers: L,
616
616
  viewTransitionOpts: g.viewTransitionOpts,
617
617
  flushSync: g.flushSync === !0
618
- })), d.v7_fetcherPersist ? (C.forEach((k) => b.fetchers.delete(k)), L.forEach((k) => on(k))) : L.forEach((k) => pe.delete(k));
618
+ })), d.v7_fetcherPersist ? (C.forEach((k) => b.fetchers.delete(k)), L.forEach((k) => on(k))) : L.forEach((k) => G.delete(k));
619
619
  }
620
- function et(f, g, C) {
620
+ function tt(f, g, C) {
621
621
  var L, k;
622
622
  let {
623
623
  flushSync: F
624
- } = C === void 0 ? {} : C, H = b.actionData != null && b.navigation.formMethod != null && ze(b.navigation.formMethod) && b.navigation.state === "loading" && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0, O;
624
+ } = C === void 0 ? {} : C, H = b.actionData != null && b.navigation.formMethod != null && Je(b.navigation.formMethod) && b.navigation.state === "loading" && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0, O;
625
625
  g.actionData ? Object.keys(g.actionData).length > 0 ? O = g.actionData : O = null : H ? O = b.actionData : O = null;
626
- let A = g.loaderData ? to(b.loaderData, g.loaderData, g.matches || [], g.errors) : b.loaderData, P = b.blockers;
627
- P.size > 0 && (P = new Map(P), P.forEach((Y, xe) => P.set(xe, Ft)));
628
- let D = K === !0 || b.navigation.formMethod != null && ze(b.navigation.formMethod) && ((k = f.state) == null ? void 0 : k._isRedirect) !== !0;
626
+ let A = g.loaderData ? no(b.loaderData, g.loaderData, g.matches || [], g.errors) : b.loaderData, P = b.blockers;
627
+ P.size > 0 && (P = new Map(P), P.forEach((X, xe) => P.set(xe, Ft)));
628
+ let D = K === !0 || b.navigation.formMethod != null && Je(b.navigation.formMethod) && ((k = f.state) == null ? void 0 : k._isRedirect) !== !0;
629
629
  s && (i = s, s = void 0), he || T === ve.Pop || (T === ve.Push ? e.history.push(f, f.state) : T === ve.Replace && e.history.replace(f, f.state));
630
630
  let J;
631
631
  if (T === ve.Pop) {
632
- let Y = ee.get(b.location.pathname);
633
- Y && Y.has(f.pathname) ? J = {
632
+ let X = ie.get(b.location.pathname);
633
+ X && X.has(f.pathname) ? J = {
634
634
  currentLocation: b.location,
635
635
  nextLocation: f
636
- } : ee.has(f.pathname) && (J = {
636
+ } : ie.has(f.pathname) && (J = {
637
637
  currentLocation: f,
638
638
  nextLocation: b.location
639
639
  });
640
640
  } else if (ae) {
641
- let Y = ee.get(b.location.pathname);
642
- Y ? Y.add(f.pathname) : (Y = /* @__PURE__ */ new Set([f.pathname]), ee.set(b.location.pathname, Y)), J = {
641
+ let X = ie.get(b.location.pathname);
642
+ X ? X.add(f.pathname) : (X = /* @__PURE__ */ new Set([f.pathname]), ie.set(b.location.pathname, X)), J = {
643
643
  currentLocation: b.location,
644
644
  nextLocation: f
645
645
  };
646
646
  }
647
- Ee(fe({}, g, {
647
+ Ce(fe({}, g, {
648
648
  actionData: O,
649
649
  loaderData: A,
650
650
  historyAction: T,
@@ -652,13 +652,13 @@ function yi(e) {
652
652
  initialized: !0,
653
653
  navigation: Gn,
654
654
  revalidation: "idle",
655
- restoreScrollPosition: Ur(f, g.matches || b.matches),
655
+ restoreScrollPosition: Vr(f, g.matches || b.matches),
656
656
  preventScrollReset: D,
657
657
  blockers: P
658
658
  }), {
659
659
  viewTransitionOpts: J,
660
660
  flushSync: F === !0
661
- }), T = ve.Pop, K = !1, ae = !1, he = !1, Oe = !1, Te = [];
661
+ }), T = ve.Pop, K = !1, ae = !1, he = !1, Le = !1, Ze = [];
662
662
  }
663
663
  async function nn(f, g) {
664
664
  if (typeof f == "number") {
@@ -669,21 +669,21 @@ function yi(e) {
669
669
  path: L,
670
670
  submission: k,
671
671
  error: F
672
- } = qr(d.v7_normalizeFormMethod, !1, C, g), H = b.location, O = qt(b.location, L, g && g.state);
672
+ } = Zr(d.v7_normalizeFormMethod, !1, C, g), H = b.location, O = qt(b.location, L, g && g.state);
673
673
  O = fe({}, O, e.history.encodeLocation(O));
674
674
  let A = g && g.replace != null ? g.replace : void 0, P = ve.Push;
675
- A === !0 ? P = ve.Replace : A === !1 || k != null && ze(k.formMethod) && k.formAction === b.location.pathname + b.location.search && (P = ve.Replace);
676
- let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, Y = Br({
675
+ A === !0 ? P = ve.Replace : A === !1 || k != null && Je(k.formMethod) && k.formAction === b.location.pathname + b.location.search && (P = ve.Replace);
676
+ let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, X = Hr({
677
677
  currentLocation: H,
678
678
  nextLocation: O,
679
679
  historyAction: P
680
680
  });
681
- if (Y) {
682
- an(Y, {
681
+ if (X) {
682
+ an(X, {
683
683
  state: "blocked",
684
684
  location: O,
685
685
  proceed() {
686
- an(Y, {
686
+ an(X, {
687
687
  state: "proceeding",
688
688
  proceed: void 0,
689
689
  reset: void 0,
@@ -692,14 +692,14 @@ function yi(e) {
692
692
  },
693
693
  reset() {
694
694
  let xe = new Map(b.blockers);
695
- xe.set(Y, Ft), Ee({
695
+ xe.set(X, Ft), Ce({
696
696
  blockers: xe
697
697
  });
698
698
  }
699
699
  });
700
700
  return;
701
701
  }
702
- return await Ze(P, O, {
702
+ return await Ke(P, O, {
703
703
  submission: k,
704
704
  // Send through the formData serialization error if we have one so we can
705
705
  // render at the right error boundary after we match routes
@@ -711,30 +711,30 @@ function yi(e) {
711
711
  });
712
712
  }
713
713
  function rn() {
714
- if (ht(), Ee({
714
+ if (ht(), Ce({
715
715
  revalidation: "loading"
716
716
  }), b.navigation.state !== "submitting") {
717
717
  if (b.navigation.state === "idle") {
718
- Ze(b.historyAction, b.location, {
718
+ Ke(b.historyAction, b.location, {
719
719
  startUninterruptedRevalidation: !0
720
720
  });
721
721
  return;
722
722
  }
723
- Ze(T || b.historyAction, b.navigation.location, {
723
+ Ke(T || b.historyAction, b.navigation.location, {
724
724
  overrideNavigation: b.navigation,
725
725
  // Proxy through any rending view transition
726
726
  enableViewTransition: ae === !0
727
727
  });
728
728
  }
729
729
  }
730
- async function Ze(f, g, C) {
730
+ async function Ke(f, g, C) {
731
731
  B && B.abort(), B = null, T = f, he = (C && C.startUninterruptedRevalidation) === !0, xa(b.location, b.matches), K = (C && C.preventScrollReset) === !0, ae = (C && C.enableViewTransition) === !0;
732
732
  let L = s || i, k = C && C.overrideNavigation, F = C != null && C.initialHydration && b.matches && b.matches.length > 0 && !x ? (
733
733
  // `matchRoutes()` has already been called if we're in here via `router.initialize()`
734
734
  b.matches
735
- ) : mt(L, g, l), H = (C && C.flushSync) === !0;
736
- if (F && b.initialized && !Oe && ki(b.location, g) && !(C && C.submission && ze(C.submission.formMethod))) {
737
- et(g, {
735
+ ) : gt(L, g, l), H = (C && C.flushSync) === !0;
736
+ if (F && b.initialized && !Le && ki(b.location, g) && !(C && C.submission && Je(C.submission.formMethod))) {
737
+ tt(g, {
738
738
  matches: F
739
739
  }, {
740
740
  flushSync: H
@@ -744,15 +744,15 @@ function yi(e) {
744
744
  let O = sn(F, L, g.pathname);
745
745
  if (O.active && O.matches && (F = O.matches), !F) {
746
746
  let {
747
- error: le,
748
- notFoundMatches: Q,
749
- route: me
747
+ error: ce,
748
+ notFoundMatches: ee,
749
+ route: pe
750
750
  } = Jn(g.pathname);
751
- et(g, {
752
- matches: Q,
751
+ tt(g, {
752
+ matches: ee,
753
753
  loaderData: {},
754
754
  errors: {
755
- [me.id]: le
755
+ [pe.id]: ce
756
756
  }
757
757
  }, {
758
758
  flushSync: H
@@ -760,51 +760,51 @@ function yi(e) {
760
760
  return;
761
761
  }
762
762
  B = new AbortController();
763
- let A = Lt(e.history, g, B.signal, C && C.submission), P;
763
+ let A = Rt(e.history, g, B.signal, C && C.submission), P;
764
764
  if (C && C.pendingError)
765
- P = [gt(F).route.id, {
765
+ P = [yt(F).route.id, {
766
766
  type: oe.error,
767
767
  error: C.pendingError
768
768
  }];
769
- else if (C && C.submission && ze(C.submission.formMethod)) {
770
- let le = await j(A, g, C.submission, F, O.active, {
769
+ else if (C && C.submission && Je(C.submission.formMethod)) {
770
+ let ce = await j(A, g, C.submission, F, O.active, {
771
771
  replace: C.replace,
772
772
  flushSync: H
773
773
  });
774
- if (le.shortCircuited)
774
+ if (ce.shortCircuited)
775
775
  return;
776
- if (le.pendingActionResult) {
777
- let [Q, me] = le.pendingActionResult;
778
- if (Ie(me) && Zt(me.error) && me.error.status === 404) {
779
- B = null, et(g, {
780
- matches: le.matches,
776
+ if (ce.pendingActionResult) {
777
+ let [ee, pe] = ce.pendingActionResult;
778
+ if (Fe(pe) && Zt(pe.error) && pe.error.status === 404) {
779
+ B = null, tt(g, {
780
+ matches: ce.matches,
781
781
  loaderData: {},
782
782
  errors: {
783
- [Q]: me.error
783
+ [ee]: pe.error
784
784
  }
785
785
  });
786
786
  return;
787
787
  }
788
788
  }
789
- F = le.matches || F, P = le.pendingActionResult, k = Yn(g, C.submission), H = !1, O.active = !1, A = Lt(e.history, A.url, A.signal);
789
+ F = ce.matches || F, P = ce.pendingActionResult, k = Yn(g, C.submission), H = !1, O.active = !1, A = Rt(e.history, A.url, A.signal);
790
790
  }
791
791
  let {
792
792
  shortCircuited: D,
793
793
  matches: J,
794
- loaderData: Y,
794
+ loaderData: X,
795
795
  errors: xe
796
796
  } = await V(A, g, F, O.active, k, C && C.submission, C && C.fetcherSubmission, C && C.replace, C && C.initialHydration === !0, H, P);
797
- D || (B = null, et(g, fe({
797
+ D || (B = null, tt(g, fe({
798
798
  matches: J || F
799
- }, no(P), {
800
- loaderData: Y,
799
+ }, ro(P), {
800
+ loaderData: X,
801
801
  errors: xe
802
802
  })));
803
803
  }
804
804
  async function j(f, g, C, L, k, F) {
805
805
  F === void 0 && (F = {}), ht();
806
806
  let H = Mi(g, C);
807
- if (Ee({
807
+ if (Ce({
808
808
  navigation: H
809
809
  }, {
810
810
  flushSync: F.flushSync === !0
@@ -815,7 +815,7 @@ function yi(e) {
815
815
  shortCircuited: !0
816
816
  };
817
817
  if (P.type === "error") {
818
- let D = gt(P.partialMatches).route.id;
818
+ let D = yt(P.partialMatches).route.id;
819
819
  return {
820
820
  matches: P.partialMatches,
821
821
  pendingActionResult: [D, {
@@ -829,11 +829,11 @@ function yi(e) {
829
829
  let {
830
830
  notFoundMatches: D,
831
831
  error: J,
832
- route: Y
832
+ route: X
833
833
  } = Jn(g.pathname);
834
834
  return {
835
835
  matches: D,
836
- pendingActionResult: [Y.id, {
836
+ pendingActionResult: [X.id, {
837
837
  type: oe.error,
838
838
  error: J
839
839
  }]
@@ -844,7 +844,7 @@ function yi(e) {
844
844
  if (!A.route.action && !A.route.lazy)
845
845
  O = {
846
846
  type: oe.error,
847
- error: Ae(405, {
847
+ error: Pe(405, {
848
848
  method: f.method,
849
849
  pathname: g.pathname,
850
850
  routeId: A.route.id
@@ -854,21 +854,21 @@ function yi(e) {
854
854
  return {
855
855
  shortCircuited: !0
856
856
  };
857
- if (yt(O)) {
857
+ if (vt(O)) {
858
858
  let P;
859
- return F && F.replace != null ? P = F.replace : P = Xr(O.response.headers.get("Location"), new URL(f.url), l) === b.location.pathname + b.location.search, await Z(f, O, !0, {
859
+ return F && F.replace != null ? P = F.replace : P = Qr(O.response.headers.get("Location"), new URL(f.url), l) === b.location.pathname + b.location.search, await Z(f, O, !0, {
860
860
  submission: C,
861
861
  replace: P
862
862
  }), {
863
863
  shortCircuited: !0
864
864
  };
865
865
  }
866
- if (lt(O))
867
- throw Ae(400, {
866
+ if (ct(O))
867
+ throw Pe(400, {
868
868
  type: "defer-action"
869
869
  });
870
- if (Ie(O)) {
871
- let P = gt(L, A.route.id);
870
+ if (Fe(O)) {
871
+ let P = yt(L, A.route.id);
872
872
  return (F && F.replace) !== !0 && (T = ve.Push), {
873
873
  matches: L,
874
874
  pendingActionResult: [P.route.id, O]
@@ -880,60 +880,60 @@ function yi(e) {
880
880
  };
881
881
  }
882
882
  async function V(f, g, C, L, k, F, H, O, A, P, D) {
883
- let J = k || Yn(g, F), Y = F || H || ao(J), xe = !he && (!d.v7_partialHydration || !A);
883
+ let J = k || Yn(g, F), X = F || H || io(J), xe = !he && (!d.v7_partialHydration || !A);
884
884
  if (L) {
885
885
  if (xe) {
886
- let ge = ne(D);
887
- Ee(fe({
886
+ let me = ne(D);
887
+ Ce(fe({
888
888
  navigation: J
889
- }, ge !== void 0 ? {
890
- actionData: ge
889
+ }, me !== void 0 ? {
890
+ actionData: me
891
891
  } : {}), {
892
892
  flushSync: P
893
893
  });
894
894
  }
895
- let X = await ln(C, g.pathname, f.signal);
896
- if (X.type === "aborted")
895
+ let Q = await ln(C, g.pathname, f.signal);
896
+ if (Q.type === "aborted")
897
897
  return {
898
898
  shortCircuited: !0
899
899
  };
900
- if (X.type === "error") {
901
- let ge = gt(X.partialMatches).route.id;
900
+ if (Q.type === "error") {
901
+ let me = yt(Q.partialMatches).route.id;
902
902
  return {
903
- matches: X.partialMatches,
903
+ matches: Q.partialMatches,
904
904
  loaderData: {},
905
905
  errors: {
906
- [ge]: X.error
906
+ [me]: Q.error
907
907
  }
908
908
  };
909
- } else if (X.matches)
910
- C = X.matches;
909
+ } else if (Q.matches)
910
+ C = Q.matches;
911
911
  else {
912
912
  let {
913
- error: ge,
914
- notFoundMatches: Ct,
913
+ error: me,
914
+ notFoundMatches: Et,
915
915
  route: Dt
916
916
  } = Jn(g.pathname);
917
917
  return {
918
- matches: Ct,
918
+ matches: Et,
919
919
  loaderData: {},
920
920
  errors: {
921
- [Dt.id]: ge
921
+ [Dt.id]: me
922
922
  }
923
923
  };
924
924
  }
925
925
  }
926
- let le = s || i, [Q, me] = Kr(e.history, b, C, Y, g, d.v7_partialHydration && A === !0, d.v7_skipActionErrorRevalidation, Oe, Te, qe, pe, He, Pe, le, l, D);
927
- if (Wn((X) => !(C && C.some((ge) => ge.route.id === X)) || Q && Q.some((ge) => ge.route.id === X)), Se = ++Re, Q.length === 0 && me.length === 0) {
928
- let X = Dr();
929
- return et(g, fe({
926
+ let ce = s || i, [ee, pe] = Gr(e.history, b, C, X, g, d.v7_partialHydration && A === !0, d.v7_skipActionErrorRevalidation, Le, Ze, Ae, G, Be, ge, ce, l, D);
927
+ if (Wn((Q) => !(C && C.some((me) => me.route.id === Q)) || ee && ee.some((me) => me.route.id === Q)), be = ++Ne, ee.length === 0 && pe.length === 0) {
928
+ let Q = Fr();
929
+ return tt(g, fe({
930
930
  matches: C,
931
931
  loaderData: {},
932
932
  // Commit pending error if we're short circuiting
933
- errors: D && Ie(D[1]) ? {
933
+ errors: D && Fe(D[1]) ? {
934
934
  [D[0]]: D[1].error
935
935
  } : null
936
- }, no(D), X ? {
936
+ }, ro(D), Q ? {
937
937
  fetchers: new Map(b.fetchers)
938
938
  } : {}), {
939
939
  flushSync: P
@@ -942,39 +942,39 @@ function yi(e) {
942
942
  };
943
943
  }
944
944
  if (xe) {
945
- let X = {};
945
+ let Q = {};
946
946
  if (!L) {
947
- X.navigation = J;
948
- let ge = ne(D);
949
- ge !== void 0 && (X.actionData = ge);
947
+ Q.navigation = J;
948
+ let me = ne(D);
949
+ me !== void 0 && (Q.actionData = me);
950
950
  }
951
- me.length > 0 && (X.fetchers = z(me)), Ee(X, {
951
+ pe.length > 0 && (Q.fetchers = z(pe)), Ce(Q, {
952
952
  flushSync: P
953
953
  });
954
954
  }
955
- me.forEach((X) => {
956
- ot(X.key), X.controller && ce.set(X.key, X.controller);
955
+ pe.forEach((Q) => {
956
+ at(Q.key), Q.controller && le.set(Q.key, Q.controller);
957
957
  });
958
- let St = () => me.forEach((X) => ot(X.key));
959
- B && B.signal.addEventListener("abort", St);
958
+ let Ct = () => pe.forEach((Q) => at(Q.key));
959
+ B && B.signal.addEventListener("abort", Ct);
960
960
  let {
961
961
  loaderResults: Mt,
962
- fetcherResults: rt
963
- } = await tt(b, C, Q, me, f);
962
+ fetcherResults: ot
963
+ } = await nt(b, C, ee, pe, f);
964
964
  if (f.signal.aborted)
965
965
  return {
966
966
  shortCircuited: !0
967
967
  };
968
- B && B.signal.removeEventListener("abort", St), me.forEach((X) => ce.delete(X.key));
969
- let Ge = dn(Mt);
970
- if (Ge)
971
- return await Z(f, Ge.result, !0, {
968
+ B && B.signal.removeEventListener("abort", Ct), pe.forEach((Q) => le.delete(Q.key));
969
+ let Ye = dn(Mt);
970
+ if (Ye)
971
+ return await Z(f, Ye.result, !0, {
972
972
  replace: O
973
973
  }), {
974
974
  shortCircuited: !0
975
975
  };
976
- if (Ge = dn(rt), Ge)
977
- return Pe.add(Ge.key), await Z(f, Ge.result, !0, {
976
+ if (Ye = dn(ot), Ye)
977
+ return ge.add(Ye.key), await Z(f, Ye.result, !0, {
978
978
  replace: O
979
979
  }), {
980
980
  shortCircuited: !0
@@ -982,13 +982,13 @@ function yi(e) {
982
982
  let {
983
983
  loaderData: qn,
984
984
  errors: At
985
- } = eo(b, C, Mt, D, me, rt, Me);
986
- Me.forEach((X, ge) => {
987
- X.subscribe((Ct) => {
988
- (Ct || X.done) && Me.delete(ge);
985
+ } = to(b, C, Mt, D, pe, ot, Se);
986
+ Se.forEach((Q, me) => {
987
+ Q.subscribe((Et) => {
988
+ (Et || Q.done) && Se.delete(me);
989
989
  });
990
990
  }), d.v7_partialHydration && A && b.errors && (At = fe({}, b.errors, At));
991
- let pt = Dr(), cn = Fr(Se), un = pt || cn || me.length > 0;
991
+ let pt = Fr(), cn = Ir(be), un = pt || cn || pe.length > 0;
992
992
  return fe({
993
993
  matches: C,
994
994
  loaderData: qn,
@@ -998,7 +998,7 @@ function yi(e) {
998
998
  } : {});
999
999
  }
1000
1000
  function ne(f) {
1001
- if (f && !Ie(f[1]))
1001
+ if (f && !Fe(f[1]))
1002
1002
  return {
1003
1003
  [f[0]]: f[1].data
1004
1004
  };
@@ -1011,13 +1011,13 @@ function yi(e) {
1011
1011
  b.fetchers.set(g.key, L);
1012
1012
  }), new Map(b.fetchers);
1013
1013
  }
1014
- function G(f, g, C, L) {
1014
+ function Y(f, g, C, L) {
1015
1015
  if (r)
1016
1016
  throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
1017
- ot(f);
1018
- let k = (L && L.flushSync) === !0, F = s || i, H = sr(b.location, b.matches, l, d.v7_prependBasename, C, d.v7_relativeSplatPath, g, L == null ? void 0 : L.relative), O = mt(F, H, l), A = sn(O, F, H);
1017
+ at(f);
1018
+ let k = (L && L.flushSync) === !0, F = s || i, H = sr(b.location, b.matches, l, d.v7_prependBasename, C, d.v7_relativeSplatPath, g, L == null ? void 0 : L.relative), O = gt(F, H, l), A = sn(O, F, H);
1019
1019
  if (A.active && A.matches && (O = A.matches), !O) {
1020
- nt(f, g, Ae(404, {
1020
+ rt(f, g, Pe(404, {
1021
1021
  pathname: H
1022
1022
  }), {
1023
1023
  flushSync: k
@@ -1028,33 +1028,33 @@ function yi(e) {
1028
1028
  path: P,
1029
1029
  submission: D,
1030
1030
  error: J
1031
- } = qr(d.v7_normalizeFormMethod, !0, H, L);
1031
+ } = Zr(d.v7_normalizeFormMethod, !0, H, L);
1032
1032
  if (J) {
1033
- nt(f, g, J, {
1033
+ rt(f, g, J, {
1034
1034
  flushSync: k
1035
1035
  });
1036
1036
  return;
1037
1037
  }
1038
- let Y = $t(O, P), xe = (L && L.preventScrollReset) === !0;
1039
- if (D && ze(D.formMethod)) {
1040
- W(f, g, P, Y, O, A.active, k, xe, D);
1038
+ let X = $t(O, P), xe = (L && L.preventScrollReset) === !0;
1039
+ if (D && Je(D.formMethod)) {
1040
+ W(f, g, P, X, O, A.active, k, xe, D);
1041
1041
  return;
1042
1042
  }
1043
- He.set(f, {
1043
+ Be.set(f, {
1044
1044
  routeId: g,
1045
1045
  path: P
1046
- }), re(f, g, P, Y, O, A.active, k, xe, D);
1046
+ }), re(f, g, P, X, O, A.active, k, xe, D);
1047
1047
  }
1048
1048
  async function W(f, g, C, L, k, F, H, O, A) {
1049
- ht(), He.delete(f);
1049
+ ht(), Be.delete(f);
1050
1050
  function P(ye) {
1051
1051
  if (!ye.route.action && !ye.route.lazy) {
1052
- let Et = Ae(405, {
1052
+ let Lt = Pe(405, {
1053
1053
  method: A.formMethod,
1054
1054
  pathname: C,
1055
1055
  routeId: g
1056
1056
  });
1057
- return nt(f, g, Et, {
1057
+ return rt(f, g, Lt, {
1058
1058
  flushSync: H
1059
1059
  }), !0;
1060
1060
  }
@@ -1063,16 +1063,16 @@ function yi(e) {
1063
1063
  if (!F && P(L))
1064
1064
  return;
1065
1065
  let D = b.fetchers.get(f);
1066
- Ke(f, Ai(A, D), {
1066
+ Ge(f, Ai(A, D), {
1067
1067
  flushSync: H
1068
1068
  });
1069
- let J = new AbortController(), Y = Lt(e.history, C, J.signal, A);
1069
+ let J = new AbortController(), X = Rt(e.history, C, J.signal, A);
1070
1070
  if (F) {
1071
- let ye = await ln(k, new URL(Y.url).pathname, Y.signal, f);
1071
+ let ye = await ln(k, new URL(X.url).pathname, X.signal, f);
1072
1072
  if (ye.type === "aborted")
1073
1073
  return;
1074
1074
  if (ye.type === "error") {
1075
- nt(f, g, ye.error, {
1075
+ rt(f, g, ye.error, {
1076
1076
  flushSync: H
1077
1077
  });
1078
1078
  return;
@@ -1080,7 +1080,7 @@ function yi(e) {
1080
1080
  if (k = ye.matches, L = $t(k, C), P(L))
1081
1081
  return;
1082
1082
  } else {
1083
- nt(f, g, Ae(404, {
1083
+ rt(f, g, Pe(404, {
1084
1084
  pathname: C
1085
1085
  }), {
1086
1086
  flushSync: H
@@ -1088,105 +1088,105 @@ function yi(e) {
1088
1088
  return;
1089
1089
  }
1090
1090
  }
1091
- ce.set(f, J);
1092
- let xe = Re, Q = (await ue("action", b, Y, [L], k, f))[L.route.id];
1093
- if (Y.signal.aborted) {
1094
- ce.get(f) === J && ce.delete(f);
1091
+ le.set(f, J);
1092
+ let xe = Ne, ee = (await ue("action", b, X, [L], k, f))[L.route.id];
1093
+ if (X.signal.aborted) {
1094
+ le.get(f) === J && le.delete(f);
1095
1095
  return;
1096
1096
  }
1097
- if (d.v7_fetcherPersist && pe.has(f)) {
1098
- if (yt(Q) || Ie(Q)) {
1099
- Ke(f, at(void 0));
1097
+ if (d.v7_fetcherPersist && G.has(f)) {
1098
+ if (vt(ee) || Fe(ee)) {
1099
+ Ge(f, it(void 0));
1100
1100
  return;
1101
1101
  }
1102
1102
  } else {
1103
- if (yt(Q))
1104
- if (ce.delete(f), Se > xe) {
1105
- Ke(f, at(void 0));
1103
+ if (vt(ee))
1104
+ if (le.delete(f), be > xe) {
1105
+ Ge(f, it(void 0));
1106
1106
  return;
1107
1107
  } else
1108
- return Pe.add(f), Ke(f, It(A)), Z(Y, Q, !1, {
1108
+ return ge.add(f), Ge(f, It(A)), Z(X, ee, !1, {
1109
1109
  fetcherSubmission: A,
1110
1110
  preventScrollReset: O
1111
1111
  });
1112
- if (Ie(Q)) {
1113
- nt(f, g, Q.error);
1112
+ if (Fe(ee)) {
1113
+ rt(f, g, ee.error);
1114
1114
  return;
1115
1115
  }
1116
1116
  }
1117
- if (lt(Q))
1118
- throw Ae(400, {
1117
+ if (ct(ee))
1118
+ throw Pe(400, {
1119
1119
  type: "defer-action"
1120
1120
  });
1121
- let me = b.navigation.location || b.location, St = Lt(e.history, me, J.signal), Mt = s || i, rt = b.navigation.state !== "idle" ? mt(Mt, b.navigation.location, l) : b.matches;
1122
- I(rt, "Didn't find any matches after fetcher action");
1123
- let Ge = ++Re;
1124
- be.set(f, Ge);
1125
- let qn = It(A, Q.data);
1121
+ let pe = b.navigation.location || b.location, Ct = Rt(e.history, pe, J.signal), Mt = s || i, ot = b.navigation.state !== "idle" ? gt(Mt, b.navigation.location, l) : b.matches;
1122
+ I(ot, "Didn't find any matches after fetcher action");
1123
+ let Ye = ++Ne;
1124
+ $e.set(f, Ye);
1125
+ let qn = It(A, ee.data);
1126
1126
  b.fetchers.set(f, qn);
1127
- let [At, pt] = Kr(e.history, b, rt, A, me, !1, d.v7_skipActionErrorRevalidation, Oe, Te, qe, pe, He, Pe, Mt, l, [L.route.id, Q]);
1127
+ let [At, pt] = Gr(e.history, b, ot, A, pe, !1, d.v7_skipActionErrorRevalidation, Le, Ze, Ae, G, Be, ge, Mt, l, [L.route.id, ee]);
1128
1128
  pt.filter((ye) => ye.key !== f).forEach((ye) => {
1129
- let Et = ye.key, Vr = b.fetchers.get(Et), _a = It(void 0, Vr ? Vr.data : void 0);
1130
- b.fetchers.set(Et, _a), ot(Et), ye.controller && ce.set(Et, ye.controller);
1131
- }), Ee({
1129
+ let Lt = ye.key, jr = b.fetchers.get(Lt), _a = It(void 0, jr ? jr.data : void 0);
1130
+ b.fetchers.set(Lt, _a), at(Lt), ye.controller && le.set(Lt, ye.controller);
1131
+ }), Ce({
1132
1132
  fetchers: new Map(b.fetchers)
1133
1133
  });
1134
- let cn = () => pt.forEach((ye) => ot(ye.key));
1134
+ let cn = () => pt.forEach((ye) => at(ye.key));
1135
1135
  J.signal.addEventListener("abort", cn);
1136
1136
  let {
1137
1137
  loaderResults: un,
1138
- fetcherResults: X
1139
- } = await tt(b, rt, At, pt, St);
1138
+ fetcherResults: Q
1139
+ } = await nt(b, ot, At, pt, Ct);
1140
1140
  if (J.signal.aborted)
1141
1141
  return;
1142
- J.signal.removeEventListener("abort", cn), be.delete(f), ce.delete(f), pt.forEach((ye) => ce.delete(ye.key));
1143
- let ge = dn(un);
1144
- if (ge)
1145
- return Z(St, ge.result, !1, {
1142
+ J.signal.removeEventListener("abort", cn), $e.delete(f), le.delete(f), pt.forEach((ye) => le.delete(ye.key));
1143
+ let me = dn(un);
1144
+ if (me)
1145
+ return Z(Ct, me.result, !1, {
1146
1146
  preventScrollReset: O
1147
1147
  });
1148
- if (ge = dn(X), ge)
1149
- return Pe.add(ge.key), Z(St, ge.result, !1, {
1148
+ if (me = dn(Q), me)
1149
+ return ge.add(me.key), Z(Ct, me.result, !1, {
1150
1150
  preventScrollReset: O
1151
1151
  });
1152
1152
  let {
1153
- loaderData: Ct,
1153
+ loaderData: Et,
1154
1154
  errors: Dt
1155
- } = eo(b, rt, un, void 0, pt, X, Me);
1155
+ } = to(b, ot, un, void 0, pt, Q, Se);
1156
1156
  if (b.fetchers.has(f)) {
1157
- let ye = at(Q.data);
1157
+ let ye = it(ee.data);
1158
1158
  b.fetchers.set(f, ye);
1159
1159
  }
1160
- Fr(Ge), b.navigation.state === "loading" && Ge > Se ? (I(T, "Expected pending action"), B && B.abort(), et(b.navigation.location, {
1161
- matches: rt,
1162
- loaderData: Ct,
1160
+ Ir(Ye), b.navigation.state === "loading" && Ye > be ? (I(T, "Expected pending action"), B && B.abort(), tt(b.navigation.location, {
1161
+ matches: ot,
1162
+ loaderData: Et,
1163
1163
  errors: Dt,
1164
1164
  fetchers: new Map(b.fetchers)
1165
- })) : (Ee({
1165
+ })) : (Ce({
1166
1166
  errors: Dt,
1167
- loaderData: to(b.loaderData, Ct, rt, Dt),
1167
+ loaderData: no(b.loaderData, Et, ot, Dt),
1168
1168
  fetchers: new Map(b.fetchers)
1169
- }), Oe = !1);
1169
+ }), Le = !1);
1170
1170
  }
1171
1171
  async function re(f, g, C, L, k, F, H, O, A) {
1172
1172
  let P = b.fetchers.get(f);
1173
- Ke(f, It(A, P ? P.data : void 0), {
1173
+ Ge(f, It(A, P ? P.data : void 0), {
1174
1174
  flushSync: H
1175
1175
  });
1176
- let D = new AbortController(), J = Lt(e.history, C, D.signal);
1176
+ let D = new AbortController(), J = Rt(e.history, C, D.signal);
1177
1177
  if (F) {
1178
- let Q = await ln(k, new URL(J.url).pathname, J.signal, f);
1179
- if (Q.type === "aborted")
1178
+ let ee = await ln(k, new URL(J.url).pathname, J.signal, f);
1179
+ if (ee.type === "aborted")
1180
1180
  return;
1181
- if (Q.type === "error") {
1182
- nt(f, g, Q.error, {
1181
+ if (ee.type === "error") {
1182
+ rt(f, g, ee.error, {
1183
1183
  flushSync: H
1184
1184
  });
1185
1185
  return;
1186
- } else if (Q.matches)
1187
- k = Q.matches, L = $t(k, C);
1186
+ } else if (ee.matches)
1187
+ k = ee.matches, L = $t(k, C);
1188
1188
  else {
1189
- nt(f, g, Ae(404, {
1189
+ rt(f, g, Pe(404, {
1190
1190
  pathname: C
1191
1191
  }), {
1192
1192
  flushSync: H
@@ -1194,28 +1194,28 @@ function yi(e) {
1194
1194
  return;
1195
1195
  }
1196
1196
  }
1197
- ce.set(f, D);
1198
- let Y = Re, le = (await ue("loader", b, J, [L], k, f))[L.route.id];
1199
- if (lt(le) && (le = await Er(le, J.signal, !0) || le), ce.get(f) === D && ce.delete(f), !J.signal.aborted) {
1200
- if (pe.has(f)) {
1201
- Ke(f, at(void 0));
1197
+ le.set(f, D);
1198
+ let X = Ne, ce = (await ue("loader", b, J, [L], k, f))[L.route.id];
1199
+ if (ct(ce) && (ce = await Er(ce, J.signal, !0) || ce), le.get(f) === D && le.delete(f), !J.signal.aborted) {
1200
+ if (G.has(f)) {
1201
+ Ge(f, it(void 0));
1202
1202
  return;
1203
1203
  }
1204
- if (yt(le))
1205
- if (Se > Y) {
1206
- Ke(f, at(void 0));
1204
+ if (vt(ce))
1205
+ if (be > X) {
1206
+ Ge(f, it(void 0));
1207
1207
  return;
1208
1208
  } else {
1209
- Pe.add(f), await Z(J, le, !1, {
1209
+ ge.add(f), await Z(J, ce, !1, {
1210
1210
  preventScrollReset: O
1211
1211
  });
1212
1212
  return;
1213
1213
  }
1214
- if (Ie(le)) {
1215
- nt(f, g, le.error);
1214
+ if (Fe(ce)) {
1215
+ rt(f, g, ce.error);
1216
1216
  return;
1217
1217
  }
1218
- I(!lt(le), "Unhandled fetcher deferred data"), Ke(f, at(le.data));
1218
+ I(!ct(ce), "Unhandled fetcher deferred data"), Ge(f, it(ce.data));
1219
1219
  }
1220
1220
  }
1221
1221
  async function Z(f, g, C, L) {
@@ -1225,23 +1225,23 @@ function yi(e) {
1225
1225
  preventScrollReset: H,
1226
1226
  replace: O
1227
1227
  } = L === void 0 ? {} : L;
1228
- g.response.headers.has("X-Remix-Revalidate") && (Oe = !0);
1228
+ g.response.headers.has("X-Remix-Revalidate") && (Le = !0);
1229
1229
  let A = g.response.headers.get("Location");
1230
- I(A, "Expected a Location header on the redirect Response"), A = Xr(A, new URL(f.url), l);
1230
+ I(A, "Expected a Location header on the redirect Response"), A = Qr(A, new URL(f.url), l);
1231
1231
  let P = qt(b.location, A, {
1232
1232
  _isRedirect: !0
1233
1233
  });
1234
1234
  if (n) {
1235
- let Q = !1;
1235
+ let ee = !1;
1236
1236
  if (g.response.headers.has("X-Remix-Reload-Document"))
1237
- Q = !0;
1237
+ ee = !0;
1238
1238
  else if (Cr.test(A)) {
1239
- const me = e.history.createURL(A);
1240
- Q = // Hard reload if it's an absolute URL to a new origin
1241
- me.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
1242
- Je(me.pathname, l) == null;
1239
+ const pe = e.history.createURL(A);
1240
+ ee = // Hard reload if it's an absolute URL to a new origin
1241
+ pe.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
1242
+ We(pe.pathname, l) == null;
1243
1243
  }
1244
- if (Q) {
1244
+ if (ee) {
1245
1245
  O ? t.location.replace(A) : t.location.assign(A);
1246
1246
  return;
1247
1247
  }
@@ -1249,14 +1249,14 @@ function yi(e) {
1249
1249
  B = null;
1250
1250
  let D = O === !0 || g.response.headers.has("X-Remix-Replace") ? ve.Replace : ve.Push, {
1251
1251
  formMethod: J,
1252
- formAction: Y,
1252
+ formAction: X,
1253
1253
  formEncType: xe
1254
1254
  } = b.navigation;
1255
- !k && !F && J && Y && xe && (k = ao(b.navigation));
1256
- let le = k || F;
1257
- if (pi.has(g.response.status) && le && ze(le.formMethod))
1258
- await Ze(D, P, {
1259
- submission: fe({}, le, {
1255
+ !k && !F && J && X && xe && (k = io(b.navigation));
1256
+ let ce = k || F;
1257
+ if (pi.has(g.response.status) && ce && Je(ce.formMethod))
1258
+ await Ke(D, P, {
1259
+ submission: fe({}, ce, {
1260
1260
  formAction: A
1261
1261
  }),
1262
1262
  // Preserve these flags across redirects
@@ -1264,9 +1264,9 @@ function yi(e) {
1264
1264
  enableViewTransition: C ? ae : void 0
1265
1265
  });
1266
1266
  else {
1267
- let Q = Yn(P, k);
1268
- await Ze(D, P, {
1269
- overrideNavigation: Q,
1267
+ let ee = Yn(P, k);
1268
+ await Ke(D, P, {
1269
+ overrideNavigation: ee,
1270
1270
  // Send fetcher submissions through for shouldRevalidate
1271
1271
  fetcherSubmission: F,
1272
1272
  // Preserve these flags across redirects
@@ -1298,18 +1298,18 @@ function yi(e) {
1298
1298
  O[A] = await Li(P);
1299
1299
  return O;
1300
1300
  }
1301
- async function tt(f, g, C, L, k) {
1301
+ async function nt(f, g, C, L, k) {
1302
1302
  let F = f.matches, H = ue("loader", f, k, C, g, null), O = Promise.all(L.map(async (D) => {
1303
1303
  if (D.matches && D.match && D.controller) {
1304
- let Y = (await ue("loader", f, Lt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
1304
+ let X = (await ue("loader", f, Rt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
1305
1305
  return {
1306
- [D.key]: Y
1306
+ [D.key]: X
1307
1307
  };
1308
1308
  } else
1309
1309
  return Promise.resolve({
1310
1310
  [D.key]: {
1311
1311
  type: oe.error,
1312
- error: Ae(404, {
1312
+ error: Pe(404, {
1313
1313
  pathname: D.path
1314
1314
  })
1315
1315
  }
@@ -1321,21 +1321,21 @@ function yi(e) {
1321
1321
  };
1322
1322
  }
1323
1323
  function ht() {
1324
- Oe = !0, Te.push(...Wn()), He.forEach((f, g) => {
1325
- ce.has(g) && qe.add(g), ot(g);
1324
+ Le = !0, Ze.push(...Wn()), Be.forEach((f, g) => {
1325
+ le.has(g) && Ae.add(g), at(g);
1326
1326
  });
1327
1327
  }
1328
- function Ke(f, g, C) {
1329
- C === void 0 && (C = {}), b.fetchers.set(f, g), Ee({
1328
+ function Ge(f, g, C) {
1329
+ C === void 0 && (C = {}), b.fetchers.set(f, g), Ce({
1330
1330
  fetchers: new Map(b.fetchers)
1331
1331
  }, {
1332
1332
  flushSync: (C && C.flushSync) === !0
1333
1333
  });
1334
1334
  }
1335
- function nt(f, g, C, L) {
1335
+ function rt(f, g, C, L) {
1336
1336
  L === void 0 && (L = {});
1337
- let k = gt(b.matches, g);
1338
- on(f), Ee({
1337
+ let k = yt(b.matches, g);
1338
+ on(f), Ce({
1339
1339
  errors: {
1340
1340
  [k.route.id]: C
1341
1341
  },
@@ -1344,71 +1344,71 @@ function yi(e) {
1344
1344
  flushSync: (L && L.flushSync) === !0
1345
1345
  });
1346
1346
  }
1347
- function Mr(f) {
1348
- return ie.set(f, (ie.get(f) || 0) + 1), pe.has(f) && pe.delete(f), b.fetchers.get(f) || mi;
1347
+ function Ar(f) {
1348
+ return ze.set(f, (ze.get(f) || 0) + 1), G.has(f) && G.delete(f), b.fetchers.get(f) || mi;
1349
1349
  }
1350
1350
  function on(f) {
1351
1351
  let g = b.fetchers.get(f);
1352
- ce.has(f) && !(g && g.state === "loading" && be.has(f)) && ot(f), He.delete(f), be.delete(f), Pe.delete(f), d.v7_fetcherPersist && pe.delete(f), qe.delete(f), b.fetchers.delete(f);
1352
+ le.has(f) && !(g && g.state === "loading" && $e.has(f)) && at(f), Be.delete(f), $e.delete(f), ge.delete(f), d.v7_fetcherPersist && G.delete(f), Ae.delete(f), b.fetchers.delete(f);
1353
1353
  }
1354
1354
  function Ea(f) {
1355
- let g = (ie.get(f) || 0) - 1;
1356
- g <= 0 ? (ie.delete(f), pe.add(f), d.v7_fetcherPersist || on(f)) : ie.set(f, g), Ee({
1355
+ let g = (ze.get(f) || 0) - 1;
1356
+ g <= 0 ? (ze.delete(f), G.add(f), d.v7_fetcherPersist || on(f)) : ze.set(f, g), Ce({
1357
1357
  fetchers: new Map(b.fetchers)
1358
1358
  });
1359
1359
  }
1360
- function ot(f) {
1361
- let g = ce.get(f);
1362
- g && (g.abort(), ce.delete(f));
1360
+ function at(f) {
1361
+ let g = le.get(f);
1362
+ g && (g.abort(), le.delete(f));
1363
1363
  }
1364
- function Ar(f) {
1364
+ function Dr(f) {
1365
1365
  for (let g of f) {
1366
- let C = Mr(g), L = at(C.data);
1366
+ let C = Ar(g), L = it(C.data);
1367
1367
  b.fetchers.set(g, L);
1368
1368
  }
1369
1369
  }
1370
- function Dr() {
1370
+ function Fr() {
1371
1371
  let f = [], g = !1;
1372
- for (let C of Pe) {
1372
+ for (let C of ge) {
1373
1373
  let L = b.fetchers.get(C);
1374
- I(L, "Expected fetcher: " + C), L.state === "loading" && (Pe.delete(C), f.push(C), g = !0);
1374
+ I(L, "Expected fetcher: " + C), L.state === "loading" && (ge.delete(C), f.push(C), g = !0);
1375
1375
  }
1376
- return Ar(f), g;
1376
+ return Dr(f), g;
1377
1377
  }
1378
- function Fr(f) {
1378
+ function Ir(f) {
1379
1379
  let g = [];
1380
- for (let [C, L] of be)
1380
+ for (let [C, L] of $e)
1381
1381
  if (L < f) {
1382
1382
  let k = b.fetchers.get(C);
1383
- I(k, "Expected fetcher: " + C), k.state === "loading" && (ot(C), be.delete(C), g.push(C));
1383
+ I(k, "Expected fetcher: " + C), k.state === "loading" && (at(C), $e.delete(C), g.push(C));
1384
1384
  }
1385
- return Ar(g), g.length > 0;
1385
+ return Dr(g), g.length > 0;
1386
1386
  }
1387
1387
  function La(f, g) {
1388
1388
  let C = b.blockers.get(f) || Ft;
1389
- return Ce.get(f) !== g && Ce.set(f, g), C;
1389
+ return Re.get(f) !== g && Re.set(f, g), C;
1390
1390
  }
1391
- function Ir(f) {
1392
- b.blockers.delete(f), Ce.delete(f);
1391
+ function Br(f) {
1392
+ b.blockers.delete(f), Re.delete(f);
1393
1393
  }
1394
1394
  function an(f, g) {
1395
1395
  let C = b.blockers.get(f) || Ft;
1396
1396
  I(C.state === "unblocked" && g.state === "blocked" || C.state === "blocked" && g.state === "blocked" || C.state === "blocked" && g.state === "proceeding" || C.state === "blocked" && g.state === "unblocked" || C.state === "proceeding" && g.state === "unblocked", "Invalid blocker state transition: " + C.state + " -> " + g.state);
1397
1397
  let L = new Map(b.blockers);
1398
- L.set(f, g), Ee({
1398
+ L.set(f, g), Ce({
1399
1399
  blockers: L
1400
1400
  });
1401
1401
  }
1402
- function Br(f) {
1402
+ function Hr(f) {
1403
1403
  let {
1404
1404
  currentLocation: g,
1405
1405
  nextLocation: C,
1406
1406
  historyAction: L
1407
1407
  } = f;
1408
- if (Ce.size === 0)
1408
+ if (Re.size === 0)
1409
1409
  return;
1410
- Ce.size > 1 && we(!1, "A router only supports one blocker at a time");
1411
- let k = Array.from(Ce.entries()), [F, H] = k[k.length - 1], O = b.blockers.get(F);
1410
+ Re.size > 1 && we(!1, "A router only supports one blocker at a time");
1411
+ let k = Array.from(Re.entries()), [F, H] = k[k.length - 1], O = b.blockers.get(F);
1412
1412
  if (!(O && O.state === "proceeding") && H({
1413
1413
  currentLocation: g,
1414
1414
  nextLocation: C,
@@ -1417,12 +1417,12 @@ function yi(e) {
1417
1417
  return F;
1418
1418
  }
1419
1419
  function Jn(f) {
1420
- let g = Ae(404, {
1420
+ let g = Pe(404, {
1421
1421
  pathname: f
1422
1422
  }), C = s || i, {
1423
1423
  matches: L,
1424
1424
  route: k
1425
- } = ro(C);
1425
+ } = oo(C);
1426
1426
  return Wn(), {
1427
1427
  notFoundMatches: L,
1428
1428
  route: k,
@@ -1431,15 +1431,15 @@ function yi(e) {
1431
1431
  }
1432
1432
  function Wn(f) {
1433
1433
  let g = [];
1434
- return Me.forEach((C, L) => {
1435
- (!f || f(L)) && (C.cancel(), g.push(L), Me.delete(L));
1434
+ return Se.forEach((C, L) => {
1435
+ (!f || f(L)) && (C.cancel(), g.push(L), Se.delete(L));
1436
1436
  }), g;
1437
1437
  }
1438
1438
  function Ra(f, g, C) {
1439
1439
  if (m = f, v = g, p = C || null, !R && b.navigation === Gn) {
1440
1440
  R = !0;
1441
- let L = Ur(b.location, b.matches);
1442
- L != null && Ee({
1441
+ let L = Vr(b.location, b.matches);
1442
+ L != null && Ce({
1443
1443
  restoreScrollPosition: L
1444
1444
  });
1445
1445
  }
@@ -1447,18 +1447,18 @@ function yi(e) {
1447
1447
  m = null, v = null, p = null;
1448
1448
  };
1449
1449
  }
1450
- function Hr(f, g) {
1450
+ function Ur(f, g) {
1451
1451
  return p && p(f, g.map((L) => Wa(L, b.loaderData))) || f.key;
1452
1452
  }
1453
1453
  function xa(f, g) {
1454
1454
  if (m && v) {
1455
- let C = Hr(f, g);
1455
+ let C = Ur(f, g);
1456
1456
  m[C] = v();
1457
1457
  }
1458
1458
  }
1459
- function Ur(f, g) {
1459
+ function Vr(f, g) {
1460
1460
  if (m) {
1461
- let C = Hr(f, g), L = m[C];
1461
+ let C = Ur(f, g), L = m[C];
1462
1462
  if (typeof L == "number")
1463
1463
  return L;
1464
1464
  }
@@ -1498,7 +1498,7 @@ function yi(e) {
1498
1498
  matches: k,
1499
1499
  fetcherKey: L,
1500
1500
  patch: (D, J) => {
1501
- C.aborted || Yr(D, J, H, O, o);
1501
+ C.aborted || Xr(D, J, H, O, o);
1502
1502
  }
1503
1503
  });
1504
1504
  } catch (D) {
@@ -1514,7 +1514,7 @@ function yi(e) {
1514
1514
  return {
1515
1515
  type: "aborted"
1516
1516
  };
1517
- let A = mt(H, g, l);
1517
+ let A = gt(H, g, l);
1518
1518
  if (A)
1519
1519
  return {
1520
1520
  type: "success",
@@ -1534,7 +1534,7 @@ function yi(e) {
1534
1534
  }
1535
1535
  function Na(f, g) {
1536
1536
  let C = s == null;
1537
- Yr(f, g, s || i, a, o), C && (i = [...i], Ee({}));
1537
+ Xr(f, g, s || i, a, o), C && (i = [...i], Ce({}));
1538
1538
  }
1539
1539
  return U = {
1540
1540
  get basename() {
@@ -1556,20 +1556,20 @@ function yi(e) {
1556
1556
  subscribe: tn,
1557
1557
  enableScrollRestoration: Ra,
1558
1558
  navigate: nn,
1559
- fetch: G,
1559
+ fetch: Y,
1560
1560
  revalidate: rn,
1561
1561
  // Passthrough to history-aware createHref used by useHref so we get proper
1562
1562
  // hash-aware URLs in DOM paths
1563
1563
  createHref: (f) => e.history.createHref(f),
1564
1564
  encodeLocation: (f) => e.history.encodeLocation(f),
1565
- getFetcher: Mr,
1565
+ getFetcher: Ar,
1566
1566
  deleteFetcher: Ea,
1567
1567
  dispose: zn,
1568
1568
  getBlocker: La,
1569
- deleteBlocker: Ir,
1569
+ deleteBlocker: Br,
1570
1570
  patchRoutes: Na,
1571
- _internalFetchControllers: ce,
1572
- _internalActiveDeferreds: Me,
1571
+ _internalFetchControllers: le,
1572
+ _internalActiveDeferreds: Se,
1573
1573
  // TODO: Remove setRoutes, it's temporary to avoid dealing with
1574
1574
  // updating the tree while validating the update algorithm.
1575
1575
  _internalSetRoutes: ka
@@ -1589,7 +1589,7 @@ function sr(e, t, n, r, o, a, i, s) {
1589
1589
  }
1590
1590
  } else
1591
1591
  l = t, c = t[t.length - 1];
1592
- let u = Pn(o || ".", Tn(l, a), Je(e.pathname, n) || e.pathname, s === "path");
1592
+ let u = Pn(o || ".", Tn(l, a), We(e.pathname, n) || e.pathname, s === "path");
1593
1593
  if (o == null && (u.search = e.search, u.hash = e.hash), (o == null || o === "" || o === ".") && c) {
1594
1594
  let d = Lr(u.search);
1595
1595
  if (c.route.index && !d)
@@ -1601,9 +1601,9 @@ function sr(e, t, n, r, o, a, i, s) {
1601
1601
  u.search = m ? "?" + m : "";
1602
1602
  }
1603
1603
  }
1604
- return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Xe([n, u.pathname])), ct(u);
1604
+ return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Qe([n, u.pathname])), ut(u);
1605
1605
  }
1606
- function qr(e, t, n, r) {
1606
+ function Zr(e, t, n, r) {
1607
1607
  if (!r || !vi(r))
1608
1608
  return {
1609
1609
  path: n
@@ -1611,19 +1611,19 @@ function qr(e, t, n, r) {
1611
1611
  if (r.formMethod && !Ti(r.formMethod))
1612
1612
  return {
1613
1613
  path: n,
1614
- error: Ae(405, {
1614
+ error: Pe(405, {
1615
1615
  method: r.formMethod
1616
1616
  })
1617
1617
  };
1618
1618
  let o = () => ({
1619
1619
  path: n,
1620
- error: Ae(400, {
1620
+ error: Pe(400, {
1621
1621
  type: "invalid-body"
1622
1622
  })
1623
- }), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Ho(n);
1623
+ }), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Uo(n);
1624
1624
  if (r.body !== void 0) {
1625
1625
  if (r.formEncType === "text/plain") {
1626
- if (!ze(i))
1626
+ if (!Je(i))
1627
1627
  return o();
1628
1628
  let h = typeof r.body == "string" ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? (
1629
1629
  // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data
@@ -1645,7 +1645,7 @@ function qr(e, t, n, r) {
1645
1645
  }
1646
1646
  };
1647
1647
  } else if (r.formEncType === "application/json") {
1648
- if (!ze(i))
1648
+ if (!Je(i))
1649
1649
  return o();
1650
1650
  try {
1651
1651
  let h = typeof r.body == "string" ? JSON.parse(r.body) : r.body;
@@ -1672,12 +1672,12 @@ function qr(e, t, n, r) {
1672
1672
  else if (r.body instanceof FormData)
1673
1673
  l = cr(r.body), c = r.body;
1674
1674
  else if (r.body instanceof URLSearchParams)
1675
- l = r.body, c = Qr(l);
1675
+ l = r.body, c = eo(l);
1676
1676
  else if (r.body == null)
1677
1677
  l = new URLSearchParams(), c = new FormData();
1678
1678
  else
1679
1679
  try {
1680
- l = new URLSearchParams(r.body), c = Qr(l);
1680
+ l = new URLSearchParams(r.body), c = eo(l);
1681
1681
  } catch {
1682
1682
  return o();
1683
1683
  }
@@ -1689,25 +1689,25 @@ function qr(e, t, n, r) {
1689
1689
  json: void 0,
1690
1690
  text: void 0
1691
1691
  };
1692
- if (ze(u.formMethod))
1692
+ if (Je(u.formMethod))
1693
1693
  return {
1694
1694
  path: n,
1695
1695
  submission: u
1696
1696
  };
1697
- let d = dt(n);
1697
+ let d = ft(n);
1698
1698
  return t && d.search && Lr(d.search) && l.append("index", ""), d.search = "?" + l, {
1699
- path: ct(d),
1699
+ path: ut(d),
1700
1700
  submission: u
1701
1701
  };
1702
1702
  }
1703
- function Zr(e, t, n) {
1703
+ function Kr(e, t, n) {
1704
1704
  n === void 0 && (n = !1);
1705
1705
  let r = e.findIndex((o) => o.route.id === t);
1706
1706
  return r >= 0 ? e.slice(0, n ? r + 1 : r) : e;
1707
1707
  }
1708
- function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
1709
- let v = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0, R = e.createURL(t.location), S = e.createURL(o), x = n;
1710
- a && t.errors ? x = Zr(n, Object.keys(t.errors)[0], !0) : p && Ie(p[1]) && (x = Zr(n, p[0]));
1708
+ function Gr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
1709
+ let v = p ? Fe(p[1]) ? p[1].error : p[1].data : void 0, R = e.createURL(t.location), S = e.createURL(o), x = n;
1710
+ a && t.errors ? x = Kr(n, Object.keys(t.errors)[0], !0) : p && Fe(p[1]) && (x = Kr(n, p[0]));
1711
1711
  let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U = x.filter((T, K) => {
1712
1712
  let {
1713
1713
  route: B
@@ -1720,26 +1720,26 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
1720
1720
  return lr(B, t.loaderData, t.errors);
1721
1721
  if (wi(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
1722
1722
  return !0;
1723
- let ae = t.matches[K], ee = T;
1724
- return Gr(T, fe({
1723
+ let ae = t.matches[K], ie = T;
1724
+ return Yr(T, fe({
1725
1725
  currentUrl: R,
1726
1726
  currentParams: ae.params,
1727
1727
  nextUrl: S,
1728
- nextParams: ee.params
1728
+ nextParams: ie.params
1729
1729
  }, r, {
1730
1730
  actionResult: v,
1731
1731
  actionStatus: _,
1732
1732
  defaultShouldRevalidate: N ? !1 : (
1733
1733
  // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
1734
1734
  s || R.pathname + R.search === S.pathname + S.search || // Search params affect all loaders
1735
- R.search !== S.search || Io(ae, ee)
1735
+ R.search !== S.search || Bo(ae, ie)
1736
1736
  )
1737
1737
  }));
1738
1738
  }), b = [];
1739
1739
  return d.forEach((T, K) => {
1740
1740
  if (a || !n.some((he) => he.route.id === T.routeId) || u.has(K))
1741
1741
  return;
1742
- let B = mt(w, T.path, m);
1742
+ let B = gt(w, T.path, m);
1743
1743
  if (!B) {
1744
1744
  b.push({
1745
1745
  key: K,
@@ -1751,8 +1751,8 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
1751
1751
  });
1752
1752
  return;
1753
1753
  }
1754
- let ae = t.fetchers.get(K), ee = $t(B, T.path), te = !1;
1755
- h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Gr(ee, fe({
1754
+ let ae = t.fetchers.get(K), ie = $t(B, T.path), te = !1;
1755
+ h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Yr(ie, fe({
1756
1756
  currentUrl: R,
1757
1757
  currentParams: t.matches[t.matches.length - 1].params,
1758
1758
  nextUrl: S,
@@ -1766,7 +1766,7 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
1766
1766
  routeId: T.routeId,
1767
1767
  path: T.path,
1768
1768
  matches: B,
1769
- match: ee,
1769
+ match: ie,
1770
1770
  controller: new AbortController()
1771
1771
  });
1772
1772
  }), [U, b];
@@ -1787,7 +1787,7 @@ function wi(e, t, n) {
1787
1787
  ), o = e[n.route.id] === void 0;
1788
1788
  return r || o;
1789
1789
  }
1790
- function Io(e, t) {
1790
+ function Bo(e, t) {
1791
1791
  let n = e.route.path;
1792
1792
  return (
1793
1793
  // param change for this match, /users/123 -> /users/456
@@ -1796,7 +1796,7 @@ function Io(e, t) {
1796
1796
  n != null && n.endsWith("*") && e.params["*"] !== t.params["*"]
1797
1797
  );
1798
1798
  }
1799
- function Gr(e, t) {
1799
+ function Yr(e, t) {
1800
1800
  if (e.route.shouldRevalidate) {
1801
1801
  let n = e.route.shouldRevalidate(t);
1802
1802
  if (typeof n == "boolean")
@@ -1804,7 +1804,7 @@ function Gr(e, t) {
1804
1804
  }
1805
1805
  return t.defaultShouldRevalidate;
1806
1806
  }
1807
- function Yr(e, t, n, r, o) {
1807
+ function Xr(e, t, n, r, o) {
1808
1808
  var a;
1809
1809
  let i;
1810
1810
  if (e) {
@@ -1812,13 +1812,13 @@ function Yr(e, t, n, r, o) {
1812
1812
  I(c, "No route found to patch children into: routeId = " + e), c.children || (c.children = []), i = c.children;
1813
1813
  } else
1814
1814
  i = n;
1815
- let s = t.filter((c) => !i.some((u) => Bo(c, u))), l = Cn(s, o, [e || "_", "patch", String(((a = i) == null ? void 0 : a.length) || "0")], r);
1815
+ let s = t.filter((c) => !i.some((u) => Ho(c, u))), l = Cn(s, o, [e || "_", "patch", String(((a = i) == null ? void 0 : a.length) || "0")], r);
1816
1816
  i.push(...l);
1817
1817
  }
1818
- function Bo(e, t) {
1818
+ function Ho(e, t) {
1819
1819
  return "id" in e && "id" in t && e.id === t.id ? !0 : e.index === t.index && e.path === t.path && e.caseSensitive === t.caseSensitive ? (!e.children || e.children.length === 0) && (!t.children || t.children.length === 0) ? !0 : e.children.every((n, r) => {
1820
1820
  var o;
1821
- return (o = t.children) == null ? void 0 : o.some((a) => Bo(n, a));
1821
+ return (o = t.children) == null ? void 0 : o.some((a) => Ho(n, a));
1822
1822
  }) : !1;
1823
1823
  }
1824
1824
  async function bi(e, t, n) {
@@ -1914,7 +1914,7 @@ async function Ei(e, t, n, r, o, a) {
1914
1914
  i = await l(c);
1915
1915
  else if (e === "action") {
1916
1916
  let u = new URL(t.url), d = u.pathname + u.search;
1917
- throw Ae(405, {
1917
+ throw Pe(405, {
1918
1918
  method: t.method,
1919
1919
  pathname: d,
1920
1920
  routeId: n.route.id
@@ -1928,7 +1928,7 @@ async function Ei(e, t, n, r, o, a) {
1928
1928
  i = await l(c);
1929
1929
  else {
1930
1930
  let u = new URL(t.url), d = u.pathname + u.search;
1931
- throw Ae(404, {
1931
+ throw Pe(404, {
1932
1932
  pathname: d
1933
1933
  });
1934
1934
  }
@@ -1948,7 +1948,7 @@ async function Li(e) {
1948
1948
  result: t,
1949
1949
  type: n
1950
1950
  } = e;
1951
- if (Uo(t)) {
1951
+ if (Vo(t)) {
1952
1952
  let d;
1953
1953
  try {
1954
1954
  let h = t.headers.get("Content-Type");
@@ -1972,7 +1972,7 @@ async function Li(e) {
1972
1972
  };
1973
1973
  }
1974
1974
  if (n === oe.error) {
1975
- if (oo(t)) {
1975
+ if (ao(t)) {
1976
1976
  var r, o;
1977
1977
  if (t.data instanceof Error) {
1978
1978
  var a, i;
@@ -2005,7 +2005,7 @@ async function Li(e) {
2005
2005
  headers: ((l = t.init) == null ? void 0 : l.headers) && new Headers(t.init.headers)
2006
2006
  };
2007
2007
  }
2008
- if (oo(t)) {
2008
+ if (ao(t)) {
2009
2009
  var c, u;
2010
2010
  return {
2011
2011
  type: oe.data,
@@ -2027,19 +2027,19 @@ function Ri(e, t, n, r, o, a) {
2027
2027
  }
2028
2028
  return e;
2029
2029
  }
2030
- function Xr(e, t, n) {
2030
+ function Qr(e, t, n) {
2031
2031
  if (Cr.test(e)) {
2032
- let r = e, o = r.startsWith("//") ? new URL(t.protocol + r) : new URL(r), a = Je(o.pathname, n) != null;
2032
+ let r = e, o = r.startsWith("//") ? new URL(t.protocol + r) : new URL(r), a = We(o.pathname, n) != null;
2033
2033
  if (o.origin === t.origin && a)
2034
2034
  return o.pathname + o.search + o.hash;
2035
2035
  }
2036
2036
  return e;
2037
2037
  }
2038
- function Lt(e, t, n, r) {
2039
- let o = e.createURL(Ho(t)).toString(), a = {
2038
+ function Rt(e, t, n, r) {
2039
+ let o = e.createURL(Uo(t)).toString(), a = {
2040
2040
  signal: n
2041
2041
  };
2042
- if (r && ze(r.formMethod)) {
2042
+ if (r && Je(r.formMethod)) {
2043
2043
  let {
2044
2044
  formMethod: i,
2045
2045
  formEncType: s
@@ -2056,28 +2056,28 @@ function cr(e) {
2056
2056
  t.append(n, typeof r == "string" ? r : r.name);
2057
2057
  return t;
2058
2058
  }
2059
- function Qr(e) {
2059
+ function eo(e) {
2060
2060
  let t = new FormData();
2061
2061
  for (let [n, r] of e.entries())
2062
2062
  t.append(n, r);
2063
2063
  return t;
2064
2064
  }
2065
2065
  function xi(e, t, n, r, o) {
2066
- let a = {}, i = null, s, l = !1, c = {}, u = n && Ie(n[1]) ? n[1].error : void 0;
2066
+ let a = {}, i = null, s, l = !1, c = {}, u = n && Fe(n[1]) ? n[1].error : void 0;
2067
2067
  return e.forEach((d) => {
2068
2068
  if (!(d.route.id in t))
2069
2069
  return;
2070
2070
  let h = d.route.id, w = t[h];
2071
- if (I(!yt(w), "Cannot handle redirect results in processLoaderData"), Ie(w)) {
2071
+ if (I(!vt(w), "Cannot handle redirect results in processLoaderData"), Fe(w)) {
2072
2072
  let m = w.error;
2073
2073
  u !== void 0 && (m = u, u = void 0), i = i || {};
2074
2074
  {
2075
- let p = gt(e, h);
2075
+ let p = yt(e, h);
2076
2076
  i[p.route.id] == null && (i[p.route.id] = m);
2077
2077
  }
2078
2078
  a[h] = void 0, l || (l = !0, s = Zt(w.error) ? w.error.status : 500), w.headers && (c[h] = w.headers);
2079
2079
  } else
2080
- lt(w) ? (r.set(h, w.deferredData), a[h] = w.deferredData.data, w.statusCode != null && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers)) : (a[h] = w.data, w.statusCode && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers));
2080
+ ct(w) ? (r.set(h, w.deferredData), a[h] = w.deferredData.data, w.statusCode != null && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers)) : (a[h] = w.data, w.statusCode && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers));
2081
2081
  }), u !== void 0 && n && (i = {
2082
2082
  [n[0]]: u
2083
2083
  }, a[n[0]] = void 0), {
@@ -2087,7 +2087,7 @@ function xi(e, t, n, r, o) {
2087
2087
  loaderHeaders: c
2088
2088
  };
2089
2089
  }
2090
- function eo(e, t, n, r, o, a, i) {
2090
+ function to(e, t, n, r, o, a, i) {
2091
2091
  let {
2092
2092
  loaderData: s,
2093
2093
  errors: l
@@ -2099,17 +2099,17 @@ function eo(e, t, n, r, o, a, i) {
2099
2099
  controller: h
2100
2100
  } = c, w = a[u];
2101
2101
  if (I(w, "Did not find corresponding fetcher result"), !(h && h.signal.aborted))
2102
- if (Ie(w)) {
2103
- let m = gt(e.matches, d == null ? void 0 : d.route.id);
2102
+ if (Fe(w)) {
2103
+ let m = yt(e.matches, d == null ? void 0 : d.route.id);
2104
2104
  l && l[m.route.id] || (l = fe({}, l, {
2105
2105
  [m.route.id]: w.error
2106
2106
  })), e.fetchers.delete(u);
2107
- } else if (yt(w))
2107
+ } else if (vt(w))
2108
2108
  I(!1, "Unhandled fetcher revalidation redirect");
2109
- else if (lt(w))
2109
+ else if (ct(w))
2110
2110
  I(!1, "Unhandled fetcher deferred data");
2111
2111
  else {
2112
- let m = at(w.data);
2112
+ let m = it(w.data);
2113
2113
  e.fetchers.set(u, m);
2114
2114
  }
2115
2115
  }), {
@@ -2117,7 +2117,7 @@ function eo(e, t, n, r, o, a, i) {
2117
2117
  errors: l
2118
2118
  };
2119
2119
  }
2120
- function to(e, t, n, r) {
2120
+ function no(e, t, n, r) {
2121
2121
  let o = fe({}, t);
2122
2122
  for (let a of n) {
2123
2123
  let i = a.route.id;
@@ -2126,8 +2126,8 @@ function to(e, t, n, r) {
2126
2126
  }
2127
2127
  return o;
2128
2128
  }
2129
- function no(e) {
2130
- return e ? Ie(e[1]) ? {
2129
+ function ro(e) {
2130
+ return e ? Fe(e[1]) ? {
2131
2131
  // Clear out prior actionData on errors
2132
2132
  actionData: {}
2133
2133
  } : {
@@ -2136,10 +2136,10 @@ function no(e) {
2136
2136
  }
2137
2137
  } : {};
2138
2138
  }
2139
- function gt(e, t) {
2139
+ function yt(e, t) {
2140
2140
  return (t ? e.slice(0, e.findIndex((r) => r.route.id === t) + 1) : [...e]).reverse().find((r) => r.route.hasErrorBoundary === !0) || e[0];
2141
2141
  }
2142
- function ro(e) {
2142
+ function oo(e) {
2143
2143
  let t = e.length === 1 ? e[0] : e.find((n) => n.index || !n.path || n.path === "/") || {
2144
2144
  id: "__shim-error-route__"
2145
2145
  };
@@ -2153,7 +2153,7 @@ function ro(e) {
2153
2153
  route: t
2154
2154
  };
2155
2155
  }
2156
- function Ae(e, t) {
2156
+ function Pe(e, t) {
2157
2157
  let {
2158
2158
  pathname: n,
2159
2159
  routeId: r,
@@ -2167,16 +2167,16 @@ function dn(e) {
2167
2167
  let t = Object.entries(e);
2168
2168
  for (let n = t.length - 1; n >= 0; n--) {
2169
2169
  let [r, o] = t[n];
2170
- if (yt(o))
2170
+ if (vt(o))
2171
2171
  return {
2172
2172
  key: r,
2173
2173
  result: o
2174
2174
  };
2175
2175
  }
2176
2176
  }
2177
- function Ho(e) {
2178
- let t = typeof e == "string" ? dt(e) : e;
2179
- return ct(fe({}, t, {
2177
+ function Uo(e) {
2178
+ let t = typeof e == "string" ? ft(e) : e;
2179
+ return ut(fe({}, t, {
2180
2180
  hash: ""
2181
2181
  }));
2182
2182
  }
@@ -2184,31 +2184,31 @@ function ki(e, t) {
2184
2184
  return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
2185
2185
  }
2186
2186
  function Ni(e) {
2187
- return Uo(e.result) && hi.has(e.result.status);
2187
+ return Vo(e.result) && hi.has(e.result.status);
2188
2188
  }
2189
- function lt(e) {
2189
+ function ct(e) {
2190
2190
  return e.type === oe.deferred;
2191
2191
  }
2192
- function Ie(e) {
2192
+ function Fe(e) {
2193
2193
  return e.type === oe.error;
2194
2194
  }
2195
- function yt(e) {
2195
+ function vt(e) {
2196
2196
  return (e && e.type) === oe.redirect;
2197
2197
  }
2198
- function oo(e) {
2198
+ function ao(e) {
2199
2199
  return typeof e == "object" && e != null && "type" in e && "data" in e && "init" in e && e.type === "DataWithResponseInit";
2200
2200
  }
2201
2201
  function _i(e) {
2202
2202
  let t = e;
2203
2203
  return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
2204
2204
  }
2205
- function Uo(e) {
2205
+ function Vo(e) {
2206
2206
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
2207
2207
  }
2208
2208
  function Ti(e) {
2209
2209
  return fi.has(e.toLowerCase());
2210
2210
  }
2211
- function ze(e) {
2211
+ function Je(e) {
2212
2212
  return ui.has(e.toLowerCase());
2213
2213
  }
2214
2214
  async function Pi(e, t, n, r, o) {
@@ -2217,8 +2217,8 @@ async function Pi(e, t, n, r, o) {
2217
2217
  let [s, l] = a[i], c = e.find((h) => (h == null ? void 0 : h.route.id) === s);
2218
2218
  if (!c)
2219
2219
  continue;
2220
- let u = r.find((h) => h.route.id === c.route.id), d = u != null && !Io(u, c) && (o && o[c.route.id]) !== void 0;
2221
- lt(l) && d && await Er(l, n, !1).then((h) => {
2220
+ let u = r.find((h) => h.route.id === c.route.id), d = u != null && !Bo(u, c) && (o && o[c.route.id]) !== void 0;
2221
+ ct(l) && d && await Er(l, n, !1).then((h) => {
2222
2222
  h && (t[s] = h);
2223
2223
  });
2224
2224
  }
@@ -2230,7 +2230,7 @@ async function Oi(e, t, n) {
2230
2230
  routeId: a,
2231
2231
  controller: i
2232
2232
  } = n[r], s = t[o];
2233
- e.find((c) => (c == null ? void 0 : c.route.id) === a) && lt(s) && (I(i, "Expected an AbortController for revalidating fetcher deferred result"), await Er(s, i.signal, !0).then((c) => {
2233
+ e.find((c) => (c == null ? void 0 : c.route.id) === a) && ct(s) && (I(i, "Expected an AbortController for revalidating fetcher deferred result"), await Er(s, i.signal, !0).then((c) => {
2234
2234
  c && (t[o] = c);
2235
2235
  }));
2236
2236
  }
@@ -2259,13 +2259,13 @@ function Lr(e) {
2259
2259
  return new URLSearchParams(e).getAll("index").some((t) => t === "");
2260
2260
  }
2261
2261
  function $t(e, t) {
2262
- let n = typeof t == "string" ? dt(t).search : t.search;
2262
+ let n = typeof t == "string" ? ft(t).search : t.search;
2263
2263
  if (e[e.length - 1].route.index && Lr(n || ""))
2264
2264
  return e[e.length - 1];
2265
- let r = Ao(e);
2265
+ let r = Do(e);
2266
2266
  return r[r.length - 1];
2267
2267
  }
2268
- function ao(e) {
2268
+ function io(e) {
2269
2269
  let {
2270
2270
  formMethod: t,
2271
2271
  formAction: n,
@@ -2370,7 +2370,7 @@ function Ai(e, t) {
2370
2370
  data: t ? t.data : void 0
2371
2371
  };
2372
2372
  }
2373
- function at(e) {
2373
+ function it(e) {
2374
2374
  return {
2375
2375
  state: "idle",
2376
2376
  formMethod: void 0,
@@ -2384,7 +2384,7 @@ function at(e) {
2384
2384
  }
2385
2385
  function Di(e, t) {
2386
2386
  try {
2387
- let n = e.sessionStorage.getItem(Fo);
2387
+ let n = e.sessionStorage.getItem(Io);
2388
2388
  if (n) {
2389
2389
  let r = JSON.parse(n);
2390
2390
  for (let [o, a] of Object.entries(r || {}))
@@ -2399,7 +2399,7 @@ function Fi(e, t) {
2399
2399
  for (let [r, o] of t)
2400
2400
  n[r] = [...o];
2401
2401
  try {
2402
- e.sessionStorage.setItem(Fo, JSON.stringify(n));
2402
+ e.sessionStorage.setItem(Io, JSON.stringify(n));
2403
2403
  } catch (r) {
2404
2404
  we(!1, "Failed to save applied view transitions in sessionStorage (" + r + ").");
2405
2405
  }
@@ -2431,16 +2431,16 @@ const On = /* @__PURE__ */ y.createContext(null);
2431
2431
  process.env.NODE_ENV !== "production" && (On.displayName = "DataRouterState");
2432
2432
  const Ii = /* @__PURE__ */ y.createContext(null);
2433
2433
  process.env.NODE_ENV !== "production" && (Ii.displayName = "Await");
2434
- const je = /* @__PURE__ */ y.createContext(null);
2435
- process.env.NODE_ENV !== "production" && (je.displayName = "Navigation");
2434
+ const Ve = /* @__PURE__ */ y.createContext(null);
2435
+ process.env.NODE_ENV !== "production" && (Ve.displayName = "Navigation");
2436
2436
  const Mn = /* @__PURE__ */ y.createContext(null);
2437
2437
  process.env.NODE_ENV !== "production" && (Mn.displayName = "Location");
2438
- const $e = /* @__PURE__ */ y.createContext({
2438
+ const je = /* @__PURE__ */ y.createContext({
2439
2439
  outlet: null,
2440
2440
  matches: [],
2441
2441
  isDataRoute: !1
2442
2442
  });
2443
- process.env.NODE_ENV !== "production" && ($e.displayName = "Route");
2443
+ process.env.NODE_ENV !== "production" && (je.displayName = "Route");
2444
2444
  const Rr = /* @__PURE__ */ y.createContext(null);
2445
2445
  process.env.NODE_ENV !== "production" && (Rr.displayName = "RouteError");
2446
2446
  function Bi(e, t) {
@@ -2456,14 +2456,14 @@ function Bi(e, t) {
2456
2456
  let {
2457
2457
  basename: r,
2458
2458
  navigator: o
2459
- } = y.useContext(je), {
2459
+ } = y.useContext(Ve), {
2460
2460
  hash: a,
2461
2461
  pathname: i,
2462
2462
  search: s
2463
2463
  } = Yt(e, {
2464
2464
  relative: n
2465
2465
  }), l = i;
2466
- return r !== "/" && (l = i === "/" ? r : Xe([r, i])), o.createHref({
2466
+ return r !== "/" && (l = i === "/" ? r : Qe([r, i])), o.createHref({
2467
2467
  pathname: l,
2468
2468
  search: s,
2469
2469
  hash: a
@@ -2472,7 +2472,7 @@ function Bi(e, t) {
2472
2472
  function Tt() {
2473
2473
  return y.useContext(Mn) != null;
2474
2474
  }
2475
- function Qe() {
2475
+ function et() {
2476
2476
  return Tt() || (process.env.NODE_ENV !== "production" ? I(
2477
2477
  !1,
2478
2478
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -2480,14 +2480,14 @@ function Qe() {
2480
2480
  "useLocation() may be used only in the context of a <Router> component."
2481
2481
  ) : I(!1)), y.useContext(Mn).location;
2482
2482
  }
2483
- const Vo = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2484
- function jo(e) {
2485
- y.useContext(je).static || y.useLayoutEffect(e);
2483
+ const jo = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2484
+ function $o(e) {
2485
+ y.useContext(Ve).static || y.useLayoutEffect(e);
2486
2486
  }
2487
2487
  function An() {
2488
2488
  let {
2489
2489
  isDataRoute: e
2490
- } = y.useContext($e);
2490
+ } = y.useContext(je);
2491
2491
  return e ? Qi() : Hi();
2492
2492
  }
2493
2493
  function Hi() {
@@ -2501,26 +2501,26 @@ function Hi() {
2501
2501
  basename: t,
2502
2502
  future: n,
2503
2503
  navigator: r
2504
- } = y.useContext(je), {
2504
+ } = y.useContext(Ve), {
2505
2505
  matches: o
2506
- } = y.useContext($e), {
2506
+ } = y.useContext(je), {
2507
2507
  pathname: a
2508
- } = Qe(), i = JSON.stringify(Tn(o, n.v7_relativeSplatPath)), s = y.useRef(!1);
2509
- return jo(() => {
2508
+ } = et(), i = JSON.stringify(Tn(o, n.v7_relativeSplatPath)), s = y.useRef(!1);
2509
+ return $o(() => {
2510
2510
  s.current = !0;
2511
2511
  }), y.useCallback(function(c, u) {
2512
- if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current, Vo), !s.current) return;
2512
+ if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current, jo), !s.current) return;
2513
2513
  if (typeof c == "number") {
2514
2514
  r.go(c);
2515
2515
  return;
2516
2516
  }
2517
2517
  let d = Pn(c, JSON.parse(i), a, u.relative === "path");
2518
- e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Xe([t, d.pathname])), (u.replace ? r.replace : r.push)(d, u.state, u);
2518
+ e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Qe([t, d.pathname])), (u.replace ? r.replace : r.push)(d, u.state, u);
2519
2519
  }, [t, r, i, a, e]);
2520
2520
  }
2521
2521
  const Ui = /* @__PURE__ */ y.createContext(null);
2522
2522
  function Vi(e) {
2523
- let t = y.useContext($e).outlet;
2523
+ let t = y.useContext(je).outlet;
2524
2524
  return t && /* @__PURE__ */ y.createElement(Ui.Provider, {
2525
2525
  value: e
2526
2526
  }, t);
@@ -2528,7 +2528,7 @@ function Vi(e) {
2528
2528
  function kd() {
2529
2529
  let {
2530
2530
  matches: e
2531
- } = y.useContext($e), t = e[e.length - 1];
2531
+ } = y.useContext(je), t = e[e.length - 1];
2532
2532
  return t ? t.params : {};
2533
2533
  }
2534
2534
  function Yt(e, t) {
@@ -2536,11 +2536,11 @@ function Yt(e, t) {
2536
2536
  relative: n
2537
2537
  } = t === void 0 ? {} : t, {
2538
2538
  future: r
2539
- } = y.useContext(je), {
2539
+ } = y.useContext(Ve), {
2540
2540
  matches: o
2541
- } = y.useContext($e), {
2541
+ } = y.useContext(je), {
2542
2542
  pathname: a
2543
- } = Qe(), i = JSON.stringify(Tn(o, r.v7_relativeSplatPath));
2543
+ } = et(), i = JSON.stringify(Tn(o, r.v7_relativeSplatPath));
2544
2544
  return y.useMemo(() => Pn(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
2545
2545
  }
2546
2546
  function ji(e, t, n, r) {
@@ -2553,33 +2553,33 @@ function ji(e, t, n, r) {
2553
2553
  let {
2554
2554
  navigator: o,
2555
2555
  static: a
2556
- } = y.useContext(je), {
2556
+ } = y.useContext(Ve), {
2557
2557
  matches: i
2558
- } = y.useContext($e), s = i[i.length - 1], l = s ? s.params : {}, c = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", d = s && s.route;
2558
+ } = y.useContext(je), s = i[i.length - 1], l = s ? s.params : {}, c = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", d = s && s.route;
2559
2559
  if (process.env.NODE_ENV !== "production") {
2560
2560
  let S = d && d.path || "";
2561
- zo(c, !d || S.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + c + '" (under <Route path="' + S + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2561
+ Jo(c, !d || S.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + c + '" (under <Route path="' + S + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2562
2562
 
2563
2563
  ` + ('Please change the parent <Route path="' + S + '"> to <Route ') + ('path="' + (S === "/" ? "*" : S + "/*") + '">.'));
2564
2564
  }
2565
- let h = Qe(), w;
2565
+ let h = et(), w;
2566
2566
  w = h;
2567
2567
  let m = w.pathname || "/", p = m;
2568
2568
  if (u !== "/") {
2569
2569
  let S = u.replace(/^\//, "").split("/");
2570
2570
  p = "/" + m.replace(/^\//, "").split("/").slice(S.length).join("/");
2571
2571
  }
2572
- let v = !a && n && n.matches && n.matches.length > 0 ? n.matches : mt(e, {
2572
+ let v = !a && n && n.matches && n.matches.length > 0 ? n.matches : gt(e, {
2573
2573
  pathname: p
2574
2574
  });
2575
2575
  return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + w.pathname + w.search + w.hash + '" '), process.env.NODE_ENV !== "production" && we(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + w.pathname + w.search + w.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), qi(v && v.map((S) => Object.assign({}, S, {
2576
2576
  params: Object.assign({}, l, S.params),
2577
- pathname: Xe([
2577
+ pathname: Qe([
2578
2578
  u,
2579
2579
  // Re-encode pathnames that were decoded inside matchRoutes
2580
2580
  o.encodeLocation ? o.encodeLocation(S.pathname).pathname : S.pathname
2581
2581
  ]),
2582
- pathnameBase: S.pathnameBase === "/" ? u : Xe([
2582
+ pathnameBase: S.pathnameBase === "/" ? u : Qe([
2583
2583
  u,
2584
2584
  // Re-encode pathnames that were decoded inside matchRoutes
2585
2585
  o.encodeLocation ? o.encodeLocation(S.pathnameBase).pathname : S.pathnameBase
@@ -2635,7 +2635,7 @@ class Ji extends y.Component {
2635
2635
  console.error("React Router caught the following error during render", t, n);
2636
2636
  }
2637
2637
  render() {
2638
- return this.state.error !== void 0 ? /* @__PURE__ */ y.createElement($e.Provider, {
2638
+ return this.state.error !== void 0 ? /* @__PURE__ */ y.createElement(je.Provider, {
2639
2639
  value: this.props.routeContext
2640
2640
  }, /* @__PURE__ */ y.createElement(Rr.Provider, {
2641
2641
  value: this.state.error,
@@ -2649,7 +2649,7 @@ function Wi(e) {
2649
2649
  match: n,
2650
2650
  children: r
2651
2651
  } = e, o = y.useContext(_t);
2652
- return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ y.createElement($e.Provider, {
2652
+ return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ y.createElement(je.Provider, {
2653
2653
  value: t
2654
2654
  }, r);
2655
2655
  }
@@ -2688,7 +2688,7 @@ function qi(e, t, n, r) {
2688
2688
  }
2689
2689
  return i.reduceRight((u, d, h) => {
2690
2690
  let w, m = !1, p = null, v = null;
2691
- n && (w = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || zi, l && (c < 0 && h === 0 ? (zo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
2691
+ n && (w = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || zi, l && (c < 0 && h === 0 ? (Jo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
2692
2692
  let R = t.concat(i.slice(0, h + 1)), S = () => {
2693
2693
  let x;
2694
2694
  return w ? x = p : m ? x = v : d.route.Component ? x = /* @__PURE__ */ y.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ y.createElement(Wi, {
@@ -2715,9 +2715,9 @@ function qi(e, t, n, r) {
2715
2715
  }) : S();
2716
2716
  }, null);
2717
2717
  }
2718
- var $o = /* @__PURE__ */ function(e) {
2718
+ var zo = /* @__PURE__ */ function(e) {
2719
2719
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
2720
- }($o || {}), Kt = /* @__PURE__ */ function(e) {
2720
+ }(zo || {}), Kt = /* @__PURE__ */ function(e) {
2721
2721
  return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
2722
2722
  }(Kt || {});
2723
2723
  function xr(e) {
@@ -2732,7 +2732,7 @@ function Ki(e) {
2732
2732
  return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2733
2733
  }
2734
2734
  function Gi(e) {
2735
- let t = y.useContext($e);
2735
+ let t = y.useContext(je);
2736
2736
  return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
2737
2737
  }
2738
2738
  function kr(e) {
@@ -2750,26 +2750,26 @@ function Xi() {
2750
2750
  function Qi() {
2751
2751
  let {
2752
2752
  router: e
2753
- } = Zi($o.UseNavigateStable), t = kr(Kt.UseNavigateStable), n = y.useRef(!1);
2754
- return jo(() => {
2753
+ } = Zi(zo.UseNavigateStable), t = kr(Kt.UseNavigateStable), n = y.useRef(!1);
2754
+ return $o(() => {
2755
2755
  n.current = !0;
2756
2756
  }), y.useCallback(function(o, a) {
2757
- a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, Vo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, Rn({
2757
+ a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, jo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, Rn({
2758
2758
  fromRouteId: t
2759
2759
  }, a)));
2760
2760
  }, [e, t]);
2761
2761
  }
2762
- const io = {};
2763
- function zo(e, t, n) {
2764
- !t && !io[e] && (io[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
2765
- }
2766
2762
  const so = {};
2763
+ function Jo(e, t, n) {
2764
+ !t && !so[e] && (so[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
2765
+ }
2766
+ const lo = {};
2767
2767
  function es(e, t) {
2768
- process.env.NODE_ENV !== "production" && !so[t] && (so[t] = !0, console.warn(t));
2768
+ process.env.NODE_ENV !== "production" && !lo[t] && (lo[t] = !0, console.warn(t));
2769
2769
  }
2770
- const Rt = (e, t, n) => es(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
2770
+ const xt = (e, t, n) => es(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
2771
2771
  function ts(e, t) {
2772
- (e == null ? void 0 : e.v7_startTransition) === void 0 && Rt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && Rt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && Rt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && Rt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && Rt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && Rt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
2772
+ (e == null ? void 0 : e.v7_startTransition) === void 0 && xt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && xt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && xt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && xt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && xt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && xt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
2773
2773
  }
2774
2774
  function Nd(e) {
2775
2775
  let {
@@ -2787,13 +2787,13 @@ function Nd(e) {
2787
2787
  let {
2788
2788
  future: a,
2789
2789
  static: i
2790
- } = y.useContext(je);
2790
+ } = y.useContext(Ve);
2791
2791
  process.env.NODE_ENV !== "production" && we(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
2792
2792
  let {
2793
2793
  matches: s
2794
- } = y.useContext($e), {
2794
+ } = y.useContext(je), {
2795
2795
  pathname: l
2796
- } = Qe(), c = An(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
2796
+ } = et(), c = An(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
2797
2797
  return y.useEffect(() => c(JSON.parse(d), {
2798
2798
  replace: n,
2799
2799
  state: r,
@@ -2822,7 +2822,7 @@ function ns(e) {
2822
2822
  v7_relativeSplatPath: !1
2823
2823
  }, s)
2824
2824
  }), [l, s, a, i]);
2825
- typeof r == "string" && (r = dt(r));
2825
+ typeof r == "string" && (r = ft(r));
2826
2826
  let {
2827
2827
  pathname: u = "/",
2828
2828
  search: d = "",
@@ -2830,7 +2830,7 @@ function ns(e) {
2830
2830
  state: w = null,
2831
2831
  key: m = "default"
2832
2832
  } = r, p = y.useMemo(() => {
2833
- let v = Je(u, l);
2833
+ let v = We(u, l);
2834
2834
  return v == null ? null : {
2835
2835
  location: {
2836
2836
  pathname: v,
@@ -2842,7 +2842,7 @@ function ns(e) {
2842
2842
  navigationType: o
2843
2843
  };
2844
2844
  }, [l, u, d, h, w, m, o]);
2845
- return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ y.createElement(je.Provider, {
2845
+ return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ y.createElement(Ve.Provider, {
2846
2846
  value: c
2847
2847
  }, /* @__PURE__ */ y.createElement(Mn.Provider, {
2848
2848
  children: n,
@@ -2878,15 +2878,15 @@ function rs(e) {
2878
2878
  *
2879
2879
  * @license MIT
2880
2880
  */
2881
- function ut() {
2882
- return ut = Object.assign ? Object.assign.bind() : function(e) {
2881
+ function dt() {
2882
+ return dt = Object.assign ? Object.assign.bind() : function(e) {
2883
2883
  for (var t = 1; t < arguments.length; t++) {
2884
2884
  var n = arguments[t];
2885
2885
  for (var r in n)
2886
2886
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2887
2887
  }
2888
2888
  return e;
2889
- }, ut.apply(this, arguments);
2889
+ }, dt.apply(this, arguments);
2890
2890
  }
2891
2891
  function Nr(e, t) {
2892
2892
  if (e == null) return {};
@@ -2952,13 +2952,13 @@ function fs(e, t) {
2952
2952
  let n, r, o, a, i;
2953
2953
  if (as(e)) {
2954
2954
  let s = e.getAttribute("action");
2955
- r = s ? Je(s, t) : null, n = e.getAttribute("method") || yn, o = Xn(e.getAttribute("enctype")) || vn, a = new FormData(e);
2955
+ r = s ? We(s, t) : null, n = e.getAttribute("method") || yn, o = Xn(e.getAttribute("enctype")) || vn, a = new FormData(e);
2956
2956
  } else if (os(e) || is(e) && (e.type === "submit" || e.type === "image")) {
2957
2957
  let s = e.form;
2958
2958
  if (s == null)
2959
2959
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
2960
2960
  let l = e.getAttribute("formaction") || s.getAttribute("action");
2961
- if (r = l ? Je(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || yn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || vn, a = new FormData(s, e), !us()) {
2961
+ if (r = l ? We(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || yn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || vn, a = new FormData(s, e), !us()) {
2962
2962
  let {
2963
2963
  name: c,
2964
2964
  type: u,
@@ -2990,7 +2990,7 @@ try {
2990
2990
  function Td(e, t) {
2991
2991
  return yi({
2992
2992
  basename: void 0,
2993
- future: ut({}, void 0, {
2993
+ future: dt({}, void 0, {
2994
2994
  v7_prependBasename: !0
2995
2995
  }),
2996
2996
  history: Va({
@@ -3007,7 +3007,7 @@ function Td(e, t) {
3007
3007
  function ys() {
3008
3008
  var e;
3009
3009
  let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
3010
- return t && t.errors && (t = ut({}, t, {
3010
+ return t && t.errors && (t = dt({}, t, {
3011
3011
  errors: vs(t.errors)
3012
3012
  })), t;
3013
3013
  }
@@ -3039,14 +3039,14 @@ const _r = /* @__PURE__ */ y.createContext({
3039
3039
  isTransitioning: !1
3040
3040
  });
3041
3041
  process.env.NODE_ENV !== "production" && (_r.displayName = "ViewTransition");
3042
- const Jo = /* @__PURE__ */ y.createContext(/* @__PURE__ */ new Map());
3043
- process.env.NODE_ENV !== "production" && (Jo.displayName = "Fetchers");
3044
- const ws = "startTransition", lo = y[ws], bs = "flushSync", co = Pa[bs];
3042
+ const Wo = /* @__PURE__ */ y.createContext(/* @__PURE__ */ new Map());
3043
+ process.env.NODE_ENV !== "production" && (Wo.displayName = "Fetchers");
3044
+ const ws = "startTransition", co = y[ws], bs = "flushSync", uo = Pa[bs];
3045
3045
  function Ss(e) {
3046
- lo ? lo(e) : e();
3046
+ co ? co(e) : e();
3047
3047
  }
3048
3048
  function Bt(e) {
3049
- co ? co(e) : e();
3049
+ uo ? uo(e) : e();
3050
3050
  }
3051
3051
  class Cs {
3052
3052
  constructor() {
@@ -3074,13 +3074,13 @@ function Pd(e) {
3074
3074
  let {
3075
3075
  deletedFetchers: B,
3076
3076
  flushSync: ae,
3077
- viewTransitionOpts: ee
3077
+ viewTransitionOpts: ie
3078
3078
  } = K;
3079
- T.fetchers.forEach((he, Oe) => {
3080
- he.data !== void 0 && v.current.set(Oe, he.data);
3079
+ T.fetchers.forEach((he, Le) => {
3080
+ he.data !== void 0 && v.current.set(Le, he.data);
3081
3081
  }), B.forEach((he) => v.current.delete(he));
3082
3082
  let te = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
3083
- if (!ee || te) {
3083
+ if (!ie || te) {
3084
3084
  ae ? Bt(() => a(T)) : S(() => a(T));
3085
3085
  return;
3086
3086
  }
@@ -3089,8 +3089,8 @@ function Pd(e) {
3089
3089
  h && (u && u.resolve(), h.skipTransition()), c({
3090
3090
  isTransitioning: !0,
3091
3091
  flushSync: !0,
3092
- currentLocation: ee.currentLocation,
3093
- nextLocation: ee.nextLocation
3092
+ currentLocation: ie.currentLocation,
3093
+ nextLocation: ie.nextLocation
3094
3094
  });
3095
3095
  });
3096
3096
  let he = n.window.document.startViewTransition(() => {
@@ -3107,13 +3107,13 @@ function Pd(e) {
3107
3107
  }
3108
3108
  h ? (u && u.resolve(), h.skipTransition(), p({
3109
3109
  state: T,
3110
- currentLocation: ee.currentLocation,
3111
- nextLocation: ee.nextLocation
3110
+ currentLocation: ie.currentLocation,
3111
+ nextLocation: ie.nextLocation
3112
3112
  })) : (s(T), c({
3113
3113
  isTransitioning: !0,
3114
3114
  flushSync: !1,
3115
- currentLocation: ee.currentLocation,
3116
- nextLocation: ee.nextLocation
3115
+ currentLocation: ie.currentLocation,
3116
+ nextLocation: ie.nextLocation
3117
3117
  }));
3118
3118
  }, [n.window, h, u, v, S]);
3119
3119
  y.useLayoutEffect(() => n.subscribe(x), [n, x]), y.useEffect(() => {
@@ -3166,7 +3166,7 @@ function Pd(e) {
3166
3166
  value: U
3167
3167
  }, /* @__PURE__ */ y.createElement(On.Provider, {
3168
3168
  value: o
3169
- }, /* @__PURE__ */ y.createElement(Jo.Provider, {
3169
+ }, /* @__PURE__ */ y.createElement(Wo.Provider, {
3170
3170
  value: v.current
3171
3171
  }, /* @__PURE__ */ y.createElement(_r.Provider, {
3172
3172
  value: l
@@ -3192,7 +3192,7 @@ function Ls(e) {
3192
3192
  return ji(t, void 0, r, n);
3193
3193
  }
3194
3194
  process.env.NODE_ENV;
3195
- const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Wo = /* @__PURE__ */ y.forwardRef(function(t, n) {
3195
+ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, qo = /* @__PURE__ */ y.forwardRef(function(t, n) {
3196
3196
  let {
3197
3197
  onClick: r,
3198
3198
  relative: o,
@@ -3205,10 +3205,10 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3205
3205
  viewTransition: d
3206
3206
  } = t, h = Nr(t, hs), {
3207
3207
  basename: w
3208
- } = y.useContext(je), m, p = !1;
3208
+ } = y.useContext(Ve), m, p = !1;
3209
3209
  if (typeof c == "string" && xs.test(c) && (m = c, Rs))
3210
3210
  try {
3211
- let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N = Je(_.pathname, w);
3211
+ let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N = We(_.pathname, w);
3212
3212
  _.origin === x.origin && N != null ? c = N + _.search + _.hash : p = !0;
3213
3213
  } catch {
3214
3214
  process.env.NODE_ENV !== "production" && we(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
@@ -3228,7 +3228,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3228
3228
  }
3229
3229
  return (
3230
3230
  // eslint-disable-next-line jsx-a11y/anchor-has-content
3231
- /* @__PURE__ */ y.createElement("a", ut({}, h, {
3231
+ /* @__PURE__ */ y.createElement("a", dt({}, h, {
3232
3232
  href: m || v,
3233
3233
  onClick: p || a ? r : S,
3234
3234
  ref: n,
@@ -3236,7 +3236,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
3236
3236
  }))
3237
3237
  );
3238
3238
  });
3239
- process.env.NODE_ENV !== "production" && (Wo.displayName = "Link");
3239
+ process.env.NODE_ENV !== "production" && (qo.displayName = "Link");
3240
3240
  const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
3241
3241
  let {
3242
3242
  "aria-current": r = "page",
@@ -3249,13 +3249,13 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
3249
3249
  children: u
3250
3250
  } = t, d = Nr(t, ps), h = Yt(l, {
3251
3251
  relative: d.relative
3252
- }), w = Qe(), m = y.useContext(On), {
3252
+ }), w = et(), m = y.useContext(On), {
3253
3253
  navigator: p,
3254
3254
  basename: v
3255
- } = y.useContext(je), R = m != null && // Conditional usage is OK here because the usage of a data router is static
3255
+ } = y.useContext(Ve), R = m != null && // Conditional usage is OK here because the usage of a data router is static
3256
3256
  // eslint-disable-next-line react-hooks/rules-of-hooks
3257
3257
  Fs(h) && c === !0, S = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, x = w.pathname, _ = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
3258
- o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, S = S.toLowerCase()), _ && v && (_ = Je(_, v) || _);
3258
+ o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, S = S.toLowerCase()), _ && v && (_ = We(_, v) || _);
3259
3259
  const N = S !== "/" && S.endsWith("/") ? S.length - 1 : S.length;
3260
3260
  let U = x === S || !i && x.startsWith(S) && x.charAt(N) === "/", b = _ != null && (_ === S || !i && _.startsWith(S) && _.charAt(S.length) === "/"), T = {
3261
3261
  isActive: U,
@@ -3264,7 +3264,7 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
3264
3264
  }, K = U ? r : void 0, B;
3265
3265
  typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, b ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
3266
3266
  let ae = typeof s == "function" ? s(T) : s;
3267
- return /* @__PURE__ */ y.createElement(Wo, ut({}, d, {
3267
+ return /* @__PURE__ */ y.createElement(qo, dt({}, d, {
3268
3268
  "aria-current": K,
3269
3269
  className: B,
3270
3270
  ref: n,
@@ -3304,7 +3304,7 @@ const Ns = /* @__PURE__ */ y.forwardRef((e, t) => {
3304
3304
  viewTransition: h
3305
3305
  });
3306
3306
  };
3307
- return /* @__PURE__ */ y.createElement("form", ut({
3307
+ return /* @__PURE__ */ y.createElement("form", dt({
3308
3308
  ref: t,
3309
3309
  method: v,
3310
3310
  action: p,
@@ -3317,14 +3317,14 @@ var xn;
3317
3317
  (function(e) {
3318
3318
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
3319
3319
  })(xn || (xn = {}));
3320
- var uo;
3320
+ var fo;
3321
3321
  (function(e) {
3322
3322
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
3323
- })(uo || (uo = {}));
3323
+ })(fo || (fo = {}));
3324
3324
  function _s(e) {
3325
3325
  return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
3326
3326
  }
3327
- function qo(e) {
3327
+ function Zo(e) {
3328
3328
  let t = y.useContext(_t);
3329
3329
  return t || (process.env.NODE_ENV !== "production" ? I(!1, _s(e)) : I(!1)), t;
3330
3330
  }
@@ -3336,13 +3336,13 @@ function Ts(e, t) {
3336
3336
  preventScrollReset: a,
3337
3337
  relative: i,
3338
3338
  viewTransition: s
3339
- } = t === void 0 ? {} : t, l = An(), c = Qe(), u = Yt(e, {
3339
+ } = t === void 0 ? {} : t, l = An(), c = et(), u = Yt(e, {
3340
3340
  relative: i
3341
3341
  });
3342
3342
  return y.useCallback((d) => {
3343
3343
  if (ls(d, n)) {
3344
3344
  d.preventDefault();
3345
- let h = r !== void 0 ? r : ct(c) === ct(u);
3345
+ let h = r !== void 0 ? r : ut(c) === ut(u);
3346
3346
  l(e, {
3347
3347
  replace: h,
3348
3348
  state: o,
@@ -3355,7 +3355,7 @@ function Ts(e, t) {
3355
3355
  }
3356
3356
  function Od(e) {
3357
3357
  process.env.NODE_ENV !== "production" && we(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
3358
- let t = y.useRef(ur(e)), n = y.useRef(!1), r = Qe(), o = y.useMemo(() => (
3358
+ let t = y.useRef(ur(e)), n = y.useRef(!1), r = et(), o = y.useMemo(() => (
3359
3359
  // Only merge in the defaults if we haven't yet called setSearchParams.
3360
3360
  // Once we call that we want those to take precedence, otherwise you can't
3361
3361
  // remove a param with setSearchParams({}) if it has an initial value
@@ -3374,9 +3374,9 @@ let Os = 0, Ms = () => "__" + String(++Os) + "__";
3374
3374
  function As() {
3375
3375
  let {
3376
3376
  router: e
3377
- } = qo(xn.UseSubmit), {
3377
+ } = Zo(xn.UseSubmit), {
3378
3378
  basename: t
3379
- } = y.useContext(je), n = Yi();
3379
+ } = y.useContext(Ve), n = Yi();
3380
3380
  return y.useCallback(function(r, o) {
3381
3381
  o === void 0 && (o = {}), Ps();
3382
3382
  let {
@@ -3416,11 +3416,11 @@ function Ds(e, t) {
3416
3416
  relative: n
3417
3417
  } = t === void 0 ? {} : t, {
3418
3418
  basename: r
3419
- } = y.useContext(je), o = y.useContext($e);
3419
+ } = y.useContext(Ve), o = y.useContext(je);
3420
3420
  o || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
3421
- let [a] = o.matches.slice(-1), i = ut({}, Yt(e || ".", {
3421
+ let [a] = o.matches.slice(-1), i = dt({}, Yt(e || ".", {
3422
3422
  relative: n
3423
- })), s = Qe();
3423
+ })), s = et();
3424
3424
  if (e == null) {
3425
3425
  i.search = s.search;
3426
3426
  let l = new URLSearchParams(i.search), c = l.getAll("index");
@@ -3430,7 +3430,7 @@ function Ds(e, t) {
3430
3430
  i.search = d ? "?" + d : "";
3431
3431
  }
3432
3432
  }
3433
- return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Xe([r, i.pathname])), ct(i);
3433
+ return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Qe([r, i.pathname])), ut(i);
3434
3434
  }
3435
3435
  function Fs(e, t) {
3436
3436
  t === void 0 && (t = {});
@@ -3438,15 +3438,15 @@ function Fs(e, t) {
3438
3438
  n == null && (process.env.NODE_ENV !== "production" ? I(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
3439
3439
  let {
3440
3440
  basename: r
3441
- } = qo(xn.useViewTransitionState), o = Yt(e, {
3441
+ } = Zo(xn.useViewTransitionState), o = Yt(e, {
3442
3442
  relative: t.relative
3443
3443
  });
3444
3444
  if (!n.isTransitioning)
3445
3445
  return !1;
3446
- let a = Je(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = Je(n.nextLocation.pathname, r) || n.nextLocation.pathname;
3446
+ let a = We(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = We(n.nextLocation.pathname, r) || n.nextLocation.pathname;
3447
3447
  return En(o.pathname, i) != null || En(o.pathname, a) != null;
3448
3448
  }
3449
- var Zo = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(Zo || {}), Is = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(Is || {});
3449
+ var Ko = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(Ko || {}), Is = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(Is || {});
3450
3450
  const Md = [
3451
3451
  {
3452
3452
  caption: "Share link",
@@ -3460,7 +3460,7 @@ const Md = [
3460
3460
  caption: "Percentages",
3461
3461
  description: "You get rewards"
3462
3462
  }
3463
- ], fo = (e) => {
3463
+ ], ho = (e) => {
3464
3464
  let t;
3465
3465
  const n = /* @__PURE__ */ new Set(), r = (c, u) => {
3466
3466
  const d = typeof c == "function" ? c(t) : c;
@@ -3470,22 +3470,22 @@ const Md = [
3470
3470
  }
3471
3471
  }, o = () => t, s = { setState: r, getState: o, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(r, o, s);
3472
3472
  return s;
3473
- }, Bs = (e) => e ? fo(e) : fo, Hs = (e) => e;
3473
+ }, Bs = (e) => e ? ho(e) : ho, Hs = (e) => e;
3474
3474
  function Us(e, t = Hs) {
3475
- const n = _e.useSyncExternalStore(
3475
+ const n = Te.useSyncExternalStore(
3476
3476
  e.subscribe,
3477
3477
  () => t(e.getState()),
3478
3478
  () => t(e.getInitialState())
3479
3479
  );
3480
- return _e.useDebugValue(n), n;
3480
+ return Te.useDebugValue(n), n;
3481
3481
  }
3482
- const ho = (e) => {
3482
+ const po = (e) => {
3483
3483
  const t = Bs(e), n = (r) => Us(t, r);
3484
3484
  return Object.assign(n, t), n;
3485
- }, se = (e) => e ? ho(e) : ho, Ad = se((e) => ({
3485
+ }, se = (e) => e ? po(e) : po, Ad = se((e) => ({
3486
3486
  action: null,
3487
3487
  setAction: (t) => e(() => ({ action: t })),
3488
- route: Zo.Home,
3488
+ route: Ko.Home,
3489
3489
  setRoute: (t) => e(() => ({ route: t })),
3490
3490
  dashInfo: null,
3491
3491
  setDashInfo: (t) => e(() => ({ dashInfo: t })),
@@ -3572,7 +3572,7 @@ function $s(e, t) {
3572
3572
  throw new zt(`Invalid token specified: invalid json for part #${n + 1} (${a.message})`);
3573
3573
  }
3574
3574
  }
3575
- function Ko(e, t) {
3575
+ function Go(e, t) {
3576
3576
  return function() {
3577
3577
  return e.apply(t, arguments);
3578
3578
  };
@@ -3580,25 +3580,25 @@ function Ko(e, t) {
3580
3580
  const { toString: zs } = Object.prototype, { getPrototypeOf: Tr } = Object, Fn = /* @__PURE__ */ ((e) => (t) => {
3581
3581
  const n = zs.call(t);
3582
3582
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
3583
- })(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) => Fn(t) === e), In = (e) => (t) => typeof t === e, { isArray: Pt } = Array, Gt = In("undefined");
3583
+ })(/* @__PURE__ */ Object.create(null)), qe = (e) => (e = e.toLowerCase(), (t) => Fn(t) === e), In = (e) => (t) => typeof t === e, { isArray: Pt } = Array, Gt = In("undefined");
3584
3584
  function Js(e) {
3585
- return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
3585
+ return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) && Ie(e.constructor.isBuffer) && e.constructor.isBuffer(e);
3586
3586
  }
3587
- const Go = We("ArrayBuffer");
3587
+ const Yo = qe("ArrayBuffer");
3588
3588
  function Ws(e) {
3589
3589
  let t;
3590
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Go(e.buffer), t;
3590
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Yo(e.buffer), t;
3591
3591
  }
3592
- const qs = In("string"), Be = In("function"), Yo = In("number"), Bn = (e) => e !== null && typeof e == "object", Zs = (e) => e === !0 || e === !1, wn = (e) => {
3592
+ const qs = In("string"), Ie = In("function"), Xo = In("number"), Bn = (e) => e !== null && typeof e == "object", Zs = (e) => e === !0 || e === !1, wn = (e) => {
3593
3593
  if (Fn(e) !== "object")
3594
3594
  return !1;
3595
3595
  const t = Tr(e);
3596
3596
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
3597
- }, Ks = We("Date"), Gs = We("File"), Ys = We("Blob"), Xs = We("FileList"), Qs = (e) => Bn(e) && Be(e.pipe), el = (e) => {
3597
+ }, Ks = qe("Date"), Gs = qe("File"), Ys = qe("Blob"), Xs = qe("FileList"), Qs = (e) => Bn(e) && Ie(e.pipe), el = (e) => {
3598
3598
  let t;
3599
- return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = Fn(e)) === "formdata" || // detect form-data instance
3600
- t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
3601
- }, tl = We("URLSearchParams"), [nl, rl, ol, al] = ["ReadableStream", "Request", "Response", "Headers"].map(We), il = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3599
+ return e && (typeof FormData == "function" && e instanceof FormData || Ie(e.append) && ((t = Fn(e)) === "formdata" || // detect form-data instance
3600
+ t === "object" && Ie(e.toString) && e.toString() === "[object FormData]"));
3601
+ }, tl = qe("URLSearchParams"), [nl, rl, ol, al] = ["ReadableStream", "Request", "Response", "Headers"].map(qe), il = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3602
3602
  function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
3603
3603
  if (e === null || typeof e > "u")
3604
3604
  return;
@@ -3613,7 +3613,7 @@ function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
3613
3613
  s = a[r], t.call(null, e[s], s, e);
3614
3614
  }
3615
3615
  }
3616
- function Xo(e, t) {
3616
+ function Qo(e, t) {
3617
3617
  t = t.toLowerCase();
3618
3618
  const n = Object.keys(e);
3619
3619
  let r = n.length, o;
@@ -3622,10 +3622,10 @@ function Xo(e, t) {
3622
3622
  return o;
3623
3623
  return null;
3624
3624
  }
3625
- const vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qo = (e) => !Gt(e) && e !== vt;
3625
+ const wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ea = (e) => !Gt(e) && e !== wt;
3626
3626
  function dr() {
3627
- const { caseless: e } = Qo(this) && this || {}, t = {}, n = (r, o) => {
3628
- const a = e && Xo(t, o) || o;
3627
+ const { caseless: e } = ea(this) && this || {}, t = {}, n = (r, o) => {
3628
+ const a = e && Qo(t, o) || o;
3629
3629
  wn(t[a]) && wn(r) ? t[a] = dr(t[a], r) : wn(r) ? t[a] = dr({}, r) : Pt(r) ? t[a] = r.slice() : t[a] = r;
3630
3630
  };
3631
3631
  for (let r = 0, o = arguments.length; r < o; r++)
@@ -3633,7 +3633,7 @@ function dr() {
3633
3633
  return t;
3634
3634
  }
3635
3635
  const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3636
- n && Be(o) ? e[a] = Ko(o, n) : e[a] = o;
3636
+ n && Ie(o) ? e[a] = Go(o, n) : e[a] = o;
3637
3637
  }, { allOwnKeys: r }), e), ll = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cl = (e, t, n, r) => {
3638
3638
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
3639
3639
  value: t.prototype
@@ -3656,7 +3656,7 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3656
3656
  if (!e) return null;
3657
3657
  if (Pt(e)) return e;
3658
3658
  let t = e.length;
3659
- if (!Yo(t)) return null;
3659
+ if (!Xo(t)) return null;
3660
3660
  const n = new Array(t);
3661
3661
  for (; t-- > 0; )
3662
3662
  n[t] = e[t];
@@ -3674,23 +3674,23 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3674
3674
  for (; (n = e.exec(t)) !== null; )
3675
3675
  r.push(n);
3676
3676
  return r;
3677
- }, gl = We("HTMLFormElement"), yl = (e) => e.toLowerCase().replace(
3677
+ }, gl = qe("HTMLFormElement"), yl = (e) => e.toLowerCase().replace(
3678
3678
  /[-_\s]([a-z\d])(\w*)/g,
3679
3679
  function(n, r, o) {
3680
3680
  return r.toUpperCase() + o;
3681
3681
  }
3682
- ), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vl = We("RegExp"), ea = (e, t) => {
3682
+ ), mo = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vl = qe("RegExp"), ta = (e, t) => {
3683
3683
  const n = Object.getOwnPropertyDescriptors(e), r = {};
3684
3684
  Xt(n, (o, a) => {
3685
3685
  let i;
3686
3686
  (i = t(o, a, e)) !== !1 && (r[a] = i || o);
3687
3687
  }), Object.defineProperties(e, r);
3688
3688
  }, wl = (e) => {
3689
- ea(e, (t, n) => {
3690
- if (Be(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
3689
+ ta(e, (t, n) => {
3690
+ if (Ie(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
3691
3691
  return !1;
3692
3692
  const r = e[n];
3693
- if (Be(r)) {
3693
+ if (Ie(r)) {
3694
3694
  if (t.enumerable = !1, "writable" in t) {
3695
3695
  t.writable = !1;
3696
3696
  return;
@@ -3710,7 +3710,7 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
3710
3710
  }, Sl = () => {
3711
3711
  }, Cl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
3712
3712
  function El(e) {
3713
- return !!(e && Be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
3713
+ return !!(e && Ie(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
3714
3714
  }
3715
3715
  const Ll = (e) => {
3716
3716
  const t = new Array(10), n = (r, o) => {
@@ -3729,21 +3729,21 @@ const Ll = (e) => {
3729
3729
  return r;
3730
3730
  };
3731
3731
  return n(e, 0);
3732
- }, Rl = We("AsyncFunction"), xl = (e) => e && (Bn(e) || Be(e)) && Be(e.then) && Be(e.catch), ta = ((e, t) => e ? setImmediate : t ? ((n, r) => (vt.addEventListener("message", ({ source: o, data: a }) => {
3733
- o === vt && a === n && r.length && r.shift()();
3732
+ }, Rl = qe("AsyncFunction"), xl = (e) => e && (Bn(e) || Ie(e)) && Ie(e.then) && Ie(e.catch), na = ((e, t) => e ? setImmediate : t ? ((n, r) => (wt.addEventListener("message", ({ source: o, data: a }) => {
3733
+ o === wt && a === n && r.length && r.shift()();
3734
3734
  }, !1), (o) => {
3735
- r.push(o), vt.postMessage(n, "*");
3735
+ r.push(o), wt.postMessage(n, "*");
3736
3736
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
3737
3737
  typeof setImmediate == "function",
3738
- Be(vt.postMessage)
3739
- ), kl = typeof queueMicrotask < "u" ? queueMicrotask.bind(vt) : typeof process < "u" && process.nextTick || ta, E = {
3738
+ Ie(wt.postMessage)
3739
+ ), kl = typeof queueMicrotask < "u" ? queueMicrotask.bind(wt) : typeof process < "u" && process.nextTick || na, E = {
3740
3740
  isArray: Pt,
3741
- isArrayBuffer: Go,
3741
+ isArrayBuffer: Yo,
3742
3742
  isBuffer: Js,
3743
3743
  isFormData: el,
3744
3744
  isArrayBufferView: Ws,
3745
3745
  isString: qs,
3746
- isNumber: Yo,
3746
+ isNumber: Xo,
3747
3747
  isBoolean: Zs,
3748
3748
  isObject: Bn,
3749
3749
  isPlainObject: wn,
@@ -3756,7 +3756,7 @@ const Ll = (e) => {
3756
3756
  isFile: Gs,
3757
3757
  isBlob: Ys,
3758
3758
  isRegExp: vl,
3759
- isFunction: Be,
3759
+ isFunction: Ie,
3760
3760
  isStream: Qs,
3761
3761
  isURLSearchParams: tl,
3762
3762
  isTypedArray: hl,
@@ -3769,29 +3769,29 @@ const Ll = (e) => {
3769
3769
  inherits: cl,
3770
3770
  toFlatObject: ul,
3771
3771
  kindOf: Fn,
3772
- kindOfTest: We,
3772
+ kindOfTest: qe,
3773
3773
  endsWith: dl,
3774
3774
  toArray: fl,
3775
3775
  forEachEntry: pl,
3776
3776
  matchAll: ml,
3777
3777
  isHTMLForm: gl,
3778
- hasOwnProperty: po,
3779
- hasOwnProp: po,
3778
+ hasOwnProperty: mo,
3779
+ hasOwnProp: mo,
3780
3780
  // an alias to avoid ESLint no-prototype-builtins detection
3781
- reduceDescriptors: ea,
3781
+ reduceDescriptors: ta,
3782
3782
  freezeMethods: wl,
3783
3783
  toObjectSet: bl,
3784
3784
  toCamelCase: yl,
3785
3785
  noop: Sl,
3786
3786
  toFiniteNumber: Cl,
3787
- findKey: Xo,
3788
- global: vt,
3789
- isContextDefined: Qo,
3787
+ findKey: Qo,
3788
+ global: wt,
3789
+ isContextDefined: ea,
3790
3790
  isSpecCompliantForm: El,
3791
3791
  toJSONObject: Ll,
3792
3792
  isAsyncFn: Rl,
3793
3793
  isThenable: xl,
3794
- setImmediate: ta,
3794
+ setImmediate: na,
3795
3795
  asap: kl
3796
3796
  };
3797
3797
  function $(e, t, n, r, o) {
@@ -3818,7 +3818,7 @@ E.inherits($, Error, {
3818
3818
  };
3819
3819
  }
3820
3820
  });
3821
- const na = $.prototype, ra = {};
3821
+ const ra = $.prototype, oa = {};
3822
3822
  [
3823
3823
  "ERR_BAD_OPTION_VALUE",
3824
3824
  "ERR_BAD_OPTION",
@@ -3834,12 +3834,12 @@ const na = $.prototype, ra = {};
3834
3834
  "ERR_INVALID_URL"
3835
3835
  // eslint-disable-next-line func-names
3836
3836
  ].forEach((e) => {
3837
- ra[e] = { value: e };
3837
+ oa[e] = { value: e };
3838
3838
  });
3839
- Object.defineProperties($, ra);
3840
- Object.defineProperty(na, "isAxiosError", { value: !0 });
3839
+ Object.defineProperties($, oa);
3840
+ Object.defineProperty(ra, "isAxiosError", { value: !0 });
3841
3841
  $.from = (e, t, n, r, o, a) => {
3842
- const i = Object.create(na);
3842
+ const i = Object.create(ra);
3843
3843
  return E.toFlatObject(e, i, function(l) {
3844
3844
  return l !== Error.prototype;
3845
3845
  }, (s) => s !== "isAxiosError"), $.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
@@ -3848,12 +3848,12 @@ const Nl = null;
3848
3848
  function fr(e) {
3849
3849
  return E.isPlainObject(e) || E.isArray(e);
3850
3850
  }
3851
- function oa(e) {
3851
+ function aa(e) {
3852
3852
  return E.endsWith(e, "[]") ? e.slice(0, -2) : e;
3853
3853
  }
3854
- function mo(e, t, n) {
3854
+ function go(e, t, n) {
3855
3855
  return e ? e.concat(t).map(function(o, a) {
3856
- return o = oa(o), !n && a ? "[" + o + "]" : o;
3856
+ return o = aa(o), !n && a ? "[" + o + "]" : o;
3857
3857
  }).join(n ? "." : "") : t;
3858
3858
  }
3859
3859
  function _l(e) {
@@ -3889,15 +3889,15 @@ function Hn(e, t, n) {
3889
3889
  if (E.endsWith(p, "{}"))
3890
3890
  p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
3891
3891
  else if (E.isArray(m) && _l(m) || (E.isFileList(m) || E.endsWith(p, "[]")) && (R = E.toArray(m)))
3892
- return p = oa(p), R.forEach(function(x, _) {
3892
+ return p = aa(p), R.forEach(function(x, _) {
3893
3893
  !(E.isUndefined(x) || x === null) && t.append(
3894
3894
  // eslint-disable-next-line no-nested-ternary
3895
- i === !0 ? mo([p], _, a) : i === null ? p : p + "[]",
3895
+ i === !0 ? go([p], _, a) : i === null ? p : p + "[]",
3896
3896
  c(x)
3897
3897
  );
3898
3898
  }), !1;
3899
3899
  }
3900
- return fr(m) ? !0 : (t.append(mo(v, p, a), c(m)), !1);
3900
+ return fr(m) ? !0 : (t.append(go(v, p, a), c(m)), !1);
3901
3901
  }
3902
3902
  const d = [], h = Object.assign(Tl, {
3903
3903
  defaultVisitor: u,
@@ -3923,7 +3923,7 @@ function Hn(e, t, n) {
3923
3923
  throw new TypeError("data must be an object");
3924
3924
  return w(e), t;
3925
3925
  }
3926
- function go(e) {
3926
+ function yo(e) {
3927
3927
  const t = {
3928
3928
  "!": "%21",
3929
3929
  "'": "%27",
@@ -3940,14 +3940,14 @@ function go(e) {
3940
3940
  function Pr(e, t) {
3941
3941
  this._pairs = [], e && Hn(e, this, t);
3942
3942
  }
3943
- const aa = Pr.prototype;
3944
- aa.append = function(t, n) {
3943
+ const ia = Pr.prototype;
3944
+ ia.append = function(t, n) {
3945
3945
  this._pairs.push([t, n]);
3946
3946
  };
3947
- aa.toString = function(t) {
3947
+ ia.toString = function(t) {
3948
3948
  const n = t ? function(r) {
3949
- return t.call(this, r, go);
3950
- } : go;
3949
+ return t.call(this, r, yo);
3950
+ } : yo;
3951
3951
  return this._pairs.map(function(o) {
3952
3952
  return n(o[0]) + "=" + n(o[1]);
3953
3953
  }, "").join("&");
@@ -3955,7 +3955,7 @@ aa.toString = function(t) {
3955
3955
  function Pl(e) {
3956
3956
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3957
3957
  }
3958
- function ia(e, t, n) {
3958
+ function sa(e, t, n) {
3959
3959
  if (!t)
3960
3960
  return e;
3961
3961
  const r = n && n.encode || Pl;
@@ -3970,7 +3970,7 @@ function ia(e, t, n) {
3970
3970
  }
3971
3971
  return e;
3972
3972
  }
3973
- class yo {
3973
+ class vo {
3974
3974
  constructor() {
3975
3975
  this.handlers = [];
3976
3976
  }
@@ -4024,7 +4024,7 @@ class yo {
4024
4024
  });
4025
4025
  }
4026
4026
  }
4027
- const sa = {
4027
+ const la = {
4028
4028
  silentJSONParsing: !0,
4029
4029
  forcedJSONParsing: !0,
4030
4030
  clarifyTimeoutError: !1
@@ -4044,14 +4044,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bl
4044
4044
  hasStandardBrowserWebWorkerEnv: Il,
4045
4045
  navigator: hr,
4046
4046
  origin: Bl
4047
- }, Symbol.toStringTag, { value: "Module" })), Ne = {
4047
+ }, Symbol.toStringTag, { value: "Module" })), _e = {
4048
4048
  ...Hl,
4049
4049
  ...Dl
4050
4050
  };
4051
4051
  function Ul(e, t) {
4052
- return Hn(e, new Ne.classes.URLSearchParams(), Object.assign({
4052
+ return Hn(e, new _e.classes.URLSearchParams(), Object.assign({
4053
4053
  visitor: function(n, r, o, a) {
4054
- return Ne.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
4054
+ return _e.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
4055
4055
  }
4056
4056
  }, t));
4057
4057
  }
@@ -4067,7 +4067,7 @@ function jl(e) {
4067
4067
  a = n[r], t[a] = e[a];
4068
4068
  return t;
4069
4069
  }
4070
- function la(e) {
4070
+ function ca(e) {
4071
4071
  function t(n, r, o, a) {
4072
4072
  let i = n[a++];
4073
4073
  if (i === "__proto__") return !0;
@@ -4093,12 +4093,12 @@ function $l(e, t, n) {
4093
4093
  return (n || JSON.stringify)(e);
4094
4094
  }
4095
4095
  const Qt = {
4096
- transitional: sa,
4096
+ transitional: la,
4097
4097
  adapter: ["xhr", "http", "fetch"],
4098
4098
  transformRequest: [function(t, n) {
4099
4099
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = E.isObject(t);
4100
4100
  if (a && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
4101
- return o ? JSON.stringify(la(t)) : t;
4101
+ return o ? JSON.stringify(ca(t)) : t;
4102
4102
  if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t) || E.isReadableStream(t))
4103
4103
  return t;
4104
4104
  if (E.isArrayBufferView(t))
@@ -4145,8 +4145,8 @@ const Qt = {
4145
4145
  maxContentLength: -1,
4146
4146
  maxBodyLength: -1,
4147
4147
  env: {
4148
- FormData: Ne.classes.FormData,
4149
- Blob: Ne.classes.Blob
4148
+ FormData: _e.classes.FormData,
4149
+ Blob: _e.classes.Blob
4150
4150
  },
4151
4151
  validateStatus: function(t) {
4152
4152
  return t >= 200 && t < 300;
@@ -4186,7 +4186,7 @@ const zl = E.toObjectSet([
4186
4186
  `).forEach(function(i) {
4187
4187
  o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zl[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
4188
4188
  }), t;
4189
- }, vo = Symbol("internals");
4189
+ }, wo = Symbol("internals");
4190
4190
  function Ht(e) {
4191
4191
  return e && String(e).trim().toLowerCase();
4192
4192
  }
@@ -4225,7 +4225,7 @@ function Kl(e, t) {
4225
4225
  });
4226
4226
  });
4227
4227
  }
4228
- let Fe = class {
4228
+ let Me = class {
4229
4229
  constructor(t) {
4230
4230
  t && this.set(t);
4231
4231
  }
@@ -4333,7 +4333,7 @@ let Fe = class {
4333
4333
  return n.forEach((o) => r.set(o)), r;
4334
4334
  }
4335
4335
  static accessor(t) {
4336
- const r = (this[vo] = this[vo] = {
4336
+ const r = (this[wo] = this[wo] = {
4337
4337
  accessors: {}
4338
4338
  }).accessors, o = this.prototype;
4339
4339
  function a(i) {
@@ -4343,8 +4343,8 @@ let Fe = class {
4343
4343
  return E.isArray(t) ? t.forEach(a) : a(t), this;
4344
4344
  }
4345
4345
  };
4346
- Fe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
4347
- E.reduceDescriptors(Fe.prototype, ({ value: e }, t) => {
4346
+ Me.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
4347
+ E.reduceDescriptors(Me.prototype, ({ value: e }, t) => {
4348
4348
  let n = t[0].toUpperCase() + t.slice(1);
4349
4349
  return {
4350
4350
  get: () => e,
@@ -4353,15 +4353,15 @@ E.reduceDescriptors(Fe.prototype, ({ value: e }, t) => {
4353
4353
  }
4354
4354
  };
4355
4355
  });
4356
- E.freezeMethods(Fe);
4356
+ E.freezeMethods(Me);
4357
4357
  function er(e, t) {
4358
- const n = this || Qt, r = t || n, o = Fe.from(r.headers);
4358
+ const n = this || Qt, r = t || n, o = Me.from(r.headers);
4359
4359
  let a = r.data;
4360
4360
  return E.forEach(e, function(s) {
4361
4361
  a = s.call(n, a, o.normalize(), t ? t.status : void 0);
4362
4362
  }), o.normalize(), a;
4363
4363
  }
4364
- function ca(e) {
4364
+ function ua(e) {
4365
4365
  return !!(e && e.__CANCEL__);
4366
4366
  }
4367
4367
  function Ot(e, t, n) {
@@ -4370,7 +4370,7 @@ function Ot(e, t, n) {
4370
4370
  E.inherits(Ot, $, {
4371
4371
  __CANCEL__: !0
4372
4372
  });
4373
- function ua(e, t, n) {
4373
+ function da(e, t, n) {
4374
4374
  const r = n.config.validateStatus;
4375
4375
  !n.status || !r || r(n.status) ? e(n) : t(new $(
4376
4376
  "Request failed with status code " + n.status,
@@ -4431,17 +4431,17 @@ const kn = (e, t, n = 3) => {
4431
4431
  };
4432
4432
  e(d);
4433
4433
  }, n);
4434
- }, wo = (e, t) => {
4434
+ }, bo = (e, t) => {
4435
4435
  const n = e != null;
4436
4436
  return [(r) => t[0]({
4437
4437
  lengthComputable: n,
4438
4438
  total: e,
4439
4439
  loaded: r
4440
4440
  }), t[1]];
4441
- }, bo = (e) => (...t) => E.asap(() => e(...t)), Ql = Ne.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ne.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
4442
- new URL(Ne.origin),
4443
- Ne.navigator && /(msie|trident)/i.test(Ne.navigator.userAgent)
4444
- ) : () => !0, ec = Ne.hasStandardBrowserEnv ? (
4441
+ }, So = (e) => (...t) => E.asap(() => e(...t)), Ql = _e.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, _e.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
4442
+ new URL(_e.origin),
4443
+ _e.navigator && /(msie|trident)/i.test(_e.navigator.userAgent)
4444
+ ) : () => !0, ec = _e.hasStandardBrowserEnv ? (
4445
4445
  // Standard browser envs support document.cookie
4446
4446
  {
4447
4447
  write(e, t, n, r, o, a) {
@@ -4474,12 +4474,12 @@ function tc(e) {
4474
4474
  function nc(e, t) {
4475
4475
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
4476
4476
  }
4477
- function da(e, t, n) {
4477
+ function fa(e, t, n) {
4478
4478
  let r = !tc(t);
4479
4479
  return e && r || n == !1 ? nc(e, t) : t;
4480
4480
  }
4481
- const So = (e) => e instanceof Fe ? { ...e } : e;
4482
- function bt(e, t) {
4481
+ const Co = (e) => e instanceof Me ? { ...e } : e;
4482
+ function St(e, t) {
4483
4483
  t = t || {};
4484
4484
  const n = {};
4485
4485
  function r(c, u, d, h) {
@@ -4536,39 +4536,39 @@ function bt(e, t) {
4536
4536
  socketPath: i,
4537
4537
  responseEncoding: i,
4538
4538
  validateStatus: s,
4539
- headers: (c, u, d) => o(So(c), So(u), d, !0)
4539
+ headers: (c, u, d) => o(Co(c), Co(u), d, !0)
4540
4540
  };
4541
4541
  return E.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
4542
4542
  const d = l[u] || o, h = d(e[u], t[u], u);
4543
4543
  E.isUndefined(h) && d !== s || (n[u] = h);
4544
4544
  }), n;
4545
4545
  }
4546
- const fa = (e) => {
4547
- const t = bt({}, e);
4546
+ const ha = (e) => {
4547
+ const t = St({}, e);
4548
4548
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = t;
4549
- t.headers = i = Fe.from(i), t.url = ia(da(t.baseURL, t.url), e.params, e.paramsSerializer), s && i.set(
4549
+ t.headers = i = Me.from(i), t.url = sa(fa(t.baseURL, t.url), e.params, e.paramsSerializer), s && i.set(
4550
4550
  "Authorization",
4551
4551
  "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
4552
4552
  );
4553
4553
  let l;
4554
4554
  if (E.isFormData(n)) {
4555
- if (Ne.hasStandardBrowserEnv || Ne.hasStandardBrowserWebWorkerEnv)
4555
+ if (_e.hasStandardBrowserEnv || _e.hasStandardBrowserWebWorkerEnv)
4556
4556
  i.setContentType(void 0);
4557
4557
  else if ((l = i.getContentType()) !== !1) {
4558
4558
  const [c, ...u] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
4559
4559
  i.setContentType([c || "multipart/form-data", ...u].join("; "));
4560
4560
  }
4561
4561
  }
4562
- if (Ne.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(t)), r || r !== !1 && Ql(t.url))) {
4562
+ if (_e.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(t)), r || r !== !1 && Ql(t.url))) {
4563
4563
  const c = o && a && ec.read(a);
4564
4564
  c && i.set(o, c);
4565
4565
  }
4566
4566
  return t;
4567
4567
  }, rc = typeof XMLHttpRequest < "u", oc = rc && function(e) {
4568
4568
  return new Promise(function(n, r) {
4569
- const o = fa(e);
4569
+ const o = ha(e);
4570
4570
  let a = o.data;
4571
- const i = Fe.from(o.headers).normalize();
4571
+ const i = Me.from(o.headers).normalize();
4572
4572
  let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, h, w, m;
4573
4573
  function p() {
4574
4574
  w && w(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
@@ -4578,7 +4578,7 @@ const fa = (e) => {
4578
4578
  function R() {
4579
4579
  if (!v)
4580
4580
  return;
4581
- const x = Fe.from(
4581
+ const x = Me.from(
4582
4582
  "getAllResponseHeaders" in v && v.getAllResponseHeaders()
4583
4583
  ), N = {
4584
4584
  data: !s || s === "text" || s === "json" ? v.responseText : v.response,
@@ -4588,7 +4588,7 @@ const fa = (e) => {
4588
4588
  config: e,
4589
4589
  request: v
4590
4590
  };
4591
- ua(function(b) {
4591
+ da(function(b) {
4592
4592
  n(b), p();
4593
4593
  }, function(b) {
4594
4594
  r(b), p();
@@ -4602,7 +4602,7 @@ const fa = (e) => {
4602
4602
  r(new $("Network Error", $.ERR_NETWORK, e, v)), v = null;
4603
4603
  }, v.ontimeout = function() {
4604
4604
  let _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
4605
- const N = o.transitional || sa;
4605
+ const N = o.transitional || la;
4606
4606
  o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), r(new $(
4607
4607
  _,
4608
4608
  N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
@@ -4615,7 +4615,7 @@ const fa = (e) => {
4615
4615
  v && (r(!x || x.type ? new Ot(null, e, v) : x), v.abort(), v = null);
4616
4616
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
4617
4617
  const S = Gl(o.url);
4618
- if (S && Ne.protocols.indexOf(S) === -1) {
4618
+ if (S && _e.protocols.indexOf(S) === -1) {
4619
4619
  r(new $("Unsupported protocol " + S + ":", $.ERR_BAD_REQUEST, e));
4620
4620
  return;
4621
4621
  }
@@ -4672,7 +4672,7 @@ const fa = (e) => {
4672
4672
  } finally {
4673
4673
  await t.cancel();
4674
4674
  }
4675
- }, Co = (e, t, n, r) => {
4675
+ }, Eo = (e, t, n, r) => {
4676
4676
  const o = sc(e, t);
4677
4677
  let a = 0, i, s = (l) => {
4678
4678
  i || (i = !0, r && r(l));
@@ -4701,15 +4701,15 @@ const fa = (e) => {
4701
4701
  }, {
4702
4702
  highWaterMark: 2
4703
4703
  });
4704
- }, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = Un && typeof ReadableStream == "function", cc = Un && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), pa = (e, ...t) => {
4704
+ }, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", pa = Un && typeof ReadableStream == "function", cc = Un && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ma = (e, ...t) => {
4705
4705
  try {
4706
4706
  return !!e(...t);
4707
4707
  } catch {
4708
4708
  return !1;
4709
4709
  }
4710
- }, uc = ha && pa(() => {
4710
+ }, uc = pa && ma(() => {
4711
4711
  let e = !1;
4712
- const t = new Request(Ne.origin, {
4712
+ const t = new Request(_e.origin, {
4713
4713
  body: new ReadableStream(),
4714
4714
  method: "POST",
4715
4715
  get duplex() {
@@ -4717,7 +4717,7 @@ const fa = (e) => {
4717
4717
  }
4718
4718
  }).headers.has("Content-Type");
4719
4719
  return e && !t;
4720
- }), Eo = 64 * 1024, pr = ha && pa(() => E.isReadableStream(new Response("").body)), Nn = {
4720
+ }), Lo = 64 * 1024, pr = pa && ma(() => E.isReadableStream(new Response("").body)), Nn = {
4721
4721
  stream: pr && ((e) => e.body)
4722
4722
  };
4723
4723
  Un && ((e) => {
@@ -4733,7 +4733,7 @@ const dc = async (e) => {
4733
4733
  if (E.isBlob(e))
4734
4734
  return e.size;
4735
4735
  if (E.isSpecCompliantForm(e))
4736
- return (await new Request(Ne.origin, {
4736
+ return (await new Request(_e.origin, {
4737
4737
  method: "POST",
4738
4738
  body: e
4739
4739
  }).arrayBuffer()).byteLength;
@@ -4758,7 +4758,7 @@ const dc = async (e) => {
4758
4758
  headers: u,
4759
4759
  withCredentials: d = "same-origin",
4760
4760
  fetchOptions: h
4761
- } = fa(e);
4761
+ } = ha(e);
4762
4762
  c = c ? (c + "").toLowerCase() : "text";
4763
4763
  let w = ac([o, a && a.toAbortSignal()], i), m;
4764
4764
  const p = w && w.unsubscribe && (() => {
@@ -4773,11 +4773,11 @@ const dc = async (e) => {
4773
4773
  duplex: "half"
4774
4774
  }), U;
4775
4775
  if (E.isFormData(r) && (U = N.headers.get("content-type")) && u.setContentType(U), N.body) {
4776
- const [b, T] = wo(
4776
+ const [b, T] = bo(
4777
4777
  v,
4778
- kn(bo(l))
4778
+ kn(So(l))
4779
4779
  );
4780
- r = Co(N.body, Eo, b, T);
4780
+ r = Eo(N.body, Lo, b, T);
4781
4781
  }
4782
4782
  }
4783
4783
  E.isString(d) || (d = d ? "include" : "omit");
@@ -4798,12 +4798,12 @@ const dc = async (e) => {
4798
4798
  ["status", "statusText", "headers"].forEach((K) => {
4799
4799
  N[K] = S[K];
4800
4800
  });
4801
- const U = E.toFiniteNumber(S.headers.get("content-length")), [b, T] = s && wo(
4801
+ const U = E.toFiniteNumber(S.headers.get("content-length")), [b, T] = s && bo(
4802
4802
  U,
4803
- kn(bo(s), !0)
4803
+ kn(So(s), !0)
4804
4804
  ) || [];
4805
4805
  S = new Response(
4806
- Co(S.body, Eo, b, () => {
4806
+ Eo(S.body, Lo, b, () => {
4807
4807
  T && T(), p && p();
4808
4808
  }),
4809
4809
  N
@@ -4812,9 +4812,9 @@ const dc = async (e) => {
4812
4812
  c = c || "text";
4813
4813
  let _ = await Nn[E.findKey(Nn, c) || "text"](S, e);
4814
4814
  return !x && p && p(), await new Promise((N, U) => {
4815
- ua(N, U, {
4815
+ da(N, U, {
4816
4816
  data: _,
4817
- headers: Fe.from(S.headers),
4817
+ headers: Me.from(S.headers),
4818
4818
  status: S.status,
4819
4819
  statusText: S.statusText,
4820
4820
  config: e,
@@ -4843,7 +4843,7 @@ E.forEach(mr, (e, t) => {
4843
4843
  Object.defineProperty(e, "adapterName", { value: t });
4844
4844
  }
4845
4845
  });
4846
- const Lo = (e) => `- ${e}`, pc = (e) => E.isFunction(e) || e === null || e === !1, ma = {
4846
+ const Ro = (e) => `- ${e}`, pc = (e) => E.isFunction(e) || e === null || e === !1, ga = {
4847
4847
  getAdapter: (e) => {
4848
4848
  e = E.isArray(e) ? e : [e];
4849
4849
  const { length: t } = e;
@@ -4863,8 +4863,8 @@ const Lo = (e) => `- ${e}`, pc = (e) => E.isFunction(e) || e === null || e === !
4863
4863
  ([s, l]) => `adapter ${s} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
4864
4864
  );
4865
4865
  let i = t ? a.length > 1 ? `since :
4866
- ` + a.map(Lo).join(`
4867
- `) : " " + Lo(a[0]) : "as no adapter specified";
4866
+ ` + a.map(Ro).join(`
4867
+ `) : " " + Ro(a[0]) : "as no adapter specified";
4868
4868
  throw new $(
4869
4869
  "There is no suitable adapter to dispatch the request " + i,
4870
4870
  "ERR_NOT_SUPPORT"
@@ -4878,34 +4878,34 @@ function tr(e) {
4878
4878
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
4879
4879
  throw new Ot(null, e);
4880
4880
  }
4881
- function Ro(e) {
4882
- return tr(e), e.headers = Fe.from(e.headers), e.data = er.call(
4881
+ function xo(e) {
4882
+ return tr(e), e.headers = Me.from(e.headers), e.data = er.call(
4883
4883
  e,
4884
4884
  e.transformRequest
4885
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ma.getAdapter(e.adapter || Qt.adapter)(e).then(function(r) {
4885
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ga.getAdapter(e.adapter || Qt.adapter)(e).then(function(r) {
4886
4886
  return tr(e), r.data = er.call(
4887
4887
  e,
4888
4888
  e.transformResponse,
4889
4889
  r
4890
- ), r.headers = Fe.from(r.headers), r;
4890
+ ), r.headers = Me.from(r.headers), r;
4891
4891
  }, function(r) {
4892
- return ca(r) || (tr(e), r && r.response && (r.response.data = er.call(
4892
+ return ua(r) || (tr(e), r && r.response && (r.response.data = er.call(
4893
4893
  e,
4894
4894
  e.transformResponse,
4895
4895
  r.response
4896
- ), r.response.headers = Fe.from(r.response.headers))), Promise.reject(r);
4896
+ ), r.response.headers = Me.from(r.response.headers))), Promise.reject(r);
4897
4897
  });
4898
4898
  }
4899
- const ga = "1.8.1", Vn = {};
4899
+ const ya = "1.8.1", Vn = {};
4900
4900
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
4901
4901
  Vn[e] = function(r) {
4902
4902
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
4903
4903
  };
4904
4904
  });
4905
- const xo = {};
4905
+ const ko = {};
4906
4906
  Vn.transitional = function(t, n, r) {
4907
4907
  function o(a, i) {
4908
- return "[Axios v" + ga + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
4908
+ return "[Axios v" + ya + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
4909
4909
  }
4910
4910
  return (a, i, s) => {
4911
4911
  if (t === !1)
@@ -4913,7 +4913,7 @@ Vn.transitional = function(t, n, r) {
4913
4913
  o(i, " has been removed" + (n ? " in " + n : "")),
4914
4914
  $.ERR_DEPRECATED
4915
4915
  );
4916
- return n && !xo[i] && (xo[i] = !0, console.warn(
4916
+ return n && !ko[i] && (ko[i] = !0, console.warn(
4917
4917
  o(
4918
4918
  i,
4919
4919
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -4944,12 +4944,12 @@ function mc(e, t, n) {
4944
4944
  const Sn = {
4945
4945
  assertOptions: mc,
4946
4946
  validators: Vn
4947
- }, Ye = Sn.validators;
4948
- let wt = class {
4947
+ }, Xe = Sn.validators;
4948
+ let bt = class {
4949
4949
  constructor(t) {
4950
4950
  this.defaults = t, this.interceptors = {
4951
- request: new yo(),
4952
- response: new yo()
4951
+ request: new vo(),
4952
+ response: new vo()
4953
4953
  };
4954
4954
  }
4955
4955
  /**
@@ -4978,20 +4978,20 @@ let wt = class {
4978
4978
  }
4979
4979
  }
4980
4980
  _request(t, n) {
4981
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = bt(this.defaults, n);
4981
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = St(this.defaults, n);
4982
4982
  const { transitional: r, paramsSerializer: o, headers: a } = n;
4983
4983
  r !== void 0 && Sn.assertOptions(r, {
4984
- silentJSONParsing: Ye.transitional(Ye.boolean),
4985
- forcedJSONParsing: Ye.transitional(Ye.boolean),
4986
- clarifyTimeoutError: Ye.transitional(Ye.boolean)
4984
+ silentJSONParsing: Xe.transitional(Xe.boolean),
4985
+ forcedJSONParsing: Xe.transitional(Xe.boolean),
4986
+ clarifyTimeoutError: Xe.transitional(Xe.boolean)
4987
4987
  }, !1), o != null && (E.isFunction(o) ? n.paramsSerializer = {
4988
4988
  serialize: o
4989
4989
  } : Sn.assertOptions(o, {
4990
- encode: Ye.function,
4991
- serialize: Ye.function
4990
+ encode: Xe.function,
4991
+ serialize: Xe.function
4992
4992
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Sn.assertOptions(n, {
4993
- baseUrl: Ye.spelling("baseURL"),
4994
- withXsrfToken: Ye.spelling("withXSRFToken")
4993
+ baseUrl: Xe.spelling("baseURL"),
4994
+ withXsrfToken: Xe.spelling("withXSRFToken")
4995
4995
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
4996
4996
  let i = a && E.merge(
4997
4997
  a.common,
@@ -5002,7 +5002,7 @@ let wt = class {
5002
5002
  (m) => {
5003
5003
  delete a[m];
5004
5004
  }
5005
- ), n.headers = Fe.concat(i, a);
5005
+ ), n.headers = Me.concat(i, a);
5006
5006
  const s = [];
5007
5007
  let l = !0;
5008
5008
  this.interceptors.request.forEach(function(p) {
@@ -5014,7 +5014,7 @@ let wt = class {
5014
5014
  });
5015
5015
  let u, d = 0, h;
5016
5016
  if (!l) {
5017
- const m = [Ro.bind(this), void 0];
5017
+ const m = [xo.bind(this), void 0];
5018
5018
  for (m.unshift.apply(m, s), m.push.apply(m, c), h = m.length, u = Promise.resolve(n); d < h; )
5019
5019
  u = u.then(m[d++], m[d++]);
5020
5020
  return u;
@@ -5031,7 +5031,7 @@ let wt = class {
5031
5031
  }
5032
5032
  }
5033
5033
  try {
5034
- u = Ro.call(this, w);
5034
+ u = xo.call(this, w);
5035
5035
  } catch (m) {
5036
5036
  return Promise.reject(m);
5037
5037
  }
@@ -5040,14 +5040,14 @@ let wt = class {
5040
5040
  return u;
5041
5041
  }
5042
5042
  getUri(t) {
5043
- t = bt(this.defaults, t);
5044
- const n = da(t.baseURL, t.url, t.allowAbsoluteUrls);
5045
- return ia(n, t.params, t.paramsSerializer);
5043
+ t = St(this.defaults, t);
5044
+ const n = fa(t.baseURL, t.url, t.allowAbsoluteUrls);
5045
+ return sa(n, t.params, t.paramsSerializer);
5046
5046
  }
5047
5047
  };
5048
5048
  E.forEach(["delete", "get", "head", "options"], function(t) {
5049
- wt.prototype[t] = function(n, r) {
5050
- return this.request(bt(r || {}, {
5049
+ bt.prototype[t] = function(n, r) {
5050
+ return this.request(St(r || {}, {
5051
5051
  method: t,
5052
5052
  url: n,
5053
5053
  data: (r || {}).data
@@ -5057,7 +5057,7 @@ E.forEach(["delete", "get", "head", "options"], function(t) {
5057
5057
  E.forEach(["post", "put", "patch"], function(t) {
5058
5058
  function n(r) {
5059
5059
  return function(a, i, s) {
5060
- return this.request(bt(s || {}, {
5060
+ return this.request(St(s || {}, {
5061
5061
  method: t,
5062
5062
  headers: r ? {
5063
5063
  "Content-Type": "multipart/form-data"
@@ -5067,9 +5067,9 @@ E.forEach(["post", "put", "patch"], function(t) {
5067
5067
  }));
5068
5068
  };
5069
5069
  }
5070
- wt.prototype[t] = n(), wt.prototype[t + "Form"] = n(!0);
5070
+ bt.prototype[t] = n(), bt.prototype[t + "Form"] = n(!0);
5071
5071
  });
5072
- let gc = class ya {
5072
+ let gc = class va {
5073
5073
  constructor(t) {
5074
5074
  if (typeof t != "function")
5075
5075
  throw new TypeError("executor must be a function.");
@@ -5135,7 +5135,7 @@ let gc = class ya {
5135
5135
  static source() {
5136
5136
  let t;
5137
5137
  return {
5138
- token: new ya(function(o) {
5138
+ token: new va(function(o) {
5139
5139
  t = o;
5140
5140
  }),
5141
5141
  cancel: t
@@ -5218,18 +5218,18 @@ const gr = {
5218
5218
  Object.entries(gr).forEach(([e, t]) => {
5219
5219
  gr[t] = e;
5220
5220
  });
5221
- function va(e) {
5222
- const t = new wt(e), n = Ko(wt.prototype.request, t);
5223
- return E.extend(n, wt.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
5224
- return va(bt(e, o));
5221
+ function wa(e) {
5222
+ const t = new bt(e), n = Go(bt.prototype.request, t);
5223
+ return E.extend(n, bt.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
5224
+ return wa(St(e, o));
5225
5225
  }, n;
5226
5226
  }
5227
- const de = va(Qt);
5228
- de.Axios = wt;
5227
+ const de = wa(Qt);
5228
+ de.Axios = bt;
5229
5229
  de.CanceledError = Ot;
5230
5230
  de.CancelToken = gc;
5231
- de.isCancel = ca;
5232
- de.VERSION = ga;
5231
+ de.isCancel = ua;
5232
+ de.VERSION = ya;
5233
5233
  de.toFormData = Hn;
5234
5234
  de.AxiosError = $;
5235
5235
  de.Cancel = de.CanceledError;
@@ -5238,10 +5238,10 @@ de.all = function(t) {
5238
5238
  };
5239
5239
  de.spread = yc;
5240
5240
  de.isAxiosError = vc;
5241
- de.mergeConfig = bt;
5242
- de.AxiosHeaders = Fe;
5243
- de.formToJSON = (e) => la(E.isHTMLForm(e) ? new FormData(e) : e);
5244
- de.getAdapter = ma.getAdapter;
5241
+ de.mergeConfig = St;
5242
+ de.AxiosHeaders = Me;
5243
+ de.formToJSON = (e) => ca(E.isHTMLForm(e) ? new FormData(e) : e);
5244
+ de.getAdapter = ga.getAdapter;
5245
5245
  de.HttpStatusCode = gr;
5246
5246
  de.default = de;
5247
5247
  const {
@@ -5261,7 +5261,7 @@ const {
5261
5261
  formToJSON: Gd,
5262
5262
  getAdapter: Yd,
5263
5263
  mergeConfig: Xd
5264
- } = de, hn = "https://localhost:5043", st = async (e) => {
5264
+ } = de, hn = "https://localhost:5043", lt = async (e) => {
5265
5265
  var h, w;
5266
5266
  const { url: t, withToken: n, method: r, body: o, contentType: a, typeToken: i = "seller" } = e, s = n ? localStorage.getItem("sellerAccessToken") : null, l = n ? localStorage.getItem("token") : null, c = i === "seller" ? s : l, u = localStorage.getItem("dv"), d = {};
5267
5267
  a && !(o instanceof FormData) ? d["Content-Type"] = a : o instanceof FormData || (d["Content-Type"] = "application/json"), n && c && (d.Authorization = `Bearer ${c}`);
@@ -5293,7 +5293,7 @@ const {
5293
5293
  const S = (w = p.response) == null ? void 0 : w.status;
5294
5294
  if (S === 401)
5295
5295
  try {
5296
- const _ = await import("./charge-Dlt2N2gE.js").then((N) => N.a6);
5296
+ const _ = await import("./charge-JIFfQW47.js").then((N) => N.a6);
5297
5297
  _ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
5298
5298
  } catch (_) {
5299
5299
  console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
@@ -5350,7 +5350,7 @@ const {
5350
5350
  } catch {
5351
5351
  return t;
5352
5352
  }
5353
- }, ko = (e, t) => {
5353
+ }, No = (e, t) => {
5354
5354
  (t === null || typeof t != "object") && window.localStorage.setItem(e, String(t));
5355
5355
  const n = JSON.stringify(t);
5356
5356
  window.localStorage.setItem(e, n);
@@ -5359,21 +5359,21 @@ const {
5359
5359
  const e = yr(Jt);
5360
5360
  return ((t = e == null ? void 0 : e.s) == null ? void 0 : t.i) || null;
5361
5361
  }, af = (e, t = "production", n) => {
5362
- const { pathname: r } = Qe(), o = jr(), a = jr(document.visibilityState);
5362
+ const { pathname: r } = et(), o = $r(), a = $r(document.visibilityState);
5363
5363
  Ta(() => {
5364
5364
  if (!e) return;
5365
- const i = () => Date.now(), s = async () => (await st({
5365
+ const i = () => Date.now(), s = async () => (await lt({
5366
5366
  url: `${n ? Vt : Ut}/${e}/t/p`,
5367
5367
  method: "post",
5368
5368
  withToken: !1
5369
- })).data.data.id, l = async (m) => (await st({
5369
+ })).data.data.id, l = async (m) => (await lt({
5370
5370
  url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s`,
5371
5371
  method: "post",
5372
5372
  withToken: !1
5373
5373
  })).data.data.id, c = async (m, p, v, R) => {
5374
5374
  const S = t === "development" ? nr : m;
5375
5375
  try {
5376
- return (await st({
5376
+ return (await lt({
5377
5377
  url: `${n ? Vt : Ut}/${e}/t/p/${S}/s/${p}/e`,
5378
5378
  method: "post",
5379
5379
  withToken: !1,
@@ -5381,7 +5381,7 @@ const {
5381
5381
  contentType: "application/json"
5382
5382
  })).data.data.id;
5383
5383
  } catch {
5384
- return p = await l(m), (await st({
5384
+ return p = await l(m), (await lt({
5385
5385
  url: `${n ? Vt : Ut}/${e}/t/p/${S}/s/${p}/e`,
5386
5386
  method: "post",
5387
5387
  withToken: !1,
@@ -5390,13 +5390,13 @@ const {
5390
5390
  })).data.data.id;
5391
5391
  }
5392
5392
  }, u = async (m, p, v) => {
5393
- await st({
5393
+ await lt({
5394
5394
  url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s/${p}/e/${v}/h`,
5395
5395
  method: "post",
5396
5396
  withToken: !1
5397
5397
  });
5398
5398
  const S = yr(Jt);
5399
- S && (S.s.u = i().toString(), S.lu = i().toString(), ko(Jt, S));
5399
+ S && (S.s.u = i().toString(), S.lu = i().toString(), No(Jt, S));
5400
5400
  }, d = (m, p, v) => {
5401
5401
  o.current && clearInterval(o.current), o.current = setInterval(async () => {
5402
5402
  if (document.visibilityState === "visible")
@@ -5420,7 +5420,7 @@ const {
5420
5420
  U,
5421
5421
  m,
5422
5422
  p != null && p.l && !B ? p.l : void 0
5423
- ), ee = {
5423
+ ), ie = {
5424
5424
  p: N,
5425
5425
  s: {
5426
5426
  i: U,
@@ -5430,7 +5430,7 @@ const {
5430
5430
  l: ae,
5431
5431
  lu: v.toString()
5432
5432
  };
5433
- ko(Jt, ee), d(N, U, ae);
5433
+ No(Jt, ie), d(N, U, ae);
5434
5434
  } catch (N) {
5435
5435
  console.error("[TrackingAnalytics] error", N);
5436
5436
  }
@@ -5455,10 +5455,10 @@ const {
5455
5455
  tsId: Tc()
5456
5456
  };
5457
5457
  let Nt = null;
5458
- const No = localStorage.getItem("token");
5459
- if (No)
5458
+ const _o = localStorage.getItem("token");
5459
+ if (_o)
5460
5460
  try {
5461
- Nt = $s(JSON.parse(No) || "");
5461
+ Nt = $s(JSON.parse(_o) || "");
5462
5462
  } catch {
5463
5463
  Nt = null;
5464
5464
  }
@@ -5520,12 +5520,12 @@ const sf = se((e) => ({
5520
5520
  setSettings: (t) => e(() => ({ settings: t })),
5521
5521
  settingsInstance: null,
5522
5522
  setSettingsInstance: (t) => e(() => ({ settingsInstance: t }))
5523
- })), wa = se((e) => ({
5523
+ })), Mr = se((e) => ({
5524
5524
  general: null,
5525
5525
  setGeneral: (t) => e(() => ({ general: t })),
5526
5526
  isAntistock: !1,
5527
5527
  setIsAntistock: (t) => e(() => ({ isAntistock: t }))
5528
- })), _o = se((e) => ({
5528
+ })), To = se((e) => ({
5529
5529
  settings: null,
5530
5530
  setSettings: (t) => {
5531
5531
  e(() => ({ settings: t }));
@@ -5809,7 +5809,7 @@ const sf = se((e) => ({
5809
5809
  },
5810
5810
  updateColor: (n, r, o) => e((a) => {
5811
5811
  const i = JSON.parse(JSON.stringify(t().themeSettings));
5812
- De.getState().addHistory({ themeSettings: i });
5812
+ Oe.getState().addHistory({ themeSettings: i });
5813
5813
  const s = {
5814
5814
  ...a.themeSettings.colors,
5815
5815
  [n]: {
@@ -5821,7 +5821,7 @@ const sf = se((e) => ({
5821
5821
  }),
5822
5822
  updateFont: (n, r, o, a, i) => e((s) => {
5823
5823
  const l = JSON.parse(JSON.stringify(t().themeSettings));
5824
- De.getState().addHistory({ themeSettings: l });
5824
+ Oe.getState().addHistory({ themeSettings: l });
5825
5825
  const c = {
5826
5826
  ...s.themeSettings.fonts,
5827
5827
  [n]: {
@@ -5846,7 +5846,7 @@ const sf = se((e) => ({
5846
5846
  }),
5847
5847
  updateFontSizePercentage: (n, r) => e((o) => {
5848
5848
  const a = JSON.parse(JSON.stringify(t().themeSettings));
5849
- De.getState().addHistory({ themeSettings: a });
5849
+ Oe.getState().addHistory({ themeSettings: a });
5850
5850
  const i = {
5851
5851
  ...o.themeSettings.fonts,
5852
5852
  [n]: {
@@ -5858,7 +5858,7 @@ const sf = se((e) => ({
5858
5858
  }),
5859
5859
  updateBorder: (n, r) => e((o) => {
5860
5860
  const a = JSON.parse(JSON.stringify(t().themeSettings));
5861
- De.getState().addHistory({ themeSettings: a });
5861
+ Oe.getState().addHistory({ themeSettings: a });
5862
5862
  const i = {
5863
5863
  ...o.themeSettings.borders,
5864
5864
  [n]: r
@@ -5867,7 +5867,7 @@ const sf = se((e) => ({
5867
5867
  }),
5868
5868
  updateButton: (n, r, o) => e((a) => {
5869
5869
  const i = JSON.parse(JSON.stringify(t().themeSettings));
5870
- De.getState().addHistory({ themeSettings: i });
5870
+ Oe.getState().addHistory({ themeSettings: i });
5871
5871
  const s = {
5872
5872
  ...a.themeSettings.buttons[n],
5873
5873
  [r]: o
@@ -5879,7 +5879,7 @@ const sf = se((e) => ({
5879
5879
  }),
5880
5880
  updateInput: (n, r, o) => e((a) => {
5881
5881
  const i = JSON.parse(JSON.stringify(t().themeSettings));
5882
- return De.getState().addHistory({ themeSettings: i }), {
5882
+ return Oe.getState().addHistory({ themeSettings: i }), {
5883
5883
  themeSettings: {
5884
5884
  ...a.themeSettings,
5885
5885
  inputs: {
@@ -5894,7 +5894,7 @@ const sf = se((e) => ({
5894
5894
  }),
5895
5895
  isLoadingThemeSettings: !1,
5896
5896
  setIsLoadingThemeSettings: (n) => e(() => ({ isLoadingThemeSettings: n }))
5897
- })), Ue = se((e) => ({
5897
+ })), He = se((e) => ({
5898
5898
  notifications: [],
5899
5899
  setNotifications: (t) => e(() => ({ notifications: t }))
5900
5900
  })), df = se((e) => ({
@@ -5914,12 +5914,12 @@ function Dc() {
5914
5914
  return pn(Ac);
5915
5915
  }
5916
5916
  var Fc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5917
- const To = {
5917
+ const Po = {
5918
5918
  randomUUID: Fc
5919
5919
  };
5920
- function it(e, t, n) {
5921
- if (To.randomUUID && !e)
5922
- return To.randomUUID();
5920
+ function st(e, t, n) {
5921
+ if (Po.randomUUID && !e)
5922
+ return Po.randomUUID();
5923
5923
  e = e || {};
5924
5924
  var r = e.random || (e.rng || Dc)();
5925
5925
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Mc(r);
@@ -6095,7 +6095,7 @@ const wr = (e) => (t) => {
6095
6095
  setIsOpenSelectModal: (n) => e(() => ({ isOpenSelectModal: n })),
6096
6096
  setIsEdit: (n) => e(() => ({ isEdit: n })),
6097
6097
  createPage: (n) => {
6098
- const r = t().pages, o = it();
6098
+ const r = t().pages, o = st();
6099
6099
  if (r)
6100
6100
  r[o] = n, e({ pages: r });
6101
6101
  else {
@@ -6141,15 +6141,15 @@ const wr = (e) => (t) => {
6141
6141
  },
6142
6142
  setHeader: (n, r = !0) => {
6143
6143
  const o = JSON.parse(JSON.stringify(t().header)), a = JSON.parse(JSON.stringify(n));
6144
- JSON.stringify(o) !== JSON.stringify(a) && r && De.getState().addHistory({ header: o }), e({ header: a });
6144
+ JSON.stringify(o) !== JSON.stringify(a) && r && Oe.getState().addHistory({ header: o }), e({ header: a });
6145
6145
  },
6146
6146
  setFooter: (n, r = !0) => {
6147
6147
  const o = JSON.parse(JSON.stringify(t().footer)), a = JSON.parse(JSON.stringify(n));
6148
- JSON.stringify(o) !== JSON.stringify(a) && r && De.getState().addHistory({ footer: o }), e({ footer: a });
6148
+ JSON.stringify(o) !== JSON.stringify(a) && r && Oe.getState().addHistory({ footer: o }), e({ footer: a });
6149
6149
  },
6150
6150
  setAnnouncement: (n, r = !0) => {
6151
6151
  const o = JSON.parse(JSON.stringify(t().announcement)), a = JSON.parse(JSON.stringify(n));
6152
- JSON.stringify(o) !== JSON.stringify(a) && r && De.getState().addHistory({ announcement: o }), e({ announcement: a });
6152
+ JSON.stringify(o) !== JSON.stringify(a) && r && Oe.getState().addHistory({ announcement: o }), e({ announcement: a });
6153
6153
  },
6154
6154
  createPage: (n) => {
6155
6155
  const r = t().blocks;
@@ -6187,8 +6187,8 @@ const wr = (e) => (t) => {
6187
6187
  },
6188
6188
  addBlock: (n, r) => {
6189
6189
  const o = JSON.parse(JSON.stringify(t().blocks));
6190
- De.getState().addHistory({ layers: o });
6191
- const a = { ...t().blocks }, i = a[n] || { data: {}, order: [] }, s = t().positionBlock, l = it(), c = {
6190
+ Oe.getState().addHistory({ layers: o });
6191
+ const a = { ...t().blocks }, i = a[n] || { data: {}, order: [] }, s = t().positionBlock, l = st(), c = {
6192
6192
  name: r.name,
6193
6193
  value: r.value
6194
6194
  };
@@ -6202,10 +6202,10 @@ const wr = (e) => (t) => {
6202
6202
  },
6203
6203
  currentBlock: l,
6204
6204
  positionBlock: null
6205
- }), Ue.getState().setNotifications([
6206
- ...Ue.getState().notifications,
6205
+ }), He.getState().setNotifications([
6206
+ ...He.getState().notifications,
6207
6207
  {
6208
- id: it(),
6208
+ id: st(),
6209
6209
  message: "Block successfully added",
6210
6210
  status: "success"
6211
6211
  }
@@ -6213,7 +6213,7 @@ const wr = (e) => (t) => {
6213
6213
  },
6214
6214
  editBlock: (n, r, o) => {
6215
6215
  const a = JSON.parse(JSON.stringify(t().blocks));
6216
- De.getState().addHistory({ layers: a });
6216
+ Oe.getState().addHistory({ layers: a });
6217
6217
  const i = t().blocks, s = i[n] || {};
6218
6218
  s.data[r] = {
6219
6219
  name: o.name,
@@ -6227,7 +6227,7 @@ const wr = (e) => (t) => {
6227
6227
  },
6228
6228
  removeBlock: (n, r) => {
6229
6229
  const o = JSON.parse(JSON.stringify(t().blocks));
6230
- De.getState().addHistory({ layers: o });
6230
+ Oe.getState().addHistory({ layers: o });
6231
6231
  const a = JSON.parse(JSON.stringify(t().blocks)), i = a[n];
6232
6232
  if (!i) {
6233
6233
  console.error(`Page at path "${n}" does not exist.`);
@@ -6238,10 +6238,10 @@ const wr = (e) => (t) => {
6238
6238
  ...a,
6239
6239
  [n]: i
6240
6240
  }
6241
- }), Ue.getState().setNotifications([
6242
- ...Ue.getState().notifications,
6241
+ }), He.getState().setNotifications([
6242
+ ...He.getState().notifications,
6243
6243
  {
6244
- id: it(),
6244
+ id: st(),
6245
6245
  message: "Block successfully deleted",
6246
6246
  status: "success"
6247
6247
  }
@@ -6249,16 +6249,16 @@ const wr = (e) => (t) => {
6249
6249
  },
6250
6250
  moveBlock: (n, r, o) => e((a) => {
6251
6251
  const i = JSON.parse(JSON.stringify(t().blocks));
6252
- if (De.getState().addHistory({ layers: i }), !a.blocks[n])
6252
+ if (Oe.getState().addHistory({ layers: i }), !a.blocks[n])
6253
6253
  return console.error(`Path ${n} does not exist in blocks`), a;
6254
6254
  const s = { ...a.blocks[n] }, l = [...s.order];
6255
6255
  if (r < 0 || o < 0 || r >= l.length || o >= l.length)
6256
6256
  return console.error(`Invalid indices: fromIndex=${r}, toIndex=${o}`), a;
6257
6257
  const [c] = l.splice(r, 1);
6258
- return l.splice(o, 0, c), Ue.getState().setNotifications([
6259
- ...Ue.getState().notifications,
6258
+ return l.splice(o, 0, c), He.getState().setNotifications([
6259
+ ...He.getState().notifications,
6260
6260
  {
6261
- id: it(),
6261
+ id: st(),
6262
6262
  message: "Block successfully moved",
6263
6263
  status: "success"
6264
6264
  }
@@ -6274,13 +6274,13 @@ const wr = (e) => (t) => {
6274
6274
  }),
6275
6275
  duplicateBlock: (n, r) => {
6276
6276
  const o = JSON.parse(JSON.stringify(t().blocks));
6277
- De.getState().addHistory({ layers: o });
6277
+ Oe.getState().addHistory({ layers: o });
6278
6278
  const a = JSON.parse(JSON.stringify(t().blocks)), i = a[n];
6279
6279
  if (!i || !i.data[r]) {
6280
6280
  console.error(`Block with ID "${r}" not found in page "${n}"`);
6281
6281
  return;
6282
6282
  }
6283
- const s = it(), l = i.data[r], c = {
6283
+ const s = st(), l = i.data[r], c = {
6284
6284
  name: l.name,
6285
6285
  value: JSON.parse(JSON.stringify({ ...l.value }))
6286
6286
  };
@@ -6301,10 +6301,10 @@ const wr = (e) => (t) => {
6301
6301
  }), Hc.getState().setActiveBlock({
6302
6302
  id: s,
6303
6303
  neededScroll: !0
6304
- }), Ue.getState().setNotifications([
6305
- ...Ue.getState().notifications,
6304
+ }), He.getState().setNotifications([
6305
+ ...He.getState().notifications,
6306
6306
  {
6307
- id: it(),
6307
+ id: st(),
6308
6308
  message: "Block successfully duplicated",
6309
6309
  status: "success"
6310
6310
  }
@@ -6321,7 +6321,7 @@ const wr = (e) => (t) => {
6321
6321
  }
6322
6322
  }
6323
6323
  )
6324
- ), De = se((e, t) => ({
6324
+ ), Oe = se((e, t) => ({
6325
6325
  past: [],
6326
6326
  future: [],
6327
6327
  // Добавление в историю
@@ -6733,7 +6733,7 @@ var ba = { exports: {} };
6733
6733
  })();
6734
6734
  })(ba);
6735
6735
  var zc = ba.exports;
6736
- const Ve = /* @__PURE__ */ $c(zc), xf = se((e) => ({
6736
+ const Ue = /* @__PURE__ */ $c(zc), xf = se((e) => ({
6737
6737
  currentDevice: {
6738
6738
  icon: "Desktop",
6739
6739
  value: "desktop"
@@ -6878,7 +6878,7 @@ const Sa = se((e, t) => ({
6878
6878
  tooltip: Kc
6879
6879
  }, Nf = (e) => {
6880
6880
  const { text: t } = e, { setShowTooltip: n } = Wc();
6881
- return _e.useEffect(() => (n(!0), () => {
6881
+ return Te.useEffect(() => (n(!0), () => {
6882
6882
  n(!1);
6883
6883
  }), []), /* @__PURE__ */ M("div", { className: Gc.tooltip, children: t });
6884
6884
  }, _f = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
@@ -6936,7 +6936,7 @@ const Yc = (e, t, n, r, o, a, i) => {
6936
6936
  return t ? /* @__PURE__ */ M(
6937
6937
  "div",
6938
6938
  {
6939
- className: Ve(Sr.wrapper, Sr.submodal),
6939
+ className: Ue(Sr.wrapper, Sr.submodal),
6940
6940
  onMouseEnter: () => {
6941
6941
  r(), o(!0);
6942
6942
  },
@@ -6989,8 +6989,8 @@ const Wu = (e) => {
6989
6989
  labelStyle: o = "primary",
6990
6990
  isGradientActive: a = !0,
6991
6991
  isBlockSettings: i
6992
- } = e, [s, l] = _e.useState(t);
6993
- _e.useEffect(() => {
6992
+ } = e, [s, l] = Te.useState(t);
6993
+ Te.useEffect(() => {
6994
6994
  l(t);
6995
6995
  }, [t]);
6996
6996
  const {
@@ -7004,7 +7004,7 @@ const Wu = (e) => {
7004
7004
  setIsGradientActive: v,
7005
7005
  colorChange: R
7006
7006
  } = Ca();
7007
- _e.useEffect(() => {
7007
+ Te.useEffect(() => {
7008
7008
  const N = () => {
7009
7009
  h(!1), c(null), d(t), w(() => {
7010
7010
  }), m(t), p(() => {
@@ -7027,17 +7027,17 @@ const Wu = (e) => {
7027
7027
  }, _ = () => {
7028
7028
  or(s) || l(t);
7029
7029
  };
7030
- return /* @__PURE__ */ Le("div", { className: q.content, children: [
7030
+ return /* @__PURE__ */ Ee("div", { className: q.content, children: [
7031
7031
  /* @__PURE__ */ M(
7032
7032
  "span",
7033
7033
  {
7034
- className: Ve(q.name, {
7034
+ className: Ue(q.name, {
7035
7035
  [q.secondary]: o === "secondary"
7036
7036
  }),
7037
7037
  children: r
7038
7038
  }
7039
7039
  ),
7040
- /* @__PURE__ */ Le(
7040
+ /* @__PURE__ */ Ee(
7041
7041
  "label",
7042
7042
  {
7043
7043
  className: q.label,
@@ -7102,50 +7102,50 @@ const Wu = (e) => {
7102
7102
  setHue2: K,
7103
7103
  setSaturation2: B,
7104
7104
  setBrightness2: ae,
7105
- setAlpha2: ee,
7105
+ setAlpha2: ie,
7106
7106
  activeColorIndex: te,
7107
7107
  setActiveColorIndex: he,
7108
- isGradientActive: Oe,
7109
- isBlockSettings: Te
7110
- } = Ca(), qe = (j, V, ne) => {
7108
+ isGradientActive: Le,
7109
+ isBlockSettings: Ze
7110
+ } = Ca(), Ae = (j, V, ne) => {
7111
7111
  V /= 100, ne /= 100;
7112
- const z = (ue) => (ue + j / 60) % 6, G = (ue) => ne * (1 - V * Math.max(0, Math.min(z(ue), 4 - z(ue), 1))), W = Math.round(255 * G(5)), re = Math.round(255 * G(3)), Z = Math.round(255 * G(1));
7112
+ const z = (ue) => (ue + j / 60) % 6, Y = (ue) => ne * (1 - V * Math.max(0, Math.min(z(ue), 4 - z(ue), 1))), W = Math.round(255 * Y(5)), re = Math.round(255 * Y(3)), Z = Math.round(255 * Y(1));
7113
7113
  return { r: W, g: re, b: Z };
7114
- }, ce = (j) => j.toString(16).padStart(2, "0"), Re = (j, V, ne, z) => {
7115
- const { r: G, g: W, b: re } = qe(j, V, ne), Z = Math.round(z / 100 * 255);
7116
- return `#${ce(G)}${ce(W)}${ce(re)}${ce(Z)}`;
7117
- }, Se = (j, V, ne, z) => {
7114
+ }, le = (j) => j.toString(16).padStart(2, "0"), Ne = (j, V, ne, z) => {
7115
+ const { r: Y, g: W, b: re } = Ae(j, V, ne), Z = Math.round(z / 100 * 255);
7116
+ return `#${le(Y)}${le(W)}${le(re)}${le(Z)}`;
7117
+ }, be = (j, V, ne, z) => {
7118
7118
  if (R)
7119
7119
  if (te === 1) {
7120
7120
  u(j), d(V), h(ne), w(z);
7121
- const G = Re(j, V, ne, z), W = Re(N, U, b, T), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
7121
+ const Y = Ne(j, V, ne, z), W = Ne(N, U, b, T), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${Y} 0%, ${W} 100%)`;
7122
7122
  m(Z), p(Z);
7123
7123
  } else {
7124
- K(j), B(V), ae(ne), ee(z);
7125
- const G = Re(j, V, ne, z), W = Re(o, a, i, s), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${G} 100%)`;
7124
+ K(j), B(V), ae(ne), ie(z);
7125
+ const Y = Ne(j, V, ne, z), W = Ne(o, a, i, s), Z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${Y} 100%)`;
7126
7126
  m(Z), p(Z);
7127
7127
  }
7128
7128
  else {
7129
- const G = Re(j, V, ne, z);
7130
- m(G), p(G);
7129
+ const Y = Ne(j, V, ne, z);
7130
+ m(Y), p(Y);
7131
7131
  }
7132
- }, be = (j, V, ne) => {
7133
- const { width: z, height: G } = ne.getBoundingClientRect(), W = Math.max(0, Math.min(j / z * 100, 100)), re = Math.max(0, Math.min(100 - V / G * 100, 100));
7134
- R ? te === 1 ? (d(W), h(re), Se(o, W, re, s)) : (B(W), ae(re), Se(N, W, re, T)) : (d(W), h(re), Se(o, W, re, s));
7135
- }, Pe = (j) => {
7132
+ }, $e = (j, V, ne) => {
7133
+ const { width: z, height: Y } = ne.getBoundingClientRect(), W = Math.max(0, Math.min(j / z * 100, 100)), re = Math.max(0, Math.min(100 - V / Y * 100, 100));
7134
+ R ? te === 1 ? (d(W), h(re), be(o, W, re, s)) : (B(W), ae(re), be(N, W, re, T)) : (d(W), h(re), be(o, W, re, s));
7135
+ }, ge = (j) => {
7136
7136
  const { offsetX: V, offsetY: ne } = j.nativeEvent;
7137
- c(!0), be(V, ne, j.currentTarget);
7138
- }, He = (j) => {
7137
+ c(!0), $e(V, ne, j.currentTarget);
7138
+ }, Be = (j) => {
7139
7139
  if (l) {
7140
- const V = document.querySelector(`.${q.colorMap}`), { left: ne, top: z } = V.getBoundingClientRect(), G = j.clientX - ne, W = j.clientY - z;
7141
- be(G, W, V);
7140
+ const V = document.querySelector(`.${q.colorMap}`), { left: ne, top: z } = V.getBoundingClientRect(), Y = j.clientX - ne, W = j.clientY - z;
7141
+ $e(Y, W, V);
7142
7142
  }
7143
- }, ie = () => {
7143
+ }, ze = () => {
7144
7144
  c(!1);
7145
7145
  };
7146
- _e.useEffect(() => {
7146
+ Te.useEffect(() => {
7147
7147
  function j(z) {
7148
- const G = /linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/, W = z.match(G);
7148
+ const Y = /linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/, W = z.match(Y);
7149
7149
  if (W) {
7150
7150
  const re = W[1], Z = W[2], ue = W[3];
7151
7151
  return { angle: re, col1: Z, col2: ue };
@@ -7153,41 +7153,41 @@ const Wu = (e) => {
7153
7153
  return null;
7154
7154
  }
7155
7155
  function V(z) {
7156
- const G = parseInt(z.slice(1, 3), 16), W = parseInt(z.slice(3, 5), 16), re = parseInt(z.slice(5, 7), 16), Z = parseInt(z.slice(7, 9), 16) / 255 * 100, { h: ue, s: tt, b: ht } = ne(G, W, re);
7157
- return { h: ue, s: tt, b: ht, a: Z };
7156
+ const Y = parseInt(z.slice(1, 3), 16), W = parseInt(z.slice(3, 5), 16), re = parseInt(z.slice(5, 7), 16), Z = parseInt(z.slice(7, 9), 16) / 255 * 100, { h: ue, s: nt, b: ht } = ne(Y, W, re);
7157
+ return { h: ue, s: nt, b: ht, a: Z };
7158
7158
  }
7159
- function ne(z, G, W) {
7160
- z /= 255, G /= 255, W /= 255;
7161
- const re = Math.max(z, G, W), Z = Math.min(z, G, W);
7159
+ function ne(z, Y, W) {
7160
+ z /= 255, Y /= 255, W /= 255;
7161
+ const re = Math.max(z, Y, W), Z = Math.min(z, Y, W);
7162
7162
  let ue = 0;
7163
- const tt = re - Z, ht = (re === 0 ? 0 : tt / re) * 100, Ke = re * 100;
7163
+ const nt = re - Z, ht = (re === 0 ? 0 : nt / re) * 100, Ge = re * 100;
7164
7164
  if (re === Z)
7165
7165
  ue = 0;
7166
7166
  else
7167
7167
  switch (re) {
7168
7168
  case z:
7169
- ue = ((G - W) / tt + (G < W ? 6 : 0)) * 60;
7169
+ ue = ((Y - W) / nt + (Y < W ? 6 : 0)) * 60;
7170
7170
  break;
7171
- case G:
7172
- ue = ((W - z) / tt + 2) * 60;
7171
+ case Y:
7172
+ ue = ((W - z) / nt + 2) * 60;
7173
7173
  break;
7174
7174
  case W:
7175
- ue = ((z - G) / tt + 4) * 60;
7175
+ ue = ((z - Y) / nt + 4) * 60;
7176
7176
  break;
7177
7177
  }
7178
- return { h: ue, s: ht, b: Ke };
7178
+ return { h: ue, s: ht, b: Ge };
7179
7179
  }
7180
7180
  if (n && n.startsWith("linear-gradient")) {
7181
7181
  const z = j(n);
7182
7182
  if (z) {
7183
- const { angle: G, col1: W, col2: re } = z, Z = V(W), ue = V(re);
7184
- S(!0), _(G === "0deg" ? "vertical" : "horizontal"), u(Z.h), d(Z.s), h(Z.b), w(Z.a), K(ue.h), B(ue.s), ae(ue.b), ee(ue.a), he(1);
7183
+ const { angle: Y, col1: W, col2: re } = z, Z = V(W), ue = V(re);
7184
+ S(!0), _(Y === "0deg" ? "vertical" : "horizontal"), u(Z.h), d(Z.s), h(Z.b), w(Z.a), K(ue.h), B(ue.s), ae(ue.b), ie(ue.a), he(1);
7185
7185
  }
7186
7186
  } else if (n) {
7187
- const G = function(re) {
7187
+ const Y = function(re) {
7188
7188
  let Z = re;
7189
7189
  return Z.length === 7 ? Z + "ff" : Z.length === 9 ? Z : Z.length === 4 ? Z[0] + Z[1].repeat(2) + Z[2].repeat(2) + Z[3].repeat(2) + "ff" : "#000000ff";
7190
- }(n), W = V(G);
7190
+ }(n), W = V(Y);
7191
7191
  S(!1), u(W.h), d(W.s), h(W.b), w(W.a);
7192
7192
  }
7193
7193
  }, [
@@ -7201,11 +7201,11 @@ const Wu = (e) => {
7201
7201
  K,
7202
7202
  B,
7203
7203
  ae,
7204
- ee,
7204
+ ie,
7205
7205
  he
7206
- ]), _e.useEffect(() => {
7206
+ ]), Te.useEffect(() => {
7207
7207
  let j, V, ne, z;
7208
- R ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = b, z = T) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
7208
+ R ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = b, z = T) : (j = o, V = a, ne = i, z = s), be(j, V, ne, z);
7209
7209
  }, [
7210
7210
  R,
7211
7211
  x,
@@ -7218,26 +7218,26 @@ const Wu = (e) => {
7218
7218
  U,
7219
7219
  b,
7220
7220
  T
7221
- ]), _e.useEffect(() => {
7222
- const j = (ne) => He(ne), V = () => ie();
7221
+ ]), Te.useEffect(() => {
7222
+ const j = (ne) => Be(ne), V = () => ze();
7223
7223
  return l ? (document.addEventListener("mousemove", j), document.addEventListener("mouseup", V)) : (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V)), () => {
7224
7224
  document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V);
7225
7225
  };
7226
7226
  }, [l, R, x]);
7227
- function pe() {
7227
+ function G() {
7228
7228
  if (!R)
7229
7229
  v(t);
7230
7230
  else {
7231
- const j = Re(o, a, i, s), V = Re(N, U, b, T), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7231
+ const j = Ne(o, a, i, s), V = Ne(N, U, b, T), z = `linear-gradient(${x === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
7232
7232
  v(z);
7233
7233
  }
7234
7234
  r(!1);
7235
7235
  }
7236
- function Me() {
7236
+ function Se() {
7237
7237
  r(!1), m(n);
7238
7238
  }
7239
- const Ce = R ? te === 1 ? o : N : o, ft = R ? te === 1 ? a : U : a, en = R ? te === 1 ? i : b : i, zn = R ? te === 1 ? s : T : s, { r: tn, g: Ee, b: et } = qe(Ce, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ee}, ${et}, 0), rgba(${tn}, ${Ee}, ${et}, 1))`, rn = Re(o, a, i, s), Ze = Re(N, U, b, T);
7240
- return /* @__PURE__ */ Le(
7239
+ const Re = R ? te === 1 ? o : N : o, De = R ? te === 1 ? a : U : a, en = R ? te === 1 ? i : b : i, zn = R ? te === 1 ? s : T : s, { r: tn, g: Ce, b: tt } = Ae(Re, De, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ce}, ${tt}, 0), rgba(${tn}, ${Ce}, ${tt}, 1))`, rn = Ne(o, a, i, s), Ke = Ne(N, U, b, T);
7240
+ return /* @__PURE__ */ Ee(
7241
7241
  "div",
7242
7242
  {
7243
7243
  className: q.modal,
@@ -7248,11 +7248,11 @@ const Wu = (e) => {
7248
7248
  },
7249
7249
  children: [
7250
7250
  /* @__PURE__ */ M("h2", { className: q.title, children: "Color" }),
7251
- Oe && /* @__PURE__ */ Le("div", { className: q.colorTypes, children: [
7252
- /* @__PURE__ */ Le(
7251
+ Le && /* @__PURE__ */ Ee("div", { className: q.colorTypes, children: [
7252
+ /* @__PURE__ */ Ee(
7253
7253
  "div",
7254
7254
  {
7255
- className: Ve(q.colorType, { [q.colorTypeActive]: !R }),
7255
+ className: Ue(q.colorType, { [q.colorTypeActive]: !R }),
7256
7256
  onClick: () => S(!1),
7257
7257
  children: [
7258
7258
  /* @__PURE__ */ M(
@@ -7270,10 +7270,10 @@ const Wu = (e) => {
7270
7270
  ]
7271
7271
  }
7272
7272
  ),
7273
- /* @__PURE__ */ Le(
7273
+ /* @__PURE__ */ Ee(
7274
7274
  "div",
7275
7275
  {
7276
- className: Ve(q.colorType, { [q.colorTypeActive]: R }),
7276
+ className: Ue(q.colorType, { [q.colorTypeActive]: R }),
7277
7277
  onClick: () => S(!0),
7278
7278
  children: [
7279
7279
  /* @__PURE__ */ M(
@@ -7292,20 +7292,20 @@ const Wu = (e) => {
7292
7292
  }
7293
7293
  )
7294
7294
  ] }),
7295
- R && Oe && /* @__PURE__ */ Le("div", { className: q.colorsWrapper, children: [
7295
+ R && Le && /* @__PURE__ */ Ee("div", { className: q.colorsWrapper, children: [
7296
7296
  /* @__PURE__ */ M(
7297
7297
  "div",
7298
7298
  {
7299
7299
  className: q.colors,
7300
7300
  style: {
7301
- background: `linear-gradient(90deg, ${rn} 0%, ${Ze} 100%)`
7301
+ background: `linear-gradient(90deg, ${rn} 0%, ${Ke} 100%)`
7302
7302
  }
7303
7303
  }
7304
7304
  ),
7305
7305
  /* @__PURE__ */ M(
7306
7306
  "div",
7307
7307
  {
7308
- className: Ve(q.color, { [q.colorActive]: te === 1 }),
7308
+ className: Ue(q.color, { [q.colorActive]: te === 1 }),
7309
7309
  onClick: () => he(1),
7310
7310
  style: { background: rn }
7311
7311
  }
@@ -7313,9 +7313,9 @@ const Wu = (e) => {
7313
7313
  /* @__PURE__ */ M(
7314
7314
  "div",
7315
7315
  {
7316
- className: Ve(q.color, { [q.colorActive]: te === 2 }),
7316
+ className: Ue(q.color, { [q.colorActive]: te === 2 }),
7317
7317
  onClick: () => he(2),
7318
- style: { background: Ze }
7318
+ style: { background: Ke }
7319
7319
  }
7320
7320
  )
7321
7321
  ] }),
@@ -7323,11 +7323,11 @@ const Wu = (e) => {
7323
7323
  "div",
7324
7324
  {
7325
7325
  className: q.colorMap,
7326
- onMouseDown: Pe,
7326
+ onMouseDown: ge,
7327
7327
  style: {
7328
7328
  background: `
7329
7329
  linear-gradient(to top, black, transparent),
7330
- linear-gradient(to right, hsl(${Ce}, 100%, 100%), hsl(${Ce}, 100%, 50%))
7330
+ linear-gradient(to right, hsl(${Re}, 100%, 100%), hsl(${Re}, 100%, 50%))
7331
7331
  `
7332
7332
  },
7333
7333
  children: /* @__PURE__ */ M(
@@ -7336,7 +7336,7 @@ const Wu = (e) => {
7336
7336
  className: q.indicator,
7337
7337
  style: {
7338
7338
  position: "absolute",
7339
- left: `${ft}%`,
7339
+ left: `${De}%`,
7340
7340
  top: `${100 - en}%`,
7341
7341
  transform: "translate(-50%, -50%)"
7342
7342
  }
@@ -7349,7 +7349,7 @@ const Wu = (e) => {
7349
7349
  {
7350
7350
  className: q.hueSlider,
7351
7351
  style: {
7352
- bottom: Te ? R ? "225px" : "150px" : R ? "175px" : "100px"
7352
+ bottom: Ze ? R ? "225px" : "150px" : R ? "175px" : "100px"
7353
7353
  },
7354
7354
  children: /* @__PURE__ */ M(
7355
7355
  "input",
@@ -7357,22 +7357,22 @@ const Wu = (e) => {
7357
7357
  type: "range",
7358
7358
  min: "0",
7359
7359
  max: "360",
7360
- value: Ce,
7360
+ value: Re,
7361
7361
  onChange: (j) => {
7362
7362
  const V = Number(j.target.value);
7363
- R ? te === 1 ? Se(V, a, i, s) : Se(V, U, b, T) : (u(V), Se(V, a, i, s));
7363
+ R ? te === 1 ? be(V, a, i, s) : be(V, U, b, T) : (u(V), be(V, a, i, s));
7364
7364
  },
7365
7365
  className: q.slider
7366
7366
  }
7367
7367
  )
7368
7368
  }
7369
7369
  ),
7370
- /* @__PURE__ */ Le(
7370
+ /* @__PURE__ */ Ee(
7371
7371
  "div",
7372
7372
  {
7373
7373
  className: q.alphaSlider,
7374
7374
  style: {
7375
- bottom: Te ? R ? "200px" : "125px" : R ? "150px" : "75px"
7375
+ bottom: Ze ? R ? "200px" : "125px" : R ? "150px" : "75px"
7376
7376
  },
7377
7377
  children: [
7378
7378
  /* @__PURE__ */ M("div", { className: q.alphaBackground }),
@@ -7392,7 +7392,7 @@ const Wu = (e) => {
7392
7392
  value: zn,
7393
7393
  onChange: (j) => {
7394
7394
  const V = Number(j.target.value);
7395
- R ? te === 1 ? Se(o, a, i, V) : Se(N, U, b, V) : (w(V), Se(o, a, i, V));
7395
+ R ? te === 1 ? be(o, a, i, V) : be(N, U, b, V) : (w(V), be(o, a, i, V));
7396
7396
  },
7397
7397
  className: q.slider
7398
7398
  }
@@ -7400,13 +7400,13 @@ const Wu = (e) => {
7400
7400
  ]
7401
7401
  }
7402
7402
  ),
7403
- R && Oe && /* @__PURE__ */ Le("div", { className: q.gradientWrapper, children: [
7403
+ R && Le && /* @__PURE__ */ Ee("div", { className: q.gradientWrapper, children: [
7404
7404
  /* @__PURE__ */ M("h3", { className: q.subtitle, children: "Rotation" }),
7405
- /* @__PURE__ */ M("div", { className: q.gradient, children: /* @__PURE__ */ Le("div", { className: q.chargeTypes, children: [
7406
- /* @__PURE__ */ Le(
7405
+ /* @__PURE__ */ M("div", { className: q.gradient, children: /* @__PURE__ */ Ee("div", { className: q.chargeTypes, children: [
7406
+ /* @__PURE__ */ Ee(
7407
7407
  "div",
7408
7408
  {
7409
- className: Ve(q.charge, {
7409
+ className: Ue(q.charge, {
7410
7410
  [q.chargeActive]: x === "horizontal"
7411
7411
  }),
7412
7412
  onClick: () => _("horizontal"),
@@ -7423,10 +7423,10 @@ const Wu = (e) => {
7423
7423
  ]
7424
7424
  }
7425
7425
  ),
7426
- /* @__PURE__ */ Le(
7426
+ /* @__PURE__ */ Ee(
7427
7427
  "div",
7428
7428
  {
7429
- className: Ve(q.charge, {
7429
+ className: Ue(q.charge, {
7430
7430
  [q.chargeActive]: x === "vertical"
7431
7431
  }),
7432
7432
  onClick: () => _("vertical"),
@@ -7445,29 +7445,29 @@ const Wu = (e) => {
7445
7445
  )
7446
7446
  ] }) })
7447
7447
  ] }),
7448
- Te && /* @__PURE__ */ M(
7448
+ Ze && /* @__PURE__ */ M(
7449
7449
  Wu,
7450
7450
  {
7451
7451
  initialColor: t,
7452
7452
  onChange: (j) => p(j),
7453
7453
  title: "",
7454
- isBlockSettings: Te
7454
+ isBlockSettings: Ze
7455
7455
  }
7456
7456
  ),
7457
- /* @__PURE__ */ Le("div", { className: q.buttons, children: [
7457
+ /* @__PURE__ */ Ee("div", { className: q.buttons, children: [
7458
7458
  /* @__PURE__ */ M(
7459
- $r,
7459
+ zr,
7460
7460
  {
7461
- onClick: Me,
7462
- className: Ve(q.applyButton, q.cancelButton),
7461
+ onClick: Se,
7462
+ className: Ue(q.applyButton, q.cancelButton),
7463
7463
  type: "Secondary",
7464
7464
  children: "Cancel"
7465
7465
  }
7466
7466
  ),
7467
7467
  /* @__PURE__ */ M(
7468
- $r,
7468
+ zr,
7469
7469
  {
7470
- onClick: pe,
7470
+ onClick: G,
7471
7471
  className: q.applyButton,
7472
7472
  type: "Primary",
7473
7473
  children: "Apply"
@@ -7486,7 +7486,7 @@ const Wu = (e) => {
7486
7486
  return /* @__PURE__ */ M(
7487
7487
  "div",
7488
7488
  {
7489
- className: Ve(ar.wrapper, {
7489
+ className: Ue(ar.wrapper, {
7490
7490
  [ar.open]: t,
7491
7491
  [ar.close]: n
7492
7492
  }),
@@ -7502,7 +7502,7 @@ const Wu = (e) => {
7502
7502
  return /* @__PURE__ */ M("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ M(
7503
7503
  "div",
7504
7504
  {
7505
- className: Ve(ir.block, { [ir.active]: n === a }),
7505
+ className: Ue(ir.block, { [ir.active]: n === a }),
7506
7506
  onClick: () => r(a),
7507
7507
  children: /* @__PURE__ */ M(
7508
7508
  Wt,
@@ -7519,29 +7519,29 @@ const Wu = (e) => {
7519
7519
  main: ed,
7520
7520
  content: td,
7521
7521
  notifications: nd
7522
- }, rd = "_notification_rpmz2_1", od = "_text_rpmz2_22", ad = "_timer_rpmz2_27", id = "_warning_rpmz2_32", sd = "_error_rpmz2_37", ld = "_success_rpmz2_42", xt = {
7522
+ }, rd = "_notification_rpmz2_1", od = "_text_rpmz2_22", ad = "_timer_rpmz2_27", id = "_warning_rpmz2_32", sd = "_error_rpmz2_37", ld = "_success_rpmz2_42", kt = {
7523
7523
  notification: rd,
7524
7524
  text: od,
7525
7525
  timer: ad,
7526
7526
  warning: id,
7527
7527
  error: sd,
7528
7528
  success: ld
7529
- }, Po = {
7529
+ }, Oo = {
7530
7530
  warning: "#C1972A",
7531
7531
  error: "#FF3F19",
7532
7532
  success: "#338B13"
7533
7533
  }, cd = (e) => {
7534
- const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = _e.useState(a), { setNotifications: u } = Ue();
7534
+ const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = Te.useState(a), { setNotifications: u } = He();
7535
7535
  function d() {
7536
- const w = Ue.getState().notifications.filter((m) => m.id !== i);
7536
+ const w = He.getState().notifications.filter((m) => m.id !== i);
7537
7537
  u([...w]);
7538
7538
  }
7539
- return _e.useEffect(() => {
7539
+ return Te.useEffect(() => {
7540
7540
  const h = setTimeout(() => {
7541
7541
  d();
7542
7542
  }, a * 1e3);
7543
7543
  return () => clearTimeout(h);
7544
- }, [a]), _e.useEffect(() => {
7544
+ }, [a]), Te.useEffect(() => {
7545
7545
  const h = setInterval(() => c((w) => w - 1), 1e3);
7546
7546
  return () => clearInterval(h);
7547
7547
  }, [l]), s ? s({
@@ -7558,13 +7558,13 @@ const Wu = (e) => {
7558
7558
  padding: o,
7559
7559
  position: "relative"
7560
7560
  },
7561
- children: /* @__PURE__ */ Le(
7561
+ children: /* @__PURE__ */ Ee(
7562
7562
  "div",
7563
7563
  {
7564
- className: Ve(xt.notification, {
7565
- [xt.warning]: t === "warning",
7566
- [xt.error]: t === "error",
7567
- [xt.success]: t === "success"
7564
+ className: Ue(kt.notification, {
7565
+ [kt.warning]: t === "warning",
7566
+ [kt.error]: t === "error",
7567
+ [kt.success]: t === "success"
7568
7568
  }),
7569
7569
  style: r,
7570
7570
  children: [
@@ -7572,13 +7572,13 @@ const Wu = (e) => {
7572
7572
  Wt,
7573
7573
  {
7574
7574
  name: "Info",
7575
- fill: Po[t],
7575
+ fill: Oo[t],
7576
7576
  width: 20,
7577
7577
  height: 20
7578
7578
  }
7579
7579
  ) }),
7580
- /* @__PURE__ */ M("div", { className: xt.text, children: n }),
7581
- a && /* @__PURE__ */ M("div", { className: xt.timer, children: l }),
7580
+ /* @__PURE__ */ M("div", { className: kt.text, children: n }),
7581
+ a && /* @__PURE__ */ M("div", { className: kt.timer, children: l }),
7582
7582
  /* @__PURE__ */ M(
7583
7583
  "div",
7584
7584
  {
@@ -7589,7 +7589,7 @@ const Wu = (e) => {
7589
7589
  Wt,
7590
7590
  {
7591
7591
  name: "X",
7592
- fill: Po[t],
7592
+ fill: Oo[t],
7593
7593
  width: 20,
7594
7594
  height: 20,
7595
7595
  hoverable: !0,
@@ -7604,13 +7604,13 @@ const Wu = (e) => {
7604
7604
  }
7605
7605
  );
7606
7606
  }, ud = () => {
7607
- const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { isAntistock: o } = wa(), { notifications: a } = Ue(), { title: i, description: s, setTitle: l, setDescription: c, setOnConfirm: u } = jc();
7608
- return /* @__PURE__ */ Le("div", { id: "builder", className: o ? "builder-dark" : "", children: [
7609
- /* @__PURE__ */ Le("div", { className: mn.layout, children: [
7607
+ const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { isAntistock: o } = Mr(), { notifications: a } = He(), { title: i, description: s, setTitle: l, setDescription: c, setOnConfirm: u } = jc();
7608
+ return /* @__PURE__ */ Ee("div", { id: "builder", className: o ? "builder-dark" : "", children: [
7609
+ /* @__PURE__ */ Ee("div", { className: mn.layout, children: [
7610
7610
  /* @__PURE__ */ M(Fa, {}),
7611
- /* @__PURE__ */ Le("main", { className: mn.main, children: [
7611
+ /* @__PURE__ */ Ee("main", { className: mn.main, children: [
7612
7612
  /* @__PURE__ */ M(Ia, {}),
7613
- /* @__PURE__ */ Le("div", { className: mn.content, children: [
7613
+ /* @__PURE__ */ Ee("div", { className: mn.content, children: [
7614
7614
  /* @__PURE__ */ M(Ba, {}),
7615
7615
  /* @__PURE__ */ M(Ha, {})
7616
7616
  ] })
@@ -7640,46 +7640,40 @@ const Wu = (e) => {
7640
7640
  )) })
7641
7641
  ] });
7642
7642
  };
7643
- async function kt(e, t) {
7643
+ async function mt(e, t) {
7644
7644
  const n = localStorage.getItem("shopId") || void 0, o = `${jn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
7645
- return (await st({
7645
+ return (await lt({
7646
7646
  url: o,
7647
7647
  withToken: !0,
7648
7648
  method: "get"
7649
7649
  })).data;
7650
7650
  }
7651
- async function dd() {
7651
+ async function dd(e) {
7652
7652
  try {
7653
- const [e, t, n, r, o, a, i, s, l] = await Promise.allSettled([
7654
- kt("v1", "general"),
7655
- kt("v1", "faqs"),
7656
- kt("v1", "listings"),
7657
- kt("v1", "products"),
7658
- kt("v1", "reviews"),
7659
- kt("v1", "categories"),
7660
- {
7661
- data: null
7662
- },
7663
- {
7664
- data: null
7665
- },
7666
- {
7667
- data: null
7668
- }
7653
+ const [t, n, r, o, a, i, s, l, c] = await Promise.allSettled([
7654
+ mt("v1", "general"),
7655
+ mt("v1", "faqs"),
7656
+ mt("v1", "listings"),
7657
+ mt("v1", "products"),
7658
+ mt("v1", "reviews"),
7659
+ mt("v1", "categories"),
7660
+ Promise.resolve({ data: null }),
7661
+ Promise.resolve({ data: null }),
7662
+ e ? mt("v1", "vouches") : Promise.resolve({ data: null })
7669
7663
  ]);
7670
7664
  return {
7671
- general: e,
7672
- faqs: t,
7673
- listings: n,
7674
- products: r,
7675
- reviews: o,
7676
- categories: a,
7677
- fullPosts: i,
7678
- posts: s,
7679
- vouches: l
7665
+ general: t,
7666
+ faqs: n,
7667
+ listings: r,
7668
+ products: o,
7669
+ reviews: a,
7670
+ categories: i,
7671
+ fullPosts: s,
7672
+ posts: l,
7673
+ vouches: c
7680
7674
  };
7681
- } catch (e) {
7682
- throw console.error("Error fetching page data:", e), e;
7675
+ } catch (t) {
7676
+ throw console.error("Error fetching page data:", t), t;
7683
7677
  }
7684
7678
  }
7685
7679
  async function fd() {
@@ -7697,7 +7691,7 @@ async function hd() {
7697
7691
  var o;
7698
7692
  const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), r = `${jn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/pages`;
7699
7693
  try {
7700
- return (await st({
7694
+ return (await lt({
7701
7695
  url: r,
7702
7696
  withToken: !0,
7703
7697
  method: "get"
@@ -7711,7 +7705,7 @@ async function hd() {
7711
7705
  }
7712
7706
  async function pd() {
7713
7707
  const e = localStorage.getItem("shopId") || void 0, t = localStorage.getItem("draftId") || void 0, r = `${jn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/all`;
7714
- return (await st({
7708
+ return (await lt({
7715
7709
  url: r,
7716
7710
  withToken: !0,
7717
7711
  method: "get"
@@ -7725,22 +7719,22 @@ const md = (e) => {
7725
7719
  setFooter: c,
7726
7720
  setAnnouncement: u,
7727
7721
  setSettings: d
7728
- } = Oc(), { fonts: h, setFonts: w } = Jc(), { setSettings: m } = _o(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: R } = vr(), { setIsLoadingSettings: S } = _o(), { notifications: x, setNotifications: _ } = Ue(), {
7729
- setBlocks: N,
7730
- blocks: U,
7731
- createPage: b,
7732
- setIsLoadingLayers: T,
7733
- setHeader: K,
7734
- setAnnouncement: B,
7735
- setFooter: ae
7736
- } = br(), { setPages: ee, setCurrentPage: te } = _n();
7737
- return _e.useEffect(() => {
7738
- R(!0), T(!0), S(!0);
7739
- const he = {};
7740
- Object.keys(t).forEach((Te) => {
7741
- he[Te] = t[Te];
7742
- }), s(he), i(he), l(r), c(o), u(a), d(n), (async () => {
7743
- const Te = {
7722
+ } = Oc(), { fonts: h, setFonts: w } = Jc(), { setSettings: m } = To(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: R } = vr(), { setIsLoadingSettings: S } = To(), { notifications: x, setNotifications: _ } = He(), { isAntistock: N } = Mr(), {
7723
+ setBlocks: U,
7724
+ blocks: b,
7725
+ createPage: T,
7726
+ setIsLoadingLayers: K,
7727
+ setHeader: B,
7728
+ setAnnouncement: ae,
7729
+ setFooter: ie
7730
+ } = br(), { setPages: te, setCurrentPage: he } = _n();
7731
+ return Te.useEffect(() => {
7732
+ R(!0), K(!0), S(!0);
7733
+ const Le = {};
7734
+ Object.keys(t).forEach((Ae) => {
7735
+ Le[Ae] = t[Ae];
7736
+ }), s(Le), i(Le), l(r), c(o), u(a), d(n), (async () => {
7737
+ const Ae = {
7744
7738
  listings: null,
7745
7739
  products: null,
7746
7740
  reviews: null,
@@ -7751,58 +7745,58 @@ const md = (e) => {
7751
7745
  posts: null,
7752
7746
  preserveContent: !1,
7753
7747
  vouches: null
7754
- }, qe = await dd();
7755
- Object.keys(qe).map((ie) => {
7756
- const pe = ie;
7757
- Te[pe] = qe[pe].value.data;
7758
- }), p(Te);
7759
- const { data: ce } = await pd(), { themeSettings: Re, layers: Se, settings: be } = ce || {};
7760
- if (be) {
7761
- if (be.settings) {
7762
- const ie = new n();
7763
- ie.blockSettings = {
7748
+ }, le = await dd(N);
7749
+ Object.keys(le).map((G) => {
7750
+ const Se = G;
7751
+ Ae[Se] = le[Se].value.data;
7752
+ }), p(Ae);
7753
+ const { data: Ne } = await pd(), { themeSettings: be, layers: $e, settings: ge } = Ne || {};
7754
+ if (ge) {
7755
+ if (ge.settings) {
7756
+ const G = new n();
7757
+ G.blockSettings = {
7764
7758
  displayName: "Settings",
7765
7759
  isAddable: !1,
7766
- ...be.settings
7767
- }, m(ie.blockSettings);
7760
+ ...ge.settings
7761
+ }, m(G.blockSettings);
7768
7762
  }
7769
- be.header && K(be.header), be.footer && ae(be.footer), be.announcement && B(be.announcement);
7763
+ ge.header && B(ge.header), ge.footer && ie(ge.footer), ge.announcement && ae(ge.announcement);
7770
7764
  } else {
7771
- const ie = new n();
7772
- m(ie.blockSettings);
7765
+ const G = new n();
7766
+ m(G.blockSettings);
7773
7767
  }
7774
- Re && v(Re);
7775
- const Pe = await hd(), He = {};
7776
- if (Pe.status >= 400 && _([
7768
+ be && v(be);
7769
+ const Be = await hd(), ze = {};
7770
+ if (Be.status >= 400 && _([
7777
7771
  ...x,
7778
7772
  {
7779
- id: it(),
7773
+ id: st(),
7780
7774
  message: "Error fetching pages",
7781
7775
  status: "error"
7782
7776
  }
7783
- ]), Pe.data.length > 0 ? (Pe.data.forEach((ie) => {
7784
- var pe, Me;
7785
- U[ie.path] || b(ie.path), He[ie.id || ie.path] = {
7786
- ...ie,
7787
- icon: jt[ie.path] ? jt[ie.path].icon : "File",
7788
- name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((Me = jt[ie.path]) == null ? void 0 : Me.name) || ie.path
7777
+ ]), Be.data.length > 0 ? (Be.data.forEach((G) => {
7778
+ var Se, Re;
7779
+ b[G.path] || T(G.path), ze[G.id || G.path] = {
7780
+ ...G,
7781
+ icon: jt[G.path] ? jt[G.path].icon : "File",
7782
+ name: G.name || ((Se = G.seo) == null ? void 0 : Se.pageTitle) || ((Re = jt[G.path]) == null ? void 0 : Re.name) || G.path
7789
7783
  };
7790
- }), ee(He), te(Object.keys(He)[0])) : (ee(jt), te(Object.keys(jt)[0])), h.length === 0) {
7791
- const ie = await fd();
7784
+ }), te(ze), he(Object.keys(ze)[0])) : (te(jt), he(Object.keys(jt)[0])), h.length === 0) {
7785
+ const G = await fd();
7792
7786
  w([
7793
- ...ie.map((pe) => {
7794
- const Me = pe.variants.map((Ce) => {
7795
- if (!Ce.includes("italic"))
7796
- return Ce === "regular" ? "400" : Ce;
7797
- }).filter((Ce) => Ce !== void 0);
7787
+ ...G.map((Se) => {
7788
+ const Re = Se.variants.map((De) => {
7789
+ if (!De.includes("italic"))
7790
+ return De === "regular" ? "400" : De;
7791
+ }).filter((De) => De !== void 0);
7798
7792
  return {
7799
- name: pe.family,
7800
- weights: Me
7793
+ name: Se.family,
7794
+ weights: Re
7801
7795
  };
7802
7796
  })
7803
7797
  ]);
7804
7798
  }
7805
- N(Se), R(!1), T(!1), S(!1);
7799
+ U($e), R(!1), K(!1), S(!1);
7806
7800
  })();
7807
7801
  }, []), /* @__PURE__ */ M(ud, {});
7808
7802
  };
@@ -7815,15 +7809,15 @@ function yd() {
7815
7809
  return gd(), n && localStorage.setItem("sellerAccessToken", n), t && localStorage.setItem("shopId", t), r && localStorage.setItem("draftId", r), !!(n && t && r);
7816
7810
  }
7817
7811
  const vd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%200%20204%20241'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M204%200V118.282L154.174%20134.707V69.0074L49.7111%20102.77V43.5716L204%200Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M154.174%20134.694V191.155L0%20241V117.471L49.7114%20102.757V169.597L154.174%20134.694Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", wd = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2019%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.0103662%2023.5362C0.0538052%2022.4425%200.370173%2021.4309%201.08058%2020.6127C1.92699%2019.6379%202.91375%2019.2329%204.14841%2019.1732C4.162%2020.1401%204.15111%2021.1085%204.15091%2022.0756L4.70583%2022.0747L7.42027%2022.0755C7.95952%2022.0752%208.50027%2022.0844%209.03933%2022.0742L9.17755%2022.0731L10.6132%2022.0759C10.8265%2022.0759%2011.0767%2022.1021%2011.2852%2022.0658C11.3052%2022.0703%2011.3534%2022.0735%2011.3625%2022.0928C11.3917%2022.1543%2011.3688%2031.0517%2011.3725%2031.9631C11.1563%2032.0856%2010.2676%2031.8701%2010.0303%2031.7947C9.89866%2031.7528%209.644%2031.6914%209.54946%2031.5874L9.51914%2031.584C9.46943%2031.5736%209.44171%2031.5537%209.40126%2031.5222C9.30218%2031.5131%209.14954%2031.4132%209.07718%2031.343C9.00129%2031.3163%208.92757%2031.2576%208.85921%2031.2134L8.85617%2031.2002C8.5748%2031.0715%208.14929%2030.6244%207.94318%2030.376C7.35205%2029.6639%206.93892%2028.7659%206.83493%2027.8203C6.78763%2027.3904%206.7994%2026.9595%206.80055%2026.5277C6.80084%2026.4202%206.82996%2026.126%206.78242%2026.0387L6.71237%2026.023C6.54382%2026.0528%206.34316%2026.0328%206.17124%2026.0324L1.0194%2026.0325L0.942306%2026.0307C0.74237%2026.0326%200.173082%2026.0689%200.0224192%2026.0192L0.00848581%2026.0029C0.022853%2025.8597%200.0136924%2025.7065%200.013837%2025.562L0.0113299%2024.6651L0.0117161%2024.5253C0.0150266%2024.1956%200.0145767%2023.8659%200.0103662%2023.5362Z'%20fill='currentColor'/%3e%3cpath%20d='M6.79824%200.00127802C6.88001%20-0.000781892%206.96176%20-0.000351703%207.04349%200.00256876C7.12523%200.00549261%207.20682%200.0108998%207.28827%200.0187905C7.36968%200.0266845%207.45082%200.0370518%207.53169%200.0498924C7.61259%200.0627296%207.69305%200.078018%207.77309%200.0957576C7.85312%200.113501%207.93259%200.133663%208.0115%200.156244C8.09044%200.178828%208.16868%200.203796%208.24624%200.231148C8.3238%200.258499%208.40053%200.28819%208.47645%200.32022C8.55237%200.352247%208.62736%200.386559%208.70141%200.423156L8.71428%200.423492C8.76476%200.450874%208.815%200.479135%208.8661%200.50516C8.947%200.550491%209.03065%200.593185%209.10687%200.646856L9.24939%200.733144C9.31674%200.78126%209.38361%200.83049%209.45202%200.87695C10.462%201.67615%2011.1434%202.77146%2011.325%204.10211C11.4076%204.70784%2011.3729%205.34243%2011.372%205.9541C11.4625%205.96599%2011.5526%205.9664%2011.6436%205.96762C12.6033%205.93794%2013.5708%205.96289%2014.5314%205.96294C15.459%205.96305%2016.3927%205.93758%2017.3195%205.9633C17.5874%205.96523%2017.9062%206.00101%2018.1677%205.95273C18.1496%206.13096%2018.1583%206.31472%2018.1585%206.49401L18.1598%207.38388L18.1595%207.51855C18.1591%207.83084%2018.14%208.15609%2018.1607%208.46685C18.109%209.73893%2017.6972%2010.8198%2016.8003%2011.6891C15.9969%2012.4676%2015.0894%2012.76%2014.0228%2012.8194L14.021%2010.9083C14.0209%2010.5892%2014.0389%2010.2573%2014.0163%209.93952C14.0002%209.92849%2013.9879%209.91884%2013.9692%209.9133C13.7941%209.93418%2013.6055%209.92148%2013.4293%209.92133H9.15258L9.04077%209.92082L7.56664%209.92209C7.31676%209.92224%207.04528%209.94526%206.79858%209.90893L6.79824%200.00127802Z'%20fill='currentColor'/%3e%3cpath%20d='M4.13987%205.96279C4.65941%205.9653%205.17894%205.96467%205.69847%205.96091C5.70059%207.27995%205.71757%208.60219%205.69833%209.92082L4.15072%209.92046L4.15106%2011.4065C4.15096%2011.6783%204.1406%2011.9555%204.15443%2012.2266C4.73799%2012.8393%205.31307%2013.4655%205.90921%2014.0644L5.98321%2014.0407C6.25311%2014.0833%206.6928%2014.0501%206.97981%2014.0499L12.7386%2014.0492L13.5943%2014.0482C13.7363%2014.0479%2013.9068%2014.0286%2014.0457%2014.0577L15.8019%2015.9078L15.8915%2015.997L15.9615%2016.0784L15.9955%2016.1093L17.4221%2017.6163C17.6528%2017.8599%2017.9077%2018.0979%2018.1211%2018.3569C18.1463%2018.3875%2018.1599%2018.4086%2018.1691%2018.4477C18.1415%2018.6757%2018.1577%2018.9211%2018.1579%2019.1514L18.1594%2020.4531C18.1597%2021.8112%2018.142%2023.1721%2018.1599%2024.5297L18.1589%2024.6625L18.158%2025.5556C18.158%2025.7089%2018.1437%2025.8808%2018.1676%2026.0315L18.0995%2026.031L17.2568%2026.0329L17.2101%2026.0308C16.2512%2026.0486%2015.2892%2026.0305%2014.3299%2026.0308C13.7488%2026.031%2013.0694%2026.064%2012.4959%2026.0258L12.4831%2026.0202C12.4481%2025.9239%2012.4717%2022.4806%2012.47%2022.075L14.0216%2022.0744C14.0024%2021.3241%2014.0324%2020.5711%2014.0173%2019.8203C13.4629%2019.2116%2012.887%2018.6041%2012.3052%2018.0244L12.293%2017.9978C12.0554%2018.0392%2011.5401%2018.0054%2011.2777%2018.0053L8.9362%2018.0074C7.75375%2017.9793%206.56306%2018.0065%205.37994%2018.0069C5.13497%2018.007%204.32737%2018.0401%204.13472%2017.9962L2.36331%2016.1262L2.29219%2016.0566L2.21959%2015.9758L2.15074%2015.9102C1.93803%2015.6694%201.70849%2015.441%201.48797%2015.2079L0%2013.631C0.0383768%2013.4512%200.014078%2013.2231%200.013837%2013.0369L0.0121494%2011.9198L0.0113299%207.52017L0.0122943%207.34622C0.0134032%206.9143%200.0453199%206.37479%200.00371286%205.95329C0.115854%205.96772%200.229056%205.9664%200.341872%205.96777C0.589393%205.96198%200.836946%205.96042%201.08453%205.9631L3.10905%205.96548C3.44789%205.96554%203.80282%205.98825%204.13987%205.96279Z'%20fill='currentColor'/%3e%3c/svg%3e", bd = (e) => {
7818
- const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = wa(), [s, l] = _e.useState(!0), c = An(), u = Qe();
7819
- return _e.useEffect(() => {
7812
+ const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = Mr(), [s, l] = Te.useState(!0), c = An(), u = et();
7813
+ return Te.useEffect(() => {
7820
7814
  const d = u.pathname;
7821
7815
  if (d.startsWith("/admin/builder")) {
7822
7816
  d === "/admin/builder/add" ? document.title = "Add Section | Builder" : d === "/admin/builder/theme" ? document.title = "Theme Settings | Builder" : d === "/admin/builder/settings" ? document.title = "Settings | Builder" : document.title = `Builder | ${i ? "Antistock" : "Billgang "}`;
7823
7817
  let h = document.querySelector("link[rel~='icon']");
7824
7818
  h || (h = document.createElement("link"), h.rel = "icon", document.head.appendChild(h)), h && (h.href = i ? wd : vd);
7825
7819
  }
7826
- }, [u]), _e.useEffect(() => {
7820
+ }, [u]), Te.useEffect(() => {
7827
7821
  l(!0), yd() ? l(!1) : c("/");
7828
7822
  }, []), /* @__PURE__ */ M(Oa, { children: s ? /* @__PURE__ */ M(Da, {}) : /* @__PURE__ */ M(
7829
7823
  md,
@@ -7862,13 +7856,13 @@ export {
7862
7856
  Of as S,
7863
7857
  Nf as T,
7864
7858
  Is as U,
7865
- Zo as V,
7859
+ Ko as V,
7866
7860
  ef as W,
7867
7861
  Tc as X,
7868
7862
  Qd as Y,
7869
7863
  rf as Z,
7870
7864
  sf as _,
7871
- _o as a,
7865
+ To as a,
7872
7866
  $c as a0,
7873
7867
  Nd as a1,
7874
7868
  Md as a2,
@@ -7881,7 +7875,7 @@ export {
7881
7875
  uf as a9,
7882
7876
  tf as aa,
7883
7877
  de as ab,
7884
- Qe as ac,
7878
+ et as ac,
7885
7879
  Cf as ad,
7886
7880
  Vc as ae,
7887
7881
  Sf as af,
@@ -7896,9 +7890,9 @@ export {
7896
7890
  If as ao,
7897
7891
  _n as b,
7898
7892
  Oc as c,
7899
- De as d,
7900
- Ue as e,
7901
- Ve as f,
7893
+ Oe as d,
7894
+ He as e,
7895
+ Ue as f,
7902
7896
  hf as g,
7903
7897
  xf as h,
7904
7898
  Hc as i,
@@ -7910,13 +7904,13 @@ export {
7910
7904
  Ef as o,
7911
7905
  An as p,
7912
7906
  Uc as q,
7913
- st as r,
7907
+ lt as r,
7914
7908
  Lf as s,
7915
7909
  Tf as t,
7916
7910
  br as u,
7917
- it as v,
7911
+ st as v,
7918
7912
  Sa as w,
7919
7913
  Pf as x,
7920
7914
  Ca as y,
7921
- wa as z
7915
+ Mr as z
7922
7916
  };