@hortiview/modulebase 1.0.4 → 1.1.0-alpha.8ea7f643.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,90 +1,90 @@
1
1
  import * as k from "react";
2
- import A, { useCallback as Ve } from "react";
3
- import { useBasePropsStore as oe } from "./stores/BasePropsStore.js";
4
- import { aV as We, a0 as te, ae as _e, r as re, v as Xe, n as xe, aW as Je, aP as Qe, E as O, aj as ke, j as K, aX as Ke, a8 as Ge, R as Ye, aY as Ze, aZ as Ae, a_ as ie, a$ as le, b0 as G, ah as F, b1 as Te, b2 as et, b3 as tt, a4 as rt, a5 as at, a3 as nt, O as st, U as ot, x as I, am as it, ao as lt, al as ut, b4 as j, b5 as dt, b6 as ue, b7 as ct, b8 as ae, b9 as L, ba as ft, bb as ht, bc as pt } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
5
- import { A as Er, B as Cr, F as br, H as _r, I as xr, a as kr, b as Ar, L as Tr, d as Dr, M as Hr, e as Pr, N as Fr, f as Ur, g as Lr, P as Nr, h as Or, i as Ir, k as Br, S as Mr, l as $r, m as zr, o as jr, D as qr, p as Vr, q as Wr, s as Xr, t as Jr, w as Qr, V as Kr, W as Gr, y as Yr, z as Zr, C as ea, G as ta, J as ra, K as aa, Q as na, T as sa, X as oa, Y as ia, Z as la, _ as ua, $ as da, a1 as ca, a2 as fa, c as ha, a6 as pa, a7 as ma, a9 as ya, aa as wa, ab as ga, ac as Ra, ad as Sa, af as va, ag as Ea, ai as Ca, ak as ba, an as _a, ap as xa, aq as ka, ar as Aa, as as Ta, at as Da, au as Ha, av as Pa, aw as Fa, ax as Ua, ay as La, az as Na, aA as Oa, aB as Ia, aC as Ba, aD as Ma, aE as $a, aF as za, aG as ja, aH as qa, aI as Va, aJ as Wa, aK as Xa, aL as Ja, aM as Qa, aN as Ka, aO as Ga, aQ as Ya, aR as Za, aS as en, aT as tn, aU as rn } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
6
- var H = {}, de;
7
- function mt() {
8
- if (de) return H;
9
- de = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.parseCookie = u, H.parse = u, H.stringifyCookie = s, H.stringifySetCookie = i, H.serialize = i, H.parseSetCookie = l, H.stringifySetCookie = i, H.serialize = i;
10
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString, c = /* @__PURE__ */ (() => {
11
- const f = function() {
2
+ import A, { useCallback as je } from "react";
3
+ import { useBasePropsStore as ze } from "./stores/BasePropsStore.js";
4
+ import { aV as qe, $ as ee, ae as Ee, q as te, t as Ve, m as Ce, aW as We, aP as Xe, E as O, aj as be, i as K, aX as Je, a8 as Ke, j as Qe, aY as Ge, aZ as xe, a_ as se, a$ as oe, b0 as Q, ah as P, b1 as _e, b2 as Ye, b3 as Ze, a3 as et, a4 as tt, a2 as rt, O as at, T as nt, w as I, am as st, ao as ot, al as it, b4 as $, b5 as lt, b6 as ie, b7 as ut, b8 as re, b9 as N, ba as dt, bb as ct, bc as ft } from "./chunk-LFPYN7LY-DmQ3La_a.js";
5
+ import { A as Sr, B as vr, F as Er, H as Cr, I as br, b as xr, c as _r, L as kr, d as Ar, M as Dr, e as Hr, N as Tr, f as Fr, g as Pr, P as Ur, a as Nr, h as Lr, R as Or, S as Ir, k as Br, l as Mr, n as $r, D as jr, o as zr, p as qr, r as Vr, s as Wr, v as Xr, V as Jr, W as Kr, x as Qr, y as Gr, z as Yr, C as Zr, G as ea, J as ta, K as ra, Q as aa, U as na, X as sa, Y as oa, Z as ia, _ as la, a0 as ua, a1 as da, a5 as ca, a6 as fa, a7 as ha, a9 as pa, aa as ma, ab as ya, ac as wa, ad as ga, af as Ra, ag as Sa, ai as va, ak as Ea, an as Ca, ap as ba, aq as xa, ar as _a, as as ka, at as Aa, au as Da, av as Ha, aw as Ta, ax as Fa, ay as Pa, az as Ua, aA as Na, aB as La, aC as Oa, aD as Ia, aE as Ba, aF as Ma, aG as $a, aH as ja, aI as za, aJ as qa, aK as Va, aL as Wa, aM as Xa, aN as Ja, aO as Ka, aQ as Qa, aR as Ga, aS as Ya, aT as Za, aU as en } from "./chunk-LFPYN7LY-DmQ3La_a.js";
6
+ var T = {}, le;
7
+ function ht() {
8
+ if (le) return T;
9
+ le = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.parseCookie = l, T.parse = l, T.stringifyCookie = s, T.stringifySetCookie = i, T.serialize = i, T.parseSetCookie = u, T.stringifySetCookie = i, T.serialize = i;
10
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString, f = /* @__PURE__ */ (() => {
11
+ const c = function() {
12
12
  };
13
- return f.prototype = /* @__PURE__ */ Object.create(null), f;
13
+ return c.prototype = /* @__PURE__ */ Object.create(null), c;
14
14
  })();
15
- function u(f, g) {
16
- const m = new c(), d = f.length;
15
+ function l(c, v) {
16
+ const m = new f(), d = c.length;
17
17
  if (d < 2)
18
18
  return m;
19
- const S = g?.decode || y;
20
- let C = 0;
19
+ const R = v?.decode || y;
20
+ let S = 0;
21
21
  do {
22
- const b = p(f, C, d);
22
+ const b = p(c, S, d);
23
23
  if (b === -1)
24
24
  break;
25
- const v = h(f, C, d);
26
- if (b > v) {
27
- C = f.lastIndexOf(";", b - 1) + 1;
25
+ const E = h(c, S, d);
26
+ if (b > E) {
27
+ S = c.lastIndexOf(";", b - 1) + 1;
28
28
  continue;
29
29
  }
30
- const x = w(f, C, b);
31
- m[x] === void 0 && (m[x] = S(w(f, b + 1, v))), C = v + 1;
32
- } while (C < d);
30
+ const _ = w(c, S, b);
31
+ m[_] === void 0 && (m[_] = R(w(c, b + 1, E))), S = E + 1;
32
+ } while (S < d);
33
33
  return m;
34
34
  }
35
- function s(f, g) {
36
- const m = g?.encode || encodeURIComponent, d = [];
37
- for (const S of Object.keys(f)) {
38
- const C = f[S];
39
- if (C === void 0)
35
+ function s(c, v) {
36
+ const m = v?.encode || encodeURIComponent, d = [];
37
+ for (const R of Object.keys(c)) {
38
+ const S = c[R];
39
+ if (S === void 0)
40
40
  continue;
41
- if (!e.test(S))
42
- throw new TypeError(`cookie name is invalid: ${S}`);
43
- const b = m(C);
41
+ if (!e.test(R))
42
+ throw new TypeError(`cookie name is invalid: ${R}`);
43
+ const b = m(S);
44
44
  if (!t.test(b))
45
- throw new TypeError(`cookie val is invalid: ${C}`);
46
- d.push(`${S}=${b}`);
45
+ throw new TypeError(`cookie val is invalid: ${S}`);
46
+ d.push(`${R}=${b}`);
47
47
  }
48
48
  return d.join("; ");
49
49
  }
50
- function i(f, g, m) {
51
- const d = typeof f == "object" ? f : { ...m, name: f, value: String(g) }, C = (typeof g == "object" ? g : m)?.encode || encodeURIComponent;
50
+ function i(c, v, m) {
51
+ const d = typeof c == "object" ? c : { ...m, name: c, value: String(v) }, S = (typeof v == "object" ? v : m)?.encode || encodeURIComponent;
52
52
  if (!e.test(d.name))
53
53
  throw new TypeError(`argument name is invalid: ${d.name}`);
54
- const b = d.value ? C(d.value) : "";
54
+ const b = d.value ? S(d.value) : "";
55
55
  if (!t.test(b))
56
56
  throw new TypeError(`argument val is invalid: ${d.value}`);
57
- let v = d.name + "=" + b;
57
+ let E = d.name + "=" + b;
58
58
  if (d.maxAge !== void 0) {
59
59
  if (!Number.isInteger(d.maxAge))
60
60
  throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
61
- v += "; Max-Age=" + d.maxAge;
61
+ E += "; Max-Age=" + d.maxAge;
62
62
  }
63
63
  if (d.domain) {
64
64
  if (!r.test(d.domain))
65
65
  throw new TypeError(`option domain is invalid: ${d.domain}`);
66
- v += "; Domain=" + d.domain;
66
+ E += "; Domain=" + d.domain;
67
67
  }
68
68
  if (d.path) {
69
69
  if (!a.test(d.path))
70
70
  throw new TypeError(`option path is invalid: ${d.path}`);
71
- v += "; Path=" + d.path;
71
+ E += "; Path=" + d.path;
72
72
  }
73
73
  if (d.expires) {
74
- if (!R(d.expires) || !Number.isFinite(d.expires.valueOf()))
74
+ if (!g(d.expires) || !Number.isFinite(d.expires.valueOf()))
75
75
  throw new TypeError(`option expires is invalid: ${d.expires}`);
76
- v += "; Expires=" + d.expires.toUTCString();
76
+ E += "; Expires=" + d.expires.toUTCString();
77
77
  }
78
- if (d.httpOnly && (v += "; HttpOnly"), d.secure && (v += "; Secure"), d.partitioned && (v += "; Partitioned"), d.priority)
78
+ if (d.httpOnly && (E += "; HttpOnly"), d.secure && (E += "; Secure"), d.partitioned && (E += "; Partitioned"), d.priority)
79
79
  switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
80
80
  case "low":
81
- v += "; Priority=Low";
81
+ E += "; Priority=Low";
82
82
  break;
83
83
  case "medium":
84
- v += "; Priority=Medium";
84
+ E += "; Priority=Medium";
85
85
  break;
86
86
  case "high":
87
- v += "; Priority=High";
87
+ E += "; Priority=High";
88
88
  break;
89
89
  default:
90
90
  throw new TypeError(`option priority is invalid: ${d.priority}`);
@@ -93,28 +93,28 @@ function mt() {
93
93
  switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
94
94
  case !0:
95
95
  case "strict":
96
- v += "; SameSite=Strict";
96
+ E += "; SameSite=Strict";
97
97
  break;
98
98
  case "lax":
99
- v += "; SameSite=Lax";
99
+ E += "; SameSite=Lax";
100
100
  break;
101
101
  case "none":
102
- v += "; SameSite=None";
102
+ E += "; SameSite=None";
103
103
  break;
104
104
  default:
105
105
  throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
106
106
  }
107
- return v;
107
+ return E;
108
108
  }
109
- function l(f, g) {
110
- const m = g?.decode || y, d = f.length, S = h(f, 0, d), C = p(f, 0, S), b = C === -1 ? { name: "", value: m(w(f, 0, S)) } : {
111
- name: w(f, 0, C),
112
- value: m(w(f, C + 1, S))
109
+ function u(c, v) {
110
+ const m = v?.decode || y, d = c.length, R = h(c, 0, d), S = p(c, 0, R), b = S === -1 ? { name: "", value: m(w(c, 0, R)) } : {
111
+ name: w(c, 0, S),
112
+ value: m(w(c, S + 1, R))
113
113
  };
114
- let v = S + 1;
115
- for (; v < d; ) {
116
- const x = h(f, v, d), P = p(f, v, x), _ = P === -1 ? w(f, v, x) : w(f, v, P), E = P === -1 ? void 0 : w(f, P + 1, x);
117
- switch (_.toLowerCase()) {
114
+ let E = R + 1;
115
+ for (; E < d; ) {
116
+ const _ = h(c, E, d), F = p(c, E, _), x = F === -1 ? w(c, E, _) : w(c, E, F), C = F === -1 ? void 0 : w(c, F + 1, _);
117
+ switch (x.toLowerCase()) {
118
118
  case "httponly":
119
119
  b.httpOnly = !0;
120
120
  break;
@@ -125,78 +125,78 @@ function mt() {
125
125
  b.partitioned = !0;
126
126
  break;
127
127
  case "domain":
128
- b.domain = E;
128
+ b.domain = C;
129
129
  break;
130
130
  case "path":
131
- b.path = E;
131
+ b.path = C;
132
132
  break;
133
133
  case "max-age":
134
- E && n.test(E) && (b.maxAge = Number(E));
134
+ C && n.test(C) && (b.maxAge = Number(C));
135
135
  break;
136
136
  case "expires":
137
- if (!E)
137
+ if (!C)
138
138
  break;
139
- const T = new Date(E);
140
- Number.isFinite(T.valueOf()) && (b.expires = T);
139
+ const D = new Date(C);
140
+ Number.isFinite(D.valueOf()) && (b.expires = D);
141
141
  break;
142
142
  case "priority":
143
- if (!E)
143
+ if (!C)
144
144
  break;
145
- const D = E.toLowerCase();
146
- (D === "low" || D === "medium" || D === "high") && (b.priority = D);
145
+ const H = C.toLowerCase();
146
+ (H === "low" || H === "medium" || H === "high") && (b.priority = H);
147
147
  break;
148
148
  case "samesite":
149
- if (!E)
149
+ if (!C)
150
150
  break;
151
- const $ = E.toLowerCase();
152
- ($ === "lax" || $ === "strict" || $ === "none") && (b.sameSite = $);
151
+ const M = C.toLowerCase();
152
+ (M === "lax" || M === "strict" || M === "none") && (b.sameSite = M);
153
153
  break;
154
154
  }
155
- v = x + 1;
155
+ E = _ + 1;
156
156
  }
157
157
  return b;
158
158
  }
159
- function h(f, g, m) {
160
- const d = f.indexOf(";", g);
159
+ function h(c, v, m) {
160
+ const d = c.indexOf(";", v);
161
161
  return d === -1 ? m : d;
162
162
  }
163
- function p(f, g, m) {
164
- const d = f.indexOf("=", g);
163
+ function p(c, v, m) {
164
+ const d = c.indexOf("=", v);
165
165
  return d < m ? d : -1;
166
166
  }
167
- function w(f, g, m) {
168
- let d = g, S = m;
167
+ function w(c, v, m) {
168
+ let d = v, R = m;
169
169
  do {
170
- const C = f.charCodeAt(d);
171
- if (C !== 32 && C !== 9)
170
+ const S = c.charCodeAt(d);
171
+ if (S !== 32 && S !== 9)
172
172
  break;
173
- } while (++d < S);
174
- for (; S > d; ) {
175
- const C = f.charCodeAt(S - 1);
176
- if (C !== 32 && C !== 9)
173
+ } while (++d < R);
174
+ for (; R > d; ) {
175
+ const S = c.charCodeAt(R - 1);
176
+ if (S !== 32 && S !== 9)
177
177
  break;
178
- S--;
178
+ R--;
179
179
  }
180
- return f.slice(d, S);
180
+ return c.slice(d, R);
181
181
  }
182
- function y(f) {
183
- if (f.indexOf("%") === -1)
184
- return f;
182
+ function y(c) {
183
+ if (c.indexOf("%") === -1)
184
+ return c;
185
185
  try {
186
- return decodeURIComponent(f);
186
+ return decodeURIComponent(c);
187
187
  } catch {
188
- return f;
188
+ return c;
189
189
  }
190
190
  }
191
- function R(f) {
192
- return o.call(f) === "[object Date]";
191
+ function g(c) {
192
+ return o.call(c) === "[object Date]";
193
193
  }
194
- return H;
194
+ return T;
195
195
  }
196
- var ce = /* @__PURE__ */ mt(), N = { exports: {} }, fe;
197
- function yt() {
198
- if (fe) return N.exports;
199
- fe = 1;
196
+ var ue = /* @__PURE__ */ ht(), L = { exports: {} }, de;
197
+ function pt() {
198
+ if (de) return L.exports;
199
+ de = 1;
200
200
  var e = {
201
201
  decodeValues: !0,
202
202
  map: !1,
@@ -212,36 +212,36 @@ function yt() {
212
212
  return typeof s == "string" && !!s.trim();
213
213
  }
214
214
  function n(s, i) {
215
- var l = s.split(";").filter(a), h = l.shift(), p = o(h), w = p.name, y = p.value;
215
+ var u = s.split(";").filter(a), h = u.shift(), p = o(h), w = p.name, y = p.value;
216
216
  if (i = i ? Object.assign({}, e, i) : e, t(w))
217
217
  return null;
218
218
  try {
219
219
  y = i.decodeValues ? decodeURIComponent(y) : y;
220
- } catch (f) {
220
+ } catch (c) {
221
221
  console.error(
222
222
  "set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
223
- f
223
+ c
224
224
  );
225
225
  }
226
- var R = r();
227
- return R.name = w, R.value = y, l.forEach(function(f) {
228
- var g = f.split("="), m = g.shift().trimLeft().toLowerCase();
226
+ var g = r();
227
+ return g.name = w, g.value = y, u.forEach(function(c) {
228
+ var v = c.split("="), m = v.shift().trimLeft().toLowerCase();
229
229
  if (!t(m)) {
230
- var d = g.join("=");
230
+ var d = v.join("=");
231
231
  if (m === "expires")
232
- R.expires = new Date(d);
232
+ g.expires = new Date(d);
233
233
  else if (m === "max-age") {
234
- var S = parseInt(d, 10);
235
- Number.isNaN(S) || (R.maxAge = S);
236
- } else m === "secure" ? R.secure = !0 : m === "httponly" ? R.httpOnly = !0 : m === "samesite" ? R.sameSite = d : m === "partitioned" ? R.partitioned = !0 : m && (R[m] = d);
234
+ var R = parseInt(d, 10);
235
+ Number.isNaN(R) || (g.maxAge = R);
236
+ } else m === "secure" ? g.secure = !0 : m === "httponly" ? g.httpOnly = !0 : m === "samesite" ? g.sameSite = d : m === "partitioned" ? g.partitioned = !0 : m && (g[m] = d);
237
237
  }
238
- }), R;
238
+ }), g;
239
239
  }
240
240
  function o(s) {
241
- var i = "", l = "", h = s.split("=");
242
- return h.length > 1 ? (i = h.shift(), l = h.join("=")) : l = s, { name: i, value: l };
241
+ var i = "", u = "", h = s.split("=");
242
+ return h.length > 1 ? (i = h.shift(), u = h.join("=")) : u = s, { name: i, value: u };
243
243
  }
244
- function c(s, i) {
244
+ function f(s, i) {
245
245
  if (i = i ? Object.assign({}, e, i) : e, !s)
246
246
  return i.map ? r() : [];
247
247
  if (s.headers)
@@ -250,12 +250,12 @@ function yt() {
250
250
  else if (s.headers["set-cookie"])
251
251
  s = s.headers["set-cookie"];
252
252
  else {
253
- var l = s.headers[Object.keys(s.headers).find(function(p) {
253
+ var u = s.headers[Object.keys(s.headers).find(function(p) {
254
254
  return p.toLowerCase() === "set-cookie";
255
255
  })];
256
- !l && s.headers.cookie && !i.silent && console.warn(
256
+ !u && s.headers.cookie && !i.silent && console.warn(
257
257
  "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
258
- ), s = l;
258
+ ), s = u;
259
259
  }
260
260
  if (Array.isArray(s) || (s = [s]), i.map) {
261
261
  var h = r();
@@ -268,42 +268,42 @@ function yt() {
268
268
  return n(p, i);
269
269
  }).filter(Boolean);
270
270
  }
271
- function u(s) {
271
+ function l(s) {
272
272
  if (Array.isArray(s))
273
273
  return s;
274
274
  if (typeof s != "string")
275
275
  return [];
276
- var i = [], l = 0, h, p, w, y, R;
277
- function f() {
278
- for (; l < s.length && /\s/.test(s.charAt(l)); )
279
- l += 1;
280
- return l < s.length;
276
+ var i = [], u = 0, h, p, w, y, g;
277
+ function c() {
278
+ for (; u < s.length && /\s/.test(s.charAt(u)); )
279
+ u += 1;
280
+ return u < s.length;
281
281
  }
282
- function g() {
283
- return p = s.charAt(l), p !== "=" && p !== ";" && p !== ",";
282
+ function v() {
283
+ return p = s.charAt(u), p !== "=" && p !== ";" && p !== ",";
284
284
  }
285
- for (; l < s.length; ) {
286
- for (h = l, R = !1; f(); )
287
- if (p = s.charAt(l), p === ",") {
288
- for (w = l, l += 1, f(), y = l; l < s.length && g(); )
289
- l += 1;
290
- l < s.length && s.charAt(l) === "=" ? (R = !0, l = y, i.push(s.substring(h, w)), h = l) : l = w + 1;
285
+ for (; u < s.length; ) {
286
+ for (h = u, g = !1; c(); )
287
+ if (p = s.charAt(u), p === ",") {
288
+ for (w = u, u += 1, c(), y = u; u < s.length && v(); )
289
+ u += 1;
290
+ u < s.length && s.charAt(u) === "=" ? (g = !0, u = y, i.push(s.substring(h, w)), h = u) : u = w + 1;
291
291
  } else
292
- l += 1;
293
- (!R || l >= s.length) && i.push(s.substring(h, s.length));
292
+ u += 1;
293
+ (!g || u >= s.length) && i.push(s.substring(h, s.length));
294
294
  }
295
295
  return i;
296
296
  }
297
- return N.exports = c, N.exports.parse = c, N.exports.parseString = n, N.exports.splitCookiesString = u, N.exports;
297
+ return L.exports = f, L.exports.parse = f, L.exports.parseString = n, L.exports.splitCookiesString = l, L.exports;
298
298
  }
299
- var wt = /* @__PURE__ */ yt();
300
- function or({
299
+ var mt = /* @__PURE__ */ pt();
300
+ function nr({
301
301
  context: e,
302
302
  url: t,
303
303
  nonce: r
304
304
  }) {
305
305
  typeof t == "string" && (t = new URL(t));
306
- let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString: c } = e, u = We(
306
+ let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString: f } = e, l = qe(
307
307
  a.routes,
308
308
  n,
309
309
  e.future,
@@ -313,23 +313,23 @@ function or({
313
313
  ...e.staticHandlerContext.loaderData
314
314
  };
315
315
  for (let i of e.staticHandlerContext.matches) {
316
- let l = i.route.id, h = n[l], p = e.manifest.routes[l];
317
- h && p && te(
318
- l,
316
+ let u = i.route.id, h = n[u], p = e.manifest.routes[u];
317
+ h && p && ee(
318
+ u,
319
319
  h.clientLoader,
320
320
  p.hasLoader,
321
321
  e.isSpaMode
322
- ) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[l];
322
+ ) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[u];
323
323
  }
324
- let s = _e(u, e.staticHandlerContext);
324
+ let s = Ee(l, e.staticHandlerContext);
325
325
  return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(
326
- re.Provider,
326
+ te.Provider,
327
327
  {
328
328
  value: {
329
329
  manifest: a,
330
330
  routeModules: n,
331
331
  criticalCss: o,
332
- serverHandoffString: c,
332
+ serverHandoffString: f,
333
333
  future: e.future,
334
334
  ssr: e.ssr,
335
335
  isSpaMode: e.isSpaMode,
@@ -338,8 +338,8 @@ function or({
338
338
  renderMeta: e.renderMeta
339
339
  }
340
340
  },
341
- /* @__PURE__ */ k.createElement(Xe, { location: s.state.location }, /* @__PURE__ */ k.createElement(
342
- xe,
341
+ /* @__PURE__ */ k.createElement(Ve, { location: s.state.location }, /* @__PURE__ */ k.createElement(
342
+ Ce,
343
343
  {
344
344
  router: s,
345
345
  context: e.staticHandlerContext,
@@ -347,7 +347,7 @@ function or({
347
347
  }
348
348
  ))
349
349
  ), e.serverHandoffStream ? /* @__PURE__ */ k.createElement(k.Suspense, null, /* @__PURE__ */ k.createElement(
350
- Je,
350
+ We,
351
351
  {
352
352
  context: e,
353
353
  identifier: 0,
@@ -357,21 +357,20 @@ function or({
357
357
  }
358
358
  )) : null);
359
359
  }
360
- function ir(e, t) {
360
+ function sr(e, t) {
361
361
  return function({
362
362
  initialEntries: a,
363
363
  initialIndex: n,
364
364
  hydrationData: o,
365
- future: c
365
+ future: f
366
366
  }) {
367
- let u = k.useRef(), s = k.useRef();
368
- if (u.current == null) {
367
+ let l = k.useRef(), s = k.useRef();
368
+ if (l.current == null) {
369
369
  s.current = {
370
370
  future: {
371
- unstable_passThroughRequests: c?.unstable_passThroughRequests === !0,
372
- unstable_subResourceIntegrity: c?.unstable_subResourceIntegrity === !0,
373
- v8_middleware: c?.v8_middleware === !0,
374
- unstable_trailingSlashAwareDataRequests: c?.unstable_trailingSlashAwareDataRequests === !0
371
+ unstable_subResourceIntegrity: f?.unstable_subResourceIntegrity === !0,
372
+ v8_middleware: f?.v8_middleware === !0,
373
+ unstable_trailingSlashAwareDataRequests: f?.unstable_trailingSlashAwareDataRequests === !0
375
374
  },
376
375
  manifest: {
377
376
  routes: {},
@@ -384,36 +383,36 @@ function ir(e, t) {
384
383
  isSpaMode: !1,
385
384
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }
386
385
  };
387
- let i = De(
386
+ let i = ke(
388
387
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
389
- // types compared to `RouteObject`
390
- Ke(e, (l) => l),
391
- t !== void 0 ? t : c?.v8_middleware ? new K() : {},
388
+ // types compared to `AgnosticRouteObject`
389
+ Je(e, (u) => u),
390
+ t !== void 0 ? t : f?.v8_middleware ? new K() : {},
392
391
  s.current.manifest,
393
392
  s.current.routeModules
394
393
  );
395
- u.current = Ge(i, {
394
+ l.current = Ke(i, {
396
395
  initialEntries: a,
397
396
  initialIndex: n,
398
397
  hydrationData: o
399
398
  });
400
399
  }
401
- return /* @__PURE__ */ k.createElement(re.Provider, { value: s.current }, /* @__PURE__ */ k.createElement(Ye, { router: u.current }));
400
+ return /* @__PURE__ */ k.createElement(te.Provider, { value: s.current }, /* @__PURE__ */ k.createElement(Qe, { router: l.current }));
402
401
  };
403
402
  }
404
- function De(e, t, r, a, n) {
403
+ function ke(e, t, r, a, n) {
405
404
  return e.map((o) => {
406
405
  if (!o.id)
407
406
  throw new Error(
408
407
  "Expected a route.id in react-router processRoutes() function"
409
408
  );
410
- let c = {
409
+ let f = {
411
410
  id: o.id,
412
411
  path: o.path,
413
412
  index: o.index,
414
- Component: o.Component ? nt(o.Component) : void 0,
415
- HydrateFallback: o.HydrateFallback ? at(o.HydrateFallback) : void 0,
416
- ErrorBoundary: o.ErrorBoundary ? rt(o.ErrorBoundary) : void 0,
413
+ Component: o.Component ? rt(o.Component) : void 0,
414
+ HydrateFallback: o.HydrateFallback ? tt(o.HydrateFallback) : void 0,
415
+ ErrorBoundary: o.ErrorBoundary ? et(o.ErrorBoundary) : void 0,
417
416
  action: o.action ? (s) => o.action({ ...s, context: t }) : void 0,
418
417
  loader: o.loader ? (s) => o.loader({ ...s, context: t }) : void 0,
419
418
  middleware: o.middleware ? o.middleware.map(
@@ -424,7 +423,7 @@ function De(e, t, r, a, n) {
424
423
  ) : void 0,
425
424
  handle: o.handle,
426
425
  shouldRevalidate: o.shouldRevalidate
427
- }, u = {
426
+ }, l = {
428
427
  id: o.id,
429
428
  path: o.path,
430
429
  index: o.index,
@@ -445,56 +444,56 @@ function De(e, t, r, a, n) {
445
444
  clientMiddlewareModule: void 0,
446
445
  hydrateFallbackModule: void 0
447
446
  };
448
- return r.routes[c.id] = u, a[o.id] = {
449
- default: c.Component || st,
450
- ErrorBoundary: c.ErrorBoundary || void 0,
447
+ return r.routes[f.id] = l, a[o.id] = {
448
+ default: f.Component || at,
449
+ ErrorBoundary: f.ErrorBoundary || void 0,
451
450
  handle: o.handle,
452
451
  links: o.links,
453
452
  meta: o.meta,
454
453
  shouldRevalidate: o.shouldRevalidate
455
- }, o.children && (c.children = De(
454
+ }, o.children && (f.children = ke(
456
455
  o.children,
457
456
  t,
458
457
  r,
459
458
  a,
460
- c.id
461
- )), c;
459
+ f.id
460
+ )), f;
462
461
  });
463
462
  }
464
- var ne = /* @__PURE__ */ new TextEncoder(), gt = async (e, t) => {
465
- let r = ne.encode(e), a = await He(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), o = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
463
+ var ae = /* @__PURE__ */ new TextEncoder(), yt = async (e, t) => {
464
+ let r = ae.encode(e), a = await Ae(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), o = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
466
465
  /=+$/,
467
466
  ""
468
467
  );
469
468
  return e + "." + o;
470
- }, Rt = async (e, t) => {
471
- let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o = ne.encode(a), c = await He(t, ["verify"]);
469
+ }, wt = async (e, t) => {
470
+ let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o = ae.encode(a), f = await Ae(t, ["verify"]);
472
471
  try {
473
- let u = St(atob(n));
474
- return await crypto.subtle.verify("HMAC", c, u, o) ? a : !1;
472
+ let l = gt(atob(n));
473
+ return await crypto.subtle.verify("HMAC", f, l, o) ? a : !1;
475
474
  } catch {
476
475
  return !1;
477
476
  }
478
- }, He = async (e, t) => crypto.subtle.importKey(
477
+ }, Ae = async (e, t) => crypto.subtle.importKey(
479
478
  "raw",
480
- ne.encode(e),
479
+ ae.encode(e),
481
480
  { name: "HMAC", hash: "SHA-256" },
482
481
  !1,
483
482
  t
484
483
  );
485
- function St(e) {
484
+ function gt(e) {
486
485
  let t = new Uint8Array(e.length);
487
486
  for (let r = 0; r < e.length; r++)
488
487
  t[r] = e.charCodeAt(r);
489
488
  return t;
490
489
  }
491
- var Pe = (e, t = {}) => {
490
+ var De = (e, t = {}) => {
492
491
  let { secrets: r = [], ...a } = {
493
492
  path: "/",
494
493
  sameSite: "lax",
495
494
  ...t
496
495
  };
497
- return xt(e, a.expires), {
496
+ return bt(e, a.expires), {
498
497
  get name() {
499
498
  return e;
500
499
  },
@@ -506,17 +505,17 @@ var Pe = (e, t = {}) => {
506
505
  },
507
506
  async parse(n, o) {
508
507
  if (!n) return null;
509
- let c = ce.parse(n, { ...a, ...o });
510
- if (e in c) {
511
- let u = c[e];
512
- return typeof u == "string" && u !== "" ? await Et(u, r) : "";
508
+ let f = ue.parse(n, { ...a, ...o });
509
+ if (e in f) {
510
+ let l = f[e];
511
+ return typeof l == "string" && l !== "" ? await St(l, r) : "";
513
512
  } else
514
513
  return null;
515
514
  },
516
515
  async serialize(n, o) {
517
- return ce.serialize(
516
+ return ue.serialize(
518
517
  e,
519
- n === "" ? "" : await vt(n, r),
518
+ n === "" ? "" : await Rt(n, r),
520
519
  {
521
520
  ...a,
522
521
  ...o
@@ -524,44 +523,44 @@ var Pe = (e, t = {}) => {
524
523
  );
525
524
  }
526
525
  };
527
- }, Fe = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
528
- async function vt(e, t) {
529
- let r = Ct(e);
530
- return t.length > 0 && (r = await gt(r, t[0])), r;
526
+ }, He = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
527
+ async function Rt(e, t) {
528
+ let r = vt(e);
529
+ return t.length > 0 && (r = await yt(r, t[0])), r;
531
530
  }
532
- async function Et(e, t) {
531
+ async function St(e, t) {
533
532
  if (t.length > 0) {
534
533
  for (let r of t) {
535
- let a = await Rt(e, r);
534
+ let a = await wt(e, r);
536
535
  if (a !== !1)
537
- return he(a);
536
+ return ce(a);
538
537
  }
539
538
  return null;
540
539
  }
541
- return he(e);
540
+ return ce(e);
542
541
  }
543
- function Ct(e) {
544
- return btoa(_t(encodeURIComponent(JSON.stringify(e))));
542
+ function vt(e) {
543
+ return btoa(Ct(encodeURIComponent(JSON.stringify(e))));
545
544
  }
546
- function he(e) {
545
+ function ce(e) {
547
546
  try {
548
- return JSON.parse(decodeURIComponent(bt(atob(e))));
547
+ return JSON.parse(decodeURIComponent(Et(atob(e))));
549
548
  } catch {
550
549
  return {};
551
550
  }
552
551
  }
553
- function bt(e) {
552
+ function Et(e) {
554
553
  let t = e.toString(), r = "", a = 0, n, o;
555
554
  for (; a < t.length; )
556
- n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" + pe(o, 2) : r += "%u" + pe(o, 4).toUpperCase());
555
+ n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" + fe(o, 2) : r += "%u" + fe(o, 4).toUpperCase());
557
556
  return r;
558
557
  }
559
- function pe(e, t) {
558
+ function fe(e, t) {
560
559
  let r = e.toString(16);
561
560
  for (; r.length < t; ) r = "0" + r;
562
561
  return r;
563
562
  }
564
- function _t(e) {
563
+ function Ct(e) {
565
564
  let t = e.toString(), r = "", a = 0, n, o;
566
565
  for (; a < t.length; ) {
567
566
  if (n = t.charAt(a++), n === "%") {
@@ -579,65 +578,65 @@ function _t(e) {
579
578
  }
580
579
  return r;
581
580
  }
582
- function xt(e, t) {
583
- Te(
581
+ function bt(e, t) {
582
+ _e(
584
583
  !t,
585
584
  `The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
586
585
  );
587
586
  }
588
- function kt(e) {
587
+ function xt(e) {
589
588
  return Object.keys(e).reduce((t, r) => {
590
589
  let a = e[r];
591
590
  return a && (t[r] = a.module), t;
592
591
  }, {});
593
592
  }
594
- var At = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(At || {});
595
- function Tt(e) {
593
+ var _t = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(_t || {});
594
+ function kt(e) {
596
595
  return e === "development" || e === "production" || e === "test";
597
596
  }
598
- function W(e, t) {
597
+ function V(e, t) {
599
598
  if (e instanceof Error && t !== "development") {
600
599
  let r = new Error("Unexpected Server Error");
601
600
  return r.stack = void 0, r;
602
601
  }
603
602
  return e;
604
603
  }
605
- function q(e, t) {
606
- return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: W(n, t) }), {});
604
+ function z(e, t) {
605
+ return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: V(n, t) }), {});
607
606
  }
608
- function Ue(e, t) {
609
- let r = W(e, t);
607
+ function Te(e, t) {
608
+ let r = V(e, t);
610
609
  return {
611
610
  message: r.message,
612
611
  stack: r.stack
613
612
  };
614
613
  }
615
- function me(e, t) {
614
+ function he(e, t) {
616
615
  if (!e) return null;
617
616
  let r = Object.entries(e), a = {};
618
617
  for (let [n, o] of r)
619
- if (F(o))
618
+ if (P(o))
620
619
  a[n] = { ...o, __type: "RouteErrorResponse" };
621
620
  else if (o instanceof Error) {
622
- let c = W(o, t);
621
+ let f = V(o, t);
623
622
  a[n] = {
624
- message: c.message,
625
- stack: c.stack,
623
+ message: f.message,
624
+ stack: f.stack,
626
625
  __type: "Error",
627
626
  // If this is a subclass (i.e., ReferenceError), send up the type so we
628
627
  // can re-create the same type during hydration. This will only apply
629
628
  // in dev mode since all production errors are sanitized to normal
630
629
  // Error instances
631
- ...c.name !== "Error" ? {
632
- __subType: c.name
630
+ ...f.name !== "Error" ? {
631
+ __subType: f.name
633
632
  } : {}
634
633
  };
635
634
  } else
636
635
  a[n] = o;
637
636
  return a;
638
637
  }
639
- function Y(e, t, r) {
640
- let a = ke(
638
+ function G(e, t, r) {
639
+ let a = be(
641
640
  e,
642
641
  t,
643
642
  r
@@ -648,19 +647,18 @@ function Y(e, t, r) {
648
647
  route: n.route
649
648
  })) : null;
650
649
  }
651
- async function ye(e, t, r) {
652
- let a = await e({
653
- request: r.unstable_passThroughRequests ? t.request : Ht(Dt(t.request)),
654
- unstable_url: t.unstable_url,
650
+ async function pe(e, t) {
651
+ let r = await e({
652
+ request: Dt(At(t.request)),
655
653
  params: t.params,
656
654
  context: t.context,
657
655
  unstable_pattern: t.unstable_pattern
658
656
  });
659
- if (ct(a) && a.init && a.init.status && ae(a.init.status))
660
- throw new Response(null, a.init);
661
- return a;
657
+ if (ut(r) && r.init && r.init.status && re(r.init.status))
658
+ throw new Response(null, r.init);
659
+ return r;
662
660
  }
663
- function Dt(e) {
661
+ function At(e) {
664
662
  let t = new URL(e.url), r = t.searchParams.getAll("index");
665
663
  t.searchParams.delete("index");
666
664
  let a = [];
@@ -676,7 +674,7 @@ function Dt(e) {
676
674
  };
677
675
  return n.body && (n.duplex = "half"), new Request(t.href, n);
678
676
  }
679
- function Ht(e) {
677
+ function Dt(e) {
680
678
  let t = new URL(e.url);
681
679
  t.searchParams.delete("_routes");
682
680
  let r = {
@@ -687,29 +685,29 @@ function Ht(e) {
687
685
  };
688
686
  return r.body && (r.duplex = "half"), new Request(t.href, r);
689
687
  }
690
- function z(e, t) {
688
+ function j(e, t) {
691
689
  if (e === !1 || e === null || typeof e > "u")
692
690
  throw console.error(
693
691
  "The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
694
692
  ), new Error(t);
695
693
  }
696
- var Le = "__reactRouterDevServerHooks";
697
- function lr(e) {
698
- globalThis[Le] = e;
694
+ var Fe = "__reactRouterDevServerHooks";
695
+ function or(e) {
696
+ globalThis[Fe] = e;
699
697
  }
700
- function X() {
701
- return globalThis[Le];
698
+ function W() {
699
+ return globalThis[Fe];
702
700
  }
703
- function Ne(e, t) {
701
+ function Pe(e, t) {
704
702
  if (typeof process < "u")
705
703
  try {
706
- if (process.env.hasOwnProperty("IS_RR_BUILD_REQUEST") && process.env.IS_RR_BUILD_REQUEST === "yes")
704
+ if (process.env?.IS_RR_BUILD_REQUEST === "yes")
707
705
  return e.headers.get(t);
708
706
  } catch {
709
707
  }
710
708
  return null;
711
709
  }
712
- function Oe(e) {
710
+ function Ue(e) {
713
711
  let t = {};
714
712
  return Object.values(e).forEach((r) => {
715
713
  if (r) {
@@ -718,13 +716,13 @@ function Oe(e) {
718
716
  }
719
717
  }), t;
720
718
  }
721
- function Ie(e, t = "", r = Oe(e)) {
719
+ function Ne(e, t = "", r = Ue(e)) {
722
720
  return (r[t] || []).map((a) => ({
723
721
  ...a,
724
- children: Ie(e, a.id, r)
722
+ children: Ne(e, a.id, r)
725
723
  }));
726
724
  }
727
- function Be(e, t, r = "", a = Oe(e)) {
725
+ function Le(e, t, r = "", a = Ue(e)) {
728
726
  return (a[r] || []).map((n) => {
729
727
  let o = {
730
728
  // Always include root due to default boundaries
@@ -734,41 +732,37 @@ function Be(e, t, r = "", a = Oe(e)) {
734
732
  middleware: n.module.middleware,
735
733
  // Need to use RR's version in the param typed here to permit the optional
736
734
  // context even though we know it'll always be provided in remix
737
- loader: n.module.loader ? async (c) => {
738
- let u = Ne(
739
- c.request,
735
+ loader: n.module.loader ? async (f) => {
736
+ let l = Pe(
737
+ f.request,
740
738
  "X-React-Router-Prerender-Data"
741
739
  );
742
- if (u != null) {
743
- let i = u && decodeURI(u);
744
- z(i, "Missing prerendered data for route");
745
- let l = new TextEncoder().encode(i), h = new ReadableStream({
740
+ if (l != null) {
741
+ let i = l && decodeURI(l);
742
+ j(i, "Missing prerendered data for route");
743
+ let u = new TextEncoder().encode(i), h = new ReadableStream({
746
744
  start(y) {
747
- y.enqueue(l), y.close();
745
+ y.enqueue(u), y.close();
748
746
  }
749
- }), w = (await ot(h, global)).value;
747
+ }), w = (await nt(h, global)).value;
750
748
  if (w && I in w) {
751
- let y = w[I], R = { status: y.status };
752
- throw y.reload ? it(y.redirect, R) : y.replace ? lt(y.redirect, R) : ut(y.redirect, R);
749
+ let y = w[I], g = { status: y.status };
750
+ throw y.reload ? st(y.redirect, g) : y.replace ? ot(y.redirect, g) : it(y.redirect, g);
753
751
  } else {
754
- z(
752
+ j(
755
753
  w && n.id in w,
756
754
  "Unable to decode prerendered data"
757
755
  );
758
756
  let y = w[n.id];
759
- return z(
757
+ return j(
760
758
  "data" in y,
761
759
  "Unable to process prerendered data"
762
760
  ), y.data;
763
761
  }
764
762
  }
765
- return await ye(
766
- n.module.loader,
767
- c,
768
- t
769
- );
763
+ return await pe(n.module.loader, f);
770
764
  } : void 0,
771
- action: n.module.action ? (c) => ye(n.module.action, c, t) : void 0,
765
+ action: n.module.action ? (f) => pe(n.module.action, f) : void 0,
772
766
  handle: n.module.handle
773
767
  };
774
768
  return n.index ? {
@@ -776,7 +770,7 @@ function Be(e, t, r = "", a = Oe(e)) {
776
770
  ...o
777
771
  } : {
778
772
  caseSensitive: n.caseSensitive,
779
- children: Be(
773
+ children: Le(
780
774
  e,
781
775
  t,
782
776
  n.id,
@@ -786,52 +780,52 @@ function Be(e, t, r = "", a = Oe(e)) {
786
780
  };
787
781
  });
788
782
  }
789
- function we(e) {
790
- return G(JSON.stringify(e));
783
+ function me(e) {
784
+ return Q(JSON.stringify(e));
791
785
  }
792
- function se(e, t) {
793
- return Pt(e, (r) => {
786
+ function ne(e, t) {
787
+ return Ht(e, (r) => {
794
788
  let a = t.routes[r.route.id];
795
- return z(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
789
+ return j(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
796
790
  });
797
791
  }
798
- function Pt(e, t, r) {
799
- let a = e.errors ? e.matches.findIndex((u) => e.errors[u.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, o;
792
+ function Ht(e, t, r) {
793
+ let a = e.errors ? e.matches.findIndex((l) => e.errors[l.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, o;
800
794
  if (a >= 0) {
801
- let { actionHeaders: u, actionData: s, loaderHeaders: i, loaderData: l } = e;
795
+ let { actionHeaders: l, actionData: s, loaderHeaders: i, loaderData: u } = e;
802
796
  e.matches.slice(a).some((h) => {
803
797
  let p = h.route.id;
804
- return u[p] && (!s || !s.hasOwnProperty(p)) ? o = u[p] : i[p] && !l.hasOwnProperty(p) && (o = i[p]), o != null;
798
+ return l[p] && (!s || !s.hasOwnProperty(p)) ? o = l[p] : i[p] && !u.hasOwnProperty(p) && (o = i[p]), o != null;
805
799
  });
806
800
  }
807
- const c = new Headers(r);
808
- return n.reduce((u, s, i) => {
809
- let { id: l } = s.route, h = e.loaderHeaders[l] || new Headers(), p = e.actionHeaders[l] || new Headers(), w = o != null && i === n.length - 1, y = w && o !== h && o !== p, R = t(s);
810
- if (R == null) {
811
- let g = new Headers(u);
812
- return y && U(o, g), U(p, g), U(h, g), g;
801
+ const f = new Headers(r);
802
+ return n.reduce((l, s, i) => {
803
+ let { id: u } = s.route, h = e.loaderHeaders[u] || new Headers(), p = e.actionHeaders[u] || new Headers(), w = o != null && i === n.length - 1, y = w && o !== h && o !== p, g = t(s);
804
+ if (g == null) {
805
+ let v = new Headers(l);
806
+ return y && U(o, v), U(p, v), U(h, v), v;
813
807
  }
814
- let f = new Headers(
815
- typeof R == "function" ? R({
808
+ let c = new Headers(
809
+ typeof g == "function" ? g({
816
810
  loaderHeaders: h,
817
- parentHeaders: u,
811
+ parentHeaders: l,
818
812
  actionHeaders: p,
819
813
  errorHeaders: w ? o : void 0
820
- }) : R
814
+ }) : g
821
815
  );
822
- return y && U(o, f), U(p, f), U(h, f), U(u, f), f;
823
- }, new Headers(c));
816
+ return y && U(o, c), U(p, c), U(h, c), U(l, c), c;
817
+ }, new Headers(f));
824
818
  }
825
819
  function U(e, t) {
826
820
  let r = e.get("Set-Cookie");
827
821
  if (r) {
828
- let a = wt.splitCookiesString(r), n = new Set(t.getSetCookie());
822
+ let a = mt.splitCookiesString(r), n = new Set(t.getSetCookie());
829
823
  a.forEach((o) => {
830
824
  n.has(o) || t.append("Set-Cookie", o);
831
825
  });
832
826
  }
833
827
  }
834
- function Me(e, t) {
828
+ function Oe(e, t) {
835
829
  let r = e.get("origin"), a = null;
836
830
  try {
837
831
  a = typeof r == "string" && r !== "null" ? new URL(r).host : r;
@@ -840,15 +834,15 @@ function Me(e, t) {
840
834
  "`origin` header is not a valid URL. Aborting the action."
841
835
  );
842
836
  }
843
- let n = Lt(e);
844
- if (a && (!n || a !== n.value) && !Ut(a, t))
837
+ let n = Pt(e);
838
+ if (a && (!n || a !== n.value) && !Ft(a, t))
845
839
  throw n ? new Error(
846
840
  `${n.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`
847
841
  ) : new Error(
848
842
  "`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action."
849
843
  );
850
844
  }
851
- function Ft(e, t) {
845
+ function Tt(e, t) {
852
846
  const r = e.split("."), a = t.split(".");
853
847
  if (a.length < 1 || r.length < a.length)
854
848
  return !1;
@@ -871,12 +865,12 @@ function Ft(e, t) {
871
865
  }
872
866
  return r.length === 0;
873
867
  }
874
- function Ut(e, t = []) {
868
+ function Ft(e, t = []) {
875
869
  return t.some(
876
- (r) => r && (r === e || Ft(e, r))
870
+ (r) => r && (r === e || Tt(e, r))
877
871
  );
878
872
  }
879
- function Lt(e) {
873
+ function Pt(e) {
880
874
  let r = e.get("x-forwarded-host")?.split(",")[0]?.trim(), a = e.get("host");
881
875
  return r ? {
882
876
  type: "x-forwarded-host",
@@ -886,89 +880,74 @@ function Lt(e) {
886
880
  value: a
887
881
  } : void 0;
888
882
  }
889
- function M(e, t, r) {
890
- t = t || "/";
891
- let a = new URL(e.url), n = a.pathname;
892
- r?.unstable_trailingSlashAwareDataRequests ? n.endsWith("/_.data") ? n = n.replace(/_\.data$/, "") : n = n.replace(/\.data$/, "") : (j(n, t) === "/_root.data" ? n = t : n.endsWith(".data") && (n = n.replace(/\.data$/, "")), j(n, t) !== "/" && n.endsWith("/") && (n = n.slice(0, -1)));
893
- let o = new URLSearchParams(a.search);
894
- o.delete("_routes");
895
- let c = o.toString();
896
- return c && (c = `?${c}`), {
897
- pathname: n,
898
- search: c,
899
- // No hashes on the server
900
- hash: ""
901
- };
902
- }
903
- var $e = /* @__PURE__ */ new Set([
904
- ...ht,
883
+ var Ie = /* @__PURE__ */ new Set([
884
+ ...ct,
905
885
  304
906
886
  ]);
907
- async function Nt(e, t, r, a, n, o, c) {
887
+ async function Ut(e, t, r, a, n, o, f) {
908
888
  try {
909
889
  try {
910
- Me(
890
+ Oe(
911
891
  a.headers,
912
892
  Array.isArray(e.allowedActionOrigins) ? e.allowedActionOrigins : []
913
893
  );
914
894
  } catch {
915
895
  return s(new Error("Bad Request"), 400);
916
896
  }
917
- let l = e.future.unstable_passThroughRequests ? a : new Request(n, {
897
+ let u = new Request(n, {
918
898
  method: a.method,
919
899
  body: a.body,
920
900
  headers: a.headers,
921
901
  signal: a.signal,
922
902
  ...a.body ? { duplex: "half" } : void 0
923
- }), h = await r.query(l, {
903
+ }), h = await r.query(u, {
924
904
  requestContext: o,
925
905
  skipLoaderErrorBubbling: !0,
926
906
  skipRevalidation: !0,
927
907
  generateMiddlewareResponse: e.future.v8_middleware ? async (p) => {
928
908
  try {
929
- let w = await p(l);
930
- return u(w);
909
+ let w = await p(u);
910
+ return l(w);
931
911
  } catch (w) {
932
912
  return s(w);
933
913
  }
934
- } : void 0,
935
- unstable_normalizePath: (p) => M(p, e.basename, e.future)
914
+ } : void 0
936
915
  });
937
- return u(h);
938
- } catch (l) {
939
- return s(l);
916
+ return l(h);
917
+ } catch (u) {
918
+ return s(u);
940
919
  }
941
- function u(l) {
942
- return L(l) ? l : i(l);
920
+ function l(u) {
921
+ return N(u) ? u : i(u);
943
922
  }
944
- function s(l, h = 500) {
945
- return c(l), B(a, e, t, {
946
- result: { error: l },
923
+ function s(u, h = 500) {
924
+ return f(u), B(a, e, t, {
925
+ result: { error: u },
947
926
  headers: new Headers(),
948
927
  status: h
949
928
  });
950
929
  }
951
- function i(l) {
952
- let h = se(l, e);
953
- if (ae(l.statusCode) && h.has("Location"))
954
- return new Response(null, { status: l.statusCode, headers: h });
955
- l.errors && (Object.values(l.errors).forEach((w) => {
956
- (!F(w) || w.error) && c(w);
957
- }), l.errors = q(l.errors, t));
930
+ function i(u) {
931
+ let h = ne(u, e);
932
+ if (re(u.statusCode) && h.has("Location"))
933
+ return new Response(null, { status: u.statusCode, headers: h });
934
+ u.errors && (Object.values(u.errors).forEach((w) => {
935
+ (!P(w) || w.error) && f(w);
936
+ }), u.errors = z(u.errors, t));
958
937
  let p;
959
- return l.errors ? p = { error: Object.values(l.errors)[0] } : p = {
960
- data: Object.values(l.actionData || {})[0]
938
+ return u.errors ? p = { error: Object.values(u.errors)[0] } : p = {
939
+ data: Object.values(u.actionData || {})[0]
961
940
  }, B(a, e, t, {
962
941
  result: p,
963
942
  headers: h,
964
- status: l.statusCode
943
+ status: u.statusCode
965
944
  });
966
945
  }
967
946
  }
968
- async function Ot(e, t, r, a, n, o, c) {
969
- let u = new URL(a.url).searchParams.get("_routes"), s = u ? new Set(u.split(",")) : null;
947
+ async function Nt(e, t, r, a, n, o, f) {
948
+ let l = new URL(a.url).searchParams.get("_routes"), s = l ? new Set(l.split(",")) : null;
970
949
  try {
971
- let p = e.future.unstable_passThroughRequests ? a : new Request(n, {
950
+ let p = new Request(n, {
972
951
  headers: a.headers,
973
952
  signal: a.signal
974
953
  }), w = await r.query(p, {
@@ -977,45 +956,44 @@ async function Ot(e, t, r, a, n, o, c) {
977
956
  skipLoaderErrorBubbling: !0,
978
957
  generateMiddlewareResponse: e.future.v8_middleware ? async (y) => {
979
958
  try {
980
- let R = await y(p);
981
- return i(R);
982
- } catch (R) {
983
- return l(R);
959
+ let g = await y(p);
960
+ return i(g);
961
+ } catch (g) {
962
+ return u(g);
984
963
  }
985
- } : void 0,
986
- unstable_normalizePath: (y) => M(y, e.basename, e.future)
964
+ } : void 0
987
965
  });
988
966
  return i(w);
989
967
  } catch (p) {
990
- return l(p);
968
+ return u(p);
991
969
  }
992
970
  function i(p) {
993
- return L(p) ? p : h(p);
971
+ return N(p) ? p : h(p);
994
972
  }
995
- function l(p) {
996
- return c(p), B(a, e, t, {
973
+ function u(p) {
974
+ return f(p), B(a, e, t, {
997
975
  result: { error: p },
998
976
  headers: new Headers(),
999
977
  status: 500
1000
978
  });
1001
979
  }
1002
980
  function h(p) {
1003
- let w = se(p, e);
1004
- if (ae(p.statusCode) && w.has("Location"))
981
+ let w = ne(p, e);
982
+ if (re(p.statusCode) && w.has("Location"))
1005
983
  return new Response(null, { status: p.statusCode, headers: w });
1006
- p.errors && (Object.values(p.errors).forEach((f) => {
1007
- (!F(f) || f.error) && c(f);
1008
- }), p.errors = q(p.errors, t));
1009
- let y = {}, R = new Set(
984
+ p.errors && (Object.values(p.errors).forEach((c) => {
985
+ (!P(c) || c.error) && f(c);
986
+ }), p.errors = z(p.errors, t));
987
+ let y = {}, g = new Set(
1010
988
  p.matches.filter(
1011
- (f) => s ? s.has(f.route.id) : f.route.loader != null
1012
- ).map((f) => f.route.id)
989
+ (c) => s ? s.has(c.route.id) : c.route.loader != null
990
+ ).map((c) => c.route.id)
1013
991
  );
1014
992
  if (p.errors)
1015
- for (let [f, g] of Object.entries(p.errors))
1016
- y[f] = { error: g };
1017
- for (let [f, g] of Object.entries(p.loaderData))
1018
- !(f in y) && R.has(f) && (y[f] = { data: g });
993
+ for (let [c, v] of Object.entries(p.errors))
994
+ y[c] = { error: v };
995
+ for (let [c, v] of Object.entries(p.loaderData))
996
+ !(c in y) && g.has(c) && (y[c] = { data: v });
1019
997
  return B(a, e, t, {
1020
998
  result: y,
1021
999
  headers: w,
@@ -1028,9 +1006,9 @@ function B(e, t, r, {
1028
1006
  headers: n,
1029
1007
  status: o
1030
1008
  }) {
1031
- let c = new Headers(n);
1032
- return c.set("X-Remix-Response", "yes"), $e.has(o) ? new Response(null, { status: o, headers: c }) : (c.set("Content-Type", "text/x-script"), c.delete("Content-Length"), new Response(
1033
- Z(
1009
+ let f = new Headers(n);
1010
+ return f.set("X-Remix-Response", "yes"), Ie.has(o) ? new Response(null, { status: o, headers: f }) : (f.set("Content-Type", "text/x-script"), f.delete("Content-Length"), new Response(
1011
+ Y(
1034
1012
  a,
1035
1013
  e.signal,
1036
1014
  t.entry.module.streamTimeout,
@@ -1038,12 +1016,12 @@ function B(e, t, r, {
1038
1016
  ),
1039
1017
  {
1040
1018
  status: o || 200,
1041
- headers: c
1019
+ headers: f
1042
1020
  }
1043
1021
  ));
1044
1022
  }
1045
- function ge(e, t, r, a) {
1046
- let n = It(
1023
+ function ye(e, t, r, a) {
1024
+ let n = Lt(
1047
1025
  e.status,
1048
1026
  e.headers,
1049
1027
  r.basename
@@ -1051,12 +1029,12 @@ function ge(e, t, r, a) {
1051
1029
  return o.delete("Location"), o.set("Content-Type", "text/x-script"), B(t, r, a, {
1052
1030
  result: t.method === "GET" ? { [I]: n } : n,
1053
1031
  headers: o,
1054
- status: Ae
1032
+ status: xe
1055
1033
  });
1056
1034
  }
1057
- function It(e, t, r) {
1035
+ function Lt(e, t, r) {
1058
1036
  let a = t.get("Location");
1059
- return r && (a = j(a, r) || a), {
1037
+ return r && (a = $(a, r) || a), {
1060
1038
  redirect: a,
1061
1039
  status: e,
1062
1040
  revalidate: (
@@ -1073,221 +1051,213 @@ function It(e, t, r) {
1073
1051
  replace: t.has("X-Remix-Replace")
1074
1052
  };
1075
1053
  }
1076
- function Z(e, t, r, a) {
1054
+ function Y(e, t, r, a) {
1077
1055
  let n = new AbortController(), o = setTimeout(
1078
- () => {
1079
- n.abort(new Error("Server Timeout")), u();
1080
- },
1056
+ () => n.abort(new Error("Server Timeout")),
1081
1057
  typeof r == "number" ? r : 4950
1082
- ), c = () => {
1083
- n.abort(t.reason), u();
1084
- };
1085
- t.addEventListener("abort", c);
1086
- let u = () => {
1087
- clearTimeout(o), t.removeEventListener("abort", c);
1088
- };
1089
- return pt(e, {
1058
+ ), f = () => clearTimeout(o);
1059
+ return t.addEventListener("abort", f), ft(e, {
1090
1060
  signal: n.signal,
1091
- onComplete: u,
1061
+ onComplete: f,
1092
1062
  plugins: [
1093
- (s) => {
1094
- if (s instanceof Error) {
1095
- let { name: i, message: l, stack: h } = a === "production" ? W(s, a) : s;
1096
- return ["SanitizedError", i, l, h];
1063
+ (l) => {
1064
+ if (l instanceof Error) {
1065
+ let { name: s, message: i, stack: u } = a === "production" ? V(l, a) : l;
1066
+ return ["SanitizedError", s, i, u];
1097
1067
  }
1098
- if (s instanceof O) {
1099
- let { data: i, status: l, statusText: h } = s;
1100
- return ["ErrorResponse", i, l, h];
1068
+ if (l instanceof O) {
1069
+ let { data: s, status: i, statusText: u } = l;
1070
+ return ["ErrorResponse", s, i, u];
1101
1071
  }
1102
- if (s && typeof s == "object" && I in s)
1103
- return ["SingleFetchRedirect", s[I]];
1072
+ if (l && typeof l == "object" && I in l)
1073
+ return ["SingleFetchRedirect", l[I]];
1104
1074
  }
1105
1075
  ],
1106
1076
  postPlugins: [
1107
- (s) => {
1108
- if (s && typeof s == "object")
1077
+ (l) => {
1078
+ if (l && typeof l == "object")
1109
1079
  return [
1110
1080
  "SingleFetchClassInstance",
1111
- Object.fromEntries(Object.entries(s))
1081
+ Object.fromEntries(Object.entries(l))
1112
1082
  ];
1113
1083
  },
1114
1084
  () => ["SingleFetchFallback"]
1115
1085
  ]
1116
1086
  });
1117
1087
  }
1118
- function Re(e, t) {
1119
- let r = Ie(e.routes), a = Be(e.routes, e.future), n = Tt(t) ? t : "production", o = et(a, {
1088
+ function we(e, t) {
1089
+ let r = Ne(e.routes), a = Le(e.routes, e.future), n = kt(t) ? t : "production", o = Ye(a, {
1120
1090
  basename: e.basename,
1121
1091
  unstable_instrumentations: e.entry.module.unstable_instrumentations
1122
- }), c = e.entry.module.handleError || ((s, { request: i }) => {
1092
+ }), f = e.entry.module.handleError || ((s, { request: i }) => {
1123
1093
  n !== "test" && !i.signal.aborted && console.error(
1124
1094
  // @ts-expect-error This is "private" from users but intended for internal use
1125
- F(s) && s.error ? s.error : s
1095
+ P(s) && s.error ? s.error : s
1126
1096
  );
1127
- }), u = async (s, i) => {
1128
- let l = {}, h, p = (d) => {
1129
- t === "development" && X()?.processRequestError?.(d), c(d, {
1097
+ }), l = async (s, i) => {
1098
+ let u = {}, h, p = (R) => {
1099
+ t === "development" && W()?.processRequestError?.(R), f(R, {
1130
1100
  context: h,
1131
- params: l,
1101
+ params: u,
1132
1102
  request: s
1133
1103
  });
1134
1104
  };
1135
1105
  if (e.future.v8_middleware) {
1136
1106
  if (i && !(i instanceof K)) {
1137
- let d = new Error(
1107
+ let R = new Error(
1138
1108
  "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
1139
1109
  );
1140
- return p(d), V(d, n);
1110
+ return p(R), q(R, n);
1141
1111
  }
1142
1112
  h = i || new K();
1143
1113
  } else
1144
1114
  h = i || {};
1145
- let w = new URL(s.url), y = M(
1146
- s,
1147
- e.basename,
1148
- e.future
1149
- ).pathname, R = Ne(s, "X-React-Router-SPA-Mode") === "yes";
1115
+ let w = new URL(s.url), y = e.basename || "/", g = w.pathname;
1116
+ e.future.unstable_trailingSlashAwareDataRequests ? g.endsWith("/_.data") ? g = g.replace(/_.data$/, "") : g = g.replace(/\.data$/, "") : ($(g, y) === "/_root.data" ? g = y : g.endsWith(".data") && (g = g.replace(/\.data$/, "")), $(g, y) !== "/" && g.endsWith("/") && (g = g.slice(0, -1)));
1117
+ let c = Pe(s, "X-React-Router-SPA-Mode") === "yes";
1150
1118
  if (!e.ssr) {
1151
- let d = decodeURI(y);
1152
- if (e.basename && e.basename !== "/") {
1153
- let S = j(d, e.basename);
1119
+ let R = decodeURI(g);
1120
+ if (y !== "/") {
1121
+ let S = $(R, y);
1154
1122
  if (S == null)
1155
- return c(
1123
+ return f(
1156
1124
  new O(
1157
1125
  404,
1158
1126
  "Not Found",
1159
- `Refusing to prerender the \`${d}\` path because it does not start with the basename \`${e.basename}\``
1127
+ `Refusing to prerender the \`${R}\` path because it does not start with the basename \`${y}\``
1160
1128
  ),
1161
1129
  {
1162
1130
  context: h,
1163
- params: l,
1131
+ params: u,
1164
1132
  request: s
1165
1133
  }
1166
1134
  ), new Response("Not Found", {
1167
1135
  status: 404,
1168
1136
  statusText: "Not Found"
1169
1137
  });
1170
- d = S;
1138
+ R = S;
1171
1139
  }
1172
1140
  if (e.prerender.length === 0)
1173
- R = !0;
1174
- else if (!e.prerender.includes(d) && !e.prerender.includes(d + "/")) {
1141
+ c = !0;
1142
+ else if (!e.prerender.includes(R) && !e.prerender.includes(R + "/")) {
1175
1143
  if (w.pathname.endsWith(".data"))
1176
- return c(
1144
+ return f(
1177
1145
  new O(
1178
1146
  404,
1179
1147
  "Not Found",
1180
- `Refusing to SSR the path \`${d}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
1148
+ `Refusing to SSR the path \`${R}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
1181
1149
  ),
1182
1150
  {
1183
1151
  context: h,
1184
- params: l,
1152
+ params: u,
1185
1153
  request: s
1186
1154
  }
1187
1155
  ), new Response("Not Found", {
1188
1156
  status: 404,
1189
1157
  statusText: "Not Found"
1190
1158
  });
1191
- R = !0;
1159
+ c = !0;
1192
1160
  }
1193
1161
  }
1194
- let f = dt(
1162
+ let v = lt(
1195
1163
  e.routeDiscovery.manifestPath,
1196
- e.basename
1164
+ y
1197
1165
  );
1198
- if (w.pathname === f)
1166
+ if (w.pathname === v)
1199
1167
  try {
1200
- return await Bt(e, r, w);
1201
- } catch (d) {
1202
- return p(d), new Response("Unknown Server Error", { status: 500 });
1168
+ return await Ot(e, r, w);
1169
+ } catch (R) {
1170
+ return p(R), new Response("Unknown Server Error", { status: 500 });
1203
1171
  }
1204
- let g = Y(r, y, e.basename);
1205
- g && g.length > 0 && Object.assign(l, g[0].params);
1206
- let m;
1172
+ let m = G(r, g, e.basename);
1173
+ m && m.length > 0 && Object.assign(u, m[0].params);
1174
+ let d;
1207
1175
  if (w.pathname.endsWith(".data")) {
1208
- let d = Y(
1176
+ let R = new URL(s.url);
1177
+ R.pathname = g;
1178
+ let S = G(
1209
1179
  r,
1210
- y,
1180
+ R.pathname,
1211
1181
  e.basename
1212
1182
  );
1213
- m = await Mt(
1183
+ d = await It(
1214
1184
  n,
1215
1185
  e,
1216
1186
  o,
1217
1187
  s,
1218
- y,
1188
+ R,
1219
1189
  h,
1220
1190
  p
1221
- ), ue(m) && (m = ge(
1222
- m,
1191
+ ), ie(d) && (d = ye(
1192
+ d,
1223
1193
  s,
1224
1194
  e,
1225
1195
  n
1226
- )), e.entry.module.handleDataRequest && (m = await e.entry.module.handleDataRequest(m, {
1196
+ )), e.entry.module.handleDataRequest && (d = await e.entry.module.handleDataRequest(d, {
1227
1197
  context: h,
1228
- params: d ? d[0].params : {},
1198
+ params: S ? S[0].params : {},
1229
1199
  request: s
1230
- }), ue(m) && (m = ge(
1231
- m,
1200
+ }), ie(d) && (d = ye(
1201
+ d,
1232
1202
  s,
1233
1203
  e,
1234
1204
  n
1235
1205
  )));
1236
- } else if (!R && g && g[g.length - 1].route.module.default == null && g[g.length - 1].route.module.ErrorBoundary == null)
1237
- m = await zt(
1206
+ } else if (!c && m && m[m.length - 1].route.module.default == null && m[m.length - 1].route.module.ErrorBoundary == null)
1207
+ d = await Mt(
1238
1208
  n,
1239
1209
  e,
1240
1210
  o,
1241
- g.slice(-1)[0].route.id,
1211
+ m.slice(-1)[0].route.id,
1242
1212
  s,
1243
1213
  h,
1244
1214
  p
1245
1215
  );
1246
1216
  else {
1247
- let { pathname: d } = w, S;
1248
- e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname: d }) : t === "development" && X()?.getCriticalCss && (S = await X()?.getCriticalCss?.(d)), m = await $t(
1217
+ let { pathname: R } = w, S;
1218
+ e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname: R }) : t === "development" && W()?.getCriticalCss && (S = await W()?.getCriticalCss?.(R)), d = await Bt(
1249
1219
  n,
1250
1220
  e,
1251
1221
  o,
1252
1222
  s,
1253
1223
  h,
1254
1224
  p,
1255
- R,
1225
+ c,
1256
1226
  S
1257
1227
  );
1258
1228
  }
1259
1229
  return s.method === "HEAD" ? new Response(null, {
1260
- headers: m.headers,
1261
- status: m.status,
1262
- statusText: m.statusText
1263
- }) : m;
1230
+ headers: d.headers,
1231
+ status: d.status,
1232
+ statusText: d.statusText
1233
+ }) : d;
1264
1234
  };
1265
- return e.entry.module.unstable_instrumentations && (u = tt(
1266
- u,
1235
+ return e.entry.module.unstable_instrumentations && (l = Ze(
1236
+ l,
1267
1237
  e.entry.module.unstable_instrumentations.map((s) => s.handler).filter(Boolean)
1268
1238
  )), {
1269
1239
  routes: r,
1270
1240
  dataRoutes: a,
1271
1241
  serverMode: n,
1272
1242
  staticHandler: o,
1273
- errorHandler: c,
1274
- requestHandler: u
1243
+ errorHandler: f,
1244
+ requestHandler: l
1275
1245
  };
1276
1246
  }
1277
- var ur = (e, t) => {
1278
- let r, a, n, o, c, u;
1279
- return async function(i, l) {
1247
+ var ir = (e, t) => {
1248
+ let r, a, n, o, f, l;
1249
+ return async function(i, u) {
1280
1250
  if (r = typeof e == "function" ? await e() : e, typeof e == "function") {
1281
- let h = Re(r, t);
1282
- a = h.routes, n = h.serverMode, o = h.staticHandler, c = h.errorHandler, u = h.requestHandler;
1283
- } else if (!a || !n || !o || !c || !u) {
1284
- let h = Re(r, t);
1285
- a = h.routes, n = h.serverMode, o = h.staticHandler, c = h.errorHandler, u = h.requestHandler;
1251
+ let h = we(r, t);
1252
+ a = h.routes, n = h.serverMode, o = h.staticHandler, f = h.errorHandler, l = h.requestHandler;
1253
+ } else if (!a || !n || !o || !f || !l) {
1254
+ let h = we(r, t);
1255
+ a = h.routes, n = h.serverMode, o = h.staticHandler, f = h.errorHandler, l = h.requestHandler;
1286
1256
  }
1287
- return u(i, l);
1257
+ return l(i, u);
1288
1258
  };
1289
1259
  };
1290
- async function Bt(e, t, r) {
1260
+ async function Ot(e, t, r) {
1291
1261
  if (e.assets.version !== r.searchParams.get("version"))
1292
1262
  return new Response(null, {
1293
1263
  status: 204,
@@ -1298,20 +1268,20 @@ async function Bt(e, t, r) {
1298
1268
  let a = {};
1299
1269
  if (r.searchParams.has("paths")) {
1300
1270
  let n = /* @__PURE__ */ new Set();
1301
- (r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((u) => {
1302
- u.startsWith("/") || (u = `/${u}`);
1303
- let s = u.split("/").slice(1);
1304
- s.forEach((i, l) => {
1305
- let h = s.slice(0, l + 1).join("/");
1271
+ (r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((l) => {
1272
+ l.startsWith("/") || (l = `/${l}`);
1273
+ let s = l.split("/").slice(1);
1274
+ s.forEach((i, u) => {
1275
+ let h = s.slice(0, u + 1).join("/");
1306
1276
  n.add(`/${h}`);
1307
1277
  });
1308
1278
  });
1309
- for (let u of n) {
1310
- let s = Y(t, u, e.basename);
1279
+ for (let l of n) {
1280
+ let s = G(t, l, e.basename);
1311
1281
  if (s)
1312
1282
  for (let i of s) {
1313
- let l = i.route.id, h = e.assets.routes[l];
1314
- h && (a[l] = h);
1283
+ let u = i.route.id, h = e.assets.routes[u];
1284
+ h && (a[u] = h);
1315
1285
  }
1316
1286
  }
1317
1287
  return Response.json(a, {
@@ -1322,80 +1292,78 @@ async function Bt(e, t, r) {
1322
1292
  }
1323
1293
  return new Response("Invalid Request", { status: 400 });
1324
1294
  }
1325
- async function Mt(e, t, r, a, n, o, c) {
1326
- let u = new URL(a.url);
1327
- return u.pathname = n, a.method !== "GET" ? await Nt(
1295
+ async function It(e, t, r, a, n, o, f) {
1296
+ return a.method !== "GET" ? await Ut(
1328
1297
  t,
1329
1298
  e,
1330
1299
  r,
1331
1300
  a,
1332
- u,
1301
+ n,
1333
1302
  o,
1334
- c
1335
- ) : await Ot(
1303
+ f
1304
+ ) : await Nt(
1336
1305
  t,
1337
1306
  e,
1338
1307
  r,
1339
1308
  a,
1340
- u,
1309
+ n,
1341
1310
  o,
1342
- c
1311
+ f
1343
1312
  );
1344
1313
  }
1345
- async function $t(e, t, r, a, n, o, c, u) {
1314
+ async function Bt(e, t, r, a, n, o, f, l) {
1346
1315
  try {
1347
1316
  if (a.method === "POST")
1348
1317
  try {
1349
- Me(
1318
+ Oe(
1350
1319
  a.headers,
1351
1320
  Array.isArray(t.allowedActionOrigins) ? t.allowedActionOrigins : []
1352
1321
  );
1353
- } catch (l) {
1354
- return o(l), new Response("Bad Request", { status: 400 });
1322
+ } catch (u) {
1323
+ return o(u), new Response("Bad Request", { status: 400 });
1355
1324
  }
1356
1325
  let i = await r.query(a, {
1357
1326
  requestContext: n,
1358
- generateMiddlewareResponse: t.future.v8_middleware ? async (l) => {
1327
+ generateMiddlewareResponse: t.future.v8_middleware ? async (u) => {
1359
1328
  try {
1360
- let h = await l(a);
1361
- return L(h) || (h = await s(h, c)), h;
1329
+ let h = await u(a);
1330
+ return N(h) || (h = await s(h, f)), h;
1362
1331
  } catch (h) {
1363
1332
  return o(h), new Response(null, { status: 500 });
1364
1333
  }
1365
- } : void 0,
1366
- unstable_normalizePath: (l) => M(l, t.basename, t.future)
1334
+ } : void 0
1367
1335
  });
1368
- return L(i) || (i = await s(i, c)), i;
1336
+ return N(i) || (i = await s(i, f)), i;
1369
1337
  } catch (i) {
1370
1338
  return o(i), new Response(null, { status: 500 });
1371
1339
  }
1372
- async function s(i, l) {
1373
- let h = se(i, t);
1374
- if ($e.has(i.statusCode))
1340
+ async function s(i, u) {
1341
+ let h = ne(i, t);
1342
+ if (Ie.has(i.statusCode))
1375
1343
  return new Response(null, { status: i.statusCode, headers: h });
1376
- i.errors && (Object.values(i.errors).forEach((f) => {
1377
- (!F(f) || f.error) && o(f);
1378
- }), i.errors = q(i.errors, e));
1344
+ i.errors && (Object.values(i.errors).forEach((c) => {
1345
+ (!P(c) || c.error) && o(c);
1346
+ }), i.errors = z(i.errors, e));
1379
1347
  let p = {
1380
1348
  loaderData: i.loaderData,
1381
1349
  actionData: i.actionData,
1382
- errors: me(i.errors, e)
1350
+ errors: he(i.errors, e)
1383
1351
  }, w = {
1384
1352
  basename: t.basename,
1385
1353
  future: t.future,
1386
1354
  routeDiscovery: t.routeDiscovery,
1387
1355
  ssr: t.ssr,
1388
- isSpaMode: l
1356
+ isSpaMode: u
1389
1357
  }, y = {
1390
1358
  manifest: t.assets,
1391
- routeModules: kt(t.routes),
1359
+ routeModules: xt(t.routes),
1392
1360
  staticHandlerContext: i,
1393
- criticalCss: u,
1394
- serverHandoffString: we({
1361
+ criticalCss: l,
1362
+ serverHandoffString: me({
1395
1363
  ...w,
1396
- criticalCss: u
1364
+ criticalCss: l
1397
1365
  }),
1398
- serverHandoffStream: Z(
1366
+ serverHandoffStream: Y(
1399
1367
  p,
1400
1368
  a.signal,
1401
1369
  t.entry.module.streamTimeout,
@@ -1405,45 +1373,45 @@ async function $t(e, t, r, a, n, o, c, u) {
1405
1373
  future: t.future,
1406
1374
  ssr: t.ssr,
1407
1375
  routeDiscovery: t.routeDiscovery,
1408
- isSpaMode: l,
1409
- serializeError: (f) => Ue(f, e)
1410
- }, R = t.entry.module.default;
1376
+ isSpaMode: u,
1377
+ serializeError: (c) => Te(c, e)
1378
+ }, g = t.entry.module.default;
1411
1379
  try {
1412
- return await R(
1380
+ return await g(
1413
1381
  a,
1414
1382
  i.statusCode,
1415
1383
  h,
1416
1384
  y,
1417
1385
  n
1418
1386
  );
1419
- } catch (f) {
1420
- o(f);
1421
- let g = f;
1422
- if (L(f))
1387
+ } catch (c) {
1388
+ o(c);
1389
+ let v = c;
1390
+ if (N(c))
1423
1391
  try {
1424
- let d = await qt(f);
1425
- g = new O(
1426
- f.status,
1427
- f.statusText,
1392
+ let d = await jt(c);
1393
+ v = new O(
1394
+ c.status,
1395
+ c.statusText,
1428
1396
  d
1429
1397
  );
1430
1398
  } catch {
1431
1399
  }
1432
- i = ft(
1400
+ i = dt(
1433
1401
  r.dataRoutes,
1434
1402
  i,
1435
- g
1436
- ), i.errors && (i.errors = q(i.errors, e));
1403
+ v
1404
+ ), i.errors && (i.errors = z(i.errors, e));
1437
1405
  let m = {
1438
1406
  loaderData: i.loaderData,
1439
1407
  actionData: i.actionData,
1440
- errors: me(i.errors, e)
1408
+ errors: he(i.errors, e)
1441
1409
  };
1442
1410
  y = {
1443
1411
  ...y,
1444
1412
  staticHandlerContext: i,
1445
- serverHandoffString: we(w),
1446
- serverHandoffStream: Z(
1413
+ serverHandoffString: me(w),
1414
+ serverHandoffStream: Y(
1447
1415
  m,
1448
1416
  a.signal,
1449
1417
  t.entry.module.streamTimeout,
@@ -1452,7 +1420,7 @@ async function $t(e, t, r, a, n, o, c, u) {
1452
1420
  renderMeta: {}
1453
1421
  };
1454
1422
  try {
1455
- return await R(
1423
+ return await g(
1456
1424
  a,
1457
1425
  i.statusCode,
1458
1426
  h,
@@ -1460,50 +1428,49 @@ async function $t(e, t, r, a, n, o, c, u) {
1460
1428
  n
1461
1429
  );
1462
1430
  } catch (d) {
1463
- return o(d), V(d, e);
1431
+ return o(d), q(d, e);
1464
1432
  }
1465
1433
  }
1466
1434
  }
1467
1435
  }
1468
- async function zt(e, t, r, a, n, o, c) {
1436
+ async function Mt(e, t, r, a, n, o, f) {
1469
1437
  try {
1470
1438
  let i = await r.queryRoute(n, {
1471
1439
  routeId: a,
1472
1440
  requestContext: o,
1473
- generateMiddlewareResponse: t.future.v8_middleware ? async (l) => {
1441
+ generateMiddlewareResponse: t.future.v8_middleware ? async (u) => {
1474
1442
  try {
1475
- let h = await l(n);
1476
- return u(h);
1443
+ let h = await u(n);
1444
+ return l(h);
1477
1445
  } catch (h) {
1478
1446
  return s(h);
1479
1447
  }
1480
- } : void 0,
1481
- unstable_normalizePath: (l) => M(l, t.basename, t.future)
1448
+ } : void 0
1482
1449
  });
1483
- return u(i);
1450
+ return l(i);
1484
1451
  } catch (i) {
1485
1452
  return s(i);
1486
1453
  }
1487
- function u(i) {
1488
- return L(i) ? i : typeof i == "string" ? new Response(i) : Response.json(i);
1454
+ function l(i) {
1455
+ return N(i) ? i : typeof i == "string" ? new Response(i) : Response.json(i);
1489
1456
  }
1490
1457
  function s(i) {
1491
- if (L(i))
1458
+ if (N(i))
1492
1459
  return i;
1493
- if (F(i))
1494
- return c(i), jt(i, e);
1460
+ if (P(i))
1461
+ return f(i), $t(i, e);
1495
1462
  if (i instanceof Error && i.message === "Expected a response from queryRoute") {
1496
- let l = new Error(
1463
+ let u = new Error(
1497
1464
  "Expected a Response to be returned from resource route handler"
1498
1465
  );
1499
- return c(l), V(l, e);
1466
+ return f(u), q(u, e);
1500
1467
  }
1501
- return c(i), V(i, e);
1468
+ return f(i), q(i, e);
1502
1469
  }
1503
1470
  }
1504
- function jt(e, t) {
1471
+ function $t(e, t) {
1505
1472
  return Response.json(
1506
- Ue(
1473
+ Te(
1507
1474
  // @ts-expect-error This is "private" from users but intended for internal use
1508
1475
  e.error || new Error("Unexpected Server Error"),
1509
1476
  t
@@ -1514,7 +1481,7 @@ function jt(e, t) {
1514
1481
  }
1515
1482
  );
1516
1483
  }
1517
- function V(e, t) {
1484
+ function q(e, t) {
1518
1485
  let r = "Unexpected Server Error";
1519
1486
  return t !== "production" && (r += `
1520
1487
 
@@ -1525,14 +1492,14 @@ ${String(e)}`), new Response(r, {
1525
1492
  }
1526
1493
  });
1527
1494
  }
1528
- function qt(e) {
1495
+ function jt(e) {
1529
1496
  let t = e.headers.get("Content-Type");
1530
1497
  return t && /\bapplication\/json\b/.test(t) ? e.body == null ? null : e.json() : e.text();
1531
1498
  }
1532
- function J(e) {
1499
+ function X(e) {
1533
1500
  return `__flash_${e}__`;
1534
1501
  }
1535
- var ze = (e = {}, t = "") => {
1502
+ var Be = (e = {}, t = "") => {
1536
1503
  let r = new Map(Object.entries(e));
1537
1504
  return {
1538
1505
  get id() {
@@ -1542,11 +1509,11 @@ var ze = (e = {}, t = "") => {
1542
1509
  return Object.fromEntries(r);
1543
1510
  },
1544
1511
  has(a) {
1545
- return r.has(a) || r.has(J(a));
1512
+ return r.has(a) || r.has(X(a));
1546
1513
  },
1547
1514
  get(a) {
1548
1515
  if (r.has(a)) return r.get(a);
1549
- let n = J(a);
1516
+ let n = X(a);
1550
1517
  if (r.has(n)) {
1551
1518
  let o = r.get(n);
1552
1519
  return r.delete(n), o;
@@ -1556,50 +1523,50 @@ var ze = (e = {}, t = "") => {
1556
1523
  r.set(a, n);
1557
1524
  },
1558
1525
  flash(a, n) {
1559
- r.set(J(a), n);
1526
+ r.set(X(a), n);
1560
1527
  },
1561
1528
  unset(a) {
1562
1529
  r.delete(a);
1563
1530
  }
1564
1531
  };
1565
- }, dr = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
1566
- function Vt({
1532
+ }, lr = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
1533
+ function zt({
1567
1534
  cookie: e,
1568
1535
  createData: t,
1569
1536
  readData: r,
1570
1537
  updateData: a,
1571
1538
  deleteData: n
1572
1539
  }) {
1573
- let o = Fe(e) ? e : Pe(e?.name || "__session", e);
1574
- return je(o), {
1575
- async getSession(c, u) {
1576
- let s = c && await o.parse(c, u), i = s && await r(s);
1577
- return ze(i || {}, s || "");
1540
+ let o = He(e) ? e : De(e?.name || "__session", e);
1541
+ return Me(o), {
1542
+ async getSession(f, l) {
1543
+ let s = f && await o.parse(f, l), i = s && await r(s);
1544
+ return Be(i || {}, s || "");
1578
1545
  },
1579
- async commitSession(c, u) {
1580
- let { id: s, data: i } = c, l = u?.maxAge != null ? new Date(Date.now() + u.maxAge * 1e3) : u?.expires != null ? u.expires : o.expires;
1581
- return s ? await a(s, i, l) : s = await t(i, l), o.serialize(s, u);
1546
+ async commitSession(f, l) {
1547
+ let { id: s, data: i } = f, u = l?.maxAge != null ? new Date(Date.now() + l.maxAge * 1e3) : l?.expires != null ? l.expires : o.expires;
1548
+ return s ? await a(s, i, u) : s = await t(i, u), o.serialize(s, l);
1582
1549
  },
1583
- async destroySession(c, u) {
1584
- return await n(c.id), o.serialize("", {
1585
- ...u,
1550
+ async destroySession(f, l) {
1551
+ return await n(f.id), o.serialize("", {
1552
+ ...l,
1586
1553
  maxAge: void 0,
1587
1554
  expires: /* @__PURE__ */ new Date(0)
1588
1555
  });
1589
1556
  }
1590
1557
  };
1591
1558
  }
1592
- function je(e) {
1593
- Te(
1559
+ function Me(e) {
1560
+ _e(
1594
1561
  e.isSigned,
1595
1562
  `The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
1596
1563
  );
1597
1564
  }
1598
- function cr({ cookie: e } = {}) {
1599
- let t = Fe(e) ? e : Pe(e?.name || "__session", e);
1600
- return je(t), {
1565
+ function ur({ cookie: e } = {}) {
1566
+ let t = He(e) ? e : De(e?.name || "__session", e);
1567
+ return Me(t), {
1601
1568
  async getSession(r, a) {
1602
- return ze(
1569
+ return Be(
1603
1570
  r && await t.parse(r, a) || {}
1604
1571
  );
1605
1572
  },
@@ -1620,9 +1587,9 @@ function cr({ cookie: e } = {}) {
1620
1587
  }
1621
1588
  };
1622
1589
  }
1623
- function fr({ cookie: e } = {}) {
1590
+ function dr({ cookie: e } = {}) {
1624
1591
  let t = /* @__PURE__ */ new Map();
1625
- return Vt({
1592
+ return zt({
1626
1593
  cookie: e,
1627
1594
  async createData(r, a) {
1628
1595
  let n = Math.random().toString(36).substring(2, 10);
@@ -1645,13 +1612,13 @@ function fr({ cookie: e } = {}) {
1645
1612
  }
1646
1613
  });
1647
1614
  }
1648
- function hr(e, ...t) {
1649
- let r = t[0], a = Wt(e).replace(
1615
+ function cr(e, ...t) {
1616
+ let r = t[0], a = qt(e).replace(
1650
1617
  /\/:([\w-]+)(\?)?/g,
1651
1618
  // same regex as in .\router\utils.ts: compilePath().
1652
- (n, o, c) => {
1653
- const u = c === void 0, s = r?.[o];
1654
- if (u && s === void 0)
1619
+ (n, o, f) => {
1620
+ const l = f === void 0, s = r?.[o];
1621
+ if (l && s === void 0)
1655
1622
  throw new Error(
1656
1623
  `Path '${e}' requires param '${o}' but it was not provided`
1657
1624
  );
@@ -1664,51 +1631,51 @@ function hr(e, ...t) {
1664
1631
  }
1665
1632
  return a || "/";
1666
1633
  }
1667
- function Wt(e) {
1634
+ function qt(e) {
1668
1635
  let t = e.length - 1, r = e[t];
1669
1636
  if (r !== "*" && r !== "/") return e;
1670
1637
  for (t--; t >= 0 && e[t] === "/"; t--)
1671
1638
  ;
1672
1639
  return e.slice(0, t + 1);
1673
1640
  }
1674
- var ee = new TextEncoder(), Se = "</body></html>";
1675
- function ve(e) {
1641
+ var Z = new TextEncoder(), ge = "</body></html>";
1642
+ function Re(e) {
1676
1643
  let t = new TextDecoder(), r, a = new Promise(
1677
1644
  (s) => r = s
1678
- ), n = !1, o = [], c = null;
1679
- function u(s) {
1645
+ ), n = !1, o = [], f = null;
1646
+ function l(s) {
1680
1647
  for (let i of o) {
1681
- let l = t.decode(i, { stream: !0 });
1682
- l.endsWith(Se) && (l = l.slice(0, -Se.length)), s.enqueue(ee.encode(l));
1648
+ let u = t.decode(i, { stream: !0 });
1649
+ u.endsWith(ge) && (u = u.slice(0, -ge.length)), s.enqueue(Z.encode(u));
1683
1650
  }
1684
- o.length = 0, c = null;
1651
+ o.length = 0, f = null;
1685
1652
  }
1686
1653
  return new TransformStream({
1687
1654
  transform(s, i) {
1688
- o.push(s), !c && (c = setTimeout(async () => {
1689
- u(i), n || (n = !0, Xt(e, i).catch((l) => i.error(l)).then(r));
1655
+ o.push(s), !f && (f = setTimeout(async () => {
1656
+ l(i), n || (n = !0, Vt(e, i).catch((u) => i.error(u)).then(r));
1690
1657
  }, 0));
1691
1658
  },
1692
1659
  async flush(s) {
1693
- await a, c && (clearTimeout(c), u(s)), s.enqueue(ee.encode("</body></html>"));
1660
+ await a, f && (clearTimeout(f), l(s)), s.enqueue(Z.encode("</body></html>"));
1694
1661
  }
1695
1662
  });
1696
1663
  }
1697
- async function Xt(e, t) {
1664
+ async function Vt(e, t) {
1698
1665
  let r = new TextDecoder("utf-8", { fatal: !0 });
1699
1666
  const a = e.getReader();
1700
1667
  try {
1701
1668
  let o;
1702
1669
  for (; (o = await a.read()) && !o.done; ) {
1703
- const c = o.value;
1670
+ const f = o.value;
1704
1671
  try {
1705
- Q(
1706
- JSON.stringify(r.decode(c, { stream: !0 })),
1672
+ J(
1673
+ JSON.stringify(r.decode(f, { stream: !0 })),
1707
1674
  t
1708
1675
  );
1709
1676
  } catch {
1710
- let s = JSON.stringify(btoa(String.fromCodePoint(...c)));
1711
- Q(
1677
+ let s = JSON.stringify(btoa(String.fromCodePoint(...f)));
1678
+ J(
1712
1679
  `Uint8Array.from(atob(${s}), m => m.codePointAt(0))`,
1713
1680
  t
1714
1681
  );
@@ -1718,21 +1685,21 @@ async function Xt(e, t) {
1718
1685
  a.releaseLock();
1719
1686
  }
1720
1687
  let n = r.decode();
1721
- n.length && Q(JSON.stringify(n), t);
1688
+ n.length && J(JSON.stringify(n), t);
1722
1689
  }
1723
- function Q(e, t) {
1690
+ function J(e, t) {
1724
1691
  t.enqueue(
1725
- ee.encode(
1726
- `<script>${Jt(
1692
+ Z.encode(
1693
+ `<script>${Wt(
1727
1694
  `(self.__FLIGHT_DATA||=[]).push(${e})`
1728
1695
  )}<\/script>`
1729
1696
  )
1730
1697
  );
1731
1698
  }
1732
- function Jt(e) {
1699
+ function Wt(e) {
1733
1700
  return e.replace(/<!--/g, "<\\!--").replace(/<\/(script)/gi, "</\\$1");
1734
1701
  }
1735
- var Qt = class extends A.Component {
1702
+ var Xt = class extends A.Component {
1736
1703
  constructor(e) {
1737
1704
  super(e), this.state = { error: null, location: e.location };
1738
1705
  }
@@ -1744,7 +1711,7 @@ var Qt = class extends A.Component {
1744
1711
  }
1745
1712
  render() {
1746
1713
  return this.state.error ? /* @__PURE__ */ A.createElement(
1747
- qe,
1714
+ $e,
1748
1715
  {
1749
1716
  error: this.state.error,
1750
1717
  renderAppShell: !0
@@ -1752,7 +1719,7 @@ var Qt = class extends A.Component {
1752
1719
  ) : this.props.children;
1753
1720
  }
1754
1721
  };
1755
- function Ee({
1722
+ function Se({
1756
1723
  renderAppShell: e,
1757
1724
  title: t,
1758
1725
  children: r
@@ -1765,7 +1732,7 @@ function Ee({
1765
1732
  }
1766
1733
  ), /* @__PURE__ */ A.createElement("title", null, t)), /* @__PURE__ */ A.createElement("body", null, /* @__PURE__ */ A.createElement("main", { style: { fontFamily: "system-ui, sans-serif", padding: "2rem" } }, r))) : r;
1767
1734
  }
1768
- function qe({
1735
+ function $e({
1769
1736
  error: e,
1770
1737
  renderAppShell: t
1771
1738
  }) {
@@ -1782,9 +1749,9 @@ function qe({
1782
1749
  }
1783
1750
  }
1784
1751
  );
1785
- if (F(e))
1752
+ if (P(e))
1786
1753
  return /* @__PURE__ */ A.createElement(
1787
- Ee,
1754
+ Se,
1788
1755
  {
1789
1756
  renderAppShell: t,
1790
1757
  title: "Unhandled Thrown Response!"
@@ -1799,7 +1766,7 @@ function qe({
1799
1766
  let n = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
1800
1767
  a = new Error(n);
1801
1768
  }
1802
- return /* @__PURE__ */ A.createElement(Ee, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ A.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ A.createElement(
1769
+ return /* @__PURE__ */ A.createElement(Se, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ A.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ A.createElement(
1803
1770
  "pre",
1804
1771
  {
1805
1772
  style: {
@@ -1812,42 +1779,42 @@ function qe({
1812
1779
  a.stack
1813
1780
  ), r);
1814
1781
  }
1815
- function pr({
1782
+ function fr({
1816
1783
  hasRootLayout: e
1817
1784
  }) {
1818
- let t = Qe();
1785
+ let t = Xe();
1819
1786
  if (e === void 0)
1820
1787
  throw new Error("Missing 'hasRootLayout' prop");
1821
1788
  return /* @__PURE__ */ A.createElement(
1822
- qe,
1789
+ $e,
1823
1790
  {
1824
1791
  renderAppShell: !e,
1825
1792
  error: t
1826
1793
  }
1827
1794
  );
1828
1795
  }
1829
- function Kt(e) {
1796
+ function Jt(e) {
1830
1797
  const t = {};
1831
1798
  for (const r of e.matches)
1832
- Gt(t, r);
1799
+ Kt(t, r);
1833
1800
  return t;
1834
1801
  }
1835
- function Gt(e, t) {
1802
+ function Kt(e, t) {
1836
1803
  t = Array.isArray(t) ? t : [t];
1837
1804
  for (const r of t)
1838
1805
  e[r.id] = {
1839
1806
  links: r.links,
1840
1807
  meta: r.meta,
1841
- default: Yt
1808
+ default: Qt
1842
1809
  };
1843
1810
  }
1844
- var Yt = () => null, Ce = "/__manifest", Zt = "use", be = k[Zt];
1845
- function er(e) {
1846
- if (be)
1847
- return be(e);
1811
+ var Qt = () => null, Gt = "use", ve = k[Gt];
1812
+ function Yt(e) {
1813
+ if (ve)
1814
+ return ve(e);
1848
1815
  throw new Error("React Router v7 requires React 19+ for RSC features.");
1849
1816
  }
1850
- async function mr({
1817
+ async function hr({
1851
1818
  request: e,
1852
1819
  serverResponse: t,
1853
1820
  createFromReadableStream: r,
@@ -1855,23 +1822,23 @@ async function mr({
1855
1822
  hydrate: n = !0
1856
1823
  }) {
1857
1824
  const o = new URL(e.url);
1858
- if (tr(o) || rr(o) || e.headers.has("rsc-action-id") || t.headers.get("React-Router-Resource") === "true")
1825
+ if (Zt(o) || er(o) || e.headers.has("rsc-action-id") || t.headers.get("React-Router-Resource") === "true")
1859
1826
  return t;
1860
1827
  if (!t.body)
1861
1828
  throw new Error("Missing body in server response");
1862
1829
  const s = t.clone();
1863
1830
  let i = null;
1864
1831
  n && (i = t.clone());
1865
- const l = t.body;
1832
+ const u = t.body;
1866
1833
  let h, p = [];
1867
1834
  const w = () => h ? new ReadableStream({
1868
1835
  start(m) {
1869
1836
  h.forEach((d) => m.enqueue(d)), p.push(m);
1870
1837
  }
1871
- }) : (h = [], l.pipeThrough(
1838
+ }) : (h = [], u.pipeThrough(
1872
1839
  new TransformStream({
1873
1840
  transform(m, d) {
1874
- h.push(m), d.enqueue(m), p.forEach((S) => S.enqueue(m));
1841
+ h.push(m), d.enqueue(m), p.forEach((R) => R.enqueue(m));
1875
1842
  },
1876
1843
  flush() {
1877
1844
  p.forEach((m) => m.close()), p = [];
@@ -1879,7 +1846,7 @@ async function mr({
1879
1846
  })
1880
1847
  ));
1881
1848
  let y = null;
1882
- const R = () => {
1849
+ const g = () => {
1883
1850
  const m = Promise.resolve(
1884
1851
  r(w())
1885
1852
  );
@@ -1901,165 +1868,165 @@ async function mr({
1901
1868
  }
1902
1869
  });
1903
1870
  };
1904
- let f, g;
1871
+ let c, v;
1905
1872
  try {
1906
1873
  if (!s.body)
1907
1874
  throw new Error("Failed to clone server response");
1908
1875
  const m = await r(
1909
1876
  s.body
1910
1877
  );
1911
- if (t.status === Ae && m.type === "redirect") {
1912
- const _ = new Headers(t.headers);
1913
- return _.delete("Content-Encoding"), _.delete("Content-Length"), _.delete("Content-Type"), _.delete("X-Remix-Response"), _.set("Location", m.location), new Response(i?.body || "", {
1914
- headers: _,
1878
+ if (t.status === xe && m.type === "redirect") {
1879
+ const x = new Headers(t.headers);
1880
+ return x.delete("Content-Encoding"), x.delete("Content-Length"), x.delete("Content-Type"), x.delete("X-Remix-Response"), x.set("Location", m.location), new Response(i?.body || "", {
1881
+ headers: x,
1915
1882
  status: m.status,
1916
1883
  statusText: t.statusText
1917
1884
  });
1918
1885
  }
1919
- let d = new Headers(), S = t.status, C = t.statusText, b = await a(R, {
1920
- onError(_) {
1921
- if (typeof _ == "object" && _ && "digest" in _ && typeof _.digest == "string") {
1922
- if (f = ie(_.digest), f)
1923
- return _.digest;
1924
- let E = le(_.digest);
1925
- if (E)
1926
- return g = E, S = E.status, C = E.statusText, _.digest;
1886
+ let d = new Headers(), R = t.status, S = t.statusText, b = await a(g, {
1887
+ onError(x) {
1888
+ if (typeof x == "object" && x && "digest" in x && typeof x.digest == "string") {
1889
+ if (c = se(x.digest), c)
1890
+ return x.digest;
1891
+ let C = oe(x.digest);
1892
+ if (C)
1893
+ return v = C, R = C.status, S = C.statusText, x.digest;
1927
1894
  }
1928
1895
  },
1929
- onHeaders(_) {
1930
- for (const [E, T] of _)
1931
- d.append(E, T);
1896
+ onHeaders(x) {
1897
+ for (const [C, D] of x)
1898
+ d.append(C, D);
1932
1899
  }
1933
1900
  });
1934
- const v = new Headers(d);
1935
- for (const [_, E] of t.headers)
1936
- v.append(_, E);
1937
- if (v.set("Content-Type", "text/html; charset=utf-8"), f)
1938
- return v.set("Location", f.location), new Response(b, {
1939
- status: f.status,
1940
- headers: v
1901
+ const E = new Headers(d);
1902
+ for (const [x, C] of t.headers)
1903
+ E.append(x, C);
1904
+ if (E.set("Content-Type", "text/html; charset=utf-8"), c)
1905
+ return E.set("Location", c.location), new Response(b, {
1906
+ status: c.status,
1907
+ headers: E
1941
1908
  });
1942
- const x = new TransformStream({
1943
- flush(_) {
1944
- f && _.enqueue(
1909
+ const _ = new TransformStream({
1910
+ flush(x) {
1911
+ c && x.enqueue(
1945
1912
  new TextEncoder().encode(
1946
- `<meta http-equiv="refresh" content="0;url=${G(f.location)}"/>`
1913
+ `<meta http-equiv="refresh" content="0;url=${Q(c.location)}"/>`
1947
1914
  )
1948
1915
  );
1949
1916
  }
1950
1917
  });
1951
1918
  if (!n)
1952
- return new Response(b.pipeThrough(x), {
1953
- status: S,
1954
- statusText: C,
1955
- headers: v
1919
+ return new Response(b.pipeThrough(_), {
1920
+ status: R,
1921
+ statusText: S,
1922
+ headers: E
1956
1923
  });
1957
1924
  if (!i?.body)
1958
1925
  throw new Error("Failed to clone server response");
1959
- const P = b.pipeThrough(ve(i.body)).pipeThrough(x);
1960
- return new Response(P, {
1961
- status: S,
1962
- statusText: C,
1963
- headers: v
1926
+ const F = b.pipeThrough(Re(i.body)).pipeThrough(_);
1927
+ return new Response(F, {
1928
+ status: R,
1929
+ statusText: S,
1930
+ headers: E
1964
1931
  });
1965
1932
  } catch (m) {
1966
1933
  if (m instanceof Response)
1967
1934
  return m;
1968
- if (f)
1969
- return new Response(`Redirect: ${f.location}`, {
1970
- status: f.status,
1935
+ if (c)
1936
+ return new Response(`Redirect: ${c.location}`, {
1937
+ status: c.status,
1971
1938
  headers: {
1972
- Location: f.location
1939
+ Location: c.location
1973
1940
  }
1974
1941
  });
1975
1942
  try {
1976
- m = g ?? m;
1977
- let [d, S] = F(m) ? [m.status, m.statusText] : [500, ""], C, b = new Headers();
1978
- const v = await a(
1943
+ m = v ?? m;
1944
+ let [d, R] = P(m) ? [m.status, m.statusText] : [500, ""], S, b = new Headers();
1945
+ const E = await a(
1979
1946
  () => {
1980
- const T = Promise.resolve(
1947
+ const D = Promise.resolve(
1981
1948
  r(w())
1982
1949
  ).then(
1983
- (D) => Object.assign(D, {
1950
+ (H) => Object.assign(H, {
1984
1951
  status: d,
1985
1952
  errors: y ? {
1986
1953
  [y]: m
1987
1954
  } : {}
1988
1955
  })
1989
1956
  );
1990
- return Object.defineProperties(T, {
1957
+ return Object.defineProperties(D, {
1991
1958
  _deepestRenderedBoundaryId: {
1992
1959
  get() {
1993
1960
  return y;
1994
1961
  },
1995
- set(D) {
1996
- y = D;
1962
+ set(H) {
1963
+ y = H;
1997
1964
  }
1998
1965
  },
1999
1966
  formState: {
2000
1967
  get() {
2001
- return T.then(
2002
- (D) => D.type === "render" ? D.formState : void 0
1968
+ return D.then(
1969
+ (H) => H.type === "render" ? H.formState : void 0
2003
1970
  );
2004
1971
  }
2005
1972
  }
2006
1973
  });
2007
1974
  },
2008
1975
  {
2009
- onError(E) {
2010
- if (typeof E == "object" && E && "digest" in E && typeof E.digest == "string") {
2011
- if (C = ie(E.digest), C)
2012
- return E.digest;
2013
- let T = le(
2014
- E.digest
1976
+ onError(C) {
1977
+ if (typeof C == "object" && C && "digest" in C && typeof C.digest == "string") {
1978
+ if (S = se(C.digest), S)
1979
+ return C.digest;
1980
+ let D = oe(
1981
+ C.digest
2015
1982
  );
2016
- if (T)
2017
- return d = T.status, S = T.statusText, E.digest;
1983
+ if (D)
1984
+ return d = D.status, R = D.statusText, C.digest;
2018
1985
  }
2019
1986
  },
2020
- onHeaders(E) {
2021
- for (const [T, D] of E)
2022
- b.append(T, D);
1987
+ onHeaders(C) {
1988
+ for (const [D, H] of C)
1989
+ b.append(D, H);
2023
1990
  }
2024
1991
  }
2025
- ), x = new Headers(b);
2026
- for (const [E, T] of t.headers)
2027
- x.append(E, T);
2028
- if (x.set("Content-Type", "text/html; charset=utf-8"), C)
2029
- return x.set("Location", C.location), new Response(v, {
2030
- status: C.status,
2031
- headers: x
1992
+ ), _ = new Headers(b);
1993
+ for (const [C, D] of t.headers)
1994
+ _.append(C, D);
1995
+ if (_.set("Content-Type", "text/html; charset=utf-8"), S)
1996
+ return _.set("Location", S.location), new Response(E, {
1997
+ status: S.status,
1998
+ headers: _
2032
1999
  });
2033
- const P = new TransformStream({
2034
- flush(E) {
2035
- C && E.enqueue(
2000
+ const F = new TransformStream({
2001
+ flush(C) {
2002
+ S && C.enqueue(
2036
2003
  new TextEncoder().encode(
2037
- `<meta http-equiv="refresh" content="0;url=${G(C.location)}"/>`
2004
+ `<meta http-equiv="refresh" content="0;url=${Q(S.location)}"/>`
2038
2005
  )
2039
2006
  );
2040
2007
  }
2041
2008
  });
2042
2009
  if (!n)
2043
- return new Response(v.pipeThrough(P), {
2010
+ return new Response(E.pipeThrough(F), {
2044
2011
  status: d,
2045
- statusText: S,
2046
- headers: x
2012
+ statusText: R,
2013
+ headers: _
2047
2014
  });
2048
2015
  if (!i?.body)
2049
2016
  throw new Error("Failed to clone server response");
2050
- const _ = v.pipeThrough(ve(i.body)).pipeThrough(P);
2051
- return new Response(_, {
2017
+ const x = E.pipeThrough(Re(i.body)).pipeThrough(F);
2018
+ return new Response(x, {
2052
2019
  status: d,
2053
- statusText: S,
2054
- headers: x
2020
+ statusText: R,
2021
+ headers: _
2055
2022
  });
2056
2023
  } catch {
2057
2024
  }
2058
2025
  throw m;
2059
2026
  }
2060
2027
  }
2061
- function yr({ getPayload: e }) {
2062
- const t = e(), r = er(t);
2028
+ function pr({ getPayload: e }) {
2029
+ const t = e(), r = Yt(t);
2063
2030
  if (r.type === "redirect")
2064
2031
  throw new Response(null, {
2065
2032
  status: r.status,
@@ -2069,19 +2036,19 @@ function yr({ getPayload: e }) {
2069
2036
  });
2070
2037
  if (r.type !== "render") return null;
2071
2038
  let a = { ...r.loaderData };
2072
- for (const u of r.matches)
2073
- te(
2074
- u.id,
2075
- u.clientLoader,
2076
- u.hasLoader,
2039
+ for (const l of r.matches)
2040
+ ee(
2041
+ l.id,
2042
+ l.clientLoader,
2043
+ l.hasLoader,
2077
2044
  !1
2078
- ) && (u.hydrateFallbackElement || !u.hasLoader) && delete a[u.id];
2045
+ ) && (l.hydrateFallbackElement || !l.hasLoader) && delete a[l.id];
2079
2046
  const n = {
2080
2047
  get _deepestRenderedBoundaryId() {
2081
2048
  return t._deepestRenderedBoundaryId ?? null;
2082
2049
  },
2083
- set _deepestRenderedBoundaryId(u) {
2084
- t._deepestRenderedBoundaryId = u;
2050
+ set _deepestRenderedBoundaryId(l) {
2051
+ t._deepestRenderedBoundaryId = l;
2085
2052
  },
2086
2053
  actionData: r.actionData,
2087
2054
  actionHeaders: {},
@@ -2091,23 +2058,23 @@ function yr({ getPayload: e }) {
2091
2058
  loaderHeaders: {},
2092
2059
  location: r.location,
2093
2060
  statusCode: 200,
2094
- matches: r.matches.map((u) => ({
2095
- params: u.params,
2096
- pathname: u.pathname,
2097
- pathnameBase: u.pathnameBase,
2061
+ matches: r.matches.map((l) => ({
2062
+ params: l.params,
2063
+ pathname: l.pathname,
2064
+ pathnameBase: l.pathnameBase,
2098
2065
  route: {
2099
- id: u.id,
2100
- action: u.hasAction || !!u.clientAction,
2101
- handle: u.handle,
2102
- hasErrorBoundary: u.hasErrorBoundary,
2103
- loader: u.hasLoader || !!u.clientLoader,
2104
- index: u.index,
2105
- path: u.path,
2106
- shouldRevalidate: u.shouldRevalidate
2066
+ id: l.id,
2067
+ action: l.hasAction || !!l.clientAction,
2068
+ handle: l.handle,
2069
+ hasErrorBoundary: l.hasErrorBoundary,
2070
+ loader: l.hasLoader || !!l.clientLoader,
2071
+ index: l.index,
2072
+ path: l.path,
2073
+ shouldRevalidate: l.shouldRevalidate
2107
2074
  }
2108
2075
  }))
2109
- }, o = _e(
2110
- r.matches.reduceRight((u, s) => {
2076
+ }, o = Ee(
2077
+ r.matches.reduceRight((l, s) => {
2111
2078
  const i = {
2112
2079
  id: s.id,
2113
2080
  action: s.hasAction || !!s.clientAction,
@@ -2121,18 +2088,16 @@ function yr({ getPayload: e }) {
2121
2088
  path: s.path,
2122
2089
  shouldRevalidate: s.shouldRevalidate
2123
2090
  };
2124
- return u.length > 0 && (i.children = u), [i];
2091
+ return l.length > 0 && (i.children = l), [i];
2125
2092
  }, []),
2126
2093
  n
2127
- ), c = {
2094
+ ), f = {
2128
2095
  future: {
2129
2096
  // These flags have no runtime impact so can always be false. If we add
2130
2097
  // flags that drive runtime behavior they'll need to be proxied through.
2131
2098
  v8_middleware: !1,
2132
2099
  unstable_subResourceIntegrity: !1,
2133
- unstable_trailingSlashAwareDataRequests: !0,
2134
- // always on for RSC
2135
- unstable_passThroughRequests: !0
2100
+ unstable_trailingSlashAwareDataRequests: !0
2136
2101
  // always on for RSC
2137
2102
  },
2138
2103
  isSpaMode: !1,
@@ -2147,14 +2112,11 @@ function yr({ getPayload: e }) {
2147
2112
  imports: []
2148
2113
  }
2149
2114
  },
2150
- routeDiscovery: r.routeDiscovery.mode === "initial" ? { mode: "initial", manifestPath: Ce } : {
2151
- mode: "lazy",
2152
- manifestPath: r.routeDiscovery.manifestPath || Ce
2153
- },
2154
- routeModules: Kt(r)
2115
+ routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2116
+ routeModules: Jt(r)
2155
2117
  };
2156
- return /* @__PURE__ */ k.createElement(Ze.Provider, { value: !0 }, /* @__PURE__ */ k.createElement(Qt, { location: r.location }, /* @__PURE__ */ k.createElement(re.Provider, { value: c }, /* @__PURE__ */ k.createElement(
2157
- xe,
2118
+ return /* @__PURE__ */ k.createElement(Ge.Provider, { value: !0 }, /* @__PURE__ */ k.createElement(Xt, { location: r.location }, /* @__PURE__ */ k.createElement(te.Provider, { value: f }, /* @__PURE__ */ k.createElement(
2119
+ Ce,
2158
2120
  {
2159
2121
  context: n,
2160
2122
  router: o,
@@ -2163,13 +2125,13 @@ function yr({ getPayload: e }) {
2163
2125
  }
2164
2126
  ))));
2165
2127
  }
2166
- function tr(e) {
2128
+ function Zt(e) {
2167
2129
  return e.pathname.endsWith(".rsc");
2168
2130
  }
2169
- function rr(e) {
2131
+ function er(e) {
2170
2132
  return e.pathname.endsWith(".manifest");
2171
2133
  }
2172
- function wr(e) {
2134
+ function mr(e) {
2173
2135
  if (!e) return null;
2174
2136
  let t = Object.entries(e), r = {};
2175
2137
  for (let [a, n] of t)
@@ -2185,8 +2147,8 @@ function wr(e) {
2185
2147
  let o = window[n.__subType];
2186
2148
  if (typeof o == "function")
2187
2149
  try {
2188
- let c = new o(n.message);
2189
- c.stack = n.stack, r[a] = c;
2150
+ let f = new o(n.message);
2151
+ f.stack = n.stack, r[a] = f;
2190
2152
  } catch {
2191
2153
  }
2192
2154
  }
@@ -2198,7 +2160,7 @@ function wr(e) {
2198
2160
  r[a] = n;
2199
2161
  return r;
2200
2162
  }
2201
- function gr({
2163
+ function yr({
2202
2164
  state: e,
2203
2165
  routes: t,
2204
2166
  getRouteInfo: r,
@@ -2206,163 +2168,157 @@ function gr({
2206
2168
  basename: n,
2207
2169
  isSpaMode: o
2208
2170
  }) {
2209
- let c = {
2171
+ let f = {
2210
2172
  ...e,
2211
2173
  loaderData: { ...e.loaderData }
2212
- }, u = ke(t, a, n);
2213
- if (u)
2214
- for (let s of u) {
2215
- let i = s.route.id, l = r(i);
2216
- te(
2174
+ }, l = be(t, a, n);
2175
+ if (l)
2176
+ for (let s of l) {
2177
+ let i = s.route.id, u = r(i);
2178
+ ee(
2217
2179
  i,
2218
- l.clientLoader,
2219
- l.hasLoader,
2180
+ u.clientLoader,
2181
+ u.hasLoader,
2220
2182
  o
2221
- ) && (l.hasHydrateFallback || !l.hasLoader) ? delete c.loaderData[i] : l.hasLoader || (c.loaderData[i] = null);
2183
+ ) && (u.hasHydrateFallback || !u.hasLoader) ? delete f.loaderData[i] : u.hasLoader || (f.loaderData[i] = null);
2222
2184
  }
2223
- return c;
2224
- }
2225
- const Rr = () => {
2226
- const e = oe((a) => a.navigateTo), t = oe((a) => a.navigateInHortiview);
2227
- return Ve(
2228
- (a) => {
2229
- if (t) {
2230
- t(a);
2231
- return;
2232
- }
2233
- e?.(a);
2234
- },
2235
- [t, e]
2185
+ return f;
2186
+ }
2187
+ const wr = () => {
2188
+ const e = ze((r) => r.navigateInHortiview);
2189
+ return je(
2190
+ (r) => e?.(r),
2191
+ [e]
2236
2192
  );
2237
2193
  };
2238
2194
  export {
2239
- Er as Await,
2240
- Cr as BrowserRouter,
2241
- br as Form,
2242
- _r as HashRouter,
2243
- xr as IDLE_BLOCKER,
2244
- kr as IDLE_FETCHER,
2245
- Ar as IDLE_NAVIGATION,
2246
- Tr as Link,
2247
- Dr as Links,
2248
- Hr as MemoryRouter,
2249
- Pr as Meta,
2250
- Fr as NavLink,
2251
- Ur as Navigate,
2252
- Lr as NavigationType,
2253
- st as Outlet,
2254
- Nr as PrefetchPageLinks,
2255
- Or as Route,
2256
- Ir as Router,
2195
+ Sr as Await,
2196
+ vr as BrowserRouter,
2197
+ Er as Form,
2198
+ Cr as HashRouter,
2199
+ br as IDLE_BLOCKER,
2200
+ xr as IDLE_FETCHER,
2201
+ _r as IDLE_NAVIGATION,
2202
+ kr as Link,
2203
+ Ar as Links,
2204
+ Dr as MemoryRouter,
2205
+ Hr as Meta,
2206
+ Tr as NavLink,
2207
+ Fr as Navigate,
2208
+ Pr as NavigationType,
2209
+ at as Outlet,
2210
+ Ur as PrefetchPageLinks,
2211
+ Nr as Route,
2212
+ Lr as Router,
2257
2213
  K as RouterContextProvider,
2258
- Ye as RouterProvider,
2259
- Br as Routes,
2260
- Mr as Scripts,
2261
- $r as ScrollRestoration,
2262
- or as ServerRouter,
2263
- zr as StaticRouter,
2264
- xe as StaticRouterProvider,
2265
- jr as UNSAFE_AwaitContextProvider,
2266
- qr as UNSAFE_DataRouterContext,
2267
- Vr as UNSAFE_DataRouterStateContext,
2214
+ Qe as RouterProvider,
2215
+ Or as Routes,
2216
+ Ir as Scripts,
2217
+ Br as ScrollRestoration,
2218
+ nr as ServerRouter,
2219
+ Mr as StaticRouter,
2220
+ Ce as StaticRouterProvider,
2221
+ $r as UNSAFE_AwaitContextProvider,
2222
+ jr as UNSAFE_DataRouterContext,
2223
+ zr as UNSAFE_DataRouterStateContext,
2268
2224
  O as UNSAFE_ErrorResponseImpl,
2269
- Wr as UNSAFE_FetchersContext,
2270
- re as UNSAFE_FrameworkContext,
2271
- Xr as UNSAFE_LocationContext,
2272
- Jr as UNSAFE_NavigationContext,
2273
- pr as UNSAFE_RSCDefaultRootErrorBoundary,
2274
- Xe as UNSAFE_RemixErrorBoundary,
2275
- Qr as UNSAFE_RouteContext,
2276
- At as UNSAFE_ServerMode,
2225
+ qr as UNSAFE_FetchersContext,
2226
+ te as UNSAFE_FrameworkContext,
2227
+ Vr as UNSAFE_LocationContext,
2228
+ Wr as UNSAFE_NavigationContext,
2229
+ fr as UNSAFE_RSCDefaultRootErrorBoundary,
2230
+ Ve as UNSAFE_RemixErrorBoundary,
2231
+ Xr as UNSAFE_RouteContext,
2232
+ _t as UNSAFE_ServerMode,
2277
2233
  I as UNSAFE_SingleFetchRedirectSymbol,
2278
- Kr as UNSAFE_ViewTransitionContext,
2279
- Gr as UNSAFE_WithComponentProps,
2280
- Yr as UNSAFE_WithErrorBoundaryProps,
2281
- Zr as UNSAFE_WithHydrateFallbackProps,
2282
- ea as UNSAFE_createBrowserHistory,
2283
- ta as UNSAFE_createClientRoutes,
2284
- ra as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
2285
- aa as UNSAFE_createHashHistory,
2286
- na as UNSAFE_createMemoryHistory,
2287
- sa as UNSAFE_createRouter,
2288
- ot as UNSAFE_decodeViaTurboStream,
2289
- wr as UNSAFE_deserializeErrors,
2290
- gr as UNSAFE_getHydrationData,
2291
- oa as UNSAFE_getPatchRoutesOnNavigationFunction,
2292
- ia as UNSAFE_getTurboStreamSingleFetchDataStrategy,
2293
- la as UNSAFE_hydrationRouteProperties,
2294
- ua as UNSAFE_invariant,
2295
- da as UNSAFE_mapRouteProperties,
2296
- te as UNSAFE_shouldHydrateRouteLoader,
2297
- ca as UNSAFE_useFogOFWarDiscovery,
2298
- fa as UNSAFE_useScrollRestoration,
2299
- nt as UNSAFE_withComponentProps,
2300
- rt as UNSAFE_withErrorBoundaryProps,
2301
- at as UNSAFE_withHydrateFallbackProps,
2302
- ha as createBrowserRouter,
2303
- pa as createContext,
2304
- Pe as createCookie,
2305
- cr as createCookieSessionStorage,
2306
- ma as createHashRouter,
2307
- Ge as createMemoryRouter,
2308
- fr as createMemorySessionStorage,
2309
- ya as createPath,
2310
- ur as createRequestHandler,
2311
- wa as createRoutesFromChildren,
2312
- ga as createRoutesFromElements,
2313
- ir as createRoutesStub,
2314
- Ra as createSearchParams,
2315
- ze as createSession,
2316
- Vt as createSessionStorage,
2317
- Sa as createStaticHandler,
2318
- _e as createStaticRouter,
2319
- va as data,
2320
- Ea as generatePath,
2321
- hr as href,
2322
- Fe as isCookie,
2323
- F as isRouteErrorResponse,
2324
- dr as isSession,
2325
- Ca as matchPath,
2326
- ke as matchRoutes,
2327
- ba as parsePath,
2328
- ut as redirect,
2329
- it as redirectDocument,
2330
- _a as renderMatches,
2331
- lt as replace,
2332
- xa as resolvePath,
2333
- ka as unstable_HistoryRouter,
2334
- yr as unstable_RSCStaticRouter,
2335
- mr as unstable_routeRSCServerRequest,
2336
- lr as unstable_setDevServerHooks,
2337
- Aa as unstable_usePrompt,
2338
- Ta as unstable_useRoute,
2339
- Da as useActionData,
2340
- Ha as useAsyncError,
2341
- Pa as useAsyncValue,
2342
- Fa as useBeforeUnload,
2343
- Ua as useBlocker,
2344
- La as useFetcher,
2345
- Na as useFetchers,
2346
- Oa as useFormAction,
2347
- Ia as useHref,
2348
- Ba as useInRouterContext,
2349
- Ma as useLinkClickHandler,
2350
- $a as useLoaderData,
2351
- za as useLocation,
2352
- ja as useMatch,
2353
- qa as useMatches,
2354
- Rr as useNavigate,
2355
- Va as useNavigation,
2356
- Wa as useNavigationType,
2357
- Xa as useOutlet,
2358
- Ja as useOutletContext,
2359
- Qa as useParams,
2360
- Ka as useResolvedPath,
2361
- Ga as useRevalidator,
2362
- Qe as useRouteError,
2363
- Ya as useRouteLoaderData,
2364
- Za as useRoutes,
2365
- en as useSearchParams,
2366
- tn as useSubmit,
2367
- rn as useViewTransitionState
2234
+ Jr as UNSAFE_ViewTransitionContext,
2235
+ Kr as UNSAFE_WithComponentProps,
2236
+ Qr as UNSAFE_WithErrorBoundaryProps,
2237
+ Gr as UNSAFE_WithHydrateFallbackProps,
2238
+ Yr as UNSAFE_createBrowserHistory,
2239
+ Zr as UNSAFE_createClientRoutes,
2240
+ ea as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
2241
+ ta as UNSAFE_createHashHistory,
2242
+ ra as UNSAFE_createMemoryHistory,
2243
+ aa as UNSAFE_createRouter,
2244
+ nt as UNSAFE_decodeViaTurboStream,
2245
+ mr as UNSAFE_deserializeErrors,
2246
+ yr as UNSAFE_getHydrationData,
2247
+ na as UNSAFE_getPatchRoutesOnNavigationFunction,
2248
+ sa as UNSAFE_getTurboStreamSingleFetchDataStrategy,
2249
+ oa as UNSAFE_hydrationRouteProperties,
2250
+ ia as UNSAFE_invariant,
2251
+ la as UNSAFE_mapRouteProperties,
2252
+ ee as UNSAFE_shouldHydrateRouteLoader,
2253
+ ua as UNSAFE_useFogOFWarDiscovery,
2254
+ da as UNSAFE_useScrollRestoration,
2255
+ rt as UNSAFE_withComponentProps,
2256
+ et as UNSAFE_withErrorBoundaryProps,
2257
+ tt as UNSAFE_withHydrateFallbackProps,
2258
+ ca as createBrowserRouter,
2259
+ fa as createContext,
2260
+ De as createCookie,
2261
+ ur as createCookieSessionStorage,
2262
+ ha as createHashRouter,
2263
+ Ke as createMemoryRouter,
2264
+ dr as createMemorySessionStorage,
2265
+ pa as createPath,
2266
+ ir as createRequestHandler,
2267
+ ma as createRoutesFromChildren,
2268
+ ya as createRoutesFromElements,
2269
+ sr as createRoutesStub,
2270
+ wa as createSearchParams,
2271
+ Be as createSession,
2272
+ zt as createSessionStorage,
2273
+ ga as createStaticHandler,
2274
+ Ee as createStaticRouter,
2275
+ Ra as data,
2276
+ Sa as generatePath,
2277
+ cr as href,
2278
+ He as isCookie,
2279
+ P as isRouteErrorResponse,
2280
+ lr as isSession,
2281
+ va as matchPath,
2282
+ be as matchRoutes,
2283
+ Ea as parsePath,
2284
+ it as redirect,
2285
+ st as redirectDocument,
2286
+ Ca as renderMatches,
2287
+ ot as replace,
2288
+ ba as resolvePath,
2289
+ xa as unstable_HistoryRouter,
2290
+ pr as unstable_RSCStaticRouter,
2291
+ hr as unstable_routeRSCServerRequest,
2292
+ or as unstable_setDevServerHooks,
2293
+ _a as unstable_usePrompt,
2294
+ ka as unstable_useRoute,
2295
+ Aa as useActionData,
2296
+ Da as useAsyncError,
2297
+ Ha as useAsyncValue,
2298
+ Ta as useBeforeUnload,
2299
+ Fa as useBlocker,
2300
+ Pa as useFetcher,
2301
+ Ua as useFetchers,
2302
+ Na as useFormAction,
2303
+ La as useHref,
2304
+ Oa as useInRouterContext,
2305
+ Ia as useLinkClickHandler,
2306
+ Ba as useLoaderData,
2307
+ Ma as useLocation,
2308
+ $a as useMatch,
2309
+ ja as useMatches,
2310
+ wr as useNavigate,
2311
+ za as useNavigation,
2312
+ qa as useNavigationType,
2313
+ Va as useOutlet,
2314
+ Wa as useOutletContext,
2315
+ Xa as useParams,
2316
+ Ja as useResolvedPath,
2317
+ Ka as useRevalidator,
2318
+ Xe as useRouteError,
2319
+ Qa as useRouteLoaderData,
2320
+ Ga as useRoutes,
2321
+ Ya as useSearchParams,
2322
+ Za as useSubmit,
2323
+ en as useViewTransitionState
2368
2324
  };