@settlemint/sdk-viem 2.5.1-mainf0c7fb9b → 2.5.1-mainffd47926
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/viem.d.ts +3 -1
- package/dist/browser/viem.js +1030 -686
- package/dist/browser/viem.js.map +1 -1
- package/dist/viem.cjs +1030 -686
- package/dist/viem.cjs.map +1 -1
- package/dist/viem.d.cts +3 -1
- package/dist/viem.d.ts +3 -1
- package/dist/viem.js +1030 -686
- package/dist/viem.js.map +1 -1
- package/package.json +2 -2
package/dist/browser/viem.js
CHANGED
|
@@ -15,7 +15,9 @@ var __export = (target, all) => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../../node_modules/zod/
|
|
18
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
19
|
+
/** A special constant with type `never` */
|
|
20
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
19
21
|
function $constructor(name, initializer$2, params) {
|
|
20
22
|
function init(inst, def) {
|
|
21
23
|
var _a;
|
|
@@ -66,7 +68,7 @@ function config(newConfig) {
|
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
//#endregion
|
|
69
|
-
//#region ../../node_modules/zod/
|
|
71
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
70
72
|
var util_exports = {};
|
|
71
73
|
__export(util_exports, {
|
|
72
74
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -81,6 +83,7 @@ __export(util_exports, {
|
|
|
81
83
|
assertNotEqual: () => assertNotEqual,
|
|
82
84
|
assignProp: () => assignProp,
|
|
83
85
|
cached: () => cached,
|
|
86
|
+
captureStackTrace: () => captureStackTrace,
|
|
84
87
|
cleanEnum: () => cleanEnum,
|
|
85
88
|
cleanRegex: () => cleanRegex,
|
|
86
89
|
clone: () => clone,
|
|
@@ -219,10 +222,14 @@ function randomString(length = 10) {
|
|
|
219
222
|
function esc(str) {
|
|
220
223
|
return JSON.stringify(str);
|
|
221
224
|
}
|
|
225
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
222
226
|
function isObject(data) {
|
|
223
227
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
224
228
|
}
|
|
225
229
|
const allowsEval = cached(() => {
|
|
230
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
226
233
|
try {
|
|
227
234
|
const F = Function;
|
|
228
235
|
new F("");
|
|
@@ -231,9 +238,6 @@ const allowsEval = cached(() => {
|
|
|
231
238
|
return false;
|
|
232
239
|
}
|
|
233
240
|
});
|
|
234
|
-
function _isObject(o) {
|
|
235
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
236
|
-
}
|
|
237
241
|
function isPlainObject(o) {
|
|
238
242
|
if (isObject(o) === false) return false;
|
|
239
243
|
const ctor = o.constructor;
|
|
@@ -413,6 +417,9 @@ function omit(schema, mask) {
|
|
|
413
417
|
});
|
|
414
418
|
}
|
|
415
419
|
function extend(schema, shape) {
|
|
420
|
+
if (!isPlainObject(shape)) {
|
|
421
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
422
|
+
}
|
|
416
423
|
const def = {
|
|
417
424
|
...schema._zod.def,
|
|
418
425
|
get shape() {
|
|
@@ -500,7 +507,7 @@ function required(Class$1, schema, mask) {
|
|
|
500
507
|
}
|
|
501
508
|
function aborted(x, startIndex = 0) {
|
|
502
509
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
503
|
-
if (x.issues[i]
|
|
510
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
504
511
|
}
|
|
505
512
|
return false;
|
|
506
513
|
}
|
|
@@ -564,7 +571,7 @@ var Class = class {
|
|
|
564
571
|
};
|
|
565
572
|
|
|
566
573
|
//#endregion
|
|
567
|
-
//#region ../../node_modules/zod/
|
|
574
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
568
575
|
const initializer$1 = (inst, def) => {
|
|
569
576
|
inst.name = "$ZodError";
|
|
570
577
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -581,13 +588,17 @@ const initializer$1 = (inst, def) => {
|
|
|
581
588
|
},
|
|
582
589
|
enumerable: true
|
|
583
590
|
});
|
|
591
|
+
Object.defineProperty(inst, "toString", {
|
|
592
|
+
value: () => inst.message,
|
|
593
|
+
enumerable: false
|
|
594
|
+
});
|
|
584
595
|
};
|
|
585
596
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
586
597
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
587
|
-
function flattenError(error$
|
|
598
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
588
599
|
const fieldErrors = {};
|
|
589
600
|
const formErrors = [];
|
|
590
|
-
for (const sub of error$
|
|
601
|
+
for (const sub of error$39.issues) {
|
|
591
602
|
if (sub.path.length > 0) {
|
|
592
603
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
593
604
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -600,13 +611,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
600
611
|
fieldErrors
|
|
601
612
|
};
|
|
602
613
|
}
|
|
603
|
-
function formatError(error$
|
|
614
|
+
function formatError(error$39, _mapper) {
|
|
604
615
|
const mapper = _mapper || function(issue$1) {
|
|
605
616
|
return issue$1.message;
|
|
606
617
|
};
|
|
607
618
|
const fieldErrors = { _errors: [] };
|
|
608
|
-
const processError = (error$
|
|
609
|
-
for (const issue$1 of error$
|
|
619
|
+
const processError = (error$40) => {
|
|
620
|
+
for (const issue$1 of error$40.issues) {
|
|
610
621
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
611
622
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
612
623
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -633,17 +644,17 @@ function formatError(error$37, _mapper) {
|
|
|
633
644
|
}
|
|
634
645
|
}
|
|
635
646
|
};
|
|
636
|
-
processError(error$
|
|
647
|
+
processError(error$39);
|
|
637
648
|
return fieldErrors;
|
|
638
649
|
}
|
|
639
|
-
function treeifyError(error$
|
|
650
|
+
function treeifyError(error$39, _mapper) {
|
|
640
651
|
const mapper = _mapper || function(issue$1) {
|
|
641
652
|
return issue$1.message;
|
|
642
653
|
};
|
|
643
654
|
const result = { errors: [] };
|
|
644
|
-
const processError = (error$
|
|
655
|
+
const processError = (error$40, path = []) => {
|
|
645
656
|
var _a, _b;
|
|
646
|
-
for (const issue$1 of error$
|
|
657
|
+
for (const issue$1 of error$40.issues) {
|
|
647
658
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
648
659
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
649
660
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -678,7 +689,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
678
689
|
}
|
|
679
690
|
}
|
|
680
691
|
};
|
|
681
|
-
processError(error$
|
|
692
|
+
processError(error$39);
|
|
682
693
|
return result;
|
|
683
694
|
}
|
|
684
695
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -726,9 +737,9 @@ function toDotPath(path) {
|
|
|
726
737
|
}
|
|
727
738
|
return segs.join("");
|
|
728
739
|
}
|
|
729
|
-
function prettifyError(error$
|
|
740
|
+
function prettifyError(error$39) {
|
|
730
741
|
const lines = [];
|
|
731
|
-
const issues = [...error$
|
|
742
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
732
743
|
for (const issue$1 of issues) {
|
|
733
744
|
lines.push(`✖ ${issue$1.message}`);
|
|
734
745
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -737,7 +748,7 @@ function prettifyError(error$37) {
|
|
|
737
748
|
}
|
|
738
749
|
|
|
739
750
|
//#endregion
|
|
740
|
-
//#region ../../node_modules/zod/
|
|
751
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
741
752
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
742
753
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
743
754
|
const result = schema._zod.run({
|
|
@@ -749,7 +760,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
749
760
|
}
|
|
750
761
|
if (result.issues.length) {
|
|
751
762
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
752
|
-
|
|
763
|
+
captureStackTrace(e, _params?.callee);
|
|
753
764
|
throw e;
|
|
754
765
|
}
|
|
755
766
|
return result.value;
|
|
@@ -764,7 +775,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
764
775
|
if (result instanceof Promise) result = await result;
|
|
765
776
|
if (result.issues.length) {
|
|
766
777
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
767
|
-
|
|
778
|
+
captureStackTrace(e, params?.callee);
|
|
768
779
|
throw e;
|
|
769
780
|
}
|
|
770
781
|
return result.value;
|
|
@@ -809,10 +820,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
809
820
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
810
821
|
|
|
811
822
|
//#endregion
|
|
812
|
-
//#region ../../node_modules/zod/
|
|
823
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
813
824
|
var regexes_exports = {};
|
|
814
825
|
__export(regexes_exports, {
|
|
815
|
-
_emoji: () => _emoji$1,
|
|
816
826
|
base64: () => base64$1,
|
|
817
827
|
base64url: () => base64url$1,
|
|
818
828
|
bigint: () => bigint$2,
|
|
@@ -898,27 +908,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
898
908
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
899
909
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
900
910
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
901
|
-
const dateSource = `((
|
|
911
|
+
const 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])))`;
|
|
902
912
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
903
913
|
function timeSource(args) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
907
|
-
} else if (args.precision == null) {
|
|
908
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
909
|
-
}
|
|
914
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
915
|
+
const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
910
916
|
return regex;
|
|
911
917
|
}
|
|
912
918
|
function time$1(args) {
|
|
913
919
|
return new RegExp(`^${timeSource(args)}$`);
|
|
914
920
|
}
|
|
915
921
|
function datetime$1(args) {
|
|
916
|
-
|
|
917
|
-
const opts = [];
|
|
918
|
-
|
|
919
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
920
|
-
|
|
921
|
-
return new RegExp(`^${
|
|
922
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
923
|
+
const opts = ["Z"];
|
|
924
|
+
if (args.local) opts.push("");
|
|
925
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
926
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
927
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
922
928
|
}
|
|
923
929
|
const string$2 = (params) => {
|
|
924
930
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -934,7 +940,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
934
940
|
const uppercase = /^[^a-z]*$/;
|
|
935
941
|
|
|
936
942
|
//#endregion
|
|
937
|
-
//#region ../../node_modules/zod/
|
|
943
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
938
944
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
939
945
|
var _a;
|
|
940
946
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1125,11 +1131,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1125
1131
|
};
|
|
1126
1132
|
});
|
|
1127
1133
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1134
|
+
var _a;
|
|
1128
1135
|
$ZodCheck.init(inst, def);
|
|
1129
|
-
inst._zod.when = (payload) => {
|
|
1136
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1130
1137
|
const val = payload.value;
|
|
1131
1138
|
return !nullish$1(val) && val.size !== undefined;
|
|
1132
|
-
};
|
|
1139
|
+
});
|
|
1133
1140
|
inst._zod.onattach.push((inst$1) => {
|
|
1134
1141
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1135
1142
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1149,11 +1156,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1149
1156
|
};
|
|
1150
1157
|
});
|
|
1151
1158
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1159
|
+
var _a;
|
|
1152
1160
|
$ZodCheck.init(inst, def);
|
|
1153
|
-
inst._zod.when = (payload) => {
|
|
1161
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1154
1162
|
const val = payload.value;
|
|
1155
1163
|
return !nullish$1(val) && val.size !== undefined;
|
|
1156
|
-
};
|
|
1164
|
+
});
|
|
1157
1165
|
inst._zod.onattach.push((inst$1) => {
|
|
1158
1166
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1159
1167
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1173,11 +1181,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1173
1181
|
};
|
|
1174
1182
|
});
|
|
1175
1183
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1184
|
+
var _a;
|
|
1176
1185
|
$ZodCheck.init(inst, def);
|
|
1177
|
-
inst._zod.when = (payload) => {
|
|
1186
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1178
1187
|
const val = payload.value;
|
|
1179
1188
|
return !nullish$1(val) && val.size !== undefined;
|
|
1180
|
-
};
|
|
1189
|
+
});
|
|
1181
1190
|
inst._zod.onattach.push((inst$1) => {
|
|
1182
1191
|
const bag = inst$1._zod.bag;
|
|
1183
1192
|
bag.minimum = def.size;
|
|
@@ -1198,6 +1207,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1198
1207
|
code: "too_small",
|
|
1199
1208
|
minimum: def.size
|
|
1200
1209
|
},
|
|
1210
|
+
inclusive: true,
|
|
1211
|
+
exact: true,
|
|
1201
1212
|
input: payload.value,
|
|
1202
1213
|
inst,
|
|
1203
1214
|
continue: !def.abort
|
|
@@ -1205,11 +1216,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1205
1216
|
};
|
|
1206
1217
|
});
|
|
1207
1218
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1219
|
+
var _a;
|
|
1208
1220
|
$ZodCheck.init(inst, def);
|
|
1209
|
-
inst._zod.when = (payload) => {
|
|
1221
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1210
1222
|
const val = payload.value;
|
|
1211
1223
|
return !nullish$1(val) && val.length !== undefined;
|
|
1212
|
-
};
|
|
1224
|
+
});
|
|
1213
1225
|
inst._zod.onattach.push((inst$1) => {
|
|
1214
1226
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1215
1227
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1231,11 +1243,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1231
1243
|
};
|
|
1232
1244
|
});
|
|
1233
1245
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1246
|
+
var _a;
|
|
1234
1247
|
$ZodCheck.init(inst, def);
|
|
1235
|
-
inst._zod.when = (payload) => {
|
|
1248
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1236
1249
|
const val = payload.value;
|
|
1237
1250
|
return !nullish$1(val) && val.length !== undefined;
|
|
1238
|
-
};
|
|
1251
|
+
});
|
|
1239
1252
|
inst._zod.onattach.push((inst$1) => {
|
|
1240
1253
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1241
1254
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1257,11 +1270,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1257
1270
|
};
|
|
1258
1271
|
});
|
|
1259
1272
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1273
|
+
var _a;
|
|
1260
1274
|
$ZodCheck.init(inst, def);
|
|
1261
|
-
inst._zod.when = (payload) => {
|
|
1275
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1262
1276
|
const val = payload.value;
|
|
1263
1277
|
return !nullish$1(val) && val.length !== undefined;
|
|
1264
|
-
};
|
|
1278
|
+
});
|
|
1265
1279
|
inst._zod.onattach.push((inst$1) => {
|
|
1266
1280
|
const bag = inst$1._zod.bag;
|
|
1267
1281
|
bag.minimum = def.length;
|
|
@@ -1283,6 +1297,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1283
1297
|
code: "too_small",
|
|
1284
1298
|
minimum: def.length
|
|
1285
1299
|
},
|
|
1300
|
+
inclusive: true,
|
|
1301
|
+
exact: true,
|
|
1286
1302
|
input: payload.value,
|
|
1287
1303
|
inst,
|
|
1288
1304
|
continue: !def.abort
|
|
@@ -1290,7 +1306,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1290
1306
|
};
|
|
1291
1307
|
});
|
|
1292
1308
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1293
|
-
var _a;
|
|
1309
|
+
var _a, _b;
|
|
1294
1310
|
$ZodCheck.init(inst, def);
|
|
1295
1311
|
inst._zod.onattach.push((inst$1) => {
|
|
1296
1312
|
const bag = inst$1._zod.bag;
|
|
@@ -1300,8 +1316,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1300
1316
|
bag.patterns.add(def.pattern);
|
|
1301
1317
|
}
|
|
1302
1318
|
});
|
|
1303
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1304
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1319
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1305
1320
|
def.pattern.lastIndex = 0;
|
|
1306
1321
|
if (def.pattern.test(payload.value)) return;
|
|
1307
1322
|
payload.issues.push({
|
|
@@ -1314,6 +1329,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1314
1329
|
continue: !def.abort
|
|
1315
1330
|
});
|
|
1316
1331
|
});
|
|
1332
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1317
1333
|
});
|
|
1318
1334
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1319
1335
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1437,7 +1453,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1437
1453
|
code: "invalid_value",
|
|
1438
1454
|
values: def.mime,
|
|
1439
1455
|
input: payload.value.type,
|
|
1440
|
-
path: ["type"],
|
|
1441
1456
|
inst
|
|
1442
1457
|
});
|
|
1443
1458
|
};
|
|
@@ -1450,7 +1465,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1450
1465
|
});
|
|
1451
1466
|
|
|
1452
1467
|
//#endregion
|
|
1453
|
-
//#region ../../node_modules/zod/
|
|
1468
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1454
1469
|
var Doc = class {
|
|
1455
1470
|
constructor(args = []) {
|
|
1456
1471
|
this.content = [];
|
|
@@ -1486,19 +1501,18 @@ var Doc = class {
|
|
|
1486
1501
|
};
|
|
1487
1502
|
|
|
1488
1503
|
//#endregion
|
|
1489
|
-
//#region ../../node_modules/zod/
|
|
1504
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1490
1505
|
const version = {
|
|
1491
1506
|
major: 4,
|
|
1492
1507
|
minor: 0,
|
|
1493
|
-
patch:
|
|
1508
|
+
patch: 5
|
|
1494
1509
|
};
|
|
1495
1510
|
|
|
1496
1511
|
//#endregion
|
|
1497
|
-
//#region ../../node_modules/zod/
|
|
1512
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1498
1513
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1499
1514
|
var _a;
|
|
1500
1515
|
inst ?? (inst = {});
|
|
1501
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1502
1516
|
inst._zod.def = def;
|
|
1503
1517
|
inst._zod.bag = inst._zod.bag || {};
|
|
1504
1518
|
inst._zod.version = version;
|
|
@@ -1521,13 +1535,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1521
1535
|
let isAborted = aborted(payload);
|
|
1522
1536
|
let asyncResult;
|
|
1523
1537
|
for (const ch of checks$1) {
|
|
1524
|
-
if (ch._zod.when) {
|
|
1525
|
-
const shouldRun = ch._zod.when(payload);
|
|
1538
|
+
if (ch._zod.def.when) {
|
|
1539
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1526
1540
|
if (!shouldRun) continue;
|
|
1527
|
-
} else {
|
|
1528
|
-
|
|
1529
|
-
continue;
|
|
1530
|
-
}
|
|
1541
|
+
} else if (isAborted) {
|
|
1542
|
+
continue;
|
|
1531
1543
|
}
|
|
1532
1544
|
const currLen = payload.issues.length;
|
|
1533
1545
|
const _ = ch._zod.check(payload);
|
|
@@ -1627,7 +1639,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1627
1639
|
$ZodStringFormat.init(inst, def);
|
|
1628
1640
|
inst._zod.check = (payload) => {
|
|
1629
1641
|
try {
|
|
1630
|
-
const
|
|
1642
|
+
const orig = payload.value;
|
|
1643
|
+
const url$1 = new URL(orig);
|
|
1644
|
+
const href = url$1.href;
|
|
1631
1645
|
if (def.hostname) {
|
|
1632
1646
|
def.hostname.lastIndex = 0;
|
|
1633
1647
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -1656,6 +1670,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1656
1670
|
});
|
|
1657
1671
|
}
|
|
1658
1672
|
}
|
|
1673
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
1674
|
+
payload.value = href.slice(0, -1);
|
|
1675
|
+
} else {
|
|
1676
|
+
payload.value = href;
|
|
1677
|
+
}
|
|
1659
1678
|
return;
|
|
1660
1679
|
} catch (_) {
|
|
1661
1680
|
payload.issues.push({
|
|
@@ -1826,6 +1845,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1826
1845
|
const tokensParts = token.split(".");
|
|
1827
1846
|
if (tokensParts.length !== 3) return false;
|
|
1828
1847
|
const [header] = tokensParts;
|
|
1848
|
+
if (!header) return false;
|
|
1829
1849
|
const parsedHeader = JSON.parse(atob(header));
|
|
1830
1850
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1831
1851
|
if (!parsedHeader.alg) return false;
|
|
@@ -1848,6 +1868,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1848
1868
|
});
|
|
1849
1869
|
};
|
|
1850
1870
|
});
|
|
1871
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
1872
|
+
$ZodStringFormat.init(inst, def);
|
|
1873
|
+
inst._zod.check = (payload) => {
|
|
1874
|
+
if (def.fn(payload.value)) return;
|
|
1875
|
+
payload.issues.push({
|
|
1876
|
+
code: "invalid_format",
|
|
1877
|
+
format: def.format,
|
|
1878
|
+
input: payload.value,
|
|
1879
|
+
inst,
|
|
1880
|
+
continue: !def.abort
|
|
1881
|
+
});
|
|
1882
|
+
};
|
|
1883
|
+
});
|
|
1851
1884
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
1852
1885
|
$ZodType.init(inst, def);
|
|
1853
1886
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -1899,12 +1932,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
1899
1932
|
if (def.coerce) try {
|
|
1900
1933
|
payload.value = BigInt(payload.value);
|
|
1901
1934
|
} catch (_) {}
|
|
1902
|
-
|
|
1903
|
-
if (typeof input === "bigint") return payload;
|
|
1935
|
+
if (typeof payload.value === "bigint") return payload;
|
|
1904
1936
|
payload.issues.push({
|
|
1905
1937
|
expected: "bigint",
|
|
1906
1938
|
code: "invalid_type",
|
|
1907
|
-
input,
|
|
1939
|
+
input: payload.value,
|
|
1908
1940
|
inst
|
|
1909
1941
|
});
|
|
1910
1942
|
return payload;
|
|
@@ -1917,7 +1949,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
1917
1949
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
1918
1950
|
$ZodType.init(inst, def);
|
|
1919
1951
|
inst._zod.parse = (payload, _ctx) => {
|
|
1920
|
-
const
|
|
1952
|
+
const input = payload.value;
|
|
1921
1953
|
if (typeof input === "symbol") return payload;
|
|
1922
1954
|
payload.issues.push({
|
|
1923
1955
|
expected: "symbol",
|
|
@@ -1932,8 +1964,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
1932
1964
|
$ZodType.init(inst, def);
|
|
1933
1965
|
inst._zod.pattern = _undefined$2;
|
|
1934
1966
|
inst._zod.values = new Set([undefined]);
|
|
1967
|
+
inst._zod.optin = "optional";
|
|
1968
|
+
inst._zod.optout = "optional";
|
|
1935
1969
|
inst._zod.parse = (payload, _ctx) => {
|
|
1936
|
-
const
|
|
1970
|
+
const input = payload.value;
|
|
1937
1971
|
if (typeof input === "undefined") return payload;
|
|
1938
1972
|
payload.issues.push({
|
|
1939
1973
|
expected: "undefined",
|
|
@@ -1949,7 +1983,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1949
1983
|
inst._zod.pattern = _null$2;
|
|
1950
1984
|
inst._zod.values = new Set([null]);
|
|
1951
1985
|
inst._zod.parse = (payload, _ctx) => {
|
|
1952
|
-
const
|
|
1986
|
+
const input = payload.value;
|
|
1953
1987
|
if (input === null) return payload;
|
|
1954
1988
|
payload.issues.push({
|
|
1955
1989
|
expected: "null",
|
|
@@ -1983,7 +2017,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
1983
2017
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
1984
2018
|
$ZodType.init(inst, def);
|
|
1985
2019
|
inst._zod.parse = (payload, _ctx) => {
|
|
1986
|
-
const
|
|
2020
|
+
const input = payload.value;
|
|
1987
2021
|
if (typeof input === "undefined") return payload;
|
|
1988
2022
|
payload.issues.push({
|
|
1989
2023
|
expected: "void",
|
|
@@ -2114,19 +2148,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2114
2148
|
"payload",
|
|
2115
2149
|
"ctx"
|
|
2116
2150
|
]);
|
|
2117
|
-
const
|
|
2151
|
+
const normalized = _normalized.value;
|
|
2118
2152
|
const parseStr = (key) => {
|
|
2119
2153
|
const k = esc(key);
|
|
2120
2154
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2121
2155
|
};
|
|
2122
2156
|
doc.write(`const input = payload.value;`);
|
|
2123
2157
|
const ids = Object.create(null);
|
|
2124
|
-
|
|
2125
|
-
|
|
2158
|
+
let counter = 0;
|
|
2159
|
+
for (const key of normalized.keys) {
|
|
2160
|
+
ids[key] = `key_${counter++}`;
|
|
2126
2161
|
}
|
|
2127
2162
|
doc.write(`const newResult = {}`);
|
|
2128
|
-
for (const key of keys) {
|
|
2129
|
-
if (optionalKeys
|
|
2163
|
+
for (const key of normalized.keys) {
|
|
2164
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2130
2165
|
const id = ids[key];
|
|
2131
2166
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2132
2167
|
const k = esc(key);
|
|
@@ -2171,7 +2206,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2171
2206
|
const jit = !globalConfig.jitless;
|
|
2172
2207
|
const allowsEval$1 = allowsEval;
|
|
2173
2208
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2174
|
-
const
|
|
2209
|
+
const catchall = def.catchall;
|
|
2175
2210
|
let value;
|
|
2176
2211
|
inst._zod.parse = (payload, ctx) => {
|
|
2177
2212
|
value ?? (value = _normalized.value);
|
|
@@ -2201,12 +2236,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2201
2236
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2202
2237
|
if (r instanceof Promise) {
|
|
2203
2238
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2239
|
+
} else if (isOptional) {
|
|
2240
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2204
2241
|
} else {
|
|
2205
|
-
|
|
2206
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2207
|
-
} else {
|
|
2208
|
-
handleObjectResult(r, payload, key);
|
|
2209
|
-
}
|
|
2242
|
+
handleObjectResult(r, payload, key);
|
|
2210
2243
|
}
|
|
2211
2244
|
}
|
|
2212
2245
|
}
|
|
@@ -2264,6 +2297,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2264
2297
|
}
|
|
2265
2298
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2266
2299
|
$ZodType.init(inst, def);
|
|
2300
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2301
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2267
2302
|
defineLazy(inst._zod, "values", () => {
|
|
2268
2303
|
if (def.options.every((o) => o._zod.values)) {
|
|
2269
2304
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2320,7 +2355,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2320
2355
|
const opts = def.options;
|
|
2321
2356
|
const map$1 = new Map();
|
|
2322
2357
|
for (const o of opts) {
|
|
2323
|
-
const values = o._zod.propValues[def.discriminator];
|
|
2358
|
+
const values = o._zod.propValues?.[def.discriminator];
|
|
2324
2359
|
if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
2325
2360
|
for (const v of values) {
|
|
2326
2361
|
if (map$1.has(v)) {
|
|
@@ -2363,7 +2398,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2363
2398
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2364
2399
|
$ZodType.init(inst, def);
|
|
2365
2400
|
inst._zod.parse = (payload, ctx) => {
|
|
2366
|
-
const
|
|
2401
|
+
const input = payload.value;
|
|
2367
2402
|
const left = def.left._zod.run({
|
|
2368
2403
|
value: input,
|
|
2369
2404
|
issues: []
|
|
@@ -2820,6 +2855,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2820
2855
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
2821
2856
|
});
|
|
2822
2857
|
inst._zod.parse = (payload, ctx) => {
|
|
2858
|
+
if (def.innerType._zod.optin === "optional") {
|
|
2859
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2860
|
+
}
|
|
2823
2861
|
if (payload.value === undefined) {
|
|
2824
2862
|
return payload;
|
|
2825
2863
|
}
|
|
@@ -2919,7 +2957,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
2919
2957
|
});
|
|
2920
2958
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
2921
2959
|
$ZodType.init(inst, def);
|
|
2922
|
-
|
|
2960
|
+
inst._zod.optin = "optional";
|
|
2923
2961
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2924
2962
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2925
2963
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2970,6 +3008,7 @@ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
2970
3008
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2971
3009
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
2972
3010
|
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
3011
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
2973
3012
|
inst._zod.parse = (payload, ctx) => {
|
|
2974
3013
|
const left = def.in._zod.run(payload, ctx);
|
|
2975
3014
|
if (left instanceof Promise) {
|
|
@@ -2990,6 +3029,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
2990
3029
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
2991
3030
|
$ZodType.init(inst, def);
|
|
2992
3031
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3032
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2993
3033
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2994
3034
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2995
3035
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3040,7 +3080,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3040
3080
|
input: payload.value,
|
|
3041
3081
|
inst,
|
|
3042
3082
|
code: "invalid_format",
|
|
3043
|
-
format: "template_literal",
|
|
3083
|
+
format: def.format ?? "template_literal",
|
|
3044
3084
|
pattern: inst._zod.pattern.source
|
|
3045
3085
|
});
|
|
3046
3086
|
return payload;
|
|
@@ -3100,8 +3140,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3100
3140
|
}
|
|
3101
3141
|
|
|
3102
3142
|
//#endregion
|
|
3103
|
-
//#region ../../node_modules/zod/
|
|
3104
|
-
const error$
|
|
3143
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3144
|
+
const error$38 = () => {
|
|
3105
3145
|
const Sizable = {
|
|
3106
3146
|
string: {
|
|
3107
3147
|
unit: "حرف",
|
|
@@ -3123,7 +3163,7 @@ const error$36 = () => {
|
|
|
3123
3163
|
function getSizing(origin) {
|
|
3124
3164
|
return Sizable[origin] ?? null;
|
|
3125
3165
|
}
|
|
3126
|
-
const parsedType$
|
|
3166
|
+
const parsedType$3 = (data) => {
|
|
3127
3167
|
const t = typeof data;
|
|
3128
3168
|
switch (t) {
|
|
3129
3169
|
case "number": {
|
|
@@ -3175,7 +3215,7 @@ const error$36 = () => {
|
|
|
3175
3215
|
};
|
|
3176
3216
|
return (issue$1) => {
|
|
3177
3217
|
switch (issue$1.code) {
|
|
3178
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3218
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3179
3219
|
case "invalid_value":
|
|
3180
3220
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3181
3221
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3211,12 +3251,12 @@ const error$36 = () => {
|
|
|
3211
3251
|
};
|
|
3212
3252
|
};
|
|
3213
3253
|
function ar_default() {
|
|
3214
|
-
return { localeError: error$
|
|
3254
|
+
return { localeError: error$38() };
|
|
3215
3255
|
}
|
|
3216
3256
|
|
|
3217
3257
|
//#endregion
|
|
3218
|
-
//#region ../../node_modules/zod/
|
|
3219
|
-
const error$
|
|
3258
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3259
|
+
const error$37 = () => {
|
|
3220
3260
|
const Sizable = {
|
|
3221
3261
|
string: {
|
|
3222
3262
|
unit: "simvol",
|
|
@@ -3238,7 +3278,7 @@ const error$35 = () => {
|
|
|
3238
3278
|
function getSizing(origin) {
|
|
3239
3279
|
return Sizable[origin] ?? null;
|
|
3240
3280
|
}
|
|
3241
|
-
const parsedType$
|
|
3281
|
+
const parsedType$3 = (data) => {
|
|
3242
3282
|
const t = typeof data;
|
|
3243
3283
|
switch (t) {
|
|
3244
3284
|
case "number": {
|
|
@@ -3290,7 +3330,7 @@ const error$35 = () => {
|
|
|
3290
3330
|
};
|
|
3291
3331
|
return (issue$1) => {
|
|
3292
3332
|
switch (issue$1.code) {
|
|
3293
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3333
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3294
3334
|
case "invalid_value":
|
|
3295
3335
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3296
3336
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3324,11 +3364,11 @@ const error$35 = () => {
|
|
|
3324
3364
|
};
|
|
3325
3365
|
};
|
|
3326
3366
|
function az_default() {
|
|
3327
|
-
return { localeError: error$
|
|
3367
|
+
return { localeError: error$37() };
|
|
3328
3368
|
}
|
|
3329
3369
|
|
|
3330
3370
|
//#endregion
|
|
3331
|
-
//#region ../../node_modules/zod/
|
|
3371
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3332
3372
|
function getBelarusianPlural(count, one, few, many) {
|
|
3333
3373
|
const absCount = Math.abs(count);
|
|
3334
3374
|
const lastDigit = absCount % 10;
|
|
@@ -3344,7 +3384,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3344
3384
|
}
|
|
3345
3385
|
return many;
|
|
3346
3386
|
}
|
|
3347
|
-
const error$
|
|
3387
|
+
const error$36 = () => {
|
|
3348
3388
|
const Sizable = {
|
|
3349
3389
|
string: {
|
|
3350
3390
|
unit: {
|
|
@@ -3382,7 +3422,7 @@ const error$34 = () => {
|
|
|
3382
3422
|
function getSizing(origin) {
|
|
3383
3423
|
return Sizable[origin] ?? null;
|
|
3384
3424
|
}
|
|
3385
|
-
const parsedType$
|
|
3425
|
+
const parsedType$3 = (data) => {
|
|
3386
3426
|
const t = typeof data;
|
|
3387
3427
|
switch (t) {
|
|
3388
3428
|
case "number": {
|
|
@@ -3434,7 +3474,7 @@ const error$34 = () => {
|
|
|
3434
3474
|
};
|
|
3435
3475
|
return (issue$1) => {
|
|
3436
3476
|
switch (issue$1.code) {
|
|
3437
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3477
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3438
3478
|
case "invalid_value":
|
|
3439
3479
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3440
3480
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3476,12 +3516,12 @@ const error$34 = () => {
|
|
|
3476
3516
|
};
|
|
3477
3517
|
};
|
|
3478
3518
|
function be_default() {
|
|
3479
|
-
return { localeError: error$
|
|
3519
|
+
return { localeError: error$36() };
|
|
3480
3520
|
}
|
|
3481
3521
|
|
|
3482
3522
|
//#endregion
|
|
3483
|
-
//#region ../../node_modules/zod/
|
|
3484
|
-
const error$
|
|
3523
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3524
|
+
const error$35 = () => {
|
|
3485
3525
|
const Sizable = {
|
|
3486
3526
|
string: {
|
|
3487
3527
|
unit: "caràcters",
|
|
@@ -3503,7 +3543,7 @@ const error$33 = () => {
|
|
|
3503
3543
|
function getSizing(origin) {
|
|
3504
3544
|
return Sizable[origin] ?? null;
|
|
3505
3545
|
}
|
|
3506
|
-
const parsedType$
|
|
3546
|
+
const parsedType$3 = (data) => {
|
|
3507
3547
|
const t = typeof data;
|
|
3508
3548
|
switch (t) {
|
|
3509
3549
|
case "number": {
|
|
@@ -3555,7 +3595,7 @@ const error$33 = () => {
|
|
|
3555
3595
|
};
|
|
3556
3596
|
return (issue$1) => {
|
|
3557
3597
|
switch (issue$1.code) {
|
|
3558
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
3598
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
3559
3599
|
case "invalid_value":
|
|
3560
3600
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3561
3601
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -3593,12 +3633,12 @@ const error$33 = () => {
|
|
|
3593
3633
|
};
|
|
3594
3634
|
};
|
|
3595
3635
|
function ca_default() {
|
|
3596
|
-
return { localeError: error$
|
|
3636
|
+
return { localeError: error$35() };
|
|
3597
3637
|
}
|
|
3598
3638
|
|
|
3599
3639
|
//#endregion
|
|
3600
|
-
//#region ../../node_modules/zod/
|
|
3601
|
-
const error$
|
|
3640
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
3641
|
+
const error$34 = () => {
|
|
3602
3642
|
const Sizable = {
|
|
3603
3643
|
string: {
|
|
3604
3644
|
unit: "znaků",
|
|
@@ -3620,7 +3660,7 @@ const error$32 = () => {
|
|
|
3620
3660
|
function getSizing(origin) {
|
|
3621
3661
|
return Sizable[origin] ?? null;
|
|
3622
3662
|
}
|
|
3623
|
-
const parsedType$
|
|
3663
|
+
const parsedType$3 = (data) => {
|
|
3624
3664
|
const t = typeof data;
|
|
3625
3665
|
switch (t) {
|
|
3626
3666
|
case "number": {
|
|
@@ -3690,7 +3730,7 @@ const error$32 = () => {
|
|
|
3690
3730
|
};
|
|
3691
3731
|
return (issue$1) => {
|
|
3692
3732
|
switch (issue$1.code) {
|
|
3693
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
3733
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
3694
3734
|
case "invalid_value":
|
|
3695
3735
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3696
3736
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3728,12 +3768,12 @@ const error$32 = () => {
|
|
|
3728
3768
|
};
|
|
3729
3769
|
};
|
|
3730
3770
|
function cs_default() {
|
|
3731
|
-
return { localeError: error$
|
|
3771
|
+
return { localeError: error$34() };
|
|
3732
3772
|
}
|
|
3733
3773
|
|
|
3734
3774
|
//#endregion
|
|
3735
|
-
//#region ../../node_modules/zod/
|
|
3736
|
-
const error$
|
|
3775
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
3776
|
+
const error$33 = () => {
|
|
3737
3777
|
const Sizable = {
|
|
3738
3778
|
string: {
|
|
3739
3779
|
unit: "Zeichen",
|
|
@@ -3755,7 +3795,7 @@ const error$31 = () => {
|
|
|
3755
3795
|
function getSizing(origin) {
|
|
3756
3796
|
return Sizable[origin] ?? null;
|
|
3757
3797
|
}
|
|
3758
|
-
const parsedType$
|
|
3798
|
+
const parsedType$3 = (data) => {
|
|
3759
3799
|
const t = typeof data;
|
|
3760
3800
|
switch (t) {
|
|
3761
3801
|
case "number": {
|
|
@@ -3807,7 +3847,7 @@ const error$31 = () => {
|
|
|
3807
3847
|
};
|
|
3808
3848
|
return (issue$1) => {
|
|
3809
3849
|
switch (issue$1.code) {
|
|
3810
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
3850
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
3811
3851
|
case "invalid_value":
|
|
3812
3852
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3813
3853
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3843,12 +3883,12 @@ const error$31 = () => {
|
|
|
3843
3883
|
};
|
|
3844
3884
|
};
|
|
3845
3885
|
function de_default() {
|
|
3846
|
-
return { localeError: error$
|
|
3886
|
+
return { localeError: error$33() };
|
|
3847
3887
|
}
|
|
3848
3888
|
|
|
3849
3889
|
//#endregion
|
|
3850
|
-
//#region ../../node_modules/zod/
|
|
3851
|
-
const parsedType$
|
|
3890
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3891
|
+
const parsedType$2 = (data) => {
|
|
3852
3892
|
const t = typeof data;
|
|
3853
3893
|
switch (t) {
|
|
3854
3894
|
case "number": {
|
|
@@ -3868,7 +3908,7 @@ const parsedType$1 = (data) => {
|
|
|
3868
3908
|
}
|
|
3869
3909
|
return t;
|
|
3870
3910
|
};
|
|
3871
|
-
const error$
|
|
3911
|
+
const error$32 = () => {
|
|
3872
3912
|
const Sizable = {
|
|
3873
3913
|
string: {
|
|
3874
3914
|
unit: "characters",
|
|
@@ -3922,7 +3962,7 @@ const error$30 = () => {
|
|
|
3922
3962
|
};
|
|
3923
3963
|
return (issue$1) => {
|
|
3924
3964
|
switch (issue$1.code) {
|
|
3925
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
3965
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
3926
3966
|
case "invalid_value":
|
|
3927
3967
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3928
3968
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3960,12 +4000,127 @@ const error$30 = () => {
|
|
|
3960
4000
|
};
|
|
3961
4001
|
};
|
|
3962
4002
|
function en_default() {
|
|
3963
|
-
return { localeError: error$
|
|
4003
|
+
return { localeError: error$32() };
|
|
3964
4004
|
}
|
|
3965
4005
|
|
|
3966
4006
|
//#endregion
|
|
3967
|
-
//#region ../../node_modules/zod/
|
|
3968
|
-
const
|
|
4007
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4008
|
+
const parsedType$1 = (data) => {
|
|
4009
|
+
const t = typeof data;
|
|
4010
|
+
switch (t) {
|
|
4011
|
+
case "number": {
|
|
4012
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4013
|
+
}
|
|
4014
|
+
case "object": {
|
|
4015
|
+
if (Array.isArray(data)) {
|
|
4016
|
+
return "tabelo";
|
|
4017
|
+
}
|
|
4018
|
+
if (data === null) {
|
|
4019
|
+
return "senvalora";
|
|
4020
|
+
}
|
|
4021
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4022
|
+
return data.constructor.name;
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
return t;
|
|
4027
|
+
};
|
|
4028
|
+
const error$31 = () => {
|
|
4029
|
+
const Sizable = {
|
|
4030
|
+
string: {
|
|
4031
|
+
unit: "karaktrojn",
|
|
4032
|
+
verb: "havi"
|
|
4033
|
+
},
|
|
4034
|
+
file: {
|
|
4035
|
+
unit: "bajtojn",
|
|
4036
|
+
verb: "havi"
|
|
4037
|
+
},
|
|
4038
|
+
array: {
|
|
4039
|
+
unit: "elementojn",
|
|
4040
|
+
verb: "havi"
|
|
4041
|
+
},
|
|
4042
|
+
set: {
|
|
4043
|
+
unit: "elementojn",
|
|
4044
|
+
verb: "havi"
|
|
4045
|
+
}
|
|
4046
|
+
};
|
|
4047
|
+
function getSizing(origin) {
|
|
4048
|
+
return Sizable[origin] ?? null;
|
|
4049
|
+
}
|
|
4050
|
+
const Nouns = {
|
|
4051
|
+
regex: "enigo",
|
|
4052
|
+
email: "retadreso",
|
|
4053
|
+
url: "URL",
|
|
4054
|
+
emoji: "emoĝio",
|
|
4055
|
+
uuid: "UUID",
|
|
4056
|
+
uuidv4: "UUIDv4",
|
|
4057
|
+
uuidv6: "UUIDv6",
|
|
4058
|
+
nanoid: "nanoid",
|
|
4059
|
+
guid: "GUID",
|
|
4060
|
+
cuid: "cuid",
|
|
4061
|
+
cuid2: "cuid2",
|
|
4062
|
+
ulid: "ULID",
|
|
4063
|
+
xid: "XID",
|
|
4064
|
+
ksuid: "KSUID",
|
|
4065
|
+
datetime: "ISO-datotempo",
|
|
4066
|
+
date: "ISO-dato",
|
|
4067
|
+
time: "ISO-tempo",
|
|
4068
|
+
duration: "ISO-daŭro",
|
|
4069
|
+
ipv4: "IPv4-adreso",
|
|
4070
|
+
ipv6: "IPv6-adreso",
|
|
4071
|
+
cidrv4: "IPv4-rango",
|
|
4072
|
+
cidrv6: "IPv6-rango",
|
|
4073
|
+
base64: "64-ume kodita karaktraro",
|
|
4074
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4075
|
+
json_string: "JSON-karaktraro",
|
|
4076
|
+
e164: "E.164-nombro",
|
|
4077
|
+
jwt: "JWT",
|
|
4078
|
+
template_literal: "enigo"
|
|
4079
|
+
};
|
|
4080
|
+
return (issue$1) => {
|
|
4081
|
+
switch (issue$1.code) {
|
|
4082
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4083
|
+
case "invalid_value":
|
|
4084
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4085
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4086
|
+
case "too_big": {
|
|
4087
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4088
|
+
const sizing = getSizing(issue$1.origin);
|
|
4089
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4090
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4091
|
+
}
|
|
4092
|
+
case "too_small": {
|
|
4093
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4094
|
+
const sizing = getSizing(issue$1.origin);
|
|
4095
|
+
if (sizing) {
|
|
4096
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4097
|
+
}
|
|
4098
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4099
|
+
}
|
|
4100
|
+
case "invalid_format": {
|
|
4101
|
+
const _issue = issue$1;
|
|
4102
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4103
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4104
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4105
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4106
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4107
|
+
}
|
|
4108
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4109
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4110
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4111
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4112
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4113
|
+
default: return `Nevalida enigo`;
|
|
4114
|
+
}
|
|
4115
|
+
};
|
|
4116
|
+
};
|
|
4117
|
+
function eo_default() {
|
|
4118
|
+
return { localeError: error$31() };
|
|
4119
|
+
}
|
|
4120
|
+
|
|
4121
|
+
//#endregion
|
|
4122
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4123
|
+
const error$30 = () => {
|
|
3969
4124
|
const Sizable = {
|
|
3970
4125
|
string: {
|
|
3971
4126
|
unit: "caracteres",
|
|
@@ -3987,7 +4142,7 @@ const error$29 = () => {
|
|
|
3987
4142
|
function getSizing(origin) {
|
|
3988
4143
|
return Sizable[origin] ?? null;
|
|
3989
4144
|
}
|
|
3990
|
-
const parsedType$
|
|
4145
|
+
const parsedType$3 = (data) => {
|
|
3991
4146
|
const t = typeof data;
|
|
3992
4147
|
switch (t) {
|
|
3993
4148
|
case "number": {
|
|
@@ -4039,7 +4194,7 @@ const error$29 = () => {
|
|
|
4039
4194
|
};
|
|
4040
4195
|
return (issue$1) => {
|
|
4041
4196
|
switch (issue$1.code) {
|
|
4042
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4197
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4043
4198
|
case "invalid_value":
|
|
4044
4199
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4045
4200
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4075,12 +4230,12 @@ const error$29 = () => {
|
|
|
4075
4230
|
};
|
|
4076
4231
|
};
|
|
4077
4232
|
function es_default() {
|
|
4078
|
-
return { localeError: error$
|
|
4233
|
+
return { localeError: error$30() };
|
|
4079
4234
|
}
|
|
4080
4235
|
|
|
4081
4236
|
//#endregion
|
|
4082
|
-
//#region ../../node_modules/zod/
|
|
4083
|
-
const error$
|
|
4237
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4238
|
+
const error$29 = () => {
|
|
4084
4239
|
const Sizable = {
|
|
4085
4240
|
string: {
|
|
4086
4241
|
unit: "کاراکتر",
|
|
@@ -4102,7 +4257,7 @@ const error$28 = () => {
|
|
|
4102
4257
|
function getSizing(origin) {
|
|
4103
4258
|
return Sizable[origin] ?? null;
|
|
4104
4259
|
}
|
|
4105
|
-
const parsedType$
|
|
4260
|
+
const parsedType$3 = (data) => {
|
|
4106
4261
|
const t = typeof data;
|
|
4107
4262
|
switch (t) {
|
|
4108
4263
|
case "number": {
|
|
@@ -4154,7 +4309,7 @@ const error$28 = () => {
|
|
|
4154
4309
|
};
|
|
4155
4310
|
return (issue$1) => {
|
|
4156
4311
|
switch (issue$1.code) {
|
|
4157
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4312
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4158
4313
|
case "invalid_value":
|
|
4159
4314
|
if (issue$1.values.length === 1) {
|
|
4160
4315
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4202,12 +4357,12 @@ const error$28 = () => {
|
|
|
4202
4357
|
};
|
|
4203
4358
|
};
|
|
4204
4359
|
function fa_default() {
|
|
4205
|
-
return { localeError: error$
|
|
4360
|
+
return { localeError: error$29() };
|
|
4206
4361
|
}
|
|
4207
4362
|
|
|
4208
4363
|
//#endregion
|
|
4209
|
-
//#region ../../node_modules/zod/
|
|
4210
|
-
const error$
|
|
4364
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4365
|
+
const error$28 = () => {
|
|
4211
4366
|
const Sizable = {
|
|
4212
4367
|
string: {
|
|
4213
4368
|
unit: "merkkiä",
|
|
@@ -4245,7 +4400,7 @@ const error$27 = () => {
|
|
|
4245
4400
|
function getSizing(origin) {
|
|
4246
4401
|
return Sizable[origin] ?? null;
|
|
4247
4402
|
}
|
|
4248
|
-
const parsedType$
|
|
4403
|
+
const parsedType$3 = (data) => {
|
|
4249
4404
|
const t = typeof data;
|
|
4250
4405
|
switch (t) {
|
|
4251
4406
|
case "number": {
|
|
@@ -4297,7 +4452,7 @@ const error$27 = () => {
|
|
|
4297
4452
|
};
|
|
4298
4453
|
return (issue$1) => {
|
|
4299
4454
|
switch (issue$1.code) {
|
|
4300
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4455
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4301
4456
|
case "invalid_value":
|
|
4302
4457
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4303
4458
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4337,12 +4492,12 @@ const error$27 = () => {
|
|
|
4337
4492
|
};
|
|
4338
4493
|
};
|
|
4339
4494
|
function fi_default() {
|
|
4340
|
-
return { localeError: error$
|
|
4495
|
+
return { localeError: error$28() };
|
|
4341
4496
|
}
|
|
4342
4497
|
|
|
4343
4498
|
//#endregion
|
|
4344
|
-
//#region ../../node_modules/zod/
|
|
4345
|
-
const error$
|
|
4499
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4500
|
+
const error$27 = () => {
|
|
4346
4501
|
const Sizable = {
|
|
4347
4502
|
string: {
|
|
4348
4503
|
unit: "caractères",
|
|
@@ -4364,7 +4519,7 @@ const error$26 = () => {
|
|
|
4364
4519
|
function getSizing(origin) {
|
|
4365
4520
|
return Sizable[origin] ?? null;
|
|
4366
4521
|
}
|
|
4367
|
-
const parsedType$
|
|
4522
|
+
const parsedType$3 = (data) => {
|
|
4368
4523
|
const t = typeof data;
|
|
4369
4524
|
switch (t) {
|
|
4370
4525
|
case "number": {
|
|
@@ -4416,7 +4571,7 @@ const error$26 = () => {
|
|
|
4416
4571
|
};
|
|
4417
4572
|
return (issue$1) => {
|
|
4418
4573
|
switch (issue$1.code) {
|
|
4419
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4574
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4420
4575
|
case "invalid_value":
|
|
4421
4576
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4422
4577
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4452,12 +4607,12 @@ const error$26 = () => {
|
|
|
4452
4607
|
};
|
|
4453
4608
|
};
|
|
4454
4609
|
function fr_default() {
|
|
4455
|
-
return { localeError: error$
|
|
4610
|
+
return { localeError: error$27() };
|
|
4456
4611
|
}
|
|
4457
4612
|
|
|
4458
4613
|
//#endregion
|
|
4459
|
-
//#region ../../node_modules/zod/
|
|
4460
|
-
const error$
|
|
4614
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
4615
|
+
const error$26 = () => {
|
|
4461
4616
|
const Sizable = {
|
|
4462
4617
|
string: {
|
|
4463
4618
|
unit: "caractères",
|
|
@@ -4479,7 +4634,7 @@ const error$25 = () => {
|
|
|
4479
4634
|
function getSizing(origin) {
|
|
4480
4635
|
return Sizable[origin] ?? null;
|
|
4481
4636
|
}
|
|
4482
|
-
const parsedType$
|
|
4637
|
+
const parsedType$3 = (data) => {
|
|
4483
4638
|
const t = typeof data;
|
|
4484
4639
|
switch (t) {
|
|
4485
4640
|
case "number": {
|
|
@@ -4531,7 +4686,7 @@ const error$25 = () => {
|
|
|
4531
4686
|
};
|
|
4532
4687
|
return (issue$1) => {
|
|
4533
4688
|
switch (issue$1.code) {
|
|
4534
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4689
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
4535
4690
|
case "invalid_value":
|
|
4536
4691
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4537
4692
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4569,12 +4724,12 @@ const error$25 = () => {
|
|
|
4569
4724
|
};
|
|
4570
4725
|
};
|
|
4571
4726
|
function fr_CA_default() {
|
|
4572
|
-
return { localeError: error$
|
|
4727
|
+
return { localeError: error$26() };
|
|
4573
4728
|
}
|
|
4574
4729
|
|
|
4575
4730
|
//#endregion
|
|
4576
|
-
//#region ../../node_modules/zod/
|
|
4577
|
-
const error$
|
|
4731
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
4732
|
+
const error$25 = () => {
|
|
4578
4733
|
const Sizable = {
|
|
4579
4734
|
string: {
|
|
4580
4735
|
unit: "אותיות",
|
|
@@ -4596,7 +4751,7 @@ const error$24 = () => {
|
|
|
4596
4751
|
function getSizing(origin) {
|
|
4597
4752
|
return Sizable[origin] ?? null;
|
|
4598
4753
|
}
|
|
4599
|
-
const parsedType$
|
|
4754
|
+
const parsedType$3 = (data) => {
|
|
4600
4755
|
const t = typeof data;
|
|
4601
4756
|
switch (t) {
|
|
4602
4757
|
case "number": {
|
|
@@ -4648,7 +4803,7 @@ const error$24 = () => {
|
|
|
4648
4803
|
};
|
|
4649
4804
|
return (issue$1) => {
|
|
4650
4805
|
switch (issue$1.code) {
|
|
4651
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
4806
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
4652
4807
|
case "invalid_value":
|
|
4653
4808
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4654
4809
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4684,12 +4839,12 @@ const error$24 = () => {
|
|
|
4684
4839
|
};
|
|
4685
4840
|
};
|
|
4686
4841
|
function he_default() {
|
|
4687
|
-
return { localeError: error$
|
|
4842
|
+
return { localeError: error$25() };
|
|
4688
4843
|
}
|
|
4689
4844
|
|
|
4690
4845
|
//#endregion
|
|
4691
|
-
//#region ../../node_modules/zod/
|
|
4692
|
-
const error$
|
|
4846
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
4847
|
+
const error$24 = () => {
|
|
4693
4848
|
const Sizable = {
|
|
4694
4849
|
string: {
|
|
4695
4850
|
unit: "karakter",
|
|
@@ -4711,7 +4866,7 @@ const error$23 = () => {
|
|
|
4711
4866
|
function getSizing(origin) {
|
|
4712
4867
|
return Sizable[origin] ?? null;
|
|
4713
4868
|
}
|
|
4714
|
-
const parsedType$
|
|
4869
|
+
const parsedType$3 = (data) => {
|
|
4715
4870
|
const t = typeof data;
|
|
4716
4871
|
switch (t) {
|
|
4717
4872
|
case "number": {
|
|
@@ -4763,7 +4918,7 @@ const error$23 = () => {
|
|
|
4763
4918
|
};
|
|
4764
4919
|
return (issue$1) => {
|
|
4765
4920
|
switch (issue$1.code) {
|
|
4766
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
4921
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
4767
4922
|
case "invalid_value":
|
|
4768
4923
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4769
4924
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4799,12 +4954,12 @@ const error$23 = () => {
|
|
|
4799
4954
|
};
|
|
4800
4955
|
};
|
|
4801
4956
|
function hu_default() {
|
|
4802
|
-
return { localeError: error$
|
|
4957
|
+
return { localeError: error$24() };
|
|
4803
4958
|
}
|
|
4804
4959
|
|
|
4805
4960
|
//#endregion
|
|
4806
|
-
//#region ../../node_modules/zod/
|
|
4807
|
-
const error$
|
|
4961
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
4962
|
+
const error$23 = () => {
|
|
4808
4963
|
const Sizable = {
|
|
4809
4964
|
string: {
|
|
4810
4965
|
unit: "karakter",
|
|
@@ -4826,7 +4981,7 @@ const error$22 = () => {
|
|
|
4826
4981
|
function getSizing(origin) {
|
|
4827
4982
|
return Sizable[origin] ?? null;
|
|
4828
4983
|
}
|
|
4829
|
-
const parsedType$
|
|
4984
|
+
const parsedType$3 = (data) => {
|
|
4830
4985
|
const t = typeof data;
|
|
4831
4986
|
switch (t) {
|
|
4832
4987
|
case "number": {
|
|
@@ -4878,7 +5033,7 @@ const error$22 = () => {
|
|
|
4878
5033
|
};
|
|
4879
5034
|
return (issue$1) => {
|
|
4880
5035
|
switch (issue$1.code) {
|
|
4881
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5036
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
4882
5037
|
case "invalid_value":
|
|
4883
5038
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4884
5039
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4914,12 +5069,12 @@ const error$22 = () => {
|
|
|
4914
5069
|
};
|
|
4915
5070
|
};
|
|
4916
5071
|
function id_default() {
|
|
4917
|
-
return { localeError: error$
|
|
5072
|
+
return { localeError: error$23() };
|
|
4918
5073
|
}
|
|
4919
5074
|
|
|
4920
5075
|
//#endregion
|
|
4921
|
-
//#region ../../node_modules/zod/
|
|
4922
|
-
const error$
|
|
5076
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5077
|
+
const error$22 = () => {
|
|
4923
5078
|
const Sizable = {
|
|
4924
5079
|
string: {
|
|
4925
5080
|
unit: "caratteri",
|
|
@@ -4941,7 +5096,7 @@ const error$21 = () => {
|
|
|
4941
5096
|
function getSizing(origin) {
|
|
4942
5097
|
return Sizable[origin] ?? null;
|
|
4943
5098
|
}
|
|
4944
|
-
const parsedType$
|
|
5099
|
+
const parsedType$3 = (data) => {
|
|
4945
5100
|
const t = typeof data;
|
|
4946
5101
|
switch (t) {
|
|
4947
5102
|
case "number": {
|
|
@@ -4993,7 +5148,7 @@ const error$21 = () => {
|
|
|
4993
5148
|
};
|
|
4994
5149
|
return (issue$1) => {
|
|
4995
5150
|
switch (issue$1.code) {
|
|
4996
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5151
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
4997
5152
|
case "invalid_value":
|
|
4998
5153
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4999
5154
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5029,12 +5184,12 @@ const error$21 = () => {
|
|
|
5029
5184
|
};
|
|
5030
5185
|
};
|
|
5031
5186
|
function it_default() {
|
|
5032
|
-
return { localeError: error$
|
|
5187
|
+
return { localeError: error$22() };
|
|
5033
5188
|
}
|
|
5034
5189
|
|
|
5035
5190
|
//#endregion
|
|
5036
|
-
//#region ../../node_modules/zod/
|
|
5037
|
-
const error$
|
|
5191
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5192
|
+
const error$21 = () => {
|
|
5038
5193
|
const Sizable = {
|
|
5039
5194
|
string: {
|
|
5040
5195
|
unit: "文字",
|
|
@@ -5056,7 +5211,7 @@ const error$20 = () => {
|
|
|
5056
5211
|
function getSizing(origin) {
|
|
5057
5212
|
return Sizable[origin] ?? null;
|
|
5058
5213
|
}
|
|
5059
|
-
const parsedType$
|
|
5214
|
+
const parsedType$3 = (data) => {
|
|
5060
5215
|
const t = typeof data;
|
|
5061
5216
|
switch (t) {
|
|
5062
5217
|
case "number": {
|
|
@@ -5108,21 +5263,21 @@ const error$20 = () => {
|
|
|
5108
5263
|
};
|
|
5109
5264
|
return (issue$1) => {
|
|
5110
5265
|
switch (issue$1.code) {
|
|
5111
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5266
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5112
5267
|
case "invalid_value":
|
|
5113
5268
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5114
5269
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5115
5270
|
case "too_big": {
|
|
5116
|
-
const adj = issue$1.inclusive ? "
|
|
5271
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5117
5272
|
const sizing = getSizing(issue$1.origin);
|
|
5118
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5119
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5273
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5274
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5120
5275
|
}
|
|
5121
5276
|
case "too_small": {
|
|
5122
|
-
const adj = issue$1.inclusive ? "
|
|
5277
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5123
5278
|
const sizing = getSizing(issue$1.origin);
|
|
5124
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5125
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5279
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5280
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5126
5281
|
}
|
|
5127
5282
|
case "invalid_format": {
|
|
5128
5283
|
const _issue = issue$1;
|
|
@@ -5142,12 +5297,12 @@ const error$20 = () => {
|
|
|
5142
5297
|
};
|
|
5143
5298
|
};
|
|
5144
5299
|
function ja_default() {
|
|
5145
|
-
return { localeError: error$
|
|
5300
|
+
return { localeError: error$21() };
|
|
5146
5301
|
}
|
|
5147
5302
|
|
|
5148
5303
|
//#endregion
|
|
5149
|
-
//#region ../../node_modules/zod/
|
|
5150
|
-
const error$
|
|
5304
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5305
|
+
const error$20 = () => {
|
|
5151
5306
|
const Sizable = {
|
|
5152
5307
|
string: {
|
|
5153
5308
|
unit: "តួអក្សរ",
|
|
@@ -5169,7 +5324,7 @@ const error$19 = () => {
|
|
|
5169
5324
|
function getSizing(origin) {
|
|
5170
5325
|
return Sizable[origin] ?? null;
|
|
5171
5326
|
}
|
|
5172
|
-
const parsedType$
|
|
5327
|
+
const parsedType$3 = (data) => {
|
|
5173
5328
|
const t = typeof data;
|
|
5174
5329
|
switch (t) {
|
|
5175
5330
|
case "number": {
|
|
@@ -5221,7 +5376,7 @@ const error$19 = () => {
|
|
|
5221
5376
|
};
|
|
5222
5377
|
return (issue$1) => {
|
|
5223
5378
|
switch (issue$1.code) {
|
|
5224
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5379
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5225
5380
|
case "invalid_value":
|
|
5226
5381
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5227
5382
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5259,12 +5414,12 @@ const error$19 = () => {
|
|
|
5259
5414
|
};
|
|
5260
5415
|
};
|
|
5261
5416
|
function kh_default() {
|
|
5262
|
-
return { localeError: error$
|
|
5417
|
+
return { localeError: error$20() };
|
|
5263
5418
|
}
|
|
5264
5419
|
|
|
5265
5420
|
//#endregion
|
|
5266
|
-
//#region ../../node_modules/zod/
|
|
5267
|
-
const error$
|
|
5421
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5422
|
+
const error$19 = () => {
|
|
5268
5423
|
const Sizable = {
|
|
5269
5424
|
string: {
|
|
5270
5425
|
unit: "문자",
|
|
@@ -5286,7 +5441,7 @@ const error$18 = () => {
|
|
|
5286
5441
|
function getSizing(origin) {
|
|
5287
5442
|
return Sizable[origin] ?? null;
|
|
5288
5443
|
}
|
|
5289
|
-
const parsedType$
|
|
5444
|
+
const parsedType$3 = (data) => {
|
|
5290
5445
|
const t = typeof data;
|
|
5291
5446
|
switch (t) {
|
|
5292
5447
|
case "number": {
|
|
@@ -5338,7 +5493,7 @@ const error$18 = () => {
|
|
|
5338
5493
|
};
|
|
5339
5494
|
return (issue$1) => {
|
|
5340
5495
|
switch (issue$1.code) {
|
|
5341
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5496
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5342
5497
|
case "invalid_value":
|
|
5343
5498
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5344
5499
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5380,12 +5535,12 @@ const error$18 = () => {
|
|
|
5380
5535
|
};
|
|
5381
5536
|
};
|
|
5382
5537
|
function ko_default() {
|
|
5383
|
-
return { localeError: error$
|
|
5538
|
+
return { localeError: error$19() };
|
|
5384
5539
|
}
|
|
5385
5540
|
|
|
5386
5541
|
//#endregion
|
|
5387
|
-
//#region ../../node_modules/zod/
|
|
5388
|
-
const error$
|
|
5542
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
5543
|
+
const error$18 = () => {
|
|
5389
5544
|
const Sizable = {
|
|
5390
5545
|
string: {
|
|
5391
5546
|
unit: "знаци",
|
|
@@ -5407,7 +5562,7 @@ const error$17 = () => {
|
|
|
5407
5562
|
function getSizing(origin) {
|
|
5408
5563
|
return Sizable[origin] ?? null;
|
|
5409
5564
|
}
|
|
5410
|
-
const parsedType$
|
|
5565
|
+
const parsedType$3 = (data) => {
|
|
5411
5566
|
const t = typeof data;
|
|
5412
5567
|
switch (t) {
|
|
5413
5568
|
case "number": {
|
|
@@ -5459,7 +5614,7 @@ const error$17 = () => {
|
|
|
5459
5614
|
};
|
|
5460
5615
|
return (issue$1) => {
|
|
5461
5616
|
switch (issue$1.code) {
|
|
5462
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5617
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5463
5618
|
case "invalid_value":
|
|
5464
5619
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5465
5620
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5497,12 +5652,12 @@ const error$17 = () => {
|
|
|
5497
5652
|
};
|
|
5498
5653
|
};
|
|
5499
5654
|
function mk_default() {
|
|
5500
|
-
return { localeError: error$
|
|
5655
|
+
return { localeError: error$18() };
|
|
5501
5656
|
}
|
|
5502
5657
|
|
|
5503
5658
|
//#endregion
|
|
5504
|
-
//#region ../../node_modules/zod/
|
|
5505
|
-
const error$
|
|
5659
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
5660
|
+
const error$17 = () => {
|
|
5506
5661
|
const Sizable = {
|
|
5507
5662
|
string: {
|
|
5508
5663
|
unit: "aksara",
|
|
@@ -5524,7 +5679,7 @@ const error$16 = () => {
|
|
|
5524
5679
|
function getSizing(origin) {
|
|
5525
5680
|
return Sizable[origin] ?? null;
|
|
5526
5681
|
}
|
|
5527
|
-
const parsedType$
|
|
5682
|
+
const parsedType$3 = (data) => {
|
|
5528
5683
|
const t = typeof data;
|
|
5529
5684
|
switch (t) {
|
|
5530
5685
|
case "number": {
|
|
@@ -5576,7 +5731,7 @@ const error$16 = () => {
|
|
|
5576
5731
|
};
|
|
5577
5732
|
return (issue$1) => {
|
|
5578
5733
|
switch (issue$1.code) {
|
|
5579
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
5734
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5580
5735
|
case "invalid_value":
|
|
5581
5736
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5582
5737
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5612,12 +5767,12 @@ const error$16 = () => {
|
|
|
5612
5767
|
};
|
|
5613
5768
|
};
|
|
5614
5769
|
function ms_default() {
|
|
5615
|
-
return { localeError: error$
|
|
5770
|
+
return { localeError: error$17() };
|
|
5616
5771
|
}
|
|
5617
5772
|
|
|
5618
5773
|
//#endregion
|
|
5619
|
-
//#region ../../node_modules/zod/
|
|
5620
|
-
const error$
|
|
5774
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
5775
|
+
const error$16 = () => {
|
|
5621
5776
|
const Sizable = {
|
|
5622
5777
|
string: { unit: "tekens" },
|
|
5623
5778
|
file: { unit: "bytes" },
|
|
@@ -5627,7 +5782,7 @@ const error$15 = () => {
|
|
|
5627
5782
|
function getSizing(origin) {
|
|
5628
5783
|
return Sizable[origin] ?? null;
|
|
5629
5784
|
}
|
|
5630
|
-
const parsedType$
|
|
5785
|
+
const parsedType$3 = (data) => {
|
|
5631
5786
|
const t = typeof data;
|
|
5632
5787
|
switch (t) {
|
|
5633
5788
|
case "number": {
|
|
@@ -5679,7 +5834,7 @@ const error$15 = () => {
|
|
|
5679
5834
|
};
|
|
5680
5835
|
return (issue$1) => {
|
|
5681
5836
|
switch (issue$1.code) {
|
|
5682
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
5837
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
5683
5838
|
case "invalid_value":
|
|
5684
5839
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5685
5840
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5717,12 +5872,12 @@ const error$15 = () => {
|
|
|
5717
5872
|
};
|
|
5718
5873
|
};
|
|
5719
5874
|
function nl_default() {
|
|
5720
|
-
return { localeError: error$
|
|
5875
|
+
return { localeError: error$16() };
|
|
5721
5876
|
}
|
|
5722
5877
|
|
|
5723
5878
|
//#endregion
|
|
5724
|
-
//#region ../../node_modules/zod/
|
|
5725
|
-
const error$
|
|
5879
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
5880
|
+
const error$15 = () => {
|
|
5726
5881
|
const Sizable = {
|
|
5727
5882
|
string: {
|
|
5728
5883
|
unit: "tegn",
|
|
@@ -5744,7 +5899,7 @@ const error$14 = () => {
|
|
|
5744
5899
|
function getSizing(origin) {
|
|
5745
5900
|
return Sizable[origin] ?? null;
|
|
5746
5901
|
}
|
|
5747
|
-
const parsedType$
|
|
5902
|
+
const parsedType$3 = (data) => {
|
|
5748
5903
|
const t = typeof data;
|
|
5749
5904
|
switch (t) {
|
|
5750
5905
|
case "number": {
|
|
@@ -5796,7 +5951,7 @@ const error$14 = () => {
|
|
|
5796
5951
|
};
|
|
5797
5952
|
return (issue$1) => {
|
|
5798
5953
|
switch (issue$1.code) {
|
|
5799
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
5954
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
5800
5955
|
case "invalid_value":
|
|
5801
5956
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5802
5957
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5832,12 +5987,12 @@ const error$14 = () => {
|
|
|
5832
5987
|
};
|
|
5833
5988
|
};
|
|
5834
5989
|
function no_default() {
|
|
5835
|
-
return { localeError: error$
|
|
5990
|
+
return { localeError: error$15() };
|
|
5836
5991
|
}
|
|
5837
5992
|
|
|
5838
5993
|
//#endregion
|
|
5839
|
-
//#region ../../node_modules/zod/
|
|
5840
|
-
const error$
|
|
5994
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
5995
|
+
const error$14 = () => {
|
|
5841
5996
|
const Sizable = {
|
|
5842
5997
|
string: {
|
|
5843
5998
|
unit: "harf",
|
|
@@ -5859,7 +6014,7 @@ const error$13 = () => {
|
|
|
5859
6014
|
function getSizing(origin) {
|
|
5860
6015
|
return Sizable[origin] ?? null;
|
|
5861
6016
|
}
|
|
5862
|
-
const parsedType$
|
|
6017
|
+
const parsedType$3 = (data) => {
|
|
5863
6018
|
const t = typeof data;
|
|
5864
6019
|
switch (t) {
|
|
5865
6020
|
case "number": {
|
|
@@ -5911,7 +6066,7 @@ const error$13 = () => {
|
|
|
5911
6066
|
};
|
|
5912
6067
|
return (issue$1) => {
|
|
5913
6068
|
switch (issue$1.code) {
|
|
5914
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6069
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
5915
6070
|
case "invalid_value":
|
|
5916
6071
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5917
6072
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5947,11 +6102,138 @@ const error$13 = () => {
|
|
|
5947
6102
|
};
|
|
5948
6103
|
};
|
|
5949
6104
|
function ota_default() {
|
|
6105
|
+
return { localeError: error$14() };
|
|
6106
|
+
}
|
|
6107
|
+
|
|
6108
|
+
//#endregion
|
|
6109
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6110
|
+
const error$13 = () => {
|
|
6111
|
+
const Sizable = {
|
|
6112
|
+
string: {
|
|
6113
|
+
unit: "توکي",
|
|
6114
|
+
verb: "ولري"
|
|
6115
|
+
},
|
|
6116
|
+
file: {
|
|
6117
|
+
unit: "بایټس",
|
|
6118
|
+
verb: "ولري"
|
|
6119
|
+
},
|
|
6120
|
+
array: {
|
|
6121
|
+
unit: "توکي",
|
|
6122
|
+
verb: "ولري"
|
|
6123
|
+
},
|
|
6124
|
+
set: {
|
|
6125
|
+
unit: "توکي",
|
|
6126
|
+
verb: "ولري"
|
|
6127
|
+
}
|
|
6128
|
+
};
|
|
6129
|
+
function getSizing(origin) {
|
|
6130
|
+
return Sizable[origin] ?? null;
|
|
6131
|
+
}
|
|
6132
|
+
const parsedType$3 = (data) => {
|
|
6133
|
+
const t = typeof data;
|
|
6134
|
+
switch (t) {
|
|
6135
|
+
case "number": {
|
|
6136
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6137
|
+
}
|
|
6138
|
+
case "object": {
|
|
6139
|
+
if (Array.isArray(data)) {
|
|
6140
|
+
return "ارې";
|
|
6141
|
+
}
|
|
6142
|
+
if (data === null) {
|
|
6143
|
+
return "null";
|
|
6144
|
+
}
|
|
6145
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6146
|
+
return data.constructor.name;
|
|
6147
|
+
}
|
|
6148
|
+
}
|
|
6149
|
+
}
|
|
6150
|
+
return t;
|
|
6151
|
+
};
|
|
6152
|
+
const Nouns = {
|
|
6153
|
+
regex: "ورودي",
|
|
6154
|
+
email: "بریښنالیک",
|
|
6155
|
+
url: "یو آر ال",
|
|
6156
|
+
emoji: "ایموجي",
|
|
6157
|
+
uuid: "UUID",
|
|
6158
|
+
uuidv4: "UUIDv4",
|
|
6159
|
+
uuidv6: "UUIDv6",
|
|
6160
|
+
nanoid: "nanoid",
|
|
6161
|
+
guid: "GUID",
|
|
6162
|
+
cuid: "cuid",
|
|
6163
|
+
cuid2: "cuid2",
|
|
6164
|
+
ulid: "ULID",
|
|
6165
|
+
xid: "XID",
|
|
6166
|
+
ksuid: "KSUID",
|
|
6167
|
+
datetime: "نیټه او وخت",
|
|
6168
|
+
date: "نېټه",
|
|
6169
|
+
time: "وخت",
|
|
6170
|
+
duration: "موده",
|
|
6171
|
+
ipv4: "د IPv4 پته",
|
|
6172
|
+
ipv6: "د IPv6 پته",
|
|
6173
|
+
cidrv4: "د IPv4 ساحه",
|
|
6174
|
+
cidrv6: "د IPv6 ساحه",
|
|
6175
|
+
base64: "base64-encoded متن",
|
|
6176
|
+
base64url: "base64url-encoded متن",
|
|
6177
|
+
json_string: "JSON متن",
|
|
6178
|
+
e164: "د E.164 شمېره",
|
|
6179
|
+
jwt: "JWT",
|
|
6180
|
+
template_literal: "ورودي"
|
|
6181
|
+
};
|
|
6182
|
+
return (issue$1) => {
|
|
6183
|
+
switch (issue$1.code) {
|
|
6184
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6185
|
+
case "invalid_value":
|
|
6186
|
+
if (issue$1.values.length === 1) {
|
|
6187
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6188
|
+
}
|
|
6189
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6190
|
+
case "too_big": {
|
|
6191
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6192
|
+
const sizing = getSizing(issue$1.origin);
|
|
6193
|
+
if (sizing) {
|
|
6194
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6195
|
+
}
|
|
6196
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6197
|
+
}
|
|
6198
|
+
case "too_small": {
|
|
6199
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6200
|
+
const sizing = getSizing(issue$1.origin);
|
|
6201
|
+
if (sizing) {
|
|
6202
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6203
|
+
}
|
|
6204
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6205
|
+
}
|
|
6206
|
+
case "invalid_format": {
|
|
6207
|
+
const _issue = issue$1;
|
|
6208
|
+
if (_issue.format === "starts_with") {
|
|
6209
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6210
|
+
}
|
|
6211
|
+
if (_issue.format === "ends_with") {
|
|
6212
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6213
|
+
}
|
|
6214
|
+
if (_issue.format === "includes") {
|
|
6215
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6216
|
+
}
|
|
6217
|
+
if (_issue.format === "regex") {
|
|
6218
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6219
|
+
}
|
|
6220
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6221
|
+
}
|
|
6222
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6223
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6224
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6225
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6226
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6227
|
+
default: return `ناسمه ورودي`;
|
|
6228
|
+
}
|
|
6229
|
+
};
|
|
6230
|
+
};
|
|
6231
|
+
function ps_default() {
|
|
5950
6232
|
return { localeError: error$13() };
|
|
5951
6233
|
}
|
|
5952
6234
|
|
|
5953
6235
|
//#endregion
|
|
5954
|
-
//#region ../../node_modules/zod/
|
|
6236
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
5955
6237
|
const error$12 = () => {
|
|
5956
6238
|
const Sizable = {
|
|
5957
6239
|
string: {
|
|
@@ -5974,7 +6256,7 @@ const error$12 = () => {
|
|
|
5974
6256
|
function getSizing(origin) {
|
|
5975
6257
|
return Sizable[origin] ?? null;
|
|
5976
6258
|
}
|
|
5977
|
-
const parsedType$
|
|
6259
|
+
const parsedType$3 = (data) => {
|
|
5978
6260
|
const t = typeof data;
|
|
5979
6261
|
switch (t) {
|
|
5980
6262
|
case "number": {
|
|
@@ -6026,7 +6308,7 @@ const error$12 = () => {
|
|
|
6026
6308
|
};
|
|
6027
6309
|
return (issue$1) => {
|
|
6028
6310
|
switch (issue$1.code) {
|
|
6029
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$
|
|
6311
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6030
6312
|
case "invalid_value":
|
|
6031
6313
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6032
6314
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6068,7 +6350,7 @@ function pl_default() {
|
|
|
6068
6350
|
}
|
|
6069
6351
|
|
|
6070
6352
|
//#endregion
|
|
6071
|
-
//#region ../../node_modules/zod/
|
|
6353
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6072
6354
|
const error$11 = () => {
|
|
6073
6355
|
const Sizable = {
|
|
6074
6356
|
string: {
|
|
@@ -6091,7 +6373,7 @@ const error$11 = () => {
|
|
|
6091
6373
|
function getSizing(origin) {
|
|
6092
6374
|
return Sizable[origin] ?? null;
|
|
6093
6375
|
}
|
|
6094
|
-
const parsedType$
|
|
6376
|
+
const parsedType$3 = (data) => {
|
|
6095
6377
|
const t = typeof data;
|
|
6096
6378
|
switch (t) {
|
|
6097
6379
|
case "number": {
|
|
@@ -6143,7 +6425,7 @@ const error$11 = () => {
|
|
|
6143
6425
|
};
|
|
6144
6426
|
return (issue$1) => {
|
|
6145
6427
|
switch (issue$1.code) {
|
|
6146
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6428
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6147
6429
|
case "invalid_value":
|
|
6148
6430
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6149
6431
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6183,7 +6465,7 @@ function pt_default() {
|
|
|
6183
6465
|
}
|
|
6184
6466
|
|
|
6185
6467
|
//#endregion
|
|
6186
|
-
//#region ../../node_modules/zod/
|
|
6468
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6187
6469
|
function getRussianPlural(count, one, few, many) {
|
|
6188
6470
|
const absCount = Math.abs(count);
|
|
6189
6471
|
const lastDigit = absCount % 10;
|
|
@@ -6237,7 +6519,7 @@ const error$10 = () => {
|
|
|
6237
6519
|
function getSizing(origin) {
|
|
6238
6520
|
return Sizable[origin] ?? null;
|
|
6239
6521
|
}
|
|
6240
|
-
const parsedType$
|
|
6522
|
+
const parsedType$3 = (data) => {
|
|
6241
6523
|
const t = typeof data;
|
|
6242
6524
|
switch (t) {
|
|
6243
6525
|
case "number": {
|
|
@@ -6289,7 +6571,7 @@ const error$10 = () => {
|
|
|
6289
6571
|
};
|
|
6290
6572
|
return (issue$1) => {
|
|
6291
6573
|
switch (issue$1.code) {
|
|
6292
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6574
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6293
6575
|
case "invalid_value":
|
|
6294
6576
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6295
6577
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6335,7 +6617,7 @@ function ru_default() {
|
|
|
6335
6617
|
}
|
|
6336
6618
|
|
|
6337
6619
|
//#endregion
|
|
6338
|
-
//#region ../../node_modules/zod/
|
|
6620
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6339
6621
|
const error$9 = () => {
|
|
6340
6622
|
const Sizable = {
|
|
6341
6623
|
string: {
|
|
@@ -6358,7 +6640,7 @@ const error$9 = () => {
|
|
|
6358
6640
|
function getSizing(origin) {
|
|
6359
6641
|
return Sizable[origin] ?? null;
|
|
6360
6642
|
}
|
|
6361
|
-
const parsedType$
|
|
6643
|
+
const parsedType$3 = (data) => {
|
|
6362
6644
|
const t = typeof data;
|
|
6363
6645
|
switch (t) {
|
|
6364
6646
|
case "number": {
|
|
@@ -6410,7 +6692,7 @@ const error$9 = () => {
|
|
|
6410
6692
|
};
|
|
6411
6693
|
return (issue$1) => {
|
|
6412
6694
|
switch (issue$1.code) {
|
|
6413
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6695
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6414
6696
|
case "invalid_value":
|
|
6415
6697
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6416
6698
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6452,7 +6734,7 @@ function sl_default() {
|
|
|
6452
6734
|
}
|
|
6453
6735
|
|
|
6454
6736
|
//#endregion
|
|
6455
|
-
//#region ../../node_modules/zod/
|
|
6737
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6456
6738
|
const error$8 = () => {
|
|
6457
6739
|
const Sizable = {
|
|
6458
6740
|
string: {
|
|
@@ -6475,7 +6757,7 @@ const error$8 = () => {
|
|
|
6475
6757
|
function getSizing(origin) {
|
|
6476
6758
|
return Sizable[origin] ?? null;
|
|
6477
6759
|
}
|
|
6478
|
-
const parsedType$
|
|
6760
|
+
const parsedType$3 = (data) => {
|
|
6479
6761
|
const t = typeof data;
|
|
6480
6762
|
switch (t) {
|
|
6481
6763
|
case "number": {
|
|
@@ -6527,7 +6809,7 @@ const error$8 = () => {
|
|
|
6527
6809
|
};
|
|
6528
6810
|
return (issue$1) => {
|
|
6529
6811
|
switch (issue$1.code) {
|
|
6530
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6812
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6531
6813
|
case "invalid_value":
|
|
6532
6814
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6533
6815
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6571,7 +6853,7 @@ function sv_default() {
|
|
|
6571
6853
|
}
|
|
6572
6854
|
|
|
6573
6855
|
//#endregion
|
|
6574
|
-
//#region ../../node_modules/zod/
|
|
6856
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
6575
6857
|
const error$7 = () => {
|
|
6576
6858
|
const Sizable = {
|
|
6577
6859
|
string: {
|
|
@@ -6594,7 +6876,7 @@ const error$7 = () => {
|
|
|
6594
6876
|
function getSizing(origin) {
|
|
6595
6877
|
return Sizable[origin] ?? null;
|
|
6596
6878
|
}
|
|
6597
|
-
const parsedType$
|
|
6879
|
+
const parsedType$3 = (data) => {
|
|
6598
6880
|
const t = typeof data;
|
|
6599
6881
|
switch (t) {
|
|
6600
6882
|
case "number": {
|
|
@@ -6646,7 +6928,7 @@ const error$7 = () => {
|
|
|
6646
6928
|
};
|
|
6647
6929
|
return (issue$1) => {
|
|
6648
6930
|
switch (issue$1.code) {
|
|
6649
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
6931
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
6650
6932
|
case "invalid_value":
|
|
6651
6933
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6652
6934
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -6688,7 +6970,7 @@ function ta_default() {
|
|
|
6688
6970
|
}
|
|
6689
6971
|
|
|
6690
6972
|
//#endregion
|
|
6691
|
-
//#region ../../node_modules/zod/
|
|
6973
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
6692
6974
|
const error$6 = () => {
|
|
6693
6975
|
const Sizable = {
|
|
6694
6976
|
string: {
|
|
@@ -6711,7 +6993,7 @@ const error$6 = () => {
|
|
|
6711
6993
|
function getSizing(origin) {
|
|
6712
6994
|
return Sizable[origin] ?? null;
|
|
6713
6995
|
}
|
|
6714
|
-
const parsedType$
|
|
6996
|
+
const parsedType$3 = (data) => {
|
|
6715
6997
|
const t = typeof data;
|
|
6716
6998
|
switch (t) {
|
|
6717
6999
|
case "number": {
|
|
@@ -6763,7 +7045,7 @@ const error$6 = () => {
|
|
|
6763
7045
|
};
|
|
6764
7046
|
return (issue$1) => {
|
|
6765
7047
|
switch (issue$1.code) {
|
|
6766
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7048
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
6767
7049
|
case "invalid_value":
|
|
6768
7050
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6769
7051
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6805,7 +7087,7 @@ function th_default() {
|
|
|
6805
7087
|
}
|
|
6806
7088
|
|
|
6807
7089
|
//#endregion
|
|
6808
|
-
//#region ../../node_modules/zod/
|
|
7090
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
6809
7091
|
const parsedType = (data) => {
|
|
6810
7092
|
const t = typeof data;
|
|
6811
7093
|
switch (t) {
|
|
@@ -6918,7 +7200,7 @@ function tr_default() {
|
|
|
6918
7200
|
}
|
|
6919
7201
|
|
|
6920
7202
|
//#endregion
|
|
6921
|
-
//#region ../../node_modules/zod/
|
|
7203
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
6922
7204
|
const error$4 = () => {
|
|
6923
7205
|
const Sizable = {
|
|
6924
7206
|
string: {
|
|
@@ -6941,7 +7223,7 @@ const error$4 = () => {
|
|
|
6941
7223
|
function getSizing(origin) {
|
|
6942
7224
|
return Sizable[origin] ?? null;
|
|
6943
7225
|
}
|
|
6944
|
-
const parsedType$
|
|
7226
|
+
const parsedType$3 = (data) => {
|
|
6945
7227
|
const t = typeof data;
|
|
6946
7228
|
switch (t) {
|
|
6947
7229
|
case "number": {
|
|
@@ -6993,7 +7275,7 @@ const error$4 = () => {
|
|
|
6993
7275
|
};
|
|
6994
7276
|
return (issue$1) => {
|
|
6995
7277
|
switch (issue$1.code) {
|
|
6996
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7278
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
6997
7279
|
case "invalid_value":
|
|
6998
7280
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6999
7281
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7033,7 +7315,7 @@ function ua_default() {
|
|
|
7033
7315
|
}
|
|
7034
7316
|
|
|
7035
7317
|
//#endregion
|
|
7036
|
-
//#region ../../node_modules/zod/
|
|
7318
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7037
7319
|
const error$3 = () => {
|
|
7038
7320
|
const Sizable = {
|
|
7039
7321
|
string: {
|
|
@@ -7056,7 +7338,7 @@ const error$3 = () => {
|
|
|
7056
7338
|
function getSizing(origin) {
|
|
7057
7339
|
return Sizable[origin] ?? null;
|
|
7058
7340
|
}
|
|
7059
|
-
const parsedType$
|
|
7341
|
+
const parsedType$3 = (data) => {
|
|
7060
7342
|
const t = typeof data;
|
|
7061
7343
|
switch (t) {
|
|
7062
7344
|
case "number": {
|
|
@@ -7108,7 +7390,7 @@ const error$3 = () => {
|
|
|
7108
7390
|
};
|
|
7109
7391
|
return (issue$1) => {
|
|
7110
7392
|
switch (issue$1.code) {
|
|
7111
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7393
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7112
7394
|
case "invalid_value":
|
|
7113
7395
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7114
7396
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7150,7 +7432,7 @@ function ur_default() {
|
|
|
7150
7432
|
}
|
|
7151
7433
|
|
|
7152
7434
|
//#endregion
|
|
7153
|
-
//#region ../../node_modules/zod/
|
|
7435
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7154
7436
|
const error$2 = () => {
|
|
7155
7437
|
const Sizable = {
|
|
7156
7438
|
string: {
|
|
@@ -7173,7 +7455,7 @@ const error$2 = () => {
|
|
|
7173
7455
|
function getSizing(origin) {
|
|
7174
7456
|
return Sizable[origin] ?? null;
|
|
7175
7457
|
}
|
|
7176
|
-
const parsedType$
|
|
7458
|
+
const parsedType$3 = (data) => {
|
|
7177
7459
|
const t = typeof data;
|
|
7178
7460
|
switch (t) {
|
|
7179
7461
|
case "number": {
|
|
@@ -7225,7 +7507,7 @@ const error$2 = () => {
|
|
|
7225
7507
|
};
|
|
7226
7508
|
return (issue$1) => {
|
|
7227
7509
|
switch (issue$1.code) {
|
|
7228
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7510
|
+
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$3(issue$1.input)}`;
|
|
7229
7511
|
case "invalid_value":
|
|
7230
7512
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7231
7513
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7265,7 +7547,7 @@ function vi_default() {
|
|
|
7265
7547
|
}
|
|
7266
7548
|
|
|
7267
7549
|
//#endregion
|
|
7268
|
-
//#region ../../node_modules/zod/
|
|
7550
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7269
7551
|
const error$1 = () => {
|
|
7270
7552
|
const Sizable = {
|
|
7271
7553
|
string: {
|
|
@@ -7288,7 +7570,7 @@ const error$1 = () => {
|
|
|
7288
7570
|
function getSizing(origin) {
|
|
7289
7571
|
return Sizable[origin] ?? null;
|
|
7290
7572
|
}
|
|
7291
|
-
const parsedType$
|
|
7573
|
+
const parsedType$3 = (data) => {
|
|
7292
7574
|
const t = typeof data;
|
|
7293
7575
|
switch (t) {
|
|
7294
7576
|
case "number": {
|
|
@@ -7340,7 +7622,7 @@ const error$1 = () => {
|
|
|
7340
7622
|
};
|
|
7341
7623
|
return (issue$1) => {
|
|
7342
7624
|
switch (issue$1.code) {
|
|
7343
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7625
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7344
7626
|
case "invalid_value":
|
|
7345
7627
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7346
7628
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7380,7 +7662,7 @@ function zh_CN_default() {
|
|
|
7380
7662
|
}
|
|
7381
7663
|
|
|
7382
7664
|
//#endregion
|
|
7383
|
-
//#region ../../node_modules/zod/
|
|
7665
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7384
7666
|
const error = () => {
|
|
7385
7667
|
const Sizable = {
|
|
7386
7668
|
string: {
|
|
@@ -7403,7 +7685,7 @@ const error = () => {
|
|
|
7403
7685
|
function getSizing(origin) {
|
|
7404
7686
|
return Sizable[origin] ?? null;
|
|
7405
7687
|
}
|
|
7406
|
-
const parsedType$
|
|
7688
|
+
const parsedType$3 = (data) => {
|
|
7407
7689
|
const t = typeof data;
|
|
7408
7690
|
switch (t) {
|
|
7409
7691
|
case "number": {
|
|
@@ -7455,7 +7737,7 @@ const error = () => {
|
|
|
7455
7737
|
};
|
|
7456
7738
|
return (issue$1) => {
|
|
7457
7739
|
switch (issue$1.code) {
|
|
7458
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7740
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7459
7741
|
case "invalid_value":
|
|
7460
7742
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7461
7743
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7497,7 +7779,7 @@ function zh_TW_default() {
|
|
|
7497
7779
|
}
|
|
7498
7780
|
|
|
7499
7781
|
//#endregion
|
|
7500
|
-
//#region ../../node_modules/zod/
|
|
7782
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7501
7783
|
var locales_exports = {};
|
|
7502
7784
|
__export(locales_exports, {
|
|
7503
7785
|
ar: () => ar_default,
|
|
@@ -7507,6 +7789,7 @@ __export(locales_exports, {
|
|
|
7507
7789
|
cs: () => cs_default,
|
|
7508
7790
|
de: () => de_default,
|
|
7509
7791
|
en: () => en_default,
|
|
7792
|
+
eo: () => eo_default,
|
|
7510
7793
|
es: () => es_default,
|
|
7511
7794
|
fa: () => fa_default,
|
|
7512
7795
|
fi: () => fi_default,
|
|
@@ -7525,6 +7808,7 @@ __export(locales_exports, {
|
|
|
7525
7808
|
no: () => no_default,
|
|
7526
7809
|
ota: () => ota_default,
|
|
7527
7810
|
pl: () => pl_default,
|
|
7811
|
+
ps: () => ps_default,
|
|
7528
7812
|
pt: () => pt_default,
|
|
7529
7813
|
ru: () => ru_default,
|
|
7530
7814
|
sl: () => sl_default,
|
|
@@ -7540,12 +7824,12 @@ __export(locales_exports, {
|
|
|
7540
7824
|
});
|
|
7541
7825
|
|
|
7542
7826
|
//#endregion
|
|
7543
|
-
//#region ../../node_modules/zod/
|
|
7827
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
7544
7828
|
const $output = Symbol("ZodOutput");
|
|
7545
7829
|
const $input = Symbol("ZodInput");
|
|
7546
7830
|
var $ZodRegistry = class {
|
|
7547
7831
|
constructor() {
|
|
7548
|
-
this._map = new
|
|
7832
|
+
this._map = new Map();
|
|
7549
7833
|
this._idmap = new Map();
|
|
7550
7834
|
}
|
|
7551
7835
|
add(schema, ..._meta) {
|
|
@@ -7559,7 +7843,16 @@ var $ZodRegistry = class {
|
|
|
7559
7843
|
}
|
|
7560
7844
|
return this;
|
|
7561
7845
|
}
|
|
7846
|
+
clear() {
|
|
7847
|
+
this._map = new Map();
|
|
7848
|
+
this._idmap = new Map();
|
|
7849
|
+
return this;
|
|
7850
|
+
}
|
|
7562
7851
|
remove(schema) {
|
|
7852
|
+
const meta = this._map.get(schema);
|
|
7853
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
7854
|
+
this._idmap.delete(meta.id);
|
|
7855
|
+
}
|
|
7563
7856
|
this._map.delete(schema);
|
|
7564
7857
|
return this;
|
|
7565
7858
|
}
|
|
@@ -7585,7 +7878,7 @@ function registry() {
|
|
|
7585
7878
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
7586
7879
|
|
|
7587
7880
|
//#endregion
|
|
7588
|
-
//#region ../../node_modules/zod/
|
|
7881
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
7589
7882
|
function _string(Class$1, params) {
|
|
7590
7883
|
return new Class$1({
|
|
7591
7884
|
type: "string",
|
|
@@ -7800,6 +8093,13 @@ function _jwt(Class$1, params) {
|
|
|
7800
8093
|
...normalizeParams(params)
|
|
7801
8094
|
});
|
|
7802
8095
|
}
|
|
8096
|
+
const TimePrecision = {
|
|
8097
|
+
Any: null,
|
|
8098
|
+
Minute: -1,
|
|
8099
|
+
Second: 0,
|
|
8100
|
+
Millisecond: 3,
|
|
8101
|
+
Microsecond: 6
|
|
8102
|
+
};
|
|
7803
8103
|
function _isoDateTime(Class$1, params) {
|
|
7804
8104
|
return new Class$1({
|
|
7805
8105
|
type: "string",
|
|
@@ -8366,8 +8666,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8366
8666
|
return schema;
|
|
8367
8667
|
}
|
|
8368
8668
|
function _stringbool(Classes, _params) {
|
|
8369
|
-
const
|
|
8370
|
-
let truthyArray = truthy ?? [
|
|
8669
|
+
const params = normalizeParams(_params);
|
|
8670
|
+
let truthyArray = params.truthy ?? [
|
|
8371
8671
|
"true",
|
|
8372
8672
|
"1",
|
|
8373
8673
|
"yes",
|
|
@@ -8375,7 +8675,7 @@ function _stringbool(Classes, _params) {
|
|
|
8375
8675
|
"y",
|
|
8376
8676
|
"enabled"
|
|
8377
8677
|
];
|
|
8378
|
-
let falsyArray = falsy ?? [
|
|
8678
|
+
let falsyArray = params.falsy ?? [
|
|
8379
8679
|
"false",
|
|
8380
8680
|
"0",
|
|
8381
8681
|
"no",
|
|
@@ -8383,7 +8683,7 @@ function _stringbool(Classes, _params) {
|
|
|
8383
8683
|
"n",
|
|
8384
8684
|
"disabled"
|
|
8385
8685
|
];
|
|
8386
|
-
if (
|
|
8686
|
+
if (params.case !== "sensitive") {
|
|
8387
8687
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8388
8688
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8389
8689
|
}
|
|
@@ -8397,7 +8697,7 @@ function _stringbool(Classes, _params) {
|
|
|
8397
8697
|
type: "transform",
|
|
8398
8698
|
transform: (input, payload) => {
|
|
8399
8699
|
let data = input;
|
|
8400
|
-
if (
|
|
8700
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8401
8701
|
if (truthySet.has(data)) {
|
|
8402
8702
|
return true;
|
|
8403
8703
|
} else if (falsySet.has(data)) {
|
|
@@ -8413,31 +8713,47 @@ function _stringbool(Classes, _params) {
|
|
|
8413
8713
|
return {};
|
|
8414
8714
|
}
|
|
8415
8715
|
},
|
|
8416
|
-
error: error
|
|
8716
|
+
error: params.error
|
|
8417
8717
|
});
|
|
8418
8718
|
const innerPipe = new _Pipe({
|
|
8419
8719
|
type: "pipe",
|
|
8420
8720
|
in: new _String({
|
|
8421
8721
|
type: "string",
|
|
8422
|
-
error: error
|
|
8722
|
+
error: params.error
|
|
8423
8723
|
}),
|
|
8424
8724
|
out: tx,
|
|
8425
|
-
error: error
|
|
8725
|
+
error: params.error
|
|
8426
8726
|
});
|
|
8427
8727
|
const outerPipe = new _Pipe({
|
|
8428
8728
|
type: "pipe",
|
|
8429
8729
|
in: innerPipe,
|
|
8430
8730
|
out: new _Boolean({
|
|
8431
8731
|
type: "boolean",
|
|
8432
|
-
error: error
|
|
8732
|
+
error: params.error
|
|
8433
8733
|
}),
|
|
8434
|
-
error: error
|
|
8734
|
+
error: params.error
|
|
8435
8735
|
});
|
|
8436
8736
|
return outerPipe;
|
|
8437
8737
|
}
|
|
8738
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
8739
|
+
const params = normalizeParams(_params);
|
|
8740
|
+
const def = {
|
|
8741
|
+
...normalizeParams(_params),
|
|
8742
|
+
check: "string_format",
|
|
8743
|
+
type: "string",
|
|
8744
|
+
format,
|
|
8745
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
8746
|
+
...params
|
|
8747
|
+
};
|
|
8748
|
+
if (fnOrRegex instanceof RegExp) {
|
|
8749
|
+
def.pattern = fnOrRegex;
|
|
8750
|
+
}
|
|
8751
|
+
const inst = new Class$1(def);
|
|
8752
|
+
return inst;
|
|
8753
|
+
}
|
|
8438
8754
|
|
|
8439
8755
|
//#endregion
|
|
8440
|
-
//#region ../../node_modules/zod/
|
|
8756
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8441
8757
|
var $ZodFunction = class {
|
|
8442
8758
|
constructor(def) {
|
|
8443
8759
|
this._def = def;
|
|
@@ -8508,7 +8824,7 @@ function _function(params) {
|
|
|
8508
8824
|
}
|
|
8509
8825
|
|
|
8510
8826
|
//#endregion
|
|
8511
|
-
//#region ../../node_modules/zod/
|
|
8827
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8512
8828
|
var JSONSchemaGenerator = class {
|
|
8513
8829
|
constructor(params) {
|
|
8514
8830
|
this.counter = 0;
|
|
@@ -8544,431 +8860,435 @@ var JSONSchemaGenerator = class {
|
|
|
8544
8860
|
const result = {
|
|
8545
8861
|
schema: {},
|
|
8546
8862
|
count: 1,
|
|
8547
|
-
cycle: undefined
|
|
8548
|
-
};
|
|
8549
|
-
this.seen.set(schema, result);
|
|
8550
|
-
if (schema._zod.toJSONSchema) {
|
|
8551
|
-
result.schema = schema._zod.toJSONSchema();
|
|
8552
|
-
}
|
|
8553
|
-
const params = {
|
|
8554
|
-
..._params,
|
|
8555
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
8863
|
+
cycle: undefined,
|
|
8556
8864
|
path: _params.path
|
|
8557
8865
|
};
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
this.seen.get(parent).isParent = true;
|
|
8866
|
+
this.seen.set(schema, result);
|
|
8867
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
8868
|
+
if (overrideSchema) {
|
|
8869
|
+
result.schema = overrideSchema;
|
|
8563
8870
|
} else {
|
|
8564
|
-
const
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8871
|
+
const params = {
|
|
8872
|
+
..._params,
|
|
8873
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
8874
|
+
path: _params.path
|
|
8875
|
+
};
|
|
8876
|
+
const parent = schema._zod.parent;
|
|
8877
|
+
if (parent) {
|
|
8878
|
+
result.ref = parent;
|
|
8879
|
+
this.process(parent, params);
|
|
8880
|
+
this.seen.get(parent).isParent = true;
|
|
8881
|
+
} else {
|
|
8882
|
+
const _json = result.schema;
|
|
8883
|
+
switch (def.type) {
|
|
8884
|
+
case "string": {
|
|
8885
|
+
const json$1 = _json;
|
|
8886
|
+
json$1.type = "string";
|
|
8887
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8888
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8889
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8890
|
+
if (format) {
|
|
8891
|
+
json$1.format = formatMap[format] ?? format;
|
|
8892
|
+
if (json$1.format === "") delete json$1.format;
|
|
8893
|
+
}
|
|
8894
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8895
|
+
if (patterns && patterns.size > 0) {
|
|
8896
|
+
const regexes = [...patterns];
|
|
8897
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8898
|
+
else if (regexes.length > 1) {
|
|
8899
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8900
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8901
|
+
pattern: regex.source
|
|
8902
|
+
}))];
|
|
8903
|
+
}
|
|
8904
|
+
}
|
|
8905
|
+
break;
|
|
8575
8906
|
}
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
const
|
|
8579
|
-
if (
|
|
8580
|
-
else
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8907
|
+
case "number": {
|
|
8908
|
+
const json$1 = _json;
|
|
8909
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
8910
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
8911
|
+
else json$1.type = "number";
|
|
8912
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
8913
|
+
if (typeof minimum === "number") {
|
|
8914
|
+
json$1.minimum = minimum;
|
|
8915
|
+
if (typeof exclusiveMinimum === "number") {
|
|
8916
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8917
|
+
else delete json$1.exclusiveMinimum;
|
|
8918
|
+
}
|
|
8585
8919
|
}
|
|
8920
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
8921
|
+
if (typeof maximum === "number") {
|
|
8922
|
+
json$1.maximum = maximum;
|
|
8923
|
+
if (typeof exclusiveMaximum === "number") {
|
|
8924
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8925
|
+
else delete json$1.exclusiveMaximum;
|
|
8926
|
+
}
|
|
8927
|
+
}
|
|
8928
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
8929
|
+
break;
|
|
8586
8930
|
}
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
if (typeof minimum === "number") {
|
|
8596
|
-
json$1.minimum = minimum;
|
|
8597
|
-
if (typeof exclusiveMinimum === "number") {
|
|
8598
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8599
|
-
else delete json$1.exclusiveMinimum;
|
|
8931
|
+
case "boolean": {
|
|
8932
|
+
const json$1 = _json;
|
|
8933
|
+
json$1.type = "boolean";
|
|
8934
|
+
break;
|
|
8935
|
+
}
|
|
8936
|
+
case "bigint": {
|
|
8937
|
+
if (this.unrepresentable === "throw") {
|
|
8938
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8600
8939
|
}
|
|
8940
|
+
break;
|
|
8601
8941
|
}
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
if (typeof exclusiveMaximum === "number") {
|
|
8606
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8607
|
-
else delete json$1.exclusiveMaximum;
|
|
8942
|
+
case "symbol": {
|
|
8943
|
+
if (this.unrepresentable === "throw") {
|
|
8944
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8608
8945
|
}
|
|
8946
|
+
break;
|
|
8609
8947
|
}
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
case "boolean": {
|
|
8614
|
-
const json$1 = _json;
|
|
8615
|
-
json$1.type = "boolean";
|
|
8616
|
-
break;
|
|
8617
|
-
}
|
|
8618
|
-
case "bigint": {
|
|
8619
|
-
if (this.unrepresentable === "throw") {
|
|
8620
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8948
|
+
case "null": {
|
|
8949
|
+
_json.type = "null";
|
|
8950
|
+
break;
|
|
8621
8951
|
}
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
case "symbol": {
|
|
8625
|
-
if (this.unrepresentable === "throw") {
|
|
8626
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8952
|
+
case "any": {
|
|
8953
|
+
break;
|
|
8627
8954
|
}
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
case "undefined": {
|
|
8631
|
-
const json$1 = _json;
|
|
8632
|
-
json$1.type = "null";
|
|
8633
|
-
break;
|
|
8634
|
-
}
|
|
8635
|
-
case "null": {
|
|
8636
|
-
_json.type = "null";
|
|
8637
|
-
break;
|
|
8638
|
-
}
|
|
8639
|
-
case "any": {
|
|
8640
|
-
break;
|
|
8641
|
-
}
|
|
8642
|
-
case "unknown": {
|
|
8643
|
-
break;
|
|
8644
|
-
}
|
|
8645
|
-
case "never": {
|
|
8646
|
-
_json.not = {};
|
|
8647
|
-
break;
|
|
8648
|
-
}
|
|
8649
|
-
case "void": {
|
|
8650
|
-
if (this.unrepresentable === "throw") {
|
|
8651
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
8955
|
+
case "unknown": {
|
|
8956
|
+
break;
|
|
8652
8957
|
}
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8958
|
+
case "undefined": {
|
|
8959
|
+
if (this.unrepresentable === "throw") {
|
|
8960
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
8961
|
+
}
|
|
8962
|
+
break;
|
|
8658
8963
|
}
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8665
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8666
|
-
json$1.type = "array";
|
|
8667
|
-
json$1.items = this.process(def.element, {
|
|
8668
|
-
...params,
|
|
8669
|
-
path: [...params.path, "items"]
|
|
8670
|
-
});
|
|
8671
|
-
break;
|
|
8672
|
-
}
|
|
8673
|
-
case "object": {
|
|
8674
|
-
const json$1 = _json;
|
|
8675
|
-
json$1.type = "object";
|
|
8676
|
-
json$1.properties = {};
|
|
8677
|
-
const shape = def.shape;
|
|
8678
|
-
for (const key in shape) {
|
|
8679
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
8680
|
-
...params,
|
|
8681
|
-
path: [
|
|
8682
|
-
...params.path,
|
|
8683
|
-
"properties",
|
|
8684
|
-
key
|
|
8685
|
-
]
|
|
8686
|
-
});
|
|
8964
|
+
case "void": {
|
|
8965
|
+
if (this.unrepresentable === "throw") {
|
|
8966
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
8967
|
+
}
|
|
8968
|
+
break;
|
|
8687
8969
|
}
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8970
|
+
case "never": {
|
|
8971
|
+
_json.not = {};
|
|
8972
|
+
break;
|
|
8973
|
+
}
|
|
8974
|
+
case "date": {
|
|
8975
|
+
if (this.unrepresentable === "throw") {
|
|
8976
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
8695
8977
|
}
|
|
8696
|
-
|
|
8697
|
-
if (requiredKeys.size > 0) {
|
|
8698
|
-
json$1.required = Array.from(requiredKeys);
|
|
8978
|
+
break;
|
|
8699
8979
|
}
|
|
8700
|
-
|
|
8701
|
-
json$1
|
|
8702
|
-
|
|
8703
|
-
if (
|
|
8704
|
-
|
|
8705
|
-
json$1.
|
|
8980
|
+
case "array": {
|
|
8981
|
+
const json$1 = _json;
|
|
8982
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
8983
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8984
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8985
|
+
json$1.type = "array";
|
|
8986
|
+
json$1.items = this.process(def.element, {
|
|
8706
8987
|
...params,
|
|
8707
|
-
path: [...params.path, "
|
|
8988
|
+
path: [...params.path, "items"]
|
|
8708
8989
|
});
|
|
8990
|
+
break;
|
|
8709
8991
|
}
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
const json$1 = _json;
|
|
8749
|
-
json$1.type = "array";
|
|
8750
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
8751
|
-
...params,
|
|
8752
|
-
path: [
|
|
8753
|
-
...params.path,
|
|
8754
|
-
"prefixItems",
|
|
8755
|
-
i
|
|
8756
|
-
]
|
|
8757
|
-
}));
|
|
8758
|
-
if (this.target === "draft-2020-12") {
|
|
8759
|
-
json$1.prefixItems = prefixItems;
|
|
8760
|
-
} else {
|
|
8761
|
-
json$1.items = prefixItems;
|
|
8992
|
+
case "object": {
|
|
8993
|
+
const json$1 = _json;
|
|
8994
|
+
json$1.type = "object";
|
|
8995
|
+
json$1.properties = {};
|
|
8996
|
+
const shape = def.shape;
|
|
8997
|
+
for (const key in shape) {
|
|
8998
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
8999
|
+
...params,
|
|
9000
|
+
path: [
|
|
9001
|
+
...params.path,
|
|
9002
|
+
"properties",
|
|
9003
|
+
key
|
|
9004
|
+
]
|
|
9005
|
+
});
|
|
9006
|
+
}
|
|
9007
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9008
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9009
|
+
const v = def.shape[key]._zod;
|
|
9010
|
+
if (this.io === "input") {
|
|
9011
|
+
return v.optin === undefined;
|
|
9012
|
+
} else {
|
|
9013
|
+
return v.optout === undefined;
|
|
9014
|
+
}
|
|
9015
|
+
}));
|
|
9016
|
+
if (requiredKeys.size > 0) {
|
|
9017
|
+
json$1.required = Array.from(requiredKeys);
|
|
9018
|
+
}
|
|
9019
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9020
|
+
json$1.additionalProperties = false;
|
|
9021
|
+
} else if (!def.catchall) {
|
|
9022
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9023
|
+
} else if (def.catchall) {
|
|
9024
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9025
|
+
...params,
|
|
9026
|
+
path: [...params.path, "additionalProperties"]
|
|
9027
|
+
});
|
|
9028
|
+
}
|
|
9029
|
+
break;
|
|
8762
9030
|
}
|
|
8763
|
-
|
|
8764
|
-
const
|
|
9031
|
+
case "union": {
|
|
9032
|
+
const json$1 = _json;
|
|
9033
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
8765
9034
|
...params,
|
|
8766
|
-
path: [
|
|
9035
|
+
path: [
|
|
9036
|
+
...params.path,
|
|
9037
|
+
"anyOf",
|
|
9038
|
+
i
|
|
9039
|
+
]
|
|
9040
|
+
}));
|
|
9041
|
+
break;
|
|
9042
|
+
}
|
|
9043
|
+
case "intersection": {
|
|
9044
|
+
const json$1 = _json;
|
|
9045
|
+
const a = this.process(def.left, {
|
|
9046
|
+
...params,
|
|
9047
|
+
path: [
|
|
9048
|
+
...params.path,
|
|
9049
|
+
"allOf",
|
|
9050
|
+
0
|
|
9051
|
+
]
|
|
9052
|
+
});
|
|
9053
|
+
const b = this.process(def.right, {
|
|
9054
|
+
...params,
|
|
9055
|
+
path: [
|
|
9056
|
+
...params.path,
|
|
9057
|
+
"allOf",
|
|
9058
|
+
1
|
|
9059
|
+
]
|
|
8767
9060
|
});
|
|
9061
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9062
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9063
|
+
json$1.allOf = allOf;
|
|
9064
|
+
break;
|
|
9065
|
+
}
|
|
9066
|
+
case "tuple": {
|
|
9067
|
+
const json$1 = _json;
|
|
9068
|
+
json$1.type = "array";
|
|
9069
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9070
|
+
...params,
|
|
9071
|
+
path: [
|
|
9072
|
+
...params.path,
|
|
9073
|
+
"prefixItems",
|
|
9074
|
+
i
|
|
9075
|
+
]
|
|
9076
|
+
}));
|
|
8768
9077
|
if (this.target === "draft-2020-12") {
|
|
8769
|
-
json$1.
|
|
9078
|
+
json$1.prefixItems = prefixItems;
|
|
8770
9079
|
} else {
|
|
8771
|
-
json$1.
|
|
9080
|
+
json$1.items = prefixItems;
|
|
9081
|
+
}
|
|
9082
|
+
if (def.rest) {
|
|
9083
|
+
const rest = this.process(def.rest, {
|
|
9084
|
+
...params,
|
|
9085
|
+
path: [...params.path, "items"]
|
|
9086
|
+
});
|
|
9087
|
+
if (this.target === "draft-2020-12") {
|
|
9088
|
+
json$1.items = rest;
|
|
9089
|
+
} else {
|
|
9090
|
+
json$1.additionalItems = rest;
|
|
9091
|
+
}
|
|
8772
9092
|
}
|
|
9093
|
+
if (def.rest) {
|
|
9094
|
+
json$1.items = this.process(def.rest, {
|
|
9095
|
+
...params,
|
|
9096
|
+
path: [...params.path, "items"]
|
|
9097
|
+
});
|
|
9098
|
+
}
|
|
9099
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9100
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9101
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9102
|
+
break;
|
|
8773
9103
|
}
|
|
8774
|
-
|
|
8775
|
-
json$1
|
|
9104
|
+
case "record": {
|
|
9105
|
+
const json$1 = _json;
|
|
9106
|
+
json$1.type = "object";
|
|
9107
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
8776
9108
|
...params,
|
|
8777
|
-
path: [...params.path, "
|
|
9109
|
+
path: [...params.path, "propertyNames"]
|
|
8778
9110
|
});
|
|
9111
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9112
|
+
...params,
|
|
9113
|
+
path: [...params.path, "additionalProperties"]
|
|
9114
|
+
});
|
|
9115
|
+
break;
|
|
8779
9116
|
}
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
case "record": {
|
|
8786
|
-
const json$1 = _json;
|
|
8787
|
-
json$1.type = "object";
|
|
8788
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
8789
|
-
...params,
|
|
8790
|
-
path: [...params.path, "propertyNames"]
|
|
8791
|
-
});
|
|
8792
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
8793
|
-
...params,
|
|
8794
|
-
path: [...params.path, "additionalProperties"]
|
|
8795
|
-
});
|
|
8796
|
-
break;
|
|
8797
|
-
}
|
|
8798
|
-
case "map": {
|
|
8799
|
-
if (this.unrepresentable === "throw") {
|
|
8800
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9117
|
+
case "map": {
|
|
9118
|
+
if (this.unrepresentable === "throw") {
|
|
9119
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9120
|
+
}
|
|
9121
|
+
break;
|
|
8801
9122
|
}
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
9123
|
+
case "set": {
|
|
9124
|
+
if (this.unrepresentable === "throw") {
|
|
9125
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9126
|
+
}
|
|
9127
|
+
break;
|
|
9128
|
+
}
|
|
9129
|
+
case "enum": {
|
|
9130
|
+
const json$1 = _json;
|
|
9131
|
+
const values = getEnumValues(def.entries);
|
|
9132
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9133
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9134
|
+
json$1.enum = values;
|
|
9135
|
+
break;
|
|
8807
9136
|
}
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
if (val === undefined) {
|
|
8823
|
-
if (this.unrepresentable === "throw") {
|
|
8824
|
-
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
8825
|
-
} else {}
|
|
8826
|
-
} else if (typeof val === "bigint") {
|
|
8827
|
-
if (this.unrepresentable === "throw") {
|
|
8828
|
-
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9137
|
+
case "literal": {
|
|
9138
|
+
const json$1 = _json;
|
|
9139
|
+
const vals = [];
|
|
9140
|
+
for (const val of def.values) {
|
|
9141
|
+
if (val === undefined) {
|
|
9142
|
+
if (this.unrepresentable === "throw") {
|
|
9143
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9144
|
+
} else {}
|
|
9145
|
+
} else if (typeof val === "bigint") {
|
|
9146
|
+
if (this.unrepresentable === "throw") {
|
|
9147
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9148
|
+
} else {
|
|
9149
|
+
vals.push(Number(val));
|
|
9150
|
+
}
|
|
8829
9151
|
} else {
|
|
8830
|
-
vals.push(
|
|
9152
|
+
vals.push(val);
|
|
8831
9153
|
}
|
|
9154
|
+
}
|
|
9155
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9156
|
+
const val = vals[0];
|
|
9157
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9158
|
+
json$1.const = val;
|
|
8832
9159
|
} else {
|
|
8833
|
-
vals.
|
|
9160
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9161
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9162
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9163
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9164
|
+
json$1.enum = vals;
|
|
8834
9165
|
}
|
|
9166
|
+
break;
|
|
8835
9167
|
}
|
|
8836
|
-
|
|
8837
|
-
const
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
if (
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
if (mime) {
|
|
8860
|
-
if (mime.length === 1) {
|
|
8861
|
-
file$1.contentMediaType = mime[0];
|
|
8862
|
-
Object.assign(json$1, file$1);
|
|
9168
|
+
case "file": {
|
|
9169
|
+
const json$1 = _json;
|
|
9170
|
+
const file$1 = {
|
|
9171
|
+
type: "string",
|
|
9172
|
+
format: "binary",
|
|
9173
|
+
contentEncoding: "binary"
|
|
9174
|
+
};
|
|
9175
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9176
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9177
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9178
|
+
if (mime) {
|
|
9179
|
+
if (mime.length === 1) {
|
|
9180
|
+
file$1.contentMediaType = mime[0];
|
|
9181
|
+
Object.assign(json$1, file$1);
|
|
9182
|
+
} else {
|
|
9183
|
+
json$1.anyOf = mime.map((m) => {
|
|
9184
|
+
const mFile = {
|
|
9185
|
+
...file$1,
|
|
9186
|
+
contentMediaType: m
|
|
9187
|
+
};
|
|
9188
|
+
return mFile;
|
|
9189
|
+
});
|
|
9190
|
+
}
|
|
8863
9191
|
} else {
|
|
8864
|
-
json$1
|
|
8865
|
-
const mFile = {
|
|
8866
|
-
...file$1,
|
|
8867
|
-
contentMediaType: m
|
|
8868
|
-
};
|
|
8869
|
-
return mFile;
|
|
8870
|
-
});
|
|
9192
|
+
Object.assign(json$1, file$1);
|
|
8871
9193
|
}
|
|
8872
|
-
|
|
8873
|
-
Object.assign(json$1, file$1);
|
|
9194
|
+
break;
|
|
8874
9195
|
}
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
9196
|
+
case "transform": {
|
|
9197
|
+
if (this.unrepresentable === "throw") {
|
|
9198
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9199
|
+
}
|
|
9200
|
+
break;
|
|
8880
9201
|
}
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
8886
|
-
break;
|
|
8887
|
-
}
|
|
8888
|
-
case "nonoptional": {
|
|
8889
|
-
this.process(def.innerType, params);
|
|
8890
|
-
result.ref = def.innerType;
|
|
8891
|
-
break;
|
|
8892
|
-
}
|
|
8893
|
-
case "success": {
|
|
8894
|
-
const json$1 = _json;
|
|
8895
|
-
json$1.type = "boolean";
|
|
8896
|
-
break;
|
|
8897
|
-
}
|
|
8898
|
-
case "default": {
|
|
8899
|
-
this.process(def.innerType, params);
|
|
8900
|
-
result.ref = def.innerType;
|
|
8901
|
-
_json.default = def.defaultValue;
|
|
8902
|
-
break;
|
|
8903
|
-
}
|
|
8904
|
-
case "prefault": {
|
|
8905
|
-
this.process(def.innerType, params);
|
|
8906
|
-
result.ref = def.innerType;
|
|
8907
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
8908
|
-
break;
|
|
8909
|
-
}
|
|
8910
|
-
case "catch": {
|
|
8911
|
-
this.process(def.innerType, params);
|
|
8912
|
-
result.ref = def.innerType;
|
|
8913
|
-
let catchValue;
|
|
8914
|
-
try {
|
|
8915
|
-
catchValue = def.catchValue(undefined);
|
|
8916
|
-
} catch {
|
|
8917
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9202
|
+
case "nullable": {
|
|
9203
|
+
const inner = this.process(def.innerType, params);
|
|
9204
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9205
|
+
break;
|
|
8918
9206
|
}
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
if (this.unrepresentable === "throw") {
|
|
8924
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9207
|
+
case "nonoptional": {
|
|
9208
|
+
this.process(def.innerType, params);
|
|
9209
|
+
result.ref = def.innerType;
|
|
9210
|
+
break;
|
|
8925
9211
|
}
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
9212
|
+
case "success": {
|
|
9213
|
+
const json$1 = _json;
|
|
9214
|
+
json$1.type = "boolean";
|
|
9215
|
+
break;
|
|
9216
|
+
}
|
|
9217
|
+
case "default": {
|
|
9218
|
+
this.process(def.innerType, params);
|
|
9219
|
+
result.ref = def.innerType;
|
|
9220
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9221
|
+
break;
|
|
9222
|
+
}
|
|
9223
|
+
case "prefault": {
|
|
9224
|
+
this.process(def.innerType, params);
|
|
9225
|
+
result.ref = def.innerType;
|
|
9226
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9227
|
+
break;
|
|
9228
|
+
}
|
|
9229
|
+
case "catch": {
|
|
9230
|
+
this.process(def.innerType, params);
|
|
9231
|
+
result.ref = def.innerType;
|
|
9232
|
+
let catchValue;
|
|
9233
|
+
try {
|
|
9234
|
+
catchValue = def.catchValue(undefined);
|
|
9235
|
+
} catch {
|
|
9236
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9237
|
+
}
|
|
9238
|
+
_json.default = catchValue;
|
|
9239
|
+
break;
|
|
9240
|
+
}
|
|
9241
|
+
case "nan": {
|
|
9242
|
+
if (this.unrepresentable === "throw") {
|
|
9243
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9244
|
+
}
|
|
9245
|
+
break;
|
|
9246
|
+
}
|
|
9247
|
+
case "template_literal": {
|
|
9248
|
+
const json$1 = _json;
|
|
9249
|
+
const pattern = schema._zod.pattern;
|
|
9250
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9251
|
+
json$1.type = "string";
|
|
9252
|
+
json$1.pattern = pattern.source;
|
|
9253
|
+
break;
|
|
9254
|
+
}
|
|
9255
|
+
case "pipe": {
|
|
9256
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9257
|
+
this.process(innerType, params);
|
|
9258
|
+
result.ref = innerType;
|
|
9259
|
+
break;
|
|
9260
|
+
}
|
|
9261
|
+
case "readonly": {
|
|
9262
|
+
this.process(def.innerType, params);
|
|
9263
|
+
result.ref = def.innerType;
|
|
9264
|
+
_json.readOnly = true;
|
|
9265
|
+
break;
|
|
9266
|
+
}
|
|
9267
|
+
case "promise": {
|
|
9268
|
+
this.process(def.innerType, params);
|
|
9269
|
+
result.ref = def.innerType;
|
|
9270
|
+
break;
|
|
9271
|
+
}
|
|
9272
|
+
case "optional": {
|
|
9273
|
+
this.process(def.innerType, params);
|
|
9274
|
+
result.ref = def.innerType;
|
|
9275
|
+
break;
|
|
9276
|
+
}
|
|
9277
|
+
case "lazy": {
|
|
9278
|
+
const innerType = schema._zod.innerType;
|
|
9279
|
+
this.process(innerType, params);
|
|
9280
|
+
result.ref = innerType;
|
|
9281
|
+
break;
|
|
9282
|
+
}
|
|
9283
|
+
case "custom": {
|
|
9284
|
+
if (this.unrepresentable === "throw") {
|
|
9285
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9286
|
+
}
|
|
9287
|
+
break;
|
|
9288
|
+
}
|
|
9289
|
+
default: {
|
|
9290
|
+
def;
|
|
8967
9291
|
}
|
|
8968
|
-
break;
|
|
8969
|
-
}
|
|
8970
|
-
default: {
|
|
8971
|
-
def;
|
|
8972
9292
|
}
|
|
8973
9293
|
}
|
|
8974
9294
|
}
|
|
@@ -8995,12 +9315,15 @@ var JSONSchemaGenerator = class {
|
|
|
8995
9315
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
8996
9316
|
if (params.external) {
|
|
8997
9317
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
8998
|
-
|
|
9318
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9319
|
+
if (externalId) {
|
|
9320
|
+
return { ref: uriGenerator(externalId) };
|
|
9321
|
+
}
|
|
8999
9322
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9000
9323
|
entry[1].defId = id;
|
|
9001
9324
|
return {
|
|
9002
9325
|
defId: id,
|
|
9003
|
-
ref: `${
|
|
9326
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
9004
9327
|
};
|
|
9005
9328
|
}
|
|
9006
9329
|
if (entry[1] === root) {
|
|
@@ -9028,6 +9351,14 @@ var JSONSchemaGenerator = class {
|
|
|
9028
9351
|
}
|
|
9029
9352
|
schema$1.$ref = ref;
|
|
9030
9353
|
};
|
|
9354
|
+
if (params.cycles === "throw") {
|
|
9355
|
+
for (const entry of this.seen.entries()) {
|
|
9356
|
+
const seen = entry[1];
|
|
9357
|
+
if (seen.cycle) {
|
|
9358
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9359
|
+
}
|
|
9360
|
+
}
|
|
9361
|
+
}
|
|
9031
9362
|
for (const entry of this.seen.entries()) {
|
|
9032
9363
|
const seen = entry[1];
|
|
9033
9364
|
if (schema === entry[0]) {
|
|
@@ -9047,11 +9378,7 @@ var JSONSchemaGenerator = class {
|
|
|
9047
9378
|
continue;
|
|
9048
9379
|
}
|
|
9049
9380
|
if (seen.cycle) {
|
|
9050
|
-
|
|
9051
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9052
|
-
} else if (params.cycles === "ref") {
|
|
9053
|
-
extractToDef(entry);
|
|
9054
|
-
}
|
|
9381
|
+
extractToDef(entry);
|
|
9055
9382
|
continue;
|
|
9056
9383
|
}
|
|
9057
9384
|
if (seen.count > 1) {
|
|
@@ -9083,7 +9410,8 @@ var JSONSchemaGenerator = class {
|
|
|
9083
9410
|
}
|
|
9084
9411
|
if (!seen.isParent) this.override({
|
|
9085
9412
|
zodSchema,
|
|
9086
|
-
jsonSchema: schema$1
|
|
9413
|
+
jsonSchema: schema$1,
|
|
9414
|
+
path: seen.path ?? []
|
|
9087
9415
|
});
|
|
9088
9416
|
};
|
|
9089
9417
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9097,6 +9425,11 @@ var JSONSchemaGenerator = class {
|
|
|
9097
9425
|
} else {
|
|
9098
9426
|
console.warn(`Invalid target: ${this.target}`);
|
|
9099
9427
|
}
|
|
9428
|
+
if (params.external?.uri) {
|
|
9429
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9430
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9431
|
+
result.$id = params.external.uri(id);
|
|
9432
|
+
}
|
|
9100
9433
|
Object.assign(result, root.def);
|
|
9101
9434
|
const defs = params.external?.defs ?? {};
|
|
9102
9435
|
for (const entry of this.seen.entries()) {
|
|
@@ -9105,11 +9438,13 @@ var JSONSchemaGenerator = class {
|
|
|
9105
9438
|
defs[seen.defId] = seen.def;
|
|
9106
9439
|
}
|
|
9107
9440
|
}
|
|
9108
|
-
if (
|
|
9109
|
-
if (
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9441
|
+
if (params.external) {} else {
|
|
9442
|
+
if (Object.keys(defs).length > 0) {
|
|
9443
|
+
if (this.target === "draft-2020-12") {
|
|
9444
|
+
result.$defs = defs;
|
|
9445
|
+
} else {
|
|
9446
|
+
result.definitions = defs;
|
|
9447
|
+
}
|
|
9113
9448
|
}
|
|
9114
9449
|
}
|
|
9115
9450
|
try {
|
|
@@ -9130,7 +9465,7 @@ function toJSONSchema(input, _params) {
|
|
|
9130
9465
|
const schemas = {};
|
|
9131
9466
|
const external = {
|
|
9132
9467
|
registry: input,
|
|
9133
|
-
uri: _params?.uri
|
|
9468
|
+
uri: _params?.uri,
|
|
9134
9469
|
defs
|
|
9135
9470
|
};
|
|
9136
9471
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9241,11 +9576,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9241
9576
|
}
|
|
9242
9577
|
|
|
9243
9578
|
//#endregion
|
|
9244
|
-
//#region ../../node_modules/zod/
|
|
9579
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9245
9580
|
var json_schema_exports = {};
|
|
9246
9581
|
|
|
9247
9582
|
//#endregion
|
|
9248
|
-
//#region ../../node_modules/zod/
|
|
9583
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9249
9584
|
var core_exports = {};
|
|
9250
9585
|
__export(core_exports, {
|
|
9251
9586
|
$ZodAny: () => $ZodAny,
|
|
@@ -9284,6 +9619,7 @@ __export(core_exports, {
|
|
|
9284
9619
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9285
9620
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9286
9621
|
$ZodCustom: () => $ZodCustom,
|
|
9622
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9287
9623
|
$ZodDate: () => $ZodDate,
|
|
9288
9624
|
$ZodDefault: () => $ZodDefault,
|
|
9289
9625
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9348,6 +9684,8 @@ __export(core_exports, {
|
|
|
9348
9684
|
Doc: () => Doc,
|
|
9349
9685
|
JSONSchema: () => json_schema_exports,
|
|
9350
9686
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
9687
|
+
NEVER: () => NEVER,
|
|
9688
|
+
TimePrecision: () => TimePrecision,
|
|
9351
9689
|
_any: () => _any,
|
|
9352
9690
|
_array: () => _array,
|
|
9353
9691
|
_base64: () => _base64,
|
|
@@ -9437,6 +9775,7 @@ __export(core_exports, {
|
|
|
9437
9775
|
_size: () => _size,
|
|
9438
9776
|
_startsWith: () => _startsWith,
|
|
9439
9777
|
_string: () => _string,
|
|
9778
|
+
_stringFormat: () => _stringFormat,
|
|
9440
9779
|
_stringbool: () => _stringbool,
|
|
9441
9780
|
_success: () => _success,
|
|
9442
9781
|
_symbol: () => _symbol,
|
|
@@ -9486,7 +9825,7 @@ __export(core_exports, {
|
|
|
9486
9825
|
});
|
|
9487
9826
|
|
|
9488
9827
|
//#endregion
|
|
9489
|
-
//#region ../../node_modules/zod/
|
|
9828
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9490
9829
|
var iso_exports = {};
|
|
9491
9830
|
__export(iso_exports, {
|
|
9492
9831
|
ZodISODate: () => ZodISODate,
|
|
@@ -9528,7 +9867,7 @@ function duration(params) {
|
|
|
9528
9867
|
}
|
|
9529
9868
|
|
|
9530
9869
|
//#endregion
|
|
9531
|
-
//#region ../../node_modules/zod/
|
|
9870
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9532
9871
|
const initializer = (inst, issues) => {
|
|
9533
9872
|
$ZodError.init(inst, issues);
|
|
9534
9873
|
inst.name = "ZodError";
|
|
@@ -9546,14 +9885,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
9546
9885
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
9547
9886
|
|
|
9548
9887
|
//#endregion
|
|
9549
|
-
//#region ../../node_modules/zod/
|
|
9888
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
9550
9889
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9551
9890
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9552
9891
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
9553
9892
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
9554
9893
|
|
|
9555
9894
|
//#endregion
|
|
9556
|
-
//#region ../../node_modules/zod/
|
|
9895
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
9557
9896
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
9558
9897
|
$ZodType.init(inst, def);
|
|
9559
9898
|
inst.def = def;
|
|
@@ -9821,6 +10160,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
9821
10160
|
function jwt(params) {
|
|
9822
10161
|
return _jwt(ZodJWT, params);
|
|
9823
10162
|
}
|
|
10163
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10164
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10165
|
+
ZodStringFormat.init(inst, def);
|
|
10166
|
+
});
|
|
10167
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10168
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10169
|
+
}
|
|
9824
10170
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
9825
10171
|
$ZodNumber.init(inst, def);
|
|
9826
10172
|
ZodType.init(inst, def);
|
|
@@ -9990,9 +10336,7 @@ function keyof(schema) {
|
|
|
9990
10336
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
9991
10337
|
$ZodObject.init(inst, def);
|
|
9992
10338
|
ZodType.init(inst, def);
|
|
9993
|
-
defineLazy(inst, "shape", () =>
|
|
9994
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
9995
|
-
});
|
|
10339
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
9996
10340
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
9997
10341
|
inst.catchall = (catchall) => inst.clone({
|
|
9998
10342
|
...inst._zod.def,
|
|
@@ -10437,11 +10781,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10437
10781
|
$ZodCustom.init(inst, def);
|
|
10438
10782
|
ZodType.init(inst, def);
|
|
10439
10783
|
});
|
|
10440
|
-
function check(fn
|
|
10441
|
-
const ch = new $ZodCheck({
|
|
10442
|
-
check: "custom",
|
|
10443
|
-
...normalizeParams(params)
|
|
10444
|
-
});
|
|
10784
|
+
function check(fn) {
|
|
10785
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10445
10786
|
ch._zod.check = fn;
|
|
10446
10787
|
return ch;
|
|
10447
10788
|
}
|
|
@@ -10451,7 +10792,7 @@ function custom(fn, _params) {
|
|
|
10451
10792
|
function refine(fn, _params = {}) {
|
|
10452
10793
|
return _refine(ZodCustom, fn, _params);
|
|
10453
10794
|
}
|
|
10454
|
-
function superRefine(fn
|
|
10795
|
+
function superRefine(fn) {
|
|
10455
10796
|
const ch = check((payload) => {
|
|
10456
10797
|
payload.addIssue = (issue$1) => {
|
|
10457
10798
|
if (typeof issue$1 === "string") {
|
|
@@ -10467,7 +10808,7 @@ function superRefine(fn, params) {
|
|
|
10467
10808
|
}
|
|
10468
10809
|
};
|
|
10469
10810
|
return fn(payload.value, payload);
|
|
10470
|
-
}
|
|
10811
|
+
});
|
|
10471
10812
|
return ch;
|
|
10472
10813
|
}
|
|
10473
10814
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10505,7 +10846,7 @@ function preprocess(fn, schema) {
|
|
|
10505
10846
|
}
|
|
10506
10847
|
|
|
10507
10848
|
//#endregion
|
|
10508
|
-
//#region ../../node_modules/zod/
|
|
10849
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10509
10850
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10510
10851
|
const ZodIssueCode = {
|
|
10511
10852
|
invalid_type: "invalid_type",
|
|
@@ -10520,10 +10861,6 @@ const ZodIssueCode = {
|
|
|
10520
10861
|
invalid_value: "invalid_value",
|
|
10521
10862
|
custom: "custom"
|
|
10522
10863
|
};
|
|
10523
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10524
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10525
|
-
/** A special constant with type `never` */
|
|
10526
|
-
const NEVER = INVALID;
|
|
10527
10864
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10528
10865
|
function setErrorMap(map$1) {
|
|
10529
10866
|
config({ customError: map$1 });
|
|
@@ -10532,9 +10869,12 @@ function setErrorMap(map$1) {
|
|
|
10532
10869
|
function getErrorMap() {
|
|
10533
10870
|
return config().customError;
|
|
10534
10871
|
}
|
|
10872
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
10873
|
+
var ZodFirstPartyTypeKind;
|
|
10874
|
+
(function(ZodFirstPartyTypeKind$1) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
10535
10875
|
|
|
10536
10876
|
//#endregion
|
|
10537
|
-
//#region ../../node_modules/zod/
|
|
10877
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
10538
10878
|
var coerce_exports = {};
|
|
10539
10879
|
__export(coerce_exports, {
|
|
10540
10880
|
bigint: () => bigint,
|
|
@@ -10560,13 +10900,14 @@ function date(params) {
|
|
|
10560
10900
|
}
|
|
10561
10901
|
|
|
10562
10902
|
//#endregion
|
|
10563
|
-
//#region ../../node_modules/zod/
|
|
10903
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
10564
10904
|
var external_exports = {};
|
|
10565
10905
|
__export(external_exports, {
|
|
10566
10906
|
$brand: () => $brand,
|
|
10567
10907
|
$input: () => $input,
|
|
10568
10908
|
$output: () => $output,
|
|
10569
10909
|
NEVER: () => NEVER,
|
|
10910
|
+
TimePrecision: () => TimePrecision,
|
|
10570
10911
|
ZodAny: () => ZodAny,
|
|
10571
10912
|
ZodArray: () => ZodArray,
|
|
10572
10913
|
ZodBase64: () => ZodBase64,
|
|
@@ -10580,6 +10921,7 @@ __export(external_exports, {
|
|
|
10580
10921
|
ZodCUID2: () => ZodCUID2,
|
|
10581
10922
|
ZodCatch: () => ZodCatch,
|
|
10582
10923
|
ZodCustom: () => ZodCustom,
|
|
10924
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
10583
10925
|
ZodDate: () => ZodDate,
|
|
10584
10926
|
ZodDefault: () => ZodDefault,
|
|
10585
10927
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -10589,6 +10931,7 @@ __export(external_exports, {
|
|
|
10589
10931
|
ZodEnum: () => ZodEnum,
|
|
10590
10932
|
ZodError: () => ZodError,
|
|
10591
10933
|
ZodFile: () => ZodFile,
|
|
10934
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
10592
10935
|
ZodGUID: () => ZodGUID,
|
|
10593
10936
|
ZodIPv4: () => ZodIPv4,
|
|
10594
10937
|
ZodIPv6: () => ZodIPv6,
|
|
@@ -10741,6 +11084,7 @@ __export(external_exports, {
|
|
|
10741
11084
|
startsWith: () => _startsWith,
|
|
10742
11085
|
strictObject: () => strictObject,
|
|
10743
11086
|
string: () => string$1,
|
|
11087
|
+
stringFormat: () => stringFormat,
|
|
10744
11088
|
stringbool: () => stringbool,
|
|
10745
11089
|
success: () => success,
|
|
10746
11090
|
superRefine: () => superRefine,
|
|
@@ -10771,11 +11115,11 @@ __export(external_exports, {
|
|
|
10771
11115
|
config(en_default());
|
|
10772
11116
|
|
|
10773
11117
|
//#endregion
|
|
10774
|
-
//#region ../../node_modules/zod/
|
|
11118
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
10775
11119
|
var classic_default = external_exports;
|
|
10776
11120
|
|
|
10777
11121
|
//#endregion
|
|
10778
|
-
//#region ../../node_modules/zod/
|
|
11122
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
10779
11123
|
var v4_default = classic_default;
|
|
10780
11124
|
|
|
10781
11125
|
//#endregion
|