react-router 7.18.0 → 7.18.1
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 +6 -0
- package/dist/{production/chunk-3Z6WS2WZ.js → development/chunk-EVX4J2F5.js} +7 -7
- package/dist/development/{chunk-YL5M26XI.js → chunk-G5KIBF6U.js} +103 -103
- package/dist/development/{chunk-E4MTK73K.mjs → chunk-IJF3QNGC.mjs} +2 -2
- package/dist/development/{chunk-4ZMWKKQ3.mjs → chunk-KS7C4IRE.mjs} +2 -2
- package/dist/development/{chunk-U7ORXROY.js → chunk-SA4DP3SF.js} +1 -1
- package/dist/development/dom-export.js +32 -32
- package/dist/development/dom-export.mjs +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 +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.js +90 -90
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{chunk-EGOTSXNH.mjs → chunk-3MA7PLKB.mjs} +2 -2
- package/dist/production/{chunk-M7NGGUU6.mjs → chunk-3WDNQUW5.mjs} +2 -2
- package/dist/{development/chunk-WW7PN6QI.js → production/chunk-GOIER6ML.js} +7 -7
- package/dist/production/{chunk-IUPBOWYO.js → chunk-IEF7VMTA.js} +1 -1
- package/dist/production/{chunk-BIP66BKV.js → chunk-WICLSFKL.js} +103 -103
- package/dist/production/dom-export.js +32 -32
- package/dist/production/dom-export.mjs +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 +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.js +90 -90
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/docs/how-to/status.md +1 -1
- package/docs/upgrading/future.md +222 -12
- package/docs/upgrading/remix.md +2 -2
- package/package.json +1 -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.1
|
|
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 _chunkGOIER6MLjs = require('./chunk-GOIER6ML.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunk3Z6WS2WZjs = require('./chunk-3Z6WS2WZ.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkWICLSFKLjs = require('./chunk-WICLSFKL.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -154,7 +154,7 @@ var _chunkBIP66BKVjs = require('./chunk-BIP66BKV.js');
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
var
|
|
157
|
+
var _chunkIEF7VMTAjs = require('./chunk-IEF7VMTA.js');
|
|
158
158
|
|
|
159
159
|
// lib/dom/ssr/server.tsx
|
|
160
160
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -167,7 +167,7 @@ function ServerRouter({
|
|
|
167
167
|
url = new URL(url);
|
|
168
168
|
}
|
|
169
169
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
170
|
-
let routes =
|
|
170
|
+
let routes = _chunkIEF7VMTAjs.createServerRoutes.call(void 0,
|
|
171
171
|
manifest.routes,
|
|
172
172
|
routeModules,
|
|
173
173
|
context.future,
|
|
@@ -180,7 +180,7 @@ function ServerRouter({
|
|
|
180
180
|
let routeId = match.route.id;
|
|
181
181
|
let route = routeModules[routeId];
|
|
182
182
|
let manifestRoute = context.manifest.routes[routeId];
|
|
183
|
-
if (route && manifestRoute &&
|
|
183
|
+
if (route && manifestRoute && _chunkIEF7VMTAjs.shouldHydrateRouteLoader.call(void 0,
|
|
184
184
|
routeId,
|
|
185
185
|
route.clientLoader,
|
|
186
186
|
manifestRoute.hasLoader,
|
|
@@ -189,11 +189,11 @@ function ServerRouter({
|
|
|
189
189
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
let router =
|
|
192
|
+
let router = _chunkWICLSFKLjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext, {
|
|
193
193
|
branches: context.branches
|
|
194
194
|
});
|
|
195
195
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
196
|
-
|
|
196
|
+
_chunkIEF7VMTAjs.FrameworkContext.Provider,
|
|
197
197
|
{
|
|
198
198
|
value: {
|
|
199
199
|
manifest,
|
|
@@ -209,8 +209,8 @@ function ServerRouter({
|
|
|
209
209
|
renderMeta: context.renderMeta
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
|
-
/* @__PURE__ */ React.createElement(
|
|
213
|
-
|
|
212
|
+
/* @__PURE__ */ React.createElement(_chunkIEF7VMTAjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
213
|
+
_chunkWICLSFKLjs.StaticRouterProvider,
|
|
214
214
|
{
|
|
215
215
|
router,
|
|
216
216
|
context: context.staticHandlerContext,
|
|
@@ -218,7 +218,7 @@ function ServerRouter({
|
|
|
218
218
|
}
|
|
219
219
|
))
|
|
220
220
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
221
|
-
|
|
221
|
+
_chunkIEF7VMTAjs.StreamTransfer,
|
|
222
222
|
{
|
|
223
223
|
context,
|
|
224
224
|
identifier: 0,
|
|
@@ -261,18 +261,18 @@ function createRoutesStub(routes, _context) {
|
|
|
261
261
|
let patched = processRoutes(
|
|
262
262
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
263
263
|
// types compared to `RouteObject`
|
|
264
|
-
|
|
265
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0,
|
|
264
|
+
_chunkIEF7VMTAjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
265
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0, _chunkIEF7VMTAjs.RouterContextProvider)() : {},
|
|
266
266
|
frameworkContextRef.current.manifest,
|
|
267
267
|
frameworkContextRef.current.routeModules
|
|
268
268
|
);
|
|
269
|
-
routerRef.current =
|
|
269
|
+
routerRef.current = _chunkIEF7VMTAjs.createMemoryRouter.call(void 0, patched, {
|
|
270
270
|
initialEntries,
|
|
271
271
|
initialIndex,
|
|
272
272
|
hydrationData
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
return /* @__PURE__ */ React2.createElement(
|
|
275
|
+
return /* @__PURE__ */ React2.createElement(_chunkIEF7VMTAjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkIEF7VMTAjs.RouterProvider, { router: routerRef.current }));
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -286,9 +286,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
286
286
|
id: route.id,
|
|
287
287
|
path: route.path,
|
|
288
288
|
index: route.index,
|
|
289
|
-
Component: route.Component ?
|
|
290
|
-
HydrateFallback: route.HydrateFallback ?
|
|
291
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
289
|
+
Component: route.Component ? _chunkIEF7VMTAjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
290
|
+
HydrateFallback: route.HydrateFallback ? _chunkIEF7VMTAjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
291
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkIEF7VMTAjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
292
292
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
293
293
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
294
294
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -323,7 +323,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
323
323
|
};
|
|
324
324
|
manifest.routes[newRoute.id] = entryRoute;
|
|
325
325
|
routeModules[route.id] = {
|
|
326
|
-
default: newRoute.Component ||
|
|
326
|
+
default: newRoute.Component || _chunkIEF7VMTAjs.Outlet,
|
|
327
327
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
328
328
|
handle: route.handle,
|
|
329
329
|
links: route.links,
|
|
@@ -518,7 +518,7 @@ function myUnescape(value) {
|
|
|
518
518
|
return result;
|
|
519
519
|
}
|
|
520
520
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
521
|
-
|
|
521
|
+
_chunkIEF7VMTAjs.warnOnce.call(void 0,
|
|
522
522
|
!expires,
|
|
523
523
|
`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.`
|
|
524
524
|
);
|
|
@@ -580,7 +580,7 @@ function invariant2(value, message) {
|
|
|
580
580
|
|
|
581
581
|
// lib/server-runtime/routeMatching.ts
|
|
582
582
|
function matchServerRoutes(manifest, dataRoutes, branches, pathname, basename) {
|
|
583
|
-
let matches =
|
|
583
|
+
let matches = _chunkIEF7VMTAjs.matchRoutesImpl.call(void 0,
|
|
584
584
|
dataRoutes,
|
|
585
585
|
pathname,
|
|
586
586
|
_nullishCoalesce(basename, () => ( "/")),
|
|
@@ -611,7 +611,7 @@ async function callRouteHandler(handler, args, future) {
|
|
|
611
611
|
context: args.context,
|
|
612
612
|
pattern: args.pattern
|
|
613
613
|
});
|
|
614
|
-
if (
|
|
614
|
+
if (_chunkIEF7VMTAjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkIEF7VMTAjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
615
615
|
throw new Response(null, result.init);
|
|
616
616
|
}
|
|
617
617
|
return result;
|
|
@@ -714,17 +714,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
714
714
|
controller.close();
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
|
-
let decoded = await
|
|
717
|
+
let decoded = await _chunkIEF7VMTAjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
718
718
|
let data2 = decoded.value;
|
|
719
|
-
if (data2 &&
|
|
720
|
-
let result = data2[
|
|
719
|
+
if (data2 && _chunkIEF7VMTAjs.SingleFetchRedirectSymbol in data2) {
|
|
720
|
+
let result = data2[_chunkIEF7VMTAjs.SingleFetchRedirectSymbol];
|
|
721
721
|
let init = { status: result.status };
|
|
722
722
|
if (result.reload) {
|
|
723
|
-
throw
|
|
723
|
+
throw _chunkIEF7VMTAjs.redirectDocument.call(void 0, result.redirect, init);
|
|
724
724
|
} else if (result.replace) {
|
|
725
|
-
throw
|
|
725
|
+
throw _chunkIEF7VMTAjs.replace.call(void 0, result.redirect, init);
|
|
726
726
|
} else {
|
|
727
|
-
throw
|
|
727
|
+
throw _chunkIEF7VMTAjs.redirect.call(void 0, result.redirect, init);
|
|
728
728
|
}
|
|
729
729
|
} else {
|
|
730
730
|
invariant2(
|
|
@@ -767,7 +767,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
767
767
|
|
|
768
768
|
// lib/server-runtime/serverHandoff.ts
|
|
769
769
|
function createServerHandoffString(serverHandoff) {
|
|
770
|
-
return
|
|
770
|
+
return _chunkIEF7VMTAjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
771
771
|
}
|
|
772
772
|
|
|
773
773
|
// lib/server-runtime/headers.ts
|
|
@@ -919,12 +919,12 @@ function getNormalizedPath(request, basename, future) {
|
|
|
919
919
|
pathname = pathname.replace(/\.data$/, "");
|
|
920
920
|
}
|
|
921
921
|
} else {
|
|
922
|
-
if (
|
|
922
|
+
if (_chunkIEF7VMTAjs.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
|
|
923
923
|
pathname = basename;
|
|
924
924
|
} else if (pathname.endsWith(".data")) {
|
|
925
925
|
pathname = pathname.replace(/\.data$/, "");
|
|
926
926
|
}
|
|
927
|
-
if (
|
|
927
|
+
if (_chunkIEF7VMTAjs.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
928
928
|
pathname = pathname.slice(0, -1);
|
|
929
929
|
}
|
|
930
930
|
}
|
|
@@ -944,7 +944,7 @@ function getNormalizedPath(request, basename, future) {
|
|
|
944
944
|
|
|
945
945
|
// lib/server-runtime/single-fetch.ts
|
|
946
946
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
947
|
-
...
|
|
947
|
+
..._chunkIEF7VMTAjs.NO_BODY_STATUS_CODES,
|
|
948
948
|
304
|
|
949
949
|
]);
|
|
950
950
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -983,7 +983,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
983
983
|
return handleQueryError(error);
|
|
984
984
|
}
|
|
985
985
|
function handleQueryResult(result) {
|
|
986
|
-
return
|
|
986
|
+
return _chunkIEF7VMTAjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
987
987
|
}
|
|
988
988
|
function handleQueryError(error, status = 500) {
|
|
989
989
|
handleError(error);
|
|
@@ -995,12 +995,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
995
995
|
}
|
|
996
996
|
function staticContextToResponse(context) {
|
|
997
997
|
let headers = getDocumentHeaders(context, build);
|
|
998
|
-
if (
|
|
998
|
+
if (_chunkIEF7VMTAjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
999
999
|
return new Response(null, { status: context.statusCode, headers });
|
|
1000
1000
|
}
|
|
1001
1001
|
if (context.errors) {
|
|
1002
1002
|
Object.values(context.errors).forEach((err) => {
|
|
1003
|
-
if (!
|
|
1003
|
+
if (!_chunkIEF7VMTAjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1004
1004
|
handleError(err);
|
|
1005
1005
|
}
|
|
1006
1006
|
});
|
|
@@ -1048,7 +1048,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1048
1048
|
return handleQueryError(error);
|
|
1049
1049
|
}
|
|
1050
1050
|
function handleQueryResult(result) {
|
|
1051
|
-
return
|
|
1051
|
+
return _chunkIEF7VMTAjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1052
1052
|
}
|
|
1053
1053
|
function handleQueryError(error) {
|
|
1054
1054
|
handleError(error);
|
|
@@ -1060,12 +1060,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1060
1060
|
}
|
|
1061
1061
|
function staticContextToResponse(context) {
|
|
1062
1062
|
let headers = getDocumentHeaders(context, build);
|
|
1063
|
-
if (
|
|
1063
|
+
if (_chunkIEF7VMTAjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1064
1064
|
return new Response(null, { status: context.statusCode, headers });
|
|
1065
1065
|
}
|
|
1066
1066
|
if (context.errors) {
|
|
1067
1067
|
Object.values(context.errors).forEach((err) => {
|
|
1068
|
-
if (!
|
|
1068
|
+
if (!_chunkIEF7VMTAjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1069
1069
|
handleError(err);
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
@@ -1129,15 +1129,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1129
1129
|
headers.delete("Location");
|
|
1130
1130
|
headers.set("Content-Type", "text/x-script");
|
|
1131
1131
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1132
|
-
result: request.method === "GET" ? { [
|
|
1132
|
+
result: request.method === "GET" ? { [_chunkIEF7VMTAjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1133
1133
|
headers,
|
|
1134
|
-
status:
|
|
1134
|
+
status: _chunkIEF7VMTAjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
1137
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1138
1138
|
let redirect2 = headers.get("Location");
|
|
1139
1139
|
if (basename) {
|
|
1140
|
-
redirect2 =
|
|
1140
|
+
redirect2 = _chunkIEF7VMTAjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1141
1141
|
}
|
|
1142
1142
|
return {
|
|
1143
1143
|
redirect: redirect2,
|
|
@@ -1174,7 +1174,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1174
1174
|
clearTimeout(timeoutId);
|
|
1175
1175
|
requestSignal.removeEventListener("abort", abortControllerOnRequestAbort);
|
|
1176
1176
|
};
|
|
1177
|
-
return
|
|
1177
|
+
return _chunkIEF7VMTAjs.encode.call(void 0, data2, {
|
|
1178
1178
|
signal: controller.signal,
|
|
1179
1179
|
onComplete: cleanupCallbacks,
|
|
1180
1180
|
plugins: [
|
|
@@ -1183,12 +1183,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1183
1183
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1184
1184
|
return ["SanitizedError", name, message, stack];
|
|
1185
1185
|
}
|
|
1186
|
-
if (value instanceof
|
|
1186
|
+
if (value instanceof _chunkIEF7VMTAjs.ErrorResponseImpl) {
|
|
1187
1187
|
let { data: data3, status, statusText } = value;
|
|
1188
1188
|
return ["ErrorResponse", data3, status, statusText];
|
|
1189
1189
|
}
|
|
1190
|
-
if (value && typeof value === "object" &&
|
|
1191
|
-
return ["SingleFetchRedirect", value[
|
|
1190
|
+
if (value && typeof value === "object" && _chunkIEF7VMTAjs.SingleFetchRedirectSymbol in value) {
|
|
1191
|
+
return ["SingleFetchRedirect", value[_chunkIEF7VMTAjs.SingleFetchRedirectSymbol]];
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
],
|
|
@@ -1210,7 +1210,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1210
1210
|
function derive(build, mode) {
|
|
1211
1211
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1212
1212
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1213
|
-
let staticHandler =
|
|
1213
|
+
let staticHandler = _chunkIEF7VMTAjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1214
1214
|
basename: build.basename,
|
|
1215
1215
|
instrumentations: build.entry.module.instrumentations,
|
|
1216
1216
|
future: build.future
|
|
@@ -1219,7 +1219,7 @@ function derive(build, mode) {
|
|
|
1219
1219
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1220
1220
|
console.error(
|
|
1221
1221
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1222
|
-
|
|
1222
|
+
_chunkIEF7VMTAjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1223
1223
|
);
|
|
1224
1224
|
}
|
|
1225
1225
|
});
|
|
@@ -1237,14 +1237,14 @@ function derive(build, mode) {
|
|
|
1237
1237
|
});
|
|
1238
1238
|
};
|
|
1239
1239
|
if (build.future.v8_middleware) {
|
|
1240
|
-
if (initialContext && !(initialContext instanceof
|
|
1240
|
+
if (initialContext && !(initialContext instanceof _chunkIEF7VMTAjs.RouterContextProvider)) {
|
|
1241
1241
|
let error = new Error(
|
|
1242
1242
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1243
1243
|
);
|
|
1244
1244
|
handleError(error);
|
|
1245
1245
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1246
1246
|
}
|
|
1247
|
-
loadContext = initialContext || new (0,
|
|
1247
|
+
loadContext = initialContext || new (0, _chunkIEF7VMTAjs.RouterContextProvider)();
|
|
1248
1248
|
} else {
|
|
1249
1249
|
loadContext = initialContext || {};
|
|
1250
1250
|
}
|
|
@@ -1258,10 +1258,10 @@ function derive(build, mode) {
|
|
|
1258
1258
|
if (!build.ssr) {
|
|
1259
1259
|
let decodedPath = decodeURI(normalizedPathname);
|
|
1260
1260
|
if (build.basename && build.basename !== "/") {
|
|
1261
|
-
let strippedPath =
|
|
1261
|
+
let strippedPath = _chunkIEF7VMTAjs.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1262
1262
|
if (strippedPath == null) {
|
|
1263
1263
|
errorHandler(
|
|
1264
|
-
new (0,
|
|
1264
|
+
new (0, _chunkIEF7VMTAjs.ErrorResponseImpl)(
|
|
1265
1265
|
404,
|
|
1266
1266
|
"Not Found",
|
|
1267
1267
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
@@ -1284,7 +1284,7 @@ function derive(build, mode) {
|
|
|
1284
1284
|
} else if (!build.prerender.includes(decodedPath.replace(/\/$/, "")) && !build.prerender.includes(decodedPath.replace(/[^/]$/, "/"))) {
|
|
1285
1285
|
if (requestUrl.pathname.endsWith(".data")) {
|
|
1286
1286
|
errorHandler(
|
|
1287
|
-
new (0,
|
|
1287
|
+
new (0, _chunkIEF7VMTAjs.ErrorResponseImpl)(
|
|
1288
1288
|
404,
|
|
1289
1289
|
"Not Found",
|
|
1290
1290
|
`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.`
|
|
@@ -1304,7 +1304,7 @@ function derive(build, mode) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
let manifestUrl =
|
|
1307
|
+
let manifestUrl = _chunkIEF7VMTAjs.getManifestPath.call(void 0,
|
|
1308
1308
|
build.routeDiscovery.manifestPath,
|
|
1309
1309
|
build.basename
|
|
1310
1310
|
);
|
|
@@ -1343,7 +1343,7 @@ function derive(build, mode) {
|
|
|
1343
1343
|
loadContext,
|
|
1344
1344
|
handleError
|
|
1345
1345
|
);
|
|
1346
|
-
if (
|
|
1346
|
+
if (_chunkIEF7VMTAjs.isRedirectResponse.call(void 0, response)) {
|
|
1347
1347
|
response = generateSingleFetchRedirectResponse(
|
|
1348
1348
|
response,
|
|
1349
1349
|
request,
|
|
@@ -1357,7 +1357,7 @@ function derive(build, mode) {
|
|
|
1357
1357
|
params: matches ? matches[0].params : {},
|
|
1358
1358
|
request
|
|
1359
1359
|
});
|
|
1360
|
-
if (
|
|
1360
|
+
if (_chunkIEF7VMTAjs.isRedirectResponse.call(void 0, response)) {
|
|
1361
1361
|
response = generateSingleFetchRedirectResponse(
|
|
1362
1362
|
response,
|
|
1363
1363
|
request,
|
|
@@ -1405,7 +1405,7 @@ function derive(build, mode) {
|
|
|
1405
1405
|
return response;
|
|
1406
1406
|
};
|
|
1407
1407
|
if (build.entry.module.instrumentations) {
|
|
1408
|
-
requestHandler =
|
|
1408
|
+
requestHandler = _chunkIEF7VMTAjs.instrumentHandler.call(void 0,
|
|
1409
1409
|
requestHandler,
|
|
1410
1410
|
build.entry.module.instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1411
1411
|
);
|
|
@@ -1442,7 +1442,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1442
1442
|
};
|
|
1443
1443
|
};
|
|
1444
1444
|
async function handleManifestRequest(build, dataRoutes, branches, url) {
|
|
1445
|
-
if (url.toString().length >
|
|
1445
|
+
if (url.toString().length > _chunkIEF7VMTAjs.URL_LIMIT) {
|
|
1446
1446
|
return new Response(null, {
|
|
1447
1447
|
statusText: "Bad Request",
|
|
1448
1448
|
status: 400
|
|
@@ -1492,7 +1492,7 @@ async function handleManifestRequest(build, dataRoutes, branches, url) {
|
|
|
1492
1492
|
async function handleSingleFetchRequest(serverMode, build, staticHandler, request, normalizedPath, loadContext, handleError) {
|
|
1493
1493
|
let handlerUrl = new URL(request.url);
|
|
1494
1494
|
handlerUrl.pathname = normalizedPath;
|
|
1495
|
-
let response =
|
|
1495
|
+
let response = _chunkIEF7VMTAjs.isMutationMethod.call(void 0, request.method) ? await singleFetchAction(
|
|
1496
1496
|
build,
|
|
1497
1497
|
serverMode,
|
|
1498
1498
|
staticHandler,
|
|
@@ -1513,7 +1513,7 @@ async function handleSingleFetchRequest(serverMode, build, staticHandler, reques
|
|
|
1513
1513
|
}
|
|
1514
1514
|
async function handleDocumentRequest(serverMode, build, staticHandler, request, loadContext, handleError, isSpaMode, criticalCss) {
|
|
1515
1515
|
try {
|
|
1516
|
-
if (
|
|
1516
|
+
if (_chunkIEF7VMTAjs.isMutationMethod.call(void 0, request.method)) {
|
|
1517
1517
|
try {
|
|
1518
1518
|
throwIfPotentialCSRFAttack(
|
|
1519
1519
|
request,
|
|
@@ -1529,7 +1529,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1529
1529
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1530
1530
|
try {
|
|
1531
1531
|
let innerResult = await query(request);
|
|
1532
|
-
if (!
|
|
1532
|
+
if (!_chunkIEF7VMTAjs.isResponse.call(void 0, innerResult)) {
|
|
1533
1533
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1534
1534
|
}
|
|
1535
1535
|
return innerResult;
|
|
@@ -1540,7 +1540,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1540
1540
|
} : void 0,
|
|
1541
1541
|
normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1542
1542
|
});
|
|
1543
|
-
if (!
|
|
1543
|
+
if (!_chunkIEF7VMTAjs.isResponse.call(void 0, result)) {
|
|
1544
1544
|
result = await renderHtml(result, isSpaMode);
|
|
1545
1545
|
}
|
|
1546
1546
|
return result;
|
|
@@ -1555,7 +1555,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1555
1555
|
}
|
|
1556
1556
|
if (context.errors) {
|
|
1557
1557
|
Object.values(context.errors).forEach((err) => {
|
|
1558
|
-
if (!
|
|
1558
|
+
if (!_chunkIEF7VMTAjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1559
1559
|
handleError(err);
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
@@ -1608,10 +1608,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1608
1608
|
} catch (error) {
|
|
1609
1609
|
handleError(error);
|
|
1610
1610
|
let errorForSecondRender = error;
|
|
1611
|
-
if (
|
|
1611
|
+
if (_chunkIEF7VMTAjs.isResponse.call(void 0, error)) {
|
|
1612
1612
|
try {
|
|
1613
1613
|
let data2 = await unwrapResponse(error);
|
|
1614
|
-
errorForSecondRender = new (0,
|
|
1614
|
+
errorForSecondRender = new (0, _chunkIEF7VMTAjs.ErrorResponseImpl)(
|
|
1615
1615
|
error.status,
|
|
1616
1616
|
error.statusText,
|
|
1617
1617
|
data2
|
|
@@ -1619,7 +1619,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1619
1619
|
} catch (e) {
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
|
-
context =
|
|
1622
|
+
context = _chunkIEF7VMTAjs.getStaticContextFromError.call(void 0,
|
|
1623
1623
|
staticHandler.dataRoutes,
|
|
1624
1624
|
context,
|
|
1625
1625
|
errorForSecondRender
|
|
@@ -1679,7 +1679,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1679
1679
|
return handleQueryRouteError(error);
|
|
1680
1680
|
}
|
|
1681
1681
|
function handleQueryRouteResult(result) {
|
|
1682
|
-
if (
|
|
1682
|
+
if (_chunkIEF7VMTAjs.isResponse.call(void 0, result)) {
|
|
1683
1683
|
return result;
|
|
1684
1684
|
}
|
|
1685
1685
|
if (typeof result === "string") {
|
|
@@ -1688,10 +1688,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1688
1688
|
return Response.json(result);
|
|
1689
1689
|
}
|
|
1690
1690
|
function handleQueryRouteError(error) {
|
|
1691
|
-
if (
|
|
1691
|
+
if (_chunkIEF7VMTAjs.isResponse.call(void 0, error)) {
|
|
1692
1692
|
return error;
|
|
1693
1693
|
}
|
|
1694
|
-
if (
|
|
1694
|
+
if (_chunkIEF7VMTAjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1695
1695
|
handleError(error);
|
|
1696
1696
|
return errorResponseToJson(error, serverMode);
|
|
1697
1697
|
}
|
|
@@ -1814,7 +1814,7 @@ function createSessionStorage({
|
|
|
1814
1814
|
};
|
|
1815
1815
|
}
|
|
1816
1816
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1817
|
-
|
|
1817
|
+
_chunkIEF7VMTAjs.warnOnce.call(void 0,
|
|
1818
1818
|
cookie.isSigned,
|
|
1819
1819
|
`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.`
|
|
1820
1820
|
);
|
|
@@ -2095,8 +2095,8 @@ async function routeRSCServerRequest({
|
|
|
2095
2095
|
const payload = await createFromReadableStream(
|
|
2096
2096
|
detectRedirectResponse.body
|
|
2097
2097
|
);
|
|
2098
|
-
if (serverResponse.status ===
|
|
2099
|
-
if (
|
|
2098
|
+
if (serverResponse.status === _chunkIEF7VMTAjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2099
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, payload.location)) {
|
|
2100
2100
|
throw new Error("Invalid redirect location");
|
|
2101
2101
|
}
|
|
2102
2102
|
const headers2 = new Headers(serverResponse.headers);
|
|
@@ -2117,11 +2117,11 @@ async function routeRSCServerRequest({
|
|
|
2117
2117
|
let html = await renderHTML(getPayload, {
|
|
2118
2118
|
onError(error) {
|
|
2119
2119
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2120
|
-
renderRedirect =
|
|
2120
|
+
renderRedirect = _chunkIEF7VMTAjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2121
2121
|
if (renderRedirect) {
|
|
2122
2122
|
return error.digest;
|
|
2123
2123
|
}
|
|
2124
|
-
let routeErrorResponse =
|
|
2124
|
+
let routeErrorResponse = _chunkIEF7VMTAjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2125
2125
|
if (routeErrorResponse) {
|
|
2126
2126
|
renderError = routeErrorResponse;
|
|
2127
2127
|
status = routeErrorResponse.status;
|
|
@@ -2142,7 +2142,7 @@ async function routeRSCServerRequest({
|
|
|
2142
2142
|
}
|
|
2143
2143
|
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
2144
2144
|
if (renderRedirect) {
|
|
2145
|
-
if (
|
|
2145
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2146
2146
|
throw new Error("Invalid redirect location");
|
|
2147
2147
|
}
|
|
2148
2148
|
headers.set("Location", renderRedirect.location);
|
|
@@ -2154,12 +2154,12 @@ async function routeRSCServerRequest({
|
|
|
2154
2154
|
const redirectTransform = new TransformStream({
|
|
2155
2155
|
flush(controller) {
|
|
2156
2156
|
if (renderRedirect) {
|
|
2157
|
-
if (
|
|
2157
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2158
2158
|
return;
|
|
2159
2159
|
}
|
|
2160
2160
|
controller.enqueue(
|
|
2161
2161
|
new TextEncoder().encode(
|
|
2162
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2162
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkIEF7VMTAjs.escapeHtml.call(void 0, renderRedirect.location)}"/>`
|
|
2163
2163
|
)
|
|
2164
2164
|
);
|
|
2165
2165
|
}
|
|
@@ -2186,7 +2186,7 @@ async function routeRSCServerRequest({
|
|
|
2186
2186
|
return error;
|
|
2187
2187
|
}
|
|
2188
2188
|
if (renderRedirect) {
|
|
2189
|
-
if (
|
|
2189
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2190
2190
|
throw new Error("Invalid redirect location");
|
|
2191
2191
|
}
|
|
2192
2192
|
return new Response(`Redirect: ${renderRedirect.location}`, {
|
|
@@ -2198,7 +2198,7 @@ async function routeRSCServerRequest({
|
|
|
2198
2198
|
}
|
|
2199
2199
|
try {
|
|
2200
2200
|
let normalizedError = _nullishCoalesce(renderError, () => ( error));
|
|
2201
|
-
let [status, statusText] =
|
|
2201
|
+
let [status, statusText] = _chunkIEF7VMTAjs.isRouteErrorResponse.call(void 0, normalizedError) ? [normalizedError.status, normalizedError.statusText] : [500, ""];
|
|
2202
2202
|
let retryRedirect;
|
|
2203
2203
|
let reactHeaders = new Headers();
|
|
2204
2204
|
const html = await renderHTML(
|
|
@@ -2235,11 +2235,11 @@ async function routeRSCServerRequest({
|
|
|
2235
2235
|
{
|
|
2236
2236
|
onError(error2) {
|
|
2237
2237
|
if (typeof error2 === "object" && error2 && "digest" in error2 && typeof error2.digest === "string") {
|
|
2238
|
-
retryRedirect =
|
|
2238
|
+
retryRedirect = _chunkIEF7VMTAjs.decodeRedirectErrorDigest.call(void 0, error2.digest);
|
|
2239
2239
|
if (retryRedirect) {
|
|
2240
2240
|
return error2.digest;
|
|
2241
2241
|
}
|
|
2242
|
-
let routeErrorResponse =
|
|
2242
|
+
let routeErrorResponse = _chunkIEF7VMTAjs.decodeRouteErrorResponseDigest.call(void 0,
|
|
2243
2243
|
error2.digest
|
|
2244
2244
|
);
|
|
2245
2245
|
if (routeErrorResponse) {
|
|
@@ -2262,7 +2262,7 @@ async function routeRSCServerRequest({
|
|
|
2262
2262
|
}
|
|
2263
2263
|
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
2264
2264
|
if (retryRedirect) {
|
|
2265
|
-
if (
|
|
2265
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, retryRedirect.location)) {
|
|
2266
2266
|
throw new Error("Invalid redirect location");
|
|
2267
2267
|
}
|
|
2268
2268
|
headers.set("Location", retryRedirect.location);
|
|
@@ -2274,12 +2274,12 @@ async function routeRSCServerRequest({
|
|
|
2274
2274
|
const retryRedirectTransform = new TransformStream({
|
|
2275
2275
|
flush(controller) {
|
|
2276
2276
|
if (retryRedirect) {
|
|
2277
|
-
if (
|
|
2277
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, retryRedirect.location)) {
|
|
2278
2278
|
return;
|
|
2279
2279
|
}
|
|
2280
2280
|
controller.enqueue(
|
|
2281
2281
|
new TextEncoder().encode(
|
|
2282
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2282
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkIEF7VMTAjs.escapeHtml.call(void 0, retryRedirect.location)}"/>`
|
|
2283
2283
|
)
|
|
2284
2284
|
);
|
|
2285
2285
|
}
|
|
@@ -2310,7 +2310,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2310
2310
|
const decoded = getPayload();
|
|
2311
2311
|
const payload = useSafe(decoded);
|
|
2312
2312
|
if (payload.type === "redirect") {
|
|
2313
|
-
if (
|
|
2313
|
+
if (_chunkIEF7VMTAjs.hasInvalidProtocol.call(void 0, payload.location)) {
|
|
2314
2314
|
throw new Error("Invalid redirect location");
|
|
2315
2315
|
}
|
|
2316
2316
|
throw new Response(null, {
|
|
@@ -2323,7 +2323,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2323
2323
|
if (payload.type !== "render") return null;
|
|
2324
2324
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2325
2325
|
for (const match of payload.matches) {
|
|
2326
|
-
if (
|
|
2326
|
+
if (_chunkIEF7VMTAjs.shouldHydrateRouteLoader.call(void 0,
|
|
2327
2327
|
match.id,
|
|
2328
2328
|
match.clientLoader,
|
|
2329
2329
|
match.hasLoader,
|
|
@@ -2363,7 +2363,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
}))
|
|
2365
2365
|
};
|
|
2366
|
-
const router =
|
|
2366
|
+
const router = _chunkWICLSFKLjs.createStaticRouter.call(void 0,
|
|
2367
2367
|
payload.matches.reduceRight((previous, match) => {
|
|
2368
2368
|
const route = {
|
|
2369
2369
|
id: match.id,
|
|
@@ -2411,10 +2411,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2411
2411
|
mode: "lazy",
|
|
2412
2412
|
manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath
|
|
2413
2413
|
},
|
|
2414
|
-
routeModules:
|
|
2414
|
+
routeModules: _chunkGOIER6MLjs.createRSCRouteModules.call(void 0, payload)
|
|
2415
2415
|
};
|
|
2416
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2417
|
-
|
|
2416
|
+
return /* @__PURE__ */ React3.createElement(_chunkIEF7VMTAjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkGOIER6MLjs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkIEF7VMTAjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2417
|
+
_chunkWICLSFKLjs.StaticRouterProvider,
|
|
2418
2418
|
{
|
|
2419
2419
|
context,
|
|
2420
2420
|
router,
|
|
@@ -2559,4 +2559,4 @@ function isManifestRequest(url) {
|
|
|
2559
2559
|
|
|
2560
2560
|
|
|
2561
2561
|
|
|
2562
|
-
exports.Await =
|
|
2562
|
+
exports.Await = _chunkIEF7VMTAjs.Await; exports.BrowserRouter = _chunkWICLSFKLjs.BrowserRouter; exports.Form = _chunkWICLSFKLjs.Form; exports.HashRouter = _chunkWICLSFKLjs.HashRouter; exports.IDLE_BLOCKER = _chunkIEF7VMTAjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkIEF7VMTAjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkIEF7VMTAjs.IDLE_NAVIGATION; exports.Link = _chunkWICLSFKLjs.Link; exports.Links = _chunkIEF7VMTAjs.Links; exports.MemoryRouter = _chunkIEF7VMTAjs.MemoryRouter; exports.Meta = _chunkIEF7VMTAjs.Meta; exports.NavLink = _chunkWICLSFKLjs.NavLink; exports.Navigate = _chunkIEF7VMTAjs.Navigate; exports.NavigationType = _chunkIEF7VMTAjs.Action; exports.Outlet = _chunkIEF7VMTAjs.Outlet; exports.PrefetchPageLinks = _chunkIEF7VMTAjs.PrefetchPageLinks; exports.Route = _chunkIEF7VMTAjs.Route; exports.Router = _chunkIEF7VMTAjs.Router; exports.RouterContextProvider = _chunkIEF7VMTAjs.RouterContextProvider; exports.RouterProvider = _chunkIEF7VMTAjs.RouterProvider; exports.Routes = _chunkIEF7VMTAjs.Routes; exports.Scripts = _chunkIEF7VMTAjs.Scripts; exports.ScrollRestoration = _chunkWICLSFKLjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkWICLSFKLjs.StaticRouter; exports.StaticRouterProvider = _chunkWICLSFKLjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkIEF7VMTAjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkIEF7VMTAjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkIEF7VMTAjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkIEF7VMTAjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkIEF7VMTAjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkIEF7VMTAjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkIEF7VMTAjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkIEF7VMTAjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkGOIER6MLjs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkIEF7VMTAjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkIEF7VMTAjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkIEF7VMTAjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkIEF7VMTAjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkIEF7VMTAjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkIEF7VMTAjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkIEF7VMTAjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkIEF7VMTAjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkIEF7VMTAjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkIEF7VMTAjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkIEF7VMTAjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkIEF7VMTAjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkIEF7VMTAjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkIEF7VMTAjs.decodeViaTurboStream; exports.UNSAFE_getHydrationData = _chunkGOIER6MLjs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkIEF7VMTAjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkIEF7VMTAjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkIEF7VMTAjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkIEF7VMTAjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkIEF7VMTAjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkIEF7VMTAjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkIEF7VMTAjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkWICLSFKLjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkIEF7VMTAjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkIEF7VMTAjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkIEF7VMTAjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkWICLSFKLjs.createBrowserRouter; exports.createContext = _chunkIEF7VMTAjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkWICLSFKLjs.createHashRouter; exports.createMemoryRouter = _chunkIEF7VMTAjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkIEF7VMTAjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkIEF7VMTAjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkIEF7VMTAjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkWICLSFKLjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkWICLSFKLjs.createStaticHandler; exports.createStaticRouter = _chunkWICLSFKLjs.createStaticRouter; exports.data = _chunkIEF7VMTAjs.data; exports.generatePath = _chunkIEF7VMTAjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkIEF7VMTAjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkIEF7VMTAjs.matchPath; exports.matchRoutes = _chunkIEF7VMTAjs.matchRoutes; exports.parsePath = _chunkIEF7VMTAjs.parsePath; exports.redirect = _chunkIEF7VMTAjs.redirect; exports.redirectDocument = _chunkIEF7VMTAjs.redirectDocument; exports.renderMatches = _chunkIEF7VMTAjs.renderMatches; exports.replace = _chunkIEF7VMTAjs.replace; exports.resolvePath = _chunkIEF7VMTAjs.resolvePath; exports.unstable_HistoryRouter = _chunkWICLSFKLjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkWICLSFKLjs.usePrompt; exports.unstable_useRoute = _chunkIEF7VMTAjs.useRoute; exports.unstable_useRouterState = _chunkIEF7VMTAjs.useRouterState; exports.useActionData = _chunkIEF7VMTAjs.useActionData; exports.useAsyncError = _chunkIEF7VMTAjs.useAsyncError; exports.useAsyncValue = _chunkIEF7VMTAjs.useAsyncValue; exports.useBeforeUnload = _chunkWICLSFKLjs.useBeforeUnload; exports.useBlocker = _chunkIEF7VMTAjs.useBlocker; exports.useFetcher = _chunkWICLSFKLjs.useFetcher; exports.useFetchers = _chunkWICLSFKLjs.useFetchers; exports.useFormAction = _chunkWICLSFKLjs.useFormAction; exports.useHref = _chunkIEF7VMTAjs.useHref; exports.useInRouterContext = _chunkIEF7VMTAjs.useInRouterContext; exports.useLinkClickHandler = _chunkWICLSFKLjs.useLinkClickHandler; exports.useLoaderData = _chunkIEF7VMTAjs.useLoaderData; exports.useLocation = _chunkIEF7VMTAjs.useLocation; exports.useMatch = _chunkIEF7VMTAjs.useMatch; exports.useMatches = _chunkIEF7VMTAjs.useMatches; exports.useNavigate = _chunkIEF7VMTAjs.useNavigate; exports.useNavigation = _chunkIEF7VMTAjs.useNavigation; exports.useNavigationType = _chunkIEF7VMTAjs.useNavigationType; exports.useOutlet = _chunkIEF7VMTAjs.useOutlet; exports.useOutletContext = _chunkIEF7VMTAjs.useOutletContext; exports.useParams = _chunkIEF7VMTAjs.useParams; exports.useResolvedPath = _chunkIEF7VMTAjs.useResolvedPath; exports.useRevalidator = _chunkIEF7VMTAjs.useRevalidator; exports.useRouteError = _chunkIEF7VMTAjs.useRouteError; exports.useRouteLoaderData = _chunkIEF7VMTAjs.useRouteLoaderData; exports.useRoutes = _chunkIEF7VMTAjs.useRoutes; exports.useSearchParams = _chunkWICLSFKLjs.useSearchParams; exports.useSubmit = _chunkWICLSFKLjs.useSubmit; exports.useViewTransitionState = _chunkWICLSFKLjs.useViewTransitionState;
|