@opentiny/next-sdk 0.1.15 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/WebMcpClient.ts +17 -19
  2. package/WebMcpServer.ts +11 -8
  3. package/agent/AgentModelProvider.ts +495 -2
  4. package/agent/type.ts +9 -3
  5. package/agent/utils/generateReActPrompt.ts +55 -0
  6. package/agent/utils/parseReActAction.ts +34 -0
  7. package/dist/WebMcpClient.d.ts +176 -35
  8. package/dist/WebMcpServer.d.ts +43 -154
  9. package/dist/agent/AgentModelProvider.d.ts +35 -1
  10. package/dist/agent/type.d.ts +9 -2
  11. package/dist/agent/utils/generateReActPrompt.d.ts +9 -0
  12. package/dist/agent/utils/parseReActAction.d.ts +14 -0
  13. package/dist/index.es.dev.js +16154 -12116
  14. package/dist/index.es.js +22208 -19236
  15. package/dist/index.js +2411 -320
  16. package/dist/index.umd.dev.js +16147 -12109
  17. package/dist/index.umd.js +109 -67
  18. package/dist/{mcpsdk@1.23.0.dev.js → mcpsdk@1.25.2.dev.js} +8592 -6902
  19. package/dist/{mcpsdk@1.23.0.es.dev.js → mcpsdk@1.25.2.es.dev.js} +8601 -6911
  20. package/dist/mcpsdk@1.25.2.es.js +16796 -0
  21. package/dist/mcpsdk@1.25.2.js +43 -0
  22. package/dist/transport/ExtensionPageServerTransport.d.ts +1 -2
  23. package/dist/webagent.dev.js +15216 -11451
  24. package/dist/webagent.es.dev.js +15260 -11495
  25. package/dist/webagent.es.js +17923 -15160
  26. package/dist/webagent.js +96 -54
  27. package/dist/webmcp-full.dev.js +9872 -8168
  28. package/dist/webmcp-full.es.dev.js +9870 -8166
  29. package/dist/webmcp-full.es.js +10712 -9513
  30. package/dist/webmcp-full.js +31 -31
  31. package/dist/webmcp.dev.js +666 -640
  32. package/dist/webmcp.es.dev.js +664 -638
  33. package/dist/webmcp.es.js +651 -619
  34. package/dist/webmcp.js +1 -1
  35. package/dist/zod@3.25.76.dev.js +30 -32
  36. package/dist/zod@3.25.76.es.dev.js +28 -30
  37. package/dist/zod@3.25.76.es.js +143 -145
  38. package/dist/zod@3.25.76.js +1 -1
  39. package/package.json +10 -9
  40. package/transport/ExtensionPageServerTransport.ts +2 -4
  41. package/dist/mcpsdk@1.23.0.es.js +0 -15584
  42. package/dist/mcpsdk@1.23.0.js +0 -43
@@ -283,7 +283,7 @@ class k {
283
283
  const s = [];
284
284
  for (const n of t) {
285
285
  if (n.status === "aborted")
286
- return m;
286
+ return p;
287
287
  n.status === "dirty" && e.dirty(), s.push(n.value);
288
288
  }
289
289
  return { status: e.value, value: s };
@@ -304,18 +304,18 @@ class k {
304
304
  for (const n of t) {
305
305
  const { key: a, value: i } = n;
306
306
  if (a.status === "aborted" || i.status === "aborted")
307
- return m;
307
+ return p;
308
308
  a.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), a.value !== "__proto__" && (typeof i.value < "u" || n.alwaysSet) && (s[a.value] = i.value);
309
309
  }
310
310
  return { status: e.value, value: s };
311
311
  }
312
312
  }
