react-router 0.0.0-experimental-23ff92a9d → 0.0.0-experimental-35027c3be

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 (35) hide show
  1. package/dist/development/{chunk-5GEZPB6I.mjs → chunk-MS5H2G4A.mjs} +26 -15
  2. package/dist/development/dom-export.d.mts +2 -2
  3. package/dist/development/dom-export.d.ts +2 -2
  4. package/dist/development/dom-export.js +18 -5
  5. package/dist/development/dom-export.mjs +2 -2
  6. package/dist/{production/fog-of-war-CAa8Cd2b.d.ts → development/fog-of-war-B3KWWAwg.d.ts} +3 -1
  7. package/dist/development/{fog-of-war-Du0Ly6MI.d.mts → fog-of-war-hKEJmybD.d.mts} +3 -1
  8. package/dist/development/index.d.mts +7 -7
  9. package/dist/development/index.d.ts +7 -7
  10. package/dist/development/index.js +26 -15
  11. package/dist/development/index.mjs +2 -2
  12. package/dist/development/lib/types/route-module.d.mts +1 -1
  13. package/dist/development/lib/types/route-module.d.ts +1 -1
  14. package/dist/development/lib/types/route-module.js +1 -1
  15. package/dist/development/lib/types/route-module.mjs +1 -1
  16. package/dist/development/{route-data-DfsXj4xE.d.ts → route-data-H2S3hwhf.d.mts} +5 -5
  17. package/dist/{production/route-data-DfsXj4xE.d.mts → development/route-data-H2S3hwhf.d.ts} +5 -5
  18. package/dist/production/{chunk-54UAIGQV.mjs → chunk-57KXJ5JM.mjs} +26 -15
  19. package/dist/production/dom-export.d.mts +2 -2
  20. package/dist/production/dom-export.d.ts +2 -2
  21. package/dist/production/dom-export.js +18 -5
  22. package/dist/production/dom-export.mjs +2 -2
  23. package/dist/{development/fog-of-war-CAa8Cd2b.d.ts → production/fog-of-war-B3KWWAwg.d.ts} +3 -1
  24. package/dist/production/{fog-of-war-Du0Ly6MI.d.mts → fog-of-war-hKEJmybD.d.mts} +3 -1
  25. package/dist/production/index.d.mts +7 -7
  26. package/dist/production/index.d.ts +7 -7
  27. package/dist/production/index.js +26 -15
  28. package/dist/production/index.mjs +2 -2
  29. package/dist/production/lib/types/route-module.d.mts +1 -1
  30. package/dist/production/lib/types/route-module.d.ts +1 -1
  31. package/dist/production/lib/types/route-module.js +1 -1
  32. package/dist/production/lib/types/route-module.mjs +1 -1
  33. package/dist/production/{route-data-DfsXj4xE.d.ts → route-data-H2S3hwhf.d.mts} +5 -5
  34. package/dist/{development/route-data-DfsXj4xE.d.mts → production/route-data-H2S3hwhf.d.ts} +5 -5
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7545,19 +7545,31 @@ import(${JSON.stringify(manifest.entry.module)});`;
7545
7545
  includeHydrateFallback: true
7546
7546
  })
7547
7547
  );
7548
- return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7548
+ return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, manifest.sri ? /* @__PURE__ */ React9.createElement(
7549
+ "script",
7550
+ {
7551
+ type: "importmap",
7552
+ dangerouslySetInnerHTML: {
7553
+ __html: JSON.stringify({
7554
+ integrity: manifest.sri
7555
+ })
7556
+ }
7557
+ }
7558
+ ) : null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7549
7559
  "link",
7550
7560
  {
7551
7561
  rel: "modulepreload",
7552
7562
  href: manifest.url,
7553
- crossOrigin: props.crossOrigin
7563
+ crossOrigin: props.crossOrigin,
7564
+ integrity: manifest.sri?.[manifest.url]
7554
7565
  }
7555
7566
  ) : null, /* @__PURE__ */ React9.createElement(
7556
7567
  "link",
7557
7568
  {
7558
7569
  rel: "modulepreload",
7559
7570
  href: manifest.entry.module,
7560
- crossOrigin: props.crossOrigin
7571
+ crossOrigin: props.crossOrigin,
7572
+ integrity: manifest.sri?.[manifest.entry.module]
7561
7573
  }
7562
7574
  ), dedupe(preloads).map((path) => /* @__PURE__ */ React9.createElement(
7563
7575
  "link",
@@ -7565,7 +7577,8 @@ import(${JSON.stringify(manifest.entry.module)});`;
7565
7577
  key: path,
7566
7578
  rel: "modulepreload",
7567
7579
  href: path,
7568
- crossOrigin: props.crossOrigin
7580
+ crossOrigin: props.crossOrigin,
7581
+ integrity: manifest.sri?.[path]
7569
7582
  }
7570
7583
  )), initialScripts);
7571
7584
  }
