@ohif/app 3.14.0-beta.98 → 3.14.0-beta.99

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 (62) hide show
  1. package/dist/{1645.bundle.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
  2. package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
  3. package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
  4. package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
  5. package/dist/204.bundle.bc44c201.js +101 -0
  6. package/dist/204.bundle.css +52 -0
  7. package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
  8. package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
  9. package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
  10. package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
  11. package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
  12. package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
  13. package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
  14. package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
  15. package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
  16. package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
  17. package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
  18. package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
  19. package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
  20. package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
  21. package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
  22. package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
  23. package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
  24. package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
  25. package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
  26. package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
  27. package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
  28. package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
  29. package/dist/{6253.bundle.f74ac5c2.js → 6253.bundle.596ce463.js} +1225 -1145
  30. package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
  31. package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
  32. package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
  33. package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
  34. package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
  35. package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
  36. package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
  37. package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
  38. package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
  39. package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
  40. package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
  41. package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
  42. package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
  43. package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
  44. package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
  45. package/dist/9385.bundle.fb0bbf4a.js +1888 -0
  46. package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
  47. package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
  48. package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
  49. package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
  50. package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
  51. package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
  52. package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
  53. package/dist/{app.bundle.51f0a437.js → app.bundle.bb359653.js} +1926 -1223
  54. package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
  55. package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
  56. package/dist/index.html +1 -1
  57. package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
  58. package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
  59. package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
  60. package/dist/sw.js +11 -1
  61. package/package.json +14 -19
  62. package/dist/1566.bundle.d58db206.js +0 -3610
@@ -1331,7 +1331,7 @@ const validRequestMethodsArr = ["get", ...validMutationMethodsArr];
1331
1331
  const validRequestMethods = new Set(validRequestMethodsArr);
1332
1332
  const redirectStatusCodes = new Set([301, 302, 303, 307, 308]);
1333
1333
  const redirectPreserveMethodStatusCodes = new Set([307, 308]);
1334
- const IDLE_NAVIGATION = (/* unused pure expression or super */ null && ({
1334
+ const IDLE_NAVIGATION = {
1335
1335
  state: "idle",
1336
1336
  location: undefined,
1337
1337
  formMethod: undefined,
@@ -1340,8 +1340,8 @@ const IDLE_NAVIGATION = (/* unused pure expression or super */ null && ({
1340
1340
  formData: undefined,
1341
1341
  json: undefined,
1342
1342
  text: undefined
1343
- }));
1344
- const IDLE_FETCHER = (/* unused pure expression or super */ null && ({
1343
+ };
1344
+ const IDLE_FETCHER = {
1345
1345
  state: "idle",
1346
1346
  data: undefined,
1347
1347
  formMethod: undefined,
@@ -1350,13 +1350,13 @@ const IDLE_FETCHER = (/* unused pure expression or super */ null && ({
1350
1350
  formData: undefined,
1351
1351
  json: undefined,
1352
1352
  text: undefined
1353
- }));
1354
- const IDLE_BLOCKER = (/* unused pure expression or super */ null && ({
1353
+ };
1354
+ const IDLE_BLOCKER = {
1355
1355
  state: "unblocked",
1356
1356
  proceed: undefined,
1357
1357
  reset: undefined,
1358
1358
  location: undefined
1359
- }));
1359
+ };
1360
1360
  const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
1361
1361
  const defaultMapRouteProperties = route => ({
1362
1362
  hasErrorBoundary: Boolean(route.hasErrorBoundary)
@@ -5076,18 +5076,34 @@ function persistAppliedTransitions(_window, transitions) {
5076
5076
 
5077
5077
  __webpack_require__.d(__webpack_exports__, {
5078
5078
  AO: () => (createPath),
5079
+ B6: () => (matchPath),
5079
5080
  Gh: () => (resolveTo),
5080
5081
  Oi: () => (invariant),
5082
+ RO: () => (decodePath),
5081
5083
  Rr: () => (parsePath),
5084
+ TM: () => (createHashHistory),
5085
+ VV: () => (ErrorResponseImpl),
5086
+ aE: () => (createRouter),
5087
+ o1: () => (resolvePath),
5082
5088
  pX: () => (isRouteErrorResponse),
5083
5089
  pb: () => (stripBasename),
5084
5090
  rc: () => (Action),
5091
+ ro: () => (convertRouteMatchToUiMatch),
5092
+ sC: () => (createMemoryHistory),
5085
5093
  tH: () => (AbortedDeferredError),
5094
+ tW: () => (generatePath),
5086
5095
  ue: () => (matchRoutes),
5087
5096
  yD: () => (getResolveToMatches),
5088
5097
  zR: () => (createBrowserHistory)
5089
5098
  }, {
5090
- HS: joinPaths
5099
+ G3: IDLE_BLOCKER,
5100
+ HC: replace,
5101
+ HS: joinPaths,
5102
+ HW: IDLE_FETCHER,
5103
+ Pq: json,
5104
+ Sk: redirectDocument,
5105
+ V2: redirect,
5106
+ v6: defer
5091
5107
  });
5092
5108
 
5093
5109
 
@@ -5095,6 +5111,7 @@ __webpack_require__.d(__webpack_exports__, {
5095
5111
  73657(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5096
5112
  var react__rspack_import_0_namespace_cache;
5097
5113
  var react_dom__rspack_import_1_namespace_cache;
5114
+ __webpack_require__.r(__webpack_exports__);
5098
5115
  /* import */ var react__rspack_import_0 = __webpack_require__(14041);
5099
5116
  /* import */ var react_dom__rspack_import_1 = __webpack_require__(43144);
5100
5117
  /* import */ var react_router__rspack_import_2 = __webpack_require__(18690);
@@ -5250,7 +5267,7 @@ function getFormSubmissionInfo(target, basename) {
5250
5267
  // prefixed to ensure non-JS scenarios work, so strip it since we'll
5251
5268
  // re-prefix in the router
5252
5269
  let attr = target.getAttribute("action");
5253
- action = attr ? stripBasename(attr, basename) : null;
5270
+ action = attr ? (0,_remix_run_router__rspack_import_3/* .stripBasename */.pb)(attr, basename) : null;
5254
5271
  method = target.getAttribute("method") || defaultMethod;
5255
5272
  encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
5256
5273
  formData = new FormData(target);
@@ -5264,7 +5281,7 @@ function getFormSubmissionInfo(target, basename) {
5264
5281
  // prefixed to ensure non-JS scenarios work, so strip it since we'll
5265
5282
  // re-prefix in the router
5266
5283
  let attr = target.getAttribute("formaction") || form.getAttribute("action");
5267
- action = attr ? stripBasename(attr, basename) : null;
5284
+ action = attr ? (0,_remix_run_router__rspack_import_3/* .stripBasename */.pb)(attr, basename) : null;
5268
5285
  method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
5269
5286
  encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
5270
5287
  // Build a FormData object populated from a form and submitter
@@ -5310,8 +5327,8 @@ function getFormSubmissionInfo(target, basename) {
5310
5327
  }
5311
5328
 
5312
5329
  const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"],
5313
- _excluded2 = (/* unused pure expression or super */ null && (["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"])),
5314
- _excluded3 = (/* unused pure expression or super */ null && (["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"]));
5330
+ _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"],
5331
+ _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"];
5315
5332
  // HEY YOU! DON'T TOUCH THIS VARIABLE!
5316
5333
  //
5317
5334
  // It is replaced with the proper version at build time via a babel plugin in
@@ -5328,34 +5345,34 @@ try {
5328
5345
  // no-op
5329
5346
  }
5330
5347
  function createBrowserRouter(routes, opts) {
5331
- return createRouter({
5348
+ return (0,_remix_run_router__rspack_import_3/* .createRouter */.aE)({
5332
5349
  basename: opts == null ? void 0 : opts.basename,
5333
5350
  future: _extends({}, opts == null ? void 0 : opts.future, {
5334
5351
  v7_prependBasename: true
5335
5352
  }),
5336
- history: createBrowserHistory({
5353
+ history: (0,_remix_run_router__rspack_import_3/* .createBrowserHistory */.zR)({
5337
5354
  window: opts == null ? void 0 : opts.window
5338
5355
  }),
5339
5356
  hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(),
5340
5357
  routes,
5341
- mapRouteProperties: UNSAFE_mapRouteProperties,
5358
+ mapRouteProperties: react_router__rspack_import_2.UNSAFE_mapRouteProperties,
5342
5359
  dataStrategy: opts == null ? void 0 : opts.dataStrategy,
5343
5360
  patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
5344
5361
  window: opts == null ? void 0 : opts.window
5345
5362
  }).initialize();
5346
5363
  }
5347
5364
  function createHashRouter(routes, opts) {
5348
- return createRouter({
5365
+ return (0,_remix_run_router__rspack_import_3/* .createRouter */.aE)({
5349
5366
  basename: opts == null ? void 0 : opts.basename,
5350
5367
  future: _extends({}, opts == null ? void 0 : opts.future, {
5351
5368
  v7_prependBasename: true
5352
5369
  }),
5353
- history: createHashHistory({
5370
+ history: (0,_remix_run_router__rspack_import_3/* .createHashHistory */.TM)({
5354
5371
  window: opts == null ? void 0 : opts.window
5355
5372
  }),
5356
5373
  hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(),
5357
5374
  routes,
5358
- mapRouteProperties: UNSAFE_mapRouteProperties,
5375
+ mapRouteProperties: react_router__rspack_import_2.UNSAFE_mapRouteProperties,
5359
5376
  dataStrategy: opts == null ? void 0 : opts.dataStrategy,
5360
5377
  patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
5361
5378
  window: opts == null ? void 0 : opts.window
@@ -5379,7 +5396,7 @@ function deserializeErrors(errors) {
5379
5396
  // Hey you! If you change this, please change the corresponding logic in
5380
5397
  // serializeErrors in react-router-dom/server.tsx :)
5381
5398
  if (val && val.__type === "RouteErrorResponse") {
5382
- serialized[key] = new UNSAFE_ErrorResponseImpl(val.status, val.statusText, val.data, val.internal === true);
5399
+ serialized[key] = new _remix_run_router__rspack_import_3/* .UNSAFE_ErrorResponseImpl */.VV(val.status, val.statusText, val.data, val.internal === true);
5383
5400
  } else if (val && val.__type === "Error") {
5384
5401
  // Attempt to reconstruct the right type of Error (i.e., ReferenceError)
5385
5402
  if (val.__subType) {
@@ -5410,9 +5427,9 @@ function deserializeErrors(errors) {
5410
5427
  }
5411
5428
  return serialized;
5412
5429
  }
5413
- const ViewTransitionContext = /*#__PURE__*/(/* unused pure expression or super */ null && (React.createContext({
5430
+ const ViewTransitionContext = /*#__PURE__*/react__rspack_import_0.createContext({
5414
5431
  isTransitioning: false
5415
- })));
5432
+ });
5416
5433
  if (false) {}
5417
5434
  const FetchersContext = /*#__PURE__*/react__rspack_import_0.createContext(new Map());
5418
5435
  if (false) {}
@@ -5489,26 +5506,26 @@ function RouterProvider(_ref) {
5489
5506
  router,
5490
5507
  future
5491
5508
  } = _ref;
5492
- let [state, setStateImpl] = React.useState(router.state);
5493
- let [pendingState, setPendingState] = React.useState();
5494
- let [vtContext, setVtContext] = React.useState({
5509
+ let [state, setStateImpl] = react__rspack_import_0.useState(router.state);
5510
+ let [pendingState, setPendingState] = react__rspack_import_0.useState();
5511
+ let [vtContext, setVtContext] = react__rspack_import_0.useState({
5495
5512
  isTransitioning: false
5496
5513
  });
5497
- let [renderDfd, setRenderDfd] = React.useState();
5498
- let [transition, setTransition] = React.useState();
5499
- let [interruption, setInterruption] = React.useState();
5500
- let fetcherData = React.useRef(new Map());
5514
+ let [renderDfd, setRenderDfd] = react__rspack_import_0.useState();
5515
+ let [transition, setTransition] = react__rspack_import_0.useState();
5516
+ let [interruption, setInterruption] = react__rspack_import_0.useState();
5517
+ let fetcherData = react__rspack_import_0.useRef(new Map());
5501
5518
  let {
5502
5519
  v7_startTransition
5503
5520
  } = future || {};
5504
- let optInStartTransition = React.useCallback(cb => {
5521
+ let optInStartTransition = react__rspack_import_0.useCallback(cb => {
5505
5522
  if (v7_startTransition) {
5506
5523
  startTransitionSafe(cb);
5507
5524
  } else {
5508
5525
  cb();
5509
5526
  }
5510
5527
  }, [v7_startTransition]);
5511
- let setState = React.useCallback((newState, _ref2) => {
5528
+ let setState = react__rspack_import_0.useCallback((newState, _ref2) => {
5512
5529
  let {
5513
5530
  deletedFetchers,
5514
5531
  flushSync: flushSync,
@@ -5589,10 +5606,10 @@ function RouterProvider(_ref) {
5589
5606
  }, [router.window, transition, renderDfd, fetcherData, optInStartTransition]);
5590
5607
  // Need to use a layout effect here so we are subscribed early enough to
5591
5608
  // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)
5592
- React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
5609
+ react__rspack_import_0.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
5593
5610
  // When we start a view transition, create a Deferred we can use for the
5594
5611
  // eventual "completed" render
5595
- React.useEffect(() => {
5612
+ react__rspack_import_0.useEffect(() => {
5596
5613
  if (vtContext.isTransitioning && !vtContext.flushSync) {
5597
5614
  setRenderDfd(new Deferred());
5598
5615
  }
@@ -5600,7 +5617,7 @@ function RouterProvider(_ref) {
5600
5617
  // Once the deferred is created, kick off startViewTransition() to update the
5601
5618
  // DOM and then wait on the Deferred to resolve (indicating the DOM update has
5602
5619
  // happened)
5603
- React.useEffect(() => {
5620
+ react__rspack_import_0.useEffect(() => {
5604
5621
  if (renderDfd && pendingState && router.window) {
5605
5622
  let newState = pendingState;
5606
5623
  let renderPromise = renderDfd.promise;
@@ -5621,14 +5638,14 @@ function RouterProvider(_ref) {
5621
5638
  }, [optInStartTransition, pendingState, renderDfd, router.window]);
5622
5639
  // When the new location finally renders and is committed to the DOM, this
5623
5640
  // effect will run to resolve the transition
5624
- React.useEffect(() => {
5641
+ react__rspack_import_0.useEffect(() => {
5625
5642
  if (renderDfd && pendingState && state.location.key === pendingState.location.key) {
5626
5643
  renderDfd.resolve();
5627
5644
  }
5628
5645
  }, [renderDfd, transition, state.location, pendingState]);
5629
5646
  // If we get interrupted with a new navigation during a transition, we skip
5630
5647
  // the active transition, let it cleanup, then kick it off again here
5631
- React.useEffect(() => {
5648
+ react__rspack_import_0.useEffect(() => {
5632
5649
  if (!vtContext.isTransitioning && interruption) {
5633
5650
  setPendingState(interruption.state);
5634
5651
  setVtContext({
@@ -5640,12 +5657,12 @@ function RouterProvider(_ref) {
5640
5657
  setInterruption(undefined);
5641
5658
  }
5642
5659
  }, [vtContext.isTransitioning, interruption]);
5643
- React.useEffect(() => {
5660
+ react__rspack_import_0.useEffect(() => {
5644
5661
  false ? 0 : void 0;
5645
5662
  // Only log this once on initial mount
5646
5663
  // eslint-disable-next-line react-hooks/exhaustive-deps
5647
5664
  }, []);
5648
- let navigator = React.useMemo(() => {
5665
+ let navigator = react__rspack_import_0.useMemo(() => {
5649
5666
  return {
5650
5667
  createHref: router.createHref,
5651
5668
  encodeLocation: router.encodeLocation,
@@ -5662,51 +5679,51 @@ function RouterProvider(_ref) {
5662
5679
  };
5663
5680
  }, [router]);
5664
5681
  let basename = router.basename || "/";
5665
- let dataRouterContext = React.useMemo(() => ({
5682
+ let dataRouterContext = react__rspack_import_0.useMemo(() => ({
5666
5683
  router,
5667
5684
  navigator,
5668
5685
  static: false,
5669
5686
  basename
5670
5687
  }), [router, navigator, basename]);
5671
- let routerFuture = React.useMemo(() => ({
5688
+ let routerFuture = react__rspack_import_0.useMemo(() => ({
5672
5689
  v7_relativeSplatPath: router.future.v7_relativeSplatPath
5673
5690
  }), [router.future.v7_relativeSplatPath]);
5674
- React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future, router.future), [future, router.future]);
5691
+ react__rspack_import_0.useEffect(() => (0,react_router__rspack_import_2.UNSAFE_logV6DeprecationWarnings)(future, router.future), [future, router.future]);
5675
5692
  // The fragment and {null} here are important! We need them to keep React 18's
5676
5693
  // useId happy when we are server-rendering since we may have a <script> here
5677
5694
  // containing the hydrated server-side staticContext (from StaticRouterProvider).
5678
5695
  // useId relies on the component tree structure to generate deterministic id's
5679
5696
  // so we need to ensure it remains the same on the client even though
5680
5697
  // we don't need the <script> tag
5681
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UNSAFE_DataRouterContext.Provider, {
5698
+ return /*#__PURE__*/react__rspack_import_0.createElement(react__rspack_import_0.Fragment, null, /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2.UNSAFE_DataRouterContext.Provider, {
5682
5699
  value: dataRouterContext
5683
- }, /*#__PURE__*/React.createElement(UNSAFE_DataRouterStateContext.Provider, {
5700
+ }, /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2.UNSAFE_DataRouterStateContext.Provider, {
5684
5701
  value: state
5685
- }, /*#__PURE__*/React.createElement(FetchersContext.Provider, {
5702
+ }, /*#__PURE__*/react__rspack_import_0.createElement(FetchersContext.Provider, {
5686
5703
  value: fetcherData.current
5687
- }, /*#__PURE__*/React.createElement(ViewTransitionContext.Provider, {
5704
+ }, /*#__PURE__*/react__rspack_import_0.createElement(ViewTransitionContext.Provider, {
5688
5705
  value: vtContext
5689
- }, /*#__PURE__*/React.createElement(Router, {
5706
+ }, /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2.Router, {
5690
5707
  basename: basename,
5691
5708
  location: state.location,
5692
5709
  navigationType: state.historyAction,
5693
5710
  navigator: navigator,
5694
5711
  future: routerFuture
5695
- }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(MemoizedDataRoutes, {
5712
+ }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/react__rspack_import_0.createElement(MemoizedDataRoutes, {
5696
5713
  routes: router.routes,
5697
5714
  future: router.future,
5698
5715
  state: state
5699
5716
  }) : fallbackElement))))), null);
5700
5717
  }
5701
5718
  // Memoize to avoid re-renders when updating `ViewTransitionContext`
5702
- const MemoizedDataRoutes = /*#__PURE__*/(/* unused pure expression or super */ null && (React.memo(DataRoutes)));
5719
+ const MemoizedDataRoutes = /*#__PURE__*/react__rspack_import_0.memo(DataRoutes);
5703
5720
  function DataRoutes(_ref3) {
5704
5721
  let {
5705
5722
  routes,
5706
5723
  future,
5707
5724
  state
5708
5725
  } = _ref3;
5709
- return UNSAFE_useRoutesImpl(routes, undefined, state, future);
5726
+ return (0,react_router__rspack_import_2.UNSAFE_useRoutesImpl)(routes, undefined, state, future);
5710
5727
  }
5711
5728
  /**
5712
5729
  * A `<Router>` for use in web browsers. Provides the cleanest URLs.
@@ -5737,8 +5754,8 @@ function BrowserRouter(_ref4) {
5737
5754
  v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
5738
5755
  }, [setStateImpl, v7_startTransition]);
5739
5756
  react__rspack_import_0.useLayoutEffect(() => history.listen(setState), [history, setState]);
5740
- react__rspack_import_0.useEffect(() => (0,react_router__rspack_import_2/* .UNSAFE_logV6DeprecationWarnings */.V8)(future), [future]);
5741
- return /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2/* .Router */.Ix, {
5757
+ react__rspack_import_0.useEffect(() => (0,react_router__rspack_import_2.UNSAFE_logV6DeprecationWarnings)(future), [future]);
5758
+ return /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2.Router, {
5742
5759
  basename: basename,
5743
5760
  children: children,
5744
5761
  location: state.location,
@@ -5758,27 +5775,27 @@ function HashRouter(_ref5) {
5758
5775
  future,
5759
5776
  window
5760
5777
  } = _ref5;
5761
- let historyRef = React.useRef();
5778
+ let historyRef = react__rspack_import_0.useRef();
5762
5779
  if (historyRef.current == null) {
5763
- historyRef.current = createHashHistory({
5780
+ historyRef.current = (0,_remix_run_router__rspack_import_3/* .createHashHistory */.TM)({
5764
5781
  window,
5765
5782
  v5Compat: true
5766
5783
  });
5767
5784
  }
5768
5785
  let history = historyRef.current;
5769
- let [state, setStateImpl] = React.useState({
5786
+ let [state, setStateImpl] = react__rspack_import_0.useState({
5770
5787
  action: history.action,
5771
5788
  location: history.location
5772
5789
  });
5773
5790
  let {
5774
5791
  v7_startTransition
5775
5792
  } = future || {};
5776
- let setState = React.useCallback(newState => {
5793
+ let setState = react__rspack_import_0.useCallback(newState => {
5777
5794
  v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
5778
5795
  }, [setStateImpl, v7_startTransition]);
5779
- React.useLayoutEffect(() => history.listen(setState), [history, setState]);
5780
- React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
5781
- return /*#__PURE__*/React.createElement(Router, {
5796
+ react__rspack_import_0.useLayoutEffect(() => history.listen(setState), [history, setState]);
5797
+ react__rspack_import_0.useEffect(() => (0,react_router__rspack_import_2.UNSAFE_logV6DeprecationWarnings)(future), [future]);
5798
+ return /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2.Router, {
5782
5799
  basename: basename,
5783
5800
  children: children,
5784
5801
  location: state.location,
@@ -5800,19 +5817,19 @@ function HistoryRouter(_ref6) {
5800
5817
  future,
5801
5818
  history
5802
5819
  } = _ref6;
5803
- let [state, setStateImpl] = React.useState({
5820
+ let [state, setStateImpl] = react__rspack_import_0.useState({
5804
5821
  action: history.action,
5805
5822
  location: history.location
5806
5823
  });
5807
5824
  let {
5808
5825
  v7_startTransition
5809
5826
  } = future || {};
5810
- let setState = React.useCallback(newState => {
5827
+ let setState = react__rspack_import_0.useCallback(newState => {
5811
5828
  v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
5812
5829
  }, [setStateImpl, v7_startTransition]);
5813
- React.useLayoutEffect(() => history.listen(setState), [history, setState]);
5814
- React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
5815
- return /*#__PURE__*/React.createElement(Router, {
5830
+ react__rspack_import_0.useLayoutEffect(() => history.listen(setState), [history, setState]);
5831
+ react__rspack_import_0.useEffect(() => (0,react_router__rspack_import_2.UNSAFE_logV6DeprecationWarnings)(future), [future]);
5832
+ return /*#__PURE__*/react__rspack_import_0.createElement(react_router__rspack_import_2.Router, {
5816
5833
  basename: basename,
5817
5834
  children: children,
5818
5835
  location: state.location,
@@ -5842,7 +5859,7 @@ const Link = /*#__PURE__*/react__rspack_import_0.forwardRef(function LinkWithRef
5842
5859
  rest = _objectWithoutPropertiesLoose(_ref7, _excluded);
5843
5860
  let {
5844
5861
  basename
5845
- } = react__rspack_import_0.useContext(react_router__rspack_import_2/* .UNSAFE_NavigationContext */.jb);
5862
+ } = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_NavigationContext);
5846
5863
  // Rendered into <a href> for absolute URLs
5847
5864
  let absoluteHref;
5848
5865
  let isExternal = false;
@@ -5868,7 +5885,7 @@ const Link = /*#__PURE__*/react__rspack_import_0.forwardRef(function LinkWithRef
5868
5885
  }
5869
5886
  }
5870
5887
  // Rendered into <a href> for relative URLs
5871
- let href = (0,react_router__rspack_import_2/* .useHref */.$P)(to, {
5888
+ let href = (0,react_router__rspack_import_2.useHref)(to, {
5872
5889
  relative
5873
5890
  });
5874
5891
  let internalOnClick = useLinkClickHandler(to, {
@@ -5900,7 +5917,7 @@ if (false) {}
5900
5917
  /**
5901
5918
  * A `<Link>` wrapper that knows if it's "active" or not.
5902
5919
  */
5903
- const NavLink = /*#__PURE__*/(/* unused pure expression or super */ null && (React.forwardRef(function NavLinkWithRef(_ref8, ref) {
5920
+ const NavLink = /*#__PURE__*/react__rspack_import_0.forwardRef(function NavLinkWithRef(_ref8, ref) {
5904
5921
  let {
5905
5922
  "aria-current": ariaCurrentProp = "page",
5906
5923
  caseSensitive = false,
@@ -5912,15 +5929,15 @@ const NavLink = /*#__PURE__*/(/* unused pure expression or super */ null && (Rea
5912
5929
  children
5913
5930
  } = _ref8,
5914
5931
  rest = _objectWithoutPropertiesLoose(_ref8, _excluded2);
5915
- let path = useResolvedPath(to, {
5932
+ let path = (0,react_router__rspack_import_2.useResolvedPath)(to, {
5916
5933
  relative: rest.relative
5917
5934
  });
5918
- let location = useLocation();
5919
- let routerState = React.useContext(UNSAFE_DataRouterStateContext);
5935
+ let location = (0,react_router__rspack_import_2.useLocation)();
5936
+ let routerState = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_DataRouterStateContext);
5920
5937
  let {
5921
5938
  navigator,
5922
5939
  basename
5923
- } = React.useContext(UNSAFE_NavigationContext);
5940
+ } = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_NavigationContext);
5924
5941
  let isTransitioning = routerState != null &&
5925
5942
  // Conditional usage is OK here because the usage of a data router is static
5926
5943
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -5934,7 +5951,7 @@ const NavLink = /*#__PURE__*/(/* unused pure expression or super */ null && (Rea
5934
5951
  toPathname = toPathname.toLowerCase();
5935
5952
  }
5936
5953
  if (nextLocationPathname && basename) {
5937
- nextLocationPathname = stripBasename(nextLocationPathname, basename) || nextLocationPathname;
5954
+ nextLocationPathname = (0,_remix_run_router__rspack_import_3/* .stripBasename */.pb)(nextLocationPathname, basename) || nextLocationPathname;
5938
5955
  }
5939
5956
  // If the `to` has a trailing slash, look at that exact spot. Otherwise,
5940
5957
  // we're looking for a slash _after_ what's in `to`. For example:
@@ -5962,7 +5979,7 @@ const NavLink = /*#__PURE__*/(/* unused pure expression or super */ null && (Rea
5962
5979
  className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null, isTransitioning ? "transitioning" : null].filter(Boolean).join(" ");
5963
5980
  }
5964
5981
  let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp;
5965
- return /*#__PURE__*/React.createElement(Link, _extends({}, rest, {
5982
+ return /*#__PURE__*/react__rspack_import_0.createElement(Link, _extends({}, rest, {
5966
5983
  "aria-current": ariaCurrent,
5967
5984
  className: className,
5968
5985
  ref: ref,
@@ -5970,7 +5987,7 @@ const NavLink = /*#__PURE__*/(/* unused pure expression or super */ null && (Rea
5970
5987
  to: to,
5971
5988
  viewTransition: viewTransition
5972
5989
  }), typeof children === "function" ? children(renderProps) : children);
5973
- })));
5990
+ });
5974
5991
  if (false) {}
5975
5992
  /**
5976
5993
  * A `@remix-run/router`-aware `<form>`. It behaves like a normal form except
@@ -5978,7 +5995,7 @@ if (false) {}
5978
5995
  * requests, allowing components to add nicer UX to the page as the form is
5979
5996
  * submitted and returns with data.
5980
5997
  */
5981
- const Form = /*#__PURE__*/(/* unused pure expression or super */ null && (React.forwardRef((_ref9, forwardedRef) => {
5998
+ const Form = /*#__PURE__*/react__rspack_import_0.forwardRef((_ref9, forwardedRef) => {
5982
5999
  let {
5983
6000
  fetcherKey,
5984
6001
  navigate,
@@ -6015,13 +6032,13 @@ const Form = /*#__PURE__*/(/* unused pure expression or super */ null && (React.
6015
6032
  viewTransition
6016
6033
  });
6017
6034
  };
6018
- return /*#__PURE__*/React.createElement("form", _extends({
6035
+ return /*#__PURE__*/react__rspack_import_0.createElement("form", _extends({
6019
6036
  ref: forwardedRef,
6020
6037
  method: formMethod,
6021
6038
  action: formAction,
6022
6039
  onSubmit: reloadDocument ? onSubmit : submitHandler
6023
6040
  }, props));
6024
- })));
6041
+ });
6025
6042
  if (false) {}
6026
6043
  /**
6027
6044
  * This component will emulate the browser's scroll restoration on location
@@ -6062,13 +6079,13 @@ function getDataRouterConsoleError(hookName) {
6062
6079
  return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
6063
6080
  }
6064
6081
  function useDataRouterContext(hookName) {
6065
- let ctx = React.useContext(UNSAFE_DataRouterContext);
6066
- !ctx ? false ? 0 : UNSAFE_invariant(false) : void 0;
6082
+ let ctx = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_DataRouterContext);
6083
+ !ctx ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6067
6084
  return ctx;
6068
6085
  }
6069
6086
  function useDataRouterState(hookName) {
6070
- let state = React.useContext(UNSAFE_DataRouterStateContext);
6071
- !state ? false ? 0 : UNSAFE_invariant(false) : void 0;
6087
+ let state = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_DataRouterStateContext);
6088
+ !state ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6072
6089
  return state;
6073
6090
  }
6074
6091
  // External hooks
@@ -6086,9 +6103,9 @@ function useLinkClickHandler(to, _temp) {
6086
6103
  relative,
6087
6104
  viewTransition
6088
6105
  } = _temp === void 0 ? {} : _temp;
6089
- let navigate = (0,react_router__rspack_import_2/* .useNavigate */.Zp)();
6090
- let location = (0,react_router__rspack_import_2/* .useLocation */.zy)();
6091
- let path = (0,react_router__rspack_import_2/* .useResolvedPath */.x$)(to, {
6106
+ let navigate = (0,react_router__rspack_import_2.useNavigate)();
6107
+ let location = (0,react_router__rspack_import_2.useLocation)();
6108
+ let path = (0,react_router__rspack_import_2.useResolvedPath)(to, {
6092
6109
  relative
6093
6110
  });
6094
6111
  return react__rspack_import_0.useCallback(event => {
@@ -6096,7 +6113,7 @@ function useLinkClickHandler(to, _temp) {
6096
6113
  event.preventDefault();
6097
6114
  // If the URL hasn't changed, a regular <a> will do a replace instead of
6098
6115
  // a push, so do the same here unless the replace prop is explicitly set
6099
- let replace = replaceProp !== undefined ? replaceProp : (0,react_router__rspack_import_2/* .createPath */.AO)(location) === (0,react_router__rspack_import_2/* .createPath */.AO)(path);
6116
+ let replace = replaceProp !== undefined ? replaceProp : (0,react_router__rspack_import_2.createPath)(location) === (0,react_router__rspack_import_2.createPath)(path);
6100
6117
  navigate(to, {
6101
6118
  replace,
6102
6119
  state,
@@ -6113,16 +6130,16 @@ function useLinkClickHandler(to, _temp) {
6113
6130
  */
6114
6131
  function useSearchParams(defaultInit) {
6115
6132
  false ? 0 : void 0;
6116
- let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));
6117
- let hasSetSearchParamsRef = React.useRef(false);
6118
- let location = useLocation();
6119
- let searchParams = React.useMemo(() =>
6133
+ let defaultSearchParamsRef = react__rspack_import_0.useRef(createSearchParams(defaultInit));
6134
+ let hasSetSearchParamsRef = react__rspack_import_0.useRef(false);
6135
+ let location = (0,react_router__rspack_import_2.useLocation)();
6136
+ let searchParams = react__rspack_import_0.useMemo(() =>
6120
6137
  // Only merge in the defaults if we haven't yet called setSearchParams.
6121
6138
  // Once we call that we want those to take precedence, otherwise you can't
6122
6139
  // remove a param with setSearchParams({}) if it has an initial value
6123
6140
  getSearchParamsForLocation(location.search, hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current), [location.search]);
6124
- let navigate = useNavigate();
6125
- let setSearchParams = React.useCallback((nextInit, navigateOptions) => {
6141
+ let navigate = (0,react_router__rspack_import_2.useNavigate)();
6142
+ let setSearchParams = react__rspack_import_0.useCallback((nextInit, navigateOptions) => {
6126
6143
  const newSearchParams = createSearchParams(typeof nextInit === "function" ? nextInit(searchParams) : nextInit);
6127
6144
  hasSetSearchParamsRef.current = true;
6128
6145
  navigate("?" + newSearchParams, navigateOptions);
@@ -6146,9 +6163,9 @@ function useSubmit() {
6146
6163
  } = useDataRouterContext(DataRouterHook.UseSubmit);
6147
6164
  let {
6148
6165
  basename
6149
- } = React.useContext(UNSAFE_NavigationContext);
6150
- let currentRouteId = UNSAFE_useRouteId();
6151
- return React.useCallback(function (target, options) {
6166
+ } = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_NavigationContext);
6167
+ let currentRouteId = (0,react_router__rspack_import_2.UNSAFE_useRouteId)();
6168
+ return react__rspack_import_0.useCallback(function (target, options) {
6152
6169
  if (options === void 0) {
6153
6170
  options = {};
6154
6171
  }
@@ -6194,19 +6211,19 @@ function useFormAction(action, _temp2) {
6194
6211
  } = _temp2 === void 0 ? {} : _temp2;
6195
6212
  let {
6196
6213
  basename
6197
- } = React.useContext(UNSAFE_NavigationContext);
6198
- let routeContext = React.useContext(UNSAFE_RouteContext);
6199
- !routeContext ? false ? 0 : UNSAFE_invariant(false) : void 0;
6214
+ } = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_NavigationContext);
6215
+ let routeContext = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_RouteContext);
6216
+ !routeContext ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6200
6217
  let [match] = routeContext.matches.slice(-1);
6201
6218
  // Shallow clone path so we can modify it below, otherwise we modify the
6202
6219
  // object referenced by useMemo inside useResolvedPath
6203
- let path = _extends({}, useResolvedPath(action ? action : ".", {
6220
+ let path = _extends({}, (0,react_router__rspack_import_2.useResolvedPath)(action ? action : ".", {
6204
6221
  relative
6205
6222
  }));
6206
6223
  // If no action was specified, browsers will persist current search params
6207
6224
  // when determining the path, so match that behavior
6208
6225
  // https://github.com/remix-run/remix/issues/927
6209
- let location = useLocation();
6226
+ let location = (0,react_router__rspack_import_2.useLocation)();
6210
6227
  if (action == null) {
6211
6228
  // Safe to write to this directly here since if action was undefined, we
6212
6229
  // would have called useResolvedPath(".") which will never include a search
@@ -6232,9 +6249,9 @@ function useFormAction(action, _temp2) {
6232
6249
  // the raw basename which allows the basename to have full control over the
6233
6250
  // presence of a trailing slash on root actions
6234
6251
  if (basename !== "/") {
6235
- path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
6252
+ path.pathname = path.pathname === "/" ? basename : (0,_remix_run_router__rspack_import_3/* .joinPaths */.HS)([basename, path.pathname]);
6236
6253
  }
6237
- return createPath(path);
6254
+ return (0,react_router__rspack_import_2.createPath)(path);
6238
6255
  }
6239
6256
  // TODO: (v7) Change the useFetcher generic default from `any` to `unknown`
6240
6257
  /**
@@ -6250,17 +6267,17 @@ function useFetcher(_temp3) {
6250
6267
  router
6251
6268
  } = useDataRouterContext(DataRouterHook.UseFetcher);
6252
6269
  let state = useDataRouterState(DataRouterStateHook.UseFetcher);
6253
- let fetcherData = React.useContext(FetchersContext);
6254
- let route = React.useContext(UNSAFE_RouteContext);
6270
+ let fetcherData = react__rspack_import_0.useContext(FetchersContext);
6271
+ let route = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_RouteContext);
6255
6272
  let routeId = (_route$matches = route.matches[route.matches.length - 1]) == null ? void 0 : _route$matches.route.id;
6256
- !fetcherData ? false ? 0 : UNSAFE_invariant(false) : void 0;
6257
- !route ? false ? 0 : UNSAFE_invariant(false) : void 0;
6258
- !(routeId != null) ? false ? 0 : UNSAFE_invariant(false) : void 0;
6273
+ !fetcherData ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6274
+ !route ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6275
+ !(routeId != null) ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6259
6276
  // Fetcher key handling
6260
6277
  // OK to call conditionally to feature detect `useId`
6261
6278
  // eslint-disable-next-line react-hooks/rules-of-hooks
6262
6279
  let defaultKey = useIdImpl ? useIdImpl() : "";
6263
- let [fetcherKey, setFetcherKey] = React.useState(key || defaultKey);
6280
+ let [fetcherKey, setFetcherKey] = react__rspack_import_0.useState(key || defaultKey);
6264
6281
  if (key && key !== fetcherKey) {
6265
6282
  setFetcherKey(key);
6266
6283
  } else if (!fetcherKey) {
@@ -6268,7 +6285,7 @@ function useFetcher(_temp3) {
6268
6285
  setFetcherKey(getUniqueFetcherId());
6269
6286
  }
6270
6287
  // Registration/cleanup
6271
- React.useEffect(() => {
6288
+ react__rspack_import_0.useEffect(() => {
6272
6289
  router.getFetcher(fetcherKey);
6273
6290
  return () => {
6274
6291
  // Tell the router we've unmounted - if v7_fetcherPersist is enabled this
@@ -6278,20 +6295,20 @@ function useFetcher(_temp3) {
6278
6295
  };
6279
6296
  }, [router, fetcherKey]);
6280
6297
  // Fetcher additions
6281
- let load = React.useCallback((href, opts) => {
6282
- !routeId ? false ? 0 : UNSAFE_invariant(false) : void 0;
6298
+ let load = react__rspack_import_0.useCallback((href, opts) => {
6299
+ !routeId ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6283
6300
  router.fetch(fetcherKey, routeId, href, opts);
6284
6301
  }, [fetcherKey, routeId, router]);
6285
6302
  let submitImpl = useSubmit();
6286
- let submit = React.useCallback((target, opts) => {
6303
+ let submit = react__rspack_import_0.useCallback((target, opts) => {
6287
6304
  submitImpl(target, _extends({}, opts, {
6288
6305
  navigate: false,
6289
6306
  fetcherKey
6290
6307
  }));
6291
6308
  }, [fetcherKey, submitImpl]);
6292
- let FetcherForm = React.useMemo(() => {
6293
- let FetcherForm = /*#__PURE__*/React.forwardRef((props, ref) => {
6294
- return /*#__PURE__*/React.createElement(Form, _extends({}, props, {
6309
+ let FetcherForm = react__rspack_import_0.useMemo(() => {
6310
+ let FetcherForm = /*#__PURE__*/react__rspack_import_0.forwardRef((props, ref) => {
6311
+ return /*#__PURE__*/react__rspack_import_0.createElement(Form, _extends({}, props, {
6295
6312
  navigate: false,
6296
6313
  fetcherKey: fetcherKey,
6297
6314
  ref: ref
@@ -6301,9 +6318,9 @@ function useFetcher(_temp3) {
6301
6318
  return FetcherForm;
6302
6319
  }, [fetcherKey]);
6303
6320
  // Exposed FetcherWithComponents
6304
- let fetcher = state.fetchers.get(fetcherKey) || IDLE_FETCHER;
6321
+ let fetcher = state.fetchers.get(fetcherKey) || _remix_run_router__rspack_import_3/* .IDLE_FETCHER */.HW;
6305
6322
  let data = fetcherData.get(fetcherKey);
6306
- let fetcherWithComponents = React.useMemo(() => _extends({
6323
+ let fetcherWithComponents = react__rspack_import_0.useMemo(() => _extends({
6307
6324
  Form: FetcherForm,
6308
6325
  submit,
6309
6326
  load
@@ -6326,7 +6343,7 @@ function useFetchers() {
6326
6343
  });
6327
6344
  }
6328
6345
  const SCROLL_RESTORATION_STORAGE_KEY = "react-router-scroll-positions";
6329
- let savedScrollPositions = (/* unused pure expression or super */ null && ({}));
6346
+ let savedScrollPositions = {};
6330
6347
  /**
6331
6348
  * When rendered inside a RouterProvider, will restore scroll positions on navigations
6332
6349
  */
@@ -6344,19 +6361,19 @@ function useScrollRestoration(_temp4) {
6344
6361
  } = useDataRouterState(DataRouterStateHook.UseScrollRestoration);
6345
6362
  let {
6346
6363
  basename
6347
- } = React.useContext(UNSAFE_NavigationContext);
6348
- let location = useLocation();
6349
- let matches = useMatches();
6350
- let navigation = useNavigation();
6364
+ } = react__rspack_import_0.useContext(react_router__rspack_import_2.UNSAFE_NavigationContext);
6365
+ let location = (0,react_router__rspack_import_2.useLocation)();
6366
+ let matches = (0,react_router__rspack_import_2.useMatches)();
6367
+ let navigation = (0,react_router__rspack_import_2.useNavigation)();
6351
6368
  // Trigger manual scroll restoration while we're active
6352
- React.useEffect(() => {
6369
+ react__rspack_import_0.useEffect(() => {
6353
6370
  window.history.scrollRestoration = "manual";
6354
6371
  return () => {
6355
6372
  window.history.scrollRestoration = "auto";
6356
6373
  };
6357
6374
  }, []);
6358
6375
  // Save positions on pagehide
6359
- usePageHide(React.useCallback(() => {
6376
+ usePageHide(react__rspack_import_0.useCallback(() => {
6360
6377
  if (navigation.state === "idle") {
6361
6378
  let key = (getKey ? getKey(location, matches) : null) || location.key;
6362
6379
  savedScrollPositions[key] = window.scrollY;
@@ -6371,7 +6388,7 @@ function useScrollRestoration(_temp4) {
6371
6388
  // Read in any saved scroll locations
6372
6389
  if (typeof document !== "undefined") {
6373
6390
  // eslint-disable-next-line react-hooks/rules-of-hooks
6374
- React.useLayoutEffect(() => {
6391
+ react__rspack_import_0.useLayoutEffect(() => {
6375
6392
  try {
6376
6393
  let sessionPositions = sessionStorage.getItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY);
6377
6394
  if (sessionPositions) {
@@ -6383,17 +6400,17 @@ function useScrollRestoration(_temp4) {
6383
6400
  }, [storageKey]);
6384
6401
  // Enable scroll restoration in the router
6385
6402
  // eslint-disable-next-line react-hooks/rules-of-hooks
6386
- React.useLayoutEffect(() => {
6403
+ react__rspack_import_0.useLayoutEffect(() => {
6387
6404
  let getKeyWithoutBasename = getKey && basename !== "/" ? (location, matches) => getKey( // Strip the basename to match useLocation()
6388
6405
  _extends({}, location, {
6389
- pathname: stripBasename(location.pathname, basename) || location.pathname
6406
+ pathname: (0,_remix_run_router__rspack_import_3/* .stripBasename */.pb)(location.pathname, basename) || location.pathname
6390
6407
  }), matches) : getKey;
6391
6408
  let disableScrollRestoration = router == null ? void 0 : router.enableScrollRestoration(savedScrollPositions, () => window.scrollY, getKeyWithoutBasename);
6392
6409
  return () => disableScrollRestoration && disableScrollRestoration();
6393
6410
  }, [router, basename, getKey]);
6394
6411
  // Restore scrolling when state.restoreScrollPosition changes
6395
6412
  // eslint-disable-next-line react-hooks/rules-of-hooks
6396
- React.useLayoutEffect(() => {
6413
+ react__rspack_import_0.useLayoutEffect(() => {
6397
6414
  // Explicit false means don't do anything (used for submissions)
6398
6415
  if (restoreScrollPosition === false) {
6399
6416
  return;
@@ -6432,7 +6449,7 @@ function useBeforeUnload(callback, options) {
6432
6449
  let {
6433
6450
  capture
6434
6451
  } = options || {};
6435
- React.useEffect(() => {
6452
+ react__rspack_import_0.useEffect(() => {
6436
6453
  let opts = capture != null ? {
6437
6454
  capture
6438
6455
  } : undefined;
@@ -6454,7 +6471,7 @@ function usePageHide(callback, options) {
6454
6471
  let {
6455
6472
  capture
6456
6473
  } = options || {};
6457
- React.useEffect(() => {
6474
+ react__rspack_import_0.useEffect(() => {
6458
6475
  let opts = capture != null ? {
6459
6476
  capture
6460
6477
  } : undefined;
@@ -6477,8 +6494,8 @@ function usePrompt(_ref12) {
6477
6494
  when,
6478
6495
  message
6479
6496
  } = _ref12;
6480
- let blocker = useBlocker(when);
6481
- React.useEffect(() => {
6497
+ let blocker = (0,react_router__rspack_import_2.useBlocker)(when);
6498
+ react__rspack_import_0.useEffect(() => {
6482
6499
  if (blocker.state === "blocked") {
6483
6500
  let proceed = window.confirm(message);
6484
6501
  if (proceed) {
@@ -6491,7 +6508,7 @@ function usePrompt(_ref12) {
6491
6508
  }
6492
6509
  }
6493
6510
  }, [blocker, message]);
6494
- React.useEffect(() => {
6511
+ react__rspack_import_0.useEffect(() => {
6495
6512
  if (blocker.state === "blocked" && !when) {
6496
6513
  blocker.reset();
6497
6514
  }
@@ -6509,19 +6526,19 @@ function useViewTransitionState(to, opts) {
6509
6526
  if (opts === void 0) {
6510
6527
  opts = {};
6511
6528
  }
6512
- let vtContext = React.useContext(ViewTransitionContext);
6513
- !(vtContext != null) ? false ? 0 : UNSAFE_invariant(false) : void 0;
6529
+ let vtContext = react__rspack_import_0.useContext(ViewTransitionContext);
6530
+ !(vtContext != null) ? false ? 0 : (0,_remix_run_router__rspack_import_3/* .UNSAFE_invariant */.Oi)(false) : void 0;
6514
6531
  let {
6515
6532
  basename
6516
6533
  } = useDataRouterContext(DataRouterHook.useViewTransitionState);
6517
- let path = useResolvedPath(to, {
6534
+ let path = (0,react_router__rspack_import_2.useResolvedPath)(to, {
6518
6535
  relative: opts.relative
6519
6536
  });
6520
6537
  if (!vtContext.isTransitioning) {
6521
6538
  return false;
6522
6539
  }
6523
- let currentPath = stripBasename(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
6524
- let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
6540
+ let currentPath = (0,_remix_run_router__rspack_import_3/* .stripBasename */.pb)(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
6541
+ let nextPath = (0,_remix_run_router__rspack_import_3/* .stripBasename */.pb)(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
6525
6542
  // Transition is active if we're going to or coming from the indicated
6526
6543
  // destination. This ensures that other PUSH navigations that reverse
6527
6544
  // an indicated transition apply. I.e., on the list view you have:
@@ -6535,7 +6552,7 @@ function useViewTransitionState(to, opts) {
6535
6552
  // We should apply the transition because it's indicated as active going
6536
6553
  // from /list -> /details/1 and therefore should be active on the reverse
6537
6554
  // (even though this isn't strictly a POP reverse)
6538
- return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
6555
+ return (0,_remix_run_router__rspack_import_3/* .matchPath */.B6)(path.pathname, nextPath) != null || (0,_remix_run_router__rspack_import_3/* .matchPath */.B6)(path.pathname, currentPath) != null;
6539
6556
  }
6540
6557
  //#endregion
6541
6558
 
@@ -6543,19 +6560,90 @@ function useViewTransitionState(to, opts) {
6543
6560
  //# sourceMappingURL=index.js.map
6544
6561
 
6545
6562
  __webpack_require__.d(__webpack_exports__, {
6546
- BV: () => (/* reexport safe */ react_router__rspack_import_2.BV),
6547
- Kd: () => (BrowserRouter),
6548
- Zp: () => (/* reexport safe */ react_router__rspack_import_2.Zp),
6549
- qh: () => (/* reexport safe */ react_router__rspack_import_2.qh),
6550
- zy: () => (/* reexport safe */ react_router__rspack_import_2.zy)
6563
+ AbortedDeferredError: () => (/* reexport safe */ react_router__rspack_import_2.AbortedDeferredError),
6564
+ Await: () => (/* reexport safe */ react_router__rspack_import_2.Await),
6565
+ BrowserRouter: () => (BrowserRouter),
6566
+ HashRouter: () => (HashRouter),
6567
+ MemoryRouter: () => (/* reexport safe */ react_router__rspack_import_2.MemoryRouter),
6568
+ Navigate: () => (/* reexport safe */ react_router__rspack_import_2.Navigate),
6569
+ NavigationType: () => (/* reexport safe */ react_router__rspack_import_2.NavigationType),
6570
+ Outlet: () => (/* reexport safe */ react_router__rspack_import_2.Outlet),
6571
+ Route: () => (/* reexport safe */ react_router__rspack_import_2.Route),
6572
+ Router: () => (/* reexport safe */ react_router__rspack_import_2.Router),
6573
+ RouterProvider: () => (RouterProvider),
6574
+ Routes: () => (/* reexport safe */ react_router__rspack_import_2.Routes),
6575
+ ScrollRestoration: () => (ScrollRestoration),
6576
+ UNSAFE_DataRouterContext: () => (/* reexport safe */ react_router__rspack_import_2.UNSAFE_DataRouterContext),
6577
+ UNSAFE_DataRouterStateContext: () => (/* reexport safe */ react_router__rspack_import_2.UNSAFE_DataRouterStateContext),
6578
+ UNSAFE_ErrorResponseImpl: () => (/* reexport safe */ _remix_run_router__rspack_import_3.VV),
6579
+ UNSAFE_LocationContext: () => (/* reexport safe */ react_router__rspack_import_2.UNSAFE_LocationContext),
6580
+ UNSAFE_NavigationContext: () => (/* reexport safe */ react_router__rspack_import_2.UNSAFE_NavigationContext),
6581
+ UNSAFE_RouteContext: () => (/* reexport safe */ react_router__rspack_import_2.UNSAFE_RouteContext),
6582
+ UNSAFE_useRouteId: () => (/* reexport safe */ react_router__rspack_import_2.UNSAFE_useRouteId),
6583
+ UNSAFE_useScrollRestoration: () => (useScrollRestoration),
6584
+ createBrowserRouter: () => (createBrowserRouter),
6585
+ createHashRouter: () => (createHashRouter),
6586
+ createMemoryRouter: () => (/* reexport safe */ react_router__rspack_import_2.createMemoryRouter),
6587
+ createPath: () => (/* reexport safe */ react_router__rspack_import_2.createPath),
6588
+ createRoutesFromChildren: () => (/* reexport safe */ react_router__rspack_import_2.createRoutesFromChildren),
6589
+ createRoutesFromElements: () => (/* reexport safe */ react_router__rspack_import_2.createRoutesFromElements),
6590
+ createSearchParams: () => (createSearchParams),
6591
+ defer: () => (/* reexport safe */ react_router__rspack_import_2.defer),
6592
+ generatePath: () => (/* reexport safe */ react_router__rspack_import_2.generatePath),
6593
+ isRouteErrorResponse: () => (/* reexport safe */ react_router__rspack_import_2.isRouteErrorResponse),
6594
+ json: () => (/* reexport safe */ react_router__rspack_import_2.json),
6595
+ matchPath: () => (/* reexport safe */ react_router__rspack_import_2.matchPath),
6596
+ matchRoutes: () => (/* reexport safe */ react_router__rspack_import_2.matchRoutes),
6597
+ parsePath: () => (/* reexport safe */ react_router__rspack_import_2.parsePath),
6598
+ redirect: () => (/* reexport safe */ react_router__rspack_import_2.redirect),
6599
+ redirectDocument: () => (/* reexport safe */ react_router__rspack_import_2.redirectDocument),
6600
+ renderMatches: () => (/* reexport safe */ react_router__rspack_import_2.renderMatches),
6601
+ replace: () => (/* reexport safe */ react_router__rspack_import_2.replace),
6602
+ resolvePath: () => (/* reexport safe */ react_router__rspack_import_2.resolvePath),
6603
+ unstable_HistoryRouter: () => (HistoryRouter),
6604
+ unstable_usePrompt: () => (usePrompt),
6605
+ useActionData: () => (/* reexport safe */ react_router__rspack_import_2.useActionData),
6606
+ useAsyncError: () => (/* reexport safe */ react_router__rspack_import_2.useAsyncError),
6607
+ useAsyncValue: () => (/* reexport safe */ react_router__rspack_import_2.useAsyncValue),
6608
+ useBeforeUnload: () => (useBeforeUnload),
6609
+ useBlocker: () => (/* reexport safe */ react_router__rspack_import_2.useBlocker),
6610
+ useFetcher: () => (useFetcher),
6611
+ useFetchers: () => (useFetchers),
6612
+ useFormAction: () => (useFormAction),
6613
+ useHref: () => (/* reexport safe */ react_router__rspack_import_2.useHref),
6614
+ useInRouterContext: () => (/* reexport safe */ react_router__rspack_import_2.useInRouterContext),
6615
+ useLinkClickHandler: () => (useLinkClickHandler),
6616
+ useLoaderData: () => (/* reexport safe */ react_router__rspack_import_2.useLoaderData),
6617
+ useLocation: () => (/* reexport safe */ react_router__rspack_import_2.useLocation),
6618
+ useMatch: () => (/* reexport safe */ react_router__rspack_import_2.useMatch),
6619
+ useMatches: () => (/* reexport safe */ react_router__rspack_import_2.useMatches),
6620
+ useNavigate: () => (/* reexport safe */ react_router__rspack_import_2.useNavigate),
6621
+ useNavigation: () => (/* reexport safe */ react_router__rspack_import_2.useNavigation),
6622
+ useNavigationType: () => (/* reexport safe */ react_router__rspack_import_2.useNavigationType),
6623
+ useOutlet: () => (/* reexport safe */ react_router__rspack_import_2.useOutlet),
6624
+ useOutletContext: () => (/* reexport safe */ react_router__rspack_import_2.useOutletContext),
6625
+ useParams: () => (/* reexport safe */ react_router__rspack_import_2.useParams),
6626
+ useResolvedPath: () => (/* reexport safe */ react_router__rspack_import_2.useResolvedPath),
6627
+ useRevalidator: () => (/* reexport safe */ react_router__rspack_import_2.useRevalidator),
6628
+ useRouteError: () => (/* reexport safe */ react_router__rspack_import_2.useRouteError),
6629
+ useRouteLoaderData: () => (/* reexport safe */ react_router__rspack_import_2.useRouteLoaderData),
6630
+ useRoutes: () => (/* reexport safe */ react_router__rspack_import_2.useRoutes),
6631
+ useSearchParams: () => (useSearchParams),
6632
+ useSubmit: () => (useSubmit),
6633
+ useViewTransitionState: () => (useViewTransitionState)
6551
6634
  }, {
6552
- N_: Link
6635
+ Form: Form,
6636
+ Link: Link,
6637
+ NavLink: NavLink,
6638
+ UNSAFE_FetchersContext: FetchersContext,
6639
+ UNSAFE_ViewTransitionContext: ViewTransitionContext
6553
6640
  });
6554
6641
 
6555
6642
 
6556
6643
  },
6557
6644
  18690(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
6558
6645
  var react__rspack_import_0_namespace_cache;
6646
+ __webpack_require__.r(__webpack_exports__);
6559
6647
  /* import */ var react__rspack_import_0 = __webpack_require__(14041);
6560
6648
  /* import */ var _remix_run_router__rspack_import_1 = __webpack_require__(21613);
6561
6649
  /**
@@ -6688,7 +6776,7 @@ function useLocation() {
6688
6776
  * @see https://reactrouter.com/v6/hooks/use-navigation-type
6689
6777
  */
6690
6778
  function useNavigationType() {
6691
- return React.useContext(LocationContext).navigationType;
6779
+ return react__rspack_import_0.useContext(LocationContext).navigationType;
6692
6780
  }
6693
6781
 
6694
6782
  /**
@@ -6699,11 +6787,11 @@ function useNavigationType() {
6699
6787
  * @see https://reactrouter.com/v6/hooks/use-match
6700
6788
  */
6701
6789
  function useMatch(pattern) {
6702
- !useInRouterContext() ? false ? 0 : UNSAFE_invariant(false) : void 0;
6790
+ !useInRouterContext() ? false ? 0 : (0,_remix_run_router__rspack_import_1/* .UNSAFE_invariant */.Oi)(false) : void 0;
6703
6791
  let {
6704
6792
  pathname
6705
6793
  } = useLocation();
6706
- return React.useMemo(() => matchPath(pattern, UNSAFE_decodePath(pathname)), [pathname, pattern]);
6794
+ return react__rspack_import_0.useMemo(() => (0,_remix_run_router__rspack_import_1/* .matchPath */.B6)(pattern, (0,_remix_run_router__rspack_import_1/* .UNSAFE_decodePath */.RO)(pathname)), [pathname, pattern]);
6707
6795
  }
6708
6796
 
6709
6797
  /**
@@ -6784,7 +6872,7 @@ function useNavigateUnstable() {
6784
6872
  }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]);
6785
6873
  return navigate;
6786
6874
  }
6787
- const OutletContext = /*#__PURE__*/(/* unused pure expression or super */ null && (React.createContext(null)));
6875
+ const OutletContext = /*#__PURE__*/react__rspack_import_0.createContext(null);
6788
6876
 
6789
6877
  /**
6790
6878
  * Returns the context (if provided) for the child route at this level of the route
@@ -6792,7 +6880,7 @@ const OutletContext = /*#__PURE__*/(/* unused pure expression or super */ null &
6792
6880
  * @see https://reactrouter.com/v6/hooks/use-outlet-context
6793
6881
  */
6794
6882
  function useOutletContext() {
6795
- return React.useContext(OutletContext);
6883
+ return react__rspack_import_0.useContext(OutletContext);
6796
6884
  }
6797
6885
 
6798
6886
  /**
@@ -6802,9 +6890,9 @@ function useOutletContext() {
6802
6890
  * @see https://reactrouter.com/v6/hooks/use-outlet
6803
6891
  */
6804
6892
  function useOutlet(context) {
6805
- let outlet = React.useContext(RouteContext).outlet;
6893
+ let outlet = react__rspack_import_0.useContext(RouteContext).outlet;
6806
6894
  if (outlet) {
6807
- return /*#__PURE__*/React.createElement(OutletContext.Provider, {
6895
+ return /*#__PURE__*/react__rspack_import_0.createElement(OutletContext.Provider, {
6808
6896
  value: context
6809
6897
  }, outlet);
6810
6898
  }
@@ -7242,7 +7330,7 @@ function useNavigation() {
7242
7330
  function useRevalidator() {
7243
7331
  let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);
7244
7332
  let state = useDataRouterState(DataRouterStateHook.UseRevalidator);
7245
- return React.useMemo(() => ({
7333
+ return react__rspack_import_0.useMemo(() => ({
7246
7334
  revalidate: dataRouterContext.router.revalidate,
7247
7335
  state: state.revalidation
7248
7336
  }), [dataRouterContext.router.revalidate, state.revalidation]);
@@ -7257,7 +7345,7 @@ function useMatches() {
7257
7345
  matches,
7258
7346
  loaderData
7259
7347
  } = useDataRouterState(DataRouterStateHook.UseMatches);
7260
- return React.useMemo(() => matches.map(m => UNSAFE_convertRouteMatchToUiMatch(m, loaderData)), [matches, loaderData]);
7348
+ return react__rspack_import_0.useMemo(() => matches.map(m => (0,_remix_run_router__rspack_import_1/* .UNSAFE_convertRouteMatchToUiMatch */.ro)(m, loaderData)), [matches, loaderData]);
7261
7349
  }
7262
7350
 
7263
7351
  /**
@@ -7315,7 +7403,7 @@ function useRouteError() {
7315
7403
  * Returns the happy-path data from the nearest ancestor `<Await />` value
7316
7404
  */
7317
7405
  function useAsyncValue() {
7318
- let value = React.useContext(AwaitContext);
7406
+ let value = react__rspack_import_0.useContext(AwaitContext);
7319
7407
  return value == null ? void 0 : value._data;
7320
7408
  }
7321
7409
 
@@ -7323,7 +7411,7 @@ function useAsyncValue() {
7323
7411
  * Returns the error from the nearest ancestor `<Await />` value
7324
7412
  */
7325
7413
  function useAsyncError() {
7326
- let value = React.useContext(AwaitContext);
7414
+ let value = react__rspack_import_0.useContext(AwaitContext);
7327
7415
  return value == null ? void 0 : value._error;
7328
7416
  }
7329
7417
  let blockerId = 0;
@@ -7340,8 +7428,8 @@ function useBlocker(shouldBlock) {
7340
7428
  basename
7341
7429
  } = useDataRouterContext(DataRouterHook.UseBlocker);
7342
7430
  let state = useDataRouterState(DataRouterStateHook.UseBlocker);
7343
- let [blockerKey, setBlockerKey] = React.useState("");
7344
- let blockerFunction = React.useCallback(arg => {
7431
+ let [blockerKey, setBlockerKey] = react__rspack_import_0.useState("");
7432
+ let blockerFunction = react__rspack_import_0.useCallback(arg => {
7345
7433
  if (typeof shouldBlock !== "function") {
7346
7434
  return !!shouldBlock;
7347
7435
  }
@@ -7359,10 +7447,10 @@ function useBlocker(shouldBlock) {
7359
7447
  } = arg;
7360
7448
  return shouldBlock({
7361
7449
  currentLocation: _extends({}, currentLocation, {
7362
- pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname
7450
+ pathname: (0,_remix_run_router__rspack_import_1/* .stripBasename */.pb)(currentLocation.pathname, basename) || currentLocation.pathname
7363
7451
  }),
7364
7452
  nextLocation: _extends({}, nextLocation, {
7365
- pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname
7453
+ pathname: (0,_remix_run_router__rspack_import_1/* .stripBasename */.pb)(nextLocation.pathname, basename) || nextLocation.pathname
7366
7454
  }),
7367
7455
  historyAction
7368
7456
  });
@@ -7370,7 +7458,7 @@ function useBlocker(shouldBlock) {
7370
7458
 
7371
7459
  // This effect is in charge of blocker key assignment and deletion (which is
7372
7460
  // tightly coupled to the key)
7373
- React.useEffect(() => {
7461
+ react__rspack_import_0.useEffect(() => {
7374
7462
  let key = String(++blockerId);
7375
7463
  setBlockerKey(key);
7376
7464
  return () => router.deleteBlocker(key);
@@ -7380,7 +7468,7 @@ function useBlocker(shouldBlock) {
7380
7468
  // unstable blocker function identities, and happens only after the prior
7381
7469
  // effect so we don't get an orphaned blockerFunction in the router with a
7382
7470
  // key of "". Until then we just have the IDLE_BLOCKER.
7383
- React.useEffect(() => {
7471
+ react__rspack_import_0.useEffect(() => {
7384
7472
  if (blockerKey !== "") {
7385
7473
  router.getBlocker(blockerKey, blockerFunction);
7386
7474
  }
@@ -7388,7 +7476,7 @@ function useBlocker(shouldBlock) {
7388
7476
 
7389
7477
  // Prefer the blocker from `state` not `router.state` since DataRouterContext
7390
7478
  // is memoized so this ensures we update on blocker state updates
7391
- return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER;
7479
+ return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : _remix_run_router__rspack_import_1/* .IDLE_BLOCKER */.G3;
7392
7480
  }
7393
7481
 
7394
7482
  /**
@@ -7492,11 +7580,11 @@ function RouterProvider(_ref) {
7492
7580
  router,
7493
7581
  future
7494
7582
  } = _ref;
7495
- let [state, setStateImpl] = React.useState(router.state);
7583
+ let [state, setStateImpl] = react__rspack_import_0.useState(router.state);
7496
7584
  let {
7497
7585
  v7_startTransition
7498
7586
  } = future || {};
7499
- let setState = React.useCallback(newState => {
7587
+ let setState = react__rspack_import_0.useCallback(newState => {
7500
7588
  if (v7_startTransition && startTransitionImpl) {
7501
7589
  startTransitionImpl(() => setStateImpl(newState));
7502
7590
  } else {
@@ -7506,13 +7594,13 @@ function RouterProvider(_ref) {
7506
7594
 
7507
7595
  // Need to use a layout effect here so we are subscribed early enough to
7508
7596
  // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)
7509
- React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
7510
- React.useEffect(() => {
7597
+ react__rspack_import_0.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
7598
+ react__rspack_import_0.useEffect(() => {
7511
7599
  false ? 0 : void 0;
7512
7600
  // Only log this once on initial mount
7513
7601
  // eslint-disable-next-line react-hooks/exhaustive-deps
7514
7602
  }, []);
7515
- let navigator = React.useMemo(() => {
7603
+ let navigator = react__rspack_import_0.useMemo(() => {
7516
7604
  return {
7517
7605
  createHref: router.createHref,
7518
7606
  encodeLocation: router.encodeLocation,
@@ -7529,13 +7617,13 @@ function RouterProvider(_ref) {
7529
7617
  };
7530
7618
  }, [router]);
7531
7619
  let basename = router.basename || "/";
7532
- let dataRouterContext = React.useMemo(() => ({
7620
+ let dataRouterContext = react__rspack_import_0.useMemo(() => ({
7533
7621
  router,
7534
7622
  navigator,
7535
7623
  static: false,
7536
7624
  basename
7537
7625
  }), [router, navigator, basename]);
7538
- React.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]);
7626
+ react__rspack_import_0.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]);
7539
7627
 
7540
7628
  // The fragment and {null} here are important! We need them to keep React 18's
7541
7629
  // useId happy when we are server-rendering since we may have a <script> here
@@ -7543,11 +7631,11 @@ function RouterProvider(_ref) {
7543
7631
  // useId relies on the component tree structure to generate deterministic id's
7544
7632
  // so we need to ensure it remains the same on the client even though
7545
7633
  // we don't need the <script> tag
7546
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DataRouterContext.Provider, {
7634
+ return /*#__PURE__*/react__rspack_import_0.createElement(react__rspack_import_0.Fragment, null, /*#__PURE__*/react__rspack_import_0.createElement(DataRouterContext.Provider, {
7547
7635
  value: dataRouterContext
7548
- }, /*#__PURE__*/React.createElement(DataRouterStateContext.Provider, {
7636
+ }, /*#__PURE__*/react__rspack_import_0.createElement(DataRouterStateContext.Provider, {
7549
7637
  value: state
7550
- }, /*#__PURE__*/React.createElement(Router, {
7638
+ }, /*#__PURE__*/react__rspack_import_0.createElement(Router, {
7551
7639
  basename: basename,
7552
7640
  location: state.location,
7553
7641
  navigationType: state.historyAction,
@@ -7555,7 +7643,7 @@ function RouterProvider(_ref) {
7555
7643
  future: {
7556
7644
  v7_relativeSplatPath: router.future.v7_relativeSplatPath
7557
7645
  }
7558
- }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
7646
+ }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/react__rspack_import_0.createElement(DataRoutes, {
7559
7647
  routes: router.routes,
7560
7648
  future: router.future,
7561
7649
  state: state
@@ -7582,28 +7670,28 @@ function MemoryRouter(_ref3) {
7582
7670
  initialIndex,
7583
7671
  future
7584
7672
  } = _ref3;
7585
- let historyRef = React.useRef();
7673
+ let historyRef = react__rspack_import_0.useRef();
7586
7674
  if (historyRef.current == null) {
7587
- historyRef.current = createMemoryHistory({
7675
+ historyRef.current = (0,_remix_run_router__rspack_import_1/* .createMemoryHistory */.sC)({
7588
7676
  initialEntries,
7589
7677
  initialIndex,
7590
7678
  v5Compat: true
7591
7679
  });
7592
7680
  }
7593
7681
  let history = historyRef.current;
7594
- let [state, setStateImpl] = React.useState({
7682
+ let [state, setStateImpl] = react__rspack_import_0.useState({
7595
7683
  action: history.action,
7596
7684
  location: history.location
7597
7685
  });
7598
7686
  let {
7599
7687
  v7_startTransition
7600
7688
  } = future || {};
7601
- let setState = React.useCallback(newState => {
7689
+ let setState = react__rspack_import_0.useCallback(newState => {
7602
7690
  v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);
7603
7691
  }, [setStateImpl, v7_startTransition]);
7604
- React.useLayoutEffect(() => history.listen(setState), [history, setState]);
7605
- React.useEffect(() => logV6DeprecationWarnings(future), [future]);
7606
- return /*#__PURE__*/React.createElement(Router, {
7692
+ react__rspack_import_0.useLayoutEffect(() => history.listen(setState), [history, setState]);
7693
+ react__rspack_import_0.useEffect(() => logV6DeprecationWarnings(future), [future]);
7694
+ return /*#__PURE__*/react__rspack_import_0.createElement(Router, {
7607
7695
  basename: basename,
7608
7696
  children: children,
7609
7697
  location: state.location,
@@ -7628,15 +7716,15 @@ function Navigate(_ref4) {
7628
7716
  state,
7629
7717
  relative
7630
7718
  } = _ref4;
7631
- !useInRouterContext() ? false ? 0 : UNSAFE_invariant(false) : void 0;
7719
+ !useInRouterContext() ? false ? 0 : (0,_remix_run_router__rspack_import_1/* .UNSAFE_invariant */.Oi)(false) : void 0;
7632
7720
  let {
7633
7721
  future,
7634
7722
  static: isStatic
7635
- } = React.useContext(NavigationContext);
7723
+ } = react__rspack_import_0.useContext(NavigationContext);
7636
7724
  false ? 0 : void 0;
7637
7725
  let {
7638
7726
  matches
7639
- } = React.useContext(RouteContext);
7727
+ } = react__rspack_import_0.useContext(RouteContext);
7640
7728
  let {
7641
7729
  pathname: locationPathname
7642
7730
  } = useLocation();
@@ -7644,9 +7732,9 @@ function Navigate(_ref4) {
7644
7732
 
7645
7733
  // Resolve the path outside of the effect so that when effects run twice in
7646
7734
  // StrictMode they navigate to the same place
7647
- let path = resolveTo(to, UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath), locationPathname, relative === "path");
7735
+ let path = (0,_remix_run_router__rspack_import_1/* .resolveTo */.Gh)(to, (0,_remix_run_router__rspack_import_1/* .UNSAFE_getResolveToMatches */.yD)(matches, future.v7_relativeSplatPath), locationPathname, relative === "path");
7648
7736
  let jsonPath = JSON.stringify(path);
7649
- React.useEffect(() => navigate(JSON.parse(jsonPath), {
7737
+ react__rspack_import_0.useEffect(() => navigate(JSON.parse(jsonPath), {
7650
7738
  replace,
7651
7739
  state,
7652
7740
  relative
@@ -7761,10 +7849,10 @@ function Await(_ref7) {
7761
7849
  errorElement,
7762
7850
  resolve
7763
7851
  } = _ref7;
7764
- return /*#__PURE__*/React.createElement(AwaitErrorBoundary, {
7852
+ return /*#__PURE__*/react__rspack_import_0.createElement(AwaitErrorBoundary, {
7765
7853
  resolve: resolve,
7766
7854
  errorElement: errorElement
7767
- }, /*#__PURE__*/React.createElement(ResolveAwait, null, children));
7855
+ }, /*#__PURE__*/react__rspack_import_0.createElement(ResolveAwait, null, children));
7768
7856
  }
7769
7857
  var AwaitRenderStatus = /*#__PURE__*/function (AwaitRenderStatus) {
7770
7858
  AwaitRenderStatus[AwaitRenderStatus["pending"] = 0] = "pending";
@@ -7871,7 +7959,7 @@ function ResolveAwait(_ref8) {
7871
7959
  } = _ref8;
7872
7960
  let data = useAsyncValue();
7873
7961
  let toRender = typeof children === "function" ? children(data) : children;
7874
- return /*#__PURE__*/React.createElement(React.Fragment, null, toRender);
7962
+ return /*#__PURE__*/react__rspack_import_0.createElement(react__rspack_import_0.Fragment, null, toRender);
7875
7963
  }
7876
7964
 
7877
7965
  ///////////////////////////////////////////////////////////////////////////////
@@ -7944,33 +8032,33 @@ function mapRouteProperties(route) {
7944
8032
  if (route.Component) {
7945
8033
  if (false) {}
7946
8034
  Object.assign(updates, {
7947
- element: /*#__PURE__*/React.createElement(route.Component),
8035
+ element: /*#__PURE__*/react__rspack_import_0.createElement(route.Component),
7948
8036
  Component: undefined
7949
8037
  });
7950
8038
  }
7951
8039
  if (route.HydrateFallback) {
7952
8040
  if (false) {}
7953
8041
  Object.assign(updates, {
7954
- hydrateFallbackElement: /*#__PURE__*/React.createElement(route.HydrateFallback),
8042
+ hydrateFallbackElement: /*#__PURE__*/react__rspack_import_0.createElement(route.HydrateFallback),
7955
8043
  HydrateFallback: undefined
7956
8044
  });
7957
8045
  }
7958
8046
  if (route.ErrorBoundary) {
7959
8047
  if (false) {}
7960
8048
  Object.assign(updates, {
7961
- errorElement: /*#__PURE__*/React.createElement(route.ErrorBoundary),
8049
+ errorElement: /*#__PURE__*/react__rspack_import_0.createElement(route.ErrorBoundary),
7962
8050
  ErrorBoundary: undefined
7963
8051
  });
7964
8052
  }
7965
8053
  return updates;
7966
8054
  }
7967
8055
  function createMemoryRouter(routes, opts) {
7968
- return createRouter({
8056
+ return (0,_remix_run_router__rspack_import_1/* .createRouter */.aE)({
7969
8057
  basename: opts == null ? void 0 : opts.basename,
7970
8058
  future: _extends({}, opts == null ? void 0 : opts.future, {
7971
8059
  v7_prependBasename: true
7972
8060
  }),
7973
- history: createMemoryHistory({
8061
+ history: (0,_remix_run_router__rspack_import_1/* .createMemoryHistory */.sC)({
7974
8062
  initialEntries: opts == null ? void 0 : opts.initialEntries,
7975
8063
  initialIndex: opts == null ? void 0 : opts.initialIndex
7976
8064
  }),
@@ -7986,18 +8074,63 @@ function createMemoryRouter(routes, opts) {
7986
8074
  //# sourceMappingURL=index.js.map
7987
8075
 
7988
8076
  __webpack_require__.d(__webpack_exports__, {
7989
- $P: () => (useHref),
7990
- AO: () => (/* reexport safe */ _remix_run_router__rspack_import_1.AO),
7991
- BV: () => (Routes),
7992
- Ix: () => (Router),
7993
- V8: () => (logV6DeprecationWarnings),
7994
- Zp: () => (useNavigate),
7995
- g: () => (useParams),
7996
- qh: () => (Route),
7997
- x$: () => (useResolvedPath),
7998
- zy: () => (useLocation)
8077
+ AbortedDeferredError: () => (/* reexport safe */ _remix_run_router__rspack_import_1.tH),
8078
+ Await: () => (Await),
8079
+ MemoryRouter: () => (MemoryRouter),
8080
+ Navigate: () => (Navigate),
8081
+ NavigationType: () => (/* reexport safe */ _remix_run_router__rspack_import_1.rc),
8082
+ Outlet: () => (Outlet),
8083
+ Route: () => (Route),
8084
+ Router: () => (Router),
8085
+ RouterProvider: () => (RouterProvider),
8086
+ Routes: () => (Routes),
8087
+ UNSAFE_logV6DeprecationWarnings: () => (logV6DeprecationWarnings),
8088
+ UNSAFE_mapRouteProperties: () => (mapRouteProperties),
8089
+ UNSAFE_useRouteId: () => (useRouteId),
8090
+ UNSAFE_useRoutesImpl: () => (useRoutesImpl),
8091
+ createMemoryRouter: () => (createMemoryRouter),
8092
+ createPath: () => (/* reexport safe */ _remix_run_router__rspack_import_1.AO),
8093
+ createRoutesFromChildren: () => (createRoutesFromChildren),
8094
+ createRoutesFromElements: () => (createRoutesFromChildren),
8095
+ defer: () => (/* reexport safe */ _remix_run_router__rspack_import_1.v6),
8096
+ generatePath: () => (/* reexport safe */ _remix_run_router__rspack_import_1.tW),
8097
+ isRouteErrorResponse: () => (/* reexport safe */ _remix_run_router__rspack_import_1.pX),
8098
+ json: () => (/* reexport safe */ _remix_run_router__rspack_import_1.Pq),
8099
+ matchPath: () => (/* reexport safe */ _remix_run_router__rspack_import_1.B6),
8100
+ matchRoutes: () => (/* reexport safe */ _remix_run_router__rspack_import_1.ue),
8101
+ parsePath: () => (/* reexport safe */ _remix_run_router__rspack_import_1.Rr),
8102
+ redirect: () => (/* reexport safe */ _remix_run_router__rspack_import_1.V2),
8103
+ redirectDocument: () => (/* reexport safe */ _remix_run_router__rspack_import_1.Sk),
8104
+ renderMatches: () => (renderMatches),
8105
+ replace: () => (/* reexport safe */ _remix_run_router__rspack_import_1.HC),
8106
+ resolvePath: () => (/* reexport safe */ _remix_run_router__rspack_import_1.o1),
8107
+ useActionData: () => (useActionData),
8108
+ useAsyncError: () => (useAsyncError),
8109
+ useAsyncValue: () => (useAsyncValue),
8110
+ useBlocker: () => (useBlocker),
8111
+ useHref: () => (useHref),
8112
+ useInRouterContext: () => (useInRouterContext),
8113
+ useLoaderData: () => (useLoaderData),
8114
+ useLocation: () => (useLocation),
8115
+ useMatch: () => (useMatch),
8116
+ useMatches: () => (useMatches),
8117
+ useNavigate: () => (useNavigate),
8118
+ useNavigation: () => (useNavigation),
8119
+ useNavigationType: () => (useNavigationType),
8120
+ useOutlet: () => (useOutlet),
8121
+ useOutletContext: () => (useOutletContext),
8122
+ useParams: () => (useParams),
8123
+ useResolvedPath: () => (useResolvedPath),
8124
+ useRevalidator: () => (useRevalidator),
8125
+ useRouteError: () => (useRouteError),
8126
+ useRouteLoaderData: () => (useRouteLoaderData),
8127
+ useRoutes: () => (useRoutes)
7999
8128
  }, {
8000
- jb: NavigationContext
8129
+ UNSAFE_DataRouterContext: DataRouterContext,
8130
+ UNSAFE_DataRouterStateContext: DataRouterStateContext,
8131
+ UNSAFE_LocationContext: LocationContext,
8132
+ UNSAFE_NavigationContext: NavigationContext,
8133
+ UNSAFE_RouteContext: RouteContext
8001
8134
  });
8002
8135
 
8003
8136