wapi-client 0.14.11 → 0.14.14
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/lib/env.browser.cjs +1 -1
- package/dist/lib/env.browser.js +1 -1
- package/dist/lib/env.cjs +1 -1
- package/dist/lib/env.js +1 -1
- package/dist/lib/query-builder/query-builder.browser.cjs +4 -1
- package/dist/lib/query-builder/query-builder.browser.js +4 -1
- package/dist/lib/query-builder/query-builder.cjs +4 -1
- package/dist/lib/query-builder/query-builder.js +4 -1
- package/dist/lib/zod.browser.cjs +714 -293
- package/dist/lib/zod.browser.js +714 -293
- package/dist/types/wapi-client.d.ts +1 -1
- package/dist/wapi-client-web.iife.js +14 -14
- package/dist/wapi-client.iife.js +14 -14
- package/package.json +2 -2
package/dist/lib/zod.browser.js
CHANGED
|
@@ -726,7 +726,7 @@ var allowsEval = cached(() => {
|
|
|
726
726
|
}
|
|
727
727
|
});
|
|
728
728
|
function isPlainObject(data) {
|
|
729
|
-
return typeof data === "object" && data !== null && Object.getPrototypeOf(data) === Object.prototype;
|
|
729
|
+
return typeof data === "object" && data !== null && (Object.getPrototypeOf(data) === Object.prototype || Object.getPrototypeOf(data) === null);
|
|
730
730
|
}
|
|
731
731
|
function numKeys(data) {
|
|
732
732
|
let keyCount = 0;
|
|
@@ -1069,10 +1069,10 @@ var initializer = (inst, def) => {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1071
1071
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1072
|
-
function flattenError(
|
|
1072
|
+
function flattenError(error38, mapper = (issue2) => issue2.message) {
|
|
1073
1073
|
const fieldErrors = {};
|
|
1074
1074
|
const formErrors = [];
|
|
1075
|
-
for (const sub of
|
|
1075
|
+
for (const sub of error38.issues) {
|
|
1076
1076
|
if (sub.path.length > 0) {
|
|
1077
1077
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1078
1078
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1082,13 +1082,13 @@ function flattenError(error35, mapper = (issue2) => issue2.message) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
return { formErrors, fieldErrors };
|
|
1084
1084
|
}
|
|
1085
|
-
function formatError(
|
|
1085
|
+
function formatError(error38, _mapper) {
|
|
1086
1086
|
const mapper = _mapper || function(issue2) {
|
|
1087
1087
|
return issue2.message;
|
|
1088
1088
|
};
|
|
1089
1089
|
const fieldErrors = { _errors: [] };
|
|
1090
|
-
const processError = (
|
|
1091
|
-
for (const issue2 of
|
|
1090
|
+
const processError = (error39) => {
|
|
1091
|
+
for (const issue2 of error39.issues) {
|
|
1092
1092
|
if (issue2.code === "invalid_union") {
|
|
1093
1093
|
issue2.errors.map((issues) => processError({ issues }));
|
|
1094
1094
|
} else if (issue2.code === "invalid_key") {
|
|
@@ -1115,18 +1115,18 @@ function formatError(error35, _mapper) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
processError(
|
|
1118
|
+
processError(error38);
|
|
1119
1119
|
return fieldErrors;
|
|
1120
1120
|
}
|
|
1121
|
-
function treeifyError(
|
|
1121
|
+
function treeifyError(error38, _mapper) {
|
|
1122
1122
|
const mapper = _mapper || function(issue2) {
|
|
1123
1123
|
return issue2.message;
|
|
1124
1124
|
};
|
|
1125
1125
|
const result = { errors: [] };
|
|
1126
|
-
const processError = (
|
|
1126
|
+
const processError = (error39, path = []) => {
|
|
1127
1127
|
var _a2, _b2, _c, _d;
|
|
1128
1128
|
var _a, _b;
|
|
1129
|
-
for (const issue2 of
|
|
1129
|
+
for (const issue2 of error39.issues) {
|
|
1130
1130
|
if (issue2.code === "invalid_union") {
|
|
1131
1131
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1132
1132
|
} else if (issue2.code === "invalid_key") {
|
|
@@ -1161,7 +1161,7 @@ function treeifyError(error35, _mapper) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
};
|
|
1164
|
-
processError(
|
|
1164
|
+
processError(error38);
|
|
1165
1165
|
return result;
|
|
1166
1166
|
}
|
|
1167
1167
|
function toDotPath(path) {
|
|
@@ -1181,10 +1181,10 @@ function toDotPath(path) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
return segs.join("");
|
|
1183
1183
|
}
|
|
1184
|
-
function prettifyError(
|
|
1184
|
+
function prettifyError(error38) {
|
|
1185
1185
|
var _a;
|
|
1186
1186
|
const lines = [];
|
|
1187
|
-
const issues = [...
|
|
1187
|
+
const issues = [...error38.issues].sort((a, b) => a.path.length - b.path.length);
|
|
1188
1188
|
for (const issue2 of issues) {
|
|
1189
1189
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1190
1190
|
if ((_a = issue2.path) == null ? void 0 : _a.length)
|
|
@@ -2598,6 +2598,11 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2598
2598
|
$ZodType.init(inst, def);
|
|
2599
2599
|
const _normalized = cached(() => {
|
|
2600
2600
|
const keys = Object.keys(def.shape);
|
|
2601
|
+
for (const k of keys) {
|
|
2602
|
+
if (!(def.shape[k] instanceof $ZodType)) {
|
|
2603
|
+
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2601
2606
|
const okeys = optionalKeys(def.shape);
|
|
2602
2607
|
return {
|
|
2603
2608
|
shape: def.shape,
|
|
@@ -2607,26 +2612,19 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2607
2612
|
optionalKeys: new Set(okeys)
|
|
2608
2613
|
};
|
|
2609
2614
|
});
|
|
2610
|
-
defineLazy(inst._zod, "
|
|
2615
|
+
defineLazy(inst._zod, "propValues", () => {
|
|
2611
2616
|
var _a;
|
|
2612
2617
|
const shape = def.shape;
|
|
2613
|
-
const
|
|
2614
|
-
let hasDisc = false;
|
|
2618
|
+
const propValues = {};
|
|
2615
2619
|
for (const key in shape) {
|
|
2616
2620
|
const field = shape[key]._zod;
|
|
2617
|
-
if (field.values
|
|
2618
|
-
|
|
2619
|
-
const
|
|
2620
|
-
|
|
2621
|
-
maps: field.disc ? [field.disc] : []
|
|
2622
|
-
};
|
|
2623
|
-
discMap.set(key, o);
|
|
2621
|
+
if (field.values) {
|
|
2622
|
+
(_a = propValues[key]) != null ? _a : propValues[key] = /* @__PURE__ */ new Set();
|
|
2623
|
+
for (const v of field.values)
|
|
2624
|
+
propValues[key].add(v);
|
|
2624
2625
|
}
|
|
2625
2626
|
}
|
|
2626
|
-
|
|
2627
|
-
return void 0;
|
|
2628
|
-
}
|
|
2629
|
-
return discMap;
|
|
2627
|
+
return propValues;
|
|
2630
2628
|
});
|
|
2631
2629
|
const generateFastpass = (shape) => {
|
|
2632
2630
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
@@ -2814,63 +2812,36 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
2814
2812
|
});
|
|
2815
2813
|
};
|
|
2816
2814
|
});
|
|
2817
|
-
function matchDiscriminatorAtKey(input, key, disc) {
|
|
2818
|
-
let matched = true;
|
|
2819
|
-
const data = input == null ? void 0 : input[key];
|
|
2820
|
-
if (disc.values.size && !disc.values.has(data)) {
|
|
2821
|
-
matched = false;
|
|
2822
|
-
}
|
|
2823
|
-
if (disc.maps.length > 0) {
|
|
2824
|
-
for (const m of disc.maps) {
|
|
2825
|
-
if (!matchDiscriminators(data, m)) {
|
|
2826
|
-
matched = false;
|
|
2827
|
-
}
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
return matched;
|
|
2831
|
-
}
|
|
2832
|
-
function matchDiscriminators(input, discs) {
|
|
2833
|
-
let matched = true;
|
|
2834
|
-
for (const [key, value] of discs) {
|
|
2835
|
-
if (!matchDiscriminatorAtKey(input, key, value)) {
|
|
2836
|
-
matched = false;
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
return matched;
|
|
2840
|
-
}
|
|
2841
2815
|
var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
2842
2816
|
$ZodUnion.init(inst, def);
|
|
2843
2817
|
const _super = inst._zod.parse;
|
|
2844
|
-
defineLazy(inst._zod, "
|
|
2845
|
-
const
|
|
2846
|
-
for (const
|
|
2847
|
-
const
|
|
2848
|
-
if (!
|
|
2849
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(
|
|
2850
|
-
for (const [
|
|
2851
|
-
if (!
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
});
|
|
2856
|
-
const _o = _disc.get(key);
|
|
2857
|
-
for (const v of o.values) {
|
|
2858
|
-
_o.values.add(v);
|
|
2818
|
+
defineLazy(inst._zod, "propValues", () => {
|
|
2819
|
+
const propValues = {};
|
|
2820
|
+
for (const option of def.options) {
|
|
2821
|
+
const pv = option._zod.propValues;
|
|
2822
|
+
if (!pv || Object.keys(pv).length === 0)
|
|
2823
|
+
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
2824
|
+
for (const [k, v] of Object.entries(pv)) {
|
|
2825
|
+
if (!propValues[k])
|
|
2826
|
+
propValues[k] = /* @__PURE__ */ new Set();
|
|
2827
|
+
for (const val of v) {
|
|
2828
|
+
propValues[k].add(val);
|
|
2859
2829
|
}
|
|
2860
|
-
for (const m of o.maps)
|
|
2861
|
-
_o.maps.push(m);
|
|
2862
2830
|
}
|
|
2863
2831
|
}
|
|
2864
|
-
return
|
|
2832
|
+
return propValues;
|
|
2865
2833
|
});
|
|
2866
|
-
const
|
|
2867
|
-
|
|
2834
|
+
const disc = cached(() => {
|
|
2835
|
+
const opts = def.options;
|
|
2868
2836
|
const map2 = /* @__PURE__ */ new Map();
|
|
2869
|
-
for (const o of
|
|
2870
|
-
const
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2837
|
+
for (const o of opts) {
|
|
2838
|
+
const values = o._zod.propValues[def.discriminator];
|
|
2839
|
+
for (const v of values) {
|
|
2840
|
+
if (map2.has(v)) {
|
|
2841
|
+
throw new Error(`Duplicate discriminator value "${String(v)}"`);
|
|
2842
|
+
}
|
|
2843
|
+
map2.set(v, o);
|
|
2844
|
+
}
|
|
2874
2845
|
}
|
|
2875
2846
|
return map2;
|
|
2876
2847
|
});
|
|
@@ -2885,16 +2856,10 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
2885
2856
|
});
|
|
2886
2857
|
return payload;
|
|
2887
2858
|
}
|
|
2888
|
-
const
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
const subdisc = discmap.get(option);
|
|
2892
|
-
if (matchDiscriminatorAtKey(input, def.discriminator, subdisc)) {
|
|
2893
|
-
filtered.push(option);
|
|
2894
|
-
}
|
|
2859
|
+
const opt = disc.value.get(input == null ? void 0 : input[def.discriminator]);
|
|
2860
|
+
if (opt) {
|
|
2861
|
+
return opt._zod.run(payload, ctx);
|
|
2895
2862
|
}
|
|
2896
|
-
if (filtered.length === 1)
|
|
2897
|
-
return filtered[0]._zod.run(payload, ctx);
|
|
2898
2863
|
if (def.unionFallback) {
|
|
2899
2864
|
return _super(payload, ctx);
|
|
2900
2865
|
}
|
|
@@ -3492,7 +3457,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3492
3457
|
}
|
|
3493
3458
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3494
3459
|
$ZodType.init(inst, def);
|
|
3495
|
-
defineLazy(inst._zod, "
|
|
3460
|
+
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3496
3461
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3497
3462
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3498
3463
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3562,7 +3527,7 @@ var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
|
3562
3527
|
$ZodType.init(inst, def);
|
|
3563
3528
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
3564
3529
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
|
|
3565
|
-
defineLazy(inst._zod, "
|
|
3530
|
+
defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
|
|
3566
3531
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);
|
|
3567
3532
|
defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);
|
|
3568
3533
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3619,21 +3584,24 @@ __export(locales_exports, {
|
|
|
3619
3584
|
fa: () => fa_default,
|
|
3620
3585
|
fi: () => fi_default,
|
|
3621
3586
|
fr: () => fr_default,
|
|
3622
|
-
frCA: () =>
|
|
3587
|
+
frCA: () => fr_CA_default,
|
|
3623
3588
|
he: () => he_default,
|
|
3624
3589
|
hu: () => hu_default,
|
|
3625
3590
|
id: () => id_default,
|
|
3626
3591
|
it: () => it_default,
|
|
3627
3592
|
ja: () => ja_default,
|
|
3593
|
+
kh: () => kh_default,
|
|
3628
3594
|
ko: () => ko_default,
|
|
3629
3595
|
mk: () => mk_default,
|
|
3630
3596
|
ms: () => ms_default,
|
|
3597
|
+
nl: () => nl_default,
|
|
3631
3598
|
no: () => no_default,
|
|
3632
3599
|
ota: () => ota_default,
|
|
3633
3600
|
pl: () => pl_default,
|
|
3634
3601
|
pt: () => pt_default,
|
|
3635
3602
|
ru: () => ru_default,
|
|
3636
3603
|
sl: () => sl_default,
|
|
3604
|
+
sv: () => sv_default,
|
|
3637
3605
|
ta: () => ta_default,
|
|
3638
3606
|
th: () => th_default,
|
|
3639
3607
|
tr: () => tr_default,
|
|
@@ -3641,7 +3609,7 @@ __export(locales_exports, {
|
|
|
3641
3609
|
ur: () => ur_default,
|
|
3642
3610
|
vi: () => vi_default,
|
|
3643
3611
|
zhCN: () => zh_CN_default,
|
|
3644
|
-
zhTW: () =>
|
|
3612
|
+
zhTW: () => zh_TW_default
|
|
3645
3613
|
});
|
|
3646
3614
|
|
|
3647
3615
|
// node_modules/zod/dist/esm/v4/locales/ar.js
|
|
@@ -4481,7 +4449,6 @@ var error7 = (issue2) => {
|
|
|
4481
4449
|
switch (issue2.code) {
|
|
4482
4450
|
case "invalid_type":
|
|
4483
4451
|
return `Invalid input: expected ${issue2.expected}, received ${parsedType7(issue2.input)}`;
|
|
4484
|
-
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
|
4485
4452
|
case "invalid_value":
|
|
4486
4453
|
if (issue2.values.length === 1)
|
|
4487
4454
|
return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5015,7 +4982,7 @@ function fr_default() {
|
|
|
5015
4982
|
};
|
|
5016
4983
|
}
|
|
5017
4984
|
|
|
5018
|
-
// node_modules/zod/dist/esm/v4/locales/
|
|
4985
|
+
// node_modules/zod/dist/esm/v4/locales/fr-CA.js
|
|
5019
4986
|
var Sizable12 = {
|
|
5020
4987
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5021
4988
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5127,7 +5094,7 @@ var error12 = (issue2) => {
|
|
|
5127
5094
|
return `Entr\xE9e invalide`;
|
|
5128
5095
|
}
|
|
5129
5096
|
};
|
|
5130
|
-
function
|
|
5097
|
+
function fr_CA_default() {
|
|
5131
5098
|
return {
|
|
5132
5099
|
localeError: error12
|
|
5133
5100
|
};
|
|
@@ -5720,18 +5687,136 @@ function ja_default() {
|
|
|
5720
5687
|
};
|
|
5721
5688
|
}
|
|
5722
5689
|
|
|
5723
|
-
// node_modules/zod/dist/esm/v4/locales/
|
|
5690
|
+
// node_modules/zod/dist/esm/v4/locales/kh.js
|
|
5724
5691
|
var Sizable18 = {
|
|
5692
|
+
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
5693
|
+
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
5694
|
+
array: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
5695
|
+
set: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }
|
|
5696
|
+
};
|
|
5697
|
+
function getSizing18(origin) {
|
|
5698
|
+
var _a;
|
|
5699
|
+
return (_a = Sizable18[origin]) != null ? _a : null;
|
|
5700
|
+
}
|
|
5701
|
+
var parsedType18 = (data) => {
|
|
5702
|
+
const t = typeof data;
|
|
5703
|
+
switch (t) {
|
|
5704
|
+
case "number": {
|
|
5705
|
+
return Number.isNaN(data) ? "\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)" : "\u179B\u17C1\u1781";
|
|
5706
|
+
}
|
|
5707
|
+
case "object": {
|
|
5708
|
+
if (Array.isArray(data)) {
|
|
5709
|
+
return "\u17A2\u17B6\u179A\u17C1 (Array)";
|
|
5710
|
+
}
|
|
5711
|
+
if (data === null) {
|
|
5712
|
+
return "\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";
|
|
5713
|
+
}
|
|
5714
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5715
|
+
return data.constructor.name;
|
|
5716
|
+
}
|
|
5717
|
+
}
|
|
5718
|
+
}
|
|
5719
|
+
return t;
|
|
5720
|
+
};
|
|
5721
|
+
var Nouns18 = {
|
|
5722
|
+
regex: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",
|
|
5723
|
+
email: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",
|
|
5724
|
+
url: "URL",
|
|
5725
|
+
emoji: "\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",
|
|
5726
|
+
uuid: "UUID",
|
|
5727
|
+
uuidv4: "UUIDv4",
|
|
5728
|
+
uuidv6: "UUIDv6",
|
|
5729
|
+
nanoid: "nanoid",
|
|
5730
|
+
guid: "GUID",
|
|
5731
|
+
cuid: "cuid",
|
|
5732
|
+
cuid2: "cuid2",
|
|
5733
|
+
ulid: "ULID",
|
|
5734
|
+
xid: "XID",
|
|
5735
|
+
ksuid: "KSUID",
|
|
5736
|
+
datetime: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",
|
|
5737
|
+
date: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",
|
|
5738
|
+
time: "\u1798\u17C9\u17C4\u1784 ISO",
|
|
5739
|
+
duration: "\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",
|
|
5740
|
+
ipv4: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",
|
|
5741
|
+
ipv6: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",
|
|
5742
|
+
cidrv4: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",
|
|
5743
|
+
cidrv6: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",
|
|
5744
|
+
base64: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",
|
|
5745
|
+
base64url: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",
|
|
5746
|
+
json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",
|
|
5747
|
+
e164: "\u179B\u17C1\u1781 E.164",
|
|
5748
|
+
jwt: "JWT",
|
|
5749
|
+
template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
|
|
5750
|
+
};
|
|
5751
|
+
var error18 = (issue2) => {
|
|
5752
|
+
var _a, _b, _c, _d;
|
|
5753
|
+
switch (issue2.code) {
|
|
5754
|
+
case "invalid_type":
|
|
5755
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${parsedType18(issue2.input)}`;
|
|
5756
|
+
case "invalid_value":
|
|
5757
|
+
if (issue2.values.length === 1)
|
|
5758
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`;
|
|
5759
|
+
return `\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${joinValues(issue2.values, "|")}`;
|
|
5760
|
+
case "too_big": {
|
|
5761
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5762
|
+
const sizing = getSizing18(issue2.origin);
|
|
5763
|
+
if (sizing)
|
|
5764
|
+
return `\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(_a = issue2.origin) != null ? _a : "\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u1792\u17B6\u178F\u17BB"}`;
|
|
5765
|
+
return `\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(_c = issue2.origin) != null ? _c : "\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()}`;
|
|
5766
|
+
}
|
|
5767
|
+
case "too_small": {
|
|
5768
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5769
|
+
const sizing = getSizing18(issue2.origin);
|
|
5770
|
+
if (sizing) {
|
|
5771
|
+
return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5772
|
+
}
|
|
5773
|
+
return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()}`;
|
|
5774
|
+
}
|
|
5775
|
+
case "invalid_format": {
|
|
5776
|
+
const _issue = issue2;
|
|
5777
|
+
if (_issue.format === "starts_with") {
|
|
5778
|
+
return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${_issue.prefix}"`;
|
|
5779
|
+
}
|
|
5780
|
+
if (_issue.format === "ends_with")
|
|
5781
|
+
return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${_issue.suffix}"`;
|
|
5782
|
+
if (_issue.format === "includes")
|
|
5783
|
+
return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${_issue.includes}"`;
|
|
5784
|
+
if (_issue.format === "regex")
|
|
5785
|
+
return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${_issue.pattern}`;
|
|
5786
|
+
return `\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${(_d = Nouns18[_issue.format]) != null ? _d : issue2.format}`;
|
|
5787
|
+
}
|
|
5788
|
+
case "not_multiple_of":
|
|
5789
|
+
return `\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${issue2.divisor}`;
|
|
5790
|
+
case "unrecognized_keys":
|
|
5791
|
+
return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${joinValues(issue2.keys, ", ")}`;
|
|
5792
|
+
case "invalid_key":
|
|
5793
|
+
return `\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`;
|
|
5794
|
+
case "invalid_union":
|
|
5795
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`;
|
|
5796
|
+
case "invalid_element":
|
|
5797
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`;
|
|
5798
|
+
default:
|
|
5799
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`;
|
|
5800
|
+
}
|
|
5801
|
+
};
|
|
5802
|
+
function kh_default() {
|
|
5803
|
+
return {
|
|
5804
|
+
localeError: error18
|
|
5805
|
+
};
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
// node_modules/zod/dist/esm/v4/locales/ko.js
|
|
5809
|
+
var Sizable19 = {
|
|
5725
5810
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
5726
5811
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
5727
5812
|
array: { unit: "\uAC1C", verb: "to have" },
|
|
5728
5813
|
set: { unit: "\uAC1C", verb: "to have" }
|
|
5729
5814
|
};
|
|
5730
|
-
function
|
|
5815
|
+
function getSizing19(origin) {
|
|
5731
5816
|
var _a;
|
|
5732
|
-
return (_a =
|
|
5817
|
+
return (_a = Sizable19[origin]) != null ? _a : null;
|
|
5733
5818
|
}
|
|
5734
|
-
var
|
|
5819
|
+
var parsedType19 = (data) => {
|
|
5735
5820
|
const t = typeof data;
|
|
5736
5821
|
switch (t) {
|
|
5737
5822
|
case "number": {
|
|
@@ -5751,7 +5836,7 @@ var parsedType18 = (data) => {
|
|
|
5751
5836
|
}
|
|
5752
5837
|
return t;
|
|
5753
5838
|
};
|
|
5754
|
-
var
|
|
5839
|
+
var Nouns19 = {
|
|
5755
5840
|
regex: "\uC785\uB825",
|
|
5756
5841
|
email: "\uC774\uBA54\uC77C \uC8FC\uC18C",
|
|
5757
5842
|
url: "URL",
|
|
@@ -5781,11 +5866,11 @@ var Nouns18 = {
|
|
|
5781
5866
|
jwt: "JWT",
|
|
5782
5867
|
template_literal: "\uC785\uB825"
|
|
5783
5868
|
};
|
|
5784
|
-
var
|
|
5869
|
+
var error19 = (issue2) => {
|
|
5785
5870
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
5786
5871
|
switch (issue2.code) {
|
|
5787
5872
|
case "invalid_type":
|
|
5788
|
-
return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${
|
|
5873
|
+
return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType19(issue2.input)}\uC785\uB2C8\uB2E4`;
|
|
5789
5874
|
case "invalid_value":
|
|
5790
5875
|
if (issue2.values.length === 1)
|
|
5791
5876
|
return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`;
|
|
@@ -5793,7 +5878,7 @@ var error18 = (issue2) => {
|
|
|
5793
5878
|
case "too_big": {
|
|
5794
5879
|
const adj = issue2.inclusive ? "\uC774\uD558" : "\uBBF8\uB9CC";
|
|
5795
5880
|
const suffix = adj === "\uBBF8\uB9CC" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
|
|
5796
|
-
const sizing =
|
|
5881
|
+
const sizing = getSizing19(issue2.origin);
|
|
5797
5882
|
const unit = (_a = sizing == null ? void 0 : sizing.unit) != null ? _a : "\uC694\uC18C";
|
|
5798
5883
|
if (sizing)
|
|
5799
5884
|
return `${(_b = issue2.origin) != null ? _b : "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()}${unit} ${adj}${suffix}`;
|
|
@@ -5802,7 +5887,7 @@ var error18 = (issue2) => {
|
|
|
5802
5887
|
case "too_small": {
|
|
5803
5888
|
const adj = issue2.inclusive ? "\uC774\uC0C1" : "\uCD08\uACFC";
|
|
5804
5889
|
const suffix = adj === "\uC774\uC0C1" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
|
|
5805
|
-
const sizing =
|
|
5890
|
+
const sizing = getSizing19(issue2.origin);
|
|
5806
5891
|
const unit = (_d = sizing == null ? void 0 : sizing.unit) != null ? _d : "\uC694\uC18C";
|
|
5807
5892
|
if (sizing) {
|
|
5808
5893
|
return `${(_e = issue2.origin) != null ? _e : "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()}${unit} ${adj}${suffix}`;
|
|
@@ -5820,7 +5905,7 @@ var error18 = (issue2) => {
|
|
|
5820
5905
|
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
|
5821
5906
|
if (_issue.format === "regex")
|
|
5822
5907
|
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
|
5823
|
-
return `\uC798\uBABB\uB41C ${(_g =
|
|
5908
|
+
return `\uC798\uBABB\uB41C ${(_g = Nouns19[_issue.format]) != null ? _g : issue2.format}`;
|
|
5824
5909
|
}
|
|
5825
5910
|
case "not_multiple_of":
|
|
5826
5911
|
return `\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
|
|
@@ -5838,22 +5923,22 @@ var error18 = (issue2) => {
|
|
|
5838
5923
|
};
|
|
5839
5924
|
function ko_default() {
|
|
5840
5925
|
return {
|
|
5841
|
-
localeError:
|
|
5926
|
+
localeError: error19
|
|
5842
5927
|
};
|
|
5843
5928
|
}
|
|
5844
5929
|
|
|
5845
5930
|
// node_modules/zod/dist/esm/v4/locales/mk.js
|
|
5846
|
-
var
|
|
5931
|
+
var Sizable20 = {
|
|
5847
5932
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
5848
5933
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
5849
5934
|
array: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
5850
5935
|
set: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }
|
|
5851
5936
|
};
|
|
5852
|
-
function
|
|
5937
|
+
function getSizing20(origin) {
|
|
5853
5938
|
var _a;
|
|
5854
|
-
return (_a =
|
|
5939
|
+
return (_a = Sizable20[origin]) != null ? _a : null;
|
|
5855
5940
|
}
|
|
5856
|
-
var
|
|
5941
|
+
var parsedType20 = (data) => {
|
|
5857
5942
|
const t = typeof data;
|
|
5858
5943
|
switch (t) {
|
|
5859
5944
|
case "number": {
|
|
@@ -5873,7 +5958,7 @@ var parsedType19 = (data) => {
|
|
|
5873
5958
|
}
|
|
5874
5959
|
return t;
|
|
5875
5960
|
};
|
|
5876
|
-
var
|
|
5961
|
+
var Nouns20 = {
|
|
5877
5962
|
regex: "\u0432\u043D\u0435\u0441",
|
|
5878
5963
|
email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",
|
|
5879
5964
|
url: "URL",
|
|
@@ -5903,11 +5988,11 @@ var Nouns19 = {
|
|
|
5903
5988
|
jwt: "JWT",
|
|
5904
5989
|
template_literal: "\u0432\u043D\u0435\u0441"
|
|
5905
5990
|
};
|
|
5906
|
-
var
|
|
5991
|
+
var error20 = (issue2) => {
|
|
5907
5992
|
var _a, _b, _c, _d;
|
|
5908
5993
|
switch (issue2.code) {
|
|
5909
5994
|
case "invalid_type":
|
|
5910
|
-
return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${
|
|
5995
|
+
return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${parsedType20(issue2.input)}`;
|
|
5911
5996
|
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
|
5912
5997
|
case "invalid_value":
|
|
5913
5998
|
if (issue2.values.length === 1)
|
|
@@ -5915,14 +6000,14 @@ var error19 = (issue2) => {
|
|
|
5915
6000
|
return `\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${joinValues(issue2.values, "|")}`;
|
|
5916
6001
|
case "too_big": {
|
|
5917
6002
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5918
|
-
const sizing =
|
|
6003
|
+
const sizing = getSizing20(issue2.origin);
|
|
5919
6004
|
if (sizing)
|
|
5920
6005
|
return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${(_a = issue2.origin) != null ? _a : "\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`;
|
|
5921
6006
|
return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${(_c = issue2.origin) != null ? _c : "\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.maximum.toString()}`;
|
|
5922
6007
|
}
|
|
5923
6008
|
case "too_small": {
|
|
5924
6009
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5925
|
-
const sizing =
|
|
6010
|
+
const sizing = getSizing20(issue2.origin);
|
|
5926
6011
|
if (sizing) {
|
|
5927
6012
|
return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5928
6013
|
}
|
|
@@ -5939,7 +6024,7 @@ var error19 = (issue2) => {
|
|
|
5939
6024
|
return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${_issue.includes}"`;
|
|
5940
6025
|
if (_issue.format === "regex")
|
|
5941
6026
|
return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${_issue.pattern}`;
|
|
5942
|
-
return `Invalid ${(_d =
|
|
6027
|
+
return `Invalid ${(_d = Nouns20[_issue.format]) != null ? _d : issue2.format}`;
|
|
5943
6028
|
}
|
|
5944
6029
|
case "not_multiple_of":
|
|
5945
6030
|
return `\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${issue2.divisor}`;
|
|
@@ -5957,22 +6042,22 @@ var error19 = (issue2) => {
|
|
|
5957
6042
|
};
|
|
5958
6043
|
function mk_default() {
|
|
5959
6044
|
return {
|
|
5960
|
-
localeError:
|
|
6045
|
+
localeError: error20
|
|
5961
6046
|
};
|
|
5962
6047
|
}
|
|
5963
6048
|
|
|
5964
6049
|
// node_modules/zod/dist/esm/v4/locales/ms.js
|
|
5965
|
-
var
|
|
6050
|
+
var Sizable21 = {
|
|
5966
6051
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
5967
6052
|
file: { unit: "bait", verb: "mempunyai" },
|
|
5968
6053
|
array: { unit: "elemen", verb: "mempunyai" },
|
|
5969
6054
|
set: { unit: "elemen", verb: "mempunyai" }
|
|
5970
6055
|
};
|
|
5971
|
-
function
|
|
6056
|
+
function getSizing21(origin) {
|
|
5972
6057
|
var _a;
|
|
5973
|
-
return (_a =
|
|
6058
|
+
return (_a = Sizable21[origin]) != null ? _a : null;
|
|
5974
6059
|
}
|
|
5975
|
-
var
|
|
6060
|
+
var parsedType21 = (data) => {
|
|
5976
6061
|
const t = typeof data;
|
|
5977
6062
|
switch (t) {
|
|
5978
6063
|
case "number": {
|
|
@@ -5992,7 +6077,7 @@ var parsedType20 = (data) => {
|
|
|
5992
6077
|
}
|
|
5993
6078
|
return t;
|
|
5994
6079
|
};
|
|
5995
|
-
var
|
|
6080
|
+
var Nouns21 = {
|
|
5996
6081
|
regex: "input",
|
|
5997
6082
|
email: "alamat e-mel",
|
|
5998
6083
|
url: "URL",
|
|
@@ -6022,25 +6107,25 @@ var Nouns20 = {
|
|
|
6022
6107
|
jwt: "JWT",
|
|
6023
6108
|
template_literal: "input"
|
|
6024
6109
|
};
|
|
6025
|
-
var
|
|
6110
|
+
var error21 = (issue2) => {
|
|
6026
6111
|
var _a, _b, _c, _d;
|
|
6027
6112
|
switch (issue2.code) {
|
|
6028
6113
|
case "invalid_type":
|
|
6029
|
-
return `Input tidak sah: dijangka ${issue2.expected}, diterima ${
|
|
6114
|
+
return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType21(issue2.input)}`;
|
|
6030
6115
|
case "invalid_value":
|
|
6031
6116
|
if (issue2.values.length === 1)
|
|
6032
6117
|
return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
|
|
6033
6118
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue2.values, "|")}`;
|
|
6034
6119
|
case "too_big": {
|
|
6035
6120
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6036
|
-
const sizing =
|
|
6121
|
+
const sizing = getSizing21(issue2.origin);
|
|
6037
6122
|
if (sizing)
|
|
6038
6123
|
return `Terlalu besar: dijangka ${(_a = issue2.origin) != null ? _a : "nilai"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elemen"}`;
|
|
6039
6124
|
return `Terlalu besar: dijangka ${(_c = issue2.origin) != null ? _c : "nilai"} adalah ${adj}${issue2.maximum.toString()}`;
|
|
6040
6125
|
}
|
|
6041
6126
|
case "too_small": {
|
|
6042
6127
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6043
|
-
const sizing =
|
|
6128
|
+
const sizing = getSizing21(issue2.origin);
|
|
6044
6129
|
if (sizing) {
|
|
6045
6130
|
return `Terlalu kecil: dijangka ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6046
6131
|
}
|
|
@@ -6056,7 +6141,7 @@ var error20 = (issue2) => {
|
|
|
6056
6141
|
return `String tidak sah: mesti mengandungi "${_issue.includes}"`;
|
|
6057
6142
|
if (_issue.format === "regex")
|
|
6058
6143
|
return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;
|
|
6059
|
-
return `${(_d =
|
|
6144
|
+
return `${(_d = Nouns21[_issue.format]) != null ? _d : issue2.format} tidak sah`;
|
|
6060
6145
|
}
|
|
6061
6146
|
case "not_multiple_of":
|
|
6062
6147
|
return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`;
|
|
@@ -6074,22 +6159,140 @@ var error20 = (issue2) => {
|
|
|
6074
6159
|
};
|
|
6075
6160
|
function ms_default() {
|
|
6076
6161
|
return {
|
|
6077
|
-
localeError:
|
|
6162
|
+
localeError: error21
|
|
6163
|
+
};
|
|
6164
|
+
}
|
|
6165
|
+
|
|
6166
|
+
// node_modules/zod/dist/esm/v4/locales/nl.js
|
|
6167
|
+
var Sizable22 = {
|
|
6168
|
+
string: { unit: "tekens" },
|
|
6169
|
+
file: { unit: "bytes" },
|
|
6170
|
+
array: { unit: "elementen" },
|
|
6171
|
+
set: { unit: "elementen" }
|
|
6172
|
+
};
|
|
6173
|
+
function getSizing22(origin) {
|
|
6174
|
+
var _a;
|
|
6175
|
+
return (_a = Sizable22[origin]) != null ? _a : null;
|
|
6176
|
+
}
|
|
6177
|
+
var parsedType22 = (data) => {
|
|
6178
|
+
const t = typeof data;
|
|
6179
|
+
switch (t) {
|
|
6180
|
+
case "number": {
|
|
6181
|
+
return Number.isNaN(data) ? "NaN" : "getal";
|
|
6182
|
+
}
|
|
6183
|
+
case "object": {
|
|
6184
|
+
if (Array.isArray(data)) {
|
|
6185
|
+
return "array";
|
|
6186
|
+
}
|
|
6187
|
+
if (data === null) {
|
|
6188
|
+
return "null";
|
|
6189
|
+
}
|
|
6190
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6191
|
+
return data.constructor.name;
|
|
6192
|
+
}
|
|
6193
|
+
}
|
|
6194
|
+
}
|
|
6195
|
+
return t;
|
|
6196
|
+
};
|
|
6197
|
+
var Nouns22 = {
|
|
6198
|
+
regex: "invoer",
|
|
6199
|
+
email: "emailadres",
|
|
6200
|
+
url: "URL",
|
|
6201
|
+
emoji: "emoji",
|
|
6202
|
+
uuid: "UUID",
|
|
6203
|
+
uuidv4: "UUIDv4",
|
|
6204
|
+
uuidv6: "UUIDv6",
|
|
6205
|
+
nanoid: "nanoid",
|
|
6206
|
+
guid: "GUID",
|
|
6207
|
+
cuid: "cuid",
|
|
6208
|
+
cuid2: "cuid2",
|
|
6209
|
+
ulid: "ULID",
|
|
6210
|
+
xid: "XID",
|
|
6211
|
+
ksuid: "KSUID",
|
|
6212
|
+
datetime: "ISO datum en tijd",
|
|
6213
|
+
date: "ISO datum",
|
|
6214
|
+
time: "ISO tijd",
|
|
6215
|
+
duration: "ISO duur",
|
|
6216
|
+
ipv4: "IPv4-adres",
|
|
6217
|
+
ipv6: "IPv6-adres",
|
|
6218
|
+
cidrv4: "IPv4-bereik",
|
|
6219
|
+
cidrv6: "IPv6-bereik",
|
|
6220
|
+
base64: "base64-gecodeerde tekst",
|
|
6221
|
+
base64url: "base64 URL-gecodeerde tekst",
|
|
6222
|
+
json_string: "JSON string",
|
|
6223
|
+
e164: "E.164-nummer",
|
|
6224
|
+
jwt: "JWT",
|
|
6225
|
+
template_literal: "invoer"
|
|
6226
|
+
};
|
|
6227
|
+
var error22 = (issue2) => {
|
|
6228
|
+
var _a, _b, _c, _d;
|
|
6229
|
+
switch (issue2.code) {
|
|
6230
|
+
case "invalid_type":
|
|
6231
|
+
return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType22(issue2.input)}`;
|
|
6232
|
+
case "invalid_value":
|
|
6233
|
+
if (issue2.values.length === 1)
|
|
6234
|
+
return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
|
|
6235
|
+
return `Ongeldige optie: verwacht \xE9\xE9n van ${joinValues(issue2.values, "|")}`;
|
|
6236
|
+
case "too_big": {
|
|
6237
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6238
|
+
const sizing = getSizing22(issue2.origin);
|
|
6239
|
+
if (sizing)
|
|
6240
|
+
return `Te lang: verwacht dat ${(_a = issue2.origin) != null ? _a : "waarde"} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementen"} bevat`;
|
|
6241
|
+
return `Te lang: verwacht dat ${(_c = issue2.origin) != null ? _c : "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
6242
|
+
}
|
|
6243
|
+
case "too_small": {
|
|
6244
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6245
|
+
const sizing = getSizing22(issue2.origin);
|
|
6246
|
+
if (sizing) {
|
|
6247
|
+
return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} bevat`;
|
|
6248
|
+
}
|
|
6249
|
+
return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
6250
|
+
}
|
|
6251
|
+
case "invalid_format": {
|
|
6252
|
+
const _issue = issue2;
|
|
6253
|
+
if (_issue.format === "starts_with") {
|
|
6254
|
+
return `Ongeldige tekst: moet met "${_issue.prefix}" beginnen`;
|
|
6255
|
+
}
|
|
6256
|
+
if (_issue.format === "ends_with")
|
|
6257
|
+
return `Ongeldige tekst: moet op "${_issue.suffix}" eindigen`;
|
|
6258
|
+
if (_issue.format === "includes")
|
|
6259
|
+
return `Ongeldige tekst: moet "${_issue.includes}" bevatten`;
|
|
6260
|
+
if (_issue.format === "regex")
|
|
6261
|
+
return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;
|
|
6262
|
+
return `Ongeldig: ${(_d = Nouns22[_issue.format]) != null ? _d : issue2.format}`;
|
|
6263
|
+
}
|
|
6264
|
+
case "not_multiple_of":
|
|
6265
|
+
return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;
|
|
6266
|
+
case "unrecognized_keys":
|
|
6267
|
+
return `Onbekende key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
6268
|
+
case "invalid_key":
|
|
6269
|
+
return `Ongeldige key in ${issue2.origin}`;
|
|
6270
|
+
case "invalid_union":
|
|
6271
|
+
return "Ongeldige invoer";
|
|
6272
|
+
case "invalid_element":
|
|
6273
|
+
return `Ongeldige waarde in ${issue2.origin}`;
|
|
6274
|
+
default:
|
|
6275
|
+
return `Ongeldige invoer`;
|
|
6276
|
+
}
|
|
6277
|
+
};
|
|
6278
|
+
function nl_default() {
|
|
6279
|
+
return {
|
|
6280
|
+
localeError: error22
|
|
6078
6281
|
};
|
|
6079
6282
|
}
|
|
6080
6283
|
|
|
6081
6284
|
// node_modules/zod/dist/esm/v4/locales/no.js
|
|
6082
|
-
var
|
|
6285
|
+
var Sizable23 = {
|
|
6083
6286
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
6084
6287
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
6085
6288
|
array: { unit: "elementer", verb: "\xE5 inneholde" },
|
|
6086
6289
|
set: { unit: "elementer", verb: "\xE5 inneholde" }
|
|
6087
6290
|
};
|
|
6088
|
-
function
|
|
6291
|
+
function getSizing23(origin) {
|
|
6089
6292
|
var _a;
|
|
6090
|
-
return (_a =
|
|
6293
|
+
return (_a = Sizable23[origin]) != null ? _a : null;
|
|
6091
6294
|
}
|
|
6092
|
-
var
|
|
6295
|
+
var parsedType23 = (data) => {
|
|
6093
6296
|
const t = typeof data;
|
|
6094
6297
|
switch (t) {
|
|
6095
6298
|
case "number": {
|
|
@@ -6109,7 +6312,7 @@ var parsedType21 = (data) => {
|
|
|
6109
6312
|
}
|
|
6110
6313
|
return t;
|
|
6111
6314
|
};
|
|
6112
|
-
var
|
|
6315
|
+
var Nouns23 = {
|
|
6113
6316
|
regex: "input",
|
|
6114
6317
|
email: "e-postadresse",
|
|
6115
6318
|
url: "URL",
|
|
@@ -6139,25 +6342,25 @@ var Nouns21 = {
|
|
|
6139
6342
|
jwt: "JWT",
|
|
6140
6343
|
template_literal: "input"
|
|
6141
6344
|
};
|
|
6142
|
-
var
|
|
6345
|
+
var error23 = (issue2) => {
|
|
6143
6346
|
var _a, _b, _c, _d;
|
|
6144
6347
|
switch (issue2.code) {
|
|
6145
6348
|
case "invalid_type":
|
|
6146
|
-
return `Ugyldig input: forventet ${issue2.expected}, fikk ${
|
|
6349
|
+
return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType23(issue2.input)}`;
|
|
6147
6350
|
case "invalid_value":
|
|
6148
6351
|
if (issue2.values.length === 1)
|
|
6149
6352
|
return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
|
|
6150
6353
|
return `Ugyldig valg: forventet en av ${joinValues(issue2.values, "|")}`;
|
|
6151
6354
|
case "too_big": {
|
|
6152
6355
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6153
|
-
const sizing =
|
|
6356
|
+
const sizing = getSizing23(issue2.origin);
|
|
6154
6357
|
if (sizing)
|
|
6155
6358
|
return `For stor(t): forventet ${(_a = issue2.origin) != null ? _a : "value"} til \xE5 ha ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementer"}`;
|
|
6156
6359
|
return `For stor(t): forventet ${(_c = issue2.origin) != null ? _c : "value"} til \xE5 ha ${adj}${issue2.maximum.toString()}`;
|
|
6157
6360
|
}
|
|
6158
6361
|
case "too_small": {
|
|
6159
6362
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6160
|
-
const sizing =
|
|
6363
|
+
const sizing = getSizing23(issue2.origin);
|
|
6161
6364
|
if (sizing) {
|
|
6162
6365
|
return `For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6163
6366
|
}
|
|
@@ -6173,7 +6376,7 @@ var error21 = (issue2) => {
|
|
|
6173
6376
|
return `Ugyldig streng: m\xE5 inneholde "${_issue.includes}"`;
|
|
6174
6377
|
if (_issue.format === "regex")
|
|
6175
6378
|
return `Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`;
|
|
6176
|
-
return `Ugyldig ${(_d =
|
|
6379
|
+
return `Ugyldig ${(_d = Nouns23[_issue.format]) != null ? _d : issue2.format}`;
|
|
6177
6380
|
}
|
|
6178
6381
|
case "not_multiple_of":
|
|
6179
6382
|
return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${issue2.divisor}`;
|
|
@@ -6191,22 +6394,22 @@ var error21 = (issue2) => {
|
|
|
6191
6394
|
};
|
|
6192
6395
|
function no_default() {
|
|
6193
6396
|
return {
|
|
6194
|
-
localeError:
|
|
6397
|
+
localeError: error23
|
|
6195
6398
|
};
|
|
6196
6399
|
}
|
|
6197
6400
|
|
|
6198
6401
|
// node_modules/zod/dist/esm/v4/locales/ota.js
|
|
6199
|
-
var
|
|
6402
|
+
var Sizable24 = {
|
|
6200
6403
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
6201
6404
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
6202
6405
|
array: { unit: "unsur", verb: "olmal\u0131d\u0131r" },
|
|
6203
6406
|
set: { unit: "unsur", verb: "olmal\u0131d\u0131r" }
|
|
6204
6407
|
};
|
|
6205
|
-
function
|
|
6408
|
+
function getSizing24(origin) {
|
|
6206
6409
|
var _a;
|
|
6207
|
-
return (_a =
|
|
6410
|
+
return (_a = Sizable24[origin]) != null ? _a : null;
|
|
6208
6411
|
}
|
|
6209
|
-
var
|
|
6412
|
+
var parsedType24 = (data) => {
|
|
6210
6413
|
const t = typeof data;
|
|
6211
6414
|
switch (t) {
|
|
6212
6415
|
case "number": {
|
|
@@ -6226,7 +6429,7 @@ var parsedType22 = (data) => {
|
|
|
6226
6429
|
}
|
|
6227
6430
|
return t;
|
|
6228
6431
|
};
|
|
6229
|
-
var
|
|
6432
|
+
var Nouns24 = {
|
|
6230
6433
|
regex: "giren",
|
|
6231
6434
|
email: "epostag\xE2h",
|
|
6232
6435
|
url: "URL",
|
|
@@ -6256,11 +6459,11 @@ var Nouns22 = {
|
|
|
6256
6459
|
jwt: "JWT",
|
|
6257
6460
|
template_literal: "giren"
|
|
6258
6461
|
};
|
|
6259
|
-
var
|
|
6462
|
+
var error24 = (issue2) => {
|
|
6260
6463
|
var _a, _b, _c, _d;
|
|
6261
6464
|
switch (issue2.code) {
|
|
6262
6465
|
case "invalid_type":
|
|
6263
|
-
return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${
|
|
6466
|
+
return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType24(issue2.input)}`;
|
|
6264
6467
|
// return `Fâsit giren: umulan ${issue.expected}, alınan ${util.getParsedType(issue.input)}`;
|
|
6265
6468
|
case "invalid_value":
|
|
6266
6469
|
if (issue2.values.length === 1)
|
|
@@ -6268,14 +6471,14 @@ var error22 = (issue2) => {
|
|
|
6268
6471
|
return `F\xE2sit tercih: m\xFBteberler ${joinValues(issue2.values, "|")}`;
|
|
6269
6472
|
case "too_big": {
|
|
6270
6473
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6271
|
-
const sizing =
|
|
6474
|
+
const sizing = getSizing24(issue2.origin);
|
|
6272
6475
|
if (sizing)
|
|
6273
6476
|
return `Fazla b\xFCy\xFCk: ${(_a = issue2.origin) != null ? _a : "value"}, ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elements"} sahip olmal\u0131yd\u0131.`;
|
|
6274
6477
|
return `Fazla b\xFCy\xFCk: ${(_c = issue2.origin) != null ? _c : "value"}, ${adj}${issue2.maximum.toString()} olmal\u0131yd\u0131.`;
|
|
6275
6478
|
}
|
|
6276
6479
|
case "too_small": {
|
|
6277
6480
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6278
|
-
const sizing =
|
|
6481
|
+
const sizing = getSizing24(issue2.origin);
|
|
6279
6482
|
if (sizing) {
|
|
6280
6483
|
return `Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} ${sizing.unit} sahip olmal\u0131yd\u0131.`;
|
|
6281
6484
|
}
|
|
@@ -6291,7 +6494,7 @@ var error22 = (issue2) => {
|
|
|
6291
6494
|
return `F\xE2sit metin: "${_issue.includes}" ihtiv\xE2 etmeli.`;
|
|
6292
6495
|
if (_issue.format === "regex")
|
|
6293
6496
|
return `F\xE2sit metin: ${_issue.pattern} nak\u015F\u0131na uymal\u0131.`;
|
|
6294
|
-
return `F\xE2sit ${(_d =
|
|
6497
|
+
return `F\xE2sit ${(_d = Nouns24[_issue.format]) != null ? _d : issue2.format}`;
|
|
6295
6498
|
}
|
|
6296
6499
|
case "not_multiple_of":
|
|
6297
6500
|
return `F\xE2sit say\u0131: ${issue2.divisor} kat\u0131 olmal\u0131yd\u0131.`;
|
|
@@ -6309,22 +6512,22 @@ var error22 = (issue2) => {
|
|
|
6309
6512
|
};
|
|
6310
6513
|
function ota_default() {
|
|
6311
6514
|
return {
|
|
6312
|
-
localeError:
|
|
6515
|
+
localeError: error24
|
|
6313
6516
|
};
|
|
6314
6517
|
}
|
|
6315
6518
|
|
|
6316
6519
|
// node_modules/zod/dist/esm/v4/locales/pl.js
|
|
6317
|
-
var
|
|
6520
|
+
var Sizable25 = {
|
|
6318
6521
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
6319
6522
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
6320
6523
|
array: { unit: "element\xF3w", verb: "mie\u0107" },
|
|
6321
6524
|
set: { unit: "element\xF3w", verb: "mie\u0107" }
|
|
6322
6525
|
};
|
|
6323
|
-
function
|
|
6526
|
+
function getSizing25(origin) {
|
|
6324
6527
|
var _a;
|
|
6325
|
-
return (_a =
|
|
6528
|
+
return (_a = Sizable25[origin]) != null ? _a : null;
|
|
6326
6529
|
}
|
|
6327
|
-
var
|
|
6530
|
+
var parsedType25 = (data) => {
|
|
6328
6531
|
const t = typeof data;
|
|
6329
6532
|
switch (t) {
|
|
6330
6533
|
case "number": {
|
|
@@ -6344,7 +6547,7 @@ var parsedType23 = (data) => {
|
|
|
6344
6547
|
}
|
|
6345
6548
|
return t;
|
|
6346
6549
|
};
|
|
6347
|
-
var
|
|
6550
|
+
var Nouns25 = {
|
|
6348
6551
|
regex: "wyra\u017Cenie",
|
|
6349
6552
|
email: "adres email",
|
|
6350
6553
|
url: "URL",
|
|
@@ -6374,18 +6577,18 @@ var Nouns23 = {
|
|
|
6374
6577
|
jwt: "JWT",
|
|
6375
6578
|
template_literal: "wej\u015Bcie"
|
|
6376
6579
|
};
|
|
6377
|
-
var
|
|
6580
|
+
var error25 = (issue2) => {
|
|
6378
6581
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6379
6582
|
switch (issue2.code) {
|
|
6380
6583
|
case "invalid_type":
|
|
6381
|
-
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${
|
|
6584
|
+
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType25(issue2.input)}`;
|
|
6382
6585
|
case "invalid_value":
|
|
6383
6586
|
if (issue2.values.length === 1)
|
|
6384
6587
|
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6385
6588
|
return `Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${joinValues(issue2.values, "|")}`;
|
|
6386
6589
|
case "too_big": {
|
|
6387
6590
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6388
|
-
const sizing =
|
|
6591
|
+
const sizing = getSizing25(issue2.origin);
|
|
6389
6592
|
if (sizing) {
|
|
6390
6593
|
return `Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${(_a = issue2.origin) != null ? _a : "warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "element\xF3w"}`;
|
|
6391
6594
|
}
|
|
@@ -6393,7 +6596,7 @@ var error23 = (issue2) => {
|
|
|
6393
6596
|
}
|
|
6394
6597
|
case "too_small": {
|
|
6395
6598
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6396
|
-
const sizing =
|
|
6599
|
+
const sizing = getSizing25(issue2.origin);
|
|
6397
6600
|
if (sizing) {
|
|
6398
6601
|
return `Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${(_d = issue2.origin) != null ? _d : "warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.minimum.toString()} ${(_e = sizing.unit) != null ? _e : "element\xF3w"}`;
|
|
6399
6602
|
}
|
|
@@ -6409,7 +6612,7 @@ var error23 = (issue2) => {
|
|
|
6409
6612
|
return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${_issue.includes}"`;
|
|
6410
6613
|
if (_issue.format === "regex")
|
|
6411
6614
|
return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${_issue.pattern}`;
|
|
6412
|
-
return `Nieprawid\u0142ow(y/a/e) ${(_g =
|
|
6615
|
+
return `Nieprawid\u0142ow(y/a/e) ${(_g = Nouns25[_issue.format]) != null ? _g : issue2.format}`;
|
|
6413
6616
|
}
|
|
6414
6617
|
case "not_multiple_of":
|
|
6415
6618
|
return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;
|
|
@@ -6427,22 +6630,22 @@ var error23 = (issue2) => {
|
|
|
6427
6630
|
};
|
|
6428
6631
|
function pl_default() {
|
|
6429
6632
|
return {
|
|
6430
|
-
localeError:
|
|
6633
|
+
localeError: error25
|
|
6431
6634
|
};
|
|
6432
6635
|
}
|
|
6433
6636
|
|
|
6434
6637
|
// node_modules/zod/dist/esm/v4/locales/pt.js
|
|
6435
|
-
var
|
|
6638
|
+
var Sizable26 = {
|
|
6436
6639
|
string: { unit: "caracteres", verb: "ter" },
|
|
6437
6640
|
file: { unit: "bytes", verb: "ter" },
|
|
6438
6641
|
array: { unit: "itens", verb: "ter" },
|
|
6439
6642
|
set: { unit: "itens", verb: "ter" }
|
|
6440
6643
|
};
|
|
6441
|
-
function
|
|
6644
|
+
function getSizing26(origin) {
|
|
6442
6645
|
var _a;
|
|
6443
|
-
return (_a =
|
|
6646
|
+
return (_a = Sizable26[origin]) != null ? _a : null;
|
|
6444
6647
|
}
|
|
6445
|
-
var
|
|
6648
|
+
var parsedType26 = (data) => {
|
|
6446
6649
|
const t = typeof data;
|
|
6447
6650
|
switch (t) {
|
|
6448
6651
|
case "number": {
|
|
@@ -6462,7 +6665,7 @@ var parsedType24 = (data) => {
|
|
|
6462
6665
|
}
|
|
6463
6666
|
return t;
|
|
6464
6667
|
};
|
|
6465
|
-
var
|
|
6668
|
+
var Nouns26 = {
|
|
6466
6669
|
regex: "padr\xE3o",
|
|
6467
6670
|
email: "endere\xE7o de e-mail",
|
|
6468
6671
|
url: "URL",
|
|
@@ -6492,25 +6695,25 @@ var Nouns24 = {
|
|
|
6492
6695
|
jwt: "JWT",
|
|
6493
6696
|
template_literal: "entrada"
|
|
6494
6697
|
};
|
|
6495
|
-
var
|
|
6698
|
+
var error26 = (issue2) => {
|
|
6496
6699
|
var _a, _b, _c, _d;
|
|
6497
6700
|
switch (issue2.code) {
|
|
6498
6701
|
case "invalid_type":
|
|
6499
|
-
return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${
|
|
6702
|
+
return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType26(issue2.input)}`;
|
|
6500
6703
|
case "invalid_value":
|
|
6501
6704
|
if (issue2.values.length === 1)
|
|
6502
6705
|
return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
|
|
6503
6706
|
return `Op\xE7\xE3o inv\xE1lida: esperada uma das ${joinValues(issue2.values, "|")}`;
|
|
6504
6707
|
case "too_big": {
|
|
6505
6708
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6506
|
-
const sizing =
|
|
6709
|
+
const sizing = getSizing26(issue2.origin);
|
|
6507
6710
|
if (sizing)
|
|
6508
6711
|
return `Muito grande: esperado que ${(_a = issue2.origin) != null ? _a : "valor"} tivesse ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementos"}`;
|
|
6509
6712
|
return `Muito grande: esperado que ${(_c = issue2.origin) != null ? _c : "valor"} fosse ${adj}${issue2.maximum.toString()}`;
|
|
6510
6713
|
}
|
|
6511
6714
|
case "too_small": {
|
|
6512
6715
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6513
|
-
const sizing =
|
|
6716
|
+
const sizing = getSizing26(issue2.origin);
|
|
6514
6717
|
if (sizing) {
|
|
6515
6718
|
return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6516
6719
|
}
|
|
@@ -6526,7 +6729,7 @@ var error24 = (issue2) => {
|
|
|
6526
6729
|
return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`;
|
|
6527
6730
|
if (_issue.format === "regex")
|
|
6528
6731
|
return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`;
|
|
6529
|
-
return `${(_d =
|
|
6732
|
+
return `${(_d = Nouns26[_issue.format]) != null ? _d : issue2.format} inv\xE1lido`;
|
|
6530
6733
|
}
|
|
6531
6734
|
case "not_multiple_of":
|
|
6532
6735
|
return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;
|
|
@@ -6544,7 +6747,7 @@ var error24 = (issue2) => {
|
|
|
6544
6747
|
};
|
|
6545
6748
|
function pt_default() {
|
|
6546
6749
|
return {
|
|
6547
|
-
localeError:
|
|
6750
|
+
localeError: error26
|
|
6548
6751
|
};
|
|
6549
6752
|
}
|
|
6550
6753
|
|
|
@@ -6564,7 +6767,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
6564
6767
|
}
|
|
6565
6768
|
return many;
|
|
6566
6769
|
}
|
|
6567
|
-
var
|
|
6770
|
+
var Sizable27 = {
|
|
6568
6771
|
string: {
|
|
6569
6772
|
unit: {
|
|
6570
6773
|
one: "\u0441\u0438\u043C\u0432\u043E\u043B",
|
|
@@ -6598,11 +6801,11 @@ var Sizable25 = {
|
|
|
6598
6801
|
verb: "\u0438\u043C\u0435\u0442\u044C"
|
|
6599
6802
|
}
|
|
6600
6803
|
};
|
|
6601
|
-
function
|
|
6804
|
+
function getSizing27(origin) {
|
|
6602
6805
|
var _a;
|
|
6603
|
-
return (_a =
|
|
6806
|
+
return (_a = Sizable27[origin]) != null ? _a : null;
|
|
6604
6807
|
}
|
|
6605
|
-
var
|
|
6808
|
+
var parsedType27 = (data) => {
|
|
6606
6809
|
const t = typeof data;
|
|
6607
6810
|
switch (t) {
|
|
6608
6811
|
case "number": {
|
|
@@ -6622,7 +6825,7 @@ var parsedType25 = (data) => {
|
|
|
6622
6825
|
}
|
|
6623
6826
|
return t;
|
|
6624
6827
|
};
|
|
6625
|
-
var
|
|
6828
|
+
var Nouns27 = {
|
|
6626
6829
|
regex: "\u0432\u0432\u043E\u0434",
|
|
6627
6830
|
email: "email \u0430\u0434\u0440\u0435\u0441",
|
|
6628
6831
|
url: "URL",
|
|
@@ -6652,18 +6855,18 @@ var Nouns25 = {
|
|
|
6652
6855
|
jwt: "JWT",
|
|
6653
6856
|
template_literal: "\u0432\u0432\u043E\u0434"
|
|
6654
6857
|
};
|
|
6655
|
-
var
|
|
6858
|
+
var error27 = (issue2) => {
|
|
6656
6859
|
var _a, _b, _c;
|
|
6657
6860
|
switch (issue2.code) {
|
|
6658
6861
|
case "invalid_type":
|
|
6659
|
-
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${
|
|
6862
|
+
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${parsedType27(issue2.input)}`;
|
|
6660
6863
|
case "invalid_value":
|
|
6661
6864
|
if (issue2.values.length === 1)
|
|
6662
6865
|
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`;
|
|
6663
6866
|
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${joinValues(issue2.values, "|")}`;
|
|
6664
6867
|
case "too_big": {
|
|
6665
6868
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6666
|
-
const sizing =
|
|
6869
|
+
const sizing = getSizing27(issue2.origin);
|
|
6667
6870
|
if (sizing) {
|
|
6668
6871
|
const maxValue = Number(issue2.maximum);
|
|
6669
6872
|
const unit = getRussianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
|
|
@@ -6673,7 +6876,7 @@ var error25 = (issue2) => {
|
|
|
6673
6876
|
}
|
|
6674
6877
|
case "too_small": {
|
|
6675
6878
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6676
|
-
const sizing =
|
|
6879
|
+
const sizing = getSizing27(issue2.origin);
|
|
6677
6880
|
if (sizing) {
|
|
6678
6881
|
const minValue = Number(issue2.minimum);
|
|
6679
6882
|
const unit = getRussianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
|
|
@@ -6691,7 +6894,7 @@ var error25 = (issue2) => {
|
|
|
6691
6894
|
return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${_issue.includes}"`;
|
|
6692
6895
|
if (_issue.format === "regex")
|
|
6693
6896
|
return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
|
|
6694
|
-
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(_c =
|
|
6897
|
+
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(_c = Nouns27[_issue.format]) != null ? _c : issue2.format}`;
|
|
6695
6898
|
}
|
|
6696
6899
|
case "not_multiple_of":
|
|
6697
6900
|
return `\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;
|
|
@@ -6709,22 +6912,22 @@ var error25 = (issue2) => {
|
|
|
6709
6912
|
};
|
|
6710
6913
|
function ru_default() {
|
|
6711
6914
|
return {
|
|
6712
|
-
localeError:
|
|
6915
|
+
localeError: error27
|
|
6713
6916
|
};
|
|
6714
6917
|
}
|
|
6715
6918
|
|
|
6716
6919
|
// node_modules/zod/dist/esm/v4/locales/sl.js
|
|
6717
|
-
var
|
|
6920
|
+
var Sizable28 = {
|
|
6718
6921
|
string: { unit: "znakov", verb: "imeti" },
|
|
6719
6922
|
file: { unit: "bajtov", verb: "imeti" },
|
|
6720
6923
|
array: { unit: "elementov", verb: "imeti" },
|
|
6721
6924
|
set: { unit: "elementov", verb: "imeti" }
|
|
6722
6925
|
};
|
|
6723
|
-
function
|
|
6926
|
+
function getSizing28(origin) {
|
|
6724
6927
|
var _a;
|
|
6725
|
-
return (_a =
|
|
6928
|
+
return (_a = Sizable28[origin]) != null ? _a : null;
|
|
6726
6929
|
}
|
|
6727
|
-
var
|
|
6930
|
+
var parsedType28 = (data) => {
|
|
6728
6931
|
const t = typeof data;
|
|
6729
6932
|
switch (t) {
|
|
6730
6933
|
case "number": {
|
|
@@ -6744,7 +6947,7 @@ var parsedType26 = (data) => {
|
|
|
6744
6947
|
}
|
|
6745
6948
|
return t;
|
|
6746
6949
|
};
|
|
6747
|
-
var
|
|
6950
|
+
var Nouns28 = {
|
|
6748
6951
|
regex: "vnos",
|
|
6749
6952
|
email: "e-po\u0161tni naslov",
|
|
6750
6953
|
url: "URL",
|
|
@@ -6774,25 +6977,25 @@ var Nouns26 = {
|
|
|
6774
6977
|
jwt: "JWT",
|
|
6775
6978
|
template_literal: "vnos"
|
|
6776
6979
|
};
|
|
6777
|
-
var
|
|
6980
|
+
var error28 = (issue2) => {
|
|
6778
6981
|
var _a, _b, _c, _d;
|
|
6779
6982
|
switch (issue2.code) {
|
|
6780
6983
|
case "invalid_type":
|
|
6781
|
-
return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${
|
|
6984
|
+
return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType28(issue2.input)}`;
|
|
6782
6985
|
case "invalid_value":
|
|
6783
6986
|
if (issue2.values.length === 1)
|
|
6784
6987
|
return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6785
6988
|
return `Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${joinValues(issue2.values, "|")}`;
|
|
6786
6989
|
case "too_big": {
|
|
6787
6990
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6788
|
-
const sizing =
|
|
6991
|
+
const sizing = getSizing28(issue2.origin);
|
|
6789
6992
|
if (sizing)
|
|
6790
6993
|
return `Preveliko: pri\u010Dakovano, da bo ${(_a = issue2.origin) != null ? _a : "vrednost"} imelo ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementov"}`;
|
|
6791
6994
|
return `Preveliko: pri\u010Dakovano, da bo ${(_c = issue2.origin) != null ? _c : "vrednost"} ${adj}${issue2.maximum.toString()}`;
|
|
6792
6995
|
}
|
|
6793
6996
|
case "too_small": {
|
|
6794
6997
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6795
|
-
const sizing =
|
|
6998
|
+
const sizing = getSizing28(issue2.origin);
|
|
6796
6999
|
if (sizing) {
|
|
6797
7000
|
return `Premajhno: pri\u010Dakovano, da bo ${issue2.origin} imelo ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6798
7001
|
}
|
|
@@ -6809,7 +7012,7 @@ var error26 = (issue2) => {
|
|
|
6809
7012
|
return `Neveljaven niz: mora vsebovati "${_issue.includes}"`;
|
|
6810
7013
|
if (_issue.format === "regex")
|
|
6811
7014
|
return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;
|
|
6812
|
-
return `Neveljaven ${(_d =
|
|
7015
|
+
return `Neveljaven ${(_d = Nouns28[_issue.format]) != null ? _d : issue2.format}`;
|
|
6813
7016
|
}
|
|
6814
7017
|
case "not_multiple_of":
|
|
6815
7018
|
return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${issue2.divisor}`;
|
|
@@ -6827,22 +7030,141 @@ var error26 = (issue2) => {
|
|
|
6827
7030
|
};
|
|
6828
7031
|
function sl_default() {
|
|
6829
7032
|
return {
|
|
6830
|
-
localeError:
|
|
7033
|
+
localeError: error28
|
|
7034
|
+
};
|
|
7035
|
+
}
|
|
7036
|
+
|
|
7037
|
+
// node_modules/zod/dist/esm/v4/locales/sv.js
|
|
7038
|
+
var Sizable29 = {
|
|
7039
|
+
string: { unit: "tecken", verb: "att ha" },
|
|
7040
|
+
file: { unit: "bytes", verb: "att ha" },
|
|
7041
|
+
array: { unit: "objekt", verb: "att inneh\xE5lla" },
|
|
7042
|
+
set: { unit: "objekt", verb: "att inneh\xE5lla" }
|
|
7043
|
+
};
|
|
7044
|
+
function getSizing29(origin) {
|
|
7045
|
+
var _a;
|
|
7046
|
+
return (_a = Sizable29[origin]) != null ? _a : null;
|
|
7047
|
+
}
|
|
7048
|
+
var parsedType29 = (data) => {
|
|
7049
|
+
const t = typeof data;
|
|
7050
|
+
switch (t) {
|
|
7051
|
+
case "number": {
|
|
7052
|
+
return Number.isNaN(data) ? "NaN" : "antal";
|
|
7053
|
+
}
|
|
7054
|
+
case "object": {
|
|
7055
|
+
if (Array.isArray(data)) {
|
|
7056
|
+
return "lista";
|
|
7057
|
+
}
|
|
7058
|
+
if (data === null) {
|
|
7059
|
+
return "null";
|
|
7060
|
+
}
|
|
7061
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7062
|
+
return data.constructor.name;
|
|
7063
|
+
}
|
|
7064
|
+
}
|
|
7065
|
+
}
|
|
7066
|
+
return t;
|
|
7067
|
+
};
|
|
7068
|
+
var Nouns29 = {
|
|
7069
|
+
regex: "regulj\xE4rt uttryck",
|
|
7070
|
+
email: "e-postadress",
|
|
7071
|
+
url: "URL",
|
|
7072
|
+
emoji: "emoji",
|
|
7073
|
+
uuid: "UUID",
|
|
7074
|
+
uuidv4: "UUIDv4",
|
|
7075
|
+
uuidv6: "UUIDv6",
|
|
7076
|
+
nanoid: "nanoid",
|
|
7077
|
+
guid: "GUID",
|
|
7078
|
+
cuid: "cuid",
|
|
7079
|
+
cuid2: "cuid2",
|
|
7080
|
+
ulid: "ULID",
|
|
7081
|
+
xid: "XID",
|
|
7082
|
+
ksuid: "KSUID",
|
|
7083
|
+
datetime: "ISO-datum och tid",
|
|
7084
|
+
date: "ISO-datum",
|
|
7085
|
+
time: "ISO-tid",
|
|
7086
|
+
duration: "ISO-varaktighet",
|
|
7087
|
+
ipv4: "IPv4-intervall",
|
|
7088
|
+
ipv6: "IPv6-intervall",
|
|
7089
|
+
cidrv4: "IPv4-spektrum",
|
|
7090
|
+
cidrv6: "IPv6-spektrum",
|
|
7091
|
+
base64: "base64-kodad str\xE4ng",
|
|
7092
|
+
base64url: "base64url-kodad str\xE4ng",
|
|
7093
|
+
json_string: "JSON-str\xE4ng",
|
|
7094
|
+
e164: "E.164-nummer",
|
|
7095
|
+
jwt: "JWT",
|
|
7096
|
+
template_literal: "mall-literal"
|
|
7097
|
+
};
|
|
7098
|
+
var error29 = (issue2) => {
|
|
7099
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7100
|
+
switch (issue2.code) {
|
|
7101
|
+
case "invalid_type":
|
|
7102
|
+
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType29(issue2.input)}`;
|
|
7103
|
+
case "invalid_value":
|
|
7104
|
+
if (issue2.values.length === 1)
|
|
7105
|
+
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`;
|
|
7106
|
+
return `Ogiltigt val: f\xF6rv\xE4ntade en av ${joinValues(issue2.values, "|")}`;
|
|
7107
|
+
case "too_big": {
|
|
7108
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
7109
|
+
const sizing = getSizing29(issue2.origin);
|
|
7110
|
+
if (sizing) {
|
|
7111
|
+
return `F\xF6r stor(t): f\xF6rv\xE4ntade ${(_a = issue2.origin) != null ? _a : "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "element"}`;
|
|
7112
|
+
}
|
|
7113
|
+
return `F\xF6r stor(t): f\xF6rv\xE4ntat ${(_c = issue2.origin) != null ? _c : "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()}`;
|
|
7114
|
+
}
|
|
7115
|
+
case "too_small": {
|
|
7116
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
7117
|
+
const sizing = getSizing29(issue2.origin);
|
|
7118
|
+
if (sizing) {
|
|
7119
|
+
return `F\xF6r lite(t): f\xF6rv\xE4ntade ${(_d = issue2.origin) != null ? _d : "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7120
|
+
}
|
|
7121
|
+
return `F\xF6r lite(t): f\xF6rv\xE4ntade ${(_e = issue2.origin) != null ? _e : "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()}`;
|
|
7122
|
+
}
|
|
7123
|
+
case "invalid_format": {
|
|
7124
|
+
const _issue = issue2;
|
|
7125
|
+
if (_issue.format === "starts_with") {
|
|
7126
|
+
return `Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${_issue.prefix}"`;
|
|
7127
|
+
}
|
|
7128
|
+
if (_issue.format === "ends_with")
|
|
7129
|
+
return `Ogiltig str\xE4ng: m\xE5ste sluta med "${_issue.suffix}"`;
|
|
7130
|
+
if (_issue.format === "includes")
|
|
7131
|
+
return `Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${_issue.includes}"`;
|
|
7132
|
+
if (_issue.format === "regex")
|
|
7133
|
+
return `Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${_issue.pattern}"`;
|
|
7134
|
+
return `Ogiltig(t) ${(_f = Nouns29[_issue.format]) != null ? _f : issue2.format}`;
|
|
7135
|
+
}
|
|
7136
|
+
case "not_multiple_of":
|
|
7137
|
+
return `Ogiltigt tal: m\xE5ste vara en multipel av ${issue2.divisor}`;
|
|
7138
|
+
case "unrecognized_keys":
|
|
7139
|
+
return `${issue2.keys.length > 1 ? "Ok\xE4nda nycklar" : "Ok\xE4nd nyckel"}: ${joinValues(issue2.keys, ", ")}`;
|
|
7140
|
+
case "invalid_key":
|
|
7141
|
+
return `Ogiltig nyckel i ${(_g = issue2.origin) != null ? _g : "v\xE4rdet"}`;
|
|
7142
|
+
case "invalid_union":
|
|
7143
|
+
return "Ogiltig input";
|
|
7144
|
+
case "invalid_element":
|
|
7145
|
+
return `Ogiltigt v\xE4rde i ${(_h = issue2.origin) != null ? _h : "v\xE4rdet"}`;
|
|
7146
|
+
default:
|
|
7147
|
+
return `Ogiltig input`;
|
|
7148
|
+
}
|
|
7149
|
+
};
|
|
7150
|
+
function sv_default() {
|
|
7151
|
+
return {
|
|
7152
|
+
localeError: error29
|
|
6831
7153
|
};
|
|
6832
7154
|
}
|
|
6833
7155
|
|
|
6834
7156
|
// node_modules/zod/dist/esm/v4/locales/ta.js
|
|
6835
|
-
var
|
|
7157
|
+
var Sizable30 = {
|
|
6836
7158
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
6837
7159
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
6838
7160
|
array: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
6839
7161
|
set: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }
|
|
6840
7162
|
};
|
|
6841
|
-
function
|
|
7163
|
+
function getSizing30(origin) {
|
|
6842
7164
|
var _a;
|
|
6843
|
-
return (_a =
|
|
7165
|
+
return (_a = Sizable30[origin]) != null ? _a : null;
|
|
6844
7166
|
}
|
|
6845
|
-
var
|
|
7167
|
+
var parsedType30 = (data) => {
|
|
6846
7168
|
const t = typeof data;
|
|
6847
7169
|
switch (t) {
|
|
6848
7170
|
case "number": {
|
|
@@ -6862,7 +7184,7 @@ var parsedType27 = (data) => {
|
|
|
6862
7184
|
}
|
|
6863
7185
|
return t;
|
|
6864
7186
|
};
|
|
6865
|
-
var
|
|
7187
|
+
var Nouns30 = {
|
|
6866
7188
|
regex: "\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",
|
|
6867
7189
|
email: "\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",
|
|
6868
7190
|
url: "URL",
|
|
@@ -6892,18 +7214,18 @@ var Nouns27 = {
|
|
|
6892
7214
|
jwt: "JWT",
|
|
6893
7215
|
template_literal: "input"
|
|
6894
7216
|
};
|
|
6895
|
-
var
|
|
7217
|
+
var error30 = (issue2) => {
|
|
6896
7218
|
var _a, _b, _c, _d;
|
|
6897
7219
|
switch (issue2.code) {
|
|
6898
7220
|
case "invalid_type":
|
|
6899
|
-
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${
|
|
7221
|
+
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${parsedType30(issue2.input)}`;
|
|
6900
7222
|
case "invalid_value":
|
|
6901
7223
|
if (issue2.values.length === 1)
|
|
6902
7224
|
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`;
|
|
6903
7225
|
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${joinValues(issue2.values, "|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;
|
|
6904
7226
|
case "too_big": {
|
|
6905
7227
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6906
|
-
const sizing =
|
|
7228
|
+
const sizing = getSizing30(issue2.origin);
|
|
6907
7229
|
if (sizing) {
|
|
6908
7230
|
return `\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${(_a = issue2.origin) != null ? _a : "\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
|
|
6909
7231
|
}
|
|
@@ -6911,7 +7233,7 @@ var error27 = (issue2) => {
|
|
|
6911
7233
|
}
|
|
6912
7234
|
case "too_small": {
|
|
6913
7235
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6914
|
-
const sizing =
|
|
7236
|
+
const sizing = getSizing30(issue2.origin);
|
|
6915
7237
|
if (sizing) {
|
|
6916
7238
|
return `\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
|
|
6917
7239
|
}
|
|
@@ -6927,7 +7249,7 @@ var error27 = (issue2) => {
|
|
|
6927
7249
|
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
|
|
6928
7250
|
if (_issue.format === "regex")
|
|
6929
7251
|
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${_issue.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
|
|
6930
|
-
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${(_d =
|
|
7252
|
+
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${(_d = Nouns30[_issue.format]) != null ? _d : issue2.format}`;
|
|
6931
7253
|
}
|
|
6932
7254
|
case "not_multiple_of":
|
|
6933
7255
|
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${issue2.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
|
|
@@ -6945,22 +7267,22 @@ var error27 = (issue2) => {
|
|
|
6945
7267
|
};
|
|
6946
7268
|
function ta_default() {
|
|
6947
7269
|
return {
|
|
6948
|
-
localeError:
|
|
7270
|
+
localeError: error30
|
|
6949
7271
|
};
|
|
6950
7272
|
}
|
|
6951
7273
|
|
|
6952
7274
|
// node_modules/zod/dist/esm/v4/locales/th.js
|
|
6953
|
-
var
|
|
7275
|
+
var Sizable31 = {
|
|
6954
7276
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
6955
7277
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
6956
7278
|
array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
6957
7279
|
set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }
|
|
6958
7280
|
};
|
|
6959
|
-
function
|
|
7281
|
+
function getSizing31(origin) {
|
|
6960
7282
|
var _a;
|
|
6961
|
-
return (_a =
|
|
7283
|
+
return (_a = Sizable31[origin]) != null ? _a : null;
|
|
6962
7284
|
}
|
|
6963
|
-
var
|
|
7285
|
+
var parsedType31 = (data) => {
|
|
6964
7286
|
const t = typeof data;
|
|
6965
7287
|
switch (t) {
|
|
6966
7288
|
case "number": {
|
|
@@ -6980,7 +7302,7 @@ var parsedType28 = (data) => {
|
|
|
6980
7302
|
}
|
|
6981
7303
|
return t;
|
|
6982
7304
|
};
|
|
6983
|
-
var
|
|
7305
|
+
var Nouns31 = {
|
|
6984
7306
|
regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
|
|
6985
7307
|
email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",
|
|
6986
7308
|
url: "URL",
|
|
@@ -7010,25 +7332,25 @@ var Nouns28 = {
|
|
|
7010
7332
|
jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
|
|
7011
7333
|
template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
|
|
7012
7334
|
};
|
|
7013
|
-
var
|
|
7335
|
+
var error31 = (issue2) => {
|
|
7014
7336
|
var _a, _b, _c, _d;
|
|
7015
7337
|
switch (issue2.code) {
|
|
7016
7338
|
case "invalid_type":
|
|
7017
|
-
return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${
|
|
7339
|
+
return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${parsedType31(issue2.input)}`;
|
|
7018
7340
|
case "invalid_value":
|
|
7019
7341
|
if (issue2.values.length === 1)
|
|
7020
7342
|
return `\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`;
|
|
7021
7343
|
return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${joinValues(issue2.values, "|")}`;
|
|
7022
7344
|
case "too_big": {
|
|
7023
7345
|
const adj = issue2.inclusive ? "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19" : "\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32";
|
|
7024
|
-
const sizing =
|
|
7346
|
+
const sizing = getSizing31(issue2.origin);
|
|
7025
7347
|
if (sizing)
|
|
7026
7348
|
return `\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(_a = issue2.origin) != null ? _a : "\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`;
|
|
7027
7349
|
return `\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(_c = issue2.origin) != null ? _c : "\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()}`;
|
|
7028
7350
|
}
|
|
7029
7351
|
case "too_small": {
|
|
7030
7352
|
const adj = issue2.inclusive ? "\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22" : "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32";
|
|
7031
|
-
const sizing =
|
|
7353
|
+
const sizing = getSizing31(issue2.origin);
|
|
7032
7354
|
if (sizing) {
|
|
7033
7355
|
return `\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7034
7356
|
}
|
|
@@ -7045,7 +7367,7 @@ var error28 = (issue2) => {
|
|
|
7045
7367
|
return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${_issue.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`;
|
|
7046
7368
|
if (_issue.format === "regex")
|
|
7047
7369
|
return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${_issue.pattern}`;
|
|
7048
|
-
return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${(_d =
|
|
7370
|
+
return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${(_d = Nouns31[_issue.format]) != null ? _d : issue2.format}`;
|
|
7049
7371
|
}
|
|
7050
7372
|
case "not_multiple_of":
|
|
7051
7373
|
return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${issue2.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;
|
|
@@ -7063,22 +7385,22 @@ var error28 = (issue2) => {
|
|
|
7063
7385
|
};
|
|
7064
7386
|
function th_default() {
|
|
7065
7387
|
return {
|
|
7066
|
-
localeError:
|
|
7388
|
+
localeError: error31
|
|
7067
7389
|
};
|
|
7068
7390
|
}
|
|
7069
7391
|
|
|
7070
7392
|
// node_modules/zod/dist/esm/v4/locales/tr.js
|
|
7071
|
-
var
|
|
7393
|
+
var Sizable32 = {
|
|
7072
7394
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
7073
7395
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
7074
7396
|
array: { unit: "\xF6\u011Fe", verb: "olmal\u0131" },
|
|
7075
7397
|
set: { unit: "\xF6\u011Fe", verb: "olmal\u0131" }
|
|
7076
7398
|
};
|
|
7077
|
-
function
|
|
7399
|
+
function getSizing32(origin) {
|
|
7078
7400
|
var _a;
|
|
7079
|
-
return (_a =
|
|
7401
|
+
return (_a = Sizable32[origin]) != null ? _a : null;
|
|
7080
7402
|
}
|
|
7081
|
-
var
|
|
7403
|
+
var parsedType32 = (data) => {
|
|
7082
7404
|
const t = typeof data;
|
|
7083
7405
|
switch (t) {
|
|
7084
7406
|
case "number": {
|
|
@@ -7098,7 +7420,7 @@ var parsedType29 = (data) => {
|
|
|
7098
7420
|
}
|
|
7099
7421
|
return t;
|
|
7100
7422
|
};
|
|
7101
|
-
var
|
|
7423
|
+
var Nouns32 = {
|
|
7102
7424
|
regex: "girdi",
|
|
7103
7425
|
email: "e-posta adresi",
|
|
7104
7426
|
url: "URL",
|
|
@@ -7128,25 +7450,25 @@ var Nouns29 = {
|
|
|
7128
7450
|
jwt: "JWT",
|
|
7129
7451
|
template_literal: "\u015Eablon dizesi"
|
|
7130
7452
|
};
|
|
7131
|
-
var
|
|
7453
|
+
var error32 = (issue2) => {
|
|
7132
7454
|
var _a, _b, _c, _d;
|
|
7133
7455
|
switch (issue2.code) {
|
|
7134
7456
|
case "invalid_type":
|
|
7135
|
-
return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${
|
|
7457
|
+
return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType32(issue2.input)}`;
|
|
7136
7458
|
case "invalid_value":
|
|
7137
7459
|
if (issue2.values.length === 1)
|
|
7138
7460
|
return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
|
|
7139
7461
|
return `Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${joinValues(issue2.values, "|")}`;
|
|
7140
7462
|
case "too_big": {
|
|
7141
7463
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7142
|
-
const sizing =
|
|
7464
|
+
const sizing = getSizing32(issue2.origin);
|
|
7143
7465
|
if (sizing)
|
|
7144
7466
|
return `\xC7ok b\xFCy\xFCk: beklenen ${(_a = issue2.origin) != null ? _a : "de\u011Fer"} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\xF6\u011Fe"}`;
|
|
7145
7467
|
return `\xC7ok b\xFCy\xFCk: beklenen ${(_c = issue2.origin) != null ? _c : "de\u011Fer"} ${adj}${issue2.maximum.toString()}`;
|
|
7146
7468
|
}
|
|
7147
7469
|
case "too_small": {
|
|
7148
7470
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7149
|
-
const sizing =
|
|
7471
|
+
const sizing = getSizing32(issue2.origin);
|
|
7150
7472
|
if (sizing)
|
|
7151
7473
|
return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7152
7474
|
return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
|
|
@@ -7161,7 +7483,7 @@ var error29 = (issue2) => {
|
|
|
7161
7483
|
return `Ge\xE7ersiz metin: "${_issue.includes}" i\xE7ermeli`;
|
|
7162
7484
|
if (_issue.format === "regex")
|
|
7163
7485
|
return `Ge\xE7ersiz metin: ${_issue.pattern} desenine uymal\u0131`;
|
|
7164
|
-
return `Ge\xE7ersiz ${(_d =
|
|
7486
|
+
return `Ge\xE7ersiz ${(_d = Nouns32[_issue.format]) != null ? _d : issue2.format}`;
|
|
7165
7487
|
}
|
|
7166
7488
|
case "not_multiple_of":
|
|
7167
7489
|
return `Ge\xE7ersiz say\u0131: ${issue2.divisor} ile tam b\xF6l\xFCnebilmeli`;
|
|
@@ -7179,22 +7501,22 @@ var error29 = (issue2) => {
|
|
|
7179
7501
|
};
|
|
7180
7502
|
function tr_default() {
|
|
7181
7503
|
return {
|
|
7182
|
-
localeError:
|
|
7504
|
+
localeError: error32
|
|
7183
7505
|
};
|
|
7184
7506
|
}
|
|
7185
7507
|
|
|
7186
7508
|
// node_modules/zod/dist/esm/v4/locales/ua.js
|
|
7187
|
-
var
|
|
7509
|
+
var Sizable33 = {
|
|
7188
7510
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
7189
7511
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
7190
7512
|
array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
7191
7513
|
set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }
|
|
7192
7514
|
};
|
|
7193
|
-
function
|
|
7515
|
+
function getSizing33(origin) {
|
|
7194
7516
|
var _a;
|
|
7195
|
-
return (_a =
|
|
7517
|
+
return (_a = Sizable33[origin]) != null ? _a : null;
|
|
7196
7518
|
}
|
|
7197
|
-
var
|
|
7519
|
+
var parsedType33 = (data) => {
|
|
7198
7520
|
const t = typeof data;
|
|
7199
7521
|
switch (t) {
|
|
7200
7522
|
case "number": {
|
|
@@ -7214,7 +7536,7 @@ var parsedType30 = (data) => {
|
|
|
7214
7536
|
}
|
|
7215
7537
|
return t;
|
|
7216
7538
|
};
|
|
7217
|
-
var
|
|
7539
|
+
var Nouns33 = {
|
|
7218
7540
|
regex: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",
|
|
7219
7541
|
email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",
|
|
7220
7542
|
url: "URL",
|
|
@@ -7244,11 +7566,11 @@ var Nouns30 = {
|
|
|
7244
7566
|
jwt: "JWT",
|
|
7245
7567
|
template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
|
|
7246
7568
|
};
|
|
7247
|
-
var
|
|
7569
|
+
var error33 = (issue2) => {
|
|
7248
7570
|
var _a, _b, _c, _d;
|
|
7249
7571
|
switch (issue2.code) {
|
|
7250
7572
|
case "invalid_type":
|
|
7251
|
-
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${
|
|
7573
|
+
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${parsedType33(issue2.input)}`;
|
|
7252
7574
|
// return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${util.getParsedType(issue.input)}`;
|
|
7253
7575
|
case "invalid_value":
|
|
7254
7576
|
if (issue2.values.length === 1)
|
|
@@ -7256,14 +7578,14 @@ var error30 = (issue2) => {
|
|
|
7256
7578
|
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${joinValues(issue2.values, "|")}`;
|
|
7257
7579
|
case "too_big": {
|
|
7258
7580
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7259
|
-
const sizing =
|
|
7581
|
+
const sizing = getSizing33(issue2.origin);
|
|
7260
7582
|
if (sizing)
|
|
7261
7583
|
return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${(_a = issue2.origin) != null ? _a : "\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`;
|
|
7262
7584
|
return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${(_c = issue2.origin) != null ? _c : "\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${adj}${issue2.maximum.toString()}`;
|
|
7263
7585
|
}
|
|
7264
7586
|
case "too_small": {
|
|
7265
7587
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7266
|
-
const sizing =
|
|
7588
|
+
const sizing = getSizing33(issue2.origin);
|
|
7267
7589
|
if (sizing) {
|
|
7268
7590
|
return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7269
7591
|
}
|
|
@@ -7279,7 +7601,7 @@ var error30 = (issue2) => {
|
|
|
7279
7601
|
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${_issue.includes}"`;
|
|
7280
7602
|
if (_issue.format === "regex")
|
|
7281
7603
|
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
|
|
7282
|
-
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(_d =
|
|
7604
|
+
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(_d = Nouns33[_issue.format]) != null ? _d : issue2.format}`;
|
|
7283
7605
|
}
|
|
7284
7606
|
case "not_multiple_of":
|
|
7285
7607
|
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${issue2.divisor}`;
|
|
@@ -7297,22 +7619,22 @@ var error30 = (issue2) => {
|
|
|
7297
7619
|
};
|
|
7298
7620
|
function ua_default() {
|
|
7299
7621
|
return {
|
|
7300
|
-
localeError:
|
|
7622
|
+
localeError: error33
|
|
7301
7623
|
};
|
|
7302
7624
|
}
|
|
7303
7625
|
|
|
7304
7626
|
// node_modules/zod/dist/esm/v4/locales/ur.js
|
|
7305
|
-
var
|
|
7627
|
+
var Sizable34 = {
|
|
7306
7628
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
7307
7629
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
7308
7630
|
array: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" },
|
|
7309
7631
|
set: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" }
|
|
7310
7632
|
};
|
|
7311
|
-
function
|
|
7633
|
+
function getSizing34(origin) {
|
|
7312
7634
|
var _a;
|
|
7313
|
-
return (_a =
|
|
7635
|
+
return (_a = Sizable34[origin]) != null ? _a : null;
|
|
7314
7636
|
}
|
|
7315
|
-
var
|
|
7637
|
+
var parsedType34 = (data) => {
|
|
7316
7638
|
const t = typeof data;
|
|
7317
7639
|
switch (t) {
|
|
7318
7640
|
case "number": {
|
|
@@ -7332,7 +7654,7 @@ var parsedType31 = (data) => {
|
|
|
7332
7654
|
}
|
|
7333
7655
|
return t;
|
|
7334
7656
|
};
|
|
7335
|
-
var
|
|
7657
|
+
var Nouns34 = {
|
|
7336
7658
|
regex: "\u0627\u0646 \u067E\u0679",
|
|
7337
7659
|
email: "\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",
|
|
7338
7660
|
url: "\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",
|
|
@@ -7362,25 +7684,25 @@ var Nouns31 = {
|
|
|
7362
7684
|
jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
|
|
7363
7685
|
template_literal: "\u0627\u0646 \u067E\u0679"
|
|
7364
7686
|
};
|
|
7365
|
-
var
|
|
7687
|
+
var error34 = (issue2) => {
|
|
7366
7688
|
var _a, _b, _c, _d;
|
|
7367
7689
|
switch (issue2.code) {
|
|
7368
7690
|
case "invalid_type":
|
|
7369
|
-
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${
|
|
7691
|
+
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${parsedType34(issue2.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
|
|
7370
7692
|
case "invalid_value":
|
|
7371
7693
|
if (issue2.values.length === 1)
|
|
7372
7694
|
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
|
|
7373
7695
|
return `\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${joinValues(issue2.values, "|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
|
|
7374
7696
|
case "too_big": {
|
|
7375
7697
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7376
|
-
const sizing =
|
|
7698
|
+
const sizing = getSizing34(issue2.origin);
|
|
7377
7699
|
if (sizing)
|
|
7378
7700
|
return `\u0628\u06C1\u062A \u0628\u0691\u0627: ${(_a = issue2.origin) != null ? _a : "\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`;
|
|
7379
7701
|
return `\u0628\u06C1\u062A \u0628\u0691\u0627: ${(_c = issue2.origin) != null ? _c : "\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${adj}${issue2.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
|
|
7380
7702
|
}
|
|
7381
7703
|
case "too_small": {
|
|
7382
7704
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7383
|
-
const sizing =
|
|
7705
|
+
const sizing = getSizing34(issue2.origin);
|
|
7384
7706
|
if (sizing) {
|
|
7385
7707
|
return `\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u06D2 ${adj}${issue2.minimum.toString()} ${sizing.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`;
|
|
7386
7708
|
}
|
|
@@ -7397,7 +7719,7 @@ var error31 = (issue2) => {
|
|
|
7397
7719
|
return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
|
|
7398
7720
|
if (_issue.format === "regex")
|
|
7399
7721
|
return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${_issue.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
|
|
7400
|
-
return `\u063A\u0644\u0637 ${(_d =
|
|
7722
|
+
return `\u063A\u0644\u0637 ${(_d = Nouns34[_issue.format]) != null ? _d : issue2.format}`;
|
|
7401
7723
|
}
|
|
7402
7724
|
case "not_multiple_of":
|
|
7403
7725
|
return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${issue2.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
|
|
@@ -7415,22 +7737,22 @@ var error31 = (issue2) => {
|
|
|
7415
7737
|
};
|
|
7416
7738
|
function ur_default() {
|
|
7417
7739
|
return {
|
|
7418
|
-
localeError:
|
|
7740
|
+
localeError: error34
|
|
7419
7741
|
};
|
|
7420
7742
|
}
|
|
7421
7743
|
|
|
7422
7744
|
// node_modules/zod/dist/esm/v4/locales/vi.js
|
|
7423
|
-
var
|
|
7745
|
+
var Sizable35 = {
|
|
7424
7746
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
7425
7747
|
file: { unit: "byte", verb: "c\xF3" },
|
|
7426
7748
|
array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" },
|
|
7427
7749
|
set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }
|
|
7428
7750
|
};
|
|
7429
|
-
function
|
|
7751
|
+
function getSizing35(origin) {
|
|
7430
7752
|
var _a;
|
|
7431
|
-
return (_a =
|
|
7753
|
+
return (_a = Sizable35[origin]) != null ? _a : null;
|
|
7432
7754
|
}
|
|
7433
|
-
var
|
|
7755
|
+
var parsedType35 = (data) => {
|
|
7434
7756
|
const t = typeof data;
|
|
7435
7757
|
switch (t) {
|
|
7436
7758
|
case "number": {
|
|
@@ -7450,7 +7772,7 @@ var parsedType32 = (data) => {
|
|
|
7450
7772
|
}
|
|
7451
7773
|
return t;
|
|
7452
7774
|
};
|
|
7453
|
-
var
|
|
7775
|
+
var Nouns35 = {
|
|
7454
7776
|
regex: "\u0111\u1EA7u v\xE0o",
|
|
7455
7777
|
email: "\u0111\u1ECBa ch\u1EC9 email",
|
|
7456
7778
|
url: "URL",
|
|
@@ -7480,25 +7802,25 @@ var Nouns32 = {
|
|
|
7480
7802
|
jwt: "JWT",
|
|
7481
7803
|
template_literal: "\u0111\u1EA7u v\xE0o"
|
|
7482
7804
|
};
|
|
7483
|
-
var
|
|
7805
|
+
var error35 = (issue2) => {
|
|
7484
7806
|
var _a, _b, _c, _d;
|
|
7485
7807
|
switch (issue2.code) {
|
|
7486
7808
|
case "invalid_type":
|
|
7487
|
-
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${
|
|
7809
|
+
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType35(issue2.input)}`;
|
|
7488
7810
|
case "invalid_value":
|
|
7489
7811
|
if (issue2.values.length === 1)
|
|
7490
7812
|
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`;
|
|
7491
7813
|
return `T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${joinValues(issue2.values, "|")}`;
|
|
7492
7814
|
case "too_big": {
|
|
7493
7815
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7494
|
-
const sizing =
|
|
7816
|
+
const sizing = getSizing35(issue2.origin);
|
|
7495
7817
|
if (sizing)
|
|
7496
7818
|
return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(_a = issue2.origin) != null ? _a : "gi\xE1 tr\u1ECB"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "ph\u1EA7n t\u1EED"}`;
|
|
7497
7819
|
return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(_c = issue2.origin) != null ? _c : "gi\xE1 tr\u1ECB"} ${adj}${issue2.maximum.toString()}`;
|
|
7498
7820
|
}
|
|
7499
7821
|
case "too_small": {
|
|
7500
7822
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7501
|
-
const sizing =
|
|
7823
|
+
const sizing = getSizing35(issue2.origin);
|
|
7502
7824
|
if (sizing) {
|
|
7503
7825
|
return `Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7504
7826
|
}
|
|
@@ -7514,7 +7836,7 @@ var error32 = (issue2) => {
|
|
|
7514
7836
|
return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${_issue.includes}"`;
|
|
7515
7837
|
if (_issue.format === "regex")
|
|
7516
7838
|
return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${_issue.pattern}`;
|
|
7517
|
-
return `${(_d =
|
|
7839
|
+
return `${(_d = Nouns35[_issue.format]) != null ? _d : issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`;
|
|
7518
7840
|
}
|
|
7519
7841
|
case "not_multiple_of":
|
|
7520
7842
|
return `S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${issue2.divisor}`;
|
|
@@ -7532,22 +7854,22 @@ var error32 = (issue2) => {
|
|
|
7532
7854
|
};
|
|
7533
7855
|
function vi_default() {
|
|
7534
7856
|
return {
|
|
7535
|
-
localeError:
|
|
7857
|
+
localeError: error35
|
|
7536
7858
|
};
|
|
7537
7859
|
}
|
|
7538
7860
|
|
|
7539
7861
|
// node_modules/zod/dist/esm/v4/locales/zh-CN.js
|
|
7540
|
-
var
|
|
7862
|
+
var Sizable36 = {
|
|
7541
7863
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
7542
7864
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
7543
7865
|
array: { unit: "\u9879", verb: "\u5305\u542B" },
|
|
7544
7866
|
set: { unit: "\u9879", verb: "\u5305\u542B" }
|
|
7545
7867
|
};
|
|
7546
|
-
function
|
|
7868
|
+
function getSizing36(origin) {
|
|
7547
7869
|
var _a;
|
|
7548
|
-
return (_a =
|
|
7870
|
+
return (_a = Sizable36[origin]) != null ? _a : null;
|
|
7549
7871
|
}
|
|
7550
|
-
var
|
|
7872
|
+
var parsedType36 = (data) => {
|
|
7551
7873
|
const t = typeof data;
|
|
7552
7874
|
switch (t) {
|
|
7553
7875
|
case "number": {
|
|
@@ -7567,7 +7889,7 @@ var parsedType33 = (data) => {
|
|
|
7567
7889
|
}
|
|
7568
7890
|
return t;
|
|
7569
7891
|
};
|
|
7570
|
-
var
|
|
7892
|
+
var Nouns36 = {
|
|
7571
7893
|
regex: "\u8F93\u5165",
|
|
7572
7894
|
email: "\u7535\u5B50\u90AE\u4EF6",
|
|
7573
7895
|
url: "URL",
|
|
@@ -7597,25 +7919,25 @@ var Nouns33 = {
|
|
|
7597
7919
|
jwt: "JWT",
|
|
7598
7920
|
template_literal: "\u8F93\u5165"
|
|
7599
7921
|
};
|
|
7600
|
-
var
|
|
7922
|
+
var error36 = (issue2) => {
|
|
7601
7923
|
var _a, _b, _c, _d;
|
|
7602
7924
|
switch (issue2.code) {
|
|
7603
7925
|
case "invalid_type":
|
|
7604
|
-
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${
|
|
7926
|
+
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType36(issue2.input)}`;
|
|
7605
7927
|
case "invalid_value":
|
|
7606
7928
|
if (issue2.values.length === 1)
|
|
7607
7929
|
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`;
|
|
7608
7930
|
return `\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`;
|
|
7609
7931
|
case "too_big": {
|
|
7610
7932
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7611
|
-
const sizing =
|
|
7933
|
+
const sizing = getSizing36(issue2.origin);
|
|
7612
7934
|
if (sizing)
|
|
7613
7935
|
return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(_a = issue2.origin) != null ? _a : "\u503C"} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u4E2A\u5143\u7D20"}`;
|
|
7614
7936
|
return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(_c = issue2.origin) != null ? _c : "\u503C"} ${adj}${issue2.maximum.toString()}`;
|
|
7615
7937
|
}
|
|
7616
7938
|
case "too_small": {
|
|
7617
7939
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7618
|
-
const sizing =
|
|
7940
|
+
const sizing = getSizing36(issue2.origin);
|
|
7619
7941
|
if (sizing) {
|
|
7620
7942
|
return `\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7621
7943
|
}
|
|
@@ -7631,7 +7953,7 @@ var error33 = (issue2) => {
|
|
|
7631
7953
|
return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${_issue.includes}"`;
|
|
7632
7954
|
if (_issue.format === "regex")
|
|
7633
7955
|
return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${_issue.pattern}`;
|
|
7634
|
-
return `\u65E0\u6548${(_d =
|
|
7956
|
+
return `\u65E0\u6548${(_d = Nouns36[_issue.format]) != null ? _d : issue2.format}`;
|
|
7635
7957
|
}
|
|
7636
7958
|
case "not_multiple_of":
|
|
7637
7959
|
return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${issue2.divisor} \u7684\u500D\u6570`;
|
|
@@ -7649,22 +7971,22 @@ var error33 = (issue2) => {
|
|
|
7649
7971
|
};
|
|
7650
7972
|
function zh_CN_default() {
|
|
7651
7973
|
return {
|
|
7652
|
-
localeError:
|
|
7974
|
+
localeError: error36
|
|
7653
7975
|
};
|
|
7654
7976
|
}
|
|
7655
7977
|
|
|
7656
|
-
// node_modules/zod/dist/esm/v4/locales/zh-
|
|
7657
|
-
var
|
|
7978
|
+
// node_modules/zod/dist/esm/v4/locales/zh-TW.js
|
|
7979
|
+
var Sizable37 = {
|
|
7658
7980
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
7659
7981
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
7660
7982
|
array: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" },
|
|
7661
7983
|
set: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" }
|
|
7662
7984
|
};
|
|
7663
|
-
function
|
|
7985
|
+
function getSizing37(origin) {
|
|
7664
7986
|
var _a;
|
|
7665
|
-
return (_a =
|
|
7987
|
+
return (_a = Sizable37[origin]) != null ? _a : null;
|
|
7666
7988
|
}
|
|
7667
|
-
var
|
|
7989
|
+
var parsedType37 = (data) => {
|
|
7668
7990
|
const t = typeof data;
|
|
7669
7991
|
switch (t) {
|
|
7670
7992
|
case "number": {
|
|
@@ -7684,7 +8006,7 @@ var parsedType34 = (data) => {
|
|
|
7684
8006
|
}
|
|
7685
8007
|
return t;
|
|
7686
8008
|
};
|
|
7687
|
-
var
|
|
8009
|
+
var Nouns37 = {
|
|
7688
8010
|
regex: "\u8F38\u5165",
|
|
7689
8011
|
email: "\u90F5\u4EF6\u5730\u5740",
|
|
7690
8012
|
url: "URL",
|
|
@@ -7714,25 +8036,25 @@ var Nouns34 = {
|
|
|
7714
8036
|
jwt: "JWT",
|
|
7715
8037
|
template_literal: "\u8F38\u5165"
|
|
7716
8038
|
};
|
|
7717
|
-
var
|
|
8039
|
+
var error37 = (issue2) => {
|
|
7718
8040
|
var _a, _b, _c, _d;
|
|
7719
8041
|
switch (issue2.code) {
|
|
7720
8042
|
case "invalid_type":
|
|
7721
|
-
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${
|
|
8043
|
+
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType37(issue2.input)}`;
|
|
7722
8044
|
case "invalid_value":
|
|
7723
8045
|
if (issue2.values.length === 1)
|
|
7724
8046
|
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`;
|
|
7725
8047
|
return `\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`;
|
|
7726
8048
|
case "too_big": {
|
|
7727
8049
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7728
|
-
const sizing =
|
|
8050
|
+
const sizing = getSizing37(issue2.origin);
|
|
7729
8051
|
if (sizing)
|
|
7730
8052
|
return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(_a = issue2.origin) != null ? _a : "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u500B\u5143\u7D20"}`;
|
|
7731
8053
|
return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(_c = issue2.origin) != null ? _c : "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()}`;
|
|
7732
8054
|
}
|
|
7733
8055
|
case "too_small": {
|
|
7734
8056
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7735
|
-
const sizing =
|
|
8057
|
+
const sizing = getSizing37(issue2.origin);
|
|
7736
8058
|
if (sizing) {
|
|
7737
8059
|
return `\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7738
8060
|
}
|
|
@@ -7749,7 +8071,7 @@ var error34 = (issue2) => {
|
|
|
7749
8071
|
return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${_issue.includes}"`;
|
|
7750
8072
|
if (_issue.format === "regex")
|
|
7751
8073
|
return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${_issue.pattern}`;
|
|
7752
|
-
return `\u7121\u6548\u7684 ${(_d =
|
|
8074
|
+
return `\u7121\u6548\u7684 ${(_d = Nouns37[_issue.format]) != null ? _d : issue2.format}`;
|
|
7753
8075
|
}
|
|
7754
8076
|
case "not_multiple_of":
|
|
7755
8077
|
return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${issue2.divisor} \u7684\u500D\u6578`;
|
|
@@ -7765,9 +8087,9 @@ var error34 = (issue2) => {
|
|
|
7765
8087
|
return `\u7121\u6548\u7684\u8F38\u5165\u503C`;
|
|
7766
8088
|
}
|
|
7767
8089
|
};
|
|
7768
|
-
function
|
|
8090
|
+
function zh_TW_default() {
|
|
7769
8091
|
return {
|
|
7770
|
-
localeError:
|
|
8092
|
+
localeError: error37
|
|
7771
8093
|
};
|
|
7772
8094
|
}
|
|
7773
8095
|
|
|
@@ -8517,7 +8839,7 @@ function _refine(Class2, fn, _params = {}) {
|
|
|
8517
8839
|
}
|
|
8518
8840
|
function _stringbool(Classes, _params) {
|
|
8519
8841
|
var _a, _b, _c;
|
|
8520
|
-
const { case: _case, error:
|
|
8842
|
+
const { case: _case, error: error38, truthy, falsy } = normalizeParams(_params);
|
|
8521
8843
|
const trueValues = new Set(truthy != null ? truthy : ["true", "1", "yes", "on", "y", "enabled"]);
|
|
8522
8844
|
const falseValues = new Set(falsy != null ? falsy : ["false", "0", "no", "off", "n", "disabled"]);
|
|
8523
8845
|
const _Pipe = (_a = Classes.Pipe) != null ? _a : $ZodPipe;
|
|
@@ -8561,16 +8883,16 @@ function _stringbool(Classes, _params) {
|
|
|
8561
8883
|
}
|
|
8562
8884
|
}
|
|
8563
8885
|
],
|
|
8564
|
-
error:
|
|
8886
|
+
error: error38
|
|
8565
8887
|
});
|
|
8566
8888
|
return new _Pipe({
|
|
8567
8889
|
type: "pipe",
|
|
8568
8890
|
in: inst,
|
|
8569
8891
|
out: new _Boolean({
|
|
8570
8892
|
type: "boolean",
|
|
8571
|
-
error:
|
|
8893
|
+
error: error38
|
|
8572
8894
|
}),
|
|
8573
|
-
error:
|
|
8895
|
+
error: error38
|
|
8574
8896
|
});
|
|
8575
8897
|
}
|
|
8576
8898
|
|
|
@@ -8835,7 +9157,9 @@ var JSONSchemaGenerator = class {
|
|
|
8835
9157
|
return v.optout === void 0;
|
|
8836
9158
|
}
|
|
8837
9159
|
}));
|
|
8838
|
-
|
|
9160
|
+
if (requiredKeys.size > 0) {
|
|
9161
|
+
json2.required = Array.from(requiredKeys);
|
|
9162
|
+
}
|
|
8839
9163
|
if (((_b = def.catchall) == null ? void 0 : _b._zod.def.type) === "never") {
|
|
8840
9164
|
json2.additionalProperties = false;
|
|
8841
9165
|
} else if (!def.catchall) {
|
|
@@ -9020,7 +9344,7 @@ var JSONSchemaGenerator = class {
|
|
|
9020
9344
|
break;
|
|
9021
9345
|
}
|
|
9022
9346
|
case "pipe": {
|
|
9023
|
-
const innerType = this.io === "input" ? def.in : def.out;
|
|
9347
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9024
9348
|
this.process(innerType, params);
|
|
9025
9349
|
result.ref = innerType;
|
|
9026
9350
|
break;
|
|
@@ -9062,11 +9386,9 @@ var JSONSchemaGenerator = class {
|
|
|
9062
9386
|
const meta = this.metadataRegistry.get(schema);
|
|
9063
9387
|
if (meta)
|
|
9064
9388
|
Object.assign(result.schema, meta);
|
|
9065
|
-
if (this.io === "input" &&
|
|
9389
|
+
if (this.io === "input" && isTransforming(schema)) {
|
|
9066
9390
|
delete result.schema.examples;
|
|
9067
9391
|
delete result.schema.default;
|
|
9068
|
-
if (result.schema._prefault)
|
|
9069
|
-
result.schema.default = result.schema._prefault;
|
|
9070
9392
|
}
|
|
9071
9393
|
if (this.io === "input" && result.schema._prefault)
|
|
9072
9394
|
(_c = (_a = result.schema).default) != null ? _c : _a.default = result.schema._prefault;
|
|
@@ -9117,8 +9439,8 @@ var JSONSchemaGenerator = class {
|
|
|
9117
9439
|
const schema2 = seen.schema;
|
|
9118
9440
|
for (const key in schema2) {
|
|
9119
9441
|
delete schema2[key];
|
|
9120
|
-
schema2.$ref = ref;
|
|
9121
9442
|
}
|
|
9443
|
+
schema2.$ref = ref;
|
|
9122
9444
|
};
|
|
9123
9445
|
for (const entry of this.seen.entries()) {
|
|
9124
9446
|
const seen = entry[1];
|
|
@@ -9159,7 +9481,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9159
9481
|
var _a2, _b2;
|
|
9160
9482
|
const seen = this.seen.get(zodSchema);
|
|
9161
9483
|
const schema2 = (_a2 = seen.def) != null ? _a2 : seen.schema;
|
|
9162
|
-
const
|
|
9484
|
+
const _cached = __spreadValues({}, schema2);
|
|
9163
9485
|
if (seen.ref === null) {
|
|
9164
9486
|
return;
|
|
9165
9487
|
}
|
|
@@ -9173,7 +9495,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9173
9495
|
schema2.allOf.push(refSchema);
|
|
9174
9496
|
} else {
|
|
9175
9497
|
Object.assign(schema2, refSchema);
|
|
9176
|
-
Object.assign(schema2,
|
|
9498
|
+
Object.assign(schema2, _cached);
|
|
9177
9499
|
}
|
|
9178
9500
|
}
|
|
9179
9501
|
if (!seen.isParent)
|
|
@@ -9247,6 +9569,105 @@ function toJSONSchema(input, _params) {
|
|
|
9247
9569
|
gen.process(input);
|
|
9248
9570
|
return gen.emit(input, _params);
|
|
9249
9571
|
}
|
|
9572
|
+
function isTransforming(_schema, _ctx) {
|
|
9573
|
+
const ctx = _ctx != null ? _ctx : { seen: /* @__PURE__ */ new Set() };
|
|
9574
|
+
if (ctx.seen.has(_schema))
|
|
9575
|
+
return false;
|
|
9576
|
+
ctx.seen.add(_schema);
|
|
9577
|
+
const schema = _schema;
|
|
9578
|
+
const def = schema._zod.def;
|
|
9579
|
+
switch (def.type) {
|
|
9580
|
+
case "string":
|
|
9581
|
+
case "number":
|
|
9582
|
+
case "bigint":
|
|
9583
|
+
case "boolean":
|
|
9584
|
+
case "date":
|
|
9585
|
+
case "symbol":
|
|
9586
|
+
case "undefined":
|
|
9587
|
+
case "null":
|
|
9588
|
+
case "any":
|
|
9589
|
+
case "unknown":
|
|
9590
|
+
case "never":
|
|
9591
|
+
case "void":
|
|
9592
|
+
case "literal":
|
|
9593
|
+
case "enum":
|
|
9594
|
+
case "nan":
|
|
9595
|
+
case "file":
|
|
9596
|
+
case "template_literal":
|
|
9597
|
+
return false;
|
|
9598
|
+
case "array": {
|
|
9599
|
+
return isTransforming(def.element, ctx);
|
|
9600
|
+
}
|
|
9601
|
+
case "object": {
|
|
9602
|
+
for (const key in def.shape) {
|
|
9603
|
+
if (isTransforming(def.shape[key], ctx))
|
|
9604
|
+
return true;
|
|
9605
|
+
}
|
|
9606
|
+
return false;
|
|
9607
|
+
}
|
|
9608
|
+
case "union": {
|
|
9609
|
+
for (const option of def.options) {
|
|
9610
|
+
if (isTransforming(option, ctx))
|
|
9611
|
+
return true;
|
|
9612
|
+
}
|
|
9613
|
+
return false;
|
|
9614
|
+
}
|
|
9615
|
+
case "intersection": {
|
|
9616
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
9617
|
+
}
|
|
9618
|
+
case "tuple": {
|
|
9619
|
+
for (const item of def.items) {
|
|
9620
|
+
if (isTransforming(item, ctx))
|
|
9621
|
+
return true;
|
|
9622
|
+
}
|
|
9623
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
9624
|
+
return true;
|
|
9625
|
+
return false;
|
|
9626
|
+
}
|
|
9627
|
+
case "record": {
|
|
9628
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
9629
|
+
}
|
|
9630
|
+
case "map": {
|
|
9631
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
9632
|
+
}
|
|
9633
|
+
case "set": {
|
|
9634
|
+
return isTransforming(def.valueType, ctx);
|
|
9635
|
+
}
|
|
9636
|
+
// inner types
|
|
9637
|
+
case "promise":
|
|
9638
|
+
case "optional":
|
|
9639
|
+
case "nonoptional":
|
|
9640
|
+
case "nullable":
|
|
9641
|
+
case "readonly":
|
|
9642
|
+
return isTransforming(def.innerType, ctx);
|
|
9643
|
+
case "lazy":
|
|
9644
|
+
return isTransforming(def.getter(), ctx);
|
|
9645
|
+
case "default": {
|
|
9646
|
+
return isTransforming(def.innerType, ctx);
|
|
9647
|
+
}
|
|
9648
|
+
case "prefault": {
|
|
9649
|
+
return isTransforming(def.innerType, ctx);
|
|
9650
|
+
}
|
|
9651
|
+
case "custom": {
|
|
9652
|
+
return false;
|
|
9653
|
+
}
|
|
9654
|
+
case "transform": {
|
|
9655
|
+
return true;
|
|
9656
|
+
}
|
|
9657
|
+
case "pipe": {
|
|
9658
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
9659
|
+
}
|
|
9660
|
+
case "success": {
|
|
9661
|
+
return false;
|
|
9662
|
+
}
|
|
9663
|
+
case "catch": {
|
|
9664
|
+
return false;
|
|
9665
|
+
}
|
|
9666
|
+
default:
|
|
9667
|
+
def;
|
|
9668
|
+
}
|
|
9669
|
+
throw new Error(`Unknown schema type: ${def.type}`);
|
|
9670
|
+
}
|
|
9250
9671
|
|
|
9251
9672
|
// node_modules/zod/dist/esm/v4/core/json-schema.js
|
|
9252
9673
|
var json_schema_exports = {};
|