@@ -7588,7 +7601,7 @@ function mergeRefs(...refs) {
7588
7601
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7589
7602
  try {
7590
7603
  if (isBrowser) {
7591
- window.__reactRouterVersion = "0.0.0-experimental-23ff92a9d";
7604
+ window.__reactRouterVersion = "0.0.0-experimental-35027c3be";
7592
7605
  }
7593
7606
  } catch (e) {
7594
7607
  }
@@ -8743,6 +8756,7 @@ function createRoutesStub(routes, unstable_getContext) {
8743
8756
  if (routerRef.current == null) {
8744
8757
  remixContextRef.current = {
8745
8758
  future: {
8759
+ unstable_subResourceIntegrity: future?.unstable_subResourceIntegrity === true,
8746
8760
  unstable_middleware: future?.unstable_middleware === true
8747
8761
  },
8748
8762
  manifest: {
@@ -9605,14 +9619,11 @@ var createRequestHandler = (build, mode) => {
9605
9619
  let serverMode;
9606
9620
  let staticHandler;
9607
9621
  let errorHandler;
9608
- return async function requestHandler(request, _loadContext) {
9622
+ return async function requestHandler(request, initialContext) {
9609
9623
  _build = typeof build === "function" ? await build() : build;
9610
- let loadContext = _build.future.unstable_middleware ? (
9611
- // @ts-expect-error This type changes when middleware is enabled
9612
- new unstable_RouterContextProvider(
9613
- _loadContext
9614
- )
9615
- ) : _loadContext || {};
9624
+ let loadContext = _build.future.unstable_middleware ? new unstable_RouterContextProvider(
9625
+ initialContext
9626
+ ) : initialContext || {};
9616
9627
  if (typeof build === "function") {
9617
9628
  let derived = derive(_build, mode);
9618
9629
  routes = derived.routes;
@@ -9752,8 +9763,8 @@ var createRequestHandler = (build, mode) => {
9752
9763
  } else {
9753
9764
  let { pathname } = url;
9754
9765
  let criticalCss = void 0;
9755
- if (_build.getCriticalCss) {
9756
- criticalCss = await _build.getCriticalCss({ pathname });
9766
+ if (_build.unstable_getCriticalCss) {
9767
+ criticalCss = await _build.unstable_getCriticalCss({ pathname });
9757
9768
  } else if (mode === "development" /* Development */ && getDevServerHooks()?.getCriticalCss) {
9758
9769
  criticalCss = await getDevServerHooks()?.getCriticalCss?.(pathname);
9759
9770
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-Du0Ly6MI.mjs';
3
- import { R as RouterInit } from './route-data-DfsXj4xE.mjs';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-hKEJmybD.mjs';
3
+ import { R as RouterInit } from './route-data-H2S3hwhf.mjs';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-CAa8Cd2b.js';
3
- import { R as RouterInit } from './route-data-DfsXj4xE.js';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-B3KWWAwg.js';
3
+ import { R as RouterInit } from './route-data-H2S3hwhf.js';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -5716,19 +5716,31 @@ import(${JSON.stringify(manifest.entry.module)});`;
5716
5716
  includeHydrateFallback: true
5717
5717
  })
5718
5718
  );
5719
- return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
5719
+ return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, manifest.sri ? /* @__PURE__ */ React9.createElement(
5720
+ "script",
5721
+ {
5722
+ type: "importmap",
5723
+ dangerouslySetInnerHTML: {
5724
+ __html: JSON.stringify({
5725
+ integrity: manifest.sri
5726
+ })
5727
+ }
5728
+ }
5729
+ ) : null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
5720
5730
  "link",
5721
5731
  {
5722
5732
  rel: "modulepreload",
5723
5733
  href: manifest.url,
5724
- crossOrigin: props.crossOrigin
5734
+ crossOrigin: props.crossOrigin,
5735
+ integrity: manifest.sri?.[manifest.url]
5725
5736
  }
5726
5737
  ) : null, /* @__PURE__ */ React9.createElement(
5727
5738
  "link",
5728
5739
  {
5729
5740
  rel: "modulepreload",
5730
5741
  href: manifest.entry.module,
5731
- crossOrigin: props.crossOrigin
5742
+ crossOrigin: props.crossOrigin,
5743
+ integrity: manifest.sri?.[manifest.entry.module]
5732
5744
  }
5733
5745
  ), dedupe(preloads).map((path) => /* @__PURE__ */ React9.createElement(
5734
5746
  "link",
@@ -5736,7 +5748,8 @@ import(${JSON.stringify(manifest.entry.module)});`;
5736
5748
  key: path,
5737
5749
  rel: "modulepreload",
5738
5750
  href: path,
5739
- crossOrigin: props.crossOrigin
5751
+ crossOrigin: props.crossOrigin,
5752
+ integrity: manifest.sri?.[path]
5740
5753
  }
5741
5754
  )), initialScripts);
5742
5755
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -25,7 +25,7 @@ import {
25
25
  matchRoutes,
26
26
  shouldHydrateRouteLoader,
27
27
  useFogOFWarDiscovery
28
- } from "./chunk-5GEZPB6I.mjs";
28
+ } from "./chunk-MS5H2G4A.mjs";
29
29
 
30
30
  // lib/dom-export/dom-router-provider.tsx
31
31
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, w as NonIndexRouteObject, a2 as LazyRouteFunction, r as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-DfsXj4xE.js';
2
+ import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, x as NonIndexRouteObject, a2 as LazyRouteFunction, s as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-H2S3hwhf.js';
3
3
 
4
4
  /**
5
5
  * @private
@@ -440,6 +440,7 @@ interface EntryContext extends FrameworkContextObject {
440
440
  serverHandoffStream?: ReadableStream<Uint8Array>;
441
441
  }
442
442
  interface FutureConfig {
443
+ unstable_subResourceIntegrity: boolean;
443
444
  unstable_middleware: boolean;
444
445
  }
445
446
  type CriticalCss = string | {
@@ -458,6 +459,7 @@ interface AssetsManifest {
458
459
  timestamp?: number;
459
460
  runtime: string;
460
461
  };
462
+ sri?: Record<string, string>;
461
463
  }
462
464
 
463
465
  interface Route {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, w as NonIndexRouteObject, a2 as LazyRouteFunction, r as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-DfsXj4xE.mjs';
2
+ import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, x as NonIndexRouteObject, a2 as LazyRouteFunction, s as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-H2S3hwhf.mjs';
3
3
 
4
4
  /**
5
5
  * @private
@@ -440,6 +440,7 @@ interface EntryContext extends FrameworkContextObject {
440
440
  serverHandoffStream?: ReadableStream<Uint8Array>;
441
441
  }
442
442
  interface FutureConfig {
443
+ unstable_subResourceIntegrity: boolean;
443
444
  unstable_middleware: boolean;
444
445
  }
445
446
  type CriticalCss = string | {
@@ -458,6 +459,7 @@ interface AssetsManifest {
458
459
  timestamp?: number;
459
460
  runtime: string;
460
461
  };
462
+ sri?: Record<string, string>;
461
463
  }
462
464
 
463
465
  interface Route {
@@ -1,12 +1,12 @@
1
- import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as unstable_InitialContext, r as IndexRouteObject, s as LoaderFunction, t as ActionFunction, M as MetaFunction, v as LinksFunction, w as NonIndexRouteObject, x as unstable_RouterContextProvider, E as Equal, y as RouterState } from './route-data-DfsXj4xE.mjs';
2
- export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-DfsXj4xE.mjs';
3
- import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-Du0Ly6MI.mjs';
4
- export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-Du0Ly6MI.mjs';
1
+ import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, M as MetaFunction, w as LinksFunction, x as NonIndexRouteObject, E as Equal, y as RouterState } from './route-data-H2S3hwhf.mjs';
2
+ export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-H2S3hwhf.mjs';
3
+ import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-hKEJmybD.mjs';
4
+ export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-hKEJmybD.mjs';
5
5
  import * as React from 'react';
6
6
  import { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
8
8
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
9
- import { A as AppLoadContext, M as MiddlewareEnabled } from './future-ldDp5FKH.mjs';
9
+ import { M as MiddlewareEnabled, A as AppLoadContext } from './future-ldDp5FKH.mjs';
10
10
  export { F as Future } from './future-ldDp5FKH.mjs';
11
11
 
12
12
  declare const SingleFetchRedirectSymbol: unique symbol;
@@ -46,7 +46,7 @@ interface ServerBuild {
46
46
  assetsBuildDirectory: string;
47
47
  future: FutureConfig;
48
48
  ssr: boolean;
49
- getCriticalCss?: (args: {
49
+ unstable_getCriticalCss?: (args: {
50
50
  pathname: string;
51
51
  }) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
52
52
  /**
@@ -56,7 +56,7 @@ interface ServerBuild {
56
56
  prerender: string[];
57
57
  }
58
58
  interface HandleDocumentRequestFunction {
59
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
59
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
60
60
  }
61
61
  interface HandleDataRequestFunction {
62
62
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -1,12 +1,12 @@
1
- import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as unstable_InitialContext, r as IndexRouteObject, s as LoaderFunction, t as ActionFunction, M as MetaFunction, v as LinksFunction, w as NonIndexRouteObject, x as unstable_RouterContextProvider, E as Equal, y as RouterState } from './route-data-DfsXj4xE.js';
2
- export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-DfsXj4xE.js';
3
- import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-CAa8Cd2b.js';
4
- export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-CAa8Cd2b.js';
1
+ import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, M as MetaFunction, w as LinksFunction, x as NonIndexRouteObject, E as Equal, y as RouterState } from './route-data-H2S3hwhf.js';
2
+ export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-H2S3hwhf.js';
3
+ import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-B3KWWAwg.js';
4
+ export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-B3KWWAwg.js';
5
5
  import * as React from 'react';
6
6
  import { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
8
8
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
9
- import { A as AppLoadContext, M as MiddlewareEnabled } from './future-ldDp5FKH.js';
9
+ import { M as MiddlewareEnabled, A as AppLoadContext } from './future-ldDp5FKH.js';
10
10
  export { F as Future } from './future-ldDp5FKH.js';
11
11
 
12
12
  declare const SingleFetchRedirectSymbol: unique symbol;
@@ -46,7 +46,7 @@ interface ServerBuild {
46
46
  assetsBuildDirectory: string;
47
47
  future: FutureConfig;
48
48
  ssr: boolean;
49
- getCriticalCss?: (args: {
49
+ unstable_getCriticalCss?: (args: {
50
50
  pathname: string;
51
51
  }) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
52
52
  /**
@@ -56,7 +56,7 @@ interface ServerBuild {
56
56
  prerender: string[];
57
57
  }
58
58
  interface HandleDocumentRequestFunction {
59
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
59
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
60
60
  }
61
61
  interface HandleDataRequestFunction {
62
62
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7693,19 +7693,31 @@ import(${JSON.stringify(manifest.entry.module)});`;
7693
7693
  includeHydrateFallback: true
7694
7694
  })
7695
7695
  );
7696
- return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7696
+ return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, manifest.sri ? /* @__PURE__ */ React9.createElement(
7697
+ "script",
7698
+ {
7699
+ type: "importmap",
7700
+ dangerouslySetInnerHTML: {
7701
+ __html: JSON.stringify({
7702
+ integrity: manifest.sri
7703
+ })
7704
+ }
7705
+ }
7706
+ ) : null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7697
7707
  "link",
7698
7708
  {
7699
7709
  rel: "modulepreload",
7700
7710
  href: manifest.url,
7701
- crossOrigin: props.crossOrigin
7711
+ crossOrigin: props.crossOrigin,
7712
+ integrity: manifest.sri?.[manifest.url]
7702
7713
  }
7703
7714
  ) : null, /* @__PURE__ */ React9.createElement(
7704
7715
  "link",
7705
7716
  {
7706
7717
  rel: "modulepreload",
7707
7718
  href: manifest.entry.module,
7708
- crossOrigin: props.crossOrigin
7719
+ crossOrigin: props.crossOrigin,
7720
+ integrity: manifest.sri?.[manifest.entry.module]
7709
7721
  }
7710
7722
  ), dedupe(preloads).map((path) => /* @__PURE__ */ React9.createElement(
7711
7723
  "link",
@@ -7713,7 +7725,8 @@ import(${JSON.stringify(manifest.entry.module)});`;
7713
7725
  key: path,
7714
7726
  rel: "modulepreload",
7715
7727
  href: path,
7716
- crossOrigin: props.crossOrigin
7728
+ crossOrigin: props.crossOrigin,
7729
+ integrity: manifest.sri?.[path]
7717
7730
  }
7718
7731
  )), initialScripts);
7719
7732
  }
@@ -7736,7 +7749,7 @@ function mergeRefs(...refs) {
7736
7749
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7737
7750
  try {
7738
7751
  if (isBrowser) {
7739
- window.__reactRouterVersion = "0.0.0-experimental-23ff92a9d";
7752
+ window.__reactRouterVersion = "0.0.0-experimental-35027c3be";
7740
7753
  }
7741
7754
  } catch (e) {
7742
7755
  }
@@ -8891,6 +8904,7 @@ function createRoutesStub(routes, unstable_getContext) {
8891
8904
  if (routerRef.current == null) {
8892
8905
  remixContextRef.current = {
8893
8906
  future: {
8907
+ unstable_subResourceIntegrity: future?.unstable_subResourceIntegrity === true,
8894
8908
  unstable_middleware: future?.unstable_middleware === true
8895
8909
  },
8896
8910
  manifest: {
@@ -9753,14 +9767,11 @@ var createRequestHandler = (build, mode) => {
9753
9767
  let serverMode;
9754
9768
  let staticHandler;
9755
9769
  let errorHandler;
9756
- return async function requestHandler(request, _loadContext) {
9770
+ return async function requestHandler(request, initialContext) {
9757
9771
  _build = typeof build === "function" ? await build() : build;
9758
- let loadContext = _build.future.unstable_middleware ? (
9759
- // @ts-expect-error This type changes when middleware is enabled
9760
- new unstable_RouterContextProvider(
9761
- _loadContext
9762
- )
9763
- ) : _loadContext || {};
9772
+ let loadContext = _build.future.unstable_middleware ? new unstable_RouterContextProvider(
9773
+ initialContext
9774
+ ) : initialContext || {};
9764
9775
  if (typeof build === "function") {
9765
9776
  let derived = derive(_build, mode);
9766
9777
  routes = derived.routes;
@@ -9900,8 +9911,8 @@ var createRequestHandler = (build, mode) => {
9900
9911
  } else {
9901
9912
  let { pathname } = url;
9902
9913
  let criticalCss = void 0;
9903
- if (_build.getCriticalCss) {
9904
- criticalCss = await _build.getCriticalCss({ pathname });
9914
+ if (_build.unstable_getCriticalCss) {
9915
+ criticalCss = await _build.unstable_getCriticalCss({ pathname });
9905
9916
  } else if (mode === "development" /* Development */ && getDevServerHooks()?.getCriticalCss) {
9906
9917
  criticalCss = await getDevServerHooks()?.getCriticalCss?.(pathname);
9907
9918
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -123,7 +123,7 @@ import {
123
123
  useSearchParams,
124
124
  useSubmit,
125
125
  useViewTransitionState
126
- } from "./chunk-5GEZPB6I.mjs";
126
+ } from "./chunk-MS5H2G4A.mjs";
127
127
  export {
128
128
  Await,
129
129
  BrowserRouter,
@@ -1,4 +1,4 @@
1
- import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, x as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-DfsXj4xE.mjs';
1
+ import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-H2S3hwhf.mjs';
2
2
  import { M as MiddlewareEnabled, A as AppLoadContext } from '../../future-ldDp5FKH.mjs';
3
3
  import 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, x as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-DfsXj4xE.js';
1
+ import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-H2S3hwhf.js';
2
2
  import { M as MiddlewareEnabled, A as AppLoadContext } from '../../future-ldDp5FKH.js';
3
3
  import 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -331,7 +331,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
331
331
  * a `next` function as the second parameter which will call downstream handlers
332
332
  * and then complete middlewares from the bottom-up
333
333
  */
334
- type unstable_MiddlewareFunction<Context = any, Result = unknown> = (args: DataFunctionArgs<Context>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
334
+ type unstable_MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<unstable_RouterContextProvider>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
335
335
  /**
336
336
  * Arguments passed to loader functions
337
337
  */
@@ -1476,7 +1476,7 @@ interface RouteModules {
1476
1476
  interface RouteModule {
1477
1477
  clientAction?: ClientActionFunction;
1478
1478
  clientLoader?: ClientLoaderFunction;
1479
- unstable_clientMiddleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, undefined>[];
1479
+ unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
1480
1480
  ErrorBoundary?: ErrorBoundaryComponent;
1481
1481
  HydrateFallback?: HydrateFallbackComponent;
1482
1482
  Layout?: LayoutComponent;
@@ -1495,7 +1495,7 @@ interface ServerRouteModule extends RouteModule {
1495
1495
  [name: string]: string;
1496
1496
  };
1497
1497
  loader?: LoaderFunction;
1498
- unstable_middleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, Response>[];
1498
+ unstable_middleware?: unstable_MiddlewareFunction<Response>[];
1499
1499
  }
1500
1500
  /**
1501
1501
  * A function that handles data mutations for a route on the client
@@ -1681,7 +1681,7 @@ type Serializable = undefined | null | boolean | string | symbol | number | Arra
1681
1681
  * in your application.
1682
1682
  */
1683
1683
  type unstable_SerializesTo<T> = {
1684
- unstable__ReactRouter_SerializesTo?: [T];
1684
+ unstable__ReactRouter_SerializesTo: [T];
1685
1685
  };
1686
1686
 
1687
1687
  type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
@@ -1702,4 +1702,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
1702
1702
  type ClientDataFrom<T> = ClientData<DataFrom<T>>;
1703
1703
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
1704
1704
 
1705
- export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type IndexRouteObject as r, type LoaderFunction as s, type ActionFunction as t, type unstable_InitialContext as u, type LinksFunction as v, type NonIndexRouteObject as w, unstable_RouterContextProvider as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
1705
+ export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type unstable_InitialContext as r, type IndexRouteObject as s, type LoaderFunction as t, unstable_RouterContextProvider as u, type ActionFunction as v, type LinksFunction as w, type NonIndexRouteObject as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
@@ -331,7 +331,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
331
331
  * a `next` function as the second parameter which will call downstream handlers
332
332
  * and then complete middlewares from the bottom-up
333
333
  */
334
- type unstable_MiddlewareFunction<Context = any, Result = unknown> = (args: DataFunctionArgs<Context>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
334
+ type unstable_MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<unstable_RouterContextProvider>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
335
335
  /**
336
336
  * Arguments passed to loader functions
337
337
  */
@@ -1476,7 +1476,7 @@ interface RouteModules {
1476
1476
  interface RouteModule {
1477
1477
  clientAction?: ClientActionFunction;
1478
1478
  clientLoader?: ClientLoaderFunction;
1479
- unstable_clientMiddleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, undefined>[];
1479
+ unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
1480
1480
  ErrorBoundary?: ErrorBoundaryComponent;
1481
1481
  HydrateFallback?: HydrateFallbackComponent;
1482
1482
  Layout?: LayoutComponent;
@@ -1495,7 +1495,7 @@ interface ServerRouteModule extends RouteModule {
1495
1495
  [name: string]: string;
1496
1496
  };
1497
1497
  loader?: LoaderFunction;
1498
- unstable_middleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, Response>[];
1498
+ unstable_middleware?: unstable_MiddlewareFunction<Response>[];
1499
1499
  }
1500
1500
  /**
1501
1501
  * A function that handles data mutations for a route on the client
@@ -1681,7 +1681,7 @@ type Serializable = undefined | null | boolean | string | symbol | number | Arra
1681
1681
  * in your application.
1682
1682
  */
1683
1683
  type unstable_SerializesTo<T> = {
1684
- unstable__ReactRouter_SerializesTo?: [T];
1684
+ unstable__ReactRouter_SerializesTo: [T];
1685
1685
  };
1686
1686
 
1687
1687
  type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
@@ -1702,4 +1702,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
1702
1702
  type ClientDataFrom<T> = ClientData<DataFrom<T>>;
1703
1703
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
1704
1704
 
1705
- export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type IndexRouteObject as r, type LoaderFunction as s, type ActionFunction as t, type unstable_InitialContext as u, type LinksFunction as v, type NonIndexRouteObject as w, unstable_RouterContextProvider as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
1705
+ export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type unstable_InitialContext as r, type IndexRouteObject as s, type LoaderFunction as t, unstable_RouterContextProvider as u, type ActionFunction as v, type LinksFunction as w, type NonIndexRouteObject as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7545,19 +7545,31 @@ import(${JSON.stringify(manifest.entry.module)});`;
7545
7545
  includeHydrateFallback: true
7546
7546
  })
7547
7547
  );
7548
- return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7548
+ return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, manifest.sri ? /* @__PURE__ */ React9.createElement(
7549
+ "script",
7550
+ {
7551
+ type: "importmap",
7552
+ dangerouslySetInnerHTML: {
7553
+ __html: JSON.stringify({
7554
+ integrity: manifest.sri
7555
+ })
7556
+ }
7557
+ }
7558
+ ) : null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7549
7559
  "link",
7550
7560
  {
7551
7561
  rel: "modulepreload",
7552
7562
  href: manifest.url,
7553
- crossOrigin: props.crossOrigin
7563
+ crossOrigin: props.crossOrigin,
7564
+ integrity: manifest.sri?.[manifest.url]
7554
7565
  }
7555
7566
  ) : null, /* @__PURE__ */ React9.createElement(
7556
7567
  "link",
7557
7568
  {
7558
7569
  rel: "modulepreload",
7559
7570
  href: manifest.entry.module,
7560
- crossOrigin: props.crossOrigin
7571
+ crossOrigin: props.crossOrigin,
7572
+ integrity: manifest.sri?.[manifest.entry.module]
7561
7573
  }
7562
7574
  ), dedupe(preloads).map((path) => /* @__PURE__ */ React9.createElement(
7563
7575
  "link",
@@ -7565,7 +7577,8 @@ import(${JSON.stringify(manifest.entry.module)});`;
7565
7577
  key: path,
7566
7578
  rel: "modulepreload",
7567
7579
  href: path,
7568
- crossOrigin: props.crossOrigin
7580
+ crossOrigin: props.crossOrigin,
7581
+ integrity: manifest.sri?.[path]
7569
7582
  }
7570
7583
  )), initialScripts);
7571
7584
  }
@@ -7588,7 +7601,7 @@ function mergeRefs(...refs) {
7588
7601
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7589
7602
  try {
7590
7603
  if (isBrowser) {
7591
- window.__reactRouterVersion = "0.0.0-experimental-23ff92a9d";
7604
+ window.__reactRouterVersion = "0.0.0-experimental-35027c3be";
7592
7605
  }
7593
7606
  } catch (e) {
7594
7607
  }
@@ -8743,6 +8756,7 @@ function createRoutesStub(routes, unstable_getContext) {
8743
8756
  if (routerRef.current == null) {
8744
8757
  remixContextRef.current = {
8745
8758
  future: {
8759
+ unstable_subResourceIntegrity: future?.unstable_subResourceIntegrity === true,
8746
8760
  unstable_middleware: future?.unstable_middleware === true
8747
8761
  },
8748
8762
  manifest: {
@@ -9605,14 +9619,11 @@ var createRequestHandler = (build, mode) => {
9605
9619
  let serverMode;
9606
9620
  let staticHandler;
9607
9621
  let errorHandler;
9608
- return async function requestHandler(request, _loadContext) {
9622
+ return async function requestHandler(request, initialContext) {
9609
9623
  _build = typeof build === "function" ? await build() : build;
9610
- let loadContext = _build.future.unstable_middleware ? (
9611
- // @ts-expect-error This type changes when middleware is enabled
9612
- new unstable_RouterContextProvider(
9613
- _loadContext
9614
- )
9615
- ) : _loadContext || {};
9624
+ let loadContext = _build.future.unstable_middleware ? new unstable_RouterContextProvider(
9625
+ initialContext
9626
+ ) : initialContext || {};
9616
9627
  if (typeof build === "function") {
9617
9628
  let derived = derive(_build, mode);
9618
9629
  routes = derived.routes;
@@ -9752,8 +9763,8 @@ var createRequestHandler = (build, mode) => {
9752
9763
  } else {
9753
9764
  let { pathname } = url;
9754
9765
  let criticalCss = void 0;
9755
- if (_build.getCriticalCss) {
9756
- criticalCss = await _build.getCriticalCss({ pathname });
9766
+ if (_build.unstable_getCriticalCss) {
9767
+ criticalCss = await _build.unstable_getCriticalCss({ pathname });
9757
9768
  } else if (mode === "development" /* Development */ && getDevServerHooks()?.getCriticalCss) {
9758
9769
  criticalCss = await getDevServerHooks()?.getCriticalCss?.(pathname);
9759
9770
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-Du0Ly6MI.mjs';
3
- import { R as RouterInit } from './route-data-DfsXj4xE.mjs';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-hKEJmybD.mjs';
3
+ import { R as RouterInit } from './route-data-H2S3hwhf.mjs';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-CAa8Cd2b.js';
3
- import { R as RouterInit } from './route-data-DfsXj4xE.js';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-B3KWWAwg.js';
3
+ import { R as RouterInit } from './route-data-H2S3hwhf.js';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -5716,19 +5716,31 @@ import(${JSON.stringify(manifest.entry.module)});`;
5716
5716
  includeHydrateFallback: true
5717
5717
  })
5718
5718
  );
5719
- return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
5719
+ return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, manifest.sri ? /* @__PURE__ */ React9.createElement(
5720
+ "script",
5721
+ {
5722
+ type: "importmap",
5723
+ dangerouslySetInnerHTML: {
5724
+ __html: JSON.stringify({
5725
+ integrity: manifest.sri
5726
+ })
5727
+ }
5728
+ }
5729
+ ) : null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
5720
5730
  "link",
5721
5731
  {
5722
5732
  rel: "modulepreload",
5723
5733
  href: manifest.url,
5724
- crossOrigin: props.crossOrigin
5734
+ crossOrigin: props.crossOrigin,
5735
+ integrity: manifest.sri?.[manifest.url]
5725
5736
  }
5726
5737
  ) : null, /* @__PURE__ */ React9.createElement(
5727
5738
  "link",
5728
5739
  {
5729
5740
  rel: "modulepreload",
5730
5741
  href: manifest.entry.module,
5731
- crossOrigin: props.crossOrigin
5742
+ crossOrigin: props.crossOrigin,
5743
+ integrity: manifest.sri?.[manifest.entry.module]
5732
5744
  }
5733
5745
  ), dedupe(preloads).map((path) => /* @__PURE__ */ React9.createElement(
5734
5746
  "link",
@@ -5736,7 +5748,8 @@ import(${JSON.stringify(manifest.entry.module)});`;
5736
5748
  key: path,
5737
5749
  rel: "modulepreload",
5738
5750
  href: path,
5739
- crossOrigin: props.crossOrigin
5751
+ crossOrigin: props.crossOrigin,
5752
+ integrity: manifest.sri?.[path]
5740
5753
  }
5741
5754
  )), initialScripts);
5742
5755
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -25,7 +25,7 @@ import {
25
25
  matchRoutes,
26
26
  shouldHydrateRouteLoader,
27
27
  useFogOFWarDiscovery
28
- } from "./chunk-54UAIGQV.mjs";
28
+ } from "./chunk-57KXJ5JM.mjs";
29
29
 
30
30
  // lib/dom-export/dom-router-provider.tsx
31
31
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, w as NonIndexRouteObject, a2 as LazyRouteFunction, r as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-DfsXj4xE.js';
2
+ import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, x as NonIndexRouteObject, a2 as LazyRouteFunction, s as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-H2S3hwhf.js';
3
3
 
4
4
  /**
5
5
  * @private
@@ -440,6 +440,7 @@ interface EntryContext extends FrameworkContextObject {
440
440
  serverHandoffStream?: ReadableStream<Uint8Array>;
441
441
  }
442
442
  interface FutureConfig {
443
+ unstable_subResourceIntegrity: boolean;
443
444
  unstable_middleware: boolean;
444
445
  }
445
446
  type CriticalCss = string | {
@@ -458,6 +459,7 @@ interface AssetsManifest {
458
459
  timestamp?: number;
459
460
  runtime: string;
460
461
  };
462
+ sri?: Record<string, string>;
461
463
  }
462
464
 
463
465
  interface Route {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, w as NonIndexRouteObject, a2 as LazyRouteFunction, r as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-DfsXj4xE.mjs';
2
+ import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, ar as PatchRoutesOnNavigationFunction, b as Router$1, T as To, d as RelativeRoutingType, x as NonIndexRouteObject, a2 as LazyRouteFunction, s as IndexRouteObject, e as Location, f as Action, aq as Navigator, at as RouteMatch, p as StaticHandlerContext, c as RouteManifest, a as RouteModules, ap as DataRouteObject, aR as RouteModule, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aS as History, z as GetScrollRestorationKeyFunction, N as NavigateOptions, J as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-H2S3hwhf.mjs';
3
3
 
4
4
  /**
5
5
  * @private
@@ -440,6 +440,7 @@ interface EntryContext extends FrameworkContextObject {
440
440
  serverHandoffStream?: ReadableStream<Uint8Array>;
441
441
  }
442
442
  interface FutureConfig {
443
+ unstable_subResourceIntegrity: boolean;
443
444
  unstable_middleware: boolean;
444
445
  }
445
446
  type CriticalCss = string | {
@@ -458,6 +459,7 @@ interface AssetsManifest {
458
459
  timestamp?: number;
459
460
  runtime: string;
460
461
  };
462
+ sri?: Record<string, string>;
461
463
  }
462
464
 
463
465
  interface Route {
@@ -1,12 +1,12 @@
1
- import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as unstable_InitialContext, r as IndexRouteObject, s as LoaderFunction, t as ActionFunction, M as MetaFunction, v as LinksFunction, w as NonIndexRouteObject, x as unstable_RouterContextProvider, E as Equal, y as RouterState } from './route-data-DfsXj4xE.mjs';
2
- export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-DfsXj4xE.mjs';
3
- import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-Du0Ly6MI.mjs';
4
- export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-Du0Ly6MI.mjs';
1
+ import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, M as MetaFunction, w as LinksFunction, x as NonIndexRouteObject, E as Equal, y as RouterState } from './route-data-H2S3hwhf.mjs';
2
+ export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-H2S3hwhf.mjs';
3
+ import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-hKEJmybD.mjs';
4
+ export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-hKEJmybD.mjs';
5
5
  import * as React from 'react';
6
6
  import { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
8
8
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
9
- import { A as AppLoadContext, M as MiddlewareEnabled } from './future-ldDp5FKH.mjs';
9
+ import { M as MiddlewareEnabled, A as AppLoadContext } from './future-ldDp5FKH.mjs';
10
10
  export { F as Future } from './future-ldDp5FKH.mjs';
11
11
 
12
12
  declare const SingleFetchRedirectSymbol: unique symbol;
@@ -46,7 +46,7 @@ interface ServerBuild {
46
46
  assetsBuildDirectory: string;
47
47
  future: FutureConfig;
48
48
  ssr: boolean;
49
- getCriticalCss?: (args: {
49
+ unstable_getCriticalCss?: (args: {
50
50
  pathname: string;
51
51
  }) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
52
52
  /**
@@ -56,7 +56,7 @@ interface ServerBuild {
56
56
  prerender: string[];
57
57
  }
58
58
  interface HandleDocumentRequestFunction {
59
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
59
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
60
60
  }
61
61
  interface HandleDataRequestFunction {
62
62
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -1,12 +1,12 @@
1
- import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as unstable_InitialContext, r as IndexRouteObject, s as LoaderFunction, t as ActionFunction, M as MetaFunction, v as LinksFunction, w as NonIndexRouteObject, x as unstable_RouterContextProvider, E as Equal, y as RouterState } from './route-data-DfsXj4xE.js';
2
- export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-DfsXj4xE.js';
3
- import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-CAa8Cd2b.js';
4
- export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-CAa8Cd2b.js';
1
+ import { a as RouteModules, b as Router, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, M as MetaFunction, w as LinksFunction, x as NonIndexRouteObject, E as Equal, y as RouterState } from './route-data-H2S3hwhf.js';
2
+ export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aF as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-H2S3hwhf.js';
3
+ import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-B3KWWAwg.js';
4
+ export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, aj as UNSAFE_FrameworkContext, am as UNSAFE_createClientRoutes, an as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ak as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_mapRouteProperties, ao as UNSAFE_shouldHydrateRouteLoader, al as UNSAFE_useFogOFWarDiscovery, ap as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-B3KWWAwg.js';
5
5
  import * as React from 'react';
6
6
  import { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
8
8
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
9
- import { A as AppLoadContext, M as MiddlewareEnabled } from './future-ldDp5FKH.js';
9
+ import { M as MiddlewareEnabled, A as AppLoadContext } from './future-ldDp5FKH.js';
10
10
  export { F as Future } from './future-ldDp5FKH.js';
11
11
 
12
12
  declare const SingleFetchRedirectSymbol: unique symbol;
@@ -46,7 +46,7 @@ interface ServerBuild {
46
46
  assetsBuildDirectory: string;
47
47
  future: FutureConfig;
48
48
  ssr: boolean;
49
- getCriticalCss?: (args: {
49
+ unstable_getCriticalCss?: (args: {
50
50
  pathname: string;
51
51
  }) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
52
52
  /**
@@ -56,7 +56,7 @@ interface ServerBuild {
56
56
  prerender: string[];
57
57
  }
58
58
  interface HandleDocumentRequestFunction {
59
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
59
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
60
60
  }
61
61
  interface HandleDataRequestFunction {
62
62
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7693,19 +7693,31 @@ import(${JSON.stringify(manifest.entry.module)});`;
7693
7693
  includeHydrateFallback: true
7694
7694
  })
7695
7695
  );
7696
- return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7696
+ return isHydrated ? null : /* @__PURE__ */ React9.createElement(React9.Fragment, null, manifest.sri ? /* @__PURE__ */ React9.createElement(
7697
+ "script",
7698
+ {
7699
+ type: "importmap",
7700
+ dangerouslySetInnerHTML: {
7701
+ __html: JSON.stringify({
7702
+ integrity: manifest.sri
7703
+ })
7704
+ }
7705
+ }
7706
+ ) : null, !enableFogOfWar ? /* @__PURE__ */ React9.createElement(
7697
7707
  "link",
7698
7708
  {
7699
7709
  rel: "modulepreload",
7700
7710
  href: manifest.url,
7701
- crossOrigin: props.crossOrigin
7711
+ crossOrigin: props.crossOrigin,
7712
+ integrity: manifest.sri?.[manifest.url]
7702
7713
  }
7703
7714
  ) : null, /* @__PURE__ */ React9.createElement(
7704
7715
  "link",
7705
7716
  {
7706
7717
  rel: "modulepreload",
7707
7718
  href: manifest.entry.module,
7708
- crossOrigin: props.crossOrigin
7719
+ crossOrigin: props.crossOrigin,
7720
+ integrity: manifest.sri?.[manifest.entry.module]
7709
7721
  }
7710
7722
  ), dedupe(preloads).map((path) => /* @__PURE__ */ React9.createElement(
7711
7723
  "link",
@@ -7713,7 +7725,8 @@ import(${JSON.stringify(manifest.entry.module)});`;
7713
7725
  key: path,
7714
7726
  rel: "modulepreload",
7715
7727
  href: path,
7716
- crossOrigin: props.crossOrigin
7728
+ crossOrigin: props.crossOrigin,
7729
+ integrity: manifest.sri?.[path]
7717
7730
  }
7718
7731
  )), initialScripts);
7719
7732
  }
@@ -7736,7 +7749,7 @@ function mergeRefs(...refs) {
7736
7749
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7737
7750
  try {
7738
7751
  if (isBrowser) {
7739
- window.__reactRouterVersion = "0.0.0-experimental-23ff92a9d";
7752
+ window.__reactRouterVersion = "0.0.0-experimental-35027c3be";
7740
7753
  }
7741
7754
  } catch (e) {
7742
7755
  }
@@ -8891,6 +8904,7 @@ function createRoutesStub(routes, unstable_getContext) {
8891
8904
  if (routerRef.current == null) {
8892
8905
  remixContextRef.current = {
8893
8906
  future: {
8907
+ unstable_subResourceIntegrity: future?.unstable_subResourceIntegrity === true,
8894
8908
  unstable_middleware: future?.unstable_middleware === true
8895
8909
  },
8896
8910
  manifest: {
@@ -9753,14 +9767,11 @@ var createRequestHandler = (build, mode) => {
9753
9767
  let serverMode;
9754
9768
  let staticHandler;
9755
9769
  let errorHandler;
9756
- return async function requestHandler(request, _loadContext) {
9770
+ return async function requestHandler(request, initialContext) {
9757
9771
  _build = typeof build === "function" ? await build() : build;
9758
- let loadContext = _build.future.unstable_middleware ? (
9759
- // @ts-expect-error This type changes when middleware is enabled
9760
- new unstable_RouterContextProvider(
9761
- _loadContext
9762
- )
9763
- ) : _loadContext || {};
9772
+ let loadContext = _build.future.unstable_middleware ? new unstable_RouterContextProvider(
9773
+ initialContext
9774
+ ) : initialContext || {};
9764
9775
  if (typeof build === "function") {
9765
9776
  let derived = derive(_build, mode);
9766
9777
  routes = derived.routes;
@@ -9900,8 +9911,8 @@ var createRequestHandler = (build, mode) => {
9900
9911
  } else {
9901
9912
  let { pathname } = url;
9902
9913
  let criticalCss = void 0;
9903
- if (_build.getCriticalCss) {
9904
- criticalCss = await _build.getCriticalCss({ pathname });
9914
+ if (_build.unstable_getCriticalCss) {
9915
+ criticalCss = await _build.unstable_getCriticalCss({ pathname });
9905
9916
  } else if (mode === "development" /* Development */ && getDevServerHooks()?.getCriticalCss) {
9906
9917
  criticalCss = await getDevServerHooks()?.getCriticalCss?.(pathname);
9907
9918
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -123,7 +123,7 @@ import {
123
123
  useSearchParams,
124
124
  useSubmit,
125
125
  useViewTransitionState
126
- } from "./chunk-54UAIGQV.mjs";
126
+ } from "./chunk-57KXJ5JM.mjs";
127
127
  export {
128
128
  Await,
129
129
  BrowserRouter,
@@ -1,4 +1,4 @@
1
- import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, x as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-DfsXj4xE.mjs';
1
+ import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-H2S3hwhf.mjs';
2
2
  import { M as MiddlewareEnabled, A as AppLoadContext } from '../../future-ldDp5FKH.mjs';
3
3
  import 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, x as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-DfsXj4xE.js';
1
+ import { aE as LinkDescriptor, aB as MetaDescriptor, aT as ServerDataFrom, aU as ClientDataFrom, aV as Func, aW as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, aX as Pretty } from '../../route-data-H2S3hwhf.js';
2
2
  import { M as MiddlewareEnabled, A as AppLoadContext } from '../../future-ldDp5FKH.js';
3
3
  import 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-23ff92a9d
2
+ * react-router v0.0.0-experimental-35027c3be
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -331,7 +331,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
331
331
  * a `next` function as the second parameter which will call downstream handlers
332
332
  * and then complete middlewares from the bottom-up
333
333
  */
334
- type unstable_MiddlewareFunction<Context = any, Result = unknown> = (args: DataFunctionArgs<Context>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
334
+ type unstable_MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<unstable_RouterContextProvider>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
335
335
  /**
336
336
  * Arguments passed to loader functions
337
337
  */
@@ -1476,7 +1476,7 @@ interface RouteModules {
1476
1476
  interface RouteModule {
1477
1477
  clientAction?: ClientActionFunction;
1478
1478
  clientLoader?: ClientLoaderFunction;
1479
- unstable_clientMiddleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, undefined>[];
1479
+ unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
1480
1480
  ErrorBoundary?: ErrorBoundaryComponent;
1481
1481
  HydrateFallback?: HydrateFallbackComponent;
1482
1482
  Layout?: LayoutComponent;
@@ -1495,7 +1495,7 @@ interface ServerRouteModule extends RouteModule {
1495
1495
  [name: string]: string;
1496
1496
  };
1497
1497
  loader?: LoaderFunction;
1498
- unstable_middleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, Response>[];
1498
+ unstable_middleware?: unstable_MiddlewareFunction<Response>[];
1499
1499
  }
1500
1500
  /**
1501
1501
  * A function that handles data mutations for a route on the client
@@ -1681,7 +1681,7 @@ type Serializable = undefined | null | boolean | string | symbol | number | Arra
1681
1681
  * in your application.
1682
1682
  */
1683
1683
  type unstable_SerializesTo<T> = {
1684
- unstable__ReactRouter_SerializesTo?: [T];
1684
+ unstable__ReactRouter_SerializesTo: [T];
1685
1685
  };
1686
1686
 
1687
1687
  type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
@@ -1702,4 +1702,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
1702
1702
  type ClientDataFrom<T> = ClientData<DataFrom<T>>;
1703
1703
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
1704
1704
 
1705
- export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type IndexRouteObject as r, type LoaderFunction as s, type ActionFunction as t, type unstable_InitialContext as u, type LinksFunction as v, type NonIndexRouteObject as w, unstable_RouterContextProvider as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
1705
+ export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type unstable_InitialContext as r, type IndexRouteObject as s, type LoaderFunction as t, unstable_RouterContextProvider as u, type ActionFunction as v, type LinksFunction as w, type NonIndexRouteObject as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
@@ -331,7 +331,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
331
331
  * a `next` function as the second parameter which will call downstream handlers
332
332
  * and then complete middlewares from the bottom-up
333
333
  */
334
- type unstable_MiddlewareFunction<Context = any, Result = unknown> = (args: DataFunctionArgs<Context>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
334
+ type unstable_MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<unstable_RouterContextProvider>, next: unstable_MiddlewareNextFunction<Result>) => Result | Promise<Result>;
335
335
  /**
336
336
  * Arguments passed to loader functions
337
337
  */
@@ -1476,7 +1476,7 @@ interface RouteModules {
1476
1476
  interface RouteModule {
1477
1477
  clientAction?: ClientActionFunction;
1478
1478
  clientLoader?: ClientLoaderFunction;
1479
- unstable_clientMiddleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, undefined>[];
1479
+ unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
1480
1480
  ErrorBoundary?: ErrorBoundaryComponent;
1481
1481
  HydrateFallback?: HydrateFallbackComponent;
1482
1482
  Layout?: LayoutComponent;
@@ -1495,7 +1495,7 @@ interface ServerRouteModule extends RouteModule {
1495
1495
  [name: string]: string;
1496
1496
  };
1497
1497
  loader?: LoaderFunction;
1498
- unstable_middleware?: unstable_MiddlewareFunction<unstable_RouterContextProvider, Response>[];
1498
+ unstable_middleware?: unstable_MiddlewareFunction<Response>[];
1499
1499
  }
1500
1500
  /**
1501
1501
  * A function that handles data mutations for a route on the client
@@ -1681,7 +1681,7 @@ type Serializable = undefined | null | boolean | string | symbol | number | Arra
1681
1681
  * in your application.
1682
1682
  */
1683
1683
  type unstable_SerializesTo<T> = {
1684
- unstable__ReactRouter_SerializesTo?: [T];
1684
+ unstable__ReactRouter_SerializesTo: [T];
1685
1685
  };
1686
1686
 
1687
1687
  type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
@@ -1702,4 +1702,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
1702
1702
  type ClientDataFrom<T> = ClientData<DataFrom<T>>;
1703
1703
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
1704
1704
 
1705
- export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type IndexRouteObject as r, type LoaderFunction as s, type ActionFunction as t, type unstable_InitialContext as u, type LinksFunction as v, type NonIndexRouteObject as w, unstable_RouterContextProvider as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
1705
+ export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type RouteModules as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteModule as aR, type History as aS, type ServerDataFrom as aT, type ClientDataFrom as aU, type Func as aV, type unstable_MiddlewareNextFunction as aW, type Pretty as aX, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type Router as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type unstable_InitialContext as r, type IndexRouteObject as s, type LoaderFunction as t, unstable_RouterContextProvider as u, type ActionFunction as v, type LinksFunction as w, type NonIndexRouteObject as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "0.0.0-experimental-23ff92a9d",
3
+ "version": "0.0.0-experimental-35027c3be",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",