react-router 7.14.1 → 7.14.2

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 (68) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/development/{browser-CtktEGQs.d.ts → browser-C-UvoYvi.d.ts} +2 -2
  3. package/dist/development/{browser-D-3-U2Jj.d.mts → browser-I6n6wVSO.d.mts} +2 -2
  4. package/dist/development/{chunk-OE4NN4TA.mjs → chunk-EVOBXE3Y.mjs} +23 -7
  5. package/dist/{production/chunk-3SUPTI2U.js → development/chunk-PZFPF4X7.js} +7 -7
  6. package/dist/development/{chunk-BFXCU3MI.mjs → chunk-YQSHRJWW.mjs} +3 -3
  7. package/dist/development/{chunk-3F6IB66O.js → chunk-YZKCRDTN.js} +99 -99
  8. package/dist/development/{chunk-YMKMFAYZ.js → chunk-ZZNWZ5Q3.js} +60 -44
  9. package/dist/{production/context-BzhbVly6.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/development/{index-react-server-client-CimaPp9o.d.ts → index-react-server-client-BBd0A0TL.d.ts} +2 -2
  15. package/dist/{production/index-react-server-client-WSaoxloq.d.mts → development/index-react-server-client-BjhKIe3u.d.mts} +2 -2
  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.js +1 -1
  21. package/dist/development/index-react-server.mjs +1 -1
  22. package/dist/development/index.d.mts +11 -11
  23. package/dist/development/index.d.ts +11 -11
  24. package/dist/development/index.js +96 -96
  25. package/dist/development/index.mjs +3 -3
  26. package/dist/{production/instrumentation-CMVbvxj9.d.ts → development/instrumentation-g0dG8UL0.d.ts} +1 -1
  27. package/dist/development/lib/types/internal.d.mts +2 -2
  28. package/dist/development/lib/types/internal.d.ts +2 -2
  29. package/dist/development/lib/types/internal.js +1 -1
  30. package/dist/development/lib/types/internal.mjs +1 -1
  31. package/dist/development/{register-aE9ob3TK.d.mts → register-D9d2sMQ7.d.mts} +1 -1
  32. package/dist/development/{register-D1WlEpq9.d.ts → register-DcBltf5q.d.ts} +1 -1
  33. package/dist/{production/routeModules-CM_clkdE.d.ts → development/routeModules-7rtk67cd.d.ts} +26 -11
  34. package/dist/development/{routeModules-Djumx26z.d.mts → routeModules-BW4a8k3I.d.mts} +26 -11
  35. package/dist/production/{browser-CtktEGQs.d.ts → browser-C-UvoYvi.d.ts} +2 -2
  36. package/dist/production/{browser-D-3-U2Jj.d.mts → browser-I6n6wVSO.d.mts} +2 -2
  37. package/dist/production/{chunk-G5ZWO7Q6.mjs → chunk-2WLZNCK5.mjs} +3 -3
  38. package/dist/production/{chunk-SPR7R4GU.mjs → chunk-LK6U7ULH.mjs} +23 -7
  39. package/dist/{development/chunk-7VLQJKNG.js → production/chunk-PQL4HLVQ.js} +7 -7
  40. package/dist/production/{chunk-LIOP3ILM.js → chunk-UJQ4OJF4.js} +99 -99
  41. package/dist/production/{chunk-UVEQGZIH.js → chunk-X5SKXJ4A.js} +60 -44
  42. package/dist/{development/context-BzhbVly6.d.mts → production/context-DGGUoDIu.d.mts} +1 -1
  43. package/dist/production/dom-export.d.mts +4 -4
  44. package/dist/production/dom-export.d.ts +4 -4
  45. package/dist/production/dom-export.js +27 -27
  46. package/dist/production/dom-export.mjs +3 -3
  47. package/dist/production/{index-react-server-client-CimaPp9o.d.ts → index-react-server-client-BBd0A0TL.d.ts} +2 -2
  48. package/dist/{development/index-react-server-client-WSaoxloq.d.mts → production/index-react-server-client-BjhKIe3u.d.mts} +2 -2
  49. package/dist/production/index-react-server-client.d.mts +3 -3
  50. package/dist/production/index-react-server-client.d.ts +3 -3
  51. package/dist/production/index-react-server-client.js +4 -4
  52. package/dist/production/index-react-server-client.mjs +2 -2
  53. package/dist/production/index-react-server.js +1 -1
  54. package/dist/production/index-react-server.mjs +1 -1
  55. package/dist/production/index.d.mts +11 -11
  56. package/dist/production/index.d.ts +11 -11
  57. package/dist/production/index.js +96 -96
  58. package/dist/production/index.mjs +3 -3
  59. package/dist/{development/instrumentation-CMVbvxj9.d.ts → production/instrumentation-g0dG8UL0.d.ts} +1 -1
  60. package/dist/production/lib/types/internal.d.mts +2 -2
  61. package/dist/production/lib/types/internal.d.ts +2 -2
  62. package/dist/production/lib/types/internal.js +1 -1
  63. package/dist/production/lib/types/internal.mjs +1 -1
  64. package/dist/production/{register-aE9ob3TK.d.mts → register-D9d2sMQ7.d.mts} +1 -1
  65. package/dist/production/{register-D1WlEpq9.d.ts → register-DcBltf5q.d.ts} +1 -1
  66. package/dist/{development/routeModules-CM_clkdE.d.ts → production/routeModules-7rtk67cd.d.ts} +26 -11
  67. package/dist/production/{routeModules-Djumx26z.d.mts → routeModules-BW4a8k3I.d.mts} +26 -11
  68. package/package.json +1 -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 _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 v7.14.1
2
+ * react-router v7.14.2
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) {
@@ -2659,6 +2658,14 @@ function createRouter(init) {
2659
2658
  key
2660
2659
  );
2661
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
+ }
2662
2669
  if (fetchControllers.get(key) === abortController) {
2663
2670
  fetchControllers.delete(key);
2664
2671
  }
