@h-ai/core 0.1.0-alpha.16 → 0.1.0-alpha.18

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.
@@ -92,6 +92,7 @@ __export(external_exports, {
92
92
  ZodOptional: () => ZodOptional,
93
93
  ZodPipe: () => ZodPipe,
94
94
  ZodPrefault: () => ZodPrefault,
95
+ ZodPreprocess: () => ZodPreprocess,
95
96
  ZodPromise: () => ZodPromise,
96
97
  ZodReadonly: () => ZodReadonly,
97
98
  ZodRealError: () => ZodRealError,
@@ -170,6 +171,7 @@ __export(external_exports, {
170
171
  int32: () => int32,
171
172
  int64: () => int64,
172
173
  intersection: () => intersection,
174
+ invertCodec: () => invertCodec,
173
175
  ipv4: () => ipv42,
174
176
  ipv6: () => ipv62,
175
177
  iso: () => iso_exports,
@@ -351,6 +353,7 @@ __export(core_exports2, {
351
353
  $ZodOptional: () => $ZodOptional,
352
354
  $ZodPipe: () => $ZodPipe,
353
355
  $ZodPrefault: () => $ZodPrefault,
356
+ $ZodPreprocess: () => $ZodPreprocess,
354
357
  $ZodPromise: () => $ZodPromise,
355
358
  $ZodReadonly: () => $ZodReadonly,
356
359
  $ZodRealError: () => $ZodRealError,
@@ -550,7 +553,8 @@ __export(core_exports2, {
550
553
  });
551
554
 
552
555
  // ../../node_modules/zod/v4/core/core.js
553
- var NEVER = Object.freeze({
556
+ var _a;
557
+ var NEVER = /* @__PURE__ */ Object.freeze({
554
558
  status: "aborted"
555
559
  });
556
560
  // @__NO_SIDE_EFFECTS__
@@ -585,10 +589,10 @@ function $constructor(name, initializer3, params) {
585
589
  }
586
590
  Object.defineProperty(Definition, "name", { value: name });
587
591
  function _(def) {
588
- var _a2;
592
+ var _a3;
589
593
  const inst = params?.Parent ? new Definition() : this;
590
594
  init(inst, def);
591
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
595
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
592
596
  for (const fn of inst._zod.deferred) {
593
597
  fn();
594
598
  }
@@ -617,7 +621,8 @@ var $ZodEncodeError = class extends Error {
617
621
  this.name = "ZodEncodeError";
618
622
  }
619
623
  };
620
- var globalConfig = {};
624
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
625
+ var globalConfig = globalThis.__zod_globalConfig;
621
626
  function config(newConfig) {
622
627
  if (newConfig)
623
628
  Object.assign(globalConfig, newConfig);
@@ -650,6 +655,7 @@ __export(util_exports, {
650
655
  defineLazy: () => defineLazy,
651
656
  esc: () => esc,
652
657
  escapeRegex: () => escapeRegex,
658
+ explicitlyAborted: () => explicitlyAborted,
653
659
  extend: () => extend,
654
660
  finalizeIssue: () => finalizeIssue,
655
661
  floatSafeRemainder: () => floatSafeRemainder,
@@ -736,19 +742,12 @@ function cleanRegex(source) {
736
742
  return source.slice(start, end);
737
743
  }
738
744
  function floatSafeRemainder(val, step) {
739
- const valDecCount = (val.toString().split(".")[1] || "").length;
740
- const stepString = step.toString();
741
- let stepDecCount = (stepString.split(".")[1] || "").length;
742
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
743
- const match = stepString.match(/\d?e-(\d?)/);
744
- if (match?.[1]) {
745
- stepDecCount = Number.parseInt(match[1]);
746
- }
747
- }
748
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
749
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
750
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
751
- return valInt % stepInt / 10 ** decCount;
745
+ const ratio = val / step;
746
+ const roundedRatio = Math.round(ratio);
747
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
748
+ if (Math.abs(ratio - roundedRatio) < tolerance)
749
+ return 0;
750
+ return ratio - roundedRatio;
752
751
  }
753
752
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
754
753
  function defineLazy(object3, key, getter) {
@@ -830,7 +829,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
830
829
  function isObject(data) {
831
830
  return typeof data === "object" && data !== null && !Array.isArray(data);
832
831
  }
833
- var allowsEval = cached(() => {
832
+ var allowsEval = /* @__PURE__ */ cached(() => {
833
+ if (globalConfig.jitless) {
834
+ return false;
835
+ }
834
836
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
835
837
  return false;
836
838
  }
@@ -863,6 +865,10 @@ function shallowClone(o) {
863
865
  return { ...o };
864
866
  if (Array.isArray(o))
865
867
  return [...o];
868
+ if (o instanceof Map)
869
+ return new Map(o);
870
+ if (o instanceof Set)
871
+ return new Set(o);
866
872
  return o;
867
873
  }
868
874
  function numKeys(data) {
@@ -919,7 +925,14 @@ var getParsedType = (data) => {
919
925
  }
920
926
  };
921
927
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
922
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
928
+ var primitiveTypes = /* @__PURE__ */ new Set([
929
+ "string",
930
+ "number",
931
+ "bigint",
932
+ "boolean",
933
+ "symbol",
934
+ "undefined"
935
+ ]);
923
936
  function escapeRegex(str) {
924
937
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
925
938
  }
@@ -1088,6 +1101,9 @@ function safeExtend(schema, shape) {
1088
1101
  return clone(schema, def);
1089
1102
  }
1090
1103
  function merge(a, b) {
1104
+ if (a._zod.def.checks?.length) {
1105
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
1106
+ }
1091
1107
  const def = mergeDefs(a._zod.def, {
1092
1108
  get shape() {
1093
1109
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -1097,8 +1113,7 @@ function merge(a, b) {
1097
1113
  get catchall() {
1098
1114
  return b._zod.def.catchall;
1099
1115
  },
1100
- checks: []
1101
- // delete existing checks
1116
+ checks: b._zod.def.checks ?? []
1102
1117
  });
1103
1118
  return clone(a, def);
1104
1119
  }
@@ -1181,10 +1196,20 @@ function aborted(x, startIndex = 0) {
1181
1196
  }
1182
1197
  return false;
1183
1198
  }
1199
+ function explicitlyAborted(x, startIndex = 0) {
1200
+ if (x.aborted === true)
1201
+ return true;
1202
+ for (let i = startIndex; i < x.issues.length; i++) {
1203
+ if (x.issues[i]?.continue === false) {
1204
+ return true;
1205
+ }
1206
+ }
1207
+ return false;
1208
+ }
1184
1209
  function prefixIssues(path, issues) {
1185
1210
  return issues.map((iss) => {
1186
- var _a2;
1187
- (_a2 = iss).path ?? (_a2.path = []);
1211
+ var _a3;
1212
+ (_a3 = iss).path ?? (_a3.path = []);
1188
1213
  iss.path.unshift(path);
1189
1214
  return iss;
1190
1215
  });
@@ -1193,17 +1218,14 @@ function unwrapMessage(message) {
1193
1218
  return typeof message === "string" ? message : message?.message;
1194
1219
  }
1195
1220
  function finalizeIssue(iss, ctx, config2) {
1196
- const full = { ...iss, path: iss.path ?? [] };
1197
- if (!iss.message) {
1198
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1199
- full.message = message;
1221
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1222
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
1223
+ rest.path ?? (rest.path = []);
1224
+ rest.message = message;
1225
+ if (ctx?.reportInput) {
1226
+ rest.input = _input;
1200
1227
  }
1201
- delete full.inst;
1202
- delete full.continue;
1203
- if (!ctx?.reportInput) {
1204
- delete full.input;
1205
- }
1206
- return full;
1228
+ return rest;
1207
1229
  }
1208
1230
  function getSizableOrigin(input) {
1209
1231
  if (input instanceof Set)
@@ -1320,10 +1342,10 @@ var initializer = (inst, def) => {
1320
1342
  };
1321
1343
  var $ZodError = $constructor("$ZodError", initializer);
1322
1344
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1323
- function flattenError(error49, mapper = (issue2) => issue2.message) {
1345
+ function flattenError(error52, mapper = (issue2) => issue2.message) {
1324
1346
  const fieldErrors = {};
1325
1347
  const formErrors = [];
1326
- for (const sub of error49.issues) {
1348
+ for (const sub of error52.issues) {
1327
1349
  if (sub.path.length > 0) {
1328
1350
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1329
1351
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1333,50 +1355,53 @@ function flattenError(error49, mapper = (issue2) => issue2.message) {
1333
1355
  }
1334
1356
  return { formErrors, fieldErrors };
1335
1357
  }
1336
- function formatError(error49, mapper = (issue2) => issue2.message) {
1358
+ function formatError(error52, mapper = (issue2) => issue2.message) {
1337
1359
  const fieldErrors = { _errors: [] };
1338
- const processError = (error50) => {
1339
- for (const issue2 of error50.issues) {
1360
+ const processError = (error53, path = []) => {
1361
+ for (const issue2 of error53.issues) {
1340
1362
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1341
- issue2.errors.map((issues) => processError({ issues }));
1363
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1342
1364
  } else if (issue2.code === "invalid_key") {
1343
- processError({ issues: issue2.issues });
1365
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1344
1366
  } else if (issue2.code === "invalid_element") {
1345
- processError({ issues: issue2.issues });
1346
- } else if (issue2.path.length === 0) {
1347
- fieldErrors._errors.push(mapper(issue2));
1367
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1348
1368
  } else {
1349
- let curr = fieldErrors;
1350
- let i = 0;
1351
- while (i < issue2.path.length) {
1352
- const el = issue2.path[i];
1353
- const terminal = i === issue2.path.length - 1;
1354
- if (!terminal) {
1355
- curr[el] = curr[el] || { _errors: [] };
1356
- } else {
1357
- curr[el] = curr[el] || { _errors: [] };
1358
- curr[el]._errors.push(mapper(issue2));
1369
+ const fullpath = [...path, ...issue2.path];
1370
+ if (fullpath.length === 0) {
1371
+ fieldErrors._errors.push(mapper(issue2));
1372
+ } else {
1373
+ let curr = fieldErrors;
1374
+ let i = 0;
1375
+ while (i < fullpath.length) {
1376
+ const el = fullpath[i];
1377
+ const terminal = i === fullpath.length - 1;
1378
+ if (!terminal) {
1379
+ curr[el] = curr[el] || { _errors: [] };
1380
+ } else {
1381
+ curr[el] = curr[el] || { _errors: [] };
1382
+ curr[el]._errors.push(mapper(issue2));
1383
+ }
1384
+ curr = curr[el];
1385
+ i++;
1359
1386
  }
1360
- curr = curr[el];
1361
- i++;
1362
1387
  }
1363
1388
  }
1364
1389
  }
1365
1390
  };
1366
- processError(error49);
1391
+ processError(error52);
1367
1392
  return fieldErrors;
1368
1393
  }
1369
- function treeifyError(error49, mapper = (issue2) => issue2.message) {
1394
+ function treeifyError(error52, mapper = (issue2) => issue2.message) {
1370
1395
  const result = { errors: [] };
1371
- const processError = (error50, path = []) => {
1372
- var _a2, _b;
1373
- for (const issue2 of error50.issues) {
1396
+ const processError = (error53, path = []) => {
1397
+ var _a3, _b;
1398
+ for (const issue2 of error53.issues) {
1374
1399
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1375
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
1400
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
1376
1401
  } else if (issue2.code === "invalid_key") {
1377
- processError({ issues: issue2.issues }, issue2.path);
1402
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1378
1403
  } else if (issue2.code === "invalid_element") {
1379
- processError({ issues: issue2.issues }, issue2.path);
1404
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
1380
1405
  } else {
1381
1406
  const fullpath = [...path, ...issue2.path];
1382
1407
  if (fullpath.length === 0) {
@@ -1390,7 +1415,7 @@ function treeifyError(error49, mapper = (issue2) => issue2.message) {
1390
1415
  const terminal = i === fullpath.length - 1;
1391
1416
  if (typeof el === "string") {
1392
1417
  curr.properties ?? (curr.properties = {});
1393
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1418
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1394
1419
  curr = curr.properties[el];
1395
1420
  } else {
1396
1421
  curr.items ?? (curr.items = []);
@@ -1405,7 +1430,7 @@ function treeifyError(error49, mapper = (issue2) => issue2.message) {
1405
1430
  }
1406
1431
  }
1407
1432
  };
1408
- processError(error49);
1433
+ processError(error52);
1409
1434
  return result;
1410
1435
  }
1411
1436
  function toDotPath(_path) {
@@ -1426,9 +1451,9 @@ function toDotPath(_path) {
1426
1451
  }
1427
1452
  return segs.join("");
1428
1453
  }
1429
- function prettifyError(error49) {
1454
+ function prettifyError(error52) {
1430
1455
  const lines = [];
1431
- const issues = [...error49.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1456
+ const issues = [...error52.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1432
1457
  for (const issue2 of issues) {
1433
1458
  lines.push(`\u2716 ${issue2.message}`);
1434
1459
  if (issue2.path?.length)
@@ -1439,7 +1464,7 @@ function prettifyError(error49) {
1439
1464
 
1440
1465
  // ../../node_modules/zod/v4/core/parse.js
1441
1466
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1442
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1467
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1443
1468
  const result = schema._zod.run({ value, issues: [] }, ctx);
1444
1469
  if (result instanceof Promise) {
1445
1470
  throw new $ZodAsyncError();
@@ -1453,7 +1478,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
1453
1478
  };
1454
1479
  var parse = /* @__PURE__ */ _parse($ZodRealError);
1455
1480
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1456
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1481
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1457
1482
  let result = schema._zod.run({ value, issues: [] }, ctx);
1458
1483
  if (result instanceof Promise)
1459
1484
  result = await result;
@@ -1478,7 +1503,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
1478
1503
  };
1479
1504
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
1480
1505
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1481
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1506
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1482
1507
  let result = schema._zod.run({ value, issues: [] }, ctx);
1483
1508
  if (result instanceof Promise)
1484
1509
  result = await result;
@@ -1489,7 +1514,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1489
1514
  };
1490
1515
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1491
1516
  var _encode = (_Err) => (schema, value, _ctx) => {
1492
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1517
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1493
1518
  return _parse(_Err)(schema, value, ctx);
1494
1519
  };
1495
1520
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -1498,7 +1523,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
1498
1523
  };
1499
1524
  var decode = /* @__PURE__ */ _decode($ZodRealError);
1500
1525
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
1501
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1526
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1502
1527
  return _parseAsync(_Err)(schema, value, ctx);
1503
1528
  };
1504
1529
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -1507,7 +1532,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
1507
1532
  };
1508
1533
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
1509
1534
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
1510
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1535
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1511
1536
  return _safeParse(_Err)(schema, value, ctx);
1512
1537
  };
1513
1538
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -1516,7 +1541,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
1516
1541
  };
1517
1542
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
1518
1543
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1519
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1544
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
1520
1545
  return _safeParseAsync(_Err)(schema, value, ctx);
1521
1546
  };
1522
1547
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -1549,6 +1574,7 @@ __export(regexes_exports, {
1549
1574
  hex: () => hex,
1550
1575
  hostname: () => hostname,
1551
1576
  html5Email: () => html5Email,
1577
+ httpProtocol: () => httpProtocol,
1552
1578
  idnEmail: () => idnEmail,
1553
1579
  integer: () => integer,
1554
1580
  ipv4: () => ipv4,
@@ -1587,7 +1613,7 @@ __export(regexes_exports, {
1587
1613
  uuid7: () => uuid7,
1588
1614
  xid: () => xid
1589
1615
  });
1590
- var cuid = /^[cC][^\s-]{8,}$/;
1616
+ var cuid = /^[cC][0-9a-z]{6,}$/;
1591
1617
  var cuid2 = /^[0-9a-z]+$/;
1592
1618
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
1593
1619
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -1626,6 +1652,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
1626
1652
  var base64url = /^[A-Za-z0-9_-]*$/;
1627
1653
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
1628
1654
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1655
+ var httpProtocol = /^https?$/;
1629
1656
  var e164 = /^\+[1-9]\d{6,14}$/;
1630
1657
  var dateSource = `(?:(?:\\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])))`;
1631
1658
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -1684,10 +1711,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1684
1711
 
1685
1712
  // ../../node_modules/zod/v4/core/checks.js
1686
1713
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1687
- var _a2;
1714
+ var _a3;
1688
1715
  inst._zod ?? (inst._zod = {});
1689
1716
  inst._zod.def = def;
1690
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1717
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
1691
1718
  });
1692
1719
  var numericOriginMap = {
1693
1720
  number: "number",
@@ -1753,8 +1780,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
1753
1780
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1754
1781
  $ZodCheck.init(inst, def);
1755
1782
  inst._zod.onattach.push((inst2) => {
1756
- var _a2;
1757
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
1783
+ var _a3;
1784
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
1758
1785
  });
1759
1786
  inst._zod.check = (payload) => {
1760
1787
  if (typeof payload.value !== typeof def.value)
@@ -1887,9 +1914,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
1887
1914
  };
1888
1915
  });
1889
1916
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
1890
- var _a2;
1917
+ var _a3;
1891
1918
  $ZodCheck.init(inst, def);
1892
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1919
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1893
1920
  const val = payload.value;
1894
1921
  return !nullish(val) && val.size !== void 0;
1895
1922
  });
@@ -1915,9 +1942,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
1915
1942
  };
1916
1943
  });
1917
1944
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
1918
- var _a2;
1945
+ var _a3;
1919
1946
  $ZodCheck.init(inst, def);
1920
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1947
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1921
1948
  const val = payload.value;
1922
1949
  return !nullish(val) && val.size !== void 0;
1923
1950
  });
@@ -1943,9 +1970,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
1943
1970
  };
1944
1971
  });
1945
1972
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
1946
- var _a2;
1973
+ var _a3;
1947
1974
  $ZodCheck.init(inst, def);
1948
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1975
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1949
1976
  const val = payload.value;
1950
1977
  return !nullish(val) && val.size !== void 0;
1951
1978
  });
@@ -1973,9 +2000,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
1973
2000
  };
1974
2001
  });
1975
2002
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
1976
- var _a2;
2003
+ var _a3;
1977
2004
  $ZodCheck.init(inst, def);
1978
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2005
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1979
2006
  const val = payload.value;
1980
2007
  return !nullish(val) && val.length !== void 0;
1981
2008
  });
@@ -2002,9 +2029,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2002
2029
  };
2003
2030
  });
2004
2031
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2005
- var _a2;
2032
+ var _a3;
2006
2033
  $ZodCheck.init(inst, def);
2007
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2034
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2008
2035
  const val = payload.value;
2009
2036
  return !nullish(val) && val.length !== void 0;
2010
2037
  });
@@ -2031,9 +2058,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2031
2058
  };
2032
2059
  });
2033
2060
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2034
- var _a2;
2061
+ var _a3;
2035
2062
  $ZodCheck.init(inst, def);
2036
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2063
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2037
2064
  const val = payload.value;
2038
2065
  return !nullish(val) && val.length !== void 0;
2039
2066
  });
@@ -2062,7 +2089,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2062
2089
  };
2063
2090
  });
