@settlemint/sdk-utils 2.4.1-prb0c72988 → 2.4.1-prb593b885
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/environment.cjs +1065 -726
- package/dist/environment.cjs.map +1 -1
- package/dist/environment.js +1065 -726
- package/dist/environment.js.map +1 -1
- package/dist/index.cjs +0 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/url.cjs +0 -3
- package/dist/url.cjs.map +1 -1
- package/dist/url.js +0 -3
- package/dist/url.js.map +1 -1
- package/dist/validation.cjs +1029 -690
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +1029 -690
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
package/dist/environment.js
CHANGED
|
@@ -350,10 +350,10 @@ var SpinnerError = class extends Error {
|
|
|
350
350
|
* });
|
|
351
351
|
*/
|
|
352
352
|
const spinner = async (options) => {
|
|
353
|
-
const handleError = (error$
|
|
354
|
-
const errorMessage = maskTokens(error$
|
|
355
|
-
note(redBright(`${errorMessage}\n\n${error$
|
|
356
|
-
throw new SpinnerError(errorMessage, error$
|
|
353
|
+
const handleError = (error$39) => {
|
|
354
|
+
const errorMessage = maskTokens(error$39.message);
|
|
355
|
+
note(redBright(`${errorMessage}\n\n${error$39.stack}`));
|
|
356
|
+
throw new SpinnerError(errorMessage, error$39);
|
|
357
357
|
};
|
|
358
358
|
if (isInCi || !shouldPrint()) {
|
|
359
359
|
try {
|
|
@@ -481,7 +481,9 @@ function table(title, data) {
|
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/zod/
|
|
484
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
485
|
+
/** A special constant with type `never` */
|
|
486
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
485
487
|
function $constructor(name, initializer$2, params) {
|
|
486
488
|
function init(inst, def) {
|
|
487
489
|
var _a;
|
|
@@ -532,7 +534,7 @@ function config$1(newConfig) {
|
|
|
532
534
|
}
|
|
533
535
|
|
|
534
536
|
//#endregion
|
|
535
|
-
//#region ../../node_modules/zod/
|
|
537
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
536
538
|
var util_exports = {};
|
|
537
539
|
__export(util_exports, {
|
|
538
540
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -547,6 +549,7 @@ __export(util_exports, {
|
|
|
547
549
|
assertNotEqual: () => assertNotEqual,
|
|
548
550
|
assignProp: () => assignProp,
|
|
549
551
|
cached: () => cached,
|
|
552
|
+
captureStackTrace: () => captureStackTrace,
|
|
550
553
|
cleanEnum: () => cleanEnum,
|
|
551
554
|
cleanRegex: () => cleanRegex,
|
|
552
555
|
clone: () => clone,
|
|
@@ -685,10 +688,14 @@ function randomString(length = 10) {
|
|
|
685
688
|
function esc(str) {
|
|
686
689
|
return JSON.stringify(str);
|
|
687
690
|
}
|
|
691
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
688
692
|
function isObject(data) {
|
|
689
693
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
690
694
|
}
|
|
691
695
|
const allowsEval = cached(() => {
|
|
696
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
697
|
+
return false;
|
|
698
|
+
}
|
|
692
699
|
try {
|
|
693
700
|
const F = Function;
|
|
694
701
|
new F("");
|
|
@@ -697,9 +704,6 @@ const allowsEval = cached(() => {
|
|
|
697
704
|
return false;
|
|
698
705
|
}
|
|
699
706
|
});
|
|
700
|
-
function _isObject(o) {
|
|
701
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
702
|
-
}
|
|
703
707
|
function isPlainObject(o) {
|
|
704
708
|
if (isObject(o) === false) return false;
|
|
705
709
|
const ctor = o.constructor;
|
|
@@ -879,6 +883,9 @@ function omit(schema, mask) {
|
|
|
879
883
|
});
|
|
880
884
|
}
|
|
881
885
|
function extend(schema, shape) {
|
|
886
|
+
if (!isPlainObject(shape)) {
|
|
887
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
888
|
+
}
|
|
882
889
|
const def = {
|
|
883
890
|
...schema._zod.def,
|
|
884
891
|
get shape() {
|
|
@@ -966,7 +973,7 @@ function required(Class$1, schema, mask) {
|
|
|
966
973
|
}
|
|
967
974
|
function aborted(x, startIndex = 0) {
|
|
968
975
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
969
|
-
if (x.issues[i]
|
|
976
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
970
977
|
}
|
|
971
978
|
return false;
|
|
972
979
|
}
|
|
@@ -1030,7 +1037,7 @@ var Class = class {
|
|
|
1030
1037
|
};
|
|
1031
1038
|
|
|
1032
1039
|
//#endregion
|
|
1033
|
-
//#region ../../node_modules/zod/
|
|
1040
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
1034
1041
|
const initializer$1 = (inst, def) => {
|
|
1035
1042
|
inst.name = "$ZodError";
|
|
1036
1043
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1047,13 +1054,17 @@ const initializer$1 = (inst, def) => {
|
|
|
1047
1054
|
},
|
|
1048
1055
|
enumerable: true
|
|
1049
1056
|
});
|
|
1057
|
+
Object.defineProperty(inst, "toString", {
|
|
1058
|
+
value: () => inst.message,
|
|
1059
|
+
enumerable: false
|
|
1060
|
+
});
|
|
1050
1061
|
};
|
|
1051
1062
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
1052
1063
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
1053
|
-
function flattenError(error$
|
|
1064
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
1054
1065
|
const fieldErrors = {};
|
|
1055
1066
|
const formErrors = [];
|
|
1056
|
-
for (const sub of error$
|
|
1067
|
+
for (const sub of error$39.issues) {
|
|
1057
1068
|
if (sub.path.length > 0) {
|
|
1058
1069
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1059
1070
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1066,13 +1077,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
1066
1077
|
fieldErrors
|
|
1067
1078
|
};
|
|
1068
1079
|
}
|
|
1069
|
-
function formatError(error$
|
|
1080
|
+
function formatError(error$39, _mapper) {
|
|
1070
1081
|
const mapper = _mapper || function(issue$1) {
|
|
1071
1082
|
return issue$1.message;
|
|
1072
1083
|
};
|
|
1073
1084
|
const fieldErrors = { _errors: [] };
|
|
1074
|
-
const processError = (error$
|
|
1075
|
-
for (const issue$1 of error$
|
|
1085
|
+
const processError = (error$40) => {
|
|
1086
|
+
for (const issue$1 of error$40.issues) {
|
|
1076
1087
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
1077
1088
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
1078
1089
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -1099,17 +1110,17 @@ function formatError(error$37, _mapper) {
|
|
|
1099
1110
|
}
|
|
1100
1111
|
}
|
|
1101
1112
|
};
|
|
1102
|
-
processError(error$
|
|
1113
|
+
processError(error$39);
|
|
1103
1114
|
return fieldErrors;
|
|
1104
1115
|
}
|
|
1105
|
-
function treeifyError(error$
|
|
1116
|
+
function treeifyError(error$39, _mapper) {
|
|
1106
1117
|
const mapper = _mapper || function(issue$1) {
|
|
1107
1118
|
return issue$1.message;
|
|
1108
1119
|
};
|
|
1109
1120
|
const result = { errors: [] };
|
|
1110
|
-
const processError = (error$
|
|
1121
|
+
const processError = (error$40, path$1 = []) => {
|
|
1111
1122
|
var _a, _b;
|
|
1112
|
-
for (const issue$1 of error$
|
|
1123
|
+
for (const issue$1 of error$40.issues) {
|
|
1113
1124
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
1114
1125
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
1115
1126
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -1144,7 +1155,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
1144
1155
|
}
|
|
1145
1156
|
}
|
|
1146
1157
|
};
|
|
1147
|
-
processError(error$
|
|
1158
|
+
processError(error$39);
|
|
1148
1159
|
return result;
|
|
1149
1160
|
}
|
|
1150
1161
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -1192,9 +1203,9 @@ function toDotPath(path$1) {
|
|
|
1192
1203
|
}
|
|
1193
1204
|
return segs.join("");
|
|
1194
1205
|
}
|
|
1195
|
-
function prettifyError(error$
|
|
1206
|
+
function prettifyError(error$39) {
|
|
1196
1207
|
const lines = [];
|
|
1197
|
-
const issues = [...error$
|
|
1208
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
1198
1209
|
for (const issue$1 of issues) {
|
|
1199
1210
|
lines.push(`✖ ${issue$1.message}`);
|
|
1200
1211
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -1203,7 +1214,7 @@ function prettifyError(error$37) {
|
|
|
1203
1214
|
}
|
|
1204
1215
|
|
|
1205
1216
|
//#endregion
|
|
1206
|
-
//#region ../../node_modules/zod/
|
|
1217
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
1207
1218
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1208
1219
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1209
1220
|
const result = schema._zod.run({
|
|
@@ -1215,7 +1226,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1215
1226
|
}
|
|
1216
1227
|
if (result.issues.length) {
|
|
1217
1228
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config$1())));
|
|
1218
|
-
|
|
1229
|
+
captureStackTrace(e, _params?.callee);
|
|
1219
1230
|
throw e;
|
|
1220
1231
|
}
|
|
1221
1232
|
return result.value;
|
|
@@ -1230,7 +1241,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
1230
1241
|
if (result instanceof Promise) result = await result;
|
|
1231
1242
|
if (result.issues.length) {
|
|
1232
1243
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config$1())));
|
|
1233
|
-
|
|
1244
|
+
captureStackTrace(e, params?.callee);
|
|
1234
1245
|
throw e;
|
|
1235
1246
|
}
|
|
1236
1247
|
return result.value;
|
|
@@ -1275,10 +1286,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1275
1286
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1276
1287
|
|
|
1277
1288
|
//#endregion
|
|
1278
|
-
//#region ../../node_modules/zod/
|
|
1289
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
1279
1290
|
var regexes_exports = {};
|
|
1280
1291
|
__export(regexes_exports, {
|
|
1281
|
-
_emoji: () => _emoji$1,
|
|
1282
1292
|
base64: () => base64$1,
|
|
1283
1293
|
base64url: () => base64url$1,
|
|
1284
1294
|
bigint: () => bigint$2,
|
|
@@ -1364,27 +1374,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
1364
1374
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
1365
1375
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1366
1376
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
1367
|
-
const dateSource = `((
|
|
1377
|
+
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])))`;
|
|
1368
1378
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
1369
1379
|
function timeSource(args) {
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
1373
|
-
} else if (args.precision == null) {
|
|
1374
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
1375
|
-
}
|
|
1380
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
1381
|
+
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+)?)?`;
|
|
1376
1382
|
return regex;
|
|
1377
1383
|
}
|
|
1378
1384
|
function time$1(args) {
|
|
1379
1385
|
return new RegExp(`^${timeSource(args)}$`);
|
|
1380
1386
|
}
|
|
1381
1387
|
function datetime$1(args) {
|
|
1382
|
-
|
|
1383
|
-
const opts = [];
|
|
1384
|
-
|
|
1385
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
1386
|
-
|
|
1387
|
-
return new RegExp(`^${
|
|
1388
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
1389
|
+
const opts = ["Z"];
|
|
1390
|
+
if (args.local) opts.push("");
|
|
1391
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
1392
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
1393
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
1388
1394
|
}
|
|
1389
1395
|
const string$2 = (params) => {
|
|
1390
1396
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -1400,7 +1406,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
1400
1406
|
const uppercase = /^[^a-z]*$/;
|
|
1401
1407
|
|
|
1402
1408
|
//#endregion
|
|
1403
|
-
//#region ../../node_modules/zod/
|
|
1409
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
1404
1410
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1405
1411
|
var _a;
|
|
1406
1412
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1591,11 +1597,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1591
1597
|
};
|
|
1592
1598
|
});
|
|
1593
1599
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1600
|
+
var _a;
|
|
1594
1601
|
$ZodCheck.init(inst, def);
|
|
1595
|
-
inst._zod.when = (payload) => {
|
|
1602
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1596
1603
|
const val = payload.value;
|
|
1597
1604
|
return !nullish$1(val) && val.size !== undefined;
|
|
1598
|
-
};
|
|
1605
|
+
});
|
|
1599
1606
|
inst._zod.onattach.push((inst$1) => {
|
|
1600
1607
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1601
1608
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1615,11 +1622,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1615
1622
|
};
|
|
1616
1623
|
});
|
|
1617
1624
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1625
|
+
var _a;
|
|
1618
1626
|
$ZodCheck.init(inst, def);
|
|
1619
|
-
inst._zod.when = (payload) => {
|
|
1627
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1620
1628
|
const val = payload.value;
|
|
1621
1629
|
return !nullish$1(val) && val.size !== undefined;
|
|
1622
|
-
};
|
|
1630
|
+
});
|
|
1623
1631
|
inst._zod.onattach.push((inst$1) => {
|
|
1624
1632
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1625
1633
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1639,11 +1647,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1639
1647
|
};
|
|
1640
1648
|
});
|
|
1641
1649
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1650
|
+
var _a;
|
|
1642
1651
|
$ZodCheck.init(inst, def);
|
|
1643
|
-
inst._zod.when = (payload) => {
|
|
1652
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1644
1653
|
const val = payload.value;
|
|
1645
1654
|
return !nullish$1(val) && val.size !== undefined;
|
|
1646
|
-
};
|
|
1655
|
+
});
|
|
1647
1656
|
inst._zod.onattach.push((inst$1) => {
|
|
1648
1657
|
const bag = inst$1._zod.bag;
|
|
1649
1658
|
bag.minimum = def.size;
|
|
@@ -1664,6 +1673,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1664
1673
|
code: "too_small",
|
|
1665
1674
|
minimum: def.size
|
|
1666
1675
|
},
|
|
1676
|
+
inclusive: true,
|
|
1677
|
+
exact: true,
|
|
1667
1678
|
input: payload.value,
|
|
1668
1679
|
inst,
|
|
1669
1680
|
continue: !def.abort
|
|
@@ -1671,11 +1682,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1671
1682
|
};
|
|
1672
1683
|
});
|
|
1673
1684
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1685
|
+
var _a;
|
|
1674
1686
|
$ZodCheck.init(inst, def);
|
|
1675
|
-
inst._zod.when = (payload) => {
|
|
1687
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1676
1688
|
const val = payload.value;
|
|
1677
1689
|
return !nullish$1(val) && val.length !== undefined;
|
|
1678
|
-
};
|
|
1690
|
+
});
|
|
1679
1691
|
inst._zod.onattach.push((inst$1) => {
|
|
1680
1692
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1681
1693
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1697,11 +1709,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1697
1709
|
};
|
|
1698
1710
|
});
|
|
1699
1711
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1712
|
+
var _a;
|
|
1700
1713
|
$ZodCheck.init(inst, def);
|
|
1701
|
-
inst._zod.when = (payload) => {
|
|
1714
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1702
1715
|
const val = payload.value;
|
|
1703
1716
|
return !nullish$1(val) && val.length !== undefined;
|
|
1704
|
-
};
|
|
1717
|
+
});
|
|
1705
1718
|
inst._zod.onattach.push((inst$1) => {
|
|
1706
1719
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1707
1720
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1723,11 +1736,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1723
1736
|
};
|
|
1724
1737
|
});
|
|
1725
1738
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1739
|
+
var _a;
|
|
1726
1740
|
$ZodCheck.init(inst, def);
|
|
1727
|
-
inst._zod.when = (payload) => {
|
|
1741
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1728
1742
|
const val = payload.value;
|
|
1729
1743
|
return !nullish$1(val) && val.length !== undefined;
|
|
1730
|
-
};
|
|
1744
|
+
});
|
|
1731
1745
|
inst._zod.onattach.push((inst$1) => {
|
|
1732
1746
|
const bag = inst$1._zod.bag;
|
|
1733
1747
|
bag.minimum = def.length;
|
|
@@ -1749,6 +1763,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1749
1763
|
code: "too_small",
|
|
1750
1764
|
minimum: def.length
|
|
1751
1765
|
},
|
|
1766
|
+
inclusive: true,
|
|
1767
|
+
exact: true,
|
|
1752
1768
|
input: payload.value,
|
|
1753
1769
|
inst,
|
|
1754
1770
|
continue: !def.abort
|
|
@@ -1756,7 +1772,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1756
1772
|
};
|
|
1757
1773
|
});
|
|
1758
1774
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1759
|
-
var _a;
|
|
1775
|
+
var _a, _b;
|
|
1760
1776
|
$ZodCheck.init(inst, def);
|
|
1761
1777
|
inst._zod.onattach.push((inst$1) => {
|
|
1762
1778
|
const bag = inst$1._zod.bag;
|
|
@@ -1766,8 +1782,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1766
1782
|
bag.patterns.add(def.pattern);
|
|
1767
1783
|
}
|
|
1768
1784
|
});
|
|
1769
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1770
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1785
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1771
1786
|
def.pattern.lastIndex = 0;
|
|
1772
1787
|
if (def.pattern.test(payload.value)) return;
|
|
1773
1788
|
payload.issues.push({
|
|
@@ -1780,6 +1795,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1780
1795
|
continue: !def.abort
|
|
1781
1796
|
});
|
|
1782
1797
|
});
|
|
1798
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1783
1799
|
});
|
|
1784
1800
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1785
1801
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1903,7 +1919,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1903
1919
|
code: "invalid_value",
|
|
1904
1920
|
values: def.mime,
|
|
1905
1921
|
input: payload.value.type,
|
|
1906
|
-
path: ["type"],
|
|
1907
1922
|
inst
|
|
1908
1923
|
});
|
|
1909
1924
|
};
|
|
@@ -1916,7 +1931,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1916
1931
|
});
|
|
1917
1932
|
|
|
1918
1933
|
//#endregion
|
|
1919
|
-
//#region ../../node_modules/zod/
|
|
1934
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1920
1935
|
var Doc = class {
|
|
1921
1936
|
constructor(args = []) {
|
|
1922
1937
|
this.content = [];
|
|
@@ -1952,19 +1967,18 @@ var Doc = class {
|
|
|
1952
1967
|
};
|
|
1953
1968
|
|
|
1954
1969
|
//#endregion
|
|
1955
|
-
//#region ../../node_modules/zod/
|
|
1970
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1956
1971
|
const version = {
|
|
1957
1972
|
major: 4,
|
|
1958
1973
|
minor: 0,
|
|
1959
|
-
patch:
|
|
1974
|
+
patch: 2
|
|
1960
1975
|
};
|
|
1961
1976
|
|
|
1962
1977
|
//#endregion
|
|
1963
|
-
//#region ../../node_modules/zod/
|
|
1978
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1964
1979
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1965
1980
|
var _a;
|
|
1966
1981
|
inst ?? (inst = {});
|
|
1967
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1968
1982
|
inst._zod.def = def;
|
|
1969
1983
|
inst._zod.bag = inst._zod.bag || {};
|
|
1970
1984
|
inst._zod.version = version;
|
|
@@ -1987,13 +2001,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1987
2001
|
let isAborted = aborted(payload);
|
|
1988
2002
|
let asyncResult;
|
|
1989
2003
|
for (const ch of checks$1) {
|
|
1990
|
-
if (ch._zod.when) {
|
|
1991
|
-
const shouldRun = ch._zod.when(payload);
|
|
2004
|
+
if (ch._zod.def.when) {
|
|
2005
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1992
2006
|
if (!shouldRun) continue;
|
|
1993
|
-
} else {
|
|
1994
|
-
|
|
1995
|
-
continue;
|
|
1996
|
-
}
|
|
2007
|
+
} else if (isAborted) {
|
|
2008
|
+
continue;
|
|
1997
2009
|
}
|
|
1998
2010
|
const currLen = payload.issues.length;
|
|
1999
2011
|
const _ = ch._zod.check(payload);
|
|
@@ -2093,7 +2105,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2093
2105
|
$ZodStringFormat.init(inst, def);
|
|
2094
2106
|
inst._zod.check = (payload) => {
|
|
2095
2107
|
try {
|
|
2096
|
-
const
|
|
2108
|
+
const orig = payload.value;
|
|
2109
|
+
const url$1 = new URL(orig);
|
|
2110
|
+
const href = url$1.href;
|
|
2097
2111
|
if (def.hostname) {
|
|
2098
2112
|
def.hostname.lastIndex = 0;
|
|
2099
2113
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -2122,6 +2136,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2122
2136
|
});
|
|
2123
2137
|
}
|
|
2124
2138
|
}
|
|
2139
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
2140
|
+
payload.value = href.slice(0, -1);
|
|
2141
|
+
} else {
|
|
2142
|
+
payload.value = href;
|
|
2143
|
+
}
|
|
2125
2144
|
return;
|
|
2126
2145
|
} catch (_) {
|
|
2127
2146
|
payload.issues.push({
|
|
@@ -2292,6 +2311,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
2292
2311
|
const tokensParts = token.split(".");
|
|
2293
2312
|
if (tokensParts.length !== 3) return false;
|
|
2294
2313
|
const [header] = tokensParts;
|
|
2314
|
+
if (!header) return false;
|
|
2295
2315
|
const parsedHeader = JSON.parse(atob(header));
|
|
2296
2316
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
2297
2317
|
if (!parsedHeader.alg) return false;
|
|
@@ -2314,6 +2334,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
2314
2334
|
});
|
|
2315
2335
|
};
|
|
2316
2336
|
});
|
|
2337
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
2338
|
+
$ZodStringFormat.init(inst, def);
|
|
2339
|
+
inst._zod.check = (payload) => {
|
|
2340
|
+
if (def.fn(payload.value)) return;
|
|
2341
|
+
payload.issues.push({
|
|
2342
|
+
code: "invalid_format",
|
|
2343
|
+
format: def.format,
|
|
2344
|
+
input: payload.value,
|
|
2345
|
+
inst,
|
|
2346
|
+
continue: !def.abort
|
|
2347
|
+
});
|
|
2348
|
+
};
|
|
2349
|
+
});
|
|
2317
2350
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
2318
2351
|
$ZodType.init(inst, def);
|
|
2319
2352
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -2365,12 +2398,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
2365
2398
|
if (def.coerce) try {
|
|
2366
2399
|
payload.value = BigInt(payload.value);
|
|
2367
2400
|
} catch (_) {}
|
|
2368
|
-
|
|
2369
|
-
if (typeof input === "bigint") return payload;
|
|
2401
|
+
if (typeof payload.value === "bigint") return payload;
|
|
2370
2402
|
payload.issues.push({
|
|
2371
2403
|
expected: "bigint",
|
|
2372
2404
|
code: "invalid_type",
|
|
2373
|
-
input,
|
|
2405
|
+
input: payload.value,
|
|
2374
2406
|
inst
|
|
2375
2407
|
});
|
|
2376
2408
|
return payload;
|
|
@@ -2383,7 +2415,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
2383
2415
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
2384
2416
|
$ZodType.init(inst, def);
|
|
2385
2417
|
inst._zod.parse = (payload, _ctx) => {
|
|
2386
|
-
const
|
|
2418
|
+
const input = payload.value;
|
|
2387
2419
|
if (typeof input === "symbol") return payload;
|
|
2388
2420
|
payload.issues.push({
|
|
2389
2421
|
expected: "symbol",
|
|
@@ -2398,8 +2430,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
2398
2430
|
$ZodType.init(inst, def);
|
|
2399
2431
|
inst._zod.pattern = _undefined$2;
|
|
2400
2432
|
inst._zod.values = new Set([undefined]);
|
|
2433
|
+
inst._zod.optin = "optional";
|
|
2434
|
+
inst._zod.optout = "optional";
|
|
2401
2435
|
inst._zod.parse = (payload, _ctx) => {
|
|
2402
|
-
const
|
|
2436
|
+
const input = payload.value;
|
|
2403
2437
|
if (typeof input === "undefined") return payload;
|
|
2404
2438
|
payload.issues.push({
|
|
2405
2439
|
expected: "undefined",
|
|
@@ -2415,7 +2449,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
2415
2449
|
inst._zod.pattern = _null$2;
|
|
2416
2450
|
inst._zod.values = new Set([null]);
|
|
2417
2451
|
inst._zod.parse = (payload, _ctx) => {
|
|
2418
|
-
const
|
|
2452
|
+
const input = payload.value;
|
|
2419
2453
|
if (input === null) return payload;
|
|
2420
2454
|
payload.issues.push({
|
|
2421
2455
|
expected: "null",
|
|
@@ -2449,7 +2483,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2449
2483
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2450
2484
|
$ZodType.init(inst, def);
|
|
2451
2485
|
inst._zod.parse = (payload, _ctx) => {
|
|
2452
|
-
const
|
|
2486
|
+
const input = payload.value;
|
|
2453
2487
|
if (typeof input === "undefined") return payload;
|
|
2454
2488
|
payload.issues.push({
|
|
2455
2489
|
expected: "void",
|
|
@@ -2580,19 +2614,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2580
2614
|
"payload",
|
|
2581
2615
|
"ctx"
|
|
2582
2616
|
]);
|
|
2583
|
-
const
|
|
2617
|
+
const normalized = _normalized.value;
|
|
2584
2618
|
const parseStr = (key) => {
|
|
2585
2619
|
const k = esc(key);
|
|
2586
2620
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2587
2621
|
};
|
|
2588
2622
|
doc.write(`const input = payload.value;`);
|
|
2589
2623
|
const ids = Object.create(null);
|
|
2590
|
-
|
|
2591
|
-
|
|
2624
|
+
let counter = 0;
|
|
2625
|
+
for (const key of normalized.keys) {
|
|
2626
|
+
ids[key] = `key_${counter++}`;
|
|
2592
2627
|
}
|
|
2593
2628
|
doc.write(`const newResult = {}`);
|
|
2594
|
-
for (const key of keys) {
|
|
2595
|
-
if (optionalKeys
|
|
2629
|
+
for (const key of normalized.keys) {
|
|
2630
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2596
2631
|
const id = ids[key];
|
|
2597
2632
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2598
2633
|
const k = esc(key);
|
|
@@ -2637,7 +2672,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2637
2672
|
const jit = !globalConfig.jitless;
|
|
2638
2673
|
const allowsEval$1 = allowsEval;
|
|
2639
2674
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2640
|
-
const
|
|
2675
|
+
const catchall = def.catchall;
|
|
2641
2676
|
let value;
|
|
2642
2677
|
inst._zod.parse = (payload, ctx) => {
|
|
2643
2678
|
value ?? (value = _normalized.value);
|
|
@@ -2667,12 +2702,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2667
2702
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2668
2703
|
if (r instanceof Promise) {
|
|
2669
2704
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2705
|
+
} else if (isOptional) {
|
|
2706
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2670
2707
|
} else {
|
|
2671
|
-
|
|
2672
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2673
|
-
} else {
|
|
2674
|
-
handleObjectResult(r, payload, key);
|
|
2675
|
-
}
|
|
2708
|
+
handleObjectResult(r, payload, key);
|
|
2676
2709
|
}
|
|
2677
2710
|
}
|
|
2678
2711
|
}
|
|
@@ -2730,6 +2763,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2730
2763
|
}
|
|
2731
2764
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2732
2765
|
$ZodType.init(inst, def);
|
|
2766
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2767
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2733
2768
|
defineLazy(inst._zod, "values", () => {
|
|
2734
2769
|
if (def.options.every((o) => o._zod.values)) {
|
|
2735
2770
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2829,7 +2864,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2829
2864
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2830
2865
|
$ZodType.init(inst, def);
|
|
2831
2866
|
inst._zod.parse = (payload, ctx) => {
|
|
2832
|
-
const
|
|
2867
|
+
const input = payload.value;
|
|
2833
2868
|
const left = def.left._zod.run({
|
|
2834
2869
|
value: input,
|
|
2835
2870
|
issues: []
|
|
@@ -3286,6 +3321,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
3286
3321
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
3287
3322
|
});
|
|
3288
3323
|
inst._zod.parse = (payload, ctx) => {
|
|
3324
|
+
if (def.innerType._zod.optin === "optional") {
|
|
3325
|
+
return def.innerType._zod.run(payload, ctx);
|
|
3326
|
+
}
|
|
3289
3327
|
if (payload.value === undefined) {
|
|
3290
3328
|
return payload;
|
|
3291
3329
|
}
|
|
@@ -3385,7 +3423,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3385
3423
|
});
|
|
3386
3424
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3387
3425
|
$ZodType.init(inst, def);
|
|
3388
|
-
|
|
3426
|
+
inst._zod.optin = "optional";
|
|
3389
3427
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3390
3428
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3391
3429
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3456,6 +3494,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3456
3494
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3457
3495
|
$ZodType.init(inst, def);
|
|
3458
3496
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3497
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3459
3498
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3460
3499
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3461
3500
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3506,7 +3545,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3506
3545
|
input: payload.value,
|
|
3507
3546
|
inst,
|
|
3508
3547
|
code: "invalid_format",
|
|
3509
|
-
format: "template_literal",
|
|
3548
|
+
format: def.format ?? "template_literal",
|
|
3510
3549
|
pattern: inst._zod.pattern.source
|
|
3511
3550
|
});
|
|
3512
3551
|
return payload;
|
|
@@ -3566,8 +3605,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3566
3605
|
}
|
|
3567
3606
|
|
|
3568
3607
|
//#endregion
|
|
3569
|
-
//#region ../../node_modules/zod/
|
|
3570
|
-
const error$
|
|
3608
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3609
|
+
const error$38 = () => {
|
|
3571
3610
|
const Sizable = {
|
|
3572
3611
|
string: {
|
|
3573
3612
|
unit: "حرف",
|
|
@@ -3589,7 +3628,7 @@ const error$36 = () => {
|
|
|
3589
3628
|
function getSizing(origin) {
|
|
3590
3629
|
return Sizable[origin] ?? null;
|
|
3591
3630
|
}
|
|
3592
|
-
const parsedType$
|
|
3631
|
+
const parsedType$3 = (data) => {
|
|
3593
3632
|
const t = typeof data;
|
|
3594
3633
|
switch (t) {
|
|
3595
3634
|
case "number": {
|
|
@@ -3641,7 +3680,7 @@ const error$36 = () => {
|
|
|
3641
3680
|
};
|
|
3642
3681
|
return (issue$1) => {
|
|
3643
3682
|
switch (issue$1.code) {
|
|
3644
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3683
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3645
3684
|
case "invalid_value":
|
|
3646
3685
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3647
3686
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3677,12 +3716,12 @@ const error$36 = () => {
|
|
|
3677
3716
|
};
|
|
3678
3717
|
};
|
|
3679
3718
|
function ar_default() {
|
|
3680
|
-
return { localeError: error$
|
|
3719
|
+
return { localeError: error$38() };
|
|
3681
3720
|
}
|
|
3682
3721
|
|
|
3683
3722
|
//#endregion
|
|
3684
|
-
//#region ../../node_modules/zod/
|
|
3685
|
-
const error$
|
|
3723
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3724
|
+
const error$37 = () => {
|
|
3686
3725
|
const Sizable = {
|
|
3687
3726
|
string: {
|
|
3688
3727
|
unit: "simvol",
|
|
@@ -3704,7 +3743,7 @@ const error$35 = () => {
|
|
|
3704
3743
|
function getSizing(origin) {
|
|
3705
3744
|
return Sizable[origin] ?? null;
|
|
3706
3745
|
}
|
|
3707
|
-
const parsedType$
|
|
3746
|
+
const parsedType$3 = (data) => {
|
|
3708
3747
|
const t = typeof data;
|
|
3709
3748
|
switch (t) {
|
|
3710
3749
|
case "number": {
|
|
@@ -3756,7 +3795,7 @@ const error$35 = () => {
|
|
|
3756
3795
|
};
|
|
3757
3796
|
return (issue$1) => {
|
|
3758
3797
|
switch (issue$1.code) {
|
|
3759
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3798
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3760
3799
|
case "invalid_value":
|
|
3761
3800
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3762
3801
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3790,11 +3829,11 @@ const error$35 = () => {
|
|
|
3790
3829
|
};
|
|
3791
3830
|
};
|
|
3792
3831
|
function az_default() {
|
|
3793
|
-
return { localeError: error$
|
|
3832
|
+
return { localeError: error$37() };
|
|
3794
3833
|
}
|
|
3795
3834
|
|
|
3796
3835
|
//#endregion
|
|
3797
|
-
//#region ../../node_modules/zod/
|
|
3836
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3798
3837
|
function getBelarusianPlural(count, one, few, many) {
|
|
3799
3838
|
const absCount = Math.abs(count);
|
|
3800
3839
|
const lastDigit = absCount % 10;
|
|
@@ -3810,7 +3849,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3810
3849
|
}
|
|
3811
3850
|
return many;
|
|
3812
3851
|
}
|
|
3813
|
-
const error$
|
|
3852
|
+
const error$36 = () => {
|
|
3814
3853
|
const Sizable = {
|
|
3815
3854
|
string: {
|
|
3816
3855
|
unit: {
|
|
@@ -3848,7 +3887,7 @@ const error$34 = () => {
|
|
|
3848
3887
|
function getSizing(origin) {
|
|
3849
3888
|
return Sizable[origin] ?? null;
|
|
3850
3889
|
}
|
|
3851
|
-
const parsedType$
|
|
3890
|
+
const parsedType$3 = (data) => {
|
|
3852
3891
|
const t = typeof data;
|
|
3853
3892
|
switch (t) {
|
|
3854
3893
|
case "number": {
|
|
@@ -3900,7 +3939,7 @@ const error$34 = () => {
|
|
|
3900
3939
|
};
|
|
3901
3940
|
return (issue$1) => {
|
|
3902
3941
|
switch (issue$1.code) {
|
|
3903
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3942
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3904
3943
|
case "invalid_value":
|
|
3905
3944
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3906
3945
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3942,12 +3981,12 @@ const error$34 = () => {
|
|
|
3942
3981
|
};
|
|
3943
3982
|
};
|
|
3944
3983
|
function be_default() {
|
|
3945
|
-
return { localeError: error$
|
|
3984
|
+
return { localeError: error$36() };
|
|
3946
3985
|
}
|
|
3947
3986
|
|
|
3948
3987
|
//#endregion
|
|
3949
|
-
//#region ../../node_modules/zod/
|
|
3950
|
-
const error$
|
|
3988
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3989
|
+
const error$35 = () => {
|
|
3951
3990
|
const Sizable = {
|
|
3952
3991
|
string: {
|
|
3953
3992
|
unit: "caràcters",
|
|
@@ -3969,7 +4008,7 @@ const error$33 = () => {
|
|
|
3969
4008
|
function getSizing(origin) {
|
|
3970
4009
|
return Sizable[origin] ?? null;
|
|
3971
4010
|
}
|
|
3972
|
-
const parsedType$
|
|
4011
|
+
const parsedType$3 = (data) => {
|
|
3973
4012
|
const t = typeof data;
|
|
3974
4013
|
switch (t) {
|
|
3975
4014
|
case "number": {
|
|
@@ -4021,7 +4060,7 @@ const error$33 = () => {
|
|
|
4021
4060
|
};
|
|
4022
4061
|
return (issue$1) => {
|
|
4023
4062
|
switch (issue$1.code) {
|
|
4024
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
4063
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
4025
4064
|
case "invalid_value":
|
|
4026
4065
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4027
4066
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -4059,12 +4098,12 @@ const error$33 = () => {
|
|
|
4059
4098
|
};
|
|
4060
4099
|
};
|
|
4061
4100
|
function ca_default() {
|
|
4062
|
-
return { localeError: error$
|
|
4101
|
+
return { localeError: error$35() };
|
|
4063
4102
|
}
|
|
4064
4103
|
|
|
4065
4104
|
//#endregion
|
|
4066
|
-
//#region ../../node_modules/zod/
|
|
4067
|
-
const error$
|
|
4105
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
4106
|
+
const error$34 = () => {
|
|
4068
4107
|
const Sizable = {
|
|
4069
4108
|
string: {
|
|
4070
4109
|
unit: "znaků",
|
|
@@ -4086,7 +4125,7 @@ const error$32 = () => {
|
|
|
4086
4125
|
function getSizing(origin) {
|
|
4087
4126
|
return Sizable[origin] ?? null;
|
|
4088
4127
|
}
|
|
4089
|
-
const parsedType$
|
|
4128
|
+
const parsedType$3 = (data) => {
|
|
4090
4129
|
const t = typeof data;
|
|
4091
4130
|
switch (t) {
|
|
4092
4131
|
case "number": {
|
|
@@ -4156,7 +4195,7 @@ const error$32 = () => {
|
|
|
4156
4195
|
};
|
|
4157
4196
|
return (issue$1) => {
|
|
4158
4197
|
switch (issue$1.code) {
|
|
4159
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
4198
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
4160
4199
|
case "invalid_value":
|
|
4161
4200
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4162
4201
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4194,12 +4233,12 @@ const error$32 = () => {
|
|
|
4194
4233
|
};
|
|
4195
4234
|
};
|
|
4196
4235
|
function cs_default() {
|
|
4197
|
-
return { localeError: error$
|
|
4236
|
+
return { localeError: error$34() };
|
|
4198
4237
|
}
|
|
4199
4238
|
|
|
4200
4239
|
//#endregion
|
|
4201
|
-
//#region ../../node_modules/zod/
|
|
4202
|
-
const error$
|
|
4240
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
4241
|
+
const error$33 = () => {
|
|
4203
4242
|
const Sizable = {
|
|
4204
4243
|
string: {
|
|
4205
4244
|
unit: "Zeichen",
|
|
@@ -4221,7 +4260,7 @@ const error$31 = () => {
|
|
|
4221
4260
|
function getSizing(origin) {
|
|
4222
4261
|
return Sizable[origin] ?? null;
|
|
4223
4262
|
}
|
|
4224
|
-
const parsedType$
|
|
4263
|
+
const parsedType$3 = (data) => {
|
|
4225
4264
|
const t = typeof data;
|
|
4226
4265
|
switch (t) {
|
|
4227
4266
|
case "number": {
|
|
@@ -4273,7 +4312,7 @@ const error$31 = () => {
|
|
|
4273
4312
|
};
|
|
4274
4313
|
return (issue$1) => {
|
|
4275
4314
|
switch (issue$1.code) {
|
|
4276
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
4315
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
4277
4316
|
case "invalid_value":
|
|
4278
4317
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4279
4318
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4309,12 +4348,12 @@ const error$31 = () => {
|
|
|
4309
4348
|
};
|
|
4310
4349
|
};
|
|
4311
4350
|
function de_default() {
|
|
4312
|
-
return { localeError: error$
|
|
4351
|
+
return { localeError: error$33() };
|
|
4313
4352
|
}
|
|
4314
4353
|
|
|
4315
4354
|
//#endregion
|
|
4316
|
-
//#region ../../node_modules/zod/
|
|
4317
|
-
const parsedType$
|
|
4355
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
4356
|
+
const parsedType$2 = (data) => {
|
|
4318
4357
|
const t = typeof data;
|
|
4319
4358
|
switch (t) {
|
|
4320
4359
|
case "number": {
|
|
@@ -4334,7 +4373,7 @@ const parsedType$1 = (data) => {
|
|
|
4334
4373
|
}
|
|
4335
4374
|
return t;
|
|
4336
4375
|
};
|
|
4337
|
-
const error$
|
|
4376
|
+
const error$32 = () => {
|
|
4338
4377
|
const Sizable = {
|
|
4339
4378
|
string: {
|
|
4340
4379
|
unit: "characters",
|
|
@@ -4388,7 +4427,7 @@ const error$30 = () => {
|
|
|
4388
4427
|
};
|
|
4389
4428
|
return (issue$1) => {
|
|
4390
4429
|
switch (issue$1.code) {
|
|
4391
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
4430
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
4392
4431
|
case "invalid_value":
|
|
4393
4432
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4394
4433
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4426,12 +4465,127 @@ const error$30 = () => {
|
|
|
4426
4465
|
};
|
|
4427
4466
|
};
|
|
4428
4467
|
function en_default() {
|
|
4429
|
-
return { localeError: error$
|
|
4468
|
+
return { localeError: error$32() };
|
|
4430
4469
|
}
|
|
4431
4470
|
|
|
4432
4471
|
//#endregion
|
|
4433
|
-
//#region ../../node_modules/zod/
|
|
4434
|
-
const
|
|
4472
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4473
|
+
const parsedType$1 = (data) => {
|
|
4474
|
+
const t = typeof data;
|
|
4475
|
+
switch (t) {
|
|
4476
|
+
case "number": {
|
|
4477
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4478
|
+
}
|
|
4479
|
+
case "object": {
|
|
4480
|
+
if (Array.isArray(data)) {
|
|
4481
|
+
return "tabelo";
|
|
4482
|
+
}
|
|
4483
|
+
if (data === null) {
|
|
4484
|
+
return "senvalora";
|
|
4485
|
+
}
|
|
4486
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4487
|
+
return data.constructor.name;
|
|
4488
|
+
}
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
return t;
|
|
4492
|
+
};
|
|
4493
|
+
const error$31 = () => {
|
|
4494
|
+
const Sizable = {
|
|
4495
|
+
string: {
|
|
4496
|
+
unit: "karaktrojn",
|
|
4497
|
+
verb: "havi"
|
|
4498
|
+
},
|
|
4499
|
+
file: {
|
|
4500
|
+
unit: "bajtojn",
|
|
4501
|
+
verb: "havi"
|
|
4502
|
+
},
|
|
4503
|
+
array: {
|
|
4504
|
+
unit: "elementojn",
|
|
4505
|
+
verb: "havi"
|
|
4506
|
+
},
|
|
4507
|
+
set: {
|
|
4508
|
+
unit: "elementojn",
|
|
4509
|
+
verb: "havi"
|
|
4510
|
+
}
|
|
4511
|
+
};
|
|
4512
|
+
function getSizing(origin) {
|
|
4513
|
+
return Sizable[origin] ?? null;
|
|
4514
|
+
}
|
|
4515
|
+
const Nouns = {
|
|
4516
|
+
regex: "enigo",
|
|
4517
|
+
email: "retadreso",
|
|
4518
|
+
url: "URL",
|
|
4519
|
+
emoji: "emoĝio",
|
|
4520
|
+
uuid: "UUID",
|
|
4521
|
+
uuidv4: "UUIDv4",
|
|
4522
|
+
uuidv6: "UUIDv6",
|
|
4523
|
+
nanoid: "nanoid",
|
|
4524
|
+
guid: "GUID",
|
|
4525
|
+
cuid: "cuid",
|
|
4526
|
+
cuid2: "cuid2",
|
|
4527
|
+
ulid: "ULID",
|
|
4528
|
+
xid: "XID",
|
|
4529
|
+
ksuid: "KSUID",
|
|
4530
|
+
datetime: "ISO-datotempo",
|
|
4531
|
+
date: "ISO-dato",
|
|
4532
|
+
time: "ISO-tempo",
|
|
4533
|
+
duration: "ISO-daŭro",
|
|
4534
|
+
ipv4: "IPv4-adreso",
|
|
4535
|
+
ipv6: "IPv6-adreso",
|
|
4536
|
+
cidrv4: "IPv4-rango",
|
|
4537
|
+
cidrv6: "IPv6-rango",
|
|
4538
|
+
base64: "64-ume kodita karaktraro",
|
|
4539
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4540
|
+
json_string: "JSON-karaktraro",
|
|
4541
|
+
e164: "E.164-nombro",
|
|
4542
|
+
jwt: "JWT",
|
|
4543
|
+
template_literal: "enigo"
|
|
4544
|
+
};
|
|
4545
|
+
return (issue$1) => {
|
|
4546
|
+
switch (issue$1.code) {
|
|
4547
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4548
|
+
case "invalid_value":
|
|
4549
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4550
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4551
|
+
case "too_big": {
|
|
4552
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4553
|
+
const sizing = getSizing(issue$1.origin);
|
|
4554
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4555
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4556
|
+
}
|
|
4557
|
+
case "too_small": {
|
|
4558
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4559
|
+
const sizing = getSizing(issue$1.origin);
|
|
4560
|
+
if (sizing) {
|
|
4561
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4562
|
+
}
|
|
4563
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4564
|
+
}
|
|
4565
|
+
case "invalid_format": {
|
|
4566
|
+
const _issue = issue$1;
|
|
4567
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4568
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4569
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4570
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4571
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4572
|
+
}
|
|
4573
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4574
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4575
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4576
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4577
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4578
|
+
default: return `Nevalida enigo`;
|
|
4579
|
+
}
|
|
4580
|
+
};
|
|
4581
|
+
};
|
|
4582
|
+
function eo_default() {
|
|
4583
|
+
return { localeError: error$31() };
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4586
|
+
//#endregion
|
|
4587
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4588
|
+
const error$30 = () => {
|
|
4435
4589
|
const Sizable = {
|
|
4436
4590
|
string: {
|
|
4437
4591
|
unit: "caracteres",
|
|
@@ -4453,7 +4607,7 @@ const error$29 = () => {
|
|
|
4453
4607
|
function getSizing(origin) {
|
|
4454
4608
|
return Sizable[origin] ?? null;
|
|
4455
4609
|
}
|
|
4456
|
-
const parsedType$
|
|
4610
|
+
const parsedType$3 = (data) => {
|
|
4457
4611
|
const t = typeof data;
|
|
4458
4612
|
switch (t) {
|
|
4459
4613
|
case "number": {
|
|
@@ -4505,7 +4659,7 @@ const error$29 = () => {
|
|
|
4505
4659
|
};
|
|
4506
4660
|
return (issue$1) => {
|
|
4507
4661
|
switch (issue$1.code) {
|
|
4508
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4662
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4509
4663
|
case "invalid_value":
|
|
4510
4664
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4511
4665
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4541,12 +4695,12 @@ const error$29 = () => {
|
|
|
4541
4695
|
};
|
|
4542
4696
|
};
|
|
4543
4697
|
function es_default() {
|
|
4544
|
-
return { localeError: error$
|
|
4698
|
+
return { localeError: error$30() };
|
|
4545
4699
|
}
|
|
4546
4700
|
|
|
4547
4701
|
//#endregion
|
|
4548
|
-
//#region ../../node_modules/zod/
|
|
4549
|
-
const error$
|
|
4702
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4703
|
+
const error$29 = () => {
|
|
4550
4704
|
const Sizable = {
|
|
4551
4705
|
string: {
|
|
4552
4706
|
unit: "کاراکتر",
|
|
@@ -4568,7 +4722,7 @@ const error$28 = () => {
|
|
|
4568
4722
|
function getSizing(origin) {
|
|
4569
4723
|
return Sizable[origin] ?? null;
|
|
4570
4724
|
}
|
|
4571
|
-
const parsedType$
|
|
4725
|
+
const parsedType$3 = (data) => {
|
|
4572
4726
|
const t = typeof data;
|
|
4573
4727
|
switch (t) {
|
|
4574
4728
|
case "number": {
|
|
@@ -4620,7 +4774,7 @@ const error$28 = () => {
|
|
|
4620
4774
|
};
|
|
4621
4775
|
return (issue$1) => {
|
|
4622
4776
|
switch (issue$1.code) {
|
|
4623
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4777
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4624
4778
|
case "invalid_value":
|
|
4625
4779
|
if (issue$1.values.length === 1) {
|
|
4626
4780
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4668,12 +4822,12 @@ const error$28 = () => {
|
|
|
4668
4822
|
};
|
|
4669
4823
|
};
|
|
4670
4824
|
function fa_default() {
|
|
4671
|
-
return { localeError: error$
|
|
4825
|
+
return { localeError: error$29() };
|
|
4672
4826
|
}
|
|
4673
4827
|
|
|
4674
4828
|
//#endregion
|
|
4675
|
-
//#region ../../node_modules/zod/
|
|
4676
|
-
const error$
|
|
4829
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4830
|
+
const error$28 = () => {
|
|
4677
4831
|
const Sizable = {
|
|
4678
4832
|
string: {
|
|
4679
4833
|
unit: "merkkiä",
|
|
@@ -4711,7 +4865,7 @@ const error$27 = () => {
|
|
|
4711
4865
|
function getSizing(origin) {
|
|
4712
4866
|
return Sizable[origin] ?? null;
|
|
4713
4867
|
}
|
|
4714
|
-
const parsedType$
|
|
4868
|
+
const parsedType$3 = (data) => {
|
|
4715
4869
|
const t = typeof data;
|
|
4716
4870
|
switch (t) {
|
|
4717
4871
|
case "number": {
|
|
@@ -4763,7 +4917,7 @@ const error$27 = () => {
|
|
|
4763
4917
|
};
|
|
4764
4918
|
return (issue$1) => {
|
|
4765
4919
|
switch (issue$1.code) {
|
|
4766
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4920
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4767
4921
|
case "invalid_value":
|
|
4768
4922
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4769
4923
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4803,12 +4957,12 @@ const error$27 = () => {
|
|
|
4803
4957
|
};
|
|
4804
4958
|
};
|
|
4805
4959
|
function fi_default() {
|
|
4806
|
-
return { localeError: error$
|
|
4960
|
+
return { localeError: error$28() };
|
|
4807
4961
|
}
|
|
4808
4962
|
|
|
4809
4963
|
//#endregion
|
|
4810
|
-
//#region ../../node_modules/zod/
|
|
4811
|
-
const error$
|
|
4964
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4965
|
+
const error$27 = () => {
|
|
4812
4966
|
const Sizable = {
|
|
4813
4967
|
string: {
|
|
4814
4968
|
unit: "caractères",
|
|
@@ -4830,7 +4984,7 @@ const error$26 = () => {
|
|
|
4830
4984
|
function getSizing(origin) {
|
|
4831
4985
|
return Sizable[origin] ?? null;
|
|
4832
4986
|
}
|
|
4833
|
-
const parsedType$
|
|
4987
|
+
const parsedType$3 = (data) => {
|
|
4834
4988
|
const t = typeof data;
|
|
4835
4989
|
switch (t) {
|
|
4836
4990
|
case "number": {
|
|
@@ -4882,7 +5036,7 @@ const error$26 = () => {
|
|
|
4882
5036
|
};
|
|
4883
5037
|
return (issue$1) => {
|
|
4884
5038
|
switch (issue$1.code) {
|
|
4885
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
5039
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4886
5040
|
case "invalid_value":
|
|
4887
5041
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4888
5042
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4918,12 +5072,12 @@ const error$26 = () => {
|
|
|
4918
5072
|
};
|
|
4919
5073
|
};
|
|
4920
5074
|
function fr_default() {
|
|
4921
|
-
return { localeError: error$
|
|
5075
|
+
return { localeError: error$27() };
|
|
4922
5076
|
}
|
|
4923
5077
|
|
|
4924
5078
|
//#endregion
|
|
4925
|
-
//#region ../../node_modules/zod/
|
|
4926
|
-
const error$
|
|
5079
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
5080
|
+
const error$26 = () => {
|
|
4927
5081
|
const Sizable = {
|
|
4928
5082
|
string: {
|
|
4929
5083
|
unit: "caractères",
|
|
@@ -4945,7 +5099,7 @@ const error$25 = () => {
|
|
|
4945
5099
|
function getSizing(origin) {
|
|
4946
5100
|
return Sizable[origin] ?? null;
|
|
4947
5101
|
}
|
|
4948
|
-
const parsedType$
|
|
5102
|
+
const parsedType$3 = (data) => {
|
|
4949
5103
|
const t = typeof data;
|
|
4950
5104
|
switch (t) {
|
|
4951
5105
|
case "number": {
|
|
@@ -4997,7 +5151,7 @@ const error$25 = () => {
|
|
|
4997
5151
|
};
|
|
4998
5152
|
return (issue$1) => {
|
|
4999
5153
|
switch (issue$1.code) {
|
|
5000
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
5154
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
5001
5155
|
case "invalid_value":
|
|
5002
5156
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5003
5157
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5035,12 +5189,12 @@ const error$25 = () => {
|
|
|
5035
5189
|
};
|
|
5036
5190
|
};
|
|
5037
5191
|
function fr_CA_default() {
|
|
5038
|
-
return { localeError: error$
|
|
5192
|
+
return { localeError: error$26() };
|
|
5039
5193
|
}
|
|
5040
5194
|
|
|
5041
5195
|
//#endregion
|
|
5042
|
-
//#region ../../node_modules/zod/
|
|
5043
|
-
const error$
|
|
5196
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
5197
|
+
const error$25 = () => {
|
|
5044
5198
|
const Sizable = {
|
|
5045
5199
|
string: {
|
|
5046
5200
|
unit: "אותיות",
|
|
@@ -5062,7 +5216,7 @@ const error$24 = () => {
|
|
|
5062
5216
|
function getSizing(origin) {
|
|
5063
5217
|
return Sizable[origin] ?? null;
|
|
5064
5218
|
}
|
|
5065
|
-
const parsedType$
|
|
5219
|
+
const parsedType$3 = (data) => {
|
|
5066
5220
|
const t = typeof data;
|
|
5067
5221
|
switch (t) {
|
|
5068
5222
|
case "number": {
|
|
@@ -5114,7 +5268,7 @@ const error$24 = () => {
|
|
|
5114
5268
|
};
|
|
5115
5269
|
return (issue$1) => {
|
|
5116
5270
|
switch (issue$1.code) {
|
|
5117
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
5271
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
5118
5272
|
case "invalid_value":
|
|
5119
5273
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5120
5274
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5150,12 +5304,12 @@ const error$24 = () => {
|
|
|
5150
5304
|
};
|
|
5151
5305
|
};
|
|
5152
5306
|
function he_default() {
|
|
5153
|
-
return { localeError: error$
|
|
5307
|
+
return { localeError: error$25() };
|
|
5154
5308
|
}
|
|
5155
5309
|
|
|
5156
5310
|
//#endregion
|
|
5157
|
-
//#region ../../node_modules/zod/
|
|
5158
|
-
const error$
|
|
5311
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
5312
|
+
const error$24 = () => {
|
|
5159
5313
|
const Sizable = {
|
|
5160
5314
|
string: {
|
|
5161
5315
|
unit: "karakter",
|
|
@@ -5177,7 +5331,7 @@ const error$23 = () => {
|
|
|
5177
5331
|
function getSizing(origin) {
|
|
5178
5332
|
return Sizable[origin] ?? null;
|
|
5179
5333
|
}
|
|
5180
|
-
const parsedType$
|
|
5334
|
+
const parsedType$3 = (data) => {
|
|
5181
5335
|
const t = typeof data;
|
|
5182
5336
|
switch (t) {
|
|
5183
5337
|
case "number": {
|
|
@@ -5229,7 +5383,7 @@ const error$23 = () => {
|
|
|
5229
5383
|
};
|
|
5230
5384
|
return (issue$1) => {
|
|
5231
5385
|
switch (issue$1.code) {
|
|
5232
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
5386
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
5233
5387
|
case "invalid_value":
|
|
5234
5388
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5235
5389
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5265,12 +5419,12 @@ const error$23 = () => {
|
|
|
5265
5419
|
};
|
|
5266
5420
|
};
|
|
5267
5421
|
function hu_default() {
|
|
5268
|
-
return { localeError: error$
|
|
5422
|
+
return { localeError: error$24() };
|
|
5269
5423
|
}
|
|
5270
5424
|
|
|
5271
5425
|
//#endregion
|
|
5272
|
-
//#region ../../node_modules/zod/
|
|
5273
|
-
const error$
|
|
5426
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
5427
|
+
const error$23 = () => {
|
|
5274
5428
|
const Sizable = {
|
|
5275
5429
|
string: {
|
|
5276
5430
|
unit: "karakter",
|
|
@@ -5292,7 +5446,7 @@ const error$22 = () => {
|
|
|
5292
5446
|
function getSizing(origin) {
|
|
5293
5447
|
return Sizable[origin] ?? null;
|
|
5294
5448
|
}
|
|
5295
|
-
const parsedType$
|
|
5449
|
+
const parsedType$3 = (data) => {
|
|
5296
5450
|
const t = typeof data;
|
|
5297
5451
|
switch (t) {
|
|
5298
5452
|
case "number": {
|
|
@@ -5344,7 +5498,7 @@ const error$22 = () => {
|
|
|
5344
5498
|
};
|
|
5345
5499
|
return (issue$1) => {
|
|
5346
5500
|
switch (issue$1.code) {
|
|
5347
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5501
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5348
5502
|
case "invalid_value":
|
|
5349
5503
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5350
5504
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5380,12 +5534,12 @@ const error$22 = () => {
|
|
|
5380
5534
|
};
|
|
5381
5535
|
};
|
|
5382
5536
|
function id_default() {
|
|
5383
|
-
return { localeError: error$
|
|
5537
|
+
return { localeError: error$23() };
|
|
5384
5538
|
}
|
|
5385
5539
|
|
|
5386
5540
|
//#endregion
|
|
5387
|
-
//#region ../../node_modules/zod/
|
|
5388
|
-
const error$
|
|
5541
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5542
|
+
const error$22 = () => {
|
|
5389
5543
|
const Sizable = {
|
|
5390
5544
|
string: {
|
|
5391
5545
|
unit: "caratteri",
|
|
@@ -5407,7 +5561,7 @@ const error$21 = () => {
|
|
|
5407
5561
|
function getSizing(origin) {
|
|
5408
5562
|
return Sizable[origin] ?? null;
|
|
5409
5563
|
}
|
|
5410
|
-
const parsedType$
|
|
5564
|
+
const parsedType$3 = (data) => {
|
|
5411
5565
|
const t = typeof data;
|
|
5412
5566
|
switch (t) {
|
|
5413
5567
|
case "number": {
|
|
@@ -5459,7 +5613,7 @@ const error$21 = () => {
|
|
|
5459
5613
|
};
|
|
5460
5614
|
return (issue$1) => {
|
|
5461
5615
|
switch (issue$1.code) {
|
|
5462
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5616
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
5463
5617
|
case "invalid_value":
|
|
5464
5618
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5465
5619
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5495,12 +5649,12 @@ const error$21 = () => {
|
|
|
5495
5649
|
};
|
|
5496
5650
|
};
|
|
5497
5651
|
function it_default() {
|
|
5498
|
-
return { localeError: error$
|
|
5652
|
+
return { localeError: error$22() };
|
|
5499
5653
|
}
|
|
5500
5654
|
|
|
5501
5655
|
//#endregion
|
|
5502
|
-
//#region ../../node_modules/zod/
|
|
5503
|
-
const error$
|
|
5656
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5657
|
+
const error$21 = () => {
|
|
5504
5658
|
const Sizable = {
|
|
5505
5659
|
string: {
|
|
5506
5660
|
unit: "文字",
|
|
@@ -5522,7 +5676,7 @@ const error$20 = () => {
|
|
|
5522
5676
|
function getSizing(origin) {
|
|
5523
5677
|
return Sizable[origin] ?? null;
|
|
5524
5678
|
}
|
|
5525
|
-
const parsedType$
|
|
5679
|
+
const parsedType$3 = (data) => {
|
|
5526
5680
|
const t = typeof data;
|
|
5527
5681
|
switch (t) {
|
|
5528
5682
|
case "number": {
|
|
@@ -5574,21 +5728,21 @@ const error$20 = () => {
|
|
|
5574
5728
|
};
|
|
5575
5729
|
return (issue$1) => {
|
|
5576
5730
|
switch (issue$1.code) {
|
|
5577
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5731
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5578
5732
|
case "invalid_value":
|
|
5579
5733
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5580
5734
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5581
5735
|
case "too_big": {
|
|
5582
|
-
const adj = issue$1.inclusive ? "
|
|
5736
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5583
5737
|
const sizing = getSizing(issue$1.origin);
|
|
5584
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5585
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5738
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5739
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5586
5740
|
}
|
|
5587
5741
|
case "too_small": {
|
|
5588
|
-
const adj = issue$1.inclusive ? "
|
|
5742
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5589
5743
|
const sizing = getSizing(issue$1.origin);
|
|
5590
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5591
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5744
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5745
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5592
5746
|
}
|
|
5593
5747
|
case "invalid_format": {
|
|
5594
5748
|
const _issue = issue$1;
|
|
@@ -5608,12 +5762,12 @@ const error$20 = () => {
|
|
|
5608
5762
|
};
|
|
5609
5763
|
};
|
|
5610
5764
|
function ja_default() {
|
|
5611
|
-
return { localeError: error$
|
|
5765
|
+
return { localeError: error$21() };
|
|
5612
5766
|
}
|
|
5613
5767
|
|
|
5614
5768
|
//#endregion
|
|
5615
|
-
//#region ../../node_modules/zod/
|
|
5616
|
-
const error$
|
|
5769
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5770
|
+
const error$20 = () => {
|
|
5617
5771
|
const Sizable = {
|
|
5618
5772
|
string: {
|
|
5619
5773
|
unit: "តួអក្សរ",
|
|
@@ -5635,7 +5789,7 @@ const error$19 = () => {
|
|
|
5635
5789
|
function getSizing(origin) {
|
|
5636
5790
|
return Sizable[origin] ?? null;
|
|
5637
5791
|
}
|
|
5638
|
-
const parsedType$
|
|
5792
|
+
const parsedType$3 = (data) => {
|
|
5639
5793
|
const t = typeof data;
|
|
5640
5794
|
switch (t) {
|
|
5641
5795
|
case "number": {
|
|
@@ -5687,7 +5841,7 @@ const error$19 = () => {
|
|
|
5687
5841
|
};
|
|
5688
5842
|
return (issue$1) => {
|
|
5689
5843
|
switch (issue$1.code) {
|
|
5690
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5844
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5691
5845
|
case "invalid_value":
|
|
5692
5846
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5693
5847
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5725,12 +5879,12 @@ const error$19 = () => {
|
|
|
5725
5879
|
};
|
|
5726
5880
|
};
|
|
5727
5881
|
function kh_default() {
|
|
5728
|
-
return { localeError: error$
|
|
5882
|
+
return { localeError: error$20() };
|
|
5729
5883
|
}
|
|
5730
5884
|
|
|
5731
5885
|
//#endregion
|
|
5732
|
-
//#region ../../node_modules/zod/
|
|
5733
|
-
const error$
|
|
5886
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5887
|
+
const error$19 = () => {
|
|
5734
5888
|
const Sizable = {
|
|
5735
5889
|
string: {
|
|
5736
5890
|
unit: "문자",
|
|
@@ -5752,7 +5906,7 @@ const error$18 = () => {
|
|
|
5752
5906
|
function getSizing(origin) {
|
|
5753
5907
|
return Sizable[origin] ?? null;
|
|
5754
5908
|
}
|
|
5755
|
-
const parsedType$
|
|
5909
|
+
const parsedType$3 = (data) => {
|
|
5756
5910
|
const t = typeof data;
|
|
5757
5911
|
switch (t) {
|
|
5758
5912
|
case "number": {
|
|
@@ -5804,7 +5958,7 @@ const error$18 = () => {
|
|
|
5804
5958
|
};
|
|
5805
5959
|
return (issue$1) => {
|
|
5806
5960
|
switch (issue$1.code) {
|
|
5807
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5961
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5808
5962
|
case "invalid_value":
|
|
5809
5963
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5810
5964
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5846,12 +6000,12 @@ const error$18 = () => {
|
|
|
5846
6000
|
};
|
|
5847
6001
|
};
|
|
5848
6002
|
function ko_default() {
|
|
5849
|
-
return { localeError: error$
|
|
6003
|
+
return { localeError: error$19() };
|
|
5850
6004
|
}
|
|
5851
6005
|
|
|
5852
6006
|
//#endregion
|
|
5853
|
-
//#region ../../node_modules/zod/
|
|
5854
|
-
const error$
|
|
6007
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
6008
|
+
const error$18 = () => {
|
|
5855
6009
|
const Sizable = {
|
|
5856
6010
|
string: {
|
|
5857
6011
|
unit: "знаци",
|
|
@@ -5873,7 +6027,7 @@ const error$17 = () => {
|
|
|
5873
6027
|
function getSizing(origin) {
|
|
5874
6028
|
return Sizable[origin] ?? null;
|
|
5875
6029
|
}
|
|
5876
|
-
const parsedType$
|
|
6030
|
+
const parsedType$3 = (data) => {
|
|
5877
6031
|
const t = typeof data;
|
|
5878
6032
|
switch (t) {
|
|
5879
6033
|
case "number": {
|
|
@@ -5925,7 +6079,7 @@ const error$17 = () => {
|
|
|
5925
6079
|
};
|
|
5926
6080
|
return (issue$1) => {
|
|
5927
6081
|
switch (issue$1.code) {
|
|
5928
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
6082
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5929
6083
|
case "invalid_value":
|
|
5930
6084
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5931
6085
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5963,12 +6117,12 @@ const error$17 = () => {
|
|
|
5963
6117
|
};
|
|
5964
6118
|
};
|
|
5965
6119
|
function mk_default() {
|
|
5966
|
-
return { localeError: error$
|
|
6120
|
+
return { localeError: error$18() };
|
|
5967
6121
|
}
|
|
5968
6122
|
|
|
5969
6123
|
//#endregion
|
|
5970
|
-
//#region ../../node_modules/zod/
|
|
5971
|
-
const error$
|
|
6124
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
6125
|
+
const error$17 = () => {
|
|
5972
6126
|
const Sizable = {
|
|
5973
6127
|
string: {
|
|
5974
6128
|
unit: "aksara",
|
|
@@ -5990,7 +6144,7 @@ const error$16 = () => {
|
|
|
5990
6144
|
function getSizing(origin) {
|
|
5991
6145
|
return Sizable[origin] ?? null;
|
|
5992
6146
|
}
|
|
5993
|
-
const parsedType$
|
|
6147
|
+
const parsedType$3 = (data) => {
|
|
5994
6148
|
const t = typeof data;
|
|
5995
6149
|
switch (t) {
|
|
5996
6150
|
case "number": {
|
|
@@ -6042,7 +6196,7 @@ const error$16 = () => {
|
|
|
6042
6196
|
};
|
|
6043
6197
|
return (issue$1) => {
|
|
6044
6198
|
switch (issue$1.code) {
|
|
6045
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
6199
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
6046
6200
|
case "invalid_value":
|
|
6047
6201
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6048
6202
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6078,12 +6232,12 @@ const error$16 = () => {
|
|
|
6078
6232
|
};
|
|
6079
6233
|
};
|
|
6080
6234
|
function ms_default() {
|
|
6081
|
-
return { localeError: error$
|
|
6235
|
+
return { localeError: error$17() };
|
|
6082
6236
|
}
|
|
6083
6237
|
|
|
6084
6238
|
//#endregion
|
|
6085
|
-
//#region ../../node_modules/zod/
|
|
6086
|
-
const error$
|
|
6239
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
6240
|
+
const error$16 = () => {
|
|
6087
6241
|
const Sizable = {
|
|
6088
6242
|
string: { unit: "tekens" },
|
|
6089
6243
|
file: { unit: "bytes" },
|
|
@@ -6093,7 +6247,7 @@ const error$15 = () => {
|
|
|
6093
6247
|
function getSizing(origin) {
|
|
6094
6248
|
return Sizable[origin] ?? null;
|
|
6095
6249
|
}
|
|
6096
|
-
const parsedType$
|
|
6250
|
+
const parsedType$3 = (data) => {
|
|
6097
6251
|
const t = typeof data;
|
|
6098
6252
|
switch (t) {
|
|
6099
6253
|
case "number": {
|
|
@@ -6145,7 +6299,7 @@ const error$15 = () => {
|
|
|
6145
6299
|
};
|
|
6146
6300
|
return (issue$1) => {
|
|
6147
6301
|
switch (issue$1.code) {
|
|
6148
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
6302
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
6149
6303
|
case "invalid_value":
|
|
6150
6304
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6151
6305
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6183,12 +6337,12 @@ const error$15 = () => {
|
|
|
6183
6337
|
};
|
|
6184
6338
|
};
|
|
6185
6339
|
function nl_default() {
|
|
6186
|
-
return { localeError: error$
|
|
6340
|
+
return { localeError: error$16() };
|
|
6187
6341
|
}
|
|
6188
6342
|
|
|
6189
6343
|
//#endregion
|
|
6190
|
-
//#region ../../node_modules/zod/
|
|
6191
|
-
const error$
|
|
6344
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
6345
|
+
const error$15 = () => {
|
|
6192
6346
|
const Sizable = {
|
|
6193
6347
|
string: {
|
|
6194
6348
|
unit: "tegn",
|
|
@@ -6210,7 +6364,7 @@ const error$14 = () => {
|
|
|
6210
6364
|
function getSizing(origin) {
|
|
6211
6365
|
return Sizable[origin] ?? null;
|
|
6212
6366
|
}
|
|
6213
|
-
const parsedType$
|
|
6367
|
+
const parsedType$3 = (data) => {
|
|
6214
6368
|
const t = typeof data;
|
|
6215
6369
|
switch (t) {
|
|
6216
6370
|
case "number": {
|
|
@@ -6262,7 +6416,7 @@ const error$14 = () => {
|
|
|
6262
6416
|
};
|
|
6263
6417
|
return (issue$1) => {
|
|
6264
6418
|
switch (issue$1.code) {
|
|
6265
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
6419
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
6266
6420
|
case "invalid_value":
|
|
6267
6421
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6268
6422
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6298,12 +6452,12 @@ const error$14 = () => {
|
|
|
6298
6452
|
};
|
|
6299
6453
|
};
|
|
6300
6454
|
function no_default() {
|
|
6301
|
-
return { localeError: error$
|
|
6455
|
+
return { localeError: error$15() };
|
|
6302
6456
|
}
|
|
6303
6457
|
|
|
6304
6458
|
//#endregion
|
|
6305
|
-
//#region ../../node_modules/zod/
|
|
6306
|
-
const error$
|
|
6459
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6460
|
+
const error$14 = () => {
|
|
6307
6461
|
const Sizable = {
|
|
6308
6462
|
string: {
|
|
6309
6463
|
unit: "harf",
|
|
@@ -6325,7 +6479,7 @@ const error$13 = () => {
|
|
|
6325
6479
|
function getSizing(origin) {
|
|
6326
6480
|
return Sizable[origin] ?? null;
|
|
6327
6481
|
}
|
|
6328
|
-
const parsedType$
|
|
6482
|
+
const parsedType$3 = (data) => {
|
|
6329
6483
|
const t = typeof data;
|
|
6330
6484
|
switch (t) {
|
|
6331
6485
|
case "number": {
|
|
@@ -6377,7 +6531,7 @@ const error$13 = () => {
|
|
|
6377
6531
|
};
|
|
6378
6532
|
return (issue$1) => {
|
|
6379
6533
|
switch (issue$1.code) {
|
|
6380
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6534
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
6381
6535
|
case "invalid_value":
|
|
6382
6536
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6383
6537
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6413,42 +6567,42 @@ const error$13 = () => {
|
|
|
6413
6567
|
};
|
|
6414
6568
|
};
|
|
6415
6569
|
function ota_default() {
|
|
6416
|
-
return { localeError: error$
|
|
6570
|
+
return { localeError: error$14() };
|
|
6417
6571
|
}
|
|
6418
6572
|
|
|
6419
6573
|
//#endregion
|
|
6420
|
-
//#region ../../node_modules/zod/
|
|
6421
|
-
const error$
|
|
6574
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6575
|
+
const error$13 = () => {
|
|
6422
6576
|
const Sizable = {
|
|
6423
6577
|
string: {
|
|
6424
|
-
unit: "
|
|
6425
|
-
verb: "
|
|
6578
|
+
unit: "توکي",
|
|
6579
|
+
verb: "ولري"
|
|
6426
6580
|
},
|
|
6427
6581
|
file: {
|
|
6428
|
-
unit: "
|
|
6429
|
-
verb: "
|
|
6582
|
+
unit: "بایټس",
|
|
6583
|
+
verb: "ولري"
|
|
6430
6584
|
},
|
|
6431
6585
|
array: {
|
|
6432
|
-
unit: "
|
|
6433
|
-
verb: "
|
|
6586
|
+
unit: "توکي",
|
|
6587
|
+
verb: "ولري"
|
|
6434
6588
|
},
|
|
6435
6589
|
set: {
|
|
6436
|
-
unit: "
|
|
6437
|
-
verb: "
|
|
6590
|
+
unit: "توکي",
|
|
6591
|
+
verb: "ولري"
|
|
6438
6592
|
}
|
|
6439
6593
|
};
|
|
6440
6594
|
function getSizing(origin) {
|
|
6441
6595
|
return Sizable[origin] ?? null;
|
|
6442
6596
|
}
|
|
6443
|
-
const parsedType$
|
|
6597
|
+
const parsedType$3 = (data) => {
|
|
6444
6598
|
const t = typeof data;
|
|
6445
6599
|
switch (t) {
|
|
6446
6600
|
case "number": {
|
|
6447
|
-
return Number.isNaN(data) ? "NaN" : "
|
|
6601
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6448
6602
|
}
|
|
6449
6603
|
case "object": {
|
|
6450
6604
|
if (Array.isArray(data)) {
|
|
6451
|
-
return "
|
|
6605
|
+
return "ارې";
|
|
6452
6606
|
}
|
|
6453
6607
|
if (data === null) {
|
|
6454
6608
|
return "null";
|
|
@@ -6461,10 +6615,10 @@ const error$12 = () => {
|
|
|
6461
6615
|
return t;
|
|
6462
6616
|
};
|
|
6463
6617
|
const Nouns = {
|
|
6464
|
-
regex: "
|
|
6465
|
-
email: "
|
|
6466
|
-
url: "
|
|
6467
|
-
emoji: "
|
|
6618
|
+
regex: "ورودي",
|
|
6619
|
+
email: "بریښنالیک",
|
|
6620
|
+
url: "یو آر ال",
|
|
6621
|
+
emoji: "ایموجي",
|
|
6468
6622
|
uuid: "UUID",
|
|
6469
6623
|
uuidv4: "UUIDv4",
|
|
6470
6624
|
uuidv6: "UUIDv6",
|
|
@@ -6475,26 +6629,153 @@ const error$12 = () => {
|
|
|
6475
6629
|
ulid: "ULID",
|
|
6476
6630
|
xid: "XID",
|
|
6477
6631
|
ksuid: "KSUID",
|
|
6478
|
-
datetime: "
|
|
6479
|
-
date: "
|
|
6480
|
-
time: "
|
|
6481
|
-
duration: "
|
|
6482
|
-
ipv4: "
|
|
6483
|
-
ipv6: "
|
|
6484
|
-
cidrv4: "
|
|
6485
|
-
cidrv6: "
|
|
6486
|
-
base64: "
|
|
6487
|
-
base64url: "
|
|
6488
|
-
json_string: "
|
|
6489
|
-
e164: "
|
|
6632
|
+
datetime: "نیټه او وخت",
|
|
6633
|
+
date: "نېټه",
|
|
6634
|
+
time: "وخت",
|
|
6635
|
+
duration: "موده",
|
|
6636
|
+
ipv4: "د IPv4 پته",
|
|
6637
|
+
ipv6: "د IPv6 پته",
|
|
6638
|
+
cidrv4: "د IPv4 ساحه",
|
|
6639
|
+
cidrv6: "د IPv6 ساحه",
|
|
6640
|
+
base64: "base64-encoded متن",
|
|
6641
|
+
base64url: "base64url-encoded متن",
|
|
6642
|
+
json_string: "JSON متن",
|
|
6643
|
+
e164: "د E.164 شمېره",
|
|
6490
6644
|
jwt: "JWT",
|
|
6491
|
-
template_literal: "
|
|
6645
|
+
template_literal: "ورودي"
|
|
6492
6646
|
};
|
|
6493
6647
|
return (issue$1) => {
|
|
6494
6648
|
switch (issue$1.code) {
|
|
6495
|
-
case "invalid_type": return
|
|
6649
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6496
6650
|
case "invalid_value":
|
|
6497
|
-
if (issue$1.values.length === 1)
|
|
6651
|
+
if (issue$1.values.length === 1) {
|
|
6652
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6653
|
+
}
|
|
6654
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6655
|
+
case "too_big": {
|
|
6656
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6657
|
+
const sizing = getSizing(issue$1.origin);
|
|
6658
|
+
if (sizing) {
|
|
6659
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6660
|
+
}
|
|
6661
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6662
|
+
}
|
|
6663
|
+
case "too_small": {
|
|
6664
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6665
|
+
const sizing = getSizing(issue$1.origin);
|
|
6666
|
+
if (sizing) {
|
|
6667
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6668
|
+
}
|
|
6669
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6670
|
+
}
|
|
6671
|
+
case "invalid_format": {
|
|
6672
|
+
const _issue = issue$1;
|
|
6673
|
+
if (_issue.format === "starts_with") {
|
|
6674
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6675
|
+
}
|
|
6676
|
+
if (_issue.format === "ends_with") {
|
|
6677
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6678
|
+
}
|
|
6679
|
+
if (_issue.format === "includes") {
|
|
6680
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6681
|
+
}
|
|
6682
|
+
if (_issue.format === "regex") {
|
|
6683
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6684
|
+
}
|
|
6685
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6686
|
+
}
|
|
6687
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6688
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6689
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6690
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6691
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6692
|
+
default: return `ناسمه ورودي`;
|
|
6693
|
+
}
|
|
6694
|
+
};
|
|
6695
|
+
};
|
|
6696
|
+
function ps_default() {
|
|
6697
|
+
return { localeError: error$13() };
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6700
|
+
//#endregion
|
|
6701
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
6702
|
+
const error$12 = () => {
|
|
6703
|
+
const Sizable = {
|
|
6704
|
+
string: {
|
|
6705
|
+
unit: "znaków",
|
|
6706
|
+
verb: "mieć"
|
|
6707
|
+
},
|
|
6708
|
+
file: {
|
|
6709
|
+
unit: "bajtów",
|
|
6710
|
+
verb: "mieć"
|
|
6711
|
+
},
|
|
6712
|
+
array: {
|
|
6713
|
+
unit: "elementów",
|
|
6714
|
+
verb: "mieć"
|
|
6715
|
+
},
|
|
6716
|
+
set: {
|
|
6717
|
+
unit: "elementów",
|
|
6718
|
+
verb: "mieć"
|
|
6719
|
+
}
|
|
6720
|
+
};
|
|
6721
|
+
function getSizing(origin) {
|
|
6722
|
+
return Sizable[origin] ?? null;
|
|
6723
|
+
}
|
|
6724
|
+
const parsedType$3 = (data) => {
|
|
6725
|
+
const t = typeof data;
|
|
6726
|
+
switch (t) {
|
|
6727
|
+
case "number": {
|
|
6728
|
+
return Number.isNaN(data) ? "NaN" : "liczba";
|
|
6729
|
+
}
|
|
6730
|
+
case "object": {
|
|
6731
|
+
if (Array.isArray(data)) {
|
|
6732
|
+
return "tablica";
|
|
6733
|
+
}
|
|
6734
|
+
if (data === null) {
|
|
6735
|
+
return "null";
|
|
6736
|
+
}
|
|
6737
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6738
|
+
return data.constructor.name;
|
|
6739
|
+
}
|
|
6740
|
+
}
|
|
6741
|
+
}
|
|
6742
|
+
return t;
|
|
6743
|
+
};
|
|
6744
|
+
const Nouns = {
|
|
6745
|
+
regex: "wyrażenie",
|
|
6746
|
+
email: "adres email",
|
|
6747
|
+
url: "URL",
|
|
6748
|
+
emoji: "emoji",
|
|
6749
|
+
uuid: "UUID",
|
|
6750
|
+
uuidv4: "UUIDv4",
|
|
6751
|
+
uuidv6: "UUIDv6",
|
|
6752
|
+
nanoid: "nanoid",
|
|
6753
|
+
guid: "GUID",
|
|
6754
|
+
cuid: "cuid",
|
|
6755
|
+
cuid2: "cuid2",
|
|
6756
|
+
ulid: "ULID",
|
|
6757
|
+
xid: "XID",
|
|
6758
|
+
ksuid: "KSUID",
|
|
6759
|
+
datetime: "data i godzina w formacie ISO",
|
|
6760
|
+
date: "data w formacie ISO",
|
|
6761
|
+
time: "godzina w formacie ISO",
|
|
6762
|
+
duration: "czas trwania ISO",
|
|
6763
|
+
ipv4: "adres IPv4",
|
|
6764
|
+
ipv6: "adres IPv6",
|
|
6765
|
+
cidrv4: "zakres IPv4",
|
|
6766
|
+
cidrv6: "zakres IPv6",
|
|
6767
|
+
base64: "ciąg znaków zakodowany w formacie base64",
|
|
6768
|
+
base64url: "ciąg znaków zakodowany w formacie base64url",
|
|
6769
|
+
json_string: "ciąg znaków w formacie JSON",
|
|
6770
|
+
e164: "liczba E.164",
|
|
6771
|
+
jwt: "JWT",
|
|
6772
|
+
template_literal: "wejście"
|
|
6773
|
+
};
|
|
6774
|
+
return (issue$1) => {
|
|
6775
|
+
switch (issue$1.code) {
|
|
6776
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6777
|
+
case "invalid_value":
|
|
6778
|
+
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6498
6779
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
6499
6780
|
case "too_big": {
|
|
6500
6781
|
const adj = issue$1.inclusive ? "<=" : "<";
|
|
@@ -6534,7 +6815,7 @@ function pl_default() {
|
|
|
6534
6815
|
}
|
|
6535
6816
|
|
|
6536
6817
|
//#endregion
|
|
6537
|
-
//#region ../../node_modules/zod/
|
|
6818
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6538
6819
|
const error$11 = () => {
|
|
6539
6820
|
const Sizable = {
|
|
6540
6821
|
string: {
|
|
@@ -6557,7 +6838,7 @@ const error$11 = () => {
|
|
|
6557
6838
|
function getSizing(origin) {
|
|
6558
6839
|
return Sizable[origin] ?? null;
|
|
6559
6840
|
}
|
|
6560
|
-
const parsedType$
|
|
6841
|
+
const parsedType$3 = (data) => {
|
|
6561
6842
|
const t = typeof data;
|
|
6562
6843
|
switch (t) {
|
|
6563
6844
|
case "number": {
|
|
@@ -6609,7 +6890,7 @@ const error$11 = () => {
|
|
|
6609
6890
|
};
|
|
6610
6891
|
return (issue$1) => {
|
|
6611
6892
|
switch (issue$1.code) {
|
|
6612
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6893
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6613
6894
|
case "invalid_value":
|
|
6614
6895
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6615
6896
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6649,7 +6930,7 @@ function pt_default() {
|
|
|
6649
6930
|
}
|
|
6650
6931
|
|
|
6651
6932
|
//#endregion
|
|
6652
|
-
//#region ../../node_modules/zod/
|
|
6933
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6653
6934
|
function getRussianPlural(count, one, few, many) {
|
|
6654
6935
|
const absCount = Math.abs(count);
|
|
6655
6936
|
const lastDigit = absCount % 10;
|
|
@@ -6703,7 +6984,7 @@ const error$10 = () => {
|
|
|
6703
6984
|
function getSizing(origin) {
|
|
6704
6985
|
return Sizable[origin] ?? null;
|
|
6705
6986
|
}
|
|
6706
|
-
const parsedType$
|
|
6987
|
+
const parsedType$3 = (data) => {
|
|
6707
6988
|
const t = typeof data;
|
|
6708
6989
|
switch (t) {
|
|
6709
6990
|
case "number": {
|
|
@@ -6755,7 +7036,7 @@ const error$10 = () => {
|
|
|
6755
7036
|
};
|
|
6756
7037
|
return (issue$1) => {
|
|
6757
7038
|
switch (issue$1.code) {
|
|
6758
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
7039
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6759
7040
|
case "invalid_value":
|
|
6760
7041
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6761
7042
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6801,7 +7082,7 @@ function ru_default() {
|
|
|
6801
7082
|
}
|
|
6802
7083
|
|
|
6803
7084
|
//#endregion
|
|
6804
|
-
//#region ../../node_modules/zod/
|
|
7085
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6805
7086
|
const error$9 = () => {
|
|
6806
7087
|
const Sizable = {
|
|
6807
7088
|
string: {
|
|
@@ -6824,7 +7105,7 @@ const error$9 = () => {
|
|
|
6824
7105
|
function getSizing(origin) {
|
|
6825
7106
|
return Sizable[origin] ?? null;
|
|
6826
7107
|
}
|
|
6827
|
-
const parsedType$
|
|
7108
|
+
const parsedType$3 = (data) => {
|
|
6828
7109
|
const t = typeof data;
|
|
6829
7110
|
switch (t) {
|
|
6830
7111
|
case "number": {
|
|
@@ -6876,7 +7157,7 @@ const error$9 = () => {
|
|
|
6876
7157
|
};
|
|
6877
7158
|
return (issue$1) => {
|
|
6878
7159
|
switch (issue$1.code) {
|
|
6879
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
7160
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6880
7161
|
case "invalid_value":
|
|
6881
7162
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6882
7163
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6918,7 +7199,7 @@ function sl_default() {
|
|
|
6918
7199
|
}
|
|
6919
7200
|
|
|
6920
7201
|
//#endregion
|
|
6921
|
-
//#region ../../node_modules/zod/
|
|
7202
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6922
7203
|
const error$8 = () => {
|
|
6923
7204
|
const Sizable = {
|
|
6924
7205
|
string: {
|
|
@@ -6941,7 +7222,7 @@ const error$8 = () => {
|
|
|
6941
7222
|
function getSizing(origin) {
|
|
6942
7223
|
return Sizable[origin] ?? null;
|
|
6943
7224
|
}
|
|
6944
|
-
const parsedType$
|
|
7225
|
+
const parsedType$3 = (data) => {
|
|
6945
7226
|
const t = typeof data;
|
|
6946
7227
|
switch (t) {
|
|
6947
7228
|
case "number": {
|
|
@@ -6993,7 +7274,7 @@ const error$8 = () => {
|
|
|
6993
7274
|
};
|
|
6994
7275
|
return (issue$1) => {
|
|
6995
7276
|
switch (issue$1.code) {
|
|
6996
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
7277
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6997
7278
|
case "invalid_value":
|
|
6998
7279
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6999
7280
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7037,7 +7318,7 @@ function sv_default() {
|
|
|
7037
7318
|
}
|
|
7038
7319
|
|
|
7039
7320
|
//#endregion
|
|
7040
|
-
//#region ../../node_modules/zod/
|
|
7321
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
7041
7322
|
const error$7 = () => {
|
|
7042
7323
|
const Sizable = {
|
|
7043
7324
|
string: {
|
|
@@ -7060,7 +7341,7 @@ const error$7 = () => {
|
|
|
7060
7341
|
function getSizing(origin) {
|
|
7061
7342
|
return Sizable[origin] ?? null;
|
|
7062
7343
|
}
|
|
7063
|
-
const parsedType$
|
|
7344
|
+
const parsedType$3 = (data) => {
|
|
7064
7345
|
const t = typeof data;
|
|
7065
7346
|
switch (t) {
|
|
7066
7347
|
case "number": {
|
|
@@ -7112,7 +7393,7 @@ const error$7 = () => {
|
|
|
7112
7393
|
};
|
|
7113
7394
|
return (issue$1) => {
|
|
7114
7395
|
switch (issue$1.code) {
|
|
7115
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
7396
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
7116
7397
|
case "invalid_value":
|
|
7117
7398
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7118
7399
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -7154,7 +7435,7 @@ function ta_default() {
|
|
|
7154
7435
|
}
|
|
7155
7436
|
|
|
7156
7437
|
//#endregion
|
|
7157
|
-
//#region ../../node_modules/zod/
|
|
7438
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
7158
7439
|
const error$6 = () => {
|
|
7159
7440
|
const Sizable = {
|
|
7160
7441
|
string: {
|
|
@@ -7177,7 +7458,7 @@ const error$6 = () => {
|
|
|
7177
7458
|
function getSizing(origin) {
|
|
7178
7459
|
return Sizable[origin] ?? null;
|
|
7179
7460
|
}
|
|
7180
|
-
const parsedType$
|
|
7461
|
+
const parsedType$3 = (data) => {
|
|
7181
7462
|
const t = typeof data;
|
|
7182
7463
|
switch (t) {
|
|
7183
7464
|
case "number": {
|
|
@@ -7229,7 +7510,7 @@ const error$6 = () => {
|
|
|
7229
7510
|
};
|
|
7230
7511
|
return (issue$1) => {
|
|
7231
7512
|
switch (issue$1.code) {
|
|
7232
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7513
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
7233
7514
|
case "invalid_value":
|
|
7234
7515
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7235
7516
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7271,7 +7552,7 @@ function th_default() {
|
|
|
7271
7552
|
}
|
|
7272
7553
|
|
|
7273
7554
|
//#endregion
|
|
7274
|
-
//#region ../../node_modules/zod/
|
|
7555
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
7275
7556
|
const parsedType = (data) => {
|
|
7276
7557
|
const t = typeof data;
|
|
7277
7558
|
switch (t) {
|
|
@@ -7384,7 +7665,7 @@ function tr_default() {
|
|
|
7384
7665
|
}
|
|
7385
7666
|
|
|
7386
7667
|
//#endregion
|
|
7387
|
-
//#region ../../node_modules/zod/
|
|
7668
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
7388
7669
|
const error$4 = () => {
|
|
7389
7670
|
const Sizable = {
|
|
7390
7671
|
string: {
|
|
@@ -7407,7 +7688,7 @@ const error$4 = () => {
|
|
|
7407
7688
|
function getSizing(origin) {
|
|
7408
7689
|
return Sizable[origin] ?? null;
|
|
7409
7690
|
}
|
|
7410
|
-
const parsedType$
|
|
7691
|
+
const parsedType$3 = (data) => {
|
|
7411
7692
|
const t = typeof data;
|
|
7412
7693
|
switch (t) {
|
|
7413
7694
|
case "number": {
|
|
@@ -7459,7 +7740,7 @@ const error$4 = () => {
|
|
|
7459
7740
|
};
|
|
7460
7741
|
return (issue$1) => {
|
|
7461
7742
|
switch (issue$1.code) {
|
|
7462
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7743
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
7463
7744
|
case "invalid_value":
|
|
7464
7745
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7465
7746
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7499,7 +7780,7 @@ function ua_default() {
|
|
|
7499
7780
|
}
|
|
7500
7781
|
|
|
7501
7782
|
//#endregion
|
|
7502
|
-
//#region ../../node_modules/zod/
|
|
7783
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7503
7784
|
const error$3 = () => {
|
|
7504
7785
|
const Sizable = {
|
|
7505
7786
|
string: {
|
|
@@ -7522,7 +7803,7 @@ const error$3 = () => {
|
|
|
7522
7803
|
function getSizing(origin) {
|
|
7523
7804
|
return Sizable[origin] ?? null;
|
|
7524
7805
|
}
|
|
7525
|
-
const parsedType$
|
|
7806
|
+
const parsedType$3 = (data) => {
|
|
7526
7807
|
const t = typeof data;
|
|
7527
7808
|
switch (t) {
|
|
7528
7809
|
case "number": {
|
|
@@ -7574,7 +7855,7 @@ const error$3 = () => {
|
|
|
7574
7855
|
};
|
|
7575
7856
|
return (issue$1) => {
|
|
7576
7857
|
switch (issue$1.code) {
|
|
7577
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7858
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7578
7859
|
case "invalid_value":
|
|
7579
7860
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7580
7861
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7616,7 +7897,7 @@ function ur_default() {
|
|
|
7616
7897
|
}
|
|
7617
7898
|
|
|
7618
7899
|
//#endregion
|
|
7619
|
-
//#region ../../node_modules/zod/
|
|
7900
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7620
7901
|
const error$2 = () => {
|
|
7621
7902
|
const Sizable = {
|
|
7622
7903
|
string: {
|
|
@@ -7639,7 +7920,7 @@ const error$2 = () => {
|
|
|
7639
7920
|
function getSizing(origin) {
|
|
7640
7921
|
return Sizable[origin] ?? null;
|
|
7641
7922
|
}
|
|
7642
|
-
const parsedType$
|
|
7923
|
+
const parsedType$3 = (data) => {
|
|
7643
7924
|
const t = typeof data;
|
|
7644
7925
|
switch (t) {
|
|
7645
7926
|
case "number": {
|
|
@@ -7691,7 +7972,7 @@ const error$2 = () => {
|
|
|
7691
7972
|
};
|
|
7692
7973
|
return (issue$1) => {
|
|
7693
7974
|
switch (issue$1.code) {
|
|
7694
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7975
|
+
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)}`;
|
|
7695
7976
|
case "invalid_value":
|
|
7696
7977
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7697
7978
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7731,7 +8012,7 @@ function vi_default() {
|
|
|
7731
8012
|
}
|
|
7732
8013
|
|
|
7733
8014
|
//#endregion
|
|
7734
|
-
//#region ../../node_modules/zod/
|
|
8015
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7735
8016
|
const error$1 = () => {
|
|
7736
8017
|
const Sizable = {
|
|
7737
8018
|
string: {
|
|
@@ -7754,7 +8035,7 @@ const error$1 = () => {
|
|
|
7754
8035
|
function getSizing(origin) {
|
|
7755
8036
|
return Sizable[origin] ?? null;
|
|
7756
8037
|
}
|
|
7757
|
-
const parsedType$
|
|
8038
|
+
const parsedType$3 = (data) => {
|
|
7758
8039
|
const t = typeof data;
|
|
7759
8040
|
switch (t) {
|
|
7760
8041
|
case "number": {
|
|
@@ -7806,7 +8087,7 @@ const error$1 = () => {
|
|
|
7806
8087
|
};
|
|
7807
8088
|
return (issue$1) => {
|
|
7808
8089
|
switch (issue$1.code) {
|
|
7809
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
8090
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7810
8091
|
case "invalid_value":
|
|
7811
8092
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7812
8093
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7846,7 +8127,7 @@ function zh_CN_default() {
|
|
|
7846
8127
|
}
|
|
7847
8128
|
|
|
7848
8129
|
//#endregion
|
|
7849
|
-
//#region ../../node_modules/zod/
|
|
8130
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7850
8131
|
const error = () => {
|
|
7851
8132
|
const Sizable = {
|
|
7852
8133
|
string: {
|
|
@@ -7869,7 +8150,7 @@ const error = () => {
|
|
|
7869
8150
|
function getSizing(origin) {
|
|
7870
8151
|
return Sizable[origin] ?? null;
|
|
7871
8152
|
}
|
|
7872
|
-
const parsedType$
|
|
8153
|
+
const parsedType$3 = (data) => {
|
|
7873
8154
|
const t = typeof data;
|
|
7874
8155
|
switch (t) {
|
|
7875
8156
|
case "number": {
|
|
@@ -7921,7 +8202,7 @@ const error = () => {
|
|
|
7921
8202
|
};
|
|
7922
8203
|
return (issue$1) => {
|
|
7923
8204
|
switch (issue$1.code) {
|
|
7924
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
8205
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7925
8206
|
case "invalid_value":
|
|
7926
8207
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7927
8208
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7963,7 +8244,7 @@ function zh_TW_default() {
|
|
|
7963
8244
|
}
|
|
7964
8245
|
|
|
7965
8246
|
//#endregion
|
|
7966
|
-
//#region ../../node_modules/zod/
|
|
8247
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7967
8248
|
var locales_exports = {};
|
|
7968
8249
|
__export(locales_exports, {
|
|
7969
8250
|
ar: () => ar_default,
|
|
@@ -7973,6 +8254,7 @@ __export(locales_exports, {
|
|
|
7973
8254
|
cs: () => cs_default,
|
|
7974
8255
|
de: () => de_default,
|
|
7975
8256
|
en: () => en_default,
|
|
8257
|
+
eo: () => eo_default,
|
|
7976
8258
|
es: () => es_default,
|
|
7977
8259
|
fa: () => fa_default,
|
|
7978
8260
|
fi: () => fi_default,
|
|
@@ -7991,6 +8273,7 @@ __export(locales_exports, {
|
|
|
7991
8273
|
no: () => no_default,
|
|
7992
8274
|
ota: () => ota_default,
|
|
7993
8275
|
pl: () => pl_default,
|
|
8276
|
+
ps: () => ps_default,
|
|
7994
8277
|
pt: () => pt_default,
|
|
7995
8278
|
ru: () => ru_default,
|
|
7996
8279
|
sl: () => sl_default,
|
|
@@ -8006,12 +8289,12 @@ __export(locales_exports, {
|
|
|
8006
8289
|
});
|
|
8007
8290
|
|
|
8008
8291
|
//#endregion
|
|
8009
|
-
//#region ../../node_modules/zod/
|
|
8292
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
8010
8293
|
const $output = Symbol("ZodOutput");
|
|
8011
8294
|
const $input = Symbol("ZodInput");
|
|
8012
8295
|
var $ZodRegistry = class {
|
|
8013
8296
|
constructor() {
|
|
8014
|
-
this._map = new
|
|
8297
|
+
this._map = new Map();
|
|
8015
8298
|
this._idmap = new Map();
|
|
8016
8299
|
}
|
|
8017
8300
|
add(schema, ..._meta) {
|
|
@@ -8025,7 +8308,16 @@ var $ZodRegistry = class {
|
|
|
8025
8308
|
}
|
|
8026
8309
|
return this;
|
|
8027
8310
|
}
|
|
8311
|
+
clear() {
|
|
8312
|
+
this._map = new Map();
|
|
8313
|
+
this._idmap = new Map();
|
|
8314
|
+
return this;
|
|
8315
|
+
}
|
|
8028
8316
|
remove(schema) {
|
|
8317
|
+
const meta = this._map.get(schema);
|
|
8318
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
8319
|
+
this._idmap.delete(meta.id);
|
|
8320
|
+
}
|
|
8029
8321
|
this._map.delete(schema);
|
|
8030
8322
|
return this;
|
|
8031
8323
|
}
|
|
@@ -8051,7 +8343,7 @@ function registry() {
|
|
|
8051
8343
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
8052
8344
|
|
|
8053
8345
|
//#endregion
|
|
8054
|
-
//#region ../../node_modules/zod/
|
|
8346
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
8055
8347
|
function _string(Class$1, params) {
|
|
8056
8348
|
return new Class$1({
|
|
8057
8349
|
type: "string",
|
|
@@ -8266,6 +8558,13 @@ function _jwt(Class$1, params) {
|
|
|
8266
8558
|
...normalizeParams(params)
|
|
8267
8559
|
});
|
|
8268
8560
|
}
|
|
8561
|
+
const TimePrecision = {
|
|
8562
|
+
Any: null,
|
|
8563
|
+
Minute: -1,
|
|
8564
|
+
Second: 0,
|
|
8565
|
+
Millisecond: 3,
|
|
8566
|
+
Microsecond: 6
|
|
8567
|
+
};
|
|
8269
8568
|
function _isoDateTime(Class$1, params) {
|
|
8270
8569
|
return new Class$1({
|
|
8271
8570
|
type: "string",
|
|
@@ -8832,8 +9131,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8832
9131
|
return schema;
|
|
8833
9132
|
}
|
|
8834
9133
|
function _stringbool(Classes, _params) {
|
|
8835
|
-
const
|
|
8836
|
-
let truthyArray = truthy ?? [
|
|
9134
|
+
const params = normalizeParams(_params);
|
|
9135
|
+
let truthyArray = params.truthy ?? [
|
|
8837
9136
|
"true",
|
|
8838
9137
|
"1",
|
|
8839
9138
|
"yes",
|
|
@@ -8841,7 +9140,7 @@ function _stringbool(Classes, _params) {
|
|
|
8841
9140
|
"y",
|
|
8842
9141
|
"enabled"
|
|
8843
9142
|
];
|
|
8844
|
-
let falsyArray = falsy ?? [
|
|
9143
|
+
let falsyArray = params.falsy ?? [
|
|
8845
9144
|
"false",
|
|
8846
9145
|
"0",
|
|
8847
9146
|
"no",
|
|
@@ -8849,7 +9148,7 @@ function _stringbool(Classes, _params) {
|
|
|
8849
9148
|
"n",
|
|
8850
9149
|
"disabled"
|
|
8851
9150
|
];
|
|
8852
|
-
if (
|
|
9151
|
+
if (params.case !== "sensitive") {
|
|
8853
9152
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8854
9153
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8855
9154
|
}
|
|
@@ -8863,7 +9162,7 @@ function _stringbool(Classes, _params) {
|
|
|
8863
9162
|
type: "transform",
|
|
8864
9163
|
transform: (input, payload) => {
|
|
8865
9164
|
let data = input;
|
|
8866
|
-
if (
|
|
9165
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8867
9166
|
if (truthySet.has(data)) {
|
|
8868
9167
|
return true;
|
|
8869
9168
|
} else if (falsySet.has(data)) {
|
|
@@ -8879,31 +9178,47 @@ function _stringbool(Classes, _params) {
|
|
|
8879
9178
|
return {};
|
|
8880
9179
|
}
|
|
8881
9180
|
},
|
|
8882
|
-
error: error
|
|
9181
|
+
error: params.error
|
|
8883
9182
|
});
|
|
8884
9183
|
const innerPipe = new _Pipe({
|
|
8885
9184
|
type: "pipe",
|
|
8886
9185
|
in: new _String({
|
|
8887
9186
|
type: "string",
|
|
8888
|
-
error: error
|
|
9187
|
+
error: params.error
|
|
8889
9188
|
}),
|
|
8890
9189
|
out: tx,
|
|
8891
|
-
error: error
|
|
9190
|
+
error: params.error
|
|
8892
9191
|
});
|
|
8893
9192
|
const outerPipe = new _Pipe({
|
|
8894
9193
|
type: "pipe",
|
|
8895
9194
|
in: innerPipe,
|
|
8896
9195
|
out: new _Boolean({
|
|
8897
9196
|
type: "boolean",
|
|
8898
|
-
error: error
|
|
9197
|
+
error: params.error
|
|
8899
9198
|
}),
|
|
8900
|
-
error: error
|
|
9199
|
+
error: params.error
|
|
8901
9200
|
});
|
|
8902
9201
|
return outerPipe;
|
|
8903
9202
|
}
|
|
9203
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
9204
|
+
const params = normalizeParams(_params);
|
|
9205
|
+
const def = {
|
|
9206
|
+
...normalizeParams(_params),
|
|
9207
|
+
check: "string_format",
|
|
9208
|
+
type: "string",
|
|
9209
|
+
format,
|
|
9210
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
9211
|
+
...params
|
|
9212
|
+
};
|
|
9213
|
+
if (fnOrRegex instanceof RegExp) {
|
|
9214
|
+
def.pattern = fnOrRegex;
|
|
9215
|
+
}
|
|
9216
|
+
const inst = new Class$1(def);
|
|
9217
|
+
return inst;
|
|
9218
|
+
}
|
|
8904
9219
|
|
|
8905
9220
|
//#endregion
|
|
8906
|
-
//#region ../../node_modules/zod/
|
|
9221
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8907
9222
|
var $ZodFunction = class {
|
|
8908
9223
|
constructor(def) {
|
|
8909
9224
|
this._def = def;
|
|
@@ -8974,7 +9289,7 @@ function _function(params) {
|
|
|
8974
9289
|
}
|
|
8975
9290
|
|
|
8976
9291
|
//#endregion
|
|
8977
|
-
//#region ../../node_modules/zod/
|
|
9292
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8978
9293
|
var JSONSchemaGenerator = class {
|
|
8979
9294
|
constructor(params) {
|
|
8980
9295
|
this.counter = 0;
|
|
@@ -9010,431 +9325,435 @@ var JSONSchemaGenerator = class {
|
|
|
9010
9325
|
const result = {
|
|
9011
9326
|
schema: {},
|
|
9012
9327
|
count: 1,
|
|
9013
|
-
cycle: undefined
|
|
9014
|
-
};
|
|
9015
|
-
this.seen.set(schema, result);
|
|
9016
|
-
if (schema._zod.toJSONSchema) {
|
|
9017
|
-
result.schema = schema._zod.toJSONSchema();
|
|
9018
|
-
}
|
|
9019
|
-
const params = {
|
|
9020
|
-
..._params,
|
|
9021
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
9328
|
+
cycle: undefined,
|
|
9022
9329
|
path: _params.path
|
|
9023
9330
|
};
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
this.seen.get(parent).isParent = true;
|
|
9331
|
+
this.seen.set(schema, result);
|
|
9332
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
9333
|
+
if (overrideSchema) {
|
|
9334
|
+
result.schema = overrideSchema;
|
|
9029
9335
|
} else {
|
|
9030
|
-
const
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9336
|
+
const params = {
|
|
9337
|
+
..._params,
|
|
9338
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
9339
|
+
path: _params.path
|
|
9340
|
+
};
|
|
9341
|
+
const parent = schema._zod.parent;
|
|
9342
|
+
if (parent) {
|
|
9343
|
+
result.ref = parent;
|
|
9344
|
+
this.process(parent, params);
|
|
9345
|
+
this.seen.get(parent).isParent = true;
|
|
9346
|
+
} else {
|
|
9347
|
+
const _json = result.schema;
|
|
9348
|
+
switch (def.type) {
|
|
9349
|
+
case "string": {
|
|
9350
|
+
const json$1 = _json;
|
|
9351
|
+
json$1.type = "string";
|
|
9352
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
9353
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
9354
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
9355
|
+
if (format) {
|
|
9356
|
+
json$1.format = formatMap[format] ?? format;
|
|
9357
|
+
if (json$1.format === "") delete json$1.format;
|
|
9358
|
+
}
|
|
9359
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
9360
|
+
if (patterns && patterns.size > 0) {
|
|
9361
|
+
const regexes = [...patterns];
|
|
9362
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
9363
|
+
else if (regexes.length > 1) {
|
|
9364
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
9365
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
9366
|
+
pattern: regex.source
|
|
9367
|
+
}))];
|
|
9368
|
+
}
|
|
9369
|
+
}
|
|
9370
|
+
break;
|
|
9041
9371
|
}
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
const
|
|
9045
|
-
if (
|
|
9046
|
-
else
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9372
|
+
case "number": {
|
|
9373
|
+
const json$1 = _json;
|
|
9374
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
9375
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
9376
|
+
else json$1.type = "number";
|
|
9377
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
9378
|
+
if (typeof minimum === "number") {
|
|
9379
|
+
json$1.minimum = minimum;
|
|
9380
|
+
if (typeof exclusiveMinimum === "number") {
|
|
9381
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9382
|
+
else delete json$1.exclusiveMinimum;
|
|
9383
|
+
}
|
|
9051
9384
|
}
|
|
9385
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
9386
|
+
if (typeof maximum === "number") {
|
|
9387
|
+
json$1.maximum = maximum;
|
|
9388
|
+
if (typeof exclusiveMaximum === "number") {
|
|
9389
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9390
|
+
else delete json$1.exclusiveMaximum;
|
|
9391
|
+
}
|
|
9392
|
+
}
|
|
9393
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
9394
|
+
break;
|
|
9052
9395
|
}
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
if (typeof minimum === "number") {
|
|
9062
|
-
json$1.minimum = minimum;
|
|
9063
|
-
if (typeof exclusiveMinimum === "number") {
|
|
9064
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9065
|
-
else delete json$1.exclusiveMinimum;
|
|
9396
|
+
case "boolean": {
|
|
9397
|
+
const json$1 = _json;
|
|
9398
|
+
json$1.type = "boolean";
|
|
9399
|
+
break;
|
|
9400
|
+
}
|
|
9401
|
+
case "bigint": {
|
|
9402
|
+
if (this.unrepresentable === "throw") {
|
|
9403
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9066
9404
|
}
|
|
9405
|
+
break;
|
|
9067
9406
|
}
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
if (typeof exclusiveMaximum === "number") {
|
|
9072
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9073
|
-
else delete json$1.exclusiveMaximum;
|
|
9407
|
+
case "symbol": {
|
|
9408
|
+
if (this.unrepresentable === "throw") {
|
|
9409
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9074
9410
|
}
|
|
9411
|
+
break;
|
|
9075
9412
|
}
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
case "boolean": {
|
|
9080
|
-
const json$1 = _json;
|
|
9081
|
-
json$1.type = "boolean";
|
|
9082
|
-
break;
|
|
9083
|
-
}
|
|
9084
|
-
case "bigint": {
|
|
9085
|
-
if (this.unrepresentable === "throw") {
|
|
9086
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9413
|
+
case "null": {
|
|
9414
|
+
_json.type = "null";
|
|
9415
|
+
break;
|
|
9087
9416
|
}
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
case "symbol": {
|
|
9091
|
-
if (this.unrepresentable === "throw") {
|
|
9092
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9417
|
+
case "any": {
|
|
9418
|
+
break;
|
|
9093
9419
|
}
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
case "undefined": {
|
|
9097
|
-
const json$1 = _json;
|
|
9098
|
-
json$1.type = "null";
|
|
9099
|
-
break;
|
|
9100
|
-
}
|
|
9101
|
-
case "null": {
|
|
9102
|
-
_json.type = "null";
|
|
9103
|
-
break;
|
|
9104
|
-
}
|
|
9105
|
-
case "any": {
|
|
9106
|
-
break;
|
|
9107
|
-
}
|
|
9108
|
-
case "unknown": {
|
|
9109
|
-
break;
|
|
9110
|
-
}
|
|
9111
|
-
case "never": {
|
|
9112
|
-
_json.not = {};
|
|
9113
|
-
break;
|
|
9114
|
-
}
|
|
9115
|
-
case "void": {
|
|
9116
|
-
if (this.unrepresentable === "throw") {
|
|
9117
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
9420
|
+
case "unknown": {
|
|
9421
|
+
break;
|
|
9118
9422
|
}
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9423
|
+
case "undefined": {
|
|
9424
|
+
if (this.unrepresentable === "throw") {
|
|
9425
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
9426
|
+
}
|
|
9427
|
+
break;
|
|
9124
9428
|
}
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9131
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9132
|
-
json$1.type = "array";
|
|
9133
|
-
json$1.items = this.process(def.element, {
|
|
9134
|
-
...params,
|
|
9135
|
-
path: [...params.path, "items"]
|
|
9136
|
-
});
|
|
9137
|
-
break;
|
|
9138
|
-
}
|
|
9139
|
-
case "object": {
|
|
9140
|
-
const json$1 = _json;
|
|
9141
|
-
json$1.type = "object";
|
|
9142
|
-
json$1.properties = {};
|
|
9143
|
-
const shape = def.shape;
|
|
9144
|
-
for (const key in shape) {
|
|
9145
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
9146
|
-
...params,
|
|
9147
|
-
path: [
|
|
9148
|
-
...params.path,
|
|
9149
|
-
"properties",
|
|
9150
|
-
key
|
|
9151
|
-
]
|
|
9152
|
-
});
|
|
9429
|
+
case "void": {
|
|
9430
|
+
if (this.unrepresentable === "throw") {
|
|
9431
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
9432
|
+
}
|
|
9433
|
+
break;
|
|
9153
9434
|
}
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9435
|
+
case "never": {
|
|
9436
|
+
_json.not = {};
|
|
9437
|
+
break;
|
|
9438
|
+
}
|
|
9439
|
+
case "date": {
|
|
9440
|
+
if (this.unrepresentable === "throw") {
|
|
9441
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
9161
9442
|
}
|
|
9162
|
-
|
|
9163
|
-
if (requiredKeys.size > 0) {
|
|
9164
|
-
json$1.required = Array.from(requiredKeys);
|
|
9443
|
+
break;
|
|
9165
9444
|
}
|
|
9166
|
-
|
|
9167
|
-
json$1
|
|
9168
|
-
|
|
9169
|
-
if (
|
|
9170
|
-
|
|
9171
|
-
json$1.
|
|
9445
|
+
case "array": {
|
|
9446
|
+
const json$1 = _json;
|
|
9447
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9448
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9449
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9450
|
+
json$1.type = "array";
|
|
9451
|
+
json$1.items = this.process(def.element, {
|
|
9172
9452
|
...params,
|
|
9173
|
-
path: [...params.path, "
|
|
9453
|
+
path: [...params.path, "items"]
|
|
9174
9454
|
});
|
|
9455
|
+
break;
|
|
9175
9456
|
}
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
const json$1 = _json;
|
|
9215
|
-
json$1.type = "array";
|
|
9216
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9217
|
-
...params,
|
|
9218
|
-
path: [
|
|
9219
|
-
...params.path,
|
|
9220
|
-
"prefixItems",
|
|
9221
|
-
i
|
|
9222
|
-
]
|
|
9223
|
-
}));
|
|
9224
|
-
if (this.target === "draft-2020-12") {
|
|
9225
|
-
json$1.prefixItems = prefixItems;
|
|
9226
|
-
} else {
|
|
9227
|
-
json$1.items = prefixItems;
|
|
9457
|
+
case "object": {
|
|
9458
|
+
const json$1 = _json;
|
|
9459
|
+
json$1.type = "object";
|
|
9460
|
+
json$1.properties = {};
|
|
9461
|
+
const shape = def.shape;
|
|
9462
|
+
for (const key in shape) {
|
|
9463
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9464
|
+
...params,
|
|
9465
|
+
path: [
|
|
9466
|
+
...params.path,
|
|
9467
|
+
"properties",
|
|
9468
|
+
key
|
|
9469
|
+
]
|
|
9470
|
+
});
|
|
9471
|
+
}
|
|
9472
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9473
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9474
|
+
const v = def.shape[key]._zod;
|
|
9475
|
+
if (this.io === "input") {
|
|
9476
|
+
return v.optin === undefined;
|
|
9477
|
+
} else {
|
|
9478
|
+
return v.optout === undefined;
|
|
9479
|
+
}
|
|
9480
|
+
}));
|
|
9481
|
+
if (requiredKeys.size > 0) {
|
|
9482
|
+
json$1.required = Array.from(requiredKeys);
|
|
9483
|
+
}
|
|
9484
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9485
|
+
json$1.additionalProperties = false;
|
|
9486
|
+
} else if (!def.catchall) {
|
|
9487
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9488
|
+
} else if (def.catchall) {
|
|
9489
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9490
|
+
...params,
|
|
9491
|
+
path: [...params.path, "additionalProperties"]
|
|
9492
|
+
});
|
|
9493
|
+
}
|
|
9494
|
+
break;
|
|
9228
9495
|
}
|
|
9229
|
-
|
|
9230
|
-
const
|
|
9496
|
+
case "union": {
|
|
9497
|
+
const json$1 = _json;
|
|
9498
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
9231
9499
|
...params,
|
|
9232
|
-
path: [
|
|
9500
|
+
path: [
|
|
9501
|
+
...params.path,
|
|
9502
|
+
"anyOf",
|
|
9503
|
+
i
|
|
9504
|
+
]
|
|
9505
|
+
}));
|
|
9506
|
+
break;
|
|
9507
|
+
}
|
|
9508
|
+
case "intersection": {
|
|
9509
|
+
const json$1 = _json;
|
|
9510
|
+
const a = this.process(def.left, {
|
|
9511
|
+
...params,
|
|
9512
|
+
path: [
|
|
9513
|
+
...params.path,
|
|
9514
|
+
"allOf",
|
|
9515
|
+
0
|
|
9516
|
+
]
|
|
9517
|
+
});
|
|
9518
|
+
const b = this.process(def.right, {
|
|
9519
|
+
...params,
|
|
9520
|
+
path: [
|
|
9521
|
+
...params.path,
|
|
9522
|
+
"allOf",
|
|
9523
|
+
1
|
|
9524
|
+
]
|
|
9233
9525
|
});
|
|
9526
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9527
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9528
|
+
json$1.allOf = allOf;
|
|
9529
|
+
break;
|
|
9530
|
+
}
|
|
9531
|
+
case "tuple": {
|
|
9532
|
+
const json$1 = _json;
|
|
9533
|
+
json$1.type = "array";
|
|
9534
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9535
|
+
...params,
|
|
9536
|
+
path: [
|
|
9537
|
+
...params.path,
|
|
9538
|
+
"prefixItems",
|
|
9539
|
+
i
|
|
9540
|
+
]
|
|
9541
|
+
}));
|
|
9234
9542
|
if (this.target === "draft-2020-12") {
|
|
9235
|
-
json$1.
|
|
9543
|
+
json$1.prefixItems = prefixItems;
|
|
9236
9544
|
} else {
|
|
9237
|
-
json$1.
|
|
9545
|
+
json$1.items = prefixItems;
|
|
9546
|
+
}
|
|
9547
|
+
if (def.rest) {
|
|
9548
|
+
const rest = this.process(def.rest, {
|
|
9549
|
+
...params,
|
|
9550
|
+
path: [...params.path, "items"]
|
|
9551
|
+
});
|
|
9552
|
+
if (this.target === "draft-2020-12") {
|
|
9553
|
+
json$1.items = rest;
|
|
9554
|
+
} else {
|
|
9555
|
+
json$1.additionalItems = rest;
|
|
9556
|
+
}
|
|
9238
9557
|
}
|
|
9558
|
+
if (def.rest) {
|
|
9559
|
+
json$1.items = this.process(def.rest, {
|
|
9560
|
+
...params,
|
|
9561
|
+
path: [...params.path, "items"]
|
|
9562
|
+
});
|
|
9563
|
+
}
|
|
9564
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9565
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9566
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9567
|
+
break;
|
|
9239
9568
|
}
|
|
9240
|
-
|
|
9241
|
-
json$1
|
|
9569
|
+
case "record": {
|
|
9570
|
+
const json$1 = _json;
|
|
9571
|
+
json$1.type = "object";
|
|
9572
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
9242
9573
|
...params,
|
|
9243
|
-
path: [...params.path, "
|
|
9574
|
+
path: [...params.path, "propertyNames"]
|
|
9244
9575
|
});
|
|
9576
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9577
|
+
...params,
|
|
9578
|
+
path: [...params.path, "additionalProperties"]
|
|
9579
|
+
});
|
|
9580
|
+
break;
|
|
9245
9581
|
}
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
case "record": {
|
|
9252
|
-
const json$1 = _json;
|
|
9253
|
-
json$1.type = "object";
|
|
9254
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
9255
|
-
...params,
|
|
9256
|
-
path: [...params.path, "propertyNames"]
|
|
9257
|
-
});
|
|
9258
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
9259
|
-
...params,
|
|
9260
|
-
path: [...params.path, "additionalProperties"]
|
|
9261
|
-
});
|
|
9262
|
-
break;
|
|
9263
|
-
}
|
|
9264
|
-
case "map": {
|
|
9265
|
-
if (this.unrepresentable === "throw") {
|
|
9266
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9582
|
+
case "map": {
|
|
9583
|
+
if (this.unrepresentable === "throw") {
|
|
9584
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9585
|
+
}
|
|
9586
|
+
break;
|
|
9267
9587
|
}
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9588
|
+
case "set": {
|
|
9589
|
+
if (this.unrepresentable === "throw") {
|
|
9590
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9591
|
+
}
|
|
9592
|
+
break;
|
|
9273
9593
|
}
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9594
|
+
case "enum": {
|
|
9595
|
+
const json$1 = _json;
|
|
9596
|
+
const values = getEnumValues(def.entries);
|
|
9597
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9598
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9599
|
+
json$1.enum = values;
|
|
9600
|
+
break;
|
|
9601
|
+
}
|
|
9602
|
+
case "literal": {
|
|
9603
|
+
const json$1 = _json;
|
|
9604
|
+
const vals = [];
|
|
9605
|
+
for (const val of def.values) {
|
|
9606
|
+
if (val === undefined) {
|
|
9607
|
+
if (this.unrepresentable === "throw") {
|
|
9608
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9609
|
+
} else {}
|
|
9610
|
+
} else if (typeof val === "bigint") {
|
|
9611
|
+
if (this.unrepresentable === "throw") {
|
|
9612
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9613
|
+
} else {
|
|
9614
|
+
vals.push(Number(val));
|
|
9615
|
+
}
|
|
9295
9616
|
} else {
|
|
9296
|
-
vals.push(
|
|
9617
|
+
vals.push(val);
|
|
9297
9618
|
}
|
|
9619
|
+
}
|
|
9620
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9621
|
+
const val = vals[0];
|
|
9622
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9623
|
+
json$1.const = val;
|
|
9298
9624
|
} else {
|
|
9299
|
-
vals.
|
|
9625
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9626
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9627
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9628
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9629
|
+
json$1.enum = vals;
|
|
9300
9630
|
}
|
|
9631
|
+
break;
|
|
9301
9632
|
}
|
|
9302
|
-
|
|
9303
|
-
const
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
if (
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
if (mime) {
|
|
9326
|
-
if (mime.length === 1) {
|
|
9327
|
-
file$1.contentMediaType = mime[0];
|
|
9328
|
-
Object.assign(json$1, file$1);
|
|
9633
|
+
case "file": {
|
|
9634
|
+
const json$1 = _json;
|
|
9635
|
+
const file$1 = {
|
|
9636
|
+
type: "string",
|
|
9637
|
+
format: "binary",
|
|
9638
|
+
contentEncoding: "binary"
|
|
9639
|
+
};
|
|
9640
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9641
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9642
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9643
|
+
if (mime) {
|
|
9644
|
+
if (mime.length === 1) {
|
|
9645
|
+
file$1.contentMediaType = mime[0];
|
|
9646
|
+
Object.assign(json$1, file$1);
|
|
9647
|
+
} else {
|
|
9648
|
+
json$1.anyOf = mime.map((m) => {
|
|
9649
|
+
const mFile = {
|
|
9650
|
+
...file$1,
|
|
9651
|
+
contentMediaType: m
|
|
9652
|
+
};
|
|
9653
|
+
return mFile;
|
|
9654
|
+
});
|
|
9655
|
+
}
|
|
9329
9656
|
} else {
|
|
9330
|
-
json$1
|
|
9331
|
-
const mFile = {
|
|
9332
|
-
...file$1,
|
|
9333
|
-
contentMediaType: m
|
|
9334
|
-
};
|
|
9335
|
-
return mFile;
|
|
9336
|
-
});
|
|
9657
|
+
Object.assign(json$1, file$1);
|
|
9337
9658
|
}
|
|
9338
|
-
|
|
9339
|
-
Object.assign(json$1, file$1);
|
|
9659
|
+
break;
|
|
9340
9660
|
}
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9661
|
+
case "transform": {
|
|
9662
|
+
if (this.unrepresentable === "throw") {
|
|
9663
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9664
|
+
}
|
|
9665
|
+
break;
|
|
9346
9666
|
}
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
9352
|
-
break;
|
|
9353
|
-
}
|
|
9354
|
-
case "nonoptional": {
|
|
9355
|
-
this.process(def.innerType, params);
|
|
9356
|
-
result.ref = def.innerType;
|
|
9357
|
-
break;
|
|
9358
|
-
}
|
|
9359
|
-
case "success": {
|
|
9360
|
-
const json$1 = _json;
|
|
9361
|
-
json$1.type = "boolean";
|
|
9362
|
-
break;
|
|
9363
|
-
}
|
|
9364
|
-
case "default": {
|
|
9365
|
-
this.process(def.innerType, params);
|
|
9366
|
-
result.ref = def.innerType;
|
|
9367
|
-
_json.default = def.defaultValue;
|
|
9368
|
-
break;
|
|
9369
|
-
}
|
|
9370
|
-
case "prefault": {
|
|
9371
|
-
this.process(def.innerType, params);
|
|
9372
|
-
result.ref = def.innerType;
|
|
9373
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
9374
|
-
break;
|
|
9375
|
-
}
|
|
9376
|
-
case "catch": {
|
|
9377
|
-
this.process(def.innerType, params);
|
|
9378
|
-
result.ref = def.innerType;
|
|
9379
|
-
let catchValue;
|
|
9380
|
-
try {
|
|
9381
|
-
catchValue = def.catchValue(undefined);
|
|
9382
|
-
} catch {
|
|
9383
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9667
|
+
case "nullable": {
|
|
9668
|
+
const inner = this.process(def.innerType, params);
|
|
9669
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9670
|
+
break;
|
|
9384
9671
|
}
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
if (this.unrepresentable === "throw") {
|
|
9390
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9672
|
+
case "nonoptional": {
|
|
9673
|
+
this.process(def.innerType, params);
|
|
9674
|
+
result.ref = def.innerType;
|
|
9675
|
+
break;
|
|
9391
9676
|
}
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9677
|
+
case "success": {
|
|
9678
|
+
const json$1 = _json;
|
|
9679
|
+
json$1.type = "boolean";
|
|
9680
|
+
break;
|
|
9681
|
+
}
|
|
9682
|
+
case "default": {
|
|
9683
|
+
this.process(def.innerType, params);
|
|
9684
|
+
result.ref = def.innerType;
|
|
9685
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9686
|
+
break;
|
|
9687
|
+
}
|
|
9688
|
+
case "prefault": {
|
|
9689
|
+
this.process(def.innerType, params);
|
|
9690
|
+
result.ref = def.innerType;
|
|
9691
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9692
|
+
break;
|
|
9693
|
+
}
|
|
9694
|
+
case "catch": {
|
|
9695
|
+
this.process(def.innerType, params);
|
|
9696
|
+
result.ref = def.innerType;
|
|
9697
|
+
let catchValue;
|
|
9698
|
+
try {
|
|
9699
|
+
catchValue = def.catchValue(undefined);
|
|
9700
|
+
} catch {
|
|
9701
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9702
|
+
}
|
|
9703
|
+
_json.default = catchValue;
|
|
9704
|
+
break;
|
|
9705
|
+
}
|
|
9706
|
+
case "nan": {
|
|
9707
|
+
if (this.unrepresentable === "throw") {
|
|
9708
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9709
|
+
}
|
|
9710
|
+
break;
|
|
9711
|
+
}
|
|
9712
|
+
case "template_literal": {
|
|
9713
|
+
const json$1 = _json;
|
|
9714
|
+
const pattern = schema._zod.pattern;
|
|
9715
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9716
|
+
json$1.type = "string";
|
|
9717
|
+
json$1.pattern = pattern.source;
|
|
9718
|
+
break;
|
|
9719
|
+
}
|
|
9720
|
+
case "pipe": {
|
|
9721
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9722
|
+
this.process(innerType, params);
|
|
9723
|
+
result.ref = innerType;
|
|
9724
|
+
break;
|
|
9725
|
+
}
|
|
9726
|
+
case "readonly": {
|
|
9727
|
+
this.process(def.innerType, params);
|
|
9728
|
+
result.ref = def.innerType;
|
|
9729
|
+
_json.readOnly = true;
|
|
9730
|
+
break;
|
|
9731
|
+
}
|
|
9732
|
+
case "promise": {
|
|
9733
|
+
this.process(def.innerType, params);
|
|
9734
|
+
result.ref = def.innerType;
|
|
9735
|
+
break;
|
|
9736
|
+
}
|
|
9737
|
+
case "optional": {
|
|
9738
|
+
this.process(def.innerType, params);
|
|
9739
|
+
result.ref = def.innerType;
|
|
9740
|
+
break;
|
|
9741
|
+
}
|
|
9742
|
+
case "lazy": {
|
|
9743
|
+
const innerType = schema._zod.innerType;
|
|
9744
|
+
this.process(innerType, params);
|
|
9745
|
+
result.ref = innerType;
|
|
9746
|
+
break;
|
|
9747
|
+
}
|
|
9748
|
+
case "custom": {
|
|
9749
|
+
if (this.unrepresentable === "throw") {
|
|
9750
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9751
|
+
}
|
|
9752
|
+
break;
|
|
9753
|
+
}
|
|
9754
|
+
default: {
|
|
9755
|
+
def;
|
|
9433
9756
|
}
|
|
9434
|
-
break;
|
|
9435
|
-
}
|
|
9436
|
-
default: {
|
|
9437
|
-
def;
|
|
9438
9757
|
}
|
|
9439
9758
|
}
|
|
9440
9759
|
}
|
|
@@ -9461,12 +9780,15 @@ var JSONSchemaGenerator = class {
|
|
|
9461
9780
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9462
9781
|
if (params.external) {
|
|
9463
9782
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9464
|
-
|
|
9783
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9784
|
+
if (externalId) {
|
|
9785
|
+
return { ref: uriGenerator(externalId) };
|
|
9786
|
+
}
|
|
9465
9787
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9466
9788
|
entry[1].defId = id;
|
|
9467
9789
|
return {
|
|
9468
9790
|
defId: id,
|
|
9469
|
-
ref: `${
|
|
9791
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
9470
9792
|
};
|
|
9471
9793
|
}
|
|
9472
9794
|
if (entry[1] === root) {
|
|
@@ -9494,6 +9816,14 @@ var JSONSchemaGenerator = class {
|
|
|
9494
9816
|
}
|
|
9495
9817
|
schema$1.$ref = ref;
|
|
9496
9818
|
};
|
|
9819
|
+
if (params.cycles === "throw") {
|
|
9820
|
+
for (const entry of this.seen.entries()) {
|
|
9821
|
+
const seen = entry[1];
|
|
9822
|
+
if (seen.cycle) {
|
|
9823
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9824
|
+
}
|
|
9825
|
+
}
|
|
9826
|
+
}
|
|
9497
9827
|
for (const entry of this.seen.entries()) {
|
|
9498
9828
|
const seen = entry[1];
|
|
9499
9829
|
if (schema === entry[0]) {
|
|
@@ -9513,11 +9843,7 @@ var JSONSchemaGenerator = class {
|
|
|
9513
9843
|
continue;
|
|
9514
9844
|
}
|
|
9515
9845
|
if (seen.cycle) {
|
|
9516
|
-
|
|
9517
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9518
|
-
} else if (params.cycles === "ref") {
|
|
9519
|
-
extractToDef(entry);
|
|
9520
|
-
}
|
|
9846
|
+
extractToDef(entry);
|
|
9521
9847
|
continue;
|
|
9522
9848
|
}
|
|
9523
9849
|
if (seen.count > 1) {
|
|
@@ -9549,7 +9875,8 @@ var JSONSchemaGenerator = class {
|
|
|
9549
9875
|
}
|
|
9550
9876
|
if (!seen.isParent) this.override({
|
|
9551
9877
|
zodSchema,
|
|
9552
|
-
jsonSchema: schema$1
|
|
9878
|
+
jsonSchema: schema$1,
|
|
9879
|
+
path: seen.path ?? []
|
|
9553
9880
|
});
|
|
9554
9881
|
};
|
|
9555
9882
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9563,6 +9890,11 @@ var JSONSchemaGenerator = class {
|
|
|
9563
9890
|
} else {
|
|
9564
9891
|
console.warn(`Invalid target: ${this.target}`);
|
|
9565
9892
|
}
|
|
9893
|
+
if (params.external?.uri) {
|
|
9894
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9895
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9896
|
+
result.$id = params.external.uri(id);
|
|
9897
|
+
}
|
|
9566
9898
|
Object.assign(result, root.def);
|
|
9567
9899
|
const defs = params.external?.defs ?? {};
|
|
9568
9900
|
for (const entry of this.seen.entries()) {
|
|
@@ -9571,11 +9903,13 @@ var JSONSchemaGenerator = class {
|
|
|
9571
9903
|
defs[seen.defId] = seen.def;
|
|
9572
9904
|
}
|
|
9573
9905
|
}
|
|
9574
|
-
if (
|
|
9575
|
-
if (
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9906
|
+
if (params.external) {} else {
|
|
9907
|
+
if (Object.keys(defs).length > 0) {
|
|
9908
|
+
if (this.target === "draft-2020-12") {
|
|
9909
|
+
result.$defs = defs;
|
|
9910
|
+
} else {
|
|
9911
|
+
result.definitions = defs;
|
|
9912
|
+
}
|
|
9579
9913
|
}
|
|
9580
9914
|
}
|
|
9581
9915
|
try {
|
|
@@ -9596,7 +9930,7 @@ function toJSONSchema(input, _params) {
|
|
|
9596
9930
|
const schemas = {};
|
|
9597
9931
|
const external = {
|
|
9598
9932
|
registry: input,
|
|
9599
|
-
uri: _params?.uri
|
|
9933
|
+
uri: _params?.uri,
|
|
9600
9934
|
defs
|
|
9601
9935
|
};
|
|
9602
9936
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9707,11 +10041,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9707
10041
|
}
|
|
9708
10042
|
|
|
9709
10043
|
//#endregion
|
|
9710
|
-
//#region ../../node_modules/zod/
|
|
10044
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9711
10045
|
var json_schema_exports = {};
|
|
9712
10046
|
|
|
9713
10047
|
//#endregion
|
|
9714
|
-
//#region ../../node_modules/zod/
|
|
10048
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9715
10049
|
var core_exports = {};
|
|
9716
10050
|
__export(core_exports, {
|
|
9717
10051
|
$ZodAny: () => $ZodAny,
|
|
@@ -9750,6 +10084,7 @@ __export(core_exports, {
|
|
|
9750
10084
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9751
10085
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9752
10086
|
$ZodCustom: () => $ZodCustom,
|
|
10087
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9753
10088
|
$ZodDate: () => $ZodDate,
|
|
9754
10089
|
$ZodDefault: () => $ZodDefault,
|
|
9755
10090
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9814,6 +10149,8 @@ __export(core_exports, {
|
|
|
9814
10149
|
Doc: () => Doc,
|
|
9815
10150
|
JSONSchema: () => json_schema_exports,
|
|
9816
10151
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
10152
|
+
NEVER: () => NEVER,
|
|
10153
|
+
TimePrecision: () => TimePrecision,
|
|
9817
10154
|
_any: () => _any,
|
|
9818
10155
|
_array: () => _array,
|
|
9819
10156
|
_base64: () => _base64,
|
|
@@ -9903,6 +10240,7 @@ __export(core_exports, {
|
|
|
9903
10240
|
_size: () => _size,
|
|
9904
10241
|
_startsWith: () => _startsWith,
|
|
9905
10242
|
_string: () => _string,
|
|
10243
|
+
_stringFormat: () => _stringFormat,
|
|
9906
10244
|
_stringbool: () => _stringbool,
|
|
9907
10245
|
_success: () => _success,
|
|
9908
10246
|
_symbol: () => _symbol,
|
|
@@ -9952,7 +10290,7 @@ __export(core_exports, {
|
|
|
9952
10290
|
});
|
|
9953
10291
|
|
|
9954
10292
|
//#endregion
|
|
9955
|
-
//#region ../../node_modules/zod/
|
|
10293
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9956
10294
|
var iso_exports = {};
|
|
9957
10295
|
__export(iso_exports, {
|
|
9958
10296
|
ZodISODate: () => ZodISODate,
|
|
@@ -9994,7 +10332,7 @@ function duration(params) {
|
|
|
9994
10332
|
}
|
|
9995
10333
|
|
|
9996
10334
|
//#endregion
|
|
9997
|
-
//#region ../../node_modules/zod/
|
|
10335
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9998
10336
|
const initializer = (inst, issues) => {
|
|
9999
10337
|
$ZodError.init(inst, issues);
|
|
10000
10338
|
inst.name = "ZodError";
|
|
@@ -10012,14 +10350,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
10012
10350
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
10013
10351
|
|
|
10014
10352
|
//#endregion
|
|
10015
|
-
//#region ../../node_modules/zod/
|
|
10353
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
10016
10354
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
10017
10355
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
10018
10356
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
10019
10357
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
10020
10358
|
|
|
10021
10359
|
//#endregion
|
|
10022
|
-
//#region ../../node_modules/zod/
|
|
10360
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
10023
10361
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
10024
10362
|
$ZodType.init(inst, def);
|
|
10025
10363
|
inst.def = def;
|
|
@@ -10287,6 +10625,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
10287
10625
|
function jwt(params) {
|
|
10288
10626
|
return _jwt(ZodJWT, params);
|
|
10289
10627
|
}
|
|
10628
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10629
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10630
|
+
ZodStringFormat.init(inst, def);
|
|
10631
|
+
});
|
|
10632
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10633
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10634
|
+
}
|
|
10290
10635
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
10291
10636
|
$ZodNumber.init(inst, def);
|
|
10292
10637
|
ZodType.init(inst, def);
|
|
@@ -10456,9 +10801,7 @@ function keyof(schema) {
|
|
|
10456
10801
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10457
10802
|
$ZodObject.init(inst, def);
|
|
10458
10803
|
ZodType.init(inst, def);
|
|
10459
|
-
defineLazy(inst, "shape", () =>
|
|
10460
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10461
|
-
});
|
|
10804
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
10462
10805
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10463
10806
|
inst.catchall = (catchall) => inst.clone({
|
|
10464
10807
|
...inst._zod.def,
|
|
@@ -10903,11 +11246,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10903
11246
|
$ZodCustom.init(inst, def);
|
|
10904
11247
|
ZodType.init(inst, def);
|
|
10905
11248
|
});
|
|
10906
|
-
function check(fn
|
|
10907
|
-
const ch = new $ZodCheck({
|
|
10908
|
-
check: "custom",
|
|
10909
|
-
...normalizeParams(params)
|
|
10910
|
-
});
|
|
11249
|
+
function check(fn) {
|
|
11250
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10911
11251
|
ch._zod.check = fn;
|
|
10912
11252
|
return ch;
|
|
10913
11253
|
}
|
|
@@ -10917,7 +11257,7 @@ function custom(fn, _params) {
|
|
|
10917
11257
|
function refine(fn, _params = {}) {
|
|
10918
11258
|
return _refine(ZodCustom, fn, _params);
|
|
10919
11259
|
}
|
|
10920
|
-
function superRefine(fn
|
|
11260
|
+
function superRefine(fn) {
|
|
10921
11261
|
const ch = check((payload) => {
|
|
10922
11262
|
payload.addIssue = (issue$1) => {
|
|
10923
11263
|
if (typeof issue$1 === "string") {
|
|
@@ -10933,7 +11273,7 @@ function superRefine(fn, params) {
|
|
|
10933
11273
|
}
|
|
10934
11274
|
};
|
|
10935
11275
|
return fn(payload.value, payload);
|
|
10936
|
-
}
|
|
11276
|
+
});
|
|
10937
11277
|
return ch;
|
|
10938
11278
|
}
|
|
10939
11279
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10971,7 +11311,7 @@ function preprocess(fn, schema) {
|
|
|
10971
11311
|
}
|
|
10972
11312
|
|
|
10973
11313
|
//#endregion
|
|
10974
|
-
//#region ../../node_modules/zod/
|
|
11314
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10975
11315
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10976
11316
|
const ZodIssueCode = {
|
|
10977
11317
|
invalid_type: "invalid_type",
|
|
@@ -10986,10 +11326,6 @@ const ZodIssueCode = {
|
|
|
10986
11326
|
invalid_value: "invalid_value",
|
|
10987
11327
|
custom: "custom"
|
|
10988
11328
|
};
|
|
10989
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10990
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10991
|
-
/** A special constant with type `never` */
|
|
10992
|
-
const NEVER = INVALID;
|
|
10993
11329
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10994
11330
|
function setErrorMap(map$1) {
|
|
10995
11331
|
config$1({ customError: map$1 });
|
|
@@ -11000,7 +11336,7 @@ function getErrorMap() {
|
|
|
11000
11336
|
}
|
|
11001
11337
|
|
|
11002
11338
|
//#endregion
|
|
11003
|
-
//#region ../../node_modules/zod/
|
|
11339
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
11004
11340
|
var coerce_exports = {};
|
|
11005
11341
|
__export(coerce_exports, {
|
|
11006
11342
|
bigint: () => bigint,
|
|
@@ -11026,13 +11362,14 @@ function date(params) {
|
|
|
11026
11362
|
}
|
|
11027
11363
|
|
|
11028
11364
|
//#endregion
|
|
11029
|
-
//#region ../../node_modules/zod/
|
|
11365
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
11030
11366
|
var external_exports = {};
|
|
11031
11367
|
__export(external_exports, {
|
|
11032
11368
|
$brand: () => $brand,
|
|
11033
11369
|
$input: () => $input,
|
|
11034
11370
|
$output: () => $output,
|
|
11035
11371
|
NEVER: () => NEVER,
|
|
11372
|
+
TimePrecision: () => TimePrecision,
|
|
11036
11373
|
ZodAny: () => ZodAny,
|
|
11037
11374
|
ZodArray: () => ZodArray,
|
|
11038
11375
|
ZodBase64: () => ZodBase64,
|
|
@@ -11046,6 +11383,7 @@ __export(external_exports, {
|
|
|
11046
11383
|
ZodCUID2: () => ZodCUID2,
|
|
11047
11384
|
ZodCatch: () => ZodCatch,
|
|
11048
11385
|
ZodCustom: () => ZodCustom,
|
|
11386
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
11049
11387
|
ZodDate: () => ZodDate,
|
|
11050
11388
|
ZodDefault: () => ZodDefault,
|
|
11051
11389
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -11207,6 +11545,7 @@ __export(external_exports, {
|
|
|
11207
11545
|
startsWith: () => _startsWith,
|
|
11208
11546
|
strictObject: () => strictObject,
|
|
11209
11547
|
string: () => string$1,
|
|
11548
|
+
stringFormat: () => stringFormat,
|
|
11210
11549
|
stringbool: () => stringbool,
|
|
11211
11550
|
success: () => success,
|
|
11212
11551
|
superRefine: () => superRefine,
|
|
@@ -11237,11 +11576,11 @@ __export(external_exports, {
|
|
|
11237
11576
|
config$1(en_default());
|
|
11238
11577
|
|
|
11239
11578
|
//#endregion
|
|
11240
|
-
//#region ../../node_modules/zod/
|
|
11579
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
11241
11580
|
var classic_default = external_exports;
|
|
11242
11581
|
|
|
11243
11582
|
//#endregion
|
|
11244
|
-
//#region ../../node_modules/zod/
|
|
11583
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
11245
11584
|
var v4_default = classic_default;
|
|
11246
11585
|
|
|
11247
11586
|
//#endregion
|
|
@@ -11262,12 +11601,12 @@ var v4_default = classic_default;
|
|
|
11262
11601
|
function validate(schema, value) {
|
|
11263
11602
|
try {
|
|
11264
11603
|
return schema.parse(value);
|
|
11265
|
-
} catch (error$
|
|
11266
|
-
if (error$
|
|
11267
|
-
const formattedErrors = error$
|
|
11268
|
-
throw new Error(`Validation error${error$
|
|
11604
|
+
} catch (error$39) {
|
|
11605
|
+
if (error$39 instanceof ZodError) {
|
|
11606
|
+
const formattedErrors = error$39.issues.map((err) => `- ${err.path.join(".")}: ${err.message}`).join("\n");
|
|
11607
|
+
throw new Error(`Validation error${error$39.issues.length > 1 ? "s" : ""}:\n${formattedErrors}`);
|
|
11269
11608
|
}
|
|
11270
|
-
throw error$
|
|
11609
|
+
throw error$39;
|
|
11271
11610
|
}
|
|
11272
11611
|
}
|
|
11273
11612
|
|
|
@@ -11570,8 +11909,8 @@ async function loadEnvironmentEnv(validateEnv, prod, path$1 = process.cwd()) {
|
|
|
11570
11909
|
...parsed,
|
|
11571
11910
|
...defaultEnv
|
|
11572
11911
|
});
|
|
11573
|
-
} catch (error$
|
|
11574
|
-
cancel(error$
|
|
11912
|
+
} catch (error$39) {
|
|
11913
|
+
cancel(error$39.message);
|
|
11575
11914
|
return {};
|
|
11576
11915
|
}
|
|
11577
11916
|
}
|