@hype-stack/cli 0.2.0 → 0.2.1

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.
Files changed (45) hide show
  1. package/dist/{cli-CPOgUkiJ.js → cli-B_p3GdS8.js} +2047 -1258
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/commands/compose.d.ts +14 -1
  4. package/dist/commands/compose.d.ts.map +1 -1
  5. package/dist/commands/create.d.ts.map +1 -1
  6. package/dist/commands/init.d.ts +23 -1
  7. package/dist/commands/init.d.ts.map +1 -1
  8. package/dist/commands/install-helpers.d.ts +41 -0
  9. package/dist/commands/install-helpers.d.ts.map +1 -0
  10. package/dist/commands/template.d.ts +13 -0
  11. package/dist/commands/template.d.ts.map +1 -0
  12. package/dist/config/bin.js +453 -454
  13. package/dist/config/env.d.ts +0 -1
  14. package/dist/config/env.d.ts.map +1 -1
  15. package/dist/constants/constants.d.ts +1 -3
  16. package/dist/constants/constants.d.ts.map +1 -1
  17. package/dist/constants/themes.d.ts +40 -0
  18. package/dist/constants/themes.d.ts.map +1 -0
  19. package/dist/core/apply-theme.d.ts +17 -0
  20. package/dist/core/apply-theme.d.ts.map +1 -0
  21. package/dist/core/codemods.d.ts +42 -3
  22. package/dist/core/codemods.d.ts.map +1 -1
  23. package/dist/core/installer.d.ts +50 -3
  24. package/dist/core/installer.d.ts.map +1 -1
  25. package/dist/core/license.d.ts +5 -0
  26. package/dist/core/license.d.ts.map +1 -1
  27. package/dist/core/login.d.ts.map +1 -1
  28. package/dist/core/pack-categories.d.ts +40 -0
  29. package/dist/core/pack-categories.d.ts.map +1 -0
  30. package/dist/core/post-clone.d.ts.map +1 -1
  31. package/dist/core/stack-config.d.ts.map +1 -1
  32. package/dist/core/templates.d.ts +15 -0
  33. package/dist/core/templates.d.ts.map +1 -0
  34. package/dist/core/tracking.d.ts +9 -0
  35. package/dist/core/tracking.d.ts.map +1 -0
  36. package/dist/core/variants.d.ts +47 -0
  37. package/dist/core/variants.d.ts.map +1 -0
  38. package/dist/index.js +2 -2
  39. package/dist/themes.js +833 -0
  40. package/dist/types/types.d.ts +127 -1
  41. package/dist/types/types.d.ts.map +1 -1
  42. package/dist/ui/banner.d.ts.map +1 -1
  43. package/dist/ui/theme.d.ts +13 -0
  44. package/dist/ui/theme.d.ts.map +1 -1
  45. package/package.json +31 -1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as e } from "../cli-CPOgUkiJ.js";
2
+ import { t as e } from "../cli-B_p3GdS8.js";
3
3
  Object.freeze({ status: "aborted" });