313
- const m = Object.freeze({
313
+ const p = Object.freeze({
314
314
  status: "aborted"
315
315
  }), B = (r) => ({ status: "dirty", value: r }), b = (r) => ({ status: "valid", value: r }), ge = (r) => r.status === "aborted", ve = (r) => r.status === "dirty", z = (r) => r.status === "valid", Y = (r) => typeof Promise < "u" && r instanceof Promise;
316
316
  var h;
317
317
  (function(r) {
318
- r.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, r.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
318
+ r.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, r.toString = (e) => typeof e == "string" ? e : e?.message;
319
319
  })(h || (h = {}));
320
320
  class N {
321
321
  constructor(e, t, s, n) {
@@ -401,10 +401,10 @@ class _ {
401
401
  const s = {
402
402
  common: {
403
403
  issues: [],
404
- async: (t == null ? void 0 : t.async) ?? !1,
405
- contextualErrorMap: t == null ? void 0 : t.errorMap
404
+ async: t?.async ?? !1,
405
+ contextualErrorMap: t?.errorMap
406
406
  },
407
- path: (t == null ? void 0 : t.path) || [],
407
+ path: t?.path || [],
408
408
  schemaErrorMap: this._def.errorMap,
409
409
  parent: null,
410
410
  data: e,
@@ -413,7 +413,6 @@ class _ {
413
413
  return we(s, n);
414
414
  }
415
415
  "~validate"(e) {
416
- var s, n;
417
416
  const t = {
418
417
  common: {
419
418
  issues: [],
@@ -427,20 +426,20 @@ class _ {
427
426
  };
428
427
  if (!this["~standard"].async)
429
428
  try {
430
- const a = this._parseSync({ data: e, path: [], parent: t });
431
- return z(a) ? {
432
- value: a.value
429
+ const s = this._parseSync({ data: e, path: [], parent: t });
430
+ return z(s) ? {
431
+ value: s.value
433
432
  } : {
434
433
  issues: t.common.issues
435
434
  };
436
- } catch (a) {
437
- (n = (s = a == null ? void 0 : a.message) == null ? void 0 : s.toLowerCase()) != null && n.includes("encountered") && (this["~standard"].async = !0), t.common = {
435
+ } catch (s) {
436
+ s?.message?.toLowerCase()?.includes("encountered") && (this["~standard"].async = !0), t.common = {
438
437
  issues: [],
439
438
  async: !0
440
439
  };
441
440
  }
442
- return this._parseAsync({ data: e, path: [], parent: t }).then((a) => z(a) ? {
443
- value: a.value
441
+ return this._parseAsync({ data: e, path: [], parent: t }).then((s) => z(s) ? {
442
+ value: s.value
444
443
  } : {
445
444
  issues: t.common.issues
446
445
  });
@@ -455,10 +454,10 @@ class _ {
455
454
  const s = {
456
455
  common: {
457
456
  issues: [],
458
- contextualErrorMap: t == null ? void 0 : t.errorMap,
457
+ contextualErrorMap: t?.errorMap,
459
458
  async: !0
460
459
  },
461
- path: (t == null ? void 0 : t.path) || [],
460
+ path: t?.path || [],
462
461
  schemaErrorMap: this._def.errorMap,
463
462
  parent: null,
464
463
  data: e,
@@ -482,7 +481,7 @@ class _ {
482
481
  _refinement(e) {
483
482
  return new O({
484
483
  schema: this,
485
- typeName: p.ZodEffects,
484
+ typeName: m.ZodEffects,
486
485
  effect: { type: "refinement", refinement: e }
487
486
  });
488
487
  }
@@ -521,7 +520,7 @@ class _ {
521
520
  return new O({
522
521
  ...y(this._def),
523
522
  schema: this,
524
- typeName: p.ZodEffects,
523
+ typeName: m.ZodEffects,
525
524
  effect: { type: "transform", transform: e }
526
525
  });
527
526
  }
@@ -531,12 +530,12 @@ class _ {
531
530
  ...y(this._def),
532
531
  innerType: this,
533
532
  defaultValue: t,
534
- typeName: p.ZodDefault
533
+ typeName: m.ZodDefault
535
534
  });
536
535
  }
537
536
  brand() {
538
537
  return new ke({
539
- typeName: p.ZodBranded,
538
+ typeName: m.ZodBranded,
540
539
  type: this,
541
540
  ...y(this._def)
542
541
  });
@@ -547,7 +546,7 @@ class _ {
547
546
  ...y(this._def),
548
547
  innerType: this,
549
548
  catchValue: t,
550
- typeName: p.ZodCatch
549
+ typeName: m.ZodCatch
551
550
  });
552
551
  }
553
552
  describe(e) {
@@ -598,7 +597,7 @@ function rt(r, e) {
598
597
  if (!t)
599
598
  return !1;
600
599
  const s = t.replace(/-/g, "+").replace(/_/g, "/").padEnd(t.length + (4 - t.length % 4) % 4, "="), n = JSON.parse(atob(s));
601
- return !(typeof n != "object" || n === null || "typ" in n && (n == null ? void 0 : n.typ) !== "JWT" || !n.alg || e && n.alg !== e);
600
+ return !(typeof n != "object" || n === null || "typ" in n && n?.typ !== "JWT" || !n.alg || e && n.alg !== e);
602
601
  } catch {
603
602
  return !1;
604
603
  }
@@ -614,7 +613,7 @@ class C extends _ {
614
613
  code: c.invalid_type,
615
614
  expected: u.string,
616
615
  received: a.parsedType
617
- }), m;
616
+ }), p;
618
617
  }
619
618
  const s = new k();
620
619
  let n;
@@ -825,10 +824,10 @@ class C extends _ {
825
824
  message: e
826
825
  }) : this._addCheck({
827
826
  kind: "datetime",
828
- precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
829
- offset: (e == null ? void 0 : e.offset) ?? !1,
830
- local: (e == null ? void 0 : e.local) ?? !1,
831
- ...h.errToObj(e == null ? void 0 : e.message)
827
+ precision: typeof e?.precision > "u" ? null : e?.precision,
828
+ offset: e?.offset ?? !1,
829
+ local: e?.local ?? !1,
830
+ ...h.errToObj(e?.message)
832
831
  });
833
832
  }
834
833
  date(e) {
@@ -841,8 +840,8 @@ class C extends _ {
841
840
  message: e
842
841
  }) : this._addCheck({
843
842
  kind: "time",
844
- precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
845
- ...h.errToObj(e == null ? void 0 : e.message)
843
+ precision: typeof e?.precision > "u" ? null : e?.precision,
844
+ ...h.errToObj(e?.message)
846
845
  });
847
846
  }
848
847
  duration(e) {
@@ -859,8 +858,8 @@ class C extends _ {
859
858
  return this._addCheck({
860
859
  kind: "includes",
861
860
  value: e,
862
- position: t == null ? void 0 : t.position,
863
- ...h.errToObj(t == null ? void 0 : t.message)
861
+ position: t?.position,
862
+ ...h.errToObj(t?.message)
864
863
  });
865
864
  }
866
865
  startsWith(e, t) {
@@ -985,8 +984,8 @@ class C extends _ {
985
984
  }
986
985
  C.create = (r) => new C({
987
986
  checks: [],
988
- typeName: p.ZodString,
989
- coerce: (r == null ? void 0 : r.coerce) ?? !1,
987
+ typeName: m.ZodString,
988
+ coerce: r?.coerce ?? !1,
990
989
  ...y(r)
991
990
  });
992
991
  function nt(r, e) {
@@ -1004,7 +1003,7 @@ class I extends _ {
1004
1003
  code: c.invalid_type,
1005
1004
  expected: u.number,
1006
1005
  received: a.parsedType
1007
- }), m;
1006
+ }), p;
1008
1007
  }
1009
1008
  let s;
1010
1009
  const n = new k();
@@ -1161,8 +1160,8 @@ class I extends _ {
1161
1160
  }
1162
1161
  I.create = (r) => new I({
1163
1162
  checks: [],
1164
- typeName: p.ZodNumber,
1165
- coerce: (r == null ? void 0 : r.coerce) || !1,
1163
+ typeName: m.ZodNumber,
1164
+ coerce: r?.coerce || !1,
1166
1165
  ...y(r)
1167
1166
  });
1168
1167
  class $ extends _ {
@@ -1206,7 +1205,7 @@ class $ extends _ {
1206
1205
  code: c.invalid_type,
1207
1206
  expected: u.bigint,
1208
1207
  received: t.parsedType
1209
- }), m;
1208
+ }), p;
1210
1209
  }
1211
1210
  gte(e, t) {
1212
1211
  return this.setLimit("min", e, !0, h.toString(t));
@@ -1294,8 +1293,8 @@ class $ extends _ {
1294
1293
  }
1295
1294
  $.create = (r) => new $({
1296
1295
  checks: [],
1297
- typeName: p.ZodBigInt,
1298
- coerce: (r == null ? void 0 : r.coerce) ?? !1,
1296
+ typeName: m.ZodBigInt,
1297
+ coerce: r?.coerce ?? !1,
1299
1298
  ...y(r)
1300
1299
  });
1301
1300
  class H extends _ {
@@ -1306,14 +1305,14 @@ class H extends _ {
1306
1305
  code: c.invalid_type,
1307
1306
  expected: u.boolean,
1308
1307
  received: s.parsedType
1309
- }), m;
1308
+ }), p;
1310
1309
  }
1311
1310
  return b(e.data);
1312
1311
  }
