@go-labs-sg/rsvp 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1497 -716
  2. package/package.json +5 -2
package/dist/index.js CHANGED
@@ -55,12 +55,13 @@ var createPkcePair = () => {
55
55
  verifier
56
56
  };
57
57
  };
58
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/external.js
58
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/external.js
59
59
  var exports_external = {};
60
60
  __export(exports_external, {
61
61
  $brand: () => $brand,
62
62
  $input: () => $input,
63
63
  $output: () => $output,
64
+ INVALID: () => INVALID,
64
65
  NEVER: () => NEVER,
65
66
  TimePrecision: () => TimePrecision,
66
67
  ZodAny: () => ZodAny,
@@ -94,12 +95,14 @@ __export(exports_external, {
94
95
  ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
95
96
  ZodFunction: () => ZodFunction,
96
97
  ZodGUID: () => ZodGUID,
98
+ ZodIBAN: () => ZodIBAN,
97
99
  ZodIPv4: () => ZodIPv4,
98
100
  ZodIPv6: () => ZodIPv6,
99
101
  ZodISODate: () => ZodISODate,
100
102
  ZodISODateTime: () => ZodISODateTime,
101
103
  ZodISODuration: () => ZodISODuration,
102
104
  ZodISOTime: () => ZodISOTime,
105
+ ZodInstanceOf: () => ZodInstanceOf,
103
106
  ZodIntersection: () => ZodIntersection,
104
107
  ZodIssueCode: () => ZodIssueCode,
105
108
  ZodJWT: () => ZodJWT,
@@ -165,6 +168,7 @@ __export(exports_external, {
165
168
  creditCard: () => creditCard2,
166
169
  cuid: () => cuid3,
167
170
  cuid2: () => cuid22,
171
+ currencyCode: () => currencyCode2,
168
172
  custom: () => custom,
169
173
  date: () => date2,
170
174
  decode: () => decode2,
@@ -197,6 +201,7 @@ __export(exports_external, {
197
201
  hex: () => hex2,
198
202
  hostname: () => hostname2,
199
203
  httpUrl: () => httpUrl,
204
+ iban: () => iban2,
200
205
  includes: () => _includes,
201
206
  input: () => input,
202
207
  instanceof: () => _instanceof,
@@ -308,11 +313,12 @@ __export(exports_external, {
308
313
  validate: () => validate,
309
314
  validateAsync: () => validateAsync,
310
315
  void: () => _void2,
316
+ withParser: () => withParser,
311
317
  xid: () => xid2,
312
318
  xor: () => xor
313
319
  });
314
320
 
315
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/index.js
321
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/index.js
316
322
  var exports_core2 = {};
317
323
  __export(exports_core2, {
318
324
  $ZodAny: () => $ZodAny,
@@ -344,6 +350,7 @@ __export(exports_core2, {
344
350
  $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
345
351
  $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
346
352
  $ZodCheckOverwrite: () => $ZodCheckOverwrite,
353
+ $ZodCheckProperties: () => $ZodCheckProperties,
347
354
  $ZodCheckProperty: () => $ZodCheckProperty,
348
355
  $ZodCheckRegex: () => $ZodCheckRegex,
349
356
  $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
@@ -368,6 +375,7 @@ __export(exports_core2, {
368
375
  $ZodFile: () => $ZodFile,
369
376
  $ZodFunction: () => $ZodFunction,
370
377
  $ZodGUID: () => $ZodGUID,
378
+ $ZodIBAN: () => $ZodIBAN,
371
379
  $ZodIPv4: () => $ZodIPv4,
372
380
  $ZodIPv6: () => $ZodIPv6,
373
381
  $ZodISODate: () => $ZodISODate,
@@ -469,6 +477,7 @@ __export(exports_core2, {
469
477
  _gt: () => _gt,
470
478
  _gte: () => _gte,
471
479
  _guid: () => _guid,
480
+ _iban: () => _iban,
472
481
  _includes: () => _includes,
473
482
  _int: () => _int,
474
483
  _int32: () => _int32,
@@ -560,6 +569,9 @@ __export(exports_core2, {
560
569
  _void: () => _void,
561
570
  _xid: () => _xid,
562
571
  _xor: () => _xor,
572
+ base64Charset: () => base64Charset,
573
+ base64urlCharset: () => base64urlCharset,
574
+ canParseURL: () => canParseURL,
563
575
  clone: () => clone,
564
576
  compile: () => compile,
565
577
  compileFn: () => compileFn,
@@ -586,6 +598,7 @@ __export(exports_core2, {
586
598
  isValidBase64URL: () => isValidBase64URL,
587
599
  isValidCIDRv6: () => isValidCIDRv6,
588
600
  isValidCreditCard: () => isValidCreditCard,
601
+ isValidIBAN: () => isValidIBAN,
589
602
  isValidIPv6: () => isValidIPv6,
590
603
  isValidJWT: () => isValidJWT,
591
604
  locales: () => exports_locales,
@@ -596,7 +609,8 @@ __export(exports_core2, {
596
609
  parseAsync: () => parseAsync,
597
610
  parseURLObject: () => parseURLObject,
598
611
  prettifyError: () => prettifyError,
599
- process: () => process2,
612
+ process: () => processSchema,
613
+ processSchema: () => processSchema,
600
614
  regexes: () => exports_regexes,
601
615
  registry: () => registry,
602
616
  safeDecode: () => safeDecode,
@@ -616,10 +630,12 @@ __export(exports_core2, {
616
630
  util: () => exports_util,
617
631
  validate: () => validate,
618
632
  validateAsync: () => validateAsync,
619
- version: () => version
633
+ validateURL: () => validateURL,
634
+ version: () => version,
635
+ withParser: () => withParser
620
636
  });
621
637
 
622
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/util.js
638
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/util.js
623
639
  var exports_util = {};
624
640
  __export(exports_util, {
625
641
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -648,6 +664,7 @@ __export(exports_util, {
648
664
  createTransparentProxy: () => createTransparentProxy,
649
665
  defineLazy: () => defineLazy,
650
666
  defineLazyInternal: () => defineLazyInternal,
667
+ derived: () => derived,
651
668
  esc: () => esc,
652
669
  escapeRegex: () => escapeRegex,
653
670
  explicitlyAborted: () => explicitlyAborted,
@@ -685,6 +702,7 @@ __export(exports_util, {
685
702
  promiseAllObject: () => promiseAllObject,
686
703
  propertyKeyTypes: () => propertyKeyTypes,
687
704
  randomString: () => randomString,
705
+ rawShape: () => rawShape,
688
706
  required: () => required,
689
707
  safeExtend: () => safeExtend,
690
708
  shallowClone: () => shallowClone,
@@ -723,18 +741,23 @@ function jsonStringifyReplacer(_, value) {
723
741
  return value.toString();
724
742
  return value;
725
743
  }
726
- function cached(getter) {
727
- const set = false;
728
- return {
729
- get value() {
730
- if (!set) {
731
- const value = getter();
732
- Object.defineProperty(this, "value", { value });
733
- return value;
734
- }
735
- throw new Error("cached value already set");
744
+
745
+ class Cached {
746
+ constructor(getter) {
747
+ this._getter = getter;
748
+ this._value = undefined;
749
+ }
750
+ get value() {
751
+ const getter = this._getter;
752
+ if (getter !== undefined) {
753
+ this._value = getter();
754
+ this._getter = undefined;
736
755
  }
737
- };
756
+ return this._value;
757
+ }
758
+ }
759
+ function cached(getter) {
760
+ return new Cached(getter);
738
761
  }
739
762
  function nullish(input) {
740
763
  return input === null || input === undefined;
@@ -785,6 +808,56 @@ function assignProp(target, prop, value) {
785
808
  configurable: true
786
809
  });
787
810
  }
811
+ function rawShape(def) {
812
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
813
+ return desc?.get ? desc.get.raw : desc?.value;
814
+ }
815
+ function sourceShape(schema) {
816
+ return rawShape(schema._zod.def) ?? schema._zod.def.shape;
817
+ }
818
+ function deferProp(target, key, getter) {
819
+ Object.defineProperty(target, key, {
820
+ get() {
821
+ const value = getter();
822
+ assignProp(this, key, value);
823
+ return value;
824
+ },
825
+ enumerable: true,
826
+ configurable: true
827
+ });
828
+ }
829
+ function putProp(target, key, value) {
830
+ if (key in target)
831
+ assignProp(target, key, value);
832
+ else
833
+ target[key] = value;
834
+ }
835
+ function mirrorShape(target, source, keys, wrap) {
836
+ const raw = sourceShape(source);
837
+ for (const key of keys) {
838
+ const desc = Object.getOwnPropertyDescriptor(raw, key);
839
+ if (!desc.enumerable)
840
+ continue;
841
+ if (desc.get) {
842
+ deferProp(target, key, () => {
843
+ const value = source._zod.def.shape[key];
844
+ return wrap ? wrap(value, key) : value;
845
+ });
846
+ } else
847
+ putProp(target, key, wrap ? wrap(desc.value, key) : desc.value);
848
+ }
849
+ }
850
+ function mirrorProps(target, source) {
851
+ for (const key of Reflect.ownKeys(source)) {
852
+ const desc = Object.getOwnPropertyDescriptor(source, key);
853
+ if (!desc.enumerable)
854
+ continue;
855
+ if (desc.get)
856
+ deferProp(target, key, () => source[key]);
857
+ else
858
+ putProp(target, key, desc.value);
859
+ }
860
+ }
788
861
  function mergeDefs(...defs) {
789
862
  const mergedDescriptors = {};
790
863
  for (const def of defs) {
@@ -1022,23 +1095,21 @@ function pick(schema, mask) {
1022
1095
  if (hasChecks) {
1023
1096
  throw new Error(".pick() cannot be used on object schemas containing refinements");
1024
1097
  }
1025
- const def = mergeDefs(schema._zod.def, {
1026
- get shape() {
1027
- const newShape = {};
1028
- for (const key of Reflect.ownKeys(mask)) {
1029
- if (!Object.prototype.hasOwnProperty.call(currDef.shape, key)) {
1030
- throw new Error(`Unrecognized key: "${String(key)}"`);
1031
- }
1032
- if (!mask[key])
1033
- continue;
1034
- assignProp(newShape, key, currDef.shape[key]);
1035
- }
1036
- assignProp(this, "shape", newShape);
1037
- return newShape;
1038
- },
1039
- checks: []
1040
- });
1041
- return clone(schema, def);
1098
+ const newShape = {};
1099
+ mirrorShape(newShape, schema, maskedKeys(schema, mask));
1100
+ return clone(schema, mergeDefs(currDef, { shape: newShape, checks: [] }));
1101
+ }
1102
+ function maskedKeys(schema, mask) {
1103
+ const raw = sourceShape(schema);
1104
+ const keys = [];
1105
+ for (const key of Reflect.ownKeys(mask)) {
1106
+ if (!Object.getOwnPropertyDescriptor(raw, key)?.enumerable) {
1107
+ throw new Error(`Unrecognized key: "${String(key)}"`);
1108
+ }
1109
+ if (mask[key])
1110
+ keys.push(key);
1111
+ }
1112
+ return keys;
1042
1113
  }
1043
1114
  function omit(schema, mask) {
1044
1115
  const currDef = schema._zod.def;
@@ -1047,23 +1118,10 @@ function omit(schema, mask) {
1047
1118
  if (hasChecks) {
1048
1119
  throw new Error(".omit() cannot be used on object schemas containing refinements");
1049
1120
  }
1050
- const def = mergeDefs(schema._zod.def, {
1051
- get shape() {
1052
- const newShape = { ...schema._zod.def.shape };
1053
- for (const key of Reflect.ownKeys(mask)) {
1054
- if (!Object.prototype.hasOwnProperty.call(currDef.shape, key)) {
1055
- throw new Error(`Unrecognized key: "${String(key)}"`);
1056
- }
1057
- if (!mask[key])
1058
- continue;
1059
- delete newShape[key];
1060
- }
1061
- assignProp(this, "shape", newShape);
1062
- return newShape;
1063
- },
1064
- checks: []
1065
- });
1066
- return clone(schema, def);
1121
+ const omitted = new Set(maskedKeys(schema, mask));
1122
+ const newShape = {};
1123
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)).filter((key) => !omitted.has(key)));
1124
+ return clone(schema, mergeDefs(currDef, { shape: newShape, checks: [] }));
1067
1125
  }
1068
1126
  function extend(schema, shape) {
1069
1127
  if (!isPlainObject(shape)) {
@@ -1072,34 +1130,26 @@ function extend(schema, shape) {
1072
1130
  const checks = schema._zod.def.checks;
1073
1131
  const hasChecks = checks && checks.length > 0;
1074
1132
  if (hasChecks) {
1075
- const existingShape = schema._zod.def.shape;
1133
+ const existingShape = sourceShape(schema);
1076
1134
  for (const key of Reflect.ownKeys(shape)) {
1077
1135
  if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
1078
1136
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
1079
1137
  }
1080
1138
  }
1081
1139
  }
1082
- const def = mergeDefs(schema._zod.def, {
1083
- get shape() {
1084
- const _shape = { ...schema._zod.def.shape, ...shape };
1085
- assignProp(this, "shape", _shape);
1086
- return _shape;
1087
- }
1088
- });
1089
- return clone(schema, def);
1140
+ return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));
1141
+ }
1142
+ function extended(schema, shape) {
1143
+ const newShape = {};
1144
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)));
1145
+ mirrorProps(newShape, shape);
1146
+ return newShape;
1090
1147
  }
1091
1148
  function safeExtend(schema, shape) {
1092
1149
  if (!isPlainObject(shape)) {
1093
1150
  throw new Error("Invalid input to safeExtend: expected a plain object");
1094
1151
  }
1095
- const def = mergeDefs(schema._zod.def, {
1096
- get shape() {
1097
- const _shape = { ...schema._zod.def.shape, ...shape };
1098
- assignProp(this, "shape", _shape);
1099
- return _shape;
1100
- }
1101
- });
1102
- return clone(schema, def);
1152
+ return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));
1103
1153
  }
1104
1154
  function merge(a, b) {
1105
1155
  if (!b?._zod?.def) {
@@ -1108,12 +1158,11 @@ function merge(a, b) {
1108
1158
  if (a._zod.def.checks?.length) {
1109
1159
  throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
1110
1160
  }
1161
+ const newShape = {};
1162
+ mirrorShape(newShape, a, Reflect.ownKeys(sourceShape(a)));
1163
+ mirrorShape(newShape, b, Reflect.ownKeys(sourceShape(b)));
1111
1164
  const def = mergeDefs(a._zod.def, {
1112
- get shape() {
1113
- const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
1114
- assignProp(this, "shape", _shape);
1115
- return _shape;
1116
- },
1165
+ shape: newShape,
1117
1166
  get catchall() {
1118
1167
  return b._zod.def.catchall;
1119
1168
  },
@@ -1128,67 +1177,16 @@ function partial(Class, schema, mask, name = "partial") {
1128
1177
  if (hasChecks) {
1129
1178
  throw new Error(`.${name}() cannot be used on object schemas containing refinements`);
1130
1179
  }
1131
- const def = mergeDefs(schema._zod.def, {
1132
- get shape() {
1133
- const oldShape = schema._zod.def.shape;
1134
- const shape = { ...oldShape };
1135
- if (mask) {
1136
- for (const key of Reflect.ownKeys(mask)) {
1137
- if (!Object.prototype.hasOwnProperty.call(oldShape, key)) {
1138
- throw new Error(`Unrecognized key: "${String(key)}"`);
1139
- }
1140
- if (!mask[key])
1141
- continue;
1142
- shape[key] = Class ? new Class({
1143
- type: "optional",
1144
- innerType: oldShape[key]
1145
- }) : oldShape[key];
1146
- }
1147
- } else {
1148
- for (const key of Reflect.ownKeys(oldShape)) {
1149
- shape[key] = Class ? new Class({
1150
- type: "optional",
1151
- innerType: oldShape[key]
1152
- }) : oldShape[key];
1153
- }
1154
- }
1155
- assignProp(this, "shape", shape);
1156
- return shape;
1157
- },
1158
- checks: []
1159
- });
1160
- return clone(schema, def);
1180
+ const selected = mask ? new Set(maskedKeys(schema, mask)) : undefined;
1181
+ const newShape = {};
1182
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class && ((value, key) => selected && !selected.has(key) ? value : new Class({ type: "optional", innerType: value })));
1183
+ return clone(schema, mergeDefs(schema._zod.def, { shape: newShape, checks: [] }));
1161
1184
  }
1162
1185
  function required(Class, schema, mask) {
1163
- const def = mergeDefs(schema._zod.def, {
1164
- get shape() {
1165
- const oldShape = schema._zod.def.shape;
1166
- const shape = { ...oldShape };
1167
- if (mask) {
1168
- for (const key of Reflect.ownKeys(mask)) {
1169
- if (!Object.prototype.hasOwnProperty.call(shape, key)) {
1170
- throw new Error(`Unrecognized key: "${String(key)}"`);
1171
- }
1172
- if (!mask[key])
1173
- continue;
1174
- shape[key] = new Class({
1175
- type: "nonoptional",
1176
- innerType: oldShape[key]
1177
- });
1178
- }
1179
- } else {
1180
- for (const key of Reflect.ownKeys(oldShape)) {
1181
- shape[key] = new Class({
1182
- type: "nonoptional",
1183
- innerType: oldShape[key]
1184
- });
1185
- }
1186
- }
1187
- assignProp(this, "shape", shape);
1188
- return shape;
1189
- }
1190
- });
1191
- return clone(schema, def);
1186
+ const selected = mask ? new Set(maskedKeys(schema, mask)) : undefined;
1187
+ const newShape = {};
1188
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), (value, key) => selected && !selected.has(key) ? value : new Class({ type: "nonoptional", innerType: value }));
1189
+ return clone(schema, mergeDefs(schema._zod.def, { shape: newShape }));
1192
1190
  }
1193
1191
  function aborted(x, startIndex = 0) {
1194
1192
  if (x.aborted === true)
@@ -1238,13 +1236,18 @@ function finalizeIssue(iss, ctx, config) {
1238
1236
  }
1239
1237
  const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : undefined;
1240
1238
  const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
1241
- const { inst: _inst, schema: _schema, continue: _continue, input: _input, ...rest } = iss;
1242
- rest.path ?? (rest.path = []);
1243
- rest.message = message;
1239
+ const full = {};
1240
+ for (const k of Object.keys(iss)) {
1241
+ if (k === "inst" || k === "schema" || k === "continue" || k === "input" || k === "__proto__")
1242
+ continue;
1243
+ full[k] = iss[k];
1244
+ }
1245
+ full.path ?? (full.path = []);
1246
+ full.message = message;
1244
1247
  if (ctx?.reportInput) {
1245
- rest.input = _input;
1248
+ full.input = iss.input;
1246
1249
  }
1247
- return rest;
1250
+ return full;
1248
1251
  }
1249
1252
  function getSizableOrigin(input) {
1250
1253
  if (input instanceof Set)
@@ -1371,6 +1374,22 @@ function own(inst, key, value, enumerable = true) {
1371
1374
  function hide(inst, key, value) {
1372
1375
  return own(inst, key, value, false);
1373
1376
  }
1377
+ function derived(computes, table) {
1378
+ for (const key in computes) {
1379
+ const compute = computes[key];
1380
+ Object.defineProperty(table, key, {
1381
+ configurable: true,
1382
+ enumerable: true,
1383
+ get() {
1384
+ return own(this, key, compute(this));
1385
+ },
1386
+ set(value) {
1387
+ own(this, key, value);
1388
+ }
1389
+ });
1390
+ }
1391
+ return table;
1392
+ }
1374
1393
  function defineBound(proto, key, fn) {
1375
1394
  Object.defineProperty(proto, key, {
1376
1395
  configurable: true,
@@ -1452,7 +1471,7 @@ function constantCatch(value) {
1452
1471
  return fn;
1453
1472
  }
1454
1473
 
1455
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/core.js
1474
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/core.js
1456
1475
  var _a;
1457
1476
  var NEVER = /* @__PURE__ */ Object.freeze({
1458
1477
  status: "aborted"
@@ -1497,8 +1516,7 @@ function $constructor(name, initializer, proto, params) {
1497
1516
  } finally {
1498
1517
  _zodDesc.value = undefined;
1499
1518
  }
1500
- }
1501
- if (inst._zod.traits.has(name)) {
1519
+ } else if (inst._zod.traits.has(name)) {
1502
1520
  return;
1503
1521
  }
1504
1522
  inst._zod.traits.add(name);
@@ -1576,7 +1594,7 @@ function config(newConfig) {
1576
1594
  Object.assign(globalConfig, newConfig);
1577
1595
  return globalConfig;
1578
1596
  }
1579
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/errors.js
1597
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/errors.js
1580
1598
  function _getMessage() {
1581
1599
  const internals = this._zod;
1582
1600
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -1591,16 +1609,12 @@ var _messageDesc = {
1591
1609
  enumerable: true,
1592
1610
  configurable: true
1593
1611
  };
1594
- var _zodDesc2 = { value: undefined, enumerable: false };
1595
1612
  var _issuesDesc = { value: undefined, enumerable: false };
1596
1613
  var _installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
1597
1614
  var initializer = (inst, def) => {
1598
1615
  inst.name = "$ZodError";
1599
- _zodDesc2.value = inst._zod;
1600
- Object.defineProperty(inst, "_zod", _zodDesc2);
1601
1616
  _issuesDesc.value = def;
1602
1617
  Object.defineProperty(inst, "issues", _issuesDesc);
1603
- _zodDesc2.value = undefined;
1604
1618
  _issuesDesc.value = undefined;
1605
1619
  Object.defineProperty(inst, "message", _messageDesc);
1606
1620
  const proto = Object.getPrototypeOf(inst);
@@ -1773,7 +1787,7 @@ function prettifyError(error) {
1773
1787
  `);
1774
1788
  }
1775
1789
 
1776
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/parse.js
1790
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/parse.js
1777
1791
  function finalizeParams(callee, params) {
1778
1792
  return { callee: params?.callee ?? callee, Err: params?.Err };
1779
1793
  }
@@ -1816,33 +1830,50 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
1816
1830
  if (result instanceof Promise) {
1817
1831
  throw new $ZodAsyncError;
1818
1832
  }
1819
- return result.issues.length ? {
1820
- success: false,
1821
- error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
1822
- } : { success: true, data: result.value };
1833
+ return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };
1823
1834
  };
1824
1835
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
1836
+ function failure(Err, issues, ctx) {
1837
+ let error;
1838
+ return {
1839
+ success: false,
1840
+ get error() {
1841
+ if (!error) {
1842
+ error = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
1843
+ issues = undefined;
1844
+ ctx = undefined;
1845
+ }
1846
+ return error;
1847
+ },
1848
+ set error(e) {
1849
+ error = e;
1850
+ issues = undefined;
1851
+ ctx = undefined;
1852
+ }
1853
+ };
1854
+ }
1825
1855
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1826
1856
  const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1827
1857
  let result = schema._zod.run({ value, issues: [] }, ctx);
1828
1858
  if (result instanceof Promise)
1829
1859
  result = await result;
1830
- return result.issues.length ? {
1831
- success: false,
1832
- error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
1833
- } : { success: true, data: result.value };
1860
+ return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };
1834
1861
  };
1835
1862
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1836
1863
  var COMPILE_INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
1837
1864
  var COMPILE_FALLBACK = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
1838
1865
  var validate = (schema, value, _ctx) => {
1839
1866
  const validator = schema._zod.bag.validator;
1840
- if (validator !== undefined && validator(value) !== COMPILE_INVALID)
1841
- return true;
1867
+ if (validator !== undefined) {
1868
+ if (validator(value) !== COMPILE_INVALID)
1869
+ return true;
1870
+ if (validator.definite === true && _ctx === undefined)
1871
+ return false;
1872
+ }
1842
1873
  return validateFallback(schema, value, _ctx);
1843
1874
  };
1844
1875
  function validateFallback(schema, value, _ctx) {
1845
- const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1876
+ const ctx = _ctx ? { ..._ctx, async: false, abortEarly: true } : { async: false, abortEarly: true };
1846
1877
  const fallbackRun = schema._zod.bag.fallbackRun;
1847
1878
  let result;
1848
1879
  if (fallbackRun) {
@@ -1857,7 +1888,7 @@ function validateFallback(schema, value, _ctx) {
1857
1888
  return result.issues.length === 0;
1858
1889
  }
1859
1890
  var validateAsync = async (schema, value, _ctx) => {
1860
- const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
1891
+ const ctx = _ctx ? { ..._ctx, async: true, abortEarly: true } : { async: true, abortEarly: true };
1861
1892
  let result = schema._zod.run({ value, issues: [] }, ctx);
1862
1893
  if (result instanceof Promise)
1863
1894
  result = await result;
@@ -1915,9 +1946,10 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1915
1946
  return _safeParseAsync(_Err)(schema, value, _ctx);
1916
1947
  };
1917
1948
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1918
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/regexes.js
1949
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/regexes.js
1919
1950
  var exports_regexes = {};
1920
1951
  __export(exports_regexes, {
1952
+ anyString: () => anyString,
1921
1953
  base64: () => base64,
1922
1954
  base64url: () => base64url,
1923
1955
  bigint: () => bigint,
@@ -1928,6 +1960,7 @@ __export(exports_regexes, {
1928
1960
  creditCard: () => creditCard,
1929
1961
  cuid: () => cuid,
1930
1962
  cuid2: () => cuid2,
1963
+ currencyCode: () => currencyCode,
1931
1964
  date: () => date,
1932
1965
  datetime: () => datetime,
1933
1966
  domain: () => domain,
@@ -1941,6 +1974,7 @@ __export(exports_regexes, {
1941
1974
  hostname: () => hostname,
1942
1975
  html5Email: () => html5Email,
1943
1976
  httpProtocol: () => httpProtocol,
1977
+ iban: () => iban,
1944
1978
  idnEmail: () => idnEmail,
1945
1979
  integer: () => integer,
1946
1980
  ipv4: () => ipv4,
@@ -2000,13 +2034,13 @@ var uuid = (version) => {
2000
2034
  var uuid4 = /* @__PURE__ */ uuid(4);
2001
2035
  var uuid6 = /* @__PURE__ */ uuid(6);
2002
2036
  var uuid7 = /* @__PURE__ */ uuid(7);
2003
- var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
2037
+ var email = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
2004
2038
  var html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
2005
2039
  var rfc5322Email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2006
2040
  var unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
2007
2041
  var idnEmail = unicodeEmail;
2008
2042
  var browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
2009
- var _emoji = `^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
2043
+ var _emoji = `^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
2010
2044
  function emoji() {
2011
2045
  return new RegExp(_emoji, "u");
2012
2046
  }
@@ -2019,12 +2053,14 @@ var mac = (delimiter) => {
2019
2053
  var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
2020
2054
  var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
2021
2055
  var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
2022
- var base64url = /^[A-Za-z0-9_-]*$/;
2056
+ var base64url = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;
2023
2057
  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])?)*\.?$/;
2024
2058
  var domain = /^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/;
2025
2059
  var httpProtocol = /^https?$/;
2026
2060
  var e164 = /^\+[1-9]\d{6,14}$/;
2027
2061
  var creditCard = /^\d(?:[ -]?\d){11,18}$/;
2062
+ var currencyCode = /^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/;
2063
+ var iban = /^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;
2028
2064
  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])))`;
2029
2065
  function anchor(source) {
2030
2066
  return new RegExp(`^${source}$`);
@@ -2046,6 +2082,7 @@ function datetime(args) {
2046
2082
  const timeRegex = args.local ? `${qualified}|${timeSource({ precision: args.precision })}` : qualified;
2047
2083
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
2048
2084
  }
2085
+ var anyString = /^[\s\S]{0,}$/;
2049
2086
  var string = (params) => {
2050
2087
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
2051
2088
  return new RegExp(`^${regex}$`);
@@ -2081,7 +2118,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
2081
2118
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
2082
2119
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2083
2120
 
2084
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/checks.js
2121
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/checks.js
2085
2122
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2086
2123
  var _a2;
2087
2124
  inst._zod ?? (inst._zod = {});
@@ -2104,16 +2141,6 @@ var numericOriginMap = {
2104
2141
  var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
2105
2142
  $ZodCheck.init(inst, def);
2106
2143
  const origin = numericOriginMap[typeof def.value];
2107
- inst._zod.onattach.push((inst2) => {
2108
- const bag = inst2._zod.bag;
2109
- const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
2110
- if (def.value < curr) {
2111
- if (def.inclusive)
2112
- bag.maximum = def.value;
2113
- else
2114
- bag.exclusiveMaximum = def.value;
2115
- }
2116
- });
2117
2144
  inst._zod.check = (payload) => {
2118
2145
  if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {
2119
2146
  return;
@@ -2132,16 +2159,6 @@ var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst,
2132
2159
  var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
2133
2160
  $ZodCheck.init(inst, def);
2134
2161
  const origin = numericOriginMap[typeof def.value];
2135
- inst._zod.onattach.push((inst2) => {
2136
- const bag = inst2._zod.bag;
2137
- const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
2138
- if (def.value > curr) {
2139
- if (def.inclusive)
2140
- bag.minimum = def.value;
2141
- else
2142
- bag.exclusiveMinimum = def.value;
2143
- }
2144
- });
2145
2162
  inst._zod.check = (payload) => {
2146
2163
  if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {
2147
2164
  return;
@@ -2159,10 +2176,6 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2159
2176
  });
2160
2177
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2161
2178
  $ZodCheck.init(inst, def);
2162
- inst._zod.onattach.push((inst2) => {
2163
- var _a2;
2164
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
2165
- });
2166
2179
  inst._zod.check = (payload) => {
2167
2180
  if (typeof payload.value !== typeof def.value)
2168
2181
  throw new Error("Cannot mix number and bigint in multiple_of check.");
@@ -2185,14 +2198,6 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
2185
2198
  const isInt = def.format?.includes("int");
2186
2199
  const origin = isInt ? "int" : "number";
2187
2200
  const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
2188
- inst._zod.onattach.push((inst2) => {
2189
- const bag = inst2._zod.bag;
2190
- bag.format = def.format;
2191
- bag.minimum = minimum;
2192
- bag.maximum = maximum;
2193
- if (isInt)
2194
- bag.pattern = integer;
2195
- });
2196
2201
  inst._zod.check = (payload) => {
2197
2202
  const input = payload.value;
2198
2203
  if (isInt) {
@@ -2261,12 +2266,6 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
2261
2266
  var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat", (inst, def) => {
2262
2267
  $ZodCheck.init(inst, def);
2263
2268
  const [minimum, maximum] = BIGINT_FORMAT_RANGES[def.format];
2264
- inst._zod.onattach.push((inst2) => {
2265
- const bag = inst2._zod.bag;
2266
- bag.format = def.format;
2267
- bag.minimum = minimum;
2268
- bag.maximum = maximum;
2269
- });
2270
2269
  inst._zod.check = (payload) => {
2271
2270
  const input = payload.value;
2272
2271
  if (input < minimum) {
@@ -2297,11 +2296,6 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2297
2296
  var _a2;
2298
2297
  $ZodCheck.init(inst, def);
2299
2298
  (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasSize);
2300
- inst._zod.onattach.push((inst2) => {
2301
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
2302
- if (def.maximum < curr)
2303
- inst2._zod.bag.maximum = def.maximum;
2304
- });
2305
2299
  inst._zod.check = (payload) => {
2306
2300
  const input = payload.value;
2307
2301
  const size = input.size;
@@ -2322,11 +2316,6 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2322
2316
  var _a2;
2323
2317
  $ZodCheck.init(inst, def);
2324
2318
  (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasSize);
2325
- inst._zod.onattach.push((inst2) => {
2326
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
2327
- if (def.minimum > curr)
2328
- inst2._zod.bag.minimum = def.minimum;
2329
- });
2330
2319
  inst._zod.check = (payload) => {
2331
2320
  const input = payload.value;
2332
2321
  const size = input.size;
@@ -2347,12 +2336,6 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2347
2336
  var _a2;
2348
2337
  $ZodCheck.init(inst, def);
2349
2338
  (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasSize);
2350
- inst._zod.onattach.push((inst2) => {
2351
- const bag = inst2._zod.bag;
2352
- bag.minimum = def.size;
2353
- bag.maximum = def.size;
2354
- bag.size = def.size;
2355
- });
2356
2339
  inst._zod.check = (payload) => {
2357
2340
  const input = payload.value;
2358
2341
  const size = input.size;
@@ -2374,11 +2357,6 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2374
2357
  var _a2;
2375
2358
  $ZodCheck.init(inst, def);
2376
2359
  (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasLength);
2377
- inst._zod.onattach.push((inst2) => {
2378
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
2379
- if (def.maximum < curr)
2380
- inst2._zod.bag.maximum = def.maximum;
2381
- });
2382
2360
  inst._zod.check = (payload) => {
2383
2361
  const input = payload.value;
2384
2362
  const units = input.length;
@@ -2401,11 +2379,6 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2401
2379
  var _a2;
2402
2380
  $ZodCheck.init(inst, def);
2403
2381
  (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasLength);
2404
- inst._zod.onattach.push((inst2) => {
2405
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
2406
- if (def.minimum > curr)
2407
- inst2._zod.bag.minimum = def.minimum;
2408
- });
2409
2382
  inst._zod.check = (payload) => {
2410
2383
  const input = payload.value;
2411
2384
  const units = input.length;
@@ -2428,12 +2401,6 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2428
2401
  var _a2;
2429
2402
  $ZodCheck.init(inst, def);
2430
2403
  (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasLength);
2431
- inst._zod.onattach.push((inst2) => {
2432
- const bag = inst2._zod.bag;
2433
- bag.minimum = def.length;
2434
- bag.maximum = def.length;
2435
- bag.length = def.length;
2436
- });
2437
2404
  inst._zod.check = (payload) => {
2438
2405
  const input = payload.value;
2439
2406
  const units = input.length;
@@ -2456,14 +2423,6 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2456
2423
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2457
2424
  var _a2, _b;
2458
2425
  $ZodCheck.init(inst, def);
2459
- inst._zod.onattach.push((inst2) => {
2460
- const bag = inst2._zod.bag;
2461
- bag.format = def.format;
2462
- if (def.pattern) {
2463
- bag.patterns ?? (bag.patterns = new Set);
2464
- bag.patterns.add(def.pattern);
2465
- }
2466
- });
2467
2426
  if (def.pattern)
2468
2427
  (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2469
2428
  def.pattern.lastIndex = 0;
@@ -2512,11 +2471,6 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
2512
2471
  const escapedRegex = escapeRegex(def.includes);
2513
2472
  const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);
2514
2473
  def.pattern = pattern;
2515
- inst._zod.onattach.push((inst2) => {
2516
- const bag = inst2._zod.bag;
2517
- bag.patterns ?? (bag.patterns = new Set);
2518
- bag.patterns.add(pattern);
2519
- });
2520
2474
  inst._zod.check = (payload) => {
2521
2475
  if (payload.value.includes(def.includes, def.position))
2522
2476
  return;
@@ -2535,11 +2489,6 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
2535
2489
  $ZodCheck.init(inst, def);
2536
2490
  const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
2537
2491
  def.pattern ?? (def.pattern = pattern);
2538
- inst._zod.onattach.push((inst2) => {
2539
- const bag = inst2._zod.bag;
2540
- bag.patterns ?? (bag.patterns = new Set);
2541
- bag.patterns.add(pattern);
2542
- });
2543
2492
  inst._zod.check = (payload) => {
2544
2493
  if (payload.value.startsWith(def.prefix))
2545
2494
  return;
@@ -2558,11 +2507,6 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
2558
2507
  $ZodCheck.init(inst, def);
2559
2508
  const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
2560
2509
  def.pattern ?? (def.pattern = pattern);
2561
- inst._zod.onattach.push((inst2) => {
2562
- const bag = inst2._zod.bag;
2563
- bag.patterns ?? (bag.patterns = new Set);
2564
- bag.patterns.add(pattern);
2565
- });
2566
2510
  inst._zod.check = (payload) => {
2567
2511
  if (payload.value.endsWith(def.suffix))
2568
2512
  return;
@@ -2596,12 +2540,39 @@ var $ZodCheckProperty = /* @__PURE__ */ $constructor("$ZodCheckProperty", (inst,
2596
2540
  return;
2597
2541
  };
2598
2542
  });
2543
+ var $ZodCheckProperties = /* @__PURE__ */ $constructor("$ZodCheckProperties", (inst, def) => {
2544
+ $ZodCheck.init(inst, def);
2545
+ hide(inst, Symbol.iterator, function* () {
2546
+ yield inst;
2547
+ });
2548
+ let entries;
2549
+ inst._zod.check = (payload) => {
2550
+ if (payload.value == null) {
2551
+ payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
2552
+ return;
2553
+ }
2554
+ entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));
2555
+ const input = payload.value;
2556
+ let proms;
2557
+ for (const [key, schema] of entries) {
2558
+ const result = schema._zod.run({ value: input[key], issues: [] }, {});
2559
+ if (result instanceof Promise) {
2560
+ proms ?? (proms = []);
2561
+ proms.push(result.then((result2) => handleCheckPropertyResult(result2, payload, key)));
2562
+ } else {
2563
+ handleCheckPropertyResult(result, payload, key);
2564
+ }
2565
+ }
2566
+ if (proms)
2567
+ return Promise.all(proms).then(() => {
2568
+ return;
2569
+ });
2570
+ return;
2571
+ };
2572
+ });
2599
2573
  var $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (inst, def) => {
2600
2574
  $ZodCheck.init(inst, def);
2601
2575
  const mimeSet = new Set(def.mime);
2602
- inst._zod.onattach.push((inst2) => {
2603
- inst2._zod.bag.mime = def.mime;
2604
- });
2605
2576
  inst._zod.check = (payload) => {
2606
2577
  if (mimeSet.has(payload.value.type))
2607
2578
  return;
@@ -2621,7 +2592,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2621
2592
  };
2622
2593
  });
2623
2594
 
2624
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/doc.js
2595
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/doc.js
2625
2596
  class Doc {
2626
2597
  constructor(args = [], closed = {}) {
2627
2598
  this.content = [];
@@ -2631,8 +2602,11 @@ class Doc {
2631
2602
  }
2632
2603
  indented(fn) {
2633
2604
  this.indent += 1;
2634
- fn(this);
2635
- this.indent -= 1;
2605
+ try {
2606
+ fn(this);
2607
+ } finally {
2608
+ this.indent -= 1;
2609
+ }
2636
2610
  }
2637
2611
  write(arg) {
2638
2612
  if (typeof arg === "function") {
@@ -2660,14 +2634,14 @@ ${content.join(`
2660
2634
  }
2661
2635
  }
2662
2636
 
2663
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/versions.js
2637
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/versions.js
2664
2638
  var version = {
2665
2639
  major: 4,
2666
- minor: 5,
2667
- patch: 4
2640
+ minor: 6,
2641
+ patch: 5
2668
2642
  };
2669
2643
 
2670
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/schemas.js
2644
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/schemas.js
2671
2645
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2672
2646
  var _a2;
2673
2647
  inst ?? (inst = {});
@@ -2776,15 +2750,21 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2776
2750
  own(this, "~standard", value);
2777
2751
  }
2778
2752
  });
2779
- var toStandardResult = (r) => r.success ? { value: r.data } : { issues: r.error?.issues };
2753
+ var toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value };
2754
+ async function validateAsync2(inst, value) {
2755
+ const ctx = { async: true };
2756
+ return toStandardResult(await inst._zod.run({ value, issues: [] }, ctx), ctx);
2757
+ }
2780
2758
  function standardProps(inst) {
2781
2759
  return {
2782
2760
  validate: (value) => {
2761
+ const ctx = { async: false };
2783
2762
  try {
2784
- return toStandardResult(safeParse(inst, value));
2785
- } catch (_) {
2786
- return safeParseAsync(inst, value).then(toStandardResult);
2787
- }
2763
+ const r = inst._zod.run({ value, issues: [] }, ctx);
2764
+ if (!(r instanceof Promise))
2765
+ return toStandardResult(r, ctx);
2766
+ } catch (_) {}
2767
+ return validateAsync2(inst, value);
2788
2768
  },
2789
2769
  vendor: "zod",
2790
2770
  version: 1
@@ -2792,7 +2772,7 @@ function standardProps(inst) {
2792
2772
  }
2793
2773
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
2794
2774
  $ZodType.init(inst, def);
2795
- inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag);
2775
+ inst._zod.pattern = def.pattern ?? anyString;
2796
2776
  inst._zod.parse = (payload, _) => {
2797
2777
  if (def.coerce)
2798
2778
  try {
@@ -2843,11 +2823,32 @@ var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
2843
2823
  });
2844
2824
  var URL_BAD_FORMAT = 1;
2845
2825
  var URL_UNPARSEABLE = 2;
2826
+ function canParseURL(input) {
2827
+ try {
2828
+ if (typeof URL !== "undefined" && typeof URL.canParse === "function")
2829
+ return URL.canParse(input);
2830
+ new URL(input);
2831
+ return true;
2832
+ } catch {
2833
+ return false;
2834
+ }
2835
+ }
2836
+ function validateURL(trimmed, def) {
2837
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) {
2838
+ return canParseURL(trimmed) || URL_UNPARSEABLE;
2839
+ }
2840
+ return parseURLObject(trimmed, def);
2841
+ }
2846
2842
  function parseURLObject(trimmed, def) {
2847
2843
  if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) {
2848
2844
  return URL_BAD_FORMAT;
2849
2845
  }
2850
2846
  try {
2847
+ if (typeof URL !== "undefined") {
2848
+ const URLStatic = URL;
2849
+ if (typeof URLStatic.parse === "function")
2850
+ return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
2851
+ }
2851
2852
  return new URL(trimmed);
2852
2853
  } catch {
2853
2854
  return URL_UNPARSEABLE;
@@ -2870,7 +2871,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
2870
2871
  inst._zod.check = (payload) => {
2871
2872
  try {
2872
2873
  const trimmed = payload.value.trim();
2873
- const url = parseURLObject(trimmed, def);
2874
+ const url = validateURL(trimmed, def);
2874
2875
  if (url === URL_BAD_FORMAT) {
2875
2876
  payload.issues.push({
2876
2877
  code: "invalid_format",
@@ -2892,6 +2893,10 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
2892
2893
  });
2893
2894
  return;
2894
2895
  }
2896
+ if (url === true) {
2897
+ payload.value = stripTabAndNewline(trimmed);
2898
+ return;
2899
+ }
2895
2900
  if (def.hostname && !urlHostnameOk(url, def.hostname)) {
2896
2901
  payload.issues.push({
2897
2902
  code: "invalid_format",
@@ -2960,12 +2965,6 @@ var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
2960
2965
  var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
2961
2966
  def.pattern ?? (def.pattern = datetime(def));
2962
2967
  $ZodStringFormat.init(inst, def);
2963
- if (def.local || def.precision === -1) {
2964
- inst._zod.bag.laxFormat = true;
2965
- inst._zod.onattach.push((s) => {
2966
- s._zod.bag.laxFormat = true;
2967
- });
2968
- }
2969
2968
  });
2970
2969
  var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
2971
2970
  def.pattern ?? (def.pattern = date);
@@ -2982,23 +2981,16 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
2982
2981
  var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
2983
2982
  def.pattern ?? (def.pattern = ipv4);
2984
2983
  $ZodStringFormat.init(inst, def);
2985
- inst._zod.bag.format = `ipv4`;
2986
2984
  });
2987
2985
  var ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
2988
2986
  function isValidIPv6(value) {
2989
2987
  if (!ipv6Alphabet.test(value))
2990
2988
  return false;
2991
- try {
2992
- new URL(`http://[${value}]`);
2993
- return true;
2994
- } catch {
2995
- return false;
2996
- }
2989
+ return canParseURL(`http://[${value}]`);
2997
2990
  }
2998
2991
  var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
2999
2992
  def.pattern ?? (def.pattern = ipv6);
3000
2993
  $ZodStringFormat.init(inst, def);
3001
- inst._zod.bag.format = `ipv6`;
3002
2994
  inst._zod.check = (payload) => {
3003
2995
  if (!isValidIPv6(payload.value)) {
3004
2996
  payload.issues.push({
@@ -3014,7 +3006,6 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
3014
3006
  var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => {
3015
3007
  def.pattern ?? (def.pattern = mac(def.delimiter));
3016
3008
  $ZodStringFormat.init(inst, def);
3017
- inst._zod.bag.format = `mac`;
3018
3009
  });
3019
3010
  var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
3020
3011
  def.pattern ?? (def.pattern = cidrv4);
@@ -3063,10 +3054,10 @@ function isValidBase64(data) {
3063
3054
  return false;
3064
3055
  }
3065
3056
  }
3057
+ var base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/;
3066
3058
  var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
3067
- def.pattern ?? (def.pattern = base64);
3059
+ def.pattern ?? (def.pattern = base64Charset);
3068
3060
  $ZodStringFormat.init(inst, def);
3069
- inst._zod.bag.contentEncoding = "base64";
3070
3061
  inst._zod.check = (payload) => {
3071
3062
  if (isValidBase64(payload.value))
3072
3063
  return;
@@ -3079,17 +3070,17 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
3079
3070
  });
3080
3071
  };
3081
3072
  });
3073
+ var base64urlCharset = /^[A-Za-z0-9_-]*$/;
3082
3074
  function isValidBase64URL(data) {
3083
- if (!base64url.test(data))
3075
+ if (!base64urlCharset.test(data))
3084
3076
  return false;
3085
3077
  const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
3086
3078
  const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
3087
3079
  return isValidBase64(padded);
3088
3080
  }
3089
3081
  var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
3090
- def.pattern ?? (def.pattern = base64url);
3082
+ def.pattern ?? (def.pattern = base64urlCharset);
3091
3083
  $ZodStringFormat.init(inst, def);
3092
- inst._zod.bag.contentEncoding = "base64url";
3093
3084
  inst._zod.check = (payload) => {
3094
3085
  if (isValidBase64URL(payload.value))
3095
3086
  return;
@@ -3112,7 +3103,7 @@ function isLuhnAlgo(digits) {
3112
3103
  let bit = 1;
3113
3104
  let sum = 0;
3114
3105
  while (length) {
3115
- const value = +digits[--length];
3106
+ const value = digits.charCodeAt(--length) - 48;
3116
3107
  bit ^= 1;
3117
3108
  sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][value] : value;
3118
3109
  }
@@ -3138,6 +3129,39 @@ var $ZodCreditCard = /* @__PURE__ */ $constructor("$ZodCreditCard", (inst, def)
3138
3129
  });
3139
3130
  };
3140
3131
  });
3132
+ function isIso7064Mod97(iban2) {
3133
+ let remainder = 0;
3134
+ const len = iban2.length;
3135
+ for (let i = 4;i < len; i++) {
3136
+ const code = iban2.charCodeAt(i);
3137
+ remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;
3138
+ }
3139
+ for (let i = 0;i < 4; i++) {
3140
+ const code = iban2.charCodeAt(i);
3141
+ remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;
3142
+ }
3143
+ return remainder === 1;
3144
+ }
3145
+ function isValidIBAN(input) {
3146
+ if (!iban.test(input))
3147
+ return false;
3148
+ return isIso7064Mod97(input);
3149
+ }
3150
+ var $ZodIBAN = /* @__PURE__ */ $constructor("$ZodIBAN", (inst, def) => {
3151
+ def.pattern ?? (def.pattern = iban);
3152
+ $ZodStringFormat.init(inst, def);
3153
+ inst._zod.check = (payload) => {
3154
+ if (isValidIBAN(payload.value))
3155
+ return;
3156
+ payload.issues.push({
3157
+ code: "invalid_format",
3158
+ format: "iban",
3159
+ input: payload.value,
3160
+ inst,
3161
+ continue: !def.abort
3162
+ });
3163
+ };
3164
+ });
3141
3165
  function isValidJWT(token, algorithm = null) {
3142
3166
  try {
3143
3167
  const tokensParts = token.split(".");
@@ -3188,7 +3212,7 @@ var $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringForma
3188
3212
  });
3189
3213
  var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
3190
3214
  $ZodType.init(inst, def);
3191
- inst._zod.pattern = inst._zod.bag.pattern ?? number;
3215
+ inst._zod.pattern = number;
3192
3216
  inst._zod.parse = (payload, _ctx) => {
3193
3217
  if (def.coerce)
3194
3218
  try {
@@ -3386,6 +3410,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3386
3410
  }
3387
3411
  payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
3388
3412
  const proms = [];
3413
+ const abortEarly = ctx?.abortEarly;
3389
3414
  for (let i = 0;i < input.length; i++) {
3390
3415
  const item = input[i];
3391
3416
  const result = def.element._zod.run({
@@ -3396,6 +3421,8 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3396
3421
  proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
3397
3422
  } else {
3398
3423
  handleArrayResult(result, payload, i);
3424
+ if (abortEarly && result.issues.length !== 0 && aborted(result))
3425
+ break;
3399
3426
  }
3400
3427
  }
3401
3428
  if (proms.length) {
@@ -3428,7 +3455,7 @@ function handlePropertyResult(result, final, key, input, optin, optout) {
3428
3455
  return;
3429
3456
  }
3430
3457
  if (result.value === undefined) {
3431
- if (isPresent) {
3458
+ if (isPresent || optin === "defaulted" && !isOptionalOut) {
3432
3459
  final.value[key] = undefined;
3433
3460
  }
3434
3461
  } else {
@@ -3456,14 +3483,20 @@ function normalizeDef(def) {
3456
3483
  optionalKeys: new Set(okeys)
3457
3484
  };
3458
3485
  }
3459
- function handleCatchall(proms, input, payload, ctx, def, inst) {
3486
+ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
3460
3487
  const unrecognized = [];
3461
3488
  const keySet = def.keySet;
3462
3489
  const _catchall = def.catchall._zod;
3463
3490
  const t = _catchall.def.type;
3464
3491
  const optin = _catchall.optin;
3465
3492
  const optout = _catchall.optout;
3493
+ let seen = 0;
3466
3494
  for (const key in input) {
3495
+ if (abortEarly && payload.issues.length !== seen) {
3496
+ if (aborted(payload, seen))
3497
+ break;
3498
+ seen = payload.issues.length;
3499
+ }
3467
3500
  if (keySet.has(key))
3468
3501
  continue;
3469
3502
  if (key === "__proto__") {
@@ -3497,23 +3530,19 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3497
3530
  return payload;
3498
3531
  });
3499
3532
  }
3500
- var propShapes = new WeakMap;
3501
3533
  var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3502
3534
  $ZodType.init(inst, def);
3503
3535
  const desc = Object.getOwnPropertyDescriptor(def, "shape");
3504
- if (!desc?.get) {
3505
- const sh = def.shape;
3506
- propShapes.set(def, sh);
3507
- Object.defineProperty(def, "shape", {
3508
- get: () => {
3509
- const newSh = { ...sh };
3510
- Object.defineProperty(def, "shape", {
3511
- value: newSh
3512
- });
3513
- propShapes.set(def, newSh);
3514
- return newSh;
3515
- }
3516
- });
3536
+ const sh = desc?.get ? desc.get.raw : def.shape ?? {};
3537
+ if (sh) {
3538
+ const get = () => {
3539
+ const newSh = { ...sh };
3540
+ Object.defineProperty(def, "shape", { value: newSh });
3541
+ get.raw = newSh;
3542
+ return newSh;
3543
+ };
3544
+ get.raw = sh;
3545
+ Object.defineProperty(def, "shape", { get });
3517
3546
  }
3518
3547
  const _normalized = cached(() => normalizeDef(def));
3519
3548
  defineLazyInternal(inst, "propValues", (zod) => {
@@ -3553,7 +3582,14 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3553
3582
  payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
3554
3583
  const proms = [];
3555
3584
  const shape = value.shape;
3585
+ const abortEarly = ctx?.abortEarly;
3586
+ let seen = payload.issues.length;
3556
3587
  for (const key of value.allKeys) {
3588
+ if (abortEarly && payload.issues.length !== seen) {
3589
+ if (aborted(payload, seen))
3590
+ break;
3591
+ seen = payload.issues.length;
3592
+ }
3557
3593
  if (key === "__proto__")
3558
3594
  continue;
3559
3595
  const el = shape[key];
@@ -3569,7 +3605,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3569
3605
  if (!catchall) {
3570
3606
  return proms.length ? Promise.all(proms).then(() => payload) : payload;
3571
3607
  }
3572
- return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
3608
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);
3573
3609
  };
3574
3610
  });
3575
3611
  var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
@@ -3583,10 +3619,16 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3583
3619
  const doc = new Doc(["payload", "ctx"], { shape, inst, memo, syms });
3584
3620
  const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
3585
3621
  const prefixStr = (id, k) => `
3622
+ let ${id}_ab = false;
3586
3623
  for (let i = 0; i < ${id}.issues.length; i++) {
3587
3624
  const iss = ${id}.issues[i];
3588
3625
  iss.path = iss.path ? [${k}, ...iss.path] : [${k}];
3589
3626
  payload.issues.push(iss);
3627
+ if (iss.continue !== true) ${id}_ab = true;
3628
+ }
3629
+ if (${id}_ab && ctx && ctx.abortEarly) {
3630
+ payload.value = newResult;
3631
+ return payload;
3590
3632
  }`;
3591
3633
  doc.write(`const input = payload.value;`);
3592
3634
  const ids = Object.create(null);
@@ -3632,6 +3674,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3632
3674
  input: undefined,
3633
3675
  path: [${k}]
3634
3676
  });
3677
+ if (ctx && ctx.abortEarly) {
3678
+ payload.value = newResult;
3679
+ return payload;
3680
+ }
3635
3681
  }
3636
3682
 
3637
3683
  if (${id}_present) {
@@ -3643,16 +3689,16 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3643
3689
  doc.write(`
3644
3690
  if (${id}.issues.length) {${prefixStr(id, k)}
3645
3691
  }
3646
-
3647
- if (${id}.value === undefined) {
3648
- if (${isPresent}) {
3649
- newResult[${k}] = undefined;
3650
- }
3692
+ `);
3693
+ if (optin === "defaulted") {
3694
+ doc.write(`newResult[${k}] = ${id}.value;`);
3651
3695
  } else {
3696
+ doc.write(`
3697
+ if (${id}.value !== undefined || ${isPresent}) {
3652
3698
  newResult[${k}] = ${id}.value;
3653
3699
  }
3654
-
3655
3700
  `);
3701
+ }
3656
3702
  }
3657
3703
  }
3658
3704
  doc.write(`payload.value = newResult;`);
@@ -3684,7 +3730,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3684
3730
  payload = fastpass(payload, ctx);
3685
3731
  if (!catchall)
3686
3732
  return payload;
3687
- return handleCatchall([], input, payload, ctx, value, inst);
3733
+ return handleCatchall([], input, payload, ctx, value, inst, ctx?.abortEarly === true);
3688
3734
  }
3689
3735
  return superParse(payload, ctx);
3690
3736
  };
@@ -3816,16 +3862,31 @@ function getDiscriminatedOption(union, value) {
3816
3862
  const internals = union._zod;
3817
3863
  let map = internals.bag.optionsMap;
3818
3864
  if (!map) {
3819
- map = new Map;
3820
- const { options, discriminator } = internals.def;
3821
- for (const option of options) {
3822
- for (const v of option._zod.propValues?.[discriminator] ?? [])
3823
- if (!map.has(v))
3824
- map.set(v, option);
3825
- }
3865
+ map = discriminatorMap(internals.def);
3826
3866
  internals.bag.optionsMap = map;
3827
3867
  }
3828
- return map.get(value);
3868
+ const option = map.get(value);
3869
+ if (option === null)
3870
+ throw new Error(`Ambiguous discriminator value "${String(value)}"`);
3871
+ return option;
3872
+ }
3873
+ function discriminatorMap(def) {
3874
+ const map = new Map;
3875
+ for (const option of def.options) {
3876
+ const values = option._zod.propValues?.[def.discriminator];
3877
+ if (!values || values.size === 0)
3878
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
3879
+ for (const value of values) {
3880
+ if (map.has(value)) {
3881
+ if (value !== undefined)
3882
+ throw new Error(`Duplicate discriminator value "${String(value)}"`);
3883
+ map.set(value, null);
3884
+ } else {
3885
+ map.set(value, option);
3886
+ }
3887
+ }
3888
+ }
3889
+ return map;
3829
3890
  }
3830
3891
  var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
3831
3892
  def.inclusive = false;
@@ -3833,10 +3894,13 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3833
3894
  const _super = inst._zod.parse;
3834
3895
  defineLazyInternal(inst, "propValues", (zod) => {
3835
3896
  const propValues = {};
3897
+ let undefinedCount = 0;
3836
3898
  for (const option of zod.def.options) {
3837
3899
  const pv = option._zod.propValues;
3838
3900
  if (!pv || Object.keys(pv).length === 0)
3839
3901
  throw new Error(`Invalid discriminated union option at index "${zod.def.options.indexOf(option)}"`);
3902
+ if (pv[zod.def.discriminator]?.has(undefined))
3903
+ undefinedCount++;
3840
3904
  for (const [k, v] of Object.entries(pv)) {
3841
3905
  if (!Object.prototype.hasOwnProperty.call(propValues, k)) {
3842
3906
  assignProp(propValues, k, new Set);
@@ -3846,30 +3910,17 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3846
3910
  }
3847
3911
  }
3848
3912
  }
3913
+ if (!zod.def.unionFallback && undefinedCount > 1)
3914
+ propValues[zod.def.discriminator]?.delete(undefined);
3849
3915
  return propValues;
3850
3916
  });
3851
3917
  def.options.forEach((option, i) => {
3852
- const propShape = propShapes.get(option._zod.def);
3918
+ const propShape = rawShape(option._zod.def);
3853
3919
  if (propShape && !Object.prototype.hasOwnProperty.call(propShape, def.discriminator)) {
3854
3920
  throw new Error(`Invalid discriminated union option at index "${i}"`);
3855
3921
  }
3856
3922
  });
3857
- const disc = cached(() => {
3858
- const opts = def.options;
3859
- const map = new Map;
3860
- for (const o of opts) {
3861
- const values = o._zod.propValues?.[def.discriminator];
3862
- if (!values || values.size === 0)
3863
- throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
3864
- for (const v of values) {
3865
- if (map.has(v)) {
3866
- throw new Error(`Duplicate discriminator value "${String(v)}"`);
3867
- }
3868
- map.set(v, o);
3869
- }
3870
- }
3871
- return map;
3872
- });
3923
+ const disc = cached(() => discriminatorMap(def));
3873
3924
  inst._zod.parse = (payload, ctx) => {
3874
3925
  const input = payload.value;
3875
3926
  if (!isObject(input)) {
@@ -3881,8 +3932,9 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3881
3932
  });
3882
3933
  return payload;
3883
3934
  }
3884
- const opt = disc.value.get(input?.[def.discriminator]);
3885
- if (opt) {
3935
+ const value = input?.[def.discriminator];
3936
+ const opt = disc.value.get(value);
3937
+ if (opt && (value !== undefined || ctx.direction !== "backward")) {
3886
3938
  return opt._zod.run(payload, ctx);
3887
3939
  }
3888
3940
  if (def.unionFallback || ctx.direction === "backward") {
@@ -3893,7 +3945,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
3893
3945
  errors: [],
3894
3946
  note: "No matching discriminator",
3895
3947
  discriminator: def.discriminator,
3896
- options: Array.from(disc.value.keys()),
3948
+ options: Array.from(disc.value.keys()).filter((value2) => disc.value.get(value2) !== null),
3897
3949
  input,
3898
3950
  path: [def.discriminator],
3899
3951
  inst
@@ -4059,6 +4111,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
4059
4111
  }
4060
4112
  }
4061
4113
  const itemResults = new Array(items.length);
4114
+ const abortEarly = def.rest ? ctx?.abortEarly : undefined;
4115
+ let itemAborted = false;
4062
4116
  for (let i = 0;i < items.length; i++) {
4063
4117
  const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
4064
4118
  if (r instanceof Promise) {
@@ -4067,12 +4121,20 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
4067
4121
  }));
4068
4122
  } else {
4069
4123
  itemResults[i] = r;
4124
+ if (abortEarly && !itemAborted && r.issues.length)
4125
+ itemAborted = aborted(r);
4070
4126
  }
4071
4127
  }
4072
- if (def.rest) {
4128
+ if (def.rest && !itemAborted) {
4073
4129
  let i = items.length - 1;
4074
4130
  const rest = input.slice(items.length);
4131
+ let seen = payload.issues.length;
4075
4132
  for (const el of rest) {
4133
+ if (abortEarly && payload.issues.length !== seen) {
4134
+ if (aborted(payload, seen))
4135
+ break;
4136
+ seen = payload.issues.length;
4137
+ }
4076
4138
  i++;
4077
4139
  const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
4078
4140
  if (result instanceof Promise) {
@@ -4300,7 +4362,14 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
4300
4362
  }
4301
4363
  const proms = [];
4302
4364
  payload.value = memo ? memo.alloc(inst, payload, new Map, ctx) : new Map;
4365
+ const abortEarly = ctx?.abortEarly;
4366
+ let seen = payload.issues.length;
4303
4367
  for (const [key, value] of input) {
4368
+ if (abortEarly && payload.issues.length !== seen) {
4369
+ if (aborted(payload, seen))
4370
+ break;
4371
+ seen = payload.issues.length;
4372
+ }
4304
4373
  const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
4305
4374
  const valueResult = def.valueType._zod.run({ value, issues: [] }, ctx);
4306
4375
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
@@ -4363,7 +4432,14 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
4363
4432
  }
4364
4433
  const proms = [];
4365
4434
  payload.value = memo ? memo.alloc(inst, payload, new Set, ctx) : new Set;
4435
+ const abortEarly = ctx?.abortEarly;
4436
+ let seen = payload.issues.length;
4366
4437
  for (const item of input) {
4438
+ if (abortEarly && payload.issues.length !== seen) {
4439
+ if (aborted(payload, seen))
4440
+ break;
4441
+ seen = payload.issues.length;
4442
+ }
4367
4443
  const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
4368
4444
  if (result instanceof Promise) {
4369
4445
  proms.push(result.then((result2) => handleSetResult(result2, payload)));
@@ -4386,8 +4462,10 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
4386
4462
  const values = getEnumValues(def.entries);
4387
4463
  const valuesSet = new Set(values);
4388
4464
  inst._zod.values = valuesSet;
4389
- const patternValues = values.filter((k) => propertyKeyTypes.has(typeof k));
4390
- inst._zod.pattern = new RegExp(patternValues.length ? `^(${patternValues.map((o) => escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
4465
+ defineLazyInternal(inst, "pattern", (zod) => {
4466
+ const patternValues = getEnumValues(zod.def.entries).filter((k) => propertyKeyTypes.has(typeof k));
4467
+ return new RegExp(patternValues.length ? `^(${patternValues.map((o) => escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
4468
+ });
4391
4469
  inst._zod.parse = (payload, _ctx) => {
4392
4470
  const input = payload.value;
4393
4471
  if (valuesSet.has(input)) {
@@ -4406,7 +4484,10 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
4406
4484
  $ZodType.init(inst, def);
4407
4485
  const values = new Set(def.values);
4408
4486
  inst._zod.values = values;
4409
- inst._zod.pattern = new RegExp(def.values.length ? `^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$` : "^[^\\s\\S]$");
4487
+ defineLazyInternal(inst, "pattern", (zod) => {
4488
+ const vals = zod.def.values;
4489
+ return new RegExp(vals.length ? `^(${vals.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$` : "^[^\\s\\S]$");
4490
+ });
4410
4491
  inst._zod.parse = (payload, _ctx) => {
4411
4492
  const input = payload.value;
4412
4493
  if (values.has(input)) {
@@ -4744,20 +4825,62 @@ function handleReadonlyResult(payload) {
4744
4825
  payload.value = Object.freeze(payload.value);
4745
4826
  return payload;
4746
4827
  }
4828
+ function leafPattern(schema) {
4829
+ const def = schema._zod.def;
4830
+ let pattern = def.pattern;
4831
+ let isInt = !!def.format?.includes("int");
4832
+ let minimum;
4833
+ let maximum;
4834
+ for (const ch of def.checks ?? []) {
4835
+ const d = ch._zod.def;
4836
+ if (d.pattern)
4837
+ pattern = d.pattern;
4838
+ isInt || (isInt = !!d.format?.includes("int"));
4839
+ const lo = d.minimum ?? d.length;
4840
+ const hi = d.maximum ?? d.length;
4841
+ if (lo !== undefined && (minimum === undefined || lo > minimum))
4842
+ minimum = lo;
4843
+ if (hi !== undefined && (maximum === undefined || hi < maximum))
4844
+ maximum = hi;
4845
+ }
4846
+ if (pattern)
4847
+ return pattern.source;
4848
+ if (minimum !== undefined && maximum !== undefined && minimum > maximum)
4849
+ return "(?!)";
4850
+ if (minimum !== undefined || maximum !== undefined)
4851
+ return string({ minimum, maximum }).source;
4852
+ const own2 = schema._zod.pattern;
4853
+ return (isInt && own2 === number ? integer : own2)?.source;
4854
+ }
4855
+ function partPattern(schema) {
4856
+ const def = schema._zod.def;
4857
+ const own2 = schema._zod.pattern?.source;
4858
+ const inner = def.innerType ?? schema._zod.innerType;
4859
+ if (inner) {
4860
+ const before = inner._zod.pattern?.source;
4861
+ const after = partPattern(inner);
4862
+ if (own2 && before && after && after !== before) {
4863
+ return own2.replace(cleanRegex(before), () => cleanRegex(after));
4864
+ }
4865
+ return own2;
4866
+ }
4867
+ if (def.options) {
4868
+ const sources = def.options.map(partPattern);
4869
+ if (sources.every(Boolean))
4870
+ return `^(${sources.map((s) => cleanRegex(s)).join("|")})$`;
4871
+ }
4872
+ return leafPattern(schema);
4873
+ }
4747
4874
  var $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (inst, def) => {
4748
4875
  $ZodType.init(inst, def);
4749
4876
  const regexParts = [];
4750
4877
  for (const part of def.parts) {
4751
4878
  if (typeof part === "object" && part !== null) {
4752
- if (!part._zod.pattern) {
4879
+ const source = partPattern(part);
4880
+ if (!source) {
4753
4881
  throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
4754
4882
  }
4755
- const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
4756
- if (!source)
4757
- throw new Error(`Invalid template literal part: ${part._zod.traits}`);
4758
- const start = source.startsWith("^") ? 1 : 0;
4759
- const end = source.endsWith("$") ? source.length - 1 : source.length;
4760
- regexParts.push(source.slice(start, end));
4883
+ regexParts.push(cleanRegex(source));
4761
4884
  } else if (part === null || primitiveTypes.has(typeof part)) {
4762
4885
  regexParts.push(escapeRegex(`${part}`));
4763
4886
  } else {
@@ -4919,7 +5042,7 @@ function handleRefineResult(result, payload, input, inst) {
4919
5042
  payload.issues.push(issue(_iss));
4920
5043
  }
4921
5044
  }
4922
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
5045
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
4923
5046
  class $ZodCyclicError extends Error {
4924
5047
  constructor() {
4925
5048
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -4928,28 +5051,53 @@ class $ZodCyclicError extends Error {
4928
5051
  }
4929
5052
  var STATE = "~memo";
4930
5053
  var NO_ISSUES = [];
5054
+ function isRef(value) {
5055
+ return value !== null && typeof value === "object";
5056
+ }
4931
5057
  function cloneIssues(issues) {
4932
5058
  return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
4933
5059
  }
4934
5060
  var recursive = /* @__PURE__ */ new WeakMap;
4935
- function isRecursive(inst, stack) {
5061
+ var NONE = 0;
5062
+ var ASSUMED = 1;
5063
+ var PROVEN = 2;
5064
+ function isRecursive(inst, stack, resolve) {
4936
5065
  const cached2 = recursive.get(inst);
4937
5066
  if (cached2 !== undefined)
4938
- return cached2;
5067
+ return cached2 ? PROVEN : NONE;
4939
5068
  if (stack.has(inst))
4940
- return true;
5069
+ return PROVEN;
4941
5070
  stack.add(inst);
4942
- let result = false;
5071
+ let result = NONE;
4943
5072
  const check = (child) => {
4944
- if (!result && child?._zod && isRecursive(child, stack))
4945
- result = true;
5073
+ if (result !== PROVEN && child?._zod) {
5074
+ const answer = isRecursive(child, stack, resolve);
5075
+ if (answer > result)
5076
+ result = answer;
5077
+ }
5078
+ };
5079
+ const shape = (sh, spread) => {
5080
+ let answer = NONE;
5081
+ for (const key of Reflect.ownKeys(sh)) {
5082
+ const desc = Object.getOwnPropertyDescriptor(sh, key);
5083
+ if (spread && !desc.enumerable)
5084
+ continue;
5085
+ const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve) : NONE;
5086
+ if (child > answer)
5087
+ answer = child;
5088
+ }
5089
+ return answer;
5090
+ };
5091
+ const merge2 = (answer) => {
5092
+ if (answer > result)
5093
+ result = answer;
4946
5094
  };
4947
5095
  const def = inst._zod.def;
4948
5096
  const kind = def.type;
4949
5097
  switch (kind) {
4950
5098
  case "object": {
4951
- for (const key of Reflect.ownKeys(def.shape))
4952
- check(def.shape[key]);
5099
+ const raw = rawShape(def);
5100
+ merge2(raw ? shape(raw, true) : ASSUMED);
4953
5101
  check(def.catchall);
4954
5102
  break;
4955
5103
  }
@@ -4996,9 +5144,11 @@ function isRecursive(inst, stack) {
4996
5144
  check(def.input);
4997
5145
  check(def.output);
4998
5146
  break;
4999
- case "lazy":
5000
- check(inst._zod.innerType);
5147
+ case "lazy": {
5148
+ const inner = def._cachedInner ?? (resolve ? inst._zod.innerType : undefined);
5149
+ merge2(inner ? isRecursive(inner, stack, false) : ASSUMED);
5001
5150
  break;
5151
+ }
5002
5152
  case "template_literal":
5003
5153
  case "string":
5004
5154
  case "number":
@@ -5037,16 +5187,20 @@ function isRecursive(inst, stack) {
5037
5187
  }
5038
5188
  }
5039
5189
  stack.delete(inst);
5040
- recursive.set(inst, result);
5041
- return result;
5190
+ return settle(inst, result);
5191
+ }
5192
+ function settle(inst, answer) {
5193
+ if (answer !== ASSUMED)
5194
+ recursive.set(inst, answer === PROVEN);
5195
+ return answer;
5042
5196
  }
5043
5197
  function isRecursiveSchema(inst) {
5044
- return isRecursive(inst, new Set);
5198
+ return isRecursive(inst, new Set, true) !== NONE;
5045
5199
  }
5046
5200
  function bucketFor(state, inst) {
5047
5201
  let bucket = state.buckets.get(inst);
5048
5202
  if (!bucket) {
5049
- bucket = new Map;
5203
+ bucket = new WeakMap;
5050
5204
  state.buckets.set(inst, bucket);
5051
5205
  }
5052
5206
  return bucket;
@@ -5082,6 +5236,7 @@ var memo = {
5082
5236
  attach(inst) {
5083
5237
  var _a2;
5084
5238
  let isRecursiveInst;
5239
+ let rechecked = false;
5085
5240
  let lastCtx;
5086
5241
  let lastBucket;
5087
5242
  (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
@@ -5089,20 +5244,24 @@ var memo = {
5089
5244
  const base = inst._zod.parse;
5090
5245
  const wrapped = (payload, ctx) => {
5091
5246
  if (isRecursiveInst === undefined) {
5092
- isRecursiveInst = isRecursive(inst, new Set);
5093
- if (!isRecursiveInst) {
5247
+ const walked = isRecursive(inst, new Set, false);
5248
+ if (walked === NONE) {
5094
5249
  inst._zod.parse = base;
5095
5250
  if (inst._zod.run === wrapped)
5096
5251
  inst._zod.run = base;
5097
5252
  return base(payload, ctx);
5098
5253
  }
5254
+ if (walked === PROVEN || rechecked)
5255
+ isRecursiveInst = true;
5256
+ else
5257
+ rechecked = true;
5099
5258
  }
5100
5259
  const input = payload.value;
5101
- if (input === null || typeof input !== "object")
5260
+ if (!isRef(input))
5102
5261
  return base(payload, ctx);
5103
5262
  let state = ctx[STATE];
5104
5263
  if (!state) {
5105
- state = { buckets: new Map, backEdges: undefined };
5264
+ state = { buckets: new WeakMap, backEdges: undefined };
5106
5265
  ctx[STATE] = state;
5107
5266
  }
5108
5267
  let bucket;
@@ -5121,7 +5280,7 @@ var memo = {
5121
5280
  payload.issues.push(...cloneIssues(hit.issues));
5122
5281
  } else {
5123
5282
  payload.memo = true;
5124
- state.backEdges ?? (state.backEdges = new Set);
5283
+ state.backEdges ?? (state.backEdges = new WeakSet);
5125
5284
  state.backEdges.add(hit.value);
5126
5285
  }
5127
5286
  return payload;
@@ -5153,9 +5312,9 @@ function memoizer() {
5153
5312
  }
5154
5313
  function isBackEdge(ctx, value) {
5155
5314
  const backEdges = ctx[STATE]?.backEdges;
5156
- return backEdges !== undefined && value !== null && typeof value === "object" && backEdges.has(value);
5315
+ return backEdges !== undefined && isRef(value) && backEdges.has(value);
5157
5316
  }
5158
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/index.js
5317
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/index.js
5159
5318
  var exports_locales = {};
5160
5319
  __export(exports_locales, {
5161
5320
  ar: () => ar_default,
@@ -5209,6 +5368,7 @@ __export(exports_locales, {
5209
5368
  sl: () => sl_default,
5210
5369
  sv: () => sv_default,
5211
5370
  ta: () => ta_default,
5371
+ tg: () => tg_default,
5212
5372
  th: () => th_default,
5213
5373
  tk: () => tk_default,
5214
5374
  tr: () => tr_default,
@@ -5222,7 +5382,7 @@ __export(exports_locales, {
5222
5382
  zhTW: () => zh_TW_default
5223
5383
  });
5224
5384
 
5225
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ar.js
5385
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ar.js
5226
5386
  var error = () => {
5227
5387
  const Sizable = {
5228
5388
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -5263,6 +5423,8 @@ var error = () => {
5263
5423
  json_string: "\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",
5264
5424
  e164: "\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",
5265
5425
  credit_card: "\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",
5426
+ currency_code: "\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",
5427
+ iban: "IBAN",
5266
5428
  jwt: "JWT",
5267
5429
  template_literal: "\u0645\u062F\u062E\u0644"
5268
5430
  };
@@ -5331,7 +5493,7 @@ function ar_default() {
5331
5493
  localeError: error()
5332
5494
  };
5333
5495
  }
5334
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/az.js
5496
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/az.js
5335
5497
  var error2 = () => {
5336
5498
  const Sizable = {
5337
5499
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -5372,6 +5534,8 @@ var error2 = () => {
5372
5534
  json_string: "JSON string",
5373
5535
  e164: "E.164 number",
5374
5536
  credit_card: "kredit kart\u0131 n\xF6mr\u0259si",
5537
+ currency_code: "valyuta kodu",
5538
+ iban: "IBAN",
5375
5539
  jwt: "JWT",
5376
5540
  template_literal: "input"
5377
5541
  };
@@ -5439,7 +5603,7 @@ function az_default() {
5439
5603
  localeError: error2()
5440
5604
  };
5441
5605
  }
5442
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/be.js
5606
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/be.js
5443
5607
  function getBelarusianPlural(count, one, few, many) {
5444
5608
  const absCount = Math.abs(count);
5445
5609
  const lastDigit = absCount % 10;
@@ -5530,6 +5694,8 @@ var error3 = () => {
5530
5694
  json_string: "JSON \u0440\u0430\u0434\u043E\u043A",
5531
5695
  e164: "\u043D\u0443\u043C\u0430\u0440 E.164",
5532
5696
  credit_card: "\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",
5697
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",
5698
+ iban: "IBAN",
5533
5699
  jwt: "JWT",
5534
5700
  template_literal: "\u0443\u0432\u043E\u0434"
5535
5701
  };
@@ -5605,7 +5771,7 @@ function be_default() {
5605
5771
  localeError: error3()
5606
5772
  };
5607
5773
  }
5608
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/bg.js
5774
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/bg.js
5609
5775
  var error4 = () => {
5610
5776
  const Sizable = {
5611
5777
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -5646,6 +5812,8 @@ var error4 = () => {
5646
5812
  json_string: "JSON \u043D\u0438\u0437",
5647
5813
  e164: "E.164 \u043D\u043E\u043C\u0435\u0440",
5648
5814
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",
5815
+ currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",
5816
+ iban: "IBAN",
5649
5817
  jwt: "JWT",
5650
5818
  template_literal: "\u0432\u0445\u043E\u0434"
5651
5819
  };
@@ -5728,7 +5896,7 @@ function bg_default() {
5728
5896
  localeError: error4()
5729
5897
  };
5730
5898
  }
5731
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/bn.js
5899
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/bn.js
5732
5900
  var error5 = () => {
5733
5901
  const Sizable = {
5734
5902
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -5769,6 +5937,8 @@ var error5 = () => {
5769
5937
  json_string: "JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",
5770
5938
  e164: "E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",
5771
5939
  credit_card: "\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",
5940
+ currency_code: "\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",
5941
+ iban: "IBAN",
5772
5942
  jwt: "JWT",
5773
5943
  template_literal: "\u0987\u09A8\u09AA\u09C1\u099F"
5774
5944
  };
@@ -5839,7 +6009,7 @@ function bn_default() {
5839
6009
  localeError: error5()
5840
6010
  };
5841
6011
  }
5842
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ca.js
6012
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ca.js
5843
6013
  var error6 = () => {
5844
6014
  const Sizable = {
5845
6015
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -5880,6 +6050,8 @@ var error6 = () => {
5880
6050
  json_string: "cadena JSON",
5881
6051
  e164: "n\xFAmero E.164",
5882
6052
  credit_card: "n\xFAmero de targeta de cr\xE8dit",
6053
+ currency_code: "codi de moneda",
6054
+ iban: "IBAN",
5883
6055
  jwt: "JWT",
5884
6056
  template_literal: "entrada"
5885
6057
  };
@@ -5949,7 +6121,7 @@ function ca_default() {
5949
6121
  localeError: error6()
5950
6122
  };
5951
6123
  }
5952
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ckb.js
6124
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ckb.js
5953
6125
  var error7 = () => {
5954
6126
  const Sizable = {
5955
6127
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -5990,6 +6162,8 @@ var error7 = () => {
5990
6162
  json_string: "\u062F\u06D5\u0642\u06CC JSON",
5991
6163
  e164: "\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",
5992
6164
  credit_card: "\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",
6165
+ currency_code: "\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",
6166
+ iban: "IBAN",
5993
6167
  jwt: "JWT",
5994
6168
  template_literal: "\u062A\u06CE\u06A9\u0631\u062F\u06D5"
5995
6169
  };
@@ -6079,7 +6253,7 @@ function ckb_default() {
6079
6253
  localeError: error7()
6080
6254
  };
6081
6255
  }
6082
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/cs.js
6256
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/cs.js
6083
6257
  var error8 = () => {
6084
6258
  const Sizable = {
6085
6259
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -6120,6 +6294,8 @@ var error8 = () => {
6120
6294
  json_string: "\u0159et\u011Bzec ve form\xE1tu JSON",
6121
6295
  e164: "\u010D\xEDslo E.164",
6122
6296
  credit_card: "\u010D\xEDslo kreditn\xED karty",
6297
+ currency_code: "k\xF3d m\u011Bny",
6298
+ iban: "IBAN",
6123
6299
  jwt: "JWT",
6124
6300
  template_literal: "vstup"
6125
6301
  };
@@ -6193,7 +6369,7 @@ function cs_default() {
6193
6369
  localeError: error8()
6194
6370
  };
6195
6371
  }
6196
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/da.js
6372
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/da.js
6197
6373
  var error9 = () => {
6198
6374
  const Sizable = {
6199
6375
  string: { unit: "tegn", verb: "havde" },
@@ -6234,6 +6410,8 @@ var error9 = () => {
6234
6410
  json_string: "JSON-streng",
6235
6411
  e164: "E.164-nummer",
6236
6412
  credit_card: "kreditkortnummer",
6413
+ currency_code: "valutakode",
6414
+ iban: "IBAN",
6237
6415
  jwt: "JWT",
6238
6416
  template_literal: "input"
6239
6417
  };
@@ -6311,7 +6489,7 @@ function da_default() {
6311
6489
  localeError: error9()
6312
6490
  };
6313
6491
  }
6314
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/de.js
6492
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/de.js
6315
6493
  var error10 = () => {
6316
6494
  const Sizable = {
6317
6495
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -6352,6 +6530,8 @@ var error10 = () => {
6352
6530
  json_string: "JSON-String",
6353
6531
  e164: "E.164-Nummer",
6354
6532
  credit_card: "Kreditkartennummer",
6533
+ currency_code: "W\xE4hrungscode",
6534
+ iban: "IBAN",
6355
6535
  jwt: "JWT",
6356
6536
  template_literal: "Eingabe"
6357
6537
  };
@@ -6422,7 +6602,7 @@ function de_default() {
6422
6602
  localeError: error10()
6423
6603
  };
6424
6604
  }
6425
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/el.js
6605
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/el.js
6426
6606
  var error11 = () => {
6427
6607
  const Sizable = {
6428
6608
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -6463,6 +6643,8 @@ var error11 = () => {
6463
6643
  json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
6464
6644
  e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
6465
6645
  credit_card: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",
6646
+ currency_code: "\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",
6647
+ iban: "IBAN",
6466
6648
  jwt: "JWT",
6467
6649
  template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
6468
6650
  };
@@ -6532,7 +6714,7 @@ function el_default() {
6532
6714
  localeError: error11()
6533
6715
  };
6534
6716
  }
6535
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
6717
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/en.js
6536
6718
  var error12 = () => {
6537
6719
  const Sizable = {
6538
6720
  string: { unit: "characters", verb: "to have" },
@@ -6572,7 +6754,9 @@ var error12 = () => {
6572
6754
  base64url: "base64url-encoded string",
6573
6755
  json_string: "JSON string",
6574
6756
  e164: "E.164 number",
6757
+ currency_code: "currency code",
6575
6758
  credit_card: "credit card number",
6759
+ iban: "IBAN",
6576
6760
  jwt: "JWT",
6577
6761
  template_literal: "input"
6578
6762
  };
@@ -6652,7 +6836,7 @@ function en_default() {
6652
6836
  localeError: error12()
6653
6837
  };
6654
6838
  }
6655
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/eo.js
6839
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/eo.js
6656
6840
  var error13 = () => {
6657
6841
  const Sizable = {
6658
6842
  string: { unit: "karaktrojn", verb: "havi" },
@@ -6693,6 +6877,8 @@ var error13 = () => {
6693
6877
  json_string: "JSON-karaktraro",
6694
6878
  e164: "E.164-nombro",
6695
6879
  credit_card: "kreditkarta numero",
6880
+ currency_code: "valuta kodo",
6881
+ iban: "IBAN",
6696
6882
  jwt: "JWT",
6697
6883
  template_literal: "enigo"
6698
6884
  };
@@ -6764,7 +6950,7 @@ function eo_default() {
6764
6950
  localeError: error13()
6765
6951
  };
6766
6952
  }
6767
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/es.js
6953
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/es.js
6768
6954
  var error14 = () => {
6769
6955
  const Sizable = {
6770
6956
  string: { unit: "caracteres", verb: "tener" },
@@ -6804,6 +6990,8 @@ var error14 = () => {
6804
6990
  json_string: "cadena JSON",
6805
6991
  e164: "n\xFAmero E.164",
6806
6992
  credit_card: "n\xFAmero de tarjeta de cr\xE9dito",
6993
+ currency_code: "c\xF3digo de moneda",
6994
+ iban: "IBAN",
6807
6995
  jwt: "JWT",
6808
6996
  template_literal: "entrada"
6809
6997
  };
@@ -6898,7 +7086,7 @@ function es_default() {
6898
7086
  localeError: error14()
6899
7087
  };
6900
7088
  }
6901
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/fa.js
7089
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/fa.js
6902
7090
  var error15 = () => {
6903
7091
  const Sizable = {
6904
7092
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -6939,6 +7127,8 @@ var error15 = () => {
6939
7127
  json_string: "JSON \u0631\u0634\u062A\u0647",
6940
7128
  e164: "E.164 \u0639\u062F\u062F",
6941
7129
  credit_card: "\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",
7130
+ currency_code: "\u06A9\u062F \u0627\u0631\u0632",
7131
+ iban: "IBAN",
6942
7132
  jwt: "JWT",
6943
7133
  template_literal: "\u0648\u0631\u0648\u062F\u06CC"
6944
7134
  };
@@ -7015,7 +7205,7 @@ function fa_default() {
7015
7205
  localeError: error15()
7016
7206
  };
7017
7207
  }
7018
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/fi.js
7208
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/fi.js
7019
7209
  var error16 = () => {
7020
7210
  const Sizable = {
7021
7211
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -7060,6 +7250,8 @@ var error16 = () => {
7060
7250
  json_string: "JSON-merkkijono",
7061
7251
  e164: "E.164-luku",
7062
7252
  credit_card: "luottokortin numero",
7253
+ currency_code: "valuuttakoodi",
7254
+ iban: "IBAN",
7063
7255
  jwt: "JWT",
7064
7256
  template_literal: "templaattimerkkijono"
7065
7257
  };
@@ -7130,7 +7322,7 @@ function fi_default() {
7130
7322
  localeError: error16()
7131
7323
  };
7132
7324
  }
7133
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/fr.js
7325
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/fr.js
7134
7326
  var error17 = () => {
7135
7327
  const Sizable = {
7136
7328
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -7170,6 +7362,8 @@ var error17 = () => {
7170
7362
  json_string: "cha\xEEne de caract\xE8res JSON",
7171
7363
  e164: "num\xE9ro au format E.164",
7172
7364
  credit_card: "num\xE9ro de carte de cr\xE9dit",
7365
+ currency_code: "code de devise",
7366
+ iban: "IBAN",
7173
7367
  jwt: "JWT",
7174
7368
  template_literal: "entr\xE9e"
7175
7369
  };
@@ -7257,7 +7451,7 @@ function fr_default() {
7257
7451
  localeError: error17()
7258
7452
  };
7259
7453
  }
7260
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/fr-CA.js
7454
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.js
7261
7455
  var error18 = () => {
7262
7456
  const Sizable = {
7263
7457
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -7298,6 +7492,8 @@ var error18 = () => {
7298
7492
  json_string: "cha\xEEne JSON",
7299
7493
  e164: "num\xE9ro E.164",
7300
7494
  credit_card: "num\xE9ro de carte de cr\xE9dit",
7495
+ currency_code: "code de devise",
7496
+ iban: "IBAN",
7301
7497
  jwt: "JWT",
7302
7498
  template_literal: "entr\xE9e"
7303
7499
  };
@@ -7367,7 +7563,7 @@ function fr_CA_default() {
7367
7563
  localeError: error18()
7368
7564
  };
7369
7565
  }
7370
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/gu.js
7566
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/gu.js
7371
7567
  var error19 = () => {
7372
7568
  const Sizable = {
7373
7569
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -7408,6 +7604,8 @@ var error19 = () => {
7408
7604
  json_string: "JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",
7409
7605
  e164: "E.164 \u0AA8\u0A82\u0AAC\u0AB0",
7410
7606
  credit_card: "\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",
7607
+ currency_code: "\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",
7608
+ iban: "IBAN",
7411
7609
  jwt: "JWT",
7412
7610
  template_literal: "\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"
7413
7611
  };
@@ -7478,7 +7676,7 @@ function gu_default() {
7478
7676
  localeError: error19()
7479
7677
  };
7480
7678
  }
7481
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/he.js
7679
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/he.js
7482
7680
  var error20 = () => {
7483
7681
  const TypeNames = {
7484
7682
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -7554,6 +7752,8 @@ var error20 = () => {
7554
7752
  json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
7555
7753
  e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
7556
7754
  credit_card: { label: "\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9", gender: "m" },
7755
+ currency_code: { label: "\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2", gender: "m" },
7756
+ iban: { label: "IBAN", gender: "m" },
7557
7757
  jwt: { label: "JWT", gender: "m" },
7558
7758
  template_literal: { label: "\u05E7\u05DC\u05D8", gender: "m" },
7559
7759
  ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
@@ -7676,7 +7876,7 @@ function he_default() {
7676
7876
  localeError: error20()
7677
7877
  };
7678
7878
  }
7679
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/hi.js
7879
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/hi.js
7680
7880
  var error21 = () => {
7681
7881
  const Sizable = {
7682
7882
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -7717,6 +7917,8 @@ var error21 = () => {
7717
7917
  json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",
7718
7918
  e164: "E.164 \u0938\u0902\u0916\u094D\u092F\u093E",
7719
7919
  credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",
7920
+ currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",
7921
+ iban: "IBAN",
7720
7922
  jwt: "JWT",
7721
7923
  template_literal: "\u0907\u0928\u092A\u0941\u091F"
7722
7924
  };
@@ -7785,7 +7987,7 @@ function hi_default() {
7785
7987
  localeError: error21()
7786
7988
  };
7787
7989
  }
7788
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/hr.js
7990
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/hr.js
7789
7991
  var error22 = () => {
7790
7992
  const Sizable = {
7791
7993
  string: { unit: "znakova", verb: "imati" },
@@ -7825,6 +8027,8 @@ var error22 = () => {
7825
8027
  json_string: "JSON tekst",
7826
8028
  e164: "E.164 broj",
7827
8029
  credit_card: "broj kreditne kartice",
8030
+ currency_code: "kod valute",
8031
+ iban: "IBAN",
7828
8032
  jwt: "JWT",
7829
8033
  template_literal: "unos"
7830
8034
  };
@@ -7909,7 +8113,7 @@ function hr_default() {
7909
8113
  localeError: error22()
7910
8114
  };
7911
8115
  }
7912
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/hu.js
8116
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/hu.js
7913
8117
  var error23 = () => {
7914
8118
  const Sizable = {
7915
8119
  string: { unit: "karakter", verb: "legyen" },
@@ -7950,6 +8154,8 @@ var error23 = () => {
7950
8154
  json_string: "JSON string",
7951
8155
  e164: "E.164 sz\xE1m",
7952
8156
  credit_card: "hitelk\xE1rtyasz\xE1m",
8157
+ currency_code: "p\xE9nznemk\xF3d",
8158
+ iban: "IBAN",
7953
8159
  jwt: "JWT",
7954
8160
  template_literal: "bemenet"
7955
8161
  };
@@ -8020,7 +8226,7 @@ function hu_default() {
8020
8226
  localeError: error23()
8021
8227
  };
8022
8228
  }
8023
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/hy.js
8229
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/hy.js
8024
8230
  function getArmenianPlural(count, one, many) {
8025
8231
  return Math.abs(count) === 1 ? one : many;
8026
8232
  }
@@ -8101,6 +8307,8 @@ var error24 = () => {
8101
8307
  json_string: "JSON \u057F\u0578\u0572",
8102
8308
  e164: "E.164 \u0570\u0561\u0574\u0561\u0580",
8103
8309
  credit_card: "\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",
8310
+ currency_code: "\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",
8311
+ iban: "IBAN",
8104
8312
  jwt: "JWT",
8105
8313
  template_literal: "\u0574\u0578\u0582\u057F\u0584"
8106
8314
  };
@@ -8176,7 +8384,7 @@ function hy_default() {
8176
8384
  localeError: error24()
8177
8385
  };
8178
8386
  }
8179
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/id.js
8387
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/id.js
8180
8388
  var error25 = () => {
8181
8389
  const Sizable = {
8182
8390
  string: { unit: "karakter", verb: "memiliki" },
@@ -8217,6 +8425,8 @@ var error25 = () => {
8217
8425
  json_string: "string JSON",
8218
8426
  e164: "angka E.164",
8219
8427
  credit_card: "nomor kartu kredit",
8428
+ currency_code: "kode mata uang",
8429
+ iban: "IBAN",
8220
8430
  jwt: "JWT",
8221
8431
  template_literal: "input"
8222
8432
  };
@@ -8285,7 +8495,7 @@ function id_default() {
8285
8495
  localeError: error25()
8286
8496
  };
8287
8497
  }
8288
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/is.js
8498
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/is.js
8289
8499
  var error26 = () => {
8290
8500
  const Sizable = {
8291
8501
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -8326,6 +8536,8 @@ var error26 = () => {
8326
8536
  json_string: "JSON strengur",
8327
8537
  e164: "E.164 t\xF6lugildi",
8328
8538
  credit_card: "kreditkortan\xFAmer",
8539
+ currency_code: "gjaldmi\xF0ilsk\xF3\xF0i",
8540
+ iban: "IBAN",
8329
8541
  jwt: "JWT",
8330
8542
  template_literal: "gildi"
8331
8543
  };
@@ -8397,7 +8609,7 @@ function is_default() {
8397
8609
  localeError: error26()
8398
8610
  };
8399
8611
  }
8400
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/it.js
8612
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/it.js
8401
8613
  var error27 = () => {
8402
8614
  const Sizable = {
8403
8615
  string: { unit: "caratteri", verb: "avere" },
@@ -8438,6 +8650,8 @@ var error27 = () => {
8438
8650
  json_string: "stringa JSON",
8439
8651
  e164: "numero E.164",
8440
8652
  credit_card: "numero di carta di credito",
8653
+ currency_code: "codice valuta",
8654
+ iban: "IBAN",
8441
8655
  jwt: "JWT",
8442
8656
  template_literal: "input"
8443
8657
  };
@@ -8508,7 +8722,7 @@ function it_default() {
8508
8722
  localeError: error27()
8509
8723
  };
8510
8724
  }
8511
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ja.js
8725
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ja.js
8512
8726
  var error28 = () => {
8513
8727
  const Sizable = {
8514
8728
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -8549,6 +8763,8 @@ var error28 = () => {
8549
8763
  json_string: "JSON\u6587\u5B57\u5217",
8550
8764
  e164: "E.164\u756A\u53F7",
8551
8765
  credit_card: "\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",
8766
+ currency_code: "\u901A\u8CA8\u30B3\u30FC\u30C9",
8767
+ iban: "IBAN",
8552
8768
  jwt: "JWT",
8553
8769
  template_literal: "\u5165\u529B\u5024"
8554
8770
  };
@@ -8618,7 +8834,7 @@ function ja_default() {
8618
8834
  localeError: error28()
8619
8835
  };
8620
8836
  }
8621
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ka.js
8837
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ka.js
8622
8838
  var error29 = () => {
8623
8839
  const Sizable = {
8624
8840
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -8659,6 +8875,8 @@ var error29 = () => {
8659
8875
  json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
8660
8876
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
8661
8877
  credit_card: "\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
8878
+ currency_code: "\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",
8879
+ iban: "IBAN",
8662
8880
  jwt: "JWT",
8663
8881
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
8664
8882
  };
@@ -8733,7 +8951,7 @@ function ka_default() {
8733
8951
  localeError: error29()
8734
8952
  };
8735
8953
  }
8736
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/km.js
8954
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/km.js
8737
8955
  var error30 = () => {
8738
8956
  const Sizable = {
8739
8957
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -8774,6 +8992,8 @@ var error30 = () => {
8774
8992
  json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",
8775
8993
  e164: "\u179B\u17C1\u1781 E.164",
8776
8994
  credit_card: "\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",
8995
+ currency_code: "\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",
8996
+ iban: "IBAN",
8777
8997
  jwt: "JWT",
8778
8998
  template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
8779
8999
  };
@@ -8847,11 +9067,11 @@ function km_default() {
8847
9067
  };
8848
9068
  }
8849
9069
 
8850
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/kh.js
9070
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/kh.js
8851
9071
  function kh_default() {
8852
9072
  return km_default();
8853
9073
  }
8854
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/kn.js
9074
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/kn.js
8855
9075
  var error31 = () => {
8856
9076
  const Sizable = {
8857
9077
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -8892,6 +9112,8 @@ var error31 = () => {
8892
9112
  json_string: "JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",
8893
9113
  e164: "E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",
8894
9114
  credit_card: "\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",
9115
+ currency_code: "\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",
9116
+ iban: "IBAN",
8895
9117
  jwt: "JWT",
8896
9118
  template_literal: "\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"
8897
9119
  };
@@ -8962,7 +9184,7 @@ function kn_default() {
8962
9184
  localeError: error31()
8963
9185
  };
8964
9186
  }
8965
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ko.js
9187
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ko.js
8966
9188
  var error32 = () => {
8967
9189
  const Sizable = {
8968
9190
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -9003,6 +9225,8 @@ var error32 = () => {
9003
9225
  json_string: "JSON \uBB38\uC790\uC5F4",
9004
9226
  e164: "E.164 \uBC88\uD638",
9005
9227
  credit_card: "\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",
9228
+ currency_code: "\uD1B5\uD654 \uCF54\uB4DC",
9229
+ iban: "IBAN",
9006
9230
  jwt: "JWT",
9007
9231
  template_literal: "\uC785\uB825"
9008
9232
  };
@@ -9076,7 +9300,7 @@ function ko_default() {
9076
9300
  localeError: error32()
9077
9301
  };
9078
9302
  }
9079
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/lt.js
9303
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/lt.js
9080
9304
  var capitalizeFirstCharacter = (text) => {
9081
9305
  return text.charAt(0).toUpperCase() + text.slice(1);
9082
9306
  };
@@ -9199,6 +9423,8 @@ var error33 = () => {
9199
9423
  json_string: "JSON eilut\u0117",
9200
9424
  e164: "E.164 numeris",
9201
9425
  credit_card: "kredito kortel\u0117s numeris",
9426
+ currency_code: "valiutos kodas",
9427
+ iban: "IBAN",
9202
9428
  jwt: "JWT",
9203
9429
  template_literal: "\u012Fvestis"
9204
9430
  };
@@ -9281,7 +9507,7 @@ function lt_default() {
9281
9507
  localeError: error33()
9282
9508
  };
9283
9509
  }
9284
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/mk.js
9510
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/mk.js
9285
9511
  var error34 = () => {
9286
9512
  const Sizable = {
9287
9513
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -9322,6 +9548,8 @@ var error34 = () => {
9322
9548
  json_string: "JSON \u043D\u0438\u0437\u0430",
9323
9549
  e164: "E.164 \u0431\u0440\u043E\u0458",
9324
9550
  credit_card: "\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",
9551
+ currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",
9552
+ iban: "IBAN",
9325
9553
  jwt: "JWT",
9326
9554
  template_literal: "\u0432\u043D\u0435\u0441"
9327
9555
  };
@@ -9393,7 +9621,7 @@ function mk_default() {
9393
9621
  localeError: error34()
9394
9622
  };
9395
9623
  }
9396
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ms.js
9624
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ms.js
9397
9625
  var error35 = () => {
9398
9626
  const Sizable = {
9399
9627
  string: { unit: "aksara", verb: "mempunyai" },
@@ -9434,6 +9662,8 @@ var error35 = () => {
9434
9662
  json_string: "string JSON",
9435
9663
  e164: "nombor E.164",
9436
9664
  credit_card: "nombor kad kredit",
9665
+ currency_code: "kod mata wang",
9666
+ iban: "IBAN",
9437
9667
  jwt: "JWT",
9438
9668
  template_literal: "input"
9439
9669
  };
@@ -9503,7 +9733,7 @@ function ms_default() {
9503
9733
  localeError: error35()
9504
9734
  };
9505
9735
  }
9506
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ne.js
9736
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ne.js
9507
9737
  var error36 = () => {
9508
9738
  const Sizable = {
9509
9739
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -9544,6 +9774,8 @@ var error36 = () => {
9544
9774
  json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",
9545
9775
  e164: "E.164 \u0928\u092E\u094D\u092C\u0930",
9546
9776
  credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",
9777
+ currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",
9778
+ iban: "IBAN",
9547
9779
  jwt: "JWT",
9548
9780
  template_literal: "\u0907\u0928\u092A\u0941\u091F"
9549
9781
  };
@@ -9612,7 +9844,7 @@ function ne_default() {
9612
9844
  localeError: error36()
9613
9845
  };
9614
9846
  }
9615
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/nl.js
9847
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/nl.js
9616
9848
  var error37 = () => {
9617
9849
  const Sizable = {
9618
9850
  string: { unit: "tekens", verb: "heeft" },
@@ -9653,6 +9885,8 @@ var error37 = () => {
9653
9885
  json_string: "JSON string",
9654
9886
  e164: "E.164-nummer",
9655
9887
  credit_card: "creditcardnummer",
9888
+ currency_code: "valutacode",
9889
+ iban: "IBAN",
9656
9890
  jwt: "JWT",
9657
9891
  template_literal: "invoer"
9658
9892
  };
@@ -9725,7 +9959,7 @@ function nl_default() {
9725
9959
  localeError: error37()
9726
9960
  };
9727
9961
  }
9728
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/nn.js
9962
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/nn.js
9729
9963
  var error38 = () => {
9730
9964
  const Sizable = {
9731
9965
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -9766,6 +10000,8 @@ var error38 = () => {
9766
10000
  json_string: "JSON-streng",
9767
10001
  e164: "E.164-nummer",
9768
10002
  credit_card: "kredittkortnummer",
10003
+ currency_code: "valutakode",
10004
+ iban: "IBAN",
9769
10005
  jwt: "JWT",
9770
10006
  template_literal: "input"
9771
10007
  };
@@ -9836,7 +10072,7 @@ function nn_default() {
9836
10072
  localeError: error38()
9837
10073
  };
9838
10074
  }
9839
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/no.js
10075
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/no.js
9840
10076
  var error39 = () => {
9841
10077
  const Sizable = {
9842
10078
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -9877,6 +10113,8 @@ var error39 = () => {
9877
10113
  json_string: "JSON-streng",
9878
10114
  e164: "E.164-nummer",
9879
10115
  credit_card: "kredittkortnummer",
10116
+ currency_code: "valutakode",
10117
+ iban: "IBAN",
9880
10118
  jwt: "JWT",
9881
10119
  template_literal: "input"
9882
10120
  };
@@ -9947,7 +10185,7 @@ function no_default() {
9947
10185
  localeError: error39()
9948
10186
  };
9949
10187
  }
9950
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ota.js
10188
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ota.js
9951
10189
  var error40 = () => {
9952
10190
  const Sizable = {
9953
10191
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -9988,6 +10226,8 @@ var error40 = () => {
9988
10226
  json_string: "JSON metin",
9989
10227
  e164: "E.164 say\u0131s\u0131",
9990
10228
  credit_card: "i'tib\xE2r kart\u0131 numaras\u0131",
10229
+ currency_code: "para birimi kodu",
10230
+ iban: "IBAN",
9991
10231
  jwt: "JWT",
9992
10232
  template_literal: "giren"
9993
10233
  };
@@ -10059,7 +10299,7 @@ function ota_default() {
10059
10299
  localeError: error40()
10060
10300
  };
10061
10301
  }
10062
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ps.js
10302
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ps.js
10063
10303
  var error41 = () => {
10064
10304
  const Sizable = {
10065
10305
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -10100,6 +10340,8 @@ var error41 = () => {
10100
10340
  json_string: "JSON \u0645\u062A\u0646",
10101
10341
  e164: "\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",
10102
10342
  credit_card: "\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",
10343
+ currency_code: "\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",
10344
+ iban: "IBAN",
10103
10345
  jwt: "JWT",
10104
10346
  template_literal: "\u0648\u0631\u0648\u062F\u064A"
10105
10347
  };
@@ -10176,7 +10418,7 @@ function ps_default() {
10176
10418
  localeError: error41()
10177
10419
  };
10178
10420
  }
10179
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/pl.js
10421
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/pl.js
10180
10422
  var error42 = () => {
10181
10423
  const Sizable = {
10182
10424
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -10217,6 +10459,8 @@ var error42 = () => {
10217
10459
  json_string: "ci\u0105g znak\xF3w w formacie JSON",
10218
10460
  e164: "liczba E.164",
10219
10461
  credit_card: "numer karty kredytowej",
10462
+ currency_code: "kod waluty",
10463
+ iban: "IBAN",
10220
10464
  jwt: "JWT",
10221
10465
  template_literal: "wej\u015Bcie"
10222
10466
  };
@@ -10288,7 +10532,7 @@ function pl_default() {
10288
10532
  localeError: error42()
10289
10533
  };
10290
10534
  }
10291
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/pt.js
10535
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/pt.js
10292
10536
  var error43 = () => {
10293
10537
  const Sizable = {
10294
10538
  string: { unit: "caracteres" },
@@ -10329,6 +10573,8 @@ var error43 = () => {
10329
10573
  json_string: "o texto JSON",
10330
10574
  e164: "o n\xFAmero E.164",
10331
10575
  credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito",
10576
+ currency_code: "o c\xF3digo de moeda",
10577
+ iban: "o IBAN",
10332
10578
  jwt: "o JWT",
10333
10579
  template_literal: "a entrada"
10334
10580
  };
@@ -10428,7 +10674,7 @@ function pt_default() {
10428
10674
  localeError: error43()
10429
10675
  };
10430
10676
  }
10431
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/pt-BR.js
10677
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.js
10432
10678
  var error44 = () => {
10433
10679
  const Sizable = {
10434
10680
  string: { unit: "caracteres" },
@@ -10469,6 +10715,8 @@ var error44 = () => {
10469
10715
  json_string: "o texto JSON",
10470
10716
  e164: "o n\xFAmero E.164",
10471
10717
  credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito",
10718
+ currency_code: "o c\xF3digo de moeda",
10719
+ iban: "o IBAN",
10472
10720
  jwt: "o JWT",
10473
10721
  template_literal: "a entrada"
10474
10722
  };
@@ -10569,7 +10817,7 @@ function pt_BR_default() {
10569
10817
  localeError: error44()
10570
10818
  };
10571
10819
  }
10572
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ro.js
10820
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ro.js
10573
10821
  var error45 = () => {
10574
10822
  const Sizable = {
10575
10823
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -10610,6 +10858,8 @@ var error45 = () => {
10610
10858
  json_string: "\u0219ir JSON",
10611
10859
  e164: "num\u0103r E.164",
10612
10860
  credit_card: "num\u0103r de card de credit",
10861
+ currency_code: "cod valutar",
10862
+ iban: "IBAN",
10613
10863
  jwt: "JWT",
10614
10864
  template_literal: "intrare"
10615
10865
  };
@@ -10689,7 +10939,7 @@ function ro_default() {
10689
10939
  localeError: error45()
10690
10940
  };
10691
10941
  }
10692
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ru.js
10942
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ru.js
10693
10943
  function getRussianPlural(count, one, few, many) {
10694
10944
  const absCount = Math.abs(count);
10695
10945
  const lastDigit = absCount % 10;
@@ -10780,6 +11030,8 @@ var error46 = () => {
10780
11030
  json_string: "JSON \u0441\u0442\u0440\u043E\u043A\u0430",
10781
11031
  e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
10782
11032
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",
11033
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",
11034
+ iban: "IBAN",
10783
11035
  jwt: "JWT",
10784
11036
  template_literal: "\u0432\u0432\u043E\u0434"
10785
11037
  };
@@ -10855,7 +11107,7 @@ function ru_default() {
10855
11107
  localeError: error46()
10856
11108
  };
10857
11109
  }
10858
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/sk.js
11110
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/sk.js
10859
11111
  var error47 = () => {
10860
11112
  const Sizable = {
10861
11113
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -10896,6 +11148,8 @@ var error47 = () => {
10896
11148
  json_string: "re\u0165azec vo form\xE1te JSON",
10897
11149
  e164: "\u010D\xEDslo E.164",
10898
11150
  credit_card: "\u010D\xEDslo kreditnej karty",
11151
+ currency_code: "k\xF3d meny",
11152
+ iban: "IBAN",
10899
11153
  jwt: "JWT",
10900
11154
  template_literal: "vstup"
10901
11155
  };
@@ -10969,7 +11223,7 @@ function sk_default() {
10969
11223
  localeError: error47()
10970
11224
  };
10971
11225
  }
10972
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/sl.js
11226
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/sl.js
10973
11227
  var error48 = () => {
10974
11228
  const Sizable = {
10975
11229
  string: { unit: "znakov", verb: "imeti" },
@@ -11010,6 +11264,8 @@ var error48 = () => {
11010
11264
  json_string: "JSON niz",
11011
11265
  e164: "E.164 \u0161tevilka",
11012
11266
  credit_card: "\u0161tevilka kreditne kartice",
11267
+ currency_code: "koda valute",
11268
+ iban: "IBAN",
11013
11269
  jwt: "JWT",
11014
11270
  template_literal: "vnos"
11015
11271
  };
@@ -11081,7 +11337,7 @@ function sl_default() {
11081
11337
  localeError: error48()
11082
11338
  };
11083
11339
  }
11084
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/sv.js
11340
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/sv.js
11085
11341
  var error49 = () => {
11086
11342
  const Sizable = {
11087
11343
  string: { unit: "tecken", verb: "att ha" },
@@ -11122,6 +11378,8 @@ var error49 = () => {
11122
11378
  json_string: "JSON-str\xE4ng",
11123
11379
  e164: "E.164-nummer",
11124
11380
  credit_card: "kreditkortsnummer",
11381
+ currency_code: "valutakod",
11382
+ iban: "IBAN",
11125
11383
  jwt: "JWT",
11126
11384
  template_literal: "mall-literal"
11127
11385
  };
@@ -11194,7 +11452,7 @@ function sv_default() {
11194
11452
  localeError: error49()
11195
11453
  };
11196
11454
  }
11197
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ta.js
11455
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ta.js
11198
11456
  var error50 = () => {
11199
11457
  const Sizable = {
11200
11458
  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" },
@@ -11235,6 +11493,8 @@ var error50 = () => {
11235
11493
  json_string: "JSON \u0B9A\u0BB0\u0BAE\u0BCD",
11236
11494
  e164: "E.164 \u0B8E\u0BA3\u0BCD",
11237
11495
  credit_card: "\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",
11496
+ currency_code: "\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",
11497
+ iban: "IBAN",
11238
11498
  jwt: "JWT",
11239
11499
  template_literal: "input"
11240
11500
  };
@@ -11307,23 +11567,23 @@ function ta_default() {
11307
11567
  localeError: error50()
11308
11568
  };
11309
11569
  }
11310
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/th.js
11570
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/tg.js
11311
11571
  var error51 = () => {
11312
11572
  const Sizable = {
11313
- string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11314
- file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11315
- array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11316
- set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11317
- map: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }
11573
+ string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
11574
+ file: { unit: "\u0431\u0430\u0439\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
11575
+ array: { unit: "\u0443\u043D\u0441\u0443\u0440", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
11576
+ set: { unit: "\u0443\u043D\u0441\u0443\u0440", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
11577
+ map: { unit: "\u0441\u0430\u0431\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" }
11318
11578
  };
11319
11579
  function getSizing(origin) {
11320
11580
  return Sizable[origin] ?? null;
11321
11581
  }
11322
11582
  const FormatDictionary = {
11323
- regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
11324
- email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",
11583
+ regex: "\u0432\u0443\u0440\u0443\u0434",
11584
+ email: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",
11325
11585
  url: "URL",
11326
- emoji: "\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",
11586
+ emoji: "\u044D\u043C\u043E\u04B7\u0438",
11327
11587
  uuid: "UUID",
11328
11588
  uuidv4: "UUIDv4",
11329
11589
  uuidv6: "UUIDv6",
@@ -11334,28 +11594,32 @@ var error51 = () => {
11334
11594
  ulid: "ULID",
11335
11595
  xid: "XID",
11336
11596
  ksuid: "KSUID",
11337
- datetime: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
11338
- date: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",
11339
- time: "\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
11340
- duration: "\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
11341
- ipv4: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",
11342
- ipv6: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",
11343
- mac: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",
11344
- cidrv4: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",
11345
- cidrv6: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",
11346
- base64: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",
11347
- base64url: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",
11348
- json_string: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",
11349
- e164: "\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",
11350
- credit_card: "\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",
11351
- jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
11352
- template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
11597
+ datetime: "\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",
11598
+ date: "\u0441\u0430\u043D\u0430\u0438 ISO",
11599
+ time: "\u0432\u0430\u049B\u0442\u0438 ISO",
11600
+ duration: "\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",
11601
+ ipv4: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",
11602
+ ipv6: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",
11603
+ mac: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",
11604
+ cidrv4: "\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",
11605
+ cidrv6: "\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",
11606
+ base64: "\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",
11607
+ base64url: "\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",
11608
+ json_string: "\u0441\u0430\u0442\u0440\u0438 JSON",
11609
+ e164: "\u0440\u0430\u049B\u0430\u043C\u0438 E.164",
11610
+ credit_card: "\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",
11611
+ currency_code: "\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",
11612
+ iban: "IBAN",
11613
+ jwt: "JWT",
11614
+ template_literal: "\u0432\u0443\u0440\u0443\u0434"
11353
11615
  };
11354
11616
  const TypeDictionary = {
11355
11617
  nan: "NaN",
11356
- number: "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",
11357
- array: "\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",
11358
- null: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"
11618
+ number: "\u0440\u0430\u049B\u0430\u043C",
11619
+ string: "\u0441\u0430\u0442\u0440",
11620
+ array: "\u043C\u0430\u0441\u0441\u0438\u0432",
11621
+ object: "\u043E\u0431\u044A\u0435\u043A\u0442",
11622
+ date: "\u0441\u0430\u043D\u0430"
11359
11623
  };
11360
11624
  return (issue2) => {
11361
11625
  switch (issue2.code) {
@@ -11363,9 +11627,123 @@ var error51 = () => {
11363
11627
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11364
11628
  const receivedType = parsedType(issue2.input);
11365
11629
  const received = TypeDictionary[receivedType] ?? receivedType;
11366
- if (/^[A-Z]/.test(issue2.expected)) {
11367
- return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
11368
- }
11630
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${expected} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${received} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`;
11631
+ }
11632
+ case "invalid_value":
11633
+ if (issue2.values.length === 1)
11634
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${stringifyPrimitive(issue2.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;
11635
+ return `\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${joinValues(issue2.values, "|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;
11636
+ case "too_big": {
11637
+ const adj = issue2.inclusive ? "<=" : "<";
11638
+ const sizing = getSizing(issue2.origin);
11639
+ if (sizing)
11640
+ return `\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${issue2.origin ?? "\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
11641
+ return `\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${issue2.origin ?? "\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${adj}${issue2.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`;
11642
+ }
11643
+ case "too_small": {
11644
+ const adj = issue2.inclusive ? ">=" : ">";
11645
+ const sizing = getSizing(issue2.origin);
11646
+ if (sizing)
11647
+ return `\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${issue2.origin} \u0431\u043E\u044F\u0434 ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
11648
+ return `\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${issue2.origin} \u0431\u043E\u044F\u0434 ${adj}${issue2.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`;
11649
+ }
11650
+ case "invalid_format": {
11651
+ const _issue = issue2;
11652
+ if (_issue.format === "starts_with")
11653
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${_issue.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`;
11654
+ if (_issue.format === "ends_with")
11655
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${_issue.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`;
11656
+ if (_issue.format === "includes")
11657
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${_issue.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`;
11658
+ if (_issue.format === "regex")
11659
+ return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${_issue.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`;
11660
+ return `${FormatDictionary[_issue.format] ?? issue2.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`;
11661
+ }
11662
+ case "not_multiple_of":
11663
+ return `\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${issue2.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;
11664
+ case "unrecognized_keys":
11665
+ return `\u041A\u0430\u043B\u0438\u0434${issue2.keys.length > 1 ? "\u04B3\u043E\u0438" : "\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${joinValues(issue2.keys, ", ")}`;
11666
+ case "invalid_key":
11667
+ return `\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${issue2.origin}`;
11668
+ case "invalid_union":
11669
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
11670
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
11671
+ return `\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${opts} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;
11672
+ }
11673
+ return "\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";
11674
+ case "invalid_element":
11675
+ return `\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${issue2.origin}`;
11676
+ default:
11677
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`;
11678
+ }
11679
+ };
11680
+ };
11681
+ function tg_default() {
11682
+ return {
11683
+ localeError: error51()
11684
+ };
11685
+ }
11686
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/th.js
11687
+ var error52 = () => {
11688
+ const Sizable = {
11689
+ string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11690
+ file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11691
+ array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11692
+ set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11693
+ map: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }
11694
+ };
11695
+ function getSizing(origin) {
11696
+ return Sizable[origin] ?? null;
11697
+ }
11698
+ const FormatDictionary = {
11699
+ regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
11700
+ email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",
11701
+ url: "URL",
11702
+ emoji: "\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",
11703
+ uuid: "UUID",
11704
+ uuidv4: "UUIDv4",
11705
+ uuidv6: "UUIDv6",
11706
+ nanoid: "nanoid",
11707
+ guid: "GUID",
11708
+ cuid: "cuid",
11709
+ cuid2: "cuid2",
11710
+ ulid: "ULID",
11711
+ xid: "XID",
11712
+ ksuid: "KSUID",
11713
+ datetime: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
11714
+ date: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",
11715
+ time: "\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
11716
+ duration: "\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
11717
+ ipv4: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",
11718
+ ipv6: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",
11719
+ mac: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",
11720
+ cidrv4: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",
11721
+ cidrv6: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",
11722
+ base64: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",
11723
+ base64url: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",
11724
+ json_string: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",
11725
+ e164: "\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",
11726
+ credit_card: "\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",
11727
+ currency_code: "\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",
11728
+ iban: "IBAN",
11729
+ jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
11730
+ template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
11731
+ };
11732
+ const TypeDictionary = {
11733
+ nan: "NaN",
11734
+ number: "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",
11735
+ array: "\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",
11736
+ null: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"
11737
+ };
11738
+ return (issue2) => {
11739
+ switch (issue2.code) {
11740
+ case "invalid_type": {
11741
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11742
+ const receivedType = parsedType(issue2.input);
11743
+ const received = TypeDictionary[receivedType] ?? receivedType;
11744
+ if (/^[A-Z]/.test(issue2.expected)) {
11745
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
11746
+ }
11369
11747
  return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
11370
11748
  }
11371
11749
  case "invalid_value":
@@ -11417,11 +11795,11 @@ var error51 = () => {
11417
11795
  };
11418
11796
  function th_default() {
11419
11797
  return {
11420
- localeError: error51()
11798
+ localeError: error52()
11421
11799
  };
11422
11800
  }
11423
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/tk.js
11424
- var error52 = () => {
11801
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/tk.js
11802
+ var error53 = () => {
11425
11803
  const Sizable = {
11426
11804
  string: { unit: "simwol", verb: "bolmaly" },
11427
11805
  file: { unit: "ba\xFDt", verb: "bolmaly" },
@@ -11461,6 +11839,8 @@ var error52 = () => {
11461
11839
  json_string: "JSON setiri",
11462
11840
  e164: "E.164 nomeri",
11463
11841
  credit_card: "kredit kartyny\u0148 nomeri",
11842
+ currency_code: "wal\xFDuta kody",
11843
+ iban: "IBAN",
11464
11844
  jwt: "JWT",
11465
11845
  template_literal: "\u015Fablon"
11466
11846
  };
@@ -11522,11 +11902,11 @@ var error52 = () => {
11522
11902
  };
11523
11903
  function tk_default() {
11524
11904
  return {
11525
- localeError: error52()
11905
+ localeError: error53()
11526
11906
  };
11527
11907
  }
11528
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/tr.js
11529
- var error53 = () => {
11908
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/tr.js
11909
+ var error54 = () => {
11530
11910
  const Sizable = {
11531
11911
  string: { unit: "karakter", verb: "olmal\u0131" },
11532
11912
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -11566,6 +11946,8 @@ var error53 = () => {
11566
11946
  json_string: "JSON dizesi",
11567
11947
  e164: "E.164 say\u0131s\u0131",
11568
11948
  credit_card: "kredi kart\u0131 numaras\u0131",
11949
+ currency_code: "para birimi kodu",
11950
+ iban: "IBAN",
11569
11951
  jwt: "JWT",
11570
11952
  template_literal: "\u015Eablon dizesi"
11571
11953
  };
@@ -11630,11 +12012,11 @@ var error53 = () => {
11630
12012
  };
11631
12013
  function tr_default() {
11632
12014
  return {
11633
- localeError: error53()
12015
+ localeError: error54()
11634
12016
  };
11635
12017
  }
11636
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/uk.js
11637
- var error54 = () => {
12018
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/uk.js
12019
+ var error55 = () => {
11638
12020
  const Sizable = {
11639
12021
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
11640
12022
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -11674,6 +12056,8 @@ var error54 = () => {
11674
12056
  json_string: "\u0440\u044F\u0434\u043E\u043A JSON",
11675
12057
  e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
11676
12058
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",
12059
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",
12060
+ iban: "IBAN",
11677
12061
  jwt: "JWT",
11678
12062
  template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
11679
12063
  };
@@ -11741,16 +12125,16 @@ var error54 = () => {
11741
12125
  };
11742
12126
  function uk_default() {
11743
12127
  return {
11744
- localeError: error54()
12128
+ localeError: error55()
11745
12129
  };
11746
12130
  }
11747
12131
 
11748
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ua.js
12132
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ua.js
11749
12133
  function ua_default() {
11750
12134
  return uk_default();
11751
12135
  }
11752
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/ur.js
11753
- var error55 = () => {
12136
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/ur.js
12137
+ var error56 = () => {
11754
12138
  const Sizable = {
11755
12139
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
11756
12140
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -11790,6 +12174,8 @@ var error55 = () => {
11790
12174
  json_string: "\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",
11791
12175
  e164: "\u0627\u06CC 164 \u0646\u0645\u0628\u0631",
11792
12176
  credit_card: "\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",
12177
+ currency_code: "\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",
12178
+ iban: "IBAN",
11793
12179
  jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
11794
12180
  template_literal: "\u0627\u0646 \u067E\u0679"
11795
12181
  };
@@ -11859,11 +12245,11 @@ var error55 = () => {
11859
12245
  };
11860
12246
  function ur_default() {
11861
12247
  return {
11862
- localeError: error55()
12248
+ localeError: error56()
11863
12249
  };
11864
12250
  }
11865
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/uz.js
11866
- var error56 = () => {
12251
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/uz.js
12252
+ var error57 = () => {
11867
12253
  const Sizable = {
11868
12254
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
11869
12255
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
@@ -11903,6 +12289,8 @@ var error56 = () => {
11903
12289
  json_string: "JSON satr",
11904
12290
  e164: "E.164 raqam",
11905
12291
  credit_card: "kredit karta raqami",
12292
+ currency_code: "valyuta kodi",
12293
+ iban: "IBAN",
11906
12294
  jwt: "JWT",
11907
12295
  template_literal: "kirish"
11908
12296
  };
@@ -11970,11 +12358,11 @@ var error56 = () => {
11970
12358
  };
11971
12359
  function uz_default() {
11972
12360
  return {
11973
- localeError: error56()
12361
+ localeError: error57()
11974
12362
  };
11975
12363
  }
11976
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/vi.js
11977
- var error57 = () => {
12364
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/vi.js
12365
+ var error58 = () => {
11978
12366
  const Sizable = {
11979
12367
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
11980
12368
  file: { unit: "byte", verb: "c\xF3" },
@@ -12014,6 +12402,8 @@ var error57 = () => {
12014
12402
  json_string: "chu\u1ED7i JSON",
12015
12403
  e164: "s\u1ED1 E.164",
12016
12404
  credit_card: "s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",
12405
+ currency_code: "m\xE3 ti\u1EC1n t\u1EC7",
12406
+ iban: "IBAN",
12017
12407
  jwt: "JWT",
12018
12408
  template_literal: "\u0111\u1EA7u v\xE0o"
12019
12409
  };
@@ -12081,11 +12471,11 @@ var error57 = () => {
12081
12471
  };
12082
12472
  function vi_default() {
12083
12473
  return {
12084
- localeError: error57()
12474
+ localeError: error58()
12085
12475
  };
12086
12476
  }
12087
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/zh-CN.js
12088
- var error58 = () => {
12477
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.js
12478
+ var error59 = () => {
12089
12479
  const Sizable = {
12090
12480
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
12091
12481
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -12125,6 +12515,8 @@ var error58 = () => {
12125
12515
  json_string: "JSON\u5B57\u7B26\u4E32",
12126
12516
  e164: "E.164\u53F7\u7801",
12127
12517
  credit_card: "\u4FE1\u7528\u5361\u53F7",
12518
+ currency_code: "\u8D27\u5E01\u4EE3\u7801",
12519
+ iban: "IBAN",
12128
12520
  jwt: "JWT",
12129
12521
  template_literal: "\u8F93\u5165"
12130
12522
  };
@@ -12193,11 +12585,11 @@ var error58 = () => {
12193
12585
  };
12194
12586
  function zh_CN_default() {
12195
12587
  return {
12196
- localeError: error58()
12588
+ localeError: error59()
12197
12589
  };
12198
12590
  }
12199
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/zh-TW.js
12200
- var error59 = () => {
12591
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.js
12592
+ var error60 = () => {
12201
12593
  const Sizable = {
12202
12594
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
12203
12595
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -12237,6 +12629,8 @@ var error59 = () => {
12237
12629
  json_string: "JSON \u5B57\u4E32",
12238
12630
  e164: "E.164 \u6578\u503C",
12239
12631
  credit_card: "\u4FE1\u7528\u5361\u865F",
12632
+ currency_code: "\u8CA8\u5E63\u4EE3\u78BC",
12633
+ iban: "IBAN",
12240
12634
  jwt: "JWT",
12241
12635
  template_literal: "\u8F38\u5165"
12242
12636
  };
@@ -12303,11 +12697,11 @@ var error59 = () => {
12303
12697
  };
12304
12698
  function zh_TW_default() {
12305
12699
  return {
12306
- localeError: error59()
12700
+ localeError: error60()
12307
12701
  };
12308
12702
  }
12309
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/yo.js
12310
- var error60 = () => {
12703
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/yo.js
12704
+ var error61 = () => {
12311
12705
  const Sizable = {
12312
12706
  string: { unit: "\xE0mi", verb: "n\xED" },
12313
12707
  file: { unit: "bytes", verb: "n\xED" },
@@ -12347,6 +12741,8 @@ var error60 = () => {
12347
12741
  json_string: "\u1ECD\u0300r\u1ECD\u0300 JSON",
12348
12742
  e164: "n\u1ECD\u0301mb\xE0 E.164",
12349
12743
  credit_card: "n\u1ECDmba kaadi gbese",
12744
+ currency_code: "koodu ow\xF3",
12745
+ iban: "IBAN",
12350
12746
  jwt: "JWT",
12351
12747
  template_literal: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"
12352
12748
  };
@@ -12413,10 +12809,10 @@ var error60 = () => {
12413
12809
  };
12414
12810
  function yo_default() {
12415
12811
  return {
12416
- localeError: error60()
12812
+ localeError: error61()
12417
12813
  };
12418
12814
  }
12419
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
12815
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/registries.js
12420
12816
  var _a2;
12421
12817
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
12422
12818
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -12466,7 +12862,7 @@ function registry() {
12466
12862
  }
12467
12863
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
12468
12864
  var globalRegistry = globalThis.__zod_globalRegistry;
12469
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/compile.js
12865
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/compile.js
12470
12866
  var INVALID = Symbol.for("zod.compile.invalid");
12471
12867
  var FALLBACK_FLAG = Symbol.for("zod.compile.fallback");
12472
12868
 
@@ -12494,31 +12890,8 @@ function compileValidator(schema, parser) {
12494
12890
  function compile(schema, options) {
12495
12891
  try {
12496
12892
  const parser = compileFn(schema);
12497
- const clone2 = clone(schema);
12498
- const liveRun = schema._zod.run;
12499
- const originalRun = liveRun.__originalRun ?? liveRun;
12500
- const wrapped = (payload, ctx) => {
12501
- if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks || ctx?.[FALLBACK_FLAG]) {
12502
- return originalRun(payload, ctx);
12503
- }
12504
- if (ctx && isBackEdge(ctx, payload.value)) {
12505
- return originalRun(payload, ctx);
12506
- }
12507
- const out = parser(payload.value);
12508
- if (out !== INVALID) {
12509
- payload.value = out;
12510
- return payload;
12511
- }
12512
- if (ctx)
12513
- ctx[FALLBACK_FLAG] = true;
12514
- return originalRun(payload, ctx);
12515
- };
12516
- wrapped.__originalRun = originalRun;
12517
- clone2._zod.bag.fallbackRun = originalRun;
12893
+ const clone2 = withParser(schema, parser);
12518
12894
  clone2._zod.bag.validator = compileValidator(schema, parser);
12519
- clone2._zod.run = wrapped;
12520
- if (!liveRun.__originalRun)
12521
- installCompiledUserMethods(clone2, schema, parser);
12522
12895
  return clone2;
12523
12896
  } catch (err) {
12524
12897
  if (options?.strict)
@@ -12526,6 +12899,37 @@ function compile(schema, options) {
12526
12899
  return schema;
12527
12900
  }
12528
12901
  }
12902
+ function withParser(schema, parser) {
12903
+ if (isRecursiveSchema(schema)) {
12904
+ throw new ZodCompileUnsupportedError("a schema whose subtree contains a reference cycle");
12905
+ }
12906
+ const clone2 = clone(schema);
12907
+ const liveRun = schema._zod.run;
12908
+ const originalRun = liveRun.__originalRun ?? liveRun;
12909
+ const wrapped = (payload, ctx) => {
12910
+ if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks || ctx?.[FALLBACK_FLAG]) {
12911
+ return originalRun(payload, ctx);
12912
+ }
12913
+ if (ctx && isBackEdge(ctx, payload.value)) {
12914
+ return originalRun(payload, ctx);
12915
+ }
12916
+ const out = parser(payload.value);
12917
+ if (out !== INVALID) {
12918
+ payload.value = out;
12919
+ return payload;
12920
+ }
12921
+ if (ctx)
12922
+ ctx[FALLBACK_FLAG] = true;
12923
+ return originalRun(payload, ctx);
12924
+ };
12925
+ wrapped.__originalRun = originalRun;
12926
+ clone2._zod.bag.fallbackRun = originalRun;
12927
+ clone2._zod.bag.validator = parser;
12928
+ clone2._zod.run = wrapped;
12929
+ if (!liveRun.__originalRun)
12930
+ installCompiledUserMethods(clone2, schema, parser);
12931
+ return clone2;
12932
+ }
12529
12933
  function installCompiledUserMethods(target, source, parser) {
12530
12934
  const targetAny = target;
12531
12935
  const sourceAny = source;
@@ -12561,7 +12965,8 @@ function compileFn(schema, options) {
12561
12965
  const ctx = {
12562
12966
  constants: new Map,
12563
12967
  constantCounter: 0,
12564
- varCounter: 0
12968
+ varCounter: 0,
12969
+ definite: true
12565
12970
  };
12566
12971
  const doc = new Doc(["input"]);
12567
12972
  const outputAccessor = generateCheck(doc, ctx, schema, "input", !options?.assertOnly);
@@ -12586,6 +12991,7 @@ ${code}
12586
12991
  if (options?.debug) {
12587
12992
  fn.code = fullCode;
12588
12993
  }
12994
+ fn.definite = ctx.definite;
12589
12995
  return fn;
12590
12996
  }
12591
12997
  function addConstant(ctx, value) {
@@ -12597,6 +13003,10 @@ function addConstant(ctx, value) {
12597
13003
  ctx.constants.set(name, value);
12598
13004
  return name;
12599
13005
  }
13006
+ function addUserConstant(ctx, fn) {
13007
+ ctx.definite = false;
13008
+ return addConstant(ctx, fn);
13009
+ }
12600
13010
  function newVar(ctx) {
12601
13011
  return `v${ctx.varCounter++}`;
12602
13012
  }
@@ -12629,6 +13039,7 @@ function compileChild(doc, ctx, schema, accessor, needsValue = true) {
12629
13039
  }
12630
13040
  }
12631
13041
  function emitRuntimeIsland(doc, ctx, schema, accessor) {
13042
+ ctx.definite = false;
12632
13043
  const schemaConst = addConstant(ctx, schema);
12633
13044
  const runConst = addConstant(ctx, runtimeRun);
12634
13045
  const outVar = newVar(ctx);
@@ -12709,6 +13120,9 @@ function generateChecks(doc, ctx, schema, accessor) {
12709
13120
  case "property":
12710
13121
  generatePropertyCheck(doc, ctx, def, currentAccessor);
12711
13122
  break;
13123
+ case "properties":
13124
+ generatePropertiesChecks(doc, ctx, def, currentAccessor);
13125
+ break;
12712
13126
  case "overwrite": {
12713
13127
  const newAccessor = newVar(ctx);
12714
13128
  generateOverwriteCheck(doc, ctx, check, currentAccessor, newAccessor);
@@ -12814,6 +13228,19 @@ function generateMimeTypeCheck(doc, ctx, def, accessor) {
12814
13228
  doc.write(`if (!${mimeSet}.has(${accessor}.type)) return INVALID;`);
12815
13229
  }
12816
13230
  }
13231
+ function generatePropertiesChecks(doc, ctx, def, accessor) {
13232
+ if (def.when) {
13233
+ throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
13234
+ }
13235
+ doc.write(`if (${accessor} == null) return INVALID;`);
13236
+ const shape = def.shape;
13237
+ for (const key of Reflect.ownKeys(shape)) {
13238
+ const keyExpr = typeof key === "symbol" ? addConstant(ctx, key) : esc(key);
13239
+ const inputVar = newVar(ctx);
13240
+ doc.write(`const ${inputVar} = ${accessor}[${keyExpr}];`);
13241
+ compileChild(doc, ctx, shape[key], inputVar, false);
13242
+ }
13243
+ }
12817
13244
  function generatePropertyCheck(doc, ctx, def, accessor) {
12818
13245
  const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`;
12819
13246
  generateCheck(doc, ctx, def.schema, propAccessor);
@@ -12841,7 +13268,7 @@ function generateCustomRefineCheck(doc, ctx, check, accessor) {
12841
13268
  if (isAsyncFunction(def.fn)) {
12842
13269
  throw new ZodCompileAsyncError("z.compile: async .refine() predicates are not supported");
12843
13270
  }
12844
- const fnConst = addConstant(ctx, def.fn);
13271
+ const fnConst = addUserConstant(ctx, def.fn);
12845
13272
  const throwAsyncConst = addConstant(ctx, throwAsync);
12846
13273
  const resVar = newVar(ctx);
12847
13274
  doc.write(`const ${resVar} = ${fnConst}(${accessor});`);
@@ -12861,7 +13288,7 @@ function generateCustomRefineCheck(doc, ctx, check, accessor) {
12861
13288
  throwAsync();
12862
13289
  return fakePayload.issues.length === 0 ? fakePayload.value : INVALID;
12863
13290
  };
12864
- const helperConst = addConstant(ctx, helperFn);
13291
+ const helperConst = addUserConstant(ctx, helperFn);
12865
13292
  const outVar = newVar(ctx);
12866
13293
  doc.write(`const ${outVar} = ${helperConst}(${accessor});`);
12867
13294
  doc.write(`if (${outVar} === INVALID) return INVALID;`);
@@ -12895,7 +13322,7 @@ var PATTERN_IS_COMPLETE = new Set([
12895
13322
  "uuid",
12896
13323
  "xid"
12897
13324
  ]);
12898
- function generateStringFormatCheck(doc, ctx, def, accessor) {
13325
+ function generateStringFormatCheck(doc, ctx, def, accessor, needsValue = true) {
12899
13326
  const fmt = def.format;
12900
13327
  if (fmt === "base64") {
12901
13328
  const validator = addConstant(ctx, isValidBase64);
@@ -12928,9 +13355,14 @@ function generateStringFormatCheck(doc, ctx, def, accessor) {
12928
13355
  doc.write(`if (!${validator}(${accessor})) return INVALID;`);
12929
13356
  return accessor;
12930
13357
  }
13358
+ if (fmt === "iban") {
13359
+ const validator = addConstant(ctx, isValidIBAN);
13360
+ doc.write(`if (!${validator}(${accessor})) return INVALID;`);
13361
+ return accessor;
13362
+ }
12931
13363
  const formatDef = def;
12932
13364
  if (fmt === "url" || fmt === "httpurl" || formatDef.normalize || formatDef.hostname !== undefined || formatDef.protocol !== undefined) {
12933
- const parseConst = addConstant(ctx, parseURLObject);
13365
+ const parseConst = addConstant(ctx, validateURL);
12934
13366
  const defConst = addConstant(ctx, def);
12935
13367
  const trimVar = newVar(ctx);
12936
13368
  const urlVar = newVar(ctx);
@@ -12945,6 +13377,8 @@ function generateStringFormatCheck(doc, ctx, def, accessor) {
12945
13377
  const protocolConst = addConstant(ctx, urlProtocolOk);
12946
13378
  doc.write(`if (!${protocolConst}(${urlVar}, ${defConst}.protocol)) return INVALID;`);
12947
13379
  }
13380
+ if (!needsValue)
13381
+ return null;
12948
13382
  const outputVar = newVar(ctx);
12949
13383
  const outputExpr = formatDef.normalize ? `${urlVar}.href` : `${addConstant(ctx, stripTabAndNewline)}(${trimVar})`;
12950
13384
  doc.write(`const ${outputVar} = ${outputExpr};`);
@@ -13003,7 +13437,7 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
13003
13437
  let typeAccessor;
13004
13438
  switch (type) {
13005
13439
  case "string":
13006
- typeAccessor = generateStringCheck(doc, ctx, schema, accessor);
13440
+ typeAccessor = generateStringCheck(doc, ctx, schema, accessor, buildsValue);
13007
13441
  break;
13008
13442
  case "number":
13009
13443
  typeAccessor = generateNumberCheck(doc, schema, accessor);
@@ -13123,12 +13557,12 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
13123
13557
  return null;
13124
13558
  return generateChecks(doc, ctx, schema, typeAccessor);
13125
13559
  }
13126
- function generateStringCheck(doc, ctx, schema, accessor) {
13560
+ function generateStringCheck(doc, ctx, schema, accessor, needsValue = true) {
13127
13561
  doc.write(`if (typeof ${accessor} !== "string") return INVALID;`);
13128
13562
  const def = schema._zod.def;
13129
13563
  if (def.format === undefined)
13130
13564
  return accessor;
13131
- return generateStringFormatCheck(doc, ctx, def, accessor);
13565
+ return generateStringFormatCheck(doc, ctx, def, accessor, needsValue);
13132
13566
  }
13133
13567
  function generateNumberCheck(doc, schema, accessor) {
13134
13568
  doc.write(`if (typeof ${accessor} !== "number" || !Number.isFinite(${accessor})) return INVALID;`);
@@ -13246,7 +13680,7 @@ function generateObjectCheck(doc, ctx, schema, accessor, buildsValue = true) {
13246
13680
  }
13247
13681
  }
13248
13682
  const outputVar = newVar(ctx);
13249
- const hasConditionalKeys = allKeys.some((k) => mayOutputUndefined(propShape[k]) || dropsWhenAbsent(propShape[k]));
13683
+ const hasConditionalKeys = allKeys.some((k) => mayOmitUndefined(propShape[k]) || dropsWhenAbsent(propShape[k]));
13250
13684
  if (!buildsValue) {
13251
13685
  if (unknownKeysMode === "schema") {
13252
13686
  const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null;
@@ -13273,7 +13707,7 @@ function generateObjectCheck(doc, ctx, schema, accessor, buildsValue = true) {
13273
13707
  const out = propOutputs.get(k);
13274
13708
  if (dropsWhenAbsent(propShape[k])) {
13275
13709
  doc.write(`if (${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`);
13276
- } else if (mayOutputUndefined(propShape[k])) {
13710
+ } else if (mayOmitUndefined(propShape[k])) {
13277
13711
  doc.write(`if (${out} !== undefined || ${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`);
13278
13712
  } else {
13279
13713
  doc.write(`${outputVar}[${kx}] = ${out};`);
@@ -13406,6 +13840,9 @@ function fastPathAcceptsAbsence(schema) {
13406
13840
  function dropsWhenAbsent(schema) {
13407
13841
  return schema._zod.optin === "optional" && schema._zod.optout === "optional";
13408
13842
  }
13843
+ function mayOmitUndefined(schema) {
13844
+ return (schema._zod.optin !== "defaulted" || schema._zod.optout === "optional") && mayOutputUndefined(schema);
13845
+ }
13409
13846
  function mayOutputUndefined(schema) {
13410
13847
  const def = schema._zod.def;
13411
13848
  switch (def.type) {
@@ -13748,6 +14185,7 @@ function literalEquality(ctx, accessor, value) {
13748
14185
  }
13749
14186
  function generateIntersectionCheck(doc, ctx, schema, accessor) {
13750
14187
  const def = schema._zod.def;
14188
+ ctx.definite = false;
13751
14189
  const leftOutput = compileChild(doc, ctx, def.left, accessor);
13752
14190
  const rightOutput = compileChild(doc, ctx, def.right, accessor);
13753
14191
  const mergeConst = addConstant(ctx, mergeValues);
@@ -13801,14 +14239,13 @@ function generateRecordCheck(doc, ctx, schema, accessor) {
13801
14239
  const keyIsBareString = keyDef.type === "string" && keyDef.format === undefined && !keyDef.coerce && (keyDef.checks?.length ?? 0) === 0;
13802
14240
  if (!keyIsBareString) {
13803
14241
  const isLoose = def.mode === "loose";
13804
- const keyFast = addConstant(ctx, compileFn(def.keyType));
14242
+ const keyFn = compileFn(def.keyType);
14243
+ if (keyFn.definite === false)
14244
+ ctx.definite = false;
14245
+ const keyFast = addConstant(ctx, keyFn);
13805
14246
  const numericConst = addConstant(ctx, number);
13806
- const propIsEnumerableConst = addConstant(ctx, Object.prototype.propertyIsEnumerable);
13807
14247
  const outKeyVar = newVar(ctx);
13808
- doc.write(`for (const ${kVar} of Reflect.ownKeys(${accessor})) {`);
13809
- doc.indented((d) => {
13810
- d.write(`if (${kVar} === "__proto__") continue;`);
13811
- d.write(`if (!${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);
14248
+ emitOwnKeys(doc, ctx, accessor, kVar, (d) => {
13812
14249
  d.write(`let ${outKeyVar} = ${keyFast}(${kVar});`);
13813
14250
  d.write(`if (${outKeyVar} === INVALID && typeof ${kVar} === "string" && ${numericConst}.test(${kVar})) ${outKeyVar} = ${keyFast}(Number(${kVar}));`);
13814
14251
  if (isLoose) {
@@ -13822,21 +14259,39 @@ function generateRecordCheck(doc, ctx, schema, accessor) {
13822
14259
  const valOutput = compileChild(d, ctx, def.valueType, valueVar);
13823
14260
  d.write(`${outputVar}[${outKeyVar}] = ${valOutput};`);
13824
14261
  });
13825
- doc.write(`}`);
13826
14262
  return outputVar;
13827
14263
  }
13828
- const propIsEnumerable = addConstant(ctx, Object.prototype.propertyIsEnumerable);
13829
- doc.write(`for (const ${kVar} of Reflect.ownKeys(${accessor})) {`);
13830
- doc.indented((d) => {
13831
- d.write(`if (${kVar} === "__proto__") continue;`);
13832
- d.write(`if (!${propIsEnumerable}.call(${accessor}, ${kVar})) continue;`);
13833
- d.write(`if (typeof ${kVar} !== "string") return INVALID;`);
14264
+ emitOwnKeys(doc, ctx, accessor, kVar, (d) => {
13834
14265
  d.write(`const ${valVar} = ${accessor}[${kVar}];`);
13835
14266
  const valOutput = compileChild(d, ctx, def.valueType, valVar);
13836
14267
  d.write(`${outputVar}[${kVar}] = ${valOutput};`);
14268
+ }, `return INVALID;`);
14269
+ return outputVar;
14270
+ }
14271
+ function emitOwnKeys(doc, ctx, accessor, kVar, body, onSymbol) {
14272
+ const propIsEnumerableConst = addConstant(ctx, Object.prototype.propertyIsEnumerable);
14273
+ const symsVar = newVar(ctx);
14274
+ const keysVar = newVar(ctx);
14275
+ const iVar = newVar(ctx);
14276
+ doc.write(`const ${symsVar} = Object.getOwnPropertySymbols(${accessor});`);
14277
+ doc.write(`const ${keysVar} = Object.getOwnPropertyNames(${accessor});`);
14278
+ doc.write(`for (let ${iVar} = 0; ${iVar} < ${keysVar}.length; ${iVar}++) {`);
14279
+ doc.indented((d) => {
14280
+ d.write(`const ${kVar} = ${keysVar}[${iVar}];`);
14281
+ d.write(`if (${kVar} === "__proto__" || !${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);
14282
+ body(d);
14283
+ });
14284
+ doc.write(`}`);
14285
+ doc.write(`for (let ${iVar} = 0; ${iVar} < ${symsVar}.length; ${iVar}++) {`);
14286
+ doc.indented((d) => {
14287
+ d.write(`const ${kVar} = ${symsVar}[${iVar}];`);
14288
+ d.write(`if (!${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);
14289
+ if (onSymbol)
14290
+ d.write(onSymbol);
14291
+ else
14292
+ body(d);
13837
14293
  });
13838
14294
  doc.write(`}`);
13839
- return outputVar;
13840
14295
  }
13841
14296
  function literalPropertyKey(ctx, key) {
13842
14297
  if (typeof key === "string")
@@ -13889,7 +14344,7 @@ function generateTemplateLiteralCheck(doc, ctx, schema, accessor) {
13889
14344
  }
13890
14345
  function generateLazyCheck(doc, ctx, schema, accessor) {
13891
14346
  const def = schema._zod.def;
13892
- const getterConst = addConstant(ctx, def.getter);
14347
+ const getterConst = addUserConstant(ctx, def.getter);
13893
14348
  const cacheConst = addConstant(ctx, { parser: null });
13894
14349
  doc.write(`if (!${cacheConst}.parser) {`);
13895
14350
  doc.indented((d) => {
@@ -13922,7 +14377,7 @@ function generatePipeCheck(doc, ctx, schema, accessor) {
13922
14377
  return INVALID;
13923
14378
  return fakePayload.issues.length === 0 ? result : INVALID;
13924
14379
  };
13925
- const helperConst = addConstant(ctx, helperFn);
14380
+ const helperConst = addUserConstant(ctx, helperFn);
13926
14381
  const transformedVar = newVar(ctx);
13927
14382
  doc.write(`const ${transformedVar} = ${helperConst}(${inputOutput});`);
13928
14383
  doc.write(`if (${transformedVar} === INVALID) return INVALID;`);
@@ -13940,7 +14395,7 @@ function generateCustomCheck(doc, ctx, schema, accessor) {
13940
14395
  if (isAsyncFunction(def.fn)) {
13941
14396
  throw new ZodCompileAsyncError("z.compile: async custom predicates are not supported");
13942
14397
  }
13943
- const fnConst = addConstant(ctx, def.fn);
14398
+ const fnConst = addUserConstant(ctx, def.fn);
13944
14399
  const throwAsyncConst = addConstant(ctx, throwAsync);
13945
14400
  const resVar = newVar(ctx);
13946
14401
  doc.write(`const ${resVar} = ${fnConst}(${accessor});`);
@@ -13973,7 +14428,7 @@ function generateCatchCheck(doc, ctx, schema, accessor) {
13973
14428
  });
13974
14429
  doc.write(`})();`);
13975
14430
  const innerConst = addConstant(ctx, def.innerType);
13976
- const catchConst = addConstant(ctx, def.catchValue);
14431
+ const catchConst = addUserConstant(ctx, def.catchValue);
13977
14432
  const catchHelperConst = addConstant(ctx, runtimeCatch);
13978
14433
  doc.write(`if (${outputVar} === INVALID) {`);
13979
14434
  doc.indented((d) => {
@@ -13997,7 +14452,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
13997
14452
  return INVALID;
13998
14453
  return fakePayload.issues.length === 0 ? result : INVALID;
13999
14454
  };
14000
- const helperConst = addConstant(ctx, helperFn);
14455
+ const helperConst = addUserConstant(ctx, helperFn);
14001
14456
  const outputVar = newVar(ctx);
14002
14457
  doc.write(`const ${outputVar} = ${helperConst}(${accessor});`);
14003
14458
  doc.write(`if (${outputVar} === INVALID) return INVALID;`);
@@ -14005,19 +14460,17 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
14005
14460
  }
14006
14461
  return accessor;
14007
14462
  }
14008
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
14463
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/api.js
14464
+ function snapshotChecks(def) {
14465
+ if (def.checks)
14466
+ def.checks = [...def.checks];
14467
+ return def;
14468
+ }
14009
14469
  function _string(Class2, params) {
14010
- return new Class2({
14011
- type: "string",
14012
- ...normalizeParams(params)
14013
- });
14470
+ return new Class2(snapshotChecks({ type: "string", ...normalizeParams(params) }));
14014
14471
  }
14015
14472
  function _coercedString(Class2, params) {
14016
- return new Class2({
14017
- type: "string",
14018
- coerce: true,
14019
- ...normalizeParams(params)
14020
- });
14473
+ return new Class2(snapshotChecks({ type: "string", coerce: true, ...normalizeParams(params) }));
14021
14474
  }
14022
14475
  function _email(Class2, params) {
14023
14476
  return new Class2({
@@ -14229,6 +14682,15 @@ function _creditCard(Class2, params) {
14229
14682
  ...normalizeParams(params)
14230
14683
  });
14231
14684
  }
14685
+ function _iban(Class2, params) {
14686
+ return new Class2({
14687
+ type: "string",
14688
+ format: "iban",
14689
+ check: "string_format",
14690
+ abort: false,
14691
+ ...normalizeParams(params)
14692
+ });
14693
+ }
14232
14694
  function _jwt(Class2, params) {
14233
14695
  return new Class2({
14234
14696
  type: "string",
@@ -14282,19 +14744,10 @@ function _isoDuration(Class2, params) {
14282
14744
  });
14283
14745
  }
14284
14746
  function _number(Class2, params) {
14285
- return new Class2({
14286
- type: "number",
14287
- checks: [],
14288
- ...normalizeParams(params)
14289
- });
14747
+ return new Class2(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
14290
14748
  }
14291
14749
  function _coercedNumber(Class2, params) {
14292
- return new Class2({
14293
- type: "number",
14294
- coerce: true,
14295
- checks: [],
14296
- ...normalizeParams(params)
14297
- });
14750
+ return new Class2(snapshotChecks({ type: "number", coerce: true, checks: [], ...normalizeParams(params) }));
14298
14751
  }
14299
14752
  function _int(Class2, params) {
14300
14753
  return new Class2({
@@ -14592,8 +15045,12 @@ function _property(property, schema, params) {
14592
15045
  ...normalizeParams(params)
14593
15046
  });
14594
15047
  }
14595
- function _properties(shape) {
14596
- return Object.entries(shape).map(([property, schema]) => new $ZodCheckProperty({ check: "property", property, schema }));
15048
+ function _properties(shape, params) {
15049
+ return new $ZodCheckProperties({
15050
+ check: "properties",
15051
+ shape,
15052
+ ...normalizeParams(params)
15053
+ });
14597
15054
  }
14598
15055
  function _mime(types, params) {
14599
15056
  return new $ZodCheckMimeType({
@@ -14940,7 +15397,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
14940
15397
  const inst = new Class2(def);
14941
15398
  return inst;
14942
15399
  }
14943
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
15400
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
14944
15401
  function assignProps(target, ...sources) {
14945
15402
  for (const source of sources) {
14946
15403
  for (const key of Reflect.ownKeys(source)) {
@@ -14984,7 +15441,7 @@ function handleUnrepresentable(schema, ctx, json, params, message) {
14984
15441
  Object.assign(json, result);
14985
15442
  return true;
14986
15443
  }
14987
- function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
15444
+ function processSchema(schema, ctx, _params = { path: [], schemaPath: [] }) {
14988
15445
  var _a3;
14989
15446
  const def = schema._zod.def;
14990
15447
  const seen = ctx.seen.get(schema);
@@ -15023,7 +15480,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
15023
15480
  if (parent) {
15024
15481
  if (!result.ref)
15025
15482
  result.ref = parent;
15026
- process2(parent, ctx, params);
15483
+ processSchema(parent, ctx, params);
15027
15484
  ctx.seen.get(parent).isParent = true;
15028
15485
  }
15029
15486
  }
@@ -15128,7 +15585,6 @@ function extractDefs(ctx, schema) {
15128
15585
  if (seen.count > 1) {
15129
15586
  if (ctx.reused === "ref") {
15130
15587
  extractToDef(entry);
15131
- continue;
15132
15588
  }
15133
15589
  }
15134
15590
  }
@@ -15453,18 +15909,106 @@ function isTransforming(_schema, _ctx) {
15453
15909
  }
15454
15910
  var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
15455
15911
  const ctx = initializeContext({ ...params, processors });
15456
- process2(schema, ctx);
15912
+ processSchema(schema, ctx);
15457
15913
  extractDefs(ctx, schema);
15458
15914
  return finalize(ctx, schema);
15459
15915
  };
15460
15916
  var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
15461
15917
  const { libraryOptions, target } = params ?? {};
15462
15918
  const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
15463
- process2(schema, ctx);
15919
+ processSchema(schema, ctx);
15464
15920
  extractDefs(ctx, schema);
15465
15921
  return finalize(ctx, schema);
15466
15922
  };
15467
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/json-schema-processors.js
15923
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
15924
+ var narrowMin = (agg, key, value) => {
15925
+ if (agg[key] === undefined || value > agg[key])
15926
+ agg[key] = value;
15927
+ };
15928
+ var narrowMax = (agg, key, value) => {
15929
+ if (agg[key] === undefined || value < agg[key])
15930
+ agg[key] = value;
15931
+ };
15932
+ var narrowBoth = (agg, value) => {
15933
+ narrowMin(agg, "minimum", value);
15934
+ narrowMax(agg, "maximum", value);
15935
+ };
15936
+ var addDivisor = (agg, value) => {
15937
+ agg.multipleOf ?? (agg.multipleOf = []);
15938
+ if (!agg.multipleOf.includes(value))
15939
+ agg.multipleOf.push(value);
15940
+ };
15941
+ var addPattern = (agg, pattern) => {
15942
+ agg.patterns ?? (agg.patterns = new Set);
15943
+ agg.patterns.add(pattern);
15944
+ };
15945
+ var intersectMime = (agg, mime) => {
15946
+ agg.mime = agg.mime ? agg.mime.filter((m) => mime.includes(m)) : [...mime];
15947
+ };
15948
+ var setFormat = (agg, format) => {
15949
+ agg.format = format;
15950
+ if (format.includes("int"))
15951
+ agg.isInt = true;
15952
+ };
15953
+ var minContributor = (agg, def) => narrowMin(agg, "minimum", def.minimum);
15954
+ var maxContributor = (agg, def) => narrowMax(agg, "maximum", def.maximum);
15955
+ var formatContributor = (ranges) => (agg, def) => {
15956
+ setFormat(agg, def.format);
15957
+ const [minimum, maximum] = ranges[def.format];
15958
+ narrowMin(agg, "minimum", minimum);
15959
+ narrowMax(agg, "maximum", maximum);
15960
+ };
15961
+ var contributors = {
15962
+ greater_than: (agg, def) => narrowMin(agg, def.inclusive ? "minimum" : "exclusiveMinimum", def.value),
15963
+ less_than: (agg, def) => narrowMax(agg, def.inclusive ? "maximum" : "exclusiveMaximum", def.value),
15964
+ multiple_of: (agg, def) => addDivisor(agg, def.value),
15965
+ number_format: formatContributor(NUMBER_FORMAT_RANGES),
15966
+ bigint_format: formatContributor(BIGINT_FORMAT_RANGES),
15967
+ min_length: minContributor,
15968
+ max_length: maxContributor,
15969
+ length_equals: (agg, def) => narrowBoth(agg, def.length),
15970
+ min_size: minContributor,
15971
+ max_size: maxContributor,
15972
+ size_equals: (agg, def) => narrowBoth(agg, def.size),
15973
+ string_format: (agg, def) => {
15974
+ setFormat(agg, def.format);
15975
+ if (def.pattern)
15976
+ addPattern(agg, def.pattern);
15977
+ if (def.format === "base64" || def.format === "base64url")
15978
+ agg.contentEncoding = def.format;
15979
+ if (def.local || def.precision === -1)
15980
+ agg.laxFormat = true;
15981
+ },
15982
+ mime_type: (agg, def) => intersectMime(agg, def.mime)
15983
+ };
15984
+ function aggregateChecks(schema) {
15985
+ const agg = {};
15986
+ const def = schema._zod.def;
15987
+ const list = schema._zod.traits.has("$ZodCheck") ? [schema, ...def.checks ?? []] : def.checks ?? [];
15988
+ for (const ch of list)
15989
+ contributors[ch._zod.def.check]?.(agg, ch._zod.def);
15990
+ const bag = schema._zod.bag;
15991
+ if (bag.minimum !== undefined)
15992
+ narrowMin(agg, "minimum", bag.minimum);
15993
+ if (bag.exclusiveMinimum !== undefined)
15994
+ narrowMin(agg, "exclusiveMinimum", bag.exclusiveMinimum);
15995
+ if (bag.maximum !== undefined)
15996
+ narrowMax(agg, "maximum", bag.maximum);
15997
+ if (bag.exclusiveMaximum !== undefined)
15998
+ narrowMax(agg, "exclusiveMaximum", bag.exclusiveMaximum);
15999
+ if (bag.multipleOf !== undefined)
16000
+ addDivisor(agg, bag.multipleOf);
16001
+ if (bag.format !== undefined) {
16002
+ agg.format ?? (agg.format = bag.format);
16003
+ if (bag.format.includes("int"))
16004
+ agg.isInt = true;
16005
+ }
16006
+ if (bag.mime)
16007
+ intersectMime(agg, bag.mime);
16008
+ for (const pattern of bag.patterns ?? [])
16009
+ addPattern(agg, pattern);
16010
+ return agg;
16011
+ }
15468
16012
  var formatMap = {
15469
16013
  guid: "uuid",
15470
16014
  url: "uri",
@@ -15472,10 +16016,15 @@ var formatMap = {
15472
16016
  json_string: "json-string",
15473
16017
  regex: ""
15474
16018
  };
16019
+ var exactPatterns = new Map([
16020
+ [base64Charset, base64],
16021
+ [base64urlCharset, base64url]
16022
+ ]);
16023
+ var exactPattern = (p) => exactPatterns.get(p) ?? p;
15475
16024
  var stringProcessor = (schema, ctx, _json, _params) => {
15476
16025
  const json = _json;
15477
16026
  json.type = "string";
15478
- const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = schema._zod.bag;
16027
+ const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = aggregateChecks(schema);
15479
16028
  if (typeof minimum === "number")
15480
16029
  json.minLength = minimum;
15481
16030
  if (typeof maximum === "number")
@@ -15491,7 +16040,7 @@ var stringProcessor = (schema, ctx, _json, _params) => {
15491
16040
  if (contentEncoding)
15492
16041
  json.contentEncoding = contentEncoding;
15493
16042
  if (patterns && patterns.size > 0) {
15494
- const patternList = [...patterns];
16043
+ const patternList = [...patterns].map(exactPattern);
15495
16044
  if (patternList.length === 1)
15496
16045
  json.pattern = patternList[0].source;
15497
16046
  else if (patternList.length > 1) {
@@ -15506,11 +16055,8 @@ var stringProcessor = (schema, ctx, _json, _params) => {
15506
16055
  };
15507
16056
  var numberProcessor = (schema, ctx, _json, params) => {
15508
16057
  const json = _json;
15509
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
15510
- if (typeof format === "string" && format.includes("int"))
15511
- json.type = "integer";
15512
- else
15513
- json.type = "number";
16058
+ const { minimum, maximum, multipleOf, exclusiveMaximum, exclusiveMinimum, isInt } = aggregateChecks(schema);
16059
+ json.type = isInt ? "integer" : "number";
15514
16060
  const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
15515
16061
  const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
15516
16062
  const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
@@ -15534,11 +16080,19 @@ var numberProcessor = (schema, ctx, _json, params) => {
15534
16080
  } else if (typeof maximum === "number") {
15535
16081
  json.maximum = maximum;
15536
16082
  }
15537
- if (typeof multipleOf === "number") {
15538
- if (Number.isFinite(multipleOf) && multipleOf !== 0)
15539
- json.multipleOf = Math.abs(multipleOf);
15540
- else
15541
- handleUnrepresentable(schema, ctx, json, params, `A multipleOf divisor of ${multipleOf} cannot be represented in JSON Schema`);
16083
+ if (multipleOf) {
16084
+ const divisors = new Set;
16085
+ for (const divisor of multipleOf) {
16086
+ if (Number.isFinite(divisor) && divisor !== 0)
16087
+ divisors.add(Math.abs(divisor));
16088
+ else
16089
+ handleUnrepresentable(schema, ctx, json, params, `A multipleOf divisor of ${divisor} cannot be represented in JSON Schema`);
16090
+ }
16091
+ const [first, ...rest] = divisors;
16092
+ if (first !== undefined)
16093
+ json.multipleOf = first;
16094
+ if (rest.length)
16095
+ json.allOf = [...json.allOf ?? [], ...rest.map((m) => ({ multipleOf: m }))];
15542
16096
  }
15543
16097
  };
15544
16098
  var booleanProcessor = (_schema, _ctx, json, _params) => {
@@ -15638,27 +16192,22 @@ var templateLiteralProcessor = (schema, _ctx, json, _params) => {
15638
16192
  };
15639
16193
  var fileProcessor = (schema, _ctx, json, _params) => {
15640
16194
  const _json = json;
15641
- const file = {
15642
- type: "string",
15643
- format: "binary",
15644
- contentEncoding: "binary"
15645
- };
15646
- const { minimum, maximum, mime } = schema._zod.bag;
16195
+ _json.type = "string";
16196
+ _json.format = "binary";
16197
+ _json.contentEncoding = "binary";
16198
+ const { minimum, maximum, mime } = aggregateChecks(schema);
15647
16199
  if (minimum !== undefined)
15648
- file.minLength = minimum;
16200
+ _json.minLength = minimum;
15649
16201
  if (maximum !== undefined)
15650
- file.maxLength = maximum;
15651
- if (mime) {
15652
- if (mime.length === 1) {
15653
- file.contentMediaType = mime[0];
15654
- Object.assign(_json, file);
15655
- } else {
15656
- Object.assign(_json, file);
15657
- _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
15658
- }
15659
- } else {
15660
- Object.assign(_json, file);
15661
- }
16202
+ _json.maxLength = maximum;
16203
+ if (!mime)
16204
+ return;
16205
+ if (mime.length === 0)
16206
+ _json.not = {};
16207
+ else if (mime.length === 1)
16208
+ _json.contentMediaType = mime[0];
16209
+ else
16210
+ _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
15662
16211
  };
15663
16212
  var successProcessor = (_schema, _ctx, json, _params) => {
15664
16213
  json.type = "boolean";
@@ -15681,13 +16230,13 @@ var setProcessor = (schema, ctx, json, params) => {
15681
16230
  var arrayProcessor = (schema, ctx, _json, params) => {
15682
16231
  const json = _json;
15683
16232
  const def = schema._zod.def;
15684
- const { minimum, maximum } = schema._zod.bag;
16233
+ const { minimum, maximum } = aggregateChecks(schema);
15685
16234
  if (typeof minimum === "number")
15686
16235
  json.minItems = minimum;
15687
16236
  if (typeof maximum === "number")
15688
16237
  json.maxItems = maximum;
15689
16238
  json.type = "array";
15690
- json.items = process2(def.element, ctx, {
16239
+ json.items = processSchema(def.element, ctx, {
15691
16240
  ...params,
15692
16241
  path: [...params.path, "items"]
15693
16242
  });
@@ -15713,22 +16262,20 @@ var objectProcessor = (schema, ctx, _json, params) => {
15713
16262
  json.type = "object";
15714
16263
  json.properties = {};
15715
16264
  for (const key in shape) {
15716
- assignProp(json.properties, key, process2(shape[key], ctx, {
16265
+ assignProp(json.properties, key, processSchema(shape[key], ctx, {
15717
16266
  ...params,
15718
16267
  path: [...params.path, "properties", key]
15719
16268
  }));
15720
16269
  }
15721
- const allKeys = new Set(Object.keys(shape));
15722
- const requiredKeys = new Set([...allKeys].filter((key) => {
16270
+ const requiredKeys = [];
16271
+ for (const key of Object.keys(shape)) {
15723
16272
  const field = def.shape[key];
15724
- if (ctx.io === "input") {
15725
- return inputOptin(field) === undefined;
15726
- } else {
15727
- return field._zod.optout === undefined;
16273
+ if (ctx.io === "input" ? inputOptin(field) === undefined : field._zod.optout === undefined) {
16274
+ requiredKeys.push(key);
15728
16275
  }
15729
- }));
15730
- if (requiredKeys.size > 0) {
15731
- json.required = Array.from(requiredKeys);
16276
+ }
16277
+ if (requiredKeys.length > 0) {
16278
+ json.required = requiredKeys;
15732
16279
  }
15733
16280
  if (def.catchall?._zod.def.type === "never") {
15734
16281
  json.additionalProperties = false;
@@ -15736,7 +16283,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
15736
16283
  if (ctx.io === "output")
15737
16284
  json.additionalProperties = false;
15738
16285
  } else if (def.catchall) {
15739
- json.additionalProperties = process2(def.catchall, ctx, {
16286
+ json.additionalProperties = processSchema(def.catchall, ctx, {
15740
16287
  ...params,
15741
16288
  path: [...params.path, "additionalProperties"]
15742
16289
  });
@@ -15745,7 +16292,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
15745
16292
  var unionProcessor = (schema, ctx, json, params) => {
15746
16293
  const def = schema._zod.def;
15747
16294
  const isExclusive = def.inclusive === false;
15748
- const options = def.options.map((x, i) => process2(x, ctx, {
16295
+ const options = def.options.map((x, i) => processSchema(x, ctx, {
15749
16296
  ...params,
15750
16297
  path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
15751
16298
  }));
@@ -15757,11 +16304,11 @@ var unionProcessor = (schema, ctx, json, params) => {
15757
16304
  };
15758
16305
  var intersectionProcessor = (schema, ctx, json, params) => {
15759
16306
  const def = schema._zod.def;
15760
- const a = process2(def.left, ctx, {
16307
+ const a = processSchema(def.left, ctx, {
15761
16308
  ...params,
15762
16309
  path: [...params.path, "allOf", 0]
15763
16310
  });
15764
- const b = process2(def.right, ctx, {
16311
+ const b = processSchema(def.right, ctx, {
15765
16312
  ...params,
15766
16313
  path: [...params.path, "allOf", 1]
15767
16314
  });
@@ -15779,11 +16326,11 @@ var tupleProcessor = (schema, ctx, _json, params) => {
15779
16326
  json.type = "array";
15780
16327
  const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
15781
16328
  const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
15782
- const prefixItems = def.items.map((x, i) => process2(x, ctx, {
16329
+ const prefixItems = def.items.map((x, i) => processSchema(x, ctx, {
15783
16330
  ...params,
15784
16331
  path: [...params.path, prefixPath, i]
15785
16332
  }));
15786
- const rest = def.rest ? process2(def.rest, ctx, {
16333
+ const rest = def.rest ? processSchema(def.rest, ctx, {
15787
16334
  ...params,
15788
16335
  path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
15789
16336
  }) : null;
@@ -15831,7 +16378,7 @@ var tupleProcessor = (schema, ctx, _json, params) => {
15831
16378
  if (isClosed)
15832
16379
  json.maxItems = maxItems;
15833
16380
  }
15834
- const { minimum, maximum } = schema._zod.bag;
16381
+ const { minimum, maximum } = aggregateChecks(schema);
15835
16382
  if (typeof minimum === "number")
15836
16383
  json.minItems = minimum;
15837
16384
  if (typeof maximum === "number")
@@ -15905,20 +16452,19 @@ var recordProcessor = (schema, ctx, _json, params) => {
15905
16452
  const def = schema._zod.def;
15906
16453
  json.type = "object";
15907
16454
  const keyType = def.keyType;
15908
- const keyBag = keyType._zod.bag;
15909
- const patterns = keyBag?.patterns;
16455
+ const patterns = aggregateChecks(keyType).patterns;
15910
16456
  if (def.mode === "loose" && patterns && patterns.size > 0) {
15911
- const valueSchema = process2(def.valueType, ctx, {
16457
+ const valueSchema = processSchema(def.valueType, ctx, {
15912
16458
  ...params,
15913
16459
  path: [...params.path, "patternProperties", "*"]
15914
16460
  });
15915
16461
  json.patternProperties = {};
15916
16462
  for (const pattern of patterns) {
15917
- assignProp(json.patternProperties, pattern.source, valueSchema);
16463
+ assignProp(json.patternProperties, exactPattern(pattern).source, valueSchema);
15918
16464
  }
15919
16465
  } else {
15920
16466
  if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
15921
- json.propertyNames = process2(def.keyType, ctx, {
16467
+ json.propertyNames = processSchema(def.keyType, ctx, {
15922
16468
  ...params,
15923
16469
  path: [...params.path, "propertyNames"]
15924
16470
  });
@@ -15930,7 +16476,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
15930
16476
  }
15931
16477
  pending.push(schema);
15932
16478
  }
15933
- json.additionalProperties = process2(def.valueType, ctx, {
16479
+ json.additionalProperties = processSchema(def.valueType, ctx, {
15934
16480
  ...params,
15935
16481
  path: [...params.path, "additionalProperties"]
15936
16482
  });
@@ -15946,7 +16492,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
15946
16492
  };
15947
16493
  var nullableProcessor = (schema, ctx, json, params) => {
15948
16494
  const def = schema._zod.def;
15949
- const inner = process2(def.innerType, ctx, params);
16495
+ const inner = processSchema(def.innerType, ctx, params);
15950
16496
  const seen = ctx.seen.get(schema);
15951
16497
  if (ctx.target === "openapi-3.0") {
15952
16498
  seen.ref = def.innerType;
@@ -15957,7 +16503,7 @@ var nullableProcessor = (schema, ctx, json, params) => {
15957
16503
  };
15958
16504
  var nonoptionalProcessor = (schema, ctx, _json, params) => {
15959
16505
  const def = schema._zod.def;
15960
- process2(def.innerType, ctx, params);
16506
+ processSchema(def.innerType, ctx, params);
15961
16507
  const seen = ctx.seen.get(schema);
15962
16508
  seen.ref = def.innerType;
15963
16509
  };
@@ -15977,7 +16523,7 @@ function serializeDefaultValue(value, schema, ctx, json, params) {
15977
16523
  }
15978
16524
  var defaultProcessor = (schema, ctx, json, params) => {
15979
16525
  const def = schema._zod.def;
15980
- process2(def.innerType, ctx, params);
16526
+ processSchema(def.innerType, ctx, params);
15981
16527
  const seen = ctx.seen.get(schema);
15982
16528
  seen.ref = def.innerType;
15983
16529
  const value = serializeDefaultValue(def.defaultValue, schema, ctx, json, params);
@@ -15986,7 +16532,7 @@ var defaultProcessor = (schema, ctx, json, params) => {
15986
16532
  };
15987
16533
  var prefaultProcessor = (schema, ctx, json, params) => {
15988
16534
  const def = schema._zod.def;
15989
- process2(def.innerType, ctx, params);
16535
+ processSchema(def.innerType, ctx, params);
15990
16536
  const seen = ctx.seen.get(schema);
15991
16537
  seen.ref = def.innerType;
15992
16538
  if (ctx.io !== "input")
@@ -15997,7 +16543,7 @@ var prefaultProcessor = (schema, ctx, json, params) => {
15997
16543
  };
15998
16544
  var catchProcessor = (schema, ctx, json, params) => {
15999
16545
  const def = schema._zod.def;
16000
- process2(def.innerType, ctx, params);
16546
+ processSchema(def.innerType, ctx, params);
16001
16547
  const seen = ctx.seen.get(schema);
16002
16548
  seen.ref = def.innerType;
16003
16549
  let catchValue;
@@ -16013,32 +16559,32 @@ var pipeProcessor = (schema, ctx, _json, params) => {
16013
16559
  const def = schema._zod.def;
16014
16560
  const inIsTransform = def.in._zod.traits.has("$ZodTransform");
16015
16561
  const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
16016
- process2(innerType, ctx, params);
16562
+ processSchema(innerType, ctx, params);
16017
16563
  const seen = ctx.seen.get(schema);
16018
16564
  seen.ref = innerType;
16019
16565
  };
16020
16566
  var readonlyProcessor = (schema, ctx, json, params) => {
16021
16567
  const def = schema._zod.def;
16022
- process2(def.innerType, ctx, params);
16568
+ processSchema(def.innerType, ctx, params);
16023
16569
  const seen = ctx.seen.get(schema);
16024
16570
  seen.ref = def.innerType;
16025
16571
  json.readOnly = true;
16026
16572
  };
16027
16573
  var promiseProcessor = (schema, ctx, _json, params) => {
16028
16574
  const def = schema._zod.def;
16029
- process2(def.innerType, ctx, params);
16575
+ processSchema(def.innerType, ctx, params);
16030
16576
  const seen = ctx.seen.get(schema);
16031
16577
  seen.ref = def.innerType;
16032
16578
  };
16033
16579
  var optionalProcessor = (schema, ctx, _json, params) => {
16034
16580
  const def = schema._zod.def;
16035
- process2(def.innerType, ctx, params);
16581
+ processSchema(def.innerType, ctx, params);
16036
16582
  const seen = ctx.seen.get(schema);
16037
16583
  seen.ref = def.innerType;
16038
16584
  };
16039
16585
  var lazyProcessor = (schema, ctx, _json, params) => {
16040
16586
  const innerType = schema._zod.innerType;
16041
- process2(innerType, ctx, params);
16587
+ processSchema(innerType, ctx, params);
16042
16588
  const seen = ctx.seen.get(schema);
16043
16589
  seen.ref = innerType;
16044
16590
  };
@@ -16090,7 +16636,7 @@ function toJSONSchema(input, params) {
16090
16636
  const defs = {};
16091
16637
  for (const entry of registry2._idmap.entries()) {
16092
16638
  const [_, schema] = entry;
16093
- process2(schema, ctx2);
16639
+ processSchema(schema, ctx2);
16094
16640
  }
16095
16641
  const schemas = {};
16096
16642
  const external = {
@@ -16113,11 +16659,11 @@ function toJSONSchema(input, params) {
16113
16659
  return { schemas };
16114
16660
  }
16115
16661
  const ctx = initializeContext({ ...params, processors: allProcessors });
16116
- process2(input, ctx);
16662
+ processSchema(input, ctx);
16117
16663
  extractDefs(ctx, input);
16118
16664
  return finalize(ctx, input);
16119
16665
  }
16120
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/json-schema-generator.js
16666
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.js
16121
16667
  class JSONSchemaGenerator {
16122
16668
  get metadataRegistry() {
16123
16669
  return this.ctx.metadataRegistry;
@@ -16159,7 +16705,7 @@ class JSONSchemaGenerator {
16159
16705
  });
16160
16706
  }
16161
16707
  process(schema, _params = { path: [], schemaPath: [] }) {
16162
- return process2(schema, this.ctx, _params);
16708
+ return processSchema(schema, this.ctx, _params);
16163
16709
  }
16164
16710
  emit(schema, _params) {
16165
16711
  if (_params) {
@@ -16178,9 +16724,9 @@ class JSONSchemaGenerator {
16178
16724
  return plainResult;
16179
16725
  }
16180
16726
  }
16181
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/json-schema.js
16727
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/json-schema.js
16182
16728
  var exports_json_schema = {};
16183
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
16729
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
16184
16730
  var exports_schemas2 = {};
16185
16731
  __export(exports_schemas2, {
16186
16732
  ZodAny: () => ZodAny,
@@ -16210,12 +16756,14 @@ __export(exports_schemas2, {
16210
16756
  ZodFile: () => ZodFile,
16211
16757
  ZodFunction: () => ZodFunction,
16212
16758
  ZodGUID: () => ZodGUID,
16759
+ ZodIBAN: () => ZodIBAN,
16213
16760
  ZodIPv4: () => ZodIPv4,
16214
16761
  ZodIPv6: () => ZodIPv6,
16215
16762
  ZodISODate: () => ZodISODate,
16216
16763
  ZodISODateTime: () => ZodISODateTime,
16217
16764
  ZodISODuration: () => ZodISODuration,
16218
16765
  ZodISOTime: () => ZodISOTime,
16766
+ ZodInstanceOf: () => ZodInstanceOf,
16219
16767
  ZodIntersection: () => ZodIntersection,
16220
16768
  ZodJWT: () => ZodJWT,
16221
16769
  ZodKSUID: () => ZodKSUID,
@@ -16274,6 +16822,7 @@ __export(exports_schemas2, {
16274
16822
  creditCard: () => creditCard2,
16275
16823
  cuid: () => cuid3,
16276
16824
  cuid2: () => cuid22,
16825
+ currencyCode: () => currencyCode2,
16277
16826
  custom: () => custom,
16278
16827
  date: () => date2,
16279
16828
  describe: () => describe2,
@@ -16292,6 +16841,7 @@ __export(exports_schemas2, {
16292
16841
  hex: () => hex2,
16293
16842
  hostname: () => hostname2,
16294
16843
  httpUrl: () => httpUrl,
16844
+ iban: () => iban2,
16295
16845
  instanceof: () => _instanceof,
16296
16846
  int: () => int,
16297
16847
  int32: () => int32,
@@ -16357,7 +16907,7 @@ __export(exports_schemas2, {
16357
16907
  xor: () => xor
16358
16908
  });
16359
16909
 
16360
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/checks.js
16910
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/checks.js
16361
16911
  var exports_checks2 = {};
16362
16912
  __export(exports_checks2, {
16363
16913
  endsWith: () => _endsWith,
@@ -16392,7 +16942,7 @@ __export(exports_checks2, {
16392
16942
  uppercase: () => _uppercase
16393
16943
  });
16394
16944
 
16395
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/errors.js
16945
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/errors.js
16396
16946
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
16397
16947
  function _lazyMethod(proto, key, make) {
16398
16948
  Object.defineProperty(proto, key, {
@@ -16438,7 +16988,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, undefi
16438
16988
  Parent: Error
16439
16989
  });
16440
16990
 
16441
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/parse.js
16991
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/parse.js
16442
16992
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
16443
16993
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
16444
16994
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -16452,7 +17002,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
16452
17002
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
16453
17003
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
16454
17004
 
16455
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
17005
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
16456
17006
  function _ensureDefaultLocale() {
16457
17007
  if (!globalConfig.localeError)
16458
17008
  config(en_default());
@@ -16592,6 +17142,12 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
16592
17142
  set spa(value) {
16593
17143
  exports_util.own(this, "spa", value);
16594
17144
  },
17145
+ validate(data, params) {
17146
+ return validate(this, data, params);
17147
+ },
17148
+ validateAsync(data, params) {
17149
+ return validateAsync(this, data, params);
17150
+ },
16595
17151
  encode: function _encode2(data, params) {
16596
17152
  return encode2(this, data, params, { callee: _encode2 });
16597
17153
  },
@@ -16630,10 +17186,10 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
16630
17186
  $ZodString.init(inst, def);
16631
17187
  ZodType.init(inst, def);
16632
17188
  inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
16633
- const bag = inst._zod.bag;
16634
- inst.format = bag.format ?? null;
16635
- inst.minLength = bag.minimum ?? null;
16636
- inst.maxLength = bag.maximum ?? null;
17189
+ }, /* @__PURE__ */ exports_util.derived({
17190
+ format: (inst) => aggregateChecks(inst).format ?? null,
17191
+ minLength: (inst) => aggregateChecks(inst).minimum ?? null,
17192
+ maxLength: (inst) => aggregateChecks(inst).maximum ?? null
16637
17193
  }, {
16638
17194
  regex(...args) {
16639
17195
  return this.check(_regex(...args));
@@ -16680,7 +17236,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
16680
17236
  slugify() {
16681
17237
  return this.check(_slugify());
16682
17238
  }
16683
- });
17239
+ }));
16684
17240
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
16685
17241
  $ZodString.init(inst, def);
16686
17242
  _ZodString.init(inst, def);
@@ -16826,8 +17382,8 @@ function url(params) {
16826
17382
  }
16827
17383
  function httpUrl(params) {
16828
17384
  return _url(ZodURL, {
16829
- protocol: exports_regexes.httpProtocol,
16830
- hostname: exports_regexes.domain,
17385
+ protocol: httpProtocol,
17386
+ hostname: domain,
16831
17387
  ...exports_util.normalizeParams(params)
16832
17388
  });
16833
17389
  }
@@ -16943,6 +17499,13 @@ var ZodCreditCard = /* @__PURE__ */ $constructor("ZodCreditCard", (inst, def) =>
16943
17499
  function creditCard2(params) {
16944
17500
  return _creditCard(ZodCreditCard, params);
16945
17501
  }
17502
+ var ZodIBAN = /* @__PURE__ */ $constructor("ZodIBAN", (inst, def) => {
17503
+ $ZodIBAN.init(inst, def);
17504
+ ZodStringFormat.init(inst, def);
17505
+ });
17506
+ function iban2(params) {
17507
+ return _iban(ZodIBAN, params);
17508
+ }
16946
17509
  var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
16947
17510
  $ZodJWT.init(inst, def);
16948
17511
  ZodStringFormat.init(inst, def);
@@ -16958,10 +17521,13 @@ function stringFormat(format, fnOrRegex, _params = {}) {
16958
17521
  return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
16959
17522
  }
16960
17523
  function hostname2(_params) {
16961
- return _stringFormat(ZodCustomStringFormat, "hostname", exports_regexes.hostname, _params);
17524
+ return _stringFormat(ZodCustomStringFormat, "hostname", hostname, _params);
16962
17525
  }
16963
17526
  function hex2(_params) {
16964
- return _stringFormat(ZodCustomStringFormat, "hex", exports_regexes.hex, _params);
17527
+ return _stringFormat(ZodCustomStringFormat, "hex", hex, _params);
17528
+ }
17529
+ function currencyCode2(_params) {
17530
+ return _stringFormat(ZodCustomStringFormat, "currency_code", currencyCode, _params);
16965
17531
  }
16966
17532
  function hash(alg, params) {
16967
17533
  const enc = params?.enc ?? "hex";
@@ -16975,12 +17541,21 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
16975
17541
  $ZodNumber.init(inst, def);
16976
17542
  ZodType.init(inst, def);
16977
17543
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
16978
- const bag = inst._zod.bag;
16979
- inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
16980
- inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
16981
- inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5);
16982
17544
  inst.isFinite = true;
16983
- inst.format = bag.format ?? null;
17545
+ }, /* @__PURE__ */ exports_util.derived({
17546
+ minValue: (inst) => {
17547
+ const { minimum, exclusiveMinimum } = aggregateChecks(inst);
17548
+ return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
17549
+ },
17550
+ maxValue: (inst) => {
17551
+ const { maximum, exclusiveMaximum } = aggregateChecks(inst);
17552
+ return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY);
17553
+ },
17554
+ isInt: (inst) => {
17555
+ const { isInt, multipleOf } = aggregateChecks(inst);
17556
+ return !!isInt || !!multipleOf?.some(Number.isSafeInteger);
17557
+ },
17558
+ format: (inst) => aggregateChecks(inst).format ?? null
16984
17559
  }, {
16985
17560
  gt(value, params) {
16986
17561
  return this.check(_gt(value, params));
@@ -17027,7 +17602,7 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
17027
17602
  finite() {
17028
17603
  return this;
17029
17604
  }
17030
- });
17605
+ }));
17031
17606
  function number2(params) {
17032
17607
  return _number(ZodNumber, params);
17033
17608
  }
@@ -17062,10 +17637,10 @@ var ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
17062
17637
  $ZodBigInt.init(inst, def);
17063
17638
  ZodType.init(inst, def);
17064
17639
  inst._zod.processJSONSchema = (ctx, json, params) => bigintProcessor(inst, ctx, json, params);
17065
- const bag = inst._zod.bag;
17066
- inst.minValue = bag.minimum ?? null;
17067
- inst.maxValue = bag.maximum ?? null;
17068
- inst.format = bag.format ?? null;
17640
+ }, /* @__PURE__ */ exports_util.derived({
17641
+ minValue: (inst) => aggregateChecks(inst).minimum ?? null,
17642
+ maxValue: (inst) => aggregateChecks(inst).maximum ?? null,
17643
+ format: (inst) => aggregateChecks(inst).format ?? null
17069
17644
  }, {
17070
17645
  gte(value, params) {
17071
17646
  return this.check(_gte(value, params));
@@ -17100,7 +17675,7 @@ var ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
17100
17675
  multipleOf(value, params) {
17101
17676
  return this.check(_multipleOf(value, params));
17102
17677
  }
17103
- });
17678
+ }));
17104
17679
  function bigint2(params) {
17105
17680
  return _bigint(ZodBigInt, params);
17106
17681
  }
@@ -17176,10 +17751,16 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
17176
17751
  inst._zod.processJSONSchema = (ctx, json, params) => dateProcessor(inst, ctx, json, params);
17177
17752
  inst.min = (value, params) => inst.check(_gte(value, params));
17178
17753
  inst.max = (value, params) => inst.check(_lte(value, params));
17179
- const c = inst._zod.bag;
17180
- inst.minDate = c.minimum ? new Date(c.minimum) : null;
17181
- inst.maxDate = c.maximum ? new Date(c.maximum) : null;
17182
- });
17754
+ }, /* @__PURE__ */ exports_util.derived({
17755
+ minDate: (inst) => {
17756
+ const { minimum } = aggregateChecks(inst);
17757
+ return minimum ? new Date(minimum) : null;
17758
+ },
17759
+ maxDate: (inst) => {
17760
+ const { maximum } = aggregateChecks(inst);
17761
+ return maximum ? new Date(maximum) : null;
17762
+ }
17763
+ }, {}));
17183
17764
  function date2(params) {
17184
17765
  return _date(ZodDate, params);
17185
17766
  }
@@ -17224,19 +17805,19 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
17224
17805
  return _enum2(Object.keys(this._zod.def.shape));
17225
17806
  },
17226
17807
  catchall(catchall) {
17227
- return this.clone({ ...this._zod.def, catchall });
17808
+ return this.clone(exports_util.mergeDefs(this._zod.def, { catchall }));
17228
17809
  },
17229
17810
  passthrough() {
17230
- return this.clone({ ...this._zod.def, catchall: unknown() });
17811
+ return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: unknown() }));
17231
17812
  },
17232
17813
  loose() {
17233
- return this.clone({ ...this._zod.def, catchall: unknown() });
17814
+ return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: unknown() }));
17234
17815
  },
17235
17816
  strict() {
17236
- return this.clone({ ...this._zod.def, catchall: never() });
17817
+ return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: never() }));
17237
17818
  },
17238
17819
  strip() {
17239
- return this.clone({ ...this._zod.def, catchall: undefined });
17820
+ return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: undefined }));
17240
17821
  },
17241
17822
  extend(incoming) {
17242
17823
  return exports_util.extend(this, incoming);
@@ -17455,7 +18036,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
17455
18036
  ZodType.init(inst, def);
17456
18037
  inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
17457
18038
  inst.enum = def.entries;
17458
- inst.options = Object.values(def.entries);
18039
+ inst.options = [...inst._zod.values];
17459
18040
  const keys = new Set(Object.keys(def.entries));
17460
18041
  inst.extract = (values, params) => {
17461
18042
  const newEntries = {};
@@ -17816,8 +18397,15 @@ function superRefine(fn, params) {
17816
18397
  }
17817
18398
  var describe2 = describe;
17818
18399
  var meta2 = meta;
18400
+ var ZodInstanceOf = /* @__PURE__ */ $constructor("ZodInstanceOf", (inst, def) => {
18401
+ ZodCustom.init(inst, def);
18402
+ }, {
18403
+ properties(shape, params) {
18404
+ return this.check(_properties(shape, params));
18405
+ }
18406
+ });
17819
18407
  function _instanceof(cls, params = {}) {
17820
- const inst = new ZodCustom({
18408
+ const inst = new ZodInstanceOf({
17821
18409
  type: "custom",
17822
18410
  check: "custom",
17823
18411
  fn: (data) => data instanceof cls,
@@ -17856,7 +18444,7 @@ function preprocess(fn, schema) {
17856
18444
  out: schema
17857
18445
  });
17858
18446
  }
17859
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/compat.js
18447
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/compat.js
17860
18448
  var ZodIssueCode = {
17861
18449
  invalid_type: "invalid_type",
17862
18450
  too_big: "too_big",
@@ -17880,7 +18468,7 @@ function getErrorMap() {
17880
18468
  }
17881
18469
  var ZodFirstPartyTypeKind;
17882
18470
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
17883
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/iso.js
18471
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/iso.js
17884
18472
  var exports_iso = {};
17885
18473
  __export(exports_iso, {
17886
18474
  ZodISODate: () => ZodISODate,
@@ -17905,7 +18493,7 @@ function duration2(params) {
17905
18493
  return _isoDuration(ZodISODuration, params);
17906
18494
  }
17907
18495
 
17908
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/from-json-schema.js
18496
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.js
17909
18497
  var z = {
17910
18498
  ...exports_schemas2,
17911
18499
  ...exports_checks2,
@@ -18007,27 +18595,188 @@ function resolveRef(ref, ctx) {
18007
18595
  }
18008
18596
  throw new Error(`Reference not found: ${ref}`);
18009
18597
  }
18010
- function checkPropertyNames(objectSchema, keySchema) {
18598
+ function checkObjectGuards(objectSchema, guards) {
18011
18599
  const guard = z.transform((value) => value).check((payload) => {
18012
18600
  const value = payload.value;
18013
18601
  if (typeof value !== "object" || value === null || Array.isArray(value))
18014
18602
  return;
18015
- for (const key of Object.getOwnPropertyNames(value)) {
18016
- const result = keySchema.safeParse(key);
18017
- if (result.success)
18018
- continue;
18603
+ const keys = Object.getOwnPropertyNames(value);
18604
+ if (guards.minProperties !== undefined && keys.length < guards.minProperties) {
18019
18605
  payload.issues.push({
18020
- code: "invalid_key",
18021
- origin: "record",
18022
- issues: result.error.issues,
18023
- input: key,
18024
- path: [key],
18606
+ origin: "object",
18607
+ code: "too_small",
18608
+ minimum: guards.minProperties,
18609
+ inclusive: true,
18610
+ message: `Too small: expected object to have >=${guards.minProperties} properties`,
18611
+ input: value,
18612
+ inst: objectSchema,
18025
18613
  continue: true
18026
18614
  });
18027
18615
  }
18616
+ if (guards.maxProperties !== undefined && keys.length > guards.maxProperties) {
18617
+ payload.issues.push({
18618
+ origin: "object",
18619
+ code: "too_big",
18620
+ maximum: guards.maxProperties,
18621
+ inclusive: true,
18622
+ message: `Too big: expected object to have <=${guards.maxProperties} properties`,
18623
+ input: value,
18624
+ inst: objectSchema,
18625
+ continue: true
18626
+ });
18627
+ }
18628
+ if (guards.keySchema) {
18629
+ for (const key of keys) {
18630
+ const result = guards.keySchema.safeParse(key);
18631
+ if (result.success)
18632
+ continue;
18633
+ payload.issues.push({
18634
+ code: "invalid_key",
18635
+ origin: "record",
18636
+ issues: result.error.issues,
18637
+ input: key,
18638
+ path: [key],
18639
+ continue: true
18640
+ });
18641
+ }
18642
+ }
18028
18643
  });
18029
18644
  return guard.pipe(objectSchema);
18030
18645
  }
18646
+ function canonicalKey(value, seen) {
18647
+ if (value === null)
18648
+ return "z";
18649
+ const type = typeof value;
18650
+ if (type !== "object") {
18651
+ if (type === "number" && Number.isNaN(value))
18652
+ return null;
18653
+ const raw = String(value);
18654
+ return `${type[0]}${raw.length}:${raw}`;
18655
+ }
18656
+ if (seen.has(value))
18657
+ return null;
18658
+ seen.add(value);
18659
+ try {
18660
+ if (Array.isArray(value)) {
18661
+ const parts2 = [];
18662
+ for (const item of value) {
18663
+ const key = canonicalKey(item, seen);
18664
+ if (key === null)
18665
+ return null;
18666
+ parts2.push(key);
18667
+ }
18668
+ return `a${parts2.length}:[${parts2.join(",")}]`;
18669
+ }
18670
+ const keys = Object.keys(value).sort();
18671
+ const parts = [];
18672
+ for (const k of keys) {
18673
+ const key = canonicalKey(value[k], seen);
18674
+ if (key === null)
18675
+ return null;
18676
+ parts.push(`${k.length}:${k}=${key}`);
18677
+ }
18678
+ return `o${parts.length}:{${parts.join(",")}}`;
18679
+ } finally {
18680
+ seen.delete(value);
18681
+ }
18682
+ }
18683
+ var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
18684
+ "items",
18685
+ "prefixItems",
18686
+ "additionalItems",
18687
+ "additionalProperties",
18688
+ "contains",
18689
+ "propertyNames",
18690
+ "not",
18691
+ "if",
18692
+ "then",
18693
+ "else",
18694
+ "allOf",
18695
+ "anyOf",
18696
+ "oneOf",
18697
+ "unevaluatedItems",
18698
+ "unevaluatedProperties",
18699
+ "contentSchema"
18700
+ ]);
18701
+ var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
18702
+ "properties",
18703
+ "patternProperties",
18704
+ "dependentSchemas",
18705
+ "dependencies",
18706
+ "$defs",
18707
+ "definitions"
18708
+ ]);
18709
+ function containsRef(value) {
18710
+ if (typeof value !== "object" || value === null)
18711
+ return false;
18712
+ if (Array.isArray(value))
18713
+ return value.some(containsRef);
18714
+ if (typeof value.$ref === "string")
18715
+ return true;
18716
+ return Object.entries(value).some(([key, sub]) => {
18717
+ if (SCHEMA_KEYWORDS.has(key))
18718
+ return containsRef(sub);
18719
+ if (!SCHEMA_MAP_KEYWORDS.has(key) || typeof sub !== "object" || sub === null)
18720
+ return false;
18721
+ return Object.values(sub).some(containsRef);
18722
+ });
18723
+ }
18724
+ function plural(n) {
18725
+ return n === 1 ? "element" : "elements";
18726
+ }
18727
+ function checkArrayGuards(arraySchema, guards) {
18728
+ const guard = z.transform((value) => value).check((payload) => {
18729
+ const items = payload.value;
18730
+ if (!Array.isArray(items))
18731
+ return;
18732
+ if (guards.uniqueItems === true) {
18733
+ const firstSeen = new Map;
18734
+ for (let i = 0;i < items.length; i++) {
18735
+ const key = canonicalKey(items[i], new Set);
18736
+ if (key === null)
18737
+ continue;
18738
+ const first = firstSeen.get(key);
18739
+ if (first === undefined) {
18740
+ firstSeen.set(key, i);
18741
+ continue;
18742
+ }
18743
+ payload.issues.push({
18744
+ code: "custom",
18745
+ message: `Array items must be unique: element at index ${i} duplicates the one at index ${first}`,
18746
+ input: items,
18747
+ path: [i],
18748
+ continue: true
18749
+ });
18750
+ }
18751
+ }
18752
+ if (guards.containsSchema) {
18753
+ const minContains = guards.minContains ?? 1;
18754
+ const ceiling = guards.maxContains !== undefined ? guards.maxContains + 1 : Number.POSITIVE_INFINITY;
18755
+ let matches = 0;
18756
+ for (const item of items) {
18757
+ if (guards.containsSchema.safeParse(item).success && ++matches >= ceiling)
18758
+ break;
18759
+ }
18760
+ if (matches < minContains) {
18761
+ payload.issues.push({
18762
+ code: "custom",
18763
+ message: `Array must contain at least ${minContains} matching ${plural(minContains)}; found ${matches}`,
18764
+ input: items,
18765
+ continue: true
18766
+ });
18767
+ }
18768
+ if (guards.maxContains !== undefined && matches > guards.maxContains) {
18769
+ payload.issues.push({
18770
+ code: "custom",
18771
+ message: `Array must contain at most ${guards.maxContains} matching ${plural(guards.maxContains)}`,
18772
+ input: items,
18773
+ continue: true
18774
+ });
18775
+ }
18776
+ }
18777
+ });
18778
+ return guard.pipe(arraySchema);
18779
+ }
18031
18780
  function getTupleRest(restSchema, ctx) {
18032
18781
  if (restSchema === false) {
18033
18782
  return;
@@ -18157,6 +18906,8 @@ function convertBaseSchema(schema, ctx) {
18157
18906
  stringSchema = stringSchema.check(z.e164());
18158
18907
  } else if (format === "credit_card") {
18159
18908
  stringSchema = stringSchema.check(z.creditCard());
18909
+ } else if (format === "iban") {
18910
+ stringSchema = stringSchema.check(z.iban());
18160
18911
  } else if (format === "jwt") {
18161
18912
  stringSchema = stringSchema.check(z.jwt());
18162
18913
  } else if (format === "emoji") {
@@ -18289,9 +19040,16 @@ function convertBaseSchema(schema, ctx) {
18289
19040
  zodSchema = objectSchema.passthrough();
18290
19041
  }
18291
19042
  }
18292
- if (schema.propertyNames !== undefined && schema.propertyNames !== true) {
18293
- const keyJSONSchema = typeof schema.propertyNames === "object" && schema.propertyNames.type === undefined ? { type: "string", ...schema.propertyNames } : schema.propertyNames;
18294
- zodSchema = checkPropertyNames(zodSchema, convertSchema(keyJSONSchema, ctx));
19043
+ const hasKeyGuard = schema.propertyNames !== undefined && schema.propertyNames !== true;
19044
+ const minProperties = typeof schema.minProperties === "number" ? schema.minProperties : undefined;
19045
+ const maxProperties = typeof schema.maxProperties === "number" ? schema.maxProperties : undefined;
19046
+ if (hasKeyGuard || minProperties !== undefined || maxProperties !== undefined) {
19047
+ let keySchema;
19048
+ if (hasKeyGuard) {
19049
+ const keyJSONSchema = typeof schema.propertyNames === "object" && schema.propertyNames.type === undefined ? { type: "string", ...schema.propertyNames } : schema.propertyNames;
19050
+ keySchema = convertSchema(keyJSONSchema, ctx);
19051
+ }
19052
+ zodSchema = checkObjectGuards(zodSchema, { keySchema, minProperties, maxProperties });
18295
19053
  }
18296
19054
  break;
18297
19055
  }
@@ -18337,6 +19095,14 @@ function convertBaseSchema(schema, ctx) {
18337
19095
  } else {
18338
19096
  zodSchema = z.array(z.any());
18339
19097
  }
19098
+ if (schema.uniqueItems === true || schema.contains !== undefined) {
19099
+ zodSchema = checkArrayGuards(zodSchema, {
19100
+ uniqueItems: schema.uniqueItems === true,
19101
+ containsSchema: schema.contains !== undefined ? convertSchema(schema.contains, ctx) : undefined,
19102
+ minContains: typeof schema.minContains === "number" ? schema.minContains : undefined,
19103
+ maxContains: typeof schema.maxContains === "number" ? schema.maxContains : undefined
19104
+ });
19105
+ }
18340
19106
  break;
18341
19107
  }
18342
19108
  default:
@@ -18394,8 +19160,23 @@ function convertSchema(schema, ctx) {
18394
19160
  extraMeta[key] = schema[key];
18395
19161
  }
18396
19162
  }
18397
- if (schema.propertyNames !== undefined && schema.type === "object" && schema.$ref === undefined) {
18398
- extraMeta.propertyNames = schema.propertyNames;
19163
+ if (schema.type === "object" && schema.$ref === undefined) {
19164
+ if (schema.propertyNames !== undefined && !containsRef(schema.propertyNames)) {
19165
+ extraMeta.propertyNames = schema.propertyNames;
19166
+ }
19167
+ for (const key of ["minProperties", "maxProperties"]) {
19168
+ if (schema[key] !== undefined)
19169
+ extraMeta[key] = schema[key];
19170
+ }
19171
+ }
19172
+ if (schema.type === "array" && schema.$ref === undefined) {
19173
+ if (schema.contains !== undefined && !containsRef(schema.contains)) {
19174
+ extraMeta.contains = schema.contains;
19175
+ }
19176
+ for (const key of ["uniqueItems", "minContains", "maxContains"]) {
19177
+ if (schema[key] !== undefined)
19178
+ extraMeta[key] = schema[key];
19179
+ }
18399
19180
  }
18400
19181
  for (const key of Object.keys(schema)) {
18401
19182
  if (!RECOGNIZED_KEYS.has(key)) {
@@ -18432,7 +19213,7 @@ function fromJSONSchema(schema, params) {
18432
19213
  };
18433
19214
  return convertSchema(normalized, ctx);
18434
19215
  }
18435
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/visit.js
19216
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/visit.js
18436
19217
  var RESOLVING = Symbol("z.visit/resolving");
18437
19218
  function visit(schema, fnOrHandlers) {
18438
19219
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
@@ -18584,7 +19365,7 @@ function visit(schema, fnOrHandlers) {
18584
19365
  return run(schema);
18585
19366
  }
18586
19367
 
18587
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/deep-partial.js
19368
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.js
18588
19369
  function deepPartial(schema) {
18589
19370
  return visit(schema, {
18590
19371
  object: (s) => s.partial(),
@@ -18594,7 +19375,7 @@ function deepPartial(schema) {
18594
19375
  }
18595
19376
  });
18596
19377
  }
18597
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/in-out.js
19378
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/in-out.js
18598
19379
  function withChecks(side, checks2) {
18599
19380
  if (!checks2?.length)
18600
19381
  return side;
@@ -18620,7 +19401,7 @@ function output(schema) {
18620
19401
  prefault: (s, rewritten) => rewritten ? s._zod.def.innerType : s
18621
19402
  });
18622
19403
  }
18623
- // ../../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/coerce.js
19404
+ // ../../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
18624
19405
  var exports_coerce = {};
18625
19406
  __export(exports_coerce, {
18626
19407
  bigint: () => bigint3,
@@ -18929,8 +19710,8 @@ var openSystemBrowser = async (url2) => {
18929
19710
  url2
18930
19711
  ] : ["xdg-open", url2];
18931
19712
  try {
18932
- const process3 = Bun.spawn(command, { stderr: "ignore", stdout: "ignore" });
18933
- return await process3.exited === 0;
19713
+ const process2 = Bun.spawn(command, { stderr: "ignore", stdout: "ignore" });
19714
+ return await process2.exited === 0;
18934
19715
  } catch {
18935
19716
  return false;
18936
19717
  }
@@ -18978,17 +19759,17 @@ var loginWithBrowser = async ({
18978
19759
  await withCredentialLock(store, () => store.set(credentials));
18979
19760
  return credentials;
18980
19761
  }
18981
- const error61 = deviceTokenErrorSchema.safeParse(payload);
18982
- if (!error61.success) {
19762
+ const error62 = deviceTokenErrorSchema.safeParse(payload);
19763
+ if (!error62.success) {
18983
19764
  throw new Error(`CLI authentication failed with HTTP ${response.status}.`);
18984
19765
  }
18985
- if (error61.data.error === "authorization_pending")
19766
+ if (error62.data.error === "authorization_pending")
18986
19767
  continue;
18987
- if (error61.data.error === "slow_down") {
19768
+ if (error62.data.error === "slow_down") {
18988
19769
  intervalMs += 5000;
18989
19770
  continue;
18990
19771
  }
18991
- if (error61.data.error === "access_denied") {
19772
+ if (error62.data.error === "access_denied") {
18992
19773
  throw new Error("CLI authentication was denied in the browser.");
18993
19774
  }
18994
19775
  throw new Error("CLI authentication expired. Run auth login again.");
@@ -19611,8 +20392,8 @@ var output2 = (io, command, data, meta3 = {}) => {
19611
20392
  io.writeStdout(`${JSON.stringify({ command, data, meta: meta3, ok: true })}
19612
20393
  `);
19613
20394
  };
19614
- var errorOutput = (io, command, error61) => {
19615
- const rawMessage = error61 instanceof Error ? error61.message : String(error61);
20395
+ var errorOutput = (io, command, error62) => {
20396
+ const rawMessage = error62 instanceof Error ? error62.message : String(error62);
19616
20397
  const message = rawMessage.replace(/\bBearer\s+\S+/giu, "Bearer [redacted]");
19617
20398
  io.writeStderr(`${JSON.stringify({ command, error: message, ok: false })}
19618
20399
  `);
@@ -19985,9 +20766,9 @@ Waiting for approval\u2026
19985
20766
  const api2 = dependencies.apiClient ?? createClient(apiBaseUrl, accessToken);
19986
20767
  output2(dependencies.io, command, await definition.operation(api2, input2));
19987
20768
  return 0;
19988
- } catch (error61) {
19989
- errorOutput(dependencies.io, command, error61);
19990
- return error61 instanceof CliUsageError ? 2 : 1;
20769
+ } catch (error62) {
20770
+ errorOutput(dependencies.io, command, error62);
20771
+ return error62 instanceof CliUsageError ? 2 : 1;
19991
20772
  }
19992
20773
  };
19993
20774
  var runRsvpCliFromProcess = async () => {