react-router 7.15.1 → 7.17.0

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 (157) hide show
  1. package/CHANGELOG.md +27 -2
  2. package/dist/development/{browser-3AnU12UI.d.mts → browser-CGcs-0pD.d.mts} +2 -2
  3. package/dist/development/{browser-BOdXz9dK.d.ts → browser-D3uq9sI1.d.ts} +2 -2
  4. package/dist/development/{chunk-4N6VE7H7.mjs → chunk-6CSD65Y2.mjs} +12 -11
  5. package/dist/development/{chunk-RJYABSBD.mjs → chunk-ASILSGTR.mjs} +6 -6
  6. package/dist/development/{chunk-D6LUOGOQ.js → chunk-KFNXW4AL.js} +10 -10
  7. package/dist/{production/chunk-Y6IFXO7V.js → development/chunk-PBLBZ3QU.js} +7 -7
  8. package/dist/development/{chunk-66UKHEGQ.js → chunk-PULC7NLK.js} +100 -99
  9. package/dist/{production/context-ByvtofY2.d.mts → development/context-CmHpk1Ws.d.mts} +3 -3
  10. package/dist/development/{data-BqZ2x964.d.ts → data-D4xhSy90.d.ts} +1 -1
  11. package/dist/{production/data-BVUf681J.d.mts → development/data-U8FS-wNn.d.mts} +1 -1
  12. package/dist/development/dom-export.d.mts +4 -4
  13. package/dist/development/dom-export.d.ts +4 -4
  14. package/dist/development/dom-export.js +30 -30
  15. package/dist/development/dom-export.mjs +5 -5
  16. package/dist/{production/index-react-server-client-BS5F89FR.d.ts → development/index-react-server-client-CwU9bE5R.d.ts} +4 -4
  17. package/dist/{production/index-react-server-client-DY04-103.d.mts → development/index-react-server-client-DPrDrCew.d.mts} +3 -3
  18. package/dist/development/index-react-server-client.d.mts +3 -3
  19. package/dist/development/index-react-server-client.d.ts +3 -3
  20. package/dist/development/index-react-server-client.js +4 -4
  21. package/dist/development/index-react-server-client.mjs +2 -2
  22. package/dist/development/index-react-server.d.mts +1 -1
  23. package/dist/development/index-react-server.d.ts +1 -1
  24. package/dist/development/index-react-server.js +1 -1
  25. package/dist/development/index-react-server.mjs +1 -1
  26. package/dist/development/index.d.mts +18 -12
  27. package/dist/development/index.d.ts +18 -12
  28. package/dist/development/index.js +89 -89
  29. package/dist/development/index.mjs +3 -3
  30. package/dist/{production/instrumentation-cRWWLfsU.d.ts → development/instrumentation-1q4YhLGP.d.ts} +2 -2
  31. package/dist/development/lib/types/internal.d.mts +2 -2
  32. package/dist/development/lib/types/internal.d.ts +2 -2
  33. package/dist/development/lib/types/internal.js +1 -1
  34. package/dist/development/lib/types/internal.mjs +1 -1
  35. package/dist/development/{register-Bsscfj79.d.ts → register-CNAx3TXj.d.ts} +1 -1
  36. package/dist/development/{register-Df8okEea.d.mts → register-CqK96Zfk.d.mts} +1 -1
  37. package/dist/production/{browser-3AnU12UI.d.mts → browser-CGcs-0pD.d.mts} +2 -2
  38. package/dist/production/{browser-BOdXz9dK.d.ts → browser-D3uq9sI1.d.ts} +2 -2
  39. package/dist/production/{chunk-6S4627ZB.mjs → chunk-5TQZEVD5.mjs} +6 -6
  40. package/dist/{development/chunk-4YRVXM2U.js → production/chunk-CTIXC7EV.js} +7 -7
  41. package/dist/production/{chunk-PNZCCTKT.js → chunk-EN242BO4.js} +100 -99
  42. package/dist/production/{chunk-JAKZPQZC.mjs → chunk-OSYEOCBT.mjs} +12 -11
  43. package/dist/production/{chunk-HUBUW7R3.js → chunk-RTRY3JFT.js} +10 -10
  44. package/dist/{development/context-ByvtofY2.d.mts → production/context-CmHpk1Ws.d.mts} +3 -3
  45. package/dist/production/{data-BqZ2x964.d.ts → data-D4xhSy90.d.ts} +1 -1
  46. package/dist/{development/data-BVUf681J.d.mts → production/data-U8FS-wNn.d.mts} +1 -1
  47. package/dist/production/dom-export.d.mts +4 -4
  48. package/dist/production/dom-export.d.ts +4 -4
  49. package/dist/production/dom-export.js +30 -30
  50. package/dist/production/dom-export.mjs +5 -5
  51. package/dist/{development/index-react-server-client-BS5F89FR.d.ts → production/index-react-server-client-CwU9bE5R.d.ts} +4 -4
  52. package/dist/{development/index-react-server-client-DY04-103.d.mts → production/index-react-server-client-DPrDrCew.d.mts} +3 -3
  53. package/dist/production/index-react-server-client.d.mts +3 -3
  54. package/dist/production/index-react-server-client.d.ts +3 -3
  55. package/dist/production/index-react-server-client.js +4 -4
  56. package/dist/production/index-react-server-client.mjs +2 -2
  57. package/dist/production/index-react-server.d.mts +1 -1
  58. package/dist/production/index-react-server.d.ts +1 -1
  59. package/dist/production/index-react-server.js +1 -1
  60. package/dist/production/index-react-server.mjs +1 -1
  61. package/dist/production/index.d.mts +18 -12
  62. package/dist/production/index.d.ts +18 -12
  63. package/dist/production/index.js +89 -89
  64. package/dist/production/index.mjs +3 -3
  65. package/dist/{development/instrumentation-cRWWLfsU.d.ts → production/instrumentation-1q4YhLGP.d.ts} +2 -2
  66. package/dist/production/lib/types/internal.d.mts +2 -2
  67. package/dist/production/lib/types/internal.d.ts +2 -2
  68. package/dist/production/lib/types/internal.js +1 -1
  69. package/dist/production/lib/types/internal.mjs +1 -1
  70. package/dist/production/{register-Bsscfj79.d.ts → register-CNAx3TXj.d.ts} +1 -1
  71. package/dist/production/{register-Df8okEea.d.mts → register-CqK96Zfk.d.mts} +1 -1
  72. package/docs/explanation/backend-for-frontend.md +50 -0
  73. package/docs/explanation/code-splitting.md +61 -0
  74. package/docs/explanation/concurrency.md +135 -0
  75. package/docs/explanation/form-vs-fetcher.md +292 -0
  76. package/docs/explanation/hot-module-replacement.md +137 -0
  77. package/docs/explanation/hydration.md +14 -0
  78. package/docs/explanation/index-query-param.md +86 -0
  79. package/docs/explanation/index.md +4 -0
  80. package/docs/explanation/lazy-route-discovery.md +78 -0
  81. package/docs/explanation/location.md +6 -0
  82. package/docs/explanation/progressive-enhancement.md +150 -0
  83. package/docs/explanation/race-conditions.md +88 -0
  84. package/docs/explanation/react-transitions.md +160 -0
  85. package/docs/explanation/route-matching.md +7 -0
  86. package/docs/explanation/server-client-execution.md +4 -0
  87. package/docs/explanation/sessions-and-cookies.md +465 -0
  88. package/docs/explanation/special-files.md +16 -0
  89. package/docs/explanation/state-management.md +524 -0
  90. package/docs/explanation/styling.md +87 -0
  91. package/docs/explanation/type-safety.md +82 -0
  92. package/docs/how-to/accessibility.md +44 -0
  93. package/docs/how-to/client-data.md +199 -0
  94. package/docs/how-to/data-strategy.md +317 -0
  95. package/docs/how-to/error-boundary.md +231 -0
  96. package/docs/how-to/error-reporting.md +142 -0
  97. package/docs/how-to/fetchers.md +307 -0
  98. package/docs/how-to/file-route-conventions.md +410 -0
  99. package/docs/how-to/file-uploads.md +217 -0
  100. package/docs/how-to/form-validation.md +120 -0
  101. package/docs/how-to/headers.md +164 -0
  102. package/docs/how-to/index.md +4 -0
  103. package/docs/how-to/instrumentation.md +556 -0
  104. package/docs/how-to/meta.md +40 -0
  105. package/docs/how-to/middleware.md +763 -0
  106. package/docs/how-to/navigation-blocking.md +233 -0
  107. package/docs/how-to/optimize-revalidation.md +12 -0
  108. package/docs/how-to/pre-rendering.md +225 -0
  109. package/docs/how-to/presets.md +103 -0
  110. package/docs/how-to/react-server-components.md +899 -0
  111. package/docs/how-to/resource-routes.md +126 -0
  112. package/docs/how-to/route-module-type-safety.md +100 -0
  113. package/docs/how-to/search-params.md +4 -0
  114. package/docs/how-to/security.md +30 -0
  115. package/docs/how-to/server-bundles.md +66 -0
  116. package/docs/how-to/spa.md +120 -0
  117. package/docs/how-to/status.md +63 -0
  118. package/docs/how-to/suspense.md +132 -0
  119. package/docs/how-to/using-handle.md +117 -0
  120. package/docs/how-to/view-transitions.md +237 -0
  121. package/docs/how-to/webhook.md +50 -0
  122. package/docs/index.md +39 -0
  123. package/docs/start/data/actions.md +138 -0
  124. package/docs/start/data/custom.md +198 -0
  125. package/docs/start/data/data-loading.md +44 -0
  126. package/docs/start/data/index.md +4 -0
  127. package/docs/start/data/installation.md +52 -0
  128. package/docs/start/data/navigating.md +12 -0
  129. package/docs/start/data/pending-ui.md +12 -0
  130. package/docs/start/data/route-object.md +268 -0
  131. package/docs/start/data/routing.md +281 -0
  132. package/docs/start/data/testing.md +8 -0
  133. package/docs/start/declarative/index.md +4 -0
  134. package/docs/start/declarative/installation.md +43 -0
  135. package/docs/start/declarative/navigating.md +133 -0
  136. package/docs/start/declarative/routing.md +237 -0
  137. package/docs/start/declarative/url-values.md +65 -0
  138. package/docs/start/framework/actions.md +174 -0
  139. package/docs/start/framework/data-loading.md +201 -0
  140. package/docs/start/framework/deploying.md +96 -0
  141. package/docs/start/framework/index.md +4 -0
  142. package/docs/start/framework/installation.md +41 -0
  143. package/docs/start/framework/navigating.md +182 -0
  144. package/docs/start/framework/pending-ui.md +142 -0
  145. package/docs/start/framework/rendering.md +59 -0
  146. package/docs/start/framework/route-module.md +527 -0
  147. package/docs/start/framework/routing.md +362 -0
  148. package/docs/start/framework/testing.md +133 -0
  149. package/docs/start/index.md +4 -0
  150. package/docs/start/modes.md +201 -0
  151. package/docs/upgrading/component-routes.md +363 -0
  152. package/docs/upgrading/future.md +280 -0
  153. package/docs/upgrading/index.md +4 -0
  154. package/docs/upgrading/remix.md +403 -0
  155. package/docs/upgrading/router-provider.md +442 -0
  156. package/docs/upgrading/v6.md +382 -0
  157. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.15.1