1313
1312
  }
1314
1313
  H.create = (r) => new H({
1315
- typeName: p.ZodBoolean,
1316
- coerce: (r == null ? void 0 : r.coerce) || !1,
1314
+ typeName: m.ZodBoolean,
1315
+ coerce: r?.coerce || !1,
1317
1316
  ...y(r)
1318
1317
  });
1319
1318
  class L extends _ {
@@ -1324,13 +1323,13 @@ class L extends _ {
1324
1323
  code: c.invalid_type,
1325
1324
  expected: u.date,
1326
1325
  received: a.parsedType
1327
- }), m;
1326
+ }), p;
1328
1327
  }
1329
1328
  if (Number.isNaN(e.data.getTime())) {
1330
1329
  const a = this._getOrReturnCtx(e);
1331
1330
  return d(a, {
1332
1331
  code: c.invalid_date
1333
- }), m;
1332
+ }), p;
1334
1333
  }
1335
1334
  const s = new k();
1336
1335
  let n;
@@ -1390,8 +1389,8 @@ class L extends _ {
1390
1389
  }
1391
1390
  L.create = (r) => new L({
1392
1391
  checks: [],
1393
- coerce: (r == null ? void 0 : r.coerce) || !1,
1394
- typeName: p.ZodDate,
1392
+ coerce: r?.coerce || !1,
1393
+ typeName: m.ZodDate,
1395
1394
  ...y(r)
1396
1395
  });
1397
1396
  class ue extends _ {
@@ -1402,13 +1401,13 @@ class ue extends _ {
1402
1401
  code: c.invalid_type,
1403
1402
  expected: u.symbol,
1404
1403
  received: s.parsedType
1405
- }), m;
1404
+ }), p;
1406
1405
  }
1407
1406
  return b(e.data);
1408
1407
  }
1409
1408
  }
1410
1409
  ue.create = (r) => new ue({
1411
- typeName: p.ZodSymbol,
1410
+ typeName: m.ZodSymbol,
1412
1411
  ...y(r)
1413
1412
  });
1414
1413
  class G extends _ {
@@ -1419,13 +1418,13 @@ class G extends _ {
1419
1418
  code: c.invalid_type,
1420
1419
  expected: u.undefined,
1421
1420
  received: s.parsedType
1422
- }), m;
1421
+ }), p;
1423
1422
  }
1424
1423
  return b(e.data);
1425
1424
  }
1426
1425
  }
1427
1426
  G.create = (r) => new G({
1428
- typeName: p.ZodUndefined,
1427
+ typeName: m.ZodUndefined,
1429
1428
  ...y(r)
1430
1429
  });
1431
1430
  class Q extends _ {
@@ -1436,13 +1435,13 @@ class Q extends _ {
1436
1435
  code: c.invalid_type,
1437
1436
  expected: u.null,
1438
1437
  received: s.parsedType
1439
- }), m;
1438
+ }), p;
1440
1439
  }
1441
1440
  return b(e.data);
1442
1441
  }
1443
1442
  }
1444
1443
  Q.create = (r) => new Q({
1445
- typeName: p.ZodNull,
1444
+ typeName: m.ZodNull,
1446
1445
  ...y(r)
1447
1446
  });
1448
1447
  class q extends _ {
@@ -1454,7 +1453,7 @@ class q extends _ {
1454
1453
  }
1455
1454
  }
1456
1455
  q.create = (r) => new q({
1457
- typeName: p.ZodAny,
1456
+ typeName: m.ZodAny,
1458
1457
  ...y(r)
1459
1458
  });
1460
1459
  class P extends _ {
@@ -1466,7 +1465,7 @@ class P extends _ {
1466
1465
  }
1467
1466
  }
1468
1467
  P.create = (r) => new P({
1469
- typeName: p.ZodUnknown,
1468
+ typeName: m.ZodUnknown,
1470
1469
  ...y(r)
1471
1470
  });
1472
1471
  class E extends _ {
@@ -1476,11 +1475,11 @@ class E extends _ {
1476
1475
  code: c.invalid_type,
1477
1476
  expected: u.never,
1478
1477
  received: t.parsedType
1479
- }), m;
1478
+ }), p;
1480
1479
  }
1481
1480
  }
1482
1481
  E.create = (r) => new E({
1483
- typeName: p.ZodNever,
1482
+ typeName: m.ZodNever,
1484
1483
  ...y(r)
1485
1484
  });
1486
1485
  class le extends _ {
@@ -1491,13 +1490,13 @@ class le extends _ {
1491
1490
  code: c.invalid_type,
1492
1491
  expected: u.void,
1493
1492
  received: s.parsedType
1494
- }), m;
1493
+ }), p;
1495
1494
  }
1496
1495
  return b(e.data);
1497
1496
  }
1498
1497
  }
1499
1498
  le.create = (r) => new le({
1500
- typeName: p.ZodVoid,
1499
+ typeName: m.ZodVoid,
1501
1500
  ...y(r)
1502
1501
  });
