@camstack/addon-pipeline 0.1.17 → 0.1.19

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 (52) hide show
  1. package/dist/audio-analyzer/index.js +8 -3
  2. package/dist/audio-analyzer/index.js.map +1 -1
  3. package/dist/audio-analyzer/index.mjs +8 -3
  4. package/dist/audio-analyzer/index.mjs.map +1 -1
  5. package/dist/audio-codec-nodeav/index.js +1 -1
  6. package/dist/audio-codec-nodeav/index.mjs +1 -1
  7. package/dist/decoder-nodeav/index.js +1 -1
  8. package/dist/decoder-nodeav/index.mjs +1 -1
  9. package/dist/detection-pipeline/index.js +23 -20
  10. package/dist/detection-pipeline/index.js.map +1 -1
  11. package/dist/detection-pipeline/index.mjs +23 -20
  12. package/dist/detection-pipeline/index.mjs.map +1 -1
  13. package/dist/{index-p-6GfKOg.js → index-BbPPvoCx.js} +469 -57
  14. package/dist/index-BbPPvoCx.js.map +1 -0
  15. package/dist/{index-CVzLrojg.mjs → index-Bmlkm0Fd.mjs} +469 -57
  16. package/dist/index-Bmlkm0Fd.mjs.map +1 -0
  17. package/dist/motion-wasm/index.js +1 -1
  18. package/dist/motion-wasm/index.mjs +1 -1
  19. package/dist/pipeline-runner/index.js +132 -14
  20. package/dist/pipeline-runner/index.js.map +1 -1
  21. package/dist/pipeline-runner/index.mjs +133 -15
  22. package/dist/pipeline-runner/index.mjs.map +1 -1
  23. package/dist/stream-broker/@mf-types.zip +0 -0
  24. package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-NjF4kxzW.mjs +19 -0
  25. package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BAv_5ISf.mjs +20 -0
  26. package/dist/stream-broker/{__mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.mjs-DAssX3h0.mjs → __mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.mjs-BsB2G7oY.mjs} +2 -1
  27. package/dist/stream-broker/{__mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-DFoJJhpt.mjs → __mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-xrRiPUpA.mjs} +1 -1
  28. package/dist/stream-broker/{__mfe_internal__addon_stream_broker_widgets__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-x7XMEeuJ.mjs → __mfe_internal__addon_stream_broker_widgets__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-C0E2yCzO.mjs} +1 -1
  29. package/dist/stream-broker/_stub.js +2 -2
  30. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Sx8tgpFZ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CupRlwqG.mjs} +6 -6
  31. package/dist/stream-broker/{client-CZXrddDR.mjs → client-NPZqorv9.mjs} +2 -2
  32. package/dist/stream-broker/{hostInit-D0jPgChu.mjs → hostInit-Bh4w7o5_.mjs} +12 -12
  33. package/dist/stream-broker/{index-C0BzaWmB.mjs → index-2Qp8vT3w.mjs} +1 -1
  34. package/dist/stream-broker/{index-CZNxa0ad.mjs → index-BBcZvb5t.mjs} +1 -1
  35. package/dist/stream-broker/index-CIJue-4t.mjs +37880 -0
  36. package/dist/stream-broker/{index-BvV3RVTZ.mjs → index-Cc6QBqMk.mjs} +2 -2
  37. package/dist/stream-broker/{index-cYW01SNH.mjs → index-D_1p2K9B.mjs} +1 -1
  38. package/dist/stream-broker/{index-BCEx31Mh.mjs → index-Dy2V7VOm.mjs} +3808 -3277
  39. package/dist/stream-broker/{index-KtR7Pp0O.mjs → index-mX3Kgiv1.mjs} +1 -1
  40. package/dist/stream-broker/index.js +1565 -280
  41. package/dist/stream-broker/index.js.map +1 -1
  42. package/dist/stream-broker/index.mjs +1567 -281
  43. package/dist/stream-broker/index.mjs.map +1 -1
  44. package/dist/stream-broker/{jsx-runtime-B_evVsXl.mjs → jsx-runtime-lb0mH5st.mjs} +1 -1
  45. package/dist/stream-broker/remoteEntry.js +1 -1
  46. package/dist/stream-broker/{schemas-ChN4Ih0h.mjs → schemas-ClCuS4qa.mjs} +151 -141
  47. package/package.json +1 -1
  48. package/dist/index-CVzLrojg.mjs.map +0 -1
  49. package/dist/index-p-6GfKOg.js.map +0 -1
  50. package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-d8PmLbO2.mjs +0 -19
  51. package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-B4l8Nb2y.mjs +0 -20
  52. package/dist/stream-broker/index-Kb4xa8FX.mjs +0 -36403
