react-router 7.8.2-pre.1 → 7.8.2
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 +11 -10
- package/dist/development/{chunk-7QFLQWWN.mjs → chunk-5UALIXAM.mjs} +2 -2
- package/dist/development/{chunk-IVOVRAK2.js → chunk-CSDGKXLR.js} +131 -131
- package/dist/development/{chunk-ZVD2KUIM.mjs → chunk-PVWAREVJ.mjs} +2 -2
- package/dist/development/{chunk-ZVMYUFGA.js → chunk-ZO66TDGB.js} +1 -1
- package/dist/development/dom-export.js +3 -3
- 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 +95 -95
- 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-IK7IYG3O.js → chunk-JNT5PWCQ.js} +131 -131
- package/dist/production/{chunk-LR4OTIMG.mjs → chunk-KWHRV2I7.mjs} +2 -2
- package/dist/production/{chunk-VHBXOG2Z.mjs → chunk-REDRD2MB.mjs} +2 -2
- package/dist/production/{chunk-5WPGWA23.js → chunk-Z56HUDN5.js} +1 -1
- package/dist/production/dom-export.js +3 -3
- 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 +95 -95
- 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
|
@@ -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.8.2
|
|
2
|
+
* react-router v7.8.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkCSDGKXLRjs = require('./chunk-CSDGKXLR.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -143,7 +143,7 @@ var _chunkIVOVRAK2js = require('./chunk-IVOVRAK2.js');
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
var
|
|
146
|
+
var _chunkZO66TDGBjs = require('./chunk-ZO66TDGB.js');
|
|
147
147
|
|
|
148
148
|
// lib/dom/ssr/server.tsx
|
|
149
149
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -156,7 +156,7 @@ function ServerRouter({
|
|
|
156
156
|
url = new URL(url);
|
|
157
157
|
}
|
|
158
158
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
159
|
-
let routes =
|
|
159
|
+
let routes = _chunkZO66TDGBjs.createServerRoutes.call(void 0,
|
|
160
160
|
manifest.routes,
|
|
161
161
|
routeModules,
|
|
162
162
|
context.future,
|
|
@@ -169,7 +169,7 @@ function ServerRouter({
|
|
|
169
169
|
let routeId = match.route.id;
|
|
170
170
|
let route = routeModules[routeId];
|
|
171
171
|
let manifestRoute = context.manifest.routes[routeId];
|
|
172
|
-
if (route && manifestRoute &&
|
|
172
|
+
if (route && manifestRoute && _chunkZO66TDGBjs.shouldHydrateRouteLoader.call(void 0,
|
|
173
173
|
routeId,
|
|
174
174
|
route.clientLoader,
|
|
175
175
|
manifestRoute.hasLoader,
|
|
@@ -178,9 +178,9 @@ function ServerRouter({
|
|
|
178
178
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
let router =
|
|
181
|
+
let router = _chunkCSDGKXLRjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
182
182
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
183
|
-
|
|
183
|
+
_chunkZO66TDGBjs.FrameworkContext.Provider,
|
|
184
184
|
{
|
|
185
185
|
value: {
|
|
186
186
|
manifest,
|
|
@@ -195,8 +195,8 @@ function ServerRouter({
|
|
|
195
195
|
renderMeta: context.renderMeta
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
|
-
/* @__PURE__ */ React.createElement(
|
|
199
|
-
|
|
198
|
+
/* @__PURE__ */ React.createElement(_chunkZO66TDGBjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
199
|
+
_chunkCSDGKXLRjs.StaticRouterProvider,
|
|
200
200
|
{
|
|
201
201
|
router,
|
|
202
202
|
context: context.staticHandlerContext,
|
|
@@ -204,7 +204,7 @@ function ServerRouter({
|
|
|
204
204
|
}
|
|
205
205
|
))
|
|
206
206
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
207
|
-
|
|
207
|
+
_chunkZO66TDGBjs.StreamTransfer,
|
|
208
208
|
{
|
|
209
209
|
context,
|
|
210
210
|
identifier: 0,
|
|
@@ -246,18 +246,18 @@ function createRoutesStub(routes, _context) {
|
|
|
246
246
|
let patched = processRoutes(
|
|
247
247
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
248
248
|
// types compared to `AgnosticRouteObject`
|
|
249
|
-
|
|
250
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0,
|
|
249
|
+
_chunkZO66TDGBjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
250
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0, _chunkZO66TDGBjs.unstable_RouterContextProvider)() : {},
|
|
251
251
|
frameworkContextRef.current.manifest,
|
|
252
252
|
frameworkContextRef.current.routeModules
|
|
253
253
|
);
|
|
254
|
-
routerRef.current =
|
|
254
|
+
routerRef.current = _chunkCSDGKXLRjs.createMemoryRouter.call(void 0, patched, {
|
|
255
255
|
initialEntries,
|
|
256
256
|
initialIndex,
|
|
257
257
|
hydrationData
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
return /* @__PURE__ */ React2.createElement(
|
|
260
|
+
return /* @__PURE__ */ React2.createElement(_chunkZO66TDGBjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkCSDGKXLRjs.RouterProvider, { router: routerRef.current }));
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -271,9 +271,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
271
271
|
id: route.id,
|
|
272
272
|
path: route.path,
|
|
273
273
|
index: route.index,
|
|
274
|
-
Component: route.Component ?
|
|
275
|
-
HydrateFallback: route.HydrateFallback ?
|
|
276
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
274
|
+
Component: route.Component ? _chunkCSDGKXLRjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
275
|
+
HydrateFallback: route.HydrateFallback ? _chunkCSDGKXLRjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
276
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkCSDGKXLRjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
277
277
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
278
278
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
279
279
|
handle: route.handle,
|
|
@@ -302,7 +302,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
302
302
|
};
|
|
303
303
|
manifest.routes[newRoute.id] = entryRoute;
|
|
304
304
|
routeModules[route.id] = {
|
|
305
|
-
default: newRoute.Component ||
|
|
305
|
+
default: newRoute.Component || _chunkCSDGKXLRjs.Outlet,
|
|
306
306
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
307
307
|
handle: route.handle,
|
|
308
308
|
links: route.links,
|
|
@@ -497,7 +497,7 @@ function myUnescape(value) {
|
|
|
497
497
|
return result;
|
|
498
498
|
}
|
|
499
499
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
500
|
-
|
|
500
|
+
_chunkZO66TDGBjs.warnOnce.call(void 0,
|
|
501
501
|
!expires,
|
|
502
502
|
`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.`
|
|
503
503
|
);
|
|
@@ -551,7 +551,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
551
551
|
let entries = Object.entries(errors);
|
|
552
552
|
let serialized = {};
|
|
553
553
|
for (let [key, val] of entries) {
|
|
554
|
-
if (
|
|
554
|
+
if (_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, val)) {
|
|
555
555
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
556
556
|
} else if (val instanceof Error) {
|
|
557
557
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -576,7 +576,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
576
576
|
|
|
577
577
|
// lib/server-runtime/routeMatching.ts
|
|
578
578
|
function matchServerRoutes(routes, pathname, basename) {
|
|
579
|
-
let matches =
|
|
579
|
+
let matches = _chunkZO66TDGBjs.matchRoutes.call(void 0,
|
|
580
580
|
routes,
|
|
581
581
|
pathname,
|
|
582
582
|
basename
|
|
@@ -596,7 +596,7 @@ async function callRouteHandler(handler, args) {
|
|
|
596
596
|
params: args.params,
|
|
597
597
|
context: args.context
|
|
598
598
|
});
|
|
599
|
-
if (
|
|
599
|
+
if (_chunkZO66TDGBjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkZO66TDGBjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
600
600
|
throw new Response(null, result.init);
|
|
601
601
|
}
|
|
602
602
|
return result;
|
|
@@ -715,17 +715,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
715
715
|
controller.close();
|
|
716
716
|
}
|
|
717
717
|
});
|
|
718
|
-
let decoded = await
|
|
718
|
+
let decoded = await _chunkZO66TDGBjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
719
719
|
let data2 = decoded.value;
|
|
720
|
-
if (data2 &&
|
|
721
|
-
let result = data2[
|
|
720
|
+
if (data2 && _chunkZO66TDGBjs.SingleFetchRedirectSymbol in data2) {
|
|
721
|
+
let result = data2[_chunkZO66TDGBjs.SingleFetchRedirectSymbol];
|
|
722
722
|
let init = { status: result.status };
|
|
723
723
|
if (result.reload) {
|
|
724
|
-
throw
|
|
724
|
+
throw _chunkZO66TDGBjs.redirectDocument.call(void 0, result.redirect, init);
|
|
725
725
|
} else if (result.replace) {
|
|
726
|
-
throw
|
|
726
|
+
throw _chunkZO66TDGBjs.replace.call(void 0, result.redirect, init);
|
|
727
727
|
} else {
|
|
728
|
-
throw
|
|
728
|
+
throw _chunkZO66TDGBjs.redirect.call(void 0, result.redirect, init);
|
|
729
729
|
}
|
|
730
730
|
} else {
|
|
731
731
|
invariant2(
|
|
@@ -854,7 +854,7 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
854
854
|
|
|
855
855
|
// lib/server-runtime/single-fetch.ts
|
|
856
856
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
857
|
-
...
|
|
857
|
+
..._chunkZO66TDGBjs.NO_BODY_STATUS_CODES,
|
|
858
858
|
304
|
|
859
859
|
]);
|
|
860
860
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -884,7 +884,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
884
884
|
return handleQueryError(error);
|
|
885
885
|
}
|
|
886
886
|
function handleQueryResult(result) {
|
|
887
|
-
return
|
|
887
|
+
return _chunkZO66TDGBjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
888
888
|
}
|
|
889
889
|
function handleQueryError(error) {
|
|
890
890
|
handleError(error);
|
|
@@ -896,12 +896,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
896
896
|
}
|
|
897
897
|
function staticContextToResponse(context) {
|
|
898
898
|
let headers = getDocumentHeaders(context, build);
|
|
899
|
-
if (
|
|
899
|
+
if (_chunkZO66TDGBjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
900
900
|
return new Response(null, { status: context.statusCode, headers });
|
|
901
901
|
}
|
|
902
902
|
if (context.errors) {
|
|
903
903
|
Object.values(context.errors).forEach((err) => {
|
|
904
|
-
if (!
|
|
904
|
+
if (!_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
905
905
|
handleError(err);
|
|
906
906
|
}
|
|
907
907
|
});
|
|
@@ -948,7 +948,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
948
948
|
return handleQueryError(error);
|
|
949
949
|
}
|
|
950
950
|
function handleQueryResult(result) {
|
|
951
|
-
return
|
|
951
|
+
return _chunkZO66TDGBjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
952
952
|
}
|
|
953
953
|
function handleQueryError(error) {
|
|
954
954
|
handleError(error);
|
|
@@ -960,12 +960,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
960
960
|
}
|
|
961
961
|
function staticContextToResponse(context) {
|
|
962
962
|
let headers = getDocumentHeaders(context, build);
|
|
963
|
-
if (
|
|
963
|
+
if (_chunkZO66TDGBjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
964
964
|
return new Response(null, { status: context.statusCode, headers });
|
|
965
965
|
}
|
|
966
966
|
if (context.errors) {
|
|
967
967
|
Object.values(context.errors).forEach((err) => {
|
|
968
|
-
if (!
|
|
968
|
+
if (!_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
969
969
|
handleError(err);
|
|
970
970
|
}
|
|
971
971
|
});
|
|
@@ -1029,15 +1029,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1029
1029
|
headers.delete("Location");
|
|
1030
1030
|
headers.set("Content-Type", "text/x-script");
|
|
1031
1031
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1032
|
-
result: request.method === "GET" ? { [
|
|
1032
|
+
result: request.method === "GET" ? { [_chunkZO66TDGBjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1033
1033
|
headers,
|
|
1034
|
-
status:
|
|
1034
|
+
status: _chunkZO66TDGBjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1038
1038
|
let redirect2 = headers.get("Location");
|
|
1039
1039
|
if (basename) {
|
|
1040
|
-
redirect2 =
|
|
1040
|
+
redirect2 = _chunkZO66TDGBjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1041
1041
|
}
|
|
1042
1042
|
return {
|
|
1043
1043
|
redirect: redirect2,
|
|
@@ -1063,7 +1063,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1063
1063
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1064
1064
|
);
|
|
1065
1065
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1066
|
-
return
|
|
1066
|
+
return _chunkZO66TDGBjs.encode.call(void 0, data2, {
|
|
1067
1067
|
signal: controller.signal,
|
|
1068
1068
|
plugins: [
|
|
1069
1069
|
(value) => {
|
|
@@ -1071,12 +1071,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1071
1071
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1072
1072
|
return ["SanitizedError", name, message, stack];
|
|
1073
1073
|
}
|
|
1074
|
-
if (value instanceof
|
|
1074
|
+
if (value instanceof _chunkZO66TDGBjs.ErrorResponseImpl) {
|
|
1075
1075
|
let { data: data3, status, statusText } = value;
|
|
1076
1076
|
return ["ErrorResponse", data3, status, statusText];
|
|
1077
1077
|
}
|
|
1078
|
-
if (value && typeof value === "object" &&
|
|
1079
|
-
return ["SingleFetchRedirect", value[
|
|
1078
|
+
if (value && typeof value === "object" && _chunkZO66TDGBjs.SingleFetchRedirectSymbol in value) {
|
|
1079
|
+
return ["SingleFetchRedirect", value[_chunkZO66TDGBjs.SingleFetchRedirectSymbol]];
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
],
|
|
@@ -1099,14 +1099,14 @@ function derive(build, mode) {
|
|
|
1099
1099
|
let routes = createRoutes(build.routes);
|
|
1100
1100
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1101
1101
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1102
|
-
let staticHandler =
|
|
1102
|
+
let staticHandler = _chunkZO66TDGBjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1103
1103
|
basename: build.basename
|
|
1104
1104
|
});
|
|
1105
1105
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1106
1106
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1107
1107
|
console.error(
|
|
1108
1108
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1109
|
-
|
|
1109
|
+
_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1110
1110
|
);
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
@@ -1152,36 +1152,36 @@ var createRequestHandler = (build, mode) => {
|
|
|
1152
1152
|
});
|
|
1153
1153
|
};
|
|
1154
1154
|
if (_build.future.unstable_middleware) {
|
|
1155
|
-
if (initialContext && !(initialContext instanceof
|
|
1155
|
+
if (initialContext && !(initialContext instanceof _chunkZO66TDGBjs.unstable_RouterContextProvider)) {
|
|
1156
1156
|
let error = new Error(
|
|
1157
1157
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `unstable_RouterContextProvider` from your `getLoadContext` function."
|
|
1158
1158
|
);
|
|
1159
1159
|
handleError(error);
|
|
1160
1160
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1161
1161
|
}
|
|
1162
|
-
loadContext = initialContext || new (0,
|
|
1162
|
+
loadContext = initialContext || new (0, _chunkZO66TDGBjs.unstable_RouterContextProvider)();
|
|
1163
1163
|
} else {
|
|
1164
1164
|
loadContext = initialContext || {};
|
|
1165
1165
|
}
|
|
1166
1166
|
let url = new URL(request.url);
|
|
1167
1167
|
let normalizedBasename = _build.basename || "/";
|
|
1168
1168
|
let normalizedPath = url.pathname;
|
|
1169
|
-
if (
|
|
1169
|
+
if (_chunkZO66TDGBjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1170
1170
|
normalizedPath = normalizedBasename;
|
|
1171
1171
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1172
1172
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1173
1173
|
}
|
|
1174
|
-
if (
|
|
1174
|
+
if (_chunkZO66TDGBjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1175
1175
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1176
1176
|
}
|
|
1177
1177
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1178
1178
|
if (!_build.ssr) {
|
|
1179
1179
|
let decodedPath = decodeURI(normalizedPath);
|
|
1180
1180
|
if (normalizedBasename !== "/") {
|
|
1181
|
-
let strippedPath =
|
|
1181
|
+
let strippedPath = _chunkZO66TDGBjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
|
|
1182
1182
|
if (strippedPath == null) {
|
|
1183
1183
|
errorHandler(
|
|
1184
|
-
new (0,
|
|
1184
|
+
new (0, _chunkZO66TDGBjs.ErrorResponseImpl)(
|
|
1185
1185
|
404,
|
|
1186
1186
|
"Not Found",
|
|
1187
1187
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
|
|
@@ -1204,7 +1204,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1204
1204
|
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1205
1205
|
if (url.pathname.endsWith(".data")) {
|
|
1206
1206
|
errorHandler(
|
|
1207
|
-
new (0,
|
|
1207
|
+
new (0, _chunkZO66TDGBjs.ErrorResponseImpl)(
|
|
1208
1208
|
404,
|
|
1209
1209
|
"Not Found",
|
|
1210
1210
|
`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.`
|
|
@@ -1224,7 +1224,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
let manifestUrl =
|
|
1227
|
+
let manifestUrl = _chunkZO66TDGBjs.getManifestPath.call(void 0,
|
|
1228
1228
|
_build.routeDiscovery.manifestPath,
|
|
1229
1229
|
normalizedBasename
|
|
1230
1230
|
);
|
|
@@ -1259,7 +1259,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1259
1259
|
loadContext,
|
|
1260
1260
|
handleError
|
|
1261
1261
|
);
|
|
1262
|
-
if (
|
|
1262
|
+
if (_chunkZO66TDGBjs.isRedirectResponse.call(void 0, response)) {
|
|
1263
1263
|
response = generateSingleFetchRedirectResponse(
|
|
1264
1264
|
response,
|
|
1265
1265
|
request,
|
|
@@ -1273,7 +1273,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1273
1273
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1274
1274
|
request
|
|
1275
1275
|
});
|
|
1276
|
-
if (
|
|
1276
|
+
if (_chunkZO66TDGBjs.isRedirectResponse.call(void 0, response)) {
|
|
1277
1277
|
response = generateSingleFetchRedirectResponse(
|
|
1278
1278
|
response,
|
|
1279
1279
|
request,
|
|
@@ -1390,7 +1390,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1390
1390
|
unstable_generateMiddlewareResponse: build.future.unstable_middleware ? async (query) => {
|
|
1391
1391
|
try {
|
|
1392
1392
|
let innerResult = await query(request);
|
|
1393
|
-
if (!
|
|
1393
|
+
if (!_chunkZO66TDGBjs.isResponse.call(void 0, innerResult)) {
|
|
1394
1394
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1395
1395
|
}
|
|
1396
1396
|
return innerResult;
|
|
@@ -1400,7 +1400,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1400
1400
|
}
|
|
1401
1401
|
} : void 0
|
|
1402
1402
|
});
|
|
1403
|
-
if (!
|
|
1403
|
+
if (!_chunkZO66TDGBjs.isResponse.call(void 0, result)) {
|
|
1404
1404
|
result = await renderHtml(result, isSpaMode);
|
|
1405
1405
|
}
|
|
1406
1406
|
return result;
|
|
@@ -1415,7 +1415,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1415
1415
|
}
|
|
1416
1416
|
if (context.errors) {
|
|
1417
1417
|
Object.values(context.errors).forEach((err) => {
|
|
1418
|
-
if (!
|
|
1418
|
+
if (!_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1419
1419
|
handleError(err);
|
|
1420
1420
|
}
|
|
1421
1421
|
});
|
|
@@ -1467,10 +1467,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1467
1467
|
} catch (error) {
|
|
1468
1468
|
handleError(error);
|
|
1469
1469
|
let errorForSecondRender = error;
|
|
1470
|
-
if (
|
|
1470
|
+
if (_chunkZO66TDGBjs.isResponse.call(void 0, error)) {
|
|
1471
1471
|
try {
|
|
1472
1472
|
let data2 = await unwrapResponse(error);
|
|
1473
|
-
errorForSecondRender = new (0,
|
|
1473
|
+
errorForSecondRender = new (0, _chunkZO66TDGBjs.ErrorResponseImpl)(
|
|
1474
1474
|
error.status,
|
|
1475
1475
|
error.statusText,
|
|
1476
1476
|
data2
|
|
@@ -1478,7 +1478,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1478
1478
|
} catch (e) {
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
context =
|
|
1481
|
+
context = _chunkZO66TDGBjs.getStaticContextFromError.call(void 0,
|
|
1482
1482
|
staticHandler.dataRoutes,
|
|
1483
1483
|
context,
|
|
1484
1484
|
errorForSecondRender
|
|
@@ -1537,7 +1537,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1537
1537
|
return handleQueryRouteError(error);
|
|
1538
1538
|
}
|
|
1539
1539
|
function handleQueryRouteResult(result) {
|
|
1540
|
-
if (
|
|
1540
|
+
if (_chunkZO66TDGBjs.isResponse.call(void 0, result)) {
|
|
1541
1541
|
return result;
|
|
1542
1542
|
}
|
|
1543
1543
|
if (typeof result === "string") {
|
|
@@ -1546,11 +1546,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1546
1546
|
return Response.json(result);
|
|
1547
1547
|
}
|
|
1548
1548
|
function handleQueryRouteError(error) {
|
|
1549
|
-
if (
|
|
1549
|
+
if (_chunkZO66TDGBjs.isResponse.call(void 0, error)) {
|
|
1550
1550
|
error.headers.set("X-Remix-Catch", "yes");
|
|
1551
1551
|
return error;
|
|
1552
1552
|
}
|
|
1553
|
-
if (
|
|
1553
|
+
if (_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1554
1554
|
handleError(error);
|
|
1555
1555
|
return errorResponseToJson(error, serverMode);
|
|
1556
1556
|
}
|
|
@@ -1676,7 +1676,7 @@ function createSessionStorage({
|
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
1678
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1679
|
-
|
|
1679
|
+
_chunkZO66TDGBjs.warnOnce.call(void 0,
|
|
1680
1680
|
cookie.isSigned,
|
|
1681
1681
|
`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.`
|
|
1682
1682
|
);
|
|
@@ -1771,12 +1771,12 @@ function getHydrationData(state, routes, getRouteInfo, location2, basename, isSp
|
|
|
1771
1771
|
...state,
|
|
1772
1772
|
loaderData: { ...state.loaderData }
|
|
1773
1773
|
};
|
|
1774
|
-
let initialMatches =
|
|
1774
|
+
let initialMatches = _chunkZO66TDGBjs.matchRoutes.call(void 0, routes, location2, basename);
|
|
1775
1775
|
if (initialMatches) {
|
|
1776
1776
|
for (let match of initialMatches) {
|
|
1777
1777
|
let routeId = match.route.id;
|
|
1778
1778
|
let routeInfo = getRouteInfo(routeId);
|
|
1779
|
-
if (
|
|
1779
|
+
if (_chunkZO66TDGBjs.shouldHydrateRouteLoader.call(void 0,
|
|
1780
1780
|
routeId,
|
|
1781
1781
|
routeInfo.clientLoader,
|
|
1782
1782
|
routeInfo.hasLoader,
|
|
@@ -1854,7 +1854,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
);
|
|
1857
|
-
if (
|
|
1857
|
+
if (_chunkZO66TDGBjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1858
1858
|
return /* @__PURE__ */ React.default.createElement(
|
|
1859
1859
|
ErrorWrapper,
|
|
1860
1860
|
{
|
|
@@ -1862,7 +1862,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1862
1862
|
title: "Unhandled Thrown Response!"
|
|
1863
1863
|
},
|
|
1864
1864
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1865
|
-
|
|
1865
|
+
_chunkZO66TDGBjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1866
1866
|
);
|
|
1867
1867
|
}
|
|
1868
1868
|
let errorInstance;
|
|
@@ -1888,7 +1888,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1888
1888
|
function RSCDefaultRootErrorBoundary({
|
|
1889
1889
|
hasRootLayout
|
|
1890
1890
|
}) {
|
|
1891
|
-
let error =
|
|
1891
|
+
let error = _chunkZO66TDGBjs.useRouteError.call(void 0, );
|
|
1892
1892
|
if (hasRootLayout === void 0) {
|
|
1893
1893
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1894
1894
|
}
|
|
@@ -2032,7 +2032,7 @@ function createRouterFromPayload({
|
|
|
2032
2032
|
populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
|
|
2033
2033
|
let patches = /* @__PURE__ */ new Map();
|
|
2034
2034
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
2035
|
-
|
|
2035
|
+
_chunkZO66TDGBjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
2036
2036
|
if (!patches.has(patch.parentId)) {
|
|
2037
2037
|
patches.set(patch.parentId, []);
|
|
2038
2038
|
}
|
|
@@ -2054,11 +2054,11 @@ function createRouterFromPayload({
|
|
|
2054
2054
|
}
|
|
2055
2055
|
return [route];
|
|
2056
2056
|
}, []);
|
|
2057
|
-
globalVar.__reactRouterDataRouter =
|
|
2057
|
+
globalVar.__reactRouterDataRouter = _chunkZO66TDGBjs.createRouter.call(void 0, {
|
|
2058
2058
|
routes,
|
|
2059
2059
|
unstable_getContext,
|
|
2060
2060
|
basename: payload.basename,
|
|
2061
|
-
history:
|
|
2061
|
+
history: _chunkZO66TDGBjs.createBrowserHistory.call(void 0, ),
|
|
2062
2062
|
hydrationData: getHydrationData(
|
|
2063
2063
|
{
|
|
2064
2064
|
loaderData: payload.loaderData,
|
|
@@ -2068,7 +2068,7 @@ function createRouterFromPayload({
|
|
|
2068
2068
|
routes,
|
|
2069
2069
|
(routeId) => {
|
|
2070
2070
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2071
|
-
|
|
2071
|
+
_chunkZO66TDGBjs.invariant.call(void 0, match, "Route not found in payload");
|
|
2072
2072
|
return {
|
|
2073
2073
|
clientLoader: match.clientLoader,
|
|
2074
2074
|
hasLoader: match.hasLoader,
|
|
@@ -2166,9 +2166,9 @@ function createRouterFromPayload({
|
|
|
2166
2166
|
routeModules: globalVar.__reactRouterRouteModules
|
|
2167
2167
|
};
|
|
2168
2168
|
}
|
|
2169
|
-
var renderedRoutesContext =
|
|
2169
|
+
var renderedRoutesContext = _chunkZO66TDGBjs.unstable_createContext.call(void 0, );
|
|
2170
2170
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2171
|
-
let dataStrategy =
|
|
2171
|
+
let dataStrategy = _chunkZO66TDGBjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2172
2172
|
getRouter,
|
|
2173
2173
|
(match) => {
|
|
2174
2174
|
let M = match;
|
|
@@ -2222,20 +2222,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2222
2222
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2223
2223
|
return async (args, basename, targetRoutes) => {
|
|
2224
2224
|
let { request, context } = args;
|
|
2225
|
-
let url =
|
|
2225
|
+
let url = _chunkZO66TDGBjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2226
2226
|
if (request.method === "GET") {
|
|
2227
|
-
url =
|
|
2227
|
+
url = _chunkZO66TDGBjs.stripIndexParam.call(void 0, url);
|
|
2228
2228
|
if (targetRoutes) {
|
|
2229
2229
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
2232
|
let res = await fetchImplementation(
|
|
2233
|
-
new Request(url, await
|
|
2233
|
+
new Request(url, await _chunkZO66TDGBjs.createRequestInit.call(void 0, request))
|
|
2234
2234
|
);
|
|
2235
2235
|
if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
|
|
2236
|
-
throw new (0,
|
|
2236
|
+
throw new (0, _chunkZO66TDGBjs.ErrorResponseImpl)(404, "Not Found", true);
|
|
2237
2237
|
}
|
|
2238
|
-
|
|
2238
|
+
_chunkZO66TDGBjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
2239
2239
|
try {
|
|
2240
2240
|
const payload = await createFromReadableStream(res.body, {
|
|
2241
2241
|
temporaryReferences: void 0
|
|
@@ -2259,7 +2259,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2259
2259
|
}
|
|
2260
2260
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2261
2261
|
let results = { routes: {} };
|
|
2262
|
-
const dataKey =
|
|
2262
|
+
const dataKey = _chunkZO66TDGBjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2263
2263
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2264
2264
|
results.routes[routeId] = { data: data2 };
|
|
2265
2265
|
}
|
|
@@ -2297,7 +2297,7 @@ function RSCHydratedRouter({
|
|
|
2297
2297
|
]
|
|
2298
2298
|
);
|
|
2299
2299
|
React4.useEffect(() => {
|
|
2300
|
-
|
|
2300
|
+
_chunkZO66TDGBjs.setIsHydrated.call(void 0, );
|
|
2301
2301
|
}, []);
|
|
2302
2302
|
React4.useLayoutEffect(() => {
|
|
2303
2303
|
const globalVar = window;
|
|
@@ -2384,7 +2384,7 @@ function RSCHydratedRouter({
|
|
|
2384
2384
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2385
2385
|
routeModules
|
|
2386
2386
|
};
|
|
2387
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2387
|
+
return /* @__PURE__ */ React4.createElement(_chunkZO66TDGBjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkZO66TDGBjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkCSDGKXLRjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2388
2388
|
}
|
|
2389
2389
|
function createRouteFromServerManifest(match, payload) {
|
|
2390
2390
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2395,7 +2395,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2395
2395
|
// the server loader flow regardless of whether the client loader calls
|
|
2396
2396
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
2397
2397
|
match.hasComponent && !match.element;
|
|
2398
|
-
|
|
2398
|
+
_chunkZO66TDGBjs.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
2399
2399
|
populateRSCRouteModules(window.__reactRouterRouteModules, match);
|
|
2400
2400
|
let dataRoute = {
|
|
2401
2401
|
id: match.id,
|
|
@@ -2446,7 +2446,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2446
2446
|
return await callSingleFetch(singleFetch);
|
|
2447
2447
|
}
|
|
2448
2448
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2449
|
-
throw
|
|
2449
|
+
throw _chunkZO66TDGBjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
2450
2450
|
},
|
|
2451
2451
|
path: match.path,
|
|
2452
2452
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2459,7 +2459,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2459
2459
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2460
2460
|
};
|
|
2461
2461
|
if (typeof dataRoute.loader === "function") {
|
|
2462
|
-
dataRoute.loader.hydrate =
|
|
2462
|
+
dataRoute.loader.hydrate = _chunkZO66TDGBjs.shouldHydrateRouteLoader.call(void 0,
|
|
2463
2463
|
match.id,
|
|
2464
2464
|
match.clientLoader,
|
|
2465
2465
|
match.hasLoader,
|
|
@@ -2469,7 +2469,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2469
2469
|
return dataRoute;
|
|
2470
2470
|
}
|
|
2471
2471
|
function callSingleFetch(singleFetch) {
|
|
2472
|
-
|
|
2472
|
+
_chunkZO66TDGBjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2473
2473
|
return singleFetch();
|
|
2474
2474
|
}
|
|
2475
2475
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2477,7 +2477,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2477
2477
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2478
2478
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2479
2479
|
console.error(msg);
|
|
2480
|
-
throw new (0,
|
|
2480
|
+
throw new (0, _chunkZO66TDGBjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2672,7 +2672,7 @@ async function routeRSCServerRequest({
|
|
|
2672
2672
|
};
|
|
2673
2673
|
try {
|
|
2674
2674
|
const payload = await getPayload();
|
|
2675
|
-
if (serverResponse.status ===
|
|
2675
|
+
if (serverResponse.status === _chunkZO66TDGBjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2676
2676
|
const headers2 = new Headers(serverResponse.headers);
|
|
2677
2677
|
headers2.delete("Content-Encoding");
|
|
2678
2678
|
headers2.delete("Content-Length");
|
|
@@ -2722,7 +2722,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2722
2722
|
if (payload.type !== "render") return null;
|
|
2723
2723
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2724
2724
|
for (const match of payload.matches) {
|
|
2725
|
-
if (
|
|
2725
|
+
if (_chunkZO66TDGBjs.shouldHydrateRouteLoader.call(void 0,
|
|
2726
2726
|
match.id,
|
|
2727
2727
|
match.clientLoader,
|
|
2728
2728
|
match.hasLoader,
|
|
@@ -2756,7 +2756,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
}))
|
|
2758
2758
|
};
|
|
2759
|
-
const router =
|
|
2759
|
+
const router = _chunkCSDGKXLRjs.createStaticRouter.call(void 0,
|
|
2760
2760
|
payload.matches.reduceRight((previous, match) => {
|
|
2761
2761
|
const route = {
|
|
2762
2762
|
id: match.id,
|
|
@@ -2800,8 +2800,8 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2800
2800
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2801
2801
|
routeModules: createRSCRouteModules(payload)
|
|
2802
2802
|
};
|
|
2803
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2804
|
-
|
|
2803
|
+
return /* @__PURE__ */ React5.createElement(_chunkZO66TDGBjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkZO66TDGBjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2804
|
+
_chunkCSDGKXLRjs.StaticRouterProvider,
|
|
2805
2805
|
{
|
|
2806
2806
|
context,
|
|
2807
2807
|
router,
|
|
@@ -2859,7 +2859,7 @@ function deserializeErrors(errors) {
|
|
|
2859
2859
|
let serialized = {};
|
|
2860
2860
|
for (let [key, val] of entries) {
|
|
2861
2861
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2862
|
-
serialized[key] = new (0,
|
|
2862
|
+
serialized[key] = new (0, _chunkZO66TDGBjs.ErrorResponseImpl)(
|
|
2863
2863
|
val.status,
|
|
2864
2864
|
val.statusText,
|
|
2865
2865
|
val.data,
|
|
@@ -3017,4 +3017,4 @@ function deserializeErrors(errors) {
|
|
|
3017
3017
|
|
|
3018
3018
|
|
|
3019
3019
|
|
|
3020
|
-
exports.Await =
|
|
3020
|
+
exports.Await = _chunkCSDGKXLRjs.Await; exports.BrowserRouter = _chunkCSDGKXLRjs.BrowserRouter; exports.Form = _chunkCSDGKXLRjs.Form; exports.HashRouter = _chunkCSDGKXLRjs.HashRouter; exports.IDLE_BLOCKER = _chunkZO66TDGBjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkZO66TDGBjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkZO66TDGBjs.IDLE_NAVIGATION; exports.Link = _chunkCSDGKXLRjs.Link; exports.Links = _chunkZO66TDGBjs.Links; exports.MemoryRouter = _chunkCSDGKXLRjs.MemoryRouter; exports.Meta = _chunkZO66TDGBjs.Meta; exports.NavLink = _chunkCSDGKXLRjs.NavLink; exports.Navigate = _chunkCSDGKXLRjs.Navigate; exports.NavigationType = _chunkZO66TDGBjs.Action; exports.Outlet = _chunkCSDGKXLRjs.Outlet; exports.PrefetchPageLinks = _chunkZO66TDGBjs.PrefetchPageLinks; exports.Route = _chunkCSDGKXLRjs.Route; exports.Router = _chunkCSDGKXLRjs.Router; exports.RouterProvider = _chunkCSDGKXLRjs.RouterProvider; exports.Routes = _chunkCSDGKXLRjs.Routes; exports.Scripts = _chunkZO66TDGBjs.Scripts; exports.ScrollRestoration = _chunkCSDGKXLRjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkCSDGKXLRjs.StaticRouter; exports.StaticRouterProvider = _chunkCSDGKXLRjs.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunkZO66TDGBjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkZO66TDGBjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkZO66TDGBjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkZO66TDGBjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkZO66TDGBjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkZO66TDGBjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkZO66TDGBjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkZO66TDGBjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkZO66TDGBjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkZO66TDGBjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkZO66TDGBjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkCSDGKXLRjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkCSDGKXLRjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkCSDGKXLRjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkZO66TDGBjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkZO66TDGBjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkZO66TDGBjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkZO66TDGBjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkZO66TDGBjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkZO66TDGBjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkZO66TDGBjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkCSDGKXLRjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkZO66TDGBjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkCSDGKXLRjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkZO66TDGBjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkZO66TDGBjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkCSDGKXLRjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkCSDGKXLRjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkCSDGKXLRjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkCSDGKXLRjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkCSDGKXLRjs.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkCSDGKXLRjs.createHashRouter; exports.createMemoryRouter = _chunkCSDGKXLRjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkZO66TDGBjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkCSDGKXLRjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkCSDGKXLRjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkCSDGKXLRjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkCSDGKXLRjs.createStaticHandler; exports.createStaticRouter = _chunkCSDGKXLRjs.createStaticRouter; exports.data = _chunkZO66TDGBjs.data; exports.generatePath = _chunkZO66TDGBjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkZO66TDGBjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkZO66TDGBjs.matchPath; exports.matchRoutes = _chunkZO66TDGBjs.matchRoutes; exports.parsePath = _chunkZO66TDGBjs.parsePath; exports.redirect = _chunkZO66TDGBjs.redirect; exports.redirectDocument = _chunkZO66TDGBjs.redirectDocument; exports.renderMatches = _chunkCSDGKXLRjs.renderMatches; exports.replace = _chunkZO66TDGBjs.replace; exports.resolvePath = _chunkZO66TDGBjs.resolvePath; exports.unstable_HistoryRouter = _chunkCSDGKXLRjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunkZO66TDGBjs.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunkZO66TDGBjs.unstable_createContext; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkCSDGKXLRjs.usePrompt; exports.useActionData = _chunkZO66TDGBjs.useActionData; exports.useAsyncError = _chunkZO66TDGBjs.useAsyncError; exports.useAsyncValue = _chunkZO66TDGBjs.useAsyncValue; exports.useBeforeUnload = _chunkCSDGKXLRjs.useBeforeUnload; exports.useBlocker = _chunkZO66TDGBjs.useBlocker; exports.useFetcher = _chunkCSDGKXLRjs.useFetcher; exports.useFetchers = _chunkCSDGKXLRjs.useFetchers; exports.useFormAction = _chunkCSDGKXLRjs.useFormAction; exports.useHref = _chunkZO66TDGBjs.useHref; exports.useInRouterContext = _chunkZO66TDGBjs.useInRouterContext; exports.useLinkClickHandler = _chunkCSDGKXLRjs.useLinkClickHandler; exports.useLoaderData = _chunkZO66TDGBjs.useLoaderData; exports.useLocation = _chunkZO66TDGBjs.useLocation; exports.useMatch = _chunkZO66TDGBjs.useMatch; exports.useMatches = _chunkZO66TDGBjs.useMatches; exports.useNavigate = _chunkZO66TDGBjs.useNavigate; exports.useNavigation = _chunkZO66TDGBjs.useNavigation; exports.useNavigationType = _chunkZO66TDGBjs.useNavigationType; exports.useOutlet = _chunkZO66TDGBjs.useOutlet; exports.useOutletContext = _chunkZO66TDGBjs.useOutletContext; exports.useParams = _chunkZO66TDGBjs.useParams; exports.useResolvedPath = _chunkZO66TDGBjs.useResolvedPath; exports.useRevalidator = _chunkZO66TDGBjs.useRevalidator; exports.useRouteError = _chunkZO66TDGBjs.useRouteError; exports.useRouteLoaderData = _chunkZO66TDGBjs.useRouteLoaderData; exports.useRoutes = _chunkZO66TDGBjs.useRoutes; exports.useSearchParams = _chunkCSDGKXLRjs.useSearchParams; exports.useSubmit = _chunkCSDGKXLRjs.useSubmit; exports.useViewTransitionState = _chunkCSDGKXLRjs.useViewTransitionState;
|