2
+ * react-router v7.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -51,7 +51,7 @@
51
51
 
52
52
 
53
53
 
54
- var _chunkD6LUOGOQjs = require('./chunk-D6LUOGOQ.js');
54
+ var _chunkKFNXW4ALjs = require('./chunk-KFNXW4AL.js');
55
55
 
56
56
  // lib/dom/dom.ts
57
57
  var defaultMethod = "get";
@@ -122,7 +122,7 @@ var supportedFormEncTypes = /* @__PURE__ */ new Set([
122
122
  ]);
123
123
  function getFormEncType(encType) {
124
124
  if (encType != null && !supportedFormEncTypes.has(encType)) {
125
- _chunkD6LUOGOQjs.warning.call(void 0,
125
+ _chunkKFNXW4ALjs.warning.call(void 0,
126
126
  false,
127
127
  `"${encType}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`
128
128
  );
@@ -138,7 +138,7 @@ function getFormSubmissionInfo(target, basename) {
138
138
  let body;
139
139
  if (isFormElement(target)) {
140
140
  let attr = target.getAttribute("action");
141
- action = attr ? _chunkD6LUOGOQjs.stripBasename.call(void 0, attr, basename) : null;
141
+ action = attr ? _chunkKFNXW4ALjs.stripBasename.call(void 0, attr, basename) : null;
142
142
  method = target.getAttribute("method") || defaultMethod;
143
143
  encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
144
144
  formData = new FormData(target);
@@ -150,7 +150,7 @@ function getFormSubmissionInfo(target, basename) {
150
150
  );
151
151
  }
152
152
  let attr = target.getAttribute("formaction") || form.getAttribute("action");
153
- action = attr ? _chunkD6LUOGOQjs.stripBasename.call(void 0, attr, basename) : null;
153
+ action = attr ? _chunkKFNXW4ALjs.stripBasename.call(void 0, attr, basename) : null;
154
154
  method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
155
155
  encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
156
156
  formData = new FormData(form, target);
@@ -187,20 +187,20 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
187
187
  try {
188
188
  if (isBrowser) {
189
189
  window.__reactRouterVersion = // @ts-expect-error
190
- "7.15.1";
190
+ "7.17.0";
191
191
  }
192
192
  } catch (e) {
193
193
  }
194
194
  function createBrowserRouter(routes, opts) {
195
- return _chunkD6LUOGOQjs.createRouter.call(void 0, {
195
+ return _chunkKFNXW4ALjs.createRouter.call(void 0, {
196
196
  basename: _optionalChain([opts, 'optionalAccess', _2 => _2.basename]),
197
197
  getContext: _optionalChain([opts, 'optionalAccess', _3 => _3.getContext]),
198
198
  future: _optionalChain([opts, 'optionalAccess', _4 => _4.future]),
199
- history: _chunkD6LUOGOQjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _5 => _5.window]) }),
199
+ history: _chunkKFNXW4ALjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _5 => _5.window]) }),
200
200
  hydrationData: _optionalChain([opts, 'optionalAccess', _6 => _6.hydrationData]) || parseHydrationData(),
201
201
  routes,
202
- mapRouteProperties: _chunkD6LUOGOQjs.mapRouteProperties,
203
- hydrationRouteProperties: _chunkD6LUOGOQjs.hydrationRouteProperties,
202
+ mapRouteProperties: _chunkKFNXW4ALjs.mapRouteProperties,
203
+ hydrationRouteProperties: _chunkKFNXW4ALjs.hydrationRouteProperties,
204
204
  dataStrategy: _optionalChain([opts, 'optionalAccess', _7 => _7.dataStrategy]),
205
205
  patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _8 => _8.patchRoutesOnNavigation]),
