react-router 7.18.3 → 7.18.4
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 +7 -0
- package/dist/development/{chunk-7SIULPXI.js → chunk-GR4NQCSD.js} +7 -3
- package/dist/development/{chunk-HT4INDD5.mjs → chunk-H4DAEOV7.mjs} +5 -4
- package/dist/development/{chunk-YRTY65LJ.js → chunk-HQO5H5CC.js} +103 -103
- package/dist/{production/chunk-SJHDA7OG.js → development/chunk-LVPI3KDG.js} +7 -7
- package/dist/development/{chunk-BV7QT456.mjs → chunk-OB3PAWPO.mjs} +7 -3
- package/dist/development/dom-export.js +34 -34
- 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 +91 -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-LNBCQR6O.js → chunk-AOOKMWND.js} +103 -103
- package/dist/production/{chunk-UODOIDHR.mjs → chunk-G2MPF4YY.mjs} +5 -4
- package/dist/production/{chunk-EFMJ2SG4.mjs → chunk-Q34X6AWR.mjs} +7 -3
- package/dist/{development/chunk-QPXIKN46.js → production/chunk-QURBR4FZ.js} +7 -7
- package/dist/production/{chunk-6XRGXNVQ.js → chunk-YNGRUB6F.js} +7 -3
- package/dist/production/dom-export.js +34 -34
- 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 +91 -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/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.4
|
|
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 _chunkQURBR4FZjs = require('./chunk-QURBR4FZ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunkSJHDA7OGjs = require('./chunk-SJHDA7OG.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkAOOKMWNDjs = require('./chunk-AOOKMWND.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -154,7 +154,8 @@ var _chunkLNBCQR6Ojs = require('./chunk-LNBCQR6O.js');
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
|
|
158
|
+
var _chunkYNGRUB6Fjs = require('./chunk-YNGRUB6F.js');
|
|
158
159
|
|
|
159
160
|
// lib/dom/ssr/server.tsx
|
|
160
161
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -167,7 +168,7 @@ function ServerRouter({
|
|
|
167
168
|
url = new URL(url);
|
|
168
169
|
}
|
|
169
170
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
170
|
-
let routes =
|
|
171
|
+
let routes = _chunkYNGRUB6Fjs.createServerRoutes.call(void 0,
|
|
171
172
|
manifest.routes,
|
|
172
173
|
routeModules,
|
|
173
174
|
context.future,
|
|
@@ -180,7 +181,7 @@ function ServerRouter({
|
|
|
180
181
|
let routeId = match.route.id;
|
|
181
182
|
let route = routeModules[routeId];
|
|
182
183
|
let manifestRoute = context.manifest.routes[routeId];
|
|
183
|
-
if (route && manifestRoute &&
|
|
184
|
+
if (route && manifestRoute && _chunkYNGRUB6Fjs.shouldHydrateRouteLoader.call(void 0,
|
|
184
185
|
routeId,
|
|
185
186
|
route.clientLoader,
|
|
186
187
|
manifestRoute.hasLoader,
|
|
@@ -189,11 +190,11 @@ function ServerRouter({
|
|
|
189
190
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
|
-
let router =
|
|
193
|
+
let router = _chunkAOOKMWNDjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext, {
|
|
193
194
|
branches: context.branches
|
|
194
195
|
});
|
|
195
196
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
196
|
-
|
|
197
|
+
_chunkYNGRUB6Fjs.FrameworkContext.Provider,
|
|
197
198
|
{
|
|
198
199
|
value: {
|
|
199
200
|
manifest,
|
|
@@ -209,8 +210,8 @@ function ServerRouter({
|
|
|
209
210
|
renderMeta: context.renderMeta
|
|
210
211
|
}
|
|
211
212
|
},
|
|
212
|
-
/* @__PURE__ */ React.createElement(
|
|
213
|
-
|
|
213
|
+
/* @__PURE__ */ React.createElement(_chunkYNGRUB6Fjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
214
|
+
_chunkAOOKMWNDjs.StaticRouterProvider,
|
|
214
215
|
{
|
|
215
216
|
router,
|
|
216
217
|
context: context.staticHandlerContext,
|
|
@@ -218,7 +219,7 @@ function ServerRouter({
|
|
|
218
219
|
}
|
|
219
220
|
))
|
|
220
221
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
221
|
-
|
|
222
|
+
_chunkYNGRUB6Fjs.StreamTransfer,
|
|
222
223
|
{
|
|
223
224
|
context,
|
|
224
225
|
identifier: 0,
|
|
@@ -261,18 +262,18 @@ function createRoutesStub(routes, _context) {
|
|
|
261
262
|
let patched = processRoutes(
|
|
262
263
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
263
264
|
// types compared to `RouteObject`
|
|
264
|
-
|
|
265
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0,
|
|
265
|
+
_chunkYNGRUB6Fjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
266
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0, _chunkYNGRUB6Fjs.RouterContextProvider)() : {},
|
|
266
267
|
frameworkContextRef.current.manifest,
|
|
267
268
|
frameworkContextRef.current.routeModules
|
|
268
269
|
);
|
|
269
|
-
routerRef.current =
|
|
270
|
+
routerRef.current = _chunkYNGRUB6Fjs.createMemoryRouter.call(void 0, patched, {
|
|
270
271
|
initialEntries,
|
|
271
272
|
initialIndex,
|
|
272
273
|
hydrationData
|
|
273
274
|
});
|
|
274
275
|
}
|
|
275
|
-
return /* @__PURE__ */ React2.createElement(
|
|
276
|
+
return /* @__PURE__ */ React2.createElement(_chunkYNGRUB6Fjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkYNGRUB6Fjs.RouterProvider, { router: routerRef.current }));
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
279
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -286,9 +287,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
286
287
|
id: route.id,
|
|
287
288
|
path: route.path,
|
|
288
289
|
index: route.index,
|
|
289
|
-
Component: route.Component ?
|
|
290
|
-
HydrateFallback: route.HydrateFallback ?
|
|
291
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
290
|
+
Component: route.Component ? _chunkYNGRUB6Fjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
291
|
+
HydrateFallback: route.HydrateFallback ? _chunkYNGRUB6Fjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
292
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkYNGRUB6Fjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
292
293
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
293
294
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
294
295
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -323,7 +324,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
323
324
|
};
|
|
324
325
|
manifest.routes[newRoute.id] = entryRoute;
|
|
325
326
|
routeModules[route.id] = {
|
|
326
|
-
default: newRoute.Component ||
|
|
327
|
+
default: newRoute.Component || _chunkYNGRUB6Fjs.Outlet,
|
|
327
328
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
328
329
|
handle: route.handle,
|
|
329
330
|
links: route.links,
|
|
@@ -518,7 +519,7 @@ function myUnescape(value) {
|
|
|
518
519
|
return result;
|
|
519
520
|
}
|
|
520
521
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
521
|
-
|
|
522
|
+
_chunkYNGRUB6Fjs.warnOnce.call(void 0,
|
|
522
523
|
!expires,
|
|
523
524
|
`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
525
|
);
|
|
@@ -580,7 +581,7 @@ function invariant2(value, message) {
|
|
|
580
581
|
|
|
581
582
|
// lib/server-runtime/routeMatching.ts
|
|
582
583
|
function matchServerRoutes(manifest, dataRoutes, branches, pathname, basename) {
|
|
583
|
-
let matches =
|
|
584
|
+
let matches = _chunkYNGRUB6Fjs.matchRoutesImpl.call(void 0,
|
|
584
585
|
dataRoutes,
|
|
585
586
|
pathname,
|
|
586
587
|
_nullishCoalesce(basename, () => ( "/")),
|
|
@@ -611,7 +612,7 @@ async function callRouteHandler(handler, args, future) {
|
|
|
611
612
|
context: args.context,
|
|
612
613
|
pattern: args.pattern
|
|
613
614
|
});
|
|
614
|
-
if (
|
|
615
|
+
if (_chunkYNGRUB6Fjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkYNGRUB6Fjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
615
616
|
throw new Response(null, result.init);
|
|
616
617
|
}
|
|
617
618
|
return result;
|
|
@@ -714,17 +715,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
714
715
|
controller.close();
|
|
715
716
|
}
|
|
716
717
|
});
|
|
717
|
-
let decoded = await
|
|
718
|
+
let decoded = await _chunkYNGRUB6Fjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
718
719
|
let data2 = decoded.value;
|
|
719
|
-
if (data2 &&
|
|
720
|
-
let result = data2[
|
|
720
|
+
if (data2 && _chunkYNGRUB6Fjs.SingleFetchRedirectSymbol in data2) {
|
|
721
|
+
let result = data2[_chunkYNGRUB6Fjs.SingleFetchRedirectSymbol];
|
|
721
722
|
let init = { status: result.status };
|
|
722
723
|
if (result.reload) {
|
|
723
|
-
throw
|
|
724
|
+
throw _chunkYNGRUB6Fjs.redirectDocument.call(void 0, result.redirect, init);
|
|
724
725
|
} else if (result.replace) {
|
|
725
|
-
throw
|
|
726
|
+
throw _chunkYNGRUB6Fjs.replace.call(void 0, result.redirect, init);
|
|
726
727
|
} else {
|
|
727
|
-
throw
|
|
728
|
+
throw _chunkYNGRUB6Fjs.redirect.call(void 0, result.redirect, init);
|
|
728
729
|
}
|
|
729
730
|
} else {
|
|
730
731
|
invariant2(
|
|
@@ -767,7 +768,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
767
768
|
|
|
768
769
|
// lib/server-runtime/serverHandoff.ts
|
|
769
770
|
function createServerHandoffString(serverHandoff) {
|
|
770
|
-
return
|
|
771
|
+
return _chunkYNGRUB6Fjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
771
772
|
}
|
|
772
773
|
|
|
773
774
|
// lib/server-runtime/headers.ts
|
|
@@ -926,12 +927,12 @@ function getNormalizedPath(request, basename, future) {
|
|
|
926
927
|
pathname = pathname.replace(/\.data$/, "");
|
|
927
928
|
}
|
|
928
929
|
} else {
|
|
929
|
-
if (
|
|
930
|
+
if (_chunkYNGRUB6Fjs.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
|
|
930
931
|
pathname = basename;
|
|
931
932
|
} else if (pathname.endsWith(".data")) {
|
|
932
933
|
pathname = pathname.replace(/\.data$/, "");
|
|
933
934
|
}
|
|
934
|
-
if (
|
|
935
|
+
if (_chunkYNGRUB6Fjs.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
935
936
|
pathname = pathname.slice(0, -1);
|
|
936
937
|
}
|
|
937
938
|
}
|
|
@@ -951,7 +952,7 @@ function getNormalizedPath(request, basename, future) {
|
|
|
951
952
|
|
|
952
953
|
// lib/server-runtime/single-fetch.ts
|
|
953
954
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
954
|
-
...
|
|
955
|
+
..._chunkYNGRUB6Fjs.NO_BODY_STATUS_CODES,
|
|
955
956
|
304
|
|
956
957
|
]);
|
|
957
958
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -990,7 +991,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
990
991
|
return handleQueryError(error);
|
|
991
992
|
}
|
|
992
993
|
function handleQueryResult(result) {
|
|
993
|
-
return
|
|
994
|
+
return _chunkYNGRUB6Fjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
994
995
|
}
|
|
995
996
|
function handleQueryError(error, status = 500) {
|
|
996
997
|
handleError(error);
|
|
@@ -1002,12 +1003,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
1002
1003
|
}
|
|
1003
1004
|
function staticContextToResponse(context) {
|
|
1004
1005
|
let headers = getDocumentHeaders(context, build);
|
|
1005
|
-
if (
|
|
1006
|
+
if (_chunkYNGRUB6Fjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1006
1007
|
return new Response(null, { status: context.statusCode, headers });
|
|
1007
1008
|
}
|
|
1008
1009
|
if (context.errors) {
|
|
1009
1010
|
Object.values(context.errors).forEach((err) => {
|
|
1010
|
-
if (!
|
|
1011
|
+
if (!_chunkYNGRUB6Fjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1011
1012
|
handleError(err);
|
|
1012
1013
|
}
|
|
1013
1014
|
});
|
|
@@ -1055,7 +1056,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1055
1056
|
return handleQueryError(error);
|
|
1056
1057
|
}
|
|
1057
1058
|
function handleQueryResult(result) {
|
|
1058
|
-
return
|
|
1059
|
+
return _chunkYNGRUB6Fjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1059
1060
|
}
|
|
1060
1061
|
function handleQueryError(error) {
|
|
1061
1062
|
handleError(error);
|
|
@@ -1067,12 +1068,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1067
1068
|
}
|
|
1068
1069
|
function staticContextToResponse(context) {
|
|
1069
1070
|
let headers = getDocumentHeaders(context, build);
|
|
1070
|
-
if (
|
|
1071
|
+
if (_chunkYNGRUB6Fjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1071
1072
|
return new Response(null, { status: context.statusCode, headers });
|
|
1072
1073
|
}
|
|
1073
1074
|
if (context.errors) {
|
|
1074
1075
|
Object.values(context.errors).forEach((err) => {
|
|
1075
|
-
if (!
|
|
1076
|
+
if (!_chunkYNGRUB6Fjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1076
1077
|
handleError(err);
|
|
1077
1078
|
}
|
|
1078
1079
|
});
|
|
@@ -1136,15 +1137,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1136
1137
|
headers.delete("Location");
|
|
1137
1138
|
headers.set("Content-Type", "text/x-script");
|
|
1138
1139
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1139
|
-
result: request.method === "GET" ? { [
|
|
1140
|
+
result: request.method === "GET" ? { [_chunkYNGRUB6Fjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1140
1141
|
headers,
|
|
1141
|
-
status:
|
|
1142
|
+
status: _chunkYNGRUB6Fjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1142
1143
|
});
|
|
1143
1144
|
}
|
|
1144
1145
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1145
1146
|
let redirect2 = headers.get("Location");
|
|
1146
1147
|
if (basename) {
|
|
1147
|
-
redirect2 =
|
|
1148
|
+
redirect2 = _chunkYNGRUB6Fjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1148
1149
|
}
|
|
1149
1150
|
return {
|
|
1150
1151
|
redirect: redirect2,
|
|
@@ -1181,7 +1182,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1181
1182
|
clearTimeout(timeoutId);
|
|
1182
1183
|
requestSignal.removeEventListener("abort", abortControllerOnRequestAbort);
|
|
1183
1184
|
};
|
|
1184
|
-
return
|
|
1185
|
+
return _chunkYNGRUB6Fjs.encode.call(void 0, data2, {
|
|
1185
1186
|
signal: controller.signal,
|
|
1186
1187
|
onComplete: cleanupCallbacks,
|
|
1187
1188
|
plugins: [
|
|
@@ -1190,12 +1191,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1190
1191
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1191
1192
|
return ["SanitizedError", name, message, stack];
|
|
1192
1193
|
}
|
|
1193
|
-
if (value instanceof
|
|
1194
|
+
if (value instanceof _chunkYNGRUB6Fjs.ErrorResponseImpl) {
|
|
1194
1195
|
let { data: data3, status, statusText } = value;
|
|
1195
1196
|
return ["ErrorResponse", data3, status, statusText];
|
|
1196
1197
|
}
|
|
1197
|
-
if (value && typeof value === "object" &&
|
|
1198
|
-
return ["SingleFetchRedirect", value[
|
|
1198
|
+
if (value && typeof value === "object" && _chunkYNGRUB6Fjs.SingleFetchRedirectSymbol in value) {
|
|
1199
|
+
return ["SingleFetchRedirect", value[_chunkYNGRUB6Fjs.SingleFetchRedirectSymbol]];
|
|
1199
1200
|
}
|
|
1200
1201
|
}
|
|
1201
1202
|
],
|
|
@@ -1217,7 +1218,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1217
1218
|
function derive(build, mode) {
|
|
1218
1219
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1219
1220
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1220
|
-
let staticHandler =
|
|
1221
|
+
let staticHandler = _chunkYNGRUB6Fjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1221
1222
|
basename: build.basename,
|
|
1222
1223
|
instrumentations: build.entry.module.instrumentations,
|
|
1223
1224
|
future: build.future
|
|
@@ -1226,7 +1227,7 @@ function derive(build, mode) {
|
|
|
1226
1227
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1227
1228
|
console.error(
|
|
1228
1229
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1229
|
-
|
|
1230
|
+
_chunkYNGRUB6Fjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1230
1231
|
);
|
|
1231
1232
|
}
|
|
1232
1233
|
});
|
|
@@ -1244,14 +1245,14 @@ function derive(build, mode) {
|
|
|
1244
1245
|
});
|
|
1245
1246
|
};
|
|
1246
1247
|
if (build.future.v8_middleware) {
|
|
1247
|
-
if (initialContext && !(initialContext instanceof
|
|
1248
|
+
if (initialContext && !(initialContext instanceof _chunkYNGRUB6Fjs.RouterContextProvider)) {
|
|
1248
1249
|
let error = new Error(
|
|
1249
1250
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1250
1251
|
);
|
|
1251
1252
|
handleError(error);
|
|
1252
1253
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1253
1254
|
}
|
|
1254
|
-
loadContext = initialContext || new (0,
|
|
1255
|
+
loadContext = initialContext || new (0, _chunkYNGRUB6Fjs.RouterContextProvider)();
|
|
1255
1256
|
} else {
|
|
1256
1257
|
loadContext = initialContext || {};
|
|
1257
1258
|
}
|
|
@@ -1265,10 +1266,10 @@ function derive(build, mode) {
|
|
|
1265
1266
|
if (!build.ssr) {
|
|
1266
1267
|
let decodedPath = decodeURI(normalizedPathname);
|
|
1267
1268
|
if (build.basename && build.basename !== "/") {
|
|
1268
|
-
let strippedPath =
|
|
1269
|
+
let strippedPath = _chunkYNGRUB6Fjs.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1269
1270
|
if (strippedPath == null) {
|
|
1270
1271
|
errorHandler(
|
|
1271
|
-
new (0,
|
|
1272
|
+
new (0, _chunkYNGRUB6Fjs.ErrorResponseImpl)(
|
|
1272
1273
|
404,
|
|
1273
1274
|
"Not Found",
|
|
1274
1275
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
@@ -1291,7 +1292,7 @@ function derive(build, mode) {
|
|
|
1291
1292
|
} else if (!build.prerender.includes(decodedPath.replace(/\/$/, "")) && !build.prerender.includes(decodedPath.replace(/[^/]$/, "/"))) {
|
|
1292
1293
|
if (requestUrl.pathname.endsWith(".data")) {
|
|
1293
1294
|
errorHandler(
|
|
1294
|
-
new (0,
|
|
1295
|
+
new (0, _chunkYNGRUB6Fjs.ErrorResponseImpl)(
|
|
1295
1296
|
404,
|
|
1296
1297
|
"Not Found",
|
|
1297
1298
|
`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.`
|
|
@@ -1311,7 +1312,7 @@ function derive(build, mode) {
|
|
|
1311
1312
|
}
|
|
1312
1313
|
}
|
|
1313
1314
|
}
|
|
1314
|
-
let manifestUrl =
|
|
1315
|
+
let manifestUrl = _chunkYNGRUB6Fjs.getManifestPath.call(void 0,
|
|
1315
1316
|
build.routeDiscovery.manifestPath,
|
|
1316
1317
|
build.basename
|
|
1317
1318
|
);
|
|
@@ -1350,7 +1351,7 @@ function derive(build, mode) {
|
|
|
1350
1351
|
loadContext,
|
|
1351
1352
|
handleError
|
|
1352
1353
|
);
|
|
1353
|
-
if (
|
|
1354
|
+
if (_chunkYNGRUB6Fjs.isRedirectResponse.call(void 0, response)) {
|
|
1354
1355
|
response = generateSingleFetchRedirectResponse(
|
|
1355
1356
|
response,
|
|
1356
1357
|
request,
|
|
@@ -1364,7 +1365,7 @@ function derive(build, mode) {
|
|
|
1364
1365
|
params: matches ? matches[0].params : {},
|
|
1365
1366
|
request
|
|
1366
1367
|
});
|
|
1367
|
-
if (
|
|
1368
|
+
if (_chunkYNGRUB6Fjs.isRedirectResponse.call(void 0, response)) {
|
|
1368
1369
|
response = generateSingleFetchRedirectResponse(
|
|
1369
1370
|
response,
|
|
1370
1371
|
request,
|
|
@@ -1412,7 +1413,7 @@ function derive(build, mode) {
|
|
|
1412
1413
|
return response;
|
|
1413
1414
|
};
|
|
1414
1415
|
if (build.entry.module.instrumentations) {
|
|
1415
|
-
requestHandler =
|
|
1416
|
+
requestHandler = _chunkYNGRUB6Fjs.instrumentHandler.call(void 0,
|
|
1416
1417
|
requestHandler,
|
|
1417
1418
|
build.entry.module.instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1418
1419
|
);
|
|
@@ -1449,7 +1450,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1449
1450
|
};
|
|
1450
1451
|
};
|
|
1451
1452
|
async function handleManifestRequest(build, dataRoutes, branches, url) {
|
|
1452
|
-
if (url.toString().length >
|
|
1453
|
+
if (url.toString().length > _chunkYNGRUB6Fjs.URL_LIMIT) {
|
|
1453
1454
|
return new Response(null, {
|
|
1454
1455
|
statusText: "Bad Request",
|
|
1455
1456
|
status: 400
|
|
@@ -1499,7 +1500,7 @@ async function handleManifestRequest(build, dataRoutes, branches, url) {
|
|
|
1499
1500
|
async function handleSingleFetchRequest(serverMode, build, staticHandler, request, normalizedPath, loadContext, handleError) {
|
|
1500
1501
|
let handlerUrl = new URL(request.url);
|
|
1501
1502
|
handlerUrl.pathname = normalizedPath;
|
|
1502
|
-
let response =
|
|
1503
|
+
let response = _chunkYNGRUB6Fjs.isMutationMethod.call(void 0, request.method) ? await singleFetchAction(
|
|
1503
1504
|
build,
|
|
1504
1505
|
serverMode,
|
|
1505
1506
|
staticHandler,
|
|
@@ -1520,7 +1521,7 @@ async function handleSingleFetchRequest(serverMode, build, staticHandler, reques
|
|
|
1520
1521
|
}
|
|
1521
1522
|
async function handleDocumentRequest(serverMode, build, staticHandler, request, loadContext, handleError, isSpaMode, criticalCss) {
|
|
1522
1523
|
try {
|
|
1523
|
-
if (
|
|
1524
|
+
if (_chunkYNGRUB6Fjs.isMutationMethod.call(void 0, request.method)) {
|
|
1524
1525
|
try {
|
|
1525
1526
|
throwIfPotentialCSRFAttack(
|
|
1526
1527
|
request,
|
|
@@ -1536,7 +1537,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1536
1537
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1537
1538
|
try {
|
|
1538
1539
|
let innerResult = await query(request);
|
|
1539
|
-
if (!
|
|
1540
|
+
if (!_chunkYNGRUB6Fjs.isResponse.call(void 0, innerResult)) {
|
|
1540
1541
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1541
1542
|
}
|
|
1542
1543
|
return innerResult;
|
|
@@ -1547,7 +1548,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1547
1548
|
} : void 0,
|
|
1548
1549
|
normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1549
1550
|
});
|
|
1550
|
-
if (!
|
|
1551
|
+
if (!_chunkYNGRUB6Fjs.isResponse.call(void 0, result)) {
|
|
1551
1552
|
result = await renderHtml(result, isSpaMode);
|
|
1552
1553
|
}
|
|
1553
1554
|
return result;
|
|
@@ -1562,7 +1563,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1562
1563
|
}
|
|
1563
1564
|
if (context.errors) {
|
|
1564
1565
|
Object.values(context.errors).forEach((err) => {
|
|
1565
|
-
if (!
|
|
1566
|
+
if (!_chunkYNGRUB6Fjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1566
1567
|
handleError(err);
|
|
1567
1568
|
}
|
|
1568
1569
|
});
|
|
@@ -1615,10 +1616,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1615
1616
|
} catch (error) {
|
|
1616
1617
|
handleError(error);
|
|
1617
1618
|
let errorForSecondRender = error;
|
|
1618
|
-
if (
|
|
1619
|
+
if (_chunkYNGRUB6Fjs.isResponse.call(void 0, error)) {
|
|
1619
1620
|
try {
|
|
1620
1621
|
let data2 = await unwrapResponse(error);
|
|
1621
|
-
errorForSecondRender = new (0,
|
|
1622
|
+
errorForSecondRender = new (0, _chunkYNGRUB6Fjs.ErrorResponseImpl)(
|
|
1622
1623
|
error.status,
|
|
1623
1624
|
error.statusText,
|
|
1624
1625
|
data2
|
|
@@ -1626,7 +1627,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1626
1627
|
} catch (e) {
|
|
1627
1628
|
}
|
|
1628
1629
|
}
|
|
1629
|
-
context =
|
|
1630
|
+
context = _chunkYNGRUB6Fjs.getStaticContextFromError.call(void 0,
|
|
1630
1631
|
staticHandler.dataRoutes,
|
|
1631
1632
|
context,
|
|
1632
1633
|
errorForSecondRender
|
|
@@ -1686,7 +1687,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1686
1687
|
return handleQueryRouteError(error);
|
|
1687
1688
|
}
|
|
1688
1689
|
function handleQueryRouteResult(result) {
|
|
1689
|
-
if (
|
|
1690
|
+
if (_chunkYNGRUB6Fjs.isResponse.call(void 0, result)) {
|
|
1690
1691
|
return result;
|
|
1691
1692
|
}
|
|
1692
1693
|
if (typeof result === "string") {
|
|
@@ -1695,10 +1696,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1695
1696
|
return Response.json(result);
|
|
1696
1697
|
}
|
|
1697
1698
|
function handleQueryRouteError(error) {
|
|
1698
|
-
if (
|
|
1699
|
+
if (_chunkYNGRUB6Fjs.isResponse.call(void 0, error)) {
|
|
1699
1700
|
return error;
|
|
1700
1701
|
}
|
|
1701
|
-
if (
|
|
1702
|
+
if (_chunkYNGRUB6Fjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1702
1703
|
handleError(error);
|
|
1703
1704
|
return errorResponseToJson(error, serverMode);
|
|
1704
1705
|
}
|
|
@@ -1821,7 +1822,7 @@ function createSessionStorage({
|
|
|
1821
1822
|
};
|
|
1822
1823
|
}
|
|
1823
1824
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1824
|
-
|
|
1825
|
+
_chunkYNGRUB6Fjs.warnOnce.call(void 0,
|
|
1825
1826
|
cookie.isSigned,
|
|
1826
1827
|
`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.`
|
|
1827
1828
|
);
|
|
@@ -2102,8 +2103,8 @@ async function routeRSCServerRequest({
|
|
|
2102
2103
|
const payload = await createFromReadableStream(
|
|
2103
2104
|
detectRedirectResponse.body
|
|
2104
2105
|
);
|
|
2105
|
-
if (serverResponse.status ===
|
|
2106
|
-
if (
|
|
2106
|
+
if (serverResponse.status === _chunkYNGRUB6Fjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2107
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, payload.location)) {
|
|
2107
2108
|
throw new Error("Invalid redirect location");
|
|
2108
2109
|
}
|
|
2109
2110
|
const headers2 = new Headers(serverResponse.headers);
|
|
@@ -2124,11 +2125,11 @@ async function routeRSCServerRequest({
|
|
|
2124
2125
|
let html = await renderHTML(getPayload, {
|
|
2125
2126
|
onError(error) {
|
|
2126
2127
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2127
|
-
renderRedirect =
|
|
2128
|
+
renderRedirect = _chunkYNGRUB6Fjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2128
2129
|
if (renderRedirect) {
|
|
2129
2130
|
return error.digest;
|
|
2130
2131
|
}
|
|
2131
|
-
let routeErrorResponse =
|
|
2132
|
+
let routeErrorResponse = _chunkYNGRUB6Fjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2132
2133
|
if (routeErrorResponse) {
|
|
2133
2134
|
renderError = routeErrorResponse;
|
|
2134
2135
|
status = routeErrorResponse.status;
|
|
@@ -2149,7 +2150,7 @@ async function routeRSCServerRequest({
|
|
|
2149
2150
|
}
|
|
2150
2151
|
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
2151
2152
|
if (renderRedirect) {
|
|
2152
|
-
if (
|
|
2153
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2153
2154
|
throw new Error("Invalid redirect location");
|
|
2154
2155
|
}
|
|
2155
2156
|
headers.set("Location", renderRedirect.location);
|
|
@@ -2161,12 +2162,12 @@ async function routeRSCServerRequest({
|
|
|
2161
2162
|
const redirectTransform = new TransformStream({
|
|
2162
2163
|
flush(controller) {
|
|
2163
2164
|
if (renderRedirect) {
|
|
2164
|
-
if (
|
|
2165
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2165
2166
|
return;
|
|
2166
2167
|
}
|
|
2167
2168
|
controller.enqueue(
|
|
2168
2169
|
new TextEncoder().encode(
|
|
2169
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2170
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkYNGRUB6Fjs.escapeAttribute.call(void 0, renderRedirect.location)}"/>`
|
|
2170
2171
|
)
|
|
2171
2172
|
);
|
|
2172
2173
|
}
|
|
@@ -2193,7 +2194,7 @@ async function routeRSCServerRequest({
|
|
|
2193
2194
|
return error;
|
|
2194
2195
|
}
|
|
2195
2196
|
if (renderRedirect) {
|
|
2196
|
-
if (
|
|
2197
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, renderRedirect.location)) {
|
|
2197
2198
|
throw new Error("Invalid redirect location");
|
|
2198
2199
|
}
|
|
2199
2200
|
return new Response(`Redirect: ${renderRedirect.location}`, {
|
|
@@ -2205,7 +2206,7 @@ async function routeRSCServerRequest({
|
|
|
2205
2206
|
}
|
|
2206
2207
|
try {
|
|
2207
2208
|
let normalizedError = _nullishCoalesce(renderError, () => ( error));
|
|
2208
|
-
let [status, statusText] =
|
|
2209
|
+
let [status, statusText] = _chunkYNGRUB6Fjs.isRouteErrorResponse.call(void 0, normalizedError) ? [normalizedError.status, normalizedError.statusText] : [500, ""];
|
|
2209
2210
|
let retryRedirect;
|
|
2210
2211
|
let reactHeaders = new Headers();
|
|
2211
2212
|
const html = await renderHTML(
|
|
@@ -2242,11 +2243,11 @@ async function routeRSCServerRequest({
|
|
|
2242
2243
|
{
|
|
2243
2244
|
onError(error2) {
|
|
2244
2245
|
if (typeof error2 === "object" && error2 && "digest" in error2 && typeof error2.digest === "string") {
|
|
2245
|
-
retryRedirect =
|
|
2246
|
+
retryRedirect = _chunkYNGRUB6Fjs.decodeRedirectErrorDigest.call(void 0, error2.digest);
|
|
2246
2247
|
if (retryRedirect) {
|
|
2247
2248
|
return error2.digest;
|
|
2248
2249
|
}
|
|
2249
|
-
let routeErrorResponse =
|
|
2250
|
+
let routeErrorResponse = _chunkYNGRUB6Fjs.decodeRouteErrorResponseDigest.call(void 0,
|
|
2250
2251
|
error2.digest
|
|
2251
2252
|
);
|
|
2252
2253
|
if (routeErrorResponse) {
|
|
@@ -2269,7 +2270,7 @@ async function routeRSCServerRequest({
|
|
|
2269
2270
|
}
|
|
2270
2271
|
headers.set("Content-Type", "text/html; charset=utf-8");
|
|
2271
2272
|
if (retryRedirect) {
|
|
2272
|
-
if (
|
|
2273
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, retryRedirect.location)) {
|
|
2273
2274
|
throw new Error("Invalid redirect location");
|
|
2274
2275
|
}
|
|
2275
2276
|
headers.set("Location", retryRedirect.location);
|
|
@@ -2281,12 +2282,12 @@ async function routeRSCServerRequest({
|
|
|
2281
2282
|
const retryRedirectTransform = new TransformStream({
|
|
2282
2283
|
flush(controller) {
|
|
2283
2284
|
if (retryRedirect) {
|
|
2284
|
-
if (
|
|
2285
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, retryRedirect.location)) {
|
|
2285
2286
|
return;
|
|
2286
2287
|
}
|
|
2287
2288
|
controller.enqueue(
|
|
2288
2289
|
new TextEncoder().encode(
|
|
2289
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2290
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkYNGRUB6Fjs.escapeAttribute.call(void 0, retryRedirect.location)}"/>`
|
|
2290
2291
|
)
|
|
2291
2292
|
);
|
|
2292
2293
|
}
|
|
@@ -2317,7 +2318,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2317
2318
|
const decoded = getPayload();
|
|
2318
2319
|
const payload = useSafe(decoded);
|
|
2319
2320
|
if (payload.type === "redirect") {
|
|
2320
|
-
if (
|
|
2321
|
+
if (_chunkYNGRUB6Fjs.hasInvalidProtocol.call(void 0, payload.location)) {
|
|
2321
2322
|
throw new Error("Invalid redirect location");
|
|
2322
2323
|
}
|
|
2323
2324
|
throw new Response(null, {
|
|
@@ -2330,7 +2331,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2330
2331
|
if (payload.type !== "render") return null;
|
|
2331
2332
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2332
2333
|
for (const match of payload.matches) {
|
|
2333
|
-
if (
|
|
2334
|
+
if (_chunkYNGRUB6Fjs.shouldHydrateRouteLoader.call(void 0,
|
|
2334
2335
|
match.id,
|
|
2335
2336
|
match.clientLoader,
|
|
2336
2337
|
match.hasLoader,
|
|
@@ -2370,7 +2371,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2370
2371
|
}
|
|
2371
2372
|
}))
|
|
2372
2373
|
};
|
|
2373
|
-
const router =
|
|
2374
|
+
const router = _chunkAOOKMWNDjs.createStaticRouter.call(void 0,
|
|
2374
2375
|
payload.matches.reduceRight((previous, match) => {
|
|
2375
2376
|
const route = {
|
|
2376
2377
|
id: match.id,
|
|
@@ -2418,10 +2419,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2418
2419
|
mode: "lazy",
|
|
2419
2420
|
manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath
|
|
2420
2421
|
},
|
|
2421
|
-
routeModules:
|
|
2422
|
+
routeModules: _chunkQURBR4FZjs.createRSCRouteModules.call(void 0, payload)
|
|
2422
2423
|
};
|
|
2423
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2424
|
-
|
|
2424
|
+
return /* @__PURE__ */ React3.createElement(_chunkYNGRUB6Fjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkQURBR4FZjs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkYNGRUB6Fjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2425
|
+
_chunkAOOKMWNDjs.StaticRouterProvider,
|
|
2425
2426
|
{
|
|
2426
2427
|
context,
|
|
2427
2428
|
router,
|
|
@@ -2566,4 +2567,4 @@ function isManifestRequest(url) {
|
|
|
2566
2567
|
|
|
2567
2568
|
|
|
2568
2569
|
|
|
2569
|
-
exports.Await =
|
|
2570
|
+
exports.Await = _chunkYNGRUB6Fjs.Await; exports.BrowserRouter = _chunkAOOKMWNDjs.BrowserRouter; exports.Form = _chunkAOOKMWNDjs.Form; exports.HashRouter = _chunkAOOKMWNDjs.HashRouter; exports.IDLE_BLOCKER = _chunkYNGRUB6Fjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkYNGRUB6Fjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkYNGRUB6Fjs.IDLE_NAVIGATION; exports.Link = _chunkAOOKMWNDjs.Link; exports.Links = _chunkYNGRUB6Fjs.Links; exports.MemoryRouter = _chunkYNGRUB6Fjs.MemoryRouter; exports.Meta = _chunkYNGRUB6Fjs.Meta; exports.NavLink = _chunkAOOKMWNDjs.NavLink; exports.Navigate = _chunkYNGRUB6Fjs.Navigate; exports.NavigationType = _chunkYNGRUB6Fjs.Action; exports.Outlet = _chunkYNGRUB6Fjs.Outlet; exports.PrefetchPageLinks = _chunkYNGRUB6Fjs.PrefetchPageLinks; exports.Route = _chunkYNGRUB6Fjs.Route; exports.Router = _chunkYNGRUB6Fjs.Router; exports.RouterContextProvider = _chunkYNGRUB6Fjs.RouterContextProvider; exports.RouterProvider = _chunkYNGRUB6Fjs.RouterProvider; exports.Routes = _chunkYNGRUB6Fjs.Routes; exports.Scripts = _chunkYNGRUB6Fjs.Scripts; exports.ScrollRestoration = _chunkAOOKMWNDjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkAOOKMWNDjs.StaticRouter; exports.StaticRouterProvider = _chunkAOOKMWNDjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkYNGRUB6Fjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkYNGRUB6Fjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkYNGRUB6Fjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkYNGRUB6Fjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkYNGRUB6Fjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkYNGRUB6Fjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkYNGRUB6Fjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkYNGRUB6Fjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkQURBR4FZjs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkYNGRUB6Fjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkYNGRUB6Fjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkYNGRUB6Fjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkYNGRUB6Fjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkYNGRUB6Fjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkYNGRUB6Fjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkYNGRUB6Fjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkYNGRUB6Fjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkYNGRUB6Fjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkYNGRUB6Fjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkYNGRUB6Fjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkYNGRUB6Fjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkYNGRUB6Fjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkYNGRUB6Fjs.decodeViaTurboStream; exports.UNSAFE_getHydrationData = _chunkQURBR4FZjs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkYNGRUB6Fjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkYNGRUB6Fjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkYNGRUB6Fjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkYNGRUB6Fjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkYNGRUB6Fjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkYNGRUB6Fjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkYNGRUB6Fjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkAOOKMWNDjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkYNGRUB6Fjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkYNGRUB6Fjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkYNGRUB6Fjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkAOOKMWNDjs.createBrowserRouter; exports.createContext = _chunkYNGRUB6Fjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkAOOKMWNDjs.createHashRouter; exports.createMemoryRouter = _chunkYNGRUB6Fjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkYNGRUB6Fjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkYNGRUB6Fjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkYNGRUB6Fjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkAOOKMWNDjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkAOOKMWNDjs.createStaticHandler; exports.createStaticRouter = _chunkAOOKMWNDjs.createStaticRouter; exports.data = _chunkYNGRUB6Fjs.data; exports.generatePath = _chunkYNGRUB6Fjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkYNGRUB6Fjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkYNGRUB6Fjs.matchPath; exports.matchRoutes = _chunkYNGRUB6Fjs.matchRoutes; exports.parsePath = _chunkYNGRUB6Fjs.parsePath; exports.redirect = _chunkYNGRUB6Fjs.redirect; exports.redirectDocument = _chunkYNGRUB6Fjs.redirectDocument; exports.renderMatches = _chunkYNGRUB6Fjs.renderMatches; exports.replace = _chunkYNGRUB6Fjs.replace; exports.resolvePath = _chunkYNGRUB6Fjs.resolvePath; exports.unstable_HistoryRouter = _chunkAOOKMWNDjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkAOOKMWNDjs.usePrompt; exports.unstable_useRoute = _chunkYNGRUB6Fjs.useRoute; exports.unstable_useRouterState = _chunkYNGRUB6Fjs.useRouterState; exports.useActionData = _chunkYNGRUB6Fjs.useActionData; exports.useAsyncError = _chunkYNGRUB6Fjs.useAsyncError; exports.useAsyncValue = _chunkYNGRUB6Fjs.useAsyncValue; exports.useBeforeUnload = _chunkAOOKMWNDjs.useBeforeUnload; exports.useBlocker = _chunkYNGRUB6Fjs.useBlocker; exports.useFetcher = _chunkAOOKMWNDjs.useFetcher; exports.useFetchers = _chunkAOOKMWNDjs.useFetchers; exports.useFormAction = _chunkAOOKMWNDjs.useFormAction; exports.useHref = _chunkYNGRUB6Fjs.useHref; exports.useInRouterContext = _chunkYNGRUB6Fjs.useInRouterContext; exports.useLinkClickHandler = _chunkAOOKMWNDjs.useLinkClickHandler; exports.useLoaderData = _chunkYNGRUB6Fjs.useLoaderData; exports.useLocation = _chunkYNGRUB6Fjs.useLocation; exports.useMatch = _chunkYNGRUB6Fjs.useMatch; exports.useMatches = _chunkYNGRUB6Fjs.useMatches; exports.useNavigate = _chunkYNGRUB6Fjs.useNavigate; exports.useNavigation = _chunkYNGRUB6Fjs.useNavigation; exports.useNavigationType = _chunkYNGRUB6Fjs.useNavigationType; exports.useOutlet = _chunkYNGRUB6Fjs.useOutlet; exports.useOutletContext = _chunkYNGRUB6Fjs.useOutletContext; exports.useParams = _chunkYNGRUB6Fjs.useParams; exports.useResolvedPath = _chunkYNGRUB6Fjs.useResolvedPath; exports.useRevalidator = _chunkYNGRUB6Fjs.useRevalidator; exports.useRouteError = _chunkYNGRUB6Fjs.useRouteError; exports.useRouteLoaderData = _chunkYNGRUB6Fjs.useRouteLoaderData; exports.useRoutes = _chunkYNGRUB6Fjs.useRoutes; exports.useSearchParams = _chunkAOOKMWNDjs.useSearchParams; exports.useSubmit = _chunkAOOKMWNDjs.useSubmit; exports.useViewTransitionState = _chunkAOOKMWNDjs.useViewTransitionState;
|