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.cjs
CHANGED
|
@@ -745,7 +745,7 @@ var allowsEval = cached(() => {
|
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
747
|
function isPlainObject(data) {
|
|
748
|
-
return typeof data === "object" && data !== null && Object.getPrototypeOf(data) === Object.prototype;
|
|
748
|
+
return typeof data === "object" && data !== null && (Object.getPrototypeOf(data) === Object.prototype || Object.getPrototypeOf(data) === null);
|
|
749
749
|
}
|
|
750
750
|
function numKeys(data) {
|
|
751
751
|
let keyCount = 0;
|
|
@@ -1088,10 +1088,10 @@ var initializer = (inst, def) => {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1090
1090
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1091
|
-
function flattenError(
|
|
1091
|
+
function flattenError(error38, mapper = (issue2) => issue2.message) {
|
|
1092
1092
|
const fieldErrors = {};
|
|
1093
1093
|
const formErrors = [];
|
|
1094
|
-
for (const sub of
|
|
1094
|
+
for (const sub of error38.issues) {
|
|
1095
1095
|
if (sub.path.length > 0) {
|
|
1096
1096
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1097
1097
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1101,13 +1101,13 @@ function flattenError(error35, mapper = (issue2) => issue2.message) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
return { formErrors, fieldErrors };
|
|
1103
1103
|
}
|
|
1104
|
-
function formatError(
|
|
1104
|
+
function formatError(error38, _mapper) {
|
|
1105
1105
|
const mapper = _mapper || function(issue2) {
|
|
1106
1106
|
return issue2.message;
|
|
1107
1107
|
};
|
|
1108
1108
|
const fieldErrors = { _errors: [] };
|
|
1109
|
-
const processError = (
|
|
1110
|
-
for (const issue2 of
|
|
1109
|
+
const processError = (error39) => {
|
|
1110
|
+
for (const issue2 of error39.issues) {
|
|
1111
1111
|
if (issue2.code === "invalid_union") {
|
|
1112
1112
|
issue2.errors.map((issues) => processError({ issues }));
|
|
1113
1113
|
} else if (issue2.code === "invalid_key") {
|
|
@@ -1134,18 +1134,18 @@ function formatError(error35, _mapper) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
|
-
processError(
|
|
1137
|
+
processError(error38);
|
|
1138
1138
|
return fieldErrors;
|
|
1139
1139
|
}
|
|
1140
|
-
function treeifyError(
|
|
1140
|
+
function treeifyError(error38, _mapper) {
|
|
1141
1141
|
const mapper = _mapper || function(issue2) {
|
|
1142
1142
|
return issue2.message;
|
|
1143
1143
|
};
|
|
1144
1144
|
const result = { errors: [] };
|
|
1145
|
-
const processError = (
|
|
1145
|
+
const processError = (error39, path = []) => {
|
|
1146
1146
|
var _a2, _b2, _c, _d;
|
|
1147
1147
|
var _a, _b;
|
|
1148
|
-
for (const issue2 of
|
|
1148
|
+
for (const issue2 of error39.issues) {
|
|
1149
1149
|
if (issue2.code === "invalid_union") {
|
|
1150
1150
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1151
1151
|
} else if (issue2.code === "invalid_key") {
|
|
@@ -1180,7 +1180,7 @@ function treeifyError(error35, _mapper) {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
};
|
|
1183
|
-
processError(
|
|
1183
|
+
processError(error38);
|
|
1184
1184
|
return result;
|
|
1185
1185
|
}
|
|
1186
1186
|
function toDotPath(path) {
|
|
@@ -1200,10 +1200,10 @@ function toDotPath(path) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
return segs.join("");
|
|
1202
1202
|
}
|
|
1203
|
-
function prettifyError(
|
|
1203
|
+
function prettifyError(error38) {
|
|
1204
1204
|
var _a;
|
|
1205
1205
|
const lines = [];
|
|
1206
|
-
const issues = [...
|
|
1206
|
+
const issues = [...error38.issues].sort((a, b) => a.path.length - b.path.length);
|
|
1207
1207
|
for (const issue2 of issues) {
|
|
1208
1208
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1209
1209
|
if ((_a = issue2.path) == null ? void 0 : _a.length)
|
|
@@ -2617,6 +2617,11 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2617
2617
|
$ZodType.init(inst, def);
|
|
2618
2618
|
const _normalized = cached(() => {
|
|
2619
2619
|
const keys = Object.keys(def.shape);
|
|
2620
|
+
for (const k of keys) {
|
|
2621
|
+
if (!(def.shape[k] instanceof $ZodType)) {
|
|
2622
|
+
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2620
2625
|
const okeys = optionalKeys(def.shape);
|
|
2621
2626
|
return {
|
|
2622
2627
|
shape: def.shape,
|
|
@@ -2626,26 +2631,19 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2626
2631
|
optionalKeys: new Set(okeys)
|
|
2627
2632
|
};
|
|
2628
2633
|
});
|
|
2629
|
-
defineLazy(inst._zod, "
|
|
2634
|
+
defineLazy(inst._zod, "propValues", () => {
|
|
2630
2635
|
var _a;
|
|
2631
2636
|
const shape = def.shape;
|
|
2632
|
-
const
|
|
2633
|
-
let hasDisc = false;
|
|
2637
|
+
const propValues = {};
|
|
2634
2638
|
for (const key in shape) {
|
|
2635
2639
|
const field = shape[key]._zod;
|
|
2636
|
-
if (field.values
|
|
2637
|
-
|
|
2638
|
-
const
|
|
2639
|
-
|
|
2640
|
-
maps: field.disc ? [field.disc] : []
|
|
2641
|
-
};
|
|
2642
|
-
discMap.set(key, o);
|
|
2640
|
+
if (field.values) {
|
|
2641
|
+
(_a = propValues[key]) != null ? _a : propValues[key] = /* @__PURE__ */ new Set();
|
|
2642
|
+
for (const v of field.values)
|
|
2643
|
+
propValues[key].add(v);
|
|
2643
2644
|
}
|
|
2644
2645
|
}
|
|
2645
|
-
|
|
2646
|
-
return void 0;
|
|
2647
|
-
}
|
|
2648
|
-
return discMap;
|
|
2646
|
+
return propValues;
|
|
2649
2647
|
});
|
|
2650
2648
|
const generateFastpass = (shape) => {
|
|
2651
2649
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
@@ -2833,63 +2831,36 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
2833
2831
|
});
|
|
2834
2832
|
};
|
|
2835
2833
|
});
|
|
2836
|
-
function matchDiscriminatorAtKey(input, key, disc) {
|
|
2837
|
-
let matched = true;
|
|
2838
|
-
const data = input == null ? void 0 : input[key];
|
|
2839
|
-
if (disc.values.size && !disc.values.has(data)) {
|
|
2840
|
-
matched = false;
|
|
2841
|
-
}
|
|
2842
|
-
if (disc.maps.length > 0) {
|
|
2843
|
-
for (const m of disc.maps) {
|
|
2844
|
-
if (!matchDiscriminators(data, m)) {
|
|
2845
|
-
matched = false;
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
2848
|
-
}
|
|
2849
|
-
return matched;
|
|
2850
|
-
}
|
|
2851
|
-
function matchDiscriminators(input, discs) {
|
|
2852
|
-
let matched = true;
|
|
2853
|
-
for (const [key, value] of discs) {
|
|
2854
|
-
if (!matchDiscriminatorAtKey(input, key, value)) {
|
|
2855
|
-
matched = false;
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
return matched;
|
|
2859
|
-
}
|
|
2860
2834
|
var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
2861
2835
|
$ZodUnion.init(inst, def);
|
|
2862
2836
|
const _super = inst._zod.parse;
|
|
2863
|
-
defineLazy(inst._zod, "
|
|
2864
|
-
const
|
|
2865
|
-
for (const
|
|
2866
|
-
const
|
|
2867
|
-
if (!
|
|
2868
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(
|
|
2869
|
-
for (const [
|
|
2870
|
-
if (!
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
});
|
|
2875
|
-
const _o = _disc.get(key);
|
|
2876
|
-
for (const v of o.values) {
|
|
2877
|
-
_o.values.add(v);
|
|
2837
|
+
defineLazy(inst._zod, "propValues", () => {
|
|
2838
|
+
const propValues = {};
|
|
2839
|
+
for (const option of def.options) {
|
|
2840
|
+
const pv = option._zod.propValues;
|
|
2841
|
+
if (!pv || Object.keys(pv).length === 0)
|
|
2842
|
+
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
2843
|
+
for (const [k, v] of Object.entries(pv)) {
|
|
2844
|
+
if (!propValues[k])
|
|
2845
|
+
propValues[k] = /* @__PURE__ */ new Set();
|
|
2846
|
+
for (const val of v) {
|
|
2847
|
+
propValues[k].add(val);
|
|
2878
2848
|
}
|
|
2879
|
-
for (const m of o.maps)
|
|
2880
|
-
_o.maps.push(m);
|
|
2881
2849
|
}
|
|
2882
2850
|
}
|
|
2883
|
-
return
|
|
2851
|
+
return propValues;
|
|
2884
2852
|
});
|
|
2885
|
-
const
|
|
2886
|
-
|
|
2853
|
+
const disc = cached(() => {
|
|
2854
|
+
const opts = def.options;
|
|
2887
2855
|
const map2 = /* @__PURE__ */ new Map();
|
|
2888
|
-
for (const o of
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2856
|
+
for (const o of opts) {
|
|
2857
|
+
const values = o._zod.propValues[def.discriminator];
|
|
2858
|
+
for (const v of values) {
|
|
2859
|
+
if (map2.has(v)) {
|
|
2860
|
+
throw new Error(`Duplicate discriminator value "${String(v)}"`);
|
|
2861
|
+
}
|
|
2862
|
+
map2.set(v, o);
|
|
2863
|
+
}
|
|
2893
2864
|
}
|
|
2894
2865
|
return map2;
|
|
2895
2866
|
});
|
|
@@ -2904,16 +2875,10 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
2904
2875
|
});
|
|
2905
2876
|
return payload;
|
|
2906
2877
|
}
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
const subdisc = discmap.get(option);
|
|
2911
|
-
if (matchDiscriminatorAtKey(input, def.discriminator, subdisc)) {
|
|
2912
|
-
filtered.push(option);
|
|
2913
|
-
}
|
|
2878
|
+
const opt = disc.value.get(input == null ? void 0 : input[def.discriminator]);
|
|
2879
|
+
if (opt) {
|
|
2880
|
+
return opt._zod.run(payload, ctx);
|
|
2914
2881
|
}
|
|
2915
|
-
if (filtered.length === 1)
|
|
2916
|
-
return filtered[0]._zod.run(payload, ctx);
|
|
2917
2882
|
if (def.unionFallback) {
|
|
2918
2883
|
return _super(payload, ctx);
|
|
2919
2884
|
}
|
|
@@ -3511,7 +3476,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3511
3476
|
}
|
|
3512
3477
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3513
3478
|
$ZodType.init(inst, def);
|
|
3514
|
-
defineLazy(inst._zod, "
|
|
3479
|
+
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3515
3480
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3516
3481
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3517
3482
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3581,7 +3546,7 @@ var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
|
3581
3546
|
$ZodType.init(inst, def);
|
|
3582
3547
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
3583
3548
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
|
|
3584
|
-
defineLazy(inst._zod, "
|
|
3549
|
+
defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
|
|
3585
3550
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);
|
|
3586
3551
|
defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);
|
|
3587
3552
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3638,21 +3603,24 @@ __export(locales_exports, {
|
|
|
3638
3603
|
fa: () => fa_default,
|
|
3639
3604
|
fi: () => fi_default,
|
|
3640
3605
|
fr: () => fr_default,
|
|
3641
|
-
frCA: () =>
|
|
3606
|
+
frCA: () => fr_CA_default,
|
|
3642
3607
|
he: () => he_default,
|
|
3643
3608
|
hu: () => hu_default,
|
|
3644
3609
|
id: () => id_default,
|
|
3645
3610
|
it: () => it_default,
|
|
3646
3611
|
ja: () => ja_default,
|
|
3612
|
+
kh: () => kh_default,
|
|
3647
3613
|
ko: () => ko_default,
|
|
3648
3614
|
mk: () => mk_default,
|
|
3649
3615
|
ms: () => ms_default,
|
|
3616
|
+
nl: () => nl_default,
|
|
3650
3617
|
no: () => no_default,
|
|
3651
3618
|
ota: () => ota_default,
|
|
3652
3619
|
pl: () => pl_default,
|
|
3653
3620
|
pt: () => pt_default,
|
|
3654
3621
|
ru: () => ru_default,
|
|
3655
3622
|
sl: () => sl_default,
|
|
3623
|
+
sv: () => sv_default,
|
|
3656
3624
|
ta: () => ta_default,
|
|
3657
3625
|
th: () => th_default,
|
|
3658
3626
|
tr: () => tr_default,
|
|
@@ -3660,7 +3628,7 @@ __export(locales_exports, {
|
|
|
3660
3628
|
ur: () => ur_default,
|
|
3661
3629
|
vi: () => vi_default,
|
|
3662
3630
|
zhCN: () => zh_CN_default,
|
|
3663
|
-
zhTW: () =>
|
|
3631
|
+
zhTW: () => zh_TW_default
|
|
3664
3632
|
});
|
|
3665
3633
|
|
|
3666
3634
|
// node_modules/zod/dist/esm/v4/locales/ar.js
|
|
@@ -4500,7 +4468,6 @@ var error7 = (issue2) => {
|
|
|
4500
4468
|
switch (issue2.code) {
|
|
4501
4469
|
case "invalid_type":
|
|
4502
4470
|
return `Invalid input: expected ${issue2.expected}, received ${parsedType7(issue2.input)}`;
|
|
4503
|
-
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
|
4504
4471
|
case "invalid_value":
|
|
4505
4472
|
if (issue2.values.length === 1)
|
|
4506
4473
|
return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
|
|
@@ -5034,7 +5001,7 @@ function fr_default() {
|
|
|
5034
5001
|
};
|
|
5035
5002
|
}
|
|
5036
5003
|
|
|
5037
|
-
// node_modules/zod/dist/esm/v4/locales/
|
|
5004
|
+
// node_modules/zod/dist/esm/v4/locales/fr-CA.js
|
|
5038
5005
|
var Sizable12 = {
|
|
5039
5006
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5040
5007
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5146,7 +5113,7 @@ var error12 = (issue2) => {
|
|
|
5146
5113
|
return `Entr\xE9e invalide`;
|
|
5147
5114
|
}
|
|
5148
5115
|
};
|
|
5149
|
-
function
|
|
5116
|
+
function fr_CA_default() {
|
|
5150
5117
|
return {
|
|
5151
5118
|
localeError: error12
|
|
5152
5119
|
};
|
|
@@ -5739,18 +5706,136 @@ function ja_default() {
|
|
|
5739
5706
|
};
|
|
5740
5707
|
}
|
|
5741
5708
|
|
|
5742
|
-
// node_modules/zod/dist/esm/v4/locales/
|
|
5709
|
+
// node_modules/zod/dist/esm/v4/locales/kh.js
|
|
5743
5710
|
var Sizable18 = {
|
|
5711
|
+
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
5712
|
+
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
5713
|
+
array: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
5714
|
+
set: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }
|
|
5715
|
+
};
|
|
5716
|
+
function getSizing18(origin) {
|
|
5717
|
+
var _a;
|
|
5718
|
+
return (_a = Sizable18[origin]) != null ? _a : null;
|
|
5719
|
+
}
|
|
5720
|
+
var parsedType18 = (data) => {
|
|
5721
|
+
const t = typeof data;
|
|
5722
|
+
switch (t) {
|
|
5723
|
+
case "number": {
|
|
5724
|
+
return Number.isNaN(data) ? "\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)" : "\u179B\u17C1\u1781";
|
|
5725
|
+
}
|
|
5726
|
+
case "object": {
|
|
5727
|
+
if (Array.isArray(data)) {
|
|
5728
|
+
return "\u17A2\u17B6\u179A\u17C1 (Array)";
|
|
5729
|
+
}
|
|
5730
|
+
if (data === null) {
|
|
5731
|
+
return "\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";
|
|
5732
|
+
}
|
|
5733
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5734
|
+
return data.constructor.name;
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5737
|
+
}
|
|
5738
|
+
return t;
|
|
5739
|
+
};
|
|
5740
|
+
var Nouns18 = {
|
|
5741
|
+
regex: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",
|
|
5742
|
+
email: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",
|
|
5743
|
+
url: "URL",
|
|
5744
|
+
emoji: "\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",
|
|
5745
|
+
uuid: "UUID",
|
|
5746
|
+
uuidv4: "UUIDv4",
|
|
5747
|
+
uuidv6: "UUIDv6",
|
|
5748
|
+
nanoid: "nanoid",
|
|
5749
|
+
guid: "GUID",
|
|
5750
|
+
cuid: "cuid",
|
|
5751
|
+
cuid2: "cuid2",
|
|
5752
|
+
ulid: "ULID",
|
|
5753
|
+
xid: "XID",
|
|
5754
|
+
ksuid: "KSUID",
|
|
5755
|
+
datetime: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",
|
|
5756
|
+
date: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",
|
|
5757
|
+
time: "\u1798\u17C9\u17C4\u1784 ISO",
|
|
5758
|
+
duration: "\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",
|
|
5759
|
+
ipv4: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",
|
|
5760
|
+
ipv6: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",
|
|
5761
|
+
cidrv4: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",
|
|
5762
|
+
cidrv6: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",
|
|
5763
|
+
base64: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",
|
|
5764
|
+
base64url: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",
|
|
5765
|
+
json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",
|
|
5766
|
+
e164: "\u179B\u17C1\u1781 E.164",
|
|
5767
|
+
jwt: "JWT",
|
|
5768
|
+
template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
|
|
5769
|
+
};
|
|
5770
|
+
var error18 = (issue2) => {
|
|
5771
|
+
var _a, _b, _c, _d;
|
|
5772
|
+
switch (issue2.code) {
|
|
5773
|
+
case "invalid_type":
|
|
5774
|
+
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)}`;
|
|
5775
|
+
case "invalid_value":
|
|
5776
|
+
if (issue2.values.length === 1)
|
|
5777
|
+
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])}`;
|
|
5778
|
+
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, "|")}`;
|
|
5779
|
+
case "too_big": {
|
|
5780
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5781
|
+
const sizing = getSizing18(issue2.origin);
|
|
5782
|
+
if (sizing)
|
|
5783
|
+
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"}`;
|
|
5784
|
+
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()}`;
|
|
5785
|
+
}
|
|
5786
|
+
case "too_small": {
|
|
5787
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5788
|
+
const sizing = getSizing18(issue2.origin);
|
|
5789
|
+
if (sizing) {
|
|
5790
|
+
return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5791
|
+
}
|
|
5792
|
+
return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()}`;
|
|
5793
|
+
}
|
|
5794
|
+
case "invalid_format": {
|
|
5795
|
+
const _issue = issue2;
|
|
5796
|
+
if (_issue.format === "starts_with") {
|
|
5797
|
+
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}"`;
|
|
5798
|
+
}
|
|
5799
|
+
if (_issue.format === "ends_with")
|
|
5800
|
+
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}"`;
|
|
5801
|
+
if (_issue.format === "includes")
|
|
5802
|
+
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}"`;
|
|
5803
|
+
if (_issue.format === "regex")
|
|
5804
|
+
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}`;
|
|
5805
|
+
return `\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${(_d = Nouns18[_issue.format]) != null ? _d : issue2.format}`;
|
|
5806
|
+
}
|
|
5807
|
+
case "not_multiple_of":
|
|
5808
|
+
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}`;
|
|
5809
|
+
case "unrecognized_keys":
|
|
5810
|
+
return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${joinValues(issue2.keys, ", ")}`;
|
|
5811
|
+
case "invalid_key":
|
|
5812
|
+
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}`;
|
|
5813
|
+
case "invalid_union":
|
|
5814
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`;
|
|
5815
|
+
case "invalid_element":
|
|
5816
|
+
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}`;
|
|
5817
|
+
default:
|
|
5818
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`;
|
|
5819
|
+
}
|
|
5820
|
+
};
|
|
5821
|
+
function kh_default() {
|
|
5822
|
+
return {
|
|
5823
|
+
localeError: error18
|
|
5824
|
+
};
|
|
5825
|
+
}
|
|
5826
|
+
|
|
5827
|
+
// node_modules/zod/dist/esm/v4/locales/ko.js
|
|
5828
|
+
var Sizable19 = {
|
|
5744
5829
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
5745
5830
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
5746
5831
|
array: { unit: "\uAC1C", verb: "to have" },
|
|
5747
5832
|
set: { unit: "\uAC1C", verb: "to have" }
|
|
5748
5833
|
};
|
|
5749
|
-
function
|
|
5834
|
+
function getSizing19(origin) {
|
|
5750
5835
|
var _a;
|
|
5751
|
-
return (_a =
|
|
5836
|
+
return (_a = Sizable19[origin]) != null ? _a : null;
|
|
5752
5837
|
}
|
|
5753
|
-
var
|
|
5838
|
+
var parsedType19 = (data) => {
|
|
5754
5839
|
const t = typeof data;
|
|
5755
5840
|
switch (t) {
|
|
5756
5841
|
case "number": {
|
|
@@ -5770,7 +5855,7 @@ var parsedType18 = (data) => {
|
|
|
5770
5855
|
}
|
|
5771
5856
|
return t;
|
|
5772
5857
|
};
|
|
5773
|
-
var
|
|
5858
|
+
var Nouns19 = {
|
|
5774
5859
|
regex: "\uC785\uB825",
|
|
5775
5860
|
email: "\uC774\uBA54\uC77C \uC8FC\uC18C",
|
|
5776
5861
|
url: "URL",
|
|
@@ -5800,11 +5885,11 @@ var Nouns18 = {
|
|
|
5800
5885
|
jwt: "JWT",
|
|
5801
5886
|
template_literal: "\uC785\uB825"
|
|
5802
5887
|
};
|
|
5803
|
-
var
|
|
5888
|
+
var error19 = (issue2) => {
|
|
5804
5889
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
5805
5890
|
switch (issue2.code) {
|
|
5806
5891
|
case "invalid_type":
|
|
5807
|
-
return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${
|
|
5892
|
+
return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType19(issue2.input)}\uC785\uB2C8\uB2E4`;
|
|
5808
5893
|
case "invalid_value":
|
|
5809
5894
|
if (issue2.values.length === 1)
|
|
5810
5895
|
return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`;
|
|
@@ -5812,7 +5897,7 @@ var error18 = (issue2) => {
|
|
|
5812
5897
|
case "too_big": {
|
|
5813
5898
|
const adj = issue2.inclusive ? "\uC774\uD558" : "\uBBF8\uB9CC";
|
|
5814
5899
|
const suffix = adj === "\uBBF8\uB9CC" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
|
|
5815
|
-
const sizing =
|
|
5900
|
+
const sizing = getSizing19(issue2.origin);
|
|
5816
5901
|
const unit = (_a = sizing == null ? void 0 : sizing.unit) != null ? _a : "\uC694\uC18C";
|
|
5817
5902
|
if (sizing)
|
|
5818
5903
|
return `${(_b = issue2.origin) != null ? _b : "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()}${unit} ${adj}${suffix}`;
|
|
@@ -5821,7 +5906,7 @@ var error18 = (issue2) => {
|
|
|
5821
5906
|
case "too_small": {
|
|
5822
5907
|
const adj = issue2.inclusive ? "\uC774\uC0C1" : "\uCD08\uACFC";
|
|
5823
5908
|
const suffix = adj === "\uC774\uC0C1" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
|
|
5824
|
-
const sizing =
|
|
5909
|
+
const sizing = getSizing19(issue2.origin);
|
|
5825
5910
|
const unit = (_d = sizing == null ? void 0 : sizing.unit) != null ? _d : "\uC694\uC18C";
|
|
5826
5911
|
if (sizing) {
|
|
5827
5912
|
return `${(_e = issue2.origin) != null ? _e : "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()}${unit} ${adj}${suffix}`;
|
|
@@ -5839,7 +5924,7 @@ var error18 = (issue2) => {
|
|
|
5839
5924
|
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
|
5840
5925
|
if (_issue.format === "regex")
|
|
5841
5926
|
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
|
5842
|
-
return `\uC798\uBABB\uB41C ${(_g =
|
|
5927
|
+
return `\uC798\uBABB\uB41C ${(_g = Nouns19[_issue.format]) != null ? _g : issue2.format}`;
|
|
5843
5928
|
}
|
|
5844
5929
|
case "not_multiple_of":
|
|
5845
5930
|
return `\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
|
|
@@ -5857,22 +5942,22 @@ var error18 = (issue2) => {
|
|
|
5857
5942
|
};
|
|
5858
5943
|
function ko_default() {
|
|
5859
5944
|
return {
|
|
5860
|
-
localeError:
|
|
5945
|
+
localeError: error19
|
|
5861
5946
|
};
|
|
5862
5947
|
}
|
|
5863
5948
|
|
|
5864
5949
|
// node_modules/zod/dist/esm/v4/locales/mk.js
|
|
5865
|
-
var
|
|
5950
|
+
var Sizable20 = {
|
|
5866
5951
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
5867
5952
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
5868
5953
|
array: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
5869
5954
|
set: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }
|
|
5870
5955
|
};
|
|
5871
|
-
function
|
|
5956
|
+
function getSizing20(origin) {
|
|
5872
5957
|
var _a;
|
|
5873
|
-
return (_a =
|
|
5958
|
+
return (_a = Sizable20[origin]) != null ? _a : null;
|
|
5874
5959
|
}
|
|
5875
|
-
var
|
|
5960
|
+
var parsedType20 = (data) => {
|
|
5876
5961
|
const t = typeof data;
|
|
5877
5962
|
switch (t) {
|
|
5878
5963
|
case "number": {
|
|
@@ -5892,7 +5977,7 @@ var parsedType19 = (data) => {
|
|
|
5892
5977
|
}
|
|
5893
5978
|
return t;
|
|
5894
5979
|
};
|
|
5895
|
-
var
|
|
5980
|
+
var Nouns20 = {
|
|
5896
5981
|
regex: "\u0432\u043D\u0435\u0441",
|
|
5897
5982
|
email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",
|
|
5898
5983
|
url: "URL",
|
|
@@ -5922,11 +6007,11 @@ var Nouns19 = {
|
|
|
5922
6007
|
jwt: "JWT",
|
|
5923
6008
|
template_literal: "\u0432\u043D\u0435\u0441"
|
|
5924
6009
|
};
|
|
5925
|
-
var
|
|
6010
|
+
var error20 = (issue2) => {
|
|
5926
6011
|
var _a, _b, _c, _d;
|
|
5927
6012
|
switch (issue2.code) {
|
|
5928
6013
|
case "invalid_type":
|
|
5929
|
-
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 ${
|
|
6014
|
+
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)}`;
|
|
5930
6015
|
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
|
5931
6016
|
case "invalid_value":
|
|
5932
6017
|
if (issue2.values.length === 1)
|
|
@@ -5934,14 +6019,14 @@ var error19 = (issue2) => {
|
|
|
5934
6019
|
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, "|")}`;
|
|
5935
6020
|
case "too_big": {
|
|
5936
6021
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5937
|
-
const sizing =
|
|
6022
|
+
const sizing = getSizing20(issue2.origin);
|
|
5938
6023
|
if (sizing)
|
|
5939
6024
|
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"}`;
|
|
5940
6025
|
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()}`;
|
|
5941
6026
|
}
|
|
5942
6027
|
case "too_small": {
|
|
5943
6028
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5944
|
-
const sizing =
|
|
6029
|
+
const sizing = getSizing20(issue2.origin);
|
|
5945
6030
|
if (sizing) {
|
|
5946
6031
|
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}`;
|
|
5947
6032
|
}
|
|
@@ -5958,7 +6043,7 @@ var error19 = (issue2) => {
|
|
|
5958
6043
|
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}"`;
|
|
5959
6044
|
if (_issue.format === "regex")
|
|
5960
6045
|
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}`;
|
|
5961
|
-
return `Invalid ${(_d =
|
|
6046
|
+
return `Invalid ${(_d = Nouns20[_issue.format]) != null ? _d : issue2.format}`;
|
|
5962
6047
|
}
|
|
5963
6048
|
case "not_multiple_of":
|
|
5964
6049
|
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}`;
|
|
@@ -5976,22 +6061,22 @@ var error19 = (issue2) => {
|
|
|
5976
6061
|
};
|
|
5977
6062
|
function mk_default() {
|
|
5978
6063
|
return {
|
|
5979
|
-
localeError:
|
|
6064
|
+
localeError: error20
|
|
5980
6065
|
};
|
|
5981
6066
|
}
|
|
5982
6067
|
|
|
5983
6068
|
// node_modules/zod/dist/esm/v4/locales/ms.js
|
|
5984
|
-
var
|
|
6069
|
+
var Sizable21 = {
|
|
5985
6070
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
5986
6071
|
file: { unit: "bait", verb: "mempunyai" },
|
|
5987
6072
|
array: { unit: "elemen", verb: "mempunyai" },
|
|
5988
6073
|
set: { unit: "elemen", verb: "mempunyai" }
|
|
5989
6074
|
};
|
|
5990
|
-
function
|
|
6075
|
+
function getSizing21(origin) {
|
|
5991
6076
|
var _a;
|
|
5992
|
-
return (_a =
|
|
6077
|
+
return (_a = Sizable21[origin]) != null ? _a : null;
|
|
5993
6078
|
}
|
|
5994
|
-
var
|
|
6079
|
+
var parsedType21 = (data) => {
|
|
5995
6080
|
const t = typeof data;
|
|
5996
6081
|
switch (t) {
|
|
5997
6082
|
case "number": {
|
|
@@ -6011,7 +6096,7 @@ var parsedType20 = (data) => {
|
|
|
6011
6096
|
}
|
|
6012
6097
|
return t;
|
|
6013
6098
|
};
|
|
6014
|
-
var
|
|
6099
|
+
var Nouns21 = {
|
|
6015
6100
|
regex: "input",
|
|
6016
6101
|
email: "alamat e-mel",
|
|
6017
6102
|
url: "URL",
|
|
@@ -6041,25 +6126,25 @@ var Nouns20 = {
|
|
|
6041
6126
|
jwt: "JWT",
|
|
6042
6127
|
template_literal: "input"
|
|
6043
6128
|
};
|
|
6044
|
-
var
|
|
6129
|
+
var error21 = (issue2) => {
|
|
6045
6130
|
var _a, _b, _c, _d;
|
|
6046
6131
|
switch (issue2.code) {
|
|
6047
6132
|
case "invalid_type":
|
|
6048
|
-
return `Input tidak sah: dijangka ${issue2.expected}, diterima ${
|
|
6133
|
+
return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType21(issue2.input)}`;
|
|
6049
6134
|
case "invalid_value":
|
|
6050
6135
|
if (issue2.values.length === 1)
|
|
6051
6136
|
return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
|
|
6052
6137
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue2.values, "|")}`;
|
|
6053
6138
|
case "too_big": {
|
|
6054
6139
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6055
|
-
const sizing =
|
|
6140
|
+
const sizing = getSizing21(issue2.origin);
|
|
6056
6141
|
if (sizing)
|
|
6057
6142
|
return `Terlalu besar: dijangka ${(_a = issue2.origin) != null ? _a : "nilai"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elemen"}`;
|
|
6058
6143
|
return `Terlalu besar: dijangka ${(_c = issue2.origin) != null ? _c : "nilai"} adalah ${adj}${issue2.maximum.toString()}`;
|
|
6059
6144
|
}
|
|
6060
6145
|
case "too_small": {
|
|
6061
6146
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6062
|
-
const sizing =
|
|
6147
|
+
const sizing = getSizing21(issue2.origin);
|
|
6063
6148
|
if (sizing) {
|
|
6064
6149
|
return `Terlalu kecil: dijangka ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6065
6150
|
}
|
|
@@ -6075,7 +6160,7 @@ var error20 = (issue2) => {
|
|
|
6075
6160
|
return `String tidak sah: mesti mengandungi "${_issue.includes}"`;
|
|
6076
6161
|
if (_issue.format === "regex")
|
|
6077
6162
|
return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;
|
|
6078
|
-
return `${(_d =
|
|
6163
|
+
return `${(_d = Nouns21[_issue.format]) != null ? _d : issue2.format} tidak sah`;
|
|
6079
6164
|
}
|
|
6080
6165
|
case "not_multiple_of":
|
|
6081
6166
|
return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`;
|
|
@@ -6093,22 +6178,140 @@ var error20 = (issue2) => {
|
|
|
6093
6178
|
};
|
|
6094
6179
|
function ms_default() {
|
|
6095
6180
|
return {
|
|
6096
|
-
localeError:
|
|
6181
|
+
localeError: error21
|
|
6182
|
+
};
|
|
6183
|
+
}
|
|
6184
|
+
|
|
6185
|
+
// node_modules/zod/dist/esm/v4/locales/nl.js
|
|
6186
|
+
var Sizable22 = {
|
|
6187
|
+
string: { unit: "tekens" },
|
|
6188
|
+
file: { unit: "bytes" },
|
|
6189
|
+
array: { unit: "elementen" },
|
|
6190
|
+
set: { unit: "elementen" }
|
|
6191
|
+
};
|
|
6192
|
+
function getSizing22(origin) {
|
|
6193
|
+
var _a;
|
|
6194
|
+
return (_a = Sizable22[origin]) != null ? _a : null;
|
|
6195
|
+
}
|
|
6196
|
+
var parsedType22 = (data) => {
|
|
6197
|
+
const t = typeof data;
|
|
6198
|
+
switch (t) {
|
|
6199
|
+
case "number": {
|
|
6200
|
+
return Number.isNaN(data) ? "NaN" : "getal";
|
|
6201
|
+
}
|
|
6202
|
+
case "object": {
|
|
6203
|
+
if (Array.isArray(data)) {
|
|
6204
|
+
return "array";
|
|
6205
|
+
}
|
|
6206
|
+
if (data === null) {
|
|
6207
|
+
return "null";
|
|
6208
|
+
}
|
|
6209
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6210
|
+
return data.constructor.name;
|
|
6211
|
+
}
|
|
6212
|
+
}
|
|
6213
|
+
}
|
|
6214
|
+
return t;
|
|
6215
|
+
};
|
|
6216
|
+
var Nouns22 = {
|
|
6217
|
+
regex: "invoer",
|
|
6218
|
+
email: "emailadres",
|
|
6219
|
+
url: "URL",
|
|
6220
|
+
emoji: "emoji",
|
|
6221
|
+
uuid: "UUID",
|
|
6222
|
+
uuidv4: "UUIDv4",
|
|
6223
|
+
uuidv6: "UUIDv6",
|
|
6224
|
+
nanoid: "nanoid",
|
|
6225
|
+
guid: "GUID",
|
|
6226
|
+
cuid: "cuid",
|
|
6227
|
+
cuid2: "cuid2",
|
|
6228
|
+
ulid: "ULID",
|
|
6229
|
+
xid: "XID",
|
|
6230
|
+
ksuid: "KSUID",
|
|
6231
|
+
datetime: "ISO datum en tijd",
|
|
6232
|
+
date: "ISO datum",
|
|
6233
|
+
time: "ISO tijd",
|
|
6234
|
+
duration: "ISO duur",
|
|
6235
|
+
ipv4: "IPv4-adres",
|
|
6236
|
+
ipv6: "IPv6-adres",
|
|
6237
|
+
cidrv4: "IPv4-bereik",
|
|
6238
|
+
cidrv6: "IPv6-bereik",
|
|
6239
|
+
base64: "base64-gecodeerde tekst",
|
|
6240
|
+
base64url: "base64 URL-gecodeerde tekst",
|
|
6241
|
+
json_string: "JSON string",
|
|
6242
|
+
e164: "E.164-nummer",
|
|
6243
|
+
jwt: "JWT",
|
|
6244
|
+
template_literal: "invoer"
|
|
6245
|
+
};
|
|
6246
|
+
var error22 = (issue2) => {
|
|
6247
|
+
var _a, _b, _c, _d;
|
|
6248
|
+
switch (issue2.code) {
|
|
6249
|
+
case "invalid_type":
|
|
6250
|
+
return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType22(issue2.input)}`;
|
|
6251
|
+
case "invalid_value":
|
|
6252
|
+
if (issue2.values.length === 1)
|
|
6253
|
+
return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
|
|
6254
|
+
return `Ongeldige optie: verwacht \xE9\xE9n van ${joinValues(issue2.values, "|")}`;
|
|
6255
|
+
case "too_big": {
|
|
6256
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6257
|
+
const sizing = getSizing22(issue2.origin);
|
|
6258
|
+
if (sizing)
|
|
6259
|
+
return `Te lang: verwacht dat ${(_a = issue2.origin) != null ? _a : "waarde"} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementen"} bevat`;
|
|
6260
|
+
return `Te lang: verwacht dat ${(_c = issue2.origin) != null ? _c : "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
6261
|
+
}
|
|
6262
|
+
case "too_small": {
|
|
6263
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6264
|
+
const sizing = getSizing22(issue2.origin);
|
|
6265
|
+
if (sizing) {
|
|
6266
|
+
return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} bevat`;
|
|
6267
|
+
}
|
|
6268
|
+
return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
6269
|
+
}
|
|
6270
|
+
case "invalid_format": {
|
|
6271
|
+
const _issue = issue2;
|
|
6272
|
+
if (_issue.format === "starts_with") {
|
|
6273
|
+
return `Ongeldige tekst: moet met "${_issue.prefix}" beginnen`;
|
|
6274
|
+
}
|
|
6275
|
+
if (_issue.format === "ends_with")
|
|
6276
|
+
return `Ongeldige tekst: moet op "${_issue.suffix}" eindigen`;
|
|
6277
|
+
if (_issue.format === "includes")
|
|
6278
|
+
return `Ongeldige tekst: moet "${_issue.includes}" bevatten`;
|
|
6279
|
+
if (_issue.format === "regex")
|
|
6280
|
+
return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;
|
|
6281
|
+
return `Ongeldig: ${(_d = Nouns22[_issue.format]) != null ? _d : issue2.format}`;
|
|
6282
|
+
}
|
|
6283
|
+
case "not_multiple_of":
|
|
6284
|
+
return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;
|
|
6285
|
+
case "unrecognized_keys":
|
|
6286
|
+
return `Onbekende key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
6287
|
+
case "invalid_key":
|
|
6288
|
+
return `Ongeldige key in ${issue2.origin}`;
|
|
6289
|
+
case "invalid_union":
|
|
6290
|
+
return "Ongeldige invoer";
|
|
6291
|
+
case "invalid_element":
|
|
6292
|
+
return `Ongeldige waarde in ${issue2.origin}`;
|
|
6293
|
+
default:
|
|
6294
|
+
return `Ongeldige invoer`;
|
|
6295
|
+
}
|
|
6296
|
+
};
|
|
6297
|
+
function nl_default() {
|
|
6298
|
+
return {
|
|
6299
|
+
localeError: error22
|
|
6097
6300
|
};
|
|
6098
6301
|
}
|
|
6099
6302
|
|
|
6100
6303
|
// node_modules/zod/dist/esm/v4/locales/no.js
|
|
6101
|
-
var
|
|
6304
|
+
var Sizable23 = {
|
|
6102
6305
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
6103
6306
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
6104
6307
|
array: { unit: "elementer", verb: "\xE5 inneholde" },
|
|
6105
6308
|
set: { unit: "elementer", verb: "\xE5 inneholde" }
|
|
6106
6309
|
};
|
|
6107
|
-
function
|
|
6310
|
+
function getSizing23(origin) {
|
|
6108
6311
|
var _a;
|
|
6109
|
-
return (_a =
|
|
6312
|
+
return (_a = Sizable23[origin]) != null ? _a : null;
|
|
6110
6313
|
}
|
|
6111
|
-
var
|
|
6314
|
+
var parsedType23 = (data) => {
|
|
6112
6315
|
const t = typeof data;
|
|
6113
6316
|
switch (t) {
|
|
6114
6317
|
case "number": {
|
|
@@ -6128,7 +6331,7 @@ var parsedType21 = (data) => {
|
|
|
6128
6331
|
}
|
|
6129
6332
|
return t;
|
|
6130
6333
|
};
|
|
6131
|
-
var
|
|
6334
|
+
var Nouns23 = {
|
|
6132
6335
|
regex: "input",
|
|
6133
6336
|
email: "e-postadresse",
|
|
6134
6337
|
url: "URL",
|
|
@@ -6158,25 +6361,25 @@ var Nouns21 = {
|
|
|
6158
6361
|
jwt: "JWT",
|
|
6159
6362
|
template_literal: "input"
|
|
6160
6363
|
};
|
|
6161
|
-
var
|
|
6364
|
+
var error23 = (issue2) => {
|
|
6162
6365
|
var _a, _b, _c, _d;
|
|
6163
6366
|
switch (issue2.code) {
|
|
6164
6367
|
case "invalid_type":
|
|
6165
|
-
return `Ugyldig input: forventet ${issue2.expected}, fikk ${
|
|
6368
|
+
return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType23(issue2.input)}`;
|
|
6166
6369
|
case "invalid_value":
|
|
6167
6370
|
if (issue2.values.length === 1)
|
|
6168
6371
|
return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
|
|
6169
6372
|
return `Ugyldig valg: forventet en av ${joinValues(issue2.values, "|")}`;
|
|
6170
6373
|
case "too_big": {
|
|
6171
6374
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6172
|
-
const sizing =
|
|
6375
|
+
const sizing = getSizing23(issue2.origin);
|
|
6173
6376
|
if (sizing)
|
|
6174
6377
|
return `For stor(t): forventet ${(_a = issue2.origin) != null ? _a : "value"} til \xE5 ha ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementer"}`;
|
|
6175
6378
|
return `For stor(t): forventet ${(_c = issue2.origin) != null ? _c : "value"} til \xE5 ha ${adj}${issue2.maximum.toString()}`;
|
|
6176
6379
|
}
|
|
6177
6380
|
case "too_small": {
|
|
6178
6381
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6179
|
-
const sizing =
|
|
6382
|
+
const sizing = getSizing23(issue2.origin);
|
|
6180
6383
|
if (sizing) {
|
|
6181
6384
|
return `For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6182
6385
|
}
|
|
@@ -6192,7 +6395,7 @@ var error21 = (issue2) => {
|
|
|
6192
6395
|
return `Ugyldig streng: m\xE5 inneholde "${_issue.includes}"`;
|
|
6193
6396
|
if (_issue.format === "regex")
|
|
6194
6397
|
return `Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`;
|
|
6195
|
-
return `Ugyldig ${(_d =
|
|
6398
|
+
return `Ugyldig ${(_d = Nouns23[_issue.format]) != null ? _d : issue2.format}`;
|
|
6196
6399
|
}
|
|
6197
6400
|
case "not_multiple_of":
|
|
6198
6401
|
return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${issue2.divisor}`;
|
|
@@ -6210,22 +6413,22 @@ var error21 = (issue2) => {
|
|
|
6210
6413
|
};
|
|
6211
6414
|
function no_default() {
|
|
6212
6415
|
return {
|
|
6213
|
-
localeError:
|
|
6416
|
+
localeError: error23
|
|
6214
6417
|
};
|
|
6215
6418
|
}
|
|
6216
6419
|
|
|
6217
6420
|
// node_modules/zod/dist/esm/v4/locales/ota.js
|
|
6218
|
-
var
|
|
6421
|
+
var Sizable24 = {
|
|
6219
6422
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
6220
6423
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
6221
6424
|
array: { unit: "unsur", verb: "olmal\u0131d\u0131r" },
|
|
6222
6425
|
set: { unit: "unsur", verb: "olmal\u0131d\u0131r" }
|
|
6223
6426
|
};
|
|
6224
|
-
function
|
|
6427
|
+
function getSizing24(origin) {
|
|
6225
6428
|
var _a;
|
|
6226
|
-
return (_a =
|
|
6429
|
+
return (_a = Sizable24[origin]) != null ? _a : null;
|
|
6227
6430
|
}
|
|
6228
|
-
var
|
|
6431
|
+
var parsedType24 = (data) => {
|
|
6229
6432
|
const t = typeof data;
|
|
6230
6433
|
switch (t) {
|
|
6231
6434
|
case "number": {
|
|
@@ -6245,7 +6448,7 @@ var parsedType22 = (data) => {
|
|
|
6245
6448
|
}
|
|
6246
6449
|
return t;
|
|
6247
6450
|
};
|
|
6248
|
-
var
|
|
6451
|
+
var Nouns24 = {
|
|
6249
6452
|
regex: "giren",
|
|
6250
6453
|
email: "epostag\xE2h",
|
|
6251
6454
|
url: "URL",
|
|
@@ -6275,11 +6478,11 @@ var Nouns22 = {
|
|
|
6275
6478
|
jwt: "JWT",
|
|
6276
6479
|
template_literal: "giren"
|
|
6277
6480
|
};
|
|
6278
|
-
var
|
|
6481
|
+
var error24 = (issue2) => {
|
|
6279
6482
|
var _a, _b, _c, _d;
|
|
6280
6483
|
switch (issue2.code) {
|
|
6281
6484
|
case "invalid_type":
|
|
6282
|
-
return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${
|
|
6485
|
+
return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType24(issue2.input)}`;
|
|
6283
6486
|
// return `Fâsit giren: umulan ${issue.expected}, alınan ${util.getParsedType(issue.input)}`;
|
|
6284
6487
|
case "invalid_value":
|
|
6285
6488
|
if (issue2.values.length === 1)
|
|
@@ -6287,14 +6490,14 @@ var error22 = (issue2) => {
|
|
|
6287
6490
|
return `F\xE2sit tercih: m\xFBteberler ${joinValues(issue2.values, "|")}`;
|
|
6288
6491
|
case "too_big": {
|
|
6289
6492
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6290
|
-
const sizing =
|
|
6493
|
+
const sizing = getSizing24(issue2.origin);
|
|
6291
6494
|
if (sizing)
|
|
6292
6495
|
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.`;
|
|
6293
6496
|
return `Fazla b\xFCy\xFCk: ${(_c = issue2.origin) != null ? _c : "value"}, ${adj}${issue2.maximum.toString()} olmal\u0131yd\u0131.`;
|
|
6294
6497
|
}
|
|
6295
6498
|
case "too_small": {
|
|
6296
6499
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6297
|
-
const sizing =
|
|
6500
|
+
const sizing = getSizing24(issue2.origin);
|
|
6298
6501
|
if (sizing) {
|
|
6299
6502
|
return `Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} ${sizing.unit} sahip olmal\u0131yd\u0131.`;
|
|
6300
6503
|
}
|
|
@@ -6310,7 +6513,7 @@ var error22 = (issue2) => {
|
|
|
6310
6513
|
return `F\xE2sit metin: "${_issue.includes}" ihtiv\xE2 etmeli.`;
|
|
6311
6514
|
if (_issue.format === "regex")
|
|
6312
6515
|
return `F\xE2sit metin: ${_issue.pattern} nak\u015F\u0131na uymal\u0131.`;
|
|
6313
|
-
return `F\xE2sit ${(_d =
|
|
6516
|
+
return `F\xE2sit ${(_d = Nouns24[_issue.format]) != null ? _d : issue2.format}`;
|
|
6314
6517
|
}
|
|
6315
6518
|
case "not_multiple_of":
|
|
6316
6519
|
return `F\xE2sit say\u0131: ${issue2.divisor} kat\u0131 olmal\u0131yd\u0131.`;
|
|
@@ -6328,22 +6531,22 @@ var error22 = (issue2) => {
|
|
|
6328
6531
|
};
|
|
6329
6532
|
function ota_default() {
|
|
6330
6533
|
return {
|
|
6331
|
-
localeError:
|
|
6534
|
+
localeError: error24
|
|
6332
6535
|
};
|
|
6333
6536
|
}
|
|
6334
6537
|
|
|
6335
6538
|
// node_modules/zod/dist/esm/v4/locales/pl.js
|
|
6336
|
-
var
|
|
6539
|
+
var Sizable25 = {
|
|
6337
6540
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
6338
6541
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
6339
6542
|
array: { unit: "element\xF3w", verb: "mie\u0107" },
|
|
6340
6543
|
set: { unit: "element\xF3w", verb: "mie\u0107" }
|
|
6341
6544
|
};
|
|
6342
|
-
function
|
|
6545
|
+
function getSizing25(origin) {
|
|
6343
6546
|
var _a;
|
|
6344
|
-
return (_a =
|
|
6547
|
+
return (_a = Sizable25[origin]) != null ? _a : null;
|
|
6345
6548
|
}
|
|
6346
|
-
var
|
|
6549
|
+
var parsedType25 = (data) => {
|
|
6347
6550
|
const t = typeof data;
|
|
6348
6551
|
switch (t) {
|
|
6349
6552
|
case "number": {
|
|
@@ -6363,7 +6566,7 @@ var parsedType23 = (data) => {
|
|
|
6363
6566
|
}
|
|
6364
6567
|
return t;
|
|
6365
6568
|
};
|
|
6366
|
-
var
|
|
6569
|
+
var Nouns25 = {
|
|
6367
6570
|
regex: "wyra\u017Cenie",
|
|
6368
6571
|
email: "adres email",
|
|
6369
6572
|
url: "URL",
|
|
@@ -6393,18 +6596,18 @@ var Nouns23 = {
|
|
|
6393
6596
|
jwt: "JWT",
|
|
6394
6597
|
template_literal: "wej\u015Bcie"
|
|
6395
6598
|
};
|
|
6396
|
-
var
|
|
6599
|
+
var error25 = (issue2) => {
|
|
6397
6600
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6398
6601
|
switch (issue2.code) {
|
|
6399
6602
|
case "invalid_type":
|
|
6400
|
-
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${
|
|
6603
|
+
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType25(issue2.input)}`;
|
|
6401
6604
|
case "invalid_value":
|
|
6402
6605
|
if (issue2.values.length === 1)
|
|
6403
6606
|
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6404
6607
|
return `Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${joinValues(issue2.values, "|")}`;
|
|
6405
6608
|
case "too_big": {
|
|
6406
6609
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6407
|
-
const sizing =
|
|
6610
|
+
const sizing = getSizing25(issue2.origin);
|
|
6408
6611
|
if (sizing) {
|
|
6409
6612
|
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"}`;
|
|
6410
6613
|
}
|
|
@@ -6412,7 +6615,7 @@ var error23 = (issue2) => {
|
|
|
6412
6615
|
}
|
|
6413
6616
|
case "too_small": {
|
|
6414
6617
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6415
|
-
const sizing =
|
|
6618
|
+
const sizing = getSizing25(issue2.origin);
|
|
6416
6619
|
if (sizing) {
|
|
6417
6620
|
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"}`;
|
|
6418
6621
|
}
|
|
@@ -6428,7 +6631,7 @@ var error23 = (issue2) => {
|
|
|
6428
6631
|
return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${_issue.includes}"`;
|
|
6429
6632
|
if (_issue.format === "regex")
|
|
6430
6633
|
return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${_issue.pattern}`;
|
|
6431
|
-
return `Nieprawid\u0142ow(y/a/e) ${(_g =
|
|
6634
|
+
return `Nieprawid\u0142ow(y/a/e) ${(_g = Nouns25[_issue.format]) != null ? _g : issue2.format}`;
|
|
6432
6635
|
}
|
|
6433
6636
|
case "not_multiple_of":
|
|
6434
6637
|
return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;
|
|
@@ -6446,22 +6649,22 @@ var error23 = (issue2) => {
|
|
|
6446
6649
|
};
|
|
6447
6650
|
function pl_default() {
|
|
6448
6651
|
return {
|
|
6449
|
-
localeError:
|
|
6652
|
+
localeError: error25
|
|
6450
6653
|
};
|
|
6451
6654
|
}
|
|
6452
6655
|
|
|
6453
6656
|
// node_modules/zod/dist/esm/v4/locales/pt.js
|
|
6454
|
-
var
|
|
6657
|
+
var Sizable26 = {
|
|
6455
6658
|
string: { unit: "caracteres", verb: "ter" },
|
|
6456
6659
|
file: { unit: "bytes", verb: "ter" },
|
|
6457
6660
|
array: { unit: "itens", verb: "ter" },
|
|
6458
6661
|
set: { unit: "itens", verb: "ter" }
|
|
6459
6662
|
};
|
|
6460
|
-
function
|
|
6663
|
+
function getSizing26(origin) {
|
|
6461
6664
|
var _a;
|
|
6462
|
-
return (_a =
|
|
6665
|
+
return (_a = Sizable26[origin]) != null ? _a : null;
|
|
6463
6666
|
}
|
|
6464
|
-
var
|
|
6667
|
+
var parsedType26 = (data) => {
|
|
6465
6668
|
const t = typeof data;
|
|
6466
6669
|
switch (t) {
|
|
6467
6670
|
case "number": {
|
|
@@ -6481,7 +6684,7 @@ var parsedType24 = (data) => {
|
|
|
6481
6684
|
}
|
|
6482
6685
|
return t;
|
|
6483
6686
|
};
|
|
6484
|
-
var
|
|
6687
|
+
var Nouns26 = {
|
|
6485
6688
|
regex: "padr\xE3o",
|
|
6486
6689
|
email: "endere\xE7o de e-mail",
|
|
6487
6690
|
url: "URL",
|
|
@@ -6511,25 +6714,25 @@ var Nouns24 = {
|
|
|
6511
6714
|
jwt: "JWT",
|
|
6512
6715
|
template_literal: "entrada"
|
|
6513
6716
|
};
|
|
6514
|
-
var
|
|
6717
|
+
var error26 = (issue2) => {
|
|
6515
6718
|
var _a, _b, _c, _d;
|
|
6516
6719
|
switch (issue2.code) {
|
|
6517
6720
|
case "invalid_type":
|
|
6518
|
-
return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${
|
|
6721
|
+
return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType26(issue2.input)}`;
|
|
6519
6722
|
case "invalid_value":
|
|
6520
6723
|
if (issue2.values.length === 1)
|
|
6521
6724
|
return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
|
|
6522
6725
|
return `Op\xE7\xE3o inv\xE1lida: esperada uma das ${joinValues(issue2.values, "|")}`;
|
|
6523
6726
|
case "too_big": {
|
|
6524
6727
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6525
|
-
const sizing =
|
|
6728
|
+
const sizing = getSizing26(issue2.origin);
|
|
6526
6729
|
if (sizing)
|
|
6527
6730
|
return `Muito grande: esperado que ${(_a = issue2.origin) != null ? _a : "valor"} tivesse ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementos"}`;
|
|
6528
6731
|
return `Muito grande: esperado que ${(_c = issue2.origin) != null ? _c : "valor"} fosse ${adj}${issue2.maximum.toString()}`;
|
|
6529
6732
|
}
|
|
6530
6733
|
case "too_small": {
|
|
6531
6734
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6532
|
-
const sizing =
|
|
6735
|
+
const sizing = getSizing26(issue2.origin);
|
|
6533
6736
|
if (sizing) {
|
|
6534
6737
|
return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6535
6738
|
}
|
|
@@ -6545,7 +6748,7 @@ var error24 = (issue2) => {
|
|
|
6545
6748
|
return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`;
|
|
6546
6749
|
if (_issue.format === "regex")
|
|
6547
6750
|
return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`;
|
|
6548
|
-
return `${(_d =
|
|
6751
|
+
return `${(_d = Nouns26[_issue.format]) != null ? _d : issue2.format} inv\xE1lido`;
|
|
6549
6752
|
}
|
|
6550
6753
|
case "not_multiple_of":
|
|
6551
6754
|
return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;
|
|
@@ -6563,7 +6766,7 @@ var error24 = (issue2) => {
|
|
|
6563
6766
|
};
|
|
6564
6767
|
function pt_default() {
|
|
6565
6768
|
return {
|
|
6566
|
-
localeError:
|
|
6769
|
+
localeError: error26
|
|
6567
6770
|
};
|
|
6568
6771
|
}
|
|
6569
6772
|
|
|
@@ -6583,7 +6786,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
6583
6786
|
}
|
|
6584
6787
|
return many;
|
|
6585
6788
|
}
|
|
6586
|
-
var
|
|
6789
|
+
var Sizable27 = {
|
|
6587
6790
|
string: {
|
|
6588
6791
|
unit: {
|
|
6589
6792
|
one: "\u0441\u0438\u043C\u0432\u043E\u043B",
|
|
@@ -6617,11 +6820,11 @@ var Sizable25 = {
|
|
|
6617
6820
|
verb: "\u0438\u043C\u0435\u0442\u044C"
|
|
6618
6821
|
}
|
|
6619
6822
|
};
|
|
6620
|
-
function
|
|
6823
|
+
function getSizing27(origin) {
|
|
6621
6824
|
var _a;
|
|
6622
|
-
return (_a =
|
|
6825
|
+
return (_a = Sizable27[origin]) != null ? _a : null;
|
|
6623
6826
|
}
|
|
6624
|
-
var
|
|
6827
|
+
var parsedType27 = (data) => {
|
|
6625
6828
|
const t = typeof data;
|
|
6626
6829
|
switch (t) {
|
|
6627
6830
|
case "number": {
|
|
@@ -6641,7 +6844,7 @@ var parsedType25 = (data) => {
|
|
|
6641
6844
|
}
|
|
6642
6845
|
return t;
|
|
6643
6846
|
};
|
|
6644
|
-
var
|
|
6847
|
+
var Nouns27 = {
|
|
6645
6848
|
regex: "\u0432\u0432\u043E\u0434",
|
|
6646
6849
|
email: "email \u0430\u0434\u0440\u0435\u0441",
|
|
6647
6850
|
url: "URL",
|
|
@@ -6671,18 +6874,18 @@ var Nouns25 = {
|
|
|
6671
6874
|
jwt: "JWT",
|
|
6672
6875
|
template_literal: "\u0432\u0432\u043E\u0434"
|
|
6673
6876
|
};
|
|
6674
|
-
var
|
|
6877
|
+
var error27 = (issue2) => {
|
|
6675
6878
|
var _a, _b, _c;
|
|
6676
6879
|
switch (issue2.code) {
|
|
6677
6880
|
case "invalid_type":
|
|
6678
|
-
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 ${
|
|
6881
|
+
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)}`;
|
|
6679
6882
|
case "invalid_value":
|
|
6680
6883
|
if (issue2.values.length === 1)
|
|
6681
6884
|
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])}`;
|
|
6682
6885
|
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, "|")}`;
|
|
6683
6886
|
case "too_big": {
|
|
6684
6887
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6685
|
-
const sizing =
|
|
6888
|
+
const sizing = getSizing27(issue2.origin);
|
|
6686
6889
|
if (sizing) {
|
|
6687
6890
|
const maxValue = Number(issue2.maximum);
|
|
6688
6891
|
const unit = getRussianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
|
|
@@ -6692,7 +6895,7 @@ var error25 = (issue2) => {
|
|
|
6692
6895
|
}
|
|
6693
6896
|
case "too_small": {
|
|
6694
6897
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6695
|
-
const sizing =
|
|
6898
|
+
const sizing = getSizing27(issue2.origin);
|
|
6696
6899
|
if (sizing) {
|
|
6697
6900
|
const minValue = Number(issue2.minimum);
|
|
6698
6901
|
const unit = getRussianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
|
|
@@ -6710,7 +6913,7 @@ var error25 = (issue2) => {
|
|
|
6710
6913
|
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}"`;
|
|
6711
6914
|
if (_issue.format === "regex")
|
|
6712
6915
|
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}`;
|
|
6713
|
-
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(_c =
|
|
6916
|
+
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(_c = Nouns27[_issue.format]) != null ? _c : issue2.format}`;
|
|
6714
6917
|
}
|
|
6715
6918
|
case "not_multiple_of":
|
|
6716
6919
|
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}`;
|
|
@@ -6728,22 +6931,22 @@ var error25 = (issue2) => {
|
|
|
6728
6931
|
};
|
|
6729
6932
|
function ru_default() {
|
|
6730
6933
|
return {
|
|
6731
|
-
localeError:
|
|
6934
|
+
localeError: error27
|
|
6732
6935
|
};
|
|
6733
6936
|
}
|
|
6734
6937
|
|
|
6735
6938
|
// node_modules/zod/dist/esm/v4/locales/sl.js
|
|
6736
|
-
var
|
|
6939
|
+
var Sizable28 = {
|
|
6737
6940
|
string: { unit: "znakov", verb: "imeti" },
|
|
6738
6941
|
file: { unit: "bajtov", verb: "imeti" },
|
|
6739
6942
|
array: { unit: "elementov", verb: "imeti" },
|
|
6740
6943
|
set: { unit: "elementov", verb: "imeti" }
|
|
6741
6944
|
};
|
|
6742
|
-
function
|
|
6945
|
+
function getSizing28(origin) {
|
|
6743
6946
|
var _a;
|
|
6744
|
-
return (_a =
|
|
6947
|
+
return (_a = Sizable28[origin]) != null ? _a : null;
|
|
6745
6948
|
}
|
|
6746
|
-
var
|
|
6949
|
+
var parsedType28 = (data) => {
|
|
6747
6950
|
const t = typeof data;
|
|
6748
6951
|
switch (t) {
|
|
6749
6952
|
case "number": {
|
|
@@ -6763,7 +6966,7 @@ var parsedType26 = (data) => {
|
|
|
6763
6966
|
}
|
|
6764
6967
|
return t;
|
|
6765
6968
|
};
|
|
6766
|
-
var
|
|
6969
|
+
var Nouns28 = {
|
|
6767
6970
|
regex: "vnos",
|
|
6768
6971
|
email: "e-po\u0161tni naslov",
|
|
6769
6972
|
url: "URL",
|
|
@@ -6793,25 +6996,25 @@ var Nouns26 = {
|
|
|
6793
6996
|
jwt: "JWT",
|
|
6794
6997
|
template_literal: "vnos"
|
|
6795
6998
|
};
|
|
6796
|
-
var
|
|
6999
|
+
var error28 = (issue2) => {
|
|
6797
7000
|
var _a, _b, _c, _d;
|
|
6798
7001
|
switch (issue2.code) {
|
|
6799
7002
|
case "invalid_type":
|
|
6800
|
-
return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${
|
|
7003
|
+
return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType28(issue2.input)}`;
|
|
6801
7004
|
case "invalid_value":
|
|
6802
7005
|
if (issue2.values.length === 1)
|
|
6803
7006
|
return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6804
7007
|
return `Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${joinValues(issue2.values, "|")}`;
|
|
6805
7008
|
case "too_big": {
|
|
6806
7009
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6807
|
-
const sizing =
|
|
7010
|
+
const sizing = getSizing28(issue2.origin);
|
|
6808
7011
|
if (sizing)
|
|
6809
7012
|
return `Preveliko: pri\u010Dakovano, da bo ${(_a = issue2.origin) != null ? _a : "vrednost"} imelo ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "elementov"}`;
|
|
6810
7013
|
return `Preveliko: pri\u010Dakovano, da bo ${(_c = issue2.origin) != null ? _c : "vrednost"} ${adj}${issue2.maximum.toString()}`;
|
|
6811
7014
|
}
|
|
6812
7015
|
case "too_small": {
|
|
6813
7016
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6814
|
-
const sizing =
|
|
7017
|
+
const sizing = getSizing28(issue2.origin);
|
|
6815
7018
|
if (sizing) {
|
|
6816
7019
|
return `Premajhno: pri\u010Dakovano, da bo ${issue2.origin} imelo ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6817
7020
|
}
|
|
@@ -6828,7 +7031,7 @@ var error26 = (issue2) => {
|
|
|
6828
7031
|
return `Neveljaven niz: mora vsebovati "${_issue.includes}"`;
|
|
6829
7032
|
if (_issue.format === "regex")
|
|
6830
7033
|
return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;
|
|
6831
|
-
return `Neveljaven ${(_d =
|
|
7034
|
+
return `Neveljaven ${(_d = Nouns28[_issue.format]) != null ? _d : issue2.format}`;
|
|
6832
7035
|
}
|
|
6833
7036
|
case "not_multiple_of":
|
|
6834
7037
|
return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${issue2.divisor}`;
|
|
@@ -6846,22 +7049,141 @@ var error26 = (issue2) => {
|
|
|
6846
7049
|
};
|
|
6847
7050
|
function sl_default() {
|
|
6848
7051
|
return {
|
|
6849
|
-
localeError:
|
|
7052
|
+
localeError: error28
|
|
7053
|
+
};
|
|
7054
|
+
}
|
|
7055
|
+
|
|
7056
|
+
// node_modules/zod/dist/esm/v4/locales/sv.js
|
|
7057
|
+
var Sizable29 = {
|
|
7058
|
+
string: { unit: "tecken", verb: "att ha" },
|
|
7059
|
+
file: { unit: "bytes", verb: "att ha" },
|
|
7060
|
+
array: { unit: "objekt", verb: "att inneh\xE5lla" },
|
|
7061
|
+
set: { unit: "objekt", verb: "att inneh\xE5lla" }
|
|
7062
|
+
};
|
|
7063
|
+
function getSizing29(origin) {
|
|
7064
|
+
var _a;
|
|
7065
|
+
return (_a = Sizable29[origin]) != null ? _a : null;
|
|
7066
|
+
}
|
|
7067
|
+
var parsedType29 = (data) => {
|
|
7068
|
+
const t = typeof data;
|
|
7069
|
+
switch (t) {
|
|
7070
|
+
case "number": {
|
|
7071
|
+
return Number.isNaN(data) ? "NaN" : "antal";
|
|
7072
|
+
}
|
|
7073
|
+
case "object": {
|
|
7074
|
+
if (Array.isArray(data)) {
|
|
7075
|
+
return "lista";
|
|
7076
|
+
}
|
|
7077
|
+
if (data === null) {
|
|
7078
|
+
return "null";
|
|
7079
|
+
}
|
|
7080
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
7081
|
+
return data.constructor.name;
|
|
7082
|
+
}
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
return t;
|
|
7086
|
+
};
|
|
7087
|
+
var Nouns29 = {
|
|
7088
|
+
regex: "regulj\xE4rt uttryck",
|
|
7089
|
+
email: "e-postadress",
|
|
7090
|
+
url: "URL",
|
|
7091
|
+
emoji: "emoji",
|
|
7092
|
+
uuid: "UUID",
|
|
7093
|
+
uuidv4: "UUIDv4",
|
|
7094
|
+
uuidv6: "UUIDv6",
|
|
7095
|
+
nanoid: "nanoid",
|
|
7096
|
+
guid: "GUID",
|
|
7097
|
+
cuid: "cuid",
|
|
7098
|
+
cuid2: "cuid2",
|
|
7099
|
+
ulid: "ULID",
|
|
7100
|
+
xid: "XID",
|
|
7101
|
+
ksuid: "KSUID",
|
|
7102
|
+
datetime: "ISO-datum och tid",
|
|
7103
|
+
date: "ISO-datum",
|
|
7104
|
+
time: "ISO-tid",
|
|
7105
|
+
duration: "ISO-varaktighet",
|
|
7106
|
+
ipv4: "IPv4-intervall",
|
|
7107
|
+
ipv6: "IPv6-intervall",
|
|
7108
|
+
cidrv4: "IPv4-spektrum",
|
|
7109
|
+
cidrv6: "IPv6-spektrum",
|
|
7110
|
+
base64: "base64-kodad str\xE4ng",
|
|
7111
|
+
base64url: "base64url-kodad str\xE4ng",
|
|
7112
|
+
json_string: "JSON-str\xE4ng",
|
|
7113
|
+
e164: "E.164-nummer",
|
|
7114
|
+
jwt: "JWT",
|
|
7115
|
+
template_literal: "mall-literal"
|
|
7116
|
+
};
|
|
7117
|
+
var error29 = (issue2) => {
|
|
7118
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7119
|
+
switch (issue2.code) {
|
|
7120
|
+
case "invalid_type":
|
|
7121
|
+
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType29(issue2.input)}`;
|
|
7122
|
+
case "invalid_value":
|
|
7123
|
+
if (issue2.values.length === 1)
|
|
7124
|
+
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`;
|
|
7125
|
+
return `Ogiltigt val: f\xF6rv\xE4ntade en av ${joinValues(issue2.values, "|")}`;
|
|
7126
|
+
case "too_big": {
|
|
7127
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
7128
|
+
const sizing = getSizing29(issue2.origin);
|
|
7129
|
+
if (sizing) {
|
|
7130
|
+
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"}`;
|
|
7131
|
+
}
|
|
7132
|
+
return `F\xF6r stor(t): f\xF6rv\xE4ntat ${(_c = issue2.origin) != null ? _c : "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()}`;
|
|
7133
|
+
}
|
|
7134
|
+
case "too_small": {
|
|
7135
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
7136
|
+
const sizing = getSizing29(issue2.origin);
|
|
7137
|
+
if (sizing) {
|
|
7138
|
+
return `F\xF6r lite(t): f\xF6rv\xE4ntade ${(_d = issue2.origin) != null ? _d : "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7139
|
+
}
|
|
7140
|
+
return `F\xF6r lite(t): f\xF6rv\xE4ntade ${(_e = issue2.origin) != null ? _e : "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()}`;
|
|
7141
|
+
}
|
|
7142
|
+
case "invalid_format": {
|
|
7143
|
+
const _issue = issue2;
|
|
7144
|
+
if (_issue.format === "starts_with") {
|
|
7145
|
+
return `Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${_issue.prefix}"`;
|
|
7146
|
+
}
|
|
7147
|
+
if (_issue.format === "ends_with")
|
|
7148
|
+
return `Ogiltig str\xE4ng: m\xE5ste sluta med "${_issue.suffix}"`;
|
|
7149
|
+
if (_issue.format === "includes")
|
|
7150
|
+
return `Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${_issue.includes}"`;
|
|
7151
|
+
if (_issue.format === "regex")
|
|
7152
|
+
return `Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${_issue.pattern}"`;
|
|
7153
|
+
return `Ogiltig(t) ${(_f = Nouns29[_issue.format]) != null ? _f : issue2.format}`;
|
|
7154
|
+
}
|
|
7155
|
+
case "not_multiple_of":
|
|
7156
|
+
return `Ogiltigt tal: m\xE5ste vara en multipel av ${issue2.divisor}`;
|
|
7157
|
+
case "unrecognized_keys":
|
|
7158
|
+
return `${issue2.keys.length > 1 ? "Ok\xE4nda nycklar" : "Ok\xE4nd nyckel"}: ${joinValues(issue2.keys, ", ")}`;
|
|
7159
|
+
case "invalid_key":
|
|
7160
|
+
return `Ogiltig nyckel i ${(_g = issue2.origin) != null ? _g : "v\xE4rdet"}`;
|
|
7161
|
+
case "invalid_union":
|
|
7162
|
+
return "Ogiltig input";
|
|
7163
|
+
case "invalid_element":
|
|
7164
|
+
return `Ogiltigt v\xE4rde i ${(_h = issue2.origin) != null ? _h : "v\xE4rdet"}`;
|
|
7165
|
+
default:
|
|
7166
|
+
return `Ogiltig input`;
|
|
7167
|
+
}
|
|
7168
|
+
};
|
|
7169
|
+
function sv_default() {
|
|
7170
|
+
return {
|
|
7171
|
+
localeError: error29
|
|
6850
7172
|
};
|
|
6851
7173
|
}
|
|
6852
7174
|
|
|
6853
7175
|
// node_modules/zod/dist/esm/v4/locales/ta.js
|
|
6854
|
-
var
|
|
7176
|
+
var Sizable30 = {
|
|
6855
7177
|
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" },
|
|
6856
7178
|
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" },
|
|
6857
7179
|
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" },
|
|
6858
7180
|
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" }
|
|
6859
7181
|
};
|
|
6860
|
-
function
|
|
7182
|
+
function getSizing30(origin) {
|
|
6861
7183
|
var _a;
|
|
6862
|
-
return (_a =
|
|
7184
|
+
return (_a = Sizable30[origin]) != null ? _a : null;
|
|
6863
7185
|
}
|
|
6864
|
-
var
|
|
7186
|
+
var parsedType30 = (data) => {
|
|
6865
7187
|
const t = typeof data;
|
|
6866
7188
|
switch (t) {
|
|
6867
7189
|
case "number": {
|
|
@@ -6881,7 +7203,7 @@ var parsedType27 = (data) => {
|
|
|
6881
7203
|
}
|
|
6882
7204
|
return t;
|
|
6883
7205
|
};
|
|
6884
|
-
var
|
|
7206
|
+
var Nouns30 = {
|
|
6885
7207
|
regex: "\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",
|
|
6886
7208
|
email: "\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",
|
|
6887
7209
|
url: "URL",
|
|
@@ -6911,18 +7233,18 @@ var Nouns27 = {
|
|
|
6911
7233
|
jwt: "JWT",
|
|
6912
7234
|
template_literal: "input"
|
|
6913
7235
|
};
|
|
6914
|
-
var
|
|
7236
|
+
var error30 = (issue2) => {
|
|
6915
7237
|
var _a, _b, _c, _d;
|
|
6916
7238
|
switch (issue2.code) {
|
|
6917
7239
|
case "invalid_type":
|
|
6918
|
-
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 ${
|
|
7240
|
+
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)}`;
|
|
6919
7241
|
case "invalid_value":
|
|
6920
7242
|
if (issue2.values.length === 1)
|
|
6921
7243
|
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])}`;
|
|
6922
7244
|
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`;
|
|
6923
7245
|
case "too_big": {
|
|
6924
7246
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6925
|
-
const sizing =
|
|
7247
|
+
const sizing = getSizing30(issue2.origin);
|
|
6926
7248
|
if (sizing) {
|
|
6927
7249
|
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`;
|
|
6928
7250
|
}
|
|
@@ -6930,7 +7252,7 @@ var error27 = (issue2) => {
|
|
|
6930
7252
|
}
|
|
6931
7253
|
case "too_small": {
|
|
6932
7254
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6933
|
-
const sizing =
|
|
7255
|
+
const sizing = getSizing30(issue2.origin);
|
|
6934
7256
|
if (sizing) {
|
|
6935
7257
|
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`;
|
|
6936
7258
|
}
|
|
@@ -6946,7 +7268,7 @@ var error27 = (issue2) => {
|
|
|
6946
7268
|
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`;
|
|
6947
7269
|
if (_issue.format === "regex")
|
|
6948
7270
|
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`;
|
|
6949
|
-
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${(_d =
|
|
7271
|
+
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${(_d = Nouns30[_issue.format]) != null ? _d : issue2.format}`;
|
|
6950
7272
|
}
|
|
6951
7273
|
case "not_multiple_of":
|
|
6952
7274
|
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`;
|
|
@@ -6964,22 +7286,22 @@ var error27 = (issue2) => {
|
|
|
6964
7286
|
};
|
|
6965
7287
|
function ta_default() {
|
|
6966
7288
|
return {
|
|
6967
|
-
localeError:
|
|
7289
|
+
localeError: error30
|
|
6968
7290
|
};
|
|
6969
7291
|
}
|
|
6970
7292
|
|
|
6971
7293
|
// node_modules/zod/dist/esm/v4/locales/th.js
|
|
6972
|
-
var
|
|
7294
|
+
var Sizable31 = {
|
|
6973
7295
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
6974
7296
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
6975
7297
|
array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
6976
7298
|
set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }
|
|
6977
7299
|
};
|
|
6978
|
-
function
|
|
7300
|
+
function getSizing31(origin) {
|
|
6979
7301
|
var _a;
|
|
6980
|
-
return (_a =
|
|
7302
|
+
return (_a = Sizable31[origin]) != null ? _a : null;
|
|
6981
7303
|
}
|
|
6982
|
-
var
|
|
7304
|
+
var parsedType31 = (data) => {
|
|
6983
7305
|
const t = typeof data;
|
|
6984
7306
|
switch (t) {
|
|
6985
7307
|
case "number": {
|
|
@@ -6999,7 +7321,7 @@ var parsedType28 = (data) => {
|
|
|
6999
7321
|
}
|
|
7000
7322
|
return t;
|
|
7001
7323
|
};
|
|
7002
|
-
var
|
|
7324
|
+
var Nouns31 = {
|
|
7003
7325
|
regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
|
|
7004
7326
|
email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",
|
|
7005
7327
|
url: "URL",
|
|
@@ -7029,25 +7351,25 @@ var Nouns28 = {
|
|
|
7029
7351
|
jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
|
|
7030
7352
|
template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
|
|
7031
7353
|
};
|
|
7032
|
-
var
|
|
7354
|
+
var error31 = (issue2) => {
|
|
7033
7355
|
var _a, _b, _c, _d;
|
|
7034
7356
|
switch (issue2.code) {
|
|
7035
7357
|
case "invalid_type":
|
|
7036
|
-
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 ${
|
|
7358
|
+
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)}`;
|
|
7037
7359
|
case "invalid_value":
|
|
7038
7360
|
if (issue2.values.length === 1)
|
|
7039
7361
|
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])}`;
|
|
7040
7362
|
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, "|")}`;
|
|
7041
7363
|
case "too_big": {
|
|
7042
7364
|
const adj = issue2.inclusive ? "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19" : "\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32";
|
|
7043
|
-
const sizing =
|
|
7365
|
+
const sizing = getSizing31(issue2.origin);
|
|
7044
7366
|
if (sizing)
|
|
7045
7367
|
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"}`;
|
|
7046
7368
|
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()}`;
|
|
7047
7369
|
}
|
|
7048
7370
|
case "too_small": {
|
|
7049
7371
|
const adj = issue2.inclusive ? "\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22" : "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32";
|
|
7050
|
-
const sizing =
|
|
7372
|
+
const sizing = getSizing31(issue2.origin);
|
|
7051
7373
|
if (sizing) {
|
|
7052
7374
|
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}`;
|
|
7053
7375
|
}
|
|
@@ -7064,7 +7386,7 @@ var error28 = (issue2) => {
|
|
|
7064
7386
|
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`;
|
|
7065
7387
|
if (_issue.format === "regex")
|
|
7066
7388
|
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}`;
|
|
7067
|
-
return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${(_d =
|
|
7389
|
+
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}`;
|
|
7068
7390
|
}
|
|
7069
7391
|
case "not_multiple_of":
|
|
7070
7392
|
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`;
|
|
@@ -7082,22 +7404,22 @@ var error28 = (issue2) => {
|
|
|
7082
7404
|
};
|
|
7083
7405
|
function th_default() {
|
|
7084
7406
|
return {
|
|
7085
|
-
localeError:
|
|
7407
|
+
localeError: error31
|
|
7086
7408
|
};
|
|
7087
7409
|
}
|
|
7088
7410
|
|
|
7089
7411
|
// node_modules/zod/dist/esm/v4/locales/tr.js
|
|
7090
|
-
var
|
|
7412
|
+
var Sizable32 = {
|
|
7091
7413
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
7092
7414
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
7093
7415
|
array: { unit: "\xF6\u011Fe", verb: "olmal\u0131" },
|
|
7094
7416
|
set: { unit: "\xF6\u011Fe", verb: "olmal\u0131" }
|
|
7095
7417
|
};
|
|
7096
|
-
function
|
|
7418
|
+
function getSizing32(origin) {
|
|
7097
7419
|
var _a;
|
|
7098
|
-
return (_a =
|
|
7420
|
+
return (_a = Sizable32[origin]) != null ? _a : null;
|
|
7099
7421
|
}
|
|
7100
|
-
var
|
|
7422
|
+
var parsedType32 = (data) => {
|
|
7101
7423
|
const t = typeof data;
|
|
7102
7424
|
switch (t) {
|
|
7103
7425
|
case "number": {
|
|
@@ -7117,7 +7439,7 @@ var parsedType29 = (data) => {
|
|
|
7117
7439
|
}
|
|
7118
7440
|
return t;
|
|
7119
7441
|
};
|
|
7120
|
-
var
|
|
7442
|
+
var Nouns32 = {
|
|
7121
7443
|
regex: "girdi",
|
|
7122
7444
|
email: "e-posta adresi",
|
|
7123
7445
|
url: "URL",
|
|
@@ -7147,25 +7469,25 @@ var Nouns29 = {
|
|
|
7147
7469
|
jwt: "JWT",
|
|
7148
7470
|
template_literal: "\u015Eablon dizesi"
|
|
7149
7471
|
};
|
|
7150
|
-
var
|
|
7472
|
+
var error32 = (issue2) => {
|
|
7151
7473
|
var _a, _b, _c, _d;
|
|
7152
7474
|
switch (issue2.code) {
|
|
7153
7475
|
case "invalid_type":
|
|
7154
|
-
return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${
|
|
7476
|
+
return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType32(issue2.input)}`;
|
|
7155
7477
|
case "invalid_value":
|
|
7156
7478
|
if (issue2.values.length === 1)
|
|
7157
7479
|
return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
|
|
7158
7480
|
return `Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${joinValues(issue2.values, "|")}`;
|
|
7159
7481
|
case "too_big": {
|
|
7160
7482
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7161
|
-
const sizing =
|
|
7483
|
+
const sizing = getSizing32(issue2.origin);
|
|
7162
7484
|
if (sizing)
|
|
7163
7485
|
return `\xC7ok b\xFCy\xFCk: beklenen ${(_a = issue2.origin) != null ? _a : "de\u011Fer"} ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\xF6\u011Fe"}`;
|
|
7164
7486
|
return `\xC7ok b\xFCy\xFCk: beklenen ${(_c = issue2.origin) != null ? _c : "de\u011Fer"} ${adj}${issue2.maximum.toString()}`;
|
|
7165
7487
|
}
|
|
7166
7488
|
case "too_small": {
|
|
7167
7489
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7168
|
-
const sizing =
|
|
7490
|
+
const sizing = getSizing32(issue2.origin);
|
|
7169
7491
|
if (sizing)
|
|
7170
7492
|
return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7171
7493
|
return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
|
|
@@ -7180,7 +7502,7 @@ var error29 = (issue2) => {
|
|
|
7180
7502
|
return `Ge\xE7ersiz metin: "${_issue.includes}" i\xE7ermeli`;
|
|
7181
7503
|
if (_issue.format === "regex")
|
|
7182
7504
|
return `Ge\xE7ersiz metin: ${_issue.pattern} desenine uymal\u0131`;
|
|
7183
|
-
return `Ge\xE7ersiz ${(_d =
|
|
7505
|
+
return `Ge\xE7ersiz ${(_d = Nouns32[_issue.format]) != null ? _d : issue2.format}`;
|
|
7184
7506
|
}
|
|
7185
7507
|
case "not_multiple_of":
|
|
7186
7508
|
return `Ge\xE7ersiz say\u0131: ${issue2.divisor} ile tam b\xF6l\xFCnebilmeli`;
|
|
@@ -7198,22 +7520,22 @@ var error29 = (issue2) => {
|
|
|
7198
7520
|
};
|
|
7199
7521
|
function tr_default() {
|
|
7200
7522
|
return {
|
|
7201
|
-
localeError:
|
|
7523
|
+
localeError: error32
|
|
7202
7524
|
};
|
|
7203
7525
|
}
|
|
7204
7526
|
|
|
7205
7527
|
// node_modules/zod/dist/esm/v4/locales/ua.js
|
|
7206
|
-
var
|
|
7528
|
+
var Sizable33 = {
|
|
7207
7529
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
7208
7530
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
7209
7531
|
array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
7210
7532
|
set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }
|
|
7211
7533
|
};
|
|
7212
|
-
function
|
|
7534
|
+
function getSizing33(origin) {
|
|
7213
7535
|
var _a;
|
|
7214
|
-
return (_a =
|
|
7536
|
+
return (_a = Sizable33[origin]) != null ? _a : null;
|
|
7215
7537
|
}
|
|
7216
|
-
var
|
|
7538
|
+
var parsedType33 = (data) => {
|
|
7217
7539
|
const t = typeof data;
|
|
7218
7540
|
switch (t) {
|
|
7219
7541
|
case "number": {
|
|
@@ -7233,7 +7555,7 @@ var parsedType30 = (data) => {
|
|
|
7233
7555
|
}
|
|
7234
7556
|
return t;
|
|
7235
7557
|
};
|
|
7236
|
-
var
|
|
7558
|
+
var Nouns33 = {
|
|
7237
7559
|
regex: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",
|
|
7238
7560
|
email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",
|
|
7239
7561
|
url: "URL",
|
|
@@ -7263,11 +7585,11 @@ var Nouns30 = {
|
|
|
7263
7585
|
jwt: "JWT",
|
|
7264
7586
|
template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
|
|
7265
7587
|
};
|
|
7266
|
-
var
|
|
7588
|
+
var error33 = (issue2) => {
|
|
7267
7589
|
var _a, _b, _c, _d;
|
|
7268
7590
|
switch (issue2.code) {
|
|
7269
7591
|
case "invalid_type":
|
|
7270
|
-
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 ${
|
|
7592
|
+
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)}`;
|
|
7271
7593
|
// return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${util.getParsedType(issue.input)}`;
|
|
7272
7594
|
case "invalid_value":
|
|
7273
7595
|
if (issue2.values.length === 1)
|
|
@@ -7275,14 +7597,14 @@ var error30 = (issue2) => {
|
|
|
7275
7597
|
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, "|")}`;
|
|
7276
7598
|
case "too_big": {
|
|
7277
7599
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7278
|
-
const sizing =
|
|
7600
|
+
const sizing = getSizing33(issue2.origin);
|
|
7279
7601
|
if (sizing)
|
|
7280
7602
|
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"}`;
|
|
7281
7603
|
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()}`;
|
|
7282
7604
|
}
|
|
7283
7605
|
case "too_small": {
|
|
7284
7606
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7285
|
-
const sizing =
|
|
7607
|
+
const sizing = getSizing33(issue2.origin);
|
|
7286
7608
|
if (sizing) {
|
|
7287
7609
|
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}`;
|
|
7288
7610
|
}
|
|
@@ -7298,7 +7620,7 @@ var error30 = (issue2) => {
|
|
|
7298
7620
|
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}"`;
|
|
7299
7621
|
if (_issue.format === "regex")
|
|
7300
7622
|
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}`;
|
|
7301
|
-
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(_d =
|
|
7623
|
+
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(_d = Nouns33[_issue.format]) != null ? _d : issue2.format}`;
|
|
7302
7624
|
}
|
|
7303
7625
|
case "not_multiple_of":
|
|
7304
7626
|
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}`;
|
|
@@ -7316,22 +7638,22 @@ var error30 = (issue2) => {
|
|
|
7316
7638
|
};
|
|
7317
7639
|
function ua_default() {
|
|
7318
7640
|
return {
|
|
7319
|
-
localeError:
|
|
7641
|
+
localeError: error33
|
|
7320
7642
|
};
|
|
7321
7643
|
}
|
|
7322
7644
|
|
|
7323
7645
|
// node_modules/zod/dist/esm/v4/locales/ur.js
|
|
7324
|
-
var
|
|
7646
|
+
var Sizable34 = {
|
|
7325
7647
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
7326
7648
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
7327
7649
|
array: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" },
|
|
7328
7650
|
set: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" }
|
|
7329
7651
|
};
|
|
7330
|
-
function
|
|
7652
|
+
function getSizing34(origin) {
|
|
7331
7653
|
var _a;
|
|
7332
|
-
return (_a =
|
|
7654
|
+
return (_a = Sizable34[origin]) != null ? _a : null;
|
|
7333
7655
|
}
|
|
7334
|
-
var
|
|
7656
|
+
var parsedType34 = (data) => {
|
|
7335
7657
|
const t = typeof data;
|
|
7336
7658
|
switch (t) {
|
|
7337
7659
|
case "number": {
|
|
@@ -7351,7 +7673,7 @@ var parsedType31 = (data) => {
|
|
|
7351
7673
|
}
|
|
7352
7674
|
return t;
|
|
7353
7675
|
};
|
|
7354
|
-
var
|
|
7676
|
+
var Nouns34 = {
|
|
7355
7677
|
regex: "\u0627\u0646 \u067E\u0679",
|
|
7356
7678
|
email: "\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",
|
|
7357
7679
|
url: "\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",
|
|
@@ -7381,25 +7703,25 @@ var Nouns31 = {
|
|
|
7381
7703
|
jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
|
|
7382
7704
|
template_literal: "\u0627\u0646 \u067E\u0679"
|
|
7383
7705
|
};
|
|
7384
|
-
var
|
|
7706
|
+
var error34 = (issue2) => {
|
|
7385
7707
|
var _a, _b, _c, _d;
|
|
7386
7708
|
switch (issue2.code) {
|
|
7387
7709
|
case "invalid_type":
|
|
7388
|
-
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${
|
|
7710
|
+
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`;
|
|
7389
7711
|
case "invalid_value":
|
|
7390
7712
|
if (issue2.values.length === 1)
|
|
7391
7713
|
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
|
|
7392
7714
|
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`;
|
|
7393
7715
|
case "too_big": {
|
|
7394
7716
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7395
|
-
const sizing =
|
|
7717
|
+
const sizing = getSizing34(issue2.origin);
|
|
7396
7718
|
if (sizing)
|
|
7397
7719
|
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`;
|
|
7398
7720
|
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`;
|
|
7399
7721
|
}
|
|
7400
7722
|
case "too_small": {
|
|
7401
7723
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7402
|
-
const sizing =
|
|
7724
|
+
const sizing = getSizing34(issue2.origin);
|
|
7403
7725
|
if (sizing) {
|
|
7404
7726
|
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`;
|
|
7405
7727
|
}
|
|
@@ -7416,7 +7738,7 @@ var error31 = (issue2) => {
|
|
|
7416
7738
|
return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
|
|
7417
7739
|
if (_issue.format === "regex")
|
|
7418
7740
|
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`;
|
|
7419
|
-
return `\u063A\u0644\u0637 ${(_d =
|
|
7741
|
+
return `\u063A\u0644\u0637 ${(_d = Nouns34[_issue.format]) != null ? _d : issue2.format}`;
|
|
7420
7742
|
}
|
|
7421
7743
|
case "not_multiple_of":
|
|
7422
7744
|
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`;
|
|
@@ -7434,22 +7756,22 @@ var error31 = (issue2) => {
|
|
|
7434
7756
|
};
|
|
7435
7757
|
function ur_default() {
|
|
7436
7758
|
return {
|
|
7437
|
-
localeError:
|
|
7759
|
+
localeError: error34
|
|
7438
7760
|
};
|
|
7439
7761
|
}
|
|
7440
7762
|
|
|
7441
7763
|
// node_modules/zod/dist/esm/v4/locales/vi.js
|
|
7442
|
-
var
|
|
7764
|
+
var Sizable35 = {
|
|
7443
7765
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
7444
7766
|
file: { unit: "byte", verb: "c\xF3" },
|
|
7445
7767
|
array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" },
|
|
7446
7768
|
set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }
|
|
7447
7769
|
};
|
|
7448
|
-
function
|
|
7770
|
+
function getSizing35(origin) {
|
|
7449
7771
|
var _a;
|
|
7450
|
-
return (_a =
|
|
7772
|
+
return (_a = Sizable35[origin]) != null ? _a : null;
|
|
7451
7773
|
}
|
|
7452
|
-
var
|
|
7774
|
+
var parsedType35 = (data) => {
|
|
7453
7775
|
const t = typeof data;
|
|
7454
7776
|
switch (t) {
|
|
7455
7777
|
case "number": {
|
|
@@ -7469,7 +7791,7 @@ var parsedType32 = (data) => {
|
|
|
7469
7791
|
}
|
|
7470
7792
|
return t;
|
|
7471
7793
|
};
|
|
7472
|
-
var
|
|
7794
|
+
var Nouns35 = {
|
|
7473
7795
|
regex: "\u0111\u1EA7u v\xE0o",
|
|
7474
7796
|
email: "\u0111\u1ECBa ch\u1EC9 email",
|
|
7475
7797
|
url: "URL",
|
|
@@ -7499,25 +7821,25 @@ var Nouns32 = {
|
|
|
7499
7821
|
jwt: "JWT",
|
|
7500
7822
|
template_literal: "\u0111\u1EA7u v\xE0o"
|
|
7501
7823
|
};
|
|
7502
|
-
var
|
|
7824
|
+
var error35 = (issue2) => {
|
|
7503
7825
|
var _a, _b, _c, _d;
|
|
7504
7826
|
switch (issue2.code) {
|
|
7505
7827
|
case "invalid_type":
|
|
7506
|
-
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${
|
|
7828
|
+
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType35(issue2.input)}`;
|
|
7507
7829
|
case "invalid_value":
|
|
7508
7830
|
if (issue2.values.length === 1)
|
|
7509
7831
|
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`;
|
|
7510
7832
|
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, "|")}`;
|
|
7511
7833
|
case "too_big": {
|
|
7512
7834
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7513
|
-
const sizing =
|
|
7835
|
+
const sizing = getSizing35(issue2.origin);
|
|
7514
7836
|
if (sizing)
|
|
7515
7837
|
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"}`;
|
|
7516
7838
|
return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(_c = issue2.origin) != null ? _c : "gi\xE1 tr\u1ECB"} ${adj}${issue2.maximum.toString()}`;
|
|
7517
7839
|
}
|
|
7518
7840
|
case "too_small": {
|
|
7519
7841
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7520
|
-
const sizing =
|
|
7842
|
+
const sizing = getSizing35(issue2.origin);
|
|
7521
7843
|
if (sizing) {
|
|
7522
7844
|
return `Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7523
7845
|
}
|
|
@@ -7533,7 +7855,7 @@ var error32 = (issue2) => {
|
|
|
7533
7855
|
return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${_issue.includes}"`;
|
|
7534
7856
|
if (_issue.format === "regex")
|
|
7535
7857
|
return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${_issue.pattern}`;
|
|
7536
|
-
return `${(_d =
|
|
7858
|
+
return `${(_d = Nouns35[_issue.format]) != null ? _d : issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`;
|
|
7537
7859
|
}
|
|
7538
7860
|
case "not_multiple_of":
|
|
7539
7861
|
return `S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${issue2.divisor}`;
|
|
@@ -7551,22 +7873,22 @@ var error32 = (issue2) => {
|
|
|
7551
7873
|
};
|
|
7552
7874
|
function vi_default() {
|
|
7553
7875
|
return {
|
|
7554
|
-
localeError:
|
|
7876
|
+
localeError: error35
|
|
7555
7877
|
};
|
|
7556
7878
|
}
|
|
7557
7879
|
|
|
7558
7880
|
// node_modules/zod/dist/esm/v4/locales/zh-CN.js
|
|
7559
|
-
var
|
|
7881
|
+
var Sizable36 = {
|
|
7560
7882
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
7561
7883
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
7562
7884
|
array: { unit: "\u9879", verb: "\u5305\u542B" },
|
|
7563
7885
|
set: { unit: "\u9879", verb: "\u5305\u542B" }
|
|
7564
7886
|
};
|
|
7565
|
-
function
|
|
7887
|
+
function getSizing36(origin) {
|
|
7566
7888
|
var _a;
|
|
7567
|
-
return (_a =
|
|
7889
|
+
return (_a = Sizable36[origin]) != null ? _a : null;
|
|
7568
7890
|
}
|
|
7569
|
-
var
|
|
7891
|
+
var parsedType36 = (data) => {
|
|
7570
7892
|
const t = typeof data;
|
|
7571
7893
|
switch (t) {
|
|
7572
7894
|
case "number": {
|
|
@@ -7586,7 +7908,7 @@ var parsedType33 = (data) => {
|
|
|
7586
7908
|
}
|
|
7587
7909
|
return t;
|
|
7588
7910
|
};
|
|
7589
|
-
var
|
|
7911
|
+
var Nouns36 = {
|
|
7590
7912
|
regex: "\u8F93\u5165",
|
|
7591
7913
|
email: "\u7535\u5B50\u90AE\u4EF6",
|
|
7592
7914
|
url: "URL",
|
|
@@ -7616,25 +7938,25 @@ var Nouns33 = {
|
|
|
7616
7938
|
jwt: "JWT",
|
|
7617
7939
|
template_literal: "\u8F93\u5165"
|
|
7618
7940
|
};
|
|
7619
|
-
var
|
|
7941
|
+
var error36 = (issue2) => {
|
|
7620
7942
|
var _a, _b, _c, _d;
|
|
7621
7943
|
switch (issue2.code) {
|
|
7622
7944
|
case "invalid_type":
|
|
7623
|
-
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${
|
|
7945
|
+
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType36(issue2.input)}`;
|
|
7624
7946
|
case "invalid_value":
|
|
7625
7947
|
if (issue2.values.length === 1)
|
|
7626
7948
|
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`;
|
|
7627
7949
|
return `\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`;
|
|
7628
7950
|
case "too_big": {
|
|
7629
7951
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7630
|
-
const sizing =
|
|
7952
|
+
const sizing = getSizing36(issue2.origin);
|
|
7631
7953
|
if (sizing)
|
|
7632
7954
|
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"}`;
|
|
7633
7955
|
return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(_c = issue2.origin) != null ? _c : "\u503C"} ${adj}${issue2.maximum.toString()}`;
|
|
7634
7956
|
}
|
|
7635
7957
|
case "too_small": {
|
|
7636
7958
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7637
|
-
const sizing =
|
|
7959
|
+
const sizing = getSizing36(issue2.origin);
|
|
7638
7960
|
if (sizing) {
|
|
7639
7961
|
return `\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7640
7962
|
}
|
|
@@ -7650,7 +7972,7 @@ var error33 = (issue2) => {
|
|
|
7650
7972
|
return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${_issue.includes}"`;
|
|
7651
7973
|
if (_issue.format === "regex")
|
|
7652
7974
|
return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${_issue.pattern}`;
|
|
7653
|
-
return `\u65E0\u6548${(_d =
|
|
7975
|
+
return `\u65E0\u6548${(_d = Nouns36[_issue.format]) != null ? _d : issue2.format}`;
|
|
7654
7976
|
}
|
|
7655
7977
|
case "not_multiple_of":
|
|
7656
7978
|
return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${issue2.divisor} \u7684\u500D\u6570`;
|
|
@@ -7668,22 +7990,22 @@ var error33 = (issue2) => {
|
|
|
7668
7990
|
};
|
|
7669
7991
|
function zh_CN_default() {
|
|
7670
7992
|
return {
|
|
7671
|
-
localeError:
|
|
7993
|
+
localeError: error36
|
|
7672
7994
|
};
|
|
7673
7995
|
}
|
|
7674
7996
|
|
|
7675
|
-
// node_modules/zod/dist/esm/v4/locales/zh-
|
|
7676
|
-
var
|
|
7997
|
+
// node_modules/zod/dist/esm/v4/locales/zh-TW.js
|
|
7998
|
+
var Sizable37 = {
|
|
7677
7999
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
7678
8000
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
7679
8001
|
array: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" },
|
|
7680
8002
|
set: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" }
|
|
7681
8003
|
};
|
|
7682
|
-
function
|
|
8004
|
+
function getSizing37(origin) {
|
|
7683
8005
|
var _a;
|
|
7684
|
-
return (_a =
|
|
8006
|
+
return (_a = Sizable37[origin]) != null ? _a : null;
|
|
7685
8007
|
}
|
|
7686
|
-
var
|
|
8008
|
+
var parsedType37 = (data) => {
|
|
7687
8009
|
const t = typeof data;
|
|
7688
8010
|
switch (t) {
|
|
7689
8011
|
case "number": {
|
|
@@ -7703,7 +8025,7 @@ var parsedType34 = (data) => {
|
|
|
7703
8025
|
}
|
|
7704
8026
|
return t;
|
|
7705
8027
|
};
|
|
7706
|
-
var
|
|
8028
|
+
var Nouns37 = {
|
|
7707
8029
|
regex: "\u8F38\u5165",
|
|
7708
8030
|
email: "\u90F5\u4EF6\u5730\u5740",
|
|
7709
8031
|
url: "URL",
|
|
@@ -7733,25 +8055,25 @@ var Nouns34 = {
|
|
|
7733
8055
|
jwt: "JWT",
|
|
7734
8056
|
template_literal: "\u8F38\u5165"
|
|
7735
8057
|
};
|
|
7736
|
-
var
|
|
8058
|
+
var error37 = (issue2) => {
|
|
7737
8059
|
var _a, _b, _c, _d;
|
|
7738
8060
|
switch (issue2.code) {
|
|
7739
8061
|
case "invalid_type":
|
|
7740
|
-
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${
|
|
8062
|
+
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType37(issue2.input)}`;
|
|
7741
8063
|
case "invalid_value":
|
|
7742
8064
|
if (issue2.values.length === 1)
|
|
7743
8065
|
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`;
|
|
7744
8066
|
return `\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`;
|
|
7745
8067
|
case "too_big": {
|
|
7746
8068
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7747
|
-
const sizing =
|
|
8069
|
+
const sizing = getSizing37(issue2.origin);
|
|
7748
8070
|
if (sizing)
|
|
7749
8071
|
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"}`;
|
|
7750
8072
|
return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(_c = issue2.origin) != null ? _c : "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()}`;
|
|
7751
8073
|
}
|
|
7752
8074
|
case "too_small": {
|
|
7753
8075
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7754
|
-
const sizing =
|
|
8076
|
+
const sizing = getSizing37(issue2.origin);
|
|
7755
8077
|
if (sizing) {
|
|
7756
8078
|
return `\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7757
8079
|
}
|
|
@@ -7768,7 +8090,7 @@ var error34 = (issue2) => {
|
|
|
7768
8090
|
return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${_issue.includes}"`;
|
|
7769
8091
|
if (_issue.format === "regex")
|
|
7770
8092
|
return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${_issue.pattern}`;
|
|
7771
|
-
return `\u7121\u6548\u7684 ${(_d =
|
|
8093
|
+
return `\u7121\u6548\u7684 ${(_d = Nouns37[_issue.format]) != null ? _d : issue2.format}`;
|
|
7772
8094
|
}
|
|
7773
8095
|
case "not_multiple_of":
|
|
7774
8096
|
return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${issue2.divisor} \u7684\u500D\u6578`;
|
|
@@ -7784,9 +8106,9 @@ var error34 = (issue2) => {
|
|
|
7784
8106
|
return `\u7121\u6548\u7684\u8F38\u5165\u503C`;
|
|
7785
8107
|
}
|
|
7786
8108
|
};
|
|
7787
|
-
function
|
|
8109
|
+
function zh_TW_default() {
|
|
7788
8110
|
return {
|
|
7789
|
-
localeError:
|
|
8111
|
+
localeError: error37
|
|
7790
8112
|
};
|
|
7791
8113
|
}
|
|
7792
8114
|
|
|
@@ -8536,7 +8858,7 @@ function _refine(Class2, fn, _params = {}) {
|
|
|
8536
8858
|
}
|
|
8537
8859
|
function _stringbool(Classes, _params) {
|
|
8538
8860
|
var _a, _b, _c;
|
|
8539
|
-
const { case: _case, error:
|
|
8861
|
+
const { case: _case, error: error38, truthy, falsy } = normalizeParams(_params);
|
|
8540
8862
|
const trueValues = new Set(truthy != null ? truthy : ["true", "1", "yes", "on", "y", "enabled"]);
|
|
8541
8863
|
const falseValues = new Set(falsy != null ? falsy : ["false", "0", "no", "off", "n", "disabled"]);
|
|
8542
8864
|
const _Pipe = (_a = Classes.Pipe) != null ? _a : $ZodPipe;
|
|
@@ -8580,16 +8902,16 @@ function _stringbool(Classes, _params) {
|
|
|
8580
8902
|
}
|
|
8581
8903
|
}
|
|
8582
8904
|
],
|
|
8583
|
-
error:
|
|
8905
|
+
error: error38
|
|
8584
8906
|
});
|
|
8585
8907
|
return new _Pipe({
|
|
8586
8908
|
type: "pipe",
|
|
8587
8909
|
in: inst,
|
|
8588
8910
|
out: new _Boolean({
|
|
8589
8911
|
type: "boolean",
|
|
8590
|
-
error:
|
|
8912
|
+
error: error38
|
|
8591
8913
|
}),
|
|
8592
|
-
error:
|
|
8914
|
+
error: error38
|
|
8593
8915
|
});
|
|
8594
8916
|
}
|
|
8595
8917
|
|
|
@@ -8854,7 +9176,9 @@ var JSONSchemaGenerator = class {
|
|
|
8854
9176
|
return v.optout === void 0;
|
|
8855
9177
|
}
|
|
8856
9178
|
}));
|
|
8857
|
-
|
|
9179
|
+
if (requiredKeys.size > 0) {
|
|
9180
|
+
json2.required = Array.from(requiredKeys);
|
|
9181
|
+
}
|
|
8858
9182
|
if (((_b = def.catchall) == null ? void 0 : _b._zod.def.type) === "never") {
|
|
8859
9183
|
json2.additionalProperties = false;
|
|
8860
9184
|
} else if (!def.catchall) {
|
|
@@ -9039,7 +9363,7 @@ var JSONSchemaGenerator = class {
|
|
|
9039
9363
|
break;
|
|
9040
9364
|
}
|
|
9041
9365
|
case "pipe": {
|
|
9042
|
-
const innerType = this.io === "input" ? def.in : def.out;
|
|
9366
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9043
9367
|
this.process(innerType, params);
|
|
9044
9368
|
result.ref = innerType;
|
|
9045
9369
|
break;
|
|
@@ -9081,11 +9405,9 @@ var JSONSchemaGenerator = class {
|
|
|
9081
9405
|
const meta = this.metadataRegistry.get(schema);
|
|
9082
9406
|
if (meta)
|
|
9083
9407
|
Object.assign(result.schema, meta);
|
|
9084
|
-
if (this.io === "input" &&
|
|
9408
|
+
if (this.io === "input" && isTransforming(schema)) {
|
|
9085
9409
|
delete result.schema.examples;
|
|
9086
9410
|
delete result.schema.default;
|
|
9087
|
-
if (result.schema._prefault)
|
|
9088
|
-
result.schema.default = result.schema._prefault;
|
|
9089
9411
|
}
|
|
9090
9412
|
if (this.io === "input" && result.schema._prefault)
|
|
9091
9413
|
(_c = (_a = result.schema).default) != null ? _c : _a.default = result.schema._prefault;
|
|
@@ -9136,8 +9458,8 @@ var JSONSchemaGenerator = class {
|
|
|
9136
9458
|
const schema2 = seen.schema;
|
|
9137
9459
|
for (const key in schema2) {
|
|
9138
9460
|
delete schema2[key];
|
|
9139
|
-
schema2.$ref = ref;
|
|
9140
9461
|
}
|
|
9462
|
+
schema2.$ref = ref;
|
|
9141
9463
|
};
|
|
9142
9464
|
for (const entry of this.seen.entries()) {
|
|
9143
9465
|
const seen = entry[1];
|
|
@@ -9178,7 +9500,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9178
9500
|
var _a2, _b2;
|
|
9179
9501
|
const seen = this.seen.get(zodSchema);
|
|
9180
9502
|
const schema2 = (_a2 = seen.def) != null ? _a2 : seen.schema;
|
|
9181
|
-
const
|
|
9503
|
+
const _cached = __spreadValues({}, schema2);
|
|
9182
9504
|
if (seen.ref === null) {
|
|
9183
9505
|
return;
|
|
9184
9506
|
}
|
|
@@ -9192,7 +9514,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9192
9514
|
schema2.allOf.push(refSchema);
|
|
9193
9515
|
} else {
|
|
9194
9516
|
Object.assign(schema2, refSchema);
|
|
9195
|
-
Object.assign(schema2,
|
|
9517
|
+
Object.assign(schema2, _cached);
|
|
9196
9518
|
}
|
|
9197
9519
|
}
|
|
9198
9520
|
if (!seen.isParent)
|
|
@@ -9266,6 +9588,105 @@ function toJSONSchema(input, _params) {
|
|
|
9266
9588
|
gen.process(input);
|
|
9267
9589
|
return gen.emit(input, _params);
|
|
9268
9590
|
}
|
|
9591
|
+
function isTransforming(_schema, _ctx) {
|
|
9592
|
+
const ctx = _ctx != null ? _ctx : { seen: /* @__PURE__ */ new Set() };
|
|
9593
|
+
if (ctx.seen.has(_schema))
|
|
9594
|
+
return false;
|
|
9595
|
+
ctx.seen.add(_schema);
|
|
9596
|
+
const schema = _schema;
|
|
9597
|
+
const def = schema._zod.def;
|
|
9598
|
+
switch (def.type) {
|
|
9599
|
+
case "string":
|
|
9600
|
+
case "number":
|
|
9601
|
+
case "bigint":
|
|
9602
|
+
case "boolean":
|
|
9603
|
+
case "date":
|
|
9604
|
+
case "symbol":
|
|
9605
|
+
case "undefined":
|
|
9606
|
+
case "null":
|
|
9607
|
+
case "any":
|
|
9608
|
+
case "unknown":
|
|
9609
|
+
case "never":
|
|
9610
|
+
case "void":
|
|
9611
|
+
case "literal":
|
|
9612
|
+
case "enum":
|
|
9613
|
+
case "nan":
|
|
9614
|
+
case "file":
|
|
9615
|
+
case "template_literal":
|
|
9616
|
+
return false;
|
|
9617
|
+
case "array": {
|
|
9618
|
+
return isTransforming(def.element, ctx);
|
|
9619
|
+
}
|
|
9620
|
+
case "object": {
|
|
9621
|
+
for (const key in def.shape) {
|
|
9622
|
+
if (isTransforming(def.shape[key], ctx))
|
|
9623
|
+
return true;
|
|
9624
|
+
}
|
|
9625
|
+
return false;
|
|
9626
|
+
}
|
|
9627
|
+
case "union": {
|
|
9628
|
+
for (const option of def.options) {
|
|
9629
|
+
if (isTransforming(option, ctx))
|
|
9630
|
+
return true;
|
|
9631
|
+
}
|
|
9632
|
+
return false;
|
|
9633
|
+
}
|
|
9634
|
+
case "intersection": {
|
|
9635
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
9636
|
+
}
|
|
9637
|
+
case "tuple": {
|
|
9638
|
+
for (const item of def.items) {
|
|
9639
|
+
if (isTransforming(item, ctx))
|
|
9640
|
+
return true;
|
|
9641
|
+
}
|
|
9642
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
9643
|
+
return true;
|
|
9644
|
+
return false;
|
|
9645
|
+
}
|
|
9646
|
+
case "record": {
|
|
9647
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
9648
|
+
}
|
|
9649
|
+
case "map": {
|
|
9650
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
9651
|
+
}
|
|
9652
|
+
case "set": {
|
|
9653
|
+
return isTransforming(def.valueType, ctx);
|
|
9654
|
+
}
|
|
9655
|
+
// inner types
|
|
9656
|
+
case "promise":
|
|
9657
|
+
case "optional":
|
|
9658
|
+
case "nonoptional":
|
|
9659
|
+
case "nullable":
|
|
9660
|
+
case "readonly":
|
|
9661
|
+
return isTransforming(def.innerType, ctx);
|
|
9662
|
+
case "lazy":
|
|
9663
|
+
return isTransforming(def.getter(), ctx);
|
|
9664
|
+
case "default": {
|
|
9665
|
+
return isTransforming(def.innerType, ctx);
|
|
9666
|
+
}
|
|
9667
|
+
case "prefault": {
|
|
9668
|
+
return isTransforming(def.innerType, ctx);
|
|
9669
|
+
}
|
|
9670
|
+
case "custom": {
|
|
9671
|
+
return false;
|
|
9672
|
+
}
|
|
9673
|
+
case "transform": {
|
|
9674
|
+
return true;
|
|
9675
|
+
}
|
|
9676
|
+
case "pipe": {
|
|
9677
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
9678
|
+
}
|
|
9679
|
+
case "success": {
|
|
9680
|
+
return false;
|
|
9681
|
+
}
|
|
9682
|
+
case "catch": {
|
|
9683
|
+
return false;
|
|
9684
|
+
}
|
|
9685
|
+
default:
|
|
9686
|
+
def;
|
|
9687
|
+
}
|
|
9688
|
+
throw new Error(`Unknown schema type: ${def.type}`);
|
|
9689
|
+
}
|
|
9269
9690
|
|
|
9270
9691
|
// node_modules/zod/dist/esm/v4/core/json-schema.js
|
|
9271
9692
|
var json_schema_exports = {};
|