206
206
  window: _optionalChain([opts, 'optionalAccess', _9 => _9.window]),
@@ -208,15 +208,15 @@ function createBrowserRouter(routes, opts) {
208
208
  }).initialize();
209
209
  }
210
210
  function createHashRouter(routes, opts) {
211
- return _chunkD6LUOGOQjs.createRouter.call(void 0, {
211
+ return _chunkKFNXW4ALjs.createRouter.call(void 0, {
212
212
  basename: _optionalChain([opts, 'optionalAccess', _11 => _11.basename]),
213
213
  getContext: _optionalChain([opts, 'optionalAccess', _12 => _12.getContext]),
214
214
  future: _optionalChain([opts, 'optionalAccess', _13 => _13.future]),
215
- history: _chunkD6LUOGOQjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _14 => _14.window]) }),
215
+ history: _chunkKFNXW4ALjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _14 => _14.window]) }),
216
216
  hydrationData: _optionalChain([opts, 'optionalAccess', _15 => _15.hydrationData]) || parseHydrationData(),
217
217
  routes,
218
- mapRouteProperties: _chunkD6LUOGOQjs.mapRouteProperties,
219
- hydrationRouteProperties: _chunkD6LUOGOQjs.hydrationRouteProperties,
218
+ mapRouteProperties: _chunkKFNXW4ALjs.mapRouteProperties,
219
+ hydrationRouteProperties: _chunkKFNXW4ALjs.hydrationRouteProperties,
220
220
  dataStrategy: _optionalChain([opts, 'optionalAccess', _16 => _16.dataStrategy]),
221
221
  patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _17 => _17.patchRoutesOnNavigation]),
222
222
  window: _optionalChain([opts, 'optionalAccess', _18 => _18.window]),