@@ -1,4 +1,4 @@
1
- var ve;
1
+ var ze;
2
2
  function l(e, t, n) {
3
3
  function r(u, c) {
4
4
  if (u._zod || Object.defineProperty(u, "_zod", {
@@ -43,10 +43,10 @@ class We extends Error {
43
43
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
44
44
  }
45
45
  }
46
- (ve = globalThis).__zod_globalConfig ?? (ve.__zod_globalConfig = {});
47
- const ce = globalThis.__zod_globalConfig;
46
+ (ze = globalThis).__zod_globalConfig ?? (ze.__zod_globalConfig = {});
47
+ const ae = globalThis.__zod_globalConfig;
48
48
  function E(e) {
49
- return ce;
49
+ return ae;
50
50
  }
51
51
  function Ke(e) {
52
52
  const t = Object.values(e).filter((r) => typeof r == "number");
@@ -65,10 +65,10 @@ function ee(e) {
65
65
  }
66
66
  };
67
67
  }
68
- function ae(e) {
68
+ function le(e) {
69
69
  return e == null;
70
70
  }
71
- function le(e) {
71
+ function fe(e) {
72
72
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
73
73
  return e.slice(t, n);
74
74
  }
@@ -76,13 +76,13 @@ function Ot(e, t) {
76
76
  const n = e / t, r = Math.round(n), o = Number.EPSILON * Math.max(Math.abs(n), 1);
77
77
  return Math.abs(n - r) < o ? 0 : n - r;
78
78
  }
79
- const ze = /* @__PURE__ */ Symbol("evaluating");
79
+ const ye = /* @__PURE__ */ Symbol("evaluating");
80
80
  function _(e, t, n) {
81
81
  let r;
82
82
  Object.defineProperty(e, t, {
83
83
  get() {
84
- if (r !== ze)
85
- return r === void 0 && (r = ze, r = n()), r;
84
+ if (r !== ye)
85
+ return r === void 0 && (r = ye, r = n()), r;
86
86
  },
87
87
  set(o) {
88
88
  Object.defineProperty(e, t, {
@@ -101,7 +101,7 @@ function R(e, t, n) {
101
101
  configurable: !0
102
102
  });
103
103
  }
104
- function j(...e) {
104
+ function A(...e) {
105
105
  const t = {};
106
106
  for (const n of e) {
107
107
  const r = Object.getOwnPropertyDescriptors(n);
@@ -109,7 +109,7 @@ function j(...e) {
109
109
  }
110
110
  return Object.defineProperties({}, t);
111
111
  }
112
- function ye(e) {
112
+ function be(e) {
113
113
  return JSON.stringify(e);
114
114
  }
115
115
  function It(e) {
@@ -121,7 +121,7 @@ function L(e) {
121
121
  return typeof e == "object" && e !== null && !Array.isArray(e);
122
122
  }
123
123
  const Tt = /* @__PURE__ */ ee(() => {
124
- if (ce.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
124
+ if (ae.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
125
125
  return !1;
126
126
  try {
127
127
  const e = Function;
@@ -146,7 +146,7 @@ const Et = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
146
146
  function U(e) {
147
147
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
148
148
  }
149
- function A(e, t, n) {
149
+ function N(e, t, n) {
150
150
  const r = new e._zod.constr(t ?? e._zod.def);
151
151
  return (!t || n?.parent) && (r._zod.parent = e), r;
152
152
  }
@@ -177,7 +177,7 @@ function jt(e, t) {
177
177
  const n = e._zod.def, r = n.checks;
178
178
  if (r && r.length > 0)
179
179
  throw new Error(".pick() cannot be used on object schemas containing refinements");
180
- const i = j(e._zod.def, {
180
+ const i = A(e._zod.def, {
181
181
  get shape() {
182
182
  const s = {};
183
183
  for (const u in t) {
@@ -189,13 +189,13 @@ function jt(e, t) {
189
189
  },
190
190
  checks: []
191
191
  });
192
- return A(e, i);
192
+ return N(e, i);
193
193
  }
194
194
  function At(e, t) {
195
195
  const n = e._zod.def, r = n.checks;
196
196
  if (r && r.length > 0)
197
197
  throw new Error(".omit() cannot be used on object schemas containing refinements");
198
- const i = j(e._zod.def, {
198
+ const i = A(e._zod.def, {
199
199
  get shape() {
200
200
  const s = { ...e._zod.def.shape };
201
201
  for (const u in t) {
@@ -207,7 +207,7 @@ function At(e, t) {
207
207
  },
208
208
  checks: []
209
209
  });
210
- return A(e, i);
210
+ return N(e, i);
211
211
  }
212
212
  function Rt(e, t) {
213
213
  if (!x(t))
@@ -219,29 +219,29 @@ function Rt(e, t) {
219
219
  if (Object.getOwnPropertyDescriptor(i, s) !== void 0)
220
220
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
221
221
  }
222
- const o = j(e._zod.def, {
222
+ const o = A(e._zod.def, {
223
223
  get shape() {
224
224
  const i = { ...e._zod.def.shape, ...t };
225
225
  return R(this, "shape", i), i;
226
226
  }
227
227
  });
228
- return A(e, o);
228
+ return N(e, o);
229
229
  }
230
230
  function Dt(e, t) {
231
231
  if (!x(t))
232
232
  throw new Error("Invalid input to safeExtend: expected a plain object");
233
- const n = j(e._zod.def, {
233
+ const n = A(e._zod.def, {
234
234
  get shape() {
235
235
  const r = { ...e._zod.def.shape, ...t };
236
236
  return R(this, "shape", r), r;
237
237
  }
238
238
  });
239
- return A(e, n);
239
+ return N(e, n);
240
240
  }
241
241
  function Ct(e, t) {
242
242
  if (e._zod.def.checks?.length)
243
243
  throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
244
- const n = j(e._zod.def, {
244
+ const n = A(e._zod.def, {
245
245
  get shape() {
246
246
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
247
247
  return R(this, "shape", r), r;
@@ -251,13 +251,13 @@ function Ct(e, t) {
251
251
  },
252
252
  checks: t._zod.def.checks ?? []
253
253
  });
254
- return A(e, n);
254
+ return N(e, n);
255
255
  }
256
256
  function xt(e, t, n) {
257
257
  const o = t._zod.def.checks;
258
258
  if (o && o.length > 0)
259
259
  throw new Error(".partial() cannot be used on object schemas containing refinements");
260
- const s = j(t._zod.def, {
260
+ const s = A(t._zod.def, {
261
261
  get shape() {
262
262
  const u = t._zod.def.shape, c = { ...u };
263
263
  if (n)
@@ -279,10 +279,10 @@ function xt(e, t, n) {
279
279
  },
280
280
  checks: []
281
281
  });
282
- return A(t, s);
282
+ return N(t, s);
283
283
  }
284
284
  function Ut(e, t, n) {
285
- const r = j(t._zod.def, {
285
+ const r = A(t._zod.def, {
286
286
  get shape() {
287
287
  const o = t._zod.def.shape, i = { ...o };
288
288
  if (n)
@@ -303,7 +303,7 @@ function Ut(e, t, n) {
303
303
  return R(this, "shape", i), i;
304
304
  }
305
305
  });
306
- return A(t, r);
306
+ return N(t, r);
307
307
  }
308
308
  function D(e, t = 0) {
309
309
  if (e.aborted === !0)
@@ -321,7 +321,7 @@ function Ft(e, t = 0) {
321
321
  return !0;
322
322
  return !1;
323
323
  }
324
- function N(e, t) {
324
+ function j(e, t) {
325
325
  return t.map((n) => {
326
326
  var r;
327
327
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -334,7 +334,7 @@ function P(e, t, n) {
334
334
  const r = e.message ? e.message : W(e.inst?._zod.def?.error?.(e)) ?? W(t?.error?.(e)) ?? W(n.customError?.(e)) ?? W(n.localeError?.(e)) ?? "Invalid input", { inst: o, continue: i, input: s, ...u } = e;
335
335
  return u.path ?? (u.path = []), u.message = r, t?.reportInput && (u.input = s), u;
336
336
  }
337
- function fe(e) {
337
+ function pe(e) {
338
338
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
339
339
  }
340
340
  function V(...e) {
@@ -388,7 +388,7 @@ function Mt(e, t = (n) => n.message) {
388
388
  };
389
389
  return r(e), n;
390
390
  }
391
- const pe = (e) => (t, n, r, o) => {
391
+ const de = (e) => (t, n, r, o) => {
392
392
  const i = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, i);
393
393
  if (s instanceof Promise)
394
394
  throw new C();
@@ -397,7 +397,7 @@ const pe = (e) => (t, n, r, o) => {
397
397
  throw Ge(u, o?.callee), u;
398
398
  }
399
399
  return s.value;
400
- }, de = (e) => async (t, n, r, o) => {
400
+ }, he = (e) => async (t, n, r, o) => {
401
401
  const i = r ? { ...r, async: !0 } : { async: !0 };
402
402
  let s = t._zod.run({ value: n, issues: [] }, i);
403
403
  if (s instanceof Promise && (s = await s), s.issues.length) {
@@ -421,18 +421,18 @@ const pe = (e) => (t, n, r, o) => {
421
421
  error: new e(i.issues.map((s) => P(s, o, E())))
422
422
  } : { success: !0, data: i.value };
423
423
  }, Vt = /* @__PURE__ */ ne(He), Bt = (e) => (t, n, r) => {
424
- const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
425
- return pe(e)(t, n, o);
426
- }, Wt = (e) => (t, n, r) => pe(e)(t, n, r), Kt = (e) => async (t, n, r) => {
427
424
  const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
428
425
  return de(e)(t, n, o);
429
- }, Gt = (e) => async (t, n, r) => de(e)(t, n, r), Yt = (e) => (t, n, r) => {
426
+ }, Wt = (e) => (t, n, r) => de(e)(t, n, r), Kt = (e) => async (t, n, r) => {
427
+ const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
428
+ return he(e)(t, n, o);
429
+ }, Gt = (e) => async (t, n, r) => he(e)(t, n, r), Yt = (e) => (t, n, r) => {
430
430
  const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
431
431
  return te(e)(t, n, o);
432
432
  }, qt = (e) => (t, n, r) => te(e)(t, n, r), Xt = (e) => async (t, n, r) => {
433
433
  const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
434
434
  return ne(e)(t, n, o);
435
- }, Ht = (e) => async (t, n, r) => ne(e)(t, n, r), Qt = /^[cC][0-9a-z]{6,}$/, en = /^[0-9a-z]+$/, tn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, nn = /^[0-9a-vA-V]{20}$/, rn = /^[A-Za-z0-9]{27}$/, on = /^[a-zA-Z0-9_-]{21}$/, sn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, un = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, be = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, cn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, an = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
435
+ }, Ht = (e) => async (t, n, r) => ne(e)(t, n, r), Qt = /^[cC][0-9a-z]{6,}$/, en = /^[0-9a-z]+$/, tn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, nn = /^[0-9a-vA-V]{20}$/, rn = /^[A-Za-z0-9]{27}$/, on = /^[a-zA-Z0-9_-]{21}$/, sn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, un = /^([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})$/, we = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, cn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, an = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
436
436
  function ln() {
437
437
  return new RegExp(an, "u");
438
438
  }
@@ -575,7 +575,7 @@ const bn = (e) => {
575
575
  var n;
576
576
  O.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
577
577
  const o = r.value;
578
- return !ae(o) && o.length !== void 0;
578
+ return !le(o) && o.length !== void 0;
579
579
  }), e._zod.onattach.push((r) => {
580
580
  const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
581
581
  t.maximum < o && (r._zod.bag.maximum = t.maximum);
@@ -583,7 +583,7 @@ const bn = (e) => {
583
583
  const o = r.value;
584
584
  if (o.length <= t.maximum)
585
585
  return;
586
- const s = fe(o);
586
+ const s = pe(o);
587
587
  r.issues.push({
588
588
  origin: s,
589
589
  code: "too_big",
@@ -598,7 +598,7 @@ const bn = (e) => {
598
598
  var n;
599
599
  O.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
600
600
  const o = r.value;
601
- return !ae(o) && o.length !== void 0;
601
+ return !le(o) && o.length !== void 0;
602
602
  }), e._zod.onattach.push((r) => {
603
603
  const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
604
604
  t.minimum > o && (r._zod.bag.minimum = t.minimum);
@@ -606,7 +606,7 @@ const bn = (e) => {
606
606
  const o = r.value;
607
607
  if (o.length >= t.minimum)
608
608
  return;
609
- const s = fe(o);
609
+ const s = pe(o);
610
610
  r.issues.push({
611
611
  origin: s,
612
612
  code: "too_small",
@@ -621,7 +621,7 @@ const bn = (e) => {
621
621
  var n;
622
622
  O.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
623
623
  const o = r.value;
624
- return !ae(o) && o.length !== void 0;
624
+ return !le(o) && o.length !== void 0;
625
625
  }), e._zod.onattach.push((r) => {
626
626
  const o = r._zod.bag;
627
627
  o.minimum = t.length, o.maximum = t.length, o.length = t.length;
@@ -629,7 +629,7 @@ const bn = (e) => {
629
629
  const o = r.value, i = o.length;
630
630
  if (i === t.length)
631
631
  return;
632
- const s = fe(o), u = i > t.length;
632
+ const s = pe(o), u = i > t.length;
633
633
  r.issues.push({
634
634
  origin: s,
635
635
  ...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
@@ -830,7 +830,7 @@ const Fn = {
830
830
  vendor: "zod",
831
831
  version: 1
832
832
  }));
833
- }), he = /* @__PURE__ */ l("$ZodString", (e, t) => {
833
+ }), me = /* @__PURE__ */ l("$ZodString", (e, t) => {
834
834
  v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? bn(e._zod.bag), e._zod.parse = (n, r) => {
835
835
  if (t.coerce)
836
836
  try {
@@ -845,7 +845,7 @@ const Fn = {
845
845
  }), n;
846
846
  };
847
847
  }), y = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
848
- re.init(e, t), he.init(e, t);
848
+ re.init(e, t), me.init(e, t);
849
849
  }), Jn = /* @__PURE__ */ l("$ZodGUID", (e, t) => {
850
850
  t.pattern ?? (t.pattern = un), y.init(e, t);
851
851
  }), Mn = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
@@ -862,9 +862,9 @@ const Fn = {
862
862
  }[t.version];
863
863
  if (r === void 0)
864
864
  throw new Error(`Invalid UUID version: "${t.version}"`);
865
- t.pattern ?? (t.pattern = be(r));
865
+ t.pattern ?? (t.pattern = we(r));
866
866
  } else
867
- t.pattern ?? (t.pattern = be());
867
+ t.pattern ?? (t.pattern = we());
868
868
  y.init(e, t);
869
869
  }), Ln = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
870
870
  t.pattern ?? (t.pattern = cn), y.init(e, t);
@@ -1127,8 +1127,8 @@ const fr = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1127
1127
  }), n;
1128
1128
  };
1129
1129
  });
1130
- function we(e, t, n) {
1131
- e.issues.length && t.issues.push(...N(n, e.issues)), t.value[n] = e.value;
1130
+ function ke(e, t, n) {
1131
+ e.issues.length && t.issues.push(...j(n, e.issues)), t.value[n] = e.value;
1132
1132
  }
1133
1133
  const yr = /* @__PURE__ */ l("$ZodArray", (e, t) => {
1134
1134
  v.init(e, t), e._zod.parse = (n, r) => {
@@ -1147,7 +1147,7 @@ const yr = /* @__PURE__ */ l("$ZodArray", (e, t) => {
1147
1147
  value: u,
1148
1148
  issues: []
1149
1149
  }, r);
1150
- c instanceof Promise ? i.push(c.then((a) => we(a, n, s))) : we(c, n, s);
1150
+ c instanceof Promise ? i.push(c.then((a) => ke(a, n, s))) : ke(c, n, s);
1151
1151
  }
1152
1152
  return i.length ? Promise.all(i).then(() => n) : n;
1153
1153
  };
@@ -1157,7 +1157,7 @@ function X(e, t, n, r, o, i) {
1157
1157
  if (e.issues.length) {
1158
1158
  if (o && i && !s)
1159
1159
  return;
1160
- t.issues.push(...N(n, e.issues));
1160
+ t.issues.push(...j(n, e.issues));
1161
1161
  }
1162
1162
  if (!s && !o) {
1163
1163
  e.issues.length || t.issues.push({
@@ -1252,7 +1252,7 @@ const br = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1252
1252
  br.init(e, t);
1253
1253
  const n = e._zod.parse, r = ee(() => ct(t)), o = (m) => {
1254
1254
  const h = new Un(["shape", "payload", "ctx"]), g = r.value, J = (T) => {
1255
- const k = ye(T);
1255
+ const k = be(T);
1256
1256
  return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1257
1257
  };
1258
1258
  h.write("const input = payload.value;");
@@ -1262,8 +1262,8 @@ const br = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1262
1262
  $[T] = `key_${oe++}`;
1263
1263
  h.write("const newResult = {};");
1264
1264
  for (const T of g.keys) {
1265
- const k = $[T], Z = ye(T), _e = m[T], ge = _e?._zod?.optin === "optional", St = _e?._zod?.optout === "optional";
1266
- h.write(`const ${k} = ${J(T)};`), ge && St ? h.write(`
1265
+ const k = $[T], Z = be(T), ge = m[T], ve = ge?._zod?.optin === "optional", St = ge?._zod?.optout === "optional";
1266
+ h.write(`const ${k} = ${J(T)};`), ve && St ? h.write(`
1267
1267
  if (${k}.issues.length) {
1268
1268
  if (${Z} in input) {
1269
1269
  payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
@@ -1281,7 +1281,7 @@ const br = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1281
1281
  newResult[${Z}] = ${k}.value;
1282
1282
  }
1283
1283
 
1284
- `) : ge ? h.write(`
1284
+ `) : ve ? h.write(`
1285
1285
  if (${k}.issues.length) {
1286
1286
  payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
1287
1287
  ...iss,
@@ -1329,7 +1329,7 @@ const br = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1329
1329
  return (T, k) => Zt(m, T, k);
1330
1330
  };
1331
1331
  let i;
1332
- const s = L, u = !ce.jitless, a = u && Tt.value, f = t.catchall;
1332
+ const s = L, u = !ae.jitless, a = u && Tt.value, f = t.catchall;
1333
1333
  let p;
1334
1334
  e._zod.parse = (m, h) => {
1335
1335
  p ?? (p = r.value);
@@ -1342,7 +1342,7 @@ const br = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1342
1342
  }), m);
1343
1343
  };
1344
1344
  });
1345
- function ke(e, t, n, r) {
1345
+ function $e(e, t, n, r) {
1346
1346
  for (const i of e)
1347
1347
  if (i.issues.length === 0)
1348
1348
  return t.value = i.value, t;
@@ -1361,7 +1361,7 @@ const lt = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1361
1361
  }), _(e._zod, "pattern", () => {
1362
1362
  if (t.options.every((r) => r._zod.pattern)) {
1363
1363
  const r = t.options.map((o) => o._zod.pattern);
1364
- return new RegExp(`^(${r.map((o) => le(o.source)).join("|")})$`);
1364
+ return new RegExp(`^(${r.map((o) => fe(o.source)).join("|")})$`);
1365
1365
  }
1366
1366
  });
1367
1367
  const n = t.options.length === 1 ? t.options[0]._zod.run : null;
@@ -1383,7 +1383,7 @@ const lt = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1383
1383
  s.push(c);
1384
1384
  }
1385
1385
  }
1386
- return i ? Promise.all(s).then((u) => ke(u, r, e, o)) : ke(s, r, e, o);
1386
+ return i ? Promise.all(s).then((u) => $e(u, r, e, o)) : $e(s, r, e, o);
1387
1387
  };
1388
1388
  }), kr = /* @__PURE__ */ l("$ZodDiscriminatedUnion", (e, t) => {
1389
1389
  t.inclusive = !1, lt.init(e, t);
@@ -1440,7 +1440,7 @@ const lt = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1440
1440
  }), $r = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
1441
1441
  v.init(e, t), e._zod.parse = (n, r) => {
1442
1442
  const o = n.value, i = t.left._zod.run({ value: o, issues: [] }, r), s = t.right._zod.run({ value: o, issues: [] }, r);
1443
- return i instanceof Promise || s instanceof Promise ? Promise.all([i, s]).then(([c, a]) => $e(n, c, a)) : $e(n, i, s);
1443
+ return i instanceof Promise || s instanceof Promise ? Promise.all([i, s]).then(([c, a]) => Ze(n, c, a)) : Ze(n, i, s);
1444
1444
  };
1445
1445
  });
1446
1446
  function ie(e, t) {
@@ -1478,7 +1478,7 @@ function ie(e, t) {
1478
1478
  }
1479
1479
  return { valid: !1, mergeErrorPath: [] };
1480
1480
  }
1481
- function $e(e, t, n) {
1481
+ function Ze(e, t, n) {
1482
1482
  const r = /* @__PURE__ */ new Map();
1483
1483
  let o;
1484
1484
  for (const u of t.issues)
@@ -1515,7 +1515,7 @@ const Zr = /* @__PURE__ */ l("$ZodTuple", (e, t) => {
1515
1515
  code: "invalid_type"
1516
1516
  }), r;
1517
1517
  r.value = [];
1518
- const s = [], u = Ze(n, "optin"), c = Ze(n, "optout");
1518
+ const s = [], u = Se(n, "optin"), c = Se(n, "optout");
1519
1519
  if (!t.rest) {
1520
1520
  if (i.length < u)
1521
1521
  return r.issues.push({
@@ -1548,22 +1548,22 @@ const Zr = /* @__PURE__ */ l("$ZodTuple", (e, t) => {
1548
1548
  for (const m of p) {
1549
1549
  f++;
1550
1550
  const h = t.rest._zod.run({ value: m, issues: [] }, o);
1551
- h instanceof Promise ? s.push(h.then((g) => Se(g, r, f))) : Se(h, r, f);
1551
+ h instanceof Promise ? s.push(h.then((g) => Oe(g, r, f))) : Oe(h, r, f);
1552
1552
  }
1553
1553
  }
1554
- return s.length ? Promise.all(s).then(() => Oe(a, r, n, i, c)) : Oe(a, r, n, i, c);
1554
+ return s.length ? Promise.all(s).then(() => Ie(a, r, n, i, c)) : Ie(a, r, n, i, c);
1555
1555
  };
1556
1556
  });
1557
- function Ze(e, t) {
1557
+ function Se(e, t) {
1558
1558
  for (let n = e.length - 1; n >= 0; n--)
1559
1559
  if (e[n]._zod[t] !== "optional")
1560
1560
  return n + 1;
1561
1561
  return 0;
1562
1562
  }
1563
- function Se(e, t, n) {
1564
- e.issues.length && t.issues.push(...N(n, e.issues)), t.value[n] = e.value;
1563
+ function Oe(e, t, n) {
1564
+ e.issues.length && t.issues.push(...j(n, e.issues)), t.value[n] = e.value;
1565
1565
  }
1566
- function Oe(e, t, n, r, o) {
1566
+ function Ie(e, t, n, r, o) {
1567
1567
  for (let i = 0; i < n.length; i++) {
1568
1568
  const s = e[i], u = i < r.length;
1569
1569
  if (s.issues.length) {
@@ -1571,7 +1571,7 @@ function Oe(e, t, n, r, o) {
1571
1571
  t.value.length = i;
1572
1572
  break;
1573
1573
  }
1574
- t.issues.push(...N(i, s.issues));
1574
+ t.issues.push(...j(i, s.issues));
1575
1575
  }
1576
1576
  t.value[i] = s.value;
1577
1577
  }
@@ -1612,8 +1612,8 @@ const Sr = /* @__PURE__ */ l("$ZodRecord", (e, t) => {
1612
1612
  }
1613
1613
  const p = f.value, m = t.valueType._zod.run({ value: o[a], issues: [] }, r);
1614
1614
  m instanceof Promise ? i.push(m.then((h) => {
1615
- h.issues.length && n.issues.push(...N(a, h.issues)), n.value[p] = h.value;
1616
- })) : (m.issues.length && n.issues.push(...N(a, m.issues)), n.value[p] = m.value);
1615
+ h.issues.length && n.issues.push(...j(a, h.issues)), n.value[p] = h.value;
1616
+ })) : (m.issues.length && n.issues.push(...j(a, m.issues)), n.value[p] = m.value);
1617
1617
  }
1618
1618
  let c;
1619
1619
  for (const a in o)
@@ -1651,8 +1651,8 @@ const Sr = /* @__PURE__ */ l("$ZodRecord", (e, t) => {
1651
1651
  }
1652
1652
  const f = t.valueType._zod.run({ value: o[u], issues: [] }, r);
1653
1653
  f instanceof Promise ? i.push(f.then((p) => {
1654
- p.issues.length && n.issues.push(...N(u, p.issues)), n.value[c.value] = p.value;
1655
- })) : (f.issues.length && n.issues.push(...N(u, f.issues)), n.value[c.value] = f.value);
1654
+ p.issues.length && n.issues.push(...j(u, p.issues)), n.value[c.value] = p.value;
1655
+ })) : (f.issues.length && n.issues.push(...j(u, f.issues)), n.value[c.value] = f.value);
1656
1656
  }
1657
1657
  }
1658
1658
  return i.length ? Promise.all(i).then(() => n) : n;
@@ -1694,17 +1694,17 @@ const Sr = /* @__PURE__ */ l("$ZodRecord", (e, t) => {
1694
1694
  return n.value = o, n.fallback = !0, n;
1695
1695
  };
1696
1696
  });
1697
- function Ie(e, t) {
1697
+ function Te(e, t) {
1698
1698
  return t === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e;
1699
1699
  }
1700
1700
  const ft = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1701
1701
  v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
1702
1702
  const n = t.innerType._zod.pattern;
1703
- return n ? new RegExp(`^(${le(n.source)})?$`) : void 0;
1703
+ return n ? new RegExp(`^(${fe(n.source)})?$`) : void 0;
1704
1704
  }), e._zod.parse = (n, r) => {
1705
1705
  if (t.innerType._zod.optin === "optional") {
1706
1706
  const o = n.value, i = t.innerType._zod.run(n, r);
1707
- return i instanceof Promise ? i.then((s) => Ie(s, o)) : Ie(i, o);
1707
+ return i instanceof Promise ? i.then((s) => Te(s, o)) : Te(i, o);
1708
1708
  }
1709
1709
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1710
1710
  };
@@ -1713,7 +1713,7 @@ const ft = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1713
1713
  }), Pr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
1714
1714
  v.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1715
1715
  const n = t.innerType._zod.pattern;
1716
- return n ? new RegExp(`^(${le(n.source)}|null)$`) : void 0;
1716
+ return n ? new RegExp(`^(${fe(n.source)}|null)$`) : void 0;
1717
1717
  }), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1718
1718
  }), Nr = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
1719
1719
  v.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
@@ -1722,10 +1722,10 @@ const ft = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1722
1722
  if (n.value === void 0)
1723
1723
  return n.value = t.defaultValue, n;
1724
1724
  const o = t.innerType._zod.run(n, r);
1725
- return o instanceof Promise ? o.then((i) => Te(i, t)) : Te(o, t);
1725
+ return o instanceof Promise ? o.then((i) => Ee(i, t)) : Ee(o, t);
1726
1726
  };
1727
1727
  });
1728
- function Te(e, t) {
1728
+ function Ee(e, t) {
1729
1729
  return e.value === void 0 && (e.value = t.defaultValue), e;
1730
1730
  }
1731
1731
  const jr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
@@ -1736,10 +1736,10 @@ const jr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
1736
1736
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1737
1737
  }), e._zod.parse = (n, r) => {
1738
1738
  const o = t.innerType._zod.run(n, r);
1739
- return o instanceof Promise ? o.then((i) => Ee(i, e)) : Ee(o, e);
1739
+ return o instanceof Promise ? o.then((i) => Pe(i, e)) : Pe(o, e);
1740
1740
  };
1741
1741
  });
1742
- function Ee(e, t) {
1742
+ function Pe(e, t) {
1743
1743
  return !e.issues.length && e.value === void 0 && e.issues.push({
1744
1744
  code: "invalid_type",
1745
1745
  expected: "nonoptional",
@@ -1784,10 +1784,10 @@ const Cr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
1784
1784
  if (r.direction === "backward")
1785
1785
  return t.innerType._zod.run(n, r);
1786
1786
  const o = t.innerType._zod.run(n, r);
1787
- return o instanceof Promise ? o.then(Pe) : Pe(o);
1787
+ return o instanceof Promise ? o.then(Ne) : Ne(o);
1788
1788
  };
1789
1789
  });
1790
- function Pe(e) {
1790
+ function Ne(e) {
1791
1791
  return e.value = Object.freeze(e.value), e;
1792
1792
  }
1793
1793
  const xr = /* @__PURE__ */ l("$ZodLazy", (e, t) => {
@@ -1799,11 +1799,11 @@ const xr = /* @__PURE__ */ l("$ZodLazy", (e, t) => {
1799
1799
  O.init(e, t), v.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1800
1800
  const r = n.value, o = t.fn(r);
1801
1801
  if (o instanceof Promise)
1802
- return o.then((i) => Ne(i, n, r, e));
1803
- Ne(o, n, r, e);
1802
+ return o.then((i) => je(i, n, r, e));
1803
+ je(o, n, r, e);
1804
1804
  };
1805
1805
  });
1806
- function Ne(e, t, n, r) {
1806
+ function je(e, t, n, r) {
1807
1807
  if (!e) {
1808
1808
  const o = {
1809
1809
  code: "custom",
@@ -1818,7 +1818,7 @@ function Ne(e, t, n, r) {
1818
1818
  r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(V(o));
1819
1819
  }
1820
1820
  }
1821
- var je;
1821
+ var Ae;
1822
1822
  class Fr {
1823
1823
  constructor() {
1824
1824
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
@@ -1851,7 +1851,7 @@ class Fr {
1851
1851
  function Jr() {
1852
1852
  return new Fr();
1853
1853
  }
1854
- (je = globalThis).__zod_globalRegistry ?? (je.__zod_globalRegistry = Jr());
1854
+ (Ae = globalThis).__zod_globalRegistry ?? (Ae.__zod_globalRegistry = Jr());
1855
1855
  const M = globalThis.__zod_globalRegistry;
1856
1856
  // @__NO_SIDE_EFFECTS__
1857
1857
  function Mr(e, t) {
@@ -1871,7 +1871,7 @@ function pt(e, t) {
1871
1871
  });
1872
1872
  }
1873
1873
  // @__NO_SIDE_EFFECTS__
1874
- function Ae(e, t) {
1874
+ function Re(e, t) {
1875
1875
  return new e({
1876
1876
  type: "string",
1877
1877
  format: "guid",
@@ -2189,7 +2189,7 @@ function wo(e, t) {
2189
2189
  });
2190
2190
  }
2191
2191
  // @__NO_SIDE_EFFECTS__
2192
- function Re(e, t) {
2192
+ function De(e, t) {
2193
2193
  return new ot({
2194
2194
  check: "less_than",
2195
2195
  ...d(t),
@@ -2207,7 +2207,7 @@ function Y(e, t) {
2207
2207
  });
2208
2208
  }
2209
2209
  // @__NO_SIDE_EFFECTS__
2210
- function De(e, t) {
2210
+ function Ce(e, t) {
2211
2211
  return new st({
2212
2212
  check: "greater_than",
2213
2213
  ...d(t),
@@ -2225,7 +2225,7 @@ function q(e, t) {
2225
2225
  });
2226
2226
  }
2227
2227
  // @__NO_SIDE_EFFECTS__
2228
- function Ce(e, t) {
2228
+ function xe(e, t) {
2229
2229
  return new On({
2230
2230
  check: "multiple_of",
2231
2231
  ...d(t),
@@ -2871,11 +2871,11 @@ const ws = (e, t) => {
2871
2871
  });
2872
2872
  }, I = /* @__PURE__ */ l("ZodError", ws, {
2873
2873
  Parent: Error
2874
- }), ks = /* @__PURE__ */ pe(I), $s = /* @__PURE__ */ de(I), Zs = /* @__PURE__ */ te(I), Ss = /* @__PURE__ */ ne(I), Os = /* @__PURE__ */ Bt(I), Is = /* @__PURE__ */ Wt(I), Ts = /* @__PURE__ */ Kt(I), Es = /* @__PURE__ */ Gt(I), Ps = /* @__PURE__ */ Yt(I), Ns = /* @__PURE__ */ qt(I), js = /* @__PURE__ */ Xt(I), As = /* @__PURE__ */ Ht(I), xe = /* @__PURE__ */ new WeakMap();
2874
+ }), ks = /* @__PURE__ */ de(I), $s = /* @__PURE__ */ he(I), Zs = /* @__PURE__ */ te(I), Ss = /* @__PURE__ */ ne(I), Os = /* @__PURE__ */ Bt(I), Is = /* @__PURE__ */ Wt(I), Ts = /* @__PURE__ */ Kt(I), Es = /* @__PURE__ */ Gt(I), Ps = /* @__PURE__ */ Yt(I), Ns = /* @__PURE__ */ qt(I), js = /* @__PURE__ */ Xt(I), As = /* @__PURE__ */ Ht(I), Ue = /* @__PURE__ */ new WeakMap();
2875
2875
  function B(e, t, n) {
2876
2876
  const r = Object.getPrototypeOf(e);
2877
- let o = xe.get(r);
2878
- if (o || (o = /* @__PURE__ */ new Set(), xe.set(r, o)), !o.has(t)) {
2877
+ let o = Ue.get(r);
2878
+ if (o || (o = /* @__PURE__ */ new Set(), Ue.set(r, o)), !o.has(t)) {
2879
2879
  o.add(t);
2880
2880
  for (const i in n) {
2881
2881
  const s = n[i];
@@ -2911,7 +2911,7 @@ const z = /* @__PURE__ */ l("ZodType", (e, t) => (v.init(e, t), Object.assign(e[
2911
2911
  }), e.toJSONSchema = Uo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (n, r) => ks(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Zs(e, n, r), e.parseAsync = async (n, r) => $s(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ss(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Os(e, n, r), e.decode = (n, r) => Is(e, n, r), e.encodeAsync = async (n, r) => Ts(e, n, r), e.decodeAsync = async (n, r) => Es(e, n, r), e.safeEncode = (n, r) => Ps(e, n, r), e.safeDecode = (n, r) => Ns(e, n, r), e.safeEncodeAsync = async (n, r) => js(e, n, r), e.safeDecodeAsync = async (n, r) => As(e, n, r), B(e, "ZodType", {
2912
2912
  check(...n) {
2913
2913
  const r = this.def;
2914
- return this.clone(j(r, {
2914
+ return this.clone(A(r, {
2915
2915
  checks: [
2916
2916
  ...r.checks ?? [],
2917
2917
  ...n.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
@@ -2922,7 +2922,7 @@ const z = /* @__PURE__ */ l("ZodType", (e, t) => (v.init(e, t), Object.assign(e[
2922
2922
  return this.check(...n);
2923
2923
  },
2924
2924
  clone(n, r) {
2925
- return A(this, n, r);
2925
+ return N(this, n, r);
2926
2926
  },
2927
2927
  brand() {
2928
2928
  return this;
@@ -3006,7 +3006,7 @@ const z = /* @__PURE__ */ l("ZodType", (e, t) => (v.init(e, t), Object.assign(e[
3006
3006
  },
3007
3007
  configurable: !0
3008
3008
  }), e)), zt = /* @__PURE__ */ l("_ZodString", (e, t) => {
3009
- he.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => Jo(e, r, o);
3009
+ me.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => Jo(e, r, o);
3010
3010
  const n = e._zod.bag;
3011
3011
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, B(e, "_ZodString", {
3012
3012
  regex(...r) {
@@ -3056,7 +3056,7 @@ const z = /* @__PURE__ */ l("ZodType", (e, t) => (v.init(e, t), Object.assign(e[
3056
3056
  }
3057
3057
  });
3058
3058
  }), Rs = /* @__PURE__ */ l("ZodString", (e, t) => {
3059
- he.init(e, t), zt.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ pt(yt, n)), e.url = (n) => e.check(/* @__PURE__ */ Kr(Cs, n)), e.jwt = (n) => e.check(/* @__PURE__ */ co(Hs, n)), e.emoji = (n) => e.check(/* @__PURE__ */ Gr(xs, n)), e.guid = (n) => e.check(/* @__PURE__ */ Ae(Ue, n)), e.uuid = (n) => e.check(/* @__PURE__ */ Lr(G, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ Vr(G, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ Br(G, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ Wr(G, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ Yr(Us, n)), e.guid = (n) => e.check(/* @__PURE__ */ Ae(Ue, n)), e.cuid = (n) => e.check(/* @__PURE__ */ qr(Fs, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ Xr(Js, n)), e.ulid = (n) => e.check(/* @__PURE__ */ Hr(Ms, n)), e.base64 = (n) => e.check(/* @__PURE__ */ so(Ys, n)), e.base64url = (n) => e.check(/* @__PURE__ */ io(qs, n)), e.xid = (n) => e.check(/* @__PURE__ */ Qr(Ls, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ eo(Vs, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ to(Bs, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ no(Ws, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ ro(Ks, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ oo(Gs, n)), e.e164 = (n) => e.check(/* @__PURE__ */ uo(Xs, n)), e.datetime = (n) => e.check(ms(n)), e.date = (n) => e.check(gs(n)), e.time = (n) => e.check(zs(n)), e.duration = (n) => e.check(bs(n));
3059
+ me.init(e, t), zt.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ pt(yt, n)), e.url = (n) => e.check(/* @__PURE__ */ Kr(Cs, n)), e.jwt = (n) => e.check(/* @__PURE__ */ co(Hs, n)), e.emoji = (n) => e.check(/* @__PURE__ */ Gr(xs, n)), e.guid = (n) => e.check(/* @__PURE__ */ Re(Fe, n)), e.uuid = (n) => e.check(/* @__PURE__ */ Lr(G, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ Vr(G, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ Br(G, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ Wr(G, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ Yr(Us, n)), e.guid = (n) => e.check(/* @__PURE__ */ Re(Fe, n)), e.cuid = (n) => e.check(/* @__PURE__ */ qr(Fs, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ Xr(Js, n)), e.ulid = (n) => e.check(/* @__PURE__ */ Hr(Ms, n)), e.base64 = (n) => e.check(/* @__PURE__ */ so(Ys, n)), e.base64url = (n) => e.check(/* @__PURE__ */ io(qs, n)), e.xid = (n) => e.check(/* @__PURE__ */ Qr(Ls, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ eo(Vs, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ to(Bs, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ no(Ws, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ ro(Ks, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ oo(Gs, n)), e.e164 = (n) => e.check(/* @__PURE__ */ uo(Xs, n)), e.datetime = (n) => e.check(ms(n)), e.date = (n) => e.check(gs(n)), e.time = (n) => e.check(zs(n)), e.duration = (n) => e.check(bs(n));
3060
3060
  });
3061
3061
  function Ds(e) {
3062
3062
  return /* @__PURE__ */ Mr(Rs, e);
@@ -3069,7 +3069,7 @@ const w = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3069
3069
  function Di(e) {
3070
3070
  return /* @__PURE__ */ pt(yt, e);
3071
3071
  }
3072
- const Ue = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3072
+ const Fe = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3073
3073
  Jn.init(e, t), w.init(e, t);
3074
3074
  }), G = /* @__PURE__ */ l("ZodUUID", (e, t) => {
3075
3075
  Mn.init(e, t), w.init(e, t);
@@ -3108,7 +3108,7 @@ const Ue = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3108
3108
  }), bt = /* @__PURE__ */ l("ZodNumber", (e, t) => {
3109
3109
  ut.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => Mo(e, r, o), B(e, "ZodNumber", {
3110
3110
  gt(r, o) {
3111
- return this.check(/* @__PURE__ */ De(r, o));
3111
+ return this.check(/* @__PURE__ */ Ce(r, o));
3112
3112
  },
3113
3113
  gte(r, o) {
3114
3114
  return this.check(/* @__PURE__ */ q(r, o));
@@ -3117,7 +3117,7 @@ const Ue = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3117
3117
  return this.check(/* @__PURE__ */ q(r, o));
3118
3118
  },
3119
3119
  lt(r, o) {
3120
- return this.check(/* @__PURE__ */ Re(r, o));
3120
+ return this.check(/* @__PURE__ */ De(r, o));
3121
3121
  },
3122
3122
  lte(r, o) {
3123
3123
  return this.check(/* @__PURE__ */ Y(r, o));
@@ -3126,28 +3126,28 @@ const Ue = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3126
3126
  return this.check(/* @__PURE__ */ Y(r, o));
3127
3127
  },
3128
3128
  int(r) {
3129
- return this.check(Fe(r));
3129
+ return this.check(Je(r));
3130
3130
  },
3131
3131
  safe(r) {
3132
- return this.check(Fe(r));
3132
+ return this.check(Je(r));
3133
3133
  },
3134
3134
  positive(r) {
3135
- return this.check(/* @__PURE__ */ De(0, r));
3135
+ return this.check(/* @__PURE__ */ Ce(0, r));
3136
3136
  },
3137
3137
  nonnegative(r) {
3138
3138
  return this.check(/* @__PURE__ */ q(0, r));
3139
3139
  },
3140
3140
  negative(r) {
3141
- return this.check(/* @__PURE__ */ Re(0, r));
3141
+ return this.check(/* @__PURE__ */ De(0, r));
3142
3142
  },
3143
3143
  nonpositive(r) {
3144
3144
  return this.check(/* @__PURE__ */ Y(0, r));
3145
3145
  },
3146
3146
  multipleOf(r, o) {
3147
- return this.check(/* @__PURE__ */ Ce(r, o));
3147
+ return this.check(/* @__PURE__ */ xe(r, o));
3148
3148
  },
3149
3149
  step(r, o) {
3150
- return this.check(/* @__PURE__ */ Ce(r, o));
3150
+ return this.check(/* @__PURE__ */ xe(r, o));
3151
3151
  },
3152
3152
  finite() {
3153
3153
  return this;
@@ -3162,7 +3162,7 @@ function Ci(e) {
3162
3162
  const Qs = /* @__PURE__ */ l("ZodNumberFormat", (e, t) => {
3163
3163
  pr.init(e, t), bt.init(e, t);
3164
3164
  });
3165
- function Fe(e) {
3165
+ function Je(e) {
3166
3166
  return /* @__PURE__ */ mo(Qs, e);
3167
3167
  }
3168
3168
  const ei = /* @__PURE__ */ l("ZodBoolean", (e, t) => {
@@ -3186,7 +3186,7 @@ function Fi() {
3186
3186
  const ri = /* @__PURE__ */ l("ZodUnknown", (e, t) => {
3187
3187
  _r.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Go();
3188
3188
  });
3189
- function Je() {
3189
+ function Me() {
3190
3190
  return /* @__PURE__ */ zo(ri);
3191
3191
  }
3192
3192
  const oi = /* @__PURE__ */ l("ZodNever", (e, t) => {
@@ -3240,10 +3240,10 @@ const li = /* @__PURE__ */ l("ZodObject", (e, t) => {
3240
3240
  return this.clone({ ...this._zod.def, catchall: n });
3241
3241
  },
3242
3242
  passthrough() {
3243
- return this.clone({ ...this._zod.def, catchall: Je() });
3243
+ return this.clone({ ...this._zod.def, catchall: Me() });
3244
3244
  },
3245
3245
  loose() {
3246
- return this.clone({ ...this._zod.def, catchall: Je() });
3246
+ return this.clone({ ...this._zod.def, catchall: Me() });
3247
3247
  },
3248
3248
  strict() {
3249
3249
  return this.clone({ ...this._zod.def, catchall: si() });
@@ -3328,23 +3328,32 @@ function Bi(e, t, n) {
3328
3328
  ...d(o)
3329
3329
  });
3330
3330
  }
3331
- const Me = /* @__PURE__ */ l("ZodRecord", (e, t) => {
3331
+ const ue = /* @__PURE__ */ l("ZodRecord", (e, t) => {
3332
3332
  Sr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ss(e, n, r, o), e.keyType = t.keyType, e.valueType = t.valueType;
3333
3333
  });
3334
3334
  function Wi(e, t, n) {
3335
- return !t || !t._zod ? new Me({
3335
+ return !t || !t._zod ? new ue({
3336
3336
  type: "record",
3337
3337
  keyType: Ds(),
3338
3338
  valueType: e,
3339
3339
  ...d(t)
3340
- }) : new Me({
3340
+ }) : new ue({
3341
3341
  type: "record",
3342
3342
  keyType: e,
3343
3343
  valueType: t,
3344
3344
  ...d(n)
3345
3345
  });
3346
3346
  }
3347
- const ue = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3347
+ function Ki(e, t, n) {
3348
+ const r = N(e);
3349
+ return r._zod.values = void 0, new ue({
3350
+ type: "record",
3351
+ keyType: r,
3352
+ valueType: t,
3353
+ ...d(n)
3354
+ });
3355
+ }
3356
+ const ce = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3348
3357
  Or.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, i) => qo(e, r, o), e.enum = t.entries, e.options = Object.values(t.entries);
3349
3358
  const n = new Set(Object.keys(t.entries));
3350
3359
  e.extract = (r, o) => {
@@ -3354,7 +3363,7 @@ const ue = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3354
3363
  i[s] = t.entries[s];
3355
3364
  else
3356
3365
  throw new Error(`Key ${s} not found in enum`);
3357
- return new ue({
3366
+ return new ce({
3358
3367
  ...t,
3359
3368
  checks: [],
3360
3369
  ...d(o),
@@ -3367,7 +3376,7 @@ const ue = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3367
3376
  delete i[s];
3368
3377
  else
3369
3378
  throw new Error(`Key ${s} not found in enum`);
3370
- return new ue({
3379
+ return new ce({
3371
3380
  ...t,
3372
3381
  checks: [],
3373
3382
  ...d(o),
@@ -3377,7 +3386,7 @@ const ue = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3377
3386
  });
3378
3387
  function _i(e, t) {
3379
3388
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
3380
- return new ue({
3389
+ return new ce({
3381
3390
  type: "enum",
3382
3391
  entries: n,
3383
3392
  ...d(t)
@@ -3392,7 +3401,7 @@ const gi = /* @__PURE__ */ l("ZodLiteral", (e, t) => {
3392
3401
  }
3393
3402
  });
3394
3403
  });
3395
- function Ki(e, t) {
3404
+ function Gi(e, t) {
3396
3405
  return new gi({
3397
3406
  type: "literal",
3398
3407
  values: Array.isArray(e) ? e : [e],
@@ -3515,26 +3524,26 @@ function Ni(e) {
3515
3524
  const ji = /* @__PURE__ */ l("ZodLazy", (e, t) => {
3516
3525
  xr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => ds(e, n, r, o), e.unwrap = () => e._zod.def.getter();
3517
3526
  });
3518
- function Gi(e) {
3527
+ function Yi(e) {
3519
3528
  return new ji({
3520
3529
  type: "lazy",
3521
3530
  getter: e
3522
3531
  });
3523
3532
  }
3524
- const me = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3533
+ const _e = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3525
3534
  Ur.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ho(e, n);
3526
3535
  });
3527
- function Yi(e, t) {
3528
- return /* @__PURE__ */ Ro(me, (() => !0), t);
3536
+ function qi(e, t) {
3537
+ return /* @__PURE__ */ Ro(_e, (() => !0), t);
3529
3538
  }
3530
3539
  function Ai(e, t = {}) {
3531
- return /* @__PURE__ */ Do(me, e, t);
3540
+ return /* @__PURE__ */ Do(_e, e, t);
3532
3541
  }
3533
3542
  function Ri(e, t) {
3534
3543
  return /* @__PURE__ */ Co(e, t);
3535
3544
  }
3536
- function qi(e, t = {}) {
3537
- const n = new me({
3545
+ function Xi(e, t = {}) {
3546
+ const n = new _e({
3538
3547
  type: "custom",
3539
3548
  check: "custom",
3540
3549
  fn: (r) => r instanceof e,
@@ -3552,33 +3561,34 @@ function qi(e, t = {}) {
3552
3561
  }, n;
3553
3562
  }
3554
3563
  export {
3555
- wi as A,
3564
+ kt as A,
3565
+ wi as B,
3556
3566
  Rs as Z,
3557
3567
  Ji as _,
3558
3568
  ai as a,
3559
- _i as b,
3560
- xi as c,
3561
- qi as d,
3569
+ xi as b,
3570
+ _i as c,
3571
+ Xi as d,
3562
3572
  Mi as e,
3563
3573
  fi as f,
3564
- Gi as g,
3574
+ Vi as g,
3565
3575
  Yi as h,
3566
- Vi as i,
3576
+ qi as i,
3567
3577
  Di as j,
3568
3578
  Fi as k,
3569
- Ki as l,
3579
+ Gi as l,
3570
3580
  Ui as m,
3571
3581
  Ci as n,
3572
3582
  Li as o,
3573
- bt as p,
3574
- ei as q,
3583
+ Ki as p,
3584
+ bt as q,
3575
3585
  Wi as r,
3576
3586
  Ds as s,
3577
3587
  Bi as t,
3578
- Je as u,
3579
- ue as v,
3580
- ci as w,
3581
- li as x,
3582
- ki as y,
3583
- kt as z
3588
+ Me as u,
3589
+ ei as v,
3590
+ ce as w,
3591
+ ci as x,
3592
+ li as y,
3593
+ ki as z
3584
3594
  };