zudoku 0.39.5 → 0.40.0
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/dist/app/entry.client.js +2 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/config/config.d.ts +3 -1
- package/dist/config/loader.d.ts +1 -0
- package/dist/config/loader.js +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +59 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/common.d.ts +7 -51
- package/dist/config/validators/common.js +1 -7
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +2 -18
- package/dist/index.d.ts +1 -1
- package/dist/lib/authentication/providers/clerk.js +2 -2
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/components/Footer.js +2 -2
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Layout.js +2 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Search.js +7 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -0
- package/dist/lib/util/MdxComponents.js +2 -0
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/vite/plugin-api.js +34 -13
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +1 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +3 -3
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +1 -1
- package/lib/{AuthenticationPlugin-foqdvvkf.js → AuthenticationPlugin-CJOFRBk3.js} +4 -4
- package/lib/{AuthenticationPlugin-foqdvvkf.js.map → AuthenticationPlugin-CJOFRBk3.js.map} +1 -1
- package/lib/{Button-Fp19CMUr.js → Button-BBNrKpQd.js} +2 -2
- package/lib/{Button-Fp19CMUr.js.map → Button-BBNrKpQd.js.map} +1 -1
- package/lib/{Callout-B2vsR09t.js → Callout-D3Ja4OPX.js} +14 -13
- package/lib/{Callout-B2vsR09t.js.map → Callout-D3Ja4OPX.js.map} +1 -1
- package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-D06WK_Wo.js} +2 -2
- package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
- package/lib/{Dialog-sbgekbjb.js → Dialog-ByYz4ABw.js} +2 -2
- package/lib/{Dialog-sbgekbjb.js.map → Dialog-ByYz4ABw.js.map} +1 -1
- package/lib/{Drawer-kDAfOq_2.js → Drawer-CEwbkLDb.js} +2 -2
- package/lib/Drawer-CEwbkLDb.js.map +1 -0
- package/lib/{Markdown-aF5FdsNi.js → Markdown-C5h6bxbE.js} +4239 -4073
- package/lib/Markdown-C5h6bxbE.js.map +1 -0
- package/lib/{MdxPage-Vw_dc9Yz.js → MdxPage-B66ht0D_.js} +9 -9
- package/lib/{MdxPage-Vw_dc9Yz.js.map → MdxPage-B66ht0D_.js.map} +1 -1
- package/lib/{OasProvider-C5paEivQ.js → OasProvider-BKPF0Pbt.js} +6 -6
- package/lib/{OasProvider-C5paEivQ.js.map → OasProvider-BKPF0Pbt.js.map} +1 -1
- package/lib/{OperationList-Ds9Izgkn.js → OperationList-0bhBU7ME.js} +16 -16
- package/lib/{OperationList-Ds9Izgkn.js.map → OperationList-0bhBU7ME.js.map} +1 -1
- package/lib/{Pagination-SdlocK96.js → Pagination-Bt1czAiJ.js} +4 -4
- package/lib/{Pagination-SdlocK96.js.map → Pagination-Bt1czAiJ.js.map} +1 -1
- package/lib/{RouteGuard-CqZPoZYJ.js → RouteGuard-BZ_VsiXc.js} +6 -6
- package/lib/{RouteGuard-CqZPoZYJ.js.map → RouteGuard-BZ_VsiXc.js.map} +1 -1
- package/lib/{SchemaList-NZbDXAV5.js → SchemaList-CsTIT1pi.js} +10 -10
- package/lib/{SchemaList-NZbDXAV5.js.map → SchemaList-CsTIT1pi.js.map} +1 -1
- package/lib/{SchemaView-B3fOPR4V.js → SchemaView-DCSWtnYr.js} +5 -5
- package/lib/{SchemaView-B3fOPR4V.js.map → SchemaView-DCSWtnYr.js.map} +1 -1
- package/lib/{Select-DVFRKf1R.js → Select-Dg5R11Dx.js} +4 -4
- package/lib/{Select-DVFRKf1R.js.map → Select-Dg5R11Dx.js.map} +1 -1
- package/lib/{SlotletProvider-DXvc0aY6.js → SlotletProvider-VUmTNmLZ.js} +41 -39
- package/lib/SlotletProvider-VUmTNmLZ.js.map +1 -0
- package/lib/{Spinner-CE68iCm0.js → Spinner-mNLZ6awP.js} +2 -2
- package/lib/{Spinner-CE68iCm0.js.map → Spinner-mNLZ6awP.js.map} +1 -1
- package/lib/{SyntaxHighlight-BEoSoPEo.js → SyntaxHighlight-CxhyyMkF.js} +6 -6
- package/lib/{SyntaxHighlight-BEoSoPEo.js.map → SyntaxHighlight-CxhyyMkF.js.map} +1 -1
- package/lib/{Toc-YBsgI72s.js → Toc-BK39DQvI.js} +3 -3
- package/lib/{Toc-YBsgI72s.js.map → Toc-BK39DQvI.js.map} +1 -1
- package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
- package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
- package/lib/{chunk-HA7DTUK3-C4gP41vD.js → chunk-KNED5TY2-BUPjb3LQ.js} +314 -313
- package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +1 -0
- package/lib/{context-DLCwaMXN.js → context-Lrf2Y9bR.js} +2 -2
- package/lib/{context-DLCwaMXN.js.map → context-Lrf2Y9bR.js.map} +1 -1
- package/lib/{createServer-mYvGvmc0.js → createServer-DLN7APz_.js} +5381 -5517
- package/lib/createServer-DLN7APz_.js.map +1 -0
- package/lib/{hook-CqpVYDqN.js → hook-pPrHCB6G.js} +460 -465
- package/lib/hook-pPrHCB6G.js.map +1 -0
- package/lib/{index-PGJOZ6R-.js → index-Ba_X7EnR.js} +16 -16
- package/lib/{index-PGJOZ6R-.js.map → index-Ba_X7EnR.js.map} +1 -1
- package/lib/index-CuBIgTKC.js +316 -0
- package/lib/index-CuBIgTKC.js.map +1 -0
- package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
- package/lib/index-DcHeSvkE.js.map +1 -0
- package/lib/index-DwT-v3zK.js.map +1 -1
- package/lib/{index-D48iOQvJ.js → index-tpbiZmWp.js} +586 -543
- package/lib/index-tpbiZmWp.js.map +1 -0
- package/lib/index.esm-D2ZUREQN.js +1216 -0
- package/lib/index.esm-D2ZUREQN.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/{mutation-8LjrN7uz.js → mutation-Csa9eQDM.js} +70 -67
- package/lib/mutation-Csa9eQDM.js.map +1 -0
- package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
- package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
- package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
- package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
- package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
- package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
- package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
- package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Callout.js +10 -9
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +207 -207
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/Command.js +3 -3
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/{useExposedProps-B9qXJedG.js → useExposedProps-Dq2yUQIG.js} +2 -2
- package/lib/{useExposedProps-B9qXJedG.js.map → useExposedProps-Dq2yUQIG.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +4 -4
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.components.js +7 -7
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +6 -6
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +2 -2
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +7 -7
- package/package.json +62 -63
- package/src/app/entry.client.tsx +2 -0
- package/src/app/main.css +8 -2
- package/src/lib/authentication/providers/clerk.tsx +2 -2
- package/src/lib/components/Footer.tsx +6 -3
- package/src/lib/components/Layout.tsx +8 -1
- package/src/lib/components/Search.tsx +14 -3
- package/src/lib/components/navigation/Sidebar.tsx +8 -1
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/ui/Callout.tsx +1 -0
- package/src/lib/util/MdxComponents.tsx +2 -0
- package/src/lib/util/detectOS.ts +9 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
- package/lib/Drawer-kDAfOq_2.js.map +0 -1
- package/lib/Markdown-aF5FdsNi.js.map +0 -1
- package/lib/SlotletProvider-DXvc0aY6.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
- package/lib/createServer-mYvGvmc0.js.map +0 -1
- package/lib/hook-CqpVYDqN.js.map +0 -1
- package/lib/index-D48iOQvJ.js.map +0 -1
- package/lib/index-Dl3Yl0yb.js.map +0 -1
- package/lib/index-gQD2h1wX.js +0 -447
- package/lib/index-gQD2h1wX.js.map +0 -1
- package/lib/index.esm--gIChbWs.js +0 -1207
- package/lib/index.esm--gIChbWs.js.map +0 -1
- package/lib/jsx-runtime-CYK1ROHF.js +0 -446
- package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
- package/lib/mutation-8LjrN7uz.js.map +0 -1
- package/lib/post-processors/removeExtensions.js.map +0 -1
- package/lib/post-processors/removeParameters.js.map +0 -1
- package/lib/post-processors/removePaths.js.map +0 -1
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.js +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
- /package/lib/{post-processors → processors}/removeExtensions.js +0 -0
- /package/lib/{post-processors → processors}/removeParameters.js +0 -0
- /package/lib/{post-processors → processors}/removePaths.js +0 -0
- /package/lib/{post-processors → processors}/traverse.js +0 -0
- /package/lib/{post-processors → processors}/traverse.js.map +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.test.ts +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
var _ = {}, ue;
|
|
3
|
-
function
|
|
3
|
+
function Me() {
|
|
4
4
|
if (ue) return _;
|
|
5
5
|
ue = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parse = c, _.serialize = s;
|
|
6
6
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
|
|
@@ -8,87 +8,87 @@ function Ae() {
|
|
|
8
8
|
};
|
|
9
9
|
return d.prototype = /* @__PURE__ */ Object.create(null), d;
|
|
10
10
|
})();
|
|
11
|
-
function c(d,
|
|
12
|
-
const f = new i(),
|
|
13
|
-
if (
|
|
11
|
+
function c(d, v) {
|
|
12
|
+
const f = new i(), w = d.length;
|
|
13
|
+
if (w < 2)
|
|
14
14
|
return f;
|
|
15
|
-
const
|
|
16
|
-
let
|
|
15
|
+
const E = (v == null ? void 0 : v.decode) || h;
|
|
16
|
+
let m = 0;
|
|
17
17
|
do {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const g = d.indexOf("=", m);
|
|
19
|
+
if (g === -1)
|
|
20
20
|
break;
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
|
|
21
|
+
const y = d.indexOf(";", m), R = y === -1 ? w : y;
|
|
22
|
+
if (g > R) {
|
|
23
|
+
m = d.lastIndexOf(";", g - 1) + 1;
|
|
24
24
|
continue;
|
|
25
25
|
}
|
|
26
|
-
const x = u(d,
|
|
26
|
+
const x = u(d, m, g), C = l(d, g, x), $ = d.slice(x, C);
|
|
27
27
|
if (f[$] === void 0) {
|
|
28
|
-
let P = u(d,
|
|
29
|
-
const
|
|
30
|
-
f[$] =
|
|
28
|
+
let P = u(d, g + 1, R), S = l(d, R, P);
|
|
29
|
+
const D = E(d.slice(P, S));
|
|
30
|
+
f[$] = D;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
} while (
|
|
32
|
+
m = R + 1;
|
|
33
|
+
} while (m < w);
|
|
34
34
|
return f;
|
|
35
35
|
}
|
|
36
|
-
function u(d,
|
|
36
|
+
function u(d, v, f) {
|
|
37
37
|
do {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
} while (++
|
|
38
|
+
const w = d.charCodeAt(v);
|
|
39
|
+
if (w !== 32 && w !== 9)
|
|
40
|
+
return v;
|
|
41
|
+
} while (++v < f);
|
|
42
42
|
return f;
|
|
43
43
|
}
|
|
44
|
-
function l(d,
|
|
45
|
-
for (;
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
44
|
+
function l(d, v, f) {
|
|
45
|
+
for (; v > f; ) {
|
|
46
|
+
const w = d.charCodeAt(--v);
|
|
47
|
+
if (w !== 32 && w !== 9)
|
|
48
|
+
return v + 1;
|
|
49
49
|
}
|
|
50
50
|
return f;
|
|
51
51
|
}
|
|
52
|
-
function s(d,
|
|
53
|
-
const
|
|
52
|
+
function s(d, v, f) {
|
|
53
|
+
const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
|
|
54
54
|
if (!e.test(d))
|
|
55
55
|
throw new TypeError(`argument name is invalid: ${d}`);
|
|
56
|
-
const
|
|
57
|
-
if (!t.test(
|
|
58
|
-
throw new TypeError(`argument val is invalid: ${
|
|
59
|
-
let
|
|
56
|
+
const E = w(v);
|
|
57
|
+
if (!t.test(E))
|
|
58
|
+
throw new TypeError(`argument val is invalid: ${v}`);
|
|
59
|
+
let m = d + "=" + E;
|
|
60
60
|
if (!f)
|
|
61
|
-
return
|
|
61
|
+
return m;
|
|
62
62
|
if (f.maxAge !== void 0) {
|
|
63
63
|
if (!Number.isInteger(f.maxAge))
|
|
64
64
|
throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
|
|
65
|
-
|
|
65
|
+
m += "; Max-Age=" + f.maxAge;
|
|
66
66
|
}
|
|
67
67
|
if (f.domain) {
|
|
68
68
|
if (!n.test(f.domain))
|
|
69
69
|
throw new TypeError(`option domain is invalid: ${f.domain}`);
|
|
70
|
-
|
|
70
|
+
m += "; Domain=" + f.domain;
|
|
71
71
|
}
|
|
72
72
|
if (f.path) {
|
|
73
73
|
if (!a.test(f.path))
|
|
74
74
|
throw new TypeError(`option path is invalid: ${f.path}`);
|
|
75
|
-
|
|
75
|
+
m += "; Path=" + f.path;
|
|
76
76
|
}
|
|
77
77
|
if (f.expires) {
|
|
78
78
|
if (!p(f.expires) || !Number.isFinite(f.expires.valueOf()))
|
|
79
79
|
throw new TypeError(`option expires is invalid: ${f.expires}`);
|
|
80
|
-
|
|
80
|
+
m += "; Expires=" + f.expires.toUTCString();
|
|
81
81
|
}
|
|
82
|
-
if (f.httpOnly && (
|
|
82
|
+
if (f.httpOnly && (m += "; HttpOnly"), f.secure && (m += "; Secure"), f.partitioned && (m += "; Partitioned"), f.priority)
|
|
83
83
|
switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
|
|
84
84
|
case "low":
|
|
85
|
-
|
|
85
|
+
m += "; Priority=Low";
|
|
86
86
|
break;
|
|
87
87
|
case "medium":
|
|
88
|
-
|
|
88
|
+
m += "; Priority=Medium";
|
|
89
89
|
break;
|
|
90
90
|
case "high":
|
|
91
|
-
|
|
91
|
+
m += "; Priority=High";
|
|
92
92
|
break;
|
|
93
93
|
default:
|
|
94
94
|
throw new TypeError(`option priority is invalid: ${f.priority}`);
|
|
@@ -97,18 +97,18 @@ function Ae() {
|
|
|
97
97
|
switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
|
|
98
98
|
case !0:
|
|
99
99
|
case "strict":
|
|
100
|
-
|
|
100
|
+
m += "; SameSite=Strict";
|
|
101
101
|
break;
|
|
102
102
|
case "lax":
|
|
103
|
-
|
|
103
|
+
m += "; SameSite=Lax";
|
|
104
104
|
break;
|
|
105
105
|
case "none":
|
|
106
|
-
|
|
106
|
+
m += "; SameSite=None";
|
|
107
107
|
break;
|
|
108
108
|
default:
|
|
109
109
|
throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return m;
|
|
112
112
|
}
|
|
113
113
|
function h(d) {
|
|
114
114
|
if (d.indexOf("%") === -1)
|
|
@@ -124,9 +124,9 @@ function Ae() {
|
|
|
124
124
|
}
|
|
125
125
|
return _;
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
Me();
|
|
128
128
|
/**
|
|
129
|
-
* react-router v7.
|
|
129
|
+
* react-router v7.5.0
|
|
130
130
|
*
|
|
131
131
|
* Copyright (c) Remix Software Inc.
|
|
132
132
|
*
|
|
@@ -135,7 +135,7 @@ Ae();
|
|
|
135
135
|
*
|
|
136
136
|
* @license MIT
|
|
137
137
|
*/
|
|
138
|
-
function
|
|
138
|
+
function b(e, t) {
|
|
139
139
|
if (e === !1 || e === null || typeof e > "u")
|
|
140
140
|
throw new Error(t);
|
|
141
141
|
}
|
|
@@ -166,18 +166,18 @@ function Y(e) {
|
|
|
166
166
|
return t;
|
|
167
167
|
}
|
|
168
168
|
function pe(e, t, n = "/") {
|
|
169
|
-
return
|
|
169
|
+
return De(e, t, n, !1);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
let r = typeof t == "string" ? Y(t) : t, i =
|
|
171
|
+
function De(e, t, n, a) {
|
|
172
|
+
let r = typeof t == "string" ? Y(t) : t, i = M(r.pathname || "/", n);
|
|
173
173
|
if (i == null)
|
|
174
174
|
return null;
|
|
175
175
|
let c = ve(e);
|
|
176
|
-
|
|
176
|
+
Ie(c);
|
|
177
177
|
let u = null;
|
|
178
178
|
for (let l = 0; u == null && l < c.length; ++l) {
|
|
179
179
|
let s = ye(i);
|
|
180
|
-
u =
|
|
180
|
+
u = Ve(
|
|
181
181
|
c[l],
|
|
182
182
|
s,
|
|
183
183
|
a
|
|
@@ -193,19 +193,19 @@ function ve(e, t = [], n = [], a = "") {
|
|
|
193
193
|
childrenIndex: c,
|
|
194
194
|
route: i
|
|
195
195
|
};
|
|
196
|
-
l.relativePath.startsWith("/") && (
|
|
196
|
+
l.relativePath.startsWith("/") && (b(
|
|
197
197
|
l.relativePath.startsWith(a),
|
|
198
198
|
`Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
199
199
|
), l.relativePath = l.relativePath.slice(a.length));
|
|
200
200
|
let s = A([a, l.relativePath]), h = n.concat(l);
|
|
201
|
-
i.children && i.children.length > 0 && (
|
|
201
|
+
i.children && i.children.length > 0 && (b(
|
|
202
202
|
// Our types know better, but runtime JS may not!
|
|
203
203
|
// @ts-expect-error
|
|
204
204
|
i.index !== !0,
|
|
205
205
|
`Index routes must not have child routes. Please remove all child routes from route path "${s}".`
|
|
206
206
|
), ve(i.children, t, h, s)), !(i.path == null && !i.index) && t.push({
|
|
207
207
|
path: s,
|
|
208
|
-
score:
|
|
208
|
+
score: We(s, i.index),
|
|
209
209
|
routesMeta: h
|
|
210
210
|
});
|
|
211
211
|
};
|
|
@@ -233,23 +233,23 @@ function ge(e) {
|
|
|
233
233
|
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ie(e) {
|
|
237
237
|
e.sort(
|
|
238
|
-
(t, n) => t.score !== n.score ? n.score - t.score :
|
|
238
|
+
(t, n) => t.score !== n.score ? n.score - t.score : ze(
|
|
239
239
|
t.routesMeta.map((a) => a.childrenIndex),
|
|
240
240
|
n.routesMeta.map((a) => a.childrenIndex)
|
|
241
241
|
)
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
|
-
var
|
|
245
|
-
function
|
|
244
|
+
var Oe = /^:[\w-]+$/, Fe = 3, _e = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e === "*";
|
|
245
|
+
function We(e, t) {
|
|
246
246
|
let n = e.split("/"), a = n.length;
|
|
247
|
-
return n.some(ce) && (a +=
|
|
248
|
-
(r, i) => r + (
|
|
247
|
+
return n.some(ce) && (a += He), t && (a += _e), n.filter((r) => !ce(r)).reduce(
|
|
248
|
+
(r, i) => r + (Oe.test(i) ? Fe : i === "" ? Ue : Be),
|
|
249
249
|
a
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function ze(e, t) {
|
|
253
253
|
return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
|
|
254
254
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
255
255
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -262,7 +262,7 @@ function We(e, t) {
|
|
|
262
262
|
0
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Ve(e, t, n = !1) {
|
|
266
266
|
let { routesMeta: a } = e, r = {}, i = "/", c = [];
|
|
267
267
|
for (let u = 0; u < a.length; ++u) {
|
|
268
268
|
let l = a[u], s = u === a.length - 1, h = i === "/" ? t : t.slice(i.length) || "/", p = H(
|
|
@@ -282,7 +282,7 @@ function ze(e, t, n = !1) {
|
|
|
282
282
|
// TODO: Can this as be avoided?
|
|
283
283
|
params: r,
|
|
284
284
|
pathname: A([i, p.pathname]),
|
|
285
|
-
pathnameBase:
|
|
285
|
+
pathnameBase: qe(
|
|
286
286
|
A([i, p.pathnameBase])
|
|
287
287
|
),
|
|
288
288
|
route: d
|
|
@@ -292,7 +292,7 @@ function ze(e, t, n = !1) {
|
|
|
292
292
|
}
|
|
293
293
|
function H(e, t) {
|
|
294
294
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
295
|
-
let [n, a] =
|
|
295
|
+
let [n, a] = je(
|
|
296
296
|
e.path,
|
|
297
297
|
e.caseSensitive,
|
|
298
298
|
e.end
|
|
@@ -306,8 +306,8 @@ function H(e, t) {
|
|
|
306
306
|
let f = u[d] || "";
|
|
307
307
|
c = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
return p && !
|
|
309
|
+
const v = u[d];
|
|
310
|
+
return p && !v ? s[h] = void 0 : s[h] = (v || "").replace(/%2F/g, "/"), s;
|
|
311
311
|
},
|
|
312
312
|
{}
|
|
313
313
|
),
|
|
@@ -316,7 +316,7 @@ function H(e, t) {
|
|
|
316
316
|
pattern: e
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function je(e, t = !1, n = !0) {
|
|
320
320
|
L(
|
|
321
321
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
322
322
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -337,26 +337,26 @@ function ye(e) {
|
|
|
337
337
|
), e;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function M(e, t) {
|
|
341
341
|
if (t === "/") return e;
|
|
342
342
|
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
343
343
|
return null;
|
|
344
344
|
let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
|
|
345
345
|
return a && a !== "/" ? null : e.slice(n) || "/";
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Ye(e, t = "/") {
|
|
348
348
|
let {
|
|
349
349
|
pathname: n,
|
|
350
350
|
search: a = "",
|
|
351
351
|
hash: r = ""
|
|
352
352
|
} = typeof e == "string" ? Y(e) : e;
|
|
353
353
|
return {
|
|
354
|
-
pathname: n ? n.startsWith("/") ? n :
|
|
355
|
-
search:
|
|
356
|
-
hash:
|
|
354
|
+
pathname: n ? n.startsWith("/") ? n : Je(n, t) : t,
|
|
355
|
+
search: Ge(a),
|
|
356
|
+
hash: Xe(r)
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Je(e, t) {
|
|
360
360
|
let n = t.replace(/\/+$/, "").split("/");
|
|
361
361
|
return e.split("/").forEach((r) => {
|
|
362
362
|
r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
|
|
@@ -367,26 +367,26 @@ function G(e, t, n, a) {
|
|
|
367
367
|
a
|
|
368
368
|
)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ke(e) {
|
|
371
371
|
return e.filter(
|
|
372
372
|
(t, n) => n === 0 || t.route.path && t.route.path.length > 0
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
375
|
function Z(e) {
|
|
376
|
-
let t =
|
|
376
|
+
let t = Ke(e);
|
|
377
377
|
return t.map(
|
|
378
378
|
(n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
381
|
function ee(e, t, n, a = !1) {
|
|
382
382
|
let r;
|
|
383
|
-
typeof e == "string" ? r = Y(e) : (r = { ...e },
|
|
383
|
+
typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
|
|
384
384
|
!r.pathname || !r.pathname.includes("?"),
|
|
385
385
|
G("?", "pathname", "search", r)
|
|
386
|
-
),
|
|
386
|
+
), b(
|
|
387
387
|
!r.pathname || !r.pathname.includes("#"),
|
|
388
388
|
G("#", "pathname", "hash", r)
|
|
389
|
-
),
|
|
389
|
+
), b(
|
|
390
390
|
!r.search || !r.search.includes("#"),
|
|
391
391
|
G("#", "search", "hash", r)
|
|
392
392
|
));
|
|
@@ -403,10 +403,10 @@ function ee(e, t, n, a = !1) {
|
|
|
403
403
|
}
|
|
404
404
|
u = p >= 0 ? t[p] : "/";
|
|
405
405
|
}
|
|
406
|
-
let l =
|
|
406
|
+
let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
|
|
407
407
|
return !l.pathname.endsWith("/") && (s || h) && (l.pathname += "/"), l;
|
|
408
408
|
}
|
|
409
|
-
var A = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
409
|
+
var A = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, an = (e, t = 302) => {
|
|
410
410
|
let n = t;
|
|
411
411
|
typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
|
|
412
412
|
let a = new Headers(n.headers);
|
|
@@ -424,11 +424,11 @@ var Ee = [
|
|
|
424
424
|
new Set(
|
|
425
425
|
Ee
|
|
426
426
|
);
|
|
427
|
-
var
|
|
427
|
+
var Qe = [
|
|
428
428
|
"GET",
|
|
429
429
|
...Ee
|
|
430
430
|
];
|
|
431
|
-
new Set(
|
|
431
|
+
new Set(Qe);
|
|
432
432
|
var I = o.createContext(null);
|
|
433
433
|
I.displayName = "DataRouter";
|
|
434
434
|
var F = o.createContext(null);
|
|
@@ -441,8 +441,8 @@ var te = o.createContext(
|
|
|
441
441
|
/* @__PURE__ */ new Map()
|
|
442
442
|
);
|
|
443
443
|
te.displayName = "Fetchers";
|
|
444
|
-
var
|
|
445
|
-
|
|
444
|
+
var Ze = o.createContext(null);
|
|
445
|
+
Ze.displayName = "Await";
|
|
446
446
|
var T = o.createContext(
|
|
447
447
|
null
|
|
448
448
|
);
|
|
@@ -459,8 +459,8 @@ var k = o.createContext({
|
|
|
459
459
|
k.displayName = "Route";
|
|
460
460
|
var ne = o.createContext(null);
|
|
461
461
|
ne.displayName = "RouteError";
|
|
462
|
-
function
|
|
463
|
-
|
|
462
|
+
function et(e, { relative: t } = {}) {
|
|
463
|
+
b(
|
|
464
464
|
O(),
|
|
465
465
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
466
466
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -473,7 +473,7 @@ function O() {
|
|
|
473
473
|
return o.useContext(K) != null;
|
|
474
474
|
}
|
|
475
475
|
function N() {
|
|
476
|
-
return
|
|
476
|
+
return b(
|
|
477
477
|
O(),
|
|
478
478
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
479
479
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -481,7 +481,7 @@ function N() {
|
|
|
481
481
|
), o.useContext(K).location;
|
|
482
482
|
}
|
|
483
483
|
function on(e) {
|
|
484
|
-
|
|
484
|
+
b(
|
|
485
485
|
O(),
|
|
486
486
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
487
487
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -494,22 +494,22 @@ function on(e) {
|
|
|
494
494
|
);
|
|
495
495
|
}
|
|
496
496
|
var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
497
|
-
function
|
|
497
|
+
function Re(e) {
|
|
498
498
|
o.useContext(T).static || o.useLayoutEffect(e);
|
|
499
499
|
}
|
|
500
500
|
function re() {
|
|
501
501
|
let { isDataRoute: e } = o.useContext(k);
|
|
502
|
-
return e ?
|
|
502
|
+
return e ? ht() : tt();
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
504
|
+
function tt() {
|
|
505
|
+
b(
|
|
506
506
|
O(),
|
|
507
507
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
508
508
|
// router loaded. We can help them understand how to avoid that.
|
|
509
509
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
510
510
|
);
|
|
511
511
|
let e = o.useContext(I), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), c = o.useRef(!1);
|
|
512
|
-
return
|
|
512
|
+
return Re(() => {
|
|
513
513
|
c.current = !0;
|
|
514
514
|
}), o.useCallback(
|
|
515
515
|
(l, s = {}) => {
|
|
@@ -539,10 +539,10 @@ function et() {
|
|
|
539
539
|
]
|
|
540
540
|
);
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
542
|
+
var nt = o.createContext(null);
|
|
543
|
+
function rt(e) {
|
|
544
544
|
let t = o.useContext(k).outlet;
|
|
545
|
-
return t && /* @__PURE__ */ o.createElement(
|
|
545
|
+
return t && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, t);
|
|
546
546
|
}
|
|
547
547
|
function ln() {
|
|
548
548
|
let { matches: e } = o.useContext(k), t = e[e.length - 1];
|
|
@@ -560,8 +560,8 @@ function W(e, { relative: t } = {}) {
|
|
|
560
560
|
[e, r, a, t]
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
|
|
563
|
+
function be(e, t, n, a) {
|
|
564
|
+
b(
|
|
565
565
|
O(),
|
|
566
566
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
567
567
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -569,42 +569,42 @@ function Re(e, t, n, a) {
|
|
|
569
569
|
);
|
|
570
570
|
let { navigator: r, static: i } = o.useContext(T), { matches: c } = o.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
|
|
571
571
|
{
|
|
572
|
-
let
|
|
572
|
+
let g = p && p.path || "";
|
|
573
573
|
Pe(
|
|
574
574
|
s,
|
|
575
|
-
!p ||
|
|
576
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${
|
|
575
|
+
!p || g.endsWith("*") || g.endsWith("*?"),
|
|
576
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
577
577
|
|
|
578
|
-
Please change the parent <Route path="${
|
|
578
|
+
Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" : `${g}/*`}">.`
|
|
579
579
|
);
|
|
580
580
|
}
|
|
581
|
-
let d = N(),
|
|
582
|
-
|
|
583
|
-
let f =
|
|
581
|
+
let d = N(), v;
|
|
582
|
+
v = d;
|
|
583
|
+
let f = v.pathname || "/", w = f;
|
|
584
584
|
if (h !== "/") {
|
|
585
|
-
let
|
|
586
|
-
|
|
585
|
+
let g = h.replace(/^\//, "").split("/");
|
|
586
|
+
w = "/" + f.replace(/^\//, "").split("/").slice(g.length).join("/");
|
|
587
587
|
}
|
|
588
|
-
let
|
|
588
|
+
let E = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
|
|
589
589
|
return L(
|
|
590
|
-
p ||
|
|
591
|
-
`No routes matched location "${
|
|
590
|
+
p || E != null,
|
|
591
|
+
`No routes matched location "${v.pathname}${v.search}${v.hash}" `
|
|
592
592
|
), L(
|
|
593
|
-
|
|
594
|
-
`Matched leaf route at location "${
|
|
595
|
-
),
|
|
596
|
-
|
|
597
|
-
(
|
|
598
|
-
params: Object.assign({}, l,
|
|
593
|
+
E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0,
|
|
594
|
+
`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
595
|
+
), st(
|
|
596
|
+
E && E.map(
|
|
597
|
+
(g) => Object.assign({}, g, {
|
|
598
|
+
params: Object.assign({}, l, g.params),
|
|
599
599
|
pathname: A([
|
|
600
600
|
h,
|
|
601
601
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
602
|
-
r.encodeLocation ? r.encodeLocation(
|
|
602
|
+
r.encodeLocation ? r.encodeLocation(g.pathname).pathname : g.pathname
|
|
603
603
|
]),
|
|
604
|
-
pathnameBase:
|
|
604
|
+
pathnameBase: g.pathnameBase === "/" ? h : A([
|
|
605
605
|
h,
|
|
606
606
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
607
|
-
r.encodeLocation ? r.encodeLocation(
|
|
607
|
+
r.encodeLocation ? r.encodeLocation(g.pathnameBase).pathname : g.pathnameBase
|
|
608
608
|
])
|
|
609
609
|
})
|
|
610
610
|
),
|
|
@@ -613,14 +613,14 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
|
|
|
613
613
|
a
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
let e =
|
|
616
|
+
function at() {
|
|
617
|
+
let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, c = null;
|
|
618
618
|
return console.error(
|
|
619
619
|
"Error handled by React Router default ErrorBoundary:",
|
|
620
620
|
e
|
|
621
621
|
), c = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ o.createElement("pre", { style: r }, n) : null, c);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
623
|
+
var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
|
|
624
624
|
constructor(e) {
|
|
625
625
|
super(e), this.state = {
|
|
626
626
|
location: e.location,
|
|
@@ -659,11 +659,11 @@ var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Compone
|
|
|
659
659
|
)) : this.props.children;
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
function
|
|
662
|
+
function lt({ routeContext: e, match: t, children: n }) {
|
|
663
663
|
let a = o.useContext(I);
|
|
664
664
|
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, n);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function st(e, t = [], n = null, a = null) {
|
|
667
667
|
if (e == null) {
|
|
668
668
|
if (!n)
|
|
669
669
|
return null;
|
|
@@ -679,7 +679,7 @@ function lt(e, t = [], n = null, a = null) {
|
|
|
679
679
|
let l = r.findIndex(
|
|
680
680
|
(s) => s.route.id && (i == null ? void 0 : i[s.route.id]) !== void 0
|
|
681
681
|
);
|
|
682
|
-
|
|
682
|
+
b(
|
|
683
683
|
l >= 0,
|
|
684
684
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
685
685
|
i
|
|
@@ -702,63 +702,63 @@ function lt(e, t = [], n = null, a = null) {
|
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
return r.reduceRight((l, s, h) => {
|
|
705
|
-
let p, d = !1,
|
|
706
|
-
n && (p = i && s.route.id ? i[s.route.id] : void 0,
|
|
705
|
+
let p, d = !1, v = null, f = null;
|
|
706
|
+
n && (p = i && s.route.id ? i[s.route.id] : void 0, v = s.route.errorElement || it, c && (u < 0 && h === 0 ? (Pe(
|
|
707
707
|
"route-fallback",
|
|
708
708
|
!1,
|
|
709
709
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
710
710
|
), d = !0, f = null) : u === h && (d = !0, f = s.route.hydrateFallbackElement || null)));
|
|
711
|
-
let
|
|
712
|
-
let
|
|
713
|
-
return p ?
|
|
714
|
-
|
|
711
|
+
let w = t.concat(r.slice(0, h + 1)), E = () => {
|
|
712
|
+
let m;
|
|
713
|
+
return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ o.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ o.createElement(
|
|
714
|
+
lt,
|
|
715
715
|
{
|
|
716
716
|
match: s,
|
|
717
717
|
routeContext: {
|
|
718
718
|
outlet: l,
|
|
719
|
-
matches:
|
|
719
|
+
matches: w,
|
|
720
720
|
isDataRoute: n != null
|
|
721
721
|
},
|
|
722
|
-
children:
|
|
722
|
+
children: m
|
|
723
723
|
}
|
|
724
724
|
);
|
|
725
725
|
};
|
|
726
726
|
return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
|
|
727
|
-
|
|
727
|
+
ot,
|
|
728
728
|
{
|
|
729
729
|
location: n.location,
|
|
730
730
|
revalidation: n.revalidation,
|
|
731
|
-
component:
|
|
731
|
+
component: v,
|
|
732
732
|
error: p,
|
|
733
|
-
children:
|
|
734
|
-
routeContext: { outlet: null, matches:
|
|
733
|
+
children: E(),
|
|
734
|
+
routeContext: { outlet: null, matches: w, isDataRoute: !0 }
|
|
735
735
|
}
|
|
736
|
-
) :
|
|
736
|
+
) : E();
|
|
737
737
|
}, null);
|
|
738
738
|
}
|
|
739
739
|
function ae(e) {
|
|
740
740
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function ut(e) {
|
|
743
743
|
let t = o.useContext(I);
|
|
744
|
-
return
|
|
744
|
+
return b(t, ae(e)), t;
|
|
745
745
|
}
|
|
746
746
|
function Ce(e) {
|
|
747
747
|
let t = o.useContext(F);
|
|
748
|
-
return
|
|
748
|
+
return b(t, ae(e)), t;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function ct(e) {
|
|
751
751
|
let t = o.useContext(k);
|
|
752
|
-
return
|
|
752
|
+
return b(t, ae(e)), t;
|
|
753
753
|
}
|
|
754
754
|
function ie(e) {
|
|
755
|
-
let t =
|
|
756
|
-
return
|
|
755
|
+
let t = ct(e), n = t.matches[t.matches.length - 1];
|
|
756
|
+
return b(
|
|
757
757
|
n.route.id,
|
|
758
758
|
`${e} can only be used on routes that contain a unique "id"`
|
|
759
759
|
), n.route.id;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function ft() {
|
|
762
762
|
return ie(
|
|
763
763
|
"useRouteId"
|
|
764
764
|
/* UseRouteId */
|
|
@@ -770,7 +770,7 @@ function sn() {
|
|
|
770
770
|
/* UseNavigation */
|
|
771
771
|
).navigation;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function dt() {
|
|
774
774
|
var a;
|
|
775
775
|
let e = o.useContext(ne), t = Ce(
|
|
776
776
|
"useRouteError"
|
|
@@ -781,15 +781,15 @@ function ft() {
|
|
|
781
781
|
);
|
|
782
782
|
return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
let { router: e } =
|
|
784
|
+
function ht() {
|
|
785
|
+
let { router: e } = ut(
|
|
786
786
|
"useNavigate"
|
|
787
787
|
/* UseNavigateStable */
|
|
788
788
|
), t = ie(
|
|
789
789
|
"useNavigate"
|
|
790
790
|
/* UseNavigateStable */
|
|
791
791
|
), n = o.useRef(!1);
|
|
792
|
-
return
|
|
792
|
+
return Re(() => {
|
|
793
793
|
n.current = !0;
|
|
794
794
|
}), o.useCallback(
|
|
795
795
|
async (r, i = {}) => {
|
|
@@ -806,7 +806,7 @@ var de = {};
|
|
|
806
806
|
function he(e, t) {
|
|
807
807
|
!e && !de[t] && (de[t] = !0, console.warn(t));
|
|
808
808
|
}
|
|
809
|
-
var
|
|
809
|
+
var mt = class {
|
|
810
810
|
constructor() {
|
|
811
811
|
this.status = "pending", this.promise = new Promise((e, t) => {
|
|
812
812
|
this.resolve = (n) => {
|
|
@@ -823,11 +823,11 @@ function un({
|
|
|
823
823
|
}) {
|
|
824
824
|
let [n, a] = o.useState(e.state), [r, i] = o.useState(), [c, u] = o.useState({
|
|
825
825
|
isTransitioning: !1
|
|
826
|
-
}), [l, s] = o.useState(), [h, p] = o.useState(), [d,
|
|
827
|
-
(
|
|
828
|
-
|
|
826
|
+
}), [l, s] = o.useState(), [h, p] = o.useState(), [d, v] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
|
|
827
|
+
(y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
|
|
828
|
+
y.fetchers.forEach((P, S) => {
|
|
829
829
|
P.data !== void 0 && f.current.set(S, P.data);
|
|
830
|
-
}),
|
|
830
|
+
}), R.forEach((P) => f.current.delete(P)), he(
|
|
831
831
|
x === !1 || t != null,
|
|
832
832
|
'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
|
|
833
833
|
);
|
|
@@ -836,7 +836,7 @@ function un({
|
|
|
836
836
|
C == null || $,
|
|
837
837
|
"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
|
|
838
838
|
), !C || !$) {
|
|
839
|
-
t && x ? t(() => a(
|
|
839
|
+
t && x ? t(() => a(y)) : o.startTransition(() => a(y));
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
842
842
|
if (t && x) {
|
|
@@ -849,7 +849,7 @@ function un({
|
|
|
849
849
|
});
|
|
850
850
|
});
|
|
851
851
|
let P = e.window.document.startViewTransition(() => {
|
|
852
|
-
t(() => a(
|
|
852
|
+
t(() => a(y));
|
|
853
853
|
});
|
|
854
854
|
P.finished.finally(() => {
|
|
855
855
|
t(() => {
|
|
@@ -858,11 +858,11 @@ function un({
|
|
|
858
858
|
}), t(() => p(P));
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
|
-
h ? (l && l.resolve(), h.skipTransition(),
|
|
862
|
-
state:
|
|
861
|
+
h ? (l && l.resolve(), h.skipTransition(), v({
|
|
862
|
+
state: y,
|
|
863
863
|
currentLocation: C.currentLocation,
|
|
864
864
|
nextLocation: C.nextLocation
|
|
865
|
-
})) : (i(
|
|
865
|
+
})) : (i(y), u({
|
|
866
866
|
isTransitioning: !0,
|
|
867
867
|
flushSync: !1,
|
|
868
868
|
currentLocation: C.currentLocation,
|
|
@@ -871,12 +871,12 @@ function un({
|
|
|
871
871
|
},
|
|
872
872
|
[e.window, t, h, l]
|
|
873
873
|
);
|
|
874
|
-
o.useLayoutEffect(() => e.subscribe(
|
|
875
|
-
c.isTransitioning && !c.flushSync && s(new
|
|
874
|
+
o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
|
|
875
|
+
c.isTransitioning && !c.flushSync && s(new mt());
|
|
876
876
|
}, [c]), o.useEffect(() => {
|
|
877
877
|
if (l && r && e.window) {
|
|
878
|
-
let
|
|
879
|
-
o.startTransition(() => a(
|
|
878
|
+
let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
|
|
879
|
+
o.startTransition(() => a(y)), await R;
|
|
880
880
|
});
|
|
881
881
|
x.finished.finally(() => {
|
|
882
882
|
s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
|
|
@@ -890,40 +890,40 @@ function un({
|
|
|
890
890
|
flushSync: !1,
|
|
891
891
|
currentLocation: d.currentLocation,
|
|
892
892
|
nextLocation: d.nextLocation
|
|
893
|
-
}),
|
|
893
|
+
}), v(void 0));
|
|
894
894
|
}, [c.isTransitioning, d]);
|
|
895
|
-
let
|
|
895
|
+
let E = o.useMemo(() => ({
|
|
896
896
|
createHref: e.createHref,
|
|
897
897
|
encodeLocation: e.encodeLocation,
|
|
898
|
-
go: (
|
|
899
|
-
push: (
|
|
900
|
-
state:
|
|
898
|
+
go: (y) => e.navigate(y),
|
|
899
|
+
push: (y, R, x) => e.navigate(y, {
|
|
900
|
+
state: R,
|
|
901
901
|
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
902
902
|
}),
|
|
903
|
-
replace: (
|
|
903
|
+
replace: (y, R, x) => e.navigate(y, {
|
|
904
904
|
replace: !0,
|
|
905
|
-
state:
|
|
905
|
+
state: R,
|
|
906
906
|
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
907
907
|
})
|
|
908
|
-
}), [e]),
|
|
908
|
+
}), [e]), m = e.basename || "/", g = o.useMemo(
|
|
909
909
|
() => ({
|
|
910
910
|
router: e,
|
|
911
|
-
navigator:
|
|
911
|
+
navigator: E,
|
|
912
912
|
static: !1,
|
|
913
|
-
basename:
|
|
913
|
+
basename: m
|
|
914
914
|
}),
|
|
915
|
-
[e,
|
|
915
|
+
[e, E, m]
|
|
916
916
|
);
|
|
917
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(I.Provider, { value:
|
|
917
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(I.Provider, { value: g }, /* @__PURE__ */ o.createElement(F.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
|
|
918
918
|
Se,
|
|
919
919
|
{
|
|
920
|
-
basename:
|
|
920
|
+
basename: m,
|
|
921
921
|
location: n.location,
|
|
922
922
|
navigationType: n.historyAction,
|
|
923
|
-
navigator:
|
|
923
|
+
navigator: E
|
|
924
924
|
},
|
|
925
925
|
/* @__PURE__ */ o.createElement(
|
|
926
|
-
|
|
926
|
+
pt,
|
|
927
927
|
{
|
|
928
928
|
routes: e.routes,
|
|
929
929
|
future: e.future,
|
|
@@ -932,13 +932,13 @@ function un({
|
|
|
932
932
|
)
|
|
933
933
|
))))), null);
|
|
934
934
|
}
|
|
935
|
-
var
|
|
936
|
-
function
|
|
935
|
+
var pt = o.memo(vt);
|
|
936
|
+
function vt({
|
|
937
937
|
routes: e,
|
|
938
938
|
future: t,
|
|
939
939
|
state: n
|
|
940
940
|
}) {
|
|
941
|
-
return
|
|
941
|
+
return be(e, void 0, n, t);
|
|
942
942
|
}
|
|
943
943
|
function cn({
|
|
944
944
|
to: e,
|
|
@@ -946,7 +946,7 @@ function cn({
|
|
|
946
946
|
state: n,
|
|
947
947
|
relative: a
|
|
948
948
|
}) {
|
|
949
|
-
|
|
949
|
+
b(
|
|
950
950
|
O(),
|
|
951
951
|
// TODO: This error is probably because they somehow have 2 versions of
|
|
952
952
|
// the router loaded. We can help them understand how to avoid that.
|
|
@@ -968,7 +968,7 @@ function cn({
|
|
|
968
968
|
}, [u, s, a, t, n]), null;
|
|
969
969
|
}
|
|
970
970
|
function fn(e) {
|
|
971
|
-
return
|
|
971
|
+
return rt(e.context);
|
|
972
972
|
}
|
|
973
973
|
function Se({
|
|
974
974
|
basename: e = "/",
|
|
@@ -978,7 +978,7 @@ function Se({
|
|
|
978
978
|
navigator: r,
|
|
979
979
|
static: i = !1
|
|
980
980
|
}) {
|
|
981
|
-
|
|
981
|
+
b(
|
|
982
982
|
!O(),
|
|
983
983
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
984
984
|
);
|
|
@@ -998,8 +998,8 @@ function Se({
|
|
|
998
998
|
hash: h = "",
|
|
999
999
|
state: p = null,
|
|
1000
1000
|
key: d = "default"
|
|
1001
|
-
} = n,
|
|
1002
|
-
let f =
|
|
1001
|
+
} = n, v = o.useMemo(() => {
|
|
1002
|
+
let f = M(l, c);
|
|
1003
1003
|
return f == null ? null : {
|
|
1004
1004
|
location: {
|
|
1005
1005
|
pathname: f,
|
|
@@ -1012,30 +1012,30 @@ function Se({
|
|
|
1012
1012
|
};
|
|
1013
1013
|
}, [c, l, s, h, p, d, a]);
|
|
1014
1014
|
return L(
|
|
1015
|
-
|
|
1015
|
+
v != null,
|
|
1016
1016
|
`<Router basename="${c}"> is not able to match the URL "${l}${s}${h}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1017
|
-
),
|
|
1017
|
+
), v == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: v }));
|
|
1018
1018
|
}
|
|
1019
1019
|
var V = "get", j = "application/x-www-form-urlencoded";
|
|
1020
1020
|
function q(e) {
|
|
1021
1021
|
return e != null && typeof e.tagName == "string";
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function gt(e) {
|
|
1024
1024
|
return q(e) && e.tagName.toLowerCase() === "button";
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function yt(e) {
|
|
1027
1027
|
return q(e) && e.tagName.toLowerCase() === "form";
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function wt(e) {
|
|
1030
1030
|
return q(e) && e.tagName.toLowerCase() === "input";
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Et(e) {
|
|
1033
1033
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function xt(e, t) {
|
|
1036
1036
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1037
1037
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1038
|
-
!
|
|
1038
|
+
!Et(e);
|
|
1039
1039
|
}
|
|
1040
1040
|
function Q(e = "") {
|
|
1041
1041
|
return new URLSearchParams(
|
|
@@ -1047,7 +1047,7 @@ function Q(e = "") {
|
|
|
1047
1047
|
}, [])
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Rt(e, t) {
|
|
1051
1051
|
let n = Q(e);
|
|
1052
1052
|
return t && t.forEach((a, r) => {
|
|
1053
1053
|
n.has(r) || t.getAll(r).forEach((i) => {
|
|
@@ -1069,30 +1069,30 @@ function bt() {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
return z;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var Ct = /* @__PURE__ */ new Set([
|
|
1073
1073
|
"application/x-www-form-urlencoded",
|
|
1074
1074
|
"multipart/form-data",
|
|
1075
1075
|
"text/plain"
|
|
1076
1076
|
]);
|
|
1077
1077
|
function X(e) {
|
|
1078
|
-
return e != null && !
|
|
1078
|
+
return e != null && !Ct.has(e) ? (L(
|
|
1079
1079
|
!1,
|
|
1080
1080
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
|
|
1081
1081
|
), null) : e;
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Pt(e, t) {
|
|
1084
1084
|
let n, a, r, i, c;
|
|
1085
|
-
if (
|
|
1085
|
+
if (yt(e)) {
|
|
1086
1086
|
let u = e.getAttribute("action");
|
|
1087
|
-
a = u ?
|
|
1088
|
-
} else if (
|
|
1087
|
+
a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
|
|
1088
|
+
} else if (gt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
|
|
1089
1089
|
let u = e.form;
|
|
1090
1090
|
if (u == null)
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1093
1093
|
);
|
|
1094
1094
|
let l = e.getAttribute("formaction") || u.getAttribute("action");
|
|
1095
|
-
if (a = l ?
|
|
1095
|
+
if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, i = new FormData(u, e), !bt()) {
|
|
1096
1096
|
let { name: s, type: h, value: p } = e;
|
|
1097
1097
|
if (h === "image") {
|
|
1098
1098
|
let d = s ? `${s}.` : "";
|
|
@@ -1112,7 +1112,7 @@ function oe(e, t) {
|
|
|
1112
1112
|
if (e === !1 || e === null || typeof e > "u")
|
|
1113
1113
|
throw new Error(t);
|
|
1114
1114
|
}
|
|
1115
|
-
async function
|
|
1115
|
+
async function St(e, t) {
|
|
1116
1116
|
if (e.id in t)
|
|
1117
1117
|
return t[e.id];
|
|
1118
1118
|
try {
|
|
@@ -1129,22 +1129,22 @@ async function Pt(e, t) {
|
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Lt(e) {
|
|
1133
1133
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1134
1134
|
}
|
|
1135
|
-
async function
|
|
1135
|
+
async function kt(e, t, n) {
|
|
1136
1136
|
let a = await Promise.all(
|
|
1137
1137
|
e.map(async (r) => {
|
|
1138
1138
|
let i = t.routes[r.route.id];
|
|
1139
1139
|
if (i) {
|
|
1140
|
-
let c = await
|
|
1140
|
+
let c = await St(i, n);
|
|
1141
1141
|
return c.links ? c.links() : [];
|
|
1142
1142
|
}
|
|
1143
1143
|
return [];
|
|
1144
1144
|
})
|
|
1145
1145
|
);
|
|
1146
|
-
return
|
|
1147
|
-
a.flat(1).filter(
|
|
1146
|
+
return At(
|
|
1147
|
+
a.flat(1).filter(Lt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
|
|
1148
1148
|
(r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
|
|
1149
1149
|
)
|
|
1150
1150
|
);
|
|
@@ -1185,8 +1185,8 @@ function me(e, t, n, a, r, i) {
|
|
|
1185
1185
|
return !0;
|
|
1186
1186
|
}) : [];
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1188
|
+
function $t(e, t, { includeHydrateFallback: n } = {}) {
|
|
1189
|
+
return Tt(
|
|
1190
1190
|
e.map((a) => {
|
|
1191
1191
|
let r = t.routes[a.route.id];
|
|
1192
1192
|
if (!r) return [];
|
|
@@ -1195,32 +1195,32 @@ function kt(e, t, { includeHydrateFallback: n } = {}) {
|
|
|
1195
1195
|
}).flat(1)
|
|
1196
1196
|
);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Tt(e) {
|
|
1199
1199
|
return [...new Set(e)];
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Nt(e) {
|
|
1202
1202
|
let t = {}, n = Object.keys(e).sort();
|
|
1203
1203
|
for (let a of n)
|
|
1204
1204
|
t[a] = e[a];
|
|
1205
1205
|
return t;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function At(e, t) {
|
|
1208
1208
|
let n = /* @__PURE__ */ new Set();
|
|
1209
1209
|
return new Set(t), e.reduce((a, r) => {
|
|
1210
|
-
let i = JSON.stringify(
|
|
1210
|
+
let i = JSON.stringify(Nt(r));
|
|
1211
1211
|
return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
|
|
1212
1212
|
}, []);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
let
|
|
1214
|
+
function Mt(e, t) {
|
|
1215
|
+
let n = typeof e == "string" ? new URL(
|
|
1216
1216
|
e,
|
|
1217
1217
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1218
1218
|
// don't assume window is available
|
|
1219
1219
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1220
1220
|
) : e;
|
|
1221
|
-
return
|
|
1221
|
+
return n.pathname === "/" ? n.pathname = "_root.data" : t && M(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function Le() {
|
|
1224
1224
|
let e = o.useContext(I);
|
|
1225
1225
|
return oe(
|
|
1226
1226
|
e,
|
|
@@ -1236,7 +1236,7 @@ function Dt() {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
var le = o.createContext(void 0);
|
|
1238
1238
|
le.displayName = "FrameworkContext";
|
|
1239
|
-
function
|
|
1239
|
+
function ke() {
|
|
1240
1240
|
let e = o.useContext(le);
|
|
1241
1241
|
return oe(
|
|
1242
1242
|
e,
|
|
@@ -1247,26 +1247,26 @@ function It(e, t) {
|
|
|
1247
1247
|
let n = o.useContext(le), [a, r] = o.useState(!1), [i, c] = o.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = o.useRef(null);
|
|
1248
1248
|
o.useEffect(() => {
|
|
1249
1249
|
if (e === "render" && c(!0), e === "viewport") {
|
|
1250
|
-
let
|
|
1251
|
-
|
|
1252
|
-
c(
|
|
1250
|
+
let w = (m) => {
|
|
1251
|
+
m.forEach((g) => {
|
|
1252
|
+
c(g.isIntersecting);
|
|
1253
1253
|
});
|
|
1254
|
-
},
|
|
1255
|
-
return d.current &&
|
|
1256
|
-
|
|
1254
|
+
}, E = new IntersectionObserver(w, { threshold: 0.5 });
|
|
1255
|
+
return d.current && E.observe(d.current), () => {
|
|
1256
|
+
E.disconnect();
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
1259
|
}, [e]), o.useEffect(() => {
|
|
1260
1260
|
if (a) {
|
|
1261
|
-
let
|
|
1261
|
+
let w = setTimeout(() => {
|
|
1262
1262
|
c(!0);
|
|
1263
1263
|
}, 100);
|
|
1264
1264
|
return () => {
|
|
1265
|
-
clearTimeout(
|
|
1265
|
+
clearTimeout(w);
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
1268
|
}, [a]);
|
|
1269
|
-
let
|
|
1269
|
+
let v = () => {
|
|
1270
1270
|
r(!0);
|
|
1271
1271
|
}, f = () => {
|
|
1272
1272
|
r(!1), c(!1);
|
|
@@ -1275,11 +1275,11 @@ function It(e, t) {
|
|
|
1275
1275
|
i,
|
|
1276
1276
|
d,
|
|
1277
1277
|
{
|
|
1278
|
-
onFocus: U(u,
|
|
1278
|
+
onFocus: U(u, v),
|
|
1279
1279
|
onBlur: U(l, f),
|
|
1280
|
-
onMouseEnter: U(s,
|
|
1280
|
+
onMouseEnter: U(s, v),
|
|
1281
1281
|
onMouseLeave: U(h, f),
|
|
1282
|
-
onTouchStart: U(p,
|
|
1282
|
+
onTouchStart: U(p, v)
|
|
1283
1283
|
}
|
|
1284
1284
|
] : [!1, d, {}];
|
|
1285
1285
|
}
|
|
@@ -1292,17 +1292,17 @@ function Ot({
|
|
|
1292
1292
|
page: e,
|
|
1293
1293
|
...t
|
|
1294
1294
|
}) {
|
|
1295
|
-
let { router: n } =
|
|
1295
|
+
let { router: n } = Le(), a = o.useMemo(
|
|
1296
1296
|
() => pe(n.routes, e, n.basename),
|
|
1297
1297
|
[n.routes, e, n.basename]
|
|
1298
1298
|
);
|
|
1299
1299
|
return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : null;
|
|
1300
1300
|
}
|
|
1301
1301
|
function Ft(e) {
|
|
1302
|
-
let { manifest: t, routeModules: n } =
|
|
1302
|
+
let { manifest: t, routeModules: n } = ke(), [a, r] = o.useState([]);
|
|
1303
1303
|
return o.useEffect(() => {
|
|
1304
1304
|
let i = !1;
|
|
1305
|
-
return
|
|
1305
|
+
return kt(e, t, n).then(
|
|
1306
1306
|
(c) => {
|
|
1307
1307
|
i || r(c);
|
|
1308
1308
|
}
|
|
@@ -1316,57 +1316,58 @@ function _t({
|
|
|
1316
1316
|
matches: t,
|
|
1317
1317
|
...n
|
|
1318
1318
|
}) {
|
|
1319
|
-
let a = N(), { manifest: r, routeModules: i } = Le(), { loaderData:
|
|
1319
|
+
let a = N(), { manifest: r, routeModules: i } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Dt(), s = o.useMemo(
|
|
1320
1320
|
() => me(
|
|
1321
1321
|
e,
|
|
1322
1322
|
t,
|
|
1323
|
-
|
|
1323
|
+
l,
|
|
1324
1324
|
r,
|
|
1325
1325
|
a,
|
|
1326
1326
|
"data"
|
|
1327
1327
|
),
|
|
1328
|
-
[e, t,
|
|
1329
|
-
),
|
|
1328
|
+
[e, t, l, r, a]
|
|
1329
|
+
), h = o.useMemo(
|
|
1330
1330
|
() => me(
|
|
1331
1331
|
e,
|
|
1332
1332
|
t,
|
|
1333
|
-
|
|
1333
|
+
l,
|
|
1334
1334
|
r,
|
|
1335
1335
|
a,
|
|
1336
1336
|
"assets"
|
|
1337
1337
|
),
|
|
1338
|
-
[e, t,
|
|
1339
|
-
),
|
|
1338
|
+
[e, t, l, r, a]
|
|
1339
|
+
), p = o.useMemo(() => {
|
|
1340
1340
|
if (e === a.pathname + a.search + a.hash)
|
|
1341
1341
|
return [];
|
|
1342
|
-
let
|
|
1343
|
-
if (t.forEach((
|
|
1342
|
+
let f = /* @__PURE__ */ new Set(), w = !1;
|
|
1343
|
+
if (t.forEach((m) => {
|
|
1344
1344
|
var y;
|
|
1345
|
-
let
|
|
1346
|
-
!
|
|
1347
|
-
}),
|
|
1345
|
+
let g = r.routes[m.route.id];
|
|
1346
|
+
!g || !g.hasLoader || (!s.some((R) => R.route.id === m.route.id) && m.route.id in u && ((y = i[m.route.id]) != null && y.shouldRevalidate) || g.hasClientLoader ? w = !0 : f.add(m.route.id));
|
|
1347
|
+
}), f.size === 0)
|
|
1348
1348
|
return [];
|
|
1349
|
-
let E =
|
|
1350
|
-
return
|
|
1349
|
+
let E = Mt(e, c);
|
|
1350
|
+
return w && f.size > 0 && E.searchParams.set(
|
|
1351
1351
|
"_routes",
|
|
1352
|
-
t.filter((
|
|
1352
|
+
t.filter((m) => f.has(m.route.id)).map((m) => m.route.id).join(",")
|
|
1353
1353
|
), [E.pathname + E.search];
|
|
1354
1354
|
}, [
|
|
1355
1355
|
c,
|
|
1356
|
+
u,
|
|
1356
1357
|
a,
|
|
1357
1358
|
r,
|
|
1358
|
-
|
|
1359
|
+
s,
|
|
1359
1360
|
t,
|
|
1360
1361
|
e,
|
|
1361
1362
|
i
|
|
1362
|
-
]),
|
|
1363
|
-
() =>
|
|
1364
|
-
[
|
|
1365
|
-
),
|
|
1366
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null,
|
|
1363
|
+
]), d = o.useMemo(
|
|
1364
|
+
() => $t(h, r),
|
|
1365
|
+
[h, r]
|
|
1366
|
+
), v = Ft(h);
|
|
1367
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, p.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
|
|
1367
1368
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1368
1369
|
// already with their own props
|
|
1369
|
-
/* @__PURE__ */ o.createElement("link", { key:
|
|
1370
|
+
/* @__PURE__ */ o.createElement("link", { key: f, ...w })
|
|
1370
1371
|
)));
|
|
1371
1372
|
}
|
|
1372
1373
|
function Ut(...e) {
|
|
@@ -1376,12 +1377,12 @@ function Ut(...e) {
|
|
|
1376
1377
|
});
|
|
1377
1378
|
};
|
|
1378
1379
|
}
|
|
1379
|
-
var
|
|
1380
|
+
var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1380
1381
|
try {
|
|
1381
|
-
|
|
1382
|
+
$e && (window.__reactRouterVersion = "7.5.0");
|
|
1382
1383
|
} catch {
|
|
1383
1384
|
}
|
|
1384
|
-
var
|
|
1385
|
+
var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
|
|
1385
1386
|
function({
|
|
1386
1387
|
onClick: t,
|
|
1387
1388
|
discover: n = "render",
|
|
@@ -1395,19 +1396,19 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
|
|
|
1395
1396
|
preventScrollReset: h,
|
|
1396
1397
|
viewTransition: p,
|
|
1397
1398
|
...d
|
|
1398
|
-
},
|
|
1399
|
-
let { basename: f } = o.useContext(T),
|
|
1400
|
-
if (typeof s == "string" &&
|
|
1399
|
+
}, v) {
|
|
1400
|
+
let { basename: f } = o.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
|
|
1401
|
+
if (typeof s == "string" && w && (E = s, $e))
|
|
1401
1402
|
try {
|
|
1402
|
-
let S = new URL(window.location.href),
|
|
1403
|
-
|
|
1403
|
+
let S = new URL(window.location.href), D = s.startsWith("//") ? new URL(S.protocol + s) : new URL(s), se = M(D.pathname, f);
|
|
1404
|
+
D.origin === S.origin && se != null ? s = se + D.search + D.hash : m = !0;
|
|
1404
1405
|
} catch {
|
|
1405
1406
|
L(
|
|
1406
1407
|
!1,
|
|
1407
1408
|
`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1408
1409
|
);
|
|
1409
1410
|
}
|
|
1410
|
-
let
|
|
1411
|
+
let g = et(s, { relative: r }), [y, R, x] = It(
|
|
1411
1412
|
a,
|
|
1412
1413
|
d
|
|
1413
1414
|
), C = zt(s, {
|
|
@@ -1428,18 +1429,18 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
|
|
|
1428
1429
|
{
|
|
1429
1430
|
...d,
|
|
1430
1431
|
...x,
|
|
1431
|
-
href:
|
|
1432
|
-
onClick:
|
|
1433
|
-
ref: Ut(
|
|
1432
|
+
href: E || g,
|
|
1433
|
+
onClick: m || i ? t : $,
|
|
1434
|
+
ref: Ut(v, R),
|
|
1434
1435
|
target: l,
|
|
1435
|
-
"data-discover": !
|
|
1436
|
+
"data-discover": !w && n === "render" ? "true" : void 0
|
|
1436
1437
|
}
|
|
1437
1438
|
)
|
|
1438
1439
|
);
|
|
1439
|
-
return
|
|
1440
|
+
return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, P, /* @__PURE__ */ o.createElement(Ot, { page: g })) : P;
|
|
1440
1441
|
}
|
|
1441
1442
|
);
|
|
1442
|
-
|
|
1443
|
+
Ne.displayName = "Link";
|
|
1443
1444
|
var Bt = o.forwardRef(
|
|
1444
1445
|
function({
|
|
1445
1446
|
"aria-current": t = "page",
|
|
@@ -1452,31 +1453,31 @@ var Bt = o.forwardRef(
|
|
|
1452
1453
|
children: l,
|
|
1453
1454
|
...s
|
|
1454
1455
|
}, h) {
|
|
1455
|
-
let p = W(c, { relative: s.relative }), d = N(),
|
|
1456
|
+
let p = W(c, { relative: s.relative }), d = N(), v = o.useContext(F), { navigator: f, basename: w } = o.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1456
1457
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1457
|
-
Kt(p) && u === !0,
|
|
1458
|
-
n || (
|
|
1459
|
-
const
|
|
1460
|
-
let x =
|
|
1458
|
+
Kt(p) && u === !0, m = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, g = d.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
|
|
1459
|
+
n || (g = g.toLowerCase(), y = y ? y.toLowerCase() : null, m = m.toLowerCase()), y && w && (y = M(y, w) || y);
|
|
1460
|
+
const R = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
|
|
1461
|
+
let x = g === m || !r && g.startsWith(m) && g.charAt(R) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
|
|
1461
1462
|
isActive: x,
|
|
1462
1463
|
isPending: C,
|
|
1463
|
-
isTransitioning:
|
|
1464
|
+
isTransitioning: E
|
|
1464
1465
|
}, P = x ? t : void 0, S;
|
|
1465
1466
|
typeof a == "function" ? S = a($) : S = [
|
|
1466
1467
|
a,
|
|
1467
1468
|
x ? "active" : null,
|
|
1468
1469
|
C ? "pending" : null,
|
|
1469
|
-
|
|
1470
|
+
E ? "transitioning" : null
|
|
1470
1471
|
].filter(Boolean).join(" ");
|
|
1471
|
-
let
|
|
1472
|
+
let D = typeof i == "function" ? i($) : i;
|
|
1472
1473
|
return /* @__PURE__ */ o.createElement(
|
|
1473
|
-
|
|
1474
|
+
Ne,
|
|
1474
1475
|
{
|
|
1475
1476
|
...s,
|
|
1476
1477
|
"aria-current": P,
|
|
1477
1478
|
className: S,
|
|
1478
1479
|
ref: h,
|
|
1479
|
-
style:
|
|
1480
|
+
style: D,
|
|
1480
1481
|
to: c,
|
|
1481
1482
|
viewTransition: u
|
|
1482
1483
|
},
|
|
@@ -1500,12 +1501,12 @@ var Ht = o.forwardRef(
|
|
|
1500
1501
|
preventScrollReset: h,
|
|
1501
1502
|
viewTransition: p,
|
|
1502
1503
|
...d
|
|
1503
|
-
},
|
|
1504
|
-
let f = Yt(),
|
|
1505
|
-
if (l && l(
|
|
1506
|
-
|
|
1507
|
-
let
|
|
1508
|
-
f(
|
|
1504
|
+
}, v) => {
|
|
1505
|
+
let f = Yt(), w = Jt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
|
|
1506
|
+
if (l && l(y), y.defaultPrevented) return;
|
|
1507
|
+
y.preventDefault();
|
|
1508
|
+
let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || c;
|
|
1509
|
+
f(R || y.currentTarget, {
|
|
1509
1510
|
fetcherKey: t,
|
|
1510
1511
|
method: x,
|
|
1511
1512
|
navigate: n,
|
|
@@ -1519,12 +1520,12 @@ var Ht = o.forwardRef(
|
|
|
1519
1520
|
return /* @__PURE__ */ o.createElement(
|
|
1520
1521
|
"form",
|
|
1521
1522
|
{
|
|
1522
|
-
ref:
|
|
1523
|
-
method:
|
|
1524
|
-
action:
|
|
1525
|
-
onSubmit: a ? l :
|
|
1523
|
+
ref: v,
|
|
1524
|
+
method: E,
|
|
1525
|
+
action: w,
|
|
1526
|
+
onSubmit: a ? l : g,
|
|
1526
1527
|
...d,
|
|
1527
|
-
"data-discover": !
|
|
1528
|
+
"data-discover": !m && e === "render" ? "true" : void 0
|
|
1528
1529
|
}
|
|
1529
1530
|
);
|
|
1530
1531
|
}
|
|
@@ -1533,9 +1534,9 @@ Ht.displayName = "Form";
|
|
|
1533
1534
|
function Wt(e) {
|
|
1534
1535
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1535
1536
|
}
|
|
1536
|
-
function
|
|
1537
|
+
function Ae(e) {
|
|
1537
1538
|
let t = o.useContext(I);
|
|
1538
|
-
return
|
|
1539
|
+
return b(t, Wt(e)), t;
|
|
1539
1540
|
}
|
|
1540
1541
|
function zt(e, {
|
|
1541
1542
|
target: t,
|
|
@@ -1548,7 +1549,7 @@ function zt(e, {
|
|
|
1548
1549
|
let u = re(), l = N(), s = W(e, { relative: i });
|
|
1549
1550
|
return o.useCallback(
|
|
1550
1551
|
(h) => {
|
|
1551
|
-
if (
|
|
1552
|
+
if (xt(h, t)) {
|
|
1552
1553
|
h.preventDefault();
|
|
1553
1554
|
let p = n !== void 0 ? n : B(l) === B(s);
|
|
1554
1555
|
u(e, {
|
|
@@ -1584,7 +1585,7 @@ function dn(e) {
|
|
|
1584
1585
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1585
1586
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
1586
1587
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
1587
|
-
|
|
1588
|
+
Rt(
|
|
1588
1589
|
a.search,
|
|
1589
1590
|
n.current ? null : t.current
|
|
1590
1591
|
)
|
|
@@ -1603,13 +1604,13 @@ function dn(e) {
|
|
|
1603
1604
|
}
|
|
1604
1605
|
var Vt = 0, jt = () => `__${String(++Vt)}__`;
|
|
1605
1606
|
function Yt() {
|
|
1606
|
-
let { router: e } =
|
|
1607
|
+
let { router: e } = Ae(
|
|
1607
1608
|
"useSubmit"
|
|
1608
1609
|
/* UseSubmit */
|
|
1609
|
-
), { basename: t } = o.useContext(T), n =
|
|
1610
|
+
), { basename: t } = o.useContext(T), n = ft();
|
|
1610
1611
|
return o.useCallback(
|
|
1611
1612
|
async (a, r = {}) => {
|
|
1612
|
-
let { action: i, method: c, encType: u, formData: l, body: s } =
|
|
1613
|
+
let { action: i, method: c, encType: u, formData: l, body: s } = Pt(
|
|
1613
1614
|
a,
|
|
1614
1615
|
t
|
|
1615
1616
|
);
|
|
@@ -1642,7 +1643,7 @@ function Yt() {
|
|
|
1642
1643
|
}
|
|
1643
1644
|
function Jt(e, { relative: t } = {}) {
|
|
1644
1645
|
let { basename: n } = o.useContext(T), a = o.useContext(k);
|
|
1645
|
-
|
|
1646
|
+
b(a, "useFormAction must be used inside a RouteContext");
|
|
1646
1647
|
let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, c = N();
|
|
1647
1648
|
if (e == null) {
|
|
1648
1649
|
i.search = c.search;
|
|
@@ -1657,17 +1658,17 @@ function Jt(e, { relative: t } = {}) {
|
|
|
1657
1658
|
}
|
|
1658
1659
|
function Kt(e, t = {}) {
|
|
1659
1660
|
let n = o.useContext(J);
|
|
1660
|
-
|
|
1661
|
+
b(
|
|
1661
1662
|
n != null,
|
|
1662
1663
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1663
1664
|
);
|
|
1664
|
-
let { basename: a } =
|
|
1665
|
+
let { basename: a } = Ae(
|
|
1665
1666
|
"useViewTransitionState"
|
|
1666
1667
|
/* useViewTransitionState */
|
|
1667
1668
|
), r = W(e, { relative: t.relative });
|
|
1668
1669
|
if (!n.isTransitioning)
|
|
1669
1670
|
return !1;
|
|
1670
|
-
let i =
|
|
1671
|
+
let i = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
|
|
1671
1672
|
return H(r.pathname, c) != null || H(r.pathname, i) != null;
|
|
1672
1673
|
}
|
|
1673
1674
|
function hn({
|
|
@@ -1676,7 +1677,7 @@ function hn({
|
|
|
1676
1677
|
hydrate: n = !0,
|
|
1677
1678
|
nonce: a
|
|
1678
1679
|
}) {
|
|
1679
|
-
|
|
1680
|
+
b(
|
|
1680
1681
|
t && e,
|
|
1681
1682
|
"You must provide `router` and `context` to <StaticRouterProvider>"
|
|
1682
1683
|
);
|
|
@@ -1727,7 +1728,7 @@ function qt({
|
|
|
1727
1728
|
future: t,
|
|
1728
1729
|
state: n
|
|
1729
1730
|
}) {
|
|
1730
|
-
return
|
|
1731
|
+
return be(e, void 0, n, t);
|
|
1731
1732
|
}
|
|
1732
1733
|
function Gt(e) {
|
|
1733
1734
|
if (!e) return null;
|
|
@@ -1800,7 +1801,7 @@ function rn(e) {
|
|
|
1800
1801
|
}
|
|
1801
1802
|
new TextEncoder();
|
|
1802
1803
|
export {
|
|
1803
|
-
|
|
1804
|
+
Ne as L,
|
|
1804
1805
|
cn as N,
|
|
1805
1806
|
fn as O,
|
|
1806
1807
|
un as R,
|
|
@@ -1809,13 +1810,13 @@ export {
|
|
|
1809
1810
|
dn as b,
|
|
1810
1811
|
ln as c,
|
|
1811
1812
|
on as d,
|
|
1812
|
-
|
|
1813
|
+
dt as e,
|
|
1813
1814
|
sn as f,
|
|
1814
1815
|
Bt as g,
|
|
1815
|
-
|
|
1816
|
+
et as h,
|
|
1816
1817
|
we as i,
|
|
1817
1818
|
H as m,
|
|
1818
1819
|
an as r,
|
|
1819
1820
|
N as u
|
|
1820
1821
|
};
|
|
1821
|
-
//# sourceMappingURL=chunk-
|
|
1822
|
+
//# sourceMappingURL=chunk-KNED5TY2-BUPjb3LQ.js.map
|