@critical-path/svelte 0.16.2 → 0.16.3

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 (3) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/index.js +1342 -795
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1156,20 +1156,20 @@ var g = class e {
1156
1156
  }), v = (e) => ({
1157
1157
  status: "valid",
1158
1158
  value: e
1159
- }), be = (e) => e.status === "aborted", xe = (e) => e.status === "dirty", y = (e) => e.status === "valid", b = (e) => typeof Promise < "u" && e instanceof Promise, x;
1159
+ }), be = (e) => e.status === "aborted", xe = (e) => e.status === "dirty", y = (e) => e.status === "valid", Se = (e) => typeof Promise < "u" && e instanceof Promise, b;
1160
1160
  (function(e) {
1161
1161
  e.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, e.toString = (e) => typeof e == "string" ? e : e?.message;
1162
- })(x ||= {});
1162
+ })(b ||= {});
1163
1163
  //#endregion
1164
1164
  //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
1165
- var S = class {
1165
+ var x = class {
1166
1166
  constructor(e, t, n, r) {
1167
1167
  this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = r;
1168
1168
  }
1169
1169
  get path() {
1170
1170
  return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
1171
1171
  }
1172
- }, Se = (e, t) => {
1172
+ }, Ce = (e, t) => {
1173
1173
  if (y(t)) return {
1174
1174
  success: !0,
1175
1175
  data: t.value
@@ -1184,7 +1184,7 @@ var S = class {
1184
1184
  }
1185
1185
  };
1186
1186
  };
1187
- function C(e) {
1187
+ function S(e) {
1188
1188
  if (!e) return {};
1189
1189
  let { errorMap: t, invalid_type_error: n, required_error: r, description: i } = e;
1190
1190
  if (t && (n || r)) throw Error("Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.");
@@ -1199,7 +1199,7 @@ function C(e) {
1199
1199
  description: i
1200
1200
  };
1201
1201
  }
1202
- var w = class {
1202
+ var C = class {
1203
1203
  get description() {
1204
1204
  return this._def.description;
1205
1205
  }
@@ -1231,7 +1231,7 @@ var w = class {
1231
1231
  }
1232
1232
  _parseSync(e) {
1233
1233
  let t = this._parse(e);
1234
- if (b(t)) throw Error("Synchronous parse encountered promise.");
1234
+ if (Se(t)) throw Error("Synchronous parse encountered promise.");
1235
1235
  return t;
1236
1236
  }
1237
1237
  _parseAsync(e) {
@@ -1256,7 +1256,7 @@ var w = class {
1256
1256
  data: e,
1257
1257
  parsedType: d(e)
1258
1258
  };
1259
- return Se(n, this._parseSync({
1259
+ return Ce(n, this._parseSync({
1260
1260
  data: e,
1261
1261
  path: n.path,
1262
1262
  parent: n
@@ -1315,7 +1315,7 @@ var w = class {
1315
1315
  path: n.path,
1316
1316
  parent: n
1317
1317
  });
1318
- return Se(n, await (b(r) ? r : Promise.resolve(r)));
1318
+ return Ce(n, await (Se(r) ? r : Promise.resolve(r)));
1319
1319
  }
1320
1320
  refine(e, t) {
1321
1321
  let n = (e) => typeof t == "string" || t === void 0 ? { message: t } : typeof t == "function" ? t(e) : t;
@@ -1331,9 +1331,9 @@ var w = class {
1331
1331
  return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof t == "function" ? t(n, r) : t), !1));
1332
1332
  }
1333
1333
  _refinement(e) {
1334
- return new U({
1334
+ return new R({
1335
1335
  schema: this,
1336
- typeName: Y.ZodEffects,
1336
+ typeName: U.ZodEffects,
1337
1337
  effect: {
1338
1338
  type: "refinement",
1339
1339
  refinement: e
@@ -1351,31 +1351,31 @@ var w = class {
1351
1351
  };
1352
1352
  }
1353
1353
  optional() {
1354
- return W.create(this, this._def);
1354
+ return z.create(this, this._def);
1355
1355
  }
1356
1356
  nullable() {
1357
- return G.create(this, this._def);
1357
+ return B.create(this, this._def);
1358
1358
  }
1359
1359
  nullish() {
1360
1360
  return this.nullable().optional();
1361
1361
  }
1362
1362
  array() {
1363
- return j.create(this);
1363
+ return D.create(this);
1364
1364
  }
1365
1365
  promise() {
1366
- return H.create(this, this._def);
1366
+ return L.create(this, this._def);
1367
1367
  }
1368
1368
  or(e) {
1369
- return P.create([this, e], this._def);
1369
+ return A.create([this, e], this._def);
1370
1370
  }
1371
1371
  and(e) {
1372
- return I.create(this, e, this._def);
1372
+ return ot.create(this, e, this._def);
1373
1373
  }
1374
1374
  transform(e) {
1375
- return new U({
1376
- ...C(this._def),
1375
+ return new R({
1376
+ ...S(this._def),
1377
1377
  schema: this,
1378
- typeName: Y.ZodEffects,
1378
+ typeName: U.ZodEffects,
1379
1379
  effect: {
1380
1380
  type: "transform",
1381
1381
  transform: e
@@ -1384,27 +1384,27 @@ var w = class {
1384
1384
  }
1385
1385
  default(e) {
1386
1386
  let t = typeof e == "function" ? e : () => e;
1387
- return new K({
1388
- ...C(this._def),
1387
+ return new V({
1388
+ ...S(this._def),
1389
1389
  innerType: this,
1390
1390
  defaultValue: t,
1391
- typeName: Y.ZodDefault
1391
+ typeName: U.ZodDefault
1392
1392
  });
1393
1393
  }
1394
1394
  brand() {
1395
- return new ct({
1396
- typeName: Y.ZodBranded,
1395
+ return new pt({
1396
+ typeName: U.ZodBranded,
1397
1397
  type: this,
1398
- ...C(this._def)
1398
+ ...S(this._def)
1399
1399
  });
1400
1400
  }
1401
1401
  catch(e) {
1402
1402
  let t = typeof e == "function" ? e : () => e;
1403
- return new q({
1404
- ...C(this._def),
1403
+ return new H({
1404
+ ...S(this._def),
1405
1405
  innerType: this,
1406
1406
  catchValue: t,
1407
- typeName: Y.ZodCatch
1407
+ typeName: U.ZodCatch
1408
1408
  });
1409
1409
  }
1410
1410
  describe(e) {
@@ -1415,10 +1415,10 @@ var w = class {
1415
1415
  });
1416
1416
  }
1417
1417
  pipe(e) {
1418
- return lt.create(this, e);
1418
+ return mt.create(this, e);
1419
1419
  }
1420
1420
  readonly() {
1421
- return J.create(this);
1421
+ return ht.create(this);
1422
1422
  }
1423
1423
  isOptional() {
1424
1424
  return this.safeParse(void 0).success;
@@ -1426,25 +1426,25 @@ var w = class {
1426
1426
  isNullable() {
1427
1427
  return this.safeParse(null).success;
1428
1428
  }
1429
- }, Ce = /^c[^\s-]{8,}$/i, we = /^[0-9a-z]+$/, Te = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ee = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, De = /^[a-z0-9_-]{21}$/i, Oe = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, ke = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ae = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, je = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", Me, Ne = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pe = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Fe = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Ie = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Le = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Re = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, ze = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Be = RegExp(`^${ze}$`);
1430
- function Ve(e) {
1429
+ }, we = /^c[^\s-]{8,}$/i, Te = /^[0-9a-z]+$/, Ee = /^[0-9A-HJKMNP-TV-Z]{26}$/i, De = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Oe = /^[a-z0-9_-]{21}$/i, ke = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ae = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, je = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Me = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", Ne, Pe = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Fe = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ie = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Le = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Re = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ze = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Be = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ve = RegExp(`^${Be}$`);
1430
+ function He(e) {
1431
1431
  let t = "[0-5]\\d";
1432
1432
  e.precision ? t = `${t}\\.\\d{${e.precision}}` : e.precision ?? (t = `${t}(\\.\\d+)?`);
1433
1433
  let n = e.precision ? "+" : "?";
1434
1434
  return `([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`;
1435
1435
  }
1436
- function He(e) {
1437
- return RegExp(`^${Ve(e)}$`);
1438
- }
1439
1436
  function Ue(e) {
1440
- let t = `${ze}T${Ve(e)}`, n = [];
1441
- return n.push(e.local ? "Z?" : "Z"), e.offset && n.push("([+-]\\d{2}:?\\d{2})"), t = `${t}(${n.join("|")})`, RegExp(`^${t}$`);
1437
+ return RegExp(`^${He(e)}$`);
1442
1438
  }
1443
- function We(e, t) {
1444
- return !!((t === "v4" || !t) && Ne.test(e) || (t === "v6" || !t) && Fe.test(e));
1439
+ function We(e) {
1440
+ let t = `${Be}T${He(e)}`, n = [];
1441
+ return n.push(e.local ? "Z?" : "Z"), e.offset && n.push("([+-]\\d{2}:?\\d{2})"), t = `${t}(${n.join("|")})`, RegExp(`^${t}$`);
1445
1442
  }
1446
1443
  function Ge(e, t) {
1447
- if (!Oe.test(e)) return !1;
1444
+ return !!((t === "v4" || !t) && Pe.test(e) || (t === "v6" || !t) && Ie.test(e));
1445
+ }
1446
+ function Ke(e, t) {
1447
+ if (!ke.test(e)) return !1;
1448
1448
  try {
1449
1449
  let [n] = e.split(".");
1450
1450
  if (!n) return !1;
@@ -1454,10 +1454,10 @@ function Ge(e, t) {
1454
1454
  return !1;
1455
1455
  }
1456
1456
  }
1457
- function Ke(e, t) {
1458
- return !!((t === "v4" || !t) && Pe.test(e) || (t === "v6" || !t) && Ie.test(e));
1457
+ function qe(e, t) {
1458
+ return !!((t === "v4" || !t) && Fe.test(e) || (t === "v6" || !t) && Le.test(e));
1459
1459
  }
1460
- var T = class e extends w {
1460
+ var Je = class e extends C {
1461
1461
  _parse(e) {
1462
1462
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== u.string) {
1463
1463
  let t = this._getOrReturnCtx(e);
@@ -1501,37 +1501,37 @@ var T = class e extends w {
1501
1501
  exact: !0,
1502
1502
  message: r.message
1503
1503
  }), t.dirty());
1504
- } else if (r.kind === "email") Ae.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1504
+ } else if (r.kind === "email") je.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1505
1505
  validation: "email",
1506
1506
  code: f.invalid_string,
1507
1507
  message: r.message
1508
1508
  }), t.dirty());
1509
- else if (r.kind === "emoji") Me ||= new RegExp(je, "u"), Me.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1509
+ else if (r.kind === "emoji") Ne ||= new RegExp(Me, "u"), Ne.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1510
1510
  validation: "emoji",
1511
1511
  code: f.invalid_string,
1512
1512
  message: r.message
1513
1513
  }), t.dirty());
1514
- else if (r.kind === "uuid") Ee.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1514
+ else if (r.kind === "uuid") De.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1515
1515
  validation: "uuid",
1516
1516
  code: f.invalid_string,
1517
1517
  message: r.message
1518
1518
  }), t.dirty());
1519
- else if (r.kind === "nanoid") De.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1519
+ else if (r.kind === "nanoid") Oe.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1520
1520
  validation: "nanoid",
1521
1521
  code: f.invalid_string,
1522
1522
  message: r.message
1523
1523
  }), t.dirty());
1524
- else if (r.kind === "cuid") Ce.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1524
+ else if (r.kind === "cuid") we.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1525
1525
  validation: "cuid",
1526
1526
  code: f.invalid_string,
1527
1527
  message: r.message
1528
1528
  }), t.dirty());
1529
- else if (r.kind === "cuid2") we.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1529
+ else if (r.kind === "cuid2") Te.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1530
1530
  validation: "cuid2",
1531
1531
  code: f.invalid_string,
1532
1532
  message: r.message
1533
1533
  }), t.dirty());
1534
- else if (r.kind === "ulid") Te.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1534
+ else if (r.kind === "ulid") Ee.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1535
1535
  validation: "ulid",
1536
1536
  code: f.invalid_string,
1537
1537
  message: r.message
@@ -1564,39 +1564,39 @@ var T = class e extends w {
1564
1564
  code: f.invalid_string,
1565
1565
  validation: { endsWith: r.value },
1566
1566
  message: r.message
1567
- }), t.dirty()) : r.kind === "datetime" ? Ue(r).test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1567
+ }), t.dirty()) : r.kind === "datetime" ? We(r).test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1568
1568
  code: f.invalid_string,
1569
1569
  validation: "datetime",
1570
1570
  message: r.message
1571
- }), t.dirty()) : r.kind === "date" ? Be.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1571
+ }), t.dirty()) : r.kind === "date" ? Ve.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1572
1572
  code: f.invalid_string,
1573
1573
  validation: "date",
1574
1574
  message: r.message
1575
- }), t.dirty()) : r.kind === "time" ? He(r).test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1575
+ }), t.dirty()) : r.kind === "time" ? Ue(r).test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1576
1576
  code: f.invalid_string,
1577
1577
  validation: "time",
1578
1578
  message: r.message
1579
- }), t.dirty()) : r.kind === "duration" ? ke.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1579
+ }), t.dirty()) : r.kind === "duration" ? Ae.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1580
1580
  validation: "duration",
1581
1581
  code: f.invalid_string,
1582
1582
  message: r.message
1583
- }), t.dirty()) : r.kind === "ip" ? We(e.data, r.version) || (n = this._getOrReturnCtx(e, n), h(n, {
1583
+ }), t.dirty()) : r.kind === "ip" ? Ge(e.data, r.version) || (n = this._getOrReturnCtx(e, n), h(n, {
1584
1584
  validation: "ip",
1585
1585
  code: f.invalid_string,
1586
1586
  message: r.message
1587
- }), t.dirty()) : r.kind === "jwt" ? Ge(e.data, r.alg) || (n = this._getOrReturnCtx(e, n), h(n, {
1587
+ }), t.dirty()) : r.kind === "jwt" ? Ke(e.data, r.alg) || (n = this._getOrReturnCtx(e, n), h(n, {
1588
1588
  validation: "jwt",
1589
1589
  code: f.invalid_string,
1590
1590
  message: r.message
1591
- }), t.dirty()) : r.kind === "cidr" ? Ke(e.data, r.version) || (n = this._getOrReturnCtx(e, n), h(n, {
1591
+ }), t.dirty()) : r.kind === "cidr" ? qe(e.data, r.version) || (n = this._getOrReturnCtx(e, n), h(n, {
1592
1592
  validation: "cidr",
1593
1593
  code: f.invalid_string,
1594
1594
  message: r.message
1595
- }), t.dirty()) : r.kind === "base64" ? Le.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1595
+ }), t.dirty()) : r.kind === "base64" ? Re.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1596
1596
  validation: "base64",
1597
1597
  code: f.invalid_string,
1598
1598
  message: r.message