@@ -239,7 +239,7 @@ function deserializeErrors(errors) {
239
239
  let serialized = {};
240
240
  for (let [key, val] of entries) {
241
241
  if (val && val.__type === "RouteErrorResponse") {
242
- serialized[key] = new (0, _chunkD6LUOGOQjs.ErrorResponseImpl)(
242
+ serialized[key] = new (0, _chunkKFNXW4ALjs.ErrorResponseImpl)(
243
243
  val.status,
244
244
  val.statusText,
245
245
  val.data,
@@ -276,7 +276,7 @@ function BrowserRouter({
276
276
  }) {
277
277
  let historyRef = React.useRef();
278
278
  if (historyRef.current == null) {
279
- historyRef.current = _chunkD6LUOGOQjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
279
+ historyRef.current = _chunkKFNXW4ALjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
280
280
  }
281
281
  let history = historyRef.current;
282
282
  let [state, setStateImpl] = React.useState({
@@ -295,7 +295,7 @@ function BrowserRouter({
295
295
  );
296
296
  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
297
297
  return /* @__PURE__ */ React.createElement(
298
- _chunkD6LUOGOQjs.Router,
298
+ _chunkKFNXW4ALjs.Router,
299
299
  {
300
300
  basename,
301
301
  children,
@@ -314,7 +314,7 @@ function HashRouter({
314
314
  }) {
315
315
  let historyRef = React.useRef();
316
316
  if (historyRef.current == null) {
317
- historyRef.current = _chunkD6LUOGOQjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
317
+ historyRef.current = _chunkKFNXW4ALjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
318
318
  }
319
319
  let history = historyRef.current;
320
320
  let [state, setStateImpl] = React.useState({
@@ -333,7 +333,7 @@ function HashRouter({
333
333
  );
334
334
  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
335
335
  return /* @__PURE__ */ React.createElement(
336
- _chunkD6LUOGOQjs.Router,
336
+ _chunkKFNXW4ALjs.Router,
337
337
  {
338
338
  basename,
339
339
  children,
@@ -366,7 +366,7 @@ function HistoryRouter({
366
366
  );
367
367
  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
368
368
  return /* @__PURE__ */ React.createElement(
369
- _chunkD6LUOGOQjs.Router,
369
+ _chunkKFNXW4ALjs.Router,
370
370
  {
371
371
  basename,
372
372
  children,
@@ -396,26 +396,26 @@ var Link = React.forwardRef(
396
396
  defaultShouldRevalidate,
397
397
  ...rest
398
398
  }, forwardedRef) {
399
- let { basename, navigator, useTransitions } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
399
+ let { basename, navigator, useTransitions } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
400
400
  let isAbsolute = typeof to === "string" && ABSOLUTE_URL_REGEX.test(to);
401
- let parsed = _chunkD6LUOGOQjs.parseToInfo.call(void 0, to, basename);
401
+ let parsed = _chunkKFNXW4ALjs.parseToInfo.call(void 0, to, basename);
402
402
  to = parsed.to;
403
- let href = _chunkD6LUOGOQjs.useHref.call(void 0, to, { relative });
404
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
403
+ let href = _chunkKFNXW4ALjs.useHref.call(void 0, to, { relative });
404
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
405
405
  let maskedHref = null;
406
406
  if (mask) {
407
- let resolved = _chunkD6LUOGOQjs.resolveTo.call(void 0,
407
+ let resolved = _chunkKFNXW4ALjs.resolveTo.call(void 0,
408
408
  mask,
409
409
  [],
410
410
  location.mask ? location.mask.pathname : "/",
411
411
  true
412
412
  );
413
413
  if (basename !== "/") {
414
- resolved.pathname = resolved.pathname === "/" ? basename : _chunkD6LUOGOQjs.joinPaths.call(void 0, [basename, resolved.pathname]);
414
+ resolved.pathname = resolved.pathname === "/" ? basename : _chunkKFNXW4ALjs.joinPaths.call(void 0, [basename, resolved.pathname]);
415
415
  }
416
416
  maskedHref = navigator.createHref(resolved);
417
417
  }
418
- let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkD6LUOGOQjs.usePrefetchBehavior.call(void 0,
418
+ let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkKFNXW4ALjs.usePrefetchBehavior.call(void 0,
419
419
  prefetch,
420
420
  rest
421
421
  );
@@ -446,13 +446,13 @@ var Link = React.forwardRef(
446
446
  ...prefetchHandlers,
447
447
  href: (isSpaLink ? maskedHref : void 0) || parsed.absoluteURL || href,
448
448
  onClick: isSpaLink ? handleClick : onClick,
449
- ref: _chunkD6LUOGOQjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
449
+ ref: _chunkKFNXW4ALjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
450
450
  target,
451
451
  "data-discover": !isAbsolute && discover === "render" ? "true" : void 0
452
452
  }
453
453
  )
454
454
  );
455
- return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React.createElement(React.Fragment, null, link, /* @__PURE__ */ React.createElement(_chunkD6LUOGOQjs.PrefetchPageLinks, { page: href })) : link;
455
+ return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React.createElement(React.Fragment, null, link, /* @__PURE__ */ React.createElement(_chunkKFNXW4ALjs.PrefetchPageLinks, { page: href })) : link;
456
456
  }
457
457
  );
458
458
  Link.displayName = "Link";
@@ -468,10 +468,10 @@ var NavLink = React.forwardRef(
468
468
  children,
469
469
  ...rest
470
470
  }, ref) {
471
- let path = _chunkD6LUOGOQjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
472
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
473
- let routerState = React.useContext(_chunkD6LUOGOQjs.DataRouterStateContext);
474
- let { navigator, basename } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
471
+ let path = _chunkKFNXW4ALjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
472
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
473
+ let routerState = React.useContext(_chunkKFNXW4ALjs.DataRouterStateContext);
474
+ let { navigator, basename } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
475
475
  let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static
476
476
  // eslint-disable-next-line react-hooks/rules-of-hooks
477
477
  useViewTransitionState(path) && viewTransition === true;
@@ -484,7 +484,7 @@ var NavLink = React.forwardRef(
484
484
  toPathname = toPathname.toLowerCase();
485
485
  }
486
486
  if (nextLocationPathname && basename) {
487
- nextLocationPathname = _chunkD6LUOGOQjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
487
+ nextLocationPathname = _chunkKFNXW4ALjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
488
488
  }
489
489
  const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length;
490
490
  let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/";
@@ -540,7 +540,7 @@ var Form = React.forwardRef(
540
540
  defaultShouldRevalidate,
541
541
  ...props
542
542
  }, forwardedRef) => {
543
- let { useTransitions } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
543
+ let { useTransitions } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
544
544
  let submit = useSubmit();
545
545
  let formAction = useFormAction(action, { relative });
546
546
  let formMethod = method.toLowerCase() === "get" ? "get" : "post";
@@ -587,10 +587,10 @@ function ScrollRestoration({
587
587
  storageKey,
588
588
  ...props
589
589
  }) {
590
- let remixContext = React.useContext(_chunkD6LUOGOQjs.FrameworkContext);
591
- let { basename } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
592
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
593
- let matches = _chunkD6LUOGOQjs.useMatches.call(void 0, );
590
+ let remixContext = React.useContext(_chunkKFNXW4ALjs.FrameworkContext);
591
+ let { basename } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
592
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
593
+ let matches = _chunkKFNXW4ALjs.useMatches.call(void 0, );
594
594
  useScrollRestoration({ getKey, storageKey });
595
595
  let ssrKey = React.useMemo(
596
596
  () => {
@@ -632,9 +632,9 @@ function ScrollRestoration({
632
632
  ...props,
633
633
  suppressHydrationWarning: true,
634
634
  dangerouslySetInnerHTML: {
635
- __html: `(${restoreScroll})(${_chunkD6LUOGOQjs.escapeHtml.call(void 0,
635
+ __html: `(${restoreScroll})(${_chunkKFNXW4ALjs.escapeHtml.call(void 0,
636
636
  JSON.stringify(storageKey || SCROLL_RESTORATION_STORAGE_KEY)
637
- )}, ${_chunkD6LUOGOQjs.escapeHtml.call(void 0, JSON.stringify(ssrKey))})`
637
+ )}, ${_chunkKFNXW4ALjs.escapeHtml.call(void 0, JSON.stringify(ssrKey))})`
638
638
  }
639
639
  }
640
640
  );
@@ -644,13 +644,13 @@ function getDataRouterConsoleError(hookName) {
644
644
  return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
645
645
  }
646
646
  function useDataRouterContext(hookName) {
647
- let ctx = React.useContext(_chunkD6LUOGOQjs.DataRouterContext);
648
- _chunkD6LUOGOQjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
647
+ let ctx = React.useContext(_chunkKFNXW4ALjs.DataRouterContext);
648
+ _chunkKFNXW4ALjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
649
649
  return ctx;
650
650
  }
651
651
  function useDataRouterState(hookName) {
652
- let state = React.useContext(_chunkD6LUOGOQjs.DataRouterStateContext);
653
- _chunkD6LUOGOQjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
652
+ let state = React.useContext(_chunkKFNXW4ALjs.DataRouterStateContext);
653
+ _chunkKFNXW4ALjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
654
654
  return state;
655
655
  }
656
656
  function useLinkClickHandler(to, {
@@ -664,14 +664,14 @@ function useLinkClickHandler(to, {
664
664
  defaultShouldRevalidate,
665
665
  useTransitions
666
666
  } = {}) {
667
- let navigate = _chunkD6LUOGOQjs.useNavigate.call(void 0, );
668
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
669
- let path = _chunkD6LUOGOQjs.useResolvedPath.call(void 0, to, { relative });
667
+ let navigate = _chunkKFNXW4ALjs.useNavigate.call(void 0, );
668
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
669
+ let path = _chunkKFNXW4ALjs.useResolvedPath.call(void 0, to, { relative });
670
670
  return React.useCallback(
671
671
  (event) => {
672
672
  if (shouldProcessLinkClick(event, target)) {
673
673
  event.preventDefault();
674
- let replace = replaceProp !== void 0 ? replaceProp : _chunkD6LUOGOQjs.createPath.call(void 0, location) === _chunkD6LUOGOQjs.createPath.call(void 0, path);
674
+ let replace = replaceProp !== void 0 ? replaceProp : _chunkKFNXW4ALjs.createPath.call(void 0, location) === _chunkKFNXW4ALjs.createPath.call(void 0, path);
675
675
  let doNavigate = () => navigate(to, {
676
676
  replace,
677
677
  mask,
@@ -706,13 +706,13 @@ function useLinkClickHandler(to, {
706
706
  );
707
707
  }
708
708
  function useSearchParams(defaultInit) {
709
- _chunkD6LUOGOQjs.warning.call(void 0,
709
+ _chunkKFNXW4ALjs.warning.call(void 0,
710
710
  typeof URLSearchParams !== "undefined",
711
711
  `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.`
712
712
  );
713
713
  let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));
714
714
  let hasSetSearchParamsRef = React.useRef(false);
715
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
715
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
716
716
  let searchParams = React.useMemo(
717
717
  () => (
718
718
  // Only merge in the defaults if we haven't yet called setSearchParams.
@@ -725,7 +725,7 @@ function useSearchParams(defaultInit) {
725
725
  ),
726
726
  [location.search]
727
727
  );
728
- let navigate = _chunkD6LUOGOQjs.useNavigate.call(void 0, );
728
+ let navigate = _chunkKFNXW4ALjs.useNavigate.call(void 0, );
729
729
  let setSearchParams = React.useCallback(
730
730
  (nextInit, navigateOptions) => {
731
731
  const newSearchParams = createSearchParams(
@@ -742,8 +742,8 @@ var fetcherId = 0;
742
742
  var getUniqueFetcherId = () => `__${String(++fetcherId)}__`;
743
743
  function useSubmit() {
744
744
  let { router } = useDataRouterContext("useSubmit" /* UseSubmit */);
745
- let { basename } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
746
- let currentRouteId = _chunkD6LUOGOQjs.useRouteId.call(void 0, );
745
+ let { basename } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
746
+ let currentRouteId = _chunkKFNXW4ALjs.useRouteId.call(void 0, );
747
747
  let routerFetch = router.fetch;
748
748
  let routerNavigate = router.navigate;
749
749
  return React.useCallback(
@@ -783,12 +783,12 @@ function useSubmit() {
783
783
  );
784
784
  }
785
785
  function useFormAction(action, { relative } = {}) {
786
- let { basename } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
787
- let routeContext = React.useContext(_chunkD6LUOGOQjs.RouteContext);
788
- _chunkD6LUOGOQjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
786
+ let { basename } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
787
+ let routeContext = React.useContext(_chunkKFNXW4ALjs.RouteContext);
788
+ _chunkKFNXW4ALjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
789
789
  let [match] = routeContext.matches.slice(-1);
790
- let path = { ..._chunkD6LUOGOQjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
791
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
790
+ let path = { ..._chunkKFNXW4ALjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
791
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
792
792
  if (action == null) {
793
793
  path.search = location.search;
794
794
  let params = new URLSearchParams(path.search);
@@ -805,21 +805,21 @@ function useFormAction(action, { relative } = {}) {
805
805
  path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
806
806
  }
807
807
  if (basename !== "/") {
808
- path.pathname = path.pathname === "/" ? basename : _chunkD6LUOGOQjs.joinPaths.call(void 0, [basename, path.pathname]);
808
+ path.pathname = path.pathname === "/" ? basename : _chunkKFNXW4ALjs.joinPaths.call(void 0, [basename, path.pathname]);
809
809
  }
810
- return _chunkD6LUOGOQjs.createPath.call(void 0, path);
810
+ return _chunkKFNXW4ALjs.createPath.call(void 0, path);
811
811
  }
812
812
  function useFetcher({
813
813
  key
814
814
  } = {}) {
815
815
  let { router } = useDataRouterContext("useFetcher" /* UseFetcher */);
816
816
  let state = useDataRouterState("useFetcher" /* UseFetcher */);
817
- let fetcherData = React.useContext(_chunkD6LUOGOQjs.FetchersContext);
818
- let route = React.useContext(_chunkD6LUOGOQjs.RouteContext);
817
+ let fetcherData = React.useContext(_chunkKFNXW4ALjs.FetchersContext);
818
+ let route = React.useContext(_chunkKFNXW4ALjs.RouteContext);
819
819
  let routeId = _optionalChain([route, 'access', _23 => _23.matches, 'access', _24 => _24[route.matches.length - 1], 'optionalAccess', _25 => _25.route, 'access', _26 => _26.id]);
820
- _chunkD6LUOGOQjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
821
- _chunkD6LUOGOQjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
822
- _chunkD6LUOGOQjs.invariant.call(void 0,
820
+ _chunkKFNXW4ALjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
821
+ _chunkKFNXW4ALjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
822
+ _chunkKFNXW4ALjs.invariant.call(void 0,
823
823
  routeId != null,
824
824
  `useFetcher can only be used on routes that contain a unique "id"`
825
825
  );
@@ -835,7 +835,7 @@ function useFetcher({
835
835
  }, [deleteFetcher, getFetcher, fetcherKey]);
836
836
  let load = React.useCallback(
837
837
  async (href, opts) => {
838
- _chunkD6LUOGOQjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
838
+ _chunkKFNXW4ALjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
839
839
  await routerFetch(fetcherKey, routeId, href, opts);
840
840
  },
841
841
  [fetcherKey, routeId, routerFetch]
@@ -864,7 +864,7 @@ function useFetcher({
864
864
  FetcherForm2.displayName = "fetcher.Form";
865
865
  return FetcherForm2;
866
866
  }, [fetcherKey]);
867
- let fetcher = state.fetchers.get(fetcherKey) || _chunkD6LUOGOQjs.IDLE_FETCHER;
867
+ let fetcher = state.fetchers.get(fetcherKey) || _chunkKFNXW4ALjs.IDLE_FETCHER;
868
868
  let data = fetcherData.get(fetcherKey);
869
869
  let fetcherWithComponents = React.useMemo(
870
870
  () => ({
@@ -898,7 +898,7 @@ function getScrollRestorationKey(location, matches, basename, getKey) {
898
898
  key = getKey(
899
899
  {
900
900
  ...location,
901
- pathname: _chunkD6LUOGOQjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
901
+ pathname: _chunkKFNXW4ALjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
902
902
  },
903
903
  matches
904
904
  );
@@ -919,10 +919,10 @@ function useScrollRestoration({
919
919
  let { restoreScrollPosition, preventScrollReset } = useDataRouterState(
920
920
  "useScrollRestoration" /* UseScrollRestoration */
921
921
  );
922
- let { basename } = React.useContext(_chunkD6LUOGOQjs.NavigationContext);
923
- let location = _chunkD6LUOGOQjs.useLocation.call(void 0, );
924
- let matches = _chunkD6LUOGOQjs.useMatches.call(void 0, );
925
- let navigation = _chunkD6LUOGOQjs.useNavigation.call(void 0, );
922
+ let { basename } = React.useContext(_chunkKFNXW4ALjs.NavigationContext);
923
+ let location = _chunkKFNXW4ALjs.useLocation.call(void 0, );
924
+ let matches = _chunkKFNXW4ALjs.useMatches.call(void 0, );
925
+ let navigation = _chunkKFNXW4ALjs.useNavigation.call(void 0, );
926
926
  React.useEffect(() => {
927
927
  window.history.scrollRestoration = "manual";
928
928
  return () => {
@@ -941,7 +941,7 @@ function useScrollRestoration({
941
941
  JSON.stringify(savedScrollPositions)
942
942
  );
943
943
  } catch (error) {
944
- _chunkD6LUOGOQjs.warning.call(void 0,
944
+ _chunkKFNXW4ALjs.warning.call(void 0,
945
945
  false,
946
946
  `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${error}).`
947
947
  );
@@ -988,7 +988,7 @@ function useScrollRestoration({
988
988
  }
989
989
  }
990
990
  } catch (e2) {
991
- _chunkD6LUOGOQjs.warning.call(void 0,
991
+ _chunkKFNXW4ALjs.warning.call(void 0,
992
992
  false,
993
993
  `"${location.hash.slice(
994
994
  1
@@ -1026,7 +1026,7 @@ function usePrompt({
1026
1026
  when,
1027
1027
  message
1028
1028
  }) {
1029
- let blocker = _chunkD6LUOGOQjs.useBlocker.call(void 0, when);
1029
+ let blocker = _chunkKFNXW4ALjs.useBlocker.call(void 0, when);
1030
1030
  React.useEffect(() => {
1031
1031
  if (blocker.state === "blocked") {
1032
1032
  let proceed = window.confirm(message);
@@ -1044,21 +1044,21 @@ function usePrompt({
1044
1044
  }, [blocker, when]);
1045
1045
  }
1046
1046
  function useViewTransitionState(to, { relative } = {}) {
1047
- let vtContext = React.useContext(_chunkD6LUOGOQjs.ViewTransitionContext);
1048
- _chunkD6LUOGOQjs.invariant.call(void 0,
1047
+ let vtContext = React.useContext(_chunkKFNXW4ALjs.ViewTransitionContext);
1048
+ _chunkKFNXW4ALjs.invariant.call(void 0,
1049
1049
  vtContext != null,
1050
1050
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1051
1051
  );
1052
1052
  let { basename } = useDataRouterContext(
1053
1053
  "useViewTransitionState" /* useViewTransitionState */
1054
1054
  );
1055
- let path = _chunkD6LUOGOQjs.useResolvedPath.call(void 0, to, { relative });
1055
+ let path = _chunkKFNXW4ALjs.useResolvedPath.call(void 0, to, { relative });
1056
1056
  if (!vtContext.isTransitioning) {
1057
1057
  return false;
1058
1058
  }
1059
- let currentPath = _chunkD6LUOGOQjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1060
- let nextPath = _chunkD6LUOGOQjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1061
- return _chunkD6LUOGOQjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkD6LUOGOQjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1059
+ let currentPath = _chunkKFNXW4ALjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1060
+ let nextPath = _chunkKFNXW4ALjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1061
+ return _chunkKFNXW4ALjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkKFNXW4ALjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1062
1062
  }
1063
1063
 
1064
1064
  // lib/dom/server.tsx
@@ -1069,7 +1069,7 @@ function StaticRouter({
1069
1069
  location: locationProp = "/"
1070
1070
  }) {
1071
1071
  if (typeof locationProp === "string") {
1072
- locationProp = _chunkD6LUOGOQjs.parsePath.call(void 0, locationProp);
1072
+ locationProp = _chunkKFNXW4ALjs.parsePath.call(void 0, locationProp);
1073
1073
  }
1074
1074
  let action = "POP" /* Pop */;
1075
1075
  let location = {
@@ -1082,7 +1082,7 @@ function StaticRouter({
1082
1082
  };
1083
1083
  let staticNavigator = getStatelessNavigator();
1084
1084
  return /* @__PURE__ */ React2.createElement(
1085
- _chunkD6LUOGOQjs.Router,
1085
+ _chunkKFNXW4ALjs.Router,
1086
1086
  {
1087
1087
  basename,
1088
1088
  children,
@@ -1100,7 +1100,7 @@ function StaticRouterProvider({
1100
1100
  hydrate = true,
1101
1101
  nonce
1102
1102
  }) {
1103
- _chunkD6LUOGOQjs.invariant.call(void 0,
1103
+ _chunkKFNXW4ALjs.invariant.call(void 0,
1104
1104
  router && context,
1105
1105
  "You must provide `router` and `context` to <StaticRouterProvider>"
1106
1106
  );
@@ -1119,12 +1119,12 @@ function StaticRouterProvider({
1119
1119
  actionData: context.actionData,
1120
1120
  errors: serializeErrors(context.errors)
1121
1121
  };
1122
- let json = _chunkD6LUOGOQjs.escapeHtml.call(void 0, JSON.stringify(JSON.stringify(data)));
1122
+ let json = _chunkKFNXW4ALjs.escapeHtml.call(void 0, JSON.stringify(JSON.stringify(data)));
1123
1123
  hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
1124
1124
  }
1125
1125
  let { state } = dataRouterContext.router;
1126
- return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(_chunkD6LUOGOQjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React2.createElement(_chunkD6LUOGOQjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React2.createElement(_chunkD6LUOGOQjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React2.createElement(_chunkD6LUOGOQjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React2.createElement(
1127
- _chunkD6LUOGOQjs.Router,
1126
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(_chunkKFNXW4ALjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React2.createElement(_chunkKFNXW4ALjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React2.createElement(_chunkKFNXW4ALjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React2.createElement(_chunkKFNXW4ALjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React2.createElement(
1127
+ _chunkKFNXW4ALjs.Router,
1128
1128
  {
1129
1129
  basename: dataRouterContext.basename,
1130
1130
  location: state.location,
@@ -1134,7 +1134,7 @@ function StaticRouterProvider({
1134
1134
  useTransitions: false
1135
1135
  },
1136
1136
  /* @__PURE__ */ React2.createElement(
1137
- _chunkD6LUOGOQjs.DataRoutes,
1137
+ _chunkKFNXW4ALjs.DataRoutes,
1138
1138
  {
1139
1139
  manifest: router.manifest,
1140
1140
  routes: router.routes,
@@ -1157,7 +1157,7 @@ function serializeErrors(errors) {
1157
1157
  let entries = Object.entries(errors);
1158
1158
  let serialized = {};
1159
1159
  for (let [key, val] of entries) {
1160
- if (_chunkD6LUOGOQjs.isRouteErrorResponse.call(void 0, val)) {
1160
+ if (_chunkKFNXW4ALjs.isRouteErrorResponse.call(void 0, val)) {
1161
1161
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
1162
1162
  } else if (val instanceof Error) {
1163
1163
  serialized[key] = {
@@ -1207,16 +1207,16 @@ function getStatelessNavigator() {
1207
1207
  };
1208
1208
  }
1209
1209
  function createStaticHandler2(routes, opts) {
1210
- return _chunkD6LUOGOQjs.createStaticHandler.call(void 0, routes, {
1210
+ return _chunkKFNXW4ALjs.createStaticHandler.call(void 0, routes, {
1211
1211
  ...opts,
1212
- mapRouteProperties: _chunkD6LUOGOQjs.mapRouteProperties
1212
+ mapRouteProperties: _chunkKFNXW4ALjs.mapRouteProperties
1213
1213
  });
1214
1214
  }
1215
1215
  function createStaticRouter(routes, context, opts = {}) {
1216
1216
  let manifest = {};
1217
- let dataRoutes = _chunkD6LUOGOQjs.convertRoutesToDataRoutes.call(void 0,
1217
+ let dataRoutes = _chunkKFNXW4ALjs.convertRoutesToDataRoutes.call(void 0,
1218
1218
  routes,
1219
- _chunkD6LUOGOQjs.mapRouteProperties,
1219
+ _chunkKFNXW4ALjs.mapRouteProperties,
1220
1220
  void 0,
1221
1221
  manifest
1222
1222
  );
@@ -1236,6 +1236,7 @@ function createStaticRouter(routes, context, opts = {}) {
1236
1236
  return {
1237
1237
  v8_middleware: false,
1238
1238
  v8_passThroughRequests: false,
1239
+ v8_trailingSlashAwareDataRequests: false,
1239
1240
  ..._optionalChain([opts, 'optionalAccess', _29 => _29.future])
1240
1241
  };
1241
1242
  },
@@ -1249,7 +1250,7 @@ function createStaticRouter(routes, context, opts = {}) {
1249
1250
  errors: context.errors,
1250
1251
  initialized: true,
1251
1252
  renderFallback: false,
1252
- navigation: _chunkD6LUOGOQjs.IDLE_NAVIGATION,
1253
+ navigation: _chunkKFNXW4ALjs.IDLE_NAVIGATION,
1253
1254
  restoreScrollPosition: null,
1254
1255
  preventScrollReset: false,
1255
1256
  revalidation: "idle",
@@ -1290,7 +1291,7 @@ function createStaticRouter(routes, context, opts = {}) {
1290
1291
  createHref,
1291
1292
  encodeLocation,
1292
1293
  getFetcher() {
1293
- return _chunkD6LUOGOQjs.IDLE_FETCHER;
1294
+ return _chunkKFNXW4ALjs.IDLE_FETCHER;
1294
1295
  },
1295
1296
  deleteFetcher() {
1296
1297
  throw msg("deleteFetcher");
@@ -1302,7 +1303,7 @@ function createStaticRouter(routes, context, opts = {}) {
1302
1303
  throw msg("dispose");
1303
1304
  },
1304
1305
  getBlocker() {
1305
- return _chunkD6LUOGOQjs.IDLE_BLOCKER;
1306
+ return _chunkKFNXW4ALjs.IDLE_BLOCKER;
1306
1307
  },
1307
1308
  deleteBlocker() {
1308
1309
  throw msg("deleteBlocker");
@@ -1320,10 +1321,10 @@ function createStaticRouter(routes, context, opts = {}) {
1320
1321
  };
1321
1322
  }
1322
1323
  function createHref(to) {
1323
- return typeof to === "string" ? to : _chunkD6LUOGOQjs.createPath.call(void 0, to);
1324
+ return typeof to === "string" ? to : _chunkKFNXW4ALjs.createPath.call(void 0, to);
1324
1325
  }
1325
1326
  function encodeLocation(to) {
1326
- let href = typeof to === "string" ? to : _chunkD6LUOGOQjs.createPath.call(void 0, to);
1327
+ let href = typeof to === "string" ? to : _chunkKFNXW4ALjs.createPath.call(void 0, to);
1327
1328
  href = href.replace(/ $/, "%20");
1328
1329
  let encoded = ABSOLUTE_URL_REGEX2.test(href) ? new URL(href) : new URL(href, "http://localhost");
1329
1330
  return {
@@ -1,4 +1,4 @@
1
- import { m as HTMLFormMethod, n as FormEncType, o as LoaderFunctionArgs, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, r as RouteObject, s as History, t as MaybePromise, u as MapRoutePropertiesFunction, v as Action, L as Location, w as DataRouteMatch, x as Submission, y as RouteData, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, I as RouteBranch, J as RouteManifest, U as UIMatch, T as To, K as Path, P as Params, O as InitialEntry, Q as NonIndexRouteObject, V as LazyRouteFunction, W as IndexRouteObject, X as RouteMatch, Y as TrackedPromise } from './data-BVUf681J.mjs';
1
+ import { m as HTMLFormMethod, n as FormEncType, o as LoaderFunctionArgs, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, r as RouteObject, s as History, t as MaybePromise, u as MapRoutePropertiesFunction, v as Action, L as Location, w as DataRouteMatch, x as Submission, y as RouteData, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, I as RouteBranch, J as RouteManifest, U as UIMatch, T as To, K as Path, P as Params, O as InitialEntry, Q as NonIndexRouteObject, V as LazyRouteFunction, W as IndexRouteObject, X as RouteMatch, Y as TrackedPromise } from './data-U8FS-wNn.mjs';
2
2
  import * as React from 'react';
3
3
 
4
4
  type ServerInstrumentation = {
@@ -896,7 +896,7 @@ interface RouterProviderProps {
896
896
  * and is only present for render errors.
897
897
  *
898
898
  * ```tsx
899
- * <RouterProvider onError=(error, info) => {
899
+ * <RouterProvider onError={(error, info) => {
900
900
  * let { location, params, pattern, errorInfo } = info;
901
901
  * console.error(error, location, errorInfo);
902
902
  * reportToErrorService(error, location, errorInfo);
@@ -1768,4 +1768,4 @@ interface RouteContextObject {
1768
1768
  }
1769
1769
  declare const RouteContext: React.Context<RouteContextObject>;
1770
1770
 
1771
- export { createRoutesFromElements as $, AwaitContextProvider as A, type BlockerFunction as B, type ClientInstrumentation as C, type RouteProps as D, type RouterProps as E, type Fetcher as F, type GetScrollPositionFunction as G, type HydrationState as H, type InstrumentRequestHandlerFunction as I, type RoutesProps as J, Await as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateOptions as N, type OutletProps as O, type PathRouteProps as P, MemoryRouter as Q, type RouterInit as R, type StaticHandler as S, Navigate as T, Outlet as U, Route as V, Router as W, RouterProvider as X, Routes as Y, createMemoryRouter as Z, createRoutesFromChildren as _, type RouterProviderProps as a, renderMatches as a0, createRouter as a1, DataRouterContext as a2, DataRouterStateContext as a3, FetchersContext as a4, LocationContext as a5, NavigationContext as a6, RouteContext as a7, ViewTransitionContext as a8, hydrationRouteProperties as a9, mapRouteProperties as aa, WithComponentProps as ab, withComponentProps as ac, WithHydrateFallbackProps as ad, withHydrateFallbackProps as ae, WithErrorBoundaryProps as af, withErrorBoundaryProps as ag, type FutureConfig as ah, type CreateStaticHandlerOptions as ai, type ClientOnErrorFunction as b, type Router$1 as c, type NavigationStates as d, type Blocker as e, type RelativeRoutingType as f, type Navigation as g, type RouterState as h, type GetScrollRestorationKeyFunction as i, type StaticHandlerContext as j, type RouterSubscriber as k, type RouterNavigateOptions as l, type RouterFetchOptions as m, type RevalidationState as n, type ServerInstrumentation as o, type InstrumentRouterFunction as p, type InstrumentRouteFunction as q, type InstrumentationHandlerResult as r, IDLE_NAVIGATION as s, IDLE_FETCHER as t, IDLE_BLOCKER as u, type Navigator as v, type AwaitProps as w, type IndexRouteProps as x, type MemoryRouterProps as y, type NavigateProps as z };
1771
+ export { createRoutesFromElements as $, AwaitContextProvider as A, type BlockerFunction as B, type ClientInstrumentation as C, type RouteProps as D, type RouterProps as E, type Fetcher as F, type GetScrollPositionFunction as G, type HydrationState as H, type InstrumentRequestHandlerFunction as I, type RoutesProps as J, Await as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateOptions as N, type OutletProps as O, type PathRouteProps as P, MemoryRouter as Q, type RouterInit as R, type StaticHandler as S, Navigate as T, Outlet as U, Route as V, Router as W, RouterProvider as X, Routes as Y, createMemoryRouter as Z, createRoutesFromChildren as _, type RouterProviderProps as a, renderMatches as a0, createRouter as a1, DataRouterContext as a2, DataRouterStateContext as a3, FetchersContext as a4, LocationContext as a5, NavigationContext as a6, RouteContext as a7, ViewTransitionContext as a8, hydrationRouteProperties as a9, mapRouteProperties as aa, WithComponentProps as ab, withComponentProps as ac, WithHydrateFallbackProps as ad, withHydrateFallbackProps as ae, WithErrorBoundaryProps as af, withErrorBoundaryProps as ag, type FutureConfig as ah, type CreateStaticHandlerOptions as ai, type ClientOnErrorFunction as b, type Router$1 as c, type NavigationStates as d, type Blocker as e, type RelativeRoutingType as f, type RouterState as g, type GetScrollRestorationKeyFunction as h, type StaticHandlerContext as i, type Navigation as j, type RouterSubscriber as k, type RouterNavigateOptions as l, type RouterFetchOptions as m, type RevalidationState as n, type ServerInstrumentation as o, type InstrumentRouterFunction as p, type InstrumentRouteFunction as q, type InstrumentationHandlerResult as r, IDLE_NAVIGATION as s, IDLE_FETCHER as t, IDLE_BLOCKER as u, type Navigator as v, type AwaitProps as w, type IndexRouteProps as x, type MemoryRouterProps as y, type NavigateProps as z };
@@ -1693,7 +1693,7 @@ type MetaDescriptor = {
1693
1693
  httpEquiv: string;
1694
1694
  content: string;
1695
1695
  } | {
1696
- "script:ld+json": LdJsonObject;
1696
+ "script:ld+json": LdJsonObject | LdJsonObject[];
1697
1697
  } | {
1698
1698
  tagName: "meta" | "link";
1699
1699
  [name: string]: string;
@@ -1693,7 +1693,7 @@ type MetaDescriptor = {
1693
1693
  httpEquiv: string;
1694
1694
  content: string;
1695
1695
  } | {
1696
- "script:ld+json": LdJsonObject;
1696
+ "script:ld+json": LdJsonObject | LdJsonObject[];
1697
1697
  } | {
1698
1698
  tagName: "meta" | "link";
1699
1699
  [name: string]: string;