@settlemint/sdk-viem 2.4.1-prb370c72b → 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/browser/viem.js +1024 -685
- package/dist/browser/viem.js.map +1 -1
- package/dist/viem.cjs +1024 -685
- package/dist/viem.cjs.map +1 -1
- package/dist/viem.js +1024 -685
- package/dist/viem.js.map +1 -1
- package/package.json +2 -2
package/dist/viem.cjs
CHANGED
|
@@ -34,7 +34,9 @@ const __settlemint_sdk_utils_validation = __toESM(require("@settlemint/sdk-utils
|
|
|
34
34
|
const viem = __toESM(require("viem"));
|
|
35
35
|
const viem_chains = __toESM(require("viem/chains"));
|
|
36
36
|
|
|
37
|
-
//#region ../../node_modules/zod/
|
|
37
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
38
|
+
/** A special constant with type `never` */
|
|
39
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
38
40
|
function $constructor(name, initializer$2, params) {
|
|
39
41
|
function init(inst, def) {
|
|
40
42
|
var _a;
|
|
@@ -85,7 +87,7 @@ function config(newConfig) {
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
//#endregion
|
|
88
|
-
//#region ../../node_modules/zod/
|
|
90
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
89
91
|
var util_exports = {};
|
|
90
92
|
__export(util_exports, {
|
|
91
93
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -100,6 +102,7 @@ __export(util_exports, {
|
|
|
100
102
|
assertNotEqual: () => assertNotEqual,
|
|
101
103
|
assignProp: () => assignProp,
|
|
102
104
|
cached: () => cached,
|
|
105
|
+
captureStackTrace: () => captureStackTrace,
|
|
103
106
|
cleanEnum: () => cleanEnum,
|
|
104
107
|
cleanRegex: () => cleanRegex,
|
|
105
108
|
clone: () => clone,
|
|
@@ -238,10 +241,14 @@ function randomString(length = 10) {
|
|
|
238
241
|
function esc(str) {
|
|
239
242
|
return JSON.stringify(str);
|
|
240
243
|
}
|
|
244
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
241
245
|
function isObject(data) {
|
|
242
246
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
243
247
|
}
|
|
244
248
|
const allowsEval = cached(() => {
|
|
249
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
245
252
|
try {
|
|
246
253
|
const F = Function;
|
|
247
254
|
new F("");
|
|
@@ -250,9 +257,6 @@ const allowsEval = cached(() => {
|
|
|
250
257
|
return false;
|
|
251
258
|
}
|
|
252
259
|
});
|
|
253
|
-
function _isObject(o) {
|
|
254
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
255
|
-
}
|
|
256
260
|
function isPlainObject(o) {
|
|
257
261
|
if (isObject(o) === false) return false;
|
|
258
262
|
const ctor = o.constructor;
|
|
@@ -432,6 +436,9 @@ function omit(schema, mask) {
|
|
|
432
436
|
});
|
|
433
437
|
}
|
|
434
438
|
function extend(schema, shape) {
|
|
439
|
+
if (!isPlainObject(shape)) {
|
|
440
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
441
|
+
}
|
|
435
442
|
const def = {
|
|
436
443
|
...schema._zod.def,
|
|
437
444
|
get shape() {
|
|
@@ -519,7 +526,7 @@ function required(Class$1, schema, mask) {
|
|
|
519
526
|
}
|
|
520
527
|
function aborted(x, startIndex = 0) {
|
|
521
528
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
522
|
-
if (x.issues[i]
|
|
529
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
523
530
|
}
|
|
524
531
|
return false;
|
|
525
532
|
}
|
|
@@ -583,7 +590,7 @@ var Class = class {
|
|
|
583
590
|
};
|
|
584
591
|
|
|
585
592
|
//#endregion
|
|
586
|
-
//#region ../../node_modules/zod/
|
|
593
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
587
594
|
const initializer$1 = (inst, def) => {
|
|
588
595
|
inst.name = "$ZodError";
|
|
589
596
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -600,13 +607,17 @@ const initializer$1 = (inst, def) => {
|
|
|
600
607
|
},
|
|
601
608
|
enumerable: true
|
|
602
609
|
});
|
|
610
|
+
Object.defineProperty(inst, "toString", {
|
|
611
|
+
value: () => inst.message,
|
|
612
|
+
enumerable: false
|
|
613
|
+
});
|
|
603
614
|
};
|
|
604
615
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
605
616
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
606
|
-
function flattenError(error$
|
|
617
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
607
618
|
const fieldErrors = {};
|
|
608
619
|
const formErrors = [];
|
|
609
|
-
for (const sub of error$
|
|
620
|
+
for (const sub of error$39.issues) {
|
|
610
621
|
if (sub.path.length > 0) {
|
|
611
622
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
612
623
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -619,13 +630,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
619
630
|
fieldErrors
|
|
620
631
|
};
|
|
621
632
|
}
|
|
622
|
-
function formatError(error$
|
|
633
|
+
function formatError(error$39, _mapper) {
|
|
623
634
|
const mapper = _mapper || function(issue$1) {
|
|
624
635
|
return issue$1.message;
|
|
625
636
|
};
|
|
626
637
|
const fieldErrors = { _errors: [] };
|
|
627
|
-
const processError = (error$
|
|
628
|
-
for (const issue$1 of error$
|
|
638
|
+
const processError = (error$40) => {
|
|
639
|
+
for (const issue$1 of error$40.issues) {
|
|
629
640
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
630
641
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
631
642
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -652,17 +663,17 @@ function formatError(error$37, _mapper) {
|
|
|
652
663
|
}
|
|
653
664
|
}
|
|
654
665
|
};
|
|
655
|
-
processError(error$
|
|
666
|
+
processError(error$39);
|
|
656
667
|
return fieldErrors;
|
|
657
668
|
}
|
|
658
|
-
function treeifyError(error$
|
|
669
|
+
function treeifyError(error$39, _mapper) {
|
|
659
670
|
const mapper = _mapper || function(issue$1) {
|
|
660
671
|
return issue$1.message;
|
|
661
672
|
};
|
|
662
673
|
const result = { errors: [] };
|
|
663
|
-
const processError = (error$
|
|
674
|
+
const processError = (error$40, path = []) => {
|
|
664
675
|
var _a, _b;
|
|
665
|
-
for (const issue$1 of error$
|
|
676
|
+
for (const issue$1 of error$40.issues) {
|
|
666
677
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
667
678
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
668
679
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -697,7 +708,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
697
708
|
}
|
|
698
709
|
}
|
|
699
710
|
};
|
|
700
|
-
processError(error$
|
|
711
|
+
processError(error$39);
|
|
701
712
|
return result;
|
|
702
713
|
}
|
|
703
714
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -745,9 +756,9 @@ function toDotPath(path) {
|
|
|
745
756
|
}
|
|
746
757
|
return segs.join("");
|
|
747
758
|
}
|
|
748
|
-
function prettifyError(error$
|
|
759
|
+
function prettifyError(error$39) {
|
|
749
760
|
const lines = [];
|
|
750
|
-
const issues = [...error$
|
|
761
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
751
762
|
for (const issue$1 of issues) {
|
|
752
763
|
lines.push(`✖ ${issue$1.message}`);
|
|
753
764
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -756,7 +767,7 @@ function prettifyError(error$37) {
|
|
|
756
767
|
}
|
|
757
768
|
|
|
758
769
|
//#endregion
|
|
759
|
-
//#region ../../node_modules/zod/
|
|
770
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
760
771
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
761
772
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
762
773
|
const result = schema._zod.run({
|
|
@@ -768,7 +779,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
768
779
|
}
|
|
769
780
|
if (result.issues.length) {
|
|
770
781
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
771
|
-
|
|
782
|
+
captureStackTrace(e, _params?.callee);
|
|
772
783
|
throw e;
|
|
773
784
|
}
|
|
774
785
|
return result.value;
|
|
@@ -783,7 +794,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
783
794
|
if (result instanceof Promise) result = await result;
|
|
784
795
|
if (result.issues.length) {
|
|
785
796
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
786
|
-
|
|
797
|
+
captureStackTrace(e, params?.callee);
|
|
787
798
|
throw e;
|
|
788
799
|
}
|
|
789
800
|
return result.value;
|
|
@@ -828,10 +839,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
828
839
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
829
840
|
|
|
830
841
|
//#endregion
|
|
831
|
-
//#region ../../node_modules/zod/
|
|
842
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
832
843
|
var regexes_exports = {};
|
|
833
844
|
__export(regexes_exports, {
|
|
834
|
-
_emoji: () => _emoji$1,
|
|
835
845
|
base64: () => base64$1,
|
|
836
846
|
base64url: () => base64url$1,
|
|
837
847
|
bigint: () => bigint$2,
|
|
@@ -917,27 +927,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
917
927
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
918
928
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
919
929
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
920
|
-
const dateSource = `((
|
|
930
|
+
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])))`;
|
|
921
931
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
922
932
|
function timeSource(args) {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
926
|
-
} else if (args.precision == null) {
|
|
927
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
928
|
-
}
|
|
933
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
934
|
+
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+)?)?`;
|
|
929
935
|
return regex;
|
|
930
936
|
}
|
|
931
937
|
function time$1(args) {
|
|
932
938
|
return new RegExp(`^${timeSource(args)}$`);
|
|
933
939
|
}
|
|
934
940
|
function datetime$1(args) {
|
|
935
|
-
|
|
936
|
-
const opts = [];
|
|
937
|
-
|
|
938
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
939
|
-
|
|
940
|
-
return new RegExp(`^${
|
|
941
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
942
|
+
const opts = ["Z"];
|
|
943
|
+
if (args.local) opts.push("");
|
|
944
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
945
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
946
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
941
947
|
}
|
|
942
948
|
const string$2 = (params) => {
|
|
943
949
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -953,7 +959,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
953
959
|
const uppercase = /^[^a-z]*$/;
|
|
954
960
|
|
|
955
961
|
//#endregion
|
|
956
|
-
//#region ../../node_modules/zod/
|
|
962
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
957
963
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
958
964
|
var _a;
|
|
959
965
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1144,11 +1150,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1144
1150
|
};
|
|
1145
1151
|
});
|
|
1146
1152
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1153
|
+
var _a;
|
|
1147
1154
|
$ZodCheck.init(inst, def);
|
|
1148
|
-
inst._zod.when = (payload) => {
|
|
1155
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1149
1156
|
const val = payload.value;
|
|
1150
1157
|
return !nullish$1(val) && val.size !== undefined;
|
|
1151
|
-
};
|
|
1158
|
+
});
|
|
1152
1159
|
inst._zod.onattach.push((inst$1) => {
|
|
1153
1160
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1154
1161
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1168,11 +1175,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1168
1175
|
};
|
|
1169
1176
|
});
|
|
1170
1177
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1178
|
+
var _a;
|
|
1171
1179
|
$ZodCheck.init(inst, def);
|
|
1172
|
-
inst._zod.when = (payload) => {
|
|
1180
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1173
1181
|
const val = payload.value;
|
|
1174
1182
|
return !nullish$1(val) && val.size !== undefined;
|
|
1175
|
-
};
|
|
1183
|
+
});
|
|
1176
1184
|
inst._zod.onattach.push((inst$1) => {
|
|
1177
1185
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1178
1186
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1192,11 +1200,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1192
1200
|
};
|
|
1193
1201
|
});
|
|
1194
1202
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1203
|
+
var _a;
|
|
1195
1204
|
$ZodCheck.init(inst, def);
|
|
1196
|
-
inst._zod.when = (payload) => {
|
|
1205
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1197
1206
|
const val = payload.value;
|
|
1198
1207
|
return !nullish$1(val) && val.size !== undefined;
|
|
1199
|
-
};
|
|
1208
|
+
});
|
|
1200
1209
|
inst._zod.onattach.push((inst$1) => {
|
|
1201
1210
|
const bag = inst$1._zod.bag;
|
|
1202
1211
|
bag.minimum = def.size;
|
|
@@ -1217,6 +1226,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1217
1226
|
code: "too_small",
|
|
1218
1227
|
minimum: def.size
|
|
1219
1228
|
},
|
|
1229
|
+
inclusive: true,
|
|
1230
|
+
exact: true,
|
|
1220
1231
|
input: payload.value,
|
|
1221
1232
|
inst,
|
|
1222
1233
|
continue: !def.abort
|
|
@@ -1224,11 +1235,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1224
1235
|
};
|
|
1225
1236
|
});
|
|
1226
1237
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1238
|
+
var _a;
|
|
1227
1239
|
$ZodCheck.init(inst, def);
|
|
1228
|
-
inst._zod.when = (payload) => {
|
|
1240
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1229
1241
|
const val = payload.value;
|
|
1230
1242
|
return !nullish$1(val) && val.length !== undefined;
|
|
1231
|
-
};
|
|
1243
|
+
});
|
|
1232
1244
|
inst._zod.onattach.push((inst$1) => {
|
|
1233
1245
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1234
1246
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1250,11 +1262,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1250
1262
|
};
|
|
1251
1263
|
});
|
|
1252
1264
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1265
|
+
var _a;
|
|
1253
1266
|
$ZodCheck.init(inst, def);
|
|
1254
|
-
inst._zod.when = (payload) => {
|
|
1267
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1255
1268
|
const val = payload.value;
|
|
1256
1269
|
return !nullish$1(val) && val.length !== undefined;
|
|
1257
|
-
};
|
|
1270
|
+
});
|
|
1258
1271
|
inst._zod.onattach.push((inst$1) => {
|
|
1259
1272
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1260
1273
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1276,11 +1289,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1276
1289
|
};
|
|
1277
1290
|
});
|
|
1278
1291
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1292
|
+
var _a;
|
|
1279
1293
|
$ZodCheck.init(inst, def);
|
|
1280
|
-
inst._zod.when = (payload) => {
|
|
1294
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1281
1295
|
const val = payload.value;
|
|
1282
1296
|
return !nullish$1(val) && val.length !== undefined;
|
|
1283
|
-
};
|
|
1297
|
+
});
|
|
1284
1298
|
inst._zod.onattach.push((inst$1) => {
|
|
1285
1299
|
const bag = inst$1._zod.bag;
|
|
1286
1300
|
bag.minimum = def.length;
|
|
@@ -1302,6 +1316,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1302
1316
|
code: "too_small",
|
|
1303
1317
|
minimum: def.length
|
|
1304
1318
|
},
|
|
1319
|
+
inclusive: true,
|
|
1320
|
+
exact: true,
|
|
1305
1321
|
input: payload.value,
|
|
1306
1322
|
inst,
|
|
1307
1323
|
continue: !def.abort
|
|
@@ -1309,7 +1325,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1309
1325
|
};
|
|
1310
1326
|
});
|
|
1311
1327
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1312
|
-
var _a;
|
|
1328
|
+
var _a, _b;
|
|
1313
1329
|
$ZodCheck.init(inst, def);
|
|
1314
1330
|
inst._zod.onattach.push((inst$1) => {
|
|
1315
1331
|
const bag = inst$1._zod.bag;
|
|
@@ -1319,8 +1335,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1319
1335
|
bag.patterns.add(def.pattern);
|
|
1320
1336
|
}
|
|
1321
1337
|
});
|
|
1322
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1323
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1338
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1324
1339
|
def.pattern.lastIndex = 0;
|
|
1325
1340
|
if (def.pattern.test(payload.value)) return;
|
|
1326
1341
|
payload.issues.push({
|
|
@@ -1333,6 +1348,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1333
1348
|
continue: !def.abort
|
|
1334
1349
|
});
|
|
1335
1350
|
});
|
|
1351
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1336
1352
|
});
|
|
1337
1353
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1338
1354
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1456,7 +1472,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1456
1472
|
code: "invalid_value",
|
|
1457
1473
|
values: def.mime,
|
|
1458
1474
|
input: payload.value.type,
|
|
1459
|
-
path: ["type"],
|
|
1460
1475
|
inst
|
|
1461
1476
|
});
|
|
1462
1477
|
};
|
|
@@ -1469,7 +1484,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1469
1484
|
});
|
|
1470
1485
|
|
|
1471
1486
|
//#endregion
|
|
1472
|
-
//#region ../../node_modules/zod/
|
|
1487
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1473
1488
|
var Doc = class {
|
|
1474
1489
|
constructor(args = []) {
|
|
1475
1490
|
this.content = [];
|
|
@@ -1505,19 +1520,18 @@ var Doc = class {
|
|
|
1505
1520
|
};
|
|
1506
1521
|
|
|
1507
1522
|
//#endregion
|
|
1508
|
-
//#region ../../node_modules/zod/
|
|
1523
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1509
1524
|
const version = {
|
|
1510
1525
|
major: 4,
|
|
1511
1526
|
minor: 0,
|
|
1512
|
-
patch:
|
|
1527
|
+
patch: 2
|
|
1513
1528
|
};
|
|
1514
1529
|
|
|
1515
1530
|
//#endregion
|
|
1516
|
-
//#region ../../node_modules/zod/
|
|
1531
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1517
1532
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1518
1533
|
var _a;
|
|
1519
1534
|
inst ?? (inst = {});
|
|
1520
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1521
1535
|
inst._zod.def = def;
|
|
1522
1536
|
inst._zod.bag = inst._zod.bag || {};
|
|
1523
1537
|
inst._zod.version = version;
|
|
@@ -1540,13 +1554,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1540
1554
|
let isAborted = aborted(payload);
|
|
1541
1555
|
let asyncResult;
|
|
1542
1556
|
for (const ch of checks$1) {
|
|
1543
|
-
if (ch._zod.when) {
|
|
1544
|
-
const shouldRun = ch._zod.when(payload);
|
|
1557
|
+
if (ch._zod.def.when) {
|
|
1558
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1545
1559
|
if (!shouldRun) continue;
|
|
1546
|
-
} else {
|
|
1547
|
-
|
|
1548
|
-
continue;
|
|
1549
|
-
}
|
|
1560
|
+
} else if (isAborted) {
|
|
1561
|
+
continue;
|
|
1550
1562
|
}
|
|
1551
1563
|
const currLen = payload.issues.length;
|
|
1552
1564
|
const _ = ch._zod.check(payload);
|
|
@@ -1646,7 +1658,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1646
1658
|
$ZodStringFormat.init(inst, def);
|
|
1647
1659
|
inst._zod.check = (payload) => {
|
|
1648
1660
|
try {
|
|
1649
|
-
const
|
|
1661
|
+
const orig = payload.value;
|
|
1662
|
+
const url$1 = new URL(orig);
|
|
1663
|
+
const href = url$1.href;
|
|
1650
1664
|
if (def.hostname) {
|
|
1651
1665
|
def.hostname.lastIndex = 0;
|
|
1652
1666
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -1675,6 +1689,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1675
1689
|
});
|
|
1676
1690
|
}
|
|
1677
1691
|
}
|
|
1692
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
1693
|
+
payload.value = href.slice(0, -1);
|
|
1694
|
+
} else {
|
|
1695
|
+
payload.value = href;
|
|
1696
|
+
}
|
|
1678
1697
|
return;
|
|
1679
1698
|
} catch (_) {
|
|
1680
1699
|
payload.issues.push({
|
|
@@ -1845,6 +1864,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1845
1864
|
const tokensParts = token.split(".");
|
|
1846
1865
|
if (tokensParts.length !== 3) return false;
|
|
1847
1866
|
const [header] = tokensParts;
|
|
1867
|
+
if (!header) return false;
|
|
1848
1868
|
const parsedHeader = JSON.parse(atob(header));
|
|
1849
1869
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1850
1870
|
if (!parsedHeader.alg) return false;
|
|
@@ -1867,6 +1887,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1867
1887
|
});
|
|
1868
1888
|
};
|
|
1869
1889
|
});
|
|
1890
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
1891
|
+
$ZodStringFormat.init(inst, def);
|
|
1892
|
+
inst._zod.check = (payload) => {
|
|
1893
|
+
if (def.fn(payload.value)) return;
|
|
1894
|
+
payload.issues.push({
|
|
1895
|
+
code: "invalid_format",
|
|
1896
|
+
format: def.format,
|
|
1897
|
+
input: payload.value,
|
|
1898
|
+
inst,
|
|
1899
|
+
continue: !def.abort
|
|
1900
|
+
});
|
|
1901
|
+
};
|
|
1902
|
+
});
|
|
1870
1903
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
1871
1904
|
$ZodType.init(inst, def);
|
|
1872
1905
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -1918,12 +1951,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
1918
1951
|
if (def.coerce) try {
|
|
1919
1952
|
payload.value = BigInt(payload.value);
|
|
1920
1953
|
} catch (_) {}
|
|
1921
|
-
|
|
1922
|
-
if (typeof input === "bigint") return payload;
|
|
1954
|
+
if (typeof payload.value === "bigint") return payload;
|
|
1923
1955
|
payload.issues.push({
|
|
1924
1956
|
expected: "bigint",
|
|
1925
1957
|
code: "invalid_type",
|
|
1926
|
-
input,
|
|
1958
|
+
input: payload.value,
|
|
1927
1959
|
inst
|
|
1928
1960
|
});
|
|
1929
1961
|
return payload;
|
|
@@ -1936,7 +1968,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
1936
1968
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
1937
1969
|
$ZodType.init(inst, def);
|
|
1938
1970
|
inst._zod.parse = (payload, _ctx) => {
|
|
1939
|
-
const
|
|
1971
|
+
const input = payload.value;
|
|
1940
1972
|
if (typeof input === "symbol") return payload;
|
|
1941
1973
|
payload.issues.push({
|
|
1942
1974
|
expected: "symbol",
|
|
@@ -1951,8 +1983,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
1951
1983
|
$ZodType.init(inst, def);
|
|
1952
1984
|
inst._zod.pattern = _undefined$2;
|
|
1953
1985
|
inst._zod.values = new Set([undefined]);
|
|
1986
|
+
inst._zod.optin = "optional";
|
|
1987
|
+
inst._zod.optout = "optional";
|
|
1954
1988
|
inst._zod.parse = (payload, _ctx) => {
|
|
1955
|
-
const
|
|
1989
|
+
const input = payload.value;
|
|
1956
1990
|
if (typeof input === "undefined") return payload;
|
|
1957
1991
|
payload.issues.push({
|
|
1958
1992
|
expected: "undefined",
|
|
@@ -1968,7 +2002,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1968
2002
|
inst._zod.pattern = _null$2;
|
|
1969
2003
|
inst._zod.values = new Set([null]);
|
|
1970
2004
|
inst._zod.parse = (payload, _ctx) => {
|
|
1971
|
-
const
|
|
2005
|
+
const input = payload.value;
|
|
1972
2006
|
if (input === null) return payload;
|
|
1973
2007
|
payload.issues.push({
|
|
1974
2008
|
expected: "null",
|
|
@@ -2002,7 +2036,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2002
2036
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2003
2037
|
$ZodType.init(inst, def);
|
|
2004
2038
|
inst._zod.parse = (payload, _ctx) => {
|
|
2005
|
-
const
|
|
2039
|
+
const input = payload.value;
|
|
2006
2040
|
if (typeof input === "undefined") return payload;
|
|
2007
2041
|
payload.issues.push({
|
|
2008
2042
|
expected: "void",
|
|
@@ -2133,19 +2167,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2133
2167
|
"payload",
|
|
2134
2168
|
"ctx"
|
|
2135
2169
|
]);
|
|
2136
|
-
const
|
|
2170
|
+
const normalized = _normalized.value;
|
|
2137
2171
|
const parseStr = (key) => {
|
|
2138
2172
|
const k = esc(key);
|
|
2139
2173
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2140
2174
|
};
|
|
2141
2175
|
doc.write(`const input = payload.value;`);
|
|
2142
2176
|
const ids = Object.create(null);
|
|
2143
|
-
|
|
2144
|
-
|
|
2177
|
+
let counter = 0;
|
|
2178
|
+
for (const key of normalized.keys) {
|
|
2179
|
+
ids[key] = `key_${counter++}`;
|
|
2145
2180
|
}
|
|
2146
2181
|
doc.write(`const newResult = {}`);
|
|
2147
|
-
for (const key of keys) {
|
|
2148
|
-
if (optionalKeys
|
|
2182
|
+
for (const key of normalized.keys) {
|
|
2183
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2149
2184
|
const id = ids[key];
|
|
2150
2185
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2151
2186
|
const k = esc(key);
|
|
@@ -2190,7 +2225,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2190
2225
|
const jit = !globalConfig.jitless;
|
|
2191
2226
|
const allowsEval$1 = allowsEval;
|
|
2192
2227
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2193
|
-
const
|
|
2228
|
+
const catchall = def.catchall;
|
|
2194
2229
|
let value;
|
|
2195
2230
|
inst._zod.parse = (payload, ctx) => {
|
|
2196
2231
|
value ?? (value = _normalized.value);
|
|
@@ -2220,12 +2255,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2220
2255
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2221
2256
|
if (r instanceof Promise) {
|
|
2222
2257
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2258
|
+
} else if (isOptional) {
|
|
2259
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2223
2260
|
} else {
|
|
2224
|
-
|
|
2225
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2226
|
-
} else {
|
|
2227
|
-
handleObjectResult(r, payload, key);
|
|
2228
|
-
}
|
|
2261
|
+
handleObjectResult(r, payload, key);
|
|
2229
2262
|
}
|
|
2230
2263
|
}
|
|
2231
2264
|
}
|
|
@@ -2283,6 +2316,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2283
2316
|
}
|
|
2284
2317
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2285
2318
|
$ZodType.init(inst, def);
|
|
2319
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2320
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2286
2321
|
defineLazy(inst._zod, "values", () => {
|
|
2287
2322
|
if (def.options.every((o) => o._zod.values)) {
|
|
2288
2323
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2382,7 +2417,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2382
2417
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2383
2418
|
$ZodType.init(inst, def);
|
|
2384
2419
|
inst._zod.parse = (payload, ctx) => {
|
|
2385
|
-
const
|
|
2420
|
+
const input = payload.value;
|
|
2386
2421
|
const left = def.left._zod.run({
|
|
2387
2422
|
value: input,
|
|
2388
2423
|
issues: []
|
|
@@ -2839,6 +2874,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2839
2874
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
2840
2875
|
});
|
|
2841
2876
|
inst._zod.parse = (payload, ctx) => {
|
|
2877
|
+
if (def.innerType._zod.optin === "optional") {
|
|
2878
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2879
|
+
}
|
|
2842
2880
|
if (payload.value === undefined) {
|
|
2843
2881
|
return payload;
|
|
2844
2882
|
}
|
|
@@ -2938,7 +2976,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
2938
2976
|
});
|
|
2939
2977
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
2940
2978
|
$ZodType.init(inst, def);
|
|
2941
|
-
|
|
2979
|
+
inst._zod.optin = "optional";
|
|
2942
2980
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2943
2981
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2944
2982
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3009,6 +3047,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3009
3047
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3010
3048
|
$ZodType.init(inst, def);
|
|
3011
3049
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3050
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3012
3051
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3013
3052
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3014
3053
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3059,7 +3098,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3059
3098
|
input: payload.value,
|
|
3060
3099
|
inst,
|
|
3061
3100
|
code: "invalid_format",
|
|
3062
|
-
format: "template_literal",
|
|
3101
|
+
format: def.format ?? "template_literal",
|
|
3063
3102
|
pattern: inst._zod.pattern.source
|
|
3064
3103
|
});
|
|
3065
3104
|
return payload;
|
|
@@ -3119,8 +3158,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3119
3158
|
}
|
|
3120
3159
|
|
|
3121
3160
|
//#endregion
|
|
3122
|
-
//#region ../../node_modules/zod/
|
|
3123
|
-
const error$
|
|
3161
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3162
|
+
const error$38 = () => {
|
|
3124
3163
|
const Sizable = {
|
|
3125
3164
|
string: {
|
|
3126
3165
|
unit: "حرف",
|
|
@@ -3142,7 +3181,7 @@ const error$36 = () => {
|
|
|
3142
3181
|
function getSizing(origin) {
|
|
3143
3182
|
return Sizable[origin] ?? null;
|
|
3144
3183
|
}
|
|
3145
|
-
const parsedType$
|
|
3184
|
+
const parsedType$3 = (data) => {
|
|
3146
3185
|
const t = typeof data;
|
|
3147
3186
|
switch (t) {
|
|
3148
3187
|
case "number": {
|
|
@@ -3194,7 +3233,7 @@ const error$36 = () => {
|
|
|
3194
3233
|
};
|
|
3195
3234
|
return (issue$1) => {
|
|
3196
3235
|
switch (issue$1.code) {
|
|
3197
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3236
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3198
3237
|
case "invalid_value":
|
|
3199
3238
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3200
3239
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3230,12 +3269,12 @@ const error$36 = () => {
|
|
|
3230
3269
|
};
|
|
3231
3270
|
};
|
|
3232
3271
|
function ar_default() {
|
|
3233
|
-
return { localeError: error$
|
|
3272
|
+
return { localeError: error$38() };
|
|
3234
3273
|
}
|
|
3235
3274
|
|
|
3236
3275
|
//#endregion
|
|
3237
|
-
//#region ../../node_modules/zod/
|
|
3238
|
-
const error$
|
|
3276
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3277
|
+
const error$37 = () => {
|
|
3239
3278
|
const Sizable = {
|
|
3240
3279
|
string: {
|
|
3241
3280
|
unit: "simvol",
|
|
@@ -3257,7 +3296,7 @@ const error$35 = () => {
|
|
|
3257
3296
|
function getSizing(origin) {
|
|
3258
3297
|
return Sizable[origin] ?? null;
|
|
3259
3298
|
}
|
|
3260
|
-
const parsedType$
|
|
3299
|
+
const parsedType$3 = (data) => {
|
|
3261
3300
|
const t = typeof data;
|
|
3262
3301
|
switch (t) {
|
|
3263
3302
|
case "number": {
|
|
@@ -3309,7 +3348,7 @@ const error$35 = () => {
|
|
|
3309
3348
|
};
|
|
3310
3349
|
return (issue$1) => {
|
|
3311
3350
|
switch (issue$1.code) {
|
|
3312
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3351
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3313
3352
|
case "invalid_value":
|
|
3314
3353
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3315
3354
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3343,11 +3382,11 @@ const error$35 = () => {
|
|
|
3343
3382
|
};
|
|
3344
3383
|
};
|
|
3345
3384
|
function az_default() {
|
|
3346
|
-
return { localeError: error$
|
|
3385
|
+
return { localeError: error$37() };
|
|
3347
3386
|
}
|
|
3348
3387
|
|
|
3349
3388
|
//#endregion
|
|
3350
|
-
//#region ../../node_modules/zod/
|
|
3389
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3351
3390
|
function getBelarusianPlural(count, one, few, many) {
|
|
3352
3391
|
const absCount = Math.abs(count);
|
|
3353
3392
|
const lastDigit = absCount % 10;
|
|
@@ -3363,7 +3402,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3363
3402
|
}
|
|
3364
3403
|
return many;
|
|
3365
3404
|
}
|
|
3366
|
-
const error$
|
|
3405
|
+
const error$36 = () => {
|
|
3367
3406
|
const Sizable = {
|
|
3368
3407
|
string: {
|
|
3369
3408
|
unit: {
|
|
@@ -3401,7 +3440,7 @@ const error$34 = () => {
|
|
|
3401
3440
|
function getSizing(origin) {
|
|
3402
3441
|
return Sizable[origin] ?? null;
|
|
3403
3442
|
}
|
|
3404
|
-
const parsedType$
|
|
3443
|
+
const parsedType$3 = (data) => {
|
|
3405
3444
|
const t = typeof data;
|
|
3406
3445
|
switch (t) {
|
|
3407
3446
|
case "number": {
|
|
@@ -3453,7 +3492,7 @@ const error$34 = () => {
|
|
|
3453
3492
|
};
|
|
3454
3493
|
return (issue$1) => {
|
|
3455
3494
|
switch (issue$1.code) {
|
|
3456
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3495
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3457
3496
|
case "invalid_value":
|
|
3458
3497
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3459
3498
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3495,12 +3534,12 @@ const error$34 = () => {
|
|
|
3495
3534
|
};
|
|
3496
3535
|
};
|
|
3497
3536
|
function be_default() {
|
|
3498
|
-
return { localeError: error$
|
|
3537
|
+
return { localeError: error$36() };
|
|
3499
3538
|
}
|
|
3500
3539
|
|
|
3501
3540
|
//#endregion
|
|
3502
|
-
//#region ../../node_modules/zod/
|
|
3503
|
-
const error$
|
|
3541
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3542
|
+
const error$35 = () => {
|
|
3504
3543
|
const Sizable = {
|
|
3505
3544
|
string: {
|
|
3506
3545
|
unit: "caràcters",
|
|
@@ -3522,7 +3561,7 @@ const error$33 = () => {
|
|
|
3522
3561
|
function getSizing(origin) {
|
|
3523
3562
|
return Sizable[origin] ?? null;
|
|
3524
3563
|
}
|
|
3525
|
-
const parsedType$
|
|
3564
|
+
const parsedType$3 = (data) => {
|
|
3526
3565
|
const t = typeof data;
|
|
3527
3566
|
switch (t) {
|
|
3528
3567
|
case "number": {
|
|
@@ -3574,7 +3613,7 @@ const error$33 = () => {
|
|
|
3574
3613
|
};
|
|
3575
3614
|
return (issue$1) => {
|
|
3576
3615
|
switch (issue$1.code) {
|
|
3577
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
3616
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
3578
3617
|
case "invalid_value":
|
|
3579
3618
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3580
3619
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -3612,12 +3651,12 @@ const error$33 = () => {
|
|
|
3612
3651
|
};
|
|
3613
3652
|
};
|
|
3614
3653
|
function ca_default() {
|
|
3615
|
-
return { localeError: error$
|
|
3654
|
+
return { localeError: error$35() };
|
|
3616
3655
|
}
|
|
3617
3656
|
|
|
3618
3657
|
//#endregion
|
|
3619
|
-
//#region ../../node_modules/zod/
|
|
3620
|
-
const error$
|
|
3658
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
3659
|
+
const error$34 = () => {
|
|
3621
3660
|
const Sizable = {
|
|
3622
3661
|
string: {
|
|
3623
3662
|
unit: "znaků",
|
|
@@ -3639,7 +3678,7 @@ const error$32 = () => {
|
|
|
3639
3678
|
function getSizing(origin) {
|
|
3640
3679
|
return Sizable[origin] ?? null;
|
|
3641
3680
|
}
|
|
3642
|
-
const parsedType$
|
|
3681
|
+
const parsedType$3 = (data) => {
|
|
3643
3682
|
const t = typeof data;
|
|
3644
3683
|
switch (t) {
|
|
3645
3684
|
case "number": {
|
|
@@ -3709,7 +3748,7 @@ const error$32 = () => {
|
|
|
3709
3748
|
};
|
|
3710
3749
|
return (issue$1) => {
|
|
3711
3750
|
switch (issue$1.code) {
|
|
3712
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
3751
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
3713
3752
|
case "invalid_value":
|
|
3714
3753
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3715
3754
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3747,12 +3786,12 @@ const error$32 = () => {
|
|
|
3747
3786
|
};
|
|
3748
3787
|
};
|
|
3749
3788
|
function cs_default() {
|
|
3750
|
-
return { localeError: error$
|
|
3789
|
+
return { localeError: error$34() };
|
|
3751
3790
|
}
|
|
3752
3791
|
|
|
3753
3792
|
//#endregion
|
|
3754
|
-
//#region ../../node_modules/zod/
|
|
3755
|
-
const error$
|
|
3793
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
3794
|
+
const error$33 = () => {
|
|
3756
3795
|
const Sizable = {
|
|
3757
3796
|
string: {
|
|
3758
3797
|
unit: "Zeichen",
|
|
@@ -3774,7 +3813,7 @@ const error$31 = () => {
|
|
|
3774
3813
|
function getSizing(origin) {
|
|
3775
3814
|
return Sizable[origin] ?? null;
|
|
3776
3815
|
}
|
|
3777
|
-
const parsedType$
|
|
3816
|
+
const parsedType$3 = (data) => {
|
|
3778
3817
|
const t = typeof data;
|
|
3779
3818
|
switch (t) {
|
|
3780
3819
|
case "number": {
|
|
@@ -3826,7 +3865,7 @@ const error$31 = () => {
|
|
|
3826
3865
|
};
|
|
3827
3866
|
return (issue$1) => {
|
|
3828
3867
|
switch (issue$1.code) {
|
|
3829
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
3868
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
3830
3869
|
case "invalid_value":
|
|
3831
3870
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3832
3871
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3862,12 +3901,12 @@ const error$31 = () => {
|
|
|
3862
3901
|
};
|
|
3863
3902
|
};
|
|
3864
3903
|
function de_default() {
|
|
3865
|
-
return { localeError: error$
|
|
3904
|
+
return { localeError: error$33() };
|
|
3866
3905
|
}
|
|
3867
3906
|
|
|
3868
3907
|
//#endregion
|
|
3869
|
-
//#region ../../node_modules/zod/
|
|
3870
|
-
const parsedType$
|
|
3908
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3909
|
+
const parsedType$2 = (data) => {
|
|
3871
3910
|
const t = typeof data;
|
|
3872
3911
|
switch (t) {
|
|
3873
3912
|
case "number": {
|
|
@@ -3887,7 +3926,7 @@ const parsedType$1 = (data) => {
|
|
|
3887
3926
|
}
|
|
3888
3927
|
return t;
|
|
3889
3928
|
};
|
|
3890
|
-
const error$
|
|
3929
|
+
const error$32 = () => {
|
|
3891
3930
|
const Sizable = {
|
|
3892
3931
|
string: {
|
|
3893
3932
|
unit: "characters",
|
|
@@ -3941,7 +3980,7 @@ const error$30 = () => {
|
|
|
3941
3980
|
};
|
|
3942
3981
|
return (issue$1) => {
|
|
3943
3982
|
switch (issue$1.code) {
|
|
3944
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
3983
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
3945
3984
|
case "invalid_value":
|
|
3946
3985
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3947
3986
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3979,12 +4018,127 @@ const error$30 = () => {
|
|
|
3979
4018
|
};
|
|
3980
4019
|
};
|
|
3981
4020
|
function en_default() {
|
|
3982
|
-
return { localeError: error$
|
|
4021
|
+
return { localeError: error$32() };
|
|
3983
4022
|
}
|
|
3984
4023
|
|
|
3985
4024
|
//#endregion
|
|
3986
|
-
//#region ../../node_modules/zod/
|
|
3987
|
-
const
|
|
4025
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4026
|
+
const parsedType$1 = (data) => {
|
|
4027
|
+
const t = typeof data;
|
|
4028
|
+
switch (t) {
|
|
4029
|
+
case "number": {
|
|
4030
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4031
|
+
}
|
|
4032
|
+
case "object": {
|
|
4033
|
+
if (Array.isArray(data)) {
|
|
4034
|
+
return "tabelo";
|
|
4035
|
+
}
|
|
4036
|
+
if (data === null) {
|
|
4037
|
+
return "senvalora";
|
|
4038
|
+
}
|
|
4039
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4040
|
+
return data.constructor.name;
|
|
4041
|
+
}
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
return t;
|
|
4045
|
+
};
|
|
4046
|
+
const error$31 = () => {
|
|
4047
|
+
const Sizable = {
|
|
4048
|
+
string: {
|
|
4049
|
+
unit: "karaktrojn",
|
|
4050
|
+
verb: "havi"
|
|
4051
|
+
},
|
|
4052
|
+
file: {
|
|
4053
|
+
unit: "bajtojn",
|
|
4054
|
+
verb: "havi"
|
|
4055
|
+
},
|
|
4056
|
+
array: {
|
|
4057
|
+
unit: "elementojn",
|
|
4058
|
+
verb: "havi"
|
|
4059
|
+
},
|
|
4060
|
+
set: {
|
|
4061
|
+
unit: "elementojn",
|
|
4062
|
+
verb: "havi"
|
|
4063
|
+
}
|
|
4064
|
+
};
|
|
4065
|
+
function getSizing(origin) {
|
|
4066
|
+
return Sizable[origin] ?? null;
|
|
4067
|
+
}
|
|
4068
|
+
const Nouns = {
|
|
4069
|
+
regex: "enigo",
|
|
4070
|
+
email: "retadreso",
|
|
4071
|
+
url: "URL",
|
|
4072
|
+
emoji: "emoĝio",
|
|
4073
|
+
uuid: "UUID",
|
|
4074
|
+
uuidv4: "UUIDv4",
|
|
4075
|
+
uuidv6: "UUIDv6",
|
|
4076
|
+
nanoid: "nanoid",
|
|
4077
|
+
guid: "GUID",
|
|
4078
|
+
cuid: "cuid",
|
|
4079
|
+
cuid2: "cuid2",
|
|
4080
|
+
ulid: "ULID",
|
|
4081
|
+
xid: "XID",
|
|
4082
|
+
ksuid: "KSUID",
|
|
4083
|
+
datetime: "ISO-datotempo",
|
|
4084
|
+
date: "ISO-dato",
|
|
4085
|
+
time: "ISO-tempo",
|
|
4086
|
+
duration: "ISO-daŭro",
|
|
4087
|
+
ipv4: "IPv4-adreso",
|
|
4088
|
+
ipv6: "IPv6-adreso",
|
|
4089
|
+
cidrv4: "IPv4-rango",
|
|
4090
|
+
cidrv6: "IPv6-rango",
|
|
4091
|
+
base64: "64-ume kodita karaktraro",
|
|
4092
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4093
|
+
json_string: "JSON-karaktraro",
|
|
4094
|
+
e164: "E.164-nombro",
|
|
4095
|
+
jwt: "JWT",
|
|
4096
|
+
template_literal: "enigo"
|
|
4097
|
+
};
|
|
4098
|
+
return (issue$1) => {
|
|
4099
|
+
switch (issue$1.code) {
|
|
4100
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4101
|
+
case "invalid_value":
|
|
4102
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4103
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4104
|
+
case "too_big": {
|
|
4105
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4106
|
+
const sizing = getSizing(issue$1.origin);
|
|
4107
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4108
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4109
|
+
}
|
|
4110
|
+
case "too_small": {
|
|
4111
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4112
|
+
const sizing = getSizing(issue$1.origin);
|
|
4113
|
+
if (sizing) {
|
|
4114
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4115
|
+
}
|
|
4116
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4117
|
+
}
|
|
4118
|
+
case "invalid_format": {
|
|
4119
|
+
const _issue = issue$1;
|
|
4120
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4121
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4122
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4123
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4124
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4125
|
+
}
|
|
4126
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4127
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4128
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4129
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4130
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4131
|
+
default: return `Nevalida enigo`;
|
|
4132
|
+
}
|
|
4133
|
+
};
|
|
4134
|
+
};
|
|
4135
|
+
function eo_default() {
|
|
4136
|
+
return { localeError: error$31() };
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
//#endregion
|
|
4140
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4141
|
+
const error$30 = () => {
|
|
3988
4142
|
const Sizable = {
|
|
3989
4143
|
string: {
|
|
3990
4144
|
unit: "caracteres",
|
|
@@ -4006,7 +4160,7 @@ const error$29 = () => {
|
|
|
4006
4160
|
function getSizing(origin) {
|
|
4007
4161
|
return Sizable[origin] ?? null;
|
|
4008
4162
|
}
|
|
4009
|
-
const parsedType$
|
|
4163
|
+
const parsedType$3 = (data) => {
|
|
4010
4164
|
const t = typeof data;
|
|
4011
4165
|
switch (t) {
|
|
4012
4166
|
case "number": {
|
|
@@ -4058,7 +4212,7 @@ const error$29 = () => {
|
|
|
4058
4212
|
};
|
|
4059
4213
|
return (issue$1) => {
|
|
4060
4214
|
switch (issue$1.code) {
|
|
4061
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4215
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4062
4216
|
case "invalid_value":
|
|
4063
4217
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4064
4218
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4094,12 +4248,12 @@ const error$29 = () => {
|
|
|
4094
4248
|
};
|
|
4095
4249
|
};
|
|
4096
4250
|
function es_default() {
|
|
4097
|
-
return { localeError: error$
|
|
4251
|
+
return { localeError: error$30() };
|
|
4098
4252
|
}
|
|
4099
4253
|
|
|
4100
4254
|
//#endregion
|
|
4101
|
-
//#region ../../node_modules/zod/
|
|
4102
|
-
const error$
|
|
4255
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4256
|
+
const error$29 = () => {
|
|
4103
4257
|
const Sizable = {
|
|
4104
4258
|
string: {
|
|
4105
4259
|
unit: "کاراکتر",
|
|
@@ -4121,7 +4275,7 @@ const error$28 = () => {
|
|
|
4121
4275
|
function getSizing(origin) {
|
|
4122
4276
|
return Sizable[origin] ?? null;
|
|
4123
4277
|
}
|
|
4124
|
-
const parsedType$
|
|
4278
|
+
const parsedType$3 = (data) => {
|
|
4125
4279
|
const t = typeof data;
|
|
4126
4280
|
switch (t) {
|
|
4127
4281
|
case "number": {
|
|
@@ -4173,7 +4327,7 @@ const error$28 = () => {
|
|
|
4173
4327
|
};
|
|
4174
4328
|
return (issue$1) => {
|
|
4175
4329
|
switch (issue$1.code) {
|
|
4176
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4330
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4177
4331
|
case "invalid_value":
|
|
4178
4332
|
if (issue$1.values.length === 1) {
|
|
4179
4333
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4221,12 +4375,12 @@ const error$28 = () => {
|
|
|
4221
4375
|
};
|
|
4222
4376
|
};
|
|
4223
4377
|
function fa_default() {
|
|
4224
|
-
return { localeError: error$
|
|
4378
|
+
return { localeError: error$29() };
|
|
4225
4379
|
}
|
|
4226
4380
|
|
|
4227
4381
|
//#endregion
|
|
4228
|
-
//#region ../../node_modules/zod/
|
|
4229
|
-
const error$
|
|
4382
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4383
|
+
const error$28 = () => {
|
|
4230
4384
|
const Sizable = {
|
|
4231
4385
|
string: {
|
|
4232
4386
|
unit: "merkkiä",
|
|
@@ -4264,7 +4418,7 @@ const error$27 = () => {
|
|
|
4264
4418
|
function getSizing(origin) {
|
|
4265
4419
|
return Sizable[origin] ?? null;
|
|
4266
4420
|
}
|
|
4267
|
-
const parsedType$
|
|
4421
|
+
const parsedType$3 = (data) => {
|
|
4268
4422
|
const t = typeof data;
|
|
4269
4423
|
switch (t) {
|
|
4270
4424
|
case "number": {
|
|
@@ -4316,7 +4470,7 @@ const error$27 = () => {
|
|
|
4316
4470
|
};
|
|
4317
4471
|
return (issue$1) => {
|
|
4318
4472
|
switch (issue$1.code) {
|
|
4319
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4473
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4320
4474
|
case "invalid_value":
|
|
4321
4475
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4322
4476
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4356,12 +4510,12 @@ const error$27 = () => {
|
|
|
4356
4510
|
};
|
|
4357
4511
|
};
|
|
4358
4512
|
function fi_default() {
|
|
4359
|
-
return { localeError: error$
|
|
4513
|
+
return { localeError: error$28() };
|
|
4360
4514
|
}
|
|
4361
4515
|
|
|
4362
4516
|
//#endregion
|
|
4363
|
-
//#region ../../node_modules/zod/
|
|
4364
|
-
const error$
|
|
4517
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4518
|
+
const error$27 = () => {
|
|
4365
4519
|
const Sizable = {
|
|
4366
4520
|
string: {
|
|
4367
4521
|
unit: "caractères",
|
|
@@ -4383,7 +4537,7 @@ const error$26 = () => {
|
|
|
4383
4537
|
function getSizing(origin) {
|
|
4384
4538
|
return Sizable[origin] ?? null;
|
|
4385
4539
|
}
|
|
4386
|
-
const parsedType$
|
|
4540
|
+
const parsedType$3 = (data) => {
|
|
4387
4541
|
const t = typeof data;
|
|
4388
4542
|
switch (t) {
|
|
4389
4543
|
case "number": {
|
|
@@ -4435,7 +4589,7 @@ const error$26 = () => {
|
|
|
4435
4589
|
};
|
|
4436
4590
|
return (issue$1) => {
|
|
4437
4591
|
switch (issue$1.code) {
|
|
4438
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4592
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4439
4593
|
case "invalid_value":
|
|
4440
4594
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4441
4595
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4471,12 +4625,12 @@ const error$26 = () => {
|
|
|
4471
4625
|
};
|
|
4472
4626
|
};
|
|
4473
4627
|
function fr_default() {
|
|
4474
|
-
return { localeError: error$
|
|
4628
|
+
return { localeError: error$27() };
|
|
4475
4629
|
}
|
|
4476
4630
|
|
|
4477
4631
|
//#endregion
|
|
4478
|
-
//#region ../../node_modules/zod/
|
|
4479
|
-
const error$
|
|
4632
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
4633
|
+
const error$26 = () => {
|
|
4480
4634
|
const Sizable = {
|
|
4481
4635
|
string: {
|
|
4482
4636
|
unit: "caractères",
|
|
@@ -4498,7 +4652,7 @@ const error$25 = () => {
|
|
|
4498
4652
|
function getSizing(origin) {
|
|
4499
4653
|
return Sizable[origin] ?? null;
|
|
4500
4654
|
}
|
|
4501
|
-
const parsedType$
|
|
4655
|
+
const parsedType$3 = (data) => {
|
|
4502
4656
|
const t = typeof data;
|
|
4503
4657
|
switch (t) {
|
|
4504
4658
|
case "number": {
|
|
@@ -4550,7 +4704,7 @@ const error$25 = () => {
|
|
|
4550
4704
|
};
|
|
4551
4705
|
return (issue$1) => {
|
|
4552
4706
|
switch (issue$1.code) {
|
|
4553
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4707
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
4554
4708
|
case "invalid_value":
|
|
4555
4709
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4556
4710
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4588,12 +4742,12 @@ const error$25 = () => {
|
|
|
4588
4742
|
};
|
|
4589
4743
|
};
|
|
4590
4744
|
function fr_CA_default() {
|
|
4591
|
-
return { localeError: error$
|
|
4745
|
+
return { localeError: error$26() };
|
|
4592
4746
|
}
|
|
4593
4747
|
|
|
4594
4748
|
//#endregion
|
|
4595
|
-
//#region ../../node_modules/zod/
|
|
4596
|
-
const error$
|
|
4749
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
4750
|
+
const error$25 = () => {
|
|
4597
4751
|
const Sizable = {
|
|
4598
4752
|
string: {
|
|
4599
4753
|
unit: "אותיות",
|
|
@@ -4615,7 +4769,7 @@ const error$24 = () => {
|
|
|
4615
4769
|
function getSizing(origin) {
|
|
4616
4770
|
return Sizable[origin] ?? null;
|
|
4617
4771
|
}
|
|
4618
|
-
const parsedType$
|
|
4772
|
+
const parsedType$3 = (data) => {
|
|
4619
4773
|
const t = typeof data;
|
|
4620
4774
|
switch (t) {
|
|
4621
4775
|
case "number": {
|
|
@@ -4667,7 +4821,7 @@ const error$24 = () => {
|
|
|
4667
4821
|
};
|
|
4668
4822
|
return (issue$1) => {
|
|
4669
4823
|
switch (issue$1.code) {
|
|
4670
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
4824
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
4671
4825
|
case "invalid_value":
|
|
4672
4826
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4673
4827
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4703,12 +4857,12 @@ const error$24 = () => {
|
|
|
4703
4857
|
};
|
|
4704
4858
|
};
|
|
4705
4859
|
function he_default() {
|
|
4706
|
-
return { localeError: error$
|
|
4860
|
+
return { localeError: error$25() };
|
|
4707
4861
|
}
|
|
4708
4862
|
|
|
4709
4863
|
//#endregion
|
|
4710
|
-
//#region ../../node_modules/zod/
|
|
4711
|
-
const error$
|
|
4864
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
4865
|
+
const error$24 = () => {
|
|
4712
4866
|
const Sizable = {
|
|
4713
4867
|
string: {
|
|
4714
4868
|
unit: "karakter",
|
|
@@ -4730,7 +4884,7 @@ const error$23 = () => {
|
|
|
4730
4884
|
function getSizing(origin) {
|
|
4731
4885
|
return Sizable[origin] ?? null;
|
|
4732
4886
|
}
|
|
4733
|
-
const parsedType$
|
|
4887
|
+
const parsedType$3 = (data) => {
|
|
4734
4888
|
const t = typeof data;
|
|
4735
4889
|
switch (t) {
|
|
4736
4890
|
case "number": {
|
|
@@ -4782,7 +4936,7 @@ const error$23 = () => {
|
|
|
4782
4936
|
};
|
|
4783
4937
|
return (issue$1) => {
|
|
4784
4938
|
switch (issue$1.code) {
|
|
4785
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
4939
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
4786
4940
|
case "invalid_value":
|
|
4787
4941
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4788
4942
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4818,12 +4972,12 @@ const error$23 = () => {
|
|
|
4818
4972
|
};
|
|
4819
4973
|
};
|
|
4820
4974
|
function hu_default() {
|
|
4821
|
-
return { localeError: error$
|
|
4975
|
+
return { localeError: error$24() };
|
|
4822
4976
|
}
|
|
4823
4977
|
|
|
4824
4978
|
//#endregion
|
|
4825
|
-
//#region ../../node_modules/zod/
|
|
4826
|
-
const error$
|
|
4979
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
4980
|
+
const error$23 = () => {
|
|
4827
4981
|
const Sizable = {
|
|
4828
4982
|
string: {
|
|
4829
4983
|
unit: "karakter",
|
|
@@ -4845,7 +4999,7 @@ const error$22 = () => {
|
|
|
4845
4999
|
function getSizing(origin) {
|
|
4846
5000
|
return Sizable[origin] ?? null;
|
|
4847
5001
|
}
|
|
4848
|
-
const parsedType$
|
|
5002
|
+
const parsedType$3 = (data) => {
|
|
4849
5003
|
const t = typeof data;
|
|
4850
5004
|
switch (t) {
|
|
4851
5005
|
case "number": {
|
|
@@ -4897,7 +5051,7 @@ const error$22 = () => {
|
|
|
4897
5051
|
};
|
|
4898
5052
|
return (issue$1) => {
|
|
4899
5053
|
switch (issue$1.code) {
|
|
4900
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5054
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
4901
5055
|
case "invalid_value":
|
|
4902
5056
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4903
5057
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4933,12 +5087,12 @@ const error$22 = () => {
|
|
|
4933
5087
|
};
|
|
4934
5088
|
};
|
|
4935
5089
|
function id_default() {
|
|
4936
|
-
return { localeError: error$
|
|
5090
|
+
return { localeError: error$23() };
|
|
4937
5091
|
}
|
|
4938
5092
|
|
|
4939
5093
|
//#endregion
|
|
4940
|
-
//#region ../../node_modules/zod/
|
|
4941
|
-
const error$
|
|
5094
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5095
|
+
const error$22 = () => {
|
|
4942
5096
|
const Sizable = {
|
|
4943
5097
|
string: {
|
|
4944
5098
|
unit: "caratteri",
|
|
@@ -4960,7 +5114,7 @@ const error$21 = () => {
|
|
|
4960
5114
|
function getSizing(origin) {
|
|
4961
5115
|
return Sizable[origin] ?? null;
|
|
4962
5116
|
}
|
|
4963
|
-
const parsedType$
|
|
5117
|
+
const parsedType$3 = (data) => {
|
|
4964
5118
|
const t = typeof data;
|
|
4965
5119
|
switch (t) {
|
|
4966
5120
|
case "number": {
|
|
@@ -5012,7 +5166,7 @@ const error$21 = () => {
|
|
|
5012
5166
|
};
|
|
5013
5167
|
return (issue$1) => {
|
|
5014
5168
|
switch (issue$1.code) {
|
|
5015
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5169
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
5016
5170
|
case "invalid_value":
|
|
5017
5171
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5018
5172
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5048,12 +5202,12 @@ const error$21 = () => {
|
|
|
5048
5202
|
};
|
|
5049
5203
|
};
|
|
5050
5204
|
function it_default() {
|
|
5051
|
-
return { localeError: error$
|
|
5205
|
+
return { localeError: error$22() };
|
|
5052
5206
|
}
|
|
5053
5207
|
|
|
5054
5208
|
//#endregion
|
|
5055
|
-
//#region ../../node_modules/zod/
|
|
5056
|
-
const error$
|
|
5209
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5210
|
+
const error$21 = () => {
|
|
5057
5211
|
const Sizable = {
|
|
5058
5212
|
string: {
|
|
5059
5213
|
unit: "文字",
|
|
@@ -5075,7 +5229,7 @@ const error$20 = () => {
|
|
|
5075
5229
|
function getSizing(origin) {
|
|
5076
5230
|
return Sizable[origin] ?? null;
|
|
5077
5231
|
}
|
|
5078
|
-
const parsedType$
|
|
5232
|
+
const parsedType$3 = (data) => {
|
|
5079
5233
|
const t = typeof data;
|
|
5080
5234
|
switch (t) {
|
|
5081
5235
|
case "number": {
|
|
@@ -5127,21 +5281,21 @@ const error$20 = () => {
|
|
|
5127
5281
|
};
|
|
5128
5282
|
return (issue$1) => {
|
|
5129
5283
|
switch (issue$1.code) {
|
|
5130
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5284
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5131
5285
|
case "invalid_value":
|
|
5132
5286
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5133
5287
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5134
5288
|
case "too_big": {
|
|
5135
|
-
const adj = issue$1.inclusive ? "
|
|
5289
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5136
5290
|
const sizing = getSizing(issue$1.origin);
|
|
5137
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5138
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5291
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5292
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5139
5293
|
}
|
|
5140
5294
|
case "too_small": {
|
|
5141
|
-
const adj = issue$1.inclusive ? "
|
|
5295
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5142
5296
|
const sizing = getSizing(issue$1.origin);
|
|
5143
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5144
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5297
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5298
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5145
5299
|
}
|
|
5146
5300
|
case "invalid_format": {
|
|
5147
5301
|
const _issue = issue$1;
|
|
@@ -5161,12 +5315,12 @@ const error$20 = () => {
|
|
|
5161
5315
|
};
|
|
5162
5316
|
};
|
|
5163
5317
|
function ja_default() {
|
|
5164
|
-
return { localeError: error$
|
|
5318
|
+
return { localeError: error$21() };
|
|
5165
5319
|
}
|
|
5166
5320
|
|
|
5167
5321
|
//#endregion
|
|
5168
|
-
//#region ../../node_modules/zod/
|
|
5169
|
-
const error$
|
|
5322
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5323
|
+
const error$20 = () => {
|
|
5170
5324
|
const Sizable = {
|
|
5171
5325
|
string: {
|
|
5172
5326
|
unit: "តួអក្សរ",
|
|
@@ -5188,7 +5342,7 @@ const error$19 = () => {
|
|
|
5188
5342
|
function getSizing(origin) {
|
|
5189
5343
|
return Sizable[origin] ?? null;
|
|
5190
5344
|
}
|
|
5191
|
-
const parsedType$
|
|
5345
|
+
const parsedType$3 = (data) => {
|
|
5192
5346
|
const t = typeof data;
|
|
5193
5347
|
switch (t) {
|
|
5194
5348
|
case "number": {
|
|
@@ -5240,7 +5394,7 @@ const error$19 = () => {
|
|
|
5240
5394
|
};
|
|
5241
5395
|
return (issue$1) => {
|
|
5242
5396
|
switch (issue$1.code) {
|
|
5243
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5397
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5244
5398
|
case "invalid_value":
|
|
5245
5399
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5246
5400
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5278,12 +5432,12 @@ const error$19 = () => {
|
|
|
5278
5432
|
};
|
|
5279
5433
|
};
|
|
5280
5434
|
function kh_default() {
|
|
5281
|
-
return { localeError: error$
|
|
5435
|
+
return { localeError: error$20() };
|
|
5282
5436
|
}
|
|
5283
5437
|
|
|
5284
5438
|
//#endregion
|
|
5285
|
-
//#region ../../node_modules/zod/
|
|
5286
|
-
const error$
|
|
5439
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5440
|
+
const error$19 = () => {
|
|
5287
5441
|
const Sizable = {
|
|
5288
5442
|
string: {
|
|
5289
5443
|
unit: "문자",
|
|
@@ -5305,7 +5459,7 @@ const error$18 = () => {
|
|
|
5305
5459
|
function getSizing(origin) {
|
|
5306
5460
|
return Sizable[origin] ?? null;
|
|
5307
5461
|
}
|
|
5308
|
-
const parsedType$
|
|
5462
|
+
const parsedType$3 = (data) => {
|
|
5309
5463
|
const t = typeof data;
|
|
5310
5464
|
switch (t) {
|
|
5311
5465
|
case "number": {
|
|
@@ -5357,7 +5511,7 @@ const error$18 = () => {
|
|
|
5357
5511
|
};
|
|
5358
5512
|
return (issue$1) => {
|
|
5359
5513
|
switch (issue$1.code) {
|
|
5360
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5514
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5361
5515
|
case "invalid_value":
|
|
5362
5516
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5363
5517
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5399,12 +5553,12 @@ const error$18 = () => {
|
|
|
5399
5553
|
};
|
|
5400
5554
|
};
|
|
5401
5555
|
function ko_default() {
|
|
5402
|
-
return { localeError: error$
|
|
5556
|
+
return { localeError: error$19() };
|
|
5403
5557
|
}
|
|
5404
5558
|
|
|
5405
5559
|
//#endregion
|
|
5406
|
-
//#region ../../node_modules/zod/
|
|
5407
|
-
const error$
|
|
5560
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
5561
|
+
const error$18 = () => {
|
|
5408
5562
|
const Sizable = {
|
|
5409
5563
|
string: {
|
|
5410
5564
|
unit: "знаци",
|
|
@@ -5426,7 +5580,7 @@ const error$17 = () => {
|
|
|
5426
5580
|
function getSizing(origin) {
|
|
5427
5581
|
return Sizable[origin] ?? null;
|
|
5428
5582
|
}
|
|
5429
|
-
const parsedType$
|
|
5583
|
+
const parsedType$3 = (data) => {
|
|
5430
5584
|
const t = typeof data;
|
|
5431
5585
|
switch (t) {
|
|
5432
5586
|
case "number": {
|
|
@@ -5478,7 +5632,7 @@ const error$17 = () => {
|
|
|
5478
5632
|
};
|
|
5479
5633
|
return (issue$1) => {
|
|
5480
5634
|
switch (issue$1.code) {
|
|
5481
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5635
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5482
5636
|
case "invalid_value":
|
|
5483
5637
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5484
5638
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5516,12 +5670,12 @@ const error$17 = () => {
|
|
|
5516
5670
|
};
|
|
5517
5671
|
};
|
|
5518
5672
|
function mk_default() {
|
|
5519
|
-
return { localeError: error$
|
|
5673
|
+
return { localeError: error$18() };
|
|
5520
5674
|
}
|
|
5521
5675
|
|
|
5522
5676
|
//#endregion
|
|
5523
|
-
//#region ../../node_modules/zod/
|
|
5524
|
-
const error$
|
|
5677
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
5678
|
+
const error$17 = () => {
|
|
5525
5679
|
const Sizable = {
|
|
5526
5680
|
string: {
|
|
5527
5681
|
unit: "aksara",
|
|
@@ -5543,7 +5697,7 @@ const error$16 = () => {
|
|
|
5543
5697
|
function getSizing(origin) {
|
|
5544
5698
|
return Sizable[origin] ?? null;
|
|
5545
5699
|
}
|
|
5546
|
-
const parsedType$
|
|
5700
|
+
const parsedType$3 = (data) => {
|
|
5547
5701
|
const t = typeof data;
|
|
5548
5702
|
switch (t) {
|
|
5549
5703
|
case "number": {
|
|
@@ -5595,7 +5749,7 @@ const error$16 = () => {
|
|
|
5595
5749
|
};
|
|
5596
5750
|
return (issue$1) => {
|
|
5597
5751
|
switch (issue$1.code) {
|
|
5598
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
5752
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5599
5753
|
case "invalid_value":
|
|
5600
5754
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5601
5755
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5631,12 +5785,12 @@ const error$16 = () => {
|
|
|
5631
5785
|
};
|
|
5632
5786
|
};
|
|
5633
5787
|
function ms_default() {
|
|
5634
|
-
return { localeError: error$
|
|
5788
|
+
return { localeError: error$17() };
|
|
5635
5789
|
}
|
|
5636
5790
|
|
|
5637
5791
|
//#endregion
|
|
5638
|
-
//#region ../../node_modules/zod/
|
|
5639
|
-
const error$
|
|
5792
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
5793
|
+
const error$16 = () => {
|
|
5640
5794
|
const Sizable = {
|
|
5641
5795
|
string: { unit: "tekens" },
|
|
5642
5796
|
file: { unit: "bytes" },
|
|
@@ -5646,7 +5800,7 @@ const error$15 = () => {
|
|
|
5646
5800
|
function getSizing(origin) {
|
|
5647
5801
|
return Sizable[origin] ?? null;
|
|
5648
5802
|
}
|
|
5649
|
-
const parsedType$
|
|
5803
|
+
const parsedType$3 = (data) => {
|
|
5650
5804
|
const t = typeof data;
|
|
5651
5805
|
switch (t) {
|
|
5652
5806
|
case "number": {
|
|
@@ -5698,7 +5852,7 @@ const error$15 = () => {
|
|
|
5698
5852
|
};
|
|
5699
5853
|
return (issue$1) => {
|
|
5700
5854
|
switch (issue$1.code) {
|
|
5701
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
5855
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
5702
5856
|
case "invalid_value":
|
|
5703
5857
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5704
5858
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5736,12 +5890,12 @@ const error$15 = () => {
|
|
|
5736
5890
|
};
|
|
5737
5891
|
};
|
|
5738
5892
|
function nl_default() {
|
|
5739
|
-
return { localeError: error$
|
|
5893
|
+
return { localeError: error$16() };
|
|
5740
5894
|
}
|
|
5741
5895
|
|
|
5742
5896
|
//#endregion
|
|
5743
|
-
//#region ../../node_modules/zod/
|
|
5744
|
-
const error$
|
|
5897
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
5898
|
+
const error$15 = () => {
|
|
5745
5899
|
const Sizable = {
|
|
5746
5900
|
string: {
|
|
5747
5901
|
unit: "tegn",
|
|
@@ -5763,7 +5917,7 @@ const error$14 = () => {
|
|
|
5763
5917
|
function getSizing(origin) {
|
|
5764
5918
|
return Sizable[origin] ?? null;
|
|
5765
5919
|
}
|
|
5766
|
-
const parsedType$
|
|
5920
|
+
const parsedType$3 = (data) => {
|
|
5767
5921
|
const t = typeof data;
|
|
5768
5922
|
switch (t) {
|
|
5769
5923
|
case "number": {
|
|
@@ -5815,7 +5969,7 @@ const error$14 = () => {
|
|
|
5815
5969
|
};
|
|
5816
5970
|
return (issue$1) => {
|
|
5817
5971
|
switch (issue$1.code) {
|
|
5818
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
5972
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
5819
5973
|
case "invalid_value":
|
|
5820
5974
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5821
5975
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5851,12 +6005,12 @@ const error$14 = () => {
|
|
|
5851
6005
|
};
|
|
5852
6006
|
};
|
|
5853
6007
|
function no_default() {
|
|
5854
|
-
return { localeError: error$
|
|
6008
|
+
return { localeError: error$15() };
|
|
5855
6009
|
}
|
|
5856
6010
|
|
|
5857
6011
|
//#endregion
|
|
5858
|
-
//#region ../../node_modules/zod/
|
|
5859
|
-
const error$
|
|
6012
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6013
|
+
const error$14 = () => {
|
|
5860
6014
|
const Sizable = {
|
|
5861
6015
|
string: {
|
|
5862
6016
|
unit: "harf",
|
|
@@ -5878,7 +6032,7 @@ const error$13 = () => {
|
|
|
5878
6032
|
function getSizing(origin) {
|
|
5879
6033
|
return Sizable[origin] ?? null;
|
|
5880
6034
|
}
|
|
5881
|
-
const parsedType$
|
|
6035
|
+
const parsedType$3 = (data) => {
|
|
5882
6036
|
const t = typeof data;
|
|
5883
6037
|
switch (t) {
|
|
5884
6038
|
case "number": {
|
|
@@ -5930,7 +6084,7 @@ const error$13 = () => {
|
|
|
5930
6084
|
};
|
|
5931
6085
|
return (issue$1) => {
|
|
5932
6086
|
switch (issue$1.code) {
|
|
5933
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6087
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
5934
6088
|
case "invalid_value":
|
|
5935
6089
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5936
6090
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5966,11 +6120,138 @@ const error$13 = () => {
|
|
|
5966
6120
|
};
|
|
5967
6121
|
};
|
|
5968
6122
|
function ota_default() {
|
|
6123
|
+
return { localeError: error$14() };
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
//#endregion
|
|
6127
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6128
|
+
const error$13 = () => {
|
|
6129
|
+
const Sizable = {
|
|
6130
|
+
string: {
|
|
6131
|
+
unit: "توکي",
|
|
6132
|
+
verb: "ولري"
|
|
6133
|
+
},
|
|
6134
|
+
file: {
|
|
6135
|
+
unit: "بایټس",
|
|
6136
|
+
verb: "ولري"
|
|
6137
|
+
},
|
|
6138
|
+
array: {
|
|
6139
|
+
unit: "توکي",
|
|
6140
|
+
verb: "ولري"
|
|
6141
|
+
},
|
|
6142
|
+
set: {
|
|
6143
|
+
unit: "توکي",
|
|
6144
|
+
verb: "ولري"
|
|
6145
|
+
}
|
|
6146
|
+
};
|
|
6147
|
+
function getSizing(origin) {
|
|
6148
|
+
return Sizable[origin] ?? null;
|
|
6149
|
+
}
|
|
6150
|
+
const parsedType$3 = (data) => {
|
|
6151
|
+
const t = typeof data;
|
|
6152
|
+
switch (t) {
|
|
6153
|
+
case "number": {
|
|
6154
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6155
|
+
}
|
|
6156
|
+
case "object": {
|
|
6157
|
+
if (Array.isArray(data)) {
|
|
6158
|
+
return "ارې";
|
|
6159
|
+
}
|
|
6160
|
+
if (data === null) {
|
|
6161
|
+
return "null";
|
|
6162
|
+
}
|
|
6163
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6164
|
+
return data.constructor.name;
|
|
6165
|
+
}
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
return t;
|
|
6169
|
+
};
|
|
6170
|
+
const Nouns = {
|
|
6171
|
+
regex: "ورودي",
|
|
6172
|
+
email: "بریښنالیک",
|
|
6173
|
+
url: "یو آر ال",
|
|
6174
|
+
emoji: "ایموجي",
|
|
6175
|
+
uuid: "UUID",
|
|
6176
|
+
uuidv4: "UUIDv4",
|
|
6177
|
+
uuidv6: "UUIDv6",
|
|
6178
|
+
nanoid: "nanoid",
|
|
6179
|
+
guid: "GUID",
|
|
6180
|
+
cuid: "cuid",
|
|
6181
|
+
cuid2: "cuid2",
|
|
6182
|
+
ulid: "ULID",
|
|
6183
|
+
xid: "XID",
|
|
6184
|
+
ksuid: "KSUID",
|
|
6185
|
+
datetime: "نیټه او وخت",
|
|
6186
|
+
date: "نېټه",
|
|
6187
|
+
time: "وخت",
|
|
6188
|
+
duration: "موده",
|
|
6189
|
+
ipv4: "د IPv4 پته",
|
|
6190
|
+
ipv6: "د IPv6 پته",
|
|
6191
|
+
cidrv4: "د IPv4 ساحه",
|
|
6192
|
+
cidrv6: "د IPv6 ساحه",
|
|
6193
|
+
base64: "base64-encoded متن",
|
|
6194
|
+
base64url: "base64url-encoded متن",
|
|
6195
|
+
json_string: "JSON متن",
|
|
6196
|
+
e164: "د E.164 شمېره",
|
|
6197
|
+
jwt: "JWT",
|
|
6198
|
+
template_literal: "ورودي"
|
|
6199
|
+
};
|
|
6200
|
+
return (issue$1) => {
|
|
6201
|
+
switch (issue$1.code) {
|
|
6202
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6203
|
+
case "invalid_value":
|
|
6204
|
+
if (issue$1.values.length === 1) {
|
|
6205
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6206
|
+
}
|
|
6207
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6208
|
+
case "too_big": {
|
|
6209
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6210
|
+
const sizing = getSizing(issue$1.origin);
|
|
6211
|
+
if (sizing) {
|
|
6212
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6213
|
+
}
|
|
6214
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6215
|
+
}
|
|
6216
|
+
case "too_small": {
|
|
6217
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6218
|
+
const sizing = getSizing(issue$1.origin);
|
|
6219
|
+
if (sizing) {
|
|
6220
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6221
|
+
}
|
|
6222
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6223
|
+
}
|
|
6224
|
+
case "invalid_format": {
|
|
6225
|
+
const _issue = issue$1;
|
|
6226
|
+
if (_issue.format === "starts_with") {
|
|
6227
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6228
|
+
}
|
|
6229
|
+
if (_issue.format === "ends_with") {
|
|
6230
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6231
|
+
}
|
|
6232
|
+
if (_issue.format === "includes") {
|
|
6233
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6234
|
+
}
|
|
6235
|
+
if (_issue.format === "regex") {
|
|
6236
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6237
|
+
}
|
|
6238
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6239
|
+
}
|
|
6240
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6241
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6242
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6243
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6244
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6245
|
+
default: return `ناسمه ورودي`;
|
|
6246
|
+
}
|
|
6247
|
+
};
|
|
6248
|
+
};
|
|
6249
|
+
function ps_default() {
|
|
5969
6250
|
return { localeError: error$13() };
|
|
5970
6251
|
}
|
|
5971
6252
|
|
|
5972
6253
|
//#endregion
|
|
5973
|
-
//#region ../../node_modules/zod/
|
|
6254
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
5974
6255
|
const error$12 = () => {
|
|
5975
6256
|
const Sizable = {
|
|
5976
6257
|
string: {
|
|
@@ -5993,7 +6274,7 @@ const error$12 = () => {
|
|
|
5993
6274
|
function getSizing(origin) {
|
|
5994
6275
|
return Sizable[origin] ?? null;
|
|
5995
6276
|
}
|
|
5996
|
-
const parsedType$
|
|
6277
|
+
const parsedType$3 = (data) => {
|
|
5997
6278
|
const t = typeof data;
|
|
5998
6279
|
switch (t) {
|
|
5999
6280
|
case "number": {
|
|
@@ -6045,7 +6326,7 @@ const error$12 = () => {
|
|
|
6045
6326
|
};
|
|
6046
6327
|
return (issue$1) => {
|
|
6047
6328
|
switch (issue$1.code) {
|
|
6048
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$
|
|
6329
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6049
6330
|
case "invalid_value":
|
|
6050
6331
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6051
6332
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6087,7 +6368,7 @@ function pl_default() {
|
|
|
6087
6368
|
}
|
|
6088
6369
|
|
|
6089
6370
|
//#endregion
|
|
6090
|
-
//#region ../../node_modules/zod/
|
|
6371
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6091
6372
|
const error$11 = () => {
|
|
6092
6373
|
const Sizable = {
|
|
6093
6374
|
string: {
|
|
@@ -6110,7 +6391,7 @@ const error$11 = () => {
|
|
|
6110
6391
|
function getSizing(origin) {
|
|
6111
6392
|
return Sizable[origin] ?? null;
|
|
6112
6393
|
}
|
|
6113
|
-
const parsedType$
|
|
6394
|
+
const parsedType$3 = (data) => {
|
|
6114
6395
|
const t = typeof data;
|
|
6115
6396
|
switch (t) {
|
|
6116
6397
|
case "number": {
|
|
@@ -6162,7 +6443,7 @@ const error$11 = () => {
|
|
|
6162
6443
|
};
|
|
6163
6444
|
return (issue$1) => {
|
|
6164
6445
|
switch (issue$1.code) {
|
|
6165
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6446
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6166
6447
|
case "invalid_value":
|
|
6167
6448
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6168
6449
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6202,7 +6483,7 @@ function pt_default() {
|
|
|
6202
6483
|
}
|
|
6203
6484
|
|
|
6204
6485
|
//#endregion
|
|
6205
|
-
//#region ../../node_modules/zod/
|
|
6486
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6206
6487
|
function getRussianPlural(count, one, few, many) {
|
|
6207
6488
|
const absCount = Math.abs(count);
|
|
6208
6489
|
const lastDigit = absCount % 10;
|
|
@@ -6256,7 +6537,7 @@ const error$10 = () => {
|
|
|
6256
6537
|
function getSizing(origin) {
|
|
6257
6538
|
return Sizable[origin] ?? null;
|
|
6258
6539
|
}
|
|
6259
|
-
const parsedType$
|
|
6540
|
+
const parsedType$3 = (data) => {
|
|
6260
6541
|
const t = typeof data;
|
|
6261
6542
|
switch (t) {
|
|
6262
6543
|
case "number": {
|
|
@@ -6308,7 +6589,7 @@ const error$10 = () => {
|
|
|
6308
6589
|
};
|
|
6309
6590
|
return (issue$1) => {
|
|
6310
6591
|
switch (issue$1.code) {
|
|
6311
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6592
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6312
6593
|
case "invalid_value":
|
|
6313
6594
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6314
6595
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6354,7 +6635,7 @@ function ru_default() {
|
|
|
6354
6635
|
}
|
|
6355
6636
|
|
|
6356
6637
|
//#endregion
|
|
6357
|
-
//#region ../../node_modules/zod/
|
|
6638
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6358
6639
|
const error$9 = () => {
|
|
6359
6640
|
const Sizable = {
|
|
6360
6641
|
string: {
|
|
@@ -6377,7 +6658,7 @@ const error$9 = () => {
|
|
|
6377
6658
|
function getSizing(origin) {
|
|
6378
6659
|
return Sizable[origin] ?? null;
|
|
6379
6660
|
}
|
|
6380
|
-
const parsedType$
|
|
6661
|
+
const parsedType$3 = (data) => {
|
|
6381
6662
|
const t = typeof data;
|
|
6382
6663
|
switch (t) {
|
|
6383
6664
|
case "number": {
|
|
@@ -6429,7 +6710,7 @@ const error$9 = () => {
|
|
|
6429
6710
|
};
|
|
6430
6711
|
return (issue$1) => {
|
|
6431
6712
|
switch (issue$1.code) {
|
|
6432
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6713
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6433
6714
|
case "invalid_value":
|
|
6434
6715
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6435
6716
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6471,7 +6752,7 @@ function sl_default() {
|
|
|
6471
6752
|
}
|
|
6472
6753
|
|
|
6473
6754
|
//#endregion
|
|
6474
|
-
//#region ../../node_modules/zod/
|
|
6755
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6475
6756
|
const error$8 = () => {
|
|
6476
6757
|
const Sizable = {
|
|
6477
6758
|
string: {
|
|
@@ -6494,7 +6775,7 @@ const error$8 = () => {
|
|
|
6494
6775
|
function getSizing(origin) {
|
|
6495
6776
|
return Sizable[origin] ?? null;
|
|
6496
6777
|
}
|
|
6497
|
-
const parsedType$
|
|
6778
|
+
const parsedType$3 = (data) => {
|
|
6498
6779
|
const t = typeof data;
|
|
6499
6780
|
switch (t) {
|
|
6500
6781
|
case "number": {
|
|
@@ -6546,7 +6827,7 @@ const error$8 = () => {
|
|
|
6546
6827
|
};
|
|
6547
6828
|
return (issue$1) => {
|
|
6548
6829
|
switch (issue$1.code) {
|
|
6549
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6830
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6550
6831
|
case "invalid_value":
|
|
6551
6832
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6552
6833
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6590,7 +6871,7 @@ function sv_default() {
|
|
|
6590
6871
|
}
|
|
6591
6872
|
|
|
6592
6873
|
//#endregion
|
|
6593
|
-
//#region ../../node_modules/zod/
|
|
6874
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
6594
6875
|
const error$7 = () => {
|
|
6595
6876
|
const Sizable = {
|
|
6596
6877
|
string: {
|
|
@@ -6613,7 +6894,7 @@ const error$7 = () => {
|
|
|
6613
6894
|
function getSizing(origin) {
|
|
6614
6895
|
return Sizable[origin] ?? null;
|
|
6615
6896
|
}
|
|
6616
|
-
const parsedType$
|
|
6897
|
+
const parsedType$3 = (data) => {
|
|
6617
6898
|
const t = typeof data;
|
|
6618
6899
|
switch (t) {
|
|
6619
6900
|
case "number": {
|
|
@@ -6665,7 +6946,7 @@ const error$7 = () => {
|
|
|
6665
6946
|
};
|
|
6666
6947
|
return (issue$1) => {
|
|
6667
6948
|
switch (issue$1.code) {
|
|
6668
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
6949
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
6669
6950
|
case "invalid_value":
|
|
6670
6951
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6671
6952
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -6707,7 +6988,7 @@ function ta_default() {
|
|
|
6707
6988
|
}
|
|
6708
6989
|
|
|
6709
6990
|
//#endregion
|
|
6710
|
-
//#region ../../node_modules/zod/
|
|
6991
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
6711
6992
|
const error$6 = () => {
|
|
6712
6993
|
const Sizable = {
|
|
6713
6994
|
string: {
|
|
@@ -6730,7 +7011,7 @@ const error$6 = () => {
|
|
|
6730
7011
|
function getSizing(origin) {
|
|
6731
7012
|
return Sizable[origin] ?? null;
|
|
6732
7013
|
}
|
|
6733
|
-
const parsedType$
|
|
7014
|
+
const parsedType$3 = (data) => {
|
|
6734
7015
|
const t = typeof data;
|
|
6735
7016
|
switch (t) {
|
|
6736
7017
|
case "number": {
|
|
@@ -6782,7 +7063,7 @@ const error$6 = () => {
|
|
|
6782
7063
|
};
|
|
6783
7064
|
return (issue$1) => {
|
|
6784
7065
|
switch (issue$1.code) {
|
|
6785
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7066
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
6786
7067
|
case "invalid_value":
|
|
6787
7068
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6788
7069
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6824,7 +7105,7 @@ function th_default() {
|
|
|
6824
7105
|
}
|
|
6825
7106
|
|
|
6826
7107
|
//#endregion
|
|
6827
|
-
//#region ../../node_modules/zod/
|
|
7108
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
6828
7109
|
const parsedType = (data) => {
|
|
6829
7110
|
const t = typeof data;
|
|
6830
7111
|
switch (t) {
|
|
@@ -6937,7 +7218,7 @@ function tr_default() {
|
|
|
6937
7218
|
}
|
|
6938
7219
|
|
|
6939
7220
|
//#endregion
|
|
6940
|
-
//#region ../../node_modules/zod/
|
|
7221
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
6941
7222
|
const error$4 = () => {
|
|
6942
7223
|
const Sizable = {
|
|
6943
7224
|
string: {
|
|
@@ -6960,7 +7241,7 @@ const error$4 = () => {
|
|
|
6960
7241
|
function getSizing(origin) {
|
|
6961
7242
|
return Sizable[origin] ?? null;
|
|
6962
7243
|
}
|
|
6963
|
-
const parsedType$
|
|
7244
|
+
const parsedType$3 = (data) => {
|
|
6964
7245
|
const t = typeof data;
|
|
6965
7246
|
switch (t) {
|
|
6966
7247
|
case "number": {
|
|
@@ -7012,7 +7293,7 @@ const error$4 = () => {
|
|
|
7012
7293
|
};
|
|
7013
7294
|
return (issue$1) => {
|
|
7014
7295
|
switch (issue$1.code) {
|
|
7015
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7296
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
7016
7297
|
case "invalid_value":
|
|
7017
7298
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7018
7299
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7052,7 +7333,7 @@ function ua_default() {
|
|
|
7052
7333
|
}
|
|
7053
7334
|
|
|
7054
7335
|
//#endregion
|
|
7055
|
-
//#region ../../node_modules/zod/
|
|
7336
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7056
7337
|
const error$3 = () => {
|
|
7057
7338
|
const Sizable = {
|
|
7058
7339
|
string: {
|
|
@@ -7075,7 +7356,7 @@ const error$3 = () => {
|
|
|
7075
7356
|
function getSizing(origin) {
|
|
7076
7357
|
return Sizable[origin] ?? null;
|
|
7077
7358
|
}
|
|
7078
|
-
const parsedType$
|
|
7359
|
+
const parsedType$3 = (data) => {
|
|
7079
7360
|
const t = typeof data;
|
|
7080
7361
|
switch (t) {
|
|
7081
7362
|
case "number": {
|
|
@@ -7127,7 +7408,7 @@ const error$3 = () => {
|
|
|
7127
7408
|
};
|
|
7128
7409
|
return (issue$1) => {
|
|
7129
7410
|
switch (issue$1.code) {
|
|
7130
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7411
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7131
7412
|
case "invalid_value":
|
|
7132
7413
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7133
7414
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7169,7 +7450,7 @@ function ur_default() {
|
|
|
7169
7450
|
}
|
|
7170
7451
|
|
|
7171
7452
|
//#endregion
|
|
7172
|
-
//#region ../../node_modules/zod/
|
|
7453
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7173
7454
|
const error$2 = () => {
|
|
7174
7455
|
const Sizable = {
|
|
7175
7456
|
string: {
|
|
@@ -7192,7 +7473,7 @@ const error$2 = () => {
|
|
|
7192
7473
|
function getSizing(origin) {
|
|
7193
7474
|
return Sizable[origin] ?? null;
|
|
7194
7475
|
}
|
|
7195
|
-
const parsedType$
|
|
7476
|
+
const parsedType$3 = (data) => {
|
|
7196
7477
|
const t = typeof data;
|
|
7197
7478
|
switch (t) {
|
|
7198
7479
|
case "number": {
|
|
@@ -7244,7 +7525,7 @@ const error$2 = () => {
|
|
|
7244
7525
|
};
|
|
7245
7526
|
return (issue$1) => {
|
|
7246
7527
|
switch (issue$1.code) {
|
|
7247
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7528
|
+
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)}`;
|
|
7248
7529
|
case "invalid_value":
|
|
7249
7530
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7250
7531
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7284,7 +7565,7 @@ function vi_default() {
|
|
|
7284
7565
|
}
|
|
7285
7566
|
|
|
7286
7567
|
//#endregion
|
|
7287
|
-
//#region ../../node_modules/zod/
|
|
7568
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7288
7569
|
const error$1 = () => {
|
|
7289
7570
|
const Sizable = {
|
|
7290
7571
|
string: {
|
|
@@ -7307,7 +7588,7 @@ const error$1 = () => {
|
|
|
7307
7588
|
function getSizing(origin) {
|
|
7308
7589
|
return Sizable[origin] ?? null;
|
|
7309
7590
|
}
|
|
7310
|
-
const parsedType$
|
|
7591
|
+
const parsedType$3 = (data) => {
|
|
7311
7592
|
const t = typeof data;
|
|
7312
7593
|
switch (t) {
|
|
7313
7594
|
case "number": {
|
|
@@ -7359,7 +7640,7 @@ const error$1 = () => {
|
|
|
7359
7640
|
};
|
|
7360
7641
|
return (issue$1) => {
|
|
7361
7642
|
switch (issue$1.code) {
|
|
7362
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7643
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7363
7644
|
case "invalid_value":
|
|
7364
7645
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7365
7646
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7399,7 +7680,7 @@ function zh_CN_default() {
|
|
|
7399
7680
|
}
|
|
7400
7681
|
|
|
7401
7682
|
//#endregion
|
|
7402
|
-
//#region ../../node_modules/zod/
|
|
7683
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7403
7684
|
const error = () => {
|
|
7404
7685
|
const Sizable = {
|
|
7405
7686
|
string: {
|
|
@@ -7422,7 +7703,7 @@ const error = () => {
|
|
|
7422
7703
|
function getSizing(origin) {
|
|
7423
7704
|
return Sizable[origin] ?? null;
|
|
7424
7705
|
}
|
|
7425
|
-
const parsedType$
|
|
7706
|
+
const parsedType$3 = (data) => {
|
|
7426
7707
|
const t = typeof data;
|
|
7427
7708
|
switch (t) {
|
|
7428
7709
|
case "number": {
|
|
@@ -7474,7 +7755,7 @@ const error = () => {
|
|
|
7474
7755
|
};
|
|
7475
7756
|
return (issue$1) => {
|
|
7476
7757
|
switch (issue$1.code) {
|
|
7477
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7758
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7478
7759
|
case "invalid_value":
|
|
7479
7760
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7480
7761
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7516,7 +7797,7 @@ function zh_TW_default() {
|
|
|
7516
7797
|
}
|
|
7517
7798
|
|
|
7518
7799
|
//#endregion
|
|
7519
|
-
//#region ../../node_modules/zod/
|
|
7800
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7520
7801
|
var locales_exports = {};
|
|
7521
7802
|
__export(locales_exports, {
|
|
7522
7803
|
ar: () => ar_default,
|
|
@@ -7526,6 +7807,7 @@ __export(locales_exports, {
|
|
|
7526
7807
|
cs: () => cs_default,
|
|
7527
7808
|
de: () => de_default,
|
|
7528
7809
|
en: () => en_default,
|
|
7810
|
+
eo: () => eo_default,
|
|
7529
7811
|
es: () => es_default,
|
|
7530
7812
|
fa: () => fa_default,
|
|
7531
7813
|
fi: () => fi_default,
|
|
@@ -7544,6 +7826,7 @@ __export(locales_exports, {
|
|
|
7544
7826
|
no: () => no_default,
|
|
7545
7827
|
ota: () => ota_default,
|
|
7546
7828
|
pl: () => pl_default,
|
|
7829
|
+
ps: () => ps_default,
|
|
7547
7830
|
pt: () => pt_default,
|
|
7548
7831
|
ru: () => ru_default,
|
|
7549
7832
|
sl: () => sl_default,
|
|
@@ -7559,12 +7842,12 @@ __export(locales_exports, {
|
|
|
7559
7842
|
});
|
|
7560
7843
|
|
|
7561
7844
|
//#endregion
|
|
7562
|
-
//#region ../../node_modules/zod/
|
|
7845
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
7563
7846
|
const $output = Symbol("ZodOutput");
|
|
7564
7847
|
const $input = Symbol("ZodInput");
|
|
7565
7848
|
var $ZodRegistry = class {
|
|
7566
7849
|
constructor() {
|
|
7567
|
-
this._map = new
|
|
7850
|
+
this._map = new Map();
|
|
7568
7851
|
this._idmap = new Map();
|
|
7569
7852
|
}
|
|
7570
7853
|
add(schema, ..._meta) {
|
|
@@ -7578,7 +7861,16 @@ var $ZodRegistry = class {
|
|
|
7578
7861
|
}
|
|
7579
7862
|
return this;
|
|
7580
7863
|
}
|
|
7864
|
+
clear() {
|
|
7865
|
+
this._map = new Map();
|
|
7866
|
+
this._idmap = new Map();
|
|
7867
|
+
return this;
|
|
7868
|
+
}
|
|
7581
7869
|
remove(schema) {
|
|
7870
|
+
const meta = this._map.get(schema);
|
|
7871
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
7872
|
+
this._idmap.delete(meta.id);
|
|
7873
|
+
}
|
|
7582
7874
|
this._map.delete(schema);
|
|
7583
7875
|
return this;
|
|
7584
7876
|
}
|
|
@@ -7604,7 +7896,7 @@ function registry() {
|
|
|
7604
7896
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
7605
7897
|
|
|
7606
7898
|
//#endregion
|
|
7607
|
-
//#region ../../node_modules/zod/
|
|
7899
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
7608
7900
|
function _string(Class$1, params) {
|
|
7609
7901
|
return new Class$1({
|
|
7610
7902
|
type: "string",
|
|
@@ -7819,6 +8111,13 @@ function _jwt(Class$1, params) {
|
|
|
7819
8111
|
...normalizeParams(params)
|
|
7820
8112
|
});
|
|
7821
8113
|
}
|
|
8114
|
+
const TimePrecision = {
|
|
8115
|
+
Any: null,
|
|
8116
|
+
Minute: -1,
|
|
8117
|
+
Second: 0,
|
|
8118
|
+
Millisecond: 3,
|
|
8119
|
+
Microsecond: 6
|
|
8120
|
+
};
|
|
7822
8121
|
function _isoDateTime(Class$1, params) {
|
|
7823
8122
|
return new Class$1({
|
|
7824
8123
|
type: "string",
|
|
@@ -8385,8 +8684,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8385
8684
|
return schema;
|
|
8386
8685
|
}
|
|
8387
8686
|
function _stringbool(Classes, _params) {
|
|
8388
|
-
const
|
|
8389
|
-
let truthyArray = truthy ?? [
|
|
8687
|
+
const params = normalizeParams(_params);
|
|
8688
|
+
let truthyArray = params.truthy ?? [
|
|
8390
8689
|
"true",
|
|
8391
8690
|
"1",
|
|
8392
8691
|
"yes",
|
|
@@ -8394,7 +8693,7 @@ function _stringbool(Classes, _params) {
|
|
|
8394
8693
|
"y",
|
|
8395
8694
|
"enabled"
|
|
8396
8695
|
];
|
|
8397
|
-
let falsyArray = falsy ?? [
|
|
8696
|
+
let falsyArray = params.falsy ?? [
|
|
8398
8697
|
"false",
|
|
8399
8698
|
"0",
|
|
8400
8699
|
"no",
|
|
@@ -8402,7 +8701,7 @@ function _stringbool(Classes, _params) {
|
|
|
8402
8701
|
"n",
|
|
8403
8702
|
"disabled"
|
|
8404
8703
|
];
|
|
8405
|
-
if (
|
|
8704
|
+
if (params.case !== "sensitive") {
|
|
8406
8705
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8407
8706
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8408
8707
|
}
|
|
@@ -8416,7 +8715,7 @@ function _stringbool(Classes, _params) {
|
|
|
8416
8715
|
type: "transform",
|
|
8417
8716
|
transform: (input, payload) => {
|
|
8418
8717
|
let data = input;
|
|
8419
|
-
if (
|
|
8718
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8420
8719
|
if (truthySet.has(data)) {
|
|
8421
8720
|
return true;
|
|
8422
8721
|
} else if (falsySet.has(data)) {
|
|
@@ -8432,31 +8731,47 @@ function _stringbool(Classes, _params) {
|
|
|
8432
8731
|
return {};
|
|
8433
8732
|
}
|
|
8434
8733
|
},
|
|
8435
|
-
error: error
|
|
8734
|
+
error: params.error
|
|
8436
8735
|
});
|
|
8437
8736
|
const innerPipe = new _Pipe({
|
|
8438
8737
|
type: "pipe",
|
|
8439
8738
|
in: new _String({
|
|
8440
8739
|
type: "string",
|
|
8441
|
-
error: error
|
|
8740
|
+
error: params.error
|
|
8442
8741
|
}),
|
|
8443
8742
|
out: tx,
|
|
8444
|
-
error: error
|
|
8743
|
+
error: params.error
|
|
8445
8744
|
});
|
|
8446
8745
|
const outerPipe = new _Pipe({
|
|
8447
8746
|
type: "pipe",
|
|
8448
8747
|
in: innerPipe,
|
|
8449
8748
|
out: new _Boolean({
|
|
8450
8749
|
type: "boolean",
|
|
8451
|
-
error: error
|
|
8750
|
+
error: params.error
|
|
8452
8751
|
}),
|
|
8453
|
-
error: error
|
|
8752
|
+
error: params.error
|
|
8454
8753
|
});
|
|
8455
8754
|
return outerPipe;
|
|
8456
8755
|
}
|
|
8756
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
8757
|
+
const params = normalizeParams(_params);
|
|
8758
|
+
const def = {
|
|
8759
|
+
...normalizeParams(_params),
|
|
8760
|
+
check: "string_format",
|
|
8761
|
+
type: "string",
|
|
8762
|
+
format,
|
|
8763
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
8764
|
+
...params
|
|
8765
|
+
};
|
|
8766
|
+
if (fnOrRegex instanceof RegExp) {
|
|
8767
|
+
def.pattern = fnOrRegex;
|
|
8768
|
+
}
|
|
8769
|
+
const inst = new Class$1(def);
|
|
8770
|
+
return inst;
|
|
8771
|
+
}
|
|
8457
8772
|
|
|
8458
8773
|
//#endregion
|
|
8459
|
-
//#region ../../node_modules/zod/
|
|
8774
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8460
8775
|
var $ZodFunction = class {
|
|
8461
8776
|
constructor(def) {
|
|
8462
8777
|
this._def = def;
|
|
@@ -8527,7 +8842,7 @@ function _function(params) {
|
|
|
8527
8842
|
}
|
|
8528
8843
|
|
|
8529
8844
|
//#endregion
|
|
8530
|
-
//#region ../../node_modules/zod/
|
|
8845
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8531
8846
|
var JSONSchemaGenerator = class {
|
|
8532
8847
|
constructor(params) {
|
|
8533
8848
|
this.counter = 0;
|
|
@@ -8563,431 +8878,435 @@ var JSONSchemaGenerator = class {
|
|
|
8563
8878
|
const result = {
|
|
8564
8879
|
schema: {},
|
|
8565
8880
|
count: 1,
|
|
8566
|
-
cycle: undefined
|
|
8567
|
-
};
|
|
8568
|
-
this.seen.set(schema, result);
|
|
8569
|
-
if (schema._zod.toJSONSchema) {
|
|
8570
|
-
result.schema = schema._zod.toJSONSchema();
|
|
8571
|
-
}
|
|
8572
|
-
const params = {
|
|
8573
|
-
..._params,
|
|
8574
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
8881
|
+
cycle: undefined,
|
|
8575
8882
|
path: _params.path
|
|
8576
8883
|
};
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
this.seen.get(parent).isParent = true;
|
|
8884
|
+
this.seen.set(schema, result);
|
|
8885
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
8886
|
+
if (overrideSchema) {
|
|
8887
|
+
result.schema = overrideSchema;
|
|
8582
8888
|
} else {
|
|
8583
|
-
const
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8889
|
+
const params = {
|
|
8890
|
+
..._params,
|
|
8891
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
8892
|
+
path: _params.path
|
|
8893
|
+
};
|
|
8894
|
+
const parent = schema._zod.parent;
|
|
8895
|
+
if (parent) {
|
|
8896
|
+
result.ref = parent;
|
|
8897
|
+
this.process(parent, params);
|
|
8898
|
+
this.seen.get(parent).isParent = true;
|
|
8899
|
+
} else {
|
|
8900
|
+
const _json = result.schema;
|
|
8901
|
+
switch (def.type) {
|
|
8902
|
+
case "string": {
|
|
8903
|
+
const json$1 = _json;
|
|
8904
|
+
json$1.type = "string";
|
|
8905
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8906
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8907
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8908
|
+
if (format) {
|
|
8909
|
+
json$1.format = formatMap[format] ?? format;
|
|
8910
|
+
if (json$1.format === "") delete json$1.format;
|
|
8911
|
+
}
|
|
8912
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8913
|
+
if (patterns && patterns.size > 0) {
|
|
8914
|
+
const regexes = [...patterns];
|
|
8915
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8916
|
+
else if (regexes.length > 1) {
|
|
8917
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8918
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8919
|
+
pattern: regex.source
|
|
8920
|
+
}))];
|
|
8921
|
+
}
|
|
8922
|
+
}
|
|
8923
|
+
break;
|
|
8594
8924
|
}
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
const
|
|
8598
|
-
if (
|
|
8599
|
-
else
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8925
|
+
case "number": {
|
|
8926
|
+
const json$1 = _json;
|
|
8927
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
8928
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
8929
|
+
else json$1.type = "number";
|
|
8930
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
8931
|
+
if (typeof minimum === "number") {
|
|
8932
|
+
json$1.minimum = minimum;
|
|
8933
|
+
if (typeof exclusiveMinimum === "number") {
|
|
8934
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8935
|
+
else delete json$1.exclusiveMinimum;
|
|
8936
|
+
}
|
|
8604
8937
|
}
|
|
8938
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
8939
|
+
if (typeof maximum === "number") {
|
|
8940
|
+
json$1.maximum = maximum;
|
|
8941
|
+
if (typeof exclusiveMaximum === "number") {
|
|
8942
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8943
|
+
else delete json$1.exclusiveMaximum;
|
|
8944
|
+
}
|
|
8945
|
+
}
|
|
8946
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
8947
|
+
break;
|
|
8605
8948
|
}
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
if (typeof minimum === "number") {
|
|
8615
|
-
json$1.minimum = minimum;
|
|
8616
|
-
if (typeof exclusiveMinimum === "number") {
|
|
8617
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8618
|
-
else delete json$1.exclusiveMinimum;
|
|
8949
|
+
case "boolean": {
|
|
8950
|
+
const json$1 = _json;
|
|
8951
|
+
json$1.type = "boolean";
|
|
8952
|
+
break;
|
|
8953
|
+
}
|
|
8954
|
+
case "bigint": {
|
|
8955
|
+
if (this.unrepresentable === "throw") {
|
|
8956
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8619
8957
|
}
|
|
8958
|
+
break;
|
|
8620
8959
|
}
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
if (typeof exclusiveMaximum === "number") {
|
|
8625
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8626
|
-
else delete json$1.exclusiveMaximum;
|
|
8960
|
+
case "symbol": {
|
|
8961
|
+
if (this.unrepresentable === "throw") {
|
|
8962
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8627
8963
|
}
|
|
8964
|
+
break;
|
|
8628
8965
|
}
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
case "boolean": {
|
|
8633
|
-
const json$1 = _json;
|
|
8634
|
-
json$1.type = "boolean";
|
|
8635
|
-
break;
|
|
8636
|
-
}
|
|
8637
|
-
case "bigint": {
|
|
8638
|
-
if (this.unrepresentable === "throw") {
|
|
8639
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8966
|
+
case "null": {
|
|
8967
|
+
_json.type = "null";
|
|
8968
|
+
break;
|
|
8640
8969
|
}
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
case "symbol": {
|
|
8644
|
-
if (this.unrepresentable === "throw") {
|
|
8645
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8970
|
+
case "any": {
|
|
8971
|
+
break;
|
|
8646
8972
|
}
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
case "undefined": {
|
|
8650
|
-
const json$1 = _json;
|
|
8651
|
-
json$1.type = "null";
|
|
8652
|
-
break;
|
|
8653
|
-
}
|
|
8654
|
-
case "null": {
|
|
8655
|
-
_json.type = "null";
|
|
8656
|
-
break;
|
|
8657
|
-
}
|
|
8658
|
-
case "any": {
|
|
8659
|
-
break;
|
|
8660
|
-
}
|
|
8661
|
-
case "unknown": {
|
|
8662
|
-
break;
|
|
8663
|
-
}
|
|
8664
|
-
case "never": {
|
|
8665
|
-
_json.not = {};
|
|
8666
|
-
break;
|
|
8667
|
-
}
|
|
8668
|
-
case "void": {
|
|
8669
|
-
if (this.unrepresentable === "throw") {
|
|
8670
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
8973
|
+
case "unknown": {
|
|
8974
|
+
break;
|
|
8671
8975
|
}
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8976
|
+
case "undefined": {
|
|
8977
|
+
if (this.unrepresentable === "throw") {
|
|
8978
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
8979
|
+
}
|
|
8980
|
+
break;
|
|
8677
8981
|
}
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8684
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8685
|
-
json$1.type = "array";
|
|
8686
|
-
json$1.items = this.process(def.element, {
|
|
8687
|
-
...params,
|
|
8688
|
-
path: [...params.path, "items"]
|
|
8689
|
-
});
|
|
8690
|
-
break;
|
|
8691
|
-
}
|
|
8692
|
-
case "object": {
|
|
8693
|
-
const json$1 = _json;
|
|
8694
|
-
json$1.type = "object";
|
|
8695
|
-
json$1.properties = {};
|
|
8696
|
-
const shape = def.shape;
|
|
8697
|
-
for (const key in shape) {
|
|
8698
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
8699
|
-
...params,
|
|
8700
|
-
path: [
|
|
8701
|
-
...params.path,
|
|
8702
|
-
"properties",
|
|
8703
|
-
key
|
|
8704
|
-
]
|
|
8705
|
-
});
|
|
8982
|
+
case "void": {
|
|
8983
|
+
if (this.unrepresentable === "throw") {
|
|
8984
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
8985
|
+
}
|
|
8986
|
+
break;
|
|
8706
8987
|
}
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8988
|
+
case "never": {
|
|
8989
|
+
_json.not = {};
|
|
8990
|
+
break;
|
|
8991
|
+
}
|
|
8992
|
+
case "date": {
|
|
8993
|
+
if (this.unrepresentable === "throw") {
|
|
8994
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
8714
8995
|
}
|
|
8715
|
-
|
|
8716
|
-
if (requiredKeys.size > 0) {
|
|
8717
|
-
json$1.required = Array.from(requiredKeys);
|
|
8996
|
+
break;
|
|
8718
8997
|
}
|
|
8719
|
-
|
|
8720
|
-
json$1
|
|
8721
|
-
|
|
8722
|
-
if (
|
|
8723
|
-
|
|
8724
|
-
json$1.
|
|
8998
|
+
case "array": {
|
|
8999
|
+
const json$1 = _json;
|
|
9000
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9001
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9002
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9003
|
+
json$1.type = "array";
|
|
9004
|
+
json$1.items = this.process(def.element, {
|
|
8725
9005
|
...params,
|
|
8726
|
-
path: [...params.path, "
|
|
9006
|
+
path: [...params.path, "items"]
|
|
8727
9007
|
});
|
|
9008
|
+
break;
|
|
8728
9009
|
}
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
const json$1 = _json;
|
|
8768
|
-
json$1.type = "array";
|
|
8769
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
8770
|
-
...params,
|
|
8771
|
-
path: [
|
|
8772
|
-
...params.path,
|
|
8773
|
-
"prefixItems",
|
|
8774
|
-
i
|
|
8775
|
-
]
|
|
8776
|
-
}));
|
|
8777
|
-
if (this.target === "draft-2020-12") {
|
|
8778
|
-
json$1.prefixItems = prefixItems;
|
|
8779
|
-
} else {
|
|
8780
|
-
json$1.items = prefixItems;
|
|
9010
|
+
case "object": {
|
|
9011
|
+
const json$1 = _json;
|
|
9012
|
+
json$1.type = "object";
|
|
9013
|
+
json$1.properties = {};
|
|
9014
|
+
const shape = def.shape;
|
|
9015
|
+
for (const key in shape) {
|
|
9016
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9017
|
+
...params,
|
|
9018
|
+
path: [
|
|
9019
|
+
...params.path,
|
|
9020
|
+
"properties",
|
|
9021
|
+
key
|
|
9022
|
+
]
|
|
9023
|
+
});
|
|
9024
|
+
}
|
|
9025
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9026
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9027
|
+
const v = def.shape[key]._zod;
|
|
9028
|
+
if (this.io === "input") {
|
|
9029
|
+
return v.optin === undefined;
|
|
9030
|
+
} else {
|
|
9031
|
+
return v.optout === undefined;
|
|
9032
|
+
}
|
|
9033
|
+
}));
|
|
9034
|
+
if (requiredKeys.size > 0) {
|
|
9035
|
+
json$1.required = Array.from(requiredKeys);
|
|
9036
|
+
}
|
|
9037
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9038
|
+
json$1.additionalProperties = false;
|
|
9039
|
+
} else if (!def.catchall) {
|
|
9040
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9041
|
+
} else if (def.catchall) {
|
|
9042
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9043
|
+
...params,
|
|
9044
|
+
path: [...params.path, "additionalProperties"]
|
|
9045
|
+
});
|
|
9046
|
+
}
|
|
9047
|
+
break;
|
|
8781
9048
|
}
|
|
8782
|
-
|
|
8783
|
-
const
|
|
9049
|
+
case "union": {
|
|
9050
|
+
const json$1 = _json;
|
|
9051
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
8784
9052
|
...params,
|
|
8785
|
-
path: [
|
|
9053
|
+
path: [
|
|
9054
|
+
...params.path,
|
|
9055
|
+
"anyOf",
|
|
9056
|
+
i
|
|
9057
|
+
]
|
|
9058
|
+
}));
|
|
9059
|
+
break;
|
|
9060
|
+
}
|
|
9061
|
+
case "intersection": {
|
|
9062
|
+
const json$1 = _json;
|
|
9063
|
+
const a = this.process(def.left, {
|
|
9064
|
+
...params,
|
|
9065
|
+
path: [
|
|
9066
|
+
...params.path,
|
|
9067
|
+
"allOf",
|
|
9068
|
+
0
|
|
9069
|
+
]
|
|
9070
|
+
});
|
|
9071
|
+
const b = this.process(def.right, {
|
|
9072
|
+
...params,
|
|
9073
|
+
path: [
|
|
9074
|
+
...params.path,
|
|
9075
|
+
"allOf",
|
|
9076
|
+
1
|
|
9077
|
+
]
|
|
8786
9078
|
});
|
|
9079
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9080
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9081
|
+
json$1.allOf = allOf;
|
|
9082
|
+
break;
|
|
9083
|
+
}
|
|
9084
|
+
case "tuple": {
|
|
9085
|
+
const json$1 = _json;
|
|
9086
|
+
json$1.type = "array";
|
|
9087
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9088
|
+
...params,
|
|
9089
|
+
path: [
|
|
9090
|
+
...params.path,
|
|
9091
|
+
"prefixItems",
|
|
9092
|
+
i
|
|
9093
|
+
]
|
|
9094
|
+
}));
|
|
8787
9095
|
if (this.target === "draft-2020-12") {
|
|
8788
|
-
json$1.
|
|
9096
|
+
json$1.prefixItems = prefixItems;
|
|
8789
9097
|
} else {
|
|
8790
|
-
json$1.
|
|
9098
|
+
json$1.items = prefixItems;
|
|
9099
|
+
}
|
|
9100
|
+
if (def.rest) {
|
|
9101
|
+
const rest = this.process(def.rest, {
|
|
9102
|
+
...params,
|
|
9103
|
+
path: [...params.path, "items"]
|
|
9104
|
+
});
|
|
9105
|
+
if (this.target === "draft-2020-12") {
|
|
9106
|
+
json$1.items = rest;
|
|
9107
|
+
} else {
|
|
9108
|
+
json$1.additionalItems = rest;
|
|
9109
|
+
}
|
|
8791
9110
|
}
|
|
9111
|
+
if (def.rest) {
|
|
9112
|
+
json$1.items = this.process(def.rest, {
|
|
9113
|
+
...params,
|
|
9114
|
+
path: [...params.path, "items"]
|
|
9115
|
+
});
|
|
9116
|
+
}
|
|
9117
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9118
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9119
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9120
|
+
break;
|
|
8792
9121
|
}
|
|
8793
|
-
|
|
8794
|
-
json$1
|
|
9122
|
+
case "record": {
|
|
9123
|
+
const json$1 = _json;
|
|
9124
|
+
json$1.type = "object";
|
|
9125
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
8795
9126
|
...params,
|
|
8796
|
-
path: [...params.path, "
|
|
9127
|
+
path: [...params.path, "propertyNames"]
|
|
8797
9128
|
});
|
|
9129
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9130
|
+
...params,
|
|
9131
|
+
path: [...params.path, "additionalProperties"]
|
|
9132
|
+
});
|
|
9133
|
+
break;
|
|
8798
9134
|
}
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
case "record": {
|
|
8805
|
-
const json$1 = _json;
|
|
8806
|
-
json$1.type = "object";
|
|
8807
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
8808
|
-
...params,
|
|
8809
|
-
path: [...params.path, "propertyNames"]
|
|
8810
|
-
});
|
|
8811
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
8812
|
-
...params,
|
|
8813
|
-
path: [...params.path, "additionalProperties"]
|
|
8814
|
-
});
|
|
8815
|
-
break;
|
|
8816
|
-
}
|
|
8817
|
-
case "map": {
|
|
8818
|
-
if (this.unrepresentable === "throw") {
|
|
8819
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9135
|
+
case "map": {
|
|
9136
|
+
if (this.unrepresentable === "throw") {
|
|
9137
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9138
|
+
}
|
|
9139
|
+
break;
|
|
8820
9140
|
}
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
9141
|
+
case "set": {
|
|
9142
|
+
if (this.unrepresentable === "throw") {
|
|
9143
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9144
|
+
}
|
|
9145
|
+
break;
|
|
9146
|
+
}
|
|
9147
|
+
case "enum": {
|
|
9148
|
+
const json$1 = _json;
|
|
9149
|
+
const values = getEnumValues(def.entries);
|
|
9150
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9151
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9152
|
+
json$1.enum = values;
|
|
9153
|
+
break;
|
|
8826
9154
|
}
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
if (val === undefined) {
|
|
8842
|
-
if (this.unrepresentable === "throw") {
|
|
8843
|
-
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
8844
|
-
} else {}
|
|
8845
|
-
} else if (typeof val === "bigint") {
|
|
8846
|
-
if (this.unrepresentable === "throw") {
|
|
8847
|
-
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9155
|
+
case "literal": {
|
|
9156
|
+
const json$1 = _json;
|
|
9157
|
+
const vals = [];
|
|
9158
|
+
for (const val of def.values) {
|
|
9159
|
+
if (val === undefined) {
|
|
9160
|
+
if (this.unrepresentable === "throw") {
|
|
9161
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9162
|
+
} else {}
|
|
9163
|
+
} else if (typeof val === "bigint") {
|
|
9164
|
+
if (this.unrepresentable === "throw") {
|
|
9165
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9166
|
+
} else {
|
|
9167
|
+
vals.push(Number(val));
|
|
9168
|
+
}
|
|
8848
9169
|
} else {
|
|
8849
|
-
vals.push(
|
|
9170
|
+
vals.push(val);
|
|
8850
9171
|
}
|
|
9172
|
+
}
|
|
9173
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9174
|
+
const val = vals[0];
|
|
9175
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9176
|
+
json$1.const = val;
|
|
8851
9177
|
} else {
|
|
8852
|
-
vals.
|
|
9178
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9179
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9180
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9181
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9182
|
+
json$1.enum = vals;
|
|
8853
9183
|
}
|
|
9184
|
+
break;
|
|
8854
9185
|
}
|
|
8855
|
-
|
|
8856
|
-
const
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
if (
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
if (mime) {
|
|
8879
|
-
if (mime.length === 1) {
|
|
8880
|
-
file$1.contentMediaType = mime[0];
|
|
8881
|
-
Object.assign(json$1, file$1);
|
|
9186
|
+
case "file": {
|
|
9187
|
+
const json$1 = _json;
|
|
9188
|
+
const file$1 = {
|
|
9189
|
+
type: "string",
|
|
9190
|
+
format: "binary",
|
|
9191
|
+
contentEncoding: "binary"
|
|
9192
|
+
};
|
|
9193
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9194
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9195
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9196
|
+
if (mime) {
|
|
9197
|
+
if (mime.length === 1) {
|
|
9198
|
+
file$1.contentMediaType = mime[0];
|
|
9199
|
+
Object.assign(json$1, file$1);
|
|
9200
|
+
} else {
|
|
9201
|
+
json$1.anyOf = mime.map((m) => {
|
|
9202
|
+
const mFile = {
|
|
9203
|
+
...file$1,
|
|
9204
|
+
contentMediaType: m
|
|
9205
|
+
};
|
|
9206
|
+
return mFile;
|
|
9207
|
+
});
|
|
9208
|
+
}
|
|
8882
9209
|
} else {
|
|
8883
|
-
json$1
|
|
8884
|
-
const mFile = {
|
|
8885
|
-
...file$1,
|
|
8886
|
-
contentMediaType: m
|
|
8887
|
-
};
|
|
8888
|
-
return mFile;
|
|
8889
|
-
});
|
|
9210
|
+
Object.assign(json$1, file$1);
|
|
8890
9211
|
}
|
|
8891
|
-
|
|
8892
|
-
Object.assign(json$1, file$1);
|
|
9212
|
+
break;
|
|
8893
9213
|
}
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
9214
|
+
case "transform": {
|
|
9215
|
+
if (this.unrepresentable === "throw") {
|
|
9216
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9217
|
+
}
|
|
9218
|
+
break;
|
|
8899
9219
|
}
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
8905
|
-
break;
|
|
8906
|
-
}
|
|
8907
|
-
case "nonoptional": {
|
|
8908
|
-
this.process(def.innerType, params);
|
|
8909
|
-
result.ref = def.innerType;
|
|
8910
|
-
break;
|
|
8911
|
-
}
|
|
8912
|
-
case "success": {
|
|
8913
|
-
const json$1 = _json;
|
|
8914
|
-
json$1.type = "boolean";
|
|
8915
|
-
break;
|
|
8916
|
-
}
|
|
8917
|
-
case "default": {
|
|
8918
|
-
this.process(def.innerType, params);
|
|
8919
|
-
result.ref = def.innerType;
|
|
8920
|
-
_json.default = def.defaultValue;
|
|
8921
|
-
break;
|
|
8922
|
-
}
|
|
8923
|
-
case "prefault": {
|
|
8924
|
-
this.process(def.innerType, params);
|
|
8925
|
-
result.ref = def.innerType;
|
|
8926
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
8927
|
-
break;
|
|
8928
|
-
}
|
|
8929
|
-
case "catch": {
|
|
8930
|
-
this.process(def.innerType, params);
|
|
8931
|
-
result.ref = def.innerType;
|
|
8932
|
-
let catchValue;
|
|
8933
|
-
try {
|
|
8934
|
-
catchValue = def.catchValue(undefined);
|
|
8935
|
-
} catch {
|
|
8936
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9220
|
+
case "nullable": {
|
|
9221
|
+
const inner = this.process(def.innerType, params);
|
|
9222
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9223
|
+
break;
|
|
8937
9224
|
}
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
if (this.unrepresentable === "throw") {
|
|
8943
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9225
|
+
case "nonoptional": {
|
|
9226
|
+
this.process(def.innerType, params);
|
|
9227
|
+
result.ref = def.innerType;
|
|
9228
|
+
break;
|
|
8944
9229
|
}
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
9230
|
+
case "success": {
|
|
9231
|
+
const json$1 = _json;
|
|
9232
|
+
json$1.type = "boolean";
|
|
9233
|
+
break;
|
|
9234
|
+
}
|
|
9235
|
+
case "default": {
|
|
9236
|
+
this.process(def.innerType, params);
|
|
9237
|
+
result.ref = def.innerType;
|
|
9238
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9239
|
+
break;
|
|
9240
|
+
}
|
|
9241
|
+
case "prefault": {
|
|
9242
|
+
this.process(def.innerType, params);
|
|
9243
|
+
result.ref = def.innerType;
|
|
9244
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9245
|
+
break;
|
|
9246
|
+
}
|
|
9247
|
+
case "catch": {
|
|
9248
|
+
this.process(def.innerType, params);
|
|
9249
|
+
result.ref = def.innerType;
|
|
9250
|
+
let catchValue;
|
|
9251
|
+
try {
|
|
9252
|
+
catchValue = def.catchValue(undefined);
|
|
9253
|
+
} catch {
|
|
9254
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9255
|
+
}
|
|
9256
|
+
_json.default = catchValue;
|
|
9257
|
+
break;
|
|
9258
|
+
}
|
|
9259
|
+
case "nan": {
|
|
9260
|
+
if (this.unrepresentable === "throw") {
|
|
9261
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9262
|
+
}
|
|
9263
|
+
break;
|
|
9264
|
+
}
|
|
9265
|
+
case "template_literal": {
|
|
9266
|
+
const json$1 = _json;
|
|
9267
|
+
const pattern = schema._zod.pattern;
|
|
9268
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9269
|
+
json$1.type = "string";
|
|
9270
|
+
json$1.pattern = pattern.source;
|
|
9271
|
+
break;
|
|
9272
|
+
}
|
|
9273
|
+
case "pipe": {
|
|
9274
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9275
|
+
this.process(innerType, params);
|
|
9276
|
+
result.ref = innerType;
|
|
9277
|
+
break;
|
|
9278
|
+
}
|
|
9279
|
+
case "readonly": {
|
|
9280
|
+
this.process(def.innerType, params);
|
|
9281
|
+
result.ref = def.innerType;
|
|
9282
|
+
_json.readOnly = true;
|
|
9283
|
+
break;
|
|
9284
|
+
}
|
|
9285
|
+
case "promise": {
|
|
9286
|
+
this.process(def.innerType, params);
|
|
9287
|
+
result.ref = def.innerType;
|
|
9288
|
+
break;
|
|
9289
|
+
}
|
|
9290
|
+
case "optional": {
|
|
9291
|
+
this.process(def.innerType, params);
|
|
9292
|
+
result.ref = def.innerType;
|
|
9293
|
+
break;
|
|
9294
|
+
}
|
|
9295
|
+
case "lazy": {
|
|
9296
|
+
const innerType = schema._zod.innerType;
|
|
9297
|
+
this.process(innerType, params);
|
|
9298
|
+
result.ref = innerType;
|
|
9299
|
+
break;
|
|
9300
|
+
}
|
|
9301
|
+
case "custom": {
|
|
9302
|
+
if (this.unrepresentable === "throw") {
|
|
9303
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9304
|
+
}
|
|
9305
|
+
break;
|
|
9306
|
+
}
|
|
9307
|
+
default: {
|
|
9308
|
+
def;
|
|
8986
9309
|
}
|
|
8987
|
-
break;
|
|
8988
|
-
}
|
|
8989
|
-
default: {
|
|
8990
|
-
def;
|
|
8991
9310
|
}
|
|
8992
9311
|
}
|
|
8993
9312
|
}
|
|
@@ -9014,12 +9333,15 @@ var JSONSchemaGenerator = class {
|
|
|
9014
9333
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9015
9334
|
if (params.external) {
|
|
9016
9335
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9017
|
-
|
|
9336
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9337
|
+
if (externalId) {
|
|
9338
|
+
return { ref: uriGenerator(externalId) };
|
|
9339
|
+
}
|
|
9018
9340
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9019
9341
|
entry[1].defId = id;
|
|
9020
9342
|
return {
|
|
9021
9343
|
defId: id,
|
|
9022
|
-
ref: `${
|
|
9344
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
9023
9345
|
};
|
|
9024
9346
|
}
|
|
9025
9347
|
if (entry[1] === root) {
|
|
@@ -9047,6 +9369,14 @@ var JSONSchemaGenerator = class {
|
|
|
9047
9369
|
}
|
|
9048
9370
|
schema$1.$ref = ref;
|
|
9049
9371
|
};
|
|
9372
|
+
if (params.cycles === "throw") {
|
|
9373
|
+
for (const entry of this.seen.entries()) {
|
|
9374
|
+
const seen = entry[1];
|
|
9375
|
+
if (seen.cycle) {
|
|
9376
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9377
|
+
}
|
|
9378
|
+
}
|
|
9379
|
+
}
|
|
9050
9380
|
for (const entry of this.seen.entries()) {
|
|
9051
9381
|
const seen = entry[1];
|
|
9052
9382
|
if (schema === entry[0]) {
|
|
@@ -9066,11 +9396,7 @@ var JSONSchemaGenerator = class {
|
|
|
9066
9396
|
continue;
|
|
9067
9397
|
}
|
|
9068
9398
|
if (seen.cycle) {
|
|
9069
|
-
|
|
9070
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9071
|
-
} else if (params.cycles === "ref") {
|
|
9072
|
-
extractToDef(entry);
|
|
9073
|
-
}
|
|
9399
|
+
extractToDef(entry);
|
|
9074
9400
|
continue;
|
|
9075
9401
|
}
|
|
9076
9402
|
if (seen.count > 1) {
|
|
@@ -9102,7 +9428,8 @@ var JSONSchemaGenerator = class {
|
|
|
9102
9428
|
}
|
|
9103
9429
|
if (!seen.isParent) this.override({
|
|
9104
9430
|
zodSchema,
|
|
9105
|
-
jsonSchema: schema$1
|
|
9431
|
+
jsonSchema: schema$1,
|
|
9432
|
+
path: seen.path ?? []
|
|
9106
9433
|
});
|
|
9107
9434
|
};
|
|
9108
9435
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9116,6 +9443,11 @@ var JSONSchemaGenerator = class {
|
|
|
9116
9443
|
} else {
|
|
9117
9444
|
console.warn(`Invalid target: ${this.target}`);
|
|
9118
9445
|
}
|
|
9446
|
+
if (params.external?.uri) {
|
|
9447
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9448
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9449
|
+
result.$id = params.external.uri(id);
|
|
9450
|
+
}
|
|
9119
9451
|
Object.assign(result, root.def);
|
|
9120
9452
|
const defs = params.external?.defs ?? {};
|
|
9121
9453
|
for (const entry of this.seen.entries()) {
|
|
@@ -9124,11 +9456,13 @@ var JSONSchemaGenerator = class {
|
|
|
9124
9456
|
defs[seen.defId] = seen.def;
|
|
9125
9457
|
}
|
|
9126
9458
|
}
|
|
9127
|
-
if (
|
|
9128
|
-
if (
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9459
|
+
if (params.external) {} else {
|
|
9460
|
+
if (Object.keys(defs).length > 0) {
|
|
9461
|
+
if (this.target === "draft-2020-12") {
|
|
9462
|
+
result.$defs = defs;
|
|
9463
|
+
} else {
|
|
9464
|
+
result.definitions = defs;
|
|
9465
|
+
}
|
|
9132
9466
|
}
|
|
9133
9467
|
}
|
|
9134
9468
|
try {
|
|
@@ -9149,7 +9483,7 @@ function toJSONSchema(input, _params) {
|
|
|
9149
9483
|
const schemas = {};
|
|
9150
9484
|
const external = {
|
|
9151
9485
|
registry: input,
|
|
9152
|
-
uri: _params?.uri
|
|
9486
|
+
uri: _params?.uri,
|
|
9153
9487
|
defs
|
|
9154
9488
|
};
|
|
9155
9489
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9260,11 +9594,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9260
9594
|
}
|
|
9261
9595
|
|
|
9262
9596
|
//#endregion
|
|
9263
|
-
//#region ../../node_modules/zod/
|
|
9597
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9264
9598
|
var json_schema_exports = {};
|
|
9265
9599
|
|
|
9266
9600
|
//#endregion
|
|
9267
|
-
//#region ../../node_modules/zod/
|
|
9601
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9268
9602
|
var core_exports = {};
|
|
9269
9603
|
__export(core_exports, {
|
|
9270
9604
|
$ZodAny: () => $ZodAny,
|
|
@@ -9303,6 +9637,7 @@ __export(core_exports, {
|
|
|
9303
9637
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9304
9638
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9305
9639
|
$ZodCustom: () => $ZodCustom,
|
|
9640
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9306
9641
|
$ZodDate: () => $ZodDate,
|
|
9307
9642
|
$ZodDefault: () => $ZodDefault,
|
|
9308
9643
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9367,6 +9702,8 @@ __export(core_exports, {
|
|
|
9367
9702
|
Doc: () => Doc,
|
|
9368
9703
|
JSONSchema: () => json_schema_exports,
|
|
9369
9704
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
9705
|
+
NEVER: () => NEVER,
|
|
9706
|
+
TimePrecision: () => TimePrecision,
|
|
9370
9707
|
_any: () => _any,
|
|
9371
9708
|
_array: () => _array,
|
|
9372
9709
|
_base64: () => _base64,
|
|
@@ -9456,6 +9793,7 @@ __export(core_exports, {
|
|
|
9456
9793
|
_size: () => _size,
|
|
9457
9794
|
_startsWith: () => _startsWith,
|
|
9458
9795
|
_string: () => _string,
|
|
9796
|
+
_stringFormat: () => _stringFormat,
|
|
9459
9797
|
_stringbool: () => _stringbool,
|
|
9460
9798
|
_success: () => _success,
|
|
9461
9799
|
_symbol: () => _symbol,
|
|
@@ -9505,7 +9843,7 @@ __export(core_exports, {
|
|
|
9505
9843
|
});
|
|
9506
9844
|
|
|
9507
9845
|
//#endregion
|
|
9508
|
-
//#region ../../node_modules/zod/
|
|
9846
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9509
9847
|
var iso_exports = {};
|
|
9510
9848
|
__export(iso_exports, {
|
|
9511
9849
|
ZodISODate: () => ZodISODate,
|
|
@@ -9547,7 +9885,7 @@ function duration(params) {
|
|
|
9547
9885
|
}
|
|
9548
9886
|
|
|
9549
9887
|
//#endregion
|
|
9550
|
-
//#region ../../node_modules/zod/
|
|
9888
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9551
9889
|
const initializer = (inst, issues) => {
|
|
9552
9890
|
$ZodError.init(inst, issues);
|
|
9553
9891
|
inst.name = "ZodError";
|
|
@@ -9565,14 +9903,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
9565
9903
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
9566
9904
|
|
|
9567
9905
|
//#endregion
|
|
9568
|
-
//#region ../../node_modules/zod/
|
|
9906
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
9569
9907
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9570
9908
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9571
9909
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
9572
9910
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
9573
9911
|
|
|
9574
9912
|
//#endregion
|
|
9575
|
-
//#region ../../node_modules/zod/
|
|
9913
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
9576
9914
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
9577
9915
|
$ZodType.init(inst, def);
|
|
9578
9916
|
inst.def = def;
|
|
@@ -9840,6 +10178,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
9840
10178
|
function jwt(params) {
|
|
9841
10179
|
return _jwt(ZodJWT, params);
|
|
9842
10180
|
}
|
|
10181
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10182
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10183
|
+
ZodStringFormat.init(inst, def);
|
|
10184
|
+
});
|
|
10185
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10186
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10187
|
+
}
|
|
9843
10188
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
9844
10189
|
$ZodNumber.init(inst, def);
|
|
9845
10190
|
ZodType.init(inst, def);
|
|
@@ -10009,9 +10354,7 @@ function keyof(schema) {
|
|
|
10009
10354
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10010
10355
|
$ZodObject.init(inst, def);
|
|
10011
10356
|
ZodType.init(inst, def);
|
|
10012
|
-
defineLazy(inst, "shape", () =>
|
|
10013
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10014
|
-
});
|
|
10357
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
10015
10358
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10016
10359
|
inst.catchall = (catchall) => inst.clone({
|
|
10017
10360
|
...inst._zod.def,
|
|
@@ -10456,11 +10799,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10456
10799
|
$ZodCustom.init(inst, def);
|
|
10457
10800
|
ZodType.init(inst, def);
|
|
10458
10801
|
});
|
|
10459
|
-
function check(fn
|
|
10460
|
-
const ch = new $ZodCheck({
|
|
10461
|
-
check: "custom",
|
|
10462
|
-
...normalizeParams(params)
|
|
10463
|
-
});
|
|
10802
|
+
function check(fn) {
|
|
10803
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10464
10804
|
ch._zod.check = fn;
|
|
10465
10805
|
return ch;
|
|
10466
10806
|
}
|
|
@@ -10470,7 +10810,7 @@ function custom(fn, _params) {
|
|
|
10470
10810
|
function refine(fn, _params = {}) {
|
|
10471
10811
|
return _refine(ZodCustom, fn, _params);
|
|
10472
10812
|
}
|
|
10473
|
-
function superRefine(fn
|
|
10813
|
+
function superRefine(fn) {
|
|
10474
10814
|
const ch = check((payload) => {
|
|
10475
10815
|
payload.addIssue = (issue$1) => {
|
|
10476
10816
|
if (typeof issue$1 === "string") {
|
|
@@ -10486,7 +10826,7 @@ function superRefine(fn, params) {
|
|
|
10486
10826
|
}
|
|
10487
10827
|
};
|
|
10488
10828
|
return fn(payload.value, payload);
|
|
10489
|
-
}
|
|
10829
|
+
});
|
|
10490
10830
|
return ch;
|
|
10491
10831
|
}
|
|
10492
10832
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10524,7 +10864,7 @@ function preprocess(fn, schema) {
|
|
|
10524
10864
|
}
|
|
10525
10865
|
|
|
10526
10866
|
//#endregion
|
|
10527
|
-
//#region ../../node_modules/zod/
|
|
10867
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10528
10868
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10529
10869
|
const ZodIssueCode = {
|
|
10530
10870
|
invalid_type: "invalid_type",
|
|
@@ -10539,10 +10879,6 @@ const ZodIssueCode = {
|
|
|
10539
10879
|
invalid_value: "invalid_value",
|
|
10540
10880
|
custom: "custom"
|
|
10541
10881
|
};
|
|
10542
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10543
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10544
|
-
/** A special constant with type `never` */
|
|
10545
|
-
const NEVER = INVALID;
|
|
10546
10882
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10547
10883
|
function setErrorMap(map$1) {
|
|
10548
10884
|
config({ customError: map$1 });
|
|
@@ -10553,7 +10889,7 @@ function getErrorMap() {
|
|
|
10553
10889
|
}
|
|
10554
10890
|
|
|
10555
10891
|
//#endregion
|
|
10556
|
-
//#region ../../node_modules/zod/
|
|
10892
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
10557
10893
|
var coerce_exports = {};
|
|
10558
10894
|
__export(coerce_exports, {
|
|
10559
10895
|
bigint: () => bigint,
|
|
@@ -10579,13 +10915,14 @@ function date(params) {
|
|
|
10579
10915
|
}
|
|
10580
10916
|
|
|
10581
10917
|
//#endregion
|
|
10582
|
-
//#region ../../node_modules/zod/
|
|
10918
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
10583
10919
|
var external_exports = {};
|
|
10584
10920
|
__export(external_exports, {
|
|
10585
10921
|
$brand: () => $brand,
|
|
10586
10922
|
$input: () => $input,
|
|
10587
10923
|
$output: () => $output,
|
|
10588
10924
|
NEVER: () => NEVER,
|
|
10925
|
+
TimePrecision: () => TimePrecision,
|
|
10589
10926
|
ZodAny: () => ZodAny,
|
|
10590
10927
|
ZodArray: () => ZodArray,
|
|
10591
10928
|
ZodBase64: () => ZodBase64,
|
|
@@ -10599,6 +10936,7 @@ __export(external_exports, {
|
|
|
10599
10936
|
ZodCUID2: () => ZodCUID2,
|
|
10600
10937
|
ZodCatch: () => ZodCatch,
|
|
10601
10938
|
ZodCustom: () => ZodCustom,
|
|
10939
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
10602
10940
|
ZodDate: () => ZodDate,
|
|
10603
10941
|
ZodDefault: () => ZodDefault,
|
|
10604
10942
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -10760,6 +11098,7 @@ __export(external_exports, {
|
|
|
10760
11098
|
startsWith: () => _startsWith,
|
|
10761
11099
|
strictObject: () => strictObject,
|
|
10762
11100
|
string: () => string$1,
|
|
11101
|
+
stringFormat: () => stringFormat,
|
|
10763
11102
|
stringbool: () => stringbool,
|
|
10764
11103
|
success: () => success,
|
|
10765
11104
|
superRefine: () => superRefine,
|
|
@@ -10790,11 +11129,11 @@ __export(external_exports, {
|
|
|
10790
11129
|
config(en_default());
|
|
10791
11130
|
|
|
10792
11131
|
//#endregion
|
|
10793
|
-
//#region ../../node_modules/zod/
|
|
11132
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
10794
11133
|
var classic_default = external_exports;
|
|
10795
11134
|
|
|
10796
11135
|
//#endregion
|
|
10797
|
-
//#region ../../node_modules/zod/
|
|
11136
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
10798
11137
|
var v4_default = classic_default;
|
|
10799
11138
|
|
|
10800
11139
|
//#endregion
|