1503
1502
  class S extends _ {
@@ -1508,7 +1507,7 @@ class S extends _ {
1508
1507
  code: c.invalid_type,
1509
1508
  expected: u.array,
1510
1509
  received: t.parsedType
1511
- }), m;
1510
+ }), p;
1512
1511
  if (n.exactLength !== null) {
1513
1512
  const i = t.data.length > n.exactLength.value, o = t.data.length < n.exactLength.value;
1514
1513
  (i || o) && (d(t, {
@@ -1570,7 +1569,7 @@ S.create = (r, e) => new S({
1570
1569
  minLength: null,
1571
1570
  maxLength: null,
1572
1571
  exactLength: null,
1573
- typeName: p.ZodArray,
1572
+ typeName: m.ZodArray,
1574
1573
  ...y(e)
1575
1574
  });
1576
1575
  function U(r) {
@@ -1606,7 +1605,7 @@ class x extends _ {
1606
1605
  code: c.invalid_type,
1607
1606
  expected: u.object,
1608
1607
  received: l.parsedType
1609
- }), m;
1608
+ }), p;
1610
1609
  }
1611
1610
  const { status: s, ctx: n } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
1612
1611
  if (!(this._def.catchall instanceof E && this._def.unknownKeys === "strip"))
@@ -1671,8 +1670,7 @@ class x extends _ {
1671
1670
  unknownKeys: "strict",
1672
1671
  ...e !== void 0 ? {
1673
1672
  errorMap: (t, s) => {
1674
- var a, i;
1675
- const n = ((i = (a = this._def).errorMap) == null ? void 0 : i.call(a, t, s).message) ?? s.defaultError;
1673
+ const n = this._def.errorMap?.(t, s).message ?? s.defaultError;
1676
1674
  return t.code === "unrecognized_keys" ? {
1677
1675
  message: h.errToObj(e).message ?? n
1678
1676
  } : {
@@ -1733,7 +1731,7 @@ class x extends _ {
1733
1731
  ...this._def.shape(),
1734
1732
  ...e._def.shape()
1735
1733
  }),
1736
- typeName: p.ZodObject
1734
+ typeName: m.ZodObject
1737
1735
  });
1738
1736
  }
1739
1737
  // merge<
@@ -1860,21 +1858,21 @@ x.create = (r, e) => new x({
1860
1858
  shape: () => r,
1861
1859
  unknownKeys: "strip",
1862
1860
  catchall: E.create(),
1863
- typeName: p.ZodObject,
1861
+ typeName: m.ZodObject,
1864
1862
  ...y(e)
1865
1863
  });
1866
1864
  x.strictCreate = (r, e) => new x({
1867
1865
  shape: () => r,
1868
1866
  unknownKeys: "strict",
1869
1867
  catchall: E.create(),
1870
- typeName: p.ZodObject,
1868
+ typeName: m.ZodObject,
1871
1869
  ...y(e)
1872
1870
  });
1873
1871
  x.lazycreate = (r, e) => new x({
1874
1872
  shape: r,
1875
1873
  unknownKeys: "strip",
1876
1874
  catchall: E.create(),
1877
- typeName: p.ZodObject,
1875
+ typeName: m.ZodObject,
1878
1876
  ...y(e)
1879
1877
  });
1880
1878
  class X extends _ {
@@ -1891,7 +1889,7 @@ class X extends _ {
1891
1889
  return d(t, {
1892
1890
  code: c.invalid_union,
1893
1891
  unionErrors: i
1894
- }), m;
1892
+ }), p;
1895
1893
  }
1896
1894
  if (t.common.async)
1897
1895
  return Promise.all(s.map(async (a) => {
@@ -1938,7 +1936,7 @@ class X extends _ {
1938
1936
  return d(t, {
1939
1937
  code: c.invalid_union,
1940
1938
  unionErrors: o
1941
- }), m;
1939
+ }), p;
1942
1940
  }
1943
1941
  }
1944
1942
  get options() {
@@ -1947,11 +1945,11 @@ class X extends _ {
1947
1945
  }
1948
1946
  X.create = (r, e) => new X({
1949
1947
  options: r,
1950
- typeName: p.ZodUnion,
1948
+ typeName: m.ZodUnion,
1951
1949
  ...y(e)
1952
1950
  });
1953
1951
  const R = (r) => r instanceof te ? R(r.schema) : r instanceof O ? R(r.innerType()) : r instanceof re ? [r.value] : r instanceof M ? r.options : r instanceof se ? v.objectValues(r.enum) : r instanceof ne ? R(r._def.innerType) : r instanceof G ? [void 0] : r instanceof Q ? [null] : r instanceof A ? [void 0, ...R(r.unwrap())] : r instanceof V ? [null, ...R(r.unwrap())] : r instanceof ke || r instanceof ie ? R(r.unwrap()) : r instanceof ae ? R(r._def.innerType) : [];
1954
- class me extends _ {
1952
+ class pe extends _ {
1955
1953
  _parse(e) {
1956
1954
  const { ctx: t } = this._processInputParams(e);
1957
1955
  if (t.parsedType !== u.object)
@@ -1959,7 +1957,7 @@ class me extends _ {
1959
1957
  code: c.invalid_type,
1960
1958
  expected: u.object,
1961
1959
  received: t.parsedType
1962
- }), m;
1960
+ }), p;
1963
1961
  const s = this.discriminator, n = t.data[s], a = this.optionsMap.get(n);
1964
1962
  return a ? t.common.async ? a._parseAsync({
1965
1963
  data: t.data,
@@ -1973,7 +1971,7 @@ class me extends _ {
1973
1971
  code: c.invalid_union_discriminator,
1974
1972
  options: Array.from(this.optionsMap.keys()),
1975
1973
  path: [s]
1976
- }), m);
1974
+ }), p);
1977
1975
  }
1978
1976
  get discriminator() {
1979
1977
  return this._def.discriminator;
@@ -2004,8 +2002,8 @@ class me extends _ {
2004
2002
  n.set(o, a);
2005
2003
  }
2006
2004
  }