4
4
  function t(e, t, n) {
5
5
  function r(n, r) {
@@ -264,26 +264,26 @@ function b(e, t = 0) {
264
264
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
265
265
  return !1;
266
266
  }
267
- function me(e, t) {
267
+ function x(e, t) {
268
268
  return t.map((t) => {
269
269
  var n;
270
270
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
271
271
  });
272
272
  }
273
- function x(e) {
273
+ function S(e) {
274
274
  return typeof e == "string" ? e : e?.message;
275
275
  }
276
- function S(e, t, n) {
276
+ function C(e, t, n) {
277
277
  let r = {
278
278
  ...e,
279
279
  path: e.path ?? []
280
280
  };
281
- return e.message || (r.message = x(e.inst?._zod.def?.error?.(e)) ?? x(t?.error?.(e)) ?? x(n.customError?.(e)) ?? x(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
281
+ return e.message || (r.message = S(e.inst?._zod.def?.error?.(e)) ?? S(t?.error?.(e)) ?? S(n.customError?.(e)) ?? S(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
282
282
  }
283
- function C(e) {
283
+ function w(e) {
284
284
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
285
285
  }
286
- function w(...e) {
286
+ function T(...e) {
287
287
  let [t, n, r] = e;
288
288
  return typeof t == "string" ? {
289
289
  message: t,
@@ -294,7 +294,7 @@ function w(...e) {
294
294
  }
295
295
  //#endregion
296
296
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
297
- var he = (e, t) => {
297
+ var me = (e, t) => {
298
298
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
299
299
  value: e._zod,
300
300
  enumerable: !1
@@ -305,8 +305,8 @@ var he = (e, t) => {
305
305
  value: () => e.message,
306
306
  enumerable: !1
307
307
  });
308
- }, ge = t("$ZodError", he), _e = t("$ZodError", he, { Parent: Error });
309
- function ve(e, t = (e) => e.message) {
308
+ }, he = t("$ZodError", me), ge = t("$ZodError", me, { Parent: Error });
309
+ function _e(e, t = (e) => e.message) {
310
310
  let n = {}, r = [];
311
311
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
312
312
  return {
@@ -314,7 +314,7 @@ function ve(e, t = (e) => e.message) {
314
314
  fieldErrors: n
315
315
  };
316
316
  }
317
- function ye(e, t = (e) => e.message) {
317
+ function ve(e, t = (e) => e.message) {
318
318
  let n = { _errors: [] }, r = (e) => {
319
319
  for (let i of e.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((e) => r({ issues: e }));
320
320
  else if (i.code === "invalid_key") r({ issues: i.issues });
@@ -330,40 +330,40 @@ function ye(e, t = (e) => e.message) {
330
330
  };
331
331
  return r(e), n;
332
332
  }
333
- function be(e) {
333
+ function ye(e) {
334
334
  let t = [], n = e.map((e) => typeof e == "object" ? e.key : e);
335
335
  for (let e of n) typeof e == "number" ? t.push(`[${e}]`) : typeof e == "symbol" ? t.push(`[${JSON.stringify(String(e))}]`) : /[^\w$]/.test(e) ? t.push(`[${JSON.stringify(e)}]`) : (t.length && t.push("."), t.push(e));
336
336
  return t.join("");
337
337
  }
338
- function xe(e) {
338
+ function be(e) {
339
339
  let t = [], n = [...e.issues].sort((e, t) => (e.path ?? []).length - (t.path ?? []).length);
340
- for (let e of n) t.push(`✖ ${e.message}`), e.path?.length && t.push(` → at ${be(e.path)}`);
340
+ for (let e of n) t.push(`✖ ${e.message}`), e.path?.length && t.push(` → at ${ye(e.path)}`);
341
341
  return t.join("\n");
342
342
  }
343
343
  //#endregion
344
344
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
345
- var T = (e) => (t, r, i, o) => {
345
+ var E = (e) => (t, r, i, o) => {
346
346
  let s = i ? Object.assign(i, { async: !1 }) : { async: !1 }, c = t._zod.run({
347
347
  value: r,
348
348
  issues: []
349
349
  }, s);
350
350
  if (c instanceof Promise) throw new n();
351
351
  if (c.issues.length) {
352
- let t = new (o?.Err ?? e)(c.issues.map((e) => S(e, s, a())));
352
+ let t = new (o?.Err ?? e)(c.issues.map((e) => C(e, s, a())));
353
353
  throw ne(t, o?.callee), t;
354
354
  }
355
355
  return c.value;
356
- }, E = (e) => async (t, n, r, i) => {
356
+ }, D = (e) => async (t, n, r, i) => {
357
357
  let o = r ? Object.assign(r, { async: !0 }) : { async: !0 }, s = t._zod.run({
358
358
  value: n,
359
359
  issues: []
360
360
  }, o);
361
361
  if (s instanceof Promise && (s = await s), s.issues.length) {
362
- let t = new (i?.Err ?? e)(s.issues.map((e) => S(e, o, a())));
362
+ let t = new (i?.Err ?? e)(s.issues.map((e) => C(e, o, a())));
363
363
  throw ne(t, i?.callee), t;
364
364
  }
365
365
  return s.value;
366
- }, D = (e) => (t, r, i) => {
366
+ }, O = (e) => (t, r, i) => {
367
367
  let o = i ? {
368
368
  ...i,
369
369
  async: !1
@@ -374,62 +374,62 @@ var T = (e) => (t, r, i, o) => {
374
374
  if (s instanceof Promise) throw new n();
375
375
  return s.issues.length ? {
376
376
  success: !1,
377
- error: new (e ?? ge)(s.issues.map((e) => S(e, o, a())))
377
+ error: new (e ?? he)(s.issues.map((e) => C(e, o, a())))
378
378
  } : {
379
379
  success: !0,
380
380
  data: s.value
381
381
  };
382
- }, Se = /* @__PURE__ */ D(_e), O = (e) => async (t, n, r) => {
382
+ }, xe = /* @__PURE__ */ O(ge), k = (e) => async (t, n, r) => {
383
383
  let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
384
384
  value: n,
385
385
  issues: []
386
386
  }, i);
387
387
  return o instanceof Promise && (o = await o), o.issues.length ? {
388
388
  success: !1,
389
- error: new e(o.issues.map((e) => S(e, i, a())))
389
+ error: new e(o.issues.map((e) => C(e, i, a())))
390
390
  } : {
391
391
  success: !0,
392
392
  data: o.value
393
393
  };
394
- }, Ce = /* @__PURE__ */ O(_e), we = (e) => (t, n, r) => {
395
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
396
- return T(e)(t, n, i);
397
- }, Te = (e) => (t, n, r) => T(e)(t, n, r), Ee = (e) => async (t, n, r) => {
394
+ }, Se = /* @__PURE__ */ k(ge), Ce = (e) => (t, n, r) => {
398
395
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
399
396
  return E(e)(t, n, i);
400
- }, De = (e) => async (t, n, r) => E(e)(t, n, r), Oe = (e) => (t, n, r) => {
397
+ }, we = (e) => (t, n, r) => E(e)(t, n, r), Te = (e) => async (t, n, r) => {
401
398
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
402
399
  return D(e)(t, n, i);
403
- }, ke = (e) => (t, n, r) => D(e)(t, n, r), Ae = (e) => async (t, n, r) => {
400
+ }, Ee = (e) => async (t, n, r) => D(e)(t, n, r), De = (e) => (t, n, r) => {
404
401
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
405
402
  return O(e)(t, n, i);
406
- }, je = (e) => async (t, n, r) => O(e)(t, n, r), Me = /^[cC][^\s-]{8,}$/, Ne = /^[0-9a-z]+$/, Pe = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Fe = /^[0-9a-vA-V]{20}$/, Ie = /^[A-Za-z0-9]{27}$/, Le = /^[a-zA-Z0-9_-]{21}$/, Re = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ze = /^([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})$/, Be = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ve = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, He = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
407
- function Ue() {
408
- return new RegExp(He, "u");
403
+ }, Oe = (e) => (t, n, r) => O(e)(t, n, r), ke = (e) => async (t, n, r) => {
404
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
405
+ return k(e)(t, n, i);
406
+ }, Ae = (e) => async (t, n, r) => k(e)(t, n, r), je = /^[cC][^\s-]{8,}$/, Me = /^[0-9a-z]+$/, Ne = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Pe = /^[0-9a-vA-V]{20}$/, Fe = /^[A-Za-z0-9]{27}$/, Ie = /^[a-zA-Z0-9_-]{21}$/, Le = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Re = /^([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})$/, ze = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Be = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ve = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
407
+ function He() {
408
+ return new RegExp(Ve, "u");
409
409
  }
410
- var We = /^(?:(?: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])$/, Ge = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Ke = /^((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])$/, qe = /^(([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])$/, Je = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Xe = /^\+[1-9]\d{6,14}$/, Ze = "(?:(?:\\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])))", Qe = /* @__PURE__ */ RegExp(`^${Ze}$`);
411
- function $e(e) {
410
+ var Ue = /^(?:(?: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])$/, We = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Ge = /^((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])$/, Ke = /^(([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])$/, qe = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Je = /^[A-Za-z0-9_-]*$/, Ye = /^\+[1-9]\d{6,14}$/, Xe = "(?:(?:\\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])))", Ze = /* @__PURE__ */ RegExp(`^${Xe}$`);
411
+ function Qe(e) {
412
412
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
413
413
  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+)?)?`;
414
414
  }
415
- function et(e) {
416
- return RegExp(`^${$e(e)}$`);
415
+ function $e(e) {
416
+ return RegExp(`^${Qe(e)}$`);
417
417
  }
418
- function tt(e) {
419
- let t = $e({ precision: e.precision }), n = ["Z"];
418
+ function et(e) {
419
+ let t = Qe({ precision: e.precision }), n = ["Z"];
420
420
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
421
421
  let r = `${t}(?:${n.join("|")})`;
422
- return RegExp(`^${Ze}T(?:${r})$`);
422
+ return RegExp(`^${Xe}T(?:${r})$`);
423
423
  }
424
- var nt = (e) => {
424
+ var tt = (e) => {
425
425
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
426
426
  return RegExp(`^${t}$`);
427
- }, rt = /^[^A-Z]*$/, it = /^[^a-z]*$/, k = /* @__PURE__ */ t("$ZodCheck", (e, t) => {
427
+ }, nt = /^[^A-Z]*$/, rt = /^[^a-z]*$/, A = /* @__PURE__ */ t("$ZodCheck", (e, t) => {
428
428
  var n;
429
429
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
430
- }), at = /* @__PURE__ */ t("$ZodCheckMaxLength", (e, t) => {
430
+ }), it = /* @__PURE__ */ t("$ZodCheckMaxLength", (e, t) => {
431
431
  var n;
432
- k.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
432
+ A.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
433
433
  let t = e.value;
434
434
  return !l(t) && t.length !== void 0;
435
435
  }), e._zod.onattach.push((e) => {
@@ -438,7 +438,7 @@ var nt = (e) => {
438
438
  }), e._zod.check = (n) => {
439
439
  let r = n.value;
440
440
  if (r.length <= t.maximum) return;
441
- let i = C(r);
441
+ let i = w(r);
442
442
  n.issues.push({
443
443
  origin: i,
444
444
  code: "too_big",
@@ -449,9 +449,9 @@ var nt = (e) => {
449
449
  continue: !t.abort
450
450
  });
451
451
  };
452
- }), ot = /* @__PURE__ */ t("$ZodCheckMinLength", (e, t) => {
452
+ }), at = /* @__PURE__ */ t("$ZodCheckMinLength", (e, t) => {
453
453
  var n;
454
- k.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
454
+ A.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
455
455
  let t = e.value;
456
456
  return !l(t) && t.length !== void 0;
457
457
  }), e._zod.onattach.push((e) => {
@@ -460,7 +460,7 @@ var nt = (e) => {
460
460
  }), e._zod.check = (n) => {
461
461
  let r = n.value;
462
462
  if (r.length >= t.minimum) return;
463
- let i = C(r);
463
+ let i = w(r);
464
464
  n.issues.push({
465
465
  origin: i,
466
466
  code: "too_small",
@@ -471,9 +471,9 @@ var nt = (e) => {
471
471
  continue: !t.abort
472
472
  });
473
473
  };
474
- }), st = /* @__PURE__ */ t("$ZodCheckLengthEquals", (e, t) => {
474
+ }), ot = /* @__PURE__ */ t("$ZodCheckLengthEquals", (e, t) => {
475
475
  var n;
476
- k.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
476
+ A.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
477
477
  let t = e.value;
478
478
  return !l(t) && t.length !== void 0;
479
479
  }), e._zod.onattach.push((e) => {
@@ -482,7 +482,7 @@ var nt = (e) => {
482
482
  }), e._zod.check = (n) => {
483
483
  let r = n.value, i = r.length;
484
484
  if (i === t.length) return;
485
- let a = C(r), o = i > t.length;
485
+ let a = w(r), o = i > t.length;
486
486
  n.issues.push({
487
487
  origin: a,
488
488
  ...o ? {
@@ -499,9 +499,9 @@ var nt = (e) => {
499
499
  continue: !t.abort
500
500
  });
501
501
  };
502
- }), A = /* @__PURE__ */ t("$ZodCheckStringFormat", (e, t) => {
502
+ }), j = /* @__PURE__ */ t("$ZodCheckStringFormat", (e, t) => {
503
503
  var n, r;
504
- k.init(e, t), e._zod.onattach.push((e) => {
504
+ A.init(e, t), e._zod.onattach.push((e) => {
505
505
  let n = e._zod.bag;
506
506
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
507
507
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -515,8 +515,8 @@ var nt = (e) => {
515
515
  continue: !t.abort
516
516
  });
517
517
  }) : (r = e._zod).check ?? (r.check = () => {});
518
- }), ct = /* @__PURE__ */ t("$ZodCheckRegex", (e, t) => {
519
- A.init(e, t), e._zod.check = (n) => {
518
+ }), st = /* @__PURE__ */ t("$ZodCheckRegex", (e, t) => {
519
+ j.init(e, t), e._zod.check = (n) => {
520
520
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
521
521
  origin: "string",
522
522
  code: "invalid_format",
@@ -527,12 +527,12 @@ var nt = (e) => {
527
527
  continue: !t.abort
528
528
  });
529
529
  };
530
- }), lt = /* @__PURE__ */ t("$ZodCheckLowerCase", (e, t) => {
531
- t.pattern ??= rt, A.init(e, t);
532
- }), ut = /* @__PURE__ */ t("$ZodCheckUpperCase", (e, t) => {
533
- t.pattern ??= it, A.init(e, t);
534
- }), dt = /* @__PURE__ */ t("$ZodCheckIncludes", (e, t) => {
535
- k.init(e, t);
530
+ }), ct = /* @__PURE__ */ t("$ZodCheckLowerCase", (e, t) => {
531
+ t.pattern ??= nt, j.init(e, t);
532
+ }), lt = /* @__PURE__ */ t("$ZodCheckUpperCase", (e, t) => {
533
+ t.pattern ??= rt, j.init(e, t);
534
+ }), ut = /* @__PURE__ */ t("$ZodCheckIncludes", (e, t) => {
535
+ A.init(e, t);
536
536
  let n = _(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
537
537
  t.pattern = r, e._zod.onattach.push((e) => {
538
538
  let t = e._zod.bag;
@@ -548,8 +548,8 @@ var nt = (e) => {
548
548
  continue: !t.abort
549
549
  });
550
550
  };
551
- }), ft = /* @__PURE__ */ t("$ZodCheckStartsWith", (e, t) => {
552
- k.init(e, t);
551
+ }), dt = /* @__PURE__ */ t("$ZodCheckStartsWith", (e, t) => {
552
+ A.init(e, t);
553
553
  let n = RegExp(`^${_(t.prefix)}.*`);
554
554
  t.pattern ??= n, e._zod.onattach.push((e) => {
555
555
  let t = e._zod.bag;
@@ -565,8 +565,8 @@ var nt = (e) => {
565
565
  continue: !t.abort
566
566
  });
567
567
  };
568
- }), pt = /* @__PURE__ */ t("$ZodCheckEndsWith", (e, t) => {
569
- k.init(e, t);
568
+ }), ft = /* @__PURE__ */ t("$ZodCheckEndsWith", (e, t) => {
569
+ A.init(e, t);
570
570
  let n = RegExp(`.*${_(t.suffix)}$`);
571
571
  t.pattern ??= n, e._zod.onattach.push((e) => {
572
572
  let t = e._zod.bag;
@@ -582,11 +582,11 @@ var nt = (e) => {
582
582
  continue: !t.abort
583
583
  });
584
584
  };
585
- }), mt = /* @__PURE__ */ t("$ZodCheckOverwrite", (e, t) => {
586
- k.init(e, t), e._zod.check = (e) => {
585
+ }), pt = /* @__PURE__ */ t("$ZodCheckOverwrite", (e, t) => {
586
+ A.init(e, t), e._zod.check = (e) => {
587
587
  e.value = t.tx(e.value);
588
588
  };
589
- }), ht = class {
589
+ }), mt = class {
590
590
  constructor(e = []) {
591
591
  this.content = [], this.indent = 0, this && (this.args = e);
592
592
  }
@@ -605,13 +605,13 @@ var nt = (e) => {
605
605
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
606
606
  return new e(...t, n.join("\n"));
607
607
  }
608
- }, gt = {
608
+ }, ht = {
609
609
  major: 4,
610
610
  minor: 3,
611
611
  patch: 6
612
- }, j = /* @__PURE__ */ t("$ZodType", (e, t) => {
612
+ }, M = /* @__PURE__ */ t("$ZodType", (e, t) => {
613
613
  var r;
614
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = gt;
614
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ht;
615
615
  let i = [...e._zod.def.checks ?? []];
616
616
  e._zod.traits.has("$ZodCheck") && i.unshift(e);
617
617
  for (let t of i) for (let n of t._zod.onattach) n(e);
@@ -668,17 +668,17 @@ var nt = (e) => {
668
668
  f(e, "~standard", () => ({
669
669
  validate: (t) => {
670
670
  try {
671
- let n = Se(e, t);
671
+ let n = xe(e, t);
672
672
  return n.success ? { value: n.data } : { issues: n.error?.issues };
673
673
  } catch {
674
- return Ce(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
674
+ return Se(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
675
675
  }
676
676
  },
677
677
  vendor: "zod",
678
678
  version: 1
679
679
  }));
680
- }), M = /* @__PURE__ */ t("$ZodString", (e, t) => {
681
- j.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? nt(e._zod.bag), e._zod.parse = (n, r) => {
680
+ }), N = /* @__PURE__ */ t("$ZodString", (e, t) => {
681
+ M.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tt(e._zod.bag), e._zod.parse = (n, r) => {
682
682
  if (t.coerce) try {
683
683
  n.value = String(n.value);
684
684
  } catch {}
@@ -689,11 +689,11 @@ var nt = (e) => {
689
689
  inst: e
690
690
  }), n;
691
691
  };
692
- }), N = /* @__PURE__ */ t("$ZodStringFormat", (e, t) => {
693
- A.init(e, t), M.init(e, t);
694
- }), _t = /* @__PURE__ */ t("$ZodGUID", (e, t) => {
695
- t.pattern ??= ze, N.init(e, t);
696
- }), vt = /* @__PURE__ */ t("$ZodUUID", (e, t) => {
692
+ }), P = /* @__PURE__ */ t("$ZodStringFormat", (e, t) => {
693
+ j.init(e, t), N.init(e, t);
694
+ }), gt = /* @__PURE__ */ t("$ZodGUID", (e, t) => {
695
+ t.pattern ??= Re, P.init(e, t);
696
+ }), _t = /* @__PURE__ */ t("$ZodUUID", (e, t) => {
697
697
  if (t.version) {
698
698
  let e = {
699
699
  v1: 1,
@@ -706,13 +706,13 @@ var nt = (e) => {
706
706
  v8: 8
707
707
  }[t.version];
708
708
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
709
- t.pattern ??= Be(e);
710
- } else t.pattern ??= Be();
711
- N.init(e, t);
712
- }), yt = /* @__PURE__ */ t("$ZodEmail", (e, t) => {
713
- t.pattern ??= Ve, N.init(e, t);
714
- }), bt = /* @__PURE__ */ t("$ZodURL", (e, t) => {
715
- N.init(e, t), e._zod.check = (n) => {
709
+ t.pattern ??= ze(e);
710
+ } else t.pattern ??= ze();
711
+ P.init(e, t);
712
+ }), vt = /* @__PURE__ */ t("$ZodEmail", (e, t) => {
713
+ t.pattern ??= Be, P.init(e, t);
714
+ }), yt = /* @__PURE__ */ t("$ZodURL", (e, t) => {
715
+ P.init(e, t), e._zod.check = (n) => {
716
716
  try {
717
717
  let r = n.value.trim(), i = new URL(r);
718
718
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
@@ -743,32 +743,32 @@ var nt = (e) => {
743
743
  });
744
744
  }
745
745
  };
746
- }), xt = /* @__PURE__ */ t("$ZodEmoji", (e, t) => {
747
- t.pattern ??= Ue(), N.init(e, t);
748
- }), St = /* @__PURE__ */ t("$ZodNanoID", (e, t) => {
749
- t.pattern ??= Le, N.init(e, t);
750
- }), Ct = /* @__PURE__ */ t("$ZodCUID", (e, t) => {
751
- t.pattern ??= Me, N.init(e, t);
752
- }), wt = /* @__PURE__ */ t("$ZodCUID2", (e, t) => {
753
- t.pattern ??= Ne, N.init(e, t);
754
- }), Tt = /* @__PURE__ */ t("$ZodULID", (e, t) => {
755
- t.pattern ??= Pe, N.init(e, t);
756
- }), Et = /* @__PURE__ */ t("$ZodXID", (e, t) => {
757
- t.pattern ??= Fe, N.init(e, t);
758
- }), Dt = /* @__PURE__ */ t("$ZodKSUID", (e, t) => {
759
- t.pattern ??= Ie, N.init(e, t);
760
- }), Ot = /* @__PURE__ */ t("$ZodISODateTime", (e, t) => {
761
- t.pattern ??= tt(t), N.init(e, t);
762
- }), kt = /* @__PURE__ */ t("$ZodISODate", (e, t) => {
763
- t.pattern ??= Qe, N.init(e, t);
764
- }), At = /* @__PURE__ */ t("$ZodISOTime", (e, t) => {
765
- t.pattern ??= et(t), N.init(e, t);
766
- }), jt = /* @__PURE__ */ t("$ZodISODuration", (e, t) => {
767
- t.pattern ??= Re, N.init(e, t);
768
- }), Mt = /* @__PURE__ */ t("$ZodIPv4", (e, t) => {
769
- t.pattern ??= We, N.init(e, t), e._zod.bag.format = "ipv4";
770
- }), Nt = /* @__PURE__ */ t("$ZodIPv6", (e, t) => {
771
- t.pattern ??= Ge, N.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
746
+ }), bt = /* @__PURE__ */ t("$ZodEmoji", (e, t) => {
747
+ t.pattern ??= He(), P.init(e, t);
748
+ }), xt = /* @__PURE__ */ t("$ZodNanoID", (e, t) => {
749
+ t.pattern ??= Ie, P.init(e, t);
750
+ }), St = /* @__PURE__ */ t("$ZodCUID", (e, t) => {
751
+ t.pattern ??= je, P.init(e, t);
752
+ }), Ct = /* @__PURE__ */ t("$ZodCUID2", (e, t) => {
753
+ t.pattern ??= Me, P.init(e, t);
754
+ }), wt = /* @__PURE__ */ t("$ZodULID", (e, t) => {
755
+ t.pattern ??= Ne, P.init(e, t);
756
+ }), Tt = /* @__PURE__ */ t("$ZodXID", (e, t) => {
757
+ t.pattern ??= Pe, P.init(e, t);
758
+ }), Et = /* @__PURE__ */ t("$ZodKSUID", (e, t) => {
759
+ t.pattern ??= Fe, P.init(e, t);
760
+ }), Dt = /* @__PURE__ */ t("$ZodISODateTime", (e, t) => {
761
+ t.pattern ??= et(t), P.init(e, t);
762
+ }), Ot = /* @__PURE__ */ t("$ZodISODate", (e, t) => {
763
+ t.pattern ??= Ze, P.init(e, t);
764
+ }), kt = /* @__PURE__ */ t("$ZodISOTime", (e, t) => {
765
+ t.pattern ??= $e(t), P.init(e, t);
766
+ }), At = /* @__PURE__ */ t("$ZodISODuration", (e, t) => {
767
+ t.pattern ??= Le, P.init(e, t);
768
+ }), jt = /* @__PURE__ */ t("$ZodIPv4", (e, t) => {
769
+ t.pattern ??= Ue, P.init(e, t), e._zod.bag.format = "ipv4";
770
+ }), Mt = /* @__PURE__ */ t("$ZodIPv6", (e, t) => {
771
+ t.pattern ??= We, P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
772
772
  try {
773
773
  new URL(`http://[${n.value}]`);
774
774
  } catch {
@@ -781,10 +781,10 @@ var nt = (e) => {
781
781
  });
782
782
  }
783
783
  };
784
- }), Pt = /* @__PURE__ */ t("$ZodCIDRv4", (e, t) => {
785
- t.pattern ??= Ke, N.init(e, t);
786
- }), Ft = /* @__PURE__ */ t("$ZodCIDRv6", (e, t) => {
787
- t.pattern ??= qe, N.init(e, t), e._zod.check = (n) => {
784
+ }), Nt = /* @__PURE__ */ t("$ZodCIDRv4", (e, t) => {
785
+ t.pattern ??= Ge, P.init(e, t);
786
+ }), Pt = /* @__PURE__ */ t("$ZodCIDRv6", (e, t) => {
787
+ t.pattern ??= Ke, P.init(e, t), e._zod.check = (n) => {
788
788
  let r = n.value.split("/");
789
789
  try {
790
790
  if (r.length !== 2) throw Error();
@@ -804,7 +804,7 @@ var nt = (e) => {
804
804
  }
805
805
  };
806
806
  });
807
- function It(e) {
807
+ function Ft(e) {
808
808
  if (e === "") return !0;
809
809
  if (e.length % 4 != 0) return !1;
810
810
  try {
@@ -813,9 +813,9 @@ function It(e) {
813
813
  return !1;
814
814
  }
815
815
  }
816
- var Lt = /* @__PURE__ */ t("$ZodBase64", (e, t) => {
817
- t.pattern ??= Je, N.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
818
- It(n.value) || n.issues.push({
816
+ var It = /* @__PURE__ */ t("$ZodBase64", (e, t) => {
817
+ t.pattern ??= qe, P.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
818
+ Ft(n.value) || n.issues.push({
819
819
  code: "invalid_format",
820
820
  format: "base64",
821
821
  input: n.value,
@@ -824,14 +824,14 @@ var Lt = /* @__PURE__ */ t("$ZodBase64", (e, t) => {
824
824
  });
825
825
  };
826
826
  });
827
- function Rt(e) {
828
- if (!Ye.test(e)) return !1;
827
+ function Lt(e) {
828
+ if (!Je.test(e)) return !1;
829
829
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
830
- return It(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
830
+ return Ft(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
831
831
  }
832
- var zt = /* @__PURE__ */ t("$ZodBase64URL", (e, t) => {
833
- t.pattern ??= Ye, N.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
834
- Rt(n.value) || n.issues.push({
832
+ var Rt = /* @__PURE__ */ t("$ZodBase64URL", (e, t) => {
833
+ t.pattern ??= Je, P.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
834
+ Lt(n.value) || n.issues.push({
835
835
  code: "invalid_format",
836
836
  format: "base64url",
837
837
  input: n.value,
@@ -839,10 +839,10 @@ var zt = /* @__PURE__ */ t("$ZodBase64URL", (e, t) => {
839
839
  continue: !t.abort
840
840
  });
841
841
  };
842
- }), Bt = /* @__PURE__ */ t("$ZodE164", (e, t) => {
843
- t.pattern ??= Xe, N.init(e, t);
842
+ }), zt = /* @__PURE__ */ t("$ZodE164", (e, t) => {
843
+ t.pattern ??= Ye, P.init(e, t);
844
844
  });
845
- function Vt(e, t = null) {
845
+ function Bt(e, t = null) {
846
846
  try {
847
847
  let n = e.split(".");
848
848
  if (n.length !== 3) return !1;
@@ -854,9 +854,9 @@ function Vt(e, t = null) {
854
854
  return !1;
855
855
  }
856
856
  }
857
- var Ht = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
858
- N.init(e, t), e._zod.check = (n) => {
859
- Vt(n.value, t.alg) || n.issues.push({
857
+ var Vt = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
858
+ P.init(e, t), e._zod.check = (n) => {
859
+ Bt(n.value, t.alg) || n.issues.push({
860
860
  code: "invalid_format",
861
861
  format: "jwt",
862
862
  input: n.value,
@@ -864,21 +864,21 @@ var Ht = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
864
864
  continue: !t.abort
865
865
  });
866
866
  };
867
- }), Ut = /* @__PURE__ */ t("$ZodUnknown", (e, t) => {
868
- j.init(e, t), e._zod.parse = (e) => e;
869
- }), Wt = /* @__PURE__ */ t("$ZodNever", (e, t) => {
870
- j.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
867
+ }), Ht = /* @__PURE__ */ t("$ZodUnknown", (e, t) => {
868
+ M.init(e, t), e._zod.parse = (e) => e;
869
+ }), Ut = /* @__PURE__ */ t("$ZodNever", (e, t) => {
870
+ M.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
871
871
  expected: "never",
872
872
  code: "invalid_type",
873
873
  input: t.value,
874
874
  inst: e
875
875
  }), t);
876
876
  });
877
- function Gt(e, t, n) {
878
- e.issues.length && t.issues.push(...me(n, e.issues)), t.value[n] = e.value;
877
+ function Wt(e, t, n) {
878
+ e.issues.length && t.issues.push(...x(n, e.issues)), t.value[n] = e.value;
879
879
  }
880
- var Kt = /* @__PURE__ */ t("$ZodArray", (e, t) => {
881
- j.init(e, t), e._zod.parse = (n, r) => {
880
+ var Gt = /* @__PURE__ */ t("$ZodArray", (e, t) => {
881
+ M.init(e, t), e._zod.parse = (n, r) => {
882
882
  let i = n.value;
883
883
  if (!Array.isArray(i)) return n.issues.push({
884
884
  expected: "array",
@@ -893,19 +893,19 @@ var Kt = /* @__PURE__ */ t("$ZodArray", (e, t) => {
893
893
  value: o,
894
894
  issues: []
895
895
  }, r);
896
- s instanceof Promise ? a.push(s.then((t) => Gt(t, n, e))) : Gt(s, n, e);
896
+ s instanceof Promise ? a.push(s.then((t) => Wt(t, n, e))) : Wt(s, n, e);
897
897
  }
898
898
  return a.length ? Promise.all(a).then(() => n) : n;
899
899
  };
900
900
  });
901
- function P(e, t, n, r, i) {
901
+ function F(e, t, n, r, i) {
902
902
  if (e.issues.length) {
903
903
  if (i && !(n in r)) return;
904
- t.issues.push(...me(n, e.issues));
904
+ t.issues.push(...x(n, e.issues));
905
905
  }
906
906
  e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
907
907
  }
908
- function qt(e) {
908
+ function Kt(e) {
909
909
  let t = Object.keys(e.shape);
910
910
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
911
911
  let n = oe(e.shape);
@@ -917,7 +917,7 @@ function qt(e) {
917
917
  optionalKeys: new Set(n)
918
918
  };
919
919
  }
920
- function Jt(e, t, n, r, i, a) {
920
+ function qt(e, t, n, r, i, a) {
921
921
  let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
922
922
  for (let i in t) {
923
923
  if (s.has(i)) continue;
@@ -929,7 +929,7 @@ function Jt(e, t, n, r, i, a) {
929
929
  value: t[i],
930
930
  issues: []
931
931
  }, r);
932
- a instanceof Promise ? e.push(a.then((e) => P(e, n, i, t, u))) : P(a, n, i, t, u);
932
+ a instanceof Promise ? e.push(a.then((e) => F(e, n, i, t, u))) : F(a, n, i, t, u);
933
933
  }
934
934
  return o.length && n.issues.push({
935
935
  code: "unrecognized_keys",
@@ -938,15 +938,15 @@ function Jt(e, t, n, r, i, a) {
938
938
  inst: a
939
939
  }), e.length ? Promise.all(e).then(() => n) : n;
940
940
  }
941
- var Yt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
942
- if (j.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
941
+ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
942
+ if (M.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
943
943
  let e = t.shape;
944
944
  Object.defineProperty(t, "shape", { get: () => {
945
945
  let n = { ...e };
946
946
  return Object.defineProperty(t, "shape", { value: n }), n;
947
947
  } });
948
948
  }
949
- let n = c(() => qt(t));
949
+ let n = c(() => Kt(t));
950
950
  f(e._zod, "propValues", () => {
951
951
  let e = t.shape, n = {};
952
952
  for (let t in e) {
@@ -975,14 +975,14 @@ var Yt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
975
975
  value: s[e],
976
976
  issues: []
977
977
  }, o);
978
- i instanceof Promise ? c.push(i.then((n) => P(n, t, e, s, r))) : P(i, t, e, s, r);
978
+ i instanceof Promise ? c.push(i.then((n) => F(n, t, e, s, r))) : F(i, t, e, s, r);
979
979
  }
980
- return i ? Jt(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
980
+ return i ? qt(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
981
981
  };
982
- }), Xt = /* @__PURE__ */ t("$ZodObjectJIT", (e, t) => {
983
- Yt.init(e, t);
984
- let n = e._zod.parse, r = c(() => qt(t)), a = (e) => {
985
- let t = new ht([
982
+ }), Yt = /* @__PURE__ */ t("$ZodObjectJIT", (e, t) => {
983
+ Jt.init(e, t);
984
+ let n = e._zod.parse, r = c(() => Kt(t)), a = (e) => {
985
+ let t = new mt([
986
986
  "shape",
987
987
  "payload",
988
988
  "ctx"
@@ -1039,7 +1039,7 @@ var Yt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
1039
1039
  e._zod.parse = (i, c) => {
1040
1040
  f ??= r.value;
1041
1041
  let p = i.value;
1042
- return s(p) ? l && u && c?.async === !1 && c.jitless !== !0 ? (o ||= a(t.shape), i = o(i, c), d ? Jt([], p, i, c, f, e) : i) : n(i, c) : (i.issues.push({
1042
+ return s(p) ? l && u && c?.async === !1 && c.jitless !== !0 ? (o ||= a(t.shape), i = o(i, c), d ? qt([], p, i, c, f, e) : i) : n(i, c) : (i.issues.push({
1043
1043
  expected: "object",
1044
1044
  code: "invalid_type",
1045
1045
  input: p,
@@ -1047,18 +1047,18 @@ var Yt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
1047
1047
  }), i);
1048
1048
  };
1049
1049
  });
1050
- function Zt(e, t, n, r) {
1050
+ function Xt(e, t, n, r) {
1051
1051
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1052
1052
  let i = e.filter((e) => !b(e));
1053
1053
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1054
1054
  code: "invalid_union",
1055
1055
  input: t.value,
1056
1056
  inst: n,
1057
- errors: e.map((e) => e.issues.map((e) => S(e, r, a())))
1057
+ errors: e.map((e) => e.issues.map((e) => C(e, r, a())))
1058
1058
  }), t);
1059
1059
  }
1060
- var Qt = /* @__PURE__ */ t("$ZodUnion", (e, t) => {
1061
- j.init(e, t), f(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), f(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), f(e._zod, "values", () => {
1060
+ var Zt = /* @__PURE__ */ t("$ZodUnion", (e, t) => {
1061
+ M.init(e, t), f(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), f(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), f(e._zod, "values", () => {
1062
1062
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1063
1063
  }), f(e._zod, "pattern", () => {
1064
1064
  if (t.options.every((e) => e._zod.pattern)) {
@@ -1081,10 +1081,10 @@ var Qt = /* @__PURE__ */ t("$ZodUnion", (e, t) => {
1081
1081
  s.push(t);
1082
1082
  }
1083
1083
  }
1084
- return o ? Promise.all(s).then((t) => Zt(t, i, e, a)) : Zt(s, i, e, a);
1084
+ return o ? Promise.all(s).then((t) => Xt(t, i, e, a)) : Xt(s, i, e, a);
1085
1085
  };
1086
- }), $t = /* @__PURE__ */ t("$ZodIntersection", (e, t) => {
1087
- j.init(e, t), e._zod.parse = (e, n) => {
1086
+ }), Qt = /* @__PURE__ */ t("$ZodIntersection", (e, t) => {
1087
+ M.init(e, t), e._zod.parse = (e, n) => {
1088
1088
  let r = e.value, i = t.left._zod.run({
1089
1089
  value: r,
1090
1090
  issues: []
@@ -1092,10 +1092,10 @@ var Qt = /* @__PURE__ */ t("$ZodUnion", (e, t) => {
1092
1092
  value: r,
1093
1093
  issues: []
1094
1094
  }, n);
1095
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => I(e, t, n)) : I(e, i, a);
1095
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => L(e, t, n)) : L(e, i, a);
1096
1096
  };
1097
1097
  });
1098
- function F(e, t) {
1098
+ function I(e, t) {
1099
1099
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1100
1100
  valid: !0,
1101
1101
  data: e
@@ -1106,7 +1106,7 @@ function F(e, t) {
1106
1106
  ...t
1107
1107
  };
1108
1108
  for (let n of r) {
1109
- let r = F(e[n], t[n]);
1109
+ let r = I(e[n], t[n]);
1110
1110
  if (!r.valid) return {
1111
1111
  valid: !1,
1112
1112
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1125,7 +1125,7 @@ function F(e, t) {
1125
1125
  };
1126
1126
  let n = [];
1127
1127
  for (let r = 0; r < e.length; r++) {
1128
- let i = e[r], a = t[r], o = F(i, a);
1128
+ let i = e[r], a = t[r], o = I(i, a);
1129
1129
  if (!o.valid) return {
1130
1130
  valid: !1,
1131
1131
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1142,7 +1142,7 @@ function F(e, t) {
1142
1142
  mergeErrorPath: []
1143
1143
  };
1144
1144
  }
1145
- function I(e, t, n) {
1145
+ function L(e, t, n) {
1146
1146
  let r = /* @__PURE__ */ new Map(), i;
1147
1147
  for (let n of t.issues) if (n.code === "unrecognized_keys") {
1148
1148
  i ??= n;
@@ -1155,12 +1155,12 @@ function I(e, t, n) {
1155
1155
  ...i,
1156
1156
  keys: a
1157
1157
  }), b(e)) return e;
1158
- let o = F(t.value, n.value);
1158
+ let o = I(t.value, n.value);
1159
1159
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1160
1160
  return e.value = o.data, e;
1161
1161
  }
1162
- var en = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1163
- j.init(e, t);
1162
+ var $t = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1163
+ M.init(e, t);
1164
1164
  let n = o(t.entries), r = new Set(n);
1165
1165
  e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? _(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1166
1166
  let a = t.value;
@@ -1171,8 +1171,8 @@ var en = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1171
1171
  inst: e
1172
1172
  }), t;
1173
1173
  };
1174
- }), tn = /* @__PURE__ */ t("$ZodTransform", (e, t) => {
1175
- j.init(e, t), e._zod.parse = (i, a) => {
1174
+ }), en = /* @__PURE__ */ t("$ZodTransform", (e, t) => {
1175
+ M.init(e, t), e._zod.parse = (i, a) => {
1176
1176
  if (a.direction === "backward") throw new r(e.constructor.name);
1177
1177
  let o = t.transform(i.value, i);
1178
1178
  if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i));
@@ -1180,53 +1180,53 @@ var en = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1180
1180
  return i.value = o, i;
1181
1181
  };
1182
1182
  });
1183
- function L(e, t) {
1183
+ function R(e, t) {
1184
1184
  return e.issues.length && t === void 0 ? {
1185
1185
  issues: [],
1186
1186
  value: void 0
1187
1187
  } : e;
1188
1188
  }
1189
- var R = /* @__PURE__ */ t("$ZodOptional", (e, t) => {
1190
- j.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), f(e._zod, "pattern", () => {
1189
+ var z = /* @__PURE__ */ t("$ZodOptional", (e, t) => {
1190
+ M.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), f(e._zod, "pattern", () => {
1191
1191
  let e = t.innerType._zod.pattern;
1192
1192
  return e ? RegExp(`^(${u(e.source)})?$`) : void 0;
1193
1193
  }), e._zod.parse = (e, n) => {
1194
1194
  if (t.innerType._zod.optin === "optional") {
1195
1195
  let r = t.innerType._zod.run(e, n);
1196
- return r instanceof Promise ? r.then((t) => L(t, e.value)) : L(r, e.value);
1196
+ return r instanceof Promise ? r.then((t) => R(t, e.value)) : R(r, e.value);
1197
1197
  }
1198
1198
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1199
1199
  };
1200
- }), nn = /* @__PURE__ */ t("$ZodExactOptional", (e, t) => {
1201
- R.init(e, t), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1202
- }), rn = /* @__PURE__ */ t("$ZodNullable", (e, t) => {
1203
- j.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "pattern", () => {
1200
+ }), tn = /* @__PURE__ */ t("$ZodExactOptional", (e, t) => {
1201
+ z.init(e, t), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1202
+ }), nn = /* @__PURE__ */ t("$ZodNullable", (e, t) => {
1203
+ M.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "pattern", () => {
1204
1204
  let e = t.innerType._zod.pattern;
1205
1205
  return e ? RegExp(`^(${u(e.source)}|null)$`) : void 0;
1206
1206
  }), f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1207
- }), an = /* @__PURE__ */ t("$ZodDefault", (e, t) => {
1208
- j.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1207
+ }), rn = /* @__PURE__ */ t("$ZodDefault", (e, t) => {
1208
+ M.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1209
1209
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1210
1210
  if (e.value === void 0) return e.value = t.defaultValue, e;
1211
1211
  let r = t.innerType._zod.run(e, n);
1212
- return r instanceof Promise ? r.then((e) => z(e, t)) : z(r, t);
1212
+ return r instanceof Promise ? r.then((e) => B(e, t)) : B(r, t);
1213
1213
  };
1214
1214
  });
1215
- function z(e, t) {
1215
+ function B(e, t) {
1216
1216
  return e.value === void 0 && (e.value = t.defaultValue), e;
1217
1217
  }
1218
- var on = /* @__PURE__ */ t("$ZodPrefault", (e, t) => {
1219
- j.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1220
- }), sn = /* @__PURE__ */ t("$ZodNonOptional", (e, t) => {
1221
- j.init(e, t), f(e._zod, "values", () => {
1218
+ var an = /* @__PURE__ */ t("$ZodPrefault", (e, t) => {
1219
+ M.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1220
+ }), on = /* @__PURE__ */ t("$ZodNonOptional", (e, t) => {
1221
+ M.init(e, t), f(e._zod, "values", () => {
1222
1222
  let e = t.innerType._zod.values;
1223
1223
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1224
1224
  }), e._zod.parse = (n, r) => {
1225
1225
  let i = t.innerType._zod.run(n, r);
1226
- return i instanceof Promise ? i.then((t) => cn(t, e)) : cn(i, e);
1226
+ return i instanceof Promise ? i.then((t) => sn(t, e)) : sn(i, e);
1227
1227
  };
1228
1228
  });
1229
- function cn(e, t) {
1229
+ function sn(e, t) {
1230
1230
  return !e.issues.length && e.value === void 0 && e.issues.push({
1231
1231
  code: "invalid_type",
1232
1232
  expected: "nonoptional",
@@ -1234,54 +1234,54 @@ function cn(e, t) {
1234
1234
  inst: t
1235
1235
  }), e;
1236
1236
  }
1237
- var ln = /* @__PURE__ */ t("$ZodCatch", (e, t) => {
1238
- j.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1237
+ var cn = /* @__PURE__ */ t("$ZodCatch", (e, t) => {
1238
+ M.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1239
1239
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1240
1240
  let r = t.innerType._zod.run(e, n);
1241
1241
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1242
1242
  ...e,
1243
- error: { issues: r.issues.map((e) => S(e, n, a())) },
1243
+ error: { issues: r.issues.map((e) => C(e, n, a())) },
1244
1244
  input: e.value
1245
1245
  }), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1246
1246
  ...e,
1247
- error: { issues: r.issues.map((e) => S(e, n, a())) },
1247
+ error: { issues: r.issues.map((e) => C(e, n, a())) },
1248
1248
  input: e.value
1249
1249
  }), e.issues = []), e);
1250
1250
  };
1251
- }), un = /* @__PURE__ */ t("$ZodPipe", (e, t) => {
1252
- j.init(e, t), f(e._zod, "values", () => t.in._zod.values), f(e._zod, "optin", () => t.in._zod.optin), f(e._zod, "optout", () => t.out._zod.optout), f(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1251
+ }), ln = /* @__PURE__ */ t("$ZodPipe", (e, t) => {
1252
+ M.init(e, t), f(e._zod, "values", () => t.in._zod.values), f(e._zod, "optin", () => t.in._zod.optin), f(e._zod, "optout", () => t.out._zod.optout), f(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1253
1253
  if (n.direction === "backward") {
1254
1254
  let r = t.out._zod.run(e, n);
1255
- return r instanceof Promise ? r.then((e) => B(e, t.in, n)) : B(r, t.in, n);
1255
+ return r instanceof Promise ? r.then((e) => V(e, t.in, n)) : V(r, t.in, n);
1256
1256
  }
1257
1257
  let r = t.in._zod.run(e, n);
1258
- return r instanceof Promise ? r.then((e) => B(e, t.out, n)) : B(r, t.out, n);
1258
+ return r instanceof Promise ? r.then((e) => V(e, t.out, n)) : V(r, t.out, n);
1259
1259
  };
1260
1260
  });
1261
- function B(e, t, n) {
1261
+ function V(e, t, n) {
1262
1262
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1263
1263
  value: e.value,
1264
1264
  issues: e.issues
1265
1265
  }, n);
1266
1266
  }
1267
- var dn = /* @__PURE__ */ t("$ZodReadonly", (e, t) => {
1268
- j.init(e, t), f(e._zod, "propValues", () => t.innerType._zod.propValues), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "optin", () => t.innerType?._zod?.optin), f(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1267
+ var un = /* @__PURE__ */ t("$ZodReadonly", (e, t) => {
1268
+ M.init(e, t), f(e._zod, "propValues", () => t.innerType._zod.propValues), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "optin", () => t.innerType?._zod?.optin), f(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1269
1269
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1270
1270
  let r = t.innerType._zod.run(e, n);
1271
- return r instanceof Promise ? r.then(fn) : fn(r);
1271
+ return r instanceof Promise ? r.then(dn) : dn(r);
1272
1272
  };
1273
1273
  });
1274
- function fn(e) {
1274
+ function dn(e) {
1275
1275
  return e.value = Object.freeze(e.value), e;
1276
1276
  }
1277
- var pn = /* @__PURE__ */ t("$ZodCustom", (e, t) => {
1278
- k.init(e, t), j.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1277
+ var fn = /* @__PURE__ */ t("$ZodCustom", (e, t) => {
1278
+ A.init(e, t), M.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1279
1279
  let r = n.value, i = t.fn(r);
1280
- if (i instanceof Promise) return i.then((t) => mn(t, n, r, e));
1281
- mn(i, n, r, e);
1280
+ if (i instanceof Promise) return i.then((t) => pn(t, n, r, e));
1281
+ pn(i, n, r, e);
1282
1282
  };
1283
1283
  });
1284
- function mn(e, t, n, r) {
1284
+ function pn(e, t, n, r) {
1285
1285
  if (!e) {
1286
1286
  let e = {
1287
1287
  code: "custom",
@@ -1290,12 +1290,12 @@ function mn(e, t, n, r) {
1290
1290
  path: [...r._zod.def.path ?? []],
1291
1291
  continue: !r._zod.def.abort
1292
1292
  };
1293
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(w(e));
1293
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(T(e));
1294
1294
  }
1295
1295
  }
1296
1296
  //#endregion
1297
1297
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1298
- var hn, gn = class {
1298
+ var mn, hn = class {
1299
1299
  constructor() {
1300
1300
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1301
1301
  }
@@ -1327,22 +1327,22 @@ var hn, gn = class {
1327
1327
  return this._map.has(e);
1328
1328
  }
1329
1329
  };
1330
- function _n() {
1331
- return new gn();
1330
+ function gn() {
1331
+ return new hn();
1332
1332
  }
1333
- (hn = globalThis).__zod_globalRegistry ?? (hn.__zod_globalRegistry = _n());
1334
- var V = globalThis.__zod_globalRegistry;
1333
+ (mn = globalThis).__zod_globalRegistry ?? (mn.__zod_globalRegistry = gn());
1334
+ var H = globalThis.__zod_globalRegistry;
1335
1335
  //#endregion
1336
1336
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1337
1337
  /* @__NO_SIDE_EFFECTS__ */
1338
- function vn(e, t) {
1338
+ function _n(e, t) {
1339
1339
  return new e({
1340
1340
  type: "string",
1341
1341
  ...y(t)
1342
1342
  });
1343
1343
  }
1344
1344
  /* @__NO_SIDE_EFFECTS__ */
1345
- function yn(e, t) {
1345
+ function vn(e, t) {
1346
1346
  return new e({
1347
1347
  type: "string",
1348
1348
  format: "email",
@@ -1352,7 +1352,7 @@ function yn(e, t) {
1352
1352
  });
1353
1353
  }
1354
1354
  /* @__NO_SIDE_EFFECTS__ */
1355
- function bn(e, t) {
1355
+ function yn(e, t) {
1356
1356
  return new e({
1357
1357
  type: "string",
1358
1358
  format: "guid",
@@ -1362,7 +1362,7 @@ function bn(e, t) {
1362
1362
  });
1363
1363
  }
1364
1364
  /* @__NO_SIDE_EFFECTS__ */
1365
- function xn(e, t) {
1365
+ function bn(e, t) {
1366
1366
  return new e({
1367
1367
  type: "string",
1368
1368
  format: "uuid",
@@ -1372,7 +1372,7 @@ function xn(e, t) {
1372
1372
  });
1373
1373
  }
1374
1374
  /* @__NO_SIDE_EFFECTS__ */
1375
- function Sn(e, t) {
1375
+ function xn(e, t) {
1376
1376
  return new e({
1377
1377
  type: "string",
1378
1378
  format: "uuid",
@@ -1383,7 +1383,7 @@ function Sn(e, t) {
1383
1383
  });
1384
1384
  }
1385
1385
  /* @__NO_SIDE_EFFECTS__ */
1386
- function Cn(e, t) {
1386
+ function Sn(e, t) {
1387
1387
  return new e({
1388
1388
  type: "string",
1389
1389
  format: "uuid",
@@ -1394,7 +1394,7 @@ function Cn(e, t) {
1394
1394
  });
1395
1395
  }
1396
1396
  /* @__NO_SIDE_EFFECTS__ */
1397
- function wn(e, t) {
1397
+ function Cn(e, t) {
1398
1398
  return new e({
1399
1399
  type: "string",
1400
1400
  format: "uuid",
@@ -1405,7 +1405,7 @@ function wn(e, t) {
1405
1405
  });
1406
1406
  }
1407
1407
  /* @__NO_SIDE_EFFECTS__ */
1408
- function Tn(e, t) {
1408
+ function wn(e, t) {
1409
1409
  return new e({
1410
1410
  type: "string",
1411
1411
  format: "url",
@@ -1415,7 +1415,7 @@ function Tn(e, t) {
1415
1415
  });
1416
1416
  }
1417
1417
  /* @__NO_SIDE_EFFECTS__ */
1418
- function En(e, t) {
1418
+ function Tn(e, t) {
1419
1419
  return new e({
1420
1420
  type: "string",
1421
1421
  format: "emoji",
@@ -1425,7 +1425,7 @@ function En(e, t) {
1425
1425
  });
1426
1426
  }
1427
1427
  /* @__NO_SIDE_EFFECTS__ */
1428
- function Dn(e, t) {
1428
+ function En(e, t) {
1429
1429
  return new e({
1430
1430
  type: "string",
1431
1431
  format: "nanoid",
@@ -1435,7 +1435,7 @@ function Dn(e, t) {
1435
1435
  });
1436
1436
  }
1437
1437
  /* @__NO_SIDE_EFFECTS__ */
1438
- function On(e, t) {
1438
+ function Dn(e, t) {
1439
1439
  return new e({
1440
1440
  type: "string",
1441
1441
  format: "cuid",
@@ -1445,7 +1445,7 @@ function On(e, t) {
1445
1445
  });
1446
1446
  }
1447
1447
  /* @__NO_SIDE_EFFECTS__ */
1448
- function kn(e, t) {
1448
+ function On(e, t) {
1449
1449
  return new e({
1450
1450
  type: "string",
1451
1451
  format: "cuid2",
@@ -1455,7 +1455,7 @@ function kn(e, t) {
1455
1455
  });
1456
1456
  }
1457
1457
  /* @__NO_SIDE_EFFECTS__ */
1458
- function An(e, t) {
1458
+ function kn(e, t) {
1459
1459
  return new e({
1460
1460
  type: "string",
1461
1461
  format: "ulid",
@@ -1465,7 +1465,7 @@ function An(e, t) {
1465
1465
  });
1466
1466
  }
1467
1467
  /* @__NO_SIDE_EFFECTS__ */
1468
- function jn(e, t) {
1468
+ function An(e, t) {
1469
1469
  return new e({
1470
1470
  type: "string",
1471
1471
  format: "xid",
@@ -1475,7 +1475,7 @@ function jn(e, t) {
1475
1475
  });
1476
1476
  }
1477
1477
  /* @__NO_SIDE_EFFECTS__ */
1478
- function Mn(e, t) {
1478
+ function jn(e, t) {
1479
1479
  return new e({
1480
1480
  type: "string",
1481
1481
  format: "ksuid",
@@ -1485,7 +1485,7 @@ function Mn(e, t) {
1485
1485
  });
1486
1486
  }
1487
1487
  /* @__NO_SIDE_EFFECTS__ */
1488
- function Nn(e, t) {
1488
+ function Mn(e, t) {
1489
1489
  return new e({
1490
1490
  type: "string",
1491
1491
  format: "ipv4",
@@ -1495,7 +1495,7 @@ function Nn(e, t) {
1495
1495
  });
1496
1496
  }
1497
1497
  /* @__NO_SIDE_EFFECTS__ */
1498
- function Pn(e, t) {
1498
+ function Nn(e, t) {
1499
1499
  return new e({
1500
1500
  type: "string",
1501
1501
  format: "ipv6",
@@ -1505,7 +1505,7 @@ function Pn(e, t) {
1505
1505
  });
1506
1506
  }
1507
1507
  /* @__NO_SIDE_EFFECTS__ */
1508
- function Fn(e, t) {
1508
+ function Pn(e, t) {
1509
1509
  return new e({
1510
1510
  type: "string",
1511
1511
  format: "cidrv4",
@@ -1515,7 +1515,7 @@ function Fn(e, t) {
1515
1515
  });
1516
1516
  }
1517
1517
  /* @__NO_SIDE_EFFECTS__ */
1518
- function In(e, t) {
1518
+ function Fn(e, t) {
1519
1519
  return new e({
1520
1520
  type: "string",
1521
1521
  format: "cidrv6",
@@ -1525,7 +1525,7 @@ function In(e, t) {
1525
1525
  });
1526
1526
  }
1527
1527
  /* @__NO_SIDE_EFFECTS__ */
1528
- function Ln(e, t) {
1528
+ function In(e, t) {
1529
1529
  return new e({
1530
1530
  type: "string",
1531
1531
  format: "base64",
@@ -1535,7 +1535,7 @@ function Ln(e, t) {
1535
1535
  });
1536
1536
  }
1537
1537
  /* @__NO_SIDE_EFFECTS__ */
1538
- function Rn(e, t) {
1538
+ function Ln(e, t) {
1539
1539
  return new e({
1540
1540
  type: "string",
1541
1541
  format: "base64url",
@@ -1545,7 +1545,7 @@ function Rn(e, t) {
1545
1545
  });
1546
1546
  }
1547
1547
  /* @__NO_SIDE_EFFECTS__ */
1548
- function zn(e, t) {
1548
+ function Rn(e, t) {
1549
1549
  return new e({
1550
1550
  type: "string",
1551
1551
  format: "e164",
@@ -1555,7 +1555,7 @@ function zn(e, t) {
1555
1555
  });
1556
1556
  }
1557
1557
  /* @__NO_SIDE_EFFECTS__ */
1558
- function Bn(e, t) {
1558
+ function zn(e, t) {
1559
1559
  return new e({
1560
1560
  type: "string",
1561
1561
  format: "jwt",
@@ -1565,7 +1565,7 @@ function Bn(e, t) {
1565
1565
  });
1566
1566
  }
1567
1567
  /* @__NO_SIDE_EFFECTS__ */
1568
- function Vn(e, t) {
1568
+ function Bn(e, t) {
1569
1569
  return new e({
1570
1570
  type: "string",
1571
1571
  format: "datetime",
@@ -1577,7 +1577,7 @@ function Vn(e, t) {
1577
1577
  });
1578
1578
  }
1579
1579
  /* @__NO_SIDE_EFFECTS__ */
1580
- function Hn(e, t) {
1580
+ function Vn(e, t) {
1581
1581
  return new e({
1582
1582
  type: "string",
1583
1583
  format: "date",
@@ -1586,7 +1586,7 @@ function Hn(e, t) {
1586
1586
  });
1587
1587
  }
1588
1588
  /* @__NO_SIDE_EFFECTS__ */
1589
- function Un(e, t) {
1589
+ function Hn(e, t) {
1590
1590
  return new e({
1591
1591
  type: "string",
1592
1592
  format: "time",
@@ -1596,7 +1596,7 @@ function Un(e, t) {
1596
1596
  });
1597
1597
  }
1598
1598
  /* @__NO_SIDE_EFFECTS__ */
1599
- function Wn(e, t) {
1599
+ function Un(e, t) {
1600
1600
  return new e({
1601
1601
  type: "string",
1602
1602
  format: "duration",
@@ -1605,43 +1605,43 @@ function Wn(e, t) {
1605
1605
  });
1606
1606
  }
1607
1607
  /* @__NO_SIDE_EFFECTS__ */
1608
- function Gn(e) {
1608
+ function Wn(e) {
1609
1609
  return new e({ type: "unknown" });
1610
1610
  }
1611
1611
  /* @__NO_SIDE_EFFECTS__ */
1612
- function Kn(e, t) {
1612
+ function Gn(e, t) {
1613
1613
  return new e({
1614
1614
  type: "never",
1615
1615
  ...y(t)
1616
1616
  });
1617
1617
  }
1618
1618
  /* @__NO_SIDE_EFFECTS__ */
1619
- function qn(e, t) {
1620
- return new at({
1619
+ function Kn(e, t) {
1620
+ return new it({
1621
1621
  check: "max_length",
1622
1622
  ...y(t),
1623
1623
  maximum: e
1624
1624
  });
1625
1625
  }
1626
1626
  /* @__NO_SIDE_EFFECTS__ */
1627
- function H(e, t) {
1628
- return new ot({
1627
+ function U(e, t) {
1628
+ return new at({
1629
1629
  check: "min_length",
1630
1630
  ...y(t),
1631
1631
  minimum: e
1632
1632
  });
1633
1633
  }
1634
1634
  /* @__NO_SIDE_EFFECTS__ */
1635
- function Jn(e, t) {
1636
- return new st({
1635
+ function qn(e, t) {
1636
+ return new ot({
1637
1637
  check: "length_equals",
1638
1638
  ...y(t),
1639
1639
  length: e
1640
1640
  });
1641
1641
  }
1642
1642
  /* @__NO_SIDE_EFFECTS__ */
1643
- function Yn(e, t) {
1644
- return new ct({
1643
+ function Jn(e, t) {
1644
+ return new st({
1645
1645
  check: "string_format",
1646
1646
  format: "regex",
1647
1647
  ...y(t),
@@ -1649,24 +1649,24 @@ function Yn(e, t) {
1649
1649
  });
1650
1650
  }
1651
1651
  /* @__NO_SIDE_EFFECTS__ */
1652
- function Xn(e) {
1653
- return new lt({
1652
+ function Yn(e) {
1653
+ return new ct({
1654
1654
  check: "string_format",
1655
1655
  format: "lowercase",
1656
1656
  ...y(e)
1657
1657
  });
1658
1658
  }
1659
1659
  /* @__NO_SIDE_EFFECTS__ */
1660
- function Zn(e) {
1661
- return new ut({
1660
+ function Xn(e) {
1661
+ return new lt({
1662
1662
  check: "string_format",
1663
1663
  format: "uppercase",
1664
1664
  ...y(e)
1665
1665
  });
1666
1666
  }
1667
1667
  /* @__NO_SIDE_EFFECTS__ */
1668
- function Qn(e, t) {
1669
- return new dt({
1668
+ function Zn(e, t) {
1669
+ return new ut({
1670
1670
  check: "string_format",
1671
1671
  format: "includes",
1672
1672
  ...y(t),
@@ -1674,8 +1674,8 @@ function Qn(e, t) {
1674
1674
  });
1675
1675
  }
1676
1676
  /* @__NO_SIDE_EFFECTS__ */
1677
- function $n(e, t) {
1678
- return new ft({
1677
+ function Qn(e, t) {
1678
+ return new dt({
1679
1679
  check: "string_format",
1680
1680
  format: "starts_with",
1681
1681
  ...y(t),
@@ -1683,8 +1683,8 @@ function $n(e, t) {
1683
1683
  });
1684
1684
  }
1685
1685
  /* @__NO_SIDE_EFFECTS__ */
1686
- function er(e, t) {
1687
- return new pt({
1686
+ function $n(e, t) {
1687
+ return new ft({
1688
1688
  check: "string_format",
1689
1689
  format: "ends_with",
1690
1690
  ...y(t),
@@ -1692,34 +1692,34 @@ function er(e, t) {
1692
1692
  });
1693
1693
  }
1694
1694
  /* @__NO_SIDE_EFFECTS__ */
1695
- function U(e) {
1696
- return new mt({
1695
+ function W(e) {
1696
+ return new pt({
1697
1697
  check: "overwrite",
1698
1698
  tx: e
1699
1699
  });
1700
1700
  }
1701
1701
  /* @__NO_SIDE_EFFECTS__ */
1702
- function tr(e) {
1703
- return /* @__PURE__ */ U((t) => t.normalize(e));
1702
+ function er(e) {
1703
+ return /* @__PURE__ */ W((t) => t.normalize(e));
1704
+ }
1705
+ /* @__NO_SIDE_EFFECTS__ */
1706
+ function tr() {
1707
+ return /* @__PURE__ */ W((e) => e.trim());
1704
1708
  }
1705
1709
  /* @__NO_SIDE_EFFECTS__ */
1706
1710
  function nr() {
1707
- return /* @__PURE__ */ U((e) => e.trim());
1711
+ return /* @__PURE__ */ W((e) => e.toLowerCase());
1708
1712
  }
1709
1713
  /* @__NO_SIDE_EFFECTS__ */
1710
1714
  function rr() {
1711
- return /* @__PURE__ */ U((e) => e.toLowerCase());
1715
+ return /* @__PURE__ */ W((e) => e.toUpperCase());
1712
1716
  }
1713
1717
  /* @__NO_SIDE_EFFECTS__ */
1714
1718
  function ir() {
1715
- return /* @__PURE__ */ U((e) => e.toUpperCase());
1719
+ return /* @__PURE__ */ W((e) => te(e));
1716
1720
  }
1717
1721
  /* @__NO_SIDE_EFFECTS__ */
1718
- function ar() {
1719
- return /* @__PURE__ */ U((e) => te(e));
1720
- }
1721
- /* @__NO_SIDE_EFFECTS__ */
1722
- function or(e, t, n) {
1722
+ function ar(e, t, n) {
1723
1723
  return new e({
1724
1724
  type: "array",
1725
1725
  element: t,
@@ -1727,7 +1727,7 @@ function or(e, t, n) {
1727
1727
  });
1728
1728
  }
1729
1729
  /* @__NO_SIDE_EFFECTS__ */
1730
- function sr(e, t, n) {
1730
+ function or(e, t, n) {
1731
1731
  return new e({
1732
1732
  type: "custom",
1733
1733
  check: "custom",
@@ -1736,19 +1736,19 @@ function sr(e, t, n) {
1736
1736
  });
1737
1737
  }
1738
1738
  /* @__NO_SIDE_EFFECTS__ */
1739
- function cr(e) {
1740
- let t = /* @__PURE__ */ lr((n) => (n.addIssue = (e) => {
1741
- if (typeof e == "string") n.issues.push(w(e, n.value, t._zod.def));
1739
+ function sr(e) {
1740
+ let t = /* @__PURE__ */ cr((n) => (n.addIssue = (e) => {
1741
+ if (typeof e == "string") n.issues.push(T(e, n.value, t._zod.def));
1742
1742
  else {
1743
1743
  let r = e;
1744
- r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(w(r));
1744
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(T(r));
1745
1745
  }
1746
1746
  }, e(n.value, n)));
1747
1747
  return t;
1748
1748
  }
1749
1749
  /* @__NO_SIDE_EFFECTS__ */
1750
- function lr(e, t) {
1751
- let n = new k({
1750
+ function cr(e, t) {
1751
+ let n = new A({
1752
1752
  check: "custom",
1753
1753
  ...y(t)
1754
1754
  });
@@ -1756,11 +1756,11 @@ function lr(e, t) {
1756
1756
  }
1757
1757
  //#endregion
1758
1758
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
1759
- function ur(e) {
1759
+ function lr(e) {
1760
1760
  let t = e?.target ?? "draft-2020-12";
1761
1761
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
1762
1762
  processors: e.processors ?? {},
1763
- metadataRegistry: e?.metadata ?? V,
1763
+ metadataRegistry: e?.metadata ?? H,
1764
1764
  target: t,
1765
1765
  unrepresentable: e?.unrepresentable ?? "throw",
1766
1766
  override: e?.override ?? (() => {}),
@@ -1772,7 +1772,7 @@ function ur(e) {
1772
1772
  external: e?.external ?? void 0
1773
1773
  };
1774
1774
  }
1775
- function W(e, t, n = {
1775
+ function G(e, t, n = {
1776
1776
  path: [],
1777
1777
  schemaPath: []
1778
1778
  }) {
@@ -1801,12 +1801,12 @@ function W(e, t, n = {
1801
1801
  a(e, t, n, r);
1802
1802
  }
1803
1803
  let a = e._zod.parent;
1804
- a && (o.ref ||= a, W(a, t, r), t.seen.get(a).isParent = !0);
1804
+ a && (o.ref ||= a, G(a, t, r), t.seen.get(a).isParent = !0);
1805
1805
  }
1806
1806
  let c = t.metadataRegistry.get(e);
1807
- return c && Object.assign(o.schema, c), t.io === "input" && G(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
1807
+ return c && Object.assign(o.schema, c), t.io === "input" && K(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
1808
1808
  }
1809
- function dr(e, t) {
1809
+ function ur(e, t) {
1810
1810
  let n = e.seen.get(t);
1811
1811
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
1812
1812
  let r = /* @__PURE__ */ new Map();
@@ -1876,7 +1876,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1876
1876
  }
1877
1877
  }
1878
1878
  }
1879
- function fr(e, t) {
1879
+ function dr(e, t) {
1880
1880
  let n = e.seen.get(t);
1881
1881
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
1882
1882
  let r = (t) => {
@@ -1921,8 +1921,8 @@ function fr(e, t) {
1921
1921
  value: {
1922
1922
  ...t["~standard"],
1923
1923
  jsonSchema: {
1924
- input: K(t, "input", e.processors),
1925
- output: K(t, "output", e.processors)
1924
+ input: q(t, "input", e.processors),
1925
+ output: q(t, "output", e.processors)
1926
1926
  }
1927
1927
  },
1928
1928
  enumerable: !1,
@@ -1932,84 +1932,84 @@ function fr(e, t) {
1932
1932
  throw Error("Error converting schema to JSON.");
1933
1933
  }
1934
1934
  }
1935
- function G(e, t) {
1935
+ function K(e, t) {
1936
1936
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
1937
1937
  if (n.seen.has(e)) return !1;
1938
1938
  n.seen.add(e);
1939
1939
  let r = e._zod.def;
1940
1940
  if (r.type === "transform") return !0;
1941
- if (r.type === "array") return G(r.element, n);
1942
- if (r.type === "set") return G(r.valueType, n);
1943
- if (r.type === "lazy") return G(r.getter(), n);
1944
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return G(r.innerType, n);
1945
- if (r.type === "intersection") return G(r.left, n) || G(r.right, n);
1946
- if (r.type === "record" || r.type === "map") return G(r.keyType, n) || G(r.valueType, n);
1947
- if (r.type === "pipe") return G(r.in, n) || G(r.out, n);
1941
+ if (r.type === "array") return K(r.element, n);
1942
+ if (r.type === "set") return K(r.valueType, n);
1943
+ if (r.type === "lazy") return K(r.getter(), n);
1944
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return K(r.innerType, n);
1945
+ if (r.type === "intersection") return K(r.left, n) || K(r.right, n);
1946
+ if (r.type === "record" || r.type === "map") return K(r.keyType, n) || K(r.valueType, n);
1947
+ if (r.type === "pipe") return K(r.in, n) || K(r.out, n);
1948
1948
  if (r.type === "object") {
1949
- for (let e in r.shape) if (G(r.shape[e], n)) return !0;
1949
+ for (let e in r.shape) if (K(r.shape[e], n)) return !0;
1950
1950
  return !1;
1951
1951
  }
1952
1952
  if (r.type === "union") {
1953
- for (let e of r.options) if (G(e, n)) return !0;
1953
+ for (let e of r.options) if (K(e, n)) return !0;
1954
1954
  return !1;
1955
1955
  }
1956
1956
  if (r.type === "tuple") {
1957
- for (let e of r.items) if (G(e, n)) return !0;
1958
- return !!(r.rest && G(r.rest, n));
1957
+ for (let e of r.items) if (K(e, n)) return !0;
1958
+ return !!(r.rest && K(r.rest, n));
1959
1959
  }
1960
1960
  return !1;
1961
1961
  }
1962
- var pr = (e, t = {}) => (n) => {
1963
- let r = ur({
1962
+ var fr = (e, t = {}) => (n) => {
1963
+ let r = lr({
1964
1964
  ...n,
1965
1965
  processors: t
1966
1966
  });
1967
- return W(e, r), dr(r, e), fr(r, e);
1968
- }, K = (e, t, n = {}) => (r) => {
1969
- let { libraryOptions: i, target: a } = r ?? {}, o = ur({
1967
+ return G(e, r), ur(r, e), dr(r, e);
1968
+ }, q = (e, t, n = {}) => (r) => {
1969
+ let { libraryOptions: i, target: a } = r ?? {}, o = lr({
1970
1970
  ...i ?? {},
1971
1971
  target: a,
1972
1972
  io: t,
1973
1973
  processors: n
1974
1974
  });
1975
- return W(e, o), dr(o, e), fr(o, e);
1976
- }, mr = {
1975
+ return G(e, o), ur(o, e), dr(o, e);
1976
+ }, pr = {
1977
1977
  guid: "uuid",
1978
1978
  url: "uri",
1979
1979
  datetime: "date-time",
1980
1980
  json_string: "json-string",
1981
1981
  regex: ""
1982
- }, hr = (e, t, n, r) => {
1982
+ }, mr = (e, t, n, r) => {
1983
1983
  let i = n;
1984
1984
  i.type = "string";
1985
1985
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
1986
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = mr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
1986
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = pr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
1987
1987
  let e = [...c];
1988
1988
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
1989
1989
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
1990
1990
  pattern: e.source
1991
1991
  }))]);
1992
1992
  }
1993
- }, gr = (e, t, n, r) => {
1993
+ }, hr = (e, t, n, r) => {
1994
1994
  n.not = {};
1995
- }, _r = (e, t, n, r) => {
1995
+ }, gr = (e, t, n, r) => {
1996
1996
  let i = e._zod.def, a = o(i.entries);
1997
1997
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
1998
- }, vr = (e, t, n, r) => {
1998
+ }, _r = (e, t, n, r) => {
1999
1999
  if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2000
- }, yr = (e, t, n, r) => {
2000
+ }, vr = (e, t, n, r) => {
2001
2001
  if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2002
- }, br = (e, t, n, r) => {
2002
+ }, yr = (e, t, n, r) => {
2003
2003
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2004
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = W(a.element, t, {
2004
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = G(a.element, t, {
2005
2005
  ...r,
2006
2006
  path: [...r.path, "items"]
2007
2007
  });
2008
- }, xr = (e, t, n, r) => {
2008
+ }, br = (e, t, n, r) => {
2009
2009
  let i = n, a = e._zod.def;
2010
2010
  i.type = "object", i.properties = {};
2011
2011
  let o = a.shape;
2012
- for (let e in o) i.properties[e] = W(o[e], t, {
2012
+ for (let e in o) i.properties[e] = G(o[e], t, {
2013
2013
  ...r,
2014
2014
  path: [
2015
2015
  ...r.path,
@@ -2021,12 +2021,12 @@ var pr = (e, t = {}) => (n) => {
2021
2021
  let n = a.shape[e]._zod;
2022
2022
  return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
2023
2023
  }));
2024
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = W(a.catchall, t, {
2024
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = G(a.catchall, t, {
2025
2025
  ...r,
2026
2026
  path: [...r.path, "additionalProperties"]
2027
2027
  })) : t.io === "output" && (i.additionalProperties = !1);
2028
- }, Sr = (e, t, n, r) => {
2029
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => W(e, t, {
2028
+ }, xr = (e, t, n, r) => {
2029
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => G(e, t, {
2030
2030
  ...r,
2031
2031
  path: [
2032
2032
  ...r.path,
@@ -2035,15 +2035,15 @@ var pr = (e, t = {}) => (n) => {
2035
2035
  ]
2036
2036
  }));
2037
2037
  a ? n.oneOf = o : n.anyOf = o;
2038
- }, Cr = (e, t, n, r) => {
2039
- let i = e._zod.def, a = W(i.left, t, {
2038
+ }, Sr = (e, t, n, r) => {
2039
+ let i = e._zod.def, a = G(i.left, t, {
2040
2040
  ...r,
2041
2041
  path: [
2042
2042
  ...r.path,
2043
2043
  "allOf",
2044
2044
  0
2045
2045
  ]
2046
- }), o = W(i.right, t, {
2046
+ }), o = G(i.right, t, {
2047
2047
  ...r,
2048
2048
  path: [
2049
2049
  ...r.path,
@@ -2052,27 +2052,27 @@ var pr = (e, t = {}) => (n) => {
2052
2052
  ]
2053
2053
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2054
2054
  n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2055
- }, wr = (e, t, n, r) => {
2056
- let i = e._zod.def, a = W(i.innerType, t, r), o = t.seen.get(e);
2055
+ }, Cr = (e, t, n, r) => {
2056
+ let i = e._zod.def, a = G(i.innerType, t, r), o = t.seen.get(e);
2057
2057
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2058
- }, Tr = (e, t, n, r) => {
2058
+ }, wr = (e, t, n, r) => {
2059
2059
  let i = e._zod.def;
2060
- W(i.innerType, t, r);
2060
+ G(i.innerType, t, r);
2061
2061
  let a = t.seen.get(e);
2062
2062
  a.ref = i.innerType;
2063
- }, Er = (e, t, n, r) => {
2063
+ }, Tr = (e, t, n, r) => {
2064
2064
  let i = e._zod.def;
2065
- W(i.innerType, t, r);
2065
+ G(i.innerType, t, r);
2066
2066
  let a = t.seen.get(e);
2067
2067
  a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2068
- }, Dr = (e, t, n, r) => {
2068
+ }, Er = (e, t, n, r) => {
2069
2069
  let i = e._zod.def;
2070
- W(i.innerType, t, r);
2070
+ G(i.innerType, t, r);
2071
2071
  let a = t.seen.get(e);
2072
2072
  a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2073
- }, Or = (e, t, n, r) => {
2073
+ }, Dr = (e, t, n, r) => {
2074
2074
  let i = e._zod.def;
2075
- W(i.innerType, t, r);
2075
+ G(i.innerType, t, r);
2076
2076
  let a = t.seen.get(e);
2077
2077
  a.ref = i.innerType;
2078
2078
  let o;
@@ -2082,51 +2082,51 @@ var pr = (e, t = {}) => (n) => {
2082
2082
  throw Error("Dynamic catch values are not supported in JSON Schema");
2083
2083
  }
2084
2084
  n.default = o;
2085
- }, kr = (e, t, n, r) => {
2085
+ }, Or = (e, t, n, r) => {
2086
2086
  let i = e._zod.def, a = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
2087
- W(a, t, r);
2087
+ G(a, t, r);
2088
2088
  let o = t.seen.get(e);
2089
2089
  o.ref = a;
2090
- }, Ar = (e, t, n, r) => {
2090
+ }, kr = (e, t, n, r) => {
2091
2091
  let i = e._zod.def;
2092
- W(i.innerType, t, r);
2092
+ G(i.innerType, t, r);
2093
2093
  let a = t.seen.get(e);
2094
2094
  a.ref = i.innerType, n.readOnly = !0;
2095
- }, jr = (e, t, n, r) => {
2095
+ }, Ar = (e, t, n, r) => {
2096
2096
  let i = e._zod.def;
2097
- W(i.innerType, t, r);
2097
+ G(i.innerType, t, r);
2098
2098
  let a = t.seen.get(e);
2099
2099
  a.ref = i.innerType;
2100
- }, Mr = /* @__PURE__ */ t("ZodISODateTime", (e, t) => {
2100
+ }, jr = /* @__PURE__ */ t("ZodISODateTime", (e, t) => {
2101
+ Dt.init(e, t), X.init(e, t);
2102
+ });
2103
+ function Mr(e) {
2104
+ return /* @__PURE__ */ Bn(jr, e);
2105
+ }
2106
+ var Nr = /* @__PURE__ */ t("ZodISODate", (e, t) => {
2101
2107
  Ot.init(e, t), X.init(e, t);
2102
2108
  });
2103
- function Nr(e) {
2104
- return /* @__PURE__ */ Vn(Mr, e);
2109
+ function Pr(e) {
2110
+ return /* @__PURE__ */ Vn(Nr, e);
2105
2111
  }
2106
- var Pr = /* @__PURE__ */ t("ZodISODate", (e, t) => {
2112
+ var Fr = /* @__PURE__ */ t("ZodISOTime", (e, t) => {
2107
2113
  kt.init(e, t), X.init(e, t);
2108
2114
  });
2109
- function Fr(e) {
2110
- return /* @__PURE__ */ Hn(Pr, e);
2115
+ function Ir(e) {
2116
+ return /* @__PURE__ */ Hn(Fr, e);
2111
2117
  }
2112
- var Ir = /* @__PURE__ */ t("ZodISOTime", (e, t) => {
2118
+ var Lr = /* @__PURE__ */ t("ZodISODuration", (e, t) => {
2113
2119
  At.init(e, t), X.init(e, t);
2114
2120
  });
2115
- function Lr(e) {
2116
- return /* @__PURE__ */ Un(Ir, e);
2117
- }
2118
- var Rr = /* @__PURE__ */ t("ZodISODuration", (e, t) => {
2119
- jt.init(e, t), X.init(e, t);
2120
- });
2121
- function zr(e) {
2122
- return /* @__PURE__ */ Wn(Rr, e);
2121
+ function Rr(e) {
2122
+ return /* @__PURE__ */ Un(Lr, e);
2123
2123
  }
2124
2124
  //#endregion
2125
2125
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
2126
- var Br = (e, t) => {
2127
- ge.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2128
- format: { value: (t) => ye(e, t) },
2129
- flatten: { value: (t) => ve(e, t) },
2126
+ var zr = (e, t) => {
2127
+ he.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2128
+ format: { value: (t) => ve(e, t) },
2129
+ flatten: { value: (t) => _e(e, t) },
2130
2130
  addIssue: { value: (t) => {
2131
2131
  e.issues.push(t), e.message = JSON.stringify(e.issues, s, 2);
2132
2132
  } },
@@ -2138,147 +2138,147 @@ var Br = (e, t) => {
2138
2138
  } }
2139
2139
  });
2140
2140
  };
2141
- t("ZodError", Br);
2142
- var q = t("ZodError", Br, { Parent: Error }), Vr = /* @__PURE__ */ T(q), Hr = /* @__PURE__ */ E(q), Ur = /* @__PURE__ */ D(q), Wr = /* @__PURE__ */ O(q), Gr = /* @__PURE__ */ we(q), Kr = /* @__PURE__ */ Te(q), qr = /* @__PURE__ */ Ee(q), Jr = /* @__PURE__ */ De(q), Yr = /* @__PURE__ */ Oe(q), Xr = /* @__PURE__ */ ke(q), Zr = /* @__PURE__ */ Ae(q), Qr = /* @__PURE__ */ je(q), J = /* @__PURE__ */ t("ZodType", (e, t) => (j.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2143
- input: K(e, "input"),
2144
- output: K(e, "output")
2145
- } }), e.toJSONSchema = pr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(m(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
2141
+ t("ZodError", zr);
2142
+ var J = t("ZodError", zr, { Parent: Error }), Br = /* @__PURE__ */ E(J), Vr = /* @__PURE__ */ D(J), Hr = /* @__PURE__ */ O(J), Ur = /* @__PURE__ */ k(J), Wr = /* @__PURE__ */ Ce(J), Gr = /* @__PURE__ */ we(J), Kr = /* @__PURE__ */ Te(J), qr = /* @__PURE__ */ Ee(J), Jr = /* @__PURE__ */ De(J), Yr = /* @__PURE__ */ Oe(J), Xr = /* @__PURE__ */ ke(J), Zr = /* @__PURE__ */ Ae(J), Y = /* @__PURE__ */ t("ZodType", (e, t) => (M.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2143
+ input: q(e, "input"),
2144
+ output: q(e, "output")
2145
+ } }), e.toJSONSchema = fr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(m(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
2146
2146
  check: e,
2147
2147
  def: { check: "custom" },
2148
2148
  onattach: []
2149
- } } : e)] }), { parent: !0 }), e.with = e.check, e.clone = (t, n) => v(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Vr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Ur(e, t, n), e.parseAsync = async (t, n) => Hr(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Wr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Gr(e, t, n), e.decode = (t, n) => Kr(e, t, n), e.encodeAsync = async (t, n) => qr(e, t, n), e.decodeAsync = async (t, n) => Jr(e, t, n), e.safeEncode = (t, n) => Yr(e, t, n), e.safeDecode = (t, n) => Xr(e, t, n), e.safeEncodeAsync = async (t, n) => Zr(e, t, n), e.safeDecodeAsync = async (t, n) => Qr(e, t, n), e.refine = (t, n) => e.check(Qi(t, n)), e.superRefine = (t) => e.check($i(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ U(t)), e.optional = () => Pi(e), e.exactOptional = () => Ii(e), e.nullable = () => Ri(e), e.nullish = () => Pi(Ri(e)), e.nonoptional = (t) => Wi(e, t), e.array = () => wi(e), e.or = (t) => Oi([e, t]), e.and = (t) => Ai(e, t), e.transform = (t) => Ji(e, Ni(t)), e.default = (t) => Bi(e, t), e.prefault = (t) => Hi(e, t), e.catch = (t) => Ki(e, t), e.pipe = (t) => Ji(e, t), e.readonly = () => Xi(e), e.describe = (t) => {
2149
+ } } : e)] }), { parent: !0 }), e.with = e.check, e.clone = (t, n) => v(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Br(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Hr(e, t, n), e.parseAsync = async (t, n) => Vr(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ur(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Wr(e, t, n), e.decode = (t, n) => Gr(e, t, n), e.encodeAsync = async (t, n) => Kr(e, t, n), e.decodeAsync = async (t, n) => qr(e, t, n), e.safeEncode = (t, n) => Jr(e, t, n), e.safeDecode = (t, n) => Yr(e, t, n), e.safeEncodeAsync = async (t, n) => Xr(e, t, n), e.safeDecodeAsync = async (t, n) => Zr(e, t, n), e.refine = (t, n) => e.check(Qi(t, n)), e.superRefine = (t) => e.check($i(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ W(t)), e.optional = () => Pi(e), e.exactOptional = () => Ii(e), e.nullable = () => Ri(e), e.nullish = () => Pi(Ri(e)), e.nonoptional = (t) => Wi(e, t), e.array = () => Ci(e), e.or = (t) => Di([e, t]), e.and = (t) => ki(e, t), e.transform = (t) => Ji(e, Mi(t)), e.default = (t) => Bi(e, t), e.prefault = (t) => Hi(e, t), e.catch = (t) => Ki(e, t), e.pipe = (t) => Ji(e, t), e.readonly = () => Xi(e), e.describe = (t) => {
2150
2150
  let n = e.clone();
2151
- return V.add(n, { description: t }), n;
2151
+ return H.add(n, { description: t }), n;
2152
2152
  }, Object.defineProperty(e, "description", {
2153
2153
  get() {
2154
- return V.get(e)?.description;
2154
+ return H.get(e)?.description;
2155
2155
  },
2156
2156
  configurable: !0
2157
2157
  }), e.meta = (...t) => {
2158
- if (t.length === 0) return V.get(e);
2158
+ if (t.length === 0) return H.get(e);
2159
2159
  let n = e.clone();
2160
- return V.add(n, t[0]), n;
2161
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), $r = /* @__PURE__ */ t("_ZodString", (e, t) => {
2162
- M.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => hr(e, t, n, r);
2160
+ return H.add(n, t[0]), n;
2161
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), Qr = /* @__PURE__ */ t("_ZodString", (e, t) => {
2162
+ N.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => mr(e, t, n, r);
2163
2163
  let n = e._zod.bag;
2164
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ Yn(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ Qn(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ $n(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ er(...t)), e.min = (...t) => e.check(/* @__PURE__ */ H(...t)), e.max = (...t) => e.check(/* @__PURE__ */ qn(...t)), e.length = (...t) => e.check(/* @__PURE__ */ Jn(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ H(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ Xn(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ Zn(t)), e.trim = () => e.check(/* @__PURE__ */ nr()), e.normalize = (...t) => e.check(/* @__PURE__ */ tr(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ rr()), e.toUpperCase = () => e.check(/* @__PURE__ */ ir()), e.slugify = () => e.check(/* @__PURE__ */ ar());
2165
- }), ei = /* @__PURE__ */ t("ZodString", (e, t) => {
2166
- M.init(e, t), $r.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ yn(ti, t)), e.url = (t) => e.check(/* @__PURE__ */ Tn(ri, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Bn(vi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ En(ii, t)), e.guid = (t) => e.check(/* @__PURE__ */ bn(ni, t)), e.uuid = (t) => e.check(/* @__PURE__ */ xn(Z, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Sn(Z, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Cn(Z, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ wn(Z, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Dn(ai, t)), e.guid = (t) => e.check(/* @__PURE__ */ bn(ni, t)), e.cuid = (t) => e.check(/* @__PURE__ */ On(oi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ kn(si, t)), e.ulid = (t) => e.check(/* @__PURE__ */ An(ci, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Ln(hi, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Rn(gi, t)), e.xid = (t) => e.check(/* @__PURE__ */ jn(li, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Mn(ui, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Nn(di, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Pn(fi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Fn(pi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ In(mi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ zn(_i, t)), e.datetime = (t) => e.check(Nr(t)), e.date = (t) => e.check(Fr(t)), e.time = (t) => e.check(Lr(t)), e.duration = (t) => e.check(zr(t));
2164
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ Jn(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ Zn(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ Qn(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ $n(...t)), e.min = (...t) => e.check(/* @__PURE__ */ U(...t)), e.max = (...t) => e.check(/* @__PURE__ */ Kn(...t)), e.length = (...t) => e.check(/* @__PURE__ */ qn(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ U(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ Yn(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ Xn(t)), e.trim = () => e.check(/* @__PURE__ */ tr()), e.normalize = (...t) => e.check(/* @__PURE__ */ er(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ nr()), e.toUpperCase = () => e.check(/* @__PURE__ */ rr()), e.slugify = () => e.check(/* @__PURE__ */ ir());
2165
+ }), $r = /* @__PURE__ */ t("ZodString", (e, t) => {
2166
+ N.init(e, t), Qr.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ vn(ti, t)), e.url = (t) => e.check(/* @__PURE__ */ wn(ri, t)), e.jwt = (t) => e.check(/* @__PURE__ */ zn(vi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Tn(ii, t)), e.guid = (t) => e.check(/* @__PURE__ */ yn(ni, t)), e.uuid = (t) => e.check(/* @__PURE__ */ bn(Z, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ xn(Z, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Sn(Z, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Cn(Z, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ En(ai, t)), e.guid = (t) => e.check(/* @__PURE__ */ yn(ni, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Dn(oi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ On(si, t)), e.ulid = (t) => e.check(/* @__PURE__ */ kn(ci, t)), e.base64 = (t) => e.check(/* @__PURE__ */ In(hi, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Ln(gi, t)), e.xid = (t) => e.check(/* @__PURE__ */ An(li, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ jn(ui, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Mn(di, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Nn(fi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Pn(pi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Fn(mi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ Rn(_i, t)), e.datetime = (t) => e.check(Mr(t)), e.date = (t) => e.check(Pr(t)), e.time = (t) => e.check(Ir(t)), e.duration = (t) => e.check(Rr(t));
2167
2167
  });
2168
- function Y(e) {
2169
- return /* @__PURE__ */ vn(ei, e);
2168
+ function ei(e) {
2169
+ return /* @__PURE__ */ _n($r, e);
2170
2170
  }
2171
2171
  var X = /* @__PURE__ */ t("ZodStringFormat", (e, t) => {
2172
- N.init(e, t), $r.init(e, t);
2172
+ P.init(e, t), Qr.init(e, t);
2173
2173
  }), ti = /* @__PURE__ */ t("ZodEmail", (e, t) => {
2174
- yt.init(e, t), X.init(e, t);
2174
+ vt.init(e, t), X.init(e, t);
2175
2175
  }), ni = /* @__PURE__ */ t("ZodGUID", (e, t) => {
2176
- _t.init(e, t), X.init(e, t);
2176
+ gt.init(e, t), X.init(e, t);
2177
2177
  }), Z = /* @__PURE__ */ t("ZodUUID", (e, t) => {
2178
- vt.init(e, t), X.init(e, t);
2178
+ _t.init(e, t), X.init(e, t);
2179
2179
  }), ri = /* @__PURE__ */ t("ZodURL", (e, t) => {
2180
- bt.init(e, t), X.init(e, t);
2180
+ yt.init(e, t), X.init(e, t);
2181
2181
  }), ii = /* @__PURE__ */ t("ZodEmoji", (e, t) => {
2182
- xt.init(e, t), X.init(e, t);
2182
+ bt.init(e, t), X.init(e, t);
2183
2183
  }), ai = /* @__PURE__ */ t("ZodNanoID", (e, t) => {
2184
- St.init(e, t), X.init(e, t);
2184
+ xt.init(e, t), X.init(e, t);
2185
2185
  }), oi = /* @__PURE__ */ t("ZodCUID", (e, t) => {
2186
- Ct.init(e, t), X.init(e, t);
2186
+ St.init(e, t), X.init(e, t);
2187
2187
  }), si = /* @__PURE__ */ t("ZodCUID2", (e, t) => {
2188
- wt.init(e, t), X.init(e, t);
2188
+ Ct.init(e, t), X.init(e, t);
2189
2189
  }), ci = /* @__PURE__ */ t("ZodULID", (e, t) => {
2190
- Tt.init(e, t), X.init(e, t);
2190
+ wt.init(e, t), X.init(e, t);
2191
2191
  }), li = /* @__PURE__ */ t("ZodXID", (e, t) => {
2192
- Et.init(e, t), X.init(e, t);
2192
+ Tt.init(e, t), X.init(e, t);
2193
2193
  }), ui = /* @__PURE__ */ t("ZodKSUID", (e, t) => {
2194
- Dt.init(e, t), X.init(e, t);
2194
+ Et.init(e, t), X.init(e, t);
2195
2195
  }), di = /* @__PURE__ */ t("ZodIPv4", (e, t) => {
2196
- Mt.init(e, t), X.init(e, t);
2196
+ jt.init(e, t), X.init(e, t);
2197
2197
  }), fi = /* @__PURE__ */ t("ZodIPv6", (e, t) => {
2198
- Nt.init(e, t), X.init(e, t);
2198
+ Mt.init(e, t), X.init(e, t);
2199
2199
  }), pi = /* @__PURE__ */ t("ZodCIDRv4", (e, t) => {
2200
- Pt.init(e, t), X.init(e, t);
2200
+ Nt.init(e, t), X.init(e, t);
2201
2201
  }), mi = /* @__PURE__ */ t("ZodCIDRv6", (e, t) => {
2202
- Ft.init(e, t), X.init(e, t);
2202
+ Pt.init(e, t), X.init(e, t);
2203
2203
  }), hi = /* @__PURE__ */ t("ZodBase64", (e, t) => {
2204
- Lt.init(e, t), X.init(e, t);
2204
+ It.init(e, t), X.init(e, t);
2205
2205
  }), gi = /* @__PURE__ */ t("ZodBase64URL", (e, t) => {
2206
- zt.init(e, t), X.init(e, t);
2206
+ Rt.init(e, t), X.init(e, t);
2207
2207
  }), _i = /* @__PURE__ */ t("ZodE164", (e, t) => {
2208
- Bt.init(e, t), X.init(e, t);
2208
+ zt.init(e, t), X.init(e, t);
2209
2209
  }), vi = /* @__PURE__ */ t("ZodJWT", (e, t) => {
2210
- Ht.init(e, t), X.init(e, t);
2210
+ Vt.init(e, t), X.init(e, t);
2211
2211
  }), yi = /* @__PURE__ */ t("ZodUnknown", (e, t) => {
2212
- Ut.init(e, t), J.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2212
+ Ht.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2213
2213
  });
2214
- function bi() {
2215
- return /* @__PURE__ */ Gn(yi);
2214
+ function Q() {
2215
+ return /* @__PURE__ */ Wn(yi);
2216
2216
  }
2217
- var xi = /* @__PURE__ */ t("ZodNever", (e, t) => {
2218
- Wt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => gr(e, t, n, r);
2217
+ var bi = /* @__PURE__ */ t("ZodNever", (e, t) => {
2218
+ Ut.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => hr(e, t, n, r);
2219
2219
  });
2220
- function Si(e) {
2221
- return /* @__PURE__ */ Kn(xi, e);
2220
+ function xi(e) {
2221
+ return /* @__PURE__ */ Gn(bi, e);
2222
2222
  }
2223
- var Ci = /* @__PURE__ */ t("ZodArray", (e, t) => {
2224
- Kt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => br(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ H(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ H(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ qn(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ Jn(t, n)), e.unwrap = () => e.element;
2223
+ var Si = /* @__PURE__ */ t("ZodArray", (e, t) => {
2224
+ Gt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => yr(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ U(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ U(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ Kn(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ qn(t, n)), e.unwrap = () => e.element;
2225
2225
  });
2226
- function wi(e, t) {
2227
- return /* @__PURE__ */ or(Ci, e, t);
2226
+ function Ci(e, t) {
2227
+ return /* @__PURE__ */ ar(Si, e, t);
2228
2228
  }
2229
- var Ti = /* @__PURE__ */ t("ZodObject", (e, t) => {
2230
- Xt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n, r), f(e, "shape", () => t.shape), e.keyof = () => ji(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
2229
+ var wi = /* @__PURE__ */ t("ZodObject", (e, t) => {
2230
+ Yt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => br(e, t, n, r), f(e, "shape", () => t.shape), e.keyof = () => Ai(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
2231
2231
  ...e._zod.def,
2232
2232
  catchall: t
2233
2233
  }), e.passthrough = () => e.clone({
2234
2234
  ...e._zod.def,
2235
- catchall: bi()
2235
+ catchall: Q()
2236
2236
  }), e.loose = () => e.clone({
2237
2237
  ...e._zod.def,
2238
- catchall: bi()
2238
+ catchall: Q()
2239
2239
  }), e.strict = () => e.clone({
2240
2240
  ...e._zod.def,
2241
- catchall: Si()
2241
+ catchall: xi()
2242
2242
  }), e.strip = () => e.clone({
2243
2243
  ...e._zod.def,
2244
2244
  catchall: void 0
2245
- }), e.extend = (t) => le(e, t), e.safeExtend = (t) => ue(e, t), e.merge = (t) => de(e, t), e.pick = (t) => se(e, t), e.omit = (t) => ce(e, t), e.partial = (...t) => fe($, e, t[0]), e.required = (...t) => pe(Ui, e, t[0]);
2245
+ }), e.extend = (t) => le(e, t), e.safeExtend = (t) => ue(e, t), e.merge = (t) => de(e, t), e.pick = (t) => se(e, t), e.omit = (t) => ce(e, t), e.partial = (...t) => fe(Ni, e, t[0]), e.required = (...t) => pe(Ui, e, t[0]);
2246
2246
  });
2247
- function Ei(e, t) {
2248
- return new Ti({
2247
+ function Ti(e, t) {
2248
+ return new wi({
2249
2249
  type: "object",
2250
2250
  shape: e ?? {},
2251
2251
  ...y(t)
2252
2252
  });
2253
2253
  }
2254
- var Di = /* @__PURE__ */ t("ZodUnion", (e, t) => {
2255
- Qt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sr(e, t, n, r), e.options = t.options;
2254
+ var Ei = /* @__PURE__ */ t("ZodUnion", (e, t) => {
2255
+ Zt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n, r), e.options = t.options;
2256
2256
  });
2257
- function Oi(e, t) {
2258
- return new Di({
2257
+ function Di(e, t) {
2258
+ return new Ei({
2259
2259
  type: "union",
2260
2260
  options: e,
2261
2261
  ...y(t)
2262
2262
  });
2263
2263
  }
2264
- var ki = /* @__PURE__ */ t("ZodIntersection", (e, t) => {
2265
- $t.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cr(e, t, n, r);
2264
+ var Oi = /* @__PURE__ */ t("ZodIntersection", (e, t) => {
2265
+ Qt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sr(e, t, n, r);
2266
2266
  });
2267
- function Ai(e, t) {
2268
- return new ki({
2267
+ function ki(e, t) {
2268
+ return new Oi({
2269
2269
  type: "intersection",
2270
2270
  left: e,
2271
2271
  right: t
2272
2272
  });
2273
2273
  }
2274
- var Q = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2275
- en.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => _r(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2274
+ var $ = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2275
+ $t.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => gr(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2276
2276
  let n = new Set(Object.keys(t.entries));
2277
2277
  e.extract = (e, r) => {
2278
2278
  let i = {};
2279
2279
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
2280
2280
  else throw Error(`Key ${r} not found in enum`);
2281
- return new Q({
2281
+ return new $({
2282
2282
  ...t,
2283
2283
  checks: [],
2284
2284
  ...y(r),
@@ -2288,7 +2288,7 @@ var Q = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2288
2288
  let i = { ...t.entries };
2289
2289
  for (let t of e) if (n.has(t)) delete i[t];
2290
2290
  else throw Error(`Key ${t} not found in enum`);
2291
- return new Q({
2291
+ return new $({
2292
2292
  ...t,
2293
2293
  checks: [],
2294
2294
  ...y(r),
@@ -2296,44 +2296,44 @@ var Q = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2296
2296
  });
2297
2297
  };
2298
2298
  });
2299
- function ji(e, t) {
2300
- return new Q({
2299
+ function Ai(e, t) {
2300
+ return new $({
2301
2301
  type: "enum",
2302
2302
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2303
2303
  ...y(t)
2304
2304
  });
2305
2305
  }
2306
- var Mi = /* @__PURE__ */ t("ZodTransform", (e, t) => {
2307
- tn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => yr(e, t, n, r), e._zod.parse = (n, i) => {
2306
+ var ji = /* @__PURE__ */ t("ZodTransform", (e, t) => {
2307
+ en.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => vr(e, t, n, r), e._zod.parse = (n, i) => {
2308
2308
  if (i.direction === "backward") throw new r(e.constructor.name);
2309
2309
  n.addIssue = (r) => {
2310
- if (typeof r == "string") n.issues.push(w(r, n.value, t));
2310
+ if (typeof r == "string") n.issues.push(T(r, n.value, t));
2311
2311
  else {
2312
2312
  let t = r;
2313
- t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(w(t));
2313
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(T(t));
2314
2314
  }
2315
2315
  };
2316
2316
  let a = t.transform(n.value, n);
2317
2317
  return a instanceof Promise ? a.then((e) => (n.value = e, n)) : (n.value = a, n);
2318
2318
  };
2319
2319
  });
2320
- function Ni(e) {
2321
- return new Mi({
2320
+ function Mi(e) {
2321
+ return new ji({
2322
2322
  type: "transform",
2323
2323
  transform: e
2324
2324
  });
2325
2325
  }
2326
- var $ = /* @__PURE__ */ t("ZodOptional", (e, t) => {
2327
- R.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2326
+ var Ni = /* @__PURE__ */ t("ZodOptional", (e, t) => {
2327
+ z.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2328
2328
  });
2329
2329
  function Pi(e) {
2330
- return new $({
2330
+ return new Ni({
2331
2331
  type: "optional",
2332
2332
  innerType: e
2333
2333
  });
2334
2334
  }
2335
2335
  var Fi = /* @__PURE__ */ t("ZodExactOptional", (e, t) => {
2336
- nn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2336
+ tn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2337
2337
  });
2338
2338
  function Ii(e) {
2339
2339
  return new Fi({
@@ -2342,7 +2342,7 @@ function Ii(e) {
2342
2342
  });
2343
2343
  }
2344
2344
  var Li = /* @__PURE__ */ t("ZodNullable", (e, t) => {
2345
- rn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => wr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2345
+ nn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2346
2346
  });
2347
2347
  function Ri(e) {
2348
2348
  return new Li({
@@ -2351,7 +2351,7 @@ function Ri(e) {
2351
2351
  });
2352
2352
  }
2353
2353
  var zi = /* @__PURE__ */ t("ZodDefault", (e, t) => {
2354
- an.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Er(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2354
+ rn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Tr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2355
2355
  });
2356
2356
  function Bi(e, t) {
2357
2357
  return new zi({
@@ -2363,7 +2363,7 @@ function Bi(e, t) {
2363
2363
  });
2364
2364
  }
2365
2365
  var Vi = /* @__PURE__ */ t("ZodPrefault", (e, t) => {
2366
- on.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2366
+ an.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Er(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2367
2367
  });
2368
2368
  function Hi(e, t) {
2369
2369
  return new Vi({
@@ -2375,7 +2375,7 @@ function Hi(e, t) {
2375
2375
  });
2376
2376
  }
2377
2377
  var Ui = /* @__PURE__ */ t("ZodNonOptional", (e, t) => {
2378
- sn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Tr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2378
+ on.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => wr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2379
2379
  });
2380
2380
  function Wi(e, t) {
2381
2381
  return new Ui({
@@ -2385,7 +2385,7 @@ function Wi(e, t) {
2385
2385
  });
2386
2386
  }
2387
2387
  var Gi = /* @__PURE__ */ t("ZodCatch", (e, t) => {
2388
- ln.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Or(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2388
+ cn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2389
2389
  });
2390
2390
  function Ki(e, t) {
2391
2391
  return new Gi({
@@ -2395,7 +2395,7 @@ function Ki(e, t) {
2395
2395
  });
2396
2396
  }
2397
2397
  var qi = /* @__PURE__ */ t("ZodPipe", (e, t) => {
2398
- un.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => kr(e, t, n, r), e.in = t.in, e.out = t.out;
2398
+ ln.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Or(e, t, n, r), e.in = t.in, e.out = t.out;
2399
2399
  });
2400
2400
  function Ji(e, t) {
2401
2401
  return new qi({
@@ -2405,7 +2405,7 @@ function Ji(e, t) {
2405
2405
  });
2406
2406
  }
2407
2407
  var Yi = /* @__PURE__ */ t("ZodReadonly", (e, t) => {
2408
- dn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2408
+ un.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => kr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2409
2409
  });
2410
2410
  function Xi(e) {
2411
2411
  return new Yi({
@@ -2414,25 +2414,24 @@ function Xi(e) {
2414
2414
  });
2415
2415
  }
2416
2416
  var Zi = /* @__PURE__ */ t("ZodCustom", (e, t) => {
2417
- pn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => vr(e, t, n, r);
2417
+ fn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => _r(e, t, n, r);
2418
2418
  });
2419
2419
  function Qi(e, t = {}) {
2420
- return /* @__PURE__ */ sr(Zi, e, t);
2420
+ return /* @__PURE__ */ or(Zi, e, t);
2421
2421
  }
2422
2422
  function $i(e) {
2423
- return /* @__PURE__ */ cr(e);
2423
+ return /* @__PURE__ */ sr(e);
2424
2424
  }
2425
2425
  //#endregion
2426
2426
  //#region src/config/env.ts
2427
- var ea = Ei({
2428
- HYPE_STACK_API_URL: Y().url().optional(),
2429
- HYPE_STACK_WEB_URL: Y().url().optional(),
2430
- HYPE_STACK_LICENSE_KEY: Y().optional()
2427
+ var ea = Ti({
2428
+ HYPE_STACK_API_URL: ei().url().optional(),
2429
+ HYPE_STACK_WEB_URL: ei().url().optional()
2431
2430
  });
2432
2431
  (() => {
2433
2432
  let e = ea.safeParse(process.env);
2434
2433
  if (!e.success) {
2435
- let t = xe(e.error);
2434
+ let t = be(e.error);
2436
2435
  throw Error(`Invalid CLI environment variables:\n ${t}`);
2437
2436
  }
2438
2437
  return e.data;