zudoku 0.66.6 → 0.66.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/components/Pagination.js +2 -2
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/index.d.ts +3 -0
- package/dist/lib/components/index.js +4 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +2 -2
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/core/react-query.d.ts +1 -0
- package/dist/lib/core/react-query.js +2 -0
- package/dist/lib/core/react-query.js.map +1 -0
- package/dist/lib/oas/graphql/circular.d.ts +1 -0
- package/dist/lib/oas/graphql/circular.js +15 -8
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.d.ts +1 -0
- package/dist/lib/oas/graphql/circular.test.js +152 -0
- package/dist/lib/oas/graphql/circular.test.js.map +1 -0
- package/dist/vite/config.js +2 -0
- package/dist/vite/config.js.map +1 -1
- package/lib/{ClaudeLogo-BpqHBMS8.js → ClaudeLogo-DHxJUhN_.js} +20 -20
- package/lib/ClaudeLogo-DHxJUhN_.js.map +1 -0
- package/lib/HydrationBoundary-CNF2ZV3E.js +601 -0
- package/lib/HydrationBoundary-CNF2ZV3E.js.map +1 -0
- package/lib/Input-Cx-GeKoF.js +22 -0
- package/lib/Input-Cx-GeKoF.js.map +1 -0
- package/lib/{MdxPage-CeFSxGb_.js → MdxPage-CD36PJ17.js} +7 -7
- package/lib/{MdxPage-CeFSxGb_.js.map → MdxPage-CD36PJ17.js.map} +1 -1
- package/lib/{Mermaid-COVtAqcZ.js → Mermaid-Koc3z8mU.js} +3 -3
- package/lib/{Mermaid-COVtAqcZ.js.map → Mermaid-Koc3z8mU.js.map} +1 -1
- package/lib/{OAuthErrorPage-XTPBOMN8.js → OAuthErrorPage-4mN5DA86.js} +23 -22
- package/lib/{OAuthErrorPage-XTPBOMN8.js.map → OAuthErrorPage-4mN5DA86.js.map} +1 -1
- package/lib/{OasProvider-BS4rdzZC.js → OasProvider-DSe-hk5Y.js} +3 -3
- package/lib/{OasProvider-BS4rdzZC.js.map → OasProvider-DSe-hk5Y.js.map} +1 -1
- package/lib/{OperationList-Dg0Nm1tg.js → OperationList-CaknPbvq.js} +32 -31
- package/lib/{OperationList-Dg0Nm1tg.js.map → OperationList-CaknPbvq.js.map} +1 -1
- package/lib/{RouteGuard-kCicqF3x.js → RouteGuard--A04ESy8.js} +3 -3
- package/lib/{RouteGuard-kCicqF3x.js.map → RouteGuard--A04ESy8.js.map} +1 -1
- package/lib/{SchemaList-DZKBH2WC.js → SchemaList-Dw3-CJPb.js} +7 -7
- package/lib/{SchemaList-DZKBH2WC.js.map → SchemaList-Dw3-CJPb.js.map} +1 -1
- package/lib/{SchemaView-DBaqV2yU.js → SchemaView-DyJkiQkD.js} +3 -3
- package/lib/{SchemaView-DBaqV2yU.js.map → SchemaView-DyJkiQkD.js.map} +1 -1
- package/lib/{SignUp-DNmOFbLD.js → SignUp-DRvN-8cq.js} +3 -3
- package/lib/{SignUp-DNmOFbLD.js.map → SignUp-DRvN-8cq.js.map} +1 -1
- package/lib/{SyntaxHighlight-C75W8uCn.js → SyntaxHighlight-klTH8c6-.js} +2 -2
- package/lib/{SyntaxHighlight-C75W8uCn.js.map → SyntaxHighlight-klTH8c6-.js.map} +1 -1
- package/lib/{Toc-ICilS65g.js → Toc-PbuF-u9x.js} +2 -2
- package/lib/{Toc-ICilS65g.js.map → Toc-PbuF-u9x.js.map} +1 -1
- package/lib/ZudokuContext-BZB1TWdT.js +387 -0
- package/lib/ZudokuContext-BZB1TWdT.js.map +1 -0
- package/lib/{circular-DleWPaPP.js → circular-DFquXeY2.js} +21 -19
- package/lib/{circular-DleWPaPP.js.map → circular-DFquXeY2.js.map} +1 -1
- package/lib/{createServer-nqMW9kro.js → createServer-BXZ0CAUn.js} +4 -4
- package/lib/{createServer-nqMW9kro.js.map → createServer-BXZ0CAUn.js.map} +1 -1
- package/lib/{errors-D2FbERKl.js → errors-rWHkzVTd.js} +2 -2
- package/lib/{errors-D2FbERKl.js.map → errors-rWHkzVTd.js.map} +1 -1
- package/lib/{firebase-Cn9CmB6h.js → firebase-BmGU1FuD.js} +17 -15
- package/lib/{firebase-Cn9CmB6h.js.map → firebase-BmGU1FuD.js.map} +1 -1
- package/lib/{hook-B2nmfmYN.js → hook-BGlHBdET.js} +2 -2
- package/lib/{hook-B2nmfmYN.js.map → hook-BGlHBdET.js.map} +1 -1
- package/lib/{index-D5NeW2z6.js → index-BDsEwofZ.js} +1709 -1707
- package/lib/index-BDsEwofZ.js.map +1 -0
- package/lib/{index-CSDW7CHl.js → index-BQB9hb6n.js} +151 -149
- package/lib/{index-CSDW7CHl.js.map → index-BQB9hb6n.js.map} +1 -1
- package/lib/{index-CC4L3gtM.js → index-DBjOT2H1.js} +3 -3
- package/lib/{index-CC4L3gtM.js.map → index-DBjOT2H1.js.map} +1 -1
- package/lib/{index-DSKBOdpT.js → index-DRBOFufT.js} +2 -2
- package/lib/{index-DSKBOdpT.js.map → index-DRBOFufT.js.map} +1 -1
- package/lib/{index.esm-B35e7P83.js → index.esm-Cx8B1YJQ.js} +2 -2
- package/lib/index.esm-Cx8B1YJQ.js.map +1 -0
- package/lib/{mutation-BOYnEDf6.js → mutation-BISOc7OM.js} +2 -2
- package/lib/{mutation-BOYnEDf6.js.map → mutation-BISOc7OM.js.map} +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/{Input-B6YcAPv-.js → useMutation-CFMGlAMW.js} +23 -40
- package/lib/useMutation-CFMGlAMW.js.map +1 -0
- package/lib/useSuspenseQuery-CSB_rVek.js +1226 -0
- package/lib/useSuspenseQuery-CSB_rVek.js.map +1 -0
- package/lib/zudoku.__internal.js +928 -1457
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +4 -4
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.auth-supabase.js +4 -4
- package/lib/zudoku.components.js +21 -18
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +6 -5
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +23 -21
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +29 -28
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.react-query.js +440 -0
- package/lib/zudoku.react-query.js.map +1 -0
- package/package.json +5 -1
- package/src/lib/components/Pagination.tsx +4 -5
- package/src/lib/components/index.ts +4 -0
- package/src/lib/components/navigation/NavigationItem.tsx +9 -3
- package/src/lib/core/react-query.ts +1 -0
- package/src/lib/oas/graphql/circular.test.ts +186 -0
- package/src/lib/oas/graphql/circular.ts +22 -16
- package/lib/ClaudeLogo-BpqHBMS8.js.map +0 -1
- package/lib/Input-B6YcAPv-.js.map +0 -1
- package/lib/ZudokuContext-Ea7gxmGq.js +0 -1581
- package/lib/ZudokuContext-Ea7gxmGq.js.map +0 -1
- package/lib/index-D5NeW2z6.js.map +0 -1
- package/lib/index.esm-B35e7P83.js.map +0 -1
package/lib/zudoku.__internal.js
CHANGED
|
@@ -1,550 +1,21 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { j as
|
|
3
|
-
import {
|
|
4
|
-
import { M as
|
|
5
|
-
import * as
|
|
6
|
-
import { StrictMode as
|
|
7
|
-
import { n as
|
|
8
|
-
import * as
|
|
9
|
-
import { f as
|
|
10
|
-
import { B as
|
|
11
|
-
import { CircleFadingArrowUpIcon as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { c as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
return e;
|
|
20
|
-
}
|
|
21
|
-
function $e(e, t, n) {
|
|
22
|
-
if (typeof t != "object" || t === null)
|
|
23
|
-
return;
|
|
24
|
-
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? bn, a = t.mutations || [], u = t.queries || [];
|
|
25
|
-
a.forEach(({ state: d, ...l }) => {
|
|
26
|
-
r.build(
|
|
27
|
-
e,
|
|
28
|
-
{
|
|
29
|
-
...e.getDefaultOptions().hydrate?.mutations,
|
|
30
|
-
...n?.defaultOptions?.mutations,
|
|
31
|
-
...l
|
|
32
|
-
},
|
|
33
|
-
d
|
|
34
|
-
);
|
|
35
|
-
}), u.forEach(
|
|
36
|
-
({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
|
|
37
|
-
const m = p ? Et(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
|
|
38
|
-
let Z = o.get(f);
|
|
39
|
-
const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
|
|
40
|
-
if (Z) {
|
|
41
|
-
const x = m && // We only need this undefined check to handle older dehydration
|
|
42
|
-
// payloads that might not have dehydratedAt
|
|
43
|
-
v !== void 0 && v > Z.state.dataUpdatedAt;
|
|
44
|
-
if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
|
|
45
|
-
const { fetchStatus: S, ...H } = l;
|
|
46
|
-
Z.setState({
|
|
47
|
-
...H,
|
|
48
|
-
data: P
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
} else
|
|
52
|
-
Z = o.build(
|
|
53
|
-
e,
|
|
54
|
-
{
|
|
55
|
-
...e.getDefaultOptions().hydrate?.queries,
|
|
56
|
-
...n?.defaultOptions?.queries,
|
|
57
|
-
queryKey: d,
|
|
58
|
-
queryHash: f,
|
|
59
|
-
meta: g
|
|
60
|
-
},
|
|
61
|
-
// Reset fetch status to idle to avoid
|
|
62
|
-
// query being stuck in fetching state upon hydration
|
|
63
|
-
{
|
|
64
|
-
...l,
|
|
65
|
-
data: P,
|
|
66
|
-
fetchStatus: "idle",
|
|
67
|
-
status: P !== void 0 ? "success" : l.status
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
|
|
71
|
-
// this is always true for new queries
|
|
72
|
-
(v === void 0 || v > Z.state.dataUpdatedAt) && Z.fetch(void 0, {
|
|
73
|
-
// RSC transformed promises are not thenable
|
|
74
|
-
initialPromise: Promise.resolve(p).then(s)
|
|
75
|
-
}).catch(A);
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
function je(e) {
|
|
80
|
-
return {
|
|
81
|
-
onFetch: (t, n) => {
|
|
82
|
-
const r = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
|
|
83
|
-
let u = { pages: [], pageParams: [] }, d = 0;
|
|
84
|
-
const l = async () => {
|
|
85
|
-
let f = !1;
|
|
86
|
-
const g = (m) => {
|
|
87
|
-
Object.defineProperty(m, "signal", {
|
|
88
|
-
enumerable: !0,
|
|
89
|
-
get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
|
|
90
|
-
f = !0;
|
|
91
|
-
}), t.signal)
|
|
92
|
-
});
|
|
93
|
-
}, p = At(t.options, t.fetchOptions), v = async (m, k, P) => {
|
|
94
|
-
if (f)
|
|
95
|
-
return Promise.reject();
|
|
96
|
-
if (k == null && m.pages.length)
|
|
97
|
-
return Promise.resolve(m);
|
|
98
|
-
const L = (() => {
|
|
99
|
-
const H = {
|
|
100
|
-
client: t.client,
|
|
101
|
-
queryKey: t.queryKey,
|
|
102
|
-
pageParam: k,
|
|
103
|
-
direction: P ? "backward" : "forward",
|
|
104
|
-
meta: t.options.meta
|
|
105
|
-
};
|
|
106
|
-
return g(H), H;
|
|
107
|
-
})(), $ = await p(L), { maxPages: x } = t.options, S = P ? Tt : Dt;
|
|
108
|
-
return {
|
|
109
|
-
pages: S(m.pages, $, x),
|
|
110
|
-
pageParams: S(m.pageParams, k, x)
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
if (o && s.length) {
|
|
114
|
-
const m = o === "backward", k = m ? zn : Pe, P = {
|
|
115
|
-
pages: s,
|
|
116
|
-
pageParams: a
|
|
117
|
-
}, Z = k(r, P);
|
|
118
|
-
u = await v(P, Z, m);
|
|
119
|
-
} else {
|
|
120
|
-
const m = e ?? s.length;
|
|
121
|
-
do {
|
|
122
|
-
const k = d === 0 ? a[0] ?? r.initialPageParam : Pe(r, u);
|
|
123
|
-
if (d > 0 && k == null)
|
|
124
|
-
break;
|
|
125
|
-
u = await v(u, k), d++;
|
|
126
|
-
} while (d < m);
|
|
127
|
-
}
|
|
128
|
-
return u;
|
|
129
|
-
};
|
|
130
|
-
t.options.persister ? t.fetchFn = () => t.options.persister?.(
|
|
131
|
-
l,
|
|
132
|
-
{
|
|
133
|
-
client: t.client,
|
|
134
|
-
queryKey: t.queryKey,
|
|
135
|
-
meta: t.options.meta,
|
|
136
|
-
signal: t.signal
|
|
137
|
-
},
|
|
138
|
-
n
|
|
139
|
-
) : t.fetchFn = l;
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
function Pe(e, { pages: t, pageParams: n }) {
|
|
144
|
-
const r = t.length - 1;
|
|
145
|
-
return t.length > 0 ? e.getNextPageParam(
|
|
146
|
-
t[r],
|
|
147
|
-
t,
|
|
148
|
-
n[r],
|
|
149
|
-
n
|
|
150
|
-
) : void 0;
|
|
151
|
-
}
|
|
152
|
-
function zn(e, { pages: t, pageParams: n }) {
|
|
153
|
-
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
154
|
-
}
|
|
155
|
-
var kn = class extends Ve {
|
|
156
|
-
constructor(e = {}) {
|
|
157
|
-
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
158
|
-
}
|
|
159
|
-
#e;
|
|
160
|
-
#t;
|
|
161
|
-
#n;
|
|
162
|
-
build(e, t, n) {
|
|
163
|
-
const r = new qt({
|
|
164
|
-
client: e,
|
|
165
|
-
mutationCache: this,
|
|
166
|
-
mutationId: ++this.#n,
|
|
167
|
-
options: e.defaultMutationOptions(t),
|
|
168
|
-
state: n
|
|
169
|
-
});
|
|
170
|
-
return this.add(r), r;
|
|
171
|
-
}
|
|
172
|
-
add(e) {
|
|
173
|
-
this.#e.add(e);
|
|
174
|
-
const t = V(e);
|
|
175
|
-
if (typeof t == "string") {
|
|
176
|
-
const n = this.#t.get(t);
|
|
177
|
-
n ? n.push(e) : this.#t.set(t, [e]);
|
|
178
|
-
}
|
|
179
|
-
this.notify({ type: "added", mutation: e });
|
|
180
|
-
}
|
|
181
|
-
remove(e) {
|
|
182
|
-
if (this.#e.delete(e)) {
|
|
183
|
-
const t = V(e);
|
|
184
|
-
if (typeof t == "string") {
|
|
185
|
-
const n = this.#t.get(t);
|
|
186
|
-
if (n)
|
|
187
|
-
if (n.length > 1) {
|
|
188
|
-
const r = n.indexOf(e);
|
|
189
|
-
r !== -1 && n.splice(r, 1);
|
|
190
|
-
} else n[0] === e && this.#t.delete(t);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
this.notify({ type: "removed", mutation: e });
|
|
194
|
-
}
|
|
195
|
-
canRun(e) {
|
|
196
|
-
const t = V(e);
|
|
197
|
-
if (typeof t == "string") {
|
|
198
|
-
const r = this.#t.get(t)?.find(
|
|
199
|
-
(o) => o.state.status === "pending"
|
|
200
|
-
);
|
|
201
|
-
return !r || r === e;
|
|
202
|
-
} else
|
|
203
|
-
return !0;
|
|
204
|
-
}
|
|
205
|
-
runNext(e) {
|
|
206
|
-
const t = V(e);
|
|
207
|
-
return typeof t == "string" ? this.#t.get(t)?.find((r) => r !== e && r.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
208
|
-
}
|
|
209
|
-
clear() {
|
|
210
|
-
j.batch(() => {
|
|
211
|
-
this.#e.forEach((e) => {
|
|
212
|
-
this.notify({ type: "removed", mutation: e });
|
|
213
|
-
}), this.#e.clear(), this.#t.clear();
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
getAll() {
|
|
217
|
-
return Array.from(this.#e);
|
|
218
|
-
}
|
|
219
|
-
find(e) {
|
|
220
|
-
const t = { exact: !0, ...e };
|
|
221
|
-
return this.getAll().find(
|
|
222
|
-
(n) => ye(t, n)
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
findAll(e = {}) {
|
|
226
|
-
return this.getAll().filter((t) => ye(e, t));
|
|
227
|
-
}
|
|
228
|
-
notify(e) {
|
|
229
|
-
j.batch(() => {
|
|
230
|
-
this.listeners.forEach((t) => {
|
|
231
|
-
t(e);
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
resumePausedMutations() {
|
|
236
|
-
const e = this.getAll().filter((t) => t.state.isPaused);
|
|
237
|
-
return j.batch(
|
|
238
|
-
() => Promise.all(
|
|
239
|
-
e.map((t) => t.continue().catch(A))
|
|
240
|
-
)
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
function V(e) {
|
|
245
|
-
return e.options.scope?.id;
|
|
246
|
-
}
|
|
247
|
-
var xn = class extends Ve {
|
|
248
|
-
constructor(e = {}) {
|
|
249
|
-
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
250
|
-
}
|
|
251
|
-
#e;
|
|
252
|
-
build(e, t, n) {
|
|
253
|
-
const r = t.queryKey, o = t.queryHash ?? Je(r, t);
|
|
254
|
-
let s = this.get(o);
|
|
255
|
-
return s || (s = new St({
|
|
256
|
-
client: e,
|
|
257
|
-
queryKey: r,
|
|
258
|
-
queryHash: o,
|
|
259
|
-
options: e.defaultQueryOptions(t),
|
|
260
|
-
state: n,
|
|
261
|
-
defaultOptions: e.getQueryDefaults(r)
|
|
262
|
-
}), this.add(s)), s;
|
|
263
|
-
}
|
|
264
|
-
add(e) {
|
|
265
|
-
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
266
|
-
type: "added",
|
|
267
|
-
query: e
|
|
268
|
-
}));
|
|
269
|
-
}
|
|
270
|
-
remove(e) {
|
|
271
|
-
const t = this.#e.get(e.queryHash);
|
|
272
|
-
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
273
|
-
}
|
|
274
|
-
clear() {
|
|
275
|
-
j.batch(() => {
|
|
276
|
-
this.getAll().forEach((e) => {
|
|
277
|
-
this.remove(e);
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
get(e) {
|
|
282
|
-
return this.#e.get(e);
|
|
283
|
-
}
|
|
284
|
-
getAll() {
|
|
285
|
-
return [...this.#e.values()];
|
|
286
|
-
}
|
|
287
|
-
find(e) {
|
|
288
|
-
const t = { exact: !0, ...e };
|
|
289
|
-
return this.getAll().find(
|
|
290
|
-
(n) => we(t, n)
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
findAll(e = {}) {
|
|
294
|
-
const t = this.getAll();
|
|
295
|
-
return Object.keys(e).length > 0 ? t.filter((n) => we(e, n)) : t;
|
|
296
|
-
}
|
|
297
|
-
notify(e) {
|
|
298
|
-
j.batch(() => {
|
|
299
|
-
this.listeners.forEach((t) => {
|
|
300
|
-
t(e);
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
onFocus() {
|
|
305
|
-
j.batch(() => {
|
|
306
|
-
this.getAll().forEach((e) => {
|
|
307
|
-
e.onFocus();
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
onOnline() {
|
|
312
|
-
j.batch(() => {
|
|
313
|
-
this.getAll().forEach((e) => {
|
|
314
|
-
e.onOnline();
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
}, Zn = class {
|
|
319
|
-
#e;
|
|
320
|
-
#t;
|
|
321
|
-
#n;
|
|
322
|
-
#o;
|
|
323
|
-
#s;
|
|
324
|
-
#r;
|
|
325
|
-
#a;
|
|
326
|
-
#i;
|
|
327
|
-
constructor(e = {}) {
|
|
328
|
-
this.#e = e.queryCache || new xn(), this.#t = e.mutationCache || new kn(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
329
|
-
}
|
|
330
|
-
mount() {
|
|
331
|
-
this.#r++, this.#r === 1 && (this.#a = It.subscribe(async (e) => {
|
|
332
|
-
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
333
|
-
}), this.#i = be.subscribe(async (e) => {
|
|
334
|
-
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
335
|
-
}));
|
|
336
|
-
}
|
|
337
|
-
unmount() {
|
|
338
|
-
this.#r--, this.#r === 0 && (this.#a?.(), this.#a = void 0, this.#i?.(), this.#i = void 0);
|
|
339
|
-
}
|
|
340
|
-
isFetching(e) {
|
|
341
|
-
return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
342
|
-
}
|
|
343
|
-
isMutating(e) {
|
|
344
|
-
return this.#t.findAll({ ...e, status: "pending" }).length;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
348
|
-
* Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
|
|
349
|
-
*
|
|
350
|
-
* Hint: Do not use this function inside a component, because it won't receive updates.
|
|
351
|
-
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
352
|
-
*/
|
|
353
|
-
getQueryData(e) {
|
|
354
|
-
const t = this.defaultQueryOptions({ queryKey: e });
|
|
355
|
-
return this.#e.get(t.queryHash)?.state.data;
|
|
356
|
-
}
|
|
357
|
-
ensureQueryData(e) {
|
|
358
|
-
const t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
359
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ze(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
360
|
-
}
|
|
361
|
-
getQueriesData(e) {
|
|
362
|
-
return this.#e.findAll(e).map(({ queryKey: t, state: n }) => {
|
|
363
|
-
const r = n.data;
|
|
364
|
-
return [t, r];
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
setQueryData(e, t, n) {
|
|
368
|
-
const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
|
|
369
|
-
r.queryHash
|
|
370
|
-
)?.state.data, a = Ct(t, s);
|
|
371
|
-
if (a !== void 0)
|
|
372
|
-
return this.#e.build(this, r).setData(a, { ...n, manual: !0 });
|
|
373
|
-
}
|
|
374
|
-
setQueriesData(e, t, n) {
|
|
375
|
-
return j.batch(
|
|
376
|
-
() => this.#e.findAll(e).map(({ queryKey: r }) => [
|
|
377
|
-
r,
|
|
378
|
-
this.setQueryData(r, t, n)
|
|
379
|
-
])
|
|
380
|
-
);
|
|
381
|
-
}
|
|
382
|
-
getQueryState(e) {
|
|
383
|
-
const t = this.defaultQueryOptions({ queryKey: e });
|
|
384
|
-
return this.#e.get(
|
|
385
|
-
t.queryHash
|
|
386
|
-
)?.state;
|
|
387
|
-
}
|
|
388
|
-
removeQueries(e) {
|
|
389
|
-
const t = this.#e;
|
|
390
|
-
j.batch(() => {
|
|
391
|
-
t.findAll(e).forEach((n) => {
|
|
392
|
-
t.remove(n);
|
|
393
|
-
});
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
resetQueries(e, t) {
|
|
397
|
-
const n = this.#e;
|
|
398
|
-
return j.batch(() => (n.findAll(e).forEach((r) => {
|
|
399
|
-
r.reset();
|
|
400
|
-
}), this.refetchQueries(
|
|
401
|
-
{
|
|
402
|
-
type: "active",
|
|
403
|
-
...e
|
|
404
|
-
},
|
|
405
|
-
t
|
|
406
|
-
)));
|
|
407
|
-
}
|
|
408
|
-
cancelQueries(e, t = {}) {
|
|
409
|
-
const n = { revert: !0, ...t }, r = j.batch(
|
|
410
|
-
() => this.#e.findAll(e).map((o) => o.cancel(n))
|
|
411
|
-
);
|
|
412
|
-
return Promise.all(r).then(A).catch(A);
|
|
413
|
-
}
|
|
414
|
-
invalidateQueries(e, t = {}) {
|
|
415
|
-
return j.batch(() => (this.#e.findAll(e).forEach((n) => {
|
|
416
|
-
n.invalidate();
|
|
417
|
-
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
|
|
418
|
-
{
|
|
419
|
-
...e,
|
|
420
|
-
type: e?.refetchType ?? e?.type ?? "active"
|
|
421
|
-
},
|
|
422
|
-
t
|
|
423
|
-
)));
|
|
424
|
-
}
|
|
425
|
-
refetchQueries(e, t = {}) {
|
|
426
|
-
const n = {
|
|
427
|
-
...t,
|
|
428
|
-
cancelRefetch: t.cancelRefetch ?? !0
|
|
429
|
-
}, r = j.batch(
|
|
430
|
-
() => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
|
|
431
|
-
let s = o.fetch(void 0, n);
|
|
432
|
-
return n.throwOnError || (s = s.catch(A)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
433
|
-
})
|
|
434
|
-
);
|
|
435
|
-
return Promise.all(r).then(A);
|
|
436
|
-
}
|
|
437
|
-
fetchQuery(e) {
|
|
438
|
-
const t = this.defaultQueryOptions(e);
|
|
439
|
-
t.retry === void 0 && (t.retry = !1);
|
|
440
|
-
const n = this.#e.build(this, t);
|
|
441
|
-
return n.isStaleByTime(
|
|
442
|
-
ze(t.staleTime, n)
|
|
443
|
-
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
444
|
-
}
|
|
445
|
-
prefetchQuery(e) {
|
|
446
|
-
return this.fetchQuery(e).then(A).catch(A);
|
|
447
|
-
}
|
|
448
|
-
fetchInfiniteQuery(e) {
|
|
449
|
-
return e.behavior = je(e.pages), this.fetchQuery(e);
|
|
450
|
-
}
|
|
451
|
-
prefetchInfiniteQuery(e) {
|
|
452
|
-
return this.fetchInfiniteQuery(e).then(A).catch(A);
|
|
453
|
-
}
|
|
454
|
-
ensureInfiniteQueryData(e) {
|
|
455
|
-
return e.behavior = je(e.pages), this.ensureQueryData(e);
|
|
456
|
-
}
|
|
457
|
-
resumePausedMutations() {
|
|
458
|
-
return be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
459
|
-
}
|
|
460
|
-
getQueryCache() {
|
|
461
|
-
return this.#e;
|
|
462
|
-
}
|
|
463
|
-
getMutationCache() {
|
|
464
|
-
return this.#t;
|
|
465
|
-
}
|
|
466
|
-
getDefaultOptions() {
|
|
467
|
-
return this.#n;
|
|
468
|
-
}
|
|
469
|
-
setDefaultOptions(e) {
|
|
470
|
-
this.#n = e;
|
|
471
|
-
}
|
|
472
|
-
setQueryDefaults(e, t) {
|
|
473
|
-
this.#o.set(ke(e), {
|
|
474
|
-
queryKey: e,
|
|
475
|
-
defaultOptions: t
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
getQueryDefaults(e) {
|
|
479
|
-
const t = [...this.#o.values()], n = {};
|
|
480
|
-
return t.forEach((r) => {
|
|
481
|
-
xe(e, r.queryKey) && Object.assign(n, r.defaultOptions);
|
|
482
|
-
}), n;
|
|
483
|
-
}
|
|
484
|
-
setMutationDefaults(e, t) {
|
|
485
|
-
this.#s.set(ke(e), {
|
|
486
|
-
mutationKey: e,
|
|
487
|
-
defaultOptions: t
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
getMutationDefaults(e) {
|
|
491
|
-
const t = [...this.#s.values()], n = {};
|
|
492
|
-
return t.forEach((r) => {
|
|
493
|
-
xe(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
|
|
494
|
-
}), n;
|
|
495
|
-
}
|
|
496
|
-
defaultQueryOptions(e) {
|
|
497
|
-
if (e._defaulted)
|
|
498
|
-
return e;
|
|
499
|
-
const t = {
|
|
500
|
-
...this.#n.queries,
|
|
501
|
-
...this.getQueryDefaults(e.queryKey),
|
|
502
|
-
...e,
|
|
503
|
-
_defaulted: !0
|
|
504
|
-
};
|
|
505
|
-
return t.queryHash || (t.queryHash = Je(
|
|
506
|
-
t.queryKey,
|
|
507
|
-
t
|
|
508
|
-
)), 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 === Nt && (t.enabled = !1), t;
|
|
509
|
-
}
|
|
510
|
-
defaultMutationOptions(e) {
|
|
511
|
-
return e?._defaulted ? e : {
|
|
512
|
-
...this.#n.mutations,
|
|
513
|
-
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
514
|
-
...e,
|
|
515
|
-
_defaulted: !0
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
clear() {
|
|
519
|
-
this.#e.clear(), this.#t.clear();
|
|
520
|
-
}
|
|
521
|
-
}, $n = ({
|
|
522
|
-
children: e,
|
|
523
|
-
options: t = {},
|
|
524
|
-
state: n,
|
|
525
|
-
queryClient: r
|
|
526
|
-
}) => {
|
|
527
|
-
const o = Rt(r), s = I.useRef(t);
|
|
528
|
-
I.useEffect(() => {
|
|
529
|
-
s.current = t;
|
|
530
|
-
});
|
|
531
|
-
const a = I.useMemo(() => {
|
|
532
|
-
if (n) {
|
|
533
|
-
if (typeof n != "object")
|
|
534
|
-
return;
|
|
535
|
-
const u = o.getQueryCache(), d = n.queries || [], l = [], f = [];
|
|
536
|
-
for (const g of d) {
|
|
537
|
-
const p = u.get(g.queryHash);
|
|
538
|
-
p ? (g.state.dataUpdatedAt > p.state.dataUpdatedAt || g.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && g.dehydratedAt !== void 0 && g.dehydratedAt > p.state.dataUpdatedAt) && f.push(g) : l.push(g);
|
|
539
|
-
}
|
|
540
|
-
if (l.length > 0 && $e(o, { queries: l }, s.current), f.length > 0)
|
|
541
|
-
return f;
|
|
542
|
-
}
|
|
543
|
-
}, [o, n]);
|
|
544
|
-
return I.useEffect(() => {
|
|
545
|
-
a && $e(o, { queries: a }, s.current);
|
|
546
|
-
}, [o, a]), e;
|
|
547
|
-
};
|
|
1
|
+
import { a as Ae, H as Oe } from "./index.esm-B_0dvNjB.js";
|
|
2
|
+
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
+
import { b as mt, H as gt } from "./HydrationBoundary-CNF2ZV3E.js";
|
|
4
|
+
import { M as Se, e as _t } from "./useSuspenseQuery-CSB_rVek.js";
|
|
5
|
+
import * as F from "react";
|
|
6
|
+
import { StrictMode as Ne, useEffect as K, useRef as De, useState as vt, Suspense as wt } from "react";
|
|
7
|
+
import { n as zt, S as bt, a as Re, b3 as yt, O as kt, d as xt, L as Zt, h as $t, w as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
8
|
+
import * as Et from "react-dom";
|
|
9
|
+
import { f as Pt, a as Tt, d as P, A as It, s as At, P as Ot, N as pe, g as St, h as Nt, i as Dt, T as Ce, H as Ue, D as Rt, j as Fe } from "./index-BDsEwofZ.js";
|
|
10
|
+
import { B as Le, R as Ct } from "./RouteGuard--A04ESy8.js";
|
|
11
|
+
import { CircleFadingArrowUpIcon as Ut, LoaderCircleIcon as Ft, ExternalLink as Lt, PanelLeftIcon as Bt, UnlinkIcon as Mt } from "lucide-react";
|
|
12
|
+
import { Button as Wt } from "./ui/Button.js";
|
|
13
|
+
import { c as x } from "./cn-5-Gd1Dss.js";
|
|
14
|
+
import { a as G, e as qt, j as Vt } from "./ZudokuContext-BZB1TWdT.js";
|
|
15
|
+
import { D as $, a as Ht, b as Jt } from "./Drawer-Ch7927PF.js";
|
|
16
|
+
import { VisuallyHidden as Kt } from "@radix-ui/react-visually-hidden";
|
|
17
|
+
import { S as Gt } from "./Spinner-CI6bRyZw.js";
|
|
18
|
+
import { C as Be } from "./CategoryHeading-DhmodDcq.js";
|
|
548
19
|
/**
|
|
549
20
|
* react-router v7.12.0
|
|
550
21
|
*
|
|
@@ -555,74 +26,74 @@ var xn = class extends Ve {
|
|
|
555
26
|
*
|
|
556
27
|
* @license MIT
|
|
557
28
|
*/
|
|
558
|
-
function
|
|
559
|
-
return /* @__PURE__ */
|
|
29
|
+
function Yt(e) {
|
|
30
|
+
return /* @__PURE__ */ F.createElement(zt, { flushSync: Et.flushSync, ...e });
|
|
560
31
|
}
|
|
561
|
-
const
|
|
32
|
+
const Qt = new mt({
|
|
562
33
|
defaultOptions: {
|
|
563
34
|
queries: {
|
|
564
35
|
staleTime: 1e3 * 60 * 5
|
|
565
36
|
}
|
|
566
37
|
}
|
|
567
|
-
}),
|
|
38
|
+
}), Xt = ({
|
|
568
39
|
router: e,
|
|
569
40
|
hydrate: t = !1
|
|
570
|
-
}) => /* @__PURE__ */
|
|
41
|
+
}) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: Qt, children: /* @__PURE__ */ a.jsx(gt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Le, { value: !1, children: /* @__PURE__ */ a.jsx(Ae, { children: /* @__PURE__ */ a.jsx(Pt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Yt, { router: e }) }) }) }) }) }) }), en = ({
|
|
571
42
|
router: e,
|
|
572
43
|
context: t,
|
|
573
44
|
queryClient: n,
|
|
574
45
|
helmetContext: r,
|
|
575
46
|
bypassProtection: o = !1
|
|
576
|
-
}) => /* @__PURE__ */
|
|
47
|
+
}) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: n, children: /* @__PURE__ */ a.jsx(Ae, { context: r, children: /* @__PURE__ */ a.jsx(Le, { value: o, children: /* @__PURE__ */ a.jsx(bt, { router: e, context: t }) }) }) }) });
|
|
577
48
|
function c(e, t, n) {
|
|
578
|
-
function r(u,
|
|
579
|
-
var
|
|
49
|
+
function r(u, l) {
|
|
50
|
+
var d;
|
|
580
51
|
Object.defineProperty(u, "_zod", {
|
|
581
52
|
value: u._zod ?? {},
|
|
582
53
|
enumerable: !1
|
|
583
|
-
}), (
|
|
584
|
-
for (const
|
|
585
|
-
|
|
586
|
-
u._zod.constr =
|
|
54
|
+
}), (d = u._zod).traits ?? (d.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, l);
|
|
55
|
+
for (const p in i.prototype)
|
|
56
|
+
p in u || Object.defineProperty(u, p, { value: i.prototype[p].bind(u) });
|
|
57
|
+
u._zod.constr = i, u._zod.def = l;
|
|
587
58
|
}
|
|
588
59
|
const o = n?.Parent ?? Object;
|
|
589
60
|
class s extends o {
|
|
590
61
|
}
|
|
591
62
|
Object.defineProperty(s, "name", { value: e });
|
|
592
|
-
function
|
|
593
|
-
var
|
|
594
|
-
const
|
|
595
|
-
r(
|
|
596
|
-
for (const
|
|
597
|
-
|
|
598
|
-
return
|
|
63
|
+
function i(u) {
|
|
64
|
+
var l;
|
|
65
|
+
const d = n?.Parent ? new s() : this;
|
|
66
|
+
r(d, u), (l = d._zod).deferred ?? (l.deferred = []);
|
|
67
|
+
for (const p of d._zod.deferred)
|
|
68
|
+
p();
|
|
69
|
+
return d;
|
|
599
70
|
}
|
|
600
|
-
return Object.defineProperty(
|
|
71
|
+
return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
601
72
|
value: (u) => n?.Parent && u instanceof n.Parent ? !0 : u?._zod?.traits?.has(e)
|
|
602
|
-
}), Object.defineProperty(
|
|
73
|
+
}), Object.defineProperty(i, "name", { value: e }), i;
|
|
603
74
|
}
|
|
604
|
-
class
|
|
75
|
+
class D extends Error {
|
|
605
76
|
constructor() {
|
|
606
77
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
607
78
|
}
|
|
608
79
|
}
|
|
609
|
-
class
|
|
80
|
+
class Me extends Error {
|
|
610
81
|
constructor(t) {
|
|
611
82
|
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
612
83
|
}
|
|
613
84
|
}
|
|
614
|
-
const
|
|
615
|
-
function
|
|
616
|
-
return
|
|
85
|
+
const We = {};
|
|
86
|
+
function I(e) {
|
|
87
|
+
return We;
|
|
617
88
|
}
|
|
618
|
-
function
|
|
89
|
+
function tn(e) {
|
|
619
90
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
620
91
|
return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
|
|
621
92
|
}
|
|
622
|
-
function
|
|
93
|
+
function ne(e, t) {
|
|
623
94
|
return typeof t == "bigint" ? t.toString() : t;
|
|
624
95
|
}
|
|
625
|
-
function
|
|
96
|
+
function se(e) {
|
|
626
97
|
return {
|
|
627
98
|
get value() {
|
|
628
99
|
{
|
|
@@ -632,20 +103,20 @@ function he(e) {
|
|
|
632
103
|
}
|
|
633
104
|
};
|
|
634
105
|
}
|
|
635
|
-
function
|
|
106
|
+
function ie(e) {
|
|
636
107
|
return e == null;
|
|
637
108
|
}
|
|
638
|
-
function
|
|
109
|
+
function ae(e) {
|
|
639
110
|
const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
640
111
|
return e.slice(t, n);
|
|
641
112
|
}
|
|
642
|
-
const
|
|
643
|
-
function
|
|
113
|
+
const he = Symbol("evaluating");
|
|
114
|
+
function h(e, t, n) {
|
|
644
115
|
let r;
|
|
645
116
|
Object.defineProperty(e, t, {
|
|
646
117
|
get() {
|
|
647
|
-
if (r !==
|
|
648
|
-
return r === void 0 && (r =
|
|
118
|
+
if (r !== he)
|
|
119
|
+
return r === void 0 && (r = he, r = n()), r;
|
|
649
120
|
},
|
|
650
121
|
set(o) {
|
|
651
122
|
Object.defineProperty(e, t, {
|
|
@@ -656,7 +127,7 @@ function _(e, t, n) {
|
|
|
656
127
|
configurable: !0
|
|
657
128
|
});
|
|
658
129
|
}
|
|
659
|
-
function
|
|
130
|
+
function O(e, t, n) {
|
|
660
131
|
Object.defineProperty(e, t, {
|
|
661
132
|
value: n,
|
|
662
133
|
writable: !0,
|
|
@@ -664,7 +135,7 @@ function F(e, t, n) {
|
|
|
664
135
|
configurable: !0
|
|
665
136
|
});
|
|
666
137
|
}
|
|
667
|
-
function
|
|
138
|
+
function S(...e) {
|
|
668
139
|
const t = {};
|
|
669
140
|
for (const n of e) {
|
|
670
141
|
const r = Object.getOwnPropertyDescriptors(n);
|
|
@@ -672,15 +143,15 @@ function M(...e) {
|
|
|
672
143
|
}
|
|
673
144
|
return Object.defineProperties({}, t);
|
|
674
145
|
}
|
|
675
|
-
function
|
|
146
|
+
function me(e) {
|
|
676
147
|
return JSON.stringify(e);
|
|
677
148
|
}
|
|
678
|
-
const
|
|
149
|
+
const qe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
679
150
|
};
|
|
680
|
-
function
|
|
151
|
+
function V(e) {
|
|
681
152
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
682
153
|
}
|
|
683
|
-
const
|
|
154
|
+
const nn = se(() => {
|
|
684
155
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
685
156
|
return !1;
|
|
686
157
|
try {
|
|
@@ -690,27 +161,27 @@ const Tn = he(() => {
|
|
|
690
161
|
return !1;
|
|
691
162
|
}
|
|
692
163
|
});
|
|
693
|
-
function
|
|
694
|
-
if (
|
|
164
|
+
function C(e) {
|
|
165
|
+
if (V(e) === !1)
|
|
695
166
|
return !1;
|
|
696
167
|
const t = e.constructor;
|
|
697
168
|
if (t === void 0)
|
|
698
169
|
return !0;
|
|
699
170
|
const n = t.prototype;
|
|
700
|
-
return !(
|
|
171
|
+
return !(V(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
701
172
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
173
|
+
function Ve(e) {
|
|
174
|
+
return C(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
704
175
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
176
|
+
const rn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
177
|
+
function Y(e) {
|
|
707
178
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
708
179
|
}
|
|
709
|
-
function
|
|
180
|
+
function T(e, t, n) {
|
|
710
181
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
711
182
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
712
183
|
}
|
|
713
|
-
function
|
|
184
|
+
function f(e) {
|
|
714
185
|
const t = e;
|
|
715
186
|
if (!t)
|
|
716
187
|
return {};
|
|
@@ -723,11 +194,11 @@ function h(e) {
|
|
|
723
194
|
}
|
|
724
195
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
725
196
|
}
|
|
726
|
-
function
|
|
197
|
+
function on(e) {
|
|
727
198
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
728
199
|
}
|
|
729
|
-
function
|
|
730
|
-
const n = e._zod.def, r =
|
|
200
|
+
function sn(e, t) {
|
|
201
|
+
const n = e._zod.def, r = S(e._zod.def, {
|
|
731
202
|
get shape() {
|
|
732
203
|
const o = {};
|
|
733
204
|
for (const s in t) {
|
|
@@ -735,14 +206,14 @@ function In(e, t) {
|
|
|
735
206
|
throw new Error(`Unrecognized key: "${s}"`);
|
|
736
207
|
t[s] && (o[s] = n.shape[s]);
|
|
737
208
|
}
|
|
738
|
-
return
|
|
209
|
+
return O(this, "shape", o), o;
|
|
739
210
|
},
|
|
740
211
|
checks: []
|
|
741
212
|
});
|
|
742
|
-
return
|
|
213
|
+
return T(e, r);
|
|
743
214
|
}
|
|
744
|
-
function
|
|
745
|
-
const n = e._zod.def, r =
|
|
215
|
+
function an(e, t) {
|
|
216
|
+
const n = e._zod.def, r = S(e._zod.def, {
|
|
746
217
|
get shape() {
|
|
747
218
|
const o = { ...e._zod.def.shape };
|
|
748
219
|
for (const s in t) {
|
|
@@ -750,45 +221,45 @@ function Cn(e, t) {
|
|
|
750
221
|
throw new Error(`Unrecognized key: "${s}"`);
|
|
751
222
|
t[s] && delete o[s];
|
|
752
223
|
}
|
|
753
|
-
return
|
|
224
|
+
return O(this, "shape", o), o;
|
|
754
225
|
},
|
|
755
226
|
checks: []
|
|
756
227
|
});
|
|
757
|
-
return
|
|
228
|
+
return T(e, r);
|
|
758
229
|
}
|
|
759
|
-
function
|
|
760
|
-
if (!
|
|
230
|
+
function cn(e, t) {
|
|
231
|
+
if (!C(t))
|
|
761
232
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
762
233
|
const n = e._zod.def.checks;
|
|
763
234
|
if (n && n.length > 0)
|
|
764
235
|
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
765
|
-
const o =
|
|
236
|
+
const o = S(e._zod.def, {
|
|
766
237
|
get shape() {
|
|
767
238
|
const s = { ...e._zod.def.shape, ...t };
|
|
768
|
-
return
|
|
239
|
+
return O(this, "shape", s), s;
|
|
769
240
|
},
|
|
770
241
|
checks: []
|
|
771
242
|
});
|
|
772
|
-
return
|
|
243
|
+
return T(e, o);
|
|
773
244
|
}
|
|
774
|
-
function
|
|
775
|
-
if (!
|
|
245
|
+
function un(e, t) {
|
|
246
|
+
if (!C(t))
|
|
776
247
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
777
248
|
const n = {
|
|
778
249
|
...e._zod.def,
|
|
779
250
|
get shape() {
|
|
780
251
|
const r = { ...e._zod.def.shape, ...t };
|
|
781
|
-
return
|
|
252
|
+
return O(this, "shape", r), r;
|
|
782
253
|
},
|
|
783
254
|
checks: e._zod.def.checks
|
|
784
255
|
};
|
|
785
|
-
return
|
|
256
|
+
return T(e, n);
|
|
786
257
|
}
|
|
787
|
-
function
|
|
788
|
-
const n =
|
|
258
|
+
function ln(e, t) {
|
|
259
|
+
const n = S(e._zod.def, {
|
|
789
260
|
get shape() {
|
|
790
261
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
791
|
-
return
|
|
262
|
+
return O(this, "shape", r), r;
|
|
792
263
|
},
|
|
793
264
|
get catchall() {
|
|
794
265
|
return t._zod.def.catchall;
|
|
@@ -796,59 +267,59 @@ function Un(e, t) {
|
|
|
796
267
|
checks: []
|
|
797
268
|
// delete existing checks
|
|
798
269
|
});
|
|
799
|
-
return
|
|
270
|
+
return T(e, n);
|
|
800
271
|
}
|
|
801
|
-
function
|
|
802
|
-
const r =
|
|
272
|
+
function dn(e, t, n) {
|
|
273
|
+
const r = S(t._zod.def, {
|
|
803
274
|
get shape() {
|
|
804
275
|
const o = t._zod.def.shape, s = { ...o };
|
|
805
276
|
if (n)
|
|
806
|
-
for (const
|
|
807
|
-
if (!(
|
|
808
|
-
throw new Error(`Unrecognized key: "${
|
|
809
|
-
n[
|
|
277
|
+
for (const i in n) {
|
|
278
|
+
if (!(i in o))
|
|
279
|
+
throw new Error(`Unrecognized key: "${i}"`);
|
|
280
|
+
n[i] && (s[i] = e ? new e({
|
|
810
281
|
type: "optional",
|
|
811
|
-
innerType: o[
|
|
812
|
-
}) : o[
|
|
282
|
+
innerType: o[i]
|
|
283
|
+
}) : o[i]);
|
|
813
284
|
}
|
|
814
285
|
else
|
|
815
|
-
for (const
|
|
816
|
-
s[
|
|
286
|
+
for (const i in o)
|
|
287
|
+
s[i] = e ? new e({
|
|
817
288
|
type: "optional",
|
|
818
|
-
innerType: o[
|
|
819
|
-
}) : o[
|
|
820
|
-
return
|
|
289
|
+
innerType: o[i]
|
|
290
|
+
}) : o[i];
|
|
291
|
+
return O(this, "shape", s), s;
|
|
821
292
|
},
|
|
822
293
|
checks: []
|
|
823
294
|
});
|
|
824
|
-
return
|
|
295
|
+
return T(t, r);
|
|
825
296
|
}
|
|
826
|
-
function
|
|
827
|
-
const r =
|
|
297
|
+
function fn(e, t, n) {
|
|
298
|
+
const r = S(t._zod.def, {
|
|
828
299
|
get shape() {
|
|
829
300
|
const o = t._zod.def.shape, s = { ...o };
|
|
830
301
|
if (n)
|
|
831
|
-
for (const
|
|
832
|
-
if (!(
|
|
833
|
-
throw new Error(`Unrecognized key: "${
|
|
834
|
-
n[
|
|
302
|
+
for (const i in n) {
|
|
303
|
+
if (!(i in s))
|
|
304
|
+
throw new Error(`Unrecognized key: "${i}"`);
|
|
305
|
+
n[i] && (s[i] = new e({
|
|
835
306
|
type: "nonoptional",
|
|
836
|
-
innerType: o[
|
|
307
|
+
innerType: o[i]
|
|
837
308
|
}));
|
|
838
309
|
}
|
|
839
310
|
else
|
|
840
|
-
for (const
|
|
841
|
-
s[
|
|
311
|
+
for (const i in o)
|
|
312
|
+
s[i] = new e({
|
|
842
313
|
type: "nonoptional",
|
|
843
|
-
innerType: o[
|
|
314
|
+
innerType: o[i]
|
|
844
315
|
});
|
|
845
|
-
return
|
|
316
|
+
return O(this, "shape", s), s;
|
|
846
317
|
},
|
|
847
318
|
checks: []
|
|
848
319
|
});
|
|
849
|
-
return
|
|
320
|
+
return T(t, r);
|
|
850
321
|
}
|
|
851
|
-
function
|
|
322
|
+
function N(e, t = 0) {
|
|
852
323
|
if (e.aborted === !0)
|
|
853
324
|
return !0;
|
|
854
325
|
for (let n = t; n < e.issues.length; n++)
|
|
@@ -856,27 +327,27 @@ function q(e, t = 0) {
|
|
|
856
327
|
return !0;
|
|
857
328
|
return !1;
|
|
858
329
|
}
|
|
859
|
-
function
|
|
330
|
+
function He(e, t) {
|
|
860
331
|
return t.map((n) => {
|
|
861
332
|
var r;
|
|
862
333
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
863
334
|
});
|
|
864
335
|
}
|
|
865
|
-
function
|
|
336
|
+
function B(e) {
|
|
866
337
|
return typeof e == "string" ? e : e?.message;
|
|
867
338
|
}
|
|
868
|
-
function
|
|
339
|
+
function A(e, t, n) {
|
|
869
340
|
const r = { ...e, path: e.path ?? [] };
|
|
870
341
|
if (!e.message) {
|
|
871
|
-
const o =
|
|
342
|
+
const o = B(e.inst?._zod.def?.error?.(e)) ?? B(t?.error?.(e)) ?? B(n.customError?.(e)) ?? B(n.localeError?.(e)) ?? "Invalid input";
|
|
872
343
|
r.message = o;
|
|
873
344
|
}
|
|
874
345
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
875
346
|
}
|
|
876
|
-
function
|
|
347
|
+
function ce(e) {
|
|
877
348
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
878
349
|
}
|
|
879
|
-
function
|
|
350
|
+
function U(...e) {
|
|
880
351
|
const [t, n, r] = e;
|
|
881
352
|
return typeof t == "string" ? {
|
|
882
353
|
message: t,
|
|
@@ -885,29 +356,29 @@ function W(...e) {
|
|
|
885
356
|
inst: r
|
|
886
357
|
} : { ...t };
|
|
887
358
|
}
|
|
888
|
-
const
|
|
359
|
+
const Je = (e, t) => {
|
|
889
360
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
890
361
|
value: e._zod,
|
|
891
362
|
enumerable: !1
|
|
892
363
|
}), Object.defineProperty(e, "issues", {
|
|
893
364
|
value: t,
|
|
894
365
|
enumerable: !1
|
|
895
|
-
}), e.message = JSON.stringify(t,
|
|
366
|
+
}), e.message = JSON.stringify(t, ne, 2), Object.defineProperty(e, "toString", {
|
|
896
367
|
value: () => e.message,
|
|
897
368
|
enumerable: !1
|
|
898
369
|
});
|
|
899
|
-
},
|
|
900
|
-
function
|
|
370
|
+
}, Ke = c("$ZodError", Je), Ge = c("$ZodError", Je, { Parent: Error });
|
|
371
|
+
function pn(e, t = (n) => n.message) {
|
|
901
372
|
const n = {}, r = [];
|
|
902
373
|
for (const o of e.issues)
|
|
903
374
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
904
375
|
return { formErrors: r, fieldErrors: n };
|
|
905
376
|
}
|
|
906
|
-
function
|
|
377
|
+
function hn(e, t = (n) => n.message) {
|
|
907
378
|
const n = { _errors: [] }, r = (o) => {
|
|
908
379
|
for (const s of o.issues)
|
|
909
380
|
if (s.code === "invalid_union" && s.errors.length)
|
|
910
|
-
s.errors.map((
|
|
381
|
+
s.errors.map((i) => r({ issues: i }));
|
|
911
382
|
else if (s.code === "invalid_key")
|
|
912
383
|
r({ issues: s.issues });
|
|
913
384
|
else if (s.code === "invalid_element")
|
|
@@ -915,88 +386,88 @@ function Qn(e, t = (n) => n.message) {
|
|
|
915
386
|
else if (s.path.length === 0)
|
|
916
387
|
n._errors.push(t(s));
|
|
917
388
|
else {
|
|
918
|
-
let
|
|
389
|
+
let i = n, u = 0;
|
|
919
390
|
for (; u < s.path.length; ) {
|
|
920
|
-
const
|
|
921
|
-
u === s.path.length - 1 ? (
|
|
391
|
+
const l = s.path[u];
|
|
392
|
+
u === s.path.length - 1 ? (i[l] = i[l] || { _errors: [] }, i[l]._errors.push(t(s))) : i[l] = i[l] || { _errors: [] }, i = i[l], u++;
|
|
922
393
|
}
|
|
923
394
|
}
|
|
924
395
|
};
|
|
925
396
|
return r(e), n;
|
|
926
397
|
}
|
|
927
|
-
const
|
|
928
|
-
const s = r ? Object.assign(r, { async: !1 }) : { async: !1 },
|
|
929
|
-
if (
|
|
930
|
-
throw new
|
|
931
|
-
if (
|
|
932
|
-
const u = new (o?.Err ?? e)(
|
|
933
|
-
throw
|
|
398
|
+
const ue = (e) => (t, n, r, o) => {
|
|
399
|
+
const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
|
|
400
|
+
if (i instanceof Promise)
|
|
401
|
+
throw new D();
|
|
402
|
+
if (i.issues.length) {
|
|
403
|
+
const u = new (o?.Err ?? e)(i.issues.map((l) => A(l, s, I())));
|
|
404
|
+
throw qe(u, o?.callee), u;
|
|
934
405
|
}
|
|
935
|
-
return
|
|
936
|
-
},
|
|
406
|
+
return i.value;
|
|
407
|
+
}, le = (e) => async (t, n, r, o) => {
|
|
937
408
|
const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
938
|
-
let
|
|
939
|
-
if (
|
|
940
|
-
const u = new (o?.Err ?? e)(
|
|
941
|
-
throw
|
|
409
|
+
let i = t._zod.run({ value: n, issues: [] }, s);
|
|
410
|
+
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
411
|
+
const u = new (o?.Err ?? e)(i.issues.map((l) => A(l, s, I())));
|
|
412
|
+
throw qe(u, o?.callee), u;
|
|
942
413
|
}
|
|
943
|
-
return
|
|
944
|
-
},
|
|
414
|
+
return i.value;
|
|
415
|
+
}, Q = (e) => (t, n, r) => {
|
|
945
416
|
const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
|
|
946
417
|
if (s instanceof Promise)
|
|
947
|
-
throw new
|
|
418
|
+
throw new D();
|
|
948
419
|
return s.issues.length ? {
|
|
949
420
|
success: !1,
|
|
950
|
-
error: new (e ??
|
|
421
|
+
error: new (e ?? Ke)(s.issues.map((i) => A(i, o, I())))
|
|
951
422
|
} : { success: !0, data: s.value };
|
|
952
|
-
},
|
|
423
|
+
}, mn = /* @__PURE__ */ Q(Ge), X = (e) => async (t, n, r) => {
|
|
953
424
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
954
425
|
let s = t._zod.run({ value: n, issues: [] }, o);
|
|
955
426
|
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
956
427
|
success: !1,
|
|
957
|
-
error: new e(s.issues.map((
|
|
428
|
+
error: new e(s.issues.map((i) => A(i, o, I())))
|
|
958
429
|
} : { success: !0, data: s.value };
|
|
959
|
-
},
|
|
430
|
+
}, gn = /* @__PURE__ */ X(Ge), _n = (e) => (t, n, r) => {
|
|
960
431
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
961
|
-
return
|
|
962
|
-
},
|
|
432
|
+
return ue(e)(t, n, o);
|
|
433
|
+
}, vn = (e) => (t, n, r) => ue(e)(t, n, r), wn = (e) => async (t, n, r) => {
|
|
963
434
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
964
|
-
return
|
|
965
|
-
},
|
|
435
|
+
return le(e)(t, n, o);
|
|
436
|
+
}, zn = (e) => async (t, n, r) => le(e)(t, n, r), bn = (e) => (t, n, r) => {
|
|
966
437
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
967
|
-
return
|
|
968
|
-
},
|
|
438
|
+
return Q(e)(t, n, o);
|
|
439
|
+
}, yn = (e) => (t, n, r) => Q(e)(t, n, r), kn = (e) => async (t, n, r) => {
|
|
969
440
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
970
|
-
return
|
|
971
|
-
},
|
|
972
|
-
function
|
|
973
|
-
return new RegExp(
|
|
441
|
+
return X(e)(t, n, o);
|
|
442
|
+
}, xn = (e) => async (t, n, r) => X(e)(t, n, r), Zn = /^[cC][^\s-]{8,}$/, $n = /^[0-9a-z]+$/, jn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, En = /^[0-9a-vA-V]{20}$/, Pn = /^[A-Za-z0-9]{27}$/, Tn = /^[a-zA-Z0-9_-]{21}$/, In = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, An = /^([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})$/, ge = (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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, On = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Sn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
443
|
+
function Nn() {
|
|
444
|
+
return new RegExp(Sn, "u");
|
|
974
445
|
}
|
|
975
|
-
const
|
|
976
|
-
function
|
|
446
|
+
const Dn = /^(?:(?: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])$/, Rn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Cn = /^((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])$/, Un = /^(([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])$/, Fn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Ln = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Bn = /^\+(?:[0-9]){6,14}[0-9]$/, Qe = "(?:(?:\\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])))", Mn = /* @__PURE__ */ new RegExp(`^${Qe}$`);
|
|
447
|
+
function Xe(e) {
|
|
977
448
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
978
449
|
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+)?)?`;
|
|
979
450
|
}
|
|
980
|
-
function
|
|
981
|
-
return new RegExp(`^${
|
|
451
|
+
function Wn(e) {
|
|
452
|
+
return new RegExp(`^${Xe(e)}$`);
|
|
982
453
|
}
|
|
983
|
-
function
|
|
984
|
-
const t =
|
|
454
|
+
function qn(e) {
|
|
455
|
+
const t = Xe({ precision: e.precision }), n = ["Z"];
|
|
985
456
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
986
457
|
const r = `${t}(?:${n.join("|")})`;
|
|
987
|
-
return new RegExp(`^${
|
|
458
|
+
return new RegExp(`^${Qe}T(?:${r})$`);
|
|
988
459
|
}
|
|
989
|
-
const
|
|
460
|
+
const Vn = (e) => {
|
|
990
461
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
991
462
|
return new RegExp(`^${t}$`);
|
|
992
|
-
},
|
|
463
|
+
}, Hn = /^[^A-Z]*$/, Jn = /^[^a-z]*$/, j = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
993
464
|
var n;
|
|
994
465
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
995
|
-
}),
|
|
466
|
+
}), Kn = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
996
467
|
var n;
|
|
997
|
-
|
|
468
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
998
469
|
const o = r.value;
|
|
999
|
-
return !
|
|
470
|
+
return !ie(o) && o.length !== void 0;
|
|
1000
471
|
}), e._zod.onattach.push((r) => {
|
|
1001
472
|
const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1002
473
|
t.maximum < o && (r._zod.bag.maximum = t.maximum);
|
|
@@ -1004,9 +475,9 @@ const br = (e) => {
|
|
|
1004
475
|
const o = r.value;
|
|
1005
476
|
if (o.length <= t.maximum)
|
|
1006
477
|
return;
|
|
1007
|
-
const
|
|
478
|
+
const i = ce(o);
|
|
1008
479
|
r.issues.push({
|
|
1009
|
-
origin:
|
|
480
|
+
origin: i,
|
|
1010
481
|
code: "too_big",
|
|
1011
482
|
maximum: t.maximum,
|
|
1012
483
|
inclusive: !0,
|
|
@@ -1015,11 +486,11 @@ const br = (e) => {
|
|
|
1015
486
|
continue: !t.abort
|
|
1016
487
|
});
|
|
1017
488
|
};
|
|
1018
|
-
}),
|
|
489
|
+
}), Gn = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
1019
490
|
var n;
|
|
1020
|
-
|
|
491
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1021
492
|
const o = r.value;
|
|
1022
|
-
return !
|
|
493
|
+
return !ie(o) && o.length !== void 0;
|
|
1023
494
|
}), e._zod.onattach.push((r) => {
|
|
1024
495
|
const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1025
496
|
t.minimum > o && (r._zod.bag.minimum = t.minimum);
|
|
@@ -1027,9 +498,9 @@ const br = (e) => {
|
|
|
1027
498
|
const o = r.value;
|
|
1028
499
|
if (o.length >= t.minimum)
|
|
1029
500
|
return;
|
|
1030
|
-
const
|
|
501
|
+
const i = ce(o);
|
|
1031
502
|
r.issues.push({
|
|
1032
|
-
origin:
|
|
503
|
+
origin: i,
|
|
1033
504
|
code: "too_small",
|
|
1034
505
|
minimum: t.minimum,
|
|
1035
506
|
inclusive: !0,
|
|
@@ -1038,11 +509,11 @@ const br = (e) => {
|
|
|
1038
509
|
continue: !t.abort
|
|
1039
510
|
});
|
|
1040
511
|
};
|
|
1041
|
-
}),
|
|
512
|
+
}), Yn = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
1042
513
|
var n;
|
|
1043
|
-
|
|
514
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1044
515
|
const o = r.value;
|
|
1045
|
-
return !
|
|
516
|
+
return !ie(o) && o.length !== void 0;
|
|
1046
517
|
}), e._zod.onattach.push((r) => {
|
|
1047
518
|
const o = r._zod.bag;
|
|
1048
519
|
o.minimum = t.length, o.maximum = t.length, o.length = t.length;
|
|
@@ -1050,9 +521,9 @@ const br = (e) => {
|
|
|
1050
521
|
const o = r.value, s = o.length;
|
|
1051
522
|
if (s === t.length)
|
|
1052
523
|
return;
|
|
1053
|
-
const
|
|
524
|
+
const i = ce(o), u = s > t.length;
|
|
1054
525
|
r.issues.push({
|
|
1055
|
-
origin:
|
|
526
|
+
origin: i,
|
|
1056
527
|
...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
1057
528
|
inclusive: !0,
|
|
1058
529
|
exact: !0,
|
|
@@ -1061,9 +532,9 @@ const br = (e) => {
|
|
|
1061
532
|
continue: !t.abort
|
|
1062
533
|
});
|
|
1063
534
|
};
|
|
1064
|
-
}),
|
|
535
|
+
}), ee = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
|
|
1065
536
|
var n, r;
|
|
1066
|
-
|
|
537
|
+
j.init(e, t), e._zod.onattach.push((o) => {
|
|
1067
538
|
const s = o._zod.bag;
|
|
1068
539
|
s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
|
|
1069
540
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
|
|
@@ -1078,8 +549,8 @@ const br = (e) => {
|
|
|
1078
549
|
});
|
|
1079
550
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
1080
551
|
});
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
552
|
+
}), Qn = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
|
|
553
|
+
ee.init(e, t), e._zod.check = (n) => {
|
|
1083
554
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
1084
555
|
origin: "string",
|
|
1085
556
|
code: "invalid_format",
|
|
@@ -1090,13 +561,13 @@ const br = (e) => {
|
|
|
1090
561
|
continue: !t.abort
|
|
1091
562
|
});
|
|
1092
563
|
};
|
|
1093
|
-
}),
|
|
1094
|
-
t.pattern ?? (t.pattern =
|
|
1095
|
-
}),
|
|
1096
|
-
t.pattern ?? (t.pattern =
|
|
1097
|
-
}),
|
|
1098
|
-
|
|
1099
|
-
const n =
|
|
564
|
+
}), Xn = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
|
|
565
|
+
t.pattern ?? (t.pattern = Hn), ee.init(e, t);
|
|
566
|
+
}), er = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
567
|
+
t.pattern ?? (t.pattern = Jn), ee.init(e, t);
|
|
568
|
+
}), tr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
569
|
+
j.init(e, t);
|
|
570
|
+
const n = Y(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
1100
571
|
t.pattern = r, e._zod.onattach.push((o) => {
|
|
1101
572
|
const s = o._zod.bag;
|
|
1102
573
|
s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
|
|
@@ -1111,9 +582,9 @@ const br = (e) => {
|
|
|
1111
582
|
continue: !t.abort
|
|
1112
583
|
});
|
|
1113
584
|
};
|
|
1114
|
-
}),
|
|
1115
|
-
|
|
1116
|
-
const n = new RegExp(`^${
|
|
585
|
+
}), nr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
586
|
+
j.init(e, t);
|
|
587
|
+
const n = new RegExp(`^${Y(t.prefix)}.*`);
|
|
1117
588
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
1118
589
|
const o = r._zod.bag;
|
|
1119
590
|
o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
|
|
@@ -1128,9 +599,9 @@ const br = (e) => {
|
|
|
1128
599
|
continue: !t.abort
|
|
1129
600
|
});
|
|
1130
601
|
};
|
|
1131
|
-
}),
|
|
1132
|
-
|
|
1133
|
-
const n = new RegExp(`.*${
|
|
602
|
+
}), rr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
603
|
+
j.init(e, t);
|
|
604
|
+
const n = new RegExp(`.*${Y(t.suffix)}$`);
|
|
1134
605
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
1135
606
|
const o = r._zod.bag;
|
|
1136
607
|
o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
|
|
@@ -1145,12 +616,12 @@ const br = (e) => {
|
|
|
1145
616
|
continue: !t.abort
|
|
1146
617
|
});
|
|
1147
618
|
};
|
|
1148
|
-
}),
|
|
1149
|
-
|
|
619
|
+
}), or = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
620
|
+
j.init(e, t), e._zod.check = (n) => {
|
|
1150
621
|
n.value = t.tx(n.value);
|
|
1151
622
|
};
|
|
1152
623
|
});
|
|
1153
|
-
class
|
|
624
|
+
class sr {
|
|
1154
625
|
constructor(t = []) {
|
|
1155
626
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
1156
627
|
}
|
|
@@ -1163,9 +634,9 @@ class Sr {
|
|
|
1163
634
|
return;
|
|
1164
635
|
}
|
|
1165
636
|
const r = t.split(`
|
|
1166
|
-
`).filter((
|
|
1167
|
-
for (const
|
|
1168
|
-
this.content.push(
|
|
637
|
+
`).filter((i) => i), o = Math.min(...r.map((i) => i.length - i.trimStart().length)), s = r.map((i) => i.slice(o)).map((i) => " ".repeat(this.indent * 2) + i);
|
|
638
|
+
for (const i of s)
|
|
639
|
+
this.content.push(i);
|
|
1169
640
|
}
|
|
1170
641
|
compile() {
|
|
1171
642
|
const t = Function, n = this?.args, o = [...(this?.content ?? [""]).map((s) => ` ${s}`)];
|
|
@@ -1173,13 +644,13 @@ class Sr {
|
|
|
1173
644
|
`));
|
|
1174
645
|
}
|
|
1175
646
|
}
|
|
1176
|
-
const
|
|
647
|
+
const ir = {
|
|
1177
648
|
major: 4,
|
|
1178
649
|
minor: 1,
|
|
1179
650
|
patch: 12
|
|
1180
|
-
},
|
|
651
|
+
}, v = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
1181
652
|
var n;
|
|
1182
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
653
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ir;
|
|
1183
654
|
const r = [...e._zod.def.checks ?? []];
|
|
1184
655
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
1185
656
|
for (const o of r)
|
|
@@ -1190,69 +661,69 @@ const Ir = {
|
|
|
1190
661
|
e._zod.run = e._zod.parse;
|
|
1191
662
|
});
|
|
1192
663
|
else {
|
|
1193
|
-
const o = (
|
|
1194
|
-
let
|
|
1195
|
-
for (const
|
|
1196
|
-
if (
|
|
1197
|
-
if (!
|
|
664
|
+
const o = (i, u, l) => {
|
|
665
|
+
let d = N(i), p;
|
|
666
|
+
for (const b of u) {
|
|
667
|
+
if (b._zod.def.when) {
|
|
668
|
+
if (!b._zod.def.when(i))
|
|
1198
669
|
continue;
|
|
1199
|
-
} else if (
|
|
670
|
+
} else if (d)
|
|
1200
671
|
continue;
|
|
1201
|
-
const
|
|
1202
|
-
if (
|
|
1203
|
-
throw new
|
|
1204
|
-
if (
|
|
1205
|
-
|
|
1206
|
-
await
|
|
672
|
+
const _ = i.issues.length, w = b._zod.check(i);
|
|
673
|
+
if (w instanceof Promise && l?.async === !1)
|
|
674
|
+
throw new D();
|
|
675
|
+
if (p || w instanceof Promise)
|
|
676
|
+
p = (p ?? Promise.resolve()).then(async () => {
|
|
677
|
+
await w, i.issues.length !== _ && (d || (d = N(i, _)));
|
|
1207
678
|
});
|
|
1208
679
|
else {
|
|
1209
|
-
if (
|
|
680
|
+
if (i.issues.length === _)
|
|
1210
681
|
continue;
|
|
1211
|
-
|
|
682
|
+
d || (d = N(i, _));
|
|
1212
683
|
}
|
|
1213
684
|
}
|
|
1214
|
-
return
|
|
1215
|
-
}, s = (
|
|
1216
|
-
if (
|
|
1217
|
-
return
|
|
1218
|
-
const
|
|
1219
|
-
if (
|
|
1220
|
-
if (
|
|
1221
|
-
throw new
|
|
1222
|
-
return
|
|
685
|
+
return p ? p.then(() => i) : i;
|
|
686
|
+
}, s = (i, u, l) => {
|
|
687
|
+
if (N(i))
|
|
688
|
+
return i.aborted = !0, i;
|
|
689
|
+
const d = o(u, r, l);
|
|
690
|
+
if (d instanceof Promise) {
|
|
691
|
+
if (l.async === !1)
|
|
692
|
+
throw new D();
|
|
693
|
+
return d.then((p) => e._zod.parse(p, l));
|
|
1223
694
|
}
|
|
1224
|
-
return e._zod.parse(
|
|
695
|
+
return e._zod.parse(d, l);
|
|
1225
696
|
};
|
|
1226
|
-
e._zod.run = (
|
|
697
|
+
e._zod.run = (i, u) => {
|
|
1227
698
|
if (u.skipChecks)
|
|
1228
|
-
return e._zod.parse(
|
|
699
|
+
return e._zod.parse(i, u);
|
|
1229
700
|
if (u.direction === "backward") {
|
|
1230
|
-
const
|
|
1231
|
-
return
|
|
701
|
+
const d = e._zod.parse({ value: i.value, issues: [] }, { ...u, skipChecks: !0 });
|
|
702
|
+
return d instanceof Promise ? d.then((p) => s(p, i, u)) : s(d, i, u);
|
|
1232
703
|
}
|
|
1233
|
-
const
|
|
1234
|
-
if (
|
|
704
|
+
const l = e._zod.parse(i, u);
|
|
705
|
+
if (l instanceof Promise) {
|
|
1235
706
|
if (u.async === !1)
|
|
1236
|
-
throw new
|
|
1237
|
-
return
|
|
707
|
+
throw new D();
|
|
708
|
+
return l.then((d) => o(d, r, u));
|
|
1238
709
|
}
|
|
1239
|
-
return o(
|
|
710
|
+
return o(l, r, u);
|
|
1240
711
|
};
|
|
1241
712
|
}
|
|
1242
713
|
e["~standard"] = {
|
|
1243
714
|
validate: (o) => {
|
|
1244
715
|
try {
|
|
1245
|
-
const s =
|
|
716
|
+
const s = mn(e, o);
|
|
1246
717
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
1247
718
|
} catch {
|
|
1248
|
-
return
|
|
719
|
+
return gn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
1249
720
|
}
|
|
1250
721
|
},
|
|
1251
722
|
vendor: "zod",
|
|
1252
723
|
version: 1
|
|
1253
724
|
};
|
|
1254
|
-
}),
|
|
1255
|
-
|
|
725
|
+
}), de = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
726
|
+
v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Vn(e._zod.bag), e._zod.parse = (n, r) => {
|
|
1256
727
|
if (t.coerce)
|
|
1257
728
|
try {
|
|
1258
729
|
n.value = String(n.value);
|
|
@@ -1265,11 +736,11 @@ const Ir = {
|
|
|
1265
736
|
inst: e
|
|
1266
737
|
}), n;
|
|
1267
738
|
};
|
|
1268
|
-
}),
|
|
1269
|
-
|
|
1270
|
-
}),
|
|
1271
|
-
t.pattern ?? (t.pattern =
|
|
1272
|
-
}),
|
|
739
|
+
}), m = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
740
|
+
ee.init(e, t), de.init(e, t);
|
|
741
|
+
}), ar = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
742
|
+
t.pattern ?? (t.pattern = An), m.init(e, t);
|
|
743
|
+
}), cr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1273
744
|
if (t.version) {
|
|
1274
745
|
const r = {
|
|
1275
746
|
v1: 1,
|
|
@@ -1283,21 +754,21 @@ const Ir = {
|
|
|
1283
754
|
}[t.version];
|
|
1284
755
|
if (r === void 0)
|
|
1285
756
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
1286
|
-
t.pattern ?? (t.pattern =
|
|
757
|
+
t.pattern ?? (t.pattern = ge(r));
|
|
1287
758
|
} else
|
|
1288
|
-
t.pattern ?? (t.pattern =
|
|
1289
|
-
|
|
1290
|
-
}),
|
|
1291
|
-
t.pattern ?? (t.pattern =
|
|
1292
|
-
}),
|
|
1293
|
-
|
|
759
|
+
t.pattern ?? (t.pattern = ge());
|
|
760
|
+
m.init(e, t);
|
|
761
|
+
}), ur = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
762
|
+
t.pattern ?? (t.pattern = On), m.init(e, t);
|
|
763
|
+
}), lr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
764
|
+
m.init(e, t), e._zod.check = (n) => {
|
|
1294
765
|
try {
|
|
1295
766
|
const r = n.value.trim(), o = new URL(r);
|
|
1296
767
|
t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || n.issues.push({
|
|
1297
768
|
code: "invalid_format",
|
|
1298
769
|
format: "url",
|
|
1299
770
|
note: "Invalid hostname",
|
|
1300
|
-
pattern:
|
|
771
|
+
pattern: Ln.source,
|
|
1301
772
|
input: n.value,
|
|
1302
773
|
inst: e,
|
|
1303
774
|
continue: !t.abort
|
|
@@ -1321,35 +792,35 @@ const Ir = {
|
|
|
1321
792
|
});
|
|
1322
793
|
}
|
|
1323
794
|
};
|
|
1324
|
-
}),
|
|
1325
|
-
t.pattern ?? (t.pattern =
|
|
1326
|
-
}),
|
|
1327
|
-
t.pattern ?? (t.pattern =
|
|
1328
|
-
}),
|
|
1329
|
-
t.pattern ?? (t.pattern =
|
|
1330
|
-
}),
|
|
1331
|
-
t.pattern ?? (t.pattern =
|
|
1332
|
-
}),
|
|
1333
|
-
t.pattern ?? (t.pattern =
|
|
1334
|
-
}),
|
|
1335
|
-
t.pattern ?? (t.pattern =
|
|
1336
|
-
}),
|
|
1337
|
-
t.pattern ?? (t.pattern =
|
|
1338
|
-
}),
|
|
1339
|
-
t.pattern ?? (t.pattern =
|
|
1340
|
-
}),
|
|
1341
|
-
t.pattern ?? (t.pattern =
|
|
1342
|
-
}),
|
|
1343
|
-
t.pattern ?? (t.pattern =
|
|
1344
|
-
}),
|
|
1345
|
-
t.pattern ?? (t.pattern =
|
|
1346
|
-
}),
|
|
1347
|
-
t.pattern ?? (t.pattern =
|
|
795
|
+
}), dr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
796
|
+
t.pattern ?? (t.pattern = Nn()), m.init(e, t);
|
|
797
|
+
}), fr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
798
|
+
t.pattern ?? (t.pattern = Tn), m.init(e, t);
|
|
799
|
+
}), pr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
800
|
+
t.pattern ?? (t.pattern = Zn), m.init(e, t);
|
|
801
|
+
}), hr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
802
|
+
t.pattern ?? (t.pattern = $n), m.init(e, t);
|
|
803
|
+
}), mr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
804
|
+
t.pattern ?? (t.pattern = jn), m.init(e, t);
|
|
805
|
+
}), gr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
806
|
+
t.pattern ?? (t.pattern = En), m.init(e, t);
|
|
807
|
+
}), _r = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
808
|
+
t.pattern ?? (t.pattern = Pn), m.init(e, t);
|
|
809
|
+
}), vr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
810
|
+
t.pattern ?? (t.pattern = qn(t)), m.init(e, t);
|
|
811
|
+
}), wr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
812
|
+
t.pattern ?? (t.pattern = Mn), m.init(e, t);
|
|
813
|
+
}), zr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
814
|
+
t.pattern ?? (t.pattern = Wn(t)), m.init(e, t);
|
|
815
|
+
}), br = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
816
|
+
t.pattern ?? (t.pattern = In), m.init(e, t);
|
|
817
|
+
}), yr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
818
|
+
t.pattern ?? (t.pattern = Dn), m.init(e, t), e._zod.onattach.push((n) => {
|
|
1348
819
|
const r = n._zod.bag;
|
|
1349
820
|
r.format = "ipv4";
|
|
1350
821
|
});
|
|
1351
|
-
}),
|
|
1352
|
-
t.pattern ?? (t.pattern =
|
|
822
|
+
}), kr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
823
|
+
t.pattern ?? (t.pattern = Rn), m.init(e, t), e._zod.onattach.push((n) => {
|
|
1353
824
|
const r = n._zod.bag;
|
|
1354
825
|
r.format = "ipv6";
|
|
1355
826
|
}), e._zod.check = (n) => {
|
|
@@ -1365,10 +836,10 @@ const Ir = {
|
|
|
1365
836
|
});
|
|
1366
837
|
}
|
|
1367
838
|
};
|
|
1368
|
-
}),
|
|
1369
|
-
t.pattern ?? (t.pattern =
|
|
1370
|
-
}),
|
|
1371
|
-
t.pattern ?? (t.pattern =
|
|
839
|
+
}), xr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
840
|
+
t.pattern ?? (t.pattern = Cn), m.init(e, t);
|
|
841
|
+
}), Zr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
842
|
+
t.pattern ?? (t.pattern = Un), m.init(e, t), e._zod.check = (n) => {
|
|
1372
843
|
const r = n.value.split("/");
|
|
1373
844
|
try {
|
|
1374
845
|
if (r.length !== 2)
|
|
@@ -1376,10 +847,10 @@ const Ir = {
|
|
|
1376
847
|
const [o, s] = r;
|
|
1377
848
|
if (!s)
|
|
1378
849
|
throw new Error();
|
|
1379
|
-
const
|
|
1380
|
-
if (`${
|
|
850
|
+
const i = Number(s);
|
|
851
|
+
if (`${i}` !== s)
|
|
1381
852
|
throw new Error();
|
|
1382
|
-
if (
|
|
853
|
+
if (i < 0 || i > 128)
|
|
1383
854
|
throw new Error();
|
|
1384
855
|
new URL(`http://[${o}]`);
|
|
1385
856
|
} catch {
|
|
@@ -1393,7 +864,7 @@ const Ir = {
|
|
|
1393
864
|
}
|
|
1394
865
|
};
|
|
1395
866
|
});
|
|
1396
|
-
function
|
|
867
|
+
function et(e) {
|
|
1397
868
|
if (e === "")
|
|
1398
869
|
return !0;
|
|
1399
870
|
if (e.length % 4 !== 0)
|
|
@@ -1404,11 +875,11 @@ function vt(e) {
|
|
|
1404
875
|
return !1;
|
|
1405
876
|
}
|
|
1406
877
|
}
|
|
1407
|
-
const
|
|
1408
|
-
t.pattern ?? (t.pattern =
|
|
878
|
+
const $r = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
879
|
+
t.pattern ?? (t.pattern = Fn), m.init(e, t), e._zod.onattach.push((n) => {
|
|
1409
880
|
n._zod.bag.contentEncoding = "base64";
|
|
1410
881
|
}), e._zod.check = (n) => {
|
|
1411
|
-
|
|
882
|
+
et(n.value) || n.issues.push({
|
|
1412
883
|
code: "invalid_format",
|
|
1413
884
|
format: "base64",
|
|
1414
885
|
input: n.value,
|
|
@@ -1417,17 +888,17 @@ const to = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
1417
888
|
});
|
|
1418
889
|
};
|
|
1419
890
|
});
|
|
1420
|
-
function
|
|
1421
|
-
if (!
|
|
891
|
+
function jr(e) {
|
|
892
|
+
if (!Ye.test(e))
|
|
1422
893
|
return !1;
|
|
1423
894
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1424
|
-
return
|
|
895
|
+
return et(n);
|
|
1425
896
|
}
|
|
1426
|
-
const
|
|
1427
|
-
t.pattern ?? (t.pattern =
|
|
897
|
+
const Er = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
898
|
+
t.pattern ?? (t.pattern = Ye), m.init(e, t), e._zod.onattach.push((n) => {
|
|
1428
899
|
n._zod.bag.contentEncoding = "base64url";
|
|
1429
900
|
}), e._zod.check = (n) => {
|
|
1430
|
-
|
|
901
|
+
jr(n.value) || n.issues.push({
|
|
1431
902
|
code: "invalid_format",
|
|
1432
903
|
format: "base64url",
|
|
1433
904
|
input: n.value,
|
|
@@ -1435,10 +906,10 @@ const ro = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
1435
906
|
continue: !t.abort
|
|
1436
907
|
});
|
|
1437
908
|
};
|
|
1438
|
-
}),
|
|
1439
|
-
t.pattern ?? (t.pattern =
|
|
909
|
+
}), Pr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
910
|
+
t.pattern ?? (t.pattern = Bn), m.init(e, t);
|
|
1440
911
|
});
|
|
1441
|
-
function
|
|
912
|
+
function Tr(e, t = null) {
|
|
1442
913
|
try {
|
|
1443
914
|
const n = e.split(".");
|
|
1444
915
|
if (n.length !== 3)
|
|
@@ -1452,9 +923,9 @@ function so(e, t = null) {
|
|
|
1452
923
|
return !1;
|
|
1453
924
|
}
|
|
1454
925
|
}
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
|
|
926
|
+
const Ir = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
927
|
+
m.init(e, t), e._zod.check = (n) => {
|
|
928
|
+
Tr(n.value, t.alg) || n.issues.push({
|
|
1458
929
|
code: "invalid_format",
|
|
1459
930
|
format: "jwt",
|
|
1460
931
|
input: n.value,
|
|
@@ -1462,21 +933,21 @@ const ao = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1462
933
|
continue: !t.abort
|
|
1463
934
|
});
|
|
1464
935
|
};
|
|
1465
|
-
}),
|
|
1466
|
-
|
|
1467
|
-
}),
|
|
1468
|
-
|
|
936
|
+
}), Ar = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
937
|
+
v.init(e, t), e._zod.parse = (n) => n;
|
|
938
|
+
}), Or = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
939
|
+
v.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
1469
940
|
expected: "never",
|
|
1470
941
|
code: "invalid_type",
|
|
1471
942
|
input: n.value,
|
|
1472
943
|
inst: e
|
|
1473
944
|
}), n);
|
|
1474
945
|
});
|
|
1475
|
-
function
|
|
1476
|
-
e.issues.length && t.issues.push(...
|
|
946
|
+
function _e(e, t, n) {
|
|
947
|
+
e.issues.length && t.issues.push(...He(n, e.issues)), t.value[n] = e.value;
|
|
1477
948
|
}
|
|
1478
|
-
const
|
|
1479
|
-
|
|
949
|
+
const Sr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
950
|
+
v.init(e, t), e._zod.parse = (n, r) => {
|
|
1480
951
|
const o = n.value;
|
|
1481
952
|
if (!Array.isArray(o))
|
|
1482
953
|
return n.issues.push({
|
|
@@ -1487,25 +958,25 @@ const uo = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1487
958
|
}), n;
|
|
1488
959
|
n.value = Array(o.length);
|
|
1489
960
|
const s = [];
|
|
1490
|
-
for (let
|
|
1491
|
-
const u = o[
|
|
961
|
+
for (let i = 0; i < o.length; i++) {
|
|
962
|
+
const u = o[i], l = t.element._zod.run({
|
|
1492
963
|
value: u,
|
|
1493
964
|
issues: []
|
|
1494
965
|
}, r);
|
|
1495
|
-
|
|
966
|
+
l instanceof Promise ? s.push(l.then((d) => _e(d, n, i))) : _e(l, n, i);
|
|
1496
967
|
}
|
|
1497
968
|
return s.length ? Promise.all(s).then(() => n) : n;
|
|
1498
969
|
};
|
|
1499
970
|
});
|
|
1500
|
-
function
|
|
1501
|
-
e.issues.length && t.issues.push(...
|
|
971
|
+
function H(e, t, n, r) {
|
|
972
|
+
e.issues.length && t.issues.push(...He(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1502
973
|
}
|
|
1503
|
-
function
|
|
974
|
+
function tt(e) {
|
|
1504
975
|
const t = Object.keys(e.shape);
|
|
1505
976
|
for (const r of t)
|
|
1506
977
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
1507
978
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
1508
|
-
const n =
|
|
979
|
+
const n = on(e.shape);
|
|
1509
980
|
return {
|
|
1510
981
|
...e,
|
|
1511
982
|
keys: t,
|
|
@@ -1514,186 +985,186 @@ function _t(e) {
|
|
|
1514
985
|
optionalKeys: new Set(n)
|
|
1515
986
|
};
|
|
1516
987
|
}
|
|
1517
|
-
function
|
|
1518
|
-
const
|
|
1519
|
-
for (const
|
|
1520
|
-
if (u.has(
|
|
988
|
+
function nt(e, t, n, r, o, s) {
|
|
989
|
+
const i = [], u = o.keySet, l = o.catchall._zod, d = l.def.type;
|
|
990
|
+
for (const p of Object.keys(t)) {
|
|
991
|
+
if (u.has(p))
|
|
1521
992
|
continue;
|
|
1522
|
-
if (
|
|
1523
|
-
|
|
993
|
+
if (d === "never") {
|
|
994
|
+
i.push(p);
|
|
1524
995
|
continue;
|
|
1525
996
|
}
|
|
1526
|
-
const
|
|
1527
|
-
|
|
997
|
+
const b = l.run({ value: t[p], issues: [] }, r);
|
|
998
|
+
b instanceof Promise ? e.push(b.then((_) => H(_, n, p, t))) : H(b, n, p, t);
|
|
1528
999
|
}
|
|
1529
|
-
return
|
|
1000
|
+
return i.length && n.issues.push({
|
|
1530
1001
|
code: "unrecognized_keys",
|
|
1531
|
-
keys:
|
|
1002
|
+
keys: i,
|
|
1532
1003
|
input: t,
|
|
1533
1004
|
inst: s
|
|
1534
1005
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1535
1006
|
}
|
|
1536
|
-
const
|
|
1537
|
-
if (
|
|
1007
|
+
const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1008
|
+
if (v.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1538
1009
|
const u = t.shape;
|
|
1539
1010
|
Object.defineProperty(t, "shape", {
|
|
1540
1011
|
get: () => {
|
|
1541
|
-
const
|
|
1012
|
+
const l = { ...u };
|
|
1542
1013
|
return Object.defineProperty(t, "shape", {
|
|
1543
|
-
value:
|
|
1544
|
-
}),
|
|
1014
|
+
value: l
|
|
1015
|
+
}), l;
|
|
1545
1016
|
}
|
|
1546
1017
|
});
|
|
1547
1018
|
}
|
|
1548
|
-
const r =
|
|
1549
|
-
|
|
1550
|
-
const u = t.shape,
|
|
1551
|
-
for (const
|
|
1552
|
-
const
|
|
1553
|
-
if (
|
|
1554
|
-
d
|
|
1555
|
-
for (const
|
|
1556
|
-
d
|
|
1019
|
+
const r = se(() => tt(t));
|
|
1020
|
+
h(e._zod, "propValues", () => {
|
|
1021
|
+
const u = t.shape, l = {};
|
|
1022
|
+
for (const d in u) {
|
|
1023
|
+
const p = u[d]._zod;
|
|
1024
|
+
if (p.values) {
|
|
1025
|
+
l[d] ?? (l[d] = /* @__PURE__ */ new Set());
|
|
1026
|
+
for (const b of p.values)
|
|
1027
|
+
l[d].add(b);
|
|
1557
1028
|
}
|
|
1558
1029
|
}
|
|
1559
|
-
return
|
|
1030
|
+
return l;
|
|
1560
1031
|
});
|
|
1561
|
-
const o =
|
|
1562
|
-
let
|
|
1563
|
-
e._zod.parse = (u,
|
|
1564
|
-
|
|
1565
|
-
const
|
|
1566
|
-
if (!o(
|
|
1032
|
+
const o = V, s = t.catchall;
|
|
1033
|
+
let i;
|
|
1034
|
+
e._zod.parse = (u, l) => {
|
|
1035
|
+
i ?? (i = r.value);
|
|
1036
|
+
const d = u.value;
|
|
1037
|
+
if (!o(d))
|
|
1567
1038
|
return u.issues.push({
|
|
1568
1039
|
expected: "object",
|
|
1569
1040
|
code: "invalid_type",
|
|
1570
|
-
input:
|
|
1041
|
+
input: d,
|
|
1571
1042
|
inst: e
|
|
1572
1043
|
}), u;
|
|
1573
1044
|
u.value = {};
|
|
1574
|
-
const
|
|
1575
|
-
for (const
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1045
|
+
const p = [], b = i.shape;
|
|
1046
|
+
for (const _ of i.keys) {
|
|
1047
|
+
const y = b[_]._zod.run({ value: d[_], issues: [] }, l);
|
|
1048
|
+
y instanceof Promise ? p.push(y.then((te) => H(te, u, _, d))) : H(y, u, _, d);
|
|
1578
1049
|
}
|
|
1579
|
-
return s ?
|
|
1050
|
+
return s ? nt(p, d, u, l, r.value, e) : p.length ? Promise.all(p).then(() => u) : u;
|
|
1580
1051
|
};
|
|
1581
|
-
}),
|
|
1582
|
-
|
|
1583
|
-
const n = e._zod.parse, r =
|
|
1584
|
-
const
|
|
1585
|
-
const
|
|
1586
|
-
return `shape[${
|
|
1052
|
+
}), Dr = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
|
|
1053
|
+
Nr.init(e, t);
|
|
1054
|
+
const n = e._zod.parse, r = se(() => tt(t)), o = (_) => {
|
|
1055
|
+
const w = new sr(["shape", "payload", "ctx"]), y = r.value, te = (E) => {
|
|
1056
|
+
const Z = me(E);
|
|
1057
|
+
return `shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`;
|
|
1587
1058
|
};
|
|
1588
|
-
|
|
1589
|
-
const
|
|
1590
|
-
let
|
|
1591
|
-
for (const
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
for (const
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1597
|
-
if (${
|
|
1598
|
-
payload.issues = payload.issues.concat(${
|
|
1059
|
+
w.write("const input = payload.value;");
|
|
1060
|
+
const fe = /* @__PURE__ */ Object.create(null);
|
|
1061
|
+
let pt = 0;
|
|
1062
|
+
for (const E of y.keys)
|
|
1063
|
+
fe[E] = `key_${pt++}`;
|
|
1064
|
+
w.write("const newResult = {};");
|
|
1065
|
+
for (const E of y.keys) {
|
|
1066
|
+
const Z = fe[E], R = me(E);
|
|
1067
|
+
w.write(`const ${Z} = ${te(E)};`), w.write(`
|
|
1068
|
+
if (${Z}.issues.length) {
|
|
1069
|
+
payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({
|
|
1599
1070
|
...iss,
|
|
1600
|
-
path: iss.path ? [${
|
|
1071
|
+
path: iss.path ? [${R}, ...iss.path] : [${R}]
|
|
1601
1072
|
})));
|
|
1602
1073
|
}
|
|
1603
1074
|
|
|
1604
1075
|
|
|
1605
|
-
if (${
|
|
1606
|
-
if (${
|
|
1607
|
-
newResult[${
|
|
1076
|
+
if (${Z}.value === undefined) {
|
|
1077
|
+
if (${R} in input) {
|
|
1078
|
+
newResult[${R}] = undefined;
|
|
1608
1079
|
}
|
|
1609
1080
|
} else {
|
|
1610
|
-
newResult[${
|
|
1081
|
+
newResult[${R}] = ${Z}.value;
|
|
1611
1082
|
}
|
|
1612
1083
|
|
|
1613
1084
|
`);
|
|
1614
1085
|
}
|
|
1615
|
-
|
|
1616
|
-
const
|
|
1617
|
-
return (
|
|
1086
|
+
w.write("payload.value = newResult;"), w.write("return payload;");
|
|
1087
|
+
const ht = w.compile();
|
|
1088
|
+
return (E, Z) => ht(_, E, Z);
|
|
1618
1089
|
};
|
|
1619
1090
|
let s;
|
|
1620
|
-
const
|
|
1621
|
-
let
|
|
1622
|
-
e._zod.parse = (
|
|
1623
|
-
|
|
1624
|
-
const
|
|
1625
|
-
return
|
|
1091
|
+
const i = V, u = !We.jitless, d = u && nn.value, p = t.catchall;
|
|
1092
|
+
let b;
|
|
1093
|
+
e._zod.parse = (_, w) => {
|
|
1094
|
+
b ?? (b = r.value);
|
|
1095
|
+
const y = _.value;
|
|
1096
|
+
return i(y) ? u && d && w?.async === !1 && w.jitless !== !0 ? (s || (s = o(t.shape)), _ = s(_, w), p ? nt([], y, _, w, b, e) : _) : n(_, w) : (_.issues.push({
|
|
1626
1097
|
expected: "object",
|
|
1627
1098
|
code: "invalid_type",
|
|
1628
|
-
input:
|
|
1099
|
+
input: y,
|
|
1629
1100
|
inst: e
|
|
1630
|
-
}),
|
|
1101
|
+
}), _);
|
|
1631
1102
|
};
|
|
1632
1103
|
});
|
|
1633
|
-
function
|
|
1104
|
+
function ve(e, t, n, r) {
|
|
1634
1105
|
for (const s of e)
|
|
1635
1106
|
if (s.issues.length === 0)
|
|
1636
1107
|
return t.value = s.value, t;
|
|
1637
|
-
const o = e.filter((s) => !
|
|
1108
|
+
const o = e.filter((s) => !N(s));
|
|
1638
1109
|
return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
|
|
1639
1110
|
code: "invalid_union",
|
|
1640
1111
|
input: t.value,
|
|
1641
1112
|
inst: n,
|
|
1642
|
-
errors: e.map((s) => s.issues.map((
|
|
1113
|
+
errors: e.map((s) => s.issues.map((i) => A(i, r, I())))
|
|
1643
1114
|
}), t);
|
|
1644
1115
|
}
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1116
|
+
const Rr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1117
|
+
v.init(e, t), h(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), h(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), h(e._zod, "values", () => {
|
|
1647
1118
|
if (t.options.every((o) => o._zod.values))
|
|
1648
1119
|
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
1649
|
-
}),
|
|
1120
|
+
}), h(e._zod, "pattern", () => {
|
|
1650
1121
|
if (t.options.every((o) => o._zod.pattern)) {
|
|
1651
1122
|
const o = t.options.map((s) => s._zod.pattern);
|
|
1652
|
-
return new RegExp(`^(${o.map((s) =>
|
|
1123
|
+
return new RegExp(`^(${o.map((s) => ae(s.source)).join("|")})$`);
|
|
1653
1124
|
}
|
|
1654
1125
|
});
|
|
1655
1126
|
const n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
1656
1127
|
e._zod.parse = (o, s) => {
|
|
1657
1128
|
if (n)
|
|
1658
1129
|
return r(o, s);
|
|
1659
|
-
let
|
|
1130
|
+
let i = !1;
|
|
1660
1131
|
const u = [];
|
|
1661
|
-
for (const
|
|
1662
|
-
const
|
|
1132
|
+
for (const l of t.options) {
|
|
1133
|
+
const d = l._zod.run({
|
|
1663
1134
|
value: o.value,
|
|
1664
1135
|
issues: []
|
|
1665
1136
|
}, s);
|
|
1666
|
-
if (
|
|
1667
|
-
u.push(
|
|
1137
|
+
if (d instanceof Promise)
|
|
1138
|
+
u.push(d), i = !0;
|
|
1668
1139
|
else {
|
|
1669
|
-
if (
|
|
1670
|
-
return
|
|
1671
|
-
u.push(
|
|
1140
|
+
if (d.issues.length === 0)
|
|
1141
|
+
return d;
|
|
1142
|
+
u.push(d);
|
|
1672
1143
|
}
|
|
1673
1144
|
}
|
|
1674
|
-
return
|
|
1145
|
+
return i ? Promise.all(u).then((l) => ve(l, o, e, s)) : ve(u, o, e, s);
|
|
1675
1146
|
};
|
|
1676
|
-
}),
|
|
1677
|
-
|
|
1678
|
-
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r),
|
|
1679
|
-
return s instanceof Promise ||
|
|
1147
|
+
}), Cr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1148
|
+
v.init(e, t), e._zod.parse = (n, r) => {
|
|
1149
|
+
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
|
|
1150
|
+
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([l, d]) => we(n, l, d)) : we(n, s, i);
|
|
1680
1151
|
};
|
|
1681
1152
|
});
|
|
1682
|
-
function
|
|
1153
|
+
function re(e, t) {
|
|
1683
1154
|
if (e === t)
|
|
1684
1155
|
return { valid: !0, data: e };
|
|
1685
1156
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
1686
1157
|
return { valid: !0, data: e };
|
|
1687
|
-
if (
|
|
1158
|
+
if (C(e) && C(t)) {
|
|
1688
1159
|
const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
|
|
1689
1160
|
for (const s of r) {
|
|
1690
|
-
const
|
|
1691
|
-
if (!
|
|
1161
|
+
const i = re(e[s], t[s]);
|
|
1162
|
+
if (!i.valid)
|
|
1692
1163
|
return {
|
|
1693
1164
|
valid: !1,
|
|
1694
|
-
mergeErrorPath: [s, ...
|
|
1165
|
+
mergeErrorPath: [s, ...i.mergeErrorPath]
|
|
1695
1166
|
};
|
|
1696
|
-
o[s] =
|
|
1167
|
+
o[s] = i.data;
|
|
1697
1168
|
}
|
|
1698
1169
|
return { valid: !0, data: o };
|
|
1699
1170
|
}
|
|
@@ -1702,94 +1173,94 @@ function le(e, t) {
|
|
|
1702
1173
|
return { valid: !1, mergeErrorPath: [] };
|
|
1703
1174
|
const n = [];
|
|
1704
1175
|
for (let r = 0; r < e.length; r++) {
|
|
1705
|
-
const o = e[r], s = t[r],
|
|
1706
|
-
if (!
|
|
1176
|
+
const o = e[r], s = t[r], i = re(o, s);
|
|
1177
|
+
if (!i.valid)
|
|
1707
1178
|
return {
|
|
1708
1179
|
valid: !1,
|
|
1709
|
-
mergeErrorPath: [r, ...
|
|
1180
|
+
mergeErrorPath: [r, ...i.mergeErrorPath]
|
|
1710
1181
|
};
|
|
1711
|
-
n.push(
|
|
1182
|
+
n.push(i.data);
|
|
1712
1183
|
}
|
|
1713
1184
|
return { valid: !0, data: n };
|
|
1714
1185
|
}
|
|
1715
1186
|
return { valid: !1, mergeErrorPath: [] };
|
|
1716
1187
|
}
|
|
1717
|
-
function
|
|
1718
|
-
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues),
|
|
1188
|
+
function we(e, t, n) {
|
|
1189
|
+
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), N(e))
|
|
1719
1190
|
return e;
|
|
1720
|
-
const r =
|
|
1191
|
+
const r = re(t.value, n.value);
|
|
1721
1192
|
if (!r.valid)
|
|
1722
1193
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1723
1194
|
return e.value = r.data, e;
|
|
1724
1195
|
}
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1727
|
-
const n =
|
|
1728
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) =>
|
|
1729
|
-
const
|
|
1730
|
-
return r.has(
|
|
1196
|
+
const Ur = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1197
|
+
v.init(e, t);
|
|
1198
|
+
const n = tn(t.entries), r = new Set(n);
|
|
1199
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => rn.has(typeof o)).map((o) => typeof o == "string" ? Y(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
|
|
1200
|
+
const i = o.value;
|
|
1201
|
+
return r.has(i) || o.issues.push({
|
|
1731
1202
|
code: "invalid_value",
|
|
1732
1203
|
values: n,
|
|
1733
|
-
input:
|
|
1204
|
+
input: i,
|
|
1734
1205
|
inst: e
|
|
1735
1206
|
}), o;
|
|
1736
1207
|
};
|
|
1737
|
-
}),
|
|
1738
|
-
|
|
1208
|
+
}), Fr = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1209
|
+
v.init(e, t), e._zod.parse = (n, r) => {
|
|
1739
1210
|
if (r.direction === "backward")
|
|
1740
|
-
throw new
|
|
1211
|
+
throw new Me(e.constructor.name);
|
|
1741
1212
|
const o = t.transform(n.value, n);
|
|
1742
1213
|
if (r.async)
|
|
1743
|
-
return (o instanceof Promise ? o : Promise.resolve(o)).then((
|
|
1214
|
+
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
|
|
1744
1215
|
if (o instanceof Promise)
|
|
1745
|
-
throw new
|
|
1216
|
+
throw new D();
|
|
1746
1217
|
return n.value = o, n;
|
|
1747
1218
|
};
|
|
1748
1219
|
});
|
|
1749
|
-
function
|
|
1220
|
+
function ze(e, t) {
|
|
1750
1221
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1751
1222
|
}
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1223
|
+
const Lr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1224
|
+
v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), h(e._zod, "pattern", () => {
|
|
1754
1225
|
const n = t.innerType._zod.pattern;
|
|
1755
|
-
return n ? new RegExp(`^(${
|
|
1226
|
+
return n ? new RegExp(`^(${ae(n.source)})?$`) : void 0;
|
|
1756
1227
|
}), e._zod.parse = (n, r) => {
|
|
1757
1228
|
if (t.innerType._zod.optin === "optional") {
|
|
1758
1229
|
const o = t.innerType._zod.run(n, r);
|
|
1759
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1230
|
+
return o instanceof Promise ? o.then((s) => ze(s, n.value)) : ze(o, n.value);
|
|
1760
1231
|
}
|
|
1761
1232
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
1762
1233
|
};
|
|
1763
|
-
}),
|
|
1764
|
-
|
|
1234
|
+
}), Br = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1235
|
+
v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "pattern", () => {
|
|
1765
1236
|
const n = t.innerType._zod.pattern;
|
|
1766
|
-
return n ? new RegExp(`^(${
|
|
1767
|
-
}),
|
|
1768
|
-
}),
|
|
1769
|
-
|
|
1237
|
+
return n ? new RegExp(`^(${ae(n.source)}|null)$`) : void 0;
|
|
1238
|
+
}), h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
1239
|
+
}), Mr = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1240
|
+
v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1770
1241
|
if (r.direction === "backward")
|
|
1771
1242
|
return t.innerType._zod.run(n, r);
|
|
1772
1243
|
if (n.value === void 0)
|
|
1773
1244
|
return n.value = t.defaultValue, n;
|
|
1774
1245
|
const o = t.innerType._zod.run(n, r);
|
|
1775
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1246
|
+
return o instanceof Promise ? o.then((s) => be(s, t)) : be(o, t);
|
|
1776
1247
|
};
|
|
1777
1248
|
});
|
|
1778
|
-
function
|
|
1249
|
+
function be(e, t) {
|
|
1779
1250
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1780
1251
|
}
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1783
|
-
}),
|
|
1784
|
-
|
|
1252
|
+
const Wr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1253
|
+
v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
1254
|
+
}), qr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1255
|
+
v.init(e, t), h(e._zod, "values", () => {
|
|
1785
1256
|
const n = t.innerType._zod.values;
|
|
1786
1257
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
1787
1258
|
}), e._zod.parse = (n, r) => {
|
|
1788
1259
|
const o = t.innerType._zod.run(n, r);
|
|
1789
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1260
|
+
return o instanceof Promise ? o.then((s) => ye(s, e)) : ye(o, e);
|
|
1790
1261
|
};
|
|
1791
1262
|
});
|
|
1792
|
-
function
|
|
1263
|
+
function ye(e, t) {
|
|
1793
1264
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1794
1265
|
code: "invalid_type",
|
|
1795
1266
|
expected: "nonoptional",
|
|
@@ -1797,58 +1268,58 @@ function Ne(e, t) {
|
|
|
1797
1268
|
inst: t
|
|
1798
1269
|
}), e;
|
|
1799
1270
|
}
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1271
|
+
const Vr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1272
|
+
v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1802
1273
|
if (r.direction === "backward")
|
|
1803
1274
|
return t.innerType._zod.run(n, r);
|
|
1804
1275
|
const o = t.innerType._zod.run(n, r);
|
|
1805
1276
|
return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
|
|
1806
1277
|
...n,
|
|
1807
1278
|
error: {
|
|
1808
|
-
issues: s.issues.map((
|
|
1279
|
+
issues: s.issues.map((i) => A(i, r, I()))
|
|
1809
1280
|
},
|
|
1810
1281
|
input: n.value
|
|
1811
1282
|
}), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
|
|
1812
1283
|
...n,
|
|
1813
1284
|
error: {
|
|
1814
|
-
issues: o.issues.map((s) =>
|
|
1285
|
+
issues: o.issues.map((s) => A(s, r, I()))
|
|
1815
1286
|
},
|
|
1816
1287
|
input: n.value
|
|
1817
1288
|
}), n.issues = []), n);
|
|
1818
1289
|
};
|
|
1819
|
-
}),
|
|
1820
|
-
|
|
1290
|
+
}), Hr = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1291
|
+
v.init(e, t), h(e._zod, "values", () => t.in._zod.values), h(e._zod, "optin", () => t.in._zod.optin), h(e._zod, "optout", () => t.out._zod.optout), h(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
1821
1292
|
if (r.direction === "backward") {
|
|
1822
1293
|
const s = t.out._zod.run(n, r);
|
|
1823
|
-
return s instanceof Promise ? s.then((
|
|
1294
|
+
return s instanceof Promise ? s.then((i) => M(i, t.in, r)) : M(s, t.in, r);
|
|
1824
1295
|
}
|
|
1825
1296
|
const o = t.in._zod.run(n, r);
|
|
1826
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1297
|
+
return o instanceof Promise ? o.then((s) => M(s, t.out, r)) : M(o, t.out, r);
|
|
1827
1298
|
};
|
|
1828
1299
|
});
|
|
1829
|
-
function
|
|
1300
|
+
function M(e, t, n) {
|
|
1830
1301
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
1831
1302
|
}
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1303
|
+
const Jr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1304
|
+
v.init(e, t), h(e._zod, "propValues", () => t.innerType._zod.propValues), h(e._zod, "values", () => t.innerType._zod.values), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
|
|
1834
1305
|
if (r.direction === "backward")
|
|
1835
1306
|
return t.innerType._zod.run(n, r);
|
|
1836
1307
|
const o = t.innerType._zod.run(n, r);
|
|
1837
|
-
return o instanceof Promise ? o.then(
|
|
1308
|
+
return o instanceof Promise ? o.then(ke) : ke(o);
|
|
1838
1309
|
};
|
|
1839
1310
|
});
|
|
1840
|
-
function
|
|
1311
|
+
function ke(e) {
|
|
1841
1312
|
return e.value = Object.freeze(e.value), e;
|
|
1842
1313
|
}
|
|
1843
|
-
const
|
|
1844
|
-
|
|
1314
|
+
const Kr = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1315
|
+
j.init(e, t), v.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
1845
1316
|
const r = n.value, o = t.fn(r);
|
|
1846
1317
|
if (o instanceof Promise)
|
|
1847
|
-
return o.then((s) =>
|
|
1848
|
-
|
|
1318
|
+
return o.then((s) => xe(s, n, r, e));
|
|
1319
|
+
xe(o, n, r, e);
|
|
1849
1320
|
};
|
|
1850
1321
|
});
|
|
1851
|
-
function
|
|
1322
|
+
function xe(e, t, n, r) {
|
|
1852
1323
|
if (!e) {
|
|
1853
1324
|
const o = {
|
|
1854
1325
|
code: "custom",
|
|
@@ -1860,10 +1331,10 @@ function Ue(e, t, n, r) {
|
|
|
1860
1331
|
continue: !r._zod.def.abort
|
|
1861
1332
|
// params: inst._zod.def.params,
|
|
1862
1333
|
};
|
|
1863
|
-
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(
|
|
1334
|
+
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(U(o));
|
|
1864
1335
|
}
|
|
1865
1336
|
}
|
|
1866
|
-
class
|
|
1337
|
+
class Gr {
|
|
1867
1338
|
constructor() {
|
|
1868
1339
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1869
1340
|
}
|
|
@@ -1897,218 +1368,218 @@ class $o {
|
|
|
1897
1368
|
return this._map.has(t);
|
|
1898
1369
|
}
|
|
1899
1370
|
}
|
|
1900
|
-
function
|
|
1901
|
-
return new
|
|
1371
|
+
function Yr() {
|
|
1372
|
+
return new Gr();
|
|
1902
1373
|
}
|
|
1903
|
-
const
|
|
1904
|
-
function
|
|
1374
|
+
const W = /* @__PURE__ */ Yr();
|
|
1375
|
+
function Qr(e, t) {
|
|
1905
1376
|
return new e({
|
|
1906
1377
|
type: "string",
|
|
1907
|
-
...
|
|
1378
|
+
...f(t)
|
|
1908
1379
|
});
|
|
1909
1380
|
}
|
|
1910
|
-
function
|
|
1381
|
+
function Xr(e, t) {
|
|
1911
1382
|
return new e({
|
|
1912
1383
|
type: "string",
|
|
1913
1384
|
format: "email",
|
|
1914
1385
|
check: "string_format",
|
|
1915
1386
|
abort: !1,
|
|
1916
|
-
...
|
|
1387
|
+
...f(t)
|
|
1917
1388
|
});
|
|
1918
1389
|
}
|
|
1919
|
-
function
|
|
1390
|
+
function Ze(e, t) {
|
|
1920
1391
|
return new e({
|
|
1921
1392
|
type: "string",
|
|
1922
1393
|
format: "guid",
|
|
1923
1394
|
check: "string_format",
|
|
1924
1395
|
abort: !1,
|
|
1925
|
-
...
|
|
1396
|
+
...f(t)
|
|
1926
1397
|
});
|
|
1927
1398
|
}
|
|
1928
|
-
function
|
|
1399
|
+
function eo(e, t) {
|
|
1929
1400
|
return new e({
|
|
1930
1401
|
type: "string",
|
|
1931
1402
|
format: "uuid",
|
|
1932
1403
|
check: "string_format",
|
|
1933
1404
|
abort: !1,
|
|
1934
|
-
...
|
|
1405
|
+
...f(t)
|
|
1935
1406
|
});
|
|
1936
1407
|
}
|
|
1937
|
-
function
|
|
1408
|
+
function to(e, t) {
|
|
1938
1409
|
return new e({
|
|
1939
1410
|
type: "string",
|
|
1940
1411
|
format: "uuid",
|
|
1941
1412
|
check: "string_format",
|
|
1942
1413
|
abort: !1,
|
|
1943
1414
|
version: "v4",
|
|
1944
|
-
...
|
|
1415
|
+
...f(t)
|
|
1945
1416
|
});
|
|
1946
1417
|
}
|
|
1947
|
-
function
|
|
1418
|
+
function no(e, t) {
|
|
1948
1419
|
return new e({
|
|
1949
1420
|
type: "string",
|
|
1950
1421
|
format: "uuid",
|
|
1951
1422
|
check: "string_format",
|
|
1952
1423
|
abort: !1,
|
|
1953
1424
|
version: "v6",
|
|
1954
|
-
...
|
|
1425
|
+
...f(t)
|
|
1955
1426
|
});
|
|
1956
1427
|
}
|
|
1957
|
-
function
|
|
1428
|
+
function ro(e, t) {
|
|
1958
1429
|
return new e({
|
|
1959
1430
|
type: "string",
|
|
1960
1431
|
format: "uuid",
|
|
1961
1432
|
check: "string_format",
|
|
1962
1433
|
abort: !1,
|
|
1963
1434
|
version: "v7",
|
|
1964
|
-
...
|
|
1435
|
+
...f(t)
|
|
1965
1436
|
});
|
|
1966
1437
|
}
|
|
1967
|
-
function
|
|
1438
|
+
function oo(e, t) {
|
|
1968
1439
|
return new e({
|
|
1969
1440
|
type: "string",
|
|
1970
1441
|
format: "url",
|
|
1971
1442
|
check: "string_format",
|
|
1972
1443
|
abort: !1,
|
|
1973
|
-
...
|
|
1444
|
+
...f(t)
|
|
1974
1445
|
});
|
|
1975
1446
|
}
|
|
1976
|
-
function
|
|
1447
|
+
function so(e, t) {
|
|
1977
1448
|
return new e({
|
|
1978
1449
|
type: "string",
|
|
1979
1450
|
format: "emoji",
|
|
1980
1451
|
check: "string_format",
|
|
1981
1452
|
abort: !1,
|
|
1982
|
-
...
|
|
1453
|
+
...f(t)
|
|
1983
1454
|
});
|
|
1984
1455
|
}
|
|
1985
|
-
function
|
|
1456
|
+
function io(e, t) {
|
|
1986
1457
|
return new e({
|
|
1987
1458
|
type: "string",
|
|
1988
1459
|
format: "nanoid",
|
|
1989
1460
|
check: "string_format",
|
|
1990
1461
|
abort: !1,
|
|
1991
|
-
...
|
|
1462
|
+
...f(t)
|
|
1992
1463
|
});
|
|
1993
1464
|
}
|
|
1994
|
-
function
|
|
1465
|
+
function ao(e, t) {
|
|
1995
1466
|
return new e({
|
|
1996
1467
|
type: "string",
|
|
1997
1468
|
format: "cuid",
|
|
1998
1469
|
check: "string_format",
|
|
1999
1470
|
abort: !1,
|
|
2000
|
-
...
|
|
1471
|
+
...f(t)
|
|
2001
1472
|
});
|
|
2002
1473
|
}
|
|
2003
|
-
function
|
|
1474
|
+
function co(e, t) {
|
|
2004
1475
|
return new e({
|
|
2005
1476
|
type: "string",
|
|
2006
1477
|
format: "cuid2",
|
|
2007
1478
|
check: "string_format",
|
|
2008
1479
|
abort: !1,
|
|
2009
|
-
...
|
|
1480
|
+
...f(t)
|
|
2010
1481
|
});
|
|
2011
1482
|
}
|
|
2012
|
-
function
|
|
1483
|
+
function uo(e, t) {
|
|
2013
1484
|
return new e({
|
|
2014
1485
|
type: "string",
|
|
2015
1486
|
format: "ulid",
|
|
2016
1487
|
check: "string_format",
|
|
2017
1488
|
abort: !1,
|
|
2018
|
-
...
|
|
1489
|
+
...f(t)
|
|
2019
1490
|
});
|
|
2020
1491
|
}
|
|
2021
|
-
function
|
|
1492
|
+
function lo(e, t) {
|
|
2022
1493
|
return new e({
|
|
2023
1494
|
type: "string",
|
|
2024
1495
|
format: "xid",
|
|
2025
1496
|
check: "string_format",
|
|
2026
1497
|
abort: !1,
|
|
2027
|
-
...
|
|
1498
|
+
...f(t)
|
|
2028
1499
|
});
|
|
2029
1500
|
}
|
|
2030
|
-
function
|
|
1501
|
+
function fo(e, t) {
|
|
2031
1502
|
return new e({
|
|
2032
1503
|
type: "string",
|
|
2033
1504
|
format: "ksuid",
|
|
2034
1505
|
check: "string_format",
|
|
2035
1506
|
abort: !1,
|
|
2036
|
-
...
|
|
1507
|
+
...f(t)
|
|
2037
1508
|
});
|
|
2038
1509
|
}
|
|
2039
|
-
function
|
|
1510
|
+
function po(e, t) {
|
|
2040
1511
|
return new e({
|
|
2041
1512
|
type: "string",
|
|
2042
1513
|
format: "ipv4",
|
|
2043
1514
|
check: "string_format",
|
|
2044
1515
|
abort: !1,
|
|
2045
|
-
...
|
|
1516
|
+
...f(t)
|
|
2046
1517
|
});
|
|
2047
1518
|
}
|
|
2048
|
-
function
|
|
1519
|
+
function ho(e, t) {
|
|
2049
1520
|
return new e({
|
|
2050
1521
|
type: "string",
|
|
2051
1522
|
format: "ipv6",
|
|
2052
1523
|
check: "string_format",
|
|
2053
1524
|
abort: !1,
|
|
2054
|
-
...
|
|
1525
|
+
...f(t)
|
|
2055
1526
|
});
|
|
2056
1527
|
}
|
|
2057
|
-
function
|
|
1528
|
+
function mo(e, t) {
|
|
2058
1529
|
return new e({
|
|
2059
1530
|
type: "string",
|
|
2060
1531
|
format: "cidrv4",
|
|
2061
1532
|
check: "string_format",
|
|
2062
1533
|
abort: !1,
|
|
2063
|
-
...
|
|
1534
|
+
...f(t)
|
|
2064
1535
|
});
|
|
2065
1536
|
}
|
|
2066
|
-
function
|
|
1537
|
+
function go(e, t) {
|
|
2067
1538
|
return new e({
|
|
2068
1539
|
type: "string",
|
|
2069
1540
|
format: "cidrv6",
|
|
2070
1541
|
check: "string_format",
|
|
2071
1542
|
abort: !1,
|
|
2072
|
-
...
|
|
1543
|
+
...f(t)
|
|
2073
1544
|
});
|
|
2074
1545
|
}
|
|
2075
|
-
function
|
|
1546
|
+
function _o(e, t) {
|
|
2076
1547
|
return new e({
|
|
2077
1548
|
type: "string",
|
|
2078
1549
|
format: "base64",
|
|
2079
1550
|
check: "string_format",
|
|
2080
1551
|
abort: !1,
|
|
2081
|
-
...
|
|
1552
|
+
...f(t)
|
|
2082
1553
|
});
|
|
2083
1554
|
}
|
|
2084
|
-
function
|
|
1555
|
+
function vo(e, t) {
|
|
2085
1556
|
return new e({
|
|
2086
1557
|
type: "string",
|
|
2087
1558
|
format: "base64url",
|
|
2088
1559
|
check: "string_format",
|
|
2089
1560
|
abort: !1,
|
|
2090
|
-
...
|
|
1561
|
+
...f(t)
|
|
2091
1562
|
});
|
|
2092
1563
|
}
|
|
2093
|
-
function
|
|
1564
|
+
function wo(e, t) {
|
|
2094
1565
|
return new e({
|
|
2095
1566
|
type: "string",
|
|
2096
1567
|
format: "e164",
|
|
2097
1568
|
check: "string_format",
|
|
2098
1569
|
abort: !1,
|
|
2099
|
-
...
|
|
1570
|
+
...f(t)
|
|
2100
1571
|
});
|
|
2101
1572
|
}
|
|
2102
|
-
function
|
|
1573
|
+
function zo(e, t) {
|
|
2103
1574
|
return new e({
|
|
2104
1575
|
type: "string",
|
|
2105
1576
|
format: "jwt",
|
|
2106
1577
|
check: "string_format",
|
|
2107
1578
|
abort: !1,
|
|
2108
|
-
...
|
|
1579
|
+
...f(t)
|
|
2109
1580
|
});
|
|
2110
1581
|
}
|
|
2111
|
-
function
|
|
1582
|
+
function bo(e, t) {
|
|
2112
1583
|
return new e({
|
|
2113
1584
|
type: "string",
|
|
2114
1585
|
format: "datetime",
|
|
@@ -2116,209 +1587,209 @@ function Jo(e, t) {
|
|
|
2116
1587
|
offset: !1,
|
|
2117
1588
|
local: !1,
|
|
2118
1589
|
precision: null,
|
|
2119
|
-
...
|
|
1590
|
+
...f(t)
|
|
2120
1591
|
});
|
|
2121
1592
|
}
|
|
2122
|
-
function
|
|
1593
|
+
function yo(e, t) {
|
|
2123
1594
|
return new e({
|
|
2124
1595
|
type: "string",
|
|
2125
1596
|
format: "date",
|
|
2126
1597
|
check: "string_format",
|
|
2127
|
-
...
|
|
1598
|
+
...f(t)
|
|
2128
1599
|
});
|
|
2129
1600
|
}
|
|
2130
|
-
function
|
|
1601
|
+
function ko(e, t) {
|
|
2131
1602
|
return new e({
|
|
2132
1603
|
type: "string",
|
|
2133
1604
|
format: "time",
|
|
2134
1605
|
check: "string_format",
|
|
2135
1606
|
precision: null,
|
|
2136
|
-
...
|
|
1607
|
+
...f(t)
|
|
2137
1608
|
});
|
|
2138
1609
|
}
|
|
2139
|
-
function
|
|
1610
|
+
function xo(e, t) {
|
|
2140
1611
|
return new e({
|
|
2141
1612
|
type: "string",
|
|
2142
1613
|
format: "duration",
|
|
2143
1614
|
check: "string_format",
|
|
2144
|
-
...
|
|
1615
|
+
...f(t)
|
|
2145
1616
|
});
|
|
2146
1617
|
}
|
|
2147
|
-
function
|
|
1618
|
+
function Zo(e) {
|
|
2148
1619
|
return new e({
|
|
2149
1620
|
type: "unknown"
|
|
2150
1621
|
});
|
|
2151
1622
|
}
|
|
2152
|
-
function
|
|
1623
|
+
function $o(e, t) {
|
|
2153
1624
|
return new e({
|
|
2154
1625
|
type: "never",
|
|
2155
|
-
...
|
|
1626
|
+
...f(t)
|
|
2156
1627
|
});
|
|
2157
1628
|
}
|
|
2158
|
-
function
|
|
2159
|
-
return new
|
|
1629
|
+
function rt(e, t) {
|
|
1630
|
+
return new Kn({
|
|
2160
1631
|
check: "max_length",
|
|
2161
|
-
...
|
|
1632
|
+
...f(t),
|
|
2162
1633
|
maximum: e
|
|
2163
1634
|
});
|
|
2164
1635
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return new
|
|
1636
|
+
function J(e, t) {
|
|
1637
|
+
return new Gn({
|
|
2167
1638
|
check: "min_length",
|
|
2168
|
-
...
|
|
1639
|
+
...f(t),
|
|
2169
1640
|
minimum: e
|
|
2170
1641
|
});
|
|
2171
1642
|
}
|
|
2172
|
-
function
|
|
2173
|
-
return new
|
|
1643
|
+
function ot(e, t) {
|
|
1644
|
+
return new Yn({
|
|
2174
1645
|
check: "length_equals",
|
|
2175
|
-
...
|
|
1646
|
+
...f(t),
|
|
2176
1647
|
length: e
|
|
2177
1648
|
});
|
|
2178
1649
|
}
|
|
2179
|
-
function
|
|
2180
|
-
return new
|
|
1650
|
+
function jo(e, t) {
|
|
1651
|
+
return new Qn({
|
|
2181
1652
|
check: "string_format",
|
|
2182
1653
|
format: "regex",
|
|
2183
|
-
...
|
|
1654
|
+
...f(t),
|
|
2184
1655
|
pattern: e
|
|
2185
1656
|
});
|
|
2186
1657
|
}
|
|
2187
|
-
function
|
|
2188
|
-
return new
|
|
1658
|
+
function Eo(e) {
|
|
1659
|
+
return new Xn({
|
|
2189
1660
|
check: "string_format",
|
|
2190
1661
|
format: "lowercase",
|
|
2191
|
-
...
|
|
1662
|
+
...f(e)
|
|
2192
1663
|
});
|
|
2193
1664
|
}
|
|
2194
|
-
function
|
|
2195
|
-
return new
|
|
1665
|
+
function Po(e) {
|
|
1666
|
+
return new er({
|
|
2196
1667
|
check: "string_format",
|
|
2197
1668
|
format: "uppercase",
|
|
2198
|
-
...
|
|
1669
|
+
...f(e)
|
|
2199
1670
|
});
|
|
2200
1671
|
}
|
|
2201
|
-
function
|
|
2202
|
-
return new
|
|
1672
|
+
function To(e, t) {
|
|
1673
|
+
return new tr({
|
|
2203
1674
|
check: "string_format",
|
|
2204
1675
|
format: "includes",
|
|
2205
|
-
...
|
|
1676
|
+
...f(t),
|
|
2206
1677
|
includes: e
|
|
2207
1678
|
});
|
|
2208
1679
|
}
|
|
2209
|
-
function
|
|
2210
|
-
return new
|
|
1680
|
+
function Io(e, t) {
|
|
1681
|
+
return new nr({
|
|
2211
1682
|
check: "string_format",
|
|
2212
1683
|
format: "starts_with",
|
|
2213
|
-
...
|
|
1684
|
+
...f(t),
|
|
2214
1685
|
prefix: e
|
|
2215
1686
|
});
|
|
2216
1687
|
}
|
|
2217
|
-
function
|
|
2218
|
-
return new
|
|
1688
|
+
function Ao(e, t) {
|
|
1689
|
+
return new rr({
|
|
2219
1690
|
check: "string_format",
|
|
2220
1691
|
format: "ends_with",
|
|
2221
|
-
...
|
|
1692
|
+
...f(t),
|
|
2222
1693
|
suffix: e
|
|
2223
1694
|
});
|
|
2224
1695
|
}
|
|
2225
|
-
function
|
|
2226
|
-
return new
|
|
1696
|
+
function L(e) {
|
|
1697
|
+
return new or({
|
|
2227
1698
|
check: "overwrite",
|
|
2228
1699
|
tx: e
|
|
2229
1700
|
});
|
|
2230
1701
|
}
|
|
2231
|
-
function
|
|
2232
|
-
return
|
|
1702
|
+
function Oo(e) {
|
|
1703
|
+
return L((t) => t.normalize(e));
|
|
2233
1704
|
}
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
1705
|
+
function So() {
|
|
1706
|
+
return L((e) => e.trim());
|
|
2236
1707
|
}
|
|
2237
|
-
function
|
|
2238
|
-
return
|
|
1708
|
+
function No() {
|
|
1709
|
+
return L((e) => e.toLowerCase());
|
|
2239
1710
|
}
|
|
2240
|
-
function
|
|
2241
|
-
return
|
|
1711
|
+
function Do() {
|
|
1712
|
+
return L((e) => e.toUpperCase());
|
|
2242
1713
|
}
|
|
2243
|
-
function
|
|
1714
|
+
function Ro(e, t, n) {
|
|
2244
1715
|
return new e({
|
|
2245
1716
|
type: "array",
|
|
2246
1717
|
element: t,
|
|
2247
1718
|
// get element() {
|
|
2248
1719
|
// return element;
|
|
2249
1720
|
// },
|
|
2250
|
-
...
|
|
1721
|
+
...f(n)
|
|
2251
1722
|
});
|
|
2252
1723
|
}
|
|
2253
|
-
function
|
|
1724
|
+
function Co(e, t, n) {
|
|
2254
1725
|
return new e({
|
|
2255
1726
|
type: "custom",
|
|
2256
1727
|
check: "custom",
|
|
2257
1728
|
fn: t,
|
|
2258
|
-
...
|
|
1729
|
+
...f(n)
|
|
2259
1730
|
});
|
|
2260
1731
|
}
|
|
2261
|
-
function
|
|
2262
|
-
const t =
|
|
1732
|
+
function Uo(e) {
|
|
1733
|
+
const t = Fo((n) => (n.addIssue = (r) => {
|
|
2263
1734
|
if (typeof r == "string")
|
|
2264
|
-
n.issues.push(
|
|
1735
|
+
n.issues.push(U(r, n.value, t._zod.def));
|
|
2265
1736
|
else {
|
|
2266
1737
|
const o = r;
|
|
2267
|
-
o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(
|
|
1738
|
+
o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(U(o));
|
|
2268
1739
|
}
|
|
2269
1740
|
}, e(n.value, n)));
|
|
2270
1741
|
return t;
|
|
2271
1742
|
}
|
|
2272
|
-
function
|
|
2273
|
-
const n = new
|
|
1743
|
+
function Fo(e, t) {
|
|
1744
|
+
const n = new j({
|
|
2274
1745
|
check: "custom",
|
|
2275
|
-
...
|
|
1746
|
+
...f(t)
|
|
2276
1747
|
});
|
|
2277
1748
|
return n._zod.check = e, n;
|
|
2278
1749
|
}
|
|
2279
|
-
const
|
|
2280
|
-
|
|
1750
|
+
const Lo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
1751
|
+
vr.init(e, t), g.init(e, t);
|
|
2281
1752
|
});
|
|
2282
|
-
function
|
|
2283
|
-
return
|
|
1753
|
+
function Bo(e) {
|
|
1754
|
+
return bo(Lo, e);
|
|
2284
1755
|
}
|
|
2285
|
-
const
|
|
2286
|
-
|
|
1756
|
+
const Mo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
1757
|
+
wr.init(e, t), g.init(e, t);
|
|
2287
1758
|
});
|
|
2288
|
-
function
|
|
2289
|
-
return
|
|
1759
|
+
function Wo(e) {
|
|
1760
|
+
return yo(Mo, e);
|
|
2290
1761
|
}
|
|
2291
|
-
const
|
|
2292
|
-
|
|
1762
|
+
const qo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
1763
|
+
zr.init(e, t), g.init(e, t);
|
|
2293
1764
|
});
|
|
2294
|
-
function
|
|
2295
|
-
return
|
|
1765
|
+
function Vo(e) {
|
|
1766
|
+
return ko(qo, e);
|
|
2296
1767
|
}
|
|
2297
|
-
const
|
|
2298
|
-
|
|
1768
|
+
const Ho = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
1769
|
+
br.init(e, t), g.init(e, t);
|
|
2299
1770
|
});
|
|
2300
|
-
function
|
|
2301
|
-
return
|
|
1771
|
+
function Jo(e) {
|
|
1772
|
+
return xo(Ho, e);
|
|
2302
1773
|
}
|
|
2303
|
-
const
|
|
2304
|
-
|
|
1774
|
+
const Ko = (e, t) => {
|
|
1775
|
+
Ke.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2305
1776
|
format: {
|
|
2306
|
-
value: (n) =>
|
|
1777
|
+
value: (n) => hn(e, n)
|
|
2307
1778
|
// enumerable: false,
|
|
2308
1779
|
},
|
|
2309
1780
|
flatten: {
|
|
2310
|
-
value: (n) =>
|
|
1781
|
+
value: (n) => pn(e, n)
|
|
2311
1782
|
// enumerable: false,
|
|
2312
1783
|
},
|
|
2313
1784
|
addIssue: {
|
|
2314
1785
|
value: (n) => {
|
|
2315
|
-
e.issues.push(n), e.message = JSON.stringify(e.issues,
|
|
1786
|
+
e.issues.push(n), e.message = JSON.stringify(e.issues, ne, 2);
|
|
2316
1787
|
}
|
|
2317
1788
|
// enumerable: false,
|
|
2318
1789
|
},
|
|
2319
1790
|
addIssues: {
|
|
2320
1791
|
value: (n) => {
|
|
2321
|
-
e.issues.push(...n), e.message = JSON.stringify(e.issues,
|
|
1792
|
+
e.issues.push(...n), e.message = JSON.stringify(e.issues, ne, 2);
|
|
2322
1793
|
}
|
|
2323
1794
|
// enumerable: false,
|
|
2324
1795
|
},
|
|
@@ -2329,287 +1800,287 @@ const xs = (e, t) => {
|
|
|
2329
1800
|
// enumerable: false,
|
|
2330
1801
|
}
|
|
2331
1802
|
});
|
|
2332
|
-
},
|
|
1803
|
+
}, k = c("ZodError", Ko, {
|
|
2333
1804
|
Parent: Error
|
|
2334
|
-
}),
|
|
1805
|
+
}), Go = /* @__PURE__ */ ue(k), Yo = /* @__PURE__ */ le(k), Qo = /* @__PURE__ */ Q(k), Xo = /* @__PURE__ */ X(k), es = /* @__PURE__ */ _n(k), ts = /* @__PURE__ */ vn(k), ns = /* @__PURE__ */ wn(k), rs = /* @__PURE__ */ zn(k), os = /* @__PURE__ */ bn(k), ss = /* @__PURE__ */ yn(k), is = /* @__PURE__ */ kn(k), as = /* @__PURE__ */ xn(k), z = /* @__PURE__ */ c("ZodType", (e, t) => (v.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(S(t, {
|
|
2335
1806
|
checks: [
|
|
2336
1807
|
...t.checks ?? [],
|
|
2337
1808
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2338
1809
|
]
|
|
2339
|
-
})), e.clone = (n, r) =>
|
|
1810
|
+
})), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Go(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Qo(e, n, r), e.parseAsync = async (n, r) => Yo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Xo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => es(e, n, r), e.decode = (n, r) => ts(e, n, r), e.encodeAsync = async (n, r) => ns(e, n, r), e.decodeAsync = async (n, r) => rs(e, n, r), e.safeEncode = (n, r) => os(e, n, r), e.safeDecode = (n, r) => ss(e, n, r), e.safeEncodeAsync = async (n, r) => is(e, n, r), e.safeDecodeAsync = async (n, r) => as(e, n, r), e.refine = (n, r) => e.check(Ys(n, r)), e.superRefine = (n) => e.check(Qs(n)), e.overwrite = (n) => e.check(L(n)), e.optional = () => Pe(e), e.nullable = () => Te(e), e.nullish = () => Pe(Te(e)), e.nonoptional = (n) => Ws(e, n), e.array = () => Ts(e), e.or = (n) => Ss([e, n]), e.and = (n) => Ds(e, n), e.transform = (n) => Ie(e, Cs(n)), e.default = (n) => Ls(e, n), e.prefault = (n) => Ms(e, n), e.catch = (n) => Vs(e, n), e.pipe = (n) => Ie(e, n), e.readonly = () => Ks(e), e.describe = (n) => {
|
|
2340
1811
|
const r = e.clone();
|
|
2341
|
-
return
|
|
1812
|
+
return W.add(r, { description: n }), r;
|
|
2342
1813
|
}, Object.defineProperty(e, "description", {
|
|
2343
1814
|
get() {
|
|
2344
|
-
return
|
|
1815
|
+
return W.get(e)?.description;
|
|
2345
1816
|
},
|
|
2346
1817
|
configurable: !0
|
|
2347
1818
|
}), e.meta = (...n) => {
|
|
2348
1819
|
if (n.length === 0)
|
|
2349
|
-
return
|
|
1820
|
+
return W.get(e);
|
|
2350
1821
|
const r = e.clone();
|
|
2351
|
-
return
|
|
2352
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2353
|
-
|
|
1822
|
+
return W.add(r, n[0]), r;
|
|
1823
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), st = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
1824
|
+
de.init(e, t), z.init(e, t);
|
|
2354
1825
|
const n = e._zod.bag;
|
|
2355
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(
|
|
2356
|
-
}),
|
|
2357
|
-
|
|
1826
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(jo(...r)), e.includes = (...r) => e.check(To(...r)), e.startsWith = (...r) => e.check(Io(...r)), e.endsWith = (...r) => e.check(Ao(...r)), e.min = (...r) => e.check(J(...r)), e.max = (...r) => e.check(rt(...r)), e.length = (...r) => e.check(ot(...r)), e.nonempty = (...r) => e.check(J(1, ...r)), e.lowercase = (r) => e.check(Eo(r)), e.uppercase = (r) => e.check(Po(r)), e.trim = () => e.check(So()), e.normalize = (...r) => e.check(Oo(...r)), e.toLowerCase = () => e.check(No()), e.toUpperCase = () => e.check(Do());
|
|
1827
|
+
}), cs = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
1828
|
+
de.init(e, t), st.init(e, t), e.email = (n) => e.check(Xr(us, n)), e.url = (n) => e.check(oo(ls, n)), e.jwt = (n) => e.check(zo(Zs, n)), e.emoji = (n) => e.check(so(ds, n)), e.guid = (n) => e.check(Ze(je, n)), e.uuid = (n) => e.check(eo(q, n)), e.uuidv4 = (n) => e.check(to(q, n)), e.uuidv6 = (n) => e.check(no(q, n)), e.uuidv7 = (n) => e.check(ro(q, n)), e.nanoid = (n) => e.check(io(fs, n)), e.guid = (n) => e.check(Ze(je, n)), e.cuid = (n) => e.check(ao(ps, n)), e.cuid2 = (n) => e.check(co(hs, n)), e.ulid = (n) => e.check(uo(ms, n)), e.base64 = (n) => e.check(_o(ys, n)), e.base64url = (n) => e.check(vo(ks, n)), e.xid = (n) => e.check(lo(gs, n)), e.ksuid = (n) => e.check(fo(_s, n)), e.ipv4 = (n) => e.check(po(vs, n)), e.ipv6 = (n) => e.check(ho(ws, n)), e.cidrv4 = (n) => e.check(mo(zs, n)), e.cidrv6 = (n) => e.check(go(bs, n)), e.e164 = (n) => e.check(wo(xs, n)), e.datetime = (n) => e.check(Bo(n)), e.date = (n) => e.check(Wo(n)), e.time = (n) => e.check(Vo(n)), e.duration = (n) => e.check(Jo(n));
|
|
2358
1829
|
});
|
|
2359
|
-
function
|
|
2360
|
-
return
|
|
2361
|
-
}
|
|
2362
|
-
const
|
|
2363
|
-
|
|
2364
|
-
}),
|
|
2365
|
-
|
|
2366
|
-
}),
|
|
2367
|
-
|
|
2368
|
-
}),
|
|
2369
|
-
|
|
2370
|
-
}),
|
|
2371
|
-
|
|
2372
|
-
}),
|
|
2373
|
-
|
|
2374
|
-
}),
|
|
2375
|
-
|
|
2376
|
-
}),
|
|
2377
|
-
|
|
2378
|
-
}),
|
|
2379
|
-
|
|
2380
|
-
}),
|
|
2381
|
-
|
|
2382
|
-
}),
|
|
2383
|
-
|
|
2384
|
-
}),
|
|
2385
|
-
|
|
2386
|
-
}),
|
|
2387
|
-
|
|
2388
|
-
}),
|
|
2389
|
-
|
|
2390
|
-
}),
|
|
2391
|
-
|
|
2392
|
-
}),
|
|
2393
|
-
|
|
2394
|
-
}),
|
|
2395
|
-
|
|
2396
|
-
}),
|
|
2397
|
-
|
|
2398
|
-
}),
|
|
2399
|
-
|
|
2400
|
-
}),
|
|
2401
|
-
|
|
2402
|
-
}),
|
|
2403
|
-
|
|
1830
|
+
function $e(e) {
|
|
1831
|
+
return Qr(cs, e);
|
|
1832
|
+
}
|
|
1833
|
+
const g = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
1834
|
+
m.init(e, t), st.init(e, t);
|
|
1835
|
+
}), us = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
1836
|
+
ur.init(e, t), g.init(e, t);
|
|
1837
|
+
}), je = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
1838
|
+
ar.init(e, t), g.init(e, t);
|
|
1839
|
+
}), q = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
1840
|
+
cr.init(e, t), g.init(e, t);
|
|
1841
|
+
}), ls = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
1842
|
+
lr.init(e, t), g.init(e, t);
|
|
1843
|
+
}), ds = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
1844
|
+
dr.init(e, t), g.init(e, t);
|
|
1845
|
+
}), fs = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
1846
|
+
fr.init(e, t), g.init(e, t);
|
|
1847
|
+
}), ps = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
1848
|
+
pr.init(e, t), g.init(e, t);
|
|
1849
|
+
}), hs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
1850
|
+
hr.init(e, t), g.init(e, t);
|
|
1851
|
+
}), ms = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
1852
|
+
mr.init(e, t), g.init(e, t);
|
|
1853
|
+
}), gs = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
1854
|
+
gr.init(e, t), g.init(e, t);
|
|
1855
|
+
}), _s = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
1856
|
+
_r.init(e, t), g.init(e, t);
|
|
1857
|
+
}), vs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
1858
|
+
yr.init(e, t), g.init(e, t);
|
|
1859
|
+
}), ws = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
1860
|
+
kr.init(e, t), g.init(e, t);
|
|
1861
|
+
}), zs = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
1862
|
+
xr.init(e, t), g.init(e, t);
|
|
1863
|
+
}), bs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
1864
|
+
Zr.init(e, t), g.init(e, t);
|
|
1865
|
+
}), ys = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
1866
|
+
$r.init(e, t), g.init(e, t);
|
|
1867
|
+
}), ks = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
1868
|
+
Er.init(e, t), g.init(e, t);
|
|
1869
|
+
}), xs = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
1870
|
+
Pr.init(e, t), g.init(e, t);
|
|
1871
|
+
}), Zs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
1872
|
+
Ir.init(e, t), g.init(e, t);
|
|
1873
|
+
}), $s = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
1874
|
+
Ar.init(e, t), z.init(e, t);
|
|
2404
1875
|
});
|
|
2405
|
-
function
|
|
2406
|
-
return
|
|
1876
|
+
function Ee() {
|
|
1877
|
+
return Zo($s);
|
|
2407
1878
|
}
|
|
2408
|
-
const
|
|
2409
|
-
|
|
1879
|
+
const js = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
1880
|
+
Or.init(e, t), z.init(e, t);
|
|
2410
1881
|
});
|
|
2411
|
-
function
|
|
2412
|
-
return
|
|
1882
|
+
function Es(e) {
|
|
1883
|
+
return $o(js, e);
|
|
2413
1884
|
}
|
|
2414
|
-
const
|
|
2415
|
-
|
|
1885
|
+
const Ps = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
1886
|
+
Sr.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(J(n, r)), e.nonempty = (n) => e.check(J(1, n)), e.max = (n, r) => e.check(rt(n, r)), e.length = (n, r) => e.check(ot(n, r)), e.unwrap = () => e.element;
|
|
2416
1887
|
});
|
|
2417
|
-
function
|
|
2418
|
-
return
|
|
1888
|
+
function Ts(e, t) {
|
|
1889
|
+
return Ro(Ps, e, t);
|
|
2419
1890
|
}
|
|
2420
|
-
const
|
|
2421
|
-
|
|
1891
|
+
const Is = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
1892
|
+
Dr.init(e, t), z.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => it(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Es() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => cn(e, n), e.safeExtend = (n) => un(e, n), e.merge = (n) => ln(e, n), e.pick = (n) => sn(e, n), e.omit = (n) => an(e, n), e.partial = (...n) => dn(at, e, n[0]), e.required = (...n) => fn(ct, e, n[0]);
|
|
2422
1893
|
});
|
|
2423
|
-
function
|
|
1894
|
+
function As(e, t) {
|
|
2424
1895
|
const n = {
|
|
2425
1896
|
type: "object",
|
|
2426
1897
|
shape: e ?? {},
|
|
2427
|
-
...
|
|
1898
|
+
...f(t)
|
|
2428
1899
|
};
|
|
2429
|
-
return new
|
|
1900
|
+
return new Is(n);
|
|
2430
1901
|
}
|
|
2431
|
-
const
|
|
2432
|
-
|
|
1902
|
+
const Os = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
1903
|
+
Rr.init(e, t), z.init(e, t), e.options = t.options;
|
|
2433
1904
|
});
|
|
2434
|
-
function
|
|
2435
|
-
return new
|
|
1905
|
+
function Ss(e, t) {
|
|
1906
|
+
return new Os({
|
|
2436
1907
|
type: "union",
|
|
2437
1908
|
options: e,
|
|
2438
|
-
...
|
|
1909
|
+
...f(t)
|
|
2439
1910
|
});
|
|
2440
1911
|
}
|
|
2441
|
-
const
|
|
2442
|
-
|
|
1912
|
+
const Ns = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
1913
|
+
Cr.init(e, t), z.init(e, t);
|
|
2443
1914
|
});
|
|
2444
|
-
function
|
|
2445
|
-
return new
|
|
1915
|
+
function Ds(e, t) {
|
|
1916
|
+
return new Ns({
|
|
2446
1917
|
type: "intersection",
|
|
2447
1918
|
left: e,
|
|
2448
1919
|
right: t
|
|
2449
1920
|
});
|
|
2450
1921
|
}
|
|
2451
|
-
const
|
|
2452
|
-
|
|
1922
|
+
const oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
1923
|
+
Ur.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2453
1924
|
const n = new Set(Object.keys(t.entries));
|
|
2454
1925
|
e.extract = (r, o) => {
|
|
2455
1926
|
const s = {};
|
|
2456
|
-
for (const
|
|
2457
|
-
if (n.has(
|
|
2458
|
-
s[
|
|
1927
|
+
for (const i of r)
|
|
1928
|
+
if (n.has(i))
|
|
1929
|
+
s[i] = t.entries[i];
|
|
2459
1930
|
else
|
|
2460
|
-
throw new Error(`Key ${
|
|
2461
|
-
return new
|
|
1931
|
+
throw new Error(`Key ${i} not found in enum`);
|
|
1932
|
+
return new oe({
|
|
2462
1933
|
...t,
|
|
2463
1934
|
checks: [],
|
|
2464
|
-
...
|
|
1935
|
+
...f(o),
|
|
2465
1936
|
entries: s
|
|
2466
1937
|
});
|
|
2467
1938
|
}, e.exclude = (r, o) => {
|
|
2468
1939
|
const s = { ...t.entries };
|
|
2469
|
-
for (const
|
|
2470
|
-
if (n.has(
|
|
2471
|
-
delete s[
|
|
1940
|
+
for (const i of r)
|
|
1941
|
+
if (n.has(i))
|
|
1942
|
+
delete s[i];
|
|
2472
1943
|
else
|
|
2473
|
-
throw new Error(`Key ${
|
|
2474
|
-
return new
|
|
1944
|
+
throw new Error(`Key ${i} not found in enum`);
|
|
1945
|
+
return new oe({
|
|
2475
1946
|
...t,
|
|
2476
1947
|
checks: [],
|
|
2477
|
-
...
|
|
1948
|
+
...f(o),
|
|
2478
1949
|
entries: s
|
|
2479
1950
|
});
|
|
2480
1951
|
};
|
|
2481
1952
|
});
|
|
2482
|
-
function
|
|
1953
|
+
function it(e, t) {
|
|
2483
1954
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2484
|
-
return new
|
|
1955
|
+
return new oe({
|
|
2485
1956
|
type: "enum",
|
|
2486
1957
|
entries: n,
|
|
2487
|
-
...
|
|
1958
|
+
...f(t)
|
|
2488
1959
|
});
|
|
2489
1960
|
}
|
|
2490
|
-
const
|
|
2491
|
-
|
|
1961
|
+
const Rs = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
1962
|
+
Fr.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
|
|
2492
1963
|
if (r.direction === "backward")
|
|
2493
|
-
throw new
|
|
1964
|
+
throw new Me(e.constructor.name);
|
|
2494
1965
|
n.addIssue = (s) => {
|
|
2495
1966
|
if (typeof s == "string")
|
|
2496
|
-
n.issues.push(
|
|
1967
|
+
n.issues.push(U(s, n.value, t));
|
|
2497
1968
|
else {
|
|
2498
|
-
const
|
|
2499
|
-
|
|
1969
|
+
const i = s;
|
|
1970
|
+
i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(U(i));
|
|
2500
1971
|
}
|
|
2501
1972
|
};
|
|
2502
1973
|
const o = t.transform(n.value, n);
|
|
2503
1974
|
return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
|
|
2504
1975
|
};
|
|
2505
1976
|
});
|
|
2506
|
-
function
|
|
2507
|
-
return new
|
|
1977
|
+
function Cs(e) {
|
|
1978
|
+
return new Rs({
|
|
2508
1979
|
type: "transform",
|
|
2509
1980
|
transform: e
|
|
2510
1981
|
});
|
|
2511
1982
|
}
|
|
2512
|
-
const
|
|
2513
|
-
|
|
1983
|
+
const at = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
1984
|
+
Lr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2514
1985
|
});
|
|
2515
|
-
function
|
|
2516
|
-
return new
|
|
1986
|
+
function Pe(e) {
|
|
1987
|
+
return new at({
|
|
2517
1988
|
type: "optional",
|
|
2518
1989
|
innerType: e
|
|
2519
1990
|
});
|
|
2520
1991
|
}
|
|
2521
|
-
const
|
|
2522
|
-
|
|
1992
|
+
const Us = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
1993
|
+
Br.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2523
1994
|
});
|
|
2524
|
-
function
|
|
2525
|
-
return new
|
|
1995
|
+
function Te(e) {
|
|
1996
|
+
return new Us({
|
|
2526
1997
|
type: "nullable",
|
|
2527
1998
|
innerType: e
|
|
2528
1999
|
});
|
|
2529
2000
|
}
|
|
2530
|
-
const
|
|
2531
|
-
|
|
2001
|
+
const Fs = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2002
|
+
Mr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2532
2003
|
});
|
|
2533
|
-
function
|
|
2534
|
-
return new
|
|
2004
|
+
function Ls(e, t) {
|
|
2005
|
+
return new Fs({
|
|
2535
2006
|
type: "default",
|
|
2536
2007
|
innerType: e,
|
|
2537
2008
|
get defaultValue() {
|
|
2538
|
-
return typeof t == "function" ? t() :
|
|
2009
|
+
return typeof t == "function" ? t() : Ve(t);
|
|
2539
2010
|
}
|
|
2540
2011
|
});
|
|
2541
2012
|
}
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2013
|
+
const Bs = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2014
|
+
Wr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2544
2015
|
});
|
|
2545
|
-
function
|
|
2546
|
-
return new
|
|
2016
|
+
function Ms(e, t) {
|
|
2017
|
+
return new Bs({
|
|
2547
2018
|
type: "prefault",
|
|
2548
2019
|
innerType: e,
|
|
2549
2020
|
get defaultValue() {
|
|
2550
|
-
return typeof t == "function" ? t() :
|
|
2021
|
+
return typeof t == "function" ? t() : Ve(t);
|
|
2551
2022
|
}
|
|
2552
2023
|
});
|
|
2553
2024
|
}
|
|
2554
|
-
const
|
|
2555
|
-
|
|
2025
|
+
const ct = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2026
|
+
qr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2556
2027
|
});
|
|
2557
|
-
function
|
|
2558
|
-
return new
|
|
2028
|
+
function Ws(e, t) {
|
|
2029
|
+
return new ct({
|
|
2559
2030
|
type: "nonoptional",
|
|
2560
2031
|
innerType: e,
|
|
2561
|
-
...
|
|
2032
|
+
...f(t)
|
|
2562
2033
|
});
|
|
2563
2034
|
}
|
|
2564
|
-
const
|
|
2565
|
-
|
|
2035
|
+
const qs = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2036
|
+
Vr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2566
2037
|
});
|
|
2567
|
-
function
|
|
2568
|
-
return new
|
|
2038
|
+
function Vs(e, t) {
|
|
2039
|
+
return new qs({
|
|
2569
2040
|
type: "catch",
|
|
2570
2041
|
innerType: e,
|
|
2571
2042
|
catchValue: typeof t == "function" ? t : () => t
|
|
2572
2043
|
});
|
|
2573
2044
|
}
|
|
2574
|
-
const
|
|
2575
|
-
|
|
2045
|
+
const Hs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2046
|
+
Hr.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
|
|
2576
2047
|
});
|
|
2577
|
-
function
|
|
2578
|
-
return new
|
|
2048
|
+
function Ie(e, t) {
|
|
2049
|
+
return new Hs({
|
|
2579
2050
|
type: "pipe",
|
|
2580
2051
|
in: e,
|
|
2581
2052
|
out: t
|
|
2582
2053
|
// ...util.normalizeParams(params),
|
|
2583
2054
|
});
|
|
2584
2055
|
}
|
|
2585
|
-
const
|
|
2586
|
-
|
|
2056
|
+
const Js = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2057
|
+
Jr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2587
2058
|
});
|
|
2588
|
-
function
|
|
2589
|
-
return new
|
|
2059
|
+
function Ks(e) {
|
|
2060
|
+
return new Js({
|
|
2590
2061
|
type: "readonly",
|
|
2591
2062
|
innerType: e
|
|
2592
2063
|
});
|
|
2593
2064
|
}
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2065
|
+
const Gs = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2066
|
+
Kr.init(e, t), z.init(e, t);
|
|
2596
2067
|
});
|
|
2597
|
-
function
|
|
2598
|
-
return
|
|
2068
|
+
function Ys(e, t = {}) {
|
|
2069
|
+
return Co(Gs, e, t);
|
|
2599
2070
|
}
|
|
2600
|
-
function
|
|
2601
|
-
return
|
|
2071
|
+
function Qs(e) {
|
|
2072
|
+
return Uo(e);
|
|
2602
2073
|
}
|
|
2603
|
-
const
|
|
2604
|
-
buildId:
|
|
2605
|
-
timestamp:
|
|
2606
|
-
status:
|
|
2607
|
-
}),
|
|
2074
|
+
const Xs = As({
|
|
2075
|
+
buildId: $e(),
|
|
2076
|
+
timestamp: $e(),
|
|
2077
|
+
status: it(["in-progress", "success", "failed"])
|
|
2078
|
+
}), ei = ({
|
|
2608
2079
|
buildId: e,
|
|
2609
2080
|
environmentType: t,
|
|
2610
2081
|
endpoint: n = "/__zuplo/docs"
|
|
2611
2082
|
}) => {
|
|
2612
|
-
const r =
|
|
2083
|
+
const r = _t({
|
|
2613
2084
|
queryKey: ["zuplo-build-check", e, n],
|
|
2614
2085
|
refetchInterval: 3e3,
|
|
2615
2086
|
enabled: e !== void 0 && t === "WORKING_COPY",
|
|
@@ -2617,24 +2088,24 @@ const Pa = ia({
|
|
|
2617
2088
|
queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
|
|
2618
2089
|
if (!s.ok) throw new Error("Failed to fetch build status");
|
|
2619
2090
|
return s.json();
|
|
2620
|
-
}).then((s) =>
|
|
2091
|
+
}).then((s) => Xs.parse(s))
|
|
2621
2092
|
});
|
|
2622
|
-
if (
|
|
2093
|
+
if (K(() => {
|
|
2623
2094
|
r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
|
|
2624
2095
|
}, [r.data]), r.isError || !r.data || r.data.buildId === e)
|
|
2625
2096
|
return null;
|
|
2626
2097
|
const o = r.data.status === "success";
|
|
2627
|
-
return /* @__PURE__ */
|
|
2628
|
-
o ? /* @__PURE__ */
|
|
2629
|
-
/* @__PURE__ */
|
|
2630
|
-
/* @__PURE__ */
|
|
2631
|
-
] }) : /* @__PURE__ */
|
|
2632
|
-
/* @__PURE__ */
|
|
2633
|
-
/* @__PURE__ */
|
|
2098
|
+
return /* @__PURE__ */ a.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: [
|
|
2099
|
+
o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2100
|
+
/* @__PURE__ */ a.jsx(Ut, { size: 16 }),
|
|
2101
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2102
|
+
] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2103
|
+
/* @__PURE__ */ a.jsx(Ft, { size: 16, className: "animate-spin" }),
|
|
2104
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2634
2105
|
] }),
|
|
2635
|
-
/* @__PURE__ */
|
|
2636
|
-
o && /* @__PURE__ */
|
|
2637
|
-
|
|
2106
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
2107
|
+
o && /* @__PURE__ */ a.jsx(
|
|
2108
|
+
Wt,
|
|
2638
2109
|
{
|
|
2639
2110
|
variant: "outline",
|
|
2640
2111
|
size: "sm",
|
|
@@ -2646,52 +2117,52 @@ const Pa = ia({
|
|
|
2646
2117
|
}
|
|
2647
2118
|
)
|
|
2648
2119
|
] });
|
|
2649
|
-
},
|
|
2650
|
-
const e =
|
|
2651
|
-
|
|
2120
|
+
}, ti = () => {
|
|
2121
|
+
const e = Re(), t = De(e.pathname);
|
|
2122
|
+
K(() => {
|
|
2652
2123
|
const n = t.current !== e.pathname, r = e.hash !== "";
|
|
2653
2124
|
n && !r && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2654
2125
|
}, [e.pathname, e.hash]);
|
|
2655
|
-
},
|
|
2126
|
+
}, ni = ({
|
|
2656
2127
|
icon: e
|
|
2657
|
-
}) => typeof e == "string" ? /* @__PURE__ */
|
|
2128
|
+
}) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
|
|
2658
2129
|
"img",
|
|
2659
2130
|
{
|
|
2660
2131
|
src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
|
|
2661
2132
|
className: "size-5",
|
|
2662
2133
|
alt: e
|
|
2663
2134
|
}
|
|
2664
|
-
) : e,
|
|
2665
|
-
const { site: e } =
|
|
2666
|
-
return t ? /* @__PURE__ */
|
|
2667
|
-
/* @__PURE__ */
|
|
2135
|
+
) : e, ri = (e) => /^https?:/.test(e), oi = () => {
|
|
2136
|
+
const { site: e } = Tt(), t = e?.footer;
|
|
2137
|
+
return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2138
|
+
/* @__PURE__ */ a.jsxs(
|
|
2668
2139
|
"div",
|
|
2669
2140
|
{
|
|
2670
|
-
className:
|
|
2141
|
+
className: x("flex flex-row gap-8", {
|
|
2671
2142
|
"justify-center": !t.position || t.position === "center",
|
|
2672
2143
|
"justify-start": t.position === "start",
|
|
2673
2144
|
"justify-end": t.position === "end"
|
|
2674
2145
|
}),
|
|
2675
2146
|
children: [
|
|
2676
|
-
/* @__PURE__ */
|
|
2677
|
-
t.columns && /* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "footer-before" }),
|
|
2148
|
+
t.columns && /* @__PURE__ */ a.jsx(
|
|
2678
2149
|
"div",
|
|
2679
2150
|
{
|
|
2680
2151
|
className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
|
|
2681
2152
|
style: { "--columns": t.columns.length },
|
|
2682
|
-
children: t.columns.map((n) => /* @__PURE__ */
|
|
2153
|
+
children: t.columns.map((n) => /* @__PURE__ */ a.jsxs(
|
|
2683
2154
|
"div",
|
|
2684
2155
|
{
|
|
2685
|
-
className:
|
|
2156
|
+
className: x({
|
|
2686
2157
|
"justify-self-center": !n.position || n.position === "center",
|
|
2687
2158
|
"justify-self-start": n.position === "start",
|
|
2688
2159
|
"justify-self-end": n.position === "end"
|
|
2689
2160
|
}),
|
|
2690
2161
|
children: [
|
|
2691
|
-
/* @__PURE__ */
|
|
2692
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
2163
|
+
/* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
|
|
2693
2164
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2694
|
-
return /* @__PURE__ */
|
|
2165
|
+
return /* @__PURE__ */ a.jsx("li", { children: ri(r.href) ? /* @__PURE__ */ a.jsxs(
|
|
2695
2166
|
"a",
|
|
2696
2167
|
{
|
|
2697
2168
|
href: r.href,
|
|
@@ -2699,11 +2170,11 @@ const Pa = ia({
|
|
|
2699
2170
|
rel: "noopener noreferrer",
|
|
2700
2171
|
className: o,
|
|
2701
2172
|
children: [
|
|
2702
|
-
/* @__PURE__ */
|
|
2703
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ a.jsx("span", { children: r.label }),
|
|
2174
|
+
/* @__PURE__ */ a.jsx(Lt, { size: 12 })
|
|
2704
2175
|
]
|
|
2705
2176
|
}
|
|
2706
|
-
) : /* @__PURE__ */
|
|
2177
|
+
) : /* @__PURE__ */ a.jsx(It, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
|
|
2707
2178
|
}) })
|
|
2708
2179
|
]
|
|
2709
2180
|
},
|
|
@@ -2711,20 +2182,20 @@ const Pa = ia({
|
|
|
2711
2182
|
))
|
|
2712
2183
|
}
|
|
2713
2184
|
),
|
|
2714
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "footer-after" })
|
|
2715
2186
|
]
|
|
2716
2187
|
}
|
|
2717
2188
|
),
|
|
2718
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ a.jsxs(
|
|
2719
2190
|
"div",
|
|
2720
2191
|
{
|
|
2721
|
-
className:
|
|
2192
|
+
className: x(
|
|
2722
2193
|
"flex items-center justify-between",
|
|
2723
2194
|
t.columns && "border-t mt-8 pt-8"
|
|
2724
2195
|
),
|
|
2725
2196
|
children: [
|
|
2726
|
-
t.logo && /* @__PURE__ */
|
|
2727
|
-
/* @__PURE__ */
|
|
2197
|
+
t.logo && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2198
|
+
/* @__PURE__ */ a.jsx(
|
|
2728
2199
|
"img",
|
|
2729
2200
|
{
|
|
2730
2201
|
src: t.logo.src.light,
|
|
@@ -2733,7 +2204,7 @@ const Pa = ia({
|
|
|
2733
2204
|
style: { width: t.logo.width }
|
|
2734
2205
|
}
|
|
2735
2206
|
),
|
|
2736
|
-
/* @__PURE__ */
|
|
2207
|
+
/* @__PURE__ */ a.jsx(
|
|
2737
2208
|
"img",
|
|
2738
2209
|
{
|
|
2739
2210
|
src: t.logo.src.dark,
|
|
@@ -2743,8 +2214,8 @@ const Pa = ia({
|
|
|
2743
2214
|
}
|
|
2744
2215
|
)
|
|
2745
2216
|
] }),
|
|
2746
|
-
t.copyright && /* @__PURE__ */
|
|
2747
|
-
/* @__PURE__ */
|
|
2217
|
+
t.copyright && /* @__PURE__ */ a.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
|
|
2218
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((n) => /* @__PURE__ */ a.jsxs(
|
|
2748
2219
|
"a",
|
|
2749
2220
|
{
|
|
2750
2221
|
href: n.href,
|
|
@@ -2752,7 +2223,7 @@ const Pa = ia({
|
|
|
2752
2223
|
rel: "noopener noreferrer",
|
|
2753
2224
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2754
2225
|
children: [
|
|
2755
|
-
/* @__PURE__ */
|
|
2226
|
+
/* @__PURE__ */ a.jsx(ni, { icon: n.icon }),
|
|
2756
2227
|
n.label
|
|
2757
2228
|
]
|
|
2758
2229
|
},
|
|
@@ -2762,87 +2233,87 @@ const Pa = ia({
|
|
|
2762
2233
|
}
|
|
2763
2234
|
)
|
|
2764
2235
|
] }) }) : null;
|
|
2765
|
-
},
|
|
2236
|
+
}, ut = ({
|
|
2766
2237
|
shouldScaleBackground: e = !0,
|
|
2767
2238
|
...t
|
|
2768
|
-
}) => /* @__PURE__ */
|
|
2769
|
-
|
|
2239
|
+
}) => /* @__PURE__ */ a.jsx(
|
|
2240
|
+
$.Root,
|
|
2770
2241
|
{
|
|
2771
2242
|
shouldScaleBackground: e,
|
|
2772
2243
|
...t
|
|
2773
2244
|
}
|
|
2774
2245
|
);
|
|
2775
|
-
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2246
|
+
ut.displayName = "Drawer";
|
|
2247
|
+
const si = $.Trigger, ii = $.Portal, lt = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2248
|
+
$.Overlay,
|
|
2778
2249
|
{
|
|
2779
2250
|
ref: n,
|
|
2780
|
-
className:
|
|
2251
|
+
className: x("fixed inset-0 z-50 bg-black/80", e),
|
|
2781
2252
|
...t
|
|
2782
2253
|
}
|
|
2783
2254
|
));
|
|
2784
|
-
|
|
2785
|
-
const
|
|
2786
|
-
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */
|
|
2787
|
-
/* @__PURE__ */
|
|
2788
|
-
/* @__PURE__ */
|
|
2789
|
-
|
|
2255
|
+
lt.displayName = $.Overlay.displayName;
|
|
2256
|
+
const ai = F.forwardRef(
|
|
2257
|
+
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(ii, { children: [
|
|
2258
|
+
/* @__PURE__ */ a.jsx(lt, {}),
|
|
2259
|
+
/* @__PURE__ */ a.jsxs(
|
|
2260
|
+
$.Content,
|
|
2790
2261
|
{
|
|
2791
2262
|
ref: o,
|
|
2792
|
-
className:
|
|
2263
|
+
className: x(
|
|
2793
2264
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
2794
2265
|
e
|
|
2795
2266
|
),
|
|
2796
2267
|
...r,
|
|
2797
2268
|
children: [
|
|
2798
|
-
!n && /* @__PURE__ */
|
|
2269
|
+
!n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2799
2270
|
t
|
|
2800
2271
|
]
|
|
2801
2272
|
}
|
|
2802
2273
|
)
|
|
2803
2274
|
] })
|
|
2804
2275
|
);
|
|
2805
|
-
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2276
|
+
ai.displayName = "DrawerContent";
|
|
2277
|
+
const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2278
|
+
$.Title,
|
|
2808
2279
|
{
|
|
2809
2280
|
ref: n,
|
|
2810
|
-
className:
|
|
2281
|
+
className: x(
|
|
2811
2282
|
"text-lg font-semibold leading-none tracking-tight",
|
|
2812
2283
|
e
|
|
2813
2284
|
),
|
|
2814
2285
|
...t
|
|
2815
2286
|
}
|
|
2816
2287
|
));
|
|
2817
|
-
|
|
2818
|
-
const
|
|
2819
|
-
|
|
2288
|
+
ci.displayName = $.Title.displayName;
|
|
2289
|
+
const ui = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2290
|
+
$.Description,
|
|
2820
2291
|
{
|
|
2821
2292
|
ref: n,
|
|
2822
|
-
className:
|
|
2293
|
+
className: x("text-sm text-muted-foreground", e),
|
|
2823
2294
|
...t
|
|
2824
2295
|
}
|
|
2825
2296
|
));
|
|
2826
|
-
|
|
2827
|
-
const
|
|
2297
|
+
ui.displayName = $.Description.displayName;
|
|
2298
|
+
const dt = ({
|
|
2828
2299
|
children: e,
|
|
2829
2300
|
className: t
|
|
2830
2301
|
}) => {
|
|
2831
|
-
const { options: n } =
|
|
2832
|
-
return
|
|
2302
|
+
const { options: n } = G(), r = De(null);
|
|
2303
|
+
return K(() => {
|
|
2833
2304
|
const o = r.current?.querySelector('[aria-current="page"]');
|
|
2834
|
-
|
|
2835
|
-
}, []), /* @__PURE__ */
|
|
2305
|
+
At(o ?? null);
|
|
2306
|
+
}, []), /* @__PURE__ */ a.jsxs(
|
|
2836
2307
|
"div",
|
|
2837
2308
|
{
|
|
2838
2309
|
className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
|
|
2839
2310
|
"data-pagefind-ignore": "all",
|
|
2840
2311
|
children: [
|
|
2841
|
-
/* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ a.jsx(
|
|
2842
2313
|
"nav",
|
|
2843
2314
|
{
|
|
2844
2315
|
ref: r,
|
|
2845
|
-
className:
|
|
2316
|
+
className: x(
|
|
2846
2317
|
"hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
|
|
2847
2318
|
"-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
|
|
2848
2319
|
// Revert the padding/margin on the first child
|
|
@@ -2855,36 +2326,36 @@ const Pt = ({
|
|
|
2855
2326
|
children: e
|
|
2856
2327
|
}
|
|
2857
2328
|
),
|
|
2858
|
-
/* @__PURE__ */
|
|
2329
|
+
/* @__PURE__ */ a.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: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Ot, {}) })
|
|
2859
2330
|
]
|
|
2860
2331
|
}
|
|
2861
2332
|
);
|
|
2862
2333
|
};
|
|
2863
|
-
|
|
2864
|
-
const
|
|
2334
|
+
dt.displayName = "NavigationWrapper";
|
|
2335
|
+
const li = ({
|
|
2865
2336
|
onRequestClose: e,
|
|
2866
2337
|
navigation: t
|
|
2867
|
-
}) => /* @__PURE__ */
|
|
2868
|
-
/* @__PURE__ */
|
|
2869
|
-
/* @__PURE__ */
|
|
2870
|
-
t.map((n) => /* @__PURE__ */
|
|
2871
|
-
|
|
2338
|
+
}) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2339
|
+
/* @__PURE__ */ a.jsxs(dt, { children: [
|
|
2340
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "navigation-before" }),
|
|
2341
|
+
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2342
|
+
pe,
|
|
2872
2343
|
{
|
|
2873
2344
|
item: n
|
|
2874
2345
|
},
|
|
2875
2346
|
n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
|
|
2876
2347
|
)),
|
|
2877
|
-
/* @__PURE__ */
|
|
2348
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "navigation-after" })
|
|
2878
2349
|
] }),
|
|
2879
|
-
/* @__PURE__ */
|
|
2880
|
-
|
|
2350
|
+
/* @__PURE__ */ a.jsx(
|
|
2351
|
+
Ht,
|
|
2881
2352
|
{
|
|
2882
2353
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
2883
2354
|
"aria-describedby": void 0,
|
|
2884
|
-
children: /* @__PURE__ */
|
|
2885
|
-
/* @__PURE__ */
|
|
2886
|
-
t.map((n) => /* @__PURE__ */
|
|
2887
|
-
|
|
2355
|
+
children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
2356
|
+
/* @__PURE__ */ a.jsx(Kt, { children: /* @__PURE__ */ a.jsx(Jt, { children: "Navigation" }) }),
|
|
2357
|
+
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2358
|
+
pe,
|
|
2888
2359
|
{
|
|
2889
2360
|
item: n,
|
|
2890
2361
|
onRequestClose: e
|
|
@@ -2894,113 +2365,113 @@ const Ua = ({
|
|
|
2894
2365
|
] })
|
|
2895
2366
|
}
|
|
2896
2367
|
)
|
|
2897
|
-
] }),
|
|
2898
|
-
const [t, n] =
|
|
2899
|
-
return /* @__PURE__ */
|
|
2900
|
-
|
|
2368
|
+
] }), di = ({ children: e }) => {
|
|
2369
|
+
const [t, n] = vt(!1), { navigation: r } = qt(), o = r.length > 0, s = yt().state === "loading", { options: i } = G();
|
|
2370
|
+
return /* @__PURE__ */ a.jsxs(
|
|
2371
|
+
ut,
|
|
2901
2372
|
{
|
|
2902
|
-
direction:
|
|
2373
|
+
direction: i.site?.dir === "rtl" ? "right" : "left",
|
|
2903
2374
|
open: t,
|
|
2904
2375
|
onOpenChange: (u) => n(u),
|
|
2905
2376
|
children: [
|
|
2906
|
-
o && /* @__PURE__ */
|
|
2907
|
-
|
|
2377
|
+
o && /* @__PURE__ */ a.jsx(
|
|
2378
|
+
li,
|
|
2908
2379
|
{
|
|
2909
2380
|
onRequestClose: () => n(!1),
|
|
2910
2381
|
navigation: r
|
|
2911
2382
|
}
|
|
2912
2383
|
),
|
|
2913
|
-
o && /* @__PURE__ */
|
|
2914
|
-
/* @__PURE__ */
|
|
2915
|
-
/* @__PURE__ */
|
|
2384
|
+
o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(si, { className: "flex items-center gap-2 px-4", children: [
|
|
2385
|
+
/* @__PURE__ */ a.jsx(Bt, { size: 16, strokeWidth: 1.5 }),
|
|
2386
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
2916
2387
|
] }) }),
|
|
2917
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ a.jsxs(
|
|
2918
2389
|
"main",
|
|
2919
2390
|
{
|
|
2920
2391
|
"data-pagefind-body": !0,
|
|
2921
|
-
className:
|
|
2392
|
+
className: x(
|
|
2922
2393
|
"px-4 lg:pe-8 lg:px-8",
|
|
2923
2394
|
!o && "col-span-full",
|
|
2924
2395
|
s && "animate-pulse"
|
|
2925
2396
|
),
|
|
2926
2397
|
children: [
|
|
2927
|
-
/* @__PURE__ */
|
|
2398
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "content-before" }),
|
|
2928
2399
|
e,
|
|
2929
|
-
/* @__PURE__ */
|
|
2400
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "content-after" })
|
|
2930
2401
|
]
|
|
2931
2402
|
}
|
|
2932
2403
|
)
|
|
2933
2404
|
]
|
|
2934
2405
|
}
|
|
2935
2406
|
);
|
|
2936
|
-
},
|
|
2937
|
-
const { authentication: t } =
|
|
2938
|
-
return
|
|
2407
|
+
}, fi = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(Gt, {}) }), pi = ({ children: e }) => {
|
|
2408
|
+
const { authentication: t } = G();
|
|
2409
|
+
return St(), ti(), K(() => {
|
|
2939
2410
|
t?.onPageLoad?.();
|
|
2940
|
-
}, [t]), /* @__PURE__ */
|
|
2941
|
-
/* @__PURE__ */
|
|
2942
|
-
/* @__PURE__ */
|
|
2943
|
-
/* @__PURE__ */
|
|
2944
|
-
/* @__PURE__ */
|
|
2411
|
+
}, [t]), /* @__PURE__ */ a.jsxs(Nt, { children: [
|
|
2412
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "layout-before-head" }),
|
|
2413
|
+
/* @__PURE__ */ a.jsx(Dt, {}),
|
|
2414
|
+
/* @__PURE__ */ a.jsx(P.Target, { name: "layout-after-head" }),
|
|
2415
|
+
/* @__PURE__ */ a.jsx(
|
|
2945
2416
|
"div",
|
|
2946
2417
|
{
|
|
2947
|
-
className:
|
|
2418
|
+
className: x(
|
|
2948
2419
|
"grid max-w-screen-2xl w-full lg:mx-auto",
|
|
2949
2420
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
2950
2421
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
2951
2422
|
),
|
|
2952
|
-
children: /* @__PURE__ */
|
|
2423
|
+
children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx(fi, {}), children: /* @__PURE__ */ a.jsx(di, { children: e ?? /* @__PURE__ */ a.jsx(kt, {}) }) })
|
|
2953
2424
|
}
|
|
2954
2425
|
),
|
|
2955
|
-
/* @__PURE__ */
|
|
2426
|
+
/* @__PURE__ */ a.jsx(oi, {})
|
|
2956
2427
|
] });
|
|
2957
|
-
},
|
|
2958
|
-
const { meta: t, options: n } =
|
|
2959
|
-
return /* @__PURE__ */
|
|
2960
|
-
/* @__PURE__ */
|
|
2961
|
-
n.canonicalUrlOrigin && /* @__PURE__ */
|
|
2428
|
+
}, hi = ({ children: e }) => {
|
|
2429
|
+
const { meta: t, options: n } = G(), r = Re();
|
|
2430
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2431
|
+
/* @__PURE__ */ a.jsxs(Oe, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
|
|
2432
|
+
n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
|
|
2962
2433
|
"link",
|
|
2963
2434
|
{
|
|
2964
2435
|
rel: "canonical",
|
|
2965
|
-
href:
|
|
2436
|
+
href: Vt(
|
|
2966
2437
|
n.canonicalUrlOrigin,
|
|
2967
2438
|
n.basePath,
|
|
2968
2439
|
r.pathname
|
|
2969
2440
|
)
|
|
2970
2441
|
}
|
|
2971
2442
|
),
|
|
2972
|
-
t?.description && /* @__PURE__ */
|
|
2973
|
-
t?.favicon && /* @__PURE__ */
|
|
2974
|
-
t?.generator && /* @__PURE__ */
|
|
2975
|
-
t?.applicationName && /* @__PURE__ */
|
|
2976
|
-
t?.referrer && /* @__PURE__ */
|
|
2977
|
-
t?.keywords && t.keywords.length > 0 && /* @__PURE__ */
|
|
2978
|
-
t?.authors?.map((o) => /* @__PURE__ */
|
|
2979
|
-
t?.creator && /* @__PURE__ */
|
|
2980
|
-
t?.publisher && /* @__PURE__ */
|
|
2443
|
+
t?.description && /* @__PURE__ */ a.jsx("meta", { name: "description", content: t.description }),
|
|
2444
|
+
t?.favicon && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: t.favicon }),
|
|
2445
|
+
t?.generator && /* @__PURE__ */ a.jsx("meta", { name: "generator", content: t.generator }),
|
|
2446
|
+
t?.applicationName && /* @__PURE__ */ a.jsx("meta", { name: "application-name", content: t.applicationName }),
|
|
2447
|
+
t?.referrer && /* @__PURE__ */ a.jsx("meta", { name: "referrer", content: t.referrer }),
|
|
2448
|
+
t?.keywords && t.keywords.length > 0 && /* @__PURE__ */ a.jsx("meta", { name: "keywords", content: t.keywords.join(", ") }),
|
|
2449
|
+
t?.authors?.map((o) => /* @__PURE__ */ a.jsx("meta", { name: "author", content: o }, o)),
|
|
2450
|
+
t?.creator && /* @__PURE__ */ a.jsx("meta", { name: "creator", content: t.creator }),
|
|
2451
|
+
t?.publisher && /* @__PURE__ */ a.jsx("meta", { name: "publisher", content: t.publisher })
|
|
2981
2452
|
] }),
|
|
2982
2453
|
e
|
|
2983
2454
|
] });
|
|
2984
|
-
},
|
|
2455
|
+
}, mi = ({
|
|
2985
2456
|
title: e = "An error occurred",
|
|
2986
2457
|
message: t,
|
|
2987
2458
|
category: n
|
|
2988
|
-
}) => /* @__PURE__ */
|
|
2989
|
-
n && /* @__PURE__ */
|
|
2990
|
-
e && /* @__PURE__ */
|
|
2991
|
-
/* @__PURE__ */
|
|
2992
|
-
] }),
|
|
2993
|
-
const e =
|
|
2994
|
-
return /* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
2996
|
-
/* @__PURE__ */
|
|
2459
|
+
}) => /* @__PURE__ */ a.jsxs(Ce, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2460
|
+
n && /* @__PURE__ */ a.jsx(Be, { children: n }),
|
|
2461
|
+
e && /* @__PURE__ */ a.jsx(Ue, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
2462
|
+
/* @__PURE__ */ a.jsx("p", { children: t })
|
|
2463
|
+
] }), ft = () => {
|
|
2464
|
+
const e = xt();
|
|
2465
|
+
return /* @__PURE__ */ a.jsxs(Ce, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2466
|
+
/* @__PURE__ */ a.jsx(Be, { children: "404" }),
|
|
2467
|
+
/* @__PURE__ */ a.jsxs(Ue, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
2997
2468
|
"Page not found",
|
|
2998
|
-
/* @__PURE__ */
|
|
2469
|
+
/* @__PURE__ */ a.jsx(Mt, { size: 24 })
|
|
2999
2470
|
] }),
|
|
3000
|
-
/* @__PURE__ */
|
|
2471
|
+
/* @__PURE__ */ a.jsxs(Rt, { children: [
|
|
3001
2472
|
"Start by adding a file at",
|
|
3002
2473
|
" ",
|
|
3003
|
-
/* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ a.jsxs("code", { children: [
|
|
3004
2475
|
"{DOCUMENT_ROOT}",
|
|
3005
2476
|
"/",
|
|
3006
2477
|
e["*"],
|
|
@@ -3009,13 +2480,13 @@ const Ua = ({
|
|
|
3009
2480
|
" ",
|
|
3010
2481
|
"and add some content to make this error go away. By default",
|
|
3011
2482
|
" ",
|
|
3012
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ a.jsx("code", { children: "DOCUMENT_ROOT" }),
|
|
3013
2484
|
" is the `pages` directory."
|
|
3014
2485
|
] }),
|
|
3015
|
-
/* @__PURE__ */
|
|
3016
|
-
/* @__PURE__ */
|
|
2486
|
+
/* @__PURE__ */ a.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
2487
|
+
/* @__PURE__ */ a.jsx(Zt, { to: "/", children: "Go back home" })
|
|
3017
2488
|
] });
|
|
3018
|
-
},
|
|
2489
|
+
}, gi = (e) => {
|
|
3019
2490
|
switch (e) {
|
|
3020
2491
|
case 400:
|
|
3021
2492
|
return {
|
|
@@ -3078,12 +2549,12 @@ const Ua = ({
|
|
|
3078
2549
|
message: "Something went wrong while processing your request."
|
|
3079
2550
|
};
|
|
3080
2551
|
}
|
|
3081
|
-
},
|
|
2552
|
+
}, _i = ({ statusCode: e, message: t }) => {
|
|
3082
2553
|
if (e === 404)
|
|
3083
|
-
return /* @__PURE__ */
|
|
3084
|
-
const n =
|
|
3085
|
-
return /* @__PURE__ */
|
|
3086
|
-
|
|
2554
|
+
return /* @__PURE__ */ a.jsx(ft, {});
|
|
2555
|
+
const n = gi(e);
|
|
2556
|
+
return /* @__PURE__ */ a.jsx(
|
|
2557
|
+
mi,
|
|
3087
2558
|
{
|
|
3088
2559
|
title: n.title,
|
|
3089
2560
|
message: t ?? n.message,
|
|
@@ -3091,24 +2562,24 @@ const Ua = ({
|
|
|
3091
2562
|
}
|
|
3092
2563
|
);
|
|
3093
2564
|
};
|
|
3094
|
-
function
|
|
3095
|
-
const t =
|
|
3096
|
-
return
|
|
2565
|
+
function vi({ className: e }) {
|
|
2566
|
+
const t = $t();
|
|
2567
|
+
return jt(t) && t.status === 404 ? /* @__PURE__ */ a.jsx(ft, {}) : /* @__PURE__ */ a.jsx("div", { className: x("mx-4 max-w-2xl", e), children: /* @__PURE__ */ a.jsx(Fe, { error: t }) });
|
|
3097
2568
|
}
|
|
3098
|
-
function
|
|
3099
|
-
return /* @__PURE__ */
|
|
2569
|
+
function wi({ error: e }) {
|
|
2570
|
+
return /* @__PURE__ */ a.jsx(Fe, { error: e });
|
|
3100
2571
|
}
|
|
3101
|
-
const
|
|
2572
|
+
const Di = pi, Ri = vi, Ci = wi, Ui = Xt, Fi = en, Li = Ct, Bi = Oe, Mi = _i, Wi = ei, qi = hi;
|
|
3102
2573
|
export {
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
2574
|
+
Ui as Bootstrap,
|
|
2575
|
+
Fi as BootstrapStatic,
|
|
2576
|
+
Wi as BuildCheck,
|
|
2577
|
+
Bi as Head,
|
|
2578
|
+
Di as Layout,
|
|
2579
|
+
qi as Meta,
|
|
2580
|
+
Li as RouteGuard,
|
|
2581
|
+
Ri as RouterError,
|
|
2582
|
+
Ci as ServerError,
|
|
2583
|
+
Mi as StatusPage
|
|
3113
2584
|
};
|
|
3114
2585
|
//# sourceMappingURL=zudoku.__internal.js.map
|