2007
- return new me({
2008
- typeName: p.ZodDiscriminatedUnion,
2005
+ return new pe({
2006
+ typeName: m.ZodDiscriminatedUnion,
2009
2007
  discriminator: e,
2010
2008
  options: t,
2011
2009
  optionsMap: n,
@@ -2043,11 +2041,11 @@ class K extends _ {
2043
2041
  _parse(e) {
2044
2042
  const { status: t, ctx: s } = this._processInputParams(e), n = (a, i) => {
2045
2043
  if (ge(a) || ge(i))
2046
- return m;
2044
+ return p;
2047
2045
  const o = xe(a.value, i.value);
2048
2046
  return o.valid ? ((ve(a) || ve(i)) && t.dirty(), { status: t.value, value: o.data }) : (d(s, {
2049
2047
  code: c.invalid_intersection_types
2050
- }), m);
2048
+ }), p);
2051
2049
  };
2052
2050
  return s.common.async ? Promise.all([
2053
2051
  this._def.left._parseAsync({
@@ -2074,7 +2072,7 @@ class K extends _ {
2074
2072
  K.create = (r, e, t) => new K({
2075
2073
  left: r,
2076
2074
  right: e,
2077
- typeName: p.ZodIntersection,
2075
+ typeName: m.ZodIntersection,
2078
2076
  ...y(t)
2079
2077
  });
2080
2078
  class Z extends _ {
@@ -2085,7 +2083,7 @@ class Z extends _ {
2085
2083
  code: c.invalid_type,
2086
2084
  expected: u.array,
2087
2085
  received: s.parsedType
2088
- }), m;
2086
+ }), p;
2089
2087
  if (s.data.length < this._def.items.length)
2090
2088
  return d(s, {
2091
2089
  code: c.too_small,
@@ -2093,7 +2091,7 @@ class Z extends _ {
2093
2091
  inclusive: !0,
2094
2092
  exact: !1,
2095
2093
  type: "array"
2096
- }), m;
2094
+ }), p;
2097
2095
  !this._def.rest && s.data.length > this._def.items.length && (d(s, {
2098
2096
  code: c.too_big,
2099
2097
  maximum: this._def.items.length,
@@ -2122,7 +2120,7 @@ Z.create = (r, e) => {
2122
2120
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2123
2121
  return new Z({
2124
2122
  items: r,
2125
- typeName: p.ZodTuple,
2123
+ typeName: m.ZodTuple,
2126
2124
  rest: null,
2127
2125
  ...y(e)
2128
2126
  });
@@ -2141,7 +2139,7 @@ class ee extends _ {
2141
2139
  code: c.invalid_type,
2142
2140
  expected: u.object,
2143
2141
  received: s.parsedType
2144
- }), m;
2142
+ }), p;
2145
2143
  const n = [], a = this._def.keyType, i = this._def.valueType;
2146
2144
  for (const o in s.data)
2147
2145
  n.push({
@@ -2158,12 +2156,12 @@ class ee extends _ {
2158
2156
  return t instanceof _ ? new ee({
2159
2157
  keyType: e,
2160
2158
  valueType: t,
2161
- typeName: p.ZodRecord,
2159
+ typeName: m.ZodRecord,
2162
2160
  ...y(s)
2163
2161
  }) : new ee({
2164
2162
  keyType: C.create(),
2165
2163
  valueType: e,
2166
- typeName: p.ZodRecord,
2164
+ typeName: m.ZodRecord,
2167
2165
  ...y(t)
2168
2166
  });
2169
2167
  }
@@ -2182,7 +2180,7 @@ class fe extends _ {
2182
2180
  code: c.invalid_type,
2183
2181
  expected: u.map,
2184
2182
  received: s.parsedType
2185
- }), m;
2183
+ }), p;
2186
2184
  const n = this._def.keyType, a = this._def.valueType, i = [...s.data.entries()].map(([o, f], l) => ({
2187
2185
  key: n._parse(new N(s, o, s.path, [l, "key"])),
2188
2186
  value: a._parse(new N(s, f, s.path, [l, "value"]))
@@ -2193,7 +2191,7 @@ class fe extends _ {
2193
2191
  for (const f of i) {
2194
2192
  const l = await f.key, g = await f.value;
2195
2193
  if (l.status === "aborted" || g.status === "aborted")
2196
- return m;
2194
+ return p;
2197
2195
  (l.status === "dirty" || g.status === "dirty") && t.dirty(), o.set(l.value, g.value);
2198
2196
  }
2199
2197
  return { status: t.value, value: o };
@@ -2203,7 +2201,7 @@ class fe extends _ {
2203
2201
  for (const f of i) {
2204
2202
  const l = f.key, g = f.value;
2205
2203
  if (l.status === "aborted" || g.status === "aborted")
2206
- return m;
2204
+ return p;
2207
2205
  (l.status === "dirty" || g.status === "dirty") && t.dirty(), o.set(l.value, g.value);
2208
2206
  }
2209
2207
  return { status: t.value, value: o };
@@ -2213,7 +2211,7 @@ class fe extends _ {
2213
2211
  fe.create = (r, e, t) => new fe({
2214
2212
  valueType: e,
2215
2213
  keyType: r,
2216
- typeName: p.ZodMap,
2214
+ typeName: m.ZodMap,
2217
2215
  ...y(t)
2218
2216
  });
2219
2217
  class D extends _ {
@@ -2224,7 +2222,7 @@ class D extends _ {
2224
2222
  code: c.invalid_type,
2225
2223
  expected: u.set,
2226
2224
  received: s.parsedType
2227
- }), m;
2225
+ }), p;
2228
2226
  const n = this._def;
2229
2227
  n.minSize !== null && s.data.size < n.minSize.value && (d(s, {
2230
2228
  code: c.too_small,
@@ -2246,7 +2244,7 @@ class D extends _ {
2246
2244
  const l = /* @__PURE__ */ new Set();
2247
2245
  for (const g of f) {
2248
2246
  if (g.status === "aborted")
2249
- return m;
2247
+ return p;
2250
2248
  g.status === "dirty" && t.dirty(), l.add(g.value);
2251
2249
  }
2252
2250
  return { status: t.value, value: l };
@@ -2277,7 +2275,7 @@ D.create = (r, e) => new D({
2277
2275
  valueType: r,
2278
2276
  minSize: null,
2279
2277
  maxSize: null,
2280
- typeName: p.ZodSet,
2278
+ typeName: m.ZodSet,
2281
2279
  ...y(e)
2282
2280
  });
2283
2281
  class F extends _ {
@@ -2291,7 +2289,7 @@ class F extends _ {
2291
2289
  code: c.invalid_type,
2292
2290
  expected: u.function,
2293
2291
  received: t.parsedType
2294
- }), m;
2292
+ }), p;
2295
2293
  function s(o, f) {
2296
2294
  return de({
2297
2295
  data: o,
@@ -2318,11 +2316,11 @@ class F extends _ {
2318
2316
  if (this._def.returns instanceof J) {
2319
2317
  const o = this;
2320
2318
  return b(async function(...f) {
2321
- const l = new w([]), g = await o._def.args.parseAsync(f, a).catch((pe) => {
2322
- throw l.addIssue(s(f, pe)), l;
2319
+ const l = new w([]), g = await o._def.args.parseAsync(f, a).catch((me) => {
2320
+ throw l.addIssue(s(f, me)), l;
2323
2321
  }), T = await Reflect.apply(i, this, g);
2324
- return await o._def.returns._def.type.parseAsync(T, a).catch((pe) => {
2325
- throw l.addIssue(n(T, pe)), l;
2322
+ return await o._def.returns._def.type.parseAsync(T, a).catch((me) => {
2323
+ throw l.addIssue(n(T, me)), l;
2326
2324
  });
2327
2325
  });
2328
2326
  } else {
@@ -2366,7 +2364,7 @@ class F extends _ {
2366
2364
  return new F({
2367
2365
  args: e || Z.create([]).rest(P.create()),
2368
2366
  returns: t || P.create(),
2369
- typeName: p.ZodFunction,
2367
+ typeName: m.ZodFunction,
2370
2368
  ...y(s)
2371
2369
  });
2372
2370
  }
@@ -2382,7 +2380,7 @@ class te extends _ {
2382
2380
  }
2383
2381
  te.create = (r, e) => new te({
2384
2382
  getter: r,
2385
- typeName: p.ZodLazy,
2383
+ typeName: m.ZodLazy,
2386
2384
  ...y(e)
2387
2385
  });
2388
2386
  class re extends _ {
@@ -2393,7 +2391,7 @@ class re extends _ {
2393
2391
  received: t.data,
2394
2392
  code: c.invalid_literal,
2395
2393
  expected: this._def.value
2396
- }), m;
2394
+ }), p;
2397
2395
  }
2398
2396
  return { status: "valid", value: e.data };
2399
2397
  }
@@ -2403,13 +2401,13 @@ class re extends _ {
2403
2401
  }
2404
2402
  re.create = (r, e) => new re({
2405
2403
  value: r,
2406
- typeName: p.ZodLiteral,
2404
+ typeName: m.ZodLiteral,
2407
2405
  ...y(e)
2408
2406
  });
2409
2407
  function Ze(r, e) {
2410
2408
  return new M({
2411
2409
  values: r,
2412
- typeName: p.ZodEnum,
2410
+ typeName: m.ZodEnum,
2413
2411
  ...y(e)
2414
2412
  });
2415
2413
  }
@@ -2421,7 +2419,7 @@ class M extends _ {
2421
2419
  expected: v.joinValues(s),
2422
2420
  received: t.parsedType,
2423
2421
  code: c.invalid_type
2424
- }), m;
2422
+ }), p;
2425
2423
  }
2426
2424
  if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
2427
2425
  const t = this._getOrReturnCtx(e), s = this._def.values;
@@ -2429,7 +2427,7 @@ class M extends _ {
2429
2427
  received: t.data,
2430
2428
  code: c.invalid_enum_value,
2431
2429
  options: s
2432
- }), m;
2430
+ }), p;
2433
2431
  }
2434
2432
  return b(e.data);
2435
2433
  }
@@ -2477,7 +2475,7 @@ class se extends _ {
2477
2475
  expected: v.joinValues(n),
2478
2476
  received: s.parsedType,
2479
2477
  code: c.invalid_type
2480
- }), m;
2478
+ }), p;
2481
2479
  }
2482
2480
  if (this._cache || (this._cache = new Set(v.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
2483
2481
  const n = v.objectValues(t);
@@ -2485,7 +2483,7 @@ class se extends _ {
2485
2483
  received: s.data,
2486
2484
  code: c.invalid_enum_value,
2487
2485
  options: n
2488
- }), m;
2486
+ }), p;
2489
2487
  }
2490
2488
  return b(e.data);
2491
2489
  }
@@ -2495,7 +2493,7 @@ class se extends _ {
2495
2493
  }
2496
2494
  se.create = (r, e) => new se({
2497
2495
  values: r,
2498
- typeName: p.ZodNativeEnum,
2496
+ typeName: m.ZodNativeEnum,
2499
2497
  ...y(e)
2500
2498
  });
2501
2499
  class J extends _ {
@@ -2509,7 +2507,7 @@ class J extends _ {
2509
2507
  code: c.invalid_type,
2510
2508
  expected: u.promise,
2511
2509
  received: t.parsedType
2512
- }), m;
2510
+ }), p;
2513
2511
  const s = t.parsedType === u.promise ? t.data : Promise.resolve(t.data);