2064
2091
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2065
- var _a2, _b;
2092
+ var _a3, _b;
2066
2093
  $ZodCheck.init(inst, def);
2067
2094
  inst._zod.onattach.push((inst2) => {
2068
2095
  const bag = inst2._zod.bag;
@@ -2073,7 +2100,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2073
2100
  }
2074
2101
  });
2075
2102
  if (def.pattern)
2076
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2103
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2077
2104
  def.pattern.lastIndex = 0;
2078
2105
  if (def.pattern.test(payload.value))
2079
2106
  return;
@@ -2269,13 +2296,13 @@ var Doc = class {
2269
2296
  // ../../node_modules/zod/v4/core/versions.js
2270
2297
  var version = {
2271
2298
  major: 4,
2272
- minor: 3,
2273
- patch: 6
2299
+ minor: 4,
2300
+ patch: 3
2274
2301
  };
2275
2302
 
2276
2303
  // ../../node_modules/zod/v4/core/schemas.js
2277
2304
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2278
- var _a2;
2305
+ var _a3;
2279
2306
  inst ?? (inst = {});
2280
2307
  inst._zod.def = def;
2281
2308
  inst._zod.bag = inst._zod.bag || {};
@@ -2290,7 +2317,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2290
2317
  }
2291
2318
  }