@@ -5564,6 +5571,14 @@ var TYPE_SET = "S";
5564
5571
  var TYPE_SYMBOL = "Y";
5565
5572
  var TYPE_URL = "U";
5566
5573
  var TYPE_PREVIOUS_RESOLVED = "Z";
5574
+ var SUPPORTED_ERROR_TYPES = [
5575
+ "EvalError",
5576
+ "RangeError",
5577
+ "ReferenceError",
5578
+ "SyntaxError",
5579
+ "TypeError",
5580
+ "URIError"
5581
+ ];
5567
5582
  var Deferred = class {
5568
5583
  constructor() {
5569
5584
  this.promise = new Promise((resolve, reject) => {
@@ -5925,7 +5940,7 @@ function hydrate(index) {
5925
5940
  continue;
5926
5941
  case TYPE_ERROR:
5927
5942
  const [, message, errorType] = value;
5928
- let error = errorType && globalObj && globalObj[errorType] ? new globalObj[errorType](message) : new Error(message);
5943
+ let error = errorType && globalObj && SUPPORTED_ERROR_TYPES.includes(errorType) && errorType in globalObj && typeof globalObj[errorType] === "function" ? new globalObj[errorType](message) : new Error(message);
5929
5944
  hydrated[index2] = error;
5930
5945
  set(error);
5931
5946
  continue;
@@ -6708,7 +6723,8 @@ function decodeViaTurboStream(body, global) {
6708
6723
  if (type === "SanitizedError") {
6709
6724
  let [name, message, stack] = rest;
6710
6725
  let Constructor = Error;
6711
- if (name && name in global && typeof global[name] === "function") {
6726
+ if (name && SUPPORTED_ERROR_TYPES.includes(name) && name in global && // @ts-expect-error
6727
+ typeof global[name] === "function") {
6712
6728
  Constructor = global[name];
6713
6729
  }
6714
6730
  let error = new Constructor(message);
@@ -6987,7 +7003,7 @@ function useOutlet(context) {
6987
7003
  function useParams() {
6988
7004
  let { matches } = React3.useContext(RouteContext);
6989
7005
  let routeMatch = matches[matches.length - 1];
6990
- return routeMatch ? routeMatch.params : {};
7006
+ return _nullishCoalesce(_optionalChain([routeMatch, 'optionalAccess', _87 => _87.params]), () => ( {}));
6991
7007
  }
6992
7008
  function useResolvedPath(to, { relative } = {}) {
6993
7009
  let { matches } = React3.useContext(RouteContext);
@@ -7035,7 +7051,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
7035
7051
  if (locationArg) {
7036
7052
  let parsedLocationArg = typeof locationArg === "string" ? parsePath(locationArg) : locationArg;
7037
7053
  invariant(
7038
- parentPathnameBase === "/" || _optionalChain([parsedLocationArg, 'access', _87 => _87.pathname, 'optionalAccess', _88 => _88.startsWith, 'call', _89 => _89(parentPathnameBase)]),
7054
+ parentPathnameBase === "/" || _optionalChain([parsedLocationArg, 'access', _88 => _88.pathname, 'optionalAccess', _89 => _89.startsWith, 'call', _90 => _90(parentPathnameBase)]),
7039
7055
  `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${parentPathnameBase}" but pathname "${parsedLocationArg.pathname}" was given in the \`location\` prop.`
7040
7056
  );
7041
7057
  location = parsedLocationArg;
@@ -7229,7 +7245,7 @@ function RenderedRoute({ routeContext, match, children }) {
7229
7245
  return /* @__PURE__ */ React3.createElement(RouteContext.Provider, { value: routeContext }, children);
7230
7246
  }
7231
7247
  function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
7232
- let dataRouterState = _optionalChain([dataRouterOpts, 'optionalAccess', _90 => _90.state]);
7248
+ let dataRouterState = _optionalChain([dataRouterOpts, 'optionalAccess', _91 => _91.state]);
7233
7249
  if (matches == null) {
7234
7250
  if (!dataRouterState) {
7235
7251
  return null;
@@ -7243,10 +7259,10 @@ function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
7243
7259
  }
7244
7260
  }
7245
7261
  let renderedMatches = matches;
7246
- let errors = _optionalChain([dataRouterState, 'optionalAccess', _91 => _91.errors]);
7262
+ let errors = _optionalChain([dataRouterState, 'optionalAccess', _92 => _92.errors]);
7247
7263
  if (errors != null) {
7248
7264
  let errorIndex = renderedMatches.findIndex(
7249
- (m) => m.route.id && _optionalChain([errors, 'optionalAccess', _92 => _92[m.route.id]]) !== void 0
7265
+ (m) => m.route.id && _optionalChain([errors, 'optionalAccess', _93 => _93[m.route.id]]) !== void 0
7250
7266
  );
7251
7267
  invariant(
7252
7268
  errorIndex >= 0,
@@ -7285,11 +7301,11 @@ function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
7285
7301
  }
7286
7302
  }
7287
7303
  }
7288
- let onErrorHandler = _optionalChain([dataRouterOpts, 'optionalAccess', _93 => _93.onError]);
7304
+ let onErrorHandler = _optionalChain([dataRouterOpts, 'optionalAccess', _94 => _94.onError]);
7289
7305
  let onError = dataRouterState && onErrorHandler ? (error, errorInfo) => {
7290
7306
  onErrorHandler(error, {
7291
7307
  location: dataRouterState.location,
7292
- params: _nullishCoalesce(_optionalChain([dataRouterState, 'access', _94 => _94.matches, 'optionalAccess', _95 => _95[0], 'optionalAccess', _96 => _96.params]), () => ( {})),
7308
+ params: _nullishCoalesce(_optionalChain([dataRouterState, 'access', _95 => _95.matches, 'optionalAccess', _96 => _96[0], 'optionalAccess', _97 => _97.params]), () => ( {})),
7293
7309
  unstable_pattern: getRoutePattern(dataRouterState.matches),
7294
7310
  errorInfo
7295
7311
  });
@@ -7436,15 +7452,15 @@ function useRouteError() {
7436
7452
  if (error !== void 0) {
7437
7453
  return error;
7438
7454
  }
7439
- return _optionalChain([state, 'access', _97 => _97.errors, 'optionalAccess', _98 => _98[routeId]]);
7455
+ return _optionalChain([state, 'access', _98 => _98.errors, 'optionalAccess', _99 => _99[routeId]]);
7440
7456
  }
7441
7457
  function useAsyncValue() {
7442
7458
  let value = React3.useContext(AwaitContext);
7443
- return _optionalChain([value, 'optionalAccess', _99 => _99._data]);
7459
+ return _optionalChain([value, 'optionalAccess', _100 => _100._data]);
7444
7460
  }
7445
7461
  function useAsyncError() {
7446
7462
  let value = React3.useContext(AwaitContext);
7447
- return _optionalChain([value, 'optionalAccess', _100 => _100._error]);
7463
+ return _optionalChain([value, 'optionalAccess', _101 => _101._error]);
7448
7464
  }
7449
7465
  var blockerId = 0;
7450
7466
  function useBlocker(shouldBlock) {
@@ -7525,7 +7541,7 @@ function useRoute(...args) {
7525
7541
  return {
7526
7542
  handle: route.route.handle,
7527
7543
  loaderData: state.loaderData[id],
7528
- actionData: _optionalChain([state, 'access', _101 => _101.actionData, 'optionalAccess', _102 => _102[id]])
7544
+ actionData: _optionalChain([state, 'access', _102 => _102.actionData, 'optionalAccess', _103 => _103[id]])
7529
7545
  };
7530
7546
  }
7531
7547
 
@@ -7570,7 +7586,7 @@ function getKeyedLinksForMatches(matches, routeModules, manifest) {
7570
7586
  let route = manifest.routes[match.route.id];
7571
7587
  return [
7572
7588
  route && route.css ? route.css.map((href) => ({ rel: "stylesheet", href })) : [],
7573
- _optionalChain([module, 'optionalAccess', _103 => _103.links, 'optionalCall', _104 => _104()]) || []
7589
+ _optionalChain([module, 'optionalAccess', _104 => _104.links, 'optionalCall', _105 => _105()]) || []
7574
7590
  ];
7575
7591
  }).flat(2);
7576
7592
  let preloads = getModuleLinkHrefs(matches, manifest);
@@ -7671,7 +7687,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
7671
7687
  // param change, /users/123 -> /users/456
7672
7688
  currentMatches[index].pathname !== match.pathname || // splat param changed, which is not present in match.path
7673
7689
  // e.g. /files/images/avatar.jpg -> files/finances.xls
7674
- _optionalChain([currentMatches, 'access', _105 => _105[index], 'access', _106 => _106.route, 'access', _107 => _107.path, 'optionalAccess', _108 => _108.endsWith, 'call', _109 => _109("*")]) && currentMatches[index].params["*"] !== match.params["*"]
7690
+ _optionalChain([currentMatches, 'access', _106 => _106[index], 'access', _107 => _107.route, 'access', _108 => _108.path, 'optionalAccess', _109 => _109.endsWith, 'call', _110 => _110("*")]) && currentMatches[index].params["*"] !== match.params["*"]
7675
7691
  );
7676
7692
  };
7677
7693
  if (mode === "assets") {
@@ -7694,7 +7710,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
7694
7710
  location.pathname + location.search + location.hash,
7695
7711
  window.origin
7696
7712
  ),
7697
- currentParams: _optionalChain([currentMatches, 'access', _110 => _110[0], 'optionalAccess', _111 => _111.params]) || {},
7713
+ currentParams: _optionalChain([currentMatches, 'access', _111 => _111[0], 'optionalAccess', _112 => _112.params]) || {},
7698
7714
  nextUrl: new URL(page, window.origin),
7699
7715
  nextParams: match.params,
7700
7716
  defaultShouldRevalidate: true
@@ -7966,10 +7982,10 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
7966
7982
  )
7967
7983
  });
7968
7984
  let hasInitialData = initialState && initialState.loaderData && route.id in initialState.loaderData;
7969
- let initialData = hasInitialData ? _optionalChain([initialState, 'optionalAccess', _112 => _112.loaderData, 'optionalAccess', _113 => _113[route.id]]) : void 0;
7985
+ let initialData = hasInitialData ? _optionalChain([initialState, 'optionalAccess', _113 => _113.loaderData, 'optionalAccess', _114 => _114[route.id]]) : void 0;
7970
7986
  let hasInitialError = initialState && initialState.errors && route.id in initialState.errors;
7971
- let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess', _114 => _114.errors, 'optionalAccess', _115 => _115[route.id]]) : void 0;
7972
- let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access', _116 => _116.clientLoader, 'optionalAccess', _117 => _117.hydrate]) === true || !route.hasLoader);
7987
+ let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess', _115 => _115.errors, 'optionalAccess', _116 => _116[route.id]]) : void 0;
7988
+ let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access', _117 => _117.clientLoader, 'optionalAccess', _118 => _118.hydrate]) === true || !route.hasLoader);
7973
7989
  dataRoute.loader = async ({
7974
7990
  request,
7975
7991
  params,
@@ -8278,7 +8294,7 @@ function getPatchRoutesOnNavigationFunction(getRouter, manifest, routeModules, s
8278
8294
  function useFogOFWarDiscovery(router, manifest, routeModules, ssr, routeDiscovery, isSpaMode) {
8279
8295
  React6.useEffect(() => {
8280
8296
  if (!isFogOfWarEnabled(routeDiscovery, ssr) || // @ts-expect-error - TS doesn't know about this yet
8281
- _optionalChain([window, 'access', _118 => _118.navigator, 'optionalAccess', _119 => _119.connection, 'optionalAccess', _120 => _120.saveData]) === true) {
8297
+ _optionalChain([window, 'access', _119 => _119.navigator, 'optionalAccess', _120 => _120.connection, 'optionalAccess', _121 => _121.saveData]) === true) {
8282
8298
  return;
8283
8299
  }
8284
8300
  function registerElement(el) {
@@ -8384,7 +8400,7 @@ async function fetchAndApplyManifestPatches(paths, errorReloadPath, manifest, ro
8384
8400
  }
8385
8401
  serverPatches = await res.json();
8386
8402
  } catch (e) {
8387
- if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return;
8403
+ if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return;
8388
8404
  throw e;
8389
8405
  }
8390
8406
  let knownRoutes = new Set(Object.keys(manifest.routes));
@@ -8687,7 +8703,7 @@ function PrefetchPageLinksImpl({
8687
8703
  if (!manifestRoute || !manifestRoute.hasLoader) {
8688
8704
  return;
8689
8705
  }
8690
- if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && _optionalChain([routeModules, 'access', _122 => _122[m.route.id], 'optionalAccess', _123 => _123.shouldRevalidate])) {
8706
+ if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && _optionalChain([routeModules, 'access', _123 => _123[m.route.id], 'optionalAccess', _124 => _124.shouldRevalidate])) {
8691
8707
  foundOptOutRoute = true;
8692
8708
  } else if (manifestRoute.hasClientLoader) {
8693
8709
  foundOptOutRoute = true;
@@ -8775,7 +8791,7 @@ function Meta() {
8775
8791
  error
8776
8792
  };
8777
8793
  matches[i] = match;
8778
- if (_optionalChain([routeModule, 'optionalAccess', _124 => _124.meta])) {
8794
+ if (_optionalChain([routeModule, 'optionalAccess', _125 => _125.meta])) {
8779
8795
  routeMeta = typeof routeModule.meta === "function" ? routeModule.meta({
8780
8796
  data: data2,
8781
8797
  loaderData: data2,
@@ -8874,7 +8890,7 @@ function Scripts(scriptProps) {
8874
8890
  }
8875
8891
  let streamScript = "window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());";
8876
8892
  let contextScript = staticContext ? `window.__reactRouterContext = ${serverHandoffString};${streamScript}` : " ";
8877
- let routeModulesScript = !isStatic ? " " : `${_optionalChain([manifest, 'access', _125 => _125.hmr, 'optionalAccess', _126 => _126.runtime]) ? `import ${JSON.stringify(manifest.hmr.runtime)};` : ""}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : ""};
8893
+ let routeModulesScript = !isStatic ? " " : `${_optionalChain([manifest, 'access', _126 => _126.hmr, 'optionalAccess', _127 => _127.runtime]) ? `import ${JSON.stringify(manifest.hmr.runtime)};` : ""}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : ""};
8878
8894
  ${matches.map((match, routeIndex) => {
8879
8895
  let routeVarName = `route${routeIndex}`;
8880
8896
  let manifestEntry = manifest.routes[match.route.id];
@@ -9105,7 +9121,7 @@ function BoundaryShell({
9105
9121
  children
9106
9122
  }) {
9107
9123
  let { routeModules } = useFrameworkContext();
9108
- if (_optionalChain([routeModules, 'access', _127 => _127.root, 'optionalAccess', _128 => _128.Layout]) && !isOutsideRemixApp) {
9124
+ if (_optionalChain([routeModules, 'access', _128 => _128.root, 'optionalAccess', _129 => _129.Layout]) && !isOutsideRemixApp) {
9109
9125
  return children;
9110
9126
  }
9111
9127
  return /* @__PURE__ */ React8.createElement("html", { lang: "en" }, /* @__PURE__ */ React8.createElement("head", null, /* @__PURE__ */ React8.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ React8.createElement(
@@ -9185,20 +9201,20 @@ var hydrationRouteProperties = [
9185
9201
  ];
9186
9202
  function createMemoryRouter(routes, opts) {
9187
9203
  return createRouter({
9188
- basename: _optionalChain([opts, 'optionalAccess', _129 => _129.basename]),
9189
- getContext: _optionalChain([opts, 'optionalAccess', _130 => _130.getContext]),
9190
- future: _optionalChain([opts, 'optionalAccess', _131 => _131.future]),
9204
+ basename: _optionalChain([opts, 'optionalAccess', _130 => _130.basename]),
9205
+ getContext: _optionalChain([opts, 'optionalAccess', _131 => _131.getContext]),
9206
+ future: _optionalChain([opts, 'optionalAccess', _132 => _132.future]),
9191
9207
  history: createMemoryHistory({
9192
- initialEntries: _optionalChain([opts, 'optionalAccess', _132 => _132.initialEntries]),
9193
- initialIndex: _optionalChain([opts, 'optionalAccess', _133 => _133.initialIndex])
9208
+ initialEntries: _optionalChain([opts, 'optionalAccess', _133 => _133.initialEntries]),
9209
+ initialIndex: _optionalChain([opts, 'optionalAccess', _134 => _134.initialIndex])
9194
9210
  }),
9195
- hydrationData: _optionalChain([opts, 'optionalAccess', _134 => _134.hydrationData]),
9211
+ hydrationData: _optionalChain([opts, 'optionalAccess', _135 => _135.hydrationData]),
9196
9212
  routes,
9197
9213
  hydrationRouteProperties,
9198
9214
  mapRouteProperties,
9199
- dataStrategy: _optionalChain([opts, 'optionalAccess', _135 => _135.dataStrategy]),
9200
- patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _136 => _136.patchRoutesOnNavigation]),
9201
- unstable_instrumentations: _optionalChain([opts, 'optionalAccess', _137 => _137.unstable_instrumentations])
9215
+ dataStrategy: _optionalChain([opts, 'optionalAccess', _136 => _136.dataStrategy]),
9216
+ patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _137 => _137.patchRoutesOnNavigation]),
9217
+ unstable_instrumentations: _optionalChain([opts, 'optionalAccess', _138 => _138.unstable_instrumentations])
9202
9218
  }).initialize();
9203
9219
  }
9204
9220
  var Deferred2 = class {
@@ -9244,7 +9260,7 @@ function RouterProvider({
9244
9260
  Object.values(newErrors).forEach(
9245
9261
  (error) => onError(error, {
9246
9262
  location: newState.location,
9247
- params: _nullishCoalesce(_optionalChain([newState, 'access', _138 => _138.matches, 'access', _139 => _139[0], 'optionalAccess', _140 => _140.params]), () => ( {})),
9263
+ params: _nullishCoalesce(_optionalChain([newState, 'access', _139 => _139.matches, 'access', _140 => _140[0], 'optionalAccess', _141 => _141.params]), () => ( {})),
9248
9264
  unstable_pattern: getRoutePattern(newState.matches)
9249
9265
  })
9250
9266
  );
@@ -9282,7 +9298,7 @@ function RouterProvider({
9282
9298
  if (reactDomFlushSyncImpl && flushSync) {
9283
9299
  reactDomFlushSyncImpl(() => {
9284
9300
  if (transition) {
9285
- _optionalChain([renderDfd, 'optionalAccess', _141 => _141.resolve, 'call', _142 => _142()]);
9301
+ _optionalChain([renderDfd, 'optionalAccess', _142 => _142.resolve, 'call', _143 => _143()]);
9286
9302
  transition.skipTransition();
9287
9303
  }
9288
9304
  setVtContext({
@@ -9307,7 +9323,7 @@ function RouterProvider({
9307
9323
  return;
9308
9324
  }
9309
9325
  if (transition) {
9310
- _optionalChain([renderDfd, 'optionalAccess', _143 => _143.resolve, 'call', _144 => _144()]);
9326
+ _optionalChain([renderDfd, 'optionalAccess', _144 => _144.resolve, 'call', _145 => _145()]);
9311
9327
  transition.skipTransition();
9312
9328
  setInterruption({
9313
9329
  state: newState,
@@ -9406,12 +9422,12 @@ function RouterProvider({
9406
9422
  go: (n) => router.navigate(n),
9407
9423
  push: (to, state2, opts) => router.navigate(to, {
9408
9424
  state: state2,
9409
- preventScrollReset: _optionalChain([opts, 'optionalAccess', _145 => _145.preventScrollReset])
9425
+ preventScrollReset: _optionalChain([opts, 'optionalAccess', _146 => _146.preventScrollReset])
9410
9426
  }),
9411
9427
  replace: (to, state2, opts) => router.navigate(to, {
9412
9428
  replace: true,
9413
9429
  state: state2,
9414
- preventScrollReset: _optionalChain([opts, 'optionalAccess', _146 => _146.preventScrollReset])
9430
+ preventScrollReset: _optionalChain([opts, 'optionalAccess', _147 => _147.preventScrollReset])
9415
9431
  })
9416
9432
  };
9417
9433
  }, [router]);
@@ -9643,7 +9659,7 @@ function Await({
9643
9659
  if (dataRouterContext && dataRouterContext.onError && dataRouterStateContext) {
9644
9660
  dataRouterContext.onError(error, {
9645
9661
  location: dataRouterStateContext.location,
9646
- params: _optionalChain([dataRouterStateContext, 'access', _147 => _147.matches, 'access', _148 => _148[0], 'optionalAccess', _149 => _149.params]) || {},
9662
+ params: _optionalChain([dataRouterStateContext, 'access', _148 => _148.matches, 'access', _149 => _149[0], 'optionalAccess', _150 => _150.params]) || {},
9647
9663
  unstable_pattern: getRoutePattern(dataRouterStateContext.matches),
9648
9664
  errorInfo
9649
9665
  });
@@ -9705,7 +9721,7 @@ var AwaitErrorBoundary = class extends React9.Component {
9705
9721
  promise = resolve.then(
9706
9722
  (data2) => Object.defineProperty(resolve, "_data", { get: () => data2 }),
9707
9723
  (error) => {
9708
- _optionalChain([this, 'access', _150 => _150.props, 'access', _151 => _151.onError, 'optionalCall', _152 => _152(error)]);
9724
+ _optionalChain([this, 'access', _151 => _151.props, 'access', _152 => _152.onError, 'optionalCall', _153 => _153(error)]);
9709
9725
  Object.defineProperty(resolve, "_error", { get: () => error });
9710
9726
  }
9711
9727
  );
@@ -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-Djumx26z.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-BzhbVly6.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-D-3-U2Jj.mjs';
4
- import './routeModules-Djumx26z.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-CMVbvxj9.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-CtktEGQs.js';
5
- import './routeModules-CM_clkdE.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 v7.14.1
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -13,7 +13,7 @@
13
13
 
14
14
 
15
15
 
16
- var _chunk7VLQJKNGjs = require('./chunk-7VLQJKNG.js');
16
+ var _chunkPZFPF4X7js = require('./chunk-PZFPF4X7.js');
17
17
 
18
18
 
19
19
 
@@ -33,7 +33,7 @@ var _chunk7VLQJKNGjs = require('./chunk-7VLQJKNG.js');
33
33
 
34
34
 
35
35
 
36
- var _chunkYMKMFAYZjs = require('./chunk-YMKMFAYZ.js');
36
+ var _chunkZZNWZ5Q3js = require('./chunk-ZZNWZ5Q3.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(`[${_chunkYMKMFAYZjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
216
+ document.querySelectorAll(`[${_chunkZZNWZ5Q3js.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
- _chunk7VLQJKNGjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
395
+ _chunkPZFPF4X7js.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 = _chunkYMKMFAYZjs.createRouter.call(void 0, {
409
+ globalVar.__reactRouterDataRouter = _chunkZZNWZ5Q3js.createRouter.call(void 0, {
410
410
  routes,
411
411
  getContext,
412
412
  basename: payload.basename,
413
- history: _chunkYMKMFAYZjs.createBrowserHistory.call(void 0, ),
414
- hydrationData: _chunk7VLQJKNGjs.getHydrationData.call(void 0, {
413
+ history: _chunkZZNWZ5Q3js.createBrowserHistory.call(void 0, ),
414
+ hydrationData: _chunkPZFPF4X7js.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
- _chunkYMKMFAYZjs.invariant.call(void 0, match, "Route not found in payload");
423
+ _chunkZZNWZ5Q3js.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 = _chunkYMKMFAYZjs.createContext.call(void 0, );
538
+ var renderedRoutesContext = _chunkZZNWZ5Q3js.createContext.call(void 0, );
539
539
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
540
- let dataStrategy = _chunkYMKMFAYZjs.getSingleFetchDataStrategyImpl.call(void 0,
540
+ let dataStrategy = _chunkZZNWZ5Q3js.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 = _chunkYMKMFAYZjs.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
598
+ let url = _chunkZZNWZ5Q3js.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
599
599
  if (request.method === "GET") {
600
- url = _chunkYMKMFAYZjs.stripIndexParam.call(void 0, url);
600
+ url = _chunkZZNWZ5Q3js.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 _chunkYMKMFAYZjs.createRequestInit.call(void 0, request))
606
+ new Request(url, await _chunkZZNWZ5Q3js.createRequestInit.call(void 0, request))
607
607
  );
608
608
  if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
609
- throw new (0, _chunkYMKMFAYZjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
609
+ throw new (0, _chunkZZNWZ5Q3js.ErrorResponseImpl)(res.status, res.statusText, await res.text());
610
610
  }
611
- _chunkYMKMFAYZjs.invariant.call(void 0, res.body, "No response body to decode");
611
+ _chunkZZNWZ5Q3js.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 = _chunkYMKMFAYZjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
635
+ const dataKey = _chunkZZNWZ5Q3js.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
- _chunkYMKMFAYZjs.setIsHydrated.call(void 0, );
668
+ _chunkZZNWZ5Q3js.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(_chunkYMKMFAYZjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunk7VLQJKNGjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkYMKMFAYZjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
778
- _chunkYMKMFAYZjs.RouterProvider,
777
+ return /* @__PURE__ */ React3.createElement(_chunkZZNWZ5Q3js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkPZFPF4X7js.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkZZNWZ5Q3js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
778
+ _chunkZZNWZ5Q3js.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
- _chunkYMKMFAYZjs.invariant.call(void 0, window.__reactRouterRouteModules);
795
- _chunk7VLQJKNGjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
794
+ _chunkZZNWZ5Q3js.invariant.call(void 0, window.__reactRouterRouteModules);
795
+ _chunkPZFPF4X7js.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 _chunkYMKMFAYZjs.noActionDefinedError.call(void 0, "action", match.id);
845
+ throw _chunkZZNWZ5Q3js.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 = _chunkYMKMFAYZjs.shouldHydrateRouteLoader.call(void 0,
858
+ dataRoute.loader.hydrate = _chunkZZNWZ5Q3js.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
- _chunkYMKMFAYZjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
868
+ _chunkZZNWZ5Q3js.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, _chunkYMKMFAYZjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
876
+ throw new (0, _chunkZZNWZ5Q3js.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 _chunkYMKMFAYZjs.invalidProtocols.includes(new URL(location2).protocol);
949
+ return _chunkZZNWZ5Q3js.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 v7.14.1
2
+ * react-router v7.14.2
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-BFXCU3MI.mjs";
17
+ } from "./chunk-YQSHRJWW.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-OE4NN4TA.mjs";
46
+ } from "./chunk-EVOBXE3Y.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-CMVbvxj9.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-CM_clkdE.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;
@@ -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-BzhbVly6.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-Djumx26z.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;
@@ -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-BzhbVly6.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-WSaoxloq.mjs';
3
- import './routeModules-Djumx26z.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-CimaPp9o.js';
2
- import './instrumentation-CMVbvxj9.js';
3
- import './routeModules-CM_clkdE.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';