react-router 0.0.0-experimental-6336d71a9 → 0.0.0-experimental-ebf23340b

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 (53) hide show
  1. package/dist/{production/chunk-AXEF4GTT.js → development/chunk-3FJJXNII.js} +132 -131
  2. package/dist/development/{chunk-ABOPEVTB.js → chunk-GZIAUTEM.js} +1 -1
  3. package/dist/development/{chunk-A5O7BHZB.mjs → chunk-QPDGWHQ7.mjs} +2 -2
  4. package/dist/development/{chunk-COWIXDDZ.mjs → chunk-VGAMJJWA.mjs} +3 -2
  5. package/dist/development/{context-DxpDNUkt.d.mts → context-BqL5Eckq.d.mts} +10 -0
  6. package/dist/development/dom-export.d.mts +1 -1
  7. package/dist/development/dom-export.js +3 -3
  8. package/dist/development/dom-export.mjs +3 -3
  9. package/dist/{production/index-react-server-client-BK28HOyz.d.mts → development/index-react-server-client-2EDmGlsZ.d.mts} +2 -2
  10. package/dist/{production/index-react-server-client-DTamczhY.d.ts → development/index-react-server-client-DKvU8YRr.d.ts} +1 -1
  11. package/dist/development/index-react-server-client.d.mts +3 -3
  12. package/dist/development/index-react-server-client.d.ts +2 -2
  13. package/dist/development/index-react-server-client.js +4 -4
  14. package/dist/development/index-react-server-client.mjs +2 -2
  15. package/dist/development/index-react-server.js +1 -1
  16. package/dist/development/index-react-server.mjs +1 -1
  17. package/dist/development/index.d.mts +6 -6
  18. package/dist/development/index.d.ts +4 -4
  19. package/dist/development/index.js +97 -97
  20. package/dist/development/index.mjs +3 -3
  21. package/dist/development/lib/types/internal.d.mts +2 -2
  22. package/dist/development/lib/types/internal.d.ts +1 -1
  23. package/dist/development/lib/types/internal.js +1 -1
  24. package/dist/development/lib/types/internal.mjs +1 -1
  25. package/dist/development/{route-data-AeZHuDjE.d.mts → route-data-CDwqkzPE.d.mts} +1 -1
  26. package/dist/development/{routeModules-b8-a2L4o.d.ts → routeModules-BmVo7q9e.d.ts} +10 -0
  27. package/dist/{development/chunk-MBBOIIBO.js → production/chunk-72RPF3NM.js} +132 -131
  28. package/dist/production/{chunk-6U7BHRVF.mjs → chunk-AY4GZSWZ.mjs} +2 -2
  29. package/dist/production/{chunk-VRTDRRG2.js → chunk-CMZZ5GRK.js} +1 -1
  30. package/dist/production/{chunk-PTKFVGPU.mjs → chunk-Q2RJ4JRR.mjs} +3 -2
  31. package/dist/production/{context-DxpDNUkt.d.mts → context-BqL5Eckq.d.mts} +10 -0
  32. package/dist/production/dom-export.d.mts +1 -1
  33. package/dist/production/dom-export.js +3 -3
  34. package/dist/production/dom-export.mjs +3 -3
  35. package/dist/{development/index-react-server-client-BK28HOyz.d.mts → production/index-react-server-client-2EDmGlsZ.d.mts} +2 -2
  36. package/dist/{development/index-react-server-client-DTamczhY.d.ts → production/index-react-server-client-DKvU8YRr.d.ts} +1 -1
  37. package/dist/production/index-react-server-client.d.mts +3 -3
  38. package/dist/production/index-react-server-client.d.ts +2 -2
  39. package/dist/production/index-react-server-client.js +4 -4
  40. package/dist/production/index-react-server-client.mjs +2 -2
  41. package/dist/production/index-react-server.js +1 -1
  42. package/dist/production/index-react-server.mjs +1 -1
  43. package/dist/production/index.d.mts +6 -6
  44. package/dist/production/index.d.ts +4 -4
  45. package/dist/production/index.js +97 -97
  46. package/dist/production/index.mjs +3 -3
  47. package/dist/production/lib/types/internal.d.mts +2 -2
  48. package/dist/production/lib/types/internal.d.ts +1 -1
  49. package/dist/production/lib/types/internal.js +1 -1
  50. package/dist/production/lib/types/internal.mjs +1 -1
  51. package/dist/production/{route-data-AeZHuDjE.d.mts → route-data-CDwqkzPE.d.mts} +1 -1
  52. package/dist/production/{routeModules-b8-a2L4o.d.ts → routeModules-BmVo7q9e.d.ts} +10 -0
  53. 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 _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-6336d71a9
2
+ * react-router v0.0.0-experimental-ebf23340b
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -61,7 +61,7 @@
61
61
 
62
62
 
63
63
 
64
- var _chunkVRTDRRG2js = require('./chunk-VRTDRRG2.js');
64
+ var _chunkGZIAUTEMjs = require('./chunk-GZIAUTEM.js');
65
65
 
66
66
  // lib/components.tsx
67
67
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
@@ -72,9 +72,9 @@ function mapRouteProperties(route) {
72
72
  hasErrorBoundary: route.hasErrorBoundary || route.ErrorBoundary != null || route.errorElement != null
73
73
  };