2292
2319
  if (checks.length === 0) {
2293
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2320
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2294
2321
  inst._zod.deferred?.push(() => {
2295
2322
  inst._zod.run = inst._zod.parse;
2296
2323
  });
@@ -2300,6 +2327,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2300
2327
  let asyncResult;
2301
2328
  for (const ch of checks2) {
2302
2329
  if (ch._zod.def.when) {
2330
+ if (explicitlyAborted(payload))
2331
+ continue;
2303
2332
  const shouldRun = ch._zod.def.when(payload);
2304
2333
  if (!shouldRun)
2305
2334
  continue;
@@ -2440,6 +2469,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
2440
2469
  inst._zod.check = (payload) => {
2441
2470
  try {
2442
2471
  const trimmed = payload.value.trim();
2472
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
2473
+ if (!/^https?:\/\//i.test(trimmed)) {
2474
+ payload.issues.push({
2475
+ code: "invalid_format",
2476
+ format: "url",
2477
+ note: "Invalid URL format",
2478
+ input: payload.value,
2479
+ inst,
2480
+ continue: !def.abort
2481
+ });
2482
+ return;
2483
+ }
2484
+ }
2443
2485
  const url2 = new URL(trimmed);
2444
2486
  if (def.hostname) {
2445
2487
  def.hostname.lastIndex = 0;
@@ -2593,6 +2635,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
2593
2635
  function isValidBase64(data) {
2594
2636
  if (data === "")
2595
2637
  return true;
2638
+ if (/\s/.test(data))
2639
+ return false;
2596
2640
  if (data.length % 4 !== 0)
2597
2641
  return false;
2598
2642
  try {
@@ -2785,8 +2829,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
2785
2829
  $ZodType.init(inst, def);
2786
2830
  inst._zod.pattern = _undefined;
2787
2831
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
2788
- inst._zod.optin = "optional";
2789
- inst._zod.optout = "optional";
2790
2832
  inst._zod.parse = (payload, _ctx) => {
2791
2833
  const input = payload.value;
2792
2834
  if (typeof input === "undefined")
@@ -2915,15 +2957,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
2915
2957
  return payload;
2916
2958
  };
2917
2959
  });
2918
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
2960
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
2961
+ const isPresent = key in input;
2919
2962
  if (result.issues.length) {
2920
- if (isOptionalOut && !(key in input)) {
2963
+ if (isOptionalIn && isOptionalOut && !isPresent) {
2921
2964
  return;
2922
2965
  }
2923
2966
  final.issues.push(...prefixIssues(key, result.issues));
2924
2967
  }
2968
+ if (!isPresent && !isOptionalIn) {
2969
+ if (!result.issues.length) {
2970
+ final.issues.push({
2971
+ code: "invalid_type",
2972
+ expected: "nonoptional",
2973
+ input: void 0,
2974
+ path: [key]
2975
+ });
2976
+ }
2977
+ return;
2978
+ }
2925
2979
  if (result.value === void 0) {
2926
- if (key in input) {
2980
+ if (isPresent) {
2927
2981
  final.value[key] = void 0;
2928
2982
  }
2929
2983
  } else {
@@ -2951,8 +3005,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
2951
3005
  const keySet = def.keySet;
2952
3006
  const _catchall = def.catchall._zod;
2953
3007
  const t = _catchall.def.type;
3008
+ const isOptionalIn = _catchall.optin === "optional";
2954
3009
  const isOptionalOut = _catchall.optout === "optional";
2955
3010
  for (const key in input) {
3011
+ if (key === "__proto__")
3012
+ continue;
2956
3013
  if (keySet.has(key))
2957
3014
  continue;
2958
3015
  if (t === "never") {
@@ -2961,9 +3018,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
2961
3018
  }
2962
3019
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
2963
3020
  if (r instanceof Promise) {
2964
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3021
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
2965
3022
  } else {
2966
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3023
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
2967
3024
  }
2968
3025
  }
2969
3026
  if (unrecognized.length) {
@@ -3029,12 +3086,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3029
3086
  const shape = value.shape;
3030
3087
  for (const key of value.keys) {
3031
3088
  const el = shape[key];
3089
+ const isOptionalIn = el._zod.optin === "optional";
3032
3090
  const isOptionalOut = el._zod.optout === "optional";
3033
3091
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3034
3092
  if (r instanceof Promise) {
3035
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3093
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3036
3094
  } else {
3037
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3095
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3038
3096
  }
3039
3097
  }
3040
3098
  if (!catchall) {
@@ -3065,9 +3123,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3065
3123
  const id2 = ids[key];
3066
3124
  const k = esc(key);
3067
3125
  const schema = shape[key];
3126
+ const isOptionalIn = schema?._zod?.optin === "optional";
3068
3127
  const isOptionalOut = schema?._zod?.optout === "optional";
3069
3128
  doc.write(`const ${id2} = ${parseStr(key)};`);
3070
- if (isOptionalOut) {
3129
+ if (isOptionalIn && isOptionalOut) {
3071
3130
  doc.write(`
3072
3131
  if (${id2}.issues.length) {
3073
3132
  if (${k} in input) {
@@ -3086,6 +3145,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3086
3145
  newResult[${k}] = ${id2}.value;
3087
3146
  }
3088
3147
 
3148
+ `);
3149
+ } else if (!isOptionalIn) {
3150
+ doc.write(`
3151
+ const ${id2}_present = ${k} in input;
3152
+ if (${id2}.issues.length) {
3153
+ payload.issues = payload.issues.concat(${id2}.issues.map(iss => ({
3154
+ ...iss,
3155
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
3156
+ })));
3157
+ }
3158
+ if (!${id2}_present && !${id2}.issues.length) {
3159
+ payload.issues.push({
3160
+ code: "invalid_type",
3161
+ expected: "nonoptional",
3162
+ input: undefined,
3163
+ path: [${k}]
3164
+ });
3165
+ }
3166
+
3167
+ if (${id2}_present) {
3168
+ if (${id2}.value === undefined) {
3169
+ newResult[${k}] = undefined;
3170
+ } else {
3171
+ newResult[${k}] = ${id2}.value;
3172
+ }
3173
+ }
3174
+
3089
3175
  `);
3090
3176
  } else {
3091
3177
  doc.write(`
@@ -3179,10 +3265,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3179
3265
  }
3180
3266
  return void 0;
3181
3267
  });
3182
- const single = def.options.length === 1;
3183
- const first2 = def.options[0]._zod.run;
3268
+ const first2 = def.options.length === 1 ? def.options[0]._zod.run : null;
3184
3269
  inst._zod.parse = (payload, ctx) => {
3185
- if (single) {
3270
+ if (first2) {
3186
3271
  return first2(payload, ctx);
3187
3272
  }
3188
3273
  let async2 = false;
@@ -3235,10 +3320,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
3235
3320
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
3236
3321
  $ZodUnion.init(inst, def);
3237
3322
  def.inclusive = false;
3238
- const single = def.options.length === 1;
3239
- const first2 = def.options[0]._zod.run;
3323
+ const first2 = def.options.length === 1 ? def.options[0]._zod.run : null;
3240
3324
  inst._zod.parse = (payload, ctx) => {
3241
- if (single) {
3325
+ if (first2) {
3242
3326
  return first2(payload, ctx);
3243
3327
  }
3244
3328
  let async2 = false;
@@ -3313,7 +3397,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3313
3397
  if (opt) {
3314
3398
  return opt._zod.run(payload, ctx);
3315
3399
  }
3316
- if (def.unionFallback) {
3400
+ if (def.unionFallback || ctx.direction === "backward") {
3317
3401
  return _super(payload, ctx);
3318
3402
  }
3319
3403
  payload.issues.push({
@@ -3321,6 +3405,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3321
3405
  errors: [],
3322
3406
  note: "No matching discriminator",
3323
3407
  discriminator: def.discriminator,
3408
+ options: Array.from(disc.value.keys()),
3324
3409
  input,
3325
3410
  path: [def.discriminator],
3326
3411
  inst
@@ -3442,64 +3527,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
3442
3527
  }
3443
3528
  payload.value = [];
3444
3529
  const proms = [];
3445
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
3446
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
3530
+ const optinStart = getTupleOptStart(items, "optin");
3531
+ const optoutStart = getTupleOptStart(items, "optout");
3447
3532
  if (!def.rest) {
3448
- const tooBig = input.length > items.length;
3449
- const tooSmall = input.length < optStart - 1;
3450
- if (tooBig || tooSmall) {
3533
+ if (input.length < optinStart) {
3451
3534
  payload.issues.push({
3452
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
3535
+ code: "too_small",
3536
+ minimum: optinStart,
3537
+ inclusive: true,
3453
3538
  input,
3454
3539
  inst,
3455
3540
  origin: "array"
3456
3541
  });
3457
3542
  return payload;
3458
3543
  }
3459
- }
3460
- let i = -1;
3461
- for (const item of items) {
3462
- i++;
3463
- if (i >= input.length) {
3464
- if (i >= optStart)
3465
- continue;
3544
+ if (input.length > items.length) {
3545
+ payload.issues.push({
3546
+ code: "too_big",
3547
+ maximum: items.length,
3548
+ inclusive: true,
3549
+ input,
3550
+ inst,
3551
+ origin: "array"
3552
+ });
3466
3553
  }
3467
- const result = item._zod.run({
3468
- value: input[i],
3469
- issues: []
3470
- }, ctx);
3471
- if (result instanceof Promise) {
3472
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3554
+ }
3555
+ const itemResults = new Array(items.length);
3556
+ for (let i = 0; i < items.length; i++) {
3557
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
3558
+ if (r instanceof Promise) {
3559
+ proms.push(r.then((rr) => {
3560
+ itemResults[i] = rr;
3561
+ }));
3473
3562
  } else {
3474
- handleTupleResult(result, payload, i);
3563
+ itemResults[i] = r;
3475
3564
  }
3476
3565
  }
3477
3566
  if (def.rest) {
3567
+ let i = items.length - 1;
3478
3568
  const rest = input.slice(items.length);
3479
3569
  for (const el of rest) {
3480
3570
  i++;
3481
- const result = def.rest._zod.run({
3482
- value: el,
3483
- issues: []
3484
- }, ctx);
3571
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
3485
3572
  if (result instanceof Promise) {
3486
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
3573
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
3487
3574
  } else {
3488
3575
  handleTupleResult(result, payload, i);
3489
3576
  }
3490
3577
  }
3491
3578
  }
3492
- if (proms.length)
3493
- return Promise.all(proms).then(() => payload);
3494
- return payload;
3579
+ if (proms.length) {
3580
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
3581
+ }
3582
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
3495
3583
  };
3496
3584
  });
3585
+ function getTupleOptStart(items, key) {
3586
+ for (let i = items.length - 1; i >= 0; i--) {
3587
+ if (items[i]._zod[key] !== "optional")
3588
+ return i + 1;
3589
+ }
3590
+ return 0;
3591
+ }
3497
3592
  function handleTupleResult(result, final, index) {
3498
3593
  if (result.issues.length) {
3499
3594
  final.issues.push(...prefixIssues(index, result.issues));
3500
3595
  }
3501
3596
  final.value[index] = result.value;
3502
3597
  }
3598
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
3599
+ for (let i = 0; i < items.length; i++) {
3600
+ const r = itemResults[i];
3601
+ const isPresent = i < input.length;
3602
+ if (r.issues.length) {
3603
+ if (!isPresent && i >= optoutStart) {
3604
+ final.value.length = i;
3605
+ break;
3606
+ }
3607
+ final.issues.push(...prefixIssues(i, r.issues));
3608
+ }
3609
+ final.value[i] = r.value;
3610
+ }
3611
+ for (let i = final.value.length - 1; i >= input.length; i--) {
3612
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
3613
+ final.value.length = i;
3614
+ } else {
3615
+ break;
3616
+ }
3617
+ }
3618
+ return final;
3619
+ }
3503
3620
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3504
3621
  $ZodType.init(inst, def);
3505
3622
  inst._zod.parse = (payload, ctx) => {
@@ -3521,19 +3638,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3521
3638
  for (const key of values2) {
3522
3639
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
3523
3640
  recordKeys.add(typeof key === "number" ? key.toString() : key);
3641
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3642
+ if (keyResult instanceof Promise) {
3643
+ throw new Error("Async schemas not supported in object keys currently");
3644
+ }
3645
+ if (keyResult.issues.length) {
3646
+ payload.issues.push({
3647
+ code: "invalid_key",
3648
+ origin: "record",
3649
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3650
+ input: key,
3651
+ path: [key],
3652
+ inst
3653
+ });
3654
+ continue;
3655
+ }
3656
+ const outKey = keyResult.value;
3524
3657
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
3525
3658
  if (result instanceof Promise) {
3526
3659
  proms.push(result.then((result2) => {
3527
3660
  if (result2.issues.length) {
3528
3661
  payload.issues.push(...prefixIssues(key, result2.issues));
3529
3662
  }
3530
- payload.value[key] = result2.value;
3663
+ payload.value[outKey] = result2.value;
3531
3664
  }));
3532
3665
  } else {
3533
3666
  if (result.issues.length) {
3534
3667
  payload.issues.push(...prefixIssues(key, result.issues));
3535
3668
  }
3536
- payload.value[key] = result.value;
3669
+ payload.value[outKey] = result.value;
3537
3670
  }
3538
3671
  }
3539
3672
  }
@@ -3557,6 +3690,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3557
3690
  for (const key of Reflect.ownKeys(input)) {
3558
3691
  if (key === "__proto__")
3559
3692
  continue;
3693
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
3694
+ continue;
3560
3695
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
3561
3696
  if (keyResult instanceof Promise) {
3562
3697
  throw new Error("Async schemas not supported in object keys currently");
@@ -3761,6 +3896,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
3761
3896
  });
3762
3897
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
3763
3898
  $ZodType.init(inst, def);
3899
+ inst._zod.optin = "optional";
3764
3900
  inst._zod.parse = (payload, ctx) => {
3765
3901
  if (ctx.direction === "backward") {
3766
3902
  throw new $ZodEncodeError(inst.constructor.name);
@@ -3770,6 +3906,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
3770
3906
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
3771
3907
  return output.then((output2) => {
3772
3908
  payload.value = output2;
3909
+ payload.fallback = true;
3773
3910
  return payload;
3774
3911
  });
3775
3912
  }
@@ -3777,11 +3914,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
3777
3914
  throw new $ZodAsyncError();
3778
3915
  }
3779
3916
  payload.value = _out;
3917
+ payload.fallback = true;
3780
3918
  return payload;
3781
3919
  };
3782
3920
  });
3783
3921
  function handleOptionalResult(result, input) {
3784
- if (result.issues.length && input === void 0) {
3922
+ if (input === void 0 && (result.issues.length || result.fallback)) {
3785
3923
  return { issues: [], value: void 0 };
3786
3924
  }
3787
3925
  return result;
@@ -3799,10 +3937,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
3799
3937
  });
3800
3938
  inst._zod.parse = (payload, ctx) => {
3801
3939
  if (def.innerType._zod.optin === "optional") {
3940
+ const input = payload.value;
3802
3941
  const result = def.innerType._zod.run(payload, ctx);
3803
3942
  if (result instanceof Promise)
3804
- return result.then((r) => handleOptionalResult(r, payload.value));
3805
- return handleOptionalResult(result, payload.value);
3943
+ return result.then((r) => handleOptionalResult(r, input));
3944
+ return handleOptionalResult(result, input);
3806
3945
  }
3807
3946
  if (payload.value === void 0) {
3808
3947
  return payload;
@@ -3918,7 +4057,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
3918
4057
  });
3919
4058
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
3920
4059
  $ZodType.init(inst, def);
3921
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4060
+ inst._zod.optin = "optional";
3922
4061
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
3923
4062
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
3924
4063
  inst._zod.parse = (payload, ctx) => {
@@ -3938,6 +4077,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
3938
4077
  input: payload.value
3939
4078
  });
3940
4079
  payload.issues = [];
4080
+ payload.fallback = true;
3941
4081
  }
3942
4082
  return payload;
3943
4083
  });
@@ -3952,6 +4092,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
3952
4092
  input: payload.value
3953
4093
  });
3954
4094
  payload.issues = [];
4095
+ payload.fallback = true;
3955
4096
  }
3956
4097
  return payload;
3957
4098
  };
@@ -3997,7 +4138,7 @@ function handlePipeResult(left, next, ctx) {
3997
4138
  left.aborted = true;
3998
4139
  return left;
3999
4140
  }
4000
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
4141
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
4001
4142
  }
4002
4143
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
4003
4144
  $ZodType.init(inst, def);
@@ -4049,6 +4190,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
4049
4190
  }
4050
4191
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
4051
4192
  }
4193
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
4194
+ $ZodPipe.init(inst, def);
4195
+ });
4052
4196
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
4053
4197
  $ZodType.init(inst, def);
4054
4198
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -4200,7 +4344,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
4200
4344
  });
4201
4345
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
4202
4346
  $ZodType.init(inst, def);
4203
- defineLazy(inst._zod, "innerType", () => def.getter());
4347
+ defineLazy(inst._zod, "innerType", () => {
4348
+ const d = def;
4349
+ if (!d._cachedInner)
4350
+ d._cachedInner = def.getter();
4351
+ return d._cachedInner;
4352
+ });
4204
4353
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
4205
4354
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
4206
4355
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -4255,6 +4404,7 @@ __export(locales_exports, {
4255
4404
  cs: () => cs_default,
4256
4405
  da: () => da_default,
4257
4406
  de: () => de_default,
4407
+ el: () => el_default,
4258
4408
  en: () => en_default,
4259
4409
  eo: () => eo_default,
4260
4410
  es: () => es_default,
@@ -4263,6 +4413,7 @@ __export(locales_exports, {
4263
4413
  fr: () => fr_default,
4264
4414
  frCA: () => fr_CA_default,
4265
4415
  he: () => he_default,
4416
+ hr: () => hr_default,
4266
4417
  hu: () => hu_default,
4267
4418
  hy: () => hy_default,
4268
4419
  id: () => id_default,
@@ -4282,6 +4433,7 @@ __export(locales_exports, {
4282
4433
  pl: () => pl_default,
4283
4434
  ps: () => ps_default,
4284
4435
  pt: () => pt_default,
4436
+ ro: () => ro_default,
4285
4437
  ru: () => ru_default,
4286
4438
  sl: () => sl_default,
4287
4439
  sv: () => sv_default,
@@ -5235,8 +5387,118 @@ function de_default() {
5235
5387
  };
5236
5388
  }
5237
5389
 
5238
- // ../../node_modules/zod/v4/locales/en.js
5390
+ // ../../node_modules/zod/v4/locales/el.js
5239
5391
  var error9 = () => {
5392
+ const Sizable = {
5393
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5394
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5395
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5396
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
5397
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
5398
+ };
5399
+ function getSizing(origin) {
5400
+ return Sizable[origin] ?? null;
5401
+ }
5402
+ const FormatDictionary = {
5403
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
5404
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
5405
+ url: "URL",
5406
+ emoji: "emoji",
5407
+ uuid: "UUID",
5408
+ uuidv4: "UUIDv4",
5409
+ uuidv6: "UUIDv6",
5410
+ nanoid: "nanoid",
5411
+ guid: "GUID",
5412
+ cuid: "cuid",
5413
+ cuid2: "cuid2",
5414
+ ulid: "ULID",
5415
+ xid: "XID",
5416
+ ksuid: "KSUID",
5417
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
5418
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
5419
+ time: "ISO \u03CE\u03C1\u03B1",
5420
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
5421
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
5422
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
5423
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
5424
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
5425
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
5426
+ base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
5427
+ base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
5428
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
5429
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
5430
+ jwt: "JWT",
5431
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
5432
+ };
5433
+ const TypeDictionary = {
5434
+ nan: "NaN"
5435
+ };
5436
+ return (issue2) => {
5437
+ switch (issue2.code) {
5438
+ case "invalid_type": {
5439
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5440
+ const receivedType = parsedType(issue2.input);
5441
+ const received = TypeDictionary[receivedType] ?? receivedType;
5442
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
5443
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
5444
+ }
5445
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
5446
+ }
5447
+ case "invalid_value":
5448
+ if (issue2.values.length === 1)
5449
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
5450
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
5451
+ case "too_big": {
5452
+ const adj = issue2.inclusive ? "<=" : "<";
5453
+ const sizing = getSizing(issue2.origin);
5454
+ if (sizing)
5455
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
5456
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
5457
+ }
5458
+ case "too_small": {
5459
+ const adj = issue2.inclusive ? ">=" : ">";
5460
+ const sizing = getSizing(issue2.origin);
5461
+ if (sizing) {
5462
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5463
+ }
5464
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
5465
+ }
5466
+ case "invalid_format": {
5467
+ const _issue = issue2;
5468
+ if (_issue.format === "starts_with") {
5469
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
5470
+ }
5471
+ if (_issue.format === "ends_with")
5472
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
5473
+ if (_issue.format === "includes")
5474
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
5475
+ if (_issue.format === "regex")
5476
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
5477
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
5478
+ }
5479
+ case "not_multiple_of":
5480
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
5481
+ case "unrecognized_keys":
5482
+ return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
5483
+ case "invalid_key":
5484
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
5485
+ case "invalid_union":
5486
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
5487
+ case "invalid_element":
5488
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
5489
+ default:
5490
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
5491
+ }
5492
+ };
5493
+ };
5494
+ function el_default() {
5495
+ return {
5496
+ localeError: error9()
5497
+ };
5498
+ }
5499
+
5500
+ // ../../node_modules/zod/v4/locales/en.js
5501
+ var error10 = () => {
5240
5502
  const Sizable = {
5241
5503
  string: { unit: "characters", verb: "to have" },
5242
5504
  file: { unit: "bytes", verb: "to have" },
@@ -5330,6 +5592,10 @@ var error9 = () => {
5330
5592
  case "invalid_key":
5331
5593
  return `Invalid key in ${issue2.origin}`;
5332
5594
  case "invalid_union":
5595
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
5596
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
5597
+ return `Invalid discriminator value. Expected ${opts}`;
5598
+ }
5333
5599
  return "Invalid input";
5334
5600
  case "invalid_element":
5335
5601
  return `Invalid value in ${issue2.origin}`;
@@ -5340,12 +5606,12 @@ var error9 = () => {
5340
5606
  };
5341
5607
  function en_default() {
5342
5608
  return {
5343
- localeError: error9()
5609
+ localeError: error10()
5344
5610
  };
5345
5611
  }
5346
5612
 
5347
5613
  // ../../node_modules/zod/v4/locales/eo.js
5348
- var error10 = () => {
5614
+ var error11 = () => {
5349
5615
  const Sizable = {
5350
5616
  string: { unit: "karaktrojn", verb: "havi" },
5351
5617
  file: { unit: "bajtojn", verb: "havi" },
@@ -5450,12 +5716,12 @@ var error10 = () => {
5450
5716
  };
5451
5717
  function eo_default() {
5452
5718
  return {
5453
- localeError: error10()
5719
+ localeError: error11()
5454
5720
  };
5455
5721
  }
5456
5722
 
5457
5723
  // ../../node_modules/zod/v4/locales/es.js
5458
- var error11 = () => {
5724
+ var error12 = () => {
5459
5725
  const Sizable = {
5460
5726
  string: { unit: "caracteres", verb: "tener" },
5461
5727
  file: { unit: "bytes", verb: "tener" },
@@ -5583,12 +5849,12 @@ var error11 = () => {
5583
5849
  };
5584
5850
  function es_default() {
5585
5851
  return {
5586
- localeError: error11()
5852
+ localeError: error12()
5587
5853
  };
5588
5854
  }
5589
5855
 
5590
5856
  // ../../node_modules/zod/v4/locales/fa.js
5591
- var error12 = () => {
5857
+ var error13 = () => {
5592
5858
  const Sizable = {
5593
5859
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
5594
5860
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -5698,12 +5964,12 @@ var error12 = () => {
5698
5964
  };
5699
5965
  function fa_default() {
5700
5966
  return {
5701
- localeError: error12()
5967
+ localeError: error13()
5702
5968
  };
5703
5969
  }
5704
5970
 
5705
5971
  // ../../node_modules/zod/v4/locales/fi.js
5706
- var error13 = () => {
5972
+ var error14 = () => {
5707
5973
  const Sizable = {
5708
5974
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
5709
5975
  file: { unit: "tavua", subject: "tiedoston" },
@@ -5811,12 +6077,12 @@ var error13 = () => {
5811
6077
  };
5812
6078
  function fi_default() {
5813
6079
  return {
5814
- localeError: error13()
6080
+ localeError: error14()
5815
6081
  };
5816
6082
  }
5817
6083
 
5818
6084
  // ../../node_modules/zod/v4/locales/fr.js
5819
- var error14 = () => {
6085
+ var error15 = () => {
5820
6086
  const Sizable = {
5821
6087
  string: { unit: "caract\xE8res", verb: "avoir" },
5822
6088
  file: { unit: "octets", verb: "avoir" },
@@ -5857,9 +6123,27 @@ var error14 = () => {
5857
6123
  template_literal: "entr\xE9e"
5858
6124
  };
5859
6125
  const TypeDictionary = {
5860
- nan: "NaN",
6126
+ string: "cha\xEEne",
5861
6127
  number: "nombre",
5862
- array: "tableau"
6128
+ int: "entier",
6129
+ boolean: "bool\xE9en",
6130
+ bigint: "grand entier",
6131
+ symbol: "symbole",
6132
+ undefined: "ind\xE9fini",
6133
+ null: "null",
6134
+ never: "jamais",
6135
+ void: "vide",
6136
+ date: "date",
6137
+ array: "tableau",
6138
+ object: "objet",
6139
+ tuple: "tuple",
6140
+ record: "enregistrement",
6141
+ map: "carte",
6142
+ set: "ensemble",
6143
+ file: "fichier",
6144
+ nonoptional: "non-optionnel",
6145
+ nan: "NaN",
6146
+ function: "fonction"
5863
6147
  };
5864
6148
  return (issue2) => {
5865
6149
  switch (issue2.code) {
@@ -5880,16 +6164,15 @@ var error14 = () => {
5880
6164
  const adj = issue2.inclusive ? "<=" : "<";
5881
6165
  const sizing = getSizing(issue2.origin);
5882
6166
  if (sizing)
5883
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
5884
- return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6167
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6168
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
5885
6169
  }
5886
6170
  case "too_small": {
5887
6171
  const adj = issue2.inclusive ? ">=" : ">";
5888
6172
  const sizing = getSizing(issue2.origin);
5889
- if (sizing) {
5890
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5891
- }
5892
- return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6173
+ if (sizing)
6174
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6175
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
5893
6176
  }
5894
6177
  case "invalid_format": {
5895
6178
  const _issue = issue2;
@@ -5920,12 +6203,12 @@ var error14 = () => {
5920
6203
  };
5921
6204
  function fr_default() {
5922
6205
  return {
5923
- localeError: error14()
6206
+ localeError: error15()
5924
6207
  };
5925
6208
  }
5926
6209
 
5927
6210
  // ../../node_modules/zod/v4/locales/fr-CA.js
5928
- var error15 = () => {
6211
+ var error16 = () => {
5929
6212
  const Sizable = {
5930
6213
  string: { unit: "caract\xE8res", verb: "avoir" },
5931
6214
  file: { unit: "octets", verb: "avoir" },
@@ -6028,12 +6311,12 @@ var error15 = () => {
6028
6311
  };
6029
6312
  function fr_CA_default() {
6030
6313
  return {
6031
- localeError: error15()
6314
+ localeError: error16()
6032
6315
  };
6033
6316
  }
6034
6317
 
6035
6318
  // ../../node_modules/zod/v4/locales/he.js
6036
- var error16 = () => {
6319
+ var error17 = () => {
6037
6320
  const TypeNames = {
6038
6321
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
6039
6322
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -6223,24 +6506,24 @@ var error16 = () => {
6223
6506
  };
6224
6507
  function he_default() {
6225
6508
  return {
6226
- localeError: error16()
6509
+ localeError: error17()
6227
6510
  };
6228
6511
  }
6229
6512
 
6230
- // ../../node_modules/zod/v4/locales/hu.js
6231
- var error17 = () => {
6513
+ // ../../node_modules/zod/v4/locales/hr.js
6514
+ var error18 = () => {
6232
6515
  const Sizable = {
6233
- string: { unit: "karakter", verb: "legyen" },
6234
- file: { unit: "byte", verb: "legyen" },
6235
- array: { unit: "elem", verb: "legyen" },
6236
- set: { unit: "elem", verb: "legyen" }
6516
+ string: { unit: "znakova", verb: "imati" },
6517
+ file: { unit: "bajtova", verb: "imati" },
6518
+ array: { unit: "stavki", verb: "imati" },
6519
+ set: { unit: "stavki", verb: "imati" }
6237
6520
  };
6238
6521
  function getSizing(origin) {
6239
6522
  return Sizable[origin] ?? null;
6240
6523
  }
6241
6524
  const FormatDictionary = {
6242
- regex: "bemenet",
6243
- email: "email c\xEDm",
6525
+ regex: "unos",
6526
+ email: "email adresa",
6244
6527
  url: "URL",
6245
6528
  emoji: "emoji",
6246
6529
  uuid: "UUID",
@@ -6253,25 +6536,37 @@ var error17 = () => {
6253
6536
  ulid: "ULID",
6254
6537
  xid: "XID",
6255
6538
  ksuid: "KSUID",
6256
- datetime: "ISO id\u0151b\xE9lyeg",
6257
- date: "ISO d\xE1tum",
6258
- time: "ISO id\u0151",
6259
- duration: "ISO id\u0151intervallum",
6260
- ipv4: "IPv4 c\xEDm",
6261
- ipv6: "IPv6 c\xEDm",
6262
- cidrv4: "IPv4 tartom\xE1ny",
6263
- cidrv6: "IPv6 tartom\xE1ny",
6264
- base64: "base64-k\xF3dolt string",
6265
- base64url: "base64url-k\xF3dolt string",
6266
- json_string: "JSON string",
6267
- e164: "E.164 sz\xE1m",
6539
+ datetime: "ISO datum i vrijeme",
6540
+ date: "ISO datum",
6541
+ time: "ISO vrijeme",
6542
+ duration: "ISO trajanje",
6543
+ ipv4: "IPv4 adresa",
6544
+ ipv6: "IPv6 adresa",
6545
+ cidrv4: "IPv4 raspon",
6546
+ cidrv6: "IPv6 raspon",
6547
+ base64: "base64 kodirani tekst",
6548
+ base64url: "base64url kodirani tekst",
6549
+ json_string: "JSON tekst",
6550
+ e164: "E.164 broj",
6268
6551
  jwt: "JWT",
6269
- template_literal: "bemenet"
6552
+ template_literal: "unos"
6270
6553
  };
6271
6554
  const TypeDictionary = {
6272
6555
  nan: "NaN",
6273
- number: "sz\xE1m",
6274
- array: "t\xF6mb"
6556
+ string: "tekst",
6557
+ number: "broj",
6558
+ boolean: "boolean",
6559
+ array: "niz",
6560
+ object: "objekt",
6561
+ set: "skup",
6562
+ file: "datoteka",
6563
+ date: "datum",
6564
+ bigint: "bigint",
6565
+ symbol: "simbol",
6566
+ undefined: "undefined",
6567
+ null: "null",
6568
+ function: "funkcija",
6569
+ map: "mapa"
6275
6570
  };
6276
6571
  return (issue2) => {
6277
6572
  switch (issue2.code) {
@@ -6280,20 +6575,131 @@ var error17 = () => {
6280
6575
  const receivedType = parsedType(issue2.input);
6281
6576
  const received = TypeDictionary[receivedType] ?? receivedType;
6282
6577
  if (/^[A-Z]/.test(issue2.expected)) {
6283
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6578
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
6284
6579
  }
6285
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6580
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
6286
6581
  }
6287
6582
  case "invalid_value":
6288
6583
  if (issue2.values.length === 1)
6289
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6290
- return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
6584
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
6585
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
6291
6586
  case "too_big": {
6292
6587
  const adj = issue2.inclusive ? "<=" : "<";
6293
6588
  const sizing = getSizing(issue2.origin);
6589
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6294
6590
  if (sizing)
6295
- return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6296
- return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
6591
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
6592
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
6593
+ }
6594
+ case "too_small": {
6595
+ const adj = issue2.inclusive ? ">=" : ">";
6596
+ const sizing = getSizing(issue2.origin);
6597
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6598
+ if (sizing) {
6599
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6600
+ }
6601
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
6602
+ }
6603
+ case "invalid_format": {
6604
+ const _issue = issue2;
6605
+ if (_issue.format === "starts_with")
6606
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
6607
+ if (_issue.format === "ends_with")
6608
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
6609
+ if (_issue.format === "includes")
6610
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
6611
+ if (_issue.format === "regex")
6612
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
6613
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
6614
+ }
6615
+ case "not_multiple_of":
6616
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
6617
+ case "unrecognized_keys":
6618
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
6619
+ case "invalid_key":
6620
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6621
+ case "invalid_union":
6622
+ return "Neispravan unos";
6623
+ case "invalid_element":
6624
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
6625
+ default:
6626
+ return `Neispravan unos`;
6627
+ }
6628
+ };
6629
+ };
6630
+ function hr_default() {
6631
+ return {
6632
+ localeError: error18()
6633
+ };
6634
+ }
6635
+
6636
+ // ../../node_modules/zod/v4/locales/hu.js
6637
+ var error19 = () => {
6638
+ const Sizable = {
6639
+ string: { unit: "karakter", verb: "legyen" },
6640
+ file: { unit: "byte", verb: "legyen" },
6641
+ array: { unit: "elem", verb: "legyen" },
6642
+ set: { unit: "elem", verb: "legyen" }
6643
+ };
6644
+ function getSizing(origin) {
6645
+ return Sizable[origin] ?? null;
6646
+ }
6647
+ const FormatDictionary = {
6648
+ regex: "bemenet",
6649
+ email: "email c\xEDm",
6650
+ url: "URL",
6651
+ emoji: "emoji",
6652
+ uuid: "UUID",
6653
+ uuidv4: "UUIDv4",
6654
+ uuidv6: "UUIDv6",
6655
+ nanoid: "nanoid",
6656
+ guid: "GUID",
6657
+ cuid: "cuid",
6658
+ cuid2: "cuid2",
6659
+ ulid: "ULID",
6660
+ xid: "XID",
6661
+ ksuid: "KSUID",
6662
+ datetime: "ISO id\u0151b\xE9lyeg",
6663
+ date: "ISO d\xE1tum",
6664
+ time: "ISO id\u0151",
6665
+ duration: "ISO id\u0151intervallum",
6666
+ ipv4: "IPv4 c\xEDm",
6667
+ ipv6: "IPv6 c\xEDm",
6668
+ cidrv4: "IPv4 tartom\xE1ny",
6669
+ cidrv6: "IPv6 tartom\xE1ny",
6670
+ base64: "base64-k\xF3dolt string",
6671
+ base64url: "base64url-k\xF3dolt string",
6672
+ json_string: "JSON string",
6673
+ e164: "E.164 sz\xE1m",
6674
+ jwt: "JWT",
6675
+ template_literal: "bemenet"
6676
+ };
6677
+ const TypeDictionary = {
6678
+ nan: "NaN",
6679
+ number: "sz\xE1m",
6680
+ array: "t\xF6mb"
6681
+ };
6682
+ return (issue2) => {
6683
+ switch (issue2.code) {
6684
+ case "invalid_type": {
6685
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6686
+ const receivedType = parsedType(issue2.input);
6687
+ const received = TypeDictionary[receivedType] ?? receivedType;
6688
+ if (/^[A-Z]/.test(issue2.expected)) {
6689
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
6690
+ }
6691
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
6692
+ }
6693
+ case "invalid_value":
6694
+ if (issue2.values.length === 1)
6695
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
6696
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
6697
+ case "too_big": {
6698
+ const adj = issue2.inclusive ? "<=" : "<";
6699
+ const sizing = getSizing(issue2.origin);
6700
+ if (sizing)
6701
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
6702
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
6297
6703
  }
6298
6704
  case "too_small": {
6299
6705
  const adj = issue2.inclusive ? ">=" : ">";
@@ -6332,7 +6738,7 @@ var error17 = () => {
6332
6738
  };
6333
6739
  function hu_default() {
6334
6740
  return {
6335
- localeError: error17()
6741
+ localeError: error19()
6336
6742
  };
6337
6743
  }
6338
6744
 
@@ -6347,7 +6753,7 @@ function withDefiniteArticle(word) {
6347
6753
  const lastChar = word[word.length - 1];
6348
6754
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
6349
6755
  }
6350
- var error18 = () => {
6756
+ var error20 = () => {
6351
6757
  const Sizable = {
6352
6758
  string: {
6353
6759
  unit: {
@@ -6480,12 +6886,12 @@ var error18 = () => {
6480
6886
  };
6481
6887
  function hy_default() {
6482
6888
  return {
6483
- localeError: error18()
6889
+ localeError: error20()
6484
6890
  };
6485
6891
  }
6486
6892
 
6487
6893
  // ../../node_modules/zod/v4/locales/id.js
6488
- var error19 = () => {
6894
+ var error21 = () => {
6489
6895
  const Sizable = {
6490
6896
  string: { unit: "karakter", verb: "memiliki" },
6491
6897
  file: { unit: "byte", verb: "memiliki" },
@@ -6587,12 +6993,12 @@ var error19 = () => {
6587
6993
  };
6588
6994
  function id_default() {
6589
6995
  return {
6590
- localeError: error19()
6996
+ localeError: error21()
6591
6997
  };
6592
6998
  }
6593
6999
 
6594
7000
  // ../../node_modules/zod/v4/locales/is.js
6595
- var error20 = () => {
7001
+ var error22 = () => {
6596
7002
  const Sizable = {
6597
7003
  string: { unit: "stafi", verb: "a\xF0 hafa" },
6598
7004
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -6697,12 +7103,12 @@ var error20 = () => {
6697
7103
  };
6698
7104
  function is_default() {
6699
7105
  return {
6700
- localeError: error20()
7106
+ localeError: error22()
6701
7107
  };
6702
7108
  }
6703
7109
 
6704
7110
  // ../../node_modules/zod/v4/locales/it.js
6705
- var error21 = () => {
7111
+ var error23 = () => {
6706
7112
  const Sizable = {
6707
7113
  string: { unit: "caratteri", verb: "avere" },
6708
7114
  file: { unit: "byte", verb: "avere" },
@@ -6787,7 +7193,7 @@ var error21 = () => {
6787
7193
  return `Stringa non valida: deve includere "${_issue.includes}"`;
6788
7194
  if (_issue.format === "regex")
6789
7195
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
6790
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
7196
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
6791
7197
  }
6792
7198
  case "not_multiple_of":
6793
7199
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -6806,12 +7212,12 @@ var error21 = () => {
6806
7212
  };
6807
7213
  function it_default() {
6808
7214
  return {
6809
- localeError: error21()
7215
+ localeError: error23()
6810
7216
  };
6811
7217
  }
6812
7218
 
6813
7219
  // ../../node_modules/zod/v4/locales/ja.js
6814
- var error22 = () => {
7220
+ var error24 = () => {
6815
7221
  const Sizable = {
6816
7222
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
6817
7223
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -6914,12 +7320,12 @@ var error22 = () => {
6914
7320
  };
6915
7321
  function ja_default() {
6916
7322
  return {
6917
- localeError: error22()
7323
+ localeError: error24()
6918
7324
  };
6919
7325
  }
6920
7326
 
6921
7327
  // ../../node_modules/zod/v4/locales/ka.js
6922
- var error23 = () => {
7328
+ var error25 = () => {
6923
7329
  const Sizable = {
6924
7330
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
6925
7331
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -6952,9 +7358,9 @@ var error23 = () => {
6952
7358
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
6953
7359
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
6954
7360
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
6955
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
6956
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
6957
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7361
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7362
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
7363
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
6958
7364
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
6959
7365
  jwt: "JWT",
6960
7366
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -6962,7 +7368,7 @@ var error23 = () => {
6962
7368
  const TypeDictionary = {
6963
7369
  nan: "NaN",
6964
7370
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
6965
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7371
+ string: "\u10D5\u10D4\u10DA\u10D8",
6966
7372
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
6967
7373
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
6968
7374
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -7000,14 +7406,14 @@ var error23 = () => {
7000
7406
  case "invalid_format": {
7001
7407
  const _issue = issue2;
7002
7408
  if (_issue.format === "starts_with") {
7003
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
7409
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
7004
7410
  }
7005
7411
  if (_issue.format === "ends_with")
7006
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
7412
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
7007
7413
  if (_issue.format === "includes")
7008
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
7414
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
7009
7415
  if (_issue.format === "regex")
7010
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
7416
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
7011
7417
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7012
7418
  }
7013
7419
  case "not_multiple_of":
@@ -7027,12 +7433,12 @@ var error23 = () => {
7027
7433
  };
7028
7434
  function ka_default() {
7029
7435
  return {
7030
- localeError: error23()
7436
+ localeError: error25()
7031
7437
  };
7032
7438
  }
7033
7439
 
7034
7440
  // ../../node_modules/zod/v4/locales/km.js
7035
- var error24 = () => {
7441
+ var error26 = () => {
7036
7442
  const Sizable = {
7037
7443
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7038
7444
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7138,7 +7544,7 @@ var error24 = () => {
7138
7544
  };
7139
7545
  function km_default() {
7140
7546
  return {
7141
- localeError: error24()
7547
+ localeError: error26()
7142
7548
  };
7143
7549
  }
7144
7550
 
@@ -7148,7 +7554,7 @@ function kh_default() {
7148
7554
  }
7149
7555
 
7150
7556
  // ../../node_modules/zod/v4/locales/ko.js
7151
- var error25 = () => {
7557
+ var error27 = () => {
7152
7558
  const Sizable = {
7153
7559
  string: { unit: "\uBB38\uC790", verb: "to have" },
7154
7560
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7255,7 +7661,7 @@ var error25 = () => {
7255
7661
  };
7256
7662
  function ko_default() {
7257
7663
  return {
7258
- localeError: error25()
7664
+ localeError: error27()
7259
7665
  };
7260
7666
  }
7261
7667
 
@@ -7273,7 +7679,7 @@ function getUnitTypeFromNumber(number4) {
7273
7679
  return "one";
7274
7680
  return "few";
7275
7681
  }
7276
- var error26 = () => {
7682
+ var error28 = () => {
7277
7683
  const Sizable = {
7278
7684
  string: {
7279
7685
  unit: {
@@ -7459,12 +7865,12 @@ var error26 = () => {
7459
7865
  };
7460
7866
  function lt_default() {
7461
7867
  return {
7462
- localeError: error26()
7868
+ localeError: error28()
7463
7869
  };
7464
7870
  }
7465
7871
 
7466
7872
  // ../../node_modules/zod/v4/locales/mk.js
7467
- var error27 = () => {
7873
+ var error29 = () => {
7468
7874
  const Sizable = {
7469
7875
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
7470
7876
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7569,12 +7975,12 @@ var error27 = () => {
7569
7975
  };
7570
7976
  function mk_default() {
7571
7977
  return {
7572
- localeError: error27()
7978
+ localeError: error29()
7573
7979
  };
7574
7980
  }
7575
7981
 
7576
7982
  // ../../node_modules/zod/v4/locales/ms.js
7577
- var error28 = () => {
7983
+ var error30 = () => {
7578
7984
  const Sizable = {
7579
7985
  string: { unit: "aksara", verb: "mempunyai" },
7580
7986
  file: { unit: "bait", verb: "mempunyai" },
@@ -7677,12 +8083,12 @@ var error28 = () => {
7677
8083
  };
7678
8084
  function ms_default() {
7679
8085
  return {
7680
- localeError: error28()
8086
+ localeError: error30()
7681
8087
  };
7682
8088
  }
7683
8089
 
7684
8090
  // ../../node_modules/zod/v4/locales/nl.js
7685
- var error29 = () => {
8091
+ var error31 = () => {
7686
8092
  const Sizable = {
7687
8093
  string: { unit: "tekens", verb: "heeft" },
7688
8094
  file: { unit: "bytes", verb: "heeft" },
@@ -7788,12 +8194,12 @@ var error29 = () => {
7788
8194
  };
7789
8195
  function nl_default() {
7790
8196
  return {
7791
- localeError: error29()
8197
+ localeError: error31()
7792
8198
  };
7793
8199
  }
7794
8200
 
7795
8201
  // ../../node_modules/zod/v4/locales/no.js
7796
- var error30 = () => {
8202
+ var error32 = () => {
7797
8203
  const Sizable = {
7798
8204
  string: { unit: "tegn", verb: "\xE5 ha" },
7799
8205
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -7897,12 +8303,12 @@ var error30 = () => {
7897
8303
  };
7898
8304
  function no_default() {
7899
8305
  return {
7900
- localeError: error30()
8306
+ localeError: error32()
7901
8307
  };
7902
8308
  }
7903
8309
 
7904
8310
  // ../../node_modules/zod/v4/locales/ota.js
7905
- var error31 = () => {
8311
+ var error33 = () => {
7906
8312
  const Sizable = {
7907
8313
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
7908
8314
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8007,12 +8413,12 @@ var error31 = () => {
8007
8413
  };
8008
8414
  function ota_default() {
8009
8415
  return {
8010
- localeError: error31()
8416
+ localeError: error33()
8011
8417
  };
8012
8418
  }
8013
8419
 
8014
8420
  // ../../node_modules/zod/v4/locales/ps.js
8015
- var error32 = () => {
8421
+ var error34 = () => {
8016
8422
  const Sizable = {
8017
8423
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8018
8424
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8122,12 +8528,12 @@ var error32 = () => {
8122
8528
  };
8123
8529
  function ps_default() {
8124
8530
  return {
8125
- localeError: error32()
8531
+ localeError: error34()
8126
8532
  };
8127
8533
  }
8128
8534
 
8129
8535
  // ../../node_modules/zod/v4/locales/pl.js
8130
- var error33 = () => {
8536
+ var error35 = () => {
8131
8537
  const Sizable = {
8132
8538
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8133
8539
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8232,12 +8638,12 @@ var error33 = () => {
8232
8638
  };
8233
8639
  function pl_default() {
8234
8640
  return {
8235
- localeError: error33()
8641
+ localeError: error35()
8236
8642
  };
8237
8643
  }
8238
8644
 
8239
8645
  // ../../node_modules/zod/v4/locales/pt.js
8240
- var error34 = () => {
8646
+ var error36 = () => {
8241
8647
  const Sizable = {
8242
8648
  string: { unit: "caracteres", verb: "ter" },
8243
8649
  file: { unit: "bytes", verb: "ter" },
@@ -8341,7 +8747,127 @@ var error34 = () => {
8341
8747
  };
8342
8748
  function pt_default() {
8343
8749
  return {
8344
- localeError: error34()
8750
+ localeError: error36()
8751
+ };
8752
+ }
8753
+
8754
+ // ../../node_modules/zod/v4/locales/ro.js
8755
+ var error37 = () => {
8756
+ const Sizable = {
8757
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
8758
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
8759
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8760
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8761
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
8762
+ };
8763
+ function getSizing(origin) {
8764
+ return Sizable[origin] ?? null;
8765
+ }
8766
+ const FormatDictionary = {
8767
+ regex: "intrare",
8768
+ email: "adres\u0103 de email",
8769
+ url: "URL",
8770
+ emoji: "emoji",
8771
+ uuid: "UUID",
8772
+ uuidv4: "UUIDv4",
8773
+ uuidv6: "UUIDv6",
8774
+ nanoid: "nanoid",
8775
+ guid: "GUID",
8776
+ cuid: "cuid",
8777
+ cuid2: "cuid2",
8778
+ ulid: "ULID",
8779
+ xid: "XID",
8780
+ ksuid: "KSUID",
8781
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
8782
+ date: "dat\u0103 ISO",
8783
+ time: "or\u0103 ISO",
8784
+ duration: "durat\u0103 ISO",
8785
+ ipv4: "adres\u0103 IPv4",
8786
+ ipv6: "adres\u0103 IPv6",
8787
+ mac: "adres\u0103 MAC",
8788
+ cidrv4: "interval IPv4",
8789
+ cidrv6: "interval IPv6",
8790
+ base64: "\u0219ir codat base64",
8791
+ base64url: "\u0219ir codat base64url",
8792
+ json_string: "\u0219ir JSON",
8793
+ e164: "num\u0103r E.164",
8794
+ jwt: "JWT",
8795
+ template_literal: "intrare"
8796
+ };
8797
+ const TypeDictionary = {
8798
+ nan: "NaN",
8799
+ string: "\u0219ir",
8800
+ number: "num\u0103r",
8801
+ boolean: "boolean",
8802
+ function: "func\u021Bie",
8803
+ array: "matrice",
8804
+ object: "obiect",
8805
+ undefined: "nedefinit",
8806
+ symbol: "simbol",
8807
+ bigint: "num\u0103r mare",
8808
+ void: "void",
8809
+ never: "never",
8810
+ map: "hart\u0103",
8811
+ set: "set"
8812
+ };
8813
+ return (issue2) => {
8814
+ switch (issue2.code) {
8815
+ case "invalid_type": {
8816
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8817
+ const receivedType = parsedType(issue2.input);
8818
+ const received = TypeDictionary[receivedType] ?? receivedType;
8819
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
8820
+ }
8821
+ case "invalid_value":
8822
+ if (issue2.values.length === 1)
8823
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
8824
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
8825
+ case "too_big": {
8826
+ const adj = issue2.inclusive ? "<=" : "<";
8827
+ const sizing = getSizing(issue2.origin);
8828
+ if (sizing)
8829
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
8830
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
8831
+ }
8832
+ case "too_small": {
8833
+ const adj = issue2.inclusive ? ">=" : ">";
8834
+ const sizing = getSizing(issue2.origin);
8835
+ if (sizing) {
8836
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8837
+ }
8838
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
8839
+ }
8840
+ case "invalid_format": {
8841
+ const _issue = issue2;
8842
+ if (_issue.format === "starts_with") {
8843
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
8844
+ }
8845
+ if (_issue.format === "ends_with")
8846
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
8847
+ if (_issue.format === "includes")
8848
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
8849
+ if (_issue.format === "regex")
8850
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
8851
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
8852
+ }
8853
+ case "not_multiple_of":
8854
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
8855
+ case "unrecognized_keys":
8856
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
8857
+ case "invalid_key":
8858
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
8859
+ case "invalid_union":
8860
+ return "Intrare invalid\u0103";
8861
+ case "invalid_element":
8862
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
8863
+ default:
8864
+ return `Intrare invalid\u0103`;
8865
+ }
8866
+ };
8867
+ };
8868
+ function ro_default() {
8869
+ return {
8870
+ localeError: error37()
8345
8871
  };
8346
8872
  }
8347
8873
 
@@ -8361,7 +8887,7 @@ function getRussianPlural(count, one, few, many) {
8361
8887
  }
8362
8888
  return many;
8363
8889
  }
8364
- var error35 = () => {
8890
+ var error38 = () => {
8365
8891
  const Sizable = {
8366
8892
  string: {
8367
8893
  unit: {
@@ -8498,12 +9024,12 @@ var error35 = () => {
8498
9024
  };
8499
9025
  function ru_default() {
8500
9026
  return {
8501
- localeError: error35()
9027
+ localeError: error38()
8502
9028
  };
8503
9029
  }
8504
9030
 
8505
9031
  // ../../node_modules/zod/v4/locales/sl.js
8506
- var error36 = () => {
9032
+ var error39 = () => {
8507
9033
  const Sizable = {
8508
9034
  string: { unit: "znakov", verb: "imeti" },
8509
9035
  file: { unit: "bajtov", verb: "imeti" },
@@ -8608,12 +9134,12 @@ var error36 = () => {
8608
9134
  };
8609
9135
  function sl_default() {
8610
9136
  return {
8611
- localeError: error36()
9137
+ localeError: error39()
8612
9138
  };
8613
9139
  }
8614
9140
 
8615
9141
  // ../../node_modules/zod/v4/locales/sv.js
8616
- var error37 = () => {
9142
+ var error40 = () => {
8617
9143
  const Sizable = {
8618
9144
  string: { unit: "tecken", verb: "att ha" },
8619
9145
  file: { unit: "bytes", verb: "att ha" },
@@ -8719,12 +9245,12 @@ var error37 = () => {
8719
9245
  };
8720
9246
  function sv_default() {
8721
9247
  return {
8722
- localeError: error37()
9248
+ localeError: error40()
8723
9249
  };
8724
9250
  }
8725
9251
 
8726
9252
  // ../../node_modules/zod/v4/locales/ta.js
8727
- var error38 = () => {
9253
+ var error41 = () => {
8728
9254
  const Sizable = {
8729
9255
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
8730
9256
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -8830,12 +9356,12 @@ var error38 = () => {
8830
9356
  };
8831
9357
  function ta_default() {
8832
9358
  return {
8833
- localeError: error38()
9359
+ localeError: error41()
8834
9360
  };
8835
9361
  }
8836
9362
 
8837
9363
  // ../../node_modules/zod/v4/locales/th.js
8838
- var error39 = () => {
9364
+ var error42 = () => {
8839
9365
  const Sizable = {
8840
9366
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
8841
9367
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -8941,12 +9467,12 @@ var error39 = () => {
8941
9467
  };
8942
9468
  function th_default() {
8943
9469
  return {
8944
- localeError: error39()
9470
+ localeError: error42()
8945
9471
  };
8946
9472
  }
8947
9473
 
8948
9474
  // ../../node_modules/zod/v4/locales/tr.js
8949
- var error40 = () => {
9475
+ var error43 = () => {
8950
9476
  const Sizable = {
8951
9477
  string: { unit: "karakter", verb: "olmal\u0131" },
8952
9478
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9047,12 +9573,12 @@ var error40 = () => {
9047
9573
  };
9048
9574
  function tr_default() {
9049
9575
  return {
9050
- localeError: error40()
9576
+ localeError: error43()
9051
9577
  };
9052
9578
  }
9053
9579
 
9054
9580
  // ../../node_modules/zod/v4/locales/uk.js
9055
- var error41 = () => {
9581
+ var error44 = () => {
9056
9582
  const Sizable = {
9057
9583
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9058
9584
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9156,7 +9682,7 @@ var error41 = () => {
9156
9682
  };
9157
9683
  function uk_default() {
9158
9684
  return {
9159
- localeError: error41()
9685
+ localeError: error44()
9160
9686
  };
9161
9687
  }
9162
9688
 
@@ -9166,7 +9692,7 @@ function ua_default() {
9166
9692
  }
9167
9693
 
9168
9694
  // ../../node_modules/zod/v4/locales/ur.js
9169
- var error42 = () => {
9695
+ var error45 = () => {
9170
9696
  const Sizable = {
9171
9697
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9172
9698
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9272,17 +9798,18 @@ var error42 = () => {
9272
9798
  };
9273
9799
  function ur_default() {
9274
9800
  return {
9275
- localeError: error42()
9801
+ localeError: error45()
9276
9802
  };
9277
9803
  }
9278
9804
 
9279
9805
  // ../../node_modules/zod/v4/locales/uz.js
9280
- var error43 = () => {
9806
+ var error46 = () => {
9281
9807
  const Sizable = {
9282
9808
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
9283
9809
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
9284
9810
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
9285
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
9811
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
9812
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
9286
9813
  };
9287
9814
  function getSizing(origin) {
9288
9815
  return Sizable[origin] ?? null;
@@ -9382,12 +9909,12 @@ var error43 = () => {
9382
9909
  };
9383
9910
  function uz_default() {
9384
9911
  return {
9385
- localeError: error43()
9912
+ localeError: error46()
9386
9913
  };
9387
9914
  }
9388
9915
 
9389
9916
  // ../../node_modules/zod/v4/locales/vi.js
9390
- var error44 = () => {
9917
+ var error47 = () => {
9391
9918
  const Sizable = {
9392
9919
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
9393
9920
  file: { unit: "byte", verb: "c\xF3" },
@@ -9491,12 +10018,12 @@ var error44 = () => {
9491
10018
  };
9492
10019
  function vi_default() {
9493
10020
  return {
9494
- localeError: error44()
10021
+ localeError: error47()
9495
10022
  };
9496
10023
  }
9497
10024
 
9498
10025
  // ../../node_modules/zod/v4/locales/zh-CN.js
9499
- var error45 = () => {
10026
+ var error48 = () => {
9500
10027
  const Sizable = {
9501
10028
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
9502
10029
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -9601,12 +10128,12 @@ var error45 = () => {
9601
10128
  };
9602
10129
  function zh_CN_default() {
9603
10130
  return {
9604
- localeError: error45()
10131
+ localeError: error48()
9605
10132
  };
9606
10133
  }
9607
10134
 
9608
10135
  // ../../node_modules/zod/v4/locales/zh-TW.js
9609
- var error46 = () => {
10136
+ var error49 = () => {
9610
10137
  const Sizable = {
9611
10138
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
9612
10139
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -9709,12 +10236,12 @@ var error46 = () => {
9709
10236
  };
9710
10237
  function zh_TW_default() {
9711
10238
  return {
9712
- localeError: error46()
10239
+ localeError: error49()
9713
10240
  };
9714
10241
  }
9715
10242
 
9716
10243
  // ../../node_modules/zod/v4/locales/yo.js
9717
- var error47 = () => {
10244
+ var error50 = () => {
9718
10245
  const Sizable = {
9719
10246
  string: { unit: "\xE0mi", verb: "n\xED" },
9720
10247
  file: { unit: "bytes", verb: "n\xED" },
@@ -9817,12 +10344,12 @@ var error47 = () => {
9817
10344
  };
9818
10345
  function yo_default() {
9819
10346
  return {
9820
- localeError: error47()
10347
+ localeError: error50()
9821
10348
  };
9822
10349
  }
9823
10350
 
9824
10351
  // ../../node_modules/zod/v4/core/registries.js
9825
- var _a;
10352
+ var _a2;
9826
10353
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
9827
10354
  var $input = /* @__PURE__ */ Symbol("ZodInput");
9828
10355
  var $ZodRegistry = class {
@@ -9868,7 +10395,7 @@ var $ZodRegistry = class {
9868
10395
  function registry() {
9869
10396
  return new $ZodRegistry();
9870
10397
  }
9871
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
10398
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
9872
10399
  var globalRegistry = globalThis.__zod_globalRegistry;
9873
10400
 
9874
10401
  // ../../node_modules/zod/v4/core/api.js
@@ -10786,7 +11313,7 @@ function _refine(Class2, fn, _params) {
10786
11313
  return schema;
10787
11314
  }
10788
11315
  // @__NO_SIDE_EFFECTS__
10789
- function _superRefine(fn) {
11316
+ function _superRefine(fn, params) {
10790
11317
  const ch = /* @__PURE__ */ _check((payload) => {
10791
11318
  payload.addIssue = (issue2) => {
10792
11319
  if (typeof issue2 === "string") {
@@ -10803,7 +11330,7 @@ function _superRefine(fn) {
10803
11330
  }
10804
11331
  };
10805
11332
  return fn(payload.value, payload);
10806
- });
11333
+ }, params);
10807
11334
  return ch;
10808
11335
  }
10809
11336
  // @__NO_SIDE_EFFECTS__
@@ -10933,7 +11460,7 @@ function initializeContext(params) {
10933
11460
  };
10934
11461
  }
10935
11462
  function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
10936
- var _a2;
11463
+ var _a3;
10937
11464
  const def = schema._zod.def;
10938
11465
  const seen = ctx.seen.get(schema);
10939
11466
  if (seen) {
@@ -10980,8 +11507,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
10980
11507
  delete result.schema.examples;
10981
11508
  delete result.schema.default;
10982
11509
  }
10983
- if (ctx.io === "input" && result.schema._prefault)
10984
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
11510
+ if (ctx.io === "input" && "_prefault" in result.schema)
11511
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
10985
11512
  delete result.schema._prefault;
10986
11513
  const _result = ctx.seen.get(schema);
10987
11514
  return _result.schema;
@@ -11160,10 +11687,15 @@ function finalize(ctx, schema) {
11160
11687
  result.$id = ctx.external.uri(id2);
11161
11688
  }
11162
11689
  Object.assign(result, root.def ?? root.schema);
11690
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
11691
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
11692
+ delete result.id;
11163
11693
  const defs = ctx.external?.defs ?? {};
11164
11694
  for (const entry of ctx.seen.entries()) {
11165
11695
  const seen = entry[1];
11166
11696
  if (seen.def && seen.defId) {
11697
+ if (seen.def.id === seen.defId)
11698
+ delete seen.def.id;
11167
11699
  defs[seen.defId] = seen.def;
11168
11700
  }
11169
11701
  }
@@ -11218,6 +11750,8 @@ function isTransforming(_schema, _ctx) {
11218
11750
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
11219
11751
  }
11220
11752
  if (def.type === "pipe") {
11753
+ if (_schema._zod.traits.has("$ZodCodec"))
11754
+ return true;
11221
11755
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
11222
11756
  }
11223
11757
  if (def.type === "object") {
@@ -11307,39 +11841,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
11307
11841
  json2.type = "integer";
11308
11842
  else
11309
11843
  json2.type = "number";
11310
- if (typeof exclusiveMinimum === "number") {
11311
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
11844
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
11845
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
11846
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
11847
+ if (exMin) {
11848
+ if (legacy) {
11312
11849
  json2.minimum = exclusiveMinimum;
11313
11850
  json2.exclusiveMinimum = true;
11314
11851
  } else {
11315
11852
  json2.exclusiveMinimum = exclusiveMinimum;
11316
11853
  }
11317
- }
11318
- if (typeof minimum === "number") {
11854
+ } else if (typeof minimum === "number") {
11319
11855
  json2.minimum = minimum;
11320
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
11321
- if (exclusiveMinimum >= minimum)
11322
- delete json2.minimum;
11323
- else
11324
- delete json2.exclusiveMinimum;
11325
- }
11326
11856
  }
11327
- if (typeof exclusiveMaximum === "number") {
11328
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
11857
+ if (exMax) {
11858
+ if (legacy) {
11329
11859
  json2.maximum = exclusiveMaximum;
11330
11860
  json2.exclusiveMaximum = true;
11331
11861
  } else {
11332
11862
  json2.exclusiveMaximum = exclusiveMaximum;
11333
11863
  }
11334
- }
11335
- if (typeof maximum === "number") {
11864
+ } else if (typeof maximum === "number") {
11336
11865
  json2.maximum = maximum;
11337
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
11338
- if (exclusiveMaximum <= maximum)
11339
- delete json2.maximum;
11340
- else
11341
- delete json2.exclusiveMaximum;
11342
- }
11343
11866
  }
11344
11867
  if (typeof multipleOf === "number")
11345
11868
  json2.multipleOf = multipleOf;
@@ -11509,7 +12032,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
11509
12032
  if (typeof maximum === "number")
11510
12033
  json2.maxItems = maximum;
11511
12034
  json2.type = "array";
11512
- json2.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
12035
+ json2.items = process(def.element, ctx, {
12036
+ ...params,
12037
+ path: [...params.path, "items"]
12038
+ });
11513
12039
  };
11514
12040
  var objectProcessor = (schema, ctx, _json, params) => {
11515
12041
  const json2 = _json;
@@ -11702,7 +12228,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
11702
12228
  };
11703
12229
  var pipeProcessor = (schema, ctx, _json, params) => {
11704
12230
  const def = schema._zod.def;
11705
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
12231
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
12232
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
11706
12233
  process(innerType, ctx, params);
11707
12234
  const seen = ctx.seen.get(schema);
11708
12235
  seen.ref = innerType;
@@ -11936,6 +12463,7 @@ __export(schemas_exports2, {
11936
12463
  ZodOptional: () => ZodOptional,
11937
12464
  ZodPipe: () => ZodPipe,
11938
12465
  ZodPrefault: () => ZodPrefault,
12466
+ ZodPreprocess: () => ZodPreprocess,
11939
12467
  ZodPromise: () => ZodPromise,
11940
12468
  ZodReadonly: () => ZodReadonly,
11941
12469
  ZodRecord: () => ZodRecord,
@@ -11996,6 +12524,7 @@ __export(schemas_exports2, {
11996
12524
  int32: () => int32,
11997
12525
  int64: () => int64,
11998
12526
  intersection: () => intersection,
12527
+ invertCodec: () => invertCodec,
11999
12528
  ipv4: () => ipv42,
12000
12529
  ipv6: () => ipv62,
12001
12530
  json: () => json,
@@ -12165,8 +12694,8 @@ var initializer2 = (inst, issues) => {
12165
12694
  }
12166
12695
  });
12167
12696
  };
12168
- var ZodError = $constructor("ZodError", initializer2);
12169
- var ZodRealError = $constructor("ZodError", initializer2, {
12697
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
12698
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12170
12699
  Parent: Error
12171
12700
  });
12172
12701
 
@@ -12185,6 +12714,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12185
12714
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12186
12715
 
12187
12716
  // ../../node_modules/zod/v4/classic/schemas.js
12717
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
12718
+ function _installLazyMethods(inst, group, methods) {
12719
+ const proto = Object.getPrototypeOf(inst);
12720
+ let installed = _installedGroups.get(proto);
12721
+ if (!installed) {
12722
+ installed = /* @__PURE__ */ new Set();
12723
+ _installedGroups.set(proto, installed);
12724
+ }
12725
+ if (installed.has(group))
12726
+ return;
12727
+ installed.add(group);
12728
+ for (const key in methods) {
12729
+ const fn = methods[key];
12730
+ Object.defineProperty(proto, key, {
12731
+ configurable: true,
12732
+ enumerable: false,
12733
+ get() {
12734
+ const bound = fn.bind(this);
12735
+ Object.defineProperty(this, key, {
12736
+ configurable: true,
12737
+ writable: true,
12738
+ enumerable: true,
12739
+ value: bound
12740
+ });
12741
+ return bound;
12742
+ },
12743
+ set(v) {
12744
+ Object.defineProperty(this, key, {
12745
+ configurable: true,
12746
+ writable: true,
12747
+ enumerable: true,
12748
+ value: v
12749
+ });
12750
+ }
12751
+ });
12752
+ }
12753
+ }
12188
12754
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12189
12755
  $ZodType.init(inst, def);
12190
12756
  Object.assign(inst["~standard"], {
@@ -12197,23 +12763,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12197
12763
  inst.def = def;
12198
12764
  inst.type = def.type;
12199
12765
  Object.defineProperty(inst, "_def", { value: def });
12200
- inst.check = (...checks) => {
12201
- return inst.clone(util_exports.mergeDefs(def, {
12202
- checks: [
12203
- ...def.checks ?? [],
12204
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12205
- ]
12206
- }), {
12207
- parent: true
12208
- });
12209
- };
12210
- inst.with = inst.check;
12211
- inst.clone = (def2, params) => clone(inst, def2, params);
12212
- inst.brand = () => inst;
12213
- inst.register = ((reg, meta3) => {
12214
- reg.add(inst, meta3);
12215
- return inst;
12216
- });
12217
12766
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
12218
12767
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
12219
12768
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -12227,45 +12776,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12227
12776
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
12228
12777
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
12229
12778
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
12230
- inst.refine = (check2, params) => inst.check(refine(check2, params));
12231
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
12232
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
12233
- inst.optional = () => optional(inst);
12234
- inst.exactOptional = () => exactOptional(inst);
12235
- inst.nullable = () => nullable(inst);
12236
- inst.nullish = () => optional(nullable(inst));
12237
- inst.nonoptional = (params) => nonoptional(inst, params);
12238
- inst.array = () => array(inst);
12239
- inst.or = (arg) => union([inst, arg]);
12240
- inst.and = (arg) => intersection(inst, arg);
12241
- inst.transform = (tx) => pipe(inst, transform(tx));
12242
- inst.default = (def2) => _default2(inst, def2);
12243
- inst.prefault = (def2) => prefault(inst, def2);
12244
- inst.catch = (params) => _catch2(inst, params);
12245
- inst.pipe = (target) => pipe(inst, target);
12246
- inst.readonly = () => readonly(inst);
12247
- inst.describe = (description) => {
12248
- const cl = inst.clone();
12249
- globalRegistry.add(cl, { description });
12250
- return cl;
12251
- };
12779
+ _installLazyMethods(inst, "ZodType", {
12780
+ check(...chks) {
12781
+ const def2 = this.def;
12782
+ return this.clone(util_exports.mergeDefs(def2, {
12783
+ checks: [
12784
+ ...def2.checks ?? [],
12785
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12786
+ ]
12787
+ }), { parent: true });
12788
+ },
12789
+ with(...chks) {
12790
+ return this.check(...chks);
12791
+ },
12792
+ clone(def2, params) {
12793
+ return clone(this, def2, params);
12794
+ },
12795
+ brand() {
12796
+ return this;
12797
+ },
12798
+ register(reg, meta3) {
12799
+ reg.add(this, meta3);
12800
+ return this;
12801
+ },
12802
+ refine(check2, params) {
12803
+ return this.check(refine(check2, params));
12804
+ },
12805
+ superRefine(refinement, params) {
12806
+ return this.check(superRefine(refinement, params));
12807
+ },
12808
+ overwrite(fn) {
12809
+ return this.check(_overwrite(fn));
12810
+ },
12811
+ optional() {
12812
+ return optional(this);
12813
+ },
12814
+ exactOptional() {
12815
+ return exactOptional(this);
12816
+ },
12817
+ nullable() {
12818
+ return nullable(this);
12819
+ },
12820
+ nullish() {
12821
+ return optional(nullable(this));
12822
+ },
12823
+ nonoptional(params) {
12824
+ return nonoptional(this, params);
12825
+ },
12826
+ array() {
12827
+ return array(this);
12828
+ },
12829
+ or(arg) {
12830
+ return union([this, arg]);
12831
+ },
12832
+ and(arg) {
12833
+ return intersection(this, arg);
12834
+ },
12835
+ transform(tx) {
12836
+ return pipe(this, transform(tx));
12837
+ },
12838
+ default(d) {
12839
+ return _default2(this, d);
12840
+ },
12841
+ prefault(d) {
12842
+ return prefault(this, d);
12843
+ },
12844
+ catch(params) {
12845
+ return _catch2(this, params);
12846
+ },
12847
+ pipe(target) {
12848
+ return pipe(this, target);
12849
+ },
12850
+ readonly() {
12851
+ return readonly(this);
12852
+ },
12853
+ describe(description) {
12854
+ const cl = this.clone();
12855
+ globalRegistry.add(cl, { description });
12856
+ return cl;
12857
+ },
12858
+ meta(...args) {
12859
+ if (args.length === 0)
12860
+ return globalRegistry.get(this);
12861
+ const cl = this.clone();
12862
+ globalRegistry.add(cl, args[0]);
12863
+ return cl;
12864
+ },
12865
+ isOptional() {
12866
+ return this.safeParse(void 0).success;
12867
+ },
12868
+ isNullable() {
12869
+ return this.safeParse(null).success;
12870
+ },
12871
+ apply(fn) {
12872
+ return fn(this);
12873
+ }
12874
+ });
12252
12875
  Object.defineProperty(inst, "description", {
12253
12876
  get() {
12254
12877
  return globalRegistry.get(inst)?.description;
12255
12878
  },
12256
12879
  configurable: true
12257
12880
  });
12258
- inst.meta = (...args) => {
12259
- if (args.length === 0) {
12260
- return globalRegistry.get(inst);
12261
- }
12262
- const cl = inst.clone();
12263
- globalRegistry.add(cl, args[0]);
12264
- return cl;
12265
- };
12266
- inst.isOptional = () => inst.safeParse(void 0).success;
12267
- inst.isNullable = () => inst.safeParse(null).success;
12268
- inst.apply = (fn) => fn(inst);
12269
12881
  return inst;
12270
12882
  });
12271
12883
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -12276,21 +12888,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
12276
12888
  inst.format = bag.format ?? null;
12277
12889
  inst.minLength = bag.minimum ?? null;
12278
12890
  inst.maxLength = bag.maximum ?? null;
12279
- inst.regex = (...args) => inst.check(_regex(...args));
12280
- inst.includes = (...args) => inst.check(_includes(...args));
12281
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
12282
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
12283
- inst.min = (...args) => inst.check(_minLength(...args));
12284
- inst.max = (...args) => inst.check(_maxLength(...args));
12285
- inst.length = (...args) => inst.check(_length(...args));
12286
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
12287
- inst.lowercase = (params) => inst.check(_lowercase(params));
12288
- inst.uppercase = (params) => inst.check(_uppercase(params));
12289
- inst.trim = () => inst.check(_trim());
12290
- inst.normalize = (...args) => inst.check(_normalize(...args));
12291
- inst.toLowerCase = () => inst.check(_toLowerCase());
12292
- inst.toUpperCase = () => inst.check(_toUpperCase());
12293
- inst.slugify = () => inst.check(_slugify());
12891
+ _installLazyMethods(inst, "_ZodString", {
12892
+ regex(...args) {
12893
+ return this.check(_regex(...args));
12894
+ },
12895
+ includes(...args) {
12896
+ return this.check(_includes(...args));
12897
+ },
12898
+ startsWith(...args) {
12899
+ return this.check(_startsWith(...args));
12900
+ },
12901
+ endsWith(...args) {
12902
+ return this.check(_endsWith(...args));
12903
+ },
12904
+ min(...args) {
12905
+ return this.check(_minLength(...args));
12906
+ },
12907
+ max(...args) {
12908
+ return this.check(_maxLength(...args));
12909
+ },
12910
+ length(...args) {
12911
+ return this.check(_length(...args));
12912
+ },
12913
+ nonempty(...args) {
12914
+ return this.check(_minLength(1, ...args));
12915
+ },
12916
+ lowercase(params) {
12917
+ return this.check(_lowercase(params));
12918
+ },
12919
+ uppercase(params) {
12920
+ return this.check(_uppercase(params));
12921
+ },
12922
+ trim() {
12923
+ return this.check(_trim());
12924
+ },
12925
+ normalize(...args) {
12926
+ return this.check(_normalize(...args));
12927
+ },
12928
+ toLowerCase() {
12929
+ return this.check(_toLowerCase());
12930
+ },
12931
+ toUpperCase() {
12932
+ return this.check(_toUpperCase());
12933
+ },
12934
+ slugify() {
12935
+ return this.check(_slugify());
12936
+ }
12937
+ });
12294
12938
  });
12295
12939
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
12296
12940
  $ZodString.init(inst, def);
@@ -12369,7 +13013,7 @@ function url(params) {
12369
13013
  }
12370
13014
  function httpUrl(params) {
12371
13015
  return _url(ZodURL, {
12372
- protocol: /^https?$/,
13016
+ protocol: regexes_exports.httpProtocol,
12373
13017
  hostname: regexes_exports.domain,
12374
13018
  ...util_exports.normalizeParams(params)
12375
13019
  });
@@ -12511,21 +13155,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
12511
13155
  $ZodNumber.init(inst, def);
12512
13156
  ZodType.init(inst, def);
12513
13157
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2);
12514
- inst.gt = (value, params) => inst.check(_gt(value, params));
12515
- inst.gte = (value, params) => inst.check(_gte(value, params));
12516
- inst.min = (value, params) => inst.check(_gte(value, params));
12517
- inst.lt = (value, params) => inst.check(_lt(value, params));
12518
- inst.lte = (value, params) => inst.check(_lte(value, params));
12519
- inst.max = (value, params) => inst.check(_lte(value, params));
12520
- inst.int = (params) => inst.check(int(params));
12521
- inst.safe = (params) => inst.check(int(params));
12522
- inst.positive = (params) => inst.check(_gt(0, params));
12523
- inst.nonnegative = (params) => inst.check(_gte(0, params));
12524
- inst.negative = (params) => inst.check(_lt(0, params));
12525
- inst.nonpositive = (params) => inst.check(_lte(0, params));
12526
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
12527
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
12528
- inst.finite = () => inst;
13158
+ _installLazyMethods(inst, "ZodNumber", {
13159
+ gt(value, params) {
13160
+ return this.check(_gt(value, params));
13161
+ },
13162
+ gte(value, params) {
13163
+ return this.check(_gte(value, params));
13164
+ },
13165
+ min(value, params) {
13166
+ return this.check(_gte(value, params));
13167
+ },
13168
+ lt(value, params) {
13169
+ return this.check(_lt(value, params));
13170
+ },
13171
+ lte(value, params) {
13172
+ return this.check(_lte(value, params));
13173
+ },
13174
+ max(value, params) {
13175
+ return this.check(_lte(value, params));
13176
+ },
13177
+ int(params) {
13178
+ return this.check(int(params));
13179
+ },
13180
+ safe(params) {
13181
+ return this.check(int(params));
13182
+ },
13183
+ positive(params) {
13184
+ return this.check(_gt(0, params));
13185
+ },
13186
+ nonnegative(params) {
13187
+ return this.check(_gte(0, params));
13188
+ },
13189
+ negative(params) {
13190
+ return this.check(_lt(0, params));
13191
+ },
13192
+ nonpositive(params) {
13193
+ return this.check(_lte(0, params));
13194
+ },
13195
+ multipleOf(value, params) {
13196
+ return this.check(_multipleOf(value, params));
13197
+ },
13198
+ step(value, params) {
13199
+ return this.check(_multipleOf(value, params));
13200
+ },
13201
+ finite() {
13202
+ return this;
13203
+ }
13204
+ });
12529
13205
  const bag = inst._zod.bag;
12530
13206
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
12531
13207
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -12672,11 +13348,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
12672
13348
  ZodType.init(inst, def);
12673
13349
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
12674
13350
  inst.element = def.element;
12675
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
12676
- inst.nonempty = (params) => inst.check(_minLength(1, params));
12677
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
12678
- inst.length = (len, params) => inst.check(_length(len, params));
12679
- inst.unwrap = () => inst.element;
13351
+ _installLazyMethods(inst, "ZodArray", {
13352
+ min(n, params) {
13353
+ return this.check(_minLength(n, params));
13354
+ },
13355
+ nonempty(params) {
13356
+ return this.check(_minLength(1, params));
13357
+ },
13358
+ max(n, params) {
13359
+ return this.check(_maxLength(n, params));
13360
+ },
13361
+ length(n, params) {
13362
+ return this.check(_length(n, params));
13363
+ },
13364
+ unwrap() {
13365
+ return this.element;
13366
+ }
13367
+ });
12680
13368
  });
12681
13369
  function array(element, params) {
12682
13370
  return _array(ZodArray, element, params);
@@ -12692,23 +13380,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
12692
13380
  util_exports.defineLazy(inst, "shape", () => {
12693
13381
  return def.shape;
12694
13382
  });
12695
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
12696
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
12697
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
12698
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
12699
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
12700
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
12701
- inst.extend = (incoming) => {
12702
- return util_exports.extend(inst, incoming);
12703
- };
12704
- inst.safeExtend = (incoming) => {
12705
- return util_exports.safeExtend(inst, incoming);
12706
- };
12707
- inst.merge = (other) => util_exports.merge(inst, other);
12708
- inst.pick = (mask) => util_exports.pick(inst, mask);
12709
- inst.omit = (mask) => util_exports.omit(inst, mask);
12710
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
12711
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
13383
+ _installLazyMethods(inst, "ZodObject", {
13384
+ keyof() {
13385
+ return _enum2(Object.keys(this._zod.def.shape));
13386
+ },
13387
+ catchall(catchall) {
13388
+ return this.clone({ ...this._zod.def, catchall });
13389
+ },
13390
+ passthrough() {
13391
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13392
+ },
13393
+ loose() {
13394
+ return this.clone({ ...this._zod.def, catchall: unknown() });
13395
+ },
13396
+ strict() {
13397
+ return this.clone({ ...this._zod.def, catchall: never() });
13398
+ },
13399
+ strip() {
13400
+ return this.clone({ ...this._zod.def, catchall: void 0 });
13401
+ },
13402
+ extend(incoming) {
13403
+ return util_exports.extend(this, incoming);
13404
+ },
13405
+ safeExtend(incoming) {
13406
+ return util_exports.safeExtend(this, incoming);
13407
+ },
13408
+ merge(other) {
13409
+ return util_exports.merge(this, other);
13410
+ },
13411
+ pick(mask) {
13412
+ return util_exports.pick(this, mask);
13413
+ },
13414
+ omit(mask) {
13415
+ return util_exports.omit(this, mask);
13416
+ },
13417
+ partial(...args) {
13418
+ return util_exports.partial(ZodOptional, this, args[0]);
13419
+ },
13420
+ required(...args) {
13421
+ return util_exports.required(ZodNonOptional, this, args[0]);
13422
+ }
13423
+ });
12712
13424
  });
12713
13425
  function object(shape, params) {
12714
13426
  const def = {
@@ -12813,6 +13525,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
12813
13525
  inst.valueType = def.valueType;
12814
13526
  });
12815
13527
  function record(keyType, valueType, params) {
13528
+ if (!valueType || !valueType._zod) {
13529
+ return new ZodRecord({
13530
+ type: "record",
13531
+ keyType: string2(),
13532
+ valueType: keyType,
13533
+ ...util_exports.normalizeParams(valueType)
13534
+ });
13535
+ }
12816
13536
  return new ZodRecord({
12817
13537
  type: "record",
12818
13538
  keyType,
@@ -12984,10 +13704,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
12984
13704
  if (output instanceof Promise) {
12985
13705
  return output.then((output2) => {
12986
13706
  payload.value = output2;
13707
+ payload.fallback = true;
12987
13708
  return payload;
12988
13709
  });
12989
13710
  }
12990
13711
  payload.value = output;
13712
+ payload.fallback = true;
12991
13713
  return payload;
12992
13714
  };
12993
13715
  });
@@ -13142,6 +13864,20 @@ function codec(in_, out, params) {
13142
13864
  reverseTransform: params.encode
13143
13865
  });
13144
13866
  }
13867
+ function invertCodec(codec2) {
13868
+ const def = codec2._zod.def;
13869
+ return new ZodCodec({
13870
+ type: "pipe",
13871
+ in: def.out,
13872
+ out: def.in,
13873
+ transform: def.reverseTransform,
13874
+ reverseTransform: def.transform
13875
+ });
13876
+ }
13877
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
13878
+ ZodPipe.init(inst, def);
13879
+ $ZodPreprocess.init(inst, def);
13880
+ });
13145
13881
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
13146
13882
  $ZodReadonly.init(inst, def);
13147
13883
  ZodType.init(inst, def);
@@ -13221,8 +13957,8 @@ function custom(fn, _params) {
13221
13957
  function refine(fn, _params = {}) {
13222
13958
  return _refine(ZodCustom, fn, _params);
13223
13959
  }
13224
- function superRefine(fn) {
13225
- return _superRefine(fn);
13960
+ function superRefine(fn, params) {
13961
+ return _superRefine(fn, params);
13226
13962
  }
13227
13963
  var describe2 = describe;
13228
13964
  var meta2 = meta;
@@ -13260,7 +13996,11 @@ function json(params) {
13260
13996
  return jsonSchema;
13261
13997
  }
13262
13998
  function preprocess(fn, schema) {
13263
- return pipe(transform(fn), schema);
13999
+ return new ZodPreprocess({
14000
+ type: "pipe",
14001
+ in: transform(fn),
14002
+ out: schema
14003
+ });
13264
14004
  }
13265
14005
 
13266
14006
  // ../../node_modules/zod/v4/classic/compat.js
@@ -13681,12 +14421,6 @@ function convertBaseSchema(schema, ctx) {
13681
14421
  default:
13682
14422
  throw new Error(`Unsupported type: ${type}`);
13683
14423
  }
13684
- if (schema.description) {
13685
- zodSchema = zodSchema.describe(schema.description);
13686
- }
13687
- if (schema.default !== void 0) {
13688
- zodSchema = zodSchema.default(schema.default);
13689
- }
13690
14424
  return zodSchema;
13691
14425
  }
13692
14426
  function convertSchema(schema, ctx) {
@@ -13723,6 +14457,9 @@ function convertSchema(schema, ctx) {
13723
14457
  if (schema.readOnly === true) {
13724
14458
  baseSchema = z.readonly(baseSchema);
13725
14459
  }
14460
+ if (schema.default !== void 0) {
14461
+ baseSchema = baseSchema.default(schema.default);
14462
+ }
13726
14463
  const extraMeta = {};
13727
14464
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
13728
14465
  for (const key of coreMetadataKeys) {
@@ -13744,23 +14481,32 @@ function convertSchema(schema, ctx) {
13744
14481
  if (Object.keys(extraMeta).length > 0) {
13745
14482
  ctx.registry.add(baseSchema, extraMeta);
13746
14483
  }
14484
+ if (schema.description) {
14485
+ baseSchema = baseSchema.describe(schema.description);
14486
+ }
13747
14487
  return baseSchema;
13748
14488
  }
13749
14489
  function fromJSONSchema(schema, params) {
13750
14490
  if (typeof schema === "boolean") {
13751
14491
  return schema ? z.any() : z.never();
13752
14492
  }
13753
- const version2 = detectVersion(schema, params?.defaultTarget);
13754
- const defs = schema.$defs || schema.definitions || {};
14493
+ let normalized;
14494
+ try {
14495
+ normalized = JSON.parse(JSON.stringify(schema));
14496
+ } catch {
14497
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
14498
+ }
14499
+ const version2 = detectVersion(normalized, params?.defaultTarget);
14500
+ const defs = normalized.$defs || normalized.definitions || {};
13755
14501
  const ctx = {
13756
14502
  version: version2,
13757
14503
  defs,
13758
14504
  refs: /* @__PURE__ */ new Map(),
13759
14505
  processing: /* @__PURE__ */ new Set(),
13760
- rootSchema: schema,
14506
+ rootSchema: normalized,
13761
14507
  registry: params?.registry ?? globalRegistry
13762
14508
  };
13763
- return convertSchema(schema, ctx);
14509
+ return convertSchema(normalized, ctx);
13764
14510
  }
13765
14511
 
13766
14512
  // ../../node_modules/zod/v4/classic/coerce.js
@@ -13850,7 +14596,7 @@ function buildHaiErrorInst(def, message, cause, suggestion) {
13850
14596
  inst.suggestion = suggestion;
13851
14597
  return inst;
13852
14598
  }
13853
- var error48 = {
14599
+ var error51 = {
13854
14600
  buildHaiErrorsDef,
13855
14601
  buildHaiErrorInst
13856
14602
  };
@@ -13869,7 +14615,7 @@ function err(errorOrDef, message, cause, suggestion) {
13869
14615
  if (errorOrDef instanceof Error) {
13870
14616
  return {
13871
14617
  success: false,
13872
- error: error48.buildHaiErrorInst(
14618
+ error: error51.buildHaiErrorInst(
13873
14619
  UnknownErrorDef,
13874
14620
  message || errorOrDef.message,
13875
14621
  cause ?? errorOrDef,
@@ -13886,7 +14632,7 @@ function err(errorOrDef, message, cause, suggestion) {
13886
14632
  }
13887
14633
  return {
13888
14634
  success: false,
13889
- error: error48.buildHaiErrorInst(nonNativeError, message || "", cause, suggestion)
14635
+ error: error51.buildHaiErrorInst(nonNativeError, message || "", cause, suggestion)
13890
14636
  };
13891
14637
  }
13892
14638
  var CommonErrorInfo = {
@@ -13917,7 +14663,7 @@ var CommonErrorInfo = {
13917
14663
  DATABASE_ERROR: "501:500",
13918
14664
  UNKNOWN_ERROR: "599:500"
13919
14665
  };
13920
- var HaiCommonError = error48.buildHaiErrorsDef("common", CommonErrorInfo);
14666
+ var HaiCommonError = error51.buildHaiErrorsDef("common", CommonErrorInfo);
13921
14667
  var ConfigErrorInfo = {
13922
14668
  CONFIG_FILE_NOT_FOUND: "010:500",
13923
14669
  CONFIG_PARSE_ERROR: "011:500",
@@ -13925,7 +14671,7 @@ var ConfigErrorInfo = {
13925
14671
  CONFIG_ENV_VAR_MISSING: "013:500",
13926
14672
  CONFIG_NOT_LOADED: "014:500"
13927
14673
  };
13928
- var HaiConfigError = error48.buildHaiErrorsDef("core", ConfigErrorInfo);
14674
+ var HaiConfigError = error51.buildHaiErrorsDef("core", ConfigErrorInfo);
13929
14675
  var DEFAULT_LENGTH = 21;
13930
14676
  var SHORT_LENGTH = 10;
13931
14677
  var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
@@ -14228,10 +14974,10 @@ var ZOD_DEFAULT_MESSAGE_PATTERNS = [
14228
14974
  /^Number must be/,
14229
14975
  /^Array must contain/
14230
14976
  ];
14231
- function extractZodIssues(error49) {
14232
- if (!error49 || typeof error49 !== "object")
14977
+ function extractZodIssues(error52) {
14978
+ if (!error52 || typeof error52 !== "object")
14233
14979
  return [];
14234
- const obj = error49;
14980
+ const obj = error52;
14235
14981
  return obj.issues ?? obj.errors ?? [];
14236
14982
  }
14237
14983
  function isDefaultZodMessage(message) {
@@ -14303,8 +15049,8 @@ function mapZodIssuesToFormErrors(issues, getMessage) {
14303
15049
  message: localizeZodIssue(issue2, getMessage)
14304
15050
  }));
14305
15051
  }
14306
- function mapZodErrorToFormErrors(error49, getMessage) {
14307
- return mapZodIssuesToFormErrors(extractZodIssues(error49), getMessage);
15052
+ function mapZodErrorToFormErrors(error52, getMessage) {
15053
+ return mapZodIssuesToFormErrors(extractZodIssues(error52), getMessage);
14308
15054
  }
14309
15055
  var zodValidation = {
14310
15056
  createPrefixedZodMessageGetter,
@@ -14462,17 +15208,17 @@ function createNotInitializedKit(codeOrDef, messageFn) {
14462
15208
  const isHaiErrorDef = (value) => {
14463
15209
  return typeof value === "object" && value !== null && "httpStatus" in value && "system" in value && "module" in value;
14464
15210
  };
14465
- const error49 = () => {
15211
+ const error52 = () => {
14466
15212
  if (isHaiErrorDef(codeOrDef)) {
14467
- return error48.buildHaiErrorInst(codeOrDef, messageFn());
15213
+ return error51.buildHaiErrorInst(codeOrDef, messageFn());
14468
15214
  }
14469
15215
  return { code: codeOrDef, message: messageFn() };
14470
15216
  };
14471
- const result = () => ({ success: false, error: error49() });
14472
- const asyncOp = async () => ({ success: false, error: error49() });
14473
- const syncOp = () => ({ success: false, error: error49() });
15217
+ const result = () => ({ success: false, error: error52() });
15218
+ const asyncOp = async () => ({ success: false, error: error52() });
15219
+ const syncOp = () => ({ success: false, error: error52() });
14474
15220
  const proxy = (mode = "async") => new Proxy({}, { get: () => mode === "sync" ? syncOp : asyncOp });
14475
- return { error: error49, result, proxy };
15221
+ return { error: error52, result, proxy };
14476
15222
  }
14477
15223
 
14478
15224
  // src/utils/core-util-type.ts
@@ -14877,7 +15623,7 @@ function createCore(loggerFns) {
14877
15623
  * )
14878
15624
  * ```
14879
15625
  */
14880
- error: error48,
15626
+ error: error51,
14881
15627
  /**
14882
15628
  * 模块基础工具集。
14883
15629
  *
@@ -14898,5 +15644,5 @@ function createCore(loggerFns) {
14898
15644
  }
14899
15645
 
14900
15646
  export { CoreConfigSchema, EnvSchema, HaiCommonError, HaiConfigError, IdConfigSchema, LogFormatSchema, LogLevelSchema, LoggingConfigSchema, __commonJS, __toESM, createCore, err, i18n, ok, typeUtils };
14901
- //# sourceMappingURL=chunk-JM2QORKH.js.map
14902
- //# sourceMappingURL=chunk-JM2QORKH.js.map
15647
+ //# sourceMappingURL=chunk-RDAHW7NP.js.map
15648
+ //# sourceMappingURL=chunk-RDAHW7NP.js.map