1599
- }), t.dirty()) : r.kind === "base64url" ? Re.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1599
+ }), t.dirty()) : r.kind === "base64url" ? ze.test(e.data) || (n = this._getOrReturnCtx(e, n), h(n, {
1600
1600
  validation: "base64url",
1601
1601
  code: f.invalid_string,
1602
1602
  message: r.message
@@ -1610,7 +1610,7 @@ var T = class e extends w {
1610
1610
  return this.refinement((t) => e.test(t), {
1611
1611
  validation: t,
1612
1612
  code: f.invalid_string,
1613
- ...x.errToObj(n)
1613
+ ...b.errToObj(n)
1614
1614
  });
1615
1615
  }
1616
1616
  _addCheck(t) {
@@ -1622,79 +1622,79 @@ var T = class e extends w {
1622
1622
  email(e) {
1623
1623
  return this._addCheck({
1624
1624
  kind: "email",
1625
- ...x.errToObj(e)
1625
+ ...b.errToObj(e)
1626
1626
  });
1627
1627
  }
1628
1628
  url(e) {
1629
1629
  return this._addCheck({
1630
1630
  kind: "url",
1631
- ...x.errToObj(e)
1631
+ ...b.errToObj(e)
1632
1632
  });
1633
1633
  }
1634
1634
  emoji(e) {
1635
1635
  return this._addCheck({
1636
1636
  kind: "emoji",
1637
- ...x.errToObj(e)
1637
+ ...b.errToObj(e)
1638
1638
  });
1639
1639
  }
1640
1640
  uuid(e) {
1641
1641
  return this._addCheck({
1642
1642
  kind: "uuid",
1643
- ...x.errToObj(e)
1643
+ ...b.errToObj(e)
1644
1644
  });
1645
1645
  }
1646
1646
  nanoid(e) {
1647
1647
  return this._addCheck({
1648
1648
  kind: "nanoid",
1649
- ...x.errToObj(e)
1649
+ ...b.errToObj(e)
1650
1650
  });
1651
1651
  }
1652
1652
  cuid(e) {
1653
1653
  return this._addCheck({
1654
1654
  kind: "cuid",
1655
- ...x.errToObj(e)
1655
+ ...b.errToObj(e)
1656
1656
  });
1657
1657
  }
1658
1658
  cuid2(e) {
1659
1659
  return this._addCheck({
1660
1660
  kind: "cuid2",
1661
- ...x.errToObj(e)
1661
+ ...b.errToObj(e)
1662
1662
  });
1663
1663
  }
1664
1664
  ulid(e) {
1665
1665
  return this._addCheck({
1666
1666
  kind: "ulid",
1667
- ...x.errToObj(e)
1667
+ ...b.errToObj(e)
1668
1668
  });
1669
1669
  }
1670
1670
  base64(e) {
1671
1671
  return this._addCheck({
1672
1672
  kind: "base64",
1673
- ...x.errToObj(e)
1673
+ ...b.errToObj(e)
1674
1674
  });
1675
1675
  }
1676
1676
  base64url(e) {
1677
1677
  return this._addCheck({
1678
1678
  kind: "base64url",
1679
- ...x.errToObj(e)
1679
+ ...b.errToObj(e)
1680
1680
  });
1681
1681
  }
1682
1682
  jwt(e) {
1683
1683
  return this._addCheck({
1684
1684
  kind: "jwt",
1685
- ...x.errToObj(e)
1685
+ ...b.errToObj(e)
1686
1686
  });
1687
1687
  }
1688
1688
  ip(e) {
1689
1689
  return this._addCheck({
1690
1690
  kind: "ip",
1691
- ...x.errToObj(e)
1691
+ ...b.errToObj(e)
1692
1692
  });
1693
1693
  }
1694
1694
  cidr(e) {
1695
1695
  return this._addCheck({
1696
1696
  kind: "cidr",
1697
- ...x.errToObj(e)
1697
+ ...b.errToObj(e)
1698
1698
  });
1699
1699
  }
1700
1700
  datetime(e) {
@@ -1709,7 +1709,7 @@ var T = class e extends w {
1709
1709
  precision: e?.precision === void 0 ? null : e?.precision,
1710
1710
  offset: e?.offset ?? !1,
1711
1711
  local: e?.local ?? !1,
1712
- ...x.errToObj(e?.message)
1712
+ ...b.errToObj(e?.message)
1713
1713
  });
1714
1714
  }
1715
1715
  date(e) {
@@ -1726,20 +1726,20 @@ var T = class e extends w {
1726
1726
  }) : this._addCheck({
1727
1727
  kind: "time",
1728
1728
  precision: e?.precision === void 0 ? null : e?.precision,
1729
- ...x.errToObj(e?.message)
1729
+ ...b.errToObj(e?.message)
1730
1730
  });
1731
1731
  }
1732
1732
  duration(e) {
1733
1733
  return this._addCheck({
1734
1734
  kind: "duration",
1735
- ...x.errToObj(e)
1735
+ ...b.errToObj(e)
1736
1736
  });
1737
1737
  }
1738
1738
  regex(e, t) {
1739
1739
  return this._addCheck({
1740
1740
  kind: "regex",
1741
1741
  regex: e,
1742
- ...x.errToObj(t)
1742
+ ...b.errToObj(t)
1743
1743
  });
1744
1744
  }
1745
1745
  includes(e, t) {
@@ -1747,46 +1747,46 @@ var T = class e extends w {
1747
1747
  kind: "includes",
1748
1748
  value: e,
1749
1749
  position: t?.position,
1750
- ...x.errToObj(t?.message)
1750
+ ...b.errToObj(t?.message)
1751
1751
  });
1752
1752
  }
1753
1753
  startsWith(e, t) {
1754
1754
  return this._addCheck({
1755
1755
  kind: "startsWith",
1756
1756
  value: e,
1757
- ...x.errToObj(t)
1757
+ ...b.errToObj(t)
1758
1758
  });
1759
1759
  }
1760
1760
  endsWith(e, t) {
1761
1761
  return this._addCheck({
1762
1762
  kind: "endsWith",
1763
1763
  value: e,
1764
- ...x.errToObj(t)
1764
+ ...b.errToObj(t)
1765
1765
  });
1766
1766
  }
1767
1767
  min(e, t) {
1768
1768
  return this._addCheck({
1769
1769
  kind: "min",
1770
1770
  value: e,
1771
- ...x.errToObj(t)
1771
+ ...b.errToObj(t)
1772
1772
  });
1773
1773
  }
1774
1774
  max(e, t) {
1775
1775
  return this._addCheck({
1776
1776
  kind: "max",
1777
1777
  value: e,
1778
- ...x.errToObj(t)
1778
+ ...b.errToObj(t)
1779
1779
  });
1780
1780
  }
1781
1781
  length(e, t) {
1782
1782
  return this._addCheck({
1783
1783
  kind: "length",
1784
1784
  value: e,
1785
- ...x.errToObj(t)
1785
+ ...b.errToObj(t)
1786
1786
  });
1787
1787
  }
1788
1788
  nonempty(e) {
1789
- return this.min(1, x.errToObj(e));
1789
+ return this.min(1, b.errToObj(e));
1790
1790
  }
1791
1791
  trim() {
1792
1792
  return new e({
@@ -1865,17 +1865,17 @@ var T = class e extends w {
1865
1865
  return e;
1866
1866
  }
1867
1867
  };
1868
- T.create = (e) => new T({
1868
+ Je.create = (e) => new Je({
1869
1869
  checks: [],
1870
- typeName: Y.ZodString,
1870
+ typeName: U.ZodString,
1871
1871
  coerce: e?.coerce ?? !1,
1872
- ...C(e)
1872
+ ...S(e)
1873
1873
  });
1874
- function qe(e, t) {
1874
+ function Ye(e, t) {
1875
1875
  let n = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, i = n > r ? n : r;
1876
1876
  return Number.parseInt(e.toFixed(i).replace(".", "")) % Number.parseInt(t.toFixed(i).replace(".", "")) / 10 ** i;
1877
1877
  }
1878
- var Je = class e extends w {
1878
+ var Xe = class e extends C {
1879
1879
  constructor() {
1880
1880
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1881
1881
  }
@@ -1908,7 +1908,7 @@ var Je = class e extends w {
1908
1908
  inclusive: r.inclusive,
1909
1909
  exact: !1,
1910
1910
  message: r.message
1911
- }), n.dirty()) : r.kind === "multipleOf" ? qe(e.data, r.value) !== 0 && (t = this._getOrReturnCtx(e, t), h(t, {
1911
+ }), n.dirty()) : r.kind === "multipleOf" ? Ye(e.data, r.value) !== 0 && (t = this._getOrReturnCtx(e, t), h(t, {
1912
1912
  code: f.not_multiple_of,
1913
1913
  multipleOf: r.value,
1914
1914
  message: r.message
@@ -1922,16 +1922,16 @@ var Je = class e extends w {
1922
1922
  };
1923
1923
  }
1924
1924
  gte(e, t) {
1925
- return this.setLimit("min", e, !0, x.toString(t));
1925
+ return this.setLimit("min", e, !0, b.toString(t));
1926
1926
  }
1927
1927
  gt(e, t) {
1928
- return this.setLimit("min", e, !1, x.toString(t));
1928
+ return this.setLimit("min", e, !1, b.toString(t));
1929
1929
  }
1930
1930
  lte(e, t) {
1931
- return this.setLimit("max", e, !0, x.toString(t));
1931
+ return this.setLimit("max", e, !0, b.toString(t));
1932
1932
  }
1933
1933
  lt(e, t) {
1934
- return this.setLimit("max", e, !1, x.toString(t));
1934
+ return this.setLimit("max", e, !1, b.toString(t));
1935
1935
  }
1936
1936
  setLimit(t, n, r, i) {
1937
1937
  return new e({
@@ -1940,7 +1940,7 @@ var Je = class e extends w {
1940
1940
  kind: t,
1941
1941
  value: n,
1942
1942
  inclusive: r,
1943
- message: x.toString(i)
1943
+ message: b.toString(i)
1944
1944
  }]
1945
1945
  });
1946
1946
  }
@@ -1953,7 +1953,7 @@ var Je = class e extends w {
1953
1953
  int(e) {
1954
1954
  return this._addCheck({
1955
1955
  kind: "int",
1956
- message: x.toString(e)
1956
+ message: b.toString(e)
1957
1957
  });
1958
1958
  }
1959
1959
  positive(e) {
@@ -1961,7 +1961,7 @@ var Je = class e extends w {
1961
1961
  kind: "min",
1962
1962
  value: 0,
1963
1963
  inclusive: !1,
1964
- message: x.toString(e)
1964
+ message: b.toString(e)
1965
1965
  });
1966
1966
  }
1967
1967
  negative(e) {
@@ -1969,7 +1969,7 @@ var Je = class e extends w {
1969
1969
  kind: "max",
1970
1970
  value: 0,
1971
1971
  inclusive: !1,
1972
- message: x.toString(e)
1972
+ message: b.toString(e)
1973
1973
  });
1974
1974
  }
1975
1975
  nonpositive(e) {
@@ -1977,7 +1977,7 @@ var Je = class e extends w {
1977
1977
  kind: "max",
1978
1978
  value: 0,
1979
1979
  inclusive: !0,
1980
- message: x.toString(e)
1980
+ message: b.toString(e)
1981
1981
  });
1982
1982
  }
1983
1983
  nonnegative(e) {
@@ -1985,20 +1985,20 @@ var Je = class e extends w {
1985
1985
  kind: "min",
1986
1986
  value: 0,
1987
1987
  inclusive: !0,
1988
- message: x.toString(e)
1988
+ message: b.toString(e)
1989
1989
  });
1990
1990
  }
1991
1991
  multipleOf(e, t) {
1992
1992
  return this._addCheck({
1993
1993
  kind: "multipleOf",
1994
1994
  value: e,
1995
- message: x.toString(t)
1995
+ message: b.toString(t)
1996
1996
  });
1997
1997
  }
1998
1998
  finite(e) {
1999
1999
  return this._addCheck({
2000
2000
  kind: "finite",
2001
- message: x.toString(e)
2001
+ message: b.toString(e)
2002
2002
  });
2003
2003
  }
2004
2004
  safe(e) {
@@ -2006,12 +2006,12 @@ var Je = class e extends w {
2006
2006
  kind: "min",
2007
2007
  inclusive: !0,
2008
2008
  value: -(2 ** 53 - 1),
2009
- message: x.toString(e)
2009
+ message: b.toString(e)
2010
2010
  })._addCheck({
2011
2011
  kind: "max",
2012
2012
  inclusive: !0,
2013
2013
  value: 2 ** 53 - 1,
2014
- message: x.toString(e)
2014
+ message: b.toString(e)
2015
2015
  });
2016
2016
  }
2017
2017
  get minValue() {
@@ -2034,13 +2034,13 @@ var Je = class e extends w {
2034
2034
  return Number.isFinite(t) && Number.isFinite(e);
2035
2035
  }
2036
2036
  };
2037
- Je.create = (e) => new Je({
2037
+ Xe.create = (e) => new Xe({
2038
2038
  checks: [],
2039
- typeName: Y.ZodNumber,
2039
+ typeName: U.ZodNumber,
2040
2040
  coerce: e?.coerce || !1,
2041
- ...C(e)
2041
+ ...S(e)
2042
2042
  });
2043
- var Ye = class e extends w {
2043
+ var Ze = class e extends C {
2044
2044
  constructor() {
2045
2045
  super(...arguments), this.min = this.gte, this.max = this.lte;
2046
2046
  }
@@ -2083,16 +2083,16 @@ var Ye = class e extends w {
2083
2083
  }), _;
2084
2084
  }
2085
2085
  gte(e, t) {
2086
- return this.setLimit("min", e, !0, x.toString(t));
2086
+ return this.setLimit("min", e, !0, b.toString(t));
2087
2087
  }
2088
2088
  gt(e, t) {
2089
- return this.setLimit("min", e, !1, x.toString(t));
2089
+ return this.setLimit("min", e, !1, b.toString(t));
2090
2090
  }
2091
2091
  lte(e, t) {
2092
- return this.setLimit("max", e, !0, x.toString(t));
2092
+ return this.setLimit("max", e, !0, b.toString(t));
2093
2093
  }
2094
2094
  lt(e, t) {
2095
- return this.setLimit("max", e, !1, x.toString(t));
2095
+ return this.setLimit("max", e, !1, b.toString(t));
2096
2096
  }
2097
2097
  setLimit(t, n, r, i) {
2098
2098
  return new e({
@@ -2101,7 +2101,7 @@ var Ye = class e extends w {
2101
2101
  kind: t,
2102
2102
  value: n,
2103
2103
  inclusive: r,
2104
- message: x.toString(i)
2104
+ message: b.toString(i)
2105
2105
  }]
2106
2106
  });
2107
2107
  }
@@ -2116,7 +2116,7 @@ var Ye = class e extends w {
2116
2116
  kind: "min",
2117
2117
  value: BigInt(0),
2118
2118
  inclusive: !1,
2119
- message: x.toString(e)
2119
+ message: b.toString(e)
2120
2120
  });
2121
2121
  }
2122
2122
  negative(e) {
@@ -2124,7 +2124,7 @@ var Ye = class e extends w {
2124
2124
  kind: "max",
2125
2125
  value: BigInt(0),
2126
2126
  inclusive: !1,
2127
- message: x.toString(e)
2127
+ message: b.toString(e)
2128
2128
  });
2129
2129
  }
2130
2130
  nonpositive(e) {
@@ -2132,7 +2132,7 @@ var Ye = class e extends w {
2132
2132
  kind: "max",
2133
2133
  value: BigInt(0),
2134
2134
  inclusive: !0,
2135
- message: x.toString(e)
2135
+ message: b.toString(e)
2136
2136
  });
2137
2137
  }
2138
2138
  nonnegative(e) {
@@ -2140,14 +2140,14 @@ var Ye = class e extends w {
2140
2140
  kind: "min",
2141
2141
  value: BigInt(0),
2142
2142
  inclusive: !0,
2143
- message: x.toString(e)
2143
+ message: b.toString(e)
2144
2144
  });
2145
2145
  }
2146
2146
  multipleOf(e, t) {
2147
2147
  return this._addCheck({
2148
2148
  kind: "multipleOf",
2149
2149
  value: e,
2150
- message: x.toString(t)
2150
+ message: b.toString(t)
2151
2151
  });
2152
2152
  }
2153
2153
  get minValue() {
@@ -2161,13 +2161,13 @@ var Ye = class e extends w {
2161
2161
  return e;
2162
2162
  }
2163
2163
  };
