zudoku 0.12.2 → 0.13.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.
Files changed (197) hide show
  1. package/dist/app/main.js +3 -3
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/cli/dev/handler.js +2 -2
  4. package/dist/cli/dev/handler.js.map +1 -1
  5. package/dist/config/validators/validate.d.ts +42 -23
  6. package/dist/config/validators/validate.js +6 -2
  7. package/dist/config/validators/validate.js.map +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/dist/lib/components/Banner.js +7 -1
  10. package/dist/lib/components/Banner.js.map +1 -1
  11. package/dist/lib/components/Header.js +1 -1
  12. package/dist/lib/components/Header.js.map +1 -1
  13. package/dist/lib/components/Layout.js +1 -1
  14. package/dist/lib/components/Layout.js.map +1 -1
  15. package/dist/lib/components/MobileTopNavigation.js +2 -1
  16. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  17. package/dist/lib/components/Search.js +1 -1
  18. package/dist/lib/components/Search.js.map +1 -1
  19. package/dist/lib/components/SlotletProvider.d.ts +9 -2
  20. package/dist/lib/components/SlotletProvider.js +4 -2
  21. package/dist/lib/components/SlotletProvider.js.map +1 -1
  22. package/dist/lib/components/index.d.ts +2 -1
  23. package/dist/lib/components/index.js.map +1 -1
  24. package/dist/lib/core/DevPortalContext.d.ts +1 -1
  25. package/dist/lib/oas/graphql/index.js +2 -6
  26. package/dist/lib/oas/graphql/index.js.map +1 -1
  27. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  28. package/dist/lib/plugins/custom-pages/CustomPage.js +10 -0
  29. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  30. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  31. package/dist/lib/plugins/custom-pages/index.js +11 -0
  32. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  33. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  34. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  35. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  36. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  37. package/dist/lib/plugins/openapi/Route.d.ts +1 -1
  38. package/dist/lib/plugins/openapi/Route.js +1 -1
  39. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  40. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  41. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  42. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  43. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  44. package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
  45. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  46. package/dist/lib/plugins/openapi/index.js +1 -1
  47. package/dist/lib/plugins/openapi/index.js.map +1 -1
  48. package/dist/lib/ui/Callout.d.ts +36 -35
  49. package/dist/lib/ui/Callout.js.map +1 -1
  50. package/dist/lib/ui/Drawer.d.ts +8 -10
  51. package/dist/lib/ui/Drawer.js.map +1 -1
  52. package/dist/lib/util/useExposedProps.d.ts +2 -0
  53. package/dist/lib/util/useExposedProps.js +8 -0
  54. package/dist/lib/util/useExposedProps.js.map +1 -0
  55. package/dist/vite/config.js +2 -0
  56. package/dist/vite/config.js.map +1 -1
  57. package/dist/vite/dev-server.d.ts +6 -1
  58. package/dist/vite/dev-server.js +13 -3
  59. package/dist/vite/dev-server.js.map +1 -1
  60. package/dist/vite/plugin-component.js +0 -1
  61. package/dist/vite/plugin-component.js.map +1 -1
  62. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  63. package/dist/vite/plugin-custom-pages.js +30 -0
  64. package/dist/vite/plugin-custom-pages.js.map +1 -0
  65. package/dist/vite/plugin.js +2 -0
  66. package/dist/vite/plugin.js.map +1 -1
  67. package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
  68. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
  69. package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-CiXPc9Xm.js} +2 -2
  70. package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-CiXPc9Xm.js.map} +1 -1
  71. package/lib/ErrorPage-B-zoPPVx.js +15 -0
  72. package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B-zoPPVx.js.map} +1 -1
  73. package/lib/Input-QMLhK7Rb.js +2229 -0
  74. package/lib/Input-QMLhK7Rb.js.map +1 -0
  75. package/lib/{Markdown-DapSf3wG.js → Markdown-D6Nze6qq.js} +3281 -5392
  76. package/lib/Markdown-D6Nze6qq.js.map +1 -0
  77. package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-DBhq6-5F.js} +15 -15
  78. package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-DBhq6-5F.js.map} +1 -1
  79. package/lib/{OperationList-CYrmxPa8.js → OperationList-Ba24gUd2.js} +50 -51
  80. package/lib/OperationList-Ba24gUd2.js.map +1 -0
  81. package/lib/{Route-Q5mqNQrv.js → Route-DI38nxYt.js} +3 -4
  82. package/lib/Route-DI38nxYt.js.map +1 -0
  83. package/lib/SidebarBadge-B9-VJSQr.js +503 -0
  84. package/lib/SidebarBadge-B9-VJSQr.js.map +1 -0
  85. package/lib/{SlotletProvider-D3UD5Go3.js → SlotletProvider-Cb8mGpBO.js} +46 -46
  86. package/lib/{SlotletProvider-D3UD5Go3.js.map → SlotletProvider-Cb8mGpBO.js.map} +1 -1
  87. package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
  88. package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
  89. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  90. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  91. package/lib/assets/{worker-Bcj4NA2p.js → worker-Bf8vjASY.js} +4582 -4303
  92. package/lib/assets/worker-Bf8vjASY.js.map +1 -0
  93. package/lib/cn-BmFQLtkS.js +2279 -0
  94. package/lib/cn-BmFQLtkS.js.map +1 -0
  95. package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
  96. package/lib/index-BRCiYFaL.js.map +1 -0
  97. package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
  98. package/lib/index-CkwDvuPt.js.map +1 -0
  99. package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
  100. package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
  101. package/lib/{index-BlJ2rj99.js → index-DA74gNq3.js} +1124 -974
  102. package/lib/index-DA74gNq3.js.map +1 -0
  103. package/lib/index-DJqnphbT.js +35 -0
  104. package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
  105. package/lib/{index-BngPzhKn.js → index-dgcPryXi.js} +3 -3
  106. package/lib/{index-BngPzhKn.js.map → index-dgcPryXi.js.map} +1 -1
  107. package/lib/{index-Dolisrci.js → index-g_JJcuFg.js} +603 -549
  108. package/lib/index-g_JJcuFg.js.map +1 -0
  109. package/lib/router-Oe6YmY6B.js +3024 -0
  110. package/lib/router-Oe6YmY6B.js.map +1 -0
  111. package/lib/state-CsuHT8ZO.js +183 -0
  112. package/lib/state-CsuHT8ZO.js.map +1 -0
  113. package/lib/urql-core-KJnLL26g.js +1455 -0
  114. package/lib/urql-core-KJnLL26g.js.map +1 -0
  115. package/lib/useExposedProps-Csw8oAlt.js +9 -0
  116. package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
  117. package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
  118. package/lib/utils-Chi3p5nE.js.map +1 -0
  119. package/lib/zudoku.auth-auth0.js +1 -1
  120. package/lib/zudoku.auth-clerk.js +2 -2
  121. package/lib/zudoku.auth-openid.js +363 -350
  122. package/lib/zudoku.auth-openid.js.map +1 -1
  123. package/lib/zudoku.components.js +1697 -1623
  124. package/lib/zudoku.components.js.map +1 -1
  125. package/lib/zudoku.openapi-worker.js +4599 -4319
  126. package/lib/zudoku.openapi-worker.js.map +1 -1
  127. package/lib/zudoku.plugin-api-keys.js +7 -7
  128. package/lib/zudoku.plugin-custom-pages.js +21 -0
  129. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  130. package/lib/zudoku.plugin-markdown.js +1 -1
  131. package/lib/zudoku.plugin-openapi.js +8 -8
  132. package/lib/zudoku.plugin-redirect.js +1 -1
  133. package/package.json +61 -68
  134. package/src/app/main.tsx +3 -3
  135. package/src/lib/components/Banner.tsx +12 -2
  136. package/src/lib/components/Header.tsx +4 -2
  137. package/src/lib/components/Layout.tsx +1 -0
  138. package/src/lib/components/MobileTopNavigation.tsx +4 -0
  139. package/src/lib/components/Search.tsx +1 -1
  140. package/src/lib/components/SlotletProvider.tsx +27 -4
  141. package/src/lib/components/index.ts +1 -1
  142. package/src/lib/core/DevPortalContext.ts +1 -1
  143. package/src/lib/oas/graphql/index.ts +3 -11
  144. package/src/lib/plugins/custom-pages/CustomPage.tsx +15 -0
  145. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  146. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  147. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  148. package/src/lib/plugins/openapi/Route.tsx +1 -2
  149. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  150. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
  151. package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
  152. package/src/lib/plugins/openapi/index.tsx +1 -5
  153. package/src/lib/ui/Callout.tsx +7 -6
  154. package/src/lib/ui/Drawer.tsx +38 -36
  155. package/src/lib/util/useExposedProps.tsx +10 -0
  156. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  157. package/dist/lib/plugins/custom-page/index.js +0 -12
  158. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  159. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  160. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  161. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  162. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  163. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  164. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  165. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  166. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  167. package/lib/ErrorPage-CsZAN_za.js +0 -16
  168. package/lib/Input-CtVUl3eT.js +0 -2198
  169. package/lib/Input-CtVUl3eT.js.map +0 -1
  170. package/lib/Markdown-DapSf3wG.js.map +0 -1
  171. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  172. package/lib/Route-Q5mqNQrv.js.map +0 -1
  173. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  174. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  175. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  176. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  177. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  178. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  179. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  180. package/lib/assets/worker-Bcj4NA2p.js.map +0 -1
  181. package/lib/index-BG0g4WW0.js.map +0 -1
  182. package/lib/index-BlJ2rj99.js.map +0 -1
  183. package/lib/index-Bn6Lc9tq.js +0 -9
  184. package/lib/index-CLd8ycZz.js.map +0 -1
  185. package/lib/index-Dolisrci.js.map +0 -1
  186. package/lib/router-D2p7Olpn.js +0 -2971
  187. package/lib/router-D2p7Olpn.js.map +0 -1
  188. package/lib/state-hNe1dw4B.js +0 -548
  189. package/lib/state-hNe1dw4B.js.map +0 -1
  190. package/lib/urql-YhcsXYy8.js +0 -1591
  191. package/lib/urql-YhcsXYy8.js.map +0 -1
  192. package/lib/utils-ByIc_KIM.js.map +0 -1
  193. package/lib/zudoku.plugin-custom-page.js +0 -13
  194. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  195. package/src/lib/plugins/custom-page/index.tsx +0 -22
  196. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  197. package/src/lib/plugins/openapi/util/urql.ts +0 -8
@@ -1,8 +1,8 @@
1
- import * as r from "react";
2
- import * as At from "react-dom";
3
- import { i as m, j as G, g as Re, w, a as Ne, m as _e, A as de, p as fe, s as T, b as we, c as X, d as Mt, e as Bt, I as jt, f as qe, h as Se, k as Ce, l as Q, n as Ge, o as Xe, q as Qe, r as Ze, t as et, u as tt, v as nt, x as rt, E as ot, y as Ht } from "./router-D2p7Olpn.js";
1
+ import * as n from "react";
2
+ import * as Bt from "react-dom";
3
+ import { i as m, j as G, g as be, w as C, a as Re, m as we, A as de, p as fe, s as T, b as Ce, c as X, d as Mt, e as jt, I as Ht, f as qe, h as Se, k as _e, l as Q, n as Ge, o as Xe, q as Qe, r as Ze, t as et, u as tt, v as rt, x as nt, y as ot, E as at, z as Kt } from "./router-Oe6YmY6B.js";
4
4
  /**
5
- * React Router v6.25.1
5
+ * React Router v6.27.0
6
6
  *
7
7
  * Copyright (c) Remix Software Inc.
8
8
  *
@@ -14,34 +14,34 @@ import { i as m, j as G, g as Re, w, a as Ne, m as _e, A as de, p as fe, s as T,
14
14
  function I() {
15
15
  return I = Object.assign ? Object.assign.bind() : function(e) {
16
16
  for (var t = 1; t < arguments.length; t++) {
17
- var n = arguments[t];
18
- for (var o in n)
19
- Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
17
+ var r = arguments[t];
18
+ for (var o in r)
19
+ Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
20
20
  }
21
21
  return e;
22
22
  }, I.apply(this, arguments);
23
23
  }
24
- const U = /* @__PURE__ */ r.createContext(null);
24
+ const U = /* @__PURE__ */ n.createContext(null);
25
25
  process.env.NODE_ENV !== "production" && (U.displayName = "DataRouter");
26
- const M = /* @__PURE__ */ r.createContext(null);
27
- process.env.NODE_ENV !== "production" && (M.displayName = "DataRouterState");
28
- const Z = /* @__PURE__ */ r.createContext(null);
26
+ const B = /* @__PURE__ */ n.createContext(null);
27
+ process.env.NODE_ENV !== "production" && (B.displayName = "DataRouterState");
28
+ const Z = /* @__PURE__ */ n.createContext(null);
29
29
  process.env.NODE_ENV !== "production" && (Z.displayName = "Await");
30
- const S = /* @__PURE__ */ r.createContext(null);
30
+ const S = /* @__PURE__ */ n.createContext(null);
31
31
  process.env.NODE_ENV !== "production" && (S.displayName = "Navigation");
