@oomol-lab/open-flow 0.1.0-beta.31 → 0.1.0-beta.33

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 (63) hide show
  1. package/dist/browser/{createResourceDialog-FBRnCMK6.js → createResourceDialog-DRB0OEtr.js} +2 -2
  2. package/dist/browser/{editorComponent-CyH2o-Ji.js → editorComponent-bXA-KosC.js} +2744 -1113
  3. package/dist/browser/flow-authoring-node.d.ts +5 -3
  4. package/dist/browser/flow-authoring.js +1569 -1462
  5. package/dist/browser/flow-change.d.ts +44 -17
  6. package/dist/browser/flow-change.js +1614 -1492
  7. package/dist/browser/flow-input-value.d.ts +6 -0
  8. package/dist/browser/flow-notifications.d.ts +5 -0
  9. package/dist/browser/flowChanges-FiZJreeB.js +9855 -0
  10. package/dist/browser/{flowRunInputEditorStore-CTORQcA2.js → flowRunInputEditorStore-Bgb5vSeS.js} +3 -3
  11. package/dist/browser/flowWorkspace-CBo6Ih_c.js +40987 -0
  12. package/dist/browser/{inputValues-C21gYJuc.js → inputValues-CUyjbECo.js} +2 -2
  13. package/dist/browser/licenses.md +0 -58
  14. package/dist/browser/{lite-BuKZ8joP.js → lite-BA96NG4M.js} +8 -4
  15. package/dist/browser/theme.css +2 -0
  16. package/dist/browser/ui.css +2 -1
  17. package/dist/browser/ui.d.ts +31 -3
  18. package/dist/browser/ui.js +3547 -772
  19. package/dist/browser/{value-DPg_9yXB.js → value-B_yE9ean.js} +22 -14
  20. package/dist/browser/workbench.css +1 -1
  21. package/dist/browser/workbench.d.ts +1 -0
  22. package/dist/browser/workbench.js +3944 -1077
  23. package/dist/browser/{workbenchSelect-DAaGuZwP.js → workbenchSelect-DNteZJYP.js} +1695 -1471
  24. package/dist/common/control-api-conformance.d.ts +6 -0
  25. package/dist/common/control-api-conformance.js +502 -388
  26. package/dist/common/control-api-errors.d.ts +16 -0
  27. package/dist/common/control-api.d.ts +49 -6
  28. package/dist/common/control-api.js +1715 -1564
  29. package/dist/common/control-requests.d.ts +10 -0
  30. package/dist/common/control-requests.js +1182 -1137
  31. package/dist/common/event-sources.d.ts +0 -1
  32. package/dist/common/feishu-events.d.ts +0 -1
  33. package/dist/common/flow-encoding.js +580 -557
  34. package/dist/common/flow-graph.d.ts +16 -9
  35. package/dist/common/flow-notifications.d.ts +5 -0
  36. package/dist/common/flow-semantics.d.ts +2 -2
  37. package/dist/common/flow-semantics.js +2184 -1912
  38. package/dist/common/fr-ClB96SQY.js +298 -0
  39. package/dist/common/integration-trigger.d.ts +1 -0
  40. package/dist/common/integration-trigger.js +7572 -88
  41. package/dist/common/ja-BJF-VrP2.js +298 -0
  42. package/dist/common/ko-Bght_VaB.js +298 -0
  43. package/dist/common/mcp.js +1718 -1571
  44. package/dist/common/poll-trigger.d.ts +3 -1
  45. package/dist/common/poll-trigger.js +7512 -28
  46. package/dist/common/provider-triggers.js +6798 -3518
  47. package/dist/common/ru-DrP4BRM5.js +298 -0
  48. package/dist/common/runtime-contract.d.ts +1 -1
  49. package/dist/common/runtime-contract.js +41 -27
  50. package/dist/common/scheduler.js +921 -738
  51. package/dist/common/trigger-catalog.d.ts +3 -1
  52. package/dist/common/trigger-config.d.ts +7 -0
  53. package/dist/common/zh-CN-D2od3TNw.js +298 -0
  54. package/dist/common/zh-TW-CRmc3FMz.js +298 -0
  55. package/package.json +1 -1
  56. package/dist/browser/flowChanges-ScpWTKtQ.js +0 -12293
  57. package/dist/browser/flowWorkspace-CY1r6dwz.js +0 -153101
  58. package/dist/common/fr-iv1541dF.js +0 -93
  59. package/dist/common/ja-Bq-ZDOD4.js +0 -93
  60. package/dist/common/ko-Z-k9R2c6.js +0 -93
  61. package/dist/common/ru-B4gFecYZ.js +0 -93
  62. package/dist/common/zh-CN-ByQ6nYam.js +0 -93
  63. package/dist/common/zh-TW-QjIarvX9.js +0 -93
@@ -68,7 +68,7 @@ function m(e) {
68
68
  return typeof e == "object" && !!e && !Array.isArray(e);
69
69
  }