2164
- Ye.create = (e) => new Ye({
2164
+ Ze.create = (e) => new Ze({
2165
2165
  checks: [],
2166
- typeName: Y.ZodBigInt,
2166
+ typeName: U.ZodBigInt,
2167
2167
  coerce: e?.coerce ?? !1,
2168
- ...C(e)
2168
+ ...S(e)
2169
2169
  });
2170
- var E = class extends w {
2170
+ var Qe = class extends C {
2171
2171
  _parse(e) {
2172
2172
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== u.boolean) {
2173
2173
  let t = this._getOrReturnCtx(e);
@@ -2180,12 +2180,12 @@ var E = class extends w {
2180
2180
  return v(e.data);
2181
2181
  }
2182
2182
  };
2183
- E.create = (e) => new E({
2184
- typeName: Y.ZodBoolean,
2183
+ Qe.create = (e) => new Qe({
2184
+ typeName: U.ZodBoolean,
2185
2185
  coerce: e?.coerce || !1,
2186
- ...C(e)
2186
+ ...S(e)
2187
2187
  });
2188
- var Xe = class e extends w {
2188
+ var $e = class e extends C {
2189
2189
  _parse(e) {
2190
2190
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== u.date) {
2191
2191
  let t = this._getOrReturnCtx(e);
@@ -2227,14 +2227,14 @@ var Xe = class e extends w {
2227
2227
  return this._addCheck({
2228
2228
  kind: "min",
2229
2229
  value: e.getTime(),
2230
- message: x.toString(t)
2230
+ message: b.toString(t)
2231
2231
  });
2232
2232
  }
2233
2233
  max(e, t) {
2234
2234
  return this._addCheck({
2235
2235
  kind: "max",
2236
2236
  value: e.getTime(),
2237
- message: x.toString(t)
2237
+ message: b.toString(t)
2238
2238
  });
2239
2239
  }
2240
2240
  get minDate() {
@@ -2248,13 +2248,13 @@ var Xe = class e extends w {
2248
2248
  return e == null ? null : new Date(e);
2249
2249
  }
2250
2250
  };
2251
- Xe.create = (e) => new Xe({
2251
+ $e.create = (e) => new $e({
2252
2252
  checks: [],
2253
2253
  coerce: e?.coerce || !1,
2254
- typeName: Y.ZodDate,
2255
- ...C(e)
2254
+ typeName: U.ZodDate,
2255
+ ...S(e)
2256
2256
  });
2257
- var Ze = class extends w {
2257
+ var et = class extends C {
2258
2258
  _parse(e) {
2259
2259
  if (this._getType(e) !== u.symbol) {
2260
2260
  let t = this._getOrReturnCtx(e);
@@ -2267,11 +2267,11 @@ var Ze = class extends w {
2267
2267
  return v(e.data);
2268
2268
  }
2269
2269
  };
2270
- Ze.create = (e) => new Ze({
2271
- typeName: Y.ZodSymbol,
2272
- ...C(e)
2270
+ et.create = (e) => new et({
2271
+ typeName: U.ZodSymbol,
2272
+ ...S(e)
2273
2273
  });
2274
- var D = class extends w {
2274
+ var w = class extends C {
2275
2275
  _parse(e) {
2276
2276
  if (this._getType(e) !== u.undefined) {
2277
2277
  let t = this._getOrReturnCtx(e);
@@ -2284,11 +2284,11 @@ var D = class extends w {
2284
2284
  return v(e.data);
2285
2285
  }
2286
2286
  };
2287
- D.create = (e) => new D({
2288
- typeName: Y.ZodUndefined,
2289
- ...C(e)
2287
+ w.create = (e) => new w({
2288
+ typeName: U.ZodUndefined,
2289
+ ...S(e)
2290
2290
  });
2291
- var O = class extends w {
2291
+ var tt = class extends C {
2292
2292
  _parse(e) {
2293
2293
  if (this._getType(e) !== u.null) {
2294
2294
  let t = this._getOrReturnCtx(e);
@@ -2301,11 +2301,11 @@ var O = class extends w {
2301
2301
  return v(e.data);
2302
2302
  }
2303
2303
  };
2304
- O.create = (e) => new O({
2305
- typeName: Y.ZodNull,
2306
- ...C(e)
2304
+ tt.create = (e) => new tt({
2305
+ typeName: U.ZodNull,
2306
+ ...S(e)
2307
2307
  });
2308
- var Qe = class extends w {
2308
+ var nt = class extends C {
2309
2309
  constructor() {
2310
2310
  super(...arguments), this._any = !0;
2311
2311
  }
@@ -2313,11 +2313,11 @@ var Qe = class extends w {
2313
2313
  return v(e.data);
2314
2314
  }
2315
2315
  };
2316
- Qe.create = (e) => new Qe({
2317
- typeName: Y.ZodAny,
2318
- ...C(e)
2316
+ nt.create = (e) => new nt({
2317
+ typeName: U.ZodAny,
2318
+ ...S(e)
2319
2319
  });
2320
- var k = class extends w {
2320
+ var T = class extends C {
2321
2321
  constructor() {
2322
2322
  super(...arguments), this._unknown = !0;
2323
2323
  }
@@ -2325,11 +2325,11 @@ var k = class extends w {
2325
2325
  return v(e.data);
2326
2326
  }
2327
2327
  };
2328
- k.create = (e) => new k({
2329
- typeName: Y.ZodUnknown,
2330
- ...C(e)
2328
+ T.create = (e) => new T({
2329
+ typeName: U.ZodUnknown,
2330
+ ...S(e)
2331
2331
  });
2332
- var A = class extends w {
2332
+ var E = class extends C {
2333
2333
  _parse(e) {
2334
2334
  let t = this._getOrReturnCtx(e);
2335
2335
  return h(t, {
@@ -2339,11 +2339,11 @@ var A = class extends w {
2339
2339
  }), _;
2340
2340
  }
2341
2341
  };
2342
- A.create = (e) => new A({
2343
- typeName: Y.ZodNever,
2344
- ...C(e)
2342
+ E.create = (e) => new E({
2343
+ typeName: U.ZodNever,
2344
+ ...S(e)
2345
2345
  });
2346
- var $e = class extends w {
2346
+ var rt = class extends C {
2347
2347
  _parse(e) {
2348
2348
  if (this._getType(e) !== u.undefined) {
2349
2349
  let t = this._getOrReturnCtx(e);
@@ -2356,11 +2356,11 @@ var $e = class extends w {
2356
2356
  return v(e.data);
2357
2357
  }
2358
2358
  };
2359
- $e.create = (e) => new $e({
2360
- typeName: Y.ZodVoid,
2361
- ...C(e)
2359
+ rt.create = (e) => new rt({
2360
+ typeName: U.ZodVoid,
2361
+ ...S(e)
2362
2362
  });
2363
- var j = class e extends w {
2363
+ var D = class e extends C {
2364
2364
  _parse(e) {
2365
2365
  let { ctx: t, status: n } = this._processInputParams(e), r = this._def;
2366
2366
  if (t.parsedType !== u.array) return h(t, {
@@ -2394,8 +2394,8 @@ var j = class e extends w {
2394
2394
  inclusive: !0,
2395
2395
  exact: !1,
2396
2396
  message: r.maxLength.message
2397
- }), n.dirty()), t.common.async) return Promise.all([...t.data].map((e, n) => r.type._parseAsync(new S(t, e, t.path, n)))).then((e) => g.mergeArray(n, e));
2398
- let i = [...t.data].map((e, n) => r.type._parseSync(new S(t, e, t.path, n)));
2397
+ }), n.dirty()), t.common.async) return Promise.all([...t.data].map((e, n) => r.type._parseAsync(new x(t, e, t.path, n)))).then((e) => g.mergeArray(n, e));
2398
+ let i = [...t.data].map((e, n) => r.type._parseSync(new x(t, e, t.path, n)));
2399
2399
  return g.mergeArray(n, i);
2400
2400
  }
2401
2401
  get element() {
@@ -2406,7 +2406,7 @@ var j = class e extends w {
2406
2406
  ...this._def,
2407
2407
  minLength: {
2408
2408
  value: t,
2409
- message: x.toString(n)
2409
+ message: b.toString(n)
2410
2410
  }
2411
2411
  });
2412
2412
  }
@@ -2415,7 +2415,7 @@ var j = class e extends w {
2415
2415
  ...this._def,
2416
2416
  maxLength: {
2417
2417
  value: t,
2418
- message: x.toString(n)
2418
+ message: b.toString(n)
2419
2419
  }
2420
2420
  });
2421
2421
  }
@@ -2424,7 +2424,7 @@ var j = class e extends w {
2424
2424
  ...this._def,
2425
2425
  exactLength: {
2426
2426
  value: t,
2427
- message: x.toString(n)
2427
+ message: b.toString(n)
2428
2428
  }
2429
2429
  });
2430
2430
  }
@@ -2432,32 +2432,32 @@ var j = class e extends w {
2432
2432
  return this.min(1, e);
2433
2433
  }
2434
2434
  };
2435
- j.create = (e, t) => new j({
2435
+ D.create = (e, t) => new D({
2436
2436
  type: e,
2437
2437
  minLength: null,
2438
2438
  maxLength: null,
2439
2439
  exactLength: null,
2440
- typeName: Y.ZodArray,
2441
- ...C(t)
2440
+ typeName: U.ZodArray,
2441
+ ...S(t)
2442
2442
  });
2443
- function M(e) {
2444
- if (e instanceof N) {
2443
+ function O(e) {
2444
+ if (e instanceof k) {
2445
2445
  let t = {};
2446
2446
  for (let n in e.shape) {
2447
2447
  let r = e.shape[n];
2448
- t[n] = W.create(M(r));
2448
+ t[n] = z.create(O(r));
2449
2449
  }
2450
- return new N({
2450
+ return new k({
2451
2451
  ...e._def,
2452
2452
  shape: () => t
2453
2453
  });
2454
2454
  }
2455
- return e instanceof j ? new j({
2455
+ return e instanceof D ? new D({
2456
2456
  ...e._def,
2457
- type: M(e.element)
2458
- }) : e instanceof W ? W.create(M(e.unwrap())) : e instanceof G ? G.create(M(e.unwrap())) : e instanceof L ? L.create(e.items.map((e) => M(e))) : e;
2457
+ type: O(e.element)
2458
+ }) : e instanceof z ? z.create(O(e.unwrap())) : e instanceof B ? B.create(O(e.unwrap())) : e instanceof M ? M.create(e.items.map((e) => O(e))) : e;
2459
2459
  }
2460
- var N = class e extends w {
2460
+ var k = class e extends C {
2461
2461
  constructor() {
2462
2462
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
2463
2463
  }
@@ -2479,7 +2479,7 @@ var N = class e extends w {
2479
2479
  }), _;
2480
2480
  }
2481
2481
  let { status: t, ctx: n } = this._processInputParams(e), { shape: r, keys: i } = this._getCached(), a = [];
2482
- if (!(this._def.catchall instanceof A && this._def.unknownKeys === "strip")) for (let e in n.data) i.includes(e) || a.push(e);
2482
+ if (!(this._def.catchall instanceof E && this._def.unknownKeys === "strip")) for (let e in n.data) i.includes(e) || a.push(e);
2483
2483
  let o = [];
2484
2484
  for (let e of i) {
2485
2485
  let t = r[e], i = n.data[e];
@@ -2488,11 +2488,11 @@ var N = class e extends w {
2488
2488
  status: "valid",
2489
2489
  value: e
2490
2490
  },
2491
- value: t._parse(new S(n, i, n.path, e)),
2491
+ value: t._parse(new x(n, i, n.path, e)),
2492
2492
  alwaysSet: e in n.data
2493
2493
  });
2494
2494
  }
2495
- if (this._def.catchall instanceof A) {
2495
+ if (this._def.catchall instanceof E) {
2496
2496
  let e = this._def.unknownKeys;
2497
2497
  if (e === "passthrough") for (let e of a) o.push({
2498
2498
  key: {
@@ -2518,7 +2518,7 @@ var N = class e extends w {
2518
2518
  status: "valid",
2519
2519
  value: t
2520
2520
  },
2521
- value: e._parse(new S(n, r, n.path, t)),
2521
+ value: e._parse(new x(n, r, n.path, t)),
2522
2522
  alwaysSet: t in n.data
2523
2523
  });
2524
2524
  }
@@ -2540,12 +2540,12 @@ var N = class e extends w {
2540
2540
  return this._def.shape();
2541
2541
  }
2542
2542
  strict(t) {
2543
- return x.errToObj, new e({
2543
+ return b.errToObj, new e({
2544
2544
  ...this._def,
2545
2545
  unknownKeys: "strict",
2546
2546
  ...t === void 0 ? {} : { errorMap: (e, n) => {
2547
2547
  let r = this._def.errorMap?.(e, n).message ?? n.defaultError;
2548
- return e.code === "unrecognized_keys" ? { message: x.errToObj(t).message ?? r } : { message: r };
2548
+ return e.code === "unrecognized_keys" ? { message: b.errToObj(t).message ?? r } : { message: r };
2549
2549
  } }
2550
2550
  });
2551
2551
  }
@@ -2578,7 +2578,7 @@ var N = class e extends w {
2578
2578
  ...this._def.shape(),
2579
2579
  ...t._def.shape()
2580
2580
  }),
2581
- typeName: Y.ZodObject
2581
+ typeName: U.ZodObject
2582
2582
  });
2583
2583
  }
2584
2584
  setKey(e, t) {
@@ -2607,7 +2607,7 @@ var N = class e extends w {
2607
2607
  });
2608
2608
  }
2609
2609
  deepPartial() {
2610
- return M(this);
2610
+ return O(this);
2611
2611
  }
2612
2612
  partial(t) {
2613
2613
  let n = {};
@@ -2625,7 +2625,7 @@ var N = class e extends w {
2625
2625
  for (let e of l.objectKeys(this.shape)) if (t && !t[e]) n[e] = this.shape[e];
2626
2626
  else {
2627
2627
  let t = this.shape[e];
2628
- for (; t instanceof W;) t = t._def.innerType;
2628
+ for (; t instanceof z;) t = t._def.innerType;
2629
2629
  n[e] = t;
2630
2630
  }
2631
2631
  return new e({
@@ -2634,29 +2634,29 @@ var N = class e extends w {
2634
2634
  });
2635
2635
  }
2636
2636
  keyof() {
2637
- return ot(l.objectKeys(this.shape));
2637
+ return dt(l.objectKeys(this.shape));
2638
2638
  }
2639
2639
  };
2640
- N.create = (e, t) => new N({
2640
+ k.create = (e, t) => new k({
2641
2641
  shape: () => e,
2642
2642
  unknownKeys: "strip",
2643
- catchall: A.create(),
2644
- typeName: Y.ZodObject,
2645
- ...C(t)
2646
- }), N.strictCreate = (e, t) => new N({
2643
+ catchall: E.create(),
2644
+ typeName: U.ZodObject,
2645
+ ...S(t)
2646
+ }), k.strictCreate = (e, t) => new k({
2647
2647
  shape: () => e,
2648
2648
  unknownKeys: "strict",
2649
- catchall: A.create(),
2650
- typeName: Y.ZodObject,
2651
- ...C(t)
2652
- }), N.lazycreate = (e, t) => new N({
2649
+ catchall: E.create(),
2650
+ typeName: U.ZodObject,
2651
+ ...S(t)
2652
+ }), k.lazycreate = (e, t) => new k({
2653
2653
  shape: e,
2654
2654
  unknownKeys: "strip",
2655
- catchall: A.create(),
2656
- typeName: Y.ZodObject,
2657
- ...C(t)
2655
+ catchall: E.create(),
2656
+ typeName: U.ZodObject,
2657
+ ...S(t)
2658
2658
  });
2659
- var P = class extends w {
2659
+ var A = class extends C {
2660
2660
  _parse(e) {
2661
2661
  let { ctx: t } = this._processInputParams(e), n = this._def.options;
2662
2662
  function r(e) {
@@ -2719,12 +2719,12 @@ var P = class extends w {
2719
2719
  return this._def.options;
2720
2720
  }
2721
2721
  };
2722
- P.create = (e, t) => new P({
2722
+ A.create = (e, t) => new A({
2723
2723
  options: e,
2724
- typeName: Y.ZodUnion,
2725
- ...C(t)
2724
+ typeName: U.ZodUnion,
2725
+ ...S(t)
2726
2726
  });
2727
- var F = (e) => e instanceof R ? F(e.schema) : e instanceof U ? F(e.innerType()) : e instanceof z ? [e.value] : e instanceof B ? e.options : e instanceof V ? l.objectValues(e.enum) : e instanceof K ? F(e._def.innerType) : e instanceof D ? [void 0] : e instanceof O ? [null] : e instanceof W ? [void 0, ...F(e.unwrap())] : e instanceof G ? [null, ...F(e.unwrap())] : e instanceof ct || e instanceof J ? F(e.unwrap()) : e instanceof q ? F(e._def.innerType) : [], et = class e extends w {
2727
+ var j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType()) : e instanceof P ? [e.value] : e instanceof F ? e.options : e instanceof I ? l.objectValues(e.enum) : e instanceof V ? j(e._def.innerType) : e instanceof w ? [void 0] : e instanceof tt ? [null] : e instanceof z ? [void 0, ...j(e.unwrap())] : e instanceof B ? [null, ...j(e.unwrap())] : e instanceof pt || e instanceof ht ? j(e.unwrap()) : e instanceof H ? j(e._def.innerType) : [], it = class e extends C {
2728
2728
  _parse(e) {
2729
2729
  let { ctx: t } = this._processInputParams(e);
2730
2730
  if (t.parsedType !== u.object) return h(t, {
@@ -2759,7 +2759,7 @@ var F = (e) => e instanceof R ? F(e.schema) : e instanceof U ? F(e.innerType())
2759
2759
  static create(t, n, r) {
2760
2760
  let i = /* @__PURE__ */ new Map();
2761
2761
  for (let e of n) {
2762
- let n = F(e.shape[t]);
2762
+ let n = j(e.shape[t]);
2763
2763
  if (!n.length) throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);
2764
2764
  for (let r of n) {
2765
2765
  if (i.has(r)) throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);
@@ -2767,15 +2767,15 @@ var F = (e) => e instanceof R ? F(e.schema) : e instanceof U ? F(e.innerType())
2767
2767
  }
2768
2768
  }
2769
2769
  return new e({
2770
- typeName: Y.ZodDiscriminatedUnion,
2770
+ typeName: U.ZodDiscriminatedUnion,
2771
2771
  discriminator: t,
2772
2772
  options: n,
2773
2773
  optionsMap: i,
2774
- ...C(r)
2774
+ ...S(r)
2775
2775
  });
2776
2776
  }
2777
2777
  };
2778
- function tt(e, t) {
2778
+ function at(e, t) {
2779
2779
  let n = d(e), r = d(t);
2780
2780
  if (e === t) return {
2781
2781
  valid: !0,
@@ -2787,7 +2787,7 @@ function tt(e, t) {
2787
2787
  ...t
2788
2788
  };
2789
2789
  for (let n of r) {
2790
- let r = tt(e[n], t[n]);
2790
+ let r = at(e[n], t[n]);
2791
2791
  if (!r.valid) return { valid: !1 };
2792
2792
  i[n] = r.data;
2793
2793
  }
@@ -2800,7 +2800,7 @@ function tt(e, t) {
2800
2800
  if (e.length !== t.length) return { valid: !1 };
2801
2801
  let n = [];
2802
2802
  for (let r = 0; r < e.length; r++) {
2803
- let i = e[r], a = t[r], o = tt(i, a);
2803
+ let i = e[r], a = t[r], o = at(i, a);
2804
2804
  if (!o.valid) return { valid: !1 };
2805
2805
  n.push(o.data);
2806
2806
  }
@@ -2814,11 +2814,11 @@ function tt(e, t) {
2814
2814
  data: e
2815
2815
  } : { valid: !1 };
2816
2816
  }
2817
- var I = class extends w {
2817
+ var ot = class extends C {
2818
2818
  _parse(e) {
2819
2819
  let { status: t, ctx: n } = this._processInputParams(e), r = (e, r) => {
2820
2820
  if (be(e) || be(r)) return _;
2821
- let i = tt(e.value, r.value);
2821
+ let i = at(e.value, r.value);
2822
2822
  return i.valid ? ((xe(e) || xe(r)) && t.dirty(), {
2823
2823
  status: t.value,
2824
2824
  value: i.data
@@ -2843,13 +2843,13 @@ var I = class extends w {
2843
2843
  }));
2844
2844
  }
2845
2845
  };
2846
- I.create = (e, t, n) => new I({
2846
+ ot.create = (e, t, n) => new ot({
2847
2847
  left: e,
2848
2848
  right: t,
2849
- typeName: Y.ZodIntersection,
2850
- ...C(n)
2849
+ typeName: U.ZodIntersection,
2850
+ ...S(n)
2851
2851
  });
2852
- var L = class e extends w {
2852
+ var M = class e extends C {
2853
2853
  _parse(e) {
2854
2854
  let { status: t, ctx: n } = this._processInputParams(e);
2855
2855
  if (n.parsedType !== u.array) return h(n, {
@@ -2873,7 +2873,7 @@ var L = class e extends w {
2873
2873
  }), t.dirty());
2874
2874
  let r = [...n.data].map((e, t) => {
2875
2875
  let r = this._def.items[t] || this._def.rest;
2876
- return r ? r._parse(new S(n, e, n.path, t)) : null;
2876
+ return r ? r._parse(new x(n, e, n.path, t)) : null;
2877
2877
  }).filter((e) => !!e);
2878
2878
  return n.common.async ? Promise.all(r).then((e) => g.mergeArray(t, e)) : g.mergeArray(t, r);
2879
2879
  }
@@ -2887,16 +2887,16 @@ var L = class e extends w {
2887
2887
  });
2888
2888
  }
2889
2889
  };
2890
- L.create = (e, t) => {
2890
+ M.create = (e, t) => {
2891
2891
  if (!Array.isArray(e)) throw Error("You must pass an array of schemas to z.tuple([ ... ])");
2892
- return new L({
2892
+ return new M({
2893
2893
  items: e,
2894
- typeName: Y.ZodTuple,
2894
+ typeName: U.ZodTuple,
2895
2895
  rest: null,
2896
- ...C(t)
2896
+ ...S(t)
2897
2897
  });
2898
2898
  };
2899
- var nt = class e extends w {
2899
+ var st = class e extends C {
2900
2900
  get keySchema() {
2901
2901
  return this._def.keyType;
2902
2902
  }
@@ -2912,8 +2912,8 @@ var nt = class e extends w {
2912
2912
  }), _;
2913
2913
  let r = [], i = this._def.keyType, a = this._def.valueType;
2914
2914
  for (let e in n.data) r.push({
2915
- key: i._parse(new S(n, e, n.path, e)),
2916
- value: a._parse(new S(n, n.data[e], n.path, e)),
2915
+ key: i._parse(new x(n, e, n.path, e)),
2916
+ value: a._parse(new x(n, n.data[e], n.path, e)),
2917
2917
  alwaysSet: e in n.data
2918
2918
  });
2919
2919
  return n.common.async ? g.mergeObjectAsync(t, r) : g.mergeObjectSync(t, r);
@@ -2922,19 +2922,19 @@ var nt = class e extends w {
2922
2922
  return this._def.valueType;
2923
2923
  }
2924
2924
  static create(t, n, r) {
2925
- return n instanceof w ? new e({
2925
+ return n instanceof C ? new e({
2926
2926
  keyType: t,
2927
2927
  valueType: n,
2928
- typeName: Y.ZodRecord,
2929
- ...C(r)
2928
+ typeName: U.ZodRecord,
2929
+ ...S(r)
2930
2930
  }) : new e({
2931
- keyType: T.create(),
2931
+ keyType: Je.create(),
2932
2932
  valueType: t,
2933
- typeName: Y.ZodRecord,
2934
- ...C(n)
2933
+ typeName: U.ZodRecord,
2934
+ ...S(n)
2935
2935
  });
2936
2936
  }
2937
- }, rt = class extends w {
2937
+ }, ct = class extends C {
2938
2938
  get keySchema() {
2939
2939
  return this._def.keyType;
2940
2940
  }
@@ -2949,8 +2949,8 @@ var nt = class e extends w {
2949
2949
  received: n.parsedType
2950
2950
  }), _;
2951
2951
  let r = this._def.keyType, i = this._def.valueType, a = [...n.data.entries()].map(([e, t], a) => ({
2952
- key: r._parse(new S(n, e, n.path, [a, "key"])),
2953
- value: i._parse(new S(n, t, n.path, [a, "value"]))
2952
+ key: r._parse(new x(n, e, n.path, [a, "key"])),
2953
+ value: i._parse(new x(n, t, n.path, [a, "value"]))
2954
2954
  }));
2955
2955
  if (n.common.async) {
2956
2956
  let e = /* @__PURE__ */ new Map();
@@ -2980,13 +2980,13 @@ var nt = class e extends w {
2980
2980
  }
2981
2981
  }
2982
2982
  };
2983
- rt.create = (e, t, n) => new rt({
2983
+ ct.create = (e, t, n) => new ct({
2984
2984
  valueType: t,
2985
2985
  keyType: e,
2986
- typeName: Y.ZodMap,
2987
- ...C(n)
2986
+ typeName: U.ZodMap,
2987
+ ...S(n)
2988
2988
  });
2989
- var it = class e extends w {
2989
+ var lt = class e extends C {
2990
2990
  _parse(e) {
2991
2991
  let { status: t, ctx: n } = this._processInputParams(e);
2992
2992
  if (n.parsedType !== u.set) return h(n, {
@@ -3022,7 +3022,7 @@ var it = class e extends w {
3022
3022
  value: n
3023
3023
  };
3024
3024
  }
3025
- let o = [...n.data.values()].map((e, t) => i._parse(new S(n, e, n.path, t)));
3025
+ let o = [...n.data.values()].map((e, t) => i._parse(new x(n, e, n.path, t)));
3026
3026
  return n.common.async ? Promise.all(o).then((e) => a(e)) : a(o);
3027
3027
  }
3028
3028
  min(t, n) {
@@ -3030,7 +3030,7 @@ var it = class e extends w {
3030
3030
  ...this._def,
3031
3031
  minSize: {
3032
3032
  value: t,
3033
- message: x.toString(n)
3033
+ message: b.toString(n)
3034
3034
  }
3035
3035
  });
3036
3036
  }
@@ -3039,7 +3039,7 @@ var it = class e extends w {
3039
3039
  ...this._def,
3040
3040
  maxSize: {
3041
3041
  value: t,
3042
- message: x.toString(n)
3042
+ message: b.toString(n)
3043
3043
  }
3044
3044
  });
3045
3045
  }
@@ -3050,14 +3050,14 @@ var it = class e extends w {
3050
3050
  return this.min(1, e);
3051
3051
  }
3052
3052
  };
3053
- it.create = (e, t) => new it({
3053
+ lt.create = (e, t) => new lt({
3054
3054
  valueType: e,
3055
3055
  minSize: null,
3056
3056
  maxSize: null,
3057
- typeName: Y.ZodSet,
3058
- ...C(t)
3057
+ typeName: U.ZodSet,
3058
+ ...S(t)
3059
3059
  });
3060
- var at = class e extends w {
3060
+ var ut = class e extends C {
3061
3061
  constructor() {
3062
3062
  super(...arguments), this.validate = this.implement;
3063
3063
  }
@@ -3101,7 +3101,7 @@ var at = class e extends w {
3101
3101
  });
3102
3102
  }
3103
3103
  let i = { errorMap: t.common.contextualErrorMap }, a = t.data;
3104
- if (this._def.returns instanceof H) {
3104
+ if (this._def.returns instanceof L) {
3105
3105
  let e = this;
3106
3106
  return v(async function(...t) {
3107
3107
  let o = new p([]), s = await e._def.args.parseAsync(t, i).catch((e) => {
@@ -3132,7 +3132,7 @@ var at = class e extends w {
3132
3132
  args(...t) {
3133
3133
  return new e({
3134
3134
  ...this._def,
3135
- args: L.create(t).rest(k.create())
3135
+ args: M.create(t).rest(T.create())
3136
3136
  });
3137
3137
  }
3138
3138
  returns(t) {
@@ -3149,13 +3149,13 @@ var at = class e extends w {
3149
3149
  }
3150
3150
  static create(t, n, r) {
3151
3151
  return new e({
3152
- args: t || L.create([]).rest(k.create()),
3153
- returns: n || k.create(),
3154
- typeName: Y.ZodFunction,
3155
- ...C(r)
3152
+ args: t || M.create([]).rest(T.create()),
3153
+ returns: n || T.create(),
3154
+ typeName: U.ZodFunction,
3155
+ ...S(r)
3156
3156
  });
3157
3157
  }
3158
- }, R = class extends w {
3158
+ }, N = class extends C {
3159
3159
  get schema() {
3160
3160
  return this._def.getter();
3161
3161
  }
@@ -3168,12 +3168,12 @@ var at = class e extends w {
3168
3168
  });
3169
3169
  }
3170
3170
  };
3171
- R.create = (e, t) => new R({
3171
+ N.create = (e, t) => new N({
3172
3172
  getter: e,
3173
- typeName: Y.ZodLazy,
3174
- ...C(t)
3173
+ typeName: U.ZodLazy,
3174
+ ...S(t)
3175
3175
  });
3176
- var z = class extends w {
3176
+ var P = class extends C {
3177
3177
  _parse(e) {
3178
3178
  if (e.data !== this._def.value) {
3179
3179
  let t = this._getOrReturnCtx(e);
@@ -3192,19 +3192,19 @@ var z = class extends w {
3192
3192
  return this._def.value;
3193
3193
  }
3194
3194
  };
3195
- z.create = (e, t) => new z({
3195
+ P.create = (e, t) => new P({
3196
3196
  value: e,
3197
- typeName: Y.ZodLiteral,
3198
- ...C(t)
3197
+ typeName: U.ZodLiteral,
3198
+ ...S(t)
3199
3199
  });
3200
- function ot(e, t) {
3201
- return new B({
3200
+ function dt(e, t) {
3201
+ return new F({
3202
3202
  values: e,
3203
- typeName: Y.ZodEnum,
3204
- ...C(t)
3203
+ typeName: U.ZodEnum,
3204
+ ...S(t)
3205
3205
  });
3206
3206
  }
3207
- var B = class e extends w {
3207
+ var F = class e extends C {
3208
3208
  _parse(e) {
3209
3209
  if (typeof e.data != "string") {
3210
3210
  let t = this._getOrReturnCtx(e), n = this._def.values;
@@ -3255,8 +3255,8 @@ var B = class e extends w {
3255
3255
  });
3256
3256
  }
3257
3257
  };
3258
- B.create = ot;
3259
- var V = class extends w {
3258
+ F.create = dt;
3259
+ var I = class extends C {
3260
3260
  _parse(e) {
3261
3261
  let t = l.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
3262
3262
  if (n.parsedType !== u.string && n.parsedType !== u.number) {
@@ -3281,12 +3281,12 @@ var V = class extends w {
3281
3281
  return this._def.values;
3282
3282
  }
3283
3283
  };
3284
- V.create = (e, t) => new V({
3284
+ I.create = (e, t) => new I({
3285
3285
  values: e,
3286
- typeName: Y.ZodNativeEnum,
3287
- ...C(t)
3286
+ typeName: U.ZodNativeEnum,
3287
+ ...S(t)
3288
3288
  });
3289
- var H = class extends w {
3289
+ var L = class extends C {
3290
3290
  unwrap() {
3291
3291
  return this._def.type;
3292
3292
  }
@@ -3302,17 +3302,17 @@ var H = class extends w {
3302
3302
  })));
3303
3303
  }
3304
3304
  };
3305
- H.create = (e, t) => new H({
3305
+ L.create = (e, t) => new L({
3306
3306
  type: e,
3307
- typeName: Y.ZodPromise,
3308
- ...C(t)
3307
+ typeName: U.ZodPromise,
3308
+ ...S(t)
3309
3309
  });
3310
- var U = class extends w {
3310
+ var R = class extends C {
3311
3311
  innerType() {
3312
3312
  return this._def.schema;
3313
3313
  }
3314
3314
  sourceType() {
3315
- return this._def.schema._def.typeName === Y.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3315
+ return this._def.schema._def.typeName === U.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3316
3316
  }
3317
3317
  _parse(e) {
3318
3318
  let { status: t, ctx: n } = this._processInputParams(e), r = this._def.effect || null, i = {
@@ -3398,21 +3398,21 @@ var U = class extends w {
3398
3398
  l.assertNever(r);
3399
3399
  }
3400
3400
  };
3401
- U.create = (e, t, n) => new U({
3401
+ R.create = (e, t, n) => new R({
3402
3402
  schema: e,
3403
- typeName: Y.ZodEffects,
3403
+ typeName: U.ZodEffects,
3404
3404
  effect: t,
3405
- ...C(n)
3406
- }), U.createWithPreprocess = (e, t, n) => new U({
3405
+ ...S(n)
3406
+ }), R.createWithPreprocess = (e, t, n) => new R({
3407
3407
  schema: t,
3408
3408
  effect: {
3409
3409
  type: "preprocess",
3410
3410
  transform: e
3411
3411
  },
3412
- typeName: Y.ZodEffects,
3413
- ...C(n)
3412
+ typeName: U.ZodEffects,
3413
+ ...S(n)
3414
3414
  });
3415
- var W = class extends w {
3415
+ var z = class extends C {
3416
3416
  _parse(e) {
3417
3417
  return this._getType(e) === u.undefined ? v(void 0) : this._def.innerType._parse(e);
3418
3418
  }
@@ -3420,12 +3420,12 @@ var W = class extends w {
3420
3420
  return this._def.innerType;
3421
3421
  }
3422
3422
  };
3423
- W.create = (e, t) => new W({
3423
+ z.create = (e, t) => new z({
3424
3424
  innerType: e,
3425
- typeName: Y.ZodOptional,
3426
- ...C(t)
3425
+ typeName: U.ZodOptional,
3426
+ ...S(t)
3427
3427
  });
3428
- var G = class extends w {
3428
+ var B = class extends C {
3429
3429
  _parse(e) {
3430
3430
  return this._getType(e) === u.null ? v(null) : this._def.innerType._parse(e);
3431
3431
  }
@@ -3433,12 +3433,12 @@ var G = class extends w {
3433
3433
  return this._def.innerType;
3434
3434
  }
3435
3435
  };
3436
- G.create = (e, t) => new G({
3436
+ B.create = (e, t) => new B({
3437
3437
  innerType: e,
3438
- typeName: Y.ZodNullable,
3439
- ...C(t)
3438
+ typeName: U.ZodNullable,
3439
+ ...S(t)
3440
3440
  });
3441
- var K = class extends w {
3441
+ var V = class extends C {
3442
3442
  _parse(e) {
3443
3443
  let { ctx: t } = this._processInputParams(e), n = t.data;
3444
3444
  return t.parsedType === u.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
@@ -3451,13 +3451,13 @@ var K = class extends w {
3451
3451
  return this._def.innerType;
3452
3452
  }
3453
3453
  };
3454
- K.create = (e, t) => new K({
3454
+ V.create = (e, t) => new V({
3455
3455
  innerType: e,
3456
- typeName: Y.ZodDefault,
3456
+ typeName: U.ZodDefault,
3457
3457
  defaultValue: typeof t.default == "function" ? t.default : () => t.default,
3458
- ...C(t)
3458
+ ...S(t)
3459
3459
  });
3460
- var q = class extends w {
3460
+ var H = class extends C {
3461
3461
  _parse(e) {
3462
3462
  let { ctx: t } = this._processInputParams(e), n = {
3463
3463
  ...t,
@@ -3470,7 +3470,7 @@ var q = class extends w {
3470
3470
  path: n.path,
3471
3471
  parent: { ...n }
3472
3472
  });
3473
- return b(r) ? r.then((e) => ({
3473
+ return Se(r) ? r.then((e) => ({
3474
3474
  status: "valid",
3475
3475
  value: e.status === "valid" ? e.value : this._def.catchValue({
3476
3476
  get error() {
@@ -3492,13 +3492,13 @@ var q = class extends w {
3492
3492
  return this._def.innerType;
3493
3493
  }
3494
3494
  };
3495
- q.create = (e, t) => new q({
3495
+ H.create = (e, t) => new H({
3496
3496
  innerType: e,
3497
- typeName: Y.ZodCatch,
3497
+ typeName: U.ZodCatch,
3498
3498
  catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
3499
- ...C(t)
3499
+ ...S(t)
3500
3500
  });
3501
- var st = class extends w {
3501
+ var ft = class extends C {
3502
3502
  _parse(e) {
3503
3503
  if (this._getType(e) !== u.nan) {
3504
3504
  let t = this._getOrReturnCtx(e);
@@ -3514,11 +3514,11 @@ var st = class extends w {
3514
3514
  };
3515
3515
  }
3516
3516
  };
3517
- st.create = (e) => new st({
3518
- typeName: Y.ZodNaN,
3519
- ...C(e)
3517
+ ft.create = (e) => new ft({
3518
+ typeName: U.ZodNaN,
3519
+ ...S(e)
3520
3520
  });
3521
- var ct = class extends w {
3521
+ var pt = class extends C {
3522
3522
  _parse(e) {
3523
3523
  let { ctx: t } = this._processInputParams(e), n = t.data;
3524
3524
  return this._def.type._parse({
@@ -3530,7 +3530,7 @@ var ct = class extends w {
3530
3530
  unwrap() {
3531
3531
  return this._def.type;
3532
3532
  }
3533
- }, lt = class e extends w {
3533
+ }, mt = class e extends C {
3534
3534
  _parse(e) {
3535
3535
  let { status: t, ctx: n } = this._processInputParams(e);
3536
3536
  if (n.common.async) return (async () => {
@@ -3565,256 +3565,1022 @@ var ct = class extends w {
3565
3565
  return new e({
3566
3566
  in: t,
3567
3567
  out: n,
3568
- typeName: Y.ZodPipeline
3568
+ typeName: U.ZodPipeline
3569
3569
  });
3570
3570
  }
3571
- }, J = class extends w {
3571
+ }, ht = class extends C {
3572
3572
  _parse(e) {
3573
3573
  let t = this._def.innerType._parse(e), n = (e) => (y(e) && (e.value = Object.freeze(e.value)), e);
3574
- return b(t) ? t.then((e) => n(e)) : n(t);
3574
+ return Se(t) ? t.then((e) => n(e)) : n(t);
3575
3575
  }
3576
3576
  unwrap() {
3577
3577
  return this._def.innerType;
3578
3578
  }
3579
3579
  };
3580
- J.create = (e, t) => new J({
3580
+ ht.create = (e, t) => new ht({
3581
3581
  innerType: e,
3582
- typeName: Y.ZodReadonly,
3583
- ...C(t)
3584
- }), N.lazycreate;
3585
- var Y;
3582
+ typeName: U.ZodReadonly,
3583
+ ...S(t)
3584
+ }), k.lazycreate;
3585
+ var U;
3586
3586
  (function(e) {
3587
3587
  e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
3588
- })(Y ||= {});
3589
- var X = T.create, Z = Je.create;
3590
- st.create, Ye.create;
3591
- var ut = E.create;
3592
- Xe.create, Ze.create, D.create, O.create, Qe.create, k.create, A.create, $e.create;
3593
- var dt = j.create, Q = N.create;
3594
- N.strictCreate, P.create, et.create, I.create, L.create, nt.create, rt.create, it.create, at.create, R.create, z.create;
3595
- var $ = B.create;
3596
- V.create, H.create, U.create, W.create, G.create, U.createWithPreprocess, lt.create;
3588
+ })(U ||= {});
3589
+ var W = Je.create, gt = Xe.create;
3590
+ ft.create, Ze.create;
3591
+ var _t = Qe.create;
3592
+ $e.create, et.create, w.create, tt.create, nt.create, T.create, E.create, rt.create;
3593
+ var vt = D.create, G = k.create;
3594
+ k.strictCreate, A.create, it.create, ot.create, M.create, st.create, ct.create, lt.create, ut.create, N.create, P.create;
3595
+ var K = F.create;
3596
+ I.create, L.create, R.create, z.create, B.create, R.createWithPreprocess, mt.create;
3597
+ //#endregion
3598
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
3599
+ var yt = Symbol("Let zodToJsonSchema decide on which parser to use"), bt = {
3600
+ name: void 0,
3601
+ $refStrategy: "root",
3602
+ basePath: ["#"],
3603
+ effectStrategy: "input",
3604
+ pipeStrategy: "all",
3605
+ dateStrategy: "format:date-time",
3606
+ mapStrategy: "entries",
3607
+ removeAdditionalStrategy: "passthrough",
3608
+ allowedAdditionalProperties: !0,
3609
+ rejectedAdditionalProperties: !1,
3610
+ definitionPath: "definitions",
3611
+ target: "jsonSchema7",
3612
+ strictUnions: !1,
3613
+ definitions: {},
3614
+ errorMessages: !1,
3615
+ markdownDescription: !1,
3616
+ patternStrategy: "escape",
3617
+ applyRegexFlags: !1,
3618
+ emailStrategy: "format:email",
3619
+ base64Strategy: "contentEncoding:base64",
3620
+ nameStrategy: "ref",
3621
+ openAiAnyTypeName: "OpenAiAnyType"
3622
+ }, xt = (e) => typeof e == "string" ? {
3623
+ ...bt,
3624
+ name: e
3625
+ } : {
3626
+ ...bt,
3627
+ ...e
3628
+ }, St = (e) => {
3629
+ let t = xt(e), n = t.name === void 0 ? t.basePath : [
3630
+ ...t.basePath,
3631
+ t.definitionPath,
3632
+ t.name
3633
+ ];
3634
+ return {
3635
+ ...t,
3636
+ flags: { hasReferencedOpenAiAnyType: !1 },
3637
+ currentPath: n,
3638
+ propertyPath: void 0,
3639
+ seen: new Map(Object.entries(t.definitions).map(([e, n]) => [n._def, {
3640
+ def: n._def,
3641
+ path: [
3642
+ ...t.basePath,
3643
+ t.definitionPath,
3644
+ e
3645
+ ],
3646
+ jsonSchema: void 0
3647
+ }]))
3648
+ };
3649
+ };
3650
+ //#endregion
3651
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
3652
+ function Ct(e, t, n, r) {
3653
+ r?.errorMessages && n && (e.errorMessage = {
3654
+ ...e.errorMessage,
3655
+ [t]: n
3656
+ });
3657
+ }
3658
+ function q(e, t, n, r, i) {
3659
+ e[t] = n, Ct(e, t, r, i);
3660
+ }
3661
+ //#endregion
3662
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
3663
+ var wt = (e, t) => {
3664
+ let n = 0;
3665
+ for (; n < e.length && n < t.length && e[n] === t[n]; n++);
3666
+ return [(e.length - n).toString(), ...t.slice(n)].join("/");
3667
+ };
3668
+ //#endregion
3669
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
3670
+ function J(e) {
3671
+ if (e.target !== "openAi") return {};
3672
+ let t = [
3673
+ ...e.basePath,
3674
+ e.definitionPath,
3675
+ e.openAiAnyTypeName
3676
+ ];
3677
+ return e.flags.hasReferencedOpenAiAnyType = !0, { $ref: e.$refStrategy === "relative" ? wt(t, e.currentPath) : t.join("/") };
3678
+ }
3679
+ //#endregion
3680
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
3681
+ function Tt(e, t) {
3682
+ let n = { type: "array" };
3683
+ return e.type?._def && e.type?._def?.typeName !== U.ZodAny && (n.items = Q(e.type._def, {
3684
+ ...t,
3685
+ currentPath: [...t.currentPath, "items"]
3686
+ })), e.minLength && q(n, "minItems", e.minLength.value, e.minLength.message, t), e.maxLength && q(n, "maxItems", e.maxLength.value, e.maxLength.message, t), e.exactLength && (q(n, "minItems", e.exactLength.value, e.exactLength.message, t), q(n, "maxItems", e.exactLength.value, e.exactLength.message, t)), n;
3687
+ }
3688
+ //#endregion
3689
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
3690
+ function Et(e, t) {
3691
+ let n = {
3692
+ type: "integer",
3693
+ format: "int64"
3694
+ };
3695
+ if (!e.checks) return n;
3696
+ for (let r of e.checks) switch (r.kind) {
3697
+ case "min":
3698
+ t.target === "jsonSchema7" ? r.inclusive ? q(n, "minimum", r.value, r.message, t) : q(n, "exclusiveMinimum", r.value, r.message, t) : (r.inclusive || (n.exclusiveMinimum = !0), q(n, "minimum", r.value, r.message, t));
3699
+ break;
3700
+ case "max":
3701
+ t.target === "jsonSchema7" ? r.inclusive ? q(n, "maximum", r.value, r.message, t) : q(n, "exclusiveMaximum", r.value, r.message, t) : (r.inclusive || (n.exclusiveMaximum = !0), q(n, "maximum", r.value, r.message, t));
3702
+ break;
3703
+ case "multipleOf": q(n, "multipleOf", r.value, r.message, t);
3704
+ }
3705
+ return n;
3706
+ }
3707
+ //#endregion
3708
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
3709
+ function Dt() {
3710
+ return { type: "boolean" };
3711
+ }
3712
+ //#endregion
3713
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
3714
+ function Ot(e, t) {
3715
+ return Q(e.type._def, t);
3716
+ }
3717
+ //#endregion
3718
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
3719
+ var kt = (e, t) => Q(e.innerType._def, t);
3720
+ //#endregion
3721
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
3722
+ function At(e, t, n) {
3723
+ let r = n ?? t.dateStrategy;
3724
+ if (Array.isArray(r)) return { anyOf: r.map((n, r) => At(e, t, n)) };
3725
+ switch (r) {
3726
+ case "string":
3727
+ case "format:date-time": return {
3728
+ type: "string",
3729
+ format: "date-time"
3730
+ };
3731
+ case "format:date": return {
3732
+ type: "string",
3733
+ format: "date"
3734
+ };
3735
+ case "integer": return jt(e, t);
3736
+ }
3737
+ }
3738
+ var jt = (e, t) => {
3739
+ let n = {
3740
+ type: "integer",
3741
+ format: "unix-time"
3742
+ };
3743
+ if (t.target === "openApi3") return n;
3744
+ for (let r of e.checks) switch (r.kind) {
3745
+ case "min":
3746
+ q(n, "minimum", r.value, r.message, t);
3747
+ break;
3748
+ case "max": q(n, "maximum", r.value, r.message, t);
3749
+ }
3750
+ return n;
3751
+ };
3752
+ //#endregion
3753
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
3754
+ function Mt(e, t) {
3755
+ return {
3756
+ ...Q(e.innerType._def, t),
3757
+ default: e.defaultValue()
3758
+ };
3759
+ }
3760
+ //#endregion
3761
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
3762
+ function Nt(e, t) {
3763
+ return t.effectStrategy === "input" ? Q(e.schema._def, t) : J(t);
3764
+ }
3765
+ //#endregion
3766
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
3767
+ function Pt(e) {
3768
+ return {
3769
+ type: "string",
3770
+ enum: Array.from(e.values)
3771
+ };
3772
+ }
3773
+ //#endregion
3774
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
3775
+ var Ft = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3776
+ function It(e, t) {
3777
+ let n = [Q(e.left._def, {
3778
+ ...t,
3779
+ currentPath: [
3780
+ ...t.currentPath,
3781
+ "allOf",
3782
+ "0"
3783
+ ]
3784
+ }), Q(e.right._def, {
3785
+ ...t,
3786
+ currentPath: [
3787
+ ...t.currentPath,
3788
+ "allOf",
3789
+ "1"
3790
+ ]
3791
+ })].filter((e) => !!e), r = t.target === "jsonSchema2019-09" ? { unevaluatedProperties: !1 } : void 0, i = [];
3792
+ return n.forEach((e) => {
3793
+ if (Ft(e)) i.push(...e.allOf), e.unevaluatedProperties === void 0 && (r = void 0);
3794
+ else {
3795
+ let t = e;
3796
+ if ("additionalProperties" in e && e.additionalProperties === !1) {
3797
+ let { additionalProperties: n, ...r } = e;
3798
+ t = r;
3799
+ } else r = void 0;
3800
+ i.push(t);
3801
+ }
3802
+ }), i.length ? {
3803
+ allOf: i,
3804
+ ...r
3805
+ } : void 0;
3806
+ }
3807
+ //#endregion
3808
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
3809
+ function Lt(e, t) {
3810
+ let n = typeof e.value;
3811
+ return n !== "bigint" && n !== "number" && n !== "boolean" && n !== "string" ? { type: Array.isArray(e.value) ? "array" : "object" } : t.target === "openApi3" ? {
3812
+ type: n === "bigint" ? "integer" : n,
3813
+ enum: [e.value]
3814
+ } : {
3815
+ type: n === "bigint" ? "integer" : n,
3816
+ const: e.value
3817
+ };
3818
+ }
3819
+ //#endregion
3820
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
3821
+ var Rt = void 0, Y = {
3822
+ cuid: /^[cC][^\s-]{8,}$/,
3823
+ cuid2: /^[0-9a-z]+$/,
3824
+ ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/,
3825
+ email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,
3826
+ emoji: () => (Rt === void 0 && (Rt = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u")), Rt),
3827
+ uuid: /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,
3828
+ ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,
3829
+ ipv4Cidr: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,
3830
+ ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,
3831
+ ipv6Cidr: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,
3832
+ base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
3833
+ base64url: /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,
3834
+ nanoid: /^[a-zA-Z0-9_-]{21}$/,
3835
+ jwt: /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/
3836
+ };
3837
+ function zt(e, t) {
3838
+ let n = { type: "string" };
3839
+ if (e.checks) for (let r of e.checks) switch (r.kind) {
3840
+ case "min":
3841
+ q(n, "minLength", typeof n.minLength == "number" ? Math.max(n.minLength, r.value) : r.value, r.message, t);
3842
+ break;
3843
+ case "max":
3844
+ q(n, "maxLength", typeof n.maxLength == "number" ? Math.min(n.maxLength, r.value) : r.value, r.message, t);
3845
+ break;
3846
+ case "email":
3847
+ switch (t.emailStrategy) {
3848
+ case "format:email":
3849
+ X(n, "email", r.message, t);
3850
+ break;
3851
+ case "format:idn-email":
3852
+ X(n, "idn-email", r.message, t);
3853
+ break;
3854
+ case "pattern:zod": Z(n, Y.email, r.message, t);
3855
+ }
3856
+ break;
3857
+ case "url":
3858
+ X(n, "uri", r.message, t);
3859
+ break;
3860
+ case "uuid":
3861
+ X(n, "uuid", r.message, t);
3862
+ break;
3863
+ case "regex":
3864
+ Z(n, r.regex, r.message, t);
3865
+ break;
3866
+ case "cuid":
3867
+ Z(n, Y.cuid, r.message, t);
3868
+ break;
3869
+ case "cuid2":
3870
+ Z(n, Y.cuid2, r.message, t);
3871
+ break;
3872
+ case "startsWith":
3873
+ Z(n, RegExp(`^${Bt(r.value, t)}`), r.message, t);
3874
+ break;
3875
+ case "endsWith":
3876
+ Z(n, RegExp(`${Bt(r.value, t)}$`), r.message, t);
3877
+ break;
3878
+ case "datetime":
3879
+ X(n, "date-time", r.message, t);
3880
+ break;
3881
+ case "date":
3882
+ X(n, "date", r.message, t);
3883
+ break;
3884
+ case "time":
3885
+ X(n, "time", r.message, t);
3886
+ break;
3887
+ case "duration":
3888
+ X(n, "duration", r.message, t);
3889
+ break;
3890
+ case "length":
3891
+ q(n, "minLength", typeof n.minLength == "number" ? Math.max(n.minLength, r.value) : r.value, r.message, t), q(n, "maxLength", typeof n.maxLength == "number" ? Math.min(n.maxLength, r.value) : r.value, r.message, t);
3892
+ break;
3893
+ case "includes":
3894
+ Z(n, RegExp(Bt(r.value, t)), r.message, t);
3895
+ break;
3896
+ case "ip":
3897
+ r.version !== "v6" && X(n, "ipv4", r.message, t), r.version !== "v4" && X(n, "ipv6", r.message, t);
3898
+ break;
3899
+ case "base64url":
3900
+ Z(n, Y.base64url, r.message, t);
3901
+ break;
3902
+ case "jwt":
3903
+ Z(n, Y.jwt, r.message, t);
3904
+ break;
3905
+ case "cidr":
3906
+ r.version !== "v6" && Z(n, Y.ipv4Cidr, r.message, t), r.version !== "v4" && Z(n, Y.ipv6Cidr, r.message, t);
3907
+ break;
3908
+ case "emoji":
3909
+ Z(n, Y.emoji(), r.message, t);
3910
+ break;
3911
+ case "ulid":
3912
+ Z(n, Y.ulid, r.message, t);
3913
+ break;
3914
+ case "base64":
3915
+ switch (t.base64Strategy) {
3916
+ case "format:binary":
3917
+ X(n, "binary", r.message, t);
3918
+ break;
3919
+ case "contentEncoding:base64":
3920
+ q(n, "contentEncoding", "base64", r.message, t);
3921
+ break;
3922
+ case "pattern:zod": Z(n, Y.base64, r.message, t);
3923
+ }
3924
+ break;
3925
+ case "nanoid": Z(n, Y.nanoid, r.message, t);
3926
+ }
3927
+ return n;
3928
+ }
3929
+ function Bt(e, t) {
3930
+ return t.patternStrategy === "escape" ? Ht(e) : e;
3931
+ }
3932
+ var Vt = /* @__PURE__ */ new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
3933
+ function Ht(e) {
3934
+ let t = "";
3935
+ for (let n = 0; n < e.length; n++) Vt.has(e[n]) || (t += "\\"), t += e[n];
3936
+ return t;
3937
+ }
3938
+ function X(e, t, n, r) {
3939
+ e.format || e.anyOf?.some((e) => e.format) ? (e.anyOf ||= [], e.format && (e.anyOf.push({
3940
+ format: e.format,
3941
+ ...e.errorMessage && r.errorMessages && { errorMessage: { format: e.errorMessage.format } }
3942
+ }), delete e.format, e.errorMessage && (delete e.errorMessage.format, Object.keys(e.errorMessage).length === 0 && delete e.errorMessage)), e.anyOf.push({
3943
+ format: t,
3944
+ ...n && r.errorMessages && { errorMessage: { format: n } }
3945
+ })) : q(e, "format", t, n, r);
3946
+ }
3947
+ function Z(e, t, n, r) {
3948
+ e.pattern || e.allOf?.some((e) => e.pattern) ? (e.allOf ||= [], e.pattern && (e.allOf.push({
3949
+ pattern: e.pattern,
3950
+ ...e.errorMessage && r.errorMessages && { errorMessage: { pattern: e.errorMessage.pattern } }
3951
+ }), delete e.pattern, e.errorMessage && (delete e.errorMessage.pattern, Object.keys(e.errorMessage).length === 0 && delete e.errorMessage)), e.allOf.push({
3952
+ pattern: Ut(t, r),
3953
+ ...n && r.errorMessages && { errorMessage: { pattern: n } }
3954
+ })) : q(e, "pattern", Ut(t, r), n, r);
3955
+ }
3956
+ function Ut(e, t) {
3957
+ if (!t.applyRegexFlags || !e.flags) return e.source;
3958
+ let n = {
3959
+ i: e.flags.includes("i"),
3960
+ m: e.flags.includes("m"),
3961
+ s: e.flags.includes("s")
3962
+ }, r = n.i ? e.source.toLowerCase() : e.source, i = "", a = !1, o = !1, s = !1;
3963
+ for (let e = 0; e < r.length; e++) {
3964
+ if (a) {
3965
+ i += r[e], a = !1;
3966
+ continue;
3967
+ }
3968
+ if (n.i) {
3969
+ if (o) {
3970
+ if (r[e].match(/[a-z]/)) {
3971
+ s ? (i += r[e], i += `${r[e - 2]}-${r[e]}`.toUpperCase(), s = !1) : r[e + 1] === "-" && r[e + 2]?.match(/[a-z]/) ? (i += r[e], s = !0) : i += `${r[e]}${r[e].toUpperCase()}`;
3972
+ continue;
3973
+ }
3974
+ } else if (r[e].match(/[a-z]/)) {
3975
+ i += `[${r[e]}${r[e].toUpperCase()}]`;
3976
+ continue;
3977
+ }
3978
+ }
3979
+ if (n.m) {
3980
+ if (r[e] === "^") {
3981
+ i += "(^|(?<=[\r\n]))";
3982
+ continue;
3983
+ }
3984
+ if (r[e] === "$") {
3985
+ i += "($|(?=[\r\n]))";
3986
+ continue;
3987
+ }
3988
+ }
3989
+ if (n.s && r[e] === ".") {
3990
+ i += o ? `${r[e]}\r\n` : `[${r[e]}\r\n]`;
3991
+ continue;
3992
+ }
3993
+ i += r[e], r[e] === "\\" ? a = !0 : o && r[e] === "]" ? o = !1 : !o && r[e] === "[" && (o = !0);
3994
+ }
3995
+ try {
3996
+ new RegExp(i);
3997
+ } catch {
3998
+ return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`), e.source;
3999
+ }
4000
+ return i;
4001
+ }
4002
+ //#endregion
4003
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
4004
+ function Wt(e, t) {
4005
+ if (t.target === "openAi" && console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."), t.target === "openApi3" && e.keyType?._def.typeName === U.ZodEnum) return {
4006
+ type: "object",
4007
+ required: e.keyType._def.values,
4008
+ properties: e.keyType._def.values.reduce((n, r) => ({
4009
+ ...n,
4010
+ [r]: Q(e.valueType._def, {
4011
+ ...t,
4012
+ currentPath: [
4013
+ ...t.currentPath,
4014
+ "properties",
4015
+ r
4016
+ ]
4017
+ }) ?? J(t)
4018
+ }), {}),
4019
+ additionalProperties: t.rejectedAdditionalProperties
4020
+ };
4021
+ let n = {
4022
+ type: "object",
4023
+ additionalProperties: Q(e.valueType._def, {
4024
+ ...t,
4025
+ currentPath: [...t.currentPath, "additionalProperties"]
4026
+ }) ?? t.allowedAdditionalProperties
4027
+ };
4028
+ if (t.target === "openApi3") return n;
4029
+ if (e.keyType?._def.typeName === U.ZodString && e.keyType._def.checks?.length) {
4030
+ let { type: r, ...i } = zt(e.keyType._def, t);
4031
+ return {
4032
+ ...n,
4033
+ propertyNames: i
4034
+ };
4035
+ }
4036
+ if (e.keyType?._def.typeName === U.ZodEnum) return {
4037
+ ...n,
4038
+ propertyNames: { enum: e.keyType._def.values }
4039
+ };
4040
+ if (e.keyType?._def.typeName === U.ZodBranded && e.keyType._def.type._def.typeName === U.ZodString && e.keyType._def.type._def.checks?.length) {
4041
+ let { type: r, ...i } = Ot(e.keyType._def, t);
4042
+ return {
4043
+ ...n,
4044
+ propertyNames: i
4045
+ };
4046
+ }
4047
+ return n;
4048
+ }
4049
+ //#endregion
4050
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
4051
+ function Gt(e, t) {
4052
+ return t.mapStrategy === "record" ? Wt(e, t) : {
4053
+ type: "array",
4054
+ maxItems: 125,
4055
+ items: {
4056
+ type: "array",
4057
+ items: [Q(e.keyType._def, {
4058
+ ...t,
4059
+ currentPath: [
4060
+ ...t.currentPath,
4061
+ "items",
4062
+ "items",
4063
+ "0"
4064
+ ]
4065
+ }) || J(t), Q(e.valueType._def, {
4066
+ ...t,
4067
+ currentPath: [
4068
+ ...t.currentPath,
4069
+ "items",
4070
+ "items",
4071
+ "1"
4072
+ ]
4073
+ }) || J(t)],
4074
+ minItems: 2,
4075
+ maxItems: 2
4076
+ }
4077
+ };
4078
+ }
4079
+ //#endregion
4080
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
4081
+ function Kt(e) {
4082
+ let t = e.values, n = Object.keys(e.values).filter((e) => typeof t[t[e]] != "number").map((e) => t[e]), r = Array.from(new Set(n.map((e) => typeof e)));
4083
+ return {
4084
+ type: r.length === 1 ? r[0] === "string" ? "string" : "number" : ["string", "number"],
4085
+ enum: n
4086
+ };
4087
+ }
4088
+ //#endregion
4089
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
4090
+ function qt(e) {
4091
+ return e.target === "openAi" ? void 0 : { not: J({
4092
+ ...e,
4093
+ currentPath: [...e.currentPath, "not"]
4094
+ }) };
4095
+ }
4096
+ //#endregion
4097
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
4098
+ function Jt(e) {
4099
+ return e.target === "openApi3" ? {
4100
+ enum: ["null"],
4101
+ nullable: !0
4102
+ } : { type: "null" };
4103
+ }
4104
+ //#endregion
4105
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
4106
+ var Yt = {
4107
+ ZodString: "string",
4108
+ ZodNumber: "number",
4109
+ ZodBigInt: "integer",
4110
+ ZodBoolean: "boolean",
4111
+ ZodNull: "null"
4112
+ };
4113
+ function Xt(e, t) {
4114
+ if (t.target === "openApi3") return Zt(e, t);
4115
+ let n = e.options instanceof Map ? Array.from(e.options.values()) : e.options;
4116
+ if (n.every((e) => e._def.typeName in Yt && (!e._def.checks || !e._def.checks.length))) {
4117
+ let e = n.reduce((e, t) => {
4118
+ let n = Yt[t._def.typeName];
4119
+ return n && !e.includes(n) ? [...e, n] : e;
4120
+ }, []);
4121
+ return { type: e.length > 1 ? e : e[0] };
4122
+ }
4123
+ if (n.every((e) => e._def.typeName === "ZodLiteral" && !e.description)) {
4124
+ let e = n.reduce((e, t) => {
4125
+ let n = typeof t._def.value;
4126
+ switch (n) {
4127
+ case "string":
4128
+ case "number":
4129
+ case "boolean": return [...e, n];
4130
+ case "bigint": return [...e, "integer"];
4131
+ case "object": if (t._def.value === null) return [...e, "null"];
4132
+ default: return e;
4133
+ }
4134
+ }, []);
4135
+ if (e.length === n.length) {
4136
+ let t = e.filter((e, t, n) => n.indexOf(e) === t);
4137
+ return {
4138
+ type: t.length > 1 ? t : t[0],
4139
+ enum: n.reduce((e, t) => e.includes(t._def.value) ? e : [...e, t._def.value], [])
4140
+ };
4141
+ }
4142
+ } else if (n.every((e) => e._def.typeName === "ZodEnum")) return {
4143
+ type: "string",
4144
+ enum: n.reduce((e, t) => [...e, ...t._def.values.filter((t) => !e.includes(t))], [])
4145
+ };
4146
+ return Zt(e, t);
4147
+ }
4148
+ var Zt = (e, t) => {
4149
+ let n = (e.options instanceof Map ? Array.from(e.options.values()) : e.options).map((e, n) => Q(e._def, {
4150
+ ...t,
4151
+ currentPath: [
4152
+ ...t.currentPath,
4153
+ "anyOf",
4154
+ `${n}`
4155
+ ]
4156
+ })).filter((e) => !!e && (!t.strictUnions || typeof e == "object" && Object.keys(e).length > 0));
4157
+ return n.length ? { anyOf: n } : void 0;
4158
+ };
4159
+ //#endregion
4160
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
4161
+ function Qt(e, t) {
4162
+ if ([
4163
+ "ZodString",
4164
+ "ZodNumber",
4165
+ "ZodBigInt",
4166
+ "ZodBoolean",
4167
+ "ZodNull"
4168
+ ].includes(e.innerType._def.typeName) && (!e.innerType._def.checks || !e.innerType._def.checks.length)) return t.target === "openApi3" ? {
4169
+ type: Yt[e.innerType._def.typeName],
4170
+ nullable: !0
4171
+ } : { type: [Yt[e.innerType._def.typeName], "null"] };
4172
+ if (t.target === "openApi3") {
4173
+ let n = Q(e.innerType._def, {
4174
+ ...t,
4175
+ currentPath: [...t.currentPath]
4176
+ });
4177
+ return n && "$ref" in n ? {
4178
+ allOf: [n],
4179
+ nullable: !0
4180
+ } : n && {
4181
+ ...n,
4182
+ nullable: !0
4183
+ };
4184
+ }
4185
+ let n = Q(e.innerType._def, {
4186
+ ...t,
4187
+ currentPath: [
4188
+ ...t.currentPath,
4189
+ "anyOf",
4190
+ "0"
4191
+ ]
4192
+ });
4193
+ return n && { anyOf: [n, { type: "null" }] };
4194
+ }
4195
+ //#endregion
4196
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
4197
+ function $t(e, t) {
4198
+ let n = { type: "number" };
4199
+ if (!e.checks) return n;
4200
+ for (let r of e.checks) switch (r.kind) {
4201
+ case "int":
4202
+ n.type = "integer", Ct(n, "type", r.message, t);
4203
+ break;
4204
+ case "min":
4205
+ t.target === "jsonSchema7" ? r.inclusive ? q(n, "minimum", r.value, r.message, t) : q(n, "exclusiveMinimum", r.value, r.message, t) : (r.inclusive || (n.exclusiveMinimum = !0), q(n, "minimum", r.value, r.message, t));
4206
+ break;
4207
+ case "max":
4208
+ t.target === "jsonSchema7" ? r.inclusive ? q(n, "maximum", r.value, r.message, t) : q(n, "exclusiveMaximum", r.value, r.message, t) : (r.inclusive || (n.exclusiveMaximum = !0), q(n, "maximum", r.value, r.message, t));
4209
+ break;
4210
+ case "multipleOf": q(n, "multipleOf", r.value, r.message, t);
4211
+ }
4212
+ return n;
4213
+ }
4214
+ //#endregion
4215
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
4216
+ function en(e, t) {
4217
+ let n = t.target === "openAi", r = {
4218
+ type: "object",
4219
+ properties: {}
4220
+ }, i = [], a = e.shape();
4221
+ for (let e in a) {
4222
+ let o = a[e];
4223
+ if (o === void 0 || o._def === void 0) continue;
4224
+ let s = nn(o);
4225
+ s && n && (o._def.typeName === "ZodOptional" && (o = o._def.innerType), o.isNullable() || (o = o.nullable()), s = !1);
4226
+ let c = Q(o._def, {
4227
+ ...t,
4228
+ currentPath: [
4229
+ ...t.currentPath,
4230
+ "properties",
4231
+ e
4232
+ ],
4233
+ propertyPath: [
4234
+ ...t.currentPath,
4235
+ "properties",
4236
+ e
4237
+ ]
4238
+ });
4239
+ c !== void 0 && (r.properties[e] = c, s || i.push(e));
4240
+ }
4241
+ i.length && (r.required = i);
4242
+ let o = tn(e, t);
4243
+ return o !== void 0 && (r.additionalProperties = o), r;
4244
+ }
4245
+ function tn(e, t) {
4246
+ if (e.catchall._def.typeName !== "ZodNever") return Q(e.catchall._def, {
4247
+ ...t,
4248
+ currentPath: [...t.currentPath, "additionalProperties"]
4249
+ });
4250
+ switch (e.unknownKeys) {
4251
+ case "passthrough": return t.allowedAdditionalProperties;
4252
+ case "strict": return t.rejectedAdditionalProperties;
4253
+ case "strip": return t.removeAdditionalStrategy === "strict" ? t.allowedAdditionalProperties : t.rejectedAdditionalProperties;
4254
+ }
4255
+ }
4256
+ function nn(e) {
4257
+ try {
4258
+ return e.isOptional();
4259
+ } catch {
4260
+ return !0;
4261
+ }
4262
+ }
4263
+ //#endregion
4264
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
4265
+ var rn = (e, t) => {
4266
+ if (t.currentPath.toString() === t.propertyPath?.toString()) return Q(e.innerType._def, t);
4267
+ let n = Q(e.innerType._def, {
4268
+ ...t,
4269
+ currentPath: [
4270
+ ...t.currentPath,
4271
+ "anyOf",
4272
+ "1"
4273
+ ]
4274
+ });
4275
+ return n ? { anyOf: [{ not: J(t) }, n] } : J(t);
4276
+ }, an = (e, t) => {
4277
+ if (t.pipeStrategy === "input") return Q(e.in._def, t);
4278
+ if (t.pipeStrategy === "output") return Q(e.out._def, t);
4279
+ let n = Q(e.in._def, {
4280
+ ...t,
4281
+ currentPath: [
4282
+ ...t.currentPath,
4283
+ "allOf",
4284
+ "0"
4285
+ ]
4286
+ });
4287
+ return { allOf: [n, Q(e.out._def, {
4288
+ ...t,
4289
+ currentPath: [
4290
+ ...t.currentPath,
4291
+ "allOf",
4292
+ n ? "1" : "0"
4293
+ ]
4294
+ })].filter((e) => e !== void 0) };
4295
+ };
4296
+ //#endregion
4297
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
4298
+ function on(e, t) {
4299
+ return Q(e.type._def, t);
4300
+ }
4301
+ //#endregion
4302
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
4303
+ function sn(e, t) {
4304
+ let n = {
4305
+ type: "array",
4306
+ uniqueItems: !0,
4307
+ items: Q(e.valueType._def, {
4308
+ ...t,
4309
+ currentPath: [...t.currentPath, "items"]
4310
+ })
4311
+ };
4312
+ return e.minSize && q(n, "minItems", e.minSize.value, e.minSize.message, t), e.maxSize && q(n, "maxItems", e.maxSize.value, e.maxSize.message, t), n;
4313
+ }
4314
+ //#endregion
4315
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
4316
+ function cn(e, t) {
4317
+ return e.rest ? {
4318
+ type: "array",
4319
+ minItems: e.items.length,
4320
+ items: e.items.map((e, n) => Q(e._def, {
4321
+ ...t,
4322
+ currentPath: [
4323
+ ...t.currentPath,
4324
+ "items",
4325
+ `${n}`
4326
+ ]
4327
+ })).reduce((e, t) => t === void 0 ? e : [...e, t], []),
4328
+ additionalItems: Q(e.rest._def, {
4329
+ ...t,
4330
+ currentPath: [...t.currentPath, "additionalItems"]
4331
+ })
4332
+ } : {
4333
+ type: "array",
4334
+ minItems: e.items.length,
4335
+ maxItems: e.items.length,
4336
+ items: e.items.map((e, n) => Q(e._def, {
4337
+ ...t,
4338
+ currentPath: [
4339
+ ...t.currentPath,
4340
+ "items",
4341
+ `${n}`
4342
+ ]
4343
+ })).reduce((e, t) => t === void 0 ? e : [...e, t], [])
4344
+ };
4345
+ }
4346
+ //#endregion
4347
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
4348
+ function ln(e) {
4349
+ return { not: J(e) };
4350
+ }
4351
+ //#endregion
4352
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
4353
+ function un(e) {
4354
+ return J(e);
4355
+ }
4356
+ //#endregion
4357
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
4358
+ var dn = (e, t) => Q(e.innerType._def, t), fn = (e, t, n) => {
4359
+ switch (t) {
4360
+ case U.ZodString: return zt(e, n);
4361
+ case U.ZodNumber: return $t(e, n);
4362
+ case U.ZodObject: return en(e, n);
4363
+ case U.ZodBigInt: return Et(e, n);
4364
+ case U.ZodBoolean: return Dt();
4365
+ case U.ZodDate: return At(e, n);
4366
+ case U.ZodUndefined: return ln(n);
4367
+ case U.ZodNull: return Jt(n);
4368
+ case U.ZodArray: return Tt(e, n);
4369
+ case U.ZodUnion:
4370
+ case U.ZodDiscriminatedUnion: return Xt(e, n);
4371
+ case U.ZodIntersection: return It(e, n);
4372
+ case U.ZodTuple: return cn(e, n);
4373
+ case U.ZodRecord: return Wt(e, n);
4374
+ case U.ZodLiteral: return Lt(e, n);
4375
+ case U.ZodEnum: return Pt(e);
4376
+ case U.ZodNativeEnum: return Kt(e);
4377
+ case U.ZodNullable: return Qt(e, n);
4378
+ case U.ZodOptional: return rn(e, n);
4379
+ case U.ZodMap: return Gt(e, n);
4380
+ case U.ZodSet: return sn(e, n);
4381
+ case U.ZodLazy: return () => e.getter()._def;
4382
+ case U.ZodPromise: return on(e, n);
4383
+ case U.ZodNaN:
4384
+ case U.ZodNever: return qt(n);
4385
+ case U.ZodEffects: return Nt(e, n);
4386
+ case U.ZodAny: return J(n);
4387
+ case U.ZodUnknown: return un(n);
4388
+ case U.ZodDefault: return Mt(e, n);
4389
+ case U.ZodBranded: return Ot(e, n);
4390
+ case U.ZodReadonly: return dn(e, n);
4391
+ case U.ZodCatch: return kt(e, n);
4392
+ case U.ZodPipeline: return an(e, n);
4393
+ case U.ZodFunction:
4394
+ case U.ZodVoid:
4395
+ case U.ZodSymbol: return;
4396
+ default: return ((e) => void 0)(t);
4397
+ }
4398
+ };
4399
+ //#endregion
4400
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js
4401
+ function Q(e, t, n = !1) {
4402
+ let r = t.seen.get(e);
4403
+ if (t.override) {
4404
+ let i = t.override?.(e, t, r, n);
4405
+ if (i !== yt) return i;
4406
+ }
4407
+ if (r && !n) {
4408
+ let e = pn(r, t);
4409
+ if (e !== void 0) return e;
4410
+ }
4411
+ let i = {
4412
+ def: e,
4413
+ path: t.currentPath,
4414
+ jsonSchema: void 0
4415
+ };
4416
+ t.seen.set(e, i);
4417
+ let a = fn(e, e.typeName, t), o = typeof a == "function" ? Q(a(), t) : a;
4418
+ if (o && mn(e, t, o), t.postProcess) {
4419
+ let n = t.postProcess(o, e, t);
4420
+ return i.jsonSchema = o, n;
4421
+ }
4422
+ return i.jsonSchema = o, o;
4423
+ }
4424
+ var pn = (e, t) => {
4425
+ switch (t.$refStrategy) {
4426
+ case "root": return { $ref: e.path.join("/") };
4427
+ case "relative": return { $ref: wt(t.currentPath, e.path) };
4428
+ case "none":
4429
+ case "seen": return e.path.length < t.currentPath.length && e.path.every((e, n) => t.currentPath[n] === e) ? (console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`), J(t)) : t.$refStrategy === "seen" ? J(t) : void 0;
4430
+ }
4431
+ }, mn = (e, t, n) => (e.description && (n.description = e.description, t.markdownDescription && (n.markdownDescription = e.description)), n), hn = (e, t) => {
4432
+ let n = St(t), r = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce((e, [t, r]) => ({
4433
+ ...e,
4434
+ [t]: Q(r._def, {
4435
+ ...n,
4436
+ currentPath: [
4437
+ ...n.basePath,
4438
+ n.definitionPath,
4439
+ t
4440
+ ]
4441
+ }, !0) ?? J(n)
4442
+ }), {}) : void 0, i = typeof t == "string" ? t : t?.nameStrategy === "title" ? void 0 : t?.name, a = Q(e._def, i === void 0 ? n : {
4443
+ ...n,
4444
+ currentPath: [
4445
+ ...n.basePath,
4446
+ n.definitionPath,
4447
+ i
4448
+ ]
4449
+ }, !1) ?? J(n), o = typeof t == "object" && t.name !== void 0 && t.nameStrategy === "title" ? t.name : void 0;
4450
+ o !== void 0 && (a.title = o), n.flags.hasReferencedOpenAiAnyType && (r ||= {}, r[n.openAiAnyTypeName] || (r[n.openAiAnyTypeName] = {
4451
+ type: [
4452
+ "string",
4453
+ "number",
4454
+ "integer",
4455
+ "boolean",
4456
+ "array",
4457
+ "null"
4458
+ ],
4459
+ items: { $ref: n.$refStrategy === "relative" ? "1" : [
4460
+ ...n.basePath,
4461
+ n.definitionPath,
4462
+ n.openAiAnyTypeName
4463
+ ].join("/") }
4464
+ }));
4465
+ let s = i === void 0 ? r ? {
4466
+ ...a,
4467
+ [n.definitionPath]: r
4468
+ } : a : {
4469
+ $ref: [
4470
+ ...n.$refStrategy === "relative" ? [] : n.basePath,
4471
+ n.definitionPath,
4472
+ i
4473
+ ].join("/"),
4474
+ [n.definitionPath]: {
4475
+ ...r,
4476
+ [i]: a
4477
+ }
4478
+ };
4479
+ return n.target === "jsonSchema7" ? s.$schema = "http://json-schema.org/draft-07/schema#" : (n.target === "jsonSchema2019-09" || n.target === "openAi") && (s.$schema = "https://json-schema.org/draft/2019-09/schema#"), n.target === "openAi" && ("anyOf" in s || "oneOf" in s || "allOf" in s || "type" in s && Array.isArray(s.type)) && console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."), s;
4480
+ };
3597
4481
  //#endregion
3598
4482
  //#region ../mcp/dist/tools/definitions.js
3599
- var ft = class extends Error {
4483
+ function $(e) {
4484
+ let { $schema: t, ...n } = hn(e.zodSchema, { $refStrategy: "none" });
4485
+ return {
4486
+ ...e,
4487
+ inputSchema: n
4488
+ };
4489
+ }
4490
+ var gn = class extends Error {
3600
4491
  constructor(e, t) {
3601
4492
  super(`Invalid arguments for tool "${e}": ${t}`), this.name = "ToolArgumentError";
3602
4493
  }
3603
4494
  };
3604
- function pt(e, t) {
4495
+ function _n(e, t) {
3605
4496
  let n = e.zodSchema.safeParse(t ?? {});
3606
4497
  if (!n.success) {
3607
4498
  let t = n.error.issues.map((e) => `${e.path.join(".") || "(root)"}: ${e.message}`).join("; ");
3608
- throw new ft(e.name, t);
4499
+ throw new gn(e.name, t);
3609
4500
  }
3610
4501
  return n.data;
3611
4502
  }
3612
- var mt = [
3613
- {
4503
+ var vn = [
4504
+ $({
3614
4505
  name: "list_projects",
3615
4506
  title: "List Projects",
3616
4507
  description: "Retrieve all projects in the workspace.",
3617
- zodSchema: Q({}),
3618
- inputSchema: {
3619
- type: "object",
3620
- properties: {},
3621
- additionalProperties: !1
3622
- },
4508
+ zodSchema: G({}),
3623
4509
  annotations: { readOnlyHint: !0 },
3624
4510
  execute: async (e, t) => t.getProjects()
3625
- },
3626
- {
4511
+ }),
4512
+ $({
3627
4513
  name: "get_project",
3628
4514
  title: "Get Project",
3629
4515
  description: "Get details of a specific project by its ID.",
3630
- zodSchema: Q({ id: X().describe("The project ID") }),
3631
- inputSchema: {
3632
- type: "object",
3633
- properties: { id: {
3634
- type: "string",
3635
- description: "The project ID"
3636
- } },
3637
- required: ["id"],
3638
- additionalProperties: !1
3639
- },
4516
+ zodSchema: G({ id: W().describe("The project ID") }),
3640
4517
  annotations: { readOnlyHint: !0 },
3641
4518
  execute: async (e, t) => t.getProject(e.id)
3642
- },
3643
- {
4519
+ }),
4520
+ $({
3644
4521
  name: "create_project",
3645
4522
  title: "Create Project",
3646
4523
  description: "Create a new project workspace.",
3647
- zodSchema: Q({
3648
- name: X().describe("Name of the project"),
3649
- description: X().optional().describe("Description of the project"),
3650
- key: X().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
4524
+ zodSchema: G({
4525
+ name: W().describe("Name of the project"),
4526
+ description: W().optional().describe("Description of the project"),
4527
+ key: W().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
3651
4528
  }),
3652
- inputSchema: {
3653
- type: "object",
3654
- properties: {
3655
- name: {
3656
- type: "string",
3657
- description: "Name of the project"
3658
- },
3659
- description: {
3660
- type: "string",
3661
- description: "Description of the project"
3662
- },
3663
- key: {
3664
- type: "string",
3665
- description: "Short project key/prefix (e.g. \"PROJ\")"
3666
- }
3667
- },
3668
- required: ["name"],
3669
- additionalProperties: !1
3670
- },
3671
4529
  execute: async (e, t) => t.createProject(e)
3672
- },
3673
- {
4530
+ }),
4531
+ $({
3674
4532
  name: "list_tasks",
3675
4533
  title: "List Tasks",
3676
4534
  description: "List tasks, optionally filtered by project, status, priority, or assignee.",
3677
- zodSchema: Q({
3678
- projectId: X().optional().describe("Filter by project ID"),
3679
- status: X().optional().describe("Filter by task status key"),
3680
- priority: $([
4535
+ zodSchema: G({
4536
+ projectId: W().optional().describe("Filter by project ID"),
4537
+ status: W().optional().describe("Filter by task status key"),
4538
+ priority: K([
3681
4539
  "urgent",
3682
4540
  "high",
3683
4541
  "medium",
3684
4542
  "low",
3685
4543
  "none"
3686
4544
  ]).optional().describe("Filter by priority"),
3687
- assigneeId: X().optional().describe("Filter by assignee ID")
4545
+ assigneeId: W().optional().describe("Filter by assignee ID")
3688
4546
  }),
3689
- inputSchema: {
3690
- type: "object",
3691
- properties: {
3692
- projectId: {
3693
- type: "string",
3694
- description: "Filter by project ID"
3695
- },
3696
- status: {
3697
- type: "string",
3698
- description: "Filter by task status key"
3699
- },
3700
- priority: {
3701
- type: "string",
3702
- enum: [
3703
- "urgent",
3704
- "high",
3705
- "medium",
3706
- "low",
3707
- "none"
3708
- ],
3709
- description: "Filter by priority"
3710
- },
3711
- assigneeId: {
3712
- type: "string",
3713
- description: "Filter by assignee ID"
3714
- }
3715
- },
3716
- additionalProperties: !1
3717
- },
3718
4547
  annotations: { readOnlyHint: !0 },
3719
4548
  execute: async (e, t, n) => {
3720
4549
  let r = e.projectId || n?.projectId, i = await t.getTasks(r);
3721
4550
  return e.status && (i = i.filter((t) => t.status === e.status)), e.priority && (i = i.filter((t) => t.priority === e.priority)), e.assigneeId && (i = i.filter((t) => t.assigneeId === e.assigneeId)), i;
3722
4551
  }
3723
- },
3724
- {
4552
+ }),
4553
+ $({
3725
4554
  name: "get_task",
3726
4555
  title: "Get Task",
3727
4556
  description: "Get task details by ID.",
3728
- zodSchema: Q({ id: X().describe("The task ID") }),
3729
- inputSchema: {
3730
- type: "object",
3731
- properties: { id: {
3732
- type: "string",
3733
- description: "The task ID"
3734
- } },
3735
- required: ["id"],
3736
- additionalProperties: !1
3737
- },
4557
+ zodSchema: G({ id: W().describe("The task ID") }),
3738
4558
  annotations: { readOnlyHint: !0 },
3739
4559
  execute: async (e, t) => t.getTask(e.id)
3740
- },
3741
- {
4560
+ }),
4561
+ $({
3742
4562
  name: "create_task",
3743
4563
  title: "Create Task",
3744
4564
  description: "Create a new task within a project.",
3745
- zodSchema: Q({
3746
- projectId: X().optional().describe("Project ID (inferred from active view in browser if omitted)"),
3747
- title: X().describe("Title of the task"),
3748
- description: X().optional().describe("Detailed description / markdown"),
3749
- status: X().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
3750
- priority: $([
4565
+ zodSchema: G({
4566
+ projectId: W().optional().describe("Project ID (inferred from active view in browser if omitted)"),
4567
+ title: W().describe("Title of the task"),
4568
+ description: W().optional().describe("Detailed description / markdown"),
4569
+ status: W().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
4570
+ priority: K([
3751
4571
  "urgent",
3752
4572
  "high",
3753
4573
  "medium",
3754
4574
  "low",
3755
4575
  "none"
3756
4576
  ]).optional().default("none").describe("Task priority"),
3757
- assigneeId: X().optional().describe("User ID to assign task to"),
3758
- dueDate: X().optional().describe("Due date (ISO string)"),
3759
- tags: dt(X()).optional().describe("Tags for categorization"),
3760
- estimatedHours: Z().optional().describe("Estimated hours to complete"),
3761
- isBlocked: ut().optional().describe("Whether the task is blocked"),
3762
- blockedReason: X().optional().describe("Reason why the task is blocked")
4577
+ assigneeId: W().optional().describe("User ID to assign task to"),
4578
+ dueDate: W().optional().describe("Due date (ISO string)"),
4579
+ tags: vt(W()).optional().describe("Tags for categorization"),
4580
+ estimatedHours: gt().optional().describe("Estimated hours to complete"),
4581
+ isBlocked: _t().optional().describe("Whether the task is blocked"),
4582
+ blockedReason: W().optional().describe("Reason why the task is blocked")
3763
4583
  }),
3764
- inputSchema: {
3765
- type: "object",
3766
- properties: {
3767
- projectId: {
3768
- type: "string",
3769
- description: "Project ID (inferred from active view if omitted)"
3770
- },
3771
- title: {
3772
- type: "string",
3773
- description: "Title of the task"
3774
- },
3775
- description: {
3776
- type: "string",
3777
- description: "Detailed description"
3778
- },
3779
- status: {
3780
- type: "string",
3781
- description: "Status key"
3782
- },
3783
- priority: {
3784
- type: "string",
3785
- enum: [
3786
- "urgent",
3787
- "high",
3788
- "medium",
3789
- "low",
3790
- "none"
3791
- ]
3792
- },
3793
- assigneeId: {
3794
- type: "string",
3795
- description: "User ID of assignee"
3796
- },
3797
- dueDate: {
3798
- type: "string",
3799
- description: "Due date in ISO 8601 format"
3800
- },
3801
- tags: {
3802
- type: "array",
3803
- items: { type: "string" }
3804
- },
3805
- estimatedHours: { type: "number" },
3806
- isBlocked: {
3807
- type: "boolean",
3808
- description: "Whether the task is blocked"
3809
- },
3810
- blockedReason: {
3811
- type: "string",
3812
- description: "Reason why the task is blocked"
3813
- }
3814
- },
3815
- required: ["title"],
3816
- additionalProperties: !1
3817
- },
3818
4584
  execute: async (e, t, n) => {
3819
4585
  let r = e.projectId || n?.projectId;
3820
4586
  if (!r) throw Error("projectId is required to create a task, but none was provided or active in context.");
@@ -3833,139 +4599,67 @@ var mt = [
3833
4599
  };
3834
4600
  return t.createTask(i);
3835
4601
  }
3836
- },
3837
- {
4602
+ }),
4603
+ $({
3838
4604
  name: "update_task",
3839
4605
  title: "Update Task",
3840
4606
  description: "Update fields of an existing task (e.g. title, status, priority, assignee).",
3841
- zodSchema: Q({
3842
- id: X().describe("The task ID"),
3843
- title: X().optional(),
3844
- description: X().optional(),
3845
- status: X().optional(),
3846
- priority: $([
4607
+ zodSchema: G({
4608
+ id: W().describe("The task ID"),
4609
+ title: W().optional(),
4610
+ description: W().optional(),
4611
+ status: W().optional(),
4612
+ priority: K([
3847
4613
  "urgent",
3848
4614
  "high",
3849
4615
  "medium",
3850
4616
  "low",
3851
4617
  "none"
3852
4618
  ]).optional(),
3853
- assigneeId: X().optional(),
3854
- dueDate: X().optional(),
3855
- tags: dt(X()).optional(),
3856
- estimatedHours: Z().optional(),
3857
- loggedHours: Z().optional(),
3858
- isBlocked: ut().optional(),
3859
- blockedReason: X().optional()
4619
+ assigneeId: W().optional(),
4620
+ dueDate: W().optional(),
4621
+ tags: vt(W()).optional(),
4622
+ estimatedHours: gt().optional(),
4623
+ loggedHours: gt().optional(),
4624
+ isBlocked: _t().optional().describe("Whether the task is blocked"),
4625
+ blockedReason: W().optional().describe("Reason why the task is blocked")
3860
4626
  }),
3861
- inputSchema: {
3862
- type: "object",
3863
- properties: {
3864
- id: {
3865
- type: "string",
3866
- description: "Task ID"
3867
- },
3868
- title: { type: "string" },
3869
- description: { type: "string" },
3870
- status: { type: "string" },
3871
- priority: {
3872
- type: "string",
3873
- enum: [
3874
- "urgent",
3875
- "high",
3876
- "medium",
3877
- "low",
3878
- "none"
3879
- ]
3880
- },
3881
- assigneeId: { type: "string" },
3882
- dueDate: { type: "string" },
3883
- tags: {
3884
- type: "array",
3885
- items: { type: "string" }
3886
- },
3887
- estimatedHours: { type: "number" },
3888
- loggedHours: { type: "number" },
3889
- isBlocked: {
3890
- type: "boolean",
3891
- description: "Whether the task is blocked"
3892
- },
3893
- blockedReason: {
3894
- type: "string",
3895
- description: "Reason why the task is blocked"
3896
- }
3897
- },
3898
- required: ["id"],
3899
- additionalProperties: !1
3900
- },
3901
4627
  execute: async (e, t) => {
3902
4628
  let { id: n, ...r } = e;
3903
4629
  return t.updateTask(n, r);
3904
4630
  }
3905
- },
3906
- {
4631
+ }),
4632
+ $({
3907
4633
  name: "delete_task",
3908
4634
  title: "Delete Task",
3909
4635
  description: "Delete a task by ID.",
3910
- zodSchema: Q({ id: X().describe("The task ID to delete") }),
3911
- inputSchema: {
3912
- type: "object",
3913
- properties: { id: {
3914
- type: "string",
3915
- description: "The task ID"
3916
- } },
3917
- required: ["id"],
3918
- additionalProperties: !1
3919
- },
4636
+ zodSchema: G({ id: W().describe("The task ID to delete") }),
3920
4637
  annotations: { requiresConfirmation: !0 },
3921
4638
  execute: async (e, t) => ({ success: await t.deleteTask(e.id) })
3922
- },
3923
- {
4639
+ }),
4640
+ $({
3924
4641
  name: "list_deliverables",
3925
4642
  title: "List Deliverables",
3926
4643
  description: "List deliverables/milestones for a project.",
3927
- zodSchema: Q({ projectId: X().optional().describe("Project ID") }),
3928
- inputSchema: {
3929
- type: "object",
3930
- properties: { projectId: {
3931
- type: "string",
3932
- description: "Project ID"
3933
- } },
3934
- additionalProperties: !1
3935
- },
4644
+ zodSchema: G({ projectId: W().optional().describe("Project ID") }),
3936
4645
  annotations: { readOnlyHint: !0 },
3937
4646
  execute: async (e, t, n) => {
3938
4647
  let r = e.projectId || n?.projectId;
3939
4648
  if (!r) throw Error("projectId is required to list deliverables.");
3940
4649
  return "getDeliverables" in t && typeof t.getDeliverables == "function" ? t.getDeliverables(r) : [];
3941
4650
  }
3942
- },
3943
- {
4651
+ }),
4652
+ $({
3944
4653
  name: "create_deliverable",
3945
4654
  title: "Create Deliverable",
3946
4655
  description: "Create a milestone deliverable within a project.",
3947
- zodSchema: Q({
3948
- projectId: X().optional(),
3949
- title: X(),
3950
- description: X().optional(),
3951
- dueDate: X().optional(),
3952
- taskIds: dt(X()).optional()
4656
+ zodSchema: G({
4657
+ projectId: W().optional(),
4658
+ title: W(),
4659
+ description: W().optional(),
4660
+ dueDate: W().optional(),
4661
+ taskIds: vt(W()).optional()
3953
4662
  }),
3954
- inputSchema: {
3955
- type: "object",
3956
- properties: {
3957
- projectId: { type: "string" },
3958
- title: { type: "string" },
3959
- description: { type: "string" },
3960
- dueDate: { type: "string" },
3961
- taskIds: {
3962
- type: "array",
3963
- items: { type: "string" }
3964
- }
3965
- },
3966
- required: ["title"],
3967
- additionalProperties: !1
3968
- },
3969
4663
  execute: async (e, t, n) => {
3970
4664
  let r = e.projectId || n?.projectId;
3971
4665
  if (!r) throw Error("projectId is required to create a deliverable.");
@@ -3975,125 +4669,57 @@ var mt = [
3975
4669
  });
3976
4670
  throw Error("createDeliverable is not supported by this backend target.");
3977
4671
  }
3978
- },
3979
- {
4672
+ }),
4673
+ $({
3980
4674
  name: "list_comments",
3981
4675
  title: "List Comments",
3982
4676
  description: "List comments associated with a task.",
3983
- zodSchema: Q({ taskId: X().describe("The task ID") }),
3984
- inputSchema: {
3985
- type: "object",
3986
- properties: { taskId: {
3987
- type: "string",
3988
- description: "The task ID"
3989
- } },
3990
- required: ["taskId"],
3991
- additionalProperties: !1
3992
- },
4677
+ zodSchema: G({ taskId: W().describe("The task ID") }),
3993
4678
  annotations: { readOnlyHint: !0 },
3994
4679
  execute: async (e, t) => "getComments" in t && typeof t.getComments == "function" ? t.getComments(e.taskId) : []
3995
- },
3996
- {
4680
+ }),
4681
+ $({
3997
4682
  name: "add_comment",
3998
4683
  title: "Add Comment",
3999
4684
  description: "Add a comment to a task.",
4000
- zodSchema: Q({
4001
- taskId: X().describe("The task ID"),
4002
- content: X().describe("Comment body/markdown"),
4003
- authorId: X().describe("Author user ID")
4685
+ zodSchema: G({
4686
+ taskId: W().describe("The task ID"),
4687
+ content: W().describe("Comment body/markdown"),
4688
+ authorId: W().describe("Author user ID")
4004
4689
  }),
4005
- inputSchema: {
4006
- type: "object",
4007
- properties: {
4008
- taskId: {
4009
- type: "string",
4010
- description: "The task ID"
4011
- },
4012
- content: {
4013
- type: "string",
4014
- description: "Comment body/markdown"
4015
- },
4016
- authorId: {
4017
- type: "string",
4018
- description: "Author user ID"
4019
- }
4020
- },
4021
- required: [
4022
- "taskId",
4023
- "content",
4024
- "authorId"
4025
- ],
4026
- additionalProperties: !1
4027
- },
4028
4690
  execute: async (e, t) => t.addComment({
4029
4691
  taskId: e.taskId,
4030
4692
  content: e.content,
4031
4693
  authorId: e.authorId
4032
4694
  })
4033
- },
4034
- {
4695
+ }),
4696
+ $({
4035
4697
  name: "calculate_critical_path",
4036
4698
  title: "Calculate Critical Path",
4037
4699
  description: "Calculate Critical Path Method (CPM) schedule, early/late start and finish, total slack, and critical bottlenecks for a project.",
4038
- zodSchema: Q({ projectId: X().optional().describe("Project ID (falls back to ambient context if omitted)") }),
4039
- inputSchema: {
4040
- type: "object",
4041
- properties: { projectId: {
4042
- type: "string",
4043
- description: "Project ID (falls back to ambient context if omitted)"
4044
- } },
4045
- additionalProperties: !1
4046
- },
4700
+ zodSchema: G({ projectId: W().optional().describe("Project ID (falls back to ambient context if omitted)") }),
4047
4701
  annotations: { readOnlyHint: !0 },
4048
4702
  execute: async (e, t, n) => {
4049
4703
  let r = e.projectId || n?.projectId;
4050
4704
  if (!r) throw Error("projectId is required to calculate critical path.");
4051
4705
  return t.calculateCriticalPath(r);
4052
4706
  }
4053
- },
4054
- {
4707
+ }),
4708
+ $({
4055
4709
  name: "get_timeline_ladder",
4056
4710
  title: "Get Timeline Ladder of Abstraction",
4057
4711
  description: "Retrieve Ladder of Abstraction for a project timeline across macro phase envelopes, standard Gantt tasks & CPM, and concrete deliverables/time/attachments.",
4058
- zodSchema: Q({
4059
- projectId: X().optional().describe("Project ID (falls back to ambient context if omitted)"),
4060
- level: $([
4712
+ zodSchema: G({
4713
+ projectId: W().optional().describe("Project ID (falls back to ambient context if omitted)"),
4714
+ level: K([
4061
4715
  "macro",
4062
4716
  "standard",
4063
4717
  "concrete",
4064
4718
  "all"
4065
4719
  ]).optional().describe("Abstraction level (macro, standard, concrete, or all)"),
4066
- containerId: X().optional().describe("Optional container ID filter"),
4067
- iterationId: X().optional().describe("Optional iteration/sprint ID filter")
4720
+ containerId: W().optional().describe("Optional container ID filter"),
4721
+ iterationId: W().optional().describe("Optional iteration/sprint ID filter")
4068
4722
  }),
4069
- inputSchema: {
4070
- type: "object",
4071
- properties: {
4072
- projectId: {
4073
- type: "string",
4074
- description: "Project ID (falls back to ambient context if omitted)"
4075
- },
4076
- level: {
4077
- type: "string",
4078
- enum: [
4079
- "macro",
4080
- "standard",
4081
- "concrete",
4082
- "all"
4083
- ],
4084
- description: "Abstraction level"
4085
- },
4086
- containerId: {
4087
- type: "string",
4088
- description: "Optional container ID filter"
4089
- },
4090
- iterationId: {
4091
- type: "string",
4092
- description: "Optional iteration/sprint ID filter"
4093
- }
4094
- },
4095
- additionalProperties: !1
4096
- },
4097
4723
  annotations: { readOnlyHint: !0 },
4098
4724
  execute: async (e, t, n) => {
4099
4725
  let r = e.projectId || n?.projectId;
@@ -4104,138 +4730,59 @@ var mt = [
4104
4730
  iterationId: e.iterationId
4105
4731
  });
4106
4732
  }
4107
- },
4108
- {
4733
+ }),
4734
+ $({
4109
4735
  name: "get_task_ladder",
4110
4736
  title: "Get Task Ladder View",
4111
4737
  description: "Retrieve multi-scale ladder view for a single task, connecting its macro phase, standard CPM timeline position, and concrete work evidence.",
4112
- zodSchema: Q({ taskId: X().describe("The task ID") }),
4113
- inputSchema: {
4114
- type: "object",
4115
- properties: { taskId: {
4116
- type: "string",
4117
- description: "The task ID"
4118
- } },
4119
- required: ["taskId"],
4120
- additionalProperties: !1
4121
- },
4738
+ zodSchema: G({ taskId: W().describe("The task ID") }),
4122
4739
  annotations: { readOnlyHint: !0 },
4123
4740
  execute: async (e, t) => t.getTaskLadder(e.taskId)
4124
- },
4125
- {
4741
+ }),
4742
+ $({
4126
4743
  name: "get_task_metrics",
4127
4744
  title: "Get Task Metrics",
4128
4745
  description: "Retrieve multi-dimensional task metrics including inferred actuals, active working duration, effort/duration/schedule variances, progress inference, and Earned Value Management (EVM) metrics.",
4129
- zodSchema: Q({ taskId: X().describe("The task ID") }),
4130
- inputSchema: {
4131
- type: "object",
4132
- properties: { taskId: {
4133
- type: "string",
4134
- description: "The task ID"
4135
- } },
4136
- required: ["taskId"],
4137
- additionalProperties: !1
4138
- },
4746
+ zodSchema: G({ taskId: W().describe("The task ID") }),
4139
4747
  annotations: { readOnlyHint: !0 },
4140
4748
  execute: async (e, t) => t.getTaskMetrics(e.taskId)
4141
- },
4142
- {
4749
+ }),
4750
+ $({
4143
4751
  name: "get_task_progress_history",
4144
4752
  title: "Get Task Progress History",
4145
4753
  description: "Retrieve time-series progress data points and curve shape classification (linear, s_curve, early_surge, late_rush, stalled) for a task.",
4146
- zodSchema: Q({ taskId: X().describe("The task ID") }),
4147
- inputSchema: {
4148
- type: "object",
4149
- properties: { taskId: {
4150
- type: "string",
4151
- description: "The task ID"
4152
- } },
4153
- required: ["taskId"],
4154
- additionalProperties: !1
4155
- },
4754
+ zodSchema: G({ taskId: W().describe("The task ID") }),
4156
4755
  annotations: { readOnlyHint: !0 },
4157
4756
  execute: async (e, t) => t.getTaskProgressHistory(e.taskId)
4158
- },
4159
- {
4757
+ }),
4758
+ $({
4160
4759
  name: "get_workload_distribution",
4161
4760
  title: "Get Workload Distribution",
4162
4761
  description: "Retrieve time-series workload and capacity distribution suitable for streamgraphs, stacked charts, and team capacity planning.",
4163
- zodSchema: Q({
4164
- projectId: X().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
4165
- startDate: X().optional().describe("Start date ISO (YYYY-MM-DD)"),
4166
- endDate: X().optional().describe("End date ISO (YYYY-MM-DD)"),
4167
- interval: $([
4762
+ zodSchema: G({
4763
+ projectId: W().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
4764
+ startDate: W().optional().describe("Start date ISO (YYYY-MM-DD)"),
4765
+ endDate: W().optional().describe("End date ISO (YYYY-MM-DD)"),
4766
+ interval: K([
4168
4767
  "day",
4169
4768
  "week",
4170
4769
  "month"
4171
4770
  ]).optional().describe("Bucket interval (day, week, month)"),
4172
- groupBy: $([
4771
+ groupBy: K([
4173
4772
  "assignee",
4174
4773
  "team",
4175
4774
  "taskType",
4176
4775
  "priority",
4177
4776
  "status"
4178
4777
  ]).optional().describe("Dimension to segment by"),
4179
- metric: $([
4778
+ metric: K([
4180
4779
  "scheduled",
4181
4780
  "logged",
4182
4781
  "remaining",
4183
4782
  "blended"
4184
4783
  ]).optional().describe("Effort metric mode"),
4185
- defaultWeeklyCapacityHours: Z().optional().describe("Default weekly capacity hours per person (default 40)")
4784
+ defaultWeeklyCapacityHours: gt().optional().describe("Default weekly capacity hours per person (default 40)")
4186
4785
  }),
4187
- inputSchema: {
4188
- type: "object",
4189
- properties: {
4190
- projectId: {
4191
- type: "string",
4192
- description: "Project ID (optional, defaults to workspace-wide or ambient project)"
4193
- },
4194
- startDate: {
4195
- type: "string",
4196
- description: "Start date ISO (YYYY-MM-DD)"
4197
- },
4198
- endDate: {
4199
- type: "string",
4200
- description: "End date ISO (YYYY-MM-DD)"
4201
- },
4202
- interval: {
4203
- type: "string",
4204
- enum: [
4205
- "day",
4206
- "week",
4207
- "month"
4208
- ],
4209
- description: "Bucket interval"
4210
- },
4211
- groupBy: {
4212
- type: "string",
4213
- enum: [
4214
- "assignee",
4215
- "team",
4216
- "taskType",
4217
- "priority",
4218
- "status"
4219
- ],
4220
- description: "Dimension to segment by"
4221
- },
4222
- metric: {
4223
- type: "string",
4224
- enum: [
4225
- "scheduled",
4226
- "logged",
4227
- "remaining",
4228
- "blended"
4229
- ],
4230
- description: "Effort metric mode"
4231
- },
4232
- defaultWeeklyCapacityHours: {
4233
- type: "number",
4234
- description: "Default weekly capacity hours per person"
4235
- }
4236
- },
4237
- additionalProperties: !1
4238
- },
4239
4786
  annotations: { readOnlyHint: !0 },
4240
4787
  execute: async (e, t, n) => {
4241
4788
  let r = e.projectId || n?.projectId;
@@ -4248,12 +4795,12 @@ var mt = [
4248
4795
  defaultWeeklyCapacityHours: e.defaultWeeklyCapacityHours
4249
4796
  });
4250
4797
  }
4251
- }
4798
+ })
4252
4799
  ];
4253
- new Map(mt.map((e) => [e.name, e]));
4800
+ new Map(vn.map((e) => [e.name, e]));
4254
4801
  //#endregion
4255
4802
  //#region ../mcp/dist/web/index.js
4256
- function ht(e = typeof document < "u" ? document : null) {
4803
+ function yn(e = typeof document < "u" ? document : null) {
4257
4804
  if (!e) return null;
4258
4805
  if (!e.modelContext) {
4259
4806
  let t = /* @__PURE__ */ new Map();
@@ -4278,10 +4825,10 @@ function ht(e = typeof document < "u" ? document : null) {
4278
4825
  }
4279
4826
  return e.modelContext;
4280
4827
  }
4281
- function gt(e) {
4828
+ function bn(e) {
4282
4829
  let t = e.document ?? (typeof document < "u" ? document : null), n = e.navigator ?? (typeof navigator < "u" ? navigator : null), r = e.window ?? (typeof window < "u" ? window : null), i;
4283
- t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i = ht(t) ?? void 0);
4284
- let a = e.tools ? mt.filter((t) => e.tools.includes(t.name)) : mt, o = [], s = new AbortController();
4830
+ t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i = yn(t) ?? void 0);
4831
+ let a = e.tools ? vn.filter((t) => e.tools.includes(t.name)) : vn, o = [], s = new AbortController();
4285
4832
  e.signal && e.signal.addEventListener("abort", () => s.abort(), { once: !0 });
4286
4833
  for (let t of a) {
4287
4834
  let n = {
@@ -4291,7 +4838,7 @@ function gt(e) {
4291
4838
  inputSchema: t.inputSchema,
4292
4839
  annotations: t.annotations,
4293
4840
  execute: async (n) => {
4294
- let r = e.projectId ? { projectId: e.projectId } : void 0, i = await t.execute(pt(t, n), e.client, r);
4841
+ let r = e.projectId ? { projectId: e.projectId } : void 0, i = await t.execute(_n(t, n), e.client, r);
4295
4842
  return e.onToolExecuted?.(t.name, n, i), i;
4296
4843
  }
4297
4844
  };
@@ -4319,7 +4866,7 @@ function gt(e) {
4319
4866
  }
4320
4867
  //#endregion
4321
4868
  //#region src/webmcp-state.svelte.ts
4322
- var _t = class {
4869
+ var xn = class {
4323
4870
  client;
4324
4871
  options;
4325
4872
  #e = t.state(!1);
@@ -4359,7 +4906,7 @@ var _t = class {
4359
4906
  if (!this.registered) {
4360
4907
  this.error = null;
4361
4908
  try {
4362
- this.abortController = new AbortController(), this.handle = gt({
4909
+ this.abortController = new AbortController(), this.handle = bn({
4363
4910
  client: this.client,
4364
4911
  projectId: this.activeProjectId,
4365
4912
  tools: this.options.tools,
@@ -4383,12 +4930,12 @@ var _t = class {
4383
4930
  this.activeProjectId !== e && (this.activeProjectId = e, this.registered && (this.unregister(), this.register()));
4384
4931
  }
4385
4932
  };
4386
- function vt(e, t) {
4387
- return new _t(e, t);
4933
+ function Sn(e, t) {
4934
+ return new xn(e, t);
4388
4935
  }
4389
4936
  //#endregion
4390
4937
  //#region src/critical-path-state.svelte.ts
4391
- var yt = class {
4938
+ var Cn = class {
4392
4939
  client;
4393
4940
  projectId;
4394
4941
  #e = t.state(null);
@@ -4426,12 +4973,12 @@ var yt = class {
4426
4973
  }
4427
4974
  }
4428
4975
  };
4429
- function bt(e, t) {
4430
- return new yt(e, t);
4976
+ function wn(e, t) {
4977
+ return new Cn(e, t);
4431
4978
  }
4432
4979
  //#endregion
4433
4980
  //#region src/timeline-ladder-state.svelte.ts
4434
- var xt = class {
4981
+ var Tn = class {
4435
4982
  client;
4436
4983
  projectId;
4437
4984
  #e = t.state(null);
@@ -4503,12 +5050,12 @@ var xt = class {
4503
5050
  }
4504
5051
  }
4505
5052
  };
4506
- function St(e, t, n) {
4507
- return new xt(e, t, n);
5053
+ function En(e, t, n) {
5054
+ return new Tn(e, t, n);
4508
5055
  }
4509
5056
  //#endregion
4510
5057
  //#region src/task-metrics-state.svelte.ts
4511
- var Ct = class {
5058
+ var Dn = class {
4512
5059
  client;
4513
5060
  taskId;
4514
5061
  #e = t.state(null);
@@ -4615,12 +5162,12 @@ var Ct = class {
4615
5162
  }
4616
5163
  }
4617
5164
  };
4618
- function wt(e, t) {
4619
- return new Ct(e, t);
5165
+ function On(e, t) {
5166
+ return new Dn(e, t);
4620
5167
  }
4621
5168
  //#endregion
4622
5169
  //#region src/workload-state.svelte.ts
4623
- var Tt = class {
5170
+ var kn = class {
4624
5171
  client;
4625
5172
  projectId;
4626
5173
  initialOptions;
@@ -4737,13 +5284,13 @@ var Tt = class {
4737
5284
  }
4738
5285
  }
4739
5286
  };
4740
- function Et(e, t, n) {
4741
- return new Tt(e, t, n);
5287
+ function An(e, t, n) {
5288
+ return new kn(e, t, n);
4742
5289
  }
4743
5290
  //#endregion
4744
5291
  //#region src/index.ts
4745
- function Dt(t) {
5292
+ function jn(t) {
4746
5293
  return new e(t);
4747
5294
  }
4748
5295
  //#endregion
4749
- export { re as AttachmentState, te as CommentState, yt as CriticalPathState, se as DeliverableState, le as DeliverableSummaryState, de as KanbanState, i as ProjectState, ae as TaskActivityState, Ct as TaskMetricsState, o as TaskState, pe as TaskTransitionsState, xt as TimelineLadderState, _t as WebMcpState, c as WorkflowState, Tt as WorkloadState, ie as createAttachmentState, ne as createCommentState, Dt as createCriticalPathClient, bt as createCriticalPathState, ce as createDeliverableState, ue as createDeliverableSummaryState, fe as createKanbanState, a as createProjectState, oe as createTaskActivityState, wt as createTaskMetricsState, s as createTaskState, me as createTaskTransitionsState, St as createTimelineLadderState, vt as createWebMcpState, ee as createWorkflowState, Et as createWorkloadState };
5296
+ export { re as AttachmentState, te as CommentState, Cn as CriticalPathState, se as DeliverableState, le as DeliverableSummaryState, de as KanbanState, i as ProjectState, ae as TaskActivityState, Dn as TaskMetricsState, o as TaskState, pe as TaskTransitionsState, Tn as TimelineLadderState, xn as WebMcpState, c as WorkflowState, kn as WorkloadState, ie as createAttachmentState, ne as createCommentState, jn as createCriticalPathClient, wn as createCriticalPathState, ce as createDeliverableState, ue as createDeliverableSummaryState, fe as createKanbanState, a as createProjectState, oe as createTaskActivityState, On as createTaskMetricsState, s as createTaskState, me as createTaskTransitionsState, En as createTimelineLadderState, Sn as createWebMcpState, ee as createWorkflowState, An as createWorkloadState };