32
- const B = /* @__PURE__ */ r.createContext(null);
33
- process.env.NODE_ENV !== "production" && (B.displayName = "Location");
34
- const C = /* @__PURE__ */ r.createContext({
32
+ const M = /* @__PURE__ */ n.createContext(null);
33
+ process.env.NODE_ENV !== "production" && (M.displayName = "Location");
34
+ const _ = /* @__PURE__ */ n.createContext({
35
35
  outlet: null,
36
36
  matches: [],
37
37
  isDataRoute: !1
38
38
  });
39
- process.env.NODE_ENV !== "production" && (C.displayName = "Route");
40
- const xe = /* @__PURE__ */ r.createContext(null);
39
+ process.env.NODE_ENV !== "production" && (_.displayName = "Route");
40
+ const xe = /* @__PURE__ */ n.createContext(null);
41
41
  process.env.NODE_ENV !== "production" && (xe.displayName = "RouteError");
42
42
  function De(e, t) {
43
43
  let {
44
- relative: n
44
+ relative: r
45
45
  } = t === void 0 ? {} : t;
46
46
  V() || (process.env.NODE_ENV !== "production" ? m(
47
47
  !1,
@@ -52,21 +52,21 @@ function De(e, t) {
52
52
  let {
53
53
  basename: o,
54
54
  navigator: a
55
- } = r.useContext(S), {
56
- hash: s,
55
+ } = n.useContext(S), {
56
+ hash: l,
57
57
  pathname: i,
58
58
  search: u
59
59
  } = Y(e, {
60
- relative: n
61
- }), d = i;
62
- return o !== "/" && (d = i === "/" ? o : G([o, i])), a.createHref({
63
- pathname: d,
60
+ relative: r
61
+ }), f = i;
62
+ return o !== "/" && (f = i === "/" ? o : G([o, i])), a.createHref({
63
+ pathname: f,
64
64
  search: u,
65
- hash: s
65
+ hash: l
66
66
  });
67
67
  }
68
68
  function V() {
69
- return r.useContext(B) != null;
69
+ return n.useContext(M) != null;
70
70
  }
71
71
  function L() {
72
72
  return V() || (process.env.NODE_ENV !== "production" ? m(
@@ -74,12 +74,12 @@ function L() {
74
74
  // TODO: This error is probably because they somehow have 2 versions of the
75
75
  // router loaded. We can help them understand how to avoid that.
76
76
  "useLocation() may be used only in the context of a <Router> component."
77
- ) : m(!1)), r.useContext(B).location;
77
+ ) : m(!1)), n.useContext(M).location;
78
78
  }
79
- function at() {
80
- return r.useContext(B).navigationType;
79
+ function it() {
80
+ return n.useContext(M).navigationType;
81
81
  }
82
- function it(e) {
82
+ function lt(e) {
83
83
  V() || (process.env.NODE_ENV !== "production" ? m(
84
84
  !1,
85
85
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -89,78 +89,78 @@ function it(e) {
89
89
  let {
90
90
  pathname: t
91
91
  } = L();
92
- return r.useMemo(() => X(e, Mt(t)), [t, e]);
92
+ return n.useMemo(() => X(e, Mt(t)), [t, e]);
93
93
  }
94
94
  const st = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
95
- function lt(e) {
96
- r.useContext(S).static || r.useLayoutEffect(e);
95
+ function ut(e) {
96
+ n.useContext(S).static || n.useLayoutEffect(e);
97
97
  }
98
98
  function te() {
99
99
  let {
100
100
  isDataRoute: e
101
- } = r.useContext(C);
102
- return e ? Gt() : Kt();
101
+ } = n.useContext(_);
102
+ return e ? Xt() : zt();
103
103
  }
104
- function Kt() {
104
+ function zt() {
105
105
  V() || (process.env.NODE_ENV !== "production" ? m(
106
106
  !1,
107
107
  // TODO: This error is probably because they somehow have 2 versions of the
108
108
  // router loaded. We can help them understand how to avoid that.
109
109
  "useNavigate() may be used only in the context of a <Router> component."
110
110
  ) : m(!1));
111
- let e = r.useContext(U), {
111
+ let e = n.useContext(U), {
112
112
  basename: t,
113
- future: n,
113
+ future: r,
114
114
  navigator: o
115
- } = r.useContext(S), {
115
+ } = n.useContext(S), {
116
116
  matches: a
117
- } = r.useContext(C), {
118
- pathname: s
119
- } = L(), i = JSON.stringify(Re(a, n.v7_relativeSplatPath)), u = r.useRef(!1);
120
- return lt(() => {
117
+ } = n.useContext(_), {
118
+ pathname: l
119
+ } = L(), i = JSON.stringify(be(a, r.v7_relativeSplatPath)), u = n.useRef(!1);
120
+ return ut(() => {
121
121
  u.current = !0;
122
- }), r.useCallback(function(l, c) {
123
- if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && w(u.current, st), !u.current) return;
124
- if (typeof l == "number") {
125
- o.go(l);
122
+ }), n.useCallback(function(s, c) {
123
+ if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && C(u.current, st), !u.current) return;
124
+ if (typeof s == "number") {
125
+ o.go(s);
126
126
  return;
127
127
  }
128
- let f = Ne(l, JSON.parse(i), s, c.relative === "path");
129
- e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : G([t, f.pathname])), (c.replace ? o.replace : o.push)(f, c.state, c);
130
- }, [t, o, i, s, e]);
128
+ let d = Re(s, JSON.parse(i), l, c.relative === "path");
129
+ e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : G([t, d.pathname])), (c.replace ? o.replace : o.push)(d, c.state, c);
130
+ }, [t, o, i, l, e]);
131
131
  }
132
- const ut = /* @__PURE__ */ r.createContext(null);
133
- function ct() {
134
- return r.useContext(ut);
132
+ const ct = /* @__PURE__ */ n.createContext(null);
133
+ function dt() {
134
+ return n.useContext(ct);
135
135
  }
136
136
  function Oe(e) {
137
- let t = r.useContext(C).outlet;
138
- return t && /* @__PURE__ */ r.createElement(ut.Provider, {
137
+ let t = n.useContext(_).outlet;
138
+ return t && /* @__PURE__ */ n.createElement(ct.Provider, {
139
139
  value: e
140
140
  }, t);
141
141
  }
142
- function dt() {
142
+ function ft() {
143
143
  let {
144
144
  matches: e
145
- } = r.useContext(C), t = e[e.length - 1];
145
+ } = n.useContext(_), t = e[e.length - 1];
146
146
  return t ? t.params : {};
147
147
  }
148
148
  function Y(e, t) {
149
149
  let {
150
- relative: n
150
+ relative: r
151
151
  } = t === void 0 ? {} : t, {
152
152
  future: o
153
- } = r.useContext(S), {
153
+ } = n.useContext(S), {
154
154
  matches: a
155
- } = r.useContext(C), {
156
- pathname: s
157
- } = L(), i = JSON.stringify(Re(a, o.v7_relativeSplatPath));
158
- return r.useMemo(() => Ne(e, JSON.parse(i), s, n === "path"), [e, i, s, n]);
155
+ } = n.useContext(_), {
156
+ pathname: l
157
+ } = L(), i = JSON.stringify(be(a, o.v7_relativeSplatPath));
158
+ return n.useMemo(() => Re(e, JSON.parse(i), l, r === "path"), [e, i, l, r]);
159
159
  }
160
160
  function Pe(e, t) {
161
161
  return pe(e, t);
162
162
  }
163
- function pe(e, t, n, o) {
163
+ function pe(e, t, r, o) {
164
164
  V() || (process.env.NODE_ENV !== "production" ? m(
165
165
  !1,
166
166
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -169,45 +169,45 @@ function pe(e, t, n, o) {
169
169
  ) : m(!1));
170
170
  let {
171
171
  navigator: a
172
- } = r.useContext(S), {
173
- matches: s
174
- } = r.useContext(C), i = s[s.length - 1], u = i ? i.params : {}, d = i ? i.pathname : "/", l = i ? i.pathnameBase : "/", c = i && i.route;
172
+ } = n.useContext(S), {
173
+ matches: l
174
+ } = n.useContext(_), i = l[l.length - 1], u = i ? i.params : {}, f = i ? i.pathname : "/", s = i ? i.pathnameBase : "/", c = i && i.route;
175
175
  if (process.env.NODE_ENV !== "production") {
176
176
  let h = c && c.path || "";
177
- yt(d, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + d + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
177
+ gt(f, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + f + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
178
178
 
179
179
  ` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
180
180
  }
181
- let f = L(), p;
181
+ let d = L(), p;
182
182
  if (t) {
183
183
  var v;
184
184
  let h = typeof t == "string" ? fe(t) : t;
185
- l === "/" || (v = h.pathname) != null && v.startsWith(l) || (process.env.NODE_ENV !== "production" ? m(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + l + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : m(!1)), p = h;
185
+ s === "/" || (v = h.pathname) != null && v.startsWith(s) || (process.env.NODE_ENV !== "production" ? m(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + s + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : m(!1)), p = h;
186
186
  } else
187
- p = f;
188
- let g = p.pathname || "/", b = g;
189
- if (l !== "/") {
190
- let h = l.replace(/^\//, "").split("/");
191
- b = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
187
+ p = d;
188
+ let g = p.pathname || "/", N = g;
189
+ if (s !== "/") {
190
+ let h = s.replace(/^\//, "").split("/");
191
+ N = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
192
192
  }
193
- let y = _e(e, {
194
- pathname: b
193
+ let y = we(e, {
194
+ pathname: N
195
195
  });
196
- process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && w(c || y != null, 'No routes matched location "' + p.pathname + p.search + p.hash + '" '), process.env.NODE_ENV !== "production" && w(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + p.pathname + p.search + p.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
197
- let _ = ft(y && y.map((h) => Object.assign({}, h, {
196
+ process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && C(c || y != null, 'No routes matched location "' + p.pathname + p.search + p.hash + '" '), process.env.NODE_ENV !== "production" && C(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + p.pathname + p.search + p.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
197
+ let w = pt(y && y.map((h) => Object.assign({}, h, {
198
198
  params: Object.assign({}, u, h.params),
199
199
  pathname: G([
200
- l,
200
+ s,
201
201
  // Re-encode pathnames that were decoded inside matchRoutes
202
202
  a.encodeLocation ? a.encodeLocation(h.pathname).pathname : h.pathname
203
203
  ]),
204
- pathnameBase: h.pathnameBase === "/" ? l : G([
205
- l,
204
+ pathnameBase: h.pathnameBase === "/" ? s : G([
205
+ s,
206
206
  // Re-encode pathnames that were decoded inside matchRoutes
207
207
  a.encodeLocation ? a.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
208
208
  ])
209
- })), s, n, o);
210
- return t && _ ? /* @__PURE__ */ r.createElement(B.Provider, {
209
+ })), l, r, o);
210
+ return t && w ? /* @__PURE__ */ n.createElement(M.Provider, {
211
211
  value: {
212
212
  location: I({
213
213
  pathname: "/",
@@ -218,30 +218,30 @@ function pe(e, t, n, o) {
218
218
  }, p),
219
219
  navigationType: de.Pop
220
220
  }
221
- }, _) : _;
221
+ }, w) : w;
222
222
  }
223
- function zt() {
224
- let e = ke(), t = we(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", a = {
223
+ function Wt() {
224
+ let e = ke(), t = Ce(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", a = {
225
225
  padding: "0.5rem",
226
226
  backgroundColor: o
227
- }, s = {
227
+ }, l = {
228
228
  padding: "2px 4px",
229
229
  backgroundColor: o
230
230
  }, i = null;
231
- return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ r.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ r.createElement("code", {
232
- style: s
233
- }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ r.createElement("code", {
234
- style: s
235
- }, "errorElement"), " prop on your route."))), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ r.createElement("h3", {
231
+ return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ n.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ n.createElement("code", {
232
+ style: l
233
+ }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ n.createElement("code", {
234
+ style: l
235
+ }, "errorElement"), " prop on your route."))), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ n.createElement("h3", {
236
236
  style: {
237
237
  fontStyle: "italic"
238
238
  }
239
- }, t), n ? /* @__PURE__ */ r.createElement("pre", {
239
+ }, t), r ? /* @__PURE__ */ n.createElement("pre", {
240
240
  style: a
241
- }, n) : null, i);
241
+ }, r) : null, i);
242
242
  }
243
- const Wt = /* @__PURE__ */ r.createElement(zt, null);
244
- class Yt extends r.Component {
243
+ const Yt = /* @__PURE__ */ n.createElement(Wt, null);
244
+ class $t extends n.Component {
245
245
  constructor(t) {
246
246
  super(t), this.state = {
247
247
  location: t.location,
@@ -254,92 +254,96 @@ class Yt extends r.Component {
254
254
  error: t
255
255
  };
256
256
  }
257
- static getDerivedStateFromProps(t, n) {
258
- return n.location !== t.location || n.revalidation !== "idle" && t.revalidation === "idle" ? {
257
+ static getDerivedStateFromProps(t, r) {
258
+ return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
259
259
  error: t.error,
260
260
  location: t.location,
261
261
  revalidation: t.revalidation
262
262
  } : {
263
- error: t.error !== void 0 ? t.error : n.error,
264
- location: n.location,
265
- revalidation: t.revalidation || n.revalidation
263
+ error: t.error !== void 0 ? t.error : r.error,
264
+ location: r.location,
265
+ revalidation: t.revalidation || r.revalidation
266
266
  };
267
267
  }
268
- componentDidCatch(t, n) {
269
- console.error("React Router caught the following error during render", t, n);
268
+ componentDidCatch(t, r) {
269
+ console.error("React Router caught the following error during render", t, r);
270
270
  }
271
271
  render() {
272
- return this.state.error !== void 0 ? /* @__PURE__ */ r.createElement(C.Provider, {
272
+ return this.state.error !== void 0 ? /* @__PURE__ */ n.createElement(_.Provider, {
273
273
  value: this.props.routeContext
274
- }, /* @__PURE__ */ r.createElement(xe.Provider, {
274
+ }, /* @__PURE__ */ n.createElement(xe.Provider, {
275
275
  value: this.state.error,
276
276
  children: this.props.component
277
277
  })) : this.props.children;
278
278
  }
279
279
  }
280
- function $t(e) {
280
+ function Jt(e) {
281
281
  let {
282
282
  routeContext: t,
283
- match: n,
283
+ match: r,
284
284
  children: o
285
- } = e, a = r.useContext(U);
286
- return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ r.createElement(C.Provider, {
285
+ } = e, a = n.useContext(U);
286
+ return a && a.static && a.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ n.createElement(_.Provider, {
287
287
  value: t
288
288
  }, o);
289
289
  }
290
- function ft(e, t, n, o) {
290
+ function pt(e, t, r, o) {
291
291
  var a;
292
- if (t === void 0 && (t = []), n === void 0 && (n = null), o === void 0 && (o = null), e == null) {
293
- var s;
294
- if ((s = n) != null && s.errors)
295
- e = n.matches;
292
+ if (t === void 0 && (t = []), r === void 0 && (r = null), o === void 0 && (o = null), e == null) {
293
+ var l;
294
+ if (!r)
295
+ return null;
296
+ if (r.errors)
297
+ e = r.matches;
298
+ else if ((l = o) != null && l.v7_partialHydration && t.length === 0 && !r.initialized && r.matches.length > 0)
299
+ e = r.matches;
296
300
  else
297
301
  return null;
298
302
  }
299
- let i = e, u = (a = n) == null ? void 0 : a.errors;
303
+ let i = e, u = (a = r) == null ? void 0 : a.errors;
300
304
  if (u != null) {
301
- let c = i.findIndex((f) => f.route.id && (u == null ? void 0 : u[f.route.id]) !== void 0);
305
+ let c = i.findIndex((d) => d.route.id && (u == null ? void 0 : u[d.route.id]) !== void 0);
302
306
  c >= 0 || (process.env.NODE_ENV !== "production" ? m(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(u).join(",")) : m(!1)), i = i.slice(0, Math.min(i.length, c + 1));
303
307
  }
304
- let d = !1, l = -1;
305
- if (n && o && o.v7_partialHydration)
308
+ let f = !1, s = -1;
309
+ if (r && o && o.v7_partialHydration)
306
310
  for (let c = 0; c < i.length; c++) {
307
- let f = i[c];
308
- if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (l = c), f.route.id) {
311
+ let d = i[c];
312
+ if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = c), d.route.id) {
309
313
  let {
310
314
  loaderData: p,
311
315
  errors: v
312
- } = n, g = f.route.loader && p[f.route.id] === void 0 && (!v || v[f.route.id] === void 0);
313
- if (f.route.lazy || g) {
314
- d = !0, l >= 0 ? i = i.slice(0, l + 1) : i = [i[0]];
316
+ } = r, g = d.route.loader && p[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
317
+ if (d.route.lazy || g) {
318
+ f = !0, s >= 0 ? i = i.slice(0, s + 1) : i = [i[0]];
315
319
  break;
316
320
  }
317
321
  }
318
322
  }
319
- return i.reduceRight((c, f, p) => {
320
- let v, g = !1, b = null, y = null;
321
- n && (v = u && f.route.id ? u[f.route.id] : void 0, b = f.route.errorElement || Wt, d && (l < 0 && p === 0 ? (yt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : l === p && (g = !0, y = f.route.hydrateFallbackElement || null)));
322
- let _ = t.concat(i.slice(0, p + 1)), h = () => {
323
+ return i.reduceRight((c, d, p) => {
324
+ let v, g = !1, N = null, y = null;
325
+ r && (v = u && d.route.id ? u[d.route.id] : void 0, N = d.route.errorElement || Yt, f && (s < 0 && p === 0 ? (gt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : s === p && (g = !0, y = d.route.hydrateFallbackElement || null)));
326
+ let w = t.concat(i.slice(0, p + 1)), h = () => {
323
327
  let E;
324
- return v ? E = b : g ? E = y : f.route.Component ? E = /* @__PURE__ */ r.createElement(f.route.Component, null) : f.route.element ? E = f.route.element : E = c, /* @__PURE__ */ r.createElement($t, {
325
- match: f,
328
+ return v ? E = N : g ? E = y : d.route.Component ? E = /* @__PURE__ */ n.createElement(d.route.Component, null) : d.route.element ? E = d.route.element : E = c, /* @__PURE__ */ n.createElement(Jt, {
329
+ match: d,
326
330
  routeContext: {
327
331
  outlet: c,
328
- matches: _,
329
- isDataRoute: n != null
332
+ matches: w,
333
+ isDataRoute: r != null
330
334
  },
331
335
  children: E
332
336
  });
333
337
  };
334
- return n && (f.route.ErrorBoundary || f.route.errorElement || p === 0) ? /* @__PURE__ */ r.createElement(Yt, {
335
- location: n.location,
336
- revalidation: n.revalidation,
337
- component: b,
338
+ return r && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ n.createElement($t, {
339
+ location: r.location,
340
+ revalidation: r.revalidation,
341
+ component: N,
338
342
  error: v,
339
343
  children: h(),
340
344
  routeContext: {
341
345
  outlet: null,
342
- matches: _,
346
+ matches: w,
343
347
  isDataRoute: !0
344
348
  }
345
349
  }) : h();
@@ -354,30 +358,30 @@ function Le(e) {
354
358
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
355
359
  }
356
360
  function Te(e) {
357
- let t = r.useContext(U);
361
+ let t = n.useContext(U);
358
362
  return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
359
363
  }
360
364
  function j(e) {
361
- let t = r.useContext(M);
365
+ let t = n.useContext(B);
362
366
  return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
363
367
  }
364
- function Jt(e) {
365
- let t = r.useContext(C);
368
+ function qt(e) {
369
+ let t = n.useContext(_);
366
370
  return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
367
371
  }
368
- function ne(e) {
369
- let t = Jt(e), n = t.matches[t.matches.length - 1];
370
- return n.route.id || (process.env.NODE_ENV !== "production" ? m(!1, e + ' can only be used on routes that contain a unique "id"') : m(!1)), n.route.id;
372
+ function re(e) {
373
+ let t = qt(e), r = t.matches[t.matches.length - 1];
374
+ return r.route.id || (process.env.NODE_ENV !== "production" ? m(!1, e + ' can only be used on routes that contain a unique "id"') : m(!1)), r.route.id;
371
375
  }
372
376
  function Fe() {
373
- return ne(O.UseRouteId);
377
+ return re(O.UseRouteId);
374
378
  }
375
379
  function Ue() {
376
380
  return j(O.UseNavigation).navigation;
377
381
  }
378
- function pt() {
382
+ function ht() {
379
383
  let e = Te(he.UseRevalidator), t = j(O.UseRevalidator);
380
- return r.useMemo(() => ({
384
+ return n.useMemo(() => ({
381
385
  revalidate: e.router.revalidate,
382
386
  state: t.revalidation
383
387
  }), [e.router.revalidate, t.revalidation]);
@@ -387,177 +391,177 @@ function Ve() {
387
391
  matches: e,
388
392
  loaderData: t
389
393
  } = j(O.UseMatches);
390
- return r.useMemo(() => e.map((n) => Bt(n, t)), [e, t]);
394
+ return n.useMemo(() => e.map((r) => jt(r, t)), [e, t]);
391
395
  }
392
- function ht() {
393
- let e = j(O.UseLoaderData), t = ne(O.UseLoaderData);
396
+ function mt() {
397
+ let e = j(O.UseLoaderData), t = re(O.UseLoaderData);
394
398
  if (e.errors && e.errors[t] != null) {
395
399
  console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
396
400
  return;
397
401
  }
398
402
  return e.loaderData[t];
399
403
  }
400
- function mt(e) {
404
+ function vt(e) {
401
405
  return j(O.UseRouteLoaderData).loaderData[e];
402
406
  }
403
- function vt() {
404
- let e = j(O.UseActionData), t = ne(O.UseLoaderData);
407
+ function Et() {
408
+ let e = j(O.UseActionData), t = re(O.UseLoaderData);
405
409
  return e.actionData ? e.actionData[t] : void 0;
406
410
  }
407
411
  function ke() {
408
412
  var e;
409
- let t = r.useContext(xe), n = j(O.UseRouteError), o = ne(O.UseRouteError);
410
- return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[o];
413
+ let t = n.useContext(xe), r = j(O.UseRouteError), o = re(O.UseRouteError);
414
+ return t !== void 0 ? t : (e = r.errors) == null ? void 0 : e[o];
411
415
  }
412
416
  function Ie() {
413
- let e = r.useContext(Z);
417
+ let e = n.useContext(Z);
414
418
  return e == null ? void 0 : e._data;
415
419
  }
416
- function Et() {
417
- let e = r.useContext(Z);
420
+ function yt() {
421
+ let e = n.useContext(Z);
418
422
  return e == null ? void 0 : e._error;
419
423
  }
420
- let qt = 0;
424
+ let Gt = 0;
421
425
  function Ae(e) {
422
426
  let {
423
427
  router: t,
424
- basename: n
425
- } = Te(he.UseBlocker), o = j(O.UseBlocker), [a, s] = r.useState(""), i = r.useCallback((u) => {
428
+ basename: r
429
+ } = Te(he.UseBlocker), o = j(O.UseBlocker), [a, l] = n.useState(""), i = n.useCallback((u) => {
426
430
  if (typeof e != "function")
427
431
  return !!e;
428
- if (n === "/")
432
+ if (r === "/")
429
433
  return e(u);
430
434
  let {
431
- currentLocation: d,
432
- nextLocation: l,
435
+ currentLocation: f,
436
+ nextLocation: s,
433
437
  historyAction: c
434
438
  } = u;
435
439
  return e({
436
- currentLocation: I({}, d, {
437
- pathname: T(d.pathname, n) || d.pathname
440
+ currentLocation: I({}, f, {
441
+ pathname: T(f.pathname, r) || f.pathname
438
442
  }),
439
- nextLocation: I({}, l, {
440
- pathname: T(l.pathname, n) || l.pathname
443
+ nextLocation: I({}, s, {
444
+ pathname: T(s.pathname, r) || s.pathname
441
445
  }),
442
446
  historyAction: c
443
447
  });
444
- }, [n, e]);
445
- return r.useEffect(() => {
446
- let u = String(++qt);
447
- return s(u), () => t.deleteBlocker(u);
448
- }, [t]), r.useEffect(() => {
448
+ }, [r, e]);
449
+ return n.useEffect(() => {
450
+ let u = String(++Gt);
451
+ return l(u), () => t.deleteBlocker(u);
452
+ }, [t]), n.useEffect(() => {
449
453
  a !== "" && t.getBlocker(a, i);
450
- }, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : jt;
454
+ }, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : Ht;
451
455
  }
452
- function Gt() {
456
+ function Xt() {
453
457
  let {
454
458
  router: e
455
- } = Te(he.UseNavigateStable), t = ne(O.UseNavigateStable), n = r.useRef(!1);
456
- return lt(() => {
457
- n.current = !0;
458
- }), r.useCallback(function(a, s) {
459
- s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && w(n.current, st), n.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, I({
459
+ } = Te(he.UseNavigateStable), t = re(O.UseNavigateStable), r = n.useRef(!1);
460
+ return ut(() => {
461
+ r.current = !0;
462
+ }), n.useCallback(function(a, l) {
463
+ l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && C(r.current, st), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, I({
460
464
  fromRouteId: t
461
- }, s)));
465
+ }, l)));
462
466
  }, [e, t]);
463
467
  }
464
468
  const We = {};
465
- function yt(e, t, n) {
466
- !t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && w(!1, n));
469
+ function gt(e, t, r) {
470
+ !t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && C(!1, r));
467
471
  }
468
- const Xt = "startTransition", ue = r[Xt];
469
- function Qt(e) {
472
+ const Qt = "startTransition", ue = n[Qt];
473
+ function Zt(e) {
470
474
  let {
471
475
  fallbackElement: t,
472
- router: n,
476
+ router: r,
473
477
  future: o
474
- } = e, [a, s] = r.useState(n.state), {
478
+ } = e, [a, l] = n.useState(r.state), {
475
479
  v7_startTransition: i
476
- } = o || {}, u = r.useCallback((f) => {
477
- i && ue ? ue(() => s(f)) : s(f);
478
- }, [s, i]);
479
- r.useLayoutEffect(() => n.subscribe(u), [n, u]), r.useEffect(() => {
480
- process.env.NODE_ENV !== "production" && w(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
480
+ } = o || {}, u = n.useCallback((d) => {
481
+ i && ue ? ue(() => l(d)) : l(d);
482
+ }, [l, i]);
483
+ n.useLayoutEffect(() => r.subscribe(u), [r, u]), n.useEffect(() => {
484
+ process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
481
485
  }, []);
482
- let d = r.useMemo(() => ({
483
- createHref: n.createHref,
484
- encodeLocation: n.encodeLocation,
485
- go: (f) => n.navigate(f),
486
- push: (f, p, v) => n.navigate(f, {
486
+ let f = n.useMemo(() => ({
487
+ createHref: r.createHref,
488
+ encodeLocation: r.encodeLocation,
489
+ go: (d) => r.navigate(d),
490
+ push: (d, p, v) => r.navigate(d, {
487
491
  state: p,
488
492
  preventScrollReset: v == null ? void 0 : v.preventScrollReset
489
493
  }),
490
- replace: (f, p, v) => n.navigate(f, {
494
+ replace: (d, p, v) => r.navigate(d, {
491
495
  replace: !0,
492
496
  state: p,
493
497
  preventScrollReset: v == null ? void 0 : v.preventScrollReset
494
498
  })
495
- }), [n]), l = n.basename || "/", c = r.useMemo(() => ({
496
- router: n,
497
- navigator: d,
499
+ }), [r]), s = r.basename || "/", c = n.useMemo(() => ({
500
+ router: r,
501
+ navigator: f,
498
502
  static: !1,
499
- basename: l
500
- }), [n, d, l]);
501
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(U.Provider, {
503
+ basename: s
504
+ }), [r, f, s]);
505
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
502
506
  value: c
503
- }, /* @__PURE__ */ r.createElement(M.Provider, {
507
+ }, /* @__PURE__ */ n.createElement(B.Provider, {
504
508
  value: a
505
- }, /* @__PURE__ */ r.createElement(H, {
506
- basename: l,
509
+ }, /* @__PURE__ */ n.createElement(H, {
510
+ basename: s,
507
511
  location: a.location,
508
512
  navigationType: a.historyAction,
509
- navigator: d,
513
+ navigator: f,
510
514
  future: {
511
- v7_relativeSplatPath: n.future.v7_relativeSplatPath
515
+ v7_relativeSplatPath: r.future.v7_relativeSplatPath
512
516
  }
513
- }, a.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ r.createElement(Zt, {
514
- routes: n.routes,
515
- future: n.future,
517
+ }, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(er, {
518
+ routes: r.routes,
519
+ future: r.future,
516
520
  state: a
517
521
  }) : t))), null);
518
522
  }
519
- function Zt(e) {
523
+ function er(e) {
520
524
  let {
521
525
  routes: t,
522
- future: n,
526
+ future: r,
523
527
  state: o
524
528
  } = e;
525
- return pe(t, void 0, o, n);
529
+ return pe(t, void 0, o, r);
526
530
  }
527
- function gt(e) {
531
+ function Nt(e) {
528
532
  let {
529
533
  basename: t,
530
- children: n,
534
+ children: r,
531
535
  initialEntries: o,
532
536
  initialIndex: a,
533
- future: s
534
- } = e, i = r.useRef();
537
+ future: l
538
+ } = e, i = n.useRef();
535
539
  i.current == null && (i.current = qe({
536
540
  initialEntries: o,
537
541
  initialIndex: a,
538
542
  v5Compat: !0
539
543
  }));
540
- let u = i.current, [d, l] = r.useState({
544
+ let u = i.current, [f, s] = n.useState({
541
545
  action: u.action,
542
546
  location: u.location
543
547
  }), {
544
548
  v7_startTransition: c
545
- } = s || {}, f = r.useCallback((p) => {
546
- c && ue ? ue(() => l(p)) : l(p);
547
- }, [l, c]);
548
- return r.useLayoutEffect(() => u.listen(f), [u, f]), /* @__PURE__ */ r.createElement(H, {
549
+ } = l || {}, d = n.useCallback((p) => {
550
+ c && ue ? ue(() => s(p)) : s(p);
551
+ }, [s, c]);
552
+ return n.useLayoutEffect(() => u.listen(d), [u, d]), /* @__PURE__ */ n.createElement(H, {
549
553
  basename: t,
550
- children: n,
551
- location: d.location,
552
- navigationType: d.action,
554
+ children: r,
555
+ location: f.location,
556
+ navigationType: f.action,
553
557
  navigator: u,
554
- future: s
558
+ future: l
555
559
  });
556
560
  }
557
561
  function bt(e) {
558
562
  let {
559
563
  to: t,
560
- replace: n,
564
+ replace: r,
561
565
  state: o,
562
566
  relative: a
563
567
  } = e;
@@ -568,97 +572,97 @@ function bt(e) {
568
572
  "<Navigate> may be used only in the context of a <Router> component."
569
573
  ) : m(!1));
570
574
  let {
571
- future: s,
575
+ future: l,
572
576
  static: i
573
- } = r.useContext(S);
574
- process.env.NODE_ENV !== "production" && w(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
577
+ } = n.useContext(S);
578
+ process.env.NODE_ENV !== "production" && C(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
575
579
  let {
576
580
  matches: u
577
- } = r.useContext(C), {
578
- pathname: d
579
- } = L(), l = te(), c = Ne(t, Re(u, s.v7_relativeSplatPath), d, a === "path"), f = JSON.stringify(c);
580
- return r.useEffect(() => l(JSON.parse(f), {
581
- replace: n,
581
+ } = n.useContext(_), {
582
+ pathname: f
583
+ } = L(), s = te(), c = Re(t, be(u, l.v7_relativeSplatPath), f, a === "path"), d = JSON.stringify(c);
584
+ return n.useEffect(() => s(JSON.parse(d), {
585
+ replace: r,
582
586
  state: o,
583
587
  relative: a
584
- }), [l, f, a, n, o]), null;
588
+ }), [s, d, a, r, o]), null;
585
589
  }
586
590
  function Rt(e) {
587
591
  return Oe(e.context);
588
592
  }
589
- function Me(e) {
593
+ function Be(e) {
590
594
  process.env.NODE_ENV !== "production" ? m(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : m(!1);
591
595
  }
592
596
  function H(e) {
593
597
  let {
594
598
  basename: t = "/",
595
- children: n = null,
599
+ children: r = null,
596
600
  location: o,
597
601
  navigationType: a = de.Pop,
598
- navigator: s,
602
+ navigator: l,
599
603
  static: i = !1,
600
604
  future: u
601
605
  } = e;
602
606
  V() && (process.env.NODE_ENV !== "production" ? m(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : m(!1));
603
- let d = t.replace(/^\/*/, "/"), l = r.useMemo(() => ({
604
- basename: d,
605
- navigator: s,
607
+ let f = t.replace(/^\/*/, "/"), s = n.useMemo(() => ({
608
+ basename: f,
609
+ navigator: l,
606
610
  static: i,
607
611
  future: I({
608
612
  v7_relativeSplatPath: !1
609
613
  }, u)
610
- }), [d, u, s, i]);
614
+ }), [f, u, l, i]);
611
615
  typeof o == "string" && (o = fe(o));
612
616
  let {
613
617
  pathname: c = "/",
614
- search: f = "",
618
+ search: d = "",
615
619
  hash: p = "",
616
620
  state: v = null,
617
621
  key: g = "default"
618
- } = o, b = r.useMemo(() => {
619
- let y = T(c, d);
622
+ } = o, N = n.useMemo(() => {
623
+ let y = T(c, f);
620
624
  return y == null ? null : {
621
625
  location: {
622
626
  pathname: y,
623
- search: f,
627
+ search: d,
624
628
  hash: p,
625
629
  state: v,
626
630
  key: g
627
631
  },
628
632
  navigationType: a
629
633
  };
630
- }, [d, c, f, p, v, g, a]);
631
- return process.env.NODE_ENV !== "production" && w(b != null, '<Router basename="' + d + '"> is not able to match the URL ' + ('"' + c + f + p + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), b == null ? null : /* @__PURE__ */ r.createElement(S.Provider, {
632
- value: l
633
- }, /* @__PURE__ */ r.createElement(B.Provider, {
634
- children: n,
635
- value: b
634
+ }, [f, c, d, p, v, g, a]);
635
+ return process.env.NODE_ENV !== "production" && C(N != null, '<Router basename="' + f + '"> is not able to match the URL ' + ('"' + c + d + p + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), N == null ? null : /* @__PURE__ */ n.createElement(S.Provider, {
636
+ value: s
637
+ }, /* @__PURE__ */ n.createElement(M.Provider, {
638
+ children: r,
639
+ value: N
636
640
  }));
637
641
  }
638
- function Nt(e) {
642
+ function wt(e) {
639
643
  let {
640
644
  children: t,
641
- location: n
645
+ location: r
642
646
  } = e;
643
- return Pe(W(t), n);
647
+ return Pe(W(t), r);
644
648
  }
645
- function _t(e) {
649
+ function Ct(e) {
646
650
  let {
647
651
  children: t,
648
- errorElement: n,
652
+ errorElement: r,
649
653
  resolve: o
650
654
  } = e;
651
- return /* @__PURE__ */ r.createElement(tn, {
655
+ return /* @__PURE__ */ n.createElement(rr, {
652
656
  resolve: o,
653
- errorElement: n
654
- }, /* @__PURE__ */ r.createElement(nn, null, t));
657
+ errorElement: r
658
+ }, /* @__PURE__ */ n.createElement(nr, null, t));
655
659
  }
656
660
  var P = /* @__PURE__ */ function(e) {
657
661
  return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
658
662
  }(P || {});
659
- const en = new Promise(() => {
663
+ const tr = new Promise(() => {
660
664
  });
661
- class tn extends r.Component {
665
+ class rr extends n.Component {
662
666
  constructor(t) {
663
667
  super(t), this.state = {
664
668
  error: null
@@ -669,23 +673,23 @@ class tn extends r.Component {
669
673
  error: t
670
674
  };
671
675
  }
672
- componentDidCatch(t, n) {
673
- console.error("<Await> caught the following error during render", t, n);
676
+ componentDidCatch(t, r) {
677
+ console.error("<Await> caught the following error during render", t, r);
674
678
  }
675
679
  render() {
676
680
  let {
677
681
  children: t,
678
- errorElement: n,
682
+ errorElement: r,
679
683
  resolve: o
680
- } = this.props, a = null, s = P.pending;
684
+ } = this.props, a = null, l = P.pending;
681
685
  if (!(o instanceof Promise))
682
- s = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
686
+ l = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
683
687
  get: () => !0
684
688
  }), Object.defineProperty(a, "_data", {
685
689
  get: () => o
686
690
  });
687
691
  else if (this.state.error) {
688
- s = P.error;
692
+ l = P.error;
689
693
  let i = this.state.error;
690
694
  a = Promise.reject().catch(() => {
691
695
  }), Object.defineProperty(a, "_tracked", {
@@ -693,50 +697,50 @@ class tn extends r.Component {
693
697
  }), Object.defineProperty(a, "_error", {
694
698
  get: () => i
695
699
  });
696
- } else o._tracked ? (a = o, s = "_error" in a ? P.error : "_data" in a ? P.success : P.pending) : (s = P.pending, Object.defineProperty(o, "_tracked", {
700
+ } else o._tracked ? (a = o, l = "_error" in a ? P.error : "_data" in a ? P.success : P.pending) : (l = P.pending, Object.defineProperty(o, "_tracked", {
697
701
  get: () => !0
698
702
  }), a = o.then((i) => Object.defineProperty(o, "_data", {
699
703
  get: () => i
700
704
  }), (i) => Object.defineProperty(o, "_error", {
701
705
  get: () => i
702
706
  })));
703
- if (s === P.error && a._error instanceof Se)
704
- throw en;
705
- if (s === P.error && !n)
707
+ if (l === P.error && a._error instanceof Se)
708
+ throw tr;
709
+ if (l === P.error && !r)
706
710
  throw a._error;
707
- if (s === P.error)
708
- return /* @__PURE__ */ r.createElement(Z.Provider, {
711
+ if (l === P.error)
712
+ return /* @__PURE__ */ n.createElement(Z.Provider, {
709
713
  value: a,
710
- children: n
714
+ children: r
711
715
  });
712
- if (s === P.success)
713
- return /* @__PURE__ */ r.createElement(Z.Provider, {
716
+ if (l === P.success)
717
+ return /* @__PURE__ */ n.createElement(Z.Provider, {
714
718
  value: a,
715
719
  children: t
716
720
  });
717
721
  throw a;
718
722
  }
719
723
  }
720
- function nn(e) {
724
+ function nr(e) {
721
725
  let {
722
726
  children: t
723
- } = e, n = Ie(), o = typeof t == "function" ? t(n) : t;
724
- return /* @__PURE__ */ r.createElement(r.Fragment, null, o);
727
+ } = e, r = Ie(), o = typeof t == "function" ? t(r) : t;
728
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, o);
725
729
  }
726
730
  function W(e, t) {
727
731
  t === void 0 && (t = []);
728
- let n = [];
729
- return r.Children.forEach(e, (o, a) => {
730
- if (!/* @__PURE__ */ r.isValidElement(o))
732
+ let r = [];
733
+ return n.Children.forEach(e, (o, a) => {
734
+ if (!/* @__PURE__ */ n.isValidElement(o))
731
735
  return;
732
- let s = [...t, a];
733
- if (o.type === r.Fragment) {
734
- n.push.apply(n, W(o.props.children, s));
736
+ let l = [...t, a];
737
+ if (o.type === n.Fragment) {
738
+ r.push.apply(r, W(o.props.children, l));
735
739
  return;
736
740
  }
737
- o.type !== Me && (process.env.NODE_ENV !== "production" ? m(!1, "[" + (typeof o.type == "string" ? o.type : o.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : m(!1)), !o.props.index || !o.props.children || (process.env.NODE_ENV !== "production" ? m(!1, "An index route cannot have child routes.") : m(!1));
741
+ o.type !== Be && (process.env.NODE_ENV !== "production" ? m(!1, "[" + (typeof o.type == "string" ? o.type : o.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : m(!1)), !o.props.index || !o.props.children || (process.env.NODE_ENV !== "production" ? m(!1, "An index route cannot have child routes.") : m(!1));
738
742
  let i = {
739
- id: o.props.id || s.join("-"),
743
+ id: o.props.id || l.join("-"),
740
744
  caseSensitive: o.props.caseSensitive,
741
745
  element: o.props.element,
742
746
  Component: o.props.Component,
@@ -751,11 +755,11 @@ function W(e, t) {
751
755
  handle: o.props.handle,
752
756
  lazy: o.props.lazy
753
757
  };
754
- o.props.children && (i.children = W(o.props.children, s)), n.push(i);
755
- }), n;
758
+ o.props.children && (i.children = W(o.props.children, l)), r.push(i);
759
+ }), r;
756
760
  }
757
- function wt(e) {
758
- return ft(e);
761
+ function St(e) {
762
+ return pt(e);
759
763
  }
760
764
  function me(e) {
761
765
  let t = {
@@ -763,19 +767,19 @@ function me(e) {
763
767
  // there if you change this -- please and thank you!
764
768
  hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
765
769
  };
766
- return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && w(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
767
- element: /* @__PURE__ */ r.createElement(e.Component),
770
+ return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
771
+ element: /* @__PURE__ */ n.createElement(e.Component),
768
772
  Component: void 0
769
- })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && w(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
770
- hydrateFallbackElement: /* @__PURE__ */ r.createElement(e.HydrateFallback),
773
+ })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
774
+ hydrateFallbackElement: /* @__PURE__ */ n.createElement(e.HydrateFallback),
771
775
  HydrateFallback: void 0
772
- })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && w(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
773
- errorElement: /* @__PURE__ */ r.createElement(e.ErrorBoundary),
776
+ })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
777
+ errorElement: /* @__PURE__ */ n.createElement(e.ErrorBoundary),
774
778
  ErrorBoundary: void 0
775
779
  })), t;
776
780
  }
777
- function St(e, t) {
778
- return Ce({
781
+ function _t(e, t) {
782
+ return _e({
779
783
  basename: t == null ? void 0 : t.basename,
780
784
  future: I({}, t == null ? void 0 : t.future, {
781
785
  v7_prependBasename: !0
@@ -787,71 +791,72 @@ function St(e, t) {
787
791
  hydrationData: t == null ? void 0 : t.hydrationData,
788
792
  routes: e,
789
793
  mapRouteProperties: me,
790
- unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
791
- unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss
794
+ dataStrategy: t == null ? void 0 : t.dataStrategy,
795
+ patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation
792
796
  }).initialize();
793
797
  }
794
- const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
798
+ const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
795
799
  __proto__: null,
796
800
  AbortedDeferredError: Se,
797
- Await: _t,
798
- MemoryRouter: gt,
801
+ Await: Ct,
802
+ MemoryRouter: Nt,
799
803
  Navigate: bt,
800
804
  get NavigationType() {
801
805
  return de;
802
806
  },
803
807
  Outlet: Rt,
804
- Route: Me,
808
+ Route: Be,
805
809
  Router: H,
806
- RouterProvider: Qt,
807
- Routes: Nt,
810
+ RouterProvider: Zt,
811
+ Routes: wt,
808
812
  UNSAFE_DataRouterContext: U,
809
- UNSAFE_DataRouterStateContext: M,
810
- UNSAFE_LocationContext: B,
813
+ UNSAFE_DataRouterStateContext: B,
814
+ UNSAFE_LocationContext: M,
811
815
  UNSAFE_NavigationContext: S,
812
- UNSAFE_RouteContext: C,
816
+ UNSAFE_RouteContext: _,
813
817
  UNSAFE_mapRouteProperties: me,
814
818
  UNSAFE_useRouteId: Fe,
815
819
  UNSAFE_useRoutesImpl: pe,
816
- createMemoryRouter: St,
820
+ createMemoryRouter: _t,
817
821
  createPath: Q,
818
822
  createRoutesFromChildren: W,
819
823
  createRoutesFromElements: W,
820
824
  defer: Ge,
821
825
  generatePath: Xe,
822
- isRouteErrorResponse: we,
826
+ isRouteErrorResponse: Ce,
823
827
  json: Qe,
824
828
  matchPath: X,
825
- matchRoutes: _e,
829
+ matchRoutes: we,
826
830
  parsePath: fe,
827
831
  redirect: Ze,
828
832
  redirectDocument: et,
829
- renderMatches: wt,
830
- resolvePath: tt,
831
- useActionData: vt,
832
- useAsyncError: Et,
833
+ renderMatches: St,
834
+ replace: tt,
835
+ resolvePath: rt,
836
+ useActionData: Et,
837
+ useAsyncError: yt,
833
838
  useAsyncValue: Ie,
834
839
  useBlocker: Ae,
835
840
  useHref: De,
836
841
  useInRouterContext: V,
837
- useLoaderData: ht,
842
+ useLoaderData: mt,
838
843
  useLocation: L,
839
- useMatch: it,
844
+ useMatch: lt,
840
845
  useMatches: Ve,
841
846
  useNavigate: te,
842
847
  useNavigation: Ue,
843
- useNavigationType: at,
848
+ useNavigationType: it,
844
849
  useOutlet: Oe,
845
- useOutletContext: ct,
846
- useParams: dt,
850
+ useOutletContext: dt,
851
+ useParams: ft,
847
852
  useResolvedPath: Y,
848
- useRevalidator: pt,
853
+ useRevalidator: ht,
849
854
  useRouteError: ke,
850
- useRouteLoaderData: mt,
855
+ useRouteLoaderData: vt,
851
856
  useRoutes: Pe
852
857
  }, Symbol.toStringTag, { value: "Module" }));
853
858
  /**
854
- * React Router DOM v6.25.1
859
+ * React Router DOM v6.27.0
855
860
  *
856
861
  * Copyright (c) Remix Software Inc.
857
862
  *
@@ -863,57 +868,57 @@ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
863
868
  function D() {
864
869
  return D = Object.assign ? Object.assign.bind() : function(e) {
865
870
  for (var t = 1; t < arguments.length; t++) {
866
- var n = arguments[t];
867
- for (var o in n)
868
- Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
871
+ var r = arguments[t];
872
+ for (var o in r)
873
+ Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
869
874
  }
870
875
  return e;
871
876
  }, D.apply(this, arguments);
872
877
  }
873
- function Be(e, t) {
878
+ function Me(e, t) {
874
879
  if (e == null) return {};
875
- var n = {}, o = Object.keys(e), a, s;
876
- for (s = 0; s < o.length; s++)
877
- a = o[s], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
878
- return n;
880
+ var r = {}, o = Object.keys(e), a, l;
881
+ for (l = 0; l < o.length; l++)
882
+ a = o[l], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
883
+ return r;
879
884
  }
880
- const se = "get", le = "application/x-www-form-urlencoded";
885
+ const le = "get", se = "application/x-www-form-urlencoded";
881
886
  function ve(e) {
882
887
  return e != null && typeof e.tagName == "string";
883
888
  }
884
- function rn(e) {
889
+ function or(e) {
885
890
  return ve(e) && e.tagName.toLowerCase() === "button";
886
891
  }
887
- function on(e) {
892
+ function ar(e) {
888
893
  return ve(e) && e.tagName.toLowerCase() === "form";
889
894
  }
890
- function an(e) {
895
+ function ir(e) {
891
896
  return ve(e) && e.tagName.toLowerCase() === "input";
892
897
  }
893
- function sn(e) {
898
+ function lr(e) {
894
899
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
895
900
  }
896
- function ln(e, t) {
901
+ function sr(e, t) {
897
902
  return e.button === 0 && // Ignore everything but left clicks
898
903
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
899
- !sn(e);
904
+ !lr(e);
900
905
  }
901
906
  function ce(e) {
902
- return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
903
- let o = e[n];
904
- return t.concat(Array.isArray(o) ? o.map((a) => [n, a]) : [[n, o]]);
907
+ return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
908
+ let o = e[r];
909
+ return t.concat(Array.isArray(o) ? o.map((a) => [r, a]) : [[r, o]]);
905
910
  }, []));
906
911
  }
907
- function un(e, t) {
908
- let n = ce(e);
912
+ function ur(e, t) {
913
+ let r = ce(e);
909
914
  return t && t.forEach((o, a) => {
910
- n.has(a) || t.getAll(a).forEach((s) => {
911
- n.append(a, s);
915
+ r.has(a) || t.getAll(a).forEach((l) => {
916
+ r.append(a, l);
912
917
  });
913
- }), n;
918
+ }), r;
914
919
  }
915
920
  let ae = null;
916
- function cn() {
921
+ function cr() {
917
922
  if (ae === null)
918
923
  try {
919
924
  new FormData(
@@ -926,51 +931,51 @@ function cn() {
926
931
  }
927
932
  return ae;
928
933
  }
929
- const dn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
930
- function be(e) {
931
- return e != null && !dn.has(e) ? (process.env.NODE_ENV !== "production" && w(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + le + '"')), null) : e;
934
+ const dr = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
935
+ function Ne(e) {
936
+ return e != null && !dr.has(e) ? (process.env.NODE_ENV !== "production" && C(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + se + '"')), null) : e;
932
937
  }
933
- function fn(e, t) {
934
- let n, o, a, s, i;
935
- if (on(e)) {
938
+ function fr(e, t) {
939
+ let r, o, a, l, i;
940
+ if (ar(e)) {
936
941
  let u = e.getAttribute("action");
937
- o = u ? T(u, t) : null, n = e.getAttribute("method") || se, a = be(e.getAttribute("enctype")) || le, s = new FormData(e);
938
- } else if (rn(e) || an(e) && (e.type === "submit" || e.type === "image")) {
942
+ o = u ? T(u, t) : null, r = e.getAttribute("method") || le, a = Ne(e.getAttribute("enctype")) || se, l = new FormData(e);
943
+ } else if (or(e) || ir(e) && (e.type === "submit" || e.type === "image")) {
939
944
  let u = e.form;
940
945
  if (u == null)
941
946
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
942
- let d = e.getAttribute("formaction") || u.getAttribute("action");
943
- if (o = d ? T(d, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || se, a = be(e.getAttribute("formenctype")) || be(u.getAttribute("enctype")) || le, s = new FormData(u, e), !cn()) {
947
+ let f = e.getAttribute("formaction") || u.getAttribute("action");
948
+ if (o = f ? T(f, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || le, a = Ne(e.getAttribute("formenctype")) || Ne(u.getAttribute("enctype")) || se, l = new FormData(u, e), !cr()) {
944
949
  let {
945
- name: l,
950
+ name: s,
946
951
  type: c,
947
- value: f
952
+ value: d
948
953
  } = e;
949
954
  if (c === "image") {
950
- let p = l ? l + "." : "";
951
- s.append(p + "x", "0"), s.append(p + "y", "0");
952
- } else l && s.append(l, f);
955
+ let p = s ? s + "." : "";
956
+ l.append(p + "x", "0"), l.append(p + "y", "0");
957
+ } else s && l.append(s, d);
953
958
  }
954
959
  } else {
955
960
  if (ve(e))
956
961
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
957
- n = se, o = null, a = le, i = e;
962
+ r = le, o = null, a = se, i = e;
958
963
  }
959
- return s && a === "text/plain" && (i = s, s = void 0), {
964
+ return l && a === "text/plain" && (i = l, l = void 0), {
960
965
  action: o,
961
- method: n.toLowerCase(),
966
+ method: r.toLowerCase(),
962
967
  encType: a,
963
- formData: s,
968
+ formData: l,
964
969
  body: i
965
970
  };
966
971
  }
967
- const pn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], hn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], mn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], vn = "6";
972
+ const pr = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], hr = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], mr = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], vr = "6";
968
973
  try {
969
- window.__reactRouterVersion = vn;
974
+ window.__reactRouterVersion = vr;
970
975
  } catch {
971
976
  }
972
- function En(e, t) {
973
- return Ce({
977
+ function Er(e, t) {
978
+ return _e({
974
979
  basename: t == null ? void 0 : t.basename,
975
980
  future: D({}, t == null ? void 0 : t.future, {
976
981
  v7_prependBasename: !0
@@ -978,429 +983,429 @@ function En(e, t) {
978
983
  history: nt({
979
984
  window: t == null ? void 0 : t.window
980
985
  }),
981
- hydrationData: (t == null ? void 0 : t.hydrationData) || Ct(),
986
+ hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
982
987
  routes: e,
983
988
  mapRouteProperties: me,
984
- unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
985
- unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss,
989
+ dataStrategy: t == null ? void 0 : t.dataStrategy,
990
+ patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
986
991
  window: t == null ? void 0 : t.window
987
992
  }).initialize();
988
993
  }
989
- function yn(e, t) {
990
- return Ce({
994
+ function yr(e, t) {
995
+ return _e({
991
996
  basename: t == null ? void 0 : t.basename,
992
997
  future: D({}, t == null ? void 0 : t.future, {
993
998
  v7_prependBasename: !0
994
999
  }),
995
- history: rt({
1000
+ history: ot({
996
1001
  window: t == null ? void 0 : t.window
997
1002
  }),
998
- hydrationData: (t == null ? void 0 : t.hydrationData) || Ct(),
1003
+ hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
999
1004
  routes: e,
1000
1005
  mapRouteProperties: me,
1001
- unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
1002
- unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss,
1006
+ dataStrategy: t == null ? void 0 : t.dataStrategy,
1007
+ patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
1003
1008
  window: t == null ? void 0 : t.window
1004
1009
  }).initialize();
1005
1010
  }
1006
- function Ct() {
1011
+ function xt() {
1007
1012
  var e;
1008
1013
  let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
1009
1014
  return t && t.errors && (t = D({}, t, {
1010
- errors: gn(t.errors)
1015
+ errors: gr(t.errors)
1011
1016
  })), t;
1012
1017
  }
1013
- function gn(e) {
1018
+ function gr(e) {
1014
1019
  if (!e) return null;
1015
- let t = Object.entries(e), n = {};
1020
+ let t = Object.entries(e), r = {};
1016
1021
  for (let [o, a] of t)
1017
1022
  if (a && a.__type === "RouteErrorResponse")
1018
- n[o] = new ot(a.status, a.statusText, a.data, a.internal === !0);
1023
+ r[o] = new at(a.status, a.statusText, a.data, a.internal === !0);
1019
1024
  else if (a && a.__type === "Error") {
1020
1025
  if (a.__subType) {
1021
- let s = window[a.__subType];
1022
- if (typeof s == "function")
1026
+ let l = window[a.__subType];
1027
+ if (typeof l == "function")
1023
1028
  try {
1024
- let i = new s(a.message);
1025
- i.stack = "", n[o] = i;
1029
+ let i = new l(a.message);
1030
+ i.stack = "", r[o] = i;
1026
1031
  } catch {
1027
1032
  }
1028
1033
  }
1029
- if (n[o] == null) {
1030
- let s = new Error(a.message);
1031
- s.stack = "", n[o] = s;
1034
+ if (r[o] == null) {
1035
+ let l = new Error(a.message);
1036
+ l.stack = "", r[o] = l;
1032
1037
  }
1033
1038
  } else
1034
- n[o] = a;
1035
- return n;
1039
+ r[o] = a;
1040
+ return r;
1036
1041
  }
1037
- const Ee = /* @__PURE__ */ r.createContext({
1042
+ const Ee = /* @__PURE__ */ n.createContext({
1038
1043
  isTransitioning: !1
1039
1044
  });
1040
1045
  process.env.NODE_ENV !== "production" && (Ee.displayName = "ViewTransition");
1041
- const ye = /* @__PURE__ */ r.createContext(/* @__PURE__ */ new Map());
1046
+ const ye = /* @__PURE__ */ n.createContext(/* @__PURE__ */ new Map());
1042
1047
  process.env.NODE_ENV !== "production" && (ye.displayName = "Fetchers");
1043
- const bn = "startTransition", A = r[bn], Rn = "flushSync", Ye = At[Rn], Nn = "useId", $e = r[Nn];
1044
- function _n(e) {
1048
+ const Nr = "startTransition", A = n[Nr], br = "flushSync", Ye = Bt[br], Rr = "useId", $e = n[Rr];
1049
+ function wr(e) {
1045
1050
  A ? A(e) : e();
1046
1051
  }
1047
1052
  function q(e) {
1048
1053
  Ye ? Ye(e) : e();
1049
1054
  }
1050
- class wn {
1055
+ class Cr {
1051
1056
  constructor() {
1052
- this.status = "pending", this.promise = new Promise((t, n) => {
1057
+ this.status = "pending", this.promise = new Promise((t, r) => {
1053
1058
  this.resolve = (o) => {
1054
1059
  this.status === "pending" && (this.status = "resolved", t(o));
1055
1060
  }, this.reject = (o) => {
1056
- this.status === "pending" && (this.status = "rejected", n(o));
1061
+ this.status === "pending" && (this.status = "rejected", r(o));
1057
1062
  };
1058
1063
  });
1059
1064
  }
1060
1065
  }
1061
- function Sn(e) {
1066
+ function Sr(e) {
1062
1067
  let {
1063
1068
  fallbackElement: t,
1064
- router: n,
1069
+ router: r,
1065
1070
  future: o
1066
- } = e, [a, s] = r.useState(n.state), [i, u] = r.useState(), [d, l] = r.useState({
1071
+ } = e, [a, l] = n.useState(r.state), [i, u] = n.useState(), [f, s] = n.useState({
1067
1072
  isTransitioning: !1
1068
- }), [c, f] = r.useState(), [p, v] = r.useState(), [g, b] = r.useState(), y = r.useRef(/* @__PURE__ */ new Map()), {
1069
- v7_startTransition: _
1070
- } = o || {}, h = r.useCallback((N) => {
1071
- _ ? _n(N) : N();
1072
- }, [_]), E = r.useCallback((N, F) => {
1073
+ }), [c, d] = n.useState(), [p, v] = n.useState(), [g, N] = n.useState(), y = n.useRef(/* @__PURE__ */ new Map()), {
1074
+ v7_startTransition: w
1075
+ } = o || {}, h = n.useCallback((R) => {
1076
+ w ? wr(R) : R();
1077
+ }, [w]), E = n.useCallback((R, F) => {
1073
1078
  let {
1074
1079
  deletedFetchers: x,
1075
- unstable_flushSync: oe,
1076
- unstable_viewTransitionOpts: K
1080
+ flushSync: oe,
1081
+ viewTransitionOpts: K
1077
1082
  } = F;
1078
- x.forEach((z) => y.current.delete(z)), N.fetchers.forEach((z, It) => {
1079
- z.data !== void 0 && y.current.set(It, z.data);
1083
+ x.forEach((z) => y.current.delete(z)), R.fetchers.forEach((z, At) => {
1084
+ z.data !== void 0 && y.current.set(At, z.data);
1080
1085
  });
1081
- let kt = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
1082
- if (!K || kt) {
1083
- oe ? q(() => s(N)) : h(() => s(N));
1086
+ let It = r.window == null || r.window.document == null || typeof r.window.document.startViewTransition != "function";
1087
+ if (!K || It) {
1088
+ oe ? q(() => l(R)) : h(() => l(R));
1084
1089
  return;
1085
1090
  }
1086
1091
  if (oe) {
1087
1092
  q(() => {
1088
- p && (c && c.resolve(), p.skipTransition()), l({
1093
+ p && (c && c.resolve(), p.skipTransition()), s({
1089
1094
  isTransitioning: !0,
1090
1095
  flushSync: !0,
1091
1096
  currentLocation: K.currentLocation,
1092
1097
  nextLocation: K.nextLocation
1093
1098
  });
1094
1099
  });
1095
- let z = n.window.document.startViewTransition(() => {
1096
- q(() => s(N));
1100
+ let z = r.window.document.startViewTransition(() => {
1101
+ q(() => l(R));
1097
1102
  });
1098
1103
  z.finished.finally(() => {
1099
1104
  q(() => {
1100
- f(void 0), v(void 0), u(void 0), l({
1105
+ d(void 0), v(void 0), u(void 0), s({
1101
1106
  isTransitioning: !1
1102
1107
  });
1103
1108
  });
1104
1109
  }), q(() => v(z));
1105
1110
  return;
1106
1111
  }
1107
- p ? (c && c.resolve(), p.skipTransition(), b({
1108
- state: N,
1112
+ p ? (c && c.resolve(), p.skipTransition(), N({
1113
+ state: R,
1109
1114
  currentLocation: K.currentLocation,
1110
1115
  nextLocation: K.nextLocation
1111
- })) : (u(N), l({
1116
+ })) : (u(R), s({
1112
1117
  isTransitioning: !0,
1113
1118
  flushSync: !1,
1114
1119
  currentLocation: K.currentLocation,
1115
1120
  nextLocation: K.nextLocation
1116
1121
  }));
1117
- }, [n.window, p, c, y, h]);
1118
- r.useLayoutEffect(() => n.subscribe(E), [n, E]), r.useEffect(() => {
1119
- d.isTransitioning && !d.flushSync && f(new wn());
1120
- }, [d]), r.useEffect(() => {
1121
- if (c && i && n.window) {
1122
- let N = i, F = c.promise, x = n.window.document.startViewTransition(async () => {
1123
- h(() => s(N)), await F;
1122
+ }, [r.window, p, c, y, h]);
1123
+ n.useLayoutEffect(() => r.subscribe(E), [r, E]), n.useEffect(() => {
1124
+ f.isTransitioning && !f.flushSync && d(new Cr());
1125
+ }, [f]), n.useEffect(() => {
1126
+ if (c && i && r.window) {
1127
+ let R = i, F = c.promise, x = r.window.document.startViewTransition(async () => {
1128
+ h(() => l(R)), await F;
1124
1129
  });
1125
1130
  x.finished.finally(() => {
1126
- f(void 0), v(void 0), u(void 0), l({
1131
+ d(void 0), v(void 0), u(void 0), s({
1127
1132
  isTransitioning: !1
1128
1133
  });
1129
1134
  }), v(x);
1130
1135
  }
1131
- }, [h, i, c, n.window]), r.useEffect(() => {
1136
+ }, [h, i, c, r.window]), n.useEffect(() => {
1132
1137
  c && i && a.location.key === i.location.key && c.resolve();
1133
- }, [c, p, a.location, i]), r.useEffect(() => {
1134
- !d.isTransitioning && g && (u(g.state), l({
1138
+ }, [c, p, a.location, i]), n.useEffect(() => {
1139
+ !f.isTransitioning && g && (u(g.state), s({
1135
1140
  isTransitioning: !0,
1136
1141
  flushSync: !1,
1137
1142
  currentLocation: g.currentLocation,
1138
1143
  nextLocation: g.nextLocation
1139
- }), b(void 0));
1140
- }, [d.isTransitioning, g]), r.useEffect(() => {
1141
- process.env.NODE_ENV !== "production" && w(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
1144
+ }), N(void 0));
1145
+ }, [f.isTransitioning, g]), n.useEffect(() => {
1146
+ process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
1142
1147
  }, []);
1143
- let R = r.useMemo(() => ({
1144
- createHref: n.createHref,
1145
- encodeLocation: n.encodeLocation,
1146
- go: (N) => n.navigate(N),
1147
- push: (N, F, x) => n.navigate(N, {
1148
+ let b = n.useMemo(() => ({
1149
+ createHref: r.createHref,
1150
+ encodeLocation: r.encodeLocation,
1151
+ go: (R) => r.navigate(R),
1152
+ push: (R, F, x) => r.navigate(R, {
1148
1153
  state: F,
1149
1154
  preventScrollReset: x == null ? void 0 : x.preventScrollReset
1150
1155
  }),
1151
- replace: (N, F, x) => n.navigate(N, {
1156
+ replace: (R, F, x) => r.navigate(R, {
1152
1157
  replace: !0,
1153
1158
  state: F,
1154
1159
  preventScrollReset: x == null ? void 0 : x.preventScrollReset
1155
1160
  })
1156
- }), [n]), k = n.basename || "/", J = r.useMemo(() => ({
1157
- router: n,
1158
- navigator: R,
1161
+ }), [r]), k = r.basename || "/", J = n.useMemo(() => ({
1162
+ router: r,
1163
+ navigator: b,
1159
1164
  static: !1,
1160
1165
  basename: k
1161
- }), [n, R, k]), re = r.useMemo(() => ({
1162
- v7_relativeSplatPath: n.future.v7_relativeSplatPath
1163
- }), [n.future.v7_relativeSplatPath]);
1164
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(U.Provider, {
1166
+ }), [r, b, k]), ne = n.useMemo(() => ({
1167
+ v7_relativeSplatPath: r.future.v7_relativeSplatPath
1168
+ }), [r.future.v7_relativeSplatPath]);
1169
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
1165
1170
  value: J
1166
- }, /* @__PURE__ */ r.createElement(M.Provider, {
1171
+ }, /* @__PURE__ */ n.createElement(B.Provider, {
1167
1172
  value: a
1168
- }, /* @__PURE__ */ r.createElement(ye.Provider, {
1173
+ }, /* @__PURE__ */ n.createElement(ye.Provider, {
1169
1174
  value: y.current
1170
- }, /* @__PURE__ */ r.createElement(Ee.Provider, {
1171
- value: d
1172
- }, /* @__PURE__ */ r.createElement(H, {
1175
+ }, /* @__PURE__ */ n.createElement(Ee.Provider, {
1176
+ value: f
1177
+ }, /* @__PURE__ */ n.createElement(H, {
1173
1178
  basename: k,
1174
1179
  location: a.location,
1175
1180
  navigationType: a.historyAction,
1176
- navigator: R,
1177
- future: re
1178
- }, a.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ r.createElement(Cn, {
1179
- routes: n.routes,
1180
- future: n.future,
1181
+ navigator: b,
1182
+ future: ne
1183
+ }, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(_r, {
1184
+ routes: r.routes,
1185
+ future: r.future,
1181
1186
  state: a
1182
1187
  }) : t))))), null);
1183
1188
  }
1184
- const Cn = /* @__PURE__ */ r.memo(xn);
1185
- function xn(e) {
1189
+ const _r = /* @__PURE__ */ n.memo(xr);
1190
+ function xr(e) {
1186
1191
  let {
1187
1192
  routes: t,
1188
- future: n,
1193
+ future: r,
1189
1194
  state: o
1190
1195
  } = e;
1191
- return pe(t, void 0, o, n);
1196
+ return pe(t, void 0, o, r);
1192
1197
  }
1193
- function Dn(e) {
1198
+ function Dr(e) {
1194
1199
  let {
1195
1200
  basename: t,
1196
- children: n,
1201
+ children: r,
1197
1202
  future: o,
1198
1203
  window: a
1199
- } = e, s = r.useRef();
1200
- s.current == null && (s.current = nt({
1204
+ } = e, l = n.useRef();
1205
+ l.current == null && (l.current = nt({
1201
1206
  window: a,
1202
1207
  v5Compat: !0
1203
1208
  }));
1204
- let i = s.current, [u, d] = r.useState({
1209
+ let i = l.current, [u, f] = n.useState({
1205
1210
  action: i.action,
1206
1211
  location: i.location
1207
1212
  }), {
1208
- v7_startTransition: l
1209
- } = o || {}, c = r.useCallback((f) => {
1210
- l && A ? A(() => d(f)) : d(f);
1211
- }, [d, l]);
1212
- return r.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ r.createElement(H, {
1213
+ v7_startTransition: s
1214
+ } = o || {}, c = n.useCallback((d) => {
1215
+ s && A ? A(() => f(d)) : f(d);
1216
+ }, [f, s]);
1217
+ return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
1213
1218
  basename: t,
1214
- children: n,
1219
+ children: r,
1215
1220
  location: u.location,
1216
1221
  navigationType: u.action,
1217
1222
  navigator: i,
1218
1223
  future: o
1219
1224
  });
1220
1225
  }
1221
- function On(e) {
1226
+ function Or(e) {
1222
1227
  let {
1223
1228
  basename: t,
1224
- children: n,
1229
+ children: r,
1225
1230
  future: o,
1226
1231
  window: a
1227
- } = e, s = r.useRef();
1228
- s.current == null && (s.current = rt({
1232
+ } = e, l = n.useRef();
1233
+ l.current == null && (l.current = ot({
1229
1234
  window: a,
1230
1235
  v5Compat: !0
1231
1236
  }));
1232
- let i = s.current, [u, d] = r.useState({
1237
+ let i = l.current, [u, f] = n.useState({
1233
1238
  action: i.action,
1234
1239
  location: i.location
1235
1240
  }), {
1236
- v7_startTransition: l
1237
- } = o || {}, c = r.useCallback((f) => {
1238
- l && A ? A(() => d(f)) : d(f);
1239
- }, [d, l]);
1240
- return r.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ r.createElement(H, {
1241
+ v7_startTransition: s
1242
+ } = o || {}, c = n.useCallback((d) => {
1243
+ s && A ? A(() => f(d)) : f(d);
1244
+ }, [f, s]);
1245
+ return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
1241
1246
  basename: t,
1242
- children: n,
1247
+ children: r,
1243
1248
  location: u.location,
1244
1249
  navigationType: u.action,
1245
1250
  navigator: i,
1246
1251
  future: o
1247
1252
  });
1248
1253
  }
1249
- function xt(e) {
1254
+ function Dt(e) {
1250
1255
  let {
1251
1256
  basename: t,
1252
- children: n,
1257
+ children: r,
1253
1258
  future: o,
1254
1259
  history: a
1255
- } = e, [s, i] = r.useState({
1260
+ } = e, [l, i] = n.useState({
1256
1261
  action: a.action,
1257
1262
  location: a.location
1258
1263
  }), {
1259
1264
  v7_startTransition: u
1260
- } = o || {}, d = r.useCallback((l) => {
1261
- u && A ? A(() => i(l)) : i(l);
1265
+ } = o || {}, f = n.useCallback((s) => {
1266
+ u && A ? A(() => i(s)) : i(s);
1262
1267
  }, [i, u]);
1263
- return r.useLayoutEffect(() => a.listen(d), [a, d]), /* @__PURE__ */ r.createElement(H, {
1268
+ return n.useLayoutEffect(() => a.listen(f), [a, f]), /* @__PURE__ */ n.createElement(H, {
1264
1269
  basename: t,
1265
- children: n,
1266
- location: s.location,
1267
- navigationType: s.action,
1270
+ children: r,
1271
+ location: l.location,
1272
+ navigationType: l.action,
1268
1273
  navigator: a,
1269
1274
  future: o
1270
1275
  });
1271
1276
  }
1272
- process.env.NODE_ENV !== "production" && (xt.displayName = "unstable_HistoryRouter");
1273
- const Pn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ r.forwardRef(function(t, n) {
1277
+ process.env.NODE_ENV !== "production" && (Dt.displayName = "unstable_HistoryRouter");
1278
+ const Pr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Lr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ n.forwardRef(function(t, r) {
1274
1279
  let {
1275
1280
  onClick: o,
1276
1281
  relative: a,
1277
- reloadDocument: s,
1282
+ reloadDocument: l,
1278
1283
  replace: i,
1279
1284
  state: u,
1280
- target: d,
1281
- to: l,
1285
+ target: f,
1286
+ to: s,
1282
1287
  preventScrollReset: c,
1283
- unstable_viewTransition: f
1284
- } = t, p = Be(t, pn), {
1288
+ viewTransition: d
1289
+ } = t, p = Me(t, pr), {
1285
1290
  basename: v
1286
- } = r.useContext(S), g, b = !1;
1287
- if (typeof l == "string" && Ln.test(l) && (g = l, Pn))
1291
+ } = n.useContext(S), g, N = !1;
1292
+ if (typeof s == "string" && Lr.test(s) && (g = s, Pr))
1288
1293
  try {
1289
- let E = new URL(window.location.href), R = l.startsWith("//") ? new URL(E.protocol + l) : new URL(l), k = T(R.pathname, v);
1290
- R.origin === E.origin && k != null ? l = k + R.search + R.hash : b = !0;
1294
+ let E = new URL(window.location.href), b = s.startsWith("//") ? new URL(E.protocol + s) : new URL(s), k = T(b.pathname, v);
1295
+ b.origin === E.origin && k != null ? s = k + b.search + b.hash : N = !0;
1291
1296
  } catch {
1292
- process.env.NODE_ENV !== "production" && w(!1, '<Link to="' + l + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1297
+ process.env.NODE_ENV !== "production" && C(!1, '<Link to="' + s + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1293
1298
  }
1294
- let y = De(l, {
1299
+ let y = De(s, {
1295
1300
  relative: a
1296
- }), _ = Lt(l, {
1301
+ }), w = Tt(s, {
1297
1302
  replace: i,
1298
1303
  state: u,
1299
- target: d,
1304
+ target: f,
1300
1305
  preventScrollReset: c,
1301
1306
  relative: a,
1302
- unstable_viewTransition: f
1307
+ viewTransition: d
1303
1308
  });
1304
1309
  function h(E) {
1305
- o && o(E), E.defaultPrevented || _(E);
1310
+ o && o(E), E.defaultPrevented || w(E);
1306
1311
  }
1307
1312
  return (
1308
1313
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1309
- /* @__PURE__ */ r.createElement("a", D({}, p, {
1314
+ /* @__PURE__ */ n.createElement("a", D({}, p, {
1310
1315
  href: g || y,
1311
- onClick: b || s ? o : h,
1312
- ref: n,
1313
- target: d
1316
+ onClick: N || l ? o : h,
1317
+ ref: r,
1318
+ target: f
1314
1319
  }))
1315
1320
  );
1316
1321
  });
1317
1322
  process.env.NODE_ENV !== "production" && (je.displayName = "Link");
1318
- const Dt = /* @__PURE__ */ r.forwardRef(function(t, n) {
1323
+ const Ot = /* @__PURE__ */ n.forwardRef(function(t, r) {
1319
1324
  let {
1320
1325
  "aria-current": o = "page",
1321
1326
  caseSensitive: a = !1,
1322
- className: s = "",
1327
+ className: l = "",
1323
1328
  end: i = !1,
1324
1329
  style: u,
1325
- to: d,
1326
- unstable_viewTransition: l,
1330
+ to: f,
1331
+ viewTransition: s,
1327
1332
  children: c
1328
- } = t, f = Be(t, hn), p = Y(d, {
1329
- relative: f.relative
1330
- }), v = L(), g = r.useContext(M), {
1331
- navigator: b,
1333
+ } = t, d = Me(t, hr), p = Y(f, {
1334
+ relative: d.relative
1335
+ }), v = L(), g = n.useContext(B), {
1336
+ navigator: N,
1332
1337
  basename: y
1333
- } = r.useContext(S), _ = g != null && // Conditional usage is OK here because the usage of a data router is static
1338
+ } = n.useContext(S), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1334
1339
  // eslint-disable-next-line react-hooks/rules-of-hooks
1335
- Vt(p) && l === !0, h = b.encodeLocation ? b.encodeLocation(p).pathname : p.pathname, E = v.pathname, R = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1336
- a || (E = E.toLowerCase(), R = R ? R.toLowerCase() : null, h = h.toLowerCase()), R && y && (R = T(R, y) || R);
1340
+ kt(p) && s === !0, h = N.encodeLocation ? N.encodeLocation(p).pathname : p.pathname, E = v.pathname, b = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1341
+ a || (E = E.toLowerCase(), b = b ? b.toLowerCase() : null, h = h.toLowerCase()), b && y && (b = T(b, y) || b);
1337
1342
  const k = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
1338
- let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/", re = R != null && (R === h || !i && R.startsWith(h) && R.charAt(h.length) === "/"), N = {
1343
+ let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/", ne = b != null && (b === h || !i && b.startsWith(h) && b.charAt(h.length) === "/"), R = {
1339
1344
  isActive: J,
1340
- isPending: re,
1341
- isTransitioning: _
1345
+ isPending: ne,
1346
+ isTransitioning: w
1342
1347
  }, F = J ? o : void 0, x;
1343
- typeof s == "function" ? x = s(N) : x = [s, J ? "active" : null, re ? "pending" : null, _ ? "transitioning" : null].filter(Boolean).join(" ");
1344
- let oe = typeof u == "function" ? u(N) : u;
1345
- return /* @__PURE__ */ r.createElement(je, D({}, f, {
1348
+ typeof l == "function" ? x = l(R) : x = [l, J ? "active" : null, ne ? "pending" : null, w ? "transitioning" : null].filter(Boolean).join(" ");
1349
+ let oe = typeof u == "function" ? u(R) : u;
1350
+ return /* @__PURE__ */ n.createElement(je, D({}, d, {
1346
1351
  "aria-current": F,
1347
1352
  className: x,
1348
- ref: n,
1353
+ ref: r,
1349
1354
  style: oe,
1350
- to: d,
1351
- unstable_viewTransition: l
1352
- }), typeof c == "function" ? c(N) : c);
1355
+ to: f,
1356
+ viewTransition: s
1357
+ }), typeof c == "function" ? c(R) : c);
1353
1358
  });
1354
- process.env.NODE_ENV !== "production" && (Dt.displayName = "NavLink");
1355
- const He = /* @__PURE__ */ r.forwardRef((e, t) => {
1359
+ process.env.NODE_ENV !== "production" && (Ot.displayName = "NavLink");
1360
+ const He = /* @__PURE__ */ n.forwardRef((e, t) => {
1356
1361
  let {
1357
- fetcherKey: n,
1362
+ fetcherKey: r,
1358
1363
  navigate: o,
1359
1364
  reloadDocument: a,
1360
- replace: s,
1365
+ replace: l,
1361
1366
  state: i,
1362
- method: u = se,
1363
- action: d,
1364
- onSubmit: l,
1367
+ method: u = le,
1368
+ action: f,
1369
+ onSubmit: s,
1365
1370
  relative: c,
1366
- preventScrollReset: f,
1367
- unstable_viewTransition: p
1368
- } = e, v = Be(e, mn), g = ze(), b = Ft(d, {
1371
+ preventScrollReset: d,
1372
+ viewTransition: p
1373
+ } = e, v = Me(e, mr), g = ze(), N = Ut(f, {
1369
1374
  relative: c
1370
- }), y = u.toLowerCase() === "get" ? "get" : "post", _ = (h) => {
1371
- if (l && l(h), h.defaultPrevented) return;
1375
+ }), y = u.toLowerCase() === "get" ? "get" : "post", w = (h) => {
1376
+ if (s && s(h), h.defaultPrevented) return;
1372
1377
  h.preventDefault();
1373
- let E = h.nativeEvent.submitter, R = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
1378
+ let E = h.nativeEvent.submitter, b = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
1374
1379
  g(E || h.currentTarget, {
1375
- fetcherKey: n,
1376
- method: R,
1380
+ fetcherKey: r,
1381
+ method: b,
1377
1382
  navigate: o,
1378
- replace: s,
1383
+ replace: l,
1379
1384
  state: i,
1380
1385
  relative: c,
1381
- preventScrollReset: f,
1382
- unstable_viewTransition: p
1386
+ preventScrollReset: d,
1387
+ viewTransition: p
1383
1388
  });
1384
1389
  };
1385
- return /* @__PURE__ */ r.createElement("form", D({
1390
+ return /* @__PURE__ */ n.createElement("form", D({
1386
1391
  ref: t,
1387
1392
  method: y,
1388
- action: b,
1389
- onSubmit: a ? l : _
1393
+ action: N,
1394
+ onSubmit: a ? s : w
1390
1395
  }, v));
1391
1396
  });
1392
1397
  process.env.NODE_ENV !== "production" && (He.displayName = "Form");
1393
- function Ot(e) {
1398
+ function Pt(e) {
1394
1399
  let {
1395
1400
  getKey: t,
1396
- storageKey: n
1401
+ storageKey: r
1397
1402
  } = e;
1398
- return Ut({
1403
+ return Vt({
1399
1404
  getKey: t,
1400
- storageKey: n
1405
+ storageKey: r
1401
1406
  }), null;
1402
1407
  }
1403
- process.env.NODE_ENV !== "production" && (Ot.displayName = "ScrollRestoration");
1408
+ process.env.NODE_ENV !== "production" && (Pt.displayName = "ScrollRestoration");
1404
1409
  var $;
1405
1410
  (function(e) {
1406
1411
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
@@ -1409,204 +1414,208 @@ var ee;
1409
1414
  (function(e) {
1410
1415
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1411
1416
  })(ee || (ee = {}));
1412
- function Pt(e) {
1417
+ function Lt(e) {
1413
1418
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1414
1419
  }
1415
1420
  function ge(e) {
1416
- let t = r.useContext(U);
1417
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Pt(e)) : m(!1)), t;
1421
+ let t = n.useContext(U);
1422
+ return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
1418
1423
  }
1419
1424
  function Ke(e) {
1420
- let t = r.useContext(M);
1421
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Pt(e)) : m(!1)), t;
1425
+ let t = n.useContext(B);
1426
+ return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
1422
1427
  }
1423
- function Lt(e, t) {
1428
+ function Tt(e, t) {
1424
1429
  let {
1425
- target: n,
1430
+ target: r,
1426
1431
  replace: o,
1427
1432
  state: a,
1428
- preventScrollReset: s,
1433
+ preventScrollReset: l,
1429
1434
  relative: i,
1430
- unstable_viewTransition: u
1431
- } = t === void 0 ? {} : t, d = te(), l = L(), c = Y(e, {
1435
+ viewTransition: u
1436
+ } = t === void 0 ? {} : t, f = te(), s = L(), c = Y(e, {
1432
1437
  relative: i
1433
1438
  });
1434
- return r.useCallback((f) => {
1435
- if (ln(f, n)) {
1436
- f.preventDefault();
1437
- let p = o !== void 0 ? o : Q(l) === Q(c);
1438
- d(e, {
1439
+ return n.useCallback((d) => {
1440
+ if (sr(d, r)) {
1441
+ d.preventDefault();
1442
+ let p = o !== void 0 ? o : Q(s) === Q(c);
1443
+ f(e, {
1439
1444
  replace: p,
1440
1445
  state: a,
1441
- preventScrollReset: s,
1446
+ preventScrollReset: l,
1442
1447
  relative: i,
1443
- unstable_viewTransition: u
1448
+ viewTransition: u
1444
1449
  });
1445
1450
  }
1446
- }, [l, d, c, o, a, n, e, s, i, u]);
1451
+ }, [s, f, c, o, a, r, e, l, i, u]);
1447
1452
  }
1448
- function Tn(e) {
1449
- process.env.NODE_ENV !== "production" && w(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
1450
- let t = r.useRef(ce(e)), n = r.useRef(!1), o = L(), a = r.useMemo(() => (
1453
+ function Tr(e) {
1454
+ process.env.NODE_ENV !== "production" && C(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
1455
+ let t = n.useRef(ce(e)), r = n.useRef(!1), o = L(), a = n.useMemo(() => (
1451
1456
  // Only merge in the defaults if we haven't yet called setSearchParams.
1452
1457
  // Once we call that we want those to take precedence, otherwise you can't
1453
1458
  // remove a param with setSearchParams({}) if it has an initial value
1454
- un(o.search, n.current ? null : t.current)
1455
- ), [o.search]), s = te(), i = r.useCallback((u, d) => {
1456
- const l = ce(typeof u == "function" ? u(a) : u);
1457
- n.current = !0, s("?" + l, d);
1458
- }, [s, a]);
1459
+ ur(o.search, r.current ? null : t.current)
1460
+ ), [o.search]), l = te(), i = n.useCallback((u, f) => {
1461
+ const s = ce(typeof u == "function" ? u(a) : u);
1462
+ r.current = !0, l("?" + s, f);
1463
+ }, [l, a]);
1459
1464
  return [a, i];
1460
1465
  }
1461
- function Fn() {
1466
+ function Fr() {
1462
1467
  if (typeof document > "u")
1463
1468
  throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1464
1469
  }
1465
- let Un = 0, Tt = () => "__" + String(++Un) + "__";
1470
+ let Ur = 0, Ft = () => "__" + String(++Ur) + "__";
1466
1471
  function ze() {
1467
1472
  let {
1468
1473
  router: e
1469
1474
  } = ge($.UseSubmit), {
1470
1475
  basename: t
1471
- } = r.useContext(S), n = Fe();
1472
- return r.useCallback(function(o, a) {
1473
- a === void 0 && (a = {}), Fn();
1476
+ } = n.useContext(S), r = Fe();
1477
+ return n.useCallback(function(o, a) {
1478
+ a === void 0 && (a = {}), Fr();
1474
1479
  let {
1475
- action: s,
1480
+ action: l,
1476
1481
  method: i,
1477
1482
  encType: u,
1478
- formData: d,
1479
- body: l
1480
- } = fn(o, t);
1483
+ formData: f,
1484
+ body: s
1485
+ } = fr(o, t);
1481
1486
  if (a.navigate === !1) {
1482
- let c = a.fetcherKey || Tt();
1483
- e.fetch(c, n, a.action || s, {
1487
+ let c = a.fetcherKey || Ft();
1488
+ e.fetch(c, r, a.action || l, {
1484
1489
  preventScrollReset: a.preventScrollReset,
1485
- formData: d,
1486
- body: l,
1490
+ formData: f,
1491
+ body: s,
1487
1492
  formMethod: a.method || i,
1488
1493
  formEncType: a.encType || u,
1489
- unstable_flushSync: a.unstable_flushSync
1494
+ flushSync: a.flushSync
1490
1495
  });
1491
1496
  } else
1492
- e.navigate(a.action || s, {
1497
+ e.navigate(a.action || l, {
1493
1498
  preventScrollReset: a.preventScrollReset,
1494
- formData: d,
1495
- body: l,
1499
+ formData: f,
1500
+ body: s,
1496
1501
  formMethod: a.method || i,
1497
1502
  formEncType: a.encType || u,
1498
1503
  replace: a.replace,
1499
1504
  state: a.state,
1500
- fromRouteId: n,
1501
- unstable_flushSync: a.unstable_flushSync,
1502
- unstable_viewTransition: a.unstable_viewTransition
1505
+ fromRouteId: r,
1506
+ flushSync: a.flushSync,
1507
+ viewTransition: a.viewTransition
1503
1508
  });
1504
- }, [e, t, n]);
1509
+ }, [e, t, r]);
1505
1510
  }
1506
- function Ft(e, t) {
1511
+ function Ut(e, t) {
1507
1512
  let {
1508
- relative: n
1513
+ relative: r
1509
1514
  } = t === void 0 ? {} : t, {
1510
1515
  basename: o
1511
- } = r.useContext(S), a = r.useContext(C);
1516
+ } = n.useContext(S), a = n.useContext(_);
1512
1517
  a || (process.env.NODE_ENV !== "production" ? m(!1, "useFormAction must be used inside a RouteContext") : m(!1));
1513
- let [s] = a.matches.slice(-1), i = D({}, Y(e || ".", {
1514
- relative: n
1518
+ let [l] = a.matches.slice(-1), i = D({}, Y(e || ".", {
1519
+ relative: r
1515
1520
  })), u = L();
1516
1521
  if (e == null) {
1517
1522
  i.search = u.search;
1518
- let d = new URLSearchParams(i.search);
1519
- d.has("index") && d.get("index") === "" && (d.delete("index"), i.search = d.toString() ? "?" + d.toString() : "");
1523
+ let f = new URLSearchParams(i.search), s = f.getAll("index");
1524
+ if (s.some((d) => d === "")) {
1525
+ f.delete("index"), s.filter((p) => p).forEach((p) => f.append("index", p));
1526
+ let d = f.toString();
1527
+ i.search = d ? "?" + d : "";
1528
+ }
1520
1529
  }
1521
- return (!e || e === ".") && s.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : G([o, i.pathname])), Q(i);
1530
+ return (!e || e === ".") && l.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : G([o, i.pathname])), Q(i);
1522
1531
  }
1523
- function Vn(e) {
1532
+ function Vr(e) {
1524
1533
  var t;
1525
1534
  let {
1526
- key: n
1535
+ key: r
1527
1536
  } = e === void 0 ? {} : e, {
1528
1537
  router: o
1529
- } = ge($.UseFetcher), a = Ke(ee.UseFetcher), s = r.useContext(ye), i = r.useContext(C), u = (t = i.matches[i.matches.length - 1]) == null ? void 0 : t.route.id;
1530
- s || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a FetchersContext") : m(!1)), i || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a RouteContext") : m(!1)), u == null && (process.env.NODE_ENV !== "production" ? m(!1, 'useFetcher can only be used on routes that contain a unique "id"') : m(!1));
1531
- let d = $e ? $e() : "", [l, c] = r.useState(n || d);
1532
- n && n !== l ? c(n) : l || c(Tt()), r.useEffect(() => (o.getFetcher(l), () => {
1533
- o.deleteFetcher(l);
1534
- }), [o, l]);
1535
- let f = r.useCallback((h, E) => {
1536
- u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(l, u, h, E);
1537
- }, [l, u, o]), p = ze(), v = r.useCallback((h, E) => {
1538
+ } = ge($.UseFetcher), a = Ke(ee.UseFetcher), l = n.useContext(ye), i = n.useContext(_), u = (t = i.matches[i.matches.length - 1]) == null ? void 0 : t.route.id;
1539
+ l || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a FetchersContext") : m(!1)), i || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a RouteContext") : m(!1)), u == null && (process.env.NODE_ENV !== "production" ? m(!1, 'useFetcher can only be used on routes that contain a unique "id"') : m(!1));
1540
+ let f = $e ? $e() : "", [s, c] = n.useState(r || f);
1541
+ r && r !== s ? c(r) : s || c(Ft()), n.useEffect(() => (o.getFetcher(s), () => {
1542
+ o.deleteFetcher(s);
1543
+ }), [o, s]);
1544
+ let d = n.useCallback((h, E) => {
1545
+ u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(s, u, h, E);
1546
+ }, [s, u, o]), p = ze(), v = n.useCallback((h, E) => {
1538
1547
  p(h, D({}, E, {
1539
1548
  navigate: !1,
1540
- fetcherKey: l
1549
+ fetcherKey: s
1541
1550
  }));
1542
- }, [l, p]), g = r.useMemo(() => {
1543
- let h = /* @__PURE__ */ r.forwardRef((E, R) => /* @__PURE__ */ r.createElement(He, D({}, E, {
1551
+ }, [s, p]), g = n.useMemo(() => {
1552
+ let h = /* @__PURE__ */ n.forwardRef((E, b) => /* @__PURE__ */ n.createElement(He, D({}, E, {
1544
1553
  navigate: !1,
1545
- fetcherKey: l,
1546
- ref: R
1554
+ fetcherKey: s,
1555
+ ref: b
1547
1556
  })));
1548
1557
  return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
1549
- }, [l]), b = a.fetchers.get(l) || Ht, y = s.get(l);
1550
- return r.useMemo(() => D({
1558
+ }, [s]), N = a.fetchers.get(s) || Kt, y = l.get(s);
1559
+ return n.useMemo(() => D({
1551
1560
  Form: g,
1552
1561
  submit: v,
1553
- load: f
1554
- }, b, {
1562
+ load: d
1563
+ }, N, {
1555
1564
  data: y
1556
- }), [g, v, f, b, y]);
1565
+ }), [g, v, d, N, y]);
1557
1566
  }
1558
- function kn() {
1567
+ function kr() {
1559
1568
  let e = Ke(ee.UseFetchers);
1560
1569
  return Array.from(e.fetchers.entries()).map((t) => {
1561
- let [n, o] = t;
1570
+ let [r, o] = t;
1562
1571
  return D({}, o, {
1563
- key: n
1572
+ key: r
1564
1573
  });
1565
1574
  });
1566
1575
  }
1567
1576
  const Je = "react-router-scroll-positions";
1568
1577
  let ie = {};
1569
- function Ut(e) {
1578
+ function Vt(e) {
1570
1579
  let {
1571
1580
  getKey: t,
1572
- storageKey: n
1581
+ storageKey: r
1573
1582
  } = e === void 0 ? {} : e, {
1574
1583
  router: o
1575
1584
  } = ge($.UseScrollRestoration), {
1576
1585
  restoreScrollPosition: a,
1577
- preventScrollReset: s
1586
+ preventScrollReset: l
1578
1587
  } = Ke(ee.UseScrollRestoration), {
1579
1588
  basename: i
1580
- } = r.useContext(S), u = L(), d = Ve(), l = Ue();
1581
- r.useEffect(() => (window.history.scrollRestoration = "manual", () => {
1589
+ } = n.useContext(S), u = L(), f = Ve(), s = Ue();
1590
+ n.useEffect(() => (window.history.scrollRestoration = "manual", () => {
1582
1591
  window.history.scrollRestoration = "auto";
1583
- }), []), An(r.useCallback(() => {
1584
- if (l.state === "idle") {
1585
- let c = (t ? t(u, d) : null) || u.key;
1592
+ }), []), Ar(n.useCallback(() => {
1593
+ if (s.state === "idle") {
1594
+ let c = (t ? t(u, f) : null) || u.key;
1586
1595
  ie[c] = window.scrollY;
1587
1596
  }
1588
1597
  try {
1589
- sessionStorage.setItem(n || Je, JSON.stringify(ie));
1598
+ sessionStorage.setItem(r || Je, JSON.stringify(ie));
1590
1599
  } catch (c) {
1591
- process.env.NODE_ENV !== "production" && w(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
1600
+ process.env.NODE_ENV !== "production" && C(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
1592
1601
  }
1593
1602
  window.history.scrollRestoration = "auto";
1594
- }, [n, t, l.state, u, d])), typeof document < "u" && (r.useLayoutEffect(() => {
1603
+ }, [r, t, s.state, u, f])), typeof document < "u" && (n.useLayoutEffect(() => {
1595
1604
  try {
1596
- let c = sessionStorage.getItem(n || Je);
1605
+ let c = sessionStorage.getItem(r || Je);
1597
1606
  c && (ie = JSON.parse(c));
1598
1607
  } catch {
1599
1608
  }
1600
- }, [n]), r.useLayoutEffect(() => {
1609
+ }, [r]), n.useLayoutEffect(() => {
1601
1610
  let c = t && i !== "/" ? (p, v) => t(
1602
1611
  // Strip the basename to match useLocation()
1603
1612
  D({}, p, {
1604
1613
  pathname: T(p.pathname, i) || p.pathname
1605
1614
  }),
1606
1615
  v
1607
- ) : t, f = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
1608
- return () => f && f();
1609
- }, [o, i, t]), r.useLayoutEffect(() => {
1616
+ ) : t, d = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
1617
+ return () => d && d();
1618
+ }, [o, i, t]), n.useLayoutEffect(() => {
1610
1619
  if (a !== !1) {
1611
1620
  if (typeof a == "number") {
1612
1621
  window.scrollTo(0, a);
@@ -1619,153 +1628,154 @@ function Ut(e) {
1619
1628
  return;
1620
1629
  }
1621
1630
  }
1622
- s !== !0 && window.scrollTo(0, 0);
1631
+ l !== !0 && window.scrollTo(0, 0);
1623
1632
  }
1624
- }, [u, a, s]));
1633
+ }, [u, a, l]));
1625
1634
  }
1626
- function In(e, t) {
1635
+ function Ir(e, t) {
1627
1636
  let {
1628
- capture: n
1637
+ capture: r
1629
1638
  } = t || {};
1630
- r.useEffect(() => {
1631
- let o = n != null ? {
1632
- capture: n
1639
+ n.useEffect(() => {
1640
+ let o = r != null ? {
1641
+ capture: r
1633
1642
  } : void 0;
1634
1643
  return window.addEventListener("beforeunload", e, o), () => {
1635
1644
  window.removeEventListener("beforeunload", e, o);
1636
1645
  };
1637
- }, [e, n]);
1646
+ }, [e, r]);
1638
1647
  }
1639
- function An(e, t) {
1648
+ function Ar(e, t) {
1640
1649
  let {
1641
- capture: n
1650
+ capture: r
1642
1651
  } = {};
1643
- r.useEffect(() => {
1644
- let o = n != null ? {
1645
- capture: n
1652
+ n.useEffect(() => {
1653
+ let o = r != null ? {
1654
+ capture: r
1646
1655
  } : void 0;
1647
1656
  return window.addEventListener("pagehide", e, o), () => {
1648
1657
  window.removeEventListener("pagehide", e, o);
1649
1658
  };
1650
- }, [e, n]);
1659
+ }, [e, r]);
1651
1660
  }
1652
- function Mn(e) {
1661
+ function Br(e) {
1653
1662
  let {
1654
1663
  when: t,
1655
- message: n
1664
+ message: r
1656
1665
  } = e, o = Ae(t);
1657
- r.useEffect(() => {
1658
- o.state === "blocked" && (window.confirm(n) ? setTimeout(o.proceed, 0) : o.reset());
1659
- }, [o, n]), r.useEffect(() => {
1666
+ n.useEffect(() => {
1667
+ o.state === "blocked" && (window.confirm(r) ? setTimeout(o.proceed, 0) : o.reset());
1668
+ }, [o, r]), n.useEffect(() => {
1660
1669
  o.state === "blocked" && !t && o.reset();
1661
1670
  }, [o, t]);
1662
1671
  }
1663
- function Vt(e, t) {
1672
+ function kt(e, t) {
1664
1673
  t === void 0 && (t = {});
1665
- let n = r.useContext(Ee);
1666
- n == null && (process.env.NODE_ENV !== "production" ? m(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : m(!1));
1674
+ let r = n.useContext(Ee);
1675
+ r == null && (process.env.NODE_ENV !== "production" ? m(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : m(!1));
1667
1676
  let {
1668
1677
  basename: o
1669
1678
  } = ge($.useViewTransitionState), a = Y(e, {
1670
1679
  relative: t.relative
1671
1680
  });
1672
- if (!n.isTransitioning)
1681
+ if (!r.isTransitioning)
1673
1682
  return !1;
1674
- let s = T(n.currentLocation.pathname, o) || n.currentLocation.pathname, i = T(n.nextLocation.pathname, o) || n.nextLocation.pathname;
1675
- return X(a.pathname, i) != null || X(a.pathname, s) != null;
1683
+ let l = T(r.currentLocation.pathname, o) || r.currentLocation.pathname, i = T(r.nextLocation.pathname, o) || r.nextLocation.pathname;
1684
+ return X(a.pathname, i) != null || X(a.pathname, l) != null;
1676
1685
  }
1677
- const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1686
+ const Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1678
1687
  __proto__: null,
1679
1688
  AbortedDeferredError: Se,
1680
- Await: _t,
1681
- BrowserRouter: Dn,
1689
+ Await: Ct,
1690
+ BrowserRouter: Dr,
1682
1691
  Form: He,
1683
- HashRouter: On,
1692
+ HashRouter: Or,
1684
1693
  Link: je,
1685
- MemoryRouter: gt,
1686
- NavLink: Dt,
1694
+ MemoryRouter: Nt,
1695
+ NavLink: Ot,
1687
1696
  Navigate: bt,
1688
1697
  get NavigationType() {
1689
1698
  return de;
1690
1699
  },
1691
1700
  Outlet: Rt,
1692
- Route: Me,
1701
+ Route: Be,
1693
1702
  Router: H,
1694
- RouterProvider: Sn,
1695
- Routes: Nt,
1696
- ScrollRestoration: Ot,
1703
+ RouterProvider: Sr,
1704
+ Routes: wt,
1705
+ ScrollRestoration: Pt,
1697
1706
  UNSAFE_DataRouterContext: U,
1698
- UNSAFE_DataRouterStateContext: M,
1699
- UNSAFE_ErrorResponseImpl: ot,
1707
+ UNSAFE_DataRouterStateContext: B,
1708
+ UNSAFE_ErrorResponseImpl: at,
1700
1709
  UNSAFE_FetchersContext: ye,
1701
- UNSAFE_LocationContext: B,
1710
+ UNSAFE_LocationContext: M,
1702
1711
  UNSAFE_NavigationContext: S,
1703
- UNSAFE_RouteContext: C,
1712
+ UNSAFE_RouteContext: _,
1704
1713
  UNSAFE_ViewTransitionContext: Ee,
1705
1714
  UNSAFE_useRouteId: Fe,
1706
- UNSAFE_useScrollRestoration: Ut,
1707
- createBrowserRouter: En,
1708
- createHashRouter: yn,
1709
- createMemoryRouter: St,
1715
+ UNSAFE_useScrollRestoration: Vt,
1716
+ createBrowserRouter: Er,
1717
+ createHashRouter: yr,
1718
+ createMemoryRouter: _t,
1710
1719
  createPath: Q,
1711
1720
  createRoutesFromChildren: W,
1712
1721
  createRoutesFromElements: W,
1713
1722
  createSearchParams: ce,
1714
1723
  defer: Ge,
1715
1724
  generatePath: Xe,
1716
- isRouteErrorResponse: we,
1725
+ isRouteErrorResponse: Ce,
1717
1726
  json: Qe,
1718
1727
  matchPath: X,
1719
- matchRoutes: _e,
1728
+ matchRoutes: we,
1720
1729
  parsePath: fe,
1721
1730
  redirect: Ze,
1722
1731
  redirectDocument: et,
1723
- renderMatches: wt,
1724
- resolvePath: tt,
1725
- unstable_HistoryRouter: xt,
1726
- unstable_usePrompt: Mn,
1727
- unstable_useViewTransitionState: Vt,
1728
- useActionData: vt,
1729
- useAsyncError: Et,
1732
+ renderMatches: St,
1733
+ replace: tt,
1734
+ resolvePath: rt,
1735
+ unstable_HistoryRouter: Dt,
1736
+ unstable_usePrompt: Br,
1737
+ useActionData: Et,
1738
+ useAsyncError: yt,
1730
1739
  useAsyncValue: Ie,
1731
- useBeforeUnload: In,
1740
+ useBeforeUnload: Ir,
1732
1741
  useBlocker: Ae,
1733
- useFetcher: Vn,
1734
- useFetchers: kn,
1735
- useFormAction: Ft,
1742
+ useFetcher: Vr,
1743
+ useFetchers: kr,
1744
+ useFormAction: Ut,
1736
1745
  useHref: De,
1737
1746
  useInRouterContext: V,
1738
- useLinkClickHandler: Lt,
1739
- useLoaderData: ht,
1747
+ useLinkClickHandler: Tt,
1748
+ useLoaderData: mt,
1740
1749
  useLocation: L,
1741
- useMatch: it,
1750
+ useMatch: lt,
1742
1751
  useMatches: Ve,
1743
1752
  useNavigate: te,
1744
1753
  useNavigation: Ue,
1745
- useNavigationType: at,
1754
+ useNavigationType: it,
1746
1755
  useOutlet: Oe,
1747
- useOutletContext: ct,
1748
- useParams: dt,
1756
+ useOutletContext: dt,
1757
+ useParams: ft,
1749
1758
  useResolvedPath: Y,
1750
- useRevalidator: pt,
1759
+ useRevalidator: ht,
1751
1760
  useRouteError: ke,
1752
- useRouteLoaderData: mt,
1761
+ useRouteLoaderData: vt,
1753
1762
  useRoutes: Pe,
1754
- useSearchParams: Tn,
1755
- useSubmit: ze
1763
+ useSearchParams: Tr,
1764
+ useSubmit: ze,
1765
+ useViewTransitionState: kt
1756
1766
  }, Symbol.toStringTag, { value: "Module" }));
1757
1767
  export {
1758
1768
  je as L,
1759
- Dt as N,
1769
+ Ot as N,
1760
1770
  Rt as O,
1761
- Sn as R,
1771
+ Sr as R,
1762
1772
  te as a,
1763
- L as b,
1764
- dt as c,
1773
+ Tr as b,
1774
+ ft as c,
1765
1775
  ke as d,
1766
- jn as e,
1767
- Hn as f,
1776
+ jr as e,
1777
+ Hr as f,
1768
1778
  Ue as g,
1769
- Tn as u
1779
+ L as u
1770
1780
  };
1771
- //# sourceMappingURL=index-BG0g4WW0.js.map
1781
+ //# sourceMappingURL=index-BRCiYFaL.js.map