zudoku 0.3.0-dev.30 → 0.3.0-dev.32
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/App.d.ts +1 -0
- package/dist/app/App.js +2 -0
- package/dist/app/App.js.map +1 -0
- package/dist/app/demo.js +15 -11
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +5 -0
- package/dist/app/entry.client.js +28 -0
- package/dist/app/entry.client.js.map +1 -0
- package/dist/app/entry.server.d.ts +10 -0
- package/dist/app/entry.server.js +107 -0
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +26 -2
- package/dist/app/main.js +39 -15
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +14 -10
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -4
- package/dist/app/tailwind.js.map +1 -1
- package/dist/app/zudoku-manifest.d.ts +1 -0
- package/dist/app/zudoku-manifest.js +20 -0
- package/dist/app/zudoku-manifest.js.map +1 -0
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +3 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +5 -0
- package/dist/lib/authentication/providers/clerk.js +2 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +5 -2
- package/dist/lib/components/DevPortal.js +11 -10
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/ErrorPage.d.ts +6 -0
- package/dist/lib/components/ErrorPage.js +9 -0
- package/dist/lib/components/ErrorPage.js.map +1 -0
- package/dist/lib/components/InlineCode.d.ts +5 -0
- package/dist/lib/components/InlineCode.js +4 -0
- package/dist/lib/components/InlineCode.js.map +1 -0
- package/dist/lib/components/Layout.js +2 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/NotFoundPage.d.ts +1 -0
- package/dist/lib/components/NotFoundPage.js +12 -0
- package/dist/lib/components/NotFoundPage.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
- package/dist/lib/components/SyntaxHighlight.js +20 -22
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -1
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +12 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/ServerError.d.ts +3 -0
- package/dist/lib/errors/ServerError.js +6 -0
- package/dist/lib/errors/ServerError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +38 -14
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +3 -8
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.js +3 -7
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +11 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +2 -1
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +9 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/redirect/index.js +2 -3
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +2 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/groupBy.d.ts +1 -6
- package/dist/lib/util/groupBy.js +10 -8
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/vite/build.js +23 -10
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -2
- package/dist/vite/config.js +36 -8
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +1 -1
- package/dist/vite/dev-server.js +15 -9
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +5 -4
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +6 -0
- package/dist/vite/plugin-custom-css.js +55 -0
- package/dist/vite/plugin-custom-css.js.map +1 -0
- package/dist/vite/plugin-docs.js +14 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-openapi-worker.js +4 -1
- package/dist/vite/plugin-openapi-worker.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +1 -0
- package/dist/vite/prerender.js +57 -0
- package/dist/vite/prerender.js.map +1 -0
- package/lib/{DevPortalProvider--xZTs0RJ.js → DevPortalProvider-BlxLX6GG.js} +230 -250
- package/lib/DevPortalProvider-BlxLX6GG.js.map +1 -0
- package/lib/{Markdown-oJFqm0uk.js → Markdown-CL8KPvJN.js} +8 -9
- package/lib/{Markdown-oJFqm0uk.js.map → Markdown-CL8KPvJN.js.map} +1 -1
- package/lib/MdxComponents-Ev_hBHb2.js +5885 -0
- package/lib/MdxComponents-Ev_hBHb2.js.map +1 -0
- package/lib/{MdxPage-BV_9ncEk.js → MdxPage-Z3HKNTrj.js} +92 -89
- package/lib/MdxPage-Z3HKNTrj.js.map +1 -0
- package/lib/{OperationList-DfG_E0Xa.js → OperationList-KoITgfDT.js} +1967 -1785
- package/lib/OperationList-KoITgfDT.js.map +1 -0
- package/lib/Route-Bf1_D_vC.js +13 -0
- package/lib/{Route-CHqr53jb.js.map → Route-Bf1_D_vC.js.map} +1 -1
- package/lib/Select-DSa3bN4t.js +4770 -0
- package/lib/Select-DSa3bN4t.js.map +1 -0
- package/lib/assets/{worker-BXS8hiSM.js → worker-BjPv-hjP.js} +3100 -2720
- package/lib/assets/worker-BjPv-hjP.js.map +1 -0
- package/lib/hook-CTmJ6CWq.js +35 -0
- package/lib/hook-CTmJ6CWq.js.map +1 -0
- package/lib/index-BdWBDosx.js +74 -0
- package/lib/index-BdWBDosx.js.map +1 -0
- package/lib/{index-B2qLeglF.js → index-BoWzKb_9.js} +57 -41
- package/lib/index-BoWzKb_9.js.map +1 -0
- package/lib/{AnchorLink-BtVKbEwm.js → index.esm-CPEExBJE.js} +156 -168
- package/lib/index.esm-CPEExBJE.js.map +1 -0
- package/lib/jsx-runtime-CM0TzjGp.js +866 -0
- package/lib/jsx-runtime-CM0TzjGp.js.map +1 -0
- package/lib/mutation-91kw0lHb.js +208 -0
- package/lib/mutation-91kw0lHb.js.map +1 -0
- package/lib/router-CcYTwKjf.js +183 -0
- package/lib/router-CcYTwKjf.js.map +1 -0
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +588 -441
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +330 -543
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +18 -18
- package/lib/zudoku.plugin-api-keys.js +143 -98
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +2 -49
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -3
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +6 -7
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/package.json +3 -1
- package/src/app/App.tsx +0 -0
- package/src/app/demo.tsx +18 -13
- package/src/app/entry.client.tsx +51 -0
- package/src/app/entry.server.tsx +158 -0
- package/src/app/main.tsx +65 -41
- package/src/app/standalone.tsx +15 -11
- package/src/app/tailwind.ts +2 -6
- package/src/app/zudoku-manifest.ts +22 -0
- package/src/lib/authentication/providers/clerk.tsx +1 -0
- package/src/lib/components/DevPortal.tsx +34 -33
- package/src/lib/components/ErrorPage.tsx +28 -0
- package/src/lib/components/InlineCode.tsx +19 -0
- package/src/lib/components/Layout.tsx +7 -4
- package/src/lib/components/NotFoundPage.tsx +39 -0
- package/src/lib/components/SyntaxHighlight.tsx +26 -22
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +13 -0
- package/src/lib/errors/ServerError.tsx +5 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/parser/index.ts +41 -22
- package/src/lib/plugins/api-keys/index.tsx +4 -16
- package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
- package/src/lib/plugins/markdown/index.tsx +3 -7
- package/src/lib/plugins/openapi/OperationList.tsx +30 -0
- package/src/lib/plugins/openapi/OperationListItem.tsx +3 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +8 -10
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -1
- package/src/lib/plugins/openapi/index.tsx +18 -1
- package/src/lib/plugins/redirect/index.tsx +2 -2
- package/src/lib/ui/Callout.tsx +2 -2
- package/src/lib/util/MdxComponents.tsx +2 -11
- package/src/lib/util/groupBy.ts +7 -12
- package/dist/lib/components/Error.d.ts +0 -1
- package/dist/lib/components/Error.js +0 -10
- package/dist/lib/components/Error.js.map +0 -1
- package/dist/lib/components/Router.d.ts +0 -4
- package/dist/lib/components/Router.js +0 -21
- package/dist/lib/components/Router.js.map +0 -1
- package/lib/AnchorLink-BtVKbEwm.js.map +0 -1
- package/lib/DevPortalProvider--xZTs0RJ.js.map +0 -1
- package/lib/MdxComponents-CsU8yR42.js +0 -3019
- package/lib/MdxComponents-CsU8yR42.js.map +0 -1
- package/lib/MdxPage-BV_9ncEk.js.map +0 -1
- package/lib/OperationList-DfG_E0Xa.js.map +0 -1
- package/lib/Route-CHqr53jb.js +0 -14
- package/lib/Select-CNmXi4JU.js +0 -4572
- package/lib/Select-CNmXi4JU.js.map +0 -1
- package/lib/Spinner-By5opWs5.js +0 -182
- package/lib/Spinner-By5opWs5.js.map +0 -1
- package/lib/assets/worker-BXS8hiSM.js.map +0 -1
- package/lib/cn-DpqTslo9.js +0 -2342
- package/lib/cn-DpqTslo9.js.map +0 -1
- package/lib/hook-kVJ4gpk5.js +0 -25
- package/lib/hook-kVJ4gpk5.js.map +0 -1
- package/lib/index-B2qLeglF.js.map +0 -1
- package/lib/index-CUIxJAeE.js +0 -713
- package/lib/index-CUIxJAeE.js.map +0 -1
- package/lib/index-Cr3hgaqt.js +0 -412
- package/lib/index-Cr3hgaqt.js.map +0 -1
- package/lib/index-fXFJf9Ua.js +0 -464
- package/lib/index-fXFJf9Ua.js.map +0 -1
- package/lib/jsx-runtime-D7DwziLW.js +0 -3009
- package/lib/jsx-runtime-D7DwziLW.js.map +0 -1
- package/lib/loglevel-CA34MiFn.js +0 -153
- package/lib/loglevel-CA34MiFn.js.map +0 -1
- package/lib/util-DnDPBx_j.js +0 -41
- package/lib/util-DnDPBx_j.js.map +0 -1
- package/src/lib/components/Error.tsx +0 -15
- package/src/lib/components/Router.tsx +0 -23
|
@@ -0,0 +1,866 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import Ye from "react";
|
|
3
|
+
import { a as _, j as $e, g as ie, w as ue, r as se } from "./router-CcYTwKjf.js";
|
|
4
|
+
/**
|
|
5
|
+
* React Router v6.24.1
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Remix Software Inc.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
+
*
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
function ae() {
|
|
15
|
+
return ae = Object.assign ? Object.assign.bind() : function(n) {
|
|
16
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
17
|
+
var v = arguments[a];
|
|
18
|
+
for (var c in v)
|
|
19
|
+
Object.prototype.hasOwnProperty.call(v, c) && (n[c] = v[c]);
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
22
|
+
}, ae.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
const le = /* @__PURE__ */ s.createContext(null);
|
|
25
|
+
process.env.NODE_ENV !== "production" && (le.displayName = "DataRouter");
|
|
26
|
+
const Me = /* @__PURE__ */ s.createContext(null);
|
|
27
|
+
process.env.NODE_ENV !== "production" && (Me.displayName = "DataRouterState");
|
|
28
|
+
const jr = /* @__PURE__ */ s.createContext(null);
|
|
29
|
+
process.env.NODE_ENV !== "production" && (jr.displayName = "Await");
|
|
30
|
+
const I = /* @__PURE__ */ s.createContext(null);
|
|
31
|
+
process.env.NODE_ENV !== "production" && (I.displayName = "Navigation");
|
|
32
|
+
const ce = /* @__PURE__ */ s.createContext(null);
|
|
33
|
+
process.env.NODE_ENV !== "production" && (ce.displayName = "Location");
|
|
34
|
+
const T = /* @__PURE__ */ s.createContext({
|
|
35
|
+
outlet: null,
|
|
36
|
+
matches: [],
|
|
37
|
+
isDataRoute: !1
|
|
38
|
+
});
|
|
39
|
+
process.env.NODE_ENV !== "production" && (T.displayName = "Route");
|
|
40
|
+
const Je = /* @__PURE__ */ s.createContext(null);
|
|
41
|
+
process.env.NODE_ENV !== "production" && (Je.displayName = "RouteError");
|
|
42
|
+
function Br(n, a) {
|
|
43
|
+
let {
|
|
44
|
+
relative: v
|
|
45
|
+
} = a === void 0 ? {} : a;
|
|
46
|
+
G() || (process.env.NODE_ENV !== "production" ? _(
|
|
47
|
+
!1,
|
|
48
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
49
|
+
// router loaded. We can help them understand how to avoid that.
|
|
50
|
+
"useHref() may be used only in the context of a <Router> component."
|
|
51
|
+
) : _(!1));
|
|
52
|
+
let {
|
|
53
|
+
basename: c,
|
|
54
|
+
navigator: E
|
|
55
|
+
} = s.useContext(I), {
|
|
56
|
+
hash: m,
|
|
57
|
+
pathname: R,
|
|
58
|
+
search: C
|
|
59
|
+
} = Ir(n, {
|
|
60
|
+
relative: v
|
|
61
|
+
}), p = R;
|
|
62
|
+
return c !== "/" && (p = R === "/" ? c : $e([c, R])), E.createHref({
|
|
63
|
+
pathname: p,
|
|
64
|
+
search: C,
|
|
65
|
+
hash: m
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function G() {
|
|
69
|
+
return s.useContext(ce) != null;
|
|
70
|
+
}
|
|
71
|
+
function fe() {
|
|
72
|
+
return G() || (process.env.NODE_ENV !== "production" ? _(
|
|
73
|
+
!1,
|
|
74
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
75
|
+
// router loaded. We can help them understand how to avoid that.
|
|
76
|
+
"useLocation() may be used only in the context of a <Router> component."
|
|
77
|
+
) : _(!1)), s.useContext(ce).location;
|
|
78
|
+
}
|
|
79
|
+
const Be = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
80
|
+
function qe(n) {
|
|
81
|
+
s.useContext(I).static || s.useLayoutEffect(n);
|
|
82
|
+
}
|
|
83
|
+
function Dr() {
|
|
84
|
+
let {
|
|
85
|
+
isDataRoute: n
|
|
86
|
+
} = s.useContext(T);
|
|
87
|
+
return n ? Wr() : kr();
|
|
88
|
+
}
|
|
89
|
+
function kr() {
|
|
90
|
+
G() || (process.env.NODE_ENV !== "production" ? _(
|
|
91
|
+
!1,
|
|
92
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
93
|
+
// router loaded. We can help them understand how to avoid that.
|
|
94
|
+
"useNavigate() may be used only in the context of a <Router> component."
|
|
95
|
+
) : _(!1));
|
|
96
|
+
let n = s.useContext(le), {
|
|
97
|
+
basename: a,
|
|
98
|
+
future: v,
|
|
99
|
+
navigator: c
|
|
100
|
+
} = s.useContext(I), {
|
|
101
|
+
matches: E
|
|
102
|
+
} = s.useContext(T), {
|
|
103
|
+
pathname: m
|
|
104
|
+
} = fe(), R = JSON.stringify(ie(E, v.v7_relativeSplatPath)), C = s.useRef(!1);
|
|
105
|
+
return qe(() => {
|
|
106
|
+
C.current = !0;
|
|
107
|
+
}), s.useCallback(function(N, d) {
|
|
108
|
+
if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ue(C.current, Be), !C.current) return;
|
|
109
|
+
if (typeof N == "number") {
|
|
110
|
+
c.go(N);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
let y = se(N, JSON.parse(R), m, d.relative === "path");
|
|
114
|
+
n == null && a !== "/" && (y.pathname = y.pathname === "/" ? a : $e([a, y.pathname])), (d.replace ? c.replace : c.push)(y, d.state, d);
|
|
115
|
+
}, [a, c, R, m, n]);
|
|
116
|
+
}
|
|
117
|
+
const Ar = /* @__PURE__ */ s.createContext(null);
|
|
118
|
+
function Fr(n) {
|
|
119
|
+
let a = s.useContext(T).outlet;
|
|
120
|
+
return a && /* @__PURE__ */ s.createElement(Ar.Provider, {
|
|
121
|
+
value: n
|
|
122
|
+
}, a);
|
|
123
|
+
}
|
|
124
|
+
function qr() {
|
|
125
|
+
let {
|
|
126
|
+
matches: n
|
|
127
|
+
} = s.useContext(T), a = n[n.length - 1];
|
|
128
|
+
return a ? a.params : {};
|
|
129
|
+
}
|
|
130
|
+
function Ir(n, a) {
|
|
131
|
+
let {
|
|
132
|
+
relative: v
|
|
133
|
+
} = a === void 0 ? {} : a, {
|
|
134
|
+
future: c
|
|
135
|
+
} = s.useContext(I), {
|
|
136
|
+
matches: E
|
|
137
|
+
} = s.useContext(T), {
|
|
138
|
+
pathname: m
|
|
139
|
+
} = fe(), R = JSON.stringify(ie(E, c.v7_relativeSplatPath));
|
|
140
|
+
return s.useMemo(() => se(n, JSON.parse(R), m, v === "path"), [n, R, m, v]);
|
|
141
|
+
}
|
|
142
|
+
var Ke = /* @__PURE__ */ function(n) {
|
|
143
|
+
return n.UseBlocker = "useBlocker", n.UseRevalidator = "useRevalidator", n.UseNavigateStable = "useNavigate", n;
|
|
144
|
+
}(Ke || {}), $ = /* @__PURE__ */ function(n) {
|
|
145
|
+
return n.UseBlocker = "useBlocker", n.UseLoaderData = "useLoaderData", n.UseActionData = "useActionData", n.UseRouteError = "useRouteError", n.UseNavigation = "useNavigation", n.UseRouteLoaderData = "useRouteLoaderData", n.UseMatches = "useMatches", n.UseRevalidator = "useRevalidator", n.UseNavigateStable = "useNavigate", n.UseRouteId = "useRouteId", n;
|
|
146
|
+
}($ || {});
|
|
147
|
+
function ve(n) {
|
|
148
|
+
return n + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
149
|
+
}
|
|
150
|
+
function Ur(n) {
|
|
151
|
+
let a = s.useContext(le);
|
|
152
|
+
return a || (process.env.NODE_ENV !== "production" ? _(!1, ve(n)) : _(!1)), a;
|
|
153
|
+
}
|
|
154
|
+
function Vr(n) {
|
|
155
|
+
let a = s.useContext(Me);
|
|
156
|
+
return a || (process.env.NODE_ENV !== "production" ? _(!1, ve(n)) : _(!1)), a;
|
|
157
|
+
}
|
|
158
|
+
function Lr(n) {
|
|
159
|
+
let a = s.useContext(T);
|
|
160
|
+
return a || (process.env.NODE_ENV !== "production" ? _(!1, ve(n)) : _(!1)), a;
|
|
161
|
+
}
|
|
162
|
+
function de(n) {
|
|
163
|
+
let a = Lr(n), v = a.matches[a.matches.length - 1];
|
|
164
|
+
return v.route.id || (process.env.NODE_ENV !== "production" ? _(!1, n + ' can only be used on routes that contain a unique "id"') : _(!1)), v.route.id;
|
|
165
|
+
}
|
|
166
|
+
function Kr() {
|
|
167
|
+
return de($.UseRouteId);
|
|
168
|
+
}
|
|
169
|
+
function Gr() {
|
|
170
|
+
var n;
|
|
171
|
+
let a = s.useContext(Je), v = Vr($.UseRouteError), c = de($.UseRouteError);
|
|
172
|
+
return a !== void 0 ? a : (n = v.errors) == null ? void 0 : n[c];
|
|
173
|
+
}
|
|
174
|
+
function Wr() {
|
|
175
|
+
let {
|
|
176
|
+
router: n
|
|
177
|
+
} = Ur(Ke.UseNavigateStable), a = de($.UseNavigateStable), v = s.useRef(!1);
|
|
178
|
+
return qe(() => {
|
|
179
|
+
v.current = !0;
|
|
180
|
+
}), s.useCallback(function(E, m) {
|
|
181
|
+
m === void 0 && (m = {}), process.env.NODE_ENV !== "production" && ue(v.current, Be), v.current && (typeof E == "number" ? n.navigate(E) : n.navigate(E, ae({
|
|
182
|
+
fromRouteId: a
|
|
183
|
+
}, m)));
|
|
184
|
+
}, [n, a]);
|
|
185
|
+
}
|
|
186
|
+
function zr(n) {
|
|
187
|
+
let {
|
|
188
|
+
to: a,
|
|
189
|
+
replace: v,
|
|
190
|
+
state: c,
|
|
191
|
+
relative: E
|
|
192
|
+
} = n;
|
|
193
|
+
G() || (process.env.NODE_ENV !== "production" ? _(
|
|
194
|
+
!1,
|
|
195
|
+
// TODO: This error is probably because they somehow have 2 versions of
|
|
196
|
+
// the router loaded. We can help them understand how to avoid that.
|
|
197
|
+
"<Navigate> may be used only in the context of a <Router> component."
|
|
198
|
+
) : _(!1));
|
|
199
|
+
let {
|
|
200
|
+
future: m,
|
|
201
|
+
static: R
|
|
202
|
+
} = s.useContext(I);
|
|
203
|
+
process.env.NODE_ENV !== "production" && ue(!R, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
204
|
+
let {
|
|
205
|
+
matches: C
|
|
206
|
+
} = s.useContext(T), {
|
|
207
|
+
pathname: p
|
|
208
|
+
} = fe(), N = Dr(), d = se(a, ie(C, m.v7_relativeSplatPath), p, E === "path"), y = JSON.stringify(d);
|
|
209
|
+
return s.useEffect(() => N(JSON.parse(y), {
|
|
210
|
+
replace: v,
|
|
211
|
+
state: c,
|
|
212
|
+
relative: E
|
|
213
|
+
}), [N, y, E, v, c]), null;
|
|
214
|
+
}
|
|
215
|
+
function Xr(n) {
|
|
216
|
+
return Fr(n.context);
|
|
217
|
+
}
|
|
218
|
+
new Promise(() => {
|
|
219
|
+
});
|
|
220
|
+
var oe = { exports: {} }, W = {};
|
|
221
|
+
/**
|
|
222
|
+
* @license React
|
|
223
|
+
* react-jsx-runtime.production.min.js
|
|
224
|
+
*
|
|
225
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the MIT license found in the
|
|
228
|
+
* LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/
|
|
230
|
+
var Le;
|
|
231
|
+
function Yr() {
|
|
232
|
+
if (Le) return W;
|
|
233
|
+
Le = 1;
|
|
234
|
+
var n = Ye, a = Symbol.for("react.element"), v = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, E = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
235
|
+
function R(C, p, N) {
|
|
236
|
+
var d, y = {}, w = null, M = null;
|
|
237
|
+
N !== void 0 && (w = "" + N), p.key !== void 0 && (w = "" + p.key), p.ref !== void 0 && (M = p.ref);
|
|
238
|
+
for (d in p) c.call(p, d) && !m.hasOwnProperty(d) && (y[d] = p[d]);
|
|
239
|
+
if (C && C.defaultProps) for (d in p = C.defaultProps, p) y[d] === void 0 && (y[d] = p[d]);
|
|
240
|
+
return { $$typeof: a, type: C, key: w, ref: M, props: y, _owner: E.current };
|
|
241
|
+
}
|
|
242
|
+
return W.Fragment = v, W.jsx = R, W.jsxs = R, W;
|
|
243
|
+
}
|
|
244
|
+
var Y = {};
|
|
245
|
+
/**
|
|
246
|
+
* @license React
|
|
247
|
+
* react-jsx-runtime.development.js
|
|
248
|
+
*
|
|
249
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the MIT license found in the
|
|
252
|
+
* LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/
|
|
254
|
+
var We;
|
|
255
|
+
function $r() {
|
|
256
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
257
|
+
var n = Ye, a = Symbol.for("react.element"), v = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), C = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), pe = Symbol.iterator, Ge = "@@iterator";
|
|
258
|
+
function ze(e) {
|
|
259
|
+
if (e === null || typeof e != "object")
|
|
260
|
+
return null;
|
|
261
|
+
var r = pe && e[pe] || e[Ge];
|
|
262
|
+
return typeof r == "function" ? r : null;
|
|
263
|
+
}
|
|
264
|
+
var k = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
265
|
+
function b(e) {
|
|
266
|
+
{
|
|
267
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
268
|
+
t[o - 1] = arguments[o];
|
|
269
|
+
Xe("error", e, t);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
function Xe(e, r, t) {
|
|
273
|
+
{
|
|
274
|
+
var o = k.ReactDebugCurrentFrame, l = o.getStackAddendum();
|
|
275
|
+
l !== "" && (r += "%s", t = t.concat([l]));
|
|
276
|
+
var f = t.map(function(u) {
|
|
277
|
+
return String(u);
|
|
278
|
+
});
|
|
279
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
var Ze = !1, Qe = !1, He = !1, er = !1, rr = !1, he;
|
|
283
|
+
he = Symbol.for("react.module.reference");
|
|
284
|
+
function tr(e) {
|
|
285
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === m || rr || e === E || e === N || e === d || er || e === M || Ze || Qe || He || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === R || e.$$typeof === C || e.$$typeof === p || // This needs to include all possible module reference object
|
|
286
|
+
// types supported by any Flight configuration anywhere since
|
|
287
|
+
// we don't know which Flight build this will end up being used
|
|
288
|
+
// with.
|
|
289
|
+
e.$$typeof === he || e.getModuleId !== void 0));
|
|
290
|
+
}
|
|
291
|
+
function nr(e, r, t) {
|
|
292
|
+
var o = e.displayName;
|
|
293
|
+
if (o)
|
|
294
|
+
return o;
|
|
295
|
+
var l = r.displayName || r.name || "";
|
|
296
|
+
return l !== "" ? t + "(" + l + ")" : t;
|
|
297
|
+
}
|
|
298
|
+
function ge(e) {
|
|
299
|
+
return e.displayName || "Context";
|
|
300
|
+
}
|
|
301
|
+
function S(e) {
|
|
302
|
+
if (e == null)
|
|
303
|
+
return null;
|
|
304
|
+
if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
305
|
+
return e.displayName || e.name || null;
|
|
306
|
+
if (typeof e == "string")
|
|
307
|
+
return e;
|
|
308
|
+
switch (e) {
|
|
309
|
+
case c:
|
|
310
|
+
return "Fragment";
|
|
311
|
+
case v:
|
|
312
|
+
return "Portal";
|
|
313
|
+
case m:
|
|
314
|
+
return "Profiler";
|
|
315
|
+
case E:
|
|
316
|
+
return "StrictMode";
|
|
317
|
+
case N:
|
|
318
|
+
return "Suspense";
|
|
319
|
+
case d:
|
|
320
|
+
return "SuspenseList";
|
|
321
|
+
}
|
|
322
|
+
if (typeof e == "object")
|
|
323
|
+
switch (e.$$typeof) {
|
|
324
|
+
case C:
|
|
325
|
+
var r = e;
|
|
326
|
+
return ge(r) + ".Consumer";
|
|
327
|
+
case R:
|
|
328
|
+
var t = e;
|
|
329
|
+
return ge(t._context) + ".Provider";
|
|
330
|
+
case p:
|
|
331
|
+
return nr(e, e.render, "ForwardRef");
|
|
332
|
+
case y:
|
|
333
|
+
var o = e.displayName || null;
|
|
334
|
+
return o !== null ? o : S(e.type) || "Memo";
|
|
335
|
+
case w: {
|
|
336
|
+
var l = e, f = l._payload, u = l._init;
|
|
337
|
+
try {
|
|
338
|
+
return S(u(f));
|
|
339
|
+
} catch {
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return null;
|
|
345
|
+
}
|
|
346
|
+
var j = Object.assign, U = 0, Ee, me, Re, ye, be, _e, Ce;
|
|
347
|
+
function Oe() {
|
|
348
|
+
}
|
|
349
|
+
Oe.__reactDisabledLog = !0;
|
|
350
|
+
function ar() {
|
|
351
|
+
{
|
|
352
|
+
if (U === 0) {
|
|
353
|
+
Ee = console.log, me = console.info, Re = console.warn, ye = console.error, be = console.group, _e = console.groupCollapsed, Ce = console.groupEnd;
|
|
354
|
+
var e = {
|
|
355
|
+
configurable: !0,
|
|
356
|
+
enumerable: !0,
|
|
357
|
+
value: Oe,
|
|
358
|
+
writable: !0
|
|
359
|
+
};
|
|
360
|
+
Object.defineProperties(console, {
|
|
361
|
+
info: e,
|
|
362
|
+
log: e,
|
|
363
|
+
warn: e,
|
|
364
|
+
error: e,
|
|
365
|
+
group: e,
|
|
366
|
+
groupCollapsed: e,
|
|
367
|
+
groupEnd: e
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
U++;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
function or() {
|
|
374
|
+
{
|
|
375
|
+
if (U--, U === 0) {
|
|
376
|
+
var e = {
|
|
377
|
+
configurable: !0,
|
|
378
|
+
enumerable: !0,
|
|
379
|
+
writable: !0
|
|
380
|
+
};
|
|
381
|
+
Object.defineProperties(console, {
|
|
382
|
+
log: j({}, e, {
|
|
383
|
+
value: Ee
|
|
384
|
+
}),
|
|
385
|
+
info: j({}, e, {
|
|
386
|
+
value: me
|
|
387
|
+
}),
|
|
388
|
+
warn: j({}, e, {
|
|
389
|
+
value: Re
|
|
390
|
+
}),
|
|
391
|
+
error: j({}, e, {
|
|
392
|
+
value: ye
|
|
393
|
+
}),
|
|
394
|
+
group: j({}, e, {
|
|
395
|
+
value: be
|
|
396
|
+
}),
|
|
397
|
+
groupCollapsed: j({}, e, {
|
|
398
|
+
value: _e
|
|
399
|
+
}),
|
|
400
|
+
groupEnd: j({}, e, {
|
|
401
|
+
value: Ce
|
|
402
|
+
})
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
U < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
var z = k.ReactCurrentDispatcher, X;
|
|
409
|
+
function J(e, r, t) {
|
|
410
|
+
{
|
|
411
|
+
if (X === void 0)
|
|
412
|
+
try {
|
|
413
|
+
throw Error();
|
|
414
|
+
} catch (l) {
|
|
415
|
+
var o = l.stack.trim().match(/\n( *(at )?)/);
|
|
416
|
+
X = o && o[1] || "";
|
|
417
|
+
}
|
|
418
|
+
return `
|
|
419
|
+
` + X + e;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var Z = !1, B;
|
|
423
|
+
{
|
|
424
|
+
var ir = typeof WeakMap == "function" ? WeakMap : Map;
|
|
425
|
+
B = new ir();
|
|
426
|
+
}
|
|
427
|
+
function xe(e, r) {
|
|
428
|
+
if (!e || Z)
|
|
429
|
+
return "";
|
|
430
|
+
{
|
|
431
|
+
var t = B.get(e);
|
|
432
|
+
if (t !== void 0)
|
|
433
|
+
return t;
|
|
434
|
+
}
|
|
435
|
+
var o;
|
|
436
|
+
Z = !0;
|
|
437
|
+
var l = Error.prepareStackTrace;
|
|
438
|
+
Error.prepareStackTrace = void 0;
|
|
439
|
+
var f;
|
|
440
|
+
f = z.current, z.current = null, ar();
|
|
441
|
+
try {
|
|
442
|
+
if (r) {
|
|
443
|
+
var u = function() {
|
|
444
|
+
throw Error();
|
|
445
|
+
};
|
|
446
|
+
if (Object.defineProperty(u.prototype, "props", {
|
|
447
|
+
set: function() {
|
|
448
|
+
throw Error();
|
|
449
|
+
}
|
|
450
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
451
|
+
try {
|
|
452
|
+
Reflect.construct(u, []);
|
|
453
|
+
} catch (x) {
|
|
454
|
+
o = x;
|
|
455
|
+
}
|
|
456
|
+
Reflect.construct(e, [], u);
|
|
457
|
+
} else {
|
|
458
|
+
try {
|
|
459
|
+
u.call();
|
|
460
|
+
} catch (x) {
|
|
461
|
+
o = x;
|
|
462
|
+
}
|
|
463
|
+
e.call(u.prototype);
|
|
464
|
+
}
|
|
465
|
+
} else {
|
|
466
|
+
try {
|
|
467
|
+
throw Error();
|
|
468
|
+
} catch (x) {
|
|
469
|
+
o = x;
|
|
470
|
+
}
|
|
471
|
+
e();
|
|
472
|
+
}
|
|
473
|
+
} catch (x) {
|
|
474
|
+
if (x && o && typeof x.stack == "string") {
|
|
475
|
+
for (var i = x.stack.split(`
|
|
476
|
+
`), O = o.stack.split(`
|
|
477
|
+
`), h = i.length - 1, g = O.length - 1; h >= 1 && g >= 0 && i[h] !== O[g]; )
|
|
478
|
+
g--;
|
|
479
|
+
for (; h >= 1 && g >= 0; h--, g--)
|
|
480
|
+
if (i[h] !== O[g]) {
|
|
481
|
+
if (h !== 1 || g !== 1)
|
|
482
|
+
do
|
|
483
|
+
if (h--, g--, g < 0 || i[h] !== O[g]) {
|
|
484
|
+
var P = `
|
|
485
|
+
` + i[h].replace(" at new ", " at ");
|
|
486
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, P), P;
|
|
487
|
+
}
|
|
488
|
+
while (h >= 1 && g >= 0);
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
} finally {
|
|
493
|
+
Z = !1, z.current = f, or(), Error.prepareStackTrace = l;
|
|
494
|
+
}
|
|
495
|
+
var F = e ? e.displayName || e.name : "", D = F ? J(F) : "";
|
|
496
|
+
return typeof e == "function" && B.set(e, D), D;
|
|
497
|
+
}
|
|
498
|
+
function ur(e, r, t) {
|
|
499
|
+
return xe(e, !1);
|
|
500
|
+
}
|
|
501
|
+
function sr(e) {
|
|
502
|
+
var r = e.prototype;
|
|
503
|
+
return !!(r && r.isReactComponent);
|
|
504
|
+
}
|
|
505
|
+
function q(e, r, t) {
|
|
506
|
+
if (e == null)
|
|
507
|
+
return "";
|
|
508
|
+
if (typeof e == "function")
|
|
509
|
+
return xe(e, sr(e));
|
|
510
|
+
if (typeof e == "string")
|
|
511
|
+
return J(e);
|
|
512
|
+
switch (e) {
|
|
513
|
+
case N:
|
|
514
|
+
return J("Suspense");
|
|
515
|
+
case d:
|
|
516
|
+
return J("SuspenseList");
|
|
517
|
+
}
|
|
518
|
+
if (typeof e == "object")
|
|
519
|
+
switch (e.$$typeof) {
|
|
520
|
+
case p:
|
|
521
|
+
return ur(e.render);
|
|
522
|
+
case y:
|
|
523
|
+
return q(e.type, r, t);
|
|
524
|
+
case w: {
|
|
525
|
+
var o = e, l = o._payload, f = o._init;
|
|
526
|
+
try {
|
|
527
|
+
return q(f(l), r, t);
|
|
528
|
+
} catch {
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
return "";
|
|
533
|
+
}
|
|
534
|
+
var V = Object.prototype.hasOwnProperty, Ne = {}, Pe = k.ReactDebugCurrentFrame;
|
|
535
|
+
function K(e) {
|
|
536
|
+
if (e) {
|
|
537
|
+
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
|
538
|
+
Pe.setExtraStackFrame(t);
|
|
539
|
+
} else
|
|
540
|
+
Pe.setExtraStackFrame(null);
|
|
541
|
+
}
|
|
542
|
+
function lr(e, r, t, o, l) {
|
|
543
|
+
{
|
|
544
|
+
var f = Function.call.bind(V);
|
|
545
|
+
for (var u in e)
|
|
546
|
+
if (f(e, u)) {
|
|
547
|
+
var i = void 0;
|
|
548
|
+
try {
|
|
549
|
+
if (typeof e[u] != "function") {
|
|
550
|
+
var O = Error((o || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
551
|
+
throw O.name = "Invariant Violation", O;
|
|
552
|
+
}
|
|
553
|
+
i = e[u](r, u, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
554
|
+
} catch (h) {
|
|
555
|
+
i = h;
|
|
556
|
+
}
|
|
557
|
+
i && !(i instanceof Error) && (K(l), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", t, u, typeof i), K(null)), i instanceof Error && !(i.message in Ne) && (Ne[i.message] = !0, K(l), b("Failed %s type: %s", t, i.message), K(null));
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
var cr = Array.isArray;
|
|
562
|
+
function Q(e) {
|
|
563
|
+
return cr(e);
|
|
564
|
+
}
|
|
565
|
+
function fr(e) {
|
|
566
|
+
{
|
|
567
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
568
|
+
return t;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
function vr(e) {
|
|
572
|
+
try {
|
|
573
|
+
return Se(e), !1;
|
|
574
|
+
} catch {
|
|
575
|
+
return !0;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
function Se(e) {
|
|
579
|
+
return "" + e;
|
|
580
|
+
}
|
|
581
|
+
function Te(e) {
|
|
582
|
+
if (vr(e))
|
|
583
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fr(e)), Se(e);
|
|
584
|
+
}
|
|
585
|
+
var L = k.ReactCurrentOwner, dr = {
|
|
586
|
+
key: !0,
|
|
587
|
+
ref: !0,
|
|
588
|
+
__self: !0,
|
|
589
|
+
__source: !0
|
|
590
|
+
}, we, je, H;
|
|
591
|
+
H = {};
|
|
592
|
+
function pr(e) {
|
|
593
|
+
if (V.call(e, "ref")) {
|
|
594
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
595
|
+
if (r && r.isReactWarning)
|
|
596
|
+
return !1;
|
|
597
|
+
}
|
|
598
|
+
return e.ref !== void 0;
|
|
599
|
+
}
|
|
600
|
+
function hr(e) {
|
|
601
|
+
if (V.call(e, "key")) {
|
|
602
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
603
|
+
if (r && r.isReactWarning)
|
|
604
|
+
return !1;
|
|
605
|
+
}
|
|
606
|
+
return e.key !== void 0;
|
|
607
|
+
}
|
|
608
|
+
function gr(e, r) {
|
|
609
|
+
if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
|
|
610
|
+
var t = S(L.current.type);
|
|
611
|
+
H[t] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(L.current.type), e.ref), H[t] = !0);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
function Er(e, r) {
|
|
615
|
+
{
|
|
616
|
+
var t = function() {
|
|
617
|
+
we || (we = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
618
|
+
};
|
|
619
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
620
|
+
get: t,
|
|
621
|
+
configurable: !0
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function mr(e, r) {
|
|
626
|
+
{
|
|
627
|
+
var t = function() {
|
|
628
|
+
je || (je = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
629
|
+
};
|
|
630
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
631
|
+
get: t,
|
|
632
|
+
configurable: !0
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
var Rr = function(e, r, t, o, l, f, u) {
|
|
637
|
+
var i = {
|
|
638
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
639
|
+
$$typeof: a,
|
|
640
|
+
// Built-in properties that belong on the element
|
|
641
|
+
type: e,
|
|
642
|
+
key: r,
|
|
643
|
+
ref: t,
|
|
644
|
+
props: u,
|
|
645
|
+
// Record the component responsible for creating this element.
|
|
646
|
+
_owner: f
|
|
647
|
+
};
|
|
648
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
649
|
+
configurable: !1,
|
|
650
|
+
enumerable: !1,
|
|
651
|
+
writable: !0,
|
|
652
|
+
value: !1
|
|
653
|
+
}), Object.defineProperty(i, "_self", {
|
|
654
|
+
configurable: !1,
|
|
655
|
+
enumerable: !1,
|
|
656
|
+
writable: !1,
|
|
657
|
+
value: o
|
|
658
|
+
}), Object.defineProperty(i, "_source", {
|
|
659
|
+
configurable: !1,
|
|
660
|
+
enumerable: !1,
|
|
661
|
+
writable: !1,
|
|
662
|
+
value: l
|
|
663
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
664
|
+
};
|
|
665
|
+
function yr(e, r, t, o, l) {
|
|
666
|
+
{
|
|
667
|
+
var f, u = {}, i = null, O = null;
|
|
668
|
+
t !== void 0 && (Te(t), i = "" + t), hr(r) && (Te(r.key), i = "" + r.key), pr(r) && (O = r.ref, gr(r, l));
|
|
669
|
+
for (f in r)
|
|
670
|
+
V.call(r, f) && !dr.hasOwnProperty(f) && (u[f] = r[f]);
|
|
671
|
+
if (e && e.defaultProps) {
|
|
672
|
+
var h = e.defaultProps;
|
|
673
|
+
for (f in h)
|
|
674
|
+
u[f] === void 0 && (u[f] = h[f]);
|
|
675
|
+
}
|
|
676
|
+
if (i || O) {
|
|
677
|
+
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
678
|
+
i && Er(u, g), O && mr(u, g);
|
|
679
|
+
}
|
|
680
|
+
return Rr(e, i, O, l, o, L.current, u);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
var ee = k.ReactCurrentOwner, De = k.ReactDebugCurrentFrame;
|
|
684
|
+
function A(e) {
|
|
685
|
+
if (e) {
|
|
686
|
+
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
|
687
|
+
De.setExtraStackFrame(t);
|
|
688
|
+
} else
|
|
689
|
+
De.setExtraStackFrame(null);
|
|
690
|
+
}
|
|
691
|
+
var re;
|
|
692
|
+
re = !1;
|
|
693
|
+
function te(e) {
|
|
694
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
695
|
+
}
|
|
696
|
+
function ke() {
|
|
697
|
+
{
|
|
698
|
+
if (ee.current) {
|
|
699
|
+
var e = S(ee.current.type);
|
|
700
|
+
if (e)
|
|
701
|
+
return `
|
|
702
|
+
|
|
703
|
+
Check the render method of \`` + e + "`.";
|
|
704
|
+
}
|
|
705
|
+
return "";
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
function br(e) {
|
|
709
|
+
return "";
|
|
710
|
+
}
|
|
711
|
+
var Ae = {};
|
|
712
|
+
function _r(e) {
|
|
713
|
+
{
|
|
714
|
+
var r = ke();
|
|
715
|
+
if (!r) {
|
|
716
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
717
|
+
t && (r = `
|
|
718
|
+
|
|
719
|
+
Check the top-level render call using <` + t + ">.");
|
|
720
|
+
}
|
|
721
|
+
return r;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
function Fe(e, r) {
|
|
725
|
+
{
|
|
726
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
727
|
+
return;
|
|
728
|
+
e._store.validated = !0;
|
|
729
|
+
var t = _r(r);
|
|
730
|
+
if (Ae[t])
|
|
731
|
+
return;
|
|
732
|
+
Ae[t] = !0;
|
|
733
|
+
var o = "";
|
|
734
|
+
e && e._owner && e._owner !== ee.current && (o = " It was passed a child from " + S(e._owner.type) + "."), A(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), A(null);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function Ie(e, r) {
|
|
738
|
+
{
|
|
739
|
+
if (typeof e != "object")
|
|
740
|
+
return;
|
|
741
|
+
if (Q(e))
|
|
742
|
+
for (var t = 0; t < e.length; t++) {
|
|
743
|
+
var o = e[t];
|
|
744
|
+
te(o) && Fe(o, r);
|
|
745
|
+
}
|
|
746
|
+
else if (te(e))
|
|
747
|
+
e._store && (e._store.validated = !0);
|
|
748
|
+
else if (e) {
|
|
749
|
+
var l = ze(e);
|
|
750
|
+
if (typeof l == "function" && l !== e.entries)
|
|
751
|
+
for (var f = l.call(e), u; !(u = f.next()).done; )
|
|
752
|
+
te(u.value) && Fe(u.value, r);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
function Cr(e) {
|
|
757
|
+
{
|
|
758
|
+
var r = e.type;
|
|
759
|
+
if (r == null || typeof r == "string")
|
|
760
|
+
return;
|
|
761
|
+
var t;
|
|
762
|
+
if (typeof r == "function")
|
|
763
|
+
t = r.propTypes;
|
|
764
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
765
|
+
// Inner props are checked in the reconciler.
|
|
766
|
+
r.$$typeof === y))
|
|
767
|
+
t = r.propTypes;
|
|
768
|
+
else
|
|
769
|
+
return;
|
|
770
|
+
if (t) {
|
|
771
|
+
var o = S(r);
|
|
772
|
+
lr(t, e.props, "prop", o, e);
|
|
773
|
+
} else if (r.PropTypes !== void 0 && !re) {
|
|
774
|
+
re = !0;
|
|
775
|
+
var l = S(r);
|
|
776
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
777
|
+
}
|
|
778
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
function Or(e) {
|
|
782
|
+
{
|
|
783
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
784
|
+
var o = r[t];
|
|
785
|
+
if (o !== "children" && o !== "key") {
|
|
786
|
+
A(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), A(null);
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
e.ref !== null && (A(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
var Ue = {};
|
|
794
|
+
function Ve(e, r, t, o, l, f) {
|
|
795
|
+
{
|
|
796
|
+
var u = tr(e);
|
|
797
|
+
if (!u) {
|
|
798
|
+
var i = "";
|
|
799
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
800
|
+
var O = br();
|
|
801
|
+
O ? i += O : i += ke();
|
|
802
|
+
var h;
|
|
803
|
+
e === null ? h = "null" : Q(e) ? h = "array" : e !== void 0 && e.$$typeof === a ? (h = "<" + (S(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, i);
|
|
804
|
+
}
|
|
805
|
+
var g = yr(e, r, t, l, f);
|
|
806
|
+
if (g == null)
|
|
807
|
+
return g;
|
|
808
|
+
if (u) {
|
|
809
|
+
var P = r.children;
|
|
810
|
+
if (P !== void 0)
|
|
811
|
+
if (o)
|
|
812
|
+
if (Q(P)) {
|
|
813
|
+
for (var F = 0; F < P.length; F++)
|
|
814
|
+
Ie(P[F], e);
|
|
815
|
+
Object.freeze && Object.freeze(P);
|
|
816
|
+
} else
|
|
817
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
818
|
+
else
|
|
819
|
+
Ie(P, e);
|
|
820
|
+
}
|
|
821
|
+
if (V.call(r, "key")) {
|
|
822
|
+
var D = S(e), x = Object.keys(r).filter(function(wr) {
|
|
823
|
+
return wr !== "key";
|
|
824
|
+
}), ne = x.length > 0 ? "{key: someKey, " + x.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
825
|
+
if (!Ue[D + ne]) {
|
|
826
|
+
var Tr = x.length > 0 ? "{" + x.join(": ..., ") + ": ...}" : "{}";
|
|
827
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
828
|
+
let props = %s;
|
|
829
|
+
<%s {...props} />
|
|
830
|
+
React keys must be passed directly to JSX without using spread:
|
|
831
|
+
let props = %s;
|
|
832
|
+
<%s key={someKey} {...props} />`, ne, D, Tr, D), Ue[D + ne] = !0;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
return e === c ? Or(g) : Cr(g), g;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
function xr(e, r, t) {
|
|
839
|
+
return Ve(e, r, t, !0);
|
|
840
|
+
}
|
|
841
|
+
function Nr(e, r, t) {
|
|
842
|
+
return Ve(e, r, t, !1);
|
|
843
|
+
}
|
|
844
|
+
var Pr = Nr, Sr = xr;
|
|
845
|
+
Y.Fragment = c, Y.jsx = Pr, Y.jsxs = Sr;
|
|
846
|
+
}()), Y;
|
|
847
|
+
}
|
|
848
|
+
process.env.NODE_ENV === "production" ? oe.exports = Yr() : oe.exports = $r();
|
|
849
|
+
var Zr = oe.exports;
|
|
850
|
+
export {
|
|
851
|
+
Me as D,
|
|
852
|
+
zr as N,
|
|
853
|
+
Xr as O,
|
|
854
|
+
T as R,
|
|
855
|
+
qr as a,
|
|
856
|
+
Gr as b,
|
|
857
|
+
fe as c,
|
|
858
|
+
I as d,
|
|
859
|
+
Br as e,
|
|
860
|
+
Ir as f,
|
|
861
|
+
le as g,
|
|
862
|
+
Kr as h,
|
|
863
|
+
Zr as j,
|
|
864
|
+
Dr as u
|
|
865
|
+
};
|
|
866
|
+
//# sourceMappingURL=jsx-runtime-CM0TzjGp.js.map
|