@doccov/sdk 0.28.0 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analysis/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1455 -1335
- package/dist/shared/{chunk-3p1hd5h3.js → chunk-0048g7g0.js} +131 -131
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
saveSnapshot,
|
|
65
65
|
serializeJSDoc,
|
|
66
66
|
ts
|
|
67
|
-
} from "./shared/chunk-
|
|
67
|
+
} from "./shared/chunk-0048g7g0.js";
|
|
68
68
|
import {
|
|
69
69
|
mergeFilters,
|
|
70
70
|
parseListFlag
|
|
@@ -1062,6 +1062,7 @@ __export(exports_external, {
|
|
|
1062
1062
|
float32: () => float32,
|
|
1063
1063
|
flattenError: () => flattenError,
|
|
1064
1064
|
file: () => file,
|
|
1065
|
+
exactOptional: () => exactOptional,
|
|
1065
1066
|
enum: () => _enum2,
|
|
1066
1067
|
endsWith: () => _endsWith,
|
|
1067
1068
|
encodeAsync: () => encodeAsync2,
|
|
@@ -1147,6 +1148,7 @@ __export(exports_external, {
|
|
|
1147
1148
|
ZodFunction: () => ZodFunction,
|
|
1148
1149
|
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
1149
1150
|
ZodFile: () => ZodFile,
|
|
1151
|
+
ZodExactOptional: () => ZodExactOptional,
|
|
1150
1152
|
ZodError: () => ZodError,
|
|
1151
1153
|
ZodEnum: () => ZodEnum,
|
|
1152
1154
|
ZodEmoji: () => ZodEmoji,
|
|
@@ -1405,6 +1407,7 @@ __export(exports_core2, {
|
|
|
1405
1407
|
$ZodGUID: () => $ZodGUID,
|
|
1406
1408
|
$ZodFunction: () => $ZodFunction,
|
|
1407
1409
|
$ZodFile: () => $ZodFile,
|
|
1410
|
+
$ZodExactOptional: () => $ZodExactOptional,
|
|
1408
1411
|
$ZodError: () => $ZodError,
|
|
1409
1412
|
$ZodEnum: () => $ZodEnum,
|
|
1410
1413
|
$ZodEncodeError: () => $ZodEncodeError,
|
|
@@ -1549,6 +1552,7 @@ __export(exports_util, {
|
|
|
1549
1552
|
prefixIssues: () => prefixIssues,
|
|
1550
1553
|
pick: () => pick,
|
|
1551
1554
|
partial: () => partial,
|
|
1555
|
+
parsedType: () => parsedType,
|
|
1552
1556
|
optionalKeys: () => optionalKeys,
|
|
1553
1557
|
omit: () => omit,
|
|
1554
1558
|
objectClone: () => objectClone,
|
|
@@ -1906,6 +1910,11 @@ var BIGINT_FORMAT_RANGES = {
|
|
|
1906
1910
|
};
|
|
1907
1911
|
function pick(schema, mask) {
|
|
1908
1912
|
const currDef = schema._zod.def;
|
|
1913
|
+
const checks = currDef.checks;
|
|
1914
|
+
const hasChecks = checks && checks.length > 0;
|
|
1915
|
+
if (hasChecks) {
|
|
1916
|
+
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
1917
|
+
}
|
|
1909
1918
|
const def = mergeDefs(schema._zod.def, {
|
|
1910
1919
|
get shape() {
|
|
1911
1920
|
const newShape = {};
|
|
@@ -1926,6 +1935,11 @@ function pick(schema, mask) {
|
|
|
1926
1935
|
}
|
|
1927
1936
|
function omit(schema, mask) {
|
|
1928
1937
|
const currDef = schema._zod.def;
|
|
1938
|
+
const checks = currDef.checks;
|
|
1939
|
+
const hasChecks = checks && checks.length > 0;
|
|
1940
|
+
if (hasChecks) {
|
|
1941
|
+
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
1942
|
+
}
|
|
1929
1943
|
const def = mergeDefs(schema._zod.def, {
|
|
1930
1944
|
get shape() {
|
|
1931
1945
|
const newShape = { ...schema._zod.def.shape };
|
|
@@ -1951,15 +1965,19 @@ function extend(schema, shape) {
|
|
|
1951
1965
|
const checks = schema._zod.def.checks;
|
|
1952
1966
|
const hasChecks = checks && checks.length > 0;
|
|
1953
1967
|
if (hasChecks) {
|
|
1954
|
-
|
|
1968
|
+
const existingShape = schema._zod.def.shape;
|
|
1969
|
+
for (const key in shape) {
|
|
1970
|
+
if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
|
|
1971
|
+
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1955
1974
|
}
|
|
1956
1975
|
const def = mergeDefs(schema._zod.def, {
|
|
1957
1976
|
get shape() {
|
|
1958
1977
|
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
1959
1978
|
assignProp(this, "shape", _shape);
|
|
1960
1979
|
return _shape;
|
|
1961
|
-
}
|
|
1962
|
-
checks: []
|
|
1980
|
+
}
|
|
1963
1981
|
});
|
|
1964
1982
|
return clone(schema, def);
|
|
1965
1983
|
}
|
|
@@ -1967,15 +1985,13 @@ function safeExtend(schema, shape) {
|
|
|
1967
1985
|
if (!isPlainObject(shape)) {
|
|
1968
1986
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
1969
1987
|
}
|
|
1970
|
-
const def = {
|
|
1971
|
-
...schema._zod.def,
|
|
1988
|
+
const def = mergeDefs(schema._zod.def, {
|
|
1972
1989
|
get shape() {
|
|
1973
1990
|
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
1974
1991
|
assignProp(this, "shape", _shape);
|
|
1975
1992
|
return _shape;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
};
|
|
1993
|
+
}
|
|
1994
|
+
});
|
|
1979
1995
|
return clone(schema, def);
|
|
1980
1996
|
}
|
|
1981
1997
|
function merge(a, b) {
|
|
@@ -1993,6 +2009,12 @@ function merge(a, b) {
|
|
|
1993
2009
|
return clone(a, def);
|
|
1994
2010
|
}
|
|
1995
2011
|
function partial(Class, schema, mask) {
|
|
2012
|
+
const currDef = schema._zod.def;
|
|
2013
|
+
const checks = currDef.checks;
|
|
2014
|
+
const hasChecks = checks && checks.length > 0;
|
|
2015
|
+
if (hasChecks) {
|
|
2016
|
+
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
2017
|
+
}
|
|
1996
2018
|
const def = mergeDefs(schema._zod.def, {
|
|
1997
2019
|
get shape() {
|
|
1998
2020
|
const oldShape = schema._zod.def.shape;
|
|
@@ -2051,8 +2073,7 @@ function required(Class, schema, mask) {
|
|
|
2051
2073
|
}
|
|
2052
2074
|
assignProp(this, "shape", shape);
|
|
2053
2075
|
return shape;
|
|
2054
|
-
}
|
|
2055
|
-
checks: []
|
|
2076
|
+
}
|
|
2056
2077
|
});
|
|
2057
2078
|
return clone(schema, def);
|
|
2058
2079
|
}
|
|
@@ -2106,6 +2127,27 @@ function getLengthableOrigin(input) {
|
|
|
2106
2127
|
return "string";
|
|
2107
2128
|
return "unknown";
|
|
2108
2129
|
}
|
|
2130
|
+
function parsedType(data) {
|
|
2131
|
+
const t = typeof data;
|
|
2132
|
+
switch (t) {
|
|
2133
|
+
case "number": {
|
|
2134
|
+
return Number.isNaN(data) ? "nan" : "number";
|
|
2135
|
+
}
|
|
2136
|
+
case "object": {
|
|
2137
|
+
if (data === null) {
|
|
2138
|
+
return "null";
|
|
2139
|
+
}
|
|
2140
|
+
if (Array.isArray(data)) {
|
|
2141
|
+
return "array";
|
|
2142
|
+
}
|
|
2143
|
+
const obj = data;
|
|
2144
|
+
if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) {
|
|
2145
|
+
return obj.constructor.name;
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
return t;
|
|
2150
|
+
}
|
|
2109
2151
|
function issue(...args) {
|
|
2110
2152
|
const [iss, input, inst] = args;
|
|
2111
2153
|
if (typeof iss === "string") {
|
|
@@ -2490,7 +2532,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
2490
2532
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
2491
2533
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
2492
2534
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
2493
|
-
var e164 = /^\+
|
|
2535
|
+
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
2494
2536
|
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
2495
2537
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
2496
2538
|
function timeSource(args) {
|
|
@@ -2517,7 +2559,7 @@ var string = (params) => {
|
|
|
2517
2559
|
};
|
|
2518
2560
|
var bigint = /^-?\d+n?$/;
|
|
2519
2561
|
var integer = /^-?\d+$/;
|
|
2520
|
-
var number = /^-?\d+(?:\.\d+)
|
|
2562
|
+
var number = /^-?\d+(?:\.\d+)?$/;
|
|
2521
2563
|
var boolean = /^(?:true|false)$/i;
|
|
2522
2564
|
var _null = /^null$/i;
|
|
2523
2565
|
var _undefined = /^undefined$/i;
|
|
@@ -2578,7 +2620,7 @@ var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst,
|
|
|
2578
2620
|
payload.issues.push({
|
|
2579
2621
|
origin,
|
|
2580
2622
|
code: "too_big",
|
|
2581
|
-
maximum: def.value,
|
|
2623
|
+
maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
2582
2624
|
input: payload.value,
|
|
2583
2625
|
inclusive: def.inclusive,
|
|
2584
2626
|
inst,
|
|
@@ -2606,7 +2648,7 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
2606
2648
|
payload.issues.push({
|
|
2607
2649
|
origin,
|
|
2608
2650
|
code: "too_small",
|
|
2609
|
-
minimum: def.value,
|
|
2651
|
+
minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
2610
2652
|
input: payload.value,
|
|
2611
2653
|
inclusive: def.inclusive,
|
|
2612
2654
|
inst,
|
|
@@ -2673,6 +2715,7 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
2673
2715
|
note: "Integers must be within the safe integer range.",
|
|
2674
2716
|
inst,
|
|
2675
2717
|
origin,
|
|
2718
|
+
inclusive: true,
|
|
2676
2719
|
continue: !def.abort
|
|
2677
2720
|
});
|
|
2678
2721
|
} else {
|
|
@@ -2683,6 +2726,7 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
2683
2726
|
note: "Integers must be within the safe integer range.",
|
|
2684
2727
|
inst,
|
|
2685
2728
|
origin,
|
|
2729
|
+
inclusive: true,
|
|
2686
2730
|
continue: !def.abort
|
|
2687
2731
|
});
|
|
2688
2732
|
}
|
|
@@ -2706,7 +2750,9 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
2706
2750
|
input,
|
|
2707
2751
|
code: "too_big",
|
|
2708
2752
|
maximum,
|
|
2709
|
-
|
|
2753
|
+
inclusive: true,
|
|
2754
|
+
inst,
|
|
2755
|
+
continue: !def.abort
|
|
2710
2756
|
});
|
|
2711
2757
|
}
|
|
2712
2758
|
};
|
|
@@ -2739,7 +2785,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
2739
2785
|
input,
|
|
2740
2786
|
code: "too_big",
|
|
2741
2787
|
maximum,
|
|
2742
|
-
|
|
2788
|
+
inclusive: true,
|
|
2789
|
+
inst,
|
|
2790
|
+
continue: !def.abort
|
|
2743
2791
|
});
|
|
2744
2792
|
}
|
|
2745
2793
|
};
|
|
@@ -3128,8 +3176,8 @@ class Doc {
|
|
|
3128
3176
|
// node_modules/zod/v4/core/versions.js
|
|
3129
3177
|
var version = {
|
|
3130
3178
|
major: 4,
|
|
3131
|
-
minor:
|
|
3132
|
-
patch:
|
|
3179
|
+
minor: 3,
|
|
3180
|
+
patch: 5
|
|
3133
3181
|
};
|
|
3134
3182
|
|
|
3135
3183
|
// node_modules/zod/v4/core/schemas.js
|
|
@@ -3229,7 +3277,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
3229
3277
|
return runChecks(result, checks, ctx);
|
|
3230
3278
|
};
|
|
3231
3279
|
}
|
|
3232
|
-
inst
|
|
3280
|
+
defineLazy(inst, "~standard", () => ({
|
|
3233
3281
|
validate: (value) => {
|
|
3234
3282
|
try {
|
|
3235
3283
|
const r = safeParse(inst, value);
|
|
@@ -3240,7 +3288,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
3240
3288
|
},
|
|
3241
3289
|
vendor: "zod",
|
|
3242
3290
|
version: 1
|
|
3243
|
-
};
|
|
3291
|
+
}));
|
|
3244
3292
|
});
|
|
3245
3293
|
var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
3246
3294
|
$ZodType.init(inst, def);
|
|
@@ -3769,8 +3817,11 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
3769
3817
|
return payload;
|
|
3770
3818
|
};
|
|
3771
3819
|
});
|
|
3772
|
-
function handlePropertyResult(result, final, key, input) {
|
|
3820
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
3773
3821
|
if (result.issues.length) {
|
|
3822
|
+
if (isOptionalOut && !(key in input)) {
|
|
3823
|
+
return;
|
|
3824
|
+
}
|
|
3774
3825
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
3775
3826
|
}
|
|
3776
3827
|
if (result.value === undefined) {
|
|
@@ -3802,6 +3853,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3802
3853
|
const keySet = def.keySet;
|
|
3803
3854
|
const _catchall = def.catchall._zod;
|
|
3804
3855
|
const t = _catchall.def.type;
|
|
3856
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
3805
3857
|
for (const key in input) {
|
|
3806
3858
|
if (keySet.has(key))
|
|
3807
3859
|
continue;
|
|
@@ -3811,9 +3863,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3811
3863
|
}
|
|
3812
3864
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
3813
3865
|
if (r instanceof Promise) {
|
|
3814
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
|
3866
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3815
3867
|
} else {
|
|
3816
|
-
handlePropertyResult(r, payload, key, input);
|
|
3868
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3817
3869
|
}
|
|
3818
3870
|
}
|
|
3819
3871
|
if (unrecognized.length) {
|
|
@@ -3879,11 +3931,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3879
3931
|
const shape = value.shape;
|
|
3880
3932
|
for (const key of value.keys) {
|
|
3881
3933
|
const el = shape[key];
|
|
3934
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
3882
3935
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3883
3936
|
if (r instanceof Promise) {
|
|
3884
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
|
3937
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3885
3938
|
} else {
|
|
3886
|
-
handlePropertyResult(r, payload, key, input);
|
|
3939
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3887
3940
|
}
|
|
3888
3941
|
}
|
|
3889
3942
|
if (!catchall) {
|
|
@@ -3913,8 +3966,31 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3913
3966
|
for (const key of normalized.keys) {
|
|
3914
3967
|
const id = ids[key];
|
|
3915
3968
|
const k = esc(key);
|
|
3969
|
+
const schema = shape[key];
|
|
3970
|
+
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3916
3971
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3917
|
-
|
|
3972
|
+
if (isOptionalOut) {
|
|
3973
|
+
doc.write(`
|
|
3974
|
+
if (${id}.issues.length) {
|
|
3975
|
+
if (${k} in input) {
|
|
3976
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3977
|
+
...iss,
|
|
3978
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3979
|
+
})));
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
if (${id}.value === undefined) {
|
|
3984
|
+
if (${k} in input) {
|
|
3985
|
+
newResult[${k}] = undefined;
|
|
3986
|
+
}
|
|
3987
|
+
} else {
|
|
3988
|
+
newResult[${k}] = ${id}.value;
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
`);
|
|
3992
|
+
} else {
|
|
3993
|
+
doc.write(`
|
|
3918
3994
|
if (${id}.issues.length) {
|
|
3919
3995
|
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3920
3996
|
...iss,
|
|
@@ -3922,7 +3998,6 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3922
3998
|
})));
|
|
3923
3999
|
}
|
|
3924
4000
|
|
|
3925
|
-
|
|
3926
4001
|
if (${id}.value === undefined) {
|
|
3927
4002
|
if (${k} in input) {
|
|
3928
4003
|
newResult[${k}] = undefined;
|
|
@@ -3932,6 +4007,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3932
4007
|
}
|
|
3933
4008
|
|
|
3934
4009
|
`);
|
|
4010
|
+
}
|
|
3935
4011
|
}
|
|
3936
4012
|
doc.write(`payload.value = newResult;`);
|
|
3937
4013
|
doc.write(`return payload;`);
|
|
@@ -4214,11 +4290,34 @@ function mergeValues(a, b) {
|
|
|
4214
4290
|
return { valid: false, mergeErrorPath: [] };
|
|
4215
4291
|
}
|
|
4216
4292
|
function handleIntersectionResults(result, left, right) {
|
|
4217
|
-
|
|
4218
|
-
|
|
4293
|
+
const unrecKeys = new Map;
|
|
4294
|
+
let unrecIssue;
|
|
4295
|
+
for (const iss of left.issues) {
|
|
4296
|
+
if (iss.code === "unrecognized_keys") {
|
|
4297
|
+
unrecIssue ?? (unrecIssue = iss);
|
|
4298
|
+
for (const k of iss.keys) {
|
|
4299
|
+
if (!unrecKeys.has(k))
|
|
4300
|
+
unrecKeys.set(k, {});
|
|
4301
|
+
unrecKeys.get(k).l = true;
|
|
4302
|
+
}
|
|
4303
|
+
} else {
|
|
4304
|
+
result.issues.push(iss);
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
for (const iss of right.issues) {
|
|
4308
|
+
if (iss.code === "unrecognized_keys") {
|
|
4309
|
+
for (const k of iss.keys) {
|
|
4310
|
+
if (!unrecKeys.has(k))
|
|
4311
|
+
unrecKeys.set(k, {});
|
|
4312
|
+
unrecKeys.get(k).r = true;
|
|
4313
|
+
}
|
|
4314
|
+
} else {
|
|
4315
|
+
result.issues.push(iss);
|
|
4316
|
+
}
|
|
4219
4317
|
}
|
|
4220
|
-
|
|
4221
|
-
|
|
4318
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
4319
|
+
if (bothKeys.length && unrecIssue) {
|
|
4320
|
+
result.issues.push({ ...unrecIssue, keys: bothKeys });
|
|
4222
4321
|
}
|
|
4223
4322
|
if (aborted(result))
|
|
4224
4323
|
return result;
|
|
@@ -4252,7 +4351,7 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
4252
4351
|
const tooSmall = input.length < optStart - 1;
|
|
4253
4352
|
if (tooBig || tooSmall) {
|
|
4254
4353
|
payload.issues.push({
|
|
4255
|
-
...tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length },
|
|
4354
|
+
...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
|
|
4256
4355
|
input,
|
|
4257
4356
|
inst,
|
|
4258
4357
|
origin: "array"
|
|
@@ -4360,10 +4459,20 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
4360
4459
|
for (const key of Reflect.ownKeys(input)) {
|
|
4361
4460
|
if (key === "__proto__")
|
|
4362
4461
|
continue;
|
|
4363
|
-
|
|
4462
|
+
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
4364
4463
|
if (keyResult instanceof Promise) {
|
|
4365
4464
|
throw new Error("Async schemas not supported in object keys currently");
|
|
4366
4465
|
}
|
|
4466
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
|
|
4467
|
+
if (checkNumericKey) {
|
|
4468
|
+
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
4469
|
+
if (retryResult instanceof Promise) {
|
|
4470
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
4471
|
+
}
|
|
4472
|
+
if (retryResult.issues.length === 0) {
|
|
4473
|
+
keyResult = retryResult;
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4367
4476
|
if (keyResult.issues.length) {
|
|
4368
4477
|
if (def.mode === "loose") {
|
|
4369
4478
|
payload.value[key] = input[key];
|
|
@@ -4603,6 +4712,14 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
4603
4712
|
return def.innerType._zod.run(payload, ctx);
|
|
4604
4713
|
};
|
|
4605
4714
|
});
|
|
4715
|
+
var $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => {
|
|
4716
|
+
$ZodOptional.init(inst, def);
|
|
4717
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4718
|
+
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
4719
|
+
inst._zod.parse = (payload, ctx) => {
|
|
4720
|
+
return def.innerType._zod.run(payload, ctx);
|
|
4721
|
+
};
|
|
4722
|
+
});
|
|
4606
4723
|
var $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
|
|
4607
4724
|
$ZodType.init(inst, def);
|
|
4608
4725
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
@@ -4881,7 +4998,7 @@ var $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (i
|
|
|
4881
4998
|
payload.issues.push({
|
|
4882
4999
|
input: payload.value,
|
|
4883
5000
|
inst,
|
|
4884
|
-
expected: "
|
|
5001
|
+
expected: "string",
|
|
4885
5002
|
code: "invalid_type"
|
|
4886
5003
|
});
|
|
4887
5004
|
return payload;
|
|
@@ -5032,6 +5149,7 @@ __export(exports_locales, {
|
|
|
5032
5149
|
zhCN: () => zh_CN_default,
|
|
5033
5150
|
yo: () => yo_default,
|
|
5034
5151
|
vi: () => vi_default,
|
|
5152
|
+
uz: () => uz_default,
|
|
5035
5153
|
ur: () => ur_default,
|
|
5036
5154
|
uk: () => uk_default,
|
|
5037
5155
|
ua: () => ua_default,
|
|
@@ -5058,6 +5176,7 @@ __export(exports_locales, {
|
|
|
5058
5176
|
it: () => it_default,
|
|
5059
5177
|
is: () => is_default,
|
|
5060
5178
|
id: () => id_default,
|
|
5179
|
+
hy: () => hy_default,
|
|
5061
5180
|
hu: () => hu_default,
|
|
5062
5181
|
he: () => he_default,
|
|
5063
5182
|
frCA: () => fr_CA_default,
|
|
@@ -5088,27 +5207,7 @@ var error = () => {
|
|
|
5088
5207
|
function getSizing(origin) {
|
|
5089
5208
|
return Sizable[origin] ?? null;
|
|
5090
5209
|
}
|
|
5091
|
-
const
|
|
5092
|
-
const t = typeof data;
|
|
5093
|
-
switch (t) {
|
|
5094
|
-
case "number": {
|
|
5095
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
5096
|
-
}
|
|
5097
|
-
case "object": {
|
|
5098
|
-
if (Array.isArray(data)) {
|
|
5099
|
-
return "array";
|
|
5100
|
-
}
|
|
5101
|
-
if (data === null) {
|
|
5102
|
-
return "null";
|
|
5103
|
-
}
|
|
5104
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5105
|
-
return data.constructor.name;
|
|
5106
|
-
}
|
|
5107
|
-
}
|
|
5108
|
-
}
|
|
5109
|
-
return t;
|
|
5110
|
-
};
|
|
5111
|
-
const Nouns = {
|
|
5210
|
+
const FormatDictionary = {
|
|
5112
5211
|
regex: "مدخل",
|
|
5113
5212
|
email: "بريد إلكتروني",
|
|
5114
5213
|
url: "رابط",
|
|
@@ -5138,10 +5237,20 @@ var error = () => {
|
|
|
5138
5237
|
jwt: "JWT",
|
|
5139
5238
|
template_literal: "مدخل"
|
|
5140
5239
|
};
|
|
5240
|
+
const TypeDictionary = {
|
|
5241
|
+
nan: "NaN"
|
|
5242
|
+
};
|
|
5141
5243
|
return (issue2) => {
|
|
5142
5244
|
switch (issue2.code) {
|
|
5143
|
-
case "invalid_type":
|
|
5144
|
-
|
|
5245
|
+
case "invalid_type": {
|
|
5246
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5247
|
+
const receivedType = parsedType(issue2.input);
|
|
5248
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5249
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5250
|
+
return `مدخلات غير مقبولة: يفترض إدخال instanceof ${issue2.expected}، ولكن تم إدخال ${received}`;
|
|
5251
|
+
}
|
|
5252
|
+
return `مدخلات غير مقبولة: يفترض إدخال ${expected}، ولكن تم إدخال ${received}`;
|
|
5253
|
+
}
|
|
5145
5254
|
case "invalid_value":
|
|
5146
5255
|
if (issue2.values.length === 1)
|
|
5147
5256
|
return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5171,7 +5280,7 @@ var error = () => {
|
|
|
5171
5280
|
return `نَص غير مقبول: يجب أن يتضمَّن "${_issue.includes}"`;
|
|
5172
5281
|
if (_issue.format === "regex")
|
|
5173
5282
|
return `نَص غير مقبول: يجب أن يطابق النمط ${_issue.pattern}`;
|
|
5174
|
-
return `${
|
|
5283
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} غير مقبول`;
|
|
5175
5284
|
}
|
|
5176
5285
|
case "not_multiple_of":
|
|
5177
5286
|
return `رقم غير مقبول: يجب أن يكون من مضاعفات ${issue2.divisor}`;
|
|
@@ -5204,27 +5313,7 @@ var error2 = () => {
|
|
|
5204
5313
|
function getSizing(origin) {
|
|
5205
5314
|
return Sizable[origin] ?? null;
|
|
5206
5315
|
}
|
|
5207
|
-
const
|
|
5208
|
-
const t = typeof data;
|
|
5209
|
-
switch (t) {
|
|
5210
|
-
case "number": {
|
|
5211
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
5212
|
-
}
|
|
5213
|
-
case "object": {
|
|
5214
|
-
if (Array.isArray(data)) {
|
|
5215
|
-
return "array";
|
|
5216
|
-
}
|
|
5217
|
-
if (data === null) {
|
|
5218
|
-
return "null";
|
|
5219
|
-
}
|
|
5220
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5221
|
-
return data.constructor.name;
|
|
5222
|
-
}
|
|
5223
|
-
}
|
|
5224
|
-
}
|
|
5225
|
-
return t;
|
|
5226
|
-
};
|
|
5227
|
-
const Nouns = {
|
|
5316
|
+
const FormatDictionary = {
|
|
5228
5317
|
regex: "input",
|
|
5229
5318
|
email: "email address",
|
|
5230
5319
|
url: "URL",
|
|
@@ -5254,10 +5343,20 @@ var error2 = () => {
|
|
|
5254
5343
|
jwt: "JWT",
|
|
5255
5344
|
template_literal: "input"
|
|
5256
5345
|
};
|
|
5346
|
+
const TypeDictionary = {
|
|
5347
|
+
nan: "NaN"
|
|
5348
|
+
};
|
|
5257
5349
|
return (issue2) => {
|
|
5258
5350
|
switch (issue2.code) {
|
|
5259
|
-
case "invalid_type":
|
|
5260
|
-
|
|
5351
|
+
case "invalid_type": {
|
|
5352
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5353
|
+
const receivedType = parsedType(issue2.input);
|
|
5354
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5355
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5356
|
+
return `Yanlış dəyər: gözlənilən instanceof ${issue2.expected}, daxil olan ${received}`;
|
|
5357
|
+
}
|
|
5358
|
+
return `Yanlış dəyər: gözlənilən ${expected}, daxil olan ${received}`;
|
|
5359
|
+
}
|
|
5261
5360
|
case "invalid_value":
|
|
5262
5361
|
if (issue2.values.length === 1)
|
|
5263
5362
|
return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5286,7 +5385,7 @@ var error2 = () => {
|
|
|
5286
5385
|
return `Yanlış mətn: "${_issue.includes}" daxil olmalıdır`;
|
|
5287
5386
|
if (_issue.format === "regex")
|
|
5288
5387
|
return `Yanlış mətn: ${_issue.pattern} şablonuna uyğun olmalıdır`;
|
|
5289
|
-
return `Yanlış ${
|
|
5388
|
+
return `Yanlış ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5290
5389
|
}
|
|
5291
5390
|
case "not_multiple_of":
|
|
5292
5391
|
return `Yanlış ədəd: ${issue2.divisor} ilə bölünə bilən olmalıdır`;
|
|
@@ -5362,27 +5461,7 @@ var error3 = () => {
|
|
|
5362
5461
|
function getSizing(origin) {
|
|
5363
5462
|
return Sizable[origin] ?? null;
|
|
5364
5463
|
}
|
|
5365
|
-
const
|
|
5366
|
-
const t = typeof data;
|
|
5367
|
-
switch (t) {
|
|
5368
|
-
case "number": {
|
|
5369
|
-
return Number.isNaN(data) ? "NaN" : "лік";
|
|
5370
|
-
}
|
|
5371
|
-
case "object": {
|
|
5372
|
-
if (Array.isArray(data)) {
|
|
5373
|
-
return "масіў";
|
|
5374
|
-
}
|
|
5375
|
-
if (data === null) {
|
|
5376
|
-
return "null";
|
|
5377
|
-
}
|
|
5378
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5379
|
-
return data.constructor.name;
|
|
5380
|
-
}
|
|
5381
|
-
}
|
|
5382
|
-
}
|
|
5383
|
-
return t;
|
|
5384
|
-
};
|
|
5385
|
-
const Nouns = {
|
|
5464
|
+
const FormatDictionary = {
|
|
5386
5465
|
regex: "увод",
|
|
5387
5466
|
email: "email адрас",
|
|
5388
5467
|
url: "URL",
|
|
@@ -5412,10 +5491,22 @@ var error3 = () => {
|
|
|
5412
5491
|
jwt: "JWT",
|
|
5413
5492
|
template_literal: "увод"
|
|
5414
5493
|
};
|
|
5494
|
+
const TypeDictionary = {
|
|
5495
|
+
nan: "NaN",
|
|
5496
|
+
number: "лік",
|
|
5497
|
+
array: "масіў"
|
|
5498
|
+
};
|
|
5415
5499
|
return (issue2) => {
|
|
5416
5500
|
switch (issue2.code) {
|
|
5417
|
-
case "invalid_type":
|
|
5418
|
-
|
|
5501
|
+
case "invalid_type": {
|
|
5502
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5503
|
+
const receivedType = parsedType(issue2.input);
|
|
5504
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5505
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5506
|
+
return `Няправільны ўвод: чакаўся instanceof ${issue2.expected}, атрымана ${received}`;
|
|
5507
|
+
}
|
|
5508
|
+
return `Няправільны ўвод: чакаўся ${expected}, атрымана ${received}`;
|
|
5509
|
+
}
|
|
5419
5510
|
case "invalid_value":
|
|
5420
5511
|
if (issue2.values.length === 1)
|
|
5421
5512
|
return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5450,7 +5541,7 @@ var error3 = () => {
|
|
|
5450
5541
|
return `Няправільны радок: павінен змяшчаць "${_issue.includes}"`;
|
|
5451
5542
|
if (_issue.format === "regex")
|
|
5452
5543
|
return `Няправільны радок: павінен адпавядаць шаблону ${_issue.pattern}`;
|
|
5453
|
-
return `Няправільны ${
|
|
5544
|
+
return `Няправільны ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5454
5545
|
}
|
|
5455
5546
|
case "not_multiple_of":
|
|
5456
5547
|
return `Няправільны лік: павінен быць кратным ${issue2.divisor}`;
|
|
@@ -5473,26 +5564,6 @@ function be_default() {
|
|
|
5473
5564
|
};
|
|
5474
5565
|
}
|
|
5475
5566
|
// node_modules/zod/v4/locales/bg.js
|
|
5476
|
-
var parsedType = (data) => {
|
|
5477
|
-
const t = typeof data;
|
|
5478
|
-
switch (t) {
|
|
5479
|
-
case "number": {
|
|
5480
|
-
return Number.isNaN(data) ? "NaN" : "число";
|
|
5481
|
-
}
|
|
5482
|
-
case "object": {
|
|
5483
|
-
if (Array.isArray(data)) {
|
|
5484
|
-
return "масив";
|
|
5485
|
-
}
|
|
5486
|
-
if (data === null) {
|
|
5487
|
-
return "null";
|
|
5488
|
-
}
|
|
5489
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5490
|
-
return data.constructor.name;
|
|
5491
|
-
}
|
|
5492
|
-
}
|
|
5493
|
-
}
|
|
5494
|
-
return t;
|
|
5495
|
-
};
|
|
5496
5567
|
var error4 = () => {
|
|
5497
5568
|
const Sizable = {
|
|
5498
5569
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -5503,7 +5574,7 @@ var error4 = () => {
|
|
|
5503
5574
|
function getSizing(origin) {
|
|
5504
5575
|
return Sizable[origin] ?? null;
|
|
5505
5576
|
}
|
|
5506
|
-
const
|
|
5577
|
+
const FormatDictionary = {
|
|
5507
5578
|
regex: "вход",
|
|
5508
5579
|
email: "имейл адрес",
|
|
5509
5580
|
url: "URL",
|
|
@@ -5533,10 +5604,22 @@ var error4 = () => {
|
|
|
5533
5604
|
jwt: "JWT",
|
|
5534
5605
|
template_literal: "вход"
|
|
5535
5606
|
};
|
|
5607
|
+
const TypeDictionary = {
|
|
5608
|
+
nan: "NaN",
|
|
5609
|
+
number: "число",
|
|
5610
|
+
array: "масив"
|
|
5611
|
+
};
|
|
5536
5612
|
return (issue2) => {
|
|
5537
5613
|
switch (issue2.code) {
|
|
5538
|
-
case "invalid_type":
|
|
5539
|
-
|
|
5614
|
+
case "invalid_type": {
|
|
5615
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5616
|
+
const receivedType = parsedType(issue2.input);
|
|
5617
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5618
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5619
|
+
return `Невалиден вход: очакван instanceof ${issue2.expected}, получен ${received}`;
|
|
5620
|
+
}
|
|
5621
|
+
return `Невалиден вход: очакван ${expected}, получен ${received}`;
|
|
5622
|
+
}
|
|
5540
5623
|
case "invalid_value":
|
|
5541
5624
|
if (issue2.values.length === 1)
|
|
5542
5625
|
return `Невалиден вход: очакван ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5578,7 +5661,7 @@ var error4 = () => {
|
|
|
5578
5661
|
invalid_adj = "Невалидно";
|
|
5579
5662
|
if (_issue.format === "duration")
|
|
5580
5663
|
invalid_adj = "Невалидна";
|
|
5581
|
-
return `${invalid_adj} ${
|
|
5664
|
+
return `${invalid_adj} ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5582
5665
|
}
|
|
5583
5666
|
case "not_multiple_of":
|
|
5584
5667
|
return `Невалидно число: трябва да бъде кратно на ${issue2.divisor}`;
|
|
@@ -5611,27 +5694,7 @@ var error5 = () => {
|
|
|
5611
5694
|
function getSizing(origin) {
|
|
5612
5695
|
return Sizable[origin] ?? null;
|
|
5613
5696
|
}
|
|
5614
|
-
const
|
|
5615
|
-
const t = typeof data;
|
|
5616
|
-
switch (t) {
|
|
5617
|
-
case "number": {
|
|
5618
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
5619
|
-
}
|
|
5620
|
-
case "object": {
|
|
5621
|
-
if (Array.isArray(data)) {
|
|
5622
|
-
return "array";
|
|
5623
|
-
}
|
|
5624
|
-
if (data === null) {
|
|
5625
|
-
return "null";
|
|
5626
|
-
}
|
|
5627
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5628
|
-
return data.constructor.name;
|
|
5629
|
-
}
|
|
5630
|
-
}
|
|
5631
|
-
}
|
|
5632
|
-
return t;
|
|
5633
|
-
};
|
|
5634
|
-
const Nouns = {
|
|
5697
|
+
const FormatDictionary = {
|
|
5635
5698
|
regex: "entrada",
|
|
5636
5699
|
email: "adreça electrònica",
|
|
5637
5700
|
url: "URL",
|
|
@@ -5661,10 +5724,20 @@ var error5 = () => {
|
|
|
5661
5724
|
jwt: "JWT",
|
|
5662
5725
|
template_literal: "entrada"
|
|
5663
5726
|
};
|
|
5727
|
+
const TypeDictionary = {
|
|
5728
|
+
nan: "NaN"
|
|
5729
|
+
};
|
|
5664
5730
|
return (issue2) => {
|
|
5665
5731
|
switch (issue2.code) {
|
|
5666
|
-
case "invalid_type":
|
|
5667
|
-
|
|
5732
|
+
case "invalid_type": {
|
|
5733
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5734
|
+
const receivedType = parsedType(issue2.input);
|
|
5735
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5736
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5737
|
+
return `Tipus invàlid: s'esperava instanceof ${issue2.expected}, s'ha rebut ${received}`;
|
|
5738
|
+
}
|
|
5739
|
+
return `Tipus invàlid: s'esperava ${expected}, s'ha rebut ${received}`;
|
|
5740
|
+
}
|
|
5668
5741
|
case "invalid_value":
|
|
5669
5742
|
if (issue2.values.length === 1)
|
|
5670
5743
|
return `Valor invàlid: s'esperava ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5695,7 +5768,7 @@ var error5 = () => {
|
|
|
5695
5768
|
return `Format invàlid: ha d'incloure "${_issue.includes}"`;
|
|
5696
5769
|
if (_issue.format === "regex")
|
|
5697
5770
|
return `Format invàlid: ha de coincidir amb el patró ${_issue.pattern}`;
|
|
5698
|
-
return `Format invàlid per a ${
|
|
5771
|
+
return `Format invàlid per a ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5699
5772
|
}
|
|
5700
5773
|
case "not_multiple_of":
|
|
5701
5774
|
return `Número invàlid: ha de ser múltiple de ${issue2.divisor}`;
|
|
@@ -5728,45 +5801,7 @@ var error6 = () => {
|
|
|
5728
5801
|
function getSizing(origin) {
|
|
5729
5802
|
return Sizable[origin] ?? null;
|
|
5730
5803
|
}
|
|
5731
|
-
const
|
|
5732
|
-
const t = typeof data;
|
|
5733
|
-
switch (t) {
|
|
5734
|
-
case "number": {
|
|
5735
|
-
return Number.isNaN(data) ? "NaN" : "číslo";
|
|
5736
|
-
}
|
|
5737
|
-
case "string": {
|
|
5738
|
-
return "řetězec";
|
|
5739
|
-
}
|
|
5740
|
-
case "boolean": {
|
|
5741
|
-
return "boolean";
|
|
5742
|
-
}
|
|
5743
|
-
case "bigint": {
|
|
5744
|
-
return "bigint";
|
|
5745
|
-
}
|
|
5746
|
-
case "function": {
|
|
5747
|
-
return "funkce";
|
|
5748
|
-
}
|
|
5749
|
-
case "symbol": {
|
|
5750
|
-
return "symbol";
|
|
5751
|
-
}
|
|
5752
|
-
case "undefined": {
|
|
5753
|
-
return "undefined";
|
|
5754
|
-
}
|
|
5755
|
-
case "object": {
|
|
5756
|
-
if (Array.isArray(data)) {
|
|
5757
|
-
return "pole";
|
|
5758
|
-
}
|
|
5759
|
-
if (data === null) {
|
|
5760
|
-
return "null";
|
|
5761
|
-
}
|
|
5762
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5763
|
-
return data.constructor.name;
|
|
5764
|
-
}
|
|
5765
|
-
}
|
|
5766
|
-
}
|
|
5767
|
-
return t;
|
|
5768
|
-
};
|
|
5769
|
-
const Nouns = {
|
|
5804
|
+
const FormatDictionary = {
|
|
5770
5805
|
regex: "regulární výraz",
|
|
5771
5806
|
email: "e-mailová adresa",
|
|
5772
5807
|
url: "URL",
|
|
@@ -5796,10 +5831,24 @@ var error6 = () => {
|
|
|
5796
5831
|
jwt: "JWT",
|
|
5797
5832
|
template_literal: "vstup"
|
|
5798
5833
|
};
|
|
5834
|
+
const TypeDictionary = {
|
|
5835
|
+
nan: "NaN",
|
|
5836
|
+
number: "číslo",
|
|
5837
|
+
string: "řetězec",
|
|
5838
|
+
function: "funkce",
|
|
5839
|
+
array: "pole"
|
|
5840
|
+
};
|
|
5799
5841
|
return (issue2) => {
|
|
5800
5842
|
switch (issue2.code) {
|
|
5801
|
-
case "invalid_type":
|
|
5802
|
-
|
|
5843
|
+
case "invalid_type": {
|
|
5844
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5845
|
+
const receivedType = parsedType(issue2.input);
|
|
5846
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5847
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5848
|
+
return `Neplatný vstup: očekáváno instanceof ${issue2.expected}, obdrženo ${received}`;
|
|
5849
|
+
}
|
|
5850
|
+
return `Neplatný vstup: očekáváno ${expected}, obdrženo ${received}`;
|
|
5851
|
+
}
|
|
5803
5852
|
case "invalid_value":
|
|
5804
5853
|
if (issue2.values.length === 1)
|
|
5805
5854
|
return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5830,7 +5879,7 @@ var error6 = () => {
|
|
|
5830
5879
|
return `Neplatný řetězec: musí obsahovat "${_issue.includes}"`;
|
|
5831
5880
|
if (_issue.format === "regex")
|
|
5832
5881
|
return `Neplatný řetězec: musí odpovídat vzoru ${_issue.pattern}`;
|
|
5833
|
-
return `Neplatný formát ${
|
|
5882
|
+
return `Neplatný formát ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5834
5883
|
}
|
|
5835
5884
|
case "not_multiple_of":
|
|
5836
5885
|
return `Neplatné číslo: musí být násobkem ${issue2.divisor}`;
|
|
@@ -5860,43 +5909,10 @@ var error7 = () => {
|
|
|
5860
5909
|
array: { unit: "elementer", verb: "indeholdt" },
|
|
5861
5910
|
set: { unit: "elementer", verb: "indeholdt" }
|
|
5862
5911
|
};
|
|
5863
|
-
const TypeNames = {
|
|
5864
|
-
string: "streng",
|
|
5865
|
-
number: "tal",
|
|
5866
|
-
boolean: "boolean",
|
|
5867
|
-
array: "liste",
|
|
5868
|
-
object: "objekt",
|
|
5869
|
-
set: "sæt",
|
|
5870
|
-
file: "fil"
|
|
5871
|
-
};
|
|
5872
5912
|
function getSizing(origin) {
|
|
5873
5913
|
return Sizable[origin] ?? null;
|
|
5874
5914
|
}
|
|
5875
|
-
|
|
5876
|
-
return TypeNames[type] ?? type;
|
|
5877
|
-
}
|
|
5878
|
-
const parsedType2 = (data) => {
|
|
5879
|
-
const t = typeof data;
|
|
5880
|
-
switch (t) {
|
|
5881
|
-
case "number": {
|
|
5882
|
-
return Number.isNaN(data) ? "NaN" : "tal";
|
|
5883
|
-
}
|
|
5884
|
-
case "object": {
|
|
5885
|
-
if (Array.isArray(data)) {
|
|
5886
|
-
return "liste";
|
|
5887
|
-
}
|
|
5888
|
-
if (data === null) {
|
|
5889
|
-
return "null";
|
|
5890
|
-
}
|
|
5891
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5892
|
-
return data.constructor.name;
|
|
5893
|
-
}
|
|
5894
|
-
return "objekt";
|
|
5895
|
-
}
|
|
5896
|
-
}
|
|
5897
|
-
return t;
|
|
5898
|
-
};
|
|
5899
|
-
const Nouns = {
|
|
5915
|
+
const FormatDictionary = {
|
|
5900
5916
|
regex: "input",
|
|
5901
5917
|
email: "e-mailadresse",
|
|
5902
5918
|
url: "URL",
|
|
@@ -5926,10 +5942,27 @@ var error7 = () => {
|
|
|
5926
5942
|
jwt: "JWT",
|
|
5927
5943
|
template_literal: "input"
|
|
5928
5944
|
};
|
|
5945
|
+
const TypeDictionary = {
|
|
5946
|
+
nan: "NaN",
|
|
5947
|
+
string: "streng",
|
|
5948
|
+
number: "tal",
|
|
5949
|
+
boolean: "boolean",
|
|
5950
|
+
array: "liste",
|
|
5951
|
+
object: "objekt",
|
|
5952
|
+
set: "sæt",
|
|
5953
|
+
file: "fil"
|
|
5954
|
+
};
|
|
5929
5955
|
return (issue2) => {
|
|
5930
5956
|
switch (issue2.code) {
|
|
5931
|
-
case "invalid_type":
|
|
5932
|
-
|
|
5957
|
+
case "invalid_type": {
|
|
5958
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5959
|
+
const receivedType = parsedType(issue2.input);
|
|
5960
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5961
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
5962
|
+
return `Ugyldigt input: forventede instanceof ${issue2.expected}, fik ${received}`;
|
|
5963
|
+
}
|
|
5964
|
+
return `Ugyldigt input: forventede ${expected}, fik ${received}`;
|
|
5965
|
+
}
|
|
5933
5966
|
case "invalid_value":
|
|
5934
5967
|
if (issue2.values.length === 1)
|
|
5935
5968
|
return `Ugyldig værdi: forventede ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5937,7 +5970,7 @@ var error7 = () => {
|
|
|
5937
5970
|
case "too_big": {
|
|
5938
5971
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5939
5972
|
const sizing = getSizing(issue2.origin);
|
|
5940
|
-
const origin =
|
|
5973
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
5941
5974
|
if (sizing)
|
|
5942
5975
|
return `For stor: forventede ${origin ?? "value"} ${sizing.verb} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`;
|
|
5943
5976
|
return `For stor: forventede ${origin ?? "value"} havde ${adj} ${issue2.maximum.toString()}`;
|
|
@@ -5945,7 +5978,7 @@ var error7 = () => {
|
|
|
5945
5978
|
case "too_small": {
|
|
5946
5979
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5947
5980
|
const sizing = getSizing(issue2.origin);
|
|
5948
|
-
const origin =
|
|
5981
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
5949
5982
|
if (sizing) {
|
|
5950
5983
|
return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5951
5984
|
}
|
|
@@ -5961,7 +5994,7 @@ var error7 = () => {
|
|
|
5961
5994
|
return `Ugyldig streng: skal indeholde "${_issue.includes}"`;
|
|
5962
5995
|
if (_issue.format === "regex")
|
|
5963
5996
|
return `Ugyldig streng: skal matche mønsteret ${_issue.pattern}`;
|
|
5964
|
-
return `Ugyldig ${
|
|
5997
|
+
return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5965
5998
|
}
|
|
5966
5999
|
case "not_multiple_of":
|
|
5967
6000
|
return `Ugyldigt tal: skal være deleligt med ${issue2.divisor}`;
|
|
@@ -5994,27 +6027,7 @@ var error8 = () => {
|
|
|
5994
6027
|
function getSizing(origin) {
|
|
5995
6028
|
return Sizable[origin] ?? null;
|
|
5996
6029
|
}
|
|
5997
|
-
const
|
|
5998
|
-
const t = typeof data;
|
|
5999
|
-
switch (t) {
|
|
6000
|
-
case "number": {
|
|
6001
|
-
return Number.isNaN(data) ? "NaN" : "Zahl";
|
|
6002
|
-
}
|
|
6003
|
-
case "object": {
|
|
6004
|
-
if (Array.isArray(data)) {
|
|
6005
|
-
return "Array";
|
|
6006
|
-
}
|
|
6007
|
-
if (data === null) {
|
|
6008
|
-
return "null";
|
|
6009
|
-
}
|
|
6010
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6011
|
-
return data.constructor.name;
|
|
6012
|
-
}
|
|
6013
|
-
}
|
|
6014
|
-
}
|
|
6015
|
-
return t;
|
|
6016
|
-
};
|
|
6017
|
-
const Nouns = {
|
|
6030
|
+
const FormatDictionary = {
|
|
6018
6031
|
regex: "Eingabe",
|
|
6019
6032
|
email: "E-Mail-Adresse",
|
|
6020
6033
|
url: "URL",
|
|
@@ -6044,10 +6057,22 @@ var error8 = () => {
|
|
|
6044
6057
|
jwt: "JWT",
|
|
6045
6058
|
template_literal: "Eingabe"
|
|
6046
6059
|
};
|
|
6060
|
+
const TypeDictionary = {
|
|
6061
|
+
nan: "NaN",
|
|
6062
|
+
number: "Zahl",
|
|
6063
|
+
array: "Array"
|
|
6064
|
+
};
|
|
6047
6065
|
return (issue2) => {
|
|
6048
6066
|
switch (issue2.code) {
|
|
6049
|
-
case "invalid_type":
|
|
6050
|
-
|
|
6067
|
+
case "invalid_type": {
|
|
6068
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6069
|
+
const receivedType = parsedType(issue2.input);
|
|
6070
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6071
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6072
|
+
return `Ungültige Eingabe: erwartet instanceof ${issue2.expected}, erhalten ${received}`;
|
|
6073
|
+
}
|
|
6074
|
+
return `Ungültige Eingabe: erwartet ${expected}, erhalten ${received}`;
|
|
6075
|
+
}
|
|
6051
6076
|
case "invalid_value":
|
|
6052
6077
|
if (issue2.values.length === 1)
|
|
6053
6078
|
return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -6077,7 +6102,7 @@ var error8 = () => {
|
|
|
6077
6102
|
return `Ungültiger String: muss "${_issue.includes}" enthalten`;
|
|
6078
6103
|
if (_issue.format === "regex")
|
|
6079
6104
|
return `Ungültiger String: muss dem Muster ${_issue.pattern} entsprechen`;
|
|
6080
|
-
return `Ungültig: ${
|
|
6105
|
+
return `Ungültig: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6081
6106
|
}
|
|
6082
6107
|
case "not_multiple_of":
|
|
6083
6108
|
return `Ungültige Zahl: muss ein Vielfaches von ${issue2.divisor} sein`;
|
|
@@ -6100,37 +6125,18 @@ function de_default() {
|
|
|
6100
6125
|
};
|
|
6101
6126
|
}
|
|
6102
6127
|
// node_modules/zod/v4/locales/en.js
|
|
6103
|
-
var parsedType2 = (data) => {
|
|
6104
|
-
const t = typeof data;
|
|
6105
|
-
switch (t) {
|
|
6106
|
-
case "number": {
|
|
6107
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
6108
|
-
}
|
|
6109
|
-
case "object": {
|
|
6110
|
-
if (Array.isArray(data)) {
|
|
6111
|
-
return "array";
|
|
6112
|
-
}
|
|
6113
|
-
if (data === null) {
|
|
6114
|
-
return "null";
|
|
6115
|
-
}
|
|
6116
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6117
|
-
return data.constructor.name;
|
|
6118
|
-
}
|
|
6119
|
-
}
|
|
6120
|
-
}
|
|
6121
|
-
return t;
|
|
6122
|
-
};
|
|
6123
6128
|
var error9 = () => {
|
|
6124
6129
|
const Sizable = {
|
|
6125
6130
|
string: { unit: "characters", verb: "to have" },
|
|
6126
6131
|
file: { unit: "bytes", verb: "to have" },
|
|
6127
6132
|
array: { unit: "items", verb: "to have" },
|
|
6128
|
-
set: { unit: "items", verb: "to have" }
|
|
6133
|
+
set: { unit: "items", verb: "to have" },
|
|
6134
|
+
map: { unit: "entries", verb: "to have" }
|
|
6129
6135
|
};
|
|
6130
6136
|
function getSizing(origin) {
|
|
6131
6137
|
return Sizable[origin] ?? null;
|
|
6132
6138
|
}
|
|
6133
|
-
const
|
|
6139
|
+
const FormatDictionary = {
|
|
6134
6140
|
regex: "input",
|
|
6135
6141
|
email: "email address",
|
|
6136
6142
|
url: "URL",
|
|
@@ -6161,10 +6167,17 @@ var error9 = () => {
|
|
|
6161
6167
|
jwt: "JWT",
|
|
6162
6168
|
template_literal: "input"
|
|
6163
6169
|
};
|
|
6170
|
+
const TypeDictionary = {
|
|
6171
|
+
nan: "NaN"
|
|
6172
|
+
};
|
|
6164
6173
|
return (issue2) => {
|
|
6165
6174
|
switch (issue2.code) {
|
|
6166
|
-
case "invalid_type":
|
|
6167
|
-
|
|
6175
|
+
case "invalid_type": {
|
|
6176
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6177
|
+
const receivedType = parsedType(issue2.input);
|
|
6178
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6179
|
+
return `Invalid input: expected ${expected}, received ${received}`;
|
|
6180
|
+
}
|
|
6168
6181
|
case "invalid_value":
|
|
6169
6182
|
if (issue2.values.length === 1)
|
|
6170
6183
|
return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -6195,7 +6208,7 @@ var error9 = () => {
|
|
|
6195
6208
|
return `Invalid string: must include "${_issue.includes}"`;
|
|
6196
6209
|
if (_issue.format === "regex")
|
|
6197
6210
|
return `Invalid string: must match pattern ${_issue.pattern}`;
|
|
6198
|
-
return `Invalid ${
|
|
6211
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6199
6212
|
}
|
|
6200
6213
|
case "not_multiple_of":
|
|
6201
6214
|
return `Invalid number: must be a multiple of ${issue2.divisor}`;
|
|
@@ -6218,26 +6231,6 @@ function en_default() {
|
|
|
6218
6231
|
};
|
|
6219
6232
|
}
|
|
6220
6233
|
// node_modules/zod/v4/locales/eo.js
|
|
6221
|
-
var parsedType3 = (data) => {
|
|
6222
|
-
const t = typeof data;
|
|
6223
|
-
switch (t) {
|
|
6224
|
-
case "number": {
|
|
6225
|
-
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
6226
|
-
}
|
|
6227
|
-
case "object": {
|
|
6228
|
-
if (Array.isArray(data)) {
|
|
6229
|
-
return "tabelo";
|
|
6230
|
-
}
|
|
6231
|
-
if (data === null) {
|
|
6232
|
-
return "senvalora";
|
|
6233
|
-
}
|
|
6234
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6235
|
-
return data.constructor.name;
|
|
6236
|
-
}
|
|
6237
|
-
}
|
|
6238
|
-
}
|
|
6239
|
-
return t;
|
|
6240
|
-
};
|
|
6241
6234
|
var error10 = () => {
|
|
6242
6235
|
const Sizable = {
|
|
6243
6236
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -6248,7 +6241,7 @@ var error10 = () => {
|
|
|
6248
6241
|
function getSizing(origin) {
|
|
6249
6242
|
return Sizable[origin] ?? null;
|
|
6250
6243
|
}
|
|
6251
|
-
const
|
|
6244
|
+
const FormatDictionary = {
|
|
6252
6245
|
regex: "enigo",
|
|
6253
6246
|
email: "retadreso",
|
|
6254
6247
|
url: "URL",
|
|
@@ -6278,10 +6271,23 @@ var error10 = () => {
|
|
|
6278
6271
|
jwt: "JWT",
|
|
6279
6272
|
template_literal: "enigo"
|
|
6280
6273
|
};
|
|
6274
|
+
const TypeDictionary = {
|
|
6275
|
+
nan: "NaN",
|
|
6276
|
+
number: "nombro",
|
|
6277
|
+
array: "tabelo",
|
|
6278
|
+
null: "senvalora"
|
|
6279
|
+
};
|
|
6281
6280
|
return (issue2) => {
|
|
6282
6281
|
switch (issue2.code) {
|
|
6283
|
-
case "invalid_type":
|
|
6284
|
-
|
|
6282
|
+
case "invalid_type": {
|
|
6283
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6284
|
+
const receivedType = parsedType(issue2.input);
|
|
6285
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6286
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6287
|
+
return `Nevalida enigo: atendiĝis instanceof ${issue2.expected}, riceviĝis ${received}`;
|
|
6288
|
+
}
|
|
6289
|
+
return `Nevalida enigo: atendiĝis ${expected}, riceviĝis ${received}`;
|
|
6290
|
+
}
|
|
6285
6291
|
case "invalid_value":
|
|
6286
6292
|
if (issue2.values.length === 1)
|
|
6287
6293
|
return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -6311,7 +6317,7 @@ var error10 = () => {
|
|
|
6311
6317
|
return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
6312
6318
|
if (_issue.format === "regex")
|
|
6313
6319
|
return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
6314
|
-
return `Nevalida ${
|
|
6320
|
+
return `Nevalida ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6315
6321
|
}
|
|
6316
6322
|
case "not_multiple_of":
|
|
6317
6323
|
return `Nevalida nombro: devas esti oblo de ${issue2.divisor}`;
|
|
@@ -6341,60 +6347,10 @@ var error11 = () => {
|
|
|
6341
6347
|
array: { unit: "elementos", verb: "tener" },
|
|
6342
6348
|
set: { unit: "elementos", verb: "tener" }
|
|
6343
6349
|
};
|
|
6344
|
-
const TypeNames = {
|
|
6345
|
-
string: "texto",
|
|
6346
|
-
number: "número",
|
|
6347
|
-
boolean: "booleano",
|
|
6348
|
-
array: "arreglo",
|
|
6349
|
-
object: "objeto",
|
|
6350
|
-
set: "conjunto",
|
|
6351
|
-
file: "archivo",
|
|
6352
|
-
date: "fecha",
|
|
6353
|
-
bigint: "número grande",
|
|
6354
|
-
symbol: "símbolo",
|
|
6355
|
-
undefined: "indefinido",
|
|
6356
|
-
null: "nulo",
|
|
6357
|
-
function: "función",
|
|
6358
|
-
map: "mapa",
|
|
6359
|
-
record: "registro",
|
|
6360
|
-
tuple: "tupla",
|
|
6361
|
-
enum: "enumeración",
|
|
6362
|
-
union: "unión",
|
|
6363
|
-
literal: "literal",
|
|
6364
|
-
promise: "promesa",
|
|
6365
|
-
void: "vacío",
|
|
6366
|
-
never: "nunca",
|
|
6367
|
-
unknown: "desconocido",
|
|
6368
|
-
any: "cualquiera"
|
|
6369
|
-
};
|
|
6370
6350
|
function getSizing(origin) {
|
|
6371
6351
|
return Sizable[origin] ?? null;
|
|
6372
6352
|
}
|
|
6373
|
-
|
|
6374
|
-
return TypeNames[type] ?? type;
|
|
6375
|
-
}
|
|
6376
|
-
const parsedType4 = (data) => {
|
|
6377
|
-
const t = typeof data;
|
|
6378
|
-
switch (t) {
|
|
6379
|
-
case "number": {
|
|
6380
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
6381
|
-
}
|
|
6382
|
-
case "object": {
|
|
6383
|
-
if (Array.isArray(data)) {
|
|
6384
|
-
return "array";
|
|
6385
|
-
}
|
|
6386
|
-
if (data === null) {
|
|
6387
|
-
return "null";
|
|
6388
|
-
}
|
|
6389
|
-
if (Object.getPrototypeOf(data) !== Object.prototype) {
|
|
6390
|
-
return data.constructor.name;
|
|
6391
|
-
}
|
|
6392
|
-
return "object";
|
|
6393
|
-
}
|
|
6394
|
-
}
|
|
6395
|
-
return t;
|
|
6396
|
-
};
|
|
6397
|
-
const Nouns = {
|
|
6353
|
+
const FormatDictionary = {
|
|
6398
6354
|
regex: "entrada",
|
|
6399
6355
|
email: "dirección de correo electrónico",
|
|
6400
6356
|
url: "URL",
|
|
@@ -6424,10 +6380,44 @@ var error11 = () => {
|
|
|
6424
6380
|
jwt: "JWT",
|
|
6425
6381
|
template_literal: "entrada"
|
|
6426
6382
|
};
|
|
6383
|
+
const TypeDictionary = {
|
|
6384
|
+
nan: "NaN",
|
|
6385
|
+
string: "texto",
|
|
6386
|
+
number: "número",
|
|
6387
|
+
boolean: "booleano",
|
|
6388
|
+
array: "arreglo",
|
|
6389
|
+
object: "objeto",
|
|
6390
|
+
set: "conjunto",
|
|
6391
|
+
file: "archivo",
|
|
6392
|
+
date: "fecha",
|
|
6393
|
+
bigint: "número grande",
|
|
6394
|
+
symbol: "símbolo",
|
|
6395
|
+
undefined: "indefinido",
|
|
6396
|
+
null: "nulo",
|
|
6397
|
+
function: "función",
|
|
6398
|
+
map: "mapa",
|
|
6399
|
+
record: "registro",
|
|
6400
|
+
tuple: "tupla",
|
|
6401
|
+
enum: "enumeración",
|
|
6402
|
+
union: "unión",
|
|
6403
|
+
literal: "literal",
|
|
6404
|
+
promise: "promesa",
|
|
6405
|
+
void: "vacío",
|
|
6406
|
+
never: "nunca",
|
|
6407
|
+
unknown: "desconocido",
|
|
6408
|
+
any: "cualquiera"
|
|
6409
|
+
};
|
|
6427
6410
|
return (issue2) => {
|
|
6428
6411
|
switch (issue2.code) {
|
|
6429
|
-
case "invalid_type":
|
|
6430
|
-
|
|
6412
|
+
case "invalid_type": {
|
|
6413
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6414
|
+
const receivedType = parsedType(issue2.input);
|
|
6415
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6416
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6417
|
+
return `Entrada inválida: se esperaba instanceof ${issue2.expected}, recibido ${received}`;
|
|
6418
|
+
}
|
|
6419
|
+
return `Entrada inválida: se esperaba ${expected}, recibido ${received}`;
|
|
6420
|
+
}
|
|
6431
6421
|
case "invalid_value":
|
|
6432
6422
|
if (issue2.values.length === 1)
|
|
6433
6423
|
return `Entrada inválida: se esperaba ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -6435,7 +6425,7 @@ var error11 = () => {
|
|
|
6435
6425
|
case "too_big": {
|
|
6436
6426
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6437
6427
|
const sizing = getSizing(issue2.origin);
|
|
6438
|
-
const origin =
|
|
6428
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6439
6429
|
if (sizing)
|
|
6440
6430
|
return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
|
|
6441
6431
|
return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;
|
|
@@ -6443,7 +6433,7 @@ var error11 = () => {
|
|
|
6443
6433
|
case "too_small": {
|
|
6444
6434
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6445
6435
|
const sizing = getSizing(issue2.origin);
|
|
6446
|
-
const origin =
|
|
6436
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6447
6437
|
if (sizing) {
|
|
6448
6438
|
return `Demasiado pequeño: se esperaba que ${origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6449
6439
|
}
|
|
@@ -6459,18 +6449,18 @@ var error11 = () => {
|
|
|
6459
6449
|
return `Cadena inválida: debe incluir "${_issue.includes}"`;
|
|
6460
6450
|
if (_issue.format === "regex")
|
|
6461
6451
|
return `Cadena inválida: debe coincidir con el patrón ${_issue.pattern}`;
|
|
6462
|
-
return `Inválido ${
|
|
6452
|
+
return `Inválido ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6463
6453
|
}
|
|
6464
6454
|
case "not_multiple_of":
|
|
6465
6455
|
return `Número inválido: debe ser múltiplo de ${issue2.divisor}`;
|
|
6466
6456
|
case "unrecognized_keys":
|
|
6467
6457
|
return `Llave${issue2.keys.length > 1 ? "s" : ""} desconocida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
6468
6458
|
case "invalid_key":
|
|
6469
|
-
return `Llave inválida en ${
|
|
6459
|
+
return `Llave inválida en ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6470
6460
|
case "invalid_union":
|
|
6471
6461
|
return "Entrada inválida";
|
|
6472
6462
|
case "invalid_element":
|
|
6473
|
-
return `Valor inválido en ${
|
|
6463
|
+
return `Valor inválido en ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6474
6464
|
default:
|
|
6475
6465
|
return `Entrada inválida`;
|
|
6476
6466
|
}
|
|
@@ -6492,27 +6482,7 @@ var error12 = () => {
|
|
|
6492
6482
|
function getSizing(origin) {
|
|
6493
6483
|
return Sizable[origin] ?? null;
|
|
6494
6484
|
}
|
|
6495
|
-
const
|
|
6496
|
-
const t = typeof data;
|
|
6497
|
-
switch (t) {
|
|
6498
|
-
case "number": {
|
|
6499
|
-
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6500
|
-
}
|
|
6501
|
-
case "object": {
|
|
6502
|
-
if (Array.isArray(data)) {
|
|
6503
|
-
return "آرایه";
|
|
6504
|
-
}
|
|
6505
|
-
if (data === null) {
|
|
6506
|
-
return "null";
|
|
6507
|
-
}
|
|
6508
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6509
|
-
return data.constructor.name;
|
|
6510
|
-
}
|
|
6511
|
-
}
|
|
6512
|
-
}
|
|
6513
|
-
return t;
|
|
6514
|
-
};
|
|
6515
|
-
const Nouns = {
|
|
6485
|
+
const FormatDictionary = {
|
|
6516
6486
|
regex: "ورودی",
|
|
6517
6487
|
email: "آدرس ایمیل",
|
|
6518
6488
|
url: "URL",
|
|
@@ -6542,10 +6512,22 @@ var error12 = () => {
|
|
|
6542
6512
|
jwt: "JWT",
|
|
6543
6513
|
template_literal: "ورودی"
|
|
6544
6514
|
};
|
|
6515
|
+
const TypeDictionary = {
|
|
6516
|
+
nan: "NaN",
|
|
6517
|
+
number: "عدد",
|
|
6518
|
+
array: "آرایه"
|
|
6519
|
+
};
|
|
6545
6520
|
return (issue2) => {
|
|
6546
6521
|
switch (issue2.code) {
|
|
6547
|
-
case "invalid_type":
|
|
6548
|
-
|
|
6522
|
+
case "invalid_type": {
|
|
6523
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6524
|
+
const receivedType = parsedType(issue2.input);
|
|
6525
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6526
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6527
|
+
return `ورودی نامعتبر: میبایست instanceof ${issue2.expected} میبود، ${received} دریافت شد`;
|
|
6528
|
+
}
|
|
6529
|
+
return `ورودی نامعتبر: میبایست ${expected} میبود، ${received} دریافت شد`;
|
|
6530
|
+
}
|
|
6549
6531
|
case "invalid_value":
|
|
6550
6532
|
if (issue2.values.length === 1) {
|
|
6551
6533
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue2.values[0])} میبود`;
|
|
@@ -6581,7 +6563,7 @@ var error12 = () => {
|
|
|
6581
6563
|
if (_issue.format === "regex") {
|
|
6582
6564
|
return `رشته نامعتبر: باید با الگوی ${_issue.pattern} مطابقت داشته باشد`;
|
|
6583
6565
|
}
|
|
6584
|
-
return `${
|
|
6566
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} نامعتبر`;
|
|
6585
6567
|
}
|
|
6586
6568
|
case "not_multiple_of":
|
|
6587
6569
|
return `عدد نامعتبر: باید مضرب ${issue2.divisor} باشد`;
|
|
@@ -6618,27 +6600,7 @@ var error13 = () => {
|
|
|
6618
6600
|
function getSizing(origin) {
|
|
6619
6601
|
return Sizable[origin] ?? null;
|
|
6620
6602
|
}
|
|
6621
|
-
const
|
|
6622
|
-
const t = typeof data;
|
|
6623
|
-
switch (t) {
|
|
6624
|
-
case "number": {
|
|
6625
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
6626
|
-
}
|
|
6627
|
-
case "object": {
|
|
6628
|
-
if (Array.isArray(data)) {
|
|
6629
|
-
return "array";
|
|
6630
|
-
}
|
|
6631
|
-
if (data === null) {
|
|
6632
|
-
return "null";
|
|
6633
|
-
}
|
|
6634
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6635
|
-
return data.constructor.name;
|
|
6636
|
-
}
|
|
6637
|
-
}
|
|
6638
|
-
}
|
|
6639
|
-
return t;
|
|
6640
|
-
};
|
|
6641
|
-
const Nouns = {
|
|
6603
|
+
const FormatDictionary = {
|
|
6642
6604
|
regex: "säännöllinen lauseke",
|
|
6643
6605
|
email: "sähköpostiosoite",
|
|
6644
6606
|
url: "URL-osoite",
|
|
@@ -6668,10 +6630,20 @@ var error13 = () => {
|
|
|
6668
6630
|
jwt: "JWT",
|
|
6669
6631
|
template_literal: "templaattimerkkijono"
|
|
6670
6632
|
};
|
|
6633
|
+
const TypeDictionary = {
|
|
6634
|
+
nan: "NaN"
|
|
6635
|
+
};
|
|
6671
6636
|
return (issue2) => {
|
|
6672
6637
|
switch (issue2.code) {
|
|
6673
|
-
case "invalid_type":
|
|
6674
|
-
|
|
6638
|
+
case "invalid_type": {
|
|
6639
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6640
|
+
const receivedType = parsedType(issue2.input);
|
|
6641
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6642
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6643
|
+
return `Virheellinen tyyppi: odotettiin instanceof ${issue2.expected}, oli ${received}`;
|
|
6644
|
+
}
|
|
6645
|
+
return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`;
|
|
6646
|
+
}
|
|
6675
6647
|
case "invalid_value":
|
|
6676
6648
|
if (issue2.values.length === 1)
|
|
6677
6649
|
return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -6703,7 +6675,7 @@ var error13 = () => {
|
|
|
6703
6675
|
if (_issue.format === "regex") {
|
|
6704
6676
|
return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`;
|
|
6705
6677
|
}
|
|
6706
|
-
return `Virheellinen ${
|
|
6678
|
+
return `Virheellinen ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6707
6679
|
}
|
|
6708
6680
|
case "not_multiple_of":
|
|
6709
6681
|
return `Virheellinen luku: täytyy olla luvun ${issue2.divisor} monikerta`;
|
|
@@ -6736,27 +6708,7 @@ var error14 = () => {
|
|
|
6736
6708
|
function getSizing(origin) {
|
|
6737
6709
|
return Sizable[origin] ?? null;
|
|
6738
6710
|
}
|
|
6739
|
-
const
|
|
6740
|
-
const t = typeof data;
|
|
6741
|
-
switch (t) {
|
|
6742
|
-
case "number": {
|
|
6743
|
-
return Number.isNaN(data) ? "NaN" : "nombre";
|
|
6744
|
-
}
|
|
6745
|
-
case "object": {
|
|
6746
|
-
if (Array.isArray(data)) {
|
|
6747
|
-
return "tableau";
|
|
6748
|
-
}
|
|
6749
|
-
if (data === null) {
|
|
6750
|
-
return "null";
|
|
6751
|
-
}
|
|
6752
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6753
|
-
return data.constructor.name;
|
|
6754
|
-
}
|
|
6755
|
-
}
|
|
6756
|
-
}
|
|
6757
|
-
return t;
|
|
6758
|
-
};
|
|
6759
|
-
const Nouns = {
|
|
6711
|
+
const FormatDictionary = {
|
|
6760
6712
|
regex: "entrée",
|
|
6761
6713
|
email: "adresse e-mail",
|
|
6762
6714
|
url: "URL",
|
|
@@ -6786,10 +6738,22 @@ var error14 = () => {
|
|
|
6786
6738
|
jwt: "JWT",
|
|
6787
6739
|
template_literal: "entrée"
|
|
6788
6740
|
};
|
|
6741
|
+
const TypeDictionary = {
|
|
6742
|
+
nan: "NaN",
|
|
6743
|
+
number: "nombre",
|
|
6744
|
+
array: "tableau"
|
|
6745
|
+
};
|
|
6789
6746
|
return (issue2) => {
|
|
6790
6747
|
switch (issue2.code) {
|
|
6791
|
-
case "invalid_type":
|
|
6792
|
-
|
|
6748
|
+
case "invalid_type": {
|
|
6749
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6750
|
+
const receivedType = parsedType(issue2.input);
|
|
6751
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6752
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6753
|
+
return `Entrée invalide : instanceof ${issue2.expected} attendu, ${received} reçu`;
|
|
6754
|
+
}
|
|
6755
|
+
return `Entrée invalide : ${expected} attendu, ${received} reçu`;
|
|
6756
|
+
}
|
|
6793
6757
|
case "invalid_value":
|
|
6794
6758
|
if (issue2.values.length === 1)
|
|
6795
6759
|
return `Entrée invalide : ${stringifyPrimitive(issue2.values[0])} attendu`;
|
|
@@ -6819,7 +6783,7 @@ var error14 = () => {
|
|
|
6819
6783
|
return `Chaîne invalide : doit inclure "${_issue.includes}"`;
|
|
6820
6784
|
if (_issue.format === "regex")
|
|
6821
6785
|
return `Chaîne invalide : doit correspondre au modèle ${_issue.pattern}`;
|
|
6822
|
-
return `${
|
|
6786
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} invalide`;
|
|
6823
6787
|
}
|
|
6824
6788
|
case "not_multiple_of":
|
|
6825
6789
|
return `Nombre invalide : doit être un multiple de ${issue2.divisor}`;
|
|
@@ -6852,27 +6816,7 @@ var error15 = () => {
|
|
|
6852
6816
|
function getSizing(origin) {
|
|
6853
6817
|
return Sizable[origin] ?? null;
|
|
6854
6818
|
}
|
|
6855
|
-
const
|
|
6856
|
-
const t = typeof data;
|
|
6857
|
-
switch (t) {
|
|
6858
|
-
case "number": {
|
|
6859
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
6860
|
-
}
|
|
6861
|
-
case "object": {
|
|
6862
|
-
if (Array.isArray(data)) {
|
|
6863
|
-
return "array";
|
|
6864
|
-
}
|
|
6865
|
-
if (data === null) {
|
|
6866
|
-
return "null";
|
|
6867
|
-
}
|
|
6868
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6869
|
-
return data.constructor.name;
|
|
6870
|
-
}
|
|
6871
|
-
}
|
|
6872
|
-
}
|
|
6873
|
-
return t;
|
|
6874
|
-
};
|
|
6875
|
-
const Nouns = {
|
|
6819
|
+
const FormatDictionary = {
|
|
6876
6820
|
regex: "entrée",
|
|
6877
6821
|
email: "adresse courriel",
|
|
6878
6822
|
url: "URL",
|
|
@@ -6902,10 +6846,20 @@ var error15 = () => {
|
|
|
6902
6846
|
jwt: "JWT",
|
|
6903
6847
|
template_literal: "entrée"
|
|
6904
6848
|
};
|
|
6849
|
+
const TypeDictionary = {
|
|
6850
|
+
nan: "NaN"
|
|
6851
|
+
};
|
|
6905
6852
|
return (issue2) => {
|
|
6906
6853
|
switch (issue2.code) {
|
|
6907
|
-
case "invalid_type":
|
|
6908
|
-
|
|
6854
|
+
case "invalid_type": {
|
|
6855
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6856
|
+
const receivedType = parsedType(issue2.input);
|
|
6857
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6858
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6859
|
+
return `Entrée invalide : attendu instanceof ${issue2.expected}, reçu ${received}`;
|
|
6860
|
+
}
|
|
6861
|
+
return `Entrée invalide : attendu ${expected}, reçu ${received}`;
|
|
6862
|
+
}
|
|
6909
6863
|
case "invalid_value":
|
|
6910
6864
|
if (issue2.values.length === 1)
|
|
6911
6865
|
return `Entrée invalide : attendu ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -6936,7 +6890,7 @@ var error15 = () => {
|
|
|
6936
6890
|
return `Chaîne invalide : doit inclure "${_issue.includes}"`;
|
|
6937
6891
|
if (_issue.format === "regex")
|
|
6938
6892
|
return `Chaîne invalide : doit correspondre au motif ${_issue.pattern}`;
|
|
6939
|
-
return `${
|
|
6893
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} invalide`;
|
|
6940
6894
|
}
|
|
6941
6895
|
case "not_multiple_of":
|
|
6942
6896
|
return `Nombre invalide : doit être un multiple de ${issue2.divisor}`;
|
|
@@ -7005,26 +6959,7 @@ var error16 = () => {
|
|
|
7005
6959
|
return null;
|
|
7006
6960
|
return Sizable[origin] ?? null;
|
|
7007
6961
|
};
|
|
7008
|
-
const
|
|
7009
|
-
const t = typeof data;
|
|
7010
|
-
switch (t) {
|
|
7011
|
-
case "number":
|
|
7012
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
7013
|
-
case "object": {
|
|
7014
|
-
if (Array.isArray(data))
|
|
7015
|
-
return "array";
|
|
7016
|
-
if (data === null)
|
|
7017
|
-
return "null";
|
|
7018
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7019
|
-
return data.constructor.name;
|
|
7020
|
-
}
|
|
7021
|
-
return "object";
|
|
7022
|
-
}
|
|
7023
|
-
default:
|
|
7024
|
-
return t;
|
|
7025
|
-
}
|
|
7026
|
-
};
|
|
7027
|
-
const Nouns = {
|
|
6962
|
+
const FormatDictionary = {
|
|
7028
6963
|
regex: { label: "קלט", gender: "m" },
|
|
7029
6964
|
email: { label: "כתובת אימייל", gender: "f" },
|
|
7030
6965
|
url: { label: "כתובת רשת", gender: "f" },
|
|
@@ -7056,13 +6991,19 @@ var error16 = () => {
|
|
|
7056
6991
|
starts_with: { label: "קלט", gender: "m" },
|
|
7057
6992
|
uppercase: { label: "קלט", gender: "m" }
|
|
7058
6993
|
};
|
|
6994
|
+
const TypeDictionary = {
|
|
6995
|
+
nan: "NaN"
|
|
6996
|
+
};
|
|
7059
6997
|
return (issue2) => {
|
|
7060
6998
|
switch (issue2.code) {
|
|
7061
6999
|
case "invalid_type": {
|
|
7062
7000
|
const expectedKey = issue2.expected;
|
|
7063
|
-
const expected = typeLabel(expectedKey);
|
|
7064
|
-
const
|
|
7065
|
-
const received = TypeNames[
|
|
7001
|
+
const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel(expectedKey);
|
|
7002
|
+
const receivedType = parsedType(issue2.input);
|
|
7003
|
+
const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
|
|
7004
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7005
|
+
return `קלט לא תקין: צריך להיות instanceof ${issue2.expected}, התקבל ${received}`;
|
|
7006
|
+
}
|
|
7066
7007
|
return `קלט לא תקין: צריך להיות ${expected}, התקבל ${received}`;
|
|
7067
7008
|
}
|
|
7068
7009
|
case "invalid_value": {
|
|
@@ -7135,7 +7076,7 @@ var error16 = () => {
|
|
|
7135
7076
|
return `המחרוזת חייבת לכלול "${_issue.includes}"`;
|
|
7136
7077
|
if (_issue.format === "regex")
|
|
7137
7078
|
return `המחרוזת חייבת להתאים לתבנית ${_issue.pattern}`;
|
|
7138
|
-
const nounEntry =
|
|
7079
|
+
const nounEntry = FormatDictionary[_issue.format];
|
|
7139
7080
|
const noun = nounEntry?.label ?? _issue.format;
|
|
7140
7081
|
const gender = nounEntry?.gender ?? "m";
|
|
7141
7082
|
const adjective = gender === "f" ? "תקינה" : "תקין";
|
|
@@ -7175,27 +7116,7 @@ var error17 = () => {
|
|
|
7175
7116
|
function getSizing(origin) {
|
|
7176
7117
|
return Sizable[origin] ?? null;
|
|
7177
7118
|
}
|
|
7178
|
-
const
|
|
7179
|
-
const t = typeof data;
|
|
7180
|
-
switch (t) {
|
|
7181
|
-
case "number": {
|
|
7182
|
-
return Number.isNaN(data) ? "NaN" : "szám";
|
|
7183
|
-
}
|
|
7184
|
-
case "object": {
|
|
7185
|
-
if (Array.isArray(data)) {
|
|
7186
|
-
return "tömb";
|
|
7187
|
-
}
|
|
7188
|
-
if (data === null) {
|
|
7189
|
-
return "null";
|
|
7190
|
-
}
|
|
7191
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7192
|
-
return data.constructor.name;
|
|
7193
|
-
}
|
|
7194
|
-
}
|
|
7195
|
-
}
|
|
7196
|
-
return t;
|
|
7197
|
-
};
|
|
7198
|
-
const Nouns = {
|
|
7119
|
+
const FormatDictionary = {
|
|
7199
7120
|
regex: "bemenet",
|
|
7200
7121
|
email: "email cím",
|
|
7201
7122
|
url: "URL",
|
|
@@ -7225,10 +7146,22 @@ var error17 = () => {
|
|
|
7225
7146
|
jwt: "JWT",
|
|
7226
7147
|
template_literal: "bemenet"
|
|
7227
7148
|
};
|
|
7149
|
+
const TypeDictionary = {
|
|
7150
|
+
nan: "NaN",
|
|
7151
|
+
number: "szám",
|
|
7152
|
+
array: "tömb"
|
|
7153
|
+
};
|
|
7228
7154
|
return (issue2) => {
|
|
7229
7155
|
switch (issue2.code) {
|
|
7230
|
-
case "invalid_type":
|
|
7231
|
-
|
|
7156
|
+
case "invalid_type": {
|
|
7157
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7158
|
+
const receivedType = parsedType(issue2.input);
|
|
7159
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7160
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7161
|
+
return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
|
|
7162
|
+
}
|
|
7163
|
+
return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
|
|
7164
|
+
}
|
|
7232
7165
|
case "invalid_value":
|
|
7233
7166
|
if (issue2.values.length === 1)
|
|
7234
7167
|
return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -7258,7 +7191,7 @@ var error17 = () => {
|
|
|
7258
7191
|
return `Érvénytelen string: "${_issue.includes}" értéket kell tartalmaznia`;
|
|
7259
7192
|
if (_issue.format === "regex")
|
|
7260
7193
|
return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`;
|
|
7261
|
-
return `Érvénytelen ${
|
|
7194
|
+
return `Érvénytelen ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7262
7195
|
}
|
|
7263
7196
|
case "not_multiple_of":
|
|
7264
7197
|
return `Érvénytelen szám: ${issue2.divisor} többszörösének kell lennie`;
|
|
@@ -7280,38 +7213,165 @@ function hu_default() {
|
|
|
7280
7213
|
localeError: error17()
|
|
7281
7214
|
};
|
|
7282
7215
|
}
|
|
7283
|
-
// node_modules/zod/v4/locales/
|
|
7216
|
+
// node_modules/zod/v4/locales/hy.js
|
|
7217
|
+
function getArmenianPlural(count, one, many) {
|
|
7218
|
+
return Math.abs(count) === 1 ? one : many;
|
|
7219
|
+
}
|
|
7220
|
+
function withDefiniteArticle(word) {
|
|
7221
|
+
if (!word)
|
|
7222
|
+
return "";
|
|
7223
|
+
const vowels = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"];
|
|
7224
|
+
const lastChar = word[word.length - 1];
|
|
7225
|
+
return word + (vowels.includes(lastChar) ? "ն" : "ը");
|
|
7226
|
+
}
|
|
7284
7227
|
var error18 = () => {
|
|
7285
7228
|
const Sizable = {
|
|
7286
|
-
string: {
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7229
|
+
string: {
|
|
7230
|
+
unit: {
|
|
7231
|
+
one: "նշան",
|
|
7232
|
+
many: "նշաններ"
|
|
7233
|
+
},
|
|
7234
|
+
verb: "ունենալ"
|
|
7235
|
+
},
|
|
7236
|
+
file: {
|
|
7237
|
+
unit: {
|
|
7238
|
+
one: "բայթ",
|
|
7239
|
+
many: "բայթեր"
|
|
7240
|
+
},
|
|
7241
|
+
verb: "ունենալ"
|
|
7242
|
+
},
|
|
7243
|
+
array: {
|
|
7244
|
+
unit: {
|
|
7245
|
+
one: "տարր",
|
|
7246
|
+
many: "տարրեր"
|
|
7247
|
+
},
|
|
7248
|
+
verb: "ունենալ"
|
|
7249
|
+
},
|
|
7250
|
+
set: {
|
|
7251
|
+
unit: {
|
|
7252
|
+
one: "տարր",
|
|
7253
|
+
many: "տարրեր"
|
|
7254
|
+
},
|
|
7255
|
+
verb: "ունենալ"
|
|
7256
|
+
}
|
|
7290
7257
|
};
|
|
7291
7258
|
function getSizing(origin) {
|
|
7292
7259
|
return Sizable[origin] ?? null;
|
|
7293
7260
|
}
|
|
7294
|
-
const
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7261
|
+
const FormatDictionary = {
|
|
7262
|
+
regex: "մուտք",
|
|
7263
|
+
email: "էլ. հասցե",
|
|
7264
|
+
url: "URL",
|
|
7265
|
+
emoji: "էմոջի",
|
|
7266
|
+
uuid: "UUID",
|
|
7267
|
+
uuidv4: "UUIDv4",
|
|
7268
|
+
uuidv6: "UUIDv6",
|
|
7269
|
+
nanoid: "nanoid",
|
|
7270
|
+
guid: "GUID",
|
|
7271
|
+
cuid: "cuid",
|
|
7272
|
+
cuid2: "cuid2",
|
|
7273
|
+
ulid: "ULID",
|
|
7274
|
+
xid: "XID",
|
|
7275
|
+
ksuid: "KSUID",
|
|
7276
|
+
datetime: "ISO ամսաթիվ և ժամ",
|
|
7277
|
+
date: "ISO ամսաթիվ",
|
|
7278
|
+
time: "ISO ժամ",
|
|
7279
|
+
duration: "ISO տևողություն",
|
|
7280
|
+
ipv4: "IPv4 հասցե",
|
|
7281
|
+
ipv6: "IPv6 հասցե",
|
|
7282
|
+
cidrv4: "IPv4 միջակայք",
|
|
7283
|
+
cidrv6: "IPv6 միջակայք",
|
|
7284
|
+
base64: "base64 ձևաչափով տող",
|
|
7285
|
+
base64url: "base64url ձևաչափով տող",
|
|
7286
|
+
json_string: "JSON տող",
|
|
7287
|
+
e164: "E.164 համար",
|
|
7288
|
+
jwt: "JWT",
|
|
7289
|
+
template_literal: "մուտք"
|
|
7290
|
+
};
|
|
7291
|
+
const TypeDictionary = {
|
|
7292
|
+
nan: "NaN",
|
|
7293
|
+
number: "թիվ",
|
|
7294
|
+
array: "զանգված"
|
|
7295
|
+
};
|
|
7296
|
+
return (issue2) => {
|
|
7297
|
+
switch (issue2.code) {
|
|
7298
|
+
case "invalid_type": {
|
|
7299
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7300
|
+
const receivedType = parsedType(issue2.input);
|
|
7301
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7302
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7303
|
+
return `Սխալ մուտքագրում․ սպասվում էր instanceof ${issue2.expected}, ստացվել է ${received}`;
|
|
7303
7304
|
}
|
|
7304
|
-
|
|
7305
|
-
|
|
7305
|
+
return `Սխալ մուտքագրում․ սպասվում էր ${expected}, ստացվել է ${received}`;
|
|
7306
|
+
}
|
|
7307
|
+
case "invalid_value":
|
|
7308
|
+
if (issue2.values.length === 1)
|
|
7309
|
+
return `Սխալ մուտքագրում․ սպասվում էր ${stringifyPrimitive(issue2.values[1])}`;
|
|
7310
|
+
return `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${joinValues(issue2.values, "|")}`;
|
|
7311
|
+
case "too_big": {
|
|
7312
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
7313
|
+
const sizing = getSizing(issue2.origin);
|
|
7314
|
+
if (sizing) {
|
|
7315
|
+
const maxValue = Number(issue2.maximum);
|
|
7316
|
+
const unit = getArmenianPlural(maxValue, sizing.unit.one, sizing.unit.many);
|
|
7317
|
+
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${withDefiniteArticle(issue2.origin ?? "արժեք")} կունենա ${adj}${issue2.maximum.toString()} ${unit}`;
|
|
7306
7318
|
}
|
|
7307
|
-
|
|
7308
|
-
|
|
7319
|
+
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${withDefiniteArticle(issue2.origin ?? "արժեք")} լինի ${adj}${issue2.maximum.toString()}`;
|
|
7320
|
+
}
|
|
7321
|
+
case "too_small": {
|
|
7322
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
7323
|
+
const sizing = getSizing(issue2.origin);
|
|
7324
|
+
if (sizing) {
|
|
7325
|
+
const minValue = Number(issue2.minimum);
|
|
7326
|
+
const unit = getArmenianPlural(minValue, sizing.unit.one, sizing.unit.many);
|
|
7327
|
+
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${withDefiniteArticle(issue2.origin)} կունենա ${adj}${issue2.minimum.toString()} ${unit}`;
|
|
7309
7328
|
}
|
|
7329
|
+
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${withDefiniteArticle(issue2.origin)} լինի ${adj}${issue2.minimum.toString()}`;
|
|
7330
|
+
}
|
|
7331
|
+
case "invalid_format": {
|
|
7332
|
+
const _issue = issue2;
|
|
7333
|
+
if (_issue.format === "starts_with")
|
|
7334
|
+
return `Սխալ տող․ պետք է սկսվի "${_issue.prefix}"-ով`;
|
|
7335
|
+
if (_issue.format === "ends_with")
|
|
7336
|
+
return `Սխալ տող․ պետք է ավարտվի "${_issue.suffix}"-ով`;
|
|
7337
|
+
if (_issue.format === "includes")
|
|
7338
|
+
return `Սխալ տող․ պետք է պարունակի "${_issue.includes}"`;
|
|
7339
|
+
if (_issue.format === "regex")
|
|
7340
|
+
return `Սխալ տող․ պետք է համապատասխանի ${_issue.pattern} ձևաչափին`;
|
|
7341
|
+
return `Սխալ ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7310
7342
|
}
|
|
7343
|
+
case "not_multiple_of":
|
|
7344
|
+
return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${issue2.divisor}-ի`;
|
|
7345
|
+
case "unrecognized_keys":
|
|
7346
|
+
return `Չճանաչված բանալի${issue2.keys.length > 1 ? "ներ" : ""}. ${joinValues(issue2.keys, ", ")}`;
|
|
7347
|
+
case "invalid_key":
|
|
7348
|
+
return `Սխալ բանալի ${withDefiniteArticle(issue2.origin)}-ում`;
|
|
7349
|
+
case "invalid_union":
|
|
7350
|
+
return "Սխալ մուտքագրում";
|
|
7351
|
+
case "invalid_element":
|
|
7352
|
+
return `Սխալ արժեք ${withDefiniteArticle(issue2.origin)}-ում`;
|
|
7353
|
+
default:
|
|
7354
|
+
return `Սխալ մուտքագրում`;
|
|
7311
7355
|
}
|
|
7312
|
-
return t;
|
|
7313
7356
|
};
|
|
7314
|
-
|
|
7357
|
+
};
|
|
7358
|
+
function hy_default() {
|
|
7359
|
+
return {
|
|
7360
|
+
localeError: error18()
|
|
7361
|
+
};
|
|
7362
|
+
}
|
|
7363
|
+
// node_modules/zod/v4/locales/id.js
|
|
7364
|
+
var error19 = () => {
|
|
7365
|
+
const Sizable = {
|
|
7366
|
+
string: { unit: "karakter", verb: "memiliki" },
|
|
7367
|
+
file: { unit: "byte", verb: "memiliki" },
|
|
7368
|
+
array: { unit: "item", verb: "memiliki" },
|
|
7369
|
+
set: { unit: "item", verb: "memiliki" }
|
|
7370
|
+
};
|
|
7371
|
+
function getSizing(origin) {
|
|
7372
|
+
return Sizable[origin] ?? null;
|
|
7373
|
+
}
|
|
7374
|
+
const FormatDictionary = {
|
|
7315
7375
|
regex: "input",
|
|
7316
7376
|
email: "alamat email",
|
|
7317
7377
|
url: "URL",
|
|
@@ -7341,10 +7401,20 @@ var error18 = () => {
|
|
|
7341
7401
|
jwt: "JWT",
|
|
7342
7402
|
template_literal: "input"
|
|
7343
7403
|
};
|
|
7404
|
+
const TypeDictionary = {
|
|
7405
|
+
nan: "NaN"
|
|
7406
|
+
};
|
|
7344
7407
|
return (issue2) => {
|
|
7345
7408
|
switch (issue2.code) {
|
|
7346
|
-
case "invalid_type":
|
|
7347
|
-
|
|
7409
|
+
case "invalid_type": {
|
|
7410
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7411
|
+
const receivedType = parsedType(issue2.input);
|
|
7412
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7413
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7414
|
+
return `Input tidak valid: diharapkan instanceof ${issue2.expected}, diterima ${received}`;
|
|
7415
|
+
}
|
|
7416
|
+
return `Input tidak valid: diharapkan ${expected}, diterima ${received}`;
|
|
7417
|
+
}
|
|
7348
7418
|
case "invalid_value":
|
|
7349
7419
|
if (issue2.values.length === 1)
|
|
7350
7420
|
return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -7374,7 +7444,7 @@ var error18 = () => {
|
|
|
7374
7444
|
return `String tidak valid: harus menyertakan "${_issue.includes}"`;
|
|
7375
7445
|
if (_issue.format === "regex")
|
|
7376
7446
|
return `String tidak valid: harus sesuai pola ${_issue.pattern}`;
|
|
7377
|
-
return `${
|
|
7447
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} tidak valid`;
|
|
7378
7448
|
}
|
|
7379
7449
|
case "not_multiple_of":
|
|
7380
7450
|
return `Angka tidak valid: harus kelipatan dari ${issue2.divisor}`;
|
|
@@ -7393,31 +7463,11 @@ var error18 = () => {
|
|
|
7393
7463
|
};
|
|
7394
7464
|
function id_default() {
|
|
7395
7465
|
return {
|
|
7396
|
-
localeError:
|
|
7466
|
+
localeError: error19()
|
|
7397
7467
|
};
|
|
7398
7468
|
}
|
|
7399
7469
|
// node_modules/zod/v4/locales/is.js
|
|
7400
|
-
var
|
|
7401
|
-
const t = typeof data;
|
|
7402
|
-
switch (t) {
|
|
7403
|
-
case "number": {
|
|
7404
|
-
return Number.isNaN(data) ? "NaN" : "númer";
|
|
7405
|
-
}
|
|
7406
|
-
case "object": {
|
|
7407
|
-
if (Array.isArray(data)) {
|
|
7408
|
-
return "fylki";
|
|
7409
|
-
}
|
|
7410
|
-
if (data === null) {
|
|
7411
|
-
return "null";
|
|
7412
|
-
}
|
|
7413
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7414
|
-
return data.constructor.name;
|
|
7415
|
-
}
|
|
7416
|
-
}
|
|
7417
|
-
}
|
|
7418
|
-
return t;
|
|
7419
|
-
};
|
|
7420
|
-
var error19 = () => {
|
|
7470
|
+
var error20 = () => {
|
|
7421
7471
|
const Sizable = {
|
|
7422
7472
|
string: { unit: "stafi", verb: "að hafa" },
|
|
7423
7473
|
file: { unit: "bæti", verb: "að hafa" },
|
|
@@ -7427,7 +7477,7 @@ var error19 = () => {
|
|
|
7427
7477
|
function getSizing(origin) {
|
|
7428
7478
|
return Sizable[origin] ?? null;
|
|
7429
7479
|
}
|
|
7430
|
-
const
|
|
7480
|
+
const FormatDictionary = {
|
|
7431
7481
|
regex: "gildi",
|
|
7432
7482
|
email: "netfang",
|
|
7433
7483
|
url: "vefslóð",
|
|
@@ -7457,10 +7507,22 @@ var error19 = () => {
|
|
|
7457
7507
|
jwt: "JWT",
|
|
7458
7508
|
template_literal: "gildi"
|
|
7459
7509
|
};
|
|
7510
|
+
const TypeDictionary = {
|
|
7511
|
+
nan: "NaN",
|
|
7512
|
+
number: "númer",
|
|
7513
|
+
array: "fylki"
|
|
7514
|
+
};
|
|
7460
7515
|
return (issue2) => {
|
|
7461
7516
|
switch (issue2.code) {
|
|
7462
|
-
case "invalid_type":
|
|
7463
|
-
|
|
7517
|
+
case "invalid_type": {
|
|
7518
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7519
|
+
const receivedType = parsedType(issue2.input);
|
|
7520
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7521
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7522
|
+
return `Rangt gildi: Þú slóst inn ${received} þar sem á að vera instanceof ${issue2.expected}`;
|
|
7523
|
+
}
|
|
7524
|
+
return `Rangt gildi: Þú slóst inn ${received} þar sem á að vera ${expected}`;
|
|
7525
|
+
}
|
|
7464
7526
|
case "invalid_value":
|
|
7465
7527
|
if (issue2.values.length === 1)
|
|
7466
7528
|
return `Rangt gildi: gert ráð fyrir ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -7491,7 +7553,7 @@ var error19 = () => {
|
|
|
7491
7553
|
return `Ógildur strengur: verður að innihalda "${_issue.includes}"`;
|
|
7492
7554
|
if (_issue.format === "regex")
|
|
7493
7555
|
return `Ógildur strengur: verður að fylgja mynstri ${_issue.pattern}`;
|
|
7494
|
-
return `Rangt ${
|
|
7556
|
+
return `Rangt ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7495
7557
|
}
|
|
7496
7558
|
case "not_multiple_of":
|
|
7497
7559
|
return `Röng tala: verður að vera margfeldi af ${issue2.divisor}`;
|
|
@@ -7510,11 +7572,11 @@ var error19 = () => {
|
|
|
7510
7572
|
};
|
|
7511
7573
|
function is_default() {
|
|
7512
7574
|
return {
|
|
7513
|
-
localeError:
|
|
7575
|
+
localeError: error20()
|
|
7514
7576
|
};
|
|
7515
7577
|
}
|
|
7516
7578
|
// node_modules/zod/v4/locales/it.js
|
|
7517
|
-
var
|
|
7579
|
+
var error21 = () => {
|
|
7518
7580
|
const Sizable = {
|
|
7519
7581
|
string: { unit: "caratteri", verb: "avere" },
|
|
7520
7582
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -7524,27 +7586,7 @@ var error20 = () => {
|
|
|
7524
7586
|
function getSizing(origin) {
|
|
7525
7587
|
return Sizable[origin] ?? null;
|
|
7526
7588
|
}
|
|
7527
|
-
const
|
|
7528
|
-
const t = typeof data;
|
|
7529
|
-
switch (t) {
|
|
7530
|
-
case "number": {
|
|
7531
|
-
return Number.isNaN(data) ? "NaN" : "numero";
|
|
7532
|
-
}
|
|
7533
|
-
case "object": {
|
|
7534
|
-
if (Array.isArray(data)) {
|
|
7535
|
-
return "vettore";
|
|
7536
|
-
}
|
|
7537
|
-
if (data === null) {
|
|
7538
|
-
return "null";
|
|
7539
|
-
}
|
|
7540
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7541
|
-
return data.constructor.name;
|
|
7542
|
-
}
|
|
7543
|
-
}
|
|
7544
|
-
}
|
|
7545
|
-
return t;
|
|
7546
|
-
};
|
|
7547
|
-
const Nouns = {
|
|
7589
|
+
const FormatDictionary = {
|
|
7548
7590
|
regex: "input",
|
|
7549
7591
|
email: "indirizzo email",
|
|
7550
7592
|
url: "URL",
|
|
@@ -7574,10 +7616,22 @@ var error20 = () => {
|
|
|
7574
7616
|
jwt: "JWT",
|
|
7575
7617
|
template_literal: "input"
|
|
7576
7618
|
};
|
|
7619
|
+
const TypeDictionary = {
|
|
7620
|
+
nan: "NaN",
|
|
7621
|
+
number: "numero",
|
|
7622
|
+
array: "vettore"
|
|
7623
|
+
};
|
|
7577
7624
|
return (issue2) => {
|
|
7578
7625
|
switch (issue2.code) {
|
|
7579
|
-
case "invalid_type":
|
|
7580
|
-
|
|
7626
|
+
case "invalid_type": {
|
|
7627
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7628
|
+
const receivedType = parsedType(issue2.input);
|
|
7629
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7630
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7631
|
+
return `Input non valido: atteso instanceof ${issue2.expected}, ricevuto ${received}`;
|
|
7632
|
+
}
|
|
7633
|
+
return `Input non valido: atteso ${expected}, ricevuto ${received}`;
|
|
7634
|
+
}
|
|
7581
7635
|
case "invalid_value":
|
|
7582
7636
|
if (issue2.values.length === 1)
|
|
7583
7637
|
return `Input non valido: atteso ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -7607,7 +7661,7 @@ var error20 = () => {
|
|
|
7607
7661
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
7608
7662
|
if (_issue.format === "regex")
|
|
7609
7663
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
7610
|
-
return `Invalid ${
|
|
7664
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7611
7665
|
}
|
|
7612
7666
|
case "not_multiple_of":
|
|
7613
7667
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -7626,11 +7680,11 @@ var error20 = () => {
|
|
|
7626
7680
|
};
|
|
7627
7681
|
function it_default() {
|
|
7628
7682
|
return {
|
|
7629
|
-
localeError:
|
|
7683
|
+
localeError: error21()
|
|
7630
7684
|
};
|
|
7631
7685
|
}
|
|
7632
7686
|
// node_modules/zod/v4/locales/ja.js
|
|
7633
|
-
var
|
|
7687
|
+
var error22 = () => {
|
|
7634
7688
|
const Sizable = {
|
|
7635
7689
|
string: { unit: "文字", verb: "である" },
|
|
7636
7690
|
file: { unit: "バイト", verb: "である" },
|
|
@@ -7640,27 +7694,7 @@ var error21 = () => {
|
|
|
7640
7694
|
function getSizing(origin) {
|
|
7641
7695
|
return Sizable[origin] ?? null;
|
|
7642
7696
|
}
|
|
7643
|
-
const
|
|
7644
|
-
const t = typeof data;
|
|
7645
|
-
switch (t) {
|
|
7646
|
-
case "number": {
|
|
7647
|
-
return Number.isNaN(data) ? "NaN" : "数値";
|
|
7648
|
-
}
|
|
7649
|
-
case "object": {
|
|
7650
|
-
if (Array.isArray(data)) {
|
|
7651
|
-
return "配列";
|
|
7652
|
-
}
|
|
7653
|
-
if (data === null) {
|
|
7654
|
-
return "null";
|
|
7655
|
-
}
|
|
7656
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7657
|
-
return data.constructor.name;
|
|
7658
|
-
}
|
|
7659
|
-
}
|
|
7660
|
-
}
|
|
7661
|
-
return t;
|
|
7662
|
-
};
|
|
7663
|
-
const Nouns = {
|
|
7697
|
+
const FormatDictionary = {
|
|
7664
7698
|
regex: "入力値",
|
|
7665
7699
|
email: "メールアドレス",
|
|
7666
7700
|
url: "URL",
|
|
@@ -7690,10 +7724,22 @@ var error21 = () => {
|
|
|
7690
7724
|
jwt: "JWT",
|
|
7691
7725
|
template_literal: "入力値"
|
|
7692
7726
|
};
|
|
7727
|
+
const TypeDictionary = {
|
|
7728
|
+
nan: "NaN",
|
|
7729
|
+
number: "数値",
|
|
7730
|
+
array: "配列"
|
|
7731
|
+
};
|
|
7693
7732
|
return (issue2) => {
|
|
7694
7733
|
switch (issue2.code) {
|
|
7695
|
-
case "invalid_type":
|
|
7696
|
-
|
|
7734
|
+
case "invalid_type": {
|
|
7735
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7736
|
+
const receivedType = parsedType(issue2.input);
|
|
7737
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7738
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7739
|
+
return `無効な入力: instanceof ${issue2.expected}が期待されましたが、${received}が入力されました`;
|
|
7740
|
+
}
|
|
7741
|
+
return `無効な入力: ${expected}が期待されましたが、${received}が入力されました`;
|
|
7742
|
+
}
|
|
7697
7743
|
case "invalid_value":
|
|
7698
7744
|
if (issue2.values.length === 1)
|
|
7699
7745
|
return `無効な入力: ${stringifyPrimitive(issue2.values[0])}が期待されました`;
|
|
@@ -7722,7 +7768,7 @@ var error21 = () => {
|
|
|
7722
7768
|
return `無効な文字列: "${_issue.includes}"を含む必要があります`;
|
|
7723
7769
|
if (_issue.format === "regex")
|
|
7724
7770
|
return `無効な文字列: パターン${_issue.pattern}に一致する必要があります`;
|
|
7725
|
-
return `無効な${
|
|
7771
|
+
return `無効な${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7726
7772
|
}
|
|
7727
7773
|
case "not_multiple_of":
|
|
7728
7774
|
return `無効な数値: ${issue2.divisor}の倍数である必要があります`;
|
|
@@ -7741,39 +7787,11 @@ var error21 = () => {
|
|
|
7741
7787
|
};
|
|
7742
7788
|
function ja_default() {
|
|
7743
7789
|
return {
|
|
7744
|
-
localeError:
|
|
7790
|
+
localeError: error22()
|
|
7745
7791
|
};
|
|
7746
7792
|
}
|
|
7747
7793
|
// node_modules/zod/v4/locales/ka.js
|
|
7748
|
-
var
|
|
7749
|
-
const t = typeof data;
|
|
7750
|
-
switch (t) {
|
|
7751
|
-
case "number": {
|
|
7752
|
-
return Number.isNaN(data) ? "NaN" : "რიცხვი";
|
|
7753
|
-
}
|
|
7754
|
-
case "object": {
|
|
7755
|
-
if (Array.isArray(data)) {
|
|
7756
|
-
return "მასივი";
|
|
7757
|
-
}
|
|
7758
|
-
if (data === null) {
|
|
7759
|
-
return "null";
|
|
7760
|
-
}
|
|
7761
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7762
|
-
return data.constructor.name;
|
|
7763
|
-
}
|
|
7764
|
-
}
|
|
7765
|
-
}
|
|
7766
|
-
const typeMap = {
|
|
7767
|
-
string: "სტრინგი",
|
|
7768
|
-
boolean: "ბულეანი",
|
|
7769
|
-
undefined: "undefined",
|
|
7770
|
-
bigint: "bigint",
|
|
7771
|
-
symbol: "symbol",
|
|
7772
|
-
function: "ფუნქცია"
|
|
7773
|
-
};
|
|
7774
|
-
return typeMap[t] ?? t;
|
|
7775
|
-
};
|
|
7776
|
-
var error22 = () => {
|
|
7794
|
+
var error23 = () => {
|
|
7777
7795
|
const Sizable = {
|
|
7778
7796
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
7779
7797
|
file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
|
|
@@ -7783,7 +7801,7 @@ var error22 = () => {
|
|
|
7783
7801
|
function getSizing(origin) {
|
|
7784
7802
|
return Sizable[origin] ?? null;
|
|
7785
7803
|
}
|
|
7786
|
-
const
|
|
7804
|
+
const FormatDictionary = {
|
|
7787
7805
|
regex: "შეყვანა",
|
|
7788
7806
|
email: "ელ-ფოსტის მისამართი",
|
|
7789
7807
|
url: "URL",
|
|
@@ -7813,10 +7831,25 @@ var error22 = () => {
|
|
|
7813
7831
|
jwt: "JWT",
|
|
7814
7832
|
template_literal: "შეყვანა"
|
|
7815
7833
|
};
|
|
7834
|
+
const TypeDictionary = {
|
|
7835
|
+
nan: "NaN",
|
|
7836
|
+
number: "რიცხვი",
|
|
7837
|
+
string: "სტრინგი",
|
|
7838
|
+
boolean: "ბულეანი",
|
|
7839
|
+
function: "ფუნქცია",
|
|
7840
|
+
array: "მასივი"
|
|
7841
|
+
};
|
|
7816
7842
|
return (issue2) => {
|
|
7817
7843
|
switch (issue2.code) {
|
|
7818
|
-
case "invalid_type":
|
|
7819
|
-
|
|
7844
|
+
case "invalid_type": {
|
|
7845
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7846
|
+
const receivedType = parsedType(issue2.input);
|
|
7847
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7848
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7849
|
+
return `არასწორი შეყვანა: მოსალოდნელი instanceof ${issue2.expected}, მიღებული ${received}`;
|
|
7850
|
+
}
|
|
7851
|
+
return `არასწორი შეყვანა: მოსალოდნელი ${expected}, მიღებული ${received}`;
|
|
7852
|
+
}
|
|
7820
7853
|
case "invalid_value":
|
|
7821
7854
|
if (issue2.values.length === 1)
|
|
7822
7855
|
return `არასწორი შეყვანა: მოსალოდნელი ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -7847,7 +7880,7 @@ var error22 = () => {
|
|
|
7847
7880
|
return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
|
|
7848
7881
|
if (_issue.format === "regex")
|
|
7849
7882
|
return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
|
|
7850
|
-
return `არასწორი ${
|
|
7883
|
+
return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7851
7884
|
}
|
|
7852
7885
|
case "not_multiple_of":
|
|
7853
7886
|
return `არასწორი რიცხვი: უნდა იყოს ${issue2.divisor}-ის ჯერადი`;
|
|
@@ -7866,11 +7899,11 @@ var error22 = () => {
|
|
|
7866
7899
|
};
|
|
7867
7900
|
function ka_default() {
|
|
7868
7901
|
return {
|
|
7869
|
-
localeError:
|
|
7902
|
+
localeError: error23()
|
|
7870
7903
|
};
|
|
7871
7904
|
}
|
|
7872
7905
|
// node_modules/zod/v4/locales/km.js
|
|
7873
|
-
var
|
|
7906
|
+
var error24 = () => {
|
|
7874
7907
|
const Sizable = {
|
|
7875
7908
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
7876
7909
|
file: { unit: "បៃ", verb: "គួរមាន" },
|
|
@@ -7880,27 +7913,7 @@ var error23 = () => {
|
|
|
7880
7913
|
function getSizing(origin) {
|
|
7881
7914
|
return Sizable[origin] ?? null;
|
|
7882
7915
|
}
|
|
7883
|
-
const
|
|
7884
|
-
const t = typeof data;
|
|
7885
|
-
switch (t) {
|
|
7886
|
-
case "number": {
|
|
7887
|
-
return Number.isNaN(data) ? "មិនមែនជាលេខ (NaN)" : "លេខ";
|
|
7888
|
-
}
|
|
7889
|
-
case "object": {
|
|
7890
|
-
if (Array.isArray(data)) {
|
|
7891
|
-
return "អារេ (Array)";
|
|
7892
|
-
}
|
|
7893
|
-
if (data === null) {
|
|
7894
|
-
return "គ្មានតម្លៃ (null)";
|
|
7895
|
-
}
|
|
7896
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7897
|
-
return data.constructor.name;
|
|
7898
|
-
}
|
|
7899
|
-
}
|
|
7900
|
-
}
|
|
7901
|
-
return t;
|
|
7902
|
-
};
|
|
7903
|
-
const Nouns = {
|
|
7916
|
+
const FormatDictionary = {
|
|
7904
7917
|
regex: "ទិន្នន័យបញ្ចូល",
|
|
7905
7918
|
email: "អាសយដ្ឋានអ៊ីមែល",
|
|
7906
7919
|
url: "URL",
|
|
@@ -7930,10 +7943,23 @@ var error23 = () => {
|
|
|
7930
7943
|
jwt: "JWT",
|
|
7931
7944
|
template_literal: "ទិន្នន័យបញ្ចូល"
|
|
7932
7945
|
};
|
|
7946
|
+
const TypeDictionary = {
|
|
7947
|
+
nan: "NaN",
|
|
7948
|
+
number: "លេខ",
|
|
7949
|
+
array: "អារេ (Array)",
|
|
7950
|
+
null: "គ្មានតម្លៃ (null)"
|
|
7951
|
+
};
|
|
7933
7952
|
return (issue2) => {
|
|
7934
7953
|
switch (issue2.code) {
|
|
7935
|
-
case "invalid_type":
|
|
7936
|
-
|
|
7954
|
+
case "invalid_type": {
|
|
7955
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7956
|
+
const receivedType = parsedType(issue2.input);
|
|
7957
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7958
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7959
|
+
return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${issue2.expected} ប៉ុន្តែទទួលបាន ${received}`;
|
|
7960
|
+
}
|
|
7961
|
+
return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${expected} ប៉ុន្តែទទួលបាន ${received}`;
|
|
7962
|
+
}
|
|
7937
7963
|
case "invalid_value":
|
|
7938
7964
|
if (issue2.values.length === 1)
|
|
7939
7965
|
return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -7964,7 +7990,7 @@ var error23 = () => {
|
|
|
7964
7990
|
return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${_issue.includes}"`;
|
|
7965
7991
|
if (_issue.format === "regex")
|
|
7966
7992
|
return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${_issue.pattern}`;
|
|
7967
|
-
return `មិនត្រឹមត្រូវ៖ ${
|
|
7993
|
+
return `មិនត្រឹមត្រូវ៖ ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7968
7994
|
}
|
|
7969
7995
|
case "not_multiple_of":
|
|
7970
7996
|
return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${issue2.divisor}`;
|
|
@@ -7983,7 +8009,7 @@ var error23 = () => {
|
|
|
7983
8009
|
};
|
|
7984
8010
|
function km_default() {
|
|
7985
8011
|
return {
|
|
7986
|
-
localeError:
|
|
8012
|
+
localeError: error24()
|
|
7987
8013
|
};
|
|
7988
8014
|
}
|
|
7989
8015
|
|
|
@@ -7992,7 +8018,7 @@ function kh_default() {
|
|
|
7992
8018
|
return km_default();
|
|
7993
8019
|
}
|
|
7994
8020
|
// node_modules/zod/v4/locales/ko.js
|
|
7995
|
-
var
|
|
8021
|
+
var error25 = () => {
|
|
7996
8022
|
const Sizable = {
|
|
7997
8023
|
string: { unit: "문자", verb: "to have" },
|
|
7998
8024
|
file: { unit: "바이트", verb: "to have" },
|
|
@@ -8002,27 +8028,7 @@ var error24 = () => {
|
|
|
8002
8028
|
function getSizing(origin) {
|
|
8003
8029
|
return Sizable[origin] ?? null;
|
|
8004
8030
|
}
|
|
8005
|
-
const
|
|
8006
|
-
const t = typeof data;
|
|
8007
|
-
switch (t) {
|
|
8008
|
-
case "number": {
|
|
8009
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
8010
|
-
}
|
|
8011
|
-
case "object": {
|
|
8012
|
-
if (Array.isArray(data)) {
|
|
8013
|
-
return "array";
|
|
8014
|
-
}
|
|
8015
|
-
if (data === null) {
|
|
8016
|
-
return "null";
|
|
8017
|
-
}
|
|
8018
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8019
|
-
return data.constructor.name;
|
|
8020
|
-
}
|
|
8021
|
-
}
|
|
8022
|
-
}
|
|
8023
|
-
return t;
|
|
8024
|
-
};
|
|
8025
|
-
const Nouns = {
|
|
8031
|
+
const FormatDictionary = {
|
|
8026
8032
|
regex: "입력",
|
|
8027
8033
|
email: "이메일 주소",
|
|
8028
8034
|
url: "URL",
|
|
@@ -8052,10 +8058,20 @@ var error24 = () => {
|
|
|
8052
8058
|
jwt: "JWT",
|
|
8053
8059
|
template_literal: "입력"
|
|
8054
8060
|
};
|
|
8061
|
+
const TypeDictionary = {
|
|
8062
|
+
nan: "NaN"
|
|
8063
|
+
};
|
|
8055
8064
|
return (issue2) => {
|
|
8056
8065
|
switch (issue2.code) {
|
|
8057
|
-
case "invalid_type":
|
|
8058
|
-
|
|
8066
|
+
case "invalid_type": {
|
|
8067
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8068
|
+
const receivedType = parsedType(issue2.input);
|
|
8069
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8070
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8071
|
+
return `잘못된 입력: 예상 타입은 instanceof ${issue2.expected}, 받은 타입은 ${received}입니다`;
|
|
8072
|
+
}
|
|
8073
|
+
return `잘못된 입력: 예상 타입은 ${expected}, 받은 타입은 ${received}입니다`;
|
|
8074
|
+
}
|
|
8059
8075
|
case "invalid_value":
|
|
8060
8076
|
if (issue2.values.length === 1)
|
|
8061
8077
|
return `잘못된 입력: 값은 ${stringifyPrimitive(issue2.values[0])} 이어야 합니다`;
|
|
@@ -8090,7 +8106,7 @@ var error24 = () => {
|
|
|
8090
8106
|
return `잘못된 문자열: "${_issue.includes}"을(를) 포함해야 합니다`;
|
|
8091
8107
|
if (_issue.format === "regex")
|
|
8092
8108
|
return `잘못된 문자열: 정규식 ${_issue.pattern} 패턴과 일치해야 합니다`;
|
|
8093
|
-
return `잘못된 ${
|
|
8109
|
+
return `잘못된 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8094
8110
|
}
|
|
8095
8111
|
case "not_multiple_of":
|
|
8096
8112
|
return `잘못된 숫자: ${issue2.divisor}의 배수여야 합니다`;
|
|
@@ -8109,56 +8125,10 @@ var error24 = () => {
|
|
|
8109
8125
|
};
|
|
8110
8126
|
function ko_default() {
|
|
8111
8127
|
return {
|
|
8112
|
-
localeError:
|
|
8128
|
+
localeError: error25()
|
|
8113
8129
|
};
|
|
8114
8130
|
}
|
|
8115
8131
|
// node_modules/zod/v4/locales/lt.js
|
|
8116
|
-
var parsedType6 = (data) => {
|
|
8117
|
-
const t = typeof data;
|
|
8118
|
-
return parsedTypeFromType(t, data);
|
|
8119
|
-
};
|
|
8120
|
-
var parsedTypeFromType = (t, data = undefined) => {
|
|
8121
|
-
switch (t) {
|
|
8122
|
-
case "number": {
|
|
8123
|
-
return Number.isNaN(data) ? "NaN" : "skaičius";
|
|
8124
|
-
}
|
|
8125
|
-
case "bigint": {
|
|
8126
|
-
return "sveikasis skaičius";
|
|
8127
|
-
}
|
|
8128
|
-
case "string": {
|
|
8129
|
-
return "eilutė";
|
|
8130
|
-
}
|
|
8131
|
-
case "boolean": {
|
|
8132
|
-
return "loginė reikšmė";
|
|
8133
|
-
}
|
|
8134
|
-
case "undefined":
|
|
8135
|
-
case "void": {
|
|
8136
|
-
return "neapibrėžta reikšmė";
|
|
8137
|
-
}
|
|
8138
|
-
case "function": {
|
|
8139
|
-
return "funkcija";
|
|
8140
|
-
}
|
|
8141
|
-
case "symbol": {
|
|
8142
|
-
return "simbolis";
|
|
8143
|
-
}
|
|
8144
|
-
case "object": {
|
|
8145
|
-
if (data === undefined)
|
|
8146
|
-
return "nežinomas objektas";
|
|
8147
|
-
if (data === null)
|
|
8148
|
-
return "nulinė reikšmė";
|
|
8149
|
-
if (Array.isArray(data))
|
|
8150
|
-
return "masyvas";
|
|
8151
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8152
|
-
return data.constructor.name;
|
|
8153
|
-
}
|
|
8154
|
-
return "objektas";
|
|
8155
|
-
}
|
|
8156
|
-
case "null": {
|
|
8157
|
-
return "nulinė reikšmė";
|
|
8158
|
-
}
|
|
8159
|
-
}
|
|
8160
|
-
return t;
|
|
8161
|
-
};
|
|
8162
8132
|
var capitalizeFirstCharacter = (text) => {
|
|
8163
8133
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
8164
8134
|
};
|
|
@@ -8172,7 +8142,7 @@ function getUnitTypeFromNumber(number2) {
|
|
|
8172
8142
|
return "one";
|
|
8173
8143
|
return "few";
|
|
8174
8144
|
}
|
|
8175
|
-
var
|
|
8145
|
+
var error26 = () => {
|
|
8176
8146
|
const Sizable = {
|
|
8177
8147
|
string: {
|
|
8178
8148
|
unit: {
|
|
@@ -8252,7 +8222,7 @@ var error25 = () => {
|
|
|
8252
8222
|
verb: result.verb[targetShouldBe][inclusive ? "inclusive" : "notInclusive"]
|
|
8253
8223
|
};
|
|
8254
8224
|
}
|
|
8255
|
-
const
|
|
8225
|
+
const FormatDictionary = {
|
|
8256
8226
|
regex: "įvestis",
|
|
8257
8227
|
email: "el. pašto adresas",
|
|
8258
8228
|
url: "URL",
|
|
@@ -8282,16 +8252,36 @@ var error25 = () => {
|
|
|
8282
8252
|
jwt: "JWT",
|
|
8283
8253
|
template_literal: "įvestis"
|
|
8284
8254
|
};
|
|
8255
|
+
const TypeDictionary = {
|
|
8256
|
+
nan: "NaN",
|
|
8257
|
+
number: "skaičius",
|
|
8258
|
+
bigint: "sveikasis skaičius",
|
|
8259
|
+
string: "eilutė",
|
|
8260
|
+
boolean: "loginė reikšmė",
|
|
8261
|
+
undefined: "neapibrėžta reikšmė",
|
|
8262
|
+
function: "funkcija",
|
|
8263
|
+
symbol: "simbolis",
|
|
8264
|
+
array: "masyvas",
|
|
8265
|
+
object: "objektas",
|
|
8266
|
+
null: "nulinė reikšmė"
|
|
8267
|
+
};
|
|
8285
8268
|
return (issue2) => {
|
|
8286
8269
|
switch (issue2.code) {
|
|
8287
|
-
case "invalid_type":
|
|
8288
|
-
|
|
8270
|
+
case "invalid_type": {
|
|
8271
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8272
|
+
const receivedType = parsedType(issue2.input);
|
|
8273
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8274
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8275
|
+
return `Gautas tipas ${received}, o tikėtasi - instanceof ${issue2.expected}`;
|
|
8276
|
+
}
|
|
8277
|
+
return `Gautas tipas ${received}, o tikėtasi - ${expected}`;
|
|
8278
|
+
}
|
|
8289
8279
|
case "invalid_value":
|
|
8290
8280
|
if (issue2.values.length === 1)
|
|
8291
8281
|
return `Privalo būti ${stringifyPrimitive(issue2.values[0])}`;
|
|
8292
8282
|
return `Privalo būti vienas iš ${joinValues(issue2.values, "|")} pasirinkimų`;
|
|
8293
8283
|
case "too_big": {
|
|
8294
|
-
const origin =
|
|
8284
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
8295
8285
|
const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.maximum)), issue2.inclusive ?? false, "smaller");
|
|
8296
8286
|
if (sizing?.verb)
|
|
8297
8287
|
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reikšmė")} ${sizing.verb} ${issue2.maximum.toString()} ${sizing.unit ?? "elementų"}`;
|
|
@@ -8299,7 +8289,7 @@ var error25 = () => {
|
|
|
8299
8289
|
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reikšmė")} turi būti ${adj} ${issue2.maximum.toString()} ${sizing?.unit}`;
|
|
8300
8290
|
}
|
|
8301
8291
|
case "too_small": {
|
|
8302
|
-
const origin =
|
|
8292
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
8303
8293
|
const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.minimum)), issue2.inclusive ?? false, "bigger");
|
|
8304
8294
|
if (sizing?.verb)
|
|
8305
8295
|
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reikšmė")} ${sizing.verb} ${issue2.minimum.toString()} ${sizing.unit ?? "elementų"}`;
|
|
@@ -8317,7 +8307,7 @@ var error25 = () => {
|
|
|
8317
8307
|
return `Eilutė privalo įtraukti "${_issue.includes}"`;
|
|
8318
8308
|
if (_issue.format === "regex")
|
|
8319
8309
|
return `Eilutė privalo atitikti ${_issue.pattern}`;
|
|
8320
|
-
return `Neteisingas ${
|
|
8310
|
+
return `Neteisingas ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8321
8311
|
}
|
|
8322
8312
|
case "not_multiple_of":
|
|
8323
8313
|
return `Skaičius privalo būti ${issue2.divisor} kartotinis.`;
|
|
@@ -8328,7 +8318,7 @@ var error25 = () => {
|
|
|
8328
8318
|
case "invalid_union":
|
|
8329
8319
|
return "Klaidinga įvestis";
|
|
8330
8320
|
case "invalid_element": {
|
|
8331
|
-
const origin =
|
|
8321
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
8332
8322
|
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reikšmė")} turi klaidingą įvestį`;
|
|
8333
8323
|
}
|
|
8334
8324
|
default:
|
|
@@ -8338,11 +8328,11 @@ var error25 = () => {
|
|
|
8338
8328
|
};
|
|
8339
8329
|
function lt_default() {
|
|
8340
8330
|
return {
|
|
8341
|
-
localeError:
|
|
8331
|
+
localeError: error26()
|
|
8342
8332
|
};
|
|
8343
8333
|
}
|
|
8344
8334
|
// node_modules/zod/v4/locales/mk.js
|
|
8345
|
-
var
|
|
8335
|
+
var error27 = () => {
|
|
8346
8336
|
const Sizable = {
|
|
8347
8337
|
string: { unit: "знаци", verb: "да имаат" },
|
|
8348
8338
|
file: { unit: "бајти", verb: "да имаат" },
|
|
@@ -8352,27 +8342,7 @@ var error26 = () => {
|
|
|
8352
8342
|
function getSizing(origin) {
|
|
8353
8343
|
return Sizable[origin] ?? null;
|
|
8354
8344
|
}
|
|
8355
|
-
const
|
|
8356
|
-
const t = typeof data;
|
|
8357
|
-
switch (t) {
|
|
8358
|
-
case "number": {
|
|
8359
|
-
return Number.isNaN(data) ? "NaN" : "број";
|
|
8360
|
-
}
|
|
8361
|
-
case "object": {
|
|
8362
|
-
if (Array.isArray(data)) {
|
|
8363
|
-
return "низа";
|
|
8364
|
-
}
|
|
8365
|
-
if (data === null) {
|
|
8366
|
-
return "null";
|
|
8367
|
-
}
|
|
8368
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8369
|
-
return data.constructor.name;
|
|
8370
|
-
}
|
|
8371
|
-
}
|
|
8372
|
-
}
|
|
8373
|
-
return t;
|
|
8374
|
-
};
|
|
8375
|
-
const Nouns = {
|
|
8345
|
+
const FormatDictionary = {
|
|
8376
8346
|
regex: "внес",
|
|
8377
8347
|
email: "адреса на е-пошта",
|
|
8378
8348
|
url: "URL",
|
|
@@ -8402,10 +8372,22 @@ var error26 = () => {
|
|
|
8402
8372
|
jwt: "JWT",
|
|
8403
8373
|
template_literal: "внес"
|
|
8404
8374
|
};
|
|
8375
|
+
const TypeDictionary = {
|
|
8376
|
+
nan: "NaN",
|
|
8377
|
+
number: "број",
|
|
8378
|
+
array: "низа"
|
|
8379
|
+
};
|
|
8405
8380
|
return (issue2) => {
|
|
8406
8381
|
switch (issue2.code) {
|
|
8407
|
-
case "invalid_type":
|
|
8408
|
-
|
|
8382
|
+
case "invalid_type": {
|
|
8383
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8384
|
+
const receivedType = parsedType(issue2.input);
|
|
8385
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8386
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8387
|
+
return `Грешен внес: се очекува instanceof ${issue2.expected}, примено ${received}`;
|
|
8388
|
+
}
|
|
8389
|
+
return `Грешен внес: се очекува ${expected}, примено ${received}`;
|
|
8390
|
+
}
|
|
8409
8391
|
case "invalid_value":
|
|
8410
8392
|
if (issue2.values.length === 1)
|
|
8411
8393
|
return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -8436,7 +8418,7 @@ var error26 = () => {
|
|
|
8436
8418
|
return `Неважечка низа: мора да вклучува "${_issue.includes}"`;
|
|
8437
8419
|
if (_issue.format === "regex")
|
|
8438
8420
|
return `Неважечка низа: мора да одгоара на патернот ${_issue.pattern}`;
|
|
8439
|
-
return `Invalid ${
|
|
8421
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8440
8422
|
}
|
|
8441
8423
|
case "not_multiple_of":
|
|
8442
8424
|
return `Грешен број: мора да биде делив со ${issue2.divisor}`;
|
|
@@ -8455,11 +8437,11 @@ var error26 = () => {
|
|
|
8455
8437
|
};
|
|
8456
8438
|
function mk_default() {
|
|
8457
8439
|
return {
|
|
8458
|
-
localeError:
|
|
8440
|
+
localeError: error27()
|
|
8459
8441
|
};
|
|
8460
8442
|
}
|
|
8461
8443
|
// node_modules/zod/v4/locales/ms.js
|
|
8462
|
-
var
|
|
8444
|
+
var error28 = () => {
|
|
8463
8445
|
const Sizable = {
|
|
8464
8446
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
8465
8447
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -8469,27 +8451,7 @@ var error27 = () => {
|
|
|
8469
8451
|
function getSizing(origin) {
|
|
8470
8452
|
return Sizable[origin] ?? null;
|
|
8471
8453
|
}
|
|
8472
|
-
const
|
|
8473
|
-
const t = typeof data;
|
|
8474
|
-
switch (t) {
|
|
8475
|
-
case "number": {
|
|
8476
|
-
return Number.isNaN(data) ? "NaN" : "nombor";
|
|
8477
|
-
}
|
|
8478
|
-
case "object": {
|
|
8479
|
-
if (Array.isArray(data)) {
|
|
8480
|
-
return "array";
|
|
8481
|
-
}
|
|
8482
|
-
if (data === null) {
|
|
8483
|
-
return "null";
|
|
8484
|
-
}
|
|
8485
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8486
|
-
return data.constructor.name;
|
|
8487
|
-
}
|
|
8488
|
-
}
|
|
8489
|
-
}
|
|
8490
|
-
return t;
|
|
8491
|
-
};
|
|
8492
|
-
const Nouns = {
|
|
8454
|
+
const FormatDictionary = {
|
|
8493
8455
|
regex: "input",
|
|
8494
8456
|
email: "alamat e-mel",
|
|
8495
8457
|
url: "URL",
|
|
@@ -8519,10 +8481,21 @@ var error27 = () => {
|
|
|
8519
8481
|
jwt: "JWT",
|
|
8520
8482
|
template_literal: "input"
|
|
8521
8483
|
};
|
|
8484
|
+
const TypeDictionary = {
|
|
8485
|
+
nan: "NaN",
|
|
8486
|
+
number: "nombor"
|
|
8487
|
+
};
|
|
8522
8488
|
return (issue2) => {
|
|
8523
8489
|
switch (issue2.code) {
|
|
8524
|
-
case "invalid_type":
|
|
8525
|
-
|
|
8490
|
+
case "invalid_type": {
|
|
8491
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8492
|
+
const receivedType = parsedType(issue2.input);
|
|
8493
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8494
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8495
|
+
return `Input tidak sah: dijangka instanceof ${issue2.expected}, diterima ${received}`;
|
|
8496
|
+
}
|
|
8497
|
+
return `Input tidak sah: dijangka ${expected}, diterima ${received}`;
|
|
8498
|
+
}
|
|
8526
8499
|
case "invalid_value":
|
|
8527
8500
|
if (issue2.values.length === 1)
|
|
8528
8501
|
return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -8552,7 +8525,7 @@ var error27 = () => {
|
|
|
8552
8525
|
return `String tidak sah: mesti mengandungi "${_issue.includes}"`;
|
|
8553
8526
|
if (_issue.format === "regex")
|
|
8554
8527
|
return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;
|
|
8555
|
-
return `${
|
|
8528
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} tidak sah`;
|
|
8556
8529
|
}
|
|
8557
8530
|
case "not_multiple_of":
|
|
8558
8531
|
return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`;
|
|
@@ -8571,41 +8544,21 @@ var error27 = () => {
|
|
|
8571
8544
|
};
|
|
8572
8545
|
function ms_default() {
|
|
8573
8546
|
return {
|
|
8574
|
-
localeError:
|
|
8547
|
+
localeError: error28()
|
|
8575
8548
|
};
|
|
8576
8549
|
}
|
|
8577
8550
|
// node_modules/zod/v4/locales/nl.js
|
|
8578
|
-
var
|
|
8551
|
+
var error29 = () => {
|
|
8579
8552
|
const Sizable = {
|
|
8580
|
-
string: { unit: "tekens", verb: "
|
|
8581
|
-
file: { unit: "bytes", verb: "
|
|
8582
|
-
array: { unit: "elementen", verb: "
|
|
8583
|
-
set: { unit: "elementen", verb: "
|
|
8553
|
+
string: { unit: "tekens", verb: "heeft" },
|
|
8554
|
+
file: { unit: "bytes", verb: "heeft" },
|
|
8555
|
+
array: { unit: "elementen", verb: "heeft" },
|
|
8556
|
+
set: { unit: "elementen", verb: "heeft" }
|
|
8584
8557
|
};
|
|
8585
8558
|
function getSizing(origin) {
|
|
8586
8559
|
return Sizable[origin] ?? null;
|
|
8587
8560
|
}
|
|
8588
|
-
const
|
|
8589
|
-
const t = typeof data;
|
|
8590
|
-
switch (t) {
|
|
8591
|
-
case "number": {
|
|
8592
|
-
return Number.isNaN(data) ? "NaN" : "getal";
|
|
8593
|
-
}
|
|
8594
|
-
case "object": {
|
|
8595
|
-
if (Array.isArray(data)) {
|
|
8596
|
-
return "array";
|
|
8597
|
-
}
|
|
8598
|
-
if (data === null) {
|
|
8599
|
-
return "null";
|
|
8600
|
-
}
|
|
8601
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8602
|
-
return data.constructor.name;
|
|
8603
|
-
}
|
|
8604
|
-
}
|
|
8605
|
-
}
|
|
8606
|
-
return t;
|
|
8607
|
-
};
|
|
8608
|
-
const Nouns = {
|
|
8561
|
+
const FormatDictionary = {
|
|
8609
8562
|
regex: "invoer",
|
|
8610
8563
|
email: "emailadres",
|
|
8611
8564
|
url: "URL",
|
|
@@ -8635,10 +8588,21 @@ var error28 = () => {
|
|
|
8635
8588
|
jwt: "JWT",
|
|
8636
8589
|
template_literal: "invoer"
|
|
8637
8590
|
};
|
|
8591
|
+
const TypeDictionary = {
|
|
8592
|
+
nan: "NaN",
|
|
8593
|
+
number: "getal"
|
|
8594
|
+
};
|
|
8638
8595
|
return (issue2) => {
|
|
8639
8596
|
switch (issue2.code) {
|
|
8640
|
-
case "invalid_type":
|
|
8641
|
-
|
|
8597
|
+
case "invalid_type": {
|
|
8598
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8599
|
+
const receivedType = parsedType(issue2.input);
|
|
8600
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8601
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8602
|
+
return `Ongeldige invoer: verwacht instanceof ${issue2.expected}, ontving ${received}`;
|
|
8603
|
+
}
|
|
8604
|
+
return `Ongeldige invoer: verwacht ${expected}, ontving ${received}`;
|
|
8605
|
+
}
|
|
8642
8606
|
case "invalid_value":
|
|
8643
8607
|
if (issue2.values.length === 1)
|
|
8644
8608
|
return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -8646,17 +8610,19 @@ var error28 = () => {
|
|
|
8646
8610
|
case "too_big": {
|
|
8647
8611
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
8648
8612
|
const sizing = getSizing(issue2.origin);
|
|
8613
|
+
const longName = issue2.origin === "date" ? "laat" : issue2.origin === "string" ? "lang" : "groot";
|
|
8649
8614
|
if (sizing)
|
|
8650
|
-
return `Te
|
|
8651
|
-
return `Te
|
|
8615
|
+
return `Te ${longName}: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"} ${sizing.verb}`;
|
|
8616
|
+
return `Te ${longName}: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
8652
8617
|
}
|
|
8653
8618
|
case "too_small": {
|
|
8654
8619
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
8655
8620
|
const sizing = getSizing(issue2.origin);
|
|
8621
|
+
const shortName = issue2.origin === "date" ? "vroeg" : issue2.origin === "string" ? "kort" : "klein";
|
|
8656
8622
|
if (sizing) {
|
|
8657
|
-
return `Te
|
|
8623
|
+
return `Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
8658
8624
|
}
|
|
8659
|
-
return `Te
|
|
8625
|
+
return `Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
8660
8626
|
}
|
|
8661
8627
|
case "invalid_format": {
|
|
8662
8628
|
const _issue = issue2;
|
|
@@ -8669,7 +8635,7 @@ var error28 = () => {
|
|
|
8669
8635
|
return `Ongeldige tekst: moet "${_issue.includes}" bevatten`;
|
|
8670
8636
|
if (_issue.format === "regex")
|
|
8671
8637
|
return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;
|
|
8672
|
-
return `Ongeldig: ${
|
|
8638
|
+
return `Ongeldig: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8673
8639
|
}
|
|
8674
8640
|
case "not_multiple_of":
|
|
8675
8641
|
return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;
|
|
@@ -8688,11 +8654,11 @@ var error28 = () => {
|
|
|
8688
8654
|
};
|
|
8689
8655
|
function nl_default() {
|
|
8690
8656
|
return {
|
|
8691
|
-
localeError:
|
|
8657
|
+
localeError: error29()
|
|
8692
8658
|
};
|
|
8693
8659
|
}
|
|
8694
8660
|
// node_modules/zod/v4/locales/no.js
|
|
8695
|
-
var
|
|
8661
|
+
var error30 = () => {
|
|
8696
8662
|
const Sizable = {
|
|
8697
8663
|
string: { unit: "tegn", verb: "å ha" },
|
|
8698
8664
|
file: { unit: "bytes", verb: "å ha" },
|
|
@@ -8702,27 +8668,7 @@ var error29 = () => {
|
|
|
8702
8668
|
function getSizing(origin) {
|
|
8703
8669
|
return Sizable[origin] ?? null;
|
|
8704
8670
|
}
|
|
8705
|
-
const
|
|
8706
|
-
const t = typeof data;
|
|
8707
|
-
switch (t) {
|
|
8708
|
-
case "number": {
|
|
8709
|
-
return Number.isNaN(data) ? "NaN" : "tall";
|
|
8710
|
-
}
|
|
8711
|
-
case "object": {
|
|
8712
|
-
if (Array.isArray(data)) {
|
|
8713
|
-
return "liste";
|
|
8714
|
-
}
|
|
8715
|
-
if (data === null) {
|
|
8716
|
-
return "null";
|
|
8717
|
-
}
|
|
8718
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8719
|
-
return data.constructor.name;
|
|
8720
|
-
}
|
|
8721
|
-
}
|
|
8722
|
-
}
|
|
8723
|
-
return t;
|
|
8724
|
-
};
|
|
8725
|
-
const Nouns = {
|
|
8671
|
+
const FormatDictionary = {
|
|
8726
8672
|
regex: "input",
|
|
8727
8673
|
email: "e-postadresse",
|
|
8728
8674
|
url: "URL",
|
|
@@ -8752,10 +8698,22 @@ var error29 = () => {
|
|
|
8752
8698
|
jwt: "JWT",
|
|
8753
8699
|
template_literal: "input"
|
|
8754
8700
|
};
|
|
8701
|
+
const TypeDictionary = {
|
|
8702
|
+
nan: "NaN",
|
|
8703
|
+
number: "tall",
|
|
8704
|
+
array: "liste"
|
|
8705
|
+
};
|
|
8755
8706
|
return (issue2) => {
|
|
8756
8707
|
switch (issue2.code) {
|
|
8757
|
-
case "invalid_type":
|
|
8758
|
-
|
|
8708
|
+
case "invalid_type": {
|
|
8709
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8710
|
+
const receivedType = parsedType(issue2.input);
|
|
8711
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8712
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8713
|
+
return `Ugyldig input: forventet instanceof ${issue2.expected}, fikk ${received}`;
|
|
8714
|
+
}
|
|
8715
|
+
return `Ugyldig input: forventet ${expected}, fikk ${received}`;
|
|
8716
|
+
}
|
|
8759
8717
|
case "invalid_value":
|
|
8760
8718
|
if (issue2.values.length === 1)
|
|
8761
8719
|
return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -8785,7 +8743,7 @@ var error29 = () => {
|
|
|
8785
8743
|
return `Ugyldig streng: må inneholde "${_issue.includes}"`;
|
|
8786
8744
|
if (_issue.format === "regex")
|
|
8787
8745
|
return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`;
|
|
8788
|
-
return `Ugyldig ${
|
|
8746
|
+
return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8789
8747
|
}
|
|
8790
8748
|
case "not_multiple_of":
|
|
8791
8749
|
return `Ugyldig tall: må være et multiplum av ${issue2.divisor}`;
|
|
@@ -8804,11 +8762,11 @@ var error29 = () => {
|
|
|
8804
8762
|
};
|
|
8805
8763
|
function no_default() {
|
|
8806
8764
|
return {
|
|
8807
|
-
localeError:
|
|
8765
|
+
localeError: error30()
|
|
8808
8766
|
};
|
|
8809
8767
|
}
|
|
8810
8768
|
// node_modules/zod/v4/locales/ota.js
|
|
8811
|
-
var
|
|
8769
|
+
var error31 = () => {
|
|
8812
8770
|
const Sizable = {
|
|
8813
8771
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
8814
8772
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
@@ -8818,27 +8776,7 @@ var error30 = () => {
|
|
|
8818
8776
|
function getSizing(origin) {
|
|
8819
8777
|
return Sizable[origin] ?? null;
|
|
8820
8778
|
}
|
|
8821
|
-
const
|
|
8822
|
-
const t = typeof data;
|
|
8823
|
-
switch (t) {
|
|
8824
|
-
case "number": {
|
|
8825
|
-
return Number.isNaN(data) ? "NaN" : "numara";
|
|
8826
|
-
}
|
|
8827
|
-
case "object": {
|
|
8828
|
-
if (Array.isArray(data)) {
|
|
8829
|
-
return "saf";
|
|
8830
|
-
}
|
|
8831
|
-
if (data === null) {
|
|
8832
|
-
return "gayb";
|
|
8833
|
-
}
|
|
8834
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8835
|
-
return data.constructor.name;
|
|
8836
|
-
}
|
|
8837
|
-
}
|
|
8838
|
-
}
|
|
8839
|
-
return t;
|
|
8840
|
-
};
|
|
8841
|
-
const Nouns = {
|
|
8779
|
+
const FormatDictionary = {
|
|
8842
8780
|
regex: "giren",
|
|
8843
8781
|
email: "epostagâh",
|
|
8844
8782
|
url: "URL",
|
|
@@ -8868,10 +8806,23 @@ var error30 = () => {
|
|
|
8868
8806
|
jwt: "JWT",
|
|
8869
8807
|
template_literal: "giren"
|
|
8870
8808
|
};
|
|
8809
|
+
const TypeDictionary = {
|
|
8810
|
+
nan: "NaN",
|
|
8811
|
+
number: "numara",
|
|
8812
|
+
array: "saf",
|
|
8813
|
+
null: "gayb"
|
|
8814
|
+
};
|
|
8871
8815
|
return (issue2) => {
|
|
8872
8816
|
switch (issue2.code) {
|
|
8873
|
-
case "invalid_type":
|
|
8874
|
-
|
|
8817
|
+
case "invalid_type": {
|
|
8818
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8819
|
+
const receivedType = parsedType(issue2.input);
|
|
8820
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8821
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8822
|
+
return `Fâsit giren: umulan instanceof ${issue2.expected}, alınan ${received}`;
|
|
8823
|
+
}
|
|
8824
|
+
return `Fâsit giren: umulan ${expected}, alınan ${received}`;
|
|
8825
|
+
}
|
|
8875
8826
|
case "invalid_value":
|
|
8876
8827
|
if (issue2.values.length === 1)
|
|
8877
8828
|
return `Fâsit giren: umulan ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -8901,7 +8852,7 @@ var error30 = () => {
|
|
|
8901
8852
|
return `Fâsit metin: "${_issue.includes}" ihtivâ etmeli.`;
|
|
8902
8853
|
if (_issue.format === "regex")
|
|
8903
8854
|
return `Fâsit metin: ${_issue.pattern} nakşına uymalı.`;
|
|
8904
|
-
return `Fâsit ${
|
|
8855
|
+
return `Fâsit ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8905
8856
|
}
|
|
8906
8857
|
case "not_multiple_of":
|
|
8907
8858
|
return `Fâsit sayı: ${issue2.divisor} katı olmalıydı.`;
|
|
@@ -8920,11 +8871,11 @@ var error30 = () => {
|
|
|
8920
8871
|
};
|
|
8921
8872
|
function ota_default() {
|
|
8922
8873
|
return {
|
|
8923
|
-
localeError:
|
|
8874
|
+
localeError: error31()
|
|
8924
8875
|
};
|
|
8925
8876
|
}
|
|
8926
8877
|
// node_modules/zod/v4/locales/ps.js
|
|
8927
|
-
var
|
|
8878
|
+
var error32 = () => {
|
|
8928
8879
|
const Sizable = {
|
|
8929
8880
|
string: { unit: "توکي", verb: "ولري" },
|
|
8930
8881
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -8934,27 +8885,7 @@ var error31 = () => {
|
|
|
8934
8885
|
function getSizing(origin) {
|
|
8935
8886
|
return Sizable[origin] ?? null;
|
|
8936
8887
|
}
|
|
8937
|
-
const
|
|
8938
|
-
const t = typeof data;
|
|
8939
|
-
switch (t) {
|
|
8940
|
-
case "number": {
|
|
8941
|
-
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
8942
|
-
}
|
|
8943
|
-
case "object": {
|
|
8944
|
-
if (Array.isArray(data)) {
|
|
8945
|
-
return "ارې";
|
|
8946
|
-
}
|
|
8947
|
-
if (data === null) {
|
|
8948
|
-
return "null";
|
|
8949
|
-
}
|
|
8950
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
8951
|
-
return data.constructor.name;
|
|
8952
|
-
}
|
|
8953
|
-
}
|
|
8954
|
-
}
|
|
8955
|
-
return t;
|
|
8956
|
-
};
|
|
8957
|
-
const Nouns = {
|
|
8888
|
+
const FormatDictionary = {
|
|
8958
8889
|
regex: "ورودي",
|
|
8959
8890
|
email: "بریښنالیک",
|
|
8960
8891
|
url: "یو آر ال",
|
|
@@ -8984,10 +8915,22 @@ var error31 = () => {
|
|
|
8984
8915
|
jwt: "JWT",
|
|
8985
8916
|
template_literal: "ورودي"
|
|
8986
8917
|
};
|
|
8918
|
+
const TypeDictionary = {
|
|
8919
|
+
nan: "NaN",
|
|
8920
|
+
number: "عدد",
|
|
8921
|
+
array: "ارې"
|
|
8922
|
+
};
|
|
8987
8923
|
return (issue2) => {
|
|
8988
8924
|
switch (issue2.code) {
|
|
8989
|
-
case "invalid_type":
|
|
8990
|
-
|
|
8925
|
+
case "invalid_type": {
|
|
8926
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8927
|
+
const receivedType = parsedType(issue2.input);
|
|
8928
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8929
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
8930
|
+
return `ناسم ورودي: باید instanceof ${issue2.expected} وای, مګر ${received} ترلاسه شو`;
|
|
8931
|
+
}
|
|
8932
|
+
return `ناسم ورودي: باید ${expected} وای, مګر ${received} ترلاسه شو`;
|
|
8933
|
+
}
|
|
8991
8934
|
case "invalid_value":
|
|
8992
8935
|
if (issue2.values.length === 1) {
|
|
8993
8936
|
return `ناسم ورودي: باید ${stringifyPrimitive(issue2.values[0])} وای`;
|
|
@@ -9023,7 +8966,7 @@ var error31 = () => {
|
|
|
9023
8966
|
if (_issue.format === "regex") {
|
|
9024
8967
|
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
9025
8968
|
}
|
|
9026
|
-
return `${
|
|
8969
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} ناسم دی`;
|
|
9027
8970
|
}
|
|
9028
8971
|
case "not_multiple_of":
|
|
9029
8972
|
return `ناسم عدد: باید د ${issue2.divisor} مضرب وي`;
|
|
@@ -9042,11 +8985,11 @@ var error31 = () => {
|
|
|
9042
8985
|
};
|
|
9043
8986
|
function ps_default() {
|
|
9044
8987
|
return {
|
|
9045
|
-
localeError:
|
|
8988
|
+
localeError: error32()
|
|
9046
8989
|
};
|
|
9047
8990
|
}
|
|
9048
8991
|
// node_modules/zod/v4/locales/pl.js
|
|
9049
|
-
var
|
|
8992
|
+
var error33 = () => {
|
|
9050
8993
|
const Sizable = {
|
|
9051
8994
|
string: { unit: "znaków", verb: "mieć" },
|
|
9052
8995
|
file: { unit: "bajtów", verb: "mieć" },
|
|
@@ -9056,27 +8999,7 @@ var error32 = () => {
|
|
|
9056
8999
|
function getSizing(origin) {
|
|
9057
9000
|
return Sizable[origin] ?? null;
|
|
9058
9001
|
}
|
|
9059
|
-
const
|
|
9060
|
-
const t = typeof data;
|
|
9061
|
-
switch (t) {
|
|
9062
|
-
case "number": {
|
|
9063
|
-
return Number.isNaN(data) ? "NaN" : "liczba";
|
|
9064
|
-
}
|
|
9065
|
-
case "object": {
|
|
9066
|
-
if (Array.isArray(data)) {
|
|
9067
|
-
return "tablica";
|
|
9068
|
-
}
|
|
9069
|
-
if (data === null) {
|
|
9070
|
-
return "null";
|
|
9071
|
-
}
|
|
9072
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9073
|
-
return data.constructor.name;
|
|
9074
|
-
}
|
|
9075
|
-
}
|
|
9076
|
-
}
|
|
9077
|
-
return t;
|
|
9078
|
-
};
|
|
9079
|
-
const Nouns = {
|
|
9002
|
+
const FormatDictionary = {
|
|
9080
9003
|
regex: "wyrażenie",
|
|
9081
9004
|
email: "adres email",
|
|
9082
9005
|
url: "URL",
|
|
@@ -9106,10 +9029,22 @@ var error32 = () => {
|
|
|
9106
9029
|
jwt: "JWT",
|
|
9107
9030
|
template_literal: "wejście"
|
|
9108
9031
|
};
|
|
9032
|
+
const TypeDictionary = {
|
|
9033
|
+
nan: "NaN",
|
|
9034
|
+
number: "liczba",
|
|
9035
|
+
array: "tablica"
|
|
9036
|
+
};
|
|
9109
9037
|
return (issue2) => {
|
|
9110
9038
|
switch (issue2.code) {
|
|
9111
|
-
case "invalid_type":
|
|
9112
|
-
|
|
9039
|
+
case "invalid_type": {
|
|
9040
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9041
|
+
const receivedType = parsedType(issue2.input);
|
|
9042
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9043
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9044
|
+
return `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${issue2.expected}, otrzymano ${received}`;
|
|
9045
|
+
}
|
|
9046
|
+
return `Nieprawidłowe dane wejściowe: oczekiwano ${expected}, otrzymano ${received}`;
|
|
9047
|
+
}
|
|
9113
9048
|
case "invalid_value":
|
|
9114
9049
|
if (issue2.values.length === 1)
|
|
9115
9050
|
return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9140,7 +9075,7 @@ var error32 = () => {
|
|
|
9140
9075
|
return `Nieprawidłowy ciąg znaków: musi zawierać "${_issue.includes}"`;
|
|
9141
9076
|
if (_issue.format === "regex")
|
|
9142
9077
|
return `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${_issue.pattern}`;
|
|
9143
|
-
return `Nieprawidłow(y/a/e) ${
|
|
9078
|
+
return `Nieprawidłow(y/a/e) ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9144
9079
|
}
|
|
9145
9080
|
case "not_multiple_of":
|
|
9146
9081
|
return `Nieprawidłowa liczba: musi być wielokrotnością ${issue2.divisor}`;
|
|
@@ -9159,11 +9094,11 @@ var error32 = () => {
|
|
|
9159
9094
|
};
|
|
9160
9095
|
function pl_default() {
|
|
9161
9096
|
return {
|
|
9162
|
-
localeError:
|
|
9097
|
+
localeError: error33()
|
|
9163
9098
|
};
|
|
9164
9099
|
}
|
|
9165
9100
|
// node_modules/zod/v4/locales/pt.js
|
|
9166
|
-
var
|
|
9101
|
+
var error34 = () => {
|
|
9167
9102
|
const Sizable = {
|
|
9168
9103
|
string: { unit: "caracteres", verb: "ter" },
|
|
9169
9104
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -9173,27 +9108,7 @@ var error33 = () => {
|
|
|
9173
9108
|
function getSizing(origin) {
|
|
9174
9109
|
return Sizable[origin] ?? null;
|
|
9175
9110
|
}
|
|
9176
|
-
const
|
|
9177
|
-
const t = typeof data;
|
|
9178
|
-
switch (t) {
|
|
9179
|
-
case "number": {
|
|
9180
|
-
return Number.isNaN(data) ? "NaN" : "número";
|
|
9181
|
-
}
|
|
9182
|
-
case "object": {
|
|
9183
|
-
if (Array.isArray(data)) {
|
|
9184
|
-
return "array";
|
|
9185
|
-
}
|
|
9186
|
-
if (data === null) {
|
|
9187
|
-
return "nulo";
|
|
9188
|
-
}
|
|
9189
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9190
|
-
return data.constructor.name;
|
|
9191
|
-
}
|
|
9192
|
-
}
|
|
9193
|
-
}
|
|
9194
|
-
return t;
|
|
9195
|
-
};
|
|
9196
|
-
const Nouns = {
|
|
9111
|
+
const FormatDictionary = {
|
|
9197
9112
|
regex: "padrão",
|
|
9198
9113
|
email: "endereço de e-mail",
|
|
9199
9114
|
url: "URL",
|
|
@@ -9223,10 +9138,22 @@ var error33 = () => {
|
|
|
9223
9138
|
jwt: "JWT",
|
|
9224
9139
|
template_literal: "entrada"
|
|
9225
9140
|
};
|
|
9141
|
+
const TypeDictionary = {
|
|
9142
|
+
nan: "NaN",
|
|
9143
|
+
number: "número",
|
|
9144
|
+
null: "nulo"
|
|
9145
|
+
};
|
|
9226
9146
|
return (issue2) => {
|
|
9227
9147
|
switch (issue2.code) {
|
|
9228
|
-
case "invalid_type":
|
|
9229
|
-
|
|
9148
|
+
case "invalid_type": {
|
|
9149
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9150
|
+
const receivedType = parsedType(issue2.input);
|
|
9151
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9152
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9153
|
+
return `Tipo inválido: esperado instanceof ${issue2.expected}, recebido ${received}`;
|
|
9154
|
+
}
|
|
9155
|
+
return `Tipo inválido: esperado ${expected}, recebido ${received}`;
|
|
9156
|
+
}
|
|
9230
9157
|
case "invalid_value":
|
|
9231
9158
|
if (issue2.values.length === 1)
|
|
9232
9159
|
return `Entrada inválida: esperado ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9256,7 +9183,7 @@ var error33 = () => {
|
|
|
9256
9183
|
return `Texto inválido: deve incluir "${_issue.includes}"`;
|
|
9257
9184
|
if (_issue.format === "regex")
|
|
9258
9185
|
return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;
|
|
9259
|
-
return `${
|
|
9186
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} inválido`;
|
|
9260
9187
|
}
|
|
9261
9188
|
case "not_multiple_of":
|
|
9262
9189
|
return `Número inválido: deve ser múltiplo de ${issue2.divisor}`;
|
|
@@ -9275,7 +9202,7 @@ var error33 = () => {
|
|
|
9275
9202
|
};
|
|
9276
9203
|
function pt_default() {
|
|
9277
9204
|
return {
|
|
9278
|
-
localeError:
|
|
9205
|
+
localeError: error34()
|
|
9279
9206
|
};
|
|
9280
9207
|
}
|
|
9281
9208
|
// node_modules/zod/v4/locales/ru.js
|
|
@@ -9294,7 +9221,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
9294
9221
|
}
|
|
9295
9222
|
return many;
|
|
9296
9223
|
}
|
|
9297
|
-
var
|
|
9224
|
+
var error35 = () => {
|
|
9298
9225
|
const Sizable = {
|
|
9299
9226
|
string: {
|
|
9300
9227
|
unit: {
|
|
@@ -9332,27 +9259,7 @@ var error34 = () => {
|
|
|
9332
9259
|
function getSizing(origin) {
|
|
9333
9260
|
return Sizable[origin] ?? null;
|
|
9334
9261
|
}
|
|
9335
|
-
const
|
|
9336
|
-
const t = typeof data;
|
|
9337
|
-
switch (t) {
|
|
9338
|
-
case "number": {
|
|
9339
|
-
return Number.isNaN(data) ? "NaN" : "число";
|
|
9340
|
-
}
|
|
9341
|
-
case "object": {
|
|
9342
|
-
if (Array.isArray(data)) {
|
|
9343
|
-
return "массив";
|
|
9344
|
-
}
|
|
9345
|
-
if (data === null) {
|
|
9346
|
-
return "null";
|
|
9347
|
-
}
|
|
9348
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9349
|
-
return data.constructor.name;
|
|
9350
|
-
}
|
|
9351
|
-
}
|
|
9352
|
-
}
|
|
9353
|
-
return t;
|
|
9354
|
-
};
|
|
9355
|
-
const Nouns = {
|
|
9262
|
+
const FormatDictionary = {
|
|
9356
9263
|
regex: "ввод",
|
|
9357
9264
|
email: "email адрес",
|
|
9358
9265
|
url: "URL",
|
|
@@ -9382,10 +9289,22 @@ var error34 = () => {
|
|
|
9382
9289
|
jwt: "JWT",
|
|
9383
9290
|
template_literal: "ввод"
|
|
9384
9291
|
};
|
|
9292
|
+
const TypeDictionary = {
|
|
9293
|
+
nan: "NaN",
|
|
9294
|
+
number: "число",
|
|
9295
|
+
array: "массив"
|
|
9296
|
+
};
|
|
9385
9297
|
return (issue2) => {
|
|
9386
9298
|
switch (issue2.code) {
|
|
9387
|
-
case "invalid_type":
|
|
9388
|
-
|
|
9299
|
+
case "invalid_type": {
|
|
9300
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9301
|
+
const receivedType = parsedType(issue2.input);
|
|
9302
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9303
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9304
|
+
return `Неверный ввод: ожидалось instanceof ${issue2.expected}, получено ${received}`;
|
|
9305
|
+
}
|
|
9306
|
+
return `Неверный ввод: ожидалось ${expected}, получено ${received}`;
|
|
9307
|
+
}
|
|
9389
9308
|
case "invalid_value":
|
|
9390
9309
|
if (issue2.values.length === 1)
|
|
9391
9310
|
return `Неверный ввод: ожидалось ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9420,7 +9339,7 @@ var error34 = () => {
|
|
|
9420
9339
|
return `Неверная строка: должна содержать "${_issue.includes}"`;
|
|
9421
9340
|
if (_issue.format === "regex")
|
|
9422
9341
|
return `Неверная строка: должна соответствовать шаблону ${_issue.pattern}`;
|
|
9423
|
-
return `Неверный ${
|
|
9342
|
+
return `Неверный ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9424
9343
|
}
|
|
9425
9344
|
case "not_multiple_of":
|
|
9426
9345
|
return `Неверное число: должно быть кратным ${issue2.divisor}`;
|
|
@@ -9439,11 +9358,11 @@ var error34 = () => {
|
|
|
9439
9358
|
};
|
|
9440
9359
|
function ru_default() {
|
|
9441
9360
|
return {
|
|
9442
|
-
localeError:
|
|
9361
|
+
localeError: error35()
|
|
9443
9362
|
};
|
|
9444
9363
|
}
|
|
9445
9364
|
// node_modules/zod/v4/locales/sl.js
|
|
9446
|
-
var
|
|
9365
|
+
var error36 = () => {
|
|
9447
9366
|
const Sizable = {
|
|
9448
9367
|
string: { unit: "znakov", verb: "imeti" },
|
|
9449
9368
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -9453,27 +9372,7 @@ var error35 = () => {
|
|
|
9453
9372
|
function getSizing(origin) {
|
|
9454
9373
|
return Sizable[origin] ?? null;
|
|
9455
9374
|
}
|
|
9456
|
-
const
|
|
9457
|
-
const t = typeof data;
|
|
9458
|
-
switch (t) {
|
|
9459
|
-
case "number": {
|
|
9460
|
-
return Number.isNaN(data) ? "NaN" : "število";
|
|
9461
|
-
}
|
|
9462
|
-
case "object": {
|
|
9463
|
-
if (Array.isArray(data)) {
|
|
9464
|
-
return "tabela";
|
|
9465
|
-
}
|
|
9466
|
-
if (data === null) {
|
|
9467
|
-
return "null";
|
|
9468
|
-
}
|
|
9469
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9470
|
-
return data.constructor.name;
|
|
9471
|
-
}
|
|
9472
|
-
}
|
|
9473
|
-
}
|
|
9474
|
-
return t;
|
|
9475
|
-
};
|
|
9476
|
-
const Nouns = {
|
|
9375
|
+
const FormatDictionary = {
|
|
9477
9376
|
regex: "vnos",
|
|
9478
9377
|
email: "e-poštni naslov",
|
|
9479
9378
|
url: "URL",
|
|
@@ -9503,10 +9402,22 @@ var error35 = () => {
|
|
|
9503
9402
|
jwt: "JWT",
|
|
9504
9403
|
template_literal: "vnos"
|
|
9505
9404
|
};
|
|
9405
|
+
const TypeDictionary = {
|
|
9406
|
+
nan: "NaN",
|
|
9407
|
+
number: "število",
|
|
9408
|
+
array: "tabela"
|
|
9409
|
+
};
|
|
9506
9410
|
return (issue2) => {
|
|
9507
9411
|
switch (issue2.code) {
|
|
9508
|
-
case "invalid_type":
|
|
9509
|
-
|
|
9412
|
+
case "invalid_type": {
|
|
9413
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9414
|
+
const receivedType = parsedType(issue2.input);
|
|
9415
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9416
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9417
|
+
return `Neveljaven vnos: pričakovano instanceof ${issue2.expected}, prejeto ${received}`;
|
|
9418
|
+
}
|
|
9419
|
+
return `Neveljaven vnos: pričakovano ${expected}, prejeto ${received}`;
|
|
9420
|
+
}
|
|
9510
9421
|
case "invalid_value":
|
|
9511
9422
|
if (issue2.values.length === 1)
|
|
9512
9423
|
return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9537,7 +9448,7 @@ var error35 = () => {
|
|
|
9537
9448
|
return `Neveljaven niz: mora vsebovati "${_issue.includes}"`;
|
|
9538
9449
|
if (_issue.format === "regex")
|
|
9539
9450
|
return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;
|
|
9540
|
-
return `Neveljaven ${
|
|
9451
|
+
return `Neveljaven ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9541
9452
|
}
|
|
9542
9453
|
case "not_multiple_of":
|
|
9543
9454
|
return `Neveljavno število: mora biti večkratnik ${issue2.divisor}`;
|
|
@@ -9556,11 +9467,11 @@ var error35 = () => {
|
|
|
9556
9467
|
};
|
|
9557
9468
|
function sl_default() {
|
|
9558
9469
|
return {
|
|
9559
|
-
localeError:
|
|
9470
|
+
localeError: error36()
|
|
9560
9471
|
};
|
|
9561
9472
|
}
|
|
9562
9473
|
// node_modules/zod/v4/locales/sv.js
|
|
9563
|
-
var
|
|
9474
|
+
var error37 = () => {
|
|
9564
9475
|
const Sizable = {
|
|
9565
9476
|
string: { unit: "tecken", verb: "att ha" },
|
|
9566
9477
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -9570,27 +9481,7 @@ var error36 = () => {
|
|
|
9570
9481
|
function getSizing(origin) {
|
|
9571
9482
|
return Sizable[origin] ?? null;
|
|
9572
9483
|
}
|
|
9573
|
-
const
|
|
9574
|
-
const t = typeof data;
|
|
9575
|
-
switch (t) {
|
|
9576
|
-
case "number": {
|
|
9577
|
-
return Number.isNaN(data) ? "NaN" : "antal";
|
|
9578
|
-
}
|
|
9579
|
-
case "object": {
|
|
9580
|
-
if (Array.isArray(data)) {
|
|
9581
|
-
return "lista";
|
|
9582
|
-
}
|
|
9583
|
-
if (data === null) {
|
|
9584
|
-
return "null";
|
|
9585
|
-
}
|
|
9586
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9587
|
-
return data.constructor.name;
|
|
9588
|
-
}
|
|
9589
|
-
}
|
|
9590
|
-
}
|
|
9591
|
-
return t;
|
|
9592
|
-
};
|
|
9593
|
-
const Nouns = {
|
|
9484
|
+
const FormatDictionary = {
|
|
9594
9485
|
regex: "reguljärt uttryck",
|
|
9595
9486
|
email: "e-postadress",
|
|
9596
9487
|
url: "URL",
|
|
@@ -9620,10 +9511,22 @@ var error36 = () => {
|
|
|
9620
9511
|
jwt: "JWT",
|
|
9621
9512
|
template_literal: "mall-literal"
|
|
9622
9513
|
};
|
|
9514
|
+
const TypeDictionary = {
|
|
9515
|
+
nan: "NaN",
|
|
9516
|
+
number: "antal",
|
|
9517
|
+
array: "lista"
|
|
9518
|
+
};
|
|
9623
9519
|
return (issue2) => {
|
|
9624
9520
|
switch (issue2.code) {
|
|
9625
|
-
case "invalid_type":
|
|
9626
|
-
|
|
9521
|
+
case "invalid_type": {
|
|
9522
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9523
|
+
const receivedType = parsedType(issue2.input);
|
|
9524
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9525
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9526
|
+
return `Ogiltig inmatning: förväntat instanceof ${issue2.expected}, fick ${received}`;
|
|
9527
|
+
}
|
|
9528
|
+
return `Ogiltig inmatning: förväntat ${expected}, fick ${received}`;
|
|
9529
|
+
}
|
|
9627
9530
|
case "invalid_value":
|
|
9628
9531
|
if (issue2.values.length === 1)
|
|
9629
9532
|
return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9655,7 +9558,7 @@ var error36 = () => {
|
|
|
9655
9558
|
return `Ogiltig sträng: måste innehålla "${_issue.includes}"`;
|
|
9656
9559
|
if (_issue.format === "regex")
|
|
9657
9560
|
return `Ogiltig sträng: måste matcha mönstret "${_issue.pattern}"`;
|
|
9658
|
-
return `Ogiltig(t) ${
|
|
9561
|
+
return `Ogiltig(t) ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9659
9562
|
}
|
|
9660
9563
|
case "not_multiple_of":
|
|
9661
9564
|
return `Ogiltigt tal: måste vara en multipel av ${issue2.divisor}`;
|
|
@@ -9674,11 +9577,11 @@ var error36 = () => {
|
|
|
9674
9577
|
};
|
|
9675
9578
|
function sv_default() {
|
|
9676
9579
|
return {
|
|
9677
|
-
localeError:
|
|
9580
|
+
localeError: error37()
|
|
9678
9581
|
};
|
|
9679
9582
|
}
|
|
9680
9583
|
// node_modules/zod/v4/locales/ta.js
|
|
9681
|
-
var
|
|
9584
|
+
var error38 = () => {
|
|
9682
9585
|
const Sizable = {
|
|
9683
9586
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
9684
9587
|
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -9688,27 +9591,7 @@ var error37 = () => {
|
|
|
9688
9591
|
function getSizing(origin) {
|
|
9689
9592
|
return Sizable[origin] ?? null;
|
|
9690
9593
|
}
|
|
9691
|
-
const
|
|
9692
|
-
const t = typeof data;
|
|
9693
|
-
switch (t) {
|
|
9694
|
-
case "number": {
|
|
9695
|
-
return Number.isNaN(data) ? "எண் அல்லாதது" : "எண்";
|
|
9696
|
-
}
|
|
9697
|
-
case "object": {
|
|
9698
|
-
if (Array.isArray(data)) {
|
|
9699
|
-
return "அணி";
|
|
9700
|
-
}
|
|
9701
|
-
if (data === null) {
|
|
9702
|
-
return "வெறுமை";
|
|
9703
|
-
}
|
|
9704
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9705
|
-
return data.constructor.name;
|
|
9706
|
-
}
|
|
9707
|
-
}
|
|
9708
|
-
}
|
|
9709
|
-
return t;
|
|
9710
|
-
};
|
|
9711
|
-
const Nouns = {
|
|
9594
|
+
const FormatDictionary = {
|
|
9712
9595
|
regex: "உள்ளீடு",
|
|
9713
9596
|
email: "மின்னஞ்சல் முகவரி",
|
|
9714
9597
|
url: "URL",
|
|
@@ -9738,10 +9621,23 @@ var error37 = () => {
|
|
|
9738
9621
|
jwt: "JWT",
|
|
9739
9622
|
template_literal: "input"
|
|
9740
9623
|
};
|
|
9624
|
+
const TypeDictionary = {
|
|
9625
|
+
nan: "NaN",
|
|
9626
|
+
number: "எண்",
|
|
9627
|
+
array: "அணி",
|
|
9628
|
+
null: "வெறுமை"
|
|
9629
|
+
};
|
|
9741
9630
|
return (issue2) => {
|
|
9742
9631
|
switch (issue2.code) {
|
|
9743
|
-
case "invalid_type":
|
|
9744
|
-
|
|
9632
|
+
case "invalid_type": {
|
|
9633
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9634
|
+
const receivedType = parsedType(issue2.input);
|
|
9635
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9636
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9637
|
+
return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${issue2.expected}, பெறப்பட்டது ${received}`;
|
|
9638
|
+
}
|
|
9639
|
+
return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${expected}, பெறப்பட்டது ${received}`;
|
|
9640
|
+
}
|
|
9745
9641
|
case "invalid_value":
|
|
9746
9642
|
if (issue2.values.length === 1)
|
|
9747
9643
|
return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9772,7 +9668,7 @@ var error37 = () => {
|
|
|
9772
9668
|
return `தவறான சரம்: "${_issue.includes}" ஐ உள்ளடக்க வேண்டும்`;
|
|
9773
9669
|
if (_issue.format === "regex")
|
|
9774
9670
|
return `தவறான சரம்: ${_issue.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;
|
|
9775
|
-
return `தவறான ${
|
|
9671
|
+
return `தவறான ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9776
9672
|
}
|
|
9777
9673
|
case "not_multiple_of":
|
|
9778
9674
|
return `தவறான எண்: ${issue2.divisor} இன் பலமாக இருக்க வேண்டும்`;
|
|
@@ -9791,11 +9687,11 @@ var error37 = () => {
|
|
|
9791
9687
|
};
|
|
9792
9688
|
function ta_default() {
|
|
9793
9689
|
return {
|
|
9794
|
-
localeError:
|
|
9690
|
+
localeError: error38()
|
|
9795
9691
|
};
|
|
9796
9692
|
}
|
|
9797
9693
|
// node_modules/zod/v4/locales/th.js
|
|
9798
|
-
var
|
|
9694
|
+
var error39 = () => {
|
|
9799
9695
|
const Sizable = {
|
|
9800
9696
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
9801
9697
|
file: { unit: "ไบต์", verb: "ควรมี" },
|
|
@@ -9803,29 +9699,9 @@ var error38 = () => {
|
|
|
9803
9699
|
set: { unit: "รายการ", verb: "ควรมี" }
|
|
9804
9700
|
};
|
|
9805
9701
|
function getSizing(origin) {
|
|
9806
|
-
return Sizable[origin] ?? null;
|
|
9807
|
-
}
|
|
9808
|
-
const
|
|
9809
|
-
const t = typeof data;
|
|
9810
|
-
switch (t) {
|
|
9811
|
-
case "number": {
|
|
9812
|
-
return Number.isNaN(data) ? "ไม่ใช่ตัวเลข (NaN)" : "ตัวเลข";
|
|
9813
|
-
}
|
|
9814
|
-
case "object": {
|
|
9815
|
-
if (Array.isArray(data)) {
|
|
9816
|
-
return "อาร์เรย์ (Array)";
|
|
9817
|
-
}
|
|
9818
|
-
if (data === null) {
|
|
9819
|
-
return "ไม่มีค่า (null)";
|
|
9820
|
-
}
|
|
9821
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9822
|
-
return data.constructor.name;
|
|
9823
|
-
}
|
|
9824
|
-
}
|
|
9825
|
-
}
|
|
9826
|
-
return t;
|
|
9827
|
-
};
|
|
9828
|
-
const Nouns = {
|
|
9702
|
+
return Sizable[origin] ?? null;
|
|
9703
|
+
}
|
|
9704
|
+
const FormatDictionary = {
|
|
9829
9705
|
regex: "ข้อมูลที่ป้อน",
|
|
9830
9706
|
email: "ที่อยู่อีเมล",
|
|
9831
9707
|
url: "URL",
|
|
@@ -9855,10 +9731,23 @@ var error38 = () => {
|
|
|
9855
9731
|
jwt: "โทเคน JWT",
|
|
9856
9732
|
template_literal: "ข้อมูลที่ป้อน"
|
|
9857
9733
|
};
|
|
9734
|
+
const TypeDictionary = {
|
|
9735
|
+
nan: "NaN",
|
|
9736
|
+
number: "ตัวเลข",
|
|
9737
|
+
array: "อาร์เรย์ (Array)",
|
|
9738
|
+
null: "ไม่มีค่า (null)"
|
|
9739
|
+
};
|
|
9858
9740
|
return (issue2) => {
|
|
9859
9741
|
switch (issue2.code) {
|
|
9860
|
-
case "invalid_type":
|
|
9861
|
-
|
|
9742
|
+
case "invalid_type": {
|
|
9743
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9744
|
+
const receivedType = parsedType(issue2.input);
|
|
9745
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9746
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9747
|
+
return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${issue2.expected} แต่ได้รับ ${received}`;
|
|
9748
|
+
}
|
|
9749
|
+
return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${expected} แต่ได้รับ ${received}`;
|
|
9750
|
+
}
|
|
9862
9751
|
case "invalid_value":
|
|
9863
9752
|
if (issue2.values.length === 1)
|
|
9864
9753
|
return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -9889,7 +9778,7 @@ var error38 = () => {
|
|
|
9889
9778
|
return `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${_issue.includes}" อยู่ในข้อความ`;
|
|
9890
9779
|
if (_issue.format === "regex")
|
|
9891
9780
|
return `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${_issue.pattern}`;
|
|
9892
|
-
return `รูปแบบไม่ถูกต้อง: ${
|
|
9781
|
+
return `รูปแบบไม่ถูกต้อง: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9893
9782
|
}
|
|
9894
9783
|
case "not_multiple_of":
|
|
9895
9784
|
return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${issue2.divisor} ได้ลงตัว`;
|
|
@@ -9908,31 +9797,11 @@ var error38 = () => {
|
|
|
9908
9797
|
};
|
|
9909
9798
|
function th_default() {
|
|
9910
9799
|
return {
|
|
9911
|
-
localeError:
|
|
9800
|
+
localeError: error39()
|
|
9912
9801
|
};
|
|
9913
9802
|
}
|
|
9914
9803
|
// node_modules/zod/v4/locales/tr.js
|
|
9915
|
-
var
|
|
9916
|
-
const t = typeof data;
|
|
9917
|
-
switch (t) {
|
|
9918
|
-
case "number": {
|
|
9919
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
9920
|
-
}
|
|
9921
|
-
case "object": {
|
|
9922
|
-
if (Array.isArray(data)) {
|
|
9923
|
-
return "array";
|
|
9924
|
-
}
|
|
9925
|
-
if (data === null) {
|
|
9926
|
-
return "null";
|
|
9927
|
-
}
|
|
9928
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
9929
|
-
return data.constructor.name;
|
|
9930
|
-
}
|
|
9931
|
-
}
|
|
9932
|
-
}
|
|
9933
|
-
return t;
|
|
9934
|
-
};
|
|
9935
|
-
var error39 = () => {
|
|
9804
|
+
var error40 = () => {
|
|
9936
9805
|
const Sizable = {
|
|
9937
9806
|
string: { unit: "karakter", verb: "olmalı" },
|
|
9938
9807
|
file: { unit: "bayt", verb: "olmalı" },
|
|
@@ -9942,7 +9811,7 @@ var error39 = () => {
|
|
|
9942
9811
|
function getSizing(origin) {
|
|
9943
9812
|
return Sizable[origin] ?? null;
|
|
9944
9813
|
}
|
|
9945
|
-
const
|
|
9814
|
+
const FormatDictionary = {
|
|
9946
9815
|
regex: "girdi",
|
|
9947
9816
|
email: "e-posta adresi",
|
|
9948
9817
|
url: "URL",
|
|
@@ -9972,10 +9841,20 @@ var error39 = () => {
|
|
|
9972
9841
|
jwt: "JWT",
|
|
9973
9842
|
template_literal: "Şablon dizesi"
|
|
9974
9843
|
};
|
|
9844
|
+
const TypeDictionary = {
|
|
9845
|
+
nan: "NaN"
|
|
9846
|
+
};
|
|
9975
9847
|
return (issue2) => {
|
|
9976
9848
|
switch (issue2.code) {
|
|
9977
|
-
case "invalid_type":
|
|
9978
|
-
|
|
9849
|
+
case "invalid_type": {
|
|
9850
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9851
|
+
const receivedType = parsedType(issue2.input);
|
|
9852
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9853
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9854
|
+
return `Geçersiz değer: beklenen instanceof ${issue2.expected}, alınan ${received}`;
|
|
9855
|
+
}
|
|
9856
|
+
return `Geçersiz değer: beklenen ${expected}, alınan ${received}`;
|
|
9857
|
+
}
|
|
9979
9858
|
case "invalid_value":
|
|
9980
9859
|
if (issue2.values.length === 1)
|
|
9981
9860
|
return `Geçersiz değer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -10004,7 +9883,7 @@ var error39 = () => {
|
|
|
10004
9883
|
return `Geçersiz metin: "${_issue.includes}" içermeli`;
|
|
10005
9884
|
if (_issue.format === "regex")
|
|
10006
9885
|
return `Geçersiz metin: ${_issue.pattern} desenine uymalı`;
|
|
10007
|
-
return `Geçersiz ${
|
|
9886
|
+
return `Geçersiz ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10008
9887
|
}
|
|
10009
9888
|
case "not_multiple_of":
|
|
10010
9889
|
return `Geçersiz sayı: ${issue2.divisor} ile tam bölünebilmeli`;
|
|
@@ -10023,11 +9902,11 @@ var error39 = () => {
|
|
|
10023
9902
|
};
|
|
10024
9903
|
function tr_default() {
|
|
10025
9904
|
return {
|
|
10026
|
-
localeError:
|
|
9905
|
+
localeError: error40()
|
|
10027
9906
|
};
|
|
10028
9907
|
}
|
|
10029
9908
|
// node_modules/zod/v4/locales/uk.js
|
|
10030
|
-
var
|
|
9909
|
+
var error41 = () => {
|
|
10031
9910
|
const Sizable = {
|
|
10032
9911
|
string: { unit: "символів", verb: "матиме" },
|
|
10033
9912
|
file: { unit: "байтів", verb: "матиме" },
|
|
@@ -10037,27 +9916,7 @@ var error40 = () => {
|
|
|
10037
9916
|
function getSizing(origin) {
|
|
10038
9917
|
return Sizable[origin] ?? null;
|
|
10039
9918
|
}
|
|
10040
|
-
const
|
|
10041
|
-
const t = typeof data;
|
|
10042
|
-
switch (t) {
|
|
10043
|
-
case "number": {
|
|
10044
|
-
return Number.isNaN(data) ? "NaN" : "число";
|
|
10045
|
-
}
|
|
10046
|
-
case "object": {
|
|
10047
|
-
if (Array.isArray(data)) {
|
|
10048
|
-
return "масив";
|
|
10049
|
-
}
|
|
10050
|
-
if (data === null) {
|
|
10051
|
-
return "null";
|
|
10052
|
-
}
|
|
10053
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
10054
|
-
return data.constructor.name;
|
|
10055
|
-
}
|
|
10056
|
-
}
|
|
10057
|
-
}
|
|
10058
|
-
return t;
|
|
10059
|
-
};
|
|
10060
|
-
const Nouns = {
|
|
9919
|
+
const FormatDictionary = {
|
|
10061
9920
|
regex: "вхідні дані",
|
|
10062
9921
|
email: "адреса електронної пошти",
|
|
10063
9922
|
url: "URL",
|
|
@@ -10087,10 +9946,22 @@ var error40 = () => {
|
|
|
10087
9946
|
jwt: "JWT",
|
|
10088
9947
|
template_literal: "вхідні дані"
|
|
10089
9948
|
};
|
|
9949
|
+
const TypeDictionary = {
|
|
9950
|
+
nan: "NaN",
|
|
9951
|
+
number: "число",
|
|
9952
|
+
array: "масив"
|
|
9953
|
+
};
|
|
10090
9954
|
return (issue2) => {
|
|
10091
9955
|
switch (issue2.code) {
|
|
10092
|
-
case "invalid_type":
|
|
10093
|
-
|
|
9956
|
+
case "invalid_type": {
|
|
9957
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9958
|
+
const receivedType = parsedType(issue2.input);
|
|
9959
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9960
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9961
|
+
return `Неправильні вхідні дані: очікується instanceof ${issue2.expected}, отримано ${received}`;
|
|
9962
|
+
}
|
|
9963
|
+
return `Неправильні вхідні дані: очікується ${expected}, отримано ${received}`;
|
|
9964
|
+
}
|
|
10094
9965
|
case "invalid_value":
|
|
10095
9966
|
if (issue2.values.length === 1)
|
|
10096
9967
|
return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -10120,7 +9991,7 @@ var error40 = () => {
|
|
|
10120
9991
|
return `Неправильний рядок: повинен містити "${_issue.includes}"`;
|
|
10121
9992
|
if (_issue.format === "regex")
|
|
10122
9993
|
return `Неправильний рядок: повинен відповідати шаблону ${_issue.pattern}`;
|
|
10123
|
-
return `Неправильний ${
|
|
9994
|
+
return `Неправильний ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10124
9995
|
}
|
|
10125
9996
|
case "not_multiple_of":
|
|
10126
9997
|
return `Неправильне число: повинно бути кратним ${issue2.divisor}`;
|
|
@@ -10139,7 +10010,7 @@ var error40 = () => {
|
|
|
10139
10010
|
};
|
|
10140
10011
|
function uk_default() {
|
|
10141
10012
|
return {
|
|
10142
|
-
localeError:
|
|
10013
|
+
localeError: error41()
|
|
10143
10014
|
};
|
|
10144
10015
|
}
|
|
10145
10016
|
|
|
@@ -10148,7 +10019,7 @@ function ua_default() {
|
|
|
10148
10019
|
return uk_default();
|
|
10149
10020
|
}
|
|
10150
10021
|
// node_modules/zod/v4/locales/ur.js
|
|
10151
|
-
var
|
|
10022
|
+
var error42 = () => {
|
|
10152
10023
|
const Sizable = {
|
|
10153
10024
|
string: { unit: "حروف", verb: "ہونا" },
|
|
10154
10025
|
file: { unit: "بائٹس", verb: "ہونا" },
|
|
@@ -10158,27 +10029,7 @@ var error41 = () => {
|
|
|
10158
10029
|
function getSizing(origin) {
|
|
10159
10030
|
return Sizable[origin] ?? null;
|
|
10160
10031
|
}
|
|
10161
|
-
const
|
|
10162
|
-
const t = typeof data;
|
|
10163
|
-
switch (t) {
|
|
10164
|
-
case "number": {
|
|
10165
|
-
return Number.isNaN(data) ? "NaN" : "نمبر";
|
|
10166
|
-
}
|
|
10167
|
-
case "object": {
|
|
10168
|
-
if (Array.isArray(data)) {
|
|
10169
|
-
return "آرے";
|
|
10170
|
-
}
|
|
10171
|
-
if (data === null) {
|
|
10172
|
-
return "نل";
|
|
10173
|
-
}
|
|
10174
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
10175
|
-
return data.constructor.name;
|
|
10176
|
-
}
|
|
10177
|
-
}
|
|
10178
|
-
}
|
|
10179
|
-
return t;
|
|
10180
|
-
};
|
|
10181
|
-
const Nouns = {
|
|
10032
|
+
const FormatDictionary = {
|
|
10182
10033
|
regex: "ان پٹ",
|
|
10183
10034
|
email: "ای میل ایڈریس",
|
|
10184
10035
|
url: "یو آر ایل",
|
|
@@ -10208,10 +10059,23 @@ var error41 = () => {
|
|
|
10208
10059
|
jwt: "جے ڈبلیو ٹی",
|
|
10209
10060
|
template_literal: "ان پٹ"
|
|
10210
10061
|
};
|
|
10062
|
+
const TypeDictionary = {
|
|
10063
|
+
nan: "NaN",
|
|
10064
|
+
number: "نمبر",
|
|
10065
|
+
array: "آرے",
|
|
10066
|
+
null: "نل"
|
|
10067
|
+
};
|
|
10211
10068
|
return (issue2) => {
|
|
10212
10069
|
switch (issue2.code) {
|
|
10213
|
-
case "invalid_type":
|
|
10214
|
-
|
|
10070
|
+
case "invalid_type": {
|
|
10071
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10072
|
+
const receivedType = parsedType(issue2.input);
|
|
10073
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10074
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10075
|
+
return `غلط ان پٹ: instanceof ${issue2.expected} متوقع تھا، ${received} موصول ہوا`;
|
|
10076
|
+
}
|
|
10077
|
+
return `غلط ان پٹ: ${expected} متوقع تھا، ${received} موصول ہوا`;
|
|
10078
|
+
}
|
|
10215
10079
|
case "invalid_value":
|
|
10216
10080
|
if (issue2.values.length === 1)
|
|
10217
10081
|
return `غلط ان پٹ: ${stringifyPrimitive(issue2.values[0])} متوقع تھا`;
|
|
@@ -10242,7 +10106,7 @@ var error41 = () => {
|
|
|
10242
10106
|
return `غلط سٹرنگ: "${_issue.includes}" شامل ہونا چاہیے`;
|
|
10243
10107
|
if (_issue.format === "regex")
|
|
10244
10108
|
return `غلط سٹرنگ: پیٹرن ${_issue.pattern} سے میچ ہونا چاہیے`;
|
|
10245
|
-
return `غلط ${
|
|
10109
|
+
return `غلط ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10246
10110
|
}
|
|
10247
10111
|
case "not_multiple_of":
|
|
10248
10112
|
return `غلط نمبر: ${issue2.divisor} کا مضاعف ہونا چاہیے`;
|
|
@@ -10261,41 +10125,130 @@ var error41 = () => {
|
|
|
10261
10125
|
};
|
|
10262
10126
|
function ur_default() {
|
|
10263
10127
|
return {
|
|
10264
|
-
localeError:
|
|
10128
|
+
localeError: error42()
|
|
10265
10129
|
};
|
|
10266
10130
|
}
|
|
10267
|
-
// node_modules/zod/v4/locales/
|
|
10268
|
-
var
|
|
10131
|
+
// node_modules/zod/v4/locales/uz.js
|
|
10132
|
+
var error43 = () => {
|
|
10269
10133
|
const Sizable = {
|
|
10270
|
-
string: { unit: "
|
|
10271
|
-
file: { unit: "
|
|
10272
|
-
array: { unit: "
|
|
10273
|
-
set: { unit: "
|
|
10134
|
+
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
10135
|
+
file: { unit: "bayt", verb: "bo‘lishi kerak" },
|
|
10136
|
+
array: { unit: "element", verb: "bo‘lishi kerak" },
|
|
10137
|
+
set: { unit: "element", verb: "bo‘lishi kerak" }
|
|
10274
10138
|
};
|
|
10275
10139
|
function getSizing(origin) {
|
|
10276
10140
|
return Sizable[origin] ?? null;
|
|
10277
10141
|
}
|
|
10278
|
-
const
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10142
|
+
const FormatDictionary = {
|
|
10143
|
+
regex: "kirish",
|
|
10144
|
+
email: "elektron pochta manzili",
|
|
10145
|
+
url: "URL",
|
|
10146
|
+
emoji: "emoji",
|
|
10147
|
+
uuid: "UUID",
|
|
10148
|
+
uuidv4: "UUIDv4",
|
|
10149
|
+
uuidv6: "UUIDv6",
|
|
10150
|
+
nanoid: "nanoid",
|
|
10151
|
+
guid: "GUID",
|
|
10152
|
+
cuid: "cuid",
|
|
10153
|
+
cuid2: "cuid2",
|
|
10154
|
+
ulid: "ULID",
|
|
10155
|
+
xid: "XID",
|
|
10156
|
+
ksuid: "KSUID",
|
|
10157
|
+
datetime: "ISO sana va vaqti",
|
|
10158
|
+
date: "ISO sana",
|
|
10159
|
+
time: "ISO vaqt",
|
|
10160
|
+
duration: "ISO davomiylik",
|
|
10161
|
+
ipv4: "IPv4 manzil",
|
|
10162
|
+
ipv6: "IPv6 manzil",
|
|
10163
|
+
mac: "MAC manzil",
|
|
10164
|
+
cidrv4: "IPv4 diapazon",
|
|
10165
|
+
cidrv6: "IPv6 diapazon",
|
|
10166
|
+
base64: "base64 kodlangan satr",
|
|
10167
|
+
base64url: "base64url kodlangan satr",
|
|
10168
|
+
json_string: "JSON satr",
|
|
10169
|
+
e164: "E.164 raqam",
|
|
10170
|
+
jwt: "JWT",
|
|
10171
|
+
template_literal: "kirish"
|
|
10172
|
+
};
|
|
10173
|
+
const TypeDictionary = {
|
|
10174
|
+
nan: "NaN",
|
|
10175
|
+
number: "raqam",
|
|
10176
|
+
array: "massiv"
|
|
10177
|
+
};
|
|
10178
|
+
return (issue2) => {
|
|
10179
|
+
switch (issue2.code) {
|
|
10180
|
+
case "invalid_type": {
|
|
10181
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10182
|
+
const receivedType = parsedType(issue2.input);
|
|
10183
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10184
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10185
|
+
return `Noto‘g‘ri kirish: kutilgan instanceof ${issue2.expected}, qabul qilingan ${received}`;
|
|
10290
10186
|
}
|
|
10291
|
-
|
|
10292
|
-
|
|
10187
|
+
return `Noto‘g‘ri kirish: kutilgan ${expected}, qabul qilingan ${received}`;
|
|
10188
|
+
}
|
|
10189
|
+
case "invalid_value":
|
|
10190
|
+
if (issue2.values.length === 1)
|
|
10191
|
+
return `Noto‘g‘ri kirish: kutilgan ${stringifyPrimitive(issue2.values[0])}`;
|
|
10192
|
+
return `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${joinValues(issue2.values, "|")}`;
|
|
10193
|
+
case "too_big": {
|
|
10194
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
10195
|
+
const sizing = getSizing(issue2.origin);
|
|
10196
|
+
if (sizing)
|
|
10197
|
+
return `Juda katta: kutilgan ${issue2.origin ?? "qiymat"} ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
10198
|
+
return `Juda katta: kutilgan ${issue2.origin ?? "qiymat"} ${adj}${issue2.maximum.toString()}`;
|
|
10199
|
+
}
|
|
10200
|
+
case "too_small": {
|
|
10201
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
10202
|
+
const sizing = getSizing(issue2.origin);
|
|
10203
|
+
if (sizing) {
|
|
10204
|
+
return `Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
10293
10205
|
}
|
|
10206
|
+
return `Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
|
|
10207
|
+
}
|
|
10208
|
+
case "invalid_format": {
|
|
10209
|
+
const _issue = issue2;
|
|
10210
|
+
if (_issue.format === "starts_with")
|
|
10211
|
+
return `Noto‘g‘ri satr: "${_issue.prefix}" bilan boshlanishi kerak`;
|
|
10212
|
+
if (_issue.format === "ends_with")
|
|
10213
|
+
return `Noto‘g‘ri satr: "${_issue.suffix}" bilan tugashi kerak`;
|
|
10214
|
+
if (_issue.format === "includes")
|
|
10215
|
+
return `Noto‘g‘ri satr: "${_issue.includes}" ni o‘z ichiga olishi kerak`;
|
|
10216
|
+
if (_issue.format === "regex")
|
|
10217
|
+
return `Noto‘g‘ri satr: ${_issue.pattern} shabloniga mos kelishi kerak`;
|
|
10218
|
+
return `Noto‘g‘ri ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10294
10219
|
}
|
|
10220
|
+
case "not_multiple_of":
|
|
10221
|
+
return `Noto‘g‘ri raqam: ${issue2.divisor} ning karralisi bo‘lishi kerak`;
|
|
10222
|
+
case "unrecognized_keys":
|
|
10223
|
+
return `Noma’lum kalit${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
10224
|
+
case "invalid_key":
|
|
10225
|
+
return `${issue2.origin} dagi kalit noto‘g‘ri`;
|
|
10226
|
+
case "invalid_union":
|
|
10227
|
+
return "Noto‘g‘ri kirish";
|
|
10228
|
+
case "invalid_element":
|
|
10229
|
+
return `${issue2.origin} da noto‘g‘ri qiymat`;
|
|
10230
|
+
default:
|
|
10231
|
+
return `Noto‘g‘ri kirish`;
|
|
10295
10232
|
}
|
|
10296
|
-
return t;
|
|
10297
10233
|
};
|
|
10298
|
-
|
|
10234
|
+
};
|
|
10235
|
+
function uz_default() {
|
|
10236
|
+
return {
|
|
10237
|
+
localeError: error43()
|
|
10238
|
+
};
|
|
10239
|
+
}
|
|
10240
|
+
// node_modules/zod/v4/locales/vi.js
|
|
10241
|
+
var error44 = () => {
|
|
10242
|
+
const Sizable = {
|
|
10243
|
+
string: { unit: "ký tự", verb: "có" },
|
|
10244
|
+
file: { unit: "byte", verb: "có" },
|
|
10245
|
+
array: { unit: "phần tử", verb: "có" },
|
|
10246
|
+
set: { unit: "phần tử", verb: "có" }
|
|
10247
|
+
};
|
|
10248
|
+
function getSizing(origin) {
|
|
10249
|
+
return Sizable[origin] ?? null;
|
|
10250
|
+
}
|
|
10251
|
+
const FormatDictionary = {
|
|
10299
10252
|
regex: "đầu vào",
|
|
10300
10253
|
email: "địa chỉ email",
|
|
10301
10254
|
url: "URL",
|
|
@@ -10325,10 +10278,22 @@ var error42 = () => {
|
|
|
10325
10278
|
jwt: "JWT",
|
|
10326
10279
|
template_literal: "đầu vào"
|
|
10327
10280
|
};
|
|
10281
|
+
const TypeDictionary = {
|
|
10282
|
+
nan: "NaN",
|
|
10283
|
+
number: "số",
|
|
10284
|
+
array: "mảng"
|
|
10285
|
+
};
|
|
10328
10286
|
return (issue2) => {
|
|
10329
10287
|
switch (issue2.code) {
|
|
10330
|
-
case "invalid_type":
|
|
10331
|
-
|
|
10288
|
+
case "invalid_type": {
|
|
10289
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10290
|
+
const receivedType = parsedType(issue2.input);
|
|
10291
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10292
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10293
|
+
return `Đầu vào không hợp lệ: mong đợi instanceof ${issue2.expected}, nhận được ${received}`;
|
|
10294
|
+
}
|
|
10295
|
+
return `Đầu vào không hợp lệ: mong đợi ${expected}, nhận được ${received}`;
|
|
10296
|
+
}
|
|
10332
10297
|
case "invalid_value":
|
|
10333
10298
|
if (issue2.values.length === 1)
|
|
10334
10299
|
return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -10358,7 +10323,7 @@ var error42 = () => {
|
|
|
10358
10323
|
return `Chuỗi không hợp lệ: phải bao gồm "${_issue.includes}"`;
|
|
10359
10324
|
if (_issue.format === "regex")
|
|
10360
10325
|
return `Chuỗi không hợp lệ: phải khớp với mẫu ${_issue.pattern}`;
|
|
10361
|
-
return `${
|
|
10326
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} không hợp lệ`;
|
|
10362
10327
|
}
|
|
10363
10328
|
case "not_multiple_of":
|
|
10364
10329
|
return `Số không hợp lệ: phải là bội số của ${issue2.divisor}`;
|
|
@@ -10377,11 +10342,11 @@ var error42 = () => {
|
|
|
10377
10342
|
};
|
|
10378
10343
|
function vi_default() {
|
|
10379
10344
|
return {
|
|
10380
|
-
localeError:
|
|
10345
|
+
localeError: error44()
|
|
10381
10346
|
};
|
|
10382
10347
|
}
|
|
10383
10348
|
// node_modules/zod/v4/locales/zh-CN.js
|
|
10384
|
-
var
|
|
10349
|
+
var error45 = () => {
|
|
10385
10350
|
const Sizable = {
|
|
10386
10351
|
string: { unit: "字符", verb: "包含" },
|
|
10387
10352
|
file: { unit: "字节", verb: "包含" },
|
|
@@ -10391,27 +10356,7 @@ var error43 = () => {
|
|
|
10391
10356
|
function getSizing(origin) {
|
|
10392
10357
|
return Sizable[origin] ?? null;
|
|
10393
10358
|
}
|
|
10394
|
-
const
|
|
10395
|
-
const t = typeof data;
|
|
10396
|
-
switch (t) {
|
|
10397
|
-
case "number": {
|
|
10398
|
-
return Number.isNaN(data) ? "非数字(NaN)" : "数字";
|
|
10399
|
-
}
|
|
10400
|
-
case "object": {
|
|
10401
|
-
if (Array.isArray(data)) {
|
|
10402
|
-
return "数组";
|
|
10403
|
-
}
|
|
10404
|
-
if (data === null) {
|
|
10405
|
-
return "空值(null)";
|
|
10406
|
-
}
|
|
10407
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
10408
|
-
return data.constructor.name;
|
|
10409
|
-
}
|
|
10410
|
-
}
|
|
10411
|
-
}
|
|
10412
|
-
return t;
|
|
10413
|
-
};
|
|
10414
|
-
const Nouns = {
|
|
10359
|
+
const FormatDictionary = {
|
|
10415
10360
|
regex: "输入",
|
|
10416
10361
|
email: "电子邮件",
|
|
10417
10362
|
url: "URL",
|
|
@@ -10441,10 +10386,23 @@ var error43 = () => {
|
|
|
10441
10386
|
jwt: "JWT",
|
|
10442
10387
|
template_literal: "输入"
|
|
10443
10388
|
};
|
|
10389
|
+
const TypeDictionary = {
|
|
10390
|
+
nan: "NaN",
|
|
10391
|
+
number: "数字",
|
|
10392
|
+
array: "数组",
|
|
10393
|
+
null: "空值(null)"
|
|
10394
|
+
};
|
|
10444
10395
|
return (issue2) => {
|
|
10445
10396
|
switch (issue2.code) {
|
|
10446
|
-
case "invalid_type":
|
|
10447
|
-
|
|
10397
|
+
case "invalid_type": {
|
|
10398
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10399
|
+
const receivedType = parsedType(issue2.input);
|
|
10400
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10401
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10402
|
+
return `无效输入:期望 instanceof ${issue2.expected},实际接收 ${received}`;
|
|
10403
|
+
}
|
|
10404
|
+
return `无效输入:期望 ${expected},实际接收 ${received}`;
|
|
10405
|
+
}
|
|
10448
10406
|
case "invalid_value":
|
|
10449
10407
|
if (issue2.values.length === 1)
|
|
10450
10408
|
return `无效输入:期望 ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -10474,7 +10432,7 @@ var error43 = () => {
|
|
|
10474
10432
|
return `无效字符串:必须包含 "${_issue.includes}"`;
|
|
10475
10433
|
if (_issue.format === "regex")
|
|
10476
10434
|
return `无效字符串:必须满足正则表达式 ${_issue.pattern}`;
|
|
10477
|
-
return `无效${
|
|
10435
|
+
return `无效${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10478
10436
|
}
|
|
10479
10437
|
case "not_multiple_of":
|
|
10480
10438
|
return `无效数字:必须是 ${issue2.divisor} 的倍数`;
|
|
@@ -10493,11 +10451,11 @@ var error43 = () => {
|
|
|
10493
10451
|
};
|
|
10494
10452
|
function zh_CN_default() {
|
|
10495
10453
|
return {
|
|
10496
|
-
localeError:
|
|
10454
|
+
localeError: error45()
|
|
10497
10455
|
};
|
|
10498
10456
|
}
|
|
10499
10457
|
// node_modules/zod/v4/locales/zh-TW.js
|
|
10500
|
-
var
|
|
10458
|
+
var error46 = () => {
|
|
10501
10459
|
const Sizable = {
|
|
10502
10460
|
string: { unit: "字元", verb: "擁有" },
|
|
10503
10461
|
file: { unit: "位元組", verb: "擁有" },
|
|
@@ -10507,27 +10465,7 @@ var error44 = () => {
|
|
|
10507
10465
|
function getSizing(origin) {
|
|
10508
10466
|
return Sizable[origin] ?? null;
|
|
10509
10467
|
}
|
|
10510
|
-
const
|
|
10511
|
-
const t = typeof data;
|
|
10512
|
-
switch (t) {
|
|
10513
|
-
case "number": {
|
|
10514
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
|
10515
|
-
}
|
|
10516
|
-
case "object": {
|
|
10517
|
-
if (Array.isArray(data)) {
|
|
10518
|
-
return "array";
|
|
10519
|
-
}
|
|
10520
|
-
if (data === null) {
|
|
10521
|
-
return "null";
|
|
10522
|
-
}
|
|
10523
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
10524
|
-
return data.constructor.name;
|
|
10525
|
-
}
|
|
10526
|
-
}
|
|
10527
|
-
}
|
|
10528
|
-
return t;
|
|
10529
|
-
};
|
|
10530
|
-
const Nouns = {
|
|
10468
|
+
const FormatDictionary = {
|
|
10531
10469
|
regex: "輸入",
|
|
10532
10470
|
email: "郵件地址",
|
|
10533
10471
|
url: "URL",
|
|
@@ -10557,10 +10495,20 @@ var error44 = () => {
|
|
|
10557
10495
|
jwt: "JWT",
|
|
10558
10496
|
template_literal: "輸入"
|
|
10559
10497
|
};
|
|
10498
|
+
const TypeDictionary = {
|
|
10499
|
+
nan: "NaN"
|
|
10500
|
+
};
|
|
10560
10501
|
return (issue2) => {
|
|
10561
10502
|
switch (issue2.code) {
|
|
10562
|
-
case "invalid_type":
|
|
10563
|
-
|
|
10503
|
+
case "invalid_type": {
|
|
10504
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10505
|
+
const receivedType = parsedType(issue2.input);
|
|
10506
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10507
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10508
|
+
return `無效的輸入值:預期為 instanceof ${issue2.expected},但收到 ${received}`;
|
|
10509
|
+
}
|
|
10510
|
+
return `無效的輸入值:預期為 ${expected},但收到 ${received}`;
|
|
10511
|
+
}
|
|
10564
10512
|
case "invalid_value":
|
|
10565
10513
|
if (issue2.values.length === 1)
|
|
10566
10514
|
return `無效的輸入值:預期為 ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -10591,7 +10539,7 @@ var error44 = () => {
|
|
|
10591
10539
|
return `無效的字串:必須包含 "${_issue.includes}"`;
|
|
10592
10540
|
if (_issue.format === "regex")
|
|
10593
10541
|
return `無效的字串:必須符合格式 ${_issue.pattern}`;
|
|
10594
|
-
return `無效的 ${
|
|
10542
|
+
return `無效的 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10595
10543
|
}
|
|
10596
10544
|
case "not_multiple_of":
|
|
10597
10545
|
return `無效的數字:必須為 ${issue2.divisor} 的倍數`;
|
|
@@ -10610,11 +10558,11 @@ var error44 = () => {
|
|
|
10610
10558
|
};
|
|
10611
10559
|
function zh_TW_default() {
|
|
10612
10560
|
return {
|
|
10613
|
-
localeError:
|
|
10561
|
+
localeError: error46()
|
|
10614
10562
|
};
|
|
10615
10563
|
}
|
|
10616
10564
|
// node_modules/zod/v4/locales/yo.js
|
|
10617
|
-
var
|
|
10565
|
+
var error47 = () => {
|
|
10618
10566
|
const Sizable = {
|
|
10619
10567
|
string: { unit: "àmi", verb: "ní" },
|
|
10620
10568
|
file: { unit: "bytes", verb: "ní" },
|
|
@@ -10624,27 +10572,7 @@ var error45 = () => {
|
|
|
10624
10572
|
function getSizing(origin) {
|
|
10625
10573
|
return Sizable[origin] ?? null;
|
|
10626
10574
|
}
|
|
10627
|
-
const
|
|
10628
|
-
const t = typeof data;
|
|
10629
|
-
switch (t) {
|
|
10630
|
-
case "number": {
|
|
10631
|
-
return Number.isNaN(data) ? "NaN" : "nọ́mbà";
|
|
10632
|
-
}
|
|
10633
|
-
case "object": {
|
|
10634
|
-
if (Array.isArray(data)) {
|
|
10635
|
-
return "akopọ";
|
|
10636
|
-
}
|
|
10637
|
-
if (data === null) {
|
|
10638
|
-
return "null";
|
|
10639
|
-
}
|
|
10640
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
10641
|
-
return data.constructor.name;
|
|
10642
|
-
}
|
|
10643
|
-
}
|
|
10644
|
-
}
|
|
10645
|
-
return t;
|
|
10646
|
-
};
|
|
10647
|
-
const Nouns = {
|
|
10575
|
+
const FormatDictionary = {
|
|
10648
10576
|
regex: "ẹ̀rọ ìbáwọlé",
|
|
10649
10577
|
email: "àdírẹ́sì ìmẹ́lì",
|
|
10650
10578
|
url: "URL",
|
|
@@ -10674,10 +10602,22 @@ var error45 = () => {
|
|
|
10674
10602
|
jwt: "JWT",
|
|
10675
10603
|
template_literal: "ẹ̀rọ ìbáwọlé"
|
|
10676
10604
|
};
|
|
10605
|
+
const TypeDictionary = {
|
|
10606
|
+
nan: "NaN",
|
|
10607
|
+
number: "nọ́mbà",
|
|
10608
|
+
array: "akopọ"
|
|
10609
|
+
};
|
|
10677
10610
|
return (issue2) => {
|
|
10678
10611
|
switch (issue2.code) {
|
|
10679
|
-
case "invalid_type":
|
|
10680
|
-
|
|
10612
|
+
case "invalid_type": {
|
|
10613
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10614
|
+
const receivedType = parsedType(issue2.input);
|
|
10615
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10616
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10617
|
+
return `Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${issue2.expected}, àmọ̀ a rí ${received}`;
|
|
10618
|
+
}
|
|
10619
|
+
return `Ìbáwọlé aṣìṣe: a ní láti fi ${expected}, àmọ̀ a rí ${received}`;
|
|
10620
|
+
}
|
|
10681
10621
|
case "invalid_value":
|
|
10682
10622
|
if (issue2.values.length === 1)
|
|
10683
10623
|
return `Ìbáwọlé aṣìṣe: a ní láti fi ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -10706,7 +10646,7 @@ var error45 = () => {
|
|
|
10706
10646
|
return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${_issue.includes}"`;
|
|
10707
10647
|
if (_issue.format === "regex")
|
|
10708
10648
|
return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${_issue.pattern}`;
|
|
10709
|
-
return `Aṣìṣe: ${
|
|
10649
|
+
return `Aṣìṣe: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10710
10650
|
}
|
|
10711
10651
|
case "not_multiple_of":
|
|
10712
10652
|
return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${issue2.divisor}`;
|
|
@@ -10725,7 +10665,7 @@ var error45 = () => {
|
|
|
10725
10665
|
};
|
|
10726
10666
|
function yo_default() {
|
|
10727
10667
|
return {
|
|
10728
|
-
localeError:
|
|
10668
|
+
localeError: error47()
|
|
10729
10669
|
};
|
|
10730
10670
|
}
|
|
10731
10671
|
// node_modules/zod/v4/core/registries.js
|
|
@@ -10742,9 +10682,6 @@ class $ZodRegistry {
|
|
|
10742
10682
|
const meta = _meta[0];
|
|
10743
10683
|
this._map.set(schema, meta);
|
|
10744
10684
|
if (meta && typeof meta === "object" && "id" in meta) {
|
|
10745
|
-
if (this._idmap.has(meta.id)) {
|
|
10746
|
-
throw new Error(`ID ${meta.id} already exists in the registry`);
|
|
10747
|
-
}
|
|
10748
10685
|
this._idmap.set(meta.id, schema);
|
|
10749
10686
|
}
|
|
10750
10687
|
return this;
|
|
@@ -11745,12 +11682,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11745
11682
|
schemaPath: [..._params.schemaPath, schema],
|
|
11746
11683
|
path: _params.path
|
|
11747
11684
|
};
|
|
11748
|
-
|
|
11749
|
-
if (parent) {
|
|
11750
|
-
result.ref = parent;
|
|
11751
|
-
process2(parent, ctx, params);
|
|
11752
|
-
ctx.seen.get(parent).isParent = true;
|
|
11753
|
-
} else if (schema._zod.processJSONSchema) {
|
|
11685
|
+
if (schema._zod.processJSONSchema) {
|
|
11754
11686
|
schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
11755
11687
|
} else {
|
|
11756
11688
|
const _json = result.schema;
|
|
@@ -11760,6 +11692,13 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11760
11692
|
}
|
|
11761
11693
|
processor(schema, ctx, _json, params);
|
|
11762
11694
|
}
|
|
11695
|
+
const parent = schema._zod.parent;
|
|
11696
|
+
if (parent) {
|
|
11697
|
+
if (!result.ref)
|
|
11698
|
+
result.ref = parent;
|
|
11699
|
+
process2(parent, ctx, params);
|
|
11700
|
+
ctx.seen.get(parent).isParent = true;
|
|
11701
|
+
}
|
|
11763
11702
|
}
|
|
11764
11703
|
const meta2 = ctx.metadataRegistry.get(schema);
|
|
11765
11704
|
if (meta2)
|
|
@@ -11778,6 +11717,17 @@ function extractDefs(ctx, schema) {
|
|
|
11778
11717
|
const root = ctx.seen.get(schema);
|
|
11779
11718
|
if (!root)
|
|
11780
11719
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
11720
|
+
const idToSchema = new Map;
|
|
11721
|
+
for (const entry of ctx.seen.entries()) {
|
|
11722
|
+
const id = ctx.metadataRegistry.get(entry[0])?.id;
|
|
11723
|
+
if (id) {
|
|
11724
|
+
const existing = idToSchema.get(id);
|
|
11725
|
+
if (existing && existing !== entry[0]) {
|
|
11726
|
+
throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
|
|
11727
|
+
}
|
|
11728
|
+
idToSchema.set(id, entry[0]);
|
|
11729
|
+
}
|
|
11730
|
+
}
|
|
11781
11731
|
const makeURI = (entry) => {
|
|
11782
11732
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
11783
11733
|
if (ctx.external) {
|
|
@@ -11857,30 +11807,65 @@ function finalize(ctx, schema) {
|
|
|
11857
11807
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
11858
11808
|
const flattenRef = (zodSchema) => {
|
|
11859
11809
|
const seen = ctx.seen.get(zodSchema);
|
|
11810
|
+
if (seen.ref === null)
|
|
11811
|
+
return;
|
|
11860
11812
|
const schema2 = seen.def ?? seen.schema;
|
|
11861
11813
|
const _cached = { ...schema2 };
|
|
11862
|
-
if (seen.ref === null) {
|
|
11863
|
-
return;
|
|
11864
|
-
}
|
|
11865
11814
|
const ref = seen.ref;
|
|
11866
11815
|
seen.ref = null;
|
|
11867
11816
|
if (ref) {
|
|
11868
11817
|
flattenRef(ref);
|
|
11869
|
-
const
|
|
11818
|
+
const refSeen = ctx.seen.get(ref);
|
|
11819
|
+
const refSchema = refSeen.schema;
|
|
11870
11820
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
11871
11821
|
schema2.allOf = schema2.allOf ?? [];
|
|
11872
11822
|
schema2.allOf.push(refSchema);
|
|
11873
11823
|
} else {
|
|
11874
11824
|
Object.assign(schema2, refSchema);
|
|
11875
|
-
|
|
11825
|
+
}
|
|
11826
|
+
Object.assign(schema2, _cached);
|
|
11827
|
+
const isParentRef = zodSchema._zod.parent === ref;
|
|
11828
|
+
if (isParentRef) {
|
|
11829
|
+
for (const key in schema2) {
|
|
11830
|
+
if (key === "$ref" || key === "allOf")
|
|
11831
|
+
continue;
|
|
11832
|
+
if (!(key in _cached)) {
|
|
11833
|
+
delete schema2[key];
|
|
11834
|
+
}
|
|
11835
|
+
}
|
|
11836
|
+
}
|
|
11837
|
+
if (refSchema.$ref) {
|
|
11838
|
+
for (const key in schema2) {
|
|
11839
|
+
if (key === "$ref" || key === "allOf")
|
|
11840
|
+
continue;
|
|
11841
|
+
if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
|
|
11842
|
+
delete schema2[key];
|
|
11843
|
+
}
|
|
11844
|
+
}
|
|
11876
11845
|
}
|
|
11877
11846
|
}
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11847
|
+
const parent = zodSchema._zod.parent;
|
|
11848
|
+
if (parent && parent !== ref) {
|
|
11849
|
+
flattenRef(parent);
|
|
11850
|
+
const parentSeen = ctx.seen.get(parent);
|
|
11851
|
+
if (parentSeen?.schema.$ref) {
|
|
11852
|
+
schema2.$ref = parentSeen.schema.$ref;
|
|
11853
|
+
if (parentSeen.def) {
|
|
11854
|
+
for (const key in schema2) {
|
|
11855
|
+
if (key === "$ref" || key === "allOf")
|
|
11856
|
+
continue;
|
|
11857
|
+
if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
11858
|
+
delete schema2[key];
|
|
11859
|
+
}
|
|
11860
|
+
}
|
|
11861
|
+
}
|
|
11862
|
+
}
|
|
11863
|
+
}
|
|
11864
|
+
ctx.override({
|
|
11865
|
+
zodSchema,
|
|
11866
|
+
jsonSchema: schema2,
|
|
11867
|
+
path: seen.path ?? []
|
|
11868
|
+
});
|
|
11884
11869
|
};
|
|
11885
11870
|
for (const entry of [...ctx.seen.entries()].reverse()) {
|
|
11886
11871
|
flattenRef(entry[0]);
|
|
@@ -11922,8 +11907,8 @@ function finalize(ctx, schema) {
|
|
|
11922
11907
|
value: {
|
|
11923
11908
|
...schema["~standard"],
|
|
11924
11909
|
jsonSchema: {
|
|
11925
|
-
input: createStandardJSONSchemaMethod(schema, "input"),
|
|
11926
|
-
output: createStandardJSONSchemaMethod(schema, "output")
|
|
11910
|
+
input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
|
|
11911
|
+
output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
|
|
11927
11912
|
}
|
|
11928
11913
|
},
|
|
11929
11914
|
enumerable: false,
|
|
@@ -11991,9 +11976,9 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
11991
11976
|
extractDefs(ctx, schema);
|
|
11992
11977
|
return finalize(ctx, schema);
|
|
11993
11978
|
};
|
|
11994
|
-
var createStandardJSONSchemaMethod = (schema, io) => (params) => {
|
|
11979
|
+
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
11995
11980
|
const { libraryOptions, target } = params ?? {};
|
|
11996
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors
|
|
11981
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
11997
11982
|
process2(schema, ctx);
|
|
11998
11983
|
extractDefs(ctx, schema);
|
|
11999
11984
|
return finalize(ctx, schema);
|
|
@@ -12018,6 +12003,9 @@ var stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
12018
12003
|
json.format = formatMap[format] ?? format;
|
|
12019
12004
|
if (json.format === "")
|
|
12020
12005
|
delete json.format;
|
|
12006
|
+
if (format === "time") {
|
|
12007
|
+
delete json.format;
|
|
12008
|
+
}
|
|
12021
12009
|
}
|
|
12022
12010
|
if (contentEncoding)
|
|
12023
12011
|
json.contentEncoding = contentEncoding;
|
|
@@ -12198,10 +12186,8 @@ var fileProcessor = (schema, _ctx, json, _params) => {
|
|
|
12198
12186
|
file.contentMediaType = mime[0];
|
|
12199
12187
|
Object.assign(_json, file);
|
|
12200
12188
|
} else {
|
|
12201
|
-
_json
|
|
12202
|
-
|
|
12203
|
-
return mFile;
|
|
12204
|
-
});
|
|
12189
|
+
Object.assign(_json, file);
|
|
12190
|
+
_json.anyOf = mime.map((m) => ({ contentMediaType: m }));
|
|
12205
12191
|
}
|
|
12206
12192
|
} else {
|
|
12207
12193
|
Object.assign(_json, file);
|
|
@@ -12358,16 +12344,37 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12358
12344
|
const json = _json;
|
|
12359
12345
|
const def = schema._zod.def;
|
|
12360
12346
|
json.type = "object";
|
|
12361
|
-
|
|
12362
|
-
|
|
12347
|
+
const keyType = def.keyType;
|
|
12348
|
+
const keyBag = keyType._zod.bag;
|
|
12349
|
+
const patterns = keyBag?.patterns;
|
|
12350
|
+
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
12351
|
+
const valueSchema = process2(def.valueType, ctx, {
|
|
12352
|
+
...params,
|
|
12353
|
+
path: [...params.path, "patternProperties", "*"]
|
|
12354
|
+
});
|
|
12355
|
+
json.patternProperties = {};
|
|
12356
|
+
for (const pattern of patterns) {
|
|
12357
|
+
json.patternProperties[pattern.source] = valueSchema;
|
|
12358
|
+
}
|
|
12359
|
+
} else {
|
|
12360
|
+
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
12361
|
+
json.propertyNames = process2(def.keyType, ctx, {
|
|
12362
|
+
...params,
|
|
12363
|
+
path: [...params.path, "propertyNames"]
|
|
12364
|
+
});
|
|
12365
|
+
}
|
|
12366
|
+
json.additionalProperties = process2(def.valueType, ctx, {
|
|
12363
12367
|
...params,
|
|
12364
|
-
path: [...params.path, "
|
|
12368
|
+
path: [...params.path, "additionalProperties"]
|
|
12365
12369
|
});
|
|
12366
12370
|
}
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
+
const keyValues = keyType._zod.values;
|
|
12372
|
+
if (keyValues) {
|
|
12373
|
+
const validKeyValues = [...keyValues].filter((v) => typeof v === "string" || typeof v === "number");
|
|
12374
|
+
if (validKeyValues.length > 0) {
|
|
12375
|
+
json.required = validKeyValues;
|
|
12376
|
+
}
|
|
12377
|
+
}
|
|
12371
12378
|
};
|
|
12372
12379
|
var nullableProcessor = (schema, ctx, json, params) => {
|
|
12373
12380
|
const def = schema._zod.def;
|
|
@@ -12656,6 +12663,7 @@ __export(exports_schemas2, {
|
|
|
12656
12663
|
float64: () => float64,
|
|
12657
12664
|
float32: () => float32,
|
|
12658
12665
|
file: () => file,
|
|
12666
|
+
exactOptional: () => exactOptional,
|
|
12659
12667
|
enum: () => _enum2,
|
|
12660
12668
|
emoji: () => emoji2,
|
|
12661
12669
|
email: () => email2,
|
|
@@ -12725,6 +12733,7 @@ __export(exports_schemas2, {
|
|
|
12725
12733
|
ZodGUID: () => ZodGUID,
|
|
12726
12734
|
ZodFunction: () => ZodFunction,
|
|
12727
12735
|
ZodFile: () => ZodFile,
|
|
12736
|
+
ZodExactOptional: () => ZodExactOptional,
|
|
12728
12737
|
ZodEnum: () => ZodEnum,
|
|
12729
12738
|
ZodEmoji: () => ZodEmoji,
|
|
12730
12739
|
ZodEmail: () => ZodEmail,
|
|
@@ -12892,8 +12901,11 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12892
12901
|
...def.checks ?? [],
|
|
12893
12902
|
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12894
12903
|
]
|
|
12895
|
-
})
|
|
12904
|
+
}), {
|
|
12905
|
+
parent: true
|
|
12906
|
+
});
|
|
12896
12907
|
};
|
|
12908
|
+
inst.with = inst.check;
|
|
12897
12909
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12898
12910
|
inst.brand = () => inst;
|
|
12899
12911
|
inst.register = (reg, meta2) => {
|
|
@@ -12917,6 +12929,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12917
12929
|
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
12918
12930
|
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
12919
12931
|
inst.optional = () => optional(inst);
|
|
12932
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
12920
12933
|
inst.nullable = () => nullable(inst);
|
|
12921
12934
|
inst.nullish = () => optional(nullable(inst));
|
|
12922
12935
|
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
@@ -12950,6 +12963,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12950
12963
|
};
|
|
12951
12964
|
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
12952
12965
|
inst.isNullable = () => inst.safeParse(null).success;
|
|
12966
|
+
inst.apply = (fn) => fn(inst);
|
|
12953
12967
|
return inst;
|
|
12954
12968
|
});
|
|
12955
12969
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -13529,6 +13543,10 @@ var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
|
|
|
13529
13543
|
inst._zod.processJSONSchema = (ctx, json, params) => mapProcessor(inst, ctx, json, params);
|
|
13530
13544
|
inst.keyType = def.keyType;
|
|
13531
13545
|
inst.valueType = def.valueType;
|
|
13546
|
+
inst.min = (...args) => inst.check(_minSize(...args));
|
|
13547
|
+
inst.nonempty = (params) => inst.check(_minSize(1, params));
|
|
13548
|
+
inst.max = (...args) => inst.check(_maxSize(...args));
|
|
13549
|
+
inst.size = (...args) => inst.check(_size(...args));
|
|
13532
13550
|
});
|
|
13533
13551
|
function map(keyType, valueType, params) {
|
|
13534
13552
|
return new ZodMap({
|
|
@@ -13689,6 +13707,18 @@ function optional(innerType) {
|
|
|
13689
13707
|
innerType
|
|
13690
13708
|
});
|
|
13691
13709
|
}
|
|
13710
|
+
var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
|
|
13711
|
+
$ZodExactOptional.init(inst, def);
|
|
13712
|
+
ZodType.init(inst, def);
|
|
13713
|
+
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
13714
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
13715
|
+
});
|
|
13716
|
+
function exactOptional(innerType) {
|
|
13717
|
+
return new ZodExactOptional({
|
|
13718
|
+
type: "optional",
|
|
13719
|
+
innerType
|
|
13720
|
+
});
|
|
13721
|
+
}
|
|
13692
13722
|
var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
|
|
13693
13723
|
$ZodNullable.init(inst, def);
|
|
13694
13724
|
ZodType.init(inst, def);
|
|
@@ -13892,9 +13922,7 @@ function superRefine(fn) {
|
|
|
13892
13922
|
}
|
|
13893
13923
|
var describe2 = describe;
|
|
13894
13924
|
var meta2 = meta;
|
|
13895
|
-
function _instanceof(cls, params = {
|
|
13896
|
-
error: `Input not instance of ${cls.name}`
|
|
13897
|
-
}) {
|
|
13925
|
+
function _instanceof(cls, params = {}) {
|
|
13898
13926
|
const inst = new ZodCustom({
|
|
13899
13927
|
type: "custom",
|
|
13900
13928
|
check: "custom",
|
|
@@ -13903,6 +13931,17 @@ function _instanceof(cls, params = {
|
|
|
13903
13931
|
...exports_util.normalizeParams(params)
|
|
13904
13932
|
});
|
|
13905
13933
|
inst._zod.bag.Class = cls;
|
|
13934
|
+
inst._zod.check = (payload) => {
|
|
13935
|
+
if (!(payload.value instanceof cls)) {
|
|
13936
|
+
payload.issues.push({
|
|
13937
|
+
code: "invalid_type",
|
|
13938
|
+
expected: cls.name,
|
|
13939
|
+
input: payload.value,
|
|
13940
|
+
inst,
|
|
13941
|
+
path: [...inst._zod.def.path ?? []]
|
|
13942
|
+
});
|
|
13943
|
+
}
|
|
13944
|
+
};
|
|
13906
13945
|
return inst;
|
|
13907
13946
|
}
|
|
13908
13947
|
var stringbool = (...args) => _stringbool({
|
|
@@ -13949,6 +13988,65 @@ var z = {
|
|
|
13949
13988
|
...exports_checks2,
|
|
13950
13989
|
iso: exports_iso
|
|
13951
13990
|
};
|
|
13991
|
+
var RECOGNIZED_KEYS = new Set([
|
|
13992
|
+
"$schema",
|
|
13993
|
+
"$ref",
|
|
13994
|
+
"$defs",
|
|
13995
|
+
"definitions",
|
|
13996
|
+
"$id",
|
|
13997
|
+
"id",
|
|
13998
|
+
"$comment",
|
|
13999
|
+
"$anchor",
|
|
14000
|
+
"$vocabulary",
|
|
14001
|
+
"$dynamicRef",
|
|
14002
|
+
"$dynamicAnchor",
|
|
14003
|
+
"type",
|
|
14004
|
+
"enum",
|
|
14005
|
+
"const",
|
|
14006
|
+
"anyOf",
|
|
14007
|
+
"oneOf",
|
|
14008
|
+
"allOf",
|
|
14009
|
+
"not",
|
|
14010
|
+
"properties",
|
|
14011
|
+
"required",
|
|
14012
|
+
"additionalProperties",
|
|
14013
|
+
"patternProperties",
|
|
14014
|
+
"propertyNames",
|
|
14015
|
+
"minProperties",
|
|
14016
|
+
"maxProperties",
|
|
14017
|
+
"items",
|
|
14018
|
+
"prefixItems",
|
|
14019
|
+
"additionalItems",
|
|
14020
|
+
"minItems",
|
|
14021
|
+
"maxItems",
|
|
14022
|
+
"uniqueItems",
|
|
14023
|
+
"contains",
|
|
14024
|
+
"minContains",
|
|
14025
|
+
"maxContains",
|
|
14026
|
+
"minLength",
|
|
14027
|
+
"maxLength",
|
|
14028
|
+
"pattern",
|
|
14029
|
+
"format",
|
|
14030
|
+
"minimum",
|
|
14031
|
+
"maximum",
|
|
14032
|
+
"exclusiveMinimum",
|
|
14033
|
+
"exclusiveMaximum",
|
|
14034
|
+
"multipleOf",
|
|
14035
|
+
"description",
|
|
14036
|
+
"default",
|
|
14037
|
+
"contentEncoding",
|
|
14038
|
+
"contentMediaType",
|
|
14039
|
+
"contentSchema",
|
|
14040
|
+
"unevaluatedItems",
|
|
14041
|
+
"unevaluatedProperties",
|
|
14042
|
+
"if",
|
|
14043
|
+
"then",
|
|
14044
|
+
"else",
|
|
14045
|
+
"dependentSchemas",
|
|
14046
|
+
"dependentRequired",
|
|
14047
|
+
"nullable",
|
|
14048
|
+
"readOnly"
|
|
14049
|
+
]);
|
|
13952
14050
|
function detectVersion(schema, defaultTarget) {
|
|
13953
14051
|
const $schema = schema.$schema;
|
|
13954
14052
|
if ($schema === "https://json-schema.org/draft/2020-12/schema") {
|
|
@@ -14306,6 +14404,27 @@ function convertSchema(schema, ctx) {
|
|
|
14306
14404
|
if (schema.readOnly === true) {
|
|
14307
14405
|
baseSchema = z.readonly(baseSchema);
|
|
14308
14406
|
}
|
|
14407
|
+
const extraMeta = {};
|
|
14408
|
+
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
14409
|
+
for (const key of coreMetadataKeys) {
|
|
14410
|
+
if (key in schema) {
|
|
14411
|
+
extraMeta[key] = schema[key];
|
|
14412
|
+
}
|
|
14413
|
+
}
|
|
14414
|
+
const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
|
|
14415
|
+
for (const key of contentMetadataKeys) {
|
|
14416
|
+
if (key in schema) {
|
|
14417
|
+
extraMeta[key] = schema[key];
|
|
14418
|
+
}
|
|
14419
|
+
}
|
|
14420
|
+
for (const key of Object.keys(schema)) {
|
|
14421
|
+
if (!RECOGNIZED_KEYS.has(key)) {
|
|
14422
|
+
extraMeta[key] = schema[key];
|
|
14423
|
+
}
|
|
14424
|
+
}
|
|
14425
|
+
if (Object.keys(extraMeta).length > 0) {
|
|
14426
|
+
ctx.registry.add(baseSchema, extraMeta);
|
|
14427
|
+
}
|
|
14309
14428
|
return baseSchema;
|
|
14310
14429
|
}
|
|
14311
14430
|
function fromJSONSchema(schema, params) {
|
|
@@ -14319,7 +14438,8 @@ function fromJSONSchema(schema, params) {
|
|
|
14319
14438
|
defs,
|
|
14320
14439
|
refs: new Map,
|
|
14321
14440
|
processing: new Set,
|
|
14322
|
-
rootSchema: schema
|
|
14441
|
+
rootSchema: schema,
|
|
14442
|
+
registry: params?.registry ?? globalRegistry
|
|
14323
14443
|
};
|
|
14324
14444
|
return convertSchema(schema, ctx);
|
|
14325
14445
|
}
|
|
@@ -15282,8 +15402,8 @@ function typecheckExamples(examples, packagePath, options = {}) {
|
|
|
15282
15402
|
continue;
|
|
15283
15403
|
}
|
|
15284
15404
|
const errors3 = typecheckExample(example, packagePath, options);
|
|
15285
|
-
for (const
|
|
15286
|
-
allErrors.push({ ...
|
|
15405
|
+
for (const error48 of errors3) {
|
|
15406
|
+
allErrors.push({ ...error48, exampleIndex: i });
|
|
15287
15407
|
}
|
|
15288
15408
|
if (errors3.length > 0) {
|
|
15289
15409
|
failed++;
|
|
@@ -15353,12 +15473,12 @@ async function runExample(code, options = {}) {
|
|
|
15353
15473
|
});
|
|
15354
15474
|
}
|
|
15355
15475
|
});
|
|
15356
|
-
proc.on("error", (
|
|
15476
|
+
proc.on("error", (error48) => {
|
|
15357
15477
|
clearTimeout(timeoutId);
|
|
15358
15478
|
resolve5({
|
|
15359
15479
|
success: false,
|
|
15360
15480
|
stdout,
|
|
15361
|
-
stderr:
|
|
15481
|
+
stderr: error48.message,
|
|
15362
15482
|
exitCode: 1,
|
|
15363
15483
|
duration: Date.now() - startTime
|
|
15364
15484
|
});
|
|
@@ -15442,12 +15562,12 @@ async function runCommand(cmd, args, options) {
|
|
|
15442
15562
|
});
|
|
15443
15563
|
}
|
|
15444
15564
|
});
|
|
15445
|
-
proc.on("error", (
|
|
15565
|
+
proc.on("error", (error48) => {
|
|
15446
15566
|
clearTimeout(timeoutId);
|
|
15447
15567
|
resolve5({
|
|
15448
15568
|
success: false,
|
|
15449
15569
|
stdout,
|
|
15450
|
-
stderr:
|
|
15570
|
+
stderr: error48.message,
|
|
15451
15571
|
exitCode: 1
|
|
15452
15572
|
});
|
|
15453
15573
|
});
|
|
@@ -15549,11 +15669,11 @@ async function validateExamples(exports, options) {
|
|
|
15549
15669
|
});
|
|
15550
15670
|
passed += typecheckResult.passed;
|
|
15551
15671
|
failed += typecheckResult.failed;
|
|
15552
|
-
for (const
|
|
15672
|
+
for (const error48 of typecheckResult.errors) {
|
|
15553
15673
|
typecheckErrors.push({
|
|
15554
15674
|
exportName: exp.name,
|
|
15555
|
-
exampleIndex:
|
|
15556
|
-
error:
|
|
15675
|
+
exampleIndex: error48.exampleIndex,
|
|
15676
|
+
error: error48
|
|
15557
15677
|
});
|
|
15558
15678
|
}
|
|
15559
15679
|
}
|
|
@@ -16690,8 +16810,8 @@ function createNodeCommandRunner() {
|
|
|
16690
16810
|
stdout: stdout?.toString() ?? "",
|
|
16691
16811
|
stderr: ""
|
|
16692
16812
|
};
|
|
16693
|
-
} catch (
|
|
16694
|
-
const err =
|
|
16813
|
+
} catch (error48) {
|
|
16814
|
+
const err = error48;
|
|
16695
16815
|
return {
|
|
16696
16816
|
exitCode: err.status ?? 1,
|
|
16697
16817
|
stdout: err.stdout?.toString() ?? "",
|