react-router 0.0.0-experimental-cb0fdf114 → 0.0.0-experimental-689d76079

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 (72) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/development/{browser-C9Ar1yxG.d.ts → browser-C-UvoYvi.d.ts} +2 -2
  3. package/dist/development/{browser-vtIR1Kpe.d.mts → browser-I6n6wVSO.d.mts} +2 -2
  4. package/dist/development/{chunk-C2BCPNNB.js → chunk-64IGXH5S.js} +73 -60
  5. package/dist/{production/chunk-TVHB74EG.js → development/chunk-E4C63BHH.js} +7 -7
  6. package/dist/development/{chunk-N5N2QD3Q.mjs → chunk-N6IZKBC5.mjs} +3 -3
  7. package/dist/development/{chunk-L7VOOA4V.mjs → chunk-RPWK4TB6.mjs} +36 -23
  8. package/dist/development/{chunk-ZE7HRIRF.js → chunk-WIMVKWVX.js} +99 -99
  9. package/dist/{production/context-phCt_zmH.d.mts → development/context-DGGUoDIu.d.mts} +1 -1
  10. package/dist/development/dom-export.d.mts +4 -4
  11. package/dist/development/dom-export.d.ts +4 -4
  12. package/dist/development/dom-export.js +27 -27
  13. package/dist/development/dom-export.mjs +3 -3
  14. package/dist/{production/index-react-server-client-C41e-M56.d.ts → development/index-react-server-client-BBd0A0TL.d.ts} +7 -5
  15. package/dist/{production/index-react-server-client-DB0NZKUQ.d.mts → development/index-react-server-client-BjhKIe3u.d.mts} +7 -5
  16. package/dist/development/index-react-server-client.d.mts +3 -3
  17. package/dist/development/index-react-server-client.d.ts +3 -3
  18. package/dist/development/index-react-server-client.js +4 -4
  19. package/dist/development/index-react-server-client.mjs +2 -2
  20. package/dist/development/index-react-server.d.mts +6 -0
  21. package/dist/development/index-react-server.d.ts +6 -0
  22. package/dist/development/index-react-server.js +9 -6
  23. package/dist/development/index-react-server.mjs +9 -6
  24. package/dist/development/index.d.mts +11 -11
  25. package/dist/development/index.d.ts +11 -11
  26. package/dist/development/index.js +96 -96
  27. package/dist/development/index.mjs +3 -3
  28. package/dist/{production/instrumentation-BYr6ff5D.d.ts → development/instrumentation-g0dG8UL0.d.ts} +1 -1
  29. package/dist/development/lib/types/internal.d.mts +2 -2
  30. package/dist/development/lib/types/internal.d.ts +2 -2
  31. package/dist/development/lib/types/internal.js +1 -1
  32. package/dist/development/lib/types/internal.mjs +1 -1
  33. package/dist/development/{register-CTxsJBKQ.d.mts → register-D9d2sMQ7.d.mts} +1 -1
  34. package/dist/development/{register-CkcGwv27.d.ts → register-DcBltf5q.d.ts} +1 -1
  35. package/dist/development/{routeModules-CA7kSxJJ.d.ts → routeModules-7rtk67cd.d.ts} +32 -11
  36. package/dist/development/{routeModules-BRrCYrSL.d.mts → routeModules-BW4a8k3I.d.mts} +32 -11
  37. package/dist/production/{browser-C9Ar1yxG.d.ts → browser-C-UvoYvi.d.ts} +2 -2
  38. package/dist/production/{browser-vtIR1Kpe.d.mts → browser-I6n6wVSO.d.mts} +2 -2
  39. package/dist/production/{chunk-BUU6CIKQ.mjs → chunk-5PRXMKWZ.mjs} +3 -3
  40. package/dist/production/{chunk-AS4FL2MB.js → chunk-NA4ZUJK5.js} +73 -60
  41. package/dist/{development/chunk-3UD6OXWZ.js → production/chunk-UNN6ZJ6W.js} +7 -7
  42. package/dist/production/{chunk-4OARA26X.js → chunk-UZZ2OU6Q.js} +99 -99
  43. package/dist/production/{chunk-PDPTMKPS.mjs → chunk-VFF3M6RU.mjs} +36 -23
  44. package/dist/{development/context-phCt_zmH.d.mts → production/context-DGGUoDIu.d.mts} +1 -1
  45. package/dist/production/dom-export.d.mts +4 -4
  46. package/dist/production/dom-export.d.ts +4 -4
  47. package/dist/production/dom-export.js +27 -27
  48. package/dist/production/dom-export.mjs +3 -3
  49. package/dist/{development/index-react-server-client-C41e-M56.d.ts → production/index-react-server-client-BBd0A0TL.d.ts} +7 -5
  50. package/dist/{development/index-react-server-client-DB0NZKUQ.d.mts → production/index-react-server-client-BjhKIe3u.d.mts} +7 -5
  51. package/dist/production/index-react-server-client.d.mts +3 -3
  52. package/dist/production/index-react-server-client.d.ts +3 -3
  53. package/dist/production/index-react-server-client.js +4 -4
  54. package/dist/production/index-react-server-client.mjs +2 -2
  55. package/dist/production/index-react-server.d.mts +6 -0
  56. package/dist/production/index-react-server.d.ts +6 -0
  57. package/dist/production/index-react-server.js +9 -6
  58. package/dist/production/index-react-server.mjs +9 -6
  59. package/dist/production/index.d.mts +11 -11
  60. package/dist/production/index.d.ts +11 -11
  61. package/dist/production/index.js +96 -96
  62. package/dist/production/index.mjs +3 -3
  63. package/dist/{development/instrumentation-BYr6ff5D.d.ts → production/instrumentation-g0dG8UL0.d.ts} +1 -1
  64. package/dist/production/lib/types/internal.d.mts +2 -2
  65. package/dist/production/lib/types/internal.d.ts +2 -2
  66. package/dist/production/lib/types/internal.js +1 -1
  67. package/dist/production/lib/types/internal.mjs +1 -1
  68. package/dist/production/{register-CTxsJBKQ.d.mts → register-D9d2sMQ7.d.mts} +1 -1
  69. package/dist/production/{register-CkcGwv27.d.ts → register-DcBltf5q.d.ts} +1 -1
  70. package/dist/production/{routeModules-CA7kSxJJ.d.ts → routeModules-7rtk67cd.d.ts} +32 -11
  71. package/dist/production/{routeModules-BRrCYrSL.d.mts → routeModules-BW4a8k3I.d.mts} +32 -11
  72. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-cb0fdf114
