zudoku 0.53.0 → 0.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/app/demo.js +16 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/config/loader.js +2 -5
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.js +5 -0
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/config/validators/validate.js +11 -2
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +65 -2
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -0
- package/dist/lib/authentication/components/SignIn.js +4 -3
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +4 -2
- package/dist/lib/authentication/providers/openid.js +11 -5
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +8 -5
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +5 -0
- package/dist/lib/components/TopNavigation.js +16 -12
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +14 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.js +1 -28
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/lib/{MdxPage-swXPJ0gf.js → MdxPage-8UuEK446.js} +37 -37
- package/lib/MdxPage-8UuEK446.js.map +1 -0
- package/lib/{OasProvider-CDAM3TB1.js → OasProvider-BsWpguVO.js} +2 -2
- package/lib/{OasProvider-CDAM3TB1.js.map → OasProvider-BsWpguVO.js.map} +1 -1
- package/lib/{OperationList-C9Hb9ql8.js → OperationList-PnZbf3b2.js} +6 -6
- package/lib/{OperationList-C9Hb9ql8.js.map → OperationList-PnZbf3b2.js.map} +1 -1
- package/lib/{Pagination-VGlgeCmS.js → Pagination-DY7gCrm4.js} +2 -2
- package/lib/{Pagination-VGlgeCmS.js.map → Pagination-DY7gCrm4.js.map} +1 -1
- package/lib/{SchemaList-BAbh1BXO.js → SchemaList-D6k4DKWH.js} +3 -3
- package/lib/{SchemaList-BAbh1BXO.js.map → SchemaList-D6k4DKWH.js.map} +1 -1
- package/lib/{SchemaView-C2Io712T.js → SchemaView-BhgJ9WB8.js} +3 -3
- package/lib/{SchemaView-C2Io712T.js.map → SchemaView-BhgJ9WB8.js.map} +1 -1
- package/lib/SignUp-CpUD6DUM.js +56 -0
- package/lib/SignUp-CpUD6DUM.js.map +1 -0
- package/lib/{circular-B42RaanD.js → circular-BUMjK3JF.js} +2 -2
- package/lib/{circular-B42RaanD.js.map → circular-BUMjK3JF.js.map} +1 -1
- package/lib/{createServer-BKFsRuuk.js → createServer-BPz8ZCrd.js} +3 -3
- package/lib/createServer-BPz8ZCrd.js.map +1 -0
- package/lib/{errors-CF2X_x5o.js → errors-DY-qOx9n.js} +3 -3
- package/lib/{errors-CF2X_x5o.js.map → errors-DY-qOx9n.js.map} +1 -1
- package/lib/{index-CLy1XyH0.js → index-C_xVKbf9.js} +1285 -1240
- package/lib/index-C_xVKbf9.js.map +1 -0
- package/lib/{index-B6Re5_cx.js → index-dVBKCNMa.js} +123 -123
- package/lib/{index-B6Re5_cx.js.map → index-dVBKCNMa.js.map} +1 -1
- package/lib/zudoku.auth-azureb2c.js +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +114 -105
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +286 -272
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +7 -7
- package/src/app/demo.tsx +19 -2
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/components/SignIn.tsx +5 -12
- package/src/lib/authentication/providers/openid.tsx +23 -4
- package/src/lib/components/MobileTopNavigation.tsx +56 -7
- package/src/lib/components/TopNavigation.tsx +30 -14
- package/src/lib/core/ZudokuContext.ts +21 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +13 -9
- package/src/lib/plugins/api-keys/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +3 -2
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/lib/MdxPage-swXPJ0gf.js.map +0 -1
- package/lib/SignUp-5RUdVhnq.js +0 -63
- package/lib/SignUp-5RUdVhnq.js.map +0 -1
- package/lib/createServer-BKFsRuuk.js.map +0 -1
- package/lib/index-CLy1XyH0.js.map +0 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { z as
|
|
3
|
-
import { R as
|
|
4
|
-
import { S as
|
|
5
|
-
import { h as
|
|
6
|
-
import { j as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { Callout as
|
|
1
|
+
import { B as It, a as Rt, H as Ie, R as en } from "./RouteGuard-CbKd7_9h.js";
|
|
2
|
+
import { z as Dt, M as tn, J as rn, u as nn } from "./index-ClhS5TxS.js";
|
|
3
|
+
import { R as on, S as sn, u as xe, e as Re, f as an, L as De, O as Mt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
4
|
+
import { S as Ft, v as qt, Q as cn, n as R, w as Ye, x as Ge, y as L, z as un, A as ln, B as dn, D as fn, E as Je, F as Xe, G as hn, h as et, H as tt, I as pn, g as Ut, J as Lt, l as mn, d as M, e as oe, K as Qt, L as Bt, j as ee, M as gn, u as vn, c as yn, N as xn, Z as _n, f as bn, C as wn } from "./hook-Bd0yS8M0.js";
|
|
5
|
+
import { h as jn, E as Ht, a as A, A as kn, i as $n, s as zn, N as rt, j as Pn, T as Kt, C as En, H as Sn, k as Zn, l as Cn, V as Tn, R as On, M as Nn } from "./Slot-DwZlQ-vX.js";
|
|
6
|
+
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
7
|
+
import { Button as Wt } from "./ui/Button.js";
|
|
8
|
+
import { Callout as An } from "./ui/Callout.js";
|
|
9
9
|
import * as Q from "react";
|
|
10
|
-
import { createContext as
|
|
11
|
-
import * as
|
|
12
|
-
import { CircleFadingArrowUpIcon as
|
|
13
|
-
import { C as
|
|
10
|
+
import { createContext as Me, StrictMode as Vt, useRef as K, useEffect as F, useState as G, useCallback as H, Suspense as Fe, Fragment as In, memo as Yt, Component as Rn, createElement as nt, useMemo as $e, useContext as Dn } from "react";
|
|
11
|
+
import * as Mn from "react-dom";
|
|
12
|
+
import { CircleFadingArrowUpIcon as Fn, LoaderCircleIcon as qn, ExternalLink as Un, CircleXIcon as Ln, ChevronRightIcon as Qn, SearchIcon as Bn, SunIcon as Hn, MoonIcon as Kn, MenuIcon as Wn, PanelLeftIcon as Vn } from "lucide-react";
|
|
13
|
+
import { C as te } from "./ClientOnly-E7hGysn1.js";
|
|
14
14
|
import { c as N } from "./cn-wvCW-ho6.js";
|
|
15
|
-
import { S as
|
|
16
|
-
import { isSearchPlugin as
|
|
15
|
+
import { S as Gt } from "./Spinner-mNLZ6awP.js";
|
|
16
|
+
import { isSearchPlugin as Yn, isProfileMenuPlugin as Jt, isNavigationPlugin as ot, isAuthenticationPlugin as Gn, isEventConsumerPlugin as Jn, needsInitialization as Xn, isApiIdentityPlugin as eo, isMdxProviderPlugin as to, hasHead as ro } from "./zudoku.plugins.js";
|
|
17
17
|
import { B as Se } from "./Button-BE9IVkWV.js";
|
|
18
|
-
import { DropdownMenu as
|
|
19
|
-
import { VisuallyHidden as
|
|
20
|
-
import { D as
|
|
21
|
-
import { a as
|
|
22
|
-
var
|
|
18
|
+
import { DropdownMenu as no, DropdownMenuTrigger as oo, DropdownMenuContent as so, DropdownMenuLabel as ao, DropdownMenuSeparator as ze, DropdownMenuSub as io, DropdownMenuSubTrigger as co, DropdownMenuPortal as uo, DropdownMenuSubContent as lo, DropdownMenuItem as fo } from "./ui/DropdownMenu.js";
|
|
19
|
+
import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
|
|
20
|
+
import { D as ho, a as po, b as er, c as tr, d as q } from "./Drawer-BzkOKwgC.js";
|
|
21
|
+
import { a as mo } from "./index-DI5SPFK9.js";
|
|
22
|
+
var go = class extends Ft {
|
|
23
23
|
constructor(e = {}) {
|
|
24
24
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
25
25
|
}
|
|
26
26
|
#e;
|
|
27
27
|
build(e, t, r) {
|
|
28
|
-
const n = t.queryKey, o = t.queryHash ??
|
|
29
|
-
let
|
|
30
|
-
return
|
|
28
|
+
const n = t.queryKey, o = t.queryHash ?? qt(n, t);
|
|
29
|
+
let a = this.get(o);
|
|
30
|
+
return a || (a = new cn({
|
|
31
31
|
client: e,
|
|
32
32
|
queryKey: n,
|
|
33
33
|
queryHash: o,
|
|
34
34
|
options: e.defaultQueryOptions(t),
|
|
35
35
|
state: r,
|
|
36
36
|
defaultOptions: e.getQueryDefaults(n)
|
|
37
|
-
}), this.add(
|
|
37
|
+
}), this.add(a)), a;
|
|
38
38
|
}
|
|
39
39
|
add(e) {
|
|
40
40
|
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
@@ -47,7 +47,7 @@ var fo = class extends Dt {
|
|
|
47
47
|
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
48
48
|
}
|
|
49
49
|
clear() {
|
|
50
|
-
|
|
50
|
+
R.batch(() => {
|
|
51
51
|
this.getAll().forEach((e) => {
|
|
52
52
|
this.remove(e);
|
|
53
53
|
});
|
|
@@ -62,35 +62,35 @@ var fo = class extends Dt {
|
|
|
62
62
|
find(e) {
|
|
63
63
|
const t = { exact: !0, ...e };
|
|
64
64
|
return this.getAll().find(
|
|
65
|
-
(r) =>
|
|
65
|
+
(r) => Ye(t, r)
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
findAll(e = {}) {
|
|
69
69
|
const t = this.getAll();
|
|
70
|
-
return Object.keys(e).length > 0 ? t.filter((r) =>
|
|
70
|
+
return Object.keys(e).length > 0 ? t.filter((r) => Ye(e, r)) : t;
|
|
71
71
|
}
|
|
72
72
|
notify(e) {
|
|
73
|
-
|
|
73
|
+
R.batch(() => {
|
|
74
74
|
this.listeners.forEach((t) => {
|
|
75
75
|
t(e);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
onFocus() {
|
|
80
|
-
|
|
80
|
+
R.batch(() => {
|
|
81
81
|
this.getAll().forEach((e) => {
|
|
82
82
|
e.onFocus();
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
onOnline() {
|
|
87
|
-
|
|
87
|
+
R.batch(() => {
|
|
88
88
|
this.getAll().forEach((e) => {
|
|
89
89
|
e.onOnline();
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, vo = class extends Ft {
|
|
94
94
|
constructor(e = {}) {
|
|
95
95
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
96
96
|
}
|
|
@@ -98,7 +98,7 @@ var fo = class extends Dt {
|
|
|
98
98
|
#t;
|
|
99
99
|
#r;
|
|
100
100
|
build(e, t, r) {
|
|
101
|
-
const n = new
|
|
101
|
+
const n = new jn({
|
|
102
102
|
mutationCache: this,
|
|
103
103
|
mutationId: ++this.#r,
|
|
104
104
|
options: e.defaultMutationOptions(t),
|
|
@@ -108,7 +108,7 @@ var fo = class extends Dt {
|
|
|
108
108
|
}
|
|
109
109
|
add(e) {
|
|
110
110
|
this.#e.add(e);
|
|
111
|
-
const t =
|
|
111
|
+
const t = ue(e);
|
|
112
112
|
if (typeof t == "string") {
|
|
113
113
|
const r = this.#t.get(t);
|
|
114
114
|
r ? r.push(e) : this.#t.set(t, [e]);
|
|
@@ -117,7 +117,7 @@ var fo = class extends Dt {
|
|
|
117
117
|
}
|
|
118
118
|
remove(e) {
|
|
119
119
|
if (this.#e.delete(e)) {
|
|
120
|
-
const t =
|
|
120
|
+
const t = ue(e);
|
|
121
121
|
if (typeof t == "string") {
|
|
122
122
|
const r = this.#t.get(t);
|
|
123
123
|
if (r)
|
|
@@ -130,7 +130,7 @@ var fo = class extends Dt {
|
|
|
130
130
|
this.notify({ type: "removed", mutation: e });
|
|
131
131
|
}
|
|
132
132
|
canRun(e) {
|
|
133
|
-
const t =
|
|
133
|
+
const t = ue(e);
|
|
134
134
|
if (typeof t == "string") {
|
|
135
135
|
const n = this.#t.get(t)?.find(
|
|
136
136
|
(o) => o.state.status === "pending"
|
|
@@ -140,11 +140,11 @@ var fo = class extends Dt {
|
|
|
140
140
|
return !0;
|
|
141
141
|
}
|
|
142
142
|
runNext(e) {
|
|
143
|
-
const t =
|
|
143
|
+
const t = ue(e);
|
|
144
144
|
return typeof t == "string" ? this.#t.get(t)?.find((n) => n !== e && n.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
145
145
|
}
|
|
146
146
|
clear() {
|
|
147
|
-
|
|
147
|
+
R.batch(() => {
|
|
148
148
|
this.#e.forEach((e) => {
|
|
149
149
|
this.notify({ type: "removed", mutation: e });
|
|
150
150
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -156,14 +156,14 @@ var fo = class extends Dt {
|
|
|
156
156
|
find(e) {
|
|
157
157
|
const t = { exact: !0, ...e };
|
|
158
158
|
return this.getAll().find(
|
|
159
|
-
(r) =>
|
|
159
|
+
(r) => Ge(t, r)
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
findAll(e = {}) {
|
|
163
|
-
return this.getAll().filter((t) =>
|
|
163
|
+
return this.getAll().filter((t) => Ge(e, t));
|
|
164
164
|
}
|
|
165
165
|
notify(e) {
|
|
166
|
-
|
|
166
|
+
R.batch(() => {
|
|
167
167
|
this.listeners.forEach((t) => {
|
|
168
168
|
t(e);
|
|
169
169
|
});
|
|
@@ -171,65 +171,65 @@ var fo = class extends Dt {
|
|
|
171
171
|
}
|
|
172
172
|
resumePausedMutations() {
|
|
173
173
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
|
174
|
-
return
|
|
174
|
+
return R.batch(
|
|
175
175
|
() => Promise.all(
|
|
176
176
|
e.map((t) => t.continue().catch(L))
|
|
177
177
|
)
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function ue(e) {
|
|
182
182
|
return e.options.scope?.id;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function st(e) {
|
|
185
185
|
return {
|
|
186
186
|
onFetch: (t, r) => {
|
|
187
|
-
const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction,
|
|
188
|
-
let u = { pages: [], pageParams: [] },
|
|
187
|
+
const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
|
|
188
|
+
let u = { pages: [], pageParams: [] }, h = 0;
|
|
189
189
|
const f = async () => {
|
|
190
|
-
let
|
|
191
|
-
const
|
|
190
|
+
let y = !1;
|
|
191
|
+
const p = (g) => {
|
|
192
192
|
Object.defineProperty(g, "signal", {
|
|
193
193
|
enumerable: !0,
|
|
194
|
-
get: () => (t.signal.aborted ?
|
|
195
|
-
|
|
194
|
+
get: () => (t.signal.aborted ? y = !0 : t.signal.addEventListener("abort", () => {
|
|
195
|
+
y = !0;
|
|
196
196
|
}), t.signal)
|
|
197
197
|
});
|
|
198
|
-
},
|
|
199
|
-
if (
|
|
198
|
+
}, m = un(t.options, t.fetchOptions), l = async (g, w, P) => {
|
|
199
|
+
if (y)
|
|
200
200
|
return Promise.reject();
|
|
201
201
|
if (w == null && g.pages.length)
|
|
202
202
|
return Promise.resolve(g);
|
|
203
|
-
const
|
|
203
|
+
const C = {
|
|
204
204
|
client: t.client,
|
|
205
205
|
queryKey: t.queryKey,
|
|
206
206
|
pageParam: w,
|
|
207
207
|
direction: P ? "backward" : "forward",
|
|
208
208
|
meta: t.options.meta
|
|
209
209
|
};
|
|
210
|
-
|
|
211
|
-
const j = await
|
|
212
|
-
|
|
213
|
-
), { maxPages:
|
|
210
|
+
p(C);
|
|
211
|
+
const j = await m(
|
|
212
|
+
C
|
|
213
|
+
), { maxPages: x } = t.options, b = P ? ln : dn;
|
|
214
214
|
return {
|
|
215
|
-
pages: b(g.pages, j,
|
|
216
|
-
pageParams: b(g.pageParams, w,
|
|
215
|
+
pages: b(g.pages, j, x),
|
|
216
|
+
pageParams: b(g.pageParams, w, x)
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
|
-
if (o &&
|
|
220
|
-
const g = o === "backward", w = g ?
|
|
221
|
-
pages:
|
|
219
|
+
if (o && a.length) {
|
|
220
|
+
const g = o === "backward", w = g ? yo : at, P = {
|
|
221
|
+
pages: a,
|
|
222
222
|
pageParams: i
|
|
223
|
-
},
|
|
224
|
-
u = await l(P,
|
|
223
|
+
}, C = w(n, P);
|
|
224
|
+
u = await l(P, C, g);
|
|
225
225
|
} else {
|
|
226
|
-
const g = e ??
|
|
226
|
+
const g = e ?? a.length;
|
|
227
227
|
do {
|
|
228
|
-
const w =
|
|
229
|
-
if (
|
|
228
|
+
const w = h === 0 ? i[0] ?? n.initialPageParam : at(n, u);
|
|
229
|
+
if (h > 0 && w == null)
|
|
230
230
|
break;
|
|
231
|
-
u = await l(u, w),
|
|
232
|
-
} while (
|
|
231
|
+
u = await l(u, w), h++;
|
|
232
|
+
} while (h < g);
|
|
233
233
|
}
|
|
234
234
|
return u;
|
|
235
235
|
};
|
|
@@ -246,7 +246,7 @@ function nt(e) {
|
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function at(e, { pages: t, pageParams: r }) {
|
|
250
250
|
const n = t.length - 1;
|
|
251
251
|
return t.length > 0 ? e.getNextPageParam(
|
|
252
252
|
t[n],
|
|
@@ -255,10 +255,10 @@ function ot(e, { pages: t, pageParams: r }) {
|
|
|
255
255
|
r
|
|
256
256
|
) : void 0;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function yo(e, { pages: t, pageParams: r }) {
|
|
259
259
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
|
260
260
|
}
|
|
261
|
-
var
|
|
261
|
+
var xo = class {
|
|
262
262
|
#e;
|
|
263
263
|
#t;
|
|
264
264
|
#r;
|
|
@@ -268,12 +268,12 @@ var mo = class {
|
|
|
268
268
|
#a;
|
|
269
269
|
#i;
|
|
270
270
|
constructor(e = {}) {
|
|
271
|
-
this.#e = e.queryCache || new
|
|
271
|
+
this.#e = e.queryCache || new go(), this.#t = e.mutationCache || new vo(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
272
272
|
}
|
|
273
273
|
mount() {
|
|
274
|
-
this.#n++, this.#n === 1 && (this.#a =
|
|
274
|
+
this.#n++, this.#n === 1 && (this.#a = fn.subscribe(async (e) => {
|
|
275
275
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
276
|
-
}), this.#i =
|
|
276
|
+
}), this.#i = Je.subscribe(async (e) => {
|
|
277
277
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
278
278
|
}));
|
|
279
279
|
}
|
|
@@ -299,7 +299,7 @@ var mo = class {
|
|
|
299
299
|
}
|
|
300
300
|
ensureQueryData(e) {
|
|
301
301
|
const t = this.defaultQueryOptions(e), r = this.#e.build(this, t), n = r.state.data;
|
|
302
|
-
return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
302
|
+
return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Xe(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
|
|
303
303
|
}
|
|
304
304
|
getQueriesData(e) {
|
|
305
305
|
return this.#e.findAll(e).map(({ queryKey: t, state: r }) => {
|
|
@@ -308,14 +308,14 @@ var mo = class {
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
setQueryData(e, t, r) {
|
|
311
|
-
const n = this.defaultQueryOptions({ queryKey: e }),
|
|
311
|
+
const n = this.defaultQueryOptions({ queryKey: e }), a = this.#e.get(
|
|
312
312
|
n.queryHash
|
|
313
|
-
)?.state.data, i =
|
|
313
|
+
)?.state.data, i = hn(t, a);
|
|
314
314
|
if (i !== void 0)
|
|
315
315
|
return this.#e.build(this, n).setData(i, { ...r, manual: !0 });
|
|
316
316
|
}
|
|
317
317
|
setQueriesData(e, t, r) {
|
|
318
|
-
return
|
|
318
|
+
return R.batch(
|
|
319
319
|
() => this.#e.findAll(e).map(({ queryKey: n }) => [
|
|
320
320
|
n,
|
|
321
321
|
this.setQueryData(n, t, r)
|
|
@@ -330,7 +330,7 @@ var mo = class {
|
|
|
330
330
|
}
|
|
331
331
|
removeQueries(e) {
|
|
332
332
|
const t = this.#e;
|
|
333
|
-
|
|
333
|
+
R.batch(() => {
|
|
334
334
|
t.findAll(e).forEach((r) => {
|
|
335
335
|
t.remove(r);
|
|
336
336
|
});
|
|
@@ -338,7 +338,7 @@ var mo = class {
|
|
|
338
338
|
}
|
|
339
339
|
resetQueries(e, t) {
|
|
340
340
|
const r = this.#e;
|
|
341
|
-
return
|
|
341
|
+
return R.batch(() => (r.findAll(e).forEach((n) => {
|
|
342
342
|
n.reset();
|
|
343
343
|
}), this.refetchQueries(
|
|
344
344
|
{
|
|
@@ -349,13 +349,13 @@ var mo = class {
|
|
|
349
349
|
)));
|
|
350
350
|
}
|
|
351
351
|
cancelQueries(e, t = {}) {
|
|
352
|
-
const r = { revert: !0, ...t }, n =
|
|
352
|
+
const r = { revert: !0, ...t }, n = R.batch(
|
|
353
353
|
() => this.#e.findAll(e).map((o) => o.cancel(r))
|
|
354
354
|
);
|
|
355
355
|
return Promise.all(n).then(L).catch(L);
|
|
356
356
|
}
|
|
357
357
|
invalidateQueries(e, t = {}) {
|
|
358
|
-
return
|
|
358
|
+
return R.batch(() => (this.#e.findAll(e).forEach((r) => {
|
|
359
359
|
r.invalidate();
|
|
360
360
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
|
|
361
361
|
{
|
|
@@ -369,10 +369,10 @@ var mo = class {
|
|
|
369
369
|
const r = {
|
|
370
370
|
...t,
|
|
371
371
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
372
|
-
}, n =
|
|
372
|
+
}, n = R.batch(
|
|
373
373
|
() => this.#e.findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
374
|
-
let
|
|
375
|
-
return r.throwOnError || (
|
|
374
|
+
let a = o.fetch(void 0, r);
|
|
375
|
+
return r.throwOnError || (a = a.catch(L)), o.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
376
376
|
})
|
|
377
377
|
);
|
|
378
378
|
return Promise.all(n).then(L);
|
|
@@ -382,23 +382,23 @@ var mo = class {
|
|
|
382
382
|
t.retry === void 0 && (t.retry = !1);
|
|
383
383
|
const r = this.#e.build(this, t);
|
|
384
384
|
return r.isStaleByTime(
|
|
385
|
-
|
|
385
|
+
Xe(t.staleTime, r)
|
|
386
386
|
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
387
387
|
}
|
|
388
388
|
prefetchQuery(e) {
|
|
389
389
|
return this.fetchQuery(e).then(L).catch(L);
|
|
390
390
|
}
|
|
391
391
|
fetchInfiniteQuery(e) {
|
|
392
|
-
return e.behavior =
|
|
392
|
+
return e.behavior = st(e.pages), this.fetchQuery(e);
|
|
393
393
|
}
|
|
394
394
|
prefetchInfiniteQuery(e) {
|
|
395
395
|
return this.fetchInfiniteQuery(e).then(L).catch(L);
|
|
396
396
|
}
|
|
397
397
|
ensureInfiniteQueryData(e) {
|
|
398
|
-
return e.behavior =
|
|
398
|
+
return e.behavior = st(e.pages), this.ensureQueryData(e);
|
|
399
399
|
}
|
|
400
400
|
resumePausedMutations() {
|
|
401
|
-
return
|
|
401
|
+
return Je.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
402
402
|
}
|
|
403
403
|
getQueryCache() {
|
|
404
404
|
return this.#e;
|
|
@@ -413,7 +413,7 @@ var mo = class {
|
|
|
413
413
|
this.#r = e;
|
|
414
414
|
}
|
|
415
415
|
setQueryDefaults(e, t) {
|
|
416
|
-
this.#o.set(
|
|
416
|
+
this.#o.set(et(e), {
|
|
417
417
|
queryKey: e,
|
|
418
418
|
defaultOptions: t
|
|
419
419
|
});
|
|
@@ -421,11 +421,11 @@ var mo = class {
|
|
|
421
421
|
getQueryDefaults(e) {
|
|
422
422
|
const t = [...this.#o.values()], r = {};
|
|
423
423
|
return t.forEach((n) => {
|
|
424
|
-
|
|
424
|
+
tt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
|
|
425
425
|
}), r;
|
|
426
426
|
}
|
|
427
427
|
setMutationDefaults(e, t) {
|
|
428
|
-
this.#s.set(
|
|
428
|
+
this.#s.set(et(e), {
|
|
429
429
|
mutationKey: e,
|
|
430
430
|
defaultOptions: t
|
|
431
431
|
});
|
|
@@ -433,7 +433,7 @@ var mo = class {
|
|
|
433
433
|
getMutationDefaults(e) {
|
|
434
434
|
const t = [...this.#s.values()], r = {};
|
|
435
435
|
return t.forEach((n) => {
|
|
436
|
-
|
|
436
|
+
tt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
|
|
437
437
|
}), r;
|
|
438
438
|
}
|
|
439
439
|
defaultQueryOptions(e) {
|
|
@@ -445,10 +445,10 @@ var mo = class {
|
|
|
445
445
|
...e,
|
|
446
446
|
_defaulted: !0
|
|
447
447
|
};
|
|
448
|
-
return t.queryHash || (t.queryHash =
|
|
448
|
+
return t.queryHash || (t.queryHash = qt(
|
|
449
449
|
t.queryKey,
|
|
450
450
|
t
|
|
451
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
451
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === pn && (t.enabled = !1), t;
|
|
452
452
|
}
|
|
453
453
|
defaultMutationOptions(e) {
|
|
454
454
|
return e?._defaulted ? e : {
|
|
@@ -462,14 +462,14 @@ var mo = class {
|
|
|
462
462
|
this.#e.clear(), this.#t.clear();
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function _o(e) {
|
|
466
466
|
return e;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function it(e, t, r) {
|
|
469
469
|
if (typeof t != "object" || t === null)
|
|
470
470
|
return;
|
|
471
|
-
const n = e.getMutationCache(), o = e.getQueryCache(),
|
|
472
|
-
i.forEach(({ state:
|
|
471
|
+
const n = e.getMutationCache(), o = e.getQueryCache(), a = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? _o, i = t.mutations || [], u = t.queries || [];
|
|
472
|
+
i.forEach(({ state: h, ...f }) => {
|
|
473
473
|
n.build(
|
|
474
474
|
e,
|
|
475
475
|
{
|
|
@@ -477,11 +477,11 @@ function st(e, t, r) {
|
|
|
477
477
|
...r?.defaultOptions?.mutations,
|
|
478
478
|
...f
|
|
479
479
|
},
|
|
480
|
-
|
|
480
|
+
h
|
|
481
481
|
);
|
|
482
|
-
}), u.forEach(({ queryKey:
|
|
483
|
-
let l = o.get(
|
|
484
|
-
const g = f.data === void 0 ? f.data :
|
|
482
|
+
}), u.forEach(({ queryKey: h, state: f, queryHash: y, meta: p, promise: m }) => {
|
|
483
|
+
let l = o.get(y);
|
|
484
|
+
const g = f.data === void 0 ? f.data : a(f.data);
|
|
485
485
|
if (l) {
|
|
486
486
|
if (l.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
487
487
|
const { fetchStatus: w, ...P } = f;
|
|
@@ -496,9 +496,9 @@ function st(e, t, r) {
|
|
|
496
496
|
{
|
|
497
497
|
...e.getDefaultOptions().hydrate?.queries,
|
|
498
498
|
...r?.defaultOptions?.queries,
|
|
499
|
-
queryKey:
|
|
500
|
-
queryHash:
|
|
501
|
-
meta:
|
|
499
|
+
queryKey: h,
|
|
500
|
+
queryHash: y,
|
|
501
|
+
meta: p
|
|
502
502
|
},
|
|
503
503
|
// Reset fetch status to idle to avoid
|
|
504
504
|
// query being stuck in fetching state upon hydration
|
|
@@ -508,46 +508,46 @@ function st(e, t, r) {
|
|
|
508
508
|
fetchStatus: "idle"
|
|
509
509
|
}
|
|
510
510
|
);
|
|
511
|
-
if (
|
|
512
|
-
const w = Promise.resolve(
|
|
511
|
+
if (m) {
|
|
512
|
+
const w = Promise.resolve(m).then(a);
|
|
513
513
|
l.fetch(void 0, { initialPromise: w });
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
var
|
|
517
|
+
var ct = (e, t) => typeof e == "object" && e !== null && t in e, bo = ({
|
|
518
518
|
children: e,
|
|
519
519
|
options: t = {},
|
|
520
520
|
state: r,
|
|
521
521
|
queryClient: n
|
|
522
522
|
}) => {
|
|
523
|
-
const o =
|
|
523
|
+
const o = Ut(n), [a, i] = Q.useState(), u = Q.useRef(t);
|
|
524
524
|
return u.current = t, Q.useMemo(() => {
|
|
525
525
|
if (r) {
|
|
526
526
|
if (typeof r != "object")
|
|
527
527
|
return;
|
|
528
|
-
const
|
|
529
|
-
for (const
|
|
530
|
-
const l =
|
|
528
|
+
const h = o.getQueryCache(), f = r.queries || [], y = [], p = [];
|
|
529
|
+
for (const m of f) {
|
|
530
|
+
const l = h.get(m.queryHash);
|
|
531
531
|
if (!l)
|
|
532
|
-
|
|
532
|
+
y.push(m);
|
|
533
533
|
else {
|
|
534
|
-
const g =
|
|
535
|
-
|
|
536
|
-
(P) => P.queryHash ===
|
|
534
|
+
const g = m.state.dataUpdatedAt > l.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
535
|
+
ct(m.promise, "status") && ct(l.promise, "status") && m.promise.status !== l.promise.status, w = a?.find(
|
|
536
|
+
(P) => P.queryHash === m.queryHash
|
|
537
537
|
);
|
|
538
|
-
g && (!w ||
|
|
538
|
+
g && (!w || m.state.dataUpdatedAt > w.state.dataUpdatedAt) && p.push(m);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
|
|
542
|
-
(
|
|
541
|
+
y.length > 0 && it(o, { queries: y }, u.current), p.length > 0 && i(
|
|
542
|
+
(m) => m ? [...m, ...p] : p
|
|
543
543
|
);
|
|
544
544
|
}
|
|
545
|
-
}, [o,
|
|
546
|
-
|
|
547
|
-
}, [o,
|
|
545
|
+
}, [o, a, r]), Q.useEffect(() => {
|
|
546
|
+
a && (it(o, { queries: a }, u.current), i(void 0));
|
|
547
|
+
}, [o, a]), e;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
550
|
-
return /* @__PURE__ */
|
|
549
|
+
function wo({ error: e }) {
|
|
550
|
+
return /* @__PURE__ */ s.jsx(Ht, { error: e });
|
|
551
551
|
}
|
|
552
552
|
/**
|
|
553
553
|
* react-router v7.6.1
|
|
@@ -559,69 +559,69 @@ function yo({ error: e }) {
|
|
|
559
559
|
*
|
|
560
560
|
* @license MIT
|
|
561
561
|
*/
|
|
562
|
-
function
|
|
563
|
-
return /* @__PURE__ */ Q.createElement(
|
|
562
|
+
function jo(e) {
|
|
563
|
+
return /* @__PURE__ */ Q.createElement(on, { flushSync: Mn.flushSync, ...e });
|
|
564
564
|
}
|
|
565
|
-
const Ze =
|
|
565
|
+
const Ze = Me({ stagger: !1 }), ko = new xo({
|
|
566
566
|
defaultOptions: {
|
|
567
567
|
queries: {
|
|
568
568
|
staleTime: 1e3 * 60 * 5
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
}),
|
|
571
|
+
}), $o = ({
|
|
572
572
|
router: e,
|
|
573
573
|
hydrate: t = !1
|
|
574
|
-
}) => /* @__PURE__ */
|
|
574
|
+
}) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: ko, children: /* @__PURE__ */ s.jsx(bo, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(It, { value: !1, children: /* @__PURE__ */ s.jsx(Rt, { children: /* @__PURE__ */ s.jsx(Ze.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ s.jsx(jo, { router: e }) }) }) }) }) }) }), zo = ({
|
|
575
575
|
router: e,
|
|
576
576
|
context: t,
|
|
577
577
|
queryClient: r,
|
|
578
578
|
helmetContext: n,
|
|
579
579
|
bypassProtection: o = !1
|
|
580
|
-
}) => /* @__PURE__ */
|
|
580
|
+
}) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: r, children: /* @__PURE__ */ s.jsx(Rt, { context: n, children: /* @__PURE__ */ s.jsx(It, { value: o, children: /* @__PURE__ */ s.jsx(sn, { router: e, context: t }) }) }) }) });
|
|
581
581
|
function c(e, t, r) {
|
|
582
|
-
function n(u,
|
|
582
|
+
function n(u, h) {
|
|
583
583
|
var f;
|
|
584
584
|
Object.defineProperty(u, "_zod", {
|
|
585
585
|
value: u._zod ?? {},
|
|
586
586
|
enumerable: !1
|
|
587
|
-
}), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u,
|
|
588
|
-
for (const
|
|
589
|
-
|
|
590
|
-
u._zod.constr = i, u._zod.def =
|
|
587
|
+
}), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, h);
|
|
588
|
+
for (const y in i.prototype)
|
|
589
|
+
y in u || Object.defineProperty(u, y, { value: i.prototype[y].bind(u) });
|
|
590
|
+
u._zod.constr = i, u._zod.def = h;
|
|
591
591
|
}
|
|
592
592
|
const o = r?.Parent ?? Object;
|
|
593
|
-
class
|
|
593
|
+
class a extends o {
|
|
594
594
|
}
|
|
595
|
-
Object.defineProperty(
|
|
595
|
+
Object.defineProperty(a, "name", { value: e });
|
|
596
596
|
function i(u) {
|
|
597
|
-
var
|
|
598
|
-
const f = r?.Parent ? new
|
|
599
|
-
n(f, u), (
|
|
600
|
-
for (const
|
|
601
|
-
|
|
597
|
+
var h;
|
|
598
|
+
const f = r?.Parent ? new a() : this;
|
|
599
|
+
n(f, u), (h = f._zod).deferred ?? (h.deferred = []);
|
|
600
|
+
for (const y of f._zod.deferred)
|
|
601
|
+
y();
|
|
602
602
|
return f;
|
|
603
603
|
}
|
|
604
604
|
return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
605
605
|
value: (u) => r?.Parent && u instanceof r.Parent ? !0 : u?._zod?.traits?.has(e)
|
|
606
606
|
}), Object.defineProperty(i, "name", { value: e }), i;
|
|
607
607
|
}
|
|
608
|
-
class
|
|
608
|
+
class se extends Error {
|
|
609
609
|
constructor() {
|
|
610
610
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
const
|
|
613
|
+
const rr = {};
|
|
614
614
|
function V(e) {
|
|
615
|
-
return
|
|
615
|
+
return rr;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Po(e) {
|
|
618
618
|
const t = Object.values(e).filter((n) => typeof n == "number");
|
|
619
619
|
return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Eo(e, t) {
|
|
622
622
|
return typeof t == "bigint" ? t.toString() : t;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function nr(e) {
|
|
625
625
|
return {
|
|
626
626
|
get value() {
|
|
627
627
|
{
|
|
@@ -631,14 +631,14 @@ function er(e) {
|
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function qe(e) {
|
|
635
635
|
return e == null;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Ue(e) {
|
|
638
638
|
const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
|
|
639
639
|
return e.slice(t, r);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function S(e, t, r) {
|
|
642
642
|
Object.defineProperty(e, t, {
|
|
643
643
|
get() {
|
|
644
644
|
{
|
|
@@ -655,7 +655,7 @@ function T(e, t, r) {
|
|
|
655
655
|
configurable: !0
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Le(e, t, r) {
|
|
659
659
|
Object.defineProperty(e, t, {
|
|
660
660
|
value: r,
|
|
661
661
|
writable: !0,
|
|
@@ -663,20 +663,24 @@ function qe(e, t, r) {
|
|
|
663
663
|
configurable: !0
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function or(e = 10) {
|
|
667
667
|
const t = "abcdefghijklmnopqrstuvwxyz";
|
|
668
668
|
let r = "";
|
|
669
669
|
for (let n = 0; n < e; n++)
|
|
670
670
|
r += t[Math.floor(Math.random() * t.length)];
|
|
671
671
|
return r;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function re(e) {
|
|
674
674
|
return JSON.stringify(e);
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
const sr = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
|
|
677
|
+
};
|
|
678
|
+
function Ce(e) {
|
|
677
679
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
678
680
|
}
|
|
679
|
-
const
|
|
681
|
+
const So = nr(() => {
|
|
682
|
+
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
683
|
+
return !1;
|
|
680
684
|
try {
|
|
681
685
|
const e = Function;
|
|
682
686
|
return new e(""), !0;
|
|
@@ -684,16 +688,16 @@ const ko = er(() => {
|
|
|
684
688
|
return !1;
|
|
685
689
|
}
|
|
686
690
|
});
|
|
687
|
-
function
|
|
688
|
-
if (
|
|
691
|
+
function ut(e) {
|
|
692
|
+
if (Ce(e) === !1)
|
|
689
693
|
return !1;
|
|
690
694
|
const t = e.constructor;
|
|
691
695
|
if (t === void 0)
|
|
692
696
|
return !0;
|
|
693
697
|
const r = t.prototype;
|
|
694
|
-
return !(
|
|
698
|
+
return !(Ce(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
|
|
695
699
|
}
|
|
696
|
-
const
|
|
700
|
+
const Zo = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
697
701
|
function _e(e) {
|
|
698
702
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
699
703
|
}
|
|
@@ -714,10 +718,10 @@ function _(e) {
|
|
|
714
718
|
}
|
|
715
719
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
716
720
|
}
|
|
717
|
-
function
|
|
721
|
+
function Co(e) {
|
|
718
722
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
719
723
|
}
|
|
720
|
-
function
|
|
724
|
+
function To(e, t) {
|
|
721
725
|
const r = {}, n = e._zod.def;
|
|
722
726
|
for (const o in t) {
|
|
723
727
|
if (!(o in n.shape))
|
|
@@ -730,7 +734,7 @@ function Eo(e, t) {
|
|
|
730
734
|
checks: []
|
|
731
735
|
});
|
|
732
736
|
}
|
|
733
|
-
function
|
|
737
|
+
function Oo(e, t) {
|
|
734
738
|
const r = { ...e._zod.def.shape }, n = e._zod.def;
|
|
735
739
|
for (const o in t) {
|
|
736
740
|
if (!(o in n.shape))
|
|
@@ -743,69 +747,69 @@ function So(e, t) {
|
|
|
743
747
|
checks: []
|
|
744
748
|
});
|
|
745
749
|
}
|
|
746
|
-
function
|
|
750
|
+
function No(e, t) {
|
|
747
751
|
const r = {
|
|
748
752
|
...e._zod.def,
|
|
749
753
|
get shape() {
|
|
750
754
|
const n = { ...e._zod.def.shape, ...t };
|
|
751
|
-
return
|
|
755
|
+
return Le(this, "shape", n), n;
|
|
752
756
|
},
|
|
753
757
|
checks: []
|
|
754
758
|
// delete existing checks
|
|
755
759
|
};
|
|
756
760
|
return J(e, r);
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function Ao(e, t) {
|
|
759
763
|
return J(e, {
|
|
760
764
|
...e._zod.def,
|
|
761
765
|
get shape() {
|
|
762
766
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
763
|
-
return
|
|
767
|
+
return Le(this, "shape", r), r;
|
|
764
768
|
},
|
|
765
769
|
catchall: t._zod.def.catchall,
|
|
766
770
|
checks: []
|
|
767
771
|
// delete existing checks
|
|
768
772
|
});
|
|
769
773
|
}
|
|
770
|
-
function
|
|
774
|
+
function Io(e, t, r) {
|
|
771
775
|
const n = t._zod.def.shape, o = { ...n };
|
|
772
776
|
if (r)
|
|
773
|
-
for (const
|
|
774
|
-
if (!(
|
|
775
|
-
throw new Error(`Unrecognized key: "${
|
|
776
|
-
r[
|
|
777
|
+
for (const a in r) {
|
|
778
|
+
if (!(a in n))
|
|
779
|
+
throw new Error(`Unrecognized key: "${a}"`);
|
|
780
|
+
r[a] && (o[a] = e ? new e({
|
|
777
781
|
type: "optional",
|
|
778
|
-
innerType: n[
|
|
779
|
-
}) : n[
|
|
782
|
+
innerType: n[a]
|
|
783
|
+
}) : n[a]);
|
|
780
784
|
}
|
|
781
785
|
else
|
|
782
|
-
for (const
|
|
783
|
-
o[
|
|
786
|
+
for (const a in n)
|
|
787
|
+
o[a] = e ? new e({
|
|
784
788
|
type: "optional",
|
|
785
|
-
innerType: n[
|
|
786
|
-
}) : n[
|
|
789
|
+
innerType: n[a]
|
|
790
|
+
}) : n[a];
|
|
787
791
|
return J(t, {
|
|
788
792
|
...t._zod.def,
|
|
789
793
|
shape: o,
|
|
790
794
|
checks: []
|
|
791
795
|
});
|
|
792
796
|
}
|
|
793
|
-
function
|
|
797
|
+
function Ro(e, t, r) {
|
|
794
798
|
const n = t._zod.def.shape, o = { ...n };
|
|
795
799
|
if (r)
|
|
796
|
-
for (const
|
|
797
|
-
if (!(
|
|
798
|
-
throw new Error(`Unrecognized key: "${
|
|
799
|
-
r[
|
|
800
|
+
for (const a in r) {
|
|
801
|
+
if (!(a in o))
|
|
802
|
+
throw new Error(`Unrecognized key: "${a}"`);
|
|
803
|
+
r[a] && (o[a] = new e({
|
|
800
804
|
type: "nonoptional",
|
|
801
|
-
innerType: n[
|
|
805
|
+
innerType: n[a]
|
|
802
806
|
}));
|
|
803
807
|
}
|
|
804
808
|
else
|
|
805
|
-
for (const
|
|
806
|
-
o[
|
|
809
|
+
for (const a in n)
|
|
810
|
+
o[a] = new e({
|
|
807
811
|
type: "nonoptional",
|
|
808
|
-
innerType: n[
|
|
812
|
+
innerType: n[a]
|
|
809
813
|
});
|
|
810
814
|
return J(t, {
|
|
811
815
|
...t._zod.def,
|
|
@@ -814,33 +818,33 @@ function Oo(e, t, r) {
|
|
|
814
818
|
checks: []
|
|
815
819
|
});
|
|
816
820
|
}
|
|
817
|
-
function
|
|
821
|
+
function ne(e, t = 0) {
|
|
818
822
|
for (let r = t; r < e.issues.length; r++)
|
|
819
823
|
if (e.issues[r].continue !== !0)
|
|
820
824
|
return !0;
|
|
821
825
|
return !1;
|
|
822
826
|
}
|
|
823
|
-
function
|
|
827
|
+
function Qe(e, t) {
|
|
824
828
|
return t.map((r) => {
|
|
825
829
|
var n;
|
|
826
830
|
return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
|
|
827
831
|
});
|
|
828
832
|
}
|
|
829
|
-
function
|
|
833
|
+
function le(e) {
|
|
830
834
|
return typeof e == "string" ? e : e?.message;
|
|
831
835
|
}
|
|
832
836
|
function Y(e, t, r) {
|
|
833
837
|
const n = { ...e, path: e.path ?? [] };
|
|
834
838
|
if (!e.message) {
|
|
835
|
-
const o =
|
|
839
|
+
const o = le(e.inst?._zod.def?.error?.(e)) ?? le(t?.error?.(e)) ?? le(r.customError?.(e)) ?? le(r.localeError?.(e)) ?? "Invalid input";
|
|
836
840
|
n.message = o;
|
|
837
841
|
}
|
|
838
842
|
return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
|
|
839
843
|
}
|
|
840
|
-
function
|
|
844
|
+
function Be(e) {
|
|
841
845
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
842
846
|
}
|
|
843
|
-
function
|
|
847
|
+
function ae(...e) {
|
|
844
848
|
const [t, r, n] = e;
|
|
845
849
|
return typeof t == "string" ? {
|
|
846
850
|
message: t,
|
|
@@ -849,7 +853,7 @@ function se(...e) {
|
|
|
849
853
|
inst: n
|
|
850
854
|
} : { ...t };
|
|
851
855
|
}
|
|
852
|
-
const
|
|
856
|
+
const ar = (e, t) => {
|
|
853
857
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
854
858
|
value: e._zod,
|
|
855
859
|
enumerable: !1
|
|
@@ -858,23 +862,23 @@ const rr = (e, t) => {
|
|
|
858
862
|
enumerable: !1
|
|
859
863
|
}), Object.defineProperty(e, "message", {
|
|
860
864
|
get() {
|
|
861
|
-
return JSON.stringify(t,
|
|
865
|
+
return JSON.stringify(t, Eo, 2);
|
|
862
866
|
},
|
|
863
867
|
enumerable: !0
|
|
864
868
|
// configurable: false,
|
|
865
869
|
});
|
|
866
|
-
},
|
|
867
|
-
function
|
|
870
|
+
}, ir = c("$ZodError", ar), cr = c("$ZodError", ar, { Parent: Error });
|
|
871
|
+
function Do(e, t = (r) => r.message) {
|
|
868
872
|
const r = {}, n = [];
|
|
869
873
|
for (const o of e.issues)
|
|
870
874
|
o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
|
|
871
875
|
return { formErrors: n, fieldErrors: r };
|
|
872
876
|
}
|
|
873
|
-
function
|
|
874
|
-
const r = t || function(
|
|
875
|
-
return
|
|
876
|
-
}, n = { _errors: [] }, o = (
|
|
877
|
-
for (const i of
|
|
877
|
+
function Mo(e, t) {
|
|
878
|
+
const r = t || function(a) {
|
|
879
|
+
return a.message;
|
|
880
|
+
}, n = { _errors: [] }, o = (a) => {
|
|
881
|
+
for (const i of a.issues)
|
|
878
882
|
if (i.code === "invalid_union" && i.errors.length)
|
|
879
883
|
i.errors.map((u) => o({ issues: u }));
|
|
880
884
|
else if (i.code === "invalid_key")
|
|
@@ -884,74 +888,75 @@ function Ao(e, t) {
|
|
|
884
888
|
else if (i.path.length === 0)
|
|
885
889
|
n._errors.push(r(i));
|
|
886
890
|
else {
|
|
887
|
-
let u = n,
|
|
888
|
-
for (;
|
|
889
|
-
const f = i.path[
|
|
890
|
-
|
|
891
|
+
let u = n, h = 0;
|
|
892
|
+
for (; h < i.path.length; ) {
|
|
893
|
+
const f = i.path[h];
|
|
894
|
+
h === i.path.length - 1 ? (u[f] = u[f] || { _errors: [] }, u[f]._errors.push(r(i))) : u[f] = u[f] || { _errors: [] }, u = u[f], h++;
|
|
891
895
|
}
|
|
892
896
|
}
|
|
893
897
|
};
|
|
894
898
|
return o(e), n;
|
|
895
899
|
}
|
|
896
|
-
const
|
|
897
|
-
const
|
|
900
|
+
const Fo = (e) => (t, r, n, o) => {
|
|
901
|
+
const a = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, a);
|
|
898
902
|
if (i instanceof Promise)
|
|
899
|
-
throw new
|
|
903
|
+
throw new se();
|
|
900
904
|
if (i.issues.length) {
|
|
901
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
902
|
-
throw
|
|
905
|
+
const u = new (o?.Err ?? e)(i.issues.map((h) => Y(h, a, V())));
|
|
906
|
+
throw sr(u, o?.callee), u;
|
|
903
907
|
}
|
|
904
908
|
return i.value;
|
|
905
|
-
},
|
|
906
|
-
const
|
|
907
|
-
let i = t._zod.run({ value: r, issues: [] },
|
|
909
|
+
}, qo = (e) => async (t, r, n, o) => {
|
|
910
|
+
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
911
|
+
let i = t._zod.run({ value: r, issues: [] }, a);
|
|
908
912
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
909
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
910
|
-
throw
|
|
913
|
+
const u = new (o?.Err ?? e)(i.issues.map((h) => Y(h, a, V())));
|
|
914
|
+
throw sr(u, o?.callee), u;
|
|
911
915
|
}
|
|
912
916
|
return i.value;
|
|
913
|
-
},
|
|
914
|
-
const o = n ? { ...n, async: !1 } : { async: !1 },
|
|
915
|
-
if (
|
|
916
|
-
throw new
|
|
917
|
-
return
|
|
917
|
+
}, ur = (e) => (t, r, n) => {
|
|
918
|
+
const o = n ? { ...n, async: !1 } : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, o);
|
|
919
|
+
if (a instanceof Promise)
|
|
920
|
+
throw new se();
|
|
921
|
+
return a.issues.length ? {
|
|
918
922
|
success: !1,
|
|
919
|
-
error: new (e ??
|
|
920
|
-
} : { success: !0, data:
|
|
921
|
-
},
|
|
923
|
+
error: new (e ?? ir)(a.issues.map((i) => Y(i, o, V())))
|
|
924
|
+
} : { success: !0, data: a.value };
|
|
925
|
+
}, Uo = /* @__PURE__ */ ur(cr), lr = (e) => async (t, r, n) => {
|
|
922
926
|
const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
923
|
-
let
|
|
924
|
-
return
|
|
927
|
+
let a = t._zod.run({ value: r, issues: [] }, o);
|
|
928
|
+
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
925
929
|
success: !1,
|
|
926
|
-
error: new e(
|
|
927
|
-
} : { success: !0, data:
|
|
928
|
-
},
|
|
929
|
-
function
|
|
930
|
-
return new RegExp(
|
|
931
|
-
}
|
|
932
|
-
const
|
|
933
|
-
function
|
|
934
|
-
|
|
935
|
-
return e.precision ? t
|
|
936
|
-
}
|
|
937
|
-
function
|
|
938
|
-
return new RegExp(`^${
|
|
939
|
-
}
|
|
940
|
-
function
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}
|
|
945
|
-
|
|
930
|
+
error: new e(a.issues.map((i) => Y(i, o, V())))
|
|
931
|
+
} : { success: !0, data: a.value };
|
|
932
|
+
}, Lo = /* @__PURE__ */ lr(cr), Qo = /^[cC][^\s-]{8,}$/, Bo = /^[0-9a-z]+$/, Ho = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ko = /^[0-9a-vA-V]{20}$/, Wo = /^[A-Za-z0-9]{27}$/, Vo = /^[a-zA-Z0-9_-]{21}$/, Yo = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Go = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, lt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, Jo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Xo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
933
|
+
function es() {
|
|
934
|
+
return new RegExp(Xo, "u");
|
|
935
|
+
}
|
|
936
|
+
const ts = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, rs = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, ns = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, os = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, ss = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, dr = /^[A-Za-z0-9_-]*$/, as = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, is = /^\+(?:[0-9]){6,14}[0-9]$/, fr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", cs = /* @__PURE__ */ new RegExp(`^${fr}$`);
|
|
937
|
+
function hr(e) {
|
|
938
|
+
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
939
|
+
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
940
|
+
}
|
|
941
|
+
function us(e) {
|
|
942
|
+
return new RegExp(`^${hr(e)}$`);
|
|
943
|
+
}
|
|
944
|
+
function ls(e) {
|
|
945
|
+
const t = hr({ precision: e.precision }), r = ["Z"];
|
|
946
|
+
e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
|
|
947
|
+
const n = `${t}(?:${r.join("|")})`;
|
|
948
|
+
return new RegExp(`^${fr}T(?:${n})$`);
|
|
949
|
+
}
|
|
950
|
+
const ds = (e) => {
|
|
946
951
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
947
952
|
return new RegExp(`^${t}$`);
|
|
948
|
-
},
|
|
953
|
+
}, fs = /^[^A-Z]*$/, hs = /^[^a-z]*$/, U = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
949
954
|
var r;
|
|
950
955
|
e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
|
|
951
|
-
}),
|
|
956
|
+
}), ps = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
952
957
|
U.init(e, t), e._zod.when = (r) => {
|
|
953
958
|
const n = r.value;
|
|
954
|
-
return !
|
|
959
|
+
return !qe(n) && n.length !== void 0;
|
|
955
960
|
}, e._zod.onattach.push((r) => {
|
|
956
961
|
const n = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
957
962
|
t.maximum < n && (r._zod.bag.maximum = t.maximum);
|
|
@@ -959,9 +964,9 @@ const is = (e) => {
|
|
|
959
964
|
const n = r.value;
|
|
960
965
|
if (n.length <= t.maximum)
|
|
961
966
|
return;
|
|
962
|
-
const
|
|
967
|
+
const a = Be(n);
|
|
963
968
|
r.issues.push({
|
|
964
|
-
origin:
|
|
969
|
+
origin: a,
|
|
965
970
|
code: "too_big",
|
|
966
971
|
maximum: t.maximum,
|
|
967
972
|
inclusive: !0,
|
|
@@ -970,10 +975,10 @@ const is = (e) => {
|
|
|
970
975
|
continue: !t.abort
|
|
971
976
|
});
|
|
972
977
|
};
|
|
973
|
-
}),
|
|
978
|
+
}), ms = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
974
979
|
U.init(e, t), e._zod.when = (r) => {
|
|
975
980
|
const n = r.value;
|
|
976
|
-
return !
|
|
981
|
+
return !qe(n) && n.length !== void 0;
|
|
977
982
|
}, e._zod.onattach.push((r) => {
|
|
978
983
|
const n = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
979
984
|
t.minimum > n && (r._zod.bag.minimum = t.minimum);
|
|
@@ -981,9 +986,9 @@ const is = (e) => {
|
|
|
981
986
|
const n = r.value;
|
|
982
987
|
if (n.length >= t.minimum)
|
|
983
988
|
return;
|
|
984
|
-
const
|
|
989
|
+
const a = Be(n);
|
|
985
990
|
r.issues.push({
|
|
986
|
-
origin:
|
|
991
|
+
origin: a,
|
|
987
992
|
code: "too_small",
|
|
988
993
|
minimum: t.minimum,
|
|
989
994
|
inclusive: !0,
|
|
@@ -992,10 +997,10 @@ const is = (e) => {
|
|
|
992
997
|
continue: !t.abort
|
|
993
998
|
});
|
|
994
999
|
};
|
|
995
|
-
}),
|
|
1000
|
+
}), gs = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
996
1001
|
U.init(e, t), e._zod.when = (r) => {
|
|
997
1002
|
const n = r.value;
|
|
998
|
-
return !
|
|
1003
|
+
return !qe(n) && n.length !== void 0;
|
|
999
1004
|
}, e._zod.onattach.push((r) => {
|
|
1000
1005
|
const n = r._zod.bag;
|
|
1001
1006
|
n.minimum = t.length, n.maximum = t.length, n.length = t.length;
|
|
@@ -1003,9 +1008,9 @@ const is = (e) => {
|
|
|
1003
1008
|
const n = r.value, o = n.length;
|
|
1004
1009
|
if (o === t.length)
|
|
1005
1010
|
return;
|
|
1006
|
-
const
|
|
1011
|
+
const a = Be(n), i = o > t.length;
|
|
1007
1012
|
r.issues.push({
|
|
1008
|
-
origin:
|
|
1013
|
+
origin: a,
|
|
1009
1014
|
...i ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
1010
1015
|
input: r.value,
|
|
1011
1016
|
inst: e,
|
|
@@ -1030,7 +1035,7 @@ const is = (e) => {
|
|
|
1030
1035
|
continue: !t.abort
|
|
1031
1036
|
});
|
|
1032
1037
|
});
|
|
1033
|
-
}),
|
|
1038
|
+
}), vs = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
|
|
1034
1039
|
be.init(e, t), e._zod.check = (r) => {
|
|
1035
1040
|
t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
|
|
1036
1041
|
origin: "string",
|
|
@@ -1042,16 +1047,16 @@ const is = (e) => {
|
|
|
1042
1047
|
continue: !t.abort
|
|
1043
1048
|
});
|
|
1044
1049
|
};
|
|
1045
|
-
}),
|
|
1046
|
-
t.pattern ?? (t.pattern =
|
|
1047
|
-
}),
|
|
1048
|
-
t.pattern ?? (t.pattern =
|
|
1049
|
-
}),
|
|
1050
|
+
}), ys = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
|
|
1051
|
+
t.pattern ?? (t.pattern = fs), be.init(e, t);
|
|
1052
|
+
}), xs = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
1053
|
+
t.pattern ?? (t.pattern = hs), be.init(e, t);
|
|
1054
|
+
}), _s = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
1050
1055
|
U.init(e, t);
|
|
1051
1056
|
const r = _e(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
|
|
1052
1057
|
t.pattern = n, e._zod.onattach.push((o) => {
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1058
|
+
const a = o._zod.bag;
|
|
1059
|
+
a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
|
|
1055
1060
|
}), e._zod.check = (o) => {
|
|
1056
1061
|
o.value.includes(t.includes, t.position) || o.issues.push({
|
|
1057
1062
|
origin: "string",
|
|
@@ -1063,7 +1068,7 @@ const is = (e) => {
|
|
|
1063
1068
|
continue: !t.abort
|
|
1064
1069
|
});
|
|
1065
1070
|
};
|
|
1066
|
-
}),
|
|
1071
|
+
}), bs = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
1067
1072
|
U.init(e, t);
|
|
1068
1073
|
const r = new RegExp(`^${_e(t.prefix)}.*`);
|
|
1069
1074
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
@@ -1080,7 +1085,7 @@ const is = (e) => {
|
|
|
1080
1085
|
continue: !t.abort
|
|
1081
1086
|
});
|
|
1082
1087
|
};
|
|
1083
|
-
}),
|
|
1088
|
+
}), ws = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
1084
1089
|
U.init(e, t);
|
|
1085
1090
|
const r = new RegExp(`.*${_e(t.suffix)}$`);
|
|
1086
1091
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
@@ -1097,12 +1102,12 @@ const is = (e) => {
|
|
|
1097
1102
|
continue: !t.abort
|
|
1098
1103
|
});
|
|
1099
1104
|
};
|
|
1100
|
-
}),
|
|
1105
|
+
}), js = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
1101
1106
|
U.init(e, t), e._zod.check = (r) => {
|
|
1102
1107
|
r.value = t.tx(r.value);
|
|
1103
1108
|
};
|
|
1104
1109
|
});
|
|
1105
|
-
class
|
|
1110
|
+
class ks {
|
|
1106
1111
|
constructor(t = []) {
|
|
1107
1112
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
1108
1113
|
}
|
|
@@ -1115,62 +1120,62 @@ class _s {
|
|
|
1115
1120
|
return;
|
|
1116
1121
|
}
|
|
1117
1122
|
const n = t.split(`
|
|
1118
|
-
`).filter((i) => i), o = Math.min(...n.map((i) => i.length - i.trimStart().length)),
|
|
1119
|
-
for (const i of
|
|
1123
|
+
`).filter((i) => i), o = Math.min(...n.map((i) => i.length - i.trimStart().length)), a = n.map((i) => i.slice(o)).map((i) => " ".repeat(this.indent * 2) + i);
|
|
1124
|
+
for (const i of a)
|
|
1120
1125
|
this.content.push(i);
|
|
1121
1126
|
}
|
|
1122
1127
|
compile() {
|
|
1123
|
-
const t = Function, r = this?.args, o = [...(this?.content ?? [""]).map((
|
|
1128
|
+
const t = Function, r = this?.args, o = [...(this?.content ?? [""]).map((a) => ` ${a}`)];
|
|
1124
1129
|
return new t(...r, o.join(`
|
|
1125
1130
|
`));
|
|
1126
1131
|
}
|
|
1127
1132
|
}
|
|
1128
|
-
const
|
|
1133
|
+
const $s = {
|
|
1129
1134
|
major: 4,
|
|
1130
1135
|
minor: 0,
|
|
1131
1136
|
patch: 0
|
|
1132
|
-
},
|
|
1137
|
+
}, T = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
1133
1138
|
var r;
|
|
1134
|
-
e ?? (e = {}), e._zod
|
|
1139
|
+
e ?? (e = {}), S(e._zod, "id", () => t.type + "_" + or(10)), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = $s;
|
|
1135
1140
|
const n = [...e._zod.def.checks ?? []];
|
|
1136
1141
|
e._zod.traits.has("$ZodCheck") && n.unshift(e);
|
|
1137
1142
|
for (const o of n)
|
|
1138
|
-
for (const
|
|
1139
|
-
|
|
1143
|
+
for (const a of o._zod.onattach)
|
|
1144
|
+
a(e);
|
|
1140
1145
|
if (n.length === 0)
|
|
1141
1146
|
(r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
|
|
1142
1147
|
e._zod.run = e._zod.parse;
|
|
1143
1148
|
});
|
|
1144
1149
|
else {
|
|
1145
|
-
const o = (
|
|
1146
|
-
let
|
|
1147
|
-
for (const
|
|
1148
|
-
if (
|
|
1149
|
-
if (!
|
|
1150
|
+
const o = (a, i, u) => {
|
|
1151
|
+
let h = ne(a), f;
|
|
1152
|
+
for (const y of i) {
|
|
1153
|
+
if (y._zod.when) {
|
|
1154
|
+
if (!y._zod.when(a))
|
|
1150
1155
|
continue;
|
|
1151
|
-
} else if (
|
|
1156
|
+
} else if (h)
|
|
1152
1157
|
continue;
|
|
1153
|
-
const
|
|
1154
|
-
if (
|
|
1155
|
-
throw new
|
|
1156
|
-
if (f ||
|
|
1158
|
+
const p = a.issues.length, m = y._zod.check(a);
|
|
1159
|
+
if (m instanceof Promise && u?.async === !1)
|
|
1160
|
+
throw new se();
|
|
1161
|
+
if (f || m instanceof Promise)
|
|
1157
1162
|
f = (f ?? Promise.resolve()).then(async () => {
|
|
1158
|
-
await
|
|
1163
|
+
await m, a.issues.length !== p && (h || (h = ne(a, p)));
|
|
1159
1164
|
});
|
|
1160
1165
|
else {
|
|
1161
|
-
if (
|
|
1166
|
+
if (a.issues.length === p)
|
|
1162
1167
|
continue;
|
|
1163
|
-
|
|
1168
|
+
h || (h = ne(a, p));
|
|
1164
1169
|
}
|
|
1165
1170
|
}
|
|
1166
|
-
return f ? f.then(() =>
|
|
1171
|
+
return f ? f.then(() => a) : a;
|
|
1167
1172
|
};
|
|
1168
|
-
e._zod.run = (
|
|
1169
|
-
const u = e._zod.parse(
|
|
1173
|
+
e._zod.run = (a, i) => {
|
|
1174
|
+
const u = e._zod.parse(a, i);
|
|
1170
1175
|
if (u instanceof Promise) {
|
|
1171
1176
|
if (i.async === !1)
|
|
1172
|
-
throw new
|
|
1173
|
-
return u.then((
|
|
1177
|
+
throw new se();
|
|
1178
|
+
return u.then((h) => o(h, n, i));
|
|
1174
1179
|
}
|
|
1175
1180
|
return o(u, n, i);
|
|
1176
1181
|
};
|
|
@@ -1178,17 +1183,17 @@ const bs = {
|
|
|
1178
1183
|
e["~standard"] = {
|
|
1179
1184
|
validate: (o) => {
|
|
1180
1185
|
try {
|
|
1181
|
-
const
|
|
1182
|
-
return
|
|
1186
|
+
const a = Uo(e, o);
|
|
1187
|
+
return a.success ? { value: a.data } : { issues: a.error?.issues };
|
|
1183
1188
|
} catch {
|
|
1184
|
-
return
|
|
1189
|
+
return Lo(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
1185
1190
|
}
|
|
1186
1191
|
},
|
|
1187
1192
|
vendor: "zod",
|
|
1188
1193
|
version: 1
|
|
1189
1194
|
};
|
|
1190
|
-
}),
|
|
1191
|
-
|
|
1195
|
+
}), He = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
1196
|
+
T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ds(e._zod.bag), e._zod.parse = (r, n) => {
|
|
1192
1197
|
if (t.coerce)
|
|
1193
1198
|
try {
|
|
1194
1199
|
r.value = String(r.value);
|
|
@@ -1202,10 +1207,10 @@ const bs = {
|
|
|
1202
1207
|
}), r;
|
|
1203
1208
|
};
|
|
1204
1209
|
}), E = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
1205
|
-
be.init(e, t),
|
|
1206
|
-
}),
|
|
1207
|
-
t.pattern ?? (t.pattern =
|
|
1208
|
-
}),
|
|
1210
|
+
be.init(e, t), He.init(e, t);
|
|
1211
|
+
}), zs = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
1212
|
+
t.pattern ?? (t.pattern = Go), E.init(e, t);
|
|
1213
|
+
}), Ps = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1209
1214
|
if (t.version) {
|
|
1210
1215
|
const n = {
|
|
1211
1216
|
v1: 1,
|
|
@@ -1219,13 +1224,13 @@ const bs = {
|
|
|
1219
1224
|
}[t.version];
|
|
1220
1225
|
if (n === void 0)
|
|
1221
1226
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
1222
|
-
t.pattern ?? (t.pattern =
|
|
1227
|
+
t.pattern ?? (t.pattern = lt(n));
|
|
1223
1228
|
} else
|
|
1224
|
-
t.pattern ?? (t.pattern =
|
|
1229
|
+
t.pattern ?? (t.pattern = lt());
|
|
1225
1230
|
E.init(e, t);
|
|
1226
|
-
}),
|
|
1227
|
-
t.pattern ?? (t.pattern =
|
|
1228
|
-
}),
|
|
1231
|
+
}), Es = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
1232
|
+
t.pattern ?? (t.pattern = Jo), E.init(e, t);
|
|
1233
|
+
}), Ss = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
1229
1234
|
E.init(e, t), e._zod.check = (r) => {
|
|
1230
1235
|
try {
|
|
1231
1236
|
const n = new URL(r.value);
|
|
@@ -1233,7 +1238,7 @@ const bs = {
|
|
|
1233
1238
|
code: "invalid_format",
|
|
1234
1239
|
format: "url",
|
|
1235
1240
|
note: "Invalid hostname",
|
|
1236
|
-
pattern:
|
|
1241
|
+
pattern: as.source,
|
|
1237
1242
|
input: r.value,
|
|
1238
1243
|
inst: e,
|
|
1239
1244
|
continue: !t.abort
|
|
@@ -1257,35 +1262,35 @@ const bs = {
|
|
|
1257
1262
|
});
|
|
1258
1263
|
}
|
|
1259
1264
|
};
|
|
1260
|
-
}),
|
|
1261
|
-
t.pattern ?? (t.pattern =
|
|
1262
|
-
}),
|
|
1263
|
-
t.pattern ?? (t.pattern =
|
|
1264
|
-
}),
|
|
1265
|
-
t.pattern ?? (t.pattern = Fo), E.init(e, t);
|
|
1266
|
-
}), Ss = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1267
|
-
t.pattern ?? (t.pattern = qo), E.init(e, t);
|
|
1268
|
-
}), Zs = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1269
|
-
t.pattern ?? (t.pattern = Uo), E.init(e, t);
|
|
1270
|
-
}), Ts = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1271
|
-
t.pattern ?? (t.pattern = Lo), E.init(e, t);
|
|
1272
|
-
}), Cs = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1265
|
+
}), Zs = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
1266
|
+
t.pattern ?? (t.pattern = es()), E.init(e, t);
|
|
1267
|
+
}), Cs = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
1268
|
+
t.pattern ?? (t.pattern = Vo), E.init(e, t);
|
|
1269
|
+
}), Ts = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
1273
1270
|
t.pattern ?? (t.pattern = Qo), E.init(e, t);
|
|
1274
|
-
}), Os = /* @__PURE__ */ c("$
|
|
1275
|
-
t.pattern ?? (t.pattern =
|
|
1276
|
-
}), Ns = /* @__PURE__ */ c("$
|
|
1277
|
-
t.pattern ?? (t.pattern = os), E.init(e, t);
|
|
1278
|
-
}), As = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1279
|
-
t.pattern ?? (t.pattern = ss(t)), E.init(e, t);
|
|
1280
|
-
}), Rs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1271
|
+
}), Os = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1272
|
+
t.pattern ?? (t.pattern = Bo), E.init(e, t);
|
|
1273
|
+
}), Ns = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1281
1274
|
t.pattern ?? (t.pattern = Ho), E.init(e, t);
|
|
1282
|
-
}),
|
|
1283
|
-
t.pattern ?? (t.pattern =
|
|
1275
|
+
}), As = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1276
|
+
t.pattern ?? (t.pattern = Ko), E.init(e, t);
|
|
1277
|
+
}), Is = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1278
|
+
t.pattern ?? (t.pattern = Wo), E.init(e, t);
|
|
1279
|
+
}), Rs = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1280
|
+
t.pattern ?? (t.pattern = ls(t)), E.init(e, t), e._zod.check;
|
|
1281
|
+
}), Ds = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1282
|
+
t.pattern ?? (t.pattern = cs), E.init(e, t);
|
|
1283
|
+
}), Ms = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1284
|
+
t.pattern ?? (t.pattern = us(t)), E.init(e, t), e._zod.check;
|
|
1285
|
+
}), Fs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1286
|
+
t.pattern ?? (t.pattern = Yo), E.init(e, t);
|
|
1287
|
+
}), qs = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1288
|
+
t.pattern ?? (t.pattern = ts), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1284
1289
|
const n = r._zod.bag;
|
|
1285
1290
|
n.format = "ipv4";
|
|
1286
1291
|
});
|
|
1287
|
-
}),
|
|
1288
|
-
t.pattern ?? (t.pattern =
|
|
1292
|
+
}), Us = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
1293
|
+
t.pattern ?? (t.pattern = rs), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1289
1294
|
const n = r._zod.bag;
|
|
1290
1295
|
n.format = "ipv6";
|
|
1291
1296
|
}), e._zod.check = (r) => {
|
|
@@ -1301,18 +1306,18 @@ const bs = {
|
|
|
1301
1306
|
});
|
|
1302
1307
|
}
|
|
1303
1308
|
};
|
|
1304
|
-
}),
|
|
1305
|
-
t.pattern ?? (t.pattern =
|
|
1306
|
-
}),
|
|
1307
|
-
t.pattern ?? (t.pattern =
|
|
1309
|
+
}), Ls = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
1310
|
+
t.pattern ?? (t.pattern = ns), E.init(e, t);
|
|
1311
|
+
}), Qs = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
1312
|
+
t.pattern ?? (t.pattern = os), E.init(e, t), e._zod.check = (r) => {
|
|
1308
1313
|
const [n, o] = r.value.split("/");
|
|
1309
1314
|
try {
|
|
1310
1315
|
if (!o)
|
|
1311
1316
|
throw new Error();
|
|
1312
|
-
const
|
|
1313
|
-
if (`${
|
|
1317
|
+
const a = Number(o);
|
|
1318
|
+
if (`${a}` !== o)
|
|
1314
1319
|
throw new Error();
|
|
1315
|
-
if (
|
|
1320
|
+
if (a < 0 || a > 128)
|
|
1316
1321
|
throw new Error();
|
|
1317
1322
|
new URL(`http://[${n}]`);
|
|
1318
1323
|
} catch {
|
|
@@ -1326,7 +1331,7 @@ const bs = {
|
|
|
1326
1331
|
}
|
|
1327
1332
|
};
|
|
1328
1333
|
});
|
|
1329
|
-
function
|
|
1334
|
+
function pr(e) {
|
|
1330
1335
|
if (e === "")
|
|
1331
1336
|
return !0;
|
|
1332
1337
|
if (e.length % 4 !== 0)
|
|
@@ -1337,11 +1342,11 @@ function lr(e) {
|
|
|
1337
1342
|
return !1;
|
|
1338
1343
|
}
|
|
1339
1344
|
}
|
|
1340
|
-
const
|
|
1341
|
-
t.pattern ?? (t.pattern =
|
|
1345
|
+
const Bs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
1346
|
+
t.pattern ?? (t.pattern = ss), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1342
1347
|
r._zod.bag.contentEncoding = "base64";
|
|
1343
1348
|
}), e._zod.check = (r) => {
|
|
1344
|
-
|
|
1349
|
+
pr(r.value) || r.issues.push({
|
|
1345
1350
|
code: "invalid_format",
|
|
1346
1351
|
format: "base64",
|
|
1347
1352
|
input: r.value,
|
|
@@ -1350,17 +1355,17 @@ const qs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
1350
1355
|
});
|
|
1351
1356
|
};
|
|
1352
1357
|
});
|
|
1353
|
-
function
|
|
1354
|
-
if (!
|
|
1358
|
+
function Hs(e) {
|
|
1359
|
+
if (!dr.test(e))
|
|
1355
1360
|
return !1;
|
|
1356
1361
|
const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1357
|
-
return
|
|
1362
|
+
return pr(r);
|
|
1358
1363
|
}
|
|
1359
|
-
const
|
|
1360
|
-
t.pattern ?? (t.pattern =
|
|
1364
|
+
const Ks = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
1365
|
+
t.pattern ?? (t.pattern = dr), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1361
1366
|
r._zod.bag.contentEncoding = "base64url";
|
|
1362
1367
|
}), e._zod.check = (r) => {
|
|
1363
|
-
|
|
1368
|
+
Hs(r.value) || r.issues.push({
|
|
1364
1369
|
code: "invalid_format",
|
|
1365
1370
|
format: "base64url",
|
|
1366
1371
|
input: r.value,
|
|
@@ -1368,10 +1373,10 @@ const Ls = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
1368
1373
|
continue: !t.abort
|
|
1369
1374
|
});
|
|
1370
1375
|
};
|
|
1371
|
-
}),
|
|
1372
|
-
t.pattern ?? (t.pattern =
|
|
1376
|
+
}), Ws = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
1377
|
+
t.pattern ?? (t.pattern = is), E.init(e, t);
|
|
1373
1378
|
});
|
|
1374
|
-
function
|
|
1379
|
+
function Vs(e, t = null) {
|
|
1375
1380
|
try {
|
|
1376
1381
|
const r = e.split(".");
|
|
1377
1382
|
if (r.length !== 3)
|
|
@@ -1382,9 +1387,9 @@ function Bs(e, t = null) {
|
|
|
1382
1387
|
return !1;
|
|
1383
1388
|
}
|
|
1384
1389
|
}
|
|
1385
|
-
const
|
|
1390
|
+
const Ys = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
1386
1391
|
E.init(e, t), e._zod.check = (r) => {
|
|
1387
|
-
|
|
1392
|
+
Vs(r.value, t.alg) || r.issues.push({
|
|
1388
1393
|
code: "invalid_format",
|
|
1389
1394
|
format: "jwt",
|
|
1390
1395
|
input: r.value,
|
|
@@ -1392,21 +1397,21 @@ const Hs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1392
1397
|
continue: !t.abort
|
|
1393
1398
|
});
|
|
1394
1399
|
};
|
|
1395
|
-
}),
|
|
1396
|
-
|
|
1397
|
-
}),
|
|
1398
|
-
|
|
1400
|
+
}), Gs = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
1401
|
+
T.init(e, t), e._zod.parse = (r) => r;
|
|
1402
|
+
}), Js = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
1403
|
+
T.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
|
|
1399
1404
|
expected: "never",
|
|
1400
1405
|
code: "invalid_type",
|
|
1401
1406
|
input: r.value,
|
|
1402
1407
|
inst: e
|
|
1403
1408
|
}), r);
|
|
1404
1409
|
});
|
|
1405
|
-
function
|
|
1406
|
-
e.issues.length && t.issues.push(...
|
|
1410
|
+
function dt(e, t, r) {
|
|
1411
|
+
e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
|
|
1407
1412
|
}
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1413
|
+
const Xs = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
1414
|
+
T.init(e, t), e._zod.parse = (r, n) => {
|
|
1410
1415
|
const o = r.value;
|
|
1411
1416
|
if (!Array.isArray(o))
|
|
1412
1417
|
return r.issues.push({
|
|
@@ -1416,144 +1421,144 @@ const Vs = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1416
1421
|
inst: e
|
|
1417
1422
|
}), r;
|
|
1418
1423
|
r.value = Array(o.length);
|
|
1419
|
-
const
|
|
1424
|
+
const a = [];
|
|
1420
1425
|
for (let i = 0; i < o.length; i++) {
|
|
1421
|
-
const u = o[i],
|
|
1426
|
+
const u = o[i], h = t.element._zod.run({
|
|
1422
1427
|
value: u,
|
|
1423
1428
|
issues: []
|
|
1424
1429
|
}, n);
|
|
1425
|
-
|
|
1430
|
+
h instanceof Promise ? a.push(h.then((f) => dt(f, r, i))) : dt(h, r, i);
|
|
1426
1431
|
}
|
|
1427
|
-
return
|
|
1432
|
+
return a.length ? Promise.all(a).then(() => r) : r;
|
|
1428
1433
|
};
|
|
1429
1434
|
});
|
|
1430
|
-
function
|
|
1431
|
-
e.issues.length && t.issues.push(...
|
|
1432
|
-
}
|
|
1433
|
-
function
|
|
1434
|
-
e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...
|
|
1435
|
-
}
|
|
1436
|
-
const
|
|
1437
|
-
|
|
1438
|
-
const r =
|
|
1439
|
-
const
|
|
1440
|
-
for (const l of
|
|
1441
|
-
if (!(t.shape[l] instanceof
|
|
1435
|
+
function de(e, t, r) {
|
|
1436
|
+
e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
|
|
1437
|
+
}
|
|
1438
|
+
function ft(e, t, r, n) {
|
|
1439
|
+
e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Qe(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
|
|
1440
|
+
}
|
|
1441
|
+
const ea = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1442
|
+
T.init(e, t);
|
|
1443
|
+
const r = nr(() => {
|
|
1444
|
+
const p = Object.keys(t.shape);
|
|
1445
|
+
for (const l of p)
|
|
1446
|
+
if (!(t.shape[l] instanceof T))
|
|
1442
1447
|
throw new Error(`Invalid element at key "${l}": expected a Zod schema`);
|
|
1443
|
-
const
|
|
1448
|
+
const m = Co(t.shape);
|
|
1444
1449
|
return {
|
|
1445
1450
|
shape: t.shape,
|
|
1446
|
-
keys:
|
|
1447
|
-
keySet: new Set(
|
|
1448
|
-
numKeys:
|
|
1449
|
-
optionalKeys: new Set(
|
|
1451
|
+
keys: p,
|
|
1452
|
+
keySet: new Set(p),
|
|
1453
|
+
numKeys: p.length,
|
|
1454
|
+
optionalKeys: new Set(m)
|
|
1450
1455
|
};
|
|
1451
1456
|
});
|
|
1452
|
-
|
|
1453
|
-
const
|
|
1454
|
-
for (const l in
|
|
1455
|
-
const g =
|
|
1457
|
+
S(e._zod, "propValues", () => {
|
|
1458
|
+
const p = t.shape, m = {};
|
|
1459
|
+
for (const l in p) {
|
|
1460
|
+
const g = p[l]._zod;
|
|
1456
1461
|
if (g.values) {
|
|
1457
|
-
|
|
1462
|
+
m[l] ?? (m[l] = /* @__PURE__ */ new Set());
|
|
1458
1463
|
for (const w of g.values)
|
|
1459
|
-
|
|
1464
|
+
m[l].add(w);
|
|
1460
1465
|
}
|
|
1461
1466
|
}
|
|
1462
|
-
return
|
|
1467
|
+
return m;
|
|
1463
1468
|
});
|
|
1464
|
-
const n = (
|
|
1465
|
-
const
|
|
1466
|
-
const
|
|
1467
|
-
return `shape[${
|
|
1469
|
+
const n = (p) => {
|
|
1470
|
+
const m = new ks(["shape", "payload", "ctx"]), { keys: l, optionalKeys: g } = r.value, w = (j) => {
|
|
1471
|
+
const x = re(j);
|
|
1472
|
+
return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
|
|
1468
1473
|
};
|
|
1469
|
-
|
|
1474
|
+
m.write("const input = payload.value;");
|
|
1470
1475
|
const P = /* @__PURE__ */ Object.create(null);
|
|
1471
1476
|
for (const j of l)
|
|
1472
|
-
P[j] =
|
|
1473
|
-
|
|
1477
|
+
P[j] = or(15);
|
|
1478
|
+
m.write("const newResult = {}");
|
|
1474
1479
|
for (const j of l)
|
|
1475
1480
|
if (g.has(j)) {
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
-
const b =
|
|
1479
|
-
|
|
1480
|
-
if (${
|
|
1481
|
+
const x = P[j];
|
|
1482
|
+
m.write(`const ${x} = ${w(j)};`);
|
|
1483
|
+
const b = re(j);
|
|
1484
|
+
m.write(`
|
|
1485
|
+
if (${x}.issues.length) {
|
|
1481
1486
|
if (input[${b}] === undefined) {
|
|
1482
1487
|
if (${b} in input) {
|
|
1483
1488
|
newResult[${b}] = undefined;
|
|
1484
1489
|
}
|
|
1485
1490
|
} else {
|
|
1486
1491
|
payload.issues = payload.issues.concat(
|
|
1487
|
-
${
|
|
1492
|
+
${x}.issues.map((iss) => ({
|
|
1488
1493
|
...iss,
|
|
1489
1494
|
path: iss.path ? [${b}, ...iss.path] : [${b}],
|
|
1490
1495
|
}))
|
|
1491
1496
|
);
|
|
1492
1497
|
}
|
|
1493
|
-
} else if (${
|
|
1498
|
+
} else if (${x}.value === undefined) {
|
|
1494
1499
|
if (${b} in input) newResult[${b}] = undefined;
|
|
1495
1500
|
} else {
|
|
1496
|
-
newResult[${b}] = ${
|
|
1501
|
+
newResult[${b}] = ${x}.value;
|
|
1497
1502
|
}
|
|
1498
1503
|
`);
|
|
1499
1504
|
} else {
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
if (${
|
|
1505
|
+
const x = P[j];
|
|
1506
|
+
m.write(`const ${x} = ${w(j)};`), m.write(`
|
|
1507
|
+
if (${x}.issues.length) payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1503
1508
|
...iss,
|
|
1504
|
-
path: iss.path ? [${
|
|
1505
|
-
})));`),
|
|
1509
|
+
path: iss.path ? [${re(j)}, ...iss.path] : [${re(j)}]
|
|
1510
|
+
})));`), m.write(`newResult[${re(j)}] = ${x}.value`);
|
|
1506
1511
|
}
|
|
1507
|
-
|
|
1508
|
-
const
|
|
1509
|
-
return (j,
|
|
1512
|
+
m.write("payload.value = newResult;"), m.write("return payload;");
|
|
1513
|
+
const C = m.compile();
|
|
1514
|
+
return (j, x) => C(p, j, x);
|
|
1510
1515
|
};
|
|
1511
1516
|
let o;
|
|
1512
|
-
const
|
|
1513
|
-
let
|
|
1514
|
-
e._zod.parse = (
|
|
1515
|
-
|
|
1516
|
-
const l =
|
|
1517
|
-
if (!
|
|
1518
|
-
return
|
|
1517
|
+
const a = Ce, i = !rr.jitless, h = i && So.value, { catchall: f } = t;
|
|
1518
|
+
let y;
|
|
1519
|
+
e._zod.parse = (p, m) => {
|
|
1520
|
+
y ?? (y = r.value);
|
|
1521
|
+
const l = p.value;
|
|
1522
|
+
if (!a(l))
|
|
1523
|
+
return p.issues.push({
|
|
1519
1524
|
expected: "object",
|
|
1520
1525
|
code: "invalid_type",
|
|
1521
1526
|
input: l,
|
|
1522
1527
|
inst: e
|
|
1523
|
-
}),
|
|
1528
|
+
}), p;
|
|
1524
1529
|
const g = [];
|
|
1525
|
-
if (i &&
|
|
1526
|
-
o || (o = n(t.shape)),
|
|
1530
|
+
if (i && h && m?.async === !1 && m.jitless !== !0)
|
|
1531
|
+
o || (o = n(t.shape)), p = o(p, m);
|
|
1527
1532
|
else {
|
|
1528
|
-
|
|
1529
|
-
const
|
|
1530
|
-
for (const b of
|
|
1531
|
-
const d =
|
|
1532
|
-
z instanceof Promise ? g.push(z.then((D) =>
|
|
1533
|
+
p.value = {};
|
|
1534
|
+
const x = y.shape;
|
|
1535
|
+
for (const b of y.keys) {
|
|
1536
|
+
const d = x[b], z = d._zod.run({ value: l[b], issues: [] }, m), I = d._zod.optin === "optional" && d._zod.optout === "optional";
|
|
1537
|
+
z instanceof Promise ? g.push(z.then((D) => I ? ft(D, p, b, l) : de(D, p, b))) : I ? ft(z, p, b, l) : de(z, p, b);
|
|
1533
1538
|
}
|
|
1534
1539
|
}
|
|
1535
1540
|
if (!f)
|
|
1536
|
-
return g.length ? Promise.all(g).then(() =>
|
|
1537
|
-
const w = [], P =
|
|
1538
|
-
for (const
|
|
1539
|
-
if (P.has(
|
|
1541
|
+
return g.length ? Promise.all(g).then(() => p) : p;
|
|
1542
|
+
const w = [], P = y.keySet, C = f._zod, j = C.def.type;
|
|
1543
|
+
for (const x of Object.keys(l)) {
|
|
1544
|
+
if (P.has(x))
|
|
1540
1545
|
continue;
|
|
1541
1546
|
if (j === "never") {
|
|
1542
|
-
w.push(
|
|
1547
|
+
w.push(x);
|
|
1543
1548
|
continue;
|
|
1544
1549
|
}
|
|
1545
|
-
const b =
|
|
1546
|
-
b instanceof Promise ? g.push(b.then((d) =>
|
|
1550
|
+
const b = C.run({ value: l[x], issues: [] }, m);
|
|
1551
|
+
b instanceof Promise ? g.push(b.then((d) => de(d, p, x))) : de(b, p, x);
|
|
1547
1552
|
}
|
|
1548
|
-
return w.length &&
|
|
1553
|
+
return w.length && p.issues.push({
|
|
1549
1554
|
code: "unrecognized_keys",
|
|
1550
1555
|
keys: w,
|
|
1551
1556
|
input: l,
|
|
1552
1557
|
inst: e
|
|
1553
|
-
}), g.length ? Promise.all(g).then(() =>
|
|
1558
|
+
}), g.length ? Promise.all(g).then(() => p) : p;
|
|
1554
1559
|
};
|
|
1555
1560
|
});
|
|
1556
|
-
function
|
|
1561
|
+
function ht(e, t, r, n) {
|
|
1557
1562
|
for (const o of e)
|
|
1558
1563
|
if (o.issues.length === 0)
|
|
1559
1564
|
return t.value = o.value, t;
|
|
@@ -1561,57 +1566,57 @@ function dt(e, t, r, n) {
|
|
|
1561
1566
|
code: "invalid_union",
|
|
1562
1567
|
input: t.value,
|
|
1563
1568
|
inst: r,
|
|
1564
|
-
errors: e.map((o) => o.issues.map((
|
|
1569
|
+
errors: e.map((o) => o.issues.map((a) => Y(a, n, V())))
|
|
1565
1570
|
}), t;
|
|
1566
1571
|
}
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1572
|
+
const ta = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1573
|
+
T.init(e, t), S(e._zod, "values", () => {
|
|
1569
1574
|
if (t.options.every((r) => r._zod.values))
|
|
1570
1575
|
return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
|
|
1571
|
-
}),
|
|
1576
|
+
}), S(e._zod, "pattern", () => {
|
|
1572
1577
|
if (t.options.every((r) => r._zod.pattern)) {
|
|
1573
1578
|
const r = t.options.map((n) => n._zod.pattern);
|
|
1574
|
-
return new RegExp(`^(${r.map((n) =>
|
|
1579
|
+
return new RegExp(`^(${r.map((n) => Ue(n.source)).join("|")})$`);
|
|
1575
1580
|
}
|
|
1576
1581
|
}), e._zod.parse = (r, n) => {
|
|
1577
1582
|
let o = !1;
|
|
1578
|
-
const
|
|
1583
|
+
const a = [];
|
|
1579
1584
|
for (const i of t.options) {
|
|
1580
1585
|
const u = i._zod.run({
|
|
1581
1586
|
value: r.value,
|
|
1582
1587
|
issues: []
|
|
1583
1588
|
}, n);
|
|
1584
1589
|
if (u instanceof Promise)
|
|
1585
|
-
|
|
1590
|
+
a.push(u), o = !0;
|
|
1586
1591
|
else {
|
|
1587
1592
|
if (u.issues.length === 0)
|
|
1588
1593
|
return u;
|
|
1589
|
-
|
|
1594
|
+
a.push(u);
|
|
1590
1595
|
}
|
|
1591
1596
|
}
|
|
1592
|
-
return o ? Promise.all(
|
|
1597
|
+
return o ? Promise.all(a).then((i) => ht(i, r, e, n)) : ht(a, r, e, n);
|
|
1593
1598
|
};
|
|
1594
|
-
}),
|
|
1595
|
-
|
|
1596
|
-
const { value: o } = r,
|
|
1597
|
-
return
|
|
1599
|
+
}), ra = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1600
|
+
T.init(e, t), e._zod.parse = (r, n) => {
|
|
1601
|
+
const { value: o } = r, a = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
|
|
1602
|
+
return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([h, f]) => pt(r, h, f)) : pt(r, a, i);
|
|
1598
1603
|
};
|
|
1599
1604
|
});
|
|
1600
|
-
function
|
|
1605
|
+
function Te(e, t) {
|
|
1601
1606
|
if (e === t)
|
|
1602
1607
|
return { valid: !0, data: e };
|
|
1603
1608
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
1604
1609
|
return { valid: !0, data: e };
|
|
1605
|
-
if (
|
|
1606
|
-
const r = Object.keys(t), n = Object.keys(e).filter((
|
|
1607
|
-
for (const
|
|
1608
|
-
const i =
|
|
1610
|
+
if (ut(e) && ut(t)) {
|
|
1611
|
+
const r = Object.keys(t), n = Object.keys(e).filter((a) => r.indexOf(a) !== -1), o = { ...e, ...t };
|
|
1612
|
+
for (const a of n) {
|
|
1613
|
+
const i = Te(e[a], t[a]);
|
|
1609
1614
|
if (!i.valid)
|
|
1610
1615
|
return {
|
|
1611
1616
|
valid: !1,
|
|
1612
|
-
mergeErrorPath: [
|
|
1617
|
+
mergeErrorPath: [a, ...i.mergeErrorPath]
|
|
1613
1618
|
};
|
|
1614
|
-
o[
|
|
1619
|
+
o[a] = i.data;
|
|
1615
1620
|
}
|
|
1616
1621
|
return { valid: !0, data: o };
|
|
1617
1622
|
}
|
|
@@ -1620,7 +1625,7 @@ function Ce(e, t) {
|
|
|
1620
1625
|
return { valid: !1, mergeErrorPath: [] };
|
|
1621
1626
|
const r = [];
|
|
1622
1627
|
for (let n = 0; n < e.length; n++) {
|
|
1623
|
-
const o = e[n],
|
|
1628
|
+
const o = e[n], a = t[n], i = Te(o, a);
|
|
1624
1629
|
if (!i.valid)
|
|
1625
1630
|
return {
|
|
1626
1631
|
valid: !1,
|
|
@@ -1632,68 +1637,68 @@ function Ce(e, t) {
|
|
|
1632
1637
|
}
|
|
1633
1638
|
return { valid: !1, mergeErrorPath: [] };
|
|
1634
1639
|
}
|
|
1635
|
-
function
|
|
1636
|
-
if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues),
|
|
1640
|
+
function pt(e, t, r) {
|
|
1641
|
+
if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), ne(e))
|
|
1637
1642
|
return e;
|
|
1638
|
-
const n =
|
|
1643
|
+
const n = Te(t.value, r.value);
|
|
1639
1644
|
if (!n.valid)
|
|
1640
1645
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
|
|
1641
1646
|
return e.value = n.data, e;
|
|
1642
1647
|
}
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
const r =
|
|
1646
|
-
e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) =>
|
|
1647
|
-
const
|
|
1648
|
-
return e._zod.values.has(
|
|
1648
|
+
const na = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1649
|
+
T.init(e, t);
|
|
1650
|
+
const r = Po(t.entries);
|
|
1651
|
+
e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Zo.has(typeof n)).map((n) => typeof n == "string" ? _e(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
|
|
1652
|
+
const a = n.value;
|
|
1653
|
+
return e._zod.values.has(a) || n.issues.push({
|
|
1649
1654
|
code: "invalid_value",
|
|
1650
1655
|
values: r,
|
|
1651
|
-
input:
|
|
1656
|
+
input: a,
|
|
1652
1657
|
inst: e
|
|
1653
1658
|
}), n;
|
|
1654
1659
|
};
|
|
1655
|
-
}),
|
|
1656
|
-
|
|
1660
|
+
}), oa = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1661
|
+
T.init(e, t), e._zod.parse = (r, n) => {
|
|
1657
1662
|
const o = t.transform(r.value, r);
|
|
1658
1663
|
if (n.async)
|
|
1659
1664
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
|
|
1660
1665
|
if (o instanceof Promise)
|
|
1661
|
-
throw new
|
|
1666
|
+
throw new se();
|
|
1662
1667
|
return r.value = o, r;
|
|
1663
1668
|
};
|
|
1664
|
-
}),
|
|
1665
|
-
|
|
1669
|
+
}), sa = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1670
|
+
T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
|
|
1666
1671
|
const r = t.innerType._zod.pattern;
|
|
1667
|
-
return r ? new RegExp(`^(${
|
|
1672
|
+
return r ? new RegExp(`^(${Ue(r.source)})?$`) : void 0;
|
|
1668
1673
|
}), e._zod.parse = (r, n) => r.value === void 0 ? r : t.innerType._zod.run(r, n);
|
|
1669
|
-
}),
|
|
1670
|
-
|
|
1674
|
+
}), aa = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1675
|
+
T.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
|
|
1671
1676
|
const r = t.innerType._zod.pattern;
|
|
1672
|
-
return r ? new RegExp(`^(${
|
|
1673
|
-
}),
|
|
1674
|
-
}),
|
|
1675
|
-
|
|
1677
|
+
return r ? new RegExp(`^(${Ue(r.source)}|null)$`) : void 0;
|
|
1678
|
+
}), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
|
|
1679
|
+
}), ia = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1680
|
+
T.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1676
1681
|
if (r.value === void 0)
|
|
1677
1682
|
return r.value = t.defaultValue, r;
|
|
1678
1683
|
const o = t.innerType._zod.run(r, n);
|
|
1679
|
-
return o instanceof Promise ? o.then((
|
|
1684
|
+
return o instanceof Promise ? o.then((a) => mt(a, t)) : mt(o, t);
|
|
1680
1685
|
};
|
|
1681
1686
|
});
|
|
1682
|
-
function
|
|
1687
|
+
function mt(e, t) {
|
|
1683
1688
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1684
1689
|
}
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1687
|
-
}),
|
|
1688
|
-
|
|
1690
|
+
const ca = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1691
|
+
T.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
|
|
1692
|
+
}), ua = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1693
|
+
T.init(e, t), S(e._zod, "values", () => {
|
|
1689
1694
|
const r = t.innerType._zod.values;
|
|
1690
1695
|
return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
|
|
1691
1696
|
}), e._zod.parse = (r, n) => {
|
|
1692
1697
|
const o = t.innerType._zod.run(r, n);
|
|
1693
|
-
return o instanceof Promise ? o.then((
|
|
1698
|
+
return o instanceof Promise ? o.then((a) => gt(a, e)) : gt(o, e);
|
|
1694
1699
|
};
|
|
1695
1700
|
});
|
|
1696
|
-
function
|
|
1701
|
+
function gt(e, t) {
|
|
1697
1702
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1698
1703
|
code: "invalid_type",
|
|
1699
1704
|
expected: "nonoptional",
|
|
@@ -1701,50 +1706,50 @@ function pt(e, t) {
|
|
|
1701
1706
|
inst: t
|
|
1702
1707
|
}), e;
|
|
1703
1708
|
}
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1709
|
+
const la = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1710
|
+
T.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1706
1711
|
const o = t.innerType._zod.run(r, n);
|
|
1707
|
-
return o instanceof Promise ? o.then((
|
|
1712
|
+
return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
|
|
1708
1713
|
...r,
|
|
1709
1714
|
error: {
|
|
1710
|
-
issues:
|
|
1715
|
+
issues: a.issues.map((i) => Y(i, n, V()))
|
|
1711
1716
|
},
|
|
1712
1717
|
input: r.value
|
|
1713
1718
|
}), r.issues = []), r)) : (r.value = o.value, o.issues.length && (r.value = t.catchValue({
|
|
1714
1719
|
...r,
|
|
1715
1720
|
error: {
|
|
1716
|
-
issues: o.issues.map((
|
|
1721
|
+
issues: o.issues.map((a) => Y(a, n, V()))
|
|
1717
1722
|
},
|
|
1718
1723
|
input: r.value
|
|
1719
1724
|
}), r.issues = []), r);
|
|
1720
1725
|
};
|
|
1721
|
-
}),
|
|
1722
|
-
|
|
1726
|
+
}), da = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1727
|
+
T.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
|
|
1723
1728
|
const o = t.in._zod.run(r, n);
|
|
1724
|
-
return o instanceof Promise ? o.then((
|
|
1729
|
+
return o instanceof Promise ? o.then((a) => vt(a, t, n)) : vt(o, t, n);
|
|
1725
1730
|
};
|
|
1726
1731
|
});
|
|
1727
|
-
function
|
|
1728
|
-
return
|
|
1732
|
+
function vt(e, t, r) {
|
|
1733
|
+
return ne(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
|
|
1729
1734
|
}
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1735
|
+
const fa = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1736
|
+
T.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
|
|
1732
1737
|
const o = t.innerType._zod.run(r, n);
|
|
1733
|
-
return o instanceof Promise ? o.then(
|
|
1738
|
+
return o instanceof Promise ? o.then(yt) : yt(o);
|
|
1734
1739
|
};
|
|
1735
1740
|
});
|
|
1736
|
-
function
|
|
1741
|
+
function yt(e) {
|
|
1737
1742
|
return e.value = Object.freeze(e.value), e;
|
|
1738
1743
|
}
|
|
1739
|
-
const
|
|
1740
|
-
U.init(e, t),
|
|
1744
|
+
const ha = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1745
|
+
U.init(e, t), T.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
|
|
1741
1746
|
const n = r.value, o = t.fn(n);
|
|
1742
1747
|
if (o instanceof Promise)
|
|
1743
|
-
return o.then((
|
|
1744
|
-
|
|
1748
|
+
return o.then((a) => xt(a, r, n, e));
|
|
1749
|
+
xt(o, r, n, e);
|
|
1745
1750
|
};
|
|
1746
1751
|
});
|
|
1747
|
-
function
|
|
1752
|
+
function xt(e, t, r, n) {
|
|
1748
1753
|
if (!e) {
|
|
1749
1754
|
const o = {
|
|
1750
1755
|
code: "custom",
|
|
@@ -1756,10 +1761,10 @@ function vt(e, t, r, n) {
|
|
|
1756
1761
|
continue: !n._zod.def.abort
|
|
1757
1762
|
// params: inst._zod.def.params,
|
|
1758
1763
|
};
|
|
1759
|
-
n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(
|
|
1764
|
+
n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ae(o));
|
|
1760
1765
|
}
|
|
1761
1766
|
}
|
|
1762
|
-
class
|
|
1767
|
+
class pa {
|
|
1763
1768
|
constructor() {
|
|
1764
1769
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1765
1770
|
}
|
|
@@ -1787,17 +1792,17 @@ class la {
|
|
|
1787
1792
|
return this._map.has(t);
|
|
1788
1793
|
}
|
|
1789
1794
|
}
|
|
1790
|
-
function
|
|
1791
|
-
return new
|
|
1795
|
+
function ma() {
|
|
1796
|
+
return new pa();
|
|
1792
1797
|
}
|
|
1793
|
-
const
|
|
1794
|
-
function
|
|
1798
|
+
const fe = /* @__PURE__ */ ma();
|
|
1799
|
+
function ga(e, t) {
|
|
1795
1800
|
return new e({
|
|
1796
1801
|
type: "string",
|
|
1797
1802
|
..._(t)
|
|
1798
1803
|
});
|
|
1799
1804
|
}
|
|
1800
|
-
function
|
|
1805
|
+
function va(e, t) {
|
|
1801
1806
|
return new e({
|
|
1802
1807
|
type: "string",
|
|
1803
1808
|
format: "email",
|
|
@@ -1806,7 +1811,7 @@ function ha(e, t) {
|
|
|
1806
1811
|
..._(t)
|
|
1807
1812
|
});
|
|
1808
1813
|
}
|
|
1809
|
-
function
|
|
1814
|
+
function _t(e, t) {
|
|
1810
1815
|
return new e({
|
|
1811
1816
|
type: "string",
|
|
1812
1817
|
format: "guid",
|
|
@@ -1815,7 +1820,7 @@ function yt(e, t) {
|
|
|
1815
1820
|
..._(t)
|
|
1816
1821
|
});
|
|
1817
1822
|
}
|
|
1818
|
-
function
|
|
1823
|
+
function ya(e, t) {
|
|
1819
1824
|
return new e({
|
|
1820
1825
|
type: "string",
|
|
1821
1826
|
format: "uuid",
|
|
@@ -1824,7 +1829,7 @@ function pa(e, t) {
|
|
|
1824
1829
|
..._(t)
|
|
1825
1830
|
});
|
|
1826
1831
|
}
|
|
1827
|
-
function
|
|
1832
|
+
function xa(e, t) {
|
|
1828
1833
|
return new e({
|
|
1829
1834
|
type: "string",
|
|
1830
1835
|
format: "uuid",
|
|
@@ -1834,7 +1839,7 @@ function ma(e, t) {
|
|
|
1834
1839
|
..._(t)
|
|
1835
1840
|
});
|
|
1836
1841
|
}
|
|
1837
|
-
function
|
|
1842
|
+
function _a(e, t) {
|
|
1838
1843
|
return new e({
|
|
1839
1844
|
type: "string",
|
|
1840
1845
|
format: "uuid",
|
|
@@ -1844,7 +1849,7 @@ function ga(e, t) {
|
|
|
1844
1849
|
..._(t)
|
|
1845
1850
|
});
|
|
1846
1851
|
}
|
|
1847
|
-
function
|
|
1852
|
+
function ba(e, t) {
|
|
1848
1853
|
return new e({
|
|
1849
1854
|
type: "string",
|
|
1850
1855
|
format: "uuid",
|
|
@@ -1854,7 +1859,7 @@ function va(e, t) {
|
|
|
1854
1859
|
..._(t)
|
|
1855
1860
|
});
|
|
1856
1861
|
}
|
|
1857
|
-
function
|
|
1862
|
+
function wa(e, t) {
|
|
1858
1863
|
return new e({
|
|
1859
1864
|
type: "string",
|
|
1860
1865
|
format: "url",
|
|
@@ -1863,7 +1868,7 @@ function ya(e, t) {
|
|
|
1863
1868
|
..._(t)
|
|
1864
1869
|
});
|
|
1865
1870
|
}
|
|
1866
|
-
function
|
|
1871
|
+
function ja(e, t) {
|
|
1867
1872
|
return new e({
|
|
1868
1873
|
type: "string",
|
|
1869
1874
|
format: "emoji",
|
|
@@ -1872,7 +1877,7 @@ function xa(e, t) {
|
|
|
1872
1877
|
..._(t)
|
|
1873
1878
|
});
|
|
1874
1879
|
}
|
|
1875
|
-
function
|
|
1880
|
+
function ka(e, t) {
|
|
1876
1881
|
return new e({
|
|
1877
1882
|
type: "string",
|
|
1878
1883
|
format: "nanoid",
|
|
@@ -1881,7 +1886,7 @@ function _a(e, t) {
|
|
|
1881
1886
|
..._(t)
|
|
1882
1887
|
});
|
|
1883
1888
|
}
|
|
1884
|
-
function
|
|
1889
|
+
function $a(e, t) {
|
|
1885
1890
|
return new e({
|
|
1886
1891
|
type: "string",
|
|
1887
1892
|
format: "cuid",
|
|
@@ -1890,7 +1895,7 @@ function ba(e, t) {
|
|
|
1890
1895
|
..._(t)
|
|
1891
1896
|
});
|
|
1892
1897
|
}
|
|
1893
|
-
function
|
|
1898
|
+
function za(e, t) {
|
|
1894
1899
|
return new e({
|
|
1895
1900
|
type: "string",
|
|
1896
1901
|
format: "cuid2",
|
|
@@ -1899,7 +1904,7 @@ function wa(e, t) {
|
|
|
1899
1904
|
..._(t)
|
|
1900
1905
|
});
|
|
1901
1906
|
}
|
|
1902
|
-
function
|
|
1907
|
+
function Pa(e, t) {
|
|
1903
1908
|
return new e({
|
|
1904
1909
|
type: "string",
|
|
1905
1910
|
format: "ulid",
|
|
@@ -1908,7 +1913,7 @@ function ja(e, t) {
|
|
|
1908
1913
|
..._(t)
|
|
1909
1914
|
});
|
|
1910
1915
|
}
|
|
1911
|
-
function
|
|
1916
|
+
function Ea(e, t) {
|
|
1912
1917
|
return new e({
|
|
1913
1918
|
type: "string",
|
|
1914
1919
|
format: "xid",
|
|
@@ -1917,7 +1922,7 @@ function $a(e, t) {
|
|
|
1917
1922
|
..._(t)
|
|
1918
1923
|
});
|
|
1919
1924
|
}
|
|
1920
|
-
function
|
|
1925
|
+
function Sa(e, t) {
|
|
1921
1926
|
return new e({
|
|
1922
1927
|
type: "string",
|
|
1923
1928
|
format: "ksuid",
|
|
@@ -1926,7 +1931,7 @@ function ka(e, t) {
|
|
|
1926
1931
|
..._(t)
|
|
1927
1932
|
});
|
|
1928
1933
|
}
|
|
1929
|
-
function
|
|
1934
|
+
function Za(e, t) {
|
|
1930
1935
|
return new e({
|
|
1931
1936
|
type: "string",
|
|
1932
1937
|
format: "ipv4",
|
|
@@ -1935,7 +1940,7 @@ function za(e, t) {
|
|
|
1935
1940
|
..._(t)
|
|
1936
1941
|
});
|
|
1937
1942
|
}
|
|
1938
|
-
function
|
|
1943
|
+
function Ca(e, t) {
|
|
1939
1944
|
return new e({
|
|
1940
1945
|
type: "string",
|
|
1941
1946
|
format: "ipv6",
|
|
@@ -1944,7 +1949,7 @@ function Pa(e, t) {
|
|
|
1944
1949
|
..._(t)
|
|
1945
1950
|
});
|
|
1946
1951
|
}
|
|
1947
|
-
function
|
|
1952
|
+
function Ta(e, t) {
|
|
1948
1953
|
return new e({
|
|
1949
1954
|
type: "string",
|
|
1950
1955
|
format: "cidrv4",
|
|
@@ -1953,7 +1958,7 @@ function Ea(e, t) {
|
|
|
1953
1958
|
..._(t)
|
|
1954
1959
|
});
|
|
1955
1960
|
}
|
|
1956
|
-
function
|
|
1961
|
+
function Oa(e, t) {
|
|
1957
1962
|
return new e({
|
|
1958
1963
|
type: "string",
|
|
1959
1964
|
format: "cidrv6",
|
|
@@ -1962,7 +1967,7 @@ function Sa(e, t) {
|
|
|
1962
1967
|
..._(t)
|
|
1963
1968
|
});
|
|
1964
1969
|
}
|
|
1965
|
-
function
|
|
1970
|
+
function Na(e, t) {
|
|
1966
1971
|
return new e({
|
|
1967
1972
|
type: "string",
|
|
1968
1973
|
format: "base64",
|
|
@@ -1971,7 +1976,7 @@ function Za(e, t) {
|
|
|
1971
1976
|
..._(t)
|
|
1972
1977
|
});
|
|
1973
1978
|
}
|
|
1974
|
-
function
|
|
1979
|
+
function Aa(e, t) {
|
|
1975
1980
|
return new e({
|
|
1976
1981
|
type: "string",
|
|
1977
1982
|
format: "base64url",
|
|
@@ -1980,7 +1985,7 @@ function Ta(e, t) {
|
|
|
1980
1985
|
..._(t)
|
|
1981
1986
|
});
|
|
1982
1987
|
}
|
|
1983
|
-
function
|
|
1988
|
+
function Ia(e, t) {
|
|
1984
1989
|
return new e({
|
|
1985
1990
|
type: "string",
|
|
1986
1991
|
format: "e164",
|
|
@@ -1989,7 +1994,7 @@ function Ca(e, t) {
|
|
|
1989
1994
|
..._(t)
|
|
1990
1995
|
});
|
|
1991
1996
|
}
|
|
1992
|
-
function
|
|
1997
|
+
function Ra(e, t) {
|
|
1993
1998
|
return new e({
|
|
1994
1999
|
type: "string",
|
|
1995
2000
|
format: "jwt",
|
|
@@ -1998,7 +2003,7 @@ function Oa(e, t) {
|
|
|
1998
2003
|
..._(t)
|
|
1999
2004
|
});
|
|
2000
2005
|
}
|
|
2001
|
-
function
|
|
2006
|
+
function Da(e, t) {
|
|
2002
2007
|
return new e({
|
|
2003
2008
|
type: "string",
|
|
2004
2009
|
format: "datetime",
|
|
@@ -2009,7 +2014,7 @@ function Na(e, t) {
|
|
|
2009
2014
|
..._(t)
|
|
2010
2015
|
});
|
|
2011
2016
|
}
|
|
2012
|
-
function
|
|
2017
|
+
function Ma(e, t) {
|
|
2013
2018
|
return new e({
|
|
2014
2019
|
type: "string",
|
|
2015
2020
|
format: "date",
|
|
@@ -2017,7 +2022,7 @@ function Aa(e, t) {
|
|
|
2017
2022
|
..._(t)
|
|
2018
2023
|
});
|
|
2019
2024
|
}
|
|
2020
|
-
function
|
|
2025
|
+
function Fa(e, t) {
|
|
2021
2026
|
return new e({
|
|
2022
2027
|
type: "string",
|
|
2023
2028
|
format: "time",
|
|
@@ -2026,7 +2031,7 @@ function Ra(e, t) {
|
|
|
2026
2031
|
..._(t)
|
|
2027
2032
|
});
|
|
2028
2033
|
}
|
|
2029
|
-
function
|
|
2034
|
+
function qa(e, t) {
|
|
2030
2035
|
return new e({
|
|
2031
2036
|
type: "string",
|
|
2032
2037
|
format: "duration",
|
|
@@ -2034,103 +2039,103 @@ function Ia(e, t) {
|
|
|
2034
2039
|
..._(t)
|
|
2035
2040
|
});
|
|
2036
2041
|
}
|
|
2037
|
-
function
|
|
2042
|
+
function Ua(e) {
|
|
2038
2043
|
return new e({
|
|
2039
2044
|
type: "unknown"
|
|
2040
2045
|
});
|
|
2041
2046
|
}
|
|
2042
|
-
function
|
|
2047
|
+
function La(e, t) {
|
|
2043
2048
|
return new e({
|
|
2044
2049
|
type: "never",
|
|
2045
2050
|
..._(t)
|
|
2046
2051
|
});
|
|
2047
2052
|
}
|
|
2048
|
-
function
|
|
2049
|
-
return new
|
|
2053
|
+
function mr(e, t) {
|
|
2054
|
+
return new ps({
|
|
2050
2055
|
check: "max_length",
|
|
2051
2056
|
..._(t),
|
|
2052
2057
|
maximum: e
|
|
2053
2058
|
});
|
|
2054
2059
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return new
|
|
2060
|
+
function ve(e, t) {
|
|
2061
|
+
return new ms({
|
|
2057
2062
|
check: "min_length",
|
|
2058
2063
|
..._(t),
|
|
2059
2064
|
minimum: e
|
|
2060
2065
|
});
|
|
2061
2066
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return new
|
|
2067
|
+
function gr(e, t) {
|
|
2068
|
+
return new gs({
|
|
2064
2069
|
check: "length_equals",
|
|
2065
2070
|
..._(t),
|
|
2066
2071
|
length: e
|
|
2067
2072
|
});
|
|
2068
2073
|
}
|
|
2069
|
-
function
|
|
2070
|
-
return new
|
|
2074
|
+
function Qa(e, t) {
|
|
2075
|
+
return new vs({
|
|
2071
2076
|
check: "string_format",
|
|
2072
2077
|
format: "regex",
|
|
2073
2078
|
..._(t),
|
|
2074
2079
|
pattern: e
|
|
2075
2080
|
});
|
|
2076
2081
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return new
|
|
2082
|
+
function Ba(e) {
|
|
2083
|
+
return new ys({
|
|
2079
2084
|
check: "string_format",
|
|
2080
2085
|
format: "lowercase",
|
|
2081
2086
|
..._(e)
|
|
2082
2087
|
});
|
|
2083
2088
|
}
|
|
2084
|
-
function
|
|
2085
|
-
return new
|
|
2089
|
+
function Ha(e) {
|
|
2090
|
+
return new xs({
|
|
2086
2091
|
check: "string_format",
|
|
2087
2092
|
format: "uppercase",
|
|
2088
2093
|
..._(e)
|
|
2089
2094
|
});
|
|
2090
2095
|
}
|
|
2091
|
-
function
|
|
2092
|
-
return new
|
|
2096
|
+
function Ka(e, t) {
|
|
2097
|
+
return new _s({
|
|
2093
2098
|
check: "string_format",
|
|
2094
2099
|
format: "includes",
|
|
2095
2100
|
..._(t),
|
|
2096
2101
|
includes: e
|
|
2097
2102
|
});
|
|
2098
2103
|
}
|
|
2099
|
-
function
|
|
2100
|
-
return new
|
|
2104
|
+
function Wa(e, t) {
|
|
2105
|
+
return new bs({
|
|
2101
2106
|
check: "string_format",
|
|
2102
2107
|
format: "starts_with",
|
|
2103
2108
|
..._(t),
|
|
2104
2109
|
prefix: e
|
|
2105
2110
|
});
|
|
2106
2111
|
}
|
|
2107
|
-
function
|
|
2108
|
-
return new
|
|
2112
|
+
function Va(e, t) {
|
|
2113
|
+
return new ws({
|
|
2109
2114
|
check: "string_format",
|
|
2110
2115
|
format: "ends_with",
|
|
2111
2116
|
..._(t),
|
|
2112
2117
|
suffix: e
|
|
2113
2118
|
});
|
|
2114
2119
|
}
|
|
2115
|
-
function
|
|
2116
|
-
return new
|
|
2120
|
+
function ie(e) {
|
|
2121
|
+
return new js({
|
|
2117
2122
|
check: "overwrite",
|
|
2118
2123
|
tx: e
|
|
2119
2124
|
});
|
|
2120
2125
|
}
|
|
2121
|
-
function
|
|
2122
|
-
return
|
|
2126
|
+
function Ya(e) {
|
|
2127
|
+
return ie((t) => t.normalize(e));
|
|
2123
2128
|
}
|
|
2124
|
-
function
|
|
2125
|
-
return
|
|
2129
|
+
function Ga() {
|
|
2130
|
+
return ie((e) => e.trim());
|
|
2126
2131
|
}
|
|
2127
|
-
function
|
|
2128
|
-
return
|
|
2132
|
+
function Ja() {
|
|
2133
|
+
return ie((e) => e.toLowerCase());
|
|
2129
2134
|
}
|
|
2130
|
-
function
|
|
2131
|
-
return
|
|
2135
|
+
function Xa() {
|
|
2136
|
+
return ie((e) => e.toUpperCase());
|
|
2132
2137
|
}
|
|
2133
|
-
function
|
|
2138
|
+
function ei(e, t, r) {
|
|
2134
2139
|
return new e({
|
|
2135
2140
|
type: "array",
|
|
2136
2141
|
element: t,
|
|
@@ -2140,7 +2145,7 @@ function Ya(e, t, r) {
|
|
|
2140
2145
|
..._(r)
|
|
2141
2146
|
});
|
|
2142
2147
|
}
|
|
2143
|
-
function
|
|
2148
|
+
function ti(e, t, r) {
|
|
2144
2149
|
return new e({
|
|
2145
2150
|
type: "custom",
|
|
2146
2151
|
check: "custom",
|
|
@@ -2148,38 +2153,38 @@ function Ga(e, t, r) {
|
|
|
2148
2153
|
..._(r)
|
|
2149
2154
|
});
|
|
2150
2155
|
}
|
|
2151
|
-
const
|
|
2152
|
-
|
|
2156
|
+
const ri = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
2157
|
+
Rs.init(e, t), Z.init(e, t);
|
|
2153
2158
|
});
|
|
2154
|
-
function
|
|
2155
|
-
return
|
|
2159
|
+
function ni(e) {
|
|
2160
|
+
return Da(ri, e);
|
|
2156
2161
|
}
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2162
|
+
const oi = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2163
|
+
Ds.init(e, t), Z.init(e, t);
|
|
2159
2164
|
});
|
|
2160
|
-
function
|
|
2161
|
-
return
|
|
2165
|
+
function si(e) {
|
|
2166
|
+
return Ma(oi, e);
|
|
2162
2167
|
}
|
|
2163
|
-
const
|
|
2164
|
-
|
|
2168
|
+
const ai = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
2169
|
+
Ms.init(e, t), Z.init(e, t);
|
|
2165
2170
|
});
|
|
2166
|
-
function
|
|
2167
|
-
return
|
|
2171
|
+
function ii(e) {
|
|
2172
|
+
return Fa(ai, e);
|
|
2168
2173
|
}
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2174
|
+
const ci = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
2175
|
+
Fs.init(e, t), Z.init(e, t);
|
|
2171
2176
|
});
|
|
2172
|
-
function
|
|
2173
|
-
return
|
|
2177
|
+
function ui(e) {
|
|
2178
|
+
return qa(ci, e);
|
|
2174
2179
|
}
|
|
2175
|
-
const
|
|
2176
|
-
|
|
2180
|
+
const li = (e, t) => {
|
|
2181
|
+
ir.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2177
2182
|
format: {
|
|
2178
|
-
value: (r) =>
|
|
2183
|
+
value: (r) => Mo(e, r)
|
|
2179
2184
|
// enumerable: false,
|
|
2180
2185
|
},
|
|
2181
2186
|
flatten: {
|
|
2182
|
-
value: (r) =>
|
|
2187
|
+
value: (r) => Do(e, r)
|
|
2183
2188
|
// enumerable: false,
|
|
2184
2189
|
},
|
|
2185
2190
|
addIssue: {
|
|
@@ -2197,9 +2202,9 @@ const ai = (e, t) => {
|
|
|
2197
2202
|
// enumerable: false,
|
|
2198
2203
|
}
|
|
2199
2204
|
});
|
|
2200
|
-
}, we = c("ZodError",
|
|
2205
|
+
}, we = c("ZodError", li, {
|
|
2201
2206
|
Parent: Error
|
|
2202
|
-
}),
|
|
2207
|
+
}), di = /* @__PURE__ */ Fo(we), fi = /* @__PURE__ */ qo(we), hi = /* @__PURE__ */ ur(we), pi = /* @__PURE__ */ lr(we), O = /* @__PURE__ */ c("ZodType", (e, t) => (T.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
|
|
2203
2208
|
{
|
|
2204
2209
|
...t,
|
|
2205
2210
|
checks: [
|
|
@@ -2208,152 +2213,152 @@ const ai = (e, t) => {
|
|
|
2208
2213
|
]
|
|
2209
2214
|
}
|
|
2210
2215
|
// { parent: true }
|
|
2211
|
-
), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) =>
|
|
2216
|
+
), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => di(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => hi(e, r, n), e.parseAsync = async (r, n) => fi(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => pi(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(sc(r, n)), e.superRefine = (r) => e.check(ac(r)), e.overwrite = (r) => e.check(ie(r)), e.optional = () => kt(e), e.nullable = () => $t(e), e.nullish = () => kt($t(e)), e.nonoptional = (r) => Gi(e, r), e.array = () => Ri(e), e.or = (r) => qi([e, r]), e.and = (r) => Li(e, r), e.transform = (r) => zt(e, Bi(r)), e.default = (r) => Wi(e, r), e.prefault = (r) => Yi(e, r), e.catch = (r) => Xi(e, r), e.pipe = (r) => zt(e, r), e.readonly = () => rc(e), e.describe = (r) => {
|
|
2212
2217
|
const n = e.clone();
|
|
2213
|
-
return
|
|
2218
|
+
return fe.add(n, { description: r }), n;
|
|
2214
2219
|
}, Object.defineProperty(e, "description", {
|
|
2215
2220
|
get() {
|
|
2216
|
-
return
|
|
2221
|
+
return fe.get(e)?.description;
|
|
2217
2222
|
},
|
|
2218
2223
|
configurable: !0
|
|
2219
2224
|
}), e.meta = (...r) => {
|
|
2220
2225
|
if (r.length === 0)
|
|
2221
|
-
return
|
|
2226
|
+
return fe.get(e);
|
|
2222
2227
|
const n = e.clone();
|
|
2223
|
-
return
|
|
2224
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2225
|
-
|
|
2228
|
+
return fe.add(n, r[0]), n;
|
|
2229
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), vr = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
2230
|
+
He.init(e, t), O.init(e, t);
|
|
2226
2231
|
const r = e._zod.bag;
|
|
2227
|
-
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(
|
|
2228
|
-
}),
|
|
2229
|
-
|
|
2232
|
+
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Qa(...n)), e.includes = (...n) => e.check(Ka(...n)), e.startsWith = (...n) => e.check(Wa(...n)), e.endsWith = (...n) => e.check(Va(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(mr(...n)), e.length = (...n) => e.check(gr(...n)), e.nonempty = (...n) => e.check(ve(1, ...n)), e.lowercase = (n) => e.check(Ba(n)), e.uppercase = (n) => e.check(Ha(n)), e.trim = () => e.check(Ga()), e.normalize = (...n) => e.check(Ya(...n)), e.toLowerCase = () => e.check(Ja()), e.toUpperCase = () => e.check(Xa());
|
|
2233
|
+
}), mi = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
2234
|
+
He.init(e, t), vr.init(e, t), e.email = (r) => e.check(va(gi, r)), e.url = (r) => e.check(wa(vi, r)), e.jwt = (r) => e.check(Ra(Ti, r)), e.emoji = (r) => e.check(ja(yi, r)), e.guid = (r) => e.check(_t(wt, r)), e.uuid = (r) => e.check(ya(he, r)), e.uuidv4 = (r) => e.check(xa(he, r)), e.uuidv6 = (r) => e.check(_a(he, r)), e.uuidv7 = (r) => e.check(ba(he, r)), e.nanoid = (r) => e.check(ka(xi, r)), e.guid = (r) => e.check(_t(wt, r)), e.cuid = (r) => e.check($a(_i, r)), e.cuid2 = (r) => e.check(za(bi, r)), e.ulid = (r) => e.check(Pa(wi, r)), e.base64 = (r) => e.check(Na(Si, r)), e.base64url = (r) => e.check(Aa(Zi, r)), e.xid = (r) => e.check(Ea(ji, r)), e.ksuid = (r) => e.check(Sa(ki, r)), e.ipv4 = (r) => e.check(Za($i, r)), e.ipv6 = (r) => e.check(Ca(zi, r)), e.cidrv4 = (r) => e.check(Ta(Pi, r)), e.cidrv6 = (r) => e.check(Oa(Ei, r)), e.e164 = (r) => e.check(Ia(Ci, r)), e.datetime = (r) => e.check(ni(r)), e.date = (r) => e.check(si(r)), e.time = (r) => e.check(ii(r)), e.duration = (r) => e.check(ui(r));
|
|
2230
2235
|
});
|
|
2231
|
-
function
|
|
2232
|
-
return
|
|
2233
|
-
}
|
|
2234
|
-
const
|
|
2235
|
-
E.init(e, t),
|
|
2236
|
-
}),
|
|
2237
|
-
|
|
2238
|
-
}),
|
|
2239
|
-
|
|
2240
|
-
}),
|
|
2241
|
-
|
|
2242
|
-
}),
|
|
2243
|
-
|
|
2244
|
-
}),
|
|
2245
|
-
|
|
2246
|
-
}),
|
|
2247
|
-
|
|
2248
|
-
}),
|
|
2249
|
-
|
|
2250
|
-
}),
|
|
2251
|
-
|
|
2252
|
-
}),
|
|
2253
|
-
|
|
2254
|
-
}),
|
|
2255
|
-
|
|
2256
|
-
}),
|
|
2257
|
-
|
|
2258
|
-
}),
|
|
2259
|
-
|
|
2260
|
-
}),
|
|
2261
|
-
|
|
2262
|
-
}),
|
|
2263
|
-
|
|
2264
|
-
}),
|
|
2265
|
-
|
|
2266
|
-
}),
|
|
2267
|
-
|
|
2268
|
-
}),
|
|
2269
|
-
|
|
2270
|
-
}),
|
|
2271
|
-
|
|
2272
|
-
}),
|
|
2273
|
-
|
|
2274
|
-
}),
|
|
2275
|
-
|
|
2236
|
+
function bt(e) {
|
|
2237
|
+
return ga(mi, e);
|
|
2238
|
+
}
|
|
2239
|
+
const Z = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
2240
|
+
E.init(e, t), vr.init(e, t);
|
|
2241
|
+
}), gi = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
2242
|
+
Es.init(e, t), Z.init(e, t);
|
|
2243
|
+
}), wt = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
2244
|
+
zs.init(e, t), Z.init(e, t);
|
|
2245
|
+
}), he = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2246
|
+
Ps.init(e, t), Z.init(e, t);
|
|
2247
|
+
}), vi = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2248
|
+
Ss.init(e, t), Z.init(e, t);
|
|
2249
|
+
}), yi = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2250
|
+
Zs.init(e, t), Z.init(e, t);
|
|
2251
|
+
}), xi = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2252
|
+
Cs.init(e, t), Z.init(e, t);
|
|
2253
|
+
}), _i = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2254
|
+
Ts.init(e, t), Z.init(e, t);
|
|
2255
|
+
}), bi = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2256
|
+
Os.init(e, t), Z.init(e, t);
|
|
2257
|
+
}), wi = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2258
|
+
Ns.init(e, t), Z.init(e, t);
|
|
2259
|
+
}), ji = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2260
|
+
As.init(e, t), Z.init(e, t);
|
|
2261
|
+
}), ki = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
2262
|
+
Is.init(e, t), Z.init(e, t);
|
|
2263
|
+
}), $i = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
2264
|
+
qs.init(e, t), Z.init(e, t);
|
|
2265
|
+
}), zi = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
2266
|
+
Us.init(e, t), Z.init(e, t);
|
|
2267
|
+
}), Pi = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
2268
|
+
Ls.init(e, t), Z.init(e, t);
|
|
2269
|
+
}), Ei = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2270
|
+
Qs.init(e, t), Z.init(e, t);
|
|
2271
|
+
}), Si = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
2272
|
+
Bs.init(e, t), Z.init(e, t);
|
|
2273
|
+
}), Zi = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2274
|
+
Ks.init(e, t), Z.init(e, t);
|
|
2275
|
+
}), Ci = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
2276
|
+
Ws.init(e, t), Z.init(e, t);
|
|
2277
|
+
}), Ti = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
2278
|
+
Ys.init(e, t), Z.init(e, t);
|
|
2279
|
+
}), Oi = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
2280
|
+
Gs.init(e, t), O.init(e, t);
|
|
2276
2281
|
});
|
|
2277
|
-
function
|
|
2278
|
-
return
|
|
2282
|
+
function jt() {
|
|
2283
|
+
return Ua(Oi);
|
|
2279
2284
|
}
|
|
2280
|
-
const
|
|
2281
|
-
|
|
2285
|
+
const Ni = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2286
|
+
Js.init(e, t), O.init(e, t);
|
|
2282
2287
|
});
|
|
2283
|
-
function
|
|
2284
|
-
return
|
|
2288
|
+
function Ai(e) {
|
|
2289
|
+
return La(Ni, e);
|
|
2285
2290
|
}
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2291
|
+
const Ii = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
2292
|
+
Xs.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(ve(r, n)), e.nonempty = (r) => e.check(ve(1, r)), e.max = (r, n) => e.check(mr(r, n)), e.length = (r, n) => e.check(gr(r, n)), e.unwrap = () => e.element;
|
|
2288
2293
|
});
|
|
2289
|
-
function
|
|
2290
|
-
return
|
|
2294
|
+
function Ri(e, t) {
|
|
2295
|
+
return ei(Ii, e, t);
|
|
2291
2296
|
}
|
|
2292
|
-
const
|
|
2293
|
-
|
|
2297
|
+
const Di = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
2298
|
+
ea.init(e, t), O.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => yr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: jt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: jt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ai() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => No(e, r), e.merge = (r) => Ao(e, r), e.pick = (r) => To(e, r), e.omit = (r) => Oo(e, r), e.partial = (...r) => Io(xr, e, r[0]), e.required = (...r) => Ro(_r, e, r[0]);
|
|
2294
2299
|
});
|
|
2295
|
-
function
|
|
2300
|
+
function Mi(e, t) {
|
|
2296
2301
|
const r = {
|
|
2297
2302
|
type: "object",
|
|
2298
2303
|
get shape() {
|
|
2299
|
-
return
|
|
2304
|
+
return Le(this, "shape", { ...e }), this.shape;
|
|
2300
2305
|
},
|
|
2301
2306
|
..._(t)
|
|
2302
2307
|
};
|
|
2303
|
-
return new
|
|
2308
|
+
return new Di(r);
|
|
2304
2309
|
}
|
|
2305
|
-
const
|
|
2306
|
-
|
|
2310
|
+
const Fi = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
2311
|
+
ta.init(e, t), O.init(e, t), e.options = t.options;
|
|
2307
2312
|
});
|
|
2308
|
-
function
|
|
2309
|
-
return new
|
|
2313
|
+
function qi(e, t) {
|
|
2314
|
+
return new Fi({
|
|
2310
2315
|
type: "union",
|
|
2311
2316
|
options: e,
|
|
2312
2317
|
..._(t)
|
|
2313
2318
|
});
|
|
2314
2319
|
}
|
|
2315
|
-
const
|
|
2316
|
-
|
|
2320
|
+
const Ui = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2321
|
+
ra.init(e, t), O.init(e, t);
|
|
2317
2322
|
});
|
|
2318
|
-
function
|
|
2319
|
-
return new
|
|
2323
|
+
function Li(e, t) {
|
|
2324
|
+
return new Ui({
|
|
2320
2325
|
type: "intersection",
|
|
2321
2326
|
left: e,
|
|
2322
2327
|
right: t
|
|
2323
2328
|
});
|
|
2324
2329
|
}
|
|
2325
2330
|
const Oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
2326
|
-
|
|
2331
|
+
na.init(e, t), O.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2327
2332
|
const r = new Set(Object.keys(t.entries));
|
|
2328
2333
|
e.extract = (n, o) => {
|
|
2329
|
-
const
|
|
2334
|
+
const a = {};
|
|
2330
2335
|
for (const i of n)
|
|
2331
2336
|
if (r.has(i))
|
|
2332
|
-
|
|
2337
|
+
a[i] = t.entries[i];
|
|
2333
2338
|
else
|
|
2334
2339
|
throw new Error(`Key ${i} not found in enum`);
|
|
2335
2340
|
return new Oe({
|
|
2336
2341
|
...t,
|
|
2337
2342
|
checks: [],
|
|
2338
2343
|
..._(o),
|
|
2339
|
-
entries:
|
|
2344
|
+
entries: a
|
|
2340
2345
|
});
|
|
2341
2346
|
}, e.exclude = (n, o) => {
|
|
2342
|
-
const
|
|
2347
|
+
const a = { ...t.entries };
|
|
2343
2348
|
for (const i of n)
|
|
2344
2349
|
if (r.has(i))
|
|
2345
|
-
delete
|
|
2350
|
+
delete a[i];
|
|
2346
2351
|
else
|
|
2347
2352
|
throw new Error(`Key ${i} not found in enum`);
|
|
2348
2353
|
return new Oe({
|
|
2349
2354
|
...t,
|
|
2350
2355
|
checks: [],
|
|
2351
2356
|
..._(o),
|
|
2352
|
-
entries:
|
|
2357
|
+
entries: a
|
|
2353
2358
|
});
|
|
2354
2359
|
};
|
|
2355
2360
|
});
|
|
2356
|
-
function
|
|
2361
|
+
function yr(e, t) {
|
|
2357
2362
|
const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
|
|
2358
2363
|
return new Oe({
|
|
2359
2364
|
type: "enum",
|
|
@@ -2361,49 +2366,49 @@ function pr(e, t) {
|
|
|
2361
2366
|
..._(t)
|
|
2362
2367
|
});
|
|
2363
2368
|
}
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2366
|
-
r.addIssue = (
|
|
2367
|
-
if (typeof
|
|
2368
|
-
r.issues.push(
|
|
2369
|
+
const Qi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
2370
|
+
oa.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
|
|
2371
|
+
r.addIssue = (a) => {
|
|
2372
|
+
if (typeof a == "string")
|
|
2373
|
+
r.issues.push(ae(a, r.value, t));
|
|
2369
2374
|
else {
|
|
2370
|
-
const i =
|
|
2371
|
-
i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), r.issues.push(
|
|
2375
|
+
const i = a;
|
|
2376
|
+
i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), r.issues.push(ae(i));
|
|
2372
2377
|
}
|
|
2373
2378
|
};
|
|
2374
2379
|
const o = t.transform(r.value, r);
|
|
2375
|
-
return o instanceof Promise ? o.then((
|
|
2380
|
+
return o instanceof Promise ? o.then((a) => (r.value = a, r)) : (r.value = o, r);
|
|
2376
2381
|
};
|
|
2377
2382
|
});
|
|
2378
|
-
function
|
|
2379
|
-
return new
|
|
2383
|
+
function Bi(e) {
|
|
2384
|
+
return new Qi({
|
|
2380
2385
|
type: "transform",
|
|
2381
2386
|
transform: e
|
|
2382
2387
|
});
|
|
2383
2388
|
}
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2389
|
+
const xr = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
2390
|
+
sa.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2386
2391
|
});
|
|
2387
|
-
function
|
|
2388
|
-
return new
|
|
2392
|
+
function kt(e) {
|
|
2393
|
+
return new xr({
|
|
2389
2394
|
type: "optional",
|
|
2390
2395
|
innerType: e
|
|
2391
2396
|
});
|
|
2392
2397
|
}
|
|
2393
|
-
const
|
|
2394
|
-
|
|
2398
|
+
const Hi = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
2399
|
+
aa.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2395
2400
|
});
|
|
2396
|
-
function
|
|
2397
|
-
return new
|
|
2401
|
+
function $t(e) {
|
|
2402
|
+
return new Hi({
|
|
2398
2403
|
type: "nullable",
|
|
2399
2404
|
innerType: e
|
|
2400
2405
|
});
|
|
2401
2406
|
}
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2407
|
+
const Ki = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2408
|
+
ia.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2404
2409
|
});
|
|
2405
|
-
function
|
|
2406
|
-
return new
|
|
2410
|
+
function Wi(e, t) {
|
|
2411
|
+
return new Ki({
|
|
2407
2412
|
type: "default",
|
|
2408
2413
|
innerType: e,
|
|
2409
2414
|
get defaultValue() {
|
|
@@ -2411,11 +2416,11 @@ function Qi(e, t) {
|
|
|
2411
2416
|
}
|
|
2412
2417
|
});
|
|
2413
2418
|
}
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2419
|
+
const Vi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2420
|
+
ca.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2416
2421
|
});
|
|
2417
|
-
function
|
|
2418
|
-
return new
|
|
2422
|
+
function Yi(e, t) {
|
|
2423
|
+
return new Vi({
|
|
2419
2424
|
type: "prefault",
|
|
2420
2425
|
innerType: e,
|
|
2421
2426
|
get defaultValue() {
|
|
@@ -2423,79 +2428,79 @@ function Hi(e, t) {
|
|
|
2423
2428
|
}
|
|
2424
2429
|
});
|
|
2425
2430
|
}
|
|
2426
|
-
const
|
|
2427
|
-
|
|
2431
|
+
const _r = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2432
|
+
ua.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2428
2433
|
});
|
|
2429
|
-
function
|
|
2430
|
-
return new
|
|
2434
|
+
function Gi(e, t) {
|
|
2435
|
+
return new _r({
|
|
2431
2436
|
type: "nonoptional",
|
|
2432
2437
|
innerType: e,
|
|
2433
2438
|
..._(t)
|
|
2434
2439
|
});
|
|
2435
2440
|
}
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2441
|
+
const Ji = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2442
|
+
la.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2438
2443
|
});
|
|
2439
|
-
function
|
|
2440
|
-
return new
|
|
2444
|
+
function Xi(e, t) {
|
|
2445
|
+
return new Ji({
|
|
2441
2446
|
type: "catch",
|
|
2442
2447
|
innerType: e,
|
|
2443
2448
|
catchValue: typeof t == "function" ? t : () => t
|
|
2444
2449
|
});
|
|
2445
2450
|
}
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2451
|
+
const ec = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2452
|
+
da.init(e, t), O.init(e, t), e.in = t.in, e.out = t.out;
|
|
2448
2453
|
});
|
|
2449
|
-
function
|
|
2450
|
-
return new
|
|
2454
|
+
function zt(e, t) {
|
|
2455
|
+
return new ec({
|
|
2451
2456
|
type: "pipe",
|
|
2452
2457
|
in: e,
|
|
2453
2458
|
out: t
|
|
2454
2459
|
// ...util.normalizeParams(params),
|
|
2455
2460
|
});
|
|
2456
2461
|
}
|
|
2457
|
-
const
|
|
2458
|
-
|
|
2462
|
+
const tc = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2463
|
+
fa.init(e, t), O.init(e, t);
|
|
2459
2464
|
});
|
|
2460
|
-
function
|
|
2461
|
-
return new
|
|
2465
|
+
function rc(e) {
|
|
2466
|
+
return new tc({
|
|
2462
2467
|
type: "readonly",
|
|
2463
2468
|
innerType: e
|
|
2464
2469
|
});
|
|
2465
2470
|
}
|
|
2466
|
-
const
|
|
2467
|
-
|
|
2471
|
+
const nc = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2472
|
+
ha.init(e, t), O.init(e, t);
|
|
2468
2473
|
});
|
|
2469
|
-
function
|
|
2474
|
+
function oc(e, t) {
|
|
2470
2475
|
const r = new U({
|
|
2471
2476
|
check: "custom",
|
|
2472
2477
|
..._(t)
|
|
2473
2478
|
});
|
|
2474
2479
|
return r._zod.check = e, r;
|
|
2475
2480
|
}
|
|
2476
|
-
function
|
|
2477
|
-
return
|
|
2481
|
+
function sc(e, t = {}) {
|
|
2482
|
+
return ti(nc, e, t);
|
|
2478
2483
|
}
|
|
2479
|
-
function
|
|
2480
|
-
const r =
|
|
2484
|
+
function ac(e, t) {
|
|
2485
|
+
const r = oc((n) => (n.addIssue = (o) => {
|
|
2481
2486
|
if (typeof o == "string")
|
|
2482
|
-
n.issues.push(
|
|
2487
|
+
n.issues.push(ae(o, n.value, r._zod.def));
|
|
2483
2488
|
else {
|
|
2484
|
-
const
|
|
2485
|
-
|
|
2489
|
+
const a = o;
|
|
2490
|
+
a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(ae(a));
|
|
2486
2491
|
}
|
|
2487
2492
|
}, e(n.value, n)), t);
|
|
2488
2493
|
return r;
|
|
2489
2494
|
}
|
|
2490
|
-
const
|
|
2491
|
-
buildId:
|
|
2492
|
-
timestamp:
|
|
2493
|
-
status:
|
|
2494
|
-
}),
|
|
2495
|
+
const ic = Mi({
|
|
2496
|
+
buildId: bt(),
|
|
2497
|
+
timestamp: bt(),
|
|
2498
|
+
status: yr(["in-progress", "success", "failed"])
|
|
2499
|
+
}), cc = ({
|
|
2495
2500
|
buildId: e,
|
|
2496
2501
|
endpoint: t = "/__zuplo/docs"
|
|
2497
2502
|
}) => {
|
|
2498
|
-
const r =
|
|
2503
|
+
const r = mn({
|
|
2499
2504
|
queryKey: ["zuplo-build-check", e, t],
|
|
2500
2505
|
refetchInterval: 3e3,
|
|
2501
2506
|
enabled: typeof e < "u" && !1,
|
|
@@ -2503,22 +2508,22 @@ const nc = Ai({
|
|
|
2503
2508
|
queryFn: () => fetch(t, { signal: AbortSignal.timeout(2e3) }).then((o) => {
|
|
2504
2509
|
if (!o.ok) throw new Error("Failed to fetch build status");
|
|
2505
2510
|
return o.json();
|
|
2506
|
-
}).then((o) =>
|
|
2511
|
+
}).then((o) => ic.parse(o))
|
|
2507
2512
|
});
|
|
2508
2513
|
if (r.isError || !r.data || r.data.buildId === e)
|
|
2509
2514
|
return null;
|
|
2510
2515
|
const n = r.data.status === "success";
|
|
2511
|
-
return /* @__PURE__ */
|
|
2512
|
-
n ? /* @__PURE__ */
|
|
2513
|
-
/* @__PURE__ */
|
|
2514
|
-
/* @__PURE__ */
|
|
2515
|
-
] }) : /* @__PURE__ */
|
|
2516
|
-
/* @__PURE__ */
|
|
2517
|
-
/* @__PURE__ */
|
|
2516
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
|
|
2517
|
+
n ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2518
|
+
/* @__PURE__ */ s.jsx(Fn, { size: 16 }),
|
|
2519
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2520
|
+
] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2521
|
+
/* @__PURE__ */ s.jsx(qn, { size: 16, className: "animate-spin" }),
|
|
2522
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2518
2523
|
] }),
|
|
2519
|
-
/* @__PURE__ */
|
|
2520
|
-
/* @__PURE__ */
|
|
2521
|
-
|
|
2524
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
2525
|
+
/* @__PURE__ */ s.jsx(
|
|
2526
|
+
Wt,
|
|
2522
2527
|
{
|
|
2523
2528
|
variant: "outline",
|
|
2524
2529
|
size: "sm",
|
|
@@ -2530,25 +2535,25 @@ const nc = Ai({
|
|
|
2530
2535
|
}
|
|
2531
2536
|
)
|
|
2532
2537
|
] });
|
|
2533
|
-
},
|
|
2534
|
-
const e =
|
|
2538
|
+
}, uc = () => {
|
|
2539
|
+
const e = xe(), t = K(e.pathname);
|
|
2535
2540
|
F(() => {
|
|
2536
2541
|
const r = t.current !== e.pathname, n = e.hash !== "";
|
|
2537
2542
|
r && !n && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2538
2543
|
}, [e.pathname, e.hash]);
|
|
2539
|
-
},
|
|
2544
|
+
}, lc = ({
|
|
2540
2545
|
icon: e
|
|
2541
|
-
}) => typeof e == "string" ? /* @__PURE__ */
|
|
2546
|
+
}) => typeof e == "string" ? /* @__PURE__ */ s.jsx(
|
|
2542
2547
|
"img",
|
|
2543
2548
|
{
|
|
2544
2549
|
src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
|
|
2545
2550
|
className: "size-5",
|
|
2546
2551
|
alt: e
|
|
2547
2552
|
}
|
|
2548
|
-
) : e,
|
|
2549
|
-
const { site: e } =
|
|
2550
|
-
return t ? /* @__PURE__ */
|
|
2551
|
-
/* @__PURE__ */
|
|
2553
|
+
) : e, dc = (e) => /^https?:/.test(e), fc = () => {
|
|
2554
|
+
const { site: e } = eu(), t = e?.footer;
|
|
2555
|
+
return t ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2556
|
+
/* @__PURE__ */ s.jsxs(
|
|
2552
2557
|
"div",
|
|
2553
2558
|
{
|
|
2554
2559
|
className: N("flex flex-row gap-8", {
|
|
@@ -2557,13 +2562,13 @@ const nc = Ai({
|
|
|
2557
2562
|
"justify-end": t.position === "end"
|
|
2558
2563
|
}),
|
|
2559
2564
|
children: [
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
t.columns && /* @__PURE__ */
|
|
2565
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "footer-before" }),
|
|
2566
|
+
t.columns && /* @__PURE__ */ s.jsx(
|
|
2562
2567
|
"div",
|
|
2563
2568
|
{
|
|
2564
2569
|
className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
|
|
2565
2570
|
style: { "--columns": t.columns.length },
|
|
2566
|
-
children: t.columns.map((r) => /* @__PURE__ */
|
|
2571
|
+
children: t.columns.map((r) => /* @__PURE__ */ s.jsxs(
|
|
2567
2572
|
"div",
|
|
2568
2573
|
{
|
|
2569
2574
|
className: N({
|
|
@@ -2572,10 +2577,10 @@ const nc = Ai({
|
|
|
2572
2577
|
"justify-self-end": r.position === "end"
|
|
2573
2578
|
}),
|
|
2574
2579
|
children: [
|
|
2575
|
-
/* @__PURE__ */
|
|
2576
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: r.title }),
|
|
2581
|
+
/* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: r.links.map((n) => {
|
|
2577
2582
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2578
|
-
return /* @__PURE__ */
|
|
2583
|
+
return /* @__PURE__ */ s.jsx("li", { children: dc(n.href) ? /* @__PURE__ */ s.jsxs(
|
|
2579
2584
|
"a",
|
|
2580
2585
|
{
|
|
2581
2586
|
href: n.href,
|
|
@@ -2583,11 +2588,11 @@ const nc = Ai({
|
|
|
2583
2588
|
rel: "noopener noreferrer",
|
|
2584
2589
|
className: o,
|
|
2585
2590
|
children: [
|
|
2586
|
-
/* @__PURE__ */
|
|
2587
|
-
/* @__PURE__ */
|
|
2591
|
+
/* @__PURE__ */ s.jsx("span", { children: n.label }),
|
|
2592
|
+
/* @__PURE__ */ s.jsx(Un, { size: 12 })
|
|
2588
2593
|
]
|
|
2589
2594
|
}
|
|
2590
|
-
) : /* @__PURE__ */
|
|
2595
|
+
) : /* @__PURE__ */ s.jsx(kn, { to: n.href, className: o, children: /* @__PURE__ */ s.jsx("span", { children: n.label }) }) }, n.href + n.label);
|
|
2591
2596
|
}) })
|
|
2592
2597
|
]
|
|
2593
2598
|
},
|
|
@@ -2595,11 +2600,11 @@ const nc = Ai({
|
|
|
2595
2600
|
))
|
|
2596
2601
|
}
|
|
2597
2602
|
),
|
|
2598
|
-
/* @__PURE__ */
|
|
2603
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "footer-after" })
|
|
2599
2604
|
]
|
|
2600
2605
|
}
|
|
2601
2606
|
),
|
|
2602
|
-
/* @__PURE__ */
|
|
2607
|
+
/* @__PURE__ */ s.jsxs(
|
|
2603
2608
|
"div",
|
|
2604
2609
|
{
|
|
2605
2610
|
className: N(
|
|
@@ -2607,8 +2612,8 @@ const nc = Ai({
|
|
|
2607
2612
|
t.columns && "border-t mt-8 pt-8"
|
|
2608
2613
|
),
|
|
2609
2614
|
children: [
|
|
2610
|
-
t.logo && /* @__PURE__ */
|
|
2611
|
-
/* @__PURE__ */
|
|
2615
|
+
t.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2616
|
+
/* @__PURE__ */ s.jsx(
|
|
2612
2617
|
"img",
|
|
2613
2618
|
{
|
|
2614
2619
|
src: t.logo.src.light,
|
|
@@ -2617,7 +2622,7 @@ const nc = Ai({
|
|
|
2617
2622
|
style: { width: t.logo.width }
|
|
2618
2623
|
}
|
|
2619
2624
|
),
|
|
2620
|
-
/* @__PURE__ */
|
|
2625
|
+
/* @__PURE__ */ s.jsx(
|
|
2621
2626
|
"img",
|
|
2622
2627
|
{
|
|
2623
2628
|
src: t.logo.src.dark,
|
|
@@ -2627,8 +2632,8 @@ const nc = Ai({
|
|
|
2627
2632
|
}
|
|
2628
2633
|
)
|
|
2629
2634
|
] }),
|
|
2630
|
-
t.copyright && /* @__PURE__ */
|
|
2631
|
-
/* @__PURE__ */
|
|
2635
|
+
t.copyright && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
|
|
2636
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((r) => /* @__PURE__ */ s.jsxs(
|
|
2632
2637
|
"a",
|
|
2633
2638
|
{
|
|
2634
2639
|
href: r.href,
|
|
@@ -2636,7 +2641,7 @@ const nc = Ai({
|
|
|
2636
2641
|
rel: "noopener noreferrer",
|
|
2637
2642
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2638
2643
|
children: [
|
|
2639
|
-
/* @__PURE__ */
|
|
2644
|
+
/* @__PURE__ */ s.jsx(lc, { icon: r.icon }),
|
|
2640
2645
|
r.label
|
|
2641
2646
|
]
|
|
2642
2647
|
},
|
|
@@ -2647,11 +2652,11 @@ const nc = Ai({
|
|
|
2647
2652
|
)
|
|
2648
2653
|
] }) }) : null;
|
|
2649
2654
|
};
|
|
2650
|
-
function
|
|
2655
|
+
function Ne({
|
|
2651
2656
|
className: e,
|
|
2652
2657
|
...t
|
|
2653
2658
|
}) {
|
|
2654
|
-
return /* @__PURE__ */
|
|
2659
|
+
return /* @__PURE__ */ s.jsx(
|
|
2655
2660
|
"div",
|
|
2656
2661
|
{
|
|
2657
2662
|
className: N("animate-pulse rounded-md bg-muted", e),
|
|
@@ -2659,18 +2664,18 @@ function uc({
|
|
|
2659
2664
|
}
|
|
2660
2665
|
);
|
|
2661
2666
|
}
|
|
2662
|
-
const
|
|
2667
|
+
const Pt = {
|
|
2663
2668
|
info: "bg-blue-500",
|
|
2664
2669
|
note: "bg-gray-500",
|
|
2665
2670
|
tip: "bg-green-600",
|
|
2666
2671
|
caution: "bg-orange-500",
|
|
2667
2672
|
danger: "bg-rose-500"
|
|
2668
|
-
},
|
|
2673
|
+
}, hc = () => {
|
|
2669
2674
|
const { site: e } = M(), [t, r] = G(!0);
|
|
2670
2675
|
if (!e?.banner || !t)
|
|
2671
|
-
return /* @__PURE__ */
|
|
2672
|
-
const n = e.banner.color && e.banner.color in
|
|
2673
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
2677
|
+
const n = e.banner.color && e.banner.color in Pt ? Pt[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
|
|
2678
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2674
2679
|
"div",
|
|
2675
2680
|
{
|
|
2676
2681
|
className: N(
|
|
@@ -2680,20 +2685,20 @@ const kt = {
|
|
|
2680
2685
|
"data-pagefind-ignore": "all",
|
|
2681
2686
|
style: o,
|
|
2682
2687
|
children: [
|
|
2683
|
-
/* @__PURE__ */
|
|
2684
|
-
e.banner.dismissible && /* @__PURE__ */
|
|
2688
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
2689
|
+
e.banner.dismissible && /* @__PURE__ */ s.jsx(
|
|
2685
2690
|
"button",
|
|
2686
2691
|
{
|
|
2687
2692
|
type: "button",
|
|
2688
2693
|
className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
2689
2694
|
onClick: () => r(!1),
|
|
2690
|
-
children: /* @__PURE__ */
|
|
2695
|
+
children: /* @__PURE__ */ s.jsx(Ln, { size: 16 })
|
|
2691
2696
|
}
|
|
2692
2697
|
)
|
|
2693
2698
|
]
|
|
2694
2699
|
}
|
|
2695
2700
|
);
|
|
2696
|
-
},
|
|
2701
|
+
}, br = (e) => /* @__PURE__ */ s.jsxs(
|
|
2697
2702
|
"svg",
|
|
2698
2703
|
{
|
|
2699
2704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2701,7 +2706,7 @@ const kt = {
|
|
|
2701
2706
|
fill: "none",
|
|
2702
2707
|
...e,
|
|
2703
2708
|
children: [
|
|
2704
|
-
/* @__PURE__ */
|
|
2709
|
+
/* @__PURE__ */ s.jsx(
|
|
2705
2710
|
"path",
|
|
2706
2711
|
{
|
|
2707
2712
|
fill: "currentColor",
|
|
@@ -2710,7 +2715,7 @@ const kt = {
|
|
|
2710
2715
|
clipRule: "evenodd"
|
|
2711
2716
|
}
|
|
2712
2717
|
),
|
|
2713
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ s.jsx(
|
|
2714
2719
|
"path",
|
|
2715
2720
|
{
|
|
2716
2721
|
fill: "currentColor",
|
|
@@ -2720,8 +2725,8 @@ const kt = {
|
|
|
2720
2725
|
]
|
|
2721
2726
|
}
|
|
2722
2727
|
);
|
|
2723
|
-
|
|
2724
|
-
const
|
|
2728
|
+
br.displayName = "ZudokuLogo";
|
|
2729
|
+
const wr = ({ className: e }) => /* @__PURE__ */ s.jsxs(
|
|
2725
2730
|
"a",
|
|
2726
2731
|
{
|
|
2727
2732
|
href: "https://zudoku.dev",
|
|
@@ -2732,13 +2737,13 @@ const yr = ({ className: e }) => /* @__PURE__ */ a.jsxs(
|
|
|
2732
2737
|
e
|
|
2733
2738
|
),
|
|
2734
2739
|
children: [
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2740
|
+
/* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
|
|
2741
|
+
/* @__PURE__ */ s.jsx(br, { className: "w-3.5 h-3.5 dark:fill-white" }),
|
|
2737
2742
|
"powered by ",
|
|
2738
2743
|
"Zudoku"
|
|
2739
2744
|
] }),
|
|
2740
|
-
/* @__PURE__ */
|
|
2741
|
-
|
|
2745
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(
|
|
2746
|
+
Qn,
|
|
2742
2747
|
{
|
|
2743
2748
|
size: 12,
|
|
2744
2749
|
absoluteStrokeWidth: !0,
|
|
@@ -2749,16 +2754,16 @@ const yr = ({ className: e }) => /* @__PURE__ */ a.jsxs(
|
|
|
2749
2754
|
]
|
|
2750
2755
|
}
|
|
2751
2756
|
);
|
|
2752
|
-
function
|
|
2753
|
-
return
|
|
2757
|
+
function ye() {
|
|
2758
|
+
return ye = Object.assign ? Object.assign.bind() : function(e) {
|
|
2754
2759
|
for (var t = 1; t < arguments.length; t++) {
|
|
2755
2760
|
var r = arguments[t];
|
|
2756
2761
|
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2757
2762
|
}
|
|
2758
2763
|
return e;
|
|
2759
|
-
},
|
|
2764
|
+
}, ye.apply(null, arguments);
|
|
2760
2765
|
}
|
|
2761
|
-
var
|
|
2766
|
+
var pe = { exports: {} }, k = {};
|
|
2762
2767
|
/** @license React v16.13.1
|
|
2763
2768
|
* react-is.production.min.js
|
|
2764
2769
|
*
|
|
@@ -2767,28 +2772,28 @@ var he = { exports: {} }, $ = {};
|
|
|
2767
2772
|
* This source code is licensed under the MIT license found in the
|
|
2768
2773
|
* LICENSE file in the root directory of this source tree.
|
|
2769
2774
|
*/
|
|
2770
|
-
var
|
|
2771
|
-
function
|
|
2772
|
-
if (
|
|
2773
|
-
|
|
2774
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108,
|
|
2775
|
-
function
|
|
2775
|
+
var Et;
|
|
2776
|
+
function pc() {
|
|
2777
|
+
if (Et) return k;
|
|
2778
|
+
Et = 1;
|
|
2779
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
2780
|
+
function x(d) {
|
|
2776
2781
|
if (typeof d == "object" && d !== null) {
|
|
2777
2782
|
var z = d.$$typeof;
|
|
2778
2783
|
switch (z) {
|
|
2779
2784
|
case t:
|
|
2780
2785
|
switch (d = d.type, d) {
|
|
2781
|
-
case
|
|
2786
|
+
case h:
|
|
2782
2787
|
case f:
|
|
2783
2788
|
case n:
|
|
2784
|
-
case
|
|
2789
|
+
case a:
|
|
2785
2790
|
case o:
|
|
2786
|
-
case
|
|
2791
|
+
case p:
|
|
2787
2792
|
return d;
|
|
2788
2793
|
default:
|
|
2789
2794
|
switch (d = d && d.$$typeof, d) {
|
|
2790
2795
|
case u:
|
|
2791
|
-
case
|
|
2796
|
+
case y:
|
|
2792
2797
|
case g:
|
|
2793
2798
|
case l:
|
|
2794
2799
|
case i:
|
|
@@ -2803,37 +2808,37 @@ function dc() {
|
|
|
2803
2808
|
}
|
|
2804
2809
|
}
|
|
2805
2810
|
function b(d) {
|
|
2806
|
-
return
|
|
2807
|
-
}
|
|
2808
|
-
return
|
|
2809
|
-
return b(d) ||
|
|
2810
|
-
},
|
|
2811
|
-
return
|
|
2812
|
-
},
|
|
2813
|
-
return
|
|
2814
|
-
},
|
|
2811
|
+
return x(d) === f;
|
|
2812
|
+
}
|
|
2813
|
+
return k.AsyncMode = h, k.ConcurrentMode = f, k.ContextConsumer = u, k.ContextProvider = i, k.Element = t, k.ForwardRef = y, k.Fragment = n, k.Lazy = g, k.Memo = l, k.Portal = r, k.Profiler = a, k.StrictMode = o, k.Suspense = p, k.isAsyncMode = function(d) {
|
|
2814
|
+
return b(d) || x(d) === h;
|
|
2815
|
+
}, k.isConcurrentMode = b, k.isContextConsumer = function(d) {
|
|
2816
|
+
return x(d) === u;
|
|
2817
|
+
}, k.isContextProvider = function(d) {
|
|
2818
|
+
return x(d) === i;
|
|
2819
|
+
}, k.isElement = function(d) {
|
|
2815
2820
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
2816
|
-
},
|
|
2817
|
-
return
|
|
2818
|
-
},
|
|
2819
|
-
return
|
|
2820
|
-
},
|
|
2821
|
-
return
|
|
2822
|
-
},
|
|
2823
|
-
return
|
|
2824
|
-
},
|
|
2825
|
-
return
|
|
2826
|
-
},
|
|
2827
|
-
return
|
|
2828
|
-
},
|
|
2829
|
-
return
|
|
2830
|
-
},
|
|
2831
|
-
return
|
|
2832
|
-
},
|
|
2833
|
-
return typeof d == "string" || typeof d == "function" || d === n || d === f || d ===
|
|
2834
|
-
},
|
|
2835
|
-
}
|
|
2836
|
-
var
|
|
2821
|
+
}, k.isForwardRef = function(d) {
|
|
2822
|
+
return x(d) === y;
|
|
2823
|
+
}, k.isFragment = function(d) {
|
|
2824
|
+
return x(d) === n;
|
|
2825
|
+
}, k.isLazy = function(d) {
|
|
2826
|
+
return x(d) === g;
|
|
2827
|
+
}, k.isMemo = function(d) {
|
|
2828
|
+
return x(d) === l;
|
|
2829
|
+
}, k.isPortal = function(d) {
|
|
2830
|
+
return x(d) === r;
|
|
2831
|
+
}, k.isProfiler = function(d) {
|
|
2832
|
+
return x(d) === a;
|
|
2833
|
+
}, k.isStrictMode = function(d) {
|
|
2834
|
+
return x(d) === o;
|
|
2835
|
+
}, k.isSuspense = function(d) {
|
|
2836
|
+
return x(d) === p;
|
|
2837
|
+
}, k.isValidElementType = function(d) {
|
|
2838
|
+
return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d === p || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === i || d.$$typeof === u || d.$$typeof === y || d.$$typeof === P || d.$$typeof === C || d.$$typeof === j || d.$$typeof === w);
|
|
2839
|
+
}, k.typeOf = x, k;
|
|
2840
|
+
}
|
|
2841
|
+
var $ = {};
|
|
2837
2842
|
/** @license React v16.13.1
|
|
2838
2843
|
* react-is.development.js
|
|
2839
2844
|
*
|
|
@@ -2842,98 +2847,98 @@ var k = {};
|
|
|
2842
2847
|
* This source code is licensed under the MIT license found in the
|
|
2843
2848
|
* LICENSE file in the root directory of this source tree.
|
|
2844
2849
|
*/
|
|
2845
|
-
var
|
|
2846
|
-
function
|
|
2847
|
-
return
|
|
2848
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108,
|
|
2849
|
-
function
|
|
2850
|
+
var St;
|
|
2851
|
+
function mc() {
|
|
2852
|
+
return St || (St = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2853
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
2854
|
+
function x(v) {
|
|
2850
2855
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2851
|
-
v === n || v === f || v ===
|
|
2856
|
+
v === n || v === f || v === a || v === o || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === i || v.$$typeof === u || v.$$typeof === y || v.$$typeof === P || v.$$typeof === C || v.$$typeof === j || v.$$typeof === w);
|
|
2852
2857
|
}
|
|
2853
2858
|
function b(v) {
|
|
2854
2859
|
if (typeof v == "object" && v !== null) {
|
|
2855
|
-
var
|
|
2856
|
-
switch (
|
|
2860
|
+
var ke = v.$$typeof;
|
|
2861
|
+
switch (ke) {
|
|
2857
2862
|
case t:
|
|
2858
|
-
var
|
|
2859
|
-
switch (
|
|
2860
|
-
case
|
|
2863
|
+
var ce = v.type;
|
|
2864
|
+
switch (ce) {
|
|
2865
|
+
case h:
|
|
2861
2866
|
case f:
|
|
2862
2867
|
case n:
|
|
2863
|
-
case
|
|
2868
|
+
case a:
|
|
2864
2869
|
case o:
|
|
2865
|
-
case
|
|
2866
|
-
return
|
|
2870
|
+
case p:
|
|
2871
|
+
return ce;
|
|
2867
2872
|
default:
|
|
2868
|
-
var
|
|
2869
|
-
switch (
|
|
2873
|
+
var Ve = ce && ce.$$typeof;
|
|
2874
|
+
switch (Ve) {
|
|
2870
2875
|
case u:
|
|
2871
|
-
case
|
|
2876
|
+
case y:
|
|
2872
2877
|
case g:
|
|
2873
2878
|
case l:
|
|
2874
2879
|
case i:
|
|
2875
|
-
return
|
|
2880
|
+
return Ve;
|
|
2876
2881
|
default:
|
|
2877
|
-
return
|
|
2882
|
+
return ke;
|
|
2878
2883
|
}
|
|
2879
2884
|
}
|
|
2880
2885
|
case r:
|
|
2881
|
-
return
|
|
2886
|
+
return ke;
|
|
2882
2887
|
}
|
|
2883
2888
|
}
|
|
2884
2889
|
}
|
|
2885
|
-
var d =
|
|
2886
|
-
function
|
|
2887
|
-
return
|
|
2890
|
+
var d = h, z = f, I = u, D = i, X = t, B = y, je = n, W = g, Rr = l, Dr = r, Mr = a, Fr = o, qr = p, Ke = !1;
|
|
2891
|
+
function Ur(v) {
|
|
2892
|
+
return Ke || (Ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), We(v) || b(v) === h;
|
|
2888
2893
|
}
|
|
2889
|
-
function
|
|
2894
|
+
function We(v) {
|
|
2890
2895
|
return b(v) === f;
|
|
2891
2896
|
}
|
|
2892
|
-
function
|
|
2897
|
+
function Lr(v) {
|
|
2893
2898
|
return b(v) === u;
|
|
2894
2899
|
}
|
|
2895
|
-
function
|
|
2900
|
+
function Qr(v) {
|
|
2896
2901
|
return b(v) === i;
|
|
2897
2902
|
}
|
|
2898
|
-
function
|
|
2903
|
+
function Br(v) {
|
|
2899
2904
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
2900
2905
|
}
|
|
2901
|
-
function
|
|
2902
|
-
return b(v) ===
|
|
2906
|
+
function Hr(v) {
|
|
2907
|
+
return b(v) === y;
|
|
2903
2908
|
}
|
|
2904
|
-
function
|
|
2909
|
+
function Kr(v) {
|
|
2905
2910
|
return b(v) === n;
|
|
2906
2911
|
}
|
|
2907
|
-
function
|
|
2912
|
+
function Wr(v) {
|
|
2908
2913
|
return b(v) === g;
|
|
2909
2914
|
}
|
|
2910
|
-
function
|
|
2915
|
+
function Vr(v) {
|
|
2911
2916
|
return b(v) === l;
|
|
2912
2917
|
}
|
|
2913
|
-
function
|
|
2918
|
+
function Yr(v) {
|
|
2914
2919
|
return b(v) === r;
|
|
2915
2920
|
}
|
|
2916
|
-
function
|
|
2917
|
-
return b(v) ===
|
|
2921
|
+
function Gr(v) {
|
|
2922
|
+
return b(v) === a;
|
|
2918
2923
|
}
|
|
2919
|
-
function
|
|
2924
|
+
function Jr(v) {
|
|
2920
2925
|
return b(v) === o;
|
|
2921
2926
|
}
|
|
2922
|
-
function
|
|
2923
|
-
return b(v) ===
|
|
2927
|
+
function Xr(v) {
|
|
2928
|
+
return b(v) === p;
|
|
2924
2929
|
}
|
|
2925
|
-
|
|
2926
|
-
}()),
|
|
2927
|
-
}
|
|
2928
|
-
var
|
|
2929
|
-
function
|
|
2930
|
-
return
|
|
2931
|
-
}
|
|
2932
|
-
var Pe,
|
|
2933
|
-
function
|
|
2934
|
-
if (
|
|
2935
|
-
|
|
2936
|
-
var e =
|
|
2930
|
+
$.AsyncMode = d, $.ConcurrentMode = z, $.ContextConsumer = I, $.ContextProvider = D, $.Element = X, $.ForwardRef = B, $.Fragment = je, $.Lazy = W, $.Memo = Rr, $.Portal = Dr, $.Profiler = Mr, $.StrictMode = Fr, $.Suspense = qr, $.isAsyncMode = Ur, $.isConcurrentMode = We, $.isContextConsumer = Lr, $.isContextProvider = Qr, $.isElement = Br, $.isForwardRef = Hr, $.isFragment = Kr, $.isLazy = Wr, $.isMemo = Vr, $.isPortal = Yr, $.isProfiler = Gr, $.isStrictMode = Jr, $.isSuspense = Xr, $.isValidElementType = x, $.typeOf = b;
|
|
2931
|
+
}()), $;
|
|
2932
|
+
}
|
|
2933
|
+
var Zt;
|
|
2934
|
+
function gc() {
|
|
2935
|
+
return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? pe.exports = pc() : pe.exports = mc()), pe.exports;
|
|
2936
|
+
}
|
|
2937
|
+
var Pe, Ct;
|
|
2938
|
+
function vc() {
|
|
2939
|
+
if (Ct) return Pe;
|
|
2940
|
+
Ct = 1;
|
|
2941
|
+
var e = gc(), t = {
|
|
2937
2942
|
childContextTypes: !0,
|
|
2938
2943
|
contextType: !0,
|
|
2939
2944
|
contextTypes: !0,
|
|
@@ -2966,26 +2971,26 @@ function pc() {
|
|
|
2966
2971
|
displayName: !0,
|
|
2967
2972
|
propTypes: !0,
|
|
2968
2973
|
type: !0
|
|
2969
|
-
},
|
|
2970
|
-
|
|
2974
|
+
}, a = {};
|
|
2975
|
+
a[e.ForwardRef] = n, a[e.Memo] = o;
|
|
2971
2976
|
function i(g) {
|
|
2972
|
-
return e.isMemo(g) ? o :
|
|
2977
|
+
return e.isMemo(g) ? o : a[g.$$typeof] || t;
|
|
2973
2978
|
}
|
|
2974
|
-
var u = Object.defineProperty,
|
|
2979
|
+
var u = Object.defineProperty, h = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, y = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype;
|
|
2975
2980
|
function l(g, w, P) {
|
|
2976
2981
|
if (typeof w != "string") {
|
|
2977
|
-
if (
|
|
2978
|
-
var
|
|
2979
|
-
|
|
2982
|
+
if (m) {
|
|
2983
|
+
var C = p(w);
|
|
2984
|
+
C && C !== m && l(g, C, P);
|
|
2980
2985
|
}
|
|
2981
|
-
var j =
|
|
2986
|
+
var j = h(w);
|
|
2982
2987
|
f && (j = j.concat(f(w)));
|
|
2983
|
-
for (var
|
|
2988
|
+
for (var x = i(g), b = i(w), d = 0; d < j.length; ++d) {
|
|
2984
2989
|
var z = j[d];
|
|
2985
|
-
if (!r[z] && !(P && P[z]) && !(b && b[z]) && !(
|
|
2986
|
-
var
|
|
2990
|
+
if (!r[z] && !(P && P[z]) && !(b && b[z]) && !(x && x[z])) {
|
|
2991
|
+
var I = y(w, z);
|
|
2987
2992
|
try {
|
|
2988
|
-
u(g, z,
|
|
2993
|
+
u(g, z, I);
|
|
2989
2994
|
} catch {
|
|
2990
2995
|
}
|
|
2991
2996
|
}
|
|
@@ -2995,10 +3000,10 @@ function pc() {
|
|
|
2995
3000
|
}
|
|
2996
3001
|
return Pe = l, Pe;
|
|
2997
3002
|
}
|
|
2998
|
-
|
|
2999
|
-
var
|
|
3003
|
+
vc();
|
|
3004
|
+
var jr = function(t, r, n) {
|
|
3000
3005
|
return t = t <= n ? t : n, t = t >= r ? t : r, t;
|
|
3001
|
-
},
|
|
3006
|
+
}, yc = function() {
|
|
3002
3007
|
var t = !1, r = [], n = function() {
|
|
3003
3008
|
t = !0;
|
|
3004
3009
|
var u = r.shift();
|
|
@@ -3007,20 +3012,20 @@ var xr = function(t, r, n) {
|
|
|
3007
3012
|
t = !1;
|
|
3008
3013
|
}, o = function() {
|
|
3009
3014
|
t = !1, r = [];
|
|
3010
|
-
},
|
|
3015
|
+
}, a = function(u) {
|
|
3011
3016
|
r.push(u), !t && r.length === 1 && n();
|
|
3012
3017
|
};
|
|
3013
3018
|
return {
|
|
3014
3019
|
clear: o,
|
|
3015
|
-
enqueue:
|
|
3020
|
+
enqueue: a
|
|
3016
3021
|
};
|
|
3017
|
-
},
|
|
3022
|
+
}, xc = function() {
|
|
3018
3023
|
var t, r = function() {
|
|
3019
3024
|
t && window.cancelAnimationFrame(t);
|
|
3020
|
-
}, n = function(
|
|
3021
|
-
var u,
|
|
3022
|
-
if (
|
|
3023
|
-
|
|
3025
|
+
}, n = function(a, i) {
|
|
3026
|
+
var u, h, f = function(p) {
|
|
3027
|
+
if (h = h || p, u = p - h, u > i) {
|
|
3028
|
+
a();
|
|
3024
3029
|
return;
|
|
3025
3030
|
}
|
|
3026
3031
|
t = window.requestAnimationFrame(f);
|
|
@@ -3031,51 +3036,51 @@ var xr = function(t, r, n) {
|
|
|
3031
3036
|
cancel: r,
|
|
3032
3037
|
schedule: n
|
|
3033
3038
|
};
|
|
3034
|
-
},
|
|
3039
|
+
}, _c = function(t) {
|
|
3035
3040
|
var r = 0;
|
|
3036
|
-
return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3),
|
|
3037
|
-
},
|
|
3041
|
+
return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), jr(t + r, 0, 0.994);
|
|
3042
|
+
}, Tt = function(t) {
|
|
3038
3043
|
F(t, []);
|
|
3039
|
-
},
|
|
3044
|
+
}, bc = function(t) {
|
|
3040
3045
|
return ++t % 1e6;
|
|
3041
|
-
},
|
|
3046
|
+
}, wc = function() {
|
|
3042
3047
|
var t = G(0), r = t[1];
|
|
3043
3048
|
return H(function() {
|
|
3044
|
-
return r(
|
|
3049
|
+
return r(bc);
|
|
3045
3050
|
}, []);
|
|
3046
|
-
},
|
|
3051
|
+
}, jc = function(t) {
|
|
3047
3052
|
t === void 0 && (t = {});
|
|
3048
|
-
var r =
|
|
3053
|
+
var r = wc(), n = K(ye({}, t)), o = H(function() {
|
|
3049
3054
|
return n.current;
|
|
3050
|
-
}, []),
|
|
3055
|
+
}, []), a = H(function(i) {
|
|
3051
3056
|
i && (Object.assign(n.current, i), r());
|
|
3052
3057
|
}, []);
|
|
3053
|
-
return [o,
|
|
3054
|
-
},
|
|
3058
|
+
return [o, a];
|
|
3059
|
+
}, kc = function() {
|
|
3055
3060
|
var t = K(!0);
|
|
3056
3061
|
return t.current ? (t.current = !1, !0) : t.current;
|
|
3057
|
-
},
|
|
3058
|
-
var n =
|
|
3062
|
+
}, Ot = function(t, r) {
|
|
3063
|
+
var n = kc();
|
|
3059
3064
|
F(function() {
|
|
3060
3065
|
if (!n)
|
|
3061
3066
|
return t();
|
|
3062
3067
|
}, r);
|
|
3063
|
-
},
|
|
3064
|
-
},
|
|
3068
|
+
}, kr = function() {
|
|
3069
|
+
}, Nt = {
|
|
3065
3070
|
isFinished: !0,
|
|
3066
3071
|
progress: 0,
|
|
3067
|
-
sideEffect:
|
|
3068
|
-
},
|
|
3069
|
-
var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n,
|
|
3070
|
-
|
|
3071
|
-
g.current =
|
|
3072
|
+
sideEffect: kr
|
|
3073
|
+
}, $c = function(t) {
|
|
3074
|
+
var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating, h = u === void 0 ? !1 : u, f = r.minimum, y = f === void 0 ? 0.08 : f, p = jc(Nt), m = p[0], l = p[1], g = K(null), w = K(null);
|
|
3075
|
+
Tt(function() {
|
|
3076
|
+
g.current = yc(), w.current = xc();
|
|
3072
3077
|
});
|
|
3073
3078
|
var P = H(function() {
|
|
3074
|
-
var z,
|
|
3075
|
-
(z = w.current) == null || z.cancel(), (
|
|
3076
|
-
}, []),
|
|
3077
|
-
var
|
|
3078
|
-
if (z =
|
|
3079
|
+
var z, I;
|
|
3080
|
+
(z = w.current) == null || z.cancel(), (I = g.current) == null || I.clear();
|
|
3081
|
+
}, []), C = H(function(z) {
|
|
3082
|
+
var I;
|
|
3083
|
+
if (z = jr(z, y, 1), z === 1) {
|
|
3079
3084
|
var D, X;
|
|
3080
3085
|
P(), (D = g.current) == null || D.enqueue(function(B) {
|
|
3081
3086
|
l({
|
|
@@ -3093,7 +3098,7 @@ var xr = function(t, r, n) {
|
|
|
3093
3098
|
});
|
|
3094
3099
|
return;
|
|
3095
3100
|
}
|
|
3096
|
-
(
|
|
3101
|
+
(I = g.current) == null || I.enqueue(function(B) {
|
|
3097
3102
|
l({
|
|
3098
3103
|
isFinished: !1,
|
|
3099
3104
|
progress: z,
|
|
@@ -3103,9 +3108,9 @@ var xr = function(t, r, n) {
|
|
|
3103
3108
|
}
|
|
3104
3109
|
});
|
|
3105
3110
|
});
|
|
3106
|
-
}, [o, P,
|
|
3107
|
-
|
|
3108
|
-
}, [
|
|
3111
|
+
}, [o, P, y, g, l, w]), j = H(function() {
|
|
3112
|
+
C(_c(m().progress));
|
|
3113
|
+
}, [m, C]), x = H(function() {
|
|
3109
3114
|
var z = function() {
|
|
3110
3115
|
var D;
|
|
3111
3116
|
j(), (D = g.current) == null || D.enqueue(function(X) {
|
|
@@ -3116,48 +3121,48 @@ var xr = function(t, r, n) {
|
|
|
3116
3121
|
});
|
|
3117
3122
|
};
|
|
3118
3123
|
z();
|
|
3119
|
-
}, [i, g, w, j]), b = K(
|
|
3124
|
+
}, [i, g, w, j]), b = K(kr), d = m().sideEffect;
|
|
3120
3125
|
return F(function() {
|
|
3121
3126
|
b.current = j;
|
|
3122
|
-
}), Zt(function() {
|
|
3123
|
-
return p && y(), P;
|
|
3124
3127
|
}), Tt(function() {
|
|
3125
|
-
h()
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
}
|
|
3130
|
-
|
|
3128
|
+
return h && x(), P;
|
|
3129
|
+
}), Ot(function() {
|
|
3130
|
+
m().sideEffect();
|
|
3131
|
+
}, [m, d]), Ot(function() {
|
|
3132
|
+
h ? l(ye({}, Nt, {
|
|
3133
|
+
sideEffect: x
|
|
3134
|
+
})) : C(1);
|
|
3135
|
+
}, [h, C, l, x]), {
|
|
3131
3136
|
animationDuration: o,
|
|
3132
|
-
isFinished:
|
|
3133
|
-
progress:
|
|
3137
|
+
isFinished: m().isFinished,
|
|
3138
|
+
progress: m().progress
|
|
3134
3139
|
};
|
|
3135
3140
|
};
|
|
3136
|
-
const
|
|
3137
|
-
const t =
|
|
3141
|
+
const $r = () => {
|
|
3142
|
+
const t = Re().state === "loading", [r, n] = G(!1);
|
|
3138
3143
|
F(() => {
|
|
3139
3144
|
const i = setTimeout(() => n(t), 200);
|
|
3140
3145
|
return () => clearTimeout(i);
|
|
3141
3146
|
}, [t]);
|
|
3142
|
-
const { isFinished: o, progress:
|
|
3143
|
-
return /* @__PURE__ */
|
|
3147
|
+
const { isFinished: o, progress: a } = $c({ isAnimating: r });
|
|
3148
|
+
return /* @__PURE__ */ s.jsx(
|
|
3144
3149
|
"div",
|
|
3145
3150
|
{
|
|
3146
3151
|
className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
|
|
3147
3152
|
style: {
|
|
3148
3153
|
opacity: o ? 0 : 1,
|
|
3149
|
-
width: o ? 0 : `${
|
|
3154
|
+
width: o ? 0 : `${a * 100}%`
|
|
3150
3155
|
}
|
|
3151
3156
|
}
|
|
3152
3157
|
);
|
|
3153
3158
|
};
|
|
3154
|
-
function
|
|
3159
|
+
function zc() {
|
|
3155
3160
|
const e = navigator.userAgent.toLowerCase();
|
|
3156
3161
|
if (e.includes("win")) return "Windows";
|
|
3157
3162
|
if (e.includes("mac")) return "macOS";
|
|
3158
3163
|
if (e.includes("linux")) return "Linux";
|
|
3159
3164
|
}
|
|
3160
|
-
const
|
|
3165
|
+
const zr = ({ className: e }) => {
|
|
3161
3166
|
const t = M(), [r, n] = G(!1), o = H(() => n(!1), []);
|
|
3162
3167
|
F(() => {
|
|
3163
3168
|
if (r)
|
|
@@ -3169,37 +3174,37 @@ const wr = ({ className: e }) => {
|
|
|
3169
3174
|
window.removeEventListener("keydown", i);
|
|
3170
3175
|
};
|
|
3171
3176
|
}, [r, n]);
|
|
3172
|
-
const
|
|
3173
|
-
return
|
|
3174
|
-
/* @__PURE__ */
|
|
3177
|
+
const a = t.plugins.find(Yn);
|
|
3178
|
+
return a ? /* @__PURE__ */ s.jsxs("div", { className: e, children: [
|
|
3179
|
+
/* @__PURE__ */ s.jsxs(
|
|
3175
3180
|
"button",
|
|
3176
3181
|
{
|
|
3177
3182
|
type: "button",
|
|
3178
3183
|
onClick: () => n(!0),
|
|
3179
3184
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
3180
3185
|
children: [
|
|
3181
|
-
/* @__PURE__ */
|
|
3182
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 grow", children: [
|
|
3187
|
+
/* @__PURE__ */ s.jsx(Bn, { size: 14 }),
|
|
3183
3188
|
"Search"
|
|
3184
3189
|
] }),
|
|
3185
|
-
/* @__PURE__ */
|
|
3190
|
+
/* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(Pc, {}) })
|
|
3186
3191
|
]
|
|
3187
3192
|
}
|
|
3188
3193
|
),
|
|
3189
|
-
/* @__PURE__ */
|
|
3194
|
+
/* @__PURE__ */ s.jsx(Fe, { fallback: null, children: a.renderSearch({
|
|
3190
3195
|
isOpen: r,
|
|
3191
3196
|
onClose: o
|
|
3192
3197
|
}) })
|
|
3193
3198
|
] }) : null;
|
|
3194
|
-
},
|
|
3195
|
-
const e =
|
|
3196
|
-
return /* @__PURE__ */
|
|
3199
|
+
}, Pc = () => {
|
|
3200
|
+
const e = zc();
|
|
3201
|
+
return /* @__PURE__ */ s.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
|
|
3197
3202
|
e === "macOS" ? "⌘" : "Ctrl",
|
|
3198
3203
|
"+K"
|
|
3199
3204
|
] });
|
|
3200
|
-
},
|
|
3201
|
-
const { resolvedTheme: e, setTheme: t } =
|
|
3202
|
-
return /* @__PURE__ */
|
|
3205
|
+
}, Pr = () => {
|
|
3206
|
+
const { resolvedTheme: e, setTheme: t } = Dt();
|
|
3207
|
+
return /* @__PURE__ */ s.jsx(te, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
|
|
3203
3208
|
"button",
|
|
3204
3209
|
{
|
|
3205
3210
|
type: "button",
|
|
@@ -3207,7 +3212,7 @@ const wr = ({ className: e }) => {
|
|
|
3207
3212
|
onClick: () => t(e === "dark" ? "light" : "dark"),
|
|
3208
3213
|
"aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
3209
3214
|
children: [
|
|
3210
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ s.jsx(
|
|
3211
3216
|
"div",
|
|
3212
3217
|
{
|
|
3213
3218
|
className: N(
|
|
@@ -3215,10 +3220,10 @@ const wr = ({ className: e }) => {
|
|
|
3215
3220
|
e === "light" && "border-border bg-muted",
|
|
3216
3221
|
e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
3217
3222
|
),
|
|
3218
|
-
children: /* @__PURE__ */
|
|
3223
|
+
children: /* @__PURE__ */ s.jsx(Hn, { size: 16 })
|
|
3219
3224
|
}
|
|
3220
3225
|
),
|
|
3221
|
-
/* @__PURE__ */
|
|
3226
|
+
/* @__PURE__ */ s.jsx(
|
|
3222
3227
|
"div",
|
|
3223
3228
|
{
|
|
3224
3229
|
className: N(
|
|
@@ -3226,130 +3231,165 @@ const wr = ({ className: e }) => {
|
|
|
3226
3231
|
e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
3227
3232
|
e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
3228
3233
|
),
|
|
3229
|
-
children: /* @__PURE__ */
|
|
3234
|
+
children: /* @__PURE__ */ s.jsx(Kn, { size: 16 })
|
|
3230
3235
|
}
|
|
3231
3236
|
)
|
|
3232
3237
|
]
|
|
3233
3238
|
}
|
|
3234
3239
|
) });
|
|
3235
|
-
},
|
|
3236
|
-
const { navigation: e } = M(), { isAuthenticated: t } =
|
|
3237
|
-
return r.length === 0 ? /* @__PURE__ */
|
|
3238
|
-
/* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3240
|
+
}, Ec = () => {
|
|
3241
|
+
const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(Qt(t));
|
|
3242
|
+
return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
|
|
3243
|
+
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Sr, { ...n }) }, n.label + n.type)) }) }),
|
|
3244
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" })
|
|
3240
3245
|
] }) });
|
|
3241
|
-
},
|
|
3246
|
+
}, Er = (e) => {
|
|
3242
3247
|
switch (e.type) {
|
|
3243
3248
|
case "doc":
|
|
3244
3249
|
return ee(e.path);
|
|
3245
3250
|
case "link":
|
|
3246
3251
|
return e.to;
|
|
3247
3252
|
case "category":
|
|
3248
|
-
return e.link?.path ? ee(e.link.path) :
|
|
3253
|
+
return e.link?.path ? ee(e.link.path) : gn(e, (t) => {
|
|
3249
3254
|
if (t.type !== "category")
|
|
3250
|
-
return
|
|
3255
|
+
return Er(t);
|
|
3251
3256
|
}) ?? "";
|
|
3252
3257
|
case "custom-page":
|
|
3253
3258
|
return e.path;
|
|
3254
3259
|
}
|
|
3255
|
-
},
|
|
3256
|
-
|
|
3260
|
+
}, Ae = ({
|
|
3261
|
+
isActive: e,
|
|
3262
|
+
children: t,
|
|
3263
|
+
...r
|
|
3264
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
3265
|
+
an,
|
|
3266
|
+
{
|
|
3267
|
+
viewTransition: !0,
|
|
3268
|
+
className: ({ isActive: n, isPending: o }) => {
|
|
3269
|
+
const a = n || e;
|
|
3270
|
+
return mo(
|
|
3271
|
+
"flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
|
|
3272
|
+
a || o ? [
|
|
3273
|
+
"text-foreground",
|
|
3274
|
+
// underline with view transition animation
|
|
3275
|
+
"after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
|
|
3276
|
+
"after:h-0.5 after:bg-primary",
|
|
3277
|
+
a && "after:[view-transition-name:top-nav-underline]",
|
|
3278
|
+
o && "after:bg-primary/25"
|
|
3279
|
+
] : "text-foreground/75 hover:text-foreground"
|
|
3280
|
+
);
|
|
3281
|
+
},
|
|
3282
|
+
...r,
|
|
3283
|
+
children: t
|
|
3284
|
+
}
|
|
3285
|
+
), Sr = (e) => {
|
|
3286
|
+
const t = Bt(), r = $n(t.topNavItem, e), n = Er(e);
|
|
3257
3287
|
return (
|
|
3258
3288
|
// We don't use isActive here because it has to be inside the navigation,
|
|
3259
3289
|
// the top nav id doesn't necessarily start with the navigation id
|
|
3260
|
-
/* @__PURE__ */
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
to: n,
|
|
3265
|
-
className: ({ isActive: o, isPending: s }) => {
|
|
3266
|
-
const i = o || r;
|
|
3267
|
-
return lo(
|
|
3268
|
-
"flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
|
|
3269
|
-
i || s ? [
|
|
3270
|
-
"text-foreground",
|
|
3271
|
-
// underline with view transition animation
|
|
3272
|
-
"after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
|
|
3273
|
-
"after:h-0.5 after:bg-primary",
|
|
3274
|
-
i && "after:[view-transition-name:top-nav-underline]",
|
|
3275
|
-
s && "after:bg-primary/25"
|
|
3276
|
-
] : "text-foreground/75 hover:text-foreground"
|
|
3277
|
-
);
|
|
3278
|
-
},
|
|
3279
|
-
children: [
|
|
3280
|
-
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
3281
|
-
e.label
|
|
3282
|
-
]
|
|
3283
|
-
}
|
|
3284
|
-
)
|
|
3290
|
+
/* @__PURE__ */ s.jsxs(Ae, { to: n, isActive: r, children: [
|
|
3291
|
+
e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
3292
|
+
e.label
|
|
3293
|
+
] })
|
|
3285
3294
|
);
|
|
3286
|
-
},
|
|
3287
|
-
const { navigation: e, options: t } = M(), { isAuthenticated:
|
|
3288
|
-
return /* @__PURE__ */
|
|
3289
|
-
|
|
3295
|
+
}, Sc = () => {
|
|
3296
|
+
const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: a, login: i } = oe(), [u, h] = G(!1), f = r(), y = e.filter(Qt(n));
|
|
3297
|
+
return /* @__PURE__ */ s.jsxs(
|
|
3298
|
+
ho,
|
|
3290
3299
|
{
|
|
3291
3300
|
direction: t.site?.dir === "rtl" ? "left" : "right",
|
|
3292
|
-
open:
|
|
3293
|
-
onOpenChange: (
|
|
3301
|
+
open: u,
|
|
3302
|
+
onOpenChange: (p) => h(p),
|
|
3294
3303
|
children: [
|
|
3295
|
-
/* @__PURE__ */
|
|
3296
|
-
/* @__PURE__ */
|
|
3297
|
-
/* @__PURE__ */
|
|
3304
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
|
|
3305
|
+
/* @__PURE__ */ s.jsx(po, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Wn, { size: 22 }) }),
|
|
3306
|
+
/* @__PURE__ */ s.jsx($r, {})
|
|
3298
3307
|
] }),
|
|
3299
|
-
/* @__PURE__ */
|
|
3300
|
-
|
|
3308
|
+
/* @__PURE__ */ s.jsx(
|
|
3309
|
+
er,
|
|
3301
3310
|
{
|
|
3302
3311
|
className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
|
|
3303
3312
|
"aria-describedby": void 0,
|
|
3304
|
-
children: /* @__PURE__ */
|
|
3305
|
-
/* @__PURE__ */
|
|
3306
|
-
/* @__PURE__ */
|
|
3307
|
-
/* @__PURE__ */
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
/* @__PURE__ */
|
|
3310
|
-
|
|
3311
|
-
|
|
3313
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
|
|
3314
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
3315
|
+
/* @__PURE__ */ s.jsx(Xt, { children: /* @__PURE__ */ s.jsx(tr, { children: "Navigation" }) }),
|
|
3316
|
+
/* @__PURE__ */ s.jsx(zr, { className: "flex p-4" }),
|
|
3317
|
+
/* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
3318
|
+
/* @__PURE__ */ s.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" }) }),
|
|
3319
|
+
a && /* @__PURE__ */ s.jsx(
|
|
3320
|
+
te,
|
|
3321
|
+
{
|
|
3322
|
+
fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3323
|
+
children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(In, { children: /* @__PURE__ */ s.jsxs("li", { children: [
|
|
3324
|
+
o?.name ? `${o.name}` : "My Account",
|
|
3325
|
+
o?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
|
|
3326
|
+
] }) }) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
3327
|
+
Ae,
|
|
3328
|
+
{
|
|
3329
|
+
to: "/signin",
|
|
3330
|
+
onClick: () => h(!1),
|
|
3331
|
+
children: "Login"
|
|
3332
|
+
}
|
|
3333
|
+
) })
|
|
3334
|
+
}
|
|
3335
|
+
),
|
|
3336
|
+
y.map((p) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => h(!1), children: /* @__PURE__ */ s.jsx(Sr, { ...p }) }) }, p.label)),
|
|
3337
|
+
a && n && f.length > 0 && /* @__PURE__ */ s.jsx(
|
|
3338
|
+
te,
|
|
3339
|
+
{
|
|
3340
|
+
fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3341
|
+
children: f.map((p) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
3342
|
+
Ae,
|
|
3343
|
+
{
|
|
3344
|
+
to: p.path ?? "",
|
|
3345
|
+
onClick: () => h(!1),
|
|
3346
|
+
children: p.label
|
|
3347
|
+
}
|
|
3348
|
+
) }, p.label))
|
|
3349
|
+
}
|
|
3350
|
+
),
|
|
3351
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Pr, {}) })
|
|
3312
3352
|
] })
|
|
3313
3353
|
] }),
|
|
3314
|
-
t.site?.showPoweredBy !== !1 && /* @__PURE__ */
|
|
3354
|
+
t.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, { className: "grow-0 justify-center gap-1" })
|
|
3315
3355
|
] })
|
|
3316
3356
|
}
|
|
3317
3357
|
)
|
|
3318
3358
|
]
|
|
3319
3359
|
}
|
|
3320
3360
|
);
|
|
3321
|
-
},
|
|
3322
|
-
/* @__PURE__ */
|
|
3323
|
-
/* @__PURE__ */
|
|
3361
|
+
}, ge = ({ item: e }) => e.children ? /* @__PURE__ */ s.jsxs(io, { children: [
|
|
3362
|
+
/* @__PURE__ */ s.jsx(co, { children: e.label }),
|
|
3363
|
+
/* @__PURE__ */ s.jsx(uo, { children: /* @__PURE__ */ s.jsx(lo, { children: e.children.map((t, r) => (
|
|
3324
3364
|
// eslint-disable-next-line react/no-array-index-key
|
|
3325
|
-
/* @__PURE__ */
|
|
3365
|
+
/* @__PURE__ */ s.jsx(ge, { item: t }, r)
|
|
3326
3366
|
)) }) })
|
|
3327
|
-
] }, e.label) : /* @__PURE__ */
|
|
3328
|
-
e.icon && /* @__PURE__ */
|
|
3367
|
+
] }, e.label) : /* @__PURE__ */ s.jsx(De, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(fo, { className: "flex gap-2", children: [
|
|
3368
|
+
e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
3329
3369
|
e.label
|
|
3330
|
-
] }, e.label) }),
|
|
3331
|
-
const t =
|
|
3332
|
-
return /* @__PURE__ */
|
|
3333
|
-
/* @__PURE__ */
|
|
3334
|
-
/* @__PURE__ */
|
|
3335
|
-
/* @__PURE__ */
|
|
3336
|
-
/* @__PURE__ */
|
|
3337
|
-
/* @__PURE__ */
|
|
3338
|
-
i?.logo && /* @__PURE__ */
|
|
3339
|
-
/* @__PURE__ */
|
|
3370
|
+
] }, e.label) }), Zr = Yt(function() {
|
|
3371
|
+
const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), a = M(), { site: i, plugins: u, options: h } = a, f = u.filter((l) => Jt(l)).flatMap((l) => l.getProfileMenuItems(a)).sort((l) => l.weight ?? 0), y = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(h.basePath, i.logo.src.light) : void 0, p = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(h.basePath, i.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
|
|
3372
|
+
return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
3373
|
+
/* @__PURE__ */ s.jsx(hc, {}),
|
|
3374
|
+
/* @__PURE__ */ s.jsxs("div", { className: N(m, "relative"), children: [
|
|
3375
|
+
/* @__PURE__ */ s.jsx($r, {}),
|
|
3376
|
+
/* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
|
|
3377
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(De, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
3378
|
+
i?.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3379
|
+
/* @__PURE__ */ s.jsx(
|
|
3340
3380
|
"img",
|
|
3341
3381
|
{
|
|
3342
|
-
src:
|
|
3382
|
+
src: y,
|
|
3343
3383
|
alt: i.logo.alt ?? i.title,
|
|
3344
3384
|
style: { width: i.logo.width },
|
|
3345
3385
|
className: "max-h-(--top-header-height) dark:hidden",
|
|
3346
3386
|
loading: "lazy"
|
|
3347
3387
|
}
|
|
3348
3388
|
),
|
|
3349
|
-
/* @__PURE__ */
|
|
3389
|
+
/* @__PURE__ */ s.jsx(
|
|
3350
3390
|
"img",
|
|
3351
3391
|
{
|
|
3352
|
-
src:
|
|
3392
|
+
src: p,
|
|
3353
3393
|
alt: i.logo.alt ?? i.title,
|
|
3354
3394
|
style: { width: i.logo.width },
|
|
3355
3395
|
className: "max-h-(--top-header-height) hidden dark:block",
|
|
@@ -3357,62 +3397,62 @@ const wr = ({ className: e }) => {
|
|
|
3357
3397
|
}
|
|
3358
3398
|
)
|
|
3359
3399
|
] }),
|
|
3360
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ s.jsx("span", { className: "font-semibold text-2xl", children: i?.title })
|
|
3361
3401
|
] }) }) }),
|
|
3362
|
-
/* @__PURE__ */
|
|
3363
|
-
/* @__PURE__ */
|
|
3364
|
-
/* @__PURE__ */
|
|
3365
|
-
/* @__PURE__ */
|
|
3366
|
-
/* @__PURE__ */
|
|
3367
|
-
o && /* @__PURE__ */
|
|
3368
|
-
|
|
3402
|
+
/* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(zr, { className: "pointer-events-auto" }) }),
|
|
3403
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
3404
|
+
/* @__PURE__ */ s.jsx(Sc, {}),
|
|
3405
|
+
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
3406
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-start" }),
|
|
3407
|
+
o && /* @__PURE__ */ s.jsx(
|
|
3408
|
+
te,
|
|
3369
3409
|
{
|
|
3370
|
-
fallback: /* @__PURE__ */
|
|
3371
|
-
children: r ? Object.values(f).length > 0 && /* @__PURE__ */
|
|
3372
|
-
/* @__PURE__ */
|
|
3373
|
-
/* @__PURE__ */
|
|
3374
|
-
/* @__PURE__ */
|
|
3410
|
+
fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3411
|
+
children: r ? Object.values(f).length > 0 && /* @__PURE__ */ s.jsxs(no, { modal: !1, children: [
|
|
3412
|
+
/* @__PURE__ */ s.jsx(oo, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n?.name ?? "My Account" }) }),
|
|
3413
|
+
/* @__PURE__ */ s.jsxs(so, { className: "w-56", children: [
|
|
3414
|
+
/* @__PURE__ */ s.jsxs(ao, { children: [
|
|
3375
3415
|
n?.name ? `${n.name}` : "My Account",
|
|
3376
|
-
n?.email && /* @__PURE__ */
|
|
3416
|
+
n?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
3377
3417
|
] }),
|
|
3378
|
-
f.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */
|
|
3379
|
-
f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */
|
|
3418
|
+
f.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
|
|
3419
|
+
f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label)),
|
|
3380
3420
|
f.filter(
|
|
3381
3421
|
(l) => !l.category || l.category === "middle"
|
|
3382
|
-
).length > 0 && /* @__PURE__ */
|
|
3422
|
+
).length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
|
|
3383
3423
|
f.filter(
|
|
3384
3424
|
(l) => !l.category || l.category === "middle"
|
|
3385
|
-
).map((l) => /* @__PURE__ */
|
|
3386
|
-
f.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */
|
|
3387
|
-
f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */
|
|
3425
|
+
).map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label)),
|
|
3426
|
+
f.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
|
|
3427
|
+
f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label))
|
|
3388
3428
|
] })
|
|
3389
|
-
] }) : /* @__PURE__ */
|
|
3429
|
+
] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
3390
3430
|
}
|
|
3391
3431
|
),
|
|
3392
|
-
/* @__PURE__ */
|
|
3393
|
-
/* @__PURE__ */
|
|
3432
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-end" }),
|
|
3433
|
+
/* @__PURE__ */ s.jsx(Pr, {})
|
|
3394
3434
|
] })
|
|
3395
3435
|
] })
|
|
3396
3436
|
] })
|
|
3397
3437
|
] }),
|
|
3398
|
-
/* @__PURE__ */
|
|
3399
|
-
/* @__PURE__ */
|
|
3400
|
-
/* @__PURE__ */
|
|
3401
|
-
/* @__PURE__ */
|
|
3438
|
+
/* @__PURE__ */ s.jsx("div", { className: N("hidden lg:block", m), children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
|
|
3439
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-before" }),
|
|
3440
|
+
/* @__PURE__ */ s.jsx(Ec, {}),
|
|
3441
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-after" })
|
|
3402
3442
|
] }) })
|
|
3403
3443
|
] });
|
|
3404
|
-
}),
|
|
3444
|
+
}), Cr = ({
|
|
3405
3445
|
shouldScaleBackground: e = !0,
|
|
3406
3446
|
...t
|
|
3407
|
-
}) => /* @__PURE__ */
|
|
3447
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
3408
3448
|
q.Root,
|
|
3409
3449
|
{
|
|
3410
3450
|
shouldScaleBackground: e,
|
|
3411
3451
|
...t
|
|
3412
3452
|
}
|
|
3413
3453
|
);
|
|
3414
|
-
|
|
3415
|
-
const
|
|
3454
|
+
Cr.displayName = "Drawer";
|
|
3455
|
+
const Zc = q.Trigger, Cc = q.Portal, Tr = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3416
3456
|
q.Overlay,
|
|
3417
3457
|
{
|
|
3418
3458
|
ref: r,
|
|
@@ -3420,11 +3460,11 @@ const Pc = q.Trigger, Ec = q.Portal, Er = Q.forwardRef(({ className: e, ...t },
|
|
|
3420
3460
|
...t
|
|
3421
3461
|
}
|
|
3422
3462
|
));
|
|
3423
|
-
|
|
3424
|
-
const
|
|
3425
|
-
({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */
|
|
3426
|
-
/* @__PURE__ */
|
|
3427
|
-
/* @__PURE__ */
|
|
3463
|
+
Tr.displayName = q.Overlay.displayName;
|
|
3464
|
+
const Tc = Q.forwardRef(
|
|
3465
|
+
({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ s.jsxs(Cc, { children: [
|
|
3466
|
+
/* @__PURE__ */ s.jsx(Tr, {}),
|
|
3467
|
+
/* @__PURE__ */ s.jsxs(
|
|
3428
3468
|
q.Content,
|
|
3429
3469
|
{
|
|
3430
3470
|
ref: o,
|
|
@@ -3434,15 +3474,15 @@ const Sc = Q.forwardRef(
|
|
|
3434
3474
|
),
|
|
3435
3475
|
...n,
|
|
3436
3476
|
children: [
|
|
3437
|
-
!r && /* @__PURE__ */
|
|
3477
|
+
!r && /* @__PURE__ */ s.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
3438
3478
|
t
|
|
3439
3479
|
]
|
|
3440
3480
|
}
|
|
3441
3481
|
)
|
|
3442
3482
|
] })
|
|
3443
3483
|
);
|
|
3444
|
-
|
|
3445
|
-
const
|
|
3484
|
+
Tc.displayName = "DrawerContent";
|
|
3485
|
+
const Oc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3446
3486
|
q.Title,
|
|
3447
3487
|
{
|
|
3448
3488
|
ref: r,
|
|
@@ -3453,8 +3493,8 @@ const Zc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a.jsx(
|
|
|
3453
3493
|
...t
|
|
3454
3494
|
}
|
|
3455
3495
|
));
|
|
3456
|
-
|
|
3457
|
-
const
|
|
3496
|
+
Oc.displayName = q.Title.displayName;
|
|
3497
|
+
const Nc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3458
3498
|
q.Description,
|
|
3459
3499
|
{
|
|
3460
3500
|
ref: r,
|
|
@@ -3462,17 +3502,17 @@ const Tc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a.jsx(
|
|
|
3462
3502
|
...t
|
|
3463
3503
|
}
|
|
3464
3504
|
));
|
|
3465
|
-
|
|
3466
|
-
const
|
|
3505
|
+
Nc.displayName = q.Description.displayName;
|
|
3506
|
+
const Or = ({
|
|
3467
3507
|
children: e,
|
|
3468
3508
|
className: t
|
|
3469
3509
|
}) => {
|
|
3470
3510
|
const { options: r } = M(), n = K(null);
|
|
3471
3511
|
return F(() => {
|
|
3472
3512
|
const o = n.current?.querySelector('[aria-current="page"]');
|
|
3473
|
-
|
|
3474
|
-
}, []), /* @__PURE__ */
|
|
3475
|
-
/* @__PURE__ */
|
|
3513
|
+
zn(o ?? null);
|
|
3514
|
+
}, []), /* @__PURE__ */ s.jsxs("div", { className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r", children: [
|
|
3515
|
+
/* @__PURE__ */ s.jsx(
|
|
3476
3516
|
"nav",
|
|
3477
3517
|
{
|
|
3478
3518
|
ref: n,
|
|
@@ -3489,34 +3529,34 @@ const Sr = ({
|
|
|
3489
3529
|
children: e
|
|
3490
3530
|
}
|
|
3491
3531
|
),
|
|
3492
|
-
/* @__PURE__ */
|
|
3532
|
+
/* @__PURE__ */ s.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, {}) })
|
|
3493
3533
|
] });
|
|
3494
3534
|
};
|
|
3495
|
-
|
|
3496
|
-
const
|
|
3535
|
+
Or.displayName = "NavigationWrapper";
|
|
3536
|
+
const Ac = ({
|
|
3497
3537
|
onRequestClose: e,
|
|
3498
3538
|
navigation: t
|
|
3499
|
-
}) => /* @__PURE__ */
|
|
3500
|
-
/* @__PURE__ */
|
|
3501
|
-
/* @__PURE__ */
|
|
3502
|
-
t.map((r) => /* @__PURE__ */
|
|
3503
|
-
|
|
3539
|
+
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3540
|
+
/* @__PURE__ */ s.jsxs(Or, { children: [
|
|
3541
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "navigation-before" }),
|
|
3542
|
+
t.map((r) => /* @__PURE__ */ s.jsx(
|
|
3543
|
+
rt,
|
|
3504
3544
|
{
|
|
3505
3545
|
item: r
|
|
3506
3546
|
},
|
|
3507
3547
|
r.type + (r.label ?? "") + ("path" in r ? r.path : "") + ("file" in r ? r.file : "") + ("to" in r ? r.to : "")
|
|
3508
3548
|
)),
|
|
3509
|
-
/* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "navigation-after" })
|
|
3510
3550
|
] }),
|
|
3511
|
-
/* @__PURE__ */
|
|
3512
|
-
|
|
3551
|
+
/* @__PURE__ */ s.jsx(
|
|
3552
|
+
er,
|
|
3513
3553
|
{
|
|
3514
3554
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
3515
3555
|
"aria-describedby": void 0,
|
|
3516
|
-
children: /* @__PURE__ */
|
|
3517
|
-
/* @__PURE__ */
|
|
3518
|
-
t.map((r) => /* @__PURE__ */
|
|
3519
|
-
|
|
3556
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
3557
|
+
/* @__PURE__ */ s.jsx(Xt, { children: /* @__PURE__ */ s.jsx(tr, { children: "Navigation" }) }),
|
|
3558
|
+
t.map((r) => /* @__PURE__ */ s.jsx(
|
|
3559
|
+
rt,
|
|
3520
3560
|
{
|
|
3521
3561
|
item: r,
|
|
3522
3562
|
onRequestClose: e
|
|
@@ -3526,52 +3566,52 @@ const Cc = ({
|
|
|
3526
3566
|
] })
|
|
3527
3567
|
}
|
|
3528
3568
|
)
|
|
3529
|
-
] }),
|
|
3530
|
-
const [t, r] = G(!1), { navigation: n } =
|
|
3531
|
-
return /* @__PURE__ */
|
|
3532
|
-
|
|
3569
|
+
] }), Ic = ({ children: e }) => {
|
|
3570
|
+
const [t, r] = G(!1), { navigation: n } = Bt(), o = n.length > 0, a = Re().state === "loading", { options: i } = M();
|
|
3571
|
+
return /* @__PURE__ */ s.jsxs(
|
|
3572
|
+
Cr,
|
|
3533
3573
|
{
|
|
3534
3574
|
direction: i.site?.dir === "rtl" ? "right" : "left",
|
|
3535
3575
|
open: t,
|
|
3536
3576
|
onOpenChange: (u) => r(u),
|
|
3537
3577
|
children: [
|
|
3538
|
-
o && /* @__PURE__ */
|
|
3539
|
-
|
|
3578
|
+
o && /* @__PURE__ */ s.jsx(
|
|
3579
|
+
Ac,
|
|
3540
3580
|
{
|
|
3541
3581
|
onRequestClose: () => r(!1),
|
|
3542
3582
|
navigation: n
|
|
3543
3583
|
}
|
|
3544
3584
|
),
|
|
3545
|
-
o && /* @__PURE__ */
|
|
3546
|
-
/* @__PURE__ */
|
|
3547
|
-
/* @__PURE__ */
|
|
3585
|
+
o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(Zc, { className: "flex items-center gap-2 px-4", children: [
|
|
3586
|
+
/* @__PURE__ */ s.jsx(Vn, { size: 16, strokeWidth: 1.5 }),
|
|
3587
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
3548
3588
|
] }) }),
|
|
3549
|
-
/* @__PURE__ */
|
|
3589
|
+
/* @__PURE__ */ s.jsxs(
|
|
3550
3590
|
"main",
|
|
3551
3591
|
{
|
|
3552
3592
|
"data-pagefind-body": !0,
|
|
3553
3593
|
className: N(
|
|
3554
3594
|
"px-4 lg:pe-8 lg:px-8",
|
|
3555
3595
|
!o && "col-span-full",
|
|
3556
|
-
|
|
3596
|
+
a && "animate-pulse"
|
|
3557
3597
|
),
|
|
3558
3598
|
children: [
|
|
3559
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "content-before" }),
|
|
3560
3600
|
e,
|
|
3561
|
-
/* @__PURE__ */
|
|
3601
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "content-after" })
|
|
3562
3602
|
]
|
|
3563
3603
|
}
|
|
3564
3604
|
)
|
|
3565
3605
|
]
|
|
3566
3606
|
}
|
|
3567
3607
|
);
|
|
3568
|
-
},
|
|
3569
|
-
const { meta: t, authentication: r, options: n } = M(), o =
|
|
3570
|
-
return
|
|
3608
|
+
}, Rc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(Gt, {}) }), Dc = ({ children: e }) => {
|
|
3609
|
+
const { meta: t, authentication: r, options: n } = M(), o = xe();
|
|
3610
|
+
return Pn(), uc(), F(() => {
|
|
3571
3611
|
r?.onPageLoad?.();
|
|
3572
|
-
}, [r]), /* @__PURE__ */
|
|
3573
|
-
/* @__PURE__ */
|
|
3574
|
-
n.canonicalUrlOrigin && /* @__PURE__ */
|
|
3612
|
+
}, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3613
|
+
/* @__PURE__ */ s.jsxs(Ie, { titleTemplate: t?.title, children: [
|
|
3614
|
+
n.canonicalUrlOrigin && /* @__PURE__ */ s.jsx(
|
|
3575
3615
|
"link",
|
|
3576
3616
|
{
|
|
3577
3617
|
rel: "canonical",
|
|
@@ -3582,13 +3622,13 @@ const Cc = ({
|
|
|
3582
3622
|
)
|
|
3583
3623
|
}
|
|
3584
3624
|
),
|
|
3585
|
-
t?.description && /* @__PURE__ */
|
|
3586
|
-
t?.favicon && /* @__PURE__ */
|
|
3625
|
+
t?.description && /* @__PURE__ */ s.jsx("meta", { name: "description", content: t.description }),
|
|
3626
|
+
t?.favicon && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: t.favicon })
|
|
3587
3627
|
] }),
|
|
3588
|
-
/* @__PURE__ */
|
|
3589
|
-
/* @__PURE__ */
|
|
3590
|
-
/* @__PURE__ */
|
|
3591
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "layout-before-head" }),
|
|
3629
|
+
/* @__PURE__ */ s.jsx(Zr, {}),
|
|
3630
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "layout-after-head" }),
|
|
3631
|
+
/* @__PURE__ */ s.jsx(
|
|
3592
3632
|
"div",
|
|
3593
3633
|
{
|
|
3594
3634
|
className: N(
|
|
@@ -3596,20 +3636,20 @@ const Cc = ({
|
|
|
3596
3636
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
3597
3637
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
3598
3638
|
),
|
|
3599
|
-
children: /* @__PURE__ */
|
|
3639
|
+
children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(Rc, {}), children: /* @__PURE__ */ s.jsx(Ic, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) })
|
|
3600
3640
|
}
|
|
3601
3641
|
),
|
|
3602
|
-
/* @__PURE__ */
|
|
3642
|
+
/* @__PURE__ */ s.jsx(fc, {})
|
|
3603
3643
|
] });
|
|
3604
|
-
},
|
|
3644
|
+
}, Mc = ({
|
|
3605
3645
|
title: e = "An error occurred",
|
|
3606
3646
|
message: t,
|
|
3607
3647
|
category: r
|
|
3608
|
-
}) => /* @__PURE__ */
|
|
3609
|
-
r && /* @__PURE__ */
|
|
3610
|
-
e && /* @__PURE__ */
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
] }),
|
|
3648
|
+
}) => /* @__PURE__ */ s.jsxs(Kt, { className: "h-full pt-(--padding-content-top)", children: [
|
|
3649
|
+
r && /* @__PURE__ */ s.jsx(En, { children: r }),
|
|
3650
|
+
e && /* @__PURE__ */ s.jsx(Sn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
3651
|
+
/* @__PURE__ */ s.jsx("p", { children: t })
|
|
3652
|
+
] }), Fc = (e) => {
|
|
3613
3653
|
switch (e) {
|
|
3614
3654
|
case 400:
|
|
3615
3655
|
return {
|
|
@@ -3672,21 +3712,21 @@ const Cc = ({
|
|
|
3672
3712
|
message: "Something went wrong while processing your request."
|
|
3673
3713
|
};
|
|
3674
3714
|
}
|
|
3675
|
-
},
|
|
3676
|
-
const r =
|
|
3677
|
-
return /* @__PURE__ */
|
|
3678
|
-
|
|
3715
|
+
}, qc = ({ statusCode: e, message: t }) => {
|
|
3716
|
+
const r = Fc(e);
|
|
3717
|
+
return /* @__PURE__ */ s.jsx(
|
|
3718
|
+
Mc,
|
|
3679
3719
|
{
|
|
3680
3720
|
title: r.title,
|
|
3681
3721
|
message: t ?? r.message,
|
|
3682
3722
|
category: e
|
|
3683
3723
|
}
|
|
3684
3724
|
);
|
|
3685
|
-
},
|
|
3725
|
+
}, Uc = Me(null), Ee = {
|
|
3686
3726
|
didCatch: !1,
|
|
3687
3727
|
error: null
|
|
3688
3728
|
};
|
|
3689
|
-
class
|
|
3729
|
+
class Lc extends Rn {
|
|
3690
3730
|
constructor(t) {
|
|
3691
3731
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ee;
|
|
3692
3732
|
}
|
|
@@ -3701,10 +3741,10 @@ class Fc extends Cn {
|
|
|
3701
3741
|
error: t
|
|
3702
3742
|
} = this.state;
|
|
3703
3743
|
if (t !== null) {
|
|
3704
|
-
for (var r, n, o = arguments.length,
|
|
3705
|
-
|
|
3744
|
+
for (var r, n, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
|
|
3745
|
+
a[i] = arguments[i];
|
|
3706
3746
|
(r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
|
|
3707
|
-
args:
|
|
3747
|
+
args: a,
|
|
3708
3748
|
reason: "imperative-api"
|
|
3709
3749
|
}), this.setState(Ee);
|
|
3710
3750
|
}
|
|
@@ -3719,9 +3759,9 @@ class Fc extends Cn {
|
|
|
3719
3759
|
} = this.state, {
|
|
3720
3760
|
resetKeys: o
|
|
3721
3761
|
} = this.props;
|
|
3722
|
-
if (n && r.error !== null &&
|
|
3723
|
-
var
|
|
3724
|
-
(
|
|
3762
|
+
if (n && r.error !== null && Qc(t.resetKeys, o)) {
|
|
3763
|
+
var a, i;
|
|
3764
|
+
(a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
|
|
3725
3765
|
next: o,
|
|
3726
3766
|
prev: t.resetKeys,
|
|
3727
3767
|
reason: "keys"
|
|
@@ -3735,38 +3775,38 @@ class Fc extends Cn {
|
|
|
3735
3775
|
FallbackComponent: n,
|
|
3736
3776
|
fallback: o
|
|
3737
3777
|
} = this.props, {
|
|
3738
|
-
didCatch:
|
|
3778
|
+
didCatch: a,
|
|
3739
3779
|
error: i
|
|
3740
3780
|
} = this.state;
|
|
3741
3781
|
let u = t;
|
|
3742
|
-
if (
|
|
3743
|
-
const
|
|
3782
|
+
if (a) {
|
|
3783
|
+
const h = {
|
|
3744
3784
|
error: i,
|
|
3745
3785
|
resetErrorBoundary: this.resetErrorBoundary
|
|
3746
3786
|
};
|
|
3747
3787
|
if (typeof r == "function")
|
|
3748
|
-
u = r(
|
|
3788
|
+
u = r(h);
|
|
3749
3789
|
else if (n)
|
|
3750
|
-
u =
|
|
3790
|
+
u = nt(n, h);
|
|
3751
3791
|
else if (o !== void 0)
|
|
3752
3792
|
u = o;
|
|
3753
3793
|
else
|
|
3754
3794
|
throw i;
|
|
3755
3795
|
}
|
|
3756
|
-
return
|
|
3796
|
+
return nt(Uc.Provider, {
|
|
3757
3797
|
value: {
|
|
3758
|
-
didCatch:
|
|
3798
|
+
didCatch: a,
|
|
3759
3799
|
error: i,
|
|
3760
3800
|
resetErrorBoundary: this.resetErrorBoundary
|
|
3761
3801
|
}
|
|
3762
3802
|
}, u);
|
|
3763
3803
|
}
|
|
3764
3804
|
}
|
|
3765
|
-
function
|
|
3805
|
+
function Qc() {
|
|
3766
3806
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
3767
3807
|
return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
|
|
3768
3808
|
}
|
|
3769
|
-
let
|
|
3809
|
+
let Bc = () => ({
|
|
3770
3810
|
emit(e, ...t) {
|
|
3771
3811
|
for (let r = this.events[e] || [], n = 0, o = r.length; n < o; n++)
|
|
3772
3812
|
r[n](...t);
|
|
@@ -3778,8 +3818,8 @@ let Uc = () => ({
|
|
|
3778
3818
|
};
|
|
3779
3819
|
}
|
|
3780
3820
|
});
|
|
3781
|
-
const
|
|
3782
|
-
class
|
|
3821
|
+
const Hc = (e) => Object.entries(e);
|
|
3822
|
+
class Kc {
|
|
3783
3823
|
plugins;
|
|
3784
3824
|
navigation;
|
|
3785
3825
|
meta;
|
|
@@ -3788,31 +3828,31 @@ class Qc {
|
|
|
3788
3828
|
queryClient;
|
|
3789
3829
|
options;
|
|
3790
3830
|
navigationPlugins;
|
|
3791
|
-
emitter =
|
|
3831
|
+
emitter = Bc();
|
|
3792
3832
|
constructor(t, r) {
|
|
3793
3833
|
const n = (t.protectedRoutes ?? []).concat(
|
|
3794
3834
|
t.plugins?.flatMap(
|
|
3795
|
-
(o) =>
|
|
3835
|
+
(o) => ot(o) ? o.getProtectedRoutes?.() ?? [] : []
|
|
3796
3836
|
) ?? []
|
|
3797
3837
|
);
|
|
3798
|
-
this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(
|
|
3799
|
-
|
|
3800
|
-
this.emitter.on(
|
|
3838
|
+
this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ot), this.authentication = this.plugins.find(Gn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
|
|
3839
|
+
Jn(o) && Hc(o.events).forEach(([a, i]) => {
|
|
3840
|
+
this.emitter.on(a, i);
|
|
3801
3841
|
});
|
|
3802
|
-
}),
|
|
3842
|
+
}), vn.subscribe((o, a) => {
|
|
3803
3843
|
this.emitEvent("auth", {
|
|
3804
|
-
prev:
|
|
3844
|
+
prev: a,
|
|
3805
3845
|
next: o
|
|
3806
3846
|
});
|
|
3807
3847
|
});
|
|
3808
3848
|
}
|
|
3809
3849
|
initialize = async () => {
|
|
3810
3850
|
await Promise.all(
|
|
3811
|
-
this.plugins.filter(
|
|
3851
|
+
this.plugins.filter(Xn).map((t) => t.initialize?.(this))
|
|
3812
3852
|
);
|
|
3813
3853
|
};
|
|
3814
3854
|
getApiIdentities = async () => (await Promise.all(
|
|
3815
|
-
this.plugins.filter(
|
|
3855
|
+
this.plugins.filter(eo).map((r) => r.getIdentities(this))
|
|
3816
3856
|
)).flat();
|
|
3817
3857
|
addEventListener(t, r) {
|
|
3818
3858
|
return this.emitter.on(t, r);
|
|
@@ -3823,97 +3863,102 @@ class Qc {
|
|
|
3823
3863
|
(n) => n.getNavigation?.(ee(t), this)
|
|
3824
3864
|
)
|
|
3825
3865
|
)).flatMap((n) => n ?? []);
|
|
3866
|
+
getProfileMenuItems = () => this.plugins.filter((r) => Jt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(Wc(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
|
|
3826
3867
|
signRequest = async (t) => {
|
|
3827
3868
|
if (!this.authentication)
|
|
3828
3869
|
throw new Error("No authentication provider configured");
|
|
3829
3870
|
return await this.authentication.signRequest(t);
|
|
3830
3871
|
};
|
|
3831
3872
|
}
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3873
|
+
const Wc = (e) => (t, r) => {
|
|
3874
|
+
const n = e.indexOf(t.category ?? "middle"), o = e.indexOf(r.category ?? "middle");
|
|
3875
|
+
return n - o;
|
|
3876
|
+
};
|
|
3877
|
+
function Vc({ error: e, resetErrorBoundary: t }) {
|
|
3878
|
+
return /* @__PURE__ */ s.jsx(Ht, { error: e });
|
|
3879
|
+
}
|
|
3880
|
+
const me = globalThis;
|
|
3881
|
+
(!me.requestIdleCallback || !me.cancelIdleCallback) && (me.requestIdleCallback = (e) => setTimeout(e, 1), me.cancelIdleCallback = clearTimeout);
|
|
3882
|
+
const Nr = {
|
|
3883
|
+
Header: Zr
|
|
3884
|
+
}, Yc = Me(Nr), Gc = Yc.Provider, Jc = () => {
|
|
3885
|
+
const e = xe(), t = M(), r = K(void 0);
|
|
3841
3886
|
return F(() => {
|
|
3842
3887
|
t.emitEvent("location", {
|
|
3843
3888
|
from: r.current,
|
|
3844
3889
|
to: e
|
|
3845
3890
|
}), r.current = e;
|
|
3846
3891
|
}, [t, e]), null;
|
|
3847
|
-
},
|
|
3892
|
+
}, Xc = ({
|
|
3848
3893
|
children: e,
|
|
3849
3894
|
context: t
|
|
3850
|
-
}) => (
|
|
3895
|
+
}) => (yn({
|
|
3851
3896
|
queryFn: async () => (await t.initialize(), !0),
|
|
3852
|
-
queryKey: ["zudoku-initialize",
|
|
3853
|
-
}), /* @__PURE__ */
|
|
3854
|
-
let
|
|
3855
|
-
const
|
|
3897
|
+
queryKey: ["zudoku-initialize", xn]
|
|
3898
|
+
}), /* @__PURE__ */ s.jsx(_n.Provider, { value: t, children: e }));
|
|
3899
|
+
let At;
|
|
3900
|
+
const Ar = Yt(
|
|
3856
3901
|
({ children: e, ...t }) => {
|
|
3857
|
-
const r =
|
|
3858
|
-
() => ({ ...
|
|
3902
|
+
const r = $e(
|
|
3903
|
+
() => ({ ...Nr, ...t.overrides }),
|
|
3859
3904
|
[t.overrides]
|
|
3860
|
-
), n =
|
|
3861
|
-
...(t.plugins ?? []).filter(
|
|
3905
|
+
), n = xe(), o = $e(() => ({
|
|
3906
|
+
...(t.plugins ?? []).filter(to).flatMap(
|
|
3862
3907
|
(l) => l.getMdxComponents ? [l.getMdxComponents()] : []
|
|
3863
3908
|
).reduce(
|
|
3864
3909
|
(l, g) => ({ ...l, ...g }),
|
|
3865
3910
|
{}
|
|
3866
3911
|
),
|
|
3867
|
-
...
|
|
3912
|
+
...Zn,
|
|
3868
3913
|
...t.mdx?.components
|
|
3869
|
-
}), [t.mdx?.components, t.plugins]), { stagger:
|
|
3870
|
-
() => i ? { stagger: !0 } : { stagger:
|
|
3871
|
-
[
|
|
3872
|
-
), f =
|
|
3914
|
+
}), [t.mdx?.components, t.plugins]), { stagger: a } = Dn(Ze), [i, u] = G(!1), h = $e(
|
|
3915
|
+
() => i ? { stagger: !0 } : { stagger: a },
|
|
3916
|
+
[a, i]
|
|
3917
|
+
), f = Re(), y = Ut();
|
|
3873
3918
|
F(() => {
|
|
3874
3919
|
i || u(!0);
|
|
3875
|
-
}, [i, f.location]),
|
|
3876
|
-
const
|
|
3877
|
-
(
|
|
3878
|
-
).map((
|
|
3879
|
-
return /* @__PURE__ */
|
|
3880
|
-
|
|
3881
|
-
/* @__PURE__ */
|
|
3882
|
-
/* @__PURE__ */
|
|
3883
|
-
/* @__PURE__ */
|
|
3920
|
+
}, [i, f.location]), At ??= new Kc(t, y);
|
|
3921
|
+
const p = t.plugins?.flatMap(
|
|
3922
|
+
(m) => ro(m) ? m.getHead?.({ location: n }) ?? [] : []
|
|
3923
|
+
).map((m, l) => /* @__PURE__ */ s.jsx(Ie, { children: m }, l));
|
|
3924
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3925
|
+
p,
|
|
3926
|
+
/* @__PURE__ */ s.jsx(Ze.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(Xc, { context: At, children: [
|
|
3927
|
+
/* @__PURE__ */ s.jsx(Jc, {}),
|
|
3928
|
+
/* @__PURE__ */ s.jsx(Cn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(tn, { components: o, children: /* @__PURE__ */ s.jsx(rn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Gc, { value: r, children: /* @__PURE__ */ s.jsx(Tn, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) }) }) }) })
|
|
3884
3929
|
] }) })
|
|
3885
3930
|
] });
|
|
3886
3931
|
}
|
|
3887
3932
|
);
|
|
3888
|
-
|
|
3889
|
-
const
|
|
3890
|
-
|
|
3891
|
-
const
|
|
3933
|
+
Ar.displayName = "ZudokoInner";
|
|
3934
|
+
const Ir = (e) => /* @__PURE__ */ s.jsx(Lc, { FallbackComponent: Vc, children: /* @__PURE__ */ s.jsx(Ar, { ...e }) });
|
|
3935
|
+
Ir.displayName = "Zudoku";
|
|
3936
|
+
const _u = Dc, bu = On, wu = wo, ju = $o, ku = zo, $u = en, zu = Ie, Pu = qc, Eu = An, Su = Nn, Zu = Gt, Cu = te, Tu = Wt, Ou = De, Nu = cc, Au = Ir, Iu = Kt, Ru = nn, eu = M, Du = oe, Mu = bn, Fu = wn, qu = Dt;
|
|
3892
3937
|
export {
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3938
|
+
Tu as B,
|
|
3939
|
+
Eu as C,
|
|
3940
|
+
zu as H,
|
|
3941
|
+
Ou as L,
|
|
3942
|
+
Su as M,
|
|
3943
|
+
bu as R,
|
|
3944
|
+
Zu as S,
|
|
3945
|
+
Iu as T,
|
|
3946
|
+
Au as Z,
|
|
3947
|
+
$c as a,
|
|
3948
|
+
Du as b,
|
|
3949
|
+
_u as c,
|
|
3950
|
+
wu as d,
|
|
3951
|
+
ju as e,
|
|
3952
|
+
ku as f,
|
|
3953
|
+
$u as g,
|
|
3954
|
+
Pu as h,
|
|
3955
|
+
Cu as i,
|
|
3956
|
+
Nu as j,
|
|
3957
|
+
Ru as k,
|
|
3958
|
+
Mu as l,
|
|
3959
|
+
Fu as m,
|
|
3960
|
+
qu as n,
|
|
3961
|
+
Hc as o,
|
|
3962
|
+
eu as u
|
|
3918
3963
|
};
|
|
3919
|
-
//# sourceMappingURL=index-
|
|
3964
|
+
//# sourceMappingURL=index-C_xVKbf9.js.map
|