react-router 0.0.0-experimental-73e447577 → 0.0.0-experimental-e613d4238
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.
- package/CHANGELOG.md +35 -0
- package/dist/development/{chunk-NKIXC2FA.mjs → chunk-2YVPYFDJ.mjs} +120 -131
- package/dist/development/{chunk-PF7FO4KS.mjs → chunk-5P3HEZQU.mjs} +145 -310
- package/dist/development/{chunk-SOMUQ5BV.js → chunk-XXC4LMW2.js} +265 -154
- package/dist/development/{chunk-WQE2SM7S.js → chunk-YJ6T7YSE.js} +72 -348
- package/dist/development/{router-2BoB34m1.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
- package/dist/development/dom-export.d.mts +4 -59
- package/dist/development/dom-export.d.ts +3 -59
- package/dist/development/dom-export.js +5 -8
- package/dist/development/dom-export.mjs +5 -8
- package/dist/{production/index-react-server-client-BDG19ZQl.d.mts → development/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
- package/dist/development/{index-react-server-client-BDG19ZQl.d.mts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -3
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +1 -106
- package/dist/development/index-react-server.d.ts +1 -106
- package/dist/development/index-react-server.js +12 -182
- package/dist/development/index-react-server.mjs +12 -182
- package/dist/development/index.d.mts +18 -13
- package/dist/development/index.d.ts +16 -13
- package/dist/development/index.js +214 -223
- package/dist/development/index.mjs +5 -3
- package/dist/development/lib/types/internal.d.mts +3 -3
- package/dist/development/lib/types/internal.d.ts +2 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
- package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
- package/dist/development/{routeModules-CtCOLGtG.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
- package/dist/{production/routeModules-Bu1JamQV.d.ts → development/routeModules-BmVo7q9e.d.ts} +1046 -73
- package/dist/production/{chunk-TUGDEB6V.mjs → chunk-5MHETEIL.mjs} +120 -131
- package/dist/production/{chunk-TA3WUUL6.js → chunk-E4G6PZCJ.js} +265 -154
- package/dist/production/{chunk-VRFRIIGI.js → chunk-QBUHFRYZ.js} +72 -348
- package/dist/production/{chunk-YUNRQEIK.mjs → chunk-VNGQS422.mjs} +145 -310
- package/dist/production/{router-2BoB34m1.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
- package/dist/production/dom-export.d.mts +4 -59
- package/dist/production/dom-export.d.ts +3 -59
- package/dist/production/dom-export.js +5 -8
- package/dist/production/dom-export.mjs +5 -8
- package/dist/{development/index-react-server-client-83aVZHgI.d.ts → production/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
- package/dist/production/{index-react-server-client-83aVZHgI.d.ts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -3
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +1 -106
- package/dist/production/index-react-server.d.ts +1 -106
- package/dist/production/index-react-server.js +12 -182
- package/dist/production/index-react-server.mjs +12 -182
- package/dist/production/index.d.mts +18 -13
- package/dist/production/index.d.ts +16 -13
- package/dist/production/index.js +214 -223
- package/dist/production/index.mjs +5 -3
- package/dist/production/lib/types/internal.d.mts +3 -3
- package/dist/production/lib/types/internal.d.ts +2 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
- package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -1
- package/dist/production/{routeModules-CtCOLGtG.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
- package/dist/{development/routeModules-Bu1JamQV.d.ts → production/routeModules-BmVo7q9e.d.ts} +1046 -73
- package/package.json +1 -1
- package/dist/development/instrumentation-XYmrzhe3.d.ts +0 -1138
- package/dist/production/instrumentation-XYmrzhe3.d.ts +0 -1138
package/dist/production/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var _chunkTA3WUUL6js = require('./chunk-TA3WUUL6.js');
|
|
58
57
|
|
|
58
|
+
var _chunkE4G6PZCJjs = require('./chunk-E4G6PZCJ.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
@@ -146,7 +146,8 @@ var _chunkTA3WUUL6js = require('./chunk-TA3WUUL6.js');
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
|
|
150
|
+
var _chunkQBUHFRYZjs = require('./chunk-QBUHFRYZ.js');
|
|
150
151
|
|
|
151
152
|
// lib/dom/ssr/server.tsx
|
|
152
153
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -159,7 +160,7 @@ function ServerRouter({
|
|
|
159
160
|
url = new URL(url);
|
|
160
161
|
}
|
|
161
162
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
162
|
-
let routes =
|
|
163
|
+
let routes = _chunkQBUHFRYZjs.createServerRoutes.call(void 0,
|
|
163
164
|
manifest.routes,
|
|
164
165
|
routeModules,
|
|
165
166
|
context.future,
|
|
@@ -172,7 +173,7 @@ function ServerRouter({
|
|
|
172
173
|
let routeId = match.route.id;
|
|
173
174
|
let route = routeModules[routeId];
|
|
174
175
|
let manifestRoute = context.manifest.routes[routeId];
|
|
175
|
-
if (route && manifestRoute &&
|
|
176
|
+
if (route && manifestRoute && _chunkQBUHFRYZjs.shouldHydrateRouteLoader.call(void 0,
|
|
176
177
|
routeId,
|
|
177
178
|
route.clientLoader,
|
|
178
179
|
manifestRoute.hasLoader,
|
|
@@ -181,9 +182,9 @@ function ServerRouter({
|
|
|
181
182
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
|
-
let router =
|
|
185
|
+
let router = _chunkE4G6PZCJjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
185
186
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
186
|
-
|
|
187
|
+
_chunkQBUHFRYZjs.FrameworkContext.Provider,
|
|
187
188
|
{
|
|
188
189
|
value: {
|
|
189
190
|
manifest,
|
|
@@ -198,8 +199,8 @@ function ServerRouter({
|
|
|
198
199
|
renderMeta: context.renderMeta
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
|
-
/* @__PURE__ */ React.createElement(
|
|
202
|
-
|
|
202
|
+
/* @__PURE__ */ React.createElement(_chunkQBUHFRYZjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
203
|
+
_chunkE4G6PZCJjs.StaticRouterProvider,
|
|
203
204
|
{
|
|
204
205
|
router,
|
|
205
206
|
context: context.staticHandlerContext,
|
|
@@ -207,7 +208,7 @@ function ServerRouter({
|
|
|
207
208
|
}
|
|
208
209
|
))
|
|
209
210
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
210
|
-
|
|
211
|
+
_chunkQBUHFRYZjs.StreamTransfer,
|
|
211
212
|
{
|
|
212
213
|
context,
|
|
213
214
|
identifier: 0,
|
|
@@ -249,18 +250,18 @@ function createRoutesStub(routes, _context) {
|
|
|
249
250
|
let patched = processRoutes(
|
|
250
251
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
251
252
|
// types compared to `AgnosticRouteObject`
|
|
252
|
-
|
|
253
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0,
|
|
253
|
+
_chunkQBUHFRYZjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
254
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkQBUHFRYZjs.RouterContextProvider)() : {},
|
|
254
255
|
frameworkContextRef.current.manifest,
|
|
255
256
|
frameworkContextRef.current.routeModules
|
|
256
257
|
);
|
|
257
|
-
routerRef.current =
|
|
258
|
+
routerRef.current = _chunkE4G6PZCJjs.createMemoryRouter.call(void 0, patched, {
|
|
258
259
|
initialEntries,
|
|
259
260
|
initialIndex,
|
|
260
261
|
hydrationData
|
|
261
262
|
});
|
|
262
263
|
}
|
|
263
|
-
return /* @__PURE__ */ React2.createElement(
|
|
264
|
+
return /* @__PURE__ */ React2.createElement(_chunkQBUHFRYZjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkE4G6PZCJjs.RouterProvider, { router: routerRef.current }));
|
|
264
265
|
};
|
|
265
266
|
}
|
|
266
267
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -274,9 +275,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
274
275
|
id: route.id,
|
|
275
276
|
path: route.path,
|
|
276
277
|
index: route.index,
|
|
277
|
-
Component: route.Component ?
|
|
278
|
-
HydrateFallback: route.HydrateFallback ?
|
|
279
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
278
|
+
Component: route.Component ? _chunkE4G6PZCJjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
279
|
+
HydrateFallback: route.HydrateFallback ? _chunkE4G6PZCJjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
280
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkE4G6PZCJjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
280
281
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
281
282
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
282
283
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -311,7 +312,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
311
312
|
};
|
|
312
313
|
manifest.routes[newRoute.id] = entryRoute;
|
|
313
314
|
routeModules[route.id] = {
|
|
314
|
-
default: newRoute.Component ||
|
|
315
|
+
default: newRoute.Component || _chunkE4G6PZCJjs.Outlet,
|
|
315
316
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
316
317
|
handle: route.handle,
|
|
317
318
|
links: route.links,
|
|
@@ -506,7 +507,7 @@ function myUnescape(value) {
|
|
|
506
507
|
return result;
|
|
507
508
|
}
|
|
508
509
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
509
|
-
|
|
510
|
+
_chunkQBUHFRYZjs.warnOnce.call(void 0,
|
|
510
511
|
!expires,
|
|
511
512
|
`The "${name}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
|
|
512
513
|
);
|
|
@@ -560,7 +561,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
560
561
|
let entries = Object.entries(errors);
|
|
561
562
|
let serialized = {};
|
|
562
563
|
for (let [key, val] of entries) {
|
|
563
|
-
if (
|
|
564
|
+
if (_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, val)) {
|
|
564
565
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
565
566
|
} else if (val instanceof Error) {
|
|
566
567
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -585,7 +586,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
585
586
|
|
|
586
587
|
// lib/server-runtime/routeMatching.ts
|
|
587
588
|
function matchServerRoutes(routes, pathname, basename) {
|
|
588
|
-
let matches =
|
|
589
|
+
let matches = _chunkQBUHFRYZjs.matchRoutes.call(void 0,
|
|
589
590
|
routes,
|
|
590
591
|
pathname,
|
|
591
592
|
basename
|
|
@@ -603,10 +604,9 @@ async function callRouteHandler(handler, args) {
|
|
|
603
604
|
let result = await handler({
|
|
604
605
|
request: stripRoutesParam(stripIndexParam2(args.request)),
|
|
605
606
|
params: args.params,
|
|
606
|
-
context: args.context
|
|
607
|
-
pattern: args.pattern
|
|
607
|
+
context: args.context
|
|
608
608
|
});
|
|
609
|
-
if (
|
|
609
|
+
if (_chunkQBUHFRYZjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkQBUHFRYZjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
610
610
|
throw new Response(null, result.init);
|
|
611
611
|
}
|
|
612
612
|
return result;
|
|
@@ -725,17 +725,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
725
725
|
controller.close();
|
|
726
726
|
}
|
|
727
727
|
});
|
|
728
|
-
let decoded = await
|
|
728
|
+
let decoded = await _chunkQBUHFRYZjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
729
729
|
let data2 = decoded.value;
|
|
730
|
-
if (data2 &&
|
|
731
|
-
let result = data2[
|
|
730
|
+
if (data2 && _chunkQBUHFRYZjs.SingleFetchRedirectSymbol in data2) {
|
|
731
|
+
let result = data2[_chunkQBUHFRYZjs.SingleFetchRedirectSymbol];
|
|
732
732
|
let init = { status: result.status };
|
|
733
733
|
if (result.reload) {
|
|
734
|
-
throw
|
|
734
|
+
throw _chunkQBUHFRYZjs.redirectDocument.call(void 0, result.redirect, init);
|
|
735
735
|
} else if (result.replace) {
|
|
736
|
-
throw
|
|
736
|
+
throw _chunkQBUHFRYZjs.replace.call(void 0, result.redirect, init);
|
|
737
737
|
} else {
|
|
738
|
-
throw
|
|
738
|
+
throw _chunkQBUHFRYZjs.redirect.call(void 0, result.redirect, init);
|
|
739
739
|
}
|
|
740
740
|
} else {
|
|
741
741
|
invariant2(
|
|
@@ -774,7 +774,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
774
774
|
|
|
775
775
|
// lib/server-runtime/serverHandoff.ts
|
|
776
776
|
function createServerHandoffString(serverHandoff) {
|
|
777
|
-
return
|
|
777
|
+
return _chunkQBUHFRYZjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
// lib/server-runtime/headers.ts
|
|
@@ -851,7 +851,7 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
851
851
|
|
|
852
852
|
// lib/server-runtime/single-fetch.ts
|
|
853
853
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
854
|
-
...
|
|
854
|
+
..._chunkQBUHFRYZjs.NO_BODY_STATUS_CODES,
|
|
855
855
|
304
|
|
856
856
|
]);
|
|
857
857
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -881,7 +881,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
881
881
|
return handleQueryError(error);
|
|
882
882
|
}
|
|
883
883
|
function handleQueryResult(result) {
|
|
884
|
-
return
|
|
884
|
+
return _chunkQBUHFRYZjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
885
885
|
}
|
|
886
886
|
function handleQueryError(error) {
|
|
887
887
|
handleError(error);
|
|
@@ -893,12 +893,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
893
893
|
}
|
|
894
894
|
function staticContextToResponse(context) {
|
|
895
895
|
let headers = getDocumentHeaders(context, build);
|
|
896
|
-
if (
|
|
896
|
+
if (_chunkQBUHFRYZjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
897
897
|
return new Response(null, { status: context.statusCode, headers });
|
|
898
898
|
}
|
|
899
899
|
if (context.errors) {
|
|
900
900
|
Object.values(context.errors).forEach((err) => {
|
|
901
|
-
if (!
|
|
901
|
+
if (!_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
902
902
|
handleError(err);
|
|
903
903
|
}
|
|
904
904
|
});
|
|
@@ -945,7 +945,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
945
945
|
return handleQueryError(error);
|
|
946
946
|
}
|
|
947
947
|
function handleQueryResult(result) {
|
|
948
|
-
return
|
|
948
|
+
return _chunkQBUHFRYZjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
949
949
|
}
|
|
950
950
|
function handleQueryError(error) {
|
|
951
951
|
handleError(error);
|
|
@@ -957,12 +957,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
957
957
|
}
|
|
958
958
|
function staticContextToResponse(context) {
|
|
959
959
|
let headers = getDocumentHeaders(context, build);
|
|
960
|
-
if (
|
|
960
|
+
if (_chunkQBUHFRYZjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
961
961
|
return new Response(null, { status: context.statusCode, headers });
|
|
962
962
|
}
|
|
963
963
|
if (context.errors) {
|
|
964
964
|
Object.values(context.errors).forEach((err) => {
|
|
965
|
-
if (!
|
|
965
|
+
if (!_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
966
966
|
handleError(err);
|
|
967
967
|
}
|
|
968
968
|
});
|
|
@@ -1026,15 +1026,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1026
1026
|
headers.delete("Location");
|
|
1027
1027
|
headers.set("Content-Type", "text/x-script");
|
|
1028
1028
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1029
|
-
result: request.method === "GET" ? { [
|
|
1029
|
+
result: request.method === "GET" ? { [_chunkQBUHFRYZjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1030
1030
|
headers,
|
|
1031
|
-
status:
|
|
1031
|
+
status: _chunkQBUHFRYZjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
1034
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1035
1035
|
let redirect2 = headers.get("Location");
|
|
1036
1036
|
if (basename) {
|
|
1037
|
-
redirect2 =
|
|
1037
|
+
redirect2 = _chunkQBUHFRYZjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1038
1038
|
}
|
|
1039
1039
|
return {
|
|
1040
1040
|
redirect: redirect2,
|
|
@@ -1060,7 +1060,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1060
1060
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1061
1061
|
);
|
|
1062
1062
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1063
|
-
return
|
|
1063
|
+
return _chunkQBUHFRYZjs.encode.call(void 0, data2, {
|
|
1064
1064
|
signal: controller.signal,
|
|
1065
1065
|
plugins: [
|
|
1066
1066
|
(value) => {
|
|
@@ -1068,12 +1068,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1068
1068
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1069
1069
|
return ["SanitizedError", name, message, stack];
|
|
1070
1070
|
}
|
|
1071
|
-
if (value instanceof
|
|
1071
|
+
if (value instanceof _chunkQBUHFRYZjs.ErrorResponseImpl) {
|
|
1072
1072
|
let { data: data3, status, statusText } = value;
|
|
1073
1073
|
return ["ErrorResponse", data3, status, statusText];
|
|
1074
1074
|
}
|
|
1075
|
-
if (value && typeof value === "object" &&
|
|
1076
|
-
return ["SingleFetchRedirect", value[
|
|
1075
|
+
if (value && typeof value === "object" && _chunkQBUHFRYZjs.SingleFetchRedirectSymbol in value) {
|
|
1076
|
+
return ["SingleFetchRedirect", value[_chunkQBUHFRYZjs.SingleFetchRedirectSymbol]];
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
],
|
|
@@ -1096,19 +1096,46 @@ function derive(build, mode) {
|
|
|
1096
1096
|
let routes = createRoutes(build.routes);
|
|
1097
1097
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1098
1098
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1099
|
-
let staticHandler =
|
|
1100
|
-
basename: build.basename
|
|
1101
|
-
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1099
|
+
let staticHandler = _chunkQBUHFRYZjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1100
|
+
basename: build.basename
|
|
1102
1101
|
});
|
|
1103
1102
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1104
1103
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1105
1104
|
console.error(
|
|
1106
1105
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1107
|
-
|
|
1106
|
+
_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1108
1107
|
);
|
|
1109
1108
|
}
|
|
1110
1109
|
});
|
|
1111
|
-
|
|
1110
|
+
return {
|
|
1111
|
+
routes,
|
|
1112
|
+
dataRoutes,
|
|
1113
|
+
serverMode,
|
|
1114
|
+
staticHandler,
|
|
1115
|
+
errorHandler
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
var createRequestHandler = (build, mode) => {
|
|
1119
|
+
let _build;
|
|
1120
|
+
let routes;
|
|
1121
|
+
let serverMode;
|
|
1122
|
+
let staticHandler;
|
|
1123
|
+
let errorHandler;
|
|
1124
|
+
return async function requestHandler(request, initialContext) {
|
|
1125
|
+
_build = typeof build === "function" ? await build() : build;
|
|
1126
|
+
if (typeof build === "function") {
|
|
1127
|
+
let derived = derive(_build, mode);
|
|
1128
|
+
routes = derived.routes;
|
|
1129
|
+
serverMode = derived.serverMode;
|
|
1130
|
+
staticHandler = derived.staticHandler;
|
|
1131
|
+
errorHandler = derived.errorHandler;
|
|
1132
|
+
} else if (!routes || !serverMode || !staticHandler || !errorHandler) {
|
|
1133
|
+
let derived = derive(_build, mode);
|
|
1134
|
+
routes = derived.routes;
|
|
1135
|
+
serverMode = derived.serverMode;
|
|
1136
|
+
staticHandler = derived.staticHandler;
|
|
1137
|
+
errorHandler = derived.errorHandler;
|
|
1138
|
+
}
|
|
1112
1139
|
let params = {};
|
|
1113
1140
|
let loadContext;
|
|
1114
1141
|
let handleError = (error) => {
|
|
@@ -1121,37 +1148,37 @@ function derive(build, mode) {
|
|
|
1121
1148
|
request
|
|
1122
1149
|
});
|
|
1123
1150
|
};
|
|
1124
|
-
if (
|
|
1125
|
-
if (initialContext && !(initialContext instanceof
|
|
1151
|
+
if (_build.future.v8_middleware) {
|
|
1152
|
+
if (initialContext && !(initialContext instanceof _chunkQBUHFRYZjs.RouterContextProvider)) {
|
|
1126
1153
|
let error = new Error(
|
|
1127
1154
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1128
1155
|
);
|
|
1129
1156
|
handleError(error);
|
|
1130
1157
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1131
1158
|
}
|
|
1132
|
-
loadContext = initialContext || new (0,
|
|
1159
|
+
loadContext = initialContext || new (0, _chunkQBUHFRYZjs.RouterContextProvider)();
|
|
1133
1160
|
} else {
|
|
1134
1161
|
loadContext = initialContext || {};
|
|
1135
1162
|
}
|
|
1136
1163
|
let url = new URL(request.url);
|
|
1137
|
-
let normalizedBasename =
|
|
1164
|
+
let normalizedBasename = _build.basename || "/";
|
|
1138
1165
|
let normalizedPath = url.pathname;
|
|
1139
|
-
if (
|
|
1166
|
+
if (_chunkQBUHFRYZjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1140
1167
|
normalizedPath = normalizedBasename;
|
|
1141
1168
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1142
1169
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1143
1170
|
}
|
|
1144
|
-
if (
|
|
1171
|
+
if (_chunkQBUHFRYZjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1145
1172
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1146
1173
|
}
|
|
1147
1174
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1148
|
-
if (!
|
|
1175
|
+
if (!_build.ssr) {
|
|
1149
1176
|
let decodedPath = decodeURI(normalizedPath);
|
|
1150
1177
|
if (normalizedBasename !== "/") {
|
|
1151
|
-
let strippedPath =
|
|
1178
|
+
let strippedPath = _chunkQBUHFRYZjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
|
|
1152
1179
|
if (strippedPath == null) {
|
|
1153
1180
|
errorHandler(
|
|
1154
|
-
new (0,
|
|
1181
|
+
new (0, _chunkQBUHFRYZjs.ErrorResponseImpl)(
|
|
1155
1182
|
404,
|
|
1156
1183
|
"Not Found",
|
|
1157
1184
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
|
|
@@ -1169,12 +1196,12 @@ function derive(build, mode) {
|
|
|
1169
1196
|
}
|
|
1170
1197
|
decodedPath = strippedPath;
|
|
1171
1198
|
}
|
|
1172
|
-
if (
|
|
1199
|
+
if (_build.prerender.length === 0) {
|
|
1173
1200
|
isSpaMode = true;
|
|
1174
|
-
} else if (!
|
|
1201
|
+
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1175
1202
|
if (url.pathname.endsWith(".data")) {
|
|
1176
1203
|
errorHandler(
|
|
1177
|
-
new (0,
|
|
1204
|
+
new (0, _chunkQBUHFRYZjs.ErrorResponseImpl)(
|
|
1178
1205
|
404,
|
|
1179
1206
|
"Not Found",
|
|
1180
1207
|
`Refusing to SSR the path \`${decodedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
|
|
@@ -1194,20 +1221,20 @@ function derive(build, mode) {
|
|
|
1194
1221
|
}
|
|
1195
1222
|
}
|
|
1196
1223
|
}
|
|
1197
|
-
let manifestUrl =
|
|
1198
|
-
|
|
1224
|
+
let manifestUrl = _chunkQBUHFRYZjs.getManifestPath.call(void 0,
|
|
1225
|
+
_build.routeDiscovery.manifestPath,
|
|
1199
1226
|
normalizedBasename
|
|
1200
1227
|
);
|
|
1201
1228
|
if (url.pathname === manifestUrl) {
|
|
1202
1229
|
try {
|
|
1203
|
-
let res = await handleManifestRequest(
|
|
1230
|
+
let res = await handleManifestRequest(_build, routes, url);
|
|
1204
1231
|
return res;
|
|
1205
1232
|
} catch (e) {
|
|
1206
1233
|
handleError(e);
|
|
1207
1234
|
return new Response("Unknown Server Error", { status: 500 });
|
|
1208
1235
|
}
|
|
1209
1236
|
}
|
|
1210
|
-
let matches = matchServerRoutes(routes, normalizedPath,
|
|
1237
|
+
let matches = matchServerRoutes(routes, normalizedPath, _build.basename);
|
|
1211
1238
|
if (matches && matches.length > 0) {
|
|
1212
1239
|
Object.assign(params, matches[0].params);
|
|
1213
1240
|
}
|
|
@@ -1218,36 +1245,36 @@ function derive(build, mode) {
|
|
|
1218
1245
|
let singleFetchMatches = matchServerRoutes(
|
|
1219
1246
|
routes,
|
|
1220
1247
|
handlerUrl.pathname,
|
|
1221
|
-
|
|
1248
|
+
_build.basename
|
|
1222
1249
|
);
|
|
1223
1250
|
response = await handleSingleFetchRequest(
|
|
1224
1251
|
serverMode,
|
|
1225
|
-
|
|
1252
|
+
_build,
|
|
1226
1253
|
staticHandler,
|
|
1227
1254
|
request,
|
|
1228
1255
|
handlerUrl,
|
|
1229
1256
|
loadContext,
|
|
1230
1257
|
handleError
|
|
1231
1258
|
);
|
|
1232
|
-
if (
|
|
1259
|
+
if (_chunkQBUHFRYZjs.isRedirectResponse.call(void 0, response)) {
|
|
1233
1260
|
response = generateSingleFetchRedirectResponse(
|
|
1234
1261
|
response,
|
|
1235
1262
|
request,
|
|
1236
|
-
|
|
1263
|
+
_build,
|
|
1237
1264
|
serverMode
|
|
1238
1265
|
);
|
|
1239
1266
|
}
|
|
1240
|
-
if (
|
|
1241
|
-
response = await
|
|
1267
|
+
if (_build.entry.module.handleDataRequest) {
|
|
1268
|
+
response = await _build.entry.module.handleDataRequest(response, {
|
|
1242
1269
|
context: loadContext,
|
|
1243
1270
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1244
1271
|
request
|
|
1245
1272
|
});
|
|
1246
|
-
if (
|
|
1273
|
+
if (_chunkQBUHFRYZjs.isRedirectResponse.call(void 0, response)) {
|
|
1247
1274
|
response = generateSingleFetchRedirectResponse(
|
|
1248
1275
|
response,
|
|
1249
1276
|
request,
|
|
1250
|
-
|
|
1277
|
+
_build,
|
|
1251
1278
|
serverMode
|
|
1252
1279
|
);
|
|
1253
1280
|
}
|
|
@@ -1255,7 +1282,7 @@ function derive(build, mode) {
|
|
|
1255
1282
|
} else if (!isSpaMode && matches && matches[matches.length - 1].route.module.default == null && matches[matches.length - 1].route.module.ErrorBoundary == null) {
|
|
1256
1283
|
response = await handleResourceRequest(
|
|
1257
1284
|
serverMode,
|
|
1258
|
-
|
|
1285
|
+
_build,
|
|
1259
1286
|
staticHandler,
|
|
1260
1287
|
matches.slice(-1)[0].route.id,
|
|
1261
1288
|
request,
|
|
@@ -1265,14 +1292,14 @@ function derive(build, mode) {
|
|
|
1265
1292
|
} else {
|
|
1266
1293
|
let { pathname } = url;
|
|
1267
1294
|
let criticalCss = void 0;
|
|
1268
|
-
if (
|
|
1269
|
-
criticalCss = await
|
|
1295
|
+
if (_build.unstable_getCriticalCss) {
|
|
1296
|
+
criticalCss = await _build.unstable_getCriticalCss({ pathname });
|
|
1270
1297
|
} else if (mode === "development" /* Development */ && _optionalChain([getDevServerHooks, 'call', _10 => _10(), 'optionalAccess', _11 => _11.getCriticalCss])) {
|
|
1271
1298
|
criticalCss = await _optionalChain([getDevServerHooks, 'call', _12 => _12(), 'optionalAccess', _13 => _13.getCriticalCss, 'optionalCall', _14 => _14(pathname)]);
|
|
1272
1299
|
}
|
|
1273
1300
|
response = await handleDocumentRequest(
|
|
1274
1301
|
serverMode,
|
|
1275
|
-
|
|
1302
|
+
_build,
|
|
1276
1303
|
staticHandler,
|
|
1277
1304
|
request,
|
|
1278
1305
|
loadContext,
|
|
@@ -1290,47 +1317,6 @@ function derive(build, mode) {
|
|
|
1290
1317
|
}
|
|
1291
1318
|
return response;
|
|
1292
1319
|
};
|
|
1293
|
-
if (build.entry.module.unstable_instrumentations) {
|
|
1294
|
-
requestHandler = _chunkVRFRIIGIjs.instrumentHandler.call(void 0,
|
|
1295
|
-
requestHandler,
|
|
1296
|
-
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1297
|
-
);
|
|
1298
|
-
}
|
|
1299
|
-
return {
|
|
1300
|
-
routes,
|
|
1301
|
-
dataRoutes,
|
|
1302
|
-
serverMode,
|
|
1303
|
-
staticHandler,
|
|
1304
|
-
errorHandler,
|
|
1305
|
-
requestHandler
|
|
1306
|
-
};
|
|
1307
|
-
}
|
|
1308
|
-
var createRequestHandler = (build, mode) => {
|
|
1309
|
-
let _build;
|
|
1310
|
-
let routes;
|
|
1311
|
-
let serverMode;
|
|
1312
|
-
let staticHandler;
|
|
1313
|
-
let errorHandler;
|
|
1314
|
-
let _requestHandler;
|
|
1315
|
-
return async function requestHandler(request, initialContext) {
|
|
1316
|
-
_build = typeof build === "function" ? await build() : build;
|
|
1317
|
-
if (typeof build === "function") {
|
|
1318
|
-
let derived = derive(_build, mode);
|
|
1319
|
-
routes = derived.routes;
|
|
1320
|
-
serverMode = derived.serverMode;
|
|
1321
|
-
staticHandler = derived.staticHandler;
|
|
1322
|
-
errorHandler = derived.errorHandler;
|
|
1323
|
-
_requestHandler = derived.requestHandler;
|
|
1324
|
-
} else if (!routes || !serverMode || !staticHandler || !errorHandler || !_requestHandler) {
|
|
1325
|
-
let derived = derive(_build, mode);
|
|
1326
|
-
routes = derived.routes;
|
|
1327
|
-
serverMode = derived.serverMode;
|
|
1328
|
-
staticHandler = derived.staticHandler;
|
|
1329
|
-
errorHandler = derived.errorHandler;
|
|
1330
|
-
_requestHandler = derived.requestHandler;
|
|
1331
|
-
}
|
|
1332
|
-
return _requestHandler(request, initialContext);
|
|
1333
|
-
};
|
|
1334
1320
|
};
|
|
1335
1321
|
async function handleManifestRequest(build, routes, url) {
|
|
1336
1322
|
if (build.assets.version !== url.searchParams.get("version")) {
|
|
@@ -1403,7 +1389,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1403
1389
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1404
1390
|
try {
|
|
1405
1391
|
let innerResult = await query(request);
|
|
1406
|
-
if (!
|
|
1392
|
+
if (!_chunkQBUHFRYZjs.isResponse.call(void 0, innerResult)) {
|
|
1407
1393
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1408
1394
|
}
|
|
1409
1395
|
return innerResult;
|
|
@@ -1413,7 +1399,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1413
1399
|
}
|
|
1414
1400
|
} : void 0
|
|
1415
1401
|
});
|
|
1416
|
-
if (!
|
|
1402
|
+
if (!_chunkQBUHFRYZjs.isResponse.call(void 0, result)) {
|
|
1417
1403
|
result = await renderHtml(result, isSpaMode);
|
|
1418
1404
|
}
|
|
1419
1405
|
return result;
|
|
@@ -1428,7 +1414,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1428
1414
|
}
|
|
1429
1415
|
if (context.errors) {
|
|
1430
1416
|
Object.values(context.errors).forEach((err) => {
|
|
1431
|
-
if (!
|
|
1417
|
+
if (!_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1432
1418
|
handleError(err);
|
|
1433
1419
|
}
|
|
1434
1420
|
});
|
|
@@ -1480,10 +1466,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1480
1466
|
} catch (error) {
|
|
1481
1467
|
handleError(error);
|
|
1482
1468
|
let errorForSecondRender = error;
|
|
1483
|
-
if (
|
|
1469
|
+
if (_chunkQBUHFRYZjs.isResponse.call(void 0, error)) {
|
|
1484
1470
|
try {
|
|
1485
1471
|
let data2 = await unwrapResponse(error);
|
|
1486
|
-
errorForSecondRender = new (0,
|
|
1472
|
+
errorForSecondRender = new (0, _chunkQBUHFRYZjs.ErrorResponseImpl)(
|
|
1487
1473
|
error.status,
|
|
1488
1474
|
error.statusText,
|
|
1489
1475
|
data2
|
|
@@ -1491,7 +1477,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1491
1477
|
} catch (e) {
|
|
1492
1478
|
}
|
|
1493
1479
|
}
|
|
1494
|
-
context =
|
|
1480
|
+
context = _chunkQBUHFRYZjs.getStaticContextFromError.call(void 0,
|
|
1495
1481
|
staticHandler.dataRoutes,
|
|
1496
1482
|
context,
|
|
1497
1483
|
errorForSecondRender
|
|
@@ -1550,7 +1536,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1550
1536
|
return handleQueryRouteError(error);
|
|
1551
1537
|
}
|
|
1552
1538
|
function handleQueryRouteResult(result) {
|
|
1553
|
-
if (
|
|
1539
|
+
if (_chunkQBUHFRYZjs.isResponse.call(void 0, result)) {
|
|
1554
1540
|
return result;
|
|
1555
1541
|
}
|
|
1556
1542
|
if (typeof result === "string") {
|
|
@@ -1559,11 +1545,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1559
1545
|
return Response.json(result);
|
|
1560
1546
|
}
|
|
1561
1547
|
function handleQueryRouteError(error) {
|
|
1562
|
-
if (
|
|
1563
|
-
error.headers.set("X-Remix-Catch", "yes");
|
|
1548
|
+
if (_chunkQBUHFRYZjs.isResponse.call(void 0, error)) {
|
|
1564
1549
|
return error;
|
|
1565
1550
|
}
|
|
1566
|
-
if (
|
|
1551
|
+
if (_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1567
1552
|
handleError(error);
|
|
1568
1553
|
return errorResponseToJson(error, serverMode);
|
|
1569
1554
|
}
|
|
@@ -1587,10 +1572,7 @@ function errorResponseToJson(errorResponse, serverMode) {
|
|
|
1587
1572
|
),
|
|
1588
1573
|
{
|
|
1589
1574
|
status: errorResponse.status,
|
|
1590
|
-
statusText: errorResponse.statusText
|
|
1591
|
-
headers: {
|
|
1592
|
-
"X-Remix-Error": "yes"
|
|
1593
|
-
}
|
|
1575
|
+
statusText: errorResponse.statusText
|
|
1594
1576
|
}
|
|
1595
1577
|
);
|
|
1596
1578
|
}
|
|
@@ -1689,7 +1671,7 @@ function createSessionStorage({
|
|
|
1689
1671
|
};
|
|
1690
1672
|
}
|
|
1691
1673
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1692
|
-
|
|
1674
|
+
_chunkQBUHFRYZjs.warnOnce.call(void 0,
|
|
1693
1675
|
cookie.isSigned,
|
|
1694
1676
|
`The "${cookie.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
|
|
1695
1677
|
);
|
|
@@ -1796,12 +1778,12 @@ function getHydrationData({
|
|
|
1796
1778
|
...state,
|
|
1797
1779
|
loaderData: { ...state.loaderData }
|
|
1798
1780
|
};
|
|
1799
|
-
let initialMatches =
|
|
1781
|
+
let initialMatches = _chunkQBUHFRYZjs.matchRoutes.call(void 0, routes, location2, basename);
|
|
1800
1782
|
if (initialMatches) {
|
|
1801
1783
|
for (let match of initialMatches) {
|
|
1802
1784
|
let routeId = match.route.id;
|
|
1803
1785
|
let routeInfo = getRouteInfo(routeId);
|
|
1804
|
-
if (
|
|
1786
|
+
if (_chunkQBUHFRYZjs.shouldHydrateRouteLoader.call(void 0,
|
|
1805
1787
|
routeId,
|
|
1806
1788
|
routeInfo.clientLoader,
|
|
1807
1789
|
routeInfo.hasLoader,
|
|
@@ -1879,7 +1861,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1879
1861
|
}
|
|
1880
1862
|
}
|
|
1881
1863
|
);
|
|
1882
|
-
if (
|
|
1864
|
+
if (_chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1883
1865
|
return /* @__PURE__ */ React.default.createElement(
|
|
1884
1866
|
ErrorWrapper,
|
|
1885
1867
|
{
|
|
@@ -1887,7 +1869,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1887
1869
|
title: "Unhandled Thrown Response!"
|
|
1888
1870
|
},
|
|
1889
1871
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1890
|
-
|
|
1872
|
+
_chunkQBUHFRYZjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1891
1873
|
);
|
|
1892
1874
|
}
|
|
1893
1875
|
let errorInstance;
|
|
@@ -1913,7 +1895,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1913
1895
|
function RSCDefaultRootErrorBoundary({
|
|
1914
1896
|
hasRootLayout
|
|
1915
1897
|
}) {
|
|
1916
|
-
let error =
|
|
1898
|
+
let error = _chunkQBUHFRYZjs.useRouteError.call(void 0, );
|
|
1917
1899
|
if (hasRootLayout === void 0) {
|
|
1918
1900
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1919
1901
|
}
|
|
@@ -1958,7 +1940,7 @@ function createCallServer({
|
|
|
1958
1940
|
return async (id, args) => {
|
|
1959
1941
|
let actionId = globalVar.__routerActionID = (_nullishCoalesce(globalVar.__routerActionID, () => ( (globalVar.__routerActionID = 0)))) + 1;
|
|
1960
1942
|
const temporaryReferences = createTemporaryReferenceSet();
|
|
1961
|
-
const
|
|
1943
|
+
const payloadPromise = fetchImplementation(
|
|
1962
1944
|
new Request(location.href, {
|
|
1963
1945
|
body: await encodeReply(args, { temporaryReferences }),
|
|
1964
1946
|
method: "POST",
|
|
@@ -1967,44 +1949,45 @@ function createCallServer({
|
|
|
1967
1949
|
"rsc-action-id": id
|
|
1968
1950
|
}
|
|
1969
1951
|
})
|
|
1970
|
-
)
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
}
|
|
1974
|
-
const payload = await createFromReadableStream(response.body, {
|
|
1975
|
-
temporaryReferences
|
|
1976
|
-
});
|
|
1977
|
-
if (payload.type === "redirect") {
|
|
1978
|
-
if (payload.reload) {
|
|
1979
|
-
window.location.href = payload.location;
|
|
1980
|
-
return;
|
|
1952
|
+
).then((response) => {
|
|
1953
|
+
if (!response.body) {
|
|
1954
|
+
throw new Error("No response body");
|
|
1981
1955
|
}
|
|
1982
|
-
|
|
1983
|
-
|
|
1956
|
+
return createFromReadableStream(response.body, {
|
|
1957
|
+
temporaryReferences
|
|
1984
1958
|
});
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
1959
|
+
});
|
|
1960
|
+
globalVar.__reactRouterDataRouter.__setPendingRerender(
|
|
1961
|
+
Promise.resolve(payloadPromise).then(async (payload) => {
|
|
1962
|
+
if (payload.type === "redirect") {
|
|
1963
|
+
if (payload.reload || isExternalLocation(payload.location)) {
|
|
1964
|
+
window.location.href = payload.location;
|
|
1965
|
+
return () => {
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
return () => {
|
|
1969
|
+
globalVar.__reactRouterDataRouter.navigate(payload.location, {
|
|
1970
|
+
replace: payload.replace
|
|
1971
|
+
});
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
if (payload.type !== "action") {
|
|
1975
|
+
throw new Error("Unexpected payload type");
|
|
1976
|
+
}
|
|
1977
|
+
const rerender = await payload.rerender;
|
|
1978
|
+
if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {
|
|
1979
|
+
if (rerender.type === "redirect") {
|
|
1980
|
+
if (rerender.reload || isExternalLocation(rerender.location)) {
|
|
1981
|
+
window.location.href = rerender.location;
|
|
1982
|
+
return;
|
|
1983
|
+
}
|
|
1984
|
+
return () => {
|
|
2003
1985
|
globalVar.__reactRouterDataRouter.navigate(rerender.location, {
|
|
2004
1986
|
replace: rerender.replace
|
|
2005
1987
|
});
|
|
2006
|
-
|
|
2007
|
-
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
return () => {
|
|
2008
1991
|
let lastMatch;
|
|
2009
1992
|
for (const match of rerender.matches) {
|
|
2010
1993
|
globalVar.__reactRouterDataRouter.patchRoutes(
|
|
@@ -2015,29 +1998,32 @@ function createCallServer({
|
|
|
2015
1998
|
lastMatch = match;
|
|
2016
1999
|
}
|
|
2017
2000
|
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
|
|
2018
|
-
{
|
|
2001
|
+
{
|
|
2002
|
+
loaderData: Object.assign(
|
|
2003
|
+
{},
|
|
2004
|
+
globalVar.__reactRouterDataRouter.state.loaderData,
|
|
2005
|
+
rerender.loaderData
|
|
2006
|
+
),
|
|
2007
|
+
errors: rerender.errors ? Object.assign(
|
|
2008
|
+
{},
|
|
2009
|
+
globalVar.__reactRouterDataRouter.state.errors,
|
|
2010
|
+
rerender.errors
|
|
2011
|
+
) : null
|
|
2012
|
+
}
|
|
2019
2013
|
);
|
|
2020
|
-
|
|
2021
|
-
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
|
|
2022
|
-
{
|
|
2023
|
-
loaderData: Object.assign(
|
|
2024
|
-
{},
|
|
2025
|
-
globalVar.__reactRouterDataRouter.state.loaderData,
|
|
2026
|
-
rerender.loaderData
|
|
2027
|
-
),
|
|
2028
|
-
errors: rerender.errors ? Object.assign(
|
|
2029
|
-
{},
|
|
2030
|
-
globalVar.__reactRouterDataRouter.state.errors,
|
|
2031
|
-
rerender.errors
|
|
2032
|
-
) : null
|
|
2033
|
-
}
|
|
2034
|
-
);
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2014
|
+
};
|
|
2037
2015
|
}
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2016
|
+
return () => {
|
|
2017
|
+
};
|
|
2018
|
+
}).catch(() => {
|
|
2019
|
+
})
|
|
2020
|
+
);
|
|
2021
|
+
return payloadPromise.then((payload) => {
|
|
2022
|
+
if (payload.type !== "action" && payload.type !== "redirect") {
|
|
2023
|
+
throw new Error("Unexpected payload type");
|
|
2024
|
+
}
|
|
2025
|
+
return payload.actionResult;
|
|
2026
|
+
});
|
|
2041
2027
|
};
|
|
2042
2028
|
}
|
|
2043
2029
|
function createRouterFromPayload({
|
|
@@ -2057,7 +2043,7 @@ function createRouterFromPayload({
|
|
|
2057
2043
|
populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
|
|
2058
2044
|
let patches = /* @__PURE__ */ new Map();
|
|
2059
2045
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
2060
|
-
|
|
2046
|
+
_chunkQBUHFRYZjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
2061
2047
|
if (!patches.has(patch.parentId)) {
|
|
2062
2048
|
patches.set(patch.parentId, []);
|
|
2063
2049
|
}
|
|
@@ -2079,11 +2065,11 @@ function createRouterFromPayload({
|
|
|
2079
2065
|
}
|
|
2080
2066
|
return [route];
|
|
2081
2067
|
}, []);
|
|
2082
|
-
globalVar.__reactRouterDataRouter =
|
|
2068
|
+
globalVar.__reactRouterDataRouter = _chunkQBUHFRYZjs.createRouter.call(void 0, {
|
|
2083
2069
|
routes,
|
|
2084
2070
|
getContext,
|
|
2085
2071
|
basename: payload.basename,
|
|
2086
|
-
history:
|
|
2072
|
+
history: _chunkQBUHFRYZjs.createBrowserHistory.call(void 0, ),
|
|
2087
2073
|
hydrationData: getHydrationData({
|
|
2088
2074
|
state: {
|
|
2089
2075
|
loaderData: payload.loaderData,
|
|
@@ -2093,7 +2079,7 @@ function createRouterFromPayload({
|
|
|
2093
2079
|
routes,
|
|
2094
2080
|
getRouteInfo: (routeId) => {
|
|
2095
2081
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2096
|
-
|
|
2082
|
+
_chunkQBUHFRYZjs.invariant.call(void 0, match, "Route not found in payload");
|
|
2097
2083
|
return {
|
|
2098
2084
|
clientLoader: match.clientLoader,
|
|
2099
2085
|
hasLoader: match.hasLoader,
|
|
@@ -2191,9 +2177,9 @@ function createRouterFromPayload({
|
|
|
2191
2177
|
routeModules: globalVar.__reactRouterRouteModules
|
|
2192
2178
|
};
|
|
2193
2179
|
}
|
|
2194
|
-
var renderedRoutesContext =
|
|
2180
|
+
var renderedRoutesContext = _chunkQBUHFRYZjs.createContext.call(void 0, );
|
|
2195
2181
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2196
|
-
let dataStrategy =
|
|
2182
|
+
let dataStrategy = _chunkQBUHFRYZjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2197
2183
|
getRouter,
|
|
2198
2184
|
(match) => {
|
|
2199
2185
|
let M = match;
|
|
@@ -2247,20 +2233,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2247
2233
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2248
2234
|
return async (args, basename, targetRoutes) => {
|
|
2249
2235
|
let { request, context } = args;
|
|
2250
|
-
let url =
|
|
2236
|
+
let url = _chunkQBUHFRYZjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2251
2237
|
if (request.method === "GET") {
|
|
2252
|
-
url =
|
|
2238
|
+
url = _chunkQBUHFRYZjs.stripIndexParam.call(void 0, url);
|
|
2253
2239
|
if (targetRoutes) {
|
|
2254
2240
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2255
2241
|
}
|
|
2256
2242
|
}
|
|
2257
2243
|
let res = await fetchImplementation(
|
|
2258
|
-
new Request(url, await
|
|
2244
|
+
new Request(url, await _chunkQBUHFRYZjs.createRequestInit.call(void 0, request))
|
|
2259
2245
|
);
|
|
2260
|
-
if (res.status
|
|
2261
|
-
throw new (0,
|
|
2246
|
+
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
2247
|
+
throw new (0, _chunkQBUHFRYZjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
2262
2248
|
}
|
|
2263
|
-
|
|
2249
|
+
_chunkQBUHFRYZjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
2264
2250
|
try {
|
|
2265
2251
|
const payload = await createFromReadableStream(res.body, {
|
|
2266
2252
|
temporaryReferences: void 0
|
|
@@ -2284,7 +2270,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2284
2270
|
}
|
|
2285
2271
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2286
2272
|
let results = { routes: {} };
|
|
2287
|
-
const dataKey =
|
|
2273
|
+
const dataKey = _chunkQBUHFRYZjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2288
2274
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2289
2275
|
results.routes[routeId] = { data: data2 };
|
|
2290
2276
|
}
|
|
@@ -2317,7 +2303,7 @@ function RSCHydratedRouter({
|
|
|
2317
2303
|
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
2318
2304
|
);
|
|
2319
2305
|
React4.useEffect(() => {
|
|
2320
|
-
|
|
2306
|
+
_chunkQBUHFRYZjs.setIsHydrated.call(void 0, );
|
|
2321
2307
|
}, []);
|
|
2322
2308
|
React4.useLayoutEffect(() => {
|
|
2323
2309
|
const globalVar = window;
|
|
@@ -2404,7 +2390,7 @@ function RSCHydratedRouter({
|
|
|
2404
2390
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2405
2391
|
routeModules
|
|
2406
2392
|
};
|
|
2407
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2393
|
+
return /* @__PURE__ */ React4.createElement(_chunkQBUHFRYZjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkQBUHFRYZjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkE4G6PZCJjs.UNSTABLE_TransitionEnabledRouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2408
2394
|
}
|
|
2409
2395
|
function createRouteFromServerManifest(match, payload) {
|
|
2410
2396
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2415,7 +2401,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2415
2401
|
// the server loader flow regardless of whether the client loader calls
|
|
2416
2402
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
2417
2403
|
match.hasComponent && !match.element;
|
|
2418
|
-
|
|
2404
|
+
_chunkQBUHFRYZjs.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
2419
2405
|
populateRSCRouteModules(window.__reactRouterRouteModules, match);
|
|
2420
2406
|
let dataRoute = {
|
|
2421
2407
|
id: match.id,
|
|
@@ -2466,7 +2452,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2466
2452
|
return await callSingleFetch(singleFetch);
|
|
2467
2453
|
}
|
|
2468
2454
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2469
|
-
throw
|
|
2455
|
+
throw _chunkQBUHFRYZjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
2470
2456
|
},
|
|
2471
2457
|
path: match.path,
|
|
2472
2458
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2479,7 +2465,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2479
2465
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2480
2466
|
};
|
|
2481
2467
|
if (typeof dataRoute.loader === "function") {
|
|
2482
|
-
dataRoute.loader.hydrate =
|
|
2468
|
+
dataRoute.loader.hydrate = _chunkQBUHFRYZjs.shouldHydrateRouteLoader.call(void 0,
|
|
2483
2469
|
match.id,
|
|
2484
2470
|
match.clientLoader,
|
|
2485
2471
|
match.hasLoader,
|
|
@@ -2489,7 +2475,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2489
2475
|
return dataRoute;
|
|
2490
2476
|
}
|
|
2491
2477
|
function callSingleFetch(singleFetch) {
|
|
2492
|
-
|
|
2478
|
+
_chunkQBUHFRYZjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2493
2479
|
return singleFetch();
|
|
2494
2480
|
}
|
|
2495
2481
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2497,7 +2483,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2497
2483
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2498
2484
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2499
2485
|
console.error(msg);
|
|
2500
|
-
throw new (0,
|
|
2486
|
+
throw new (0, _chunkQBUHFRYZjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2501
2487
|
}
|
|
2502
2488
|
}
|
|
2503
2489
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2561,6 +2547,10 @@ function debounce(callback, wait) {
|
|
|
2561
2547
|
timeoutId = window.setTimeout(() => callback(...args), wait);
|
|
2562
2548
|
};
|
|
2563
2549
|
}
|
|
2550
|
+
function isExternalLocation(location2) {
|
|
2551
|
+
const newLocation = new URL(location2, window.location.href);
|
|
2552
|
+
return newLocation.origin !== window.location.origin;
|
|
2553
|
+
}
|
|
2564
2554
|
|
|
2565
2555
|
// lib/rsc/server.ssr.tsx
|
|
2566
2556
|
|
|
@@ -2741,12 +2731,12 @@ async function routeRSCServerRequest({
|
|
|
2741
2731
|
const payload = await createFromReadableStream(
|
|
2742
2732
|
detectRedirectResponse.body
|
|
2743
2733
|
);
|
|
2744
|
-
if (serverResponse.status ===
|
|
2734
|
+
if (serverResponse.status === _chunkQBUHFRYZjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2745
2735
|
const headers2 = new Headers(serverResponse.headers);
|
|
2746
2736
|
headers2.delete("Content-Encoding");
|
|
2747
2737
|
headers2.delete("Content-Length");
|
|
2748
2738
|
headers2.delete("Content-Type");
|
|
2749
|
-
headers2.delete("
|
|
2739
|
+
headers2.delete("X-Remix-Response");
|
|
2750
2740
|
headers2.set("Location", payload.location);
|
|
2751
2741
|
return new Response(_optionalChain([serverResponseB, 'optionalAccess', _37 => _37.body]) || "", {
|
|
2752
2742
|
headers: headers2,
|
|
@@ -2776,7 +2766,7 @@ async function routeRSCServerRequest({
|
|
|
2776
2766
|
return reason;
|
|
2777
2767
|
}
|
|
2778
2768
|
try {
|
|
2779
|
-
const status =
|
|
2769
|
+
const status = _chunkQBUHFRYZjs.isRouteErrorResponse.call(void 0, reason) ? reason.status : 500;
|
|
2780
2770
|
const html = await renderHTML(() => {
|
|
2781
2771
|
const decoded = Promise.resolve(
|
|
2782
2772
|
createFromReadableStream(createStream())
|
|
@@ -2842,7 +2832,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2842
2832
|
if (payload.type !== "render") return null;
|
|
2843
2833
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2844
2834
|
for (const match of payload.matches) {
|
|
2845
|
-
if (
|
|
2835
|
+
if (_chunkQBUHFRYZjs.shouldHydrateRouteLoader.call(void 0,
|
|
2846
2836
|
match.id,
|
|
2847
2837
|
match.clientLoader,
|
|
2848
2838
|
match.hasLoader,
|
|
@@ -2882,7 +2872,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2882
2872
|
}
|
|
2883
2873
|
}))
|
|
2884
2874
|
};
|
|
2885
|
-
const router =
|
|
2875
|
+
const router = _chunkE4G6PZCJjs.createStaticRouter.call(void 0,
|
|
2886
2876
|
payload.matches.reduceRight((previous, match) => {
|
|
2887
2877
|
const route = {
|
|
2888
2878
|
id: match.id,
|
|
@@ -2926,8 +2916,8 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2926
2916
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2927
2917
|
routeModules: createRSCRouteModules(payload)
|
|
2928
2918
|
};
|
|
2929
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2930
|
-
|
|
2919
|
+
return /* @__PURE__ */ React5.createElement(_chunkQBUHFRYZjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkQBUHFRYZjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2920
|
+
_chunkE4G6PZCJjs.StaticRouterProvider,
|
|
2931
2921
|
{
|
|
2932
2922
|
context,
|
|
2933
2923
|
router,
|
|
@@ -2985,7 +2975,7 @@ function deserializeErrors(errors) {
|
|
|
2985
2975
|
let serialized = {};
|
|
2986
2976
|
for (let [key, val] of entries) {
|
|
2987
2977
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2988
|
-
serialized[key] = new (0,
|
|
2978
|
+
serialized[key] = new (0, _chunkQBUHFRYZjs.ErrorResponseImpl)(
|
|
2989
2979
|
val.status,
|
|
2990
2980
|
val.statusText,
|
|
2991
2981
|
val.data,
|
|
@@ -3144,4 +3134,5 @@ function deserializeErrors(errors) {
|
|
|
3144
3134
|
|
|
3145
3135
|
|
|
3146
3136
|
|
|
3147
|
-
|
|
3137
|
+
|
|
3138
|
+
exports.Await = _chunkE4G6PZCJjs.Await; exports.BrowserRouter = _chunkE4G6PZCJjs.BrowserRouter; exports.Form = _chunkE4G6PZCJjs.Form; exports.HashRouter = _chunkE4G6PZCJjs.HashRouter; exports.IDLE_BLOCKER = _chunkQBUHFRYZjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkQBUHFRYZjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkQBUHFRYZjs.IDLE_NAVIGATION; exports.Link = _chunkE4G6PZCJjs.Link; exports.Links = _chunkQBUHFRYZjs.Links; exports.MemoryRouter = _chunkE4G6PZCJjs.MemoryRouter; exports.Meta = _chunkQBUHFRYZjs.Meta; exports.NavLink = _chunkE4G6PZCJjs.NavLink; exports.Navigate = _chunkE4G6PZCJjs.Navigate; exports.NavigationType = _chunkQBUHFRYZjs.Action; exports.Outlet = _chunkE4G6PZCJjs.Outlet; exports.PrefetchPageLinks = _chunkQBUHFRYZjs.PrefetchPageLinks; exports.Route = _chunkE4G6PZCJjs.Route; exports.Router = _chunkE4G6PZCJjs.Router; exports.RouterContextProvider = _chunkQBUHFRYZjs.RouterContextProvider; exports.RouterProvider = _chunkE4G6PZCJjs.RouterProvider; exports.Routes = _chunkE4G6PZCJjs.Routes; exports.Scripts = _chunkQBUHFRYZjs.Scripts; exports.ScrollRestoration = _chunkE4G6PZCJjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkE4G6PZCJjs.StaticRouter; exports.StaticRouterProvider = _chunkE4G6PZCJjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkQBUHFRYZjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkQBUHFRYZjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkQBUHFRYZjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkQBUHFRYZjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkQBUHFRYZjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkQBUHFRYZjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkQBUHFRYZjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkQBUHFRYZjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkQBUHFRYZjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkQBUHFRYZjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkQBUHFRYZjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkQBUHFRYZjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkE4G6PZCJjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkE4G6PZCJjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkE4G6PZCJjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkQBUHFRYZjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkQBUHFRYZjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkQBUHFRYZjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkQBUHFRYZjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkQBUHFRYZjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkQBUHFRYZjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkQBUHFRYZjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkE4G6PZCJjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkQBUHFRYZjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkE4G6PZCJjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkQBUHFRYZjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkQBUHFRYZjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkE4G6PZCJjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkE4G6PZCJjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkE4G6PZCJjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkE4G6PZCJjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkE4G6PZCJjs.createBrowserRouter; exports.createContext = _chunkQBUHFRYZjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkE4G6PZCJjs.createHashRouter; exports.createMemoryRouter = _chunkE4G6PZCJjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkQBUHFRYZjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkE4G6PZCJjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkE4G6PZCJjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkE4G6PZCJjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkE4G6PZCJjs.createStaticHandler; exports.createStaticRouter = _chunkE4G6PZCJjs.createStaticRouter; exports.data = _chunkQBUHFRYZjs.data; exports.generatePath = _chunkQBUHFRYZjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkQBUHFRYZjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkQBUHFRYZjs.matchPath; exports.matchRoutes = _chunkQBUHFRYZjs.matchRoutes; exports.parsePath = _chunkQBUHFRYZjs.parsePath; exports.redirect = _chunkQBUHFRYZjs.redirect; exports.redirectDocument = _chunkQBUHFRYZjs.redirectDocument; exports.renderMatches = _chunkE4G6PZCJjs.renderMatches; exports.replace = _chunkQBUHFRYZjs.replace; exports.resolvePath = _chunkQBUHFRYZjs.resolvePath; exports.unstable_HistoryRouter = _chunkE4G6PZCJjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkE4G6PZCJjs.usePrompt; exports.useActionData = _chunkQBUHFRYZjs.useActionData; exports.useAsyncError = _chunkQBUHFRYZjs.useAsyncError; exports.useAsyncValue = _chunkQBUHFRYZjs.useAsyncValue; exports.useBeforeUnload = _chunkE4G6PZCJjs.useBeforeUnload; exports.useBlocker = _chunkQBUHFRYZjs.useBlocker; exports.useFetcher = _chunkE4G6PZCJjs.useFetcher; exports.useFetchers = _chunkE4G6PZCJjs.useFetchers; exports.useFormAction = _chunkE4G6PZCJjs.useFormAction; exports.useHref = _chunkQBUHFRYZjs.useHref; exports.useInRouterContext = _chunkQBUHFRYZjs.useInRouterContext; exports.useLinkClickHandler = _chunkE4G6PZCJjs.useLinkClickHandler; exports.useLoaderData = _chunkQBUHFRYZjs.useLoaderData; exports.useLocation = _chunkQBUHFRYZjs.useLocation; exports.useMatch = _chunkQBUHFRYZjs.useMatch; exports.useMatches = _chunkQBUHFRYZjs.useMatches; exports.useNavigate = _chunkQBUHFRYZjs.useNavigate; exports.useNavigation = _chunkQBUHFRYZjs.useNavigation; exports.useNavigationType = _chunkQBUHFRYZjs.useNavigationType; exports.useOutlet = _chunkQBUHFRYZjs.useOutlet; exports.useOutletContext = _chunkQBUHFRYZjs.useOutletContext; exports.useParams = _chunkQBUHFRYZjs.useParams; exports.useResolvedPath = _chunkQBUHFRYZjs.useResolvedPath; exports.useRevalidator = _chunkQBUHFRYZjs.useRevalidator; exports.useRoute = _chunkQBUHFRYZjs.useRoute; exports.useRouteError = _chunkQBUHFRYZjs.useRouteError; exports.useRouteLoaderData = _chunkQBUHFRYZjs.useRouteLoaderData; exports.useRoutes = _chunkQBUHFRYZjs.useRoutes; exports.useSearchParams = _chunkE4G6PZCJjs.useSearchParams; exports.useSubmit = _chunkE4G6PZCJjs.useSubmit; exports.useViewTransitionState = _chunkE4G6PZCJjs.useViewTransitionState;
|