zudoku 0.53.3 → 0.53.4
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/lib/plugins/openapi/OperationList.js +2 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/lib/{Alert-FYKbqjIt.js → Alert-SijAp9LN.js} +3 -3
- package/lib/Alert-SijAp9LN.js.map +1 -0
- package/lib/{MdxPage-DyRuoE_F.js → MdxPage-BFKqQsmK.js} +8 -8
- package/lib/{MdxPage-DyRuoE_F.js.map → MdxPage-BFKqQsmK.js.map} +1 -1
- package/lib/{OasProvider-CUA-DFGE.js → OasProvider-Bdyvd6Ic.js} +2 -2
- package/lib/{OasProvider-CUA-DFGE.js.map → OasProvider-Bdyvd6Ic.js.map} +1 -1
- package/lib/{OperationList-CRMvWoTv.js → OperationList-YZ7k-Rkt.js} +172 -172
- package/lib/{OperationList-CRMvWoTv.js.map → OperationList-YZ7k-Rkt.js.map} +1 -1
- package/lib/{Pagination-HZKe5ncg.js → Pagination-EViy7EHt.js} +2 -2
- package/lib/{Pagination-HZKe5ncg.js.map → Pagination-EViy7EHt.js.map} +1 -1
- package/lib/{RouteGuard-CbKd7_9h.js → RouteGuard-CX6A77iy.js} +2 -2
- package/lib/{RouteGuard-CbKd7_9h.js.map → RouteGuard-CX6A77iy.js.map} +1 -1
- package/lib/{SchemaList-B792ORza.js → SchemaList--_f8Azv0.js} +8 -8
- package/lib/{SchemaList-B792ORza.js.map → SchemaList--_f8Azv0.js.map} +1 -1
- package/lib/{SchemaView-Bo53TeMb.js → SchemaView-7XWvSrbX.js} +4 -4
- package/lib/{SchemaView-Bo53TeMb.js.map → SchemaView-7XWvSrbX.js.map} +1 -1
- package/lib/{SignUp-DfVvOCYB.js → SignUp-CXCezG-m.js} +3 -3
- package/lib/{SignUp-DfVvOCYB.js.map → SignUp-CXCezG-m.js.map} +1 -1
- package/lib/{Slot-BpO_AGKJ.js → Slot-tFjhrd8V.js} +3 -3
- package/lib/{Slot-BpO_AGKJ.js.map → Slot-tFjhrd8V.js.map} +1 -1
- package/lib/{SyntaxHighlight-CZgjJ7-f.js → SyntaxHighlight-Bp_UsIXG.js} +2 -2
- package/lib/{SyntaxHighlight-CZgjJ7-f.js.map → SyntaxHighlight-Bp_UsIXG.js.map} +1 -1
- package/lib/{Toc-DYMzDvOa.js → Toc-Ck0YQtmd.js} +2 -2
- package/lib/{Toc-DYMzDvOa.js.map → Toc-Ck0YQtmd.js.map} +1 -1
- package/lib/{circular-CLdQ0oUd.js → circular-BtKlhs07.js} +2 -2
- package/lib/{circular-CLdQ0oUd.js.map → circular-BtKlhs07.js.map} +1 -1
- package/lib/{createServer-Co4BBP-i.js → createServer-Di2U1Dg0.js} +4 -4
- package/lib/{createServer-Co4BBP-i.js.map → createServer-Di2U1Dg0.js.map} +1 -1
- package/lib/{errors-DE1gK7ms.js → errors-Dv_yAK6M.js} +4 -4
- package/lib/{errors-DE1gK7ms.js.map → errors-Dv_yAK6M.js.map} +1 -1
- package/lib/{hook-Bd0yS8M0.js → hook-CZjW2buS.js} +420 -413
- package/lib/hook-CZjW2buS.js.map +1 -0
- package/lib/{index-DYP-V0jG.js → index-BTqwnlI5.js} +13 -13
- package/lib/{index-DYP-V0jG.js.map → index-BTqwnlI5.js.map} +1 -1
- package/lib/index-Bm35Tkgf.js +107 -0
- package/lib/index-Bm35Tkgf.js.map +1 -0
- package/lib/{index-DLzZDv8_.js → index-CeQqiMIG.js} +2 -2
- package/lib/{index-DLzZDv8_.js.map → index-CeQqiMIG.js.map} +1 -1
- package/lib/{index-DLshv89l.js → index-DKCEJ4Kd.js} +685 -684
- package/lib/index-DKCEJ4Kd.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +2 -2
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +5 -5
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +3 -3
- 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 +2 -2
- package/package.json +6 -6
- package/src/lib/plugins/openapi/OperationList.tsx +3 -1
- package/lib/Alert-FYKbqjIt.js.map +0 -1
- package/lib/hook-Bd0yS8M0.js.map +0 -1
- package/lib/index-ClhS5TxS.js +0 -107
- package/lib/index-ClhS5TxS.js.map +0 -1
- package/lib/index-DLshv89l.js.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { z as
|
|
3
|
-
import { R as
|
|
4
|
-
import { S as
|
|
5
|
-
import { h as jn, E as
|
|
1
|
+
import { B as At, a as It, H as Ie, R as Xr } from "./RouteGuard-CX6A77iy.js";
|
|
2
|
+
import { z as Rt, M as en, J as tn, u as rn } from "./index-Bm35Tkgf.js";
|
|
3
|
+
import { R as nn, S as on, u as xe, e as Re, f as sn, L as De, O as Dt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
4
|
+
import { S as Mt, v as Ft, Q as an, n as R, w as Ye, x as Ge, i as L, y as cn, z as un, A as ln, B as dn, D as Je, E as Xe, F as fn, h as et, G as tt, H as hn, I as pn, g as qt, J as Ut, l as mn, d as M, e as oe, K as Lt, L as Qt, j as ee, M as gn, u as vn, c as yn, N as xn, Z as _n, f as bn, C as wn } from "./hook-CZjW2buS.js";
|
|
5
|
+
import { h as jn, E as Bt, a as A, A as kn, i as $n, s as zn, N as rt, j as Pn, T as Kt, C as En, H as Sn, k as Zn, l as Cn, m as Tn, V as Nn, R as On, M as An } from "./Slot-tFjhrd8V.js";
|
|
6
6
|
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
7
|
-
import { Button as
|
|
7
|
+
import { Button as Ht } from "./ui/Button.js";
|
|
8
8
|
import { Callout as In } from "./ui/Callout.js";
|
|
9
|
-
import * as
|
|
10
|
-
import { createContext as Me, StrictMode as
|
|
9
|
+
import * as K from "react";
|
|
10
|
+
import { createContext as Me, StrictMode as Wt, useRef as H, useEffect as F, useState as G, useCallback as B, Suspense as Fe, Fragment as Rn, memo as Vt, Component as Dn, createElement as nt, useMemo as $e, useContext as Mn } from "react";
|
|
11
11
|
import * as Fn from "react-dom";
|
|
12
|
-
import { CircleFadingArrowUpIcon as qn, LoaderCircleIcon as Un, ExternalLink as Ln, CircleXIcon as Qn, ChevronRightIcon as Bn, SearchIcon as
|
|
12
|
+
import { CircleFadingArrowUpIcon as qn, LoaderCircleIcon as Un, ExternalLink as Ln, CircleXIcon as Qn, ChevronRightIcon as Bn, SearchIcon as Kn, SunIcon as Hn, MoonIcon as Wn, MenuIcon as Vn, PanelLeftIcon as Yn } from "lucide-react";
|
|
13
13
|
import { C as te } from "./ClientOnly-E7hGysn1.js";
|
|
14
|
-
import { c as
|
|
15
|
-
import { S as
|
|
16
|
-
import { isSearchPlugin as Gn, isProfileMenuPlugin as
|
|
14
|
+
import { c as O } from "./cn-wvCW-ho6.js";
|
|
15
|
+
import { S as Yt } from "./Spinner-mNLZ6awP.js";
|
|
16
|
+
import { isSearchPlugin as Gn, isProfileMenuPlugin as Gt, isNavigationPlugin as ot, isAuthenticationPlugin as Jn, isEventConsumerPlugin as Xn, needsInitialization as eo, isApiIdentityPlugin as to, isMdxProviderPlugin as ro, hasHead as no } from "./zudoku.plugins.js";
|
|
17
17
|
import { B as Se } from "./Button-BE9IVkWV.js";
|
|
18
18
|
import { DropdownMenu as oo, DropdownMenuTrigger as so, DropdownMenuContent as ao, DropdownMenuLabel as io, DropdownMenuSeparator as ze, DropdownMenuSub as co, DropdownMenuSubTrigger as uo, DropdownMenuPortal as lo, DropdownMenuSubContent as fo, DropdownMenuItem as ho } from "./ui/DropdownMenu.js";
|
|
19
|
-
import { VisuallyHidden as
|
|
20
|
-
import { D as po, a as mo, b as
|
|
19
|
+
import { VisuallyHidden as Jt } from "@radix-ui/react-visually-hidden";
|
|
20
|
+
import { D as po, a as mo, b as Xt, c as er, d as q } from "./Drawer-BzkOKwgC.js";
|
|
21
21
|
import { a as go } from "./index-DI5SPFK9.js";
|
|
22
|
-
var vo = class extends
|
|
22
|
+
var vo = class extends Mt {
|
|
23
23
|
constructor(e = {}) {
|
|
24
24
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
25
25
|
}
|
|
26
26
|
#e;
|
|
27
27
|
build(e, t, r) {
|
|
28
|
-
const n = t.queryKey, o = t.queryHash ??
|
|
28
|
+
const n = t.queryKey, o = t.queryHash ?? Ft(n, t);
|
|
29
29
|
let a = this.get(o);
|
|
30
|
-
return a || (a = new
|
|
30
|
+
return a || (a = new an({
|
|
31
31
|
client: e,
|
|
32
32
|
queryKey: n,
|
|
33
33
|
queryHash: o,
|
|
@@ -90,7 +90,7 @@ var vo = class extends Ft {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
}, yo = class extends
|
|
93
|
+
}, yo = class extends Mt {
|
|
94
94
|
constructor(e = {}) {
|
|
95
95
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
96
96
|
}
|
|
@@ -185,51 +185,50 @@ function st(e) {
|
|
|
185
185
|
return {
|
|
186
186
|
onFetch: (t, r) => {
|
|
187
187
|
const n = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
|
|
188
|
-
let u = { pages: [], pageParams: [] },
|
|
188
|
+
let u = { pages: [], pageParams: [] }, p = 0;
|
|
189
189
|
const f = async () => {
|
|
190
|
-
let
|
|
191
|
-
const
|
|
190
|
+
let x = !1;
|
|
191
|
+
const h = (g) => {
|
|
192
192
|
Object.defineProperty(g, "signal", {
|
|
193
193
|
enumerable: !0,
|
|
194
|
-
get: () => (t.signal.aborted ?
|
|
195
|
-
|
|
194
|
+
get: () => (t.signal.aborted ? x = !0 : t.signal.addEventListener("abort", () => {
|
|
195
|
+
x = !0;
|
|
196
196
|
}), t.signal)
|
|
197
197
|
});
|
|
198
|
-
}, m =
|
|
199
|
-
if (
|
|
198
|
+
}, m = cn(t.options, t.fetchOptions), l = async (g, w, E) => {
|
|
199
|
+
if (x)
|
|
200
200
|
return Promise.reject();
|
|
201
201
|
if (w == null && g.pages.length)
|
|
202
202
|
return Promise.resolve(g);
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
), { maxPages: x } = t.options, b = P ? ln : dn;
|
|
203
|
+
const j = (() => {
|
|
204
|
+
const k = {
|
|
205
|
+
client: t.client,
|
|
206
|
+
queryKey: t.queryKey,
|
|
207
|
+
pageParam: w,
|
|
208
|
+
direction: E ? "backward" : "forward",
|
|
209
|
+
meta: t.options.meta
|
|
210
|
+
};
|
|
211
|
+
return h(k), k;
|
|
212
|
+
})(), y = await m(j), { maxPages: _ } = t.options, d = E ? un : ln;
|
|
214
213
|
return {
|
|
215
|
-
pages:
|
|
216
|
-
pageParams:
|
|
214
|
+
pages: d(g.pages, y, _),
|
|
215
|
+
pageParams: d(g.pageParams, w, _)
|
|
217
216
|
};
|
|
218
217
|
};
|
|
219
218
|
if (o && a.length) {
|
|
220
|
-
const g = o === "backward", w = g ? xo : at,
|
|
219
|
+
const g = o === "backward", w = g ? xo : at, E = {
|
|
221
220
|
pages: a,
|
|
222
221
|
pageParams: i
|
|
223
|
-
},
|
|
224
|
-
u = await l(
|
|
222
|
+
}, $ = w(n, E);
|
|
223
|
+
u = await l(E, $, g);
|
|
225
224
|
} else {
|
|
226
225
|
const g = e ?? a.length;
|
|
227
226
|
do {
|
|
228
|
-
const w =
|
|
229
|
-
if (
|
|
227
|
+
const w = p === 0 ? i[0] ?? n.initialPageParam : at(n, u);
|
|
228
|
+
if (p > 0 && w == null)
|
|
230
229
|
break;
|
|
231
|
-
u = await l(u, w),
|
|
232
|
-
} while (
|
|
230
|
+
u = await l(u, w), p++;
|
|
231
|
+
} while (p < g);
|
|
233
232
|
}
|
|
234
233
|
return u;
|
|
235
234
|
};
|
|
@@ -271,7 +270,7 @@ var _o = class {
|
|
|
271
270
|
this.#e = e.queryCache || new vo(), this.#t = e.mutationCache || new yo(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
272
271
|
}
|
|
273
272
|
mount() {
|
|
274
|
-
this.#n++, this.#n === 1 && (this.#a =
|
|
273
|
+
this.#n++, this.#n === 1 && (this.#a = dn.subscribe(async (e) => {
|
|
275
274
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
276
275
|
}), this.#i = Je.subscribe(async (e) => {
|
|
277
276
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
@@ -310,7 +309,7 @@ var _o = class {
|
|
|
310
309
|
setQueryData(e, t, r) {
|
|
311
310
|
const n = this.defaultQueryOptions({ queryKey: e }), a = this.#e.get(
|
|
312
311
|
n.queryHash
|
|
313
|
-
)?.state.data, i =
|
|
312
|
+
)?.state.data, i = fn(t, a);
|
|
314
313
|
if (i !== void 0)
|
|
315
314
|
return this.#e.build(this, n).setData(i, { ...r, manual: !0 });
|
|
316
315
|
}
|
|
@@ -370,7 +369,7 @@ var _o = class {
|
|
|
370
369
|
...t,
|
|
371
370
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
372
371
|
}, n = R.batch(
|
|
373
|
-
() => this.#e.findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
372
|
+
() => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
|
|
374
373
|
let a = o.fetch(void 0, r);
|
|
375
374
|
return r.throwOnError || (a = a.catch(L)), o.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
376
375
|
})
|
|
@@ -445,10 +444,10 @@ var _o = class {
|
|
|
445
444
|
...e,
|
|
446
445
|
_defaulted: !0
|
|
447
446
|
};
|
|
448
|
-
return t.queryHash || (t.queryHash =
|
|
447
|
+
return t.queryHash || (t.queryHash = Ft(
|
|
449
448
|
t.queryKey,
|
|
450
449
|
t
|
|
451
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
450
|
+
)), 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 === hn && (t.enabled = !1), t;
|
|
452
451
|
}
|
|
453
452
|
defaultMutationOptions(e) {
|
|
454
453
|
return e?._defaulted ? e : {
|
|
@@ -469,7 +468,7 @@ function it(e, t, r) {
|
|
|
469
468
|
if (typeof t != "object" || t === null)
|
|
470
469
|
return;
|
|
471
470
|
const n = e.getMutationCache(), o = e.getQueryCache(), a = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? bo, i = t.mutations || [], u = t.queries || [];
|
|
472
|
-
i.forEach(({ state:
|
|
471
|
+
i.forEach(({ state: p, ...f }) => {
|
|
473
472
|
n.build(
|
|
474
473
|
e,
|
|
475
474
|
{
|
|
@@ -477,77 +476,79 @@ function it(e, t, r) {
|
|
|
477
476
|
...r?.defaultOptions?.mutations,
|
|
478
477
|
...f
|
|
479
478
|
},
|
|
480
|
-
|
|
479
|
+
p
|
|
481
480
|
);
|
|
482
|
-
}), u.forEach(
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
...e.getDefaultOptions().hydrate?.queries,
|
|
498
|
-
...r?.defaultOptions?.queries,
|
|
499
|
-
queryKey: h,
|
|
500
|
-
queryHash: y,
|
|
501
|
-
meta: p
|
|
502
|
-
},
|
|
503
|
-
// Reset fetch status to idle to avoid
|
|
504
|
-
// query being stuck in fetching state upon hydration
|
|
505
|
-
{
|
|
506
|
-
...f,
|
|
507
|
-
data: g,
|
|
508
|
-
fetchStatus: "idle"
|
|
481
|
+
}), u.forEach(
|
|
482
|
+
({ queryKey: p, state: f, queryHash: x, meta: h, promise: m, dehydratedAt: l }) => {
|
|
483
|
+
const g = m ? pn(m) : void 0, w = f.data === void 0 ? g?.data : f.data, E = w === void 0 ? w : a(w);
|
|
484
|
+
let $ = o.get(x);
|
|
485
|
+
const j = $?.state.status === "pending", y = $?.state.fetchStatus === "fetching";
|
|
486
|
+
if ($) {
|
|
487
|
+
const _ = g && // We only need this undefined check to handle older dehydration
|
|
488
|
+
// payloads that might not have dehydratedAt
|
|
489
|
+
l !== void 0 && l > $.state.dataUpdatedAt;
|
|
490
|
+
if (f.dataUpdatedAt > $.state.dataUpdatedAt || _) {
|
|
491
|
+
const { fetchStatus: d, ...k } = f;
|
|
492
|
+
$.setState({
|
|
493
|
+
...k,
|
|
494
|
+
data: E
|
|
495
|
+
});
|
|
509
496
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
497
|
+
} else
|
|
498
|
+
$ = o.build(
|
|
499
|
+
e,
|
|
500
|
+
{
|
|
501
|
+
...e.getDefaultOptions().hydrate?.queries,
|
|
502
|
+
...r?.defaultOptions?.queries,
|
|
503
|
+
queryKey: p,
|
|
504
|
+
queryHash: x,
|
|
505
|
+
meta: h
|
|
506
|
+
},
|
|
507
|
+
// Reset fetch status to idle to avoid
|
|
508
|
+
// query being stuck in fetching state upon hydration
|
|
509
|
+
{
|
|
510
|
+
...f,
|
|
511
|
+
data: E,
|
|
512
|
+
fetchStatus: "idle",
|
|
513
|
+
status: E !== void 0 ? "success" : f.status
|
|
514
|
+
}
|
|
515
|
+
);
|
|
516
|
+
m && !j && !y && // Only hydrate if dehydration is newer than any existing data,
|
|
517
|
+
// this is always true for new queries
|
|
518
|
+
(l === void 0 || l > $.state.dataUpdatedAt) && $.fetch(void 0, {
|
|
519
|
+
// RSC transformed promises are not thenable
|
|
520
|
+
initialPromise: Promise.resolve(m).then(a)
|
|
521
|
+
});
|
|
514
522
|
}
|
|
515
|
-
|
|
523
|
+
);
|
|
516
524
|
}
|
|
517
|
-
var
|
|
525
|
+
var wo = ({
|
|
518
526
|
children: e,
|
|
519
527
|
options: t = {},
|
|
520
528
|
state: r,
|
|
521
529
|
queryClient: n
|
|
522
530
|
}) => {
|
|
523
|
-
const o =
|
|
524
|
-
|
|
531
|
+
const o = qt(n), a = K.useRef(t);
|
|
532
|
+
a.current = t;
|
|
533
|
+
const i = K.useMemo(() => {
|
|
525
534
|
if (r) {
|
|
526
535
|
if (typeof r != "object")
|
|
527
536
|
return;
|
|
528
|
-
const
|
|
529
|
-
for (const
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
y.push(m);
|
|
533
|
-
else {
|
|
534
|
-
const g = m.state.dataUpdatedAt > l.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
535
|
-
ct(m.promise, "status") && ct(l.promise, "status") && m.promise.status !== l.promise.status, w = a?.find(
|
|
536
|
-
(P) => P.queryHash === m.queryHash
|
|
537
|
-
);
|
|
538
|
-
g && (!w || m.state.dataUpdatedAt > w.state.dataUpdatedAt) && p.push(m);
|
|
539
|
-
}
|
|
537
|
+
const u = o.getQueryCache(), p = r.queries || [], f = [], x = [];
|
|
538
|
+
for (const h of p) {
|
|
539
|
+
const m = u.get(h.queryHash);
|
|
540
|
+
m ? (h.state.dataUpdatedAt > m.state.dataUpdatedAt || h.promise && m.state.status !== "pending" && m.state.fetchStatus !== "fetching" && h.dehydratedAt !== void 0 && h.dehydratedAt > m.state.dataUpdatedAt) && x.push(h) : f.push(h);
|
|
540
541
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
);
|
|
542
|
+
if (f.length > 0 && it(o, { queries: f }, a.current), x.length > 0)
|
|
543
|
+
return x;
|
|
544
544
|
}
|
|
545
|
-
}, [o,
|
|
546
|
-
|
|
547
|
-
|
|
545
|
+
}, [o, r]);
|
|
546
|
+
return K.useEffect(() => {
|
|
547
|
+
i && it(o, { queries: i }, a.current);
|
|
548
|
+
}, [o, i]), e;
|
|
548
549
|
};
|
|
549
550
|
function jo({ error: e }) {
|
|
550
|
-
return /* @__PURE__ */ s.jsx(
|
|
551
|
+
return /* @__PURE__ */ s.jsx(Bt, { error: e });
|
|
551
552
|
}
|
|
552
553
|
/**
|
|
553
554
|
* react-router v7.6.1
|
|
@@ -560,7 +561,7 @@ function jo({ error: e }) {
|
|
|
560
561
|
* @license MIT
|
|
561
562
|
*/
|
|
562
563
|
function ko(e) {
|
|
563
|
-
return /* @__PURE__ */
|
|
564
|
+
return /* @__PURE__ */ K.createElement(nn, { flushSync: Fn.flushSync, ...e });
|
|
564
565
|
}
|
|
565
566
|
const Ze = Me({ stagger: !1 }), $o = new _o({
|
|
566
567
|
defaultOptions: {
|
|
@@ -571,34 +572,34 @@ const Ze = Me({ stagger: !1 }), $o = new _o({
|
|
|
571
572
|
}), zo = ({
|
|
572
573
|
router: e,
|
|
573
574
|
hydrate: t = !1
|
|
574
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
575
|
+
}) => /* @__PURE__ */ s.jsx(Wt, { children: /* @__PURE__ */ s.jsx(Ut, { client: $o, children: /* @__PURE__ */ s.jsx(wo, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(At, { value: !1, children: /* @__PURE__ */ s.jsx(It, { children: /* @__PURE__ */ s.jsx(Ze.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ s.jsx(ko, { router: e }) }) }) }) }) }) }), Po = ({
|
|
575
576
|
router: e,
|
|
576
577
|
context: t,
|
|
577
578
|
queryClient: r,
|
|
578
579
|
helmetContext: n,
|
|
579
580
|
bypassProtection: o = !1
|
|
580
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
581
|
+
}) => /* @__PURE__ */ s.jsx(Wt, { children: /* @__PURE__ */ s.jsx(Ut, { client: r, children: /* @__PURE__ */ s.jsx(It, { context: n, children: /* @__PURE__ */ s.jsx(At, { value: o, children: /* @__PURE__ */ s.jsx(on, { router: e, context: t }) }) }) }) });
|
|
581
582
|
function c(e, t, r) {
|
|
582
|
-
function n(u,
|
|
583
|
+
function n(u, p) {
|
|
583
584
|
var f;
|
|
584
585
|
Object.defineProperty(u, "_zod", {
|
|
585
586
|
value: u._zod ?? {},
|
|
586
587
|
enumerable: !1
|
|
587
|
-
}), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u,
|
|
588
|
-
for (const
|
|
589
|
-
|
|
590
|
-
u._zod.constr = i, u._zod.def =
|
|
588
|
+
}), (f = u._zod).traits ?? (f.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, p);
|
|
589
|
+
for (const x in i.prototype)
|
|
590
|
+
x in u || Object.defineProperty(u, x, { value: i.prototype[x].bind(u) });
|
|
591
|
+
u._zod.constr = i, u._zod.def = p;
|
|
591
592
|
}
|
|
592
593
|
const o = r?.Parent ?? Object;
|
|
593
594
|
class a extends o {
|
|
594
595
|
}
|
|
595
596
|
Object.defineProperty(a, "name", { value: e });
|
|
596
597
|
function i(u) {
|
|
597
|
-
var
|
|
598
|
+
var p;
|
|
598
599
|
const f = r?.Parent ? new a() : this;
|
|
599
|
-
n(f, u), (
|
|
600
|
-
for (const
|
|
601
|
-
|
|
600
|
+
n(f, u), (p = f._zod).deferred ?? (p.deferred = []);
|
|
601
|
+
for (const x of f._zod.deferred)
|
|
602
|
+
x();
|
|
602
603
|
return f;
|
|
603
604
|
}
|
|
604
605
|
return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
@@ -610,9 +611,9 @@ class se extends Error {
|
|
|
610
611
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
|
-
const
|
|
614
|
+
const tr = {};
|
|
614
615
|
function V(e) {
|
|
615
|
-
return
|
|
616
|
+
return tr;
|
|
616
617
|
}
|
|
617
618
|
function Eo(e) {
|
|
618
619
|
const t = Object.values(e).filter((n) => typeof n == "number");
|
|
@@ -621,7 +622,7 @@ function Eo(e) {
|
|
|
621
622
|
function So(e, t) {
|
|
622
623
|
return typeof t == "bigint" ? t.toString() : t;
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
+
function rr(e) {
|
|
625
626
|
return {
|
|
626
627
|
get value() {
|
|
627
628
|
{
|
|
@@ -638,7 +639,7 @@ function Ue(e) {
|
|
|
638
639
|
const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
|
|
639
640
|
return e.slice(t, r);
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function Z(e, t, r) {
|
|
642
643
|
Object.defineProperty(e, t, {
|
|
643
644
|
get() {
|
|
644
645
|
{
|
|
@@ -663,7 +664,7 @@ function Le(e, t, r) {
|
|
|
663
664
|
configurable: !0
|
|
664
665
|
});
|
|
665
666
|
}
|
|
666
|
-
function
|
|
667
|
+
function nr(e = 10) {
|
|
667
668
|
const t = "abcdefghijklmnopqrstuvwxyz";
|
|
668
669
|
let r = "";
|
|
669
670
|
for (let n = 0; n < e; n++)
|
|
@@ -673,12 +674,12 @@ function or(e = 10) {
|
|
|
673
674
|
function re(e) {
|
|
674
675
|
return JSON.stringify(e);
|
|
675
676
|
}
|
|
676
|
-
const
|
|
677
|
+
const or = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
|
|
677
678
|
};
|
|
678
|
-
function
|
|
679
|
+
function Ce(e) {
|
|
679
680
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
680
681
|
}
|
|
681
|
-
const Zo =
|
|
682
|
+
const Zo = rr(() => {
|
|
682
683
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
683
684
|
return !1;
|
|
684
685
|
try {
|
|
@@ -688,16 +689,16 @@ const Zo = nr(() => {
|
|
|
688
689
|
return !1;
|
|
689
690
|
}
|
|
690
691
|
});
|
|
691
|
-
function
|
|
692
|
-
if (
|
|
692
|
+
function ct(e) {
|
|
693
|
+
if (Ce(e) === !1)
|
|
693
694
|
return !1;
|
|
694
695
|
const t = e.constructor;
|
|
695
696
|
if (t === void 0)
|
|
696
697
|
return !0;
|
|
697
698
|
const r = t.prototype;
|
|
698
|
-
return !(
|
|
699
|
+
return !(Ce(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
|
|
699
700
|
}
|
|
700
|
-
const
|
|
701
|
+
const Co = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
701
702
|
function _e(e) {
|
|
702
703
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
703
704
|
}
|
|
@@ -705,7 +706,7 @@ function J(e, t, r) {
|
|
|
705
706
|
const n = new e._zod.constr(t ?? e._zod.def);
|
|
706
707
|
return (!t || r?.parent) && (n._zod.parent = e), n;
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
+
function b(e) {
|
|
709
710
|
const t = e;
|
|
710
711
|
if (!t)
|
|
711
712
|
return {};
|
|
@@ -718,10 +719,10 @@ function _(e) {
|
|
|
718
719
|
}
|
|
719
720
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
720
721
|
}
|
|
721
|
-
function
|
|
722
|
+
function To(e) {
|
|
722
723
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
723
724
|
}
|
|
724
|
-
function
|
|
725
|
+
function No(e, t) {
|
|
725
726
|
const r = {}, n = e._zod.def;
|
|
726
727
|
for (const o in t) {
|
|
727
728
|
if (!(o in n.shape))
|
|
@@ -734,7 +735,7 @@ function Oo(e, t) {
|
|
|
734
735
|
checks: []
|
|
735
736
|
});
|
|
736
737
|
}
|
|
737
|
-
function
|
|
738
|
+
function Oo(e, t) {
|
|
738
739
|
const r = { ...e._zod.def.shape }, n = e._zod.def;
|
|
739
740
|
for (const o in t) {
|
|
740
741
|
if (!(o in n.shape))
|
|
@@ -853,7 +854,7 @@ function ae(...e) {
|
|
|
853
854
|
inst: n
|
|
854
855
|
} : { ...t };
|
|
855
856
|
}
|
|
856
|
-
const
|
|
857
|
+
const sr = (e, t) => {
|
|
857
858
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
858
859
|
value: e._zod,
|
|
859
860
|
enumerable: !1
|
|
@@ -867,7 +868,7 @@ const ar = (e, t) => {
|
|
|
867
868
|
enumerable: !0
|
|
868
869
|
// configurable: false,
|
|
869
870
|
});
|
|
870
|
-
},
|
|
871
|
+
}, ar = c("$ZodError", sr), ir = c("$ZodError", sr, { Parent: Error });
|
|
871
872
|
function Mo(e, t = (r) => r.message) {
|
|
872
873
|
const r = {}, n = [];
|
|
873
874
|
for (const o of e.issues)
|
|
@@ -888,10 +889,10 @@ function Fo(e, t) {
|
|
|
888
889
|
else if (i.path.length === 0)
|
|
889
890
|
n._errors.push(r(i));
|
|
890
891
|
else {
|
|
891
|
-
let u = n,
|
|
892
|
-
for (;
|
|
893
|
-
const f = i.path[
|
|
894
|
-
|
|
892
|
+
let u = n, p = 0;
|
|
893
|
+
for (; p < i.path.length; ) {
|
|
894
|
+
const f = i.path[p];
|
|
895
|
+
p === i.path.length - 1 ? (u[f] = u[f] || { _errors: [] }, u[f]._errors.push(r(i))) : u[f] = u[f] || { _errors: [] }, u = u[f], p++;
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
898
|
};
|
|
@@ -902,50 +903,50 @@ const qo = (e) => (t, r, n, o) => {
|
|
|
902
903
|
if (i instanceof Promise)
|
|
903
904
|
throw new se();
|
|
904
905
|
if (i.issues.length) {
|
|
905
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
906
|
-
throw
|
|
906
|
+
const u = new (o?.Err ?? e)(i.issues.map((p) => Y(p, a, V())));
|
|
907
|
+
throw or(u, o?.callee), u;
|
|
907
908
|
}
|
|
908
909
|
return i.value;
|
|
909
910
|
}, Uo = (e) => async (t, r, n, o) => {
|
|
910
911
|
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
911
912
|
let i = t._zod.run({ value: r, issues: [] }, a);
|
|
912
913
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
913
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
914
|
-
throw
|
|
914
|
+
const u = new (o?.Err ?? e)(i.issues.map((p) => Y(p, a, V())));
|
|
915
|
+
throw or(u, o?.callee), u;
|
|
915
916
|
}
|
|
916
917
|
return i.value;
|
|
917
|
-
},
|
|
918
|
+
}, cr = (e) => (t, r, n) => {
|
|
918
919
|
const o = n ? { ...n, async: !1 } : { async: !1 }, a = t._zod.run({ value: r, issues: [] }, o);
|
|
919
920
|
if (a instanceof Promise)
|
|
920
921
|
throw new se();
|
|
921
922
|
return a.issues.length ? {
|
|
922
923
|
success: !1,
|
|
923
|
-
error: new (e ??
|
|
924
|
+
error: new (e ?? ar)(a.issues.map((i) => Y(i, o, V())))
|
|
924
925
|
} : { success: !0, data: a.value };
|
|
925
|
-
}, Lo = /* @__PURE__ */
|
|
926
|
+
}, Lo = /* @__PURE__ */ cr(ir), ur = (e) => async (t, r, n) => {
|
|
926
927
|
const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
927
928
|
let a = t._zod.run({ value: r, issues: [] }, o);
|
|
928
929
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
929
930
|
success: !1,
|
|
930
931
|
error: new e(a.issues.map((i) => Y(i, o, V())))
|
|
931
932
|
} : { success: !0, data: a.value };
|
|
932
|
-
}, Qo = /* @__PURE__ */
|
|
933
|
+
}, Qo = /* @__PURE__ */ ur(ir), Bo = /^[cC][^\s-]{8,}$/, Ko = /^[0-9a-z]+$/, Ho = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Wo = /^[0-9a-vA-V]{20}$/, Vo = /^[A-Za-z0-9]{27}$/, Yo = /^[a-zA-Z0-9_-]{21}$/, Go = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Jo = /^([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})$/, ut = (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)$/, Xo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, es = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
933
934
|
function ts() {
|
|
934
935
|
return new RegExp(es, "u");
|
|
935
936
|
}
|
|
936
|
-
const rs = /^(?:(?: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])$/, ns = /^(([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})$/, os = /^((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])$/, ss = /^(([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])$/, as = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,
|
|
937
|
-
function
|
|
937
|
+
const rs = /^(?:(?: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])$/, ns = /^(([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})$/, os = /^((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])$/, ss = /^(([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])$/, as = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, lr = /^[A-Za-z0-9_-]*$/, is = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, cs = /^\+(?:[0-9]){6,14}[0-9]$/, dr = "(?:(?:\\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])))", us = /* @__PURE__ */ new RegExp(`^${dr}$`);
|
|
938
|
+
function fr(e) {
|
|
938
939
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
939
940
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
940
941
|
}
|
|
941
942
|
function ls(e) {
|
|
942
|
-
return new RegExp(`^${
|
|
943
|
+
return new RegExp(`^${fr(e)}$`);
|
|
943
944
|
}
|
|
944
945
|
function ds(e) {
|
|
945
|
-
const t =
|
|
946
|
+
const t = fr({ precision: e.precision }), r = ["Z"];
|
|
946
947
|
e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
|
|
947
948
|
const n = `${t}(?:${r.join("|")})`;
|
|
948
|
-
return new RegExp(`^${
|
|
949
|
+
return new RegExp(`^${dr}T(?:${n})$`);
|
|
949
950
|
}
|
|
950
951
|
const fs = (e) => {
|
|
951
952
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
@@ -1134,9 +1135,9 @@ const zs = {
|
|
|
1134
1135
|
major: 4,
|
|
1135
1136
|
minor: 0,
|
|
1136
1137
|
patch: 0
|
|
1137
|
-
},
|
|
1138
|
+
}, T = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
1138
1139
|
var r;
|
|
1139
|
-
e ?? (e = {}),
|
|
1140
|
+
e ?? (e = {}), Z(e._zod, "id", () => t.type + "_" + nr(10)), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = zs;
|
|
1140
1141
|
const n = [...e._zod.def.checks ?? []];
|
|
1141
1142
|
e._zod.traits.has("$ZodCheck") && n.unshift(e);
|
|
1142
1143
|
for (const o of n)
|
|
@@ -1148,24 +1149,24 @@ const zs = {
|
|
|
1148
1149
|
});
|
|
1149
1150
|
else {
|
|
1150
1151
|
const o = (a, i, u) => {
|
|
1151
|
-
let
|
|
1152
|
-
for (const
|
|
1153
|
-
if (
|
|
1154
|
-
if (!
|
|
1152
|
+
let p = ne(a), f;
|
|
1153
|
+
for (const x of i) {
|
|
1154
|
+
if (x._zod.when) {
|
|
1155
|
+
if (!x._zod.when(a))
|
|
1155
1156
|
continue;
|
|
1156
|
-
} else if (
|
|
1157
|
+
} else if (p)
|
|
1157
1158
|
continue;
|
|
1158
|
-
const
|
|
1159
|
+
const h = a.issues.length, m = x._zod.check(a);
|
|
1159
1160
|
if (m instanceof Promise && u?.async === !1)
|
|
1160
1161
|
throw new se();
|
|
1161
1162
|
if (f || m instanceof Promise)
|
|
1162
1163
|
f = (f ?? Promise.resolve()).then(async () => {
|
|
1163
|
-
await m, a.issues.length !==
|
|
1164
|
+
await m, a.issues.length !== h && (p || (p = ne(a, h)));
|
|
1164
1165
|
});
|
|
1165
1166
|
else {
|
|
1166
|
-
if (a.issues.length ===
|
|
1167
|
+
if (a.issues.length === h)
|
|
1167
1168
|
continue;
|
|
1168
|
-
|
|
1169
|
+
p || (p = ne(a, h));
|
|
1169
1170
|
}
|
|
1170
1171
|
}
|
|
1171
1172
|
return f ? f.then(() => a) : a;
|
|
@@ -1175,7 +1176,7 @@ const zs = {
|
|
|
1175
1176
|
if (u instanceof Promise) {
|
|
1176
1177
|
if (i.async === !1)
|
|
1177
1178
|
throw new se();
|
|
1178
|
-
return u.then((
|
|
1179
|
+
return u.then((p) => o(p, n, i));
|
|
1179
1180
|
}
|
|
1180
1181
|
return o(u, n, i);
|
|
1181
1182
|
};
|
|
@@ -1192,8 +1193,8 @@ const zs = {
|
|
|
1192
1193
|
vendor: "zod",
|
|
1193
1194
|
version: 1
|
|
1194
1195
|
};
|
|
1195
|
-
}),
|
|
1196
|
-
|
|
1196
|
+
}), Ke = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
1197
|
+
T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fs(e._zod.bag), e._zod.parse = (r, n) => {
|
|
1197
1198
|
if (t.coerce)
|
|
1198
1199
|
try {
|
|
1199
1200
|
r.value = String(r.value);
|
|
@@ -1206,10 +1207,10 @@ const zs = {
|
|
|
1206
1207
|
inst: e
|
|
1207
1208
|
}), r;
|
|
1208
1209
|
};
|
|
1209
|
-
}),
|
|
1210
|
-
be.init(e, t),
|
|
1210
|
+
}), S = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
1211
|
+
be.init(e, t), Ke.init(e, t);
|
|
1211
1212
|
}), Ps = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
1212
|
-
t.pattern ?? (t.pattern = Jo),
|
|
1213
|
+
t.pattern ?? (t.pattern = Jo), S.init(e, t);
|
|
1213
1214
|
}), Es = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1214
1215
|
if (t.version) {
|
|
1215
1216
|
const n = {
|
|
@@ -1224,14 +1225,14 @@ const zs = {
|
|
|
1224
1225
|
}[t.version];
|
|
1225
1226
|
if (n === void 0)
|
|
1226
1227
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
1227
|
-
t.pattern ?? (t.pattern =
|
|
1228
|
+
t.pattern ?? (t.pattern = ut(n));
|
|
1228
1229
|
} else
|
|
1229
|
-
t.pattern ?? (t.pattern =
|
|
1230
|
-
|
|
1230
|
+
t.pattern ?? (t.pattern = ut());
|
|
1231
|
+
S.init(e, t);
|
|
1231
1232
|
}), Ss = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
1232
|
-
t.pattern ?? (t.pattern = Xo),
|
|
1233
|
+
t.pattern ?? (t.pattern = Xo), S.init(e, t);
|
|
1233
1234
|
}), Zs = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
1234
|
-
|
|
1235
|
+
S.init(e, t), e._zod.check = (r) => {
|
|
1235
1236
|
try {
|
|
1236
1237
|
const n = new URL(r.value);
|
|
1237
1238
|
t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(n.hostname) || r.issues.push({
|
|
@@ -1262,35 +1263,35 @@ const zs = {
|
|
|
1262
1263
|
});
|
|
1263
1264
|
}
|
|
1264
1265
|
};
|
|
1265
|
-
}),
|
|
1266
|
-
t.pattern ?? (t.pattern = ts()),
|
|
1267
|
-
}),
|
|
1268
|
-
t.pattern ?? (t.pattern = Yo),
|
|
1269
|
-
}),
|
|
1270
|
-
t.pattern ?? (t.pattern = Bo),
|
|
1271
|
-
}),
|
|
1272
|
-
t.pattern ?? (t.pattern =
|
|
1266
|
+
}), Cs = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
1267
|
+
t.pattern ?? (t.pattern = ts()), S.init(e, t);
|
|
1268
|
+
}), Ts = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
1269
|
+
t.pattern ?? (t.pattern = Yo), S.init(e, t);
|
|
1270
|
+
}), Ns = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
1271
|
+
t.pattern ?? (t.pattern = Bo), S.init(e, t);
|
|
1272
|
+
}), Os = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1273
|
+
t.pattern ?? (t.pattern = Ko), S.init(e, t);
|
|
1273
1274
|
}), As = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1274
|
-
t.pattern ?? (t.pattern =
|
|
1275
|
+
t.pattern ?? (t.pattern = Ho), S.init(e, t);
|
|
1275
1276
|
}), Is = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1276
|
-
t.pattern ?? (t.pattern = Wo),
|
|
1277
|
+
t.pattern ?? (t.pattern = Wo), S.init(e, t);
|
|
1277
1278
|
}), Rs = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1278
|
-
t.pattern ?? (t.pattern = Vo),
|
|
1279
|
+
t.pattern ?? (t.pattern = Vo), S.init(e, t);
|
|
1279
1280
|
}), Ds = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1280
|
-
t.pattern ?? (t.pattern = ds(t)),
|
|
1281
|
+
t.pattern ?? (t.pattern = ds(t)), S.init(e, t), e._zod.check;
|
|
1281
1282
|
}), Ms = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1282
|
-
t.pattern ?? (t.pattern = us),
|
|
1283
|
+
t.pattern ?? (t.pattern = us), S.init(e, t);
|
|
1283
1284
|
}), Fs = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1284
|
-
t.pattern ?? (t.pattern = ls(t)),
|
|
1285
|
+
t.pattern ?? (t.pattern = ls(t)), S.init(e, t), e._zod.check;
|
|
1285
1286
|
}), qs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1286
|
-
t.pattern ?? (t.pattern = Go),
|
|
1287
|
+
t.pattern ?? (t.pattern = Go), S.init(e, t);
|
|
1287
1288
|
}), Us = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1288
|
-
t.pattern ?? (t.pattern = rs),
|
|
1289
|
+
t.pattern ?? (t.pattern = rs), S.init(e, t), e._zod.onattach.push((r) => {
|
|
1289
1290
|
const n = r._zod.bag;
|
|
1290
1291
|
n.format = "ipv4";
|
|
1291
1292
|
});
|
|
1292
1293
|
}), Ls = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
1293
|
-
t.pattern ?? (t.pattern = ns),
|
|
1294
|
+
t.pattern ?? (t.pattern = ns), S.init(e, t), e._zod.onattach.push((r) => {
|
|
1294
1295
|
const n = r._zod.bag;
|
|
1295
1296
|
n.format = "ipv6";
|
|
1296
1297
|
}), e._zod.check = (r) => {
|
|
@@ -1307,9 +1308,9 @@ const zs = {
|
|
|
1307
1308
|
}
|
|
1308
1309
|
};
|
|
1309
1310
|
}), Qs = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
1310
|
-
t.pattern ?? (t.pattern = os),
|
|
1311
|
+
t.pattern ?? (t.pattern = os), S.init(e, t);
|
|
1311
1312
|
}), Bs = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
1312
|
-
t.pattern ?? (t.pattern = ss),
|
|
1313
|
+
t.pattern ?? (t.pattern = ss), S.init(e, t), e._zod.check = (r) => {
|
|
1313
1314
|
const [n, o] = r.value.split("/");
|
|
1314
1315
|
try {
|
|
1315
1316
|
if (!o)
|
|
@@ -1331,7 +1332,7 @@ const zs = {
|
|
|
1331
1332
|
}
|
|
1332
1333
|
};
|
|
1333
1334
|
});
|
|
1334
|
-
function
|
|
1335
|
+
function hr(e) {
|
|
1335
1336
|
if (e === "")
|
|
1336
1337
|
return !0;
|
|
1337
1338
|
if (e.length % 4 !== 0)
|
|
@@ -1342,11 +1343,11 @@ function pr(e) {
|
|
|
1342
1343
|
return !1;
|
|
1343
1344
|
}
|
|
1344
1345
|
}
|
|
1345
|
-
const
|
|
1346
|
-
t.pattern ?? (t.pattern = as),
|
|
1346
|
+
const Ks = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
1347
|
+
t.pattern ?? (t.pattern = as), S.init(e, t), e._zod.onattach.push((r) => {
|
|
1347
1348
|
r._zod.bag.contentEncoding = "base64";
|
|
1348
1349
|
}), e._zod.check = (r) => {
|
|
1349
|
-
|
|
1350
|
+
hr(r.value) || r.issues.push({
|
|
1350
1351
|
code: "invalid_format",
|
|
1351
1352
|
format: "base64",
|
|
1352
1353
|
input: r.value,
|
|
@@ -1355,17 +1356,17 @@ const Hs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
1355
1356
|
});
|
|
1356
1357
|
};
|
|
1357
1358
|
});
|
|
1358
|
-
function
|
|
1359
|
-
if (!
|
|
1359
|
+
function Hs(e) {
|
|
1360
|
+
if (!lr.test(e))
|
|
1360
1361
|
return !1;
|
|
1361
1362
|
const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1362
|
-
return
|
|
1363
|
+
return hr(r);
|
|
1363
1364
|
}
|
|
1364
1365
|
const Ws = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
1365
|
-
t.pattern ?? (t.pattern =
|
|
1366
|
+
t.pattern ?? (t.pattern = lr), S.init(e, t), e._zod.onattach.push((r) => {
|
|
1366
1367
|
r._zod.bag.contentEncoding = "base64url";
|
|
1367
1368
|
}), e._zod.check = (r) => {
|
|
1368
|
-
|
|
1369
|
+
Hs(r.value) || r.issues.push({
|
|
1369
1370
|
code: "invalid_format",
|
|
1370
1371
|
format: "base64url",
|
|
1371
1372
|
input: r.value,
|
|
@@ -1374,7 +1375,7 @@ const Ws = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
1374
1375
|
});
|
|
1375
1376
|
};
|
|
1376
1377
|
}), Vs = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
1377
|
-
t.pattern ?? (t.pattern = cs),
|
|
1378
|
+
t.pattern ?? (t.pattern = cs), S.init(e, t);
|
|
1378
1379
|
});
|
|
1379
1380
|
function Ys(e, t = null) {
|
|
1380
1381
|
try {
|
|
@@ -1388,7 +1389,7 @@ function Ys(e, t = null) {
|
|
|
1388
1389
|
}
|
|
1389
1390
|
}
|
|
1390
1391
|
const Gs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
1391
|
-
|
|
1392
|
+
S.init(e, t), e._zod.check = (r) => {
|
|
1392
1393
|
Ys(r.value, t.alg) || r.issues.push({
|
|
1393
1394
|
code: "invalid_format",
|
|
1394
1395
|
format: "jwt",
|
|
@@ -1398,20 +1399,20 @@ const Gs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1398
1399
|
});
|
|
1399
1400
|
};
|
|
1400
1401
|
}), Js = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
1401
|
-
|
|
1402
|
+
T.init(e, t), e._zod.parse = (r) => r;
|
|
1402
1403
|
}), Xs = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
1403
|
-
|
|
1404
|
+
T.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
|
|
1404
1405
|
expected: "never",
|
|
1405
1406
|
code: "invalid_type",
|
|
1406
1407
|
input: r.value,
|
|
1407
1408
|
inst: e
|
|
1408
1409
|
}), r);
|
|
1409
1410
|
});
|
|
1410
|
-
function
|
|
1411
|
+
function lt(e, t, r) {
|
|
1411
1412
|
e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
|
|
1412
1413
|
}
|
|
1413
1414
|
const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
1414
|
-
|
|
1415
|
+
T.init(e, t), e._zod.parse = (r, n) => {
|
|
1415
1416
|
const o = r.value;
|
|
1416
1417
|
if (!Array.isArray(o))
|
|
1417
1418
|
return r.issues.push({
|
|
@@ -1423,11 +1424,11 @@ const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1423
1424
|
r.value = Array(o.length);
|
|
1424
1425
|
const a = [];
|
|
1425
1426
|
for (let i = 0; i < o.length; i++) {
|
|
1426
|
-
const u = o[i],
|
|
1427
|
+
const u = o[i], p = t.element._zod.run({
|
|
1427
1428
|
value: u,
|
|
1428
1429
|
issues: []
|
|
1429
1430
|
}, n);
|
|
1430
|
-
|
|
1431
|
+
p instanceof Promise ? a.push(p.then((f) => lt(f, r, i))) : lt(p, r, i);
|
|
1431
1432
|
}
|
|
1432
1433
|
return a.length ? Promise.all(a).then(() => r) : r;
|
|
1433
1434
|
};
|
|
@@ -1435,29 +1436,29 @@ const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1435
1436
|
function de(e, t, r) {
|
|
1436
1437
|
e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
+
function dt(e, t, r, n) {
|
|
1439
1440
|
e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Qe(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
|
|
1440
1441
|
}
|
|
1441
1442
|
const ta = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1442
|
-
|
|
1443
|
-
const r =
|
|
1444
|
-
const
|
|
1445
|
-
for (const l of
|
|
1446
|
-
if (!(t.shape[l] instanceof
|
|
1443
|
+
T.init(e, t);
|
|
1444
|
+
const r = rr(() => {
|
|
1445
|
+
const h = Object.keys(t.shape);
|
|
1446
|
+
for (const l of h)
|
|
1447
|
+
if (!(t.shape[l] instanceof T))
|
|
1447
1448
|
throw new Error(`Invalid element at key "${l}": expected a Zod schema`);
|
|
1448
|
-
const m =
|
|
1449
|
+
const m = To(t.shape);
|
|
1449
1450
|
return {
|
|
1450
1451
|
shape: t.shape,
|
|
1451
|
-
keys:
|
|
1452
|
-
keySet: new Set(
|
|
1453
|
-
numKeys:
|
|
1452
|
+
keys: h,
|
|
1453
|
+
keySet: new Set(h),
|
|
1454
|
+
numKeys: h.length,
|
|
1454
1455
|
optionalKeys: new Set(m)
|
|
1455
1456
|
};
|
|
1456
1457
|
});
|
|
1457
|
-
|
|
1458
|
-
const
|
|
1459
|
-
for (const l in
|
|
1460
|
-
const g =
|
|
1458
|
+
Z(e._zod, "propValues", () => {
|
|
1459
|
+
const h = t.shape, m = {};
|
|
1460
|
+
for (const l in h) {
|
|
1461
|
+
const g = h[l]._zod;
|
|
1461
1462
|
if (g.values) {
|
|
1462
1463
|
m[l] ?? (m[l] = /* @__PURE__ */ new Set());
|
|
1463
1464
|
for (const w of g.values)
|
|
@@ -1466,99 +1467,99 @@ const ta = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1466
1467
|
}
|
|
1467
1468
|
return m;
|
|
1468
1469
|
});
|
|
1469
|
-
const n = (
|
|
1470
|
+
const n = (h) => {
|
|
1470
1471
|
const m = new $s(["shape", "payload", "ctx"]), { keys: l, optionalKeys: g } = r.value, w = (j) => {
|
|
1471
|
-
const
|
|
1472
|
-
return `shape[${
|
|
1472
|
+
const y = re(j);
|
|
1473
|
+
return `shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`;
|
|
1473
1474
|
};
|
|
1474
1475
|
m.write("const input = payload.value;");
|
|
1475
|
-
const
|
|
1476
|
+
const E = /* @__PURE__ */ Object.create(null);
|
|
1476
1477
|
for (const j of l)
|
|
1477
|
-
|
|
1478
|
+
E[j] = nr(15);
|
|
1478
1479
|
m.write("const newResult = {}");
|
|
1479
1480
|
for (const j of l)
|
|
1480
1481
|
if (g.has(j)) {
|
|
1481
|
-
const
|
|
1482
|
-
m.write(`const ${
|
|
1483
|
-
const
|
|
1482
|
+
const y = E[j];
|
|
1483
|
+
m.write(`const ${y} = ${w(j)};`);
|
|
1484
|
+
const _ = re(j);
|
|
1484
1485
|
m.write(`
|
|
1485
|
-
if (${
|
|
1486
|
-
if (input[${
|
|
1487
|
-
if (${
|
|
1488
|
-
newResult[${
|
|
1486
|
+
if (${y}.issues.length) {
|
|
1487
|
+
if (input[${_}] === undefined) {
|
|
1488
|
+
if (${_} in input) {
|
|
1489
|
+
newResult[${_}] = undefined;
|
|
1489
1490
|
}
|
|
1490
1491
|
} else {
|
|
1491
1492
|
payload.issues = payload.issues.concat(
|
|
1492
|
-
${
|
|
1493
|
+
${y}.issues.map((iss) => ({
|
|
1493
1494
|
...iss,
|
|
1494
|
-
path: iss.path ? [${
|
|
1495
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}],
|
|
1495
1496
|
}))
|
|
1496
1497
|
);
|
|
1497
1498
|
}
|
|
1498
|
-
} else if (${
|
|
1499
|
-
if (${
|
|
1499
|
+
} else if (${y}.value === undefined) {
|
|
1500
|
+
if (${_} in input) newResult[${_}] = undefined;
|
|
1500
1501
|
} else {
|
|
1501
|
-
newResult[${
|
|
1502
|
+
newResult[${_}] = ${y}.value;
|
|
1502
1503
|
}
|
|
1503
1504
|
`);
|
|
1504
1505
|
} else {
|
|
1505
|
-
const
|
|
1506
|
-
m.write(`const ${
|
|
1507
|
-
if (${
|
|
1506
|
+
const y = E[j];
|
|
1507
|
+
m.write(`const ${y} = ${w(j)};`), m.write(`
|
|
1508
|
+
if (${y}.issues.length) payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
1508
1509
|
...iss,
|
|
1509
1510
|
path: iss.path ? [${re(j)}, ...iss.path] : [${re(j)}]
|
|
1510
|
-
})));`), m.write(`newResult[${re(j)}] = ${
|
|
1511
|
+
})));`), m.write(`newResult[${re(j)}] = ${y}.value`);
|
|
1511
1512
|
}
|
|
1512
1513
|
m.write("payload.value = newResult;"), m.write("return payload;");
|
|
1513
|
-
const
|
|
1514
|
-
return (j,
|
|
1514
|
+
const $ = m.compile();
|
|
1515
|
+
return (j, y) => $(h, j, y);
|
|
1515
1516
|
};
|
|
1516
1517
|
let o;
|
|
1517
|
-
const a =
|
|
1518
|
-
let
|
|
1519
|
-
e._zod.parse = (
|
|
1520
|
-
|
|
1521
|
-
const l =
|
|
1518
|
+
const a = Ce, i = !tr.jitless, p = i && Zo.value, { catchall: f } = t;
|
|
1519
|
+
let x;
|
|
1520
|
+
e._zod.parse = (h, m) => {
|
|
1521
|
+
x ?? (x = r.value);
|
|
1522
|
+
const l = h.value;
|
|
1522
1523
|
if (!a(l))
|
|
1523
|
-
return
|
|
1524
|
+
return h.issues.push({
|
|
1524
1525
|
expected: "object",
|
|
1525
1526
|
code: "invalid_type",
|
|
1526
1527
|
input: l,
|
|
1527
1528
|
inst: e
|
|
1528
|
-
}),
|
|
1529
|
+
}), h;
|
|
1529
1530
|
const g = [];
|
|
1530
|
-
if (i &&
|
|
1531
|
-
o || (o = n(t.shape)),
|
|
1531
|
+
if (i && p && m?.async === !1 && m.jitless !== !0)
|
|
1532
|
+
o || (o = n(t.shape)), h = o(h, m);
|
|
1532
1533
|
else {
|
|
1533
|
-
|
|
1534
|
-
const
|
|
1535
|
-
for (const
|
|
1536
|
-
const d =
|
|
1537
|
-
|
|
1534
|
+
h.value = {};
|
|
1535
|
+
const y = x.shape;
|
|
1536
|
+
for (const _ of x.keys) {
|
|
1537
|
+
const d = y[_], k = d._zod.run({ value: l[_], issues: [] }, m), I = d._zod.optin === "optional" && d._zod.optout === "optional";
|
|
1538
|
+
k instanceof Promise ? g.push(k.then((D) => I ? dt(D, h, _, l) : de(D, h, _))) : I ? dt(k, h, _, l) : de(k, h, _);
|
|
1538
1539
|
}
|
|
1539
1540
|
}
|
|
1540
1541
|
if (!f)
|
|
1541
|
-
return g.length ? Promise.all(g).then(() =>
|
|
1542
|
-
const w = [],
|
|
1543
|
-
for (const
|
|
1544
|
-
if (
|
|
1542
|
+
return g.length ? Promise.all(g).then(() => h) : h;
|
|
1543
|
+
const w = [], E = x.keySet, $ = f._zod, j = $.def.type;
|
|
1544
|
+
for (const y of Object.keys(l)) {
|
|
1545
|
+
if (E.has(y))
|
|
1545
1546
|
continue;
|
|
1546
1547
|
if (j === "never") {
|
|
1547
|
-
w.push(
|
|
1548
|
+
w.push(y);
|
|
1548
1549
|
continue;
|
|
1549
1550
|
}
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1551
|
+
const _ = $.run({ value: l[y], issues: [] }, m);
|
|
1552
|
+
_ instanceof Promise ? g.push(_.then((d) => de(d, h, y))) : de(_, h, y);
|
|
1552
1553
|
}
|
|
1553
|
-
return w.length &&
|
|
1554
|
+
return w.length && h.issues.push({
|
|
1554
1555
|
code: "unrecognized_keys",
|
|
1555
1556
|
keys: w,
|
|
1556
1557
|
input: l,
|
|
1557
1558
|
inst: e
|
|
1558
|
-
}), g.length ? Promise.all(g).then(() =>
|
|
1559
|
+
}), g.length ? Promise.all(g).then(() => h) : h;
|
|
1559
1560
|
};
|
|
1560
1561
|
});
|
|
1561
|
-
function
|
|
1562
|
+
function ft(e, t, r, n) {
|
|
1562
1563
|
for (const o of e)
|
|
1563
1564
|
if (o.issues.length === 0)
|
|
1564
1565
|
return t.value = o.value, t;
|
|
@@ -1570,10 +1571,10 @@ function ht(e, t, r, n) {
|
|
|
1570
1571
|
}), t;
|
|
1571
1572
|
}
|
|
1572
1573
|
const ra = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1573
|
-
|
|
1574
|
+
T.init(e, t), Z(e._zod, "values", () => {
|
|
1574
1575
|
if (t.options.every((r) => r._zod.values))
|
|
1575
1576
|
return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
|
|
1576
|
-
}),
|
|
1577
|
+
}), Z(e._zod, "pattern", () => {
|
|
1577
1578
|
if (t.options.every((r) => r._zod.pattern)) {
|
|
1578
1579
|
const r = t.options.map((n) => n._zod.pattern);
|
|
1579
1580
|
return new RegExp(`^(${r.map((n) => Ue(n.source)).join("|")})$`);
|
|
@@ -1594,23 +1595,23 @@ const ra = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
|
1594
1595
|
a.push(u);
|
|
1595
1596
|
}
|
|
1596
1597
|
}
|
|
1597
|
-
return o ? Promise.all(a).then((i) =>
|
|
1598
|
+
return o ? Promise.all(a).then((i) => ft(i, r, e, n)) : ft(a, r, e, n);
|
|
1598
1599
|
};
|
|
1599
1600
|
}), na = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1600
|
-
|
|
1601
|
+
T.init(e, t), e._zod.parse = (r, n) => {
|
|
1601
1602
|
const { value: o } = r, a = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
|
|
1602
|
-
return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([
|
|
1603
|
+
return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([p, f]) => ht(r, p, f)) : ht(r, a, i);
|
|
1603
1604
|
};
|
|
1604
1605
|
});
|
|
1605
|
-
function
|
|
1606
|
+
function Te(e, t) {
|
|
1606
1607
|
if (e === t)
|
|
1607
1608
|
return { valid: !0, data: e };
|
|
1608
1609
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
1609
1610
|
return { valid: !0, data: e };
|
|
1610
|
-
if (
|
|
1611
|
+
if (ct(e) && ct(t)) {
|
|
1611
1612
|
const r = Object.keys(t), n = Object.keys(e).filter((a) => r.indexOf(a) !== -1), o = { ...e, ...t };
|
|
1612
1613
|
for (const a of n) {
|
|
1613
|
-
const i =
|
|
1614
|
+
const i = Te(e[a], t[a]);
|
|
1614
1615
|
if (!i.valid)
|
|
1615
1616
|
return {
|
|
1616
1617
|
valid: !1,
|
|
@@ -1625,7 +1626,7 @@ function Ce(e, t) {
|
|
|
1625
1626
|
return { valid: !1, mergeErrorPath: [] };
|
|
1626
1627
|
const r = [];
|
|
1627
1628
|
for (let n = 0; n < e.length; n++) {
|
|
1628
|
-
const o = e[n], a = t[n], i =
|
|
1629
|
+
const o = e[n], a = t[n], i = Te(o, a);
|
|
1629
1630
|
if (!i.valid)
|
|
1630
1631
|
return {
|
|
1631
1632
|
valid: !1,
|
|
@@ -1637,18 +1638,18 @@ function Ce(e, t) {
|
|
|
1637
1638
|
}
|
|
1638
1639
|
return { valid: !1, mergeErrorPath: [] };
|
|
1639
1640
|
}
|
|
1640
|
-
function
|
|
1641
|
+
function ht(e, t, r) {
|
|
1641
1642
|
if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), ne(e))
|
|
1642
1643
|
return e;
|
|
1643
|
-
const n =
|
|
1644
|
+
const n = Te(t.value, r.value);
|
|
1644
1645
|
if (!n.valid)
|
|
1645
1646
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
|
|
1646
1647
|
return e.value = n.data, e;
|
|
1647
1648
|
}
|
|
1648
1649
|
const oa = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1649
|
-
|
|
1650
|
+
T.init(e, t);
|
|
1650
1651
|
const r = Eo(t.entries);
|
|
1651
|
-
e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) =>
|
|
1652
|
+
e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Co.has(typeof n)).map((n) => typeof n == "string" ? _e(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
|
|
1652
1653
|
const a = n.value;
|
|
1653
1654
|
return e._zod.values.has(a) || n.issues.push({
|
|
1654
1655
|
code: "invalid_value",
|
|
@@ -1658,7 +1659,7 @@ const oa = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1658
1659
|
}), n;
|
|
1659
1660
|
};
|
|
1660
1661
|
}), sa = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1661
|
-
|
|
1662
|
+
T.init(e, t), e._zod.parse = (r, n) => {
|
|
1662
1663
|
const o = t.transform(r.value, r);
|
|
1663
1664
|
if (n.async)
|
|
1664
1665
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
|
|
@@ -1667,38 +1668,38 @@ const oa = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1667
1668
|
return r.value = o, r;
|
|
1668
1669
|
};
|
|
1669
1670
|
}), aa = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1670
|
-
|
|
1671
|
+
T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
|
|
1671
1672
|
const r = t.innerType._zod.pattern;
|
|
1672
1673
|
return r ? new RegExp(`^(${Ue(r.source)})?$`) : void 0;
|
|
1673
1674
|
}), e._zod.parse = (r, n) => r.value === void 0 ? r : t.innerType._zod.run(r, n);
|
|
1674
1675
|
}), ia = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1675
|
-
|
|
1676
|
+
T.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "pattern", () => {
|
|
1676
1677
|
const r = t.innerType._zod.pattern;
|
|
1677
1678
|
return r ? new RegExp(`^(${Ue(r.source)}|null)$`) : void 0;
|
|
1678
|
-
}),
|
|
1679
|
+
}), Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
|
|
1679
1680
|
}), ca = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1680
|
-
|
|
1681
|
+
T.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1681
1682
|
if (r.value === void 0)
|
|
1682
1683
|
return r.value = t.defaultValue, r;
|
|
1683
1684
|
const o = t.innerType._zod.run(r, n);
|
|
1684
|
-
return o instanceof Promise ? o.then((a) =>
|
|
1685
|
+
return o instanceof Promise ? o.then((a) => pt(a, t)) : pt(o, t);
|
|
1685
1686
|
};
|
|
1686
1687
|
});
|
|
1687
|
-
function
|
|
1688
|
+
function pt(e, t) {
|
|
1688
1689
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1689
1690
|
}
|
|
1690
1691
|
const ua = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1691
|
-
|
|
1692
|
+
T.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
|
|
1692
1693
|
}), la = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1693
|
-
|
|
1694
|
+
T.init(e, t), Z(e._zod, "values", () => {
|
|
1694
1695
|
const r = t.innerType._zod.values;
|
|
1695
1696
|
return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
|
|
1696
1697
|
}), e._zod.parse = (r, n) => {
|
|
1697
1698
|
const o = t.innerType._zod.run(r, n);
|
|
1698
|
-
return o instanceof Promise ? o.then((a) =>
|
|
1699
|
+
return o instanceof Promise ? o.then((a) => mt(a, e)) : mt(o, e);
|
|
1699
1700
|
};
|
|
1700
1701
|
});
|
|
1701
|
-
function
|
|
1702
|
+
function mt(e, t) {
|
|
1702
1703
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1703
1704
|
code: "invalid_type",
|
|
1704
1705
|
expected: "nonoptional",
|
|
@@ -1707,7 +1708,7 @@ function gt(e, t) {
|
|
|
1707
1708
|
}), e;
|
|
1708
1709
|
}
|
|
1709
1710
|
const da = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1710
|
-
|
|
1711
|
+
T.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1711
1712
|
const o = t.innerType._zod.run(r, n);
|
|
1712
1713
|
return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
|
|
1713
1714
|
...r,
|
|
@@ -1724,32 +1725,32 @@ const da = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1724
1725
|
}), r.issues = []), r);
|
|
1725
1726
|
};
|
|
1726
1727
|
}), fa = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1727
|
-
|
|
1728
|
+
T.init(e, t), Z(e._zod, "values", () => t.in._zod.values), Z(e._zod, "optin", () => t.in._zod.optin), Z(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
|
|
1728
1729
|
const o = t.in._zod.run(r, n);
|
|
1729
|
-
return o instanceof Promise ? o.then((a) =>
|
|
1730
|
+
return o instanceof Promise ? o.then((a) => gt(a, t, n)) : gt(o, t, n);
|
|
1730
1731
|
};
|
|
1731
1732
|
});
|
|
1732
|
-
function
|
|
1733
|
+
function gt(e, t, r) {
|
|
1733
1734
|
return ne(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
|
|
1734
1735
|
}
|
|
1735
1736
|
const ha = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1736
|
-
|
|
1737
|
+
T.init(e, t), Z(e._zod, "propValues", () => t.innerType._zod.propValues), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
|
|
1737
1738
|
const o = t.innerType._zod.run(r, n);
|
|
1738
|
-
return o instanceof Promise ? o.then(
|
|
1739
|
+
return o instanceof Promise ? o.then(vt) : vt(o);
|
|
1739
1740
|
};
|
|
1740
1741
|
});
|
|
1741
|
-
function
|
|
1742
|
+
function vt(e) {
|
|
1742
1743
|
return e.value = Object.freeze(e.value), e;
|
|
1743
1744
|
}
|
|
1744
1745
|
const pa = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1745
|
-
U.init(e, t),
|
|
1746
|
+
U.init(e, t), T.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
|
|
1746
1747
|
const n = r.value, o = t.fn(n);
|
|
1747
1748
|
if (o instanceof Promise)
|
|
1748
|
-
return o.then((a) =>
|
|
1749
|
-
|
|
1749
|
+
return o.then((a) => yt(a, r, n, e));
|
|
1750
|
+
yt(o, r, n, e);
|
|
1750
1751
|
};
|
|
1751
1752
|
});
|
|
1752
|
-
function
|
|
1753
|
+
function yt(e, t, r, n) {
|
|
1753
1754
|
if (!e) {
|
|
1754
1755
|
const o = {
|
|
1755
1756
|
code: "custom",
|
|
@@ -1799,7 +1800,7 @@ const fe = /* @__PURE__ */ ga();
|
|
|
1799
1800
|
function va(e, t) {
|
|
1800
1801
|
return new e({
|
|
1801
1802
|
type: "string",
|
|
1802
|
-
...
|
|
1803
|
+
...b(t)
|
|
1803
1804
|
});
|
|
1804
1805
|
}
|
|
1805
1806
|
function ya(e, t) {
|
|
@@ -1808,16 +1809,16 @@ function ya(e, t) {
|
|
|
1808
1809
|
format: "email",
|
|
1809
1810
|
check: "string_format",
|
|
1810
1811
|
abort: !1,
|
|
1811
|
-
...
|
|
1812
|
+
...b(t)
|
|
1812
1813
|
});
|
|
1813
1814
|
}
|
|
1814
|
-
function
|
|
1815
|
+
function xt(e, t) {
|
|
1815
1816
|
return new e({
|
|
1816
1817
|
type: "string",
|
|
1817
1818
|
format: "guid",
|
|
1818
1819
|
check: "string_format",
|
|
1819
1820
|
abort: !1,
|
|
1820
|
-
...
|
|
1821
|
+
...b(t)
|
|
1821
1822
|
});
|
|
1822
1823
|
}
|
|
1823
1824
|
function xa(e, t) {
|
|
@@ -1826,7 +1827,7 @@ function xa(e, t) {
|
|
|
1826
1827
|
format: "uuid",
|
|
1827
1828
|
check: "string_format",
|
|
1828
1829
|
abort: !1,
|
|
1829
|
-
...
|
|
1830
|
+
...b(t)
|
|
1830
1831
|
});
|
|
1831
1832
|
}
|
|
1832
1833
|
function _a(e, t) {
|
|
@@ -1836,7 +1837,7 @@ function _a(e, t) {
|
|
|
1836
1837
|
check: "string_format",
|
|
1837
1838
|
abort: !1,
|
|
1838
1839
|
version: "v4",
|
|
1839
|
-
...
|
|
1840
|
+
...b(t)
|
|
1840
1841
|
});
|
|
1841
1842
|
}
|
|
1842
1843
|
function ba(e, t) {
|
|
@@ -1846,7 +1847,7 @@ function ba(e, t) {
|
|
|
1846
1847
|
check: "string_format",
|
|
1847
1848
|
abort: !1,
|
|
1848
1849
|
version: "v6",
|
|
1849
|
-
...
|
|
1850
|
+
...b(t)
|
|
1850
1851
|
});
|
|
1851
1852
|
}
|
|
1852
1853
|
function wa(e, t) {
|
|
@@ -1856,7 +1857,7 @@ function wa(e, t) {
|
|
|
1856
1857
|
check: "string_format",
|
|
1857
1858
|
abort: !1,
|
|
1858
1859
|
version: "v7",
|
|
1859
|
-
...
|
|
1860
|
+
...b(t)
|
|
1860
1861
|
});
|
|
1861
1862
|
}
|
|
1862
1863
|
function ja(e, t) {
|
|
@@ -1865,7 +1866,7 @@ function ja(e, t) {
|
|
|
1865
1866
|
format: "url",
|
|
1866
1867
|
check: "string_format",
|
|
1867
1868
|
abort: !1,
|
|
1868
|
-
...
|
|
1869
|
+
...b(t)
|
|
1869
1870
|
});
|
|
1870
1871
|
}
|
|
1871
1872
|
function ka(e, t) {
|
|
@@ -1874,7 +1875,7 @@ function ka(e, t) {
|
|
|
1874
1875
|
format: "emoji",
|
|
1875
1876
|
check: "string_format",
|
|
1876
1877
|
abort: !1,
|
|
1877
|
-
...
|
|
1878
|
+
...b(t)
|
|
1878
1879
|
});
|
|
1879
1880
|
}
|
|
1880
1881
|
function $a(e, t) {
|
|
@@ -1883,7 +1884,7 @@ function $a(e, t) {
|
|
|
1883
1884
|
format: "nanoid",
|
|
1884
1885
|
check: "string_format",
|
|
1885
1886
|
abort: !1,
|
|
1886
|
-
...
|
|
1887
|
+
...b(t)
|
|
1887
1888
|
});
|
|
1888
1889
|
}
|
|
1889
1890
|
function za(e, t) {
|
|
@@ -1892,7 +1893,7 @@ function za(e, t) {
|
|
|
1892
1893
|
format: "cuid",
|
|
1893
1894
|
check: "string_format",
|
|
1894
1895
|
abort: !1,
|
|
1895
|
-
...
|
|
1896
|
+
...b(t)
|
|
1896
1897
|
});
|
|
1897
1898
|
}
|
|
1898
1899
|
function Pa(e, t) {
|
|
@@ -1901,7 +1902,7 @@ function Pa(e, t) {
|
|
|
1901
1902
|
format: "cuid2",
|
|
1902
1903
|
check: "string_format",
|
|
1903
1904
|
abort: !1,
|
|
1904
|
-
...
|
|
1905
|
+
...b(t)
|
|
1905
1906
|
});
|
|
1906
1907
|
}
|
|
1907
1908
|
function Ea(e, t) {
|
|
@@ -1910,7 +1911,7 @@ function Ea(e, t) {
|
|
|
1910
1911
|
format: "ulid",
|
|
1911
1912
|
check: "string_format",
|
|
1912
1913
|
abort: !1,
|
|
1913
|
-
...
|
|
1914
|
+
...b(t)
|
|
1914
1915
|
});
|
|
1915
1916
|
}
|
|
1916
1917
|
function Sa(e, t) {
|
|
@@ -1919,7 +1920,7 @@ function Sa(e, t) {
|
|
|
1919
1920
|
format: "xid",
|
|
1920
1921
|
check: "string_format",
|
|
1921
1922
|
abort: !1,
|
|
1922
|
-
...
|
|
1923
|
+
...b(t)
|
|
1923
1924
|
});
|
|
1924
1925
|
}
|
|
1925
1926
|
function Za(e, t) {
|
|
@@ -1928,43 +1929,43 @@ function Za(e, t) {
|
|
|
1928
1929
|
format: "ksuid",
|
|
1929
1930
|
check: "string_format",
|
|
1930
1931
|
abort: !1,
|
|
1931
|
-
...
|
|
1932
|
+
...b(t)
|
|
1932
1933
|
});
|
|
1933
1934
|
}
|
|
1934
|
-
function
|
|
1935
|
+
function Ca(e, t) {
|
|
1935
1936
|
return new e({
|
|
1936
1937
|
type: "string",
|
|
1937
1938
|
format: "ipv4",
|
|
1938
1939
|
check: "string_format",
|
|
1939
1940
|
abort: !1,
|
|
1940
|
-
...
|
|
1941
|
+
...b(t)
|
|
1941
1942
|
});
|
|
1942
1943
|
}
|
|
1943
|
-
function
|
|
1944
|
+
function Ta(e, t) {
|
|
1944
1945
|
return new e({
|
|
1945
1946
|
type: "string",
|
|
1946
1947
|
format: "ipv6",
|
|
1947
1948
|
check: "string_format",
|
|
1948
1949
|
abort: !1,
|
|
1949
|
-
...
|
|
1950
|
+
...b(t)
|
|
1950
1951
|
});
|
|
1951
1952
|
}
|
|
1952
|
-
function
|
|
1953
|
+
function Na(e, t) {
|
|
1953
1954
|
return new e({
|
|
1954
1955
|
type: "string",
|
|
1955
1956
|
format: "cidrv4",
|
|
1956
1957
|
check: "string_format",
|
|
1957
1958
|
abort: !1,
|
|
1958
|
-
...
|
|
1959
|
+
...b(t)
|
|
1959
1960
|
});
|
|
1960
1961
|
}
|
|
1961
|
-
function
|
|
1962
|
+
function Oa(e, t) {
|
|
1962
1963
|
return new e({
|
|
1963
1964
|
type: "string",
|
|
1964
1965
|
format: "cidrv6",
|
|
1965
1966
|
check: "string_format",
|
|
1966
1967
|
abort: !1,
|
|
1967
|
-
...
|
|
1968
|
+
...b(t)
|
|
1968
1969
|
});
|
|
1969
1970
|
}
|
|
1970
1971
|
function Aa(e, t) {
|
|
@@ -1973,7 +1974,7 @@ function Aa(e, t) {
|
|
|
1973
1974
|
format: "base64",
|
|
1974
1975
|
check: "string_format",
|
|
1975
1976
|
abort: !1,
|
|
1976
|
-
...
|
|
1977
|
+
...b(t)
|
|
1977
1978
|
});
|
|
1978
1979
|
}
|
|
1979
1980
|
function Ia(e, t) {
|
|
@@ -1982,7 +1983,7 @@ function Ia(e, t) {
|
|
|
1982
1983
|
format: "base64url",
|
|
1983
1984
|
check: "string_format",
|
|
1984
1985
|
abort: !1,
|
|
1985
|
-
...
|
|
1986
|
+
...b(t)
|
|
1986
1987
|
});
|
|
1987
1988
|
}
|
|
1988
1989
|
function Ra(e, t) {
|
|
@@ -1991,7 +1992,7 @@ function Ra(e, t) {
|
|
|
1991
1992
|
format: "e164",
|
|
1992
1993
|
check: "string_format",
|
|
1993
1994
|
abort: !1,
|
|
1994
|
-
...
|
|
1995
|
+
...b(t)
|
|
1995
1996
|
});
|
|
1996
1997
|
}
|
|
1997
1998
|
function Da(e, t) {
|
|
@@ -2000,7 +2001,7 @@ function Da(e, t) {
|
|
|
2000
2001
|
format: "jwt",
|
|
2001
2002
|
check: "string_format",
|
|
2002
2003
|
abort: !1,
|
|
2003
|
-
...
|
|
2004
|
+
...b(t)
|
|
2004
2005
|
});
|
|
2005
2006
|
}
|
|
2006
2007
|
function Ma(e, t) {
|
|
@@ -2011,7 +2012,7 @@ function Ma(e, t) {
|
|
|
2011
2012
|
offset: !1,
|
|
2012
2013
|
local: !1,
|
|
2013
2014
|
precision: null,
|
|
2014
|
-
...
|
|
2015
|
+
...b(t)
|
|
2015
2016
|
});
|
|
2016
2017
|
}
|
|
2017
2018
|
function Fa(e, t) {
|
|
@@ -2019,7 +2020,7 @@ function Fa(e, t) {
|
|
|
2019
2020
|
type: "string",
|
|
2020
2021
|
format: "date",
|
|
2021
2022
|
check: "string_format",
|
|
2022
|
-
...
|
|
2023
|
+
...b(t)
|
|
2023
2024
|
});
|
|
2024
2025
|
}
|
|
2025
2026
|
function qa(e, t) {
|
|
@@ -2028,7 +2029,7 @@ function qa(e, t) {
|
|
|
2028
2029
|
format: "time",
|
|
2029
2030
|
check: "string_format",
|
|
2030
2031
|
precision: null,
|
|
2031
|
-
...
|
|
2032
|
+
...b(t)
|
|
2032
2033
|
});
|
|
2033
2034
|
}
|
|
2034
2035
|
function Ua(e, t) {
|
|
@@ -2036,7 +2037,7 @@ function Ua(e, t) {
|
|
|
2036
2037
|
type: "string",
|
|
2037
2038
|
format: "duration",
|
|
2038
2039
|
check: "string_format",
|
|
2039
|
-
...
|
|
2040
|
+
...b(t)
|
|
2040
2041
|
});
|
|
2041
2042
|
}
|
|
2042
2043
|
function La(e) {
|
|
@@ -2047,27 +2048,27 @@ function La(e) {
|
|
|
2047
2048
|
function Qa(e, t) {
|
|
2048
2049
|
return new e({
|
|
2049
2050
|
type: "never",
|
|
2050
|
-
...
|
|
2051
|
+
...b(t)
|
|
2051
2052
|
});
|
|
2052
2053
|
}
|
|
2053
|
-
function
|
|
2054
|
+
function pr(e, t) {
|
|
2054
2055
|
return new ms({
|
|
2055
2056
|
check: "max_length",
|
|
2056
|
-
...
|
|
2057
|
+
...b(t),
|
|
2057
2058
|
maximum: e
|
|
2058
2059
|
});
|
|
2059
2060
|
}
|
|
2060
2061
|
function ve(e, t) {
|
|
2061
2062
|
return new gs({
|
|
2062
2063
|
check: "min_length",
|
|
2063
|
-
...
|
|
2064
|
+
...b(t),
|
|
2064
2065
|
minimum: e
|
|
2065
2066
|
});
|
|
2066
2067
|
}
|
|
2067
|
-
function
|
|
2068
|
+
function mr(e, t) {
|
|
2068
2069
|
return new vs({
|
|
2069
2070
|
check: "length_equals",
|
|
2070
|
-
...
|
|
2071
|
+
...b(t),
|
|
2071
2072
|
length: e
|
|
2072
2073
|
});
|
|
2073
2074
|
}
|
|
@@ -2075,29 +2076,29 @@ function Ba(e, t) {
|
|
|
2075
2076
|
return new ys({
|
|
2076
2077
|
check: "string_format",
|
|
2077
2078
|
format: "regex",
|
|
2078
|
-
...
|
|
2079
|
+
...b(t),
|
|
2079
2080
|
pattern: e
|
|
2080
2081
|
});
|
|
2081
2082
|
}
|
|
2082
|
-
function
|
|
2083
|
+
function Ka(e) {
|
|
2083
2084
|
return new xs({
|
|
2084
2085
|
check: "string_format",
|
|
2085
2086
|
format: "lowercase",
|
|
2086
|
-
...
|
|
2087
|
+
...b(e)
|
|
2087
2088
|
});
|
|
2088
2089
|
}
|
|
2089
|
-
function
|
|
2090
|
+
function Ha(e) {
|
|
2090
2091
|
return new _s({
|
|
2091
2092
|
check: "string_format",
|
|
2092
2093
|
format: "uppercase",
|
|
2093
|
-
...
|
|
2094
|
+
...b(e)
|
|
2094
2095
|
});
|
|
2095
2096
|
}
|
|
2096
2097
|
function Wa(e, t) {
|
|
2097
2098
|
return new bs({
|
|
2098
2099
|
check: "string_format",
|
|
2099
2100
|
format: "includes",
|
|
2100
|
-
...
|
|
2101
|
+
...b(t),
|
|
2101
2102
|
includes: e
|
|
2102
2103
|
});
|
|
2103
2104
|
}
|
|
@@ -2105,7 +2106,7 @@ function Va(e, t) {
|
|
|
2105
2106
|
return new ws({
|
|
2106
2107
|
check: "string_format",
|
|
2107
2108
|
format: "starts_with",
|
|
2108
|
-
...
|
|
2109
|
+
...b(t),
|
|
2109
2110
|
prefix: e
|
|
2110
2111
|
});
|
|
2111
2112
|
}
|
|
@@ -2113,7 +2114,7 @@ function Ya(e, t) {
|
|
|
2113
2114
|
return new js({
|
|
2114
2115
|
check: "string_format",
|
|
2115
2116
|
format: "ends_with",
|
|
2116
|
-
...
|
|
2117
|
+
...b(t),
|
|
2117
2118
|
suffix: e
|
|
2118
2119
|
});
|
|
2119
2120
|
}
|
|
@@ -2142,7 +2143,7 @@ function ti(e, t, r) {
|
|
|
2142
2143
|
// get element() {
|
|
2143
2144
|
// return element;
|
|
2144
2145
|
// },
|
|
2145
|
-
...
|
|
2146
|
+
...b(r)
|
|
2146
2147
|
});
|
|
2147
2148
|
}
|
|
2148
2149
|
function ri(e, t, r) {
|
|
@@ -2150,35 +2151,35 @@ function ri(e, t, r) {
|
|
|
2150
2151
|
type: "custom",
|
|
2151
2152
|
check: "custom",
|
|
2152
2153
|
fn: t,
|
|
2153
|
-
...
|
|
2154
|
+
...b(r)
|
|
2154
2155
|
});
|
|
2155
2156
|
}
|
|
2156
2157
|
const ni = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
2157
|
-
Ds.init(e, t),
|
|
2158
|
+
Ds.init(e, t), C.init(e, t);
|
|
2158
2159
|
});
|
|
2159
2160
|
function oi(e) {
|
|
2160
2161
|
return Ma(ni, e);
|
|
2161
2162
|
}
|
|
2162
2163
|
const si = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2163
|
-
Ms.init(e, t),
|
|
2164
|
+
Ms.init(e, t), C.init(e, t);
|
|
2164
2165
|
});
|
|
2165
2166
|
function ai(e) {
|
|
2166
2167
|
return Fa(si, e);
|
|
2167
2168
|
}
|
|
2168
2169
|
const ii = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
2169
|
-
Fs.init(e, t),
|
|
2170
|
+
Fs.init(e, t), C.init(e, t);
|
|
2170
2171
|
});
|
|
2171
2172
|
function ci(e) {
|
|
2172
2173
|
return qa(ii, e);
|
|
2173
2174
|
}
|
|
2174
2175
|
const ui = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
2175
|
-
qs.init(e, t),
|
|
2176
|
+
qs.init(e, t), C.init(e, t);
|
|
2176
2177
|
});
|
|
2177
2178
|
function li(e) {
|
|
2178
2179
|
return Ua(ui, e);
|
|
2179
2180
|
}
|
|
2180
2181
|
const di = (e, t) => {
|
|
2181
|
-
|
|
2182
|
+
ar.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2182
2183
|
format: {
|
|
2183
2184
|
value: (r) => Fo(e, r)
|
|
2184
2185
|
// enumerable: false,
|
|
@@ -2204,7 +2205,7 @@ const di = (e, t) => {
|
|
|
2204
2205
|
});
|
|
2205
2206
|
}, we = c("ZodError", di, {
|
|
2206
2207
|
Parent: Error
|
|
2207
|
-
}), fi = /* @__PURE__ */ qo(we), hi = /* @__PURE__ */ Uo(we), pi = /* @__PURE__ */
|
|
2208
|
+
}), fi = /* @__PURE__ */ qo(we), hi = /* @__PURE__ */ Uo(we), pi = /* @__PURE__ */ cr(we), mi = /* @__PURE__ */ ur(we), N = /* @__PURE__ */ c("ZodType", (e, t) => (T.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
|
|
2208
2209
|
{
|
|
2209
2210
|
...t,
|
|
2210
2211
|
checks: [
|
|
@@ -2213,7 +2214,7 @@ const di = (e, t) => {
|
|
|
2213
2214
|
]
|
|
2214
2215
|
}
|
|
2215
2216
|
// { parent: true }
|
|
2216
|
-
), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => fi(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => pi(e, r, n), e.parseAsync = async (r, n) => hi(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => mi(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(ac(r, n)), e.superRefine = (r) => e.check(ic(r)), e.overwrite = (r) => e.check(ie(r)), e.optional = () =>
|
|
2217
|
+
), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => fi(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => pi(e, r, n), e.parseAsync = async (r, n) => hi(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => mi(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(ac(r, n)), e.superRefine = (r) => e.check(ic(r)), e.overwrite = (r) => e.check(ie(r)), e.optional = () => jt(e), e.nullable = () => kt(e), e.nullish = () => jt(kt(e)), e.nonoptional = (r) => Ji(e, r), e.array = () => Di(e), e.or = (r) => Ui([e, r]), e.and = (r) => Qi(e, r), e.transform = (r) => $t(e, Ki(r)), e.default = (r) => Vi(e, r), e.prefault = (r) => Gi(e, r), e.catch = (r) => ec(e, r), e.pipe = (r) => $t(e, r), e.readonly = () => nc(e), e.describe = (r) => {
|
|
2217
2218
|
const n = e.clone();
|
|
2218
2219
|
return fe.add(n, { description: r }), n;
|
|
2219
2220
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2226,76 +2227,76 @@ const di = (e, t) => {
|
|
|
2226
2227
|
return fe.get(e);
|
|
2227
2228
|
const n = e.clone();
|
|
2228
2229
|
return fe.add(n, r[0]), n;
|
|
2229
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2230
|
-
|
|
2230
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), gr = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
2231
|
+
Ke.init(e, t), N.init(e, t);
|
|
2231
2232
|
const r = e._zod.bag;
|
|
2232
|
-
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Ba(...n)), e.includes = (...n) => e.check(Wa(...n)), e.startsWith = (...n) => e.check(Va(...n)), e.endsWith = (...n) => e.check(Ya(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(
|
|
2233
|
+
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Ba(...n)), e.includes = (...n) => e.check(Wa(...n)), e.startsWith = (...n) => e.check(Va(...n)), e.endsWith = (...n) => e.check(Ya(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(pr(...n)), e.length = (...n) => e.check(mr(...n)), e.nonempty = (...n) => e.check(ve(1, ...n)), e.lowercase = (n) => e.check(Ka(n)), e.uppercase = (n) => e.check(Ha(n)), e.trim = () => e.check(Ja()), e.normalize = (...n) => e.check(Ga(...n)), e.toLowerCase = () => e.check(Xa()), e.toUpperCase = () => e.check(ei());
|
|
2233
2234
|
}), gi = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
2234
|
-
|
|
2235
|
+
Ke.init(e, t), gr.init(e, t), e.email = (r) => e.check(ya(vi, r)), e.url = (r) => e.check(ja(yi, r)), e.jwt = (r) => e.check(Da(Ni, r)), e.emoji = (r) => e.check(ka(xi, r)), e.guid = (r) => e.check(xt(bt, r)), e.uuid = (r) => e.check(xa(he, r)), e.uuidv4 = (r) => e.check(_a(he, r)), e.uuidv6 = (r) => e.check(ba(he, r)), e.uuidv7 = (r) => e.check(wa(he, r)), e.nanoid = (r) => e.check($a(_i, r)), e.guid = (r) => e.check(xt(bt, r)), e.cuid = (r) => e.check(za(bi, r)), e.cuid2 = (r) => e.check(Pa(wi, r)), e.ulid = (r) => e.check(Ea(ji, r)), e.base64 = (r) => e.check(Aa(Zi, r)), e.base64url = (r) => e.check(Ia(Ci, r)), e.xid = (r) => e.check(Sa(ki, r)), e.ksuid = (r) => e.check(Za($i, r)), e.ipv4 = (r) => e.check(Ca(zi, r)), e.ipv6 = (r) => e.check(Ta(Pi, r)), e.cidrv4 = (r) => e.check(Na(Ei, r)), e.cidrv6 = (r) => e.check(Oa(Si, r)), e.e164 = (r) => e.check(Ra(Ti, r)), e.datetime = (r) => e.check(oi(r)), e.date = (r) => e.check(ai(r)), e.time = (r) => e.check(ci(r)), e.duration = (r) => e.check(li(r));
|
|
2235
2236
|
});
|
|
2236
|
-
function
|
|
2237
|
+
function _t(e) {
|
|
2237
2238
|
return va(gi, e);
|
|
2238
2239
|
}
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2240
|
+
const C = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
2241
|
+
S.init(e, t), gr.init(e, t);
|
|
2241
2242
|
}), vi = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
2242
|
-
Ss.init(e, t),
|
|
2243
|
-
}),
|
|
2244
|
-
Ps.init(e, t),
|
|
2243
|
+
Ss.init(e, t), C.init(e, t);
|
|
2244
|
+
}), bt = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
2245
|
+
Ps.init(e, t), C.init(e, t);
|
|
2245
2246
|
}), he = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2246
|
-
Es.init(e, t),
|
|
2247
|
+
Es.init(e, t), C.init(e, t);
|
|
2247
2248
|
}), yi = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2248
|
-
Zs.init(e, t),
|
|
2249
|
+
Zs.init(e, t), C.init(e, t);
|
|
2249
2250
|
}), xi = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2250
|
-
|
|
2251
|
+
Cs.init(e, t), C.init(e, t);
|
|
2251
2252
|
}), _i = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2252
|
-
|
|
2253
|
+
Ts.init(e, t), C.init(e, t);
|
|
2253
2254
|
}), bi = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2254
|
-
|
|
2255
|
+
Ns.init(e, t), C.init(e, t);
|
|
2255
2256
|
}), wi = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2256
|
-
|
|
2257
|
+
Os.init(e, t), C.init(e, t);
|
|
2257
2258
|
}), ji = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2258
|
-
As.init(e, t),
|
|
2259
|
+
As.init(e, t), C.init(e, t);
|
|
2259
2260
|
}), ki = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2260
|
-
Is.init(e, t),
|
|
2261
|
+
Is.init(e, t), C.init(e, t);
|
|
2261
2262
|
}), $i = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
2262
|
-
Rs.init(e, t),
|
|
2263
|
+
Rs.init(e, t), C.init(e, t);
|
|
2263
2264
|
}), zi = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
2264
|
-
Us.init(e, t),
|
|
2265
|
+
Us.init(e, t), C.init(e, t);
|
|
2265
2266
|
}), Pi = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
2266
|
-
Ls.init(e, t),
|
|
2267
|
+
Ls.init(e, t), C.init(e, t);
|
|
2267
2268
|
}), Ei = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
2268
|
-
Qs.init(e, t),
|
|
2269
|
+
Qs.init(e, t), C.init(e, t);
|
|
2269
2270
|
}), Si = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2270
|
-
Bs.init(e, t),
|
|
2271
|
+
Bs.init(e, t), C.init(e, t);
|
|
2271
2272
|
}), Zi = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
2272
|
-
|
|
2273
|
-
}),
|
|
2274
|
-
Ws.init(e, t),
|
|
2275
|
-
}),
|
|
2276
|
-
Vs.init(e, t),
|
|
2277
|
-
}),
|
|
2278
|
-
Gs.init(e, t),
|
|
2279
|
-
}),
|
|
2280
|
-
Js.init(e, t),
|
|
2273
|
+
Ks.init(e, t), C.init(e, t);
|
|
2274
|
+
}), Ci = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2275
|
+
Ws.init(e, t), C.init(e, t);
|
|
2276
|
+
}), Ti = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
2277
|
+
Vs.init(e, t), C.init(e, t);
|
|
2278
|
+
}), Ni = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
2279
|
+
Gs.init(e, t), C.init(e, t);
|
|
2280
|
+
}), Oi = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
2281
|
+
Js.init(e, t), N.init(e, t);
|
|
2281
2282
|
});
|
|
2282
|
-
function
|
|
2283
|
-
return La(
|
|
2283
|
+
function wt() {
|
|
2284
|
+
return La(Oi);
|
|
2284
2285
|
}
|
|
2285
2286
|
const Ai = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2286
|
-
Xs.init(e, t),
|
|
2287
|
+
Xs.init(e, t), N.init(e, t);
|
|
2287
2288
|
});
|
|
2288
2289
|
function Ii(e) {
|
|
2289
2290
|
return Qa(Ai, e);
|
|
2290
2291
|
}
|
|
2291
2292
|
const Ri = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
2292
|
-
ea.init(e, t),
|
|
2293
|
+
ea.init(e, t), N.init(e, t), e.element = t.element, e.min = (r, n) => e.check(ve(r, n)), e.nonempty = (r) => e.check(ve(1, r)), e.max = (r, n) => e.check(pr(r, n)), e.length = (r, n) => e.check(mr(r, n)), e.unwrap = () => e.element;
|
|
2293
2294
|
});
|
|
2294
2295
|
function Di(e, t) {
|
|
2295
2296
|
return ti(Ri, e, t);
|
|
2296
2297
|
}
|
|
2297
2298
|
const Mi = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
2298
|
-
ta.init(e, t),
|
|
2299
|
+
ta.init(e, t), N.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => vr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: wt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: wt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ii() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ao(e, r), e.merge = (r) => Io(e, r), e.pick = (r) => No(e, r), e.omit = (r) => Oo(e, r), e.partial = (...r) => Ro(yr, e, r[0]), e.required = (...r) => Do(xr, e, r[0]);
|
|
2299
2300
|
});
|
|
2300
2301
|
function Fi(e, t) {
|
|
2301
2302
|
const r = {
|
|
@@ -2303,22 +2304,22 @@ function Fi(e, t) {
|
|
|
2303
2304
|
get shape() {
|
|
2304
2305
|
return Le(this, "shape", { ...e }), this.shape;
|
|
2305
2306
|
},
|
|
2306
|
-
...
|
|
2307
|
+
...b(t)
|
|
2307
2308
|
};
|
|
2308
2309
|
return new Mi(r);
|
|
2309
2310
|
}
|
|
2310
2311
|
const qi = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
2311
|
-
ra.init(e, t),
|
|
2312
|
+
ra.init(e, t), N.init(e, t), e.options = t.options;
|
|
2312
2313
|
});
|
|
2313
2314
|
function Ui(e, t) {
|
|
2314
2315
|
return new qi({
|
|
2315
2316
|
type: "union",
|
|
2316
2317
|
options: e,
|
|
2317
|
-
...
|
|
2318
|
+
...b(t)
|
|
2318
2319
|
});
|
|
2319
2320
|
}
|
|
2320
2321
|
const Li = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2321
|
-
na.init(e, t),
|
|
2322
|
+
na.init(e, t), N.init(e, t);
|
|
2322
2323
|
});
|
|
2323
2324
|
function Qi(e, t) {
|
|
2324
2325
|
return new Li({
|
|
@@ -2327,8 +2328,8 @@ function Qi(e, t) {
|
|
|
2327
2328
|
right: t
|
|
2328
2329
|
});
|
|
2329
2330
|
}
|
|
2330
|
-
const
|
|
2331
|
-
oa.init(e, t),
|
|
2331
|
+
const Ne = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
2332
|
+
oa.init(e, t), N.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2332
2333
|
const r = new Set(Object.keys(t.entries));
|
|
2333
2334
|
e.extract = (n, o) => {
|
|
2334
2335
|
const a = {};
|
|
@@ -2337,10 +2338,10 @@ const Oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2337
2338
|
a[i] = t.entries[i];
|
|
2338
2339
|
else
|
|
2339
2340
|
throw new Error(`Key ${i} not found in enum`);
|
|
2340
|
-
return new
|
|
2341
|
+
return new Ne({
|
|
2341
2342
|
...t,
|
|
2342
2343
|
checks: [],
|
|
2343
|
-
...
|
|
2344
|
+
...b(o),
|
|
2344
2345
|
entries: a
|
|
2345
2346
|
});
|
|
2346
2347
|
}, e.exclude = (n, o) => {
|
|
@@ -2350,24 +2351,24 @@ const Oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2350
2351
|
delete a[i];
|
|
2351
2352
|
else
|
|
2352
2353
|
throw new Error(`Key ${i} not found in enum`);
|
|
2353
|
-
return new
|
|
2354
|
+
return new Ne({
|
|
2354
2355
|
...t,
|
|
2355
2356
|
checks: [],
|
|
2356
|
-
...
|
|
2357
|
+
...b(o),
|
|
2357
2358
|
entries: a
|
|
2358
2359
|
});
|
|
2359
2360
|
};
|
|
2360
2361
|
});
|
|
2361
|
-
function
|
|
2362
|
+
function vr(e, t) {
|
|
2362
2363
|
const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
|
|
2363
|
-
return new
|
|
2364
|
+
return new Ne({
|
|
2364
2365
|
type: "enum",
|
|
2365
2366
|
entries: r,
|
|
2366
|
-
...
|
|
2367
|
+
...b(t)
|
|
2367
2368
|
});
|
|
2368
2369
|
}
|
|
2369
2370
|
const Bi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
2370
|
-
sa.init(e, t),
|
|
2371
|
+
sa.init(e, t), N.init(e, t), e._zod.parse = (r, n) => {
|
|
2371
2372
|
r.addIssue = (a) => {
|
|
2372
2373
|
if (typeof a == "string")
|
|
2373
2374
|
r.issues.push(ae(a, r.value, t));
|
|
@@ -2380,32 +2381,32 @@ const Bi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
|
2380
2381
|
return o instanceof Promise ? o.then((a) => (r.value = a, r)) : (r.value = o, r);
|
|
2381
2382
|
};
|
|
2382
2383
|
});
|
|
2383
|
-
function
|
|
2384
|
+
function Ki(e) {
|
|
2384
2385
|
return new Bi({
|
|
2385
2386
|
type: "transform",
|
|
2386
2387
|
transform: e
|
|
2387
2388
|
});
|
|
2388
2389
|
}
|
|
2389
|
-
const
|
|
2390
|
-
aa.init(e, t),
|
|
2390
|
+
const yr = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
2391
|
+
aa.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2391
2392
|
});
|
|
2392
|
-
function
|
|
2393
|
-
return new
|
|
2393
|
+
function jt(e) {
|
|
2394
|
+
return new yr({
|
|
2394
2395
|
type: "optional",
|
|
2395
2396
|
innerType: e
|
|
2396
2397
|
});
|
|
2397
2398
|
}
|
|
2398
|
-
const
|
|
2399
|
-
ia.init(e, t),
|
|
2399
|
+
const Hi = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
2400
|
+
ia.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2400
2401
|
});
|
|
2401
|
-
function
|
|
2402
|
-
return new
|
|
2402
|
+
function kt(e) {
|
|
2403
|
+
return new Hi({
|
|
2403
2404
|
type: "nullable",
|
|
2404
2405
|
innerType: e
|
|
2405
2406
|
});
|
|
2406
2407
|
}
|
|
2407
2408
|
const Wi = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2408
|
-
ca.init(e, t),
|
|
2409
|
+
ca.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2409
2410
|
});
|
|
2410
2411
|
function Vi(e, t) {
|
|
2411
2412
|
return new Wi({
|
|
@@ -2417,7 +2418,7 @@ function Vi(e, t) {
|
|
|
2417
2418
|
});
|
|
2418
2419
|
}
|
|
2419
2420
|
const Yi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2420
|
-
ua.init(e, t),
|
|
2421
|
+
ua.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2421
2422
|
});
|
|
2422
2423
|
function Gi(e, t) {
|
|
2423
2424
|
return new Yi({
|
|
@@ -2428,18 +2429,18 @@ function Gi(e, t) {
|
|
|
2428
2429
|
}
|
|
2429
2430
|
});
|
|
2430
2431
|
}
|
|
2431
|
-
const
|
|
2432
|
-
la.init(e, t),
|
|
2432
|
+
const xr = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2433
|
+
la.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2433
2434
|
});
|
|
2434
2435
|
function Ji(e, t) {
|
|
2435
|
-
return new
|
|
2436
|
+
return new xr({
|
|
2436
2437
|
type: "nonoptional",
|
|
2437
2438
|
innerType: e,
|
|
2438
|
-
...
|
|
2439
|
+
...b(t)
|
|
2439
2440
|
});
|
|
2440
2441
|
}
|
|
2441
2442
|
const Xi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2442
|
-
da.init(e, t),
|
|
2443
|
+
da.init(e, t), N.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2443
2444
|
});
|
|
2444
2445
|
function ec(e, t) {
|
|
2445
2446
|
return new Xi({
|
|
@@ -2449,9 +2450,9 @@ function ec(e, t) {
|
|
|
2449
2450
|
});
|
|
2450
2451
|
}
|
|
2451
2452
|
const tc = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2452
|
-
fa.init(e, t),
|
|
2453
|
+
fa.init(e, t), N.init(e, t), e.in = t.in, e.out = t.out;
|
|
2453
2454
|
});
|
|
2454
|
-
function
|
|
2455
|
+
function $t(e, t) {
|
|
2455
2456
|
return new tc({
|
|
2456
2457
|
type: "pipe",
|
|
2457
2458
|
in: e,
|
|
@@ -2460,7 +2461,7 @@ function zt(e, t) {
|
|
|
2460
2461
|
});
|
|
2461
2462
|
}
|
|
2462
2463
|
const rc = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2463
|
-
ha.init(e, t),
|
|
2464
|
+
ha.init(e, t), N.init(e, t);
|
|
2464
2465
|
});
|
|
2465
2466
|
function nc(e) {
|
|
2466
2467
|
return new rc({
|
|
@@ -2469,12 +2470,12 @@ function nc(e) {
|
|
|
2469
2470
|
});
|
|
2470
2471
|
}
|
|
2471
2472
|
const oc = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2472
|
-
pa.init(e, t),
|
|
2473
|
+
pa.init(e, t), N.init(e, t);
|
|
2473
2474
|
});
|
|
2474
2475
|
function sc(e, t) {
|
|
2475
2476
|
const r = new U({
|
|
2476
2477
|
check: "custom",
|
|
2477
|
-
...
|
|
2478
|
+
...b(t)
|
|
2478
2479
|
});
|
|
2479
2480
|
return r._zod.check = e, r;
|
|
2480
2481
|
}
|
|
@@ -2493,9 +2494,9 @@ function ic(e, t) {
|
|
|
2493
2494
|
return r;
|
|
2494
2495
|
}
|
|
2495
2496
|
const cc = Fi({
|
|
2496
|
-
buildId:
|
|
2497
|
-
timestamp:
|
|
2498
|
-
status:
|
|
2497
|
+
buildId: _t(),
|
|
2498
|
+
timestamp: _t(),
|
|
2499
|
+
status: vr(["in-progress", "success", "failed"])
|
|
2499
2500
|
}), uc = ({
|
|
2500
2501
|
buildId: e,
|
|
2501
2502
|
endpoint: t = "/__zuplo/docs"
|
|
@@ -2523,7 +2524,7 @@ const cc = Fi({
|
|
|
2523
2524
|
] }),
|
|
2524
2525
|
/* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
2525
2526
|
/* @__PURE__ */ s.jsx(
|
|
2526
|
-
|
|
2527
|
+
Ht,
|
|
2527
2528
|
{
|
|
2528
2529
|
variant: "outline",
|
|
2529
2530
|
size: "sm",
|
|
@@ -2536,7 +2537,7 @@ const cc = Fi({
|
|
|
2536
2537
|
)
|
|
2537
2538
|
] });
|
|
2538
2539
|
}, lc = () => {
|
|
2539
|
-
const e = xe(), t =
|
|
2540
|
+
const e = xe(), t = H(e.pathname);
|
|
2540
2541
|
F(() => {
|
|
2541
2542
|
const r = t.current !== e.pathname, n = e.hash !== "";
|
|
2542
2543
|
r && !n && window.scrollTo(0, 0), t.current = e.pathname;
|
|
@@ -2556,7 +2557,7 @@ const cc = Fi({
|
|
|
2556
2557
|
/* @__PURE__ */ s.jsxs(
|
|
2557
2558
|
"div",
|
|
2558
2559
|
{
|
|
2559
|
-
className:
|
|
2560
|
+
className: O("flex flex-row gap-8", {
|
|
2560
2561
|
"justify-center": !t.position || t.position === "center",
|
|
2561
2562
|
"justify-start": t.position === "start",
|
|
2562
2563
|
"justify-end": t.position === "end"
|
|
@@ -2571,7 +2572,7 @@ const cc = Fi({
|
|
|
2571
2572
|
children: t.columns.map((r) => /* @__PURE__ */ s.jsxs(
|
|
2572
2573
|
"div",
|
|
2573
2574
|
{
|
|
2574
|
-
className:
|
|
2575
|
+
className: O({
|
|
2575
2576
|
"justify-self-center": !r.position || r.position === "center",
|
|
2576
2577
|
"justify-self-start": r.position === "start",
|
|
2577
2578
|
"justify-self-end": r.position === "end"
|
|
@@ -2607,7 +2608,7 @@ const cc = Fi({
|
|
|
2607
2608
|
/* @__PURE__ */ s.jsxs(
|
|
2608
2609
|
"div",
|
|
2609
2610
|
{
|
|
2610
|
-
className:
|
|
2611
|
+
className: O(
|
|
2611
2612
|
"flex items-center justify-between",
|
|
2612
2613
|
t.columns && "border-t mt-8 pt-8"
|
|
2613
2614
|
),
|
|
@@ -2652,19 +2653,19 @@ const cc = Fi({
|
|
|
2652
2653
|
)
|
|
2653
2654
|
] }) }) : null;
|
|
2654
2655
|
};
|
|
2655
|
-
function
|
|
2656
|
+
function Oe({
|
|
2656
2657
|
className: e,
|
|
2657
2658
|
...t
|
|
2658
2659
|
}) {
|
|
2659
2660
|
return /* @__PURE__ */ s.jsx(
|
|
2660
2661
|
"div",
|
|
2661
2662
|
{
|
|
2662
|
-
className:
|
|
2663
|
+
className: O("animate-pulse rounded-md bg-muted", e),
|
|
2663
2664
|
...t
|
|
2664
2665
|
}
|
|
2665
2666
|
);
|
|
2666
2667
|
}
|
|
2667
|
-
const
|
|
2668
|
+
const zt = {
|
|
2668
2669
|
info: "bg-blue-500",
|
|
2669
2670
|
note: "bg-gray-500",
|
|
2670
2671
|
tip: "bg-green-600",
|
|
@@ -2674,11 +2675,11 @@ const Pt = {
|
|
|
2674
2675
|
const { site: e } = M(), [t, r] = G(!0);
|
|
2675
2676
|
if (!e?.banner || !t)
|
|
2676
2677
|
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
2677
|
-
const n = e.banner.color && e.banner.color in
|
|
2678
|
+
const n = e.banner.color && e.banner.color in zt ? zt[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = n ? {} : { backgroundColor: e.banner.color };
|
|
2678
2679
|
return /* @__PURE__ */ s.jsxs(
|
|
2679
2680
|
"div",
|
|
2680
2681
|
{
|
|
2681
|
-
className:
|
|
2682
|
+
className: O(
|
|
2682
2683
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",
|
|
2683
2684
|
n
|
|
2684
2685
|
),
|
|
@@ -2697,7 +2698,7 @@ const Pt = {
|
|
|
2697
2698
|
]
|
|
2698
2699
|
}
|
|
2699
2700
|
);
|
|
2700
|
-
},
|
|
2701
|
+
}, _r = (e) => /* @__PURE__ */ s.jsxs(
|
|
2701
2702
|
"svg",
|
|
2702
2703
|
{
|
|
2703
2704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2724,20 +2725,20 @@ const Pt = {
|
|
|
2724
2725
|
]
|
|
2725
2726
|
}
|
|
2726
2727
|
);
|
|
2727
|
-
|
|
2728
|
-
const
|
|
2728
|
+
_r.displayName = "ZudokuLogo";
|
|
2729
|
+
const br = ({ className: e }) => /* @__PURE__ */ s.jsxs(
|
|
2729
2730
|
"a",
|
|
2730
2731
|
{
|
|
2731
2732
|
href: "https://zudoku.dev",
|
|
2732
2733
|
target: "_blank",
|
|
2733
2734
|
rel: "noopener noreferrer",
|
|
2734
|
-
className:
|
|
2735
|
+
className: O(
|
|
2735
2736
|
"flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-xs h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
|
|
2736
2737
|
e
|
|
2737
2738
|
),
|
|
2738
2739
|
children: [
|
|
2739
2740
|
/* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
|
|
2740
|
-
/* @__PURE__ */ s.jsx(
|
|
2741
|
+
/* @__PURE__ */ s.jsx(_r, { className: "w-3.5 h-3.5 dark:fill-white" }),
|
|
2741
2742
|
"powered by ",
|
|
2742
2743
|
"Zudoku"
|
|
2743
2744
|
] }),
|
|
@@ -2762,7 +2763,7 @@ function ye() {
|
|
|
2762
2763
|
return e;
|
|
2763
2764
|
}, ye.apply(null, arguments);
|
|
2764
2765
|
}
|
|
2765
|
-
var pe = { exports: {} },
|
|
2766
|
+
var pe = { exports: {} }, z = {};
|
|
2766
2767
|
/** @license React v16.13.1
|
|
2767
2768
|
* react-is.production.min.js
|
|
2768
2769
|
*
|
|
@@ -2771,73 +2772,73 @@ var pe = { exports: {} }, k = {};
|
|
|
2771
2772
|
* This source code is licensed under the MIT license found in the
|
|
2772
2773
|
* LICENSE file in the root directory of this source tree.
|
|
2773
2774
|
*/
|
|
2774
|
-
var
|
|
2775
|
+
var Pt;
|
|
2775
2776
|
function mc() {
|
|
2776
|
-
if (
|
|
2777
|
-
|
|
2778
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110,
|
|
2779
|
-
function
|
|
2777
|
+
if (Pt) return z;
|
|
2778
|
+
Pt = 1;
|
|
2779
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, x = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
2780
|
+
function y(d) {
|
|
2780
2781
|
if (typeof d == "object" && d !== null) {
|
|
2781
|
-
var
|
|
2782
|
-
switch (
|
|
2782
|
+
var k = d.$$typeof;
|
|
2783
|
+
switch (k) {
|
|
2783
2784
|
case t:
|
|
2784
2785
|
switch (d = d.type, d) {
|
|
2785
|
-
case
|
|
2786
|
+
case p:
|
|
2786
2787
|
case f:
|
|
2787
2788
|
case n:
|
|
2788
2789
|
case a:
|
|
2789
2790
|
case o:
|
|
2790
|
-
case
|
|
2791
|
+
case h:
|
|
2791
2792
|
return d;
|
|
2792
2793
|
default:
|
|
2793
2794
|
switch (d = d && d.$$typeof, d) {
|
|
2794
2795
|
case u:
|
|
2795
|
-
case
|
|
2796
|
+
case x:
|
|
2796
2797
|
case g:
|
|
2797
2798
|
case l:
|
|
2798
2799
|
case i:
|
|
2799
2800
|
return d;
|
|
2800
2801
|
default:
|
|
2801
|
-
return
|
|
2802
|
+
return k;
|
|
2802
2803
|
}
|
|
2803
2804
|
}
|
|
2804
2805
|
case r:
|
|
2805
|
-
return
|
|
2806
|
+
return k;
|
|
2806
2807
|
}
|
|
2807
2808
|
}
|
|
2808
2809
|
}
|
|
2809
|
-
function
|
|
2810
|
-
return
|
|
2810
|
+
function _(d) {
|
|
2811
|
+
return y(d) === f;
|
|
2811
2812
|
}
|
|
2812
|
-
return
|
|
2813
|
-
return
|
|
2814
|
-
},
|
|
2815
|
-
return
|
|
2816
|
-
},
|
|
2817
|
-
return
|
|
2818
|
-
},
|
|
2813
|
+
return z.AsyncMode = p, z.ConcurrentMode = f, z.ContextConsumer = u, z.ContextProvider = i, z.Element = t, z.ForwardRef = x, z.Fragment = n, z.Lazy = g, z.Memo = l, z.Portal = r, z.Profiler = a, z.StrictMode = o, z.Suspense = h, z.isAsyncMode = function(d) {
|
|
2814
|
+
return _(d) || y(d) === p;
|
|
2815
|
+
}, z.isConcurrentMode = _, z.isContextConsumer = function(d) {
|
|
2816
|
+
return y(d) === u;
|
|
2817
|
+
}, z.isContextProvider = function(d) {
|
|
2818
|
+
return y(d) === i;
|
|
2819
|
+
}, z.isElement = function(d) {
|
|
2819
2820
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
2820
|
-
},
|
|
2821
|
-
return
|
|
2822
|
-
},
|
|
2823
|
-
return
|
|
2824
|
-
},
|
|
2825
|
-
return
|
|
2826
|
-
},
|
|
2827
|
-
return
|
|
2828
|
-
},
|
|
2829
|
-
return
|
|
2830
|
-
},
|
|
2831
|
-
return
|
|
2832
|
-
},
|
|
2833
|
-
return
|
|
2834
|
-
},
|
|
2835
|
-
return
|
|
2836
|
-
},
|
|
2837
|
-
return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d ===
|
|
2838
|
-
},
|
|
2839
|
-
}
|
|
2840
|
-
var
|
|
2821
|
+
}, z.isForwardRef = function(d) {
|
|
2822
|
+
return y(d) === x;
|
|
2823
|
+
}, z.isFragment = function(d) {
|
|
2824
|
+
return y(d) === n;
|
|
2825
|
+
}, z.isLazy = function(d) {
|
|
2826
|
+
return y(d) === g;
|
|
2827
|
+
}, z.isMemo = function(d) {
|
|
2828
|
+
return y(d) === l;
|
|
2829
|
+
}, z.isPortal = function(d) {
|
|
2830
|
+
return y(d) === r;
|
|
2831
|
+
}, z.isProfiler = function(d) {
|
|
2832
|
+
return y(d) === a;
|
|
2833
|
+
}, z.isStrictMode = function(d) {
|
|
2834
|
+
return y(d) === o;
|
|
2835
|
+
}, z.isSuspense = function(d) {
|
|
2836
|
+
return y(d) === h;
|
|
2837
|
+
}, z.isValidElementType = function(d) {
|
|
2838
|
+
return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d === h || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === i || d.$$typeof === u || d.$$typeof === x || d.$$typeof === E || d.$$typeof === $ || d.$$typeof === j || d.$$typeof === w);
|
|
2839
|
+
}, z.typeOf = y, z;
|
|
2840
|
+
}
|
|
2841
|
+
var P = {};
|
|
2841
2842
|
/** @license React v16.13.1
|
|
2842
2843
|
* react-is.development.js
|
|
2843
2844
|
*
|
|
@@ -2846,33 +2847,33 @@ var $ = {};
|
|
|
2846
2847
|
* This source code is licensed under the MIT license found in the
|
|
2847
2848
|
* LICENSE file in the root directory of this source tree.
|
|
2848
2849
|
*/
|
|
2849
|
-
var
|
|
2850
|
+
var Et;
|
|
2850
2851
|
function gc() {
|
|
2851
|
-
return
|
|
2852
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110,
|
|
2853
|
-
function
|
|
2852
|
+
return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2853
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, x = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
2854
|
+
function y(v) {
|
|
2854
2855
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2855
|
-
v === n || v === f || v === a || v === o || v ===
|
|
2856
|
+
v === n || v === f || v === a || v === o || v === h || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === i || v.$$typeof === u || v.$$typeof === x || v.$$typeof === E || v.$$typeof === $ || v.$$typeof === j || v.$$typeof === w);
|
|
2856
2857
|
}
|
|
2857
|
-
function
|
|
2858
|
+
function _(v) {
|
|
2858
2859
|
if (typeof v == "object" && v !== null) {
|
|
2859
2860
|
var ke = v.$$typeof;
|
|
2860
2861
|
switch (ke) {
|
|
2861
2862
|
case t:
|
|
2862
2863
|
var ce = v.type;
|
|
2863
2864
|
switch (ce) {
|
|
2864
|
-
case
|
|
2865
|
+
case p:
|
|
2865
2866
|
case f:
|
|
2866
2867
|
case n:
|
|
2867
2868
|
case a:
|
|
2868
2869
|
case o:
|
|
2869
|
-
case
|
|
2870
|
+
case h:
|
|
2870
2871
|
return ce;
|
|
2871
2872
|
default:
|
|
2872
2873
|
var Ve = ce && ce.$$typeof;
|
|
2873
2874
|
switch (Ve) {
|
|
2874
2875
|
case u:
|
|
2875
|
-
case
|
|
2876
|
+
case x:
|
|
2876
2877
|
case g:
|
|
2877
2878
|
case l:
|
|
2878
2879
|
case i:
|
|
@@ -2886,57 +2887,57 @@ function gc() {
|
|
|
2886
2887
|
}
|
|
2887
2888
|
}
|
|
2888
2889
|
}
|
|
2889
|
-
var d =
|
|
2890
|
-
function
|
|
2891
|
-
return
|
|
2890
|
+
var d = p, k = f, I = u, D = i, X = t, Q = x, je = n, W = g, Ir = l, Rr = r, Dr = a, Mr = o, Fr = h, He = !1;
|
|
2891
|
+
function qr(v) {
|
|
2892
|
+
return He || (He = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), We(v) || _(v) === p;
|
|
2892
2893
|
}
|
|
2893
2894
|
function We(v) {
|
|
2894
|
-
return
|
|
2895
|
+
return _(v) === f;
|
|
2896
|
+
}
|
|
2897
|
+
function Ur(v) {
|
|
2898
|
+
return _(v) === u;
|
|
2895
2899
|
}
|
|
2896
2900
|
function Lr(v) {
|
|
2897
|
-
return
|
|
2901
|
+
return _(v) === i;
|
|
2898
2902
|
}
|
|
2899
2903
|
function Qr(v) {
|
|
2900
|
-
return b(v) === i;
|
|
2901
|
-
}
|
|
2902
|
-
function Br(v) {
|
|
2903
2904
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
2904
2905
|
}
|
|
2905
|
-
function
|
|
2906
|
-
return
|
|
2906
|
+
function Br(v) {
|
|
2907
|
+
return _(v) === x;
|
|
2907
2908
|
}
|
|
2908
2909
|
function Kr(v) {
|
|
2909
|
-
return
|
|
2910
|
+
return _(v) === n;
|
|
2911
|
+
}
|
|
2912
|
+
function Hr(v) {
|
|
2913
|
+
return _(v) === g;
|
|
2910
2914
|
}
|
|
2911
2915
|
function Wr(v) {
|
|
2912
|
-
return
|
|
2916
|
+
return _(v) === l;
|
|
2913
2917
|
}
|
|
2914
2918
|
function Vr(v) {
|
|
2915
|
-
return
|
|
2919
|
+
return _(v) === r;
|
|
2916
2920
|
}
|
|
2917
2921
|
function Yr(v) {
|
|
2918
|
-
return
|
|
2922
|
+
return _(v) === a;
|
|
2919
2923
|
}
|
|
2920
2924
|
function Gr(v) {
|
|
2921
|
-
return
|
|
2925
|
+
return _(v) === o;
|
|
2922
2926
|
}
|
|
2923
2927
|
function Jr(v) {
|
|
2924
|
-
return
|
|
2928
|
+
return _(v) === h;
|
|
2925
2929
|
}
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
}
|
|
2929
|
-
$.AsyncMode = d, $.ConcurrentMode = z, $.ContextConsumer = I, $.ContextProvider = D, $.Element = X, $.ForwardRef = B, $.Fragment = je, $.Lazy = W, $.Memo = Rr, $.Portal = Dr, $.Profiler = Mr, $.StrictMode = Fr, $.Suspense = qr, $.isAsyncMode = Ur, $.isConcurrentMode = We, $.isContextConsumer = Lr, $.isContextProvider = Qr, $.isElement = Br, $.isForwardRef = Hr, $.isFragment = Kr, $.isLazy = Wr, $.isMemo = Vr, $.isPortal = Yr, $.isProfiler = Gr, $.isStrictMode = Jr, $.isSuspense = Xr, $.isValidElementType = x, $.typeOf = b;
|
|
2930
|
-
}()), $;
|
|
2930
|
+
P.AsyncMode = d, P.ConcurrentMode = k, P.ContextConsumer = I, P.ContextProvider = D, P.Element = X, P.ForwardRef = Q, P.Fragment = je, P.Lazy = W, P.Memo = Ir, P.Portal = Rr, P.Profiler = Dr, P.StrictMode = Mr, P.Suspense = Fr, P.isAsyncMode = qr, P.isConcurrentMode = We, P.isContextConsumer = Ur, P.isContextProvider = Lr, P.isElement = Qr, P.isForwardRef = Br, P.isFragment = Kr, P.isLazy = Hr, P.isMemo = Wr, P.isPortal = Vr, P.isProfiler = Yr, P.isStrictMode = Gr, P.isSuspense = Jr, P.isValidElementType = y, P.typeOf = _;
|
|
2931
|
+
}()), P;
|
|
2931
2932
|
}
|
|
2932
|
-
var
|
|
2933
|
+
var St;
|
|
2933
2934
|
function vc() {
|
|
2934
|
-
return
|
|
2935
|
+
return St || (St = 1, process.env.NODE_ENV === "production" ? pe.exports = mc() : pe.exports = gc()), pe.exports;
|
|
2935
2936
|
}
|
|
2936
|
-
var Pe,
|
|
2937
|
+
var Pe, Zt;
|
|
2937
2938
|
function yc() {
|
|
2938
|
-
if (
|
|
2939
|
-
|
|
2939
|
+
if (Zt) return Pe;
|
|
2940
|
+
Zt = 1;
|
|
2940
2941
|
var e = vc(), t = {
|
|
2941
2942
|
childContextTypes: !0,
|
|
2942
2943
|
contextType: !0,
|
|
@@ -2975,21 +2976,21 @@ function yc() {
|
|
|
2975
2976
|
function i(g) {
|
|
2976
2977
|
return e.isMemo(g) ? o : a[g.$$typeof] || t;
|
|
2977
2978
|
}
|
|
2978
|
-
var u = Object.defineProperty,
|
|
2979
|
-
function l(g, w,
|
|
2979
|
+
var u = Object.defineProperty, p = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, x = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, m = Object.prototype;
|
|
2980
|
+
function l(g, w, E) {
|
|
2980
2981
|
if (typeof w != "string") {
|
|
2981
2982
|
if (m) {
|
|
2982
|
-
var
|
|
2983
|
-
|
|
2983
|
+
var $ = h(w);
|
|
2984
|
+
$ && $ !== m && l(g, $, E);
|
|
2984
2985
|
}
|
|
2985
|
-
var j =
|
|
2986
|
+
var j = p(w);
|
|
2986
2987
|
f && (j = j.concat(f(w)));
|
|
2987
|
-
for (var
|
|
2988
|
-
var
|
|
2989
|
-
if (!r[
|
|
2990
|
-
var I =
|
|
2988
|
+
for (var y = i(g), _ = i(w), d = 0; d < j.length; ++d) {
|
|
2989
|
+
var k = j[d];
|
|
2990
|
+
if (!r[k] && !(E && E[k]) && !(_ && _[k]) && !(y && y[k])) {
|
|
2991
|
+
var I = x(w, k);
|
|
2991
2992
|
try {
|
|
2992
|
-
u(g,
|
|
2993
|
+
u(g, k, I);
|
|
2993
2994
|
} catch {
|
|
2994
2995
|
}
|
|
2995
2996
|
}
|
|
@@ -3000,7 +3001,7 @@ function yc() {
|
|
|
3000
3001
|
return Pe = l, Pe;
|
|
3001
3002
|
}
|
|
3002
3003
|
yc();
|
|
3003
|
-
var
|
|
3004
|
+
var wr = function(t, r, n) {
|
|
3004
3005
|
return t = t <= n ? t : n, t = t >= r ? t : r, t;
|
|
3005
3006
|
}, xc = function() {
|
|
3006
3007
|
var t = !1, r = [], n = function() {
|
|
@@ -3022,8 +3023,8 @@ var jr = function(t, r, n) {
|
|
|
3022
3023
|
var t, r = function() {
|
|
3023
3024
|
t && window.cancelAnimationFrame(t);
|
|
3024
3025
|
}, n = function(a, i) {
|
|
3025
|
-
var u,
|
|
3026
|
-
if (
|
|
3026
|
+
var u, p, f = function(h) {
|
|
3027
|
+
if (p = p || h, u = h - p, u > i) {
|
|
3027
3028
|
a();
|
|
3028
3029
|
return;
|
|
3029
3030
|
}
|
|
@@ -3037,107 +3038,107 @@ var jr = function(t, r, n) {
|
|
|
3037
3038
|
};
|
|
3038
3039
|
}, bc = function(t) {
|
|
3039
3040
|
var r = 0;
|
|
3040
|
-
return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3),
|
|
3041
|
+
return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), wr(t + r, 0, 0.994);
|
|
3041
3042
|
}, Ct = function(t) {
|
|
3042
3043
|
F(t, []);
|
|
3043
3044
|
}, wc = function(t) {
|
|
3044
3045
|
return ++t % 1e6;
|
|
3045
3046
|
}, jc = function() {
|
|
3046
3047
|
var t = G(0), r = t[1];
|
|
3047
|
-
return
|
|
3048
|
+
return B(function() {
|
|
3048
3049
|
return r(wc);
|
|
3049
3050
|
}, []);
|
|
3050
3051
|
}, kc = function(t) {
|
|
3051
3052
|
t === void 0 && (t = {});
|
|
3052
|
-
var r = jc(), n =
|
|
3053
|
+
var r = jc(), n = H(ye({}, t)), o = B(function() {
|
|
3053
3054
|
return n.current;
|
|
3054
|
-
}, []), a =
|
|
3055
|
+
}, []), a = B(function(i) {
|
|
3055
3056
|
i && (Object.assign(n.current, i), r());
|
|
3056
3057
|
}, []);
|
|
3057
3058
|
return [o, a];
|
|
3058
3059
|
}, $c = function() {
|
|
3059
|
-
var t =
|
|
3060
|
+
var t = H(!0);
|
|
3060
3061
|
return t.current ? (t.current = !1, !0) : t.current;
|
|
3061
|
-
},
|
|
3062
|
+
}, Tt = function(t, r) {
|
|
3062
3063
|
var n = $c();
|
|
3063
3064
|
F(function() {
|
|
3064
3065
|
if (!n)
|
|
3065
3066
|
return t();
|
|
3066
3067
|
}, r);
|
|
3067
|
-
},
|
|
3068
|
+
}, jr = function() {
|
|
3068
3069
|
}, Nt = {
|
|
3069
3070
|
isFinished: !0,
|
|
3070
3071
|
progress: 0,
|
|
3071
|
-
sideEffect:
|
|
3072
|
+
sideEffect: jr
|
|
3072
3073
|
}, zc = function(t) {
|
|
3073
|
-
var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating,
|
|
3074
|
+
var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating, p = u === void 0 ? !1 : u, f = r.minimum, x = f === void 0 ? 0.08 : f, h = kc(Nt), m = h[0], l = h[1], g = H(null), w = H(null);
|
|
3074
3075
|
Ct(function() {
|
|
3075
3076
|
g.current = xc(), w.current = _c();
|
|
3076
3077
|
});
|
|
3077
|
-
var
|
|
3078
|
-
var
|
|
3079
|
-
(
|
|
3080
|
-
}, []),
|
|
3078
|
+
var E = B(function() {
|
|
3079
|
+
var k, I;
|
|
3080
|
+
(k = w.current) == null || k.cancel(), (I = g.current) == null || I.clear();
|
|
3081
|
+
}, []), $ = B(function(k) {
|
|
3081
3082
|
var I;
|
|
3082
|
-
if (
|
|
3083
|
+
if (k = wr(k, x, 1), k === 1) {
|
|
3083
3084
|
var D, X;
|
|
3084
|
-
|
|
3085
|
+
E(), (D = g.current) == null || D.enqueue(function(Q) {
|
|
3085
3086
|
l({
|
|
3086
|
-
progress:
|
|
3087
|
+
progress: k,
|
|
3087
3088
|
sideEffect: function() {
|
|
3088
3089
|
var W;
|
|
3089
|
-
return (W = w.current) == null ? void 0 : W.schedule(
|
|
3090
|
+
return (W = w.current) == null ? void 0 : W.schedule(Q, o);
|
|
3090
3091
|
}
|
|
3091
3092
|
});
|
|
3092
3093
|
}), (X = g.current) == null || X.enqueue(function() {
|
|
3093
3094
|
l({
|
|
3094
3095
|
isFinished: !0,
|
|
3095
|
-
sideEffect:
|
|
3096
|
+
sideEffect: E
|
|
3096
3097
|
});
|
|
3097
3098
|
});
|
|
3098
3099
|
return;
|
|
3099
3100
|
}
|
|
3100
|
-
(I = g.current) == null || I.enqueue(function(
|
|
3101
|
+
(I = g.current) == null || I.enqueue(function(Q) {
|
|
3101
3102
|
l({
|
|
3102
3103
|
isFinished: !1,
|
|
3103
|
-
progress:
|
|
3104
|
+
progress: k,
|
|
3104
3105
|
sideEffect: function() {
|
|
3105
3106
|
var W;
|
|
3106
|
-
return (W = w.current) == null ? void 0 : W.schedule(
|
|
3107
|
+
return (W = w.current) == null ? void 0 : W.schedule(Q, o);
|
|
3107
3108
|
}
|
|
3108
3109
|
});
|
|
3109
3110
|
});
|
|
3110
|
-
}, [o,
|
|
3111
|
-
|
|
3112
|
-
}, [m,
|
|
3113
|
-
var
|
|
3111
|
+
}, [o, E, x, g, l, w]), j = B(function() {
|
|
3112
|
+
$(bc(m().progress));
|
|
3113
|
+
}, [m, $]), y = B(function() {
|
|
3114
|
+
var k = function() {
|
|
3114
3115
|
var D;
|
|
3115
3116
|
j(), (D = g.current) == null || D.enqueue(function(X) {
|
|
3116
|
-
var
|
|
3117
|
-
(
|
|
3118
|
-
|
|
3117
|
+
var Q;
|
|
3118
|
+
(Q = w.current) == null || Q.schedule(function() {
|
|
3119
|
+
k(), X();
|
|
3119
3120
|
}, i);
|
|
3120
3121
|
});
|
|
3121
3122
|
};
|
|
3122
|
-
|
|
3123
|
-
}, [i, g, w, j]),
|
|
3123
|
+
k();
|
|
3124
|
+
}, [i, g, w, j]), _ = H(jr), d = m().sideEffect;
|
|
3124
3125
|
return F(function() {
|
|
3125
|
-
|
|
3126
|
+
_.current = j;
|
|
3126
3127
|
}), Ct(function() {
|
|
3127
|
-
return
|
|
3128
|
-
}),
|
|
3128
|
+
return p && y(), E;
|
|
3129
|
+
}), Tt(function() {
|
|
3129
3130
|
m().sideEffect();
|
|
3130
|
-
}, [m, d]),
|
|
3131
|
-
|
|
3132
|
-
sideEffect:
|
|
3133
|
-
})) :
|
|
3134
|
-
}, [
|
|
3131
|
+
}, [m, d]), Tt(function() {
|
|
3132
|
+
p ? l(ye({}, Nt, {
|
|
3133
|
+
sideEffect: y
|
|
3134
|
+
})) : $(1);
|
|
3135
|
+
}, [p, $, l, y]), {
|
|
3135
3136
|
animationDuration: o,
|
|
3136
3137
|
isFinished: m().isFinished,
|
|
3137
3138
|
progress: m().progress
|
|
3138
3139
|
};
|
|
3139
3140
|
};
|
|
3140
|
-
const
|
|
3141
|
+
const kr = () => {
|
|
3141
3142
|
const t = Re().state === "loading", [r, n] = G(!1);
|
|
3142
3143
|
F(() => {
|
|
3143
3144
|
const i = setTimeout(() => n(t), 200);
|
|
@@ -3161,8 +3162,8 @@ function Pc() {
|
|
|
3161
3162
|
if (e.includes("mac")) return "macOS";
|
|
3162
3163
|
if (e.includes("linux")) return "Linux";
|
|
3163
3164
|
}
|
|
3164
|
-
const
|
|
3165
|
-
const t = M(), [r, n] = G(!1), o =
|
|
3165
|
+
const $r = ({ className: e }) => {
|
|
3166
|
+
const t = M(), [r, n] = G(!1), o = B(() => n(!1), []);
|
|
3166
3167
|
F(() => {
|
|
3167
3168
|
if (r)
|
|
3168
3169
|
return;
|
|
@@ -3183,7 +3184,7 @@ const zr = ({ className: e }) => {
|
|
|
3183
3184
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
3184
3185
|
children: [
|
|
3185
3186
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 grow", children: [
|
|
3186
|
-
/* @__PURE__ */ s.jsx(
|
|
3187
|
+
/* @__PURE__ */ s.jsx(Kn, { size: 14 }),
|
|
3187
3188
|
"Search"
|
|
3188
3189
|
] }),
|
|
3189
3190
|
/* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(Ec, {}) })
|
|
@@ -3201,8 +3202,8 @@ const zr = ({ className: e }) => {
|
|
|
3201
3202
|
e === "macOS" ? "⌘" : "Ctrl",
|
|
3202
3203
|
"+K"
|
|
3203
3204
|
] });
|
|
3204
|
-
},
|
|
3205
|
-
const { resolvedTheme: e, setTheme: t } =
|
|
3205
|
+
}, zr = () => {
|
|
3206
|
+
const { resolvedTheme: e, setTheme: t } = Rt();
|
|
3206
3207
|
return /* @__PURE__ */ s.jsx(te, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
|
|
3207
3208
|
"button",
|
|
3208
3209
|
{
|
|
@@ -3214,18 +3215,18 @@ const zr = ({ className: e }) => {
|
|
|
3214
3215
|
/* @__PURE__ */ s.jsx(
|
|
3215
3216
|
"div",
|
|
3216
3217
|
{
|
|
3217
|
-
className:
|
|
3218
|
+
className: O(
|
|
3218
3219
|
"border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
|
|
3219
3220
|
e === "light" && "border-border bg-muted",
|
|
3220
3221
|
e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
3221
3222
|
),
|
|
3222
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3223
|
+
children: /* @__PURE__ */ s.jsx(Hn, { size: 16 })
|
|
3223
3224
|
}
|
|
3224
3225
|
),
|
|
3225
3226
|
/* @__PURE__ */ s.jsx(
|
|
3226
3227
|
"div",
|
|
3227
3228
|
{
|
|
3228
|
-
className:
|
|
3229
|
+
className: O(
|
|
3229
3230
|
"border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
|
|
3230
3231
|
e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
3231
3232
|
e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
@@ -3237,12 +3238,12 @@ const zr = ({ className: e }) => {
|
|
|
3237
3238
|
}
|
|
3238
3239
|
) });
|
|
3239
3240
|
}, Sc = () => {
|
|
3240
|
-
const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(
|
|
3241
|
+
const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(Lt(t));
|
|
3241
3242
|
return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
|
|
3242
|
-
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
3243
|
+
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Er, { ...n }) }, n.label + n.type)) }) }),
|
|
3243
3244
|
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" })
|
|
3244
3245
|
] }) });
|
|
3245
|
-
},
|
|
3246
|
+
}, Pr = (e) => {
|
|
3246
3247
|
switch (e.type) {
|
|
3247
3248
|
case "doc":
|
|
3248
3249
|
return ee(e.path);
|
|
@@ -3251,7 +3252,7 @@ const zr = ({ className: e }) => {
|
|
|
3251
3252
|
case "category":
|
|
3252
3253
|
return e.link?.path ? ee(e.link.path) : gn(e, (t) => {
|
|
3253
3254
|
if (t.type !== "category")
|
|
3254
|
-
return
|
|
3255
|
+
return Pr(t);
|
|
3255
3256
|
}) ?? "";
|
|
3256
3257
|
case "custom-page":
|
|
3257
3258
|
return e.path;
|
|
@@ -3261,7 +3262,7 @@ const zr = ({ className: e }) => {
|
|
|
3261
3262
|
children: t,
|
|
3262
3263
|
...r
|
|
3263
3264
|
}) => /* @__PURE__ */ s.jsx(
|
|
3264
|
-
|
|
3265
|
+
sn,
|
|
3265
3266
|
{
|
|
3266
3267
|
viewTransition: !0,
|
|
3267
3268
|
className: ({ isActive: n, isPending: o }) => {
|
|
@@ -3281,8 +3282,8 @@ const zr = ({ className: e }) => {
|
|
|
3281
3282
|
...r,
|
|
3282
3283
|
children: t
|
|
3283
3284
|
}
|
|
3284
|
-
),
|
|
3285
|
-
const t =
|
|
3285
|
+
), Er = (e) => {
|
|
3286
|
+
const t = Qt(), r = $n(t.topNavItem, e), n = Pr(e);
|
|
3286
3287
|
return (
|
|
3287
3288
|
// We don't use isActive here because it has to be inside the navigation,
|
|
3288
3289
|
// the top nav id doesn't necessarily start with the navigation id
|
|
@@ -3292,33 +3293,33 @@ const zr = ({ className: e }) => {
|
|
|
3292
3293
|
] })
|
|
3293
3294
|
);
|
|
3294
3295
|
}, Zc = () => {
|
|
3295
|
-
const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: a, login: i } = oe(), [u,
|
|
3296
|
+
const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: a, login: i } = oe(), [u, p] = G(!1), f = r(), x = e.filter(Lt(n));
|
|
3296
3297
|
return /* @__PURE__ */ s.jsxs(
|
|
3297
3298
|
po,
|
|
3298
3299
|
{
|
|
3299
3300
|
direction: t.site?.dir === "rtl" ? "left" : "right",
|
|
3300
3301
|
open: u,
|
|
3301
|
-
onOpenChange: (
|
|
3302
|
+
onOpenChange: (h) => p(h),
|
|
3302
3303
|
children: [
|
|
3303
3304
|
/* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
|
|
3304
3305
|
/* @__PURE__ */ s.jsx(mo, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Vn, { size: 22 }) }),
|
|
3305
|
-
/* @__PURE__ */ s.jsx(
|
|
3306
|
+
/* @__PURE__ */ s.jsx(kr, {})
|
|
3306
3307
|
] }),
|
|
3307
3308
|
/* @__PURE__ */ s.jsx(
|
|
3308
|
-
|
|
3309
|
+
Xt,
|
|
3309
3310
|
{
|
|
3310
3311
|
className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
|
|
3311
3312
|
"aria-describedby": void 0,
|
|
3312
3313
|
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
|
|
3313
3314
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
3314
|
-
/* @__PURE__ */ s.jsx(
|
|
3315
|
-
/* @__PURE__ */ s.jsx(
|
|
3315
|
+
/* @__PURE__ */ s.jsx(Jt, { children: /* @__PURE__ */ s.jsx(er, { children: "Navigation" }) }),
|
|
3316
|
+
/* @__PURE__ */ s.jsx($r, { className: "flex p-4" }),
|
|
3316
3317
|
/* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
3317
3318
|
/* @__PURE__ */ s.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-side" }) }),
|
|
3318
3319
|
a && /* @__PURE__ */ s.jsx(
|
|
3319
3320
|
te,
|
|
3320
3321
|
{
|
|
3321
|
-
fallback: /* @__PURE__ */ s.jsx(
|
|
3322
|
+
fallback: /* @__PURE__ */ s.jsx(Oe, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3322
3323
|
children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(Rn, { children: /* @__PURE__ */ s.jsxs("li", { children: [
|
|
3323
3324
|
o?.name ? `${o.name}` : "My Account",
|
|
3324
3325
|
o?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
|
|
@@ -3326,31 +3327,31 @@ const zr = ({ className: e }) => {
|
|
|
3326
3327
|
Ae,
|
|
3327
3328
|
{
|
|
3328
3329
|
to: "/signin",
|
|
3329
|
-
onClick: () =>
|
|
3330
|
+
onClick: () => p(!1),
|
|
3330
3331
|
children: "Login"
|
|
3331
3332
|
}
|
|
3332
3333
|
) })
|
|
3333
3334
|
}
|
|
3334
3335
|
),
|
|
3335
|
-
|
|
3336
|
+
x.map((h) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => p(!1), children: /* @__PURE__ */ s.jsx(Er, { ...h }) }) }, h.label)),
|
|
3336
3337
|
a && n && f.length > 0 && /* @__PURE__ */ s.jsx(
|
|
3337
3338
|
te,
|
|
3338
3339
|
{
|
|
3339
|
-
fallback: /* @__PURE__ */ s.jsx(
|
|
3340
|
-
children: f.map((
|
|
3340
|
+
fallback: /* @__PURE__ */ s.jsx(Oe, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3341
|
+
children: f.map((h) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
3341
3342
|
Ae,
|
|
3342
3343
|
{
|
|
3343
|
-
to:
|
|
3344
|
-
onClick: () =>
|
|
3345
|
-
children:
|
|
3344
|
+
to: h.path ?? "",
|
|
3345
|
+
onClick: () => p(!1),
|
|
3346
|
+
children: h.label
|
|
3346
3347
|
}
|
|
3347
|
-
) },
|
|
3348
|
+
) }, h.label))
|
|
3348
3349
|
}
|
|
3349
3350
|
),
|
|
3350
|
-
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
3351
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(zr, {}) })
|
|
3351
3352
|
] })
|
|
3352
3353
|
] }),
|
|
3353
|
-
t.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(
|
|
3354
|
+
t.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(br, { className: "grow-0 justify-center gap-1" })
|
|
3354
3355
|
] })
|
|
3355
3356
|
}
|
|
3356
3357
|
)
|
|
@@ -3366,8 +3367,8 @@ const zr = ({ className: e }) => {
|
|
|
3366
3367
|
] }, e.label) : /* @__PURE__ */ s.jsx(De, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(ho, { className: "flex gap-2", children: [
|
|
3367
3368
|
e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
3368
3369
|
e.label
|
|
3369
|
-
] }, e.label) }),
|
|
3370
|
-
const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), a = M(), { site: i, plugins: u, options:
|
|
3370
|
+
] }, e.label) }), Sr = Vt(function() {
|
|
3371
|
+
const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), a = M(), { site: i, plugins: u, options: p } = a, f = u.filter((l) => Gt(l)).flatMap((l) => l.getProfileMenuItems(a)).sort((l) => l.weight ?? 0), x = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(p.basePath, i.logo.src.light) : void 0, h = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(p.basePath, i.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
|
|
3371
3372
|
return /* @__PURE__ */ s.jsxs(
|
|
3372
3373
|
"header",
|
|
3373
3374
|
{
|
|
@@ -3375,15 +3376,15 @@ const zr = ({ className: e }) => {
|
|
|
3375
3376
|
"data-pagefind-ignore": "all",
|
|
3376
3377
|
children: [
|
|
3377
3378
|
/* @__PURE__ */ s.jsx(pc, {}),
|
|
3378
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
3379
|
-
/* @__PURE__ */ s.jsx(
|
|
3379
|
+
/* @__PURE__ */ s.jsxs("div", { className: O(m, "relative"), children: [
|
|
3380
|
+
/* @__PURE__ */ s.jsx(kr, {}),
|
|
3380
3381
|
/* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
|
|
3381
3382
|
/* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(De, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
3382
3383
|
i?.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3383
3384
|
/* @__PURE__ */ s.jsx(
|
|
3384
3385
|
"img",
|
|
3385
3386
|
{
|
|
3386
|
-
src:
|
|
3387
|
+
src: x,
|
|
3387
3388
|
alt: i.logo.alt ?? i.title,
|
|
3388
3389
|
style: { width: i.logo.width },
|
|
3389
3390
|
className: "max-h-(--top-header-height) dark:hidden",
|
|
@@ -3393,7 +3394,7 @@ const zr = ({ className: e }) => {
|
|
|
3393
3394
|
/* @__PURE__ */ s.jsx(
|
|
3394
3395
|
"img",
|
|
3395
3396
|
{
|
|
3396
|
-
src:
|
|
3397
|
+
src: h,
|
|
3397
3398
|
alt: i.logo.alt ?? i.title,
|
|
3398
3399
|
style: { width: i.logo.width },
|
|
3399
3400
|
className: "max-h-(--top-header-height) hidden dark:block",
|
|
@@ -3403,7 +3404,7 @@ const zr = ({ className: e }) => {
|
|
|
3403
3404
|
] }),
|
|
3404
3405
|
/* @__PURE__ */ s.jsx("span", { className: "font-semibold text-2xl", children: i?.title })
|
|
3405
3406
|
] }) }) }),
|
|
3406
|
-
/* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(
|
|
3407
|
+
/* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx($r, { className: "pointer-events-auto" }) }),
|
|
3407
3408
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
3408
3409
|
/* @__PURE__ */ s.jsx(Zc, {}),
|
|
3409
3410
|
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
@@ -3411,7 +3412,7 @@ const zr = ({ className: e }) => {
|
|
|
3411
3412
|
o && /* @__PURE__ */ s.jsx(
|
|
3412
3413
|
te,
|
|
3413
3414
|
{
|
|
3414
|
-
fallback: /* @__PURE__ */ s.jsx(
|
|
3415
|
+
fallback: /* @__PURE__ */ s.jsx(Oe, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3415
3416
|
children: r ? Object.values(f).length > 0 && /* @__PURE__ */ s.jsxs(oo, { modal: !1, children: [
|
|
3416
3417
|
/* @__PURE__ */ s.jsx(so, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n?.name ?? "My Account" }) }),
|
|
3417
3418
|
/* @__PURE__ */ s.jsxs(ao, { className: "w-56", children: [
|
|
@@ -3434,12 +3435,12 @@ const zr = ({ className: e }) => {
|
|
|
3434
3435
|
}
|
|
3435
3436
|
),
|
|
3436
3437
|
/* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-end" }),
|
|
3437
|
-
/* @__PURE__ */ s.jsx(
|
|
3438
|
+
/* @__PURE__ */ s.jsx(zr, {})
|
|
3438
3439
|
] })
|
|
3439
3440
|
] })
|
|
3440
3441
|
] })
|
|
3441
3442
|
] }),
|
|
3442
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3443
|
+
/* @__PURE__ */ s.jsx("div", { className: O("hidden lg:block", m), children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
|
|
3443
3444
|
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-before" }),
|
|
3444
3445
|
/* @__PURE__ */ s.jsx(Sc, {}),
|
|
3445
3446
|
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-after" })
|
|
@@ -3447,7 +3448,7 @@ const zr = ({ className: e }) => {
|
|
|
3447
3448
|
]
|
|
3448
3449
|
}
|
|
3449
3450
|
);
|
|
3450
|
-
}),
|
|
3451
|
+
}), Zr = ({
|
|
3451
3452
|
shouldScaleBackground: e = !0,
|
|
3452
3453
|
...t
|
|
3453
3454
|
}) => /* @__PURE__ */ s.jsx(
|
|
@@ -3457,24 +3458,24 @@ const zr = ({ className: e }) => {
|
|
|
3457
3458
|
...t
|
|
3458
3459
|
}
|
|
3459
3460
|
);
|
|
3460
|
-
|
|
3461
|
-
const
|
|
3461
|
+
Zr.displayName = "Drawer";
|
|
3462
|
+
const Cc = q.Trigger, Tc = q.Portal, Cr = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3462
3463
|
q.Overlay,
|
|
3463
3464
|
{
|
|
3464
3465
|
ref: r,
|
|
3465
|
-
className:
|
|
3466
|
+
className: O("fixed inset-0 z-50 bg-black/80", e),
|
|
3466
3467
|
...t
|
|
3467
3468
|
}
|
|
3468
3469
|
));
|
|
3469
3470
|
Cr.displayName = q.Overlay.displayName;
|
|
3470
|
-
const
|
|
3471
|
-
({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ s.jsxs(
|
|
3471
|
+
const Nc = K.forwardRef(
|
|
3472
|
+
({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ s.jsxs(Tc, { children: [
|
|
3472
3473
|
/* @__PURE__ */ s.jsx(Cr, {}),
|
|
3473
3474
|
/* @__PURE__ */ s.jsxs(
|
|
3474
3475
|
q.Content,
|
|
3475
3476
|
{
|
|
3476
3477
|
ref: o,
|
|
3477
|
-
className:
|
|
3478
|
+
className: O(
|
|
3478
3479
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
3479
3480
|
e
|
|
3480
3481
|
),
|
|
@@ -3487,33 +3488,33 @@ const Oc = Q.forwardRef(
|
|
|
3487
3488
|
)
|
|
3488
3489
|
] })
|
|
3489
3490
|
);
|
|
3490
|
-
|
|
3491
|
-
const
|
|
3491
|
+
Nc.displayName = "DrawerContent";
|
|
3492
|
+
const Oc = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3492
3493
|
q.Title,
|
|
3493
3494
|
{
|
|
3494
3495
|
ref: r,
|
|
3495
|
-
className:
|
|
3496
|
+
className: O(
|
|
3496
3497
|
"text-lg font-semibold leading-none tracking-tight",
|
|
3497
3498
|
e
|
|
3498
3499
|
),
|
|
3499
3500
|
...t
|
|
3500
3501
|
}
|
|
3501
3502
|
));
|
|
3502
|
-
|
|
3503
|
-
const Ac =
|
|
3503
|
+
Oc.displayName = q.Title.displayName;
|
|
3504
|
+
const Ac = K.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3504
3505
|
q.Description,
|
|
3505
3506
|
{
|
|
3506
3507
|
ref: r,
|
|
3507
|
-
className:
|
|
3508
|
+
className: O("text-sm text-muted-foreground", e),
|
|
3508
3509
|
...t
|
|
3509
3510
|
}
|
|
3510
3511
|
));
|
|
3511
3512
|
Ac.displayName = q.Description.displayName;
|
|
3512
|
-
const
|
|
3513
|
+
const Tr = ({
|
|
3513
3514
|
children: e,
|
|
3514
3515
|
className: t
|
|
3515
3516
|
}) => {
|
|
3516
|
-
const { options: r } = M(), n =
|
|
3517
|
+
const { options: r } = M(), n = H(null);
|
|
3517
3518
|
return F(() => {
|
|
3518
3519
|
const o = n.current?.querySelector('[aria-current="page"]');
|
|
3519
3520
|
zn(o ?? null);
|
|
@@ -3527,7 +3528,7 @@ const Or = ({
|
|
|
3527
3528
|
"nav",
|
|
3528
3529
|
{
|
|
3529
3530
|
ref: n,
|
|
3530
|
-
className:
|
|
3531
|
+
className: O(
|
|
3531
3532
|
"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",
|
|
3532
3533
|
"-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
|
|
3533
3534
|
// Revert the padding/margin on the first child
|
|
@@ -3540,17 +3541,17 @@ const Or = ({
|
|
|
3540
3541
|
children: e
|
|
3541
3542
|
}
|
|
3542
3543
|
),
|
|
3543
|
-
/* @__PURE__ */ s.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(
|
|
3544
|
+
/* @__PURE__ */ s.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(br, {}) })
|
|
3544
3545
|
]
|
|
3545
3546
|
}
|
|
3546
3547
|
);
|
|
3547
3548
|
};
|
|
3548
|
-
|
|
3549
|
+
Tr.displayName = "NavigationWrapper";
|
|
3549
3550
|
const Ic = ({
|
|
3550
3551
|
onRequestClose: e,
|
|
3551
3552
|
navigation: t
|
|
3552
3553
|
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3553
|
-
/* @__PURE__ */ s.jsxs(
|
|
3554
|
+
/* @__PURE__ */ s.jsxs(Tr, { children: [
|
|
3554
3555
|
/* @__PURE__ */ s.jsx(A.Target, { name: "navigation-before" }),
|
|
3555
3556
|
t.map((r) => /* @__PURE__ */ s.jsx(
|
|
3556
3557
|
rt,
|
|
@@ -3562,12 +3563,12 @@ const Ic = ({
|
|
|
3562
3563
|
/* @__PURE__ */ s.jsx(A.Target, { name: "navigation-after" })
|
|
3563
3564
|
] }),
|
|
3564
3565
|
/* @__PURE__ */ s.jsx(
|
|
3565
|
-
|
|
3566
|
+
Xt,
|
|
3566
3567
|
{
|
|
3567
3568
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
3568
3569
|
"aria-describedby": void 0,
|
|
3569
3570
|
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
3570
|
-
/* @__PURE__ */ s.jsx(
|
|
3571
|
+
/* @__PURE__ */ s.jsx(Jt, { children: /* @__PURE__ */ s.jsx(er, { children: "Navigation" }) }),
|
|
3571
3572
|
t.map((r) => /* @__PURE__ */ s.jsx(
|
|
3572
3573
|
rt,
|
|
3573
3574
|
{
|
|
@@ -3580,9 +3581,9 @@ const Ic = ({
|
|
|
3580
3581
|
}
|
|
3581
3582
|
)
|
|
3582
3583
|
] }), Rc = ({ children: e }) => {
|
|
3583
|
-
const [t, r] = G(!1), { navigation: n } =
|
|
3584
|
+
const [t, r] = G(!1), { navigation: n } = Qt(), o = n.length > 0, a = Re().state === "loading", { options: i } = M();
|
|
3584
3585
|
return /* @__PURE__ */ s.jsxs(
|
|
3585
|
-
|
|
3586
|
+
Zr,
|
|
3586
3587
|
{
|
|
3587
3588
|
direction: i.site?.dir === "rtl" ? "right" : "left",
|
|
3588
3589
|
open: t,
|
|
@@ -3595,7 +3596,7 @@ const Ic = ({
|
|
|
3595
3596
|
navigation: n
|
|
3596
3597
|
}
|
|
3597
3598
|
),
|
|
3598
|
-
o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(
|
|
3599
|
+
o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(Cc, { className: "flex items-center gap-2 px-4", children: [
|
|
3599
3600
|
/* @__PURE__ */ s.jsx(Yn, { size: 16, strokeWidth: 1.5 }),
|
|
3600
3601
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
3601
3602
|
] }) }),
|
|
@@ -3603,7 +3604,7 @@ const Ic = ({
|
|
|
3603
3604
|
"main",
|
|
3604
3605
|
{
|
|
3605
3606
|
"data-pagefind-body": !0,
|
|
3606
|
-
className:
|
|
3607
|
+
className: O(
|
|
3607
3608
|
"px-4 lg:pe-8 lg:px-8",
|
|
3608
3609
|
!o && "col-span-full",
|
|
3609
3610
|
a && "animate-pulse"
|
|
@@ -3618,7 +3619,7 @@ const Ic = ({
|
|
|
3618
3619
|
]
|
|
3619
3620
|
}
|
|
3620
3621
|
);
|
|
3621
|
-
}, Dc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(
|
|
3622
|
+
}, Dc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(Yt, {}) }), Mc = ({ children: e }) => {
|
|
3622
3623
|
const { meta: t, authentication: r, options: n } = M(), o = xe();
|
|
3623
3624
|
return Pn(), lc(), F(() => {
|
|
3624
3625
|
r?.onPageLoad?.();
|
|
@@ -3639,17 +3640,17 @@ const Ic = ({
|
|
|
3639
3640
|
t?.favicon && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: t.favicon })
|
|
3640
3641
|
] }),
|
|
3641
3642
|
/* @__PURE__ */ s.jsx(A.Target, { name: "layout-before-head" }),
|
|
3642
|
-
/* @__PURE__ */ s.jsx(
|
|
3643
|
+
/* @__PURE__ */ s.jsx(Sr, {}),
|
|
3643
3644
|
/* @__PURE__ */ s.jsx(A.Target, { name: "layout-after-head" }),
|
|
3644
3645
|
/* @__PURE__ */ s.jsx(
|
|
3645
3646
|
"div",
|
|
3646
3647
|
{
|
|
3647
|
-
className:
|
|
3648
|
+
className: O(
|
|
3648
3649
|
"grid max-w-screen-2xl w-full lg:mx-auto",
|
|
3649
3650
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
3650
3651
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
3651
3652
|
),
|
|
3652
|
-
children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(Dc, {}), children: /* @__PURE__ */ s.jsx(Rc, { children: e ?? /* @__PURE__ */ s.jsx(
|
|
3653
|
+
children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(Dc, {}), children: /* @__PURE__ */ s.jsx(Rc, { children: e ?? /* @__PURE__ */ s.jsx(Dt, {}) }) })
|
|
3653
3654
|
}
|
|
3654
3655
|
),
|
|
3655
3656
|
/* @__PURE__ */ s.jsx(hc, {})
|
|
@@ -3795,14 +3796,14 @@ class Qc extends Dn {
|
|
|
3795
3796
|
} = this.state;
|
|
3796
3797
|
let u = t;
|
|
3797
3798
|
if (a) {
|
|
3798
|
-
const
|
|
3799
|
+
const p = {
|
|
3799
3800
|
error: i,
|
|
3800
3801
|
resetErrorBoundary: this.resetErrorBoundary
|
|
3801
3802
|
};
|
|
3802
3803
|
if (typeof r == "function")
|
|
3803
|
-
u = r(
|
|
3804
|
+
u = r(p);
|
|
3804
3805
|
else if (n)
|
|
3805
|
-
u = nt(n,
|
|
3806
|
+
u = nt(n, p);
|
|
3806
3807
|
else if (o !== void 0)
|
|
3807
3808
|
u = o;
|
|
3808
3809
|
else
|
|
@@ -3821,7 +3822,7 @@ function Bc() {
|
|
|
3821
3822
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
3822
3823
|
return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
|
|
3823
3824
|
}
|
|
3824
|
-
let
|
|
3825
|
+
let Kc = () => ({
|
|
3825
3826
|
emit(e, ...t) {
|
|
3826
3827
|
for (let r = this.events[e] || [], n = 0, o = r.length; n < o; n++)
|
|
3827
3828
|
r[n](...t);
|
|
@@ -3833,7 +3834,7 @@ let Hc = () => ({
|
|
|
3833
3834
|
};
|
|
3834
3835
|
}
|
|
3835
3836
|
});
|
|
3836
|
-
const
|
|
3837
|
+
const Hc = (e) => Object.entries(e);
|
|
3837
3838
|
class Wc {
|
|
3838
3839
|
plugins;
|
|
3839
3840
|
navigation;
|
|
@@ -3843,7 +3844,7 @@ class Wc {
|
|
|
3843
3844
|
queryClient;
|
|
3844
3845
|
options;
|
|
3845
3846
|
navigationPlugins;
|
|
3846
|
-
emitter =
|
|
3847
|
+
emitter = Kc();
|
|
3847
3848
|
constructor(t, r) {
|
|
3848
3849
|
const n = (t.protectedRoutes ?? []).concat(
|
|
3849
3850
|
t.plugins?.flatMap(
|
|
@@ -3851,7 +3852,7 @@ class Wc {
|
|
|
3851
3852
|
) ?? []
|
|
3852
3853
|
);
|
|
3853
3854
|
this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ot), this.authentication = this.plugins.find(Jn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
|
|
3854
|
-
Xn(o) &&
|
|
3855
|
+
Xn(o) && Hc(o.events).forEach(([a, i]) => {
|
|
3855
3856
|
this.emitter.on(a, i);
|
|
3856
3857
|
});
|
|
3857
3858
|
}), vn.subscribe((o, a) => {
|
|
@@ -3878,7 +3879,7 @@ class Wc {
|
|
|
3878
3879
|
(n) => n.getNavigation?.(ee(t), this)
|
|
3879
3880
|
)
|
|
3880
3881
|
)).flatMap((n) => n ?? []);
|
|
3881
|
-
getProfileMenuItems = () => this.plugins.filter((r) =>
|
|
3882
|
+
getProfileMenuItems = () => this.plugins.filter((r) => Gt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(Vc(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
|
|
3882
3883
|
signRequest = async (t) => {
|
|
3883
3884
|
if (!this.authentication)
|
|
3884
3885
|
throw new Error("No authentication provider configured");
|
|
@@ -3890,14 +3891,14 @@ const Vc = (e) => (t, r) => {
|
|
|
3890
3891
|
return n - o;
|
|
3891
3892
|
};
|
|
3892
3893
|
function Yc({ error: e, resetErrorBoundary: t }) {
|
|
3893
|
-
return /* @__PURE__ */ s.jsx(
|
|
3894
|
+
return /* @__PURE__ */ s.jsx(Bt, { error: e });
|
|
3894
3895
|
}
|
|
3895
3896
|
const me = globalThis;
|
|
3896
3897
|
(!me.requestIdleCallback || !me.cancelIdleCallback) && (me.requestIdleCallback = (e) => setTimeout(e, 1), me.cancelIdleCallback = clearTimeout);
|
|
3897
3898
|
const Nr = {
|
|
3898
|
-
Header:
|
|
3899
|
+
Header: Sr
|
|
3899
3900
|
}, Gc = Me(Nr), Jc = Gc.Provider, Xc = () => {
|
|
3900
|
-
const e = xe(), t = M(), r =
|
|
3901
|
+
const e = xe(), t = M(), r = H(void 0);
|
|
3901
3902
|
return F(() => {
|
|
3902
3903
|
t.emitEvent("location", {
|
|
3903
3904
|
from: r.current,
|
|
@@ -3911,8 +3912,8 @@ const Nr = {
|
|
|
3911
3912
|
queryFn: async () => (await t.initialize(), !0),
|
|
3912
3913
|
queryKey: ["zudoku-initialize", xn]
|
|
3913
3914
|
}), /* @__PURE__ */ s.jsx(_n.Provider, { value: t, children: e }));
|
|
3914
|
-
let
|
|
3915
|
-
const
|
|
3915
|
+
let Ot;
|
|
3916
|
+
const Or = Vt(
|
|
3916
3917
|
({ children: e, ...t }) => {
|
|
3917
3918
|
const r = $e(
|
|
3918
3919
|
() => ({ ...Nr, ...t.overrides }),
|
|
@@ -3924,39 +3925,39 @@ const Ar = Yt(
|
|
|
3924
3925
|
(l, g) => ({ ...l, ...g }),
|
|
3925
3926
|
{}
|
|
3926
3927
|
),
|
|
3927
|
-
...
|
|
3928
|
+
...Cn,
|
|
3928
3929
|
...t.mdx?.components
|
|
3929
|
-
}), [t.mdx?.components, t.plugins]), { stagger: a } = Mn(Ze), [i, u] = G(!1),
|
|
3930
|
+
}), [t.mdx?.components, t.plugins]), { stagger: a } = Mn(Ze), [i, u] = G(!1), p = $e(
|
|
3930
3931
|
() => i ? { stagger: !0 } : { stagger: a },
|
|
3931
3932
|
[a, i]
|
|
3932
|
-
), f = Re(),
|
|
3933
|
+
), f = Re(), x = qt();
|
|
3933
3934
|
F(() => {
|
|
3934
3935
|
i || u(!0);
|
|
3935
|
-
}, [i, f.location]),
|
|
3936
|
-
const
|
|
3936
|
+
}, [i, f.location]), Ot ??= new Wc(t, x);
|
|
3937
|
+
const h = t.plugins?.flatMap(
|
|
3937
3938
|
(m) => no(m) ? m.getHead?.({ location: n }) ?? [] : []
|
|
3938
3939
|
).map((m, l) => /* @__PURE__ */ s.jsx(Ie, { children: m }, l));
|
|
3939
3940
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3940
|
-
|
|
3941
|
-
/* @__PURE__ */ s.jsx(Ze.Provider, { value:
|
|
3941
|
+
h,
|
|
3942
|
+
/* @__PURE__ */ s.jsx(Ze.Provider, { value: p, children: /* @__PURE__ */ s.jsxs(eu, { context: Ot, children: [
|
|
3942
3943
|
/* @__PURE__ */ s.jsx(Xc, {}),
|
|
3943
|
-
/* @__PURE__ */ s.jsx(
|
|
3944
|
+
/* @__PURE__ */ s.jsx(Tn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(en, { components: o, children: /* @__PURE__ */ s.jsx(tn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Jc, { value: r, children: /* @__PURE__ */ s.jsx(Nn, { children: e ?? /* @__PURE__ */ s.jsx(Dt, {}) }) }) }) }) })
|
|
3944
3945
|
] }) })
|
|
3945
3946
|
] });
|
|
3946
3947
|
}
|
|
3947
3948
|
);
|
|
3948
|
-
|
|
3949
|
-
const
|
|
3950
|
-
|
|
3951
|
-
const bu = Mc, wu =
|
|
3949
|
+
Or.displayName = "ZudokoInner";
|
|
3950
|
+
const Ar = (e) => /* @__PURE__ */ s.jsx(Qc, { FallbackComponent: Yc, children: /* @__PURE__ */ s.jsx(Or, { ...e }) });
|
|
3951
|
+
Ar.displayName = "Zudoku";
|
|
3952
|
+
const bu = Mc, wu = On, ju = jo, ku = zo, $u = Po, zu = Xr, Pu = Ie, Eu = Uc, Su = In, Zu = An, Cu = Yt, Tu = te, Nu = Ht, Ou = De, Au = uc, Iu = Ar, Ru = Kt, Du = rn, tu = M, Mu = oe, Fu = bn, qu = wn, Uu = Rt;
|
|
3952
3953
|
export {
|
|
3953
|
-
|
|
3954
|
+
Nu as B,
|
|
3954
3955
|
Su as C,
|
|
3955
3956
|
Pu as H,
|
|
3956
|
-
|
|
3957
|
+
Ou as L,
|
|
3957
3958
|
Zu as M,
|
|
3958
3959
|
wu as R,
|
|
3959
|
-
|
|
3960
|
+
Cu as S,
|
|
3960
3961
|
Ru as T,
|
|
3961
3962
|
Iu as Z,
|
|
3962
3963
|
zc as a,
|
|
@@ -3967,13 +3968,13 @@ export {
|
|
|
3967
3968
|
$u as f,
|
|
3968
3969
|
zu as g,
|
|
3969
3970
|
Eu as h,
|
|
3970
|
-
|
|
3971
|
+
Tu as i,
|
|
3971
3972
|
Au as j,
|
|
3972
3973
|
Du as k,
|
|
3973
3974
|
Fu as l,
|
|
3974
3975
|
qu as m,
|
|
3975
3976
|
Uu as n,
|
|
3976
|
-
|
|
3977
|
+
Hc as o,
|
|
3977
3978
|
tu as u
|
|
3978
3979
|
};
|
|
3979
|
-
//# sourceMappingURL=index-
|
|
3980
|
+
//# sourceMappingURL=index-DKCEJ4Kd.js.map
|