2514
2512
  return b(s.then((n) => this._def.type.parseAsync(n, {
2515
2513
  path: t.path,
@@ -2519,7 +2517,7 @@ class J extends _ {
2519
2517
  }
2520
2518
  J.create = (r, e) => new J({
2521
2519
  type: r,
2522
- typeName: p.ZodPromise,
2520
+ typeName: m.ZodPromise,
2523
2521
  ...y(e)
2524
2522
  });
2525
2523
  class O extends _ {
@@ -2527,7 +2525,7 @@ class O extends _ {
2527
2525
  return this._def.schema;
2528
2526
  }
2529
2527
  sourceType() {
2530
- return this._def.schema._def.typeName === p.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2528
+ return this._def.schema._def.typeName === m.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2531
2529
  }
2532
2530
  _parse(e) {
2533
2531
  const { status: t, ctx: s } = this._processInputParams(e), n = this._def.effect || null, a = {
@@ -2543,23 +2541,23 @@ class O extends _ {
2543
2541
  if (s.common.async)
2544
2542
  return Promise.resolve(i).then(async (o) => {
2545
2543
  if (t.value === "aborted")
2546
- return m;
2544
+ return p;
2547
2545
  const f = await this._def.schema._parseAsync({
2548
2546
  data: o,
2549
2547
  path: s.path,
2550
2548
  parent: s
2551
2549
  });
2552
- return f.status === "aborted" ? m : f.status === "dirty" || t.value === "dirty" ? B(f.value) : f;
2550
+ return f.status === "aborted" ? p : f.status === "dirty" || t.value === "dirty" ? B(f.value) : f;
2553
2551
  });
2554
2552
  {
2555
2553
  if (t.value === "aborted")
2556
- return m;
2554
+ return p;
2557
2555
  const o = this._def.schema._parseSync({
2558
2556
  data: i,
2559
2557
  path: s.path,
2560
2558
  parent: s
2561
2559
  });
2562
- return o.status === "aborted" ? m : o.status === "dirty" || t.value === "dirty" ? B(o.value) : o;
2560
+ return o.status === "aborted" ? p : o.status === "dirty" || t.value === "dirty" ? B(o.value) : o;
2563
2561
  }
2564
2562
  }
2565
2563
  if (n.type === "refinement") {
@@ -2577,9 +2575,9 @@ class O extends _ {
2577
2575
  path: s.path,
2578
2576
  parent: s
2579
2577
  });
2580
- return o.status === "aborted" ? m : (o.status === "dirty" && t.dirty(), i(o.value), { status: t.value, value: o.value });
2578
+ return o.status === "aborted" ? p : (o.status === "dirty" && t.dirty(), i(o.value), { status: t.value, value: o.value });
2581
2579
  } else
2582
- return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((o) => o.status === "aborted" ? m : (o.status === "dirty" && t.dirty(), i(o.value).then(() => ({ status: t.value, value: o.value }))));
2580
+ return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((o) => o.status === "aborted" ? p : (o.status === "dirty" && t.dirty(), i(o.value).then(() => ({ status: t.value, value: o.value }))));
2583
2581
  }
2584
2582
  if (n.type === "transform")
2585
2583
  if (s.common.async === !1) {
@@ -2589,7 +2587,7 @@ class O extends _ {
2589
2587
  parent: s
2590
2588
  });
2591
2589
  if (!z(i))
2592
- return m;
2590
+ return p;
2593
2591
  const o = n.transform(i.value, a);
2594
2592
  if (o instanceof Promise)
2595
2593
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
@@ -2598,20 +2596,20 @@ class O extends _ {
2598
2596
  return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((i) => z(i) ? Promise.resolve(n.transform(i.value, a)).then((o) => ({
2599
2597
  status: t.value,
2600
2598
  value: o
2601
- })) : m);
2599
+ })) : p);
2602
2600
  v.assertNever(n);
2603
2601
  }
2604
2602
  }