70
70
  var ee = /* @__PURE__*/ r(() => {
71
- if (S.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
71
+ if (x.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
72
72
  try {
73
73
  return Function(""), !0;
74
74
  } catch {
@@ -244,38 +244,38 @@ function ge(e, t = 0) {
244
244
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
245
245
  return !1;
246
246
  }
247
- function _e(e, t) {
247
+ function _(e, t) {
248
248
  return t.map((t) => {
249
249
  var n;
250
250
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
251
251
  });
252
252
  }
253
- function ve(e) {
253
+ function _e(e) {
254
254
  return typeof e == "string" ? e : e?.message;
255
255
  }
256
- function ye(e, t, n) {
256
+ function ve(e, t, n) {
257
257
  var r;
258
258
  for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
259
259
  }
260
- function _(e, t, n) {
260
+ function v(e, t, n) {
261
261
  var r;
262
262
  let i = e.inst?._zod?.traits;
263
263
  i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
264
- let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : ve(e.inst?._zod.def?.error?.(e)) ?? ve(a?.(e)) ?? ve(t?.error?.(e)) ?? ve(n.customError?.(e)) ?? ve(n.localeError?.(e)) ?? "Invalid input", { inst: s, schema: c, continue: l, input: u, ...d } = e;
264
+ let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : _e(e.inst?._zod.def?.error?.(e)) ?? _e(a?.(e)) ?? _e(t?.error?.(e)) ?? _e(n.customError?.(e)) ?? _e(n.localeError?.(e)) ?? "Invalid input", { inst: s, schema: c, continue: l, input: u, ...d } = e;
265
265
  return d.path ??= [], d.message = o, t?.reportInput && (d.input = u), d;
266
266
  }
267
- var be = /[\uD800-\uDBFF]/;
268
- function xe(e) {
267
+ var ye = /[\uD800-\uDBFF]/;
268
+ function be(e) {
269
269
  let t = e.length;
270
- if (!be.test(e)) return t;
270
+ if (!ye.test(e)) return t;
271
271
  let n = t;
272
272
  for (let r = 0; r < t - 1; r++) (e.charCodeAt(r) & 64512) == 55296 && (e.charCodeAt(r + 1) & 64512) == 56320 && (n--, r++);
273
273
  return n;
274
274
  }
275
- function Se(e) {
275
+ function xe(e) {
276
276
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
277
277
  }
278
- function Ce(e) {
278
+ function Se(e) {
279
279
  let t = typeof e;
280
280
  switch (t) {
281
281
  case "number": return Number.isNaN(e) ? "nan" : "number";
@@ -288,7 +288,7 @@ function Ce(e) {
288
288
  }
289
289
  return t;
290
290
  }
291
- function we(...e) {
291
+ function Ce(...e) {
292
292
  let [t, n, r] = e;
293
293
  return typeof t == "string" ? {
294
294
  message: t,
@@ -297,7 +297,7 @@ function we(...e) {
297
297
  inst: r
298
298
  } : { ...t };
299
299
  }
300
- function Te(e, t) {
300
+ function we(e, t) {
301
301
  for (let n in t) {
302
302
  let r = Object.getOwnPropertyDescriptor(t, n);
303
303
  r.get ? Object.defineProperty(e, n, {
@@ -306,7 +306,7 @@ function Te(e, t) {
306
306
  }) : De(e, n, r.value);
307
307
  }
308
308
  }
309
- function v(e, t, n, r = !0) {
309
+ function Te(e, t, n, r = !0) {
310
310
  return Object.defineProperty(e, t, {
311
311
  configurable: !0,
312
312
  writable: !0,
@@ -315,16 +315,16 @@ function v(e, t, n, r = !0) {
315
315
  }), n;
316
316
  }
317
317
  function Ee(e, t, n) {
318
- return v(e, t, n, !1);
318
+ return Te(e, t, n, !1);
319
319
  }
320
320
  function De(e, t, n) {
321
321
  Object.defineProperty(e, t, {
322
322
  configurable: !0,
323
323
  get() {
324
- return this == null ? n : v(this, t, n.bind(this));
324
+ return this == null ? n : Te(this, t, n.bind(this));
325
325
  },
326
326
  set(e) {
327
- v(this, t, e);
327
+ Te(this, t, e);
328
328
  }
329
329
  });
330
330
  }
@@ -332,13 +332,13 @@ function Oe(e, t) {
332
332
  let n = Object.getPrototypeOf(e);
333
333
  return t in n ? void 0 : n;
334
334
  }
335
- var ke, y = !1, Ae = {
335
+ var ke, Ae = !1, je = {
336
336
  configurable: !0,
337
337
  get() {
338
- y = !0;
338
+ Ae = !0;
339
339
  }
340
340
  };
341
- function b(e, t, n) {
341
+ function y(e, t, n) {
342
342
  let r = Object.getPrototypeOf(e._zod);
343
343
  if (t in r && ke !== e._zod) {
344
344
  ke = void 0;
@@ -347,18 +347,18 @@ function b(e, t, n) {
347
347
  ke = e._zod, Object.defineProperty(r, t, {
348
348
  configurable: !0,
349
349
  get() {
350
- Object.defineProperty(this, t, Ae);
351
- let e = y;
352
- y = !1;
350
+ Object.defineProperty(this, t, je);
351
+ let e = Ae;
352
+ Ae = !1;
353
353
  try {
354
354
  let r = n(this);
355
- return y ? delete this[t] : Object.defineProperty(this, t, {
355
+ return Ae ? delete this[t] : Object.defineProperty(this, t, {
356
356
  configurable: !0,
357
357
  writable: !0,
358
358
  value: r
359
- }), y ||= e, r;
359
+ }), Ae ||= e, r;
360
360
  } catch (n) {
361
- throw delete this[t], y ||= e, n;
361
+ throw delete this[t], Ae ||= e, n;
362
362
  }
363
363
  },
364
364
  set(e) {
@@ -370,7 +370,7 @@ function b(e, t, n) {
370
370
  }
371
371
  });
372
372
  }
373
- function je(e, t, n, r) {
373
+ function Me(e, t, n, r) {
374
374
  let i = Oe(e, t);
375
375
  i && Object.defineProperty(i, t, {
376
376
  configurable: !0,
@@ -393,26 +393,26 @@ function je(e, t, n, r) {
393
393
  }
394
394
  });
395
395
  }
396
- var Me = "~constantCatch";
397
- function Ne(e) {
396
+ var Ne = "~constantCatch";
397
+ function Pe(e) {
398
398
  let t = () => e;
399
- return t[Me] = !0, t;
399
+ return t[Ne] = !0, t;
400
400
  }
401
401
  //#endregion
402
402
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/core.js
403
- var Pe, Fe = {
403
+ var Fe, Ie = {
404
404
  value: void 0,
405
405
  enumerable: !1
406
- }, Ie = "captureStackTrace" in Error ? Error : null;
407
- function Le(e) {
408
- let t = Ie;
406
+ }, Le = "captureStackTrace" in Error ? Error : null;
407
+ function Re(e) {
408
+ let t = Le;
409
409
  if (t) {
410
410
  let n = t.stackTraceLimit;
411
411
  if (typeof n == "number") {
412
412
  try {
413
413
  t.stackTraceLimit = 0;
414
414
  } catch {
415
- return Ie = null, new e();
415
+ return Le = null, new e();
416
416
  }
417
417
  try {
418
418
  return new e();
@@ -423,7 +423,7 @@ function Le(e) {
423
423
  }
424
424
  return new e();
425
425
  }
426
- function x(e, t, n, r) {
426
+ function b(e, t, n, r) {
427
427
  let i = {};
428
428
  function a(e) {
429
429
  this.def = e, this.constr = d, this.traits = /* @__PURE__ */ new Set();
@@ -432,11 +432,11 @@ function x(e, t, n, r) {
432
432
  let o = n, s = o && /* @__PURE__ */ new WeakSet();
433
433
  function c(n, r) {
434
434
  if (!n._zod) {
435
- Fe.value = new a(r);
435
+ Ie.value = new a(r);
436
436
  try {
437
- Object.defineProperty(n, "_zod", Fe);
437
+ Object.defineProperty(n, "_zod", Ie);
438
438
  } finally {
439
- Fe.value = void 0;
439
+ Ie.value = void 0;
440
440
  }
441
441
  }
442
442
  if (n._zod.traits.has(e)) return;
@@ -444,7 +444,7 @@ function x(e, t, n, r) {
444
444
  let e = Object.getPrototypeOf(n), t = n._zod.constr.prototype, r = e;
445
445
  for (; r && r !== t;) r = Object.getPrototypeOf(r);
446
446
  let i = r ?? e;
447
- s.has(i) || (s.add(i), Te(i, o));
447
+ s.has(i) || (s.add(i), we(i, o));
448
448
  }
449
449
  let i = d.prototype;
450
450
  for (let e in i) Object.prototype.hasOwnProperty.call(i, e) && (e in n || (n[e] = i[e].bind(n)));
@@ -453,7 +453,7 @@ function x(e, t, n, r) {
453
453
  class u extends l {}
454
454
  Object.defineProperty(u, "name", { value: e });
455
455
  function d(e) {
456
- let t = r?.Parent ? Le(u) : this;
456
+ let t = r?.Parent ? Re(u) : this;
457
457
  c(t, e);
458
458
  let n = t._zod.deferred;
459
459
  if (n) {
@@ -465,44 +465,44 @@ function x(e, t, n, r) {
465
465
  }
466
466
  return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
467
467
  }
468
- var Re = class extends Error {
468
+ var ze = class extends Error {
469
469
  constructor() {
470
470
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
471
471
  }
472
- }, ze = class extends Error {
472
+ }, Be = class extends Error {
473
473
  constructor(e) {
474
474
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
475
475
  }
476
476
  };
477
- (Pe = globalThis).__zod_globalConfig ?? (Pe.__zod_globalConfig = {});
478
- var S = globalThis.__zod_globalConfig;
479
- function C(e) {
480
- return e && Object.assign(S, e), S;
477
+ (Fe = globalThis).__zod_globalConfig ?? (Fe.__zod_globalConfig = {});
478
+ var x = globalThis.__zod_globalConfig;
479
+ function S(e) {
480
+ return e && Object.assign(x, e), x;
481
481
  }
482
482
  //#endregion
483
483
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/errors.js
484
- function Be() {
484
+ function Ve() {
485
485
  let e = this._zod;
486
486
  return e.message ??= JSON.stringify(e.def, n, 2), e.message;
487
487
  }
488
- function Ve(e) {
488
+ function He(e) {
489
489
  this._zod.message = e;
490
490
  }
491
- var He = {
492
- get: Be,
493
- set: Ve,
491
+ var Ue = {
492
+ get: Ve,
493
+ set: He,
494
494
  enumerable: !0,
495
495
  configurable: !0
496
- }, Ue = {
496
+ }, We = {
497
497
  value: void 0,
498
498
  enumerable: !1
499
- }, We = {
499
+ }, Ge = {
500
500
  value: void 0,
501
501
  enumerable: !1
502
- }, Ge = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Ke = (e, t) => {
503
- e.name = "$ZodError", Ue.value = e._zod, Object.defineProperty(e, "_zod", Ue), We.value = t, Object.defineProperty(e, "issues", We), Ue.value = void 0, We.value = void 0, Object.defineProperty(e, "message", He);
502
+ }, Ke = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), qe = (e, t) => {
503
+ e.name = "$ZodError", We.value = e._zod, Object.defineProperty(e, "_zod", We), Ge.value = t, Object.defineProperty(e, "issues", Ge), We.value = void 0, Ge.value = void 0, Object.defineProperty(e, "message", Ue);
504
504
  let n = Object.getPrototypeOf(e);
505
- Ge.has(n) || (Ge.add(n), Object.defineProperty(n, "toString", {
505
+ Ke.has(n) || (Ke.add(n), Object.defineProperty(n, "toString", {
506
506
  configurable: !0,
507
507
  enumerable: !1,
508
508
  get() {
@@ -521,8 +521,8 @@ var He = {
521
521
  });
522
522
  }
523
523
  }));
524
- }, qe = x("$ZodError", Ke), Je = x("$ZodError", Ke, void 0, { Parent: Error });
525
- function Ye(e, t, n) {
524
+ }, Je = b("$ZodError", qe), Ye = b("$ZodError", qe, void 0, { Parent: Error });
525
+ function Xe(e, t, n) {
526
526
  return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
527
527
  value: n(),
528
528
  writable: !0,
@@ -530,15 +530,15 @@ function Ye(e, t, n) {
530
530
  configurable: !0
531
531
  }) : e[t] = n()), e[t];
532
532
  }
533
- function Xe(e, t = (e) => e.message) {
533
+ function Ze(e, t = (e) => e.message) {
534
534
  let n = {}, r = [];
535
- for (let i of e.issues) i.path.length > 0 ? Ye(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
535
+ for (let i of e.issues) i.path.length > 0 ? Xe(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
536
536
  return {
537
537
  formErrors: r,
538
538
  fieldErrors: n
539
539
  };
540
540
  }
541
- function Ze(e, t = (e) => e.message) {
541
+ function Qe(e, t = (e) => e.message) {
542
542
  let n = { _errors: [] }, r = (e, i = []) => {
543
543
  for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
544
544
  else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
@@ -570,13 +570,13 @@ function Ze(e, t = (e) => e.message) {
570
570
  }
571
571
  //#endregion
572
572
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/parse.js
573
- function Qe(e, t) {
573
+ function $e(e, t) {
574
574
  return {
575
575
  callee: t?.callee ?? e,
576
576
  Err: t?.Err
577
577
  };
578
578
  }
579
- var $e = (e) => {
579
+ var et = (e) => {
580
580
  let t = (n, r, i, a) => {
581
581
  let o = i ? {
582
582
  ...i,
@@ -585,15 +585,15 @@ var $e = (e) => {
585
585
  value: r,
586
586
  issues: []
587
587
  }, o);
588
- if (s instanceof Promise) throw new Re();
588
+ if (s instanceof Promise) throw new ze();
589
589
  if (s.issues.length) {
590
- let n = new ((a?.Err) ?? e)(s.issues.map((e) => _(e, o, C())));
590
+ let n = new ((a?.Err) ?? e)(s.issues.map((e) => v(e, o, S())));
591
591
  throw p(n, a?.callee ?? t), n;
592
592
  }
593
593
  return s.value;
594
594
  };
595
595
  return t;
596
- }, et = (e) => {
596
+ }, tt = (e) => {
597
597
  let t = async (n, r, i, a) => {
598
598
  let o = i ? {
599
599
  ...i,
@@ -603,13 +603,13 @@ var $e = (e) => {
603
603
  issues: []
604
604
  }, o);
605
605
  if (s instanceof Promise && (s = await s), s.issues.length) {
606
- let n = new ((a?.Err) ?? e)(s.issues.map((e) => _(e, o, C())));
606
+ let n = new ((a?.Err) ?? e)(s.issues.map((e) => v(e, o, S())));
607
607
  throw p(n, a?.callee ?? t), n;
608
608
  }
609
609
  return s.value;
610
610
  };
611
611
  return t;
612
- }, tt = (e) => (t, n, r) => {
612
+ }, nt = (e) => (t, n, r) => {
613
613
  let i = r ? {
614
614
  ...r,
615
615
  async: !1
@@ -617,15 +617,15 @@ var $e = (e) => {
617
617
  value: n,
618
618
  issues: []
619
619
  }, i);
620
- if (a instanceof Promise) throw new Re();
620
+ if (a instanceof Promise) throw new ze();
621
621
  return a.issues.length ? {
622
622
  success: !1,
623
- error: new (e ?? qe)(a.issues.map((e) => _(e, i, C())))
623
+ error: new (e ?? Je)(a.issues.map((e) => v(e, i, S())))
624
624
  } : {
625
625
  success: !0,
626
626
  data: a.value
627
627
  };
628
- }, nt = /* @__PURE__*/ tt(Je), rt = (e) => async (t, n, r) => {
628
+ }, rt = /* @__PURE__*/ nt(Ye), it = (e) => async (t, n, r) => {
629
629
  let i = r ? {
630
630
  ...r,
631
631
  async: !0
@@ -635,98 +635,98 @@ var $e = (e) => {
635
635
  }, i);
636
636
  return a instanceof Promise && (a = await a), a.issues.length ? {
637
637
  success: !1,
638
- error: new e(a.issues.map((e) => _(e, i, C())))
638
+ error: new e(a.issues.map((e) => v(e, i, S())))
639
639
  } : {
640
640
  success: !0,
641
641
  data: a.value
642
642
  };
643
- }, it = /* @__PURE__*/ rt(Je), at = (e) => {
644
- let t = $e(e), n = (e, r, i, a) => {
643
+ }, at = /* @__PURE__*/ it(Ye), ot = (e) => {
644
+ let t = et(e), n = (e, r, i, a) => {
645
645
  let o = i ? {
646
646
  ...i,
647
647
  direction: "backward"
648
648
  } : { direction: "backward" };
649
- return t(e, r, o, Qe(n, a));
649
+ return t(e, r, o, $e(n, a));
650
650
  };
651
651
  return n;
652
- }, ot = (e) => {
653
- let t = $e(e), n = (e, r, i, a) => t(e, r, i, Qe(n, a));
654
- return n;
655
652
  }, st = (e) => {
656
- let t = et(e), n = async (e, r, i, a) => {
653
+ let t = et(e), n = (e, r, i, a) => t(e, r, i, $e(n, a));
654
+ return n;
655
+ }, ct = (e) => {
656
+ let t = tt(e), n = async (e, r, i, a) => {
657
657
  let o = i ? {
658
658
  ...i,
659
659
  direction: "backward"
660
660
  } : { direction: "backward" };
661
- return await t(e, r, o, Qe(n, a));
661
+ return await t(e, r, o, $e(n, a));
662
662
  };
663
663
  return n;
664
- }, ct = (e) => {
665
- let t = et(e), n = async (e, r, i, a) => await t(e, r, i, Qe(n, a));
664
+ }, lt = (e) => {
665
+ let t = tt(e), n = async (e, r, i, a) => await t(e, r, i, $e(n, a));
666
666
  return n;
667
- }, lt = (e) => (t, n, r) => {
667
+ }, ut = (e) => (t, n, r) => {
668
668
  let i = r ? {
669
669
  ...r,
670
670
  direction: "backward"
671
671
  } : { direction: "backward" };
672
- return tt(e)(t, n, i);
673
- }, ut = (e) => (t, n, r) => tt(e)(t, n, r), dt = (e) => async (t, n, r) => {
672
+ return nt(e)(t, n, i);
673
+ }, dt = (e) => (t, n, r) => nt(e)(t, n, r), ft = (e) => async (t, n, r) => {
674
674
  let i = r ? {
675
675
  ...r,
676
676
  direction: "backward"
677
677
  } : { direction: "backward" };
678
- return rt(e)(t, n, i);
679
- }, ft = (e) => async (t, n, r) => rt(e)(t, n, r), pt = /^[cC][0-9a-z]{6,}$/, mt = /^[0-9a-z]+$/, ht = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, gt = /^[0-9a-vA-V]{20}$/, _t = /^[A-Za-z0-9]{27}$/, vt = /^[a-zA-Z0-9_-]{21}$/;
680
- function yt(e) {
678
+ return it(e)(t, n, i);
679
+ }, pt = (e) => async (t, n, r) => it(e)(t, n, r), mt = /^[cC][0-9a-z]{6,}$/, ht = /^[0-9a-z]+$/, gt = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, _t = /^[0-9a-vA-V]{20}$/, vt = /^[A-Za-z0-9]{27}$/, yt = /^[a-zA-Z0-9_-]{21}$/;
680
+ function bt(e) {
681
681
  return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
682
682
  }
683
- var bt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, xt = /^([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})$/, St = (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)$/, Ct = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, wt = "^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
684
- function Tt() {
685
- return new RegExp(wt, "u");
683
+ var xt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, St = /^([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})$/, Ct = (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)$/, wt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Tt = "^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
684
+ function Et() {
685
+ return new RegExp(Tt, "u");
686
686
  }
687
- var Et = /^(?:(?: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])$/, Dt = /^(([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}|:))$/, Ot = /^((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])$/, kt = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, At = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, jt = /^[A-Za-z0-9_-]*$/, Mt = /^https?$/, Nt = /^\+[1-9]\d{6,14}$/, Pt = "(?:(?:\\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])))";
688
- function Ft(e) {
687
+ var Dt = /^(?:(?: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])$/, Ot = /^(([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}|:))$/, kt = /^((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])$/, At = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, jt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Mt = /^[A-Za-z0-9_-]*$/, Nt = /^https?$/, Pt = /^\+[1-9]\d{6,14}$/, Ft = "(?:(?:\\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])))";
688
+ function It(e) {
689
689
  return RegExp(`^${e}$`);
690
690
  }
691
- var It = /*@__PURE__*/ Ft(Pt);
692
- function Lt(e) {
691
+ var Lt = /*@__PURE__*/ It(Ft);
692
+ function Rt(e) {
693
693
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
694
694
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
695
695
  }
696
- function Rt(e) {
697
- return RegExp(`^${Lt(e)}$`);
698
- }
699
696
  function zt(e) {
697
+ return RegExp(`^${Rt(e)}$`);
698
+ }
699
+ function Bt(e) {
700
700
  let t = ["Z"];
701
701
  e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
702
- let n = `${Lt({
702
+ let n = `${Rt({
703
703
  precision: e.precision,
704
704
  seconds: !0
705
- })}(?:${t.join("|")})`, r = e.local ? `${n}|${Lt({ precision: e.precision })}` : n;
706
- return RegExp(`^${Pt}T(?:${r})$`);
705
+ })}(?:${t.join("|")})`, r = e.local ? `${n}|${Rt({ precision: e.precision })}` : n;
706
+ return RegExp(`^${Ft}T(?:${r})$`);
707
707
  }
708
- var Bt = (e) => {
708
+ var Vt = (e) => {
709
709
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
710
710
  return RegExp(`^${t}$`);
711
- }, Vt = /^-?\d+$/, Ht = /^-?\d+(?:\.\d+)?$/, Ut = /^(?:true|false)$/i, Wt = /^null$/i, Gt = /^[^A-Z]*$/, Kt = /^[^a-z]*$/, w = /*@__PURE__*/ x("$ZodCheck", (e, t) => {
711
+ }, Ht = /^-?\d+$/, Ut = /^-?\d+(?:\.\d+)?$/, Wt = /^(?:true|false)$/i, Gt = /^null$/i, Kt = /^[^A-Z]*$/, qt = /^[^a-z]*$/, C = /*@__PURE__*/ b("$ZodCheck", (e, t) => {
712
712
  var n;
713
713
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
714
- }), qt = (e) => {
714
+ }), Jt = (e) => {
715
715
  let t = e.value;
716
716
  return !i(t) && t.length !== void 0;
717
- }, Jt = {
717
+ }, Yt = {
718
718
  number: "number",
719
719
  bigint: "bigint",
720
720
  object: "date"
721
- }, Yt = /*@__PURE__*/ x("$ZodCheckLessThan", (e, t) => {
722
- w.init(e, t);
723
- let n = Jt[typeof t.value];
721
+ }, Xt = /*@__PURE__*/ b("$ZodCheckLessThan", (e, t) => {
722
+ C.init(e, t);
723
+ let n = Yt[typeof t.value];
724
724
  e._zod.onattach.push((e) => {
725
725
  let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
726
726
  t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
727
727
  }), e._zod.check = (r) => {
728
728
  (t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
729
- origin: Jt[typeof r.value] ?? n,
729
+ origin: Yt[typeof r.value] ?? n,
730
730
  code: "too_big",
731
731
  maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
732
732
  input: r.value,
@@ -735,15 +735,15 @@ var Bt = (e) => {
735
735
  continue: !t.abort
736
736
  });
737
737
  };
738
- }), Xt = /*@__PURE__*/ x("$ZodCheckGreaterThan", (e, t) => {
739
- w.init(e, t);
740
- let n = Jt[typeof t.value];
738
+ }), Zt = /*@__PURE__*/ b("$ZodCheckGreaterThan", (e, t) => {
739
+ C.init(e, t);
740
+ let n = Yt[typeof t.value];
741
741
  e._zod.onattach.push((e) => {
742
742
  let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
743
743
  t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
744
744
  }), e._zod.check = (r) => {
745
745
  (t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
746
- origin: Jt[typeof r.value] ?? n,
746
+ origin: Yt[typeof r.value] ?? n,
747
747
  code: "too_small",
748
748
  minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
749
749
  input: r.value,
@@ -752,8 +752,8 @@ var Bt = (e) => {
752
752
  continue: !t.abort
753
753
  });
754
754
  };
755
- }), Zt = /*@__PURE__*/ x("$ZodCheckMultipleOf", (e, t) => {
756
- w.init(e, t), e._zod.onattach.push((e) => {
755
+ }), Qt = /*@__PURE__*/ b("$ZodCheckMultipleOf", (e, t) => {
756
+ C.init(e, t), e._zod.onattach.push((e) => {
757
757
  var n;
758
758
  (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
759
759
  }), e._zod.check = (n) => {
@@ -767,12 +767,12 @@ var Bt = (e) => {
767
767
  continue: !t.abort
768
768
  });
769
769
  };
770
- }), Qt = /*@__PURE__*/ x("$ZodCheckNumberFormat", (e, t) => {
771
- w.init(e, t), t.format = t.format || "float64";
770
+ }), $t = /*@__PURE__*/ b("$ZodCheckNumberFormat", (e, t) => {
771
+ C.init(e, t), t.format = t.format || "float64";
772
772
  let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = se[t.format];
773
773
  e._zod.onattach.push((e) => {
774
774
  let r = e._zod.bag;
775
- r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Vt);
775
+ r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Ht);
776
776
  }), e._zod.check = (o) => {
777
777
  let s = o.value;
778
778
  if (n) {
@@ -828,15 +828,15 @@ var Bt = (e) => {
828
828
  continue: !t.abort
829
829
  });
830
830
  };
831
- }), $t = /*@__PURE__*/ x("$ZodCheckMaxLength", (e, t) => {
831
+ }), en = /*@__PURE__*/ b("$ZodCheckMaxLength", (e, t) => {
832
832
  var n;
833
- w.init(e, t), (n = e._zod.def).when ?? (n.when = qt), e._zod.onattach.push((e) => {
833
+ C.init(e, t), (n = e._zod.def).when ?? (n.when = Jt), e._zod.onattach.push((e) => {
834
834
  let n = e._zod.bag.maximum ?? Infinity;
835
835
  t.maximum < n && (e._zod.bag.maximum = t.maximum);
836
836
  }), e._zod.check = (n) => {
837
837
  let r = n.value, i = r.length;
838
- if ((typeof r == "string" && i > t.maximum ? xe(r) : i) <= t.maximum) return;
839
- let a = Se(r);
838
+ if ((typeof r == "string" && i > t.maximum ? be(r) : i) <= t.maximum) return;
839
+ let a = xe(r);
840
840
  n.issues.push({
841
841
  origin: a,
842
842
  code: "too_big",
@@ -847,15 +847,15 @@ var Bt = (e) => {
847
847
  continue: !t.abort
848
848
  });
849
849
  };
850
- }), en = /*@__PURE__*/ x("$ZodCheckMinLength", (e, t) => {
850
+ }), tn = /*@__PURE__*/ b("$ZodCheckMinLength", (e, t) => {
851
851
  var n;
852
- w.init(e, t), (n = e._zod.def).when ?? (n.when = qt), e._zod.onattach.push((e) => {
852
+ C.init(e, t), (n = e._zod.def).when ?? (n.when = Jt), e._zod.onattach.push((e) => {
853
853
  let n = e._zod.bag.minimum ?? -Infinity;
854
854
  t.minimum > n && (e._zod.bag.minimum = t.minimum);
855
855
  }), e._zod.check = (n) => {
856
856
  let r = n.value, i = r.length;
857
- if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? xe(r) : i) >= t.minimum) return;
858
- let a = Se(r);
857
+ if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? be(r) : i) >= t.minimum) return;
858
+ let a = xe(r);
859
859
  n.issues.push({
860
860
  origin: a,
861
861
  code: "too_small",
@@ -866,15 +866,15 @@ var Bt = (e) => {
866
866
  continue: !t.abort
867
867
  });
868
868
  };
869
- }), tn = /*@__PURE__*/ x("$ZodCheckLengthEquals", (e, t) => {
869
+ }), nn = /*@__PURE__*/ b("$ZodCheckLengthEquals", (e, t) => {
870
870
  var n;
871
- w.init(e, t), (n = e._zod.def).when ?? (n.when = qt), e._zod.onattach.push((e) => {
871
+ C.init(e, t), (n = e._zod.def).when ?? (n.when = Jt), e._zod.onattach.push((e) => {
872
872
  let n = e._zod.bag;
873
873
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
874
874
  }), e._zod.check = (n) => {
875
- let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? xe(r) : i;
875
+ let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? be(r) : i;
876
876
  if (a === t.length) return;
877
- let o = Se(r), s = a > t.length;
877
+ let o = xe(r), s = a > t.length;
878
878
  n.issues.push({
879
879
  origin: o,
880
880
  ...s ? {
@@ -891,9 +891,9 @@ var Bt = (e) => {
891
891
  continue: !t.abort
892
892
  });
893
893
  };
894
- }), nn = /*@__PURE__*/ x("$ZodCheckStringFormat", (e, t) => {
894
+ }), rn = /*@__PURE__*/ b("$ZodCheckStringFormat", (e, t) => {
895
895
  var n, r;
896
- w.init(e, t), e._zod.onattach.push((e) => {
896
+ C.init(e, t), e._zod.onattach.push((e) => {
897
897
  let n = e._zod.bag;
898
898
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
899
899
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -907,8 +907,8 @@ var Bt = (e) => {
907
907
  continue: !t.abort
908
908
  });
909
909
  }) : (r = e._zod).check ?? (r.check = () => {});
910
- }), rn = /*@__PURE__*/ x("$ZodCheckRegex", (e, t) => {
911
- nn.init(e, t), e._zod.check = (n) => {
910
+ }), an = /*@__PURE__*/ b("$ZodCheckRegex", (e, t) => {
911
+ rn.init(e, t), e._zod.check = (n) => {
912
912
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
913
913
  origin: "string",
914
914
  code: "invalid_format",
@@ -919,12 +919,12 @@ var Bt = (e) => {
919
919
  continue: !t.abort
920
920
  });
921
921
  };
922
- }), an = /*@__PURE__*/ x("$ZodCheckLowerCase", (e, t) => {
923
- t.pattern ??= Gt, nn.init(e, t);
924
- }), on = /*@__PURE__*/ x("$ZodCheckUpperCase", (e, t) => {
925
- t.pattern ??= Kt, nn.init(e, t);
926
- }), sn = /*@__PURE__*/ x("$ZodCheckIncludes", (e, t) => {
927
- w.init(e, t);
922
+ }), on = /*@__PURE__*/ b("$ZodCheckLowerCase", (e, t) => {
923
+ t.pattern ??= Kt, rn.init(e, t);
924
+ }), sn = /*@__PURE__*/ b("$ZodCheckUpperCase", (e, t) => {
925
+ t.pattern ??= qt, rn.init(e, t);
926
+ }), cn = /*@__PURE__*/ b("$ZodCheckIncludes", (e, t) => {
927
+ C.init(e, t);
928
928
  let n = ie(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
929
929
  t.pattern = r, e._zod.onattach.push((e) => {
930
930
  let t = e._zod.bag;
@@ -940,8 +940,8 @@ var Bt = (e) => {
940
940
  continue: !t.abort
941
941
  });
942
942
  };
943
- }), cn = /*@__PURE__*/ x("$ZodCheckStartsWith", (e, t) => {
944
- w.init(e, t);
943
+ }), ln = /*@__PURE__*/ b("$ZodCheckStartsWith", (e, t) => {
944
+ C.init(e, t);
945
945
  let n = RegExp(`^${ie(t.prefix)}.*`);
946
946
  t.pattern ??= n, e._zod.onattach.push((e) => {
947
947
  let t = e._zod.bag;
@@ -957,8 +957,8 @@ var Bt = (e) => {
957
957
  continue: !t.abort
958
958
  });
959
959
  };
960
- }), ln = /*@__PURE__*/ x("$ZodCheckEndsWith", (e, t) => {
961
- w.init(e, t);
960
+ }), un = /*@__PURE__*/ b("$ZodCheckEndsWith", (e, t) => {
961
+ C.init(e, t);
962
962
  let n = RegExp(`.*${ie(t.suffix)}$`);
963
963
  t.pattern ??= n, e._zod.onattach.push((e) => {
964
964
  let t = e._zod.bag;
@@ -974,11 +974,11 @@ var Bt = (e) => {
974
974
  continue: !t.abort
975
975
  });
976
976
  };
977
- }), un = /*@__PURE__*/ x("$ZodCheckOverwrite", (e, t) => {
978
- w.init(e, t), e._zod.check = (e) => {
977
+ }), dn = /*@__PURE__*/ b("$ZodCheckOverwrite", (e, t) => {
978
+ C.init(e, t), e._zod.check = (e) => {
979
979
  e.value = t.tx(e.value);
980
980
  };
981
- }), dn = class {
981
+ }), fn = class {
982
982
  constructor(e = [], t = {}) {
983
983
  this.content = [], this.indent = 0, this.args = e, this.closed = t;
984
984
  }
@@ -997,13 +997,13 @@ var Bt = (e) => {
997
997
  let e = Function, t = this?.content ?? [""];
998
998
  return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
999
999
  }
1000
- }, fn = {
1000
+ }, pn = {
1001
1001
  major: 4,
1002
1002
  minor: 5,
1003
1003
  patch: 4
1004
- }, T = /*@__PURE__*/ x("$ZodType", (e, t) => {
1004
+ }, w = /*@__PURE__*/ b("$ZodType", (e, t) => {
1005
1005
  var n;
1006
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = fn;
1006
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = pn;
1007
1007
  let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
1008
1008
  for (let t of i) for (let n of t._zod.onattach) n(e);
1009
1009
  if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
@@ -1018,13 +1018,13 @@ var Bt = (e) => {
1018
1018
  if (ge(t) || !o._zod.def.when(t)) continue;
1019
1019
  } else if (i) continue;
1020
1020
  let n = t.issues.length, s = o._zod.check(t);
1021
- if (s instanceof Promise && r?.async === !1) throw new Re();
1021
+ if (s instanceof Promise && r?.async === !1) throw new ze();
1022
1022
  if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
1023
- await s, t.issues.length !== n && (ye(t.issues, n, e), i ||= he(t, n));
1023
+ await s, t.issues.length !== n && (ve(t.issues, n, e), i ||= he(t, n));
1024
1024
  });
1025
1025
  else {
1026
1026
  if (t.issues.length === n) continue;
1027
- ye(t.issues, n, e), i ||= he(t, n);
1027
+ ve(t.issues, n, e), i ||= he(t, n);
1028
1028
  }
1029
1029
  }
1030
1030
  return a ? a.then(() => t) : t;
@@ -1032,7 +1032,7 @@ var Bt = (e) => {
1032
1032
  if (he(n)) return n.aborted = !0, n;
1033
1033
  let o = t(r, i, a);
1034
1034
  if (o instanceof Promise) {
1035
- if (a.async === !1) throw new Re();
1035
+ if (a.async === !1) throw new ze();
1036
1036
  return o.then((t) => e._zod.parse(t, a));
1037
1037
  }
1038
1038
  return e._zod.parse(o, a);
@@ -1051,7 +1051,7 @@ var Bt = (e) => {
1051
1051
  }
1052
1052
  let o = e._zod.parse(r, a);
1053
1053
  if (o instanceof Promise) {
1054
- if (a.async === !1) throw new Re();
1054
+ if (a.async === !1) throw new ze();
1055
1055
  return o.then((e) => t(e, i, a));
1056
1056
  }
1057
1057
  return t(o, i, a);
@@ -1059,27 +1059,27 @@ var Bt = (e) => {
1059
1059
  }
1060
1060
  }, {
1061
1061
  get "~standard"() {
1062
- return Ee(this, "~standard", mn(this));
1062
+ return Ee(this, "~standard", hn(this));
1063
1063
  },
1064
1064
  set "~standard"(e) {
1065
- v(this, "~standard", e);
1065
+ Te(this, "~standard", e);
1066
1066
  }
1067
- }), pn = (e) => e.success ? { value: e.data } : { issues: e.error?.issues };
1068
- function mn(e) {
1067
+ }), mn = (e) => e.success ? { value: e.data } : { issues: e.error?.issues };
1068
+ function hn(e) {
1069
1069
  return {
1070
1070
  validate: (t) => {
1071
1071
  try {
1072
- return pn(nt(e, t));
1072
+ return mn(rt(e, t));
1073
1073
  } catch {
1074
- return it(e, t).then(pn);
1074
+ return at(e, t).then(mn);
1075
1075
  }
1076
1076
  },
1077
1077
  vendor: "zod",
1078
1078
  version: 1
1079
1079
  };
1080
1080
  }
1081
- var hn = /*@__PURE__*/ x("$ZodString", (e, t) => {
1082
- T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Bt(e._zod.bag), e._zod.parse = (n, r) => {
1081
+ var gn = /*@__PURE__*/ b("$ZodString", (e, t) => {
1082
+ w.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Vt(e._zod.bag), e._zod.parse = (n, r) => {
1083
1083
  if (t.coerce) try {
1084
1084
  n.value = String(n.value);
1085
1085
  } catch {}
@@ -1090,11 +1090,11 @@ var hn = /*@__PURE__*/ x("$ZodString", (e, t) => {
1090
1090
  inst: e
1091
1091
  }), n;
1092
1092
  };
1093
- }), E = /*@__PURE__*/ x("$ZodStringFormat", (e, t) => {
1094
- nn.init(e, t), hn.init(e, t);
1095
- }), gn = /*@__PURE__*/ x("$ZodGUID", (e, t) => {
1096
- t.pattern ??= xt, E.init(e, t);
1097
- }), _n = /*@__PURE__*/ x("$ZodUUID", (e, t) => {
1093
+ }), T = /*@__PURE__*/ b("$ZodStringFormat", (e, t) => {
1094
+ rn.init(e, t), gn.init(e, t);
1095
+ }), _n = /*@__PURE__*/ b("$ZodGUID", (e, t) => {
1096
+ t.pattern ??= St, T.init(e, t);
1097
+ }), vn = /*@__PURE__*/ b("$ZodUUID", (e, t) => {
1098
1098
  if (t.version) {
1099
1099
  let e = {
1100
1100
  v1: 1,
@@ -1107,34 +1107,34 @@ var hn = /*@__PURE__*/ x("$ZodString", (e, t) => {
1107
1107
  v8: 8
1108
1108
  }[t.version];
1109
1109
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
1110
- t.pattern ??= St(e);
1111
- } else t.pattern ??= St();
1112
- E.init(e, t);
1113
- }), vn = /*@__PURE__*/ x("$ZodEmail", (e, t) => {
1114
- t.pattern ??= Ct, E.init(e, t);
1110
+ t.pattern ??= Ct(e);
1111
+ } else t.pattern ??= Ct();
1112
+ T.init(e, t);
1113
+ }), yn = /*@__PURE__*/ b("$ZodEmail", (e, t) => {
1114
+ t.pattern ??= wt, T.init(e, t);
1115
1115
  });
1116
- function yn(e, t) {
1117
- if (!t.normalize && t.protocol?.source === Mt.source && !/^https?:\/\//i.test(e)) return 1;
1116
+ function bn(e, t) {
1117
+ if (!t.normalize && t.protocol?.source === Nt.source && !/^https?:\/\//i.test(e)) return 1;
1118
1118
  try {
1119
1119
  return new URL(e);
1120
1120
  } catch {
1121
1121
  return 2;
1122
1122
  }
1123
1123
  }
1124
- var bn = /[\t\n\r]/g;
1125
- function xn(e) {
1126
- return e.replace(bn, "");
1124
+ var xn = /[\t\n\r]/g;
1125
+ function Sn(e) {
1126
+ return e.replace(xn, "");
1127
1127
  }
1128
- function Sn(e, t) {
1128
+ function Cn(e, t) {
1129
1129
  return t.lastIndex = 0, t.test(e.hostname);
1130
1130
  }
1131
- function Cn(e, t) {
1131
+ function wn(e, t) {
1132
1132
  return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
1133
1133
  }
1134
- var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
1135
- E.init(e, t), e._zod.check = (n) => {
1134
+ var Tn = /*@__PURE__*/ b("$ZodURL", (e, t) => {
1135
+ T.init(e, t), e._zod.check = (n) => {
1136
1136
  try {
1137
- let r = n.value.trim(), i = yn(r, t);
1137
+ let r = n.value.trim(), i = bn(r, t);
1138
1138
  if (i === 1) {
1139
1139
  n.issues.push({
1140
1140
  code: "invalid_format",
@@ -1156,7 +1156,7 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
1156
1156
  });
1157
1157
  return;
1158
1158
  }
1159
- t.hostname && !Sn(i, t.hostname) && n.issues.push({
1159
+ t.hostname && !Cn(i, t.hostname) && n.issues.push({
1160
1160
  code: "invalid_format",
1161
1161
  format: "url",
1162
1162
  note: "Invalid hostname",
@@ -1164,7 +1164,7 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
1164
1164
  input: n.value,
1165
1165
  inst: e,
1166
1166
  continue: !t.abort
1167
- }), t.protocol && !Cn(i, t.protocol) && n.issues.push({
1167
+ }), t.protocol && !wn(i, t.protocol) && n.issues.push({
1168
1168
  code: "invalid_format",
1169
1169
  format: "url",
1170
1170
  note: "Invalid protocol",
@@ -1172,7 +1172,7 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
1172
1172
  input: n.value,
1173
1173
  inst: e,
1174
1174
  continue: !t.abort
1175
- }), n.value = t.normalize ? i.href : xn(r);
1175
+ }), n.value = t.normalize ? i.href : Sn(r);
1176
1176
  return;
1177
1177
  } catch {
1178
1178
  n.issues.push({
@@ -1184,45 +1184,45 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
1184
1184
  });
1185
1185
  }
1186
1186
  };
1187
- }), Tn = /*@__PURE__*/ x("$ZodEmoji", (e, t) => {
1188
- t.pattern ??= Tt(), E.init(e, t);
1189
- }), En = /*@__PURE__*/ x("$ZodNanoID", (e, t) => {
1187
+ }), En = /*@__PURE__*/ b("$ZodEmoji", (e, t) => {
1188
+ t.pattern ??= Et(), T.init(e, t);
1189
+ }), Dn = /*@__PURE__*/ b("$ZodNanoID", (e, t) => {
1190
1190
  if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
1191
- t.pattern ??= t.length === void 0 ? vt : yt(t.length), E.init(e, t);
1192
- }), Dn = /*@__PURE__*/ x("$ZodCUID", (e, t) => {
1193
- t.pattern ??= pt, E.init(e, t);
1194
- }), On = /*@__PURE__*/ x("$ZodCUID2", (e, t) => {
1195
- t.pattern ??= mt, E.init(e, t);
1196
- }), kn = /*@__PURE__*/ x("$ZodULID", (e, t) => {
1197
- t.pattern ??= ht, E.init(e, t);
1198
- }), An = /*@__PURE__*/ x("$ZodXID", (e, t) => {
1199
- t.pattern ??= gt, E.init(e, t);
1200
- }), jn = /*@__PURE__*/ x("$ZodKSUID", (e, t) => {
1201
- t.pattern ??= _t, E.init(e, t);
1202
- }), Mn = /*@__PURE__*/ x("$ZodISODateTime", (e, t) => {
1203
- t.pattern ??= zt(t), E.init(e, t), (t.local || t.precision === -1) && (e._zod.bag.laxFormat = !0, e._zod.onattach.push((e) => {
1191
+ t.pattern ??= t.length === void 0 ? yt : bt(t.length), T.init(e, t);
1192
+ }), On = /*@__PURE__*/ b("$ZodCUID", (e, t) => {
1193
+ t.pattern ??= mt, T.init(e, t);
1194
+ }), kn = /*@__PURE__*/ b("$ZodCUID2", (e, t) => {
1195
+ t.pattern ??= ht, T.init(e, t);
1196
+ }), An = /*@__PURE__*/ b("$ZodULID", (e, t) => {
1197
+ t.pattern ??= gt, T.init(e, t);
1198
+ }), jn = /*@__PURE__*/ b("$ZodXID", (e, t) => {
1199
+ t.pattern ??= _t, T.init(e, t);
1200
+ }), Mn = /*@__PURE__*/ b("$ZodKSUID", (e, t) => {
1201
+ t.pattern ??= vt, T.init(e, t);
1202
+ }), Nn = /*@__PURE__*/ b("$ZodISODateTime", (e, t) => {
1203
+ t.pattern ??= Bt(t), T.init(e, t), (t.local || t.precision === -1) && (e._zod.bag.laxFormat = !0, e._zod.onattach.push((e) => {
1204
1204
  e._zod.bag.laxFormat = !0;
1205
1205
  }));
1206
- }), Nn = /*@__PURE__*/ x("$ZodISODate", (e, t) => {
1207
- t.pattern ??= It, E.init(e, t);
1208
- }), Pn = /*@__PURE__*/ x("$ZodISOTime", (e, t) => {
1209
- t.pattern ??= Rt(t), E.init(e, t);
1210
- }), Fn = /*@__PURE__*/ x("$ZodISODuration", (e, t) => {
1211
- t.pattern ??= bt, E.init(e, t);
1212
- }), In = /*@__PURE__*/ x("$ZodIPv4", (e, t) => {
1213
- t.pattern ??= Et, E.init(e, t), e._zod.bag.format = "ipv4";
1214
- }), Ln = /^[0-9a-fA-F:.]+$/;
1215
- function Rn(e) {
1216
- if (!Ln.test(e)) return !1;
1206
+ }), Pn = /*@__PURE__*/ b("$ZodISODate", (e, t) => {
1207
+ t.pattern ??= Lt, T.init(e, t);
1208
+ }), Fn = /*@__PURE__*/ b("$ZodISOTime", (e, t) => {
1209
+ t.pattern ??= zt(t), T.init(e, t);
1210
+ }), In = /*@__PURE__*/ b("$ZodISODuration", (e, t) => {
1211
+ t.pattern ??= xt, T.init(e, t);
1212
+ }), Ln = /*@__PURE__*/ b("$ZodIPv4", (e, t) => {
1213
+ t.pattern ??= Dt, T.init(e, t), e._zod.bag.format = "ipv4";
1214
+ }), Rn = /^[0-9a-fA-F:.]+$/;
1215
+ function zn(e) {
1216
+ if (!Rn.test(e)) return !1;
1217
1217
  try {
1218
1218
  return new URL(`http://[${e}]`), !0;
1219
1219
  } catch {
1220
1220
  return !1;
1221
1221
  }
1222
1222
  }
1223
- var zn = /*@__PURE__*/ x("$ZodIPv6", (e, t) => {
1224
- t.pattern ??= Dt, E.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1225
- Rn(n.value) || n.issues.push({
1223
+ var Bn = /*@__PURE__*/ b("$ZodIPv6", (e, t) => {
1224
+ t.pattern ??= Ot, T.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1225
+ zn(n.value) || n.issues.push({
1226
1226
  code: "invalid_format",
1227
1227
  format: "ipv6",
1228
1228
  input: n.value,
@@ -1230,20 +1230,20 @@ var zn = /*@__PURE__*/ x("$ZodIPv6", (e, t) => {
1230
1230
  continue: !t.abort
1231
1231
  });
1232
1232
  };
1233
- }), Bn = /*@__PURE__*/ x("$ZodCIDRv4", (e, t) => {
1234
- t.pattern ??= Ot, E.init(e, t);
1233
+ }), Vn = /*@__PURE__*/ b("$ZodCIDRv4", (e, t) => {
1234
+ t.pattern ??= kt, T.init(e, t);
1235
1235
  });
1236
- function Vn(e) {
1236
+ function Hn(e) {
1237
1237
  let t = e.split("/");
1238
1238
  if (t.length !== 2) return !1;
1239
1239
  let [n, r] = t;
1240
1240
  if (!r) return !1;
1241
1241
  let i = Number(r);
1242
- return `${i}` !== r || i < 0 || i > 128 ? !1 : Rn(n);
1242
+ return `${i}` !== r || i < 0 || i > 128 ? !1 : zn(n);
1243
1243
  }
1244
- var Hn = /*@__PURE__*/ x("$ZodCIDRv6", (e, t) => {
1245
- t.pattern ??= kt, E.init(e, t), e._zod.check = (n) => {
1246
- Vn(n.value) || n.issues.push({
1244
+ var Un = /*@__PURE__*/ b("$ZodCIDRv6", (e, t) => {
1245
+ t.pattern ??= At, T.init(e, t), e._zod.check = (n) => {
1246
+ Hn(n.value) || n.issues.push({
1247
1247
  code: "invalid_format",
1248
1248
  format: "cidrv6",
1249
1249
  input: n.value,
@@ -1252,7 +1252,7 @@ var Hn = /*@__PURE__*/ x("$ZodCIDRv6", (e, t) => {
1252
1252
  });
1253
1253
  };
1254
1254
  });
1255
- function Un(e) {
1255
+ function Wn(e) {
1256
1256
  if (e === "") return !0;
1257
1257
  if (/\s/.test(e) || e.length % 4 != 0) return !1;
1258
1258
  try {
@@ -1261,9 +1261,9 @@ function Un(e) {
1261
1261
  return !1;
1262
1262
  }
1263
1263
  }
1264
- var Wn = /*@__PURE__*/ x("$ZodBase64", (e, t) => {
1265
- t.pattern ??= At, E.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1266
- Un(n.value) || n.issues.push({
1264
+ var Gn = /*@__PURE__*/ b("$ZodBase64", (e, t) => {
1265
+ t.pattern ??= jt, T.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1266
+ Wn(n.value) || n.issues.push({
1267
1267
  code: "invalid_format",
1268
1268
  format: "base64",
1269
1269
  input: n.value,
@@ -1272,14 +1272,14 @@ var Wn = /*@__PURE__*/ x("$ZodBase64", (e, t) => {
1272
1272
  });
1273
1273
  };
1274
1274
  });
1275
- function Gn(e) {
1276
- if (!jt.test(e)) return !1;
1275
+ function Kn(e) {
1276
+ if (!Mt.test(e)) return !1;
1277
1277
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
1278
- return Un(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1278
+ return Wn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1279
1279
  }
1280
- var Kn = /*@__PURE__*/ x("$ZodBase64URL", (e, t) => {
1281
- t.pattern ??= jt, E.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1282
- Gn(n.value) || n.issues.push({
1280
+ var qn = /*@__PURE__*/ b("$ZodBase64URL", (e, t) => {
1281
+ t.pattern ??= Mt, T.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1282
+ Kn(n.value) || n.issues.push({
1283
1283
  code: "invalid_format",
1284
1284
  format: "base64url",
1285
1285
  input: n.value,
@@ -1287,10 +1287,10 @@ var Kn = /*@__PURE__*/ x("$ZodBase64URL", (e, t) => {
1287
1287
  continue: !t.abort
1288
1288
  });
1289
1289
  };
1290
- }), qn = /*@__PURE__*/ x("$ZodE164", (e, t) => {
1291
- t.pattern ??= Nt, E.init(e, t);
1290
+ }), Jn = /*@__PURE__*/ b("$ZodE164", (e, t) => {
1291
+ t.pattern ??= Pt, T.init(e, t);
1292
1292
  });
1293
- function Jn(e, t = null) {
1293
+ function Yn(e, t = null) {
1294
1294
  try {
1295
1295
  let n = e.split(".");
1296
1296
  if (n.length !== 3) return !1;
@@ -1302,9 +1302,9 @@ function Jn(e, t = null) {
1302
1302
  return !1;
1303
1303
  }
1304
1304
  }
1305
- var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
1306
- E.init(e, t), e._zod.check = (n) => {
1307
- Jn(n.value, t.alg) || n.issues.push({
1305
+ var Xn = /*@__PURE__*/ b("$ZodJWT", (e, t) => {
1306
+ T.init(e, t), e._zod.check = (n) => {
1307
+ Yn(n.value, t.alg) || n.issues.push({
1308
1308
  code: "invalid_format",
1309
1309
  format: "jwt",
1310
1310
  input: n.value,
@@ -1312,8 +1312,8 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
1312
1312
  continue: !t.abort
1313
1313
  });
1314
1314
  };
1315
- }), Xn = /*@__PURE__*/ x("$ZodNumber", (e, t) => {
1316
- T.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Ht, e._zod.parse = (n, r) => {
1315
+ }), Zn = /*@__PURE__*/ b("$ZodNumber", (e, t) => {
1316
+ w.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Ut, e._zod.parse = (n, r) => {
1317
1317
  if (t.coerce) try {
1318
1318
  n.value = Number(n.value);
1319
1319
  } catch {}
@@ -1328,10 +1328,10 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
1328
1328
  ...a ? { received: a } : {}
1329
1329
  }), n;
1330
1330
  };
1331
- }), Zn = /*@__PURE__*/ x("$ZodNumberFormat", (e, t) => {
1332
- Qt.init(e, t), Xn.init(e, t);
1333
- }), Qn = /*@__PURE__*/ x("$ZodBoolean", (e, t) => {
1334
- T.init(e, t), e._zod.pattern = Ut, e._zod.parse = (n, r) => {
1331
+ }), Qn = /*@__PURE__*/ b("$ZodNumberFormat", (e, t) => {
1332
+ $t.init(e, t), Zn.init(e, t);
1333
+ }), $n = /*@__PURE__*/ b("$ZodBoolean", (e, t) => {
1334
+ w.init(e, t), e._zod.pattern = Wt, e._zod.parse = (n, r) => {
1335
1335
  if (t.coerce) try {
1336
1336
  n.value = !!n.value;
1337
1337
  } catch {}
@@ -1343,8 +1343,8 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
1343
1343
  inst: e
1344
1344
  }), n;
1345
1345
  };
1346
- }), $n = /*@__PURE__*/ x("$ZodNull", (e, t) => {
1347
- T.init(e, t), e._zod.pattern = Wt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1346
+ }), er = /*@__PURE__*/ b("$ZodNull", (e, t) => {
1347
+ w.init(e, t), e._zod.pattern = Gt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1348
1348
  let r = t.value;
1349
1349
  return r === null || t.issues.push({
1350
1350
  expected: "null",
@@ -1353,22 +1353,22 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
1353
1353
  inst: e
1354
1354
  }), t;
1355
1355
  };
1356
- }), er = /*@__PURE__*/ x("$ZodUnknown", (e, t) => {
1357
- T.init(e, t), e._zod.parse = (e) => e;
1358
- }), tr = /*@__PURE__*/ x("$ZodNever", (e, t) => {
1359
- T.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1356
+ }), tr = /*@__PURE__*/ b("$ZodUnknown", (e, t) => {
1357
+ w.init(e, t), e._zod.parse = (e) => e;
1358
+ }), nr = /*@__PURE__*/ b("$ZodNever", (e, t) => {
1359
+ w.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1360
1360
  expected: "never",
1361
1361
  code: "invalid_type",
1362
1362
  input: t.value,
1363
1363
  inst: e
1364
1364
  }), t);
1365
1365
  });
1366
- function nr(e, t, n) {
1367
- e.issues.length && t.issues.push(..._e(n, e.issues)), t.value[n] = e.value;
1366
+ function rr(e, t, n) {
1367
+ e.issues.length && t.issues.push(..._(n, e.issues)), t.value[n] = e.value;
1368
1368
  }
1369
- var rr = /*@__PURE__*/ x("$ZodArray", (e, t) => {
1370
- T.init(e, t);
1371
- let n = S.memoizer;
1369
+ var ir = /*@__PURE__*/ b("$ZodArray", (e, t) => {
1370
+ w.init(e, t);
1371
+ let n = x.memoizer;
1372
1372
  n?.attach(e), e._zod.parse = (r, i) => {
1373
1373
  let a = r.value;
1374
1374
  if (!Array.isArray(a)) return r.issues.push({
@@ -1384,17 +1384,17 @@ var rr = /*@__PURE__*/ x("$ZodArray", (e, t) => {
1384
1384
  value: n,
1385
1385
  issues: []
1386
1386
  }, i);
1387
- s instanceof Promise ? o.push(s.then((t) => nr(t, r, e))) : nr(s, r, e);
1387
+ s instanceof Promise ? o.push(s.then((t) => rr(t, r, e))) : rr(s, r, e);
1388
1388
  }
1389
1389
  return o.length ? Promise.all(o).then(() => r) : r;
1390
1390
  };
1391
1391
  });
1392
- function ir(e, t, n, r, i, a) {
1392
+ function ar(e, t, n, r, i, a) {
1393
1393
  let o = n in r, s = a === "optional";
1394
1394
  if (!(!o && s && i === "optional")) {
1395
1395
  if (e.issues.length) {
1396
1396
  if (i !== void 0 && s && !o) return;
1397
- t.issues.push(..._e(n, e.issues));
1397
+ t.issues.push(..._(n, e.issues));
1398
1398
  }
1399
1399
  if (!o && i === void 0) {
1400
1400
  e.issues.length || t.issues.push({
@@ -1408,9 +1408,9 @@ function ir(e, t, n, r, i, a) {
1408
1408
  e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1409
1409
  }
1410
1410
  }
1411
- var ar = [];
1412
- function or(e) {
1413
- let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : ar, i = r.length ? [...t, ...r] : t;
1411
+ var or = [];
1412
+ function sr(e) {
1413
+ let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : or, i = r.length ? [...t, ...r] : t;
1414
1414
  for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
1415
1415
  let a = oe(e.shape);
1416
1416
  return {
@@ -1422,7 +1422,7 @@ function or(e) {
1422
1422
  optionalKeys: new Set(a)
1423
1423
  };
1424
1424
  }
1425
- function sr(e, t, n, r, i, a) {
1425
+ function cr(e, t, n, r, i, a) {
1426
1426
  let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin, d = c.optout;
1427
1427
  for (let i in t) {
1428
1428
  if (s.has(i)) continue;
@@ -1438,7 +1438,7 @@ function sr(e, t, n, r, i, a) {
1438
1438
  value: t[i],
1439
1439
  issues: []
1440
1440
  }, r);
1441
- a instanceof Promise ? e.push(a.then((e) => ir(e, n, i, t, u, d))) : ir(a, n, i, t, u, d);
1441
+ a instanceof Promise ? e.push(a.then((e) => ar(e, n, i, t, u, d))) : ar(a, n, i, t, u, d);
1442
1442
  }
1443
1443
  return o.length && n.issues.push({
1444
1444
  code: "unrecognized_keys",
@@ -1448,16 +1448,16 @@ function sr(e, t, n, r, i, a) {
1448
1448
  continue: !0
1449
1449
  }), e.length ? Promise.all(e).then(() => n) : n;
1450
1450
  }
1451
- var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t) => {
1452
- if (T.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1451
+ var lr = /* @__PURE__ */ new WeakMap(), ur = /*@__PURE__*/ b("$ZodObject", (e, t) => {
1452
+ if (w.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1453
1453
  let e = t.shape;
1454
- cr.set(t, e), Object.defineProperty(t, "shape", { get: () => {
1454
+ lr.set(t, e), Object.defineProperty(t, "shape", { get: () => {
1455
1455
  let n = { ...e };
1456
- return Object.defineProperty(t, "shape", { value: n }), cr.set(t, n), n;
1456
+ return Object.defineProperty(t, "shape", { value: n }), lr.set(t, n), n;
1457
1457
  } });
1458
1458
  }
1459
- let n = r(() => or(t));
1460
- b(e, "propValues", (e) => {
1459
+ let n = r(() => sr(t));
1460
+ y(e, "propValues", (e) => {
1461
1461
  let t = e.def.shape, n = {};
1462
1462
  for (let e in t) {
1463
1463
  let r = t[e]._zod;
@@ -1469,7 +1469,7 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
1469
1469
  }
1470
1470
  return n;
1471
1471
  });
1472
- let i = m, a = t.catchall, o, s = S.memoizer;
1472
+ let i = m, a = t.catchall, o, s = x.memoizer;
1473
1473
  s?.attach(e), e._zod.parse = (t, r) => {
1474
1474
  o ??= n.value;
1475
1475
  let c = t.value;
@@ -1487,14 +1487,14 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
1487
1487
  value: c[e],
1488
1488
  issues: []
1489
1489
  }, r);
1490
- o instanceof Promise ? l.push(o.then((n) => ir(n, t, e, c, i, a))) : ir(o, t, e, c, i, a);
1490
+ o instanceof Promise ? l.push(o.then((n) => ar(n, t, e, c, i, a))) : ar(o, t, e, c, i, a);
1491
1491
  }
1492
- return a ? sr(l, c, t, r, n.value, e) : l.length ? Promise.all(l).then(() => t) : t;
1492
+ return a ? cr(l, c, t, r, n.value, e) : l.length ? Promise.all(l).then(() => t) : t;
1493
1493
  };
1494
- }), ur = /*@__PURE__*/ x("$ZodObjectJIT", (e, t) => {
1495
- lr.init(e, t);
1496
- let n = e._zod.parse, i = r(() => or(t)), a = S.memoizer, o = (t) => {
1497
- let n = i.value, r = n.symbolKeys, o = new dn(["payload", "ctx"], {
1494
+ }), dr = /*@__PURE__*/ b("$ZodObjectJIT", (e, t) => {
1495
+ ur.init(e, t);
1496
+ let n = e._zod.parse, i = r(() => sr(t)), a = x.memoizer, o = (t) => {
1497
+ let n = i.value, r = n.symbolKeys, o = new fn(["payload", "ctx"], {
1498
1498
  shape: t,
1499
1499
  inst: e,
1500
1500
  memo: a,
@@ -1558,11 +1558,11 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
1558
1558
  `);
1559
1559
  }
1560
1560
  return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
1561
- }, s, c = m, l = !S.jitless, u = l && ee.value, f = t.catchall, p;
1561
+ }, s, c = m, l = !x.jitless, u = l && ee.value, f = t.catchall, p;
1562
1562
  e._zod.parse = (r, a) => {
1563
1563
  p ??= i.value;
1564
1564
  let d = r.value;
1565
- return c(d) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), r = s(r, a), f ? sr([], d, r, a, p, e) : r) : n(r, a) : (r.issues.push({
1565
+ return c(d) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), r = s(r, a), f ? cr([], d, r, a, p, e) : r) : n(r, a) : (r.issues.push({
1566
1566
  expected: "object",
1567
1567
  code: "invalid_type",
1568
1568
  input: d,
@@ -1570,20 +1570,20 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
1570
1570
  }), r);
1571
1571
  };
1572
1572
  });
1573
- function dr(e, t, n, r) {
1573
+ function fr(e, t, n, r) {
1574
1574
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1575
1575
  let i = e.filter((e) => !he(e));
1576
1576
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1577
1577
  code: "invalid_union",
1578
1578
  input: t.value,
1579
1579
  inst: n,
1580
- errors: e.map((e) => e.issues.map((e) => _(e, r, C())))
1580
+ errors: e.map((e) => e.issues.map((e) => v(e, r, S())))
1581
1581
  }), t);
1582
1582
  }
1583
- var fr = /*@__PURE__*/ x("$ZodUnion", (e, t) => {
1584
- T.init(e, t), b(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), b(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), b(e, "values", (e) => {
1583
+ var pr = /*@__PURE__*/ b("$ZodUnion", (e, t) => {
1584
+ w.init(e, t), y(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), y(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), y(e, "values", (e) => {
1585
1585
  if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
1586
- }), b(e, "pattern", (e) => {
1586
+ }), y(e, "pattern", (e) => {
1587
1587
  if (e.def.options.every((e) => e._zod.pattern)) {
1588
1588
  let t = e.def.options.map((e) => e._zod.pattern);
1589
1589
  return RegExp(`^(${t.map((e) => a(e.source)).join("|")})$`);
@@ -1604,10 +1604,10 @@ var fr = /*@__PURE__*/ x("$ZodUnion", (e, t) => {
1604
1604
  o.push(t);
1605
1605
  }
1606
1606
  }
1607
- return a ? Promise.all(o).then((t) => dr(t, r, e, i)) : dr(o, r, e, i);
1607
+ return a ? Promise.all(o).then((t) => fr(t, r, e, i)) : fr(o, r, e, i);
1608
1608
  };
1609
- }), pr = /*@__PURE__*/ x("$ZodIntersection", (e, t) => {
1610
- T.init(e, t), e._zod.parse = (e, n) => {
1609
+ }), mr = /*@__PURE__*/ b("$ZodIntersection", (e, t) => {
1610
+ w.init(e, t), e._zod.parse = (e, n) => {
1611
1611
  let r = e.value, i = t.left._zod.run({
1612
1612
  value: r,
1613
1613
  issues: []
@@ -1615,10 +1615,10 @@ var fr = /*@__PURE__*/ x("$ZodUnion", (e, t) => {
1615
1615
  value: r,
1616
1616
  issues: []
1617
1617
  }, n);
1618
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => hr(e, t, n)) : hr(e, i, a);
1618
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => gr(e, t, n)) : gr(e, i, a);
1619
1619
  };
1620
1620
  });
1621
- function mr(e, t) {
1621
+ function hr(e, t) {
1622
1622
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1623
1623
  valid: !0,
1624
1624
  data: e
@@ -1631,7 +1631,7 @@ function mr(e, t) {
1631
1631
  Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
1632
1632
  for (let n of r) {
1633
1633
  if (n === "__proto__") continue;
1634
- let r = mr(e[n], t[n]);
1634
+ let r = hr(e[n], t[n]);
1635
1635
  if (!r.valid) return {
1636
1636
  valid: !1,
1637
1637
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1650,7 +1650,7 @@ function mr(e, t) {
1650
1650
  };
1651
1651
  let n = [];
1652
1652
  for (let r = 0; r < e.length; r++) {
1653
- let i = e[r], a = t[r], o = mr(i, a);
1653
+ let i = e[r], a = t[r], o = hr(i, a);
1654
1654
  if (!o.valid) return {
1655
1655
  valid: !1,
1656
1656
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1667,7 +1667,7 @@ function mr(e, t) {
1667
1667
  mergeErrorPath: []
1668
1668
  };
1669
1669
  }
1670
- function hr(e, t, n) {
1670
+ function gr(e, t, n) {
1671
1671
  let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
1672
1672
  let n;
1673
1673
  if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
@@ -1689,16 +1689,16 @@ function hr(e, t, n) {
1689
1689
  });
1690
1690
  for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
1691
1691
  }
1692
- let c = mr(t.value, n.value);
1692
+ let c = hr(t.value, n.value);
1693
1693
  if (!c.valid) {
1694
1694
  if (he(e)) return e;
1695
1695
  throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
1696
1696
  }
1697
1697
  return e.value = c.data, e;
1698
1698
  }
1699
- var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1700
- T.init(e, t);
1701
- let n = S.memoizer;
1699
+ var _r = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1700
+ w.init(e, t);
1701
+ let n = x.memoizer;
1702
1702
  n?.attach(e), e._zod.parse = (r, i) => {
1703
1703
  let a = r.value;
1704
1704
  if (!te(a)) return r.issues.push({
@@ -1722,7 +1722,7 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1722
1722
  r.issues.push({
1723
1723
  code: "invalid_key",
1724
1724
  origin: "record",
1725
- issues: s.issues.map((e) => _(e, i, C())),
1725
+ issues: s.issues.map((e) => v(e, i, S())),
1726
1726
  input: n,
1727
1727
  path: [n],
1728
1728
  inst: e
@@ -1736,8 +1736,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1736
1736
  issues: []
1737
1737
  }, i);
1738
1738
  u instanceof Promise ? o.push(u.then((e) => {
1739
- e.issues.length && r.issues.push(..._e(n, e.issues)), r.value[l] = e.value;
1740
- })) : (u.issues.length && r.issues.push(..._e(n, u.issues)), r.value[l] = u.value);
1739
+ e.issues.length && r.issues.push(..._(n, e.issues)), r.value[l] = e.value;
1740
+ })) : (u.issues.length && r.issues.push(..._(n, u.issues)), r.value[l] = u.value);
1741
1741
  }
1742
1742
  let l;
1743
1743
  for (let e in a) if (!c.has(e)) {
@@ -1763,7 +1763,7 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1763
1763
  issues: []
1764
1764
  }, i);
1765
1765
  if (l instanceof Promise) throw Error("Async schemas not supported in object keys currently");
1766
- if (typeof n == "string" && Ht.test(n) && l.issues.length) {
1766
+ if (typeof n == "string" && Ut.test(n) && l.issues.length) {
1767
1767
  let e = t.keyType._zod.run({
1768
1768
  value: Number(n),
1769
1769
  issues: []
@@ -1775,7 +1775,7 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1775
1775
  t.mode === "loose" ? r.value[n] = a[n] : s ? (c ??= [], c.push(n)) : r.issues.push({
1776
1776
  code: "invalid_key",
1777
1777
  origin: "record",
1778
- issues: l.issues.map((e) => _(e, i, C())),
1778
+ issues: l.issues.map((e) => v(e, i, S())),
1779
1779
  input: n,
1780
1780
  path: [n],
1781
1781
  inst: e
@@ -1789,8 +1789,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1789
1789
  issues: []
1790
1790
  }, i);
1791
1791
  d instanceof Promise ? o.push(d.then((e) => {
1792
- e.issues.length && r.issues.push(..._e(n, e.issues)), r.value[u] = e.value;
1793
- })) : (d.issues.length && r.issues.push(..._e(n, d.issues)), r.value[u] = d.value);
1792
+ e.issues.length && r.issues.push(..._(n, e.issues)), r.value[u] = e.value;
1793
+ })) : (d.issues.length && r.issues.push(..._(n, d.issues)), r.value[u] = d.value);
1794
1794
  }
1795
1795
  c && c.length > 0 && r.issues.push({
1796
1796
  code: "unrecognized_keys",
@@ -1802,8 +1802,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1802
1802
  }
1803
1803
  return o.length ? Promise.all(o).then(() => r) : r;
1804
1804
  };
1805
- }), _r = /*@__PURE__*/ x("$ZodEnum", (t, n) => {
1806
- T.init(t, n);
1805
+ }), vr = /*@__PURE__*/ b("$ZodEnum", (t, n) => {
1806
+ w.init(t, n);
1807
1807
  let r = e(n.entries), i = new Set(r);
1808
1808
  t._zod.values = i;
1809
1809
  let a = r.filter((e) => re.has(typeof e));
@@ -1816,8 +1816,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1816
1816
  inst: t
1817
1817
  }), e;
1818
1818
  };
1819
- }), vr = /*@__PURE__*/ x("$ZodLiteral", (e, t) => {
1820
- T.init(e, t);
1819
+ }), yr = /*@__PURE__*/ b("$ZodLiteral", (e, t) => {
1820
+ w.init(e, t);
1821
1821
  let n = new Set(t.values);
1822
1822
  e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? ie(e) : e ? ie(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
1823
1823
  let a = r.value;
@@ -1828,23 +1828,23 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
1828
1828
  inst: e
1829
1829
  }), r;
1830
1830
  };
1831
- }), yr = /*@__PURE__*/ x("$ZodTransform", (e, t) => {
1832
- T.init(e, t), e._zod.optin = "optional", S.memoizer?.guard(e), e._zod.parse = (n, r) => {
1833
- if (r.direction === "backward") throw new ze(e.constructor.name);
1831
+ }), br = /*@__PURE__*/ b("$ZodTransform", (e, t) => {
1832
+ w.init(e, t), e._zod.optin = "optional", x.memoizer?.guard(e), e._zod.parse = (n, r) => {
1833
+ if (r.direction === "backward") throw new Be(e.constructor.name);
1834
1834
  let i = t.transform(n.value, n);
1835
1835
  if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
1836
- if (i instanceof Promise) throw new Re();
1836
+ if (i instanceof Promise) throw new ze();
1837
1837
  return n.value = i, n;
1838
1838
  };
1839
1839
  });
1840
- function br(e, t) {
1840
+ function xr(e, t) {
1841
1841
  return e.value = t.issues.length ? void 0 : t.value, e;
1842
1842
  }
1843
- var xr = /*@__PURE__*/ x("$ZodOptional", (e, t) => {
1844
- T.init(e, t), b(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", b(e, "values", (e) => {
1843
+ var Sr = /*@__PURE__*/ b("$ZodOptional", (e, t) => {
1844
+ w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", y(e, "values", (e) => {
1845
1845
  let t = e.def.innerType._zod.values;
1846
1846
  return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
1847
- }), b(e, "pattern", (e) => {
1847
+ }), y(e, "pattern", (e) => {
1848
1848
  let t = e.def.innerType._zod.pattern;
1849
1849
  return t ? RegExp(`^(${a(t.source)})?$`) : void 0;
1850
1850
  }), e._zod.parse = (e, n) => {
@@ -1854,40 +1854,40 @@ var xr = /*@__PURE__*/ x("$ZodOptional", (e, t) => {
1854
1854
  value: e.value,
1855
1855
  issues: []
1856
1856
  }, n);
1857
- return r instanceof Promise ? r.then((t) => br(e, t)) : br(e, r);
1857
+ return r instanceof Promise ? r.then((t) => xr(e, t)) : xr(e, r);
1858
1858
  }
1859
1859
  return t.innerType._zod.run(e, n);
1860
1860
  };
1861
- }), Sr = /*@__PURE__*/ x("$ZodExactOptional", (e, t) => {
1862
- xr.init(e, t), b(e, "values", (e) => e.def.innerType._zod.values), b(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1863
- }), Cr = /*@__PURE__*/ x("$ZodNullable", (e, t) => {
1864
- T.init(e, t), b(e, "optin", (e) => e.def.innerType._zod.optin), b(e, "optout", (e) => e.def.innerType._zod.optout), b(e, "pattern", (e) => {
1861
+ }), Cr = /*@__PURE__*/ b("$ZodExactOptional", (e, t) => {
1862
+ Sr.init(e, t), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1863
+ }), wr = /*@__PURE__*/ b("$ZodNullable", (e, t) => {
1864
+ w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "pattern", (e) => {
1865
1865
  let t = e.def.innerType._zod.pattern;
1866
1866
  return t ? RegExp(`^(${a(t.source)}|null)$`) : void 0;
1867
- }), b(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1868
- }), wr = /*@__PURE__*/ x("$ZodDefault", (e, t) => {
1869
- T.init(e, t), e._zod.optin = "defaulted", b(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1867
+ }), y(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1868
+ }), Tr = /*@__PURE__*/ b("$ZodDefault", (e, t) => {
1869
+ w.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1870
1870
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1871
1871
  if (e.value === void 0) return e.value = t.defaultValue, e;
1872
1872
  let r = t.innerType._zod.run(e, n);
1873
- return r instanceof Promise ? r.then((e) => Tr(e, t)) : Tr(r, t);
1873
+ return r instanceof Promise ? r.then((e) => Er(e, t)) : Er(r, t);
1874
1874
  };
1875
1875
  });
1876
- function Tr(e, t) {
1876
+ function Er(e, t) {
1877
1877
  return e.value === void 0 && (e.value = t.defaultValue), e;
1878
1878
  }
1879
- var Er = /*@__PURE__*/ x("$ZodPrefault", (e, t) => {
1880
- T.init(e, t), e._zod.optin = "defaulted", b(e, "values", (e) => e.def.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));
1881
- }), Dr = /*@__PURE__*/ x("$ZodNonOptional", (e, t) => {
1882
- T.init(e, t), b(e, "values", (e) => {
1879
+ var Dr = /*@__PURE__*/ b("$ZodPrefault", (e, t) => {
1880
+ w.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.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));
1881
+ }), Or = /*@__PURE__*/ b("$ZodNonOptional", (e, t) => {
1882
+ w.init(e, t), y(e, "values", (e) => {
1883
1883
  let t = e.def.innerType._zod.values;
1884
1884
  return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
1885
1885
  }), e._zod.parse = (n, r) => {
1886
1886
  let i = t.innerType._zod.run(n, r);
1887
- return i instanceof Promise ? i.then((t) => Or(t, e)) : Or(i, e);
1887
+ return i instanceof Promise ? i.then((t) => kr(t, e)) : kr(i, e);
1888
1888
  };
1889
1889
  });
1890
- function Or(e, t) {
1890
+ function kr(e, t) {
1891
1891
  return !e.issues.length && e.value === void 0 && e.issues.push({
1892
1892
  code: "invalid_type",
1893
1893
  expected: "nonoptional",
@@ -1895,62 +1895,62 @@ function Or(e, t) {
1895
1895
  inst: t
1896
1896
  }), e;
1897
1897
  }
1898
- function kr(e, t, n, r) {
1898
+ function Ar(e, t, n, r) {
1899
1899
  return t.issues.length ? (e.value = n.catchValue({
1900
1900
  ...t,
1901
1901
  value: e.value,
1902
- error: { issues: t.issues.map((e) => _(e, r, C())) },
1902
+ error: { issues: t.issues.map((e) => v(e, r, S())) },
1903
1903
  input: e.value
1904
1904
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
1905
1905
  }
1906
- var Ar = /*@__PURE__*/ x("$ZodCatch", (e, t) => {
1907
- T.init(e, t), b(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), b(e, "optout", (e) => e.def.innerType._zod.optout), b(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1906
+ var jr = /*@__PURE__*/ b("$ZodCatch", (e, t) => {
1907
+ w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1908
1908
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1909
1909
  let r = t.innerType._zod.run({
1910
1910
  value: e.value,
1911
1911
  issues: []
1912
1912
  }, n);
1913
- return r instanceof Promise ? r.then((r) => kr(e, r, t, n)) : kr(e, r, t, n);
1913
+ return r instanceof Promise ? r.then((r) => Ar(e, r, t, n)) : Ar(e, r, t, n);
1914
1914
  };
1915
- }), jr = /*@__PURE__*/ x("$ZodPipe", (e, t) => {
1916
- T.init(e, t), b(e, "values", (e) => e.def.in._zod.values), b(e, "optin", (e) => e.def.in._zod.optin), b(e, "optout", (e) => e.def.out._zod.optout), b(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
1915
+ }), Mr = /*@__PURE__*/ b("$ZodPipe", (e, t) => {
1916
+ w.init(e, t), y(e, "values", (e) => e.def.in._zod.values), y(e, "optin", (e) => e.def.in._zod.optin), y(e, "optout", (e) => e.def.out._zod.optout), y(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
1917
1917
  if (n.direction === "backward") {
1918
1918
  let r = t.out._zod.run(e, n);
1919
- return r instanceof Promise ? r.then((e) => Mr(e, t.in, n)) : Mr(r, t.in, n);
1919
+ return r instanceof Promise ? r.then((e) => Nr(e, t.in, n)) : Nr(r, t.in, n);
1920
1920
  }
1921
1921
  let r = t.in._zod.run(e, n);
1922
- return r instanceof Promise ? r.then((e) => Mr(e, t.out, n)) : Mr(r, t.out, n);
1922
+ return r instanceof Promise ? r.then((e) => Nr(e, t.out, n)) : Nr(r, t.out, n);
1923
1923
  };
1924
1924
  });
1925
- function Mr(e, t, n) {
1925
+ function Nr(e, t, n) {
1926
1926
  return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
1927
1927
  value: e.value,
1928
1928
  issues: e.issues
1929
1929
  }, n);
1930
1930
  }
1931
- var Nr = /*@__PURE__*/ x("$ZodReadonly", (e, t) => {
1932
- T.init(e, t), b(e, "propValues", (e) => e.def.innerType._zod.propValues), b(e, "values", (e) => e.def.innerType._zod.values), b(e, "optin", (e) => e.def.innerType?._zod?.optin), b(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1931
+ var Pr = /*@__PURE__*/ b("$ZodReadonly", (e, t) => {
1932
+ w.init(e, t), y(e, "propValues", (e) => e.def.innerType._zod.propValues), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "optin", (e) => e.def.innerType?._zod?.optin), y(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1933
1933
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1934
1934
  let r = t.innerType._zod.run(e, n);
1935
- return r instanceof Promise ? r.then(Pr) : Pr(r);
1935
+ return r instanceof Promise ? r.then(Fr) : Fr(r);
1936
1936
  };
1937
1937
  });
1938
- function Pr(e) {
1938
+ function Fr(e) {
1939
1939
  return e.memo || (e.value = Object.freeze(e.value)), e;
1940
1940
  }
1941
- var Fr = /*@__PURE__*/ x("$ZodLazy", (e, t) => {
1942
- T.init(e, t), c(e._zod, "innerType", () => {
1941
+ var Ir = /*@__PURE__*/ b("$ZodLazy", (e, t) => {
1942
+ w.init(e, t), c(e._zod, "innerType", () => {
1943
1943
  let e = t;
1944
1944
  return e._cachedInner ||= t.getter(), e._cachedInner;
1945
- }), b(e, "pattern", (e) => e.innerType?._zod?.pattern), b(e, "propValues", (e) => e.innerType?._zod?.propValues), b(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), b(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
1946
- }), Ir = /*@__PURE__*/ x("$ZodCustom", (e, t) => {
1947
- w.init(e, t), T.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1945
+ }), y(e, "pattern", (e) => e.innerType?._zod?.pattern), y(e, "propValues", (e) => e.innerType?._zod?.propValues), y(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), y(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
1946
+ }), Lr = /*@__PURE__*/ b("$ZodCustom", (e, t) => {
1947
+ C.init(e, t), w.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1948
1948
  let r = n.value, i = t.fn(r);
1949
- if (i instanceof Promise) return i.then((t) => Lr(t, n, r, e));
1950
- Lr(i, n, r, e);
1949
+ if (i instanceof Promise) return i.then((t) => Rr(t, n, r, e));
1950
+ Rr(i, n, r, e);
1951
1951
  };
1952
1952
  });
1953
- function Lr(e, t, n, r) {
1953
+ function Rr(e, t, n, r) {
1954
1954
  if (!e) {
1955
1955
  let e = {
1956
1956
  code: "custom",
@@ -1959,30 +1959,30 @@ function Lr(e, t, n, r) {
1959
1959
  path: [...r._zod.def.path ?? []],
1960
1960
  continue: !r._zod.def.abort
1961
1961
  };
1962
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(we(e));
1962
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(Ce(e));
1963
1963
  }
1964
1964
  }
1965
1965
  //#endregion
1966
1966
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
1967
- var Rr = class extends Error {
1967
+ var zr = class extends Error {
1968
1968
  constructor() {
1969
1969
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
1970
1970
  }
1971
- }, zr = "~memo", Br = [];
1972
- function Vr(e) {
1971
+ }, Br = "~memo", Vr = [];
1972
+ function Hr(e) {
1973
1973
  return e.map((e) => e.path ? {
1974
1974
  ...e,
1975
1975
  path: e.path.slice()
1976
1976
  } : { ...e });
1977
1977
  }
1978
- var Hr = /*@__PURE__*/ new WeakMap();
1979
- function Ur(e, t) {
1980
- let n = Hr.get(e);
1978
+ var Ur = /*@__PURE__*/ new WeakMap();
1979
+ function Wr(e, t) {
1980
+ let n = Ur.get(e);
1981
1981
  if (n !== void 0) return n;
1982
1982
  if (t.has(e)) return !0;
1983
1983
  t.add(e);
1984
1984
  let r = !1, i = (e) => {
1985
- !r && e?._zod && Ur(e, t) && (r = !0);
1985
+ !r && e?._zod && Wr(e, t) && (r = !0);
1986
1986
  }, a = e._zod.def;
1987
1987
  switch (a.type) {
1988
1988
  case "object":
@@ -2059,28 +2059,28 @@ function Ur(e, t) {
2059
2059
  }
2060
2060
  }
2061
2061
  }
2062
- return t.delete(e), Hr.set(e, r), r;
2062
+ return t.delete(e), Ur.set(e, r), r;
2063
2063
  }
2064
- function Wr(e, t) {
2064
+ function Gr(e, t) {
2065
2065
  let n = e.buckets.get(t);
2066
2066
  return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
2067
2067
  }
2068
- var Gr, Kr = [], qr = {
2068
+ var Kr, qr = [], Jr = {
2069
2069
  alloc(e, t, n) {
2070
- let r = Gr;
2070
+ let r = Kr;
2071
2071
  if (!r) return n;
2072
- Gr = void 0;
2072
+ Kr = void 0;
2073
2073
  let i = {
2074
2074
  value: n,
2075
2075
  issues: null
2076
2076
  };
2077
- return r.set(t.value, i), Kr.push(i), n;
2077
+ return r.set(t.value, i), qr.push(i), n;
2078
2078
  },
2079
2079
  guard(e) {
2080
2080
  var t;
2081
2081
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2082
2082
  let t = e._zod.parse, n = (e, n) => {
2083
- if (n.direction !== "backward" && Yr(n, e.value)) throw new Rr();
2083
+ if (n.direction !== "backward" && Xr(n, e.value)) throw new zr();
2084
2084
  return t(e, n);
2085
2085
  };
2086
2086
  e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
@@ -2091,38 +2091,38 @@ var Gr, Kr = [], qr = {
2091
2091
  let n, r, i;
2092
2092
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2093
2093
  let t = e._zod.parse, a = (o, s) => {
2094
- if (n === void 0 && (n = Ur(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2094
+ if (n === void 0 && (n = Wr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2095
2095
  let c = o.value;
2096
2096
  if (typeof c != "object" || !c) return t(o, s);
2097
- let l = s[zr];
2097
+ let l = s[Br];
2098
2098
  l || (l = {
2099
2099
  buckets: /* @__PURE__ */ new Map(),
2100
2100
  backEdges: void 0
2101
- }, s[zr] = l);
2101
+ }, s[Br] = l);
2102
2102
  let u;
2103
- r === s ? u = i : (u = Wr(l, e), r = s, i = u);
2103
+ r === s ? u = i : (u = Gr(l, e), r = s, i = u);
2104
2104
  let d = u.get(c);
2105
- if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Vr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2106
- Gr = u;
2107
- let f = Kr.length, p = t(o, s);
2108
- Gr = void 0;
2109
- let m = Kr.length > f ? Kr.pop() : void 0;
2110
- return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Vr(e.issues) : Br), e)) : (m && (m.issues = p.issues.length ? Vr(p.issues) : Br), p);
2105
+ if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Hr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2106
+ Kr = u;
2107
+ let f = qr.length, p = t(o, s);
2108
+ Kr = void 0;
2109
+ let m = qr.length > f ? qr.pop() : void 0;
2110
+ return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Hr(e.issues) : Vr), e)) : (m && (m.issues = p.issues.length ? Hr(p.issues) : Vr), p);
2111
2111
  };
2112
2112
  e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
2113
2113
  });
2114
2114
  }
2115
2115
  };
2116
- function Jr() {
2117
- return qr;
2116
+ function Yr() {
2117
+ return Jr;
2118
2118
  }
2119
- function Yr(e, t) {
2120
- let n = e[zr]?.backEdges;
2119
+ function Xr(e, t) {
2120
+ let n = e[Br]?.backEdges;
2121
2121
  return n !== void 0 && typeof t == "object" && !!t && n.has(t);
2122
2122
  }
2123
2123
  //#endregion
2124
2124
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
2125
- var Xr = () => {
2125
+ var Zr = () => {
2126
2126
  let e = {
2127
2127
  string: {
2128
2128
  unit: "characters",
@@ -2185,7 +2185,7 @@ var Xr = () => {
2185
2185
  }
2186
2186
  return (e) => {
2187
2187
  switch (e.code) {
2188
- case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(Ce(e.input), e.input)}`;
2188
+ case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(Se(e.input), e.input)}`;
2189
2189
  case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${ae(e.values[0])}` : `Invalid option: expected one of ${t(e.values, "|")}`;
2190
2190
  case "too_big": {
2191
2191
  let t = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = n(e.origin);
@@ -2208,12 +2208,12 @@ var Xr = () => {
2208
2208
  }
2209
2209
  };
2210
2210
  };
2211
- function Zr() {
2212
- return { localeError: Xr() };
2211
+ function Qr() {
2212
+ return { localeError: Zr() };
2213
2213
  }
2214
2214
  //#endregion
2215
2215
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
2216
- var Qr, $r = class {
2216
+ var $r, ei = class {
2217
2217
  constructor() {
2218
2218
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2219
2219
  }
@@ -2245,22 +2245,22 @@ var Qr, $r = class {
2245
2245
  return this._map.has(e);
2246
2246
  }
2247
2247
  };
2248
- function ei() {
2249
- return new $r();
2248
+ function ti() {
2249
+ return new ei();
2250
2250
  }
2251
- (Qr = globalThis).__zod_globalRegistry ?? (Qr.__zod_globalRegistry = ei());
2252
- var ti = globalThis.__zod_globalRegistry;
2251
+ ($r = globalThis).__zod_globalRegistry ?? ($r.__zod_globalRegistry = ti());
2252
+ var ni = globalThis.__zod_globalRegistry;
2253
2253
  //#endregion
2254
2254
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
2255
2255
  // @__NO_SIDE_EFFECTS__
2256
- function ni(e, t) {
2256
+ function ri(e, t) {
2257
2257
  return new e({
2258
2258
  type: "string",
2259
2259
  ...g(t)
2260
2260
  });
2261
2261
  }
2262
2262
  // @__NO_SIDE_EFFECTS__
2263
- function ri(e, t) {
2263
+ function ii(e, t) {
2264
2264
  return new e({
2265
2265
  type: "string",
2266
2266
  format: "email",
@@ -2270,7 +2270,7 @@ function ri(e, t) {
2270
2270
  });
2271
2271
  }
2272
2272
  // @__NO_SIDE_EFFECTS__
2273
- function ii(e, t) {
2273
+ function ai(e, t) {
2274
2274
  return new e({
2275
2275
  type: "string",
2276
2276
  format: "guid",
@@ -2280,7 +2280,7 @@ function ii(e, t) {
2280
2280
  });
2281
2281
  }
2282
2282
  // @__NO_SIDE_EFFECTS__
2283
- function ai(e, t) {
2283
+ function oi(e, t) {
2284
2284
  return new e({
2285
2285
  type: "string",
2286
2286
  format: "uuid",
@@ -2290,7 +2290,7 @@ function ai(e, t) {
2290
2290
  });
2291
2291
  }
2292
2292
  // @__NO_SIDE_EFFECTS__
2293
- function oi(e, t) {
2293
+ function si(e, t) {
2294
2294
  return new e({
2295
2295
  type: "string",
2296
2296
  format: "uuid",
@@ -2301,7 +2301,7 @@ function oi(e, t) {
2301
2301
  });
2302
2302
  }
2303
2303
  // @__NO_SIDE_EFFECTS__
2304
- function si(e, t) {
2304
+ function ci(e, t) {
2305
2305
  return new e({
2306
2306
  type: "string",
2307
2307
  format: "uuid",
@@ -2312,7 +2312,7 @@ function si(e, t) {
2312
2312
  });
2313
2313
  }
2314
2314
  // @__NO_SIDE_EFFECTS__
2315
- function ci(e, t) {
2315
+ function li(e, t) {
2316
2316
  return new e({
2317
2317
  type: "string",
2318
2318
  format: "uuid",
@@ -2323,7 +2323,7 @@ function ci(e, t) {
2323
2323
  });
2324
2324
  }
2325
2325
  // @__NO_SIDE_EFFECTS__
2326
- function li(e, t) {
2326
+ function ui(e, t) {
2327
2327
  return new e({
2328
2328
  type: "string",
2329
2329
  format: "url",
@@ -2333,7 +2333,7 @@ function li(e, t) {
2333
2333
  });
2334
2334
  }
2335
2335
  // @__NO_SIDE_EFFECTS__
2336
- function ui(e, t) {
2336
+ function di(e, t) {
2337
2337
  return new e({
2338
2338
  type: "string",
2339
2339
  format: "emoji",
@@ -2343,7 +2343,7 @@ function ui(e, t) {
2343
2343
  });
2344
2344
  }
2345
2345
  // @__NO_SIDE_EFFECTS__
2346
- function di(e, t) {
2346
+ function fi(e, t) {
2347
2347
  return new e({
2348
2348
  type: "string",
2349
2349
  format: "nanoid",
@@ -2353,7 +2353,7 @@ function di(e, t) {
2353
2353
  });
2354
2354
  }
2355
2355
  // @__NO_SIDE_EFFECTS__
2356
- function fi(e, t) {
2356
+ function pi(e, t) {
2357
2357
  return new e({
2358
2358
  type: "string",
2359
2359
  format: "cuid",
@@ -2363,7 +2363,7 @@ function fi(e, t) {
2363
2363
  });
2364
2364
  }
2365
2365
  // @__NO_SIDE_EFFECTS__
2366
- function pi(e, t) {
2366
+ function mi(e, t) {
2367
2367
  return new e({
2368
2368
  type: "string",
2369
2369
  format: "cuid2",
@@ -2373,7 +2373,7 @@ function pi(e, t) {
2373
2373
  });
2374
2374
  }
2375
2375
  // @__NO_SIDE_EFFECTS__
2376
- function mi(e, t) {
2376
+ function hi(e, t) {
2377
2377
  return new e({
2378
2378
  type: "string",
2379
2379
  format: "ulid",
@@ -2383,7 +2383,7 @@ function mi(e, t) {
2383
2383
  });
2384
2384
  }
2385
2385
  // @__NO_SIDE_EFFECTS__
2386
- function hi(e, t) {
2386
+ function gi(e, t) {
2387
2387
  return new e({
2388
2388
  type: "string",
2389
2389
  format: "xid",
@@ -2393,7 +2393,7 @@ function hi(e, t) {
2393
2393
  });
2394
2394
  }
2395
2395
  // @__NO_SIDE_EFFECTS__
2396
- function gi(e, t) {
2396
+ function _i(e, t) {
2397
2397
  return new e({
2398
2398
  type: "string",
2399
2399
  format: "ksuid",
@@ -2403,7 +2403,7 @@ function gi(e, t) {
2403
2403
  });
2404
2404
  }
2405
2405
  // @__NO_SIDE_EFFECTS__
2406
- function _i(e, t) {
2406
+ function vi(e, t) {
2407
2407
  return new e({
2408
2408
  type: "string",
2409
2409
  format: "ipv4",
@@ -2413,7 +2413,7 @@ function _i(e, t) {
2413
2413
  });
2414
2414
  }
2415
2415
  // @__NO_SIDE_EFFECTS__
2416
- function vi(e, t) {
2416
+ function yi(e, t) {
2417
2417
  return new e({
2418
2418
  type: "string",
2419
2419
  format: "ipv6",
@@ -2423,7 +2423,7 @@ function vi(e, t) {
2423
2423
  });
2424
2424
  }
2425
2425
  // @__NO_SIDE_EFFECTS__
2426
- function yi(e, t) {
2426
+ function bi(e, t) {
2427
2427
  return new e({
2428
2428
  type: "string",
2429
2429
  format: "cidrv4",
@@ -2433,7 +2433,7 @@ function yi(e, t) {
2433
2433
  });
2434
2434
  }
2435
2435
  // @__NO_SIDE_EFFECTS__
2436
- function bi(e, t) {
2436
+ function xi(e, t) {
2437
2437
  return new e({
2438
2438
  type: "string",
2439
2439
  format: "cidrv6",
@@ -2443,7 +2443,7 @@ function bi(e, t) {
2443
2443
  });
2444
2444
  }
2445
2445
  // @__NO_SIDE_EFFECTS__
2446
- function xi(e, t) {
2446
+ function Si(e, t) {
2447
2447
  return new e({
2448
2448
  type: "string",
2449
2449
  format: "base64",
@@ -2453,7 +2453,7 @@ function xi(e, t) {
2453
2453
  });
2454
2454
  }
2455
2455
  // @__NO_SIDE_EFFECTS__
2456
- function Si(e, t) {
2456
+ function Ci(e, t) {
2457
2457
  return new e({
2458
2458
  type: "string",
2459
2459
  format: "base64url",
@@ -2463,7 +2463,7 @@ function Si(e, t) {
2463
2463
  });
2464
2464
  }
2465
2465
  // @__NO_SIDE_EFFECTS__
2466
- function Ci(e, t) {
2466
+ function wi(e, t) {
2467
2467
  return new e({
2468
2468
  type: "string",
2469
2469
  format: "e164",
@@ -2473,7 +2473,7 @@ function Ci(e, t) {
2473
2473
  });
2474
2474
  }
2475
2475
  // @__NO_SIDE_EFFECTS__
2476
- function wi(e, t) {
2476
+ function Ti(e, t) {
2477
2477
  return new e({
2478
2478
  type: "string",
2479
2479
  format: "jwt",
@@ -2483,7 +2483,7 @@ function wi(e, t) {
2483
2483
  });
2484
2484
  }
2485
2485
  // @__NO_SIDE_EFFECTS__
2486
- function Ti(e, t) {
2486
+ function Ei(e, t) {
2487
2487
  return new e({
2488
2488
  type: "string",
2489
2489
  format: "datetime",
@@ -2495,7 +2495,7 @@ function Ti(e, t) {
2495
2495
  });
2496
2496
  }
2497
2497
  // @__NO_SIDE_EFFECTS__
2498
- function Ei(e, t) {
2498
+ function Di(e, t) {
2499
2499
  return new e({
2500
2500
  type: "string",
2501
2501
  format: "date",
@@ -2504,7 +2504,7 @@ function Ei(e, t) {
2504
2504
  });
2505
2505
  }
2506
2506
  // @__NO_SIDE_EFFECTS__
2507
- function Di(e, t) {
2507
+ function Oi(e, t) {
2508
2508
  return new e({
2509
2509
  type: "string",
2510
2510
  format: "time",
@@ -2514,7 +2514,7 @@ function Di(e, t) {
2514
2514
  });
2515
2515
  }
2516
2516
  // @__NO_SIDE_EFFECTS__
2517
- function Oi(e, t) {
2517
+ function ki(e, t) {
2518
2518
  return new e({
2519
2519
  type: "string",
2520
2520
  format: "duration",
@@ -2523,7 +2523,7 @@ function Oi(e, t) {
2523
2523
  });
2524
2524
  }
2525
2525
  // @__NO_SIDE_EFFECTS__
2526
- function ki(e, t) {
2526
+ function Ai(e, t) {
2527
2527
  return new e({
2528
2528
  type: "number",
2529
2529
  checks: [],
@@ -2531,7 +2531,7 @@ function ki(e, t) {
2531
2531
  });
2532
2532
  }
2533
2533
  // @__NO_SIDE_EFFECTS__
2534
- function Ai(e, t) {
2534
+ function ji(e, t) {
2535
2535
  return new e({
2536
2536
  type: "number",
2537
2537
  check: "number_format",
@@ -2541,33 +2541,33 @@ function Ai(e, t) {
2541
2541
  });
2542
2542
  }
2543
2543
  // @__NO_SIDE_EFFECTS__
2544
- function ji(e, t) {
2544
+ function Mi(e, t) {
2545
2545
  return new e({
2546
2546
  type: "boolean",
2547
2547
  ...g(t)
2548
2548
  });
2549
2549
  }
2550
2550
  // @__NO_SIDE_EFFECTS__
2551
- function Mi(e, t) {
2551
+ function Ni(e, t) {
2552
2552
  return new e({
2553
2553
  type: "null",
2554
2554
  ...g(t)
2555
2555
  });
2556
2556
  }
2557
2557
  // @__NO_SIDE_EFFECTS__
2558
- function Ni(e) {
2558
+ function Pi(e) {
2559
2559
  return new e({ type: "unknown" });
2560
2560
  }
2561
2561
  // @__NO_SIDE_EFFECTS__
2562
- function Pi(e, t) {
2562
+ function Fi(e, t) {
2563
2563
  return new e({
2564
2564
  type: "never",
2565
2565
  ...g(t)
2566
2566
  });
2567
2567
  }
2568
2568
  // @__NO_SIDE_EFFECTS__
2569
- function Fi(e, t) {
2570
- return new Yt({
2569
+ function Ii(e, t) {
2570
+ return new Xt({
2571
2571
  check: "less_than",
2572
2572
  ...g(t),
2573
2573
  value: e,
@@ -2575,8 +2575,8 @@ function Fi(e, t) {
2575
2575
  });
2576
2576
  }
2577
2577
  // @__NO_SIDE_EFFECTS__
2578
- function Ii(e, t) {
2579
- return new Yt({
2578
+ function Li(e, t) {
2579
+ return new Xt({
2580
2580
  check: "less_than",
2581
2581
  ...g(t),
2582
2582
  value: e,
@@ -2584,8 +2584,8 @@ function Ii(e, t) {
2584
2584
  });
2585
2585
  }
2586
2586
  // @__NO_SIDE_EFFECTS__
2587
- function Li(e, t) {
2588
- return new Xt({
2587
+ function Ri(e, t) {
2588
+ return new Zt({
2589
2589
  check: "greater_than",
2590
2590
  ...g(t),
2591
2591
  value: e,
@@ -2593,8 +2593,8 @@ function Li(e, t) {
2593
2593
  });
2594
2594
  }
2595
2595
  // @__NO_SIDE_EFFECTS__
2596
- function Ri(e, t) {
2597
- return new Xt({
2596
+ function zi(e, t) {
2597
+ return new Zt({
2598
2598
  check: "greater_than",
2599
2599
  ...g(t),
2600
2600
  value: e,
@@ -2602,40 +2602,40 @@ function Ri(e, t) {
2602
2602
  });
2603
2603
  }
2604
2604
  // @__NO_SIDE_EFFECTS__
2605
- function zi(e, t) {
2606
- return new Zt({
2605
+ function Bi(e, t) {
2606
+ return new Qt({
2607
2607
  check: "multiple_of",
2608
2608
  ...g(t),
2609
2609
  value: e
2610
2610
  });
2611
2611
  }
2612
2612
  // @__NO_SIDE_EFFECTS__
2613
- function Bi(e, t) {
2614
- return new $t({
2613
+ function Vi(e, t) {
2614
+ return new en({
2615
2615
  check: "max_length",
2616
2616
  ...g(t),
2617
2617
  maximum: e
2618
2618
  });
2619
2619
  }
2620
2620
  // @__NO_SIDE_EFFECTS__
2621
- function Vi(e, t) {
2622
- return new en({
2621
+ function Hi(e, t) {
2622
+ return new tn({
2623
2623
  check: "min_length",
2624
2624
  ...g(t),
2625
2625
  minimum: e
2626
2626
  });
2627
2627
  }
2628
2628
  // @__NO_SIDE_EFFECTS__
2629
- function Hi(e, t) {
2630
- return new tn({
2629
+ function Ui(e, t) {
2630
+ return new nn({
2631
2631
  check: "length_equals",
2632
2632
  ...g(t),
2633
2633
  length: e
2634
2634
  });
2635
2635
  }
2636
2636
  // @__NO_SIDE_EFFECTS__
2637
- function Ui(e, t) {
2638
- return new rn({
2637
+ function Wi(e, t) {
2638
+ return new an({
2639
2639
  check: "string_format",
2640
2640
  format: "regex",
2641
2641
  ...g(t),
@@ -2643,24 +2643,24 @@ function Ui(e, t) {
2643
2643
  });
2644
2644
  }
2645
2645
  // @__NO_SIDE_EFFECTS__
2646
- function Wi(e) {
2647
- return new an({
2646
+ function Gi(e) {
2647
+ return new on({
2648
2648
  check: "string_format",
2649
2649
  format: "lowercase",
2650
2650
  ...g(e)
2651
2651
  });
2652
2652
  }
2653
2653
  // @__NO_SIDE_EFFECTS__
2654
- function Gi(e) {
2655
- return new on({
2654
+ function Ki(e) {
2655
+ return new sn({
2656
2656
  check: "string_format",
2657
2657
  format: "uppercase",
2658
2658
  ...g(e)
2659
2659
  });
2660
2660
  }
2661
2661
  // @__NO_SIDE_EFFECTS__
2662
- function Ki(e, t) {
2663
- return new sn({
2662
+ function qi(e, t) {
2663
+ return new cn({
2664
2664
  check: "string_format",
2665
2665
  format: "includes",
2666
2666
  ...g(t),
@@ -2668,8 +2668,8 @@ function Ki(e, t) {
2668
2668
  });
2669
2669
  }
2670
2670
  // @__NO_SIDE_EFFECTS__
2671
- function qi(e, t) {
2672
- return new cn({
2671
+ function Ji(e, t) {
2672
+ return new ln({
2673
2673
  check: "string_format",
2674
2674
  format: "starts_with",
2675
2675
  ...g(t),
@@ -2677,8 +2677,8 @@ function qi(e, t) {
2677
2677
  });
2678
2678
  }
2679
2679
  // @__NO_SIDE_EFFECTS__
2680
- function Ji(e, t) {
2681
- return new ln({
2680
+ function Yi(e, t) {
2681
+ return new un({
2682
2682
  check: "string_format",
2683
2683
  format: "ends_with",
2684
2684
  ...g(t),
@@ -2686,34 +2686,34 @@ function Ji(e, t) {
2686
2686
  });
2687
2687
  }
2688
2688
  // @__NO_SIDE_EFFECTS__
2689
- function Yi(e) {
2690
- return new un({
2689
+ function Xi(e) {
2690
+ return new dn({
2691
2691
  check: "overwrite",
2692
2692
  tx: e
2693
2693
  });
2694
2694
  }
2695
2695
  // @__NO_SIDE_EFFECTS__
2696
- function Xi(e) {
2697
- return /* @__PURE__ */ Yi((t) => t.normalize(e));
2698
- }
2699
- // @__NO_SIDE_EFFECTS__
2700
- function Zi() {
2701
- return /* @__PURE__ */ Yi((e) => e.trim());
2696
+ function Zi(e) {
2697
+ return /* @__PURE__ */ Xi((t) => t.normalize(e));
2702
2698
  }
2703
2699
  // @__NO_SIDE_EFFECTS__
2704
2700
  function Qi() {
2705
- return /* @__PURE__ */ Yi((e) => e.toLowerCase());
2701
+ return /* @__PURE__ */ Xi((e) => e.trim());
2706
2702
  }
2707
2703
  // @__NO_SIDE_EFFECTS__
2708
2704
  function $i() {
2709
- return /* @__PURE__ */ Yi((e) => e.toUpperCase());
2705
+ return /* @__PURE__ */ Xi((e) => e.toLowerCase());
2710
2706
  }
2711
2707
  // @__NO_SIDE_EFFECTS__
2712
2708
  function ea() {
2713
- return /* @__PURE__ */ Yi((e) => f(e));
2709
+ return /* @__PURE__ */ Xi((e) => e.toUpperCase());
2714
2710
  }
2715
2711
  // @__NO_SIDE_EFFECTS__
2716
- function ta(e, t, n) {
2712
+ function ta() {
2713
+ return /* @__PURE__ */ Xi((e) => f(e));
2714
+ }
2715
+ // @__NO_SIDE_EFFECTS__
2716
+ function na(e, t, n) {
2717
2717
  return new e({
2718
2718
  type: "array",
2719
2719
  element: t,
@@ -2721,7 +2721,7 @@ function ta(e, t, n) {
2721
2721
  });
2722
2722
  }
2723
2723
  // @__NO_SIDE_EFFECTS__
2724
- function na(e, t, n) {
2724
+ function ra(e, t, n) {
2725
2725
  return new e({
2726
2726
  type: "custom",
2727
2727
  check: "custom",
@@ -2730,19 +2730,19 @@ function na(e, t, n) {
2730
2730
  });
2731
2731
  }
2732
2732
  // @__NO_SIDE_EFFECTS__
2733
- function ra(e, t) {
2734
- let n = /* @__PURE__ */ ia((t) => (t.addIssue = (e) => {
2735
- if (typeof e == "string") t.issues.push(we(e, t.value, n._zod.def));
2733
+ function ia(e, t) {
2734
+ let n = /* @__PURE__ */ aa((t) => (t.addIssue = (e) => {
2735
+ if (typeof e == "string") t.issues.push(Ce(e, t.value, n._zod.def));
2736
2736
  else {
2737
2737
  let r = e;
2738
- r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(we(r));
2738
+ r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(Ce(r));
2739
2739
  }
2740
2740
  }, e(t.value, t)), t);
2741
2741
  return n;
2742
2742
  }
2743
2743
  // @__NO_SIDE_EFFECTS__
2744
- function ia(e, t) {
2745
- let n = new w({
2744
+ function aa(e, t) {
2745
+ let n = new C({
2746
2746
  check: "custom",
2747
2747
  ...g(t)
2748
2748
  });
@@ -2750,15 +2750,15 @@ function ia(e, t) {
2750
2750
  }
2751
2751
  //#endregion
2752
2752
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
2753
- function aa(e, ...t) {
2753
+ function oa(e, ...t) {
2754
2754
  for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && l(e, t, n[t]);
2755
2755
  return e;
2756
2756
  }
2757
- function oa(e) {
2757
+ function sa(e) {
2758
2758
  let t = e?.target ?? "draft-2020-12";
2759
2759
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2760
2760
  processors: e.processors ?? {},
2761
- metadataRegistry: e?.metadata ?? ti,
2761
+ metadataRegistry: e?.metadata ?? ni,
2762
2762
  target: t,
2763
2763
  unrepresentable: e?.unrepresentable ?? "throw",
2764
2764
  override: e?.override ?? (() => {}),
@@ -2774,7 +2774,7 @@ function oa(e) {
2774
2774
  external: e?.external ?? void 0
2775
2775
  };
2776
2776
  }
2777
- function D(e, t, n, r, i) {
2777
+ function E(e, t, n, r, i) {
2778
2778
  let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
2779
2779
  zodSchema: e,
2780
2780
  path: r.path,
@@ -2784,7 +2784,7 @@ function D(e, t, n, r, i) {
2784
2784
  if (a === void 0 || a === "throw") throw Error(i);
2785
2785
  return Object.assign(n, a), !0;
2786
2786
  }
2787
- function O(e, t, n = {
2787
+ function D(e, t, n = {
2788
2788
  path: [],
2789
2789
  schemaPath: []
2790
2790
  }) {
@@ -2813,15 +2813,15 @@ function O(e, t, n = {
2813
2813
  a(e, t, n, r);
2814
2814
  }
2815
2815
  let a = e._zod.parent;
2816
- a && (o.ref ||= a, O(a, t, r), t.seen.get(a).isParent = !0);
2816
+ a && (o.ref ||= a, D(a, t, r), t.seen.get(a).isParent = !0);
2817
2817
  }
2818
2818
  let c = t.metadataRegistry.get(e);
2819
- return c && aa(o.schema, c), t.io === "input" && k(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2819
+ return c && oa(o.schema, c), t.io === "input" && O(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2820
2820
  }
2821
- function sa(e) {
2821
+ function ca(e) {
2822
2822
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
2823
2823
  }
2824
- function ca(e, t) {
2824
+ function la(e, t) {
2825
2825
  let n = e.seen.get(t);
2826
2826
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2827
2827
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -2842,7 +2842,7 @@ function ca(e, t) {
2842
2842
  let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
2843
2843
  return t[1].defId = a, {
2844
2844
  defId: a,
2845
- ref: `${i("__shared")}#/${r}/${sa(a)}`
2845
+ ref: `${i("__shared")}#/${r}/${ca(a)}`
2846
2846
  };
2847
2847
  }
2848
2848
  let i = `#/${r}/`;
@@ -2850,7 +2850,7 @@ function ca(e, t) {
2850
2850
  let a = t[1].schema.id ?? `__schema${e.counter++}`;
2851
2851
  return {
2852
2852
  defId: a,
2853
- ref: i + sa(a)
2853
+ ref: i + ca(a)
2854
2854
  };
2855
2855
  }, a = (e) => {
2856
2856
  if (e[1].schema.$ref) return;
@@ -2894,13 +2894,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2894
2894
  }
2895
2895
  e.external && (e.sharedDefsExtractedFor = e.external);
2896
2896
  }
2897
- function la(e) {
2897
+ function ua(e) {
2898
2898
  let t = e.anyOf;
2899
2899
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
2900
2900
  let n = [];
2901
2901
  for (let e of t) {
2902
2902
  if (!e || typeof e != "object") return;
2903
- la(e);
2903
+ ua(e);
2904
2904
  let t = Object.keys(e);
2905
2905
  if (t.length !== 1 || t[0] !== "type") return;
2906
2906
  let r = e.type;
@@ -2911,21 +2911,21 @@ function la(e) {
2911
2911
  }
2912
2912
  delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
2913
2913
  }
2914
- var ua = /* @__PURE__ */ new Set([
2914
+ var da = /* @__PURE__ */ new Set([
2915
2915
  "type",
2916
2916
  "properties",
2917
2917
  "required",
2918
2918
  "additionalProperties"
2919
- ]), da = ["oneOf", "anyOf"];
2920
- function fa(e) {
2919
+ ]), fa = ["oneOf", "anyOf"];
2920
+ function pa(e) {
2921
2921
  let t = e.additionalProperties;
2922
2922
  return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
2923
2923
  }
2924
- function pa(e) {
2924
+ function ma(e) {
2925
2925
  let t = [];
2926
2926
  for (let n of e) {
2927
2927
  if (typeof n != "object" || n.type !== "object") return null;
2928
- for (let e in n) if (!ua.has(e)) return null;
2928
+ for (let e in n) if (!da.has(e)) return null;
2929
2929
  t.push(n);
2930
2930
  }
2931
2931
  let n = {}, r = /* @__PURE__ */ new Set();
@@ -2934,10 +2934,10 @@ function pa(e) {
2934
2934
  if (Object.prototype.hasOwnProperty.call(n, r)) continue;
2935
2935
  let e = [];
2936
2936
  for (let n of t) {
2937
- let t = n.properties?.[r] ?? fa(n);
2937
+ let t = n.properties?.[r] ?? pa(n);
2938
2938
  t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
2939
2939
  }
2940
- l(n, r, e.length === 1 ? e[0] : pa(e) ?? { allOf: e });
2940
+ l(n, r, e.length === 1 ? e[0] : ma(e) ?? { allOf: e });
2941
2941
  }
2942
2942
  for (let t of e.required ?? []) r.add(t);
2943
2943
  }
@@ -2949,29 +2949,29 @@ function pa(e) {
2949
2949
  else {
2950
2950
  let e = [];
2951
2951
  for (let n of t) {
2952
- let t = fa(n);
2952
+ let t = pa(n);
2953
2953
  t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
2954
2954
  }
2955
2955
  e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
2956
2956
  }
2957
2957
  return i;
2958
2958
  }
2959
- function ma(e) {
2959
+ function ha(e) {
2960
2960
  let t = e.allOf;
2961
2961
  if (!Array.isArray(t) || t.length < 2) return;
2962
- for (let t of ua) if (t in e) return;
2963
- let n = t.filter((e) => da.some((t) => Array.isArray(e[t]))), r = null;
2964
- if (!n.length) r = pa(t);
2962
+ for (let t of da) if (t in e) return;
2963
+ let n = t.filter((e) => fa.some((t) => Array.isArray(e[t]))), r = null;
2964
+ if (!n.length) r = ma(t);
2965
2965
  else {
2966
- let e = n[0], i = da.find((t) => Array.isArray(e[t]));
2966
+ let e = n[0], i = fa.find((t) => Array.isArray(e[t]));
2967
2967
  if (Object.keys(e).length !== 1) return;
2968
- let a = t.filter((t) => t !== e), o = e[i].map((e) => pa([...a, e]));
2968
+ let a = t.filter((t) => t !== e), o = e[i].map((e) => ma([...a, e]));
2969
2969
  if (o.some((e) => !e)) return;
2970
2970
  r = { [i]: o };
2971
2971
  }
2972
- r && (delete e.allOf, aa(e, r));
2972
+ r && (delete e.allOf, oa(e, r));
2973
2973
  }
2974
- function ha(e, t) {
2974
+ function ga(e, t) {
2975
2975
  let n = e.seen.get(t);
2976
2976
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2977
2977
  let r = (t) => {
@@ -2981,7 +2981,7 @@ function ha(e, t) {
2981
2981
  if (n.ref = null, o) {
2982
2982
  r(o);
2983
2983
  let n = e.seen.get(o), s = n.schema;
2984
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : aa(i, s), aa(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
2984
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : oa(i, s), oa(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
2985
2985
  if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
2986
2986
  }
2987
2987
  let s = t._zod.parent;
@@ -2998,7 +2998,7 @@ function ha(e, t) {
2998
2998
  };
2999
2999
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
3000
3000
  for (let t of [...e.seen.entries()].reverse()) r(t[0]);
3001
- if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) la(t[1].def ?? t[1].schema);
3001
+ if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ua(t[1].def ?? t[1].schema);
3002
3002
  for (let t of e.deferred) t();
3003
3003
  if (e.intersections.length) {
3004
3004
  let t = /* @__PURE__ */ new Map();
@@ -3008,7 +3008,7 @@ function ha(e, t) {
3008
3008
  let r = t.get(n);
3009
3009
  r ? r.push(e) : t.set(n, [e]);
3010
3010
  }
3011
- for (let n of e.intersections) for (let e of t.get(n) ?? []) ma(e);
3011
+ for (let n of e.intersections) for (let e of t.get(n) ?? []) ha(e);
3012
3012
  }
3013
3013
  }
3014
3014
  let i = {};
@@ -3017,7 +3017,7 @@ function ha(e, t) {
3017
3017
  if (!n) throw Error("Schema is missing an `id` property");
3018
3018
  i.$id = e.external.uri(n);
3019
3019
  }
3020
- aa(i, n.defId ? n.schema : n.def ?? n.schema);
3020
+ oa(i, n.defId ? n.schema : n.def ?? n.schema);
3021
3021
  let a = e.metadataRegistry.get(t)?.id;
3022
3022
  a !== void 0 && i.id === a && delete i.id;
3023
3023
  let o = e.external?.defs ?? {};
@@ -3032,8 +3032,8 @@ function ha(e, t) {
3032
3032
  value: {
3033
3033
  ...t["~standard"],
3034
3034
  jsonSchema: {
3035
- input: _a(t, "input", e.processors),
3036
- output: _a(t, "output", e.processors)
3035
+ input: va(t, "input", e.processors),
3036
+ output: va(t, "output", e.processors)
3037
3037
  }
3038
3038
  },
3039
3039
  enumerable: !1,
@@ -3043,93 +3043,93 @@ function ha(e, t) {
3043
3043
  throw Error("Error converting schema to JSON.");
3044
3044
  }
3045
3045
  }
3046
- function k(e, t) {
3046
+ function O(e, t) {
3047
3047
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
3048
3048
  if (n.seen.has(e)) return !1;
3049
3049
  n.seen.add(e);
3050
3050
  let r = e._zod.def;
3051
3051
  if (r.type === "transform") return !0;
3052
- if (r.type === "array") return k(r.element, n);
3053
- if (r.type === "set") return k(r.valueType, n);
3054
- if (r.type === "lazy") return k(r.getter(), n);
3055
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return k(r.innerType, n);
3056
- if (r.type === "intersection") return k(r.left, n) || k(r.right, n);
3057
- if (r.type === "record" || r.type === "map") return k(r.keyType, n) || k(r.valueType, n);
3058
- if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : k(r.in, n) || k(r.out, n);
3052
+ if (r.type === "array") return O(r.element, n);
3053
+ if (r.type === "set") return O(r.valueType, n);
3054
+ if (r.type === "lazy") return O(r.getter(), n);
3055
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return O(r.innerType, n);
3056
+ if (r.type === "intersection") return O(r.left, n) || O(r.right, n);
3057
+ if (r.type === "record" || r.type === "map") return O(r.keyType, n) || O(r.valueType, n);
3058
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : O(r.in, n) || O(r.out, n);
3059
3059
  if (r.type === "object") {
3060
- for (let e in r.shape) if (k(r.shape[e], n)) return !0;
3060
+ for (let e in r.shape) if (O(r.shape[e], n)) return !0;
3061
3061
  return !1;
3062
3062
  }
3063
3063
  if (r.type === "union") {
3064
- for (let e of r.options) if (k(e, n)) return !0;
3064
+ for (let e of r.options) if (O(e, n)) return !0;
3065
3065
  return !1;
3066
3066
  }
3067
3067
  if (r.type === "tuple") {
3068
- for (let e of r.items) if (k(e, n)) return !0;
3069
- return !!(r.rest && k(r.rest, n));
3068
+ for (let e of r.items) if (O(e, n)) return !0;
3069
+ return !!(r.rest && O(r.rest, n));
3070
3070
  }
3071
3071
  return !1;
3072
3072
  }
3073
- var ga = (e, t = {}) => (n) => {
3074
- let r = oa({
3073
+ var _a = (e, t = {}) => (n) => {
3074
+ let r = sa({
3075
3075
  ...n,
3076
3076
  processors: t
3077
3077
  });
3078
- return O(e, r), ca(r, e), ha(r, e);
3079
- }, _a = (e, t, n = {}) => (r) => {
3080
- let { libraryOptions: i, target: a } = r ?? {}, o = oa({
3078
+ return D(e, r), la(r, e), ga(r, e);
3079
+ }, va = (e, t, n = {}) => (r) => {
3080
+ let { libraryOptions: i, target: a } = r ?? {}, o = sa({
3081
3081
  ...i ?? {},
3082
3082
  target: a,
3083
3083
  io: t,
3084
3084
  processors: n
3085
3085
  });
3086
- return O(e, o), ca(o, e), ha(o, e);
3087
- }, va = {
3086
+ return D(e, o), la(o, e), ga(o, e);
3087
+ }, ya = {
3088
3088
  guid: "uuid",
3089
3089
  url: "uri",
3090
3090
  datetime: "date-time",
3091
3091
  json_string: "json-string",
3092
3092
  regex: ""
3093
- }, ya = (e, t, n, r) => {
3093
+ }, ba = (e, t, n, r) => {
3094
3094
  let i = n;
3095
3095
  i.type = "string";
3096
3096
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
3097
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = va[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3097
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ya[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3098
3098
  let e = [...c];
3099
3099
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
3100
3100
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
3101
3101
  pattern: e.source
3102
3102
  }))]);
3103
3103
  }
3104
- }, ba = (e, t, n, r) => {
3104
+ }, xa = (e, t, n, r) => {
3105
3105
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
3106
3106
  i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
3107
3107
  let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
3108
- d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : D(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3109
- }, xa = (e, t, n, r) => {
3110
- n.type = "boolean";
3108
+ d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : E(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3111
3109
  }, Sa = (e, t, n, r) => {
3112
- D(e, t, n, r, "BigInt cannot be represented in JSON Schema");
3110
+ n.type = "boolean";
3113
3111
  }, Ca = (e, t, n, r) => {
3114
- D(e, t, n, r, "Symbols cannot be represented in JSON Schema");
3112
+ E(e, t, n, r, "BigInt cannot be represented in JSON Schema");
3115
3113
  }, wa = (e, t, n, r) => {
3116
- t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3114
+ E(e, t, n, r, "Symbols cannot be represented in JSON Schema");
3117
3115
  }, Ta = (e, t, n, r) => {
3118
- D(e, t, n, r, "Undefined cannot be represented in JSON Schema");
3116
+ t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3119
3117
  }, Ea = (e, t, n, r) => {
3120
- D(e, t, n, r, "Void cannot be represented in JSON Schema");
3118
+ E(e, t, n, r, "Undefined cannot be represented in JSON Schema");
3121
3119
  }, Da = (e, t, n, r) => {
3120
+ E(e, t, n, r, "Void cannot be represented in JSON Schema");
3121
+ }, Oa = (e, t, n, r) => {
3122
3122
  n.not = {};
3123
- }, Oa = (e, t, n, r) => {}, ka = (e, t, n, r) => {}, Aa = (e, t, n, r) => {
3124
- D(e, t, n, r, "Date cannot be represented in JSON Schema");
3125
- }, ja = (t, n, r, i) => {
3123
+ }, ka = (e, t, n, r) => {}, Aa = (e, t, n, r) => {}, ja = (e, t, n, r) => {
3124
+ E(e, t, n, r, "Date cannot be represented in JSON Schema");
3125
+ }, Ma = (t, n, r, i) => {
3126
3126
  let a = t._zod.def, o = e(a.entries);
3127
3127
  if (o.length === 0) {
3128
3128
  r.not = {};
3129
3129
  return;
3130
3130
  }
3131
3131
  o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o;
3132
- }, Ma = (e, t, n, r) => {
3132
+ }, Na = (e, t, n, r) => {
3133
3133
  let i = e._zod.def;
3134
3134
  if (i.values.length === 0) {
3135
3135
  n.not = {};
@@ -3137,9 +3137,9 @@ var ga = (e, t = {}) => (n) => {
3137
3137
  }
3138
3138
  let a = [];
3139
3139
  for (let o of i.values) if (o === void 0) {
3140
- if (D(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
3140
+ if (E(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
3141
3141
  } else if (typeof o == "bigint") {
3142
- if (D(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
3142
+ if (E(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
3143
3143
  a.push(Number(o));
3144
3144
  } else a.push(o);
3145
3145
  if (a.length !== 0) {
@@ -3148,47 +3148,47 @@ var ga = (e, t = {}) => (n) => {
3148
3148
  n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
3149
3149
  } else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
3150
3150
  }
3151
- }, Na = (e, t, n, r) => {
3152
- D(e, t, n, r, "NaN cannot be represented in JSON Schema");
3153
3151
  }, Pa = (e, t, n, r) => {
3152
+ E(e, t, n, r, "NaN cannot be represented in JSON Schema");
3153
+ }, Fa = (e, t, n, r) => {
3154
3154
  let i = n, a = e._zod.pattern;
3155
3155
  if (!a) throw Error("Pattern not found in template literal");
3156
3156
  i.type = "string", i.pattern = a.source;
3157
- }, Fa = (e, t, n, r) => {
3157
+ }, Ia = (e, t, n, r) => {
3158
3158
  let i = n, a = {
3159
3159
  type: "string",
3160
3160
  format: "binary",
3161
3161
  contentEncoding: "binary"
3162
3162
  }, { minimum: o, maximum: s, mime: c } = e._zod.bag;
3163
3163
  o !== void 0 && (a.minLength = o), s !== void 0 && (a.maxLength = s), c ? c.length === 1 ? (a.contentMediaType = c[0], Object.assign(i, a)) : (Object.assign(i, a), i.anyOf = c.map((e) => ({ contentMediaType: e }))) : Object.assign(i, a);
3164
- }, Ia = (e, t, n, r) => {
3165
- n.type = "boolean";
3166
3164
  }, La = (e, t, n, r) => {
3167
- D(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3165
+ n.type = "boolean";
3168
3166
  }, Ra = (e, t, n, r) => {
3169
- D(e, t, n, r, "Function types cannot be represented in JSON Schema");
3167
+ E(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3170
3168
  }, za = (e, t, n, r) => {
3171
- D(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3169
+ E(e, t, n, r, "Function types cannot be represented in JSON Schema");
3172
3170
  }, Ba = (e, t, n, r) => {
3173
- D(e, t, n, r, "Map cannot be represented in JSON Schema");
3171
+ E(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3174
3172
  }, Va = (e, t, n, r) => {
3175
- D(e, t, n, r, "Set cannot be represented in JSON Schema");
3173
+ E(e, t, n, r, "Map cannot be represented in JSON Schema");
3176
3174
  }, Ha = (e, t, n, r) => {
3175
+ E(e, t, n, r, "Set cannot be represented in JSON Schema");
3176
+ }, Ua = (e, t, n, r) => {
3177
3177
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
3178
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = O(a.element, t, {
3178
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = D(a.element, t, {
3179
3179
  ...r,
3180
3180
  path: [...r.path, "items"]
3181
3181
  });
3182
3182
  };
3183
- function Ua(e) {
3183
+ function Wa(e) {
3184
3184
  let t = e._zod.def;
3185
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Ua(t.out) : t.type === "catch" ? Ua(t.innerType) : e._zod.optin;
3185
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Wa(t.out) : t.type === "catch" ? Wa(t.innerType) : e._zod.optin;
3186
3186
  }
3187
- var Wa = (e, t, n, r) => {
3187
+ var Ga = (e, t, n, r) => {
3188
3188
  let i = n, a = e._zod.def, o = a.shape;
3189
- if (Object.getOwnPropertySymbols(o).length && D(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3189
+ if (Object.getOwnPropertySymbols(o).length && E(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3190
3190
  i.type = "object", i.properties = {};
3191
- for (let e in o) l(i.properties, e, O(o[e], t, {
3191
+ for (let e in o) l(i.properties, e, D(o[e], t, {
3192
3192
  ...r,
3193
3193
  path: [
3194
3194
  ...r.path,
@@ -3198,14 +3198,14 @@ var Wa = (e, t, n, r) => {
3198
3198
  }));
3199
3199
  let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
3200
3200
  let n = a.shape[e];
3201
- return t.io === "input" ? Ua(n) === void 0 : n._zod.optout === void 0;
3201
+ return t.io === "input" ? Wa(n) === void 0 : n._zod.optout === void 0;
3202
3202
  }));
3203
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = O(a.catchall, t, {
3203
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = D(a.catchall, t, {
3204
3204
  ...r,
3205
3205
  path: [...r.path, "additionalProperties"]
3206
3206
  })) : t.io === "output" && (i.additionalProperties = !1);
3207
- }, Ga = (e, t, n, r) => {
3208
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => O(e, t, {
3207
+ }, Ka = (e, t, n, r) => {
3208
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => D(e, t, {
3209
3209
  ...r,
3210
3210
  path: [
3211
3211
  ...r.path,
@@ -3214,15 +3214,15 @@ var Wa = (e, t, n, r) => {
3214
3214
  ]
3215
3215
  }));
3216
3216
  a ? n.oneOf = o : n.anyOf = o;
3217
- }, Ka = (e, t, n, r) => {
3218
- let i = e._zod.def, a = O(i.left, t, {
3217
+ }, qa = (e, t, n, r) => {
3218
+ let i = e._zod.def, a = D(i.left, t, {
3219
3219
  ...r,
3220
3220
  path: [
3221
3221
  ...r.path,
3222
3222
  "allOf",
3223
3223
  0
3224
3224
  ]
3225
- }), o = O(i.right, t, {
3225
+ }), o = D(i.right, t, {
3226
3226
  ...r,
3227
3227
  path: [
3228
3228
  ...r.path,
@@ -3231,17 +3231,17 @@ var Wa = (e, t, n, r) => {
3231
3231
  ]
3232
3232
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
3233
3233
  n.allOf = c, t.intersections.push(c);
3234
- }, qa = (e, t, n, r) => {
3234
+ }, Ja = (e, t, n, r) => {
3235
3235
  let i = n, a = e._zod.def;
3236
3236
  i.type = "array";
3237
- let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => O(e, t, {
3237
+ let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => D(e, t, {
3238
3238
  ...r,
3239
3239
  path: [
3240
3240
  ...r.path,
3241
3241
  o,
3242
3242
  n
3243
3243
  ]
3244
- })), l = a.rest ? O(a.rest, t, {
3244
+ })), l = a.rest ? D(a.rest, t, {
3245
3245
  ...r,
3246
3246
  path: [
3247
3247
  ...r.path,
@@ -3251,7 +3251,7 @@ var Wa = (e, t, n, r) => {
3251
3251
  }) : null, u = a.items.length;
3252
3252
  for (; u > 0;) {
3253
3253
  let e = a.items[u - 1];
3254
- if (!(t.io === "input" ? Ua(e) !== void 0 : e._zod.optout === "optional")) break;
3254
+ if (!(t.io === "input" ? Wa(e) !== void 0 : e._zod.optout === "optional")) break;
3255
3255
  u--;
3256
3256
  }
3257
3257
  let d = a.items.length, f = !a.rest;
@@ -3259,19 +3259,19 @@ var Wa = (e, t, n, r) => {
3259
3259
  let { minimum: p, maximum: m } = e._zod.bag;
3260
3260
  typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
3261
3261
  };
3262
- function Ja(e, t, n) {
3262
+ function Ya(e, t, n) {
3263
3263
  if (t.$ref) {
3264
3264
  if (n.has(t)) return t;
3265
3265
  n.add(t);
3266
3266
  let r = e.get(t)?.def;
3267
3267
  if (!r) return t;
3268
- let i = Ja(e, r, n);
3268
+ let i = Ya(e, r, n);
3269
3269
  return i === r ? t : i;
3270
3270
  }
3271
3271
  for (let r of ["anyOf", "oneOf"]) {
3272
3272
  let i = t[r];
3273
3273
  if (!Array.isArray(i)) continue;
3274
- let a = i.map((t) => Ja(e, t, n));
3274
+ let a = i.map((t) => Ya(e, t, n));
3275
3275
  a.some((e, t) => e !== i[t]) && (t = {
3276
3276
  ...t,
3277
3277
  [r]: a
@@ -3280,17 +3280,17 @@ function Ja(e, t, n) {
3280
3280
  let r = Array.isArray(t.type) ? t.type : [t.type], i = !r.includes("string") && r.some((e) => e === "number" || e === "integer"), a = t.enum ?? (t.const === void 0 ? void 0 : [t.const]);
3281
3281
  if (!i && !a?.some((e) => typeof e == "number")) return t;
3282
3282
  let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
3283
- return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Ht : Vt).source), p) : p;
3283
+ return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Ut : Ht).source), p) : p;
3284
3284
  }
3285
- var Ya = /* @__PURE__ */ new WeakMap();
3286
- function Xa(e) {
3285
+ var Xa = /* @__PURE__ */ new WeakMap();
3286
+ function Za(e) {
3287
3287
  let t = /* @__PURE__ */ new Map();
3288
3288
  for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
3289
3289
  let n = /* @__PURE__ */ new Map();
3290
- for (let r of Ya.get(e) ?? []) {
3290
+ for (let r of Xa.get(e) ?? []) {
3291
3291
  let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
3292
3292
  if (!a || a === !0 || n.has(a)) continue;
3293
- let o = Ja(t, a, /* @__PURE__ */ new Set());
3293
+ let o = Ya(t, a, /* @__PURE__ */ new Set());
3294
3294
  o !== a && n.set(a, o);
3295
3295
  }
3296
3296
  if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
@@ -3298,12 +3298,12 @@ function Xa(e) {
3298
3298
  t && (e.propertyNames = t);
3299
3299
  }
3300
3300
  }
3301
- var Za = (e, t, n, r) => {
3301
+ var Qa = (e, t, n, r) => {
3302
3302
  let i = n, a = e._zod.def;
3303
3303
  i.type = "object";
3304
3304
  let o = a.keyType, s = o._zod.bag?.patterns;
3305
3305
  if (a.mode === "loose" && s && s.size > 0) {
3306
- let e = O(a.valueType, t, {
3306
+ let e = D(a.valueType, t, {
3307
3307
  ...r,
3308
3308
  path: [
3309
3309
  ...r.path,
@@ -3315,138 +3315,138 @@ var Za = (e, t, n, r) => {
3315
3315
  for (let t of s) l(i.patternProperties, t.source, e);
3316
3316
  } else {
3317
3317
  if (t.target === "draft-07" || t.target === "draft-2020-12") {
3318
- i.propertyNames = O(a.keyType, t, {
3318
+ i.propertyNames = D(a.keyType, t, {
3319
3319
  ...r,
3320
3320
  path: [...r.path, "propertyNames"]
3321
3321
  });
3322
- let n = Ya.get(t);
3323
- n || (n = [], Ya.set(t, n), t.deferred.push(() => Xa(t))), n.push(e);
3322
+ let n = Xa.get(t);
3323
+ n || (n = [], Xa.set(t, n), t.deferred.push(() => Za(t))), n.push(e);
3324
3324
  }
3325
- i.additionalProperties = O(a.valueType, t, {
3325
+ i.additionalProperties = D(a.valueType, t, {
3326
3326
  ...r,
3327
3327
  path: [...r.path, "additionalProperties"]
3328
3328
  });
3329
3329
  }
3330
- let c = o._zod.values, u = t.io === "input" && Ua(a.valueType) !== void 0;
3330
+ let c = o._zod.values, u = t.io === "input" && Wa(a.valueType) !== void 0;
3331
3331
  if (c && !a.partial && !u) {
3332
3332
  let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
3333
3333
  e.length > 0 && (i.required = e.map(String));
3334
3334
  }
3335
- }, Qa = (e, t, n, r) => {
3336
- let i = e._zod.def, a = O(i.innerType, t, r), o = t.seen.get(e);
3337
- t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3338
3335
  }, $a = (e, t, n, r) => {
3336
+ let i = e._zod.def, a = D(i.innerType, t, r), o = t.seen.get(e);
3337
+ t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3338
+ }, eo = (e, t, n, r) => {
3339
3339
  let i = e._zod.def;
3340
- O(i.innerType, t, r);
3340
+ D(i.innerType, t, r);
3341
3341
  let a = t.seen.get(e);
3342
3342
  a.ref = i.innerType;
3343
- }, eo = Symbol();
3344
- function to(e, t, n, r, i) {
3343
+ }, to = Symbol();
3344
+ function no(e, t, n, r, i) {
3345
3345
  let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
3346
- return a ? (D(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), eo) : JSON.parse(o);
3346
+ return a ? (E(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), to) : JSON.parse(o);
3347
3347
  }
3348
- var no = (e, t, n, r) => {
3348
+ var ro = (e, t, n, r) => {
3349
3349
  let i = e._zod.def;
3350
- O(i.innerType, t, r);
3350
+ D(i.innerType, t, r);
3351
3351
  let a = t.seen.get(e);
3352
3352
  a.ref = i.innerType;
3353
- let o = to(i.defaultValue, e, t, n, r);
3354
- o !== eo && (n.default = o);
3355
- }, ro = (e, t, n, r) => {
3353
+ let o = no(i.defaultValue, e, t, n, r);
3354
+ o !== to && (n.default = o);
3355
+ }, io = (e, t, n, r) => {
3356
3356
  let i = e._zod.def;
3357
- O(i.innerType, t, r);
3357
+ D(i.innerType, t, r);
3358
3358
  let a = t.seen.get(e);
3359
3359
  if (a.ref = i.innerType, t.io !== "input") return;
3360
- let o = to(i.defaultValue, e, t, n, r);
3361
- o !== eo && (n._prefault = o);
3362
- }, io = (e, t, n, r) => {
3360
+ let o = no(i.defaultValue, e, t, n, r);
3361
+ o !== to && (n._prefault = o);
3362
+ }, ao = (e, t, n, r) => {
3363
3363
  let i = e._zod.def;
3364
- O(i.innerType, t, r);
3364
+ D(i.innerType, t, r);
3365
3365
  let a = t.seen.get(e);
3366
3366
  a.ref = i.innerType;
3367
3367
  let o;
3368
3368
  try {
3369
3369
  o = i.catchValue(void 0);
3370
3370
  } catch {
3371
- D(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3371
+ E(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3372
3372
  return;
3373
3373
  }
3374
3374
  n.default = o;
3375
- }, ao = (e, t, n, r) => {
3375
+ }, oo = (e, t, n, r) => {
3376
3376
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
3377
- O(o, t, r);
3377
+ D(o, t, r);
3378
3378
  let s = t.seen.get(e);
3379
3379
  s.ref = o;
3380
- }, oo = (e, t, n, r) => {
3380
+ }, so = (e, t, n, r) => {
3381
3381
  let i = e._zod.def;
3382
- O(i.innerType, t, r);
3382
+ D(i.innerType, t, r);
3383
3383
  let a = t.seen.get(e);
3384
3384
  a.ref = i.innerType, n.readOnly = !0;
3385
- }, so = (e, t, n, r) => {
3385
+ }, co = (e, t, n, r) => {
3386
3386
  let i = e._zod.def;
3387
- O(i.innerType, t, r);
3387
+ D(i.innerType, t, r);
3388
3388
  let a = t.seen.get(e);
3389
3389
  a.ref = i.innerType;
3390
- }, co = (e, t, n, r) => {
3390
+ }, lo = (e, t, n, r) => {
3391
3391
  let i = e._zod.def;
3392
- O(i.innerType, t, r);
3392
+ D(i.innerType, t, r);
3393
3393
  let a = t.seen.get(e);
3394
3394
  a.ref = i.innerType;
3395
- }, lo = (e, t, n, r) => {
3395
+ }, uo = (e, t, n, r) => {
3396
3396
  let i = e._zod.innerType;
3397
- O(i, t, r);
3397
+ D(i, t, r);
3398
3398
  let a = t.seen.get(e);
3399
3399
  a.ref = i;
3400
- }, uo = {
3401
- string: ya,
3402
- number: ba,
3403
- boolean: xa,
3404
- bigint: Sa,
3405
- symbol: Ca,
3406
- null: wa,
3407
- undefined: Ta,
3408
- void: Ea,
3409
- never: Da,
3410
- any: Oa,
3411
- unknown: ka,
3412
- date: Aa,
3413
- enum: ja,
3414
- literal: Ma,
3415
- nan: Na,
3416
- template_literal: Pa,
3417
- file: Fa,
3418
- success: Ia,
3419
- custom: La,
3420
- function: Ra,
3421
- transform: za,
3422
- map: Ba,
3423
- set: Va,
3424
- array: Ha,
3425
- object: Wa,
3426
- union: Ga,
3427
- intersection: Ka,
3428
- tuple: qa,
3429
- record: Za,
3430
- nullable: Qa,
3431
- nonoptional: $a,
3432
- default: no,
3433
- prefault: ro,
3434
- catch: io,
3435
- pipe: ao,
3436
- readonly: oo,
3437
- promise: so,
3438
- optional: co,
3439
- lazy: lo
3400
+ }, fo = {
3401
+ string: ba,
3402
+ number: xa,
3403
+ boolean: Sa,
3404
+ bigint: Ca,
3405
+ symbol: wa,
3406
+ null: Ta,
3407
+ undefined: Ea,
3408
+ void: Da,
3409
+ never: Oa,
3410
+ any: ka,
3411
+ unknown: Aa,
3412
+ date: ja,
3413
+ enum: Ma,
3414
+ literal: Na,
3415
+ nan: Pa,
3416
+ template_literal: Fa,
3417
+ file: Ia,
3418
+ success: La,
3419
+ custom: Ra,
3420
+ function: za,
3421
+ transform: Ba,
3422
+ map: Va,
3423
+ set: Ha,
3424
+ array: Ua,
3425
+ object: Ga,
3426
+ union: Ka,
3427
+ intersection: qa,
3428
+ tuple: Ja,
3429
+ record: Qa,
3430
+ nullable: $a,
3431
+ nonoptional: eo,
3432
+ default: ro,
3433
+ prefault: io,
3434
+ catch: ao,
3435
+ pipe: oo,
3436
+ readonly: so,
3437
+ promise: co,
3438
+ optional: lo,
3439
+ lazy: uo
3440
3440
  };
3441
- function fo(e, t) {
3441
+ function po(e, t) {
3442
3442
  if ("_idmap" in e) {
3443
- let n = e, r = oa({
3443
+ let n = e, r = sa({
3444
3444
  ...t,
3445
- processors: uo
3445
+ processors: fo
3446
3446
  }), i = {};
3447
3447
  for (let e of n._idmap.entries()) {
3448
3448
  let [t, n] = e;
3449
- O(n, r);
3449
+ D(n, r);
3450
3450
  }
3451
3451
  let a = {};
3452
3452
  r.external = {
@@ -3456,20 +3456,20 @@ function fo(e, t) {
3456
3456
  };
3457
3457
  for (let e of n._idmap.entries()) {
3458
3458
  let [t, n] = e;
3459
- ca(r, n), l(a, t, ha(r, n));
3459
+ la(r, n), l(a, t, ga(r, n));
3460
3460
  }
3461
3461
  return Object.keys(i).length > 0 && (a.__shared = { [r.target === "draft-2020-12" ? "$defs" : "definitions"]: i }), { schemas: a };
3462
3462
  }
3463
- let n = oa({
3463
+ let n = sa({
3464
3464
  ...t,
3465
- processors: uo
3465
+ processors: fo
3466
3466
  });
3467
- return O(e, n), ca(n, e), ha(n, e);
3467
+ return D(e, n), la(n, e), ga(n, e);
3468
3468
  }
3469
3469
  //#endregion
3470
3470
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/errors.js
3471
- var po = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3472
- function mo(e, t, n) {
3471
+ var mo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3472
+ function ho(e, t, n) {
3473
3473
  Object.defineProperty(e, t, {
3474
3474
  configurable: !0,
3475
3475
  enumerable: !1,
@@ -3490,12 +3490,12 @@ function mo(e, t, n) {
3490
3490
  }
3491
3491
  });
3492
3492
  }
3493
- var ho = (e, t) => {
3494
- qe.init(e, t), e.name = "ZodError";
3493
+ var go = (e, t) => {
3494
+ Je.init(e, t), e.name = "ZodError";
3495
3495
  let r = Object.getPrototypeOf(e);
3496
- po.has(r) || (po.add(r), mo(r, "format", (e) => (t) => Ze(e, t)), mo(r, "flatten", (e) => (t) => Xe(e, t)), mo(r, "addIssue", (e) => (t) => {
3496
+ mo.has(r) || (mo.add(r), ho(r, "format", (e) => (t) => Qe(e, t)), ho(r, "flatten", (e) => (t) => Ze(e, t)), ho(r, "addIssue", (e) => (t) => {
3497
3497
  e.issues.push(t), e.message = JSON.stringify(e.issues, n, 2);
3498
- }), mo(r, "addIssues", (e) => (t) => {
3498
+ }), ho(r, "addIssues", (e) => (t) => {
3499
3499
  e.issues.push(...t), e.message = JSON.stringify(e.issues, n, 2);
3500
3500
  }), Object.defineProperty(r, "isEmpty", {
3501
3501
  configurable: !0,
@@ -3504,16 +3504,16 @@ var ho = (e, t) => {
3504
3504
  return this.issues.length === 0;
3505
3505
  }
3506
3506
  }));
3507
- }, go = /*@__PURE__*/ x("ZodError", ho), A = /*@__PURE__*/ x("ZodError", ho, void 0, { Parent: Error }), _o = /* @__PURE__ */ $e(A), vo = /* @__PURE__ */ et(A), yo = /* @__PURE__ */ tt(A), bo = /* @__PURE__ */ rt(A), xo = /* @__PURE__ */ at(A), So = /* @__PURE__ */ ot(A), Co = /* @__PURE__ */ st(A), wo = /* @__PURE__ */ ct(A), To = /* @__PURE__ */ lt(A), Eo = /* @__PURE__ */ ut(A), Do = /* @__PURE__ */ dt(A), Oo = /* @__PURE__ */ ft(A);
3507
+ }, _o = /*@__PURE__*/ b("ZodError", go), k = /*@__PURE__*/ b("ZodError", go, void 0, { Parent: Error }), vo = /* @__PURE__ */ et(k), yo = /* @__PURE__ */ tt(k), bo = /* @__PURE__ */ nt(k), xo = /* @__PURE__ */ it(k), So = /* @__PURE__ */ ot(k), Co = /* @__PURE__ */ st(k), wo = /* @__PURE__ */ ct(k), To = /* @__PURE__ */ lt(k), Eo = /* @__PURE__ */ ut(k), Do = /* @__PURE__ */ dt(k), Oo = /* @__PURE__ */ ft(k), ko = /* @__PURE__ */ pt(k);
3508
3508
  //#endregion
3509
3509
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
3510
- function ko() {
3511
- S.localeError || C(Zr());
3512
- }
3513
3510
  function Ao() {
3514
- S.memoizer || C({ memoizer: Jr() });
3511
+ x.localeError || S(Qr());
3512
+ }
3513
+ function jo() {
3514
+ x.memoizer || S({ memoizer: Yr() });
3515
3515
  }
3516
- var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.type = t.type, e), {
3516
+ var A = /*@__PURE__*/ b("ZodType", (e, t) => (Ao(), w.init(e, t), e.def = t, e.type = t.type, e), {
3517
3517
  check(...e) {
3518
3518
  let t = this.def;
3519
3519
  return this.clone(u(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -3541,7 +3541,7 @@ var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.t
3541
3541
  return this.check(Ws(e, t));
3542
3542
  },
3543
3543
  overwrite(e) {
3544
- return this.check(/* @__PURE__ */ Yi(e));
3544
+ return this.check(/* @__PURE__ */ Xi(e));
3545
3545
  },
3546
3546
  optional() {
3547
3547
  return Cs(this);
@@ -3587,12 +3587,12 @@ var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.t
3587
3587
  },
3588
3588
  describe(e) {
3589
3589
  let t = this.clone();
3590
- return ti.add(t, { description: e }), t;
3590
+ return ni.add(t, { description: e }), t;
3591
3591
  },
3592
3592
  meta(...e) {
3593
- if (e.length === 0) return ti.get(this);
3593
+ if (e.length === 0) return ni.get(this);
3594
3594
  let t = this.clone();
3595
- return ti.add(t, e[0]), t;
3595
+ return ni.add(t, e[0]), t;
3596
3596
  },
3597
3597
  isOptional() {
3598
3598
  return this.safeParse(void 0).success;
@@ -3605,358 +3605,358 @@ var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.t
3605
3605
  },
3606
3606
  get "~standard"() {
3607
3607
  return Ee(this, "~standard", {
3608
- ...mn(this),
3608
+ ...hn(this),
3609
3609
  jsonSchema: {
3610
- input: _a(this, "input"),
3611
- output: _a(this, "output")
3610
+ input: va(this, "input"),
3611
+ output: va(this, "output")
3612
3612
  }
3613
3613
  });
3614
3614
  },
3615
3615
  set "~standard"(e) {
3616
- v(this, "~standard", e);
3616
+ Te(this, "~standard", e);
3617
3617
  },
3618
3618
  parse: function e(t, n) {
3619
- return _o(this, t, n, { callee: e });
3619
+ return vo(this, t, n, { callee: e });
3620
3620
  },
3621
3621
  parseAsync: async function e(t, n) {
3622
- return await vo(this, t, n, { callee: e });
3622
+ return await yo(this, t, n, { callee: e });
3623
3623
  },
3624
3624
  safeParse(e, t) {
3625
- return yo(this, e, t);
3625
+ return bo(this, e, t);
3626
3626
  },
3627
3627
  async safeParseAsync(e, t) {
3628
- return bo(this, e, t);
3628
+ return xo(this, e, t);
3629
3629
  },
3630
3630
  get spa() {
3631
3631
  return this?.safeParseAsync;
3632
3632
  },
3633
3633
  set spa(e) {
3634
- v(this, "spa", e);
3634
+ Te(this, "spa", e);
3635
3635
  },
3636
3636
  encode: function e(t, n) {
3637
- return xo(this, t, n, { callee: e });
3637
+ return So(this, t, n, { callee: e });
3638
3638
  },
3639
3639
  decode: function e(t, n) {
3640
- return So(this, t, n, { callee: e });
3640
+ return Co(this, t, n, { callee: e });
3641
3641
  },
3642
3642
  encodeAsync: async function e(t, n) {
3643
- return await Co(this, t, n, { callee: e });
3643
+ return await wo(this, t, n, { callee: e });
3644
3644
  },
3645
3645
  decodeAsync: async function e(t, n) {
3646
- return await wo(this, t, n, { callee: e });
3646
+ return await To(this, t, n, { callee: e });
3647
3647
  },
3648
3648
  safeEncode(e, t) {
3649
- return To(this, e, t);
3649
+ return Eo(this, e, t);
3650
3650
  },
3651
3651
  safeDecode(e, t) {
3652
- return Eo(this, e, t);
3652
+ return Do(this, e, t);
3653
3653
  },
3654
3654
  async safeEncodeAsync(e, t) {
3655
- return Do(this, e, t);
3655
+ return Oo(this, e, t);
3656
3656
  },
3657
3657
  async safeDecodeAsync(e, t) {
3658
- return Oo(this, e, t);
3658
+ return ko(this, e, t);
3659
3659
  },
3660
3660
  toJSONSchema(e) {
3661
- return ga(this, {})(e);
3661
+ return _a(this, {})(e);
3662
3662
  },
3663
3663
  get description() {
3664
- return ti.get(this)?.description;
3664
+ return ni.get(this)?.description;
3665
3665
  },
3666
3666
  get _def() {
3667
3667
  return this._zod.def;
3668
3668
  }
3669
- }), jo = /*@__PURE__*/ x("_ZodString", (e, t) => {
3670
- hn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ya(e, t, n, r);
3669
+ }), Mo = /*@__PURE__*/ b("_ZodString", (e, t) => {
3670
+ gn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ba(e, t, n, r);
3671
3671
  let n = e._zod.bag;
3672
3672
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
3673
3673
  }, {
3674
3674
  regex(...e) {
3675
- return this.check(/* @__PURE__ */ Ui(...e));
3675
+ return this.check(/* @__PURE__ */ Wi(...e));
3676
3676
  },
3677
3677
  includes(...e) {
3678
- return this.check(/* @__PURE__ */ Ki(...e));
3678
+ return this.check(/* @__PURE__ */ qi(...e));
3679
3679
  },
3680
3680
  startsWith(...e) {
3681
- return this.check(/* @__PURE__ */ qi(...e));
3681
+ return this.check(/* @__PURE__ */ Ji(...e));
3682
3682
  },
3683
3683
  endsWith(...e) {
3684
- return this.check(/* @__PURE__ */ Ji(...e));
3684
+ return this.check(/* @__PURE__ */ Yi(...e));
3685
3685
  },
3686
3686
  min(...e) {
3687
- return this.check(/* @__PURE__ */ Vi(...e));
3687
+ return this.check(/* @__PURE__ */ Hi(...e));
3688
3688
  },
3689
3689
  max(...e) {
3690
- return this.check(/* @__PURE__ */ Bi(...e));
3690
+ return this.check(/* @__PURE__ */ Vi(...e));
3691
3691
  },
3692
3692
  length(...e) {
3693
- return this.check(/* @__PURE__ */ Hi(...e));
3693
+ return this.check(/* @__PURE__ */ Ui(...e));
3694
3694
  },
3695
3695
  nonempty(...e) {
3696
- return this.check(/* @__PURE__ */ Vi(1, ...e));
3696
+ return this.check(/* @__PURE__ */ Hi(1, ...e));
3697
3697
  },
3698
3698
  lowercase(e) {
3699
- return this.check(/* @__PURE__ */ Wi(e));
3699
+ return this.check(/* @__PURE__ */ Gi(e));
3700
3700
  },
3701
3701
  uppercase(e) {
3702
- return this.check(/* @__PURE__ */ Gi(e));
3702
+ return this.check(/* @__PURE__ */ Ki(e));
3703
3703
  },
3704
3704
  trim() {
3705
- return this.check(/* @__PURE__ */ Zi());
3705
+ return this.check(/* @__PURE__ */ Qi());
3706
3706
  },
3707
3707
  normalize(...e) {
3708
- return this.check(/* @__PURE__ */ Xi(...e));
3708
+ return this.check(/* @__PURE__ */ Zi(...e));
3709
3709
  },
3710
3710
  toLowerCase() {
3711
- return this.check(/* @__PURE__ */ Qi());
3711
+ return this.check(/* @__PURE__ */ $i());
3712
3712
  },
3713
3713
  toUpperCase() {
3714
- return this.check(/* @__PURE__ */ $i());
3714
+ return this.check(/* @__PURE__ */ ea());
3715
3715
  },
3716
3716
  slugify() {
3717
- return this.check(/* @__PURE__ */ ea());
3717
+ return this.check(/* @__PURE__ */ ta());
3718
3718
  }
3719
- }), Mo = /*@__PURE__*/ x("ZodString", (e, t) => {
3720
- hn.init(e, t), jo.init(e, t);
3719
+ }), No = /*@__PURE__*/ b("ZodString", (e, t) => {
3720
+ gn.init(e, t), Mo.init(e, t);
3721
3721
  }, {
3722
3722
  email(e) {
3723
- return this.check(/* @__PURE__ */ ri(Lo, e));
3723
+ return this.check(/* @__PURE__ */ ii(Ro, e));
3724
3724
  },
3725
3725
  url(e) {
3726
- return this.check(/* @__PURE__ */ li(Bo, e));
3726
+ return this.check(/* @__PURE__ */ ui(Vo, e));
3727
3727
  },
3728
3728
  jwt(e) {
3729
- return this.check(/* @__PURE__ */ wi(ts, e));
3729
+ return this.check(/* @__PURE__ */ Ti(ns, e));
3730
3730
  },
3731
3731
  emoji(e) {
3732
- return this.check(/* @__PURE__ */ ui(Vo, e));
3732
+ return this.check(/* @__PURE__ */ di(Ho, e));
3733
3733
  },
3734
3734
  guid(e) {
3735
- return this.check(/* @__PURE__ */ ii(Ro, e));
3735
+ return this.check(/* @__PURE__ */ ai(zo, e));
3736
3736
  },
3737
3737
  uuid(e) {
3738
- return this.check(/* @__PURE__ */ ai(zo, e));
3738
+ return this.check(/* @__PURE__ */ oi(Bo, e));
3739
3739
  },
3740
3740
  uuidv4(e) {
3741
- return this.check(/* @__PURE__ */ oi(zo, e));
3741
+ return this.check(/* @__PURE__ */ si(Bo, e));
3742
3742
  },
3743
3743
  uuidv6(e) {
3744
- return this.check(/* @__PURE__ */ si(zo, e));
3744
+ return this.check(/* @__PURE__ */ ci(Bo, e));
3745
3745
  },
3746
3746
  uuidv7(e) {
3747
- return this.check(/* @__PURE__ */ ci(zo, e));
3747
+ return this.check(/* @__PURE__ */ li(Bo, e));
3748
3748
  },
3749
3749
  nanoid(e) {
3750
- return this.check(/* @__PURE__ */ di(Ho, e));
3750
+ return this.check(/* @__PURE__ */ fi(Uo, e));
3751
3751
  },
3752
3752
  cuid(e) {
3753
- return this.check(/* @__PURE__ */ fi(Uo, e));
3753
+ return this.check(/* @__PURE__ */ pi(Wo, e));
3754
3754
  },
3755
3755
  cuid2(e) {
3756
- return this.check(/* @__PURE__ */ pi(Wo, e));
3756
+ return this.check(/* @__PURE__ */ mi(Go, e));
3757
3757
  },
3758
3758
  ulid(e) {
3759
- return this.check(/* @__PURE__ */ mi(Go, e));
3759
+ return this.check(/* @__PURE__ */ hi(Ko, e));
3760
3760
  },
3761
3761
  base64(e) {
3762
- return this.check(/* @__PURE__ */ xi(Qo, e));
3762
+ return this.check(/* @__PURE__ */ Si($o, e));
3763
3763
  },
3764
3764
  base64url(e) {
3765
- return this.check(/* @__PURE__ */ Si($o, e));
3765
+ return this.check(/* @__PURE__ */ Ci(es, e));
3766
3766
  },
3767
3767
  xid(e) {
3768
- return this.check(/* @__PURE__ */ hi(Ko, e));
3768
+ return this.check(/* @__PURE__ */ gi(qo, e));
3769
3769
  },
3770
3770
  ksuid(e) {
3771
- return this.check(/* @__PURE__ */ gi(qo, e));
3771
+ return this.check(/* @__PURE__ */ _i(Jo, e));
3772
3772
  },
3773
3773
  ipv4(e) {
3774
- return this.check(/* @__PURE__ */ _i(Jo, e));
3774
+ return this.check(/* @__PURE__ */ vi(Yo, e));
3775
3775
  },
3776
3776
  ipv6(e) {
3777
- return this.check(/* @__PURE__ */ vi(Yo, e));
3777
+ return this.check(/* @__PURE__ */ yi(Xo, e));
3778
3778
  },
3779
3779
  cidrv4(e) {
3780
- return this.check(/* @__PURE__ */ yi(Xo, e));
3780
+ return this.check(/* @__PURE__ */ bi(Zo, e));
3781
3781
  },
3782
3782
  cidrv6(e) {
3783
- return this.check(/* @__PURE__ */ bi(Zo, e));
3783
+ return this.check(/* @__PURE__ */ xi(Qo, e));
3784
3784
  },
3785
3785
  e164(e) {
3786
- return this.check(/* @__PURE__ */ Ci(es, e));
3786
+ return this.check(/* @__PURE__ */ wi(ts, e));
3787
3787
  },
3788
3788
  datetime(e) {
3789
- return this.check(/* @__PURE__ */ Ti(No, e));
3789
+ return this.check(/* @__PURE__ */ Ei(Po, e));
3790
3790
  },
3791
3791
  date(e) {
3792
- return this.check(/* @__PURE__ */ Ei(Po, e));
3792
+ return this.check(/* @__PURE__ */ Di(Fo, e));
3793
3793
  },
3794
3794
  time(e) {
3795
- return this.check(/* @__PURE__ */ Di(Fo, e));
3795
+ return this.check(/* @__PURE__ */ Oi(Io, e));
3796
3796
  },
3797
3797
  duration(e) {
3798
- return this.check(/* @__PURE__ */ Oi(Io, e));
3798
+ return this.check(/* @__PURE__ */ ki(Lo, e));
3799
3799
  }
3800
3800
  });
3801
- function M(e) {
3802
- return /* @__PURE__ */ ni(Mo, e);
3803
- }
3804
- var N = /*@__PURE__*/ x("ZodStringFormat", (e, t) => {
3805
- E.init(e, t), jo.init(e, t);
3806
- }), No = /*@__PURE__*/ x("ZodISODateTime", (e, t) => {
3807
- Mn.init(e, t), N.init(e, t);
3808
- }), Po = /*@__PURE__*/ x("ZodISODate", (e, t) => {
3809
- Nn.init(e, t), N.init(e, t);
3810
- }), Fo = /*@__PURE__*/ x("ZodISOTime", (e, t) => {
3811
- Pn.init(e, t), N.init(e, t);
3812
- }), Io = /*@__PURE__*/ x("ZodISODuration", (e, t) => {
3813
- Fn.init(e, t), N.init(e, t);
3814
- }), Lo = /*@__PURE__*/ x("ZodEmail", (e, t) => {
3815
- vn.init(e, t), N.init(e, t);
3816
- }), Ro = /*@__PURE__*/ x("ZodGUID", (e, t) => {
3817
- gn.init(e, t), N.init(e, t);
3818
- }), zo = /*@__PURE__*/ x("ZodUUID", (e, t) => {
3819
- _n.init(e, t), N.init(e, t);
3820
- }), Bo = /*@__PURE__*/ x("ZodURL", (e, t) => {
3821
- wn.init(e, t), N.init(e, t);
3822
- }), Vo = /*@__PURE__*/ x("ZodEmoji", (e, t) => {
3823
- Tn.init(e, t), N.init(e, t);
3824
- }), Ho = /*@__PURE__*/ x("ZodNanoID", (e, t) => {
3825
- En.init(e, t), N.init(e, t);
3826
- }), Uo = /*@__PURE__*/ x("ZodCUID", (e, t) => {
3827
- Dn.init(e, t), N.init(e, t);
3828
- }), Wo = /*@__PURE__*/ x("ZodCUID2", (e, t) => {
3829
- On.init(e, t), N.init(e, t);
3830
- }), Go = /*@__PURE__*/ x("ZodULID", (e, t) => {
3831
- kn.init(e, t), N.init(e, t);
3832
- }), Ko = /*@__PURE__*/ x("ZodXID", (e, t) => {
3833
- An.init(e, t), N.init(e, t);
3834
- }), qo = /*@__PURE__*/ x("ZodKSUID", (e, t) => {
3835
- jn.init(e, t), N.init(e, t);
3836
- }), Jo = /*@__PURE__*/ x("ZodIPv4", (e, t) => {
3837
- In.init(e, t), N.init(e, t);
3838
- }), Yo = /*@__PURE__*/ x("ZodIPv6", (e, t) => {
3839
- zn.init(e, t), N.init(e, t);
3840
- }), Xo = /*@__PURE__*/ x("ZodCIDRv4", (e, t) => {
3841
- Bn.init(e, t), N.init(e, t);
3842
- }), Zo = /*@__PURE__*/ x("ZodCIDRv6", (e, t) => {
3843
- Hn.init(e, t), N.init(e, t);
3844
- }), Qo = /*@__PURE__*/ x("ZodBase64", (e, t) => {
3845
- Wn.init(e, t), N.init(e, t);
3846
- }), $o = /*@__PURE__*/ x("ZodBase64URL", (e, t) => {
3847
- Kn.init(e, t), N.init(e, t);
3848
- }), es = /*@__PURE__*/ x("ZodE164", (e, t) => {
3849
- qn.init(e, t), N.init(e, t);
3850
- }), ts = /*@__PURE__*/ x("ZodJWT", (e, t) => {
3851
- Yn.init(e, t), N.init(e, t);
3852
- }), ns = /*@__PURE__*/ x("ZodNumber", (e, t) => {
3853
- Xn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ba(e, t, n, r);
3801
+ function j(e) {
3802
+ return /* @__PURE__ */ ri(No, e);
3803
+ }
3804
+ var M = /*@__PURE__*/ b("ZodStringFormat", (e, t) => {
3805
+ T.init(e, t), Mo.init(e, t);
3806
+ }), Po = /*@__PURE__*/ b("ZodISODateTime", (e, t) => {
3807
+ Nn.init(e, t), M.init(e, t);
3808
+ }), Fo = /*@__PURE__*/ b("ZodISODate", (e, t) => {
3809
+ Pn.init(e, t), M.init(e, t);
3810
+ }), Io = /*@__PURE__*/ b("ZodISOTime", (e, t) => {
3811
+ Fn.init(e, t), M.init(e, t);
3812
+ }), Lo = /*@__PURE__*/ b("ZodISODuration", (e, t) => {
3813
+ In.init(e, t), M.init(e, t);
3814
+ }), Ro = /*@__PURE__*/ b("ZodEmail", (e, t) => {
3815
+ yn.init(e, t), M.init(e, t);
3816
+ }), zo = /*@__PURE__*/ b("ZodGUID", (e, t) => {
3817
+ _n.init(e, t), M.init(e, t);
3818
+ }), Bo = /*@__PURE__*/ b("ZodUUID", (e, t) => {
3819
+ vn.init(e, t), M.init(e, t);
3820
+ }), Vo = /*@__PURE__*/ b("ZodURL", (e, t) => {
3821
+ Tn.init(e, t), M.init(e, t);
3822
+ }), Ho = /*@__PURE__*/ b("ZodEmoji", (e, t) => {
3823
+ En.init(e, t), M.init(e, t);
3824
+ }), Uo = /*@__PURE__*/ b("ZodNanoID", (e, t) => {
3825
+ Dn.init(e, t), M.init(e, t);
3826
+ }), Wo = /*@__PURE__*/ b("ZodCUID", (e, t) => {
3827
+ On.init(e, t), M.init(e, t);
3828
+ }), Go = /*@__PURE__*/ b("ZodCUID2", (e, t) => {
3829
+ kn.init(e, t), M.init(e, t);
3830
+ }), Ko = /*@__PURE__*/ b("ZodULID", (e, t) => {
3831
+ An.init(e, t), M.init(e, t);
3832
+ }), qo = /*@__PURE__*/ b("ZodXID", (e, t) => {
3833
+ jn.init(e, t), M.init(e, t);
3834
+ }), Jo = /*@__PURE__*/ b("ZodKSUID", (e, t) => {
3835
+ Mn.init(e, t), M.init(e, t);
3836
+ }), Yo = /*@__PURE__*/ b("ZodIPv4", (e, t) => {
3837
+ Ln.init(e, t), M.init(e, t);
3838
+ }), Xo = /*@__PURE__*/ b("ZodIPv6", (e, t) => {
3839
+ Bn.init(e, t), M.init(e, t);
3840
+ }), Zo = /*@__PURE__*/ b("ZodCIDRv4", (e, t) => {
3841
+ Vn.init(e, t), M.init(e, t);
3842
+ }), Qo = /*@__PURE__*/ b("ZodCIDRv6", (e, t) => {
3843
+ Un.init(e, t), M.init(e, t);
3844
+ }), $o = /*@__PURE__*/ b("ZodBase64", (e, t) => {
3845
+ Gn.init(e, t), M.init(e, t);
3846
+ }), es = /*@__PURE__*/ b("ZodBase64URL", (e, t) => {
3847
+ qn.init(e, t), M.init(e, t);
3848
+ }), ts = /*@__PURE__*/ b("ZodE164", (e, t) => {
3849
+ Jn.init(e, t), M.init(e, t);
3850
+ }), ns = /*@__PURE__*/ b("ZodJWT", (e, t) => {
3851
+ Xn.init(e, t), M.init(e, t);
3852
+ }), rs = /*@__PURE__*/ b("ZodNumber", (e, t) => {
3853
+ Zn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => xa(e, t, n, r);
3854
3854
  let n = e._zod.bag;
3855
3855
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3856
3856
  }, {
3857
3857
  gt(e, t) {
3858
- return this.check(/* @__PURE__ */ Li(e, t));
3858
+ return this.check(/* @__PURE__ */ Ri(e, t));
3859
3859
  },
3860
3860
  gte(e, t) {
3861
- return this.check(/* @__PURE__ */ Ri(e, t));
3861
+ return this.check(/* @__PURE__ */ zi(e, t));
3862
3862
  },
3863
3863
  min(e, t) {
3864
- return this.check(/* @__PURE__ */ Ri(e, t));
3864
+ return this.check(/* @__PURE__ */ zi(e, t));
3865
3865
  },
3866
3866
  lt(e, t) {
3867
- return this.check(/* @__PURE__ */ Fi(e, t));
3867
+ return this.check(/* @__PURE__ */ Ii(e, t));
3868
3868
  },
3869
3869
  lte(e, t) {
3870
- return this.check(/* @__PURE__ */ Ii(e, t));
3870
+ return this.check(/* @__PURE__ */ Li(e, t));
3871
3871
  },
3872
3872
  max(e, t) {
3873
- return this.check(/* @__PURE__ */ Ii(e, t));
3873
+ return this.check(/* @__PURE__ */ Li(e, t));
3874
3874
  },
3875
3875
  int(e) {
3876
- return this.check(is(e));
3876
+ return this.check(P(e));
3877
3877
  },
3878
3878
  safe(e) {
3879
- return this.check(is(e));
3879
+ return this.check(P(e));
3880
3880
  },
3881
3881
  positive(e) {
3882
- return this.check(/* @__PURE__ */ Li(0, e));
3882
+ return this.check(/* @__PURE__ */ Ri(0, e));
3883
3883
  },
3884
3884
  nonnegative(e) {
3885
- return this.check(/* @__PURE__ */ Ri(0, e));
3885
+ return this.check(/* @__PURE__ */ zi(0, e));
3886
3886
  },
3887
3887
  negative(e) {
3888
- return this.check(/* @__PURE__ */ Fi(0, e));
3888
+ return this.check(/* @__PURE__ */ Ii(0, e));
3889
3889
  },
3890
3890
  nonpositive(e) {
3891
- return this.check(/* @__PURE__ */ Ii(0, e));
3891
+ return this.check(/* @__PURE__ */ Li(0, e));
3892
3892
  },
3893
3893
  multipleOf(e, t) {
3894
- return this.check(/* @__PURE__ */ zi(e, t));
3894
+ return this.check(/* @__PURE__ */ Bi(e, t));
3895
3895
  },
3896
3896
  step(e, t) {
3897
- return this.check(/* @__PURE__ */ zi(e, t));
3897
+ return this.check(/* @__PURE__ */ Bi(e, t));
3898
3898
  },
3899
3899
  finite() {
3900
3900
  return this;
3901
3901
  }
3902
3902
  });
3903
- function P(e) {
3904
- return /* @__PURE__ */ ki(ns, e);
3903
+ function N(e) {
3904
+ return /* @__PURE__ */ Ai(rs, e);
3905
3905
  }
3906
- var rs = /*@__PURE__*/ x("ZodNumberFormat", (e, t) => {
3907
- Zn.init(e, t), ns.init(e, t);
3906
+ var is = /*@__PURE__*/ b("ZodNumberFormat", (e, t) => {
3907
+ Qn.init(e, t), rs.init(e, t);
3908
3908
  });
3909
- function is(e) {
3910
- return /* @__PURE__ */ Ai(rs, e);
3909
+ function P(e) {
3910
+ return /* @__PURE__ */ ji(is, e);
3911
3911
  }
3912
- var as = /*@__PURE__*/ x("ZodBoolean", (e, t) => {
3913
- Qn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => xa(e, t, n, r);
3912
+ var as = /*@__PURE__*/ b("ZodBoolean", (e, t) => {
3913
+ $n.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sa(e, t, n, r);
3914
3914
  });
3915
3915
  function F(e) {
3916
- return /* @__PURE__ */ ji(as, e);
3916
+ return /* @__PURE__ */ Mi(as, e);
3917
3917
  }
3918
- var os = /*@__PURE__*/ x("ZodNull", (e, t) => {
3919
- $n.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => wa(e, t, n, r);
3918
+ var os = /*@__PURE__*/ b("ZodNull", (e, t) => {
3919
+ er.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ta(e, t, n, r);
3920
3920
  });
3921
3921
  function ss(e) {
3922
- return /* @__PURE__ */ Mi(os, e);
3922
+ return /* @__PURE__ */ Ni(os, e);
3923
3923
  }
3924
- var cs = /*@__PURE__*/ x("ZodUnknown", (e, t) => {
3925
- er.init(e, t), j.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3924
+ var cs = /*@__PURE__*/ b("ZodUnknown", (e, t) => {
3925
+ tr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3926
3926
  });
3927
3927
  function ls() {
3928
- return /* @__PURE__ */ Ni(cs);
3928
+ return /* @__PURE__ */ Pi(cs);
3929
3929
  }
3930
- var us = /*@__PURE__*/ x("ZodNever", (e, t) => {
3931
- tr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Da(e, t, n, r);
3930
+ var us = /*@__PURE__*/ b("ZodNever", (e, t) => {
3931
+ nr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oa(e, t, n, r);
3932
3932
  });
3933
3933
  function ds(e) {
3934
- return /* @__PURE__ */ Pi(us, e);
3934
+ return /* @__PURE__ */ Fi(us, e);
3935
3935
  }
3936
- var fs = /*@__PURE__*/ x("ZodArray", (e, t) => {
3937
- Ao(), rr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r), e.element = t.element;
3936
+ var fs = /*@__PURE__*/ b("ZodArray", (e, t) => {
3937
+ jo(), ir.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ua(e, t, n, r), e.element = t.element;
3938
3938
  }, {
3939
3939
  min(e, t) {
3940
- return this.check(/* @__PURE__ */ Vi(e, t));
3940
+ return this.check(/* @__PURE__ */ Hi(e, t));
3941
3941
  },
3942
3942
  nonempty(e) {
3943
- return this.check(/* @__PURE__ */ Vi(1, e));
3943
+ return this.check(/* @__PURE__ */ Hi(1, e));
3944
3944
  },
3945
3945
  max(e, t) {
3946
- return this.check(/* @__PURE__ */ Bi(e, t));
3946
+ return this.check(/* @__PURE__ */ Vi(e, t));
3947
3947
  },
3948
3948
  length(e, t) {
3949
- return this.check(/* @__PURE__ */ Hi(e, t));
3949
+ return this.check(/* @__PURE__ */ Ui(e, t));
3950
3950
  },
3951
3951
  unwrap() {
3952
3952
  return this.element;
3953
3953
  }
3954
3954
  });
3955
3955
  function I(e, t) {
3956
- return /* @__PURE__ */ ta(fs, e, t);
3956
+ return /* @__PURE__ */ na(fs, e, t);
3957
3957
  }
3958
- var ps = /*@__PURE__*/ x("ZodObject", (e, t) => {
3959
- Ao(), ur.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wa(e, t, n, r), je(e, "shape", (e) => e._zod.def.shape, !1);
3958
+ var ps = /*@__PURE__*/ b("ZodObject", (e, t) => {
3959
+ jo(), dr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), Me(e, "shape", (e) => e._zod.def.shape, !1);
3960
3960
  }, {
3961
3961
  keyof() {
3962
3962
  return V(Object.keys(this._zod.def.shape));
@@ -4031,8 +4031,8 @@ function R(e, t) {
4031
4031
  ...g(t)
4032
4032
  });
4033
4033
  }
4034
- var ms = /*@__PURE__*/ x("ZodUnion", (e, t) => {
4035
- fr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), e.options = t.options;
4034
+ var ms = /*@__PURE__*/ b("ZodUnion", (e, t) => {
4035
+ pr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.options = t.options;
4036
4036
  });
4037
4037
  function z(e, t) {
4038
4038
  return new ms({
@@ -4041,8 +4041,8 @@ function z(e, t) {
4041
4041
  ...g(t)
4042
4042
  });
4043
4043
  }
4044
- var hs = /*@__PURE__*/ x("ZodIntersection", (e, t) => {
4045
- pr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r);
4044
+ var hs = /*@__PURE__*/ b("ZodIntersection", (e, t) => {
4045
+ mr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r);
4046
4046
  });
4047
4047
  function gs(e, t) {
4048
4048
  return new hs({
@@ -4051,13 +4051,13 @@ function gs(e, t) {
4051
4051
  right: t
4052
4052
  });
4053
4053
  }
4054
- var _s = /*@__PURE__*/ x("ZodRecord", (e, t) => {
4055
- Ao(), gr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Za(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4054
+ var _s = /*@__PURE__*/ b("ZodRecord", (e, t) => {
4055
+ jo(), _r.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4056
4056
  });
4057
4057
  function B(e, t, n) {
4058
4058
  return !t || !t._zod ? new _s({
4059
4059
  type: "record",
4060
- keyType: M(),
4060
+ keyType: j(),
4061
4061
  valueType: e,
4062
4062
  ...g(t)
4063
4063
  }) : new _s({
@@ -4067,8 +4067,8 @@ function B(e, t, n) {
4067
4067
  ...g(n)
4068
4068
  });
4069
4069
  }
4070
- var vs = /*@__PURE__*/ x("ZodEnum", (e, t) => {
4071
- _r.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4070
+ var vs = /*@__PURE__*/ b("ZodEnum", (e, t) => {
4071
+ vr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4072
4072
  let n = new Set(Object.keys(t.entries));
4073
4073
  e.extract = (e, r) => {
4074
4074
  let i = {};
@@ -4099,8 +4099,8 @@ function V(e, t) {
4099
4099
  ...g(t)
4100
4100
  });
4101
4101
  }
4102
- var ys = /*@__PURE__*/ x("ZodLiteral", (e, t) => {
4103
- vr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4102
+ var ys = /*@__PURE__*/ b("ZodLiteral", (e, t) => {
4103
+ yr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4104
4104
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
4105
4105
  return t.values[0];
4106
4106
  } });
@@ -4112,14 +4112,14 @@ function H(e, t) {
4112
4112
  ...g(t)
4113
4113
  });
4114
4114
  }
4115
- var bs = /*@__PURE__*/ x("ZodTransform", (e, t) => {
4116
- Ao(), yr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => za(e, t, n, r), e._zod.parse = (n, r) => {
4117
- if (r.direction === "backward") throw new ze(e.constructor.name);
4115
+ var bs = /*@__PURE__*/ b("ZodTransform", (e, t) => {
4116
+ jo(), br.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r), e._zod.parse = (n, r) => {
4117
+ if (r.direction === "backward") throw new Be(e.constructor.name);
4118
4118
  n.addIssue = (r) => {
4119
- if (typeof r == "string") n.issues.push(we(r, n.value, t));
4119
+ if (typeof r == "string") n.issues.push(Ce(r, n.value, t));
4120
4120
  else {
4121
4121
  let t = r;
4122
- t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(we(t));
4122
+ t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(Ce(t));
4123
4123
  }
4124
4124
  };
4125
4125
  let i = t.transform(n.value, n);
@@ -4132,8 +4132,8 @@ function xs(e) {
4132
4132
  transform: e
4133
4133
  });
4134
4134
  }
4135
- var Ss = /*@__PURE__*/ x("ZodOptional", (e, t) => {
4136
- xr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4135
+ var Ss = /*@__PURE__*/ b("ZodOptional", (e, t) => {
4136
+ Sr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4137
4137
  });
4138
4138
  function Cs(e) {
4139
4139
  return new Ss({
@@ -4141,8 +4141,8 @@ function Cs(e) {
4141
4141
  innerType: e
4142
4142
  });
4143
4143
  }
4144
- var ws = /*@__PURE__*/ x("ZodExactOptional", (e, t) => {
4145
- Sr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4144
+ var ws = /*@__PURE__*/ b("ZodExactOptional", (e, t) => {
4145
+ Cr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4146
4146
  });
4147
4147
  function Ts(e) {
4148
4148
  return new ws({
@@ -4150,8 +4150,8 @@ function Ts(e) {
4150
4150
  innerType: e
4151
4151
  });
4152
4152
  }
4153
- var Es = /*@__PURE__*/ x("ZodNullable", (e, t) => {
4154
- Cr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4153
+ var Es = /*@__PURE__*/ b("ZodNullable", (e, t) => {
4154
+ wr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => $a(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4155
4155
  });
4156
4156
  function Ds(e) {
4157
4157
  return new Es({
@@ -4159,8 +4159,8 @@ function Ds(e) {
4159
4159
  innerType: e
4160
4160
  });
4161
4161
  }
4162
- var Os = /*@__PURE__*/ x("ZodDefault", (e, t) => {
4163
- wr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4162
+ var Os = /*@__PURE__*/ b("ZodDefault", (e, t) => {
4163
+ Tr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4164
4164
  });
4165
4165
  function ks(e, t) {
4166
4166
  return new Os({
@@ -4171,8 +4171,8 @@ function ks(e, t) {
4171
4171
  }
4172
4172
  });
4173
4173
  }
4174
- var As = /*@__PURE__*/ x("ZodPrefault", (e, t) => {
4175
- Er.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4174
+ var As = /*@__PURE__*/ b("ZodPrefault", (e, t) => {
4175
+ Dr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => io(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4176
4176
  });
4177
4177
  function js(e, t) {
4178
4178
  return new As({
@@ -4183,8 +4183,8 @@ function js(e, t) {
4183
4183
  }
4184
4184
  });
4185
4185
  }
4186
- var Ms = /*@__PURE__*/ x("ZodNonOptional", (e, t) => {
4187
- Dr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => $a(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4186
+ var Ms = /*@__PURE__*/ b("ZodNonOptional", (e, t) => {
4187
+ Or.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => eo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4188
4188
  });
4189
4189
  function Ns(e, t) {
4190
4190
  return new Ms({
@@ -4193,18 +4193,18 @@ function Ns(e, t) {
4193
4193
  ...g(t)
4194
4194
  });
4195
4195
  }
4196
- var Ps = /*@__PURE__*/ x("ZodCatch", (e, t) => {
4197
- Ar.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => io(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4196
+ var Ps = /*@__PURE__*/ b("ZodCatch", (e, t) => {
4197
+ jr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ao(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4198
4198
  });
4199
4199
  function Fs(e, t) {
4200
4200
  return new Ps({
4201
4201
  type: "catch",
4202
4202
  innerType: e,
4203
- catchValue: typeof t == "function" ? t : Ne(t)
4203
+ catchValue: typeof t == "function" ? t : Pe(t)
4204
4204
  });
4205
4205
  }
4206
- var Is = /*@__PURE__*/ x("ZodPipe", (e, t) => {
4207
- jr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ao(e, t, n, r), e.in = t.in, e.out = t.out;
4206
+ var Is = /*@__PURE__*/ b("ZodPipe", (e, t) => {
4207
+ Mr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => oo(e, t, n, r), e.in = t.in, e.out = t.out;
4208
4208
  });
4209
4209
  function Ls(e, t) {
4210
4210
  return new Is({
@@ -4213,8 +4213,8 @@ function Ls(e, t) {
4213
4213
  out: t
4214
4214
  });
4215
4215
  }
4216
- var Rs = /*@__PURE__*/ x("ZodReadonly", (e, t) => {
4217
- Nr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => oo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4216
+ var Rs = /*@__PURE__*/ b("ZodReadonly", (e, t) => {
4217
+ Pr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => so(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4218
4218
  });
4219
4219
  function zs(e) {
4220
4220
  return new Rs({
@@ -4222,8 +4222,8 @@ function zs(e) {
4222
4222
  innerType: e
4223
4223
  });
4224
4224
  }
4225
- var Bs = /*@__PURE__*/ x("ZodLazy", (e, t) => {
4226
- Fr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4225
+ var Bs = /*@__PURE__*/ b("ZodLazy", (e, t) => {
4226
+ Ir.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => uo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4227
4227
  });
4228
4228
  function Vs(e) {
4229
4229
  return new Bs({
@@ -4231,39 +4231,47 @@ function Vs(e) {
4231
4231
  getter: e
4232
4232
  });
4233
4233
  }
4234
- var Hs = /*@__PURE__*/ x("ZodCustom", (e, t) => {
4235
- Ir.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r);
4234
+ var Hs = /*@__PURE__*/ b("ZodCustom", (e, t) => {
4235
+ Lr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r);
4236
4236
  });
4237
4237
  function Us(e, t = {}) {
4238
- return /* @__PURE__ */ na(Hs, e, t);
4238
+ return /* @__PURE__ */ ra(Hs, e, t);
4239
4239
  }
4240
4240
  function Ws(e, t) {
4241
- return /* @__PURE__ */ ra(e, t);
4241
+ return /* @__PURE__ */ ia(e, t);
4242
4242
  }
4243
4243
  function Gs(e) {
4244
4244
  let t = Vs(() => z([
4245
- M(e),
4246
- P(),
4245
+ j(e),
4246
+ N(),
4247
4247
  F(),
4248
4248
  ss(),
4249
4249
  I(t),
4250
- B(M(), t)
4250
+ B(j(), t)
4251
4251
  ]));
4252
4252
  return t;
4253
4253
  }
4254
4254
  //#endregion
4255
4255
  //#region src/execution/common/wait.ts
4256
- var Ks = M().trim().refine((e) => [...e].length <= 2e3, "Wait comment must contain at most 2,000 Unicode code points.").nullable().optional();
4257
- function qs(e, t = 0) {
4256
+ var Ks = j().trim().refine((e) => [...e].length <= 2e3, "Wait comment must contain at most 2,000 Unicode code points.").nullable().optional();
4257
+ //#endregion
4258
+ //#region src/flow/common/inputValue.ts
4259
+ function qs(e) {
4260
+ return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
4261
+ kind: "value",
4262
+ value: t
4263
+ }]));
4264
+ }
4265
+ function Js(e, t = 0) {
4258
4266
  if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
4259
- if (typeof e == "object" && e) for (let n of Object.values(e)) qs(n, t + 1);
4267
+ if (typeof e == "object" && e) for (let n of Object.values(e)) Js(n, t + 1);
4260
4268
  }
4261
4269
  //#endregion
4262
4270
  //#region src/flow/common/triggerScheduleSchema.ts
4263
- var Js = I(z([L({
4271
+ var Ys = I(z([L({
4264
4272
  type: H("cron"),
4265
- expression: M(),
4266
- timezone: M()
4273
+ expression: j(),
4274
+ timezone: j()
4267
4275
  }), L({
4268
4276
  type: H("every"),
4269
4277
  unit: V([
@@ -4273,59 +4281,68 @@ var Js = I(z([L({
4273
4281
  "month",
4274
4282
  "week"
4275
4283
  ]),
4276
- value: P()
4277
- })])), U = M(), W = Gs(), Ys = I(U), Xs = L({
4284
+ value: N()
4285
+ })])), U = j(), W = Gs(), Xs = I(U), Zs = L({
4278
4286
  description: U.optional(),
4279
4287
  jsonSchema: W,
4280
4288
  nullable: F(),
4281
4289
  handle: U
4282
- }), G = Xs.extend({ value: W.optional() }), Zs = L({
4290
+ }), G = Zs.extend({ value: W.optional() }), Qs = L({
4283
4291
  collapsed: F().optional(),
4284
4292
  group: U
4285
- }), Qs = L({
4293
+ }), $s = L({
4286
4294
  kind: H("node"),
4287
4295
  nodeId: U,
4288
- output: U
4289
- }), $s = L({
4296
+ output: U,
4297
+ field: U.optional()
4298
+ }), ec = L({
4290
4299
  kind: H("flow"),
4291
4300
  input: U
4292
- }), ec = z([
4293
- Qs,
4301
+ }), tc = z([
4294
4302
  $s,
4303
+ ec,
4295
4304
  L({
4296
4305
  kind: H("binding"),
4297
4306
  bindingId: U
4298
4307
  })
4299
- ]), tc = z([L({
4308
+ ]), nc = z([L({ kind: H("unset") }), L({
4300
4309
  kind: H("value"),
4301
4310
  value: W
4302
- }), L({
4311
+ })]), rc = z([nc, L({
4303
4312
  kind: H("sources"),
4304
- sources: I(ec)
4305
- })]), nc = B(U, tc), rc = {
4306
- inputs: I(z([G, Zs])),
4307
- outputs: I(z([Xs, Zs]))
4308
- }, ic = L({
4313
+ sources: I(tc)
4314
+ })]), ic = B(U, rc), ac = {
4315
+ inputs: I(z([G, Qs])),
4316
+ outputs: I(z([Zs, Qs]))
4317
+ }, oc = z([R({
4309
4318
  kind: H("connector"),
4310
4319
  action: U,
4311
4320
  connectionId: U.optional(),
4312
- connections: I(L({
4321
+ connections: I(R({
4313
4322
  connectionId: U,
4314
4323
  alias: U.optional()
4315
4324
  }))
4316
- }), ac = L({
4317
- ...rc,
4325
+ }), R({
4326
+ kind: H("connector"),
4327
+ actionHints: I(U).optional(),
4328
+ connectionHints: I(R({
4329
+ action: U,
4330
+ connectionId: U,
4331
+ alias: U.optional()
4332
+ })).optional()
4333
+ })]), sc = L({
4334
+ ...ac,
4318
4335
  name: U,
4319
4336
  moduleId: U,
4320
- capabilities: I(ic).optional()
4321
- }), oc = z([L({
4337
+ capabilities: I(oc).optional()
4338
+ }), cc = z([L({
4322
4339
  kind: H("value"),
4323
4340
  value: W
4324
4341
  }), L({
4325
4342
  kind: H("input"),
4326
4343
  input: U
4327
- })]), sc = z([oc, L({ kind: H("model") })]), cc = L({
4328
- ...rc,
4344
+ })]), lc = z([cc, L({ kind: H("model") })]), uc = L({
4345
+ ...ac,
4329
4346
  name: U,
4330
4347
  executor: z([
4331
4348
  L({
@@ -4341,9 +4358,9 @@ var Js = I(z([L({
4341
4358
  kind: H("agent"),
4342
4359
  code: F().optional(),
4343
4360
  model: U,
4344
- prompt: oc,
4361
+ prompt: cc,
4345
4362
  system: U,
4346
- maxRounds: P(),
4363
+ maxRounds: N(),
4347
4364
  tools: I(L({
4348
4365
  id: U,
4349
4366
  name: U,
@@ -4351,22 +4368,29 @@ var Js = I(z([L({
4351
4368
  action: U,
4352
4369
  connectionId: U.optional(),
4353
4370
  approval: F(),
4354
- inputs: I(G.extend({ source: sc }))
4371
+ inputs: I(G.extend({ source: lc }))
4355
4372
  })),
4356
4373
  notification: L({
4357
4374
  taskId: U,
4358
4375
  messageHandle: U,
4359
- inputs: B(U, oc)
4376
+ inputs: B(U, cc)
4360
4377
  }).optional()
4361
4378
  })
4362
4379
  ])
4363
- }), lc = {
4364
- input: G,
4380
+ }), dc = z([L({
4381
+ kind: H("value"),
4382
+ value: W.optional(),
4383
+ jsonSchema: W.optional()
4384
+ }), L({
4385
+ kind: H("source"),
4386
+ source: tc
4387
+ })]), fc = {
4388
+ matchMode: V(["first", "all"]),
4365
4389
  cases: I(L({
4390
+ description: U.optional(),
4366
4391
  output: U,
4367
- relation: V(["all", "any"]),
4368
- expressions: I(L({
4369
- input: U,
4392
+ groups: I(L({ expressions: I(L({
4393
+ left: dc,
4370
4394
  operator: V([
4371
4395
  "!=",
4372
4396
  "<",
@@ -4389,33 +4413,32 @@ var Js = I(z([L({
4389
4413
  "notHasValue",
4390
4414
  "startsWith"
4391
4415
  ]),
4392
- value: W.optional()
4393
- }))
4394
- })),
4395
- defaultOutput: U.optional()
4396
- }, uc = {
4416
+ right: dc.optional()
4417
+ })) }))
4418
+ }))
4419
+ }, pc = {
4397
4420
  inputDefinitions: I(G),
4398
4421
  prompt: U
4399
- }, dc = {
4422
+ }, mc = {
4400
4423
  bodyFields: I(G),
4401
4424
  options: L({
4402
- allowedMethods: Ys.optional(),
4403
- allowedOrigins: Ys.optional(),
4425
+ allowedMethods: Xs.optional(),
4426
+ allowedOrigins: Xs.optional(),
4404
4427
  noResponseBody: F().optional(),
4405
4428
  responseData: U.optional(),
4406
4429
  responseHeaders: B(U, U).optional(),
4407
- responseStatusCode: P().optional()
4430
+ responseStatusCode: N().optional()
4408
4431
  }).optional()
4409
- }, fc = {
4410
- configSchema: W,
4432
+ }, hc = {
4433
+ configInputs: ac.inputs,
4411
4434
  definitionVersion: H(2),
4412
4435
  description: U,
4413
4436
  displayName: U,
4414
4437
  key: U,
4415
4438
  name: U,
4416
- outputs: I(Xs).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4439
+ outputs: I(Zs).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4417
4440
  provider: U
4418
- }, pc = L({
4441
+ }, gc = L({
4419
4442
  body: L({
4420
4443
  allowArray: F(),
4421
4444
  allowEmpty: F(),
@@ -4434,23 +4457,24 @@ var Js = I(z([L({
4434
4457
  "POST",
4435
4458
  "PUT"
4436
4459
  ])),
4437
- successStatus: P()
4438
- }), mc = {
4460
+ successStatus: N()
4461
+ }), _c = {
4439
4462
  name: U,
4440
4463
  description: U.optional(),
4441
4464
  icon: U.optional()
4442
4465
  }, K = {
4443
- maxExecutions: P().int().positive().max(2 ** 53 - 1).optional(),
4444
- inputs: nc,
4466
+ maxExecutions: N().int().positive().max(2 ** 53 - 1).optional(),
4467
+ inputs: ic,
4445
4468
  name: U.optional(),
4446
4469
  description: U.optional(),
4447
4470
  icon: U.optional(),
4448
- timeoutMs: P().optional()
4449
- }, hc = z([
4471
+ timeoutMs: N().optional()
4472
+ }, vc = z([
4450
4473
  L({
4451
4474
  ...K,
4475
+ inputs: B(U, ds()),
4452
4476
  kind: H("condition"),
4453
- ...lc
4477
+ ...fc
4454
4478
  }),
4455
4479
  L({
4456
4480
  ...K,
@@ -4466,7 +4490,7 @@ var Js = I(z([L({
4466
4490
  L({
4467
4491
  ...K,
4468
4492
  kind: H("task"),
4469
- task: ac,
4493
+ task: sc,
4470
4494
  additionalInputs: I(G).optional()
4471
4495
  }),
4472
4496
  L({
@@ -4478,91 +4502,91 @@ var Js = I(z([L({
4478
4502
  R({
4479
4503
  ...K,
4480
4504
  kind: H("approval"),
4481
- ...uc
4505
+ ...pc
4482
4506
  }).omit({ timeoutMs: !0 }),
4483
4507
  R({
4484
4508
  ...K,
4485
4509
  kind: H("wait"),
4486
- ...uc
4510
+ ...pc
4487
4511
  }).omit({ timeoutMs: !0 }),
4488
4512
  L({
4489
- ...mc,
4513
+ ..._c,
4490
4514
  kind: H("manual")
4491
4515
  }),
4492
4516
  L({
4493
- ...mc,
4517
+ ..._c,
4494
4518
  kind: H("webhook"),
4495
- ...dc
4519
+ ...mc
4496
4520
  }),
4497
4521
  L({
4498
- ...mc,
4522
+ ..._c,
4499
4523
  kind: H("cron"),
4500
- cronTimes: Js
4524
+ cronTimes: Ys
4501
4525
  }),
4502
4526
  L({
4503
- ...mc,
4527
+ ..._c,
4504
4528
  kind: H("poll"),
4505
4529
  bindingId: U,
4506
- config: B(U, W),
4530
+ config: B(U, nc),
4507
4531
  definition: L({
4508
- ...fc,
4532
+ ...hc,
4509
4533
  type: H("poll")
4510
4534
  }),
4511
- pollTimes: Js
4535
+ pollTimes: Ys
4512
4536
  }),
4513
4537
  L({
4514
- ...mc,
4538
+ ..._c,
4515
4539
  kind: H("integration"),
4516
4540
  bindingId: U,
4517
- config: B(U, W),
4541
+ config: B(U, nc),
4518
4542
  definition: L({
4519
- ...fc,
4543
+ ...hc,
4520
4544
  type: H("integration"),
4521
- endpoint: pc
4545
+ endpoint: gc
4522
4546
  })
4523
4547
  })
4524
- ]), gc = z([L({ kind: H("flow") }), L({
4548
+ ]), yc = z([L({ kind: H("flow") }), L({
4525
4549
  kind: H("subflow"),
4526
4550
  id: U
4527
- })]), _c = L({
4551
+ })]), bc = L({
4528
4552
  source: U,
4529
4553
  target: U,
4530
4554
  sourceHandle: U.optional()
4531
4555
  }), q = {
4532
4556
  nodeId: U,
4533
- target: gc
4534
- }, vc = L({
4557
+ target: yc
4558
+ }, xc = L({
4535
4559
  name: U,
4536
4560
  inputs: I(G),
4537
- outputs: I(Xs.extend({ sources: I(z([Qs, $s])) }))
4538
- }), yc = L({
4539
- nodes: B(U, hc),
4540
- edges: I(_c).default([])
4541
- }), bc = L({
4561
+ outputs: I(Zs.extend({ sources: I(z([$s, ec])) }))
4562
+ }), Sc = L({
4563
+ nodes: B(U, vc),
4564
+ edges: I(bc).default([])
4565
+ }), Cc = L({
4542
4566
  kind: V(["connection", "variable"]),
4543
4567
  target: U
4544
- }), xc = L({
4568
+ }), wc = L({
4545
4569
  name: U,
4546
- imports: Ys,
4570
+ imports: Xs,
4547
4571
  source: U
4548
- }), Sc = L({
4549
- bindings: B(U, bc),
4550
- graph: yc,
4551
- subflows: B(U, vc.extend({ graph: yc })),
4552
- tasks: B(U, cc)
4572
+ }), Tc = L({
4573
+ bindings: B(U, Cc),
4574
+ graph: Sc,
4575
+ subflows: B(U, xc.extend({ graph: Sc })),
4576
+ tasks: B(U, uc)
4553
4577
  });
4554
4578
  L({
4555
4579
  modelVersion: z([H(2), H(3)]),
4556
- document: Sc,
4557
- modules: B(U, xc)
4580
+ document: Tc,
4581
+ modules: B(U, wc)
4558
4582
  }).extend({
4559
4583
  kind: H("open-flow-flow-revision"),
4560
4584
  version: H(1)
4561
4585
  });
4562
- var Cc = {
4586
+ var Ec = {
4563
4587
  "binding.create": {
4564
4588
  bindingId: U,
4565
- binding: bc
4589
+ binding: Cc
4566
4590
  },
4567
4591
  "binding.delete": { bindingId: U },
4568
4592
  "binding.target.set": {
@@ -4571,16 +4595,16 @@ var Cc = {
4571
4595
  value: U
4572
4596
  },
4573
4597
  "graph.edge.connect": {
4574
- target: gc,
4575
- edge: _c
4598
+ target: yc,
4599
+ edge: bc
4576
4600
  },
4577
4601
  "graph.edge.disconnect": {
4578
- target: gc,
4579
- edge: _c
4602
+ target: yc,
4603
+ edge: bc
4580
4604
  },
4581
4605
  "graph.node.create": {
4582
4606
  ...q,
4583
- node: hc
4607
+ node: vc
4584
4608
  },
4585
4609
  "graph.node.delete": q,
4586
4610
  "graph.node.field.set": z([
@@ -4599,22 +4623,22 @@ var Cc = {
4599
4623
  ...q,
4600
4624
  kind: H("graph.node.field.set"),
4601
4625
  field: H("maxExecutions"),
4602
- before: P().int().positive().max(2 ** 53 - 1).optional(),
4603
- value: P().int().positive().max(2 ** 53 - 1).optional()
4626
+ before: N().int().positive().max(2 ** 53 - 1).optional(),
4627
+ value: N().int().positive().max(2 ** 53 - 1).optional()
4604
4628
  }),
4605
4629
  L({
4606
4630
  ...q,
4607
4631
  kind: H("graph.node.field.set"),
4608
4632
  field: H("timeoutMs"),
4609
- before: P().optional(),
4610
- value: P().optional()
4633
+ before: N().optional(),
4634
+ value: N().optional()
4611
4635
  })
4612
4636
  ]),
4613
4637
  "graph.node.input.set": {
4614
4638
  ...q,
4615
4639
  handle: U,
4616
- before: tc.optional(),
4617
- value: tc.optional()
4640
+ before: rc.optional(),
4641
+ value: rc.optional()
4618
4642
  },
4619
4643
  "graph.node.additional-inputs.set": {
4620
4644
  ...q,
@@ -4623,8 +4647,8 @@ var Cc = {
4623
4647
  },
4624
4648
  "graph.node.condition.set": {
4625
4649
  ...q,
4626
- before: L(lc),
4627
- value: L(lc)
4650
+ before: L(fc),
4651
+ value: L(fc)
4628
4652
  },
4629
4653
  "graph.node.values.set": {
4630
4654
  ...q,
@@ -4634,19 +4658,19 @@ var Cc = {
4634
4658
  "graph.node.resolution.set": {
4635
4659
  ...q,
4636
4660
  target: L({ kind: H("flow") }),
4637
- before: L(uc),
4638
- value: L(uc)
4661
+ before: L(pc),
4662
+ value: L(pc)
4639
4663
  },
4640
4664
  "graph.node.webhook.set": {
4641
4665
  ...q,
4642
4666
  target: L({ kind: H("flow") }),
4643
- before: L(dc),
4644
- value: L(dc)
4667
+ before: L(mc),
4668
+ value: L(mc)
4645
4669
  },
4646
4670
  "graph.node.task.ports.set": {
4647
4671
  ...q,
4648
- before: L(rc),
4649
- value: L(rc)
4672
+ before: L(ac),
4673
+ value: L(ac)
4650
4674
  },
4651
4675
  "graph.node.task.name.set": {
4652
4676
  ...q,
@@ -4655,23 +4679,23 @@ var Cc = {
4655
4679
  },
4656
4680
  "graph.node.task.capabilities.set": {
4657
4681
  ...q,
4658
- before: I(ic).optional(),
4659
- value: I(ic).optional()
4682
+ before: I(oc).optional(),
4683
+ value: I(oc).optional()
4660
4684
  },
4661
4685
  "graph.trigger.config.set": {
4662
4686
  nodeId: U,
4663
4687
  name: U,
4664
- before: W.optional(),
4665
- value: W.optional()
4688
+ before: nc.optional(),
4689
+ value: nc.optional()
4666
4690
  },
4667
4691
  "graph.trigger.schedule.set": {
4668
4692
  nodeId: U,
4669
- before: Js,
4670
- value: Js
4693
+ before: Ys,
4694
+ value: Ys
4671
4695
  },
4672
4696
  "module.create": {
4673
4697
  moduleId: U,
4674
- module: xc
4698
+ module: wc
4675
4699
  },
4676
4700
  "module.delete": { moduleId: U },
4677
4701
  "module.rename": {
@@ -4681,24 +4705,24 @@ var Cc = {
4681
4705
  },
4682
4706
  "module.source.replace": {
4683
4707
  moduleId: U,
4684
- beforeImports: Ys,
4708
+ beforeImports: Xs,
4685
4709
  beforeSource: U,
4686
- imports: Ys,
4710
+ imports: Xs,
4687
4711
  source: U
4688
4712
  },
4689
4713
  "subflow.create": {
4690
4714
  subflowId: U,
4691
- subflow: vc.extend({ graph: yc })
4715
+ subflow: xc.extend({ graph: Sc })
4692
4716
  },
4693
4717
  "subflow.definition.set": {
4694
4718
  subflowId: U,
4695
- before: vc,
4696
- definition: vc
4719
+ before: xc,
4720
+ definition: xc
4697
4721
  },
4698
4722
  "subflow.delete": { subflowId: U },
4699
4723
  "task.create": {
4700
4724
  taskId: U,
4701
- task: cc
4725
+ task: uc
4702
4726
  },
4703
4727
  "task.delete": { taskId: U },
4704
4728
  "task.connector.connection.set": {
@@ -4708,8 +4732,8 @@ var Cc = {
4708
4732
  },
4709
4733
  "task.agent.set": {
4710
4734
  taskId: U,
4711
- before: cc,
4712
- value: cc
4735
+ before: uc,
4736
+ value: uc
4713
4737
  },
4714
4738
  "task.llm.mode.set": {
4715
4739
  taskId: U,
@@ -4721,28 +4745,28 @@ var Cc = {
4721
4745
  before: U,
4722
4746
  value: U
4723
4747
  }
4724
- }, wc = new Map(Object.entries(Cc).map(([e, t]) => [e, t instanceof j ? t : L({
4748
+ }, Dc = new Map(Object.entries(Ec).map(([e, t]) => [e, t instanceof A ? t : L({
4725
4749
  kind: H(e),
4726
4750
  ...t
4727
- })])), Tc = I(z([...wc.values()])).min(1);
4728
- function Ec(e, t, n) {
4751
+ })])), Oc = I(z([...Dc.values()])).min(1);
4752
+ function kc(e, t, n) {
4729
4753
  try {
4730
4754
  return n(e);
4731
4755
  } catch (e) {
4732
- throw e instanceof go ? TypeError(`operations[${t}]: ${e.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join("; ")}`, { cause: e }) : e;
4756
+ throw e instanceof _o ? TypeError(`operations[${t}]: ${e.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join("; ")}`, { cause: e }) : e;
4733
4757
  }
4734
4758
  }
4735
- function Dc(e, t) {
4736
- let { kind: n } = Ec(e, t, L({ kind: U }).parse), r = wc.get(n);
4759
+ function Ac(e, t) {
4760
+ let { kind: n } = kc(e, t, L({ kind: U }).parse), r = Dc.get(n);
4737
4761
  if (r == null) throw TypeError(`operations[${t}]: Unknown operation ${JSON.stringify(n)}.`);
4738
- return Ec(e, t, r.parse);
4762
+ return kc(e, t, r.parse);
4739
4763
  }
4740
- function Oc(e) {
4741
- let t = e == null ? Tc : wc.get(e);
4764
+ function jc(e) {
4765
+ let t = e == null ? Oc : Dc.get(e);
4742
4766
  if (t == null) throw TypeError(`Unknown operation ${JSON.stringify(e)}.`);
4743
- return fo(t, { io: "input" });
4767
+ return po(t, { io: "input" });
4744
4768
  }
4745
- function kc(e) {
4769
+ function Mc(e) {
4746
4770
  let t = e.trim();
4747
4771
  if (t.length == 0) return "empty";
4748
4772
  if (t.length > 80) return "tooLong";
@@ -4754,13 +4778,13 @@ function kc(e) {
4754
4778
  }
4755
4779
  //#endregion
4756
4780
  //#region src/flow/common/nodeChanges.ts
4757
- var Ac = "export default async function (inputs, context) {\n return { result: inputs.value }\n}\n";
4758
- function jc(e, t, n, r = void 0, i = {
4781
+ var Nc = "export default async function (inputs, context) {\n return { result: inputs.value }\n}\n";
4782
+ function Pc(e, t, n, r = void 0, i = {
4759
4783
  inputs: [{
4760
4784
  handle: "value",
4761
- jsonSchema: {},
4785
+ jsonSchema: { type: "string" },
4762
4786
  nullable: !0,
4763
- value: null
4787
+ value: "foo"
4764
4788
  }],
4765
4789
  outputs: [{
4766
4790
  handle: "result",
@@ -4773,7 +4797,7 @@ function jc(e, t, n, r = void 0, i = {
4773
4797
  module: {
4774
4798
  ...r ?? {
4775
4799
  imports: [],
4776
- source: Ac
4800
+ source: Nc
4777
4801
  },
4778
4802
  name: n
4779
4803
  },
@@ -4781,7 +4805,7 @@ function jc(e, t, n, r = void 0, i = {
4781
4805
  }, {
4782
4806
  kind: "graph.node.create",
4783
4807
  node: {
4784
- inputs: Bc(i.inputs),
4808
+ inputs: Uc(i.inputs),
4785
4809
  kind: "task",
4786
4810
  name: n,
4787
4811
  task: {
@@ -4796,7 +4820,7 @@ function jc(e, t, n, r = void 0, i = {
4796
4820
  target: e
4797
4821
  }];
4798
4822
  }
4799
- function Mc(e, t, n) {
4823
+ function Fc(e, t, n) {
4800
4824
  return [{
4801
4825
  kind: "task.create",
4802
4826
  task: n,
@@ -4804,7 +4828,7 @@ function Mc(e, t, n) {
4804
4828
  }, {
4805
4829
  kind: "graph.node.create",
4806
4830
  node: {
4807
- inputs: Bc(n.inputs),
4831
+ inputs: Uc(n.inputs),
4808
4832
  kind: "task",
4809
4833
  name: n.name,
4810
4834
  taskId: t.taskId
@@ -4813,9 +4837,9 @@ function Mc(e, t, n) {
4813
4837
  target: e
4814
4838
  }];
4815
4839
  }
4816
- function Nc(e, t, n, r, i, a = {}) {
4840
+ function Ic(e, t, n, r, i, a = {}) {
4817
4841
  let o = a.inputs ?? {};
4818
- return Mc(e, t, {
4842
+ return Fc(e, t, {
4819
4843
  executor: {
4820
4844
  kind: "llm",
4821
4845
  mode: r
@@ -4828,13 +4852,13 @@ function Nc(e, t, n, r, i, a = {}) {
4828
4852
  type: "array"
4829
4853
  },
4830
4854
  nullable: !0,
4831
- value: Vc(o, "messages", null)
4855
+ value: Wc(o, "messages", null)
4832
4856
  },
4833
4857
  {
4834
4858
  handle: "input",
4835
4859
  jsonSchema: { type: "string" },
4836
4860
  nullable: !1,
4837
- value: Vc(o, "input", "Alex")
4861
+ value: Wc(o, "input", "Alex")
4838
4862
  },
4839
4863
  {
4840
4864
  handle: "template",
@@ -4844,7 +4868,7 @@ function Nc(e, t, n, r, i, a = {}) {
4844
4868
  type: "array"
4845
4869
  },
4846
4870
  nullable: !1,
4847
- value: Vc(o, "template", [{
4871
+ value: Wc(o, "template", [{
4848
4872
  content: "Hello, I'm {{input}}",
4849
4873
  role: "user"
4850
4874
  }])
@@ -4853,7 +4877,7 @@ function Nc(e, t, n, r, i, a = {}) {
4853
4877
  handle: "model",
4854
4878
  jsonSchema: { type: "object" },
4855
4879
  nullable: !1,
4856
- value: Vc(o, "model", { model: "deepseek-v4-flash" })
4880
+ value: Wc(o, "model", { model: "deepseek-v4-flash" })
4857
4881
  }
4858
4882
  ],
4859
4883
  name: n,
@@ -4866,29 +4890,20 @@ function Nc(e, t, n, r, i, a = {}) {
4866
4890
  }]
4867
4891
  });
4868
4892
  }
4869
- function Pc(e, t, n) {
4893
+ function Lc(e, t, n) {
4870
4894
  return [{
4871
4895
  kind: "graph.node.create",
4872
4896
  node: {
4873
4897
  cases: [{
4874
- expressions: [{
4875
- input: "value",
4876
- operator: "isTrue"
4877
- }],
4878
- output: "true",
4879
- relation: "all"
4898
+ groups: [{ expressions: [{
4899
+ left: { kind: "value" },
4900
+ operator: "==",
4901
+ right: { kind: "value" }
4902
+ }] }],
4903
+ output: "case"
4880
4904
  }],
4881
- defaultOutput: "false",
4882
- input: {
4883
- handle: "value",
4884
- jsonSchema: {},
4885
- nullable: !0,
4886
- value: null
4887
- },
4888
- inputs: { value: {
4889
- kind: "value",
4890
- value: null
4891
- } },
4905
+ matchMode: "first",
4906
+ inputs: {},
4892
4907
  kind: "condition",
4893
4908
  name: n
4894
4909
  },
@@ -4896,7 +4911,7 @@ function Pc(e, t, n) {
4896
4911
  target: e
4897
4912
  }];
4898
4913
  }
4899
- function Fc(e, t, n) {
4914
+ function Rc(e, t, n) {
4900
4915
  return [{
4901
4916
  kind: "graph.node.create",
4902
4917
  node: {
@@ -4914,7 +4929,7 @@ function Fc(e, t, n) {
4914
4929
  target: e
4915
4930
  }];
4916
4931
  }
4917
- function Ic(e, t, n) {
4932
+ function zc(e, t, n) {
4918
4933
  return [{
4919
4934
  kind: "graph.node.create",
4920
4935
  node: {
@@ -4928,7 +4943,7 @@ function Ic(e, t, n) {
4928
4943
  target: e
4929
4944
  }];
4930
4945
  }
4931
- function Lc(e, t, n) {
4946
+ function Bc(e, t, n) {
4932
4947
  return [{
4933
4948
  kind: "graph.node.create",
4934
4949
  node: {
@@ -4942,7 +4957,7 @@ function Lc(e, t, n) {
4942
4957
  target: e
4943
4958
  }];
4944
4959
  }
4945
- function Rc(e, t, n) {
4960
+ function Vc(e, t, n) {
4946
4961
  return [{
4947
4962
  kind: "graph.node.create",
4948
4963
  node: n,
@@ -4950,10 +4965,10 @@ function Rc(e, t, n) {
4950
4965
  target: e
4951
4966
  }];
4952
4967
  }
4953
- function zc(e, t, n, r) {
4968
+ function Hc(e, t, n, r) {
4954
4969
  let i = r.name ?? n.displayName, a = n.type == "poll" ? {
4955
4970
  bindingId: t.bindingId,
4956
- config: r.config,
4971
+ config: qs(r.config),
4957
4972
  definition: n,
4958
4973
  kind: "poll",
4959
4974
  name: i,
@@ -4964,7 +4979,7 @@ function zc(e, t, n, r) {
4964
4979
  }]
4965
4980
  } : {
4966
4981
  bindingId: t.bindingId,
4967
- config: r.config,
4982
+ config: qs(r.config),
4968
4983
  definition: n,
4969
4984
  kind: "integration",
4970
4985
  name: i
@@ -4983,74 +4998,74 @@ function zc(e, t, n, r) {
4983
4998
  target: e
4984
4999
  }];
4985
5000
  }
4986
- function Bc(e) {
5001
+ function Uc(e) {
4987
5002
  return Object.fromEntries(e.flatMap((e) => "handle" in e && Object.hasOwn(e, "value") ? [[e.handle, {
4988
5003
  kind: "value",
4989
5004
  value: e.value
4990
5005
  }]] : []));
4991
5006
  }
4992
- function Vc(e, t, n) {
5007
+ function Wc(e, t, n) {
4993
5008
  return e != null && Object.hasOwn(e, t) ? e[t] : n;
4994
5009
  }
4995
5010
  //#endregion
4996
5011
  //#region src/control/common/draftOperations.ts
4997
- var J = M().min(1), Hc = Gs(), Uc = R({
5012
+ var J = j().min(1), Gc = Gs(), Kc = R({
4998
5013
  kind: H("graph.trigger.create"),
4999
5014
  nodeId: J,
5000
5015
  bindingId: J,
5001
5016
  key: J,
5002
5017
  connectionId: J.optional(),
5003
5018
  name: J.optional(),
5004
- config: B(J, Hc),
5005
- schedule: Js.readonly().optional()
5019
+ config: B(J, Gc),
5020
+ schedule: Ys.readonly().optional()
5006
5021
  });
5007
- function Wc(e) {
5008
- return qs(e), I(ls()).min(1).parse(e).map((e, t) => {
5009
- let { kind: n } = Ec(e, t, L({ kind: J }).parse);
5010
- return n == "graph.trigger.create" ? Ec(e, t, Uc.parse) : Dc(e, t);
5022
+ function qc(e) {
5023
+ return Js(e), I(ls()).min(1).parse(e).map((e, t) => {
5024
+ let { kind: n } = kc(e, t, L({ kind: J }).parse);
5025
+ return n == "graph.trigger.create" ? kc(e, t, Kc.parse) : Ac(e, t);
5011
5026
  });
5012
5027
  }
5013
- function Gc(e) {
5014
- if (e != null && e != "graph.trigger.create") return Oc(e);
5015
- let t = fo(Uc);
5028
+ function Jc(e) {
5029
+ if (e != null && e != "graph.trigger.create") return jc(e);
5030
+ let t = po(Kc);
5016
5031
  if (e == "graph.trigger.create") return t;
5017
- let n = Oc();
5032
+ let n = jc();
5018
5033
  return {
5019
5034
  ...n,
5020
5035
  items: { anyOf: [n.items, t] }
5021
5036
  };
5022
5037
  }
5023
- function Kc(e, t) {
5038
+ function Yc(e, t) {
5024
5039
  return e.flatMap((e) => {
5025
5040
  if (e.kind != "graph.trigger.create") return [e];
5026
5041
  let n = t(e.key);
5027
5042
  if (n.type != "poll" && e.schedule != null) throw Error("Only Poll triggers accept a schedule.");
5028
- return zc({ kind: "flow" }, e, n, e);
5043
+ return Hc({ kind: "flow" }, e, n, e);
5029
5044
  });
5030
5045
  }
5031
5046
  //#endregion
5032
5047
  //#region src/control/common/eventSourceSchemas.ts
5033
- var qc = M().min(1).max(256), Jc = M().regex(/^[a-z][a-z0-9_.]{0,127}$/), Yc = M().trim().min(1).max(128), Xc = M().min(1).max(256), Zc = R({
5048
+ var Xc = j().min(1).max(256), Zc = j().regex(/^[a-z][a-z0-9_.]{0,127}$/), Qc = j().trim().min(1).max(128), $c = j().min(1).max(256), el = R({
5034
5049
  version: H(1),
5035
- name: Yc,
5036
- connectionId: qc,
5037
- teamId: qc.nullable(),
5038
- verificationToken: Xc,
5039
- encryptKey: Xc,
5040
- eventTypes: I(Jc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5050
+ name: Qc,
5051
+ connectionId: Xc,
5052
+ teamId: Xc.nullable(),
5053
+ verificationToken: $c,
5054
+ encryptKey: $c,
5055
+ eventTypes: I(Zc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5041
5056
  manageSubscriptions: F()
5042
- }), Qc = R({
5057
+ }), tl = R({
5043
5058
  version: H(1),
5044
- expectedRevision: is().positive(),
5045
- name: Yc,
5059
+ expectedRevision: P().positive(),
5060
+ name: Qc,
5046
5061
  enabled: F(),
5047
- eventTypes: I(Jc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5048
- verificationToken: Xc.optional(),
5049
- encryptKey: Xc.optional()
5050
- }), $c = R({
5062
+ eventTypes: I(Zc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5063
+ verificationToken: $c.optional(),
5064
+ encryptKey: $c.optional()
5065
+ }), nl = R({
5051
5066
  version: H(1),
5052
- expectedRevision: is().positive()
5053
- }), Y = { kind: "flow" }, el = {
5067
+ expectedRevision: P().positive()
5068
+ }), Y = { kind: "flow" }, rl = {
5054
5069
  manual: "A Manual start node.",
5055
5070
  webhook: "A Webhook start node.",
5056
5071
  cron: "An hourly scheduled start node.",
@@ -5066,28 +5081,28 @@ var qc = M().min(1).max(256), Jc = M().regex(/^[a-z][a-z0-9_.]{0,127}$/), Yc = M
5066
5081
  "llm-chat": "An LLM chat Task and its node; configure a model available in the deployment.",
5067
5082
  "llm-json": "An LLM JSON Task and its node; configure a model available in the deployment.",
5068
5083
  "poll-notification": "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports."
5069
- }, tl = Object.keys(el).map((e) => ({
5084
+ }, il = Object.keys(rl).map((e) => ({
5070
5085
  name: e,
5071
- description: el[e]
5086
+ description: rl[e]
5072
5087
  }));
5073
- function nl(e) {
5088
+ function al(e) {
5074
5089
  let t;
5075
5090
  switch (e) {
5076
5091
  case "manual":
5077
- t = Rc(Y, "start", {
5092
+ t = Vc(Y, "start", {
5078
5093
  kind: "manual",
5079
5094
  name: "Start"
5080
5095
  });
5081
5096
  break;
5082
5097
  case "webhook":
5083
- t = Rc(Y, "start", {
5098
+ t = Vc(Y, "start", {
5084
5099
  kind: "webhook",
5085
5100
  name: "Webhook",
5086
5101
  bodyFields: []
5087
5102
  });
5088
5103
  break;
5089
5104
  case "cron":
5090
- t = Rc(Y, "start", {
5105
+ t = Vc(Y, "start", {
5091
5106
  kind: "cron",
5092
5107
  name: "Schedule",
5093
5108
  cronTimes: [{
@@ -5123,7 +5138,7 @@ function nl(e) {
5123
5138
  }];
5124
5139
  break;
5125
5140
  case "agent":
5126
- t = Mc(Y, {
5141
+ t = Fc(Y, {
5127
5142
  nodeId: "agent",
5128
5143
  taskId: "agent-task"
5129
5144
  }, {
@@ -5154,7 +5169,7 @@ function nl(e) {
5154
5169
  });
5155
5170
  break;
5156
5171
  case "connector":
5157
- t = Mc(Y, {
5172
+ t = Fc(Y, {
5158
5173
  nodeId: "notify",
5159
5174
  taskId: "notify-task"
5160
5175
  }, {
@@ -5174,25 +5189,21 @@ function nl(e) {
5174
5189
  });
5175
5190
  break;
5176
5191
  case "code":
5177
- t = jc(Y, {
5192
+ t = Pc(Y, {
5178
5193
  nodeId: "format",
5179
5194
  moduleId: "format-module"
5180
5195
  }, "Format", {
5181
5196
  imports: [],
5182
- source: "export default async function (inputs) { return { text: inputs.payload.events.map(event => `${event.sender}: ${event.subject}`).join(\"\\n\") } }"
5197
+ source: "export default async function (inputs) { return { text: inputs.events.map(event => `${event.sender}: ${event.subject}`).join(\"\\n\") } }"
5183
5198
  }, {
5184
5199
  inputs: [{
5185
- handle: "payload",
5200
+ handle: "events",
5186
5201
  jsonSchema: {
5187
- type: "object",
5188
- properties: { events: {
5189
- type: "array",
5190
- items: { type: "object" }
5191
- } },
5192
- required: ["events"]
5202
+ type: "array",
5203
+ items: { type: "object" }
5193
5204
  },
5194
5205
  nullable: !1,
5195
- value: { events: [] }
5206
+ value: []
5196
5207
  }],
5197
5208
  outputs: [{
5198
5209
  handle: "text",
@@ -5202,29 +5213,51 @@ function nl(e) {
5202
5213
  });
5203
5214
  break;
5204
5215
  case "condition":
5205
- t = Pc(Y, "condition", "Condition");
5216
+ t = [
5217
+ ...Lc(Y, "condition", "Condition"),
5218
+ {
5219
+ kind: "graph.node.input.set",
5220
+ target: Y,
5221
+ nodeId: "condition",
5222
+ handle: "0/0/0/left",
5223
+ value: {
5224
+ kind: "value",
5225
+ value: 100
5226
+ }
5227
+ },
5228
+ {
5229
+ kind: "graph.node.input.set",
5230
+ target: Y,
5231
+ nodeId: "condition",
5232
+ handle: "0/0/0/right",
5233
+ value: {
5234
+ kind: "value",
5235
+ value: 100
5236
+ }
5237
+ }
5238
+ ];
5206
5239
  break;
5207
5240
  case "value":
5208
- t = Fc(Y, "value", "Value");
5241
+ t = Rc(Y, "value", "Value");
5209
5242
  break;
5210
5243
  case "approval":
5211
- t = Lc(Y, "approval", "Approve?");
5244
+ t = Bc(Y, "approval", "Approve?");
5212
5245
  break;
5213
5246
  case "wait":
5214
- t = Ic(Y, "wait", "Continue?");
5247
+ t = zc(Y, "wait", "Continue?");
5215
5248
  break;
5216
5249
  case "llm-chat":
5217
5250
  case "llm-json":
5218
- t = Nc(Y, {
5251
+ t = Ic(Y, {
5219
5252
  nodeId: "llm",
5220
5253
  taskId: "llm-task"
5221
5254
  }, "LLM", e == "llm-chat" ? "chat" : "json", "Generated response.");
5222
5255
  break;
5223
5256
  case "poll-notification":
5224
5257
  t = [
5225
- ...nl("poll").operations,
5226
- ...nl("code").operations,
5227
- ...nl("connector").operations,
5258
+ ...al("poll").operations,
5259
+ ...al("code").operations,
5260
+ ...al("connector").operations,
5228
5261
  {
5229
5262
  kind: "graph.edge.connect",
5230
5263
  target: Y,
@@ -5245,17 +5278,17 @@ function nl(e) {
5245
5278
  kind: "graph.node.input.set",
5246
5279
  target: Y,
5247
5280
  nodeId: "format",
5248
- handle: "payload",
5281
+ handle: "events",
5249
5282
  before: {
5250
5283
  kind: "value",
5251
- value: { events: [] }
5284
+ value: []
5252
5285
  },
5253
5286
  value: {
5254
5287
  kind: "sources",
5255
5288
  sources: [{
5256
5289
  kind: "node",
5257
5290
  nodeId: "mail",
5258
- output: "payload"
5291
+ output: "events"
5259
5292
  }]
5260
5293
  }
5261
5294
  },
@@ -5288,24 +5321,24 @@ function nl(e) {
5288
5321
  }
5289
5322
  //#endregion
5290
5323
  //#region src/control/common/requests.ts
5291
- var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine((e) => e == e.trim() && kc(e) == null, "Flow name is invalid."), ol = B(M(), B(M(), il)), sl = R({
5324
+ var ol = R({ comment: Ks }), sl = Gs(), X = j().min(1), Z = H(1), cl = X.refine((e) => e == e.trim() && Mc(e) == null, "Flow name is invalid."), ll = B(j(), B(j(), sl)), ul = R({
5292
5325
  nodeId: X,
5293
- outputs: B(M(), il)
5326
+ outputs: B(j(), sl)
5294
5327
  }), Q = {
5295
- createEventSource: Zc,
5296
- updateEventSource: Qc,
5297
- eventSourceRevision: $c,
5328
+ createEventSource: el,
5329
+ updateEventSource: tl,
5330
+ eventSourceRevision: nl,
5298
5331
  createFlow: R({
5299
- name: al,
5332
+ name: cl,
5300
5333
  version: Z
5301
5334
  }),
5302
5335
  renameFlow: R({
5303
- name: al,
5336
+ name: cl,
5304
5337
  version: Z
5305
5338
  }),
5306
5339
  changeDraft: R({
5307
5340
  expectedRevisionId: X,
5308
- operations: I(il).min(1),
5341
+ operations: I(sl).min(1),
5309
5342
  version: Z
5310
5343
  }),
5311
5344
  repairDraft: R({
@@ -5318,8 +5351,8 @@ var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine(
5318
5351
  version: Z
5319
5352
  }),
5320
5353
  updatePresentation: R({
5321
- expectedRevision: is().positive(),
5322
- value: B(M(), il),
5354
+ expectedRevision: P().positive(),
5355
+ value: B(j(), sl),
5323
5356
  version: Z
5324
5357
  }),
5325
5358
  checkFlow: R({
@@ -5337,14 +5370,14 @@ var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine(
5337
5370
  }),
5338
5371
  createDraftRun: R({
5339
5372
  engineContract: X,
5340
- inputs: ol,
5341
- trigger: sl,
5373
+ inputs: ll,
5374
+ trigger: ul,
5342
5375
  version: H(2)
5343
5376
  }),
5344
5377
  createLiveRun: R({
5345
5378
  publicationId: X,
5346
- inputs: ol,
5347
- trigger: sl,
5379
+ inputs: ll,
5380
+ trigger: ul,
5348
5381
  version: H(2)
5349
5382
  }),
5350
5383
  resolveWait: R({
@@ -5356,13 +5389,23 @@ var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine(
5356
5389
  comment: Ks,
5357
5390
  version: Z
5358
5391
  }),
5359
- putVariable: R({ value: M().refine((e) => new TextEncoder().encode(e).byteLength <= 65536, "Variable value is too large.") }),
5392
+ putVariable: R({ value: j().refine((e) => new TextEncoder().encode(e).byteLength <= 65536, "Environment variable value is too large.") }),
5393
+ addProviderAccessBinding: R({
5394
+ accessBindingId: X,
5395
+ expectedAccessRevision: P().nonnegative(),
5396
+ version: Z
5397
+ }),
5398
+ removeProviderAccessBinding: R({
5399
+ accessBindingId: X,
5400
+ expectedAccessRevision: P().nonnegative(),
5401
+ version: Z
5402
+ }),
5360
5403
  versionOnly: R({ version: Z })
5361
5404
  };
5362
5405
  function $(e) {
5363
5406
  return (t) => e.parse(t);
5364
5407
  }
5365
- var cl = {
5408
+ var dl = {
5366
5409
  createEventSource: $(Q.createEventSource),
5367
5410
  updateEventSource: $(Q.updateEventSource),
5368
5411
  eventSourceRevision: $(Q.eventSourceRevision),
@@ -5372,7 +5415,7 @@ var cl = {
5372
5415
  let t = Q.changeDraft.parse(e);
5373
5416
  return {
5374
5417
  ...t,
5375
- operations: Wc(t.operations)
5418
+ operations: qc(t.operations)
5376
5419
  };
5377
5420
  },
5378
5421
  repairDraft: $(Q.repairDraft),
@@ -5385,17 +5428,19 @@ var cl = {
5385
5428
  createLiveRun: $(Q.createLiveRun),
5386
5429
  resolveWait: $(Q.resolveWait),
5387
5430
  putVariable: $(Q.putVariable),
5431
+ addProviderAccessBinding: $(Q.addProviderAccessBinding),
5432
+ removeProviderAccessBinding: $(Q.removeProviderAccessBinding),
5388
5433
  versionOnly: $(Q.versionOnly)
5389
5434
  };
5390
- function ll(e) {
5391
- let t = fo(Q[e]);
5435
+ function fl(e) {
5436
+ let t = po(Q[e]);
5392
5437
  return e == "changeDraft" ? {
5393
5438
  ...t,
5394
5439
  properties: {
5395
5440
  ...t.properties,
5396
- operations: Gc()
5441
+ operations: Jc()
5397
5442
  }
5398
5443
  } : t;
5399
5444
  }
5400
5445
  //#endregion
5401
- export { nl as authoringExample, tl as authoringExamples, ll as controlRequestSchema, cl as controlRequests, Wc as decodeDraftOperations, Gc as draftOperationsSchema, Kc as resolveDraftOperations, rl as waitActionBodySchema };
5446
+ export { al as authoringExample, il as authoringExamples, fl as controlRequestSchema, dl as controlRequests, qc as decodeDraftOperations, Jc as draftOperationsSchema, Yc as resolveDraftOperations, ol as waitActionBodySchema };