@kevisual/router 0.2.11 → 0.2.12
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/app.js +1271 -550
- package/dist/commander.d.ts +53 -38
- package/dist/commander.js +1211 -492
- package/dist/opencode.d.ts +53 -38
- package/dist/opencode.js +1209 -488
- package/dist/router-browser.d.ts +53 -38
- package/dist/router-browser.js +1238 -519
- package/dist/router-define.d.ts +53 -38
- package/dist/router-simple.js +1 -1
- package/dist/router.d.ts +53 -38
- package/dist/router.js +1261 -540
- package/dist/ws.d.ts +53 -38
- package/dist/ws.js +14 -14
- package/package.json +7 -6
- package/src/route.ts +3 -30
- package/src/test/app-type.ts +1 -1
- package/src/test/run-schema.ts +15 -1
- package/src/types/index.ts +39 -0
- package/src/test/chat.ts +0 -17
package/dist/router-browser.js
CHANGED
|
@@ -69,7 +69,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
69
69
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
//
|
|
72
|
+
// node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
|
|
73
73
|
var require_eventemitter3 = __commonJS((exports, module) => {
|
|
74
74
|
var has = Object.prototype.hasOwnProperty;
|
|
75
75
|
var prefix = "~";
|
|
@@ -4244,13 +4244,13 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
4244
4244
|
readable._read = function() {
|
|
4245
4245
|
if (!reading)
|
|
4246
4246
|
reading = true, next();
|
|
4247
|
-
}, readable._destroy = function(
|
|
4248
|
-
PromisePrototypeThen(close(
|
|
4247
|
+
}, readable._destroy = function(error51, cb) {
|
|
4248
|
+
PromisePrototypeThen(close(error51), () => process3.nextTick(cb, error51), (e) => process3.nextTick(cb, e || error51));
|
|
4249
4249
|
};
|
|
4250
|
-
async function close(
|
|
4251
|
-
let hadError =
|
|
4250
|
+
async function close(error51) {
|
|
4251
|
+
let hadError = error51 !== undefined && error51 !== null, hasThrow = typeof iterator.throw === "function";
|
|
4252
4252
|
if (hadError && hasThrow) {
|
|
4253
|
-
let { value, done } = await iterator.throw(
|
|
4253
|
+
let { value, done } = await iterator.throw(error51);
|
|
4254
4254
|
if (await value, done)
|
|
4255
4255
|
return;
|
|
4256
4256
|
}
|
|
@@ -4347,10 +4347,10 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
4347
4347
|
this.destroy(err);
|
|
4348
4348
|
};
|
|
4349
4349
|
Readable.prototype[SymbolAsyncDispose] = function() {
|
|
4350
|
-
let
|
|
4350
|
+
let error51;
|
|
4351
4351
|
if (!this.destroyed)
|
|
4352
|
-
|
|
4353
|
-
return new Promise2((resolve, reject) => eos(this, (err) => err && err !==
|
|
4352
|
+
error51 = this.readableEnded ? null : new AbortError3, this.destroy(error51);
|
|
4353
|
+
return new Promise2((resolve, reject) => eos(this, (err) => err && err !== error51 ? reject(err) : resolve(null)));
|
|
4354
4354
|
};
|
|
4355
4355
|
Readable.prototype.push = function(chunk2, encoding) {
|
|
4356
4356
|
return readableAddChunk(this, chunk2, encoding, false);
|
|
@@ -4772,25 +4772,25 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
4772
4772
|
callback = resolve;
|
|
4773
4773
|
}
|
|
4774
4774
|
stream.on("readable", next);
|
|
4775
|
-
let
|
|
4776
|
-
|
|
4775
|
+
let error51, cleanup = eos(stream, { writable: false }, (err) => {
|
|
4776
|
+
error51 = err ? aggregateTwoErrors(error51, err) : null, callback(), callback = nop;
|
|
4777
4777
|
});
|
|
4778
4778
|
try {
|
|
4779
4779
|
while (true) {
|
|
4780
4780
|
let chunk2 = stream.destroyed ? null : stream.read();
|
|
4781
4781
|
if (chunk2 !== null)
|
|
4782
4782
|
yield chunk2;
|
|
4783
|
-
else if (
|
|
4784
|
-
throw
|
|
4785
|
-
else if (
|
|
4783
|
+
else if (error51)
|
|
4784
|
+
throw error51;
|
|
4785
|
+
else if (error51 === null)
|
|
4786
4786
|
return;
|
|
4787
4787
|
else
|
|
4788
4788
|
await new Promise2(next);
|
|
4789
4789
|
}
|
|
4790
4790
|
} catch (err) {
|
|
4791
|
-
throw
|
|
4791
|
+
throw error51 = aggregateTwoErrors(error51, err), error51;
|
|
4792
4792
|
} finally {
|
|
4793
|
-
if ((
|
|
4793
|
+
if ((error51 || (options === null || options === undefined ? undefined : options.destroyOnReturn) !== false) && (error51 === undefined || stream._readableState.autoDestroy))
|
|
4794
4794
|
destroyImpl.destroyer(stream, null);
|
|
4795
4795
|
else
|
|
4796
4796
|
stream.off("readable", next), cleanup();
|
|
@@ -5619,20 +5619,20 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
5619
5619
|
yield* Readable.prototype[SymbolAsyncIterator].call(val);
|
|
5620
5620
|
}
|
|
5621
5621
|
async function pumpToNode(iterable, writable, finish, { end }) {
|
|
5622
|
-
let
|
|
5622
|
+
let error51, onresolve = null, resume = (err) => {
|
|
5623
5623
|
if (err)
|
|
5624
|
-
|
|
5624
|
+
error51 = err;
|
|
5625
5625
|
if (onresolve) {
|
|
5626
5626
|
let callback = onresolve;
|
|
5627
5627
|
onresolve = null, callback();
|
|
5628
5628
|
}
|
|
5629
5629
|
}, wait = () => new Promise2((resolve, reject) => {
|
|
5630
|
-
if (
|
|
5631
|
-
reject(
|
|
5630
|
+
if (error51)
|
|
5631
|
+
reject(error51);
|
|
5632
5632
|
else
|
|
5633
5633
|
onresolve = () => {
|
|
5634
|
-
if (
|
|
5635
|
-
reject(
|
|
5634
|
+
if (error51)
|
|
5635
|
+
reject(error51);
|
|
5636
5636
|
else
|
|
5637
5637
|
resolve();
|
|
5638
5638
|
};
|
|
@@ -5649,7 +5649,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
5649
5649
|
writable.end(), await wait();
|
|
5650
5650
|
finish();
|
|
5651
5651
|
} catch (err) {
|
|
5652
|
-
finish(
|
|
5652
|
+
finish(error51 !== err ? aggregateTwoErrors(error51, err) : err);
|
|
5653
5653
|
} finally {
|
|
5654
5654
|
cleanup(), writable.off("drain", resume);
|
|
5655
5655
|
}
|
|
@@ -5689,22 +5689,22 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
5689
5689
|
let disposable;
|
|
5690
5690
|
if (outerSignal)
|
|
5691
5691
|
disposable = addAbortListener2(outerSignal, abort);
|
|
5692
|
-
let
|
|
5692
|
+
let error51, value, destroys = [], finishCount = 0;
|
|
5693
5693
|
function finish(err) {
|
|
5694
5694
|
finishImpl(err, --finishCount === 0);
|
|
5695
5695
|
}
|
|
5696
5696
|
function finishImpl(err, final) {
|
|
5697
5697
|
var _disposable;
|
|
5698
|
-
if (err && (!
|
|
5699
|
-
|
|
5700
|
-
if (!
|
|
5698
|
+
if (err && (!error51 || error51.code === "ERR_STREAM_PREMATURE_CLOSE"))
|
|
5699
|
+
error51 = err;
|
|
5700
|
+
if (!error51 && !final)
|
|
5701
5701
|
return;
|
|
5702
5702
|
while (destroys.length)
|
|
5703
|
-
destroys.shift()(
|
|
5703
|
+
destroys.shift()(error51);
|
|
5704
5704
|
if ((_disposable = disposable) === null || _disposable === undefined || _disposable[SymbolDispose](), ac.abort(), final) {
|
|
5705
|
-
if (!
|
|
5705
|
+
if (!error51)
|
|
5706
5706
|
lastStreamCleanup.forEach((fn) => fn());
|
|
5707
|
-
process3.nextTick(callback,
|
|
5707
|
+
process3.nextTick(callback, error51, value);
|
|
5708
5708
|
}
|
|
5709
5709
|
}
|
|
5710
5710
|
let ret;
|
|
@@ -14901,22 +14901,22 @@ var init_crypto = __esm(() => {
|
|
|
14901
14901
|
}
|
|
14902
14902
|
inherits2(HashBase, Transform);
|
|
14903
14903
|
HashBase.prototype._transform = function(chunk2, encoding, callback) {
|
|
14904
|
-
var
|
|
14904
|
+
var error51 = null;
|
|
14905
14905
|
try {
|
|
14906
14906
|
this.update(chunk2, encoding);
|
|
14907
14907
|
} catch (err) {
|
|
14908
|
-
|
|
14908
|
+
error51 = err;
|
|
14909
14909
|
}
|
|
14910
|
-
callback(
|
|
14910
|
+
callback(error51);
|
|
14911
14911
|
};
|
|
14912
14912
|
HashBase.prototype._flush = function(callback) {
|
|
14913
|
-
var
|
|
14913
|
+
var error51 = null;
|
|
14914
14914
|
try {
|
|
14915
14915
|
this.push(this.digest());
|
|
14916
14916
|
} catch (err) {
|
|
14917
|
-
|
|
14917
|
+
error51 = err;
|
|
14918
14918
|
}
|
|
14919
|
-
callback(
|
|
14919
|
+
callback(error51);
|
|
14920
14920
|
};
|
|
14921
14921
|
var useUint8Array = typeof Uint8Array < "u", useArrayBuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u" && ArrayBuffer.isView && (Buffer22.prototype instanceof Uint8Array || Buffer22.TYPED_ARRAY_SUPPORT);
|
|
14922
14922
|
function toBuffer(data, encoding) {
|
|
@@ -18332,7 +18332,7 @@ https://github.com/browserify/crypto-browserify`);
|
|
|
18332
18332
|
crypto_default = crypto;
|
|
18333
18333
|
});
|
|
18334
18334
|
|
|
18335
|
-
//
|
|
18335
|
+
// node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js
|
|
18336
18336
|
var require_core = __commonJS((exports, module) => {
|
|
18337
18337
|
(function(root, factory) {
|
|
18338
18338
|
if (typeof exports === "object") {
|
|
@@ -18617,7 +18617,7 @@ var require_core = __commonJS((exports, module) => {
|
|
|
18617
18617
|
});
|
|
18618
18618
|
});
|
|
18619
18619
|
|
|
18620
|
-
//
|
|
18620
|
+
// node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js
|
|
18621
18621
|
var require_md52 = __commonJS((exports, module) => {
|
|
18622
18622
|
(function(root, factory) {
|
|
18623
18623
|
if (typeof exports === "object") {
|
|
@@ -18868,7 +18868,7 @@ function pick(obj, keys) {
|
|
|
18868
18868
|
return result;
|
|
18869
18869
|
}
|
|
18870
18870
|
|
|
18871
|
-
//
|
|
18871
|
+
// node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs
|
|
18872
18872
|
var import__ = __toESM(require_eventemitter3(), 1);
|
|
18873
18873
|
// node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
18874
18874
|
function isUnsafeProperty(key) {
|
|
@@ -19002,7 +19002,7 @@ var listenProcess = async ({ app, mockProcess, params = {}, timeout: timeout2 =
|
|
|
19002
19002
|
}
|
|
19003
19003
|
};
|
|
19004
19004
|
|
|
19005
|
-
//
|
|
19005
|
+
// node_modules/zod/v4/classic/external.js
|
|
19006
19006
|
var exports_external = {};
|
|
19007
19007
|
__export(exports_external, {
|
|
19008
19008
|
xor: () => xor2,
|
|
@@ -19104,6 +19104,7 @@ __export(exports_external, {
|
|
|
19104
19104
|
iso: () => exports_iso,
|
|
19105
19105
|
ipv6: () => ipv62,
|
|
19106
19106
|
ipv4: () => ipv42,
|
|
19107
|
+
invertCodec: () => invertCodec,
|
|
19107
19108
|
intersection: () => intersection2,
|
|
19108
19109
|
int64: () => int64,
|
|
19109
19110
|
int32: () => int32,
|
|
@@ -19243,7 +19244,7 @@ __export(exports_external, {
|
|
|
19243
19244
|
$brand: () => $brand
|
|
19244
19245
|
});
|
|
19245
19246
|
|
|
19246
|
-
//
|
|
19247
|
+
// node_modules/zod/v4/core/index.js
|
|
19247
19248
|
var exports_core2 = {};
|
|
19248
19249
|
__export(exports_core2, {
|
|
19249
19250
|
version: () => version,
|
|
@@ -19521,8 +19522,9 @@ __export(exports_core2, {
|
|
|
19521
19522
|
$ZodAny: () => $ZodAny
|
|
19522
19523
|
});
|
|
19523
19524
|
|
|
19524
|
-
//
|
|
19525
|
-
var
|
|
19525
|
+
// node_modules/zod/v4/core/core.js
|
|
19526
|
+
var _a;
|
|
19527
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
19526
19528
|
status: "aborted"
|
|
19527
19529
|
});
|
|
19528
19530
|
function $constructor(name, initializer, params) {
|
|
@@ -19557,10 +19559,10 @@ function $constructor(name, initializer, params) {
|
|
|
19557
19559
|
}
|
|
19558
19560
|
Object.defineProperty(Definition, "name", { value: name });
|
|
19559
19561
|
function _(def) {
|
|
19560
|
-
var
|
|
19562
|
+
var _a2;
|
|
19561
19563
|
const inst = params?.Parent ? new Definition : this;
|
|
19562
19564
|
init(inst, def);
|
|
19563
|
-
(
|
|
19565
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
19564
19566
|
for (const fn of inst._zod.deferred) {
|
|
19565
19567
|
fn();
|
|
19566
19568
|
}
|
|
@@ -19591,13 +19593,14 @@ class $ZodEncodeError extends Error {
|
|
|
19591
19593
|
this.name = "ZodEncodeError";
|
|
19592
19594
|
}
|
|
19593
19595
|
}
|
|
19594
|
-
|
|
19596
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
19597
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
19595
19598
|
function config(newConfig) {
|
|
19596
19599
|
if (newConfig)
|
|
19597
19600
|
Object.assign(globalConfig, newConfig);
|
|
19598
19601
|
return globalConfig;
|
|
19599
19602
|
}
|
|
19600
|
-
//
|
|
19603
|
+
// node_modules/zod/v4/core/util.js
|
|
19601
19604
|
var exports_util = {};
|
|
19602
19605
|
__export(exports_util, {
|
|
19603
19606
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -19639,6 +19642,7 @@ __export(exports_util, {
|
|
|
19639
19642
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
19640
19643
|
finalizeIssue: () => finalizeIssue,
|
|
19641
19644
|
extend: () => extend,
|
|
19645
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
19642
19646
|
escapeRegex: () => escapeRegex,
|
|
19643
19647
|
esc: () => esc,
|
|
19644
19648
|
defineLazy: () => defineLazy,
|
|
@@ -19709,21 +19713,14 @@ function cleanRegex(source) {
|
|
|
19709
19713
|
return source.slice(start, end);
|
|
19710
19714
|
}
|
|
19711
19715
|
function floatSafeRemainder(val, step) {
|
|
19712
|
-
const
|
|
19713
|
-
const
|
|
19714
|
-
|
|
19715
|
-
if (
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
19719
|
-
}
|
|
19720
|
-
}
|
|
19721
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
19722
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
19723
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
19724
|
-
return valInt % stepInt / 10 ** decCount;
|
|
19716
|
+
const ratio = val / step;
|
|
19717
|
+
const roundedRatio = Math.round(ratio);
|
|
19718
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
19719
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
19720
|
+
return 0;
|
|
19721
|
+
return ratio - roundedRatio;
|
|
19725
19722
|
}
|
|
19726
|
-
var EVALUATING = Symbol("evaluating");
|
|
19723
|
+
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
19727
19724
|
function defineLazy(object, key, getter) {
|
|
19728
19725
|
let value = undefined;
|
|
19729
19726
|
Object.defineProperty(object, key, {
|
|
@@ -19801,7 +19798,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
19801
19798
|
function isObject(data) {
|
|
19802
19799
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
19803
19800
|
}
|
|
19804
|
-
var allowsEval = cached(() => {
|
|
19801
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
19802
|
+
if (globalConfig.jitless) {
|
|
19803
|
+
return false;
|
|
19804
|
+
}
|
|
19805
19805
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
19806
19806
|
return false;
|
|
19807
19807
|
}
|
|
@@ -19834,6 +19834,10 @@ function shallowClone(o) {
|
|
|
19834
19834
|
return { ...o };
|
|
19835
19835
|
if (Array.isArray(o))
|
|
19836
19836
|
return [...o];
|
|
19837
|
+
if (o instanceof Map)
|
|
19838
|
+
return new Map(o);
|
|
19839
|
+
if (o instanceof Set)
|
|
19840
|
+
return new Set(o);
|
|
19837
19841
|
return o;
|
|
19838
19842
|
}
|
|
19839
19843
|
function numKeys(data) {
|
|
@@ -19889,8 +19893,15 @@ var getParsedType = (data) => {
|
|
|
19889
19893
|
throw new Error(`Unknown data type: ${t}`);
|
|
19890
19894
|
}
|
|
19891
19895
|
};
|
|
19892
|
-
var propertyKeyTypes = new Set(["string", "number", "symbol"]);
|
|
19893
|
-
var primitiveTypes = new Set([
|
|
19896
|
+
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
19897
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
19898
|
+
"string",
|
|
19899
|
+
"number",
|
|
19900
|
+
"bigint",
|
|
19901
|
+
"boolean",
|
|
19902
|
+
"symbol",
|
|
19903
|
+
"undefined"
|
|
19904
|
+
]);
|
|
19894
19905
|
function escapeRegex(str) {
|
|
19895
19906
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
19896
19907
|
}
|
|
@@ -20059,6 +20070,9 @@ function safeExtend(schema, shape) {
|
|
|
20059
20070
|
return clone2(schema, def);
|
|
20060
20071
|
}
|
|
20061
20072
|
function merge2(a, b) {
|
|
20073
|
+
if (a._zod.def.checks?.length) {
|
|
20074
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
20075
|
+
}
|
|
20062
20076
|
const def = mergeDefs(a._zod.def, {
|
|
20063
20077
|
get shape() {
|
|
20064
20078
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -20068,7 +20082,7 @@ function merge2(a, b) {
|
|
|
20068
20082
|
get catchall() {
|
|
20069
20083
|
return b._zod.def.catchall;
|
|
20070
20084
|
},
|
|
20071
|
-
checks: []
|
|
20085
|
+
checks: b._zod.def.checks ?? []
|
|
20072
20086
|
});
|
|
20073
20087
|
return clone2(a, def);
|
|
20074
20088
|
}
|
|
@@ -20151,10 +20165,20 @@ function aborted(x, startIndex = 0) {
|
|
|
20151
20165
|
}
|
|
20152
20166
|
return false;
|
|
20153
20167
|
}
|
|
20168
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
20169
|
+
if (x.aborted === true)
|
|
20170
|
+
return true;
|
|
20171
|
+
for (let i = startIndex;i < x.issues.length; i++) {
|
|
20172
|
+
if (x.issues[i]?.continue === false) {
|
|
20173
|
+
return true;
|
|
20174
|
+
}
|
|
20175
|
+
}
|
|
20176
|
+
return false;
|
|
20177
|
+
}
|
|
20154
20178
|
function prefixIssues(path, issues) {
|
|
20155
20179
|
return issues.map((iss) => {
|
|
20156
|
-
var
|
|
20157
|
-
(
|
|
20180
|
+
var _a2;
|
|
20181
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
20158
20182
|
iss.path.unshift(path);
|
|
20159
20183
|
return iss;
|
|
20160
20184
|
});
|
|
@@ -20163,17 +20187,14 @@ function unwrapMessage(message) {
|
|
|
20163
20187
|
return typeof message === "string" ? message : message?.message;
|
|
20164
20188
|
}
|
|
20165
20189
|
function finalizeIssue(iss, ctx, config2) {
|
|
20166
|
-
const
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
|
|
20172
|
-
delete full.continue;
|
|
20173
|
-
if (!ctx?.reportInput) {
|
|
20174
|
-
delete full.input;
|
|
20190
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
20191
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest2 } = iss;
|
|
20192
|
+
rest2.path ?? (rest2.path = []);
|
|
20193
|
+
rest2.message = message;
|
|
20194
|
+
if (ctx?.reportInput) {
|
|
20195
|
+
rest2.input = _input;
|
|
20175
20196
|
}
|
|
20176
|
-
return
|
|
20197
|
+
return rest2;
|
|
20177
20198
|
}
|
|
20178
20199
|
function getSizableOrigin(input) {
|
|
20179
20200
|
if (input instanceof Set)
|
|
@@ -20271,7 +20292,7 @@ class Class {
|
|
|
20271
20292
|
constructor(..._args) {}
|
|
20272
20293
|
}
|
|
20273
20294
|
|
|
20274
|
-
//
|
|
20295
|
+
// node_modules/zod/v4/core/errors.js
|
|
20275
20296
|
var initializer = (inst, def) => {
|
|
20276
20297
|
inst.name = "$ZodError";
|
|
20277
20298
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -20305,30 +20326,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
20305
20326
|
}
|
|
20306
20327
|
function formatError(error, mapper = (issue2) => issue2.message) {
|
|
20307
20328
|
const fieldErrors = { _errors: [] };
|
|
20308
|
-
const processError = (error2) => {
|
|
20329
|
+
const processError = (error2, path = []) => {
|
|
20309
20330
|
for (const issue2 of error2.issues) {
|
|
20310
20331
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
20311
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
20332
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
20312
20333
|
} else if (issue2.code === "invalid_key") {
|
|
20313
|
-
processError({ issues: issue2.issues });
|
|
20334
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
20314
20335
|
} else if (issue2.code === "invalid_element") {
|
|
20315
|
-
processError({ issues: issue2.issues });
|
|
20316
|
-
} else if (issue2.path.length === 0) {
|
|
20317
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
20336
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
20318
20337
|
} else {
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20338
|
+
const fullpath = [...path, ...issue2.path];
|
|
20339
|
+
if (fullpath.length === 0) {
|
|
20340
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
20341
|
+
} else {
|
|
20342
|
+
let curr = fieldErrors;
|
|
20343
|
+
let i = 0;
|
|
20344
|
+
while (i < fullpath.length) {
|
|
20345
|
+
const el = fullpath[i];
|
|
20346
|
+
const terminal = i === fullpath.length - 1;
|
|
20347
|
+
if (!terminal) {
|
|
20348
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
20349
|
+
} else {
|
|
20350
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
20351
|
+
curr[el]._errors.push(mapper(issue2));
|
|
20352
|
+
}
|
|
20353
|
+
curr = curr[el];
|
|
20354
|
+
i++;
|
|
20329
20355
|
}
|
|
20330
|
-
curr = curr[el];
|
|
20331
|
-
i++;
|
|
20332
20356
|
}
|
|
20333
20357
|
}
|
|
20334
20358
|
}
|
|
@@ -20339,14 +20363,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
|
|
|
20339
20363
|
function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
20340
20364
|
const result = { errors: [] };
|
|
20341
20365
|
const processError = (error2, path = []) => {
|
|
20342
|
-
var
|
|
20366
|
+
var _a2, _b;
|
|
20343
20367
|
for (const issue2 of error2.issues) {
|
|
20344
20368
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
20345
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
20369
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
20346
20370
|
} else if (issue2.code === "invalid_key") {
|
|
20347
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
20371
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
20348
20372
|
} else if (issue2.code === "invalid_element") {
|
|
20349
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
20373
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
20350
20374
|
} else {
|
|
20351
20375
|
const fullpath = [...path, ...issue2.path];
|
|
20352
20376
|
if (fullpath.length === 0) {
|
|
@@ -20360,7 +20384,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
|
20360
20384
|
const terminal = i === fullpath.length - 1;
|
|
20361
20385
|
if (typeof el === "string") {
|
|
20362
20386
|
curr.properties ?? (curr.properties = {});
|
|
20363
|
-
(
|
|
20387
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
20364
20388
|
curr = curr.properties[el];
|
|
20365
20389
|
} else {
|
|
20366
20390
|
curr.items ?? (curr.items = []);
|
|
@@ -20408,9 +20432,9 @@ function prettifyError(error) {
|
|
|
20408
20432
|
`);
|
|
20409
20433
|
}
|
|
20410
20434
|
|
|
20411
|
-
//
|
|
20435
|
+
// node_modules/zod/v4/core/parse.js
|
|
20412
20436
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
20413
|
-
const ctx = _ctx ?
|
|
20437
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
20414
20438
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
20415
20439
|
if (result instanceof Promise) {
|
|
20416
20440
|
throw new $ZodAsyncError;
|
|
@@ -20424,7 +20448,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
20424
20448
|
};
|
|
20425
20449
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
20426
20450
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
20427
|
-
const ctx = _ctx ?
|
|
20451
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
20428
20452
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
20429
20453
|
if (result instanceof Promise)
|
|
20430
20454
|
result = await result;
|
|
@@ -20449,7 +20473,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
20449
20473
|
};
|
|
20450
20474
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
20451
20475
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
20452
|
-
const ctx = _ctx ?
|
|
20476
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
20453
20477
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
20454
20478
|
if (result instanceof Promise)
|
|
20455
20479
|
result = await result;
|
|
@@ -20460,7 +20484,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
20460
20484
|
};
|
|
20461
20485
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
20462
20486
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
20463
|
-
const ctx = _ctx ?
|
|
20487
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
20464
20488
|
return _parse(_Err)(schema, value, ctx);
|
|
20465
20489
|
};
|
|
20466
20490
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -20469,7 +20493,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
20469
20493
|
};
|
|
20470
20494
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
20471
20495
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
20472
|
-
const ctx = _ctx ?
|
|
20496
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
20473
20497
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
20474
20498
|
};
|
|
20475
20499
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -20478,7 +20502,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
20478
20502
|
};
|
|
20479
20503
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
20480
20504
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
20481
|
-
const ctx = _ctx ?
|
|
20505
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
20482
20506
|
return _safeParse(_Err)(schema, value, ctx);
|
|
20483
20507
|
};
|
|
20484
20508
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -20487,7 +20511,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
20487
20511
|
};
|
|
20488
20512
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
20489
20513
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
20490
|
-
const ctx = _ctx ?
|
|
20514
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
20491
20515
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
20492
20516
|
};
|
|
20493
20517
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -20495,7 +20519,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
20495
20519
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
20496
20520
|
};
|
|
20497
20521
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
20498
|
-
//
|
|
20522
|
+
// node_modules/zod/v4/core/regexes.js
|
|
20499
20523
|
var exports_regexes = {};
|
|
20500
20524
|
__export(exports_regexes, {
|
|
20501
20525
|
xid: () => xid,
|
|
@@ -20535,6 +20559,7 @@ __export(exports_regexes, {
|
|
|
20535
20559
|
ipv4: () => ipv4,
|
|
20536
20560
|
integer: () => integer,
|
|
20537
20561
|
idnEmail: () => idnEmail,
|
|
20562
|
+
httpProtocol: () => httpProtocol,
|
|
20538
20563
|
html5Email: () => html5Email,
|
|
20539
20564
|
hostname: () => hostname,
|
|
20540
20565
|
hex: () => hex,
|
|
@@ -20557,7 +20582,7 @@ __export(exports_regexes, {
|
|
|
20557
20582
|
base64url: () => base64url,
|
|
20558
20583
|
base64: () => base64
|
|
20559
20584
|
});
|
|
20560
|
-
var cuid = /^[cC][
|
|
20585
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
20561
20586
|
var cuid2 = /^[0-9a-z]+$/;
|
|
20562
20587
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
20563
20588
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -20596,6 +20621,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
20596
20621
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
20597
20622
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
20598
20623
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
20624
|
+
var httpProtocol = /^https?$/;
|
|
20599
20625
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
20600
20626
|
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
20601
20627
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -20652,12 +20678,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
20652
20678
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
20653
20679
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
20654
20680
|
|
|
20655
|
-
//
|
|
20681
|
+
// node_modules/zod/v4/core/checks.js
|
|
20656
20682
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
20657
|
-
var
|
|
20683
|
+
var _a2;
|
|
20658
20684
|
inst._zod ?? (inst._zod = {});
|
|
20659
20685
|
inst._zod.def = def;
|
|
20660
|
-
(
|
|
20686
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
20661
20687
|
});
|
|
20662
20688
|
var numericOriginMap = {
|
|
20663
20689
|
number: "number",
|
|
@@ -20723,8 +20749,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
20723
20749
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
20724
20750
|
$ZodCheck.init(inst, def);
|
|
20725
20751
|
inst._zod.onattach.push((inst2) => {
|
|
20726
|
-
var
|
|
20727
|
-
(
|
|
20752
|
+
var _a2;
|
|
20753
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
20728
20754
|
});
|
|
20729
20755
|
inst._zod.check = (payload) => {
|
|
20730
20756
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -20857,9 +20883,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
20857
20883
|
};
|
|
20858
20884
|
});
|
|
20859
20885
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
20860
|
-
var
|
|
20886
|
+
var _a2;
|
|
20861
20887
|
$ZodCheck.init(inst, def);
|
|
20862
|
-
(
|
|
20888
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
20863
20889
|
const val = payload.value;
|
|
20864
20890
|
return !nullish(val) && val.size !== undefined;
|
|
20865
20891
|
});
|
|
@@ -20885,9 +20911,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
20885
20911
|
};
|
|
20886
20912
|
});
|
|
20887
20913
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
20888
|
-
var
|
|
20914
|
+
var _a2;
|
|
20889
20915
|
$ZodCheck.init(inst, def);
|
|
20890
|
-
(
|
|
20916
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
20891
20917
|
const val = payload.value;
|
|
20892
20918
|
return !nullish(val) && val.size !== undefined;
|
|
20893
20919
|
});
|
|
@@ -20913,9 +20939,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
20913
20939
|
};
|
|
20914
20940
|
});
|
|
20915
20941
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
20916
|
-
var
|
|
20942
|
+
var _a2;
|
|
20917
20943
|
$ZodCheck.init(inst, def);
|
|
20918
|
-
(
|
|
20944
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
20919
20945
|
const val = payload.value;
|
|
20920
20946
|
return !nullish(val) && val.size !== undefined;
|
|
20921
20947
|
});
|
|
@@ -20943,9 +20969,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
20943
20969
|
};
|
|
20944
20970
|
});
|
|
20945
20971
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
20946
|
-
var
|
|
20972
|
+
var _a2;
|
|
20947
20973
|
$ZodCheck.init(inst, def);
|
|
20948
|
-
(
|
|
20974
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
20949
20975
|
const val = payload.value;
|
|
20950
20976
|
return !nullish(val) && val.length !== undefined;
|
|
20951
20977
|
});
|
|
@@ -20972,9 +20998,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
20972
20998
|
};
|
|
20973
20999
|
});
|
|
20974
21000
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
20975
|
-
var
|
|
21001
|
+
var _a2;
|
|
20976
21002
|
$ZodCheck.init(inst, def);
|
|
20977
|
-
(
|
|
21003
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
20978
21004
|
const val = payload.value;
|
|
20979
21005
|
return !nullish(val) && val.length !== undefined;
|
|
20980
21006
|
});
|
|
@@ -21001,9 +21027,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
21001
21027
|
};
|
|
21002
21028
|
});
|
|
21003
21029
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
21004
|
-
var
|
|
21030
|
+
var _a2;
|
|
21005
21031
|
$ZodCheck.init(inst, def);
|
|
21006
|
-
(
|
|
21032
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
21007
21033
|
const val = payload.value;
|
|
21008
21034
|
return !nullish(val) && val.length !== undefined;
|
|
21009
21035
|
});
|
|
@@ -21032,7 +21058,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
21032
21058
|
};
|
|
21033
21059
|
});
|
|
21034
21060
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
21035
|
-
var
|
|
21061
|
+
var _a2, _b;
|
|
21036
21062
|
$ZodCheck.init(inst, def);
|
|
21037
21063
|
inst._zod.onattach.push((inst2) => {
|
|
21038
21064
|
const bag = inst2._zod.bag;
|
|
@@ -21043,7 +21069,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
21043
21069
|
}
|
|
21044
21070
|
});
|
|
21045
21071
|
if (def.pattern)
|
|
21046
|
-
(
|
|
21072
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
21047
21073
|
def.pattern.lastIndex = 0;
|
|
21048
21074
|
if (def.pattern.test(payload.value))
|
|
21049
21075
|
return;
|
|
@@ -21199,7 +21225,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
21199
21225
|
};
|
|
21200
21226
|
});
|
|
21201
21227
|
|
|
21202
|
-
//
|
|
21228
|
+
// node_modules/zod/v4/core/doc.js
|
|
21203
21229
|
class Doc {
|
|
21204
21230
|
constructor(args = []) {
|
|
21205
21231
|
this.content = [];
|
|
@@ -21237,16 +21263,16 @@ class Doc {
|
|
|
21237
21263
|
}
|
|
21238
21264
|
}
|
|
21239
21265
|
|
|
21240
|
-
//
|
|
21266
|
+
// node_modules/zod/v4/core/versions.js
|
|
21241
21267
|
var version = {
|
|
21242
21268
|
major: 4,
|
|
21243
|
-
minor:
|
|
21244
|
-
patch:
|
|
21269
|
+
minor: 4,
|
|
21270
|
+
patch: 1
|
|
21245
21271
|
};
|
|
21246
21272
|
|
|
21247
|
-
//
|
|
21273
|
+
// node_modules/zod/v4/core/schemas.js
|
|
21248
21274
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
21249
|
-
var
|
|
21275
|
+
var _a2;
|
|
21250
21276
|
inst ?? (inst = {});
|
|
21251
21277
|
inst._zod.def = def;
|
|
21252
21278
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -21261,7 +21287,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
21261
21287
|
}
|
|
21262
21288
|
}
|
|
21263
21289
|
if (checks.length === 0) {
|
|
21264
|
-
(
|
|
21290
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
21265
21291
|
inst._zod.deferred?.push(() => {
|
|
21266
21292
|
inst._zod.run = inst._zod.parse;
|
|
21267
21293
|
});
|
|
@@ -21271,6 +21297,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
21271
21297
|
let asyncResult;
|
|
21272
21298
|
for (const ch of checks2) {
|
|
21273
21299
|
if (ch._zod.def.when) {
|
|
21300
|
+
if (explicitlyAborted(payload))
|
|
21301
|
+
continue;
|
|
21274
21302
|
const shouldRun = ch._zod.def.when(payload);
|
|
21275
21303
|
if (!shouldRun)
|
|
21276
21304
|
continue;
|
|
@@ -21410,6 +21438,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
21410
21438
|
inst._zod.check = (payload) => {
|
|
21411
21439
|
try {
|
|
21412
21440
|
const trimmed = payload.value.trim();
|
|
21441
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
21442
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
21443
|
+
payload.issues.push({
|
|
21444
|
+
code: "invalid_format",
|
|
21445
|
+
format: "url",
|
|
21446
|
+
note: "Invalid URL format",
|
|
21447
|
+
input: payload.value,
|
|
21448
|
+
inst,
|
|
21449
|
+
continue: !def.abort
|
|
21450
|
+
});
|
|
21451
|
+
return;
|
|
21452
|
+
}
|
|
21453
|
+
}
|
|
21413
21454
|
const url = new URL(trimmed);
|
|
21414
21455
|
if (def.hostname) {
|
|
21415
21456
|
def.hostname.lastIndex = 0;
|
|
@@ -21563,6 +21604,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
21563
21604
|
function isValidBase64(data) {
|
|
21564
21605
|
if (data === "")
|
|
21565
21606
|
return true;
|
|
21607
|
+
if (/\s/.test(data))
|
|
21608
|
+
return false;
|
|
21566
21609
|
if (data.length % 4 !== 0)
|
|
21567
21610
|
return false;
|
|
21568
21611
|
try {
|
|
@@ -21752,8 +21795,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
21752
21795
|
$ZodType.init(inst, def);
|
|
21753
21796
|
inst._zod.pattern = _undefined;
|
|
21754
21797
|
inst._zod.values = new Set([undefined]);
|
|
21755
|
-
inst._zod.optin = "optional";
|
|
21756
|
-
inst._zod.optout = "optional";
|
|
21757
21798
|
inst._zod.parse = (payload, _ctx) => {
|
|
21758
21799
|
const input = payload.value;
|
|
21759
21800
|
if (typeof input === "undefined")
|
|
@@ -21881,15 +21922,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
21881
21922
|
return payload;
|
|
21882
21923
|
};
|
|
21883
21924
|
});
|
|
21884
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
21925
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
21926
|
+
const isPresent = key in input;
|
|
21885
21927
|
if (result.issues.length) {
|
|
21886
|
-
if (isOptionalOut && !
|
|
21928
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
21887
21929
|
return;
|
|
21888
21930
|
}
|
|
21889
21931
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
21890
21932
|
}
|
|
21933
|
+
if (!isPresent && !isOptionalIn) {
|
|
21934
|
+
if (!result.issues.length) {
|
|
21935
|
+
final.issues.push({
|
|
21936
|
+
code: "invalid_type",
|
|
21937
|
+
expected: "nonoptional",
|
|
21938
|
+
input: undefined,
|
|
21939
|
+
path: [key]
|
|
21940
|
+
});
|
|
21941
|
+
}
|
|
21942
|
+
return;
|
|
21943
|
+
}
|
|
21891
21944
|
if (result.value === undefined) {
|
|
21892
|
-
if (
|
|
21945
|
+
if (isPresent) {
|
|
21893
21946
|
final.value[key] = undefined;
|
|
21894
21947
|
}
|
|
21895
21948
|
} else {
|
|
@@ -21917,8 +21970,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
21917
21970
|
const keySet = def.keySet;
|
|
21918
21971
|
const _catchall = def.catchall._zod;
|
|
21919
21972
|
const t = _catchall.def.type;
|
|
21973
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
21920
21974
|
const isOptionalOut = _catchall.optout === "optional";
|
|
21921
21975
|
for (const key in input) {
|
|
21976
|
+
if (key === "__proto__")
|
|
21977
|
+
continue;
|
|
21922
21978
|
if (keySet.has(key))
|
|
21923
21979
|
continue;
|
|
21924
21980
|
if (t === "never") {
|
|
@@ -21927,9 +21983,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
21927
21983
|
}
|
|
21928
21984
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
21929
21985
|
if (r instanceof Promise) {
|
|
21930
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
21986
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
21931
21987
|
} else {
|
|
21932
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
21988
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
21933
21989
|
}
|
|
21934
21990
|
}
|
|
21935
21991
|
if (unrecognized.length) {
|
|
@@ -21995,12 +22051,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
21995
22051
|
const shape = value.shape;
|
|
21996
22052
|
for (const key of value.keys) {
|
|
21997
22053
|
const el = shape[key];
|
|
22054
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
21998
22055
|
const isOptionalOut = el._zod.optout === "optional";
|
|
21999
22056
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
22000
22057
|
if (r instanceof Promise) {
|
|
22001
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
22058
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
22002
22059
|
} else {
|
|
22003
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
22060
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
22004
22061
|
}
|
|
22005
22062
|
}
|
|
22006
22063
|
if (!catchall) {
|
|
@@ -22031,9 +22088,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
22031
22088
|
const id = ids[key];
|
|
22032
22089
|
const k = esc(key);
|
|
22033
22090
|
const schema = shape[key];
|
|
22091
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
22034
22092
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
22035
22093
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
22036
|
-
if (isOptionalOut) {
|
|
22094
|
+
if (isOptionalIn && isOptionalOut) {
|
|
22037
22095
|
doc.write(`
|
|
22038
22096
|
if (${id}.issues.length) {
|
|
22039
22097
|
if (${k} in input) {
|
|
@@ -22052,6 +22110,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
22052
22110
|
newResult[${k}] = ${id}.value;
|
|
22053
22111
|
}
|
|
22054
22112
|
|
|
22113
|
+
`);
|
|
22114
|
+
} else if (!isOptionalIn) {
|
|
22115
|
+
doc.write(`
|
|
22116
|
+
const ${id}_present = ${k} in input;
|
|
22117
|
+
if (${id}.issues.length) {
|
|
22118
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
22119
|
+
...iss,
|
|
22120
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
22121
|
+
})));
|
|
22122
|
+
}
|
|
22123
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
22124
|
+
payload.issues.push({
|
|
22125
|
+
code: "invalid_type",
|
|
22126
|
+
expected: "nonoptional",
|
|
22127
|
+
input: undefined,
|
|
22128
|
+
path: [${k}]
|
|
22129
|
+
});
|
|
22130
|
+
}
|
|
22131
|
+
|
|
22132
|
+
if (${id}_present) {
|
|
22133
|
+
if (${id}.value === undefined) {
|
|
22134
|
+
newResult[${k}] = undefined;
|
|
22135
|
+
} else {
|
|
22136
|
+
newResult[${k}] = ${id}.value;
|
|
22137
|
+
}
|
|
22138
|
+
}
|
|
22139
|
+
|
|
22055
22140
|
`);
|
|
22056
22141
|
} else {
|
|
22057
22142
|
doc.write(`
|
|
@@ -22145,10 +22230,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
22145
22230
|
}
|
|
22146
22231
|
return;
|
|
22147
22232
|
});
|
|
22148
|
-
const
|
|
22149
|
-
const first = def.options[0]._zod.run;
|
|
22233
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
22150
22234
|
inst._zod.parse = (payload, ctx) => {
|
|
22151
|
-
if (
|
|
22235
|
+
if (first) {
|
|
22152
22236
|
return first(payload, ctx);
|
|
22153
22237
|
}
|
|
22154
22238
|
let async = false;
|
|
@@ -22201,10 +22285,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
22201
22285
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
22202
22286
|
$ZodUnion.init(inst, def);
|
|
22203
22287
|
def.inclusive = false;
|
|
22204
|
-
const
|
|
22205
|
-
const first = def.options[0]._zod.run;
|
|
22288
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
22206
22289
|
inst._zod.parse = (payload, ctx) => {
|
|
22207
|
-
if (
|
|
22290
|
+
if (first) {
|
|
22208
22291
|
return first(payload, ctx);
|
|
22209
22292
|
}
|
|
22210
22293
|
let async = false;
|
|
@@ -22279,7 +22362,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
22279
22362
|
if (opt) {
|
|
22280
22363
|
return opt._zod.run(payload, ctx);
|
|
22281
22364
|
}
|
|
22282
|
-
if (def.unionFallback) {
|
|
22365
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
22283
22366
|
return _super(payload, ctx);
|
|
22284
22367
|
}
|
|
22285
22368
|
payload.issues.push({
|
|
@@ -22287,6 +22370,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
22287
22370
|
errors: [],
|
|
22288
22371
|
note: "No matching discriminator",
|
|
22289
22372
|
discriminator: def.discriminator,
|
|
22373
|
+
options: Array.from(disc.value.keys()),
|
|
22290
22374
|
input,
|
|
22291
22375
|
path: [def.discriminator],
|
|
22292
22376
|
inst
|
|
@@ -22408,64 +22492,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
22408
22492
|
}
|
|
22409
22493
|
payload.value = [];
|
|
22410
22494
|
const proms = [];
|
|
22411
|
-
const
|
|
22412
|
-
const
|
|
22495
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
22496
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
22413
22497
|
if (!def.rest) {
|
|
22414
|
-
|
|
22415
|
-
const tooSmall = input.length < optStart - 1;
|
|
22416
|
-
if (tooBig || tooSmall) {
|
|
22498
|
+
if (input.length < optinStart) {
|
|
22417
22499
|
payload.issues.push({
|
|
22418
|
-
|
|
22500
|
+
code: "too_small",
|
|
22501
|
+
minimum: optinStart,
|
|
22502
|
+
inclusive: true,
|
|
22419
22503
|
input,
|
|
22420
22504
|
inst,
|
|
22421
22505
|
origin: "array"
|
|
22422
22506
|
});
|
|
22423
22507
|
return payload;
|
|
22424
22508
|
}
|
|
22425
|
-
|
|
22426
|
-
|
|
22427
|
-
|
|
22428
|
-
|
|
22429
|
-
|
|
22430
|
-
|
|
22431
|
-
|
|
22509
|
+
if (input.length > items.length) {
|
|
22510
|
+
payload.issues.push({
|
|
22511
|
+
code: "too_big",
|
|
22512
|
+
maximum: items.length,
|
|
22513
|
+
inclusive: true,
|
|
22514
|
+
input,
|
|
22515
|
+
inst,
|
|
22516
|
+
origin: "array"
|
|
22517
|
+
});
|
|
22432
22518
|
}
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
|
|
22436
|
-
}, ctx);
|
|
22437
|
-
if (
|
|
22438
|
-
proms.push(
|
|
22519
|
+
}
|
|
22520
|
+
const itemResults = new Array(items.length);
|
|
22521
|
+
for (let i = 0;i < items.length; i++) {
|
|
22522
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
22523
|
+
if (r instanceof Promise) {
|
|
22524
|
+
proms.push(r.then((rr) => {
|
|
22525
|
+
itemResults[i] = rr;
|
|
22526
|
+
}));
|
|
22439
22527
|
} else {
|
|
22440
|
-
|
|
22528
|
+
itemResults[i] = r;
|
|
22441
22529
|
}
|
|
22442
22530
|
}
|
|
22443
22531
|
if (def.rest) {
|
|
22532
|
+
let i = items.length - 1;
|
|
22444
22533
|
const rest2 = input.slice(items.length);
|
|
22445
22534
|
for (const el of rest2) {
|
|
22446
22535
|
i++;
|
|
22447
|
-
const result = def.rest._zod.run({
|
|
22448
|
-
value: el,
|
|
22449
|
-
issues: []
|
|
22450
|
-
}, ctx);
|
|
22536
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
22451
22537
|
if (result instanceof Promise) {
|
|
22452
|
-
proms.push(result.then((
|
|
22538
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
22453
22539
|
} else {
|
|
22454
22540
|
handleTupleResult(result, payload, i);
|
|
22455
22541
|
}
|
|
22456
22542
|
}
|
|
22457
22543
|
}
|
|
22458
|
-
if (proms.length)
|
|
22459
|
-
return Promise.all(proms).then(() => payload);
|
|
22460
|
-
|
|
22544
|
+
if (proms.length) {
|
|
22545
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
22546
|
+
}
|
|
22547
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
22461
22548
|
};
|
|
22462
22549
|
});
|
|
22550
|
+
function getTupleOptStart(items, key) {
|
|
22551
|
+
for (let i = items.length - 1;i >= 0; i--) {
|
|
22552
|
+
if (items[i]._zod[key] !== "optional")
|
|
22553
|
+
return i + 1;
|
|
22554
|
+
}
|
|
22555
|
+
return 0;
|
|
22556
|
+
}
|
|
22463
22557
|
function handleTupleResult(result, final, index) {
|
|
22464
22558
|
if (result.issues.length) {
|
|
22465
22559
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
22466
22560
|
}
|
|
22467
22561
|
final.value[index] = result.value;
|
|
22468
22562
|
}
|
|
22563
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
22564
|
+
for (let i = 0;i < items.length; i++) {
|
|
22565
|
+
const r = itemResults[i];
|
|
22566
|
+
const isPresent = i < input.length;
|
|
22567
|
+
if (r.issues.length) {
|
|
22568
|
+
if (!isPresent && i >= optoutStart) {
|
|
22569
|
+
final.value.length = i;
|
|
22570
|
+
break;
|
|
22571
|
+
}
|
|
22572
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
22573
|
+
}
|
|
22574
|
+
final.value[i] = r.value;
|
|
22575
|
+
}
|
|
22576
|
+
for (let i = final.value.length - 1;i >= input.length; i--) {
|
|
22577
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
22578
|
+
final.value.length = i;
|
|
22579
|
+
} else {
|
|
22580
|
+
break;
|
|
22581
|
+
}
|
|
22582
|
+
}
|
|
22583
|
+
return final;
|
|
22584
|
+
}
|
|
22469
22585
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
22470
22586
|
$ZodType.init(inst, def);
|
|
22471
22587
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -22487,19 +22603,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
22487
22603
|
for (const key of values) {
|
|
22488
22604
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
22489
22605
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
22606
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
22607
|
+
if (keyResult instanceof Promise) {
|
|
22608
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
22609
|
+
}
|
|
22610
|
+
if (keyResult.issues.length) {
|
|
22611
|
+
payload.issues.push({
|
|
22612
|
+
code: "invalid_key",
|
|
22613
|
+
origin: "record",
|
|
22614
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
22615
|
+
input: key,
|
|
22616
|
+
path: [key],
|
|
22617
|
+
inst
|
|
22618
|
+
});
|
|
22619
|
+
continue;
|
|
22620
|
+
}
|
|
22621
|
+
const outKey = keyResult.value;
|
|
22490
22622
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
22491
22623
|
if (result instanceof Promise) {
|
|
22492
22624
|
proms.push(result.then((result2) => {
|
|
22493
22625
|
if (result2.issues.length) {
|
|
22494
22626
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
22495
22627
|
}
|
|
22496
|
-
payload.value[
|
|
22628
|
+
payload.value[outKey] = result2.value;
|
|
22497
22629
|
}));
|
|
22498
22630
|
} else {
|
|
22499
22631
|
if (result.issues.length) {
|
|
22500
22632
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
22501
22633
|
}
|
|
22502
|
-
payload.value[
|
|
22634
|
+
payload.value[outKey] = result.value;
|
|
22503
22635
|
}
|
|
22504
22636
|
}
|
|
22505
22637
|
}
|
|
@@ -22523,6 +22655,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
22523
22655
|
for (const key of Reflect.ownKeys(input)) {
|
|
22524
22656
|
if (key === "__proto__")
|
|
22525
22657
|
continue;
|
|
22658
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
22659
|
+
continue;
|
|
22526
22660
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
22527
22661
|
if (keyResult instanceof Promise) {
|
|
22528
22662
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -23166,7 +23300,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
23166
23300
|
});
|
|
23167
23301
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
23168
23302
|
$ZodType.init(inst, def);
|
|
23169
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
23303
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
23304
|
+
const d = def;
|
|
23305
|
+
if (!d._cachedInner)
|
|
23306
|
+
d._cachedInner = def.getter();
|
|
23307
|
+
return d._cachedInner;
|
|
23308
|
+
});
|
|
23170
23309
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
23171
23310
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
23172
23311
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
@@ -23206,7 +23345,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
23206
23345
|
payload.issues.push(issue(_iss));
|
|
23207
23346
|
}
|
|
23208
23347
|
}
|
|
23209
|
-
//
|
|
23348
|
+
// node_modules/zod/v4/locales/index.js
|
|
23210
23349
|
var exports_locales = {};
|
|
23211
23350
|
__export(exports_locales, {
|
|
23212
23351
|
zhTW: () => zh_TW_default,
|
|
@@ -23223,6 +23362,7 @@ __export(exports_locales, {
|
|
|
23223
23362
|
sv: () => sv_default,
|
|
23224
23363
|
sl: () => sl_default,
|
|
23225
23364
|
ru: () => ru_default,
|
|
23365
|
+
ro: () => ro_default,
|
|
23226
23366
|
pt: () => pt_default,
|
|
23227
23367
|
ps: () => ps_default,
|
|
23228
23368
|
pl: () => pl_default,
|
|
@@ -23242,6 +23382,7 @@ __export(exports_locales, {
|
|
|
23242
23382
|
id: () => id_default,
|
|
23243
23383
|
hy: () => hy_default,
|
|
23244
23384
|
hu: () => hu_default,
|
|
23385
|
+
hr: () => hr_default,
|
|
23245
23386
|
he: () => he_default,
|
|
23246
23387
|
frCA: () => fr_CA_default,
|
|
23247
23388
|
fr: () => fr_default,
|
|
@@ -23250,6 +23391,7 @@ __export(exports_locales, {
|
|
|
23250
23391
|
es: () => es_default,
|
|
23251
23392
|
eo: () => eo_default,
|
|
23252
23393
|
en: () => en_default,
|
|
23394
|
+
el: () => el_default,
|
|
23253
23395
|
de: () => de_default,
|
|
23254
23396
|
da: () => da_default,
|
|
23255
23397
|
cs: () => cs_default,
|
|
@@ -23260,7 +23402,7 @@ __export(exports_locales, {
|
|
|
23260
23402
|
ar: () => ar_default
|
|
23261
23403
|
});
|
|
23262
23404
|
|
|
23263
|
-
//
|
|
23405
|
+
// node_modules/zod/v4/locales/ar.js
|
|
23264
23406
|
var error = () => {
|
|
23265
23407
|
const Sizable = {
|
|
23266
23408
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -23366,7 +23508,7 @@ function ar_default() {
|
|
|
23366
23508
|
localeError: error()
|
|
23367
23509
|
};
|
|
23368
23510
|
}
|
|
23369
|
-
//
|
|
23511
|
+
// node_modules/zod/v4/locales/az.js
|
|
23370
23512
|
var error2 = () => {
|
|
23371
23513
|
const Sizable = {
|
|
23372
23514
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -23471,7 +23613,7 @@ function az_default() {
|
|
|
23471
23613
|
localeError: error2()
|
|
23472
23614
|
};
|
|
23473
23615
|
}
|
|
23474
|
-
//
|
|
23616
|
+
// node_modules/zod/v4/locales/be.js
|
|
23475
23617
|
function getBelarusianPlural(count, one, few, many) {
|
|
23476
23618
|
const absCount = Math.abs(count);
|
|
23477
23619
|
const lastDigit = absCount % 10;
|
|
@@ -23627,7 +23769,7 @@ function be_default() {
|
|
|
23627
23769
|
localeError: error3()
|
|
23628
23770
|
};
|
|
23629
23771
|
}
|
|
23630
|
-
//
|
|
23772
|
+
// node_modules/zod/v4/locales/bg.js
|
|
23631
23773
|
var error4 = () => {
|
|
23632
23774
|
const Sizable = {
|
|
23633
23775
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -23747,7 +23889,7 @@ function bg_default() {
|
|
|
23747
23889
|
localeError: error4()
|
|
23748
23890
|
};
|
|
23749
23891
|
}
|
|
23750
|
-
//
|
|
23892
|
+
// node_modules/zod/v4/locales/ca.js
|
|
23751
23893
|
var error5 = () => {
|
|
23752
23894
|
const Sizable = {
|
|
23753
23895
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -23854,7 +23996,7 @@ function ca_default() {
|
|
|
23854
23996
|
localeError: error5()
|
|
23855
23997
|
};
|
|
23856
23998
|
}
|
|
23857
|
-
//
|
|
23999
|
+
// node_modules/zod/v4/locales/cs.js
|
|
23858
24000
|
var error6 = () => {
|
|
23859
24001
|
const Sizable = {
|
|
23860
24002
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -23965,7 +24107,7 @@ function cs_default() {
|
|
|
23965
24107
|
localeError: error6()
|
|
23966
24108
|
};
|
|
23967
24109
|
}
|
|
23968
|
-
//
|
|
24110
|
+
// node_modules/zod/v4/locales/da.js
|
|
23969
24111
|
var error7 = () => {
|
|
23970
24112
|
const Sizable = {
|
|
23971
24113
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -24080,7 +24222,7 @@ function da_default() {
|
|
|
24080
24222
|
localeError: error7()
|
|
24081
24223
|
};
|
|
24082
24224
|
}
|
|
24083
|
-
//
|
|
24225
|
+
// node_modules/zod/v4/locales/de.js
|
|
24084
24226
|
var error8 = () => {
|
|
24085
24227
|
const Sizable = {
|
|
24086
24228
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -24188,8 +24330,117 @@ function de_default() {
|
|
|
24188
24330
|
localeError: error8()
|
|
24189
24331
|
};
|
|
24190
24332
|
}
|
|
24191
|
-
//
|
|
24333
|
+
// node_modules/zod/v4/locales/el.js
|
|
24192
24334
|
var error9 = () => {
|
|
24335
|
+
const Sizable = {
|
|
24336
|
+
string: { unit: "χαρακτήρες", verb: "να έχει" },
|
|
24337
|
+
file: { unit: "bytes", verb: "να έχει" },
|
|
24338
|
+
array: { unit: "στοιχεία", verb: "να έχει" },
|
|
24339
|
+
set: { unit: "στοιχεία", verb: "να έχει" },
|
|
24340
|
+
map: { unit: "καταχωρήσεις", verb: "να έχει" }
|
|
24341
|
+
};
|
|
24342
|
+
function getSizing(origin) {
|
|
24343
|
+
return Sizable[origin] ?? null;
|
|
24344
|
+
}
|
|
24345
|
+
const FormatDictionary = {
|
|
24346
|
+
regex: "είσοδος",
|
|
24347
|
+
email: "διεύθυνση email",
|
|
24348
|
+
url: "URL",
|
|
24349
|
+
emoji: "emoji",
|
|
24350
|
+
uuid: "UUID",
|
|
24351
|
+
uuidv4: "UUIDv4",
|
|
24352
|
+
uuidv6: "UUIDv6",
|
|
24353
|
+
nanoid: "nanoid",
|
|
24354
|
+
guid: "GUID",
|
|
24355
|
+
cuid: "cuid",
|
|
24356
|
+
cuid2: "cuid2",
|
|
24357
|
+
ulid: "ULID",
|
|
24358
|
+
xid: "XID",
|
|
24359
|
+
ksuid: "KSUID",
|
|
24360
|
+
datetime: "ISO ημερομηνία και ώρα",
|
|
24361
|
+
date: "ISO ημερομηνία",
|
|
24362
|
+
time: "ISO ώρα",
|
|
24363
|
+
duration: "ISO διάρκεια",
|
|
24364
|
+
ipv4: "διεύθυνση IPv4",
|
|
24365
|
+
ipv6: "διεύθυνση IPv6",
|
|
24366
|
+
mac: "διεύθυνση MAC",
|
|
24367
|
+
cidrv4: "εύρος IPv4",
|
|
24368
|
+
cidrv6: "εύρος IPv6",
|
|
24369
|
+
base64: "συμβολοσειρά κωδικοποιημένη σε base64",
|
|
24370
|
+
base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
|
|
24371
|
+
json_string: "συμβολοσειρά JSON",
|
|
24372
|
+
e164: "αριθμός E.164",
|
|
24373
|
+
jwt: "JWT",
|
|
24374
|
+
template_literal: "είσοδος"
|
|
24375
|
+
};
|
|
24376
|
+
const TypeDictionary = {
|
|
24377
|
+
nan: "NaN"
|
|
24378
|
+
};
|
|
24379
|
+
return (issue2) => {
|
|
24380
|
+
switch (issue2.code) {
|
|
24381
|
+
case "invalid_type": {
|
|
24382
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
24383
|
+
const receivedType = parsedType(issue2.input);
|
|
24384
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
24385
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
24386
|
+
return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
|
|
24387
|
+
}
|
|
24388
|
+
return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
|
|
24389
|
+
}
|
|
24390
|
+
case "invalid_value":
|
|
24391
|
+
if (issue2.values.length === 1)
|
|
24392
|
+
return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
|
|
24393
|
+
return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
|
|
24394
|
+
case "too_big": {
|
|
24395
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
24396
|
+
const sizing = getSizing(issue2.origin);
|
|
24397
|
+
if (sizing)
|
|
24398
|
+
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
|
|
24399
|
+
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
|
|
24400
|
+
}
|
|
24401
|
+
case "too_small": {
|
|
24402
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
24403
|
+
const sizing = getSizing(issue2.origin);
|
|
24404
|
+
if (sizing) {
|
|
24405
|
+
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
24406
|
+
}
|
|
24407
|
+
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
|
|
24408
|
+
}
|
|
24409
|
+
case "invalid_format": {
|
|
24410
|
+
const _issue = issue2;
|
|
24411
|
+
if (_issue.format === "starts_with") {
|
|
24412
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
|
|
24413
|
+
}
|
|
24414
|
+
if (_issue.format === "ends_with")
|
|
24415
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
|
|
24416
|
+
if (_issue.format === "includes")
|
|
24417
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
|
|
24418
|
+
if (_issue.format === "regex")
|
|
24419
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
|
|
24420
|
+
return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
24421
|
+
}
|
|
24422
|
+
case "not_multiple_of":
|
|
24423
|
+
return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
|
|
24424
|
+
case "unrecognized_keys":
|
|
24425
|
+
return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
|
|
24426
|
+
case "invalid_key":
|
|
24427
|
+
return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
|
|
24428
|
+
case "invalid_union":
|
|
24429
|
+
return "Μη έγκυρη είσοδος";
|
|
24430
|
+
case "invalid_element":
|
|
24431
|
+
return `Μη έγκυρη τιμή στο ${issue2.origin}`;
|
|
24432
|
+
default:
|
|
24433
|
+
return `Μη έγκυρη είσοδος`;
|
|
24434
|
+
}
|
|
24435
|
+
};
|
|
24436
|
+
};
|
|
24437
|
+
function el_default() {
|
|
24438
|
+
return {
|
|
24439
|
+
localeError: error9()
|
|
24440
|
+
};
|
|
24441
|
+
}
|
|
24442
|
+
// node_modules/zod/v4/locales/en.js
|
|
24443
|
+
var error10 = () => {
|
|
24193
24444
|
const Sizable = {
|
|
24194
24445
|
string: { unit: "characters", verb: "to have" },
|
|
24195
24446
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -24281,6 +24532,10 @@ var error9 = () => {
|
|
|
24281
24532
|
case "invalid_key":
|
|
24282
24533
|
return `Invalid key in ${issue2.origin}`;
|
|
24283
24534
|
case "invalid_union":
|
|
24535
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
24536
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
24537
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
24538
|
+
}
|
|
24284
24539
|
return "Invalid input";
|
|
24285
24540
|
case "invalid_element":
|
|
24286
24541
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -24291,11 +24546,11 @@ var error9 = () => {
|
|
|
24291
24546
|
};
|
|
24292
24547
|
function en_default() {
|
|
24293
24548
|
return {
|
|
24294
|
-
localeError:
|
|
24549
|
+
localeError: error10()
|
|
24295
24550
|
};
|
|
24296
24551
|
}
|
|
24297
|
-
//
|
|
24298
|
-
var
|
|
24552
|
+
// node_modules/zod/v4/locales/eo.js
|
|
24553
|
+
var error11 = () => {
|
|
24299
24554
|
const Sizable = {
|
|
24300
24555
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
24301
24556
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -24400,11 +24655,11 @@ var error10 = () => {
|
|
|
24400
24655
|
};
|
|
24401
24656
|
function eo_default() {
|
|
24402
24657
|
return {
|
|
24403
|
-
localeError:
|
|
24658
|
+
localeError: error11()
|
|
24404
24659
|
};
|
|
24405
24660
|
}
|
|
24406
|
-
//
|
|
24407
|
-
var
|
|
24661
|
+
// node_modules/zod/v4/locales/es.js
|
|
24662
|
+
var error12 = () => {
|
|
24408
24663
|
const Sizable = {
|
|
24409
24664
|
string: { unit: "caracteres", verb: "tener" },
|
|
24410
24665
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -24532,11 +24787,11 @@ var error11 = () => {
|
|
|
24532
24787
|
};
|
|
24533
24788
|
function es_default() {
|
|
24534
24789
|
return {
|
|
24535
|
-
localeError:
|
|
24790
|
+
localeError: error12()
|
|
24536
24791
|
};
|
|
24537
24792
|
}
|
|
24538
|
-
//
|
|
24539
|
-
var
|
|
24793
|
+
// node_modules/zod/v4/locales/fa.js
|
|
24794
|
+
var error13 = () => {
|
|
24540
24795
|
const Sizable = {
|
|
24541
24796
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
24542
24797
|
file: { unit: "بایت", verb: "داشته باشد" },
|
|
@@ -24646,11 +24901,11 @@ var error12 = () => {
|
|
|
24646
24901
|
};
|
|
24647
24902
|
function fa_default() {
|
|
24648
24903
|
return {
|
|
24649
|
-
localeError:
|
|
24904
|
+
localeError: error13()
|
|
24650
24905
|
};
|
|
24651
24906
|
}
|
|
24652
|
-
//
|
|
24653
|
-
var
|
|
24907
|
+
// node_modules/zod/v4/locales/fi.js
|
|
24908
|
+
var error14 = () => {
|
|
24654
24909
|
const Sizable = {
|
|
24655
24910
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
24656
24911
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -24758,11 +25013,11 @@ var error13 = () => {
|
|
|
24758
25013
|
};
|
|
24759
25014
|
function fi_default() {
|
|
24760
25015
|
return {
|
|
24761
|
-
localeError:
|
|
25016
|
+
localeError: error14()
|
|
24762
25017
|
};
|
|
24763
25018
|
}
|
|
24764
|
-
//
|
|
24765
|
-
var
|
|
25019
|
+
// node_modules/zod/v4/locales/fr.js
|
|
25020
|
+
var error15 = () => {
|
|
24766
25021
|
const Sizable = {
|
|
24767
25022
|
string: { unit: "caractères", verb: "avoir" },
|
|
24768
25023
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -24803,9 +25058,27 @@ var error14 = () => {
|
|
|
24803
25058
|
template_literal: "entrée"
|
|
24804
25059
|
};
|
|
24805
25060
|
const TypeDictionary = {
|
|
24806
|
-
|
|
25061
|
+
string: "chaîne",
|
|
24807
25062
|
number: "nombre",
|
|
24808
|
-
|
|
25063
|
+
int: "entier",
|
|
25064
|
+
boolean: "booléen",
|
|
25065
|
+
bigint: "grand entier",
|
|
25066
|
+
symbol: "symbole",
|
|
25067
|
+
undefined: "indéfini",
|
|
25068
|
+
null: "null",
|
|
25069
|
+
never: "jamais",
|
|
25070
|
+
void: "vide",
|
|
25071
|
+
date: "date",
|
|
25072
|
+
array: "tableau",
|
|
25073
|
+
object: "objet",
|
|
25074
|
+
tuple: "tuple",
|
|
25075
|
+
record: "enregistrement",
|
|
25076
|
+
map: "carte",
|
|
25077
|
+
set: "ensemble",
|
|
25078
|
+
file: "fichier",
|
|
25079
|
+
nonoptional: "non-optionnel",
|
|
25080
|
+
nan: "NaN",
|
|
25081
|
+
function: "fonction"
|
|
24809
25082
|
};
|
|
24810
25083
|
return (issue2) => {
|
|
24811
25084
|
switch (issue2.code) {
|
|
@@ -24826,16 +25099,15 @@ var error14 = () => {
|
|
|
24826
25099
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
24827
25100
|
const sizing = getSizing(issue2.origin);
|
|
24828
25101
|
if (sizing)
|
|
24829
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
24830
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
25102
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
25103
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
24831
25104
|
}
|
|
24832
25105
|
case "too_small": {
|
|
24833
25106
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
24834
25107
|
const sizing = getSizing(issue2.origin);
|
|
24835
|
-
if (sizing)
|
|
24836
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
24837
|
-
}
|
|
24838
|
-
return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
|
|
25108
|
+
if (sizing)
|
|
25109
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
25110
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
|
|
24839
25111
|
}
|
|
24840
25112
|
case "invalid_format": {
|
|
24841
25113
|
const _issue = issue2;
|
|
@@ -24866,11 +25138,11 @@ var error14 = () => {
|
|
|
24866
25138
|
};
|
|
24867
25139
|
function fr_default() {
|
|
24868
25140
|
return {
|
|
24869
|
-
localeError:
|
|
25141
|
+
localeError: error15()
|
|
24870
25142
|
};
|
|
24871
25143
|
}
|
|
24872
|
-
//
|
|
24873
|
-
var
|
|
25144
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
25145
|
+
var error16 = () => {
|
|
24874
25146
|
const Sizable = {
|
|
24875
25147
|
string: { unit: "caractères", verb: "avoir" },
|
|
24876
25148
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -24973,11 +25245,11 @@ var error15 = () => {
|
|
|
24973
25245
|
};
|
|
24974
25246
|
function fr_CA_default() {
|
|
24975
25247
|
return {
|
|
24976
|
-
localeError:
|
|
25248
|
+
localeError: error16()
|
|
24977
25249
|
};
|
|
24978
25250
|
}
|
|
24979
|
-
//
|
|
24980
|
-
var
|
|
25251
|
+
// node_modules/zod/v4/locales/he.js
|
|
25252
|
+
var error17 = () => {
|
|
24981
25253
|
const TypeNames = {
|
|
24982
25254
|
string: { label: "מחרוזת", gender: "f" },
|
|
24983
25255
|
number: { label: "מספר", gender: "m" },
|
|
@@ -25166,23 +25438,23 @@ var error16 = () => {
|
|
|
25166
25438
|
};
|
|
25167
25439
|
function he_default() {
|
|
25168
25440
|
return {
|
|
25169
|
-
localeError:
|
|
25441
|
+
localeError: error17()
|
|
25170
25442
|
};
|
|
25171
25443
|
}
|
|
25172
|
-
//
|
|
25173
|
-
var
|
|
25444
|
+
// node_modules/zod/v4/locales/hr.js
|
|
25445
|
+
var error18 = () => {
|
|
25174
25446
|
const Sizable = {
|
|
25175
|
-
string: { unit: "
|
|
25176
|
-
file: { unit: "
|
|
25177
|
-
array: { unit: "
|
|
25178
|
-
set: { unit: "
|
|
25447
|
+
string: { unit: "znakova", verb: "imati" },
|
|
25448
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
25449
|
+
array: { unit: "stavki", verb: "imati" },
|
|
25450
|
+
set: { unit: "stavki", verb: "imati" }
|
|
25179
25451
|
};
|
|
25180
25452
|
function getSizing(origin) {
|
|
25181
25453
|
return Sizable[origin] ?? null;
|
|
25182
25454
|
}
|
|
25183
25455
|
const FormatDictionary = {
|
|
25184
|
-
regex: "
|
|
25185
|
-
email: "email
|
|
25456
|
+
regex: "unos",
|
|
25457
|
+
email: "email adresa",
|
|
25186
25458
|
url: "URL",
|
|
25187
25459
|
emoji: "emoji",
|
|
25188
25460
|
uuid: "UUID",
|
|
@@ -25195,25 +25467,37 @@ var error17 = () => {
|
|
|
25195
25467
|
ulid: "ULID",
|
|
25196
25468
|
xid: "XID",
|
|
25197
25469
|
ksuid: "KSUID",
|
|
25198
|
-
datetime: "ISO
|
|
25199
|
-
date: "ISO
|
|
25200
|
-
time: "ISO
|
|
25201
|
-
duration: "ISO
|
|
25202
|
-
ipv4: "IPv4
|
|
25203
|
-
ipv6: "IPv6
|
|
25204
|
-
cidrv4: "IPv4
|
|
25205
|
-
cidrv6: "IPv6
|
|
25206
|
-
base64: "base64
|
|
25207
|
-
base64url: "base64url
|
|
25208
|
-
json_string: "JSON
|
|
25209
|
-
e164: "E.164
|
|
25470
|
+
datetime: "ISO datum i vrijeme",
|
|
25471
|
+
date: "ISO datum",
|
|
25472
|
+
time: "ISO vrijeme",
|
|
25473
|
+
duration: "ISO trajanje",
|
|
25474
|
+
ipv4: "IPv4 adresa",
|
|
25475
|
+
ipv6: "IPv6 adresa",
|
|
25476
|
+
cidrv4: "IPv4 raspon",
|
|
25477
|
+
cidrv6: "IPv6 raspon",
|
|
25478
|
+
base64: "base64 kodirani tekst",
|
|
25479
|
+
base64url: "base64url kodirani tekst",
|
|
25480
|
+
json_string: "JSON tekst",
|
|
25481
|
+
e164: "E.164 broj",
|
|
25210
25482
|
jwt: "JWT",
|
|
25211
|
-
template_literal: "
|
|
25483
|
+
template_literal: "unos"
|
|
25212
25484
|
};
|
|
25213
25485
|
const TypeDictionary = {
|
|
25214
25486
|
nan: "NaN",
|
|
25215
|
-
|
|
25216
|
-
|
|
25487
|
+
string: "tekst",
|
|
25488
|
+
number: "broj",
|
|
25489
|
+
boolean: "boolean",
|
|
25490
|
+
array: "niz",
|
|
25491
|
+
object: "objekt",
|
|
25492
|
+
set: "skup",
|
|
25493
|
+
file: "datoteka",
|
|
25494
|
+
date: "datum",
|
|
25495
|
+
bigint: "bigint",
|
|
25496
|
+
symbol: "simbol",
|
|
25497
|
+
undefined: "undefined",
|
|
25498
|
+
null: "null",
|
|
25499
|
+
function: "funkcija",
|
|
25500
|
+
map: "mapa"
|
|
25217
25501
|
};
|
|
25218
25502
|
return (issue2) => {
|
|
25219
25503
|
switch (issue2.code) {
|
|
@@ -25222,19 +25506,129 @@ var error17 = () => {
|
|
|
25222
25506
|
const receivedType = parsedType(issue2.input);
|
|
25223
25507
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
25224
25508
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
25225
|
-
return
|
|
25509
|
+
return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
25226
25510
|
}
|
|
25227
|
-
return
|
|
25511
|
+
return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
|
|
25228
25512
|
}
|
|
25229
25513
|
case "invalid_value":
|
|
25230
25514
|
if (issue2.values.length === 1)
|
|
25231
|
-
return
|
|
25232
|
-
return
|
|
25515
|
+
return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
25516
|
+
return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
25233
25517
|
case "too_big": {
|
|
25234
25518
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
25235
25519
|
const sizing = getSizing(issue2.origin);
|
|
25520
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
25236
25521
|
if (sizing)
|
|
25237
|
-
return `
|
|
25522
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
25523
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
25524
|
+
}
|
|
25525
|
+
case "too_small": {
|
|
25526
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
25527
|
+
const sizing = getSizing(issue2.origin);
|
|
25528
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
25529
|
+
if (sizing) {
|
|
25530
|
+
return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
25531
|
+
}
|
|
25532
|
+
return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
25533
|
+
}
|
|
25534
|
+
case "invalid_format": {
|
|
25535
|
+
const _issue = issue2;
|
|
25536
|
+
if (_issue.format === "starts_with")
|
|
25537
|
+
return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
|
|
25538
|
+
if (_issue.format === "ends_with")
|
|
25539
|
+
return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
|
|
25540
|
+
if (_issue.format === "includes")
|
|
25541
|
+
return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
|
|
25542
|
+
if (_issue.format === "regex")
|
|
25543
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
25544
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
25545
|
+
}
|
|
25546
|
+
case "not_multiple_of":
|
|
25547
|
+
return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
|
|
25548
|
+
case "unrecognized_keys":
|
|
25549
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
|
|
25550
|
+
case "invalid_key":
|
|
25551
|
+
return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
25552
|
+
case "invalid_union":
|
|
25553
|
+
return "Neispravan unos";
|
|
25554
|
+
case "invalid_element":
|
|
25555
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
25556
|
+
default:
|
|
25557
|
+
return `Neispravan unos`;
|
|
25558
|
+
}
|
|
25559
|
+
};
|
|
25560
|
+
};
|
|
25561
|
+
function hr_default() {
|
|
25562
|
+
return {
|
|
25563
|
+
localeError: error18()
|
|
25564
|
+
};
|
|
25565
|
+
}
|
|
25566
|
+
// node_modules/zod/v4/locales/hu.js
|
|
25567
|
+
var error19 = () => {
|
|
25568
|
+
const Sizable = {
|
|
25569
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
25570
|
+
file: { unit: "byte", verb: "legyen" },
|
|
25571
|
+
array: { unit: "elem", verb: "legyen" },
|
|
25572
|
+
set: { unit: "elem", verb: "legyen" }
|
|
25573
|
+
};
|
|
25574
|
+
function getSizing(origin) {
|
|
25575
|
+
return Sizable[origin] ?? null;
|
|
25576
|
+
}
|
|
25577
|
+
const FormatDictionary = {
|
|
25578
|
+
regex: "bemenet",
|
|
25579
|
+
email: "email cím",
|
|
25580
|
+
url: "URL",
|
|
25581
|
+
emoji: "emoji",
|
|
25582
|
+
uuid: "UUID",
|
|
25583
|
+
uuidv4: "UUIDv4",
|
|
25584
|
+
uuidv6: "UUIDv6",
|
|
25585
|
+
nanoid: "nanoid",
|
|
25586
|
+
guid: "GUID",
|
|
25587
|
+
cuid: "cuid",
|
|
25588
|
+
cuid2: "cuid2",
|
|
25589
|
+
ulid: "ULID",
|
|
25590
|
+
xid: "XID",
|
|
25591
|
+
ksuid: "KSUID",
|
|
25592
|
+
datetime: "ISO időbélyeg",
|
|
25593
|
+
date: "ISO dátum",
|
|
25594
|
+
time: "ISO idő",
|
|
25595
|
+
duration: "ISO időintervallum",
|
|
25596
|
+
ipv4: "IPv4 cím",
|
|
25597
|
+
ipv6: "IPv6 cím",
|
|
25598
|
+
cidrv4: "IPv4 tartomány",
|
|
25599
|
+
cidrv6: "IPv6 tartomány",
|
|
25600
|
+
base64: "base64-kódolt string",
|
|
25601
|
+
base64url: "base64url-kódolt string",
|
|
25602
|
+
json_string: "JSON string",
|
|
25603
|
+
e164: "E.164 szám",
|
|
25604
|
+
jwt: "JWT",
|
|
25605
|
+
template_literal: "bemenet"
|
|
25606
|
+
};
|
|
25607
|
+
const TypeDictionary = {
|
|
25608
|
+
nan: "NaN",
|
|
25609
|
+
number: "szám",
|
|
25610
|
+
array: "tömb"
|
|
25611
|
+
};
|
|
25612
|
+
return (issue2) => {
|
|
25613
|
+
switch (issue2.code) {
|
|
25614
|
+
case "invalid_type": {
|
|
25615
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
25616
|
+
const receivedType = parsedType(issue2.input);
|
|
25617
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
25618
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
25619
|
+
return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
|
|
25620
|
+
}
|
|
25621
|
+
return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
|
|
25622
|
+
}
|
|
25623
|
+
case "invalid_value":
|
|
25624
|
+
if (issue2.values.length === 1)
|
|
25625
|
+
return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
|
|
25626
|
+
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;
|
|
25627
|
+
case "too_big": {
|
|
25628
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
25629
|
+
const sizing = getSizing(issue2.origin);
|
|
25630
|
+
if (sizing)
|
|
25631
|
+
return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
25238
25632
|
return `Túl nagy: a bemeneti érték ${issue2.origin ?? "érték"} túl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
25239
25633
|
}
|
|
25240
25634
|
case "too_small": {
|
|
@@ -25274,10 +25668,10 @@ var error17 = () => {
|
|
|
25274
25668
|
};
|
|
25275
25669
|
function hu_default() {
|
|
25276
25670
|
return {
|
|
25277
|
-
localeError:
|
|
25671
|
+
localeError: error19()
|
|
25278
25672
|
};
|
|
25279
25673
|
}
|
|
25280
|
-
//
|
|
25674
|
+
// node_modules/zod/v4/locales/hy.js
|
|
25281
25675
|
function getArmenianPlural(count, one, many) {
|
|
25282
25676
|
return Math.abs(count) === 1 ? one : many;
|
|
25283
25677
|
}
|
|
@@ -25288,7 +25682,7 @@ function withDefiniteArticle(word) {
|
|
|
25288
25682
|
const lastChar = word[word.length - 1];
|
|
25289
25683
|
return word + (vowels.includes(lastChar) ? "ն" : "ը");
|
|
25290
25684
|
}
|
|
25291
|
-
var
|
|
25685
|
+
var error20 = () => {
|
|
25292
25686
|
const Sizable = {
|
|
25293
25687
|
string: {
|
|
25294
25688
|
unit: {
|
|
@@ -25421,11 +25815,11 @@ var error18 = () => {
|
|
|
25421
25815
|
};
|
|
25422
25816
|
function hy_default() {
|
|
25423
25817
|
return {
|
|
25424
|
-
localeError:
|
|
25818
|
+
localeError: error20()
|
|
25425
25819
|
};
|
|
25426
25820
|
}
|
|
25427
|
-
//
|
|
25428
|
-
var
|
|
25821
|
+
// node_modules/zod/v4/locales/id.js
|
|
25822
|
+
var error21 = () => {
|
|
25429
25823
|
const Sizable = {
|
|
25430
25824
|
string: { unit: "karakter", verb: "memiliki" },
|
|
25431
25825
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -25527,11 +25921,11 @@ var error19 = () => {
|
|
|
25527
25921
|
};
|
|
25528
25922
|
function id_default() {
|
|
25529
25923
|
return {
|
|
25530
|
-
localeError:
|
|
25924
|
+
localeError: error21()
|
|
25531
25925
|
};
|
|
25532
25926
|
}
|
|
25533
|
-
//
|
|
25534
|
-
var
|
|
25927
|
+
// node_modules/zod/v4/locales/is.js
|
|
25928
|
+
var error22 = () => {
|
|
25535
25929
|
const Sizable = {
|
|
25536
25930
|
string: { unit: "stafi", verb: "að hafa" },
|
|
25537
25931
|
file: { unit: "bæti", verb: "að hafa" },
|
|
@@ -25636,11 +26030,11 @@ var error20 = () => {
|
|
|
25636
26030
|
};
|
|
25637
26031
|
function is_default() {
|
|
25638
26032
|
return {
|
|
25639
|
-
localeError:
|
|
26033
|
+
localeError: error22()
|
|
25640
26034
|
};
|
|
25641
26035
|
}
|
|
25642
|
-
//
|
|
25643
|
-
var
|
|
26036
|
+
// node_modules/zod/v4/locales/it.js
|
|
26037
|
+
var error23 = () => {
|
|
25644
26038
|
const Sizable = {
|
|
25645
26039
|
string: { unit: "caratteri", verb: "avere" },
|
|
25646
26040
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -25725,7 +26119,7 @@ var error21 = () => {
|
|
|
25725
26119
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
25726
26120
|
if (_issue.format === "regex")
|
|
25727
26121
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
25728
|
-
return `
|
|
26122
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
25729
26123
|
}
|
|
25730
26124
|
case "not_multiple_of":
|
|
25731
26125
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -25744,11 +26138,11 @@ var error21 = () => {
|
|
|
25744
26138
|
};
|
|
25745
26139
|
function it_default() {
|
|
25746
26140
|
return {
|
|
25747
|
-
localeError:
|
|
26141
|
+
localeError: error23()
|
|
25748
26142
|
};
|
|
25749
26143
|
}
|
|
25750
|
-
//
|
|
25751
|
-
var
|
|
26144
|
+
// node_modules/zod/v4/locales/ja.js
|
|
26145
|
+
var error24 = () => {
|
|
25752
26146
|
const Sizable = {
|
|
25753
26147
|
string: { unit: "文字", verb: "である" },
|
|
25754
26148
|
file: { unit: "バイト", verb: "である" },
|
|
@@ -25851,11 +26245,11 @@ var error22 = () => {
|
|
|
25851
26245
|
};
|
|
25852
26246
|
function ja_default() {
|
|
25853
26247
|
return {
|
|
25854
|
-
localeError:
|
|
26248
|
+
localeError: error24()
|
|
25855
26249
|
};
|
|
25856
26250
|
}
|
|
25857
|
-
//
|
|
25858
|
-
var
|
|
26251
|
+
// node_modules/zod/v4/locales/ka.js
|
|
26252
|
+
var error25 = () => {
|
|
25859
26253
|
const Sizable = {
|
|
25860
26254
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
25861
26255
|
file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
|
|
@@ -25888,9 +26282,9 @@ var error23 = () => {
|
|
|
25888
26282
|
ipv6: "IPv6 მისამართი",
|
|
25889
26283
|
cidrv4: "IPv4 დიაპაზონი",
|
|
25890
26284
|
cidrv6: "IPv6 დიაპაზონი",
|
|
25891
|
-
base64: "base64-კოდირებული
|
|
25892
|
-
base64url: "base64url-კოდირებული
|
|
25893
|
-
json_string: "JSON
|
|
26285
|
+
base64: "base64-კოდირებული ველი",
|
|
26286
|
+
base64url: "base64url-კოდირებული ველი",
|
|
26287
|
+
json_string: "JSON ველი",
|
|
25894
26288
|
e164: "E.164 ნომერი",
|
|
25895
26289
|
jwt: "JWT",
|
|
25896
26290
|
template_literal: "შეყვანა"
|
|
@@ -25898,7 +26292,7 @@ var error23 = () => {
|
|
|
25898
26292
|
const TypeDictionary = {
|
|
25899
26293
|
nan: "NaN",
|
|
25900
26294
|
number: "რიცხვი",
|
|
25901
|
-
string: "
|
|
26295
|
+
string: "ველი",
|
|
25902
26296
|
boolean: "ბულეანი",
|
|
25903
26297
|
function: "ფუნქცია",
|
|
25904
26298
|
array: "მასივი"
|
|
@@ -25936,14 +26330,14 @@ var error23 = () => {
|
|
|
25936
26330
|
case "invalid_format": {
|
|
25937
26331
|
const _issue = issue2;
|
|
25938
26332
|
if (_issue.format === "starts_with") {
|
|
25939
|
-
return `არასწორი
|
|
26333
|
+
return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
|
|
25940
26334
|
}
|
|
25941
26335
|
if (_issue.format === "ends_with")
|
|
25942
|
-
return `არასწორი
|
|
26336
|
+
return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
|
|
25943
26337
|
if (_issue.format === "includes")
|
|
25944
|
-
return `არასწორი
|
|
26338
|
+
return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
|
|
25945
26339
|
if (_issue.format === "regex")
|
|
25946
|
-
return `არასწორი
|
|
26340
|
+
return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
|
|
25947
26341
|
return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
25948
26342
|
}
|
|
25949
26343
|
case "not_multiple_of":
|
|
@@ -25963,11 +26357,11 @@ var error23 = () => {
|
|
|
25963
26357
|
};
|
|
25964
26358
|
function ka_default() {
|
|
25965
26359
|
return {
|
|
25966
|
-
localeError:
|
|
26360
|
+
localeError: error25()
|
|
25967
26361
|
};
|
|
25968
26362
|
}
|
|
25969
|
-
//
|
|
25970
|
-
var
|
|
26363
|
+
// node_modules/zod/v4/locales/km.js
|
|
26364
|
+
var error26 = () => {
|
|
25971
26365
|
const Sizable = {
|
|
25972
26366
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
25973
26367
|
file: { unit: "បៃ", verb: "គួរមាន" },
|
|
@@ -26073,16 +26467,16 @@ var error24 = () => {
|
|
|
26073
26467
|
};
|
|
26074
26468
|
function km_default() {
|
|
26075
26469
|
return {
|
|
26076
|
-
localeError:
|
|
26470
|
+
localeError: error26()
|
|
26077
26471
|
};
|
|
26078
26472
|
}
|
|
26079
26473
|
|
|
26080
|
-
//
|
|
26474
|
+
// node_modules/zod/v4/locales/kh.js
|
|
26081
26475
|
function kh_default() {
|
|
26082
26476
|
return km_default();
|
|
26083
26477
|
}
|
|
26084
|
-
//
|
|
26085
|
-
var
|
|
26478
|
+
// node_modules/zod/v4/locales/ko.js
|
|
26479
|
+
var error27 = () => {
|
|
26086
26480
|
const Sizable = {
|
|
26087
26481
|
string: { unit: "문자", verb: "to have" },
|
|
26088
26482
|
file: { unit: "바이트", verb: "to have" },
|
|
@@ -26189,10 +26583,10 @@ var error25 = () => {
|
|
|
26189
26583
|
};
|
|
26190
26584
|
function ko_default() {
|
|
26191
26585
|
return {
|
|
26192
|
-
localeError:
|
|
26586
|
+
localeError: error27()
|
|
26193
26587
|
};
|
|
26194
26588
|
}
|
|
26195
|
-
//
|
|
26589
|
+
// node_modules/zod/v4/locales/lt.js
|
|
26196
26590
|
var capitalizeFirstCharacter = (text) => {
|
|
26197
26591
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
26198
26592
|
};
|
|
@@ -26206,7 +26600,7 @@ function getUnitTypeFromNumber(number2) {
|
|
|
26206
26600
|
return "one";
|
|
26207
26601
|
return "few";
|
|
26208
26602
|
}
|
|
26209
|
-
var
|
|
26603
|
+
var error28 = () => {
|
|
26210
26604
|
const Sizable = {
|
|
26211
26605
|
string: {
|
|
26212
26606
|
unit: {
|
|
@@ -26392,11 +26786,11 @@ var error26 = () => {
|
|
|
26392
26786
|
};
|
|
26393
26787
|
function lt_default() {
|
|
26394
26788
|
return {
|
|
26395
|
-
localeError:
|
|
26789
|
+
localeError: error28()
|
|
26396
26790
|
};
|
|
26397
26791
|
}
|
|
26398
|
-
//
|
|
26399
|
-
var
|
|
26792
|
+
// node_modules/zod/v4/locales/mk.js
|
|
26793
|
+
var error29 = () => {
|
|
26400
26794
|
const Sizable = {
|
|
26401
26795
|
string: { unit: "знаци", verb: "да имаат" },
|
|
26402
26796
|
file: { unit: "бајти", verb: "да имаат" },
|
|
@@ -26501,11 +26895,11 @@ var error27 = () => {
|
|
|
26501
26895
|
};
|
|
26502
26896
|
function mk_default() {
|
|
26503
26897
|
return {
|
|
26504
|
-
localeError:
|
|
26898
|
+
localeError: error29()
|
|
26505
26899
|
};
|
|
26506
26900
|
}
|
|
26507
|
-
//
|
|
26508
|
-
var
|
|
26901
|
+
// node_modules/zod/v4/locales/ms.js
|
|
26902
|
+
var error30 = () => {
|
|
26509
26903
|
const Sizable = {
|
|
26510
26904
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
26511
26905
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -26608,11 +27002,11 @@ var error28 = () => {
|
|
|
26608
27002
|
};
|
|
26609
27003
|
function ms_default() {
|
|
26610
27004
|
return {
|
|
26611
|
-
localeError:
|
|
27005
|
+
localeError: error30()
|
|
26612
27006
|
};
|
|
26613
27007
|
}
|
|
26614
|
-
//
|
|
26615
|
-
var
|
|
27008
|
+
// node_modules/zod/v4/locales/nl.js
|
|
27009
|
+
var error31 = () => {
|
|
26616
27010
|
const Sizable = {
|
|
26617
27011
|
string: { unit: "tekens", verb: "heeft" },
|
|
26618
27012
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -26718,11 +27112,11 @@ var error29 = () => {
|
|
|
26718
27112
|
};
|
|
26719
27113
|
function nl_default() {
|
|
26720
27114
|
return {
|
|
26721
|
-
localeError:
|
|
27115
|
+
localeError: error31()
|
|
26722
27116
|
};
|
|
26723
27117
|
}
|
|
26724
|
-
//
|
|
26725
|
-
var
|
|
27118
|
+
// node_modules/zod/v4/locales/no.js
|
|
27119
|
+
var error32 = () => {
|
|
26726
27120
|
const Sizable = {
|
|
26727
27121
|
string: { unit: "tegn", verb: "å ha" },
|
|
26728
27122
|
file: { unit: "bytes", verb: "å ha" },
|
|
@@ -26826,11 +27220,11 @@ var error30 = () => {
|
|
|
26826
27220
|
};
|
|
26827
27221
|
function no_default() {
|
|
26828
27222
|
return {
|
|
26829
|
-
localeError:
|
|
27223
|
+
localeError: error32()
|
|
26830
27224
|
};
|
|
26831
27225
|
}
|
|
26832
|
-
//
|
|
26833
|
-
var
|
|
27226
|
+
// node_modules/zod/v4/locales/ota.js
|
|
27227
|
+
var error33 = () => {
|
|
26834
27228
|
const Sizable = {
|
|
26835
27229
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
26836
27230
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
@@ -26935,11 +27329,11 @@ var error31 = () => {
|
|
|
26935
27329
|
};
|
|
26936
27330
|
function ota_default() {
|
|
26937
27331
|
return {
|
|
26938
|
-
localeError:
|
|
27332
|
+
localeError: error33()
|
|
26939
27333
|
};
|
|
26940
27334
|
}
|
|
26941
|
-
//
|
|
26942
|
-
var
|
|
27335
|
+
// node_modules/zod/v4/locales/ps.js
|
|
27336
|
+
var error34 = () => {
|
|
26943
27337
|
const Sizable = {
|
|
26944
27338
|
string: { unit: "توکي", verb: "ولري" },
|
|
26945
27339
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -27049,11 +27443,11 @@ var error32 = () => {
|
|
|
27049
27443
|
};
|
|
27050
27444
|
function ps_default() {
|
|
27051
27445
|
return {
|
|
27052
|
-
localeError:
|
|
27446
|
+
localeError: error34()
|
|
27053
27447
|
};
|
|
27054
27448
|
}
|
|
27055
|
-
//
|
|
27056
|
-
var
|
|
27449
|
+
// node_modules/zod/v4/locales/pl.js
|
|
27450
|
+
var error35 = () => {
|
|
27057
27451
|
const Sizable = {
|
|
27058
27452
|
string: { unit: "znaków", verb: "mieć" },
|
|
27059
27453
|
file: { unit: "bajtów", verb: "mieć" },
|
|
@@ -27158,11 +27552,11 @@ var error33 = () => {
|
|
|
27158
27552
|
};
|
|
27159
27553
|
function pl_default() {
|
|
27160
27554
|
return {
|
|
27161
|
-
localeError:
|
|
27555
|
+
localeError: error35()
|
|
27162
27556
|
};
|
|
27163
27557
|
}
|
|
27164
|
-
//
|
|
27165
|
-
var
|
|
27558
|
+
// node_modules/zod/v4/locales/pt.js
|
|
27559
|
+
var error36 = () => {
|
|
27166
27560
|
const Sizable = {
|
|
27167
27561
|
string: { unit: "caracteres", verb: "ter" },
|
|
27168
27562
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -27266,10 +27660,129 @@ var error34 = () => {
|
|
|
27266
27660
|
};
|
|
27267
27661
|
function pt_default() {
|
|
27268
27662
|
return {
|
|
27269
|
-
localeError:
|
|
27663
|
+
localeError: error36()
|
|
27664
|
+
};
|
|
27665
|
+
}
|
|
27666
|
+
// node_modules/zod/v4/locales/ro.js
|
|
27667
|
+
var error37 = () => {
|
|
27668
|
+
const Sizable = {
|
|
27669
|
+
string: { unit: "caractere", verb: "să aibă" },
|
|
27670
|
+
file: { unit: "octeți", verb: "să aibă" },
|
|
27671
|
+
array: { unit: "elemente", verb: "să aibă" },
|
|
27672
|
+
set: { unit: "elemente", verb: "să aibă" },
|
|
27673
|
+
map: { unit: "intrări", verb: "să aibă" }
|
|
27674
|
+
};
|
|
27675
|
+
function getSizing(origin) {
|
|
27676
|
+
return Sizable[origin] ?? null;
|
|
27677
|
+
}
|
|
27678
|
+
const FormatDictionary = {
|
|
27679
|
+
regex: "intrare",
|
|
27680
|
+
email: "adresă de email",
|
|
27681
|
+
url: "URL",
|
|
27682
|
+
emoji: "emoji",
|
|
27683
|
+
uuid: "UUID",
|
|
27684
|
+
uuidv4: "UUIDv4",
|
|
27685
|
+
uuidv6: "UUIDv6",
|
|
27686
|
+
nanoid: "nanoid",
|
|
27687
|
+
guid: "GUID",
|
|
27688
|
+
cuid: "cuid",
|
|
27689
|
+
cuid2: "cuid2",
|
|
27690
|
+
ulid: "ULID",
|
|
27691
|
+
xid: "XID",
|
|
27692
|
+
ksuid: "KSUID",
|
|
27693
|
+
datetime: "dată și oră ISO",
|
|
27694
|
+
date: "dată ISO",
|
|
27695
|
+
time: "oră ISO",
|
|
27696
|
+
duration: "durată ISO",
|
|
27697
|
+
ipv4: "adresă IPv4",
|
|
27698
|
+
ipv6: "adresă IPv6",
|
|
27699
|
+
mac: "adresă MAC",
|
|
27700
|
+
cidrv4: "interval IPv4",
|
|
27701
|
+
cidrv6: "interval IPv6",
|
|
27702
|
+
base64: "șir codat base64",
|
|
27703
|
+
base64url: "șir codat base64url",
|
|
27704
|
+
json_string: "șir JSON",
|
|
27705
|
+
e164: "număr E.164",
|
|
27706
|
+
jwt: "JWT",
|
|
27707
|
+
template_literal: "intrare"
|
|
27708
|
+
};
|
|
27709
|
+
const TypeDictionary = {
|
|
27710
|
+
nan: "NaN",
|
|
27711
|
+
string: "șir",
|
|
27712
|
+
number: "număr",
|
|
27713
|
+
boolean: "boolean",
|
|
27714
|
+
function: "funcție",
|
|
27715
|
+
array: "matrice",
|
|
27716
|
+
object: "obiect",
|
|
27717
|
+
undefined: "nedefinit",
|
|
27718
|
+
symbol: "simbol",
|
|
27719
|
+
bigint: "număr mare",
|
|
27720
|
+
void: "void",
|
|
27721
|
+
never: "never",
|
|
27722
|
+
map: "hartă",
|
|
27723
|
+
set: "set"
|
|
27724
|
+
};
|
|
27725
|
+
return (issue2) => {
|
|
27726
|
+
switch (issue2.code) {
|
|
27727
|
+
case "invalid_type": {
|
|
27728
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
27729
|
+
const receivedType = parsedType(issue2.input);
|
|
27730
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
27731
|
+
return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
|
|
27732
|
+
}
|
|
27733
|
+
case "invalid_value":
|
|
27734
|
+
if (issue2.values.length === 1)
|
|
27735
|
+
return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
27736
|
+
return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
27737
|
+
case "too_big": {
|
|
27738
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
27739
|
+
const sizing = getSizing(issue2.origin);
|
|
27740
|
+
if (sizing)
|
|
27741
|
+
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
27742
|
+
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
|
|
27743
|
+
}
|
|
27744
|
+
case "too_small": {
|
|
27745
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
27746
|
+
const sizing = getSizing(issue2.origin);
|
|
27747
|
+
if (sizing) {
|
|
27748
|
+
return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
27749
|
+
}
|
|
27750
|
+
return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
|
|
27751
|
+
}
|
|
27752
|
+
case "invalid_format": {
|
|
27753
|
+
const _issue = issue2;
|
|
27754
|
+
if (_issue.format === "starts_with") {
|
|
27755
|
+
return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
|
|
27756
|
+
}
|
|
27757
|
+
if (_issue.format === "ends_with")
|
|
27758
|
+
return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
|
|
27759
|
+
if (_issue.format === "includes")
|
|
27760
|
+
return `Șir invalid: trebuie să includă "${_issue.includes}"`;
|
|
27761
|
+
if (_issue.format === "regex")
|
|
27762
|
+
return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
|
|
27763
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
27764
|
+
}
|
|
27765
|
+
case "not_multiple_of":
|
|
27766
|
+
return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
|
|
27767
|
+
case "unrecognized_keys":
|
|
27768
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
27769
|
+
case "invalid_key":
|
|
27770
|
+
return `Cheie invalidă în ${issue2.origin}`;
|
|
27771
|
+
case "invalid_union":
|
|
27772
|
+
return "Intrare invalidă";
|
|
27773
|
+
case "invalid_element":
|
|
27774
|
+
return `Valoare invalidă în ${issue2.origin}`;
|
|
27775
|
+
default:
|
|
27776
|
+
return `Intrare invalidă`;
|
|
27777
|
+
}
|
|
27778
|
+
};
|
|
27779
|
+
};
|
|
27780
|
+
function ro_default() {
|
|
27781
|
+
return {
|
|
27782
|
+
localeError: error37()
|
|
27270
27783
|
};
|
|
27271
27784
|
}
|
|
27272
|
-
//
|
|
27785
|
+
// node_modules/zod/v4/locales/ru.js
|
|
27273
27786
|
function getRussianPlural(count, one, few, many) {
|
|
27274
27787
|
const absCount = Math.abs(count);
|
|
27275
27788
|
const lastDigit = absCount % 10;
|
|
@@ -27285,7 +27798,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
27285
27798
|
}
|
|
27286
27799
|
return many;
|
|
27287
27800
|
}
|
|
27288
|
-
var
|
|
27801
|
+
var error38 = () => {
|
|
27289
27802
|
const Sizable = {
|
|
27290
27803
|
string: {
|
|
27291
27804
|
unit: {
|
|
@@ -27422,11 +27935,11 @@ var error35 = () => {
|
|
|
27422
27935
|
};
|
|
27423
27936
|
function ru_default() {
|
|
27424
27937
|
return {
|
|
27425
|
-
localeError:
|
|
27938
|
+
localeError: error38()
|
|
27426
27939
|
};
|
|
27427
27940
|
}
|
|
27428
|
-
//
|
|
27429
|
-
var
|
|
27941
|
+
// node_modules/zod/v4/locales/sl.js
|
|
27942
|
+
var error39 = () => {
|
|
27430
27943
|
const Sizable = {
|
|
27431
27944
|
string: { unit: "znakov", verb: "imeti" },
|
|
27432
27945
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -27531,11 +28044,11 @@ var error36 = () => {
|
|
|
27531
28044
|
};
|
|
27532
28045
|
function sl_default() {
|
|
27533
28046
|
return {
|
|
27534
|
-
localeError:
|
|
28047
|
+
localeError: error39()
|
|
27535
28048
|
};
|
|
27536
28049
|
}
|
|
27537
|
-
//
|
|
27538
|
-
var
|
|
28050
|
+
// node_modules/zod/v4/locales/sv.js
|
|
28051
|
+
var error40 = () => {
|
|
27539
28052
|
const Sizable = {
|
|
27540
28053
|
string: { unit: "tecken", verb: "att ha" },
|
|
27541
28054
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -27641,11 +28154,11 @@ var error37 = () => {
|
|
|
27641
28154
|
};
|
|
27642
28155
|
function sv_default() {
|
|
27643
28156
|
return {
|
|
27644
|
-
localeError:
|
|
28157
|
+
localeError: error40()
|
|
27645
28158
|
};
|
|
27646
28159
|
}
|
|
27647
|
-
//
|
|
27648
|
-
var
|
|
28160
|
+
// node_modules/zod/v4/locales/ta.js
|
|
28161
|
+
var error41 = () => {
|
|
27649
28162
|
const Sizable = {
|
|
27650
28163
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
27651
28164
|
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -27751,11 +28264,11 @@ var error38 = () => {
|
|
|
27751
28264
|
};
|
|
27752
28265
|
function ta_default() {
|
|
27753
28266
|
return {
|
|
27754
|
-
localeError:
|
|
28267
|
+
localeError: error41()
|
|
27755
28268
|
};
|
|
27756
28269
|
}
|
|
27757
|
-
//
|
|
27758
|
-
var
|
|
28270
|
+
// node_modules/zod/v4/locales/th.js
|
|
28271
|
+
var error42 = () => {
|
|
27759
28272
|
const Sizable = {
|
|
27760
28273
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
27761
28274
|
file: { unit: "ไบต์", verb: "ควรมี" },
|
|
@@ -27861,11 +28374,11 @@ var error39 = () => {
|
|
|
27861
28374
|
};
|
|
27862
28375
|
function th_default() {
|
|
27863
28376
|
return {
|
|
27864
|
-
localeError:
|
|
28377
|
+
localeError: error42()
|
|
27865
28378
|
};
|
|
27866
28379
|
}
|
|
27867
|
-
//
|
|
27868
|
-
var
|
|
28380
|
+
// node_modules/zod/v4/locales/tr.js
|
|
28381
|
+
var error43 = () => {
|
|
27869
28382
|
const Sizable = {
|
|
27870
28383
|
string: { unit: "karakter", verb: "olmalı" },
|
|
27871
28384
|
file: { unit: "bayt", verb: "olmalı" },
|
|
@@ -27966,11 +28479,11 @@ var error40 = () => {
|
|
|
27966
28479
|
};
|
|
27967
28480
|
function tr_default() {
|
|
27968
28481
|
return {
|
|
27969
|
-
localeError:
|
|
28482
|
+
localeError: error43()
|
|
27970
28483
|
};
|
|
27971
28484
|
}
|
|
27972
|
-
//
|
|
27973
|
-
var
|
|
28485
|
+
// node_modules/zod/v4/locales/uk.js
|
|
28486
|
+
var error44 = () => {
|
|
27974
28487
|
const Sizable = {
|
|
27975
28488
|
string: { unit: "символів", verb: "матиме" },
|
|
27976
28489
|
file: { unit: "байтів", verb: "матиме" },
|
|
@@ -28074,16 +28587,16 @@ var error41 = () => {
|
|
|
28074
28587
|
};
|
|
28075
28588
|
function uk_default() {
|
|
28076
28589
|
return {
|
|
28077
|
-
localeError:
|
|
28590
|
+
localeError: error44()
|
|
28078
28591
|
};
|
|
28079
28592
|
}
|
|
28080
28593
|
|
|
28081
|
-
//
|
|
28594
|
+
// node_modules/zod/v4/locales/ua.js
|
|
28082
28595
|
function ua_default() {
|
|
28083
28596
|
return uk_default();
|
|
28084
28597
|
}
|
|
28085
|
-
//
|
|
28086
|
-
var
|
|
28598
|
+
// node_modules/zod/v4/locales/ur.js
|
|
28599
|
+
var error45 = () => {
|
|
28087
28600
|
const Sizable = {
|
|
28088
28601
|
string: { unit: "حروف", verb: "ہونا" },
|
|
28089
28602
|
file: { unit: "بائٹس", verb: "ہونا" },
|
|
@@ -28189,16 +28702,17 @@ var error42 = () => {
|
|
|
28189
28702
|
};
|
|
28190
28703
|
function ur_default() {
|
|
28191
28704
|
return {
|
|
28192
|
-
localeError:
|
|
28705
|
+
localeError: error45()
|
|
28193
28706
|
};
|
|
28194
28707
|
}
|
|
28195
|
-
//
|
|
28196
|
-
var
|
|
28708
|
+
// node_modules/zod/v4/locales/uz.js
|
|
28709
|
+
var error46 = () => {
|
|
28197
28710
|
const Sizable = {
|
|
28198
28711
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
28199
28712
|
file: { unit: "bayt", verb: "bo‘lishi kerak" },
|
|
28200
28713
|
array: { unit: "element", verb: "bo‘lishi kerak" },
|
|
28201
|
-
set: { unit: "element", verb: "bo‘lishi kerak" }
|
|
28714
|
+
set: { unit: "element", verb: "bo‘lishi kerak" },
|
|
28715
|
+
map: { unit: "yozuv", verb: "bo‘lishi kerak" }
|
|
28202
28716
|
};
|
|
28203
28717
|
function getSizing(origin) {
|
|
28204
28718
|
return Sizable[origin] ?? null;
|
|
@@ -28298,11 +28812,11 @@ var error43 = () => {
|
|
|
28298
28812
|
};
|
|
28299
28813
|
function uz_default() {
|
|
28300
28814
|
return {
|
|
28301
|
-
localeError:
|
|
28815
|
+
localeError: error46()
|
|
28302
28816
|
};
|
|
28303
28817
|
}
|
|
28304
|
-
//
|
|
28305
|
-
var
|
|
28818
|
+
// node_modules/zod/v4/locales/vi.js
|
|
28819
|
+
var error47 = () => {
|
|
28306
28820
|
const Sizable = {
|
|
28307
28821
|
string: { unit: "ký tự", verb: "có" },
|
|
28308
28822
|
file: { unit: "byte", verb: "có" },
|
|
@@ -28406,11 +28920,11 @@ var error44 = () => {
|
|
|
28406
28920
|
};
|
|
28407
28921
|
function vi_default() {
|
|
28408
28922
|
return {
|
|
28409
|
-
localeError:
|
|
28923
|
+
localeError: error47()
|
|
28410
28924
|
};
|
|
28411
28925
|
}
|
|
28412
|
-
//
|
|
28413
|
-
var
|
|
28926
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
28927
|
+
var error48 = () => {
|
|
28414
28928
|
const Sizable = {
|
|
28415
28929
|
string: { unit: "字符", verb: "包含" },
|
|
28416
28930
|
file: { unit: "字节", verb: "包含" },
|
|
@@ -28515,11 +29029,11 @@ var error45 = () => {
|
|
|
28515
29029
|
};
|
|
28516
29030
|
function zh_CN_default() {
|
|
28517
29031
|
return {
|
|
28518
|
-
localeError:
|
|
29032
|
+
localeError: error48()
|
|
28519
29033
|
};
|
|
28520
29034
|
}
|
|
28521
|
-
//
|
|
28522
|
-
var
|
|
29035
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
29036
|
+
var error49 = () => {
|
|
28523
29037
|
const Sizable = {
|
|
28524
29038
|
string: { unit: "字元", verb: "擁有" },
|
|
28525
29039
|
file: { unit: "位元組", verb: "擁有" },
|
|
@@ -28622,11 +29136,11 @@ var error46 = () => {
|
|
|
28622
29136
|
};
|
|
28623
29137
|
function zh_TW_default() {
|
|
28624
29138
|
return {
|
|
28625
|
-
localeError:
|
|
29139
|
+
localeError: error49()
|
|
28626
29140
|
};
|
|
28627
29141
|
}
|
|
28628
|
-
//
|
|
28629
|
-
var
|
|
29142
|
+
// node_modules/zod/v4/locales/yo.js
|
|
29143
|
+
var error50 = () => {
|
|
28630
29144
|
const Sizable = {
|
|
28631
29145
|
string: { unit: "àmi", verb: "ní" },
|
|
28632
29146
|
file: { unit: "bytes", verb: "ní" },
|
|
@@ -28729,11 +29243,11 @@ var error47 = () => {
|
|
|
28729
29243
|
};
|
|
28730
29244
|
function yo_default() {
|
|
28731
29245
|
return {
|
|
28732
|
-
localeError:
|
|
29246
|
+
localeError: error50()
|
|
28733
29247
|
};
|
|
28734
29248
|
}
|
|
28735
|
-
//
|
|
28736
|
-
var
|
|
29249
|
+
// node_modules/zod/v4/core/registries.js
|
|
29250
|
+
var _a2;
|
|
28737
29251
|
var $output = Symbol("ZodOutput");
|
|
28738
29252
|
var $input = Symbol("ZodInput");
|
|
28739
29253
|
|
|
@@ -28780,9 +29294,9 @@ class $ZodRegistry {
|
|
|
28780
29294
|
function registry() {
|
|
28781
29295
|
return new $ZodRegistry;
|
|
28782
29296
|
}
|
|
28783
|
-
(
|
|
29297
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
28784
29298
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
28785
|
-
//
|
|
29299
|
+
// node_modules/zod/v4/core/api.js
|
|
28786
29300
|
function _string(Class2, params) {
|
|
28787
29301
|
return new Class2({
|
|
28788
29302
|
type: "string",
|
|
@@ -29586,7 +30100,7 @@ function _refine(Class2, fn, _params) {
|
|
|
29586
30100
|
});
|
|
29587
30101
|
return schema;
|
|
29588
30102
|
}
|
|
29589
|
-
function _superRefine(fn) {
|
|
30103
|
+
function _superRefine(fn, params) {
|
|
29590
30104
|
const ch = _check((payload) => {
|
|
29591
30105
|
payload.addIssue = (issue2) => {
|
|
29592
30106
|
if (typeof issue2 === "string") {
|
|
@@ -29603,7 +30117,7 @@ function _superRefine(fn) {
|
|
|
29603
30117
|
}
|
|
29604
30118
|
};
|
|
29605
30119
|
return fn(payload.value, payload);
|
|
29606
|
-
});
|
|
30120
|
+
}, params);
|
|
29607
30121
|
return ch;
|
|
29608
30122
|
}
|
|
29609
30123
|
function _check(fn, params) {
|
|
@@ -29702,7 +30216,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
29702
30216
|
const inst = new Class2(def);
|
|
29703
30217
|
return inst;
|
|
29704
30218
|
}
|
|
29705
|
-
//
|
|
30219
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
29706
30220
|
function initializeContext(params) {
|
|
29707
30221
|
let target = params?.target ?? "draft-2020-12";
|
|
29708
30222
|
if (target === "draft-4")
|
|
@@ -29724,7 +30238,7 @@ function initializeContext(params) {
|
|
|
29724
30238
|
};
|
|
29725
30239
|
}
|
|
29726
30240
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
29727
|
-
var
|
|
30241
|
+
var _a3;
|
|
29728
30242
|
const def = schema._zod.def;
|
|
29729
30243
|
const seen = ctx.seen.get(schema);
|
|
29730
30244
|
if (seen) {
|
|
@@ -29771,8 +30285,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
29771
30285
|
delete result.schema.examples;
|
|
29772
30286
|
delete result.schema.default;
|
|
29773
30287
|
}
|
|
29774
|
-
if (ctx.io === "input" && result.schema
|
|
29775
|
-
(
|
|
30288
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
30289
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
29776
30290
|
delete result.schema._prefault;
|
|
29777
30291
|
const _result = ctx.seen.get(schema);
|
|
29778
30292
|
return _result.schema;
|
|
@@ -29949,10 +30463,15 @@ function finalize(ctx, schema) {
|
|
|
29949
30463
|
result.$id = ctx.external.uri(id);
|
|
29950
30464
|
}
|
|
29951
30465
|
Object.assign(result, root.def ?? root.schema);
|
|
30466
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
30467
|
+
if (rootMetaId !== undefined && result.id === rootMetaId)
|
|
30468
|
+
delete result.id;
|
|
29952
30469
|
const defs = ctx.external?.defs ?? {};
|
|
29953
30470
|
for (const entry of ctx.seen.entries()) {
|
|
29954
30471
|
const seen = entry[1];
|
|
29955
30472
|
if (seen.def && seen.defId) {
|
|
30473
|
+
if (seen.def.id === seen.defId)
|
|
30474
|
+
delete seen.def.id;
|
|
29956
30475
|
defs[seen.defId] = seen.def;
|
|
29957
30476
|
}
|
|
29958
30477
|
}
|
|
@@ -30047,7 +30566,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
30047
30566
|
extractDefs(ctx, schema);
|
|
30048
30567
|
return finalize(ctx, schema);
|
|
30049
30568
|
};
|
|
30050
|
-
//
|
|
30569
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
30051
30570
|
var formatMap = {
|
|
30052
30571
|
guid: "uuid",
|
|
30053
30572
|
url: "uri",
|
|
@@ -30094,39 +30613,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
30094
30613
|
json.type = "integer";
|
|
30095
30614
|
else
|
|
30096
30615
|
json.type = "number";
|
|
30097
|
-
|
|
30098
|
-
|
|
30616
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
30617
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
30618
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
30619
|
+
if (exMin) {
|
|
30620
|
+
if (legacy) {
|
|
30099
30621
|
json.minimum = exclusiveMinimum;
|
|
30100
30622
|
json.exclusiveMinimum = true;
|
|
30101
30623
|
} else {
|
|
30102
30624
|
json.exclusiveMinimum = exclusiveMinimum;
|
|
30103
30625
|
}
|
|
30104
|
-
}
|
|
30105
|
-
if (typeof minimum === "number") {
|
|
30626
|
+
} else if (typeof minimum === "number") {
|
|
30106
30627
|
json.minimum = minimum;
|
|
30107
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
30108
|
-
if (exclusiveMinimum >= minimum)
|
|
30109
|
-
delete json.minimum;
|
|
30110
|
-
else
|
|
30111
|
-
delete json.exclusiveMinimum;
|
|
30112
|
-
}
|
|
30113
30628
|
}
|
|
30114
|
-
if (
|
|
30115
|
-
if (
|
|
30629
|
+
if (exMax) {
|
|
30630
|
+
if (legacy) {
|
|
30116
30631
|
json.maximum = exclusiveMaximum;
|
|
30117
30632
|
json.exclusiveMaximum = true;
|
|
30118
30633
|
} else {
|
|
30119
30634
|
json.exclusiveMaximum = exclusiveMaximum;
|
|
30120
30635
|
}
|
|
30121
|
-
}
|
|
30122
|
-
if (typeof maximum === "number") {
|
|
30636
|
+
} else if (typeof maximum === "number") {
|
|
30123
30637
|
json.maximum = maximum;
|
|
30124
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
30125
|
-
if (exclusiveMaximum <= maximum)
|
|
30126
|
-
delete json.maximum;
|
|
30127
|
-
else
|
|
30128
|
-
delete json.exclusiveMaximum;
|
|
30129
|
-
}
|
|
30130
30638
|
}
|
|
30131
30639
|
if (typeof multipleOf === "number")
|
|
30132
30640
|
json.multipleOf = multipleOf;
|
|
@@ -30294,7 +30802,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
30294
30802
|
if (typeof maximum === "number")
|
|
30295
30803
|
json.maxItems = maximum;
|
|
30296
30804
|
json.type = "array";
|
|
30297
|
-
json.items = process2(def.element, ctx, {
|
|
30805
|
+
json.items = process2(def.element, ctx, {
|
|
30806
|
+
...params,
|
|
30807
|
+
path: [...params.path, "items"]
|
|
30808
|
+
});
|
|
30298
30809
|
};
|
|
30299
30810
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
30300
30811
|
const json = _json;
|
|
@@ -30592,7 +31103,7 @@ function toJSONSchema(input, params) {
|
|
|
30592
31103
|
extractDefs(ctx, input);
|
|
30593
31104
|
return finalize(ctx, input);
|
|
30594
31105
|
}
|
|
30595
|
-
//
|
|
31106
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
30596
31107
|
class JSONSchemaGenerator {
|
|
30597
31108
|
get metadataRegistry() {
|
|
30598
31109
|
return this.ctx.metadataRegistry;
|
|
@@ -30651,9 +31162,9 @@ class JSONSchemaGenerator {
|
|
|
30651
31162
|
return plainResult;
|
|
30652
31163
|
}
|
|
30653
31164
|
}
|
|
30654
|
-
//
|
|
31165
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
30655
31166
|
var exports_json_schema = {};
|
|
30656
|
-
//
|
|
31167
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
30657
31168
|
var exports_schemas2 = {};
|
|
30658
31169
|
__export(exports_schemas2, {
|
|
30659
31170
|
xor: () => xor2,
|
|
@@ -30713,6 +31224,7 @@ __export(exports_schemas2, {
|
|
|
30713
31224
|
json: () => json,
|
|
30714
31225
|
ipv6: () => ipv62,
|
|
30715
31226
|
ipv4: () => ipv42,
|
|
31227
|
+
invertCodec: () => invertCodec,
|
|
30716
31228
|
intersection: () => intersection2,
|
|
30717
31229
|
int64: () => int64,
|
|
30718
31230
|
int32: () => int32,
|
|
@@ -30822,7 +31334,7 @@ __export(exports_schemas2, {
|
|
|
30822
31334
|
ZodAny: () => ZodAny
|
|
30823
31335
|
});
|
|
30824
31336
|
|
|
30825
|
-
//
|
|
31337
|
+
// node_modules/zod/v4/classic/checks.js
|
|
30826
31338
|
var exports_checks2 = {};
|
|
30827
31339
|
__export(exports_checks2, {
|
|
30828
31340
|
uppercase: () => _uppercase,
|
|
@@ -30856,7 +31368,7 @@ __export(exports_checks2, {
|
|
|
30856
31368
|
endsWith: () => _endsWith
|
|
30857
31369
|
});
|
|
30858
31370
|
|
|
30859
|
-
//
|
|
31371
|
+
// node_modules/zod/v4/classic/iso.js
|
|
30860
31372
|
var exports_iso = {};
|
|
30861
31373
|
__export(exports_iso, {
|
|
30862
31374
|
time: () => time2,
|
|
@@ -30897,7 +31409,7 @@ function duration2(params) {
|
|
|
30897
31409
|
return _isoDuration(ZodISODuration, params);
|
|
30898
31410
|
}
|
|
30899
31411
|
|
|
30900
|
-
//
|
|
31412
|
+
// node_modules/zod/v4/classic/errors.js
|
|
30901
31413
|
var initializer2 = (inst, issues) => {
|
|
30902
31414
|
$ZodError.init(inst, issues);
|
|
30903
31415
|
inst.name = "ZodError";
|
|
@@ -30927,12 +31439,12 @@ var initializer2 = (inst, issues) => {
|
|
|
30927
31439
|
}
|
|
30928
31440
|
});
|
|
30929
31441
|
};
|
|
30930
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
30931
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
31442
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
31443
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
30932
31444
|
Parent: Error
|
|
30933
31445
|
});
|
|
30934
31446
|
|
|
30935
|
-
//
|
|
31447
|
+
// node_modules/zod/v4/classic/parse.js
|
|
30936
31448
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
30937
31449
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
30938
31450
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -30946,7 +31458,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
30946
31458
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
30947
31459
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
30948
31460
|
|
|
30949
|
-
//
|
|
31461
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
31462
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
31463
|
+
function _installLazyMethods(inst, group, methods) {
|
|
31464
|
+
const proto = Object.getPrototypeOf(inst);
|
|
31465
|
+
let installed = _installedGroups.get(proto);
|
|
31466
|
+
if (!installed) {
|
|
31467
|
+
installed = new Set;
|
|
31468
|
+
_installedGroups.set(proto, installed);
|
|
31469
|
+
}
|
|
31470
|
+
if (installed.has(group))
|
|
31471
|
+
return;
|
|
31472
|
+
installed.add(group);
|
|
31473
|
+
for (const key in methods) {
|
|
31474
|
+
const fn = methods[key];
|
|
31475
|
+
Object.defineProperty(proto, key, {
|
|
31476
|
+
configurable: true,
|
|
31477
|
+
enumerable: false,
|
|
31478
|
+
get() {
|
|
31479
|
+
const bound = fn.bind(this);
|
|
31480
|
+
Object.defineProperty(this, key, {
|
|
31481
|
+
configurable: true,
|
|
31482
|
+
writable: true,
|
|
31483
|
+
enumerable: true,
|
|
31484
|
+
value: bound
|
|
31485
|
+
});
|
|
31486
|
+
return bound;
|
|
31487
|
+
},
|
|
31488
|
+
set(v) {
|
|
31489
|
+
Object.defineProperty(this, key, {
|
|
31490
|
+
configurable: true,
|
|
31491
|
+
writable: true,
|
|
31492
|
+
enumerable: true,
|
|
31493
|
+
value: v
|
|
31494
|
+
});
|
|
31495
|
+
}
|
|
31496
|
+
});
|
|
31497
|
+
}
|
|
31498
|
+
}
|
|
30950
31499
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
30951
31500
|
$ZodType.init(inst, def);
|
|
30952
31501
|
Object.assign(inst["~standard"], {
|
|
@@ -30959,23 +31508,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
30959
31508
|
inst.def = def;
|
|
30960
31509
|
inst.type = def.type;
|
|
30961
31510
|
Object.defineProperty(inst, "_def", { value: def });
|
|
30962
|
-
inst.check = (...checks2) => {
|
|
30963
|
-
return inst.clone(exports_util.mergeDefs(def, {
|
|
30964
|
-
checks: [
|
|
30965
|
-
...def.checks ?? [],
|
|
30966
|
-
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
30967
|
-
]
|
|
30968
|
-
}), {
|
|
30969
|
-
parent: true
|
|
30970
|
-
});
|
|
30971
|
-
};
|
|
30972
|
-
inst.with = inst.check;
|
|
30973
|
-
inst.clone = (def2, params) => clone2(inst, def2, params);
|
|
30974
|
-
inst.brand = () => inst;
|
|
30975
|
-
inst.register = (reg, meta2) => {
|
|
30976
|
-
reg.add(inst, meta2);
|
|
30977
|
-
return inst;
|
|
30978
|
-
};
|
|
30979
31511
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
30980
31512
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
30981
31513
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -30989,45 +31521,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
30989
31521
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
30990
31522
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
30991
31523
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
30992
|
-
inst
|
|
30993
|
-
|
|
30994
|
-
|
|
30995
|
-
|
|
30996
|
-
|
|
30997
|
-
|
|
30998
|
-
|
|
30999
|
-
|
|
31000
|
-
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
|
|
31004
|
-
|
|
31005
|
-
|
|
31006
|
-
|
|
31007
|
-
|
|
31008
|
-
|
|
31009
|
-
|
|
31010
|
-
|
|
31011
|
-
|
|
31012
|
-
|
|
31013
|
-
|
|
31524
|
+
_installLazyMethods(inst, "ZodType", {
|
|
31525
|
+
check(...chks) {
|
|
31526
|
+
const def2 = this.def;
|
|
31527
|
+
return this.clone(exports_util.mergeDefs(def2, {
|
|
31528
|
+
checks: [
|
|
31529
|
+
...def2.checks ?? [],
|
|
31530
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
31531
|
+
]
|
|
31532
|
+
}), { parent: true });
|
|
31533
|
+
},
|
|
31534
|
+
with(...chks) {
|
|
31535
|
+
return this.check(...chks);
|
|
31536
|
+
},
|
|
31537
|
+
clone(def2, params) {
|
|
31538
|
+
return clone2(this, def2, params);
|
|
31539
|
+
},
|
|
31540
|
+
brand() {
|
|
31541
|
+
return this;
|
|
31542
|
+
},
|
|
31543
|
+
register(reg, meta2) {
|
|
31544
|
+
reg.add(this, meta2);
|
|
31545
|
+
return this;
|
|
31546
|
+
},
|
|
31547
|
+
refine(check, params) {
|
|
31548
|
+
return this.check(refine(check, params));
|
|
31549
|
+
},
|
|
31550
|
+
superRefine(refinement, params) {
|
|
31551
|
+
return this.check(superRefine(refinement, params));
|
|
31552
|
+
},
|
|
31553
|
+
overwrite(fn) {
|
|
31554
|
+
return this.check(_overwrite(fn));
|
|
31555
|
+
},
|
|
31556
|
+
optional() {
|
|
31557
|
+
return optional(this);
|
|
31558
|
+
},
|
|
31559
|
+
exactOptional() {
|
|
31560
|
+
return exactOptional(this);
|
|
31561
|
+
},
|
|
31562
|
+
nullable() {
|
|
31563
|
+
return nullable(this);
|
|
31564
|
+
},
|
|
31565
|
+
nullish() {
|
|
31566
|
+
return optional(nullable(this));
|
|
31567
|
+
},
|
|
31568
|
+
nonoptional(params) {
|
|
31569
|
+
return nonoptional(this, params);
|
|
31570
|
+
},
|
|
31571
|
+
array() {
|
|
31572
|
+
return array(this);
|
|
31573
|
+
},
|
|
31574
|
+
or(arg) {
|
|
31575
|
+
return union2([this, arg]);
|
|
31576
|
+
},
|
|
31577
|
+
and(arg) {
|
|
31578
|
+
return intersection2(this, arg);
|
|
31579
|
+
},
|
|
31580
|
+
transform(tx) {
|
|
31581
|
+
return pipe(this, transform(tx));
|
|
31582
|
+
},
|
|
31583
|
+
default(d) {
|
|
31584
|
+
return _default2(this, d);
|
|
31585
|
+
},
|
|
31586
|
+
prefault(d) {
|
|
31587
|
+
return prefault(this, d);
|
|
31588
|
+
},
|
|
31589
|
+
catch(params) {
|
|
31590
|
+
return _catch2(this, params);
|
|
31591
|
+
},
|
|
31592
|
+
pipe(target) {
|
|
31593
|
+
return pipe(this, target);
|
|
31594
|
+
},
|
|
31595
|
+
readonly() {
|
|
31596
|
+
return readonly(this);
|
|
31597
|
+
},
|
|
31598
|
+
describe(description) {
|
|
31599
|
+
const cl = this.clone();
|
|
31600
|
+
globalRegistry.add(cl, { description });
|
|
31601
|
+
return cl;
|
|
31602
|
+
},
|
|
31603
|
+
meta(...args) {
|
|
31604
|
+
if (args.length === 0)
|
|
31605
|
+
return globalRegistry.get(this);
|
|
31606
|
+
const cl = this.clone();
|
|
31607
|
+
globalRegistry.add(cl, args[0]);
|
|
31608
|
+
return cl;
|
|
31609
|
+
},
|
|
31610
|
+
isOptional() {
|
|
31611
|
+
return this.safeParse(undefined).success;
|
|
31612
|
+
},
|
|
31613
|
+
isNullable() {
|
|
31614
|
+
return this.safeParse(null).success;
|
|
31615
|
+
},
|
|
31616
|
+
apply(fn) {
|
|
31617
|
+
return fn(this);
|
|
31618
|
+
}
|
|
31619
|
+
});
|
|
31014
31620
|
Object.defineProperty(inst, "description", {
|
|
31015
31621
|
get() {
|
|
31016
31622
|
return globalRegistry.get(inst)?.description;
|
|
31017
31623
|
},
|
|
31018
31624
|
configurable: true
|
|
31019
31625
|
});
|
|
31020
|
-
inst.meta = (...args) => {
|
|
31021
|
-
if (args.length === 0) {
|
|
31022
|
-
return globalRegistry.get(inst);
|
|
31023
|
-
}
|
|
31024
|
-
const cl = inst.clone();
|
|
31025
|
-
globalRegistry.add(cl, args[0]);
|
|
31026
|
-
return cl;
|
|
31027
|
-
};
|
|
31028
|
-
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
31029
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
31030
|
-
inst.apply = (fn) => fn(inst);
|
|
31031
31626
|
return inst;
|
|
31032
31627
|
});
|
|
31033
31628
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -31038,21 +31633,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
31038
31633
|
inst.format = bag.format ?? null;
|
|
31039
31634
|
inst.minLength = bag.minimum ?? null;
|
|
31040
31635
|
inst.maxLength = bag.maximum ?? null;
|
|
31041
|
-
inst
|
|
31042
|
-
|
|
31043
|
-
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31052
|
-
|
|
31053
|
-
|
|
31054
|
-
|
|
31055
|
-
|
|
31636
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
31637
|
+
regex(...args) {
|
|
31638
|
+
return this.check(_regex(...args));
|
|
31639
|
+
},
|
|
31640
|
+
includes(...args) {
|
|
31641
|
+
return this.check(_includes(...args));
|
|
31642
|
+
},
|
|
31643
|
+
startsWith(...args) {
|
|
31644
|
+
return this.check(_startsWith(...args));
|
|
31645
|
+
},
|
|
31646
|
+
endsWith(...args) {
|
|
31647
|
+
return this.check(_endsWith(...args));
|
|
31648
|
+
},
|
|
31649
|
+
min(...args) {
|
|
31650
|
+
return this.check(_minLength(...args));
|
|
31651
|
+
},
|
|
31652
|
+
max(...args) {
|
|
31653
|
+
return this.check(_maxLength(...args));
|
|
31654
|
+
},
|
|
31655
|
+
length(...args) {
|
|
31656
|
+
return this.check(_length(...args));
|
|
31657
|
+
},
|
|
31658
|
+
nonempty(...args) {
|
|
31659
|
+
return this.check(_minLength(1, ...args));
|
|
31660
|
+
},
|
|
31661
|
+
lowercase(params) {
|
|
31662
|
+
return this.check(_lowercase(params));
|
|
31663
|
+
},
|
|
31664
|
+
uppercase(params) {
|
|
31665
|
+
return this.check(_uppercase(params));
|
|
31666
|
+
},
|
|
31667
|
+
trim() {
|
|
31668
|
+
return this.check(_trim());
|
|
31669
|
+
},
|
|
31670
|
+
normalize(...args) {
|
|
31671
|
+
return this.check(_normalize(...args));
|
|
31672
|
+
},
|
|
31673
|
+
toLowerCase() {
|
|
31674
|
+
return this.check(_toLowerCase());
|
|
31675
|
+
},
|
|
31676
|
+
toUpperCase() {
|
|
31677
|
+
return this.check(_toUpperCase());
|
|
31678
|
+
},
|
|
31679
|
+
slugify() {
|
|
31680
|
+
return this.check(_slugify());
|
|
31681
|
+
}
|
|
31682
|
+
});
|
|
31056
31683
|
});
|
|
31057
31684
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
31058
31685
|
$ZodString.init(inst, def);
|
|
@@ -31131,7 +31758,7 @@ function url(params) {
|
|
|
31131
31758
|
}
|
|
31132
31759
|
function httpUrl(params) {
|
|
31133
31760
|
return _url(ZodURL, {
|
|
31134
|
-
protocol:
|
|
31761
|
+
protocol: exports_regexes.httpProtocol,
|
|
31135
31762
|
hostname: exports_regexes.domain,
|
|
31136
31763
|
...exports_util.normalizeParams(params)
|
|
31137
31764
|
});
|
|
@@ -31273,21 +31900,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
31273
31900
|
$ZodNumber.init(inst, def);
|
|
31274
31901
|
ZodType.init(inst, def);
|
|
31275
31902
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
31276
|
-
inst
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
-
|
|
31282
|
-
|
|
31283
|
-
|
|
31284
|
-
|
|
31285
|
-
|
|
31286
|
-
|
|
31287
|
-
|
|
31288
|
-
|
|
31289
|
-
|
|
31290
|
-
|
|
31903
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
31904
|
+
gt(value, params) {
|
|
31905
|
+
return this.check(_gt(value, params));
|
|
31906
|
+
},
|
|
31907
|
+
gte(value, params) {
|
|
31908
|
+
return this.check(_gte(value, params));
|
|
31909
|
+
},
|
|
31910
|
+
min(value, params) {
|
|
31911
|
+
return this.check(_gte(value, params));
|
|
31912
|
+
},
|
|
31913
|
+
lt(value, params) {
|
|
31914
|
+
return this.check(_lt(value, params));
|
|
31915
|
+
},
|
|
31916
|
+
lte(value, params) {
|
|
31917
|
+
return this.check(_lte(value, params));
|
|
31918
|
+
},
|
|
31919
|
+
max(value, params) {
|
|
31920
|
+
return this.check(_lte(value, params));
|
|
31921
|
+
},
|
|
31922
|
+
int(params) {
|
|
31923
|
+
return this.check(int(params));
|
|
31924
|
+
},
|
|
31925
|
+
safe(params) {
|
|
31926
|
+
return this.check(int(params));
|
|
31927
|
+
},
|
|
31928
|
+
positive(params) {
|
|
31929
|
+
return this.check(_gt(0, params));
|
|
31930
|
+
},
|
|
31931
|
+
nonnegative(params) {
|
|
31932
|
+
return this.check(_gte(0, params));
|
|
31933
|
+
},
|
|
31934
|
+
negative(params) {
|
|
31935
|
+
return this.check(_lt(0, params));
|
|
31936
|
+
},
|
|
31937
|
+
nonpositive(params) {
|
|
31938
|
+
return this.check(_lte(0, params));
|
|
31939
|
+
},
|
|
31940
|
+
multipleOf(value, params) {
|
|
31941
|
+
return this.check(_multipleOf(value, params));
|
|
31942
|
+
},
|
|
31943
|
+
step(value, params) {
|
|
31944
|
+
return this.check(_multipleOf(value, params));
|
|
31945
|
+
},
|
|
31946
|
+
finite() {
|
|
31947
|
+
return this;
|
|
31948
|
+
}
|
|
31949
|
+
});
|
|
31291
31950
|
const bag = inst._zod.bag;
|
|
31292
31951
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
31293
31952
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -31434,11 +32093,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
31434
32093
|
ZodType.init(inst, def);
|
|
31435
32094
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
31436
32095
|
inst.element = def.element;
|
|
31437
|
-
inst
|
|
31438
|
-
|
|
31439
|
-
|
|
31440
|
-
|
|
31441
|
-
|
|
32096
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
32097
|
+
min(n, params) {
|
|
32098
|
+
return this.check(_minLength(n, params));
|
|
32099
|
+
},
|
|
32100
|
+
nonempty(params) {
|
|
32101
|
+
return this.check(_minLength(1, params));
|
|
32102
|
+
},
|
|
32103
|
+
max(n, params) {
|
|
32104
|
+
return this.check(_maxLength(n, params));
|
|
32105
|
+
},
|
|
32106
|
+
length(n, params) {
|
|
32107
|
+
return this.check(_length(n, params));
|
|
32108
|
+
},
|
|
32109
|
+
unwrap() {
|
|
32110
|
+
return this.element;
|
|
32111
|
+
}
|
|
32112
|
+
});
|
|
31442
32113
|
});
|
|
31443
32114
|
function array(element, params) {
|
|
31444
32115
|
return _array(ZodArray, element, params);
|
|
@@ -31454,23 +32125,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
31454
32125
|
exports_util.defineLazy(inst, "shape", () => {
|
|
31455
32126
|
return def.shape;
|
|
31456
32127
|
});
|
|
31457
|
-
inst
|
|
31458
|
-
|
|
31459
|
-
|
|
31460
|
-
|
|
31461
|
-
|
|
31462
|
-
|
|
31463
|
-
|
|
31464
|
-
|
|
31465
|
-
|
|
31466
|
-
|
|
31467
|
-
|
|
31468
|
-
|
|
31469
|
-
|
|
31470
|
-
|
|
31471
|
-
|
|
31472
|
-
|
|
31473
|
-
|
|
32128
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
32129
|
+
keyof() {
|
|
32130
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
32131
|
+
},
|
|
32132
|
+
catchall(catchall) {
|
|
32133
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
32134
|
+
},
|
|
32135
|
+
passthrough() {
|
|
32136
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
32137
|
+
},
|
|
32138
|
+
loose() {
|
|
32139
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
32140
|
+
},
|
|
32141
|
+
strict() {
|
|
32142
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
32143
|
+
},
|
|
32144
|
+
strip() {
|
|
32145
|
+
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
32146
|
+
},
|
|
32147
|
+
extend(incoming) {
|
|
32148
|
+
return exports_util.extend(this, incoming);
|
|
32149
|
+
},
|
|
32150
|
+
safeExtend(incoming) {
|
|
32151
|
+
return exports_util.safeExtend(this, incoming);
|
|
32152
|
+
},
|
|
32153
|
+
merge(other) {
|
|
32154
|
+
return exports_util.merge(this, other);
|
|
32155
|
+
},
|
|
32156
|
+
pick(mask) {
|
|
32157
|
+
return exports_util.pick(this, mask);
|
|
32158
|
+
},
|
|
32159
|
+
omit(mask) {
|
|
32160
|
+
return exports_util.omit(this, mask);
|
|
32161
|
+
},
|
|
32162
|
+
partial(...args) {
|
|
32163
|
+
return exports_util.partial(ZodOptional, this, args[0]);
|
|
32164
|
+
},
|
|
32165
|
+
required(...args) {
|
|
32166
|
+
return exports_util.required(ZodNonOptional, this, args[0]);
|
|
32167
|
+
}
|
|
32168
|
+
});
|
|
31474
32169
|
});
|
|
31475
32170
|
function object(shape, params) {
|
|
31476
32171
|
const def = {
|
|
@@ -31575,6 +32270,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
31575
32270
|
inst.valueType = def.valueType;
|
|
31576
32271
|
});
|
|
31577
32272
|
function record(keyType, valueType, params) {
|
|
32273
|
+
if (!valueType || !valueType._zod) {
|
|
32274
|
+
return new ZodRecord({
|
|
32275
|
+
type: "record",
|
|
32276
|
+
keyType: string2(),
|
|
32277
|
+
valueType: keyType,
|
|
32278
|
+
...exports_util.normalizeParams(valueType)
|
|
32279
|
+
});
|
|
32280
|
+
}
|
|
31578
32281
|
return new ZodRecord({
|
|
31579
32282
|
type: "record",
|
|
31580
32283
|
keyType,
|
|
@@ -31903,6 +32606,16 @@ function codec(in_, out, params) {
|
|
|
31903
32606
|
reverseTransform: params.encode
|
|
31904
32607
|
});
|
|
31905
32608
|
}
|
|
32609
|
+
function invertCodec(codec2) {
|
|
32610
|
+
const def = codec2._zod.def;
|
|
32611
|
+
return new ZodCodec({
|
|
32612
|
+
type: "pipe",
|
|
32613
|
+
in: def.out,
|
|
32614
|
+
out: def.in,
|
|
32615
|
+
transform: def.reverseTransform,
|
|
32616
|
+
reverseTransform: def.transform
|
|
32617
|
+
});
|
|
32618
|
+
}
|
|
31906
32619
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
31907
32620
|
$ZodReadonly.init(inst, def);
|
|
31908
32621
|
ZodType.init(inst, def);
|
|
@@ -31981,8 +32694,8 @@ function custom(fn, _params) {
|
|
|
31981
32694
|
function refine(fn, _params = {}) {
|
|
31982
32695
|
return _refine(ZodCustom, fn, _params);
|
|
31983
32696
|
}
|
|
31984
|
-
function superRefine(fn) {
|
|
31985
|
-
return _superRefine(fn);
|
|
32697
|
+
function superRefine(fn, params) {
|
|
32698
|
+
return _superRefine(fn, params);
|
|
31986
32699
|
}
|
|
31987
32700
|
var describe2 = describe;
|
|
31988
32701
|
var meta2 = meta;
|
|
@@ -32022,7 +32735,7 @@ function json(params) {
|
|
|
32022
32735
|
function preprocess(fn, schema) {
|
|
32023
32736
|
return pipe(transform(fn), schema);
|
|
32024
32737
|
}
|
|
32025
|
-
//
|
|
32738
|
+
// node_modules/zod/v4/classic/compat.js
|
|
32026
32739
|
var ZodIssueCode = {
|
|
32027
32740
|
invalid_type: "invalid_type",
|
|
32028
32741
|
too_big: "too_big",
|
|
@@ -32046,13 +32759,13 @@ function getErrorMap() {
|
|
|
32046
32759
|
}
|
|
32047
32760
|
var ZodFirstPartyTypeKind;
|
|
32048
32761
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
32049
|
-
//
|
|
32762
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
32050
32763
|
var z = {
|
|
32051
32764
|
...exports_schemas2,
|
|
32052
32765
|
...exports_checks2,
|
|
32053
32766
|
iso: exports_iso
|
|
32054
32767
|
};
|
|
32055
|
-
var RECOGNIZED_KEYS = new Set([
|
|
32768
|
+
var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
32056
32769
|
"$schema",
|
|
32057
32770
|
"$ref",
|
|
32058
32771
|
"$defs",
|
|
@@ -32426,12 +33139,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
32426
33139
|
default:
|
|
32427
33140
|
throw new Error(`Unsupported type: ${type}`);
|
|
32428
33141
|
}
|
|
32429
|
-
if (schema.description) {
|
|
32430
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
32431
|
-
}
|
|
32432
|
-
if (schema.default !== undefined) {
|
|
32433
|
-
zodSchema = zodSchema.default(schema.default);
|
|
32434
|
-
}
|
|
32435
33142
|
return zodSchema;
|
|
32436
33143
|
}
|
|
32437
33144
|
function convertSchema(schema, ctx) {
|
|
@@ -32468,6 +33175,9 @@ function convertSchema(schema, ctx) {
|
|
|
32468
33175
|
if (schema.readOnly === true) {
|
|
32469
33176
|
baseSchema = z.readonly(baseSchema);
|
|
32470
33177
|
}
|
|
33178
|
+
if (schema.default !== undefined) {
|
|
33179
|
+
baseSchema = baseSchema.default(schema.default);
|
|
33180
|
+
}
|
|
32471
33181
|
const extraMeta = {};
|
|
32472
33182
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
32473
33183
|
for (const key of coreMetadataKeys) {
|
|
@@ -32489,25 +33199,34 @@ function convertSchema(schema, ctx) {
|
|
|
32489
33199
|
if (Object.keys(extraMeta).length > 0) {
|
|
32490
33200
|
ctx.registry.add(baseSchema, extraMeta);
|
|
32491
33201
|
}
|
|
33202
|
+
if (schema.description) {
|
|
33203
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
33204
|
+
}
|
|
32492
33205
|
return baseSchema;
|
|
32493
33206
|
}
|
|
32494
33207
|
function fromJSONSchema(schema, params) {
|
|
32495
33208
|
if (typeof schema === "boolean") {
|
|
32496
33209
|
return schema ? z.any() : z.never();
|
|
32497
33210
|
}
|
|
32498
|
-
|
|
32499
|
-
|
|
33211
|
+
let normalized;
|
|
33212
|
+
try {
|
|
33213
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
33214
|
+
} catch {
|
|
33215
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
33216
|
+
}
|
|
33217
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
33218
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
32500
33219
|
const ctx = {
|
|
32501
33220
|
version: version2,
|
|
32502
33221
|
defs,
|
|
32503
33222
|
refs: new Map,
|
|
32504
33223
|
processing: new Set,
|
|
32505
|
-
rootSchema:
|
|
33224
|
+
rootSchema: normalized,
|
|
32506
33225
|
registry: params?.registry ?? globalRegistry
|
|
32507
33226
|
};
|
|
32508
|
-
return convertSchema(
|
|
33227
|
+
return convertSchema(normalized, ctx);
|
|
32509
33228
|
}
|
|
32510
|
-
//
|
|
33229
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
32511
33230
|
var exports_coerce = {};
|
|
32512
33231
|
__export(exports_coerce, {
|
|
32513
33232
|
string: () => string3,
|
|
@@ -32532,9 +33251,9 @@ function date4(params) {
|
|
|
32532
33251
|
return _coercedDate(ZodDate, params);
|
|
32533
33252
|
}
|
|
32534
33253
|
|
|
32535
|
-
//
|
|
33254
|
+
// node_modules/zod/v4/classic/external.js
|
|
32536
33255
|
config(en_default());
|
|
32537
|
-
//
|
|
33256
|
+
// node_modules/nanoid/index.browser.js
|
|
32538
33257
|
var random2 = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
32539
33258
|
var customRandom = (alphabet, defaultSize, getRandom) => {
|
|
32540
33259
|
let safeByteCutoff = 256 - 256 % alphabet.length;
|