2
+ * react-router v0.0.0-experimental-689d76079
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -723,8 +723,7 @@ function generatePath(originalPath, params = {}) {
723
723
  const segments = path.split(/\/+/).map((segment, index, array) => {
724
724
  const isLastSegment = index === array.length - 1;
725
725
  if (isLastSegment && segment === "*") {
726
- const star = "*";
727
- return stringify2(params[star]);
726
+ return stringify2(params["*"]);
728
727
  }
729
728
  const keyMatch = segment.match(/^:([\w-]+)(\??)(.*)/);
730
729
  if (keyMatch) {
@@ -845,7 +844,7 @@ function resolvePath(to, fromPathname = "/") {
845
844
  } = typeof to === "string" ? parsePath(to) : to;
846
845
  let pathname;
847
846
  if (toPathname) {
848
- toPathname = toPathname.replace(/\/\/+/g, "/");
847
+ toPathname = removeDoubleSlashes(toPathname);
849
848
  if (toPathname.startsWith("/")) {
850
849
  pathname = resolvePathname(toPathname.substring(1), "/");
851
850
  } else {
@@ -861,7 +860,7 @@ function resolvePath(to, fromPathname = "/") {
861
860
  };
862
861
  }
863
862
  function resolvePathname(relativePath, fromPathname) {
864
- let segments = fromPathname.replace(/\/+$/, "").split("/");
863
+ let segments = removeTrailingSlash(fromPathname).split("/");
865
864
  let relativeSegments = relativePath.split("/");
866
865
  relativeSegments.forEach((segment) => {
867
866
  if (segment === "..") {
@@ -932,8 +931,10 @@ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative = fal
932
931
  }
933
932
  return path;
934
933
  }
935
- var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/");
936
- var normalizePathname = (pathname) => pathname.replace(/\/+$/, "").replace(/^\/*/, "/");
934
+ var removeDoubleSlashes = (path) => path.replace(/\/\/+/g, "/");
935
+ var joinPaths = (paths) => removeDoubleSlashes(paths.join("/"));
936
+ var removeTrailingSlash = (path) => path.replace(/\/+$/, "");
937
+ var normalizePathname = (pathname) => removeTrailingSlash(pathname).replace(/^\/*/, "/");
937
938
  var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
938
939
  var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
939
940
  var DataWithResponseInit = class {
@@ -987,7 +988,8 @@ function isRouteErrorResponse(error) {
987
988
  return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
988
989
  }
989
990
  function getRoutePattern(matches) {
990
- return matches.map((m) => m.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
991
+ let parts = matches.map((m) => m.route.path).filter(Boolean);
992
+ return joinPaths(parts) || "/";
991
993
  }
992
994
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
993
995
  function parseToInfo(_to, basename) {
@@ -2656,6 +2658,14 @@ function createRouter(init) {
2656
2658
  key
2657
2659
  );
2658
2660
  let result = results[match.route.id];
2661
+ if (!result) {
2662
+ for (let match2 of matches) {
2663
+ if (results[match2.route.id]) {
2664
+ result = results[match2.route.id];
2665
+ break;
2666
+ }
2667
+ }
2668
+ }
2659
2669
  if (fetchControllers.get(key) === abortController) {
2660
2670
  fetchControllers.delete(key);
2661
2671
  }
@@ -5022,7 +5032,7 @@ function normalizeRedirectLocation(location, currentUrl, basename, historyInstan
5022
5032
  }
5023
5033
  let isSameBasename = stripBasename(url.pathname, basename) != null;
5024
5034
  if (url.origin === currentUrl.origin && isSameBasename) {
5025
- return url.pathname + url.search + url.hash;
5035
+ return removeDoubleSlashes(url.pathname) + url.search + url.hash;
5026
5036
  }
5027
5037
  }
5028
5038
  try {
@@ -5732,7 +5742,7 @@ function useOutlet(context) {
5732
5742
  function useParams() {
5733
5743
  let { matches } = React2.useContext(RouteContext);
5734
5744
  let routeMatch = matches[matches.length - 1];
5735
- return routeMatch ? routeMatch.params : {};
5745
+ return routeMatch?.params ?? {};
5736
5746
  }
5737
5747
  function useResolvedPath(to, { relative } = {}) {
5738
5748
  let { matches } = React2.useContext(RouteContext);
@@ -6503,6 +6513,16 @@ function RouterProvider({
6503
6513
  ]
6504
6514
  );
6505
6515
  React3.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
6516
+ let initialized = state.initialized;
6517
+ React3.useLayoutEffect(() => {
6518
+ if (!initialized && router.state.initialized) {
6519
+ setState(router.state, {
6520
+ deletedFetchers: [],
6521
+ flushSync: false,
6522
+ newErrors: null
6523
+ });
6524
+ }
6525
+ }, [initialized, setState, router.state]);
6506
6526
  React3.useEffect(() => {
6507
6527
  if (vtContext.isTransitioning && !vtContext.flushSync) {
6508
6528
  setRenderDfd(new Deferred());
@@ -7302,9 +7322,6 @@ async function stringify(stack) {
7302
7322
  deferred[index] = input;
7303
7323
  } else if (input instanceof Error) {
7304
7324
  str[index] = `["${TYPE_ERROR}",${JSON.stringify(input.message)}`;
7305
- if (input.name !== "Error") {
7306
- str[index] += `,${JSON.stringify(input.name)}`;
7307
- }
7308
7325
  str[index] += "]";
7309
7326
  } else if (Object.getPrototypeOf(input) === null) {
7310
7327
  str[index] = `["${TYPE_NULL_OBJECT}",{${partsForObj(input)}}]`;
@@ -7369,7 +7386,6 @@ function isPlainObject2(thing) {
7369
7386
  }
7370
7387
 
7371
7388
  // vendor/turbo-stream-v2/unflatten.ts
7372
- var globalObj = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : void 0;
7373
7389
  function unflatten(parsed) {
7374
7390
  const { hydrated, values } = this;
7375
7391
  if (typeof parsed === "number") return hydrate.call(this, parsed);
@@ -7512,8 +7528,8 @@ function hydrate(index) {
7512
7528
  }
7513
7529
  continue;
7514
7530
  case TYPE_ERROR:
7515
- const [, message, errorType] = value;
7516
- let error = errorType && globalObj && globalObj[errorType] ? new globalObj[errorType](message) : new Error(message);
7531
+ const [, message] = value;
7532
+ let error = new Error(message);
7517
7533
  hydrated[index2] = error;
7518
7534
  set(error);
7519
7535
  continue;
@@ -8219,9 +8235,9 @@ function singleFetchUrl(reqUrl, basename, trailingSlashAware, extension) {
8219
8235
  if (url.pathname === "/") {
8220
8236
  url.pathname = `_root.${extension}`;
8221
8237
  } else if (basename && stripBasename(url.pathname, basename) === "/") {
8222
- url.pathname = `${basename.replace(/\/$/, "")}/_root.${extension}`;
8238
+ url.pathname = `${removeTrailingSlash(basename)}/_root.${extension}`;
8223
8239
  } else {
8224
- url.pathname = `${url.pathname.replace(/\/$/, "")}.${extension}`;
8240
+ url.pathname = `${removeTrailingSlash(url.pathname)}.${extension}`;
8225
8241
  }
8226
8242
  }
8227
8243
  return url;
@@ -9177,10 +9193,7 @@ function useFogOFWarDiscovery(router, manifest, routeModules, ssr, routeDiscover
9177
9193
  }
9178
9194
  function getManifestPath(_manifestPath, basename) {
9179
9195
  let manifestPath = _manifestPath || "/__manifest";
9180
- if (basename == null) {
9181
- return manifestPath;
9182
- }
9183
- return `${basename}${manifestPath}`.replace(/\/+/g, "/");
9196
+ return basename == null ? manifestPath : joinPaths([basename, manifestPath]);
9184
9197
  }
9185
9198
  var MANIFEST_VERSION_STORAGE_KEY = "react-router-manifest-version";
9186
9199
  async function fetchAndApplyManifestPatches(paths, errorReloadPath, manifest, routeModules, ssr, isSpaMode, basename, manifestPath, patchRoutes, signal) {
@@ -9970,7 +9983,7 @@ var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "un
9970
9983
  try {
9971
9984
  if (isBrowser2) {
9972
9985
  window.__reactRouterVersion = // @ts-expect-error
9973
- "0.0.0-experimental-cb0fdf114";
9986
+ "0.0.0-experimental-689d76079";
9974
9987
  }
9975
9988
  } catch (e) {
9976
9989
  }
@@ -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, U as UIMatch, T as To, I as Path, P as Params, J as InitialEntry, K as NonIndexRouteObject, O as LazyRouteFunction, Q as IndexRouteObject, V as RouteMatch, W as TrackedPromise } from './routeModules-BRrCYrSL.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, U as UIMatch, T as To, I as Path, P as Params, J as InitialEntry, K as NonIndexRouteObject, O as LazyRouteFunction, Q as IndexRouteObject, V as RouteMatch, W as TrackedPromise } from './routeModules-BW4a8k3I.mjs';
2
2
  import * as React from 'react';
3
3
 
4
4
  type unstable_ServerInstrumentation = {
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
- import { a as RouterProviderProps$1, R as RouterInit, u as unstable_ClientInstrumentation, C as ClientOnErrorFunction } from './context-phCt_zmH.mjs';
3
- export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-vtIR1Kpe.mjs';
4
- import './routeModules-BRrCYrSL.mjs';
2
+ import { a as RouterProviderProps$1, R as RouterInit, u as unstable_ClientInstrumentation, C as ClientOnErrorFunction } from './context-DGGUoDIu.mjs';
3
+ export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-I6n6wVSO.mjs';
4
+ import './routeModules-BW4a8k3I.mjs';
5
5
 
6
6
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
7
- declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
+ declare function RouterProvider(props: RouterProviderProps): React.JSX.Element;
8
8
 
9
9
  /**
10
10
  * Props for the {@link dom.HydratedRouter} component.
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { RouterProviderProps as RouterProviderProps$1, RouterInit, ClientOnErrorFunction } from 'react-router';
3
- import { u as unstable_ClientInstrumentation } from './instrumentation-BYr6ff5D.js';
4
- export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-C9Ar1yxG.js';
5
- import './routeModules-CA7kSxJJ.js';
3
+ import { u as unstable_ClientInstrumentation } from './instrumentation-g0dG8UL0.js';
4
+ export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-C-UvoYvi.js';
5
+ import './routeModules-7rtk67cd.js';
6
6
 
7
7
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
8
- declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
8
+ declare function RouterProvider(props: RouterProviderProps): React.JSX.Element;
9
9
 
10
10
  /**
11
11
  * Props for the {@link dom.HydratedRouter} component.
@@ -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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 v0.0.0-experimental-cb0fdf114
2
+ * react-router v0.0.0-experimental-689d76079
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -13,7 +13,7 @@
13
13
 
14
14
 
15
15
 
16
- var _chunkTVHB74EGjs = require('./chunk-TVHB74EG.js');
16
+ var _chunkUNN6ZJ6Wjs = require('./chunk-UNN6ZJ6W.js');
17
17
 
18
18
 
19
19
 
@@ -33,7 +33,7 @@ var _chunkTVHB74EGjs = require('./chunk-TVHB74EG.js');
33
33
 
34
34
 
35
35
 
36
- var _chunkAS4FL2MBjs = require('./chunk-AS4FL2MB.js');
36
+ var _chunkNA4ZUJK5js = require('./chunk-NA4ZUJK5.js');
37
37
 
38
38
  // lib/dom-export/dom-router-provider.tsx
39
39
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
@@ -213,7 +213,7 @@ function HydratedRouter(props) {
213
213
  }, []);
214
214
  React2.useEffect(() => {
215
215
  if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
216
- document.querySelectorAll(`[${_chunkAS4FL2MBjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
216
+ document.querySelectorAll(`[${_chunkNA4ZUJK5js.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
217
217
  }
218
218
  }, [criticalCss]);
219
219
  let [location2, setLocation] = React2.useState(router.state.location);
@@ -392,7 +392,7 @@ function createRouterFromPayload({
392
392
  };
393
393
  if (payload.type !== "render") throw new Error("Invalid payload type");
394
394
  globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
395
- _chunkTVHB74EGjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
395
+ _chunkUNN6ZJ6Wjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
396
396
  let routes = payload.matches.reduceRight((previous, match) => {
397
397
  const route = createRouteFromServerManifest(
398
398
  match,
@@ -406,12 +406,12 @@ function createRouterFromPayload({
406
406
  return [route];
407
407
  }, []);
408
408
  let applyPatchesPromise;
409
- globalVar.__reactRouterDataRouter = _chunkAS4FL2MBjs.createRouter.call(void 0, {
409
+ globalVar.__reactRouterDataRouter = _chunkNA4ZUJK5js.createRouter.call(void 0, {
410
410
  routes,
411
411
  getContext,
412
412
  basename: payload.basename,
413
- history: _chunkAS4FL2MBjs.createBrowserHistory.call(void 0, ),
414
- hydrationData: _chunkTVHB74EGjs.getHydrationData.call(void 0, {
413
+ history: _chunkNA4ZUJK5js.createBrowserHistory.call(void 0, ),
414
+ hydrationData: _chunkUNN6ZJ6Wjs.getHydrationData.call(void 0, {
415
415
  state: {
416
416
  loaderData: payload.loaderData,
417
417
  actionData: payload.actionData,
@@ -420,7 +420,7 @@ function createRouterFromPayload({
420
420
  routes,
421
421
  getRouteInfo: (routeId) => {
422
422
  let match = payload.matches.find((m) => m.id === routeId);
423
- _chunkAS4FL2MBjs.invariant.call(void 0, match, "Route not found in payload");
423
+ _chunkNA4ZUJK5js.invariant.call(void 0, match, "Route not found in payload");
424
424
  return {
425
425
  clientLoader: match.clientLoader,
426
426
  hasLoader: match.hasLoader,
@@ -535,9 +535,9 @@ function createRouterFromPayload({
535
535
  routeModules: globalVar.__reactRouterRouteModules
536
536
  };
537
537
  }
538
- var renderedRoutesContext = _chunkAS4FL2MBjs.createContext.call(void 0, );
538
+ var renderedRoutesContext = _chunkNA4ZUJK5js.createContext.call(void 0, );
539
539
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
540
- let dataStrategy = _chunkAS4FL2MBjs.getSingleFetchDataStrategyImpl.call(void 0,
540
+ let dataStrategy = _chunkNA4ZUJK5js.getSingleFetchDataStrategyImpl.call(void 0,
541
541
  getRouter,
542
542
  (match) => {
543
543
  let M = match;
@@ -595,20 +595,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
595
595
  function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
596
596
  return async (args, basename, trailingSlashAware, targetRoutes) => {
597
597
  let { request, context } = args;
598
- let url = _chunkAS4FL2MBjs.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
598
+ let url = _chunkNA4ZUJK5js.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
599
599
  if (request.method === "GET") {
600
- url = _chunkAS4FL2MBjs.stripIndexParam.call(void 0, url);
600
+ url = _chunkNA4ZUJK5js.stripIndexParam.call(void 0, url);
601
601
  if (targetRoutes) {
602
602
  url.searchParams.set("_routes", targetRoutes.join(","));
603
603
  }
604
604
  }
605
605
  let res = await fetchImplementation(
606
- new Request(url, await _chunkAS4FL2MBjs.createRequestInit.call(void 0, request))
606
+ new Request(url, await _chunkNA4ZUJK5js.createRequestInit.call(void 0, request))
607
607
  );
608
608
  if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
609
- throw new (0, _chunkAS4FL2MBjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
609
+ throw new (0, _chunkNA4ZUJK5js.ErrorResponseImpl)(res.status, res.statusText, await res.text());
610
610
  }
611
- _chunkAS4FL2MBjs.invariant.call(void 0, res.body, "No response body to decode");
611
+ _chunkNA4ZUJK5js.invariant.call(void 0, res.body, "No response body to decode");
612
612
  try {
613
613
  const payload = await createFromReadableStream(res.body, {
614
614
  temporaryReferences: void 0
@@ -632,7 +632,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
632
632
  }
633
633
  context.get(renderedRoutesContext).push(...payload.matches);
634
634
  let results = { routes: {} };
635
- const dataKey = _chunkAS4FL2MBjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
635
+ const dataKey = _chunkNA4ZUJK5js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
636
636
  for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
637
637
  results.routes[routeId] = { data };
638
638
  }
@@ -665,7 +665,7 @@ function RSCHydratedRouter({
665
665
  [createFromReadableStream, payload, fetchImplementation, getContext]
666
666
  );
667
667
  React3.useEffect(() => {
668
- _chunkAS4FL2MBjs.setIsHydrated.call(void 0, );
668
+ _chunkNA4ZUJK5js.setIsHydrated.call(void 0, );
669
669
  }, []);
670
670
  React3.useLayoutEffect(() => {
671
671
  const globalVar = window;
@@ -774,8 +774,8 @@ function RSCHydratedRouter({
774
774
  },
775
775
  routeModules
776
776
  };
777
- return /* @__PURE__ */ React3.createElement(_chunkAS4FL2MBjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkTVHB74EGjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkAS4FL2MBjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
778
- _chunkAS4FL2MBjs.RouterProvider,
777
+ return /* @__PURE__ */ React3.createElement(_chunkNA4ZUJK5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkUNN6ZJ6Wjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkNA4ZUJK5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
778
+ _chunkNA4ZUJK5js.RouterProvider,
779
779
  {
780
780
  router: transitionEnabledRouter,
781
781
  flushSync: ReactDOM2.flushSync
@@ -791,8 +791,8 @@ function createRouteFromServerManifest(match, payload) {
791
791
  // the server loader flow regardless of whether the client loader calls
792
792
  // `serverLoader` or not, otherwise we'll have nothing to render.
793
793
  match.hasComponent && !match.element;
794
- _chunkAS4FL2MBjs.invariant.call(void 0, window.__reactRouterRouteModules);
795
- _chunkTVHB74EGjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
794
+ _chunkNA4ZUJK5js.invariant.call(void 0, window.__reactRouterRouteModules);
795
+ _chunkUNN6ZJ6Wjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
796
796
  let dataRoute = {
797
797
  id: match.id,
798
798
  element: match.element,
@@ -842,7 +842,7 @@ function createRouteFromServerManifest(match, payload) {
842
842
  return await callSingleFetch(singleFetch);
843
843
  }
844
844
  }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
845
- throw _chunkAS4FL2MBjs.noActionDefinedError.call(void 0, "action", match.id);
845
+ throw _chunkNA4ZUJK5js.noActionDefinedError.call(void 0, "action", match.id);
846
846
  },
847
847
  path: match.path,
848
848
  shouldRevalidate: match.shouldRevalidate,
@@ -855,7 +855,7 @@ function createRouteFromServerManifest(match, payload) {
855
855
  hasShouldRevalidate: match.shouldRevalidate != null
856
856
  };
857
857
  if (typeof dataRoute.loader === "function") {
858
- dataRoute.loader.hydrate = _chunkAS4FL2MBjs.shouldHydrateRouteLoader.call(void 0,
858
+ dataRoute.loader.hydrate = _chunkNA4ZUJK5js.shouldHydrateRouteLoader.call(void 0,
859
859
  match.id,
860
860
  match.clientLoader,
861
861
  match.hasLoader,
@@ -865,7 +865,7 @@ function createRouteFromServerManifest(match, payload) {
865
865
  return dataRoute;
866
866
  }
867
867
  function callSingleFetch(singleFetch) {
868
- _chunkAS4FL2MBjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
868
+ _chunkNA4ZUJK5js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
869
869
  return singleFetch();
870
870
  }
871
871
  function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
@@ -873,7 +873,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
873
873
  let fn = type === "action" ? "serverAction()" : "serverLoader()";
874
874
  let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
875
875
  console.error(msg);
876
- throw new (0, _chunkAS4FL2MBjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
876
+ throw new (0, _chunkNA4ZUJK5js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
877
877
  }
878
878
  }
879
879
  var nextPaths = /* @__PURE__ */ new Set();
@@ -946,7 +946,7 @@ function isExternalLocation(location2) {
946
946
  }
947
947
  function hasInvalidProtocol(location2) {
948
948
  try {
949
- return _chunkAS4FL2MBjs.invalidProtocols.includes(new URL(location2).protocol);
949
+ return _chunkNA4ZUJK5js.invalidProtocols.includes(new URL(location2).protocol);
950
950
  } catch (e2) {
951
951
  return false;
952
952
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-cb0fdf114
2
+ * react-router v0.0.0-experimental-689d76079
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -14,7 +14,7 @@ import {
14
14
  deserializeErrors,
15
15
  getHydrationData,
16
16
  populateRSCRouteModules
17
- } from "./chunk-BUU6CIKQ.mjs";
17
+ } from "./chunk-5PRXMKWZ.mjs";
18
18
  import {
19
19
  CRITICAL_CSS_DATA_ATTRIBUTE,
20
20
  ErrorResponseImpl,
@@ -43,7 +43,7 @@ import {
43
43
  singleFetchUrl,
44
44
  stripIndexParam,
45
45
  useFogOFWarDiscovery
46
- } from "./chunk-PDPTMKPS.mjs";
46
+ } from "./chunk-VFF3M6RU.mjs";
47
47
 
48
48
  // lib/dom-export/dom-router-provider.tsx
49
49
  import * as React from "react";
@@ -1,6 +1,6 @@
1
- import { H as HydrationState, f as StaticHandlerContext, l as unstable_ServerInstrumentation, c as RelativeRoutingType, a as Router$1, d as RouterState, R as RouterInit, t as FutureConfig$1, u as unstable_ClientInstrumentation, e as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, C as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-BYr6ff5D.js';
1
+ import { H as HydrationState, f as StaticHandlerContext, l as unstable_ServerInstrumentation, c as RelativeRoutingType, a as Router$1, d as RouterState, R as RouterInit, t as FutureConfig$1, u as unstable_ClientInstrumentation, e as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, C as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-g0dG8UL0.js';
2
2
  import * as React from 'react';
3
- import { aC as RouteManifest, J as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, aD as ServerRouteModule, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, q as LoaderFunctionArgs, _ as ActionFunctionArgs, aE as TrackedPromise, f as History, T as To, L as Location, i as Action, aa as RouteMatch, W as InitialEntry, Y as NonIndexRouteObject, a5 as LazyRouteFunction, X as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, o as HTMLFormMethod, F as FormEncType, at as PageLinkDescriptor, K as SerializeFrom } from './routeModules-CA7kSxJJ.js';
3
+ import { aC as RouteManifest, J as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, aD as ServerRouteModule, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, q as LoaderFunctionArgs, _ as ActionFunctionArgs, aE as TrackedPromise, f as History, T as To, L as Location, i as Action, aa as RouteMatch, W as InitialEntry, Y as NonIndexRouteObject, a5 as LazyRouteFunction, X as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, o as HTMLFormMethod, F as FormEncType, at as PageLinkDescriptor, K as SerializeFrom } from './routeModules-7rtk67cd.js';
4
4
 
5
5
  interface Route$1 {
6
6
  index?: boolean;
@@ -3468,7 +3468,8 @@ declare function usePrompt({ when, message, }: {
3468
3468
  }): void;
3469
3469
  /**
3470
3470
  * This hook returns `true` when there is an active [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
3471
- * to the specified location. This can be used to apply finer-grained styles to
3471
+ * and the specified location matches either side of the navigation (the URL you are
3472
+ * navigating **to** or the URL you are navigating **from**). This can be used to apply finer-grained styles to
3472
3473
  * elements to further customize the view transition. This requires that view
3473
3474
  * transitions have been enabled for the given navigation via {@link LinkProps.viewTransition}
3474
3475
  * (or the `Form`, `submit`, or `navigate` call)
@@ -3477,13 +3478,14 @@ declare function usePrompt({ when, message, }: {
3477
3478
  * @category Hooks
3478
3479
  * @mode framework
3479
3480
  * @mode data
3480
- * @param to The {@link To} location to check for an active [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API).
3481
+ * @param to The {@link To} location to compare against the active transition's current
3482
+ * and next URLs.
3481
3483
  * @param options Options
3482
3484
  * @param options.relative The relative routing type to use when resolving the
3483
3485
  * `to` location, defaults to `"route"`. See {@link RelativeRoutingType} for
3484
3486
  * more details.
3485
3487
  * @returns `true` if there is an active [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
3486
- * to the specified {@link Location}, otherwise `false`.
3488
+ * and the resolved path matches the transition's destination or source pathname, otherwise `false`.
3487
3489
  */
3488
3490
  declare function useViewTransitionState(to: To, { relative }?: {
3489
3491
  relative?: RelativeRoutingType;
@@ -1,6 +1,6 @@
1
- import { H as HydrationState, h as StaticHandlerContext, n as unstable_ServerInstrumentation, d as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, u as unstable_ClientInstrumentation, N as NavigateOptions, F as Fetcher, b as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-phCt_zmH.mjs';
1
+ import { H as HydrationState, h as StaticHandlerContext, n as unstable_ServerInstrumentation, d as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, u as unstable_ClientInstrumentation, N as NavigateOptions, F as Fetcher, b as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-DGGUoDIu.mjs';
2
2
  import * as React from 'react';
3
- import { aD as RouteManifest, X as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, aE as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a1 as ActionFunctionArgs, m as HTMLFormMethod, n as FormEncType, au as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, Y as SerializeFrom, L as Location } from './routeModules-BRrCYrSL.mjs';
3
+ import { aD as RouteManifest, X as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, aE as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a1 as ActionFunctionArgs, m as HTMLFormMethod, n as FormEncType, au as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, Y as SerializeFrom, L as Location } from './routeModules-BW4a8k3I.mjs';
4
4
 
5
5
  interface Route {
6
6
  index?: boolean;
@@ -2413,7 +2413,8 @@ declare function usePrompt({ when, message, }: {
2413
2413
  }): void;
2414
2414
  /**
2415
2415
  * This hook returns `true` when there is an active [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
2416
- * to the specified location. This can be used to apply finer-grained styles to
2416
+ * and the specified location matches either side of the navigation (the URL you are
2417
+ * navigating **to** or the URL you are navigating **from**). This can be used to apply finer-grained styles to
2417
2418
  * elements to further customize the view transition. This requires that view
2418
2419
  * transitions have been enabled for the given navigation via {@link LinkProps.viewTransition}
2419
2420
  * (or the `Form`, `submit`, or `navigate` call)
@@ -2422,13 +2423,14 @@ declare function usePrompt({ when, message, }: {
2422
2423
  * @category Hooks
2423
2424
  * @mode framework
2424
2425
  * @mode data
2425
- * @param to The {@link To} location to check for an active [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API).
2426
+ * @param to The {@link To} location to compare against the active transition's current
2427
+ * and next URLs.
2426
2428
  * @param options Options
2427
2429
  * @param options.relative The relative routing type to use when resolving the
2428
2430
  * `to` location, defaults to `"route"`. See {@link RelativeRoutingType} for
2429
2431
  * more details.
2430
2432
  * @returns `true` if there is an active [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
2431
- * to the specified {@link Location}, otherwise `false`.
2433
+ * and the resolved path matches the transition's destination or source pathname, otherwise `false`.
2432
2434
  */
2433
2435
  declare function useViewTransitionState(to: To, { relative }?: {
2434
2436
  relative?: RelativeRoutingType;
@@ -1,4 +1,4 @@
1
- export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-phCt_zmH.mjs';
2
- export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DB0NZKUQ.mjs';
3
- import './routeModules-BRrCYrSL.mjs';
1
+ export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-DGGUoDIu.mjs';
2
+ export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-BjhKIe3u.mjs';
3
+ import './routeModules-BW4a8k3I.mjs';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-C41e-M56.js';
2
- import './instrumentation-BYr6ff5D.js';
3
- import './routeModules-CA7kSxJJ.js';
1
+ export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-BBd0A0TL.js';
2
+ import './instrumentation-g0dG8UL0.js';
3
+ import './routeModules-7rtk67cd.js';
4
4
  import 'react';
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v0.0.0-experimental-cb0fdf114
2
+ * react-router v0.0.0-experimental-689d76079
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -19,7 +19,7 @@
19
19
 
20
20
 
21
21
 
22
- var _chunk4OARA26Xjs = require('./chunk-4OARA26X.js');
22
+ var _chunkUZZ2OU6Qjs = require('./chunk-UZZ2OU6Q.js');
23
23
 
24
24
 
25
25
 
@@ -34,7 +34,7 @@ var _chunk4OARA26Xjs = require('./chunk-4OARA26X.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkAS4FL2MBjs = require('./chunk-AS4FL2MB.js');
37
+ var _chunkNA4ZUJK5js = require('./chunk-NA4ZUJK5.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunkAS4FL2MBjs = require('./chunk-AS4FL2MB.js');
58
58
 
59
59
 
60
60
 
61
- exports.BrowserRouter = _chunk4OARA26Xjs.BrowserRouter; exports.Form = _chunk4OARA26Xjs.Form; exports.HashRouter = _chunk4OARA26Xjs.HashRouter; exports.Link = _chunk4OARA26Xjs.Link; exports.Links = _chunkAS4FL2MBjs.Links; exports.MemoryRouter = _chunkAS4FL2MBjs.MemoryRouter; exports.Meta = _chunkAS4FL2MBjs.Meta; exports.NavLink = _chunk4OARA26Xjs.NavLink; exports.Navigate = _chunkAS4FL2MBjs.Navigate; exports.Outlet = _chunkAS4FL2MBjs.Outlet; exports.Route = _chunkAS4FL2MBjs.Route; exports.Router = _chunkAS4FL2MBjs.Router; exports.RouterProvider = _chunkAS4FL2MBjs.RouterProvider; exports.Routes = _chunkAS4FL2MBjs.Routes; exports.ScrollRestoration = _chunk4OARA26Xjs.ScrollRestoration; exports.StaticRouter = _chunk4OARA26Xjs.StaticRouter; exports.StaticRouterProvider = _chunk4OARA26Xjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkAS4FL2MBjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkAS4FL2MBjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkAS4FL2MBjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkAS4FL2MBjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunk4OARA26Xjs.HistoryRouter;
61
+ exports.BrowserRouter = _chunkUZZ2OU6Qjs.BrowserRouter; exports.Form = _chunkUZZ2OU6Qjs.Form; exports.HashRouter = _chunkUZZ2OU6Qjs.HashRouter; exports.Link = _chunkUZZ2OU6Qjs.Link; exports.Links = _chunkNA4ZUJK5js.Links; exports.MemoryRouter = _chunkNA4ZUJK5js.MemoryRouter; exports.Meta = _chunkNA4ZUJK5js.Meta; exports.NavLink = _chunkUZZ2OU6Qjs.NavLink; exports.Navigate = _chunkNA4ZUJK5js.Navigate; exports.Outlet = _chunkNA4ZUJK5js.Outlet; exports.Route = _chunkNA4ZUJK5js.Route; exports.Router = _chunkNA4ZUJK5js.Router; exports.RouterProvider = _chunkNA4ZUJK5js.RouterProvider; exports.Routes = _chunkNA4ZUJK5js.Routes; exports.ScrollRestoration = _chunkUZZ2OU6Qjs.ScrollRestoration; exports.StaticRouter = _chunkUZZ2OU6Qjs.StaticRouter; exports.StaticRouterProvider = _chunkUZZ2OU6Qjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkNA4ZUJK5js.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkNA4ZUJK5js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkNA4ZUJK5js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkNA4ZUJK5js.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkUZZ2OU6Qjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-cb0fdf114
2
+ * react-router v0.0.0-experimental-689d76079
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -32,7 +32,7 @@ import {
32
32
  WithComponentProps,
33
33
  WithErrorBoundaryProps,
34
34
  WithHydrateFallbackProps
35
- } from "./chunk-PDPTMKPS.mjs";
35
+ } from "./chunk-VFF3M6RU.mjs";
36
36
  export {
37
37
  BrowserRouter,
38
38
  Form,
@@ -878,6 +878,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
878
878
  * Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
879
879
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
880
880
  *
881
+ * This utility accepts absolute URLs and can navigate to external domains, so
882
+ * the application should validate any user-supplied inputs to redirects.
883
+ *
881
884
  * @example
882
885
  * import { redirect } from "react-router";
883
886
  *
@@ -907,6 +910,9 @@ declare const redirect$1: RedirectFunction;
907
910
  * and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
908
911
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
909
912
  *
913
+ * This utility accepts absolute URLs and can navigate to external domains, so
914
+ * the application should validate any user-supplied inputs to redirects.
915
+ *
910
916
  * ```tsx filename=routes/logout.tsx
911
917
  * import { redirectDocument } from "react-router";
912
918
  *
@@ -878,6 +878,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
878
878
  * Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
879
879
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
880
880
  *
881
+ * This utility accepts absolute URLs and can navigate to external domains, so
882
+ * the application should validate any user-supplied inputs to redirects.
883
+ *
881
884
  * @example
882
885
  * import { redirect } from "react-router";
883
886
  *
@@ -907,6 +910,9 @@ declare const redirect$1: RedirectFunction;
907
910
  * and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
908
911
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
909
912
  *
913
+ * This utility accepts absolute URLs and can navigate to external domains, so
914
+ * the application should validate any user-supplied inputs to redirects.
915
+ *
910
916
  * ```tsx filename=routes/logout.tsx
911
917
  * import { redirectDocument } from "react-router";
912
918
  *