74
74
  if (route.Component) {
75
- if (_chunkVRTDRRG2js.ENABLE_DEV_WARNINGS) {
75
+ if (_chunkGZIAUTEMjs.ENABLE_DEV_WARNINGS) {
76
76
  if (route.element) {
77
- _chunkVRTDRRG2js.warning.call(void 0,
77
+ _chunkGZIAUTEMjs.warning.call(void 0,
78
78
  false,
79
79
  "You should not include both `Component` and `element` on your route - `Component` will be used."
80
80
  );
@@ -86,9 +86,9 @@ function mapRouteProperties(route) {
86
86
  });
87
87
  }
88
88
  if (route.HydrateFallback) {
89
- if (_chunkVRTDRRG2js.ENABLE_DEV_WARNINGS) {
89
+ if (_chunkGZIAUTEMjs.ENABLE_DEV_WARNINGS) {
90
90
  if (route.hydrateFallbackElement) {
91
- _chunkVRTDRRG2js.warning.call(void 0,
91
+ _chunkGZIAUTEMjs.warning.call(void 0,
92
92
  false,
93
93
  "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."
94
94
  );
@@ -100,9 +100,9 @@ function mapRouteProperties(route) {
100
100
  });
101
101
  }
102
102
  if (route.ErrorBoundary) {
103
- if (_chunkVRTDRRG2js.ENABLE_DEV_WARNINGS) {
103
+ if (_chunkGZIAUTEMjs.ENABLE_DEV_WARNINGS) {
104
104
  if (route.errorElement) {
105
- _chunkVRTDRRG2js.warning.call(void 0,
105
+ _chunkGZIAUTEMjs.warning.call(void 0,
106
106
  false,
107
107
  "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."
108
108
  );
@@ -120,11 +120,11 @@ var hydrationRouteProperties = [
120
120
  "hydrateFallbackElement"
121
121
  ];
122
122
  function createMemoryRouter(routes, opts) {
123
- return _chunkVRTDRRG2js.createRouter.call(void 0, {
123
+ return _chunkGZIAUTEMjs.createRouter.call(void 0, {
124
124
  basename: _optionalChain([opts, 'optionalAccess', _2 => _2.basename]),
125
125
  getContext: _optionalChain([opts, 'optionalAccess', _3 => _3.getContext]),
126
126
  future: _optionalChain([opts, 'optionalAccess', _4 => _4.future]),
127
- history: _chunkVRTDRRG2js.createMemoryHistory.call(void 0, {
127
+ history: _chunkGZIAUTEMjs.createMemoryHistory.call(void 0, {
128
128
  initialEntries: _optionalChain([opts, 'optionalAccess', _5 => _5.initialEntries]),
129
129
  initialIndex: _optionalChain([opts, 'optionalAccess', _6 => _6.initialIndex])
130
130
  }),
@@ -192,12 +192,12 @@ function RouterProvider({
192
192
  }
193
193
  });
194
194
  deletedFetchers.forEach((key) => fetcherData.current.delete(key));
195
- _chunkVRTDRRG2js.warnOnce.call(void 0,
195
+ _chunkGZIAUTEMjs.warnOnce.call(void 0,
196
196
  flushSync === false || reactDomFlushSyncImpl != null,
197
197
  'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
198
198
  );
199
199
  let isViewTransitionAvailable = router.window != null && router.window.document != null && typeof router.window.document.startViewTransition === "function";
200
- _chunkVRTDRRG2js.warnOnce.call(void 0,
200
+ _chunkGZIAUTEMjs.warnOnce.call(void 0,
201
201
  viewTransitionOpts == null || isViewTransitionAvailable,
202
202
  "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
203
203
  );
@@ -329,7 +329,7 @@ function RouterProvider({
329
329
  }),
330
330
  [router, navigator, basename, unstable_onError]
331
331
  );
332
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
332
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
333
333
  Router,
334
334
  {
335
335
  basename,
@@ -355,7 +355,7 @@ function DataRoutes({
355
355
  state,
356
356
  unstable_onError
357
357
  }) {
358
- return _chunkVRTDRRG2js.useRoutesImpl.call(void 0, routes, void 0, state, unstable_onError, future);
358
+ return _chunkGZIAUTEMjs.useRoutesImpl.call(void 0, routes, void 0, state, unstable_onError, future);
359
359
  }
360
360
  function MemoryRouter({
361
361
  basename,
@@ -365,7 +365,7 @@ function MemoryRouter({
365
365
  }) {
366
366
  let historyRef = React.useRef();
367
367
  if (historyRef.current == null) {
368
- historyRef.current = _chunkVRTDRRG2js.createMemoryHistory.call(void 0, {
368
+ historyRef.current = _chunkGZIAUTEMjs.createMemoryHistory.call(void 0, {
369
369
  initialEntries,
370
370
  initialIndex,
371
371
  v5Compat: true
@@ -400,23 +400,23 @@ function Navigate({
400
400
  state,
401
401
  relative
402
402
  }) {
403
- _chunkVRTDRRG2js.invariant.call(void 0,
404
- _chunkVRTDRRG2js.useInRouterContext.call(void 0, ),
403
+ _chunkGZIAUTEMjs.invariant.call(void 0,
404
+ _chunkGZIAUTEMjs.useInRouterContext.call(void 0, ),
405
405
  // TODO: This error is probably because they somehow have 2 versions of
406
406
  // the router loaded. We can help them understand how to avoid that.
407
407
  `<Navigate> may be used only in the context of a <Router> component.`
408
408
  );
409
- let { static: isStatic } = React.useContext(_chunkVRTDRRG2js.NavigationContext);
410
- _chunkVRTDRRG2js.warning.call(void 0,
409
+ let { static: isStatic } = React.useContext(_chunkGZIAUTEMjs.NavigationContext);
410
+ _chunkGZIAUTEMjs.warning.call(void 0,
411
411
  !isStatic,
412
412
  `<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`
413
413
  );
414
- let { matches } = React.useContext(_chunkVRTDRRG2js.RouteContext);
415
- let { pathname: locationPathname } = _chunkVRTDRRG2js.useLocation.call(void 0, );
416
- let navigate = _chunkVRTDRRG2js.useNavigate.call(void 0, );
417
- let path = _chunkVRTDRRG2js.resolveTo.call(void 0,
414
+ let { matches } = React.useContext(_chunkGZIAUTEMjs.RouteContext);
415
+ let { pathname: locationPathname } = _chunkGZIAUTEMjs.useLocation.call(void 0, );
416
+ let navigate = _chunkGZIAUTEMjs.useNavigate.call(void 0, );
417
+ let path = _chunkGZIAUTEMjs.resolveTo.call(void 0,
418
418
  to,
419
- _chunkVRTDRRG2js.getResolveToMatches.call(void 0, matches),
419
+ _chunkGZIAUTEMjs.getResolveToMatches.call(void 0, matches),
420
420
  locationPathname,
421
421
  relative === "path"
422
422
  );
@@ -427,10 +427,10 @@ function Navigate({
427
427
  return null;
428
428
  }
429
429
  function Outlet(props) {
430
- return _chunkVRTDRRG2js.useOutlet.call(void 0, props.context);
430
+ return _chunkGZIAUTEMjs.useOutlet.call(void 0, props.context);
431
431
  }
432
432
  function Route(props) {
433
- _chunkVRTDRRG2js.invariant.call(void 0,
433
+ _chunkGZIAUTEMjs.invariant.call(void 0,
434
434
  false,
435
435
  `A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`
436
436
  );
@@ -443,8 +443,8 @@ function Router({
443
443
  navigator,
444
444
  static: staticProp = false
445
445
  }) {
446
- _chunkVRTDRRG2js.invariant.call(void 0,
447
- !_chunkVRTDRRG2js.useInRouterContext.call(void 0, ),
446
+ _chunkGZIAUTEMjs.invariant.call(void 0,
447
+ !_chunkGZIAUTEMjs.useInRouterContext.call(void 0, ),
448
448
  `You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`
449
449
  );
450
450
  let basename = basenameProp.replace(/^\/*/, "/");
@@ -458,7 +458,7 @@ function Router({
458
458
  [basename, navigator, staticProp]
459
459
  );
460
460
  if (typeof locationProp === "string") {
461
- locationProp = _chunkVRTDRRG2js.parsePath.call(void 0, locationProp);
461
+ locationProp = _chunkGZIAUTEMjs.parsePath.call(void 0, locationProp);
462
462
  }
463
463
  let {
464
464
  pathname = "/",
@@ -468,7 +468,7 @@ function Router({
468
468
  key = "default"
469
469
  } = locationProp;
470
470
  let locationContext = React.useMemo(() => {
471
- let trailingPathname = _chunkVRTDRRG2js.stripBasename.call(void 0, pathname, basename);
471
+ let trailingPathname = _chunkGZIAUTEMjs.stripBasename.call(void 0, pathname, basename);
472
472
  if (trailingPathname == null) {
473
473
  return null;
474
474
  }
@@ -483,27 +483,27 @@ function Router({
483
483
  navigationType
484
484
  };
485
485
  }, [basename, pathname, search, hash, state, key, navigationType]);
486
- _chunkVRTDRRG2js.warning.call(void 0,
486
+ _chunkGZIAUTEMjs.warning.call(void 0,
487
487
  locationContext != null,
488
488
  `<Router basename="${basename}"> is not able to match the URL "${pathname}${search}${hash}" because it does not start with the basename, so the <Router> won't render anything.`
489
489
  );
490
490
  if (locationContext == null) {
491
491
  return null;
492
492
  }
493
- return /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.LocationContext.Provider, { children, value: locationContext }));
493
+ return /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.LocationContext.Provider, { children, value: locationContext }));
494
494
  }
495
495
  function Routes({
496
496
  children,
497
497
  location
498
498
  }) {
499
- return _chunkVRTDRRG2js.useRoutes.call(void 0, createRoutesFromChildren(children), location);
499
+ return _chunkGZIAUTEMjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
500
500
  }
501
501
  function Await({
502
502
  children,
503
503
  errorElement,
504
504
  resolve
505
505
  }) {
506
- let dataRouterContext = React.useContext(_chunkVRTDRRG2js.DataRouterContext);
506
+ let dataRouterContext = React.useContext(_chunkGZIAUTEMjs.DataRouterContext);
507
507
  return /* @__PURE__ */ React.createElement(
508
508
  AwaitErrorBoundary,
509
509
  {
@@ -567,10 +567,10 @@ var AwaitErrorBoundary = class extends React.Component {
567
567
  throw promise._error;
568
568
  }
569
569
  if (status === 2 /* error */) {
570
- return /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.AwaitContext.Provider, { value: promise, children: errorElement });
570
+ return /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.AwaitContext.Provider, { value: promise, children: errorElement });
571
571
  }
572
572
  if (status === 1 /* success */) {
573
- return /* @__PURE__ */ React.createElement(_chunkVRTDRRG2js.AwaitContext.Provider, { value: promise, children });
573
+ return /* @__PURE__ */ React.createElement(_chunkGZIAUTEMjs.AwaitContext.Provider, { value: promise, children });
574
574
  }
575
575
  throw promise;
576
576
  }
@@ -578,7 +578,7 @@ var AwaitErrorBoundary = class extends React.Component {
578
578
  function ResolveAwait({
579
579
  children
580
580
  }) {
581
- let data = _chunkVRTDRRG2js.useAsyncValue.call(void 0, );
581
+ let data = _chunkGZIAUTEMjs.useAsyncValue.call(void 0, );
582
582
  let toRender = typeof children === "function" ? children(data) : children;
583
583
  return /* @__PURE__ */ React.createElement(React.Fragment, null, toRender);
584
584
  }
@@ -596,11 +596,11 @@ function createRoutesFromChildren(children, parentPath = []) {
596
596
  );
597
597
  return;
598
598
  }
599
- _chunkVRTDRRG2js.invariant.call(void 0,
599
+ _chunkGZIAUTEMjs.invariant.call(void 0,
600
600
  element.type === Route,
601
601
  `[${typeof element.type === "string" ? element.type : element.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`
602
602
  );
603
- _chunkVRTDRRG2js.invariant.call(void 0,
603
+ _chunkGZIAUTEMjs.invariant.call(void 0,
604
604
  !element.props.index || !element.props.children,
605
605
  "An index route cannot have child routes."
606
606
  );
@@ -611,6 +611,7 @@ function createRoutesFromChildren(children, parentPath = []) {
611
611
  Component: element.props.Component,
612
612
  index: element.props.index,
613
613
  path: element.props.path,
614
+ middleware: element.props.middleware,
614
615
  loader: element.props.loader,
615
616
  action: element.props.action,
616
617
  hydrateFallbackElement: element.props.hydrateFallbackElement,
@@ -634,14 +635,14 @@ function createRoutesFromChildren(children, parentPath = []) {
634
635
  }
635
636
  var createRoutesFromElements = createRoutesFromChildren;
636
637
  function renderMatches(matches) {
637
- return _chunkVRTDRRG2js._renderMatches.call(void 0, matches);
638
+ return _chunkGZIAUTEMjs._renderMatches.call(void 0, matches);
638
639
  }
639
640
  function useRouteComponentProps() {
640
641
  return {
641
- params: _chunkVRTDRRG2js.useParams.call(void 0, ),
642
- loaderData: _chunkVRTDRRG2js.useLoaderData.call(void 0, ),
643
- actionData: _chunkVRTDRRG2js.useActionData.call(void 0, ),
644
- matches: _chunkVRTDRRG2js.useMatches.call(void 0, )
642
+ params: _chunkGZIAUTEMjs.useParams.call(void 0, ),
643
+ loaderData: _chunkGZIAUTEMjs.useLoaderData.call(void 0, ),
644
+ actionData: _chunkGZIAUTEMjs.useActionData.call(void 0, ),
645
+ matches: _chunkGZIAUTEMjs.useMatches.call(void 0, )
645
646
  };
646
647
  }
647
648
  function WithComponentProps({
@@ -658,9 +659,9 @@ function withComponentProps(Component2) {
658
659
  }
659
660
  function useHydrateFallbackProps() {
660
661
  return {
661
- params: _chunkVRTDRRG2js.useParams.call(void 0, ),
662
- loaderData: _chunkVRTDRRG2js.useLoaderData.call(void 0, ),
663
- actionData: _chunkVRTDRRG2js.useActionData.call(void 0, )
662
+ params: _chunkGZIAUTEMjs.useParams.call(void 0, ),
663
+ loaderData: _chunkGZIAUTEMjs.useLoaderData.call(void 0, ),
664
+ actionData: _chunkGZIAUTEMjs.useActionData.call(void 0, )
664
665
  };
665
666
  }
666
667
  function WithHydrateFallbackProps({
@@ -677,10 +678,10 @@ function withHydrateFallbackProps(HydrateFallback) {
677
678
  }
678
679
  function useErrorBoundaryProps() {
679
680
  return {
680
- params: _chunkVRTDRRG2js.useParams.call(void 0, ),
681
- loaderData: _chunkVRTDRRG2js.useLoaderData.call(void 0, ),
682
- actionData: _chunkVRTDRRG2js.useActionData.call(void 0, ),
683
- error: _chunkVRTDRRG2js.useRouteError.call(void 0, )
681
+ params: _chunkGZIAUTEMjs.useParams.call(void 0, ),
682
+ loaderData: _chunkGZIAUTEMjs.useLoaderData.call(void 0, ),
683
+ actionData: _chunkGZIAUTEMjs.useActionData.call(void 0, ),
684
+ error: _chunkGZIAUTEMjs.useRouteError.call(void 0, )
684
685
  };
685
686
  }
686
687
  function WithErrorBoundaryProps({
@@ -765,7 +766,7 @@ var supportedFormEncTypes = /* @__PURE__ */ new Set([
765
766
  ]);
766
767
  function getFormEncType(encType) {
767
768
  if (encType != null && !supportedFormEncTypes.has(encType)) {
768
- _chunkVRTDRRG2js.warning.call(void 0,
769
+ _chunkGZIAUTEMjs.warning.call(void 0,
769
770
  false,
770
771
  `"${encType}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`
771
772
  );
@@ -781,7 +782,7 @@ function getFormSubmissionInfo(target, basename) {
781
782
  let body;
782
783
  if (isFormElement(target)) {
783
784
  let attr = target.getAttribute("action");
784
- action = attr ? _chunkVRTDRRG2js.stripBasename.call(void 0, attr, basename) : null;
785
+ action = attr ? _chunkGZIAUTEMjs.stripBasename.call(void 0, attr, basename) : null;
785
786
  method = target.getAttribute("method") || defaultMethod;
786
787
  encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
787
788
  formData = new FormData(target);
@@ -793,7 +794,7 @@ function getFormSubmissionInfo(target, basename) {
793
794
  );
794
795
  }
795
796
  let attr = target.getAttribute("formaction") || form.getAttribute("action");
796
- action = attr ? _chunkVRTDRRG2js.stripBasename.call(void 0, attr, basename) : null;
797
+ action = attr ? _chunkGZIAUTEMjs.stripBasename.call(void 0, attr, basename) : null;
797
798
  method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
798
799
  encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
799
800
  formData = new FormData(form, target);
@@ -830,16 +831,16 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
830
831
  try {
831
832
  if (isBrowser) {
832
833
  window.__reactRouterVersion = // @ts-expect-error
833
- "0.0.0-experimental-6336d71a9";
834
+ "0.0.0-experimental-ebf23340b";
834
835
  }
835
836
  } catch (e) {
836
837
  }
837
838
  function createBrowserRouter(routes, opts) {
838
- return _chunkVRTDRRG2js.createRouter.call(void 0, {
839
+ return _chunkGZIAUTEMjs.createRouter.call(void 0, {
839
840
  basename: _optionalChain([opts, 'optionalAccess', _18 => _18.basename]),
840
841
  getContext: _optionalChain([opts, 'optionalAccess', _19 => _19.getContext]),
841
842
  future: _optionalChain([opts, 'optionalAccess', _20 => _20.future]),
842
- history: _chunkVRTDRRG2js.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _21 => _21.window]) }),
843
+ history: _chunkGZIAUTEMjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _21 => _21.window]) }),
843
844
  hydrationData: _optionalChain([opts, 'optionalAccess', _22 => _22.hydrationData]) || parseHydrationData(),
844
845
  routes,
845
846
  mapRouteProperties,
@@ -850,11 +851,11 @@ function createBrowserRouter(routes, opts) {
850
851
  }).initialize();
851
852
  }
852
853
  function createHashRouter(routes, opts) {
853
- return _chunkVRTDRRG2js.createRouter.call(void 0, {
854
+ return _chunkGZIAUTEMjs.createRouter.call(void 0, {
854
855
  basename: _optionalChain([opts, 'optionalAccess', _26 => _26.basename]),
855
856
  getContext: _optionalChain([opts, 'optionalAccess', _27 => _27.getContext]),
856
857
  future: _optionalChain([opts, 'optionalAccess', _28 => _28.future]),
857
- history: _chunkVRTDRRG2js.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _29 => _29.window]) }),
858
+ history: _chunkGZIAUTEMjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _29 => _29.window]) }),
858
859
  hydrationData: _optionalChain([opts, 'optionalAccess', _30 => _30.hydrationData]) || parseHydrationData(),
859
860
  routes,
860
861
  mapRouteProperties,
@@ -880,7 +881,7 @@ function deserializeErrors(errors) {
880
881
  let serialized = {};
881
882
  for (let [key, val] of entries) {
882
883
  if (val && val.__type === "RouteErrorResponse") {
883
- serialized[key] = new (0, _chunkVRTDRRG2js.ErrorResponseImpl)(
884
+ serialized[key] = new (0, _chunkGZIAUTEMjs.ErrorResponseImpl)(
884
885
  val.status,
885
886
  val.statusText,
886
887
  val.data,
@@ -916,7 +917,7 @@ function BrowserRouter({
916
917
  }) {
917
918
  let historyRef = React2.useRef();
918
919
  if (historyRef.current == null) {
919
- historyRef.current = _chunkVRTDRRG2js.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
920
+ historyRef.current = _chunkGZIAUTEMjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
920
921
  }
921
922
  let history = historyRef.current;
922
923
  let [state, setStateImpl] = React2.useState({
@@ -944,7 +945,7 @@ function BrowserRouter({
944
945
  function HashRouter({ basename, children, window: window2 }) {
945
946
  let historyRef = React2.useRef();
946
947
  if (historyRef.current == null) {
947
- historyRef.current = _chunkVRTDRRG2js.createHashHistory.call(void 0, { window: window2, v5Compat: true });
948
+ historyRef.current = _chunkGZIAUTEMjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
948
949
  }
949
950
  let history = historyRef.current;
950
951
  let [state, setStateImpl] = React2.useState({
@@ -1013,7 +1014,7 @@ var Link = React2.forwardRef(
1013
1014
  viewTransition,
1014
1015
  ...rest
1015
1016
  }, forwardedRef) {
1016
- let { basename } = React2.useContext(_chunkVRTDRRG2js.NavigationContext);
1017
+ let { basename } = React2.useContext(_chunkGZIAUTEMjs.NavigationContext);
1017
1018
  let isAbsolute = typeof to === "string" && ABSOLUTE_URL_REGEX.test(to);
1018
1019
  let absoluteHref;
1019
1020
  let isExternal = false;
@@ -1023,22 +1024,22 @@ var Link = React2.forwardRef(
1023
1024
  try {
1024
1025
  let currentUrl = new URL(window.location.href);
1025
1026
  let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
1026
- let path = _chunkVRTDRRG2js.stripBasename.call(void 0, targetUrl.pathname, basename);
1027
+ let path = _chunkGZIAUTEMjs.stripBasename.call(void 0, targetUrl.pathname, basename);
1027
1028
  if (targetUrl.origin === currentUrl.origin && path != null) {
1028
1029
  to = path + targetUrl.search + targetUrl.hash;
1029
1030
  } else {
1030
1031
  isExternal = true;
1031
1032
  }
1032
1033
  } catch (e) {
1033
- _chunkVRTDRRG2js.warning.call(void 0,
1034
+ _chunkGZIAUTEMjs.warning.call(void 0,
1034
1035
  false,
1035
1036
  `<Link to="${to}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1036
1037
  );
1037
1038
  }
1038
1039
  }
1039
1040
  }
1040
- let href = _chunkVRTDRRG2js.useHref.call(void 0, to, { relative });
1041
- let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkVRTDRRG2js.usePrefetchBehavior.call(void 0,
1041
+ let href = _chunkGZIAUTEMjs.useHref.call(void 0, to, { relative });
1042
+ let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkGZIAUTEMjs.usePrefetchBehavior.call(void 0,
1042
1043
  prefetch,
1043
1044
  rest
1044
1045
  );
@@ -1065,13 +1066,13 @@ var Link = React2.forwardRef(
1065
1066
  ...prefetchHandlers,
1066
1067
  href: absoluteHref || href,
1067
1068
  onClick: isExternal || reloadDocument ? onClick : handleClick,
1068
- ref: _chunkVRTDRRG2js.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1069
+ ref: _chunkGZIAUTEMjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1069
1070
  target,
1070
1071
  "data-discover": !isAbsolute && discover === "render" ? "true" : void 0
1071
1072
  }
1072
1073
  )
1073
1074
  );
1074
- return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunkVRTDRRG2js.PrefetchPageLinks, { page: href })) : link;
1075
+ return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunkGZIAUTEMjs.PrefetchPageLinks, { page: href })) : link;
1075
1076
  }
1076
1077
  );
1077
1078
  Link.displayName = "Link";
@@ -1087,10 +1088,10 @@ var NavLink = React2.forwardRef(
1087
1088
  children,
1088
1089
  ...rest
1089
1090
  }, ref) {
1090
- let path = _chunkVRTDRRG2js.useResolvedPath.call(void 0, to, { relative: rest.relative });
1091
- let location = _chunkVRTDRRG2js.useLocation.call(void 0, );
1092
- let routerState = React2.useContext(_chunkVRTDRRG2js.DataRouterStateContext);
1093
- let { navigator, basename } = React2.useContext(_chunkVRTDRRG2js.NavigationContext);
1091
+ let path = _chunkGZIAUTEMjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1092
+ let location = _chunkGZIAUTEMjs.useLocation.call(void 0, );
1093
+ let routerState = React2.useContext(_chunkGZIAUTEMjs.DataRouterStateContext);
1094
+ let { navigator, basename } = React2.useContext(_chunkGZIAUTEMjs.NavigationContext);
1094
1095
  let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static
1095
1096
  // eslint-disable-next-line react-hooks/rules-of-hooks
1096
1097
  useViewTransitionState(path) && viewTransition === true;
@@ -1103,7 +1104,7 @@ var NavLink = React2.forwardRef(
1103
1104
  toPathname = toPathname.toLowerCase();
1104
1105
  }
1105
1106
  if (nextLocationPathname && basename) {
1106
- nextLocationPathname = _chunkVRTDRRG2js.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1107
+ nextLocationPathname = _chunkGZIAUTEMjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1107
1108
  }
1108
1109
  const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length;
1109
1110
  let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/";
@@ -1198,10 +1199,10 @@ function ScrollRestoration({
1198
1199
  storageKey,
1199
1200
  ...props
1200
1201
  }) {
1201
- let remixContext = React2.useContext(_chunkVRTDRRG2js.FrameworkContext);
1202
- let { basename } = React2.useContext(_chunkVRTDRRG2js.NavigationContext);
1203
- let location = _chunkVRTDRRG2js.useLocation.call(void 0, );
1204
- let matches = _chunkVRTDRRG2js.useMatches.call(void 0, );
1202
+ let remixContext = React2.useContext(_chunkGZIAUTEMjs.FrameworkContext);
1203
+ let { basename } = React2.useContext(_chunkGZIAUTEMjs.NavigationContext);
1204
+ let location = _chunkGZIAUTEMjs.useLocation.call(void 0, );
1205
+ let matches = _chunkGZIAUTEMjs.useMatches.call(void 0, );
1205
1206
  useScrollRestoration({ getKey, storageKey });
1206
1207
  let ssrKey = React2.useMemo(
1207
1208
  () => {
@@ -1255,13 +1256,13 @@ function getDataRouterConsoleError(hookName) {
1255
1256
  return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1256
1257
  }
1257
1258
  function useDataRouterContext(hookName) {
1258
- let ctx = React2.useContext(_chunkVRTDRRG2js.DataRouterContext);
1259
- _chunkVRTDRRG2js.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1259
+ let ctx = React2.useContext(_chunkGZIAUTEMjs.DataRouterContext);
1260
+ _chunkGZIAUTEMjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1260
1261
  return ctx;
1261
1262
  }
1262
1263
  function useDataRouterState(hookName) {
1263
- let state = React2.useContext(_chunkVRTDRRG2js.DataRouterStateContext);
1264
- _chunkVRTDRRG2js.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1264
+ let state = React2.useContext(_chunkGZIAUTEMjs.DataRouterStateContext);
1265
+ _chunkGZIAUTEMjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1265
1266
  return state;
1266
1267
  }
1267
1268
  function useLinkClickHandler(to, {
@@ -1272,14 +1273,14 @@ function useLinkClickHandler(to, {
1272
1273
  relative,
1273
1274
  viewTransition
1274
1275
  } = {}) {
1275
- let navigate = _chunkVRTDRRG2js.useNavigate.call(void 0, );
1276
- let location = _chunkVRTDRRG2js.useLocation.call(void 0, );
1277
- let path = _chunkVRTDRRG2js.useResolvedPath.call(void 0, to, { relative });
1276
+ let navigate = _chunkGZIAUTEMjs.useNavigate.call(void 0, );
1277
+ let location = _chunkGZIAUTEMjs.useLocation.call(void 0, );
1278
+ let path = _chunkGZIAUTEMjs.useResolvedPath.call(void 0, to, { relative });
1278
1279
  return React2.useCallback(
1279
1280
  (event) => {
1280
1281
  if (shouldProcessLinkClick(event, target)) {
1281
1282
  event.preventDefault();
1282
- let replace = replaceProp !== void 0 ? replaceProp : _chunkVRTDRRG2js.createPath.call(void 0, location) === _chunkVRTDRRG2js.createPath.call(void 0, path);
1283
+ let replace = replaceProp !== void 0 ? replaceProp : _chunkGZIAUTEMjs.createPath.call(void 0, location) === _chunkGZIAUTEMjs.createPath.call(void 0, path);
1283
1284
  navigate(to, {
1284
1285
  replace,
1285
1286
  state,
@@ -1304,13 +1305,13 @@ function useLinkClickHandler(to, {
1304
1305
  );
1305
1306
  }
1306
1307
  function useSearchParams(defaultInit) {
1307
- _chunkVRTDRRG2js.warning.call(void 0,
1308
+ _chunkGZIAUTEMjs.warning.call(void 0,
1308
1309
  typeof URLSearchParams !== "undefined",
1309
1310
  `You cannot use the \`useSearchParams\` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.`
1310
1311
  );
1311
1312
  let defaultSearchParamsRef = React2.useRef(createSearchParams(defaultInit));
1312
1313
  let hasSetSearchParamsRef = React2.useRef(false);
1313
- let location = _chunkVRTDRRG2js.useLocation.call(void 0, );
1314
+ let location = _chunkGZIAUTEMjs.useLocation.call(void 0, );
1314
1315
  let searchParams = React2.useMemo(
1315
1316
  () => (
1316
1317
  // Only merge in the defaults if we haven't yet called setSearchParams.
@@ -1323,7 +1324,7 @@ function useSearchParams(defaultInit) {
1323
1324
  ),
1324
1325
  [location.search]
1325
1326
  );
1326
- let navigate = _chunkVRTDRRG2js.useNavigate.call(void 0, );
1327
+ let navigate = _chunkGZIAUTEMjs.useNavigate.call(void 0, );
1327
1328
  let setSearchParams = React2.useCallback(
1328
1329
  (nextInit, navigateOptions) => {
1329
1330
  const newSearchParams = createSearchParams(
@@ -1340,8 +1341,8 @@ var fetcherId = 0;
1340
1341
  var getUniqueFetcherId = () => `__${String(++fetcherId)}__`;
1341
1342
  function useSubmit() {
1342
1343
  let { router } = useDataRouterContext("useSubmit" /* UseSubmit */);
1343
- let { basename } = React2.useContext(_chunkVRTDRRG2js.NavigationContext);
1344
- let currentRouteId = _chunkVRTDRRG2js.useRouteId.call(void 0, );
1344
+ let { basename } = React2.useContext(_chunkGZIAUTEMjs.NavigationContext);
1345
+ let currentRouteId = _chunkGZIAUTEMjs.useRouteId.call(void 0, );
1345
1346
  return React2.useCallback(
1346
1347
  async (target, options = {}) => {
1347
1348
  let { action, method, encType, formData, body } = getFormSubmissionInfo(
@@ -1377,12 +1378,12 @@ function useSubmit() {
1377
1378
  );
1378
1379
  }
1379
1380
  function useFormAction(action, { relative } = {}) {
1380
- let { basename } = React2.useContext(_chunkVRTDRRG2js.NavigationContext);
1381
- let routeContext = React2.useContext(_chunkVRTDRRG2js.RouteContext);
1382
- _chunkVRTDRRG2js.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1381
+ let { basename } = React2.useContext(_chunkGZIAUTEMjs.NavigationContext);
1382
+ let routeContext = React2.useContext(_chunkGZIAUTEMjs.RouteContext);
1383
+ _chunkGZIAUTEMjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1383
1384
  let [match] = routeContext.matches.slice(-1);
1384
- let path = { ..._chunkVRTDRRG2js.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1385
- let location = _chunkVRTDRRG2js.useLocation.call(void 0, );
1385
+ let path = { ..._chunkGZIAUTEMjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1386
+ let location = _chunkGZIAUTEMjs.useLocation.call(void 0, );
1386
1387
  if (action == null) {
1387
1388
  path.search = location.search;
1388
1389
  let params = new URLSearchParams(path.search);
@@ -1399,21 +1400,21 @@ function useFormAction(action, { relative } = {}) {
1399
1400
  path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
1400
1401
  }
1401
1402
  if (basename !== "/") {
1402
- path.pathname = path.pathname === "/" ? basename : _chunkVRTDRRG2js.joinPaths.call(void 0, [basename, path.pathname]);
1403
+ path.pathname = path.pathname === "/" ? basename : _chunkGZIAUTEMjs.joinPaths.call(void 0, [basename, path.pathname]);
1403
1404
  }
1404
- return _chunkVRTDRRG2js.createPath.call(void 0, path);
1405
+ return _chunkGZIAUTEMjs.createPath.call(void 0, path);
1405
1406
  }
1406
1407
  function useFetcher({
1407
1408
  key
1408
1409
  } = {}) {
1409
1410
  let { router } = useDataRouterContext("useFetcher" /* UseFetcher */);
1410
1411
  let state = useDataRouterState("useFetcher" /* UseFetcher */);
1411
- let fetcherData = React2.useContext(_chunkVRTDRRG2js.FetchersContext);
1412
- let route = React2.useContext(_chunkVRTDRRG2js.RouteContext);
1412
+ let fetcherData = React2.useContext(_chunkGZIAUTEMjs.FetchersContext);
1413
+ let route = React2.useContext(_chunkGZIAUTEMjs.RouteContext);
1413
1414
  let routeId = _optionalChain([route, 'access', _37 => _37.matches, 'access', _38 => _38[route.matches.length - 1], 'optionalAccess', _39 => _39.route, 'access', _40 => _40.id]);
1414
- _chunkVRTDRRG2js.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1415
- _chunkVRTDRRG2js.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1416
- _chunkVRTDRRG2js.invariant.call(void 0,
1415
+ _chunkGZIAUTEMjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1416
+ _chunkGZIAUTEMjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1417
+ _chunkGZIAUTEMjs.invariant.call(void 0,
1417
1418
  routeId != null,
1418
1419
  `useFetcher can only be used on routes that contain a unique "id"`
1419
1420
  );
@@ -1428,7 +1429,7 @@ function useFetcher({
1428
1429
  }, [router, fetcherKey]);
1429
1430
  let load = React2.useCallback(
1430
1431
  async (href, opts) => {
1431
- _chunkVRTDRRG2js.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1432
+ _chunkGZIAUTEMjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1432
1433
  await router.fetch(fetcherKey, routeId, href, opts);
1433
1434
  },
1434
1435
  [fetcherKey, routeId, router]
@@ -1454,7 +1455,7 @@ function useFetcher({
1454
1455
  FetcherForm2.displayName = "fetcher.Form";
1455
1456
  return FetcherForm2;
1456
1457
  }, [fetcherKey]);
1457
- let fetcher = state.fetchers.get(fetcherKey) || _chunkVRTDRRG2js.IDLE_FETCHER;
1458
+ let fetcher = state.fetchers.get(fetcherKey) || _chunkGZIAUTEMjs.IDLE_FETCHER;
1458
1459
  let data = fetcherData.get(fetcherKey);
1459
1460
  let fetcherWithComponents = React2.useMemo(
1460
1461
  () => ({
@@ -1485,7 +1486,7 @@ function getScrollRestorationKey(location, matches, basename, getKey) {
1485
1486
  key = getKey(
1486
1487
  {
1487
1488
  ...location,
1488
- pathname: _chunkVRTDRRG2js.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1489
+ pathname: _chunkGZIAUTEMjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1489
1490
  },
1490
1491
  matches
1491
1492
  );
@@ -1506,10 +1507,10 @@ function useScrollRestoration({
1506
1507
  let { restoreScrollPosition, preventScrollReset } = useDataRouterState(
1507
1508
  "useScrollRestoration" /* UseScrollRestoration */
1508
1509
  );
1509
- let { basename } = React2.useContext(_chunkVRTDRRG2js.NavigationContext);
1510
- let location = _chunkVRTDRRG2js.useLocation.call(void 0, );
1511
- let matches = _chunkVRTDRRG2js.useMatches.call(void 0, );
1512
- let navigation = _chunkVRTDRRG2js.useNavigation.call(void 0, );
1510
+ let { basename } = React2.useContext(_chunkGZIAUTEMjs.NavigationContext);
1511
+ let location = _chunkGZIAUTEMjs.useLocation.call(void 0, );
1512
+ let matches = _chunkGZIAUTEMjs.useMatches.call(void 0, );
1513
+ let navigation = _chunkGZIAUTEMjs.useNavigation.call(void 0, );
1513
1514
  React2.useEffect(() => {
1514
1515
  window.history.scrollRestoration = "manual";
1515
1516
  return () => {
@@ -1528,7 +1529,7 @@ function useScrollRestoration({
1528
1529
  JSON.stringify(savedScrollPositions)
1529
1530
  );
1530
1531
  } catch (error) {
1531
- _chunkVRTDRRG2js.warning.call(void 0,
1532
+ _chunkGZIAUTEMjs.warning.call(void 0,
1532
1533
  false,
1533
1534
  `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${error}).`
1534
1535
  );
@@ -1575,7 +1576,7 @@ function useScrollRestoration({
1575
1576
  }
1576
1577
  }
1577
1578
  } catch (e2) {
1578
- _chunkVRTDRRG2js.warning.call(void 0,
1579
+ _chunkGZIAUTEMjs.warning.call(void 0,
1579
1580
  false,
1580
1581
  `"${location.hash.slice(
1581
1582
  1
@@ -1613,7 +1614,7 @@ function usePrompt({
1613
1614
  when,
1614
1615
  message
1615
1616
  }) {
1616
- let blocker = _chunkVRTDRRG2js.useBlocker.call(void 0, when);
1617
+ let blocker = _chunkGZIAUTEMjs.useBlocker.call(void 0, when);
1617
1618
  React2.useEffect(() => {
1618
1619
  if (blocker.state === "blocked") {
1619
1620
  let proceed = window.confirm(message);
@@ -1631,21 +1632,21 @@ function usePrompt({
1631
1632
  }, [blocker, when]);
1632
1633
  }
1633
1634
  function useViewTransitionState(to, { relative } = {}) {
1634
- let vtContext = React2.useContext(_chunkVRTDRRG2js.ViewTransitionContext);
1635
- _chunkVRTDRRG2js.invariant.call(void 0,
1635
+ let vtContext = React2.useContext(_chunkGZIAUTEMjs.ViewTransitionContext);
1636
+ _chunkGZIAUTEMjs.invariant.call(void 0,
1636
1637
  vtContext != null,
1637
1638
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1638
1639
  );
1639
1640
  let { basename } = useDataRouterContext(
1640
1641
  "useViewTransitionState" /* useViewTransitionState */
1641
1642
  );
1642
- let path = _chunkVRTDRRG2js.useResolvedPath.call(void 0, to, { relative });
1643
+ let path = _chunkGZIAUTEMjs.useResolvedPath.call(void 0, to, { relative });
1643
1644
  if (!vtContext.isTransitioning) {
1644
1645
  return false;
1645
1646
  }
1646
- let currentPath = _chunkVRTDRRG2js.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1647
- let nextPath = _chunkVRTDRRG2js.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1648
- return _chunkVRTDRRG2js.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkVRTDRRG2js.matchPath.call(void 0, path.pathname, currentPath) != null;
1647
+ let currentPath = _chunkGZIAUTEMjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1648
+ let nextPath = _chunkGZIAUTEMjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1649
+ return _chunkGZIAUTEMjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkGZIAUTEMjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1649
1650
  }
1650
1651
 
1651
1652
  // lib/dom/server.tsx
@@ -1656,7 +1657,7 @@ function StaticRouter({
1656
1657
  location: locationProp = "/"
1657
1658
  }) {
1658
1659
  if (typeof locationProp === "string") {
1659
- locationProp = _chunkVRTDRRG2js.parsePath.call(void 0, locationProp);
1660
+ locationProp = _chunkGZIAUTEMjs.parsePath.call(void 0, locationProp);
1660
1661
  }
1661
1662
  let action = "POP" /* Pop */;
1662
1663
  let location = {
@@ -1685,7 +1686,7 @@ function StaticRouterProvider({
1685
1686
  hydrate = true,
1686
1687
  nonce
1687
1688
  }) {
1688
- _chunkVRTDRRG2js.invariant.call(void 0,
1689
+ _chunkGZIAUTEMjs.invariant.call(void 0,
1689
1690
  router && context,
1690
1691
  "You must provide `router` and `context` to <StaticRouterProvider>"
1691
1692
  );
@@ -1708,7 +1709,7 @@ function StaticRouterProvider({
1708
1709
  hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
1709
1710
  }
1710
1711
  let { state } = dataRouterContext.router;
1711
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunkVRTDRRG2js.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunkVRTDRRG2js.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunkVRTDRRG2js.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunkVRTDRRG2js.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1712
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunkGZIAUTEMjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunkGZIAUTEMjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunkGZIAUTEMjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunkGZIAUTEMjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1712
1713
  Router,
1713
1714
  {
1714
1715
  basename: dataRouterContext.basename,
@@ -1739,14 +1740,14 @@ function DataRoutes2({
1739
1740
  future,
1740
1741
  state
1741
1742
  }) {
1742
- return _chunkVRTDRRG2js.useRoutesImpl.call(void 0, routes, void 0, state, void 0, future);
1743
+ return _chunkGZIAUTEMjs.useRoutesImpl.call(void 0, routes, void 0, state, void 0, future);
1743
1744
  }
1744
1745
  function serializeErrors(errors) {
1745
1746
  if (!errors) return null;
1746
1747
  let entries = Object.entries(errors);
1747
1748
  let serialized = {};
1748
1749
  for (let [key, val] of entries) {
1749
- if (_chunkVRTDRRG2js.isRouteErrorResponse.call(void 0, val)) {
1750
+ if (_chunkGZIAUTEMjs.isRouteErrorResponse.call(void 0, val)) {
1750
1751
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
1751
1752
  } else if (val instanceof Error) {
1752
1753
  serialized[key] = {
@@ -1796,14 +1797,14 @@ function getStatelessNavigator() {
1796
1797
  };
1797
1798
  }
1798
1799
  function createStaticHandler2(routes, opts) {
1799
- return _chunkVRTDRRG2js.createStaticHandler.call(void 0, routes, {
1800
+ return _chunkGZIAUTEMjs.createStaticHandler.call(void 0, routes, {
1800
1801
  ...opts,
1801
1802
  mapRouteProperties
1802
1803
  });
1803
1804
  }
1804
1805
  function createStaticRouter(routes, context, opts = {}) {
1805
1806
  let manifest = {};
1806
- let dataRoutes = _chunkVRTDRRG2js.convertRoutesToDataRoutes.call(void 0,
1807
+ let dataRoutes = _chunkGZIAUTEMjs.convertRoutesToDataRoutes.call(void 0,
1807
1808
  routes,
1808
1809
  mapRouteProperties,
1809
1810
  void 0,
@@ -1836,7 +1837,7 @@ function createStaticRouter(routes, context, opts = {}) {
1836
1837
  actionData: context.actionData,
1837
1838
  errors: context.errors,
1838
1839
  initialized: true,
1839
- navigation: _chunkVRTDRRG2js.IDLE_NAVIGATION,
1840
+ navigation: _chunkGZIAUTEMjs.IDLE_NAVIGATION,
1840
1841
  restoreScrollPosition: null,
1841
1842
  preventScrollReset: false,
1842
1843
  revalidation: "idle",
@@ -1871,7 +1872,7 @@ function createStaticRouter(routes, context, opts = {}) {
1871
1872
  createHref,
1872
1873
  encodeLocation,
1873
1874
  getFetcher() {
1874
- return _chunkVRTDRRG2js.IDLE_FETCHER;
1875
+ return _chunkGZIAUTEMjs.IDLE_FETCHER;
1875
1876
  },
1876
1877
  deleteFetcher() {
1877
1878
  throw msg("deleteFetcher");
@@ -1883,7 +1884,7 @@ function createStaticRouter(routes, context, opts = {}) {
1883
1884
  throw msg("dispose");
1884
1885
  },
1885
1886
  getBlocker() {
1886
- return _chunkVRTDRRG2js.IDLE_BLOCKER;
1887
+ return _chunkGZIAUTEMjs.IDLE_BLOCKER;
1887
1888
  },
1888
1889
  deleteBlocker() {
1889
1890
  throw msg("deleteBlocker");
@@ -1901,10 +1902,10 @@ function createStaticRouter(routes, context, opts = {}) {
1901
1902
  };
1902
1903
  }
1903
1904
  function createHref(to) {
1904
- return typeof to === "string" ? to : _chunkVRTDRRG2js.createPath.call(void 0, to);
1905
+ return typeof to === "string" ? to : _chunkGZIAUTEMjs.createPath.call(void 0, to);
1905
1906
  }
1906
1907
  function encodeLocation(to) {
1907
- let href = typeof to === "string" ? to : _chunkVRTDRRG2js.createPath.call(void 0, to);
1908
+ let href = typeof to === "string" ? to : _chunkGZIAUTEMjs.createPath.call(void 0, to);
1908
1909
  href = href.replace(/ $/, "%20");
1909
1910
  let encoded = ABSOLUTE_URL_REGEX2.test(href) ? new URL(href) : new URL(href, "http://localhost");
1910
1911
  return {