@wp-playground/mcp 3.1.36 → 3.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -49,14 +49,14 @@ class st extends Error {
49
49
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
50
50
  }
51
51
  }
52
- class zs extends Error {
52
+ class $s extends Error {
53
53
  constructor(e) {
54
54
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
55
55
  }
56
56
  }
57
- const $s = {};
57
+ const zs = {};
58
58
  function Fe(t) {
59
- return $s;
59
+ return zs;
60
60
  }
61
61
  function Ps(t) {
62
62
  const e = Object.values(t).filter((r) => typeof r == "number");
@@ -92,13 +92,13 @@ function go(t, e) {
92
92
  const i = n > s ? n : s, o = Number.parseInt(t.toFixed(i).replace(".", "")), a = Number.parseInt(e.toFixed(i).replace(".", ""));
93
93
  return o % a / 10 ** i;
94
94
  }
95
- const zr = Symbol("evaluating");
95
+ const $r = Symbol("evaluating");
96
96
  function B(t, e, n) {
97
97
  let r;
98
98
  Object.defineProperty(t, e, {
99
99
  get() {
100
- if (r !== zr)
101
- return r === void 0 && (r = zr, r = n()), r;
100
+ if (r !== $r)
101
+ return r === void 0 && (r = $r, r = n()), r;
102
102
  },
103
103
  set(s) {
104
104
  Object.defineProperty(t, e, {
@@ -125,7 +125,7 @@ function He(...t) {
125
125
  }
126
126
  return Object.defineProperties({}, e);
127
127
  }
128
- function $r(t) {
128
+ function zr(t) {
129
129
  return JSON.stringify(t);
130
130
  }
131
131
  function _o(t) {
@@ -244,7 +244,7 @@ function To(t, e) {
244
244
  });
245
245
  return Me(t, s);
246
246
  }
247
- function zo(t, e) {
247
+ function $o(t, e) {
248
248
  if (!it(e))
249
249
  throw new Error("Invalid input to safeExtend: expected a plain object");
250
250
  const n = He(t._zod.def, {
@@ -255,7 +255,7 @@ function zo(t, e) {
255
255
  });
256
256
  return Me(t, n);
257
257
  }
258
- function $o(t, e) {
258
+ function zo(t, e) {
259
259
  const n = He(t._zod.def, {
260
260
  get shape() {
261
261
  const r = { ...t._zod.def.shape, ...e._zod.def.shape };
@@ -741,7 +741,7 @@ const aa = (t) => {
741
741
  n.value = e.tx(n.value);
742
742
  };
743
743
  });
744
- class za {
744
+ class $a {
745
745
  constructor(e = []) {
746
746
  this.content = [], this.indent = 0, this && (this.args = e);
747
747
  }
@@ -764,14 +764,14 @@ class za {
764
764
  `));
765
765
  }
766
766
  }
767
- const $a = {
767
+ const za = {
768
768
  major: 4,
769
769
  minor: 3,
770
770
  patch: 6
771
771
  }, X = /* @__PURE__ */ _("$ZodType", (t, e) => {
772
772
  var s;
773
773
  var n;
774
- t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = $a;
774
+ t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = za;
775
775
  const r = [...t._zod.def.checks ?? []];
776
776
  t._zod.traits.has("$ZodCheck") && r.unshift(t);
777
777
  for (const i of r)
@@ -1223,8 +1223,8 @@ const Us = /* @__PURE__ */ _("$ZodObject", (t, e) => {
1223
1223
  Us.init(t, e);
1224
1224
  const n = t._zod.parse, r = on(() => qs(e)), s = (p) => {
1225
1225
  var Z;
1226
- const m = new za(["shape", "payload", "ctx"]), S = r.value, T = (R) => {
1227
- const te = $r(R);
1226
+ const m = new $a(["shape", "payload", "ctx"]), S = r.value, T = (R) => {
1227
+ const te = zr(R);
1228
1228
  return `shape[${te}]._zod.run({ value: input[${te}], issues: [] }, ctx)`;
1229
1229
  };
1230
1230
  m.write("const input = payload.value;");
@@ -1234,7 +1234,7 @@ const Us = /* @__PURE__ */ _("$ZodObject", (t, e) => {
1234
1234
  j[R] = `key_${y++}`;
1235
1235
  m.write("const newResult = {};");
1236
1236
  for (const R of S.keys) {
1237
- const te = j[R], ue = $r(R), G = p[R], _e = ((Z = G == null ? void 0 : G._zod) == null ? void 0 : Z.optout) === "optional";
1237
+ const te = j[R], ue = zr(R), G = p[R], _e = ((Z = G == null ? void 0 : G._zod) == null ? void 0 : Z.optout) === "optional";
1238
1238
  m.write(`const ${te} = ${T(R)};`), _e ? m.write(`
1239
1239
  if (${te}.issues.length) {
1240
1240
  if (${ue} in input) {
@@ -1276,7 +1276,7 @@ const Us = /* @__PURE__ */ _("$ZodObject", (t, e) => {
1276
1276
  return (R, te) => v(p, R, te);
1277
1277
  };
1278
1278
  let i;
1279
- const o = wt, a = !$s.jitless, u = a && yo.value, l = e.catchall;
1279
+ const o = wt, a = !zs.jitless, u = a && yo.value, l = e.catchall;
1280
1280
  let d;
1281
1281
  t._zod.parse = (p, m) => {
1282
1282
  d ?? (d = r.value);
@@ -1390,7 +1390,7 @@ const Vs = /* @__PURE__ */ _("$ZodUnion", (t, e) => {
1390
1390
  return i instanceof Promise || o instanceof Promise ? Promise.all([i, o]).then(([c, u]) => Er(n, c, u)) : Er(n, i, o);
1391
1391
  };
1392
1392
  });
1393
- function zn(t, e) {
1393
+ function $n(t, e) {
1394
1394
  if (t === e)
1395
1395
  return { valid: !0, data: t };
1396
1396
  if (t instanceof Date && e instanceof Date && +t == +e)
@@ -1398,7 +1398,7 @@ function zn(t, e) {
1398
1398
  if (it(t) && it(e)) {
1399
1399
  const n = Object.keys(e), r = Object.keys(t).filter((i) => n.indexOf(i) !== -1), s = { ...t, ...e };
1400
1400
  for (const i of r) {
1401
- const o = zn(t[i], e[i]);
1401
+ const o = $n(t[i], e[i]);
1402
1402
  if (!o.valid)
1403
1403
  return {
1404
1404
  valid: !1,
@@ -1413,7 +1413,7 @@ function zn(t, e) {
1413
1413
  return { valid: !1, mergeErrorPath: [] };
1414
1414
  const n = [];
1415
1415
  for (let r = 0; r < t.length; r++) {
1416
- const s = t[r], i = e[r], o = zn(s, i);
1416
+ const s = t[r], i = e[r], o = $n(s, i);
1417
1417
  if (!o.valid)
1418
1418
  return {
1419
1419
  valid: !1,
@@ -1444,7 +1444,7 @@ function Er(t, e, n) {
1444
1444
  const i = [...r].filter(([, a]) => a.l && a.r).map(([a]) => a);
1445
1445
  if (i.length && s && t.issues.push({ ...s, keys: i }), tt(t))
1446
1446
  return t;
1447
- const o = zn(e.value, n.value);
1447
+ const o = $n(e.value, n.value);
1448
1448
  if (!o.valid)
1449
1449
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1450
1450
  return t.value = o.data, t;
@@ -1541,7 +1541,7 @@ const ac = /* @__PURE__ */ _("$ZodRecord", (t, e) => {
1541
1541
  }), lc = /* @__PURE__ */ _("$ZodTransform", (t, e) => {
1542
1542
  X.init(t, e), t._zod.parse = (n, r) => {
1543
1543
  if (r.direction === "backward")
1544
- throw new zs(t.constructor.name);
1544
+ throw new $s(t.constructor.name);
1545
1545
  const s = e.transform(n.value, n);
1546
1546
  if (r.async)
1547
1547
  return (s instanceof Promise ? s : Promise.resolve(s)).then((o) => (n.value = o, n));
@@ -1748,7 +1748,7 @@ function Tc(t, e) {
1748
1748
  });
1749
1749
  }
1750
1750
  // @__NO_SIDE_EFFECTS__
1751
- function zc(t, e) {
1751
+ function $c(t, e) {
1752
1752
  return new t({
1753
1753
  type: "string",
1754
1754
  format: "uuid",
@@ -1759,7 +1759,7 @@ function zc(t, e) {
1759
1759
  });
1760
1760
  }
1761
1761
  // @__NO_SIDE_EFFECTS__
1762
- function $c(t, e) {
1762
+ function zc(t, e) {
1763
1763
  return new t({
1764
1764
  type: "string",
1765
1765
  format: "uuid",
@@ -2528,12 +2528,12 @@ const gu = (t, e = {}) => (n) => {
2528
2528
  }, Tu = (t, e, n, r) => {
2529
2529
  if (e.unrepresentable === "throw")
2530
2530
  throw new Error("NaN cannot be represented in JSON Schema");
2531
- }, zu = (t, e, n, r) => {
2531
+ }, $u = (t, e, n, r) => {
2532
2532
  const s = n, i = t._zod.pattern;
2533
2533
  if (!i)
2534
2534
  throw new Error("Pattern not found in template literal");
2535
2535
  s.type = "string", s.pattern = i.source;
2536
- }, $u = (t, e, n, r) => {
2536
+ }, zu = (t, e, n, r) => {
2537
2537
  const s = n, i = {
2538
2538
  type: "string",
2539
2539
  format: "binary",
@@ -2707,8 +2707,8 @@ const gu = (t, e = {}) => (n) => {
2707
2707
  enum: ei,
2708
2708
  literal: ti,
2709
2709
  nan: Tu,
2710
- template_literal: zu,
2711
- file: $u,
2710
+ template_literal: $u,
2711
+ file: zu,
2712
2712
  success: Pu,
2713
2713
  custom: ni,
2714
2714
  function: Ru,
@@ -2846,7 +2846,7 @@ const Fu = (t, e) => {
2846
2846
  const n = t._zod.bag;
2847
2847
  t.format = n.format ?? null, t.minLength = n.minimum ?? null, t.maxLength = n.maximum ?? null, t.regex = (...r) => t.check(/* @__PURE__ */ eu(...r)), t.includes = (...r) => t.check(/* @__PURE__ */ ru(...r)), t.startsWith = (...r) => t.check(/* @__PURE__ */ su(...r)), t.endsWith = (...r) => t.check(/* @__PURE__ */ iu(...r)), t.min = (...r) => t.check(/* @__PURE__ */ qt(...r)), t.max = (...r) => t.check(/* @__PURE__ */ Js(...r)), t.length = (...r) => t.check(/* @__PURE__ */ Bs(...r)), t.nonempty = (...r) => t.check(/* @__PURE__ */ qt(1, ...r)), t.lowercase = (r) => t.check(/* @__PURE__ */ tu(r)), t.uppercase = (r) => t.check(/* @__PURE__ */ nu(r)), t.trim = () => t.check(/* @__PURE__ */ au()), t.normalize = (...r) => t.check(/* @__PURE__ */ ou(...r)), t.toLowerCase = () => t.check(/* @__PURE__ */ cu()), t.toUpperCase = () => t.check(/* @__PURE__ */ uu()), t.slugify = () => t.check(/* @__PURE__ */ lu());
2848
2848
  }), tl = /* @__PURE__ */ _("ZodString", (t, e) => {
2849
- Qn.init(t, e), _i.init(t, e), t.email = (n) => t.check(/* @__PURE__ */ Sc(nl, n)), t.url = (n) => t.check(/* @__PURE__ */ Rc(rl, n)), t.jwt = (n) => t.check(/* @__PURE__ */ Uc(yl, n)), t.emoji = (n) => t.check(/* @__PURE__ */ Nc(sl, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Fr, n)), t.uuid = (n) => t.check(/* @__PURE__ */ Tc(jt, n)), t.uuidv4 = (n) => t.check(/* @__PURE__ */ zc(jt, n)), t.uuidv6 = (n) => t.check(/* @__PURE__ */ $c(jt, n)), t.uuidv7 = (n) => t.check(/* @__PURE__ */ Pc(jt, n)), t.nanoid = (n) => t.check(/* @__PURE__ */ Ec(il, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Fr, n)), t.cuid = (n) => t.check(/* @__PURE__ */ Ic(ol, n)), t.cuid2 = (n) => t.check(/* @__PURE__ */ Cc(al, n)), t.ulid = (n) => t.check(/* @__PURE__ */ Oc(cl, n)), t.base64 = (n) => t.check(/* @__PURE__ */ Dc(pl, n)), t.base64url = (n) => t.check(/* @__PURE__ */ qc(gl, n)), t.xid = (n) => t.check(/* @__PURE__ */ xc(ul, n)), t.ksuid = (n) => t.check(/* @__PURE__ */ Zc(ll, n)), t.ipv4 = (n) => t.check(/* @__PURE__ */ Ac(dl, n)), t.ipv6 = (n) => t.check(/* @__PURE__ */ jc(fl, n)), t.cidrv4 = (n) => t.check(/* @__PURE__ */ Mc(hl, n)), t.cidrv6 = (n) => t.check(/* @__PURE__ */ Lc(ml, n)), t.e164 = (n) => t.check(/* @__PURE__ */ Fc(_l, n)), t.datetime = (n) => t.check(gi(n)), t.date = (n) => t.check(ju(n)), t.time = (n) => t.check(Lu(n)), t.duration = (n) => t.check(qu(n));
2849
+ Qn.init(t, e), _i.init(t, e), t.email = (n) => t.check(/* @__PURE__ */ Sc(nl, n)), t.url = (n) => t.check(/* @__PURE__ */ Rc(rl, n)), t.jwt = (n) => t.check(/* @__PURE__ */ Uc(yl, n)), t.emoji = (n) => t.check(/* @__PURE__ */ Nc(sl, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Fr, n)), t.uuid = (n) => t.check(/* @__PURE__ */ Tc(jt, n)), t.uuidv4 = (n) => t.check(/* @__PURE__ */ $c(jt, n)), t.uuidv6 = (n) => t.check(/* @__PURE__ */ zc(jt, n)), t.uuidv7 = (n) => t.check(/* @__PURE__ */ Pc(jt, n)), t.nanoid = (n) => t.check(/* @__PURE__ */ Ec(il, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Fr, n)), t.cuid = (n) => t.check(/* @__PURE__ */ Ic(ol, n)), t.cuid2 = (n) => t.check(/* @__PURE__ */ Cc(al, n)), t.ulid = (n) => t.check(/* @__PURE__ */ Oc(cl, n)), t.base64 = (n) => t.check(/* @__PURE__ */ Dc(pl, n)), t.base64url = (n) => t.check(/* @__PURE__ */ qc(gl, n)), t.xid = (n) => t.check(/* @__PURE__ */ xc(ul, n)), t.ksuid = (n) => t.check(/* @__PURE__ */ Zc(ll, n)), t.ipv4 = (n) => t.check(/* @__PURE__ */ Ac(dl, n)), t.ipv6 = (n) => t.check(/* @__PURE__ */ jc(fl, n)), t.cidrv4 = (n) => t.check(/* @__PURE__ */ Mc(hl, n)), t.cidrv6 = (n) => t.check(/* @__PURE__ */ Lc(ml, n)), t.e164 = (n) => t.check(/* @__PURE__ */ Fc(_l, n)), t.datetime = (n) => t.check(gi(n)), t.date = (n) => t.check(ju(n)), t.time = (n) => t.check(Lu(n)), t.duration = (n) => t.check(qu(n));
2850
2850
  });
2851
2851
  function g(t) {
2852
2852
  return /* @__PURE__ */ kc(tl, t);
@@ -2929,16 +2929,16 @@ const Sl = /* @__PURE__ */ _("ZodNever", (t, e) => {
2929
2929
  function Tl(t) {
2930
2930
  return /* @__PURE__ */ Xc(Sl, t);
2931
2931
  }
2932
- const zl = /* @__PURE__ */ _("ZodArray", (t, e) => {
2932
+ const $l = /* @__PURE__ */ _("ZodArray", (t, e) => {
2933
2933
  rc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => si(t, n, r, s), t.element = e.element, t.min = (n, r) => t.check(/* @__PURE__ */ qt(n, r)), t.nonempty = (n) => t.check(/* @__PURE__ */ qt(1, n)), t.max = (n, r) => t.check(/* @__PURE__ */ Js(n, r)), t.length = (n, r) => t.check(/* @__PURE__ */ Bs(n, r)), t.unwrap = () => t.element;
2934
2934
  });
2935
2935
  function V(t, e) {
2936
- return /* @__PURE__ */ du(zl, t, e);
2936
+ return /* @__PURE__ */ du($l, t, e);
2937
2937
  }
2938
2938
  const bi = /* @__PURE__ */ _("ZodObject", (t, e) => {
2939
- sc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => ii(t, n, r, s), B(t, "shape", () => e.shape), t.keyof = () => ze(Object.keys(t._zod.def.shape)), t.catchall = (n) => t.clone({ ...t._zod.def, catchall: n }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: se() }), t.loose = () => t.clone({ ...t._zod.def, catchall: se() }), t.strict = () => t.clone({ ...t._zod.def, catchall: Tl() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (n) => To(t, n), t.safeExtend = (n) => zo(t, n), t.merge = (n) => $o(t, n), t.pick = (n) => ko(t, n), t.omit = (n) => So(t, n), t.partial = (...n) => Po(Ti, t, n[0]), t.required = (...n) => Ro(zi, t, n[0]);
2939
+ sc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => ii(t, n, r, s), B(t, "shape", () => e.shape), t.keyof = () => $e(Object.keys(t._zod.def.shape)), t.catchall = (n) => t.clone({ ...t._zod.def, catchall: n }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: se() }), t.loose = () => t.clone({ ...t._zod.def, catchall: se() }), t.strict = () => t.clone({ ...t._zod.def, catchall: Tl() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (n) => To(t, n), t.safeExtend = (n) => $o(t, n), t.merge = (n) => zo(t, n), t.pick = (n) => ko(t, n), t.omit = (n) => So(t, n), t.partial = (...n) => Po(Ti, t, n[0]), t.required = (...n) => Ro($i, t, n[0]);
2940
2940
  });
2941
- function $(t, e) {
2941
+ function z(t, e) {
2942
2942
  const n = {
2943
2943
  type: "object",
2944
2944
  shape: t ?? {},
@@ -2964,11 +2964,11 @@ function ee(t, e) {
2964
2964
  ...N(e)
2965
2965
  });
2966
2966
  }
2967
- const $l = /* @__PURE__ */ _("ZodDiscriminatedUnion", (t, e) => {
2967
+ const zl = /* @__PURE__ */ _("ZodDiscriminatedUnion", (t, e) => {
2968
2968
  wi.init(t, e), ic.init(t, e);
2969
2969
  });
2970
2970
  function ki(t, e, n) {
2971
- return new $l({
2971
+ return new zl({
2972
2972
  type: "union",
2973
2973
  options: e,
2974
2974
  discriminator: t,
@@ -2996,7 +2996,7 @@ function ie(t, e, n) {
2996
2996
  ...N(n)
2997
2997
  });
2998
2998
  }
2999
- const $n = /* @__PURE__ */ _("ZodEnum", (t, e) => {
2999
+ const zn = /* @__PURE__ */ _("ZodEnum", (t, e) => {
3000
3000
  cc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (r, s, i) => ei(t, r, s), t.enum = e.entries, t.options = Object.values(e.entries);
3001
3001
  const n = new Set(Object.keys(e.entries));
3002
3002
  t.extract = (r, s) => {
@@ -3006,7 +3006,7 @@ const $n = /* @__PURE__ */ _("ZodEnum", (t, e) => {
3006
3006
  i[o] = e.entries[o];
3007
3007
  else
3008
3008
  throw new Error(`Key ${o} not found in enum`);
3009
- return new $n({
3009
+ return new zn({
3010
3010
  ...e,
3011
3011
  checks: [],
3012
3012
  ...N(s),
@@ -3019,7 +3019,7 @@ const $n = /* @__PURE__ */ _("ZodEnum", (t, e) => {
3019
3019
  delete i[o];
3020
3020
  else
3021
3021
  throw new Error(`Key ${o} not found in enum`);
3022
- return new $n({
3022
+ return new zn({
3023
3023
  ...e,
3024
3024
  checks: [],
3025
3025
  ...N(s),
@@ -3027,9 +3027,9 @@ const $n = /* @__PURE__ */ _("ZodEnum", (t, e) => {
3027
3027
  });
3028
3028
  };
3029
3029
  });
3030
- function ze(t, e) {
3030
+ function $e(t, e) {
3031
3031
  const n = Array.isArray(t) ? Object.fromEntries(t.map((r) => [r, r])) : t;
3032
- return new $n({
3032
+ return new zn({
3033
3033
  type: "enum",
3034
3034
  entries: n,
3035
3035
  ...N(e)
@@ -3054,7 +3054,7 @@ function C(t, e) {
3054
3054
  const El = /* @__PURE__ */ _("ZodTransform", (t, e) => {
3055
3055
  lc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => ri(t, n), t._zod.parse = (n, r) => {
3056
3056
  if (r.direction === "backward")
3057
- throw new zs(t.constructor.name);
3057
+ throw new $s(t.constructor.name);
3058
3058
  n.addIssue = (i) => {
3059
3059
  if (typeof i == "string")
3060
3060
  n.issues.push(kt(i, n.value, e));
@@ -3124,11 +3124,11 @@ function jl(t, e) {
3124
3124
  }
3125
3125
  });
3126
3126
  }
3127
- const zi = /* @__PURE__ */ _("ZodNonOptional", (t, e) => {
3127
+ const $i = /* @__PURE__ */ _("ZodNonOptional", (t, e) => {
3128
3128
  pc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => li(t, n, r, s), t.unwrap = () => t._zod.def.innerType;
3129
3129
  });
3130
3130
  function Ml(t, e) {
3131
- return new zi({
3131
+ return new $i({
3132
3132
  type: "nonoptional",
3133
3133
  innerType: t,
3134
3134
  ...N(e)
@@ -3164,14 +3164,14 @@ function Ul(t) {
3164
3164
  innerType: t
3165
3165
  });
3166
3166
  }
3167
- const $i = /* @__PURE__ */ _("ZodCustom", (t, e) => {
3167
+ const zi = /* @__PURE__ */ _("ZodCustom", (t, e) => {
3168
3168
  vc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => ni(t, n);
3169
3169
  });
3170
3170
  function Vl(t, e) {
3171
- return /* @__PURE__ */ fu($i, t ?? (() => !0), e);
3171
+ return /* @__PURE__ */ fu(zi, t ?? (() => !0), e);
3172
3172
  }
3173
3173
  function Hl(t, e = {}) {
3174
- return /* @__PURE__ */ hu($i, t, e);
3174
+ return /* @__PURE__ */ hu(zi, t, e);
3175
3175
  }
3176
3176
  function Jl(t) {
3177
3177
  return /* @__PURE__ */ mu(t);
@@ -3191,9 +3191,9 @@ we({
3191
3191
  */
3192
3192
  pollInterval: Y().optional()
3193
3193
  });
3194
- const Wl = $({
3194
+ const Wl = z({
3195
3195
  ttl: Y().optional()
3196
- }), Gl = $({
3196
+ }), Gl = z({
3197
3197
  taskId: g()
3198
3198
  }), tr = we({
3199
3199
  /**
@@ -3204,12 +3204,12 @@ const Wl = $({
3204
3204
  * If specified, this request is related to the provided task.
3205
3205
  */
3206
3206
  [Ye]: Gl.optional()
3207
- }), $e = $({
3207
+ }), ze = z({
3208
3208
  /**
3209
3209
  * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
3210
3210
  */
3211
3211
  _meta: tr.optional()
3212
- }), $t = $e.extend({
3212
+ }), zt = ze.extend({
3213
3213
  /**
3214
3214
  * If specified, the caller is requesting task-augmented execution for this request.
3215
3215
  * The request will return a CreateTaskResult immediately, and the actual result can be
@@ -3219,16 +3219,16 @@ const Wl = $({
3219
3219
  * for task augmentation of specific request types in their capabilities.
3220
3220
  */
3221
3221
  task: Wl.optional()
3222
- }), Kl = (t) => $t.safeParse(t).success, pe = $({
3222
+ }), Kl = (t) => zt.safeParse(t).success, pe = z({
3223
3223
  method: g(),
3224
- params: $e.loose().optional()
3225
- }), Re = $({
3224
+ params: ze.loose().optional()
3225
+ }), Re = z({
3226
3226
  /**
3227
3227
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3228
3228
  * for notes on _meta usage.
3229
3229
  */
3230
3230
  _meta: tr.optional()
3231
- }), Ne = $({
3231
+ }), Ne = z({
3232
3232
  method: g(),
3233
3233
  params: Re.loose().optional()
3234
3234
  }), ge = we({
@@ -3237,14 +3237,14 @@ const Wl = $({
3237
3237
  * for notes on _meta usage.
3238
3238
  */
3239
3239
  _meta: tr.optional()
3240
- }), mn = ee([g(), Y().int()]), Ii = $({
3240
+ }), mn = ee([g(), Y().int()]), Ii = z({
3241
3241
  jsonrpc: C(hn),
3242
3242
  id: mn,
3243
3243
  ...pe.shape
3244
- }).strict(), Hr = (t) => Ii.safeParse(t).success, Ci = $({
3244
+ }).strict(), Hr = (t) => Ii.safeParse(t).success, Ci = z({
3245
3245
  jsonrpc: C(hn),
3246
3246
  ...Ne.shape
3247
- }).strict(), Yl = (t) => Ci.safeParse(t).success, nr = $({
3247
+ }).strict(), Yl = (t) => Ci.safeParse(t).success, nr = z({
3248
3248
  jsonrpc: C(hn),
3249
3249
  id: mn,
3250
3250
  result: ge
@@ -3253,10 +3253,10 @@ var x;
3253
3253
  (function(t) {
3254
3254
  t[t.ConnectionClosed = -32e3] = "ConnectionClosed", t[t.RequestTimeout = -32001] = "RequestTimeout", t[t.ParseError = -32700] = "ParseError", t[t.InvalidRequest = -32600] = "InvalidRequest", t[t.MethodNotFound = -32601] = "MethodNotFound", t[t.InvalidParams = -32602] = "InvalidParams", t[t.InternalError = -32603] = "InternalError", t[t.UrlElicitationRequired = -32042] = "UrlElicitationRequired";
3255
3255
  })(x || (x = {}));
3256
- const rr = $({
3256
+ const rr = z({
3257
3257
  jsonrpc: C(hn),
3258
3258
  id: mn.optional(),
3259
- error: $({
3259
+ error: z({
3260
3260
  /**
3261
3261
  * The error type that occurred.
3262
3262
  */
@@ -3291,7 +3291,7 @@ const sr = ge.strict(), ed = Re.extend({
3291
3291
  }), ir = Ne.extend({
3292
3292
  method: C("notifications/cancelled"),
3293
3293
  params: ed
3294
- }), td = $({
3294
+ }), td = z({
3295
3295
  /**
3296
3296
  * URL or data URI for the icon.
3297
3297
  */
@@ -3314,8 +3314,8 @@ const sr = ge.strict(), ed = Re.extend({
3314
3314
  *
3315
3315
  * If not provided, the client should assume the icon can be used with any theme.
3316
3316
  */
3317
- theme: ze(["light", "dark"]).optional()
3318
- }), Pt = $({
3317
+ theme: $e(["light", "dark"]).optional()
3318
+ }), Pt = z({
3319
3319
  /**
3320
3320
  * Optional set of sized icons that the client can display in a user interface.
3321
3321
  *
@@ -3328,7 +3328,7 @@ const sr = ge.strict(), ed = Re.extend({
3328
3328
  * - `image/webp` - WebP images (modern, efficient format)
3329
3329
  */
3330
3330
  icons: V(td).optional()
3331
- }), at = $({
3331
+ }), at = z({
3332
3332
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3333
3333
  name: g(),
3334
3334
  /**
@@ -3356,9 +3356,9 @@ const sr = ge.strict(), ed = Re.extend({
3356
3356
  * or tools it provides, while a client might describe its intended use case.
3357
3357
  */
3358
3358
  description: g().optional()
3359
- }), nd = er($({
3359
+ }), nd = er(z({
3360
3360
  applyDefaults: he().optional()
3361
- }), ie(g(), se())), rd = Pi((t) => t && typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? { form: {} } : t, er($({
3361
+ }), ie(g(), se())), rd = Pi((t) => t && typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? { form: {} } : t, er(z({
3362
3362
  form: nd.optional(),
3363
3363
  url: me.optional()
3364
3364
  }), ie(g(), se()).optional())), sd = we({
@@ -3407,7 +3407,7 @@ const sr = ge.strict(), ed = Re.extend({
3407
3407
  call: me.optional()
3408
3408
  }).optional()
3409
3409
  }).optional()
3410
- }), od = $({
3410
+ }), od = z({
3411
3411
  /**
3412
3412
  * Experimental, non-standard capabilities that the client supports.
3413
3413
  */
@@ -3415,7 +3415,7 @@ const sr = ge.strict(), ed = Re.extend({
3415
3415
  /**
3416
3416
  * Present if the client supports sampling from an LLM.
3417
3417
  */
3418
- sampling: $({
3418
+ sampling: z({
3419
3419
  /**
3420
3420
  * Present if the client supports context inclusion via includeContext parameter.
3421
3421
  * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
@@ -3433,7 +3433,7 @@ const sr = ge.strict(), ed = Re.extend({
3433
3433
  /**
3434
3434
  * Present if the client supports listing roots.
3435
3435
  */
3436
- roots: $({
3436
+ roots: z({
3437
3437
  /**
3438
3438
  * Whether the client supports issuing notifications for changes to the roots list.
3439
3439
  */
@@ -3443,7 +3443,7 @@ const sr = ge.strict(), ed = Re.extend({
3443
3443
  * Present if the client supports task creation.
3444
3444
  */
3445
3445
  tasks: sd.optional()
3446
- }), ad = $e.extend({
3446
+ }), ad = ze.extend({
3447
3447
  /**
3448
3448
  * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
3449
3449
  */
@@ -3453,7 +3453,7 @@ const sr = ge.strict(), ed = Re.extend({
3453
3453
  }), xi = pe.extend({
3454
3454
  method: C("initialize"),
3455
3455
  params: ad
3456
- }), cd = $({
3456
+ }), cd = z({
3457
3457
  /**
3458
3458
  * Experimental, non-standard capabilities that the server supports.
3459
3459
  */
@@ -3469,7 +3469,7 @@ const sr = ge.strict(), ed = Re.extend({
3469
3469
  /**
3470
3470
  * Present if the server offers any prompt templates.
3471
3471
  */
3472
- prompts: $({
3472
+ prompts: z({
3473
3473
  /**
3474
3474
  * Whether this server supports issuing notifications for changes to the prompt list.
3475
3475
  */
@@ -3478,7 +3478,7 @@ const sr = ge.strict(), ed = Re.extend({
3478
3478
  /**
3479
3479
  * Present if the server offers any resources to read.
3480
3480
  */
3481
- resources: $({
3481
+ resources: z({
3482
3482
  /**
3483
3483
  * Whether this server supports clients subscribing to resource updates.
3484
3484
  */
@@ -3491,7 +3491,7 @@ const sr = ge.strict(), ed = Re.extend({
3491
3491
  /**
3492
3492
  * Present if the server offers any tools to call.
3493
3493
  */
3494
- tools: $({
3494
+ tools: z({
3495
3495
  /**
3496
3496
  * Whether this server supports issuing notifications for changes to the tool list.
3497
3497
  */
@@ -3519,8 +3519,8 @@ const sr = ge.strict(), ed = Re.extend({
3519
3519
  params: Re.optional()
3520
3520
  }), or = pe.extend({
3521
3521
  method: C("ping"),
3522
- params: $e.optional()
3523
- }), ld = $({
3522
+ params: ze.optional()
3523
+ }), ld = z({
3524
3524
  /**
3525
3525
  * The progress thus far. This should increase every time progress is made, even if the total is unknown.
3526
3526
  */
@@ -3533,7 +3533,7 @@ const sr = ge.strict(), ed = Re.extend({
3533
3533
  * An optional message describing the current progress.
3534
3534
  */
3535
3535
  message: ce(g())
3536
- }), dd = $({
3536
+ }), dd = z({
3537
3537
  ...Re.shape,
3538
3538
  ...ld.shape,
3539
3539
  /**
@@ -3543,7 +3543,7 @@ const sr = ge.strict(), ed = Re.extend({
3543
3543
  }), ar = Ne.extend({
3544
3544
  method: C("notifications/progress"),
3545
3545
  params: dd
3546
- }), fd = $e.extend({
3546
+ }), fd = ze.extend({
3547
3547
  /**
3548
3548
  * An opaque token representing the current pagination position.
3549
3549
  * If provided, the server should return results starting after this cursor.
@@ -3557,7 +3557,7 @@ const sr = ge.strict(), ed = Re.extend({
3557
3557
  * If present, there may be more results available.
3558
3558
  */
3559
3559
  nextCursor: Ei.optional()
3560
- }), hd = ze(["working", "input_required", "completed", "failed", "cancelled"]), Et = $({
3560
+ }), hd = $e(["working", "input_required", "completed", "failed", "cancelled"]), Et = z({
3561
3561
  taskId: g(),
3562
3562
  status: hd,
3563
3563
  /**
@@ -3585,12 +3585,12 @@ const sr = ge.strict(), ed = Re.extend({
3585
3585
  params: md
3586
3586
  }), cr = pe.extend({
3587
3587
  method: C("tasks/get"),
3588
- params: $e.extend({
3588
+ params: ze.extend({
3589
3589
  taskId: g()
3590
3590
  })
3591
3591
  }), ur = ge.merge(Et), lr = pe.extend({
3592
3592
  method: C("tasks/result"),
3593
- params: $e.extend({
3593
+ params: ze.extend({
3594
3594
  taskId: g()
3595
3595
  })
3596
3596
  });
@@ -3601,10 +3601,10 @@ const dr = Rt.extend({
3601
3601
  tasks: V(Et)
3602
3602
  }), hr = pe.extend({
3603
3603
  method: C("tasks/cancel"),
3604
- params: $e.extend({
3604
+ params: ze.extend({
3605
3605
  taskId: g()
3606
3606
  })
3607
- }), pd = ge.merge(Et), Ai = $({
3607
+ }), pd = ge.merge(Et), Ai = z({
3608
3608
  /**
3609
3609
  * The URI of this resource.
3610
3610
  */
@@ -3634,7 +3634,7 @@ const dr = Rt.extend({
3634
3634
  * A base64-encoded string representing the binary data of the item.
3635
3635
  */
3636
3636
  blob: mr
3637
- }), It = ze(["user", "assistant"]), ht = $({
3637
+ }), It = $e(["user", "assistant"]), ht = z({
3638
3638
  /**
3639
3639
  * Intended audience(s) for the resource.
3640
3640
  */
@@ -3647,7 +3647,7 @@ const dr = Rt.extend({
3647
3647
  * ISO 8601 timestamp for the most recent modification.
3648
3648
  */
3649
3649
  lastModified: gi({ offset: !0 }).optional()
3650
- }), Li = $({
3650
+ }), Li = z({
3651
3651
  ...at.shape,
3652
3652
  ...Pt.shape,
3653
3653
  /**
@@ -3673,7 +3673,7 @@ const dr = Rt.extend({
3673
3673
  * for notes on _meta usage.
3674
3674
  */
3675
3675
  _meta: ce(we({}))
3676
- }), gd = $({
3676
+ }), gd = z({
3677
3677
  ...at.shape,
3678
3678
  ...Pt.shape,
3679
3679
  /**
@@ -3707,7 +3707,7 @@ const dr = Rt.extend({
3707
3707
  method: C("resources/templates/list")
3708
3708
  }), yd = Nt.extend({
3709
3709
  resourceTemplates: V(gd)
3710
- }), pr = $e.extend({
3710
+ }), pr = ze.extend({
3711
3711
  /**
3712
3712
  * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
3713
3713
  *
@@ -3725,18 +3725,18 @@ const dr = Rt.extend({
3725
3725
  }), kd = pr, Sd = pe.extend({
3726
3726
  method: C("resources/subscribe"),
3727
3727
  params: kd
3728
- }), Td = pr, zd = pe.extend({
3728
+ }), Td = pr, $d = pe.extend({
3729
3729
  method: C("resources/unsubscribe"),
3730
3730
  params: Td
3731
- }), $d = Re.extend({
3731
+ }), zd = Re.extend({
3732
3732
  /**
3733
3733
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
3734
3734
  */
3735
3735
  uri: g()
3736
3736
  }), Pd = Ne.extend({
3737
3737
  method: C("notifications/resources/updated"),
3738
- params: $d
3739
- }), Rd = $({
3738
+ params: zd
3739
+ }), Rd = z({
3740
3740
  /**
3741
3741
  * The name of the argument.
3742
3742
  */
@@ -3749,7 +3749,7 @@ const dr = Rt.extend({
3749
3749
  * Whether this argument must be provided.
3750
3750
  */
3751
3751
  required: ce(he())
3752
- }), Nd = $({
3752
+ }), Nd = z({
3753
3753
  ...at.shape,
3754
3754
  ...Pt.shape,
3755
3755
  /**
@@ -3769,7 +3769,7 @@ const dr = Rt.extend({
3769
3769
  method: C("prompts/list")
3770
3770
  }), Ed = Nt.extend({
3771
3771
  prompts: V(Nd)
3772
- }), Id = $e.extend({
3772
+ }), Id = ze.extend({
3773
3773
  /**
3774
3774
  * The name of the prompt or prompt template.
3775
3775
  */
@@ -3781,7 +3781,7 @@ const dr = Rt.extend({
3781
3781
  }), Cn = pe.extend({
3782
3782
  method: C("prompts/get"),
3783
3783
  params: Id
3784
- }), gr = $({
3784
+ }), gr = z({
3785
3785
  type: C("text"),
3786
3786
  /**
3787
3787
  * The text content of the message.
@@ -3796,7 +3796,7 @@ const dr = Rt.extend({
3796
3796
  * for notes on _meta usage.
3797
3797
  */
3798
3798
  _meta: ie(g(), se()).optional()
3799
- }), _r = $({
3799
+ }), _r = z({
3800
3800
  type: C("image"),
3801
3801
  /**
3802
3802
  * The base64-encoded image data.
@@ -3815,7 +3815,7 @@ const dr = Rt.extend({
3815
3815
  * for notes on _meta usage.
3816
3816
  */
3817
3817
  _meta: ie(g(), se()).optional()
3818
- }), yr = $({
3818
+ }), yr = z({
3819
3819
  type: C("audio"),
3820
3820
  /**
3821
3821
  * The base64-encoded audio data.
@@ -3834,7 +3834,7 @@ const dr = Rt.extend({
3834
3834
  * for notes on _meta usage.
3835
3835
  */
3836
3836
  _meta: ie(g(), se()).optional()
3837
- }), Cd = $({
3837
+ }), Cd = z({
3838
3838
  type: C("tool_use"),
3839
3839
  /**
3840
3840
  * The name of the tool to invoke.
@@ -3856,7 +3856,7 @@ const dr = Rt.extend({
3856
3856
  * for notes on _meta usage.
3857
3857
  */
3858
3858
  _meta: ie(g(), se()).optional()
3859
- }), Od = $({
3859
+ }), Od = z({
3860
3860
  type: C("resource"),
3861
3861
  resource: ee([ji, Mi]),
3862
3862
  /**
@@ -3876,7 +3876,7 @@ const dr = Rt.extend({
3876
3876
  yr,
3877
3877
  xd,
3878
3878
  Od
3879
- ]), Zd = $({
3879
+ ]), Zd = z({
3880
3880
  role: It,
3881
3881
  content: vr
3882
3882
  }), Ad = ge.extend({
@@ -3888,7 +3888,7 @@ const dr = Rt.extend({
3888
3888
  }), jd = Ne.extend({
3889
3889
  method: C("notifications/prompts/list_changed"),
3890
3890
  params: Re.optional()
3891
- }), Md = $({
3891
+ }), Md = z({
3892
3892
  /**
3893
3893
  * A human-readable title for the tool.
3894
3894
  */
@@ -3926,7 +3926,7 @@ const dr = Rt.extend({
3926
3926
  * Default: true
3927
3927
  */
3928
3928
  openWorldHint: he().optional()
3929
- }), Ld = $({
3929
+ }), Ld = z({
3930
3930
  /**
3931
3931
  * Indicates the tool's preference for task-augmented execution.
3932
3932
  * - "required": Clients MUST invoke the tool as a task
@@ -3935,8 +3935,8 @@ const dr = Rt.extend({
3935
3935
  *
3936
3936
  * If not present, defaults to "forbidden".
3937
3937
  */
3938
- taskSupport: ze(["required", "optional", "forbidden"]).optional()
3939
- }), Di = $({
3938
+ taskSupport: $e(["required", "optional", "forbidden"]).optional()
3939
+ }), Di = z({
3940
3940
  ...at.shape,
3941
3941
  ...Pt.shape,
3942
3942
  /**
@@ -3947,7 +3947,7 @@ const dr = Rt.extend({
3947
3947
  * A JSON Schema 2020-12 object defining the expected parameters for the tool.
3948
3948
  * Must have type: 'object' at the root level per MCP spec.
3949
3949
  */
3950
- inputSchema: $({
3950
+ inputSchema: z({
3951
3951
  type: C("object"),
3952
3952
  properties: ie(g(), me).optional(),
3953
3953
  required: V(g()).optional()
@@ -3957,7 +3957,7 @@ const dr = Rt.extend({
3957
3957
  * returned in the structuredContent field of a CallToolResult.
3958
3958
  * Must have type: 'object' at the root level per MCP spec.
3959
3959
  */
3960
- outputSchema: $({
3960
+ outputSchema: z({
3961
3961
  type: C("object"),
3962
3962
  properties: ie(g(), me).optional(),
3963
3963
  required: V(g()).optional()
@@ -4012,7 +4012,7 @@ const dr = Rt.extend({
4012
4012
  br.or(ge.extend({
4013
4013
  toolResult: se()
4014
4014
  }));
4015
- const qd = $t.extend({
4015
+ const qd = zt.extend({
4016
4016
  /**
4017
4017
  * The name of the tool to call.
4018
4018
  */
@@ -4028,7 +4028,7 @@ const qd = $t.extend({
4028
4028
  method: C("notifications/tools/list_changed"),
4029
4029
  params: Re.optional()
4030
4030
  });
4031
- $({
4031
+ z({
4032
4032
  /**
4033
4033
  * If true, the list will be refreshed automatically when a list changed notification is received.
4034
4034
  * The callback will be called with the updated list.
@@ -4048,7 +4048,7 @@ $({
4048
4048
  */
4049
4049
  debounceMs: Y().int().nonnegative().default(300)
4050
4050
  });
4051
- const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Ud = $e.extend({
4051
+ const Wt = $e(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Ud = ze.extend({
4052
4052
  /**
4053
4053
  * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
4054
4054
  */
@@ -4072,12 +4072,12 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4072
4072
  }), Hd = Ne.extend({
4073
4073
  method: C("notifications/message"),
4074
4074
  params: Vd
4075
- }), Jd = $({
4075
+ }), Jd = z({
4076
4076
  /**
4077
4077
  * A hint for a model name.
4078
4078
  */
4079
4079
  name: g().optional()
4080
- }), Bd = $({
4080
+ }), Bd = z({
4081
4081
  /**
4082
4082
  * Optional hints to use for model selection.
4083
4083
  */
@@ -4094,19 +4094,19 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4094
4094
  * How much to prioritize intelligence and capabilities when selecting a model.
4095
4095
  */
4096
4096
  intelligencePriority: Y().min(0).max(1).optional()
4097
- }), Wd = $({
4097
+ }), Wd = z({
4098
4098
  /**
4099
4099
  * Controls when tools are used:
4100
4100
  * - "auto": Model decides whether to use tools (default)
4101
4101
  * - "required": Model MUST use at least one tool before completing
4102
4102
  * - "none": Model MUST NOT use any tools
4103
4103
  */
4104
- mode: ze(["auto", "required", "none"]).optional()
4105
- }), Gd = $({
4104
+ mode: $e(["auto", "required", "none"]).optional()
4105
+ }), Gd = z({
4106
4106
  type: C("tool_result"),
4107
4107
  toolUseId: g().describe("The unique identifier for the corresponding tool call."),
4108
4108
  content: V(vr).default([]),
4109
- structuredContent: $({}).loose().optional(),
4109
+ structuredContent: z({}).loose().optional(),
4110
4110
  isError: he().optional(),
4111
4111
  /**
4112
4112
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -4119,7 +4119,7 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4119
4119
  yr,
4120
4120
  Cd,
4121
4121
  Gd
4122
- ]), Yd = $({
4122
+ ]), Yd = z({
4123
4123
  role: It,
4124
4124
  content: ee([Gt, V(Gt)]),
4125
4125
  /**
@@ -4127,7 +4127,7 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4127
4127
  * for notes on _meta usage.
4128
4128
  */
4129
4129
  _meta: ie(g(), se()).optional()
4130
- }), Qd = $t.extend({
4130
+ }), Qd = zt.extend({
4131
4131
  messages: V(Yd),
4132
4132
  /**
4133
4133
  * The server's preferences for which model to select. The client MAY modify or omit this request.
@@ -4144,7 +4144,7 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4144
4144
  * Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client
4145
4145
  * declares ClientCapabilities.sampling.context. These values may be removed in future spec releases.
4146
4146
  */
4147
- includeContext: ze(["none", "thisServer", "allServers"]).optional(),
4147
+ includeContext: $e(["none", "thisServer", "allServers"]).optional(),
4148
4148
  temperature: Y().optional(),
4149
4149
  /**
4150
4150
  * The requested maximum number of tokens to sample (to prevent runaway completions).
@@ -4186,7 +4186,7 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4186
4186
  *
4187
4187
  * This field is an open string to allow for provider-specific stop reasons.
4188
4188
  */
4189
- stopReason: ce(ze(["endTurn", "stopSequence", "maxTokens"]).or(g())),
4189
+ stopReason: ce($e(["endTurn", "stopSequence", "maxTokens"]).or(g())),
4190
4190
  role: It,
4191
4191
  /**
4192
4192
  * Response content. Single content block (text, image, or audio).
@@ -4208,79 +4208,79 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4208
4208
  *
4209
4209
  * This field is an open string to allow for provider-specific stop reasons.
4210
4210
  */
4211
- stopReason: ce(ze(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(g())),
4211
+ stopReason: ce($e(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(g())),
4212
4212
  role: It,
4213
4213
  /**
4214
4214
  * Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse".
4215
4215
  */
4216
4216
  content: ee([Gt, V(Gt)])
4217
- }), ef = $({
4217
+ }), ef = z({
4218
4218
  type: C("boolean"),
4219
4219
  title: g().optional(),
4220
4220
  description: g().optional(),
4221
4221
  default: he().optional()
4222
- }), tf = $({
4222
+ }), tf = z({
4223
4223
  type: C("string"),
4224
4224
  title: g().optional(),
4225
4225
  description: g().optional(),
4226
4226
  minLength: Y().optional(),
4227
4227
  maxLength: Y().optional(),
4228
- format: ze(["email", "uri", "date", "date-time"]).optional(),
4228
+ format: $e(["email", "uri", "date", "date-time"]).optional(),
4229
4229
  default: g().optional()
4230
- }), nf = $({
4231
- type: ze(["number", "integer"]),
4230
+ }), nf = z({
4231
+ type: $e(["number", "integer"]),
4232
4232
  title: g().optional(),
4233
4233
  description: g().optional(),
4234
4234
  minimum: Y().optional(),
4235
4235
  maximum: Y().optional(),
4236
4236
  default: Y().optional()
4237
- }), rf = $({
4237
+ }), rf = z({
4238
4238
  type: C("string"),
4239
4239
  title: g().optional(),
4240
4240
  description: g().optional(),
4241
4241
  enum: V(g()),
4242
4242
  default: g().optional()
4243
- }), sf = $({
4243
+ }), sf = z({
4244
4244
  type: C("string"),
4245
4245
  title: g().optional(),
4246
4246
  description: g().optional(),
4247
- oneOf: V($({
4247
+ oneOf: V(z({
4248
4248
  const: g(),
4249
4249
  title: g()
4250
4250
  })),
4251
4251
  default: g().optional()
4252
- }), of = $({
4252
+ }), of = z({
4253
4253
  type: C("string"),
4254
4254
  title: g().optional(),
4255
4255
  description: g().optional(),
4256
4256
  enum: V(g()),
4257
4257
  enumNames: V(g()).optional(),
4258
4258
  default: g().optional()
4259
- }), af = ee([rf, sf]), cf = $({
4259
+ }), af = ee([rf, sf]), cf = z({
4260
4260
  type: C("array"),
4261
4261
  title: g().optional(),
4262
4262
  description: g().optional(),
4263
4263
  minItems: Y().optional(),
4264
4264
  maxItems: Y().optional(),
4265
- items: $({
4265
+ items: z({
4266
4266
  type: C("string"),
4267
4267
  enum: V(g())
4268
4268
  }),
4269
4269
  default: V(g()).optional()
4270
- }), uf = $({
4270
+ }), uf = z({
4271
4271
  type: C("array"),
4272
4272
  title: g().optional(),
4273
4273
  description: g().optional(),
4274
4274
  minItems: Y().optional(),
4275
4275
  maxItems: Y().optional(),
4276
- items: $({
4277
- anyOf: V($({
4276
+ items: z({
4277
+ anyOf: V(z({
4278
4278
  const: g(),
4279
4279
  title: g()
4280
4280
  }))
4281
4281
  }),
4282
4282
  default: V(g()).optional()
4283
- }), lf = ee([cf, uf]), df = ee([of, af, lf]), ff = ee([df, ef, tf, nf]), hf = $t.extend({
4283
+ }), lf = ee([cf, uf]), df = ee([of, af, lf]), ff = ee([df, ef, tf, nf]), hf = zt.extend({
4284
4284
  /**
4285
4285
  * The elicitation mode.
4286
4286
  *
@@ -4295,12 +4295,12 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4295
4295
  * A restricted subset of JSON Schema.
4296
4296
  * Only top-level properties are allowed, without nesting.
4297
4297
  */
4298
- requestedSchema: $({
4298
+ requestedSchema: z({
4299
4299
  type: C("object"),
4300
4300
  properties: ie(g(), ff),
4301
4301
  required: V(g()).optional()
4302
4302
  })
4303
- }), mf = $t.extend({
4303
+ }), mf = zt.extend({
4304
4304
  /**
4305
4305
  * The elicitation mode.
4306
4306
  */
@@ -4336,7 +4336,7 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4336
4336
  * - "decline": User explicitly decline the action
4337
4337
  * - "cancel": User dismissed without making an explicit choice
4338
4338
  */
4339
- action: ze(["accept", "decline", "cancel"]),
4339
+ action: $e(["accept", "decline", "cancel"]),
4340
4340
  /**
4341
4341
  * The submitted form data, only present when action is "accept".
4342
4342
  * Contains values matching the requested schema.
@@ -4344,24 +4344,24 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4344
4344
  * We normalize null to undefined for leniency while maintaining type compatibility.
4345
4345
  */
4346
4346
  content: Pi((t) => t === null ? void 0 : t, ie(g(), ee([g(), Y(), he(), V(g())])).optional())
4347
- }), vf = $({
4347
+ }), vf = z({
4348
4348
  type: C("ref/resource"),
4349
4349
  /**
4350
4350
  * The URI or URI template of the resource.
4351
4351
  */
4352
4352
  uri: g()
4353
- }), bf = $({
4353
+ }), bf = z({
4354
4354
  type: C("ref/prompt"),
4355
4355
  /**
4356
4356
  * The name of the prompt or prompt template
4357
4357
  */
4358
4358
  name: g()
4359
- }), wf = $e.extend({
4359
+ }), wf = ze.extend({
4360
4360
  ref: ee([bf, vf]),
4361
4361
  /**
4362
4362
  * The argument's information
4363
4363
  */
4364
- argument: $({
4364
+ argument: z({
4365
4365
  /**
4366
4366
  * The name of the argument
4367
4367
  */
@@ -4371,7 +4371,7 @@ const Wt = ze(["debug", "info", "notice", "warning", "error", "critical", "alert
4371
4371
  */
4372
4372
  value: g()
4373
4373
  }),
4374
- context: $({
4374
+ context: z({
4375
4375
  /**
4376
4376
  * Previously-resolved variables in a URI template or prompt.
4377
4377
  */
@@ -4404,7 +4404,7 @@ const Tf = ge.extend({
4404
4404
  */
4405
4405
  hasMore: ce(he())
4406
4406
  })
4407
- }), zf = $({
4407
+ }), $f = z({
4408
4408
  /**
4409
4409
  * The URI identifying the root. This *must* start with file:// for now.
4410
4410
  */
@@ -4418,11 +4418,11 @@ const Tf = ge.extend({
4418
4418
  * for notes on _meta usage.
4419
4419
  */
4420
4420
  _meta: ie(g(), se()).optional()
4421
- }), $f = pe.extend({
4421
+ }), zf = pe.extend({
4422
4422
  method: C("roots/list"),
4423
- params: $e.optional()
4423
+ params: ze.optional()
4424
4424
  }), Ui = ge.extend({
4425
- roots: V(zf)
4425
+ roots: V($f)
4426
4426
  }), Pf = Ne.extend({
4427
4427
  method: C("notifications/roots/list_changed"),
4428
4428
  params: Re.optional()
@@ -4438,7 +4438,7 @@ ee([
4438
4438
  Nn,
4439
4439
  En,
4440
4440
  Sd,
4441
- zd,
4441
+ $d,
4442
4442
  Bt,
4443
4443
  On,
4444
4444
  cr,
@@ -4467,7 +4467,7 @@ ee([
4467
4467
  or,
4468
4468
  Xd,
4469
4469
  gf,
4470
- $f,
4470
+ zf,
4471
4471
  cr,
4472
4472
  lr,
4473
4473
  dr,
@@ -5086,7 +5086,7 @@ const jf = (t) => {
5086
5086
  message: a
5087
5087
  };
5088
5088
  };
5089
- function z(t, e) {
5089
+ function $(t, e) {
5090
5090
  const n = Af(), r = jf({
5091
5091
  issueData: e,
5092
5092
  data: t.data,
@@ -5445,7 +5445,7 @@ class Ae extends U {
5445
5445
  _parse(e) {
5446
5446
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== P.string) {
5447
5447
  const i = this._getOrReturnCtx(e);
5448
- return z(i, {
5448
+ return $(i, {
5449
5449
  code: w.invalid_type,
5450
5450
  expected: P.string,
5451
5451
  received: i.parsedType
@@ -5455,7 +5455,7 @@ class Ae extends U {
5455
5455
  let s;
5456
5456
  for (const i of this._def.checks)
5457
5457
  if (i.kind === "min")
5458
- e.data.length < i.value && (s = this._getOrReturnCtx(e, s), z(s, {
5458
+ e.data.length < i.value && (s = this._getOrReturnCtx(e, s), $(s, {
5459
5459
  code: w.too_small,
5460
5460
  minimum: i.value,
5461
5461
  type: "string",
@@ -5464,7 +5464,7 @@ class Ae extends U {
5464
5464
  message: i.message
5465
5465
  }), r.dirty());
5466
5466
  else if (i.kind === "max")
5467
- e.data.length > i.value && (s = this._getOrReturnCtx(e, s), z(s, {
5467
+ e.data.length > i.value && (s = this._getOrReturnCtx(e, s), $(s, {
5468
5468
  code: w.too_big,
5469
5469
  maximum: i.value,
5470
5470
  type: "string",
@@ -5474,14 +5474,14 @@ class Ae extends U {
5474
5474
  }), r.dirty());
5475
5475
  else if (i.kind === "length") {
5476
5476
  const o = e.data.length > i.value, a = e.data.length < i.value;
5477
- (o || a) && (s = this._getOrReturnCtx(e, s), o ? z(s, {
5477
+ (o || a) && (s = this._getOrReturnCtx(e, s), o ? $(s, {
5478
5478
  code: w.too_big,
5479
5479
  maximum: i.value,
5480
5480
  type: "string",
5481
5481
  inclusive: !0,
5482
5482
  exact: !0,
5483
5483
  message: i.message
5484
- }) : a && z(s, {
5484
+ }) : a && $(s, {
5485
5485
  code: w.too_small,
5486
5486
  minimum: i.value,
5487
5487
  type: "string",
@@ -5490,43 +5490,43 @@ class Ae extends U {
5490
5490
  message: i.message
5491
5491
  }), r.dirty());
5492
5492
  } else if (i.kind === "email")
5493
- Hf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5493
+ Hf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5494
5494
  validation: "email",
5495
5495
  code: w.invalid_string,
5496
5496
  message: i.message
5497
5497
  }), r.dirty());
5498
5498
  else if (i.kind === "emoji")
5499
- vn || (vn = new RegExp(Jf, "u")), vn.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5499
+ vn || (vn = new RegExp(Jf, "u")), vn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5500
5500
  validation: "emoji",
5501
5501
  code: w.invalid_string,
5502
5502
  message: i.message
5503
5503
  }), r.dirty());
5504
5504
  else if (i.kind === "uuid")
5505
- qf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5505
+ qf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5506
5506
  validation: "uuid",
5507
5507
  code: w.invalid_string,
5508
5508
  message: i.message
5509
5509
  }), r.dirty());
5510
5510
  else if (i.kind === "nanoid")
5511
- Ff.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5511
+ Ff.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5512
5512
  validation: "nanoid",
5513
5513
  code: w.invalid_string,
5514
5514
  message: i.message
5515
5515
  }), r.dirty());
5516
5516
  else if (i.kind === "cuid")
5517
- Mf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5517
+ Mf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5518
5518
  validation: "cuid",
5519
5519
  code: w.invalid_string,
5520
5520
  message: i.message
5521
5521
  }), r.dirty());
5522
5522
  else if (i.kind === "cuid2")
5523
- Lf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5523
+ Lf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5524
5524
  validation: "cuid2",
5525
5525
  code: w.invalid_string,
5526
5526
  message: i.message
5527
5527
  }), r.dirty());
5528
5528
  else if (i.kind === "ulid")
5529
- Df.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5529
+ Df.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5530
5530
  validation: "ulid",
5531
5531
  code: w.invalid_string,
5532
5532
  message: i.message
@@ -5535,61 +5535,61 @@ class Ae extends U {
5535
5535
  try {
5536
5536
  new URL(e.data);
5537
5537
  } catch {
5538
- s = this._getOrReturnCtx(e, s), z(s, {
5538
+ s = this._getOrReturnCtx(e, s), $(s, {
5539
5539
  validation: "url",
5540
5540
  code: w.invalid_string,
5541
5541
  message: i.message
5542
5542
  }), r.dirty();
5543
5543
  }
5544
- else i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5544
+ else i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5545
5545
  validation: "regex",
5546
5546
  code: w.invalid_string,
5547
5547
  message: i.message
5548
- }), r.dirty())) : i.kind === "trim" ? e.data = e.data.trim() : i.kind === "includes" ? e.data.includes(i.value, i.position) || (s = this._getOrReturnCtx(e, s), z(s, {
5548
+ }), r.dirty())) : i.kind === "trim" ? e.data = e.data.trim() : i.kind === "includes" ? e.data.includes(i.value, i.position) || (s = this._getOrReturnCtx(e, s), $(s, {
5549
5549
  code: w.invalid_string,
5550
5550
  validation: { includes: i.value, position: i.position },
5551
5551
  message: i.message
5552
- }), r.dirty()) : i.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : i.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : i.kind === "startsWith" ? e.data.startsWith(i.value) || (s = this._getOrReturnCtx(e, s), z(s, {
5552
+ }), r.dirty()) : i.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : i.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : i.kind === "startsWith" ? e.data.startsWith(i.value) || (s = this._getOrReturnCtx(e, s), $(s, {
5553
5553
  code: w.invalid_string,
5554
5554
  validation: { startsWith: i.value },
5555
5555
  message: i.message
5556
- }), r.dirty()) : i.kind === "endsWith" ? e.data.endsWith(i.value) || (s = this._getOrReturnCtx(e, s), z(s, {
5556
+ }), r.dirty()) : i.kind === "endsWith" ? e.data.endsWith(i.value) || (s = this._getOrReturnCtx(e, s), $(s, {
5557
5557
  code: w.invalid_string,
5558
5558
  validation: { endsWith: i.value },
5559
5559
  message: i.message
5560
- }), r.dirty()) : i.kind === "datetime" ? th(i).test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5560
+ }), r.dirty()) : i.kind === "datetime" ? th(i).test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5561
5561
  code: w.invalid_string,
5562
5562
  validation: "datetime",
5563
5563
  message: i.message
5564
- }), r.dirty()) : i.kind === "date" ? Xf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5564
+ }), r.dirty()) : i.kind === "date" ? Xf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5565
5565
  code: w.invalid_string,
5566
5566
  validation: "date",
5567
5567
  message: i.message
5568
- }), r.dirty()) : i.kind === "time" ? eh(i).test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5568
+ }), r.dirty()) : i.kind === "time" ? eh(i).test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5569
5569
  code: w.invalid_string,
5570
5570
  validation: "time",
5571
5571
  message: i.message
5572
- }), r.dirty()) : i.kind === "duration" ? Vf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5572
+ }), r.dirty()) : i.kind === "duration" ? Vf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5573
5573
  validation: "duration",
5574
5574
  code: w.invalid_string,
5575
5575
  message: i.message
5576
- }), r.dirty()) : i.kind === "ip" ? nh(e.data, i.version) || (s = this._getOrReturnCtx(e, s), z(s, {
5576
+ }), r.dirty()) : i.kind === "ip" ? nh(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
5577
5577
  validation: "ip",
5578
5578
  code: w.invalid_string,
5579
5579
  message: i.message
5580
- }), r.dirty()) : i.kind === "jwt" ? rh(e.data, i.alg) || (s = this._getOrReturnCtx(e, s), z(s, {
5580
+ }), r.dirty()) : i.kind === "jwt" ? rh(e.data, i.alg) || (s = this._getOrReturnCtx(e, s), $(s, {
5581
5581
  validation: "jwt",
5582
5582
  code: w.invalid_string,
5583
5583
  message: i.message
5584
- }), r.dirty()) : i.kind === "cidr" ? sh(e.data, i.version) || (s = this._getOrReturnCtx(e, s), z(s, {
5584
+ }), r.dirty()) : i.kind === "cidr" ? sh(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
5585
5585
  validation: "cidr",
5586
5586
  code: w.invalid_string,
5587
5587
  message: i.message
5588
- }), r.dirty()) : i.kind === "base64" ? Yf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5588
+ }), r.dirty()) : i.kind === "base64" ? Yf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5589
5589
  validation: "base64",
5590
5590
  code: w.invalid_string,
5591
5591
  message: i.message
5592
- }), r.dirty()) : i.kind === "base64url" ? Qf.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
5592
+ }), r.dirty()) : i.kind === "base64url" ? Qf.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
5593
5593
  validation: "base64url",
5594
5594
  code: w.invalid_string,
5595
5595
  message: i.message
@@ -5835,7 +5835,7 @@ class St extends U {
5835
5835
  _parse(e) {
5836
5836
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== P.number) {
5837
5837
  const i = this._getOrReturnCtx(e);
5838
- return z(i, {
5838
+ return $(i, {
5839
5839
  code: w.invalid_type,
5840
5840
  expected: P.number,
5841
5841
  received: i.parsedType
@@ -5844,30 +5844,30 @@ class St extends U {
5844
5844
  let r;
5845
5845
  const s = new be();
5846
5846
  for (const i of this._def.checks)
5847
- i.kind === "int" ? J.isInteger(e.data) || (r = this._getOrReturnCtx(e, r), z(r, {
5847
+ i.kind === "int" ? J.isInteger(e.data) || (r = this._getOrReturnCtx(e, r), $(r, {
5848
5848
  code: w.invalid_type,
5849
5849
  expected: "integer",
5850
5850
  received: "float",
5851
5851
  message: i.message
5852
- }), s.dirty()) : i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (r = this._getOrReturnCtx(e, r), z(r, {
5852
+ }), s.dirty()) : i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (r = this._getOrReturnCtx(e, r), $(r, {
5853
5853
  code: w.too_small,
5854
5854
  minimum: i.value,
5855
5855
  type: "number",
5856
5856
  inclusive: i.inclusive,
5857
5857
  exact: !1,
5858
5858
  message: i.message
5859
- }), s.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (r = this._getOrReturnCtx(e, r), z(r, {
5859
+ }), s.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (r = this._getOrReturnCtx(e, r), $(r, {
5860
5860
  code: w.too_big,
5861
5861
  maximum: i.value,
5862
5862
  type: "number",
5863
5863
  inclusive: i.inclusive,
5864
5864
  exact: !1,
5865
5865
  message: i.message
5866
- }), s.dirty()) : i.kind === "multipleOf" ? ih(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), z(r, {
5866
+ }), s.dirty()) : i.kind === "multipleOf" ? ih(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), $(r, {
5867
5867
  code: w.not_multiple_of,
5868
5868
  multipleOf: i.value,
5869
5869
  message: i.message
5870
- }), s.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (r = this._getOrReturnCtx(e, r), z(r, {
5870
+ }), s.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (r = this._getOrReturnCtx(e, r), $(r, {
5871
5871
  code: w.not_finite,
5872
5872
  message: i.message
5873
5873
  }), s.dirty()) : J.assertNever(i);
@@ -6016,19 +6016,19 @@ class Tt extends U {
6016
6016
  let r;
6017
6017
  const s = new be();
6018
6018
  for (const i of this._def.checks)
6019
- i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (r = this._getOrReturnCtx(e, r), z(r, {
6019
+ i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (r = this._getOrReturnCtx(e, r), $(r, {
6020
6020
  code: w.too_small,
6021
6021
  type: "bigint",
6022
6022
  minimum: i.value,
6023
6023
  inclusive: i.inclusive,
6024
6024
  message: i.message
6025
- }), s.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (r = this._getOrReturnCtx(e, r), z(r, {
6025
+ }), s.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (r = this._getOrReturnCtx(e, r), $(r, {
6026
6026
  code: w.too_big,
6027
6027
  type: "bigint",
6028
6028
  maximum: i.value,
6029
6029
  inclusive: i.inclusive,
6030
6030
  message: i.message
6031
- }), s.dirty()) : i.kind === "multipleOf" ? e.data % i.value !== BigInt(0) && (r = this._getOrReturnCtx(e, r), z(r, {
6031
+ }), s.dirty()) : i.kind === "multipleOf" ? e.data % i.value !== BigInt(0) && (r = this._getOrReturnCtx(e, r), $(r, {
6032
6032
  code: w.not_multiple_of,
6033
6033
  multipleOf: i.value,
6034
6034
  message: i.message
@@ -6037,7 +6037,7 @@ class Tt extends U {
6037
6037
  }
6038
6038
  _getInvalidInput(e) {
6039
6039
  const n = this._getOrReturnCtx(e);
6040
- return z(n, {
6040
+ return $(n, {
6041
6041
  code: w.invalid_type,
6042
6042
  expected: P.bigint,
6043
6043
  received: n.parsedType
@@ -6137,7 +6137,7 @@ class An extends U {
6137
6137
  _parse(e) {
6138
6138
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== P.boolean) {
6139
6139
  const r = this._getOrReturnCtx(e);
6140
- return z(r, {
6140
+ return $(r, {
6141
6141
  code: w.invalid_type,
6142
6142
  expected: P.boolean,
6143
6143
  received: r.parsedType
@@ -6155,7 +6155,7 @@ class Qt extends U {
6155
6155
  _parse(e) {
6156
6156
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== P.date) {
6157
6157
  const i = this._getOrReturnCtx(e);
6158
- return z(i, {
6158
+ return $(i, {
6159
6159
  code: w.invalid_type,
6160
6160
  expected: P.date,
6161
6161
  received: i.parsedType
@@ -6163,21 +6163,21 @@ class Qt extends U {
6163
6163
  }
6164
6164
  if (Number.isNaN(e.data.getTime())) {
6165
6165
  const i = this._getOrReturnCtx(e);
6166
- return z(i, {
6166
+ return $(i, {
6167
6167
  code: w.invalid_date
6168
6168
  }), M;
6169
6169
  }
6170
6170
  const r = new be();
6171
6171
  let s;
6172
6172
  for (const i of this._def.checks)
6173
- i.kind === "min" ? e.data.getTime() < i.value && (s = this._getOrReturnCtx(e, s), z(s, {
6173
+ i.kind === "min" ? e.data.getTime() < i.value && (s = this._getOrReturnCtx(e, s), $(s, {
6174
6174
  code: w.too_small,
6175
6175
  message: i.message,
6176
6176
  inclusive: !0,
6177
6177
  exact: !1,
6178
6178
  minimum: i.value,
6179
6179
  type: "date"
6180
- }), r.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (s = this._getOrReturnCtx(e, s), z(s, {
6180
+ }), r.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (s = this._getOrReturnCtx(e, s), $(s, {
6181
6181
  code: w.too_big,
6182
6182
  message: i.message,
6183
6183
  inclusive: !0,
@@ -6233,7 +6233,7 @@ class Yr extends U {
6233
6233
  _parse(e) {
6234
6234
  if (this._getType(e) !== P.symbol) {
6235
6235
  const r = this._getOrReturnCtx(e);
6236
- return z(r, {
6236
+ return $(r, {
6237
6237
  code: w.invalid_type,
6238
6238
  expected: P.symbol,
6239
6239
  received: r.parsedType
@@ -6250,7 +6250,7 @@ class Qr extends U {
6250
6250
  _parse(e) {
6251
6251
  if (this._getType(e) !== P.undefined) {
6252
6252
  const r = this._getOrReturnCtx(e);
6253
- return z(r, {
6253
+ return $(r, {
6254
6254
  code: w.invalid_type,
6255
6255
  expected: P.undefined,
6256
6256
  received: r.parsedType
@@ -6267,7 +6267,7 @@ class Xr extends U {
6267
6267
  _parse(e) {
6268
6268
  if (this._getType(e) !== P.null) {
6269
6269
  const r = this._getOrReturnCtx(e);
6270
- return z(r, {
6270
+ return $(r, {
6271
6271
  code: w.invalid_type,
6272
6272
  expected: P.null,
6273
6273
  received: r.parsedType
@@ -6307,7 +6307,7 @@ ts.create = (t) => new ts({
6307
6307
  class Ve extends U {
6308
6308
  _parse(e) {
6309
6309
  const n = this._getOrReturnCtx(e);
6310
- return z(n, {
6310
+ return $(n, {
6311
6311
  code: w.invalid_type,
6312
6312
  expected: P.never,
6313
6313
  received: n.parsedType
@@ -6322,7 +6322,7 @@ class ns extends U {
6322
6322
  _parse(e) {
6323
6323
  if (this._getType(e) !== P.undefined) {
6324
6324
  const r = this._getOrReturnCtx(e);
6325
- return z(r, {
6325
+ return $(r, {
6326
6326
  code: w.invalid_type,
6327
6327
  expected: P.void,
6328
6328
  received: r.parsedType
@@ -6339,14 +6339,14 @@ class Oe extends U {
6339
6339
  _parse(e) {
6340
6340
  const { ctx: n, status: r } = this._processInputParams(e), s = this._def;
6341
6341
  if (n.parsedType !== P.array)
6342
- return z(n, {
6342
+ return $(n, {
6343
6343
  code: w.invalid_type,
6344
6344
  expected: P.array,
6345
6345
  received: n.parsedType
6346
6346
  }), M;
6347
6347
  if (s.exactLength !== null) {
6348
6348
  const o = n.data.length > s.exactLength.value, a = n.data.length < s.exactLength.value;
6349
- (o || a) && (z(n, {
6349
+ (o || a) && ($(n, {
6350
6350
  code: o ? w.too_big : w.too_small,
6351
6351
  minimum: a ? s.exactLength.value : void 0,
6352
6352
  maximum: o ? s.exactLength.value : void 0,
@@ -6356,14 +6356,14 @@ class Oe extends U {
6356
6356
  message: s.exactLength.message
6357
6357
  }), r.dirty());
6358
6358
  }
6359
- if (s.minLength !== null && n.data.length < s.minLength.value && (z(n, {
6359
+ if (s.minLength !== null && n.data.length < s.minLength.value && ($(n, {
6360
6360
  code: w.too_small,
6361
6361
  minimum: s.minLength.value,
6362
6362
  type: "array",
6363
6363
  inclusive: !0,
6364
6364
  exact: !1,
6365
6365
  message: s.minLength.message
6366
- }), r.dirty()), s.maxLength !== null && n.data.length > s.maxLength.value && (z(n, {
6366
+ }), r.dirty()), s.maxLength !== null && n.data.length > s.maxLength.value && ($(n, {
6367
6367
  code: w.too_big,
6368
6368
  maximum: s.maxLength.value,
6369
6369
  type: "array",
@@ -6437,7 +6437,7 @@ class le extends U {
6437
6437
  _parse(e) {
6438
6438
  if (this._getType(e) !== P.object) {
6439
6439
  const u = this._getOrReturnCtx(e);
6440
- return z(u, {
6440
+ return $(u, {
6441
6441
  code: w.invalid_type,
6442
6442
  expected: P.object,
6443
6443
  received: u.parsedType
@@ -6465,7 +6465,7 @@ class le extends U {
6465
6465
  value: { status: "valid", value: s.data[l] }
6466
6466
  });
6467
6467
  else if (u === "strict")
6468
- a.length > 0 && (z(s, {
6468
+ a.length > 0 && ($(s, {
6469
6469
  code: w.unrecognized_keys,
6470
6470
  keys: a
6471
6471
  }), r.dirty());
@@ -6723,7 +6723,7 @@ class Xt extends U {
6723
6723
  if (a.result.status === "dirty")
6724
6724
  return n.common.issues.push(...a.ctx.common.issues), a.result;
6725
6725
  const o = i.map((a) => new je(a.ctx.common.issues));
6726
- return z(n, {
6726
+ return $(n, {
6727
6727
  code: w.invalid_union,
6728
6728
  unionErrors: o
6729
6729
  }), M;
@@ -6770,7 +6770,7 @@ class Xt extends U {
6770
6770
  if (i)
6771
6771
  return n.common.issues.push(...i.ctx.common.issues), i.result;
6772
6772
  const a = o.map((c) => new je(c));
6773
- return z(n, {
6773
+ return $(n, {
6774
6774
  code: w.invalid_union,
6775
6775
  unionErrors: a
6776
6776
  }), M;
@@ -6817,7 +6817,7 @@ class en extends U {
6817
6817
  if (Wr(i) || Wr(o))
6818
6818
  return M;
6819
6819
  const a = jn(i.value, o.value);
6820
- return a.valid ? ((Gr(i) || Gr(o)) && n.dirty(), { status: n.value, value: a.data }) : (z(r, {
6820
+ return a.valid ? ((Gr(i) || Gr(o)) && n.dirty(), { status: n.value, value: a.data }) : ($(r, {
6821
6821
  code: w.invalid_intersection_types
6822
6822
  }), M);
6823
6823
  };
@@ -6853,20 +6853,20 @@ class Qe extends U {
6853
6853
  _parse(e) {
6854
6854
  const { status: n, ctx: r } = this._processInputParams(e);
6855
6855
  if (r.parsedType !== P.array)
6856
- return z(r, {
6856
+ return $(r, {
6857
6857
  code: w.invalid_type,
6858
6858
  expected: P.array,
6859
6859
  received: r.parsedType
6860
6860
  }), M;
6861
6861
  if (r.data.length < this._def.items.length)
6862
- return z(r, {
6862
+ return $(r, {
6863
6863
  code: w.too_small,
6864
6864
  minimum: this._def.items.length,
6865
6865
  inclusive: !0,
6866
6866
  exact: !1,
6867
6867
  type: "array"
6868
6868
  }), M;
6869
- !this._def.rest && r.data.length > this._def.items.length && (z(r, {
6869
+ !this._def.rest && r.data.length > this._def.items.length && ($(r, {
6870
6870
  code: w.too_big,
6871
6871
  maximum: this._def.items.length,
6872
6872
  inclusive: !0,
@@ -6909,7 +6909,7 @@ class tn extends U {
6909
6909
  _parse(e) {
6910
6910
  const { status: n, ctx: r } = this._processInputParams(e);
6911
6911
  if (r.parsedType !== P.object)
6912
- return z(r, {
6912
+ return $(r, {
6913
6913
  code: w.invalid_type,
6914
6914
  expected: P.object,
6915
6915
  received: r.parsedType
@@ -6950,7 +6950,7 @@ class rs extends U {
6950
6950
  _parse(e) {
6951
6951
  const { status: n, ctx: r } = this._processInputParams(e);
6952
6952
  if (r.parsedType !== P.map)
6953
- return z(r, {
6953
+ return $(r, {
6954
6954
  code: w.invalid_type,
6955
6955
  expected: P.map,
6956
6956
  received: r.parsedType
@@ -6988,24 +6988,24 @@ rs.create = (t, e, n) => new rs({
6988
6988
  typeName: k.ZodMap,
6989
6989
  ...L(n)
6990
6990
  });
6991
- class zt extends U {
6991
+ class $t extends U {
6992
6992
  _parse(e) {
6993
6993
  const { status: n, ctx: r } = this._processInputParams(e);
6994
6994
  if (r.parsedType !== P.set)
6995
- return z(r, {
6995
+ return $(r, {
6996
6996
  code: w.invalid_type,
6997
6997
  expected: P.set,
6998
6998
  received: r.parsedType
6999
6999
  }), M;
7000
7000
  const s = this._def;
7001
- s.minSize !== null && r.data.size < s.minSize.value && (z(r, {
7001
+ s.minSize !== null && r.data.size < s.minSize.value && ($(r, {
7002
7002
  code: w.too_small,
7003
7003
  minimum: s.minSize.value,
7004
7004
  type: "set",
7005
7005
  inclusive: !0,
7006
7006
  exact: !1,
7007
7007
  message: s.minSize.message
7008
- }), n.dirty()), s.maxSize !== null && r.data.size > s.maxSize.value && (z(r, {
7008
+ }), n.dirty()), s.maxSize !== null && r.data.size > s.maxSize.value && ($(r, {
7009
7009
  code: w.too_big,
7010
7010
  maximum: s.maxSize.value,
7011
7011
  type: "set",
@@ -7027,13 +7027,13 @@ class zt extends U {
7027
7027
  return r.common.async ? Promise.all(a).then((c) => o(c)) : o(a);
7028
7028
  }
7029
7029
  min(e, n) {
7030
- return new zt({
7030
+ return new $t({
7031
7031
  ...this._def,
7032
7032
  minSize: { value: e, message: E.toString(n) }
7033
7033
  });
7034
7034
  }
7035
7035
  max(e, n) {
7036
- return new zt({
7036
+ return new $t({
7037
7037
  ...this._def,
7038
7038
  maxSize: { value: e, message: E.toString(n) }
7039
7039
  });
@@ -7045,7 +7045,7 @@ class zt extends U {
7045
7045
  return this.min(1, e);
7046
7046
  }
7047
7047
  }
7048
- zt.create = (t, e) => new zt({
7048
+ $t.create = (t, e) => new $t({
7049
7049
  valueType: t,
7050
7050
  minSize: null,
7051
7051
  maxSize: null,
@@ -7070,7 +7070,7 @@ class is extends U {
7070
7070
  _parse(e) {
7071
7071
  if (e.data !== this._def.value) {
7072
7072
  const n = this._getOrReturnCtx(e);
7073
- return z(n, {
7073
+ return $(n, {
7074
7074
  received: n.data,
7075
7075
  code: w.invalid_literal,
7076
7076
  expected: this._def.value
@@ -7098,7 +7098,7 @@ class ut extends U {
7098
7098
  _parse(e) {
7099
7099
  if (typeof e.data != "string") {
7100
7100
  const n = this._getOrReturnCtx(e), r = this._def.values;
7101
- return z(n, {
7101
+ return $(n, {
7102
7102
  expected: J.joinValues(r),
7103
7103
  received: n.parsedType,
7104
7104
  code: w.invalid_type
@@ -7106,7 +7106,7 @@ class ut extends U {
7106
7106
  }
7107
7107
  if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
7108
7108
  const n = this._getOrReturnCtx(e), r = this._def.values;
7109
- return z(n, {
7109
+ return $(n, {
7110
7110
  received: n.data,
7111
7111
  code: w.invalid_enum_value,
7112
7112
  options: r
@@ -7154,7 +7154,7 @@ class os extends U {
7154
7154
  const n = J.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(e);
7155
7155
  if (r.parsedType !== P.string && r.parsedType !== P.number) {
7156
7156
  const s = J.objectValues(n);
7157
- return z(r, {
7157
+ return $(r, {
7158
7158
  expected: J.joinValues(s),
7159
7159
  received: r.parsedType,
7160
7160
  code: w.invalid_type
@@ -7162,7 +7162,7 @@ class os extends U {
7162
7162
  }
7163
7163
  if (this._cache || (this._cache = new Set(J.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
7164
7164
  const s = J.objectValues(n);
7165
- return z(r, {
7165
+ return $(r, {
7166
7166
  received: r.data,
7167
7167
  code: w.invalid_enum_value,
7168
7168
  options: s
@@ -7186,7 +7186,7 @@ class nn extends U {
7186
7186
  _parse(e) {
7187
7187
  const { ctx: n } = this._processInputParams(e);
7188
7188
  if (n.parsedType !== P.promise && n.common.async === !1)
7189
- return z(n, {
7189
+ return $(n, {
7190
7190
  code: w.invalid_type,
7191
7191
  expected: P.promise,
7192
7192
  received: n.parsedType
@@ -7213,7 +7213,7 @@ class lt extends U {
7213
7213
  _parse(e) {
7214
7214
  const { status: n, ctx: r } = this._processInputParams(e), s = this._def.effect || null, i = {
7215
7215
  addIssue: (o) => {
7216
- z(r, o), o.fatal ? n.abort() : n.dirty();
7216
+ $(r, o), o.fatal ? n.abort() : n.dirty();
7217
7217
  },
7218
7218
  get path() {
7219
7219
  return r.path;
@@ -7388,7 +7388,7 @@ class as extends U {
7388
7388
  _parse(e) {
7389
7389
  if (this._getType(e) !== P.nan) {
7390
7390
  const r = this._getOrReturnCtx(e);
7391
- return z(r, {
7391
+ return $(r, {
7392
7392
  code: w.invalid_type,
7393
7393
  expected: P.nan,
7394
7394
  received: r.parsedType
@@ -7796,7 +7796,7 @@ function Sh(t) {
7796
7796
  };
7797
7797
  }
7798
7798
  const Th = (t) => "type" in t && t.type === "string" ? !1 : "allOf" in t;
7799
- function zh(t, e) {
7799
+ function $h(t, e) {
7800
7800
  const n = [
7801
7801
  W(t.left._def, {
7802
7802
  ...e,
@@ -7826,7 +7826,7 @@ function zh(t, e) {
7826
7826
  ...r
7827
7827
  } : void 0;
7828
7828
  }
7829
- function $h(t, e) {
7829
+ function zh(t, e) {
7830
7830
  const n = typeof t.value;
7831
7831
  return n !== "bigint" && n !== "number" && n !== "boolean" && n !== "string" ? {
7832
7832
  type: Array.isArray(t.value) ? "array" : "object"
@@ -8423,13 +8423,13 @@ const Jh = (t, e) => W(t.innerType._def, e), Bh = (t, e, n) => {
8423
8423
  case k.ZodDiscriminatedUnion:
8424
8424
  return Oh(t, n);
8425
8425
  case k.ZodIntersection:
8426
- return zh(t, n);
8426
+ return $h(t, n);
8427
8427
  case k.ZodTuple:
8428
8428
  return Uh(t, n);
8429
8429
  case k.ZodRecord:
8430
8430
  return Xi(t, n);
8431
8431
  case k.ZodLiteral:
8432
- return $h(t, n);
8432
+ return zh(t, n);
8433
8433
  case k.ZodEnum:
8434
8434
  return Sh(t);
8435
8435
  case k.ZodNativeEnum:
@@ -9627,7 +9627,7 @@ var Un = {};
9627
9627
  var r;
9628
9628
  (function(c) {
9629
9629
  c[c.Started = 0] = "Started", c[c.Completed = 1] = "Completed";
9630
- })(r = t.UsedValueState || (t.UsedValueState = {})), t.varKinds = {
9630
+ })(r || (t.UsedValueState = r = {})), t.varKinds = {
9631
9631
  const: new e.Name("const"),
9632
9632
  let: new e.Name("let"),
9633
9633
  var: new e.Name("var")