2605
2603
  O.create = (r, e, t) => new O({
2606
2604
  schema: r,
2607
- typeName: p.ZodEffects,
2605
+ typeName: m.ZodEffects,
2608
2606
  effect: e,
2609
2607
  ...y(t)
2610
2608
  });
2611
2609
  O.createWithPreprocess = (r, e, t) => new O({
2612
2610
  schema: e,
2613
2611
  effect: { type: "preprocess", transform: r },
2614
- typeName: p.ZodEffects,
2612
+ typeName: m.ZodEffects,
2615
2613
  ...y(t)
2616
2614
  });
2617
2615
  class A extends _ {
@@ -2624,7 +2622,7 @@ class A extends _ {
2624
2622
  }
2625
2623
  A.create = (r, e) => new A({
2626
2624
  innerType: r,
2627
- typeName: p.ZodOptional,
2625
+ typeName: m.ZodOptional,
2628
2626
  ...y(e)
2629
2627
  });
2630
2628
  class V extends _ {
@@ -2637,7 +2635,7 @@ class V extends _ {
2637
2635
  }
2638
2636
  V.create = (r, e) => new V({
2639
2637
  innerType: r,
2640
- typeName: p.ZodNullable,
2638
+ typeName: m.ZodNullable,
2641
2639
  ...y(e)
2642
2640
  });
2643
2641
  class ne extends _ {
@@ -2656,7 +2654,7 @@ class ne extends _ {
2656
2654
  }
2657
2655
  ne.create = (r, e) => new ne({
2658
2656
  innerType: r,
2659
- typeName: p.ZodDefault,
2657
+ typeName: m.ZodDefault,
2660
2658
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2661
2659
  ...y(e)
2662
2660
  });
@@ -2699,7 +2697,7 @@ class ae extends _ {
2699
2697
  }
2700
2698
  ae.create = (r, e) => new ae({
2701
2699
  innerType: r,
2702
- typeName: p.ZodCatch,
2700
+ typeName: m.ZodCatch,
2703
2701
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2704
2702
  ...y(e)
2705
2703
  });
@@ -2711,13 +2709,13 @@ class he extends _ {
2711
2709
  code: c.invalid_type,
2712
2710
  expected: u.nan,
2713
2711
  received: s.parsedType
2714
- }), m;
2712
+ }), p;
2715
2713
  }
2716
2714
  return { status: "valid", value: e.data };
2717
2715
  }
2718
2716
  }
2719
2717
  he.create = (r) => new he({
2720
- typeName: p.ZodNaN,
2718
+ typeName: m.ZodNaN,
2721
2719
  ...y(r)
2722
2720
  });
2723
2721
  const at = Symbol("zod_brand");
@@ -2744,7 +2742,7 @@ class oe extends _ {
2744
2742
  path: s.path,
2745
2743
  parent: s
2746
2744
  });
