react-router 7.18.6 → 7.18.7
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 +14 -0
- package/dist/development/{browser-7x6a6gQP.d.ts → browser-QWJf_b8Q.d.ts} +2 -2
- package/dist/development/{browser-CiGxXXOl.d.mts → browser-yuOIt-hO.d.mts} +2 -2
- package/dist/{production/chunk-2WUBOUFU.js → development/chunk-6VUODQWR.js} +105 -105
- package/dist/development/{chunk-S47XUPN5.js → chunk-EYW3HBBI.js} +12 -2
- package/dist/{production/chunk-3IBQ4CTZ.js → development/chunk-FLL7MJ4N.js} +7 -7
- package/dist/{production/chunk-JRCXCPLA.mjs → development/chunk-IXMWVLYF.mjs} +2 -2
- package/dist/development/{chunk-YDNE64FV.mjs → chunk-Z7SQORRT.mjs} +13 -3
- package/dist/{production/context-BlYKn1tE.d.mts → development/context-BbKau8k8.d.mts} +1 -1
- package/dist/development/{data-DEjBmEfD.d.mts → data-BfpvlkTw.d.mts} +2 -0
- package/dist/{production/data-CjO11-hU.d.ts → development/data-DNyB6ouY.d.ts} +2 -0
- package/dist/development/dom-export.d.mts +3 -3
- package/dist/development/dom-export.d.ts +3 -3
- package/dist/development/dom-export.js +35 -35
- package/dist/development/dom-export.mjs +4 -4
- package/dist/development/{index-react-server-client-KK-TR-t7.d.mts → index-react-server-client-DF1LPF_n.d.mts} +2 -2
- package/dist/development/{index-react-server-client-BaaZU3sM.d.ts → index-react-server-client-DxC4rwQS.d.ts} +2 -2
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +3 -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.js +59 -57
- package/dist/development/index-react-server.mjs +59 -57
- package/dist/development/index.d.mts +10 -10
- package/dist/development/index.d.ts +10 -10
- package/dist/development/index.js +92 -92
- package/dist/development/index.mjs +3 -3
- package/dist/{production/instrumentation-CPkMwccd.d.ts → development/instrumentation-z0GQ7yJ2.d.ts} +1 -1
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-CmkRspdl.d.mts → register-B8pHflrz.d.mts} +1 -1
- package/dist/development/{register-roq_0qYo.d.ts → register-Dnr_kGGI.d.ts} +1 -1
- package/dist/production/{browser-7x6a6gQP.d.ts → browser-QWJf_b8Q.d.ts} +2 -2
- package/dist/production/{browser-CiGxXXOl.d.mts → browser-yuOIt-hO.d.mts} +2 -2
- package/dist/{development/chunk-QM7ETCUK.js → production/chunk-6AFDAMLF.js} +105 -105
- package/dist/{development/chunk-E2PF4K4Z.mjs → production/chunk-D2GT6IUW.mjs} +2 -2
- package/dist/production/{chunk-AC65NKOP.js → chunk-JAAIXHP6.js} +12 -2
- package/dist/production/{chunk-HEAXLYUI.mjs → chunk-OCNYVWSN.mjs} +13 -3
- package/dist/{development/chunk-3QTLHDUO.js → production/chunk-RFC7P4DG.js} +7 -7
- package/dist/{development/context-BlYKn1tE.d.mts → production/context-BbKau8k8.d.mts} +1 -1
- package/dist/production/{data-DEjBmEfD.d.mts → data-BfpvlkTw.d.mts} +2 -0
- package/dist/{development/data-CjO11-hU.d.ts → production/data-DNyB6ouY.d.ts} +2 -0
- package/dist/production/dom-export.d.mts +3 -3
- package/dist/production/dom-export.d.ts +3 -3
- package/dist/production/dom-export.js +35 -35
- package/dist/production/dom-export.mjs +4 -4
- package/dist/production/{index-react-server-client-KK-TR-t7.d.mts → index-react-server-client-DF1LPF_n.d.mts} +2 -2
- package/dist/production/{index-react-server-client-BaaZU3sM.d.ts → index-react-server-client-DxC4rwQS.d.ts} +2 -2
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +3 -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.js +59 -57
- package/dist/production/index-react-server.mjs +59 -57
- package/dist/production/index.d.mts +10 -10
- package/dist/production/index.d.ts +10 -10
- package/dist/production/index.js +92 -92
- package/dist/production/index.mjs +3 -3
- package/dist/{development/instrumentation-CPkMwccd.d.ts → production/instrumentation-z0GQ7yJ2.d.ts} +1 -1
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{register-CmkRspdl.d.mts → register-B8pHflrz.d.mts} +1 -1
- package/dist/production/{register-roq_0qYo.d.ts → register-Dnr_kGGI.d.ts} +1 -1
- package/package.json +5 -1
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 v7.18.
|
|
2
|
+
* react-router v7.18.7
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkRFC7P4DGjs = require('./chunk-RFC7P4DG.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunk3IBQ4CTZjs = require('./chunk-3IBQ4CTZ.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk6AFDAMLFjs = require('./chunk-6AFDAMLF.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -158,7 +158,7 @@ var _chunk2WUBOUFUjs = require('./chunk-2WUBOUFU.js');
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
var
|
|
161
|
+
var _chunkJAAIXHP6js = require('./chunk-JAAIXHP6.js');
|
|
162
162
|
|
|
163
163
|
// lib/dom/ssr/server.tsx
|
|
164
164
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -171,7 +171,7 @@ function ServerRouter({
|
|
|
171
171
|
url = new URL(url);
|
|
172
172
|
}
|
|
173
173
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
174
|
-
let routes =
|
|
174
|
+
let routes = _chunkJAAIXHP6js.createServerRoutes.call(void 0,
|
|
175
175
|
manifest.routes,
|
|
176
176
|
routeModules,
|
|
177
177
|
context.future,
|
|
@@ -184,7 +184,7 @@ function ServerRouter({
|
|
|
184
184
|
let routeId = match.route.id;
|
|
185
185
|
let route = routeModules[routeId];
|
|
186
186
|
let manifestRoute = context.manifest.routes[routeId];
|
|
187
|
-
if (route && manifestRoute &&
|
|
187
|
+
if (route && manifestRoute && _chunkJAAIXHP6js.shouldHydrateRouteLoader.call(void 0,
|
|
188
188
|
routeId,
|
|
189
189
|
route.clientLoader,
|
|
190
190
|
manifestRoute.hasLoader,
|
|
@@ -193,11 +193,11 @@ function ServerRouter({
|
|
|
193
193
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
let router =
|
|
196
|
+
let router = _chunk6AFDAMLFjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext, {
|
|
197
197
|
branches: context.branches
|
|
198
198
|
});
|
|
199
199
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
200
|
-
|
|
200
|
+
_chunkJAAIXHP6js.FrameworkContext.Provider,
|
|
201
201
|
{
|
|
202
202
|
value: {
|
|
203
203
|
manifest,
|
|
@@ -213,8 +213,8 @@ function ServerRouter({
|
|
|
213
213
|
renderMeta: context.renderMeta
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
|
-
/* @__PURE__ */ React.createElement(
|
|
217
|
-
|
|
216
|
+
/* @__PURE__ */ React.createElement(_chunkJAAIXHP6js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
217
|
+
_chunk6AFDAMLFjs.StaticRouterProvider,
|
|
218
218
|
{
|
|
219
219
|
router,
|
|
220
220
|
context: context.staticHandlerContext,
|
|
@@ -222,7 +222,7 @@ function ServerRouter({
|
|
|
222
222
|
}
|
|
223
223
|
))
|
|
224
224
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
225
|
-
|
|
225
|
+
_chunkJAAIXHP6js.StreamTransfer,
|
|
226
226
|
{
|
|
227
227
|
context,
|
|
228
228
|
identifier: 0,
|
|
@@ -265,18 +265,18 @@ function createRoutesStub(routes, _context) {
|
|
|
265
265
|
let patched = processRoutes(
|
|
266
266
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
267
267
|
// types compared to `RouteObject`
|
|
268
|
-
|
|
269
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0,
|
|
268
|
+
_chunkJAAIXHP6js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
269
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0, _chunkJAAIXHP6js.RouterContextProvider)() : {},
|
|
270
270
|
frameworkContextRef.current.manifest,
|
|
271
271
|
frameworkContextRef.current.routeModules
|
|
272
272
|
);
|
|
273
|
-
routerRef.current =
|
|
273
|
+
routerRef.current = _chunkJAAIXHP6js.createMemoryRouter.call(void 0, patched, {
|
|
274
274
|
initialEntries,
|
|
275
275
|
initialIndex,
|
|
276
276
|
hydrationData
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
return /* @__PURE__ */ React2.createElement(
|
|
279
|
+
return /* @__PURE__ */ React2.createElement(_chunkJAAIXHP6js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkJAAIXHP6js.RouterProvider, { router: routerRef.current }));
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -290,9 +290,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
290
290
|
id: route.id,
|
|
291
291
|
path: route.path,
|
|
292
292
|
index: route.index,
|
|
293
|
-
Component: route.Component ?
|
|
294
|
-
HydrateFallback: route.HydrateFallback ?
|
|
295
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
293
|
+
Component: route.Component ? _chunkJAAIXHP6js.withComponentProps.call(void 0, route.Component) : void 0,
|
|
294
|
+
HydrateFallback: route.HydrateFallback ? _chunkJAAIXHP6js.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
295
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkJAAIXHP6js.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
296
296
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
297
297
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
298
298
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -327,7 +327,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
327
327
|
};
|
|
328
328
|
manifest.routes[newRoute.id] = entryRoute;
|
|
329
329
|
routeModules[route.id] = {
|
|
330
|
-
default: newRoute.Component ||
|
|
330
|
+
default: newRoute.Component || _chunkJAAIXHP6js.Outlet,
|
|
331
331
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
332
332
|
handle: route.handle,
|
|
333
333
|
links: route.links,
|
|
@@ -522,7 +522,7 @@ function myUnescape(value) {
|
|
|
522
522
|
return result;
|
|
523
523
|
}
|
|
524
524
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
525
|
-
|
|
525
|
+
_chunkJAAIXHP6js.warnOnce.call(void 0,
|
|
526
526
|
!expires,
|
|
527
527
|
`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.`
|
|
528
528
|
);
|
|
@@ -584,7 +584,7 @@ function invariant2(value, message) {
|
|
|
584
584
|
|
|
585
585
|
// lib/server-runtime/routeMatching.ts
|
|
586
586
|
function matchServerRoutes(manifest, dataRoutes, branches, pathname, basename) {
|
|
587
|
-
let matches =
|
|
587
|
+
let matches = _chunkJAAIXHP6js.matchRoutesImpl.call(void 0,
|
|
588
588
|
dataRoutes,
|
|
589
589
|
pathname,
|
|
590
590
|
_nullishCoalesce(basename, () => ( "/")),
|
|
@@ -615,7 +615,7 @@ async function callRouteHandler(handler, args, future) {
|
|
|
615
615
|
context: args.context,
|
|
616
616
|
pattern: args.pattern
|
|
617
617
|
});
|
|
618
|
-
if (
|
|
618
|
+
if (_chunkJAAIXHP6js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkJAAIXHP6js.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
619
619
|
throw new Response(null, result.init);
|
|
620
620
|
}
|
|
621
621
|
return result;
|
|
@@ -718,17 +718,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
718
718
|
controller.close();
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
|
-
let decoded = await
|
|
721
|
+
let decoded = await _chunkJAAIXHP6js.decodeViaTurboStream.call(void 0, stream, global);
|
|
722
722
|
let data2 = decoded.value;
|
|
723
|
-
if (data2 &&
|
|
724
|
-
let result = data2[
|
|
723
|
+
if (data2 && _chunkJAAIXHP6js.SingleFetchRedirectSymbol in data2) {
|
|
724
|
+
let result = data2[_chunkJAAIXHP6js.SingleFetchRedirectSymbol];
|
|
725
725
|
let init = { status: result.status };
|
|
726
726
|
if (result.reload) {
|
|
727
|
-
throw
|
|
727
|
+
throw _chunkJAAIXHP6js.redirectDocument.call(void 0, result.redirect, init);
|
|
728
728
|
} else if (result.replace) {
|
|
729
|
-
throw
|
|
729
|
+
throw _chunkJAAIXHP6js.replace.call(void 0, result.redirect, init);
|
|
730
730
|
} else {
|
|
731
|
-
throw
|
|
731
|
+
throw _chunkJAAIXHP6js.redirect.call(void 0, result.redirect, init);
|
|
732
732
|
}
|
|
733
733
|
} else {
|
|
734
734
|
invariant2(
|
|
@@ -771,7 +771,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
771
771
|
|
|
772
772
|
// lib/server-runtime/serverHandoff.ts
|
|
773
773
|
function createServerHandoffString(serverHandoff) {
|
|
774
|
-
return
|
|
774
|
+
return _chunkJAAIXHP6js.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
// lib/server-runtime/headers.ts
|
|
@@ -930,12 +930,12 @@ function getNormalizedPath(request, basename, future) {
|
|
|
930
930
|
pathname = pathname.replace(/\.data$/, "");
|
|
931
931
|
}
|
|
932
932
|
} else {
|
|
933
|
-
if (
|
|
933
|
+
if (_chunkJAAIXHP6js.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
|
|
934
934
|
pathname = basename;
|
|
935
935
|
} else if (pathname.endsWith(".data")) {
|
|
936
936
|
pathname = pathname.replace(/\.data$/, "");
|
|
937
937
|
}
|
|
938
|
-
if (
|
|
938
|
+
if (_chunkJAAIXHP6js.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
939
939
|
pathname = pathname.slice(0, -1);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
@@ -955,7 +955,7 @@ function getNormalizedPath(request, basename, future) {
|
|
|
955
955
|
|
|
956
956
|
// lib/server-runtime/single-fetch.ts
|
|
957
957
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
958
|
-
...
|
|
958
|
+
..._chunkJAAIXHP6js.NO_BODY_STATUS_CODES,
|
|
959
959
|
304
|
|
960
960
|
]);
|
|
961
961
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -996,7 +996,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
996
996
|
return handleQueryError(error);
|
|
997
997
|
}
|
|
998
998
|
function handleQueryResult(result) {
|
|
999
|
-
return
|
|
999
|
+
return _chunkJAAIXHP6js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1000
1000
|
}
|
|
1001
1001
|
function handleQueryError(error, status = 500) {
|
|
1002
1002
|
handleError(error);
|
|
@@ -1008,12 +1008,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
1008
1008
|
}
|
|
1009
1009
|
function staticContextToResponse(context) {
|
|
1010
1010
|
let headers = getDocumentHeaders(context, build);
|
|
1011
|
-
if (
|
|
1011
|
+
if (_chunkJAAIXHP6js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1012
1012
|
return new Response(null, { status: context.statusCode, headers });
|
|
1013
1013
|
}
|
|
1014
1014
|
if (context.errors) {
|
|
1015
1015
|
Object.values(context.errors).forEach((err) => {
|
|
1016
|
-
if (!
|
|
1016
|
+
if (!_chunkJAAIXHP6js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1017
1017
|
handleError(err);
|
|
1018
1018
|
}
|
|
1019
1019
|
});
|
|
@@ -1063,7 +1063,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1063
1063
|
return handleQueryError(error);
|
|
1064
1064
|
}
|
|
1065
1065
|
function handleQueryResult(result) {
|
|
1066
|
-
return
|
|
1066
|
+
return _chunkJAAIXHP6js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1067
1067
|
}
|
|
1068
1068
|
function handleQueryError(error) {
|
|
1069
1069
|
handleError(error);
|
|
@@ -1075,12 +1075,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1075
1075
|
}
|
|
1076
1076
|
function staticContextToResponse(context) {
|
|
1077
1077
|
let headers = getDocumentHeaders(context, build);
|
|
1078
|
-
if (
|
|
1078
|
+
if (_chunkJAAIXHP6js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1079
1079
|
return new Response(null, { status: context.statusCode, headers });
|
|
1080
1080
|
}
|
|
1081
1081
|
if (context.errors) {
|
|
1082
1082
|
Object.values(context.errors).forEach((err) => {
|
|
1083
|
-
if (!
|
|
1083
|
+
if (!_chunkJAAIXHP6js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1084
1084
|
handleError(err);
|
|
1085
1085
|
}
|
|
1086
1086
|
});
|
|
@@ -1144,15 +1144,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1144
1144
|
headers.delete("Location");
|
|
1145
1145
|
headers.set("Content-Type", "text/x-script");
|
|
1146
1146
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1147
|
-
result: request.method === "GET" ? { [
|
|
1147
|
+
result: request.method === "GET" ? { [_chunkJAAIXHP6js.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1148
1148
|
headers,
|
|
1149
|
-
status:
|
|
1149
|
+
status: _chunkJAAIXHP6js.SINGLE_FETCH_REDIRECT_STATUS
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
1152
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1153
1153
|
let redirect2 = headers.get("Location");
|
|
1154
1154
|
if (basename) {
|
|
1155
|
-
redirect2 =
|
|
1155
|
+
redirect2 = _chunkJAAIXHP6js.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1156
1156
|
}
|
|
1157
1157
|
return {
|
|
1158
1158
|
redirect: redirect2,
|
|
@@ -1189,7 +1189,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1189
1189
|
clearTimeout(timeoutId);
|
|
1190
1190
|
requestSignal.removeEventListener("abort", abortControllerOnRequestAbort);
|
|
1191
1191
|
};
|
|
1192
|
-
return
|
|
1192
|
+
return _chunkJAAIXHP6js.encode.call(void 0, data2, {
|
|
1193
1193
|
signal: controller.signal,
|
|
1194
1194
|
onComplete: cleanupCallbacks,
|
|
1195
1195
|
plugins: [
|
|
@@ -1198,12 +1198,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1198
1198
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1199
1199
|
return ["SanitizedError", name, message, stack];
|
|
1200
1200
|
}
|
|
1201
|
-
if (value instanceof
|
|
1201
|
+
if (value instanceof _chunkJAAIXHP6js.ErrorResponseImpl) {
|
|
1202
1202
|
let { data: data3, status, statusText } = value;
|
|
1203
1203
|
return ["ErrorResponse", data3, status, statusText];
|
|
1204
1204
|
}
|
|
1205
|
-
if (value && typeof value === "object" &&
|
|
1206
|
-
return ["SingleFetchRedirect", value[
|
|
1205
|
+
if (value && typeof value === "object" && _chunkJAAIXHP6js.SingleFetchRedirectSymbol in value) {
|
|
1206
|
+
return ["SingleFetchRedirect", value[_chunkJAAIXHP6js.SingleFetchRedirectSymbol]];
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
1209
|
],
|
|
@@ -1225,7 +1225,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1225
1225
|
function derive(build, mode) {
|
|
1226
1226
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1227
1227
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1228
|
-
let staticHandler =
|
|
1228
|
+
let staticHandler = _chunkJAAIXHP6js.createStaticHandler.call(void 0, dataRoutes, {
|
|
1229
1229
|
basename: build.basename,
|
|
1230
1230
|
instrumentations: build.entry.module.instrumentations,
|
|
1231
1231
|
future: build.future
|
|
@@ -1234,7 +1234,7 @@ function derive(build, mode) {
|
|
|
1234
1234
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1235
1235
|
console.error(
|
|
1236
1236
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1237
|
-
|
|
1237
|
+
_chunkJAAIXHP6js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1238
1238
|
);
|
|
1239
1239
|
}
|
|
1240
1240
|
});
|
|
@@ -1252,14 +1252,14 @@ function derive(build, mode) {
|
|
|
1252
1252
|
});
|
|
1253
1253
|
};
|
|
1254
1254
|
if (build.future.v8_middleware) {
|
|
1255
|
-
if (initialContext && !(initialContext instanceof
|
|
1255
|
+
if (initialContext && !(initialContext instanceof _chunkJAAIXHP6js.RouterContextProvider)) {
|
|
1256
1256
|
let error = new Error(
|
|
1257
1257
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1258
1258
|
);
|
|
1259
1259
|
handleError(error);
|
|
1260
1260
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1261
1261
|
}
|
|
1262
|
-
loadContext = initialContext || new (0,
|
|
1262
|
+
loadContext = initialContext || new (0, _chunkJAAIXHP6js.RouterContextProvider)();
|
|
1263
1263
|
} else {
|
|
1264
1264
|
loadContext = initialContext || {};
|
|
1265
1265
|
}
|
|
@@ -1273,10 +1273,10 @@ function derive(build, mode) {
|
|
|
1273
1273
|
if (!build.ssr) {
|
|
1274
1274
|
let decodedPath = decodeURI(normalizedPathname);
|
|
1275
1275
|
if (build.basename && build.basename !== "/") {
|
|
1276
|
-
let strippedPath =
|
|
1276
|
+
let strippedPath = _chunkJAAIXHP6js.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1277
1277
|
if (strippedPath == null) {
|
|
1278
1278
|
errorHandler(
|
|
1279
|
-
new (0,
|
|
1279
|
+
new (0, _chunkJAAIXHP6js.ErrorResponseImpl)(
|
|
1280
1280
|
404,
|
|
1281
1281
|
"Not Found",
|
|
1282
1282
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
@@ -1299,7 +1299,7 @@ function derive(build, mode) {
|
|
|
1299
1299
|
} else if (!build.prerender.includes(decodedPath.replace(/\/$/, "")) && !build.prerender.includes(decodedPath.replace(/[^/]$/, "/"))) {
|
|
1300
1300
|
if (requestUrl.pathname.endsWith(".data")) {
|
|
1301
1301
|
errorHandler(
|
|
1302
|
-
new (0,
|
|
1302
|
+
new (0, _chunkJAAIXHP6js.ErrorResponseImpl)(
|
|
1303
1303
|
404,
|
|
1304
1304
|
"Not Found",
|
|
1305
1305
|
`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.`
|
|
@@ -1319,7 +1319,7 @@ function derive(build, mode) {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
let manifestUrl =
|
|
1322
|
+
let manifestUrl = _chunkJAAIXHP6js.getManifestPath.call(void 0,
|
|
1323
1323
|
build.routeDiscovery.manifestPath,
|
|
1324
1324
|
build.basename
|
|
1325
1325
|
);
|
|
@@ -1358,7 +1358,7 @@ function derive(build, mode) {
|
|
|
1358
1358
|
loadContext,
|
|
1359
1359
|
handleError
|
|
1360
1360
|
);
|
|
1361
|
-
if (
|
|
1361
|
+
if (_chunkJAAIXHP6js.isRedirectResponse.call(void 0, response)) {
|
|
1362
1362
|
response = generateSingleFetchRedirectResponse(
|
|
1363
1363
|
response,
|
|
1364
1364
|
request,
|
|
@@ -1372,7 +1372,7 @@ function derive(build, mode) {
|
|
|
1372
1372
|
params: matches ? matches[0].params : {},
|
|
1373
1373
|
request
|
|
1374
1374
|
});
|
|
1375
|
-
if (
|
|
1375
|
+
if (_chunkJAAIXHP6js.isRedirectResponse.call(void 0, response)) {
|
|
1376
1376
|
response = generateSingleFetchRedirectResponse(
|
|
1377
1377
|
response,
|
|
1378
1378
|
request,
|
|
@@ -1422,7 +1422,7 @@ function derive(build, mode) {
|
|
|
1422
1422
|
return response;
|
|
1423
1423
|
};
|
|
1424
1424
|
if (build.entry.module.instrumentations) {
|
|
1425
|
-
requestHandler =
|
|
1425
|
+
requestHandler = _chunkJAAIXHP6js.instrumentHandler.call(void 0,
|
|
1426
1426
|
requestHandler,
|
|
1427
1427
|
build.entry.module.instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1428
1428
|
);
|
|
@@ -1459,7 +1459,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1459
1459
|
};
|
|
1460
1460
|
};
|
|
1461
1461
|
async function handleManifestRequest(build, dataRoutes, branches, url) {
|
|
1462
|
-
if (url.toString().length >
|
|
1462
|
+
if (url.toString().length > _chunkJAAIXHP6js.URL_LIMIT) {
|
|
1463
1463
|
return new Response(null, {
|
|
1464
1464
|
statusText: "Bad Request",
|
|
1465
1465
|
status: 400
|
|
@@ -1509,7 +1509,7 @@ async function handleManifestRequest(build, dataRoutes, branches, url) {
|
|
|
1509
1509
|
async function handleSingleFetchRequest(serverMode, build, staticHandler, request, normalizedPath, loadContext, handleError) {
|
|
1510
1510
|
let handlerUrl = new URL(request.url);
|
|
1511
1511
|
handlerUrl.pathname = normalizedPath;
|
|
1512
|
-
let response =
|
|
1512
|
+
let response = _chunkJAAIXHP6js.isMutationMethod.call(void 0, request.method) ? await singleFetchAction(
|
|
1513
1513
|
build,
|
|
1514
1514
|
serverMode,
|
|
1515
1515
|
staticHandler,
|
|
@@ -1530,7 +1530,7 @@ async function handleSingleFetchRequest(serverMode, build, staticHandler, reques
|
|
|
1530
1530
|
}
|
|
1531
1531
|
async function handleDocumentRequest(serverMode, build, staticHandler, request, loadContext, handleError, isSpaMode, criticalCss) {
|
|
1532
1532
|
try {
|
|
1533
|
-
if (
|
|
1533
|
+
if (_chunkJAAIXHP6js.isMutationMethod.call(void 0, request.method)) {
|
|
1534
1534
|
try {
|
|
1535
1535
|
throwIfPotentialCSRFAttack(
|
|
1536
1536
|
request,
|
|
@@ -1546,7 +1546,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1546
1546
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1547
1547
|
try {
|
|
1548
1548
|
let innerResult = await query(request);
|
|
1549
|
-
if (!
|
|
1549
|
+
if (!_chunkJAAIXHP6js.isResponse.call(void 0, innerResult)) {
|
|
1550
1550
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1551
1551
|
}
|
|
1552
1552
|
return innerResult;
|
|
@@ -1557,7 +1557,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1557
1557
|
} : void 0,
|
|
1558
1558
|
normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1559
1559
|
});
|
|
1560
|
-
if (!
|
|
1560
|
+
if (!_chunkJAAIXHP6js.isResponse.call(void 0, result)) {
|
|
1561
1561
|
result = await renderHtml(result, isSpaMode);
|
|
1562
1562
|
}
|
|
1563
1563
|
return result;
|
|
@@ -1572,7 +1572,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1572
1572
|
}
|
|
1573
1573
|
if (context.errors) {
|
|
1574
1574
|
Object.values(context.errors).forEach((err) => {
|
|
1575
|
-
if (!
|
|
1575
|
+
if (!_chunkJAAIXHP6js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1576
1576
|
handleError(err);
|
|
1577
1577
|
}
|
|
1578
1578
|
});
|
|
@@ -1584,7 +1584,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1584
1584
|
errors: context.errors
|
|
1585
1585
|
};
|
|
1586
1586
|
let routeDiscovery = build.routeDiscovery;
|
|
1587
|
-
if (
|
|
1587
|
+
if (_chunkJAAIXHP6js.isFogOfWarEnabled.call(void 0, routeDiscovery, build.ssr) && _chunkJAAIXHP6js.shouldUseInitialRouteDiscovery.call(void 0,
|
|
1588
1588
|
context.location.pathname,
|
|
1589
1589
|
staticHandler._matchCost
|
|
1590
1590
|
)) {
|
|
@@ -1632,10 +1632,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1632
1632
|
} catch (error) {
|
|
1633
1633
|
handleError(error);
|
|
1634
1634
|
let errorForSecondRender = error;
|
|
1635
|
-
if (
|
|
1635
|
+
if (_chunkJAAIXHP6js.isResponse.call(void 0, error)) {
|
|
1636
1636
|
try {
|
|
1637
1637
|
let data2 = await unwrapResponse(error);
|
|
1638
|
-
errorForSecondRender = new (0,
|
|
1638
|
+
errorForSecondRender = new (0, _chunkJAAIXHP6js.ErrorResponseImpl)(
|
|
1639
1639
|
error.status,
|
|
1640
1640
|
error.statusText,
|
|
1641
1641
|
data2
|
|
@@ -1643,7 +1643,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1643
1643
|
} catch (e) {
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
|
-
context =
|
|
1646
|
+
context = _chunkJAAIXHP6js.getStaticContextFromError.call(void 0,
|
|
1647
1647
|
staticHandler.dataRoutes,
|
|
1648
1648
|
context,
|
|
1649
1649
|
errorForSecondRender
|
|
@@ -1703,7 +1703,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1703
1703
|
return handleQueryRouteError(error);
|
|
1704
1704
|
}
|
|
1705
1705
|
function handleQueryRouteResult(result) {
|
|
1706
|
-
if (
|
|
1706
|
+
if (_chunkJAAIXHP6js.isResponse.call(void 0, result)) {
|
|
1707
1707
|
return result;
|
|
1708
1708
|
}
|
|
1709
1709
|
if (typeof result === "string") {
|
|
@@ -1712,10 +1712,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1712
1712
|
return Response.json(result);
|
|
1713
1713
|
}
|
|
1714
1714
|
function handleQueryRouteError(error) {
|
|
1715
|
-
if (
|
|
1715
|
+
if (_chunkJAAIXHP6js.isResponse.call(void 0, error)) {
|
|
1716
1716
|
return error;
|
|
1717
1717
|
}
|
|
1718
|
-
if (
|
|
1718
|
+
if (_chunkJAAIXHP6js.isRouteErrorResponse.call(void 0, error)) {
|
|
1719
1719
|
handleError(error);
|
|
1720
1720
|
return errorResponseToJson(error, serverMode);
|
|
1721
1721
|
}
|
|
@@ -1838,7 +1838,7 @@ function createSessionStorage({
|
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
1840
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1841
|
-
|
|
1841
|
+
_chunkJAAIXHP6js.warnOnce.call(void 0,
|
|
1842
1842
|
cookie.isSigned,
|
|
1843
1843
|
`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.`
|
|
1844
1844
|
);
|
|
@@ -1926,7 +1926,7 @@ function href(path, ...args) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
result = result.replace(/^[\\/]{2,}/, "/") || "/";
|
|
1929
|
-
|
|
1929
|
+
_chunkJAAIXHP6js.validateDocumentNavigationTarget.call(void 0, result);
|
|
1930
1930
|
return result;
|
|
1931
1931
|
}
|
|
1932
1932
|
function trimTrailingSplat(path) {
|
|
@@ -2121,8 +2121,8 @@ async function routeRSCServerRequest({
|
|
|
2121
2121
|
const payload = await createFromReadableStream(
|
|
2122
2122
|
detectRedirectResponse.body
|
|
2123
2123
|
);
|
|
2124
|
-
if (serverResponse.status ===
|
|
2125
|
-
if (
|
|
2124
|
+
if (serverResponse.status === _chunkJAAIXHP6js.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2125
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, payload.location)) {
|
|
2126
2126
|
throw new Error("Invalid redirect location");
|
|
2127
2127
|
}
|
|
2128
2128
|
const headers2 = new Headers(serverResponse.headers);
|
|
@@ -2143,11 +2143,11 @@ async function routeRSCServerRequest({
|
|
|
2143
2143
|
let html = await renderHTML(getPayload, {
|
|
2144
2144
|
onError(error) {
|
|
2145
2145
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2146
|
-
renderRedirect =
|
|
2146
|
+
renderRedirect = _chunkJAAIXHP6js.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2147
2147
|
if (renderRedirect) {
|
|
2148
2148
|
return error.digest;
|
|
2149
2149
|
}
|
|
2150
|
-
let routeErrorResponse =
|
|
2150
|
+
let routeErrorResponse = _chunkJAAIXHP6js.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2151
2151
|
if (routeErrorResponse) {
|
|
2152
2152
|
renderError = routeErrorResponse;
|
|
2153
2153
|
status = routeErrorResponse.status;
|
|
@@ -2168,7 +2168,7 @@ async function routeRSCServerRequest({
|
|
|
2168
2168
|
}
|
|
2169
2169
|
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
2170
2170
|
if (renderRedirect) {
|
|
2171
|
-
if (
|
|
2171
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2172
2172
|
throw new Error("Invalid redirect location");
|
|
2173
2173
|
}
|
|
2174
2174
|
headers.set("Location", renderRedirect.location);
|
|
@@ -2180,12 +2180,12 @@ async function routeRSCServerRequest({
|
|
|
2180
2180
|
const redirectTransform = new TransformStream({
|
|
2181
2181
|
flush(controller) {
|
|
2182
2182
|
if (renderRedirect) {
|
|
2183
|
-
if (
|
|
2183
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2184
2184
|
return;
|
|
2185
2185
|
}
|
|
2186
2186
|
controller.enqueue(
|
|
2187
2187
|
new TextEncoder().encode(
|
|
2188
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2188
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkJAAIXHP6js.escapeAttribute.call(void 0, renderRedirect.location)}"/>`
|
|
2189
2189
|
)
|
|
2190
2190
|
);
|
|
2191
2191
|
}
|
|
@@ -2212,7 +2212,7 @@ async function routeRSCServerRequest({
|
|
|
2212
2212
|
return error;
|
|
2213
2213
|
}
|
|
2214
2214
|
if (renderRedirect) {
|
|
2215
|
-
if (
|
|
2215
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2216
2216
|
throw new Error("Invalid redirect location");
|
|
2217
2217
|
}
|
|
2218
2218
|
return new Response(`Redirect: ${renderRedirect.location}`, {
|
|
@@ -2224,7 +2224,7 @@ async function routeRSCServerRequest({
|
|
|
2224
2224
|
}
|
|
2225
2225
|
try {
|
|
2226
2226
|
let normalizedError = _nullishCoalesce(renderError, () => ( error));
|
|
2227
|
-
let [status, statusText] =
|
|
2227
|
+
let [status, statusText] = _chunkJAAIXHP6js.isRouteErrorResponse.call(void 0, normalizedError) ? [normalizedError.status, normalizedError.statusText] : [500, ""];
|
|
2228
2228
|
let retryRedirect;
|
|
2229
2229
|
let reactHeaders = new Headers();
|
|
2230
2230
|
const html = await renderHTML(
|
|
@@ -2261,11 +2261,11 @@ async function routeRSCServerRequest({
|
|
|
2261
2261
|
{
|
|
2262
2262
|
onError(error2) {
|
|
2263
2263
|
if (typeof error2 === "object" && error2 && "digest" in error2 && typeof error2.digest === "string") {
|
|
2264
|
-
retryRedirect =
|
|
2264
|
+
retryRedirect = _chunkJAAIXHP6js.decodeRedirectErrorDigest.call(void 0, error2.digest);
|
|
2265
2265
|
if (retryRedirect) {
|
|
2266
2266
|
return error2.digest;
|
|
2267
2267
|
}
|
|
2268
|
-
let routeErrorResponse =
|
|
2268
|
+
let routeErrorResponse = _chunkJAAIXHP6js.decodeRouteErrorResponseDigest.call(void 0,
|
|
2269
2269
|
error2.digest
|
|
2270
2270
|
);
|
|
2271
2271
|
if (routeErrorResponse) {
|
|
@@ -2288,7 +2288,7 @@ async function routeRSCServerRequest({
|
|
|
2288
2288
|
}
|
|
2289
2289
|
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
2290
2290
|
if (retryRedirect) {
|
|
2291
|
-
if (
|
|
2291
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, retryRedirect.location)) {
|
|
2292
2292
|
throw new Error("Invalid redirect location");
|
|
2293
2293
|
}
|
|
2294
2294
|
headers.set("Location", retryRedirect.location);
|
|
@@ -2300,12 +2300,12 @@ async function routeRSCServerRequest({
|
|
|
2300
2300
|
const retryRedirectTransform = new TransformStream({
|
|
2301
2301
|
flush(controller) {
|
|
2302
2302
|
if (retryRedirect) {
|
|
2303
|
-
if (
|
|
2303
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, retryRedirect.location)) {
|
|
2304
2304
|
return;
|
|
2305
2305
|
}
|
|
2306
2306
|
controller.enqueue(
|
|
2307
2307
|
new TextEncoder().encode(
|
|
2308
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2308
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkJAAIXHP6js.escapeAttribute.call(void 0, retryRedirect.location)}"/>`
|
|
2309
2309
|
)
|
|
2310
2310
|
);
|
|
2311
2311
|
}
|
|
@@ -2336,7 +2336,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2336
2336
|
const decoded = getPayload();
|
|
2337
2337
|
const payload = useSafe(decoded);
|
|
2338
2338
|
if (payload.type === "redirect") {
|
|
2339
|
-
if (
|
|
2339
|
+
if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, payload.location)) {
|
|
2340
2340
|
throw new Error("Invalid redirect location");
|
|
2341
2341
|
}
|
|
2342
2342
|
throw new Response(null, {
|
|
@@ -2349,7 +2349,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2349
2349
|
if (payload.type !== "render") return null;
|
|
2350
2350
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2351
2351
|
for (const match of payload.matches) {
|
|
2352
|
-
if (
|
|
2352
|
+
if (_chunkJAAIXHP6js.shouldHydrateRouteLoader.call(void 0,
|
|
2353
2353
|
match.id,
|
|
2354
2354
|
match.clientLoader,
|
|
2355
2355
|
match.hasLoader,
|
|
@@ -2389,7 +2389,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2389
2389
|
}
|
|
2390
2390
|
}))
|
|
2391
2391
|
};
|
|
2392
|
-
const router =
|
|
2392
|
+
const router = _chunk6AFDAMLFjs.createStaticRouter.call(void 0,
|
|
2393
2393
|
payload.matches.reduceRight((previous, match) => {
|
|
2394
2394
|
const route = {
|
|
2395
2395
|
id: match.id,
|
|
@@ -2437,10 +2437,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2437
2437
|
mode: "lazy",
|
|
2438
2438
|
manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath
|
|
2439
2439
|
},
|
|
2440
|
-
routeModules:
|
|
2440
|
+
routeModules: _chunkRFC7P4DGjs.createRSCRouteModules.call(void 0, payload)
|
|
2441
2441
|
};
|
|
2442
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2443
|
-
|
|
2442
|
+
return /* @__PURE__ */ React3.createElement(_chunkJAAIXHP6js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkRFC7P4DGjs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkJAAIXHP6js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2443
|
+
_chunk6AFDAMLFjs.StaticRouterProvider,
|
|
2444
2444
|
{
|
|
2445
2445
|
context,
|
|
2446
2446
|
router,
|
|
@@ -2585,4 +2585,4 @@ function isManifestRequest(url) {
|
|
|
2585
2585
|
|
|
2586
2586
|
|
|
2587
2587
|
|
|
2588
|
-
exports.Await =
|
|
2588
|
+
exports.Await = _chunkJAAIXHP6js.Await; exports.BrowserRouter = _chunk6AFDAMLFjs.BrowserRouter; exports.Form = _chunk6AFDAMLFjs.Form; exports.HashRouter = _chunk6AFDAMLFjs.HashRouter; exports.IDLE_BLOCKER = _chunkJAAIXHP6js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkJAAIXHP6js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkJAAIXHP6js.IDLE_NAVIGATION; exports.Link = _chunk6AFDAMLFjs.Link; exports.Links = _chunkJAAIXHP6js.Links; exports.MemoryRouter = _chunkJAAIXHP6js.MemoryRouter; exports.Meta = _chunkJAAIXHP6js.Meta; exports.NavLink = _chunk6AFDAMLFjs.NavLink; exports.Navigate = _chunkJAAIXHP6js.Navigate; exports.NavigationType = _chunkJAAIXHP6js.Action; exports.Outlet = _chunkJAAIXHP6js.Outlet; exports.PrefetchPageLinks = _chunkJAAIXHP6js.PrefetchPageLinks; exports.Route = _chunkJAAIXHP6js.Route; exports.Router = _chunkJAAIXHP6js.Router; exports.RouterContextProvider = _chunkJAAIXHP6js.RouterContextProvider; exports.RouterProvider = _chunkJAAIXHP6js.RouterProvider; exports.Routes = _chunkJAAIXHP6js.Routes; exports.Scripts = _chunkJAAIXHP6js.Scripts; exports.ScrollRestoration = _chunk6AFDAMLFjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunk6AFDAMLFjs.StaticRouter; exports.StaticRouterProvider = _chunk6AFDAMLFjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkJAAIXHP6js.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkJAAIXHP6js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkJAAIXHP6js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkJAAIXHP6js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkJAAIXHP6js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkJAAIXHP6js.FrameworkContext; exports.UNSAFE_LocationContext = _chunkJAAIXHP6js.LocationContext; exports.UNSAFE_NavigationContext = _chunkJAAIXHP6js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkRFC7P4DGjs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkJAAIXHP6js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkJAAIXHP6js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkJAAIXHP6js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkJAAIXHP6js.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkJAAIXHP6js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkJAAIXHP6js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkJAAIXHP6js.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkJAAIXHP6js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkJAAIXHP6js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkJAAIXHP6js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkJAAIXHP6js.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkJAAIXHP6js.createMemoryHistory; exports.UNSAFE_createRouter = _chunkJAAIXHP6js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkJAAIXHP6js.decodeViaTurboStream; exports.UNSAFE_getHydrationData = _chunkRFC7P4DGjs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkJAAIXHP6js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkJAAIXHP6js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkJAAIXHP6js.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkJAAIXHP6js.invariant; exports.UNSAFE_mapRouteProperties = _chunkJAAIXHP6js.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkJAAIXHP6js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkJAAIXHP6js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunk6AFDAMLFjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkJAAIXHP6js.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkJAAIXHP6js.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkJAAIXHP6js.withHydrateFallbackProps; exports.createBrowserRouter = _chunk6AFDAMLFjs.createBrowserRouter; exports.createContext = _chunkJAAIXHP6js.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunk6AFDAMLFjs.createHashRouter; exports.createMemoryRouter = _chunkJAAIXHP6js.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkJAAIXHP6js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkJAAIXHP6js.createRoutesFromChildren; exports.createRoutesFromElements = _chunkJAAIXHP6js.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunk6AFDAMLFjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunk6AFDAMLFjs.createStaticHandler; exports.createStaticRouter = _chunk6AFDAMLFjs.createStaticRouter; exports.data = _chunkJAAIXHP6js.data; exports.generatePath = _chunkJAAIXHP6js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkJAAIXHP6js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkJAAIXHP6js.matchPath; exports.matchRoutes = _chunkJAAIXHP6js.matchRoutes; exports.parsePath = _chunkJAAIXHP6js.parsePath; exports.redirect = _chunkJAAIXHP6js.redirect; exports.redirectDocument = _chunkJAAIXHP6js.redirectDocument; exports.renderMatches = _chunkJAAIXHP6js.renderMatches; exports.replace = _chunkJAAIXHP6js.replace; exports.resolvePath = _chunkJAAIXHP6js.resolvePath; exports.unstable_HistoryRouter = _chunk6AFDAMLFjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunk6AFDAMLFjs.usePrompt; exports.unstable_useRoute = _chunkJAAIXHP6js.useRoute; exports.unstable_useRouterState = _chunkJAAIXHP6js.useRouterState; exports.useActionData = _chunkJAAIXHP6js.useActionData; exports.useAsyncError = _chunkJAAIXHP6js.useAsyncError; exports.useAsyncValue = _chunkJAAIXHP6js.useAsyncValue; exports.useBeforeUnload = _chunk6AFDAMLFjs.useBeforeUnload; exports.useBlocker = _chunkJAAIXHP6js.useBlocker; exports.useFetcher = _chunk6AFDAMLFjs.useFetcher; exports.useFetchers = _chunk6AFDAMLFjs.useFetchers; exports.useFormAction = _chunk6AFDAMLFjs.useFormAction; exports.useHref = _chunkJAAIXHP6js.useHref; exports.useInRouterContext = _chunkJAAIXHP6js.useInRouterContext; exports.useLinkClickHandler = _chunk6AFDAMLFjs.useLinkClickHandler; exports.useLoaderData = _chunkJAAIXHP6js.useLoaderData; exports.useLocation = _chunkJAAIXHP6js.useLocation; exports.useMatch = _chunkJAAIXHP6js.useMatch; exports.useMatches = _chunkJAAIXHP6js.useMatches; exports.useNavigate = _chunkJAAIXHP6js.useNavigate; exports.useNavigation = _chunkJAAIXHP6js.useNavigation; exports.useNavigationType = _chunkJAAIXHP6js.useNavigationType; exports.useOutlet = _chunkJAAIXHP6js.useOutlet; exports.useOutletContext = _chunkJAAIXHP6js.useOutletContext; exports.useParams = _chunkJAAIXHP6js.useParams; exports.useResolvedPath = _chunkJAAIXHP6js.useResolvedPath; exports.useRevalidator = _chunkJAAIXHP6js.useRevalidator; exports.useRouteError = _chunkJAAIXHP6js.useRouteError; exports.useRouteLoaderData = _chunkJAAIXHP6js.useRouteLoaderData; exports.useRoutes = _chunkJAAIXHP6js.useRoutes; exports.useSearchParams = _chunk6AFDAMLFjs.useSearchParams; exports.useSubmit = _chunk6AFDAMLFjs.useSubmit; exports.useViewTransitionState = _chunk6AFDAMLFjs.useViewTransitionState;
|