2747
- return a.status === "aborted" ? m : a.status === "dirty" ? (t.dirty(), B(a.value)) : this._def.out._parseAsync({
2745
+ return a.status === "aborted" ? p : a.status === "dirty" ? (t.dirty(), B(a.value)) : this._def.out._parseAsync({
2748
2746
  data: a.value,
2749
2747
  path: s.path,
2750
2748
  parent: s
@@ -2756,7 +2754,7 @@ class oe extends _ {
2756
2754
  path: s.path,
2757
2755
  parent: s
2758
2756
  });
2759
- return n.status === "aborted" ? m : n.status === "dirty" ? (t.dirty(), {
2757
+ return n.status === "aborted" ? p : n.status === "dirty" ? (t.dirty(), {
2760
2758
  status: "dirty",
2761
2759
  value: n.value
2762
2760
  }) : this._def.out._parseSync({
@@ -2770,7 +2768,7 @@ class oe extends _ {
2770
2768
  return new oe({
2771
2769
  in: e,
2772
2770
  out: t,
2773
- typeName: p.ZodPipeline
2771
+ typeName: m.ZodPipeline
2774
2772
  });
2775
2773
  }
2776
2774
  }
@@ -2785,7 +2783,7 @@ class ie extends _ {
2785
2783
  }
2786
2784
  ie.create = (r, e) => new ie({
2787
2785
  innerType: r,
2788
- typeName: p.ZodReadonly,
2786
+ typeName: m.ZodReadonly,
2789
2787
  ...y(e)
2790
2788
  });
2791
2789
  function Te(r, e) {
@@ -2811,27 +2809,27 @@ function Re(r, e = {}, t) {
2811
2809
  const it = {
2812
2810
  object: x.lazycreate
2813
2811
  };
2814
- var p;
2812
+ var m;
2815
2813
  (function(r) {
2816
2814
  r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
2817
- })(p || (p = {}));
2815
+ })(m || (m = {}));
2818
2816
  const ot = (r, e = {
2819
2817
  message: `Input not instance of ${r.name}`
2820
- }) => Re((t) => t instanceof r, e), je = C.create, Ee = I.create, ct = he.create, dt = $.create, Ie = H.create, ut = L.create, lt = ue.create, ft = G.create, ht = Q.create, mt = q.create, pt = P.create, yt = E.create, _t = le.create, gt = S.create, vt = x.create, xt = x.strictCreate, kt = X.create, bt = me.create, wt = K.create, Tt = Z.create, Ct = ee.create, St = fe.create, Ot = D.create, At = F.create, Nt = te.create, Zt = re.create, Rt = M.create, jt = se.create, Et = J.create, Ce = O.create, It = A.create, $t = V.create, Mt = O.createWithPreprocess, Vt = oe.create, Pt = () => je().optional(), zt = () => Ee().optional(), Lt = () => Ie().optional(), Dt = {
2821
- string: (r) => C.create({ ...r, coerce: !0 }),
2822
- number: (r) => I.create({ ...r, coerce: !0 }),
2823
- boolean: (r) => H.create({
2818
+ }) => Re((t) => t instanceof r, e), je = C.create, Ee = I.create, ct = he.create, dt = $.create, Ie = H.create, ut = L.create, lt = ue.create, ft = G.create, ht = Q.create, pt = q.create, mt = P.create, yt = E.create, _t = le.create, gt = S.create, vt = x.create, xt = x.strictCreate, kt = X.create, bt = pe.create, wt = K.create, Tt = Z.create, Ct = ee.create, St = fe.create, Ot = D.create, At = F.create, Nt = te.create, Zt = re.create, Rt = M.create, jt = se.create, Et = J.create, Ce = O.create, It = A.create, $t = V.create, Mt = O.createWithPreprocess, Vt = oe.create, Pt = () => je().optional(), zt = () => Ee().optional(), Lt = () => Ie().optional(), Dt = {
2819
+ string: ((r) => C.create({ ...r, coerce: !0 })),
2820
+ number: ((r) => I.create({ ...r, coerce: !0 })),
2821
+ boolean: ((r) => H.create({
2824
2822
  ...r,
2825
2823
  coerce: !0
2826
- }),
2827
- bigint: (r) => $.create({ ...r, coerce: !0 }),
2828
- date: (r) => L.create({ ...r, coerce: !0 })
2829
- }, Ut = m, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2824
+ })),
2825
+ bigint: ((r) => $.create({ ...r, coerce: !0 })),
2826
+ date: ((r) => L.create({ ...r, coerce: !0 }))
2827
+ }, Ut = p, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2830
2828
  __proto__: null,
2831
2829
  BRAND: at,
2832
2830
  DIRTY: B,
2833
2831
  EMPTY_PATH: Ve,
2834
- INVALID: m,
2832
+ INVALID: p,
2835
2833
  NEVER: Ut,
2836
2834
  OK: b,
2837
2835
  ParseStatus: k,
@@ -2844,12 +2842,12 @@ const ot = (r, e = {
2844
2842
  ZodCatch: ae,
2845
2843
  ZodDate: L,
2846
2844
  ZodDefault: ne,
2847
- ZodDiscriminatedUnion: me,
2845
+ ZodDiscriminatedUnion: pe,
2848
2846
  ZodEffects: O,
2849
2847
  ZodEnum: M,
2850
2848
  ZodError: w,
2851
2849
  get ZodFirstPartyTypeKind() {
2852
- return p;
2850
+ return m;
2853
2851
  },
2854
2852
  ZodFunction: F,
2855
2853
  ZodIntersection: K,
@@ -2882,7 +2880,7 @@ const ot = (r, e = {
2882
2880
  ZodUnknown: P,
2883
2881
  ZodVoid: le,
2884
2882
  addIssueToContext: d,
2885
- any: mt,
2883
+ any: pt,
2886
2884
  array: gt,
2887
2885
  bigint: dt,
2888
2886
  boolean: Ie,
@@ -2936,7 +2934,7 @@ const ot = (r, e = {
2936
2934
  tuple: Tt,
2937
2935
  undefined: ft,
2938
2936
  union: kt,
2939
- unknown: pt,
2937
+ unknown: mt,
2940
2938
  get util() {
2941
2939
  return v;
2942
2940
  },